summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e5a91ab)
raw | patch | inline | side by side (parent: e5a91ab)
author | Thomas Vander Stichele <thomas@apestaart.org> | |
Wed, 23 Oct 2002 08:53:44 +0000 (08:53 +0000) | ||
committer | Thomas Vander Stichele <thomas@apestaart.org> | |
Wed, 23 Oct 2002 08:53:44 +0000 (08:53 +0000) |
Original commit message from CVS:
.m4 to check for presence of an element
let me know if this works
.m4 to check for presence of an element
let me know if this works
Makefile.am | patch | blob | history | |
gst-element-check.m4 | [new file with mode: 0644] | patch | blob |
gst-plugins-ugly.spec.in | patch | blob | history |
diff --git a/Makefile.am b/Makefile.am
index 12232654bfd8ea7ab60ec3c24f3f9835d3f9de60..5852f46b81b803ccafdfdfad493a6ea1b11f3613 100644 (file)
--- a/Makefile.am
+++ b/Makefile.am
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = gstreamer-libs.pc
+aclocaldir = $(datadir)/aclocal
+aclocal_DATA = gst-element-check.m4
+
SUBDIRS=gst-libs gst sys $(EXT_DIR) examples tools $(GCONF_DIR) testsuite
DIST_SUBDIRS=gst-libs gst sys ext examples tools gconf testsuite
diff --git a/gst-element-check.m4 b/gst-element-check.m4
--- /dev/null
+++ b/gst-element-check.m4
@@ -0,0 +1,20 @@
+dnl Perform a check for a GStreamer element using gst-inspect
+dnl Thomas Vander Stichele <thomas at apestaart dot org>
+dnl Last modification: 23/10/2002
+
+dnl AM_GST_ELEMENT_CHECK(ELEMENT-NAME, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
+
+AC_DEFUN(AM_GST_ELEMENT_CHECK,
+[
+ AC_CHECK_PROG(GST_INSPECT, gst-inspect, gst-inspect, [])
+ if test "x$GST_INSPECT" != "x"; then
+ AC_MSG_CHECKING(GStreamer element $1)
+ if [ $GST_INSPECT $1 > /dev/null 2> /dev/null ]; then
+ AC_MSG_RESULT(found.)
+ $2
+ else
+ AC_MSG_RESULT(not found.)
+ $3
+ fi
+ fi
+])
index 627fb38642ac94ebc8073fb5c5f10f44c765ec4f..febb8059fc849876b86b39a6dd8d1fcbe1c23dfb 100644 (file)
--- a/gst-plugins-ugly.spec.in
+++ b/gst-plugins-ugly.spec.in
%{_includedir}/gst-plugins-%{version}/gst/resample/resample.h
%{_includedir}/gst-plugins-%{version}/gst/riff/riff.h
%{_includedir}/gst-plugins-%{version}/gst/video/video.h
+%{_datadir}/aclocal/gst-element-check.m4
%{_libdir}/pkgconfig/gstreamer-libs.pc
# Here are all the packages depending on external libs #