# Fetchmail automatic configuration support
#
# Eric S. Raymond <esr@thyrsus.com>
-# 2004 - 2007 Matthias Andree <matthias.andree@gmx.de>
+# 2004 - 2009 Matthias Andree <matthias.andree@gmx.de>
#
dnl Process this file with autoconf to produce a configure script.
dnl
-AC_INIT([fetchmail],[6.3.9-rc3],[fetchmail-users@lists.berlios.de])
+dnl XXX - if bumping version here, check fetchmail.man, too!
+AC_INIT([fetchmail],[6.3.11],[fetchmail-users@lists.berlios.de])
AC_CONFIG_SRCDIR([fetchmail.h])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_LIBOBJ_DIR([.])
-AC_CANONICAL_TARGET
+AC_CANONICAL_HOST
dnl automake options are in Makefile.am
AC_PREREQ(2.60)
dnl 2.60 required for AC_USE_SYSTEM_EXTENSIONS
AM_INIT_AUTOMAKE
-dnl autobuild support, see <http://josefsson.org/autobuild/>
-(
- TZ=GMT
- export TZ
- AB_INIT
-)
-
dnl python is optional
#
# you can pass PYTHON=: in environment or on the command line
dnl need not use this macro. It is implemented as
dnl `AC_SEARCH_LIBS([strerror], [cposix])'
+dnl check for b0rked Solaris (and other shells) and find one that works
+AC_MSG_CHECKING(for a working shell...)
+for i in /usr/xpg6/bin/sh /usr/xpg4/bin/sh /usr/ccs/bin/sh /bin/sh /usr/bin/sh /bin/ksh /bin/bash /usr/local/bin/bash ; do
+ $i -c 'if ! false ; then echo $(echo ok) ; fi' >config.$$ 2>/dev/null
+ j=`cat config.$$`
+ rm -f config.$$
+ if test "x$j" = "xok" ; then
+ SHELL=$i
+ AC_SUBST(SHELL)
+ break
+ fi
+done
+AC_MSG_RESULT($SHELL)
+if test "x$SHELL" = "x" ; then
+ AC_MSG_ERROR(no SUS compliant shell found - on Solaris, install SUNWxcu4)
+fi
+
+
AC_HEADER_STDC
AC_HEADER_TIME
AC_TYPE_SIZE_T
AC_PROG_YACC
# Check for OS special cases
-case $target_os in
+case $host_os in
darwin*)
AC_MSG_NOTICE(found Darwin - Adding -DBIND_8_COMPAT to CFLAGS)
CPPFLAGS="$CPPFLAGS -DBIND_8_COMPAT"
;;
esac
+AC_CACHE_SAVE
+
dnl i18n
AM_GNU_GETTEXT([external], [need-ngettext])
AM_GNU_GETTEXT_VERSION([0.14.6])
AC_MSG_ERROR([You must enable at least one of POP2, POP3 and IMAP.])
fi
+AC_CACHE_SAVE
+
### use option --enable-opie to compile in the OPIE support
AC_ARG_ENABLE(opie,
[ --enable-opie support OTP through the OPIE library],
AC_MSG_CHECKING(if your getaddrinfo is async-signal-safe)
gai_ts=no
dnl we have getaddrinfo() - check if the OS is known to have a async-signal-safe implementation
- case $target_os in
+ case $host_os in
darwin9*) gai_ts=yes ;;
linux*) gai_ts=yes ;;
freebsd5.5|freebsd6*|freebsd7*) gai_ts=yes ;;
AC_CHECK_LIB(db2, db_open, ac_krblibs="$ac_krblibs -ldb2", [],
${LDFLAGS})
AC_CHECK_LIB(des, des_string_to_key, libk5crypto=-ldes,
- AC_CHECK_LIB(ssl, MD5_Init, [],
+ AC_CHECK_LIB(crypto, MD5_Init, [],
AC_MSG_ERROR([DES libraries not found. Try adding --with-ssl to enable OpenSSL support]),
${LDFLAGS} ${ac_krblibs}),
${LDFLAGS} ${ac_krblibs})
fi
dnl ----------------------------------------------------------------'
-AC_CONFIG_FILES([Makefile m4/Makefile po/Makefile.in genlsm.sh])
+AC_CONFIG_FILES([Makefile po/Makefile.in genlsm.sh])
AC_OUTPUT
dnl Local Variables: