From patchwork Wed Aug 30 16:59:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 111322 Delivered-To: patch@linaro.org Received: by 10.140.95.112 with SMTP id h103csp1236937qge; Wed, 30 Aug 2017 10:02:16 -0700 (PDT) X-Google-Smtp-Source: ADKCNb4jUVi0kobV8Vf8iqxwlmER6I5XK8gh64pOaAr63rWIbdVytn/meyw5IWw+VfWTdb1fMIYG X-Received: by 10.55.97.73 with SMTP id v70mr11175348qkb.149.1504112535850; Wed, 30 Aug 2017 10:02:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504112535; cv=none; d=google.com; s=arc-20160816; b=EcXqgmrzEGDtuB8q0H40Kwf+5WhA1TfC18On462J/C7nifmAQQ/A42x8JNlMGZucke 6yLtiH3dnLPInTmm8m1eUuYPlkABYoN96/hLq6a7Mn/pC+YMqcclmYqqrvDyhFwU+eWr VQrDb2VWwhOyO4pOpMYSaJrTgz//cnROrUxOi7vBaXfjeT7rRFKICbvhEZtVjUjjzbCe krHiz0V8SbdnH4QkVALTEyJAUE2jra6IWOzvw3B7iLfGntFkYweNgySw9Iusr0Kr97Sp i8d61A3zREimHPlYcid+3UZZakJsYR6FFOSHZwTg4HWviXw1Et6aCDagCmW/nakj4on1 42Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=fmc7rIAeniGfiJF9VjLDlE2GsYpMhqdtpdwx/HeK8Pg=; b=auVzDQKcnp3ZogvQXwjxA09wB6L+j8V560kN3gJoByKwBqsnZKCLyMcBv4f87rJ4me RCk3c+DjuHI3VLK3qQMehXTXBVVvC/IFP8elEKQqDjLek/zvtlIKvOKoJSQjzgxIXq+0 aJ0VBPxEs9rYdI5/apYQjheAY5yBB0zsQLSj1eweoUx1A+yX2LKJAtBnMhR1GLyJAHlY xsb7s0UInSfOog2C7MMeakUg/KHucUUOlfkXH4t+z0xFSpXwFjFxiukK8e+RWNngaY5M uVyJwCvQxxKa8kR/g+RxEMK5opSMg3zxHla1T43/Zx2tsqchdYFbTsA8R44wUIbM6/KB ESjg== ARC-Authentication-Results: i=1; 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=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id m44si5827832qtk.192.2017.08.30.10.02.15; Wed, 30 Aug 2017 10:02:15 -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=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 23F8062D06; Wed, 30 Aug 2017 17:02:15 +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,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,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 087DC62C6C; Wed, 30 Aug 2017 17:00:33 +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 8685F62C2D; Wed, 30 Aug 2017 17:00:24 +0000 (UTC) Received: from forward1j.cmail.yandex.net (forward1j.cmail.yandex.net [5.255.227.19]) by lists.linaro.org (Postfix) with ESMTPS id 0A2ED61E1A for ; Wed, 30 Aug 2017 17:00:20 +0000 (UTC) Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [5.45.198.129]) by forward1j.cmail.yandex.net (Yandex) with ESMTP id 6F1DE2179C for ; Wed, 30 Aug 2017 20:00:18 +0300 (MSK) Received: from smtp4j.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp4j.mail.yandex.net (Yandex) with ESMTP id 23AD33240C86 for ; Wed, 30 Aug 2017 20:00:17 +0300 (MSK) Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id vVX7TjUjPU-0HLa2V6Q; Wed, 30 Aug 2017 20:00:17 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Wed, 30 Aug 2017 19:59:59 +0300 Message-Id: <1504112406-3108-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1504112406-3108-1-git-send-email-odpbot@yandex.ru> References: <1504112406-3108-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 155 Subject: [lng-odp] [PATCH v4 2/9] configure: rework with-testdir check 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: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov Rework with-testdir option handling to follow the rest of configure options. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 155 (lumag:improve-build-2) ** https://github.com/Linaro/odp/pull/155 ** Patch: https://github.com/Linaro/odp/pull/155.patch ** Base sha: 7508c5ac906bb7cb1d339b4c5e924f3a18e504ca ** Merge commit sha: 82cd6ec8e88e93808778f00e24852395a62ae20b **/ configure.ac | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index c076b4cc..dcf14629 100644 --- a/configure.ac +++ b/configure.ac @@ -200,19 +200,18 @@ AC_SUBST(SDK_INSTALL_PATH) # Set the install directory for test binaries/scripts ########################################################################## AC_ARG_WITH([testdir], - AC_HELP_STRING([--with-testdir=DIR installation directory for tests]), - [if test "$withval" = "yes"; then - testdir=$libdir/odp/tests - else - testdir=$withval - fi], []) + [AC_HELP_STRING([--with-testdir=DIR], [installation directory for tests])], + [testdir=$withval], + [testdir=no]) +AS_IF([test "x$testdir" = "xyes"], [testdir=$libdir/odp/tests], + [test "x$testdir" = "xno"], [testdir=]) AC_SUBST([testdir]) +AM_CONDITIONAL([test_installdir], [test "x$testdir" != "xno"]) ########################################################################## # Set conditionals as computed within platform specific files ########################################################################## AM_CONDITIONAL([SDK_INSTALL_PATH_], [test "x${SDK_INSTALL_PATH_}" = "x1"]) -AM_CONDITIONAL([test_installdir], [test "$testdir" != ""]) AM_CONDITIONAL([cunit_support], [test x$cunit_support = xyes ]) AM_CONDITIONAL([HAVE_DOXYGEN], [test "x${DOXYGEN}" = "xdoxygen"]) AM_CONDITIONAL([user_guide], [test "x${user_guides}" = "xyes" ])