]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: Ignore old audit library
authorJiri Denemark <jdenemar@redhat.com>
Wed, 27 Apr 2011 09:19:23 +0000 (11:19 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 28 Apr 2011 12:25:27 +0000 (14:25 +0200)
Check for audit_encode_nv_string in libaudit so that ancient audit
library is ignored rather than trying to compile with libaudit support
and failing.

configure.ac

index 758c89322f8a002497ab567d5b16970ab189587f..dbae23852c56231662d65a3c169e6823f58dcebd 100644 (file)
@@ -1026,7 +1026,7 @@ if test "$with_audit" != "no" ; then
   LIBS="$LIBS $AUDIT_LIBS"
   fail=0
   AC_CHECK_HEADER([libaudit.h], [], [fail=1])
-  AC_CHECK_LIB([audit], [audit_is_enabled], [], [fail=1])
+  AC_CHECK_LIB([audit], [audit_encode_nv_string], [], [fail=1])
 
   if test $fail = 1 ; then
     if test "$with_audit" = "yes" ; then