When configuring the sources to build without kernel modules, the path
to the kernel sources was not set and the kernel header files were still
checked.
Now, we do not check the kernel sources for compatibility if we're not
going to build any kernel modules.
Signed-off-by: Oliver Smith <oliver@8.c.9.b.0.7.4.0.1.0.0.2.ip6.arpa>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
dnl Checks for functions
AC_CHECK_FUNCS(gethostbyname2)
+if test "$BUILDKMOD" == "yes"
+then
dnl Check kernel incompatibilities... Ugly like hell
AC_MSG_CHECKING([kernel source for struct xt_action_param])
if test -f $ksourcedir/include/linux/netfilter/x_tables.h && \
AC_MSG_RESULT(no)
AC_MSG_ERROR([Netns support is required in the Linux kernel tree])
fi
+fi
dnl Checks for compiler characteristics.
dnl Check extra warning flags except