Sha256: c74e1aa699b5cc77460cc5717f951d7e2bb2a319b6079f903b67d0f16e037131

Contents?: true

Size: 577 Bytes

Versions: 3

Compression:

Stored size: 577 Bytes

Contents

require "mkmf"

# placate rubygems when running `make install`
def dummy_makefile
  File.open(File.join(File.dirname(__FILE__), "Makefile"), "w") {|f|
    f.puts %[install:\n\techo "This is a dummy extension"]
  }
end

if RUBY_VERSION < '1.9.2'
  dir_config("readline")
  have_library('readline')
  if !have_header('readline/readline.h')
    puts "Bond was built without readline. To use it with readline: gem install bond" +
      " -- --with-readline-dir=/path/to/readline"
    dummy_makefile
  else
    create_makefile 'readline_line_buffer'
  end
else
  dummy_makefile
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bond-0.3.3 ext/readline_line_buffer/extconf.rb
bond-0.3.2 ext/readline_line_buffer/extconf.rb
bond-0.3.1 ext/readline_line_buffer/extconf.rb