configure: don't enable GL/X11 without X11
commitde1e483397bfe06b531adbdcd84c8d3d77d30a13
authorStefano Pigozzi <stefano.pigozzi@gmail.com>
Tue, 1 May 2012 10:39:14 +0000 (1 12:39 +0200)
committerUoti Urpala <uau@mplayer2.org>
Thu, 17 May 2012 14:21:57 +0000 (17 17:21 +0300)
treed0bbcf16a001fa2a34bbea88d5268e58e4a9bb63
parentf9beb08a61f5c631bab5c2e06e1ce44aea80dc10
configure: don't enable GL/X11 without X11

The OpenGL autodetection checked for all backends regardless of which
features had been enabled previously. Stop checking for X11 backend if
X11 support is disabled, and stop checking for w32 backend if we are
not on Windows.

This makes the changes in commit 3862d469ae ("configure: OSX: check
for X11 header conflict with corevideo") work as intended. That commit
disabled X11 when a header conflict was detected, but the GL X11
backend could still be autodetected despite that and trigger a
compilation failure.
configure