Index: src/Makefile.in
===================================================================
--- src/Makefile.in	(revision 1b299967c6b00690fea8f261aa12be0524f73546)
+++ src/Makefile.in	(revision 47a8d178de8d1c55043270cb9cc2b5a0ee3600ea)
@@ -266,4 +266,5 @@
 CFA_PREFIX = @CFA_PREFIX@
 CFLAGS = @CFLAGS@
+CONFIG_STATUS_DEPENDENCIES = @CONFIG_STATUS_DEPENDENCIES@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
Index: src/driver/Makefile.am
===================================================================
--- src/driver/Makefile.am	(revision 1b299967c6b00690fea8f261aa12be0524f73546)
+++ src/driver/Makefile.am	(revision 47a8d178de8d1c55043270cb9cc2b5a0ee3600ea)
@@ -6,5 +6,5 @@
 ## file "LICENCE" distributed with Cforall.
 ##
-## Makefile.am -- 
+## Makefile.am --
 ##
 ## Author           : Peter A. Buhr
@@ -26,3 +26,6 @@
 cc1_SOURCES = cc1.cc
 
+cfa.cc : ${abs_top_srcdir}/version
+	@true
+
 MAINTAINERCLEANFILES = @CFA_PREFIX@/bin/${bin_PROGRAMS} @CFA_PREFIX@/lib/${cc1lib_PROGRAMS}
Index: src/driver/Makefile.in
===================================================================
--- src/driver/Makefile.in	(revision 1b299967c6b00690fea8f261aa12be0524f73546)
+++ src/driver/Makefile.in	(revision 47a8d178de8d1c55043270cb9cc2b5a0ee3600ea)
@@ -100,4 +100,5 @@
 CFA_PREFIX = @CFA_PREFIX@
 CFLAGS = @CFLAGS@
+CONFIG_STATUS_DEPENDENCIES = @CONFIG_STATUS_DEPENDENCIES@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
@@ -542,4 +543,7 @@
 
 
+cfa.cc : ${abs_top_srcdir}/version
+	@true
+
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
Index: src/driver/cfa.cc
===================================================================
--- src/driver/cfa.cc	(revision 1b299967c6b00690fea8f261aa12be0524f73546)
+++ src/driver/cfa.cc	(revision 47a8d178de8d1c55043270cb9cc2b5a0ee3600ea)
@@ -25,4 +25,5 @@
 using std::endl;
 using std::string;
+using std::to_string;
 
 
@@ -50,6 +51,6 @@
 
 int main( int argc, char *argv[] ) {
-	string Version( VERSION );							// current version number from CONFIG
-	string Major( CFA_VERSION_MAJOR ), Minor( CFA_VERSION_MINOR ), Patch( CFA_VERSION_MINOR );
+	string Version( CFA_VERSION_LONG );							// current version number from CONFIG
+	string Major( to_string( CFA_VERSION_MAJOR ) ), Minor( to_string( CFA_VERSION_MINOR ) ), Patch( to_string( CFA_VERSION_PATCH ) );
 
 	string installincdir( CFA_INCDIR );					// fixed location of include files
Index: src/examples/Makefile.in
===================================================================
--- src/examples/Makefile.in	(revision 1b299967c6b00690fea8f261aa12be0524f73546)
+++ src/examples/Makefile.in	(revision 47a8d178de8d1c55043270cb9cc2b5a0ee3600ea)
@@ -111,4 +111,5 @@
 # applies to both programs
 CFLAGS = -g -Wall -Wno-unused-function # TEMPORARY: does not build with -O2
+CONFIG_STATUS_DEPENDENCIES = @CONFIG_STATUS_DEPENDENCIES@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
Index: src/libcfa/Makefile.in
===================================================================
--- src/libcfa/Makefile.in	(revision 1b299967c6b00690fea8f261aa12be0524f73546)
+++ src/libcfa/Makefile.in	(revision 47a8d178de8d1c55043270cb9cc2b5a0ee3600ea)
@@ -137,4 +137,5 @@
 CFA_PREFIX = @CFA_PREFIX@
 CFLAGS = -quiet -no-include-stdhdr -g -Wall -Wno-unused-function @CFA_FLAGS@ -B${abs_top_srcdir}/src/driver -XCFA -t # TEMPORARY: does not build with -O2
+CONFIG_STATUS_DEPENDENCIES = @CONFIG_STATUS_DEPENDENCIES@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
Index: src/tests/Makefile.in
===================================================================
--- src/tests/Makefile.in	(revision 1b299967c6b00690fea8f261aa12be0524f73546)
+++ src/tests/Makefile.in	(revision 47a8d178de8d1c55043270cb9cc2b5a0ee3600ea)
@@ -121,4 +121,5 @@
 # applies to both programs
 CFLAGS = -g -Wall -Wno-unused-function @CFA_FLAGS@ # TEMPORARY: does not build with -O2
+CONFIG_STATUS_DEPENDENCIES = @CONFIG_STATUS_DEPENDENCIES@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
