summaryrefslogtreecommitdiff
path: root/TSRM/tsrm.m4
diff options
context:
space:
mode:
authorDavid Reid <dreid@php.net>2002-10-05 11:26:17 +0000
committerDavid Reid <dreid@php.net>2002-10-05 11:26:17 +0000
commit2a0fbded3dc3f366cf3e4bfd3a42c7a2f5d2b745 (patch)
tree16a454a99aa47c8b954271b995bd200712af8326 /TSRM/tsrm.m4
parent4ca381aacfc77f43d02895d7ced4ecd36b5a286e (diff)
downloadphp-git-2a0fbded3dc3f366cf3e4bfd3a42c7a2f5d2b745.tar.gz
Add BeOS thread support to TSRM. This should not impact on any other OS's
but allows us to build PHP with threading support and therefore we can build as an Apache 2 module. The locking is currently done using benaphores but this may be reviewed.
Diffstat (limited to 'TSRM/tsrm.m4')
-rw-r--r--TSRM/tsrm.m420
1 files changed, 12 insertions, 8 deletions
diff --git a/TSRM/tsrm.m4 b/TSRM/tsrm.m4
index 61462f1f96..f9f9e4dcd2 100644
--- a/TSRM/tsrm.m4
+++ b/TSRM/tsrm.m4
@@ -73,15 +73,19 @@ sinclude(TSRM/threads.m4)
AC_DEFUN(TSRM_CHECK_PTHREADS,[
PTHREADS_CHECK
-
-if test "$pthreads_working" != "yes"; then
- AC_MSG_ERROR(Your system seems to lack POSIX threads.)
-fi
-
-AC_DEFINE(PTHREADS, 1, Whether to use Pthreads)
-AC_MSG_CHECKING(for POSIX threads)
-AC_MSG_RESULT(yes)
+if test "$beos_threads" = "1"; then
+ AC_DEFINE(BETHREADS, 1, Whether to use native BeOS threads)
+else
+ if test "$pthreads_working" != "yes"; then
+ AC_MSG_ERROR(Your system seems to lack POSIX threads.)
+ fi
+
+ AC_DEFINE(PTHREADS, 1, Whether to use Pthreads)
+
+ AC_MSG_CHECKING(for POSIX threads)
+ AC_MSG_RESULT(yes)
+fi
])