summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJason Gerecke <killertofu@gmail.com>2017-12-07 14:20:59 -0800
committerJason Gerecke <killertofu@gmail.com>2017-12-15 11:02:53 -0800
commit7d6bded43bab93f8cc882c4e8b0fdc834e44208e (patch)
tree66572b51300177ae84e78120d9e69aab6b187958 /configure.ac
parent061519df07f23f96b5211ba71a851bb626881fb4 (diff)
downloadxf86-input-wacom-7d6bded43bab93f8cc882c4e8b0fdc834e44208e.tar.gz
Use git-version-gen for build-time version strings
Currently the driver uses macros like PACKAGE_VERSION whenever it needs to print out a version string. These macros are only updated whenever the autoconf.sh script is run, however. As a practical result, this means that the version information which is built into development versions of the driver is often inaccurate. To fix this, we define a new BUILD_VERSION macro which is updated whenever git reports a changed version number. In addition to having `xsetwacom -V` report the precise build, we also have the X log print out the build number to augment the MAJOR/MINOR/PATCH data that is normally printed. Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 906b9d7..b17cbe0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,6 +29,7 @@ AC_INIT([xf86-input-wacom],
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([Makefile.am])
AC_CONFIG_HEADERS([config.h])
+AH_BOTTOM([#include "config-ver.h"])
# Initialize Automake
AM_INIT_AUTOMAKE([foreign dist-bzip2 no-dist-gzip])