]> git.pld-linux.org Git - packages/xtables-addons.git/blame - kernelrelease.patch
- release 10
[packages/xtables-addons.git] / kernelrelease.patch
CommitLineData
99b2e4a4
JB
1--- xtables-addons-1.35/configure.ac.orig 2011-04-11 18:37:32.000000000 +0200
2+++ xtables-addons-1.35/configure.ac 2011-05-06 20:03:27.286191084 +0200
3@@ -40,44 +40,6 @@
83cb19e1
JB
4 -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
5 -Winline -pipe";
e48d6489 6
7a84f6be
JB
7-if test -n "$kbuilddir"; then
8- AC_MSG_CHECKING([kernel version that we will build against])
9- krel="$(make -sC "$kbuilddir" M=. kernelrelease)";
10- kmajor="${krel%%[[^0-9]]*}";
11- kmajor="$(($kmajor+0))";
12- krel="${krel:${#kmajor}}";
13- krel="${krel#.}";
14- kminor="${krel%%[[^0-9]]*}";
15- kminor="$(($kminor+0))";
16- krel="${krel:${#kminor}}";
17- krel="${krel#.}";
18- kmicro="${krel%%[[^0-9]]*}";
19- kmicro="$(($kmicro+0))";
20- krel="${krel:${#kmicro}}";
21- krel="${krel#.}";
22- kstable="${krel%%[[^0-9]]*}";
23- kstable="$(($kstable+0))";
24- if test -z "$kmajor" -o -z "$kminor" -o -z "$kmicro"; then
25- echo "WARNING: Version detection did not succeed. Continue at own luck.";
26- else
27- echo "$kmajor.$kminor.$kmicro.$kstable in $kbuilddir";
28- if test "$kmajor" -gt 2 -o "$kminor" -gt 6 -o "$kmicro" -gt 38; then
29- echo "WARNING: You are trying a newer kernel. Results may vary. :-)";
99b2e4a4
JB
30- elif test "$kmajor" -eq 2 -a "$kminor" -eq 6 -a "$kmicro" -ge 29; then
31- :; # everything ok
7a84f6be
JB
32- elif test \( "$kmajor" -lt 2 -o \
33- \( "$kmajor" -eq 2 -a "$kminor" -lt 6 \) -o \
34- \( "$kmajor" -eq 2 -a "$kminor" -eq 0 -a "$kmicro" -lt 17 \) -o \
35- \( "$kmajor" -eq 2 -a "$kminor" -eq 6 -a "$kmicro" -eq 18 -a \
36- "$kstable" -lt 5 \) \); then
99b2e4a4 37- echo "ERROR: That kernel version is not supported at all. Please see INSTALL for minimum configuration.";
7a84f6be 38- exit 1;
99b2e4a4
JB
39- else
40- echo "WARNING: That kernel version has been recently deprecated for use with Xtables-addons). Compilation may fail.";
7a84f6be 41- fi;
521d42c3 42- fi;
e48d6489 43-fi;
521d42c3 44-
83cb19e1 45 AC_SUBST([regular_CPPFLAGS])
e48d6489 46 AC_SUBST([regular_CFLAGS])
8af0bca6 47 AC_SUBST([kbuilddir])
This page took 0.030013 seconds and 4 git commands to generate.