[MPlayer-cvslog] CVS: main configure,1.1110,1.1111

Nico Sabbi CVS syncmail at mplayerhq.hu
Wed Dec 14 22:52:43 CET 2005


CVS change done by Nico Sabbi CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv10267

Modified Files:
	configure 
Log Message:
fix compilation when dvdkit and dvdread are not available

Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.1110
retrieving revision 1.1111
diff -u -r1.1110 -r1.1111
--- configure	13 Dec 2005 21:54:28 -0000	1.1110
+++ configure	14 Dec 2005 21:52:40 -0000	1.1111
@@ -1493,6 +1493,7 @@
 _faac=auto
 _ladspa=auto
 _xmms=no
+_have_dvd=no
 # dvdnav disabled, it does not work
 #_dvdnav=no
 _dvdread=auto
@@ -4948,6 +4949,7 @@
   _noinputmodules="mpdvdkit $_noinputmodules"
 fi
 if test "$_dvdkit" = yes || test "$_dvdkit2" = yes; then
+  _have_dvd=yes
   echores "yes"
 else
   echores "no"
@@ -4977,6 +4979,7 @@
 	_def_dvdread='#define USE_DVDREAD 1'
 	_ld_dvdread='-ldvdread'
 	_inputmodules="dvdread $_inputmodules"
+	_have_dvd=yes
 	echores "yes"
 	;;
   no)
@@ -4990,6 +4993,7 @@
 	_ld_dvdread='-Llibmpdvdkit -lmpdvdkit'
 	_noinputmodules="dvdread $_noinputmodules"
 	_def_mpdvdkit="#define USE_MPDVDKIT 1"
+	_have_dvd=yes
 	echores "disabled by libmpdvdkit"
 	;;
   libmpdvdkit2)
@@ -4998,10 +5002,17 @@
 	_ld_dvdread='-Llibmpdvdkit2 -lmpdvdkit'
 	_noinputmodules="dvdread $_noinputmodules"
 	_def_mpdvdkit="#define USE_MPDVDKIT 2"
+	_have_dvd=yes
 	echores "disabled by libmpdvdkit2"
 	;;
 esac
 
+if test "$_have_dvd" = yes ; then
+  _def_have_dvd='#define HAVE_DVD 1'
+else
+  _def_have_dvd='#undef HAVE_DVD'
+fi
+
 # dvdnav disabled, it does not work
 # echocheck "DVD support (libdvdnav)"
 # if test "$_dvdnav" = yes ; then
@@ -7116,6 +7127,8 @@
 TERMCAP_LIB = $_ld_termcap
 LIRC_LIB = $_ld_lirc
 LIRCC_LIB = $_ld_lircc
+HAVE_DVD = $_have_dvd
+DVDREAD = $_dvdread
 DVDREAD_LIB = $_ld_dvdread
 DVDKIT = $_dvdkit
 DVDKIT2 = $_dvdkit2
@@ -7290,6 +7303,7 @@
 $_def_sol_scsi_h
 $_def_hpux_scsi_h
 $_def_stddef
+$_def_have_dvd
 
 /* Common data directory (for fonts, etc) */
 #define MPLAYER_DATADIR "$_datadir"




More information about the MPlayer-cvslog mailing list