<!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 Fri, 2011-03-04 at 10:50 -0800, Jeremy Huddleston wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
How do I quote []s in m4? I've tried escaping with \, 's, "s, ... I'm out of tricks... I'm trying to update the poll() checks in libxcb and libXt to allow poll on darwin11, but the []s are getting stripped. darwin[789]* is becoming darwin789*, and the \([^ ]*\) in sed is becoming \(^ *\) ...
</PRE>
</BLOCKQUOTE>
Check this out:<BR>
<BR>
<A HREF="http://www.gnu.org/software/autoconf/manual/autoconf.html#Quadrigraphs">http://www.gnu.org/software/autoconf/manual/autoconf.html#Quadrigraphs</A><BR>
<BR>
It is used in a few modules, I am not sure if this will solve the problem, I am not an expert but it's worth a look.<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
Here's what I want to do:
case $host_os in
# darwin through Snow Leopard has poll() but can't be used to poll character devices.
darwin[789]*|darwin10*) ;;
darwin*)
_ac_xorg_macosx_version_min=`echo $CPPFLAGS $CFLAGS | sed 's/^.*-mmacosx-version-min=\([^ ]*\).*$/\1/'`
if test x$_ac_xorg_macosx_version_min = x ; then
_ac_xorg_macosx_version_min=$MACOSX_DEPLOYMENT_TARGET
fi
case $_ac_xorg_macosx_version_min in
10.[0123456]|10.[0123456].*) ;;
*)
AC_CHECK_FUNC(poll, [AC_DEFINE(USE_POLL, 1, [poll() function is available])], )
;;
esac
unset _ac_xorg_macosx_version_min
;;
*)
AC_CHECK_FUNC(poll, [AC_DEFINE(USE_POLL, 1, [poll() function is available])], )
;;
esac
_______________________________________________
<A HREF="mailto:xorg-devel@lists.x.org">xorg-devel@lists.x.org</A>: X.Org development
Archives: <A HREF="http://lists.x.org/archives/xorg-devel">http://lists.x.org/archives/xorg-devel</A>
Info: <A HREF="http://lists.x.org/mailman/listinfo/xorg-devel">http://lists.x.org/mailman/listinfo/xorg-devel</A>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>