]>
Commit | Line | Data |
---|---|---|
e48d6489 | 1 | --- xtables-addons-1.15/configure.ac~ 2009-04-30 18:58:23.000000000 +0000 |
2 | +++ xtables-addons-1.15/configure.ac 2009-06-03 00:16:46.747444821 +0000 | |
3 | @@ -63,37 +63,6 @@ if [[ -n "$ksourcedir" ]]; then | |
4 | kinclude_CFLAGS="$kinclude_CFLAGS -I $ksourcedir/include"; | |
5 | fi; | |
6 | ||
7 | -# | |
8 | -# check kernel version | |
9 | -# | |
10 | -if grep -q "CentOS release 5\." /etc/redhat-release 2>/dev/null || | |
11 | - grep -q "Red Hat Enterprise Linux Server release 5" /etc/redhat-release 2>/dev/null; then | |
12 | - # γγΎγ£γ! | |
13 | - # Well, just a warning. Maybe the admin updated the kernel. | |
14 | - echo "WARNING: This distribution's shipped kernel is not supported."; | |
15 | -fi; | |
16 | -krel="$(make -sC ${kbuilddir} kernelrelease)"; | |
17 | -krel="${krel%%-*}"; | |
18 | -kmajor="${krel%%.*}"; | |
19 | -krel="${krel#*.}"; | |
20 | -kminor="${krel%%.*}"; | |
21 | -krel="${krel#*.}"; | |
22 | -kmicro="${krel%%.*}"; | |
23 | -krel="${krel#*.}"; | |
24 | -kstable="${krel%%.*}"; | |
25 | -if test -z "$kstable"; then | |
26 | - kstable=0; | |
27 | -fi; | |
28 | -echo "Found kernel version $kmajor.$kminor.$kmicro.$kstable in $kbuilddir"; | |
29 | -if test "$kmajor" -gt 2 -o "$kminor" -gt 6 -o "$kmicro" -gt 30; then | |
30 | - echo "WARNING: You are trying a newer kernel. Results may vary. :-)"; | |
31 | -elif test \( "$kmajor" -lt 2 -o "$kminor" -lt 6 -o "$kmicro" -lt 17 \) -o \ | |
32 | - \( "$kmajor" -eq 2 -a "$kminor" -eq 6 -a "$kmicro" -eq 18 -a \ | |
33 | - "$kstable" -lt 5 \); then | |
34 | - echo "ERROR: That kernel version is not supported. Please see INSTALL for minimum configuration."; | |
35 | - exit 1; | |
36 | -fi; | |
37 | - | |
38 | AC_SUBST([regular_CFLAGS]) | |
39 | AC_SUBST([xtables_CFLAGS]) | |
40 | AC_SUBST([kinclude_CFLAGS]) |