Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | From a9e4057bfda190ad365b503af058b460ab8c7616 Mon Sep 17 00:00:00 2001 |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 2 | From: Martin Jansa <Martin.Jansa@gmail.com> |
| 3 | Date: Tue, 1 Oct 2013 22:22:57 +0200 |
| 4 | Subject: [PATCH] aclocal: Add parameter to disable keyutils detection |
| 5 | |
| 6 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 7 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 8 | --- |
| 9 | aclocal.m4 | 4 ++++ |
| 10 | 1 file changed, 4 insertions(+) |
| 11 | |
| 12 | diff --git a/aclocal.m4 b/aclocal.m4 |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 13 | index d6d1279..80ce604 100644 |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 14 | --- a/aclocal.m4 |
| 15 | +++ b/aclocal.m4 |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 16 | @@ -1679,12 +1679,16 @@ fi |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 17 | dnl |
| 18 | dnl If libkeyutils exists (on Linux) include it and use keyring ccache |
| 19 | AC_DEFUN(KRB5_AC_KEYRING_CCACHE,[ |
| 20 | +AC_ARG_ENABLE([keyutils], |
| 21 | +AC_HELP_STRING([--disable-keyutils],don't enable using keyutils for keyring ccache @<:@enabled@:>@), , enable_keyutils=yes) |
| 22 | +if test "$enable_keyutils" = yes; then |
| 23 | AC_CHECK_HEADERS([keyutils.h], |
| 24 | AC_CHECK_LIB(keyutils, add_key, |
| 25 | [dnl Pre-reqs were found |
| 26 | AC_DEFINE(USE_KEYRING_CCACHE, 1, [Define if the keyring ccache should be enabled]) |
| 27 | LIBS="-lkeyutils $LIBS" |
| 28 | ])) |
| 29 | +fi |
| 30 | ])dnl |
| 31 | dnl |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 32 | dnl If libkeyutils supports persistent keyrings, use them |