From 82a73df97ffc5e9a937bfe3530cceee4f3ea6441 Mon Sep 17 00:00:00 2001 From: Uri Lublin Date: Sun, 3 Jan 2010 19:31:29 +0200 Subject: spice: configure.ac.shared: add PATCHID and DISTRIBUTION variables (subdir config) Define them with ./configure PATCHID=id DISTRIBUTION=dist They appear in config.h Add them to your version-printing function. Signed-off-by: Uri Lublin --- configure.ac.shared | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/configure.ac.shared b/configure.ac.shared index 52b71673..c55a4660 100644 --- a/configure.ac.shared +++ b/configure.ac.shared @@ -181,6 +181,18 @@ if test "x$use_spice_common" != "xno"; then SPICE_COMMON_SRCDIR=$(pkg-config --variable=common_src_dir spice-common) fi + +# +# patchid and distribution -- better identify the release +# +AC_ARG_VAR(PATCHID, [identify release by last patch id]) +AH_TEMPLATE(PATCHID, [identify release by last patch id]) +AC_DEFINE_UNQUOTED(PATCHID, ["$ac_env_PATCHID_value"]) + +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"]) + dnl =========================================================================== dnl check compiler flags -- cgit