ext/gdal-ruby/gdalconst/extconf.rb in gdal-0.0.7 vs ext/gdal-ruby/gdalconst/extconf.rb in gdal-1.0.0

- old
+ new

@@ -1,6 +1,9 @@ require 'mkmf' +# see https://github.com/zhm/gdal-ruby/issues/5 +require_relative '../ruby-2.2-patch' + raise 'gdal-config not found.' if `which gdal-config`.empty? dir_config 'gdal', `gdal-config --cflags`.split(' ')[0].gsub(/-I/, ''), `gdal-config --libs`.split(' ')[0].gsub(/-L/, '')