summaryrefslogtreecommitdiffstats
path: root/old-configure
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-04 00:12:04 +0100
committerwm4 <wm4@nowhere>2014-11-04 01:41:37 +0100
commitbebfaae66614e2ccc2b35e4190cd4cee058a4b99 (patch)
tree7d02bce27681696a4f353e5f985eae435ad6d1c5 /old-configure
parentdc1d851c92f6c10014c964f601d770afd2d92522 (diff)
downloadmpv-bebfaae66614e2ccc2b35e4190cd4cee058a4b99.tar.bz2
mpv-bebfaae66614e2ccc2b35e4190cd4cee058a4b99.tar.xz
vo_opengl: minimal EGL on X11 support
Pretty useless and only good for testing. Does not include any form of GLES support.
Diffstat (limited to 'old-configure')
-rwxr-xr-xold-configure9
1 files changed, 8 insertions, 1 deletions
diff --git a/old-configure b/old-configure
index 240efb01f0..5fbbd6c5d4 100755
--- a/old-configure
+++ b/old-configure
@@ -628,12 +628,13 @@ check_yes_no $_dvbin DVBIN
check_statement_libs "JPEG support" $_jpeg JPEG "stdio.h jpeglib.h" "" "-ljpeg $_ld_lm"
+_gl_x11_egl=no
(test "$_x11" = no && test "$_wayland" = no) && _gl=no
echocheck "OpenGL"
#Note: this test is run even with --enable-gl since we autodetect linker flags
if test "$_gl" != no ; then
cat > $TMPC << EOF
-#if defined(GL_WAYLAND)
+#if defined(GL_WAYLAND) || defined(EGL_X11)
#include <EGL/egl.h>
#else
#include <X11/Xlib.h>
@@ -670,6 +671,10 @@ EOF
libs_mplayer="$libs_mplayer -lGL -lEGL"
test "$_gl_wayland" = yes && res_comment="$res_comment wayland"
fi
+ if test "$_x11" = yes && test "$_gl" = yes && pkg_config_add "egl"; then
+ _gl_x11_egl=yes
+ res_comment="$res_comment x11egl"
+ fi
else
_gl=no
fi
@@ -677,9 +682,11 @@ fi
if test "$_gl" = no ; then
_gl_x11=no
_gl_wayland=no
+ _gl_x11_egl=no
fi
check_yes_no $_gl GL
check_yes_no $_gl_x11 GL_X11
+check_yes_no $_gl_x11_egl EGL_X11
check_yes_no $_gl_wayland GL_WAYLAND
echores "$_gl"