98 |
|
dnl We want pthreads. |
99 |
|
HAVE_PTHREADS=yes |
100 |
|
AC_CHECK_FUNCS(pthread_cancel) |
101 |
+ |
AC_CHECK_FUNCS(pthread_mutexattr_setprotocol) |
102 |
+ |
AC_CHECK_FUNCS(pthread_mutexattr_settype) |
103 |
|
|
104 |
|
dnl If POSIX.4 semaphores are not available, we emulate them with pthread mutexes. |
105 |
|
SEMSRC= |
543 |
|
], [AC_MSG_RESULT(yes); HAVE_GCC30=yes], AC_MSG_RESULT(no)) |
544 |
|
|
545 |
|
dnl Set "-fomit-frame-pointer" on i386 GCC 2.7 or higher. |
546 |
+ |
dnl Also set "-fno-exceptions" for C++ because exception handling requires |
547 |
+ |
dnl the frame pointer. |
548 |
|
if [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_I386" = "xyes" ]]; then |
549 |
|
CFLAGS="$CFLAGS -fomit-frame-pointer" |
550 |
< |
CXXFLAGS="$CXXFLAGS -fomit-frame-pointer" |
550 |
> |
CXXFLAGS="$CXXFLAGS -fomit-frame-pointer -fno-exceptions" |
551 |
|
fi |
552 |
|
|
553 |
|
dnl (gb) Do not merge constants since it breaks fpu/fpu_x86.cpp. |