require 'mkmf' dir_config("mac",'/usr/include/mac','/usr/lib') if (have_library("mac") and have_header("mac/All.h")) create_makefile("rmac"); else puts "Error: Can't find headers or library for libmac" end