summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-11-06 02:03:05 +0100
committerKay Sievers <kay@vrfy.org>2013-11-06 02:03:05 +0100
commit2270309471213a3c960543e523130627e9cb10e2 (patch)
tree78ca05a88aebf62fb2f91a0e3b5a5d493e8c392d /configure.ac
parent95b015de3849d8d8d03d9441ae1682a04c38833b (diff)
downloadsystemd-2270309471213a3c960543e523130627e9cb10e2.tar.gz
bus: test-bus-marshal - make dbus-1 optional
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 7e41d577bc..bb08407779 100644
--- a/configure.ac
+++ b/configure.ac
@@ -236,8 +236,10 @@ AC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at], [], [], [[#include <sys/
# This makes sure pkg.m4 is available.
m4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
-PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.3.2])
-
+# ------------------------------------------------------------------------------
+PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.3.2], have_dbus=yes, have_dbus=no])
+AS_IF([test "$have_dbus" = "yes"], [ AC_DEFINE(HAVE_DBUS, [1], [Define if dbus-1 is available]) ])
+AM_CONDITIONAL(HAVE_DBUS, [test "$have_dbus" = "yes"])
# ------------------------------------------------------------------------------
have_coverage=no