From: Jan Engelhardt Date: Wed, 1 Jul 2009 23:04:48 +0000 (+0200) Subject: build: fix kernel version info X-Git-Tag: v1.18~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b2ca78af7af7edf503d6bb15415739af5ff17f2;p=thirdparty%2Fxtables-addons.git build: fix kernel version info --- diff --git a/configure.ac b/configure.ac index 5e2e394..68abfbb 100644 --- a/configure.ac +++ b/configure.ac @@ -79,10 +79,14 @@ krel="${krel#*.}"; kminor="${krel%%.*}"; krel="${krel#*.}"; kmicro="${krel%%.*}"; -krel="${krel#*.}"; -kstable="${krel%%.*}"; -if test -z "$kstable"; then +krel2="${krel#*.}"; +if test "$krel" = "$krel2"; then kstable=0; +else + kstable="${krel%%.*}"; + if test -z "$kstable"; then + kstable=0; + fi; fi; echo "Found kernel version $kmajor.$kminor.$kmicro.$kstable in $kbuilddir"; if test "$kmajor" -gt 2 -o "$kminor" -gt 6 -o "$kmicro" -gt 30; then