Annotation of parser3/configure.in, revision 1.172

1.142     moko        1: dnl Autoconf initialisation
                      2: AC_PREREQ(2.59)
1.167     moko        3: AC_INIT(parser, 3.4.2)
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.168     moko       18: AC_DEFINE_UNQUOTED(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
1.171     moko      137: 
                    138:        if test "$GC" = "yes"; then
                    139:                GC=""
                    140:                GC_LIBS="-lgc"
                    141:                AC_MSG_WARN([--with-gc value was not specified, hoping linker would find it])
                    142:        fi
1.158     moko      143: ],[
                    144:        GC_LIBS="-lgc"
                    145:        AC_MSG_WARN([--with-gc was not specified, hoping linker would find it])
1.63      paf       146: ])
1.153     moko      147: 
1.158     moko      148: if test -z "$GC_OK"; then
1.153     moko      149:        AC_MSG_CHECKING(for libgc)
                    150:        SAVE_LIBS=$LIBS
                    151:        LIBS="$LIBS $GC_LIBS"
1.158     moko      152:        AC_TRY_LINK([ extern int GC_dont_gc; ],[ GC_dont_gc=0; ],
1.153     moko      153:                AC_MSG_RESULT(yes)
                    154:        ,
                    155:                AC_MSG_RESULT(no)
1.158     moko      156:                if test -z "$GC"; then
1.171     moko      157:                        AC_MSG_ERROR(please specify path to libgc: --with-gc=D)
1.158     moko      158:                else
                    159:                        AC_MSG_ERROR($GC does not seem to be valid libgc installation directory)
                    160:                fi
1.153     moko      161:        )
                    162:        LIBS=$SAVE_LIBS
1.63      paf       163: fi
1.158     moko      164: 
1.63      paf       165: AC_SUBST(GC_LIBS)
1.1       paf       166: 
1.17      paf       167: 
1.141     moko      168: dnl PCRE argument
1.164     moko      169: AC_ARG_WITH(pcre,[  --with-pcre=D           D is the directory where
1.158     moko      170:                           PCRE library is installed],[
1.103     misha     171:        PCRE=$withval
1.158     moko      172:        PCRE_INCLUDES="-I$PCRE/include"
                    173:        PCRE_LIBS="$PCRE/lib/libpcre.la"
1.103     misha     174: 
1.159     moko      175:        if test -f $PCRE/include/pcre.h -a -f $PCRE_LIBS; then
                    176:                PCRE_OK="yes"
1.158     moko      177:        else
                    178:                PCRE_LIBS="-L$PCRE -lpcre"
1.103     misha     179:        fi
                    180: 
1.171     moko      181:        if test "$PCRE" = "yes"; then
                    182:                PCRE=""
                    183:                PCRE_LIBS="-lpcre"
                    184:                PCRE_INCLUDES=""
                    185:                AC_MSG_WARN([--with-pcre value was not specified, hoping linker would find it])
                    186:        fi
1.158     moko      187: ],[
                    188:        PCRE_LIBS="-lpcre"
1.170     moko      189:        PCRE_INCLUDES=""
1.158     moko      190:        AC_MSG_WARN([--with-pcre was not specified, hoping linker would find it])
1.103     misha     191: ])
1.158     moko      192: 
1.159     moko      193: if test -z "$PCRE_OK"; then
1.158     moko      194:        AC_MSG_CHECKING(for prce)
                    195:        SAVE_LIBS=$LIBS
                    196:        LIBS="$LIBS $PCRE_LIBS $PCRE_INCLUDES"
1.159     moko      197:        AC_TRY_LINK([ #include <pcre.h> ],[ const char *v=pcre_version(); ],
1.158     moko      198:                AC_MSG_RESULT(yes)
                    199:        ,
                    200:                AC_MSG_RESULT(no)
                    201:                if test -z "$PCRE"; then
1.171     moko      202:                        AC_MSG_ERROR(please specify path to PCRE: --with-pcre=D)
1.158     moko      203:                else
                    204:                        AC_MSG_ERROR($PCRE does not seem to be valid PCRE installation directory)
                    205:                fi
                    206:        )
                    207:        LIBS=$SAVE_LIBS
                    208: fi
                    209: 
1.103     misha     210: AC_SUBST(PCRE_INCLUDES)
                    211: AC_SUBST(PCRE_LIBS)
                    212: 
                    213: 
1.141     moko      214: dnl XML/XSLT argument
1.164     moko      215: AC_ARG_WITH(xml,[  --with-xml=D            D is the directory where
1.159     moko      216:                           Gnome XML libraries are installed],[
1.63      paf       217: 
1.159     moko      218:        XML=$withval
                    219:        XML_LIBS="-lxml2 -lxslt -lexslt"
1.63      paf       220: 
1.159     moko      221:        if test -z "$XML" -o "$XML" = "yes"; then
                    222:                XML=""
                    223:                XML_INCLUDES="-I/usr/include/libxml2"
                    224:                AC_MSG_WARN([--with-xml value was not specified, hoping linker would find it])
                    225:        else
                    226:                XML_INCLUDES="-I$XML/include -I$XML/include/libxml2"
1.63      paf       227: 
1.159     moko      228:                if test -f $XML/include/libxslt/xslt.h -a -f $XML/lib/libxml2.la \
                    229:                        -a -f $XML/lib/libxslt.la -a -f $XML/lib/libexslt.la; then
                    230:                        XML_LIBS="$XML/lib/libxml2.la $XML/lib/libxslt.la $XML/lib/libexslt.la"
                    231:                        XML_OK="yes"
                    232:                fi
1.63      paf       233:        fi
                    234: 
1.159     moko      235:        if test -z "$XML_OK"; then
                    236:                AC_MSG_CHECKING(for xml)
                    237:                SAVE_LIBS=$LIBS
                    238:                LIBS="$LIBS $XML_LIBS $XML_INCLUDES"
                    239:                AC_TRY_LINK([ #include <libxslt/xslt.h> ],[ const char *v=xsltEngineVersion; ],
                    240:                        AC_MSG_RESULT(yes)
                    241:                ,
                    242:                        AC_MSG_RESULT(no)
                    243:                        if test -z "$XML"; then
1.171     moko      244:                                AC_MSG_ERROR(please specify path to Gnome XML libraries: --with-xml=D)
1.159     moko      245:                        else
                    246:                                AC_MSG_ERROR($XML does not seem to be valid Gnome XML installation directory)
                    247:                        fi
                    248:                )
                    249:                LIBS=$SAVE_LIBS
1.63      paf       250:        fi
1.159     moko      251:        AC_DEFINE(XML,,xml-abled parser)
                    252: ])
1.63      paf       253: 
1.1       paf       254: AC_SUBST(XML_INCLUDES)
                    255: AC_SUBST(XML_LIBS)
1.33      paf       256: 
1.141     moko      257: dnl Mail receive argument
1.91      paf       258: AC_ARG_WITH(glib-config,[  --with-glib-config=FILE FILE is glib library
                    259:                           configuration file (search for glib*-config)],
                    260:        GLIB_CONFIG=$withval
                    261: )
                    262: 
1.33      paf       263: AC_ARG_WITH(shared-mailreceive,[  --with-shared-mailreceive=D is the directory where
1.63      paf       264:                           Gnome MIME library is installed (shared lib)],[
                    265:        GNOME_MIME=$withval
                    266:        MIMEBIN="$GNOME_MIME/bin"
                    267:        MIMEINC="$GNOME_MIME/include"
                    268:        MIMELIB="$GNOME_MIME/lib"
                    269: 
                    270:        if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
                    271:                AC_MSG_ERROR($GNOME_MIME does not seem to be valid Gnome installation directory)
                    272:        fi
                    273: 
                    274:        AC_DEFINE(WITH_MAILRECEIVE,,has \$mail:received (uses shared library))
                    275:        
                    276:        LIBMIME_SO_NAME=`cd $MIMELIB ; ls libgmime.?? libgmime.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
                    277: 
                    278:        if test -z "$GLIB_CONFIG"; then
1.91      paf       279:                GLIB_CONFIG=$XMLBIN/glib-config
1.63      paf       280:                if test \! -x $GLIB_CONFIG; then
1.91      paf       281:                        GLIB_CONFIG=$XMLBIN/glib2-config
                    282:                        if test \! -x $GLIB_CONFIG; then
                    283:                                GLIB_CONFIG=glib-config
                    284:                        fi
1.63      paf       285:                fi
                    286:        fi
                    287:        GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
                    288:        GLIB_LIBS=`$GLIB_CONFIG --libs`
                    289: 
                    290:        MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
                    291:        MIME_LIBS="$GLIB_LIBS -L$MIMELIB -l$LIBMIME_SO_NAME"
                    292:        if test \! -z "$LD_PATHLINK"; then
1.33      paf       293:        MIME_LIBS="$MIME_LIBS -Wl,$LD_PATHLINK -Wl,$MIMELIB"
1.63      paf       294:        fi
1.33      paf       295: ])
                    296: AC_ARG_WITH(static-mailreceive,[  --with-static-mailreceive=D is the directory where
                    297:                           Gnome MIME library is installed (static lib)],[
1.63      paf       298:        GNOME_MIME=$withval
                    299:        MIMEBIN="$GNOME_MIME/bin"
                    300:        MIMEINC="$GNOME_MIME/include"
                    301:        MIMELIB="$GNOME_MIME/lib"
                    302: 
                    303:        if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
                    304:                AC_MSG_ERROR($GNOME_MIME does not seem to be valid Gnome installation directory)
                    305:        fi
                    306: 
                    307:        AC_DEFINE(WITH_MAILRECEIVE,,has \$mail:received (uses static library))
                    308: 
                    309:        if test -z "$GLIB_CONFIG"; then
1.91      paf       310:                GLIB_CONFIG=$XMLBIN/glib-config
1.63      paf       311:                if test \! -x $GLIB_CONFIG; then
1.91      paf       312:                        GLIB_CONFIG=$XMLBIN/glib2-config
                    313:                        if test \! -x $GLIB_CONFIG; then
                    314:                                GLIB_CONFIG=glib-config
                    315:                        fi
1.63      paf       316:                fi
                    317:        fi
                    318:        GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
1.33      paf       319: 
                    320: dnl  '-L/usr/local/lib -lglib' -> /usr/local/lib
                    321: changequote(, )dnl
1.63      paf       322:        GLIB_DIR=`$GLIB_CONFIG --libs | sed 's/.*-L\([^ ]*\).*/\1/'`
                    323:        GLIB_NAME=`$GLIB_CONFIG --libs | sed 's/.*-l\([^ ]*\).*/\1/'`
1.33      paf       324: changequote([, ])dnl
1.63      paf       325:        MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
1.153     moko      326:        MIME_LIBS="$MIMELIB/libgmime.la $GLIB_DIR/lib$GLIB_NAME.la"
1.33      paf       327: ])
                    328: AC_SUBST(MIME_INCLUDES)
                    329: AC_SUBST(MIME_LIBS)
1.18      paf       330: 
                    331: 
1.141     moko      332: dnl Sendmail argument
1.18      paf       333: AC_ARG_WITH(sendmail,[  \"--with-sendmail=COMMAND\" forces this command to send mail.
                    334:                           example: \"--with-sendmail=/usr/sbin/sendmail -t\"
                    335:                           (makes parser ignore user-defined sendmail commands)],
                    336:        AC_DEFINE_UNQUOTED(PA_FORCED_SENDMAIL,"$withval",parser uses this command instead of user-defined sendmail commands)
                    337: )
                    338: 
1.14      paf       339: 
1.141     moko      340: dnl Apache module argument
1.164     moko      341: AC_ARG_WITH(apache,[  --with-apache=FILE      FILE is the full path for APXS
1.131     moko      342:                           builds apache DSO module using apxs],[
                    343:        APXS=$withval
                    344: 
                    345:        if test -z "$APXS" -o "$APXS" = "yes"; then
                    346:                APXS=`which apxs 2>/dev/null`
1.157     moko      347:                if test -z "$APXS"; then
                    348:                        APXS=`which apxs2 2>/dev/null`
                    349:                fi
                    350:        fi
1.131     moko      351: 
                    352:        APACHE=`$APXS -q TARGET 2>/dev/null`
                    353: 
                    354:        if test -z "$APACHE"; then
1.157     moko      355:                AC_MSG_ERROR($APXS does not seem to be valid apache apxs utility path)
1.63      paf       356:        fi
1.131     moko      357: 
                    358:        APACHE_MAIN_INC=`$APXS -q INCLUDEDIR`
                    359:        APACHE_EXTRA_INC=`$APXS -q EXTRA_INCLUDES 2>/dev/null`
                    360:        APACHE_INC="-I$APACHE_MAIN_INC $APACHE_EXTRA_INC"
                    361:        APACHE_CFLAGS=`$APXS -q CFLAGS`
                    362: ])
                    363: AC_SUBST(APACHE)
                    364: AC_SUBST(APACHE_INC)
                    365: AC_SUBST(APACHE_CFLAGS)
                    366: AM_CONDITIONAL(COMPILE_APACHE_MODULE, test -n "$APACHE")
1.14      paf       367: 
1.1       paf       368: 
                    369: dnl Enable building of the convenience library
1.142     moko      370: LT_CONFIG_LTDL_DIR(src/lib/ltdl)
1.162     moko      371: LT_INIT(dlopen win32-dll no-pic)
1.142     moko      372: LTDL_INIT
1.1       paf       373: 
1.60      paf       374: 
1.1       paf       375: dnl Checks for typedefs, structures, and compiler characteristics.
1.79      paf       376: AC_C_BIGENDIAN(
                    377:        AC_DEFINE(PA_BIG_ENDIAN,,compile for sparc processor)
                    378: ,
                    379:        AC_DEFINE(PA_LITTLE_ENDIAN,,compile for intel processor or compatible)
                    380: ,
                    381:        AC_MSG_ERROR(word endianness not determined for some obscure reason)
                    382: )
                    383: 
1.1       paf       384: AC_TYPE_SIZE_T
1.141     moko      385: 
1.142     moko      386: 
1.34      paf       387: dnl gmime
                    388: AC_CHECK_TYPE(off_t, long)
                    389: AC_CHECK_TYPE(ssize_t, int)
                    390: 
1.1       paf       391: 
1.62      paf       392: dnl Checks for C header files.
1.10      paf       393: AC_HEADER_TIME
                    394: 
1.1       paf       395: AC_CHECK_HEADERS(
1.63      paf       396: assert.h \
1.48      paf       397: signal.h \
1.1       paf       398: unistd.h \
                    399: process.h \
                    400: stddef.h \
                    401: stdarg.h \
                    402: fcntl.h \
                    403: sys/stat.h \
                    404: io.h \
                    405: stdio.h \
                    406: errno.h \
                    407: ctype.h \
                    408: math.h \
1.35      paf       409: crypt.h \
1.3       paf       410: time.h sys/time.h \
1.1       paf       411: string.h \
                    412: direct.h \
                    413: setjmp.h \
                    414: memory.h \
1.140     moko      415: limits.h \
1.1       paf       416: sys/file.h \
                    417: sys/locking.h \
1.3       paf       418: sys/types.h \
1.5       paf       419: sys/select.h \
1.39      paf       420: sys/resource.h \
1.49      paf       421: winsock.h \
                    422: sys/socket.h \
                    423: netinet/in.h \
                    424: arpa/inet.h \
                    425: netdb.h
1.1       paf       426: )
                    427: 
1.142     moko      428: 
                    429: dnl Checks for libraries
                    430: 
1.1       paf       431: 
                    432: dnl Some systems (Solaris 2.x) require libnsl (Network Services Library)
                    433: case "$host" in
1.114     misha     434:   *-freebsd4*)
                    435:          AC_DEFINE(FREEBSD4,,FreeBSD4X target platform)
                    436:   ;;
1.1       paf       437:   *-sunos5.6* | *-solaris2.6*)
1.63      paf       438:          AC_CHECK_LIB(xnet, main)
1.1       paf       439:   ;;
                    440:   *-sunos5* | *-solaris2*)
1.63      paf       441:          AC_CHECK_LIB(socket, main)
                    442:          AC_CHECK_LIB(nsl, main)
1.1       paf       443:   ;;
                    444:   *-nec-sysv4*)
1.63      paf       445:          AC_CHECK_LIB(nsl, gethostbyname)
                    446:          AC_CHECK_LIB(socket, socket)
1.1       paf       447:   ;;
                    448:   *-cygwin*)
1.63      paf       449:          AC_DEFINE(WIN32,,Windows32 target platform)
                    450:          AC_CHECK_LIB(wsock32, socket)
1.1       paf       451:   ;;
                    452: esac
                    453: 
                    454: AC_CHECK_LIB(m, sin)
1.35      paf       455: AC_CHECK_LIB(crypt, crypt)
                    456: 
1.1       paf       457: dnl Checks for functions.
                    458: 
                    459: AC_CHECK_FUNCS(
                    460: flock \
                    461: _locking \
1.7       paf       462: fcntl \
1.4       paf       463: lockf \
1.53      paf       464: ftruncate \
1.119     misha     465: fchmod \
1.35      paf       466: getrusage \
1.47      paf       467: gettimeofday \
1.49      paf       468: crypt \
1.80      paf       469: sigsetjmp \
1.94      misha     470: siglongjmp \
                    471: unsetenv
1.63      paf       472: )
                    473: 
1.142     moko      474: dnl on some linux[seen on 2.4] it's a macro
1.63      paf       475: PA_CHECK_SIGSETJMP
                    476: 
                    477: dnl see comment above
                    478: AC_LANG_PUSH(C++)
                    479: PA_CHECK_MATH_FUNCS_ONE_ARG(
                    480: trunc \
                    481: round \
                    482: sign
1.1       paf       483: )
1.63      paf       484: AC_LANG_POP
1.3       paf       485: 
1.75      paf       486: dnl We require qsort(3)
1.3       paf       487: 
                    488: AC_CHECK_FUNCS(qsort, , AC_MSG_ERROR([No qsort library function.]))
1.1       paf       489: 
1.46      paf       490: dnl For correct mail receiving we need to know local offset from GMT
                    491: dnl it be timezone+(daylight?60*60*sign(timezone):0)
                    492: dnl or it can be tm.tm_gmtoff
                    493: dnl or it can be tm.tm_tzadj
                    494: 
                    495: AC_MSG_CHECKING(for timezone variable)
1.141     moko      496: AC_TRY_COMPILE([#include <time.h>],
1.46      paf       497: [
                    498: time_t test=timezone;
1.141     moko      499: ],
                    500: AC_DEFINE(HAVE_TIMEZONE)
                    501: AC_MSG_RESULT(yes),
                    502: AC_MSG_RESULT(no))
1.46      paf       503: 
                    504: AC_MSG_CHECKING(for daylight variable)
1.141     moko      505: AC_TRY_COMPILE([#include <time.h>],
1.46      paf       506: [
                    507: int test=daylight;
1.141     moko      508: ],
                    509: AC_DEFINE(HAVE_DAYLIGHT)
                    510: AC_MSG_RESULT(yes),
                    511: AC_MSG_RESULT(no))
1.46      paf       512: 
                    513: AC_MSG_CHECKING(for tm_gmtoff in struct tm)
1.141     moko      514: AC_TRY_COMPILE([#include <time.h>],
                    515: [struct tm tm;
                    516: tm.tm_gmtoff=0;
                    517: ],
                    518: AC_DEFINE(HAVE_TM_GMTOFF)
                    519: AC_MSG_RESULT(yes),
                    520: AC_MSG_RESULT(no))
1.46      paf       521: 
                    522: AC_MSG_CHECKING(for tm_tzadj in struct tm)
1.141     moko      523: AC_TRY_COMPILE([#include <time.h>],
                    524: [struct tm tm;
                    525: tm.tm_tzadj=0;
                    526: ],
                    527: AC_DEFINE(HAVE_TM_TZADJ)
                    528: AC_MSG_RESULT(yes),
                    529: AC_MSG_RESULT(no))
                    530: 
1.17      paf       531: 
1.58      paf       532: dnl Output header and makefiles
                    533: AH_TEMPLATE([HAVE_DLD],[Define if you have the GNU dld library])
                    534: 
                    535: AH_TEMPLATE([HAVE_LIBDL],
                    536:        [Define if you have the libdl library or equivalent.])
                    537: 
                    538: AH_TEMPLATE([HAVE_SHL_LOAD],
                    539:        [Define if you have the shl_load function. ])
                    540: 
                    541: 
                    542: AH_TEMPLATE([size_t],
                    543:        [Define to `unsigned int' if <sys/types.h> does not define.])
                    544: 
                    545: AH_TEMPLATE([ssize_t],
                    546:        [Define to `int' if <sys/types.h> does not define.])
                    547: 
                    548: AH_TEMPLATE([HAVE_DAYLIGHT],
                    549:        [Define if you have daylight external variable in <time.h>])
                    550: 
                    551: AH_TEMPLATE([HAVE_TIMEZONE],
                    552:        [Define if you have timezone external variable in <time.h>])
                    553: 
                    554: AH_TEMPLATE([HAVE_TM_GMTOFF],
                    555:        [Define if you have tm_gmtoff member of tm structure in <time.h>])
                    556: 
                    557: AH_TEMPLATE([HAVE_TM_TZADJ],
                    558:        [Define if you have tm_tzadj member of tm structure in <time.h>])
                    559: 
1.1       paf       560: 
                    561: AM_CONFIG_HEADER(src/include/pa_config_auto.h)
1.141     moko      562: 
1.66      paf       563: AC_OUTPUT(
                    564:        Makefile 
                    565:        src/Makefile 
                    566:        src/types/Makefile 
                    567:        src/classes/Makefile 
                    568:        src/include/Makefile 
                    569:        src/main/Makefile 
                    570:        src/sql/Makefile 
                    571:        src/lib/Makefile 
1.71      paf       572:        src/lib/gd/Makefile 
                    573:        src/lib/smtp/Makefile 
1.66      paf       574:        src/lib/gc/Makefile 
                    575:        src/lib/gc/include/Makefile
1.108     misha     576:        src/lib/pcre/Makefile 
1.66      paf       577:        src/lib/cord/Makefile
                    578:        src/lib/cord/include/Makefile
                    579:        src/lib/cord/include/private/Makefile
                    580:        src/lib/md5/Makefile
                    581:        src/lib/sdbm/Makefile
1.133     moko      582:        src/lib/sdbm/pa-include/Makefile
1.128     misha     583:        src/lib/json/Makefile
1.137     moko      584:        src/lib/memcached/Makefile
1.138     moko      585:        src/lib/curl/Makefile
1.66      paf       586:        src/targets/Makefile
                    587:        src/targets/cgi/Makefile
1.131     moko      588:        src/targets/apache/Makefile
1.66      paf       589:        src/targets/isapi/Makefile
                    590:        etc/Makefile
                    591:        etc/parser3.charsets/Makefile
1.67      paf       592:        bin/Makefile
                    593:        bin/auto.p.dist)

E-mail: