From b6e4841ec7bcdc1b4fd3533fd4ffeefdac095d52 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Thu, 4 May 2000 09:42:27 +0000 Subject: 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). --- acinclude.m4 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'acinclude.m4') 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 -- cgit v1.2.1