Paolo Bonzini <[EMAIL PROTECTED]> writes: >> +# gl_WARN_ADD([parameter]) adds parameter to WARN_CFLAGS if compiler >> +# supports it. For example, use gl_WARN_ADD([-Werror]). >> +AC_DEFUN([gl_WARN_ADD], >> +[ >> + pushdef([param],[translit([$1],[ABCDEFGHIJKLMNOPQRSTUVWXYZ./-], >> + [abcdefghijklmnopqrstuvwxyz___])]) > > There are m4sh macros AS_VAR_SET, AS_VAR_PUSH, AS_VAR_POP, AS_VAR_IF > that help doing this and support things like > > for i in no-foo bar no-baz; do > gl_WARN_ADD([-W$i]) > done
Ah, seems good! > I can do the change, or you can do it; as you prefer. In any case if > you pushdef you'd better popdef too. :-) Please apply your change and I'll test whether it works for me. /Simon
