--- parser3/Attic/configure.in 2002/09/19 10:10:56 1.42 +++ parser3/Attic/configure.in 2002/12/09 09:18:48 1.52 @@ -361,14 +361,14 @@ AM_CONDITIONAL(COMPILE_APACHE13_MODULE, dnl Enable building of the convenience library dnl and set LIBLTDL accordingly -AC_LIBLTDL_CONVENIENCE(src/lib/libltdl) +AC_LIBLTDL_CONVENIENCE(src/lib/ltdl) dnl Substitute INCLTDL and LIBLTDL in the Makefiles AC_SUBST(INCLTDL) AC_SUBST(LIBLTDL) dnl Configure libltdl -AC_CONFIG_SUBDIRS(src/lib/libltdl) -dnl moved from src/lib/libltdl/configure.in +AC_CONFIG_SUBDIRS(src/lib/ltdl) +dnl copied from lib/libltdl/configure.in [can not move, they need this info to detect other vitals, ex. NEED_USCORE] LIBADD_DL= AC_CHECK_LIB(dl, dlopen, [AC_DEFINE(HAVE_LIBDL, 1) LIBADD_DL="-ldl"], [AC_CHECK_FUNC(dlopen, [AC_DEFINE(HAVE_LIBDL, 1)])]) @@ -398,6 +398,7 @@ dnl Checks for header files. AC_HEADER_TIME AC_CHECK_HEADERS( +signal.h \ unistd.h \ process.h \ stddef.h \ @@ -422,7 +423,11 @@ sys/locking.h \ sys/types.h \ sys/select.h \ sys/resource.h \ -winsock.h +winsock.h \ +sys/socket.h \ +netinet/in.h \ +arpa/inet.h \ +netdb.h ) dnl Checks for libraries. @@ -465,7 +470,9 @@ _locking \ fcntl \ lockf \ getrusage \ -crypt +gettimeofday \ +crypt \ +sigsetjmp siglongjmp ) dnl We require qsort(3) and select(2). @@ -473,6 +480,48 @@ dnl We require qsort(3) and select(2). AC_CHECK_FUNCS(qsort, , AC_MSG_ERROR([No qsort library function.])) AC_CHECK_FUNCS(select, , AC_MSG_ERROR([No select library function.])) +dnl For correct mail receiving we need to know local offset from GMT +dnl it be timezone+(daylight?60*60*sign(timezone):0) +dnl or it can be tm.tm_gmtoff +dnl or it can be tm.tm_tzadj + +AC_MSG_CHECKING(for timezone variable) +AC_TRY_COMPILE([#include ], +[ +time_t test=timezone; +], +AC_DEFINE(HAVE_TIMEZONE) +AC_MSG_RESULT(yes), +AC_MSG_RESULT(no)) + +AC_MSG_CHECKING(for daylight variable) +AC_TRY_COMPILE([#include ], +[ +int test=daylight; +], +AC_DEFINE(HAVE_DAYLIGHT) +AC_MSG_RESULT(yes), +AC_MSG_RESULT(no)) + +AC_MSG_CHECKING(for tm_gmtoff in struct tm) +AC_TRY_COMPILE([#include ], +[struct tm tm; +tm.tm_gmtoff=0; +], +AC_DEFINE(HAVE_TM_GMTOFF) +AC_MSG_RESULT(yes), +AC_MSG_RESULT(no)) + +AC_MSG_CHECKING(for tm_tzadj in struct tm) +AC_TRY_COMPILE([#include ], +[struct tm tm; +tm.tm_tzadj=0; +], +AC_DEFINE(HAVE_TM_TZADJ) +AC_MSG_RESULT(yes), +AC_MSG_RESULT(no)) + + AC_MSG_CHECKING(whether compiler supports pragma pack) AC_TRY_COMPILE( #pragma pack(1) @@ -562,4 +611,4 @@ AC_SUBST(sqldriversdir) dnl Output makefiles AM_CONFIG_HEADER(src/include/pa_config_auto.h) -AC_OUTPUT(Makefile src/Makefile src/types/Makefile src/classes/Makefile src/classes/gd/Makefile src/classes/smtp/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/lib/Makefile src/lib/libltdl/Makefile src/lib/pcre/Makefile src/lib/md5/Makefile src/lib/patches/Makefile src/targets/Makefile src/targets/cgi/Makefile src/targets/apache13/Makefile src/targets/apache13/hook/Makefile src/targets/apache13/p3runConfigure src/targets/isapi/Makefile etc/Makefile etc/parser3.charsets/Makefile bin/Makefile bin/auto.p.dist) +AC_OUTPUT(Makefile src/Makefile src/types/Makefile src/classes/Makefile src/classes/gd/Makefile src/classes/smtp/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/lib/Makefile src/lib/ltdl/Makefile src/lib/pcre/Makefile src/lib/md5/Makefile src/lib/patches/Makefile src/targets/Makefile src/targets/cgi/Makefile src/targets/apache13/Makefile src/targets/apache13/hook/Makefile src/targets/apache13/p3runConfigure src/targets/isapi/Makefile etc/Makefile etc/parser3.charsets/Makefile bin/Makefile bin/auto.p.dist)