[Mplayer-cvslog] CVS: main configure,1.695,1.696
Alex Beregszaszi
alex at mplayerhq.hu
Mon Apr 21 23:07:39 CEST 2003
Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv23295
Modified Files:
configure
Log Message:
mingw32 support patch by Diego Biurrun with some changes made by me
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.695
retrieving revision 1.696
diff -u -r1.695 -r1.696
--- configure 21 Apr 2003 16:08:06 -0000 1.695
+++ configure 21 Apr 2003 21:07:35 -0000 1.696
@@ -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"
@@ -1996,7 +2007,9 @@
void* func(void *arg) { return arg; }
int main(void) { pthread_t tid; return pthread_create (&tid, 0, func, 0) == 0 ? 0 : 1; }
EOF
-if ( cc_check && $TMPO ) ; then # QNX
+if mingw32 ; then
+ _ld_pthread=''
+elif ( cc_check && $TMPO ) ; then # QNX
_ld_pthread=''
elif ( cc_check -lpthread && $TMPO ) ; then
_ld_pthread='-lpthread'
@@ -5027,6 +5040,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 +5234,7 @@
# --- Some stuff for autoconfigure ----
$_target_arch
$_confcygwin
+$_confmingw32
TARGET_CPU=$iproc
TARGET_MMX = $_mmx
TARGET_MMX2 = $_mmx2
@@ -5294,7 +5314,7 @@
/* Define this to compile stream-caching support, it can be enabled via
-cache <kilobytes> */
-#define USE_STREAM_CACHE 1
+$_def_stream_cache
/* Define to include support for XviD/Divx4Linux/OpenDivx */
$_def_divx
More information about the MPlayer-cvslog
mailing list