diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-09-25 05:35:51 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:14:43 -0500 |
commit | 868daf42b27cadc01ac5c3a8f6eb71cc504f3df9 (patch) | |
tree | 0848481204067cab023e5765d9d99090fc18d4a7 /source3 | |
parent | 22a23881c79fbf6e6da2742538655d0baa09a204 (diff) | |
download | samba-868daf42b27cadc01ac5c3a8f6eb71cc504f3df9.tar.gz samba-868daf42b27cadc01ac5c3a8f6eb71cc504f3df9.tar.bz2 samba-868daf42b27cadc01ac5c3a8f6eb71cc504f3df9.zip |
r18893: Attempt to fix the Solaris build
(This used to be commit db838f49a0e9de6881b36b10fe2c3862862b1908)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/configure.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/configure.in b/source3/configure.in index d88d491b86..0808729fa3 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -3106,6 +3106,7 @@ if test x"$with_ldap_support" != x"no"; then AC_DEFINE_UNQUOTED(LDAP_SET_REBIND_PROC_ARGS, $smb_ldap_cv_ldap_set_rebind_proc, [Number of arguments to ldap_set_rebind_proc]) AC_CHECK_FUNC_EXT(ldap_dn2ad_canonical,$LDAP_LIBS) + AC_CHECK_FUNC_EXT(ldap_initialize,$LDAP_LIBS) if test x"$ac_cv_lib_ext_ldap_ldap_init" = x"yes"; then AC_DEFINE(HAVE_LDAP,1,[Whether ldap is available]) @@ -3114,7 +3115,11 @@ if test x"$with_ldap_support" != x"no"; then default_shared_modules="$default_shared_modules"; SMBLDAP="lib/smbldap.o" SMBLDAPUTIL="lib/smbldap_util.o" - LDBLDAP="lib/ldb/ldb_ldap/ldb_ldap.o" + if test x"$ac_cv_func_ext_ldap_initialize" != x"yes"; then + AC_MSG_WARN(Disabling ldb_ldap support (requires ldap_initialize)) + else + LDBLDAP="lib/ldb/ldb_ldap/ldb_ldap.o" + fi with_ldap_support=yes AC_MSG_CHECKING(whether LDAP support is used) AC_MSG_RESULT(yes) |