aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-21 21:07:35 +0000
committerGravatar alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-21 21:07:35 +0000
commit97f979527565915c10e97a6acac22b760214cc38 (patch)
treea896316c841dbd76a5f115de0d3df50d131b3be9 /configure
parent597c4bf9259a707196273bd6cfe06bb408fb6843 (diff)
mingw32 support patch by Diego Biurrun with some changes made by me
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9969 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure24
1 files changed, 22 insertions, 2 deletions
diff --git a/configure b/configure
index 3c1b7644bf..ecfc866ab8 100755
--- a/configure
+++ b/configure
@@ -67,6 +67,7 @@ bsd() { freebsd || netbsd || bsdos || openbsd ; return "$?" ; }
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 @@ if test -z "$_target" ; then
[cC][yY][gG][wW][iI][nN]*)
system_name=CYGWIN
;;
+ MINGW32*)
+ system_name=MINGW32
+ ;;
*)
system_name="$system_name-UNKNOWN"
;;
@@ -1544,10 +1548,17 @@ if test "$_vidix" = auto ; then
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 @@ cat > $TMPC << EOF
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 @@ else
_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 @@ MACOSX_FRAMEWORKS = $_macosx_frameworks
# --- Some stuff for autoconfigure ----
$_target_arch
$_confcygwin
+$_confmingw32
TARGET_CPU=$iproc
TARGET_MMX = $_mmx
TARGET_MMX2 = $_mmx2
@@ -5294,7 +5314,7 @@ $_def_stddef
/* 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