summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuergen Keil <jkeil@users.sourceforge.net>2003-01-21 14:41:09 +0000
committerJuergen Keil <jkeil@users.sourceforge.net>2003-01-21 14:41:09 +0000
commit16fdca71ffa1ee5c2ba8a64d161e3ed99378abee (patch)
tree3c08eb8892d4cdc02433c30f3517083bf8b74747
parent22bd17cb15eb3a4003410a606be97076e65ed41c (diff)
downloadxine-lib-16fdca71ffa1ee5c2ba8a64d161e3ed99378abee.tar.gz
xine-lib-16fdca71ffa1ee5c2ba8a64d161e3ed99378abee.tar.bz2
Add some autoconf tests, so that the video-for-linux input plugin is not
compiled on solaris. CVS patchset: 3983 CVS date: 2003/01/21 14:41:09
-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 = \