configure.ac: Don't check for X11 unconditionally.
authorMatt Turner <mattst88@gmail.com>
Mon, 4 Mar 2013 18:23:54 +0000 (10:23 -0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 5 Mar 2013 19:02:22 +0000 (11:02 -0800)
X11 is already checked conditionally below.

Fixes OSMesa-only configurations to not require X11.

Note: This is a candidate for the 9.1 branch.
Reviewed-by: Brian Paul <brianp@vmware.com>
configure.ac

index 7852595..1b13d06 100644 (file)
@@ -832,20 +832,12 @@ if test "x$enable_dri" = xyes; then
     fi
 fi
 
-dnl Find out if X is available.
-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.
 m4_divert_once([HELP_BEGIN],
 [These options are only used when the X libraries cannot be found by the
 pkg-config utility.])
 
-dnl We need X for xlib and dri, so bomb now if it's not found
-if test "x$enable_glx" = xyes -a "x$no_x" = xyes; then
-    AC_MSG_ERROR([X11 development libraries needed for GLX])
-fi
-
 dnl Direct rendering or just indirect rendering
 case "$host_os" in
 gnu*)