dovecot-2.0: configure: Use -llber for ldap only if necessary.
dovecot at dovecot.org
dovecot at dovecot.org
Sat Jan 2 19:02:00 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/2882650531e0
changeset: 10551:2882650531e0
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 127fb230e269 -r 2882650531e0 configure.in
--- a/configure.in Sat Jan 02 11:36:08 2010 -0500
+++ b/configure.in Sat Jan 02 12:01:09 2010 -0500
@@ -1966,7 +1966,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