Don't use icu-config when cross-compiling
This commit is contained in:
parent
390dab49b6
commit
e9c2341b13
|
@ -103,6 +103,8 @@ AM_CONDITIONAL(HAVE_CAIRO_FT, $have_cairo_ft)
|
|||
dnl ==========================================================================
|
||||
|
||||
PKG_CHECK_MODULES(ICU, icu, have_icu=true, [
|
||||
have_icu=false
|
||||
if test $cross_compiling == no; then
|
||||
AC_CHECK_PROG([have_icu], [icu-config], [true], [false])
|
||||
if $have_icu; then
|
||||
icu_cflags=`icu-config --cppflags`
|
||||
|
@ -111,6 +113,7 @@ PKG_CHECK_MODULES(ICU, icu, have_icu=true, [
|
|||
AC_SUBST(ICU_CFLAGS, [$icu_cflags])
|
||||
AC_SUBST(ICU_LIBS, [$icu_libs])
|
||||
fi
|
||||
fi
|
||||
])
|
||||
if $have_icu; then
|
||||
AC_DEFINE(HAVE_ICU, 1, [Have ICU library])
|
||||
|
|
Loading…
Reference in New Issue