Sha256: 18f2742e7e033c1c660640e3e16b25af40204a35cd4d52ce52735f22bf753730
Contents?: true
Size: 999 Bytes
Versions: 2
Compression:
Stored size: 999 Bytes
Contents
require 'mkmf' require 'numo/narray' $defs << '-DUSE_INT64' if with_config('use-int64', false) $LOAD_PATH.each do |lp| if File.exist?(File.join(lp, 'numo/numo/narray.h')) $INCFLAGS = "-I#{lp}/numo #{$INCFLAGS}" break end end unless have_header('numo/narray.h') puts 'numo/narray.h not found.' exit(1) end if RUBY_PLATFORM =~ /mswin|cygwin|mingw/ $LOAD_PATH.each do |lp| if File.exist?(File.join(lp, 'numo/libnarray.a')) $LDFLAGS = "-L#{lp}/numo #{$LDFLAGS}" break end end unless have_library('narray', 'nary_new') puts 'libnarray.a not found.' exit(1) end end $srcs = Dir.glob("#{$srcdir}/**/*.c").map { |path| File.basename(path) } blas_dir = with_config('blas-dir') $LDFLAGS = "-L#{blas_dir} #{$LDFLAGS}" unless blas_dir.nil? blas_lib = with_config('blas-lib') unless blas_lib.nil? abort "#{blas_lib} not found." unless have_library(blas_lib) $srcs.delete('blas.c') end $VPATH << "$(srcdir)/src" create_makefile('lbfgsb/lbfgsbext')
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lbfgsb-0.5.1 | ext/lbfgsb/extconf.rb |
lbfgsb-0.5.0 | ext/lbfgsb/extconf.rb |