From d7bd0a4c103db08a20368975eafd397b3fab6a9f Mon Sep 17 00:00:00 2001 From: Sreerenj Balachandran Date: Fri, 27 Nov 2015 12:29:11 +0200 Subject: [PATCH] build: Add gmodule dependency for libgstvaapi_egl https://bugzilla.gnome.org/show_bug.cgi?id=756259 --- configure.ac | 8 ++++++++ gst-libs/gst/vaapi/Makefile.am | 2 ++ 2 files changed, 10 insertions(+) diff --git a/configure.ac b/configure.ac index a8996da..900fce8 100644 --- a/configure.ac +++ b/configure.ac @@ -24,6 +24,9 @@ m4_define([gst_vaapi_lt_age], [0]) # glib version number m4_define([glib_version], [2.32]) +# gmodule version number +m4_define([gmodule_version], [2.32]) + # gstreamer version number m4_define([gst_api_version], [autodetect]) m4_define([gst12_version], [1.1.90]) @@ -709,6 +712,11 @@ if test "$enable_egl" = "yes" -a $GLES_VERSION_MASK -ne 0; then AC_CHECK_LIB([EGL], [eglGetDisplay], [:], [USE_EGL=0]) CPPFLAGS="$saved_CPPFLAGS" LIBS="$saved_LIBS" + + dnl Check for GMODULE + GMODULE_VERSION_REQUIRED=gmodule_version + PKG_CHECK_MODULES([GMODULE], [gmodule-2.0 >= $GMODULE_VERSION_REQUIRED]) + AC_SUBST(GMODULE_VERSION_REQUIRED) fi dnl Check for Wayland diff --git a/gst-libs/gst/vaapi/Makefile.am b/gst-libs/gst/vaapi/Makefile.am index 107ef2a..314fd2d 100644 --- a/gst-libs/gst/vaapi/Makefile.am +++ b/gst-libs/gst/vaapi/Makefile.am @@ -501,6 +501,7 @@ libgstvaapi_egl_@GST_API_VERSION@_la_CFLAGS = \ -DGST_USE_UNSTABLE_API \ -I$(top_srcdir)/gst-libs \ $(GLIB_CFLAGS) \ + $(GMODULE_CFLAGS) \ $(GST_BASE_CFLAGS) \ $(GST_VIDEO_CFLAGS) \ $(LIBVA_CFLAGS) \ @@ -509,6 +510,7 @@ libgstvaapi_egl_@GST_API_VERSION@_la_CFLAGS = \ libgstvaapi_egl_@GST_API_VERSION@_la_LIBADD = \ $(GLIB_LIBS) \ + $(GMODULE_LIBS) \ $(GST_LIBS) \ $(GST_BASE_LIBS) \ $(GST_VIDEO_LIBS) \ -- 2.7.4