Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
8c5e52f4
Commit
8c5e52f4
authored
Mar 24, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: fix GL detection on Windows (close #11062)
parent
54560cc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
configure.ac
configure.ac
+8
-10
No files found.
configure.ac
View file @
8c5e52f4
...
@@ -2993,27 +2993,25 @@ PKG_CHECK_MODULES([EGL], [egl], [
...
@@ -2993,27 +2993,25 @@ PKG_CHECK_MODULES([EGL], [egl], [
])
])
AM_CONDITIONAL([HAVE_EGL], [test "${have_egl}" = "yes"])
AM_CONDITIONAL([HAVE_EGL], [test "${have_egl}" = "yes"])
have_gl="no"
PKG_CHECK_MODULES([GL], [gl], [
PKG_CHECK_MODULES([GL], [gl], [
have_gl="yes"
have_gl="yes"
], [
], [
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
[#include <GL/gl.h>]], [
#ifdef _WIN32
# include <GL/glew.h>
#endif
#include <GL/gl.h>
]], [
[int t0 = GL_TEXTURE0;]])
[int t0 = GL_TEXTURE0;]])
], [
], [
GL_CFLAGS=""
GL_CFLAGS=""
have_gl="yes"
AS_IF([test "${SYS}" != "mingw32"], [
AS_IF([test "${SYS}" != "mingw32"], [
have_gl="yes"
GL_LIBS="-lGL"
GL_LIBS="-lGL"
], [
], [
AC_CHECK_HEADER([GL/glew.h], [
have_gl="yes"
], [
have_gl="no"
])
GL_LIBS="-lopengl32"
GL_LIBS="-lopengl32"
])
])
], [
have_gl="no"
])
])
])
])
AM_CONDITIONAL([HAVE_GL], [test "${have_gl}" = "yes"])
AM_CONDITIONAL([HAVE_GL], [test "${have_gl}" = "yes"])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment