From patchwork Tue Mar 29 18:23:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 64614 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp2179884lbc; Tue, 29 Mar 2016 11:33:27 -0700 (PDT) X-Received: by 10.140.42.196 with SMTP id c62mr4838007qga.66.1459276407615; Tue, 29 Mar 2016 11:33:27 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 53si26750975qgt.99.2016.03.29.11.33.27; Tue, 29 Mar 2016 11:33:27 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 3F39A61893; Tue, 29 Mar 2016 18:33:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id B2DDD61891; Tue, 29 Mar 2016 18:31:34 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 7469161873; Tue, 29 Mar 2016 18:31:13 +0000 (UTC) Received: from mail-lf0-f52.google.com (mail-lf0-f52.google.com [209.85.215.52]) by lists.linaro.org (Postfix) with ESMTPS id E96A761887 for ; Tue, 29 Mar 2016 18:30:56 +0000 (UTC) Received: by mail-lf0-f52.google.com with SMTP id g124so16667224lfg.0 for ; Tue, 29 Mar 2016 11:30:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Wub4AeEVSCI8YbM3FcFnygu0dxSUiNYai6VIKtX8aOQ=; b=V7UYbsR1bT+eEpAD8z9mqSesbCnB9nHpCJvBss5ZFkk6RyfpIV0nKcnq5oZ1OreE+5 KjtLvpNFaU3InjH2pCSVHDY/pw93HGxa4nIhqfXxr7ZcTq3IWMfebsCX9eevEbQIHcQ0 4B6CNagOtka4K66K/sSbiQS/Nnb19FhJREvsa3ysEikBjTqTpxybF+5cDCO6XzL9VK3c 2KfEDkQApjAuZNPFe5i3e+s8KTHO9amsHfcI8T+aL6S9T8sCBK634948rCe51B5ON+Pr kjgRIFTtb/d5a0Jjqib3urOIPvKOrSdOCBK+TxLTwKZFThLRhbDYiG+F9MhoZQVdzXdq WMTw== X-Gm-Message-State: AD7BkJKBkhKSq9/YVPU2I2r1mqeu7v2cmquinJ1CInxy61LYkbPL66/dgV+zVC5x+xCytde5LG0= X-Received: by 10.25.213.145 with SMTP id m139mr1869579lfg.96.1459276255857; Tue, 29 Mar 2016 11:30:55 -0700 (PDT) Received: from localhost (c-c82171d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.113.33.200]) by smtp.gmail.com with ESMTPSA id p134sm5591317lfb.48.2016.03.29.11.30.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Mar 2016 11:30:55 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Tue, 29 Mar 2016 20:23:29 +0200 Message-Id: <1459275814-19876-6-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1459275814-19876-1-git-send-email-anders.roxell@linaro.org> References: <1459275814-19876-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv2 05/10] configure: move test_cpp to its own m4 file X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Signed-off-by: Anders Roxell --- configure.ac | 16 +--------------- test/m4/configure.m4 | 1 + test/m4/miscellaneous.m4 | 9 +++++++++ 3 files changed, 11 insertions(+), 15 deletions(-) create mode 100644 test/m4/miscellaneous.m4 diff --git a/configure.ac b/configure.ac index cc6a38b..0a9918b 100644 --- a/configure.ac +++ b/configure.ac @@ -139,6 +139,7 @@ AM_CONDITIONAL([HAVE_PCAP], [test $have_pcap = yes]) AM_CONDITIONAL([SDK_INSTALL_PATH_], [test "x${SDK_INSTALL_PATH_}" = "x1"]) AM_CONDITIONAL([test_installdir], [test "$testdir" != ""]) AM_CONDITIONAL([test_perf], [test x$test_perf = xyes ]) +AM_CONDITIONAL([test_cpp], [test x$test_cpp = xyes ]) ########################################################################## # Setup doxygen documentation @@ -171,21 +172,6 @@ AC_ARG_ENABLE([test-helper], fi]) AM_CONDITIONAL([test_helper], [test x$test_helper = xyes ]) - -########################################################################## -# Enable/disable test-cpp -########################################################################## -test_cpp=no -AC_ARG_ENABLE([test-cpp], - [ --enable-test-cpp run basic test aginast cpp], - [if test "x$enableval" = "xyes"; then - test_cpp=yes - else - test_cpp=no - fi]) - -AM_CONDITIONAL([test_cpp], [test x$test_cpp = xyes ]) - ########################################################################## # Set optional CUnit path ########################################################################## diff --git a/test/m4/configure.m4 b/test/m4/configure.m4 index e4b7d7a..4e16b82 100644 --- a/test/m4/configure.m4 +++ b/test/m4/configure.m4 @@ -1,3 +1,4 @@ +m4_include([test/m4/miscellaneous.m4]) m4_include([test/m4/performance.m4]) AC_CONFIG_FILES([test/Makefile diff --git a/test/m4/miscellaneous.m4 b/test/m4/miscellaneous.m4 new file mode 100644 index 0000000..cc881ed --- /dev/null +++ b/test/m4/miscellaneous.m4 @@ -0,0 +1,9 @@ +########################################################################## +# Enable/disable test-cpp +########################################################################## +test_cpp=no +AC_ARG_ENABLE([test-cpp], + [ --enable-test-cpp run basic test aginast cpp], + [if test "x$enableval" = "xyes"; then + test_cpp=yes + fi])