]> 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:21:33 +0000 (17:21 +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 3220ef4960c940de115816f1f19091edb5d42245..048abbcd7b0b9deb53eaad84e850b0ab799e00bb 100644 (file)
@@ -243,34 +243,6 @@ OL_RESOLVER_TRY(ol_cv_resolver_none)
 OL_RESOLVER_TRY(ol_cv_resolver_resolv,[-lresolv])
 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 Check POSIX Thread version 
index 3f146bd87856957dc139580f9c8561b74a1c3719..7aed7a85f8a5cf99af0c768043d8ef335957fb07 100644 (file)
@@ -192,7 +192,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@
@@ -203,7 +202,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 e3cd192da9fd7e4467d175be01a9f3fd9c16fdcd..a1f2cd419d8a3be4c692600bef1a69a03d860268 100644 (file)
@@ -606,7 +606,6 @@ MODULES_LIBS=
 SLAPI_LIBS=
 LIBSLAPI=
 AUTH_LIBS=
-ICU_LIBS=
 
 SLAPD_SLP_LIBS=
 SLAPD_GMP_LIBS=
@@ -2044,14 +2043,6 @@ if test $ol_enable_wt != no ; then
        ol_link_wt=yes
 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
@@ -3147,7 +3138,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 d1405dd39e7cb50bcf7fbe549cec3fd703131998..6622c1a6e043c9d7ce3343a9aa9774981ab735a4 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