On Thu, 2004-11-18 at 11:55 +0100, Andreas Schwab wrote:
> Stepan Kasal <[EMAIL PROTECTED]> writes:
> 
> > out of curiosity, what would be wrong with the following?
> >
> >         if test -n "${CXXFLAGS}"; then
> >           CXXFLAGS="-g"
> >         fi
> >         AC_PROG_CXX
> 
> I think you got it backwards.  This makes it impossible to override
> CXXFLAGS.

Isn't the snippet below sufficient?
CXXFLAGS=${CXXFLAGS--g}
AC_PROG_CXX

Ralf





Reply via email to