summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorJuan Quintela2009-07-16 18:34:09 +0200
committerAnthony Liguori2009-07-17 00:28:56 +0200
commite0da9dd3c56cc2e7532e8a189c58ad9f525480e5 (patch)
treee14d28829e054c73c17dd724d5d5fdadc49bada3 /configure
parentgenerate ARCH name instead of coding it (diff)
downloadqemu-e0da9dd3c56cc2e7532e8a189c58ad9f525480e5.tar.gz
qemu-e0da9dd3c56cc2e7532e8a189c58ad9f525480e5.tar.xz
qemu-e0da9dd3c56cc2e7532e8a189c58ad9f525480e5.zip
Refactor common code using a list
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure51
1 files changed, 3 insertions, 48 deletions
diff --git a/configure b/configure
index 3f2d7267a3..d7afad293e 100755
--- a/configure
+++ b/configure
@@ -1495,57 +1495,12 @@ echo "EXESUF=$EXESUF" >> $config_mak
echo "PTHREADLIBS=$PTHREADLIBS" >> $config_mak
echo "CLOCKLIBS=$CLOCKLIBS" >> $config_mak
case "$cpu" in
- i386)
- ARCH=i386
- ;;
- x86_64)
- ARCH=x86_64
- ;;
- alpha)
- ARCH=alpha
- ;;
- armv4b)
- ARCH=arm
+ i386|x86_64|alpha|cris|hppa|ia64|m68k|microbaze|mips|mips64|ppc|ppc64|s390|sparc|sparc64)
+ ARCH=$cpu
;;
- armv4l)
+ armv4b|arm4l)
ARCH=arm
;;
- cris)
- ARCH=cris
- ;;
- hppa)
- ARCH=hppa
- ;;
- ia64)
- ARCH=ia64
- ;;
- m68k)
- ARCH=m68k
- ;;
- microblaze)
- ARCH=microblaze
- ;;
- mips)
- ARCH=mips
- ;;
- mips64)
- ARCH=mips64
- ;;
- ppc)
- ARCH=ppc
- ;;
- ppc64)
- ARCH=ppc64
- ;;
- s390)
- ARCH=s390
- ;;
- sparc)
- ARCH=sparc
- ;;
- sparc64)
- ARCH=sparc64
- ;;
*)
echo "Unsupported CPU = $cpu"
exit 1