diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-03-15 05:01:17 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-03-15 05:01:17 +0000 |
commit | 0d3f4a92cf4b6558f19a39d416c08db5e0b64a5f (patch) | |
tree | f389d5adef64ead31fe63f41eb979ed5d37d9e78 /configure.in | |
parent | 31c55301e4c3c84803186d28d2764363b457532f (diff) |
2000-03-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/configure.in b/configure.in index c4efeef8b2..611a80f5bf 100644 --- a/configure.in +++ b/configure.in @@ -774,6 +774,25 @@ case "$target_os" in rhasody*) CFLAGS="$CFLAGS -pipe -no-precomp" ;; + osf*) + if [ $without_gcc = "yes" ]; then + CFLAGS="$CFLAGS -ansi" + else + # compile something small: taint.c is fine for this. + # the main point is the '-v' flag of 'cc'. + case "`cc -v -I. -c main.c -o /tmp/main.o 2>&1`" in + */gemc_cc*) # we have the new DEC GEM CC + CFLAGS="$CFLAGS -frpm d -ieee" + ;; + *) # we have the old MIPS CC + CFLAGS="$CFLAGS -oldc" + ;; + esac + # cleanup + rm -f /tmp/main.o + CFLAGS="$CFLAGS -std" + fi + ;; *) ;; esac |