source: trunk/third/gstreamer/gst-element-check.m4 @ 21448

Revision 21448, 614 bytes checked in by ghudson, 19 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21447, which included commits to RCS files with non-trunk default branches.
Line 
1dnl Perform a check for a GStreamer element using gst-inspect
2dnl Thomas Vander Stichele <thomas at apestaart dot org>
3dnl Last modification: 25/01/2005
4
5dnl AM_GST_ELEMENT_CHECK(ELEMENT-NAME, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
6
7AC_DEFUN([AM_GST_ELEMENT_CHECK],
8[
9  if test "x$GST_INSPECT" == "x"; then
10    AC_CHECK_PROG(GST_INSPECT, gst-inspect, gst-inspect, [])
11  fi
12
13  if test "x$GST_INSPECT" != "x"; then
14    AC_MSG_CHECKING(GStreamer element $1)
15    if [ $GST_INSPECT $1 > /dev/null 2> /dev/null ]; then
16      AC_MSG_RESULT(found.)
17      $2
18    else
19      AC_MSG_RESULT(not found.)
20      $3
21    fi
22  fi
23])
Note: See TracBrowser for help on using the repository browser.