From eccead9ed43dc6e653c76dce1d2f455d251bb00c Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 1 Aug 2017 10:49:55 -0400 Subject: Add support for ICU 4.2 Supporting ICU 4.2 seems useful because it ships with CentOS 6. Versions before ICU 4.6 don't support pkg-config, so document an installation method without using pkg-config. In ICU 4.2, ucol_getKeywordsForLocale() sometimes returns values that will not be accepted by uloc_toLanguageTag(). Skip loading keyword variants in that version. Reported-by: Victor Wagner --- doc/src/sgml/installation.sgml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml index fa0d05efe6..12866b4bf7 100644 --- a/doc/src/sgml/installation.sgml +++ b/doc/src/sgml/installation.sgml @@ -774,10 +774,26 @@ su - postgres Build with support for the ICUICU library. This requires the ICU4C package - as well - as pkg-configpkg-config to be installed. The minimum required version - of ICU4C is currently 4.6. + of ICU4C is currently 4.2. + + + + By default, + pkg-configpkg-config + will be used to find the required compilation options. This is + supported for ICU4C version 4.6 and later. + For older versions, or if pkg-config is + not available, the variables ICU_CFLAGS + and ICU_LIBS can be specified + to configure, like in this example: + +./configure ... --with-icu ICU_CFLAGS='-I/some/where/include' ICU_LIBS='-L/some/where/lib -licui18n -licuuc -licudata' + + (If ICU4C is in the default search path + for the compiler, then you still need to specify a nonempty string in + order to avoid use of pkg-config, for + example, ICU_CFLAGS=' '.) -- cgit v1.2.3