./configure --without-ldap
...
checking for ldap support...
checking for ldap_init in -lno... no
checking for ldap_init in -lno... no
checking for ldap_init in -lno... no
checking for ldap_init in -lno... no
configure: error: could not find an LDAP library

-- 
Arfrever Frehtes Taifersar Arahesis
Index: build/apu-conf.m4
===================================================================
--- build/apu-conf.m4	(revision 780670)
+++ build/apu-conf.m4	(working copy)
@@ -248,6 +248,7 @@
 AC_ARG_WITH(ldap-lib,[  --with-ldap-lib=path    path to ldap lib file])
 AC_ARG_WITH(ldap,[  --with-ldap=library     ldap library to use],
   [
+  if test "$with_ldap" != "no"; then
     save_cppflags="$CPPFLAGS"
     save_ldflags="$LDFLAGS"
     save_libs="$LIBS"
@@ -367,6 +368,7 @@
     CPPFLAGS=$save_cppflags
     LDFLAGS=$save_ldflags
     LIBS=$save_libs
+  fi
   ])
 
 if test "$apu_has_ldap_openldap" = "1"; then

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to