From patchwork Tue Mar 29 18:23:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 64621 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp2181924lbc; Tue, 29 Mar 2016 11:37:59 -0700 (PDT) X-Received: by 10.140.251.70 with SMTP id w67mr4827643qhc.99.1459276679003; Tue, 29 Mar 2016 11:37:59 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id w13si45733qha.54.2016.03.29.11.37.58; Tue, 29 Mar 2016 11:37:58 -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 99EAF61879; Tue, 29 Mar 2016 18:37:58 +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 109FC61932; Tue, 29 Mar 2016 18:32:31 +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 E5E0C61879; Tue, 29 Mar 2016 18:31:20 +0000 (UTC) Received: from mail-lf0-f44.google.com (mail-lf0-f44.google.com [209.85.215.44]) by lists.linaro.org (Postfix) with ESMTPS id 4AF01618C2 for ; Tue, 29 Mar 2016 18:30:58 +0000 (UTC) Received: by mail-lf0-f44.google.com with SMTP id g124so16667730lfg.0 for ; Tue, 29 Mar 2016 11:30:58 -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=XMBjnNVvO88LgXdJNjvSSTyBgr6VdbnUDPVs2UwjDLU=; b=cC/lcbGA3fIF7Izc3o+jYIUcJ9/tqwQdW+XVHCE8VmT1NrLBqghhWDdE5lAMBsBq+c zEhhItChLXYopqJdkKHo+7j7tKDtJ+RetJJpk5QVwA9T0OPnUTV6QPWxabaMzLg9uNub Nxg0psGQ8sIYkQYJ1vuxenSswKn/mZJyHgcwPLr6Tep0YJujzs6OKqwQE8UooH3ZWdJp 0AyfOPaYQLReyAH22+8Ghm0WMrCho/cPelTWQOKm0kOzA36yV6h8WGtt4CaiKFz17AVr /kdXFxdZ19ZKB6qyxapD3o70ZRIM4fHy4A81ejtJ9izAol6ec/SmbV52cSmOcLGJFv+m r2lg== X-Gm-Message-State: AD7BkJLI/XDP5pThRF6unuYmKN0WFePsPcrmopd7LeKTUAhd8eou9GrZRsYJvdUpheP6ZFSQcsw= X-Received: by 10.25.141.2 with SMTP id p2mr1603944lfd.10.1459276257180; Tue, 29 Mar 2016 11:30:57 -0700 (PDT) Received: from localhost (c-c82171d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.113.33.200]) by smtp.gmail.com with ESMTPSA id p141sm5628123lfe.40.2016.03.29.11.30.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Mar 2016 11:30:56 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Tue, 29 Mar 2016 20:23:30 +0200 Message-Id: <1459275814-19876-7-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 06/10] configure: move test_helper 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 | 13 ++----------- helper/m4/configure.m4 | 9 +++++++++ 2 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 helper/m4/configure.m4 diff --git a/configure.ac b/configure.ac index 0a9918b..8ba0538 100644 --- a/configure.ac +++ b/configure.ac @@ -84,6 +84,7 @@ AC_SUBST([platform_with_platform_test], ["platform/${with_platform}/test"]) ########################################################################## # Include m4 files ########################################################################## +m4_include([./helper/m4/configure.m4]) m4_include([./test/m4/configure.m4]) ########################################################################## @@ -140,6 +141,7 @@ 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 ]) +AM_CONDITIONAL([test_helper], [test x$test_helper = xyes ]) ########################################################################## # Setup doxygen documentation @@ -162,17 +164,6 @@ AC_ARG_ENABLE([test_vald], AM_CONDITIONAL([test_vald], [test x$test_vald = xyes ]) ########################################################################## -# Enable/disable test-helper -########################################################################## -test_helper=no -AC_ARG_ENABLE([test-helper], - [ --enable-test-helper run test in helper/test], - [if test "x$enableval" = "xyes"; then - test_helper=yes - fi]) - -AM_CONDITIONAL([test_helper], [test x$test_helper = xyes ]) -########################################################################## # Set optional CUnit path ########################################################################## AC_ARG_WITH([cunit-path], diff --git a/helper/m4/configure.m4 b/helper/m4/configure.m4 new file mode 100644 index 0000000..480f79b --- /dev/null +++ b/helper/m4/configure.m4 @@ -0,0 +1,9 @@ +########################################################################## +# Enable/disable test-helper +########################################################################## +test_helper=no +AC_ARG_ENABLE([test-helper], + [ --enable-test-helper run test in helper/test], + [if test "x$enableval" = "xyes"; then + test_helper=yes + fi])