Commit d44286df authored by KO Myung-Hun's avatar KO Myung-Hun Committed by Jean-Baptiste Kempf

configure: add a feature test for OpenGL

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent eea56f04
...@@ -2955,7 +2955,10 @@ AM_CONDITIONAL([HAVE_EGL], [test "${have_egl}" = "yes"]) ...@@ -2955,7 +2955,10 @@ AM_CONDITIONAL([HAVE_EGL], [test "${have_egl}" = "yes"])
PKG_CHECK_MODULES([GL], [gl], [ PKG_CHECK_MODULES([GL], [gl], [
have_gl="yes" have_gl="yes"
], [ ], [
AC_CHECK_HEADER([GL/gl.h], [ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
[#include <GL/gl.h>]], [
[int t0 = GL_TEXTURE0;]])
], [
have_gl="yes" have_gl="yes"
GL_CFLAGS="" GL_CFLAGS=""
AS_IF([test "${SYS}" = "mingw32"], [ AS_IF([test "${SYS}" = "mingw32"], [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment