From b9fcb3462550854f77693068daee027138703408 Mon Sep 17 00:00:00 2001 From: foobar Date: Tue, 1 Jul 2003 00:02:13 +0000 Subject: [PATCH] Fixed bug #24025 (Can not build with shared ldap support) --- ext/ldap/config.m4 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ext/ldap/config.m4 b/ext/ldap/config.m4 index 39fac5a2d7..2eb00971b8 100644 --- a/ext/ldap/config.m4 +++ b/ext/ldap/config.m4 @@ -157,6 +157,7 @@ if test "$PHP_LDAP" != "no"; then dnl Check for 3 arg ldap_set_rebind_proc _SAVE_CPPFLAGS=$CPPFLAGS + _SAVE_LDFLAGS=$LDFLAGS CPPFLAGS="$CPPFLAGS -I$LDAP_INCDIR" AC_CACHE_CHECK([for 3 arg ldap_set_rebind_proc], ac_cv_3arg_setrebindproc, [AC_TRY_COMPILE([#include ], [ldap_set_rebind_proc(0,0,0)], @@ -169,7 +170,8 @@ if test "$PHP_LDAP" != "no"; then dnl Solaris 2.8 claims to be 2004 API, but doesn't have dnl ldap_parse_reference() nor ldap_start_tls_s() AC_CHECK_FUNCS([ldap_parse_reference ldap_start_tls_s]) - + LDFLAGS=$_SAVE_LDFLAGS + dnl dnl SASL check dnl @@ -180,7 +182,10 @@ if test "$PHP_LDAP" != "no"; then dnl dnl Sanity check dnl + _SAVE_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS $LDAP_SHARED_LIBADD" AC_CHECK_FUNC(ldap_bind_s, [], [ AC_MSG_ERROR([LDAP build check failed. Please check config.log for more information.]) ]) + LDFLAGS=$_SAVE_LDFLAGS fi -- 2.40.0