This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Plan 9: No Configure.
[metaconfig.git] / U / compline / d_sgndchr.U
CommitLineData
959f3c4c
JH
1?RCS: $Id: d_sgndchr.U,v 3.0.1.2 1997/02/28 15:44:25 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: d_sgndchr.U,v $
12?RCS: Revision 3.0.1.2 1997/02/28 15:44:25 ram
13?RCS: patch61: added a ?F: metalint hint
14?RCS:
15?RCS: Revision 3.0.1.1 1995/07/25 14:00:24 ram
16?RCS: patch56: made cc and ccflags optional dependencies
17?RCS:
18?RCS: Revision 3.0 1993/08/18 12:07:16 ram
19?RCS: Baseline for dist 3.0 netwide release.
20?RCS:
0f00356b 21?MAKE:d_sgndchr: cat rm Compile Setvar run
959f3c4c
JH
22?MAKE: -pick add $@ %<
23?S:d_sgndchr:
24?S: This variable conditionally defines the SIGNEDCHAR symbol, which
25?S: indicates to the C program that signed characters are available.
26?S:.
27?C:SIGNEDCHAR:
28?C: This symbol, if defined, indicates that characters are a signed type.
29?C: If not defined, things declared as signed characters (and that make
30?C: use of negative values) should probably be declared as shorts instead.
31?C:.
32?H:#$d_sgndchr SIGNEDCHAR /**/
33?H:.
959f3c4c
JH
34?LINT:set d_sgndchr
35: check for signed chars
36echo " "
37echo "Checking to see if your C compiler can do signed chars..." >&4
38$cat >try.c <<'EOCP'
39int main()
40{
41 char c = 0;
42
43 c--;
44 exit(c >= 0);
45}
46EOCP
47set try
0f00356b
JH
48if eval $compile && $run ./try; then
49if $run ./try; then
959f3c4c
JH
50 val="$define"
51 echo "It certainly can."
52else
53 val="$undef"
54 echo "It can't. I'll have to make some things type short."
55fi
56set d_sgndchr
57eval $setvar
58$rm -f try*
59