|
|
| version 1.73, 2004/02/13 13:59:47 | version 1.88, 2005/11/24 14:46:16 |
|---|---|
| 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.2.0beta, 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 106 for c in $CHARSETS_REQUESTED; do | Line 107 for c in $CHARSETS_REQUESTED; do |
| done | done |
| # Switching on commentcharset_XXX='#' | # Switching on commentcharset_XXX='#' |
| AC_DEFUN(PA_SUBSTCHARSET, [ | AC_DEFUN([PA_SUBSTCHARSET], [ |
| commentcharset_$2='#' | commentcharset_$2='#' |
| for c in $CHARSETS_REQUESTED; do | for c in $CHARSETS_REQUESTED; do |
| if test "$1" = "$c"; then | if test "$1" = "$c"; then |
| Line 278 AC_ARG_WITH(shared-xml,[ --with-shared- | Line 279 AC_ARG_WITH(shared-xml,[ --with-shared- |
| if test -z "$GLIB_CONFIG"; then | if test -z "$GLIB_CONFIG"; then |
| GLIB_CONFIG=$XMLBIN/glib-config | GLIB_CONFIG=$XMLBIN/glib-config |
| if test \! -x $GLIB_CONFIG; then | if test \! -x $GLIB_CONFIG; then |
| GLIB_CONFIG=glib-config | GLIB_CONFIG=$XMLBIN/glib2-config |
| if test \! -x $GLIB_CONFIG; then | |
| GLIB_CONFIG=glib-config | |
| fi | |
| fi | fi |
| fi | fi |
| GLIB_CFLAGS=`$GLIB_CONFIG --cflags` | GLIB_CFLAGS=`$GLIB_CONFIG --cflags` |
| Line 420 AC_SUBST(LIBADD_DL) | Line 424 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 514 ftruncate \ |
| getrusage \ | getrusage \ |
| gettimeofday \ | gettimeofday \ |
| crypt \ | crypt \ |
| sigsetjmp \ | |
| siglongjmp | siglongjmp |
| ) | ) |
| Line 517 sign | Line 530 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 |