m4_foreach_w and "options"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hey

usually, when we want to write an m4 macro that will be used like that:

my_macro([foo1 foo2])

we can use m4_foreach_w:

AC_DEFUN([my_macro],
[
m4_foreach_w([fct], [$2], [my_check(m4_defn([fct]))])
])

But I would like to write am m4 macro that would be used like that:

my_macro([foo1 foo2], [bar1 bar2])

and I would like to "associate" bar1 to foo1 and bar2 to foo2 (bar* would options for the macros called by m4_foreach_w() in my_check (see above)), that is

for foo1, my_check would be called with bar1
for foo2, my_check would be called with bar2

is it possible ?

thank you

Vincent Torri

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux