Commit e4e6bde3 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Now with working Wrapper support

parent 92a1440f
This diff is collapsed.
...@@ -158,12 +158,12 @@ if test "$SLAPD_PHONETIC" = "yes" ; then ...@@ -158,12 +158,12 @@ if test "$SLAPD_PHONETIC" = "yes" ; then
fi fi
if test "$SLAPD_MD5" = "yes" ; then if test "$SLAPD_MD5" = "yes" ; then
AC_DEFINE(SLAPD_MD5,1) dnl AC_DEFINE(SLAPD_MD5,1)
LUTIL_DEFS="$LUTIL_DEFS -DLDAP_MD5" LUTIL_DEFS="$LUTIL_DEFS -DLDAP_MD5"
fi fi
if test "$SLAPD_SHA1" = "yes" ; then if test "$SLAPD_SHA1" = "yes" ; then
AC_DEFINE(SLAPD_SHA1,1) dnl AC_DEFINE(SLAPD_SHA1,1)
LUTIL_DEFS="$LUTIL_DEFS -DLDAP_SHA1" LUTIL_DEFS="$LUTIL_DEFS -DLDAP_SHA1"
fi fi
...@@ -249,7 +249,7 @@ dnl AC_DEFINE(LDBM_USE_DBBTREE,1) ...@@ -249,7 +249,7 @@ dnl AC_DEFINE(LDBM_USE_DBBTREE,1)
LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DB2" LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DB2"
else else
AC_CHECK_HEADERS(db185.h) AC_CHECK_HEADERS(db185.h)
if test $cf_cv_header_db185 = no ; then if test "$cf_cv_header_db185_h" = no ; then
AC_MSG_ERROR([select --with-db2 or install db2 with 1.85 compatibility]) AC_MSG_ERROR([select --with-db2 or install db2 with 1.85 compatibility])
fi fi
...@@ -291,9 +291,11 @@ dnl AC_DEFINE(LDBM_USE_NDBM,1) ...@@ -291,9 +291,11 @@ dnl AC_DEFINE(LDBM_USE_NDBM,1)
fi fi
if test "$SLAPD_TCP_WRAPPERS" = "yes" ; then if test "$SLAPD_TCP_WRAPPERS" = "yes" ; then
AC_CHECK_LIB(wrap, hosts_access, [LIBTCPD="-lwrap" AC_CHECK_LIB(wrap, hosts_access, [
AC_DEFINE(HAVE_TCPD) dnl LIBTCPD="-lwrap"
dnl AC_DEFINE(HAVE_TCPD)
SLAPD_DEFS="$SLAPD_DEFS -DTCP_WRAPPERS" SLAPD_DEFS="$SLAPD_DEFS -DTCP_WRAPPERS"
SLAPD_LIBS="$SLAPD_LIBS -lwrap"
]) ])
fi fi
...@@ -308,7 +310,7 @@ if test "$SLAPD_CRYPT" = "yes" ; then ...@@ -308,7 +310,7 @@ if test "$SLAPD_CRYPT" = "yes" ; then
have_crypt=yes], [have_crypt=no])]) have_crypt=yes], [have_crypt=no])])
if test $have_crypt = yes ; then if test $have_crypt = yes ; then
AC_DEFINE(SLAPD_CRYPT,1) dnl AC_DEFINE(SLAPD_CRYPT,1)
LUTIL_DEFS="$LUTIL_DEFS -DLDAP_CRYPT" LUTIL_DEFS="$LUTIL_DEFS -DLDAP_CRYPT"
else else
AC_MSG_WARN(could not find crypt, disabling crypt support) AC_MSG_WARN(could not find crypt, disabling crypt support)
......
...@@ -73,9 +73,6 @@ ...@@ -73,9 +73,6 @@
/* define this if sys_errlist is not defined in stdio.h or errno.h */ /* define this if sys_errlist is not defined in stdio.h or errno.h */
#undef DECL_SYS_ERRLIST #undef DECL_SYS_ERRLIST
/* define this you have crypt */
#undef HAVE_CRYPT
/* define this for connectionless LDAP support */ /* define this for connectionless LDAP support */
#undef LDAP_CONNECTIONLESS #undef LDAP_CONNECTIONLESS
......
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