perf tools: Check libaudit availability for perf-trace builtin
[cascardo/linux.git] / tools / perf / config / feature-tests.mak
index 116690a..4add41b 100644 (file)
@@ -193,3 +193,14 @@ int main(void)
 }
 endef
 endif
+
+ifndef NO_LIBAUDIT
+define SOURCE_LIBAUDIT
+#include <libaudit.h>
+
+int main(void)
+{
+       return audit_open();
+}
+endef
+endif
\ No newline at end of file