mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
opengl: Use pkg-config if available
libMesa ships .pc files now for gl/egl/glesv2. This patch makes use of it while keeping support for system without. https://bugzilla.gnome.org/show_bug.cgi?id=751068
This commit is contained in:
parent
ef53eabee3
commit
8265aca7d9
1 changed files with 12 additions and 3 deletions
|
@ -671,14 +671,23 @@ case $host in
|
|||
;;
|
||||
*)
|
||||
if test "x$NEED_GL" != "xno"; then
|
||||
AG_GST_PKG_CHECK_MODULES(GL, gl)
|
||||
if test "x$HAVE_GL" != "xyes"; then
|
||||
AG_GST_CHECK_LIBHEADER(GL, GL, glTexImage2D,, GL/gl.h)
|
||||
fi
|
||||
fi
|
||||
if test "x$NEED_GLES2" != "xno"; then
|
||||
AG_GST_PKG_CHECK_MODULES(GLES2, glesv2)
|
||||
if test "x$HAVE_GLES2" != "xyes"; then
|
||||
AG_GST_CHECK_LIBHEADER(GLES2, GLESv2, glTexImage2D,, GLES2/gl2.h)
|
||||
fi
|
||||
fi
|
||||
if test "x$NEED_EGL" != "xno"; then
|
||||
AG_GST_PKG_CHECK_MODULES(EGL, egl)
|
||||
if test "x$HAVE_EGL" != "xyes"; then
|
||||
AG_GST_CHECK_LIBHEADER(EGL, EGL, eglGetError,, EGL/egl.h)
|
||||
fi
|
||||
fi
|
||||
|
||||
old_LIBS=$LIBS
|
||||
old_CFLAGS=$CFLAGS
|
||||
|
|
Loading…
Reference in a new issue