From: "Darrick J. Wong" <djwong@kernel.org>
To: Eric Sandeen <sandeen@redhat.com>
Cc: xfs <linux-xfs@vger.kernel.org>
Subject: [PATCH] xfsprogs: more autoconf modernisation
Date: Wed, 1 Jun 2022 14:17:44 -0700 [thread overview]
Message-ID: <YpfXeCzZlBIq+vFI@magnolia> (raw)
From: Darrick J. Wong <djwong@kernel.org>
Fix a few autoconf things that were added after the submission of the
autoconf modernization patch. This was performed by running:
$ autoupdate configure.ac m4/*.m4
And manually putting the version back to 2.69.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
---
configure.ac | 2 +-
m4/package_libcdev.m4 | 12 +++++++-----
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/configure.ac b/configure.ac
index a4e14e17..02afd805 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,5 @@
AC_INIT([xfsprogs],[5.18.0-rc1],[linux-xfs@vger.kernel.org])
-AC_PREREQ(2.69)
+AC_PREREQ([2.69])
AC_CONFIG_AUX_DIR([.])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([include/libxfs.h])
diff --git a/m4/package_libcdev.m4 b/m4/package_libcdev.m4
index 4dff8792..70badac3 100644
--- a/m4/package_libcdev.m4
+++ b/m4/package_libcdev.m4
@@ -404,13 +404,15 @@ test = mallinfo();
#
AC_DEFUN([AC_HAVE_MALLINFO2],
[ AC_MSG_CHECKING([for mallinfo2 ])
- AC_TRY_COMPILE([
+ AC_COMPILE_IFELSE(
+ [ AC_LANG_PROGRAM([[
#include <malloc.h>
- ], [
- struct mallinfo2 test;
+ ]], [[
+struct mallinfo2 test;
- test.arena = 0; test.hblkhd = 0; test.uordblks = 0; test.fordblks = 0;
- test = mallinfo2();
+test.arena = 0; test.hblkhd = 0; test.uordblks = 0; test.fordblks = 0;
+test = mallinfo2();
+ ]])
], have_mallinfo2=yes
AC_MSG_RESULT(yes),
AC_MSG_RESULT(no))
next reply other threads:[~2022-06-01 21:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-01 21:17 Darrick J. Wong [this message]
2022-06-02 5:26 ` [PATCH] xfsprogs: more autoconf modernisation Dave Chinner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YpfXeCzZlBIq+vFI@magnolia \
--to=djwong@kernel.org \
--cc=linux-xfs@vger.kernel.org \
--cc=sandeen@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox