2005-01-03 Stepan Kasal * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting. Index: lib/m4sugar/m4sh.m4 =================================================================== RCS file: /cvsroot/autoconf/autoconf/lib/m4sugar/m4sh.m4,v retrieving revision 1.130 diff -u -r1.130 m4sh.m4 --- lib/m4sugar/m4sh.m4 1 Jan 2005 07:54:03 -0000 1.130 +++ lib/m4sugar/m4sh.m4 3 Jan 2005 17:28:25 -0000 @@ -131,6 +131,11 @@ # bar1=`echo $bar` # bar2=`echo $bar` # +# Due to the simple implementation, all the AS_REQUIRE calls have to be at +# the very begining of the bacro body, or the AS_REQUIRE's may not be nested. +# More exactly, if a macro doesn't have all AS_REQUIRE's at its beginning, +# it may not be AS_REQUIRE'd. +# m4_define([AS_REQUIRE], [m4_provide_if([$1], [], [m4_divert_text([M4SH-INIT], [m4_default([$2], [$1])])])])