summaryrefslogtreecommitdiff
path: root/ext/psych/extconf.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-11-16 15:20:08 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-11-16 15:20:08 -0800
commitde14843a5c769805f7434ef5fdc4ca92a288b45d (patch)
tree6f79b8a60c4c3269fe94442a6649c599ac7c060f /ext/psych/extconf.rb
parent920cb81f6c6d9ce57c51a6df8fdc99b0d00f4c3a (diff)
downloadpsych-de14843a5c769805f7434ef5fdc4ca92a288b45d.tar.gz
embedding libyaml
Diffstat (limited to 'ext/psych/extconf.rb')
-rw-r--r--ext/psych/extconf.rb25
1 files changed, 11 insertions, 14 deletions
diff --git a/ext/psych/extconf.rb b/ext/psych/extconf.rb
index 0edf73c..f16a13f 100644
--- a/ext/psych/extconf.rb
+++ b/ext/psych/extconf.rb
@@ -2,20 +2,17 @@ require 'mkmf'
# :stopdoc:
-RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC']
-
-INCLUDEDIR = RbConfig::CONFIG['includedir']
-LIBDIR = RbConfig::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'
+have_header 'dlfcn.h'
+have_header 'inttypes.h'
+have_header 'memory.h'
+have_header 'stdint.h'
+have_header 'stdlib.h'
+have_header 'strings.h'
+have_header 'string.h'
+have_header 'sys/stat.h'
+have_header 'sys/types.h'
+have_header 'unistd.h'
+have_header 'config.h'
create_makefile 'psych'