1 --- xtables-addons-1.18/configure.ac~ 2009-09-09 17:37:07.000000000 +0200
2 +++ xtables-addons-1.18/configure.ac 2009-11-02 11:19:36.000000000 +0100
4 kinclude_CFLAGS="$kinclude_CFLAGS -I $ksourcedir/include";
8 -# check kernel version
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
13 - # Well, just a warning. Maybe the admin updated the kernel.
14 - echo "WARNING: This distribution's shipped kernel is not supported.";
16 -krel="$(make -sC ${kbuilddir} kernelrelease)";
18 -kmajor="${krel%%.*}";
20 -kminor="${krel%%.*}";
22 -kmicro="${krel%%.*}";
24 -if test "$krel" = "$krel2"; then
27 - kstable="${krel%%.*}";
28 - if test -z "$kstable"; then
32 -echo "Found kernel version $kmajor.$kminor.$kmicro.$kstable in $kbuilddir";
33 -if test "$kmajor" -gt 2 -o "$kminor" -gt 6 -o "$kmicro" -gt 31; then
34 - echo "WARNING: You are trying a newer kernel. Results may vary. :-)";
35 -elif test \( "$kmajor" -lt 2 -o "$kminor" -lt 6 -o "$kmicro" -lt 17 \) -o \
36 - \( "$kmajor" -eq 2 -a "$kminor" -eq 6 -a "$kmicro" -eq 18 -a \
37 - "$kstable" -lt 5 \); then
38 - echo "ERROR: That kernel version is not supported. Please see INSTALL for minimum configuration.";
42 AC_SUBST([regular_CFLAGS])
43 AC_SUBST([xtables_CFLAGS])
44 AC_SUBST([kinclude_CFLAGS])