From d80efb2f4ae373ac416fb023c07836521c24829b Mon Sep 17 00:00:00 2001 From: Dimitrij Mijoski Date: Mon, 12 Mar 2018 15:32:26 +0100 Subject: Detect ICU with pkg-config when possible. --- bootstrap.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bootstrap.sh') diff --git a/bootstrap.sh b/bootstrap.sh index 8755ace36b..8efc24dd02 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 -- cgit v1.2.1