Ver Fonte

Detect ICU with pkg-config when possible.

Dimitrij Mijoski há 8 anos atrás
pai
commit
d80efb2f4a
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      bootstrap.sh

+ 5 - 0
bootstrap.sh

@@ -292,6 +292,11 @@ fi
 # Configure ICU
 # Configure ICU
 $ECHO -n "Unicode/ICU support for Boost.Regex?... "
 $ECHO -n "Unicode/ICU support for Boost.Regex?... "
 if test "x$flag_icu" != xno; then
 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
   if test "x$ICU_ROOT" = x; then
     COMMON_ICU_PATHS="/usr /usr/local /sw"
     COMMON_ICU_PATHS="/usr /usr/local /sw"
     for p in $COMMON_ICU_PATHS; do
     for p in $COMMON_ICU_PATHS; do

粤ICP备19079148号