aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-01 15:05:08 +0000
committerGravatar alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-01 15:05:08 +0000
commita65f2c37b3d631e5e1060929de86e995e8d44de2 (patch)
tree7083358253ca9083c53e7d79edabbdc38ed8f0fb /configure
parentb4ed51ce6f3c0ac639c8e35a51cdf8ed67514ab5 (diff)
added auto detection of tv v4l and changed tv to enabled
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3243 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure34
1 files changed, 31 insertions, 3 deletions
diff --git a/configure b/configure
index a06a7762eb..3ade90b1f1 100755
--- a/configure
+++ b/configure
@@ -113,7 +113,8 @@ Optional features:
--enable-termcap use termcap database for key codes [autodetect]
--enable-lirc enable LIRC (remote control) support [autodetect]
--enable-gui enable GUI [disable]
- --enable-tv enable TV Interface (tv/dvb grabbers) [disable]
+ --disable-tv disable TV Interface (tv/dvb grabbers) [enable]
+ --disable-tv-v4l disable Video 4 Linux TV Interface support [autodetect]
--disable-win32 disable Win32 DLL support [autodetect]
--disable-dshow disable DirectShow support (if no C++ compiler and
libs are available or find the dshow codecs slower
@@ -670,7 +671,8 @@ _fastmemcpy=yes
_win32=auto
_dshow=auto
_select=yes
-_tv=no
+_tv=yes
+_tv_v4l=auto
_streaming=no
_divx4linux=auto
_lirc=auto
@@ -759,6 +761,8 @@ for ac_option do
--disable-alsa) _alsa=no ;;
--enable-tv) _tv=yes ;;
--disable-tv) _tv=no ;;
+ --enable-tv-v4l) _tv_v4l=yes ;;
+ --disable-tv-v4l) _tv_v4l=no ;;
--enable-fastmemcpy) _fastmemcpy=yes ;;
--disable-fastmemcpy) _fastmemcpy=no ;;
--enable-streaming) _streaming=yes ;;
@@ -1738,6 +1742,7 @@ else
fi
echores "$_sdl (with $_sdlconfig)"
+
echocheck "DXR3/H+"
if test "$_dxr3" = auto ; then
cat > $TMPC << EOF
@@ -2313,7 +2318,6 @@ echores "$_fastmemcpy"
echocheck "TV interface"
-# FIXME tv check
if test "$_tv" = yes ; then
_def_tv='#define USE_TV 1'
_inputmodules="tv $_inputmodules"
@@ -2322,6 +2326,27 @@ else
fi
echores "$_tv"
+echocheck "Video 4 Linux TV interface"
+if test "$_tv_v4l" = auto && test "$_tv" = yes && linux ; then
+ _tv_v4l=no
+ if test -c /dev/video0 ; then
+ cat > $TMPC <<EOF
+#include <linux/videodev.h>
+int main(void) { return 0; }
+EOF
+ cc_check && _tv_v4l=yes
+ fi
+else
+ _tv_v4l=no
+fi
+if test "$_tv_v4l" = yes ; then
+ _def_tv_v4l='#define HAVE_TV_V4L 1'
+ _inputmodules="tv-v4l $_inputmodules"
+else
+ _def_tv_v4l='#undef HAVE_TV_V4L'
+fi
+echores "$_tv_v4l"
+
echocheck "select"
if test "$_select" = no ; then
@@ -2744,6 +2769,9 @@ $_def_sgiaudio
/* Enable TV Interface support */
$_def_tv
+/* Enable Video 4 Linux TV interface support */
+$_def_tv_v4l
+
/* Define if your processor stores words with the most significant
byte first (like Motorola and SPARC, unlike Intel and VAX). */
$_def_words_endian