[MPlayer-cygwin] [PATCH] 1st real attempt at fixing that SDL config.mak issue

Sycotic Smith sycotic at linuxmail.org
Thu Nov 14 02:42:53 CET 2002


> > +    _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/`

These numbers give the right fields from the output for my system.

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

This doesn't work for me.  When you installed your SDL, did you use prefix=/usr/ or none at all?  Default location seems to be /usr/local/ which is where mine sits.  When I use your numbers from above, it gives the wrong fields from the output.  I think this will be the dilema we run into for this issue... "Which is correct?" "This one works for me," and "That one breaks my build," seem to be responses from us all.  Anyone else out there able to shed some light on the situation?  I do understand nothing will be commited from this thread until this can be resolved.

/S. Smith

-- 
______________________________________________
http://www.linuxmail.org/
Now with POP3/IMAP access for only US$19.95/yr

Powered by Outblaze



More information about the MPlayer-cygwin mailing list