[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
- to conditionally test, or not to conditionally test?, Ed Hartnett, 2005/05/20
- Re: to conditionally test, or not to conditionally test?, Ralf Wildenhues, 2005/05/25
- Re: to conditionally test, or not to conditionally test?, Stepan Kasal, 2005/05/26
- Re: to conditionally test, or not to conditionally test?, Ralf Corsepius, 2005/05/27
- Re: to conditionally test, or not to conditionally test?,
Stepan Kasal <=
- Re: to conditionally test, or not to conditionally test?, Ralf Corsepius, 2005/05/27
- Re: to conditionally test, or not to conditionally test?, Stepan Kasal, 2005/05/27