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