From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roger Pau Monne Subject: Re: [PATCH 3/3] autoconf: correctly parse *_INCLUDES and *_LIB env vars Date: Tue, 26 Jun 2012 17:32:41 +0100 Message-ID: <4FE9E429.4040105@citrix.com> References: <1336745632-28158-1-git-send-email-roger.pau@citrix.com> <1336745632-28158-4-git-send-email-roger.pau@citrix.com> <20434.6341.292944.748723@mariner.uk.xensource.com> <4FD72FD2.3040008@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4FD72FD2.3040008@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Roger Pau Monne wrote: > Ian Jackson wrote: >> Roger Pau Monne writes ("[Xen-devel] [PATCH 3/3] autoconf: correctly parse *_INCLUDES and *_LIB env vars"): >>> Parse those options correctly, since the "+=" operator is not valid. >>> Also added CPPFLAGS, so headers checks don't give strange results. >> ... >>> CFLAGS="$PREPEND_CFLAGS $CFLAGS $APPEND_CFLAGS" >>> +CPPFLAGS="$CFLAGS" > > Without this I get the following (harmless but noisy) error: > > checking yajl/yajl_version.h usability... yes > checking yajl/yajl_version.h presence... no > configure: WARNING: yajl/yajl_version.h: accepted by the compiler, > rejected by the preprocessor! > configure: WARNING: yajl/yajl_version.h: proceeding with the compiler's > result > >> Surely that can't be right. > > From http://www.edwardrosten.com/code/autoconf/: > > "Just append stuff to CFLAGS (for the C compiler), CPPFLAGS (for the C > preprocessor, C and C++ compilers), CXXFLAGS (for the C++ compiler) and > LIBS (for the linker)." > > It seems like the preprocessor check uses CPPFLAGS instead of CFLAGS, so > we have to set both. Any news on this one? Thanks, Roger.