23055
{ echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
23056
echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
23057
if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
23058
echo $ECHO_N "(cached) $ECHO_C" >&6
23060
ac_check_lib_save_LIBS=$LIBS
23061
LIBS="-lnfsidmap $LIBS"
23062
cat >conftest.$ac_ext <<_ACEOF
23065
cat confdefs.h >>conftest.$ac_ext
23066
cat >>conftest.$ac_ext <<_ACEOF
23067
/* end confdefs.h. */
23069
/* Override any GCC internal prototype to avoid an error.
23070
Use char because int might match the return type of a GCC
23071
builtin and then its argument prototype would still apply. */
23075
char nfs4_set_debug ();
23079
return nfs4_set_debug ();
23084
rm -f conftest.$ac_objext conftest$ac_exeext
23085
if { (ac_try="$ac_link"
23086
case "(($ac_try" in
23087
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088
*) ac_try_echo=$ac_try;;
23090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23091
(eval "$ac_link") 2>conftest.er1
23093
grep -v '^ *+' conftest.er1 >conftest.err
23095
cat conftest.err >&5
23096
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097
(exit $ac_status); } &&
23098
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23099
{ (case "(($ac_try" in
23100
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23101
*) ac_try_echo=$ac_try;;
23103
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23104
(eval "$ac_try") 2>&5
23106
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107
(exit $ac_status); }; } &&
23108
{ ac_try='test -s conftest$ac_exeext'
23109
{ (case "(($ac_try" in
23110
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23111
*) ac_try_echo=$ac_try;;
23113
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23114
(eval "$ac_try") 2>&5
23116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117
(exit $ac_status); }; }; then
23118
ac_cv_lib_nfsidmap_nfs4_set_debug=yes
23120
echo "$as_me: failed program was:" >&5
23121
sed 's/^/| /' conftest.$ac_ext >&5
23123
ac_cv_lib_nfsidmap_nfs4_set_debug=no
23126
rm -f conftest.err conftest.$ac_objext \
23127
conftest$ac_exeext conftest.$ac_ext
23128
LIBS=$ac_check_lib_save_LIBS
23130
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
23131
echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
23132
if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
23134
cat >>confdefs.h <<\_ACEOF
23135
#define HAVE_NFS4_SET_DEBUG 1
23052
23142
{ echo "$as_me:$LINENO: checking for Kerberos v5" >&5
30046
{ echo "$as_me:$LINENO: checking for socklen_t" >&5
30047
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
30048
if test "${ac_cv_type_socklen_t+set}" = set; then
30049
echo $ECHO_N "(cached) $ECHO_C" >&6
30051
cat >conftest.$ac_ext <<_ACEOF
30054
cat confdefs.h >>conftest.$ac_ext
30055
cat >>conftest.$ac_ext <<_ACEOF
30056
/* end confdefs.h. */
30057
$ac_includes_default
30058
typedef socklen_t ac__type_new_;
30062
if ((ac__type_new_ *) 0)
30064
if (sizeof (ac__type_new_))
30070
rm -f conftest.$ac_objext
30071
if { (ac_try="$ac_compile"
30072
case "(($ac_try" in
30073
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30074
*) ac_try_echo=$ac_try;;
30076
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30077
(eval "$ac_compile") 2>conftest.er1
30079
grep -v '^ *+' conftest.er1 >conftest.err
30081
cat conftest.err >&5
30082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30083
(exit $ac_status); } &&
30084
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30085
{ (case "(($ac_try" in
30086
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30087
*) ac_try_echo=$ac_try;;
30089
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30090
(eval "$ac_try") 2>&5
30092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30093
(exit $ac_status); }; } &&
30094
{ ac_try='test -s conftest.$ac_objext'
30095
{ (case "(($ac_try" in
30096
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30097
*) ac_try_echo=$ac_try;;
30099
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30100
(eval "$ac_try") 2>&5
30102
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30103
(exit $ac_status); }; }; then
30104
ac_cv_type_socklen_t=yes
30106
echo "$as_me: failed program was:" >&5
30107
sed 's/^/| /' conftest.$ac_ext >&5
30109
ac_cv_type_socklen_t=no
30112
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30114
{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
30115
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
30117
{ echo "$as_me:$LINENO: checking size of socklen_t" >&5
30118
echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
30119
if test "${ac_cv_sizeof_socklen_t+set}" = set; then
30120
echo $ECHO_N "(cached) $ECHO_C" >&6
30122
if test "$ac_cv_type_socklen_t" = yes; then
30123
# The cast to long int works around a bug in the HP C Compiler
30124
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30125
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30126
# This bug is HP SR number 8606223364.
30127
if test "$cross_compiling" = yes; then
30128
# Depending upon the size, compute the lo and hi bounds.
30129
cat >conftest.$ac_ext <<_ACEOF
30132
cat confdefs.h >>conftest.$ac_ext
30133
cat >>conftest.$ac_ext <<_ACEOF
30134
/* end confdefs.h. */
30135
$ac_includes_default
30136
typedef socklen_t ac__type_sizeof_;
30140
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
30147
rm -f conftest.$ac_objext
30148
if { (ac_try="$ac_compile"
30149
case "(($ac_try" in
30150
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30151
*) ac_try_echo=$ac_try;;
30153
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30154
(eval "$ac_compile") 2>conftest.er1
30156
grep -v '^ *+' conftest.er1 >conftest.err
30158
cat conftest.err >&5
30159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30160
(exit $ac_status); } &&
30161
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30162
{ (case "(($ac_try" in
30163
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30164
*) ac_try_echo=$ac_try;;
30166
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30167
(eval "$ac_try") 2>&5
30169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30170
(exit $ac_status); }; } &&
30171
{ ac_try='test -s conftest.$ac_objext'
30172
{ (case "(($ac_try" in
30173
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30174
*) ac_try_echo=$ac_try;;
30176
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30177
(eval "$ac_try") 2>&5
30179
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30180
(exit $ac_status); }; }; then
30183
cat >conftest.$ac_ext <<_ACEOF
30186
cat confdefs.h >>conftest.$ac_ext
30187
cat >>conftest.$ac_ext <<_ACEOF
30188
/* end confdefs.h. */
30189
$ac_includes_default
30190
typedef socklen_t ac__type_sizeof_;
30194
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30201
rm -f conftest.$ac_objext
30202
if { (ac_try="$ac_compile"
30203
case "(($ac_try" in
30204
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30205
*) ac_try_echo=$ac_try;;
30207
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30208
(eval "$ac_compile") 2>conftest.er1
30210
grep -v '^ *+' conftest.er1 >conftest.err
30212
cat conftest.err >&5
30213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30214
(exit $ac_status); } &&
30215
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30216
{ (case "(($ac_try" in
30217
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30218
*) ac_try_echo=$ac_try;;
30220
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30221
(eval "$ac_try") 2>&5
30223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30224
(exit $ac_status); }; } &&
30225
{ ac_try='test -s conftest.$ac_objext'
30226
{ (case "(($ac_try" in
30227
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30228
*) ac_try_echo=$ac_try;;
30230
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30231
(eval "$ac_try") 2>&5
30233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30234
(exit $ac_status); }; }; then
30235
ac_hi=$ac_mid; break
30237
echo "$as_me: failed program was:" >&5
30238
sed 's/^/| /' conftest.$ac_ext >&5
30240
ac_lo=`expr $ac_mid + 1`
30241
if test $ac_lo -le $ac_mid; then
30245
ac_mid=`expr 2 '*' $ac_mid + 1`
30248
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30251
echo "$as_me: failed program was:" >&5
30252
sed 's/^/| /' conftest.$ac_ext >&5
30254
cat >conftest.$ac_ext <<_ACEOF
30257
cat confdefs.h >>conftest.$ac_ext
30258
cat >>conftest.$ac_ext <<_ACEOF
30259
/* end confdefs.h. */
30260
$ac_includes_default
30261
typedef socklen_t ac__type_sizeof_;
30265
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
30272
rm -f conftest.$ac_objext
30273
if { (ac_try="$ac_compile"
30274
case "(($ac_try" in
30275
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30276
*) ac_try_echo=$ac_try;;
30278
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30279
(eval "$ac_compile") 2>conftest.er1
30281
grep -v '^ *+' conftest.er1 >conftest.err
30283
cat conftest.err >&5
30284
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30285
(exit $ac_status); } &&
30286
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30287
{ (case "(($ac_try" in
30288
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30289
*) ac_try_echo=$ac_try;;
30291
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30292
(eval "$ac_try") 2>&5
30294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30295
(exit $ac_status); }; } &&
30296
{ ac_try='test -s conftest.$ac_objext'
30297
{ (case "(($ac_try" in
30298
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30299
*) ac_try_echo=$ac_try;;
30301
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30302
(eval "$ac_try") 2>&5
30304
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305
(exit $ac_status); }; }; then
30308
cat >conftest.$ac_ext <<_ACEOF
30311
cat confdefs.h >>conftest.$ac_ext
30312
cat >>conftest.$ac_ext <<_ACEOF
30313
/* end confdefs.h. */
30314
$ac_includes_default
30315
typedef socklen_t ac__type_sizeof_;
30319
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
30326
rm -f conftest.$ac_objext
30327
if { (ac_try="$ac_compile"
30328
case "(($ac_try" in
30329
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30330
*) ac_try_echo=$ac_try;;
30332
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30333
(eval "$ac_compile") 2>conftest.er1
30335
grep -v '^ *+' conftest.er1 >conftest.err
30337
cat conftest.err >&5
30338
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30339
(exit $ac_status); } &&
30340
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30341
{ (case "(($ac_try" in
30342
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30343
*) ac_try_echo=$ac_try;;
30345
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30346
(eval "$ac_try") 2>&5
30348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30349
(exit $ac_status); }; } &&
30350
{ ac_try='test -s conftest.$ac_objext'
30351
{ (case "(($ac_try" in
30352
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30353
*) ac_try_echo=$ac_try;;
30355
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30356
(eval "$ac_try") 2>&5
30358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359
(exit $ac_status); }; }; then
30360
ac_lo=$ac_mid; break
30362
echo "$as_me: failed program was:" >&5
30363
sed 's/^/| /' conftest.$ac_ext >&5
30365
ac_hi=`expr '(' $ac_mid ')' - 1`
30366
if test $ac_mid -le $ac_hi; then
30370
ac_mid=`expr 2 '*' $ac_mid`
30373
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30376
echo "$as_me: failed program was:" >&5
30377
sed 's/^/| /' conftest.$ac_ext >&5
30382
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30385
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30386
# Binary search between lo and hi bounds.
30387
while test "x$ac_lo" != "x$ac_hi"; do
30388
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30389
cat >conftest.$ac_ext <<_ACEOF
30392
cat confdefs.h >>conftest.$ac_ext
30393
cat >>conftest.$ac_ext <<_ACEOF
30394
/* end confdefs.h. */
30395
$ac_includes_default
30396
typedef socklen_t ac__type_sizeof_;
30400
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30407
rm -f conftest.$ac_objext
30408
if { (ac_try="$ac_compile"
30409
case "(($ac_try" in
30410
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30411
*) ac_try_echo=$ac_try;;
30413
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30414
(eval "$ac_compile") 2>conftest.er1
30416
grep -v '^ *+' conftest.er1 >conftest.err
30418
cat conftest.err >&5
30419
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30420
(exit $ac_status); } &&
30421
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30422
{ (case "(($ac_try" in
30423
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30424
*) ac_try_echo=$ac_try;;
30426
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30427
(eval "$ac_try") 2>&5
30429
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30430
(exit $ac_status); }; } &&
30431
{ ac_try='test -s conftest.$ac_objext'
30432
{ (case "(($ac_try" in
30433
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30434
*) ac_try_echo=$ac_try;;
30436
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30437
(eval "$ac_try") 2>&5
30439
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440
(exit $ac_status); }; }; then
30443
echo "$as_me: failed program was:" >&5
30444
sed 's/^/| /' conftest.$ac_ext >&5
30446
ac_lo=`expr '(' $ac_mid ')' + 1`
30449
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30452
?*) ac_cv_sizeof_socklen_t=$ac_lo;;
30453
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
30454
See \`config.log' for more details." >&5
30455
echo "$as_me: error: cannot compute sizeof (socklen_t)
30456
See \`config.log' for more details." >&2;}
30457
{ (exit 77); exit 77; }; } ;;
30460
cat >conftest.$ac_ext <<_ACEOF
30463
cat confdefs.h >>conftest.$ac_ext
30464
cat >>conftest.$ac_ext <<_ACEOF
30465
/* end confdefs.h. */
30466
$ac_includes_default
30467
typedef socklen_t ac__type_sizeof_;
30468
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
30469
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
30471
#include <stdlib.h>
30476
FILE *f = fopen ("conftest.val", "w");
30479
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
30481
long int i = longval ();
30482
if (i != ((long int) (sizeof (ac__type_sizeof_))))
30484
fprintf (f, "%ld\n", i);
30488
unsigned long int i = ulongval ();
30489
if (i != ((long int) (sizeof (ac__type_sizeof_))))
30491
fprintf (f, "%lu\n", i);
30493
return ferror (f) || fclose (f) != 0;
30499
rm -f conftest$ac_exeext
30500
if { (ac_try="$ac_link"
30501
case "(($ac_try" in
30502
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30503
*) ac_try_echo=$ac_try;;
30505
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30506
(eval "$ac_link") 2>&5
30508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30509
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30510
{ (case "(($ac_try" in
30511
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30512
*) ac_try_echo=$ac_try;;
30514
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30515
(eval "$ac_try") 2>&5
30517
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518
(exit $ac_status); }; }; then
30519
ac_cv_sizeof_socklen_t=`cat conftest.val`
30521
echo "$as_me: program exited with status $ac_status" >&5
30522
echo "$as_me: failed program was:" >&5
30523
sed 's/^/| /' conftest.$ac_ext >&5
30525
( exit $ac_status )
30526
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
30527
See \`config.log' for more details." >&5
30528
echo "$as_me: error: cannot compute sizeof (socklen_t)
30529
See \`config.log' for more details." >&2;}
30530
{ (exit 77); exit 77; }; }
30532
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30536
ac_cv_sizeof_socklen_t=0
30539
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
30540
echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
30541
cat >>confdefs.h <<_ACEOF
30542
#define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
29946
30549
cat >>confdefs.h <<_ACEOF