diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-25 12:41:26 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-25 12:41:26 +0000 |
commit | d736170ea61c18d16154404606307c76ccef5132 (patch) | |
tree | 5ce96339cb22dd176b4fe39d07ac4a45c419472a | |
parent | 449e5c6a5ee0b0759d4a9c3479f3b52a06fb6897 (diff) |
* configure.in: Always add -mieee for Renesas SH4.
Thanks, Nobuhiro Iwamatsu. [Feature #3874] [ruby-core:32548]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@29342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | configure.in | 13 |
2 files changed, 12 insertions, 6 deletions
@@ -1,3 +1,8 @@ +Sat Sep 25 21:56:25 2010 KOSAKI Motohiro <[email protected]> + + * configure.in: Always add -mieee for Renesas SH4. + Thanks, Nobuhiro Iwamatsu. [Feature #3874] [ruby-core:32548] + Sat Sep 25 01:17:39 2010 Nobuyoshi Nakada <[email protected]> * ext/stringio/stringio.c (Init_stringio): added readpartial, diff --git a/configure.in b/configure.in index 56807251d9..4ff0cda630 100644 --- a/configure.in +++ b/configure.in @@ -586,12 +586,13 @@ AC_CHECK_LIB(dl, dlopen) # Dynamic linking for SunOS/Solaris and SYSV AC_CHECK_LIB(dld, shl_load) # Dynamic linking for HP-UX AC_CHECK_LIB(rt, clock_gettime) # GNU/Linux -case "$target_cpu" in -alpha*) case "$target_os"::"$GCC" in - *::yes) CFLAGS="-mieee $CFLAGS" ;; # gcc - osf*) CFLAGS="-ieee $CFLAGS" ;; # ccc - esac ;; -esac +AS_CASE(["$target_cpu"], +[alpha*|sh4|sh4el|sh4eb], [AS_CASE(["$target_os"::"$GCC"], + [*::yes], # gcc + [CFLAGS="-mieee $CFLAGS"], + [osf*], # ccc + [CFLAGS="-ieee $CFLAGS"], + )]) dnl Checks for header files. AC_HEADER_DIRENT |