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

index 49d2f65b06e349f0473f10d9e508a26d8920662b..007afd960e0fdf4e8d56d1e4604fb2606e51d2ca 100644 (file)
@@ -1,8 +1,8 @@
 AC_DEFUN([DOVECOT_WANT_PREFETCH], [
-  if test $want_prefetch_userdb != no; then
-          AC_DEFINE(USERDB_PREFETCH,, [Build with prefetch userdb support])
-          userdb="$userdb prefetch"
-  else
-          not_userdb="$not_userdb prefetch"
-  fi
+  AS_IF([test "$want_prefetch_userdb" != "no"], [
+    AC_DEFINE(USERDB_PREFETCH,, [Build with prefetch userdb support])
+    userdb="$userdb prefetch"
+  ], [
+    not_userdb="$not_userdb prefetch"
+  ])
 ])