summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac7
-rw-r--r--src/input/Makefile.am8
2 files changed, 13 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index eccda25cc..30c0fb38c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -326,6 +326,13 @@ AC_SUBST(GLU_LIBS)
AM_CONDITIONAL(HAVE_OPENGL, [ test x$ac_have_opengl = "xyes" -a x$ac_have_glut="xyes" -o x$ac_have_opengl = "xyes" -a x$ac_have_glu="xyes" ] )
+dnl ----------------------------------------------
+dnl Check for usable video-for-linux (v4l) support
+dnl ----------------------------------------------
+AC_CHECK_HEADER(linux/videodev.h, have_v4l=yes,)
+AM_CONDITIONAL(HAVE_V4L, [test x"$have_v4l" = "xyes"])
+
+
host_or_hostalias="$host"
if test "$host_or_hostalias" = ""; then
diff --git a/src/input/Makefile.am b/src/input/Makefile.am
index 0e5870ad1..b669f0d07 100644
--- a/src/input/Makefile.am
+++ b/src/input/Makefile.am
@@ -25,6 +25,10 @@ in_vcd = xineplug_inp_vcd.la
#in_cda = xineplug_inp_cda.la
endif
+if HAVE_V4L
+in_v4l = xineplug_inp_v4l.la
+endif
+
if HAVE_GNOME_VFS
in_gnome_vfs = xineplug_inp_gnome_vfs.la
endif
@@ -50,6 +54,7 @@ lib_LTLIBRARIES = \
xineplug_inp_http.la \
$(in_dvd) \
$(in_vcd) \
+ $(in_v4l) \
$(in_gnome_vfs) \
xineplug_inp_mms.la \
xineplug_inp_stdin_fifo.la \
@@ -57,8 +62,7 @@ lib_LTLIBRARIES = \
xineplug_inp_rtsp.la \
xineplug_inp_net.la \
xineplug_inp_dvb.la \
- xineplug_inp_cdda.la \
- xineplug_inp_v4l.la
+ xineplug_inp_cdda.la
#lib_LTLIBRARIES = \