mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-24 23:16:30 +00:00
configure: Don't check for gudev if video4linux2 is not present
This commit is contained in:
parent
8096d82fd1
commit
759ea920e0
1 changed files with 8 additions and 6 deletions
14
configure.ac
14
configure.ac
|
@ -518,12 +518,14 @@ AC_ARG_WITH([gudev],
|
||||||
AS_HELP_STRING([--with-gudev],[device detection with gudev]),
|
AS_HELP_STRING([--with-gudev],[device detection with gudev]),
|
||||||
[],
|
[],
|
||||||
[with_gudev=check])
|
[with_gudev=check])
|
||||||
if test x$with_gudev != xno; then
|
if test x$HAVE_GST_V4L2 = xyes; then
|
||||||
PKG_CHECK_MODULES(GUDEV, [ gudev-1.0 >= 147 ],
|
if test x$with_gudev != xno; then
|
||||||
[ AC_DEFINE(HAVE_GUDEV, 1,
|
PKG_CHECK_MODULES(GUDEV, [ gudev-1.0 >= 147 ],
|
||||||
[Whether gudev is available for device detection])
|
[ AC_DEFINE(HAVE_GUDEV, 1,
|
||||||
],
|
[Whether gudev is available for device detection])
|
||||||
[true])
|
],
|
||||||
|
[true])
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_SUBST(GUDEV_CFLAGS)
|
AC_SUBST(GUDEV_CFLAGS)
|
||||||
|
|
Loading…
Reference in a new issue