[MPlayer-cygwin] [PATCH] 1st real attempt at fixing that SDL config.mak issue
Diego Biurrun
diego at biurrun.de
Wed Nov 13 22:39:34 CET 2002
Sycotic Smith wrote:
> >Hmm, I only have -I/usr/local/include/SDL in my SDL_INC to begin with,
> >no -I/usr/local/include, thus your patch fails for me. When running
>
>
> I have removed it from my SDL_INC, and it works fine, so maybe the
> patch can be updated to reflect the line below instead of what I had.
> + _ld_sdl=`$_sdlconfig --libs | cut -d " " -f 1,4,6 | sed
> s/no-cygwin/cygwin/`
> + _inc_sdl=`$_sdlconfig --cflags | cut -d " " -f 2,6,7 | sed
> s/no-cygwin/cygwin/`
OK, how about this, does it work for you guys?
--- configure 12 Nov 2002 01:56:21 -0000 1.603
+++ configure 13 Nov 2002 23:39:03 -0000
@@ -2580,7 +2580,11 @@
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
@@ -2869,8 +2873,13 @@
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"
More information about the MPlayer-cygwin
mailing list