diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index f95ccfae6..81e9c355b 100644 --- a/configure.ac +++ b/configure.ac @@ -950,7 +950,13 @@ case "$host_or_hostalias" in cc_debug_cflags="-O $cpu_cflags -funroll-loops -funroll-all-loops -finline-functions" AC_DEFINE_UNQUOTED(FPM_SPARC,,[Define to select libmad fixed point arithmetic implementation]) dnl uses gnu c asm extensions else - cc_optimize_cflags="-O" + case `uname -m` in + sun4c) cpu_cflags="-xarch=v7 -xchip=ultra2" ;; + sun4m) cpu_cflags="-xarch=v8 -xchip=ultra2" ;; + sun4u) cpu_cflags="-xarch=v8plusa -xchip=ultra2" ;; + esac + + cc_optimize_cflags="-xO5 $cpu_cflags -xCC" cc_debug_cflags="-O" AC_DEFINE_UNQUOTED(FPM_64BIT,,[Define to select libmad fixed point arithmetic implementation]) dnl use portable version with non-gcc fi |