summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-11-18 01:02:27 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-11-18 01:02:27 +0000
commit10150435582b55b0c25f7afeba40e54eebadc8bf (patch)
tree3af92973423ec65aace40986125d7b5f97d7ed2b /configure
parent50bc90625a541395089934c1766e54d8e39c9d14 (diff)
downloadmpv-10150435582b55b0c25f7afeba40e54eebadc8bf.tar.bz2
mpv-10150435582b55b0c25f7afeba40e54eebadc8bf.tar.xz
Finally add the correct compile flags for SDL under cygwin automatically.
Patch by Sycotic Smith <sycotic@linuxmail.org> and me. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8229 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure15
1 files changed, 12 insertions, 3 deletions
diff --git a/configure b/configure
index 59f955b514..64894576e7 100755
--- a/configure
+++ b/configure
@@ -2590,7 +2590,11 @@ EOF
fi
if test "$_aa" = yes ; then
_def_aa='#define HAVE_AA 1'
- _ld_aa='-laa'
+ if cygwin ; then
+ _ld_aa=`aalib-config --libs | cut -d " " -f 2,5,6`
+ else
+ _ld_aa='-laa'
+ fi
_vosrc="$_vosrc vo_aa.c"
_vomodules="aa $_vomodules"
else
@@ -2879,8 +2883,13 @@ EOF
fi
if test "$_sdl" = yes ; then
_def_sdl='#define HAVE_SDL 1'
- _ld_sdl=`$_sdlconfig --libs`
- _inc_sdl=`$_sdlconfig --cflags`
+ if cygwin ; then
+ _ld_sdl=`$_sdlconfig --libs | cut -d " " -f 1,4,6 | sed s/no-cygwin/cygwin/`
+ _inc_sdl=`$_sdlconfig --cflags | cut -d " " -f 1,5,6 | sed s/no-cygwin/cygwin/`
+ else
+ _ld_sdl=`$_sdlconfig --libs`
+ _inc_sdl=`$_sdlconfig --cflags`
+ fi
_vosrc="$_vosrc vo_sdl.c"
_vomodules="sdl $_vomodules"
_aosrc="$_aosrc ao_sdl.c"