According to Niels Lohmann on 2/5/2010 3:50 AM: > This all works, but if (by accident), a check in configure.ac is deleted, say > than one for WGET, then tests/package.m4 ends up with an unresolved > substitution: > > m4_define([WGET], [...@wget@])
Yes, any attempt to expand WGET in m4 at that point results in an infinite m4 loop; there's nothing autom4te can do about user input error. WGET -> @WGET@ -> @@WGET@@ -> @@@WGET@@@ ... You can avoid infinite recursion with more quoting: m4_define([WGET], [...@wget@]]) to make it obvious that the expansion of WGET should not undergo further expansion. But Ralf had a good point - why are you even using m4 substitution into @@ variables in the first place? -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net
signature.asc
Description: OpenPGP digital signature