diff options
author | Luca Abeni <lucabe72@email.it> | 2006-02-08 15:55:41 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2006-02-08 15:55:41 +0000 |
commit | 47f388503b1b94b8ddba9d9e257921f34d71c063 (patch) | |
tree | b22ec864b7cf63457cf656f3173635dabdfc7d4c | |
parent | 72fbc5092a10e4139cbfddcdc4bc1b40e9326bde (diff) | |
download | ffmpeg-47f388503b1b94b8ddba9d9e257921f34d71c063.tar.gz |
Add video4linux2 detection to configure.
patch by Luca Abeni, lucabe72*at*email*dot*it
Originally committed as revision 4963 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-x | configure | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1244,6 +1244,15 @@ ipv6=yes fi fi +if test "$v4l2" = "yes"; then +# check for video4linux2 --- V4L2_PIX_FMT_YUV420 +cat > $TMPC << EOF +#include <linux/videodev.h> +int dummy = V4L2_PIX_FMT_YUV420; +EOF +$cc -c -o $TMPE $TMPC 2> /dev/null || v4l2="no" +fi + case "`$cc -v 2>&1 | grep version`" in *gcc*) CFLAGS="-Wall -Wno-switch $CFLAGS" |