1 ?RCS: $Id: i_pwd.U,v 3.0.1.2 1995/07/25 14:10:57 ram Exp $
3 ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
5 ?RCS: You may redistribute only under the terms of the Artistic Licence,
6 ?RCS: as specified in the README file that comes with the distribution.
7 ?RCS: You may reuse parts of this distribution only within the terms of
8 ?RCS: that same Artistic Licence; a copy of which may be found at the root
9 ?RCS: of the source tree for dist 3.0.
11 ?RCS: $Log: i_pwd.U,v $
12 ?RCS: Revision 3.0.1.2 1995/07/25 14:10:57 ram
13 ?RCS: patch56: use setvar so hint file values can override our guesses (ADO)
15 ?RCS: Revision 3.0.1.1 1994/05/06 15:03:27 ram
16 ?RCS: patch23: had forgotten cppminus in cppstdin test (ADO)
18 ?RCS: Revision 3.0 1993/08/18 12:08:25 ram
19 ?RCS: Baseline for dist 3.0 netwide release.
22 ?X: This unit checks whether there is a pwd system or not
24 ?MAKE:i_pwd d_pwquota d_pwage d_pwchange d_pwclass d_pwexpire \
25 d_pwgecos d_pwpasswd d_pwcomment: \
26 contains rm cppstdin cppflags cppminus Inhdr Findhdr Setvar
27 ?MAKE: -pick add $@ %<
29 ?S: This variable conditionally defines I_PWD, which indicates
30 ?S: to the C program that it should include <pwd.h>.
33 ?S: This variable conditionally defines PWQUOTA, which indicates
34 ?S: that struct passwd contains pw_quota.
37 ?S: This variable conditionally defines PWAGE, which indicates
38 ?S: that struct passwd contains pw_age.
41 ?S: This variable conditionally defines PWCHANGE, which indicates
42 ?S: that struct passwd contains pw_change.
45 ?S: This variable conditionally defines PWCLASS, which indicates
46 ?S: that struct passwd contains pw_class.
49 ?S: This variable conditionally defines PWEXPIRE, which indicates
50 ?S: that struct passwd contains pw_expire.
53 ?S: This variable conditionally defines PWCOMMENT, which indicates
54 ?S: that struct passwd contains pw_comment.
57 ?S: This variable conditionally defines PWGECOS, which indicates
58 ?S: that struct passwd contains pw_gecos.
61 ?S: This variable conditionally defines PWPASSWD, which indicates
62 ?S: that struct passwd contains pw_passwd.
65 ?C: This symbol, if defined, indicates to the C program that it should
69 ?C: This symbol, if defined, indicates to the C program that struct passwd
70 ?C: contains pw_quota.
73 ?C: This symbol, if defined, indicates to the C program that struct passwd
77 ?C: This symbol, if defined, indicates to the C program that struct passwd
78 ?C: contains pw_change.
81 ?C: This symbol, if defined, indicates to the C program that struct passwd
82 ?C: contains pw_class.
85 ?C: This symbol, if defined, indicates to the C program that struct passwd
86 ?C: contains pw_expire.
89 ?C: This symbol, if defined, indicates to the C program that struct passwd
90 ?C: contains pw_comment.
93 ?C: This symbol, if defined, indicates to the C program that struct passwd
94 ?C: contains pw_gecos.
97 ?C: This symbol, if defined, indicates to the C program that struct passwd
98 ?C: contains pw_passwd.
100 ?H:#$i_pwd I_PWD /**/
101 ?H:#$d_pwquota PWQUOTA /**/
102 ?H:#$d_pwage PWAGE /**/
103 ?H:#$d_pwchange PWCHANGE /**/
104 ?H:#$d_pwclass PWCLASS /**/
105 ?H:#$d_pwexpire PWEXPIRE /**/
106 ?H:#$d_pwcomment PWCOMMENT /**/
107 ?H:#$d_pwgecos PWGECOS /**/
108 ?H:#$d_pwpasswd PWPASSWD /**/
110 ?LINT: set i_pwd d_pwquota d_pwage d_pwchange d_pwclass d_pwexpire d_pwcomment
111 ?LINT: set d_pwgecos d_pwpasswd
113 : see if this is a pwd.h system
119 xxx=`./findhdr pwd.h`
120 $cppstdin $cppflags $cppminus < $xxx >$$.h
122 if $contains 'pw_quota' $$.h >/dev/null 2>&1; then
130 if $contains 'pw_age' $$.h >/dev/null 2>&1; then
138 if $contains 'pw_change' $$.h >/dev/null 2>&1; then
146 if $contains 'pw_class' $$.h >/dev/null 2>&1; then
154 if $contains 'pw_expire' $$.h >/dev/null 2>&1; then
162 if $contains 'pw_comment' $$.h >/dev/null 2>&1; then
170 if $contains 'pw_gecos' $$.h >/dev/null 2>&1; then
178 if $contains 'pw_passwd' $$.h >/dev/null 2>&1; then
190 set d_pwquota; eval $setvar
191 set d_pwage; eval $setvar
192 set d_pwchange; eval $setvar
193 set d_pwclass; eval $setvar
194 set d_pwexpire; eval $setvar
195 set d_pwcomment; eval $setvar
196 set d_pwgecos; eval $setvar
197 set d_pwpasswd; eval $setvar