dovecot-2.2: configure: s/normalizer/libicu/ since we it could b...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Apr 21 16:33:03 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/b179bbd226e5
changeset: 18439:b179bbd226e5
user: Timo Sirainen <tss at iki.fi>
date: Tue Apr 21 19:31:14 2015 +0300
description:
configure: s/normalizer/libicu/ since we it could be used for something else as well.
diffstat:
configure.ac | 22 +++++++++++-----------
src/lib-fts/Makefile.am | 7 +++----
src/lib-fts/fts-filter-normalizer.c | 2 +-
3 files changed, 15 insertions(+), 16 deletions(-)
diffs (85 lines):
diff -r b64bcee2ffa0 -r b179bbd226e5 configure.ac
--- a/configure.ac Tue Apr 21 17:01:39 2015 +0300
+++ b/configure.ac Tue Apr 21 19:31:14 2015 +0300
@@ -169,10 +169,10 @@
TEST_WITH(textcat, $withval),
want_textcat=auto)
-AC_ARG_WITH(normalizer,
-AS_HELP_STRING([--with-normalizer], [Build lib-fts with ICU normalization support (auto)]),
- want_fts_normalizer=$withval,
- want_fts_normalizer=auto)
+AC_ARG_WITH(icu,
+AS_HELP_STRING([--with-icu], [Build with libicu support (for FTS normalization) (auto)]),
+ want_icu=$withval,
+ want_icu=auto)
AC_ARG_WITH(solr,
AS_HELP_STRING([--with-solr], [Build with Solr full text search support]),
@@ -2799,16 +2799,16 @@
AM_CONDITIONAL(BUILD_FTS_TEXTCAT, test "$have_fts_textcat" = "yes")
AM_CONDITIONAL(BUILD_FTS_EXTTEXTCAT, test "$have_fts_exttextcat" = "yes")
-if test "$want_fts_normalizer" != "no"; then
+if test "$want_icu" != "no"; then
if test "$PKG_CONFIG" != "" && $PKG_CONFIG --exists icu-i18n 2>/dev/null; then
- PKG_CHECK_MODULES(FTS_NORMALIZER, icu-i18n)
- have_fts_normalizer=yes
- AC_DEFINE(HAVE_FTS_NORMALIZER,, Define if you want ICU normalization support for FTS)
- elif test "$want_fts_normalizer" = "yes"; then
- AC_ERROR([Can't build with normalizer support: libicu-i18n not found])
+ PKG_CHECK_MODULES(LIBICU, icu-i18n)
+ have_icu=yes
+ AC_DEFINE(HAVE_LIBICU,, Define if you want ICU normalization support for FTS)
+ elif test "$want_icu" = "yes"; then
+ AC_ERROR([Can't build with libicu support: libicu-i18n not found])
fi
fi
-AM_CONDITIONAL(BUILD_FTS_NORMALIZER, test "$have_fts_normalizer" = "yes")
+AM_CONDITIONAL(BUILD_LIBICU, test "$have_icu" = "yes")
if test $have_lucene = no; then
not_fts="$not_fts lucene"
diff -r b64bcee2ffa0 -r b179bbd226e5 src/lib-fts/Makefile.am
--- a/src/lib-fts/Makefile.am Tue Apr 21 17:01:39 2015 +0300
+++ b/src/lib-fts/Makefile.am Tue Apr 21 19:31:14 2015 +0300
@@ -4,7 +4,7 @@
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/lib-test \
$(LIBEXTTEXTCAT_CFLAGS) \
- $(FTS_NORMALIZER_CFLAGS) \
+ $(LIBICU_CFLAGS) \
-DUDHRDIR=\""$(top_srcdir)/src/lib-fts"\" \
-DDATADIR=\"$(pkgdatadir)\" \
-DTEST_STOPWORDS_DIR=\""$(top_srcdir)/src/lib-fts"\"
@@ -49,8 +49,8 @@
endif
endif
-if BUILD_FTS_NORMALIZER
-NORMALIZER_LIBS = $(FTS_NORMALIZER_LIBS)
+if BUILD_LIBICU
+NORMALIZER_LIBS = $(LIBICU_LIBS)
endif
libfts_la_LIBADD = \
@@ -79,7 +79,6 @@
test_programs = \
test-fts-filter \
$(TEST_FTS_LANGUAGE) \
- $(TEST_FTS_NORMALIZER) \
test-fts-tokenizer
noinst_PROGRAMS = $(test_programs)
diff -r b64bcee2ffa0 -r b179bbd226e5 src/lib-fts/fts-filter-normalizer.c
--- a/src/lib-fts/fts-filter-normalizer.c Tue Apr 21 17:01:39 2015 +0300
+++ b/src/lib-fts/fts-filter-normalizer.c Tue Apr 21 19:31:14 2015 +0300
@@ -6,7 +6,7 @@
#include "fts-filter-private.h"
#include "fts-language.h"
-#ifdef HAVE_FTS_NORMALIZER
+#ifdef HAVE_LIBICU
#include <unicode/utrans.h>
#include <unicode/uenum.h>
More information about the dovecot-cvs
mailing list