@@ -12463,11 +12463,12 @@ if test "$with_ldap" = yes ; then
12463
12463
if test "$enable_thread_safety" = yes; then
12464
12464
# Use ldap_r for FE if available, else assume ldap is thread-safe.
12465
12465
# If ldap_r does exist, assume without checking that ldap does too.
12466
- # on some platforms ldap_r fails to link without PTHREAD_LIBS
12466
+ # On some platforms ldap_r fails to link without PTHREAD_LIBS;
12467
+ # also, on AIX we must probe ldap_simple_bind not ldap_bind.
12467
12468
LIBS=""
12468
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_bind " >&5
12469
- $as_echo_n "checking for library containing ldap_bind ... " >&6; }
12470
- if ${ac_cv_search_ldap_bind +:} false; then :
12469
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_simple_bind " >&5
12470
+ $as_echo_n "checking for library containing ldap_simple_bind ... " >&6; }
12471
+ if ${ac_cv_search_ldap_simple_bind +:} false; then :
12471
12472
$as_echo_n "(cached) " >&6
12472
12473
else
12473
12474
ac_func_search_save_LIBS=$LIBS
@@ -12480,11 +12481,11 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480
12481
#ifdef __cplusplus
12481
12482
extern "C"
12482
12483
#endif
12483
- char ldap_bind ();
12484
+ char ldap_simple_bind ();
12484
12485
int
12485
12486
main ()
12486
12487
{
12487
- return ldap_bind ();
12488
+ return ldap_simple_bind ();
12488
12489
;
12489
12490
return 0;
12490
12491
}
@@ -12497,25 +12498,25 @@ for ac_lib in '' ldap_r ldap; do
12497
12498
LIBS="-l$ac_lib $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $ac_func_search_save_LIBS"
12498
12499
fi
12499
12500
if ac_fn_c_try_link "$LINENO"; then :
12500
- ac_cv_search_ldap_bind =$ac_res
12501
+ ac_cv_search_ldap_simple_bind =$ac_res
12501
12502
fi
12502
12503
rm -f core conftest.err conftest.$ac_objext \
12503
12504
conftest$ac_exeext
12504
- if ${ac_cv_search_ldap_bind +:} false; then :
12505
+ if ${ac_cv_search_ldap_simple_bind +:} false; then :
12505
12506
break
12506
12507
fi
12507
12508
done
12508
- if ${ac_cv_search_ldap_bind +:} false; then :
12509
+ if ${ac_cv_search_ldap_simple_bind +:} false; then :
12509
12510
12510
12511
else
12511
- ac_cv_search_ldap_bind =no
12512
+ ac_cv_search_ldap_simple_bind =no
12512
12513
fi
12513
12514
rm conftest.$ac_ext
12514
12515
LIBS=$ac_func_search_save_LIBS
12515
12516
fi
12516
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_bind " >&5
12517
- $as_echo "$ac_cv_search_ldap_bind " >&6; }
12518
- ac_res=$ac_cv_search_ldap_bind
12517
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_simple_bind " >&5
12518
+ $as_echo "$ac_cv_search_ldap_simple_bind " >&6; }
12519
+ ac_res=$ac_cv_search_ldap_simple_bind
12519
12520
if test "$ac_res" != no; then :
12520
12521
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12521
12522
0 commit comments