diff options
author | Sascha Schumann <sas@php.net> | 2001-06-21 16:54:05 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2001-06-21 16:54:05 +0000 |
commit | 6ae7e5f54a0bb8ab292dd1b5e2cff60ff04fd481 (patch) | |
tree | 5ef0f941598f52cb820c9ed698e2b210471c1795 /TSRM/tsrm.m4 | |
parent | 851b1e3b357be98569f74404cf7a7e5377c0ab2c (diff) | |
download | php-git-6ae7e5f54a0bb8ab292dd1b5e2cff60ff04fd481.tar.gz |
Support for SGI's State Threads. Will be used by PHP's thttpd SAPI
initially.
Diffstat (limited to 'TSRM/tsrm.m4')
-rw-r--r-- | TSRM/tsrm.m4 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/TSRM/tsrm.m4 b/TSRM/tsrm.m4 index 73a67ba7c8..16a0baf37b 100644 --- a/TSRM/tsrm.m4 +++ b/TSRM/tsrm.m4 @@ -50,6 +50,23 @@ AC_MSG_RESULT(yes - installed in $PTH_PREFIX) ]) +AC_DEFUN(TSRM_CHECK_ST,[ + if test -r "$1/include/st.h"; then + CPPFLAGS="$CPPFLAGS -I$1/include" + LDFLAGS="$LDFLAGS -L$1/lib" + elif test -r "$1/st.h"; then + CPPFLAGS="$CPPFLAGS -I$1" + LDFLAGS="$LDFLAGS -L$1" + fi + AC_CHECK_HEADERS(st.h,[ ],[ + AC_MSG_ERROR([Sorry[,] I was unable to locate the State Threads header file. Please specify the prefix using --with-tsrm-st=/prefix]) + ]) + LIBS="$LIBS -lst" + AC_MSG_CHECKING(for SGI's State Threads) + AC_MSG_RESULT(yes) + AC_DEFINE(TSRM_ST, 1, [ ]) +]) + sinclude(threads.m4) sinclude(TSRM/threads.m4) @@ -80,6 +97,13 @@ AC_ARG_WITH(tsrm-pth, TSRM_PTH=no ]) +AC_ARG_WITH(tsrm-st, +[ --with-tsrm-st],[ + TSRM_ST=$withval +],[ + TSRM_ST=no +]) + AC_ARG_WITH(tsrm-pthreads, [ --with-tsrm-pthreads Use POSIX threads (default)],[ TSRM_PTHREADS=$withval @@ -91,6 +115,8 @@ test "$TSRM_PTH" = "yes" && TSRM_PTH=pth-config if test "$TSRM_PTH" != "no"; then TSRM_CHECK_PTH($TSRM_PTH) +elif test "$TSRM_ST" != "no"; then + TSRM_CHECK_ST($TSRM_ST) elif test "$TSRM_PTHREADS" != "no"; then TSRM_CHECK_PTHREADS fi |