From 8dd10256cb24ceade8b40bd1604f03ddac8589e2 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Tue, 29 Jun 2010 21:14:40 +0200 Subject: ipset 5: Sparc related and compatibility fixes ipset 5 is tested on Sparc, which revealed some compatibility issues and those are fixed. Kernels from 2.6.31 onward are supported. The testsuite checkings are completed to run match/target checks. The README file is updated to reflect the requirements to install and run ipset 5. --- configure.ac | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 658d5f0..f75ef49 100644 --- a/configure.ac +++ b/configure.ac @@ -15,10 +15,31 @@ dnl Kernel build directory or source tree AC_ARG_WITH([kernel], AS_HELP_STRING([--with-kernel=PATH], [Path to kernel source/build directory]), - [KBUILDDOR="$withval";]) + [KBUILDDIR="$withval";]) AM_CONDITIONAL(WITH_KBUILDDIR, test "$KBUILDDIR" != "") AC_SUBST(KBUILDDIR) +dnl Sigh: check kernel version dependencies +if test "$KBUILDDIR" != "" +then + kbuilddir="$KBUILDDIR" +else + kbuilddir="/lib/modules/`uname -r`/build" +fi + +if test ! -e "$kbuilddir/include/linux/netfilter/nfnetlink.h" +then + AC_MSG_ERROR([Invalid kernel build directory $kbuilddir]) +fi + +dnl Check kernel dependencies: nfnetlink.h +NFNL_CB_CONST="`./check_const $kbuilddir/include/linux/netfilter/nfnetlink.h`" +AC_SUBST(NFNL_CB_CONST) + +dnl Check kernel dependencies: netlink.h +NETLINK_DUMP_CONST="`./check_const $kbuilddir/include/linux/netlink.h`" +AC_SUBST(NETLINK_DUMP_CONST) + dnl Maximal number of sets supported by the kernel, default 256 AC_ARG_WITH([maxsets], AS_HELP_STRING([--with-maxsets=256], -- cgit v1.2.3