From 946c20a8ba9d5266b45378c38f2882352c65b79d Mon Sep 17 00:00:00 2001 From: Filippo Argiolas Date: Fri, 3 Jul 2009 08:38:43 +0200 Subject: v4l2src: optional support for device probing with gudev Enumerate v4l2 devices using gudev if available. Fixes bug #583640. --- configure.ac | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index fb9bbf89..c43d7707 100644 --- a/configure.ac +++ b/configure.ac @@ -508,6 +508,29 @@ return 0; fi ]) +# Optional gudev for device probing +AC_ARG_WITH([gudev], + AC_HELP_STRING([--with-gudev], + [device detection with gudev]), + [], + [with_gudev=check]) +if test x$HAVE_GST_V4L2 = xyes; then + if test x$with_gudev != xno; then + PKG_CHECK_MODULES(GUDEV, [ gudev-1.0 >= 143 ], + [ have_gudev=yes + AC_DEFINE(HAVE_GUDEV, 1, + [Whether gudev is available for device detection]) + AC_DEFINE([G_UDEV_API_IS_SUBJECT_TO_CHANGE], 1, [I know the API is subject to change.]) + ], [ + have_gudev=no + ]) + else + have_gudev=no + fi +fi +AC_SUBST(GUDEV_CFLAGS) +AC_SUBST(GUDEV_LIBS) + # Make libv4l2 non-automagic AC_ARG_WITH([libv4l2], AC_HELP_STRING([--with-libv4l2], -- cgit