Fix DCE detection.

This commit is contained in:
Kurt Zeilenga 1998-11-04 17:35:18 +00:00
parent a76130b705
commit df104514a8
2 changed files with 222 additions and 221 deletions

437
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -338,11 +338,11 @@ if test $ol_with_threads = auto -o $ol_with_threads = posix ; then
AC_CHECK_LIB(pthread, pthread_create, [ AC_CHECK_LIB(pthread, pthread_create, [
AC_DEFINE(HAVE_DCE) AC_DEFINE(HAVE_DCE)
ol_link_threads=posix ol_link_threads=posix
LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc"],, LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc"
if test $ol_with_preemptive = auto ; then if test $ol_with_preemptive = auto ; then
ol_with_preemptive=yes ol_with_preemptive=yes
fi fi
[-lmach -lexc -lc]) ],,[-lmach -lexc -lc])
LIBS="$save_LIBS" LIBS="$save_LIBS"
fi fi
@ -557,7 +557,7 @@ if test $ol_link_threads = no ; then
if test $ol_with_threads = auto ; then if test $ol_with_threads = auto ; then
AC_MSG_WARN([no suitable thread support, disabling threads]) AC_MSG_WARN([no suitable thread support, disabling threads])
ol_with_threads = no ol_with_threads=no
fi fi
AC_DEFINE(NO_THREADS,1) AC_DEFINE(NO_THREADS,1)