From a03f5f5de1563d153615bd4721263a233cde09d5 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Wed, 23 Aug 2017 16:23:07 +1000 Subject: [PATCH] gl/build: also check for the GL/gl.h header In order to successfully build against a detected libGL library we also need headers --- gst-libs/gst/gl/meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst-libs/gst/gl/meson.build b/gst-libs/gst/gl/meson.build index 2c70492e0c..78bdfd010a 100644 --- a/gst-libs/gst/gl/meson.build +++ b/gst-libs/gst/gl/meson.build @@ -272,6 +272,10 @@ if need_api_opengl != 'no' or need_platform_glx != 'no' gl_dep = cc.find_library('GL', required : false) endif + if not cc.has_header('GL/gl.h', required : false) + gl_dep = unneeded_dep + endif + if not gl_dep.found() and need_api_opengl == 'yes' error ('Could not find requested OpenGL library') endif