3 ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
5 ?RCS: You may redistribute only under the terms of the Artistic License,
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 License; a copy of which may be found at the root
9 ?RCS: of the source tree for dist 4.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 d_pwcomment: \
25 contains rm cppstdin cppflags cppminus Inhdr Findhdr Setvar
26 ?MAKE: -pick add $@ %<
28 ?S: This variable conditionally defines I_PWD, which indicates
29 ?S: to the C program that it should include <pwd.h>.
32 ?S: This varaible conditionally defines PWQUOTA, which indicates
33 ?S: that struct passwd contains pw_quota.
36 ?S: This varaible conditionally defines PWAGE, which indicates
37 ?S: that struct passwd contains pw_age.
40 ?S: This varaible conditionally defines PWCHANGE, which indicates
41 ?S: that struct passwd contains pw_change.
44 ?S: This varaible conditionally defines PWCLASS, which indicates
45 ?S: that struct passwd contains pw_class.
48 ?S: This varaible conditionally defines PWEXPIRE, which indicates
49 ?S: that struct passwd contains pw_expire.
52 ?S: This varaible conditionally defines PWCOMMENT, which indicates
53 ?S: that struct passwd contains pw_comment.
56 ?C: This symbol, if defined, indicates to the C program that it should
60 ?C: This symbol, if defined, indicates to the C program that struct passwd
61 ?C: contains pw_quota.
64 ?C: This symbol, if defined, indicates to the C program that struct passwd
68 ?C: This symbol, if defined, indicates to the C program that struct passwd
69 ?C: contains pw_change.
72 ?C: This symbol, if defined, indicates to the C program that struct passwd
73 ?C: contains pw_class.
76 ?C: This symbol, if defined, indicates to the C program that struct passwd
77 ?C: contains pw_expire.
80 ?C: This symbol, if defined, indicates to the C program that struct passwd
81 ?C: contains pw_comment.
84 ?H:#$d_pwquota PWQUOTA /**/
85 ?H:#$d_pwage PWAGE /**/
86 ?H:#$d_pwchange PWCHANGE /**/
87 ?H:#$d_pwclass PWCLASS /**/
88 ?H:#$d_pwexpire PWEXPIRE /**/
89 ?H:#$d_pwcomment PWCOMMENT /**/
91 ?LINT: set i_pwd d_pwquota d_pwage d_pwchange d_pwclass d_pwexpire d_pwcomment
93 : see if this is a pwd.h system
100 $cppstdin $cppflags $cppminus < $xxx >$$.h
102 if $contains 'pw_quota' $$.h >/dev/null 2>&1; then
110 if $contains 'pw_age' $$.h >/dev/null 2>&1; then
118 if $contains 'pw_change' $$.h >/dev/null 2>&1; then
126 if $contains 'pw_class' $$.h >/dev/null 2>&1; then
134 if $contains 'pw_expire' $$.h >/dev/null 2>&1; then
142 if $contains 'pw_comment' $$.h >/dev/null 2>&1; then
154 set d_pwquota; eval $setvar
155 set d_pwage; eval $setvar
156 set d_pwchange; eval $setvar
157 set d_pwclass; eval $setvar
158 set d_pwexpire; eval $setvar
159 set d_pwcomment; eval $setvar