Sha256: bb94274715d445a6d06c6fa7074996be9ea3d6512386ff5f5b389a14355a0744
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 KB
Contents
require "mkmf" $extout_prefix = '/numru' alias __install_dirs install_dirs def install_dirs dirs = __install_dirs dirs.assoc("RUBYARCHDIR")[1].sub!(/target_prefix/,'extout_prefix') dirs end #dir_config('narray',$sitearchdir,$sitearchdir) hoge = Gem::GemPathSearcher.new.find("narray") narray_fullname = hoge.full_name narray_installpath = hoge.installation_path narray_include = "#{narray_installpath}/gems/#{narray_fullname}/" narray_lib = "#{narray_installpath}/gems/#{narray_fullname}/" dir_config('narray',narray_include,narray_lib) if ( ! ( have_header("narray.h") && have_header("narray_config.h") ) ) then print <<EOS ** configure error ** Header narray.h or narray_config.h is not found. If you have these files in /narraydir/include, try the following: % ruby extconf.rb --with-narray-include=/narraydir/include EOS exit(-1) end if /cygwin|mingw/ =~ RUBY_PLATFORM unless have_library("narray") print <<-EOS ** configure error ** libnarray.a is not found. % ruby extconf.rb --with-narray-lib=/narraydir/lib EOS exit(-1) end end create_makefile("numru/gphys_ext")
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gphys-1.1.1a | extconf.rb |
gphys-1.1.1 | extconf.rb |