Sha256: 00f623c3aac91e0f386b45a5c014b1fe299c8a6fa17a1b282351bc948570fcf3

Contents?: true

Size: 512 Bytes

Versions: 1

Compression:

Stored size: 512 Bytes

Contents

require 'mkmf'

# check for POSIX threads library
  hasPthread = have_library('pthread', 'pthread_create')

# check for ruby library
  require 'rbconfig'

  rubyLibArgs = Config::CONFIG.values.grep(/^-lruby/)

  rubyLibNames = rubyLibArgs.map {|a| a.sub /^-l/, ''}
  rubyLibNames.unshift 'ruby' # try most common name first
  rubyLibNames.uniq!

  hasRuby = rubyLibNames.inject(false) do |verdict, name|
    verdict ||= have_library(name, 'ruby_init')
  end

hasPthread && hasRuby && create_makefile('ruby-vpi')

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-vpi-15.0.2 ext/extconf.rb