From patchwork Thu Oct 30 20:47:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 39851 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f72.google.com (mail-ee0-f72.google.com [74.125.83.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A5D7520C70 for ; Thu, 30 Oct 2014 20:47:56 +0000 (UTC) Received: by mail-ee0-f72.google.com with SMTP id d17sf3634715eek.11 for ; Thu, 30 Oct 2014 13:47:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=2eqOlB0wvNQF4V+lruy2NThFgNYwT5Cn1mrzIo8b7J0=; b=M0O+a2cUIlZY6NEpMWsjSUGXn+CbQob5joEu8PMWweyunnL95vvzgFO2jIanvbl8+e 5f6P0S3HnSwc6wJn/vjMgVlNwNZT18pRBa8dOs/OJ8ciBVRbFlRUkEx0IzAphglBbIac nFB2ydHQpH1GZYPB1jtTSZhgqok8x20UJjFGssi8SKriZP+m1wIXlMggXS7WNH3kWjbJ 3Rfwms2LW7BLLAATzhEK+9YGRtbHaqPSQYPYLTHNYhC5Y1NUh7G+j8PHEHHIL3XcOL64 0V+AS/4qEuO2tJKetGPs7k8Qk0Sz4YPmFFcDnC0nJcJEUxfs3W0d46vyo2zV4mTrZMwp gQlg== X-Gm-Message-State: ALoCoQn08eyVg4rz9rm7+x0Fckz4OR/u3UQw9AdGnkGlf6tiZxY0NzkuNpmlgAoTKyfQw/J7LmXg X-Received: by 10.194.172.35 with SMTP id az3mr3296812wjc.0.1414702075850; Thu, 30 Oct 2014 13:47:55 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.202.230 with SMTP id kl6ls410306lac.99.gmail; Thu, 30 Oct 2014 13:47:55 -0700 (PDT) X-Received: by 10.112.144.228 with SMTP id sp4mr21200641lbb.58.1414702075688; Thu, 30 Oct 2014 13:47:55 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id j10si13717169laf.95.2014.10.30.13.47.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 30 Oct 2014 13:47:55 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by mail-lb0-f178.google.com with SMTP id f15so5510063lbj.23 for ; Thu, 30 Oct 2014 13:47:55 -0700 (PDT) X-Received: by 10.152.29.8 with SMTP id f8mr21627298lah.56.1414702075608; Thu, 30 Oct 2014 13:47:55 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp106210lbz; Thu, 30 Oct 2014 13:47:54 -0700 (PDT) X-Received: by 10.224.80.6 with SMTP id r6mr29617662qak.5.1414702074336; Thu, 30 Oct 2014 13:47:54 -0700 (PDT) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id n7si14036578qga.121.2014.10.30.13.47.53 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 30 Oct 2014 13:47:54 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XjwdM-0004ms-KY; Thu, 30 Oct 2014 20:47:52 +0000 Received: from mail-lb0-f180.google.com ([209.85.217.180]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Xjwd5-0004iR-SP for lng-odp@lists.linaro.org; Thu, 30 Oct 2014 20:47:36 +0000 Received: by mail-lb0-f180.google.com with SMTP id z12so4949022lbi.39 for ; Thu, 30 Oct 2014 13:47:29 -0700 (PDT) X-Received: by 10.152.246.4 with SMTP id xs4mr21581989lac.22.1414702049451; Thu, 30 Oct 2014 13:47:29 -0700 (PDT) Received: from localhost (c-853670d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.54.133]) by mx.google.com with ESMTPSA id z4sm3611821laz.39.2014.10.30.13.47.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Oct 2014 13:47:27 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Thu, 30 Oct 2014 21:47:15 +0100 Message-Id: <1414702035-3549-5-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1414702035-3549-1-git-send-email-anders.roxell@linaro.org> References: <1414702035-3549-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 4/4] configure.ac: add configure option to enable ODP_DEBUG X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: 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-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: anders.roxell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Anders Roxell --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configure.ac b/configure.ac index 42a3fed..1c061e9 100644 --- a/configure.ac +++ b/configure.ac @@ -99,6 +99,17 @@ AC_ARG_ENABLE([debug-print], ODP_CFLAGS="$ODP_CFLAGS -DODP_DEBUG_PRINT=$ODP_DEBUG_PRINT" ########################################################################## +# Enable/disable ODP_DEBUG +########################################################################## +ODP_DEBUG=1 +AC_ARG_ENABLE([debug], + [ --enable-debug Enable/disable debug], + [if ! test "x$enableval" = "xyes"; then + ODP_DEBUG=0 + fi]) +ODP_CFLAGS="$ODP_CFLAGS -DODP_DEBUG=$ODP_DEBUG" + +########################################################################## # Check for pthreads availability ##########################################################################