summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorJulian Scheel <julian@jusst.de>2010-01-30 12:46:18 +0100
committerJulian Scheel <julian@jusst.de>2010-01-30 12:46:18 +0100
commit3c039d3b4c3bc24d26cb33c532c587c737564441 (patch)
tree902e0a9d6ae4551c6af996af3f8897d940386f0e /m4
parent474815e24bf5ed57813bab2c970bce13ad822e3c (diff)
parente0d73e94178127b08b922f2a0ca607fd320a9d9c (diff)
downloadxine-lib-3c039d3b4c3bc24d26cb33c532c587c737564441.tar.gz
xine-lib-3c039d3b4c3bc24d26cb33c532c587c737564441.tar.bz2
Merge with xine-lib-1.2
Diffstat (limited to 'm4')
-rw-r--r--m4/input.m47
1 files changed, 5 insertions, 2 deletions
diff --git a/m4/input.m4 b/m4/input.m4
index 2f5ceeec9..04c480720 100644
--- a/m4/input.m4
+++ b/m4/input.m4
@@ -90,8 +90,11 @@ AC_DEFUN([XINE_INPUT_PLUGINS], [
AC_MSG_ERROR([Video4Linux support requested, but prerequisite headers not found.])
fi
XINE_ARG_ENABLE([libv4l], [Enable libv4l support])
- if test "x$enable_libv4l" != "xno"; then
- AC_CHECK_HEADERS([libv4l2.h], [have_libv4l=yes], [have_libv4l=no])
+ if test "x$enable_libv4l" != "xno"; then
+ PKG_CHECK_MODULES([V4L2], [libv4l2],
+ [have_libv4l=yes
+ AC_DEFINE([HAVE_LIBV4L2_H], [1], [Define this if you have libv4l installed])],
+ [have_libv4l=no])
if test "x$hard_enable_libv4l" = "xyes" && test "x$have_libv4l" = "xno"; then
AC_MSG_ERROR([libv4l requested, but libv4l not found])
fi