From: Sascha Schumann Date: Wed, 24 Nov 1999 03:27:53 +0000 (+0000) Subject: - add PHP_BUILD_THREAD_SAFE X-Git-Tag: PRE_RETURN_REF_PATCH~271 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a4c75707fbc5e622b900594698eb3a5f86e6e8d0;p=php - add PHP_BUILD_THREAD_SAFE - move #undef HAVE_AOLSERVER into its own config.h.stub --- diff --git a/acconfig.h.in b/acconfig.h.in index a35e2e4a1b..c8e35458f8 100644 --- a/acconfig.h.in +++ b/acconfig.h.in @@ -4,8 +4,6 @@ #undef PACKAGE #undef VERSION -#undef HAVE_AOLSERVER - #undef HAVE_STRUCT_FLOCK #undef HAVE_TM_GMTOFF diff --git a/acinclude.m4 b/acinclude.m4 index 802901c693..f32c57cf4d 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -12,6 +12,14 @@ AC_DEFUN(PHP_SET_SYM_FILE, PHP_SYM_FILE="$1" ]) +dnl +dnl PHP_BUILD_THREAD_SAFE +dbl +AC_DEFUN(PHP_BUILD_THREAD_SAFE,[ + enable_thread_safety=yes + passthru="$passthru --enable-thread-safety" +]) + dnl dnl PHP_BUILD_SHARED dnl diff --git a/sapi/aolserver/config.h.stub b/sapi/aolserver/config.h.stub new file mode 100644 index 0000000000..76f883d6d6 --- /dev/null +++ b/sapi/aolserver/config.h.stub @@ -0,0 +1 @@ +#undef HAVE_AOLSERVER diff --git a/sapi/aolserver/config.m4 b/sapi/aolserver/config.m4 index 9f2cb75379..64a77c4ff0 100644 --- a/sapi/aolserver/config.m4 +++ b/sapi/aolserver/config.m4 @@ -8,8 +8,7 @@ AC_ARG_WITH(aolserver, if test ! -d $withval ; then AC_MSG_ERROR(You did not specify a directory) fi - enable_thread_safety=yes - passthru="$passthru --enable-thread-safety" + PHP_BUILD_THREAD_SAFE NS_DIR=$withval AC_ADD_INCLUDE($NS_DIR/include) AC_DEFINE(HAVE_AOLSERVER)