summaryrefslogtreecommitdiffstats
path: root/src/external/libkeyutils.m4
blob: 5753d77aae28cc89b9c34381a19ae6ec21ff1837 (plain)
1
2
3
4
5
6
7
8
9
10
11
AC_SUBST(KEYUTILS_LIBS)

AC_CHECK_HEADERS([keyutils.h],
                 [AC_CHECK_LIB([keyutils], [add_key],
                               [AC_DEFINE(USE_KEYRING, 1, [Define if the keyring should be used])
                                KEYUTILS_LIBS="-lkeyutils"
                               ],
                               [AC_MSG_WARN([No usable keyutils library found])]
                              )],
                 [AC_MSG_WARN([keyutils header files are not available])]
)