]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
m4: want_icu.m4 - Modernize m4 syntax
authorKarl Fleischmann <karl.fleischmann@open-xchange.com>
Thu, 9 Jun 2022 14:36:11 +0000 (16:36 +0200)
committerKarl Fleischmann <karl.fleischmann@open-xchange.com>
Mon, 4 Jul 2022 09:43:26 +0000 (11:43 +0200)
m4/want_icu.m4

index 9127ebccb68428a947ced8ea000df2d6d8fc5986..9d165ccc08a6abef8631cf41a12341f1692ec145 100644 (file)
@@ -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")
 ])