]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
selinux-h: only override default --with-selinux user setting
authorPádraig Brady <P@draigBrady.com>
Sat, 10 Jan 2026 19:12:41 +0000 (19:12 +0000)
committerPádraig Brady <P@draigBrady.com>
Sat, 10 Jan 2026 19:48:46 +0000 (19:48 +0000)
* m4/selinux-selinux-h.m4 (gl_LIBSELINUX): Only override the default
with_selinux user setting, leaving explicit --with-selinux untouched.
E.g., coreutils uses --with-selinux to force build the runcon
and chcon stubs on systems without libselinux.

ChangeLog
m4/selinux-selinux-h.m4

index 3a70f44748b52ef1115461337e587dcc0262ff87..e0cccce475b341946a36a36377d93003c1cf76a4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2026-01-10  Pádraig Brady  <P@draigBrady.com>
+
+       selinux-h: only override default --with-selinux user setting
+       * m4/selinux-selinux-h.m4 (gl_LIBSELINUX): Only override the default
+       with_selinux user setting, leaving explicit --with-selinux untouched.
+       E.g., coreutils uses --with-selinux to force build the runcon
+       and chcon stubs on systems without libselinux.
+
 2026-01-09  Bruno Haible  <bruno@clisp.org>
 
        announce-gen: Fix instructions for verifying the SHA3-256 checksums.
index 5b934461623358100eb3fd1cdb03565dd1a2d693..89c3c1582ba8dd38d2d7515aac94aea7e08b7c1d 100644 (file)
@@ -92,6 +92,8 @@ AC_DEFUN([gl_LIBSELINUX],
       AC_MSG_WARN([This system supports SELinux but libselinux is missing.])
       AC_MSG_WARN([AC_PACKAGE_NAME will be compiled without SELinux support.])
     fi
-    with_selinux=no
+    if test "$with_selinux" = maybe; then
+      with_selinux=no
+    fi
   fi
 ])