|
|
| version 1.73, 2004/02/13 13:59:47 | version 1.81.2.1, 2004/12/24 13:42:20 |
|---|---|
| Line 2 dnl Process this file with autoconf to p | Line 2 dnl Process this file with autoconf to p |
| AC_INIT(README) | AC_INIT(README) |
| AC_PREREQ(2.57) | AC_PREREQ(2.57) |
| AM_INIT_AUTOMAKE(parser, 3.1.2beta, nodefine) | AM_INIT_AUTOMAKE(parser, 3.1.4, nodefine) |
| dnl expand srcdir | dnl expand srcdir |
| P3S=`cd $srcdir/src ; pwd` | P3S=`cd $srcdir/src ; pwd` |
| AC_SUBST(P3S) | AC_SUBST(P3S) |
| PARSER_VERSION=$VERSION | dnl AC_CANONICAL_SYSTEM |
| AC_CANONICAL_HOST | |
| PARSER_VERSION="$VERSION (compiled on $host)" | |
| echo "/* automatically generated by configure */" > $srcdir/src/include/pa_version.h.new | echo "/* automatically generated by configure */" > $srcdir/src/include/pa_version.h.new |
| echo "/* edit configure.in to change version number */" >> $srcdir/src/include/pa_version.h.new | echo "/* edit configure.in to change version number */" >> $srcdir/src/include/pa_version.h.new |
| echo "#define PARSER_VERSION \"$PARSER_VERSION\"" >> $srcdir/src/include/pa_version.h.new | echo "#define PARSER_VERSION \"$PARSER_VERSION\"" >> $srcdir/src/include/pa_version.h.new |
| Line 22 fi | Line 25 fi |
| dnl AC_CANONICAL_SYSTEM | |
| AC_CANONICAL_HOST | |
| AC_SUBST(host_os) | AC_SUBST(host_os) |
| case $host_os in | case $host_os in |
| *cygwin* ) AC_DEFINE(CYGWIN,,using cygwin building environment);; | *cygwin* ) AC_DEFINE(CYGWIN,,using cygwin building environment);; |
| Line 420 AC_SUBST(LIBADD_DL) | Line 421 AC_SUBST(LIBADD_DL) |
| dnl Checks for typedefs, structures, and compiler characteristics. | dnl Checks for typedefs, structures, and compiler characteristics. |
| AC_C_BIGENDIAN( | |
| AC_DEFINE(PA_BIG_ENDIAN,,compile for sparc processor) | |
| , | |
| AC_DEFINE(PA_LITTLE_ENDIAN,,compile for intel processor or compatible) | |
| , | |
| AC_MSG_ERROR(word endianness not determined for some obscure reason) | |
| ) | |
| AC_TYPE_SIZE_T | AC_TYPE_SIZE_T |
| dnl gmime | dnl gmime |
| AC_CHECK_TYPE(off_t, long) | AC_CHECK_TYPE(off_t, long) |
| Line 502 ftruncate \ | Line 511 ftruncate \ |
| getrusage \ | getrusage \ |
| gettimeofday \ | gettimeofday \ |
| crypt \ | crypt \ |
| sigsetjmp \ | |
| siglongjmp | siglongjmp |
| ) | ) |
| Line 517 sign | Line 527 sign |
| ) | ) |
| AC_LANG_POP | AC_LANG_POP |
| dnl We require qsort(3) and select(2). | dnl We require qsort(3) |
| AC_CHECK_FUNCS(qsort, , AC_MSG_ERROR([No qsort library function.])) | AC_CHECK_FUNCS(qsort, , AC_MSG_ERROR([No qsort library function.])) |
| AC_MSG_CHECKING(for select) | |
| AC_TRY_RUN([ | |
| #ifdef HAVE_SYS_SELECT_H | |
| # include <sys/select.h> | |
| #endif | |
| #ifdef HAVE_SYS_SOCKET_H | |
| # include <sys/socket.h> | |
| #endif | |
| #if TIME_WITH_SYS_TIME | |
| # include <sys/time.h> | |
| # include <time.h> | |
| #else | |
| # ifdef HAVE_SYS_TIME_H | |
| # include <sys/time.h> | |
| # else | |
| # include <time.h> | |
| # endif | |
| #endif | |
| #ifdef __STDC__ | |
| int (*f)(int, fd_set *, fd_set *, fd_set *, struct timeval *)=select; | |
| #else | |
| int (*f)()=select; | |
| #endif /* __STDC__ */ | |
| int | |
| main () | |
| { | |
| return f != select; | |
| } | |
| ], | |
| AC_DEFINE(HAVE_SELECT,,have 'select' library function) | |
| AC_MSG_RESULT(yes), | |
| AC_MSG_ERROR([No select library function.]) | |
| ) | |
| dnl For correct mail receiving we need to know local offset from GMT | dnl For correct mail receiving we need to know local offset from GMT |
| dnl it be timezone+(daylight?60*60*sign(timezone):0) | 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_gmtoff |