summaryrefslogtreecommitdiffstats
path: root/aclocal
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2015-09-16 10:19:36 -0400
committerSteve Dickson <steved@redhat.com>2015-09-16 11:21:41 -0400
commit8903d75ed4abd4207873b315885b559abfaa2af8 (patch)
tree9695895a4079a1f88d9e4cc14d54ab9d7ce05eb1 /aclocal
parent5135a70fd0917986a575f9f01d0a29b5c93c4041 (diff)
downloadnfs-utils-8903d75ed4abd4207873b315885b559abfaa2af8.tar.gz
nfs-utils-8903d75ed4abd4207873b315885b559abfaa2af8.tar.xz
nfs-utils-8903d75ed4abd4207873b315885b559abfaa2af8.zip
nfsidmap: Use find_key_by_type_and_desc() if available
Recent versions of libkeyutils have find_key_by_type_and_desc() which replaces the open-coded keyring search in keyring_clear(). I don't quite understand what's going on in key_invalidate(), so I didn't touch it. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'aclocal')
-rw-r--r--aclocal/keyutils.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/aclocal/keyutils.m4 b/aclocal/keyutils.m4
index a392c0e..16b225d 100644
--- a/aclocal/keyutils.m4
+++ b/aclocal/keyutils.m4
@@ -8,4 +8,8 @@ AC_DEFUN([AC_KEYUTILS], [
AC_CHECK_HEADERS([keyutils.h])
+ AC_CHECK_LIB([keyutils], [find_key_by_type_and_desc],
+ [AC_DEFINE([HAVE_FIND_KEY_BY_TYPE_AND_DESC], [1],
+ [Define to 1 if you have the `find_key_by_type_and_desc' function.])],)
+
])dnl