From patchwork Thu Dec 29 16:40:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 89282 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp6070922qgi; Thu, 29 Dec 2016 08:41:58 -0800 (PST) X-Received: by 10.55.97.204 with SMTP id v195mr39290630qkb.158.1483029718860; Thu, 29 Dec 2016 08:41:58 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id e129si11515721qkd.284.2016.12.29.08.41.57; Thu, 29 Dec 2016 08:41:58 -0800 (PST) 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 0A91060BF5; Thu, 29 Dec 2016 16:41:57 +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 8E40A60E13; Thu, 29 Dec 2016 16:41:06 +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 3C82560B0E; Thu, 29 Dec 2016 16:41:02 +0000 (UTC) Received: from mail-lf0-f48.google.com (mail-lf0-f48.google.com [209.85.215.48]) by lists.linaro.org (Postfix) with ESMTPS id 8ACB960AC7 for ; Thu, 29 Dec 2016 16:41:00 +0000 (UTC) Received: by mail-lf0-f48.google.com with SMTP id c13so224152417lfg.0 for ; Thu, 29 Dec 2016 08:41:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Hog6KUN0yLMJ9YZFdRO6uesinFvqEx0ndCsWpRaM+FE=; b=hIKTzRjFgr5hifkOg1su/nF0ImRBkl3QGor9H7JWcasXiCdp0+0g9rfHiL7HmoQNBW qZp/+lwz2WLZHq49JhECGnKpy4pwmyGcZUhOi/4lukcwAF60NgA7XU0PQrpbGvCB62BO Rm2/4MMa9Q+OD2fDLn/UCPI2mv8X96ImQFnSIAPZSj955rMp5OuXNlt2IsvtOZKBltZ7 G/5OPFFgwDfhT5lKOGw1X2+BtzuPyf2U8UG10oe0Ery3mAbkACxLewTFPpLcMEmqVdnt qXExn64R1Sop0gbROHF0CY+6ogGJVsmr95kVDNKVbyM2iLfYSJbT9Sxq7y/b1w9attnX 3UeA== X-Gm-Message-State: AIkVDXLovgO1Tk8H6nXVaxjPyuwaFfvAvyu+sNMm5aGlKBn+UG2PBR26eldiYSY9rNov7zijIbs= X-Received: by 10.25.72.209 with SMTP id v200mr13093220lfa.74.1483029659343; Thu, 29 Dec 2016 08:40:59 -0800 (PST) Received: from localhost.localdomain (ppp91-77-165-188.pppoe.mtu-net.ru. [91.77.165.188]) by smtp.gmail.com with ESMTPSA id g63sm7623723ljg.23.2016.12.29.08.40.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Dec 2016 08:40:58 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Thu, 29 Dec 2016 19:40:48 +0300 Message-Id: <1483029648-16521-2-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.7.1.250.gff4ea60 In-Reply-To: <1483029648-16521-1-git-send-email-maxim.uvarov@linaro.org> References: <1483029648-16521-1-git-send-email-maxim.uvarov@linaro.org> Subject: [lng-odp] [PATCH 2/2] configure.ac: helper: print debug config option 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" Add debug pritn config option for helper and do not drop configure options for building helper. Signed-off-by: Maxim Uvarov --- configure.ac | 10 ++++++++++ helper/Makefile.am | 2 +- helper/odph_debug.h | 4 ---- 3 files changed, 11 insertions(+), 5 deletions(-) -- 2.7.1.250.gff4ea60 diff --git a/configure.ac b/configure.ac index 54d62f7..b4991d8 100644 --- a/configure.ac +++ b/configure.ac @@ -230,6 +230,16 @@ AC_ARG_ENABLE([debug-print], fi]) ODP_CFLAGS="$ODP_CFLAGS -DODP_DEBUG_PRINT=$ODP_DEBUG_PRINT" +ODPH_DEBUG_PRINT=0 +AC_ARG_ENABLE([helper-debug-print], + [ --enable-helper-debug-print display helper debugging information], + [if test "x$enableval" = "xyes"; then + ODPH_DEBUG_PRINT=1 + else + ODPH_DEBUG_PRINT=0 + fi]) +ODP_CFLAGS="$ODP_CFLAGS -DODPH_DEBUG_PRINT=$ODPH_DEBUG_PRINT" + ########################################################################## # Enable/disable ODP_DEBUG ########################################################################## diff --git a/helper/Makefile.am b/helper/Makefile.am index d09d900..1fe42e3 100644 --- a/helper/Makefile.am +++ b/helper/Makefile.am @@ -4,7 +4,7 @@ pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = $(top_builddir)/pkgconfig/libodphelper-linux.pc LIB = $(top_builddir)/lib -AM_CFLAGS = -I$(srcdir)/include +AM_CFLAGS += -I$(srcdir)/include AM_CFLAGS += -I$(top_srcdir)/platform/@with_platform@/include AM_CFLAGS += -I$(top_srcdir)/include AM_CFLAGS += -I$(top_builddir)/platform/@with_platform@/include diff --git a/helper/odph_debug.h b/helper/odph_debug.h index 9c216cd..36c743c 100644 --- a/helper/odph_debug.h +++ b/helper/odph_debug.h @@ -19,10 +19,6 @@ extern "C" { #endif -#ifndef ODPH_DEBUG_PRINT -#define ODPH_DEBUG_PRINT 1 -#endif - /** * log level. */