mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
797f482fe8
commit
9dd3af9ae7
2 changed files with 6 additions and 8 deletions
|
@ -1,3 +1,7 @@
|
|||
Tue Mar 30 08:55:50 2010 Aaron Patterson <aaron@tenderlovemaking.com>
|
||||
|
||||
* ext/psych/extconf.rb: Making library detection more agnostic.
|
||||
|
||||
Tue Mar 30 08:10:59 2010 Aaron Patterson <aaron@tenderlovemaking.com>
|
||||
|
||||
* lib/psych.rb: Fix problem with empty and white-space only strings.
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue