From 6811cf30a1a75f1141fbec84e4a3d9dc84a0c9a4 Mon Sep 17 00:00:00 2001 From: Eric Curtin Date: Tue, 10 Oct 2023 16:56:44 +0100 Subject: [PATCH] configure: fix composefs default to on, if appropriate composefs should be included by default. If the appropriate headers are not present, have_mount_attr_idmap should be set to no. If this is no, don't build composefs as part of the build. --- configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 4416bc06f9..d518a872eb 100644 --- a/configure.ac +++ b/configure.ac @@ -284,7 +284,8 @@ AC_COMPILE_IFELSE( )], [AC_MSG_RESULT(yes) have_mount_attr_idmap=yes], - [AC_MSG_RESULT(no)]) + [AC_MSG_RESULT(no) + have_mount_attr_idmap=no]) dnl These are needed by libcomposefs to use the new mount API optionally AC_MSG_CHECKING([for new mount API (fsconfig)]) AC_COMPILE_IFELSE( @@ -307,7 +308,7 @@ AC_COMPILE_IFELSE( [AC_MSG_RESULT(no)]) composefs_default=yes -if test x"$have_mount_attr_idmap" != xyes; then +if test x"$have_mount_attr_idmap" == xno; then composefs_default=no fi AC_ARG_WITH(composefs,