1
From 8f624253f0135ca77a893ad4e8168f51ef90d4da Mon Sep 17 00:00:00 2001
2
From: Martin Pitt <martin.pitt@ubuntu.com>
3
Date: Mon, 14 Feb 2011 11:26:22 +0100
4
Subject: Do not build hald-probe-video4linux if v4l1 is not available.
6
The old v4l1 API is gone from current kernels (2.6.38), and thus
7
linux/videodev.h does not exist any more. Add a configure check for the include
8
and do not build hald-probe-video4linux if it is not available.
11
hald/linux/probing/Makefile.am | 7 +++++--
12
2 files changed, 8 insertions(+), 2 deletions(-)
14
Index: hal/configure.in
15
===================================================================
16
--- hal.orig/configure.in 2009-08-24 14:42:29.000000000 +0200
17
+++ hal/configure.in 2011-02-14 11:42:54.931499233 +0100
20
AM_CONDITIONAL([HAVE_LIBPCI], [test "x$USE_LIBPCI" = "xyes"])
22
+AC_CHECK_HEADERS([linux/videodev.h], [have_videodev_h=yes], [])
23
+AM_CONDITIONAL(HAVE_V4L1, [test "x$have_videodev_h" = "xyes"])
28
Index: hal/hald/linux/probing/Makefile.am
29
===================================================================
30
--- hal.orig/hald/linux/probing/Makefile.am 2009-11-09 16:33:53.000000000 +0100
31
+++ hal/hald/linux/probing/Makefile.am 2011-02-14 11:43:33.141499233 +0100
35
hald-probe-ieee1394-unit \
36
- hald-probe-net-bluetooth \
37
- hald-probe-video4linux
38
+ hald-probe-net-bluetooth
41
+libexec_PROGRAMS += hald-probe-video4linux
45
hald_probe_smbios_SOURCES = probe-smbios.c ../../logger.c