aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorKjartan Maraas <kmaraas@gnome.org>2006-05-03 05:40:00 +0800
committerKjartan Maraas <kmaraas@src.gnome.org>2006-05-03 05:40:00 +0800
commit3b5e5c0787e3220391cb7b8eba5d4e4a41156f7d (patch)
tree9e89f360bdcb02d8d71690f34d71686c2ade1e2a /configure.in
parent7e7c5f098b96334561a156f5997a6f7c41e3952a (diff)
downloadgsoc2013-evolution-3b5e5c0787e3220391cb7b8eba5d4e4a41156f7d.tar.gz
gsoc2013-evolution-3b5e5c0787e3220391cb7b8eba5d4e4a41156f7d.tar.zst
gsoc2013-evolution-3b5e5c0787e3220391cb7b8eba5d4e4a41156f7d.zip
configure.in: Fix compilation with modern openldap releases. Partially
2006-05-02 Kjartan Maraas <kmaraas@gnome.org> configure.in: Fix compilation with modern openldap releases. Partially fixes bug #325957. Patch from Sushuma Rai. svn path=/trunk/; revision=31948
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in12
1 files changed, 11 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 1777c5017a..4584d2efda 100644
--- a/configure.in
+++ b/configure.in
@@ -424,8 +424,18 @@ no)
;;
esac
esac
+
+SAVE_CFLAGS="$CFLAGS"
+SAVE_LIBS="$LIBS"
+LDAP_CFLAGS="-DLDAP_DEPRECATED"
+CFLAGS="$CFLAGS $LDAP_CFLAGS"
+LIBS="$LIBS $LDAP_LIBS"
+AC_CHECK_FUNCS(ldap_ntlm_bind)
+CFLAGS="$SAVE_CFLAGS"
+LIBS="$SAVE_LIBS"
+
else # Win32
-LDAP_CFLAGS=""
+LDAP_CFLAGS="-DLDAP_DEPRECATED"
LDAP_LIBS="-lwldap32"
AC_SUBST(LDAP_CFLAGS)
AC_SUBST(LDAP_LIBS)