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

Commitfa82cdd

Browse files
committed
Move pthread.h test up to use PTHREAD_CFLAGS.
Kris Jurka
1 parent0c3663b commitfa82cdd

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

‎configure

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13848,6 +13848,12 @@ For details, compile and run src/bin/pg_thread_test.
1384813848
{ (exit 1); exit 1; }; }
1384913849
fi
1385013850

13851+
# Check for *_r functions
13852+
_CFLAGS="$CFLAGS"
13853+
_LIBS="$LIBS"
13854+
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13855+
LIBS="$LIBS $PTHREAD_LIBS"
13856+
1385113857
if test "${ac_cv_header_pthread_h+set}" = set; then
1385213858
echo "$as_me:$LINENO: checking for pthread.h" >&5
1385313859
echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
@@ -13959,11 +13965,6 @@ fi
1395913965

1396013966

1396113967

13962-
# Check for *_r functions
13963-
_CFLAGS="$CFLAGS"
13964-
_LIBS="$LIBS"
13965-
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13966-
LIBS="$LIBS $PTHREAD_LIBS"
1396713968

1396813969

1396913970

‎configure.in

Lines changed: 4 additions & 3 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.383 2004/10/25 00:11:04 pgsql Exp $
2+
dnl $PostgreSQL: pgsql/configure.in,v 1.384 2004/11/02 05:44:45 momjian Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -1009,13 +1009,14 @@ For details, compile and run src/bin/pg_thread_test.
10091009
])
10101010
fi
10111011

1012-
AC_CHECK_HEADER(pthread.h, [], [AC_MSG_ERROR([pthread.h not found, required for --enable-thread-safety])])
1013-
10141012
# Check for *_r functions
10151013
_CFLAGS="$CFLAGS"
10161014
_LIBS="$LIBS"
10171015
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10181016
LIBS="$LIBS $PTHREAD_LIBS"
1017+
1018+
AC_CHECK_HEADER(pthread.h, [], [AC_MSG_ERROR([pthread.h not found, required for --enable-thread-safety])])
1019+
10191020
AC_CHECK_FUNCS([strerror_r getpwuid_r gethostbyname_r])
10201021

10211022
# Do test here with the proper thread flags

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp