1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

we need to look for liblber before libldap

(This used to be commit 93a652b705)
This commit is contained in:
Andrew Tridgell 2001-11-30 22:45:52 +00:00
parent a9750b2006
commit 3756055ea1
2 changed files with 695 additions and 682 deletions

1370
source3/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1657,13 +1657,18 @@ AC_CHECK_LIB(k5crypto, krb5_encrypt_data, [LIBS="$LIBS -lk5crypto"])
AC_CHECK_LIB(krb5, krb5_mk_req_extended, [LIBS="$LIBS -lkrb5";
AC_DEFINE(HAVE_KRB5)])
##################################################################
# we might need the lber lib on some systems. To avoid link errors
# this test must be before the libldap test
AC_CHECK_LIB(lber, ber_scanf, [LIBS="$LIBS -llber"])
########################################################
# now see if we can find the ldap libs in standard paths
if test x$have_ldap != xyes; then
AC_CHECK_LIB(ldap, ldap_open, [LIBS="$LIBS -lldap";
AC_DEFINE(HAVE_LDAP)])
fi
AC_CHECK_LIB(lber, ber_scanf, [LIBS="$LIBS -llber"])
#################################################