autoconf
[Top][All Lists]
Advanced

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

Re: to conditionally test, or not to conditionally test?


From: Stepan Kasal
Subject: Re: to conditionally test, or not to conditionally test?
Date: Fri, 27 May 2005 09:44:57 +0200
User-agent: Mutt/1.4.1i

Hi,

On Fri, May 27, 2005 at 08:17:58AM +0200, Ralf Corsepius wrote:
> On Thu, 2005-05-26 at 09:50 +0200, Stepan Kasal wrote:
> > 
> > The advice ``perform all tests unconditionally'' is a workaround
> > to fix current limitations of the implementation.
...
> 
> It actually should be "perform all tests for compilers unconditionally",
> i.e. try using AC_PROG_<language> unconditionally, because autoconf
> can't handle "using AC_PROG_<language> conditionally".

I wouldn't say so.

The problem is that if macro BAR contains AC_REQUIRE([FOO]), then FOO
is expanded inside the `if' and may escape execution.

It's hard to tell whether a macro calls AC_REQUIRE.  (It can call it
indirectly.)

A real fix will be to use shell functions to reimplement AC_REUIRE,
in autoconf-3.

Have a nice day,
        Stepan




reply via email to

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