2015-12-16 08:31:54 +03:00
|
|
|
# frozen_string_literal: false
|
1999-08-13 09:37:52 +04:00
|
|
|
require 'mkmf'
|
|
|
|
|
2012-06-10 05:29:58 +04:00
|
|
|
$INCFLAGS << " -I$(topdir) -I$(top_srcdir)"
|
|
|
|
|
2012-05-17 06:48:59 +04:00
|
|
|
if /mswin|mingw|bccwin|nacl/ !~ RUBY_PLATFORM
|
2001-03-20 17:50:43 +03:00
|
|
|
have_header("sys/stropts.h")
|
|
|
|
have_func("setresuid")
|
2001-11-21 18:42:12 +03:00
|
|
|
have_header("libutil.h")
|
2008-12-17 13:38:19 +03:00
|
|
|
have_header("util.h") # OpenBSD openpty
|
2001-11-21 18:42:12 +03:00
|
|
|
have_header("pty.h")
|
2016-04-30 04:09:07 +03:00
|
|
|
have_header("pwd.h")
|
2001-11-21 18:42:12 +03:00
|
|
|
have_library("util", "openpty")
|
2008-12-16 13:49:12 +03:00
|
|
|
if have_func("posix_openpt") or
|
|
|
|
have_func("openpty") or
|
2001-03-20 17:50:43 +03:00
|
|
|
have_func("_getpty") or
|
2001-11-27 13:00:35 +03:00
|
|
|
have_func("ptsname") or
|
2001-03-20 17:50:43 +03:00
|
|
|
have_func("ioctl")
|
|
|
|
create_makefile('pty')
|
|
|
|
end
|
1999-08-13 09:37:52 +04:00
|
|
|
end
|