3 ?RCS: Copyright (c) 1999 Jarkko Hietaniemi
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.
9 ccflags_uselargefiles \
10 ldflags_uselargefiles \
11 libswanted_uselargefiles: \
12 Myread Oldconfig Setvar test lseeksize fpossize \
13 fpostype Compile echo n c cat lseektype rm run \
14 use64bitint use64bitall
15 ?MAKE: -pick add $@ %<
18 ?S: This variable conditionally defines the USE_LARGE_FILES symbol,
19 ?S: and indicates that large file interfaces should be used when
22 ?S:ccflags_uselargefiles:
23 ?S: This variable contains the compiler flags needed by large file builds
24 ?S: and added to ccflags by hints files.
26 ?S:ldflags_uselargefiles:
27 ?S: This variable contains the loader flags needed by large file builds
28 ?S: and added to ldflags by hints files.
30 ?S:libswanted_uselargefiles:
31 ?S: This variable contains the libraries needed by large file builds
32 ?S: and added to ldflags by hints files. It is a space separated list
33 ?S: of the library names without the "lib" prefix or any suffix, just
37 ?C: This symbol, if defined, indicates that large file support
38 ?C: should be used when available.
40 ?H:?%<:#ifndef USE_LARGE_FILES
41 ?H:?%<:#$uselargefiles USE_LARGE_FILES /**/
45 ?INIT:ccflags_uselargefiles=''
46 ?INIT:ldflags_uselargefiles=''
47 ?INIT:libswanted_uselargefiles=''
49 ?LINT:set uselargefiles
50 ?LINT:change lseeksize
57 # Backward compatibility (uselfs is deprecated).
62 *** Configure -Duselfs is deprecated, using -Duselargefiles instead.
64 uselargefiles="$define"
68 case "$lseeksize:$fpossize" in
71 You can have files larger than 2 gigabytes.
74 *) case "$uselargefiles" in
75 "$undef"|false|[nN]*) dflt='n' ;;
80 Perl can be built to understand large files (files larger than 2 gigabytes)
81 on some systems. To do so, Configure can be run with -Duselargefiles.
83 If this doesn't make any sense to you, just accept the default '$dflt'.
85 rp='Try to understand large files, if available?'
95 case "$uselargefiles" in
97 : Look for a hint-file generated 'call-back-unit'. If the
98 : user has specified that a large files perl is to be built,
99 : we may need to set or change some other defaults.
100 if $test -f uselargefiles.cbu; then
101 echo "Your platform has some specific hints for large file builds, using them..."
102 . ./uselargefiles.cbu
104 echo "Rechecking to see how big your file offsets are..." >&4
106 #include <sys/types.h>
110 printf("%d\n", (int)sizeof($lseektype));
115 if eval $compile_ok; then
116 lseeksize=`$run ./try`
117 $echo "Your file offsets are now $lseeksize bytes long."
121 echo "(I can't seem to compile the test program. Guessing...)"
122 rp="What is the size of your file offsets (in bytes)?"
127 *_t) zzz="$fpostype" ;;
130 $echo $n "Rechecking the size of $zzz...$c" >&4
132 #include <sys/types.h>
135 printf("%d\n", (int)sizeof($fpostype));
140 if eval $compile_ok; then
145 echo "(I can't execute the test program--guessing $fpossize.)" >&4
148 echo " $fpossize bytes." >&4
154 echo "(I can't compile the test program. Guessing...)" >&4
155 rp="What is the size of your file positions (in bytes)?"