projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
localename: Improvements for MacOS X and Cygwin.
[gnulib.git]
/
m4
/
fpieee.m4
diff --git
a/m4/fpieee.m4
b/m4/fpieee.m4
index
fd897b0
..
9f4a92c
100644
(file)
--- a/
m4/fpieee.m4
+++ b/
m4/fpieee.m4
@@
-26,8
+26,9
@@
AC_DEFUN([gl_FP_IEEE],
[
AC_REQUIRE([AC_PROG_CC])
AC_REQUIRE([AC_CANONICAL_HOST])
[
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.
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
# 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
;;
CPPFLAGS="$CPPFLAGS -mieee"
fi
;;