build: Don't fail if libX11 isn't installed
authorDaniel Stone <daniel@fooishbar.org>
Tue, 9 Oct 2012 03:27:06 +0000 (14:27 +1100)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 15 Oct 2012 03:41:35 +0000 (20:41 -0700)
configure.ac would previously refuse to complete if libX11 wasn't
installed, even if we'd disabled GLX and weren't building an X11 EGL
platform.  Make the check simply set the no_x variable that's used (but
never set) immediately below for what looks like this very case.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
configure.ac

index 6c7a1929eb5022792f8271742f6b252ff6da1134..aa72523c0a53002b865d3f21ab78f9156b09c2c3 100644 (file)
@@ -810,7 +810,7 @@ if test "x$enable_dri" = xyes; then
 fi
 
 dnl Find out if X is available.
-PKG_CHECK_MODULES([X11], [x11])
+PKG_CHECK_MODULES([X11], [x11], [no_x=no], [no_x=yes])
 
 dnl Try to tell the user that the --x-* options are only used when
 dnl pkg-config is not available. This must be right after AC_PATH_XTRA.