1 dnl Perform a check for a GStreamer element using gst-inspect
2 dnl Thomas Vander Stichele <thomas at apestaart dot org>
3 dnl Last modification: 25/01/2005
5 dnl AM_GST_ELEMENT_CHECK(ELEMENT-NAME, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
7 AC_DEFUN([AM_GST_ELEMENT_CHECK],
9 if test "x$GST_INSPECT" = "x"; then
10 AC_CHECK_PROG(GST_INSPECT, gst-inspect-@GST_API_VERSION@, gst-inspect-@GST_API_VERSION@, [])
13 if test "x$GST_INSPECT" != "x"; then
14 AC_MSG_CHECKING(GStreamer @GST_API_VERSION@ element $1)
15 if [ $GST_INSPECT $1 > /dev/null 2> /dev/null ]; then
19 AC_MSG_RESULT(not found.)