summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.in3
-rw-r--r--hald/linux/probing/Makefile.am7
2 files changed, 8 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 2394c456..861938fc 100644
--- a/configure.in
+++ b/configure.in
@@ -479,6 +479,9 @@ if test "x$with_libpci" != xno ; then
fi
AM_CONDITIONAL([HAVE_LIBPCI], [test "x$USE_LIBPCI" = "xyes"])
+AC_CHECK_HEADERS([linux/videodev.h], [have_videodev_h=yes], [])
+AM_CONDITIONAL(HAVE_V4L1, [test "x$have_videodev_h" = "xyes"])
+
AC_ARG_WITH([backend],
AS_HELP_STRING([--with-backend=<name>],
[backend to use (linux/solaris/freebsd/dummy)]),
diff --git a/hald/linux/probing/Makefile.am b/hald/linux/probing/Makefile.am
index 50f0dff1..cbea5161 100644
--- a/hald/linux/probing/Makefile.am
+++ b/hald/linux/probing/Makefile.am
@@ -20,8 +20,11 @@ libexec_PROGRAMS = \
hald-probe-serial \
hald-probe-ieee1394-unit \
hald-probe-net-bluetooth \
- hald-probe-lsb-release \
- hald-probe-video4linux
+ hald-probe-lsb-release
+
+if HAVE_V4L1
+libexec_PROGRAMS += hald-probe-video4linux
+endif
endif
hald_probe_smbios_SOURCES = probe-smbios.c ../../logger.c