bug-autoconf
[Top][All Lists]
Advanced

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

Re: autoconf 2.63b: wrong macro expansion order


From: Andreas Schwab
Subject: Re: autoconf 2.63b: wrong macro expansion order
Date: Sat, 04 Apr 2009 18:31:09 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux)

Eric Blake <address@hidden> writes:

> I'm looking into it now.  So you changed the two lines:
>
> m4_expand_once([_AC_COMPILER_EXEEXT])[]dnl
> m4_expand_once([_AC_COMPILER_OBJEXT])[]dnl
>
> in AC_PROG_CC and things improved?  Did you just delete the m4_expand_once
> and do a direct call to those two macros,

Yes.  Of course, the warning will remain and everything is duplicated.
But autoconf 2.63 did the right thing here.

> or did you delete the entire line?
>
> Meanwhile, does it fix things to change the definition of BAR to be:
>
> AC_DEFUN([BAR], [AC_REQUIRE([AC_PROG_CC])
> FOO])

It does fix this case, but would not be an option for the original test
case, where additional text is expected to be emitted before the
expansion of AC_PROG_CC.  This was extracted from the KDE3 autoconf
macros (with BAR == AC_CHECK_COMPILERS and FOO ==
KDE_CHECK_FOR_BAD_COMPILER).

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

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