<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY>
On Wed, 2010-08-11 at 15:41 +0200, Arnaud Fontaine wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
    <TT><FONT COLOR="#1a1a1a">Would you consider applying the patch adding XORG_CHECK_GNU_M4 macro and</FONT></TT><BR>
    <TT><FONT COLOR="#1a1a1a">also&nbsp; the&nbsp; version&nbsp; bump?&nbsp; Let&nbsp; me&nbsp; know&nbsp; if&nbsp; you&nbsp; want&nbsp; me&nbsp; to&nbsp; correct</FONT></TT><BR>
    <TT><FONT COLOR="#1a1a1a">anything. Thanks much!</FONT></TT><BR>
    <BR>
</BLOCKQUOTE>
<BR>
I have tested the xcb proposed <TT><FONT COLOR="#1a1a1a">XORG_CHECK_GNU_M4</FONT></TT> and I found some problems mainly due<BR>
to assumptions.<BR>
<BR>
<BLOCKQUOTE>
<PRE>
- When m4 is present without -I support (gm4 absent), result is correct,
&nbsp; but m4 is tested twice.
- When m4 is absent and gm4 is present in $PATH (not /usr/gnu/bin)
&nbsp; without -I support, there is no error message when there should be one.
&nbsp; gm4 is tested twice.
- If there is no m4 or gm4 present in $PATH, /usr/gnu/bin/gm4 will not be found
- If a /usr/gnu/bin/gm4 is found, (because there is an m4 in $PATH), it is not
&nbsp; tested for -I support.
- If a gnu processor is named m4 rather than gm4, it will not be found in /usr/gnu/bin.
</PRE>
</BLOCKQUOTE>
I have rewritten my version of the patch and fully tested it. It does not make any assumption other than executable name being m4 or gm4. It should resist changes for a longer period. It would be nice if someone else could test it.<BR>
<BR>
Keep in mind this macro will be there for decades and may be used on platforms you may not expect (GNU/Hurd, embedded systems ...)<BR>
<BR>
Thanks<BR>
<BR>
<BR>
</BODY>
</HTML>