[dovecot-cvs] dovecot configure.in,1.96,1.97
cras at procontrol.fi
cras at procontrol.fi
Thu Jan 30 20:27:11 EET 2003
Update of /home/cvs/dovecot
In directory danu:/tmp/cvs-serv5368
Modified Files:
configure.in
Log Message:
libldap checks, --without-pop3 disables pop3 server
Index: configure.in
===================================================================
RCS file: /home/cvs/dovecot/configure.in,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -d -r1.96 -r1.97
--- configure.in 28 Jan 2003 21:35:25 -0000 1.96
+++ configure.in 30 Jan 2003 18:27:09 -0000 1.97
@@ -88,6 +88,15 @@
fi,
want_pam=yes)
+AC_ARG_WITH(ldap,
+[ --with-ldap Build with LDAP support],
+ if test x$withval = xno; then
+ want_ldap=no
+ else
+ want_ldap=yes
+ fi,
+ want_ldap=no)
+
AC_ARG_WITH(vpopmail,
[ --with-vpopmail Build with vpopmail support (default)],
if test x$withval = xno; then
@@ -147,6 +156,16 @@
)
AC_SUBST(ssldir)
+AC_ARG_WITH(pop3d,
+[ --with-pop3d Build POP3 server (default)],
+ if test x$withval = xno; then
+ want_pop3d=no
+ else
+ want_pop3d=yes
+ fi,
+ want_pop3d=yes)
+AM_CONDITIONAL(BUILD_POP3D, test "$want_pop3d" = "yes")
+
dnl * gcc specific options
if test "x$ac_cv_prog_gcc" = "xyes"; then
# -Wcast-qual -Wcast-align -Wconversion # too many warnings
@@ -723,6 +742,19 @@
])
fi
+if test $want_ldap = yes; then
+ AC_CHECK_LIB(ldap, ldap_init, [
+ AC_CHECK_HEADER(ldap.h, [
+ PASSDB_LIBS="$PASSDB_LIBS -lldap"
+
+ AC_DEFINE(USERDB_LDAP,, Build with LDAP support)
+ AC_DEFINE(PASSDB_LDAP,, Build with LDAP support)
+ userdb="$userdb ldap"
+ passdb="$passdb ldap"
+ ])
+ ])
+fi
+
if test $want_vpopmail = yes; then
vpopmail_home="`echo ~vpopmail`"
vpop_libdeps="$vpopmail_home/etc/lib_deps"
@@ -871,3 +903,4 @@
echo "Building with password lookup modules :$passdb"
echo "Building with SSL support ........... : $have_ssl"
echo "Building with IPv6 support .......... : $want_ipv6"
+echo "Building with pop3 server ........... : $want_pop3d"
More information about the dovecot-cvs
mailing list