[Mplayer-cvslog] CVS: main configure,1.418,1.419

Johannes Feigl jaf at mplayer.dev.hu
Thu Apr 4 15:21:23 CEST 2002


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv2115

Modified Files:
	configure 
Log Message:
improved DVB detection

Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.418
retrieving revision 1.419
diff -u -r1.418 -r1.419
--- configure	30 Mar 2002 19:25:11 -0000	1.418
+++ configure	4 Apr 2002 13:21:13 -0000	1.419
@@ -2045,6 +2045,41 @@
 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 @@
   _def_dvb='#undef HAVE_DVB'
   _vomodules="mpegpes(file) $_vomodules"  
 fi
-echores "$_dvb"
 
 
 echocheck "PNG support"
@@ -3316,6 +3350,7 @@
 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




More information about the MPlayer-cvslog mailing list