summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2009-11-13 16:02:48 +0000
committerArthur de Jong <arthur@arthurdejong.org>2009-11-13 16:02:48 +0000
commit425ce9588da28dfd4997a54a1a7d6d4f6dff1e6a (patch)
tree617f3181a534e7ce9c8556e7945b68559c61374f
parentf8fd7ceceed119bd739a26d29bd2f8a430fa44da (diff)
fix lber library check for function we actually use and another small reorganisation
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1023 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r--configure.ac5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 35412be..be9701b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -385,7 +385,7 @@ then
AC_CHECK_FUNCS(ldap_search_ext,,AC_MSG_ERROR([could not locate a valid LDAP library]))
# see if we need a BER library
- AC_SEARCH_LIBS(ber_memfree,lber)
+ AC_SEARCH_LIBS(ber_bvfree,lber)
# check for extra SASL libraries
if test "$enable_sasl" = "yes"
@@ -413,11 +413,12 @@ then
AC_CHECK_FUNCS(ldap_parse_result ldap_memfree ldap_controls_free ldap_control_free)
AC_CHECK_FUNCS(ldap_explode_dn ldap_explode_rdn ldap_set_option ldap_get_option)
AC_CHECK_FUNCS(ldap_abandon ldap_simple_bind_s ldap_unbind ldap_set_rebind_proc)
- AC_CHECK_FUNCS(ldap_initialize ldap_search_ext ber_memfree ber_bvfree ber_set_option)
+ AC_CHECK_FUNCS(ldap_initialize ldap_search_ext)
AC_CHECK_FUNCS(ldap_create_control ldap_extended_operation_s)
AC_CHECK_FUNCS(ldap_domain2hostlist ldap_domain2dn)
AC_CHECK_FUNCS(ldap_get_values ldap_value_free ldap_get_dn)
AC_CHECK_FUNCS(ldap_err2string ldap_msgfree ldap_result)
+ AC_CHECK_FUNCS(ber_bvfree ber_free ber_set_option)
# replace ldap_create_page_control() and ldap_parse_page_control()
AC_CHECK_FUNCS(ldap_create_page_control ldap_parse_page_control,,[AC_LIBOBJ(pagectrl)])