diff options
author | Ray Strode <halfline@gmail.com> | 2020-02-07 14:12:30 +0000 |
---|---|---|
committer | Ray Strode <halfline@gmail.com> | 2020-02-07 14:12:30 +0000 |
commit | e1fbe1c18f21a6d4e935a456b32e672b17a5b4c0 (patch) | |
tree | cffdf614b8a003a4499af11b5037b7075a636e72 | |
parent | eca337ba208261395167a8eba2ca7bdf7a33665e (diff) | |
parent | 141f8bc24401db636c4b1a9dd991c68d7b3282f0 (diff) | |
download | gdm-e1fbe1c18f21a6d4e935a456b32e672b17a5b4c0.tar.gz |
Merge branch 'wip/rishi/keyutils-use-pkgconfig' into 'master'
configure: Use pkg-config to look for keyutils
See merge request GNOME/gdm!91
-rw-r--r-- | configure.ac | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index db85229f..20ebf9d9 100644 --- a/configure.ac +++ b/configure.ac @@ -532,11 +532,10 @@ if test "x$supports_pam_extensions" = "xyes" ; then AC_DEFINE(SUPPORTS_PAM_EXTENSIONS, 1, [Define if PAM supports GDMs custom extensions]) fi -AC_CHECK_LIB(keyutils, keyctl_read, [ - AC_DEFINE(HAVE_KEYUTILS, 1, [Define if have keyutils]) - KEYUTILS_LIBS="-lkeyutils" - KEYUTILS_CFLAGS="" -]) +PKG_CHECK_MODULES([KEYUTILS], + [libkeyutils], + [AC_DEFINE([HAVE_KEYUTILS], [1], [Define if have keyutils])], + [true]) AC_SUBST(KEYUTILS_LIBS) AC_SUBST(KEYUTILS_CFLAGS) |