From patchwork Wed Mar 23 18:37: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: 64257 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp201745lbc; Wed, 23 Mar 2016 11:49:11 -0700 (PDT) X-Received: by 10.140.227.137 with SMTP id x131mr5779207qhb.7.1458758951487; Wed, 23 Mar 2016 11:49:11 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id y20si3198038qka.117.2016.03.23.11.49.11; Wed, 23 Mar 2016 11:49:11 -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 Received: by lists.linaro.org (Postfix, from userid 109) id 2350C617D5; Wed, 23 Mar 2016 18:49:11 +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 901EB6181E; Wed, 23 Mar 2016 18:45:42 +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 1164D61795; Wed, 23 Mar 2016 18:45:27 +0000 (UTC) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com [209.85.217.169]) by lists.linaro.org (Postfix) with ESMTPS id 4204D61787 for ; Wed, 23 Mar 2016 18:44:51 +0000 (UTC) Received: by mail-lb0-f169.google.com with SMTP id qe11so15881061lbc.3 for ; Wed, 23 Mar 2016 11:44:51 -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=1A36TLraV3285QMnX7kHZxvEAazHrwvkU+fSV3sWILA=; b=iw7JWvYLo/5EItOgVZz/XXcULLoSzuVx0RMLRr7Xh8eMcwGRA7425d9RjuXMPMsl7P ceCvnWIKHTjBGKz/CIlmqrwICKXVRjG49n0WXOIZtezVzs+eutn/xlpaqbu/MXg1zeaI Q0bd6oD7unlaCJNt58JFbwkBtO5dqk3S/huoiq2sQGqpcCJVvHzKmwNAxlBZmdWOpxNp 9OBOwoKDDE46y9LSUfhybDwPMBNDg7VKxZEcSfm0EKVO7fca9OvlYnyoZ0jkgBkVFHDG qmsp7CLUSvW779sCGktmpeU6s8Mu4hWKUmvyit+rNFP+lhSuHb5exIx0c/5Xa5i5yizU FJWg== X-Gm-Message-State: AD7BkJJmrB48jxdXGxMc5It8avocT+YovK4aMKvE0YdI4fcoUC8ajevMo0/LHFhjAjJOf6sV7Lk= X-Received: by 10.112.13.8 with SMTP id d8mr1838733lbc.110.1458758690168; Wed, 23 Mar 2016 11:44:50 -0700 (PDT) Received: from localhost (c-c82171d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.113.33.200]) by smtp.gmail.com with ESMTPSA id pi5sm564853lbb.41.2016.03.23.11.44.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Mar 2016 11:44:49 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Wed, 23 Mar 2016 19:37:30 +0100 Message-Id: <1458758254-4703-7-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1458758254-4703-1-git-send-email-anders.roxell@linaro.org> References: <1458758254-4703-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 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 6199bd0..55c7b59 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=yes -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])