diff options
-rw-r--r-- | configure.in | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/configure.in b/configure.in index b9d240891..6c1a6450d 100644 --- a/configure.in +++ b/configure.in @@ -80,6 +80,8 @@ dnl FIXME: Rename to `check_64bit_compiler'! dnl cclist List of compilers, best first. dnl gmp_cflags_{cc} Flags for compiler named {cc}. dnl gmp_cflags64_{cc} Flags for compiler named {cc} for 64-bit code. +dnl gmp_optcflags_{cc} Optional compiler flags. +dnl gmp_xoptcflags_{cc} Exclusive optional compiler flags. dnl os_64bit="no" cclist="gcc cc" # FIXME: Prefer c89 to cc. @@ -96,13 +98,23 @@ case "$target" in cclist=cc gmp_cflags_cc="$gmp_cflags_cc -O" ;; - alpha*-*-*) + alpha*-*-osf*) flavour=`echo $target_cpu | sed 's/^alpha//g'` if test -n "$flavour"; then gmp_optcflags_gcc="-mcpu=$flavour" + # FIXME: We shouldn't fail fatally if none of these work, but that's + # how xoptcflags work and we don't have any other mechanism right now. + gmp_xoptcflags_gcc="-Wa,-arch,${flavour} -Wa,-m${flavour}" gmp_cflags_cc="$gmp_cflags_cc -arch $flavour -tune $flavour" fi ;; + alpha*-*-*) + cclist="gcc" + flavour=`echo $target_cpu | sed 's/^alpha//g'` + if test -n "$flavour"; then + gmp_optcflags_gcc="-mcpu=$flavour" + fi + ;; # x86 [*-*-freebsd[34]*]) # hides generic *bsd* alternative @@ -509,7 +521,7 @@ case ${target} in m88k*-*-* | m88k*-*-*) path="m88k";; m88110*-*-*) path="m88k/mc88110 m88k";; - ns32k*-*-*) path="n32k";; + ns32k*-*-*) path="ns32k";; pyramid-*-*) path="pyr";; |