* [PATCH] xfsprogs: more autoconf modernisation
@ 2022-06-01 21:17 Darrick J. Wong
2022-06-02 5:26 ` Dave Chinner
0 siblings, 1 reply; 2+ messages in thread
From: Darrick J. Wong @ 2022-06-01 21:17 UTC (permalink / raw)
To: Eric Sandeen; +Cc: xfs
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))
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] xfsprogs: more autoconf modernisation
2022-06-01 21:17 [PATCH] xfsprogs: more autoconf modernisation Darrick J. Wong
@ 2022-06-02 5:26 ` Dave Chinner
0 siblings, 0 replies; 2+ messages in thread
From: Dave Chinner @ 2022-06-02 5:26 UTC (permalink / raw)
To: Darrick J. Wong; +Cc: Eric Sandeen, xfs
On Wed, Jun 01, 2022 at 02:17:44PM -0700, Darrick J. Wong wrote:
> 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>
Looks good.
Reviewed-by: Dave Chinner <dchinner@redhat.com>
--
Dave Chinner
david@fromorbit.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-06-02 5:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-01 21:17 [PATCH] xfsprogs: more autoconf modernisation Darrick J. Wong
2022-06-02 5:26 ` Dave Chinner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox