[PATCH] configure: Ensure we always have a numerical revision level

Jan Kiszka <[email protected]>
Newsgroups dev.linux.lists.xenomai
Message-ID <[email protected]>
From: Jan Kiszka <[email protected]>

For major releases or on the development branches, we do not have a
revision level in version-core. That leads to an empty
CONFIG_XENO_REVISION_LEVEL which will be break XENO_VERSION_CODE.

Signed-off-by: Jan Kiszka <[email protected]>
---
 configure.ac | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure.ac b/configure.ac
index 22823756df..0d6dd87b61 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,6 +23,9 @@ version_code=`cat $srcdir/config/version-code`
 CONFIG_XENO_VERSION_MAJOR=`expr $version_code : '\([[0-9]]*\)'`
 CONFIG_XENO_VERSION_MINOR=`expr $version_code : '[[0-9]]*\.\([[0-9]]*\)'`
 CONFIG_XENO_REVISION_LEVEL=`expr $version_code : '[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\)'`
+if test "x$CONFIG_XENO_REVISION_LEVEL" = "x"; then
+	CONFIG_XENO_REVISION_LEVEL=0
+fi
 CONFIG_XENO_UAPI_LEVEL=`cat $srcdir/config/apirev`
 CONFIG_XENO_VERSION_STRING="$PACKAGE_VERSION"
 topdir=`cd $srcdir && pwd`
-- 
2.47.3
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.