From 07bef881dad1c0da68df62141eca902d3b5c728d Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Wed, 16 Sep 2015 14:18:49 -0400 Subject: Log at configure time if libaudit is being used --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index f9f6ebef..1796c4ea 100644 --- a/configure.ac +++ b/configure.ac @@ -152,9 +152,11 @@ AC_ARG_ENABLE([audit], [Enable audit logging of login and logout events [[default=auto]]]), [enable_audit=$enableval], [enable_audit=auto]) +use_libaudit=no if test x"$enable_audit" != "xno"; then AC_CHECK_LIB([audit], [audit_log_user_message], - [AC_DEFINE(HAVE_LIBAUDIT, 1, [libaudit support]) + [use_libaudit=yes + AC_DEFINE(HAVE_LIBAUDIT, 1, [libaudit support]) LIGHTDM_LIBS="${LIGHTDM_LIBS} -laudit" ], [if test "x$enable_audit" != xauto; then @@ -260,5 +262,6 @@ echo " GObject introspection: $found_introspection liblightdm-qt: $compile_liblightdm_qt4 liblightdm-qt5: $compile_liblightdm_qt5 + libaudit support: $use_libaudit Enable tests: $enable_tests " -- cgit v1.2.1