>From 1df92c4dc1faf8cdd1002d3c0532473a70b86a4a Mon Sep 17 00:00:00 2001 From: KO Myung-Hun Date: Sat, 14 Dec 2013 15:05:44 +0900 Subject: [PATCH] configure: add a feature test for OpenGL --- configure.ac | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index 5f7ed24..65943d1 100644 --- a/configure.ac +++ b/configure.ac @@ -2955,7 +2955,9 @@ AM_CONDITIONAL([HAVE_EGL], [test "${have_egl}" = "yes"]) PKG_CHECK_MODULES([GL], [gl], [ have_gl="yes" ], [ - AC_CHECK_HEADER([GL/gl.h], [ + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ +[#include ]], [ +[int t0 = GL_TEXTURE0;]])], [ have_gl="yes" GL_CFLAGS="" AS_IF([test "${SYS}" = "mingw32"], [ -- 1.7.3.2