From 3648c5ae29ce823592708cc1b9cca4f202d282a4 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 24 Aug 2023 19:48:22 -0400 Subject: [PATCH] build-sys: Really fix composefs check The ordering of the includes apparently matters...and I didn't actually check that the previous change enables composefs on c9s. But I did now. For reals. While we have the patient open, I switched to `AC_LANG_PROGRAM` because I originally thought the bug had something to do with that. As far as I understand, more cleanly separating the includes from the injected body text is a useful thing in `AC_LANG_PROGRAM`. --- configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 20f9e4ed..a98736eb 100644 --- a/configure.ac +++ b/configure.ac @@ -277,11 +277,11 @@ AM_CONDITIONAL(USE_GPGME, test "x$have_gpgme" = xyes) dnl composefs won't work at all without this AC_MSG_CHECKING([for MOUNT_ATTR_IDMAP]) AC_COMPILE_IFELSE( - [AC_LANG_SOURCE([[ - #include + [AC_LANG_PROGRAM([ #include - int foo = MOUNT_ATTR_IDMAP; - ]])], + #include + ],[int foo = MOUNT_ATTR_IDMAP;] + )], [AC_MSG_RESULT(yes) have_mount_attr_idmap=yes], [AC_MSG_RESULT(no)])