This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove trailing whitespace on meta-lines in unit files
[metaconfig.git] / dist / U / i_pwd.U
1 ?RCS: $Id$
2 ?RCS:
3 ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
4 ?RCS:
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.
10 ?RCS:
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)
14 ?RCS:
15 ?RCS: Revision 3.0.1.1  1994/05/06  15:03:27  ram
16 ?RCS: patch23: had forgotten cppminus in cppstdin test (ADO)
17 ?RCS:
18 ?RCS: Revision 3.0  1993/08/18  12:08:25  ram
19 ?RCS: Baseline for dist 3.0 netwide release.
20 ?RCS:
21 ?X:
22 ?X: This unit checks whether there is a pwd system or not
23 ?X:
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 $@ %<
27 ?S:i_pwd:
28 ?S:     This variable conditionally defines I_PWD, which indicates
29 ?S:     to the C program that it should include <pwd.h>.
30 ?S:.
31 ?S:d_pwquota:
32 ?S:     This varaible conditionally defines PWQUOTA, which indicates
33 ?S:     that struct passwd contains pw_quota.
34 ?S:.
35 ?S:d_pwage:
36 ?S:     This varaible conditionally defines PWAGE, which indicates
37 ?S:     that struct passwd contains pw_age.
38 ?S:.
39 ?S:d_pwchange:
40 ?S:     This varaible conditionally defines PWCHANGE, which indicates
41 ?S:     that struct passwd contains pw_change.
42 ?S:.
43 ?S:d_pwclass:
44 ?S:     This varaible conditionally defines PWCLASS, which indicates
45 ?S:     that struct passwd contains pw_class.
46 ?S:.
47 ?S:d_pwexpire:
48 ?S:     This varaible conditionally defines PWEXPIRE, which indicates
49 ?S:     that struct passwd contains pw_expire.
50 ?S:.
51 ?S:d_pwcomment:
52 ?S:     This varaible conditionally defines PWCOMMENT, which indicates
53 ?S:     that struct passwd contains pw_comment.
54 ?S:.
55 ?C:I_PWD:
56 ?C:     This symbol, if defined, indicates to the C program that it should
57 ?C:     include <pwd.h>.
58 ?C:.
59 ?C:PWQUOTA:
60 ?C:     This symbol, if defined, indicates to the C program that struct passwd
61 ?C:     contains pw_quota.
62 ?C:.
63 ?C:PWAGE:
64 ?C:     This symbol, if defined, indicates to the C program that struct passwd
65 ?C:     contains pw_age.
66 ?C:.
67 ?C:PWCHANGE:
68 ?C:     This symbol, if defined, indicates to the C program that struct passwd
69 ?C:     contains pw_change.
70 ?C:.
71 ?C:PWCLASS:
72 ?C:     This symbol, if defined, indicates to the C program that struct passwd
73 ?C:     contains pw_class.
74 ?C:.
75 ?C:PWEXPIRE:
76 ?C:     This symbol, if defined, indicates to the C program that struct passwd
77 ?C:     contains pw_expire.
78 ?C:.
79 ?C:PWCOMMENT:
80 ?C:     This symbol, if defined, indicates to the C program that struct passwd
81 ?C:     contains pw_comment.
82 ?C:.
83 ?H:#$i_pwd I_PWD                /**/
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      /**/
90 ?H:.
91 ?LINT: set i_pwd d_pwquota d_pwage d_pwchange d_pwclass d_pwexpire d_pwcomment
92 ?T:xxx
93 : see if this is a pwd.h system
94 set pwd.h i_pwd
95 eval $inhdr
96
97 case "$i_pwd" in
98 $define)
99         xxx=`./findhdr pwd.h`
100         $cppstdin $cppflags $cppminus < $xxx >$$.h
101
102         if $contains 'pw_quota' $$.h >/dev/null 2>&1; then
103                 val="$define"
104         else
105                 val="$undef"
106         fi
107         set d_pwquota
108         eval $setvar
109
110         if $contains 'pw_age' $$.h >/dev/null 2>&1; then
111                 val="$define"
112         else
113                 val="$undef"
114         fi
115         set d_pwage
116         eval $setvar
117
118         if $contains 'pw_change' $$.h >/dev/null 2>&1; then
119                 val="$define"
120         else
121                 val="$undef"
122         fi
123         set d_pwchange
124         eval $setvar
125
126         if $contains 'pw_class' $$.h >/dev/null 2>&1; then
127                 val="$define"
128         else
129                 val="$undef"
130         fi
131         set d_pwclass
132         eval $setvar
133
134         if $contains 'pw_expire' $$.h >/dev/null 2>&1; then
135                 val="$define"
136         else
137                 val="$undef"
138         fi
139         set d_pwexpire
140         eval $setvar
141
142         if $contains 'pw_comment' $$.h >/dev/null 2>&1; then
143                 val="$define"
144         else
145                 val="$undef"
146         fi
147         set d_pwcomment
148         eval $setvar
149
150         $rm -f $$.h
151         ;;
152 *)
153         val="$undef"; 
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
160         ;;
161 esac
162