Index: configure =================================================================== RCS file: /cvsroot/mplayer/main/configure,v retrieving revision 1.694 diff -u -r1.694 configure --- configure 11 Apr 2003 16:33:29 -0000 1.694 +++ configure 18 Apr 2003 18:49:34 -0000 @@ -67,6 +67,7 @@ qnx() { issystem "QNX" ; return "$?" ; } darwin() { issystem "Darwin" ; return "$?" ; } gnu() { issystem "GNU" ; return "$?" ; } +mingw32() { issystem "MINGW32" ; return "$?" ; } # arch test boolean functions # x86/x86pc is used by QNX @@ -373,6 +374,9 @@ [cC][yY][gG][wW][iI][nN]*) system_name=CYGWIN ;; + MINGW32*) + system_name=MINGW32 + ;; *) system_name="$system_name-UNKNOWN" ;; @@ -1544,10 +1548,17 @@ x86 && _vidix=yes ppc && linux && _vidix=yes cygwin && _vidix=no + mingw32 && _vidix=no qnx && _vidix=no sunos && _vidix=no fi +if mingw32 ; then + _def_stream_cache='#undef USE_STREAM_CACHE' +else + _def_stream_cache='#define USE_STREAM_CACHE 1' +fi + # On QNX we must link to libph - Gabucino if qnx ; then _ld_arch="$_ld_arch -lph" @@ -1964,7 +1975,7 @@ echocheck "dynamic a/v plugins support" if test "$_dl" = no ; then - _dynamic_plugins = no + _dynamic_plugins=no fi if test "$_dynamic_plugins" = yes ; then _def_dynamic_plugins='#define DYNAMIC_PLUGINS 1' @@ -2010,10 +2021,18 @@ elif ( cc_check -pthread ) ; then _ld_pthread='-pthread' else - die "Static lib pthread not found (needed by Windows and networking stufff)." + if mingw32 ; then + echores "not needed by MinGW port" + else + die "Static lib pthread not found (needed by Windows and networking stuff)." + fi fi else - die "Lib pthread not found (needed by Windows and networking stuff)." + if mingw32 ; then + echores "not needed by MinGW port" + else + die "Lib pthread not found (needed by Windows and networking stuff)." + fi fi fi echores "yes (using $_ld_pthread)" @@ -4613,6 +4632,9 @@ fi echores "$_unrarlib" +if mingw32 ; then + _tv=no +fi echocheck "TV interface" if test "$_tv" = yes ; then _def_tv='#define USE_TV 1' @@ -5027,6 +5049,12 @@ _confcygwin="TARGET_CYGWIN = no" fi +if mingw32 ; then + _confmingw32='TARGET_MINGW32 = yes' +else + _confmingw32="TARGET_MINGW32 = no" +fi + # Dynamic linking flags # (FIXME: 'echocheck "dynamic linking"' above and modify here accordingly) _ld_dl_dynamic='' @@ -5215,6 +5243,7 @@ # --- Some stuff for autoconfigure ---- $_target_arch $_confcygwin +$_confmingw32 TARGET_CPU=$iproc TARGET_MMX = $_mmx TARGET_MMX2 = $_mmx2 @@ -5294,7 +5323,7 @@ /* Define this to compile stream-caching support, it can be enabled via -cache */ -#define USE_STREAM_CACHE 1 +$_def_stream_cache /* Define to include support for XviD/Divx4Linux/OpenDivx */ $_def_divx