LDAP detection fix, require ldap.h.

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@623 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
aet 2002-06-04 09:38:37 +00:00
parent 0c07f24de0
commit 7828d8242c
1 changed files with 1 additions and 1 deletions

View File

@ -907,7 +907,7 @@ if (test x$enable_ldap = xyes); then
AC_CHECK_LIB(ldapssl30, ldap_search, LIBLDAP="-lldapssl30 $LIBLDAP" found_ldap_lib=yes need_pthread=true,, -lpthread)
fi
if test -n "$found_ldap_lib"; then
if test -n "$found_ldap_lib" -a "x$ac_cv_header_ldap_h" = "xyes"; then
AC_DEFINE(LDAP_REFERRALS,1,[This is needed for the native Solaris LDAP SDK])
AC_DEFINE(HAVE_LDAP, 1, [Use LDAP for authentication etc.])
LDAP_MSG="yes"