DEFINITIONS
This source file includes following functions.
1 require 'mkmf'
2
3 have_library("sun", "getpwnam") # NIS (== YP) interface for IRIX 4
4 a = have_func("getlogin")
5 b = have_func("getpwent")
6 c = have_func("getgrent")
7 if a or b or c
8 have_struct_member('struct passwd', 'pw_gecos', 'pwd.h')
9 have_struct_member('struct passwd', 'pw_change', 'pwd.h')
10 have_struct_member('struct passwd', 'pw_quota', 'pwd.h')
11 have_struct_member('struct passwd', 'pw_age', 'pwd.h')
12 have_struct_member('struct passwd', 'pw_class', 'pwd.h')
13 have_struct_member('struct passwd', 'pw_comment', 'pwd.h') unless /cygwin/ === RUBY_PLATFORM
14 have_struct_member('struct passwd', 'pw_expire', 'pwd.h')
15 create_makefile("etc")
16 end