From 11fef8d1bbe449016584c061ddb2b302ee1ee593 Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@fe.uni-lj.si> Date: Tue, 16 Feb 2016 15:08:34 +0000 Subject: [PATCH] Added trisurf build date --- configure.ac | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/configure.ac b/configure.ac index 3d3e095..63fe5b4 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,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`) build on `date` @`hostname`."], + [A string containing the version number]) + # Checks for library functions. AC_FUNC_MALLOC AC_FUNC_REALLOC -- Gitblit v1.9.3