This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix .gitignore: only ignore 'perl' in root of repo, not U/perl subdir
[metaconfig.git] / U / perl / d_int64_t.U
1 ?RCS: $Id$
2 ?RCS:
3 ?RCS: Copyright (c) 1999, Jarkko Hietaniemi
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 3.0.
10 ?RCS:
11 ?MAKE:d_int64_t: Inhdr cat rm_try Setvar Compile i_inttypes
12 ?MAKE:  -pick add $@ %<
13 ?S:d_int64_t:
14 ?S:     This symbol will be defined if the C compiler supports int64_t.
15 ?S:.
16 ?C:HAS_INT64_T:
17 ?C:     This symbol will defined if the C compiler supports int64_t.
18 ?C:     Usually the <inttypes.h> needs to be included, but sometimes
19 ?C:     <sys/types.h> is enough.
20 ?C:.
21 ?H:#$d_int64_t     HAS_INT64_T               /**/
22 ?H:.
23 ?LINT:set d_int64_t
24 : check for int64_t
25 echo " "
26 echo "Checking to see if you have int64_t..." >&4
27 $cat >try.c <<EOCP
28 #include <sys/types.h>
29 #$i_inttypes I_INTTYPES
30 #ifdef I_INTTYPES
31 #include <inttypes.h>
32 #endif
33 int main() { int64_t x = 7; }
34 EOCP
35 set try
36 if eval $compile; then
37         val="$define"
38         echo "You have int64_t."
39 else
40         val="$undef"
41         echo "You do not have int64_t."
42 fi
43 $rm_try
44 set d_int64_t
45 eval $setvar
46