]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
m4: gmtime_tm_gmtoff.m4 - Modernize m4 syntax
authorAki Tuomi <aki.tuomi@open-xchange.com>
Mon, 25 Apr 2022 18:23:00 +0000 (21:23 +0300)
committerKarl Fleischmann <karl.fleischmann@open-xchange.com>
Mon, 4 Jul 2022 09:43:26 +0000 (11:43 +0200)
m4/gmtime_tm_gmtoff.m4

index 57df6aeb1ea406883bdcc22c33424f859a5ce2f6..8665eda23e27650684a723caa6034b453fe0d87b 100644 (file)
@@ -7,8 +7,8 @@ AC_DEFUN([DOVECOT_TM_GMTOFF], [
   [[struct tm *tm; return tm->tm_gmtoff;]])],
   [i_cv_field_tm_gmtoff=yes],
   [i_cv_field_tm_gmtoff=no])])
-  if test $i_cv_field_tm_gmtoff = yes; then
+  AS_IF([test $i_cv_field_tm_gmtoff = yes], [
           AC_DEFINE(HAVE_TM_GMTOFF,, [Define if you have struct tm->tm_gmtoff])
-  fi
+  ])
   AC_MSG_RESULT($i_cv_field_tm_gmtoff)
 ])