1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/readline/extconf.rb
matz 6c840ba8f4 --with-xxx=yyy
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1999-04-27 05:11:13 +00:00

24 lines
556 B
Ruby

require "mkmf"
readline_dir = with_config("readline-dir")
if readline_dir
$CFLAGS = "-I#{readline_dir}/include"
$LDFLAGS = "-L#{readline_dir}/lib"
end
readline_dir = with_config("readline-include-dir")
if readline_dir
$CFLAGS = "-I#{readline_dir}"
end
readline_dir = with_config("readline-lib-dir")
if readline_dir
$LDFLAGS = "-L#{readline_dir}"
end
have_library("termcap", "tgetnum")
if have_header("readline/readline.h") and
have_header("readline/history.h") and
have_library("readline", "readline")
create_makefile("readline")
end