ry / ebb fork watch download tarball
public
Description: web server
Homepage: http://ebb.rubyforge.org
Clone URL: git://github.com/ry/ebb.git
Ryan Dahl (author)
Wed Feb 27 02:50:14 -0800 2008
commit  0e2dc886e26a1afc11882f3f6e999943d7af2478
tree    16962c1b0285b95935377ff46e3c15d9df38f2ff
parent  7897e7c5897e264fc0f80ee423ed393e606180cb
ebb / src / extconf.rb
100644 41 lines (27 sloc) 0.663 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
require 'mkmf'
 
 
unless pkg_config('glib-2.0')
  abort "Ebb requires glib-2.0 and pkg_config"
end
 
flags = []
 
if have_header('sys/select.h')
  flags << '-DEV_USE_SELECT'
end
 
if have_header('poll.h')
  flags << '-DEV_USE_POLL'
end
 
if have_header('sys/epoll.h')
  flags << '-DEV_USE_EPOLL'
end
 
if have_header('sys/event.h') and have_header('sys/queue.h')
  flags << '-DEV_USE_KQUEUE'
end
 
if have_header('port.h')
  flags << '-DEV_USE_PORT'
end
 
if have_header('sys/inotify.h')
  flags << '-DEV_USE_INOTIFY'
end
 
$CFLAGS << ' ' << flags.join(' ')
$defs << "-DRUBY_VERSION_CODE=#{RUBY_VERSION.gsub(/\D/, '')}"
 
 
dir_config('ebb_ext')
create_makefile('ebb_ext')