autoconf
[Top][All Lists]
Advanced

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

Re: Expressions evaluation order using AC_PROG_CXX and AC_PROG_CC?


From: Assar Westerlund
Subject: Re: Expressions evaluation order using AC_PROG_CXX and AC_PROG_CC?
Date: 29 May 2003 13:21:36 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

David Svoboda <address@hidden> writes:
> In addition - why it is not possible to have several calls to AC_PROG_CC
> under different conditiionals? Does it mean, than even there are
> conditionals, all the expressions (macros) are valuated?

There are two phases, one during m4 processing (while running m4), and
at that point all code is expanded and there is no way of knowing if
the code will actually be run or not.  The other is when running
configure through sh.

You could argue that this is a bug and that it should be possible to
have AC_PROG_CC in conditionals, but it's a bit of work to fix this
and I don't think you need it.




reply via email to

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