]>
Commit | Line | Data |
---|---|---|
6958bac9 ER |
1 | --- amsn/configure.ac 2011/04/08 17:08:27 12314 |
2 | +++ amsn/configure.ac 2011/04/12 00:20:59 12315 | |
3 | @@ -489,6 +489,11 @@ | |
4 | libv4l2 >= 0.5.0, | |
5 | HAVE_LIBV4L=yes,HAVE_LIBV4L=no) | |
6 | fi | |
7 | + AC_CHECK_HEADERS(linux/videodev.h,HAVE_LIBV4L=yes,HAVE_LIBV4L=no) | |
8 | + AC_CHECK_HEADERS(linux/videodev2.h,HAVE_LIBV4L2=yes,HAVE_LIBV4L2=no) | |
9 | + if test x"$v4l2" = x"yes" ; then | |
10 | + HAVE_LIBV4L=yes | |
11 | + fi | |
12 | AC_SUBST(HAVE_LIBV4L) | |
13 | ||
14 | AC_ARG_ENABLE([upnp], | |
15 | --- amsn/utils/linux/capture/capture.h 2011/04/08 17:08:27 12314 | |
16 | +++ amsn/utils/linux/capture/capture.h 2011/04/12 00:20:59 12315 | |
17 | @@ -30,11 +30,13 @@ | |
18 | ||
19 | #include "config.h" | |
20 | ||
21 | +/* | |
22 | #ifdef HAVE_SYS_VIDEODEV2_H | |
23 | # include <sys/videodev2.h> | |
24 | #else | |
25 | # include <linux/videodev.h> | |
26 | #endif | |
27 | +*/ | |
28 | ||
29 | #include "grab-ng.h" | |
30 | ||
31 | --- amsn/configure 2010/06/17 00:31:07 12053 | |
32 | +++ amsn/configure 2011/04/12 00:43:13 12317 | |
33 | @@ -597,6 +605,7 @@ | |
34 | HAVE_GUPNP | |
35 | GUPNP_LIBS | |
36 | GUPNP_CFLAGS | |
37 | +HAVE_LIBV4L2 | |
38 | HAVE_LIBV4L | |
39 | LIBV4L_LIBS | |
40 | LIBV4L_CFLAGS | |
41 | @@ -5688,6 +5697,35 @@ | |
42 | HAVE_LIBV4L=yes | |
43 | fi | |
44 | fi | |
45 | + for ac_header in linux/videodev.h | |
46 | +do : | |
47 | + ac_fn_c_check_header_mongrel "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "$ac_includes_default" | |
48 | +if test "x$ac_cv_header_linux_videodev_h" = xyes; then : | |
49 | + cat >>confdefs.h <<_ACEOF | |
50 | +#define HAVE_LINUX_VIDEODEV_H 1 | |
51 | +_ACEOF | |
52 | + HAVE_LIBV4L=yes | |
53 | +else | |
54 | + HAVE_LIBV4L=no | |
55 | +fi | |
56 | + | |
57 | +done | |
58 | + | |
59 | + for ac_header in linux/videodev2.h | |
60 | +do : | |
61 | + ac_fn_c_check_header_mongrel "$LINENO" "linux/videodev2.h" "ac_cv_header_linux_videodev2_h" "$ac_includes_default" | |
62 | +if test "x$ac_cv_header_linux_videodev2_h" = xyes; then : | |
63 | + cat >>confdefs.h <<_ACEOF | |
64 | +#define HAVE_LINUX_VIDEODEV2_H 1 | |
65 | +_ACEOF | |
66 | + HAVE_LIBV4L2=yes | |
67 | +else | |
68 | + HAVE_LIBV4L2=no | |
69 | +fi | |
70 | + | |
71 | +done | |
72 | + | |
73 | + | |
74 | ||
75 | ||
76 | # Check whether --enable-upnp was given. | |
77 | @@ -7058,6 +7124,7 @@ | |
78 | STATIC : $STATIC | |
79 | FARSIGHT : $HAVE_FARSIGHT | |
80 | LIBV4L : $HAVE_LIBV4L | |
81 | + LIBV4L2 : $HAVE_LIBV4L2 | |
82 | GUPNP-IGD : $HAVE_GUPNP | |
83 | ||
84 | EOF |