From b87df8f21060b18a6f8f233e02cb3575aaa8f4f6 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Sun, 30 Apr 2000 04:50:03 +0000 Subject: Add UnixWare/OpenServer flags --- TSRM/threads.m4 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'TSRM/threads.m4') 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 -- cgit v1.2.1