[libgsystem] Fix systemd journal detection
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgsystem] Fix systemd journal detection
- Date: Sat, 8 Feb 2014 09:39:43 +0000 (UTC)
commit 2cbbbc55a0dd54d333aeb30520683e563e847fd9
Author: Colin Walters <walters verbum org>
Date: Sat Feb 8 04:39:27 2014 -0500
Fix systemd journal detection
configure.ac | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index c2e435a..b3999b2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -48,9 +48,12 @@ AC_ARG_WITH(systemd-journal,
AS_HELP_STRING([--without-systemd-journal], [Use systemd journal @<:@default=auto@:>@]),
[], [with_systemd_journal=auto])
AS_IF([test x$with_systemd_journal != xno], [
- PKG_CHECK_MODULES([SYSTEMD_JOURNAL], [libsystemd-journal >= 200], have_systemd_journal=yes,
have_systemd_journal=no)
+ PKG_CHECK_MODULES([BUILDDEP_SYSTEMD_JOURNAL], [libsystemd-journal >= 200], have_systemd_journal=yes,
have_systemd_journal=no)
])
AM_CONDITIONAL(ENABLE_SYSTEMD_JOURNAL, test x$have_systemd_journal = xyes)
+AS_IF([test x$have_systemd_journal = xyes], [
+ AC_DEFINE([ENABLE_SYSTEMD_JOURNAL],[1],[Define if you want to build with systemd journal support])
+])
AC_CONFIG_FILES([
Makefile
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]