diff configure @ 6714:be17a987e0a1

fix tv bazze
author atmos4
date Fri, 12 Jul 2002 03:26:46 +0000
parents 522713337297
children 0a1caa7fc82a
line wrap: on
line diff
--- a/configure	Fri Jul 12 00:53:26 2002 +0000
+++ b/configure	Fri Jul 12 03:26:46 2002 +0000
@@ -3762,14 +3762,17 @@
 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