summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa/mesa/dont-fail-if-libX11-isnt-installed.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/mesa/mesa/dont-fail-if-libX11-isnt-installed.patch')
-rw-r--r--meta/recipes-graphics/mesa/mesa/dont-fail-if-libX11-isnt-installed.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-graphics/mesa/mesa/dont-fail-if-libX11-isnt-installed.patch b/meta/recipes-graphics/mesa/mesa/dont-fail-if-libX11-isnt-installed.patch
new file mode 100644
index 0000000000..80735a65e9
--- /dev/null
+++ b/meta/recipes-graphics/mesa/mesa/dont-fail-if-libX11-isnt-installed.patch
@@ -0,0 +1,36 @@
1Upstream-Status: Backport
2
3From d6b06474f69129eb41ecd85d6b3bb0eb7b9dccb3 Mon Sep 17 00:00:00 2001
4From: Daniel Stone <daniel@fooishbar.org>
5Date: Tue, 9 Oct 2012 14:27:06 +1100
6Subject: [PATCH] build: Don't fail if libX11 isn't installed
7
8configure.ac would previously refuse to complete if libX11 wasn't
9installed, even if we'd disabled GLX and weren't building an X11 EGL
10platform. Make the check simply set the no_x variable that's used (but
11never set) immediately below for what looks like this very case.
12
13Signed-off-by: Daniel Stone <daniel@fooishbar.org>
14Reviewed-by: Matt Turner <mattst88@gmail.com>
15Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
16(cherry picked from commit 4004620d34a580c8fdb965d9b640e97453fc8b28)
17---
18 configure.ac | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21diff --git a/configure.ac b/configure.ac
22index eb273b9..b384b44 100644
23--- a/configure.ac
24+++ b/configure.ac
25@@ -836,7 +836,7 @@ if test "x$enable_dri" = xyes; then
26 fi
27
28 dnl Find out if X is available.
29-PKG_CHECK_MODULES([X11], [x11])
30+PKG_CHECK_MODULES([X11], [x11], [no_x=no], [no_x=yes])
31
32 dnl Try to tell the user that the --x-* options are only used when
33 dnl pkg-config is not available. This must be right after AC_PATH_XTRA.
34--
351.7.10.4
36