aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorTeLeMan <geleman@gmail.com>2010-02-08 13:56:44 +0800
committerAurelien Jarno <aurelien@aurel32.net>2010-02-08 12:29:20 +0100
commit74f42e182ae1f95f9c88368c86b1177d6607bc76 (patch)
treef9f64587a190c3841c1b9f1c828681e714975485 /configure
parentd2807bc98e9d7e1dab1a7f13ed2eaaa835f519f6 (diff)
downloadqemu-74f42e182ae1f95f9c88368c86b1177d6607bc76.zip
qemu-74f42e182ae1f95f9c88368c86b1177d6607bc76.tar.gz
qemu-74f42e182ae1f95f9c88368c86b1177d6607bc76.tar.bz2
configure: fix the static compilation for sdl
The static compilation for sdl is broken after 79427693174a553d62f3da44aacd3f19ba8df3a7. Signed-off-by: TeLeMan <geleman@gmail.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure b/configure
index b46f1e6..0a84b0e 100755
--- a/configure
+++ b/configure
@@ -1057,7 +1057,11 @@ if test "$sdl" != "no" ; then
int main( void ) { return SDL_Init (SDL_INIT_VIDEO); }
EOF
sdl_cflags=`$sdlconfig --cflags 2> /dev/null`
- sdl_libs=`$sdlconfig --libs 2> /dev/null`
+ if test "$static" = "yes" ; then
+ sdl_libs=`$sdlconfig --static-libs 2>/dev/null`
+ else
+ sdl_libs=`$sdlconfig --libs 2> /dev/null`
+ fi
if compile_prog "$sdl_cflags" "$sdl_libs" ; then
if test "$_sdlversion" -lt 121 ; then
sdl_too_old=yes
@@ -1069,7 +1073,6 @@ EOF
# static link with sdl ? (note: sdl.pc's --static --libs is broken)
if test "$sdl" = "yes" -a "$static" = "yes" ; then
- sdl_libs=`sdl-config --static-libs 2>/dev/null`
if test $? = 0 && echo $sdl_libs | grep -- -laa > /dev/null; then
sdl_libs="$sdl_libs `aalib-config --static-libs >2 /dev/null`"
sdl_cflags="$sdl_cflags `aalib-config --cflags >2 /dev/null`"