GNOME Bugzilla – Bug 682968
Conflicting versions of AM_GST_ELEMENT_CHECK
Last modified: 2012-09-01 22:33:27 UTC
AM_GST_ELEMENT_CHECK() is in both GStreamer 0.10 and GStreamer 1.0, and checks for plugins using gst-inspect-0.10 or gst-inspect-1.0 depending on the version. This breaks sound-juicer's build for example, which migth end up checking for GStreamer 0.10 packages depending on how it was dist'ed.
Possible fix includes defining a AM_GST_ELEMENT_CHECK2 which would check for a particular API version. eg: AM_GST_ELEMENT_CHECK2(API-VERSION, ELEMENT-NAME, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
Is the AM_ prefix is necessary or customary ? If not, we could just make the new one GST_ELEMENT_CHECK or GSTREAMER_ELEMENT_CHECK or something like that ? Or maybe we should just drop it and rely on run-time checks instead ? (how useful is it actually ? is it helpful/good/desirable, e.g. for packagers, to make things a build dependency that's only a runtime dependency in practice ?)
It's certainly useful for packagers. They're smart enough to realise that the cdparanoia plugin is only useful for actually running the application, not for compiling it, and they'll adjust the dependencies of the packages as needed.
And yes we can remove the "AM_" prefix. They probably don't like us trampling on their namespace.
Not actually tested: commit 8cd5813fa661d262159787c75a5695bde7df237d Author: Tim-Philipp Müller <tim@centricular.net> Date: Sat Sep 1 18:06:58 2012 +0100 gst-element-check.m4: rename AM_GST_ELEMENT_CHECK to GST_ELEMENT_CHECK And allow passing of a minimum version (if not needed, pass 1.0). https://bugzilla.gnome.org/show_bug.cgi?id=682968