dovecot-1.2: configure: Use -llber for ldap only if necessary.
dovecot at dovecot.org
dovecot at dovecot.org
Sat Jan 2 19:01:25 EET 2010
details: http://hg.dovecot.org/dovecot-1.2/rev/e2ea80e1c239
changeset: 9524:e2ea80e1c239
user: Timo Sirainen <tss at iki.fi>
date: Sat Jan 02 12:01:09 2010 -0500
description:
configure: Use -llber for ldap only if necessary.
diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
configure.in | 7 ++++++-
diffs (17 lines):
diff -r b48a4af4248d -r e2ea80e1c239 configure.in
--- a/configure.in Thu Dec 31 15:13:15 2009 -0500
+++ b/configure.in Sat Jan 02 12:01:09 2010 -0500
@@ -1897,7 +1897,12 @@ if test $want_ldap != no; then
AC_CHECK_LIB(ldap, ldap_start_tls_s, [
AC_DEFINE(LDAP_HAVE_START_TLS_S,, Define if you have ldap_start_tls_s)
])
- LDAP_LIBS="-lldap -llber"
+ LDAP_LIBS="-lldap"
+ AC_CHECK_LIB(ldap, ber_free,, [
+ AC_CHECK_LIB(lber, ber_free, [
+ LDAP_LIBS="$LDAP_LIBS -llber"
+ ])
+ ])
AC_SUBST(LDAP_LIBS)
if test $want_ldap != plugin; then
AUTH_LIBS="$AUTH_LIBS $LDAP_LIBS"
More information about the dovecot-cvs
mailing list