From 57d21884c5d8bf693963972a0efba37f4c6fb124 Mon Sep 17 00:00:00 2001 From: Robin KAY Date: Sun, 22 Dec 2002 00:41:05 +0000 Subject: Make xine-lib compile with the SunPro compiler CVS patchset: 3624 CVS date: 2002/12/22 00:41:05 --- AUTHORS | 2 +- configure.ac | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/AUTHORS b/AUTHORS index 2cb327951..61cebe6e6 100644 --- a/AUTHORS +++ b/AUTHORS @@ -48,7 +48,7 @@ Mike Melanson Robin KAY pgx64[fb] video output plugin, WVE demuxer, MNG demuxer, EA ADPCM - decoder, various bugfixes + decoder, SunPro compiler fixes, various bugfixes Stephen Torri Automake, autoconf, libtool development, and build fixes, 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 -- cgit v1.2.3