add git commit version if applicable

This commit is contained in:
Sarah Hoffmann 2012-06-26 22:55:08 +02:00
parent 80750c0a54
commit 6493efa073

View File

@ -1,4 +1,7 @@
AC_INIT(Nominatim,1.9.9) AC_INIT(Nominatim,1.9)
if git rev-parse HEAD 2>/dev/null >/dev/null; then
AC_SUBST([PACKAGE_VERSION], [$PACKAGE_VERSION-git-`git rev-parse --short HEAD`])
fi
dnl Required autoconf version dnl Required autoconf version
AC_PREREQ(2.61) AC_PREREQ(2.61)