48 |
|
|
49 |
|
dnl We use mon if possible. |
50 |
|
MONSRCS= |
51 |
+ |
case "x$WANT_MON" in |
52 |
+ |
x/* | x.*) |
53 |
+ |
mon_srcdir=$WANT_MON |
54 |
+ |
WANT_MON=yes |
55 |
+ |
;; |
56 |
+ |
xyes) |
57 |
+ |
mon_srcdir=../../../mon/src |
58 |
+ |
;; |
59 |
+ |
esac |
60 |
|
if [[ "x$WANT_MON" = "xyes" ]]; then |
61 |
|
AC_MSG_CHECKING(for mon) |
53 |
– |
mon_srcdir=../../../mon/src |
62 |
|
if grep mon_init $mon_srcdir/mon.h >/dev/null 2>/dev/null; then |
63 |
|
AC_MSG_RESULT(yes) |
64 |
|
AC_DEFINE(ENABLE_MON) |
105 |
|
if [[ "x$HAVE_PTHREADS" = "xyes" ]]; then |
106 |
|
AC_DEFINE(HAVE_PTHREADS, 1, [Define if pthreads are available.]) |
107 |
|
fi |
108 |
+ |
else |
109 |
+ |
dnl We do have our own pthread_cancel() implementation |
110 |
+ |
AC_DEFINE(HAVE_PTHREAD_CANCEL, 1, [Define if you have the pthread_cancel function.]) |
111 |
|
fi |
112 |
|
|
113 |
|
dnl If POSIX.4 semaphores are not available, we emulate them with pthread mutexes. |
613 |
|
fi |
614 |
|
fi |
615 |
|
CPUSRCS="$CPUSRCS ../kpx_cpu/sheepshaver_glue.cpp" |
616 |
+ |
else |
617 |
+ |
WANT_JIT=no |
618 |
|
fi |
619 |
|
if [[ "x$ac_cv_use_dyngen" = "xyes" ]]; then |
620 |
|
AC_CACHE_CHECK([whether static data regions are executable], |