cthreads detection fix from HEAD to resolve ITS#1554

This commit is contained in:
Kurt Zeilenga 2002-01-24 18:03:02 +00:00
parent e3e8a1afa6
commit 653fd9c9f6
4 changed files with 307 additions and 299 deletions

View File

@ -3,8 +3,10 @@ OpenLDAP 2.0 Change Log
OpenLDAP 2.0.22 Engineering
Updated slapd slurpd friendly code
Fixed slapd passwd modify referral bug
Fixed back-ldbm ordering presence index bug
Fixed back-ldbm ordering presense index bug
FIxed back-ldap modify bug (ITS#1547)
Build environment
Fixed Mach cthreads detection (ITS#1554)
OpenLDAP 2.0.21 Release
Fix slapd empty string indexing/filtering handling (ITS#1507)

591
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1387,11 +1387,11 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
-o $ol_with_threads = mach ; then
dnl check for Mach CThreads
AC_CHECK_HEADERS(mach/cthreads.h cthread.h)
AC_CHECK_HEADERS(mach/cthreads.h cthreads.h)
if test $ac_cv_header_mach_cthreads_h = yes ; then
ol_with_threads=found
dnl check for cthread support in current $LIBS
dnl check for cthreads support in current $LIBS
AC_CHECK_FUNC(cthread_fork,[ol_link_threads=yes])
if test $ol_link_threads = no ; then
@ -1412,6 +1412,7 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
if test $ol_cv_cthread_all_load = yes ; then
LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
ol_link_threads=mach
ol_with_threads=found
fi
fi
@ -1430,6 +1431,7 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
if test $ol_link_threads = yes ; then
LTHREAD_LIBS="-lthreads"
ol_link_threads=mach
ol_with_threads=found
else
AC_MSG_ERROR([could not link with Mach CThreads])
fi
@ -1458,6 +1460,7 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
AC_DEFINE(HAVE_GNU_PTH,1,[if you have GNU Pth])
LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
ol_link_threads=pth
ol_with_threads=found
if test $ol_with_yielding_select = auto ; then
ol_with_yielding_select=yes

View File

@ -349,8 +349,8 @@
/* Define if you have the <crypt.h> header file. */
#undef HAVE_CRYPT_H
/* Define if you have the <cthread.h> header file. */
#undef HAVE_CTHREAD_H
/* Define if you have the <cthreads.h> header file. */
#undef HAVE_CTHREADS_H
/* Define if you have the <db.h> header file. */
#undef HAVE_DB_H