Annotation of parser3/configure.in, revision 1.141
1.1 paf 1: dnl Process this file with autoconf to produce a configure script.
2: AC_INIT(README)
1.59 paf 3: AC_PREREQ(2.57)
4:
1.135 misha 5: AM_INIT_AUTOMAKE(parser, 3.4.2b, nodefine)
1.1 paf 6:
1.8 paf 7: dnl expand srcdir
1.14 paf 8: P3S=`cd $srcdir/src ; pwd`
1.1 paf 9: AC_SUBST(P3S)
10:
1.81 paf 11: dnl AC_CANONICAL_SYSTEM
12: AC_CANONICAL_HOST
13:
14: PARSER_VERSION="$VERSION (compiled on $host)"
1.8 paf 15: echo "/* automatically generated by configure */" > $srcdir/src/include/pa_version.h.new
16: echo "/* edit configure.in to change version number */" >> $srcdir/src/include/pa_version.h.new
17: echo "#define PARSER_VERSION \"$PARSER_VERSION\"" >> $srcdir/src/include/pa_version.h.new
18: cmp $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h >/dev/null 2>&1
1.1 paf 19: if test $? -ne 0 ; then
1.63 paf 20: rm -f $srcdir/src/include/pa_version.h && mv $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h && \
21: echo Updated $srcdir/src/include/pa_version.h
1.1 paf 22: else
1.8 paf 23: rm -f $srcdir/src/include/pa_version.h.new
1.1 paf 24: fi
25:
1.58 paf 26:
1.63 paf 27:
1.41 paf 28: AC_SUBST(host_os)
1.63 paf 29: case $host_os in
30: *cygwin* ) AC_DEFINE(CYGWIN,,using cygwin building environment);;
31: esac
1.41 paf 32:
33: dnl Checks for programs.
1.1 paf 34: AC_PROG_INSTALL
1.41 paf 35: AC_PROG_MAKE_SET
36: AC_PROG_RANLIB
37: AC_PROG_AWK
38:
39: AC_PROG_YACC
40: if test "$YACC" != "bison -y"; then
1.63 paf 41: AC_MSG_WARN(to regenerate Parser grammar YOU WOULD NEED BISON)
1.41 paf 42: else
1.63 paf 43: AC_MSG_CHECKING(bison version)
44: oldIFS=$IFS; IFS=.
45: set `bison -V | sed -e 's/^GNU Bison version //' -e 's/^bison (GNU Bison) //' -e 's/$/./'`
46: IFS=$oldIFS
47: if test "$1" = "1" -a "$2" -lt "25"; then
48: AC_MSG_WARN(Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2).)
49: fi
50: AC_MSG_RESULT($1.$2 (ok))
1.41 paf 51: fi
52:
1.62 paf 53: AC_PROG_CXX
1.1 paf 54: AC_PROG_CC
1.63 paf 55: dnl most tests should be compiled with C compiler [especially qsort test]
56: AC_LANG_C
57: AC_C_INLINE
1.1 paf 58:
1.141 ! moko 59: dnl Dll extension
! 60: AC_MSG_CHECKING(for dynamic-link library extension)
! 61: case "$host_os" in
! 62: cygwin)
! 63: dll_extension=dll
! 64: ;;
! 65: *)
! 66: dll_extension=so
! 67: esac
! 68: AC_MSG_RESULT($dll_extension)
! 69: AC_SUBST(dll_extension)
1.1 paf 70:
1.141 ! moko 71:
! 72: dnl Misc arguments
1.69 paf 73: AC_ARG_WITH(build-warnings, [ --with-build-warnings to enable build-time compiler warnings if gcc is used],
74: AC_MSG_WARN(enabling compiler warnings)
75: CXXFLAGS="$CXXFLAGS -W -Wall -Wstrict-prototypes -Wmissing-prototypes"
76: )
77:
1.63 paf 78: AC_ARG_WITH(assertions, [ --with-assertions to enable assertions],
79: AC_MSG_WARN(enabling assertions)
80: ,
81: AC_DEFINE(NDEBUG,,assertions disabled)
82: )
83:
1.141 ! moko 84: AC_ARG_WITH(pathlink,[ --with-pathlink=LKEY put dynamic libraries paths to binary
! 85: using linker key (-R, -rpath-link)],
! 86: LD_PATHLINK=$withval
! 87: )
! 88:
! 89: AC_ARG_WITH(sjlj-exceptions,[ --with-sjlj-exceptions enable simple 'throw' from dynamic library],
! 90: AC_DEFINE(PA_WITH_SJLJ_EXCEPTIONS,,one can throw from dynamic library)
! 91: )
1.96 misha 92:
1.141 ! moko 93:
! 94: dnl Safe mode argument
1.63 paf 95: AC_ARG_ENABLE(safe-mode, [ --disable-safe-mode to enable reading and executing
1.56 paf 96: files belonging to group+user other then effective],
1.1 paf 97: [
1.63 paf 98: SAFE_MODE=$enableval
1.1 paf 99: ]
100: )
1.141 ! moko 101:
1.56 paf 102: if test "$SAFE_MODE" = "no"; then
103: AC_MSG_WARN(enabling reading of files belonging to group+user other then effective)
104: else
1.57 paf 105: AC_DEFINE(PA_SAFE_MODE,,disabled reading of files belonging to group+user other then effective)
1.56 paf 106: fi
1.1 paf 107:
1.96 misha 108:
1.141 ! moko 109: dnl Disable execs argument
1.96 misha 110: AC_ARG_ENABLE(execs, [ --disable-execs to disable any execs
1.15 paf 111: (file::exec, file::cgi, unix mail:send)],
112: [
113: if test "$enableval" = "no"; then
1.16 paf 114: AC_MSG_WARN(disabling file execs)
1.15 paf 115: AC_DEFINE(NO_PA_EXECS,,pa_exec disabled)
1.16 paf 116: fi
117: ]
118: )
119:
1.56 paf 120:
1.141 ! moko 121: dnl String stream argument
1.96 misha 122: AC_ARG_ENABLE(stringstream, [ --disable-stringstream to disable stringstream usage.
123: when disabled table.save use more memory but it's safer on freebsd 4.x],
124: [
125: if test "$enableval" = "no"; then
126: AC_MSG_WARN(disabling stringstream usage)
127: AC_DEFINE(NO_STRINGSTREAM,,stringstream disabled)
128: fi
129: ]
130: )
131:
132:
1.141 ! moko 133: dnl Dynamic libstdc++ argument
1.63 paf 134: AC_ARG_WITH(dynamic-stdcpp, [ --with-dynamic-stdcpp link libstdc++ dynamically
135: by default, libstdc++ is linked statically],[
1.139 moko 136: AC_MSG_WARN(libstdc++ will be linked dynamically)
1.63 paf 137: CPP_LIBS="-lstdc++"
138: ],[
139: CPP_LIBS="-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic"
140: ])
141: AC_SUBST(CPP_LIBS)
142:
1.55 paf 143:
1.141 ! moko 144: dnl GC argument
1.63 paf 145: GC_LIB_NAME=gc
146: AC_ARG_WITH(shared-gc,[ --with-shared-gc[=D] D is the directory where
147: Boehm garbage collecting library is installed (shared lib)],[
148: GC_LIBS="-L$withval -l$GC_LIB_NAME"
149: ])
150: AC_ARG_WITH(static-gc,[ --with-static-gc[=D] D is the directory where
151: Boehm garbage collecting library is installed (static lib)],[
1.131 moko 152: GC_LIBS="$withval/lib$GC_LIB_NAME.a"
1.63 paf 153: ])
154: if test -z "$GC_LIBS"; then
155: #undefined? use any found in system
156: GC_LIBS="-l$GC_LIB_NAME"
157: AC_MSG_WARN([neither --with-shared/static-gc were specified, hoping linker would find it])
158: fi
1.55 paf 159:
1.63 paf 160: AC_MSG_CHECKING(for libgc)
161: SAVE_LIBS=$LIBS
162: LIBS="$LIBS $GC_LIBS"
163: AC_TRY_LINK([
164: extern int GC_dont_gc;
165: ],[
166: GC_dont_gc=0;
167: ],
168: AC_MSG_RESULT(yes)
169: ,
170: AC_MSG_RESULT(no)
171: AC_MSG_ERROR(please specify path to libgc: --with-shared-gc OR --with-static-gc)
1.38 paf 172: )
1.63 paf 173: AC_SUBST(GC_LIBS)
174: LIBS=$SAVE_LIBS
1.1 paf 175:
1.17 paf 176:
1.141 ! moko 177: dnl PCRE argument
1.125 misha 178: AC_ARG_WITH(static-pcre,[ --with-static-pcre=D D is the directory where
1.103 misha 179: PCRE library is installed (static lib)],[
180: PCRE=$withval
181: PCREINC="$PCRE/include"
182: PCRELIB="$PCRE/lib"
183:
184: if test \! -d $PCREINC -o \! -d $PCRELIB; then
185: AC_MSG_ERROR($PCRE does not seem to be valid PCRE installation directory)
186: fi
187:
188: PCRE_INCLUDES="-I$PCREINC"
189: PCRE_LIBS="$PCRELIB/libpcre.a"
190: ])
191: AC_SUBST(PCRE_INCLUDES)
192: AC_SUBST(PCRE_LIBS)
193:
194:
1.141 ! moko 195: dnl XML/XSLT argument
1.12 paf 196: AC_ARG_WITH(shared-xml,[ --with-shared-xml=D D is the directory where
197: Gnome XML libraries are installed (shared libs)],[
1.63 paf 198: GNOME_XML=$withval
199: XMLBIN="$GNOME_XML/bin"
200: XMLINC="$GNOME_XML/include"
201: XMLLIB="$GNOME_XML/lib"
202:
203: if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
204: AC_MSG_ERROR($GNOME_XML does not seem to be valid Gnome installation directory)
205: fi
206:
207: AC_DEFINE(XML,,xml-abled parser (uses shared library))
208:
209: LIBXML2_SO_NAME=`cd $XMLLIB ; ls libxml2.?? libxml2.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
210: LIBXSLT_SO_NAME=`cd $XMLLIB ; ls libxslt.?? libxslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
211: LIBEXSLT_SO_NAME=`cd $XMLLIB ; ls libexslt.?? libexslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
212:
1.91 paf 213: XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libxml2"
214: XML_LIBS="-L$XMLLIB -l$LIBXML2_SO_NAME -l$LIBXSLT_SO_NAME -l$LIBEXSLT_SO_NAME"
1.63 paf 215: if test \! -z "$LD_PATHLINK"; then
1.13 paf 216: XML_LIBS="$XML_LIBS -Wl,$LD_PATHLINK -Wl,$XMLLIB"
1.63 paf 217: fi
1.1 paf 218: ])
1.12 paf 219: AC_ARG_WITH(static-xml,[ --with-static-xml=D D is the directory where
220: Gnome XML libraries are installed (static libs)],[
1.63 paf 221: GNOME_XML=$withval
222: XMLBIN="$GNOME_XML/bin"
223: XMLINC="$GNOME_XML/include"
224: XMLLIB="$GNOME_XML/lib"
225:
226: if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
227: AC_MSG_ERROR($GNOME_XML does not seem to be valid Gnome installation directory)
228: fi
229:
230: AC_DEFINE(XML,,xml-abled parser (uses static library))
231:
1.91 paf 232: XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libxml2"
233: XML_LIBS="$XMLLIB/libxslt.a $XMLLIB/libexslt.a $XMLLIB/libxml2.a"
1.12 paf 234: ])
1.1 paf 235: AC_SUBST(XML_INCLUDES)
236: AC_SUBST(XML_LIBS)
1.33 paf 237:
1.141 ! moko 238: dnl Mail receive argument
1.91 paf 239: AC_ARG_WITH(glib-config,[ --with-glib-config=FILE FILE is glib library
240: configuration file (search for glib*-config)],
241: GLIB_CONFIG=$withval
242: )
243:
1.33 paf 244: AC_ARG_WITH(shared-mailreceive,[ --with-shared-mailreceive=D is the directory where
1.63 paf 245: Gnome MIME library is installed (shared lib)],[
246: GNOME_MIME=$withval
247: MIMEBIN="$GNOME_MIME/bin"
248: MIMEINC="$GNOME_MIME/include"
249: MIMELIB="$GNOME_MIME/lib"
250:
251: if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
252: AC_MSG_ERROR($GNOME_MIME does not seem to be valid Gnome installation directory)
253: fi
254:
255: AC_DEFINE(WITH_MAILRECEIVE,,has \$mail:received (uses shared library))
256:
257: LIBMIME_SO_NAME=`cd $MIMELIB ; ls libgmime.?? libgmime.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
258:
259: if test -z "$GLIB_CONFIG"; then
1.91 paf 260: GLIB_CONFIG=$XMLBIN/glib-config
1.63 paf 261: if test \! -x $GLIB_CONFIG; then
1.91 paf 262: GLIB_CONFIG=$XMLBIN/glib2-config
263: if test \! -x $GLIB_CONFIG; then
264: GLIB_CONFIG=glib-config
265: fi
1.63 paf 266: fi
267: fi
268: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
269: GLIB_LIBS=`$GLIB_CONFIG --libs`
270:
271: MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
272: MIME_LIBS="$GLIB_LIBS -L$MIMELIB -l$LIBMIME_SO_NAME"
273: if test \! -z "$LD_PATHLINK"; then
1.33 paf 274: MIME_LIBS="$MIME_LIBS -Wl,$LD_PATHLINK -Wl,$MIMELIB"
1.63 paf 275: fi
1.33 paf 276: ])
277: AC_ARG_WITH(static-mailreceive,[ --with-static-mailreceive=D is the directory where
278: Gnome MIME library is installed (static lib)],[
1.63 paf 279: GNOME_MIME=$withval
280: MIMEBIN="$GNOME_MIME/bin"
281: MIMEINC="$GNOME_MIME/include"
282: MIMELIB="$GNOME_MIME/lib"
283:
284: if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
285: AC_MSG_ERROR($GNOME_MIME does not seem to be valid Gnome installation directory)
286: fi
287:
288: AC_DEFINE(WITH_MAILRECEIVE,,has \$mail:received (uses static library))
289:
290: if test -z "$GLIB_CONFIG"; then
1.91 paf 291: GLIB_CONFIG=$XMLBIN/glib-config
1.63 paf 292: if test \! -x $GLIB_CONFIG; then
1.91 paf 293: GLIB_CONFIG=$XMLBIN/glib2-config
294: if test \! -x $GLIB_CONFIG; then
295: GLIB_CONFIG=glib-config
296: fi
1.63 paf 297: fi
298: fi
299: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
1.33 paf 300:
301: dnl '-L/usr/local/lib -lglib' -> /usr/local/lib
302: changequote(, )dnl
1.63 paf 303: GLIB_DIR=`$GLIB_CONFIG --libs | sed 's/.*-L\([^ ]*\).*/\1/'`
304: GLIB_NAME=`$GLIB_CONFIG --libs | sed 's/.*-l\([^ ]*\).*/\1/'`
1.33 paf 305: changequote([, ])dnl
1.63 paf 306: MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
307: MIME_LIBS="$MIMELIB/libgmime.a $GLIB_DIR/lib$GLIB_NAME.a"
1.33 paf 308: ])
309: AC_SUBST(MIME_INCLUDES)
310: AC_SUBST(MIME_LIBS)
1.18 paf 311:
312:
1.141 ! moko 313: dnl Sendmail argument
1.18 paf 314: AC_ARG_WITH(sendmail,[ \"--with-sendmail=COMMAND\" forces this command to send mail.
315: example: \"--with-sendmail=/usr/sbin/sendmail -t\"
316: (makes parser ignore user-defined sendmail commands)],
317: AC_DEFINE_UNQUOTED(PA_FORCED_SENDMAIL,"$withval",parser uses this command instead of user-defined sendmail commands)
318: )
319:
1.14 paf 320:
1.141 ! moko 321: dnl Apache module argument
1.131 moko 322: AC_ARG_WITH(apache,[ --with-apache=FILE is the full path for APXS
323: builds apache DSO module using apxs],[
324: APXS=$withval
325:
326: if test -z "$APXS" -o "$APXS" = "yes"; then
327: APXS=`which apxs 2>/dev/null`
328: fi;
329:
330: APACHE=`$APXS -q TARGET 2>/dev/null`
331:
332: if test -z "$APACHE"; then
333: AC_MSG_ERROR($APXS does not seem to be valid apache apxs utility path)
1.63 paf 334: fi
1.131 moko 335:
336: APACHE_MAIN_INC=`$APXS -q INCLUDEDIR`
337: APACHE_EXTRA_INC=`$APXS -q EXTRA_INCLUDES 2>/dev/null`
338: APACHE_INC="-I$APACHE_MAIN_INC $APACHE_EXTRA_INC"
339: APACHE_CFLAGS=`$APXS -q CFLAGS`
340: ])
341: AC_SUBST(APACHE)
342: AC_SUBST(APACHE_INC)
343: AC_SUBST(APACHE_CFLAGS)
344: AM_CONDITIONAL(COMPILE_APACHE_MODULE, test -n "$APACHE")
1.14 paf 345:
1.1 paf 346:
347: dnl Enable building of the convenience library
348: dnl and set LIBLTDL accordingly
1.51 paf 349: AC_LIBLTDL_CONVENIENCE(src/lib/ltdl)
1.1 paf 350: dnl Substitute INCLTDL and LIBLTDL in the Makefiles
351: AC_SUBST(INCLTDL)
352: AC_SUBST(LIBLTDL)
353:
354: dnl Configure libltdl
1.51 paf 355: AC_CONFIG_SUBDIRS(src/lib/ltdl)
1.60 paf 356:
357: dnl detecting which libraries are needed to dynamic open
1.141 ! moko 358:
1.60 paf 359: AC_LTDL_DLLIB
1.10 paf 360: AC_SUBST(LIBADD_DL)
1.1 paf 361:
362: dnl Checks for typedefs, structures, and compiler characteristics.
363:
1.79 paf 364: AC_C_BIGENDIAN(
365: AC_DEFINE(PA_BIG_ENDIAN,,compile for sparc processor)
366: ,
367: AC_DEFINE(PA_LITTLE_ENDIAN,,compile for intel processor or compatible)
368: ,
369: AC_MSG_ERROR(word endianness not determined for some obscure reason)
370: )
371:
1.1 paf 372: AC_TYPE_SIZE_T
1.141 ! moko 373:
1.34 paf 374: dnl gmime
1.141 ! moko 375:
1.34 paf 376: AC_CHECK_TYPE(off_t, long)
377: AC_CHECK_TYPE(ssize_t, int)
378:
1.1 paf 379:
1.62 paf 380: dnl Checks for C header files.
1.1 paf 381:
1.10 paf 382: AC_HEADER_TIME
383:
1.1 paf 384: AC_CHECK_HEADERS(
1.63 paf 385: assert.h \
1.48 paf 386: signal.h \
1.1 paf 387: unistd.h \
388: process.h \
389: stddef.h \
390: stdarg.h \
391: fcntl.h \
392: sys/stat.h \
393: io.h \
394: stdio.h \
395: errno.h \
396: ctype.h \
397: math.h \
1.35 paf 398: crypt.h \
1.3 paf 399: time.h sys/time.h \
1.1 paf 400: string.h \
401: direct.h \
402: setjmp.h \
403: memory.h \
1.140 moko 404: limits.h \
1.1 paf 405: sys/file.h \
406: sys/locking.h \
1.3 paf 407: sys/types.h \
1.5 paf 408: sys/select.h \
1.39 paf 409: sys/resource.h \
1.49 paf 410: winsock.h \
411: sys/socket.h \
412: netinet/in.h \
413: arpa/inet.h \
414: netdb.h
1.1 paf 415: )
416:
417: dnl Checks for libraries.
418:
419: dnl Some systems (Solaris 2.x) require libnsl (Network Services Library)
1.141 ! moko 420:
1.1 paf 421: case "$host" in
1.114 misha 422: *-freebsd4*)
423: AC_DEFINE(FREEBSD4,,FreeBSD4X target platform)
424: ;;
1.1 paf 425: *-sunos5.6* | *-solaris2.6*)
1.63 paf 426: AC_CHECK_LIB(xnet, main)
1.1 paf 427: ;;
428: *-sunos5* | *-solaris2*)
1.63 paf 429: AC_CHECK_LIB(socket, main)
430: AC_CHECK_LIB(nsl, main)
1.1 paf 431: ;;
432: *-nec-sysv4*)
1.63 paf 433: AC_CHECK_LIB(nsl, gethostbyname)
434: AC_CHECK_LIB(socket, socket)
1.1 paf 435: ;;
436: *-cygwin*)
1.63 paf 437: AC_DEFINE(WIN32,,Windows32 target platform)
438: AC_CHECK_LIB(wsock32, socket)
1.1 paf 439: ;;
440: esac
441:
442: AC_CHECK_LIB(m, sin)
1.35 paf 443: AC_CHECK_LIB(crypt, crypt)
444:
1.1 paf 445: dnl Checks for functions.
446:
447: AC_CHECK_FUNCS(
448: flock \
449: _locking \
1.7 paf 450: fcntl \
1.4 paf 451: lockf \
1.53 paf 452: ftruncate \
1.119 misha 453: fchmod \
1.35 paf 454: getrusage \
1.47 paf 455: gettimeofday \
1.49 paf 456: crypt \
1.80 paf 457: sigsetjmp \
1.94 misha 458: siglongjmp \
459: unsetenv
1.63 paf 460: )
461:
462: dnl on some linux[seen on 2.4] it's a macro
463: PA_CHECK_SIGSETJMP
464:
465: dnl see comment above
466: AC_LANG_PUSH(C++)
467: PA_CHECK_MATH_FUNCS_ONE_ARG(
468: trunc \
469: round \
470: sign
1.1 paf 471: )
1.63 paf 472: AC_LANG_POP
1.3 paf 473:
1.75 paf 474: dnl We require qsort(3)
1.3 paf 475:
476: AC_CHECK_FUNCS(qsort, , AC_MSG_ERROR([No qsort library function.]))
1.1 paf 477:
1.46 paf 478: dnl For correct mail receiving we need to know local offset from GMT
479: dnl it be timezone+(daylight?60*60*sign(timezone):0)
480: dnl or it can be tm.tm_gmtoff
481: dnl or it can be tm.tm_tzadj
482:
483: AC_MSG_CHECKING(for timezone variable)
1.141 ! moko 484: AC_TRY_COMPILE([#include <time.h>],
1.46 paf 485: [
486: time_t test=timezone;
1.141 ! moko 487: ],
! 488: AC_DEFINE(HAVE_TIMEZONE)
! 489: AC_MSG_RESULT(yes),
! 490: AC_MSG_RESULT(no))
1.46 paf 491:
492: AC_MSG_CHECKING(for daylight variable)
1.141 ! moko 493: AC_TRY_COMPILE([#include <time.h>],
1.46 paf 494: [
495: int test=daylight;
1.141 ! moko 496: ],
! 497: AC_DEFINE(HAVE_DAYLIGHT)
! 498: AC_MSG_RESULT(yes),
! 499: AC_MSG_RESULT(no))
1.46 paf 500:
501: AC_MSG_CHECKING(for tm_gmtoff in struct tm)
1.141 ! moko 502: AC_TRY_COMPILE([#include <time.h>],
! 503: [struct tm tm;
! 504: tm.tm_gmtoff=0;
! 505: ],
! 506: AC_DEFINE(HAVE_TM_GMTOFF)
! 507: AC_MSG_RESULT(yes),
! 508: AC_MSG_RESULT(no))
1.46 paf 509:
510: AC_MSG_CHECKING(for tm_tzadj in struct tm)
1.141 ! moko 511: AC_TRY_COMPILE([#include <time.h>],
! 512: [struct tm tm;
! 513: tm.tm_tzadj=0;
! 514: ],
! 515: AC_DEFINE(HAVE_TM_TZADJ)
! 516: AC_MSG_RESULT(yes),
! 517: AC_MSG_RESULT(no))
! 518:
1.17 paf 519:
1.58 paf 520: dnl Output header and makefiles
521:
522: AH_TEMPLATE([HAVE_DLD],[Define if you have the GNU dld library])
523:
524: AH_TEMPLATE([HAVE_LIBDL],
525: [Define if you have the libdl library or equivalent.])
526:
527: AH_TEMPLATE([HAVE_SHL_LOAD],
528: [Define if you have the shl_load function. ])
529:
530:
531: AH_TEMPLATE([size_t],
532: [Define to `unsigned int' if <sys/types.h> does not define.])
533:
534: AH_TEMPLATE([ssize_t],
535: [Define to `int' if <sys/types.h> does not define.])
536:
537: AH_TEMPLATE([HAVE_DAYLIGHT],
538: [Define if you have daylight external variable in <time.h>])
539:
540: AH_TEMPLATE([HAVE_TIMEZONE],
541: [Define if you have timezone external variable in <time.h>])
542:
543: AH_TEMPLATE([HAVE_TM_GMTOFF],
544: [Define if you have tm_gmtoff member of tm structure in <time.h>])
545:
546: AH_TEMPLATE([HAVE_TM_TZADJ],
547: [Define if you have tm_tzadj member of tm structure in <time.h>])
548:
1.1 paf 549:
550: AM_CONFIG_HEADER(src/include/pa_config_auto.h)
1.141 ! moko 551:
1.66 paf 552: AC_OUTPUT(
553: Makefile
554: src/Makefile
555: src/types/Makefile
556: src/classes/Makefile
557: src/include/Makefile
558: src/main/Makefile
559: src/sql/Makefile
560: src/lib/Makefile
1.71 paf 561: src/lib/gd/Makefile
562: src/lib/smtp/Makefile
1.66 paf 563: src/lib/gc/Makefile
564: src/lib/gc/include/Makefile
1.108 misha 565: src/lib/pcre/Makefile
1.66 paf 566: src/lib/cord/Makefile
567: src/lib/cord/include/Makefile
568: src/lib/cord/include/private/Makefile
569: src/lib/ltdl/Makefile
570: src/lib/md5/Makefile
571: src/lib/sdbm/Makefile
1.133 moko 572: src/lib/sdbm/pa-include/Makefile
1.128 misha 573: src/lib/json/Makefile
1.137 moko 574: src/lib/memcached/Makefile
1.138 moko 575: src/lib/curl/Makefile
1.66 paf 576: src/targets/Makefile
577: src/targets/cgi/Makefile
1.131 moko 578: src/targets/apache/Makefile
1.66 paf 579: src/targets/isapi/Makefile
580: etc/Makefile
581: etc/parser3.charsets/Makefile
1.67 paf 582: bin/Makefile
583: bin/auto.p.dist)
E-mail: