diff options
author | Robin KAY <komadori@users.sourceforge.net> | 2002-11-02 22:30:20 +0000 |
---|---|---|
committer | Robin KAY <komadori@users.sourceforge.net> | 2002-11-02 22:30:20 +0000 |
commit | 15eb7ae2aa0fdd218038ec51d65e258d697c7b2e (patch) | |
tree | 1a8a1d699c05107dcf63ab6cb606fb18a749e3b3 /configure.ac | |
parent | 6489129c06b3865b626483371140a86fc7a9cc02 (diff) | |
download | xine-lib-15eb7ae2aa0fdd218038ec51d65e258d697c7b2e.tar.gz xine-lib-15eb7ae2aa0fdd218038ec51d65e258d697c7b2e.tar.bz2 |
Reinsert ifdefs around SPARC assembler code in pgx64. Enable building pgx64 on Solaris/IA32 again. Change xine to use -mcpu=ultrasparc on sun4u platform.
CVS patchset: 3158
CVS date: 2002/11/02 22:30:20
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 36 |
1 files changed, 16 insertions, 20 deletions
diff --git a/configure.ac b/configure.ac index d80bd1b9a..c3852b2be 100644 --- a/configure.ac +++ b/configure.ac @@ -209,9 +209,9 @@ AC_ARG_ENABLE(altivec, enable_altivec=yes) AC_ARG_ENABLE(vis, - [ --enable-vis use assembly codes for Sun UltraSPARC cpus], - enable_vis=yes, - enable_vis=no) + [ --disable-vis use assembly codes for Sun UltraSPARC cpus], + enable_vis=no, + enable_vis=yes) if test x$enable_mlib = x; then AC_ARG_ENABLE(mlib, @@ -399,13 +399,9 @@ AM_PATH_AALIB(1.4,, AC_MSG_RESULT([*** All of AALIB dependent parts will be disa AM_CONDITIONAL(HAVE_AA, test x$no_aalib != "xyes") dnl --------------------------------------------- -dnl Check solaris framebuffer device support (only on Solaris SPARC) +dnl Check solaris framebuffer device support dnl --------------------------------------------- AC_CHECK_HEADER(sys/fbio.h, ac_have_sunfb=yes,) -case $host in -sparc*) ;; -*) ac_have_sunfb=no ;; -esac AM_CONDITIONAL(HAVE_SUNFB, [test x"$ac_have_sunfb" = "xyes"]) dnl --------------------------------------------- @@ -852,13 +848,13 @@ case "$host_or_hostalias" in sparc*-*-linux*) case $host_alias in sparc-*) cpu_cflags="-mcpu=supersparc -mtune=supersparc" ;; - sparc64-*) cpu_cflags="-mcpu=supersparc -mtune=ultrasparc" ;; - esac - - if test x$enable_vis = xyes; then + sparc64-*) + cpu_cflags="-mcpu=ultrasparc -mtune=ultrasparc" + if test x$enable_vis = xyes; then AC_DEFINE_UNQUOTED(ENABLE_VIS,,[Define this if you have Sun UltraSPARC CPU]) - cpu_cflags="-mcpu=ultrasparc" - fi + fi + ;; + esac CFLAGS="$CFLAGS -O3 $cpu_cflags -funroll-loops -funroll-all-loops -finline-functions" DEBUG_CFLAGS="$DEBUG_CFLAGS -O $cpu_cflags -funroll-loops -funroll-all-loops -finline-functions" @@ -871,15 +867,15 @@ case "$host_or_hostalias" in case `uname -m` in sun4c) cpu_cflags="-mcpu=v7 -mtune=supersparc" ;; sun4m) cpu_cflags="-mcpu=v8 -mtune=supersparc" ;; - sun4u) cpu_cflags="-mcpu=supersparc -mtune=ultrasparc" ;; + sun4u) + cpu_cflags="-mcpu=ultrasparc -mtune=ultrasparc" + if test x$enable_vis = xyes; then + AC_DEFINE_UNQUOTED(ENABLE_VIS,,[Define this if you have Sun UltraSPARC CPU]) + fi + ;; *) cpu_cflags= ;; esac - if test x$enable_vis = xyes; then - AC_DEFINE_UNQUOTED(ENABLE_VIS,,[Define this if you have Sun UltraSPARC CPU]) - cpu_cflags="-mcpu=ultrasparc" - fi - cc_optimize_cflags="-O3 $cpu_cflags -funroll-loops -funroll-all-loops -finline-functions" 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 |