| On Mar 10, 2000, Akim Demaille <[EMAIL PROTECTED]> wrote:
| > Hey, I have an obscure idea :-]
| ^ :-)
|
| > How about using m4 to filter out those guys :)
|
| Yep, I had thought of that. But if we can make egrep work, m4 is
| overkill.
Nah, you still don't have the m4 spirit. In fact, RMS did a big
mistake with elisp, m4 is a fine kitchen sink ;)
It is absolutely an overkill, and I'm looking for something more
readable.
I just noticed that Automake replaces all the \-continuation lines
with a single space, so I can to this for half of the problem:
FILTER_MACROS = egrep -v -e \
`echo '^AC_ARG_VAR$$\
^AC_CHECK_\(DECL\|FILE\|FUNC\|HEADER\|MEMBER\|PROG\|SIZEOF\|TYPE\)S\?$$\
^AC_CONFIG\
^AC_INIT\
^AC_LINKER_OPTION$$\
^AC_LINK_FILES$$\
^AC_LIST_MEMBER_OF$$\
^AC_PATH_\(TOOL\|PROG\)S\?$$\
^AC_PROG_\(CC\|CXX\|F77\)_\(GNU\|WORKS\)$$\
^AC_REPLACE_FUNCS$$\
^AC_SEARCH_LIBS$$\
^AC_TRY\
_AC_' | tr ' ' '|'`
which gives, in Makefile.in:
FILTER_MACROS = egrep -v -e `echo '^AC_ARG_VAR$$
^AC_CHECK_\(DECL\|FILE\|FUNC\|HEADER\|MEMBER\|PROG\|SIZEOF\|TYPE\)S\?$$ ^AC_CONFIG
^AC_INIT ^AC_LINKER_OPTION$$ ^AC_LINK_FILES$$ ^AC_LIST_MEMBER_OF$$
^AC_PATH_\(TOOL\|PROG\)S\?$$ ^AC_PROG_\(CC\|CXX\|F77\)_\(GNU\|WORKS\)$$
^AC_REPLACE_FUNCS$$ ^AC_SEARCH_LIBS$$ ^AC_TRY _AC_' | tr ' ' '|'`
What do you think?
Akim
PS/ Eerrr, will remove all those backslashes right now :)