Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (15 sloc) 0.605 kb
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'
# :startdoc:
Jump to Line
Something went wrong with that request. Please try again.