8682
8753
version_type=none
8683
8754
dynamic_linker="$host_os ld.so"
8684
8755
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8685
8757
if test "$GCC" = yes; then
8686
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8687
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8759
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8760
*) lt_awk_arg="/^libraries:/" ;;
8762
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8763
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8688
8764
# if the path contains ";" then we assume it to be the separator
8689
8765
# otherwise default to the standard path separator (i.e. ":") - it is
8690
8766
# assumed that no part of a normal pathname contains ";" but that should
8691
8767
# okay in the real world where ";" in dirpaths is itself problematic.
8692
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8768
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8694
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8770
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8772
# Ok, now we have the path, separated by spaces, we can step through it
8773
# and add multilib dir if necessary.
8774
lt_tmp_lt_search_path_spec=
8775
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8776
for lt_sys_path in $lt_search_path_spec; do
8777
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8778
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8780
test -d "$lt_sys_path" && \
8781
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8784
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8785
BEGIN {RS=" "; FS="/|\n";} {
8788
for (lt_i = NF; lt_i > 0; lt_i--) {
8789
if ($lt_i != "" && $lt_i != ".") {
8790
if ($lt_i == "..") {
8793
if (lt_count == 0) {
8794
lt_foo="/" $lt_i lt_foo;
8801
if (lt_foo != "") { lt_freq[lt_foo]++; }
8802
if (lt_freq[lt_foo] == 1) { print lt_foo; }
8804
sys_lib_search_path_spec=`echo $lt_search_path_spec`
8697
8806
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21124
{ echo "$as_me:$LINENO: checking for void*" >&5
21125
echo $ECHO_N "checking for void*... $ECHO_C" >&6; }
21126
if test "${ac_cv_type_voidp+set}" = set; then
21127
echo $ECHO_N "(cached) $ECHO_C" >&6
21129
cat >conftest.$ac_ext <<_ACEOF
21132
cat confdefs.h >>conftest.$ac_ext
21133
cat >>conftest.$ac_ext <<_ACEOF
21134
/* end confdefs.h. */
21135
$ac_includes_default
21136
typedef void* ac__type_new_;
21140
if ((ac__type_new_ *) 0)
21142
if (sizeof (ac__type_new_))
21148
rm -f conftest.$ac_objext
21149
if { (ac_try="$ac_compile"
21150
case "(($ac_try" in
21151
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152
*) ac_try_echo=$ac_try;;
21154
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21155
(eval "$ac_compile") 2>conftest.er1
21157
grep -v '^ *+' conftest.er1 >conftest.err
21159
cat conftest.err >&5
21160
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161
(exit $ac_status); } && {
21162
test -z "$ac_c_werror_flag" ||
21163
test ! -s conftest.err
21164
} && test -s conftest.$ac_objext; then
21165
ac_cv_type_voidp=yes
21167
echo "$as_me: failed program was:" >&5
21168
sed 's/^/| /' conftest.$ac_ext >&5
21170
ac_cv_type_voidp=no
21173
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21175
{ echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
21176
echo "${ECHO_T}$ac_cv_type_voidp" >&6; }
21178
# The cast to long int works around a bug in the HP C Compiler
21179
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21180
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21181
# This bug is HP SR number 8606223364.
21182
{ echo "$as_me:$LINENO: checking size of void*" >&5
21183
echo $ECHO_N "checking size of void*... $ECHO_C" >&6; }
21184
if test "${ac_cv_sizeof_voidp+set}" = set; then
21185
echo $ECHO_N "(cached) $ECHO_C" >&6
21187
if test "$cross_compiling" = yes; then
21188
# Depending upon the size, compute the lo and hi bounds.
21189
cat >conftest.$ac_ext <<_ACEOF
21192
cat confdefs.h >>conftest.$ac_ext
21193
cat >>conftest.$ac_ext <<_ACEOF
21194
/* end confdefs.h. */
21195
$ac_includes_default
21196
typedef void* ac__type_sizeof_;
21200
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21207
rm -f conftest.$ac_objext
21208
if { (ac_try="$ac_compile"
21209
case "(($ac_try" in
21210
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21211
*) ac_try_echo=$ac_try;;
21213
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21214
(eval "$ac_compile") 2>conftest.er1
21216
grep -v '^ *+' conftest.er1 >conftest.err
21218
cat conftest.err >&5
21219
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220
(exit $ac_status); } && {
21221
test -z "$ac_c_werror_flag" ||
21222
test ! -s conftest.err
21223
} && test -s conftest.$ac_objext; then
21226
cat >conftest.$ac_ext <<_ACEOF
21229
cat confdefs.h >>conftest.$ac_ext
21230
cat >>conftest.$ac_ext <<_ACEOF
21231
/* end confdefs.h. */
21232
$ac_includes_default
21233
typedef void* ac__type_sizeof_;
21237
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21244
rm -f conftest.$ac_objext
21245
if { (ac_try="$ac_compile"
21246
case "(($ac_try" in
21247
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21248
*) ac_try_echo=$ac_try;;
21250
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21251
(eval "$ac_compile") 2>conftest.er1
21253
grep -v '^ *+' conftest.er1 >conftest.err
21255
cat conftest.err >&5
21256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257
(exit $ac_status); } && {
21258
test -z "$ac_c_werror_flag" ||
21259
test ! -s conftest.err
21260
} && test -s conftest.$ac_objext; then
21261
ac_hi=$ac_mid; break
21263
echo "$as_me: failed program was:" >&5
21264
sed 's/^/| /' conftest.$ac_ext >&5
21266
ac_lo=`expr $ac_mid + 1`
21267
if test $ac_lo -le $ac_mid; then
21271
ac_mid=`expr 2 '*' $ac_mid + 1`
21274
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21277
echo "$as_me: failed program was:" >&5
21278
sed 's/^/| /' conftest.$ac_ext >&5
21280
cat >conftest.$ac_ext <<_ACEOF
21283
cat confdefs.h >>conftest.$ac_ext
21284
cat >>conftest.$ac_ext <<_ACEOF
21285
/* end confdefs.h. */
21286
$ac_includes_default
21287
typedef void* ac__type_sizeof_;
21291
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21298
rm -f conftest.$ac_objext
21299
if { (ac_try="$ac_compile"
21300
case "(($ac_try" in
21301
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302
*) ac_try_echo=$ac_try;;
21304
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21305
(eval "$ac_compile") 2>conftest.er1
21307
grep -v '^ *+' conftest.er1 >conftest.err
21309
cat conftest.err >&5
21310
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311
(exit $ac_status); } && {
21312
test -z "$ac_c_werror_flag" ||
21313
test ! -s conftest.err
21314
} && test -s conftest.$ac_objext; then
21317
cat >conftest.$ac_ext <<_ACEOF
21320
cat confdefs.h >>conftest.$ac_ext
21321
cat >>conftest.$ac_ext <<_ACEOF
21322
/* end confdefs.h. */
21323
$ac_includes_default
21324
typedef void* ac__type_sizeof_;
21328
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21335
rm -f conftest.$ac_objext
21336
if { (ac_try="$ac_compile"
21337
case "(($ac_try" in
21338
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339
*) ac_try_echo=$ac_try;;
21341
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21342
(eval "$ac_compile") 2>conftest.er1
21344
grep -v '^ *+' conftest.er1 >conftest.err
21346
cat conftest.err >&5
21347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348
(exit $ac_status); } && {
21349
test -z "$ac_c_werror_flag" ||
21350
test ! -s conftest.err
21351
} && test -s conftest.$ac_objext; then
21352
ac_lo=$ac_mid; break
21354
echo "$as_me: failed program was:" >&5
21355
sed 's/^/| /' conftest.$ac_ext >&5
21357
ac_hi=`expr '(' $ac_mid ')' - 1`
21358
if test $ac_mid -le $ac_hi; then
21362
ac_mid=`expr 2 '*' $ac_mid`
21365
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21368
echo "$as_me: failed program was:" >&5
21369
sed 's/^/| /' conftest.$ac_ext >&5
21374
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21377
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21378
# Binary search between lo and hi bounds.
21379
while test "x$ac_lo" != "x$ac_hi"; do
21380
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21381
cat >conftest.$ac_ext <<_ACEOF
21384
cat confdefs.h >>conftest.$ac_ext
21385
cat >>conftest.$ac_ext <<_ACEOF
21386
/* end confdefs.h. */
21387
$ac_includes_default
21388
typedef void* ac__type_sizeof_;
21392
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21399
rm -f conftest.$ac_objext
21400
if { (ac_try="$ac_compile"
21401
case "(($ac_try" in
21402
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21403
*) ac_try_echo=$ac_try;;
21405
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21406
(eval "$ac_compile") 2>conftest.er1
21408
grep -v '^ *+' conftest.er1 >conftest.err
21410
cat conftest.err >&5
21411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412
(exit $ac_status); } && {
21413
test -z "$ac_c_werror_flag" ||
21414
test ! -s conftest.err
21415
} && test -s conftest.$ac_objext; then
21418
echo "$as_me: failed program was:" >&5
21419
sed 's/^/| /' conftest.$ac_ext >&5
21421
ac_lo=`expr '(' $ac_mid ')' + 1`
21424
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21427
?*) ac_cv_sizeof_voidp=$ac_lo;;
21428
'') if test "$ac_cv_type_voidp" = yes; then
21429
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
21430
See \`config.log' for more details." >&5
21431
echo "$as_me: error: cannot compute sizeof (void*)
21432
See \`config.log' for more details." >&2;}
21433
{ (exit 77); exit 77; }; }
21435
ac_cv_sizeof_voidp=0
21439
cat >conftest.$ac_ext <<_ACEOF
21442
cat confdefs.h >>conftest.$ac_ext
21443
cat >>conftest.$ac_ext <<_ACEOF
21444
/* end confdefs.h. */
21445
$ac_includes_default
21446
typedef void* ac__type_sizeof_;
21447
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21448
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21450
#include <stdlib.h>
21455
FILE *f = fopen ("conftest.val", "w");
21458
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21460
long int i = longval ();
21461
if (i != ((long int) (sizeof (ac__type_sizeof_))))
21463
fprintf (f, "%ld\n", i);
21467
unsigned long int i = ulongval ();
21468
if (i != ((long int) (sizeof (ac__type_sizeof_))))
21470
fprintf (f, "%lu\n", i);
21472
return ferror (f) || fclose (f) != 0;
21478
rm -f conftest$ac_exeext
21479
if { (ac_try="$ac_link"
21480
case "(($ac_try" in
21481
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21482
*) ac_try_echo=$ac_try;;
21484
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21485
(eval "$ac_link") 2>&5
21487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21489
{ (case "(($ac_try" in
21490
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21491
*) ac_try_echo=$ac_try;;
21493
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21494
(eval "$ac_try") 2>&5
21496
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497
(exit $ac_status); }; }; then
21498
ac_cv_sizeof_voidp=`cat conftest.val`
21500
echo "$as_me: program exited with status $ac_status" >&5
21501
echo "$as_me: failed program was:" >&5
21502
sed 's/^/| /' conftest.$ac_ext >&5
21504
( exit $ac_status )
21505
if test "$ac_cv_type_voidp" = yes; then
21506
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
21507
See \`config.log' for more details." >&5
21508
echo "$as_me: error: cannot compute sizeof (void*)
21509
See \`config.log' for more details." >&2;}
21510
{ (exit 77); exit 77; }; }
21512
ac_cv_sizeof_voidp=0
21515
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21519
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
21520
echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6; }
21524
cat >>confdefs.h <<_ACEOF
21525
#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
21037
21529
# Find a good install program. We prefer a C program (faster),
21038
21530
# so one script is as good as another. But avoid the broken or
21039
21531
# incompatible versions:
22563
# Check whether --enable-largefile was given.
22564
if test "${enable_largefile+set}" = set; then
22565
enableval=$enable_largefile;
22568
if test "$enable_largefile" != no; then
22570
{ echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
22571
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
22572
if test "${ac_cv_sys_largefile_CC+set}" = set; then
22573
echo $ECHO_N "(cached) $ECHO_C" >&6
22575
ac_cv_sys_largefile_CC=no
22576
if test "$GCC" != yes; then
22579
# IRIX 6.2 and later do not support large files by default,
22580
# so use the C compiler's -n32 option if that helps.
22581
cat >conftest.$ac_ext <<_ACEOF
22584
cat confdefs.h >>conftest.$ac_ext
22585
cat >>conftest.$ac_ext <<_ACEOF
22586
/* end confdefs.h. */
22587
#include <sys/types.h>
22588
/* Check that off_t can represent 2**63 - 1 correctly.
22589
We can't simply define LARGE_OFF_T to be 9223372036854775807,
22590
since some C++ compilers masquerading as C compilers
22591
incorrectly reject 9223372036854775807. */
22592
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22593
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22594
&& LARGE_OFF_T % 2147483647 == 1)
22604
rm -f conftest.$ac_objext
22605
if { (ac_try="$ac_compile"
22606
case "(($ac_try" in
22607
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22608
*) ac_try_echo=$ac_try;;
22610
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22611
(eval "$ac_compile") 2>conftest.er1
22613
grep -v '^ *+' conftest.er1 >conftest.err
22615
cat conftest.err >&5
22616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617
(exit $ac_status); } && {
22618
test -z "$ac_c_werror_flag" ||
22619
test ! -s conftest.err
22620
} && test -s conftest.$ac_objext; then
22623
echo "$as_me: failed program was:" >&5
22624
sed 's/^/| /' conftest.$ac_ext >&5
22629
rm -f core conftest.err conftest.$ac_objext
22631
rm -f conftest.$ac_objext
22632
if { (ac_try="$ac_compile"
22633
case "(($ac_try" in
22634
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22635
*) ac_try_echo=$ac_try;;
22637
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22638
(eval "$ac_compile") 2>conftest.er1
22640
grep -v '^ *+' conftest.er1 >conftest.err
22642
cat conftest.err >&5
22643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644
(exit $ac_status); } && {
22645
test -z "$ac_c_werror_flag" ||
22646
test ! -s conftest.err
22647
} && test -s conftest.$ac_objext; then
22648
ac_cv_sys_largefile_CC=' -n32'; break
22650
echo "$as_me: failed program was:" >&5
22651
sed 's/^/| /' conftest.$ac_ext >&5
22656
rm -f core conftest.err conftest.$ac_objext
22660
rm -f conftest.$ac_ext
22663
{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
22664
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
22665
if test "$ac_cv_sys_largefile_CC" != no; then
22666
CC=$CC$ac_cv_sys_largefile_CC
22669
{ echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22670
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
22671
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22672
echo $ECHO_N "(cached) $ECHO_C" >&6
22675
cat >conftest.$ac_ext <<_ACEOF
22678
cat confdefs.h >>conftest.$ac_ext
22679
cat >>conftest.$ac_ext <<_ACEOF
22680
/* end confdefs.h. */
22681
#include <sys/types.h>
22682
/* Check that off_t can represent 2**63 - 1 correctly.
22683
We can't simply define LARGE_OFF_T to be 9223372036854775807,
22684
since some C++ compilers masquerading as C compilers
22685
incorrectly reject 9223372036854775807. */
22686
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22687
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22688
&& LARGE_OFF_T % 2147483647 == 1)
22698
rm -f conftest.$ac_objext
22699
if { (ac_try="$ac_compile"
22700
case "(($ac_try" in
22701
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22702
*) ac_try_echo=$ac_try;;
22704
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22705
(eval "$ac_compile") 2>conftest.er1
22707
grep -v '^ *+' conftest.er1 >conftest.err
22709
cat conftest.err >&5
22710
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711
(exit $ac_status); } && {
22712
test -z "$ac_c_werror_flag" ||
22713
test ! -s conftest.err
22714
} && test -s conftest.$ac_objext; then
22715
ac_cv_sys_file_offset_bits=no; break
22717
echo "$as_me: failed program was:" >&5
22718
sed 's/^/| /' conftest.$ac_ext >&5
22723
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22724
cat >conftest.$ac_ext <<_ACEOF
22727
cat confdefs.h >>conftest.$ac_ext
22728
cat >>conftest.$ac_ext <<_ACEOF
22729
/* end confdefs.h. */
22730
#define _FILE_OFFSET_BITS 64
22731
#include <sys/types.h>
22732
/* Check that off_t can represent 2**63 - 1 correctly.
22733
We can't simply define LARGE_OFF_T to be 9223372036854775807,
22734
since some C++ compilers masquerading as C compilers
22735
incorrectly reject 9223372036854775807. */
22736
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22737
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22738
&& LARGE_OFF_T % 2147483647 == 1)
22748
rm -f conftest.$ac_objext
22749
if { (ac_try="$ac_compile"
22750
case "(($ac_try" in
22751
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22752
*) ac_try_echo=$ac_try;;
22754
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22755
(eval "$ac_compile") 2>conftest.er1
22757
grep -v '^ *+' conftest.er1 >conftest.err
22759
cat conftest.err >&5
22760
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761
(exit $ac_status); } && {
22762
test -z "$ac_c_werror_flag" ||
22763
test ! -s conftest.err
22764
} && test -s conftest.$ac_objext; then
22765
ac_cv_sys_file_offset_bits=64; break
22767
echo "$as_me: failed program was:" >&5
22768
sed 's/^/| /' conftest.$ac_ext >&5
22773
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22774
ac_cv_sys_file_offset_bits=unknown
22778
{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22779
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
22780
case $ac_cv_sys_file_offset_bits in #(
22783
cat >>confdefs.h <<_ACEOF
22784
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22789
if test $ac_cv_sys_file_offset_bits = unknown; then
22790
{ echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22791
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
22792
if test "${ac_cv_sys_large_files+set}" = set; then
22793
echo $ECHO_N "(cached) $ECHO_C" >&6
22796
cat >conftest.$ac_ext <<_ACEOF
22799
cat confdefs.h >>conftest.$ac_ext
22800
cat >>conftest.$ac_ext <<_ACEOF
22801
/* end confdefs.h. */
22802
#include <sys/types.h>
22803
/* Check that off_t can represent 2**63 - 1 correctly.
22804
We can't simply define LARGE_OFF_T to be 9223372036854775807,
22805
since some C++ compilers masquerading as C compilers
22806
incorrectly reject 9223372036854775807. */
22807
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22808
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22809
&& LARGE_OFF_T % 2147483647 == 1)
22819
rm -f conftest.$ac_objext
22820
if { (ac_try="$ac_compile"
22821
case "(($ac_try" in
22822
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22823
*) ac_try_echo=$ac_try;;
22825
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22826
(eval "$ac_compile") 2>conftest.er1
22828
grep -v '^ *+' conftest.er1 >conftest.err
22830
cat conftest.err >&5
22831
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832
(exit $ac_status); } && {
22833
test -z "$ac_c_werror_flag" ||
22834
test ! -s conftest.err
22835
} && test -s conftest.$ac_objext; then
22836
ac_cv_sys_large_files=no; break
22838
echo "$as_me: failed program was:" >&5
22839
sed 's/^/| /' conftest.$ac_ext >&5
22844
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22845
cat >conftest.$ac_ext <<_ACEOF
22848
cat confdefs.h >>conftest.$ac_ext
22849
cat >>conftest.$ac_ext <<_ACEOF
22850
/* end confdefs.h. */
22851
#define _LARGE_FILES 1
22852
#include <sys/types.h>
22853
/* Check that off_t can represent 2**63 - 1 correctly.
22854
We can't simply define LARGE_OFF_T to be 9223372036854775807,
22855
since some C++ compilers masquerading as C compilers
22856
incorrectly reject 9223372036854775807. */
22857
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22858
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22859
&& LARGE_OFF_T % 2147483647 == 1)
22869
rm -f conftest.$ac_objext
22870
if { (ac_try="$ac_compile"
22871
case "(($ac_try" in
22872
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22873
*) ac_try_echo=$ac_try;;
22875
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22876
(eval "$ac_compile") 2>conftest.er1
22878
grep -v '^ *+' conftest.er1 >conftest.err
22880
cat conftest.err >&5
22881
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882
(exit $ac_status); } && {
22883
test -z "$ac_c_werror_flag" ||
22884
test ! -s conftest.err
22885
} && test -s conftest.$ac_objext; then
22886
ac_cv_sys_large_files=1; break
22888
echo "$as_me: failed program was:" >&5
22889
sed 's/^/| /' conftest.$ac_ext >&5
22894
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22895
ac_cv_sys_large_files=unknown
22899
{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22900
echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
22901
case $ac_cv_sys_large_files in #(
22904
cat >>confdefs.h <<_ACEOF
22905
#define _LARGE_FILES $ac_cv_sys_large_files
22072
22915
{ echo "$as_me:$LINENO: checking how to copy va_list" >&5
22073
22916
echo $ECHO_N "checking how to copy va_list... $ECHO_C" >&6; }