This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
The #5228 wasn't quite right + fix typos.
[metaconfig.git] / U / perl / io64.U
1 ?RCS: $Id$
2 ?RCS:
3 ?RCS: Copyright (c) 1998 Jarkko Hietaniemi
4 ?RCS:
5 ?RCS: You may distribute under the terms of either the GNU General Public
6 ?RCS: License or the Artistic License, as specified in the README file.
7 ?RCS:
8 ?MAKE:d_fpos64_t d_off64_t: \
9         Inlibc Setvar Compile rm cat lseeksize fpossize
10 ?MAKE:  -pick add $@ %<
11 ?S:d_off64_t:
12 ?S:     This symbol will be defined if the C compiler supports off64_t.
13 ?S:.
14 ?S:d_fpos64_t:
15 ?S:     This symbol will be defined if the C compiler supports fpos64_t.
16 ?S:.
17 ?C:HAS_OFF64_T:
18 ?C:     This symbol will be defined if the C compiler supports off64_t.
19 ?C:.
20 ?C:HAS_FPOS64_T:
21 ?C:     This symbol will be defined if the C compiler supports fpos64_t.
22 ?C:.
23 ?H:#$d_off64_t  HAS_OFF64_T             /**/
24 ?H:#$d_fpos64_t HAS_FPOS64_T            /**/
25 ?H:.
26 ?LINT:set d_off64_t
27 ?LINT:set d_fpos64_t
28
29 : check for off64_t
30 echo " "
31 echo "Checking to see if your system supports off64_t..." >&4
32 $cat >try.c <<EOCP
33 #include <sys/types.h>
34 #include <unistd.h>
35 int main() { off64_t x = 7; }
36 EOCP
37 set try
38 if eval $compile; then
39         val="$define"
40         echo "Yes, it does."
41 else
42         val="$undef"
43         echo "No, it doesn't."
44         case "$lseeksize" in
45         8) echo "(Your off_t is 64 bits, so you could use that.)" ;;
46         esac
47 fi
48 $rm -f try.* try
49 set d_off64_t
50 eval $setvar
51
52 : check for fpos64_t
53 echo " "
54 echo "Checking to see if your system supports fpos64_t..." >&4
55 $cat >try.c <<EOCP
56 #include <stdio.h>
57 int main() { fpos64_t x x = 7; }
58 EOCP
59 set try
60 if eval $compile; then
61         val="$define"
62         echo "Yes, it does."
63 else
64         val="$undef"
65         echo "No, it doesn't."
66         case "$fpossize" in
67         8) echo "(Your fpos_t is 64 bits, so you could use that.)" ;;
68         esac
69 fi
70 $rm -f try.* try
71 set d_fpos64_t
72 eval $setvar
73