summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-09-19 14:33:51 +0000
committerfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-09-19 14:33:51 +0000
commitae1496e7df46e632d32d0c85b20c96125f22fdbb (patch)
tree1f3aa07c98da0ff78fa8761d8b5da5b34e62e7da /configure
parent5b40cac6ba7d21bd2c1b924ed085cfead697d27f (diff)
downloadmpv-ae1496e7df46e632d32d0c85b20c96125f22fdbb.tar.bz2
mpv-ae1496e7df46e632d32d0c85b20c96125f22fdbb.tar.xz
vo_gl2 port to win32 patch by Tristan Seligmann <mithrandi-mplayer-dev-eng at mithrandi.za.net>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10881 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure15
1 files changed, 13 insertions, 2 deletions
diff --git a/configure b/configure
index d8813b554a..3edb2a8e39 100755
--- a/configure
+++ b/configure
@@ -2940,7 +2940,7 @@ fi
echocheck "OpenGL"
cygwin && _gl=no
#Note: this test is run even with --enable-gl since we autodetect $_ld_gl
-if test "$_x11" = yes && test "$_gl" != no ; then
+if (test "$_x11" = yes || mingw32) && test "$_gl" != no ; then
cat > $TMPC << EOF
#include <GL/gl.h>
int main(void) { return 0; }
@@ -2952,16 +2952,26 @@ EOF
elif cc_check $_inc_x11 $_ld_x11 -lGL -lm $_ld_pthread ; then
_gl=yes
_ld_gl="-lGL $_ld_pthread"
+ elif cc_check -lopengl32 ; then
+ _gl=yes
+ _gl_win32=yes
+ _ld_gl="-lopengl32 -lgdi32"
fi
else
_gl=no
fi
if test "$_gl" = yes ; then
_def_gl='#define HAVE_GL 1'
- _vosrc="$_vosrc vo_gl.c vo_gl2.c"
+ if test "$_gl_win32" = yes ; then
+ _def_gl_win32='#define GL_WIN32 1'
+ _vosrc="$_vosrc vo_gl2.c w32_common.c"
+ else
+ _vosrc="$_vosrc vo_gl.c vo_gl2.c"
+ fi
_vomodules="opengl $_vomodules"
else
_def_gl='#undef HAVE_GL'
+ _def_gl_win32='#undef GL_WIN32'
_novomodules="opengl $_novomodules"
fi
echores "$_gl"
@@ -6100,6 +6110,7 @@ $_def_xvmc
$_def_vm
$_def_xinerama
$_def_gl
+$_def_gl_win32
$_def_dga
$_def_dga2
$_def_sdl