Sha256: 989fccc17045deccd2144a4d7081a59c2ae34c0135306e5d43c4b5397e2d23cf

Contents?: true

Size: 719 Bytes

Versions: 5

Compression:

Stored size: 719 Bytes

Contents

require 'mkmf'
require 'fileutils'
require 'rbconfig'

File.delete('cpu.c') if File.exists?('cpu.c')

case Config::CONFIG['host_os']
   when /hpux/i
      FileUtils.cp("hpux/hpux.c", "cpu.c")
   when /sunos|solaris/i
      FileUtils.cp("sunos/sunos.c", "cpu.c")
      unless have_func("getloadavg")
         have_library("kstat")
      end
   when /bsd|darwin/i
      FileUtils.cp("bsd/bsd.c", "cpu.c")
      have_func("sysctlbyname")
      have_library("kvm")
      have_header("kvm.h")
   when /linux|dos|windows|win32|mingw|cygwin/i
      STDERR.puts "Run 'rake gem:install' instead for this platform"
   else
      STDERR.puts "This platform is not currently supported.  Exiting..."
end

create_makefile("sys/cpu")

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sys-cpu-0.6.4-universal-linux ext/extconf.rb
sys-cpu-0.6.4 ext/extconf.rb
sys-cpu-0.6.3-x86-linux ext/extconf.rb
sys-cpu-0.6.3 ext/extconf.rb
sys-cpu-0.6.3-x86-mingw32 ext/extconf.rb