aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2001-03-14 04:29:39 +0800
committerChris Toshok <toshok@src.gnome.org>2001-03-14 04:29:39 +0800
commitae7e62bf85724903f8acaf91809cb9624a6fefc1 (patch)
tree2560e818670f59c29380315eda25996371f72517
parent56737afcb166d3b928f9a89d9ac9d76c079a575d (diff)
downloadgsoc2013-evolution-ae7e62bf85724903f8acaf91809cb9624a6fefc1.tar.gz
gsoc2013-evolution-ae7e62bf85724903f8acaf91809cb9624a6fefc1.tar.zst
gsoc2013-evolution-ae7e62bf85724903f8acaf91809cb9624a6fefc1.zip
add -lresolv to LDAP_LIBS if it's there.
2001-03-13 Chris Toshok <toshok@ximian.com> * configure.in: add -lresolv to LDAP_LIBS if it's there. svn path=/trunk/; revision=8678
-rw-r--r--ChangeLog4
-rw-r--r--configure.in8
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index eb7279ac06..fd5fac3718 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-03-13 Chris Toshok <toshok@ximian.com>
+
+ * configure.in: add -lresolv to LDAP_LIBS if it's there.
+
2001-03-13 Iain Holmes <iain@ximian.com>
* configure.in: Added the mail/importers dir.
diff --git a/configure.in b/configure.in
index 774d3cdd9d..c8c62ea26d 100644
--- a/configure.in
+++ b/configure.in
@@ -152,10 +152,12 @@ dnl * ldap related stuff.
dnl **************************************************
AC_ARG_ENABLE(ldap,
[ --enable-ldap=[no/yes] Enable LDAP support in evolution],,enable_ldap=no)
-if test x$enable_ldap = xyes; then
- AC_CHECK_LIB(lber, ber_get_tag, LDAP_LIBS="-llber")
+if test x$enable_ldap = xyes; then
+ LDAP_LIBS=
+ AC_CHECK_LIB(resolv, res_query, LDAP_LIBS="-lresolv")
+ AC_CHECK_LIB(lber, ber_get_tag, LDAP_LIBS="-llber $LDAP_LIBS", ,$LDAP_LIBS)
if test x$ac_cv_lib_lber_ber_get_tag = xyes; then
- AC_CHECK_LIB(ldap, ldap_open, LDAP_LIBS="-lldap $LDAP_LIBS", ,-llber)
+ AC_CHECK_LIB(ldap, ldap_open, LDAP_LIBS="-lldap $LDAP_LIBS", ,$LDAP_LIBS)
fi
fi