Sha256: 805a014e68c4872367326ebdc1cd764ef59e0d65d1077a60038d01aa98a9448e
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 KB
Contents
require 'rbconfig.rb' require 'numo/narray' require 'mkmf' require_relative './mkmf_gsl' # configure options: --with-gsl-lib=path #dir_config("gsl") # check gsl-config command print "checking for gsl-config... " begin # MinGW fails to invoke shell script command (gsl-config) gsl_libs = `sh -c '\`which gsl-config\` --libs'`.chomp rescue puts "no" exit 1 end puts "yes" # parse GSL libs libs = [] gsl_libs.split(/\s+/).each do |x| case x when /^-L(.+)/ $LIBPATH.push($1) when /^-l(.+)/ libs.unshift($1) end end # check library libs.each do |x| exit 1 unless have_library(x) end # GSL include files gsl_cflags = `sh -c '\`which gsl-config\` --cflags'`.chomp $INCFLAGS = [gsl_cflags,$INCFLAGS].join(" ") # check narray.h find_narray_h if !have_header("numo/narray.h") puts "Header numo/narray.h was not found. Give pathname as follows: % ruby extconf.rb --with-narray-include=narray_h_dir" exit(1) end # check libnarray.a if RUBY_PLATFORM =~ /mswin|cygwin|mingw/ find_libnarray_a unless have_library("narray","nary_new") puts "libnarray.a not found" exit(1) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
numo-gsl-0.1.2 | ext/numo/gsl/extconf_gsl.rb |