mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
Nicer script formatting, by Ben Taylor.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3072 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
5b2849688e
commit
069b0bda72
1 changed files with 38 additions and 44 deletions
6
configure
vendored
6
configure
vendored
|
@ -536,7 +536,6 @@ EOF
|
||||||
sdl_too_old=no
|
sdl_too_old=no
|
||||||
|
|
||||||
if test -z "$sdl" ; then
|
if test -z "$sdl" ; then
|
||||||
|
|
||||||
sdl_config="sdl-config"
|
sdl_config="sdl-config"
|
||||||
sdl=no
|
sdl=no
|
||||||
sdl_static=no
|
sdl_static=no
|
||||||
|
@ -552,7 +551,6 @@ cat > $TMPC << EOF
|
||||||
#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
|
||||||
|
|
||||||
if $cc -o $TMPE `$sdl_config --cflags 2> /dev/null` $TMPC `$sdl_config --libs 2> /dev/null` 2> /tmp/qemu-$$-sdl-config.log ; then
|
if $cc -o $TMPE `$sdl_config --cflags 2> /dev/null` $TMPC `$sdl_config --libs 2> /dev/null` 2> /tmp/qemu-$$-sdl-config.log ; 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
|
||||||
|
@ -575,13 +573,9 @@ fi
|
||||||
if $cc -o $TMPE `$sdl_config --cflags 2> /dev/null` $TMPC $sdl_static_libs 2> /dev/null; then
|
if $cc -o $TMPE `$sdl_config --cflags 2> /dev/null` $TMPC $sdl_static_libs 2> /dev/null; then
|
||||||
sdl_static=yes
|
sdl_static=yes
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi # static link
|
fi # static link
|
||||||
|
|
||||||
fi # sdl compile test
|
fi # sdl compile test
|
||||||
|
|
||||||
fi # cross compilation
|
fi # cross compilation
|
||||||
|
|
||||||
else
|
else
|
||||||
# Make sure to disable cocoa if sdl was set
|
# Make sure to disable cocoa if sdl was set
|
||||||
if test "$sdl" = "yes" ; then
|
if test "$sdl" = "yes" ; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue