Sha256: bd9241b67aa47f1e45395dccf552d7470c084cef3ec898f95541c3d4ba627a27

Contents?: true

Size: 604 Bytes

Versions: 2

Compression:

Stored size: 604 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' && RUBY_PLATFORM !~ /java/
  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

2 entries across 2 versions & 1 rubygems

Version Path
bond-0.3.5 ext/readline_line_buffer/extconf.rb
bond-0.3.4 ext/readline_line_buffer/extconf.rb