mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +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
15
configure.ac
15
configure.ac
|
@ -671,13 +671,22 @@ case $host in
|
|||
;;
|
||||
*)
|
||||
if test "x$NEED_GL" != "xno"; then
|
||||
AG_GST_CHECK_LIBHEADER(GL, GL, glTexImage2D,, GL/gl.h)
|
||||
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_CHECK_LIBHEADER(GLES2, GLESv2, glTexImage2D,, GLES2/gl2.h)
|
||||
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_CHECK_LIBHEADER(EGL, EGL, eglGetError,, EGL/egl.h)
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue