From d0cafa2d67b4765450deb5781b08f4241d9c4d3a Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@fe.uni-lj.si>
Date: Tue, 16 Feb 2016 14:59:04 +0000
Subject: [PATCH] changed the automake script

---
 configure.ac |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 4a01fa5..d2acada 100644
--- a/configure.ac
+++ b/configure.ac
@@ -41,6 +41,13 @@
 AC_MSG_RESULT(no)
 fi
 
+#detect commit version and date
+#-                   ["Trisurf $VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"],
+#                   ["Trisurf (commit `cd $srcdir && git log -1 --format=format:%h`) on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"],
+AC_DEFINE_UNQUOTED(TS_VERSION,
+                    ["Trisurf (commit `git describe  --abbrev=6 --dirty --always --tags`) on `hostname`."],
+                    [A string containing the version number])
+
 # Checks for library functions.
 AC_FUNC_MALLOC
 AC_FUNC_REALLOC

--
Gitblit v1.9.3