From: Karl Fleischmann Date: Thu, 9 Jun 2022 14:35:50 +0000 (+0200) Subject: m4: want_cdb.m4 - Modernize m4 syntax X-Git-Tag: 2.4.0~3874 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=63ddc7d860b5c39f782f3f7c9b5cefebaaf3c8ca;p=thirdparty%2Fdovecot%2Fcore.git m4: want_cdb.m4 - Modernize m4 syntax --- diff --git a/m4/want_cdb.m4 b/m4/want_cdb.m4 index b18ff490c6..c0e083cfe8 100644 --- a/m4/want_cdb.m4 +++ b/m4/want_cdb.m4 @@ -1,19 +1,19 @@ AC_DEFUN([DOVECOT_WANT_CDB], [ - if test $want_cdb != no; then + AS_IF([test "$want_cdb" != "no"], [ AC_CHECK_LIB(cdb, cdb_init, [ AC_CHECK_HEADER(cdb.h, [ DICT_LIBS="$DICT_LIBS -lcdb" dict_drivers="$dict_drivers cdb" AC_DEFINE(BUILD_CDB,, [Build with CDB support]) ], [ - if test $want_cdb = yes; then + AS_IF([test "$want_cdb" = "yes"], [ AC_ERROR([Can't build with CDB support: cdb.h not found]) - fi + ]) ]) ], [ - if test $want_cdb = yes; then + AS_IF([test "$want_cdb" = "yes"], [ AC_ERROR([Can't build with CDB support: libcdb not found]) - fi + ]) ]) - fi + ]) ])