@@ -1097,34 +1097,6 @@ if test "$with_libxslt" = yes ; then
10971097 AC_CHECK_HEADER(libxslt/xslt.h, [], [AC_MSG_ERROR([header file <libxslt/xslt.h> is required for XSLT support])])
10981098fi
10991099
1100- # PGAC_LDAP_SAFE
1101- # --------------
1102- # PostgreSQL sometimes loads libldap_r and plain libldap into the same
1103- # process. Check for OpenLDAP versions known not to tolerate doing so; assume
1104- # non-OpenLDAP implementations are safe. The dblink test suite exercises the
1105- # hazardous interaction directly.
1106-
1107- AC_DEFUN([PGAC_LDAP_SAFE],
1108- [AC_CACHE_CHECK([for compatible LDAP implementation], [pgac_cv_ldap_safe],
1109- [AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
1110- [#include <ldap.h>
1111- #if !defined(LDAP_VENDOR_VERSION) || \
1112- (defined(LDAP_API_FEATURE_X_OPENLDAP) && \
1113- LDAP_VENDOR_VERSION >= 20424 && LDAP_VENDOR_VERSION <= 20431)
1114- choke me
1115- #endif], [])],
1116- [pgac_cv_ldap_safe=yes],
1117- [pgac_cv_ldap_safe=no])])
1118-
1119- if test "$pgac_cv_ldap_safe" != yes; then
1120- AC_MSG_WARN([
1121- *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
1122- *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
1123- *** also uses LDAP will crash on exit.])
1124- fi])
1125-
1126-
1127-
11281100if test "$with_ldap" = yes ; then
11291101 if test "$PORTNAME" != "win32"; then
11301102 AC_CHECK_HEADERS(ldap.h, [],
0 commit comments