Fix tests configuration and building when only GLVND full OpenGL implementation is present.

This commit is contained in:
Vanfanel 2021-03-17 20:10:31 +01:00 committed by Sam Lantinga
parent 7d1b9c9f15
commit e6b87005c1
1 changed files with 8 additions and 0 deletions

View File

@ -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)