Re: AC_C_CONST bug?



"Bill Pursell" <bill.pursell@xxxxxxxxx> writes:

Given a stock autoconfiscated project,
If I run configure with CFLAGS="-Wall -Werror", the
macro AC_C_CONST incorrectly determines
that my system doesn't support const because
the test code includes some unused variables
and the -Wall -Werror causes it to fail. It strikes
me that this is a bug with AC_C_CONST, and that
it should save CFLAGS before it attempts
to compile the test code.

Is this a bug with the macro, or am I misunderstanding
something?

It is a bug in the autoconf test. There is no reason for it to run
tests that result in warnings.

--
Måns Rullgård
mans@xxxxxxxxx
.



Relevant Pages