Annotation of parser3/configure.in, revision 1.166

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

E-mail: