-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Andreas Schwab on 4/4/2009 5:02 AM:
> With the following input autoconf 2.63b expands macros out of order:
> 
> $ cat configure.ac
> AC_INIT(configure.ac)
> AC_DEFUN([FOO], [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [])])])
> AC_DEFUN([BAR], [AC_PROG_CC
> FOO])
> BAR
> AC_OUTPUT
> $ autoconf
> configure.ac:5: warning: AC_REQUIRE: `AC_PROG_CC' was expanded before it was 
> required
> 
> This is a regression from 2.63.  When I remove the m4_expand_once calls
> from AC_PROG_CC then I get at least correct output, albeit duplicated.

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, 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])

- --
Don't work too hard, make some time for fun as well!

Eric Blake             [email protected]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknXcoIACgkQ84KuGfSFAYDk3QCcCYPHUVNl9S8/82gbXj6NG/eB
y/QAoJhwmy2rJxPtk1kahoRfwl++wpLw
=JkuH
-----END PGP SIGNATURE-----


Reply via email to