mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 09:09:54 -05:00
Fixed Pthread detection problem in IRIX.
This commit is contained in:
parent
f3774d6ea3
commit
6a302baa9f
1 changed files with 10 additions and 0 deletions
10
configure.in
10
configure.in
|
|
@ -617,9 +617,19 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
|
|||
dnl pthread_mutex_trylock() in -lpthreads -lexc (OSF/1)
|
||||
dnl
|
||||
|
||||
dnl hack the Pthread detection problem in IRIX 6*
|
||||
|
||||
save_LIBS="$LIBS"
|
||||
|
||||
case "$host_os" in
|
||||
irix6*) AC_CHECK_LIB(pthread, main, [LTHREAD_LIBS="$LTHREAD_LIBS -lpthread" LIBS="-lpthread $LIBS"]);;
|
||||
esac
|
||||
|
||||
dnl pthread_create in $LIBS
|
||||
AC_CHECK_FUNC(pthread_create,[ol_link_threads=yes])
|
||||
|
||||
LIBS="$save_LIBS"
|
||||
|
||||
if test $ol_link_threads = no ; then
|
||||
dnl try -mt
|
||||
AC_CACHE_CHECK([for pthread_create with -mt],
|
||||
|
|
|
|||
Loading…
Reference in a new issue