From: Bruce Momjian Date: Wed, 16 Jun 2004 02:58:28 +0000 (+0000) Subject: Do PGAC_FUNC_GETPWUID_R_5ARG and PGAC_FUNC_STRERROR_R_INT tests with the X-Git-Tag: REL8_0_0BETA1~352 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e854bc4ac7f1b636eef128b07861bc953dc1fd85;p=postgresql Do PGAC_FUNC_GETPWUID_R_5ARG and PGAC_FUNC_STRERROR_R_INT tests with the same thread flags that will be used to compile thread.c. Add comment to make sure no one breaks it. --- diff --git a/configure b/configure index dce88028d4..089eea989f 100755 --- a/configure +++ b/configure @@ -13697,9 +13697,8 @@ _ACEOF fi done -CFLAGS="$_CFLAGS" -LIBS="$_LIBS" +# Do test here with thread flags echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then @@ -13813,6 +13812,9 @@ _ACEOF fi +CFLAGS="$_CFLAGS" +LIBS="$_LIBS" + else # do not use values from template file PTHREAD_CFLAGS= diff --git a/configure.in b/configure.in index 2c653c236a..b276c27f22 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.362 2004/06/08 14:06:35 momjian Exp $ +dnl $PostgreSQL: pgsql/configure.in,v 1.363 2004/06/16 02:58:28 momjian Exp $ dnl dnl Developers, please strive to achieve this order: dnl @@ -989,12 +989,14 @@ _LIBS="$LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" LIBS="$LIBS $PTHREAD_LIBS" AC_CHECK_FUNCS([strerror_r getpwuid_r gethostbyname_r]) -CFLAGS="$_CFLAGS" -LIBS="$_LIBS" +# Do test here with thread flags PGAC_FUNC_GETPWUID_R_5ARG PGAC_FUNC_STRERROR_R_INT +CFLAGS="$_CFLAGS" +LIBS="$_LIBS" + else # do not use values from template file PTHREAD_CFLAGS=