]> git.ipfire.org Git - thirdparty/autoconf.git/commit
The current implementation of AC_REQUIRE fails on
authorAkim Demaille <akim@epita.fr>
Mon, 26 Jun 2000 09:06:02 +0000 (09:06 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 26 Jun 2000 09:06:02 +0000 (09:06 +0000)
commit12e3a8ea6e6a8b8c4f70db8b9bafca55c813e3ff
tree8d612af9ac71a84313df3cccf0b2e0b0bb6ac3f1
parent439ddf91408d631b84d2b3c544b19d239e746d27
The current implementation of AC_REQUIRE fails on

| AC_DEFUN([TEST1],  [REQUIRE([TEST2a])REQUIRE([TEST2b])])
| AC_DEFUN([TEST2a], [])
| AC_DEFUN([TEST2b], [REQUIRE([TEST3])])
| AC_DEFUN([TEST3],  [REQUIRE([TEST2a])])
|
| AC_INIT
| TEST1

because it produces TEST3; TEST2a; TEST2b; TEST1.
Fix this bug, implement the solution provided by Axel Thimm,
and test AC_REQUIRE.

* acgeneral.m4: Document this implementation.
(_AC_DEFUN_PRO, _AC_DEFUN_EPI, AC_REQUIRE): Be sure that macros
are emitted in the same order as they are expanded.
(AC_REQUIRE): Forbid being calling out of an AC_DEFUN'd macro (in
particular the top level).
* tests/base.m4 (AC_REQUIRE): New test.
ChangeLog
NEWS
THANKS
acgeneral.m4
lib/autoconf/general.m4
tests/base.m4