]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: configure.am selinux support cleanup
authorKarel Zak <kzak@redhat.com>
Thu, 8 Feb 2007 14:19:36 +0000 (15:19 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 8 Feb 2007 14:19:36 +0000 (15:19 +0100)
Changes:
 - don't include SELinux as default (--with-selinux is required)
 - the SELinux is not useful for login-utils only
 - clean up PAM and login-utils tests in the configure.am

Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac

index dd7da82cdc24e96abb03be4f14ef453ef4e93aa3..ccd05b361c43b567880f35dbab119eda51367d1a 100644 (file)
@@ -277,7 +277,7 @@ AM_CONDITIONAL(BUILD_LOGIN_UTILS, test x$enable_login_utils = xyes)
 
 AC_ARG_WITH([pam],
   AC_HELP_STRING([--without-pam], [compile login-utils without PAM support]),
-  with_pam=$withval, with_pam=not_checked
+  with_pam=$withval, with_pam=yes
 )
 
 if test x$enable_login_utils = xyes && test x$with_pam != xno; then
@@ -289,11 +289,11 @@ fi
 AM_CONDITIONAL(HAVE_PAM, test x$ac_cv_header_security_pam_misc_h = xyes)
 
 AC_ARG_WITH([selinux],
-  AC_HELP_STRING([--without-selinux], [compile login-utils without SELinux support]),
-  with_selinux=$withval, with_selinux=not_checked
+  AC_HELP_STRING([--with-selinux], [compile with SELinux support]),
+  with_selinux=$withval, with_selinux=no
 )
 
-if test x$enable_login_utils = xyes && test x$with_selinux != xno; then
+if test x$with_selinux != xno; then
   AC_CHECK_LIB(selinux, getprevcon)
   if test x$with_selinux = xyes && test x$ac_cv_lib_selinux_getprevcon = xno; then
     AC_MSG_ERROR([SELinux selected but libselinux not found])