From 1b8c69e14d97bf5d0e973740c5802fdbf96f756d Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Tue, 13 Jul 2010 14:18:22 +0200 Subject: Compatibility and documentation fixes Makefile fixes: compiler flags README and manpage fixes Compatibility with newer gcc releases (4.4.x) Compatibility with the 2.6.35 kernel tree --- configure.ac | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index f75ef49..7622ac4 100644 --- a/configure.ac +++ b/configure.ac @@ -32,6 +32,18 @@ then AC_MSG_ERROR([Invalid kernel build directory $kbuilddir]) fi +if test ! -e "$kbuilddir/.config" +then + AC_MSG_ERROR([The kernel build directory $kbuilddir is not configured]) +fi + +AC_PROG_GREP + +if test "X`$GREP '^CONFIG_IP6_NF_IPTABLES=' $kbuilddir/.config`" = "X" +then + AC_MSG_ERROR([The kernel build directory $kbuilddir is not configured with IP6_NF_IPTABLES support (ip6tables)]) +fi + dnl Check kernel dependencies: nfnetlink.h NFNL_CB_CONST="`./check_const $kbuilddir/include/linux/netfilter/nfnetlink.h`" AC_SUBST(NFNL_CB_CONST) -- cgit v1.2.3