rendered paste body#include <linux/types.h>
#include <linux/videodev2.h>
int
main ()
{
struct v4l2_buffer buf;
buffer.memory = V4L2_MEMORY_MMAP
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_compile") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_STRUCT_V4L2_BUFFER 1
_ACEOF
{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
v4l2=no { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; } ## <- THIS IS THE LINE
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
if test x"$v4l" = x"yes" -o x"$v4l2" = x"yes" ; then
have_v4l=yes
cat >>confdefs.h <<\_ACEOF
#define HAVE_V4L 1
_ACEOF
else
{ { echo "$as_me:$LINENO: error: v4l is requested, but cannot find headers" >&5
echo "$as_me: error: v4l is requested, but cannot find headers" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
if test x"$have_v4l" = x"yes"; then
HAVE_V4L_TRUE=
HAVE_V4L_FALSE='#'
else
HAVE_V4L_TRUE='#'
HAVE_V4L_FALSE=
fi