From patchwork Fri Oct 11 14:41:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oliver Smith X-Patchwork-Id: 282780 X-Patchwork-Delegate: kadlec@blackhole.kfki.hu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 78A2D2C012E for ; Sat, 12 Oct 2013 01:43:00 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751762Ab3JKOm6 (ORCPT ); Fri, 11 Oct 2013 10:42:58 -0400 Received: from mail.uptheinter.net ([77.74.196.236]:46731 "EHLO mail.uptheinter.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752244Ab3JKOm5 (ORCPT ); Fri, 11 Oct 2013 10:42:57 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.uptheinter.net (Postfix) with ESMTP id 975559FF14 for ; Fri, 11 Oct 2013 15:42:56 +0100 (BST) X-DKIM: Sendmail DKIM Filter v2.7.2 mail.uptheinter.net 975559FF14 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=8.c.9.b.0.7.4.0.1.0.0.2.ip6.arpa; s=default; t=1381502576; bh=4bt /fcDwR7SCdSepgmvb19KAQspoXUdRgWMFetzqLMg=; h=From:To:Subject:Date: Message-Id:In-Reply-To:References; b=ko1YIFYSslQ6cjqoXqy1nnnKJ5DlV mcE9yST0BRCiRgYhWaxpKkKcuuwRcL+5iIpYdekbOB2KVww40XMOBgIKR4O+10sniZ2 0VJqmlIIzBb/hf4rDhO3LAjVUIeWGLA1LHWk+WJVyhoCB+ZABnYkv8R74earkcSIshN y9qonRY4= X-Virus-Scanned: amavisd-new at Received: from mail.uptheinter.net ([127.0.0.1]) by localhost (vps2.uptheinter.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id wPbaywVXOcCp for ; Fri, 11 Oct 2013 15:41:44 +0100 (BST) From: Oliver To: netfilter-devel@vger.kernel.org Subject: [PATCH] netfilter: ipset: Fix configure failure when --with-kmod=no Date: Fri, 11 Oct 2013 16:41:12 +0200 Message-Id: <1381502472-12217-2-git-send-email-oliver@8.c.9.b.0.7.4.0.1.0.0.2.ip6.arpa> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1381502472-12217-1-git-send-email-oliver@8.c.9.b.0.7.4.0.1.0.0.2.ip6.arpa> References: <1381502472-12217-1-git-send-email-oliver@8.c.9.b.0.7.4.0.1.0.0.2.ip6.arpa> Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org From: Oliver Smith 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 --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 0eb1022..d56328c 100644 --- a/configure.ac +++ b/configure.ac @@ -167,6 +167,8 @@ AC_CHECK_TYPES([union nf_inet_addr],,,[#include 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 && \ @@ -309,6 +311,7 @@ else 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