X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Ffpieee.m4;h=78728762dec8e479339fdc666d9b0e268691845a;hb=b52a6c6545059980b572decf8ebd7b71f0738cef;hp=fd897b0e8b596f0ff113fec9376d579f4a50cf5a;hpb=cbda7205fd670a9d63b8fbfd02f6fff81c142fd4;p=gnulib.git diff --git a/m4/fpieee.m4 b/m4/fpieee.m4 index fd897b0e8..78728762d 100644 --- a/m4/fpieee.m4 +++ b/m4/fpieee.m4 @@ -1,5 +1,5 @@ # fpieee.m4 serial 1 -dnl Copyright (C) 2007 Free Software Foundation, Inc. +dnl Copyright (C) 2007, 2009-2011 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -26,8 +26,9 @@ AC_DEFUN([gl_FP_IEEE], [ 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. @@ -37,7 +38,13 @@ AC_DEFUN([gl_FP_IEEE], # GCC has the option -mieee. CPPFLAGS="$CPPFLAGS -mieee" else - # Compaq (ex-DEC) C has the option -ieee. + # Compaq (ex-DEC) C has the option -ieee. + CPPFLAGS="$CPPFLAGS -ieee" + fi + ;; + sh*) + if test -n "$GCC"; then + # GCC has the option -mieee. CPPFLAGS="$CPPFLAGS -mieee" fi ;;