summaryrefslogtreecommitdiffstats
path: root/src/kernel/tests/include
diff options
context:
space:
mode:
authorManuel Bentele2020-10-26 11:20:41 +0100
committerManuel Bentele2020-10-26 11:20:41 +0100
commitc8dd5f0375992654814451591e97c0bab937f1a9 (patch)
tree1537f15de8e12fda482d49be2e78fedfbd3f9696 /src/kernel/tests/include
parentAdd automatic generation of version and build type headers for compilation (diff)
downloadxloop-c8dd5f0375992654814451591e97c0bab937f1a9.tar.gz
xloop-c8dd5f0375992654814451591e97c0bab937f1a9.tar.xz
xloop-c8dd5f0375992654814451591e97c0bab937f1a9.zip
Remove static generation of LTP configuration header
This patch removes the static generation of the LTP configuration header done by CMake. The static generation is replaced with a fixed header (no CMake template anymore) which includes the dynamic generated xloop version header to define version number macros for LTP.
Diffstat (limited to 'src/kernel/tests/include')
-rw-r--r--src/kernel/tests/include/config.h (renamed from src/kernel/tests/include/config.h.in)8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/kernel/tests/include/config.h.in b/src/kernel/tests/include/config.h
index 2d59b1c..3839234 100644
--- a/src/kernel/tests/include/config.h.in
+++ b/src/kernel/tests/include/config.h
@@ -1,6 +1,8 @@
/* include/config.h. Generated from config.h.in by configure. */
/* include/config.h.in. Generated from configure.ac by autoheader. */
+#include <xloop/version.h>
+
/* Define to 1 if clone() supports 7 arguments. */
#define CLONE_SUPPORTS_7_ARGS 1
@@ -566,7 +568,7 @@
#define PACKAGE_NAME "ltp"
/* Define to the full name and version of this package. */
-#define PACKAGE_STRING "ltp @VERSION@"
+#define PACKAGE_STRING ("ltp " XLOOP_VERSION)
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "ltp"
@@ -575,7 +577,7 @@
#define PACKAGE_URL ""
/* Define to the version of this package. */
-#define PACKAGE_VERSION "@VERSION@"
+#define PACKAGE_VERSION XLOOP_VERSION
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
@@ -584,7 +586,7 @@
/* #undef UCLINUX */
/* Version number of package */
-#define VERSION "@VERSION@"
+#define VERSION XLOOP_VERSION
/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
`char[]'. */