Commit 0ecb80a6 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Add special pthread_create check for HP-UX 11. (ITS14).

parent ceb1c5ce
......@@ -2,12 +2,16 @@ OpenLDAP Change Log
Changes included in OpenLDAP 1.1.2
CVS Tag: OPENLDAP_REL_ENG_1_1_2
Fixed slapd schema check bug
Fixed slapd/back-ldbm/search matched initialization bug
Fixed --disable-crypt/-disable-cleartext options
Fixed slapd/back-ldbm/search matched initialization bug (ITS#23)
Fixed slapd/acl deadlock bug (ITS#24)
Fixed slapd schema check bug (ITS#25)
Fixed slapd/nonauthorized add bug (ITS#26)
Fixed misc. overlapping strcpy bugs
Fixed misc. memory leaks
Update slapd/slurpd to workaround FreeBSD pthread_exit bug
Update slapd/slurpd to workaround FreeBSD pthread_exit bug (ITS#28)
Build environment
Fixed --disable-crypt/-disable-cleartext options
Added special pthread detection for HP-UX 11. (ITS#14)
Changes included in OpenLDAP 1.1.1
CVS Tag: OPENLDAP_REL_ENG_1_1_1
......
This diff is collapsed.
......@@ -494,6 +494,37 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
LIBS="$save_LIBS"
fi
dnl HP-UX 11 check
if test $ol_link_threads = no; then
save_LIBS="$LIBS"
LIBS="$LIBS -lpthread"
AC_MSG_CHECKING([for pthread_create() in HP-UX -lpthread])
ol_try_pthread_hpux_11=no
AC_CACHE_VAL(ol_cv_pthread_hpux_11,[
AC_TRY_LINK([
#include <pthread.h>
#include <elf.h>
#ifndef ELFABI_HPUX_REL11
die horribly
#endif
], [pthread_create(NULL, NULL, NULL, NULL);],
ol_try_pthread_hpux_11=yes
ol_cv_pthread_hpux_11=yes,
ol_cv_pthread_hpux_11=no)])
AC_MSG_RESULT(yes)
LIBS="$save_LIBS"
if test $ol_cv_pthread_hpux_11=yes ; then
ol_link_threads=posix
LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
if test $ol_try_pthread_hpux_11=yes ; then
dnl Some tests below may fail, cause we aint including
dnl pthread.h. Force appropriate ones to yes
ac_cv_func_pthread_attr_init=yes
fi
fi
fi
if test $ol_link_threads != no ; then
AC_DEFINE(HAVE_PTHREADS)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment