Define HAVE_PTHREADS, if available

This commit is contained in:
gbeauche 2003-09-28 21:19:06 +00:00
parent 2a756136e4
commit 9914de4a09

View File

@ -89,6 +89,9 @@ if [[ "x$EMULATED_PPC" = "xyes" ]]; then
])
])
AC_CHECK_FUNCS(pthread_cancel)
if [[ "x$HAVE_PTHREADS" = "xyes" ]]; then
AC_DEFINE(HAVE_PTHREADS, 1, [Define if pthreads are available.])
fi
fi
dnl If POSIX.4 semaphores are not available, we emulate them with pthread mutexes.