From f1d7b4b97f82c5fb912e0857818cbec07d264b23 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Mon, 29 Dec 2014 22:28:17 +0100 Subject: More compatibility checking and simplifications Try hard to keep the support of the 2.6.32 kernel tree and simplify the code with self-referential macros. --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 74bc7de..0e9d054 100644 --- a/configure.ac +++ b/configure.ac @@ -386,6 +386,16 @@ else AC_SUBST(HAVE_LIST_LAST_ENTRY, undef) fi +AC_MSG_CHECKING([kernel source for list_next_entry]) +if test -f $ksourcedir/include/linux/list.h && \ + $GREP -q 'list_next_entry' $ksourcedir/include/linux/list.h; then + AC_MSG_RESULT(yes) + AC_SUBST(HAVE_LIST_NEXT_ENTRY, define) +else + AC_MSG_RESULT(no) + AC_SUBST(HAVE_LIST_NEXT_ENTRY, undef) +fi + AC_MSG_CHECKING([kernel source for struct net_generic]) if test -f $ksourcedir/include/net/netns/generic.h && \ $GREP -q 'struct net_generic' $ksourcedir/include/net/netns/generic.h; then -- cgit v1.2.3