configure: check for plugins-base and others (bgo#721587)
authorAndrés G. Aragoneses <knocte@gmail.com>
Sun, 5 Jan 2014 18:29:16 +0000 (19:29 +0100)
committerStephan Sundermann <stephansundermann@gmail.com>
Sun, 5 Jan 2014 18:36:38 +0000 (19:36 +0100)
This would prevent a build failure when trying to 'make' the glue:

generated.c: In function 'gst__tagssharp_gst__tags_tagdemux_get_element_offset':
generated.c:1092:2: error: unknown type name 'GstTagDemux'
  return (guint)G_STRUCT_OFFSET (GstTagDemux, element);
  ^

configure.ac

index ec2ad2cfff82c207d81bc96e051848f9654412f7..798b4c47cd821c2f17a261d4da07148662eff715 100644 (file)
@@ -133,8 +133,16 @@ AC_SUBST(MDASSEMBLER)
 AC_SUBST(MONODOCER)
 
 AM_CONDITIONAL(ENABLE_MONODOC, test "x$enable_monodoc" = "xyes")
+
 dnl Check for Gst
-PKG_CHECK_MODULES(GST, gstreamer-1.0)
+GSTREAMER_REQUIRED_VERSION=1.0.0
+PKG_CHECK_MODULES(GST,
+               gstreamer-1.0 >= $GSTREAMER_REQUIRED_VERSION
+               gstreamer-base-1.0 >= $GSTREAMER_REQUIRED_VERSION
+               gstreamer-plugins-base-1.0 >= $GSTREAMER_REQUIRED_VERSION
+               gstreamer-tag-1.0 >= $GSTREAMER_REQUIRED_VERSION
+)
+
 gstreamer_prefix=/usr
 AC_SUBST(gstreamer_prefix)
 AC_SUBST(GST_LIBS)