summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Cameron <brian.cameron@sun.com>2009-07-15 17:35:38 -0400
committerColin Walters <walters@verbum.org>2009-07-15 17:35:38 -0400
commitc6992fc56cd1b2f502258e1db520c465ab2094bb (patch)
tree654cc243214ea7d71fa37c61148d0c3d844acd27
parentbb189fdb75947870ad72b44bd3225b394b7a7a9d (diff)
Bug 22788 - Fix detection of getpwnam_r on Solaris
Define POSIX_PTHREAD_SEMANTICS earlier so more things use it. Signed-off-by: Colin Walters <walters@verbum.org>
-rw-r--r--configure.in14
1 files changed, 7 insertions, 7 deletions
diff --git a/configure.in b/configure.in
index 5a92efd3..2e6422c1 100644
--- a/configure.in
+++ b/configure.in
@@ -458,6 +458,13 @@ AC_CHECK_HEADERS(errno.h)
AC_CHECK_HEADERS(unistd.h)
+# Add -D_POSIX_PTHREAD_SEMANTICS if on Solaris
+#
+case $host_os in
+ solaris*)
+ CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS" ;;
+esac
+
# checking for a posix version of getpwnam_r
# if we are cross compiling and can not run the test
# assume getpwnam_r is the posix version
@@ -1151,13 +1158,6 @@ AC_SUBST(SECTION_FLAGS)
AC_SUBST(SECTION_LDFLAGS)
AC_MSG_RESULT($ac_gcsections)
-# Add -D_POSIX_PTHREAD_SEMANTICS if on Solaris
-#
-case $host_os in
- solaris*)
- CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS" ;;
-esac
-
changequote(,)dnl
# compress spaces in flags
CFLAGS=`echo "$CFLAGS" | sed -e 's/ +/ /g'`