1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-12 11:52:01 +01:00
metasploit-framework/external/serialport/extconf.rb
druid cad513b703 MSF fork of the RubyForge ruby-serialport library
git-svn-id: file:///home/svn/framework3/trunk@6117 4d416f70-5f16-0410-b530-b9f4589650da
2009-01-11 05:35:23 +00:00

14 lines
278 B
Ruby

require 'mkmf'
printf("checking for OS... ")
STDOUT.flush
os = /-([a-z]+)/.match(RUBY_PLATFORM)[1]
puts(os)
$CFLAGS += " -D#{os}"
if !(os == 'mswin' or os == 'bccwin')
exit(1) if not have_header("termios.h") or not have_header("unistd.h")
end
create_makefile("serialport")