ruby-lxc/ext/lxc/extconf.rb

15 lines
455 B
Ruby
Raw Normal View History

2013-12-06 17:43:19 +01:00
require 'mkmf'
abort 'missing liblxc' unless find_library('lxc', 'lxc_container_new')
abort 'missing lxc/lxccontainer.h' unless have_header('lxc/lxccontainer.h')
2014-03-26 04:45:18 +01:00
def add_define(name)
$defs.push("-D#{name}")
end
add_define "HAVE_RB_THREAD_CALL_WITHOUT_GVL" if have_func('rb_thread_call_without_gvl')
add_define "HAVE_RB_THREAD_BLOCKING_REGION" if have_func('rb_thread_blocking_region')
2013-12-06 17:43:19 +01:00
$CFLAGS += " -Wall #{ENV['CFLAGS']}"
2014-01-04 03:22:19 +01:00
create_makefile('lxc/lxc')