Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit25dc463

Browse files
committed
Fix configure detection code when --with-ldap and --enable-thread-safety
are both used.Albe Laurenz
1 parentb1b9c36 commit25dc463

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17609,7 +17609,7 @@ if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
1760917609
echo $ECHO_N "(cached) $ECHO_C" >&6
1761017610
else
1761117611
ac_check_lib_save_LIBS=$LIBS
17612-
LIBS="-lldap_r $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
17612+
LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
1761317613
cat >conftest.$ac_ext <<_ACEOF
1761417614
/* confdefs.h. */
1761517615
_ACEOF

‎configure.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl Process this file with autoconf to produce a configure script.
2-
dnl $PostgreSQL: pgsql/configure.in,v 1.499 2007/01/28 03:50:33 momjian Exp $
2+
dnl $PostgreSQL: pgsql/configure.in,v 1.500 2007/02/03 02:43:38 momjian Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -1152,7 +1152,7 @@ if test "$with_ldap" = yes ; then
11521152
# on some platforms ldap_r fails to link without PTHREAD_LIBS
11531153
AC_CHECK_LIB(ldap_r, ldap_simple_bind, [],
11541154
[AC_MSG_ERROR([library 'ldap_r' is required for LDAP])],
1155-
[$PTHREAD_LIBS $EXTRA_LDAP_LIBS])
1155+
[$PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS])
11561156
LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
11571157
else
11581158
LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp