Skip to content
Snippets Groups Projects
Commit 85549fce authored by Maxim Cournoyer's avatar Maxim Cournoyer Committed by Sébastien Blin
Browse files

configure.ac: Require sdbus-c++ when building with D-Bus support.

This is a follow-up commit to
3dd5f4eb ("dbus: use sdbus-c++ for
dbus communications").  The build should abort if the sdbus-c++ module
is missing (it's "required" on the CMake side, so why shouldn't it be
on the Autotools one?).

* configure.ac: Fail when sdbus-c++ is not found.  Quote the
sdbus-c++-xml2cpp command.

Change-Id: I8268abec10ba5be0eb8b520988affc9c0345a4fb
parent 51b8738e
No related branches found
No related tags found
No related merge requests found
...@@ -413,12 +413,12 @@ AC_ARG_WITH([dbus], ...@@ -413,12 +413,12 @@ AC_ARG_WITH([dbus],
[], [],
[with_dbus=yes]) [with_dbus=yes])
AS_IF([test "x$with_dbus" = "xyes"], AS_IF([test "x$with_dbus" = "xyes"],
[PKG_CHECK_MODULES(SDBUSCPP, sdbus-c++,, [PKG_CHECK_MODULES(SDBUSCPP, [sdbus-c++],,
AC_MSG_WARN([Missing dbus development files])) AC_MSG_ERROR([sdbus-c++ not found]))
AC_CONFIG_FILES([bin/dbus/Makefile]) 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])]) [AC_MSG_ERROR([dbusxx-xml2cpp not found])])
AM_CONDITIONAL(RING_DBUS, true)], AM_CONDITIONAL(RING_DBUS, true)],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment