From a3f6b73f3f829a7abf3faa0e5e96d95200179529 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Sun, 15 May 2016 19:20:59 +0000
Subject: [PATCH] Added function that finds trisurf version from its executable output string. It can be used for outputting info

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

diff --git a/configure.ac b/configure.ac
index 3d3e095..f43881a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,6 +19,7 @@
 AC_CHECK_LIB([gsl],[gsl_blas_dgemm])
 #AC_CHECK_LIB([xml2],[xmlNodeListGetString])
 PKG_CHECK_MODULES([libxml2], [libxml-2.0])
+AC_CHECK_LIB([z],[deflate])
 
 # Checks for header files.
 AC_CHECK_HEADERS([stdlib.h string.h])
@@ -40,6 +41,10 @@
 AC_MSG_RESULT(no)
 fi
 
+#AC_DEFINE_UNQUOTED(TS_VERSION,
+#                    ["Trisurf (commit `git describe  --abbrev=6 --dirty --always --tags`) build on `date` @`hostname`."],
+#                    [A string containing the version number])
+
 # Checks for library functions.
 AC_FUNC_MALLOC
 AC_FUNC_REALLOC

--
Gitblit v1.9.3