Skip to contentSkip to conversation

Autoconf: add variable for pass arbitrary options to qemu upstream

PATCH Fabio Fantoni 2 participants 5 messages Mar 20, 2012 – Apr 4, 2012

lore
Share & tools
lore
#0 lore raw

Autoconf: add variable for pass arbitrary options to qemu upstream

Patch attached.

# HG changeset patch
# User Fabio Fantoni
# Date 1332248229 -3600
# Node ID c86e026b8fa205f5d6345924b830e98bad91870f
# Parent 4e1d091d10d83130842170cd61f1194e5459f2aa
autoconf: add variable for pass arbitrary options to qemu upstream

config/Tools.mk.in +1 -0
diff -r 4e1d091d10d8 -r c86e026b8fa2 config/Tools.mk.in
@@ -45,3 +45,4 @@
 CONFIG_GCRYPT       := @libgcrypt@
 CONFIG_EXT2FS       := @libext2fs@
 CURSES_LIBS         := @CURSES_LIBS@
+CONFIG_QEMUU_ADD_PAR:= @QEMUU_ADD_PAR@
tools/Makefile +1 -0
diff -r 4e1d091d10d8 -r c86e026b8fa2 tools/Makefile
@@ -156,6 +156,7 @@
 		--bindir=$(LIBEXEC) \
 		--disable-kvm \
 		--python=$(PYTHON) \
+		$(CONFIG_QEMUU_ADD_PAR) \
 		$(IOEMU_CONFIGURE_CROSS); \
 	$(MAKE) install
 
tools/configure +306 -281

1,805 lines not on this page · raw message

tools/configure.ac +1 -0
diff -r 4e1d091d10d8 -r c86e026b8fa2 tools/configure.ac
@@ -66,6 +66,7 @@
 AC_ARG_VAR([XML], [Path to xml2-config tool])
 AC_ARG_VAR([BASH], [Path to bash shell])
 AC_ARG_VAR([XGETTEXT], [Path to xgetttext tool])
+AC_ARG_VAR([QEMUU_ADD_PAR], [List of qemu upstream additionals build parameters])
 
 # Checks for programs.
 AC_PROG_SED

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#1 lore raw

Fabio Fantoni writes ("[Xen-devel] Autoconf: add variable for pass arbitrary options to qemu upstream"):

tools/configure.ac line 69

Quoted 9 lines

Autoconf: add variable for pass arbitrary options to qemu upstream diff -r 4e1d091d10d8 -r c86e026b8fa2 tools/configure.ac

tools/configure.ac +1 -0
@@ -66,6 +66,7 @@
 AC_ARG_VAR([XML], [Path to xml2-config tool])
 AC_ARG_VAR([BASH], [Path to bash shell])
 AC_ARG_VAR([XGETTEXT], [Path to xgetttext tool])
+AC_ARG_VAR([QEMUU_ADD_PAR], [List of qemu upstream additionals build parameters])

Wouldn't this be better done with AC_ARG_ENABLE rather than some magic environment variable ?

Ian.

#3 lore raw

Fantu writes ("Re: [Xen-devel] Autoconf: add variable for pass arbitrary options to qemu upstream"):

Quoted 2 lines

already done in past but change for your reply:
http://xen.1045712.n5.nabble.com/PATCH-v3-Added-optional-build-configs-for-qemu-upstream-td5544305.html

Your quoting of context is really deficient and makes it hard to see what you're talking about.

AFAICT this is a response to me saying:
] Wouldn't this be better done with AC_ARG_ENABLE rather than some magic ] environment variable ?

The earlier version you refer to introduced one corresponding AC_ARG_ENABLE for each upstream qemu configure script option.

I think the right thing to do is to have one single AC_ARG_ENABLE option that contains all the intended extra options for the qemu configure script.

Ian.