1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 01:52:19 +00:00

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
This commit is contained in:
diego 2002-11-18 01:02:27 +00:00
parent 50bc90625a
commit 1015043558

15
configure vendored
View File

@ -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"