summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2014-11-19 13:15:40 +0000
committerRichard Hughes <richard@hughsie.com>2014-11-19 13:45:55 +0000
commita9b6365817193d528893dfff990f3579c1b3ae40 (patch)
tree5cef73651d521cd9e3dba26bb6c941fd77a5a7d4
parent4f61184f1dfd1716e3bb463ddfae104798a5e84c (diff)
downloadcolord-a9b6365817193d528893dfff990f3579c1b3ae40.tar.gz
trivial: Do not require old-style dbus when specifying --disable-examples
-rw-r--r--configure.ac8
1 files changed, 5 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index c97693a..acf5b27 100644
--- a/configure.ac
+++ b/configure.ac
@@ -254,9 +254,11 @@ dnl ---------------------------------------------------------------------------
AC_ARG_ENABLE(examples, AS_HELP_STRING([--enable-examples],[enable DBus example code]),
enable_examples=$enableval,enable_examples=yes)
AM_CONDITIONAL(CD_BUILD_EXAMPLES, test x$enable_examples = xyes)
-PKG_CHECK_MODULES(DBUS, dbus-1, have_dbus=yes, have_dbus=no)
-if test x$enable_examples = xyes -a x$have_dbus = xno ; then
- AC_MSG_ERROR([DBus examples require dbus-1 package, not found])
+if test x$enable_examples = xyes; then
+ PKG_CHECK_MODULES(DBUS, dbus-1, have_dbus=yes, have_dbus=no)
+ if test x$have_dbus = xno ; then
+ AC_MSG_ERROR([DBus examples require dbus-1 package, not found])
+ fi
fi
dnl ---------------------------------------------------------------------------