xtables-addons: update to v2.1, fix compilation against Linux 3.7.2, refresh patches
[openwrt/svn-archive/archive.git] / net / xtables-addons / patches / 002-fix-kernel-version-detection.patch
1 --- a/configure
2 +++ b/configure
3 @@ -11892,7 +11892,7 @@ regular_CFLAGS="-Wall -Waggregate-return
4 if test -n "$kbuilddir"; then
5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel version that we will build against" >&5
6 $as_echo_n "checking kernel version that we will build against... " >&6; }
7 - krel="$(make -sC "$kbuilddir" M=$PWD kernelrelease)";
8 + krel="$(make -sC "$kbuilddir" M=$PWD kernelversion)";
9 kmajor="${krel%%[^0-9]*}";
10 kmajor="$(($kmajor+0))";
11 krel="${krel:${#kmajor}}";
12 --- a/configure.ac
13 +++ b/configure.ac
14 @@ -44,7 +44,7 @@ regular_CFLAGS="-Wall -Waggregate-return
15
16 if test -n "$kbuilddir"; then
17 AC_MSG_CHECKING([kernel version that we will build against])
18 - krel="$(make -sC "$kbuilddir" M=$PWD kernelrelease)";
19 + krel="$(make -sC "$kbuilddir" M=$PWD kernelversion)";
20 kmajor="${krel%%[[^0-9]]*}";
21 kmajor="$(($kmajor+0))";
22 krel="${krel:${#kmajor}}";