[vlc-commits] configure: add a feature test for OpenGL
KO Myung-Hun
git at videolan.org
Sat Dec 14 16:35:30 CET 2013
vlc | branch: master | KO Myung-Hun <komh at chollian.net> | Sat Dec 14 15:05:44 2013 +0900| [d44286dfe5b983177525338fd81833b1fa863ce2] | committer: Jean-Baptiste Kempf
configure: add a feature test for OpenGL
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d44286dfe5b983177525338fd81833b1fa863ce2
---
configure.ac | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 5f7ed24..1491748 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2955,7 +2955,10 @@ 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 <GL/gl.h>]], [
+ [int t0 = GL_TEXTURE0;]])
+ ], [
have_gl="yes"
GL_CFLAGS=""
AS_IF([test "${SYS}" = "mingw32"], [
More information about the vlc-commits
mailing list