33078
{ echo "$as_me:$LINENO: checking for off_t" >&5
33079
echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33080
if test "${ac_cv_type_off_t+set}" = set; then
33081
echo $ECHO_N "(cached) $ECHO_C" >&6
33083
cat >conftest.$ac_ext <<_ACEOF
33086
cat confdefs.h >>conftest.$ac_ext
33087
cat >>conftest.$ac_ext <<_ACEOF
33088
/* end confdefs.h. */
33089
$ac_includes_default
33090
typedef off_t ac__type_new_;
33094
if ((ac__type_new_ *) 0)
33096
if (sizeof (ac__type_new_))
33102
rm -f conftest.$ac_objext
33103
if { (ac_try="$ac_compile"
33104
case "(($ac_try" in
33105
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33106
*) ac_try_echo=$ac_try;;
33108
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33109
(eval "$ac_compile") 2>conftest.er1
33111
grep -v '^ *+' conftest.er1 >conftest.err
33113
cat conftest.err >&5
33114
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33115
(exit $ac_status); } && {
33116
test -z "$ac_c_werror_flag" ||
33117
test ! -s conftest.err
33118
} && test -s conftest.$ac_objext; then
33119
ac_cv_type_off_t=yes
33121
echo "$as_me: failed program was:" >&5
33122
sed 's/^/| /' conftest.$ac_ext >&5
33124
ac_cv_type_off_t=no
33127
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33129
{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33130
echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33132
# The cast to long int works around a bug in the HP C Compiler
33133
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33134
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33135
# This bug is HP SR number 8606223364.
33136
{ echo "$as_me:$LINENO: checking size of off_t" >&5
33137
echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
33138
if test "${ac_cv_sizeof_off_t+set}" = set; then
33139
echo $ECHO_N "(cached) $ECHO_C" >&6
33141
if test "$cross_compiling" = yes; then
33142
# Depending upon the size, compute the lo and hi bounds.
33143
cat >conftest.$ac_ext <<_ACEOF
33146
cat confdefs.h >>conftest.$ac_ext
33147
cat >>conftest.$ac_ext <<_ACEOF
33148
/* end confdefs.h. */
33149
$ac_includes_default
33150
typedef off_t ac__type_sizeof_;
33154
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33161
rm -f conftest.$ac_objext
33162
if { (ac_try="$ac_compile"
33163
case "(($ac_try" in
33164
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33165
*) ac_try_echo=$ac_try;;
33167
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33168
(eval "$ac_compile") 2>conftest.er1
33170
grep -v '^ *+' conftest.er1 >conftest.err
33172
cat conftest.err >&5
33173
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33174
(exit $ac_status); } && {
33175
test -z "$ac_c_werror_flag" ||
33176
test ! -s conftest.err
33177
} && test -s conftest.$ac_objext; then
33180
cat >conftest.$ac_ext <<_ACEOF
33183
cat confdefs.h >>conftest.$ac_ext
33184
cat >>conftest.$ac_ext <<_ACEOF
33185
/* end confdefs.h. */
33186
$ac_includes_default
33187
typedef off_t ac__type_sizeof_;
33191
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33198
rm -f conftest.$ac_objext
33199
if { (ac_try="$ac_compile"
33200
case "(($ac_try" in
33201
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33202
*) ac_try_echo=$ac_try;;
33204
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33205
(eval "$ac_compile") 2>conftest.er1
33207
grep -v '^ *+' conftest.er1 >conftest.err
33209
cat conftest.err >&5
33210
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33211
(exit $ac_status); } && {
33212
test -z "$ac_c_werror_flag" ||
33213
test ! -s conftest.err
33214
} && test -s conftest.$ac_objext; then
33215
ac_hi=$ac_mid; break
33217
echo "$as_me: failed program was:" >&5
33218
sed 's/^/| /' conftest.$ac_ext >&5
33220
ac_lo=`expr $ac_mid + 1`
33221
if test $ac_lo -le $ac_mid; then
33225
ac_mid=`expr 2 '*' $ac_mid + 1`
33228
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33231
echo "$as_me: failed program was:" >&5
33232
sed 's/^/| /' conftest.$ac_ext >&5
33234
cat >conftest.$ac_ext <<_ACEOF
33237
cat confdefs.h >>conftest.$ac_ext
33238
cat >>conftest.$ac_ext <<_ACEOF
33239
/* end confdefs.h. */
33240
$ac_includes_default
33241
typedef off_t ac__type_sizeof_;
33245
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33252
rm -f conftest.$ac_objext
33253
if { (ac_try="$ac_compile"
33254
case "(($ac_try" in
33255
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33256
*) ac_try_echo=$ac_try;;
33258
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33259
(eval "$ac_compile") 2>conftest.er1
33261
grep -v '^ *+' conftest.er1 >conftest.err
33263
cat conftest.err >&5
33264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33265
(exit $ac_status); } && {
33266
test -z "$ac_c_werror_flag" ||
33267
test ! -s conftest.err
33268
} && test -s conftest.$ac_objext; then
33271
cat >conftest.$ac_ext <<_ACEOF
33274
cat confdefs.h >>conftest.$ac_ext
33275
cat >>conftest.$ac_ext <<_ACEOF
33276
/* end confdefs.h. */
33277
$ac_includes_default
33278
typedef off_t ac__type_sizeof_;
33282
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33289
rm -f conftest.$ac_objext
33290
if { (ac_try="$ac_compile"
33291
case "(($ac_try" in
33292
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33293
*) ac_try_echo=$ac_try;;
33295
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33296
(eval "$ac_compile") 2>conftest.er1
33298
grep -v '^ *+' conftest.er1 >conftest.err
33300
cat conftest.err >&5
33301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33302
(exit $ac_status); } && {
33303
test -z "$ac_c_werror_flag" ||
33304
test ! -s conftest.err
33305
} && test -s conftest.$ac_objext; then
33306
ac_lo=$ac_mid; break
33308
echo "$as_me: failed program was:" >&5
33309
sed 's/^/| /' conftest.$ac_ext >&5
33311
ac_hi=`expr '(' $ac_mid ')' - 1`
33312
if test $ac_mid -le $ac_hi; then
33316
ac_mid=`expr 2 '*' $ac_mid`
33319
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33322
echo "$as_me: failed program was:" >&5
33323
sed 's/^/| /' conftest.$ac_ext >&5
33328
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33331
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33332
# Binary search between lo and hi bounds.
33333
while test "x$ac_lo" != "x$ac_hi"; do
33334
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33335
cat >conftest.$ac_ext <<_ACEOF
33338
cat confdefs.h >>conftest.$ac_ext
33339
cat >>conftest.$ac_ext <<_ACEOF
33340
/* end confdefs.h. */
33341
$ac_includes_default
33342
typedef off_t ac__type_sizeof_;
33346
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33353
rm -f conftest.$ac_objext
33354
if { (ac_try="$ac_compile"
33355
case "(($ac_try" in
33356
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33357
*) ac_try_echo=$ac_try;;
33359
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33360
(eval "$ac_compile") 2>conftest.er1
33362
grep -v '^ *+' conftest.er1 >conftest.err
33364
cat conftest.err >&5
33365
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33366
(exit $ac_status); } && {
33367
test -z "$ac_c_werror_flag" ||
33368
test ! -s conftest.err
33369
} && test -s conftest.$ac_objext; then
33372
echo "$as_me: failed program was:" >&5
33373
sed 's/^/| /' conftest.$ac_ext >&5
33375
ac_lo=`expr '(' $ac_mid ')' + 1`
33378
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33381
?*) ac_cv_sizeof_off_t=$ac_lo;;
33382
'') if test "$ac_cv_type_off_t" = yes; then
33383
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
33384
See \`config.log' for more details." >&5
33385
echo "$as_me: error: cannot compute sizeof (off_t)
33386
See \`config.log' for more details." >&2;}
33387
{ (exit 77); exit 77; }; }
33389
ac_cv_sizeof_off_t=0
33393
cat >conftest.$ac_ext <<_ACEOF
33396
cat confdefs.h >>conftest.$ac_ext
33397
cat >>conftest.$ac_ext <<_ACEOF
33398
/* end confdefs.h. */
33399
$ac_includes_default
33400
typedef off_t ac__type_sizeof_;
33401
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33402
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33404
#include <stdlib.h>
33409
FILE *f = fopen ("conftest.val", "w");
33412
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33414
long int i = longval ();
33415
if (i != ((long int) (sizeof (ac__type_sizeof_))))
33417
fprintf (f, "%ld\n", i);
33421
unsigned long int i = ulongval ();
33422
if (i != ((long int) (sizeof (ac__type_sizeof_))))
33424
fprintf (f, "%lu\n", i);
33426
return ferror (f) || fclose (f) != 0;
33432
rm -f conftest$ac_exeext
33433
if { (ac_try="$ac_link"
33434
case "(($ac_try" in
33435
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33436
*) ac_try_echo=$ac_try;;
33438
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33439
(eval "$ac_link") 2>&5
33441
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33442
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33443
{ (case "(($ac_try" in
33444
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33445
*) ac_try_echo=$ac_try;;
33447
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33448
(eval "$ac_try") 2>&5
33450
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33451
(exit $ac_status); }; }; then
33452
ac_cv_sizeof_off_t=`cat conftest.val`
33454
echo "$as_me: program exited with status $ac_status" >&5
33455
echo "$as_me: failed program was:" >&5
33456
sed 's/^/| /' conftest.$ac_ext >&5
33458
( exit $ac_status )
33459
if test "$ac_cv_type_off_t" = yes; then
33460
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
33461
See \`config.log' for more details." >&5
33462
echo "$as_me: error: cannot compute sizeof (off_t)
33463
See \`config.log' for more details." >&2;}
33464
{ (exit 77); exit 77; }; }
33466
ac_cv_sizeof_off_t=0
33469
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33473
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
33474
echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
33478
cat >>confdefs.h <<_ACEOF
33479
#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
33007
33484
{ echo "$as_me:$LINENO: checking for long long" >&5
33008
33485
echo $ECHO_N "checking for long long... $ECHO_C" >&6; }