From c94b3604f794c3e3794f055e43dd47526dffa9d7 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 15 Aug 2011 12:45:20 +0200 Subject: [PATCH] build-sys: require PAM for login-utils Signed-off-by: Karel Zak --- configure.ac | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/configure.ac b/configure.ac index 88aced94fe..66d0794f57 100644 --- a/configure.ac +++ b/configure.ac @@ -1099,19 +1099,12 @@ AC_ARG_ENABLE([login-utils], ) AM_CONDITIONAL(BUILD_LOGIN_UTILS, test "x$enable_login_utils" = xyes) -AC_ARG_WITH([pam], - [AS_HELP_STRING([--without-pam], [compile login-utils without PAM support])]) - -AM_CONDITIONAL(HAVE_PAM, false) -if test "x$enable_login_utils" = xyes && test "x$with_pam" != xno; then - AC_CHECK_HEADERS([security/pam_misc.h], - [AM_CONDITIONAL(HAVE_PAM, true)], - [if test "x$with_pam" = xyes; then - AC_MSG_ERROR([PAM selected but security/pam_misc.h not found]) - fi - ]) +if test "x$enable_login_utils" = xyes; then + AC_CHECK_HEADERS([security/pam_misc.h], [], + [AC_MSG_ERROR([login-utils enabled, but security/pam_misc.h not found])]) fi + AC_ARG_WITH([selinux], AS_HELP_STRING([--with-selinux], [compile with SELinux support]), [], with_selinux=no -- 2.47.3