[autotools] Check for minimum ICU version as well

We use unorm2_* APIs introduced in 49.0.
This commit is contained in:
Khaled Hosny authored and خالد حسني (Khaled Hosny) committed 2024-03-21 15:54:53 +02:00
1 parent 957049066e
commit 1e5597bf85
1 file changed
+1 -1
+1 -1
View File
@@ -242,7 +242,7 @@ AC_ARG_WITH(icu,
[with_icu=auto])
have_icu=false
if test "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" -o "x$with_icu" = "xauto"; then
PKG_CHECK_MODULES(ICU, icu-uc, have_icu=true, :)
PKG_CHECK_MODULES(ICU, icu-uc >= 49.0, have_icu=true, :)
fi
if test \( "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" \) -a "x$have_icu" != "xtrue"; then
AC_MSG_ERROR([icu support requested but icu-uc not found])