summaryrefslogtreecommitdiff
path: root/src/dumm/ext/extconf.rb
blob: 136be5c2c7bea0c98629ae2ee7d7c77291b08f47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
# DUMM for Ruby
#

require "mkmf"

dir_config("dumm")

unless find_header('library.h', '../../libstrongswan') and
       find_header('dumm.h', '..')
  puts "... failed: one or more header files not found!"
  exit
end

unless find_library('dumm', 'dumm_create')
  puts "... failed: 'libdumm' not found!"
  exit
end

create_makefile("dumm")