From 2ae0413e31c838c1cf4a9c3aab996e3ff780cd00 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 3 Nov 2010 12:55:09 +0100 Subject: [PATCH] build: properly detect versions like "2.6.36+" --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index b7236b4..c77b813 100644 --- a/configure.ac +++ b/configure.ac @@ -57,12 +57,12 @@ kminor="${krel%%.*}"; krel="${krel#*.}"; kmicro="${krel%%.*}"; if test "$kmicro" = "$krel"; then + kmicro="$(($kmicro+0))"; # Get rid of non numbers ("2.6.36+" -> "2.6.36") kstable=0; else + kmicro="$(($kmicro+0))"; kstable="${krel#*.}"; - if test -z "$kstable"; then - kstable=0; - fi; + kstable="$(($kstable+0))"; fi; if test -z "$kmajor" -o -z "$kminor" -o -z "$kmicro"; then echo "WARNING: Version detection did not succeed. Continue at own luck.";