From be97f3e0eff3b582ad35eb63e5edf0615019769f Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Tue, 21 Jan 2014 10:13:32 +0000 Subject: build: suppress an erroneous warning --with-selinux=no * m4/jm-macros.m4: Don't check the SELinux cached variables --without-selinux. Reported-by: Bernhard Voelker --- m4/jm-macros.m4 | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'm4') diff --git a/m4/jm-macros.m4 b/m4/jm-macros.m4 index cb9e90ee2..a96ecabb6 100644 --- a/m4/jm-macros.m4 +++ b/m4/jm-macros.m4 @@ -51,15 +51,17 @@ AC_DEFUN([coreutils_MACROS], # Used by install.c. AC_CHECK_FUNCS([matchpathcon_init_prefix], [], [ - case "$ac_cv_search_setfilecon:$ac_cv_header_selinux_selinux_h" in - no:*) # SELinux disabled - ;; - *:no) # SELinux disabled - ;; - *) - AC_MSG_WARN([SELinux enabled, but matchpathcon_init_prefix not found]) - AC_MSG_WARN([The install utility may run slowly]) - esac + if test "$with_selinux" != no; then + case "$ac_cv_search_setfilecon:$ac_cv_header_selinux_selinux_h" in + no:*) # SELinux disabled + ;; + *:no) # SELinux disabled + ;; + *) + AC_MSG_WARN([SELinux enabled, but matchpathcon_init_prefix not found]) + AC_MSG_WARN([The install utility may run slowly]) + esac + fi ]) LIBS=$coreutils_saved_libs -- cgit v1.2.3-54-g00ecf