aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2001-03-02 20:29:29 +0800
committerChris Toshok <toshok@src.gnome.org>2001-03-02 20:29:29 +0800
commit6f859d23be6364c19179d7e4a62902a3d9b8a460 (patch)
tree24c6063b34bb96346fd24bf08d7c317f046dede3
parentdf2372ad84e0631dbae44d87de3556b71e559e8a (diff)
downloadgsoc2013-evolution-6f859d23be6364c19179d7e4a62902a3d9b8a460.tar
gsoc2013-evolution-6f859d23be6364c19179d7e4a62902a3d9b8a460.tar.gz
gsoc2013-evolution-6f859d23be6364c19179d7e4a62902a3d9b8a460.tar.bz2
gsoc2013-evolution-6f859d23be6364c19179d7e4a62902a3d9b8a460.tar.lz
gsoc2013-evolution-6f859d23be6364c19179d7e4a62902a3d9b8a460.tar.xz
gsoc2013-evolution-6f859d23be6364c19179d7e4a62902a3d9b8a460.tar.zst
gsoc2013-evolution-6f859d23be6364c19179d7e4a62902a3d9b8a460.zip
add logic to make sure we're building against OpenLDAP >= 2
2001-03-02 Chris Toshok <toshok@ximian.com> * configure.in: add logic to make sure we're building against OpenLDAP >= 2 svn path=/trunk/; revision=8519
-rw-r--r--ChangeLog4
-rw-r--r--configure.in18
2 files changed, 22 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d9f7cba007..f8679efd02 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-03-02 Chris Toshok <toshok@ximian.com>
+
+ * configure.in: add logic to make sure we're building against OpenLDAP >= 2
+
2001-03-01 Christopher James Lahey <clahey@ximian.com>
* Makefile.am (SUBDIRS), configure.in: Added views stuff.
diff --git a/configure.in b/configure.in
index b1296a1e23..43a5c285c5 100644
--- a/configure.in
+++ b/configure.in
@@ -157,10 +157,28 @@ if test x$enable_ldap = xyes; then
AC_CHECK_LIB(ldap, ldap_open, LDAP_LIBS="-lldap $LDAP_LIBS", ,-llber)
fi
fi
+
+
if test x$ac_cv_lib_ldap_ldap_open = xyes; then
+dnl *
+dnl * check for openldap version 2.x, since 1.x doesn't have the schema stuff
+dnl *
+ AC_MSG_CHECKING(if openldap is version 2.x)
+ AC_EGREP_CPP(yes,
+ [#include "ldap.h"
+ #if LDAP_VENDOR_VERSION > 20000
+ yes
+ #endif
+ ], is_2x=yes, is_2x=no)
+
+ if test x$is_2x = xyes; then
+ AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_LDAP)
AC_SUBST(LDAP_LIBS)
msg_ldap=Yes
+ else
+ AC_MSG_ERROR(evolution requires OpenLDAP version >= 2)
+ fi
else
msg_ldap=No
enable_ldap=no