mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
b9b923ca94
* test/psych/*: ditto * lib/psych/*: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
22 lines
611 B
Ruby
22 lines
611 B
Ruby
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'
|
|
|
|
def asplode missing
|
|
abort "#{missing} is missing. Try 'port install libyaml +universal' " +
|
|
"or 'yum install libyaml-devel'"
|
|
end
|
|
|
|
asplode('yaml.h') unless find_header 'yaml.h'
|
|
asplode('libyaml') unless find_library 'yaml', 'yaml_get_version'
|
|
|
|
create_makefile 'psych/psych'
|
|
|
|
# :startdoc:
|