autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checking for GCC 4


From: Ralf Corsepius
Subject: Re: Checking for GCC 4
Date: Fri, 03 Feb 2006 10:20:12 +0100

On Fri, 2006-02-03 at 07:51 +0000, Harlan Stenn wrote:
> > > > Why on earth would you want to run something conditionally, depending on
> > > > which compilers it had been compiled with?

> > In case of cross-compilation, they are always user-specified input
> > (--host=mytarget), and not automatically detected - This makes a huge
> > difference: User input vs. fragile and error-prone checks.

> And I'm not sure which is more fragile, user input or coded checks.
Best would be functional and safe automatic checks ;)

The worst are semi-thought out automatic checks silently failing and
producing bogus results. A GCC version check definitely from of this
class, due to the reasons I gave in my initial reply.

Ralf






reply via email to

[Prev in Thread] Current Thread [Next in Thread]