Sha256: 0de859682d5e27c28a7e0efe1881743bafaf1218e2bfd5b46dedba38124ffd67
Contents?: true
Size: 774 Bytes
Versions: 1
Compression:
Stored size: 774 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" dir_config("mpfr") dir_config("mpc") dir_config("gmp") if have_header('mpfr.h') && have_library('mpfr') && have_header('mpc.h') && have_library('mpc') && have_header('gmp.h') && have_library('gmp') ruby_mpfr_header_dir = nil begin require "rubygems" spec = Gem::Specification.find_by_name("ruby-mpfr") ruby_mpfr_header_dir = File.join(spec.full_gem_path, 'ext/mpfr') rescue LoadError end unless find_header("ruby_mpfr.h", ruby_mpfr_header_dir) header_not_found("ruby_mpfr.h") end create_makefile("mpc") end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-mpc-0.0.6 | ext/mpc/extconf.rb |