From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoXvW-00060E-GV for qemu-devel@nongnu.org; Tue, 10 Jul 2012 06:44:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SoXvQ-0002XG-EY for qemu-devel@nongnu.org; Tue, 10 Jul 2012 06:44:18 -0400 Received: from mel.act-europe.fr ([194.98.77.210]:54083) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoXvQ-0002TW-6B for qemu-devel@nongnu.org; Tue, 10 Jul 2012 06:44:12 -0400 From: Fabien Chouteau Date: Tue, 10 Jul 2012 12:43:39 +0200 Message-Id: <1341917019-23224-1-git-send-email-chouteau@adacore.com> Subject: [Qemu-devel] [PATCH] Add --disable-bridge-helper configure flag List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori , Stefan Hajnoczi , Stefan Weil , coreyb@linux.vnet.ibm.com, Michael Roth , Luiz Capitulino , Blue Swirl , Paolo Bonzini , =?UTF-8?q?Andreas=20F=C3=A4rber?= Bridge helper uses ioctl's not available on old Linux versions, we add this flag to disable the build. Signed-off-by: Fabien Chouteau --- Makefile | 2 +- configure | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 34d6a9e..b46c6b0 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,7 @@ $(call set-vpath, $(SRC_PATH)) LIBS+=-lz $(LIBS_TOOLS) -HELPERS-$(CONFIG_LINUX) = qemu-bridge-helper$(EXESUF) +HELPERS-$(CONFIG_HELPERS) = qemu-bridge-helper$(EXESUF) ifdef BUILD_DOCS DOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 qemu-nbd.8 QMP/qmp-commands.txt diff --git a/configure b/configure index 500fe24..5566752 100755 --- a/configure +++ b/configure @@ -195,6 +195,7 @@ zlib="yes" guest_agent="yes" libiscsi="" coroutine="" +bridge_helper="yes" # parse CC options first for opt do @@ -824,6 +825,8 @@ for opt do ;; --disable-guest-agent) guest_agent="no" ;; + --disable-bridge-helper) bridge_helper="no" + ;; *) echo "ERROR: unknown option $opt"; show_help="yes" ;; esac @@ -1110,6 +1113,7 @@ echo " --disable-guest-agent disable building of the QEMU Guest Agent" echo " --enable-guest-agent enable building of the QEMU Guest Agent" echo " --with-coroutine=BACKEND coroutine backend. Supported options:" echo " gthread, ucontext, sigaltstack, windows" +echo " --disable-bridge-helper disable building of the qemu-bridge-helper" echo "" echo "NOTE: The object files are built at the place where configure is launched" exit 1 @@ -3896,6 +3900,10 @@ if test "$tcg_interpreter" = "yes" ; then echo "CONFIG_TCI_DIS=y" >> $libdis_config_mak fi +if test "$bridge_helper" = "yes" && test "$linux" = "yes" ; then + echo "CONFIG_HELPERS=y" >> $config_host_mak +fi + case "$ARCH" in alpha) # Ensure there's only a single GP -- 1.7.9.5