diff options
author | Sascha Schumann <sas@php.net> | 2000-04-30 04:50:03 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2000-04-30 04:50:03 +0000 |
commit | b87df8f21060b18a6f8f233e02cb3575aaa8f4f6 (patch) | |
tree | 50e4dfd9ff14d46c5f97a037aa8db7e5cffd316c /TSRM/threads.m4 | |
parent | c7e2d8ef35df1327581e9eb10632a20b2f062c97 (diff) | |
download | php-git-b87df8f21060b18a6f8f233e02cb3575aaa8f4f6.tar.gz |
Add UnixWare/OpenServer flags
Diffstat (limited to 'TSRM/threads.m4')
-rw-r--r-- | TSRM/threads.m4 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/TSRM/threads.m4 b/TSRM/threads.m4 index f604346bf8..770cd5c4fd 100644 --- a/TSRM/threads.m4 +++ b/TSRM/threads.m4 @@ -47,12 +47,15 @@ AC_DEFUN(PTHREADS_FLAGS,[ PTHREAD_FLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS";; *hpux*) PTHREAD_FLAGS="-D_REENTRANT";; + *sco*) + PTHREAD_FLAGS="-D_REENTRANT";; +dnl Solves sigwait() problem, creates problems with u_long etc. +dnl PTHREAD_FLAGS="-D_REENTRANT -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=199506 -D_XOPEN_SOURCE_EXTENDED=1";; esac if test -n "$PTHREAD_FLAGS"; then CPPFLAGS="$CPPFLAGS $PTHREAD_FLAGS" fi - ])dnl dnl dnl PTHREADS_CHECK_COMPILE @@ -98,7 +101,7 @@ PTHREADS_CHECK_COMPILE AC_CACHE_CHECK(for pthreads_cflags,ac_cv_pthreads_cflags,[ ac_cv_pthreads_cflags="" if test "$pthreads_working" != "yes"; then - for flag in -pthreads -pthread -mthreads; do + for flag in -pthreads -pthread -mthreads -Kthread; do ac_save="$CFLAGS" CFLAGS="$CFLAGS $flag" PTHREADS_CHECK_COMPILE |