Sha256: d17ad9667089c3152c9a9eb1935a75afd7098c892ad351ca6b09be20984d3bae
Contents?: true
Size: 755 Bytes
Versions: 5
Compression:
Stored size: 755 Bytes
Contents
require 'mkmf' require 'numo/narray' $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 unless have_header('linear.h') puts 'linear.h not found.' exit(1) end unless have_library('linear') puts 'liblinear not found.' exit(1) end create_makefile('numo/liblinear/liblinearext')
Version data entries
5 entries across 5 versions & 1 rubygems