]> git.ipfire.org Git - thirdparty/autoconf.git/commit
Improve AC_DEFUN_ONCE semantics.
authorEric Blake <ebb9@byu.net>
Mon, 26 Jan 2009 16:55:57 +0000 (09:55 -0700)
committerEric Blake <ebb9@byu.net>
Mon, 26 Jan 2009 16:55:57 +0000 (09:55 -0700)
commit9f32bcf860f1d38a97f4c6a2f41f315287fece88
tree760bd8c7ef4f3d31dd696539ad59aa72b41b252d
parent2cc17c497c28815697373fd2b0e1d0f447fa8064
Improve AC_DEFUN_ONCE semantics.

* lib/m4sugar/m4sugar.m4 (m4_defun_once): Rewrite to be no-op,
rather than warning, on second use, and make sure first use never
occurs out of order.
* tests/m4sugar.at (m4@&t@_require: one-shot initialization):
Enhance test.
* tests/base.at (AC_REQUIRE & AC_DEFUN_ONCE: [Require, expand],
(AC_REQUIRE & AC_DEFUN_ONCE: [Expand, require]): Adjust tests.
* NEWS: Document this.
* doc/autoconf.texi (Macro Definitions) <AC_DEFUN>: Mention
AC_DEFUN_ONCE.
(Prerequisite Macros) <AC_REQUIRE>: Likewise.
(Expanded Before Required): Likewise.
(One-Shot Macros) <AC_DEFUN_ONCE>: Document new semantics.
Reported by Bruno Haible, with suggestion by Paolo Bonzini.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
NEWS
doc/autoconf.texi
lib/m4sugar/m4sugar.m4
tests/base.at
tests/m4sugar.at