summaryrefslogtreecommitdiff
path: root/lib/mkmf.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-02 21:17:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-02 21:17:37 +0000
commite1fac13c2b5cecf83ca456366f09c3edc1d9cb47 (patch)
tree0331876970706fab20182c13366bc8e94dbc74c3 /lib/mkmf.rb
parent1a606a89a7a7c9c03af6dd7980168180df608aac (diff)
* lib/mkmf.rb: more verbose message. [ruby-Bugs-12766]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r--lib/mkmf.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index ac13c9f94e..9c6f1c66f2 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -114,13 +114,12 @@ end
topdir = File.dirname(libdir = File.dirname(__FILE__))
extdir = File.expand_path("ext", topdir)
$extmk = File.expand_path($0)[0, extdir.size+1] == extdir+"/"
-if not $extmk and File.exist?(Config::CONFIG["archdir"] + "/ruby.h")
- $hdrdir = $topdir = Config::CONFIG["archdir"]
-elsif File.exist?(($top_srcdir ||= topdir) + "/ruby.h") and
+if not $extmk and File.exist?(($hdrdir = Config::CONFIG["archdir"]) + "/ruby.h")
+ $topdir = $hdrdir
+elsif File.exist?(($hdrdir = ($top_srcdir ||= topdir)) + "/ruby.h") and
File.exist?(($topdir ||= Config::CONFIG["topdir"]) + "/config.h")
- $hdrdir = $top_srcdir
else
- abort "can't find header files for ruby."
+ abort "mkmf.rb can't find header files for ruby at #{$hdrdir}/ruby.h"
end
OUTFLAG = CONFIG['OUTFLAG']