diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-29 23:57:43 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-29 23:57:43 +0000 |
commit | 9dd3af9ae7d59149adf0fc2679f04bed62d222e8 (patch) | |
tree | ddd57a92ba0485b04cff8025a837b50b8f464201 /ext | |
parent | 797f482fe89cf9af1467fc0e7f0707d8c5e4141f (diff) | |
download | ruby-9dd3af9ae7d59149adf0fc2679f04bed62d222e8.tar.gz |
* ext/psych/extconf.rb: Making library detection more agnostic.
[ruby-core:29118]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/psych/extconf.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/ext/psych/extconf.rb b/ext/psych/extconf.rb index 673b950a63..d789b35e5c 100644 --- a/ext/psych/extconf.rb +++ b/ext/psych/extconf.rb @@ -2,16 +2,10 @@ require 'mkmf' # :stopdoc: -RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC'] - -INCLUDEDIR = Config::CONFIG['includedir'] -LIBDIR = Config::CONFIG['libdir'] -LIB_DIRS = ['/opt/local/lib', '/usr/local/lib', LIBDIR, '/usr/lib'] -libyaml = dir_config 'libyaml', '/opt/local/include', '/opt/local/lib' +dir_config 'libyaml' def asplode missing - abort "#{missing} is missing. Try 'port install libyaml +universal' " + - "or 'yum install libyaml-devel'" + abort "#{missing} is missing. Please install libyaml." end asplode('yaml.h') unless find_header 'yaml.h' |