summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUri Lublin <uril@redhat.com>2010-01-10 23:11:46 +0200
committerYaniv Kamay <ykamay@redhat.com>2010-01-10 23:28:42 +0200
commitea8fce17e28809ec393ca2a5b566692a725069d9 (patch)
treeb6d09db08d650b08de3ae94a19ae7613ec6f3eff
parenta3110544226606e6fde79ef61f59ca82a8303ef4 (diff)
downloadspice-ea8fce17e28809ec393ca2a5b566692a725069d9.tar.gz
spice-ea8fce17e28809ec393ca2a5b566692a725069d9.tar.xz
spice-ea8fce17e28809ec393ca2a5b566692a725069d9.zip
spice: config: Add DISTRIBUTION and PATCHID to configure summary
Signed-off-by: Uri Lublin <uril@redhat.com>
-rw-r--r--client/configure.ac2
-rw-r--r--configure.ac.shared8
-rw-r--r--server/configure.ac2
3 files changed, 10 insertions, 2 deletions
diff --git a/client/configure.ac b/client/configure.ac
index f6e91168..32657dd3 100644
--- a/client/configure.ac
+++ b/client/configure.ac
@@ -63,7 +63,7 @@ AC_OUTPUT
dnl ==========================================================================
echo "
- Spice Client $VERSION
+ Spice Client $full_version
==============
prefix: ${prefix}
diff --git a/configure.ac.shared b/configure.ac.shared
index c55a4660..8c686c1b 100644
--- a/configure.ac.shared
+++ b/configure.ac.shared
@@ -193,6 +193,14 @@ AC_ARG_VAR(DISTRIBUTION, [identify release by last distribution])
AH_TEMPLATE(DISTRIBUTION, [identify release by last distribution])
AC_DEFINE_UNQUOTED(DISTRIBUTION, ["$ac_env_DISTRIBUTION_value"])
+if test -n "${DISTRIBUTION}"; then
+ dist=".${DISTRIBUTION}"
+fi
+if test -n "${PATCHID}"; then
+ patchid="-${PATCHID}"
+fi
+full_version="${VERSION}${patchid}${dist}"
+
dnl ===========================================================================
dnl check compiler flags
diff --git a/server/configure.ac b/server/configure.ac
index e078816e..b7eeffb5 100644
--- a/server/configure.ac
+++ b/server/configure.ac
@@ -38,7 +38,7 @@ AC_OUTPUT
dnl ==========================================================================
echo "
- Spice Server $VERSION
+ Spice Server $full_version
==============
prefix: ${prefix}