2017-02-04 06:49:00 +00:00
|
|
|
# frozen_string_literal: true
|
1999-08-13 05:37:52 +00:00
|
|
|
require 'mkmf'
|
|
|
|
|
2012-06-10 01:29:58 +00:00
|
|
|
$INCFLAGS << " -I$(topdir) -I$(top_srcdir)"
|
|
|
|
|
2018-07-22 10:02:54 +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")
|
2016-04-30 01:09:07 +00:00
|
|
|
have_header("pwd.h")
|
2001-11-21 15:42:12 +00:00
|
|
|
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
|