>>>>> "Thomas" == Thomas E Dickey <[EMAIL PROTECTED]> writes:

Thomas> His example quoted both the macro names (simple) and their
Thomas> content (harder).  I was asking about the latter.

I see.

Parsing m4 is definitely a hard task.  Either use m4 to do that, or
just use a simple heuristics.  In fact, it can sometimes be wrong to
quote the argument, for instance when you want to duplicate:

define([AC_COPY], defn([AC_ORIGINAL]))

Admittedly there will probably not be such things in the Autoconf
Macro Archive.

A simple check could be something like

define([_AC_DEFUN_ORIG], defn([AC_DEFUN]))
define([AC_DEFUN],
[ifelse($#, 1, [],
        $#, 2, [],
        [errprint(__file__:__line__: broken definition)])
AC_DEFUN([$1], [$2])])

But I doubt that people would provide such broken definitions.

Reply via email to