public
Description: ruby binding to maxmind geoip library
Homepage: http://geoip-city.rubyforge.org
Clone URL: git://github.com/ry/geoip-city.git
Search Repo:
geoip-city / extconf.rb
100644 9 lines (7 sloc) 0.211 kb
1
2
3
4
5
6
7
8
9
require 'mkmf'
 
dir_config("geoip")
 
if have_library('GeoIP', 'GeoIP_record_by_ipnum') and have_header('GeoIPCity.h')
  create_makefile('geoip_city')
else
  abort("you must have geoip c library installed!")
end