about summary refs log tree commit homepage
path: root/ext/mwrap/extconf.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2018-07-02 02:33:57 +0000
committerEric Wong <e@80x24.org>2018-07-02 06:08:07 +0000
commit50c83d99b7875c45fa72967eaf636f74db931665 (patch)
treef938e645e7e6058eca4e5bf7d6122d70520e76a6 /ext/mwrap/extconf.rb
parentc0a29c0f7c829737782c18a0349b8655b3c0388d (diff)
downloadmwrap-50c83d99b7875c45fa72967eaf636f74db931665.tar.gz
Diffstat (limited to 'ext/mwrap/extconf.rb')
-rw-r--r--ext/mwrap/extconf.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/mwrap/extconf.rb b/ext/mwrap/extconf.rb
index dbffd99..4ac8881 100644
--- a/ext/mwrap/extconf.rb
+++ b/ext/mwrap/extconf.rb
@@ -4,10 +4,10 @@
 require 'mkmf'
 
 have_func 'mempcpy'
-if RUBY_PLATFORM =~ /linux/ # should detect glibc
-  if File.read("/proc/#$$/maps") =~ /\blibjemalloc\./
-    $defs << '-DRUBY_USES_JEMALLOC'
-  end
-end
+have_library 'urcu-cds' or abort 'userspace RCU not installed'
+have_header 'urcu/rculfhash.h' or abort 'rculfhash.h not found'
+have_library 'urcu-bp' or abort 'liburcu-bp not found'
 have_library 'dl'
+have_library 'c'
+have_library 'execinfo' # FreeBSD
 create_makefile 'mwrap'