]> granicus.if.org Git - php/commitdiff
Enable _POSIX_THREAD_SEMANTICS for all configurations testwise
authorSascha Schumann <sas@php.net>
Fri, 26 Nov 1999 21:45:57 +0000 (21:45 +0000)
committerSascha Schumann <sas@php.net>
Fri, 26 Nov 1999 21:45:57 +0000 (21:45 +0000)
configure.in

index 2529264452a204829db41ece848a05e5391d8e69..4a8067210fce6a1a9af7f5110f3aee18e952eb29 100644 (file)
@@ -641,13 +641,15 @@ test -n "$auto_cflags" && test -n "$GCC" && CFLAGS="$CFLAGS -O2"
 
 AC_MSG_CHECKING(whether to build PHP thread-safe)
 
+CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
+export CPPFLAGS
+
 if test "$enable_thread_safety" = "yes"; then
   TSRM_LIB='TSRM/libtsrm.la'
   TSRM_DIR=TSRM
   AC_DEFINE(ZTS)
+  CPPFLAGS="$CPPFLAGS -D_REENTRANT"
   INCLUDES="$INCLUDES -I\$(top_builddir)/TSRM -I\$(top_srcdir)/TSRM"
-  CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
-  export CPPFLAGS
 else 
   enable_thread_safety=no
 fi