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_off64_t.U
CommitLineData
840deeaa
JH
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_off64_t: \
2cb64bf6 9 Inlibc Setvar Compile rm_try cat lseeksize
840deeaa
JH
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?C:HAS_OFF64_T:
15?C: This symbol will be defined if the C compiler supports off64_t.
16?C:.
17?H:#$d_off64_t HAS_OFF64_T /**/
18?H:.
19?LINT:set d_off64_t
840deeaa
JH
20: check for off64_t
21echo " "
22echo "Checking to see if you have off64_t..." >&4
23$cat >try.c <<EOCP
24#include <sys/types.h>
25#include <unistd.h>
26int main() { off64_t x = 7; }
27EOCP
28set try
29if eval $compile; then
30 val="$define"
31 echo "You have off64_t."
32else
33 val="$undef"
34 echo "You do not have off64_t."
35 case "$lseeksize" in
36 8) echo "(Your off_t is 64 bits, so you could use that.)" ;;
37 esac
38fi
2cb64bf6 39$rm_try
840deeaa
JH
40set d_off64_t
41eval $setvar
42