Sha256: 33d7c6203d00a6d3e1428755d72752e4aae1bea37d22db5218b3f5cd215cf3b0
Contents?: true
Size: 684 Bytes
Versions: 7
Compression:
Stored size: 684 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 # $CFLAGS += ' -DMPFR' create_makefile("mpfr/mpfr_gmp") end end
Version data entries
7 entries across 7 versions & 1 rubygems