1999-08-13 05:37:52 +00:00
|
|
|
require 'mkmf'
|
|
|
|
|
2007-06-25 09:03:43 +00:00
|
|
|
if /mswin|mingw|bccwin/ !~ RUBY_PLATFORM
|
2001-03-20 14:50:43 +00:00
|
|
|
have_header("sys/stropts.h")
|
|
|
|
have_func("setresuid")
|
2001-11-21 15:42:12 +00:00
|
|
|
have_header("libutil.h")
|
2008-12-17 10:38:19 +00:00
|
|
|
have_header("util.h") # OpenBSD openpty
|
2001-11-21 15:42:12 +00:00
|
|
|
have_header("pty.h")
|
|
|
|
have_library("util", "openpty")
|
2008-12-16 10:49:12 +00:00
|
|
|
if have_func("posix_openpt") or
|
|
|
|
have_func("openpty") or
|
2001-03-20 14:50:43 +00:00
|
|
|
have_func("_getpty") or
|
2001-11-27 10:00:35 +00:00
|
|
|
have_func("ptsname") or
|
2001-03-20 14:50:43 +00:00
|
|
|
have_func("ioctl")
|
|
|
|
create_makefile('pty')
|
|
|
|
end
|
1999-08-13 05:37:52 +00:00
|
|
|
end
|