diff options
author | Karel Zak | 2011-10-27 16:28:35 +0200 |
---|---|---|
committer | Karel Zak | 2011-11-03 12:32:50 +0100 |
commit | ff0cb84ddbd6f8e3b613a284479955222265bdff (patch) | |
tree | 78ade2d049a5527de8ec453f9938ffbc13f15895 /configure.ac | |
parent | build-sys: cleanup BUILD_{RENAME,RESET} (diff) | |
download | kernel-qcow2-util-linux-ff0cb84ddbd6f8e3b613a284479955222265bdff.tar.gz kernel-qcow2-util-linux-ff0cb84ddbd6f8e3b613a284479955222265bdff.tar.xz kernel-qcow2-util-linux-ff0cb84ddbd6f8e3b613a284479955222265bdff.zip |
build-sys: cleanup BUILD_LOGIN_UTILS
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index cceb54b62..9a161684d 100644 --- a/configure.ac +++ b/configure.ac @@ -172,6 +172,7 @@ AC_CHECK_HEADERS( sys/user.h \ sys/swap.h \ sys/resource.h \ + security/pam_misc.h \ linux/raw.h \ unistd.h ]) @@ -182,6 +183,7 @@ AC_CHECK_HEADERS([langinfo.h], dnl Convert some ac_cv_header_* variables to have_* dnl have_linux_raw_h=$ac_cv_header_linux_raw_h +have_security_pam_misc_h=$ac_cv_header_security_pam_misc_h AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ @@ -906,12 +908,9 @@ AC_ARG_ENABLE([login-utils], AS_HELP_STRING([--enable-login-utils], [build chfn, chsh, login, newgrp, vipw]), [], enable_login_utils=no ) -AM_CONDITIONAL(BUILD_LOGIN_UTILS, test "x$enable_login_utils" = xyes) - -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 +build_login_utils=yes +UL_REQUIRES_HAVE([login_utils], [security_pam_misc_h], [PAM header file]) +AM_CONDITIONAL(BUILD_LOGIN_UTILS, test "x$build_login_utils" = xyes) AC_ARG_WITH([selinux], |