system('cd ext/libdatrie && ./configure && make')

require 'mkmf'
dir_config 'trie'

unless find_library('datrie',nil,'ext/libdatrie')
  puts 'Need libdatrie.'
  exit
end

create_makefile 'trie'


system("cd #{File.dirname(__FILE__)}/../libdatrie && ./configure && make")

require 'mkmf'
dir_config 'trie'

unless find_library('datrie',nil,'ext/libdatrie')
  puts 'Need libdatrie.'
  exit
end

create_makefile 'trie'


Make the libdatrie compile command use a relative path.
Make the libdatrie compile command use a relative path.
