summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 9b79274ea7b..be825a81131 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1292,9 +1292,10 @@ if test "$with_ldap" = yes ; then
if test "$enable_thread_safety" = yes; then
# Use ldap_r for FE if available, else assume ldap is thread-safe.
# If ldap_r does exist, assume without checking that ldap does too.
- # on some platforms ldap_r fails to link without PTHREAD_LIBS
+ # On some platforms ldap_r fails to link without PTHREAD_LIBS;
+ # also, on AIX we must probe ldap_simple_bind not ldap_bind.
LIBS=""
- AC_SEARCH_LIBS(ldap_bind, [ldap_r ldap], [],
+ AC_SEARCH_LIBS(ldap_simple_bind, [ldap_r ldap], [],
[AC_MSG_ERROR([library 'ldap' is required for LDAP])],
[$PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS])
LDAP_LIBS_FE="$LIBS $EXTRA_LDAP_LIBS"