]>
Commit | Line | Data |
---|---|---|
e4a1f53e SP |
1 | diff -ur xtables-addons-1.30/configure.ac xtables-addons-1.30.new//configure.ac |
2 | --- xtables-addons-1.30/configure.ac 2010-10-02 00:41:47.000000000 +0200 | |
3 | +++ xtables-addons-1.30.new//configure.ac 2010-10-15 16:59:31.936357030 +0200 | |
8f462252 | 4 | @@ -38,38 +38,6 @@ |
8af0bca6 | 5 | -I\${XA_TOPSRCDIR}/include"; |
e48d6489 | 6 | |
8f462252 | 7 | # |
e48d6489 | 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%%.*}"; | |
8af0bca6 | 23 | -if test "$kmicro" = "$krel"; then |
e48d6489 | 24 | - kstable=0; |
b5980a9a | 25 | -else |
8af0bca6 | 26 | - kstable="${krel#*.}"; |
b5980a9a TP |
27 | - if test -z "$kstable"; then |
28 | - kstable=0; | |
29 | - fi; | |
e48d6489 | 30 | -fi; |
31 | -echo "Found kernel version $kmajor.$kminor.$kmicro.$kstable in $kbuilddir"; | |
e4a1f53e | 32 | -if test "$kmajor" -gt 2 -o "$kminor" -gt 6 -o "$kmicro" -gt 36; then |
e48d6489 | 33 | - echo "WARNING: You are trying a newer kernel. Results may vary. :-)"; |
34 | -elif test \( "$kmajor" -lt 2 -o "$kminor" -lt 6 -o "$kmicro" -lt 17 \) -o \ | |
35 | - \( "$kmajor" -eq 2 -a "$kminor" -eq 6 -a "$kmicro" -eq 18 -a \ | |
36 | - "$kstable" -lt 5 \); then | |
37 | - echo "ERROR: That kernel version is not supported. Please see INSTALL for minimum configuration."; | |
38 | - exit 1; | |
39 | -fi; | |
8f462252 | 40 | |
e48d6489 | 41 | AC_SUBST([regular_CFLAGS]) |
8af0bca6 | 42 | AC_SUBST([kbuilddir]) |
e4a1f53e | 43 | Tylko w xtables-addons-1.30.new/: configure.ac~ |