[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 2/2] Update configure scripts by calling autogen



I run ./autogen.sh and committed the result.

Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
---
 tools/config.h.in |    6 ++--
 tools/configure   |   81 +++++++++++++++++++++++++++++------------------------
 2 files changed, 47 insertions(+), 40 deletions(-)

diff --git a/tools/config.h.in b/tools/config.h.in
index 2a0ae48..29b7163 100644
--- a/tools/config.h.in
+++ b/tools/config.h.in
@@ -24,9 +24,6 @@
 /* Define to 1 if you have the <memory.h> header file. */
 #undef HAVE_MEMORY_H
 
-/* Qemu traditional enabled */
-#undef HAVE_QEMU_TRADITIONAL
-
 /* ROMBIOS enabled */
 #undef HAVE_ROMBIOS
 
@@ -93,6 +90,9 @@
 /* Define to the version of this package. */
 #undef PACKAGE_VERSION
 
+/* Qemu Traditional Xen path */
+#undef QEMU_TRADITIONAL_PATH
+
 /* Qemu Xen path */
 #undef QEMU_XEN_PATH
 
diff --git a/tools/configure b/tools/configure
index a752acd..a8a7f50 100755
--- a/tools/configure
+++ b/tools/configure
@@ -699,8 +699,8 @@ EXTRA_QEMUU_CONFIGURE_ARGS
 ovmf_path
 seabios_path
 qemu_xen
-rombios
 qemu_traditional
+rombios
 blktap2
 LINUX_BACKEND_MODULES
 debug
@@ -795,8 +795,8 @@ enable_seabios
 enable_debug
 with_linux_backend_modules
 enable_blktap2
-enable_qemu_traditional
 enable_rombios
+with_system_qemu_traditional
 with_system_qemu
 with_system_seabios
 with_system_ovmf
@@ -1469,9 +1469,6 @@ Optional Features:
   --disable-debug         Disable debug build of tools (default is ENABLED)
   --enable-blktap2        Enable blktap2, (DEFAULT is on for Linux, otherwise
                           off)
-  --enable-qemu-traditional
-                          Enable qemu traditional device model, (DEFAULT is on
-                          for Linux or NetBSD x86, otherwise off)
   --enable-rombios        Enable ROMBIOS, (DEFAULT is on if qemu-traditional
                           is enabled, otherwise off)
   --enable-systemd        Enable systemd support (default is DISABLED)
@@ -1489,6 +1486,10 @@ Optional Packages:
   --with-linux-backend-modules="mod1 mod2"
                           List of Linux backend module or modalias names to be
                           autoloaded on startup.
+  --with-system-qemu-traditional[=PATH]
+                          Use system supplied qemu-traditional PATH or qemu-dm
+                          (taken from $PATH) as qemu-traditional device model
+                          instead of building and installing our own version
   --with-system-qemu[=PATH]
                           Use system supplied qemu PATH or qemu (taken from
                           $PATH) as qemu-xen device model instead of building
@@ -4064,38 +4065,6 @@ else
 fi
 
 
-
-# Check whether --enable-qemu-traditional was given.
-if test "${enable_qemu_traditional+set}" = set; then :
-  enableval=$enable_qemu_traditional;
-else
-
-    case "$host_cpu" in
-        i[3456]86|x86_64)
-           enable_qemu_traditional="yes";;
-        *) enable_qemu_traditional="no";;
-    esac
-    case "$host_os" in
-        freebsd*)
-           enable_qemu_traditional="no";;
-    esac
-
-
-fi
-
-if test "x$enable_qemu_traditional" = "xyes"; then :
-
-
-$as_echo "#define HAVE_QEMU_TRADITIONAL 1" >>confdefs.h
-
-    qemu_traditional=y
-else
-
-    qemu_traditional=n
-
-fi
-
-
 # Check whether --enable-rombios was given.
 if test "${enable_rombios+set}" = set; then :
   enableval=$enable_rombios;
@@ -4127,6 +4096,44 @@ fi
 
 
 
+# Check whether --with-system-qemu-traditional was given.
+if test "${with_system_qemu_traditional+set}" = set; then :
+  withval=$with_system_qemu_traditional;
+    case $withval in
+    yes) qemu_traditional=n ; qemu_traditional_path=qemu-dm ;;
+    no)  qemu_traditional=y ; qemu_traditional_path= ;;
+    *)   qemu_traditional=n ; qemu_traditional_path=$withval ;;
+    esac
+
+else
+
+    case "$host_cpu" in
+        i[3456]86|x86_64)
+           qemu_traditional=y
+           qemu_traditional_path=;;
+        *) qemu_traditional=n
+           qemu_traditional_path=qemu-dm;;
+    esac
+    case "$host_os" in
+        freebsd*)
+           qemu_traditional=n
+           qemu_traditional_path=qemu-dm;;
+    esac
+
+fi
+
+if test "x$qemu_traditional" = "xn"; then :
+
+
+cat >>confdefs.h <<_ACEOF
+#define QEMU_TRADITIONAL_PATH "$qemu_traditional_path"
+_ACEOF
+
+
+fi
+
+
+
 # Check whether --with-system-qemu was given.
 if test "${with_system_qemu+set}" = set; then :
   withval=$with_system_qemu;
-- 
1.7.10.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.