Re: [Fresco-devel] Bug 223 - "*-config scripts have inappropriate --cxxflags output"

Stefan Seefeld <[email protected]> Mon, 31 Mar 2003 09:28:14 -0500
Newsgroups gmane.comp.video.fresco.devel
Message-ID <[email protected]>
sashan wrote:

> Ok. How would you go about changing that? I guess it means editing the 
> configure.ac file, since that's what generates the configure file where 
> the CXXFLAGS are set, which means finding out about all the AC_* macros.

The culprit seems to be autoconf itself, or, more specifically, the
macro definitions that it uses internally. If it detects that the 
compiler is gcc, it sets itself CFLAGS to "-O2 -g".

We thus need a way to either prevent autoconf from setting these
variables, or simply revert it. I guess the difficulties are to do that
in a generic way without any sideeffects.

You may ask on the autoconf list whether there is a way to influence
this behavior.

Regards,
	Stefan