@@ -12498,11 +12498,12 @@ if test "$with_ldap" = yes ; then
12498
12498
if test "$enable_thread_safety" = yes; then
12499
12499
# Use ldap_r for FE if available, else assume ldap is thread-safe.
12500
12500
# If ldap_r does exist, assume without checking that ldap does too.
12501
- # on some platforms ldap_r fails to link without PTHREAD_LIBS
12501
+ # On some platforms ldap_r fails to link without PTHREAD_LIBS;
12502
+ # also, on AIX we must probe ldap_simple_bind not ldap_bind.
12502
12503
LIBS=""
12503
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_bind " >&5
12504
- $as_echo_n "checking for library containing ldap_bind ... " >&6; }
12505
- if ${ac_cv_search_ldap_bind +:} false; then :
12504
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_simple_bind " >&5
12505
+ $as_echo_n "checking for library containing ldap_simple_bind ... " >&6; }
12506
+ if ${ac_cv_search_ldap_simple_bind +:} false; then :
12506
12507
$as_echo_n "(cached) " >&6
12507
12508
else
12508
12509
ac_func_search_save_LIBS=$LIBS
@@ -12515,11 +12516,11 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12515
12516
#ifdef __cplusplus
12516
12517
extern "C"
12517
12518
#endif
12518
- char ldap_bind ();
12519
+ char ldap_simple_bind ();
12519
12520
int
12520
12521
main ()
12521
12522
{
12522
- return ldap_bind ();
12523
+ return ldap_simple_bind ();
12523
12524
;
12524
12525
return 0;
12525
12526
}
@@ -12532,25 +12533,25 @@ for ac_lib in '' ldap_r ldap; do
12532
12533
LIBS="-l$ac_lib $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $ac_func_search_save_LIBS"
12533
12534
fi
12534
12535
if ac_fn_c_try_link "$LINENO"; then :
12535
- ac_cv_search_ldap_bind =$ac_res
12536
+ ac_cv_search_ldap_simple_bind =$ac_res
12536
12537
fi
12537
12538
rm -f core conftest.err conftest.$ac_objext \
12538
12539
conftest$ac_exeext
12539
- if ${ac_cv_search_ldap_bind +:} false; then :
12540
+ if ${ac_cv_search_ldap_simple_bind +:} false; then :
12540
12541
break
12541
12542
fi
12542
12543
done
12543
- if ${ac_cv_search_ldap_bind +:} false; then :
12544
+ if ${ac_cv_search_ldap_simple_bind +:} false; then :
12544
12545
12545
12546
else
12546
- ac_cv_search_ldap_bind =no
12547
+ ac_cv_search_ldap_simple_bind =no
12547
12548
fi
12548
12549
rm conftest.$ac_ext
12549
12550
LIBS=$ac_func_search_save_LIBS
12550
12551
fi
12551
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_bind " >&5
12552
- $as_echo "$ac_cv_search_ldap_bind " >&6; }
12553
- ac_res=$ac_cv_search_ldap_bind
12552
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_simple_bind " >&5
12553
+ $as_echo "$ac_cv_search_ldap_simple_bind " >&6; }
12554
+ ac_res=$ac_cv_search_ldap_simple_bind
12554
12555
if test "$ac_res" != no; then :
12555
12556
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12556
12557
0 commit comments