diff options
| author | Julien Voisin | 2023-04-04 18:19:26 +0200 |
|---|---|---|
| committer | GitHub | 2023-04-04 18:19:26 +0200 |
| commit | e8bed0a966db8640f5161a12b4353a37d4483617 (patch) | |
| tree | f9661b2e2948854763e576ae6653e239562390a5 /src | |
| parent | 097e957276a9d3df617b1c0e3698d9c12f24ec3e (diff) | |
| parent | 76962aff1e1594eff609ea9912be8e7de1fde1f6 (diff) | |
check during configure for NTS/ZTS build
As ZTS is not supported per #123
And to avoid such issue as #450
Diffstat (limited to 'src')
| -rw-r--r-- | src/config.m4 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/config.m4 b/src/config.m4 index 619dcbd..1c1fd62 100644 --- a/src/config.m4 +++ b/src/config.m4 | |||
| @@ -41,6 +41,13 @@ if test "$PHP_DEBUG" = "yes"; then | |||
| 41 | fi | 41 | fi |
| 42 | fi | 42 | fi |
| 43 | 43 | ||
| 44 | AC_MSG_CHECKING([for NTS]) | ||
| 45 | if test "$PHP_THREAD_SAFETY" != "no"; then | ||
| 46 | AC_MSG_ERROR([ZTS (thread safe) is not supported, please use NTS (standard) build of PHP]) | ||
| 47 | else | ||
| 48 | AC_MSG_RESULT([ok]) | ||
| 49 | fi | ||
| 50 | |||
| 44 | AC_CHECK_LIB(pcre, pcre_compile, AC_DEFINE(HAVE_PCRE, 1, [have pcre])) | 51 | AC_CHECK_LIB(pcre, pcre_compile, AC_DEFINE(HAVE_PCRE, 1, [have pcre])) |
| 45 | 52 | ||
| 46 | if test "$PHP_SNUFFLEUPAGUS" = "yes"; then | 53 | if test "$PHP_SNUFFLEUPAGUS" = "yes"; then |
