]> git.pld-linux.org Git - packages/xtables-addons.git/blame - kernelrelease.patch
- updated to 1.36
[packages/xtables-addons.git] / kernelrelease.patch
CommitLineData
32aaedb1
JB
1--- xtables-addons-1.36/configure.ac.orig 2011-06-03 16:45:29.000000000 +0200
2+++ xtables-addons-1.36/configure.ac 2011-06-11 14:23:36.451762729 +0200
3@@ -40,39 +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";
32aaedb1 28- if test "$kmajor" -gt 3 -o "$kmajor" -eq 3 -a "$kminor" -gt 1; then
7a84f6be 29- echo "WARNING: You are trying a newer kernel. Results may vary. :-)";
32aaedb1
JB
30- elif test "$kmajor" -eq 3; then
31- :;
32- elif test "$kmajor" -eq 2 -a "$kminor" -ge 29; then
33- :;
99b2e4a4 34- else
32aaedb1 35- echo "WARNING: That kernel version is not supported.";
7a84f6be 36- fi;
521d42c3 37- fi;
e48d6489 38-fi;
521d42c3 39-
83cb19e1 40 AC_SUBST([regular_CPPFLAGS])
e48d6489 41 AC_SUBST([regular_CFLAGS])
8af0bca6 42 AC_SUBST([kbuilddir])
This page took 0.034115 seconds and 4 git commands to generate.