mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Autotools: Refactor thread safety checks (#15214)
- The ZTS is defined on only one place - Added help text for ZTS preprocessor macro - The 'enable_zts' variable replaced with PHP_THREAD_SAFETY in configure.ac. - Nits fixed.
This commit is contained in:
parent
bb299a03e9
commit
62f75a7812
4 changed files with 19 additions and 32 deletions
|
@ -91,19 +91,17 @@ php_debug_is_enabled
|
|||
CPPFLAGS=$old_CPPFLAGS
|
||||
AC_MSG_RESULT([$PHP_DEBUG])
|
||||
|
||||
AC_MSG_CHECKING([if zts is enabled])
|
||||
AC_MSG_CHECKING([if PHP is built with thread safety (ZTS)])
|
||||
old_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="-I$phpincludedir"
|
||||
AC_EGREP_CPP(php_zts_is_enabled,[
|
||||
AC_EGREP_CPP([php_zts_is_enabled], [
|
||||
#include <main/php_config.h>
|
||||
#ifdef ZTS
|
||||
php_zts_is_enabled
|
||||
#endif
|
||||
],[
|
||||
PHP_THREAD_SAFETY=yes
|
||||
],[
|
||||
PHP_THREAD_SAFETY=no
|
||||
])
|
||||
],
|
||||
[PHP_THREAD_SAFETY=yes],
|
||||
[PHP_THREAD_SAFETY=no])
|
||||
CPPFLAGS=$old_CPPFLAGS
|
||||
AC_MSG_RESULT([$PHP_THREAD_SAFETY])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue