aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorFrantisek Dvorak <valtri@users.sourceforge.net>2006-03-28 23:36:07 +0000
committerMåns Rullgård <mans@mansr.com>2006-03-28 23:36:07 +0000
commit6a1a892f23d085780c697e78092753fb8f85510d (patch)
tree88bc7e7b6285065cc30423c0a73435f1b7304ea0 /configure
parent65f51a41afd8e960690e5910ef7f080dc769575a (diff)
downloadffmpeg-6a1a892f23d085780c697e78092753fb8f85510d.tar.gz
use sdl-config with $cross_prefix
patch by Frantisek Dvorak <valtri at users sourceforge net> Originally committed as revision 5234 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 6 insertions, 5 deletions
diff --git a/configure b/configure
index 78452c9912..dd3019227f 100755
--- a/configure
+++ b/configure
@@ -1217,9 +1217,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 +1573,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