1999-01-19 23:59:39 -05:00
|
|
|
require 'mkmf'
|
|
|
|
|
1998-01-16 07:13:05 -05:00
|
|
|
have_library("sun", "getpwnam") # NIS (== YP) interface for IRIX 4
|
|
|
|
a = have_func("getlogin")
|
|
|
|
b = have_func("getpwent")
|
|
|
|
c = have_func("getgrent")
|
|
|
|
if a or b or c
|
2002-09-08 06:00:43 -04:00
|
|
|
have_struct_member('struct passwd', 'pw_gecos', 'pwd.h')
|
|
|
|
have_struct_member('struct passwd', 'pw_change', 'pwd.h')
|
|
|
|
have_struct_member('struct passwd', 'pw_quota', 'pwd.h')
|
|
|
|
have_struct_member('struct passwd', 'pw_age', 'pwd.h')
|
|
|
|
have_struct_member('struct passwd', 'pw_class', 'pwd.h')
|
|
|
|
have_struct_member('struct passwd', 'pw_comment', 'pwd.h') unless /cygwin/ === RUBY_PLATFORM
|
|
|
|
have_struct_member('struct passwd', 'pw_expire', 'pwd.h')
|
1998-01-16 07:13:05 -05:00
|
|
|
create_makefile("etc")
|
|
|
|
end
|