aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-08-03 14:46:10 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-10 13:05:37 -0500
commit50e7b1a02fb535dd10405c10ca3abe088917d71d (patch)
treec63133759a4f693defdb362c0d99ea906d23e224 /configure
parentfecde40a906a03221ad28fe17d8af1ace64c04d1 (diff)
move sparc_cpu arg parsing to the begining
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure46
1 files changed, 24 insertions, 22 deletions
diff --git a/configure b/configure
index 0f090b1c89..bcf9297d29 100755
--- a/configure
+++ b/configure
@@ -58,6 +58,30 @@ for opt do
;;
--extra-ldflags=*) LDFLAGS="$optarg $LDFLAGS"
;;
+ --sparc_cpu=*)
+ sparc_cpu="$optarg"
+ case $sparc_cpu in
+ v7|v8)
+ CFLAGS="-m32 -mcpu=${sparc_cpu} -D__sparc_${sparc_cpu}__ $CFLAGS"
+ LDFLAGS="-m32 $LDFLAGS"
+ cpu="sparc"
+ ;;
+ v8plus|v8plusa)
+ CFLAGS="-m32 -mcpu=ultrasparc -D__sparc_${sparc_cpu}__ $CFLAGS"
+ LDFLAGS="-m32 $LDFLAGS"
+ cpu="sparc"
+ ;;
+ v9)
+ CFLAGS="-m64 -mcpu=ultrasparc -D__sparc_${sparc_cpu}__ $CFLAGS"
+ LDFLAGS="-m64 $LDFLAGS"
+ cpu="sparc64"
+ ;;
+ *)
+ echo "undefined SPARC architecture. Exiting";
+ exit 1
+ ;;
+ esac
+ ;;
esac
done
@@ -489,28 +513,6 @@ for opt do
--enable-uname-release=*) uname_release="$optarg"
;;
--sparc_cpu=*)
- sparc_cpu="$optarg"
- case $sparc_cpu in
- v7|v8)
- CFLAGS="-m32 -mcpu=${sparc_cpu} -D__sparc_${sparc_cpu}__ $CFLAGS"
- LDFLAGS="-m32 $LDFLAGS"
- cpu="sparc"
- ;;
- v8plus|v8plusa)
- CFLAGS="-m32 -mcpu=ultrasparc -D__sparc_${sparc_cpu}__ $CFLAGS"
- LDFLAGS="-m32 $LDFLAGS"
- cpu="sparc"
- ;;
- v9)
- CFLAGS="-m64 -mcpu=ultrasparc -D__sparc_${sparc_cpu}__ $CFLAGS"
- LDFLAGS="-m64 $LDFLAGS"
- cpu="sparc64"
- ;;
- *)
- echo "undefined SPARC architecture. Exiting";
- exit 1
- ;;
- esac
;;
--enable-werror) werror="yes"
;;