From: Aki Tuomi Date: Mon, 25 Apr 2022 17:28:19 +0000 (+0300) Subject: m4: dbqlk.m4 - Modernize m4 syntax X-Git-Tag: 2.4.0~3909 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=acb399e34bc35b52c5662c554bb0c20ceb8a8cb6;p=thirdparty%2Fdovecot%2Fcore.git m4: dbqlk.m4 - Modernize m4 syntax --- diff --git a/m4/dbqlk.m4 b/m4/dbqlk.m4 index d030f8fa14..fe9d228f55 100644 --- a/m4/dbqlk.m4 +++ b/m4/dbqlk.m4 @@ -1,39 +1,39 @@ dnl * Check if we have struct dqblk.dqb_curblocks AC_DEFUN([DOVECOT_DQBLK_CURBLOCKS], [ AC_CACHE_CHECK([if struct dqblk.dqb_curblocks exists],i_cv_have_dqblk_dqb_curblocks,[ - AC_TRY_COMPILE([ + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include #include "$srcdir/src/plugins/quota/quota-fs.h" - ], [ + ]], [[ struct dqblk dqblk; unsigned int x = dqblk.dqb_curblocks; - ], [ + ]])],[ i_cv_have_dqblk_dqb_curblocks=yes ], [ i_cv_have_dqblk_dqb_curblocks=no ]) ]) - if test $i_cv_have_dqblk_dqb_curblocks = yes; then + AS_IF([test $i_cv_have_dqblk_dqb_curblocks = yes], [ AC_DEFINE(HAVE_STRUCT_DQBLK_CURBLOCKS,, [Define if struct sqblk.dqb_curblocks exists]) - fi + ]) ]) dnl * Check if we have struct dqblk.dqb_curspace AC_DEFUN([DOVECOT_DQBLK_CURSPACE], [ AC_CACHE_CHECK([if struct dqblk.dqb_curspace exists],i_cv_have_dqblk_dqb_curspace,[ - AC_TRY_COMPILE([ + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include #include "$srcdir/src/plugins/quota/quota-fs.h" - ], [ + ]], [[ struct dqblk dqblk; unsigned int x = dqblk.dqb_curspace; - ], [ + ]])],[ i_cv_have_dqblk_dqb_curspace=yes ], [ i_cv_have_dqblk_dqb_curspace=no ]) ]) - if test $i_cv_have_dqblk_dqb_curspace = yes; then + AS_IF([test $i_cv_have_dqblk_dqb_curspace = yes], [ AC_DEFINE(HAVE_STRUCT_DQBLK_CURSPACE,, [Define if struct sqblk.dqb_curspace exists]) - fi + ]) ])