summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorjaf <jaf@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-04 13:21:13 +0000
committerjaf <jaf@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-04 13:21:13 +0000
commitcc4334f459c4e16e56e6cb826bfc8bcb7bc384c5 (patch)
tree91ef913389cd30d1ed72aab28f4536c0badebd3e /configure
parenteb72b1462d884b10a3229b193c33e4deb3c6f6c2 (diff)
downloadmpv-cc4334f459c4e16e56e6cb826bfc8bcb7bc384c5.tar.bz2
mpv-cc4334f459c4e16e56e6cb826bfc8bcb7bc384c5.tar.xz
improved DVB detection
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5487 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure37
1 files changed, 36 insertions, 1 deletions
diff --git a/configure b/configure
index 1eed4eb94e..5aa357a75c 100755
--- a/configure
+++ b/configure
@@ -2045,6 +2045,41 @@ echocheck "DVB"
if test "$_dvb" != no ; then
_dvb=no
test -c /dev/ost/video && _dvb=yes
+cat >$TMPC << EOF
+#include <sys/poll.h>
+#include <sys/ioctl.h>
+#include <stdio.h>
+#include <time.h>
+#include <unistd.h>
+
+#include <ost/dmx.h>
+#include <ost/frontend.h>
+#include <ost/sec.h>
+#include <ost/video.h>
+#include <ost/audio.h>
+int main(void) {return 0;}
+EOF
+ if cc_check ; then
+ _dvb=yes
+ echores "yes"
+ else
+ if cc_check -I/usr/src/DVB/ost/include ; then
+ _dvb=yes
+ echores "yes (using source from /usr/src/DVB/ost/include)"
+ _inc_dvb="-I/usr/src/DVB/ost/include"
+ else
+ if cc_check $_inc_extra/ost/include ; then
+ _dvb=yes
+ echores "yes (using source from $_inc_extra/ost/include)"
+ _inc_dvb="$_inc_extra/ost/include"
+ else
+ _dvb=no
+ echores "no (driver source not in /usr/src/DVB/ost/include, please add path with --with-extraincdir=DIR)"
+ fi
+ fi
+ fi
+else
+ echores "no"
fi
if test "$_dvb" = yes ; then
_def_dvb='#define HAVE_DVB 1'
@@ -2053,7 +2088,6 @@ else
_def_dvb='#undef HAVE_DVB'
_vomodules="mpegpes(file) $_vomodules"
fi
-echores "$_dvb"
echocheck "PNG support"
@@ -3316,6 +3350,7 @@ X_LIB = $_ld_x11 $_ld_gl $_ld_dga $_ld_xv $_ld_vm $_ld_xinerama $_ld_mad $_ld_so
GGI_LIB = $_ld_ggi
MLIB_LIB = $_ld_mlib
MLIB_INC = $_inc_mlib
+DVB_INC = $_inc_dvb
PNG_LIB = $_ld_png
JPEG_LIB = $_ld_jpg
SDL_LIB = $_ld_sdl