3823
for ac_header in kerberosIV/krb.h
2938
# Check whether --with-kerberos or --without-kerberos was given.
2939
if test "${with_kerberos+set}" = set; then
2940
withval="$with_kerberos"
2941
if test x"$withval" != xno ; then
2946
reduce_depends=false
2947
# Check whether --enable-reduced-depends or --disable-reduced-depends was given.
2948
if test "${enable_reduced_depends+set}" = set; then
2949
enableval="$enable_reduced_depends"
2950
if test x"$enableval" = xyes ; then
2951
if test x"$KRBROOT" != x ; then
2952
if test x"$KRBROOT" != x/usr ; then
2953
CPPFLAGS="-I$KRBROOT/include"
2955
LDFLAGS="$LDFLAGS -L$KRBROOT/lib"
2958
gssapi) echo "$as_me:$LINENO: checking for gss_import_name in -lgssapi" >&5
2959
echo $ECHO_N "checking for gss_import_name in -lgssapi... $ECHO_C" >&6
2960
if test "${ac_cv_lib_gssapi_gss_import_name+set}" = set; then
2961
echo $ECHO_N "(cached) $ECHO_C" >&6
2963
ac_check_lib_save_LIBS=$LIBS
2964
LIBS="-lgssapi $LIBS"
2965
cat >conftest.$ac_ext <<_ACEOF
2968
cat confdefs.h >>conftest.$ac_ext
2969
cat >>conftest.$ac_ext <<_ACEOF
2970
/* end confdefs.h. */
2972
/* Override any gcc2 internal prototype to avoid an error. */
2976
/* We use char because int might match the return type of a gcc2
2977
builtin and then its argument prototype would still apply. */
2978
char gss_import_name ();
2987
rm -f conftest.$ac_objext conftest$ac_exeext
2988
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2989
(eval $ac_link) 2>conftest.er1
2991
grep -v '^ *+' conftest.er1 >conftest.err
2993
cat conftest.err >&5
2994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995
(exit $ac_status); } &&
2996
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2997
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001
(exit $ac_status); }; } &&
3002
{ ac_try='test -s conftest$ac_exeext'
3003
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007
(exit $ac_status); }; }; then
3008
ac_cv_lib_gssapi_gss_import_name=yes
3010
echo "$as_me: failed program was:" >&5
3011
sed 's/^/| /' conftest.$ac_ext >&5
3013
ac_cv_lib_gssapi_gss_import_name=no
3015
rm -f conftest.err conftest.$ac_objext \
3016
conftest$ac_exeext conftest.$ac_ext
3017
LIBS=$ac_check_lib_save_LIBS
3019
echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_import_name" >&5
3020
echo "${ECHO_T}$ac_cv_lib_gssapi_gss_import_name" >&6
3021
if test $ac_cv_lib_gssapi_gss_import_name = yes; then
3024
echo "$as_me:$LINENO: checking for gss_import_name in -lgssapi_krb5" >&5
3025
echo $ECHO_N "checking for gss_import_name in -lgssapi_krb5... $ECHO_C" >&6
3026
if test "${ac_cv_lib_gssapi_krb5_gss_import_name+set}" = set; then
3027
echo $ECHO_N "(cached) $ECHO_C" >&6
3029
ac_check_lib_save_LIBS=$LIBS
3030
LIBS="-lgssapi_krb5 $LIBS"
3031
cat >conftest.$ac_ext <<_ACEOF
3034
cat confdefs.h >>conftest.$ac_ext
3035
cat >>conftest.$ac_ext <<_ACEOF
3036
/* end confdefs.h. */
3038
/* Override any gcc2 internal prototype to avoid an error. */
3042
/* We use char because int might match the return type of a gcc2
3043
builtin and then its argument prototype would still apply. */
3044
char gss_import_name ();
3053
rm -f conftest.$ac_objext conftest$ac_exeext
3054
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3055
(eval $ac_link) 2>conftest.er1
3057
grep -v '^ *+' conftest.er1 >conftest.err
3059
cat conftest.err >&5
3060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061
(exit $ac_status); } &&
3062
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3063
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067
(exit $ac_status); }; } &&
3068
{ ac_try='test -s conftest$ac_exeext'
3069
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073
(exit $ac_status); }; }; then
3074
ac_cv_lib_gssapi_krb5_gss_import_name=yes
3076
echo "$as_me: failed program was:" >&5
3077
sed 's/^/| /' conftest.$ac_ext >&5
3079
ac_cv_lib_gssapi_krb5_gss_import_name=no
3081
rm -f conftest.err conftest.$ac_objext \
3082
conftest$ac_exeext conftest.$ac_ext
3083
LIBS=$ac_check_lib_save_LIBS
3085
echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_import_name" >&5
3086
echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_import_name" >&6
3087
if test $ac_cv_lib_gssapi_krb5_gss_import_name = yes; then
3088
KRBLIBS="-lgssapi_krb5"
3090
{ { echo "$as_me:$LINENO: error: cannot find usable GSSAPI library" >&5
3091
echo "$as_me: error: cannot find usable GSSAPI library" >&2;}
3092
{ (exit 1); exit 1; }; }
3097
krb5) echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
3098
echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
3099
if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
3100
echo $ECHO_N "(cached) $ECHO_C" >&6
3102
ac_check_lib_save_LIBS=$LIBS
3104
cat >conftest.$ac_ext <<_ACEOF
3107
cat confdefs.h >>conftest.$ac_ext
3108
cat >>conftest.$ac_ext <<_ACEOF
3109
/* end confdefs.h. */
3111
/* Override any gcc2 internal prototype to avoid an error. */
3115
/* We use char because int might match the return type of a gcc2
3116
builtin and then its argument prototype would still apply. */
3117
char krb5_init_context ();
3121
krb5_init_context ();
3126
rm -f conftest.$ac_objext conftest$ac_exeext
3127
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3128
(eval $ac_link) 2>conftest.er1
3130
grep -v '^ *+' conftest.er1 >conftest.err
3132
cat conftest.err >&5
3133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134
(exit $ac_status); } &&
3135
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3136
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140
(exit $ac_status); }; } &&
3141
{ ac_try='test -s conftest$ac_exeext'
3142
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146
(exit $ac_status); }; }; then
3147
ac_cv_lib_krb5_krb5_init_context=yes
3149
echo "$as_me: failed program was:" >&5
3150
sed 's/^/| /' conftest.$ac_ext >&5
3152
ac_cv_lib_krb5_krb5_init_context=no
3154
rm -f conftest.err conftest.$ac_objext \
3155
conftest$ac_exeext conftest.$ac_ext
3156
LIBS=$ac_check_lib_save_LIBS
3158
echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
3159
echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
3160
if test $ac_cv_lib_krb5_krb5_init_context = yes; then
3163
{ { echo "$as_me:$LINENO: error: cannot find usable Kerberos v5 library" >&5
3164
echo "$as_me: error: cannot find usable Kerberos v5 library" >&2;}
3165
{ (exit 1); exit 1; }; }
3168
echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
3169
echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
3170
if test "${ac_cv_lib_com_err_com_err+set}" = set; then
3171
echo $ECHO_N "(cached) $ECHO_C" >&6
3173
ac_check_lib_save_LIBS=$LIBS
3174
LIBS="-lcom_err $LIBS"
3175
cat >conftest.$ac_ext <<_ACEOF
3178
cat confdefs.h >>conftest.$ac_ext
3179
cat >>conftest.$ac_ext <<_ACEOF
3180
/* end confdefs.h. */
3182
/* Override any gcc2 internal prototype to avoid an error. */
3186
/* We use char because int might match the return type of a gcc2
3187
builtin and then its argument prototype would still apply. */
3197
rm -f conftest.$ac_objext conftest$ac_exeext
3198
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3199
(eval $ac_link) 2>conftest.er1
3201
grep -v '^ *+' conftest.er1 >conftest.err
3203
cat conftest.err >&5
3204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205
(exit $ac_status); } &&
3206
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3207
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211
(exit $ac_status); }; } &&
3212
{ ac_try='test -s conftest$ac_exeext'
3213
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217
(exit $ac_status); }; }; then
3218
ac_cv_lib_com_err_com_err=yes
3220
echo "$as_me: failed program was:" >&5
3221
sed 's/^/| /' conftest.$ac_ext >&5
3223
ac_cv_lib_com_err_com_err=no
3225
rm -f conftest.err conftest.$ac_objext \
3226
conftest$ac_exeext conftest.$ac_ext
3227
LIBS=$ac_check_lib_save_LIBS
3229
echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
3230
echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
3231
if test $ac_cv_lib_com_err_com_err = yes; then
3232
KRBLIBS="$KRBLIBS -lcom_err"
3234
{ { echo "$as_me:$LINENO: error: cannot find usable com_err library" >&5
3235
echo "$as_me: error: cannot find usable com_err library" >&2;}
3236
{ (exit 1); exit 1; }; }
3239
krb4) echo "$as_me:$LINENO: checking for krb_get_svc_in_tkt in -lkrb4" >&5
3240
echo $ECHO_N "checking for krb_get_svc_in_tkt in -lkrb4... $ECHO_C" >&6
3241
if test "${ac_cv_lib_krb4_krb_get_svc_in_tkt+set}" = set; then
3242
echo $ECHO_N "(cached) $ECHO_C" >&6
3244
ac_check_lib_save_LIBS=$LIBS
3246
cat >conftest.$ac_ext <<_ACEOF
3249
cat confdefs.h >>conftest.$ac_ext
3250
cat >>conftest.$ac_ext <<_ACEOF
3251
/* end confdefs.h. */
3253
/* Override any gcc2 internal prototype to avoid an error. */
3257
/* We use char because int might match the return type of a gcc2
3258
builtin and then its argument prototype would still apply. */
3259
char krb_get_svc_in_tkt ();
3263
krb_get_svc_in_tkt ();
3268
rm -f conftest.$ac_objext conftest$ac_exeext
3269
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3270
(eval $ac_link) 2>conftest.er1
3272
grep -v '^ *+' conftest.er1 >conftest.err
3274
cat conftest.err >&5
3275
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276
(exit $ac_status); } &&
3277
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3278
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3281
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282
(exit $ac_status); }; } &&
3283
{ ac_try='test -s conftest$ac_exeext'
3284
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288
(exit $ac_status); }; }; then
3289
ac_cv_lib_krb4_krb_get_svc_in_tkt=yes
3291
echo "$as_me: failed program was:" >&5
3292
sed 's/^/| /' conftest.$ac_ext >&5
3294
ac_cv_lib_krb4_krb_get_svc_in_tkt=no
3296
rm -f conftest.err conftest.$ac_objext \
3297
conftest$ac_exeext conftest.$ac_ext
3298
LIBS=$ac_check_lib_save_LIBS
3300
echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_svc_in_tkt" >&5
3301
echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_svc_in_tkt" >&6
3302
if test $ac_cv_lib_krb4_krb_get_svc_in_tkt = yes; then
3305
echo "$as_me:$LINENO: checking for krb_get_svc_in_tkt in -lkrb" >&5
3306
echo $ECHO_N "checking for krb_get_svc_in_tkt in -lkrb... $ECHO_C" >&6
3307
if test "${ac_cv_lib_krb_krb_get_svc_in_tkt+set}" = set; then
3308
echo $ECHO_N "(cached) $ECHO_C" >&6
3310
ac_check_lib_save_LIBS=$LIBS
3312
cat >conftest.$ac_ext <<_ACEOF
3315
cat confdefs.h >>conftest.$ac_ext
3316
cat >>conftest.$ac_ext <<_ACEOF
3317
/* end confdefs.h. */
3319
/* Override any gcc2 internal prototype to avoid an error. */
3323
/* We use char because int might match the return type of a gcc2
3324
builtin and then its argument prototype would still apply. */
3325
char krb_get_svc_in_tkt ();
3329
krb_get_svc_in_tkt ();
3334
rm -f conftest.$ac_objext conftest$ac_exeext
3335
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3336
(eval $ac_link) 2>conftest.er1
3338
grep -v '^ *+' conftest.er1 >conftest.err
3340
cat conftest.err >&5
3341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342
(exit $ac_status); } &&
3343
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3344
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348
(exit $ac_status); }; } &&
3349
{ ac_try='test -s conftest$ac_exeext'
3350
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354
(exit $ac_status); }; }; then
3355
ac_cv_lib_krb_krb_get_svc_in_tkt=yes
3357
echo "$as_me: failed program was:" >&5
3358
sed 's/^/| /' conftest.$ac_ext >&5
3360
ac_cv_lib_krb_krb_get_svc_in_tkt=no
3362
rm -f conftest.err conftest.$ac_objext \
3363
conftest$ac_exeext conftest.$ac_ext
3364
LIBS=$ac_check_lib_save_LIBS
3366
echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_svc_in_tkt" >&5
3367
echo "${ECHO_T}$ac_cv_lib_krb_krb_get_svc_in_tkt" >&6
3368
if test $ac_cv_lib_krb_krb_get_svc_in_tkt = yes; then
3371
{ { echo "$as_me:$LINENO: error: cannot find usable Kerberos v4 library" >&5
3372
echo "$as_me: error: cannot find usable Kerberos v4 library" >&2;}
3373
{ (exit 1); exit 1; }; }
3378
*) { { echo "$as_me:$LINENO: error: BUG: unknown library type krb5" >&5
3379
echo "$as_me: error: BUG: unknown library type krb5" >&2;}
3380
{ (exit 1); exit 1; }; } ;;
3387
# Check whether --enable-static or --disable-static was given.
3388
if test "${enable_static+set}" = set; then
3389
enableval="$enable_static"
3390
if test x"$enableval" = xyes ; then
3391
if test x"$reduce_depends" = xtrue ; then
3392
{ { echo "$as_me:$LINENO: error: --enable-static cannot be used with --enable-reduced-depends" >&5
3393
echo "$as_me: error: --enable-static cannot be used with --enable-reduced-depends" >&2;}
3394
{ (exit 1); exit 1; }; }
3400
if test x"$reduce_depends" != xtrue ; then
3401
if test x"true" = xtrue ; then
3402
echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
3403
echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
3404
if test "${ac_cv_search_gethostbyname+set}" = set; then
3405
echo $ECHO_N "(cached) $ECHO_C" >&6
3407
ac_func_search_save_LIBS=$LIBS
3408
ac_cv_search_gethostbyname=no
3409
cat >conftest.$ac_ext <<_ACEOF
3412
cat confdefs.h >>conftest.$ac_ext
3413
cat >>conftest.$ac_ext <<_ACEOF
3414
/* end confdefs.h. */
3416
/* Override any gcc2 internal prototype to avoid an error. */
3420
/* We use char because int might match the return type of a gcc2
3421
builtin and then its argument prototype would still apply. */
3422
char gethostbyname ();
3431
rm -f conftest.$ac_objext conftest$ac_exeext
3432
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3433
(eval $ac_link) 2>conftest.er1
3435
grep -v '^ *+' conftest.er1 >conftest.err
3437
cat conftest.err >&5
3438
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439
(exit $ac_status); } &&
3440
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3441
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445
(exit $ac_status); }; } &&
3446
{ ac_try='test -s conftest$ac_exeext'
3447
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451
(exit $ac_status); }; }; then
3452
ac_cv_search_gethostbyname="none required"
3454
echo "$as_me: failed program was:" >&5
3455
sed 's/^/| /' conftest.$ac_ext >&5
3458
rm -f conftest.err conftest.$ac_objext \
3459
conftest$ac_exeext conftest.$ac_ext
3460
if test "$ac_cv_search_gethostbyname" = no; then
3461
for ac_lib in nsl; do
3462
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3463
cat >conftest.$ac_ext <<_ACEOF
3466
cat confdefs.h >>conftest.$ac_ext
3467
cat >>conftest.$ac_ext <<_ACEOF
3468
/* end confdefs.h. */
3470
/* Override any gcc2 internal prototype to avoid an error. */
3474
/* We use char because int might match the return type of a gcc2
3475
builtin and then its argument prototype would still apply. */
3476
char gethostbyname ();
3485
rm -f conftest.$ac_objext conftest$ac_exeext
3486
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3487
(eval $ac_link) 2>conftest.er1
3489
grep -v '^ *+' conftest.er1 >conftest.err
3491
cat conftest.err >&5
3492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493
(exit $ac_status); } &&
3494
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3495
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499
(exit $ac_status); }; } &&
3500
{ ac_try='test -s conftest$ac_exeext'
3501
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505
(exit $ac_status); }; }; then
3506
ac_cv_search_gethostbyname="-l$ac_lib"
3509
echo "$as_me: failed program was:" >&5
3510
sed 's/^/| /' conftest.$ac_ext >&5
3513
rm -f conftest.err conftest.$ac_objext \
3514
conftest$ac_exeext conftest.$ac_ext
3517
LIBS=$ac_func_search_save_LIBS
3519
echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
3520
echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
3521
if test "$ac_cv_search_gethostbyname" != no; then
3522
test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
3526
echo "$as_me:$LINENO: checking for library containing socket" >&5
3527
echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
3528
if test "${ac_cv_search_socket+set}" = set; then
3529
echo $ECHO_N "(cached) $ECHO_C" >&6
3531
ac_func_search_save_LIBS=$LIBS
3532
ac_cv_search_socket=no
3533
cat >conftest.$ac_ext <<_ACEOF
3536
cat confdefs.h >>conftest.$ac_ext
3537
cat >>conftest.$ac_ext <<_ACEOF
3538
/* end confdefs.h. */
3540
/* Override any gcc2 internal prototype to avoid an error. */
3544
/* We use char because int might match the return type of a gcc2
3545
builtin and then its argument prototype would still apply. */
3555
rm -f conftest.$ac_objext conftest$ac_exeext
3556
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3557
(eval $ac_link) 2>conftest.er1
3559
grep -v '^ *+' conftest.er1 >conftest.err
3561
cat conftest.err >&5
3562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563
(exit $ac_status); } &&
3564
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3565
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569
(exit $ac_status); }; } &&
3570
{ ac_try='test -s conftest$ac_exeext'
3571
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575
(exit $ac_status); }; }; then
3576
ac_cv_search_socket="none required"
3578
echo "$as_me: failed program was:" >&5
3579
sed 's/^/| /' conftest.$ac_ext >&5
3582
rm -f conftest.err conftest.$ac_objext \
3583
conftest$ac_exeext conftest.$ac_ext
3584
if test "$ac_cv_search_socket" = no; then
3585
for ac_lib in socket; do
3586
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3587
cat >conftest.$ac_ext <<_ACEOF
3590
cat confdefs.h >>conftest.$ac_ext
3591
cat >>conftest.$ac_ext <<_ACEOF
3592
/* end confdefs.h. */
3594
/* Override any gcc2 internal prototype to avoid an error. */
3598
/* We use char because int might match the return type of a gcc2
3599
builtin and then its argument prototype would still apply. */
3609
rm -f conftest.$ac_objext conftest$ac_exeext
3610
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3611
(eval $ac_link) 2>conftest.er1
3613
grep -v '^ *+' conftest.er1 >conftest.err
3615
cat conftest.err >&5
3616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617
(exit $ac_status); } &&
3618
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3619
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623
(exit $ac_status); }; } &&
3624
{ ac_try='test -s conftest$ac_exeext'
3625
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629
(exit $ac_status); }; }; then
3630
ac_cv_search_socket="-l$ac_lib"
3633
echo "$as_me: failed program was:" >&5
3634
sed 's/^/| /' conftest.$ac_ext >&5
3637
rm -f conftest.err conftest.$ac_objext \
3638
conftest$ac_exeext conftest.$ac_ext
3641
LIBS=$ac_func_search_save_LIBS
3643
echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
3644
echo "${ECHO_T}$ac_cv_search_socket" >&6
3645
if test "$ac_cv_search_socket" != no; then
3646
test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
3649
echo "$as_me:$LINENO: checking for socket in -lnsl" >&5
3650
echo $ECHO_N "checking for socket in -lnsl... $ECHO_C" >&6
3651
if test "${ac_cv_lib_nsl_socket+set}" = set; then
3652
echo $ECHO_N "(cached) $ECHO_C" >&6
3654
ac_check_lib_save_LIBS=$LIBS
3655
LIBS="-lnsl -lsocket $LIBS"
3656
cat >conftest.$ac_ext <<_ACEOF
3659
cat confdefs.h >>conftest.$ac_ext
3660
cat >>conftest.$ac_ext <<_ACEOF
3661
/* end confdefs.h. */
3663
/* Override any gcc2 internal prototype to avoid an error. */
3667
/* We use char because int might match the return type of a gcc2
3668
builtin and then its argument prototype would still apply. */
3678
rm -f conftest.$ac_objext conftest$ac_exeext
3679
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3680
(eval $ac_link) 2>conftest.er1
3682
grep -v '^ *+' conftest.er1 >conftest.err
3684
cat conftest.err >&5
3685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686
(exit $ac_status); } &&
3687
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3688
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692
(exit $ac_status); }; } &&
3693
{ ac_try='test -s conftest$ac_exeext'
3694
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698
(exit $ac_status); }; }; then
3699
ac_cv_lib_nsl_socket=yes
3701
echo "$as_me: failed program was:" >&5
3702
sed 's/^/| /' conftest.$ac_ext >&5
3704
ac_cv_lib_nsl_socket=no
3706
rm -f conftest.err conftest.$ac_objext \
3707
conftest$ac_exeext conftest.$ac_ext
3708
LIBS=$ac_check_lib_save_LIBS
3710
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_socket" >&5
3711
echo "${ECHO_T}$ac_cv_lib_nsl_socket" >&6
3712
if test $ac_cv_lib_nsl_socket = yes; then
3713
LIBS="-lnsl -lsocket $LIBS"
3720
if test x"$KRBROOT" != x ; then
3721
if test -x "$KRBROOT/bin/krb5-config" ; then
3722
KRB5_CONFIG="$KRBROOT/bin/krb5-config"
3725
# Extract the first word of "krb5-config", so it can be a program name with args.
3726
set dummy krb5-config; ac_word=$2
3727
echo "$as_me:$LINENO: checking for $ac_word" >&5
3728
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3729
if test "${ac_cv_path_KRB5_CONFIG+set}" = set; then
3730
echo $ECHO_N "(cached) $ECHO_C" >&6
3732
case $KRB5_CONFIG in
3734
ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
3737
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741
test -z "$as_dir" && as_dir=.
3742
for ac_exec_ext in '' $ac_executable_extensions; do
3743
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744
ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3745
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3754
KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
3756
if test -n "$KRB5_CONFIG"; then
3757
echo "$as_me:$LINENO: result: $KRB5_CONFIG" >&5
3758
echo "${ECHO_T}$KRB5_CONFIG" >&6
3760
echo "$as_me:$LINENO: result: no" >&5
3761
echo "${ECHO_T}no" >&6
3766
# We can't use krb5-config if building static since we can't tell what
3767
# of the libraries it gives us should be static and which should be
3769
if test x"$KRB5_CONFIG" != x && test x"$static" != xtrue ; then
3770
echo "$as_me:$LINENO: checking for krb5 support in krb5-config" >&5
3771
echo $ECHO_N "checking for krb5 support in krb5-config... $ECHO_C" >&6
3772
if "$KRB5_CONFIG" | grep 'krb5' > /dev/null 2>&1 ; then
3773
echo "$as_me:$LINENO: result: yes" >&5
3774
echo "${ECHO_T}yes" >&6
3775
KRBCPPFLAGS=`"$KRB5_CONFIG" --cflags 'krb5'`
3776
KRBLIBS=`"$KRB5_CONFIG" --libs 'krb5'`
3778
echo "$as_me:$LINENO: result: no" >&5
3779
echo "${ECHO_T}no" >&6
3780
KRBCPPFLAGS=`"$KRB5_CONFIG" --cflags`
3781
KRBLIBS=`"$KRB5_CONFIG" --libs`
3783
KRBCPPFLAGS=`echo "$KRBCPPFLAGS" | sed 's%-I/usr/include ?%%'`
3785
if test x"$KRBROOT" != x ; then
3786
if test x"$KRBROOT" != x/usr ; then
3787
KRBCPPFLAGS="-I$KRBROOT/include"
3789
LDFLAGS="$LDFLAGS -L$KRBROOT/lib"
3791
echo "$as_me:$LINENO: checking for library containing res_search" >&5
3792
echo $ECHO_N "checking for library containing res_search... $ECHO_C" >&6
3793
if test "${ac_cv_search_res_search+set}" = set; then
3794
echo $ECHO_N "(cached) $ECHO_C" >&6
3796
ac_func_search_save_LIBS=$LIBS
3797
ac_cv_search_res_search=no
3798
cat >conftest.$ac_ext <<_ACEOF
3801
cat confdefs.h >>conftest.$ac_ext
3802
cat >>conftest.$ac_ext <<_ACEOF
3803
/* end confdefs.h. */
3805
/* Override any gcc2 internal prototype to avoid an error. */
3809
/* We use char because int might match the return type of a gcc2
3810
builtin and then its argument prototype would still apply. */
3820
rm -f conftest.$ac_objext conftest$ac_exeext
3821
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3822
(eval $ac_link) 2>conftest.er1
3824
grep -v '^ *+' conftest.er1 >conftest.err
3826
cat conftest.err >&5
3827
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828
(exit $ac_status); } &&
3829
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3830
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834
(exit $ac_status); }; } &&
3835
{ ac_try='test -s conftest$ac_exeext'
3836
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840
(exit $ac_status); }; }; then
3841
ac_cv_search_res_search="none required"
3843
echo "$as_me: failed program was:" >&5
3844
sed 's/^/| /' conftest.$ac_ext >&5
3847
rm -f conftest.err conftest.$ac_objext \
3848
conftest$ac_exeext conftest.$ac_ext
3849
if test "$ac_cv_search_res_search" = no; then
3850
for ac_lib in resolv; do
3851
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3852
cat >conftest.$ac_ext <<_ACEOF
3855
cat confdefs.h >>conftest.$ac_ext
3856
cat >>conftest.$ac_ext <<_ACEOF
3857
/* end confdefs.h. */
3859
/* Override any gcc2 internal prototype to avoid an error. */
3863
/* We use char because int might match the return type of a gcc2
3864
builtin and then its argument prototype would still apply. */
3874
rm -f conftest.$ac_objext conftest$ac_exeext
3875
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3876
(eval $ac_link) 2>conftest.er1
3878
grep -v '^ *+' conftest.er1 >conftest.err
3880
cat conftest.err >&5
3881
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882
(exit $ac_status); } &&
3883
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3884
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3887
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888
(exit $ac_status); }; } &&
3889
{ ac_try='test -s conftest$ac_exeext'
3890
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3893
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894
(exit $ac_status); }; }; then
3895
ac_cv_search_res_search="-l$ac_lib"
3898
echo "$as_me: failed program was:" >&5
3899
sed 's/^/| /' conftest.$ac_ext >&5
3902
rm -f conftest.err conftest.$ac_objext \
3903
conftest$ac_exeext conftest.$ac_ext
3906
LIBS=$ac_func_search_save_LIBS
3908
echo "$as_me:$LINENO: result: $ac_cv_search_res_search" >&5
3909
echo "${ECHO_T}$ac_cv_search_res_search" >&6
3910
if test "$ac_cv_search_res_search" != no; then
3911
test "$ac_cv_search_res_search" = "none required" || LIBS="$ac_cv_search_res_search $LIBS"
3914
echo "$as_me:$LINENO: checking for library containing __res_search" >&5
3915
echo $ECHO_N "checking for library containing __res_search... $ECHO_C" >&6
3916
if test "${ac_cv_search___res_search+set}" = set; then
3917
echo $ECHO_N "(cached) $ECHO_C" >&6
3919
ac_func_search_save_LIBS=$LIBS
3920
ac_cv_search___res_search=no
3921
cat >conftest.$ac_ext <<_ACEOF
3924
cat confdefs.h >>conftest.$ac_ext
3925
cat >>conftest.$ac_ext <<_ACEOF
3926
/* end confdefs.h. */
3928
/* Override any gcc2 internal prototype to avoid an error. */
3932
/* We use char because int might match the return type of a gcc2
3933
builtin and then its argument prototype would still apply. */
3934
char __res_search ();
3943
rm -f conftest.$ac_objext conftest$ac_exeext
3944
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3945
(eval $ac_link) 2>conftest.er1
3947
grep -v '^ *+' conftest.er1 >conftest.err
3949
cat conftest.err >&5
3950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951
(exit $ac_status); } &&
3952
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3953
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3956
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957
(exit $ac_status); }; } &&
3958
{ ac_try='test -s conftest$ac_exeext'
3959
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963
(exit $ac_status); }; }; then
3964
ac_cv_search___res_search="none required"
3966
echo "$as_me: failed program was:" >&5
3967
sed 's/^/| /' conftest.$ac_ext >&5
3970
rm -f conftest.err conftest.$ac_objext \
3971
conftest$ac_exeext conftest.$ac_ext
3972
if test "$ac_cv_search___res_search" = no; then
3973
for ac_lib in resolv; do
3974
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3975
cat >conftest.$ac_ext <<_ACEOF
3978
cat confdefs.h >>conftest.$ac_ext
3979
cat >>conftest.$ac_ext <<_ACEOF
3980
/* end confdefs.h. */
3982
/* Override any gcc2 internal prototype to avoid an error. */
3986
/* We use char because int might match the return type of a gcc2
3987
builtin and then its argument prototype would still apply. */
3988
char __res_search ();
3997
rm -f conftest.$ac_objext conftest$ac_exeext
3998
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3999
(eval $ac_link) 2>conftest.er1
4001
grep -v '^ *+' conftest.er1 >conftest.err
4003
cat conftest.err >&5
4004
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005
(exit $ac_status); } &&
4006
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4007
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011
(exit $ac_status); }; } &&
4012
{ ac_try='test -s conftest$ac_exeext'
4013
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017
(exit $ac_status); }; }; then
4018
ac_cv_search___res_search="-l$ac_lib"
4021
echo "$as_me: failed program was:" >&5
4022
sed 's/^/| /' conftest.$ac_ext >&5
4025
rm -f conftest.err conftest.$ac_objext \
4026
conftest$ac_exeext conftest.$ac_ext
4029
LIBS=$ac_func_search_save_LIBS
4031
echo "$as_me:$LINENO: result: $ac_cv_search___res_search" >&5
4032
echo "${ECHO_T}$ac_cv_search___res_search" >&6
4033
if test "$ac_cv_search___res_search" != no; then
4034
test "$ac_cv_search___res_search" = "none required" || LIBS="$ac_cv_search___res_search $LIBS"
4040
echo "$as_me:$LINENO: checking for library containing crypt" >&5
4041
echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
4042
if test "${ac_cv_search_crypt+set}" = set; then
4043
echo $ECHO_N "(cached) $ECHO_C" >&6
4045
ac_func_search_save_LIBS=$LIBS
4046
ac_cv_search_crypt=no
4047
cat >conftest.$ac_ext <<_ACEOF
4050
cat confdefs.h >>conftest.$ac_ext
4051
cat >>conftest.$ac_ext <<_ACEOF
4052
/* end confdefs.h. */
4054
/* Override any gcc2 internal prototype to avoid an error. */
4058
/* We use char because int might match the return type of a gcc2
4059
builtin and then its argument prototype would still apply. */
4069
rm -f conftest.$ac_objext conftest$ac_exeext
4070
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4071
(eval $ac_link) 2>conftest.er1
4073
grep -v '^ *+' conftest.er1 >conftest.err
4075
cat conftest.err >&5
4076
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077
(exit $ac_status); } &&
4078
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4079
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083
(exit $ac_status); }; } &&
4084
{ ac_try='test -s conftest$ac_exeext'
4085
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089
(exit $ac_status); }; }; then
4090
ac_cv_search_crypt="none required"
4092
echo "$as_me: failed program was:" >&5
4093
sed 's/^/| /' conftest.$ac_ext >&5
4096
rm -f conftest.err conftest.$ac_objext \
4097
conftest$ac_exeext conftest.$ac_ext
4098
if test "$ac_cv_search_crypt" = no; then
4099
for ac_lib in crypt; do
4100
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4101
cat >conftest.$ac_ext <<_ACEOF
4104
cat confdefs.h >>conftest.$ac_ext
4105
cat >>conftest.$ac_ext <<_ACEOF
4106
/* end confdefs.h. */
4108
/* Override any gcc2 internal prototype to avoid an error. */
4112
/* We use char because int might match the return type of a gcc2
4113
builtin and then its argument prototype would still apply. */
4123
rm -f conftest.$ac_objext conftest$ac_exeext
4124
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4125
(eval $ac_link) 2>conftest.er1
4127
grep -v '^ *+' conftest.er1 >conftest.err
4129
cat conftest.err >&5
4130
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131
(exit $ac_status); } &&
4132
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4133
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137
(exit $ac_status); }; } &&
4138
{ ac_try='test -s conftest$ac_exeext'
4139
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143
(exit $ac_status); }; }; then
4144
ac_cv_search_crypt="-l$ac_lib"
4147
echo "$as_me: failed program was:" >&5
4148
sed 's/^/| /' conftest.$ac_ext >&5
4151
rm -f conftest.err conftest.$ac_objext \
4152
conftest$ac_exeext conftest.$ac_ext
4155
LIBS=$ac_func_search_save_LIBS
4157
echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
4158
echo "${ECHO_T}$ac_cv_search_crypt" >&6
4159
if test "$ac_cv_search_crypt" != no; then
4160
test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
4165
gssapi) echo "$as_me:$LINENO: checking for gss_import_name in -lgssapi" >&5
4166
echo $ECHO_N "checking for gss_import_name in -lgssapi... $ECHO_C" >&6
4167
if test "${ac_cv_lib_gssapi_gss_import_name+set}" = set; then
4168
echo $ECHO_N "(cached) $ECHO_C" >&6
4170
ac_check_lib_save_LIBS=$LIBS
4171
LIBS="-lgssapi -lkrb5 -lasn1 -lroken -lcrypto -lcom_err $LIBS"
4172
cat >conftest.$ac_ext <<_ACEOF
4175
cat confdefs.h >>conftest.$ac_ext
4176
cat >>conftest.$ac_ext <<_ACEOF
4177
/* end confdefs.h. */
4179
/* Override any gcc2 internal prototype to avoid an error. */
4183
/* We use char because int might match the return type of a gcc2
4184
builtin and then its argument prototype would still apply. */
4185
char gss_import_name ();
4194
rm -f conftest.$ac_objext conftest$ac_exeext
4195
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4196
(eval $ac_link) 2>conftest.er1
4198
grep -v '^ *+' conftest.er1 >conftest.err
4200
cat conftest.err >&5
4201
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202
(exit $ac_status); } &&
4203
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4204
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208
(exit $ac_status); }; } &&
4209
{ ac_try='test -s conftest$ac_exeext'
4210
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214
(exit $ac_status); }; }; then
4215
ac_cv_lib_gssapi_gss_import_name=yes
4217
echo "$as_me: failed program was:" >&5
4218
sed 's/^/| /' conftest.$ac_ext >&5
4220
ac_cv_lib_gssapi_gss_import_name=no
4222
rm -f conftest.err conftest.$ac_objext \
4223
conftest$ac_exeext conftest.$ac_ext
4224
LIBS=$ac_check_lib_save_LIBS
4226
echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_import_name" >&5
4227
echo "${ECHO_T}$ac_cv_lib_gssapi_gss_import_name" >&6
4228
if test $ac_cv_lib_gssapi_gss_import_name = yes; then
4229
KRBLIBS="-lgssapi -lkrb5 -lasn1 -lroken -lcrypto -lcom_err"
4231
KRB5EXTRA="-lkrb5 -lk5crypto -lcom_err"
4232
echo "$as_me:$LINENO: checking for krb5int_getspecific in -lkrb5support" >&5
4233
echo $ECHO_N "checking for krb5int_getspecific in -lkrb5support... $ECHO_C" >&6
4234
if test "${ac_cv_lib_krb5support_krb5int_getspecific+set}" = set; then
4235
echo $ECHO_N "(cached) $ECHO_C" >&6
4237
ac_check_lib_save_LIBS=$LIBS
4238
LIBS="-lkrb5support $LIBS"
4239
cat >conftest.$ac_ext <<_ACEOF
4242
cat confdefs.h >>conftest.$ac_ext
4243
cat >>conftest.$ac_ext <<_ACEOF
4244
/* end confdefs.h. */
4246
/* Override any gcc2 internal prototype to avoid an error. */
4250
/* We use char because int might match the return type of a gcc2
4251
builtin and then its argument prototype would still apply. */
4252
char krb5int_getspecific ();
4256
krb5int_getspecific ();
4261
rm -f conftest.$ac_objext conftest$ac_exeext
4262
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4263
(eval $ac_link) 2>conftest.er1
4265
grep -v '^ *+' conftest.er1 >conftest.err
4267
cat conftest.err >&5
4268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269
(exit $ac_status); } &&
4270
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4271
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275
(exit $ac_status); }; } &&
4276
{ ac_try='test -s conftest$ac_exeext'
4277
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281
(exit $ac_status); }; }; then
4282
ac_cv_lib_krb5support_krb5int_getspecific=yes
4284
echo "$as_me: failed program was:" >&5
4285
sed 's/^/| /' conftest.$ac_ext >&5
4287
ac_cv_lib_krb5support_krb5int_getspecific=no
4289
rm -f conftest.err conftest.$ac_objext \
4290
conftest$ac_exeext conftest.$ac_ext
4291
LIBS=$ac_check_lib_save_LIBS
4293
echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
4294
echo "${ECHO_T}$ac_cv_lib_krb5support_krb5int_getspecific" >&6
4295
if test $ac_cv_lib_krb5support_krb5int_getspecific = yes; then
4296
KRB5EXTRA="$KRB5EXTRA -lkrb5support"
4298
echo "$as_me:$LINENO: checking for library containing pthread_setspecific" >&5
4299
echo $ECHO_N "checking for library containing pthread_setspecific... $ECHO_C" >&6
4300
if test "${ac_cv_search_pthread_setspecific+set}" = set; then
4301
echo $ECHO_N "(cached) $ECHO_C" >&6
4303
ac_func_search_save_LIBS=$LIBS
4304
ac_cv_search_pthread_setspecific=no
4305
cat >conftest.$ac_ext <<_ACEOF
4308
cat confdefs.h >>conftest.$ac_ext
4309
cat >>conftest.$ac_ext <<_ACEOF
4310
/* end confdefs.h. */
4312
/* Override any gcc2 internal prototype to avoid an error. */
4316
/* We use char because int might match the return type of a gcc2
4317
builtin and then its argument prototype would still apply. */
4318
char pthread_setspecific ();
4322
pthread_setspecific ();
4327
rm -f conftest.$ac_objext conftest$ac_exeext
4328
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4329
(eval $ac_link) 2>conftest.er1
4331
grep -v '^ *+' conftest.er1 >conftest.err
4333
cat conftest.err >&5
4334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335
(exit $ac_status); } &&
4336
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4337
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341
(exit $ac_status); }; } &&
4342
{ ac_try='test -s conftest$ac_exeext'
4343
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347
(exit $ac_status); }; }; then
4348
ac_cv_search_pthread_setspecific="none required"
4350
echo "$as_me: failed program was:" >&5
4351
sed 's/^/| /' conftest.$ac_ext >&5
4354
rm -f conftest.err conftest.$ac_objext \
4355
conftest$ac_exeext conftest.$ac_ext
4356
if test "$ac_cv_search_pthread_setspecific" = no; then
4357
for ac_lib in pthreads pthread; do
4358
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4359
cat >conftest.$ac_ext <<_ACEOF
4362
cat confdefs.h >>conftest.$ac_ext
4363
cat >>conftest.$ac_ext <<_ACEOF
4364
/* end confdefs.h. */
4366
/* Override any gcc2 internal prototype to avoid an error. */
4370
/* We use char because int might match the return type of a gcc2
4371
builtin and then its argument prototype would still apply. */
4372
char pthread_setspecific ();
4376
pthread_setspecific ();
4381
rm -f conftest.$ac_objext conftest$ac_exeext
4382
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4383
(eval $ac_link) 2>conftest.er1
4385
grep -v '^ *+' conftest.er1 >conftest.err
4387
cat conftest.err >&5
4388
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389
(exit $ac_status); } &&
4390
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4391
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395
(exit $ac_status); }; } &&
4396
{ ac_try='test -s conftest$ac_exeext'
4397
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401
(exit $ac_status); }; }; then
4402
ac_cv_search_pthread_setspecific="-l$ac_lib"
4405
echo "$as_me: failed program was:" >&5
4406
sed 's/^/| /' conftest.$ac_ext >&5
4409
rm -f conftest.err conftest.$ac_objext \
4410
conftest$ac_exeext conftest.$ac_ext
4413
LIBS=$ac_func_search_save_LIBS
4415
echo "$as_me:$LINENO: result: $ac_cv_search_pthread_setspecific" >&5
4416
echo "${ECHO_T}$ac_cv_search_pthread_setspecific" >&6
4417
if test "$ac_cv_search_pthread_setspecific" != no; then
4418
test "$ac_cv_search_pthread_setspecific" = "none required" || LIBS="$ac_cv_search_pthread_setspecific $LIBS"
4422
echo "$as_me:$LINENO: checking for krb5int_setspecific in -lkrb5support" >&5
4423
echo $ECHO_N "checking for krb5int_setspecific in -lkrb5support... $ECHO_C" >&6
4424
if test "${ac_cv_lib_krb5support_krb5int_setspecific+set}" = set; then
4425
echo $ECHO_N "(cached) $ECHO_C" >&6
4427
ac_check_lib_save_LIBS=$LIBS
4428
LIBS="-lkrb5support $LIBS"
4429
cat >conftest.$ac_ext <<_ACEOF
4432
cat confdefs.h >>conftest.$ac_ext
4433
cat >>conftest.$ac_ext <<_ACEOF
4434
/* end confdefs.h. */
4436
/* Override any gcc2 internal prototype to avoid an error. */
4440
/* We use char because int might match the return type of a gcc2
4441
builtin and then its argument prototype would still apply. */
4442
char krb5int_setspecific ();
4446
krb5int_setspecific ();
4451
rm -f conftest.$ac_objext conftest$ac_exeext
4452
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4453
(eval $ac_link) 2>conftest.er1
4455
grep -v '^ *+' conftest.er1 >conftest.err
4457
cat conftest.err >&5
4458
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459
(exit $ac_status); } &&
4460
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4461
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465
(exit $ac_status); }; } &&
4466
{ ac_try='test -s conftest$ac_exeext'
4467
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471
(exit $ac_status); }; }; then
4472
ac_cv_lib_krb5support_krb5int_setspecific=yes
4474
echo "$as_me: failed program was:" >&5
4475
sed 's/^/| /' conftest.$ac_ext >&5
4477
ac_cv_lib_krb5support_krb5int_setspecific=no
4479
rm -f conftest.err conftest.$ac_objext \
4480
conftest$ac_exeext conftest.$ac_ext
4481
LIBS=$ac_check_lib_save_LIBS
4483
echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
4484
echo "${ECHO_T}$ac_cv_lib_krb5support_krb5int_setspecific" >&6
4485
if test $ac_cv_lib_krb5support_krb5int_setspecific = yes; then
4486
KRB5EXTRA="$KRB5EXTRA -lkrb5support"
4491
echo "$as_me:$LINENO: checking for gss_import_name in -lgssapi_krb5" >&5
4492
echo $ECHO_N "checking for gss_import_name in -lgssapi_krb5... $ECHO_C" >&6
4493
if test "${ac_cv_lib_gssapi_krb5_gss_import_name+set}" = set; then
4494
echo $ECHO_N "(cached) $ECHO_C" >&6
4496
ac_check_lib_save_LIBS=$LIBS
4497
LIBS="-lgssapi_krb5 $KRB5EXTRA $LIBS"
4498
cat >conftest.$ac_ext <<_ACEOF
4501
cat confdefs.h >>conftest.$ac_ext
4502
cat >>conftest.$ac_ext <<_ACEOF
4503
/* end confdefs.h. */
4505
/* Override any gcc2 internal prototype to avoid an error. */
4509
/* We use char because int might match the return type of a gcc2
4510
builtin and then its argument prototype would still apply. */
4511
char gss_import_name ();
4520
rm -f conftest.$ac_objext conftest$ac_exeext
4521
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4522
(eval $ac_link) 2>conftest.er1
4524
grep -v '^ *+' conftest.er1 >conftest.err
4526
cat conftest.err >&5
4527
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528
(exit $ac_status); } &&
4529
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4530
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534
(exit $ac_status); }; } &&
4535
{ ac_try='test -s conftest$ac_exeext'
4536
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540
(exit $ac_status); }; }; then
4541
ac_cv_lib_gssapi_krb5_gss_import_name=yes
4543
echo "$as_me: failed program was:" >&5
4544
sed 's/^/| /' conftest.$ac_ext >&5
4546
ac_cv_lib_gssapi_krb5_gss_import_name=no
4548
rm -f conftest.err conftest.$ac_objext \
4549
conftest$ac_exeext conftest.$ac_ext
4550
LIBS=$ac_check_lib_save_LIBS
4552
echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_import_name" >&5
4553
echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_import_name" >&6
4554
if test $ac_cv_lib_gssapi_krb5_gss_import_name = yes; then
4555
KRBLIBS="-lgssapi_krb5 $KRB5EXTRA"
4557
{ { echo "$as_me:$LINENO: error: cannot find usable GSSAPI library" >&5
4558
echo "$as_me: error: cannot find usable GSSAPI library" >&2;}
4559
{ (exit 1); exit 1; }; }
4564
krb5) echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
4565
echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
4566
if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
4567
echo $ECHO_N "(cached) $ECHO_C" >&6
4569
ac_check_lib_save_LIBS=$LIBS
4570
LIBS="-lkrb5 -lasn1 -lroken -lcrypto -lcom_err $LIBS"
4571
cat >conftest.$ac_ext <<_ACEOF
4574
cat confdefs.h >>conftest.$ac_ext
4575
cat >>conftest.$ac_ext <<_ACEOF
4576
/* end confdefs.h. */
4578
/* Override any gcc2 internal prototype to avoid an error. */
4582
/* We use char because int might match the return type of a gcc2
4583
builtin and then its argument prototype would still apply. */
4584
char krb5_init_context ();
4588
krb5_init_context ();
4593
rm -f conftest.$ac_objext conftest$ac_exeext
4594
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4595
(eval $ac_link) 2>conftest.er1
4597
grep -v '^ *+' conftest.er1 >conftest.err
4599
cat conftest.err >&5
4600
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601
(exit $ac_status); } &&
4602
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4603
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607
(exit $ac_status); }; } &&
4608
{ ac_try='test -s conftest$ac_exeext'
4609
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613
(exit $ac_status); }; }; then
4614
ac_cv_lib_krb5_krb5_init_context=yes
4616
echo "$as_me: failed program was:" >&5
4617
sed 's/^/| /' conftest.$ac_ext >&5
4619
ac_cv_lib_krb5_krb5_init_context=no
4621
rm -f conftest.err conftest.$ac_objext \
4622
conftest$ac_exeext conftest.$ac_ext
4623
LIBS=$ac_check_lib_save_LIBS
4625
echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
4626
echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
4627
if test $ac_cv_lib_krb5_krb5_init_context = yes; then
4628
KRBLIBS="-lkrb5 -lasn1 -lroken -lcrypto -lcom_err"
4630
KRB5EXTRA="-lk5crypto -lcom_err"
4631
echo "$as_me:$LINENO: checking for krb5int_getspecific in -lkrb5support" >&5
4632
echo $ECHO_N "checking for krb5int_getspecific in -lkrb5support... $ECHO_C" >&6
4633
if test "${ac_cv_lib_krb5support_krb5int_getspecific+set}" = set; then
4634
echo $ECHO_N "(cached) $ECHO_C" >&6
4636
ac_check_lib_save_LIBS=$LIBS
4637
LIBS="-lkrb5support $LIBS"
4638
cat >conftest.$ac_ext <<_ACEOF
4641
cat confdefs.h >>conftest.$ac_ext
4642
cat >>conftest.$ac_ext <<_ACEOF
4643
/* end confdefs.h. */
4645
/* Override any gcc2 internal prototype to avoid an error. */
4649
/* We use char because int might match the return type of a gcc2
4650
builtin and then its argument prototype would still apply. */
4651
char krb5int_getspecific ();
4655
krb5int_getspecific ();
4660
rm -f conftest.$ac_objext conftest$ac_exeext
4661
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4662
(eval $ac_link) 2>conftest.er1
4664
grep -v '^ *+' conftest.er1 >conftest.err
4666
cat conftest.err >&5
4667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668
(exit $ac_status); } &&
4669
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4670
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674
(exit $ac_status); }; } &&
4675
{ ac_try='test -s conftest$ac_exeext'
4676
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680
(exit $ac_status); }; }; then
4681
ac_cv_lib_krb5support_krb5int_getspecific=yes
4683
echo "$as_me: failed program was:" >&5
4684
sed 's/^/| /' conftest.$ac_ext >&5
4686
ac_cv_lib_krb5support_krb5int_getspecific=no
4688
rm -f conftest.err conftest.$ac_objext \
4689
conftest$ac_exeext conftest.$ac_ext
4690
LIBS=$ac_check_lib_save_LIBS
4692
echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
4693
echo "${ECHO_T}$ac_cv_lib_krb5support_krb5int_getspecific" >&6
4694
if test $ac_cv_lib_krb5support_krb5int_getspecific = yes; then
4695
KRB5EXTRA="$KRB5EXTRA -lkrb5support"
4697
echo "$as_me:$LINENO: checking for library containing pthread_setspecific" >&5
4698
echo $ECHO_N "checking for library containing pthread_setspecific... $ECHO_C" >&6
4699
if test "${ac_cv_search_pthread_setspecific+set}" = set; then
4700
echo $ECHO_N "(cached) $ECHO_C" >&6
4702
ac_func_search_save_LIBS=$LIBS
4703
ac_cv_search_pthread_setspecific=no
4704
cat >conftest.$ac_ext <<_ACEOF
4707
cat confdefs.h >>conftest.$ac_ext
4708
cat >>conftest.$ac_ext <<_ACEOF
4709
/* end confdefs.h. */
4711
/* Override any gcc2 internal prototype to avoid an error. */
4715
/* We use char because int might match the return type of a gcc2
4716
builtin and then its argument prototype would still apply. */
4717
char pthread_setspecific ();
4721
pthread_setspecific ();
4726
rm -f conftest.$ac_objext conftest$ac_exeext
4727
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4728
(eval $ac_link) 2>conftest.er1
4730
grep -v '^ *+' conftest.er1 >conftest.err
4732
cat conftest.err >&5
4733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734
(exit $ac_status); } &&
4735
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4736
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740
(exit $ac_status); }; } &&
4741
{ ac_try='test -s conftest$ac_exeext'
4742
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746
(exit $ac_status); }; }; then
4747
ac_cv_search_pthread_setspecific="none required"
4749
echo "$as_me: failed program was:" >&5
4750
sed 's/^/| /' conftest.$ac_ext >&5
4753
rm -f conftest.err conftest.$ac_objext \
4754
conftest$ac_exeext conftest.$ac_ext
4755
if test "$ac_cv_search_pthread_setspecific" = no; then
4756
for ac_lib in pthreads pthread; do
4757
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4758
cat >conftest.$ac_ext <<_ACEOF
4761
cat confdefs.h >>conftest.$ac_ext
4762
cat >>conftest.$ac_ext <<_ACEOF
4763
/* end confdefs.h. */
4765
/* Override any gcc2 internal prototype to avoid an error. */
4769
/* We use char because int might match the return type of a gcc2
4770
builtin and then its argument prototype would still apply. */
4771
char pthread_setspecific ();
4775
pthread_setspecific ();
4780
rm -f conftest.$ac_objext conftest$ac_exeext
4781
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4782
(eval $ac_link) 2>conftest.er1
4784
grep -v '^ *+' conftest.er1 >conftest.err
4786
cat conftest.err >&5
4787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788
(exit $ac_status); } &&
4789
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4790
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794
(exit $ac_status); }; } &&
4795
{ ac_try='test -s conftest$ac_exeext'
4796
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800
(exit $ac_status); }; }; then
4801
ac_cv_search_pthread_setspecific="-l$ac_lib"
4804
echo "$as_me: failed program was:" >&5
4805
sed 's/^/| /' conftest.$ac_ext >&5
4808
rm -f conftest.err conftest.$ac_objext \
4809
conftest$ac_exeext conftest.$ac_ext
4812
LIBS=$ac_func_search_save_LIBS
4814
echo "$as_me:$LINENO: result: $ac_cv_search_pthread_setspecific" >&5
4815
echo "${ECHO_T}$ac_cv_search_pthread_setspecific" >&6
4816
if test "$ac_cv_search_pthread_setspecific" != no; then
4817
test "$ac_cv_search_pthread_setspecific" = "none required" || LIBS="$ac_cv_search_pthread_setspecific $LIBS"
4821
echo "$as_me:$LINENO: checking for krb5int_setspecific in -lkrb5support" >&5
4822
echo $ECHO_N "checking for krb5int_setspecific in -lkrb5support... $ECHO_C" >&6
4823
if test "${ac_cv_lib_krb5support_krb5int_setspecific+set}" = set; then
4824
echo $ECHO_N "(cached) $ECHO_C" >&6
4826
ac_check_lib_save_LIBS=$LIBS
4827
LIBS="-lkrb5support $LIBS"
4828
cat >conftest.$ac_ext <<_ACEOF
4831
cat confdefs.h >>conftest.$ac_ext
4832
cat >>conftest.$ac_ext <<_ACEOF
4833
/* end confdefs.h. */
4835
/* Override any gcc2 internal prototype to avoid an error. */
4839
/* We use char because int might match the return type of a gcc2
4840
builtin and then its argument prototype would still apply. */
4841
char krb5int_setspecific ();
4845
krb5int_setspecific ();
4850
rm -f conftest.$ac_objext conftest$ac_exeext
4851
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4852
(eval $ac_link) 2>conftest.er1
4854
grep -v '^ *+' conftest.er1 >conftest.err
4856
cat conftest.err >&5
4857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858
(exit $ac_status); } &&
4859
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4860
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864
(exit $ac_status); }; } &&
4865
{ ac_try='test -s conftest$ac_exeext'
4866
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870
(exit $ac_status); }; }; then
4871
ac_cv_lib_krb5support_krb5int_setspecific=yes
4873
echo "$as_me: failed program was:" >&5
4874
sed 's/^/| /' conftest.$ac_ext >&5
4876
ac_cv_lib_krb5support_krb5int_setspecific=no
4878
rm -f conftest.err conftest.$ac_objext \
4879
conftest$ac_exeext conftest.$ac_ext
4880
LIBS=$ac_check_lib_save_LIBS
4882
echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
4883
echo "${ECHO_T}$ac_cv_lib_krb5support_krb5int_setspecific" >&6
4884
if test $ac_cv_lib_krb5support_krb5int_setspecific = yes; then
4885
KRB5EXTRA="$KRB5EXTRA -lkrb5support"
4890
echo "$as_me:$LINENO: checking for krb5_cc_default in -lkrb5" >&5
4891
echo $ECHO_N "checking for krb5_cc_default in -lkrb5... $ECHO_C" >&6
4892
if test "${ac_cv_lib_krb5_krb5_cc_default+set}" = set; then
4893
echo $ECHO_N "(cached) $ECHO_C" >&6
4895
ac_check_lib_save_LIBS=$LIBS
4896
LIBS="-lkrb5 $KRB5EXTRA $LIBS"
4897
cat >conftest.$ac_ext <<_ACEOF
4900
cat confdefs.h >>conftest.$ac_ext
4901
cat >>conftest.$ac_ext <<_ACEOF
4902
/* end confdefs.h. */
4904
/* Override any gcc2 internal prototype to avoid an error. */
4908
/* We use char because int might match the return type of a gcc2
4909
builtin and then its argument prototype would still apply. */
4910
char krb5_cc_default ();
4919
rm -f conftest.$ac_objext conftest$ac_exeext
4920
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4921
(eval $ac_link) 2>conftest.er1
4923
grep -v '^ *+' conftest.er1 >conftest.err
4925
cat conftest.err >&5
4926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927
(exit $ac_status); } &&
4928
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4929
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933
(exit $ac_status); }; } &&
4934
{ ac_try='test -s conftest$ac_exeext'
4935
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939
(exit $ac_status); }; }; then
4940
ac_cv_lib_krb5_krb5_cc_default=yes
4942
echo "$as_me: failed program was:" >&5
4943
sed 's/^/| /' conftest.$ac_ext >&5
4945
ac_cv_lib_krb5_krb5_cc_default=no
4947
rm -f conftest.err conftest.$ac_objext \
4948
conftest$ac_exeext conftest.$ac_ext
4949
LIBS=$ac_check_lib_save_LIBS
4951
echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
4952
echo "${ECHO_T}$ac_cv_lib_krb5_krb5_cc_default" >&6
4953
if test $ac_cv_lib_krb5_krb5_cc_default = yes; then
4954
KRBLIBS="-lkrb5 $KRB5EXTRA"
4956
{ { echo "$as_me:$LINENO: error: cannot find usable Kerberos v5 library" >&5
4957
echo "$as_me: error: cannot find usable Kerberos v5 library" >&2;}
4958
{ (exit 1); exit 1; }; }
4964
echo "$as_me:$LINENO: checking for des_set_key in -lcrypto" >&5
4965
echo $ECHO_N "checking for des_set_key in -lcrypto... $ECHO_C" >&6
4966
if test "${ac_cv_lib_crypto_des_set_key+set}" = set; then
4967
echo $ECHO_N "(cached) $ECHO_C" >&6
4969
ac_check_lib_save_LIBS=$LIBS
4970
LIBS="-lcrypto $LIBS"
4971
cat >conftest.$ac_ext <<_ACEOF
4974
cat confdefs.h >>conftest.$ac_ext
4975
cat >>conftest.$ac_ext <<_ACEOF
4976
/* end confdefs.h. */
4978
/* Override any gcc2 internal prototype to avoid an error. */
4982
/* We use char because int might match the return type of a gcc2
4983
builtin and then its argument prototype would still apply. */
4984
char des_set_key ();
4993
rm -f conftest.$ac_objext conftest$ac_exeext
4994
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4995
(eval $ac_link) 2>conftest.er1
4997
grep -v '^ *+' conftest.er1 >conftest.err
4999
cat conftest.err >&5
5000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001
(exit $ac_status); } &&
5002
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5003
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007
(exit $ac_status); }; } &&
5008
{ ac_try='test -s conftest$ac_exeext'
5009
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013
(exit $ac_status); }; }; then
5014
ac_cv_lib_crypto_des_set_key=yes
5016
echo "$as_me: failed program was:" >&5
5017
sed 's/^/| /' conftest.$ac_ext >&5
5019
ac_cv_lib_crypto_des_set_key=no
5021
rm -f conftest.err conftest.$ac_objext \
5022
conftest$ac_exeext conftest.$ac_ext
5023
LIBS=$ac_check_lib_save_LIBS
5025
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_set_key" >&5
5026
echo "${ECHO_T}$ac_cv_lib_crypto_des_set_key" >&6
5027
if test $ac_cv_lib_crypto_des_set_key = yes; then
5028
KRB4EXTRA="-lcrypto"
5033
echo "$as_me:$LINENO: checking for krb_get_svc_in_tkt in -lkrb" >&5
5034
echo $ECHO_N "checking for krb_get_svc_in_tkt in -lkrb... $ECHO_C" >&6
5035
if test "${ac_cv_lib_krb_krb_get_svc_in_tkt+set}" = set; then
5036
echo $ECHO_N "(cached) $ECHO_C" >&6
5038
ac_check_lib_save_LIBS=$LIBS
5039
LIBS="-lkrb $KRB4EXTRA $LIBS"
5040
cat >conftest.$ac_ext <<_ACEOF
5043
cat confdefs.h >>conftest.$ac_ext
5044
cat >>conftest.$ac_ext <<_ACEOF
5045
/* end confdefs.h. */
5047
/* Override any gcc2 internal prototype to avoid an error. */
5051
/* We use char because int might match the return type of a gcc2
5052
builtin and then its argument prototype would still apply. */
5053
char krb_get_svc_in_tkt ();
5057
krb_get_svc_in_tkt ();
5062
rm -f conftest.$ac_objext conftest$ac_exeext
5063
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5064
(eval $ac_link) 2>conftest.er1
5066
grep -v '^ *+' conftest.er1 >conftest.err
5068
cat conftest.err >&5
5069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070
(exit $ac_status); } &&
5071
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5072
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076
(exit $ac_status); }; } &&
5077
{ ac_try='test -s conftest$ac_exeext'
5078
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082
(exit $ac_status); }; }; then
5083
ac_cv_lib_krb_krb_get_svc_in_tkt=yes
5085
echo "$as_me: failed program was:" >&5
5086
sed 's/^/| /' conftest.$ac_ext >&5
5088
ac_cv_lib_krb_krb_get_svc_in_tkt=no
5090
rm -f conftest.err conftest.$ac_objext \
5091
conftest$ac_exeext conftest.$ac_ext
5092
LIBS=$ac_check_lib_save_LIBS
5094
echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_svc_in_tkt" >&5
5095
echo "${ECHO_T}$ac_cv_lib_krb_krb_get_svc_in_tkt" >&6
5096
if test $ac_cv_lib_krb_krb_get_svc_in_tkt = yes; then
5097
KRBLIBS="-lkrb $KRB4EXTRA"
5099
KRB5EXTRA="-ldes425 -lkrb5 -lk5crypto -lcom_err"
5100
echo "$as_me:$LINENO: checking for krb5int_getspecific in -lkrb5support" >&5
5101
echo $ECHO_N "checking for krb5int_getspecific in -lkrb5support... $ECHO_C" >&6
5102
if test "${ac_cv_lib_krb5support_krb5int_getspecific+set}" = set; then
5103
echo $ECHO_N "(cached) $ECHO_C" >&6
5105
ac_check_lib_save_LIBS=$LIBS
5106
LIBS="-lkrb5support $LIBS"
5107
cat >conftest.$ac_ext <<_ACEOF
5110
cat confdefs.h >>conftest.$ac_ext
5111
cat >>conftest.$ac_ext <<_ACEOF
5112
/* end confdefs.h. */
5114
/* Override any gcc2 internal prototype to avoid an error. */
5118
/* We use char because int might match the return type of a gcc2
5119
builtin and then its argument prototype would still apply. */
5120
char krb5int_getspecific ();
5124
krb5int_getspecific ();
5129
rm -f conftest.$ac_objext conftest$ac_exeext
5130
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5131
(eval $ac_link) 2>conftest.er1
5133
grep -v '^ *+' conftest.er1 >conftest.err
5135
cat conftest.err >&5
5136
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137
(exit $ac_status); } &&
5138
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5139
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143
(exit $ac_status); }; } &&
5144
{ ac_try='test -s conftest$ac_exeext'
5145
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149
(exit $ac_status); }; }; then
5150
ac_cv_lib_krb5support_krb5int_getspecific=yes
5152
echo "$as_me: failed program was:" >&5
5153
sed 's/^/| /' conftest.$ac_ext >&5
5155
ac_cv_lib_krb5support_krb5int_getspecific=no
5157
rm -f conftest.err conftest.$ac_objext \
5158
conftest$ac_exeext conftest.$ac_ext
5159
LIBS=$ac_check_lib_save_LIBS
5161
echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
5162
echo "${ECHO_T}$ac_cv_lib_krb5support_krb5int_getspecific" >&6
5163
if test $ac_cv_lib_krb5support_krb5int_getspecific = yes; then
5164
KRB5EXTRA="$KRB5EXTRA -lkrb5support"
5166
echo "$as_me:$LINENO: checking for library containing pthread_setspecific" >&5
5167
echo $ECHO_N "checking for library containing pthread_setspecific... $ECHO_C" >&6
5168
if test "${ac_cv_search_pthread_setspecific+set}" = set; then
5169
echo $ECHO_N "(cached) $ECHO_C" >&6
5171
ac_func_search_save_LIBS=$LIBS
5172
ac_cv_search_pthread_setspecific=no
5173
cat >conftest.$ac_ext <<_ACEOF
5176
cat confdefs.h >>conftest.$ac_ext
5177
cat >>conftest.$ac_ext <<_ACEOF
5178
/* end confdefs.h. */
5180
/* Override any gcc2 internal prototype to avoid an error. */
5184
/* We use char because int might match the return type of a gcc2
5185
builtin and then its argument prototype would still apply. */
5186
char pthread_setspecific ();
5190
pthread_setspecific ();
5195
rm -f conftest.$ac_objext conftest$ac_exeext
5196
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5197
(eval $ac_link) 2>conftest.er1
5199
grep -v '^ *+' conftest.er1 >conftest.err
5201
cat conftest.err >&5
5202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203
(exit $ac_status); } &&
5204
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5205
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209
(exit $ac_status); }; } &&
5210
{ ac_try='test -s conftest$ac_exeext'
5211
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215
(exit $ac_status); }; }; then
5216
ac_cv_search_pthread_setspecific="none required"
5218
echo "$as_me: failed program was:" >&5
5219
sed 's/^/| /' conftest.$ac_ext >&5
5222
rm -f conftest.err conftest.$ac_objext \
5223
conftest$ac_exeext conftest.$ac_ext
5224
if test "$ac_cv_search_pthread_setspecific" = no; then
5225
for ac_lib in pthreads pthread; do
5226
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5227
cat >conftest.$ac_ext <<_ACEOF
5230
cat confdefs.h >>conftest.$ac_ext
5231
cat >>conftest.$ac_ext <<_ACEOF
5232
/* end confdefs.h. */
5234
/* Override any gcc2 internal prototype to avoid an error. */
5238
/* We use char because int might match the return type of a gcc2
5239
builtin and then its argument prototype would still apply. */
5240
char pthread_setspecific ();
5244
pthread_setspecific ();
5249
rm -f conftest.$ac_objext conftest$ac_exeext
5250
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5251
(eval $ac_link) 2>conftest.er1
5253
grep -v '^ *+' conftest.er1 >conftest.err
5255
cat conftest.err >&5
5256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257
(exit $ac_status); } &&
5258
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5259
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263
(exit $ac_status); }; } &&
5264
{ ac_try='test -s conftest$ac_exeext'
5265
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269
(exit $ac_status); }; }; then
5270
ac_cv_search_pthread_setspecific="-l$ac_lib"
5273
echo "$as_me: failed program was:" >&5
5274
sed 's/^/| /' conftest.$ac_ext >&5
5277
rm -f conftest.err conftest.$ac_objext \
5278
conftest$ac_exeext conftest.$ac_ext
5281
LIBS=$ac_func_search_save_LIBS
5283
echo "$as_me:$LINENO: result: $ac_cv_search_pthread_setspecific" >&5
5284
echo "${ECHO_T}$ac_cv_search_pthread_setspecific" >&6
5285
if test "$ac_cv_search_pthread_setspecific" != no; then
5286
test "$ac_cv_search_pthread_setspecific" = "none required" || LIBS="$ac_cv_search_pthread_setspecific $LIBS"
5290
echo "$as_me:$LINENO: checking for krb5int_setspecific in -lkrb5support" >&5
5291
echo $ECHO_N "checking for krb5int_setspecific in -lkrb5support... $ECHO_C" >&6
5292
if test "${ac_cv_lib_krb5support_krb5int_setspecific+set}" = set; then
5293
echo $ECHO_N "(cached) $ECHO_C" >&6
5295
ac_check_lib_save_LIBS=$LIBS
5296
LIBS="-lkrb5support $LIBS"
5297
cat >conftest.$ac_ext <<_ACEOF
5300
cat confdefs.h >>conftest.$ac_ext
5301
cat >>conftest.$ac_ext <<_ACEOF
5302
/* end confdefs.h. */
5304
/* Override any gcc2 internal prototype to avoid an error. */
5308
/* We use char because int might match the return type of a gcc2
5309
builtin and then its argument prototype would still apply. */
5310
char krb5int_setspecific ();
5314
krb5int_setspecific ();
5319
rm -f conftest.$ac_objext conftest$ac_exeext
5320
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5321
(eval $ac_link) 2>conftest.er1
5323
grep -v '^ *+' conftest.er1 >conftest.err
5325
cat conftest.err >&5
5326
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327
(exit $ac_status); } &&
5328
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5329
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333
(exit $ac_status); }; } &&
5334
{ ac_try='test -s conftest$ac_exeext'
5335
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339
(exit $ac_status); }; }; then
5340
ac_cv_lib_krb5support_krb5int_setspecific=yes
5342
echo "$as_me: failed program was:" >&5
5343
sed 's/^/| /' conftest.$ac_ext >&5
5345
ac_cv_lib_krb5support_krb5int_setspecific=no
5347
rm -f conftest.err conftest.$ac_objext \
5348
conftest$ac_exeext conftest.$ac_ext
5349
LIBS=$ac_check_lib_save_LIBS
5351
echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
5352
echo "${ECHO_T}$ac_cv_lib_krb5support_krb5int_setspecific" >&6
5353
if test $ac_cv_lib_krb5support_krb5int_setspecific = yes; then
5354
KRB5EXTRA="$KRB5EXTRA -lkrb5support"
5359
echo "$as_me:$LINENO: checking for krb_get_svc_in_tkt in -lkrb4" >&5
5360
echo $ECHO_N "checking for krb_get_svc_in_tkt in -lkrb4... $ECHO_C" >&6
5361
if test "${ac_cv_lib_krb4_krb_get_svc_in_tkt+set}" = set; then
5362
echo $ECHO_N "(cached) $ECHO_C" >&6
5364
ac_check_lib_save_LIBS=$LIBS
5365
LIBS="-lkrb4 $KRB5EXTRA $LIBS"
5366
cat >conftest.$ac_ext <<_ACEOF
5369
cat confdefs.h >>conftest.$ac_ext
5370
cat >>conftest.$ac_ext <<_ACEOF
5371
/* end confdefs.h. */
5373
/* Override any gcc2 internal prototype to avoid an error. */
5377
/* We use char because int might match the return type of a gcc2
5378
builtin and then its argument prototype would still apply. */
5379
char krb_get_svc_in_tkt ();
5383
krb_get_svc_in_tkt ();
5388
rm -f conftest.$ac_objext conftest$ac_exeext
5389
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5390
(eval $ac_link) 2>conftest.er1
5392
grep -v '^ *+' conftest.er1 >conftest.err
5394
cat conftest.err >&5
5395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396
(exit $ac_status); } &&
5397
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5398
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402
(exit $ac_status); }; } &&
5403
{ ac_try='test -s conftest$ac_exeext'
5404
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408
(exit $ac_status); }; }; then
5409
ac_cv_lib_krb4_krb_get_svc_in_tkt=yes
5411
echo "$as_me: failed program was:" >&5
5412
sed 's/^/| /' conftest.$ac_ext >&5
5414
ac_cv_lib_krb4_krb_get_svc_in_tkt=no
5416
rm -f conftest.err conftest.$ac_objext \
5417
conftest$ac_exeext conftest.$ac_ext
5418
LIBS=$ac_check_lib_save_LIBS
5420
echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_svc_in_tkt" >&5
5421
echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_svc_in_tkt" >&6
5422
if test $ac_cv_lib_krb4_krb_get_svc_in_tkt = yes; then
5423
KRBLIBS="-lkrb4 $KRB5EXTRA"
5425
{ { echo "$as_me:$LINENO: error: cannot find usable Kerberos v4 library" >&5
5426
echo "$as_me: error: cannot find usable Kerberos v4 library" >&2;}
5427
{ (exit 1); exit 1; }; }
5432
*) { { echo "$as_me:$LINENO: error: BUG: unknown library type krb5" >&5
5433
echo "$as_me: error: BUG: unknown library type krb5" >&2;}
5434
{ (exit 1); exit 1; }; } ;;
5437
if test x"$KRBCPPFLAGS" != x ; then
5438
CPPFLAGS="$CPPFLAGS $KRBCPPFLAGS"
5442
if test x"$static" = xtrue ; then
5443
LIBS="-Wl,-Bstatic $KRBLIBS -Wl,-Bdynamic $LIBS"
5445
LIBS="$KRBLIBS $LIBS"
5447
CPPFLAGS=`echo "$CPPFLAGS" | sed 's/^ *//'`
5448
LDFLAGS=`echo "$LDFLAGS" | sed 's/^ *//'`
5452
for ac_header in gssapi.h
5454
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5455
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5456
echo "$as_me:$LINENO: checking for $ac_header" >&5
5457
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5458
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5459
echo $ECHO_N "(cached) $ECHO_C" >&6
5461
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5462
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5464
# Is the header compilable?
5465
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5466
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5467
cat >conftest.$ac_ext <<_ACEOF
5470
cat confdefs.h >>conftest.$ac_ext
5471
cat >>conftest.$ac_ext <<_ACEOF
5472
/* end confdefs.h. */
5473
$ac_includes_default
5474
#include <$ac_header>
5476
rm -f conftest.$ac_objext
5477
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5478
(eval $ac_compile) 2>conftest.er1
5480
grep -v '^ *+' conftest.er1 >conftest.err
5482
cat conftest.err >&5
5483
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484
(exit $ac_status); } &&
5485
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5486
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490
(exit $ac_status); }; } &&
5491
{ ac_try='test -s conftest.$ac_objext'
5492
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496
(exit $ac_status); }; }; then
5497
ac_header_compiler=yes
5499
echo "$as_me: failed program was:" >&5
5500
sed 's/^/| /' conftest.$ac_ext >&5
5502
ac_header_compiler=no
5504
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5505
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5506
echo "${ECHO_T}$ac_header_compiler" >&6
5508
# Is the header present?
5509
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5510
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5511
cat >conftest.$ac_ext <<_ACEOF
5514
cat confdefs.h >>conftest.$ac_ext
5515
cat >>conftest.$ac_ext <<_ACEOF
5516
/* end confdefs.h. */
5517
#include <$ac_header>
5519
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5520
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5522
grep -v '^ *+' conftest.er1 >conftest.err
5524
cat conftest.err >&5
5525
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526
(exit $ac_status); } >/dev/null; then
5527
if test -s conftest.err; then
5528
ac_cpp_err=$ac_c_preproc_warn_flag
5529
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5536
if test -z "$ac_cpp_err"; then
5537
ac_header_preproc=yes
5539
echo "$as_me: failed program was:" >&5
5540
sed 's/^/| /' conftest.$ac_ext >&5
5542
ac_header_preproc=no
5544
rm -f conftest.err conftest.$ac_ext
5545
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5546
echo "${ECHO_T}$ac_header_preproc" >&6
5548
# So? What about this header?
5549
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5551
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5552
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5553
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5554
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5555
ac_header_preproc=yes
5558
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5559
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5560
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5561
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5562
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5563
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5564
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5565
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5566
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5567
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5568
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5569
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5572
## ------------------------------- ##
5573
## Report this to rra@stanford.edu ##
5574
## ------------------------------- ##
5577
sed "s/^/$as_me: WARNING: /" >&2
5580
echo "$as_me:$LINENO: checking for $ac_header" >&5
5581
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5582
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5583
echo $ECHO_N "(cached) $ECHO_C" >&6
5585
eval "$as_ac_Header=\$ac_header_preproc"
5587
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5588
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5591
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5592
cat >>confdefs.h <<_ACEOF
5593
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5600
echo "$as_me:$LINENO: checking whether GSS_C_NT_USER_NAME is declared" >&5
5601
echo $ECHO_N "checking whether GSS_C_NT_USER_NAME is declared... $ECHO_C" >&6
5602
if test "${ac_cv_have_decl_GSS_C_NT_USER_NAME+set}" = set; then
5603
echo $ECHO_N "(cached) $ECHO_C" >&6
5605
cat >conftest.$ac_ext <<_ACEOF
5608
cat confdefs.h >>conftest.$ac_ext
5609
cat >>conftest.$ac_ext <<_ACEOF
5610
/* end confdefs.h. */
5611
#ifdef HAVE_GSSAPI_H
5612
# include <gssapi.h>
5614
# include <gssapi/gssapi.h>
5621
#ifndef GSS_C_NT_USER_NAME
5622
char *p = (char *) GSS_C_NT_USER_NAME;
5629
rm -f conftest.$ac_objext
5630
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5631
(eval $ac_compile) 2>conftest.er1
5633
grep -v '^ *+' conftest.er1 >conftest.err
5635
cat conftest.err >&5
5636
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637
(exit $ac_status); } &&
5638
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5639
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643
(exit $ac_status); }; } &&
5644
{ ac_try='test -s conftest.$ac_objext'
5645
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649
(exit $ac_status); }; }; then
5650
ac_cv_have_decl_GSS_C_NT_USER_NAME=yes
5652
echo "$as_me: failed program was:" >&5
5653
sed 's/^/| /' conftest.$ac_ext >&5
5655
ac_cv_have_decl_GSS_C_NT_USER_NAME=no
5657
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5659
echo "$as_me:$LINENO: result: $ac_cv_have_decl_GSS_C_NT_USER_NAME" >&5
5660
echo "${ECHO_T}$ac_cv_have_decl_GSS_C_NT_USER_NAME" >&6
5661
if test $ac_cv_have_decl_GSS_C_NT_USER_NAME = yes; then
5663
cat >>confdefs.h <<\_ACEOF
5664
#define HAVE_GSS_RFC_OIDS 1
5669
echo "$as_me:$LINENO: checking whether GSS_KRB5_MECHANISM is declared" >&5
5670
echo $ECHO_N "checking whether GSS_KRB5_MECHANISM is declared... $ECHO_C" >&6
5671
if test "${ac_cv_have_decl_GSS_KRB5_MECHANISM+set}" = set; then
5672
echo $ECHO_N "(cached) $ECHO_C" >&6
5674
cat >conftest.$ac_ext <<_ACEOF
5677
cat confdefs.h >>conftest.$ac_ext
5678
cat >>conftest.$ac_ext <<_ACEOF
5679
/* end confdefs.h. */
5680
#ifdef HAVE_GSSAPI_H
5681
# include <gssapi.h>
5683
# include <gssapi/gssapi.h>
5690
#ifndef GSS_KRB5_MECHANISM
5691
char *p = (char *) GSS_KRB5_MECHANISM;
5698
rm -f conftest.$ac_objext
5699
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5700
(eval $ac_compile) 2>conftest.er1
5702
grep -v '^ *+' conftest.er1 >conftest.err
5704
cat conftest.err >&5
5705
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706
(exit $ac_status); } &&
5707
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5708
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712
(exit $ac_status); }; } &&
5713
{ ac_try='test -s conftest.$ac_objext'
5714
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718
(exit $ac_status); }; }; then
5719
ac_cv_have_decl_GSS_KRB5_MECHANISM=yes
5721
echo "$as_me: failed program was:" >&5
5722
sed 's/^/| /' conftest.$ac_ext >&5
5724
ac_cv_have_decl_GSS_KRB5_MECHANISM=no
5726
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5728
echo "$as_me:$LINENO: result: $ac_cv_have_decl_GSS_KRB5_MECHANISM" >&5
5729
echo "${ECHO_T}$ac_cv_have_decl_GSS_KRB5_MECHANISM" >&6
5730
if test $ac_cv_have_decl_GSS_KRB5_MECHANISM = yes; then
5732
cat >>confdefs.h <<_ACEOF
5733
#define HAVE_DECL_GSS_KRB5_MECHANISM 1
5738
cat >>confdefs.h <<_ACEOF
5739
#define HAVE_DECL_GSS_KRB5_MECHANISM 0
5747
for ac_header in et/com_err.h
5749
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5750
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5751
echo "$as_me:$LINENO: checking for $ac_header" >&5
5752
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5753
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5754
echo $ECHO_N "(cached) $ECHO_C" >&6
5756
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5757
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5759
# Is the header compilable?
5760
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5761
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5762
cat >conftest.$ac_ext <<_ACEOF
5765
cat confdefs.h >>conftest.$ac_ext
5766
cat >>conftest.$ac_ext <<_ACEOF
5767
/* end confdefs.h. */
5768
$ac_includes_default
5769
#include <$ac_header>
5771
rm -f conftest.$ac_objext
5772
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5773
(eval $ac_compile) 2>conftest.er1
5775
grep -v '^ *+' conftest.er1 >conftest.err
5777
cat conftest.err >&5
5778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779
(exit $ac_status); } &&
5780
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5781
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785
(exit $ac_status); }; } &&
5786
{ ac_try='test -s conftest.$ac_objext'
5787
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791
(exit $ac_status); }; }; then
5792
ac_header_compiler=yes
5794
echo "$as_me: failed program was:" >&5
5795
sed 's/^/| /' conftest.$ac_ext >&5
5797
ac_header_compiler=no
5799
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5800
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5801
echo "${ECHO_T}$ac_header_compiler" >&6
5803
# Is the header present?
5804
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5805
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5806
cat >conftest.$ac_ext <<_ACEOF
5809
cat confdefs.h >>conftest.$ac_ext
5810
cat >>conftest.$ac_ext <<_ACEOF
5811
/* end confdefs.h. */
5812
#include <$ac_header>
5814
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5815
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5817
grep -v '^ *+' conftest.er1 >conftest.err
5819
cat conftest.err >&5
5820
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821
(exit $ac_status); } >/dev/null; then
5822
if test -s conftest.err; then
5823
ac_cpp_err=$ac_c_preproc_warn_flag
5824
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5831
if test -z "$ac_cpp_err"; then
5832
ac_header_preproc=yes
5834
echo "$as_me: failed program was:" >&5
5835
sed 's/^/| /' conftest.$ac_ext >&5
5837
ac_header_preproc=no
5839
rm -f conftest.err conftest.$ac_ext
5840
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5841
echo "${ECHO_T}$ac_header_preproc" >&6
5843
# So? What about this header?
5844
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5846
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5847
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5848
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5849
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5850
ac_header_preproc=yes
5853
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5854
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5855
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5856
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5857
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5858
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5859
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5860
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5861
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5862
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5863
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5864
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5867
## ------------------------------- ##
5868
## Report this to rra@stanford.edu ##
5869
## ------------------------------- ##
5872
sed "s/^/$as_me: WARNING: /" >&2
5875
echo "$as_me:$LINENO: checking for $ac_header" >&5
5876
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5877
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5878
echo $ECHO_N "(cached) $ECHO_C" >&6
5880
eval "$as_ac_Header=\$ac_header_preproc"
5882
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5883
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5886
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5887
cat >>confdefs.h <<_ACEOF
5888
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5896
for ac_func in krb5_free_keytab_entry_contents
5898
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5899
echo "$as_me:$LINENO: checking for $ac_func" >&5
5900
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5901
if eval "test \"\${$as_ac_var+set}\" = set"; then
5902
echo $ECHO_N "(cached) $ECHO_C" >&6
5904
cat >conftest.$ac_ext <<_ACEOF
5907
cat confdefs.h >>conftest.$ac_ext
5908
cat >>conftest.$ac_ext <<_ACEOF
5909
/* end confdefs.h. */
5910
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5911
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5912
#define $ac_func innocuous_$ac_func
5914
/* System header to define __stub macros and hopefully few prototypes,
5915
which can conflict with char $ac_func (); below.
5916
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5917
<limits.h> exists even on freestanding compilers. */
5920
# include <limits.h>
5922
# include <assert.h>
5927
/* Override any gcc2 internal prototype to avoid an error. */
5932
/* We use char because int might match the return type of a gcc2
5933
builtin and then its argument prototype would still apply. */
5935
/* The GNU C library defines this for functions which it implements
5936
to always fail with ENOSYS. Some functions are actually named
5937
something starting with __ and the normal name is an alias. */
5938
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5941
char (*f) () = $ac_func;
5950
return f != $ac_func;
5955
rm -f conftest.$ac_objext conftest$ac_exeext
5956
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5957
(eval $ac_link) 2>conftest.er1
5959
grep -v '^ *+' conftest.er1 >conftest.err
5961
cat conftest.err >&5
5962
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963
(exit $ac_status); } &&
5964
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5965
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969
(exit $ac_status); }; } &&
5970
{ ac_try='test -s conftest$ac_exeext'
5971
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975
(exit $ac_status); }; }; then
5976
eval "$as_ac_var=yes"
5978
echo "$as_me: failed program was:" >&5
5979
sed 's/^/| /' conftest.$ac_ext >&5
5981
eval "$as_ac_var=no"
5983
rm -f conftest.err conftest.$ac_objext \
5984
conftest$ac_exeext conftest.$ac_ext
5986
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5987
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5988
if test `eval echo '${'$as_ac_var'}'` = yes; then
5989
cat >>confdefs.h <<_ACEOF
5990
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5996
echo "$as_me:$LINENO: checking for krb5_realm" >&5
5997
echo $ECHO_N "checking for krb5_realm... $ECHO_C" >&6
5998
if test "${ac_cv_type_krb5_realm+set}" = set; then
5999
echo $ECHO_N "(cached) $ECHO_C" >&6
6001
cat >conftest.$ac_ext <<_ACEOF
6004
cat confdefs.h >>conftest.$ac_ext
6005
cat >>conftest.$ac_ext <<_ACEOF
6006
/* end confdefs.h. */
6012
if ((krb5_realm *) 0)
6014
if (sizeof (krb5_realm))
6020
rm -f conftest.$ac_objext
6021
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6022
(eval $ac_compile) 2>conftest.er1
6024
grep -v '^ *+' conftest.er1 >conftest.err
6026
cat conftest.err >&5
6027
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028
(exit $ac_status); } &&
6029
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6030
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034
(exit $ac_status); }; } &&
6035
{ ac_try='test -s conftest.$ac_objext'
6036
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6039
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040
(exit $ac_status); }; }; then
6041
ac_cv_type_krb5_realm=yes
6043
echo "$as_me: failed program was:" >&5
6044
sed 's/^/| /' conftest.$ac_ext >&5
6046
ac_cv_type_krb5_realm=no
6048
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6050
echo "$as_me:$LINENO: result: $ac_cv_type_krb5_realm" >&5
6051
echo "${ECHO_T}$ac_cv_type_krb5_realm" >&6
6052
if test $ac_cv_type_krb5_realm = yes; then
6054
cat >>confdefs.h <<_ACEOF
6055
#define HAVE_KRB5_REALM 1
6062
for ac_header in kerberosIV/krb.h
6064
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6065
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6066
echo "$as_me:$LINENO: checking for $ac_header" >&5
6067
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6068
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6069
echo $ECHO_N "(cached) $ECHO_C" >&6
6071
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6072
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6074
# Is the header compilable?
6075
echo "$as_me:$LINENO: checking $ac_header usability" >&5
6076
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6077
cat >conftest.$ac_ext <<_ACEOF
6080
cat confdefs.h >>conftest.$ac_ext
6081
cat >>conftest.$ac_ext <<_ACEOF
6082
/* end confdefs.h. */
6083
$ac_includes_default
6084
#include <$ac_header>
6086
rm -f conftest.$ac_objext
6087
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6088
(eval $ac_compile) 2>conftest.er1
6090
grep -v '^ *+' conftest.er1 >conftest.err
6092
cat conftest.err >&5
6093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094
(exit $ac_status); } &&
6095
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6096
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6099
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100
(exit $ac_status); }; } &&
6101
{ ac_try='test -s conftest.$ac_objext'
6102
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106
(exit $ac_status); }; }; then
6107
ac_header_compiler=yes
6109
echo "$as_me: failed program was:" >&5
6110
sed 's/^/| /' conftest.$ac_ext >&5
6112
ac_header_compiler=no
6114
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6115
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6116
echo "${ECHO_T}$ac_header_compiler" >&6
6118
# Is the header present?
6119
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6120
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6121
cat >conftest.$ac_ext <<_ACEOF
6124
cat confdefs.h >>conftest.$ac_ext
6125
cat >>conftest.$ac_ext <<_ACEOF
6126
/* end confdefs.h. */
6127
#include <$ac_header>
6129
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6130
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6132
grep -v '^ *+' conftest.er1 >conftest.err
6134
cat conftest.err >&5
6135
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136
(exit $ac_status); } >/dev/null; then
6137
if test -s conftest.err; then
6138
ac_cpp_err=$ac_c_preproc_warn_flag
6139
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6146
if test -z "$ac_cpp_err"; then
6147
ac_header_preproc=yes
6149
echo "$as_me: failed program was:" >&5
6150
sed 's/^/| /' conftest.$ac_ext >&5
6152
ac_header_preproc=no
6154
rm -f conftest.err conftest.$ac_ext
6155
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6156
echo "${ECHO_T}$ac_header_preproc" >&6
6158
# So? What about this header?
6159
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6161
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6162
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6163
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6164
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6165
ac_header_preproc=yes
6168
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6169
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6170
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6171
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6172
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6173
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6174
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6175
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6176
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6177
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6178
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6179
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6182
## ------------------------------- ##
6183
## Report this to rra@stanford.edu ##
6184
## ------------------------------- ##
6187
sed "s/^/$as_me: WARNING: /" >&2
6190
echo "$as_me:$LINENO: checking for $ac_header" >&5
6191
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6192
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6193
echo $ECHO_N "(cached) $ECHO_C" >&6
6195
eval "$as_ac_Header=\$ac_header_preproc"
6197
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6198
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6201
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6202
cat >>confdefs.h <<_ACEOF
6203
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6213
for ac_func in krb5_get_init_creds_opt_set_default_flags krb5_err
6215
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6216
echo "$as_me:$LINENO: checking for $ac_func" >&5
6217
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6218
if eval "test \"\${$as_ac_var+set}\" = set"; then
6219
echo $ECHO_N "(cached) $ECHO_C" >&6
6221
cat >conftest.$ac_ext <<_ACEOF
6224
cat confdefs.h >>conftest.$ac_ext
6225
cat >>conftest.$ac_ext <<_ACEOF
6226
/* end confdefs.h. */
6227
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6228
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6229
#define $ac_func innocuous_$ac_func
6231
/* System header to define __stub macros and hopefully few prototypes,
6232
which can conflict with char $ac_func (); below.
6233
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6234
<limits.h> exists even on freestanding compilers. */
6237
# include <limits.h>
6239
# include <assert.h>
6244
/* Override any gcc2 internal prototype to avoid an error. */
6249
/* We use char because int might match the return type of a gcc2
6250
builtin and then its argument prototype would still apply. */
6252
/* The GNU C library defines this for functions which it implements
6253
to always fail with ENOSYS. Some functions are actually named
6254
something starting with __ and the normal name is an alias. */
6255
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6258
char (*f) () = $ac_func;
6267
return f != $ac_func;
6272
rm -f conftest.$ac_objext conftest$ac_exeext
6273
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6274
(eval $ac_link) 2>conftest.er1
6276
grep -v '^ *+' conftest.er1 >conftest.err
6278
cat conftest.err >&5
6279
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280
(exit $ac_status); } &&
6281
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6282
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286
(exit $ac_status); }; } &&
6287
{ ac_try='test -s conftest$ac_exeext'
6288
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292
(exit $ac_status); }; }; then
6293
eval "$as_ac_var=yes"
6295
echo "$as_me: failed program was:" >&5
6296
sed 's/^/| /' conftest.$ac_ext >&5
6298
eval "$as_ac_var=no"
6300
rm -f conftest.err conftest.$ac_objext \
6301
conftest$ac_exeext conftest.$ac_ext
6303
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6304
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6305
if test `eval echo '${'$as_ac_var'}'` = yes; then
6306
cat >>confdefs.h <<_ACEOF
6307
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6318
if test x"$K4START" != x ; then
6322
# Check whether --with-kerberos or --without-kerberos was given.
6323
if test "${with_kerberos+set}" = set; then
6324
withval="$with_kerberos"
6325
if test x"$withval" != xno ; then
6330
reduce_depends=false
6331
# Check whether --enable-reduced-depends or --disable-reduced-depends was given.
6332
if test "${enable_reduced_depends+set}" = set; then
6333
enableval="$enable_reduced_depends"
6334
if test x"$enableval" = xyes ; then
6335
if test x"$KRBROOT" != x ; then
6336
if test x"$KRBROOT" != x/usr ; then
6337
CPPFLAGS="-I$KRBROOT/include"
6339
LDFLAGS="$LDFLAGS -L$KRBROOT/lib"
6342
gssapi) echo "$as_me:$LINENO: checking for gss_import_name in -lgssapi" >&5
6343
echo $ECHO_N "checking for gss_import_name in -lgssapi... $ECHO_C" >&6
6344
if test "${ac_cv_lib_gssapi_gss_import_name+set}" = set; then
6345
echo $ECHO_N "(cached) $ECHO_C" >&6
6347
ac_check_lib_save_LIBS=$LIBS
6348
LIBS="-lgssapi $LIBS"
6349
cat >conftest.$ac_ext <<_ACEOF
6352
cat confdefs.h >>conftest.$ac_ext
6353
cat >>conftest.$ac_ext <<_ACEOF
6354
/* end confdefs.h. */
6356
/* Override any gcc2 internal prototype to avoid an error. */
6360
/* We use char because int might match the return type of a gcc2
6361
builtin and then its argument prototype would still apply. */
6362
char gss_import_name ();
6371
rm -f conftest.$ac_objext conftest$ac_exeext
6372
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6373
(eval $ac_link) 2>conftest.er1
6375
grep -v '^ *+' conftest.er1 >conftest.err
6377
cat conftest.err >&5
6378
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379
(exit $ac_status); } &&
6380
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6381
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385
(exit $ac_status); }; } &&
6386
{ ac_try='test -s conftest$ac_exeext'
6387
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391
(exit $ac_status); }; }; then
6392
ac_cv_lib_gssapi_gss_import_name=yes
6394
echo "$as_me: failed program was:" >&5
6395
sed 's/^/| /' conftest.$ac_ext >&5
6397
ac_cv_lib_gssapi_gss_import_name=no
6399
rm -f conftest.err conftest.$ac_objext \
6400
conftest$ac_exeext conftest.$ac_ext
6401
LIBS=$ac_check_lib_save_LIBS
6403
echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_import_name" >&5
6404
echo "${ECHO_T}$ac_cv_lib_gssapi_gss_import_name" >&6
6405
if test $ac_cv_lib_gssapi_gss_import_name = yes; then
6408
echo "$as_me:$LINENO: checking for gss_import_name in -lgssapi_krb5" >&5
6409
echo $ECHO_N "checking for gss_import_name in -lgssapi_krb5... $ECHO_C" >&6
6410
if test "${ac_cv_lib_gssapi_krb5_gss_import_name+set}" = set; then
6411
echo $ECHO_N "(cached) $ECHO_C" >&6
6413
ac_check_lib_save_LIBS=$LIBS
6414
LIBS="-lgssapi_krb5 $LIBS"
6415
cat >conftest.$ac_ext <<_ACEOF
6418
cat confdefs.h >>conftest.$ac_ext
6419
cat >>conftest.$ac_ext <<_ACEOF
6420
/* end confdefs.h. */
6422
/* Override any gcc2 internal prototype to avoid an error. */
6426
/* We use char because int might match the return type of a gcc2
6427
builtin and then its argument prototype would still apply. */
6428
char gss_import_name ();
6437
rm -f conftest.$ac_objext conftest$ac_exeext
6438
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6439
(eval $ac_link) 2>conftest.er1
6441
grep -v '^ *+' conftest.er1 >conftest.err
6443
cat conftest.err >&5
6444
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445
(exit $ac_status); } &&
6446
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6447
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451
(exit $ac_status); }; } &&
6452
{ ac_try='test -s conftest$ac_exeext'
6453
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457
(exit $ac_status); }; }; then
6458
ac_cv_lib_gssapi_krb5_gss_import_name=yes
6460
echo "$as_me: failed program was:" >&5
6461
sed 's/^/| /' conftest.$ac_ext >&5
6463
ac_cv_lib_gssapi_krb5_gss_import_name=no
6465
rm -f conftest.err conftest.$ac_objext \
6466
conftest$ac_exeext conftest.$ac_ext
6467
LIBS=$ac_check_lib_save_LIBS
6469
echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_import_name" >&5
6470
echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_import_name" >&6
6471
if test $ac_cv_lib_gssapi_krb5_gss_import_name = yes; then
6472
KRBLIBS="-lgssapi_krb5"
6474
{ { echo "$as_me:$LINENO: error: cannot find usable GSSAPI library" >&5
6475
echo "$as_me: error: cannot find usable GSSAPI library" >&2;}
6476
{ (exit 1); exit 1; }; }
6481
krb5) echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
6482
echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
6483
if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
6484
echo $ECHO_N "(cached) $ECHO_C" >&6
6486
ac_check_lib_save_LIBS=$LIBS
6488
cat >conftest.$ac_ext <<_ACEOF
6491
cat confdefs.h >>conftest.$ac_ext
6492
cat >>conftest.$ac_ext <<_ACEOF
6493
/* end confdefs.h. */
6495
/* Override any gcc2 internal prototype to avoid an error. */
6499
/* We use char because int might match the return type of a gcc2
6500
builtin and then its argument prototype would still apply. */
6501
char krb5_init_context ();
6505
krb5_init_context ();
6510
rm -f conftest.$ac_objext conftest$ac_exeext
6511
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6512
(eval $ac_link) 2>conftest.er1
6514
grep -v '^ *+' conftest.er1 >conftest.err
6516
cat conftest.err >&5
6517
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518
(exit $ac_status); } &&
6519
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6520
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524
(exit $ac_status); }; } &&
6525
{ ac_try='test -s conftest$ac_exeext'
6526
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530
(exit $ac_status); }; }; then
6531
ac_cv_lib_krb5_krb5_init_context=yes
6533
echo "$as_me: failed program was:" >&5
6534
sed 's/^/| /' conftest.$ac_ext >&5
6536
ac_cv_lib_krb5_krb5_init_context=no
6538
rm -f conftest.err conftest.$ac_objext \
6539
conftest$ac_exeext conftest.$ac_ext
6540
LIBS=$ac_check_lib_save_LIBS
6542
echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
6543
echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
6544
if test $ac_cv_lib_krb5_krb5_init_context = yes; then
6547
{ { echo "$as_me:$LINENO: error: cannot find usable Kerberos v5 library" >&5
6548
echo "$as_me: error: cannot find usable Kerberos v5 library" >&2;}
6549
{ (exit 1); exit 1; }; }
6552
echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
6553
echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
6554
if test "${ac_cv_lib_com_err_com_err+set}" = set; then
6555
echo $ECHO_N "(cached) $ECHO_C" >&6
6557
ac_check_lib_save_LIBS=$LIBS
6558
LIBS="-lcom_err $LIBS"
6559
cat >conftest.$ac_ext <<_ACEOF
6562
cat confdefs.h >>conftest.$ac_ext
6563
cat >>conftest.$ac_ext <<_ACEOF
6564
/* end confdefs.h. */
6566
/* Override any gcc2 internal prototype to avoid an error. */
6570
/* We use char because int might match the return type of a gcc2
6571
builtin and then its argument prototype would still apply. */
6581
rm -f conftest.$ac_objext conftest$ac_exeext
6582
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6583
(eval $ac_link) 2>conftest.er1
6585
grep -v '^ *+' conftest.er1 >conftest.err
6587
cat conftest.err >&5
6588
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589
(exit $ac_status); } &&
6590
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6591
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595
(exit $ac_status); }; } &&
6596
{ ac_try='test -s conftest$ac_exeext'
6597
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601
(exit $ac_status); }; }; then
6602
ac_cv_lib_com_err_com_err=yes
6604
echo "$as_me: failed program was:" >&5
6605
sed 's/^/| /' conftest.$ac_ext >&5
6607
ac_cv_lib_com_err_com_err=no
6609
rm -f conftest.err conftest.$ac_objext \
6610
conftest$ac_exeext conftest.$ac_ext
6611
LIBS=$ac_check_lib_save_LIBS
6613
echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
6614
echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
6615
if test $ac_cv_lib_com_err_com_err = yes; then
6616
KRBLIBS="$KRBLIBS -lcom_err"
6618
{ { echo "$as_me:$LINENO: error: cannot find usable com_err library" >&5
6619
echo "$as_me: error: cannot find usable com_err library" >&2;}
6620
{ (exit 1); exit 1; }; }
6623
krb4) echo "$as_me:$LINENO: checking for krb_get_svc_in_tkt in -lkrb4" >&5
6624
echo $ECHO_N "checking for krb_get_svc_in_tkt in -lkrb4... $ECHO_C" >&6
6625
if test "${ac_cv_lib_krb4_krb_get_svc_in_tkt+set}" = set; then
6626
echo $ECHO_N "(cached) $ECHO_C" >&6
6628
ac_check_lib_save_LIBS=$LIBS
6630
cat >conftest.$ac_ext <<_ACEOF
6633
cat confdefs.h >>conftest.$ac_ext
6634
cat >>conftest.$ac_ext <<_ACEOF
6635
/* end confdefs.h. */
6637
/* Override any gcc2 internal prototype to avoid an error. */
6641
/* We use char because int might match the return type of a gcc2
6642
builtin and then its argument prototype would still apply. */
6643
char krb_get_svc_in_tkt ();
6647
krb_get_svc_in_tkt ();
6652
rm -f conftest.$ac_objext conftest$ac_exeext
6653
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6654
(eval $ac_link) 2>conftest.er1
6656
grep -v '^ *+' conftest.er1 >conftest.err
6658
cat conftest.err >&5
6659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660
(exit $ac_status); } &&
6661
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6662
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666
(exit $ac_status); }; } &&
6667
{ ac_try='test -s conftest$ac_exeext'
6668
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672
(exit $ac_status); }; }; then
6673
ac_cv_lib_krb4_krb_get_svc_in_tkt=yes
6675
echo "$as_me: failed program was:" >&5
6676
sed 's/^/| /' conftest.$ac_ext >&5
6678
ac_cv_lib_krb4_krb_get_svc_in_tkt=no
6680
rm -f conftest.err conftest.$ac_objext \
6681
conftest$ac_exeext conftest.$ac_ext
6682
LIBS=$ac_check_lib_save_LIBS
6684
echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_svc_in_tkt" >&5
6685
echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_svc_in_tkt" >&6
6686
if test $ac_cv_lib_krb4_krb_get_svc_in_tkt = yes; then
6689
echo "$as_me:$LINENO: checking for krb_get_svc_in_tkt in -lkrb" >&5
6690
echo $ECHO_N "checking for krb_get_svc_in_tkt in -lkrb... $ECHO_C" >&6
6691
if test "${ac_cv_lib_krb_krb_get_svc_in_tkt+set}" = set; then
6692
echo $ECHO_N "(cached) $ECHO_C" >&6
6694
ac_check_lib_save_LIBS=$LIBS
6696
cat >conftest.$ac_ext <<_ACEOF
6699
cat confdefs.h >>conftest.$ac_ext
6700
cat >>conftest.$ac_ext <<_ACEOF
6701
/* end confdefs.h. */
6703
/* Override any gcc2 internal prototype to avoid an error. */
6707
/* We use char because int might match the return type of a gcc2
6708
builtin and then its argument prototype would still apply. */
6709
char krb_get_svc_in_tkt ();
6713
krb_get_svc_in_tkt ();
6718
rm -f conftest.$ac_objext conftest$ac_exeext
6719
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6720
(eval $ac_link) 2>conftest.er1
6722
grep -v '^ *+' conftest.er1 >conftest.err
6724
cat conftest.err >&5
6725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726
(exit $ac_status); } &&
6727
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6728
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732
(exit $ac_status); }; } &&
6733
{ ac_try='test -s conftest$ac_exeext'
6734
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738
(exit $ac_status); }; }; then
6739
ac_cv_lib_krb_krb_get_svc_in_tkt=yes
6741
echo "$as_me: failed program was:" >&5
6742
sed 's/^/| /' conftest.$ac_ext >&5
6744
ac_cv_lib_krb_krb_get_svc_in_tkt=no
6746
rm -f conftest.err conftest.$ac_objext \
6747
conftest$ac_exeext conftest.$ac_ext
6748
LIBS=$ac_check_lib_save_LIBS
6750
echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_svc_in_tkt" >&5
6751
echo "${ECHO_T}$ac_cv_lib_krb_krb_get_svc_in_tkt" >&6
6752
if test $ac_cv_lib_krb_krb_get_svc_in_tkt = yes; then
6755
{ { echo "$as_me:$LINENO: error: cannot find usable Kerberos v4 library" >&5
6756
echo "$as_me: error: cannot find usable Kerberos v4 library" >&2;}
6757
{ (exit 1); exit 1; }; }
6762
*) { { echo "$as_me:$LINENO: error: BUG: unknown library type krb4" >&5
6763
echo "$as_me: error: BUG: unknown library type krb4" >&2;}
6764
{ (exit 1); exit 1; }; } ;;
6771
# Check whether --enable-static or --disable-static was given.
6772
if test "${enable_static+set}" = set; then
6773
enableval="$enable_static"
6774
if test x"$enableval" = xyes ; then
6775
if test x"$reduce_depends" = xtrue ; then
6776
{ { echo "$as_me:$LINENO: error: --enable-static cannot be used with --enable-reduced-depends" >&5
6777
echo "$as_me: error: --enable-static cannot be used with --enable-reduced-depends" >&2;}
6778
{ (exit 1); exit 1; }; }
6784
if test x"$reduce_depends" != xtrue ; then
6785
if test x"true" = xtrue ; then
6786
echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
6787
echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
6788
if test "${ac_cv_search_gethostbyname+set}" = set; then
6789
echo $ECHO_N "(cached) $ECHO_C" >&6
6791
ac_func_search_save_LIBS=$LIBS
6792
ac_cv_search_gethostbyname=no
6793
cat >conftest.$ac_ext <<_ACEOF
6796
cat confdefs.h >>conftest.$ac_ext
6797
cat >>conftest.$ac_ext <<_ACEOF
6798
/* end confdefs.h. */
6800
/* Override any gcc2 internal prototype to avoid an error. */
6804
/* We use char because int might match the return type of a gcc2
6805
builtin and then its argument prototype would still apply. */
6806
char gethostbyname ();
6815
rm -f conftest.$ac_objext conftest$ac_exeext
6816
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6817
(eval $ac_link) 2>conftest.er1
6819
grep -v '^ *+' conftest.er1 >conftest.err
6821
cat conftest.err >&5
6822
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823
(exit $ac_status); } &&
6824
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6825
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829
(exit $ac_status); }; } &&
6830
{ ac_try='test -s conftest$ac_exeext'
6831
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835
(exit $ac_status); }; }; then
6836
ac_cv_search_gethostbyname="none required"
6838
echo "$as_me: failed program was:" >&5
6839
sed 's/^/| /' conftest.$ac_ext >&5
6842
rm -f conftest.err conftest.$ac_objext \
6843
conftest$ac_exeext conftest.$ac_ext
6844
if test "$ac_cv_search_gethostbyname" = no; then
6845
for ac_lib in nsl; do
6846
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6847
cat >conftest.$ac_ext <<_ACEOF
6850
cat confdefs.h >>conftest.$ac_ext
6851
cat >>conftest.$ac_ext <<_ACEOF
6852
/* end confdefs.h. */
6854
/* Override any gcc2 internal prototype to avoid an error. */
6858
/* We use char because int might match the return type of a gcc2
6859
builtin and then its argument prototype would still apply. */
6860
char gethostbyname ();
6869
rm -f conftest.$ac_objext conftest$ac_exeext
6870
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6871
(eval $ac_link) 2>conftest.er1
6873
grep -v '^ *+' conftest.er1 >conftest.err
6875
cat conftest.err >&5
6876
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877
(exit $ac_status); } &&
6878
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6879
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883
(exit $ac_status); }; } &&
6884
{ ac_try='test -s conftest$ac_exeext'
6885
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889
(exit $ac_status); }; }; then
6890
ac_cv_search_gethostbyname="-l$ac_lib"
6893
echo "$as_me: failed program was:" >&5
6894
sed 's/^/| /' conftest.$ac_ext >&5
6897
rm -f conftest.err conftest.$ac_objext \
6898
conftest$ac_exeext conftest.$ac_ext
6901
LIBS=$ac_func_search_save_LIBS
6903
echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6904
echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
6905
if test "$ac_cv_search_gethostbyname" != no; then
6906
test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
6910
echo "$as_me:$LINENO: checking for library containing socket" >&5
6911
echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
6912
if test "${ac_cv_search_socket+set}" = set; then
6913
echo $ECHO_N "(cached) $ECHO_C" >&6
6915
ac_func_search_save_LIBS=$LIBS
6916
ac_cv_search_socket=no
6917
cat >conftest.$ac_ext <<_ACEOF
6920
cat confdefs.h >>conftest.$ac_ext
6921
cat >>conftest.$ac_ext <<_ACEOF
6922
/* end confdefs.h. */
6924
/* Override any gcc2 internal prototype to avoid an error. */
6928
/* We use char because int might match the return type of a gcc2
6929
builtin and then its argument prototype would still apply. */
6939
rm -f conftest.$ac_objext conftest$ac_exeext
6940
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6941
(eval $ac_link) 2>conftest.er1
6943
grep -v '^ *+' conftest.er1 >conftest.err
6945
cat conftest.err >&5
6946
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947
(exit $ac_status); } &&
6948
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6949
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953
(exit $ac_status); }; } &&
6954
{ ac_try='test -s conftest$ac_exeext'
6955
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959
(exit $ac_status); }; }; then
6960
ac_cv_search_socket="none required"
6962
echo "$as_me: failed program was:" >&5
6963
sed 's/^/| /' conftest.$ac_ext >&5
6966
rm -f conftest.err conftest.$ac_objext \
6967
conftest$ac_exeext conftest.$ac_ext
6968
if test "$ac_cv_search_socket" = no; then
6969
for ac_lib in socket; do
6970
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6971
cat >conftest.$ac_ext <<_ACEOF
6974
cat confdefs.h >>conftest.$ac_ext
6975
cat >>conftest.$ac_ext <<_ACEOF
6976
/* end confdefs.h. */
6978
/* Override any gcc2 internal prototype to avoid an error. */
6982
/* We use char because int might match the return type of a gcc2
6983
builtin and then its argument prototype would still apply. */
6993
rm -f conftest.$ac_objext conftest$ac_exeext
6994
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6995
(eval $ac_link) 2>conftest.er1
6997
grep -v '^ *+' conftest.er1 >conftest.err
6999
cat conftest.err >&5
7000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001
(exit $ac_status); } &&
7002
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7003
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007
(exit $ac_status); }; } &&
7008
{ ac_try='test -s conftest$ac_exeext'
7009
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013
(exit $ac_status); }; }; then
7014
ac_cv_search_socket="-l$ac_lib"
7017
echo "$as_me: failed program was:" >&5
7018
sed 's/^/| /' conftest.$ac_ext >&5
7021
rm -f conftest.err conftest.$ac_objext \
7022
conftest$ac_exeext conftest.$ac_ext
7025
LIBS=$ac_func_search_save_LIBS
7027
echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7028
echo "${ECHO_T}$ac_cv_search_socket" >&6
7029
if test "$ac_cv_search_socket" != no; then
7030
test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
7033
echo "$as_me:$LINENO: checking for socket in -lnsl" >&5
7034
echo $ECHO_N "checking for socket in -lnsl... $ECHO_C" >&6
7035
if test "${ac_cv_lib_nsl_socket+set}" = set; then
7036
echo $ECHO_N "(cached) $ECHO_C" >&6
7038
ac_check_lib_save_LIBS=$LIBS
7039
LIBS="-lnsl -lsocket $LIBS"
7040
cat >conftest.$ac_ext <<_ACEOF
7043
cat confdefs.h >>conftest.$ac_ext
7044
cat >>conftest.$ac_ext <<_ACEOF
7045
/* end confdefs.h. */
7047
/* Override any gcc2 internal prototype to avoid an error. */
7051
/* We use char because int might match the return type of a gcc2
7052
builtin and then its argument prototype would still apply. */
7062
rm -f conftest.$ac_objext conftest$ac_exeext
7063
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7064
(eval $ac_link) 2>conftest.er1
7066
grep -v '^ *+' conftest.er1 >conftest.err
7068
cat conftest.err >&5
7069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070
(exit $ac_status); } &&
7071
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7072
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076
(exit $ac_status); }; } &&
7077
{ ac_try='test -s conftest$ac_exeext'
7078
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082
(exit $ac_status); }; }; then
7083
ac_cv_lib_nsl_socket=yes
7085
echo "$as_me: failed program was:" >&5
7086
sed 's/^/| /' conftest.$ac_ext >&5
7088
ac_cv_lib_nsl_socket=no
7090
rm -f conftest.err conftest.$ac_objext \
7091
conftest$ac_exeext conftest.$ac_ext
7092
LIBS=$ac_check_lib_save_LIBS
7094
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_socket" >&5
7095
echo "${ECHO_T}$ac_cv_lib_nsl_socket" >&6
7096
if test $ac_cv_lib_nsl_socket = yes; then
7097
LIBS="-lnsl -lsocket $LIBS"
7104
if test x"$KRBROOT" != x ; then
7105
if test -x "$KRBROOT/bin/krb5-config" ; then
7106
KRB5_CONFIG="$KRBROOT/bin/krb5-config"
7109
# Extract the first word of "krb5-config", so it can be a program name with args.
7110
set dummy krb5-config; ac_word=$2
7111
echo "$as_me:$LINENO: checking for $ac_word" >&5
7112
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7113
if test "${ac_cv_path_KRB5_CONFIG+set}" = set; then
7114
echo $ECHO_N "(cached) $ECHO_C" >&6
7116
case $KRB5_CONFIG in
7118
ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
7121
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125
test -z "$as_dir" && as_dir=.
7126
for ac_exec_ext in '' $ac_executable_extensions; do
7127
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7128
ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7129
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138
KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
7140
if test -n "$KRB5_CONFIG"; then
7141
echo "$as_me:$LINENO: result: $KRB5_CONFIG" >&5
7142
echo "${ECHO_T}$KRB5_CONFIG" >&6
7144
echo "$as_me:$LINENO: result: no" >&5
7145
echo "${ECHO_T}no" >&6
7150
# We can't use krb5-config if building static since we can't tell what
7151
# of the libraries it gives us should be static and which should be
7153
if test x"$KRB5_CONFIG" != x && test x"$static" != xtrue ; then
7154
echo "$as_me:$LINENO: checking for krb4 support in krb5-config" >&5
7155
echo $ECHO_N "checking for krb4 support in krb5-config... $ECHO_C" >&6
7156
if "$KRB5_CONFIG" | grep 'krb4' > /dev/null 2>&1 ; then
7157
echo "$as_me:$LINENO: result: yes" >&5
7158
echo "${ECHO_T}yes" >&6
7159
KRBCPPFLAGS=`"$KRB5_CONFIG" --cflags 'krb4'`
7160
KRBLIBS=`"$KRB5_CONFIG" --libs 'krb4'`
7162
echo "$as_me:$LINENO: result: no" >&5
7163
echo "${ECHO_T}no" >&6
7164
KRBCPPFLAGS=`"$KRB5_CONFIG" --cflags`
7165
KRBLIBS=`"$KRB5_CONFIG" --libs`
7167
KRBCPPFLAGS=`echo "$KRBCPPFLAGS" | sed 's%-I/usr/include ?%%'`
7169
if test x"$KRBROOT" != x ; then
7170
if test x"$KRBROOT" != x/usr ; then
7171
KRBCPPFLAGS="-I$KRBROOT/include"
7173
LDFLAGS="$LDFLAGS -L$KRBROOT/lib"
7175
echo "$as_me:$LINENO: checking for library containing res_search" >&5
7176
echo $ECHO_N "checking for library containing res_search... $ECHO_C" >&6
7177
if test "${ac_cv_search_res_search+set}" = set; then
7178
echo $ECHO_N "(cached) $ECHO_C" >&6
7180
ac_func_search_save_LIBS=$LIBS
7181
ac_cv_search_res_search=no
7182
cat >conftest.$ac_ext <<_ACEOF
7185
cat confdefs.h >>conftest.$ac_ext
7186
cat >>conftest.$ac_ext <<_ACEOF
7187
/* end confdefs.h. */
7189
/* Override any gcc2 internal prototype to avoid an error. */
7193
/* We use char because int might match the return type of a gcc2
7194
builtin and then its argument prototype would still apply. */
7204
rm -f conftest.$ac_objext conftest$ac_exeext
7205
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7206
(eval $ac_link) 2>conftest.er1
7208
grep -v '^ *+' conftest.er1 >conftest.err
7210
cat conftest.err >&5
7211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212
(exit $ac_status); } &&
7213
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7214
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218
(exit $ac_status); }; } &&
7219
{ ac_try='test -s conftest$ac_exeext'
7220
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224
(exit $ac_status); }; }; then
7225
ac_cv_search_res_search="none required"
7227
echo "$as_me: failed program was:" >&5
7228
sed 's/^/| /' conftest.$ac_ext >&5
7231
rm -f conftest.err conftest.$ac_objext \
7232
conftest$ac_exeext conftest.$ac_ext
7233
if test "$ac_cv_search_res_search" = no; then
7234
for ac_lib in resolv; do
7235
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7236
cat >conftest.$ac_ext <<_ACEOF
7239
cat confdefs.h >>conftest.$ac_ext
7240
cat >>conftest.$ac_ext <<_ACEOF
7241
/* end confdefs.h. */
7243
/* Override any gcc2 internal prototype to avoid an error. */
7247
/* We use char because int might match the return type of a gcc2
7248
builtin and then its argument prototype would still apply. */
7258
rm -f conftest.$ac_objext conftest$ac_exeext
7259
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7260
(eval $ac_link) 2>conftest.er1
7262
grep -v '^ *+' conftest.er1 >conftest.err
7264
cat conftest.err >&5
7265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266
(exit $ac_status); } &&
7267
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7268
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272
(exit $ac_status); }; } &&
7273
{ ac_try='test -s conftest$ac_exeext'
7274
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278
(exit $ac_status); }; }; then
7279
ac_cv_search_res_search="-l$ac_lib"
7282
echo "$as_me: failed program was:" >&5
7283
sed 's/^/| /' conftest.$ac_ext >&5
7286
rm -f conftest.err conftest.$ac_objext \
7287
conftest$ac_exeext conftest.$ac_ext
7290
LIBS=$ac_func_search_save_LIBS
7292
echo "$as_me:$LINENO: result: $ac_cv_search_res_search" >&5
7293
echo "${ECHO_T}$ac_cv_search_res_search" >&6
7294
if test "$ac_cv_search_res_search" != no; then
7295
test "$ac_cv_search_res_search" = "none required" || LIBS="$ac_cv_search_res_search $LIBS"
7298
echo "$as_me:$LINENO: checking for library containing __res_search" >&5
7299
echo $ECHO_N "checking for library containing __res_search... $ECHO_C" >&6
7300
if test "${ac_cv_search___res_search+set}" = set; then
7301
echo $ECHO_N "(cached) $ECHO_C" >&6
7303
ac_func_search_save_LIBS=$LIBS
7304
ac_cv_search___res_search=no
7305
cat >conftest.$ac_ext <<_ACEOF
7308
cat confdefs.h >>conftest.$ac_ext
7309
cat >>conftest.$ac_ext <<_ACEOF
7310
/* end confdefs.h. */
7312
/* Override any gcc2 internal prototype to avoid an error. */
7316
/* We use char because int might match the return type of a gcc2
7317
builtin and then its argument prototype would still apply. */
7318
char __res_search ();
7327
rm -f conftest.$ac_objext conftest$ac_exeext
7328
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7329
(eval $ac_link) 2>conftest.er1
7331
grep -v '^ *+' conftest.er1 >conftest.err
7333
cat conftest.err >&5
7334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335
(exit $ac_status); } &&
7336
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7337
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341
(exit $ac_status); }; } &&
7342
{ ac_try='test -s conftest$ac_exeext'
7343
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347
(exit $ac_status); }; }; then
7348
ac_cv_search___res_search="none required"
7350
echo "$as_me: failed program was:" >&5
7351
sed 's/^/| /' conftest.$ac_ext >&5
7354
rm -f conftest.err conftest.$ac_objext \
7355
conftest$ac_exeext conftest.$ac_ext
7356
if test "$ac_cv_search___res_search" = no; then
7357
for ac_lib in resolv; do
7358
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7359
cat >conftest.$ac_ext <<_ACEOF
7362
cat confdefs.h >>conftest.$ac_ext
7363
cat >>conftest.$ac_ext <<_ACEOF
7364
/* end confdefs.h. */
7366
/* Override any gcc2 internal prototype to avoid an error. */
7370
/* We use char because int might match the return type of a gcc2
7371
builtin and then its argument prototype would still apply. */
7372
char __res_search ();
7381
rm -f conftest.$ac_objext conftest$ac_exeext
7382
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7383
(eval $ac_link) 2>conftest.er1
7385
grep -v '^ *+' conftest.er1 >conftest.err
7387
cat conftest.err >&5
7388
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389
(exit $ac_status); } &&
7390
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7391
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395
(exit $ac_status); }; } &&
7396
{ ac_try='test -s conftest$ac_exeext'
7397
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401
(exit $ac_status); }; }; then
7402
ac_cv_search___res_search="-l$ac_lib"
7405
echo "$as_me: failed program was:" >&5
7406
sed 's/^/| /' conftest.$ac_ext >&5
7409
rm -f conftest.err conftest.$ac_objext \
7410
conftest$ac_exeext conftest.$ac_ext
7413
LIBS=$ac_func_search_save_LIBS
7415
echo "$as_me:$LINENO: result: $ac_cv_search___res_search" >&5
7416
echo "${ECHO_T}$ac_cv_search___res_search" >&6
7417
if test "$ac_cv_search___res_search" != no; then
7418
test "$ac_cv_search___res_search" = "none required" || LIBS="$ac_cv_search___res_search $LIBS"
7424
echo "$as_me:$LINENO: checking for library containing crypt" >&5
7425
echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
7426
if test "${ac_cv_search_crypt+set}" = set; then
7427
echo $ECHO_N "(cached) $ECHO_C" >&6
7429
ac_func_search_save_LIBS=$LIBS
7430
ac_cv_search_crypt=no
7431
cat >conftest.$ac_ext <<_ACEOF
7434
cat confdefs.h >>conftest.$ac_ext
7435
cat >>conftest.$ac_ext <<_ACEOF
7436
/* end confdefs.h. */
7438
/* Override any gcc2 internal prototype to avoid an error. */
7442
/* We use char because int might match the return type of a gcc2
7443
builtin and then its argument prototype would still apply. */
7453
rm -f conftest.$ac_objext conftest$ac_exeext
7454
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7455
(eval $ac_link) 2>conftest.er1
7457
grep -v '^ *+' conftest.er1 >conftest.err
7459
cat conftest.err >&5
7460
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461
(exit $ac_status); } &&
7462
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7463
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467
(exit $ac_status); }; } &&
7468
{ ac_try='test -s conftest$ac_exeext'
7469
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473
(exit $ac_status); }; }; then
7474
ac_cv_search_crypt="none required"
7476
echo "$as_me: failed program was:" >&5
7477
sed 's/^/| /' conftest.$ac_ext >&5
7480
rm -f conftest.err conftest.$ac_objext \
7481
conftest$ac_exeext conftest.$ac_ext
7482
if test "$ac_cv_search_crypt" = no; then
7483
for ac_lib in crypt; do
7484
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7485
cat >conftest.$ac_ext <<_ACEOF
7488
cat confdefs.h >>conftest.$ac_ext
7489
cat >>conftest.$ac_ext <<_ACEOF
7490
/* end confdefs.h. */
7492
/* Override any gcc2 internal prototype to avoid an error. */
7496
/* We use char because int might match the return type of a gcc2
7497
builtin and then its argument prototype would still apply. */
7507
rm -f conftest.$ac_objext conftest$ac_exeext
7508
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7509
(eval $ac_link) 2>conftest.er1
7511
grep -v '^ *+' conftest.er1 >conftest.err
7513
cat conftest.err >&5
7514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515
(exit $ac_status); } &&
7516
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7517
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7520
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521
(exit $ac_status); }; } &&
7522
{ ac_try='test -s conftest$ac_exeext'
7523
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527
(exit $ac_status); }; }; then
7528
ac_cv_search_crypt="-l$ac_lib"
7531
echo "$as_me: failed program was:" >&5
7532
sed 's/^/| /' conftest.$ac_ext >&5
7535
rm -f conftest.err conftest.$ac_objext \
7536
conftest$ac_exeext conftest.$ac_ext
7539
LIBS=$ac_func_search_save_LIBS
7541
echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7542
echo "${ECHO_T}$ac_cv_search_crypt" >&6
7543
if test "$ac_cv_search_crypt" != no; then
7544
test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
7549
gssapi) echo "$as_me:$LINENO: checking for gss_import_name in -lgssapi" >&5
7550
echo $ECHO_N "checking for gss_import_name in -lgssapi... $ECHO_C" >&6
7551
if test "${ac_cv_lib_gssapi_gss_import_name+set}" = set; then
7552
echo $ECHO_N "(cached) $ECHO_C" >&6
7554
ac_check_lib_save_LIBS=$LIBS
7555
LIBS="-lgssapi -lkrb5 -lasn1 -lroken -lcrypto -lcom_err $LIBS"
7556
cat >conftest.$ac_ext <<_ACEOF
7559
cat confdefs.h >>conftest.$ac_ext
7560
cat >>conftest.$ac_ext <<_ACEOF
7561
/* end confdefs.h. */
7563
/* Override any gcc2 internal prototype to avoid an error. */
7567
/* We use char because int might match the return type of a gcc2
7568
builtin and then its argument prototype would still apply. */
7569
char gss_import_name ();
7578
rm -f conftest.$ac_objext conftest$ac_exeext
7579
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7580
(eval $ac_link) 2>conftest.er1
7582
grep -v '^ *+' conftest.er1 >conftest.err
7584
cat conftest.err >&5
7585
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586
(exit $ac_status); } &&
7587
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7588
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592
(exit $ac_status); }; } &&
7593
{ ac_try='test -s conftest$ac_exeext'
7594
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598
(exit $ac_status); }; }; then
7599
ac_cv_lib_gssapi_gss_import_name=yes
7601
echo "$as_me: failed program was:" >&5
7602
sed 's/^/| /' conftest.$ac_ext >&5
7604
ac_cv_lib_gssapi_gss_import_name=no
7606
rm -f conftest.err conftest.$ac_objext \
7607
conftest$ac_exeext conftest.$ac_ext
7608
LIBS=$ac_check_lib_save_LIBS
7610
echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_import_name" >&5
7611
echo "${ECHO_T}$ac_cv_lib_gssapi_gss_import_name" >&6
7612
if test $ac_cv_lib_gssapi_gss_import_name = yes; then
7613
KRBLIBS="-lgssapi -lkrb5 -lasn1 -lroken -lcrypto -lcom_err"
7615
KRB5EXTRA="-lkrb5 -lk5crypto -lcom_err"
7616
echo "$as_me:$LINENO: checking for krb5int_getspecific in -lkrb5support" >&5
7617
echo $ECHO_N "checking for krb5int_getspecific in -lkrb5support... $ECHO_C" >&6
7618
if test "${ac_cv_lib_krb5support_krb5int_getspecific+set}" = set; then
7619
echo $ECHO_N "(cached) $ECHO_C" >&6
7621
ac_check_lib_save_LIBS=$LIBS
7622
LIBS="-lkrb5support $LIBS"
7623
cat >conftest.$ac_ext <<_ACEOF
7626
cat confdefs.h >>conftest.$ac_ext
7627
cat >>conftest.$ac_ext <<_ACEOF
7628
/* end confdefs.h. */
7630
/* Override any gcc2 internal prototype to avoid an error. */
7634
/* We use char because int might match the return type of a gcc2
7635
builtin and then its argument prototype would still apply. */
7636
char krb5int_getspecific ();
7640
krb5int_getspecific ();
7645
rm -f conftest.$ac_objext conftest$ac_exeext
7646
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7647
(eval $ac_link) 2>conftest.er1
7649
grep -v '^ *+' conftest.er1 >conftest.err
7651
cat conftest.err >&5
7652
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653
(exit $ac_status); } &&
7654
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7655
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659
(exit $ac_status); }; } &&
7660
{ ac_try='test -s conftest$ac_exeext'
7661
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665
(exit $ac_status); }; }; then
7666
ac_cv_lib_krb5support_krb5int_getspecific=yes
7668
echo "$as_me: failed program was:" >&5
7669
sed 's/^/| /' conftest.$ac_ext >&5
7671
ac_cv_lib_krb5support_krb5int_getspecific=no
7673
rm -f conftest.err conftest.$ac_objext \
7674
conftest$ac_exeext conftest.$ac_ext
7675
LIBS=$ac_check_lib_save_LIBS
7677
echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
7678
echo "${ECHO_T}$ac_cv_lib_krb5support_krb5int_getspecific" >&6
7679
if test $ac_cv_lib_krb5support_krb5int_getspecific = yes; then
7680
KRB5EXTRA="$KRB5EXTRA -lkrb5support"
7682
echo "$as_me:$LINENO: checking for library containing pthread_setspecific" >&5
7683
echo $ECHO_N "checking for library containing pthread_setspecific... $ECHO_C" >&6
7684
if test "${ac_cv_search_pthread_setspecific+set}" = set; then
7685
echo $ECHO_N "(cached) $ECHO_C" >&6
7687
ac_func_search_save_LIBS=$LIBS
7688
ac_cv_search_pthread_setspecific=no
7689
cat >conftest.$ac_ext <<_ACEOF
7692
cat confdefs.h >>conftest.$ac_ext
7693
cat >>conftest.$ac_ext <<_ACEOF
7694
/* end confdefs.h. */
7696
/* Override any gcc2 internal prototype to avoid an error. */
7700
/* We use char because int might match the return type of a gcc2
7701
builtin and then its argument prototype would still apply. */
7702
char pthread_setspecific ();
7706
pthread_setspecific ();
7711
rm -f conftest.$ac_objext conftest$ac_exeext
7712
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7713
(eval $ac_link) 2>conftest.er1
7715
grep -v '^ *+' conftest.er1 >conftest.err
7717
cat conftest.err >&5
7718
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719
(exit $ac_status); } &&
7720
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7721
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725
(exit $ac_status); }; } &&
7726
{ ac_try='test -s conftest$ac_exeext'
7727
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731
(exit $ac_status); }; }; then
7732
ac_cv_search_pthread_setspecific="none required"
7734
echo "$as_me: failed program was:" >&5
7735
sed 's/^/| /' conftest.$ac_ext >&5
7738
rm -f conftest.err conftest.$ac_objext \
7739
conftest$ac_exeext conftest.$ac_ext
7740
if test "$ac_cv_search_pthread_setspecific" = no; then
7741
for ac_lib in pthreads pthread; do
7742
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7743
cat >conftest.$ac_ext <<_ACEOF
7746
cat confdefs.h >>conftest.$ac_ext
7747
cat >>conftest.$ac_ext <<_ACEOF
7748
/* end confdefs.h. */
7750
/* Override any gcc2 internal prototype to avoid an error. */
7754
/* We use char because int might match the return type of a gcc2
7755
builtin and then its argument prototype would still apply. */
7756
char pthread_setspecific ();
7760
pthread_setspecific ();
7765
rm -f conftest.$ac_objext conftest$ac_exeext
7766
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7767
(eval $ac_link) 2>conftest.er1
7769
grep -v '^ *+' conftest.er1 >conftest.err
7771
cat conftest.err >&5
7772
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773
(exit $ac_status); } &&
7774
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7775
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779
(exit $ac_status); }; } &&
7780
{ ac_try='test -s conftest$ac_exeext'
7781
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785
(exit $ac_status); }; }; then
7786
ac_cv_search_pthread_setspecific="-l$ac_lib"
7789
echo "$as_me: failed program was:" >&5
7790
sed 's/^/| /' conftest.$ac_ext >&5
7793
rm -f conftest.err conftest.$ac_objext \
7794
conftest$ac_exeext conftest.$ac_ext
7797
LIBS=$ac_func_search_save_LIBS
7799
echo "$as_me:$LINENO: result: $ac_cv_search_pthread_setspecific" >&5
7800
echo "${ECHO_T}$ac_cv_search_pthread_setspecific" >&6
7801
if test "$ac_cv_search_pthread_setspecific" != no; then
7802
test "$ac_cv_search_pthread_setspecific" = "none required" || LIBS="$ac_cv_search_pthread_setspecific $LIBS"
7806
echo "$as_me:$LINENO: checking for krb5int_setspecific in -lkrb5support" >&5
7807
echo $ECHO_N "checking for krb5int_setspecific in -lkrb5support... $ECHO_C" >&6
7808
if test "${ac_cv_lib_krb5support_krb5int_setspecific+set}" = set; then
7809
echo $ECHO_N "(cached) $ECHO_C" >&6
7811
ac_check_lib_save_LIBS=$LIBS
7812
LIBS="-lkrb5support $LIBS"
7813
cat >conftest.$ac_ext <<_ACEOF
7816
cat confdefs.h >>conftest.$ac_ext
7817
cat >>conftest.$ac_ext <<_ACEOF
7818
/* end confdefs.h. */
7820
/* Override any gcc2 internal prototype to avoid an error. */
7824
/* We use char because int might match the return type of a gcc2
7825
builtin and then its argument prototype would still apply. */
7826
char krb5int_setspecific ();
7830
krb5int_setspecific ();
7835
rm -f conftest.$ac_objext conftest$ac_exeext
7836
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7837
(eval $ac_link) 2>conftest.er1
7839
grep -v '^ *+' conftest.er1 >conftest.err
7841
cat conftest.err >&5
7842
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843
(exit $ac_status); } &&
7844
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7845
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849
(exit $ac_status); }; } &&
7850
{ ac_try='test -s conftest$ac_exeext'
7851
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7854
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855
(exit $ac_status); }; }; then
7856
ac_cv_lib_krb5support_krb5int_setspecific=yes
7858
echo "$as_me: failed program was:" >&5
7859
sed 's/^/| /' conftest.$ac_ext >&5
7861
ac_cv_lib_krb5support_krb5int_setspecific=no
7863
rm -f conftest.err conftest.$ac_objext \
7864
conftest$ac_exeext conftest.$ac_ext
7865
LIBS=$ac_check_lib_save_LIBS
7867
echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
7868
echo "${ECHO_T}$ac_cv_lib_krb5support_krb5int_setspecific" >&6
7869
if test $ac_cv_lib_krb5support_krb5int_setspecific = yes; then
7870
KRB5EXTRA="$KRB5EXTRA -lkrb5support"
7875
echo "$as_me:$LINENO: checking for gss_import_name in -lgssapi_krb5" >&5
7876
echo $ECHO_N "checking for gss_import_name in -lgssapi_krb5... $ECHO_C" >&6
7877
if test "${ac_cv_lib_gssapi_krb5_gss_import_name+set}" = set; then
7878
echo $ECHO_N "(cached) $ECHO_C" >&6
7880
ac_check_lib_save_LIBS=$LIBS
7881
LIBS="-lgssapi_krb5 $KRB5EXTRA $LIBS"
7882
cat >conftest.$ac_ext <<_ACEOF
7885
cat confdefs.h >>conftest.$ac_ext
7886
cat >>conftest.$ac_ext <<_ACEOF
7887
/* end confdefs.h. */
7889
/* Override any gcc2 internal prototype to avoid an error. */
7893
/* We use char because int might match the return type of a gcc2
7894
builtin and then its argument prototype would still apply. */
7895
char gss_import_name ();
7904
rm -f conftest.$ac_objext conftest$ac_exeext
7905
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7906
(eval $ac_link) 2>conftest.er1
7908
grep -v '^ *+' conftest.er1 >conftest.err
7910
cat conftest.err >&5
7911
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912
(exit $ac_status); } &&
7913
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7914
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918
(exit $ac_status); }; } &&
7919
{ ac_try='test -s conftest$ac_exeext'
7920
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924
(exit $ac_status); }; }; then
7925
ac_cv_lib_gssapi_krb5_gss_import_name=yes
7927
echo "$as_me: failed program was:" >&5
7928
sed 's/^/| /' conftest.$ac_ext >&5
7930
ac_cv_lib_gssapi_krb5_gss_import_name=no
7932
rm -f conftest.err conftest.$ac_objext \
7933
conftest$ac_exeext conftest.$ac_ext
7934
LIBS=$ac_check_lib_save_LIBS
7936
echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_import_name" >&5
7937
echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_import_name" >&6
7938
if test $ac_cv_lib_gssapi_krb5_gss_import_name = yes; then
7939
KRBLIBS="-lgssapi_krb5 $KRB5EXTRA"
7941
{ { echo "$as_me:$LINENO: error: cannot find usable GSSAPI library" >&5
7942
echo "$as_me: error: cannot find usable GSSAPI library" >&2;}
7943
{ (exit 1); exit 1; }; }
7948
krb5) echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
7949
echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
7950
if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
7951
echo $ECHO_N "(cached) $ECHO_C" >&6
7953
ac_check_lib_save_LIBS=$LIBS
7954
LIBS="-lkrb5 -lasn1 -lroken -lcrypto -lcom_err $LIBS"
7955
cat >conftest.$ac_ext <<_ACEOF
7958
cat confdefs.h >>conftest.$ac_ext
7959
cat >>conftest.$ac_ext <<_ACEOF
7960
/* end confdefs.h. */
7962
/* Override any gcc2 internal prototype to avoid an error. */
7966
/* We use char because int might match the return type of a gcc2
7967
builtin and then its argument prototype would still apply. */
7968
char krb5_init_context ();
7972
krb5_init_context ();
7977
rm -f conftest.$ac_objext conftest$ac_exeext
7978
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7979
(eval $ac_link) 2>conftest.er1
7981
grep -v '^ *+' conftest.er1 >conftest.err
7983
cat conftest.err >&5
7984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985
(exit $ac_status); } &&
7986
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7987
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991
(exit $ac_status); }; } &&
7992
{ ac_try='test -s conftest$ac_exeext'
7993
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997
(exit $ac_status); }; }; then
7998
ac_cv_lib_krb5_krb5_init_context=yes
8000
echo "$as_me: failed program was:" >&5
8001
sed 's/^/| /' conftest.$ac_ext >&5
8003
ac_cv_lib_krb5_krb5_init_context=no
8005
rm -f conftest.err conftest.$ac_objext \
8006
conftest$ac_exeext conftest.$ac_ext
8007
LIBS=$ac_check_lib_save_LIBS
8009
echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
8010
echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
8011
if test $ac_cv_lib_krb5_krb5_init_context = yes; then
8012
KRBLIBS="-lkrb5 -lasn1 -lroken -lcrypto -lcom_err"
8014
KRB5EXTRA="-lk5crypto -lcom_err"
8015
echo "$as_me:$LINENO: checking for krb5int_getspecific in -lkrb5support" >&5
8016
echo $ECHO_N "checking for krb5int_getspecific in -lkrb5support... $ECHO_C" >&6
8017
if test "${ac_cv_lib_krb5support_krb5int_getspecific+set}" = set; then
8018
echo $ECHO_N "(cached) $ECHO_C" >&6
8020
ac_check_lib_save_LIBS=$LIBS
8021
LIBS="-lkrb5support $LIBS"
8022
cat >conftest.$ac_ext <<_ACEOF
8025
cat confdefs.h >>conftest.$ac_ext
8026
cat >>conftest.$ac_ext <<_ACEOF
8027
/* end confdefs.h. */
8029
/* Override any gcc2 internal prototype to avoid an error. */
8033
/* We use char because int might match the return type of a gcc2
8034
builtin and then its argument prototype would still apply. */
8035
char krb5int_getspecific ();
8039
krb5int_getspecific ();
8044
rm -f conftest.$ac_objext conftest$ac_exeext
8045
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8046
(eval $ac_link) 2>conftest.er1
8048
grep -v '^ *+' conftest.er1 >conftest.err
8050
cat conftest.err >&5
8051
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052
(exit $ac_status); } &&
8053
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8054
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058
(exit $ac_status); }; } &&
8059
{ ac_try='test -s conftest$ac_exeext'
8060
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064
(exit $ac_status); }; }; then
8065
ac_cv_lib_krb5support_krb5int_getspecific=yes
8067
echo "$as_me: failed program was:" >&5
8068
sed 's/^/| /' conftest.$ac_ext >&5
8070
ac_cv_lib_krb5support_krb5int_getspecific=no
8072
rm -f conftest.err conftest.$ac_objext \
8073
conftest$ac_exeext conftest.$ac_ext
8074
LIBS=$ac_check_lib_save_LIBS
8076
echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
8077
echo "${ECHO_T}$ac_cv_lib_krb5support_krb5int_getspecific" >&6
8078
if test $ac_cv_lib_krb5support_krb5int_getspecific = yes; then
8079
KRB5EXTRA="$KRB5EXTRA -lkrb5support"
8081
echo "$as_me:$LINENO: checking for library containing pthread_setspecific" >&5
8082
echo $ECHO_N "checking for library containing pthread_setspecific... $ECHO_C" >&6
8083
if test "${ac_cv_search_pthread_setspecific+set}" = set; then
8084
echo $ECHO_N "(cached) $ECHO_C" >&6
8086
ac_func_search_save_LIBS=$LIBS
8087
ac_cv_search_pthread_setspecific=no
8088
cat >conftest.$ac_ext <<_ACEOF
8091
cat confdefs.h >>conftest.$ac_ext
8092
cat >>conftest.$ac_ext <<_ACEOF
8093
/* end confdefs.h. */
8095
/* Override any gcc2 internal prototype to avoid an error. */
8099
/* We use char because int might match the return type of a gcc2
8100
builtin and then its argument prototype would still apply. */
8101
char pthread_setspecific ();
8105
pthread_setspecific ();
8110
rm -f conftest.$ac_objext conftest$ac_exeext
8111
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8112
(eval $ac_link) 2>conftest.er1
8114
grep -v '^ *+' conftest.er1 >conftest.err
8116
cat conftest.err >&5
8117
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118
(exit $ac_status); } &&
8119
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8120
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124
(exit $ac_status); }; } &&
8125
{ ac_try='test -s conftest$ac_exeext'
8126
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130
(exit $ac_status); }; }; then
8131
ac_cv_search_pthread_setspecific="none required"
8133
echo "$as_me: failed program was:" >&5
8134
sed 's/^/| /' conftest.$ac_ext >&5
8137
rm -f conftest.err conftest.$ac_objext \
8138
conftest$ac_exeext conftest.$ac_ext
8139
if test "$ac_cv_search_pthread_setspecific" = no; then
8140
for ac_lib in pthreads pthread; do
8141
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8142
cat >conftest.$ac_ext <<_ACEOF
8145
cat confdefs.h >>conftest.$ac_ext
8146
cat >>conftest.$ac_ext <<_ACEOF
8147
/* end confdefs.h. */
8149
/* Override any gcc2 internal prototype to avoid an error. */
8153
/* We use char because int might match the return type of a gcc2
8154
builtin and then its argument prototype would still apply. */
8155
char pthread_setspecific ();
8159
pthread_setspecific ();
8164
rm -f conftest.$ac_objext conftest$ac_exeext
8165
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8166
(eval $ac_link) 2>conftest.er1
8168
grep -v '^ *+' conftest.er1 >conftest.err
8170
cat conftest.err >&5
8171
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172
(exit $ac_status); } &&
8173
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8174
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8177
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178
(exit $ac_status); }; } &&
8179
{ ac_try='test -s conftest$ac_exeext'
8180
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184
(exit $ac_status); }; }; then
8185
ac_cv_search_pthread_setspecific="-l$ac_lib"
8188
echo "$as_me: failed program was:" >&5
8189
sed 's/^/| /' conftest.$ac_ext >&5
8192
rm -f conftest.err conftest.$ac_objext \
8193
conftest$ac_exeext conftest.$ac_ext
8196
LIBS=$ac_func_search_save_LIBS
8198
echo "$as_me:$LINENO: result: $ac_cv_search_pthread_setspecific" >&5
8199
echo "${ECHO_T}$ac_cv_search_pthread_setspecific" >&6
8200
if test "$ac_cv_search_pthread_setspecific" != no; then
8201
test "$ac_cv_search_pthread_setspecific" = "none required" || LIBS="$ac_cv_search_pthread_setspecific $LIBS"
8205
echo "$as_me:$LINENO: checking for krb5int_setspecific in -lkrb5support" >&5
8206
echo $ECHO_N "checking for krb5int_setspecific in -lkrb5support... $ECHO_C" >&6
8207
if test "${ac_cv_lib_krb5support_krb5int_setspecific+set}" = set; then
8208
echo $ECHO_N "(cached) $ECHO_C" >&6
8210
ac_check_lib_save_LIBS=$LIBS
8211
LIBS="-lkrb5support $LIBS"
8212
cat >conftest.$ac_ext <<_ACEOF
8215
cat confdefs.h >>conftest.$ac_ext
8216
cat >>conftest.$ac_ext <<_ACEOF
8217
/* end confdefs.h. */
8219
/* Override any gcc2 internal prototype to avoid an error. */
8223
/* We use char because int might match the return type of a gcc2
8224
builtin and then its argument prototype would still apply. */
8225
char krb5int_setspecific ();
8229
krb5int_setspecific ();
8234
rm -f conftest.$ac_objext conftest$ac_exeext
8235
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8236
(eval $ac_link) 2>conftest.er1
8238
grep -v '^ *+' conftest.er1 >conftest.err
8240
cat conftest.err >&5
8241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242
(exit $ac_status); } &&
8243
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8244
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248
(exit $ac_status); }; } &&
8249
{ ac_try='test -s conftest$ac_exeext'
8250
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254
(exit $ac_status); }; }; then
8255
ac_cv_lib_krb5support_krb5int_setspecific=yes
8257
echo "$as_me: failed program was:" >&5
8258
sed 's/^/| /' conftest.$ac_ext >&5
8260
ac_cv_lib_krb5support_krb5int_setspecific=no
8262
rm -f conftest.err conftest.$ac_objext \
8263
conftest$ac_exeext conftest.$ac_ext
8264
LIBS=$ac_check_lib_save_LIBS
8266
echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
8267
echo "${ECHO_T}$ac_cv_lib_krb5support_krb5int_setspecific" >&6
8268
if test $ac_cv_lib_krb5support_krb5int_setspecific = yes; then
8269
KRB5EXTRA="$KRB5EXTRA -lkrb5support"
8274
echo "$as_me:$LINENO: checking for krb5_cc_default in -lkrb5" >&5
8275
echo $ECHO_N "checking for krb5_cc_default in -lkrb5... $ECHO_C" >&6
8276
if test "${ac_cv_lib_krb5_krb5_cc_default+set}" = set; then
8277
echo $ECHO_N "(cached) $ECHO_C" >&6
8279
ac_check_lib_save_LIBS=$LIBS
8280
LIBS="-lkrb5 $KRB5EXTRA $LIBS"
8281
cat >conftest.$ac_ext <<_ACEOF
8284
cat confdefs.h >>conftest.$ac_ext
8285
cat >>conftest.$ac_ext <<_ACEOF
8286
/* end confdefs.h. */
8288
/* Override any gcc2 internal prototype to avoid an error. */
8292
/* We use char because int might match the return type of a gcc2
8293
builtin and then its argument prototype would still apply. */
8294
char krb5_cc_default ();
8303
rm -f conftest.$ac_objext conftest$ac_exeext
8304
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8305
(eval $ac_link) 2>conftest.er1
8307
grep -v '^ *+' conftest.er1 >conftest.err
8309
cat conftest.err >&5
8310
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311
(exit $ac_status); } &&
8312
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8313
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317
(exit $ac_status); }; } &&
8318
{ ac_try='test -s conftest$ac_exeext'
8319
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323
(exit $ac_status); }; }; then
8324
ac_cv_lib_krb5_krb5_cc_default=yes
8326
echo "$as_me: failed program was:" >&5
8327
sed 's/^/| /' conftest.$ac_ext >&5
8329
ac_cv_lib_krb5_krb5_cc_default=no
8331
rm -f conftest.err conftest.$ac_objext \
8332
conftest$ac_exeext conftest.$ac_ext
8333
LIBS=$ac_check_lib_save_LIBS
8335
echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
8336
echo "${ECHO_T}$ac_cv_lib_krb5_krb5_cc_default" >&6
8337
if test $ac_cv_lib_krb5_krb5_cc_default = yes; then
8338
KRBLIBS="-lkrb5 $KRB5EXTRA"
8340
{ { echo "$as_me:$LINENO: error: cannot find usable Kerberos v5 library" >&5
8341
echo "$as_me: error: cannot find usable Kerberos v5 library" >&2;}
8342
{ (exit 1); exit 1; }; }
8348
echo "$as_me:$LINENO: checking for des_set_key in -lcrypto" >&5
8349
echo $ECHO_N "checking for des_set_key in -lcrypto... $ECHO_C" >&6
8350
if test "${ac_cv_lib_crypto_des_set_key+set}" = set; then
8351
echo $ECHO_N "(cached) $ECHO_C" >&6
8353
ac_check_lib_save_LIBS=$LIBS
8354
LIBS="-lcrypto $LIBS"
8355
cat >conftest.$ac_ext <<_ACEOF
8358
cat confdefs.h >>conftest.$ac_ext
8359
cat >>conftest.$ac_ext <<_ACEOF
8360
/* end confdefs.h. */
8362
/* Override any gcc2 internal prototype to avoid an error. */
8366
/* We use char because int might match the return type of a gcc2
8367
builtin and then its argument prototype would still apply. */
8368
char des_set_key ();
8377
rm -f conftest.$ac_objext conftest$ac_exeext
8378
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8379
(eval $ac_link) 2>conftest.er1
8381
grep -v '^ *+' conftest.er1 >conftest.err
8383
cat conftest.err >&5
8384
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385
(exit $ac_status); } &&
8386
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8387
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391
(exit $ac_status); }; } &&
8392
{ ac_try='test -s conftest$ac_exeext'
8393
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397
(exit $ac_status); }; }; then
8398
ac_cv_lib_crypto_des_set_key=yes
8400
echo "$as_me: failed program was:" >&5
8401
sed 's/^/| /' conftest.$ac_ext >&5
8403
ac_cv_lib_crypto_des_set_key=no
8405
rm -f conftest.err conftest.$ac_objext \
8406
conftest$ac_exeext conftest.$ac_ext
8407
LIBS=$ac_check_lib_save_LIBS
8409
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_set_key" >&5
8410
echo "${ECHO_T}$ac_cv_lib_crypto_des_set_key" >&6
8411
if test $ac_cv_lib_crypto_des_set_key = yes; then
8412
KRB4EXTRA="-lcrypto"
8417
echo "$as_me:$LINENO: checking for krb_get_svc_in_tkt in -lkrb" >&5
8418
echo $ECHO_N "checking for krb_get_svc_in_tkt in -lkrb... $ECHO_C" >&6
8419
if test "${ac_cv_lib_krb_krb_get_svc_in_tkt+set}" = set; then
8420
echo $ECHO_N "(cached) $ECHO_C" >&6
8422
ac_check_lib_save_LIBS=$LIBS
8423
LIBS="-lkrb $KRB4EXTRA $LIBS"
8424
cat >conftest.$ac_ext <<_ACEOF
8427
cat confdefs.h >>conftest.$ac_ext
8428
cat >>conftest.$ac_ext <<_ACEOF
8429
/* end confdefs.h. */
8431
/* Override any gcc2 internal prototype to avoid an error. */
8435
/* We use char because int might match the return type of a gcc2
8436
builtin and then its argument prototype would still apply. */
8437
char krb_get_svc_in_tkt ();
8441
krb_get_svc_in_tkt ();
8446
rm -f conftest.$ac_objext conftest$ac_exeext
8447
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8448
(eval $ac_link) 2>conftest.er1
8450
grep -v '^ *+' conftest.er1 >conftest.err
8452
cat conftest.err >&5
8453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454
(exit $ac_status); } &&
8455
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8456
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460
(exit $ac_status); }; } &&
8461
{ ac_try='test -s conftest$ac_exeext'
8462
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466
(exit $ac_status); }; }; then
8467
ac_cv_lib_krb_krb_get_svc_in_tkt=yes
8469
echo "$as_me: failed program was:" >&5
8470
sed 's/^/| /' conftest.$ac_ext >&5
8472
ac_cv_lib_krb_krb_get_svc_in_tkt=no
8474
rm -f conftest.err conftest.$ac_objext \
8475
conftest$ac_exeext conftest.$ac_ext
8476
LIBS=$ac_check_lib_save_LIBS
8478
echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_svc_in_tkt" >&5
8479
echo "${ECHO_T}$ac_cv_lib_krb_krb_get_svc_in_tkt" >&6
8480
if test $ac_cv_lib_krb_krb_get_svc_in_tkt = yes; then
8481
KRBLIBS="-lkrb $KRB4EXTRA"
8483
KRB5EXTRA="-ldes425 -lkrb5 -lk5crypto -lcom_err"
8484
echo "$as_me:$LINENO: checking for krb5int_getspecific in -lkrb5support" >&5
8485
echo $ECHO_N "checking for krb5int_getspecific in -lkrb5support... $ECHO_C" >&6
8486
if test "${ac_cv_lib_krb5support_krb5int_getspecific+set}" = set; then
8487
echo $ECHO_N "(cached) $ECHO_C" >&6
8489
ac_check_lib_save_LIBS=$LIBS
8490
LIBS="-lkrb5support $LIBS"
8491
cat >conftest.$ac_ext <<_ACEOF
8494
cat confdefs.h >>conftest.$ac_ext
8495
cat >>conftest.$ac_ext <<_ACEOF
8496
/* end confdefs.h. */
8498
/* Override any gcc2 internal prototype to avoid an error. */
8502
/* We use char because int might match the return type of a gcc2
8503
builtin and then its argument prototype would still apply. */
8504
char krb5int_getspecific ();
8508
krb5int_getspecific ();
8513
rm -f conftest.$ac_objext conftest$ac_exeext
8514
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8515
(eval $ac_link) 2>conftest.er1
8517
grep -v '^ *+' conftest.er1 >conftest.err
8519
cat conftest.err >&5
8520
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521
(exit $ac_status); } &&
8522
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8523
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527
(exit $ac_status); }; } &&
8528
{ ac_try='test -s conftest$ac_exeext'
8529
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533
(exit $ac_status); }; }; then
8534
ac_cv_lib_krb5support_krb5int_getspecific=yes
8536
echo "$as_me: failed program was:" >&5
8537
sed 's/^/| /' conftest.$ac_ext >&5
8539
ac_cv_lib_krb5support_krb5int_getspecific=no
8541
rm -f conftest.err conftest.$ac_objext \
8542
conftest$ac_exeext conftest.$ac_ext
8543
LIBS=$ac_check_lib_save_LIBS
8545
echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
8546
echo "${ECHO_T}$ac_cv_lib_krb5support_krb5int_getspecific" >&6
8547
if test $ac_cv_lib_krb5support_krb5int_getspecific = yes; then
8548
KRB5EXTRA="$KRB5EXTRA -lkrb5support"
8550
echo "$as_me:$LINENO: checking for library containing pthread_setspecific" >&5
8551
echo $ECHO_N "checking for library containing pthread_setspecific... $ECHO_C" >&6
8552
if test "${ac_cv_search_pthread_setspecific+set}" = set; then
8553
echo $ECHO_N "(cached) $ECHO_C" >&6
8555
ac_func_search_save_LIBS=$LIBS
8556
ac_cv_search_pthread_setspecific=no
8557
cat >conftest.$ac_ext <<_ACEOF
8560
cat confdefs.h >>conftest.$ac_ext
8561
cat >>conftest.$ac_ext <<_ACEOF
8562
/* end confdefs.h. */
8564
/* Override any gcc2 internal prototype to avoid an error. */
8568
/* We use char because int might match the return type of a gcc2
8569
builtin and then its argument prototype would still apply. */
8570
char pthread_setspecific ();
8574
pthread_setspecific ();
8579
rm -f conftest.$ac_objext conftest$ac_exeext
8580
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8581
(eval $ac_link) 2>conftest.er1
8583
grep -v '^ *+' conftest.er1 >conftest.err
8585
cat conftest.err >&5
8586
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587
(exit $ac_status); } &&
8588
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8589
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593
(exit $ac_status); }; } &&
8594
{ ac_try='test -s conftest$ac_exeext'
8595
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599
(exit $ac_status); }; }; then
8600
ac_cv_search_pthread_setspecific="none required"
8602
echo "$as_me: failed program was:" >&5
8603
sed 's/^/| /' conftest.$ac_ext >&5
8606
rm -f conftest.err conftest.$ac_objext \
8607
conftest$ac_exeext conftest.$ac_ext
8608
if test "$ac_cv_search_pthread_setspecific" = no; then
8609
for ac_lib in pthreads pthread; do
8610
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8611
cat >conftest.$ac_ext <<_ACEOF
8614
cat confdefs.h >>conftest.$ac_ext
8615
cat >>conftest.$ac_ext <<_ACEOF
8616
/* end confdefs.h. */
8618
/* Override any gcc2 internal prototype to avoid an error. */
8622
/* We use char because int might match the return type of a gcc2
8623
builtin and then its argument prototype would still apply. */
8624
char pthread_setspecific ();
8628
pthread_setspecific ();
8633
rm -f conftest.$ac_objext conftest$ac_exeext
8634
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8635
(eval $ac_link) 2>conftest.er1
8637
grep -v '^ *+' conftest.er1 >conftest.err
8639
cat conftest.err >&5
8640
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641
(exit $ac_status); } &&
8642
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8643
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647
(exit $ac_status); }; } &&
8648
{ ac_try='test -s conftest$ac_exeext'
8649
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653
(exit $ac_status); }; }; then
8654
ac_cv_search_pthread_setspecific="-l$ac_lib"
8657
echo "$as_me: failed program was:" >&5
8658
sed 's/^/| /' conftest.$ac_ext >&5
8661
rm -f conftest.err conftest.$ac_objext \
8662
conftest$ac_exeext conftest.$ac_ext
8665
LIBS=$ac_func_search_save_LIBS
8667
echo "$as_me:$LINENO: result: $ac_cv_search_pthread_setspecific" >&5
8668
echo "${ECHO_T}$ac_cv_search_pthread_setspecific" >&6
8669
if test "$ac_cv_search_pthread_setspecific" != no; then
8670
test "$ac_cv_search_pthread_setspecific" = "none required" || LIBS="$ac_cv_search_pthread_setspecific $LIBS"
8674
echo "$as_me:$LINENO: checking for krb5int_setspecific in -lkrb5support" >&5
8675
echo $ECHO_N "checking for krb5int_setspecific in -lkrb5support... $ECHO_C" >&6
8676
if test "${ac_cv_lib_krb5support_krb5int_setspecific+set}" = set; then
8677
echo $ECHO_N "(cached) $ECHO_C" >&6
8679
ac_check_lib_save_LIBS=$LIBS
8680
LIBS="-lkrb5support $LIBS"
8681
cat >conftest.$ac_ext <<_ACEOF
8684
cat confdefs.h >>conftest.$ac_ext
8685
cat >>conftest.$ac_ext <<_ACEOF
8686
/* end confdefs.h. */
8688
/* Override any gcc2 internal prototype to avoid an error. */
8692
/* We use char because int might match the return type of a gcc2
8693
builtin and then its argument prototype would still apply. */
8694
char krb5int_setspecific ();
8698
krb5int_setspecific ();
8703
rm -f conftest.$ac_objext conftest$ac_exeext
8704
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8705
(eval $ac_link) 2>conftest.er1
8707
grep -v '^ *+' conftest.er1 >conftest.err
8709
cat conftest.err >&5
8710
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711
(exit $ac_status); } &&
8712
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8713
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717
(exit $ac_status); }; } &&
8718
{ ac_try='test -s conftest$ac_exeext'
8719
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723
(exit $ac_status); }; }; then
8724
ac_cv_lib_krb5support_krb5int_setspecific=yes
8726
echo "$as_me: failed program was:" >&5
8727
sed 's/^/| /' conftest.$ac_ext >&5
8729
ac_cv_lib_krb5support_krb5int_setspecific=no
8731
rm -f conftest.err conftest.$ac_objext \
8732
conftest$ac_exeext conftest.$ac_ext
8733
LIBS=$ac_check_lib_save_LIBS
8735
echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
8736
echo "${ECHO_T}$ac_cv_lib_krb5support_krb5int_setspecific" >&6
8737
if test $ac_cv_lib_krb5support_krb5int_setspecific = yes; then
8738
KRB5EXTRA="$KRB5EXTRA -lkrb5support"
8743
echo "$as_me:$LINENO: checking for krb_get_svc_in_tkt in -lkrb4" >&5
8744
echo $ECHO_N "checking for krb_get_svc_in_tkt in -lkrb4... $ECHO_C" >&6
8745
if test "${ac_cv_lib_krb4_krb_get_svc_in_tkt+set}" = set; then
8746
echo $ECHO_N "(cached) $ECHO_C" >&6
8748
ac_check_lib_save_LIBS=$LIBS
8749
LIBS="-lkrb4 $KRB5EXTRA $LIBS"
8750
cat >conftest.$ac_ext <<_ACEOF
8753
cat confdefs.h >>conftest.$ac_ext
8754
cat >>conftest.$ac_ext <<_ACEOF
8755
/* end confdefs.h. */
8757
/* Override any gcc2 internal prototype to avoid an error. */
8761
/* We use char because int might match the return type of a gcc2
8762
builtin and then its argument prototype would still apply. */
8763
char krb_get_svc_in_tkt ();
8767
krb_get_svc_in_tkt ();
8772
rm -f conftest.$ac_objext conftest$ac_exeext
8773
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8774
(eval $ac_link) 2>conftest.er1
8776
grep -v '^ *+' conftest.er1 >conftest.err
8778
cat conftest.err >&5
8779
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780
(exit $ac_status); } &&
8781
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8782
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786
(exit $ac_status); }; } &&
8787
{ ac_try='test -s conftest$ac_exeext'
8788
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792
(exit $ac_status); }; }; then
8793
ac_cv_lib_krb4_krb_get_svc_in_tkt=yes
8795
echo "$as_me: failed program was:" >&5
8796
sed 's/^/| /' conftest.$ac_ext >&5
8798
ac_cv_lib_krb4_krb_get_svc_in_tkt=no
8800
rm -f conftest.err conftest.$ac_objext \
8801
conftest$ac_exeext conftest.$ac_ext
8802
LIBS=$ac_check_lib_save_LIBS
8804
echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_svc_in_tkt" >&5
8805
echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_svc_in_tkt" >&6
8806
if test $ac_cv_lib_krb4_krb_get_svc_in_tkt = yes; then
8807
KRBLIBS="-lkrb4 $KRB5EXTRA"
8809
{ { echo "$as_me:$LINENO: error: cannot find usable Kerberos v4 library" >&5
8810
echo "$as_me: error: cannot find usable Kerberos v4 library" >&2;}
8811
{ (exit 1); exit 1; }; }
8816
*) { { echo "$as_me:$LINENO: error: BUG: unknown library type krb4" >&5
8817
echo "$as_me: error: BUG: unknown library type krb4" >&2;}
8818
{ (exit 1); exit 1; }; } ;;
8821
if test x"$KRBCPPFLAGS" != x ; then
8822
CPPFLAGS="$CPPFLAGS $KRBCPPFLAGS"
8826
if test x"$static" = xtrue ; then
8827
LIBS="-Wl,-Bstatic $KRBLIBS -Wl,-Bdynamic $LIBS"
8829
LIBS="$KRBLIBS $LIBS"
8831
CPPFLAGS=`echo "$CPPFLAGS" | sed 's/^ *//'`
8832
LDFLAGS=`echo "$LDFLAGS" | sed 's/^ *//'`
8836
for ac_header in gssapi.h
8838
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8839
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8840
echo "$as_me:$LINENO: checking for $ac_header" >&5
8841
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8842
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8843
echo $ECHO_N "(cached) $ECHO_C" >&6
8845
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8846
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8848
# Is the header compilable?
8849
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8850
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8851
cat >conftest.$ac_ext <<_ACEOF
8854
cat confdefs.h >>conftest.$ac_ext
8855
cat >>conftest.$ac_ext <<_ACEOF
8856
/* end confdefs.h. */
8857
$ac_includes_default
8858
#include <$ac_header>
8860
rm -f conftest.$ac_objext
8861
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8862
(eval $ac_compile) 2>conftest.er1
8864
grep -v '^ *+' conftest.er1 >conftest.err
8866
cat conftest.err >&5
8867
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868
(exit $ac_status); } &&
8869
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8870
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874
(exit $ac_status); }; } &&
8875
{ ac_try='test -s conftest.$ac_objext'
8876
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880
(exit $ac_status); }; }; then
8881
ac_header_compiler=yes
8883
echo "$as_me: failed program was:" >&5
8884
sed 's/^/| /' conftest.$ac_ext >&5
8886
ac_header_compiler=no
8888
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8889
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8890
echo "${ECHO_T}$ac_header_compiler" >&6
8892
# Is the header present?
8893
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8894
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8895
cat >conftest.$ac_ext <<_ACEOF
8898
cat confdefs.h >>conftest.$ac_ext
8899
cat >>conftest.$ac_ext <<_ACEOF
8900
/* end confdefs.h. */
8901
#include <$ac_header>
8903
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8904
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8906
grep -v '^ *+' conftest.er1 >conftest.err
8908
cat conftest.err >&5
8909
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910
(exit $ac_status); } >/dev/null; then
8911
if test -s conftest.err; then
8912
ac_cpp_err=$ac_c_preproc_warn_flag
8913
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8920
if test -z "$ac_cpp_err"; then
8921
ac_header_preproc=yes
8923
echo "$as_me: failed program was:" >&5
8924
sed 's/^/| /' conftest.$ac_ext >&5
8926
ac_header_preproc=no
8928
rm -f conftest.err conftest.$ac_ext
8929
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8930
echo "${ECHO_T}$ac_header_preproc" >&6
8932
# So? What about this header?
8933
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8935
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8936
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8937
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8938
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8939
ac_header_preproc=yes
8942
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8943
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8944
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8945
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8946
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8947
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8948
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8949
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8950
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8951
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8952
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8953
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8956
## ------------------------------- ##
8957
## Report this to rra@stanford.edu ##
8958
## ------------------------------- ##
8961
sed "s/^/$as_me: WARNING: /" >&2
8964
echo "$as_me:$LINENO: checking for $ac_header" >&5
8965
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8966
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8967
echo $ECHO_N "(cached) $ECHO_C" >&6
8969
eval "$as_ac_Header=\$ac_header_preproc"
8971
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8972
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8975
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8976
cat >>confdefs.h <<_ACEOF
8977
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8984
echo "$as_me:$LINENO: checking whether GSS_C_NT_USER_NAME is declared" >&5
8985
echo $ECHO_N "checking whether GSS_C_NT_USER_NAME is declared... $ECHO_C" >&6
8986
if test "${ac_cv_have_decl_GSS_C_NT_USER_NAME+set}" = set; then
8987
echo $ECHO_N "(cached) $ECHO_C" >&6
8989
cat >conftest.$ac_ext <<_ACEOF
8992
cat confdefs.h >>conftest.$ac_ext
8993
cat >>conftest.$ac_ext <<_ACEOF
8994
/* end confdefs.h. */
8995
#ifdef HAVE_GSSAPI_H
8996
# include <gssapi.h>
8998
# include <gssapi/gssapi.h>
9005
#ifndef GSS_C_NT_USER_NAME
9006
char *p = (char *) GSS_C_NT_USER_NAME;
9013
rm -f conftest.$ac_objext
9014
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9015
(eval $ac_compile) 2>conftest.er1
9017
grep -v '^ *+' conftest.er1 >conftest.err
9019
cat conftest.err >&5
9020
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021
(exit $ac_status); } &&
9022
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9023
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9026
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027
(exit $ac_status); }; } &&
9028
{ ac_try='test -s conftest.$ac_objext'
9029
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033
(exit $ac_status); }; }; then
9034
ac_cv_have_decl_GSS_C_NT_USER_NAME=yes
9036
echo "$as_me: failed program was:" >&5
9037
sed 's/^/| /' conftest.$ac_ext >&5
9039
ac_cv_have_decl_GSS_C_NT_USER_NAME=no
9041
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9043
echo "$as_me:$LINENO: result: $ac_cv_have_decl_GSS_C_NT_USER_NAME" >&5
9044
echo "${ECHO_T}$ac_cv_have_decl_GSS_C_NT_USER_NAME" >&6
9045
if test $ac_cv_have_decl_GSS_C_NT_USER_NAME = yes; then
9047
cat >>confdefs.h <<\_ACEOF
9048
#define HAVE_GSS_RFC_OIDS 1
9053
echo "$as_me:$LINENO: checking whether GSS_KRB5_MECHANISM is declared" >&5
9054
echo $ECHO_N "checking whether GSS_KRB5_MECHANISM is declared... $ECHO_C" >&6
9055
if test "${ac_cv_have_decl_GSS_KRB5_MECHANISM+set}" = set; then
9056
echo $ECHO_N "(cached) $ECHO_C" >&6
9058
cat >conftest.$ac_ext <<_ACEOF
9061
cat confdefs.h >>conftest.$ac_ext
9062
cat >>conftest.$ac_ext <<_ACEOF
9063
/* end confdefs.h. */
9064
#ifdef HAVE_GSSAPI_H
9065
# include <gssapi.h>
9067
# include <gssapi/gssapi.h>
9074
#ifndef GSS_KRB5_MECHANISM
9075
char *p = (char *) GSS_KRB5_MECHANISM;
9082
rm -f conftest.$ac_objext
9083
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9084
(eval $ac_compile) 2>conftest.er1
9086
grep -v '^ *+' conftest.er1 >conftest.err
9088
cat conftest.err >&5
9089
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090
(exit $ac_status); } &&
9091
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9092
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096
(exit $ac_status); }; } &&
9097
{ ac_try='test -s conftest.$ac_objext'
9098
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102
(exit $ac_status); }; }; then
9103
ac_cv_have_decl_GSS_KRB5_MECHANISM=yes
9105
echo "$as_me: failed program was:" >&5
9106
sed 's/^/| /' conftest.$ac_ext >&5
9108
ac_cv_have_decl_GSS_KRB5_MECHANISM=no
9110
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9112
echo "$as_me:$LINENO: result: $ac_cv_have_decl_GSS_KRB5_MECHANISM" >&5
9113
echo "${ECHO_T}$ac_cv_have_decl_GSS_KRB5_MECHANISM" >&6
9114
if test $ac_cv_have_decl_GSS_KRB5_MECHANISM = yes; then
9116
cat >>confdefs.h <<_ACEOF
9117
#define HAVE_DECL_GSS_KRB5_MECHANISM 1
9122
cat >>confdefs.h <<_ACEOF
9123
#define HAVE_DECL_GSS_KRB5_MECHANISM 0
9131
for ac_header in et/com_err.h
9133
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9134
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9135
echo "$as_me:$LINENO: checking for $ac_header" >&5
9136
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9137
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9138
echo $ECHO_N "(cached) $ECHO_C" >&6
9140
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9141
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9143
# Is the header compilable?
9144
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9145
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9146
cat >conftest.$ac_ext <<_ACEOF
9149
cat confdefs.h >>conftest.$ac_ext
9150
cat >>conftest.$ac_ext <<_ACEOF
9151
/* end confdefs.h. */
9152
$ac_includes_default
9153
#include <$ac_header>
9155
rm -f conftest.$ac_objext
9156
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9157
(eval $ac_compile) 2>conftest.er1
9159
grep -v '^ *+' conftest.er1 >conftest.err
9161
cat conftest.err >&5
9162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163
(exit $ac_status); } &&
9164
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9165
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169
(exit $ac_status); }; } &&
9170
{ ac_try='test -s conftest.$ac_objext'
9171
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175
(exit $ac_status); }; }; then
9176
ac_header_compiler=yes
9178
echo "$as_me: failed program was:" >&5
9179
sed 's/^/| /' conftest.$ac_ext >&5
9181
ac_header_compiler=no
9183
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9184
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9185
echo "${ECHO_T}$ac_header_compiler" >&6
9187
# Is the header present?
9188
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9189
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9190
cat >conftest.$ac_ext <<_ACEOF
9193
cat confdefs.h >>conftest.$ac_ext
9194
cat >>conftest.$ac_ext <<_ACEOF
9195
/* end confdefs.h. */
9196
#include <$ac_header>
9198
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9199
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9201
grep -v '^ *+' conftest.er1 >conftest.err
9203
cat conftest.err >&5
9204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205
(exit $ac_status); } >/dev/null; then
9206
if test -s conftest.err; then
9207
ac_cpp_err=$ac_c_preproc_warn_flag
9208
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9215
if test -z "$ac_cpp_err"; then
9216
ac_header_preproc=yes
9218
echo "$as_me: failed program was:" >&5
9219
sed 's/^/| /' conftest.$ac_ext >&5
9221
ac_header_preproc=no
9223
rm -f conftest.err conftest.$ac_ext
9224
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9225
echo "${ECHO_T}$ac_header_preproc" >&6
9227
# So? What about this header?
9228
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9230
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9231
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9232
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9233
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9234
ac_header_preproc=yes
9237
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9238
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9239
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9240
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9241
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9242
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9243
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9244
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9245
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9246
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9247
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9248
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9251
## ------------------------------- ##
9252
## Report this to rra@stanford.edu ##
9253
## ------------------------------- ##
9256
sed "s/^/$as_me: WARNING: /" >&2
9259
echo "$as_me:$LINENO: checking for $ac_header" >&5
9260
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9261
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9262
echo $ECHO_N "(cached) $ECHO_C" >&6
9264
eval "$as_ac_Header=\$ac_header_preproc"
9266
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9267
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9270
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9271
cat >>confdefs.h <<_ACEOF
9272
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9280
for ac_func in krb5_free_keytab_entry_contents
9282
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9283
echo "$as_me:$LINENO: checking for $ac_func" >&5
9284
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9285
if eval "test \"\${$as_ac_var+set}\" = set"; then
9286
echo $ECHO_N "(cached) $ECHO_C" >&6
9288
cat >conftest.$ac_ext <<_ACEOF
9291
cat confdefs.h >>conftest.$ac_ext
9292
cat >>conftest.$ac_ext <<_ACEOF
9293
/* end confdefs.h. */
9294
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9295
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9296
#define $ac_func innocuous_$ac_func
9298
/* System header to define __stub macros and hopefully few prototypes,
9299
which can conflict with char $ac_func (); below.
9300
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9301
<limits.h> exists even on freestanding compilers. */
9304
# include <limits.h>
9306
# include <assert.h>
9311
/* Override any gcc2 internal prototype to avoid an error. */
9316
/* We use char because int might match the return type of a gcc2
9317
builtin and then its argument prototype would still apply. */
9319
/* The GNU C library defines this for functions which it implements
9320
to always fail with ENOSYS. Some functions are actually named
9321
something starting with __ and the normal name is an alias. */
9322
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9325
char (*f) () = $ac_func;
9334
return f != $ac_func;
9339
rm -f conftest.$ac_objext conftest$ac_exeext
9340
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9341
(eval $ac_link) 2>conftest.er1
9343
grep -v '^ *+' conftest.er1 >conftest.err
9345
cat conftest.err >&5
9346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347
(exit $ac_status); } &&
9348
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9349
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353
(exit $ac_status); }; } &&
9354
{ ac_try='test -s conftest$ac_exeext'
9355
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359
(exit $ac_status); }; }; then
9360
eval "$as_ac_var=yes"
9362
echo "$as_me: failed program was:" >&5
9363
sed 's/^/| /' conftest.$ac_ext >&5
9365
eval "$as_ac_var=no"
9367
rm -f conftest.err conftest.$ac_objext \
9368
conftest$ac_exeext conftest.$ac_ext
9370
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9371
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9372
if test `eval echo '${'$as_ac_var'}'` = yes; then
9373
cat >>confdefs.h <<_ACEOF
9374
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9380
echo "$as_me:$LINENO: checking for krb5_realm" >&5
9381
echo $ECHO_N "checking for krb5_realm... $ECHO_C" >&6
9382
if test "${ac_cv_type_krb5_realm+set}" = set; then
9383
echo $ECHO_N "(cached) $ECHO_C" >&6
9385
cat >conftest.$ac_ext <<_ACEOF
9388
cat confdefs.h >>conftest.$ac_ext
9389
cat >>conftest.$ac_ext <<_ACEOF
9390
/* end confdefs.h. */
9396
if ((krb5_realm *) 0)
9398
if (sizeof (krb5_realm))
9404
rm -f conftest.$ac_objext
9405
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9406
(eval $ac_compile) 2>conftest.er1
9408
grep -v '^ *+' conftest.er1 >conftest.err
9410
cat conftest.err >&5
9411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412
(exit $ac_status); } &&
9413
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9414
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418
(exit $ac_status); }; } &&
9419
{ ac_try='test -s conftest.$ac_objext'
9420
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424
(exit $ac_status); }; }; then
9425
ac_cv_type_krb5_realm=yes
9427
echo "$as_me: failed program was:" >&5
9428
sed 's/^/| /' conftest.$ac_ext >&5
9430
ac_cv_type_krb5_realm=no
9432
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9434
echo "$as_me:$LINENO: result: $ac_cv_type_krb5_realm" >&5
9435
echo "${ECHO_T}$ac_cv_type_krb5_realm" >&6
9436
if test $ac_cv_type_krb5_realm = yes; then
9438
cat >>confdefs.h <<_ACEOF
9439
#define HAVE_KRB5_REALM 1
9446
for ac_header in kerberosIV/krb.h
9448
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9449
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9450
echo "$as_me:$LINENO: checking for $ac_header" >&5
9451
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9452
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9453
echo $ECHO_N "(cached) $ECHO_C" >&6
9455
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9456
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9458
# Is the header compilable?
9459
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9460
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9461
cat >conftest.$ac_ext <<_ACEOF
9464
cat confdefs.h >>conftest.$ac_ext
9465
cat >>conftest.$ac_ext <<_ACEOF
9466
/* end confdefs.h. */
9467
$ac_includes_default
9468
#include <$ac_header>
9470
rm -f conftest.$ac_objext
9471
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9472
(eval $ac_compile) 2>conftest.er1
9474
grep -v '^ *+' conftest.er1 >conftest.err
9476
cat conftest.err >&5
9477
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478
(exit $ac_status); } &&
9479
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9480
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9483
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484
(exit $ac_status); }; } &&
9485
{ ac_try='test -s conftest.$ac_objext'
9486
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9489
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490
(exit $ac_status); }; }; then
9491
ac_header_compiler=yes
9493
echo "$as_me: failed program was:" >&5
9494
sed 's/^/| /' conftest.$ac_ext >&5
9496
ac_header_compiler=no
9498
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9499
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9500
echo "${ECHO_T}$ac_header_compiler" >&6
9502
# Is the header present?
9503
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9504
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9505
cat >conftest.$ac_ext <<_ACEOF
9508
cat confdefs.h >>conftest.$ac_ext
9509
cat >>conftest.$ac_ext <<_ACEOF
9510
/* end confdefs.h. */
9511
#include <$ac_header>
9513
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9514
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9516
grep -v '^ *+' conftest.er1 >conftest.err
9518
cat conftest.err >&5
9519
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520
(exit $ac_status); } >/dev/null; then
9521
if test -s conftest.err; then
9522
ac_cpp_err=$ac_c_preproc_warn_flag
9523
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9530
if test -z "$ac_cpp_err"; then
9531
ac_header_preproc=yes
9533
echo "$as_me: failed program was:" >&5
9534
sed 's/^/| /' conftest.$ac_ext >&5
9536
ac_header_preproc=no
9538
rm -f conftest.err conftest.$ac_ext
9539
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9540
echo "${ECHO_T}$ac_header_preproc" >&6
9542
# So? What about this header?
9543
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9545
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9546
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9547
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9548
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9549
ac_header_preproc=yes
9552
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9553
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9554
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9555
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9556
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9557
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9558
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9559
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9560
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9561
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9562
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9563
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9566
## ------------------------------- ##
9567
## Report this to rra@stanford.edu ##
9568
## ------------------------------- ##
9571
sed "s/^/$as_me: WARNING: /" >&2
9574
echo "$as_me:$LINENO: checking for $ac_header" >&5
9575
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9576
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9577
echo $ECHO_N "(cached) $ECHO_C" >&6
9579
eval "$as_ac_Header=\$ac_header_preproc"
9581
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9582
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9585
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9586
cat >>confdefs.h <<_ACEOF
9587
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9596
for ac_func in krb_life_to_time
9598
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9599
echo "$as_me:$LINENO: checking for $ac_func" >&5
9600
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9601
if eval "test \"\${$as_ac_var+set}\" = set"; then
9602
echo $ECHO_N "(cached) $ECHO_C" >&6
9604
cat >conftest.$ac_ext <<_ACEOF
9607
cat confdefs.h >>conftest.$ac_ext
9608
cat >>conftest.$ac_ext <<_ACEOF
9609
/* end confdefs.h. */
9610
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9611
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9612
#define $ac_func innocuous_$ac_func
9614
/* System header to define __stub macros and hopefully few prototypes,
9615
which can conflict with char $ac_func (); below.
9616
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9617
<limits.h> exists even on freestanding compilers. */
9620
# include <limits.h>
9622
# include <assert.h>
9627
/* Override any gcc2 internal prototype to avoid an error. */
9632
/* We use char because int might match the return type of a gcc2
9633
builtin and then its argument prototype would still apply. */
9635
/* The GNU C library defines this for functions which it implements
9636
to always fail with ENOSYS. Some functions are actually named
9637
something starting with __ and the normal name is an alias. */
9638
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9641
char (*f) () = $ac_func;
9650
return f != $ac_func;
9655
rm -f conftest.$ac_objext conftest$ac_exeext
9656
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9657
(eval $ac_link) 2>conftest.er1
9659
grep -v '^ *+' conftest.er1 >conftest.err
9661
cat conftest.err >&5
9662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663
(exit $ac_status); } &&
9664
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9665
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669
(exit $ac_status); }; } &&
9670
{ ac_try='test -s conftest$ac_exeext'
9671
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675
(exit $ac_status); }; }; then
9676
eval "$as_ac_var=yes"
9678
echo "$as_me: failed program was:" >&5
9679
sed 's/^/| /' conftest.$ac_ext >&5
9681
eval "$as_ac_var=no"
9683
rm -f conftest.err conftest.$ac_objext \
9684
conftest$ac_exeext conftest.$ac_ext
9686
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9687
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9688
if test `eval echo '${'$as_ac_var'}'` = yes; then
9689
cat >>confdefs.h <<_ACEOF
9690
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9695
"lifetime.$ac_objext" | \
9696
*" lifetime.$ac_objext" | \
9697
"lifetime.$ac_objext "* | \
9698
*" lifetime.$ac_objext "* ) ;;
9699
*) LIBOBJS="$LIBOBJS lifetime.$ac_objext" ;;
9711
# Check whether --with-afs-setpag or --without-afs-setpag was given.
9712
if test "${with_afs_setpag+set}" = set; then
9713
withval="$with_afs_setpag"
9714
if test x"$withval" != xno ; then
9715
if test x"$withval" != xyes ; then
9716
LDFLAGS="-L$withval/lib $LDFLAGS"
9718
echo "$as_me:$LINENO: checking for lsetpag in -lafsauthent" >&5
9719
echo $ECHO_N "checking for lsetpag in -lafsauthent... $ECHO_C" >&6
9720
if test "${ac_cv_lib_afsauthent_lsetpag+set}" = set; then
9721
echo $ECHO_N "(cached) $ECHO_C" >&6
9723
ac_check_lib_save_LIBS=$LIBS
9724
LIBS="-lafsauthent -lafsrpc $LIBS"
9725
cat >conftest.$ac_ext <<_ACEOF
9728
cat confdefs.h >>conftest.$ac_ext
9729
cat >>conftest.$ac_ext <<_ACEOF
9730
/* end confdefs.h. */
9732
/* Override any gcc2 internal prototype to avoid an error. */
9736
/* We use char because int might match the return type of a gcc2
9737
builtin and then its argument prototype would still apply. */
9747
rm -f conftest.$ac_objext conftest$ac_exeext
9748
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9749
(eval $ac_link) 2>conftest.er1
9751
grep -v '^ *+' conftest.er1 >conftest.err
9753
cat conftest.err >&5
9754
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755
(exit $ac_status); } &&
9756
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9757
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761
(exit $ac_status); }; } &&
9762
{ ac_try='test -s conftest$ac_exeext'
9763
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767
(exit $ac_status); }; }; then
9768
ac_cv_lib_afsauthent_lsetpag=yes
9770
echo "$as_me: failed program was:" >&5
9771
sed 's/^/| /' conftest.$ac_ext >&5
9773
ac_cv_lib_afsauthent_lsetpag=no
9775
rm -f conftest.err conftest.$ac_objext \
9776
conftest$ac_exeext conftest.$ac_ext
9777
LIBS=$ac_check_lib_save_LIBS
9779
echo "$as_me:$LINENO: result: $ac_cv_lib_afsauthent_lsetpag" >&5
9780
echo "${ECHO_T}$ac_cv_lib_afsauthent_lsetpag" >&6
9781
if test $ac_cv_lib_afsauthent_lsetpag = yes; then
9782
AFSLIBS="-lafsauthent -lafsrpc"
9784
cat >>confdefs.h <<\_ACEOF
9785
#define HAVE_LSETPAG 1
9789
echo "$as_me:$LINENO: checking for k_setpag in -lkafs" >&5
9790
echo $ECHO_N "checking for k_setpag in -lkafs... $ECHO_C" >&6
9791
if test "${ac_cv_lib_kafs_k_setpag+set}" = set; then
9792
echo $ECHO_N "(cached) $ECHO_C" >&6
9794
ac_check_lib_save_LIBS=$LIBS
9796
cat >conftest.$ac_ext <<_ACEOF
9799
cat confdefs.h >>conftest.$ac_ext
9800
cat >>conftest.$ac_ext <<_ACEOF
9801
/* end confdefs.h. */
9803
/* Override any gcc2 internal prototype to avoid an error. */
9807
/* We use char because int might match the return type of a gcc2
9808
builtin and then its argument prototype would still apply. */
9818
rm -f conftest.$ac_objext conftest$ac_exeext
9819
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9820
(eval $ac_link) 2>conftest.er1
9822
grep -v '^ *+' conftest.er1 >conftest.err
9824
cat conftest.err >&5
9825
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826
(exit $ac_status); } &&
9827
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9828
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832
(exit $ac_status); }; } &&
9833
{ ac_try='test -s conftest$ac_exeext'
9834
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838
(exit $ac_status); }; }; then
9839
ac_cv_lib_kafs_k_setpag=yes
9841
echo "$as_me: failed program was:" >&5
9842
sed 's/^/| /' conftest.$ac_ext >&5
9844
ac_cv_lib_kafs_k_setpag=no
9846
rm -f conftest.err conftest.$ac_objext \
9847
conftest$ac_exeext conftest.$ac_ext
9848
LIBS=$ac_check_lib_save_LIBS
9850
echo "$as_me:$LINENO: result: $ac_cv_lib_kafs_k_setpag" >&5
9851
echo "${ECHO_T}$ac_cv_lib_kafs_k_setpag" >&6
9852
if test $ac_cv_lib_kafs_k_setpag = yes; then
9855
for ac_header in kafs.h
9857
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9858
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9859
echo "$as_me:$LINENO: checking for $ac_header" >&5
9860
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9861
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9862
echo $ECHO_N "(cached) $ECHO_C" >&6
9864
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9865
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9867
# Is the header compilable?
9868
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9869
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9870
cat >conftest.$ac_ext <<_ACEOF
9873
cat confdefs.h >>conftest.$ac_ext
9874
cat >>conftest.$ac_ext <<_ACEOF
9875
/* end confdefs.h. */
9876
$ac_includes_default
9877
#include <$ac_header>
9879
rm -f conftest.$ac_objext
9880
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9881
(eval $ac_compile) 2>conftest.er1
9883
grep -v '^ *+' conftest.er1 >conftest.err
9885
cat conftest.err >&5
9886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887
(exit $ac_status); } &&
9888
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9889
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9892
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893
(exit $ac_status); }; } &&
9894
{ ac_try='test -s conftest.$ac_objext'
9895
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9898
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899
(exit $ac_status); }; }; then
9900
ac_header_compiler=yes
9902
echo "$as_me: failed program was:" >&5
9903
sed 's/^/| /' conftest.$ac_ext >&5
9905
ac_header_compiler=no
9907
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9908
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9909
echo "${ECHO_T}$ac_header_compiler" >&6
9911
# Is the header present?
9912
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9913
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9914
cat >conftest.$ac_ext <<_ACEOF
9917
cat confdefs.h >>conftest.$ac_ext
9918
cat >>conftest.$ac_ext <<_ACEOF
9919
/* end confdefs.h. */
9920
#include <$ac_header>
9922
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9923
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9925
grep -v '^ *+' conftest.er1 >conftest.err
9927
cat conftest.err >&5
9928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929
(exit $ac_status); } >/dev/null; then
9930
if test -s conftest.err; then
9931
ac_cpp_err=$ac_c_preproc_warn_flag
9932
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9939
if test -z "$ac_cpp_err"; then
9940
ac_header_preproc=yes
9942
echo "$as_me: failed program was:" >&5
9943
sed 's/^/| /' conftest.$ac_ext >&5
9945
ac_header_preproc=no
9947
rm -f conftest.err conftest.$ac_ext
9948
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9949
echo "${ECHO_T}$ac_header_preproc" >&6
9951
# So? What about this header?
9952
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9954
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9955
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9956
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9957
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9958
ac_header_preproc=yes
9961
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9962
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9963
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9964
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9965
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9966
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9967
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9968
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9969
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9970
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9971
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9972
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9975
## ------------------------------- ##
9976
## Report this to rra@stanford.edu ##
9977
## ------------------------------- ##
9980
sed "s/^/$as_me: WARNING: /" >&2
9983
echo "$as_me:$LINENO: checking for $ac_header" >&5
9984
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9985
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9986
echo $ECHO_N "(cached) $ECHO_C" >&6
9988
eval "$as_ac_Header=\$ac_header_preproc"
9990
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9991
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9994
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9995
cat >>confdefs.h <<_ACEOF
9996
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10004
cat >>confdefs.h <<\_ACEOF
10005
#define HAVE_K_SETPAG 1
10009
{ { echo "$as_me:$LINENO: error: setpag function not found" >&5
10010
echo "$as_me: error: setpag function not found" >&2;}
10011
{ (exit 1); exit 1; }; }
10020
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10021
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10022
if test "${ac_cv_header_time+set}" = set; then
10023
echo $ECHO_N "(cached) $ECHO_C" >&6
10025
cat >conftest.$ac_ext <<_ACEOF
10028
cat confdefs.h >>conftest.$ac_ext
10029
cat >>conftest.$ac_ext <<_ACEOF
10030
/* end confdefs.h. */
10031
#include <sys/types.h>
10032
#include <sys/time.h>
10038
if ((struct tm *) 0)
10044
rm -f conftest.$ac_objext
10045
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10046
(eval $ac_compile) 2>conftest.er1
10048
grep -v '^ *+' conftest.er1 >conftest.err
10050
cat conftest.err >&5
10051
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052
(exit $ac_status); } &&
10053
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10054
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055
(eval $ac_try) 2>&5
10057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058
(exit $ac_status); }; } &&
10059
{ ac_try='test -s conftest.$ac_objext'
10060
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10061
(eval $ac_try) 2>&5
10063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064
(exit $ac_status); }; }; then
10065
ac_cv_header_time=yes
10067
echo "$as_me: failed program was:" >&5
10068
sed 's/^/| /' conftest.$ac_ext >&5
10070
ac_cv_header_time=no
10072
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10074
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10075
echo "${ECHO_T}$ac_cv_header_time" >&6
10076
if test $ac_cv_header_time = yes; then
10078
cat >>confdefs.h <<\_ACEOF
10079
#define TIME_WITH_SYS_TIME 1
10085
for ac_header in sys/time.h
3825
10087
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3826
10088
if eval "test \"\${$as_ac_Header+set}\" = set"; then