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

index b18ff490c67e66b62294d9b43946a63a68c536e4..c0e083cfe8342a178cc01672fc212eddb2e519f3 100644 (file)
@@ -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
+  ])
 ])