@@ -12,11 +12,9 @@ AC_DEFUN([SQUID_LDAP_TEST],[
1212 LIBS="$LIBLDAP_PATH $LIBLDAP_LIBS $LIBPTHREADS"
1313 CPPFLAGS="-DLDAP_DEPRECATED=1 -DLDAP_REFERRALS $CPPFLAGS"
1414 AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [
15- # if HAVE_LDAP_H
16- # include <ldap.h>
17- # elif HAVE_MOZLDAP_LDAP_H
18- # include <mozldap/ldap.h>
19- # endif
15+ #if HAVE_LDAP_H
16+ #include <ldap.h>
17+ #endif
2018 ] ] ,[ [ $2 ] ] )
2119 ] ,[
2220 squid_cv_$1 =1
@@ -37,12 +35,12 @@ AC_DEFUN([SQUID_LDAP_TEST_RUN],[
3735 LIBS="$LIBLDAP_PATH $LIBLDAP_LIBS $LIBPTHREADS"
3836 CPPFLAGS="-DLDAP_DEPRECATED=1 -DLDAP_REFERRALS $CPPFLAGS"
3937 AC_RUN_IFELSE ( [ AC_LANG_PROGRAM ( [ [
40- # if HAVE_LDAP_H
41- # include <ldap.h>
42- # elif HAVE_MOZLDAP_LDAP_H
43- # include <mozldap/ldap.h>
44- # endif
45- # include <string.h>
38+ #if HAVE_LDAP_H
39+ #include <ldap.h>
40+ #endif
41+ #if HAVE_STRING_H
42+ #include <string.h>
43+ #endif
4644 ] ] ,[ [ $2 ] ] )
4745 ] ,[
4846 m4_translit ( [ squid_cv_$1 ] ,[ -+. ] ,[ ____] ) =1
@@ -61,7 +59,6 @@ dnl find the LDAP library vendor and define relevant HAVE_(vendor name) macro
6159AC_DEFUN ( [ SQUID_LDAP_CHECK_VENDOR] ,[
6260 SQUID_LDAP_TEST_RUN([ OpenLDAP] ,[ return strcmp(LDAP_VENDOR_NAME,"OpenLDAP")] )
6361 SQUID_LDAP_TEST_RUN([ Sun LDAP SDK] ,[ return strcmp(LDAP_VENDOR_NAME,"Sun Microsystems Inc.")] )
64- SQUID_LDAP_TEST_RUN([ Mozilla LDAP SDK] ,[ return strcmp(LDAP_VENDOR_NAME,"mozilla.org")] )
6562] )
6663
6764dnl check whether the LDAP library(s) provide the needed API and types
@@ -99,5 +96,4 @@ AC_DEFUN([SQUID_CHECK_LDAP_API],[
9996 AC_SEARCH_LIBS ( [ ldap_start_tls_s] ,[ $LIBLDAP_NAMES] ,[
10097 AC_DEFINE ( HAVE_LDAP_START_TLS_S ,1 ,[ Define to 1 if you have ldap_start_tls_s] )
10198 ] )
102- SQUID_STATE_ROLLBACK(squid_ldap_state)
10399] )
0 commit comments