cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Compiling with the Intel compiler

From: Tor Arntsen <tor_at_spacetec.no>
Date: Mon, 23 Feb 2004 20:25:34 +0100

[replying to myself]

On Feb 23, 19:43, I wrote:
>*However*, I've done some more testing and for some reason autoconf apparently
>detects that the Intel compiler isn't GCC on my i386 box, while it fails to
>do so on my ia64 box.
>
>i386:
>checking for gcc... icc
>checking dependency style of icc... none
>checking whether we are using the GNU C compiler... no
>ia64:
>checking for gcc... icc
>checking dependency style of icc... gcc
>checking whether we are using the GNU C compiler... yes

Well, it turned out that the icc version on the i386 box was 6.0 while
the ia64 version is 8.0 (I had all of 5.0, 6.0 and 8.0 installed on the
ia386 box).

In fact icc 8.0 defines __GNUC__ which is what the configure script checks
for.

It even defines __GNUC__=3 and __GNUC_MINOR__=2!
Intel tries really hard to make this compiler look like gcc, except in
the name. But still, it understands only -Wall, not the individual -W
options. Oh well. We may have to go for the version >= 5 hack for the
ares module as well.

-Tor
Received on 2004-02-23