From: Aki Tuomi Date: Mon, 25 Apr 2022 18:47:25 +0000 (+0300) Subject: m4: iovec.m4 - Modernize m4 syntax X-Git-Tag: 2.4.0~3898 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=37fc428fefd011aa62a2b0e2374541195824d431;p=thirdparty%2Fdovecot%2Fcore.git m4: iovec.m4 - Modernize m4 syntax --- diff --git a/m4/iovec.m4 b/m4/iovec.m4 index a1f3b48558..90e2d0ae97 100644 --- a/m4/iovec.m4 +++ b/m4/iovec.m4 @@ -1,7 +1,6 @@ dnl * do we have struct iovec AC_DEFUN([DOVECOT_IOVEC], [ - AC_MSG_CHECKING([for struct iovec]) - AC_CACHE_VAL(i_cv_struct_iovec, + AC_CACHE_CHECK([for struct iovec], i_cv_struct_iovec, [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include #include @@ -9,9 +8,8 @@ AC_DEFUN([DOVECOT_IOVEC], [ [[struct iovec *iovec;]])], [i_cv_struct_iovec=yes], [i_cv_struct_iovec=no])]) - - if test $i_cv_struct_iovec = yes; then + + AS_IF([test $i_cv_struct_iovec = yes], [ AC_DEFINE(HAVE_STRUCT_IOVEC,, [Define if you have struct iovec]) - fi - AC_MSG_RESULT($i_cv_struct_iovec) + ]) ])