Mercurial > hg > octave-lyh > gnulib-hg
changeset 8553:3f0f39084236
Add support for the SH CPU. Reported by Ben Pfaff.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 26 Mar 2007 00:28:46 +0000 |
parents | d527c6045eaf |
children | 35eb5062216c |
files | m4/fpieee.m4 |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/m4/fpieee.m4 +++ b/m4/fpieee.m4 @@ -26,8 +26,9 @@ [ AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) - # IEEE behaviour is the default on all CPUs except Alpha - # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4). + # IEEE behaviour is the default on all CPUs except Alpha and SH + # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4 + # and the GCC 4.1.2 manual). case "$host_cpu" in alpha*) # On Alpha systems, a compiler option provides the behaviour. @@ -41,5 +42,11 @@ CPPFLAGS="$CPPFLAGS -ieee" fi ;; + sh*) + if test -n "$GCC"; then + # GCC has the option -mieee. + CPPFLAGS="$CPPFLAGS -mieee" + fi + ;; esac ])