From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:55731) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvBTZ-0002Yy-UF for qemu-devel@nongnu.org; Wed, 08 Feb 2012 12:38:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RvBTU-00012F-1Z for qemu-devel@nongnu.org; Wed, 08 Feb 2012 12:38:37 -0500 Received: from mail-pw0-f45.google.com ([209.85.160.45]:42886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvBTT-000125-Rw for qemu-devel@nongnu.org; Wed, 08 Feb 2012 12:38:32 -0500 Received: by pbbro12 with SMTP id ro12so884864pbb.4 for ; Wed, 08 Feb 2012 09:38:30 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Wed, 8 Feb 2012 18:37:35 +0100 Message-Id: <1328722656-22856-5-git-send-email-pbonzini@redhat.com> In-Reply-To: <1328722656-22856-1-git-send-email-pbonzini@redhat.com> References: <1328722656-22856-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 4/5] configure: probe for dbus List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: amit.shah@redhat.com, armbru@redhat.com Signed-off-by: Paolo Bonzini --- configure | 39 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 39 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 763db24..0f305cb 100755 --- a/configure +++ b/configure @@ -119,6 +119,7 @@ curl="" curses="" docs="" fdt="" +dbus="" nptl="" sdl="" vnc="yes" @@ -510,6 +511,7 @@ if test "$mingw32" = "yes" ; then sysconfdir="\${prefix}" confsuffix="" guest_agent="no" + dbus="no" fi werror="" @@ -623,6 +625,10 @@ for opt do ;; --disable-strip) strip_opt="no" ;; + --disable-dbus) dbus="no" + ;; + --enable-dbus) dbus="yes" + ;; --disable-vnc-tls) vnc_tls="no" ;; --enable-vnc-tls) vnc_tls="yes" @@ -1007,6 +1013,8 @@ echo " --disable-xen disable xen backend driver support" echo " --enable-xen enable xen backend driver support" echo " --disable-brlapi disable BrlAPI" echo " --enable-brlapi enable BrlAPI" +echo " --disable-dbus disable dbus interaction" +echo " --enable-dbus enable dbus interaction" echo " --disable-vnc-tls disable TLS encryption for VNC server" echo " --enable-vnc-tls enable TLS encryption for VNC server" echo " --disable-vnc-sasl disable SASL encryption for VNC server" @@ -1987,6 +1995,32 @@ else fi ########################################## +# dbus detection +if test "$dbus" != "no" ; then + cat > $TMPC < +#include +#include +#include +int main(void) { DBusGConnection *bus = dbus_g_bus_get (DBUS_BUS_SYSTEM, NULL); +dbus_g_connection_unref(bus); return 0; } +EOF + dbus_cflags=`$pkg_config --cflags gobject-2.0 dbus-glib-1 2> /dev/null` + dbus_libs=`$pkg_config --libs gobject-2.0 dbus-glib-1 2> /dev/null` + if compile_prog "$glib_cflags $dbus_cflags" "$glib_libs $dbus_libs" ; then + dbus=yes + QEMU_CFLAGS="$QEMU_CFLAGS $dbus_cflags" + libs_softmmu="$dbus_libs $libs_softmmu" + libs_tools="$dbus_libs $libs_tools" + else + if test "$dbus" = "yes" ; then + feature_not_found "dbus" + fi + dbus=no + fi +fi + +########################################## # libcap probe if test "$cap" != "no" ; then @@ -2874,6 +2908,7 @@ echo "Audio drivers $audio_drv_list" echo "Extra audio cards $audio_card_list" echo "Block whitelist $block_drv_whitelist" echo "Mixer emulation $mixemu" +echo "DBus support $dbus" echo "VNC support $vnc" if test "$vnc" = "yes" ; then echo "VNC TLS support $vnc_tls" @@ -3219,6 +3254,10 @@ if test "$opengl" = "yes" ; then echo "CONFIG_OPENGL=y" >> $config_host_mak fi +if test "$dbus" = "yes" ; then + echo "CONFIG_DBUS=y" >> $config_host_mak +fi + if test "$libiscsi" = "yes" ; then echo "CONFIG_LIBISCSI=y" >> $config_host_mak fi -- 1.7.7.6