mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
Even more pthread changes for Digital UNIX...
This commit is contained in:
parent
433e8ad645
commit
da40e0e350
2 changed files with 565 additions and 433 deletions
98
configure.in
98
configure.in
|
|
@ -465,20 +465,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
|
||||
|
|
@ -564,19 +566,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"
|
||||
|
|
@ -590,6 +579,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"
|
||||
|
|
@ -679,19 +694,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"
|
||||
|
|
@ -705,6 +707,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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue