class Object
Public Instance Methods
gsl_config_arg(arg) { |arg_config("--with-gsl-| ... }
click to toggle source
# File ../ext/gsl/extconf.rb, line 3 def gsl_config_arg(arg) yield arg_config("--with-gsl-#{arg}") { sh = 'sh ' if RUBY_PLATFORM =~ /mingw/ IO.popen("#{sh}gsl-config --#{arg}") { |f| f.gets.chomp } }, lambda { |val| puts "checking gsl #{arg}... #{val}"; val } rescue => err abort "*** ERROR: missing required library to compile this module: #{err}" end
gsl_def(const, value = nil)
click to toggle source
# File ../ext/gsl/extconf.rb, line 12 def gsl_def(const, value = nil) $defs << "-D#{const}#{"=#{value}" if value}" end
gsl_dir_config(target, idir = nil, ldir = idir)
click to toggle source
# File ../ext/gsl/extconf.rb, line 24 def gsl_dir_config(target, idir = nil, ldir = idir) dir_config(target, idir || $sitearchdir, ldir || $sitearchdir) end
gsl_gem_config(target, dir = 'ext')
click to toggle source
# File ../ext/gsl/extconf.rb, line 28 def gsl_gem_config(target, dir = 'ext') path = begin require 'rubygems' spec = Gem::Specification.find_by_path("#{target}.h") File.join(spec.full_gem_path, dir) if spec rescue LoadError end gsl_dir_config(target, path) $LOCAL_LIBS += " -l:#{target}.so" if arg_config("--force-link-#{target}") || $CFLAGS.include?('-Wl,--no-undefined') || $LDFLAGS.include?('-Wl,--no-undefined') end
gsl_have_header(library, header)
click to toggle source
# File ../ext/gsl/extconf.rb, line 16 def gsl_have_header(library, header) have_library(library) if have_header(header) end
gsl_have_library(func)
click to toggle source
# File ../ext/gsl/extconf.rb, line 20 def gsl_have_library(func) have_func(func) if have_library('gsl', func) end