]> granicus.if.org Git - postgresql/commitdiff
Fix configure detection code when --with-ldap and --enable-thread-safety
authorBruce Momjian <bruce@momjian.us>
Sat, 3 Feb 2007 02:47:35 +0000 (02:47 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 3 Feb 2007 02:47:35 +0000 (02:47 +0000)
are both used.

Backpatch to 8.2.X.

Albe Laurenz

configure
configure.in

index f55b761bd4d75d1a6ae1a8c7f220988cf963b636..1e2ff1475d0e135c309cf4f61e44f44fd84b059c 100755 (executable)
--- a/configure
+++ b/configure
@@ -17266,7 +17266,7 @@ if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lldap_r $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
+LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
index ac603ad3218e8f57cd7dc4ca34be78f658902109..b294b2be19cec587b28c43e8ba9f96afeb5dd596 100644 (file)
@@ -1,5 +1,5 @@
 dnl Process this file with autoconf to produce a configure script.
-dnl $PostgreSQL: pgsql/configure.in,v 1.490.2.3 2007/02/02 00:14:21 tgl Exp $
+dnl $PostgreSQL: pgsql/configure.in,v 1.490.2.4 2007/02/03 02:47:35 momjian Exp $
 dnl
 dnl Developers, please strive to achieve this order:
 dnl
@@ -1130,7 +1130,7 @@ if test "$with_ldap" = yes ; then
       # on some platforms ldap_r fails to link without PTHREAD_LIBS
       AC_CHECK_LIB(ldap_r, ldap_simple_bind, [],
                   [AC_MSG_ERROR([library 'ldap_r' is required for LDAP])],
-                  [$PTHREAD_LIBS $EXTRA_LDAP_LIBS])
+                  [$PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS])
       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
     else
       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"