mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
LWP/THR detected failed to set ol_link_threads.
This commit is contained in:
parent
8dcc4b6c8f
commit
781bf990e5
2 changed files with 212 additions and 208 deletions
|
|
@ -623,11 +623,12 @@ if test $ol_with_threads = auto -o $ol_with_threads = lwp ; then
|
||||||
dnl check for SunOS5 LWP
|
dnl check for SunOS5 LWP
|
||||||
AC_CHECK_HEADERS(thread.h synch.h)
|
AC_CHECK_HEADERS(thread.h synch.h)
|
||||||
if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
|
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)
|
AC_DEFINE(HAVE_THR)
|
||||||
LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
|
LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
|
||||||
|
ol_link_threads=thr
|
||||||
|
|
||||||
if test $ol_with_preemptive = auto ; then
|
if test $ol_with_preemptive = auto ; then
|
||||||
ol_with_preemptive=yes
|
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
|
if test $have_lwp = yes ; then
|
||||||
AC_DEFINE(HAVE_LWP)
|
AC_DEFINE(HAVE_LWP)
|
||||||
LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
|
LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
|
||||||
|
ol_link_threads=lwp
|
||||||
|
|
||||||
if test $ol_with_preemptive = auto ; then
|
if test $ol_with_preemptive = auto ; then
|
||||||
ol_with_preemptive=no
|
ol_with_preemptive=no
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue