#!/usr/bin/env ruby require 'rubygems' require 'ffi' require 'fileutils' include FileUtils if RUBY_PLATFORM =~ /java/ # JRuby's C extension support is disabled by default, so we can not easily test # for udev availability and therefore suppose to have none. have_udev = false # Implement very simple verions of mkmf-helpers used below def enable_config(name, default=nil) if ARGV.include?("--enable-#{name}") true elsif ARGV.include?("--disable-#{name}") false else default end end def arg_config(name) ARGV.include?(name) end else require 'mkmf' have_udev = true end def do_help print <