@@ -12883,11 +12883,12 @@ if test "$with_ldap" = yes ; then
12883
12883
if test "$enable_thread_safety" = yes; then
12884
12884
# Use ldap_r for FE if available, else assume ldap is thread-safe.
12885
12885
# If ldap_r does exist, assume without checking that ldap does too.
12886
- # on some platforms ldap_r fails to link without PTHREAD_LIBS
12886
+ # On some platforms ldap_r fails to link without PTHREAD_LIBS;
12887
+ # also, on AIX we must probe ldap_simple_bind not ldap_bind.
12887
12888
LIBS=""
12888
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_bind " >&5
12889
- $as_echo_n "checking for library containing ldap_bind ... " >&6; }
12890
- if ${ac_cv_search_ldap_bind +:} false; then :
12889
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_simple_bind " >&5
12890
+ $as_echo_n "checking for library containing ldap_simple_bind ... " >&6; }
12891
+ if ${ac_cv_search_ldap_simple_bind +:} false; then :
12891
12892
$as_echo_n "(cached) " >&6
12892
12893
else
12893
12894
ac_func_search_save_LIBS=$LIBS
@@ -12900,11 +12901,11 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12900
12901
#ifdef __cplusplus
12901
12902
extern "C"
12902
12903
#endif
12903
- char ldap_bind ();
12904
+ char ldap_simple_bind ();
12904
12905
int
12905
12906
main ()
12906
12907
{
12907
- return ldap_bind ();
12908
+ return ldap_simple_bind ();
12908
12909
;
12909
12910
return 0;
12910
12911
}
@@ -12917,25 +12918,25 @@ for ac_lib in '' ldap_r ldap; do
12917
12918
LIBS="-l$ac_lib $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $ac_func_search_save_LIBS"
12918
12919
fi
12919
12920
if ac_fn_c_try_link "$LINENO"; then :
12920
- ac_cv_search_ldap_bind =$ac_res
12921
+ ac_cv_search_ldap_simple_bind =$ac_res
12921
12922
fi
12922
12923
rm -f core conftest.err conftest.$ac_objext \
12923
12924
conftest$ac_exeext
12924
- if ${ac_cv_search_ldap_bind +:} false; then :
12925
+ if ${ac_cv_search_ldap_simple_bind +:} false; then :
12925
12926
break
12926
12927
fi
12927
12928
done
12928
- if ${ac_cv_search_ldap_bind +:} false; then :
12929
+ if ${ac_cv_search_ldap_simple_bind +:} false; then :
12929
12930
12930
12931
else
12931
- ac_cv_search_ldap_bind =no
12932
+ ac_cv_search_ldap_simple_bind =no
12932
12933
fi
12933
12934
rm conftest.$ac_ext
12934
12935
LIBS=$ac_func_search_save_LIBS
12935
12936
fi
12936
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_bind " >&5
12937
- $as_echo "$ac_cv_search_ldap_bind " >&6; }
12938
- ac_res=$ac_cv_search_ldap_bind
12937
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_simple_bind " >&5
12938
+ $as_echo "$ac_cv_search_ldap_simple_bind " >&6; }
12939
+ ac_res=$ac_cv_search_ldap_simple_bind
12939
12940
if test "$ac_res" != no; then :
12940
12941
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12941
12942
0 commit comments