This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
evat => eval as found by Tom Hukins
[metaconfig.git] / U / modified / i_grp.U
CommitLineData
959f3c4c
JH
1?RCS: $Id: i_grp.U,v 3.0 1993/08/18 12:08:20 ram Exp $
2?RCS:
3?RCS: Copyright (c) 1991-1993, Raphael Manfredi
4?RCS:
65a32477 5?RCS: You may redistribute only under the terms of the Artistic License,
959f3c4c
JH
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
65a32477 8?RCS: that same Artistic License; a copy of which may be found at the root
959f3c4c
JH
9?RCS: of the source tree for dist 3.0.
10?RCS:
11?RCS: GRPASSWD detection added by Andy Dougherty July 14, 1998.
12?RCS:
13?RCS: $Log: i_grp.U,v $
14?RCS: Revision 3.0 1993/08/18 12:08:20 ram
15?RCS: Baseline for dist 3.0 netwide release.
16?RCS:
17?MAKE:i_grp d_grpasswd: \
18 contains rm cppstdin cppflags cppminus Inhdr Findhdr Setvar
19?MAKE: -pick add $@ %<
20?S:i_grp:
21?S: This variable conditionally defines the I_GRP symbol, and indicates
22?S: whether a C program should include <grp.h>.
23?S:.
24?S:d_grpasswd:
25?S: This variable conditionally defines GRPASSWD, which indicates
26?S: that struct group in <grp.h> contains gr_passwd.
27?S:.
28?C:I_GRP:
29?C: This symbol, if defined, indicates to the C program that it should
30?C: include <grp.h>.
31?C:.
32?C:GRPASSWD:
33?C: This symbol, if defined, indicates to the C program that struct group
34?C: in <grp.h> contains gr_passwd.
35?C:.
36?H:#$i_grp I_GRP /**/
37?H:#$d_grpasswd GRPASSWD /**/
38?H:.
39?LINT:set i_grp d_grpasswd
40?T: xxx
41: see if this is an grp system
42set grp.h i_grp
43eval $inhdr
44
45case "$i_grp" in
46$define)
47 xxx=`./findhdr grp.h`
48 $cppstdin $cppflags $cppminus < $xxx >$$.h
49
50 if $contains 'gr_passwd' $$.h >/dev/null 2>&1; then
51 val="$define"
52 else
53 val="$undef"
54 fi
55 set d_grpasswd
56 eval $setvar
57
58 $rm -f $$.h
59 ;;
60*)
61 val="$undef";
62 set d_grpasswd; eval $setvar
63 ;;
64esac
65