diff options
| author | Sascha Schumann <sas@php.net> | 2000-05-04 09:42:27 +0000 |
|---|---|---|
| committer | Sascha Schumann <sas@php.net> | 2000-05-04 09:42:27 +0000 |
| commit | b6e4841ec7bcdc1b4fd3533fd4ffeefdac095d52 (patch) | |
| tree | 27711c7cc4286034dc7bfbfdeda8209d8d768273 /acinclude.m4 | |
| parent | cad04f55792bf247665fcddd4b9f7ca87040ce30 (diff) | |
| download | php-git-b6e4841ec7bcdc1b4fd3533fd4ffeefdac095d52.tar.gz | |
Determine first whether we will use ZTS mode or not.
This is important, because the system checks will yield different
results depending on whether POSIX threads are enabled or not.
We also use PTHREADS_CFLAGS only in ZTS mode now. Using these flags
in non-ZTS mode causes complete build failures on some platforms
(i.e. FreeBSD 2.2.x). This will cause harmless warnings on some
platforms (i.e. Solaris 2).
Diffstat (limited to 'acinclude.m4')
| -rw-r--r-- | acinclude.m4 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 9d91db8206..31551a36ea 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -260,6 +260,9 @@ dnl PHP_BUILD_THREAD_SAFE dnl AC_DEFUN(PHP_BUILD_THREAD_SAFE,[ enable_experimental_zts=yes + if test "$pthreads_working" != "yes"; then + AC_MSG_ERROR(ZTS currently requires working POSIX threads. Your system does not support this.) + fi ]) dnl |
