Skip to content

Commit 676b188

Browse files
committed
Fix check for icu 52.1 or newer
It detected old versions but did not disable the training build. This completes commit 66da4df. Signed-off-by: Stefan Weil <[email protected]>
1 parent 5895534 commit 676b188

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

configure.ac

+4-6
Original file line numberDiff line numberDiff line change
@@ -431,12 +431,10 @@ AM_CONDITIONAL([ENABLE_TRAINING], true)
431431
PKG_CHECK_MODULES([ICU_UC], [icu-uc >= 52.1], [have_icu_uc=true], [have_icu_uc=false])
432432
PKG_CHECK_MODULES([ICU_I18N], [icu-i18n >= 52.1], [have_icu_i18n=true], [have_icu_i18n=false])
433433
if !($have_icu_uc && $have_icu_i18n); then
434-
if !($have_icu); then
435-
AC_MSG_WARN([icu 52.1 or higher is required, but was not found.])
436-
AC_MSG_WARN([Training tools WILL NOT be built.])
437-
AC_MSG_WARN([Try to install libicu-devel package.])
438-
AM_CONDITIONAL([ENABLE_TRAINING], false)
439-
fi
434+
AC_MSG_WARN([icu 52.1 or higher is required, but was not found.])
435+
AC_MSG_WARN([Training tools WILL NOT be built.])
436+
AC_MSG_WARN([Try to install libicu-devel package.])
437+
AM_CONDITIONAL([ENABLE_TRAINING], false)
440438
else
441439
CPPFLAGS="$CPPFLAGS $ICU_UC_CFLAGS $ICU_I18N_CFLAGS"
442440
fi

0 commit comments

Comments
 (0)