[Mplayer-cvslog] CVS: main configure,1.849,1.850

Diego Biurrun CVS syncmail at mplayerhq.hu
Tue Apr 13 03:01:49 CEST 2004


CVS change done by Diego Biurrun CVS

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

Modified Files:
	configure 
Log Message:
win32 macro added to simplify detecting both Cygwin and MinGW.


Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.849
retrieving revision 1.850
diff -u -r1.849 -r1.850
--- configure	12 Apr 2004 16:39:26 -0000	1.849
+++ configure	13 Apr 2004 01:01:46 -0000	1.850
@@ -69,6 +69,7 @@
 gnu()     { issystem "GNU"     ; return "$?" ; }
 mingw32() { issystem "MINGW32" ; return "$?" ; }
 morphos() { issystem "MorphOS" ; return "$?" ; }
+win32()   { cygwin || mingw32  ; return "$?" ; }
 
 # arch test boolean functions
 # x86/x86pc is used by QNX
@@ -1839,8 +1840,7 @@
   x86 && _vidix=yes
   ppc && linux && _vidix=yes
   alpha && linux && _vidix=yes
-  cygwin && _vidix=no
-  mingw32 && _vidix=no
+  win32 && _vidix=no
   qnx && _vidix=no
   sunos && _vidix=no
 fi
@@ -3187,7 +3187,7 @@
 
 echocheck "OpenGL"
 #Note: this test is run even with --enable-gl since we autodetect $_ld_gl
-if (test "$_x11" = yes || mingw32 || cygwin) && test "$_gl" != no ; then
+if (test "$_x11" = yes || win32) && test "$_gl" != no ; then
   cat > $TMPC << EOF
 #include <GL/gl.h>
 int main(void) { return 0; }
@@ -4135,13 +4135,13 @@
 echocheck "DVD support (libmpdvdkit)"
 if test "$_dvdkit" = auto ; then
  _dvdkit=no
- if linux || freebsd || netbsd || darwin || cygwin || mingw32 || openbsd || sunos || hpux; then
+ if linux || freebsd || netbsd || darwin || openbsd || win32 || sunos || hpux; then
   test -f "./libmpdvdkit2/Makefile" && _dvdkit=yes
   test -f "./libmpdvdkit/Makefile" && _dvdkit=yes
  fi
 fi
 if test "$_dvdkit" = yes ; then
-  if test "$_dvd" = yes || test "$_cdrom" = yes || test "$_cdio" = yes || test "$_dvdio" = yes || test "$_bsdi_dvd" = yes || test "$_hpux_scsi_h" = yes || darwin || cygwin || mingw32 ; then
+  if test "$_dvd" = yes || test "$_cdrom" = yes || test "$_cdio" = yes || test "$_dvdio" = yes || test "$_bsdi_dvd" = yes || test "$_hpux_scsi_h" = yes || darwin || win32 ; then
    if test -f "./libmpdvdkit2/Makefile" ; then
     _inputmodules="mpdvdkit2 $_inputmodules"
     _dvdread=libmpdvdkit2
@@ -4776,7 +4776,7 @@
 if test "$_win32" != no ; then
   _def_win32_loader='#undef WIN32_LOADER'
   echocheck "Win32 loader support"
-  if not cygwin && not mingw32 ; then
+  if not win32 ; then
     _ld_win32='loader/libloader.a'
     _dep_win32='loader/libloader.a'
     _codecmodules="win32 $_codecmodules"
@@ -4887,7 +4887,7 @@
   _real=no
   if test "$_dl" = yes || test "$_win32" = yes ; then
 #  if test "$_dl" = yes  ; then
-    if linux || freebsd || netbsd || cygwin || mingw32 ; then
+    if linux || freebsd || netbsd || win32 ; then
       _real=yes
     else
       echores "no (tested only on Linux/FreeBSD/NetBSD/Cygwin/MinGW)"
@@ -5100,7 +5100,7 @@
   _def_libavformat='#define USE_LIBAVFORMAT 1'
   _ld_libavformat='libavformat/libavformat.a'
   _dep_libavformat='libavformat/libavformat.a'
-  if mingw32 || cygwin ; then
+  if win32 ; then
     _def_libavformat_win32='#define CONFIG_WIN32 1'
   fi
 fi
@@ -5790,7 +5790,7 @@
   _confmingw32='TARGET_MINGW32 = no'
 fi
 
-if mingw32 || cygwin ; then
+if win32 ; then
   _confwin32='TARGET_WIN32 = yes'
 else
   _confwin32='TARGET_WIN32 = no'
@@ -5824,7 +5824,7 @@
 else
   _novomodules="cvidix $_novomodules"
 fi
-if test "$_vidix" = yes && (cygwin || mingw32); then
+if test "$_vidix" = yes && (win32); then
   _vosrc="$_vosrc vo_winvidix.c"
   _vomodules="winvidix $_vomodules"
 else




More information about the MPlayer-cvslog mailing list