]> git.ipfire.org Git - thirdparty/ipset.git/commitdiff
Add checking system_power_efficient_wq in the kernel source tree
authorJozsef Kadlecsik <kadlec@netfilter.org>
Sat, 22 Feb 2020 11:51:24 +0000 (12:51 +0100)
committerJozsef Kadlecsik <kadlec@netfilter.org>
Sat, 22 Feb 2020 11:51:24 +0000 (12:51 +0100)
configure.ac

index 69a97a9938d9dacd436a381155dd1cf439afd02b..2b8024898802cd0efd3239d5e27b2ca35c7cfe06 100644 (file)
@@ -206,6 +206,16 @@ AC_CHECK_FUNCS(gethostbyname2)
 if test "$BUILDKMOD" == "yes"
 then
 dnl Check kernel incompatibilities... Ugly like hell
+
+AC_MSG_CHECKING([kernel source for system_power_efficient_wq])
+if test -f $ksourcedir/include/linux/workqueue.h && \
+   $GREP -q 'system_power_efficient_wq' $ksourcedir/include/linux/workqueue.h; then
+       AC_MSG_RESULT(yes)
+else
+       AC_MSG_RESULT(no)
+       AC_MSG_ERROR([Kernel source tree is too old, at least v3.11 is required])
+fi
+
 AC_MSG_CHECKING([kernel source for struct xt_action_param])
 if test -f $ksourcedir/include/linux/netfilter/x_tables.h && \
    $GREP -q 'struct xt_action_param' $ksourcedir/include/linux/netfilter/x_tables.h; then