From 6146d86bae2c18918180cf713e2d581d2b6201ea Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Sun, 4 Jan 2004 18:36:47 +0000 Subject: [PATCH] Handle --with-mon= case Force definition of HAVE_PTHREAD_CANCEL in native mode --- SheepShaver/src/Unix/configure.in | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/SheepShaver/src/Unix/configure.in b/SheepShaver/src/Unix/configure.in index 09de697c..6f684980 100644 --- a/SheepShaver/src/Unix/configure.in +++ b/SheepShaver/src/Unix/configure.in @@ -48,9 +48,17 @@ fi dnl We use mon if possible. MONSRCS= +case "x$WANT_MON" in +x/* | x.*) + mon_srcdir=$WANT_MON + WANT_MON=yes + ;; +yes) + mon_srcdir=../../../mon/src + ;; +esac if [[ "x$WANT_MON" = "xyes" ]]; then AC_MSG_CHECKING(for mon) - mon_srcdir=../../../mon/src if grep mon_init $mon_srcdir/mon.h >/dev/null 2>/dev/null; then AC_MSG_RESULT(yes) AC_DEFINE(ENABLE_MON) @@ -97,6 +105,9 @@ if [[ "x$EMULATED_PPC" = "xyes" ]]; then if [[ "x$HAVE_PTHREADS" = "xyes" ]]; then AC_DEFINE(HAVE_PTHREADS, 1, [Define if pthreads are available.]) fi +else + dnl We do have our own pthread_cancel() implementation + AC_DEFINE(HAVE_PTHREAD_CANCEL, 1, [Define if you have the pthread_cancel function.]) fi dnl If POSIX.4 semaphores are not available, we emulate them with pthread mutexes.