diff options
-rw-r--r-- | src/Make.config.in | 4 | ||||
-rw-r--r-- | src/configure.ac | 2 | ||||
-rw-r--r-- | src/iemmatrix.h | 7 |
3 files changed, 7 insertions, 6 deletions
diff --git a/src/Make.config.in b/src/Make.config.in index ee81806..6105c9c 100644 --- a/src/Make.config.in +++ b/src/Make.config.in @@ -1,5 +1,5 @@ -LIBRARY_NAME=@LIBRARY_NAME@ -TARNAME = $(LIBRARY_NAME)-@LIBRARY_VERSION@.tgz +LIBRARY_NAME=@PACKAGE_NAME@ +TARNAME = $(LIBRARY_NAME)-@PACKAGE_VERSION@.tgz # when build as a library this holds a pre-processor define # (e.g. "-DZEXY_LIBRARY") diff --git a/src/configure.ac b/src/configure.ac index da3bd0c..e5bdfd2 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -4,8 +4,6 @@ AC_INIT([iemmatrix],[0.2],[zmoelnig@iem.at]) AC_CONFIG_HEADER(config.h) DFLAGS="${DFLAGS} -DHAVE_CONFIG_H" - - dnl Checks for programs. AC_PROG_CC diff --git a/src/iemmatrix.h b/src/iemmatrix.h index 5021ed0..d03b611 100644 --- a/src/iemmatrix.h +++ b/src/iemmatrix.h @@ -58,8 +58,11 @@ # include "config.h" #endif /* HAVE_CONFIG_H */ -#define VERSION "0.1" - +#ifdef PACKAGE_VERSION +# define VERSION PACKAGE_VERSION +#else +# define VERSION "(unknown)" +#endif #include <math.h> #include <stdio.h> |