P
Patrick Gundlach
Hi,
I have a simple library, one in a pure ruby version and one in a
ruby/c version (which is quicker). I would like to distribute both and
let the user decide (by checking whether a c library is available)
which version to install. What would a clever way to accomplish that?
Should I make the decision when running extconf.rb? Any hints?
Patrick
(the directory structure so far)
rb/mylib.rb
c/mylib.rb
/mylib_base.c
/extconf.rb
both should be used by require 'mylib' or alike.
I have a simple library, one in a pure ruby version and one in a
ruby/c version (which is quicker). I would like to distribute both and
let the user decide (by checking whether a c library is available)
which version to install. What would a clever way to accomplish that?
Should I make the decision when running extconf.rb? Any hints?
Patrick
(the directory structure so far)
rb/mylib.rb
c/mylib.rb
/mylib_base.c
/extconf.rb
both should be used by require 'mylib' or alike.