<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 14-04-06 06:02 AM, Yaakov (Cygwin/X)
wrote:<br>
</div>
<blockquote cite="mid:53412647.7030502@users.sourceforge.net"
type="cite">
<blockquote type="cite" style="color: #000000;">Any idea how to
fix this? I would prefer that the RC I'm still trying to
<br>
construct will build for most people...
<br>
</blockquote>
<br>
Adding a copy of wayland-scanner.m4 to m4/ should work.
<br>
</blockquote>
This would work if this macro does not itself introduces more
dependencies. The drawback is dual maintenance, as it must be
updated when the original one is changed. In addition, a user could
end up with both out-of-sync macros being on the search path, not
really aware of which one will be picked-up.<br>
<br>
Another approach is to adopt the common idiom for "auto" detected
features. If the macro is missing, for whatever reason, disable
wayland building. It will require some m4 coding.<br>
<br>
Something like this:<br>
<blockquote><tt>diff --git a/configure.ac b/configure.ac</tt><tt><br>
</tt><tt>index 70eceab..b13f180 100644</tt><tt><br>
</tt><tt>--- a/configure.ac</tt><tt><br>
</tt><tt>+++ b/configure.ac</tt><tt><br>
</tt><tt>@@ -2442,6 +2442,8 @@ AM_CONDITIONAL(XFAKESERVER, [test
"x$KDRIVE" = xyes && test "x$XFAKE" = xyes])</tt><tt><br>
</tt><tt> dnl Xwayland DDX</tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt> PKG_CHECK_MODULES(XWAYLANDMODULES, [wayland-client
libdrm epoxy], [have_xwayland=yes], [have_xwayland=no])</tt><tt><br>
</tt><tt>+<b>m4_ifdef([WAYLAND_SCANNER_RULES]</b><b>,
[have_xwayland=yes], [have_xwayland=no])</b></tt><tt><br>
</tt><tt>+</tt><tt><br>
</tt><tt> AC_MSG_CHECKING([whether to build Xwayland DDX])</tt><tt><br>
</tt><tt> if test "x$XWAYLAND" = xauto; then</tt><tt><br>
</tt><tt> XWAYLAND="$have_xwayland"</tt><tt><br>
</tt><tt>@@ -2458,7 +2460,8 @@ if test "x$XWAYLAND" = xyes; then</tt><tt><br>
</tt><tt> XWAYLAND_SYS_LIBS="$XWAYLANDMODULES_LIBS
$GLX_SYS_LIBS"</tt><tt><br>
</tt><tt> AC_SUBST([XWAYLAND_LIBS])</tt><tt><br>
</tt><tt> AC_SUBST([XWAYLAND_SYS_LIBS])</tt><tt><br>
</tt><tt>- WAYLAND_SCANNER_RULES(['$(top_srcdir)/hw/xwayland'])</tt><tt><br>
</tt><tt>+ <b>m4_ifdef([WAYLAND_SCANNER_RULES],
WAYLAND_SCANNER_RULES(['$(top_srcdir)/hw/xwayland']))</b></tt><tt><br>
</tt><tt>+ </tt><tt><br>
</tt><tt> fi</tt><tt><br>
</tt></blockquote>
Not tested with xwayland installed, but no more build breaks without
xwayland. Worth a try.<br>
</body>
</html>