mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
Update configure to handle DEC OSF1 3.2 special cases.
-thread & -pthread are still treated as libraries, will need additional work to use them as CFLAGS. Eliminated HAVE_DCE define (was redundant) and its use. Code now relies on draft4 and function existance tests.
This commit is contained in:
parent
1fc810bfe5
commit
376e1e02ff
8 changed files with 328 additions and 266 deletions
|
|
@ -12,6 +12,9 @@
|
||||||
/* define this if needed to get threadsafe functions */
|
/* define this if needed to get threadsafe functions */
|
||||||
#undef _THREAD_SAFE
|
#undef _THREAD_SAFE
|
||||||
|
|
||||||
|
/* define this if needed to get threadsafe functions */
|
||||||
|
#undef _THREADSAFE
|
||||||
|
|
||||||
/* define this if toupper() requires tolower() check */
|
/* define this if toupper() requires tolower() check */
|
||||||
#undef C_UPPER_LOWER
|
#undef C_UPPER_LOWER
|
||||||
|
|
||||||
|
|
@ -27,9 +30,6 @@
|
||||||
/* define if you have crypt */
|
/* define if you have crypt */
|
||||||
#undef HAVE_CRYPT
|
#undef HAVE_CRYPT
|
||||||
|
|
||||||
/* define if you have DCE */
|
|
||||||
#undef HAVE_DCE
|
|
||||||
|
|
||||||
/* define if you have DSAP */
|
/* define if you have DSAP */
|
||||||
#undef HAVE_DSAP
|
#undef HAVE_DSAP
|
||||||
|
|
||||||
|
|
|
||||||
20
configure.in
20
configure.in
|
|
@ -322,7 +322,6 @@ if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
ol_link_threads=no
|
ol_link_threads=no
|
||||||
if test $ol_with_threads = auto -o $ol_with_threads = posix ; then
|
if test $ol_with_threads = auto -o $ol_with_threads = posix ; then
|
||||||
AC_CHECK_HEADERS(pthread.h sched.h)
|
AC_CHECK_HEADERS(pthread.h sched.h)
|
||||||
|
|
@ -393,12 +392,24 @@ if test $ol_with_threads = auto -o $ol_with_threads = posix ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test $ol_link_threads = no ; then
|
if test $ol_link_threads = no ; then
|
||||||
dnl try DEC Threads
|
dnl try DEC Threads -lpthread -lexc
|
||||||
save_LIBS="$LIBS"
|
save_LIBS="$LIBS"
|
||||||
AC_CHECK_LIB(pthread, pthread_create, [
|
AC_CHECK_LIB(pthread, pthread_create, [
|
||||||
AC_DEFINE(HAVE_DCE)
|
|
||||||
ol_link_threads=posix
|
ol_link_threads=posix
|
||||||
LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc_r"
|
LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
|
||||||
|
if test $ol_with_preemptive = auto ; then
|
||||||
|
ol_with_preemptive=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"
|
||||||
|
AC_CHECK_LIB(pthreads, pthread_create, [
|
||||||
|
ol_link_threads=posix
|
||||||
|
LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
|
||||||
if test $ol_with_preemptive = auto ; then
|
if test $ol_with_preemptive = auto ; then
|
||||||
ol_with_preemptive=yes
|
ol_with_preemptive=yes
|
||||||
fi
|
fi
|
||||||
|
|
@ -664,6 +675,7 @@ if test $ol_with_threads != no ; then
|
||||||
dnl
|
dnl
|
||||||
AC_DEFINE(_REENTRANT,1)
|
AC_DEFINE(_REENTRANT,1)
|
||||||
AC_DEFINE(_THREAD_SAFE,1)
|
AC_DEFINE(_THREAD_SAFE,1)
|
||||||
|
AC_DEFINE(_THREADSAFE,1)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl ----------------------------------------------------------------
|
dnl ----------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -112,6 +112,9 @@ is provided ``as is'' without express or implied warranty.
|
||||||
/* define this if needed to get threadsafe functions */
|
/* define this if needed to get threadsafe functions */
|
||||||
#undef _THREAD_SAFE
|
#undef _THREAD_SAFE
|
||||||
|
|
||||||
|
/* define this if needed to get threadsafe functions */
|
||||||
|
#undef _THREADSAFE
|
||||||
|
|
||||||
/* define this if toupper() requires tolower() check */
|
/* define this if toupper() requires tolower() check */
|
||||||
#undef C_UPPER_LOWER
|
#undef C_UPPER_LOWER
|
||||||
|
|
||||||
|
|
@ -127,9 +130,6 @@ is provided ``as is'' without express or implied warranty.
|
||||||
/* define if you have crypt */
|
/* define if you have crypt */
|
||||||
#undef HAVE_CRYPT
|
#undef HAVE_CRYPT
|
||||||
|
|
||||||
/* define if you have DCE */
|
|
||||||
#undef HAVE_DCE
|
|
||||||
|
|
||||||
/* define if you have DSAP */
|
/* define if you have DSAP */
|
||||||
#undef HAVE_DSAP
|
#undef HAVE_DSAP
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -201,7 +201,7 @@ connection_activity(
|
||||||
|
|
||||||
pthread_attr_init( &attr );
|
pthread_attr_init( &attr );
|
||||||
pthread_attr_setdetachstate( &attr, PTHREAD_CREATE_DETACHED );
|
pthread_attr_setdetachstate( &attr, PTHREAD_CREATE_DETACHED );
|
||||||
#if !defined(HAVE_PTHREADS_D4) && !defined(HAVE_DCE)
|
#if !defined(HAVE_PTHREADS_D4)
|
||||||
/* POSIX_THREADS or compatible
|
/* POSIX_THREADS or compatible
|
||||||
* This is a draft 10 or standard pthreads implementation
|
* This is a draft 10 or standard pthreads implementation
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -187,7 +187,7 @@ main( argc, argv )
|
||||||
pthread_attr_init( &attr );
|
pthread_attr_init( &attr );
|
||||||
pthread_attr_setdetachstate( &attr, PTHREAD_CREATE_DETACHED );
|
pthread_attr_setdetachstate( &attr, PTHREAD_CREATE_DETACHED );
|
||||||
|
|
||||||
#if !defined(HAVE_PTHREADS_D4) && !defined(HAVE_DCE)
|
#if !defined(HAVE_PTHREADS_D4)
|
||||||
/* POSIX_THREADS or compatible
|
/* POSIX_THREADS or compatible
|
||||||
* This is a draft 10 or standard pthreads implementation
|
* This is a draft 10 or standard pthreads implementation
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -124,7 +124,7 @@ main(
|
||||||
*/
|
*/
|
||||||
pthread_attr_init( &attr );
|
pthread_attr_init( &attr );
|
||||||
|
|
||||||
#if !defined(HAVE_PTHREADS_D4) && !defined(HAVE_DCE)
|
#if !defined(HAVE_PTHREADS_D4)
|
||||||
/* POSIX_THREADS or compatible
|
/* POSIX_THREADS or compatible
|
||||||
* This is a draft 10 or standard pthreads implementation
|
* This is a draft 10 or standard pthreads implementation
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ start_replica_thread(
|
||||||
pthread_attr_setdetachstate( &attr, PTHREAD_CREATE_DETACHED );
|
pthread_attr_setdetachstate( &attr, PTHREAD_CREATE_DETACHED );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(HAVE_PTHREAD_D4) && !defined(HAVE_DCE)
|
#if !defined(HAVE_PTHREAD_D4)
|
||||||
/* POSIX_THREADS or compatible
|
/* POSIX_THREADS or compatible
|
||||||
* This is a draft 10 or standard pthreads implementation
|
* This is a draft 10 or standard pthreads implementation
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue