summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-04-27 05:12:32 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-04-27 05:12:32 +0000
commit5a93d7ca2925e399573db152d27309199eb54799 (patch)
treeddc208e1163015e22085dc8da38dde251c610eed
parent6c840ba8f466d3050bfb4bfcc092c9459481fdb1 (diff)
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/extmk.rb.in3
-rw-r--r--lib/mkmf.rb8
2 files changed, 1 insertions, 10 deletions
diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in
index 743ec16..39fd657 100644
--- a/ext/extmk.rb.in
+++ b/ext/extmk.rb.in
@@ -245,7 +245,7 @@ end
def arg_config(config, default=nil)
unless defined? $configure_args
$configure_args = {}
- for arg in CONFIG["configure_args"].split
+ for arg in "@configure_args@".split
next unless /^--/ =~ arg
if /=/ =~ arg
$configure_args[$`] = $'
@@ -254,7 +254,6 @@ def arg_config(config, default=nil)
end
end
end
- p [$configure_args, config]
$configure_args.fetch(config, default)
end
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index d4d24e1..2c6cdc1 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -254,7 +254,6 @@ def arg_config(config, default="yes")
end
end
end
- p [$configure_args, config]
$configure_args.fetch(config, default)
end
@@ -265,13 +264,6 @@ def with_config(config, default="yes")
arg_config(config, default)
end
-def with_config(config, value="yes")
- unless /^-with-/ =~ config
- config = '-with-' + config
- end
- arg_config(config, value)
-end
-
def create_header()
print "creating extconf.h\n"
STDOUT.flush