summaryrefslogtreecommitdiff
path: root/ext/readline/extconf.rb
blob: 7db62745f36261d707ba98dc32999aa28aa449bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require "mkmf"

dir_config("readline")
have_library("user32", nil) if /cygwin/ === RUBY_PLATFORM
have_library("ncurses", "tgetnum") or
  have_library("termcap", "tgetnum") or
  have_library("curses", "tgetnum")

if have_header("readline/readline.h") and
    have_header("readline/history.h") and
    have_library("readline", "readline")
  create_makefile("readline")
end