From: Avi Kivity <[email protected]>

This allows the packager to add a KVM_VERSION file to the tarball instead
of modifying the source.

Signed-off-by: Avi Kivity <[email protected]>

diff --git a/configure b/configure
index a9a6756..f16daea 100755
--- a/configure
+++ b/configure
@@ -152,6 +152,17 @@ case "$cpu" in
     cpu="unknown"
   ;;
 esac
+
+kvm_version() {
+    local fname="$(dirname "$0")/KVM_VERSION"
+
+    if test -f "$fname"; then
+        cat "$fname"
+    else
+        echo "kvm-devel"
+    fi
+}
+
 gprof="no"
 debug_tcg="no"
 sparse="no"
@@ -194,7 +205,7 @@ blobs="yes"
 fdt="yes"
 sdl_x11="no"
 xen="yes"
-pkgversion=" (kvm-devel)"
+pkgversion=" ($(kvm_version))"
 signalfd="no"
 eventfd="no"
 cpu_emulation="yes"
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to