提交 ac119f9d 编写于 作者: J Juan Quintela 提交者: Anthony Liguori

indent with 2 spaces sdl tests

Signed-off-by: NJuan Quintela <quintela@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 1ac88f28
...@@ -892,45 +892,42 @@ fi ...@@ -892,45 +892,42 @@ fi
sdl_too_old=no sdl_too_old=no
if test "$sdl" = "yes" ; then if test "$sdl" = "yes" ; then
sdl=no sdl=no
cat > $TMPC << EOF
cat > $TMPC << EOF
#include <SDL.h> #include <SDL.h>
#undef main /* We don't want SDL to override our main() */ #undef main /* We don't want SDL to override our main() */
int main( void ) { return SDL_Init (SDL_INIT_VIDEO); } int main( void ) { return SDL_Init (SDL_INIT_VIDEO); }
EOF EOF
sdl_cflags=`sdl-config --cflags 2> /dev/null` sdl_cflags=`sdl-config --cflags 2> /dev/null`
sdl_libs=`sdl-config --libs 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 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'` _sdlversion=`sdl-config --version | sed 's/[^0-9]//g'`
if test "$_sdlversion" -lt 121 ; then if test "$_sdlversion" -lt 121 ; then
sdl_too_old=yes sdl_too_old=yes
else else
if test "$cocoa" = "no" ; then if test "$cocoa" = "no" ; then
sdl=yes sdl=yes
fi fi
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
if $cc -o $TMPE ${OS_CFLAGS} $sdl_cflags $TMPC $sdl_libs > /dev/null 2> /dev/null; then # static link with sdl ?
: if test "$sdl" = "yes" -a "$static" = "yes" ; then
else sdl_libs=`sdl-config --static-libs 2>/dev/null`
sdl=no if test `sdl-config --static-libs 2>/dev/null | grep \\\-laa > /dev/null` ; then
fi sdl_libs="$sdl_libs `aalib-config --static-libs >2 /dev/null`"
fi # static link sdl_cflags="$sd_cflags `aalib-config --cflags >2 /dev/null`"
fi # sdl compile test 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 fi
if test "$sdl" = "yes" ; then if test "$sdl" = "yes" ; then
cat > $TMPC <<EOF cat > $TMPC <<EOF
#include <SDL.h> #include <SDL.h>
#if defined(SDL_VIDEO_DRIVER_X11) #if defined(SDL_VIDEO_DRIVER_X11)
#include <X11/XKBlib.h> #include <X11/XKBlib.h>
...@@ -939,9 +936,9 @@ cat > $TMPC <<EOF ...@@ -939,9 +936,9 @@ cat > $TMPC <<EOF
#endif #endif
int main(void) { return 0; } int main(void) { return 0; }
EOF EOF
if $cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} $sdl_cflags $TMPC $sdl_libs > /dev/null 2>&1 ; then if $cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} $sdl_cflags $TMPC $sdl_libs > /dev/null 2>&1 ; then
sdl_libs="$sdl_libs -lX11" sdl_libs="$sdl_libs -lX11"
fi fi
fi fi
########################################## ##########################################
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册