[Mplayer-cvslog] CVS: main configure,1.433,1.434

Zoltan Ponekker pontscho at mplayerhq.hu
Tue Apr 23 18:29:16 CEST 2002


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

Modified Files:
	configure 
Log Message:
add headers detection for mpdvdkit

Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.433
retrieving revision 1.434
diff -u -r1.433 -r1.434
--- configure	22 Apr 2002 09:31:13 -0000	1.433
+++ configure	23 Apr 2002 16:29:13 -0000	1.434
@@ -1351,6 +1351,21 @@
 echores "$_inttypes"
 
 
+echocheck "stddef.h"
+cat > $TMPC << EOF
+#include <stddef.h>
+int main(void) { return 0; }
+EOF
+_stddef=no
+cc_check && _stddef=yes
+if test "$_stddef" = yes ; then
+  _def_stddef='#define HAVE_STDDEF_H 1'
+else
+  _def_stddef='#undef HAVE_STDDEF_H'
+fi
+echores "$_stddef"
+
+
 echocheck "malloc.h"
 cat > $TMPC << EOF
 #include <malloc.h>
@@ -1495,6 +1510,99 @@
 echores "$_sys_soundcard"
 
 
+echocheck "sys/dvdio.h"
+cat > $TMPC << EOF
+#include <sys/dvdio.h>
+int main(void) { return 0; }
+EOF
+_dvdio=no
+cc_check && _dvdio=yes
+if test "$_dvdio" = yes ; then
+  _def_dvdio='#define DVD_STRUCT_IN_SYS_DVDIO_H 1'
+else
+  _def_dvdio='#undef DVD_STRUCT_IN_SYS_DVDIO_H'
+fi
+echores "$_dvdio"
+
+
+echocheck "sys/cdio.h"
+cat > $TMPC << EOF
+#include <sys/cdio.h>
+int main(void) { return 0; }
+EOF
+_cdio=no
+cc_check && _cdio=yes
+if test "$_cdio" = yes ; then
+  _def_cdio='#define DVD_STRUCT_IN_SYS_CDIO_H 1'
+else
+  _def_cdio='#undef DVD_STRUCT_IN_SYS_CDIO_H'
+fi
+echores "$_cdio"
+
+
+echocheck "linux/cdrom.h"
+cat > $TMPC << EOF
+#include <linux/cdrom.h>
+int main(void) { return 0; }
+EOF
+_cdrom=no
+cc_check && _cdrom=yes
+if test "$_cdrom" = yes ; then
+  _def_cdrom='#define DVD_STRUCT_IN_LINUX_CDROM_H 1'
+else
+  _def_cdrom='#undef DVD_STRUCT_IN_LINUX_CDROM_H'
+fi
+echores "$_cdrom"
+
+
+echocheck "dvd.h"
+cat > $TMPC << EOF
+#include <dvd.h>
+int main(void) { return 0; }
+EOF
+_dvd=no
+cc_check && _dvd=yes
+if test "$_dvd" = yes ; then
+  _def_dvd='#define DVD_STRUCT_IN_DVD_H 1'
+else
+  _def_dvd='#undef DVD_STRUCT_IN_DVD_H'
+fi
+echores "$_dvd"
+
+
+echocheck "extras/BSDI_dvdioctl/dvd.h"
+cat > $TMPC << EOF
+#include <extras/BSDI_dvdioctl/dvd.h>
+int main(void) { return 0; }
+EOF
+_bsdi_dvd=no
+cc_check && _bsdi_dvd=yes
+if test "$_bsdi_dvd" = yes ; then
+  _def_bsdi_dvd='#define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1'
+else
+  _def_bsdi_dvd='#undef DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H'
+fi
+echores "$_bsdi_dvd"
+
+
+echocheck "Have userspace SCSI headers on Solaris"
+cat > $TMPC << EOF
+#   include <unistd.h>
+#   include <stropts.h>
+#   include <sys/scsi/scsi_types.h>
+#   include <sys/scsi/impl/uscsi.h>
+int main(void) { return 0; }
+EOF
+_sol_scsi_h=no
+cc_check && _sol_scsi_h=yes
+if test "$_sol_scsi_h" = yes ; then
+  _def_sol_scsi_h='#define SOLARIS_USCSI 1'
+else
+  _def_sol_scsi_h='#undef SOLARIS_USCSI'
+fi
+echores "$_sol_scsi_h"
+
+
 echocheck "termcap"
 if test "$_termcap" = auto ; then
   cat > $TMPC <<EOF
@@ -2454,13 +2562,20 @@
  test -f "./libmpdvdkit/Makefile" && _dvdkit=yes
 fi
 if test "$_dvdkit" = yes ; then
-  echores "yes"
-  _inputmodules="mpdvdkit $_inputmodules"
-  _dvdread=included
+  test "$_dvd" = yes || test "$_cdrom" = yes || test "$_cdio" = yes || test "$_dvdio" = yes || test "$_bdsi_dvd" = yes && _dvdkit=yes
+  if test "$_dvdkit" = yes ; then
+    _inputmodules="mpdvdkit $_inputmodules"
+    _dvdread=included
+  fi
+  if bsd ; then
+   _def_dvd_bsd='#define HAVE_BSD_DVD_STRUCT 1'
+  else
+   _def_dvd_bsd='#undef HAVE_BSD_DVD_STRUCT'
+  fi
 else
-  echores "no"
   _noinputmodules="mpdvdkit $_noinputmodules"
 fi
+echores "$_dvdkit"
 
 echocheck "DVD support (libcss - old style)"
 if test "$_css" = auto ; then
@@ -3497,6 +3612,16 @@
 
 /* Indicates is Ogle's libdvdread is available for DVD playback */
 $_def_dvdread
+
+/* Additional options for libmpdvdkit*/
+$_def_dvd
+$_def_cdrom
+$_def_cdio
+$_def_dvdio
+$_def_bsdi_dvd
+$_def_dvd_bsd
+$_def_sol_scsi_h
+$_def_stddef
 
 /* Common data directory (for fonts, etc) */
 #define DATADIR "$_datadir"




More information about the MPlayer-cvslog mailing list