Mercurial > mplayer.hg
diff configure @ 30021:7f09bc7a4279
Make the check for X11 and WIN32 backends for OpenGL separate.
This fixes compilation on Windows with X11 but no GLX available.
author | reimar |
---|---|
date | Sat, 19 Dec 2009 10:52:32 +0000 |
parents | 72279983abb0 |
children | b7a703cf9178 |
line wrap: on
line diff
--- a/configure Fri Dec 18 20:27:35 2009 +0000 +++ b/configure Sat Dec 19 10:52:32 2009 +0000 @@ -4922,11 +4922,14 @@ _gl=no if cc_check -lGL $_ld_lm ; then _gl=yes + _gl_x11=yes libs_mplayer="$libs_mplayer -lGL $_ld_dl" elif cc_check -lGL $_ld_lm $_ld_pthread ; then _gl=yes + _gl_x11=yes libs_mplayer="$libs_mplayer -lGL $_ld_pthread $_ld_dl" - elif cc_check -DGL_WIN32 -lopengl32 ; then + fi + if cc_check -DGL_WIN32 -lopengl32 ; then _gl=yes _gl_win32=yes libs_mplayer="$libs_mplayer -lopengl32 -lgdi32" @@ -4936,14 +4939,20 @@ fi if test "$_gl" = yes ; then def_gl='#define CONFIG_GL 1' + _res_comment="backends:" if test "$_gl_win32" = yes ; then def_gl_win32='#define GL_WIN32 1' - _res_comment="win32 version" + _res_comment="$_res_comment win32" + fi + if test "$_gl_x11" = yes ; then + def_gl_x11='#define GL_X11 1' + _res_comment="$_res_comment x11" fi _vomodules="opengl $_vomodules" else def_gl='#undef CONFIG_GL' def_gl_win32='#undef GL_WIN32' + def_gl_x11='#undef GL_X11' _novomodules="opengl $_novomodules" fi echores "$_gl" @@ -8280,6 +8289,7 @@ GGI = $_ggi GL = $_gl GL_WIN32 = $_gl_win32 +GL_X11 = $_gl_x11 GUI = $_gui GUI_GTK = $_gui_gtk GUI_WIN32 = $_gui_win32 @@ -8802,6 +8812,7 @@ $def_gif_tvt_hack $def_gl $def_gl_win32 +$def_gl_x11 $def_ivtv $def_jpeg $def_kva