Add LDAPD library checks.

Remove AC_GCC_TRADITIONAL check.  Likely to cause more harm than good.
This commit is contained in:
Kurt Zeilenga 1998-11-06 21:14:19 +00:00
parent c63938a187
commit fb45c9baba
4 changed files with 451 additions and 390 deletions

View file

@ -30,9 +30,15 @@
/* define if you have DCE */ /* define if you have DCE */
#undef HAVE_DCE #undef HAVE_DCE
/* define if you have DSAP */
#undef HAVE_DSAP
/* define if you have GDBM */ /* define if you have GDBM */
#undef HAVE_GDBM #undef HAVE_GDBM
/* define if you have ISODE */
#undef HAVE_ISODE
/* define if you have Kerberos */ /* define if you have Kerberos */
#undef HAVE_KERBEROS #undef HAVE_KERBEROS
@ -81,6 +87,9 @@
/* define if you have Sun LWP (Solaris style) */ /* define if you have Sun LWP (Solaris style) */
#undef HAVE_THR #undef HAVE_THR
/* define if you have XTPP */
#undef HAVE_XTPP
/* define this for connectionless LDAP support */ /* define this for connectionless LDAP support */
#undef LDAP_CONNECTIONLESS #undef LDAP_CONNECTIONLESS

803
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -215,7 +215,8 @@ elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
AC_ERROR([ if cross compiling, add --enable-x-compile.]) AC_ERROR([ if cross compiling, add --enable-x-compile.])
fi fi
AC_PROG_GCC_TRADITIONAL dnl OpenLDAP requires STDC features
dnl AC_PROG_GCC_TRADITIONAL
AC_PROG_CPP AC_PROG_CPP
@ -242,6 +243,23 @@ dnl
AC_CHECK_LIB(gen, main) AC_CHECK_LIB(gen, main)
]) ])
# LDAPD tests
if test $ol_enable_ldapd != no ; then
dnl look for ISODE libraries
AC_CHECK_LIB(dsap, main, [
AC_DEFINE(HAVE_DSAP,1)
LDAPD_LIBS="$LDAPD_LIBS -ldsap"
],:)
AC_CHECK_LIB(isode, main, [
AC_DEFINE(HAVE_ISODE,1)
LDAPD_LIBS="$LDAPD_LIBS -lisode"
],:)
AC_CHECK_LIB(xtpp, main, [
AC_DEFINE(HAVE_XTPP,1)
LDAPD_LIBS="$LDAPD_LIBS -lxtpp"
],:)
fi
dnl HP-UX requires -lV3 dnl HP-UX requires -lV3
AC_CHECK_LIB(V3, sigset) AC_CHECK_LIB(V3, sigset)

View file

@ -130,9 +130,15 @@ is provided ``as is'' without express or implied warranty.
/* define if you have DCE */ /* define if you have DCE */
#undef HAVE_DCE #undef HAVE_DCE
/* define if you have DSAP */
#undef HAVE_DSAP
/* define if you have GDBM */ /* define if you have GDBM */
#undef HAVE_GDBM #undef HAVE_GDBM
/* define if you have ISODE */
#undef HAVE_ISODE
/* define if you have Kerberos */ /* define if you have Kerberos */
#undef HAVE_KERBEROS #undef HAVE_KERBEROS
@ -178,6 +184,9 @@ is provided ``as is'' without express or implied warranty.
/* define if you have Sun LWP (Solaris style) */ /* define if you have Sun LWP (Solaris style) */
#undef HAVE_THR #undef HAVE_THR
/* define if you have XTPP */
#undef HAVE_XTPP
/* define this for connectionless LDAP support */ /* define this for connectionless LDAP support */
#undef LDAP_CONNECTIONLESS #undef LDAP_CONNECTIONLESS