2010-05-06 10:59:24 +04:00
|
|
|
require 'mkmf'
|
|
|
|
|
|
|
|
# :stopdoc:
|
|
|
|
|
|
|
|
dir_config 'libffi'
|
|
|
|
|
2010-06-15 20:43:46 +04:00
|
|
|
pkg_config("libffi")
|
|
|
|
unless have_header('ffi.h')
|
2010-05-06 10:59:24 +04:00
|
|
|
if have_header('ffi/ffi.h')
|
|
|
|
$defs.push(format('-DUSE_HEADER_HACKS'))
|
|
|
|
else
|
|
|
|
abort "ffi.h is missing. Please install libffi."
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2010-11-04 18:15:39 +03:00
|
|
|
unless have_library('ffi') || have_library('libffi')
|
2010-05-06 10:59:24 +04:00
|
|
|
abort "libffi is missing. Please install libffi."
|
|
|
|
end
|
|
|
|
|
|
|
|
have_header 'sys/mman.h'
|
|
|
|
|
|
|
|
create_makefile 'fiddle'
|
|
|
|
|
|
|
|
# :startdoc:
|