[Ffmpeg-devel] [PATCH] MinGW and portability
Diego Biurrun
diego
Wed Mar 29 00:38:20 CEST 2006
On Tue, Mar 28, 2006 at 09:43:54PM +0100, M?ns Rullg?rd wrote:
> Frantisek Dvorak <valtri at users.sourceforge.net> writes:
>
> > Hi coders, encoders and decoders,
:-)
> > --- configure 24 Mar 2006 01:17:22 -0000 1.258
> > +++ configure 28 Mar 2006 18:02:31 -0000
> > @@ -1217,9 +1237,10 @@ EOF
> >
> > sdl_too_old=no
> > sdl=no
> > -if (sdl-config --version) >/dev/null 2>&1 ; then
> > -if $cc -o $TMPE `sdl-config --cflags` $TMPC `sdl-config --libs` > /dev/null 2>&1 ; then
> > -_sdlversion=`sdl-config --version | sed 's/[^0-9]//g'`
> > +SDL_CONFIG="${cross_prefix}sdl-config"
> > +if ("${SDL_CONFIG}" --version) >/dev/null 2>&1 ; then
> > +if $cc -o $TMPE `"${SDL_CONFIG}" --cflags` $TMPC `"${SDL_CONFIG}" --libs` > /dev/null 2>&1 ; then
> > +_sdlversion=`"${SDL_CONFIG}" --version | sed 's/[^0-9]//g'`
> > if test "$_sdlversion" -lt 121 ; then
> > sdl_too_old=yes
> > else
> > @@ -1572,8 +1600,8 @@ if test "$pthreads" = "yes" ; then
> > fi
> > if test "$sdl" = "yes" ; then
> > echo "CONFIG_SDL=yes" >> config.mak
> > - echo "SDL_LIBS=`sdl-config --libs`" >> config.mak
> > - echo "SDL_CFLAGS=`sdl-config --cflags`" >> config.mak
> > + echo "SDL_LIBS=`"${SDL_CONFIG}" --libs`" >> config.mak
> > + echo "SDL_CFLAGS=`"${SDL_CONFIG}" --cflags`" >> config.mak
> > fi
> > if test "$texi2html" = "yes"; then
> > echo "BUILD_DOC=yes" >> config.mak
>
> This one looks sensible, assuming SDL is normally installed like that.
To me as well, apply it :)
Diego
More information about the ffmpeg-devel
mailing list