From 2270309471213a3c960543e523130627e9cb10e2 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Wed, 6 Nov 2013 02:03:05 +0100 Subject: bus: test-bus-marshal - make dbus-1 optional --- configure.ac | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'configure.ac') 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 = 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 -- cgit v1.2.3-54-g00ecf