From: Karl Fleischmann Date: Thu, 9 Jun 2022 14:24:19 +0000 (+0200) Subject: m4: want_stemmer.m4 - Modernize m4 syntax X-Git-Tag: 2.4.0~3875 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0afabe053d91238c0ae95ab8f80b07d760fe3df;p=thirdparty%2Fdovecot%2Fcore.git m4: want_stemmer.m4 - Modernize m4 syntax --- diff --git a/m4/want_stemmer.m4 b/m4/want_stemmer.m4 index f3b93d373b..c435faf9b2 100644 --- a/m4/want_stemmer.m4 +++ b/m4/want_stemmer.m4 @@ -1,14 +1,14 @@ AC_DEFUN([DOVECOT_WANT_STEMMER], [ - if test $want_stemmer != no; then + AS_IF([test "$want_stemmer" != "no"], [ AC_CHECK_LIB(stemmer, sb_stemmer_new, [ have_fts_stemmer=yes AC_DEFINE(HAVE_FTS_STEMMER,, [Define if you want stemming support for FTS]) ], [ - if test $want_stemmer = yes; then + AS_IF([test "$want_stemmer" = "yes"], [ AC_ERROR([Can't build with stemmer support: libstemmer not found]) - fi + ]) ]) - fi + ]) AM_CONDITIONAL([BUILD_FTS_STEMMER], [test "$have_fts_stemmer" = "yes"]) ])