[PATCH] AT_TESTED: fix regression in word splitting

Eric Blake <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.bugs,gmane.comp.sysutils.autoconf.patches
Message-ID <[email protected]>
Regression introduced in commit 851ef51.

* lib/autotest/general.m4 (AT_TESTED): Rework loop to quote each
element, not the entire argument.
---

This appears to fix the problem (when given AT_TESTED([autoconf automake]),
we were adding "autoconf automake" instead of "autoconf" "automake" to
the list of unique programs), but I'd appreciate an ACK from Paolo to make
sure I didn't break the $EXEEXT handling in the process.

 lib/autotest/general.m4 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/autotest/general.m4 b/lib/autotest/general.m4
index fff6f61..06d7546 100644
--- a/lib/autotest/general.m4
+++ b/lib/autotest/general.m4
@@ -1794,7 +1794,8 @@ m4_defun([AT_ARG_OPTION_ARG],[_AT_ARG_OPTION([$1],[$2],1,[$3],[$4])])
 # must correspond to the version of the package.  PATH should be
 # already preset so the proper executable will be selected.
 m4_define([AT_TESTED],
-[m4_append_uniq_w([AT_tested], ["$1"])])
+[m4_foreach_w([AT_test], [$1],
+  [m4_append_uniq([AT_tested], "m4_defn([AT_test])", [ ])])])


 # AT_COPYRIGHT(TEXT, [FILTER = m4_newline])
-- 
1.8.0.2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.