Commit e6b87005c1da22a0d354619eebca53c6e2639cdd

Vanfanel 2021-03-17T20:10:31

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/test/configure.ac b/test/configure.ac
index a22e1a9..7aad98f 100644
--- a/test/configure.ac
+++ b/test/configure.ac
@@ -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)