Sha256: 5d4374150830eba0af00875b9ceecb06960a57e29d48312eb1cd1f820d2d8968
Contents?: true
Size: 1.24 KB
Versions: 1
Compression:
Stored size: 1.24 KB
Contents
# ----------------------------------------------------------------------------- # # Makefile builder for GEOS wrapper # # ----------------------------------------------------------------------------- if ::RUBY_DESCRIPTION =~ /^jruby\s/ ::File.open("Makefile", "w") { |f_| f_.write(".PHONY: install\ninstall:\n") } else require "mkmf" if geosconfig = (with_config("geos-config") || find_executable("geos-config")) puts "Using GEOS compile configuration from %s" [geosconfig] $INCFLAGS << " " << `#{geosconfig} --cflags`.strip geos_libs = `#{geosconfig} --clibs`.tr("\n", " ") geos_libs.split(/\s+/).each do |flag| $libs << " " + flag unless $libs.include?(flag) end end found_geos_ = false if have_header("geos_c.h") found_geos_ = true if have_func("GEOSSetSRID_r", "geos_c.h") have_func("GEOSPreparedContains_r", "geos_c.h") have_func("GEOSPreparedDisjoint_r", "geos_c.h") have_func("rb_memhash", "ruby.h") end unless found_geos_ puts "**** WARNING: Unable to find GEOS headers or libraries." puts "**** Ensure that 'geos-config' is in your PATH or provide that full path via --with-geos-config" puts "**** Compiling without GEOS support." end create_makefile("rgeo/geos/geos_c_impl") end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rgeo-0.5.0 | ext/geos_c_impl/extconf.rb |