Sha256: 8194b72717389f6dc7f7ea3476dffb84fa22cdcbbe6dbd78a2d316aa2355da79

Contents?: true

Size: 480 Bytes

Versions: 12

Compression:

Stored size: 480 Bytes

Contents

require 'mkmf'
have_library('stdc++')
have_header('ruby/encoding.h')
create_makefile 'unf_ext'

unless CONFIG['CXX']
  case CONFIG['CC']
  when %r{((?:.*[-/])?)gcc([-0-9.]*)$}
    cxx = $1 + 'g++' + $2
  when %r{((?:.*[-/])?)clang([-0-9.]*)$}
    cxx = $1 + 'clang++' + $2
  else
    cxx = CONFIG['CC']
  end

  warn "CXX is automatically set to #{cxx}"

  new_mf = <<-EOF << File.read('Makefile')
CXX=#{cxx}
  EOF

  File.open('Makefile', 'w') { |mf|
    mf.print new_mf
  }
end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
unf_ext-0.0.6-x86-mingw32 ext/unf_ext/extconf.rb
unf_ext-0.0.6 ext/unf_ext/extconf.rb
unf_ext-0.0.5-x86-mingw32 ext/unf_ext/extconf.rb
unf_ext-0.0.5 ext/unf_ext/extconf.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/unf_ext-0.0.4/ext/unf_ext/extconf.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/unf_ext-0.0.4/ext/unf_ext/extconf.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/unf_ext-0.0.4/ext/unf_ext/extconf.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/unf_ext-0.0.4/ext/unf_ext/extconf.rb
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/unf_ext-0.0.4/ext/unf_ext/extconf.rb
domo-0.0.5 vendor/bundle/ruby/1.9.1/gems/unf_ext-0.0.4/ext/unf_ext/extconf.rb
unf_ext-0.0.4-x86-mingw32 ext/unf_ext/extconf.rb
unf_ext-0.0.4 ext/unf_ext/extconf.rb