Sha256: c654a94899a28f8e45de0983f2251f853b1d665ac0175f424cd1c9110d4eb02b
Contents?: true
Size: 736 Bytes
Versions: 4
Compression:
Stored size: 736 Bytes
Contents
require 'mkmf' i = 0 while i < ARGV.size case ARGV[i] when '--ldflags' if args = ARGV[i+1] i += 1 $LDFLAGS += " #{args}" end else raise "Invalid option: #{ARGV[i]}" end i += 1 end $CFLAGS += " -Wall" REQUIRE_VERSION = 3 dir_config("mpfr") dir_config("gmp") if have_header('mpfr.h') && have_library('mpfr') && have_header('gmp.h') && have_library('gmp') if have_macro('MPFR_VERSION_MAJOR', 'mpfr.h') do |src| src + <<SRC #if MPFR_VERSION_MAJOR < #{REQUIRE_VERSION} # error >>>>>> MPFR_VERSION_MAJOR requires larger than #{REQUIRE_VERSION} <<<<<< #endif SRC end find_header("ruby_mpfr.h", File.join(File.dirname(__FILE__), "../../mpfr")) create_makefile("mpfr/matrix") end end
Version data entries
4 entries across 4 versions & 1 rubygems