diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-04-24 11:47:21 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-04-24 11:47:21 +0000 |
commit | a04c643158104d4213698c76f13b7bfbdfda464e (patch) | |
tree | c8e5d61a4b1b76e5f38dc0d2427e454c5918e05b | |
parent | 30a6f801ae79e6b4d0d930c23a269ca3bfe9f1a3 (diff) | |
download | samba-a04c643158104d4213698c76f13b7bfbdfda464e.tar.gz samba-a04c643158104d4213698c76f13b7bfbdfda464e.tar.bz2 samba-a04c643158104d4213698c76f13b7bfbdfda464e.zip |
Make sure that we don't compile pdb_ldap on systems with ldap.h, but without
-lldap.
Andrew Bartlett
(This used to be commit 5c36308d14c622bb2d466b97376d3b15ca7c47b2)
-rw-r--r-- | source3/configure.in | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source3/configure.in b/source3/configure.in index c15832a713..1644d17fef 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -2277,10 +2277,14 @@ LIBS="" ######################################################## # now see if we can find the ldap libs in standard paths if test x$have_ldap != xyes; then - AC_CHECK_LIB(ldap, ldap_domain2hostlist, [LIBS="$LIBS -lldap"; - LDAP_OBJ=lib/ldap.o; - AC_DEFINE(HAVE_LDAP,1,[Whether ldap is available])]) - AC_CHECK_HEADERS([ldap.h lber.h], [default_static_modules="$default_static_modules pdb_ldap"]) + AC_CHECK_LIB(ldap, ldap_init, [ + LIBS="$LIBS -lldap"; + AC_CHECK_LIB(ldap, ldap_domain2hostlist, [ + AC_DEFINE(HAVE_LDAP,1,[Whether ldap is available]) + AC_CHECK_HEADERS([ldap.h lber.h], + [default_static_modules="$default_static_modules pdb_ldap"]) + ]) + ]) ######################################################## # If we have LDAP, does it's rebind procedure take 2 or 3 arguments? |