2003-04-07 21:28:57 +00:00
|
|
|
dnl Perform a check for a GStreamer element using gst-inspect
|
|
|
|
dnl Thomas Vander Stichele <thomas at apestaart dot org>
|
2005-01-25 14:03:12 +00:00
|
|
|
dnl Last modification: 25/01/2005
|
2003-04-07 21:28:57 +00:00
|
|
|
|
|
|
|
dnl AM_GST_ELEMENT_CHECK(ELEMENT-NAME, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
|
|
|
|
|
2004-02-11 18:21:51 +00:00
|
|
|
AC_DEFUN([AM_GST_ELEMENT_CHECK],
|
2003-04-07 21:28:57 +00:00
|
|
|
[
|
2005-01-25 14:03:12 +00:00
|
|
|
if test "x$GST_INSPECT" == "x"; then
|
2005-03-10 18:12:40 +00:00
|
|
|
AC_CHECK_PROG(GST_INSPECT, gst-inspect-@GST_MAJORMINOR@, gst-inspect-@GST_MAJORMINOR@, [])
|
2005-01-25 14:03:12 +00:00
|
|
|
fi
|
|
|
|
|
2003-04-07 21:28:57 +00:00
|
|
|
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
|
|
|
|
])
|