When libdrm is a subproject it cannot be used in a configure time check:
ERROR: Dependencies must be external dependencies
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7761>
gl_platform_deps += egl_dep
glconf.set('GST_GL_HAVE_PLATFORM_EGL', 1)
- if cc.has_header('drm_fourcc.h', dependencies: libdrm_dep)
+ if libdrm_dep.type_name() == 'internal' or cc.has_header('drm_fourcc.h', dependencies: libdrm_dep)
gl_misc_deps += [allocators_dep, libdrm_dep]
glconf.set('GST_GL_HAVE_DMABUF', 1)
endif