diff -ru gst-plugins-good-0.10.11-fedora/configure.ac gst-plugins-good-0.10.11-fedora-mod/configure.ac --- gst-plugins-good-0.10.11-fedora/configure.ac 2008-12-06 14:51:14.329265245 -0500 +++ gst-plugins-good-0.10.11-fedora-mod/configure.ac 2008-12-06 14:50:15.414146598 -0500 @@ -550,8 +550,22 @@ fi ]) +# Make libv4l2 non-automagic +AC_ARG_WITH([libv4l2], + AC_HELP_STRING([--with-libv4l2], + [support video buffer conversion using libv4l2]), + [], + [with_libv4l2=check]) if test x$HAVE_GST_V4L2 = xyes; then - PKG_CHECK_MODULES(LIBV4L2, libv4l2, [have_libv4l2=yes], [have_libv4l2=no]) + if test x$with_libv4l2 != xno; then + PKG_CHECK_MODULES(LIBV4L2, libv4l2, [have_libv4l2=yes], + [if test x$with_libv4l2 = xyes; then + AC_MSG_FAILURE([--with-libv4l2 was given, but libv4l2 was not found]) + fi + have_libv4l2=no]) + else + have_libv4l2=no + fi AC_DEFINE([HAVE_LIBV4L2], test x$have_libv4l2 = xyes, [Whether libv4l2 is available for video buffer conversion]) fi