Add also Mozilla NSS crypto for LDAP, as it requires it now. Patch by Rich

Megginson
This commit is contained in:
Milan Crha 2010-07-15 08:00:52 +00:00
parent f9fb20cabd
commit 0f83fd68cc

View File

@ -141,6 +141,13 @@ if pkg-config openssl ; then
else else
export LIBS="-lsasl2 -lssl -lcrypto" export LIBS="-lsasl2 -lssl -lcrypto"
fi fi
# newer versions of openldap are built with Mozilla NSS crypto, so also need
# those libs to link with the static ldap libs
if pkg-config nss ; then
export LIBS="$LIBS `pkg-config --libs nss`"
else
export LIBS="$LIBS -lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
fi
%else %else
%define ldap_flags --with-openldap=yes %define ldap_flags --with-openldap=yes
%endif %endif