# HG changeset patch # User reimar # Date 1337366066 0 # Node ID 2292b00862af4c6a6aed2a4ff89d781986652bd8 # Parent 1e764ecad726f3d55c9e786b77a589e54cf4a740 Only try to build vo gl with X11/win32 backends if these were detected. Fixes compilation with --disable-x11 or when X11 headers are available but not the libraries. diff -r 1e764ecad726 -r 2292b00862af configure --- a/configure Fri May 18 18:30:35 2012 +0000 +++ b/configure Fri May 18 18:34:26 2012 +0000 @@ -5147,19 +5147,19 @@ EOF _gl=no for ld_tmp in "" -lGL "-lGL -lXdamage" "-lGL $ld_pthread" ; do - if cc_check $ld_tmp ; then + if test "$_x11" = yes && cc_check $ld_tmp ; then _gl=yes _gl_x11=yes libs_mplayer="$libs_mplayer $ld_tmp $ld_dl" break fi done - if cc_check -DGL_EGL_X11 -lEGL ; then + if test "$_x11" = yes && cc_check -DGL_EGL_X11 -lEGL ; then _gl=yes _gl_egl_x11=yes libs_mplayer="$libs_mplayer -lEGL $ld_dl" fi - if cc_check -DGL_WIN32 -lopengl32 ; then + if win32 && cc_check -DGL_WIN32 -lopengl32 ; then _gl=yes _gl_win32=yes libs_mplayer="$libs_mplayer -lopengl32 -lgdi32"