From 281dbfcc4668928841bf3c2b39dbe295a58c3e5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Fri, 9 Nov 2007 18:52:08 +0100 Subject: Use system's linux/videodev2.h header file. Please note: on 2.4 systems without the extra V4L2 stack, the header will be missing. As it is, both input_pvr and input_v4l (that still uses the old interface) will be disabled if either header is not found. Further optimisation to just disable PVR on non-V4L2-capable systems might be useful. --- m4/input.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'm4') diff --git a/m4/input.m4 b/m4/input.m4 index a0de77dc0..59c9df233 100644 --- a/m4/input.m4 +++ b/m4/input.m4 @@ -93,7 +93,8 @@ AC_DEFUN([XINE_INPUT_PLUGINS], [ [test x"$enableval" != x"no" && enable_v4l="yes"], [test $default_enable_v4l = disable && enable_v4l="no"]) if test x"$enable_v4l" != x"no"; then - AC_CHECK_HEADERS([linux/videodev.h], [have_v4l=yes], [have_v4l=no]) + have_v4l=yes + AC_CHECK_HEADERS([linux/videodev.h linux/videodev2.h], , [have_v4l=no]) AC_CHECK_HEADERS([asm/types.h]) if test x"$enable_v4l" = x"yes" && test x"$have_v4l" != x"yes"; then AC_MSG_ERROR([Video4Linux support requested, but prerequisite headers not found.]) -- cgit v1.2.3