aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-07 23:17:49 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-07 23:17:49 +0000
commit4a19f1eced611e7c3a0fba07d13515cbc73da09f (patch)
tree40e79c74b9558601e8e563ae109ae55c468bb784 /configure
parent9bd7e6d90d2cc6e3ca20fd9819550af7b6e9cbe1 (diff)
Add --with-pkgversion.
Allows distributors to identify their builds without needing to hack the sources. Signed-off-by: Paul Brook <paul@codesourcery.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7036 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure b/configure
index 853541d591..0ea24c20b3 100755
--- a/configure
+++ b/configure
@@ -190,6 +190,7 @@ aix="no"
blobs="yes"
fdt="yes"
sdl_x11="no"
+pkgversion=""
# OS specific
if check_define __linux__ ; then
@@ -470,6 +471,8 @@ for opt do
;;
--kerneldir=*) kerneldir="$optarg"
;;
+ --with-pkgversion=*) pkgversion=" ($optarg)"
+ ;;
*) echo "ERROR: unknown option $opt"; show_help="yes"
;;
esac
@@ -1479,6 +1482,8 @@ qemu_version=`head $source_path/VERSION`
echo "VERSION=$qemu_version" >>$config_mak
echo "#define QEMU_VERSION \"$qemu_version\"" >> $config_h
+echo "#define QEMU_PKGVERSION \"$pkgversion\"" >> $config_h
+
echo "SRC_PATH=$source_path" >> $config_mak
if [ "$source_path_used" = "yes" ]; then
echo "VPATH=$source_path" >> $config_mak