From: Marcela Mašláňová Date: Tue, 16 Feb 2010 07:28:01 +0000 (+0100) Subject: Dynamic shared libraries -laudit X-Git-Tag: cronie1.4.4~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a931f0282a58efcd72f26af2cea37e61b48c98d1;p=cronie 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 --- 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 ]