[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: configure.in thread support for Solaris
On Tue, Jun 01, 1999 at 06:22:10PM -0700, Kurt D. Zeilenga wrote:
> At 07:33 PM 6/1/99 -0500, openldap-devel@thewrittenword.com wrote:
> >Is it possible to check for thread support functions in $LIBS last
> >rather than first?
>
> No. User specified configuration options, including those
> within $LIBS, must be checked first. See archives for detail
> discussions of this issue.
>
> >Running configure "out of the box" on Solaris
> >will cause the check for pthread_create in $LIBS to succeed
> >(because it is in libc) but the check later on to test if
> >pthread.h and pthread_create are compatible will fail (because
> >the sample C program is not linked with -lpthread).
>
> -devel has improved checks that should handle this situation.
>
> With OpenLDAP 1.2.x, you must tell configure to ignore the
> bogus pthread_create in $LIBS. See the FAQ for details.
> http://www.OpenLDAP.org/faq/index.cgi?file=11
What is suggested here does not work. You also need to set
ol_cv_kthread_flag=no
> >Guy Matz
> >gets around this by setting LIBS="-lpthread -lposix4" prior
> >to configure but it really should not be necessary.
>
> This approach is not recommended as it will cause all OpenLDAP
> applications are linked with $LIBS.
FYI, it's suggested in ldap/doc/install/hints/Solaris.
> Kurt
BTW, are there any intentions of a document describing all the options
to configure? I saw nothing on the web page to help explain them (and
I know next to nothing about LDAP so I'm real confused).
BTW, patch below to configure.in to fix typos.
--
albert chin (china@thewrittenword.com)
-- snip snip
--- configure.in.orig Wed Jun 2 19:17:35 1999
+++ configure.in Wed Jun 2 19:18:55 1999
@@ -108,31 +108,31 @@
if test $ol_enable_slapd = no ; then
dnl SLAPD was specificallly disabled
if test $ol_enable_ldbm = yes ; then
- AC_MSG_WARN([slapd disabled, ignoring --enable_ldbm argument])
+ AC_MSG_WARN([slapd disabled, ignoring --enable-ldbm argument])
fi
if test $ol_enable_passwd = yes ; then
- AC_MSG_WARN([slapd disabled, ignoring --enable_passwd argument])
+ AC_MSG_WARN([slapd disabled, ignoring --enable-passwd argument])
fi
if test $ol_enable_shell = yes ; then
- AC_MSG_WARN([slapd disabled, ignoring --enable_shell argument])
+ AC_MSG_WARN([slapd disabled, ignoring --enable-shell argument])
fi
if test $ol_enable_aclgroups = yes ; then
- AC_MSG_WARN([slapd disabled, ignoring --enable_aclgroups argument])
+ AC_MSG_WARN([slapd disabled, ignoring --enable-aclgroups argument])
fi
if test $ol_enable_wrappers = yes ; then
- AC_MSG_WARN([slapd disabled, ignoring --enable_wrappers argument])
+ AC_MSG_WARN([slapd disabled, ignoring --enable-wrappers argument])
fi
if test $ol_enable_phonetic = yes ; then
- AC_MSG_WARN([slapd disabled, ignoring --enable_phonetic argument])
+ AC_MSG_WARN([slapd disabled, ignoring --enable-phonetic argument])
fi
if test $ol_enable_rlookups = yes ; then
- AC_MSG_WARN([slapd disabled, ignoring --enable_rlookups argument])
+ AC_MSG_WARN([slapd disabled, ignoring --enable-rlookups argument])
fi
if test $ol_with_ldbm_api != auto ; then
- AC_MSG_WARN([slapd disabled, ignoring --with_ldbm_api argument])
+ AC_MSG_WARN([slapd disabled, ignoring --with-ldbm-api argument])
fi
if test $ol_with_ldbm_type != auto ; then
- AC_MSG_WARN([slapd disabled, ignoring --with_ldbm_type argument])
+ AC_MSG_WARN([slapd disabled, ignoring --with-ldbm-type argument])
fi
if test $ol_enable_slurpd = yes ; then
AC_MSG_ERROR([slurpd requires slapd])
@@ -154,11 +154,11 @@
dnl SLAPD without LDBM
if test $ol_with_ldbm_api != auto ; then
- AC_MSG_WARN([LDBM disabled, ignoring --with_ldbm_api argument])
+ AC_MSG_WARN([LDBM disabled, ignoring --with-ldbm-api argument])
fi
if test $ol_with_ldbm_type != auto ; then
- AC_MSG_WARN([LDBM disabled, ignoring --with_ldbm_type argument])
+ AC_MSG_WARN([LDBM disabled, ignoring --with-ldbm-type argument])
fi
if test $ol_enable_passwd = no -a $ol_enable_shell = no ; then