Thomas Jahns:
> Also this is going to cause all sorts problems for compilers that use -W for
> something else entirely, for example on PowerPC xlc has
> -W<program>,<options_list>
> so simply adding some arbitrary -Wsomecharactersequence might easily cause
> catastrophic results later on.

I think that's the whole point of the macro; instead of just adding arbitrary 
flags,
it tests to make sure there are *not* catastrophic effects, but instead, that
the flag is recognized.

> I suggest your macro at least try to make sure
> your compiler is GNU CC before modifying CFLAGS in any way.

I like GNU CC, but I think that would be a mistake.
There are other compilers out there!!

Autoconf should make it easy to automatically work with the
varying compilers (including automatically enabling whatever warning
flags they support, and allowing developers to control them more finely
for their particular project in a relatively compiler-agnostic way).

--- David A. Wheeler

_______________________________________________
Autoconf mailing list
Autoconf@gnu.org
https://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to