summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
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
"