diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2015-09-16 14:15:44 -0400 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2015-09-16 14:15:44 -0400 |
commit | 99032f163c1b7fd466ff11ba408bafc9edc33e70 (patch) | |
tree | b8dc397b4e32175e437b12c940ef51b9a5457c5e | |
parent | 184b659df68571b76deac6e32143e92427315676 (diff) | |
download | lightdm-git-99032f163c1b7fd466ff11ba408bafc9edc33e70.tar.gz |
Log at configure time if libaudit is being used
-rw-r--r-- | configure.ac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index a9808a2c..563318d6 100644 --- a/configure.ac +++ b/configure.ac @@ -134,9 +134,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 @@ -242,5 +244,6 @@ echo " Vala bindings: $enable_vala liblightdm-qt: $compile_liblightdm_qt4 liblightdm-qt5: $compile_liblightdm_qt5 + libaudit support: $use_libaudit Enable tests: $enable_tests " |