From efe3230d1bdfccde0213e28145439ab6420e457e Mon Sep 17 00:00:00 2001 From: Dimitrij Mijoski Date: Mon, 12 Mar 2018 15:32:26 +0100 Subject: [PATCH] Detect ICU with pkg-config when possible. --- bootstrap.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bootstrap.sh b/bootstrap.sh index 716b8d4609..4d261bd63b 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -292,6 +292,11 @@ fi # Configure ICU $ECHO -n "Unicode/ICU support for Boost.Regex?... " if test "x$flag_icu" != xno; then + if test "x$ICU_ROOT" = x; then + if command -v pkg-config > /dev/null && pkg-config icu-uc ; then + ICU_ROOT=`pkg-config --variable=prefix icu-uc` + fi + fi if test "x$ICU_ROOT" = x; then COMMON_ICU_PATHS="/usr /usr/local /sw" for p in $COMMON_ICU_PATHS; do