From patchwork Thu Dec 11 15:13:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 42150 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f71.google.com (mail-ee0-f71.google.com [74.125.83.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CA21326C6D for ; Thu, 11 Dec 2014 15:14:08 +0000 (UTC) Received: by mail-ee0-f71.google.com with SMTP id c13sf3842165eek.6 for ; Thu, 11 Dec 2014 07:14:08 -0800 (PST) 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:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=XbbkWDYY4qc62KSn1KIQCcGTZPxr8O3eADZ/EUBitZE=; b=kNPA1EchfenEUE3ir/XgomCQJQPAt3ScDhxygdsHh+gYC1EBWgwRCuJnvkEdAaPqhm K2ToXGuB/D+Jg+sLKW6/8hmNNvbRcX4jgTXzwl8YkMAepR9juWFx0h5DTbfBIWvIhBEO UjsYmTfEnnm/4+SbPgUgt2cyE+Pg1C2v2Lb536RJRR40v43PKtklx+JzLC+6+h5fUaee Z/+L6jflU10n6+72ynghNo1h5SrA+ZOAWzLhY19SH0ivP7qt4EvS7WoVkDS7i6wIInbC j+wIXkBXzTQUi6ZUQ4V9xuhMt1lEfEacuDNj+Ns+w+QziQ2S7s24y0TvcpvC/wGjlWBL tbtQ== X-Gm-Message-State: ALoCoQmO/LqPmm0XmJ9IJwvTSr+9goXQfVYbvNTWGGvv2Wm58NNAk/ZSCS4ROHoms4ktVkt5cV7h X-Received: by 10.194.71.48 with SMTP id r16mr17782wju.7.1418310848059; Thu, 11 Dec 2014 07:14:08 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.4.227 with SMTP id n3ls73171lan.75.gmail; Thu, 11 Dec 2014 07:14:07 -0800 (PST) X-Received: by 10.112.145.37 with SMTP id sr5mr10723526lbb.76.1418310847807; Thu, 11 Dec 2014 07:14:07 -0800 (PST) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id vr4si1546393lbb.110.2014.12.11.07.14.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 11 Dec 2014 07:14:07 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by mail-lb0-f169.google.com with SMTP id p9so4290903lbv.14 for ; Thu, 11 Dec 2014 07:14:07 -0800 (PST) X-Received: by 10.152.205.11 with SMTP id lc11mr10504103lac.34.1418310847628; Thu, 11 Dec 2014 07:14:07 -0800 (PST) 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.142.69 with SMTP id ru5csp554323lbb; Thu, 11 Dec 2014 07:14:06 -0800 (PST) X-Received: by 10.140.109.102 with SMTP id k93mr19460201qgf.83.1418310838152; Thu, 11 Dec 2014 07:13:58 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id h70si1467673qge.126.2014.12.11.07.13.55 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 11 Dec 2014 07:13:58 -0800 (PST) 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 1Xz5RB-00039K-Ht; Thu, 11 Dec 2014 15:13:53 +0000 Received: from mail-lb0-f182.google.com ([209.85.217.182]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Xz5R1-00036t-It for lng-odp@lists.linaro.org; Thu, 11 Dec 2014 15:13:43 +0000 Received: by mail-lb0-f182.google.com with SMTP id f15so4719021lbj.13 for ; Thu, 11 Dec 2014 07:13:38 -0800 (PST) X-Received: by 10.152.19.71 with SMTP id c7mr10351252lae.79.1418310817932; Thu, 11 Dec 2014 07:13:37 -0800 (PST) Received: from localhost (c-853670d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.54.133]) by mx.google.com with ESMTPSA id d5sm472841laf.13.2014.12.11.07.13.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Dec 2014 07:13:36 -0800 (PST) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Thu, 11 Dec 2014 16:13:30 +0100 Message-Id: <1418310812-10965-2-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1418310812-10965-1-git-send-email-anders.roxell@linaro.org> References: <1418310812-10965-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 1/3] configure.ac: remove cunit warning 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.169 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 Changed CFLAGS to CPPFLAGS in relevant places to remove the warnings: configure: WARNING: CUnit/Basic.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: CUnit/Basic.h: proceeding with the compiler's result Reported-by: Mike Holmes Signed-off-by: Anders Roxell --- configure.ac | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 2f27261..b185a41 100644 --- a/configure.ac +++ b/configure.ac @@ -77,7 +77,7 @@ AC_ARG_WITH([cunit-path], AC_HELP_STRING([--with-cunit-path=DIR Path to Cunit libs and headers], [(or in the default path if not specified).]), [CUNIT_PATH=$withval - AM_CFLAGS="$AM_CFLAGS -I$CUNIT_PATH/include" + AM_CPPFLAGS="$AM_CPPFLAGS -I$CUNIT_PATH/include" AM_LDFLAGS="$AM_LDFLAGS -L$CUNIT_PATH/lib" cunit_support=yes],[]) @@ -130,7 +130,7 @@ AC_ARG_WITH([openssl-path], AC_HELP_STRING([--with-openssl-path=DIR Path to openssl libs and headers], [(or in the default path if not specified).]), [OPENSSL_PATH=$withval - AM_CFLAGS="$AM_CFLAGS -I$OPENSSL_PATH/include" + AM_CPPFLAGS="$AM_CPPFLAGS -I$OPENSSL_PATH/include" AM_LDFLAGS="$AM_LDFLAGS -L$OPENSSL_PATH/lib" ],[AC_MSG_RESULT([no])]) @@ -138,9 +138,9 @@ AC_HELP_STRING([--with-openssl-path=DIR Path to openssl libs and headers], # Save and set temporary compilation flags ########################################################################## OLD_LDFLAGS=$LDFLAGS -OLD_CFLAGS=$CFLAGS +OLD_CPPFLAGS=$CPPFLAGS LDFLAGS="$AM_LDFLAGS $LDFLAGS" -CFLAGS="$AM_CFLAGS $CFLAGS" +CPPFLAGS="$AM_CPPFLAGS $CPPFLAGS" ########################################################################## # Check for CUnit availability @@ -169,7 +169,7 @@ AC_CHECK_HEADERS([openssl/des.h openssl/rand.h openssl/hmac.h openssl/evp.h], [] # Restore old saved variables ########################################################################## LDFLAGS=$OLD_LDFLAGS -CFLAGS=$OLD_CFLAGS +CPPFLAGS=$OLD_CPPFLAGS ########################################################################## # Default warning setup @@ -212,6 +212,7 @@ AC_SEARCH_LIBS([timer_create],[rt posix4]) AM_LDFLAGS="$AM_LDFLAGS -pthread -lrt" AC_SUBST([LIBS]) +AC_SUBST([AM_CPPFLAGS]) AC_SUBST([AM_CFLAGS]) AC_SUBST([CFLAGS]) AC_SUBST([AM_LDFLAGS])