summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorJuan Quintela2009-07-27 16:13:15 +0200
committerAnthony Liguori2009-07-27 21:09:22 +0200
commitac119f9d0cb9f1eff62eda7c831b2e154baed033 (patch)
tree6c125d5214850fcbc6db5748788400197cd778ba /configure
parentremove sdl_static. Just do the right thing if static is yes (diff)
downloadqemu-ac119f9d0cb9f1eff62eda7c831b2e154baed033.tar.gz
qemu-ac119f9d0cb9f1eff62eda7c831b2e154baed033.tar.xz
qemu-ac119f9d0cb9f1eff62eda7c831b2e154baed033.zip
indent with 2 spaces sdl tests
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure65
1 files changed, 31 insertions, 34 deletions
diff --git a/configure b/configure
index 6bbf29608b..33a616b6c4 100755
--- a/configure
+++ b/configure
@@ -892,45 +892,42 @@ fi
sdl_too_old=no
if test "$sdl" = "yes" ; then
- sdl=no
-
-cat > $TMPC << EOF
+ sdl=no
+ cat > $TMPC << EOF
#include <SDL.h>
#undef main /* We don't want SDL to override our main() */
int main( void ) { return SDL_Init (SDL_INIT_VIDEO); }
EOF
- sdl_cflags=`sdl-config --cflags 2> /dev/null`
- sdl_libs=`sdl-config --libs 2> /dev/null`
- if $cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} $sdl_cflags $TMPC $sdl_libs > $TMPSDLLOG 2>&1 ; then
- _sdlversion=`sdl-config --version | sed 's/[^0-9]//g'`
- if test "$_sdlversion" -lt 121 ; then
- sdl_too_old=yes
- else
- if test "$cocoa" = "no" ; then
- sdl=yes
- fi
- fi
-
- # static link with sdl ?
- if test "$sdl" = "yes" -a "$static" = "yes" ; then
- aa="no"
- sdl_libs=`sdl-config --static-libs 2>/dev/null`
- if test `sdl-config --static-libs 2>/dev/null | grep \\\-laa > /dev/null` ; then
- sdl_libs="$sdl_libs `aalib-config --static-libs >2 /dev/null`"
- sdl_cflags="$sd_cflags `aalib-config --cflags >2 /dev/null`"
- fi
+ sdl_cflags=`sdl-config --cflags 2> /dev/null`
+ sdl_libs=`sdl-config --libs 2> /dev/null`
+ if $cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} $sdl_cflags $TMPC $sdl_libs > $TMPSDLLOG 2>&1 ; then
+ _sdlversion=`sdl-config --version | sed 's/[^0-9]//g'`
+ if test "$_sdlversion" -lt 121 ; then
+ sdl_too_old=yes
+ else
+ if test "$cocoa" = "no" ; then
+ sdl=yes
+ fi
+ fi
- if $cc -o $TMPE ${OS_CFLAGS} $sdl_cflags $TMPC $sdl_libs > /dev/null 2> /dev/null; then
- :
- else
- sdl=no
- fi
- fi # static link
- fi # sdl compile test
+ # static link with sdl ?
+ if test "$sdl" = "yes" -a "$static" = "yes" ; then
+ sdl_libs=`sdl-config --static-libs 2>/dev/null`
+ if test `sdl-config --static-libs 2>/dev/null | grep \\\-laa > /dev/null` ; then
+ sdl_libs="$sdl_libs `aalib-config --static-libs >2 /dev/null`"
+ sdl_cflags="$sd_cflags `aalib-config --cflags >2 /dev/null`"
+ fi
+ if $cc -o $TMPE ${OS_CFLAGS} $sdl_cflags $TMPC $sdl_libs > /dev/null 2> /dev/null; then
+ :
+ else
+ sdl=no
+ fi
+ fi # static link
+ fi # sdl compile test
fi
if test "$sdl" = "yes" ; then
-cat > $TMPC <<EOF
+ cat > $TMPC <<EOF
#include <SDL.h>
#if defined(SDL_VIDEO_DRIVER_X11)
#include <X11/XKBlib.h>
@@ -939,9 +936,9 @@ cat > $TMPC <<EOF
#endif
int main(void) { return 0; }
EOF
- if $cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} $sdl_cflags $TMPC $sdl_libs > /dev/null 2>&1 ; then
- sdl_libs="$sdl_libs -lX11"
- fi
+ if $cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} $sdl_cflags $TMPC $sdl_libs > /dev/null 2>&1 ; then
+ sdl_libs="$sdl_libs -lX11"
+ fi
fi
##########################################