diff options
| author | Sascha Schumann <sas@php.net> | 1999-11-26 21:45:57 +0000 |
|---|---|---|
| committer | Sascha Schumann <sas@php.net> | 1999-11-26 21:45:57 +0000 |
| commit | 56a9e10b730297fd7a829fb8f58c8852f35a3000 (patch) | |
| tree | c8ca68bcb7d15bf02ca7685a68e6f0904c425423 /configure.in | |
| parent | 9f386181f5cf9b64a7b3823a3692e749f85f55ff (diff) | |
| download | php-git-56a9e10b730297fd7a829fb8f58c8852f35a3000.tar.gz | |
Enable _POSIX_THREAD_SEMANTICS for all configurations testwise
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 2529264452..4a8067210f 100644 --- a/configure.in +++ b/configure.in @@ -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 |
