summaryrefslogtreecommitdiffstats
path: root/config.sub
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-10 08:37:12 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-10 08:37:12 +0000
commitcc3ede1ba8b59115e1a5abf02873e92e9841a00b (patch)
tree2c2f889b16d8583f32bddc6311e596b369fa3346 /config.sub
parent6c96aef2df77517199e1b6f54190247fd869230c (diff)
downloadruby-cc3ede1ba8b59115e1a5abf02873e92e9841a00b.tar.gz
ruby-cc3ede1ba8b59115e1a5abf02873e92e9841a00b.tar.xz
ruby-cc3ede1ba8b59115e1a5abf02873e92e9841a00b.zip
* variable.c (rb_mod_name): always return empty string for
anonymous class/module. (ruby-bugs-ja PR#424) * config.sub: stop forcing addition of -gnu to -linux. * variable.c (classname): refactoring. * variable.c (rb_class_path): __tmp__classpath__ handling moved from classname(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'config.sub')
-rw-r--r--config.sub4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.sub b/config.sub
index 04baf3d80..d2c7af03c 100644
--- a/config.sub
+++ b/config.sub
@@ -1093,7 +1093,7 @@ case $os in
os=-sysv4.2uw
;;
-gnu/linux*)
- os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
+ os=`echo $os | sed -e 's|gnu/linux|linux|'`
;;
# First accept the basic system types.
# The portable systems comes first.
@@ -1143,7 +1143,7 @@ case $os in
os=`echo $os | sed -e 's|mac|macos|'`
;;
-linux*)
- os=`echo $os | sed -e 's|linux|linux-gnu|'`
+ os=-linux
;;
-sunos5*)
os=`echo $os | sed -e 's|sunos5|solaris2|'`