]> granicus.if.org Git - cronie/commitdiff
Dynamic shared libraries -laudit
authorMarcela Mašláňová <mmaslano@redhat.com>
Tue, 16 Feb 2010 07:28:01 +0000 (08:28 +0100)
committerMarcela Mašláňová <mmaslano@redhat.com>
Tue, 16 Feb 2010 07:28:01 +0000 (08:28 +0100)
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

index 33a098e2687cd52975b981cf8a8cfb0fff4c95e0..3f5c6805acea0678c4376b8a2f3224b6a8d9d62f 100644 (file)
@@ -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 ]