xorg-x11-server/0018-xwayland-Introduce-an-auto-mode-for-enable-wayland.patch

46 lines
2.2 KiB
Diff
Raw Normal View History

2013-11-18 22:42:46 +00:00
From d5a81751ea614f75bd4b53fea562667f3fa16c9b Mon Sep 17 00:00:00 2001
2013-09-23 18:10:24 +00:00
From: Daniel Stone <daniel@fooishbar.org>
Date: Tue, 16 Oct 2012 17:14:01 +1100
2013-11-18 22:42:46 +00:00
Subject: [PATCH 18/38] xwayland: Introduce an auto mode for --enable-wayland
2013-09-23 18:10:24 +00:00
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
---
2013-11-18 22:42:46 +00:00
configure.ac | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
2013-09-23 18:10:24 +00:00
diff --git a/configure.ac b/configure.ac
2013-11-18 22:42:46 +00:00
index ab693e9..3699525 100644
2013-09-23 18:10:24 +00:00
--- a/configure.ac
+++ b/configure.ac
2013-11-18 22:42:46 +00:00
@@ -636,7 +636,7 @@ AC_ARG_ENABLE(clientids, AS_HELP_STRING([--disable-clientids], [Build Xorg
2013-09-23 18:10:24 +00:00
AC_ARG_ENABLE(pciaccess, AS_HELP_STRING([--enable-pciaccess], [Build Xorg with pciaccess library (default: enabled)]), [PCI=$enableval], [PCI=yes])
2013-11-06 20:45:57 +00:00
AC_ARG_ENABLE(linux_acpi, AC_HELP_STRING([--disable-linux-acpi], [Disable building ACPI support on Linux (if available).]), [enable_linux_acpi=$enableval], [enable_linux_acpi=yes])
AC_ARG_ENABLE(linux_apm, AC_HELP_STRING([--disable-linux-apm], [Disable building APM support on Linux (if available).]), [enable_linux_apm=$enableval], [enable_linux_apm=yes])
2013-09-23 18:10:24 +00:00
-AC_ARG_ENABLE(wayland, AS_HELP_STRING([--disable-wayland], [Build Wayland extension (default: enabled)]), [WAYLAND=$enableval], [WAYLAND=yes])
+AC_ARG_ENABLE(wayland, AS_HELP_STRING([--disable-wayland], [Build Wayland extension (default: auto)]), [WAYLAND=$enableval], [WAYLAND=auto])
dnl DDXes.
AC_ARG_ENABLE(xorg, AS_HELP_STRING([--enable-xorg], [Build Xorg server (default: auto)]), [XORG=$enableval], [XORG=auto])
2013-11-18 22:42:46 +00:00
@@ -1026,12 +1026,16 @@ if test "x$MITSHM" = xauto; then
2013-09-23 18:10:24 +00:00
MITSHM="$ac_cv_sysv_ipc"
fi
-AM_CONDITIONAL(WAYLAND, [test "x$WAYLAND" = xyes])
+WAYLAND_MODULES="wayland-client libdrm"
+if test "x$WAYLAND" = xauto; then
+ PKG_CHECK_MODULES(XWAYLAND, $WAYLAND_MODULES, [WAYLAND=yes], [WAYLAND=no])
+fi
if test "x$WAYLAND" = xyes; then
+ PKG_CHECK_MODULES(XWAYLAND, $WAYLAND_MODULES)
AC_DEFINE(XORG_WAYLAND, 1, [Support wayland mode])
- REQUIRED_MODULES="$REQUIRED_MODULES wayland-client"
WAYLAND_SCANNER_RULES(['$(top_srcdir)/hw/xfree86/xwayland'])
fi
+AM_CONDITIONAL(WAYLAND, [test "x$WAYLAND" = xyes])
AM_CONDITIONAL(MITSHM, [test "x$MITSHM" = xyes])
if test "x$MITSHM" = xyes; then
--
1.8.3.1