Hi,
I'm always surprised when I see output from configure like
checking for really_not_needed.h... no
The configure script is always 'checking sasl.h usability' even when the
--without-ldap option was specified.
The attached patch checks the presence of sasl.h / sasl/sasl.h only when
using the --with-ldap option && all required LDAP headers and libs are
available.
Regards,
Pascal
--
The trapper recommends today: [email protected]
diff -r 7d54410a34b9 configure.in
--- a/configure.in Fri Jul 24 20:58:38 2009 -0400
+++ b/configure.in Sun Jul 26 00:31:53 2009 +0200
@@ -303,8 +303,8 @@
sys/uio.h sys/sysmacros.h sys/resource.h sys/select.h libgen.h \
sys/quota.h sys/fs/ufs_quota.h ufs/ufs/quota.h jfs/quota.h sys/fs/quota_common.h \
mntent.h sys/mnttab.h sys/event.h sys/time.h sys/mkdev.h linux/dqblk_xfs.h \
- xfs/xqm.h sasl.h sasl/sasl.h execinfo.h ucontext.h malloc_np.h sys/utsname.h \
- sys/vmount.h sys/utsname.h)
+ xfs/xqm.h execinfo.h ucontext.h malloc_np.h sys/utsname.h sys/vmount.h \
+ sys/utsname.h)
dnl * gcc specific options
if test "x$ac_cv_c_compiler_gnu" = "xyes"; then
@@ -1900,6 +1900,7 @@
AC_DEFINE(USERDB_LDAP,, Build with LDAP support)
AC_DEFINE(PASSDB_LDAP,, Build with LDAP support)
+ AC_CHECK_HEADERS(sasl.h sasl/sasl.h)
have_ldap=yes
], [
if test $want_ldap != auto; then