From 8b0ec931b131fe18329bccac1b9e26c31a3129b3 Mon Sep 17 00:00:00 2001 From: Vittorio Giovara <vittorio.giovara@savoirfairelinux.com> Date: Tue, 29 Apr 2014 17:17:39 -0400 Subject: [PATCH] daemon: prevent compiling dbus when clang is used Change-Id: I8118635b55de2367d1990bbdeeb17159ff7a742c Refs: #46066 --- daemon/configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/daemon/configure.ac b/daemon/configure.ac index 89a79d7ad4..a94b656081 100644 --- a/daemon/configure.ac +++ b/daemon/configure.ac @@ -240,7 +240,10 @@ AS_IF([test "x$with_dbus" = "xyes"], [ PKG_CHECK_MODULES(DBUSCPP, dbus-c++-1,, AC_MSG_WARN([Missing dbus development files])) AC_CONFIG_FILES([src/client/dbus/Makefile \ doc/dbus-api/Makefile]) - ]); + AS_IF([test "x$CLANG" = "xyes"], [ + AC_MSG_ERROR([dbus does not compile when clang is used, rerun with --without-dbus]) + ]); +]); AC_DEFINE_UNQUOTED([HAVE_DBUS], `if test "x$with_dbus" = "xyes"; then echo 1; else echo 0; fi`, [Define if you have dbus support]) AM_CONDITIONAL(USE_DBUS, test "x$with_dbus" = "xyes" ) -- GitLab