summaryrefslogtreecommitdiff
path: root/ext/win32/resolv/extconf.rb
blob: 5ee4c0d7c4da061e282e8519dad515cb586181fd (plain)
1
2
3
4
5
6
7
require 'mkmf'
if RUBY_ENGINE == "ruby" and have_library('iphlpapi', 'GetNetworkParams', ['windows.h', 'iphlpapi.h'])
  have_library('advapi32', 'RegGetValueW', ['windows.h'])
  create_makefile('win32/resolv')
else
  File.write('Makefile', "all clean install:\n\t@echo Done: $(@)\n")
end