From abf8754ad5c98462b2134aa339271b52960569c0 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Tue, 27 Jun 2006 12:34:07 +0000 Subject: Relevant BUGIDs: Purpose of commit: new feature Commit summary: --------------- * modules/pam_keyinit/pam_keyinit.c: New module. * modules/pam_keyinit/pam_keyinit.8: New. * modules/pam_keyinit/pam_keyinit.8.xml: New. * modules/pam_keyinit/README: New. * modules/pam_keyinit/README.xml: New. * modules/pam_keyinit/Makefile.am: New. * modules/pam_keyinit/tst_pam_keyinit: New. * modules/Makefile.am: Added pam_keyinit. * configure.in: Added test for the key mgmt syscall. --- configure.in | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 09869e3c..315c89cc 100644 --- a/configure.in +++ b/configure.in @@ -451,6 +451,29 @@ AH_VERBATIM([_ZZENABLE_NLS], #define N_(msgid) msgid #endif /* ENABLE_NLS */]) +dnl +dnl Check for the availability of the kernel key management facility +dnl - The pam_keyinit module only requires the syscalls, not the error codes +dnl +have_key_syscalls=0 +AC_CHECK_DECL(__NR_keyctl, [have_key_syscalls=1],,[#include ]) +have_key_errors=0 +AC_CHECK_DECL(ENOKEY, [have_key_errors=1]) + +HAVE_KEY_MANAGEMENT=0 +if test $have_key_syscalls$have_key_errors = 11 +then + HAVE_KEY_MANAGEMENT=1 +fi + +if test $HAVE_KEY_MANAGEMENT = 1; then + AC_DEFINE([HAVE_KEY_MANAGEMENT], 1, + [Defined if the kernel key management facility is available]) +fi +AC_SUBST([HAVE_KEY_MANAGEMENT], $HAVE_KEY_MANAGEMENT) + +AM_CONDITIONAL([HAVE_KEY_MANAGEMENT], [test ! -z "$have_key_syscalls"]) + dnl Files to be created from when we run configure AC_OUTPUT(Makefile libpam/Makefile libpamc/Makefile libpamc/test/Makefile \ libpam_misc/Makefile conf/Makefile conf/pam_conv1/Makefile \ @@ -461,7 +484,8 @@ AC_OUTPUT(Makefile libpam/Makefile libpamc/Makefile libpamc/test/Makefile \ modules/pam_echo/Makefile modules/pam_env/Makefile \ modules/pam_filter/Makefile modules/pam_filter/upperLOWER/Makefile \ modules/pam_ftp/Makefile modules/pam_group/Makefile \ - modules/pam_issue/Makefile modules/pam_lastlog/Makefile \ + modules/pam_issue/Makefile \ + modules/pam_keyinit/Makefile modules/pam_lastlog/Makefile \ modules/pam_limits/Makefile modules/pam_listfile/Makefile \ modules/pam_localuser/Makefile modules/pam_mail/Makefile \ modules/pam_mkhomedir/Makefile modules/pam_motd/Makefile \ -- cgit v1.2.3