Sha256: 4f09615095151f8620e9072cae202f093252e386bab411c10149b0d4aecd3fe5

Contents?: true

Size: 667 Bytes

Versions: 2

Compression:

Stored size: 667 Bytes

Contents

require 'mkmf'

flags = []

unless have_func('rb_thread_blocking_region') and have_macro('RB_UBF_DFL', 'ruby.h')
  abort "Rev requires (a fairly recent) Ruby 1.9 or greater"
end

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(' ')

dir_config('rev_ext')
create_makefile('rev_ext')

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rev-0.1.0 ext/rev/extconf.rb
rev-0.1.1 ext/rev/extconf.rb