summaryrefslogtreecommitdiff
path: root/ext/psych/extconf.rb
blob: ccc8c9c3046c2455235d7ba475cb50008c1545ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'mkmf'

# :stopdoc:

dir_config 'libyaml'

def asplode missing
  raise "#{missing} is missing. Please install libyaml."
end

asplode('yaml.h')  unless find_header  'yaml.h'
asplode('libyaml') unless find_library 'yaml', 'yaml_get_version'

create_makefile 'psych'

# :startdoc: