mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-27 02:49:42 +00:00
Handle --with-mon=<monsrcdir> case
Force definition of HAVE_PTHREAD_CANCEL in native mode
This commit is contained in:
parent
dd3a208906
commit
6146d86bae
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user