cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: configure and ICC

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 29 Mar 2006 16:39:28 +0200 (CEST)

On Wed, 29 Mar 2006, Tor Arntsen wrote:

> One way to fix this is to somehow get the option "-we 147" (=make prototype
> mismatch an error instead of a warning) shoehorned into $CC for the
> configure script, if compiler is icc. I've tested this and it works. I've
> been staring at autoconf and the macros, but it isn't obvious to me how to
> do that, at least not without getting it set also for the actual build
> (which might not be bad though).

The correct approach would then probably be to:

1 - save current CFLAGS value
2 - detect ICC (by moving the icc-detect feature from acinclude.m4)
3 - if it truly is ICC, add the compiler switch to the CFLAGS variable
4 - perform the gethostby*_r checks
5 - restore the CFLAGS variable from step 1

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-03-29