$Log$
+ Revision 614.1 2004/01/02 22:13:59 ajc
+ * Link to OpenLDAP client library (-lldap) and set HAVE_LDAP if present.
+
Revision 614.0 2003/12/30 04:13:40 ajc
* THIS IS 6.14
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
/* define this if you have zlib compression available */
#undef HAVE_ZLIB
+/* define this if you have OpenLDAP client available */
+#undef HAVE_LDAP
+
/* define this if you have the libical calendaring library available */
#undef HAVE_LIBICAL
AC_ARG_WITH(ncurses, [ --without-ncurses don't use ncurses])
AC_ARG_WITH(with_zlib, [ --with-zlib use zlib compression if present])
+AC_ARG_WITH(with_ldap, [ --with-ldap use OpenLDAP client library])
AC_ARG_WITH(with_libical, [ --with-libical use libical calendaring library])
AC_ARG_WITH(with_newt, [ --with-newt use newt window library])
+dnl Checks for the OpenLDAP client library.
+if test "x$with_ldap" != xno ; then
+ AC_CHECK_HEADERS(ldap.h,
+ [AC_CHECK_LIB(ldap, ldap_init,
+ [ok_ldap=yes],,
+ )])
+fi
+
+if test "x$ok_ldap" = xyes ; then
+ SERVER_LIBS="-lldap $SERVER_LIBS"
+ AC_DEFINE(HAVE_LDAP)
+fi
+
+
+
+
dnl Checks for the newt window library.
if test "x$with_newt" != xno ; then
AC_CHECK_HEADERS(newt.h,