summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2007-02-03 02:43:38 +0000
committerBruce Momjian <bruce@momjian.us>2007-02-03 02:43:38 +0000
commit25dc46334b99f3161d931a608fb49f6eced42065 (patch)
tree8b6d66a49172fc69a5d79516c58322475d5d95fa /configure.in
parentb1b9c364cc8b2e9d5ffdc9caa401381cb24fdfda (diff)
downloadpostgresql-25dc46334b99f3161d931a608fb49f6eced42065.tar.gz
Fix configure detection code when --with-ldap and --enable-thread-safety
are both used. Albe Laurenz
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 7e55f67d13..35da4e67e4 100644
--- a/configure.in
+++ b/configure.in
@@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
-dnl $PostgreSQL: pgsql/configure.in,v 1.499 2007/01/28 03:50:33 momjian Exp $
+dnl $PostgreSQL: pgsql/configure.in,v 1.500 2007/02/03 02:43:38 momjian Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
@@ -1152,7 +1152,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"