Skip to content

Commit

Permalink
Fix tests configuration and building when only GLVND full OpenGL impl…
Browse files Browse the repository at this point in the history
…ementation is present.
  • Loading branch information
vanfanel authored and slouken committed Mar 17, 2021
1 parent 7d1b9c9 commit e6b8700
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/configure.ac
Expand Up @@ -80,7 +80,15 @@ case "$host" in
ISUNIX="true"
EXE=""
MATHLIB="-lm"
dnl Use the new libOpenGL if present.
have_glvnd=no
AC_CHECK_LIB(OpenGL, glBegin,
[
dnl have_glvnd=yes
SYS_GL_LIBS="-lOpenGL"
],[
SYS_GL_LIBS="-lGL"
])
;;
esac
AC_SUBST(EXE)
Expand Down

0 comments on commit e6b8700

Please sign in to comment.