mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
LWP/THR detected failed to set ol_link_threads.
This commit is contained in:
parent
8dcc4b6c8f
commit
781bf990e5
@ -623,11 +623,12 @@ if test $ol_with_threads = auto -o $ol_with_threads = lwp ; then
|
||||
dnl check for SunOS5 LWP
|
||||
AC_CHECK_HEADERS(thread.h synch.h)
|
||||
if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
|
||||
AC_CHECK_LIB(thread, thr_create, [have_lwp=yes], [have_lwp=no])
|
||||
AC_CHECK_LIB(thread, thr_create, [have_thr=yes], [have_thr=no])
|
||||
|
||||
if test $have_lwp = yes ; then
|
||||
if test $have_thr = yes ; then
|
||||
AC_DEFINE(HAVE_THR)
|
||||
LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
|
||||
ol_link_threads=thr
|
||||
|
||||
if test $ol_with_preemptive = auto ; then
|
||||
ol_with_preemptive=yes
|
||||
@ -643,6 +644,7 @@ if test $ol_with_threads = auto -o $ol_with_threads = lwp ; then
|
||||
if test $have_lwp = yes ; then
|
||||
AC_DEFINE(HAVE_LWP)
|
||||
LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
|
||||
ol_link_threads=lwp
|
||||
|
||||
if test $ol_with_preemptive = auto ; then
|
||||
ol_with_preemptive=no
|
||||
|
Loading…
Reference in New Issue
Block a user