From: Brian Cameron Date: Wed, 15 Jul 2009 21:35:38 +0000 (-0400) Subject: Bug 22788 - Fix detection of getpwnam_r on Solaris X-Git-Tag: dbus-1.3.0~5^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c6992fc56cd1b2f502258e1db520c465ab2094bb;p=thirdparty%2Fdbus.git Bug 22788 - Fix detection of getpwnam_r on Solaris Define POSIX_PTHREAD_SEMANTICS earlier so more things use it. Signed-off-by: Colin Walters --- diff --git a/configure.in b/configure.in index 5a92efd3c..2e6422c15 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'`