X-Git-Url: http://git.hcoop.net/hcoop/debian/courier-authlib.git/blobdiff_plain/ac40fd9eb9d1980c90dc009d526a23ead1ec0f76..781cfcb8fd50934c470e0dabf79d32ab333dec68:/configure.in diff --git a/configure.in b/configure.in index d3b4b0d..5ff71cd 100644 --- a/configure.in +++ b/configure.in @@ -1,15 +1,16 @@ dnl Process this file with autoconf to produce a configure script. dnl -dnl $Id: configure.in,v 1.165 2008/07/12 19:15:05 mrsam Exp $ +dnl $Id: configure.in,v 1.177 2009/12/25 21:53:37 mrsam Exp $ dnl -dnl Copyright 1998 - 2008 Double Precision, Inc. See COPYING for +dnl Copyright 1998 - 2009 Double Precision, Inc. See COPYING for dnl distribution information. -AC_PREREQ(2.59) -AC_INIT(courier-authlib, 0.61.0, [courier-imap@lists.sourceforge.net]) +AC_PREREQ(2.63) +AC_INIT([courier-authlib],[0.63.0],[courier-users@lists.sourceforge.net]) AC_CONFIG_SRCDIR([courierauth.h]) -AM_CONFIG_HEADER([courier_auth_config.h]) +AC_CONFIG_HEADERS([courier_auth_config.h]) +AC_CONFIG_MACRO_DIR([libltdl/m4]) AM_INIT_AUTOMAKE >confdefs.h # Kill PACKAGE_ macros @@ -23,9 +24,9 @@ AC_PROG_CPP AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_SYSCONFTOOL -AC_LIBLTDL_INSTALLABLE -AC_LIBTOOL_DLOPEN -AM_PROG_LIBTOOL +LT_CONFIG_LTDL_DIR([libltdl]) +LT_INIT(dlopen) +LTDL_INIT AC_SUBST(LTDLINCL) AC_SUBST(LIBLTDL) AC_PATH_PROGS(PERL, perl5 perl, perl, $LPATH) @@ -691,10 +692,8 @@ AC_CHECK_HEADERS(sys/stat.h sys/time.h sys/wait.h sys/select.h unistd.h fcntl.h dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST -AC_PID_T +AC_TYPE_PID_T AC_TYPE_UID_T -AC_TYPE_SIGNAL - dnl Other checks AC_CHECK_FUNCS(setsid setlogin) AC_CHECK_LIB(crypt, crypt, CRYPTLIBS="-lcrypt") @@ -705,7 +704,7 @@ AC_CHECK_FUNC(crypt, AC_DEFINE_UNQUOTED(HAVE_CRYPT, 1, LIBS="$saveLIBS" AC_CACHE_CHECK([for crypt() prototype],userdb_cv_NEED_CRYPT_PROTOTYPE, - AC_TRY_COMPILE( [ + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #if HAVE_CRYPT_H #include #endif @@ -714,8 +713,7 @@ AC_CACHE_CHECK([for crypt() prototype],userdb_cv_NEED_CRYPT_PROTOTYPE, #endif int crypt(int, int); - ], [], userdb_cv_NEED_CRYPT_PROTOTYPE=1, - userdb_cv_NEED_CRYPT_PROTOTYPE=0 ) + ]], [[]])],[userdb_cv_NEED_CRYPT_PROTOTYPE=1],[userdb_cv_NEED_CRYPT_PROTOTYPE=0 ]) ) @@ -792,7 +790,7 @@ AC_ARG_WITH(mailuser,[ --with-mailuser=user Specify mail user name (defaults if test "$cmailuser" = "" then - AC_TRY_RUN([ + AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include #include #include @@ -819,10 +817,7 @@ char *p; exit (1); return (1); } - ], - mailuser=`cat conftest.out`, - AC_MSG_ERROR(Cannot determine mail user, use --with-mailuser.), - AC_MSG_ERROR(Must use --with-mailuser when cross compiling.)) + ]])],[mailuser=`cat conftest.out`],[AC_MSG_ERROR(Cannot determine mail user, use --with-mailuser.)],[AC_MSG_ERROR(Must use --with-mailuser when cross compiling.)]) else mailuser="$cmailuser" fi @@ -838,7 +833,7 @@ AC_ARG_WITH(mailgroup, [ --with-mailgroup=group Specify mail group name (defau if test "$cmailgroup" = "" then - AC_TRY_RUN([ + AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include #include #include @@ -864,11 +859,7 @@ FILE *f; exit (1); return (1); } - ], - - mailgroup=`cat conftest.out`, - AC_MSG_ERROR(Cannot determine mail group, use --with-mailgroup.), - AC_MSG_ERROR(Must use --with-mailgroup when cross compiling.)) + ]])],[mailgroup=`cat conftest.out`],[AC_MSG_ERROR(Cannot determine mail group, use --with-mailgroup.)],[AC_MSG_ERROR(Must use --with-mailgroup when cross compiling.)]) else mailgroup="$cmailgroup" fi @@ -919,7 +910,7 @@ AC_ARG_WITH(repository, [], REPOSITORY="$withval") AC_SUBST(REPOSITORY) AM_CONDITIONAL(HAVE_SGML, test -d ${srcdir}/docbook) -AC_CONFIG_SUBDIRS(libltdl bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb rfc822 random128 liblock liblog) +AC_CONFIG_SUBDIRS(bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb unicode rfc822 random128 liblock liblog) AC_CONFIG_FILES(Makefile authdaemond authdaemonrc authsystem.passwd README.authdebug.html dbobj.config dbobj.h authmigrate courier-authlib.spec courier-authlib.lpspec courier-authlib.sysvinit userdb-test-cram-md5.pl) AC_OUTPUT