diff options
author | Richard Hughes <richard@hughsie.com> | 2014-11-19 13:15:40 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-11-19 13:45:55 +0000 |
commit | a9b6365817193d528893dfff990f3579c1b3ae40 (patch) | |
tree | 5cef73651d521cd9e3dba26bb6c941fd77a5a7d4 | |
parent | 4f61184f1dfd1716e3bb463ddfae104798a5e84c (diff) | |
download | colord-a9b6365817193d528893dfff990f3579c1b3ae40.tar.gz |
trivial: Do not require old-style dbus when specifying --disable-examples
-rw-r--r-- | configure.ac | 8 |
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 --------------------------------------------------------------------------- |