]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[137-improve-kea-compilation-time-2] Second try 137-improve-kea-compilation-time-2
authorFrancis Dupont <fdupont@isc.org>
Tue, 25 Sep 2018 22:21:37 +0000 (00:21 +0200)
committerFrancis Dupont <fdupont@isc.org>
Wed, 26 Sep 2018 16:20:10 +0000 (12:20 -0400)
configure.ac
kea_version.h.in [new file with mode: 0644]

index 6cc5a1e6d09cc45779ea58b25c74da839f22894a..611830cf594c03aa43308ef8e03dc74ff5f2996f 100644 (file)
@@ -47,7 +47,8 @@ fi
 # horribly. When building different branches, the commit-id is different
 # and since the config.h is included in most files *and* has a different
 # content, ccache can't use cached content and thus has to do full compilation.
-echo "#define EXTENDED_VERSION \"${KEA_SRCID}\"" > kea_version.h
+# Now it is in kea_version.h and config.status substitutes it.
+AC_SUBST(KEA_SRCID)
 
 # Find a separator for path_replacer
 for sep in "+" "," ";" "&" "__NONE__"; do
@@ -1463,6 +1464,7 @@ AC_CONFIG_FILES([Makefile
                  doc/version.ent
                  ext/Makefile
                  ext/gtest/Makefile
+                 kea_version.h
                  m4macros/Makefile
                  src/Makefile
                  src/bin/Makefile
diff --git a/kea_version.h.in b/kea_version.h.in
new file mode 100644 (file)
index 0000000..67da352
--- /dev/null
@@ -0,0 +1 @@
+#define EXTENDED_VERSION "@KEA_SRCID@"