[mutter/wip/wayland: 2/3] configure: Adds --with-xwayland-path option



commit a6d287b2a4c0618ab5e70902ebaa77100cabdeda
Author: Robert Bragg <robert linux intel com>
Date:   Tue Jan 10 18:28:15 2012 +0000

    configure: Adds --with-xwayland-path option
    
    This adds a --with-xwayland-path configure option that can be used to
    specify the absolute path of a headless X server binary supporting
    the wayland xserver protocol.

 configure.in    |    6 ++++++
 src/Makefile.am |    6 ++++++
 2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/configure.in b/configure.in
index a2d3c10..2213df1 100644
--- a/configure.in
+++ b/configure.in
@@ -134,6 +134,11 @@ AC_ARG_WITH([wayland-protocols],
             ],
             [])
 
+AC_ARG_WITH([xwayland-path],
+            [AS_HELP_STRING([--with-xwayland-path], [Absolute path for an X Wayland server])],
+            [XWAYLAND_PATH="$withval"],
+            [XWAYLAND_PATH="$bindir/Xorg"])
+
 ## try definining HAVE_BACKTRACE
 AC_CHECK_HEADERS(execinfo.h, [AC_CHECK_FUNCS(backtrace)])
 
@@ -257,6 +262,7 @@ fi
 if test x$have_wayland = "xyes"; then
   MUTTER_PC_MODULES="$MUTTER_PC_MODULES wayland-server clutter-wayland-compositor-1.0"
   AC_DEFINE(HAVE_WAYLAND, , [Building with Wayland support])
+  AC_SUBST(XWAYLAND_PATH)
 fi
 
 AM_CONDITIONAL(HAVE_WAYLAND, test x$have_wayland = "xyes")
diff --git a/src/Makefile.am b/src/Makefile.am
index 5d5dcb9..2a8575a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -26,6 +26,12 @@ INCLUDES=								\
 	-DMUTTER_PLUGIN_DIR=\"@MUTTER_PLUGIN_DIR \"			\
 	-DGETTEXT_PACKAGE=\"$(GETTEXT_PACKAGE)\"
 
+if HAVE_WAYLAND
+INCLUDES += \
+	-I$(srcdir)/wayland						\
+	-DXWAYLAND_PATH='"@XWAYLAND_PATH@"'
+endif
+
 mutter_built_sources = \
 	mutter-enum-types.h \
 	mutter-enum-types.c



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]