This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Populate metaconfig branch.
[metaconfig.git] / dist-3.0at70b / mcon / files / keyword.U
1 ?RCS: $Id: keyword.U,v 3.0 1993/08/18 12:10:08 ram Exp $
2 ?RCS:
3 ?RCS:  Copyright (c) 1991-1993, Raphael Manfredi
4 ?RCS:  
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.
10 ?RCS:
11 ?RCS: $Log: keyword.U,v $
12 ?RCS: Revision 3.0  1993/08/18  12:10:08  ram
13 ?RCS: Baseline for dist 3.0 netwide release.
14 ?RCS:
15 ?MAKE:d_const: cat cc ccflags Setvar
16 ?MAKE:  -pick add $@ %<
17 ?S:d_<KEY>:
18 ?S:     This variable conditionally defines the HASCONST symbol, which
19 ?S:     indicates to the C program that this C compiler knows about the
20 ?S:     <KEY> type.
21 ?S:.
22 ?C:HAS<%KEY> ~ %<:
23 ?C:     This symbol, if defined, indicates that this C compiler knows about
24 ?C:     the <KEY> type. There is no need to actually test for that symbol
25 ?C:     within your programs. The mere use of the "<KEY>" keyword will
26 ?C:     trigger the necessary tests.
27 ?C:.
28 ?H:?%<:#$d_<KEY> HAS<%KEY>      /**/
29 ?H:?%<:#ifndef HAS<%KEY>
30 ?H:?%<:#define <KEY>
31 ?H:?%<:#endif
32 ?H:.
33 ?W:%<:<KEY>
34 ?LINT:set d_<KEY>
35 ?LINT:known <KEY>
36 : check for <KEY> keyword
37 echo " "
38 echo 'Checking to see if your C compiler knows about "<KEY>"...'
39 $cat ><KEY>.c <<'EOCP'
40 main()
41 {
42         <KEY> char *foo;
43 }
44 EOCP
45 if $cc -c $ccflags <KEY>.c >/dev/null 2>&1 ; then
46         val="$define"
47         echo "Yup, it does."
48 else
49         val="$undef"
50         echo "Nope, it doesn't."
51 fi
52 set d_<KEY>
53 eval $setvar
54