Update pthread detection yet again for Digital UNIX.

This commit is contained in:
Kurt Zeilenga 1999-02-02 04:25:08 +00:00
parent b4cb19d441
commit 6be614b62b
2 changed files with 548 additions and 416 deletions

866
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -405,20 +405,22 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
dnl 4) pthread_create() with -thread (?)
dnl
dnl Check pthread (final) libraries
dnl 5) pthread_mutex_lock() in -lpthread -lexc (OSF/1)
dnl 6) pthread_mutex_unlock() in -lpthread -lmach -lexc -lc_r (OSF/1)
dnl 7) pthread_create() in -lpthread (many)
dnl 8) pthread_create() in -lc_r (FreeBSD)
dnl 9) pthread_create() in -lpthreads (many)
dnl 10) pthread_join() -Wl,-woff,85 -lpthreads (IRIX)
dnl 11) pthread_create() in HP-UX -lpthread (HP-UX 11)
dnl 5) pthread_mutex_unlock() in -lpthread -lmach -lexc -lc_r (OSF/1)
dnl 6) pthread_mutex_lock() in -lpthread -lmach -lexc (OSF/1)
dnl 7) pthread_mutex_trylock() in -lpthread -lexc (OSF/1)
dnl 8) pthread_create() in -lpthread (many)
dnl 9) pthread_create() in -lc_r (FreeBSD)
dnl 10) pthread_create() in -lpthreads (many)
dnl 11) pthread_join() -Wl,-woff,85 -lpthreads (IRIX)
dnl 12) pthread_create() in HP-UX -lpthread (HP-UX 11)
dnl
dnl Check pthread (draft4) flags (to be depreciated)
dnl 12) pthread_create() with -threads (OSF/1)
dnl 13) pthread_create() with -threads (OSF/1)
dnl
dnl Check pthread (final) libraries (to be depreciated)
dnl 13) pthread_mutex_lock() in -lpthreads -lexc (OSF/1)
dnl 14) pthread_mutex_unlock() in -lpthreads -lmach -lexc -lc_r (OSF/1)
dnl 14) pthread_mutex_lock() in -lpthreads -lmach -lexc (OSF/1)
dnl 14) pthread_mutex_trylock() in -lpthreads -lexc (OSF/1)
dnl
dnl pthread_create in $LIBS
@ -504,19 +506,6 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
fi
fi
if test $ol_link_threads = no ; then
dnl try DEC Threads -lpthread -lexc
save_LIBS="$LIBS"
AC_CHECK_LIB(pthread, pthread_mutex_lock, [
ol_link_threads=posix
LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
if test $ol_with_yielding_select = auto ; then
ol_with_yielding_select=yes
fi
],:,[-lexc])
LIBS="$save_LIBS"
fi
if test $ol_link_threads = no ; then
dnl try DEC Threads -lpthread -lmach -lexc -lc_r
save_LIBS="$LIBS"
@ -530,6 +519,32 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
LIBS="$save_LIBS"
fi
if test $ol_link_threads = no ; then
dnl try DEC Threads -lpthread -lmach -lexc
save_LIBS="$LIBS"
AC_CHECK_LIB(pthread, pthread_mutex_lock, [
ol_link_threads=posix
LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc"
if test $ol_with_yielding_select = auto ; then
ol_with_yielding_select=yes
fi
],:,[-lmach -lexc])
LIBS="$save_LIBS"
fi
if test $ol_link_threads = no ; then
dnl try DEC Threads -lpthread -lexc
save_LIBS="$LIBS"
AC_CHECK_LIB(pthread, pthread_mutex_trylock, [
ol_link_threads=posix
LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
if test $ol_with_yielding_select = auto ; then
ol_with_yielding_select=yes
fi
],:,[-lexc])
LIBS="$save_LIBS"
fi
if test $ol_link_threads = no ; then
dnl try -lpthread
save_LIBS="$LIBS"
@ -619,19 +634,6 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
fi
fi
if test $ol_link_threads = no ; then
dnl try DEC Threads -lpthreads -lexc
save_LIBS="$LIBS"
AC_CHECK_LIB(pthreads, pthread_mutex_lock, [
ol_link_threads=posix
LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lexc"
if test $ol_with_yielding_select = auto ; then
ol_with_yielding_select=yes
fi
],:,[-lexc])
LIBS="$save_LIBS"
fi
if test $ol_link_threads = no ; then
dnl try DEC Threads -lpthreads -lmach -lexc -lc_r
save_LIBS="$LIBS"
@ -645,6 +647,32 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
LIBS="$save_LIBS"
fi
if test $ol_link_threads = no ; then
dnl try DEC Threads -lpthreads -lmach -lexc
save_LIBS="$LIBS"
AC_CHECK_LIB(pthreads, pthread_mutex_lock, [
ol_link_threads=posix
LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc"
if test $ol_with_yielding_select = auto ; then
ol_with_yielding_select=yes
fi
],:,[-lmach -lexc])
LIBS="$save_LIBS"
fi
if test $ol_link_threads = no ; then
dnl try DEC Threads -lpthreads -lexc
save_LIBS="$LIBS"
AC_CHECK_LIB(pthreads, pthread_mutex_trylock, [
ol_link_threads=posix
LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lexc"
if test $ol_with_yielding_select = auto ; then
ol_with_yielding_select=yes
fi
],:,[-lexc])
LIBS="$save_LIBS"
fi
if test $ol_link_threads != no ; then
AC_DEFINE(HAVE_PTHREADS)