Commit 59bc14e4 authored by michael's avatar michael

check for sdl-config

avoid which


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3190 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4a353637
...@@ -867,7 +867,7 @@ EOF ...@@ -867,7 +867,7 @@ EOF
freetype2=no freetype2=no
if test "x$targetos" != "xBeOS" && test "$os2" != "yes"; then if test "x$targetos" != "xBeOS" && test "$os2" != "yes"; then
if test "`which freetype-config`" != ""; then if freetype-config --version >/dev/null 2>&1 ; then
if $cc -o $TMPE $TMPC `freetype-config --cflags` `freetype-config --libs` > /dev/null 2>&1 ; then if $cc -o $TMPE $TMPC `freetype-config --cflags` `freetype-config --libs` > /dev/null 2>&1 ; then
freetype2=yes freetype2=yes
fi fi
...@@ -885,6 +885,7 @@ EOF ...@@ -885,6 +885,7 @@ EOF
sdl_too_old=no sdl_too_old=no
sdl=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 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'` _sdlversion=`sdl-config --version | sed 's/[^0-9]//g'`
if test "$_sdlversion" -lt 121 ; then if test "$_sdlversion" -lt 121 ; then
...@@ -893,6 +894,7 @@ else ...@@ -893,6 +894,7 @@ else
sdl=yes sdl=yes
fi fi
fi fi
fi
case "`$cc -v 2>&1 | grep version`" in case "`$cc -v 2>&1 | grep version`" in
*gcc*) *gcc*)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment