reindent Operating System selection configure

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
This commit is contained in:
Juan Quintela 2009-08-03 14:46:13 +02:00 committed by Anthony Liguori
parent ea8f20f8de
commit 0dbfc67558
1 changed files with 83 additions and 81 deletions

164
configure vendored
View File

@ -220,121 +220,123 @@ elif check_define __sun__ ; then
else else
targetos=`uname -s` targetos=`uname -s`
fi fi
case $targetos in case $targetos in
CYGWIN*) CYGWIN*)
mingw32="yes" mingw32="yes"
CFLAGS="-mno-cygwin $CFLAGS" CFLAGS="-mno-cygwin $CFLAGS"
audio_possible_drivers="sdl" audio_possible_drivers="sdl"
;; ;;
MINGW32*) MINGW32*)
mingw32="yes" mingw32="yes"
audio_possible_drivers="dsound sdl fmod" audio_possible_drivers="dsound sdl fmod"
;; ;;
GNU/kFreeBSD) GNU/kFreeBSD)
audio_drv_list="oss" audio_drv_list="oss"
audio_possible_drivers="oss sdl esd pa" audio_possible_drivers="oss sdl esd pa"
if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then
kqemu="yes" kqemu="yes"
fi fi
;; ;;
FreeBSD) FreeBSD)
bsd="yes" bsd="yes"
audio_drv_list="oss" audio_drv_list="oss"
audio_possible_drivers="oss sdl esd pa" audio_possible_drivers="oss sdl esd pa"
if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then
kqemu="yes" kqemu="yes"
fi fi
;; ;;
DragonFly) DragonFly)
bsd="yes" bsd="yes"
audio_drv_list="oss" audio_drv_list="oss"
audio_possible_drivers="oss sdl esd pa" audio_possible_drivers="oss sdl esd pa"
if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then
kqemu="yes" kqemu="yes"
fi fi
aio="no" aio="no"
;; ;;
NetBSD) NetBSD)
bsd="yes" bsd="yes"
audio_drv_list="oss" audio_drv_list="oss"
audio_possible_drivers="oss sdl esd" audio_possible_drivers="oss sdl esd"
oss_lib="-lossaudio" oss_lib="-lossaudio"
;; ;;
OpenBSD) OpenBSD)
bsd="yes" bsd="yes"
audio_drv_list="oss" audio_drv_list="oss"
audio_possible_drivers="oss sdl esd" audio_possible_drivers="oss sdl esd"
oss_lib="-lossaudio" oss_lib="-lossaudio"
;; ;;
Darwin) Darwin)
bsd="yes" bsd="yes"
darwin="yes" darwin="yes"
# on Leopard most of the system is 32-bit, so we have to ask the kernel it if we can run 64-bit userspace code # on Leopard most of the system is 32-bit, so we have to ask the kernel it if we can
if [ "$cpu" = "i386" ] ; then # run 64-bit userspace code
if [ "$cpu" = "i386" ] ; then
is_x86_64=`sysctl -n hw.optional.x86_64` is_x86_64=`sysctl -n hw.optional.x86_64`
[ "$is_x86_64" = "1" ] && cpu=x86_64 [ "$is_x86_64" = "1" ] && cpu=x86_64
fi fi
if [ "$cpu" = "x86_64" ] ; then if [ "$cpu" = "x86_64" ] ; then
CFLAGS="-arch x86_64 $CFLAGS" CFLAGS="-arch x86_64 $CFLAGS"
LDFLAGS="-arch x86_64 $LDFLAGS" LDFLAGS="-arch x86_64 $LDFLAGS"
else else
CFLAGS="-mdynamic-no-pic $CFLAGS" CFLAGS="-mdynamic-no-pic $CFLAGS"
fi fi
darwin_user="yes" darwin_user="yes"
cocoa="yes" cocoa="yes"
audio_drv_list="coreaudio" audio_drv_list="coreaudio"
audio_possible_drivers="coreaudio sdl fmod" audio_possible_drivers="coreaudio sdl fmod"
LDFLAGS="-framework CoreFoundation -framework IOKit $LDFLAGS" LDFLAGS="-framework CoreFoundation -framework IOKit $LDFLAGS"
;; ;;
SunOS) SunOS)
solaris="yes" solaris="yes"
make="gmake" make="gmake"
install="ginstall" install="ginstall"
needs_libsunmath="no" needs_libsunmath="no"
solarisrev=`uname -r | cut -f2 -d.` solarisrev=`uname -r | cut -f2 -d.`
# have to select again, because `uname -m` returns i86pc # have to select again, because `uname -m` returns i86pc
# even on an x86_64 box. # even on an x86_64 box.
solariscpu=`isainfo -k` solariscpu=`isainfo -k`
if test "${solariscpu}" = "amd64" ; then if test "${solariscpu}" = "amd64" ; then
cpu="x86_64" cpu="x86_64"
fi
if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then
if test "$solarisrev" -le 9 ; then
if test -f /opt/SUNWspro/prod/lib/libsunmath.so.1; then
needs_libsunmath="yes"
else
echo "QEMU will not link correctly on Solaris 8/X86 or 9/x86 without"
echo "libsunmath from the Sun Studio compilers tools, due to a lack of"
echo "C99 math features in libm.so in Solaris 8/x86 and Solaris 9/x86"
echo "Studio 11 can be downloaded from www.sun.com."
exit 1
fi
fi fi
if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then if test "$solarisrev" -ge 9 ; then
if test "$solarisrev" -le 9 ; then kqemu="yes"
if test -f /opt/SUNWspro/prod/lib/libsunmath.so.1; then
needs_libsunmath="yes"
else
echo "QEMU will not link correctly on Solaris 8/X86 or 9/x86 without"
echo "libsunmath from the Sun Studio compilers tools, due to a lack of"
echo "C99 math features in libm.so in Solaris 8/x86 and Solaris 9/x86"
echo "Studio 11 can be downloaded from www.sun.com."
exit 1
fi
fi
if test "$solarisrev" -ge 9 ; then
kqemu="yes"
fi
fi fi
if test -f /usr/include/sys/soundcard.h ; then fi
audio_drv_list="oss" if test -f /usr/include/sys/soundcard.h ; then
fi audio_drv_list="oss"
audio_possible_drivers="oss sdl" fi
CFLAGS="-std=gnu99 $CFLAGS" audio_possible_drivers="oss sdl"
CFLAGS="-std=gnu99 $CFLAGS"
;; ;;
AIX) AIX)
aix="yes" aix="yes"
make="gmake" make="gmake"
;; ;;
*) *)
audio_drv_list="oss" audio_drv_list="oss"
audio_possible_drivers="oss alsa sdl esd pa" audio_possible_drivers="oss alsa sdl esd pa"
linux="yes" linux="yes"
linux_user="yes" linux_user="yes"
usb="linux" usb="linux"
kvm="yes" kvm="yes"
if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then
kqemu="yes" kqemu="yes"
audio_possible_drivers="$audio_possible_drivers fmod" audio_possible_drivers="$audio_possible_drivers fmod"
fi fi
;; ;;
esac esac