Sha256: a2d7c8a74a16cade4e9f57c0413e3fc180a4c421569c625dd9a6a31799a9add5
Contents?: true
Size: 777 Bytes
Versions: 2
Compression:
Stored size: 777 Bytes
Contents
require 'rbconfig.rb' require 'numo/narray' require 'mkmf' # configure options: --with-gsl-lib=path #dir_config("gsl") # check gsl-config command print "checking for gsl-config... " begin gsl_libs = `gsl-config --libs` 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 $INCFLAGS = [`gsl-config --cflags`.chomp,$INCFLAGS].join(" ") # check narray.h $LOAD_PATH.each do |x| if File.exist? File.join(x,'numo','numo/narray.h') $INCFLAGS = "-I#{x}/numo " + $INCFLAGS break end end exit 1 unless have_header('numo/narray.h')
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
numo-gsl-0.1.1 | ext/numo/gsl/extconf_gsl.rb |
numo-gsl-0.1.0 | ext/numo/gsl/extconf_gsl.rb |