From: Karl Fleischmann Date: Thu, 9 Jun 2022 14:36:11 +0000 (+0200) Subject: m4: want_icu.m4 - Modernize m4 syntax X-Git-Tag: 2.4.0~3873 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6cce6c38c569cc9be6504fda7366e8fc84e5ced;p=thirdparty%2Fdovecot%2Fcore.git m4: want_icu.m4 - Modernize m4 syntax --- diff --git a/m4/want_icu.m4 b/m4/want_icu.m4 index 9127ebccb6..9d165ccc08 100644 --- a/m4/want_icu.m4 +++ b/m4/want_icu.m4 @@ -1,12 +1,12 @@ AC_DEFUN([DOVECOT_WANT_ICU], [ - if test "$want_icu" != "no"; then - if test "$PKG_CONFIG" != "" && $PKG_CONFIG --exists icu-i18n 2>/dev/null; then + AS_IF([test "$want_icu" != "no"], [ + AS_IF([test "$PKG_CONFIG" != "" && $PKG_CONFIG --exists icu-i18n 2>/dev/null], [ PKG_CHECK_MODULES(LIBICU, icu-i18n) have_icu=yes AC_DEFINE(HAVE_LIBICU,, [Define if you want ICU normalization support for FTS]) - elif test "$want_icu" = "yes"; then + ], [test "$want_icu" = "yes"], [ AC_ERROR([Can't build with libicu support: libicu-i18n not found]) - fi - fi + ]) + ]) AM_CONDITIONAL(BUILD_LIBICU, test "$have_icu" = "yes") ])