From a931f0282a58efcd72f26af2cea37e61b48c98d1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marcela=20Ma=C5=A1l=C3=A1=C5=88ov=C3=A1?= Date: Tue, 16 Feb 2010 08:28:01 +0100 Subject: [PATCH] Dynamic shared libraries -laudit There is need to add -laudit into gcc options because now it's not found automatically. Based on: http://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 33a098e..3f5c680 100644 --- a/configure.ac +++ b/configure.ac @@ -208,8 +208,9 @@ AC_ARG_WITH(audit, [ if test "x$withval" != "xno" ; then saved_LIBS="$LIBS" AC_DEFINE(WITH_AUDIT,1,[Define if you want Audit trails.]) - SELINUX_MSG="yes" AC_CHECK_HEADER([libaudit.h], ,AC_MSG_ERROR(Audit trails requires libaudit.h header)) + AC_CHECK_LIB(audit, audit_open, [ LIBAUDIT="-laudit" ], + AC_MSG_ERROR(Audit support needs audit libraries.)) LIBS="$saved_LIBS $LIBAUDIT" AC_SUBST(LIBAUDIT) fi ] -- 2.40.0