summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authoratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-07-12 03:26:46 +0000
committeratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-07-12 03:26:46 +0000
commit0c0b59c99281ef8b10dd87f30b39322dc704df81 (patch)
tree42f58f841c9ad08596589a9ec242a5135c64030f /configure
parentd8f83d22968c8bcb7129c3de975b79c8bad194da (diff)
downloadmpv-0c0b59c99281ef8b10dd87f30b39322dc704df81.tar.bz2
mpv-0c0b59c99281ef8b10dd87f30b39322dc704df81.tar.xz
fix tv bazze
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6715 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 7 insertions, 4 deletions
diff --git a/configure b/configure
index 156da3743f..98879f896e 100755
--- a/configure
+++ b/configure
@@ -3762,14 +3762,17 @@ echocheck "Video 4 Linux TV interface"
if test "$_tv_v4l" = auto ; then
_tv_v4l=no
if test "$_tv" = yes && linux ; then
- if test -c /dev/video? || test -c /dev/video ; then
- cat > $TMPC <<EOF
+ for I in /dev/video /dev/video? ; do
+ if test -c $I ; then
+ cat > $TMPC <<EOF
#include <stdlib.h>
#include <linux/videodev.h>
int main(void) { return 0; }
EOF
- cc_check && _tv_v4l=yes
- fi
+ cc_check && _tv_v4l=yes
+ break
+ fi
+ done
fi
fi
if test "$_tv_v4l" = yes ; then