From 36c75600efc5b12b63538381e2637316874f2fe1 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 5 May 2009 12:59:46 +0200 Subject: [PATCH] Generate PAZPAR2_VERSION_SHA1 (Git SHA1 ID). --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.ac b/configure.ac index 0eb1621..e17d571 100644 --- a/configure.ac +++ b/configure.ac @@ -27,6 +27,14 @@ YAZ_DOC AC_CHECK_HEADERS([sys/time.h sys/socket.h unistd.h netinet/in.h netdb.h arpa/inet.h]) AC_CHECK_FUNCS([getaddrinfo]) + +if test -d ${srcdir}/.git; then + sha=`git show --pretty=format:%H|head -1` +else + sha=`head -1 ${srcdir}/ChangeLog|awk '{print $2}'` +fi +AC_DEFINE_UNQUOTED([PAZPAR2_VERSION_SHA1], ["$sha"], [Git SHA1]) + AC_CONFIG_FILES([ Doxyfile Makefile -- 1.7.10.4