diff configure @ 10537:31f12f99118b

v4l2 support
author henry
date Thu, 07 Aug 2003 12:24:35 +0000
parents 784715bd119d
children df2cf884f701
line wrap: on
line diff
--- a/configure	Thu Aug 07 12:18:04 2003 +0000
+++ b/configure	Thu Aug 07 12:24:35 2003 +0000
@@ -151,6 +151,7 @@
   --enable-joystick      enable joystick support [disable]
   --disable-tv           disable TV Interface (tv/dvb grabbers) [enable]
   --disable-tv-v4l       disable Video4Linux TV Interface support [autodetect]
+  --disable-tv-v4l2      disable Video4Linux2 TV Interface support [autodetect]
   --disable-tv-bsdbt848  disable BSD BT848 Interface support [autodetect]
   --disable-edl          disable EDL (edit decision list) support [enable]
   --disable-rtc          disable RTC (/dev/rtc) on Linux [autodetect]
@@ -1093,6 +1094,7 @@
 _select=yes
 _tv=yes
 _tv_v4l=auto
+_tv_v4l2=auto
 _tv_bsdbt848=auto
 _edl=yes
 _network=yes
@@ -1271,6 +1273,8 @@
   --disable-tv-bsdbt848)	_tv_bsdbt848=no	;;
   --enable-tv-v4l)	_tv_v4l=yes	;;
   --disable-tv-v4l)	_tv_v4l=no	;;
+  --enable-tv-v4l2)	_tv_v4l2=yes	;;
+  --disable-tv-v4l2)	_tv_v4l2=no	;;
   --enable-fastmemcpy)	_fastmemcpy=yes	;;
   --disable-fastmemcpy)	_fastmemcpy=no	;;
   --enable-network)	_network=yes	;;
@@ -4902,6 +4906,28 @@
 echores "$_tv_v4l"
 
 
+echocheck "Video 4 Linux 2 TV interface"
+if test "$_tv_v4l2" = auto ; then
+ _tv_v4l2=no
+ if test "$_tv" = yes && linux ; then
+  for I in /dev/video /dev/video? ; do
+    if test -c $I ; then
+      _tv_v4l2=yes
+      break
+    fi
+  done
+ fi
+fi
+if test "$_tv_v4l2" = yes ; then
+  _def_tv_v4l2='#define HAVE_TV_V4L2 1'
+  _inputmodules="tv-v4l2 $_inputmodules"
+else
+  _noinputmodules="tv-v4l2 $_noinputmodules"
+  _def_tv_v4l='#undef HAVE_TV_V4L2'
+fi
+echores "$_tv_v4l2"
+
+
 echocheck "audio select()"
 if test "$_select" = no ; then
   _def_select='#undef HAVE_AUDIO_SELECT'
@@ -5779,6 +5805,9 @@
 /* Enable Video 4 Linux TV interface support */
 $_def_tv_v4l
 
+/* Enable Video 4 Linux 2 TV interface support */
+$_def_tv_v4l2
+
 /* Enable *BSD BrookTree TV interface support */
 $_def_tv_bsdbt848