diff --git a/configure.ac b/configure.ac
index cf312a38428ab0cd3ee05171e5a2208d4854fce6..045f0f46e233450714eed5dea5af6b65177a10e5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -413,12 +413,12 @@ AC_ARG_WITH([dbus],
   [],
   [with_dbus=yes])
 AS_IF([test "x$with_dbus" = "xyes"],
-  [PKG_CHECK_MODULES(SDBUSCPP, sdbus-c++,,
-     AC_MSG_WARN([Missing dbus development files]))
+  [PKG_CHECK_MODULES(SDBUSCPP, [sdbus-c++],,
+     AC_MSG_ERROR([sdbus-c++ not found]))
 
    AC_CONFIG_FILES([bin/dbus/Makefile])
 
-   AC_PATH_PROG([SDBUSCPP_XML2CPP], sdbus-c++-xml2cpp,
+   AC_PATH_PROG([SDBUSCPP_XML2CPP], [sdbus-c++-xml2cpp],
      [AC_MSG_ERROR([dbusxx-xml2cpp not found])])
 
    AM_CONDITIONAL(RING_DBUS, true)],