]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9144 Remove unused ICU detection and linking
authorRyan Tandy <ryan@nardis.ca>
Thu, 19 Dec 2019 22:34:58 +0000 (14:34 -0800)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 9 Jan 2020 17:33:08 +0000 (17:33 +0000)
This reverts commits a956f75924c5d8f2a80ccb899666820cd71a4d6b ("Add (not
yet used) ICU detection") and 1cf5838e081fa3198161c53fb8e783b5f0f24503
("detect ICU and link it into slapd(8)").

build/openldap.m4
build/top.mk
configure.in
include/portable.hin

index 35b37864b9091ddcfa5068a4e27a7b8e9b767c72..105bf5a70688df8322c90cffba0c95e75071f301 100644 (file)
@@ -245,33 +245,6 @@ OL_RESOLVER_TRY(ol_cv_resolver_bind,[-lbind])
 ])
 dnl
 dnl ====================================================================
-dnl International Components for Unicode (ICU)
-AC_DEFUN([OL_ICU],
-[ol_icu=no
-AC_CHECK_HEADERS( unicode/utypes.h )
-if test $ac_cv_header_unicode_utypes_h = yes ; then
-       dnl OL_ICULIBS="-licui18n -licuuc -licudata"
-       OL_ICULIBS="-licuuc -licudata"
-
-       AC_CACHE_CHECK([for ICU libraries], [ol_cv_lib_icu], [
-               ol_LIBS="$LIBS"
-               LIBS="$OL_ICULIBS $LIBS"
-               AC_LINK_IFELSE([AC_LANG_PROGRAM([[
-#include <unicode/utypes.h>
-]], [[
-(void) u_errorName(0);
-]])],[ol_cv_lib_icu=yes],[ol_cv_lib_icu=no])
-               LIBS="$ol_LIBS"
-])
-
-       if test $ol_cv_lib_icu != no ; then
-               ol_icu="$OL_ICULIBS"
-               AC_DEFINE(HAVE_ICU,1,[define if you actually have ICU])
-       fi
-fi
-])
-dnl
-dnl ====================================================================
 dnl Berkeley DB macros
 dnl
 dnl --------------------------------------------------------------------
index e1e8f6bdce2f476d0c2137b470e2ec0ff0db2fc5..303b1b28ee94dba7aa0ad1abe78f03baddbc5625 100644 (file)
@@ -190,7 +190,6 @@ SASL_LIBS = @SASL_LIBS@
 TLS_LIBS = @TLS_LIBS@
 AUTH_LIBS = @AUTH_LIBS@
 SECURITY_LIBS = $(SASL_LIBS) $(KRB_LIBS) $(TLS_LIBS) $(AUTH_LIBS)
-ICU_LIBS = @ICU_LIBS@
 
 MODULES_CPPFLAGS = @SLAPD_MODULES_CPPFLAGS@
 MODULES_LDFLAGS = @SLAPD_MODULES_LDFLAGS@
@@ -201,7 +200,7 @@ SLAPD_SQL_LDFLAGS = @SLAPD_SQL_LDFLAGS@
 SLAPD_SQL_INCLUDES = @SLAPD_SQL_INCLUDES@
 SLAPD_SQL_LIBS = @SLAPD_SQL_LIBS@
 
-SLAPD_LIBS = @SLAPD_LIBS@ @SLAPD_PERL_LDFLAGS@ @SLAPD_SQL_LDFLAGS@ @SLAPD_SQL_LIBS@ @SLAPD_SLP_LIBS@ @SLAPD_GMP_LIBS@ $(ICU_LIBS)
+SLAPD_LIBS = @SLAPD_LIBS@ @SLAPD_PERL_LDFLAGS@ @SLAPD_SQL_LDFLAGS@ @SLAPD_SQL_LIBS@ @SLAPD_SLP_LIBS@ @SLAPD_GMP_LIBS@
 
 # Our Defaults
 CC = $(AC_CC)
index 9a49bf3a969359da9e201404d3d9cd046c53de84..f2c3ad25242d5550c0e5ab985b6cbfefbbce2965 100644 (file)
@@ -596,7 +596,6 @@ MODULES_LIBS=
 SLAPI_LIBS=
 LIBSLAPI=
 AUTH_LIBS=
-ICU_LIBS=
 
 SLAPD_SLP_LIBS=
 SLAPD_GMP_LIBS=
@@ -2088,14 +2087,6 @@ if test $ol_enable_ndb != no ; then
        fi
 fi
 
-dnl ----------------------------------------------------------------
-dnl International Components for Unicode
-OL_ICU
-if test "$ol_icu" = no ; then
-       AC_MSG_WARN([ICU not available])
-else
-       ICU_LIBS="$ol_icu"
-fi
 dnl ----------------------------------------------------------------
 dnl
 dnl Check for Cyrus SASL
@@ -3166,7 +3157,6 @@ AC_SUBST(MODULES_LIBS)
 AC_SUBST(SLAPI_LIBS)
 AC_SUBST(LIBSLAPI)
 AC_SUBST(AUTH_LIBS)
-AC_SUBST(ICU_LIBS)
 
 AC_SUBST(SLAPD_SLP_LIBS)
 AC_SUBST(SLAPD_GMP_LIBS)
index 29adb0ad76a0a8d59f632798b89d1eff8418d78b..bc61c9e4be5faf9585eacdbdfad54c3e6835d44f 100644 (file)
 /* Define to 1 if you have the `hstrerror' function. */
 #undef HAVE_HSTRERROR
 
-/* define if you actually have ICU */
-#undef HAVE_ICU
-
 /* define to you inet_aton(3) is available */
 #undef HAVE_INET_ATON
 
 /* define if you have TLS */
 #undef HAVE_TLS
 
-/* Define to 1 if you have the <unicode/utypes.h> header file. */
-#undef HAVE_UNICODE_UTYPES_H
-
 /* Define to 1 if you have the <unistd.h> header file. */
 #undef HAVE_UNISTD_H