about summary refs log tree commit homepage
path: root/ext/raindrops/extconf.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-04-07 17:07:42 -0700
committerEric Wong <normalperson@yhbt.net>2010-04-07 17:36:31 -0700
commitc3e9f5ba6fc10397f55941f36da29808a105d248 (patch)
tree705970f479064931ae07cfca0cd44013c113cb8d /ext/raindrops/extconf.rb
downloadraindrops-c3e9f5ba6fc10397f55941f36da29808a105d248.tar.gz
Diffstat (limited to 'ext/raindrops/extconf.rb')
-rw-r--r--ext/raindrops/extconf.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/raindrops/extconf.rb b/ext/raindrops/extconf.rb
new file mode 100644
index 0000000..d637287
--- /dev/null
+++ b/ext/raindrops/extconf.rb
@@ -0,0 +1,11 @@
+require 'mkmf'
+
+# FIXME: test for GCC __sync_XXX builtins here, somehow...
+have_func('mmap', 'sys/mman.h') or abort 'mmap() not found'
+have_func('munmap', 'sys/mman.h') or abort 'munmap() not found'
+
+have_func("rb_struct_alloc_noinit")
+have_func('rb_thread_blocking_region')
+
+dir_config('raindrops')
+create_makefile('raindrops_ext')