~ubuntu-branches/ubuntu/dapper/kstart/dapper

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Russ Allbery
  • Date: 2006-01-01 18:25:50 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060101182550-txo82yxcj0ittl46
Tags: 2.9-1
* New upstream release.
  - Build with --enable-reduced-depends to reduce library dependencies.
  - Improved error reporting.
* Update copyright years.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
# From configure.ac Revision: 162 .
 
2
# From configure.ac Revision: 2351 .
3
3
# Guess values for system-dependent variables and create Makefiles.
4
 
# Generated by GNU Autoconf 2.59 for kstart 2.8.
 
4
# Generated by GNU Autoconf 2.59 for kstart 2.9.
5
5
#
6
6
# Report bugs to <rra@stanford.edu>.
7
7
#
270
270
# Identity of this package.
271
271
PACKAGE_NAME='kstart'
272
272
PACKAGE_TARNAME='kstart'
273
 
PACKAGE_VERSION='2.8'
274
 
PACKAGE_STRING='kstart 2.8'
 
273
PACKAGE_VERSION='2.9'
 
274
PACKAGE_STRING='kstart 2.9'
275
275
PACKAGE_BUGREPORT='rra@stanford.edu'
276
276
 
277
277
# Factoring default headers for most tests.
311
311
# include <unistd.h>
312
312
#endif"
313
313
 
314
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PATH_AKLOG KRBLIBS KRB5LIBS K4START K4START_MAN LIBOBJS CPP EGREP LTLIBOBJS'
 
314
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PATH_AKLOG K4START K4START_MAN KRB5_CONFIG CPP EGREP KRB5LIBS LIBOBJS KRBLIBS AFSLIBS LTLIBOBJS'
315
315
ac_subst_files=''
316
316
 
317
317
# Initialize some variables set by options.
768
768
ac_env_CPPFLAGS_value=$CPPFLAGS
769
769
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770
770
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
771
ac_env_KRB5_CONFIG_set=${KRB5_CONFIG+set}
 
772
ac_env_KRB5_CONFIG_value=$KRB5_CONFIG
 
773
ac_cv_env_KRB5_CONFIG_set=${KRB5_CONFIG+set}
 
774
ac_cv_env_KRB5_CONFIG_value=$KRB5_CONFIG
771
775
ac_env_CPP_set=${CPP+set}
772
776
ac_env_CPP_value=$CPP
773
777
ac_cv_env_CPP_set=${CPP+set}
780
784
  # Omit some internal or obsolete options to make the list less imposing.
781
785
  # This message is too long to be a string in the A/UX 3.1 sh.
782
786
  cat <<_ACEOF
783
 
\`configure' configures kstart 2.8 to adapt to many kinds of systems.
 
787
\`configure' configures kstart 2.9 to adapt to many kinds of systems.
784
788
 
785
789
Usage: $0 [OPTION]... [VAR=VALUE]...
786
790
 
837
841
 
838
842
if test -n "$ac_init_help"; then
839
843
  case $ac_init_help in
840
 
     short | recursive ) echo "Configuration of kstart 2.8:";;
 
844
     short | recursive ) echo "Configuration of kstart 2.9:";;
841
845
   esac
842
846
  cat <<\_ACEOF
843
847
 
844
848
Optional Features:
845
849
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
846
850
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
851
  --disable-k4start       Don't build k4start (Kerberos v4 support)
 
852
  --enable-reduced-depends
 
853
                          Try to minimize shared library dependencies
847
854
  --enable-static         Link against the static Kerberos libraries
848
 
  --disable-k4start       Don't build k4start (Kerberos v4 support)
849
855
 
850
856
Optional Packages:
851
857
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
852
858
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
853
859
  --with-aklog=PATH       Path to aklog or other AFS token program
854
 
  --with-kerberos=DIR     Path to Kerberos headers and libraries
 
860
  --with-kerberos=DIR     Location of Kerberos headers and libraries
855
861
  --with-afs-setpag=DIR   Enable AFS setpag support, libraries at DIR
856
862
 
857
863
Some influential environment variables:
861
867
              nonstandard directory <lib dir>
862
868
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
863
869
              headers in a nonstandard directory <include dir>
 
870
  KRB5_CONFIG Path to krb5-config
864
871
  CPP         C preprocessor
865
872
 
866
873
Use these variables to override the choices made by `configure' or to help
962
969
test -n "$ac_init_help" && exit 0
963
970
if $ac_init_version; then
964
971
  cat <<\_ACEOF
965
 
kstart configure 2.8
 
972
kstart configure 2.9
966
973
generated by GNU Autoconf 2.59
967
974
 
968
975
Copyright (C) 2003 Free Software Foundation, Inc.
976
983
This file contains any messages produced by compilers while
977
984
running configure, to aid debugging if configure makes a mistake.
978
985
 
979
 
It was created by kstart $as_me 2.8, which was
 
986
It was created by kstart $as_me 2.9, which was
980
987
generated by GNU Autoconf 2.59.  Invocation command line was
981
988
 
982
989
  $ $0 $@
1313
1320
 
1314
1321
 
1315
1322
 
 
1323
 
 
1324
 
 
1325
 
 
1326
 
 
1327
 
 
1328
 
 
1329
 
 
1330
 
 
1331
 
 
1332
 
 
1333
 
 
1334
 
 
1335
 
 
1336
 
 
1337
 
 
1338
 
 
1339
 
 
1340
 
 
1341
 
 
1342
 
 
1343
 
 
1344
 
1316
1345
ac_ext=c
1317
1346
ac_cpp='$CPP $CPPFLAGS'
1318
1347
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2403
2432
 
2404
2433
fi
2405
2434
 
2406
 
 
2407
 
echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
2408
 
echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
2409
 
if test "${ac_cv_search_gethostbyname+set}" = set; then
2410
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2411
 
else
2412
 
  ac_func_search_save_LIBS=$LIBS
2413
 
ac_cv_search_gethostbyname=no
2414
 
cat >conftest.$ac_ext <<_ACEOF
2415
 
/* confdefs.h.  */
2416
 
_ACEOF
2417
 
cat confdefs.h >>conftest.$ac_ext
2418
 
cat >>conftest.$ac_ext <<_ACEOF
2419
 
/* end confdefs.h.  */
2420
 
 
2421
 
/* Override any gcc2 internal prototype to avoid an error.  */
2422
 
#ifdef __cplusplus
2423
 
extern "C"
2424
 
#endif
2425
 
/* We use char because int might match the return type of a gcc2
2426
 
   builtin and then its argument prototype would still apply.  */
2427
 
char gethostbyname ();
2428
 
int
2429
 
main ()
2430
 
{
2431
 
gethostbyname ();
2432
 
  ;
2433
 
  return 0;
2434
 
}
2435
 
_ACEOF
2436
 
rm -f conftest.$ac_objext conftest$ac_exeext
2437
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2438
 
  (eval $ac_link) 2>conftest.er1
2439
 
  ac_status=$?
2440
 
  grep -v '^ *+' conftest.er1 >conftest.err
2441
 
  rm -f conftest.er1
2442
 
  cat conftest.err >&5
2443
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444
 
  (exit $ac_status); } &&
2445
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2446
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447
 
  (eval $ac_try) 2>&5
2448
 
  ac_status=$?
2449
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450
 
  (exit $ac_status); }; } &&
2451
 
         { ac_try='test -s conftest$ac_exeext'
2452
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453
 
  (eval $ac_try) 2>&5
2454
 
  ac_status=$?
2455
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456
 
  (exit $ac_status); }; }; then
2457
 
  ac_cv_search_gethostbyname="none required"
2458
 
else
2459
 
  echo "$as_me: failed program was:" >&5
2460
 
sed 's/^/| /' conftest.$ac_ext >&5
2461
 
 
2462
 
fi
2463
 
rm -f conftest.err conftest.$ac_objext \
2464
 
      conftest$ac_exeext conftest.$ac_ext
2465
 
if test "$ac_cv_search_gethostbyname" = no; then
2466
 
  for ac_lib in nsl; do
2467
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2468
 
    cat >conftest.$ac_ext <<_ACEOF
2469
 
/* confdefs.h.  */
2470
 
_ACEOF
2471
 
cat confdefs.h >>conftest.$ac_ext
2472
 
cat >>conftest.$ac_ext <<_ACEOF
2473
 
/* end confdefs.h.  */
2474
 
 
2475
 
/* Override any gcc2 internal prototype to avoid an error.  */
2476
 
#ifdef __cplusplus
2477
 
extern "C"
2478
 
#endif
2479
 
/* We use char because int might match the return type of a gcc2
2480
 
   builtin and then its argument prototype would still apply.  */
2481
 
char gethostbyname ();
2482
 
int
2483
 
main ()
2484
 
{
2485
 
gethostbyname ();
2486
 
  ;
2487
 
  return 0;
2488
 
}
2489
 
_ACEOF
2490
 
rm -f conftest.$ac_objext conftest$ac_exeext
2491
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2492
 
  (eval $ac_link) 2>conftest.er1
2493
 
  ac_status=$?
2494
 
  grep -v '^ *+' conftest.er1 >conftest.err
2495
 
  rm -f conftest.er1
2496
 
  cat conftest.err >&5
2497
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498
 
  (exit $ac_status); } &&
2499
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2500
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501
 
  (eval $ac_try) 2>&5
2502
 
  ac_status=$?
2503
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504
 
  (exit $ac_status); }; } &&
2505
 
         { ac_try='test -s conftest$ac_exeext'
2506
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507
 
  (eval $ac_try) 2>&5
2508
 
  ac_status=$?
2509
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510
 
  (exit $ac_status); }; }; then
2511
 
  ac_cv_search_gethostbyname="-l$ac_lib"
2512
 
break
2513
 
else
2514
 
  echo "$as_me: failed program was:" >&5
2515
 
sed 's/^/| /' conftest.$ac_ext >&5
2516
 
 
2517
 
fi
2518
 
rm -f conftest.err conftest.$ac_objext \
2519
 
      conftest$ac_exeext conftest.$ac_ext
2520
 
  done
2521
 
fi
2522
 
LIBS=$ac_func_search_save_LIBS
2523
 
fi
2524
 
echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
2525
 
echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
2526
 
if test "$ac_cv_search_gethostbyname" != no; then
2527
 
  test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
2528
 
 
2529
 
fi
2530
 
 
2531
 
echo "$as_me:$LINENO: checking for library containing socket" >&5
2532
 
echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
2533
 
if test "${ac_cv_search_socket+set}" = set; then
2534
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2535
 
else
2536
 
  ac_func_search_save_LIBS=$LIBS
2537
 
ac_cv_search_socket=no
2538
 
cat >conftest.$ac_ext <<_ACEOF
2539
 
/* confdefs.h.  */
2540
 
_ACEOF
2541
 
cat confdefs.h >>conftest.$ac_ext
2542
 
cat >>conftest.$ac_ext <<_ACEOF
2543
 
/* end confdefs.h.  */
2544
 
 
2545
 
/* Override any gcc2 internal prototype to avoid an error.  */
2546
 
#ifdef __cplusplus
2547
 
extern "C"
2548
 
#endif
2549
 
/* We use char because int might match the return type of a gcc2
2550
 
   builtin and then its argument prototype would still apply.  */
2551
 
char socket ();
2552
 
int
2553
 
main ()
2554
 
{
2555
 
socket ();
2556
 
  ;
2557
 
  return 0;
2558
 
}
2559
 
_ACEOF
2560
 
rm -f conftest.$ac_objext conftest$ac_exeext
2561
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2562
 
  (eval $ac_link) 2>conftest.er1
2563
 
  ac_status=$?
2564
 
  grep -v '^ *+' conftest.er1 >conftest.err
2565
 
  rm -f conftest.er1
2566
 
  cat conftest.err >&5
2567
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568
 
  (exit $ac_status); } &&
2569
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2570
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571
 
  (eval $ac_try) 2>&5
2572
 
  ac_status=$?
2573
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574
 
  (exit $ac_status); }; } &&
2575
 
         { ac_try='test -s conftest$ac_exeext'
2576
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577
 
  (eval $ac_try) 2>&5
2578
 
  ac_status=$?
2579
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580
 
  (exit $ac_status); }; }; then
2581
 
  ac_cv_search_socket="none required"
2582
 
else
2583
 
  echo "$as_me: failed program was:" >&5
2584
 
sed 's/^/| /' conftest.$ac_ext >&5
2585
 
 
2586
 
fi
2587
 
rm -f conftest.err conftest.$ac_objext \
2588
 
      conftest$ac_exeext conftest.$ac_ext
2589
 
if test "$ac_cv_search_socket" = no; then
2590
 
  for ac_lib in socket; do
2591
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2592
 
    cat >conftest.$ac_ext <<_ACEOF
2593
 
/* confdefs.h.  */
2594
 
_ACEOF
2595
 
cat confdefs.h >>conftest.$ac_ext
2596
 
cat >>conftest.$ac_ext <<_ACEOF
2597
 
/* end confdefs.h.  */
2598
 
 
2599
 
/* Override any gcc2 internal prototype to avoid an error.  */
2600
 
#ifdef __cplusplus
2601
 
extern "C"
2602
 
#endif
2603
 
/* We use char because int might match the return type of a gcc2
2604
 
   builtin and then its argument prototype would still apply.  */
2605
 
char socket ();
2606
 
int
2607
 
main ()
2608
 
{
2609
 
socket ();
2610
 
  ;
2611
 
  return 0;
2612
 
}
2613
 
_ACEOF
2614
 
rm -f conftest.$ac_objext conftest$ac_exeext
2615
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2616
 
  (eval $ac_link) 2>conftest.er1
2617
 
  ac_status=$?
2618
 
  grep -v '^ *+' conftest.er1 >conftest.err
2619
 
  rm -f conftest.er1
2620
 
  cat conftest.err >&5
2621
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622
 
  (exit $ac_status); } &&
2623
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2624
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625
 
  (eval $ac_try) 2>&5
2626
 
  ac_status=$?
2627
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628
 
  (exit $ac_status); }; } &&
2629
 
         { ac_try='test -s conftest$ac_exeext'
2630
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631
 
  (eval $ac_try) 2>&5
2632
 
  ac_status=$?
2633
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634
 
  (exit $ac_status); }; }; then
2635
 
  ac_cv_search_socket="-l$ac_lib"
2636
 
break
2637
 
else
2638
 
  echo "$as_me: failed program was:" >&5
2639
 
sed 's/^/| /' conftest.$ac_ext >&5
2640
 
 
2641
 
fi
2642
 
rm -f conftest.err conftest.$ac_objext \
2643
 
      conftest$ac_exeext conftest.$ac_ext
2644
 
  done
2645
 
fi
2646
 
LIBS=$ac_func_search_save_LIBS
2647
 
fi
2648
 
echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
2649
 
echo "${ECHO_T}$ac_cv_search_socket" >&6
2650
 
if test "$ac_cv_search_socket" != no; then
2651
 
  test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
2652
 
 
2653
 
else
2654
 
  echo "$as_me:$LINENO: checking for socket in -lnsl" >&5
2655
 
echo $ECHO_N "checking for socket in -lnsl... $ECHO_C" >&6
2656
 
if test "${ac_cv_lib_nsl_socket+set}" = set; then
2657
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2658
 
else
2659
 
  ac_check_lib_save_LIBS=$LIBS
2660
 
LIBS="-lnsl -lsocket $LIBS"
2661
 
cat >conftest.$ac_ext <<_ACEOF
2662
 
/* confdefs.h.  */
2663
 
_ACEOF
2664
 
cat confdefs.h >>conftest.$ac_ext
2665
 
cat >>conftest.$ac_ext <<_ACEOF
2666
 
/* end confdefs.h.  */
2667
 
 
2668
 
/* Override any gcc2 internal prototype to avoid an error.  */
2669
 
#ifdef __cplusplus
2670
 
extern "C"
2671
 
#endif
2672
 
/* We use char because int might match the return type of a gcc2
2673
 
   builtin and then its argument prototype would still apply.  */
2674
 
char socket ();
2675
 
int
2676
 
main ()
2677
 
{
2678
 
socket ();
2679
 
  ;
2680
 
  return 0;
2681
 
}
2682
 
_ACEOF
2683
 
rm -f conftest.$ac_objext conftest$ac_exeext
2684
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2685
 
  (eval $ac_link) 2>conftest.er1
2686
 
  ac_status=$?
2687
 
  grep -v '^ *+' conftest.er1 >conftest.err
2688
 
  rm -f conftest.er1
2689
 
  cat conftest.err >&5
2690
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691
 
  (exit $ac_status); } &&
2692
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2693
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694
 
  (eval $ac_try) 2>&5
2695
 
  ac_status=$?
2696
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697
 
  (exit $ac_status); }; } &&
2698
 
         { ac_try='test -s conftest$ac_exeext'
2699
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700
 
  (eval $ac_try) 2>&5
2701
 
  ac_status=$?
2702
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703
 
  (exit $ac_status); }; }; then
2704
 
  ac_cv_lib_nsl_socket=yes
2705
 
else
2706
 
  echo "$as_me: failed program was:" >&5
2707
 
sed 's/^/| /' conftest.$ac_ext >&5
2708
 
 
2709
 
ac_cv_lib_nsl_socket=no
2710
 
fi
2711
 
rm -f conftest.err conftest.$ac_objext \
2712
 
      conftest$ac_exeext conftest.$ac_ext
2713
 
LIBS=$ac_check_lib_save_LIBS
2714
 
fi
2715
 
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_socket" >&5
2716
 
echo "${ECHO_T}$ac_cv_lib_nsl_socket" >&6
2717
 
if test $ac_cv_lib_nsl_socket = yes; then
2718
 
  LIBS="$LIBS -lsocket -lnsl"
2719
 
fi
2720
 
 
2721
 
fi
2722
 
 
2723
 
echo "$as_me:$LINENO: checking for library containing res_search" >&5
2724
 
echo $ECHO_N "checking for library containing res_search... $ECHO_C" >&6
2725
 
if test "${ac_cv_search_res_search+set}" = set; then
2726
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2727
 
else
2728
 
  ac_func_search_save_LIBS=$LIBS
2729
 
ac_cv_search_res_search=no
2730
 
cat >conftest.$ac_ext <<_ACEOF
2731
 
/* confdefs.h.  */
2732
 
_ACEOF
2733
 
cat confdefs.h >>conftest.$ac_ext
2734
 
cat >>conftest.$ac_ext <<_ACEOF
2735
 
/* end confdefs.h.  */
2736
 
 
2737
 
/* Override any gcc2 internal prototype to avoid an error.  */
2738
 
#ifdef __cplusplus
2739
 
extern "C"
2740
 
#endif
2741
 
/* We use char because int might match the return type of a gcc2
2742
 
   builtin and then its argument prototype would still apply.  */
2743
 
char res_search ();
2744
 
int
2745
 
main ()
2746
 
{
2747
 
res_search ();
2748
 
  ;
2749
 
  return 0;
2750
 
}
2751
 
_ACEOF
2752
 
rm -f conftest.$ac_objext conftest$ac_exeext
2753
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2754
 
  (eval $ac_link) 2>conftest.er1
2755
 
  ac_status=$?
2756
 
  grep -v '^ *+' conftest.er1 >conftest.err
2757
 
  rm -f conftest.er1
2758
 
  cat conftest.err >&5
2759
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760
 
  (exit $ac_status); } &&
2761
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2762
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763
 
  (eval $ac_try) 2>&5
2764
 
  ac_status=$?
2765
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766
 
  (exit $ac_status); }; } &&
2767
 
         { ac_try='test -s conftest$ac_exeext'
2768
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769
 
  (eval $ac_try) 2>&5
2770
 
  ac_status=$?
2771
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772
 
  (exit $ac_status); }; }; then
2773
 
  ac_cv_search_res_search="none required"
2774
 
else
2775
 
  echo "$as_me: failed program was:" >&5
2776
 
sed 's/^/| /' conftest.$ac_ext >&5
2777
 
 
2778
 
fi
2779
 
rm -f conftest.err conftest.$ac_objext \
2780
 
      conftest$ac_exeext conftest.$ac_ext
2781
 
if test "$ac_cv_search_res_search" = no; then
2782
 
  for ac_lib in resolv; do
2783
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2784
 
    cat >conftest.$ac_ext <<_ACEOF
2785
 
/* confdefs.h.  */
2786
 
_ACEOF
2787
 
cat confdefs.h >>conftest.$ac_ext
2788
 
cat >>conftest.$ac_ext <<_ACEOF
2789
 
/* end confdefs.h.  */
2790
 
 
2791
 
/* Override any gcc2 internal prototype to avoid an error.  */
2792
 
#ifdef __cplusplus
2793
 
extern "C"
2794
 
#endif
2795
 
/* We use char because int might match the return type of a gcc2
2796
 
   builtin and then its argument prototype would still apply.  */
2797
 
char res_search ();
2798
 
int
2799
 
main ()
2800
 
{
2801
 
res_search ();
2802
 
  ;
2803
 
  return 0;
2804
 
}
2805
 
_ACEOF
2806
 
rm -f conftest.$ac_objext conftest$ac_exeext
2807
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2808
 
  (eval $ac_link) 2>conftest.er1
2809
 
  ac_status=$?
2810
 
  grep -v '^ *+' conftest.er1 >conftest.err
2811
 
  rm -f conftest.er1
2812
 
  cat conftest.err >&5
2813
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814
 
  (exit $ac_status); } &&
2815
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2816
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817
 
  (eval $ac_try) 2>&5
2818
 
  ac_status=$?
2819
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820
 
  (exit $ac_status); }; } &&
2821
 
         { ac_try='test -s conftest$ac_exeext'
2822
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823
 
  (eval $ac_try) 2>&5
2824
 
  ac_status=$?
2825
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826
 
  (exit $ac_status); }; }; then
2827
 
  ac_cv_search_res_search="-l$ac_lib"
2828
 
break
2829
 
else
2830
 
  echo "$as_me: failed program was:" >&5
2831
 
sed 's/^/| /' conftest.$ac_ext >&5
2832
 
 
2833
 
fi
2834
 
rm -f conftest.err conftest.$ac_objext \
2835
 
      conftest$ac_exeext conftest.$ac_ext
2836
 
  done
2837
 
fi
2838
 
LIBS=$ac_func_search_save_LIBS
2839
 
fi
2840
 
echo "$as_me:$LINENO: result: $ac_cv_search_res_search" >&5
2841
 
echo "${ECHO_T}$ac_cv_search_res_search" >&6
2842
 
if test "$ac_cv_search_res_search" != no; then
2843
 
  test "$ac_cv_search_res_search" = "none required" || LIBS="$ac_cv_search_res_search $LIBS"
2844
 
 
2845
 
fi
2846
 
 
2847
 
echo "$as_me:$LINENO: checking for library containing crypt" >&5
2848
 
echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
2849
 
if test "${ac_cv_search_crypt+set}" = set; then
2850
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2851
 
else
2852
 
  ac_func_search_save_LIBS=$LIBS
2853
 
ac_cv_search_crypt=no
2854
 
cat >conftest.$ac_ext <<_ACEOF
2855
 
/* confdefs.h.  */
2856
 
_ACEOF
2857
 
cat confdefs.h >>conftest.$ac_ext
2858
 
cat >>conftest.$ac_ext <<_ACEOF
2859
 
/* end confdefs.h.  */
2860
 
 
2861
 
/* Override any gcc2 internal prototype to avoid an error.  */
2862
 
#ifdef __cplusplus
2863
 
extern "C"
2864
 
#endif
2865
 
/* We use char because int might match the return type of a gcc2
2866
 
   builtin and then its argument prototype would still apply.  */
2867
 
char crypt ();
2868
 
int
2869
 
main ()
2870
 
{
2871
 
crypt ();
2872
 
  ;
2873
 
  return 0;
2874
 
}
2875
 
_ACEOF
2876
 
rm -f conftest.$ac_objext conftest$ac_exeext
2877
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2878
 
  (eval $ac_link) 2>conftest.er1
2879
 
  ac_status=$?
2880
 
  grep -v '^ *+' conftest.er1 >conftest.err
2881
 
  rm -f conftest.er1
2882
 
  cat conftest.err >&5
2883
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884
 
  (exit $ac_status); } &&
2885
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2886
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887
 
  (eval $ac_try) 2>&5
2888
 
  ac_status=$?
2889
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890
 
  (exit $ac_status); }; } &&
2891
 
         { ac_try='test -s conftest$ac_exeext'
2892
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893
 
  (eval $ac_try) 2>&5
2894
 
  ac_status=$?
2895
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896
 
  (exit $ac_status); }; }; then
2897
 
  ac_cv_search_crypt="none required"
2898
 
else
2899
 
  echo "$as_me: failed program was:" >&5
2900
 
sed 's/^/| /' conftest.$ac_ext >&5
2901
 
 
2902
 
fi
2903
 
rm -f conftest.err conftest.$ac_objext \
2904
 
      conftest$ac_exeext conftest.$ac_ext
2905
 
if test "$ac_cv_search_crypt" = no; then
2906
 
  for ac_lib in crypt; do
2907
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2908
 
    cat >conftest.$ac_ext <<_ACEOF
2909
 
/* confdefs.h.  */
2910
 
_ACEOF
2911
 
cat confdefs.h >>conftest.$ac_ext
2912
 
cat >>conftest.$ac_ext <<_ACEOF
2913
 
/* end confdefs.h.  */
2914
 
 
2915
 
/* Override any gcc2 internal prototype to avoid an error.  */
2916
 
#ifdef __cplusplus
2917
 
extern "C"
2918
 
#endif
2919
 
/* We use char because int might match the return type of a gcc2
2920
 
   builtin and then its argument prototype would still apply.  */
2921
 
char crypt ();
2922
 
int
2923
 
main ()
2924
 
{
2925
 
crypt ();
2926
 
  ;
2927
 
  return 0;
2928
 
}
2929
 
_ACEOF
2930
 
rm -f conftest.$ac_objext conftest$ac_exeext
2931
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2932
 
  (eval $ac_link) 2>conftest.er1
2933
 
  ac_status=$?
2934
 
  grep -v '^ *+' conftest.er1 >conftest.err
2935
 
  rm -f conftest.er1
2936
 
  cat conftest.err >&5
2937
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938
 
  (exit $ac_status); } &&
2939
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2940
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941
 
  (eval $ac_try) 2>&5
2942
 
  ac_status=$?
2943
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944
 
  (exit $ac_status); }; } &&
2945
 
         { ac_try='test -s conftest$ac_exeext'
2946
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947
 
  (eval $ac_try) 2>&5
2948
 
  ac_status=$?
2949
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950
 
  (exit $ac_status); }; }; then
2951
 
  ac_cv_search_crypt="-l$ac_lib"
2952
 
break
2953
 
else
2954
 
  echo "$as_me: failed program was:" >&5
2955
 
sed 's/^/| /' conftest.$ac_ext >&5
2956
 
 
2957
 
fi
2958
 
rm -f conftest.err conftest.$ac_objext \
2959
 
      conftest$ac_exeext conftest.$ac_ext
2960
 
  done
2961
 
fi
2962
 
LIBS=$ac_func_search_save_LIBS
2963
 
fi
2964
 
echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
2965
 
echo "${ECHO_T}$ac_cv_search_crypt" >&6
2966
 
if test "$ac_cv_search_crypt" != no; then
2967
 
  test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
2968
 
 
2969
 
fi
2970
 
 
2971
 
 
2972
 
 
2973
 
# Check whether --with-kerberos or --without-kerberos was given.
2974
 
if test "${with_kerberos+set}" = set; then
2975
 
  withval="$with_kerberos"
2976
 
  if test x"$withval" != xno ; then
2977
 
         CPPFLAGS="-I$kerberos/include $CPPFLAGS"
2978
 
         LDFLAGS="-L$kerberos/lib $LDFLAGS"
2979
 
     fi
2980
 
fi;
2981
 
 
2982
 
echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
2983
 
echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
2984
 
if test "${ac_cv_lib_krb4_main+set}" = set; then
2985
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2986
 
else
2987
 
  ac_check_lib_save_LIBS=$LIBS
2988
 
LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err $LIBS"
2989
 
cat >conftest.$ac_ext <<_ACEOF
2990
 
/* confdefs.h.  */
2991
 
_ACEOF
2992
 
cat confdefs.h >>conftest.$ac_ext
2993
 
cat >>conftest.$ac_ext <<_ACEOF
2994
 
/* end confdefs.h.  */
2995
 
 
2996
 
 
2997
 
int
2998
 
main ()
2999
 
{
3000
 
main ();
3001
 
  ;
3002
 
  return 0;
3003
 
}
3004
 
_ACEOF
3005
 
rm -f conftest.$ac_objext conftest$ac_exeext
3006
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3007
 
  (eval $ac_link) 2>conftest.er1
3008
 
  ac_status=$?
3009
 
  grep -v '^ *+' conftest.er1 >conftest.err
3010
 
  rm -f conftest.er1
3011
 
  cat conftest.err >&5
3012
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013
 
  (exit $ac_status); } &&
3014
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3015
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3016
 
  (eval $ac_try) 2>&5
3017
 
  ac_status=$?
3018
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019
 
  (exit $ac_status); }; } &&
3020
 
         { ac_try='test -s conftest$ac_exeext'
3021
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022
 
  (eval $ac_try) 2>&5
3023
 
  ac_status=$?
3024
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025
 
  (exit $ac_status); }; }; then
3026
 
  ac_cv_lib_krb4_main=yes
3027
 
else
3028
 
  echo "$as_me: failed program was:" >&5
3029
 
sed 's/^/| /' conftest.$ac_ext >&5
3030
 
 
3031
 
ac_cv_lib_krb4_main=no
3032
 
fi
3033
 
rm -f conftest.err conftest.$ac_objext \
3034
 
      conftest$ac_exeext conftest.$ac_ext
3035
 
LIBS=$ac_check_lib_save_LIBS
3036
 
fi
3037
 
echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
3038
 
echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
3039
 
if test $ac_cv_lib_krb4_main = yes; then
3040
 
  KRBLIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
3041
 
else
3042
 
  KRBLIBS="-lcrypto -lkrb"
3043
 
fi
3044
 
 
3045
 
echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
3046
 
echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
3047
 
if test "${ac_cv_lib_k5crypto_main+set}" = set; then
3048
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3049
 
else
3050
 
  ac_check_lib_save_LIBS=$LIBS
3051
 
LIBS="-lk5crypto -lk5crypto -lcom_err $LIBS"
3052
 
cat >conftest.$ac_ext <<_ACEOF
3053
 
/* confdefs.h.  */
3054
 
_ACEOF
3055
 
cat confdefs.h >>conftest.$ac_ext
3056
 
cat >>conftest.$ac_ext <<_ACEOF
3057
 
/* end confdefs.h.  */
3058
 
 
3059
 
 
3060
 
int
3061
 
main ()
3062
 
{
3063
 
main ();
3064
 
  ;
3065
 
  return 0;
3066
 
}
3067
 
_ACEOF
3068
 
rm -f conftest.$ac_objext conftest$ac_exeext
3069
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3070
 
  (eval $ac_link) 2>conftest.er1
3071
 
  ac_status=$?
3072
 
  grep -v '^ *+' conftest.er1 >conftest.err
3073
 
  rm -f conftest.er1
3074
 
  cat conftest.err >&5
3075
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076
 
  (exit $ac_status); } &&
3077
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3078
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079
 
  (eval $ac_try) 2>&5
3080
 
  ac_status=$?
3081
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082
 
  (exit $ac_status); }; } &&
3083
 
         { ac_try='test -s conftest$ac_exeext'
3084
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085
 
  (eval $ac_try) 2>&5
3086
 
  ac_status=$?
3087
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088
 
  (exit $ac_status); }; }; then
3089
 
  ac_cv_lib_k5crypto_main=yes
3090
 
else
3091
 
  echo "$as_me: failed program was:" >&5
3092
 
sed 's/^/| /' conftest.$ac_ext >&5
3093
 
 
3094
 
ac_cv_lib_k5crypto_main=no
3095
 
fi
3096
 
rm -f conftest.err conftest.$ac_objext \
3097
 
      conftest$ac_exeext conftest.$ac_ext
3098
 
LIBS=$ac_check_lib_save_LIBS
3099
 
fi
3100
 
echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
3101
 
echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
3102
 
if test $ac_cv_lib_k5crypto_main = yes; then
3103
 
  KRB5LIBS="-lkrb5 -lk5crypto -lcom_err"
3104
 
else
3105
 
  KRB5LIBS="-lkrb5 -lcrypto -lasn1 -lroken -lcom_err"
3106
 
fi
3107
 
 
3108
 
 
3109
 
 
3110
 
 
3111
 
# Check whether --enable-static or --disable-static was given.
3112
 
if test "${enable_static+set}" = set; then
3113
 
  enableval="$enable_static"
3114
 
  if test x"$enableval" = xyes ; then
3115
 
        KRBLIBS="-Wl,-Bstatic $KRBLIBS -Wl,-Bdynamic"
3116
 
        KRB5LIBS="-Wl,-Bstatic $KRB5LIBS -Wl,-Bdynamic"
3117
 
     fi
3118
 
fi;
3119
 
 
3120
 
 
3121
 
# Check whether --with-afs-setpag or --without-afs-setpag was given.
3122
 
if test "${with_afs_setpag+set}" = set; then
3123
 
  withval="$with_afs_setpag"
3124
 
  if test x"$withval" != xno ; then
3125
 
        if test x"$withval" != xyes ; then
3126
 
            LDFLAGS="-L$withval/lib $LDFLAGS"
3127
 
        fi
3128
 
        echo "$as_me:$LINENO: checking for setpag in -lafsauthent" >&5
3129
 
echo $ECHO_N "checking for setpag in -lafsauthent... $ECHO_C" >&6
3130
 
if test "${ac_cv_lib_afsauthent_setpag+set}" = set; then
3131
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3132
 
else
3133
 
  ac_check_lib_save_LIBS=$LIBS
3134
 
LIBS="-lafsauthent -lafsrpc -lpthread $LIBS"
3135
 
cat >conftest.$ac_ext <<_ACEOF
3136
 
/* confdefs.h.  */
3137
 
_ACEOF
3138
 
cat confdefs.h >>conftest.$ac_ext
3139
 
cat >>conftest.$ac_ext <<_ACEOF
3140
 
/* end confdefs.h.  */
3141
 
 
3142
 
/* Override any gcc2 internal prototype to avoid an error.  */
3143
 
#ifdef __cplusplus
3144
 
extern "C"
3145
 
#endif
3146
 
/* We use char because int might match the return type of a gcc2
3147
 
   builtin and then its argument prototype would still apply.  */
3148
 
char setpag ();
3149
 
int
3150
 
main ()
3151
 
{
3152
 
setpag ();
3153
 
  ;
3154
 
  return 0;
3155
 
}
3156
 
_ACEOF
3157
 
rm -f conftest.$ac_objext conftest$ac_exeext
3158
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3159
 
  (eval $ac_link) 2>conftest.er1
3160
 
  ac_status=$?
3161
 
  grep -v '^ *+' conftest.er1 >conftest.err
3162
 
  rm -f conftest.er1
3163
 
  cat conftest.err >&5
3164
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165
 
  (exit $ac_status); } &&
3166
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3167
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3168
 
  (eval $ac_try) 2>&5
3169
 
  ac_status=$?
3170
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171
 
  (exit $ac_status); }; } &&
3172
 
         { ac_try='test -s conftest$ac_exeext'
3173
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174
 
  (eval $ac_try) 2>&5
3175
 
  ac_status=$?
3176
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177
 
  (exit $ac_status); }; }; then
3178
 
  ac_cv_lib_afsauthent_setpag=yes
3179
 
else
3180
 
  echo "$as_me: failed program was:" >&5
3181
 
sed 's/^/| /' conftest.$ac_ext >&5
3182
 
 
3183
 
ac_cv_lib_afsauthent_setpag=no
3184
 
fi
3185
 
rm -f conftest.err conftest.$ac_objext \
3186
 
      conftest$ac_exeext conftest.$ac_ext
3187
 
LIBS=$ac_check_lib_save_LIBS
3188
 
fi
3189
 
echo "$as_me:$LINENO: result: $ac_cv_lib_afsauthent_setpag" >&5
3190
 
echo "${ECHO_T}$ac_cv_lib_afsauthent_setpag" >&6
3191
 
if test $ac_cv_lib_afsauthent_setpag = yes; then
3192
 
  LIBS="-lafsauthent -lafsrpc -lpthread $LIBS"
3193
 
 
3194
 
cat >>confdefs.h <<\_ACEOF
3195
 
#define HAVE_SETPAG 1
3196
 
_ACEOF
3197
 
 
3198
 
else
3199
 
  { { echo "$as_me:$LINENO: error: setpag function not found" >&5
3200
 
echo "$as_me: error: setpag function not found" >&2;}
3201
 
   { (exit 1); exit 1; }; }
3202
 
fi
3203
 
 
3204
 
     fi
3205
 
fi;
3206
 
 
3207
2435
K4START=k4start
3208
2436
K4START_MAN=k4start.1
3209
2437
# Check whether --enable-k4start or --disable-k4start was given.
3218
2446
 
3219
2447
 
3220
2448
save_LIBS=$LIBS
3221
 
LIBS="$KRBLIBS $LIBS"
3222
 
if test x"$K4START" != x ; then
3223
 
 
3224
 
for ac_func in krb_life_to_time
3225
 
do
3226
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3227
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
3228
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3229
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
3230
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3231
 
else
3232
 
  cat >conftest.$ac_ext <<_ACEOF
3233
 
/* confdefs.h.  */
3234
 
_ACEOF
3235
 
cat confdefs.h >>conftest.$ac_ext
3236
 
cat >>conftest.$ac_ext <<_ACEOF
3237
 
/* end confdefs.h.  */
3238
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3239
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3240
 
#define $ac_func innocuous_$ac_func
3241
 
 
3242
 
/* System header to define __stub macros and hopefully few prototypes,
3243
 
    which can conflict with char $ac_func (); below.
3244
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3245
 
    <limits.h> exists even on freestanding compilers.  */
3246
 
 
3247
 
#ifdef __STDC__
3248
 
# include <limits.h>
3249
 
#else
3250
 
# include <assert.h>
3251
 
#endif
3252
 
 
3253
 
#undef $ac_func
3254
 
 
3255
 
/* Override any gcc2 internal prototype to avoid an error.  */
3256
 
#ifdef __cplusplus
3257
 
extern "C"
3258
 
{
3259
 
#endif
3260
 
/* We use char because int might match the return type of a gcc2
3261
 
   builtin and then its argument prototype would still apply.  */
3262
 
char $ac_func ();
3263
 
/* The GNU C library defines this for functions which it implements
3264
 
    to always fail with ENOSYS.  Some functions are actually named
3265
 
    something starting with __ and the normal name is an alias.  */
3266
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3267
 
choke me
3268
 
#else
3269
 
char (*f) () = $ac_func;
3270
 
#endif
3271
 
#ifdef __cplusplus
3272
 
}
3273
 
#endif
3274
 
 
3275
 
int
3276
 
main ()
3277
 
{
3278
 
return f != $ac_func;
3279
 
  ;
3280
 
  return 0;
3281
 
}
3282
 
_ACEOF
3283
 
rm -f conftest.$ac_objext conftest$ac_exeext
3284
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3285
 
  (eval $ac_link) 2>conftest.er1
3286
 
  ac_status=$?
3287
 
  grep -v '^ *+' conftest.er1 >conftest.err
3288
 
  rm -f conftest.er1
3289
 
  cat conftest.err >&5
3290
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291
 
  (exit $ac_status); } &&
3292
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3293
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294
 
  (eval $ac_try) 2>&5
3295
 
  ac_status=$?
3296
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297
 
  (exit $ac_status); }; } &&
3298
 
         { ac_try='test -s conftest$ac_exeext'
3299
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300
 
  (eval $ac_try) 2>&5
3301
 
  ac_status=$?
3302
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303
 
  (exit $ac_status); }; }; then
3304
 
  eval "$as_ac_var=yes"
3305
 
else
3306
 
  echo "$as_me: failed program was:" >&5
3307
 
sed 's/^/| /' conftest.$ac_ext >&5
3308
 
 
3309
 
eval "$as_ac_var=no"
3310
 
fi
3311
 
rm -f conftest.err conftest.$ac_objext \
3312
 
      conftest$ac_exeext conftest.$ac_ext
3313
 
fi
3314
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3315
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3316
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
3317
 
  cat >>confdefs.h <<_ACEOF
3318
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3319
 
_ACEOF
3320
 
 
3321
 
else
3322
 
  case $LIBOBJS in
3323
 
    "lifetime.$ac_objext"   | \
3324
 
  *" lifetime.$ac_objext"   | \
3325
 
    "lifetime.$ac_objext "* | \
3326
 
  *" lifetime.$ac_objext "* ) ;;
3327
 
  *) LIBOBJS="$LIBOBJS lifetime.$ac_objext" ;;
3328
 
esac
3329
 
 
3330
 
fi
3331
 
done
3332
 
 
3333
 
fi
3334
 
LIBS=$save_LIBS
3335
2449
 
3336
2450
ac_ext=c
3337
2451
ac_cpp='$CPP $CPPFLAGS'
3819
2933
done
3820
2934
 
3821
2935
 
3822
 
 
3823
 
for ac_header in kerberosIV/krb.h
 
2936
KRBROOT=
 
2937
 
 
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
 
2942
        KRBROOT="$withval"
 
2943
     fi
 
2944
fi;
 
2945
 
 
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"
 
2954
             fi
 
2955
             LDFLAGS="$LDFLAGS -L$KRBROOT/lib"
 
2956
         fi
 
2957
         case "krb5" in
 
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
 
2962
else
 
2963
  ac_check_lib_save_LIBS=$LIBS
 
2964
LIBS="-lgssapi  $LIBS"
 
2965
cat >conftest.$ac_ext <<_ACEOF
 
2966
/* confdefs.h.  */
 
2967
_ACEOF
 
2968
cat confdefs.h >>conftest.$ac_ext
 
2969
cat >>conftest.$ac_ext <<_ACEOF
 
2970
/* end confdefs.h.  */
 
2971
 
 
2972
/* Override any gcc2 internal prototype to avoid an error.  */
 
2973
#ifdef __cplusplus
 
2974
extern "C"
 
2975
#endif
 
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 ();
 
2979
int
 
2980
main ()
 
2981
{
 
2982
gss_import_name ();
 
2983
  ;
 
2984
  return 0;
 
2985
}
 
2986
_ACEOF
 
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
 
2990
  ac_status=$?
 
2991
  grep -v '^ *+' conftest.er1 >conftest.err
 
2992
  rm -f conftest.er1
 
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
 
2998
  (eval $ac_try) 2>&5
 
2999
  ac_status=$?
 
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
 
3004
  (eval $ac_try) 2>&5
 
3005
  ac_status=$?
 
3006
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3007
  (exit $ac_status); }; }; then
 
3008
  ac_cv_lib_gssapi_gss_import_name=yes
 
3009
else
 
3010
  echo "$as_me: failed program was:" >&5
 
3011
sed 's/^/| /' conftest.$ac_ext >&5
 
3012
 
 
3013
ac_cv_lib_gssapi_gss_import_name=no
 
3014
fi
 
3015
rm -f conftest.err conftest.$ac_objext \
 
3016
      conftest$ac_exeext conftest.$ac_ext
 
3017
LIBS=$ac_check_lib_save_LIBS
 
3018
fi
 
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
 
3022
  KRBLIBS="-lgssapi"
 
3023
else
 
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
 
3028
else
 
3029
  ac_check_lib_save_LIBS=$LIBS
 
3030
LIBS="-lgssapi_krb5  $LIBS"
 
3031
cat >conftest.$ac_ext <<_ACEOF
 
3032
/* confdefs.h.  */
 
3033
_ACEOF
 
3034
cat confdefs.h >>conftest.$ac_ext
 
3035
cat >>conftest.$ac_ext <<_ACEOF
 
3036
/* end confdefs.h.  */
 
3037
 
 
3038
/* Override any gcc2 internal prototype to avoid an error.  */
 
3039
#ifdef __cplusplus
 
3040
extern "C"
 
3041
#endif
 
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 ();
 
3045
int
 
3046
main ()
 
3047
{
 
3048
gss_import_name ();
 
3049
  ;
 
3050
  return 0;
 
3051
}
 
3052
_ACEOF
 
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
 
3056
  ac_status=$?
 
3057
  grep -v '^ *+' conftest.er1 >conftest.err
 
3058
  rm -f conftest.er1
 
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
 
3064
  (eval $ac_try) 2>&5
 
3065
  ac_status=$?
 
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
 
3070
  (eval $ac_try) 2>&5
 
3071
  ac_status=$?
 
3072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3073
  (exit $ac_status); }; }; then
 
3074
  ac_cv_lib_gssapi_krb5_gss_import_name=yes
 
3075
else
 
3076
  echo "$as_me: failed program was:" >&5
 
3077
sed 's/^/| /' conftest.$ac_ext >&5
 
3078
 
 
3079
ac_cv_lib_gssapi_krb5_gss_import_name=no
 
3080
fi
 
3081
rm -f conftest.err conftest.$ac_objext \
 
3082
      conftest$ac_exeext conftest.$ac_ext
 
3083
LIBS=$ac_check_lib_save_LIBS
 
3084
fi
 
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"
 
3089
else
 
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; }; }
 
3093
fi
 
3094
 
 
3095
fi
 
3096
 ;;
 
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
 
3101
else
 
3102
  ac_check_lib_save_LIBS=$LIBS
 
3103
LIBS="-lkrb5  $LIBS"
 
3104
cat >conftest.$ac_ext <<_ACEOF
 
3105
/* confdefs.h.  */
 
3106
_ACEOF
 
3107
cat confdefs.h >>conftest.$ac_ext
 
3108
cat >>conftest.$ac_ext <<_ACEOF
 
3109
/* end confdefs.h.  */
 
3110
 
 
3111
/* Override any gcc2 internal prototype to avoid an error.  */
 
3112
#ifdef __cplusplus
 
3113
extern "C"
 
3114
#endif
 
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 ();
 
3118
int
 
3119
main ()
 
3120
{
 
3121
krb5_init_context ();
 
3122
  ;
 
3123
  return 0;
 
3124
}
 
3125
_ACEOF
 
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
 
3129
  ac_status=$?
 
3130
  grep -v '^ *+' conftest.er1 >conftest.err
 
3131
  rm -f conftest.er1
 
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
 
3137
  (eval $ac_try) 2>&5
 
3138
  ac_status=$?
 
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
 
3143
  (eval $ac_try) 2>&5
 
3144
  ac_status=$?
 
3145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3146
  (exit $ac_status); }; }; then
 
3147
  ac_cv_lib_krb5_krb5_init_context=yes
 
3148
else
 
3149
  echo "$as_me: failed program was:" >&5
 
3150
sed 's/^/| /' conftest.$ac_ext >&5
 
3151
 
 
3152
ac_cv_lib_krb5_krb5_init_context=no
 
3153
fi
 
3154
rm -f conftest.err conftest.$ac_objext \
 
3155
      conftest$ac_exeext conftest.$ac_ext
 
3156
LIBS=$ac_check_lib_save_LIBS
 
3157
fi
 
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
 
3161
  KRBLIBS="-lkrb5"
 
3162
else
 
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; }; }
 
3166
fi
 
3167
 
 
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
 
3172
else
 
3173
  ac_check_lib_save_LIBS=$LIBS
 
3174
LIBS="-lcom_err  $LIBS"
 
3175
cat >conftest.$ac_ext <<_ACEOF
 
3176
/* confdefs.h.  */
 
3177
_ACEOF
 
3178
cat confdefs.h >>conftest.$ac_ext
 
3179
cat >>conftest.$ac_ext <<_ACEOF
 
3180
/* end confdefs.h.  */
 
3181
 
 
3182
/* Override any gcc2 internal prototype to avoid an error.  */
 
3183
#ifdef __cplusplus
 
3184
extern "C"
 
3185
#endif
 
3186
/* We use char because int might match the return type of a gcc2
 
3187
   builtin and then its argument prototype would still apply.  */
 
3188
char com_err ();
 
3189
int
 
3190
main ()
 
3191
{
 
3192
com_err ();
 
3193
  ;
 
3194
  return 0;
 
3195
}
 
3196
_ACEOF
 
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
 
3200
  ac_status=$?
 
3201
  grep -v '^ *+' conftest.er1 >conftest.err
 
3202
  rm -f conftest.er1
 
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
 
3208
  (eval $ac_try) 2>&5
 
3209
  ac_status=$?
 
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
 
3214
  (eval $ac_try) 2>&5
 
3215
  ac_status=$?
 
3216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3217
  (exit $ac_status); }; }; then
 
3218
  ac_cv_lib_com_err_com_err=yes
 
3219
else
 
3220
  echo "$as_me: failed program was:" >&5
 
3221
sed 's/^/| /' conftest.$ac_ext >&5
 
3222
 
 
3223
ac_cv_lib_com_err_com_err=no
 
3224
fi
 
3225
rm -f conftest.err conftest.$ac_objext \
 
3226
      conftest$ac_exeext conftest.$ac_ext
 
3227
LIBS=$ac_check_lib_save_LIBS
 
3228
fi
 
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"
 
3233
else
 
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; }; }
 
3237
fi
 
3238
   ;;
 
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
 
3243
else
 
3244
  ac_check_lib_save_LIBS=$LIBS
 
3245
LIBS="-lkrb4  $LIBS"
 
3246
cat >conftest.$ac_ext <<_ACEOF
 
3247
/* confdefs.h.  */
 
3248
_ACEOF
 
3249
cat confdefs.h >>conftest.$ac_ext
 
3250
cat >>conftest.$ac_ext <<_ACEOF
 
3251
/* end confdefs.h.  */
 
3252
 
 
3253
/* Override any gcc2 internal prototype to avoid an error.  */
 
3254
#ifdef __cplusplus
 
3255
extern "C"
 
3256
#endif
 
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 ();
 
3260
int
 
3261
main ()
 
3262
{
 
3263
krb_get_svc_in_tkt ();
 
3264
  ;
 
3265
  return 0;
 
3266
}
 
3267
_ACEOF
 
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
 
3271
  ac_status=$?
 
3272
  grep -v '^ *+' conftest.er1 >conftest.err
 
3273
  rm -f conftest.er1
 
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
 
3279
  (eval $ac_try) 2>&5
 
3280
  ac_status=$?
 
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
 
3285
  (eval $ac_try) 2>&5
 
3286
  ac_status=$?
 
3287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3288
  (exit $ac_status); }; }; then
 
3289
  ac_cv_lib_krb4_krb_get_svc_in_tkt=yes
 
3290
else
 
3291
  echo "$as_me: failed program was:" >&5
 
3292
sed 's/^/| /' conftest.$ac_ext >&5
 
3293
 
 
3294
ac_cv_lib_krb4_krb_get_svc_in_tkt=no
 
3295
fi
 
3296
rm -f conftest.err conftest.$ac_objext \
 
3297
      conftest$ac_exeext conftest.$ac_ext
 
3298
LIBS=$ac_check_lib_save_LIBS
 
3299
fi
 
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
 
3303
  KRBLIBS="-lkrb4"
 
3304
else
 
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
 
3309
else
 
3310
  ac_check_lib_save_LIBS=$LIBS
 
3311
LIBS="-lkrb  $LIBS"
 
3312
cat >conftest.$ac_ext <<_ACEOF
 
3313
/* confdefs.h.  */
 
3314
_ACEOF
 
3315
cat confdefs.h >>conftest.$ac_ext
 
3316
cat >>conftest.$ac_ext <<_ACEOF
 
3317
/* end confdefs.h.  */
 
3318
 
 
3319
/* Override any gcc2 internal prototype to avoid an error.  */
 
3320
#ifdef __cplusplus
 
3321
extern "C"
 
3322
#endif
 
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 ();
 
3326
int
 
3327
main ()
 
3328
{
 
3329
krb_get_svc_in_tkt ();
 
3330
  ;
 
3331
  return 0;
 
3332
}
 
3333
_ACEOF
 
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
 
3337
  ac_status=$?
 
3338
  grep -v '^ *+' conftest.er1 >conftest.err
 
3339
  rm -f conftest.er1
 
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
 
3345
  (eval $ac_try) 2>&5
 
3346
  ac_status=$?
 
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
 
3351
  (eval $ac_try) 2>&5
 
3352
  ac_status=$?
 
3353
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3354
  (exit $ac_status); }; }; then
 
3355
  ac_cv_lib_krb_krb_get_svc_in_tkt=yes
 
3356
else
 
3357
  echo "$as_me: failed program was:" >&5
 
3358
sed 's/^/| /' conftest.$ac_ext >&5
 
3359
 
 
3360
ac_cv_lib_krb_krb_get_svc_in_tkt=no
 
3361
fi
 
3362
rm -f conftest.err conftest.$ac_objext \
 
3363
      conftest$ac_exeext conftest.$ac_ext
 
3364
LIBS=$ac_check_lib_save_LIBS
 
3365
fi
 
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
 
3369
  KRBLIBS="-lkrb"
 
3370
else
 
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; }; }
 
3374
fi
 
3375
 
 
3376
fi
 
3377
   ;;
 
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; }; } ;;
 
3381
         esac
 
3382
         reduce_depends=true
 
3383
     fi
 
3384
fi;
 
3385
 
 
3386
static=false
 
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; }; }
 
3395
         fi
 
3396
         static=true
 
3397
     fi
 
3398
fi;
 
3399
 
 
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
 
3406
else
 
3407
  ac_func_search_save_LIBS=$LIBS
 
3408
ac_cv_search_gethostbyname=no
 
3409
cat >conftest.$ac_ext <<_ACEOF
 
3410
/* confdefs.h.  */
 
3411
_ACEOF
 
3412
cat confdefs.h >>conftest.$ac_ext
 
3413
cat >>conftest.$ac_ext <<_ACEOF
 
3414
/* end confdefs.h.  */
 
3415
 
 
3416
/* Override any gcc2 internal prototype to avoid an error.  */
 
3417
#ifdef __cplusplus
 
3418
extern "C"
 
3419
#endif
 
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 ();
 
3423
int
 
3424
main ()
 
3425
{
 
3426
gethostbyname ();
 
3427
  ;
 
3428
  return 0;
 
3429
}
 
3430
_ACEOF
 
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
 
3434
  ac_status=$?
 
3435
  grep -v '^ *+' conftest.er1 >conftest.err
 
3436
  rm -f conftest.er1
 
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
 
3442
  (eval $ac_try) 2>&5
 
3443
  ac_status=$?
 
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
 
3448
  (eval $ac_try) 2>&5
 
3449
  ac_status=$?
 
3450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3451
  (exit $ac_status); }; }; then
 
3452
  ac_cv_search_gethostbyname="none required"
 
3453
else
 
3454
  echo "$as_me: failed program was:" >&5
 
3455
sed 's/^/| /' conftest.$ac_ext >&5
 
3456
 
 
3457
fi
 
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
 
3464
/* confdefs.h.  */
 
3465
_ACEOF
 
3466
cat confdefs.h >>conftest.$ac_ext
 
3467
cat >>conftest.$ac_ext <<_ACEOF
 
3468
/* end confdefs.h.  */
 
3469
 
 
3470
/* Override any gcc2 internal prototype to avoid an error.  */
 
3471
#ifdef __cplusplus
 
3472
extern "C"
 
3473
#endif
 
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 ();
 
3477
int
 
3478
main ()
 
3479
{
 
3480
gethostbyname ();
 
3481
  ;
 
3482
  return 0;
 
3483
}
 
3484
_ACEOF
 
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
 
3488
  ac_status=$?
 
3489
  grep -v '^ *+' conftest.er1 >conftest.err
 
3490
  rm -f conftest.er1
 
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
 
3496
  (eval $ac_try) 2>&5
 
3497
  ac_status=$?
 
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
 
3502
  (eval $ac_try) 2>&5
 
3503
  ac_status=$?
 
3504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3505
  (exit $ac_status); }; }; then
 
3506
  ac_cv_search_gethostbyname="-l$ac_lib"
 
3507
break
 
3508
else
 
3509
  echo "$as_me: failed program was:" >&5
 
3510
sed 's/^/| /' conftest.$ac_ext >&5
 
3511
 
 
3512
fi
 
3513
rm -f conftest.err conftest.$ac_objext \
 
3514
      conftest$ac_exeext conftest.$ac_ext
 
3515
  done
 
3516
fi
 
3517
LIBS=$ac_func_search_save_LIBS
 
3518
fi
 
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"
 
3523
 
 
3524
fi
 
3525
 
 
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
 
3530
else
 
3531
  ac_func_search_save_LIBS=$LIBS
 
3532
ac_cv_search_socket=no
 
3533
cat >conftest.$ac_ext <<_ACEOF
 
3534
/* confdefs.h.  */
 
3535
_ACEOF
 
3536
cat confdefs.h >>conftest.$ac_ext
 
3537
cat >>conftest.$ac_ext <<_ACEOF
 
3538
/* end confdefs.h.  */
 
3539
 
 
3540
/* Override any gcc2 internal prototype to avoid an error.  */
 
3541
#ifdef __cplusplus
 
3542
extern "C"
 
3543
#endif
 
3544
/* We use char because int might match the return type of a gcc2
 
3545
   builtin and then its argument prototype would still apply.  */
 
3546
char socket ();
 
3547
int
 
3548
main ()
 
3549
{
 
3550
socket ();
 
3551
  ;
 
3552
  return 0;
 
3553
}
 
3554
_ACEOF
 
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
 
3558
  ac_status=$?
 
3559
  grep -v '^ *+' conftest.er1 >conftest.err
 
3560
  rm -f conftest.er1
 
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
 
3566
  (eval $ac_try) 2>&5
 
3567
  ac_status=$?
 
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
 
3572
  (eval $ac_try) 2>&5
 
3573
  ac_status=$?
 
3574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3575
  (exit $ac_status); }; }; then
 
3576
  ac_cv_search_socket="none required"
 
3577
else
 
3578
  echo "$as_me: failed program was:" >&5
 
3579
sed 's/^/| /' conftest.$ac_ext >&5
 
3580
 
 
3581
fi
 
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
 
3588
/* confdefs.h.  */
 
3589
_ACEOF
 
3590
cat confdefs.h >>conftest.$ac_ext
 
3591
cat >>conftest.$ac_ext <<_ACEOF
 
3592
/* end confdefs.h.  */
 
3593
 
 
3594
/* Override any gcc2 internal prototype to avoid an error.  */
 
3595
#ifdef __cplusplus
 
3596
extern "C"
 
3597
#endif
 
3598
/* We use char because int might match the return type of a gcc2
 
3599
   builtin and then its argument prototype would still apply.  */
 
3600
char socket ();
 
3601
int
 
3602
main ()
 
3603
{
 
3604
socket ();
 
3605
  ;
 
3606
  return 0;
 
3607
}
 
3608
_ACEOF
 
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
 
3612
  ac_status=$?
 
3613
  grep -v '^ *+' conftest.er1 >conftest.err
 
3614
  rm -f conftest.er1
 
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
 
3620
  (eval $ac_try) 2>&5
 
3621
  ac_status=$?
 
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
 
3626
  (eval $ac_try) 2>&5
 
3627
  ac_status=$?
 
3628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3629
  (exit $ac_status); }; }; then
 
3630
  ac_cv_search_socket="-l$ac_lib"
 
3631
break
 
3632
else
 
3633
  echo "$as_me: failed program was:" >&5
 
3634
sed 's/^/| /' conftest.$ac_ext >&5
 
3635
 
 
3636
fi
 
3637
rm -f conftest.err conftest.$ac_objext \
 
3638
      conftest$ac_exeext conftest.$ac_ext
 
3639
  done
 
3640
fi
 
3641
LIBS=$ac_func_search_save_LIBS
 
3642
fi
 
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"
 
3647
 
 
3648
else
 
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
 
3653
else
 
3654
  ac_check_lib_save_LIBS=$LIBS
 
3655
LIBS="-lnsl -lsocket $LIBS"
 
3656
cat >conftest.$ac_ext <<_ACEOF
 
3657
/* confdefs.h.  */
 
3658
_ACEOF
 
3659
cat confdefs.h >>conftest.$ac_ext
 
3660
cat >>conftest.$ac_ext <<_ACEOF
 
3661
/* end confdefs.h.  */
 
3662
 
 
3663
/* Override any gcc2 internal prototype to avoid an error.  */
 
3664
#ifdef __cplusplus
 
3665
extern "C"
 
3666
#endif
 
3667
/* We use char because int might match the return type of a gcc2
 
3668
   builtin and then its argument prototype would still apply.  */
 
3669
char socket ();
 
3670
int
 
3671
main ()
 
3672
{
 
3673
socket ();
 
3674
  ;
 
3675
  return 0;
 
3676
}
 
3677
_ACEOF
 
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
 
3681
  ac_status=$?
 
3682
  grep -v '^ *+' conftest.er1 >conftest.err
 
3683
  rm -f conftest.er1
 
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
 
3689
  (eval $ac_try) 2>&5
 
3690
  ac_status=$?
 
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
 
3695
  (eval $ac_try) 2>&5
 
3696
  ac_status=$?
 
3697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3698
  (exit $ac_status); }; }; then
 
3699
  ac_cv_lib_nsl_socket=yes
 
3700
else
 
3701
  echo "$as_me: failed program was:" >&5
 
3702
sed 's/^/| /' conftest.$ac_ext >&5
 
3703
 
 
3704
ac_cv_lib_nsl_socket=no
 
3705
fi
 
3706
rm -f conftest.err conftest.$ac_objext \
 
3707
      conftest$ac_exeext conftest.$ac_ext
 
3708
LIBS=$ac_check_lib_save_LIBS
 
3709
fi
 
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"
 
3714
fi
 
3715
 
 
3716
fi
 
3717
 
 
3718
    fi
 
3719
 
 
3720
    if test x"$KRBROOT" != x ; then
 
3721
        if test -x "$KRBROOT/bin/krb5-config" ; then
 
3722
            KRB5_CONFIG="$KRBROOT/bin/krb5-config"
 
3723
        fi
 
3724
    else
 
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
 
3731
else
 
3732
  case $KRB5_CONFIG in
 
3733
  [\\/]* | ?:[\\/]*)
 
3734
  ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
 
3735
  ;;
 
3736
  *)
 
3737
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3738
for as_dir in $PATH
 
3739
do
 
3740
  IFS=$as_save_IFS
 
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
 
3746
    break 2
 
3747
  fi
 
3748
done
 
3749
done
 
3750
 
 
3751
  ;;
 
3752
esac
 
3753
fi
 
3754
KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
 
3755
 
 
3756
if test -n "$KRB5_CONFIG"; then
 
3757
  echo "$as_me:$LINENO: result: $KRB5_CONFIG" >&5
 
3758
echo "${ECHO_T}$KRB5_CONFIG" >&6
 
3759
else
 
3760
  echo "$as_me:$LINENO: result: no" >&5
 
3761
echo "${ECHO_T}no" >&6
 
3762
fi
 
3763
 
 
3764
    fi
 
3765
 
 
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
 
3768
    # dynamic.
 
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'`
 
3777
        else
 
3778
            echo "$as_me:$LINENO: result: no" >&5
 
3779
echo "${ECHO_T}no" >&6
 
3780
            KRBCPPFLAGS=`"$KRB5_CONFIG" --cflags`
 
3781
            KRBLIBS=`"$KRB5_CONFIG" --libs`
 
3782
        fi
 
3783
        KRBCPPFLAGS=`echo "$KRBCPPFLAGS" | sed 's%-I/usr/include ?%%'`
 
3784
    else
 
3785
        if test x"$KRBROOT" != x ; then
 
3786
            if test x"$KRBROOT" != x/usr ; then
 
3787
                KRBCPPFLAGS="-I$KRBROOT/include"
 
3788
            fi
 
3789
            LDFLAGS="$LDFLAGS -L$KRBROOT/lib"
 
3790
        fi
 
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
 
3795
else
 
3796
  ac_func_search_save_LIBS=$LIBS
 
3797
ac_cv_search_res_search=no
 
3798
cat >conftest.$ac_ext <<_ACEOF
 
3799
/* confdefs.h.  */
 
3800
_ACEOF
 
3801
cat confdefs.h >>conftest.$ac_ext
 
3802
cat >>conftest.$ac_ext <<_ACEOF
 
3803
/* end confdefs.h.  */
 
3804
 
 
3805
/* Override any gcc2 internal prototype to avoid an error.  */
 
3806
#ifdef __cplusplus
 
3807
extern "C"
 
3808
#endif
 
3809
/* We use char because int might match the return type of a gcc2
 
3810
   builtin and then its argument prototype would still apply.  */
 
3811
char res_search ();
 
3812
int
 
3813
main ()
 
3814
{
 
3815
res_search ();
 
3816
  ;
 
3817
  return 0;
 
3818
}
 
3819
_ACEOF
 
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
 
3823
  ac_status=$?
 
3824
  grep -v '^ *+' conftest.er1 >conftest.err
 
3825
  rm -f conftest.er1
 
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
 
3831
  (eval $ac_try) 2>&5
 
3832
  ac_status=$?
 
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
 
3837
  (eval $ac_try) 2>&5
 
3838
  ac_status=$?
 
3839
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3840
  (exit $ac_status); }; }; then
 
3841
  ac_cv_search_res_search="none required"
 
3842
else
 
3843
  echo "$as_me: failed program was:" >&5
 
3844
sed 's/^/| /' conftest.$ac_ext >&5
 
3845
 
 
3846
fi
 
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
 
3853
/* confdefs.h.  */
 
3854
_ACEOF
 
3855
cat confdefs.h >>conftest.$ac_ext
 
3856
cat >>conftest.$ac_ext <<_ACEOF
 
3857
/* end confdefs.h.  */
 
3858
 
 
3859
/* Override any gcc2 internal prototype to avoid an error.  */
 
3860
#ifdef __cplusplus
 
3861
extern "C"
 
3862
#endif
 
3863
/* We use char because int might match the return type of a gcc2
 
3864
   builtin and then its argument prototype would still apply.  */
 
3865
char res_search ();
 
3866
int
 
3867
main ()
 
3868
{
 
3869
res_search ();
 
3870
  ;
 
3871
  return 0;
 
3872
}
 
3873
_ACEOF
 
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
 
3877
  ac_status=$?
 
3878
  grep -v '^ *+' conftest.er1 >conftest.err
 
3879
  rm -f conftest.er1
 
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
 
3885
  (eval $ac_try) 2>&5
 
3886
  ac_status=$?
 
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
 
3891
  (eval $ac_try) 2>&5
 
3892
  ac_status=$?
 
3893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3894
  (exit $ac_status); }; }; then
 
3895
  ac_cv_search_res_search="-l$ac_lib"
 
3896
break
 
3897
else
 
3898
  echo "$as_me: failed program was:" >&5
 
3899
sed 's/^/| /' conftest.$ac_ext >&5
 
3900
 
 
3901
fi
 
3902
rm -f conftest.err conftest.$ac_objext \
 
3903
      conftest$ac_exeext conftest.$ac_ext
 
3904
  done
 
3905
fi
 
3906
LIBS=$ac_func_search_save_LIBS
 
3907
fi
 
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"
 
3912
 
 
3913
else
 
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
 
3918
else
 
3919
  ac_func_search_save_LIBS=$LIBS
 
3920
ac_cv_search___res_search=no
 
3921
cat >conftest.$ac_ext <<_ACEOF
 
3922
/* confdefs.h.  */
 
3923
_ACEOF
 
3924
cat confdefs.h >>conftest.$ac_ext
 
3925
cat >>conftest.$ac_ext <<_ACEOF
 
3926
/* end confdefs.h.  */
 
3927
 
 
3928
/* Override any gcc2 internal prototype to avoid an error.  */
 
3929
#ifdef __cplusplus
 
3930
extern "C"
 
3931
#endif
 
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 ();
 
3935
int
 
3936
main ()
 
3937
{
 
3938
__res_search ();
 
3939
  ;
 
3940
  return 0;
 
3941
}
 
3942
_ACEOF
 
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
 
3946
  ac_status=$?
 
3947
  grep -v '^ *+' conftest.er1 >conftest.err
 
3948
  rm -f conftest.er1
 
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
 
3954
  (eval $ac_try) 2>&5
 
3955
  ac_status=$?
 
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
 
3960
  (eval $ac_try) 2>&5
 
3961
  ac_status=$?
 
3962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3963
  (exit $ac_status); }; }; then
 
3964
  ac_cv_search___res_search="none required"
 
3965
else
 
3966
  echo "$as_me: failed program was:" >&5
 
3967
sed 's/^/| /' conftest.$ac_ext >&5
 
3968
 
 
3969
fi
 
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
 
3976
/* confdefs.h.  */
 
3977
_ACEOF
 
3978
cat confdefs.h >>conftest.$ac_ext
 
3979
cat >>conftest.$ac_ext <<_ACEOF
 
3980
/* end confdefs.h.  */
 
3981
 
 
3982
/* Override any gcc2 internal prototype to avoid an error.  */
 
3983
#ifdef __cplusplus
 
3984
extern "C"
 
3985
#endif
 
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 ();
 
3989
int
 
3990
main ()
 
3991
{
 
3992
__res_search ();
 
3993
  ;
 
3994
  return 0;
 
3995
}
 
3996
_ACEOF
 
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
 
4000
  ac_status=$?
 
4001
  grep -v '^ *+' conftest.er1 >conftest.err
 
4002
  rm -f conftest.er1
 
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
 
4008
  (eval $ac_try) 2>&5
 
4009
  ac_status=$?
 
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
 
4014
  (eval $ac_try) 2>&5
 
4015
  ac_status=$?
 
4016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4017
  (exit $ac_status); }; }; then
 
4018
  ac_cv_search___res_search="-l$ac_lib"
 
4019
break
 
4020
else
 
4021
  echo "$as_me: failed program was:" >&5
 
4022
sed 's/^/| /' conftest.$ac_ext >&5
 
4023
 
 
4024
fi
 
4025
rm -f conftest.err conftest.$ac_objext \
 
4026
      conftest$ac_exeext conftest.$ac_ext
 
4027
  done
 
4028
fi
 
4029
LIBS=$ac_func_search_save_LIBS
 
4030
fi
 
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"
 
4035
 
 
4036
fi
 
4037
 
 
4038
fi
 
4039
 
 
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
 
4044
else
 
4045
  ac_func_search_save_LIBS=$LIBS
 
4046
ac_cv_search_crypt=no
 
4047
cat >conftest.$ac_ext <<_ACEOF
 
4048
/* confdefs.h.  */
 
4049
_ACEOF
 
4050
cat confdefs.h >>conftest.$ac_ext
 
4051
cat >>conftest.$ac_ext <<_ACEOF
 
4052
/* end confdefs.h.  */
 
4053
 
 
4054
/* Override any gcc2 internal prototype to avoid an error.  */
 
4055
#ifdef __cplusplus
 
4056
extern "C"
 
4057
#endif
 
4058
/* We use char because int might match the return type of a gcc2
 
4059
   builtin and then its argument prototype would still apply.  */
 
4060
char crypt ();
 
4061
int
 
4062
main ()
 
4063
{
 
4064
crypt ();
 
4065
  ;
 
4066
  return 0;
 
4067
}
 
4068
_ACEOF
 
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
 
4072
  ac_status=$?
 
4073
  grep -v '^ *+' conftest.er1 >conftest.err
 
4074
  rm -f conftest.er1
 
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
 
4080
  (eval $ac_try) 2>&5
 
4081
  ac_status=$?
 
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
 
4086
  (eval $ac_try) 2>&5
 
4087
  ac_status=$?
 
4088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4089
  (exit $ac_status); }; }; then
 
4090
  ac_cv_search_crypt="none required"
 
4091
else
 
4092
  echo "$as_me: failed program was:" >&5
 
4093
sed 's/^/| /' conftest.$ac_ext >&5
 
4094
 
 
4095
fi
 
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
 
4102
/* confdefs.h.  */
 
4103
_ACEOF
 
4104
cat confdefs.h >>conftest.$ac_ext
 
4105
cat >>conftest.$ac_ext <<_ACEOF
 
4106
/* end confdefs.h.  */
 
4107
 
 
4108
/* Override any gcc2 internal prototype to avoid an error.  */
 
4109
#ifdef __cplusplus
 
4110
extern "C"
 
4111
#endif
 
4112
/* We use char because int might match the return type of a gcc2
 
4113
   builtin and then its argument prototype would still apply.  */
 
4114
char crypt ();
 
4115
int
 
4116
main ()
 
4117
{
 
4118
crypt ();
 
4119
  ;
 
4120
  return 0;
 
4121
}
 
4122
_ACEOF
 
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
 
4126
  ac_status=$?
 
4127
  grep -v '^ *+' conftest.er1 >conftest.err
 
4128
  rm -f conftest.er1
 
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
 
4134
  (eval $ac_try) 2>&5
 
4135
  ac_status=$?
 
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
 
4140
  (eval $ac_try) 2>&5
 
4141
  ac_status=$?
 
4142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4143
  (exit $ac_status); }; }; then
 
4144
  ac_cv_search_crypt="-l$ac_lib"
 
4145
break
 
4146
else
 
4147
  echo "$as_me: failed program was:" >&5
 
4148
sed 's/^/| /' conftest.$ac_ext >&5
 
4149
 
 
4150
fi
 
4151
rm -f conftest.err conftest.$ac_objext \
 
4152
      conftest$ac_exeext conftest.$ac_ext
 
4153
  done
 
4154
fi
 
4155
LIBS=$ac_func_search_save_LIBS
 
4156
fi
 
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"
 
4161
 
 
4162
fi
 
4163
 
 
4164
        case "krb5" in
 
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
 
4169
else
 
4170
  ac_check_lib_save_LIBS=$LIBS
 
4171
LIBS="-lgssapi -lkrb5 -lasn1 -lroken -lcrypto -lcom_err $LIBS"
 
4172
cat >conftest.$ac_ext <<_ACEOF
 
4173
/* confdefs.h.  */
 
4174
_ACEOF
 
4175
cat confdefs.h >>conftest.$ac_ext
 
4176
cat >>conftest.$ac_ext <<_ACEOF
 
4177
/* end confdefs.h.  */
 
4178
 
 
4179
/* Override any gcc2 internal prototype to avoid an error.  */
 
4180
#ifdef __cplusplus
 
4181
extern "C"
 
4182
#endif
 
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 ();
 
4186
int
 
4187
main ()
 
4188
{
 
4189
gss_import_name ();
 
4190
  ;
 
4191
  return 0;
 
4192
}
 
4193
_ACEOF
 
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
 
4197
  ac_status=$?
 
4198
  grep -v '^ *+' conftest.er1 >conftest.err
 
4199
  rm -f conftest.er1
 
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
 
4205
  (eval $ac_try) 2>&5
 
4206
  ac_status=$?
 
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
 
4211
  (eval $ac_try) 2>&5
 
4212
  ac_status=$?
 
4213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4214
  (exit $ac_status); }; }; then
 
4215
  ac_cv_lib_gssapi_gss_import_name=yes
 
4216
else
 
4217
  echo "$as_me: failed program was:" >&5
 
4218
sed 's/^/| /' conftest.$ac_ext >&5
 
4219
 
 
4220
ac_cv_lib_gssapi_gss_import_name=no
 
4221
fi
 
4222
rm -f conftest.err conftest.$ac_objext \
 
4223
      conftest$ac_exeext conftest.$ac_ext
 
4224
LIBS=$ac_check_lib_save_LIBS
 
4225
fi
 
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"
 
4230
else
 
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
 
4236
else
 
4237
  ac_check_lib_save_LIBS=$LIBS
 
4238
LIBS="-lkrb5support  $LIBS"
 
4239
cat >conftest.$ac_ext <<_ACEOF
 
4240
/* confdefs.h.  */
 
4241
_ACEOF
 
4242
cat confdefs.h >>conftest.$ac_ext
 
4243
cat >>conftest.$ac_ext <<_ACEOF
 
4244
/* end confdefs.h.  */
 
4245
 
 
4246
/* Override any gcc2 internal prototype to avoid an error.  */
 
4247
#ifdef __cplusplus
 
4248
extern "C"
 
4249
#endif
 
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 ();
 
4253
int
 
4254
main ()
 
4255
{
 
4256
krb5int_getspecific ();
 
4257
  ;
 
4258
  return 0;
 
4259
}
 
4260
_ACEOF
 
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
 
4264
  ac_status=$?
 
4265
  grep -v '^ *+' conftest.er1 >conftest.err
 
4266
  rm -f conftest.er1
 
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
 
4272
  (eval $ac_try) 2>&5
 
4273
  ac_status=$?
 
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
 
4278
  (eval $ac_try) 2>&5
 
4279
  ac_status=$?
 
4280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4281
  (exit $ac_status); }; }; then
 
4282
  ac_cv_lib_krb5support_krb5int_getspecific=yes
 
4283
else
 
4284
  echo "$as_me: failed program was:" >&5
 
4285
sed 's/^/| /' conftest.$ac_ext >&5
 
4286
 
 
4287
ac_cv_lib_krb5support_krb5int_getspecific=no
 
4288
fi
 
4289
rm -f conftest.err conftest.$ac_objext \
 
4290
      conftest$ac_exeext conftest.$ac_ext
 
4291
LIBS=$ac_check_lib_save_LIBS
 
4292
fi
 
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"
 
4297
else
 
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
 
4302
else
 
4303
  ac_func_search_save_LIBS=$LIBS
 
4304
ac_cv_search_pthread_setspecific=no
 
4305
cat >conftest.$ac_ext <<_ACEOF
 
4306
/* confdefs.h.  */
 
4307
_ACEOF
 
4308
cat confdefs.h >>conftest.$ac_ext
 
4309
cat >>conftest.$ac_ext <<_ACEOF
 
4310
/* end confdefs.h.  */
 
4311
 
 
4312
/* Override any gcc2 internal prototype to avoid an error.  */
 
4313
#ifdef __cplusplus
 
4314
extern "C"
 
4315
#endif
 
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 ();
 
4319
int
 
4320
main ()
 
4321
{
 
4322
pthread_setspecific ();
 
4323
  ;
 
4324
  return 0;
 
4325
}
 
4326
_ACEOF
 
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
 
4330
  ac_status=$?
 
4331
  grep -v '^ *+' conftest.er1 >conftest.err
 
4332
  rm -f conftest.er1
 
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
 
4338
  (eval $ac_try) 2>&5
 
4339
  ac_status=$?
 
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
 
4344
  (eval $ac_try) 2>&5
 
4345
  ac_status=$?
 
4346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4347
  (exit $ac_status); }; }; then
 
4348
  ac_cv_search_pthread_setspecific="none required"
 
4349
else
 
4350
  echo "$as_me: failed program was:" >&5
 
4351
sed 's/^/| /' conftest.$ac_ext >&5
 
4352
 
 
4353
fi
 
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
 
4360
/* confdefs.h.  */
 
4361
_ACEOF
 
4362
cat confdefs.h >>conftest.$ac_ext
 
4363
cat >>conftest.$ac_ext <<_ACEOF
 
4364
/* end confdefs.h.  */
 
4365
 
 
4366
/* Override any gcc2 internal prototype to avoid an error.  */
 
4367
#ifdef __cplusplus
 
4368
extern "C"
 
4369
#endif
 
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 ();
 
4373
int
 
4374
main ()
 
4375
{
 
4376
pthread_setspecific ();
 
4377
  ;
 
4378
  return 0;
 
4379
}
 
4380
_ACEOF
 
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
 
4384
  ac_status=$?
 
4385
  grep -v '^ *+' conftest.er1 >conftest.err
 
4386
  rm -f conftest.er1
 
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
 
4392
  (eval $ac_try) 2>&5
 
4393
  ac_status=$?
 
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
 
4398
  (eval $ac_try) 2>&5
 
4399
  ac_status=$?
 
4400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4401
  (exit $ac_status); }; }; then
 
4402
  ac_cv_search_pthread_setspecific="-l$ac_lib"
 
4403
break
 
4404
else
 
4405
  echo "$as_me: failed program was:" >&5
 
4406
sed 's/^/| /' conftest.$ac_ext >&5
 
4407
 
 
4408
fi
 
4409
rm -f conftest.err conftest.$ac_objext \
 
4410
      conftest$ac_exeext conftest.$ac_ext
 
4411
  done
 
4412
fi
 
4413
LIBS=$ac_func_search_save_LIBS
 
4414
fi
 
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"
 
4419
 
 
4420
fi
 
4421
 
 
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
 
4426
else
 
4427
  ac_check_lib_save_LIBS=$LIBS
 
4428
LIBS="-lkrb5support  $LIBS"
 
4429
cat >conftest.$ac_ext <<_ACEOF
 
4430
/* confdefs.h.  */
 
4431
_ACEOF
 
4432
cat confdefs.h >>conftest.$ac_ext
 
4433
cat >>conftest.$ac_ext <<_ACEOF
 
4434
/* end confdefs.h.  */
 
4435
 
 
4436
/* Override any gcc2 internal prototype to avoid an error.  */
 
4437
#ifdef __cplusplus
 
4438
extern "C"
 
4439
#endif
 
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 ();
 
4443
int
 
4444
main ()
 
4445
{
 
4446
krb5int_setspecific ();
 
4447
  ;
 
4448
  return 0;
 
4449
}
 
4450
_ACEOF
 
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
 
4454
  ac_status=$?
 
4455
  grep -v '^ *+' conftest.er1 >conftest.err
 
4456
  rm -f conftest.er1
 
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
 
4462
  (eval $ac_try) 2>&5
 
4463
  ac_status=$?
 
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
 
4468
  (eval $ac_try) 2>&5
 
4469
  ac_status=$?
 
4470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4471
  (exit $ac_status); }; }; then
 
4472
  ac_cv_lib_krb5support_krb5int_setspecific=yes
 
4473
else
 
4474
  echo "$as_me: failed program was:" >&5
 
4475
sed 's/^/| /' conftest.$ac_ext >&5
 
4476
 
 
4477
ac_cv_lib_krb5support_krb5int_setspecific=no
 
4478
fi
 
4479
rm -f conftest.err conftest.$ac_objext \
 
4480
      conftest$ac_exeext conftest.$ac_ext
 
4481
LIBS=$ac_check_lib_save_LIBS
 
4482
fi
 
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"
 
4487
fi
 
4488
 
 
4489
fi
 
4490
 
 
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
 
4495
else
 
4496
  ac_check_lib_save_LIBS=$LIBS
 
4497
LIBS="-lgssapi_krb5 $KRB5EXTRA $LIBS"
 
4498
cat >conftest.$ac_ext <<_ACEOF
 
4499
/* confdefs.h.  */
 
4500
_ACEOF
 
4501
cat confdefs.h >>conftest.$ac_ext
 
4502
cat >>conftest.$ac_ext <<_ACEOF
 
4503
/* end confdefs.h.  */
 
4504
 
 
4505
/* Override any gcc2 internal prototype to avoid an error.  */
 
4506
#ifdef __cplusplus
 
4507
extern "C"
 
4508
#endif
 
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 ();
 
4512
int
 
4513
main ()
 
4514
{
 
4515
gss_import_name ();
 
4516
  ;
 
4517
  return 0;
 
4518
}
 
4519
_ACEOF
 
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
 
4523
  ac_status=$?
 
4524
  grep -v '^ *+' conftest.er1 >conftest.err
 
4525
  rm -f conftest.er1
 
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
 
4531
  (eval $ac_try) 2>&5
 
4532
  ac_status=$?
 
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
 
4537
  (eval $ac_try) 2>&5
 
4538
  ac_status=$?
 
4539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4540
  (exit $ac_status); }; }; then
 
4541
  ac_cv_lib_gssapi_krb5_gss_import_name=yes
 
4542
else
 
4543
  echo "$as_me: failed program was:" >&5
 
4544
sed 's/^/| /' conftest.$ac_ext >&5
 
4545
 
 
4546
ac_cv_lib_gssapi_krb5_gss_import_name=no
 
4547
fi
 
4548
rm -f conftest.err conftest.$ac_objext \
 
4549
      conftest$ac_exeext conftest.$ac_ext
 
4550
LIBS=$ac_check_lib_save_LIBS
 
4551
fi
 
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"
 
4556
else
 
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; }; }
 
4560
fi
 
4561
 
 
4562
fi
 
4563
 ;;
 
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
 
4568
else
 
4569
  ac_check_lib_save_LIBS=$LIBS
 
4570
LIBS="-lkrb5 -lasn1 -lroken -lcrypto -lcom_err $LIBS"
 
4571
cat >conftest.$ac_ext <<_ACEOF
 
4572
/* confdefs.h.  */
 
4573
_ACEOF
 
4574
cat confdefs.h >>conftest.$ac_ext
 
4575
cat >>conftest.$ac_ext <<_ACEOF
 
4576
/* end confdefs.h.  */
 
4577
 
 
4578
/* Override any gcc2 internal prototype to avoid an error.  */
 
4579
#ifdef __cplusplus
 
4580
extern "C"
 
4581
#endif
 
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 ();
 
4585
int
 
4586
main ()
 
4587
{
 
4588
krb5_init_context ();
 
4589
  ;
 
4590
  return 0;
 
4591
}
 
4592
_ACEOF
 
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
 
4596
  ac_status=$?
 
4597
  grep -v '^ *+' conftest.er1 >conftest.err
 
4598
  rm -f conftest.er1
 
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
 
4604
  (eval $ac_try) 2>&5
 
4605
  ac_status=$?
 
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
 
4610
  (eval $ac_try) 2>&5
 
4611
  ac_status=$?
 
4612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4613
  (exit $ac_status); }; }; then
 
4614
  ac_cv_lib_krb5_krb5_init_context=yes
 
4615
else
 
4616
  echo "$as_me: failed program was:" >&5
 
4617
sed 's/^/| /' conftest.$ac_ext >&5
 
4618
 
 
4619
ac_cv_lib_krb5_krb5_init_context=no
 
4620
fi
 
4621
rm -f conftest.err conftest.$ac_objext \
 
4622
      conftest$ac_exeext conftest.$ac_ext
 
4623
LIBS=$ac_check_lib_save_LIBS
 
4624
fi
 
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"
 
4629
else
 
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
 
4635
else
 
4636
  ac_check_lib_save_LIBS=$LIBS
 
4637
LIBS="-lkrb5support  $LIBS"
 
4638
cat >conftest.$ac_ext <<_ACEOF
 
4639
/* confdefs.h.  */
 
4640
_ACEOF
 
4641
cat confdefs.h >>conftest.$ac_ext
 
4642
cat >>conftest.$ac_ext <<_ACEOF
 
4643
/* end confdefs.h.  */
 
4644
 
 
4645
/* Override any gcc2 internal prototype to avoid an error.  */
 
4646
#ifdef __cplusplus
 
4647
extern "C"
 
4648
#endif
 
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 ();
 
4652
int
 
4653
main ()
 
4654
{
 
4655
krb5int_getspecific ();
 
4656
  ;
 
4657
  return 0;
 
4658
}
 
4659
_ACEOF
 
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
 
4663
  ac_status=$?
 
4664
  grep -v '^ *+' conftest.er1 >conftest.err
 
4665
  rm -f conftest.er1
 
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
 
4671
  (eval $ac_try) 2>&5
 
4672
  ac_status=$?
 
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
 
4677
  (eval $ac_try) 2>&5
 
4678
  ac_status=$?
 
4679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4680
  (exit $ac_status); }; }; then
 
4681
  ac_cv_lib_krb5support_krb5int_getspecific=yes
 
4682
else
 
4683
  echo "$as_me: failed program was:" >&5
 
4684
sed 's/^/| /' conftest.$ac_ext >&5
 
4685
 
 
4686
ac_cv_lib_krb5support_krb5int_getspecific=no
 
4687
fi
 
4688
rm -f conftest.err conftest.$ac_objext \
 
4689
      conftest$ac_exeext conftest.$ac_ext
 
4690
LIBS=$ac_check_lib_save_LIBS
 
4691
fi
 
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"
 
4696
else
 
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
 
4701
else
 
4702
  ac_func_search_save_LIBS=$LIBS
 
4703
ac_cv_search_pthread_setspecific=no
 
4704
cat >conftest.$ac_ext <<_ACEOF
 
4705
/* confdefs.h.  */
 
4706
_ACEOF
 
4707
cat confdefs.h >>conftest.$ac_ext
 
4708
cat >>conftest.$ac_ext <<_ACEOF
 
4709
/* end confdefs.h.  */
 
4710
 
 
4711
/* Override any gcc2 internal prototype to avoid an error.  */
 
4712
#ifdef __cplusplus
 
4713
extern "C"
 
4714
#endif
 
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 ();
 
4718
int
 
4719
main ()
 
4720
{
 
4721
pthread_setspecific ();
 
4722
  ;
 
4723
  return 0;
 
4724
}
 
4725
_ACEOF
 
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
 
4729
  ac_status=$?
 
4730
  grep -v '^ *+' conftest.er1 >conftest.err
 
4731
  rm -f conftest.er1
 
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
 
4737
  (eval $ac_try) 2>&5
 
4738
  ac_status=$?
 
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
 
4743
  (eval $ac_try) 2>&5
 
4744
  ac_status=$?
 
4745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4746
  (exit $ac_status); }; }; then
 
4747
  ac_cv_search_pthread_setspecific="none required"
 
4748
else
 
4749
  echo "$as_me: failed program was:" >&5
 
4750
sed 's/^/| /' conftest.$ac_ext >&5
 
4751
 
 
4752
fi
 
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
 
4759
/* confdefs.h.  */
 
4760
_ACEOF
 
4761
cat confdefs.h >>conftest.$ac_ext
 
4762
cat >>conftest.$ac_ext <<_ACEOF
 
4763
/* end confdefs.h.  */
 
4764
 
 
4765
/* Override any gcc2 internal prototype to avoid an error.  */
 
4766
#ifdef __cplusplus
 
4767
extern "C"
 
4768
#endif
 
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 ();
 
4772
int
 
4773
main ()
 
4774
{
 
4775
pthread_setspecific ();
 
4776
  ;
 
4777
  return 0;
 
4778
}
 
4779
_ACEOF
 
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
 
4783
  ac_status=$?
 
4784
  grep -v '^ *+' conftest.er1 >conftest.err
 
4785
  rm -f conftest.er1
 
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
 
4791
  (eval $ac_try) 2>&5
 
4792
  ac_status=$?
 
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
 
4797
  (eval $ac_try) 2>&5
 
4798
  ac_status=$?
 
4799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4800
  (exit $ac_status); }; }; then
 
4801
  ac_cv_search_pthread_setspecific="-l$ac_lib"
 
4802
break
 
4803
else
 
4804
  echo "$as_me: failed program was:" >&5
 
4805
sed 's/^/| /' conftest.$ac_ext >&5
 
4806
 
 
4807
fi
 
4808
rm -f conftest.err conftest.$ac_objext \
 
4809
      conftest$ac_exeext conftest.$ac_ext
 
4810
  done
 
4811
fi
 
4812
LIBS=$ac_func_search_save_LIBS
 
4813
fi
 
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"
 
4818
 
 
4819
fi
 
4820
 
 
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
 
4825
else
 
4826
  ac_check_lib_save_LIBS=$LIBS
 
4827
LIBS="-lkrb5support  $LIBS"
 
4828
cat >conftest.$ac_ext <<_ACEOF
 
4829
/* confdefs.h.  */
 
4830
_ACEOF
 
4831
cat confdefs.h >>conftest.$ac_ext
 
4832
cat >>conftest.$ac_ext <<_ACEOF
 
4833
/* end confdefs.h.  */
 
4834
 
 
4835
/* Override any gcc2 internal prototype to avoid an error.  */
 
4836
#ifdef __cplusplus
 
4837
extern "C"
 
4838
#endif
 
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 ();
 
4842
int
 
4843
main ()
 
4844
{
 
4845
krb5int_setspecific ();
 
4846
  ;
 
4847
  return 0;
 
4848
}
 
4849
_ACEOF
 
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
 
4853
  ac_status=$?
 
4854
  grep -v '^ *+' conftest.er1 >conftest.err
 
4855
  rm -f conftest.er1
 
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
 
4861
  (eval $ac_try) 2>&5
 
4862
  ac_status=$?
 
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
 
4867
  (eval $ac_try) 2>&5
 
4868
  ac_status=$?
 
4869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4870
  (exit $ac_status); }; }; then
 
4871
  ac_cv_lib_krb5support_krb5int_setspecific=yes
 
4872
else
 
4873
  echo "$as_me: failed program was:" >&5
 
4874
sed 's/^/| /' conftest.$ac_ext >&5
 
4875
 
 
4876
ac_cv_lib_krb5support_krb5int_setspecific=no
 
4877
fi
 
4878
rm -f conftest.err conftest.$ac_objext \
 
4879
      conftest$ac_exeext conftest.$ac_ext
 
4880
LIBS=$ac_check_lib_save_LIBS
 
4881
fi
 
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"
 
4886
fi
 
4887
 
 
4888
fi
 
4889
 
 
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
 
4894
else
 
4895
  ac_check_lib_save_LIBS=$LIBS
 
4896
LIBS="-lkrb5 $KRB5EXTRA $LIBS"
 
4897
cat >conftest.$ac_ext <<_ACEOF
 
4898
/* confdefs.h.  */
 
4899
_ACEOF
 
4900
cat confdefs.h >>conftest.$ac_ext
 
4901
cat >>conftest.$ac_ext <<_ACEOF
 
4902
/* end confdefs.h.  */
 
4903
 
 
4904
/* Override any gcc2 internal prototype to avoid an error.  */
 
4905
#ifdef __cplusplus
 
4906
extern "C"
 
4907
#endif
 
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 ();
 
4911
int
 
4912
main ()
 
4913
{
 
4914
krb5_cc_default ();
 
4915
  ;
 
4916
  return 0;
 
4917
}
 
4918
_ACEOF
 
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
 
4922
  ac_status=$?
 
4923
  grep -v '^ *+' conftest.er1 >conftest.err
 
4924
  rm -f conftest.er1
 
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
 
4930
  (eval $ac_try) 2>&5
 
4931
  ac_status=$?
 
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
 
4936
  (eval $ac_try) 2>&5
 
4937
  ac_status=$?
 
4938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4939
  (exit $ac_status); }; }; then
 
4940
  ac_cv_lib_krb5_krb5_cc_default=yes
 
4941
else
 
4942
  echo "$as_me: failed program was:" >&5
 
4943
sed 's/^/| /' conftest.$ac_ext >&5
 
4944
 
 
4945
ac_cv_lib_krb5_krb5_cc_default=no
 
4946
fi
 
4947
rm -f conftest.err conftest.$ac_objext \
 
4948
      conftest$ac_exeext conftest.$ac_ext
 
4949
LIBS=$ac_check_lib_save_LIBS
 
4950
fi
 
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"
 
4955
else
 
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; }; }
 
4959
fi
 
4960
 
 
4961
fi
 
4962
   ;;
 
4963
        krb4)   KRB4EXTRA=
 
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
 
4968
else
 
4969
  ac_check_lib_save_LIBS=$LIBS
 
4970
LIBS="-lcrypto  $LIBS"
 
4971
cat >conftest.$ac_ext <<_ACEOF
 
4972
/* confdefs.h.  */
 
4973
_ACEOF
 
4974
cat confdefs.h >>conftest.$ac_ext
 
4975
cat >>conftest.$ac_ext <<_ACEOF
 
4976
/* end confdefs.h.  */
 
4977
 
 
4978
/* Override any gcc2 internal prototype to avoid an error.  */
 
4979
#ifdef __cplusplus
 
4980
extern "C"
 
4981
#endif
 
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 ();
 
4985
int
 
4986
main ()
 
4987
{
 
4988
des_set_key ();
 
4989
  ;
 
4990
  return 0;
 
4991
}
 
4992
_ACEOF
 
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
 
4996
  ac_status=$?
 
4997
  grep -v '^ *+' conftest.er1 >conftest.err
 
4998
  rm -f conftest.er1
 
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
 
5004
  (eval $ac_try) 2>&5
 
5005
  ac_status=$?
 
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
 
5010
  (eval $ac_try) 2>&5
 
5011
  ac_status=$?
 
5012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5013
  (exit $ac_status); }; }; then
 
5014
  ac_cv_lib_crypto_des_set_key=yes
 
5015
else
 
5016
  echo "$as_me: failed program was:" >&5
 
5017
sed 's/^/| /' conftest.$ac_ext >&5
 
5018
 
 
5019
ac_cv_lib_crypto_des_set_key=no
 
5020
fi
 
5021
rm -f conftest.err conftest.$ac_objext \
 
5022
      conftest$ac_exeext conftest.$ac_ext
 
5023
LIBS=$ac_check_lib_save_LIBS
 
5024
fi
 
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"
 
5029
else
 
5030
  KRB4EXTRA="-ldes"
 
5031
fi
 
5032
 
 
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
 
5037
else
 
5038
  ac_check_lib_save_LIBS=$LIBS
 
5039
LIBS="-lkrb $KRB4EXTRA $LIBS"
 
5040
cat >conftest.$ac_ext <<_ACEOF
 
5041
/* confdefs.h.  */
 
5042
_ACEOF
 
5043
cat confdefs.h >>conftest.$ac_ext
 
5044
cat >>conftest.$ac_ext <<_ACEOF
 
5045
/* end confdefs.h.  */
 
5046
 
 
5047
/* Override any gcc2 internal prototype to avoid an error.  */
 
5048
#ifdef __cplusplus
 
5049
extern "C"
 
5050
#endif
 
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 ();
 
5054
int
 
5055
main ()
 
5056
{
 
5057
krb_get_svc_in_tkt ();
 
5058
  ;
 
5059
  return 0;
 
5060
}
 
5061
_ACEOF
 
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
 
5065
  ac_status=$?
 
5066
  grep -v '^ *+' conftest.er1 >conftest.err
 
5067
  rm -f conftest.er1
 
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
 
5073
  (eval $ac_try) 2>&5
 
5074
  ac_status=$?
 
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
 
5079
  (eval $ac_try) 2>&5
 
5080
  ac_status=$?
 
5081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5082
  (exit $ac_status); }; }; then
 
5083
  ac_cv_lib_krb_krb_get_svc_in_tkt=yes
 
5084
else
 
5085
  echo "$as_me: failed program was:" >&5
 
5086
sed 's/^/| /' conftest.$ac_ext >&5
 
5087
 
 
5088
ac_cv_lib_krb_krb_get_svc_in_tkt=no
 
5089
fi
 
5090
rm -f conftest.err conftest.$ac_objext \
 
5091
      conftest$ac_exeext conftest.$ac_ext
 
5092
LIBS=$ac_check_lib_save_LIBS
 
5093
fi
 
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"
 
5098
else
 
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
 
5104
else
 
5105
  ac_check_lib_save_LIBS=$LIBS
 
5106
LIBS="-lkrb5support  $LIBS"
 
5107
cat >conftest.$ac_ext <<_ACEOF
 
5108
/* confdefs.h.  */
 
5109
_ACEOF
 
5110
cat confdefs.h >>conftest.$ac_ext
 
5111
cat >>conftest.$ac_ext <<_ACEOF
 
5112
/* end confdefs.h.  */
 
5113
 
 
5114
/* Override any gcc2 internal prototype to avoid an error.  */
 
5115
#ifdef __cplusplus
 
5116
extern "C"
 
5117
#endif
 
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 ();
 
5121
int
 
5122
main ()
 
5123
{
 
5124
krb5int_getspecific ();
 
5125
  ;
 
5126
  return 0;
 
5127
}
 
5128
_ACEOF
 
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
 
5132
  ac_status=$?
 
5133
  grep -v '^ *+' conftest.er1 >conftest.err
 
5134
  rm -f conftest.er1
 
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
 
5140
  (eval $ac_try) 2>&5
 
5141
  ac_status=$?
 
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
 
5146
  (eval $ac_try) 2>&5
 
5147
  ac_status=$?
 
5148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5149
  (exit $ac_status); }; }; then
 
5150
  ac_cv_lib_krb5support_krb5int_getspecific=yes
 
5151
else
 
5152
  echo "$as_me: failed program was:" >&5
 
5153
sed 's/^/| /' conftest.$ac_ext >&5
 
5154
 
 
5155
ac_cv_lib_krb5support_krb5int_getspecific=no
 
5156
fi
 
5157
rm -f conftest.err conftest.$ac_objext \
 
5158
      conftest$ac_exeext conftest.$ac_ext
 
5159
LIBS=$ac_check_lib_save_LIBS
 
5160
fi
 
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"
 
5165
else
 
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
 
5170
else
 
5171
  ac_func_search_save_LIBS=$LIBS
 
5172
ac_cv_search_pthread_setspecific=no
 
5173
cat >conftest.$ac_ext <<_ACEOF
 
5174
/* confdefs.h.  */
 
5175
_ACEOF
 
5176
cat confdefs.h >>conftest.$ac_ext
 
5177
cat >>conftest.$ac_ext <<_ACEOF
 
5178
/* end confdefs.h.  */
 
5179
 
 
5180
/* Override any gcc2 internal prototype to avoid an error.  */
 
5181
#ifdef __cplusplus
 
5182
extern "C"
 
5183
#endif
 
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 ();
 
5187
int
 
5188
main ()
 
5189
{
 
5190
pthread_setspecific ();
 
5191
  ;
 
5192
  return 0;
 
5193
}
 
5194
_ACEOF
 
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
 
5198
  ac_status=$?
 
5199
  grep -v '^ *+' conftest.er1 >conftest.err
 
5200
  rm -f conftest.er1
 
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
 
5206
  (eval $ac_try) 2>&5
 
5207
  ac_status=$?
 
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
 
5212
  (eval $ac_try) 2>&5
 
5213
  ac_status=$?
 
5214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5215
  (exit $ac_status); }; }; then
 
5216
  ac_cv_search_pthread_setspecific="none required"
 
5217
else
 
5218
  echo "$as_me: failed program was:" >&5
 
5219
sed 's/^/| /' conftest.$ac_ext >&5
 
5220
 
 
5221
fi
 
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
 
5228
/* confdefs.h.  */
 
5229
_ACEOF
 
5230
cat confdefs.h >>conftest.$ac_ext
 
5231
cat >>conftest.$ac_ext <<_ACEOF
 
5232
/* end confdefs.h.  */
 
5233
 
 
5234
/* Override any gcc2 internal prototype to avoid an error.  */
 
5235
#ifdef __cplusplus
 
5236
extern "C"
 
5237
#endif
 
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 ();
 
5241
int
 
5242
main ()
 
5243
{
 
5244
pthread_setspecific ();
 
5245
  ;
 
5246
  return 0;
 
5247
}
 
5248
_ACEOF
 
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
 
5252
  ac_status=$?
 
5253
  grep -v '^ *+' conftest.er1 >conftest.err
 
5254
  rm -f conftest.er1
 
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
 
5260
  (eval $ac_try) 2>&5
 
5261
  ac_status=$?
 
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
 
5266
  (eval $ac_try) 2>&5
 
5267
  ac_status=$?
 
5268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5269
  (exit $ac_status); }; }; then
 
5270
  ac_cv_search_pthread_setspecific="-l$ac_lib"
 
5271
break
 
5272
else
 
5273
  echo "$as_me: failed program was:" >&5
 
5274
sed 's/^/| /' conftest.$ac_ext >&5
 
5275
 
 
5276
fi
 
5277
rm -f conftest.err conftest.$ac_objext \
 
5278
      conftest$ac_exeext conftest.$ac_ext
 
5279
  done
 
5280
fi
 
5281
LIBS=$ac_func_search_save_LIBS
 
5282
fi
 
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"
 
5287
 
 
5288
fi
 
5289
 
 
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
 
5294
else
 
5295
  ac_check_lib_save_LIBS=$LIBS
 
5296
LIBS="-lkrb5support  $LIBS"
 
5297
cat >conftest.$ac_ext <<_ACEOF
 
5298
/* confdefs.h.  */
 
5299
_ACEOF
 
5300
cat confdefs.h >>conftest.$ac_ext
 
5301
cat >>conftest.$ac_ext <<_ACEOF
 
5302
/* end confdefs.h.  */
 
5303
 
 
5304
/* Override any gcc2 internal prototype to avoid an error.  */
 
5305
#ifdef __cplusplus
 
5306
extern "C"
 
5307
#endif
 
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 ();
 
5311
int
 
5312
main ()
 
5313
{
 
5314
krb5int_setspecific ();
 
5315
  ;
 
5316
  return 0;
 
5317
}
 
5318
_ACEOF
 
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
 
5322
  ac_status=$?
 
5323
  grep -v '^ *+' conftest.er1 >conftest.err
 
5324
  rm -f conftest.er1
 
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
 
5330
  (eval $ac_try) 2>&5
 
5331
  ac_status=$?
 
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
 
5336
  (eval $ac_try) 2>&5
 
5337
  ac_status=$?
 
5338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5339
  (exit $ac_status); }; }; then
 
5340
  ac_cv_lib_krb5support_krb5int_setspecific=yes
 
5341
else
 
5342
  echo "$as_me: failed program was:" >&5
 
5343
sed 's/^/| /' conftest.$ac_ext >&5
 
5344
 
 
5345
ac_cv_lib_krb5support_krb5int_setspecific=no
 
5346
fi
 
5347
rm -f conftest.err conftest.$ac_objext \
 
5348
      conftest$ac_exeext conftest.$ac_ext
 
5349
LIBS=$ac_check_lib_save_LIBS
 
5350
fi
 
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"
 
5355
fi
 
5356
 
 
5357
fi
 
5358
 
 
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
 
5363
else
 
5364
  ac_check_lib_save_LIBS=$LIBS
 
5365
LIBS="-lkrb4 $KRB5EXTRA $LIBS"
 
5366
cat >conftest.$ac_ext <<_ACEOF
 
5367
/* confdefs.h.  */
 
5368
_ACEOF
 
5369
cat confdefs.h >>conftest.$ac_ext
 
5370
cat >>conftest.$ac_ext <<_ACEOF
 
5371
/* end confdefs.h.  */
 
5372
 
 
5373
/* Override any gcc2 internal prototype to avoid an error.  */
 
5374
#ifdef __cplusplus
 
5375
extern "C"
 
5376
#endif
 
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 ();
 
5380
int
 
5381
main ()
 
5382
{
 
5383
krb_get_svc_in_tkt ();
 
5384
  ;
 
5385
  return 0;
 
5386
}
 
5387
_ACEOF
 
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
 
5391
  ac_status=$?
 
5392
  grep -v '^ *+' conftest.er1 >conftest.err
 
5393
  rm -f conftest.er1
 
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
 
5399
  (eval $ac_try) 2>&5
 
5400
  ac_status=$?
 
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
 
5405
  (eval $ac_try) 2>&5
 
5406
  ac_status=$?
 
5407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5408
  (exit $ac_status); }; }; then
 
5409
  ac_cv_lib_krb4_krb_get_svc_in_tkt=yes
 
5410
else
 
5411
  echo "$as_me: failed program was:" >&5
 
5412
sed 's/^/| /' conftest.$ac_ext >&5
 
5413
 
 
5414
ac_cv_lib_krb4_krb_get_svc_in_tkt=no
 
5415
fi
 
5416
rm -f conftest.err conftest.$ac_objext \
 
5417
      conftest$ac_exeext conftest.$ac_ext
 
5418
LIBS=$ac_check_lib_save_LIBS
 
5419
fi
 
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"
 
5424
else
 
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; }; }
 
5428
fi
 
5429
 
 
5430
fi
 
5431
   ;;
 
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; }; } ;;
 
5435
        esac
 
5436
    fi
 
5437
    if test x"$KRBCPPFLAGS" != x ; then
 
5438
        CPPFLAGS="$CPPFLAGS $KRBCPPFLAGS"
 
5439
    fi
 
5440
fi
 
5441
 
 
5442
if test x"$static" = xtrue ; then
 
5443
    LIBS="-Wl,-Bstatic $KRBLIBS -Wl,-Bdynamic $LIBS"
 
5444
else
 
5445
    LIBS="$KRBLIBS $LIBS"
 
5446
fi
 
5447
CPPFLAGS=`echo "$CPPFLAGS" | sed 's/^  *//'`
 
5448
LDFLAGS=`echo "$LDFLAGS" | sed 's/^  *//'`
 
5449
 
 
5450
case "krb5" in
 
5451
gssapi)
 
5452
for ac_header in gssapi.h
 
5453
do
 
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
 
5460
fi
 
5461
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5462
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5463
else
 
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
 
5468
/* confdefs.h.  */
 
5469
_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>
 
5475
_ACEOF
 
5476
rm -f conftest.$ac_objext
 
5477
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5478
  (eval $ac_compile) 2>conftest.er1
 
5479
  ac_status=$?
 
5480
  grep -v '^ *+' conftest.er1 >conftest.err
 
5481
  rm -f conftest.er1
 
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
 
5487
  (eval $ac_try) 2>&5
 
5488
  ac_status=$?
 
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
 
5493
  (eval $ac_try) 2>&5
 
5494
  ac_status=$?
 
5495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5496
  (exit $ac_status); }; }; then
 
5497
  ac_header_compiler=yes
 
5498
else
 
5499
  echo "$as_me: failed program was:" >&5
 
5500
sed 's/^/| /' conftest.$ac_ext >&5
 
5501
 
 
5502
ac_header_compiler=no
 
5503
fi
 
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
 
5507
 
 
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
 
5512
/* confdefs.h.  */
 
5513
_ACEOF
 
5514
cat confdefs.h >>conftest.$ac_ext
 
5515
cat >>conftest.$ac_ext <<_ACEOF
 
5516
/* end confdefs.h.  */
 
5517
#include <$ac_header>
 
5518
_ACEOF
 
5519
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5520
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5521
  ac_status=$?
 
5522
  grep -v '^ *+' conftest.er1 >conftest.err
 
5523
  rm -f conftest.er1
 
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
 
5530
  else
 
5531
    ac_cpp_err=
 
5532
  fi
 
5533
else
 
5534
  ac_cpp_err=yes
 
5535
fi
 
5536
if test -z "$ac_cpp_err"; then
 
5537
  ac_header_preproc=yes
 
5538
else
 
5539
  echo "$as_me: failed program was:" >&5
 
5540
sed 's/^/| /' conftest.$ac_ext >&5
 
5541
 
 
5542
  ac_header_preproc=no
 
5543
fi
 
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
 
5547
 
 
5548
# So?  What about this header?
 
5549
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5550
  yes:no: )
 
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
 
5556
    ;;
 
5557
  no: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;}
 
5570
    (
 
5571
      cat <<\_ASBOX
 
5572
## ------------------------------- ##
 
5573
## Report this to rra@stanford.edu ##
 
5574
## ------------------------------- ##
 
5575
_ASBOX
 
5576
    ) |
 
5577
      sed "s/^/$as_me: WARNING:     /" >&2
 
5578
    ;;
 
5579
esac
 
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
 
5584
else
 
5585
  eval "$as_ac_Header=\$ac_header_preproc"
 
5586
fi
 
5587
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5588
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5589
 
 
5590
fi
 
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
 
5594
_ACEOF
 
5595
 
 
5596
fi
 
5597
 
 
5598
done
 
5599
 
 
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
 
5604
else
 
5605
  cat >conftest.$ac_ext <<_ACEOF
 
5606
/* confdefs.h.  */
 
5607
_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>
 
5613
#else
 
5614
# include <gssapi/gssapi.h>
 
5615
#endif
 
5616
 
 
5617
 
 
5618
int
 
5619
main ()
 
5620
{
 
5621
#ifndef GSS_C_NT_USER_NAME
 
5622
  char *p = (char *) GSS_C_NT_USER_NAME;
 
5623
#endif
 
5624
 
 
5625
  ;
 
5626
  return 0;
 
5627
}
 
5628
_ACEOF
 
5629
rm -f conftest.$ac_objext
 
5630
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5631
  (eval $ac_compile) 2>conftest.er1
 
5632
  ac_status=$?
 
5633
  grep -v '^ *+' conftest.er1 >conftest.err
 
5634
  rm -f conftest.er1
 
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
 
5640
  (eval $ac_try) 2>&5
 
5641
  ac_status=$?
 
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
 
5646
  (eval $ac_try) 2>&5
 
5647
  ac_status=$?
 
5648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5649
  (exit $ac_status); }; }; then
 
5650
  ac_cv_have_decl_GSS_C_NT_USER_NAME=yes
 
5651
else
 
5652
  echo "$as_me: failed program was:" >&5
 
5653
sed 's/^/| /' conftest.$ac_ext >&5
 
5654
 
 
5655
ac_cv_have_decl_GSS_C_NT_USER_NAME=no
 
5656
fi
 
5657
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5658
fi
 
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
 
5662
 
 
5663
cat >>confdefs.h <<\_ACEOF
 
5664
#define HAVE_GSS_RFC_OIDS 1
 
5665
_ACEOF
 
5666
 
 
5667
fi
 
5668
 
 
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
 
5673
else
 
5674
  cat >conftest.$ac_ext <<_ACEOF
 
5675
/* confdefs.h.  */
 
5676
_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>
 
5682
#else
 
5683
# include <gssapi/gssapi.h>
 
5684
#endif
 
5685
 
 
5686
 
 
5687
int
 
5688
main ()
 
5689
{
 
5690
#ifndef GSS_KRB5_MECHANISM
 
5691
  char *p = (char *) GSS_KRB5_MECHANISM;
 
5692
#endif
 
5693
 
 
5694
  ;
 
5695
  return 0;
 
5696
}
 
5697
_ACEOF
 
5698
rm -f conftest.$ac_objext
 
5699
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5700
  (eval $ac_compile) 2>conftest.er1
 
5701
  ac_status=$?
 
5702
  grep -v '^ *+' conftest.er1 >conftest.err
 
5703
  rm -f conftest.er1
 
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
 
5709
  (eval $ac_try) 2>&5
 
5710
  ac_status=$?
 
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
 
5715
  (eval $ac_try) 2>&5
 
5716
  ac_status=$?
 
5717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5718
  (exit $ac_status); }; }; then
 
5719
  ac_cv_have_decl_GSS_KRB5_MECHANISM=yes
 
5720
else
 
5721
  echo "$as_me: failed program was:" >&5
 
5722
sed 's/^/| /' conftest.$ac_ext >&5
 
5723
 
 
5724
ac_cv_have_decl_GSS_KRB5_MECHANISM=no
 
5725
fi
 
5726
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5727
fi
 
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
 
5731
 
 
5732
cat >>confdefs.h <<_ACEOF
 
5733
#define HAVE_DECL_GSS_KRB5_MECHANISM 1
 
5734
_ACEOF
 
5735
 
 
5736
 
 
5737
else
 
5738
  cat >>confdefs.h <<_ACEOF
 
5739
#define HAVE_DECL_GSS_KRB5_MECHANISM 0
 
5740
_ACEOF
 
5741
 
 
5742
 
 
5743
fi
 
5744
 
 
5745
 ;;
 
5746
krb5)
 
5747
for ac_header in et/com_err.h
 
5748
do
 
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
 
5755
fi
 
5756
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5757
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5758
else
 
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
 
5763
/* confdefs.h.  */
 
5764
_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>
 
5770
_ACEOF
 
5771
rm -f conftest.$ac_objext
 
5772
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5773
  (eval $ac_compile) 2>conftest.er1
 
5774
  ac_status=$?
 
5775
  grep -v '^ *+' conftest.er1 >conftest.err
 
5776
  rm -f conftest.er1
 
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
 
5782
  (eval $ac_try) 2>&5
 
5783
  ac_status=$?
 
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
 
5788
  (eval $ac_try) 2>&5
 
5789
  ac_status=$?
 
5790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5791
  (exit $ac_status); }; }; then
 
5792
  ac_header_compiler=yes
 
5793
else
 
5794
  echo "$as_me: failed program was:" >&5
 
5795
sed 's/^/| /' conftest.$ac_ext >&5
 
5796
 
 
5797
ac_header_compiler=no
 
5798
fi
 
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
 
5802
 
 
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
 
5807
/* confdefs.h.  */
 
5808
_ACEOF
 
5809
cat confdefs.h >>conftest.$ac_ext
 
5810
cat >>conftest.$ac_ext <<_ACEOF
 
5811
/* end confdefs.h.  */
 
5812
#include <$ac_header>
 
5813
_ACEOF
 
5814
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5815
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5816
  ac_status=$?
 
5817
  grep -v '^ *+' conftest.er1 >conftest.err
 
5818
  rm -f conftest.er1
 
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
 
5825
  else
 
5826
    ac_cpp_err=
 
5827
  fi
 
5828
else
 
5829
  ac_cpp_err=yes
 
5830
fi
 
5831
if test -z "$ac_cpp_err"; then
 
5832
  ac_header_preproc=yes
 
5833
else
 
5834
  echo "$as_me: failed program was:" >&5
 
5835
sed 's/^/| /' conftest.$ac_ext >&5
 
5836
 
 
5837
  ac_header_preproc=no
 
5838
fi
 
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
 
5842
 
 
5843
# So?  What about this header?
 
5844
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5845
  yes:no: )
 
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
 
5851
    ;;
 
5852
  no: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;}
 
5865
    (
 
5866
      cat <<\_ASBOX
 
5867
## ------------------------------- ##
 
5868
## Report this to rra@stanford.edu ##
 
5869
## ------------------------------- ##
 
5870
_ASBOX
 
5871
    ) |
 
5872
      sed "s/^/$as_me: WARNING:     /" >&2
 
5873
    ;;
 
5874
esac
 
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
 
5879
else
 
5880
  eval "$as_ac_Header=\$ac_header_preproc"
 
5881
fi
 
5882
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5883
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5884
 
 
5885
fi
 
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
 
5889
_ACEOF
 
5890
 
 
5891
fi
 
5892
 
 
5893
done
 
5894
 
 
5895
 
 
5896
for ac_func in krb5_free_keytab_entry_contents
 
5897
do
 
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
 
5903
else
 
5904
  cat >conftest.$ac_ext <<_ACEOF
 
5905
/* confdefs.h.  */
 
5906
_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
 
5913
 
 
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.  */
 
5918
 
 
5919
#ifdef __STDC__
 
5920
# include <limits.h>
 
5921
#else
 
5922
# include <assert.h>
 
5923
#endif
 
5924
 
 
5925
#undef $ac_func
 
5926
 
 
5927
/* Override any gcc2 internal prototype to avoid an error.  */
 
5928
#ifdef __cplusplus
 
5929
extern "C"
 
5930
{
 
5931
#endif
 
5932
/* We use char because int might match the return type of a gcc2
 
5933
   builtin and then its argument prototype would still apply.  */
 
5934
char $ac_func ();
 
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)
 
5939
choke me
 
5940
#else
 
5941
char (*f) () = $ac_func;
 
5942
#endif
 
5943
#ifdef __cplusplus
 
5944
}
 
5945
#endif
 
5946
 
 
5947
int
 
5948
main ()
 
5949
{
 
5950
return f != $ac_func;
 
5951
  ;
 
5952
  return 0;
 
5953
}
 
5954
_ACEOF
 
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
 
5958
  ac_status=$?
 
5959
  grep -v '^ *+' conftest.er1 >conftest.err
 
5960
  rm -f conftest.er1
 
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
 
5966
  (eval $ac_try) 2>&5
 
5967
  ac_status=$?
 
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
 
5972
  (eval $ac_try) 2>&5
 
5973
  ac_status=$?
 
5974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5975
  (exit $ac_status); }; }; then
 
5976
  eval "$as_ac_var=yes"
 
5977
else
 
5978
  echo "$as_me: failed program was:" >&5
 
5979
sed 's/^/| /' conftest.$ac_ext >&5
 
5980
 
 
5981
eval "$as_ac_var=no"
 
5982
fi
 
5983
rm -f conftest.err conftest.$ac_objext \
 
5984
      conftest$ac_exeext conftest.$ac_ext
 
5985
fi
 
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
 
5991
_ACEOF
 
5992
 
 
5993
fi
 
5994
done
 
5995
 
 
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
 
6000
else
 
6001
  cat >conftest.$ac_ext <<_ACEOF
 
6002
/* confdefs.h.  */
 
6003
_ACEOF
 
6004
cat confdefs.h >>conftest.$ac_ext
 
6005
cat >>conftest.$ac_ext <<_ACEOF
 
6006
/* end confdefs.h.  */
 
6007
#include <krb5.h>
 
6008
 
 
6009
int
 
6010
main ()
 
6011
{
 
6012
if ((krb5_realm *) 0)
 
6013
  return 0;
 
6014
if (sizeof (krb5_realm))
 
6015
  return 0;
 
6016
  ;
 
6017
  return 0;
 
6018
}
 
6019
_ACEOF
 
6020
rm -f conftest.$ac_objext
 
6021
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6022
  (eval $ac_compile) 2>conftest.er1
 
6023
  ac_status=$?
 
6024
  grep -v '^ *+' conftest.er1 >conftest.err
 
6025
  rm -f conftest.er1
 
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
 
6031
  (eval $ac_try) 2>&5
 
6032
  ac_status=$?
 
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
 
6037
  (eval $ac_try) 2>&5
 
6038
  ac_status=$?
 
6039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6040
  (exit $ac_status); }; }; then
 
6041
  ac_cv_type_krb5_realm=yes
 
6042
else
 
6043
  echo "$as_me: failed program was:" >&5
 
6044
sed 's/^/| /' conftest.$ac_ext >&5
 
6045
 
 
6046
ac_cv_type_krb5_realm=no
 
6047
fi
 
6048
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6049
fi
 
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
 
6053
 
 
6054
cat >>confdefs.h <<_ACEOF
 
6055
#define HAVE_KRB5_REALM 1
 
6056
_ACEOF
 
6057
 
 
6058
 
 
6059
fi
 
6060
   ;;
 
6061
krb4)
 
6062
for ac_header in kerberosIV/krb.h
 
6063
do
 
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
 
6070
fi
 
6071
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6072
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6073
else
 
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
 
6078
/* confdefs.h.  */
 
6079
_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>
 
6085
_ACEOF
 
6086
rm -f conftest.$ac_objext
 
6087
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6088
  (eval $ac_compile) 2>conftest.er1
 
6089
  ac_status=$?
 
6090
  grep -v '^ *+' conftest.er1 >conftest.err
 
6091
  rm -f conftest.er1
 
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
 
6097
  (eval $ac_try) 2>&5
 
6098
  ac_status=$?
 
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
 
6103
  (eval $ac_try) 2>&5
 
6104
  ac_status=$?
 
6105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6106
  (exit $ac_status); }; }; then
 
6107
  ac_header_compiler=yes
 
6108
else
 
6109
  echo "$as_me: failed program was:" >&5
 
6110
sed 's/^/| /' conftest.$ac_ext >&5
 
6111
 
 
6112
ac_header_compiler=no
 
6113
fi
 
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
 
6117
 
 
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
 
6122
/* confdefs.h.  */
 
6123
_ACEOF
 
6124
cat confdefs.h >>conftest.$ac_ext
 
6125
cat >>conftest.$ac_ext <<_ACEOF
 
6126
/* end confdefs.h.  */
 
6127
#include <$ac_header>
 
6128
_ACEOF
 
6129
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6130
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6131
  ac_status=$?
 
6132
  grep -v '^ *+' conftest.er1 >conftest.err
 
6133
  rm -f conftest.er1
 
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
 
6140
  else
 
6141
    ac_cpp_err=
 
6142
  fi
 
6143
else
 
6144
  ac_cpp_err=yes
 
6145
fi
 
6146
if test -z "$ac_cpp_err"; then
 
6147
  ac_header_preproc=yes
 
6148
else
 
6149
  echo "$as_me: failed program was:" >&5
 
6150
sed 's/^/| /' conftest.$ac_ext >&5
 
6151
 
 
6152
  ac_header_preproc=no
 
6153
fi
 
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
 
6157
 
 
6158
# So?  What about this header?
 
6159
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6160
  yes:no: )
 
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
 
6166
    ;;
 
6167
  no: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;}
 
6180
    (
 
6181
      cat <<\_ASBOX
 
6182
## ------------------------------- ##
 
6183
## Report this to rra@stanford.edu ##
 
6184
## ------------------------------- ##
 
6185
_ASBOX
 
6186
    ) |
 
6187
      sed "s/^/$as_me: WARNING:     /" >&2
 
6188
    ;;
 
6189
esac
 
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
 
6194
else
 
6195
  eval "$as_ac_Header=\$ac_header_preproc"
 
6196
fi
 
6197
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6198
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6199
 
 
6200
fi
 
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
 
6204
_ACEOF
 
6205
 
 
6206
fi
 
6207
 
 
6208
done
 
6209
   ;;
 
6210
esac
 
6211
 
 
6212
 
 
6213
for ac_func in krb5_get_init_creds_opt_set_default_flags krb5_err
 
6214
do
 
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
 
6220
else
 
6221
  cat >conftest.$ac_ext <<_ACEOF
 
6222
/* confdefs.h.  */
 
6223
_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
 
6230
 
 
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.  */
 
6235
 
 
6236
#ifdef __STDC__
 
6237
# include <limits.h>
 
6238
#else
 
6239
# include <assert.h>
 
6240
#endif
 
6241
 
 
6242
#undef $ac_func
 
6243
 
 
6244
/* Override any gcc2 internal prototype to avoid an error.  */
 
6245
#ifdef __cplusplus
 
6246
extern "C"
 
6247
{
 
6248
#endif
 
6249
/* We use char because int might match the return type of a gcc2
 
6250
   builtin and then its argument prototype would still apply.  */
 
6251
char $ac_func ();
 
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)
 
6256
choke me
 
6257
#else
 
6258
char (*f) () = $ac_func;
 
6259
#endif
 
6260
#ifdef __cplusplus
 
6261
}
 
6262
#endif
 
6263
 
 
6264
int
 
6265
main ()
 
6266
{
 
6267
return f != $ac_func;
 
6268
  ;
 
6269
  return 0;
 
6270
}
 
6271
_ACEOF
 
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
 
6275
  ac_status=$?
 
6276
  grep -v '^ *+' conftest.er1 >conftest.err
 
6277
  rm -f conftest.er1
 
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
 
6283
  (eval $ac_try) 2>&5
 
6284
  ac_status=$?
 
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
 
6289
  (eval $ac_try) 2>&5
 
6290
  ac_status=$?
 
6291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6292
  (exit $ac_status); }; }; then
 
6293
  eval "$as_ac_var=yes"
 
6294
else
 
6295
  echo "$as_me: failed program was:" >&5
 
6296
sed 's/^/| /' conftest.$ac_ext >&5
 
6297
 
 
6298
eval "$as_ac_var=no"
 
6299
fi
 
6300
rm -f conftest.err conftest.$ac_objext \
 
6301
      conftest$ac_exeext conftest.$ac_ext
 
6302
fi
 
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
 
6308
_ACEOF
 
6309
 
 
6310
fi
 
6311
done
 
6312
 
 
6313
KRB5LIBS=$LIBS
 
6314
LIBS=$save_LIBS
 
6315
 
 
6316
 
 
6317
KRBLIBS=
 
6318
if test x"$K4START" != x ; then
 
6319
    save_LIBS=$LIBS
 
6320
    KRBROOT=
 
6321
 
 
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
 
6326
        KRBROOT="$withval"
 
6327
     fi
 
6328
fi;
 
6329
 
 
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"
 
6338
             fi
 
6339
             LDFLAGS="$LDFLAGS -L$KRBROOT/lib"
 
6340
         fi
 
6341
         case "krb4" in
 
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
 
6346
else
 
6347
  ac_check_lib_save_LIBS=$LIBS
 
6348
LIBS="-lgssapi  $LIBS"
 
6349
cat >conftest.$ac_ext <<_ACEOF
 
6350
/* confdefs.h.  */
 
6351
_ACEOF
 
6352
cat confdefs.h >>conftest.$ac_ext
 
6353
cat >>conftest.$ac_ext <<_ACEOF
 
6354
/* end confdefs.h.  */
 
6355
 
 
6356
/* Override any gcc2 internal prototype to avoid an error.  */
 
6357
#ifdef __cplusplus
 
6358
extern "C"
 
6359
#endif
 
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 ();
 
6363
int
 
6364
main ()
 
6365
{
 
6366
gss_import_name ();
 
6367
  ;
 
6368
  return 0;
 
6369
}
 
6370
_ACEOF
 
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
 
6374
  ac_status=$?
 
6375
  grep -v '^ *+' conftest.er1 >conftest.err
 
6376
  rm -f conftest.er1
 
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
 
6382
  (eval $ac_try) 2>&5
 
6383
  ac_status=$?
 
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
 
6388
  (eval $ac_try) 2>&5
 
6389
  ac_status=$?
 
6390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6391
  (exit $ac_status); }; }; then
 
6392
  ac_cv_lib_gssapi_gss_import_name=yes
 
6393
else
 
6394
  echo "$as_me: failed program was:" >&5
 
6395
sed 's/^/| /' conftest.$ac_ext >&5
 
6396
 
 
6397
ac_cv_lib_gssapi_gss_import_name=no
 
6398
fi
 
6399
rm -f conftest.err conftest.$ac_objext \
 
6400
      conftest$ac_exeext conftest.$ac_ext
 
6401
LIBS=$ac_check_lib_save_LIBS
 
6402
fi
 
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
 
6406
  KRBLIBS="-lgssapi"
 
6407
else
 
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
 
6412
else
 
6413
  ac_check_lib_save_LIBS=$LIBS
 
6414
LIBS="-lgssapi_krb5  $LIBS"
 
6415
cat >conftest.$ac_ext <<_ACEOF
 
6416
/* confdefs.h.  */
 
6417
_ACEOF
 
6418
cat confdefs.h >>conftest.$ac_ext
 
6419
cat >>conftest.$ac_ext <<_ACEOF
 
6420
/* end confdefs.h.  */
 
6421
 
 
6422
/* Override any gcc2 internal prototype to avoid an error.  */
 
6423
#ifdef __cplusplus
 
6424
extern "C"
 
6425
#endif
 
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 ();
 
6429
int
 
6430
main ()
 
6431
{
 
6432
gss_import_name ();
 
6433
  ;
 
6434
  return 0;
 
6435
}
 
6436
_ACEOF
 
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
 
6440
  ac_status=$?
 
6441
  grep -v '^ *+' conftest.er1 >conftest.err
 
6442
  rm -f conftest.er1
 
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
 
6448
  (eval $ac_try) 2>&5
 
6449
  ac_status=$?
 
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
 
6454
  (eval $ac_try) 2>&5
 
6455
  ac_status=$?
 
6456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6457
  (exit $ac_status); }; }; then
 
6458
  ac_cv_lib_gssapi_krb5_gss_import_name=yes
 
6459
else
 
6460
  echo "$as_me: failed program was:" >&5
 
6461
sed 's/^/| /' conftest.$ac_ext >&5
 
6462
 
 
6463
ac_cv_lib_gssapi_krb5_gss_import_name=no
 
6464
fi
 
6465
rm -f conftest.err conftest.$ac_objext \
 
6466
      conftest$ac_exeext conftest.$ac_ext
 
6467
LIBS=$ac_check_lib_save_LIBS
 
6468
fi
 
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"
 
6473
else
 
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; }; }
 
6477
fi
 
6478
 
 
6479
fi
 
6480
 ;;
 
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
 
6485
else
 
6486
  ac_check_lib_save_LIBS=$LIBS
 
6487
LIBS="-lkrb5  $LIBS"
 
6488
cat >conftest.$ac_ext <<_ACEOF
 
6489
/* confdefs.h.  */
 
6490
_ACEOF
 
6491
cat confdefs.h >>conftest.$ac_ext
 
6492
cat >>conftest.$ac_ext <<_ACEOF
 
6493
/* end confdefs.h.  */
 
6494
 
 
6495
/* Override any gcc2 internal prototype to avoid an error.  */
 
6496
#ifdef __cplusplus
 
6497
extern "C"
 
6498
#endif
 
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 ();
 
6502
int
 
6503
main ()
 
6504
{
 
6505
krb5_init_context ();
 
6506
  ;
 
6507
  return 0;
 
6508
}
 
6509
_ACEOF
 
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
 
6513
  ac_status=$?
 
6514
  grep -v '^ *+' conftest.er1 >conftest.err
 
6515
  rm -f conftest.er1
 
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
 
6521
  (eval $ac_try) 2>&5
 
6522
  ac_status=$?
 
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
 
6527
  (eval $ac_try) 2>&5
 
6528
  ac_status=$?
 
6529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6530
  (exit $ac_status); }; }; then
 
6531
  ac_cv_lib_krb5_krb5_init_context=yes
 
6532
else
 
6533
  echo "$as_me: failed program was:" >&5
 
6534
sed 's/^/| /' conftest.$ac_ext >&5
 
6535
 
 
6536
ac_cv_lib_krb5_krb5_init_context=no
 
6537
fi
 
6538
rm -f conftest.err conftest.$ac_objext \
 
6539
      conftest$ac_exeext conftest.$ac_ext
 
6540
LIBS=$ac_check_lib_save_LIBS
 
6541
fi
 
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
 
6545
  KRBLIBS="-lkrb5"
 
6546
else
 
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; }; }
 
6550
fi
 
6551
 
 
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
 
6556
else
 
6557
  ac_check_lib_save_LIBS=$LIBS
 
6558
LIBS="-lcom_err  $LIBS"
 
6559
cat >conftest.$ac_ext <<_ACEOF
 
6560
/* confdefs.h.  */
 
6561
_ACEOF
 
6562
cat confdefs.h >>conftest.$ac_ext
 
6563
cat >>conftest.$ac_ext <<_ACEOF
 
6564
/* end confdefs.h.  */
 
6565
 
 
6566
/* Override any gcc2 internal prototype to avoid an error.  */
 
6567
#ifdef __cplusplus
 
6568
extern "C"
 
6569
#endif
 
6570
/* We use char because int might match the return type of a gcc2
 
6571
   builtin and then its argument prototype would still apply.  */
 
6572
char com_err ();
 
6573
int
 
6574
main ()
 
6575
{
 
6576
com_err ();
 
6577
  ;
 
6578
  return 0;
 
6579
}
 
6580
_ACEOF
 
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
 
6584
  ac_status=$?
 
6585
  grep -v '^ *+' conftest.er1 >conftest.err
 
6586
  rm -f conftest.er1
 
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
 
6592
  (eval $ac_try) 2>&5
 
6593
  ac_status=$?
 
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
 
6598
  (eval $ac_try) 2>&5
 
6599
  ac_status=$?
 
6600
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6601
  (exit $ac_status); }; }; then
 
6602
  ac_cv_lib_com_err_com_err=yes
 
6603
else
 
6604
  echo "$as_me: failed program was:" >&5
 
6605
sed 's/^/| /' conftest.$ac_ext >&5
 
6606
 
 
6607
ac_cv_lib_com_err_com_err=no
 
6608
fi
 
6609
rm -f conftest.err conftest.$ac_objext \
 
6610
      conftest$ac_exeext conftest.$ac_ext
 
6611
LIBS=$ac_check_lib_save_LIBS
 
6612
fi
 
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"
 
6617
else
 
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; }; }
 
6621
fi
 
6622
   ;;
 
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
 
6627
else
 
6628
  ac_check_lib_save_LIBS=$LIBS
 
6629
LIBS="-lkrb4  $LIBS"
 
6630
cat >conftest.$ac_ext <<_ACEOF
 
6631
/* confdefs.h.  */
 
6632
_ACEOF
 
6633
cat confdefs.h >>conftest.$ac_ext
 
6634
cat >>conftest.$ac_ext <<_ACEOF
 
6635
/* end confdefs.h.  */
 
6636
 
 
6637
/* Override any gcc2 internal prototype to avoid an error.  */
 
6638
#ifdef __cplusplus
 
6639
extern "C"
 
6640
#endif
 
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 ();
 
6644
int
 
6645
main ()
 
6646
{
 
6647
krb_get_svc_in_tkt ();
 
6648
  ;
 
6649
  return 0;
 
6650
}
 
6651
_ACEOF
 
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
 
6655
  ac_status=$?
 
6656
  grep -v '^ *+' conftest.er1 >conftest.err
 
6657
  rm -f conftest.er1
 
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
 
6663
  (eval $ac_try) 2>&5
 
6664
  ac_status=$?
 
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
 
6669
  (eval $ac_try) 2>&5
 
6670
  ac_status=$?
 
6671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6672
  (exit $ac_status); }; }; then
 
6673
  ac_cv_lib_krb4_krb_get_svc_in_tkt=yes
 
6674
else
 
6675
  echo "$as_me: failed program was:" >&5
 
6676
sed 's/^/| /' conftest.$ac_ext >&5
 
6677
 
 
6678
ac_cv_lib_krb4_krb_get_svc_in_tkt=no
 
6679
fi
 
6680
rm -f conftest.err conftest.$ac_objext \
 
6681
      conftest$ac_exeext conftest.$ac_ext
 
6682
LIBS=$ac_check_lib_save_LIBS
 
6683
fi
 
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
 
6687
  KRBLIBS="-lkrb4"
 
6688
else
 
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
 
6693
else
 
6694
  ac_check_lib_save_LIBS=$LIBS
 
6695
LIBS="-lkrb  $LIBS"
 
6696
cat >conftest.$ac_ext <<_ACEOF
 
6697
/* confdefs.h.  */
 
6698
_ACEOF
 
6699
cat confdefs.h >>conftest.$ac_ext
 
6700
cat >>conftest.$ac_ext <<_ACEOF
 
6701
/* end confdefs.h.  */
 
6702
 
 
6703
/* Override any gcc2 internal prototype to avoid an error.  */
 
6704
#ifdef __cplusplus
 
6705
extern "C"
 
6706
#endif
 
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 ();
 
6710
int
 
6711
main ()
 
6712
{
 
6713
krb_get_svc_in_tkt ();
 
6714
  ;
 
6715
  return 0;
 
6716
}
 
6717
_ACEOF
 
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
 
6721
  ac_status=$?
 
6722
  grep -v '^ *+' conftest.er1 >conftest.err
 
6723
  rm -f conftest.er1
 
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
 
6729
  (eval $ac_try) 2>&5
 
6730
  ac_status=$?
 
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
 
6735
  (eval $ac_try) 2>&5
 
6736
  ac_status=$?
 
6737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6738
  (exit $ac_status); }; }; then
 
6739
  ac_cv_lib_krb_krb_get_svc_in_tkt=yes
 
6740
else
 
6741
  echo "$as_me: failed program was:" >&5
 
6742
sed 's/^/| /' conftest.$ac_ext >&5
 
6743
 
 
6744
ac_cv_lib_krb_krb_get_svc_in_tkt=no
 
6745
fi
 
6746
rm -f conftest.err conftest.$ac_objext \
 
6747
      conftest$ac_exeext conftest.$ac_ext
 
6748
LIBS=$ac_check_lib_save_LIBS
 
6749
fi
 
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
 
6753
  KRBLIBS="-lkrb"
 
6754
else
 
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; }; }
 
6758
fi
 
6759
 
 
6760
fi
 
6761
   ;;
 
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; }; } ;;
 
6765
         esac
 
6766
         reduce_depends=true
 
6767
     fi
 
6768
fi;
 
6769
 
 
6770
static=false
 
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; }; }
 
6779
         fi
 
6780
         static=true
 
6781
     fi
 
6782
fi;
 
6783
 
 
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
 
6790
else
 
6791
  ac_func_search_save_LIBS=$LIBS
 
6792
ac_cv_search_gethostbyname=no
 
6793
cat >conftest.$ac_ext <<_ACEOF
 
6794
/* confdefs.h.  */
 
6795
_ACEOF
 
6796
cat confdefs.h >>conftest.$ac_ext
 
6797
cat >>conftest.$ac_ext <<_ACEOF
 
6798
/* end confdefs.h.  */
 
6799
 
 
6800
/* Override any gcc2 internal prototype to avoid an error.  */
 
6801
#ifdef __cplusplus
 
6802
extern "C"
 
6803
#endif
 
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 ();
 
6807
int
 
6808
main ()
 
6809
{
 
6810
gethostbyname ();
 
6811
  ;
 
6812
  return 0;
 
6813
}
 
6814
_ACEOF
 
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
 
6818
  ac_status=$?
 
6819
  grep -v '^ *+' conftest.er1 >conftest.err
 
6820
  rm -f conftest.er1
 
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
 
6826
  (eval $ac_try) 2>&5
 
6827
  ac_status=$?
 
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
 
6832
  (eval $ac_try) 2>&5
 
6833
  ac_status=$?
 
6834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6835
  (exit $ac_status); }; }; then
 
6836
  ac_cv_search_gethostbyname="none required"
 
6837
else
 
6838
  echo "$as_me: failed program was:" >&5
 
6839
sed 's/^/| /' conftest.$ac_ext >&5
 
6840
 
 
6841
fi
 
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
 
6848
/* confdefs.h.  */
 
6849
_ACEOF
 
6850
cat confdefs.h >>conftest.$ac_ext
 
6851
cat >>conftest.$ac_ext <<_ACEOF
 
6852
/* end confdefs.h.  */
 
6853
 
 
6854
/* Override any gcc2 internal prototype to avoid an error.  */
 
6855
#ifdef __cplusplus
 
6856
extern "C"
 
6857
#endif
 
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 ();
 
6861
int
 
6862
main ()
 
6863
{
 
6864
gethostbyname ();
 
6865
  ;
 
6866
  return 0;
 
6867
}
 
6868
_ACEOF
 
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
 
6872
  ac_status=$?
 
6873
  grep -v '^ *+' conftest.er1 >conftest.err
 
6874
  rm -f conftest.er1
 
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
 
6880
  (eval $ac_try) 2>&5
 
6881
  ac_status=$?
 
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
 
6886
  (eval $ac_try) 2>&5
 
6887
  ac_status=$?
 
6888
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6889
  (exit $ac_status); }; }; then
 
6890
  ac_cv_search_gethostbyname="-l$ac_lib"
 
6891
break
 
6892
else
 
6893
  echo "$as_me: failed program was:" >&5
 
6894
sed 's/^/| /' conftest.$ac_ext >&5
 
6895
 
 
6896
fi
 
6897
rm -f conftest.err conftest.$ac_objext \
 
6898
      conftest$ac_exeext conftest.$ac_ext
 
6899
  done
 
6900
fi
 
6901
LIBS=$ac_func_search_save_LIBS
 
6902
fi
 
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"
 
6907
 
 
6908
fi
 
6909
 
 
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
 
6914
else
 
6915
  ac_func_search_save_LIBS=$LIBS
 
6916
ac_cv_search_socket=no
 
6917
cat >conftest.$ac_ext <<_ACEOF
 
6918
/* confdefs.h.  */
 
6919
_ACEOF
 
6920
cat confdefs.h >>conftest.$ac_ext
 
6921
cat >>conftest.$ac_ext <<_ACEOF
 
6922
/* end confdefs.h.  */
 
6923
 
 
6924
/* Override any gcc2 internal prototype to avoid an error.  */
 
6925
#ifdef __cplusplus
 
6926
extern "C"
 
6927
#endif
 
6928
/* We use char because int might match the return type of a gcc2
 
6929
   builtin and then its argument prototype would still apply.  */
 
6930
char socket ();
 
6931
int
 
6932
main ()
 
6933
{
 
6934
socket ();
 
6935
  ;
 
6936
  return 0;
 
6937
}
 
6938
_ACEOF
 
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
 
6942
  ac_status=$?
 
6943
  grep -v '^ *+' conftest.er1 >conftest.err
 
6944
  rm -f conftest.er1
 
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
 
6950
  (eval $ac_try) 2>&5
 
6951
  ac_status=$?
 
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
 
6956
  (eval $ac_try) 2>&5
 
6957
  ac_status=$?
 
6958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6959
  (exit $ac_status); }; }; then
 
6960
  ac_cv_search_socket="none required"
 
6961
else
 
6962
  echo "$as_me: failed program was:" >&5
 
6963
sed 's/^/| /' conftest.$ac_ext >&5
 
6964
 
 
6965
fi
 
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
 
6972
/* confdefs.h.  */
 
6973
_ACEOF
 
6974
cat confdefs.h >>conftest.$ac_ext
 
6975
cat >>conftest.$ac_ext <<_ACEOF
 
6976
/* end confdefs.h.  */
 
6977
 
 
6978
/* Override any gcc2 internal prototype to avoid an error.  */
 
6979
#ifdef __cplusplus
 
6980
extern "C"
 
6981
#endif
 
6982
/* We use char because int might match the return type of a gcc2
 
6983
   builtin and then its argument prototype would still apply.  */
 
6984
char socket ();
 
6985
int
 
6986
main ()
 
6987
{
 
6988
socket ();
 
6989
  ;
 
6990
  return 0;
 
6991
}
 
6992
_ACEOF
 
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
 
6996
  ac_status=$?
 
6997
  grep -v '^ *+' conftest.er1 >conftest.err
 
6998
  rm -f conftest.er1
 
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
 
7004
  (eval $ac_try) 2>&5
 
7005
  ac_status=$?
 
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
 
7010
  (eval $ac_try) 2>&5
 
7011
  ac_status=$?
 
7012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7013
  (exit $ac_status); }; }; then
 
7014
  ac_cv_search_socket="-l$ac_lib"
 
7015
break
 
7016
else
 
7017
  echo "$as_me: failed program was:" >&5
 
7018
sed 's/^/| /' conftest.$ac_ext >&5
 
7019
 
 
7020
fi
 
7021
rm -f conftest.err conftest.$ac_objext \
 
7022
      conftest$ac_exeext conftest.$ac_ext
 
7023
  done
 
7024
fi
 
7025
LIBS=$ac_func_search_save_LIBS
 
7026
fi
 
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"
 
7031
 
 
7032
else
 
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
 
7037
else
 
7038
  ac_check_lib_save_LIBS=$LIBS
 
7039
LIBS="-lnsl -lsocket $LIBS"
 
7040
cat >conftest.$ac_ext <<_ACEOF
 
7041
/* confdefs.h.  */
 
7042
_ACEOF
 
7043
cat confdefs.h >>conftest.$ac_ext
 
7044
cat >>conftest.$ac_ext <<_ACEOF
 
7045
/* end confdefs.h.  */
 
7046
 
 
7047
/* Override any gcc2 internal prototype to avoid an error.  */
 
7048
#ifdef __cplusplus
 
7049
extern "C"
 
7050
#endif
 
7051
/* We use char because int might match the return type of a gcc2
 
7052
   builtin and then its argument prototype would still apply.  */
 
7053
char socket ();
 
7054
int
 
7055
main ()
 
7056
{
 
7057
socket ();
 
7058
  ;
 
7059
  return 0;
 
7060
}
 
7061
_ACEOF
 
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
 
7065
  ac_status=$?
 
7066
  grep -v '^ *+' conftest.er1 >conftest.err
 
7067
  rm -f conftest.er1
 
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
 
7073
  (eval $ac_try) 2>&5
 
7074
  ac_status=$?
 
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
 
7079
  (eval $ac_try) 2>&5
 
7080
  ac_status=$?
 
7081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7082
  (exit $ac_status); }; }; then
 
7083
  ac_cv_lib_nsl_socket=yes
 
7084
else
 
7085
  echo "$as_me: failed program was:" >&5
 
7086
sed 's/^/| /' conftest.$ac_ext >&5
 
7087
 
 
7088
ac_cv_lib_nsl_socket=no
 
7089
fi
 
7090
rm -f conftest.err conftest.$ac_objext \
 
7091
      conftest$ac_exeext conftest.$ac_ext
 
7092
LIBS=$ac_check_lib_save_LIBS
 
7093
fi
 
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"
 
7098
fi
 
7099
 
 
7100
fi
 
7101
 
 
7102
    fi
 
7103
 
 
7104
    if test x"$KRBROOT" != x ; then
 
7105
        if test -x "$KRBROOT/bin/krb5-config" ; then
 
7106
            KRB5_CONFIG="$KRBROOT/bin/krb5-config"
 
7107
        fi
 
7108
    else
 
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
 
7115
else
 
7116
  case $KRB5_CONFIG in
 
7117
  [\\/]* | ?:[\\/]*)
 
7118
  ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
 
7119
  ;;
 
7120
  *)
 
7121
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7122
for as_dir in $PATH
 
7123
do
 
7124
  IFS=$as_save_IFS
 
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
 
7130
    break 2
 
7131
  fi
 
7132
done
 
7133
done
 
7134
 
 
7135
  ;;
 
7136
esac
 
7137
fi
 
7138
KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
 
7139
 
 
7140
if test -n "$KRB5_CONFIG"; then
 
7141
  echo "$as_me:$LINENO: result: $KRB5_CONFIG" >&5
 
7142
echo "${ECHO_T}$KRB5_CONFIG" >&6
 
7143
else
 
7144
  echo "$as_me:$LINENO: result: no" >&5
 
7145
echo "${ECHO_T}no" >&6
 
7146
fi
 
7147
 
 
7148
    fi
 
7149
 
 
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
 
7152
    # dynamic.
 
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'`
 
7161
        else
 
7162
            echo "$as_me:$LINENO: result: no" >&5
 
7163
echo "${ECHO_T}no" >&6
 
7164
            KRBCPPFLAGS=`"$KRB5_CONFIG" --cflags`
 
7165
            KRBLIBS=`"$KRB5_CONFIG" --libs`
 
7166
        fi
 
7167
        KRBCPPFLAGS=`echo "$KRBCPPFLAGS" | sed 's%-I/usr/include ?%%'`
 
7168
    else
 
7169
        if test x"$KRBROOT" != x ; then
 
7170
            if test x"$KRBROOT" != x/usr ; then
 
7171
                KRBCPPFLAGS="-I$KRBROOT/include"
 
7172
            fi
 
7173
            LDFLAGS="$LDFLAGS -L$KRBROOT/lib"
 
7174
        fi
 
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
 
7179
else
 
7180
  ac_func_search_save_LIBS=$LIBS
 
7181
ac_cv_search_res_search=no
 
7182
cat >conftest.$ac_ext <<_ACEOF
 
7183
/* confdefs.h.  */
 
7184
_ACEOF
 
7185
cat confdefs.h >>conftest.$ac_ext
 
7186
cat >>conftest.$ac_ext <<_ACEOF
 
7187
/* end confdefs.h.  */
 
7188
 
 
7189
/* Override any gcc2 internal prototype to avoid an error.  */
 
7190
#ifdef __cplusplus
 
7191
extern "C"
 
7192
#endif
 
7193
/* We use char because int might match the return type of a gcc2
 
7194
   builtin and then its argument prototype would still apply.  */
 
7195
char res_search ();
 
7196
int
 
7197
main ()
 
7198
{
 
7199
res_search ();
 
7200
  ;
 
7201
  return 0;
 
7202
}
 
7203
_ACEOF
 
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
 
7207
  ac_status=$?
 
7208
  grep -v '^ *+' conftest.er1 >conftest.err
 
7209
  rm -f conftest.er1
 
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
 
7215
  (eval $ac_try) 2>&5
 
7216
  ac_status=$?
 
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
 
7221
  (eval $ac_try) 2>&5
 
7222
  ac_status=$?
 
7223
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7224
  (exit $ac_status); }; }; then
 
7225
  ac_cv_search_res_search="none required"
 
7226
else
 
7227
  echo "$as_me: failed program was:" >&5
 
7228
sed 's/^/| /' conftest.$ac_ext >&5
 
7229
 
 
7230
fi
 
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
 
7237
/* confdefs.h.  */
 
7238
_ACEOF
 
7239
cat confdefs.h >>conftest.$ac_ext
 
7240
cat >>conftest.$ac_ext <<_ACEOF
 
7241
/* end confdefs.h.  */
 
7242
 
 
7243
/* Override any gcc2 internal prototype to avoid an error.  */
 
7244
#ifdef __cplusplus
 
7245
extern "C"
 
7246
#endif
 
7247
/* We use char because int might match the return type of a gcc2
 
7248
   builtin and then its argument prototype would still apply.  */
 
7249
char res_search ();
 
7250
int
 
7251
main ()
 
7252
{
 
7253
res_search ();
 
7254
  ;
 
7255
  return 0;
 
7256
}
 
7257
_ACEOF
 
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
 
7261
  ac_status=$?
 
7262
  grep -v '^ *+' conftest.er1 >conftest.err
 
7263
  rm -f conftest.er1
 
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
 
7269
  (eval $ac_try) 2>&5
 
7270
  ac_status=$?
 
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
 
7275
  (eval $ac_try) 2>&5
 
7276
  ac_status=$?
 
7277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7278
  (exit $ac_status); }; }; then
 
7279
  ac_cv_search_res_search="-l$ac_lib"
 
7280
break
 
7281
else
 
7282
  echo "$as_me: failed program was:" >&5
 
7283
sed 's/^/| /' conftest.$ac_ext >&5
 
7284
 
 
7285
fi
 
7286
rm -f conftest.err conftest.$ac_objext \
 
7287
      conftest$ac_exeext conftest.$ac_ext
 
7288
  done
 
7289
fi
 
7290
LIBS=$ac_func_search_save_LIBS
 
7291
fi
 
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"
 
7296
 
 
7297
else
 
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
 
7302
else
 
7303
  ac_func_search_save_LIBS=$LIBS
 
7304
ac_cv_search___res_search=no
 
7305
cat >conftest.$ac_ext <<_ACEOF
 
7306
/* confdefs.h.  */
 
7307
_ACEOF
 
7308
cat confdefs.h >>conftest.$ac_ext
 
7309
cat >>conftest.$ac_ext <<_ACEOF
 
7310
/* end confdefs.h.  */
 
7311
 
 
7312
/* Override any gcc2 internal prototype to avoid an error.  */
 
7313
#ifdef __cplusplus
 
7314
extern "C"
 
7315
#endif
 
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 ();
 
7319
int
 
7320
main ()
 
7321
{
 
7322
__res_search ();
 
7323
  ;
 
7324
  return 0;
 
7325
}
 
7326
_ACEOF
 
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
 
7330
  ac_status=$?
 
7331
  grep -v '^ *+' conftest.er1 >conftest.err
 
7332
  rm -f conftest.er1
 
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
 
7338
  (eval $ac_try) 2>&5
 
7339
  ac_status=$?
 
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
 
7344
  (eval $ac_try) 2>&5
 
7345
  ac_status=$?
 
7346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7347
  (exit $ac_status); }; }; then
 
7348
  ac_cv_search___res_search="none required"
 
7349
else
 
7350
  echo "$as_me: failed program was:" >&5
 
7351
sed 's/^/| /' conftest.$ac_ext >&5
 
7352
 
 
7353
fi
 
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
 
7360
/* confdefs.h.  */
 
7361
_ACEOF
 
7362
cat confdefs.h >>conftest.$ac_ext
 
7363
cat >>conftest.$ac_ext <<_ACEOF
 
7364
/* end confdefs.h.  */
 
7365
 
 
7366
/* Override any gcc2 internal prototype to avoid an error.  */
 
7367
#ifdef __cplusplus
 
7368
extern "C"
 
7369
#endif
 
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 ();
 
7373
int
 
7374
main ()
 
7375
{
 
7376
__res_search ();
 
7377
  ;
 
7378
  return 0;
 
7379
}
 
7380
_ACEOF
 
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
 
7384
  ac_status=$?
 
7385
  grep -v '^ *+' conftest.er1 >conftest.err
 
7386
  rm -f conftest.er1
 
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
 
7392
  (eval $ac_try) 2>&5
 
7393
  ac_status=$?
 
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
 
7398
  (eval $ac_try) 2>&5
 
7399
  ac_status=$?
 
7400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7401
  (exit $ac_status); }; }; then
 
7402
  ac_cv_search___res_search="-l$ac_lib"
 
7403
break
 
7404
else
 
7405
  echo "$as_me: failed program was:" >&5
 
7406
sed 's/^/| /' conftest.$ac_ext >&5
 
7407
 
 
7408
fi
 
7409
rm -f conftest.err conftest.$ac_objext \
 
7410
      conftest$ac_exeext conftest.$ac_ext
 
7411
  done
 
7412
fi
 
7413
LIBS=$ac_func_search_save_LIBS
 
7414
fi
 
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"
 
7419
 
 
7420
fi
 
7421
 
 
7422
fi
 
7423
 
 
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
 
7428
else
 
7429
  ac_func_search_save_LIBS=$LIBS
 
7430
ac_cv_search_crypt=no
 
7431
cat >conftest.$ac_ext <<_ACEOF
 
7432
/* confdefs.h.  */
 
7433
_ACEOF
 
7434
cat confdefs.h >>conftest.$ac_ext
 
7435
cat >>conftest.$ac_ext <<_ACEOF
 
7436
/* end confdefs.h.  */
 
7437
 
 
7438
/* Override any gcc2 internal prototype to avoid an error.  */
 
7439
#ifdef __cplusplus
 
7440
extern "C"
 
7441
#endif
 
7442
/* We use char because int might match the return type of a gcc2
 
7443
   builtin and then its argument prototype would still apply.  */
 
7444
char crypt ();
 
7445
int
 
7446
main ()
 
7447
{
 
7448
crypt ();
 
7449
  ;
 
7450
  return 0;
 
7451
}
 
7452
_ACEOF
 
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
 
7456
  ac_status=$?
 
7457
  grep -v '^ *+' conftest.er1 >conftest.err
 
7458
  rm -f conftest.er1
 
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
 
7464
  (eval $ac_try) 2>&5
 
7465
  ac_status=$?
 
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
 
7470
  (eval $ac_try) 2>&5
 
7471
  ac_status=$?
 
7472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7473
  (exit $ac_status); }; }; then
 
7474
  ac_cv_search_crypt="none required"
 
7475
else
 
7476
  echo "$as_me: failed program was:" >&5
 
7477
sed 's/^/| /' conftest.$ac_ext >&5
 
7478
 
 
7479
fi
 
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
 
7486
/* confdefs.h.  */
 
7487
_ACEOF
 
7488
cat confdefs.h >>conftest.$ac_ext
 
7489
cat >>conftest.$ac_ext <<_ACEOF
 
7490
/* end confdefs.h.  */
 
7491
 
 
7492
/* Override any gcc2 internal prototype to avoid an error.  */
 
7493
#ifdef __cplusplus
 
7494
extern "C"
 
7495
#endif
 
7496
/* We use char because int might match the return type of a gcc2
 
7497
   builtin and then its argument prototype would still apply.  */
 
7498
char crypt ();
 
7499
int
 
7500
main ()
 
7501
{
 
7502
crypt ();
 
7503
  ;
 
7504
  return 0;
 
7505
}
 
7506
_ACEOF
 
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
 
7510
  ac_status=$?
 
7511
  grep -v '^ *+' conftest.er1 >conftest.err
 
7512
  rm -f conftest.er1
 
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
 
7518
  (eval $ac_try) 2>&5
 
7519
  ac_status=$?
 
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
 
7524
  (eval $ac_try) 2>&5
 
7525
  ac_status=$?
 
7526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7527
  (exit $ac_status); }; }; then
 
7528
  ac_cv_search_crypt="-l$ac_lib"
 
7529
break
 
7530
else
 
7531
  echo "$as_me: failed program was:" >&5
 
7532
sed 's/^/| /' conftest.$ac_ext >&5
 
7533
 
 
7534
fi
 
7535
rm -f conftest.err conftest.$ac_objext \
 
7536
      conftest$ac_exeext conftest.$ac_ext
 
7537
  done
 
7538
fi
 
7539
LIBS=$ac_func_search_save_LIBS
 
7540
fi
 
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"
 
7545
 
 
7546
fi
 
7547
 
 
7548
        case "krb4" in
 
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
 
7553
else
 
7554
  ac_check_lib_save_LIBS=$LIBS
 
7555
LIBS="-lgssapi -lkrb5 -lasn1 -lroken -lcrypto -lcom_err $LIBS"
 
7556
cat >conftest.$ac_ext <<_ACEOF
 
7557
/* confdefs.h.  */
 
7558
_ACEOF
 
7559
cat confdefs.h >>conftest.$ac_ext
 
7560
cat >>conftest.$ac_ext <<_ACEOF
 
7561
/* end confdefs.h.  */
 
7562
 
 
7563
/* Override any gcc2 internal prototype to avoid an error.  */
 
7564
#ifdef __cplusplus
 
7565
extern "C"
 
7566
#endif
 
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 ();
 
7570
int
 
7571
main ()
 
7572
{
 
7573
gss_import_name ();
 
7574
  ;
 
7575
  return 0;
 
7576
}
 
7577
_ACEOF
 
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
 
7581
  ac_status=$?
 
7582
  grep -v '^ *+' conftest.er1 >conftest.err
 
7583
  rm -f conftest.er1
 
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
 
7589
  (eval $ac_try) 2>&5
 
7590
  ac_status=$?
 
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
 
7595
  (eval $ac_try) 2>&5
 
7596
  ac_status=$?
 
7597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7598
  (exit $ac_status); }; }; then
 
7599
  ac_cv_lib_gssapi_gss_import_name=yes
 
7600
else
 
7601
  echo "$as_me: failed program was:" >&5
 
7602
sed 's/^/| /' conftest.$ac_ext >&5
 
7603
 
 
7604
ac_cv_lib_gssapi_gss_import_name=no
 
7605
fi
 
7606
rm -f conftest.err conftest.$ac_objext \
 
7607
      conftest$ac_exeext conftest.$ac_ext
 
7608
LIBS=$ac_check_lib_save_LIBS
 
7609
fi
 
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"
 
7614
else
 
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
 
7620
else
 
7621
  ac_check_lib_save_LIBS=$LIBS
 
7622
LIBS="-lkrb5support  $LIBS"
 
7623
cat >conftest.$ac_ext <<_ACEOF
 
7624
/* confdefs.h.  */
 
7625
_ACEOF
 
7626
cat confdefs.h >>conftest.$ac_ext
 
7627
cat >>conftest.$ac_ext <<_ACEOF
 
7628
/* end confdefs.h.  */
 
7629
 
 
7630
/* Override any gcc2 internal prototype to avoid an error.  */
 
7631
#ifdef __cplusplus
 
7632
extern "C"
 
7633
#endif
 
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 ();
 
7637
int
 
7638
main ()
 
7639
{
 
7640
krb5int_getspecific ();
 
7641
  ;
 
7642
  return 0;
 
7643
}
 
7644
_ACEOF
 
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
 
7648
  ac_status=$?
 
7649
  grep -v '^ *+' conftest.er1 >conftest.err
 
7650
  rm -f conftest.er1
 
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
 
7656
  (eval $ac_try) 2>&5
 
7657
  ac_status=$?
 
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
 
7662
  (eval $ac_try) 2>&5
 
7663
  ac_status=$?
 
7664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7665
  (exit $ac_status); }; }; then
 
7666
  ac_cv_lib_krb5support_krb5int_getspecific=yes
 
7667
else
 
7668
  echo "$as_me: failed program was:" >&5
 
7669
sed 's/^/| /' conftest.$ac_ext >&5
 
7670
 
 
7671
ac_cv_lib_krb5support_krb5int_getspecific=no
 
7672
fi
 
7673
rm -f conftest.err conftest.$ac_objext \
 
7674
      conftest$ac_exeext conftest.$ac_ext
 
7675
LIBS=$ac_check_lib_save_LIBS
 
7676
fi
 
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"
 
7681
else
 
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
 
7686
else
 
7687
  ac_func_search_save_LIBS=$LIBS
 
7688
ac_cv_search_pthread_setspecific=no
 
7689
cat >conftest.$ac_ext <<_ACEOF
 
7690
/* confdefs.h.  */
 
7691
_ACEOF
 
7692
cat confdefs.h >>conftest.$ac_ext
 
7693
cat >>conftest.$ac_ext <<_ACEOF
 
7694
/* end confdefs.h.  */
 
7695
 
 
7696
/* Override any gcc2 internal prototype to avoid an error.  */
 
7697
#ifdef __cplusplus
 
7698
extern "C"
 
7699
#endif
 
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 ();
 
7703
int
 
7704
main ()
 
7705
{
 
7706
pthread_setspecific ();
 
7707
  ;
 
7708
  return 0;
 
7709
}
 
7710
_ACEOF
 
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
 
7714
  ac_status=$?
 
7715
  grep -v '^ *+' conftest.er1 >conftest.err
 
7716
  rm -f conftest.er1
 
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
 
7722
  (eval $ac_try) 2>&5
 
7723
  ac_status=$?
 
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
 
7728
  (eval $ac_try) 2>&5
 
7729
  ac_status=$?
 
7730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7731
  (exit $ac_status); }; }; then
 
7732
  ac_cv_search_pthread_setspecific="none required"
 
7733
else
 
7734
  echo "$as_me: failed program was:" >&5
 
7735
sed 's/^/| /' conftest.$ac_ext >&5
 
7736
 
 
7737
fi
 
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
 
7744
/* confdefs.h.  */
 
7745
_ACEOF
 
7746
cat confdefs.h >>conftest.$ac_ext
 
7747
cat >>conftest.$ac_ext <<_ACEOF
 
7748
/* end confdefs.h.  */
 
7749
 
 
7750
/* Override any gcc2 internal prototype to avoid an error.  */
 
7751
#ifdef __cplusplus
 
7752
extern "C"
 
7753
#endif
 
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 ();
 
7757
int
 
7758
main ()
 
7759
{
 
7760
pthread_setspecific ();
 
7761
  ;
 
7762
  return 0;
 
7763
}
 
7764
_ACEOF
 
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
 
7768
  ac_status=$?
 
7769
  grep -v '^ *+' conftest.er1 >conftest.err
 
7770
  rm -f conftest.er1
 
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
 
7776
  (eval $ac_try) 2>&5
 
7777
  ac_status=$?
 
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
 
7782
  (eval $ac_try) 2>&5
 
7783
  ac_status=$?
 
7784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7785
  (exit $ac_status); }; }; then
 
7786
  ac_cv_search_pthread_setspecific="-l$ac_lib"
 
7787
break
 
7788
else
 
7789
  echo "$as_me: failed program was:" >&5
 
7790
sed 's/^/| /' conftest.$ac_ext >&5
 
7791
 
 
7792
fi
 
7793
rm -f conftest.err conftest.$ac_objext \
 
7794
      conftest$ac_exeext conftest.$ac_ext
 
7795
  done
 
7796
fi
 
7797
LIBS=$ac_func_search_save_LIBS
 
7798
fi
 
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"
 
7803
 
 
7804
fi
 
7805
 
 
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
 
7810
else
 
7811
  ac_check_lib_save_LIBS=$LIBS
 
7812
LIBS="-lkrb5support  $LIBS"
 
7813
cat >conftest.$ac_ext <<_ACEOF
 
7814
/* confdefs.h.  */
 
7815
_ACEOF
 
7816
cat confdefs.h >>conftest.$ac_ext
 
7817
cat >>conftest.$ac_ext <<_ACEOF
 
7818
/* end confdefs.h.  */
 
7819
 
 
7820
/* Override any gcc2 internal prototype to avoid an error.  */
 
7821
#ifdef __cplusplus
 
7822
extern "C"
 
7823
#endif
 
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 ();
 
7827
int
 
7828
main ()
 
7829
{
 
7830
krb5int_setspecific ();
 
7831
  ;
 
7832
  return 0;
 
7833
}
 
7834
_ACEOF
 
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
 
7838
  ac_status=$?
 
7839
  grep -v '^ *+' conftest.er1 >conftest.err
 
7840
  rm -f conftest.er1
 
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
 
7846
  (eval $ac_try) 2>&5
 
7847
  ac_status=$?
 
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
 
7852
  (eval $ac_try) 2>&5
 
7853
  ac_status=$?
 
7854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7855
  (exit $ac_status); }; }; then
 
7856
  ac_cv_lib_krb5support_krb5int_setspecific=yes
 
7857
else
 
7858
  echo "$as_me: failed program was:" >&5
 
7859
sed 's/^/| /' conftest.$ac_ext >&5
 
7860
 
 
7861
ac_cv_lib_krb5support_krb5int_setspecific=no
 
7862
fi
 
7863
rm -f conftest.err conftest.$ac_objext \
 
7864
      conftest$ac_exeext conftest.$ac_ext
 
7865
LIBS=$ac_check_lib_save_LIBS
 
7866
fi
 
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"
 
7871
fi
 
7872
 
 
7873
fi
 
7874
 
 
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
 
7879
else
 
7880
  ac_check_lib_save_LIBS=$LIBS
 
7881
LIBS="-lgssapi_krb5 $KRB5EXTRA $LIBS"
 
7882
cat >conftest.$ac_ext <<_ACEOF
 
7883
/* confdefs.h.  */
 
7884
_ACEOF
 
7885
cat confdefs.h >>conftest.$ac_ext
 
7886
cat >>conftest.$ac_ext <<_ACEOF
 
7887
/* end confdefs.h.  */
 
7888
 
 
7889
/* Override any gcc2 internal prototype to avoid an error.  */
 
7890
#ifdef __cplusplus
 
7891
extern "C"
 
7892
#endif
 
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 ();
 
7896
int
 
7897
main ()
 
7898
{
 
7899
gss_import_name ();
 
7900
  ;
 
7901
  return 0;
 
7902
}
 
7903
_ACEOF
 
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
 
7907
  ac_status=$?
 
7908
  grep -v '^ *+' conftest.er1 >conftest.err
 
7909
  rm -f conftest.er1
 
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
 
7915
  (eval $ac_try) 2>&5
 
7916
  ac_status=$?
 
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
 
7921
  (eval $ac_try) 2>&5
 
7922
  ac_status=$?
 
7923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7924
  (exit $ac_status); }; }; then
 
7925
  ac_cv_lib_gssapi_krb5_gss_import_name=yes
 
7926
else
 
7927
  echo "$as_me: failed program was:" >&5
 
7928
sed 's/^/| /' conftest.$ac_ext >&5
 
7929
 
 
7930
ac_cv_lib_gssapi_krb5_gss_import_name=no
 
7931
fi
 
7932
rm -f conftest.err conftest.$ac_objext \
 
7933
      conftest$ac_exeext conftest.$ac_ext
 
7934
LIBS=$ac_check_lib_save_LIBS
 
7935
fi
 
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"
 
7940
else
 
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; }; }
 
7944
fi
 
7945
 
 
7946
fi
 
7947
 ;;
 
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
 
7952
else
 
7953
  ac_check_lib_save_LIBS=$LIBS
 
7954
LIBS="-lkrb5 -lasn1 -lroken -lcrypto -lcom_err $LIBS"
 
7955
cat >conftest.$ac_ext <<_ACEOF
 
7956
/* confdefs.h.  */
 
7957
_ACEOF
 
7958
cat confdefs.h >>conftest.$ac_ext
 
7959
cat >>conftest.$ac_ext <<_ACEOF
 
7960
/* end confdefs.h.  */
 
7961
 
 
7962
/* Override any gcc2 internal prototype to avoid an error.  */
 
7963
#ifdef __cplusplus
 
7964
extern "C"
 
7965
#endif
 
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 ();
 
7969
int
 
7970
main ()
 
7971
{
 
7972
krb5_init_context ();
 
7973
  ;
 
7974
  return 0;
 
7975
}
 
7976
_ACEOF
 
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
 
7980
  ac_status=$?
 
7981
  grep -v '^ *+' conftest.er1 >conftest.err
 
7982
  rm -f conftest.er1
 
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
 
7988
  (eval $ac_try) 2>&5
 
7989
  ac_status=$?
 
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
 
7994
  (eval $ac_try) 2>&5
 
7995
  ac_status=$?
 
7996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7997
  (exit $ac_status); }; }; then
 
7998
  ac_cv_lib_krb5_krb5_init_context=yes
 
7999
else
 
8000
  echo "$as_me: failed program was:" >&5
 
8001
sed 's/^/| /' conftest.$ac_ext >&5
 
8002
 
 
8003
ac_cv_lib_krb5_krb5_init_context=no
 
8004
fi
 
8005
rm -f conftest.err conftest.$ac_objext \
 
8006
      conftest$ac_exeext conftest.$ac_ext
 
8007
LIBS=$ac_check_lib_save_LIBS
 
8008
fi
 
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"
 
8013
else
 
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
 
8019
else
 
8020
  ac_check_lib_save_LIBS=$LIBS
 
8021
LIBS="-lkrb5support  $LIBS"
 
8022
cat >conftest.$ac_ext <<_ACEOF
 
8023
/* confdefs.h.  */
 
8024
_ACEOF
 
8025
cat confdefs.h >>conftest.$ac_ext
 
8026
cat >>conftest.$ac_ext <<_ACEOF
 
8027
/* end confdefs.h.  */
 
8028
 
 
8029
/* Override any gcc2 internal prototype to avoid an error.  */
 
8030
#ifdef __cplusplus
 
8031
extern "C"
 
8032
#endif
 
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 ();
 
8036
int
 
8037
main ()
 
8038
{
 
8039
krb5int_getspecific ();
 
8040
  ;
 
8041
  return 0;
 
8042
}
 
8043
_ACEOF
 
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
 
8047
  ac_status=$?
 
8048
  grep -v '^ *+' conftest.er1 >conftest.err
 
8049
  rm -f conftest.er1
 
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
 
8055
  (eval $ac_try) 2>&5
 
8056
  ac_status=$?
 
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
 
8061
  (eval $ac_try) 2>&5
 
8062
  ac_status=$?
 
8063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8064
  (exit $ac_status); }; }; then
 
8065
  ac_cv_lib_krb5support_krb5int_getspecific=yes
 
8066
else
 
8067
  echo "$as_me: failed program was:" >&5
 
8068
sed 's/^/| /' conftest.$ac_ext >&5
 
8069
 
 
8070
ac_cv_lib_krb5support_krb5int_getspecific=no
 
8071
fi
 
8072
rm -f conftest.err conftest.$ac_objext \
 
8073
      conftest$ac_exeext conftest.$ac_ext
 
8074
LIBS=$ac_check_lib_save_LIBS
 
8075
fi
 
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"
 
8080
else
 
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
 
8085
else
 
8086
  ac_func_search_save_LIBS=$LIBS
 
8087
ac_cv_search_pthread_setspecific=no
 
8088
cat >conftest.$ac_ext <<_ACEOF
 
8089
/* confdefs.h.  */
 
8090
_ACEOF
 
8091
cat confdefs.h >>conftest.$ac_ext
 
8092
cat >>conftest.$ac_ext <<_ACEOF
 
8093
/* end confdefs.h.  */
 
8094
 
 
8095
/* Override any gcc2 internal prototype to avoid an error.  */
 
8096
#ifdef __cplusplus
 
8097
extern "C"
 
8098
#endif
 
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 ();
 
8102
int
 
8103
main ()
 
8104
{
 
8105
pthread_setspecific ();
 
8106
  ;
 
8107
  return 0;
 
8108
}
 
8109
_ACEOF
 
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
 
8113
  ac_status=$?
 
8114
  grep -v '^ *+' conftest.er1 >conftest.err
 
8115
  rm -f conftest.er1
 
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
 
8121
  (eval $ac_try) 2>&5
 
8122
  ac_status=$?
 
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
 
8127
  (eval $ac_try) 2>&5
 
8128
  ac_status=$?
 
8129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8130
  (exit $ac_status); }; }; then
 
8131
  ac_cv_search_pthread_setspecific="none required"
 
8132
else
 
8133
  echo "$as_me: failed program was:" >&5
 
8134
sed 's/^/| /' conftest.$ac_ext >&5
 
8135
 
 
8136
fi
 
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
 
8143
/* confdefs.h.  */
 
8144
_ACEOF
 
8145
cat confdefs.h >>conftest.$ac_ext
 
8146
cat >>conftest.$ac_ext <<_ACEOF
 
8147
/* end confdefs.h.  */
 
8148
 
 
8149
/* Override any gcc2 internal prototype to avoid an error.  */
 
8150
#ifdef __cplusplus
 
8151
extern "C"
 
8152
#endif
 
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 ();
 
8156
int
 
8157
main ()
 
8158
{
 
8159
pthread_setspecific ();
 
8160
  ;
 
8161
  return 0;
 
8162
}
 
8163
_ACEOF
 
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
 
8167
  ac_status=$?
 
8168
  grep -v '^ *+' conftest.er1 >conftest.err
 
8169
  rm -f conftest.er1
 
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
 
8175
  (eval $ac_try) 2>&5
 
8176
  ac_status=$?
 
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
 
8181
  (eval $ac_try) 2>&5
 
8182
  ac_status=$?
 
8183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8184
  (exit $ac_status); }; }; then
 
8185
  ac_cv_search_pthread_setspecific="-l$ac_lib"
 
8186
break
 
8187
else
 
8188
  echo "$as_me: failed program was:" >&5
 
8189
sed 's/^/| /' conftest.$ac_ext >&5
 
8190
 
 
8191
fi
 
8192
rm -f conftest.err conftest.$ac_objext \
 
8193
      conftest$ac_exeext conftest.$ac_ext
 
8194
  done
 
8195
fi
 
8196
LIBS=$ac_func_search_save_LIBS
 
8197
fi
 
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"
 
8202
 
 
8203
fi
 
8204
 
 
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
 
8209
else
 
8210
  ac_check_lib_save_LIBS=$LIBS
 
8211
LIBS="-lkrb5support  $LIBS"
 
8212
cat >conftest.$ac_ext <<_ACEOF
 
8213
/* confdefs.h.  */
 
8214
_ACEOF
 
8215
cat confdefs.h >>conftest.$ac_ext
 
8216
cat >>conftest.$ac_ext <<_ACEOF
 
8217
/* end confdefs.h.  */
 
8218
 
 
8219
/* Override any gcc2 internal prototype to avoid an error.  */
 
8220
#ifdef __cplusplus
 
8221
extern "C"
 
8222
#endif
 
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 ();
 
8226
int
 
8227
main ()
 
8228
{
 
8229
krb5int_setspecific ();
 
8230
  ;
 
8231
  return 0;
 
8232
}
 
8233
_ACEOF
 
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
 
8237
  ac_status=$?
 
8238
  grep -v '^ *+' conftest.er1 >conftest.err
 
8239
  rm -f conftest.er1
 
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
 
8245
  (eval $ac_try) 2>&5
 
8246
  ac_status=$?
 
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
 
8251
  (eval $ac_try) 2>&5
 
8252
  ac_status=$?
 
8253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8254
  (exit $ac_status); }; }; then
 
8255
  ac_cv_lib_krb5support_krb5int_setspecific=yes
 
8256
else
 
8257
  echo "$as_me: failed program was:" >&5
 
8258
sed 's/^/| /' conftest.$ac_ext >&5
 
8259
 
 
8260
ac_cv_lib_krb5support_krb5int_setspecific=no
 
8261
fi
 
8262
rm -f conftest.err conftest.$ac_objext \
 
8263
      conftest$ac_exeext conftest.$ac_ext
 
8264
LIBS=$ac_check_lib_save_LIBS
 
8265
fi
 
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"
 
8270
fi
 
8271
 
 
8272
fi
 
8273
 
 
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
 
8278
else
 
8279
  ac_check_lib_save_LIBS=$LIBS
 
8280
LIBS="-lkrb5 $KRB5EXTRA $LIBS"
 
8281
cat >conftest.$ac_ext <<_ACEOF
 
8282
/* confdefs.h.  */
 
8283
_ACEOF
 
8284
cat confdefs.h >>conftest.$ac_ext
 
8285
cat >>conftest.$ac_ext <<_ACEOF
 
8286
/* end confdefs.h.  */
 
8287
 
 
8288
/* Override any gcc2 internal prototype to avoid an error.  */
 
8289
#ifdef __cplusplus
 
8290
extern "C"
 
8291
#endif
 
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 ();
 
8295
int
 
8296
main ()
 
8297
{
 
8298
krb5_cc_default ();
 
8299
  ;
 
8300
  return 0;
 
8301
}
 
8302
_ACEOF
 
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
 
8306
  ac_status=$?
 
8307
  grep -v '^ *+' conftest.er1 >conftest.err
 
8308
  rm -f conftest.er1
 
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
 
8314
  (eval $ac_try) 2>&5
 
8315
  ac_status=$?
 
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
 
8320
  (eval $ac_try) 2>&5
 
8321
  ac_status=$?
 
8322
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8323
  (exit $ac_status); }; }; then
 
8324
  ac_cv_lib_krb5_krb5_cc_default=yes
 
8325
else
 
8326
  echo "$as_me: failed program was:" >&5
 
8327
sed 's/^/| /' conftest.$ac_ext >&5
 
8328
 
 
8329
ac_cv_lib_krb5_krb5_cc_default=no
 
8330
fi
 
8331
rm -f conftest.err conftest.$ac_objext \
 
8332
      conftest$ac_exeext conftest.$ac_ext
 
8333
LIBS=$ac_check_lib_save_LIBS
 
8334
fi
 
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"
 
8339
else
 
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; }; }
 
8343
fi
 
8344
 
 
8345
fi
 
8346
   ;;
 
8347
        krb4)   KRB4EXTRA=
 
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
 
8352
else
 
8353
  ac_check_lib_save_LIBS=$LIBS
 
8354
LIBS="-lcrypto  $LIBS"
 
8355
cat >conftest.$ac_ext <<_ACEOF
 
8356
/* confdefs.h.  */
 
8357
_ACEOF
 
8358
cat confdefs.h >>conftest.$ac_ext
 
8359
cat >>conftest.$ac_ext <<_ACEOF
 
8360
/* end confdefs.h.  */
 
8361
 
 
8362
/* Override any gcc2 internal prototype to avoid an error.  */
 
8363
#ifdef __cplusplus
 
8364
extern "C"
 
8365
#endif
 
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 ();
 
8369
int
 
8370
main ()
 
8371
{
 
8372
des_set_key ();
 
8373
  ;
 
8374
  return 0;
 
8375
}
 
8376
_ACEOF
 
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
 
8380
  ac_status=$?
 
8381
  grep -v '^ *+' conftest.er1 >conftest.err
 
8382
  rm -f conftest.er1
 
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
 
8388
  (eval $ac_try) 2>&5
 
8389
  ac_status=$?
 
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
 
8394
  (eval $ac_try) 2>&5
 
8395
  ac_status=$?
 
8396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8397
  (exit $ac_status); }; }; then
 
8398
  ac_cv_lib_crypto_des_set_key=yes
 
8399
else
 
8400
  echo "$as_me: failed program was:" >&5
 
8401
sed 's/^/| /' conftest.$ac_ext >&5
 
8402
 
 
8403
ac_cv_lib_crypto_des_set_key=no
 
8404
fi
 
8405
rm -f conftest.err conftest.$ac_objext \
 
8406
      conftest$ac_exeext conftest.$ac_ext
 
8407
LIBS=$ac_check_lib_save_LIBS
 
8408
fi
 
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"
 
8413
else
 
8414
  KRB4EXTRA="-ldes"
 
8415
fi
 
8416
 
 
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
 
8421
else
 
8422
  ac_check_lib_save_LIBS=$LIBS
 
8423
LIBS="-lkrb $KRB4EXTRA $LIBS"
 
8424
cat >conftest.$ac_ext <<_ACEOF
 
8425
/* confdefs.h.  */
 
8426
_ACEOF
 
8427
cat confdefs.h >>conftest.$ac_ext
 
8428
cat >>conftest.$ac_ext <<_ACEOF
 
8429
/* end confdefs.h.  */
 
8430
 
 
8431
/* Override any gcc2 internal prototype to avoid an error.  */
 
8432
#ifdef __cplusplus
 
8433
extern "C"
 
8434
#endif
 
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 ();
 
8438
int
 
8439
main ()
 
8440
{
 
8441
krb_get_svc_in_tkt ();
 
8442
  ;
 
8443
  return 0;
 
8444
}
 
8445
_ACEOF
 
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
 
8449
  ac_status=$?
 
8450
  grep -v '^ *+' conftest.er1 >conftest.err
 
8451
  rm -f conftest.er1
 
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
 
8457
  (eval $ac_try) 2>&5
 
8458
  ac_status=$?
 
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
 
8463
  (eval $ac_try) 2>&5
 
8464
  ac_status=$?
 
8465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8466
  (exit $ac_status); }; }; then
 
8467
  ac_cv_lib_krb_krb_get_svc_in_tkt=yes
 
8468
else
 
8469
  echo "$as_me: failed program was:" >&5
 
8470
sed 's/^/| /' conftest.$ac_ext >&5
 
8471
 
 
8472
ac_cv_lib_krb_krb_get_svc_in_tkt=no
 
8473
fi
 
8474
rm -f conftest.err conftest.$ac_objext \
 
8475
      conftest$ac_exeext conftest.$ac_ext
 
8476
LIBS=$ac_check_lib_save_LIBS
 
8477
fi
 
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"
 
8482
else
 
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
 
8488
else
 
8489
  ac_check_lib_save_LIBS=$LIBS
 
8490
LIBS="-lkrb5support  $LIBS"
 
8491
cat >conftest.$ac_ext <<_ACEOF
 
8492
/* confdefs.h.  */
 
8493
_ACEOF
 
8494
cat confdefs.h >>conftest.$ac_ext
 
8495
cat >>conftest.$ac_ext <<_ACEOF
 
8496
/* end confdefs.h.  */
 
8497
 
 
8498
/* Override any gcc2 internal prototype to avoid an error.  */
 
8499
#ifdef __cplusplus
 
8500
extern "C"
 
8501
#endif
 
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 ();
 
8505
int
 
8506
main ()
 
8507
{
 
8508
krb5int_getspecific ();
 
8509
  ;
 
8510
  return 0;
 
8511
}
 
8512
_ACEOF
 
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
 
8516
  ac_status=$?
 
8517
  grep -v '^ *+' conftest.er1 >conftest.err
 
8518
  rm -f conftest.er1
 
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
 
8524
  (eval $ac_try) 2>&5
 
8525
  ac_status=$?
 
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
 
8530
  (eval $ac_try) 2>&5
 
8531
  ac_status=$?
 
8532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8533
  (exit $ac_status); }; }; then
 
8534
  ac_cv_lib_krb5support_krb5int_getspecific=yes
 
8535
else
 
8536
  echo "$as_me: failed program was:" >&5
 
8537
sed 's/^/| /' conftest.$ac_ext >&5
 
8538
 
 
8539
ac_cv_lib_krb5support_krb5int_getspecific=no
 
8540
fi
 
8541
rm -f conftest.err conftest.$ac_objext \
 
8542
      conftest$ac_exeext conftest.$ac_ext
 
8543
LIBS=$ac_check_lib_save_LIBS
 
8544
fi
 
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"
 
8549
else
 
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
 
8554
else
 
8555
  ac_func_search_save_LIBS=$LIBS
 
8556
ac_cv_search_pthread_setspecific=no
 
8557
cat >conftest.$ac_ext <<_ACEOF
 
8558
/* confdefs.h.  */
 
8559
_ACEOF
 
8560
cat confdefs.h >>conftest.$ac_ext
 
8561
cat >>conftest.$ac_ext <<_ACEOF
 
8562
/* end confdefs.h.  */
 
8563
 
 
8564
/* Override any gcc2 internal prototype to avoid an error.  */
 
8565
#ifdef __cplusplus
 
8566
extern "C"
 
8567
#endif
 
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 ();
 
8571
int
 
8572
main ()
 
8573
{
 
8574
pthread_setspecific ();
 
8575
  ;
 
8576
  return 0;
 
8577
}
 
8578
_ACEOF
 
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
 
8582
  ac_status=$?
 
8583
  grep -v '^ *+' conftest.er1 >conftest.err
 
8584
  rm -f conftest.er1
 
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
 
8590
  (eval $ac_try) 2>&5
 
8591
  ac_status=$?
 
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
 
8596
  (eval $ac_try) 2>&5
 
8597
  ac_status=$?
 
8598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8599
  (exit $ac_status); }; }; then
 
8600
  ac_cv_search_pthread_setspecific="none required"
 
8601
else
 
8602
  echo "$as_me: failed program was:" >&5
 
8603
sed 's/^/| /' conftest.$ac_ext >&5
 
8604
 
 
8605
fi
 
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
 
8612
/* confdefs.h.  */
 
8613
_ACEOF
 
8614
cat confdefs.h >>conftest.$ac_ext
 
8615
cat >>conftest.$ac_ext <<_ACEOF
 
8616
/* end confdefs.h.  */
 
8617
 
 
8618
/* Override any gcc2 internal prototype to avoid an error.  */
 
8619
#ifdef __cplusplus
 
8620
extern "C"
 
8621
#endif
 
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 ();
 
8625
int
 
8626
main ()
 
8627
{
 
8628
pthread_setspecific ();
 
8629
  ;
 
8630
  return 0;
 
8631
}
 
8632
_ACEOF
 
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
 
8636
  ac_status=$?
 
8637
  grep -v '^ *+' conftest.er1 >conftest.err
 
8638
  rm -f conftest.er1
 
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
 
8644
  (eval $ac_try) 2>&5
 
8645
  ac_status=$?
 
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
 
8650
  (eval $ac_try) 2>&5
 
8651
  ac_status=$?
 
8652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8653
  (exit $ac_status); }; }; then
 
8654
  ac_cv_search_pthread_setspecific="-l$ac_lib"
 
8655
break
 
8656
else
 
8657
  echo "$as_me: failed program was:" >&5
 
8658
sed 's/^/| /' conftest.$ac_ext >&5
 
8659
 
 
8660
fi
 
8661
rm -f conftest.err conftest.$ac_objext \
 
8662
      conftest$ac_exeext conftest.$ac_ext
 
8663
  done
 
8664
fi
 
8665
LIBS=$ac_func_search_save_LIBS
 
8666
fi
 
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"
 
8671
 
 
8672
fi
 
8673
 
 
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
 
8678
else
 
8679
  ac_check_lib_save_LIBS=$LIBS
 
8680
LIBS="-lkrb5support  $LIBS"
 
8681
cat >conftest.$ac_ext <<_ACEOF
 
8682
/* confdefs.h.  */
 
8683
_ACEOF
 
8684
cat confdefs.h >>conftest.$ac_ext
 
8685
cat >>conftest.$ac_ext <<_ACEOF
 
8686
/* end confdefs.h.  */
 
8687
 
 
8688
/* Override any gcc2 internal prototype to avoid an error.  */
 
8689
#ifdef __cplusplus
 
8690
extern "C"
 
8691
#endif
 
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 ();
 
8695
int
 
8696
main ()
 
8697
{
 
8698
krb5int_setspecific ();
 
8699
  ;
 
8700
  return 0;
 
8701
}
 
8702
_ACEOF
 
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
 
8706
  ac_status=$?
 
8707
  grep -v '^ *+' conftest.er1 >conftest.err
 
8708
  rm -f conftest.er1
 
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
 
8714
  (eval $ac_try) 2>&5
 
8715
  ac_status=$?
 
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
 
8720
  (eval $ac_try) 2>&5
 
8721
  ac_status=$?
 
8722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8723
  (exit $ac_status); }; }; then
 
8724
  ac_cv_lib_krb5support_krb5int_setspecific=yes
 
8725
else
 
8726
  echo "$as_me: failed program was:" >&5
 
8727
sed 's/^/| /' conftest.$ac_ext >&5
 
8728
 
 
8729
ac_cv_lib_krb5support_krb5int_setspecific=no
 
8730
fi
 
8731
rm -f conftest.err conftest.$ac_objext \
 
8732
      conftest$ac_exeext conftest.$ac_ext
 
8733
LIBS=$ac_check_lib_save_LIBS
 
8734
fi
 
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"
 
8739
fi
 
8740
 
 
8741
fi
 
8742
 
 
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
 
8747
else
 
8748
  ac_check_lib_save_LIBS=$LIBS
 
8749
LIBS="-lkrb4 $KRB5EXTRA $LIBS"
 
8750
cat >conftest.$ac_ext <<_ACEOF
 
8751
/* confdefs.h.  */
 
8752
_ACEOF
 
8753
cat confdefs.h >>conftest.$ac_ext
 
8754
cat >>conftest.$ac_ext <<_ACEOF
 
8755
/* end confdefs.h.  */
 
8756
 
 
8757
/* Override any gcc2 internal prototype to avoid an error.  */
 
8758
#ifdef __cplusplus
 
8759
extern "C"
 
8760
#endif
 
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 ();
 
8764
int
 
8765
main ()
 
8766
{
 
8767
krb_get_svc_in_tkt ();
 
8768
  ;
 
8769
  return 0;
 
8770
}
 
8771
_ACEOF
 
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
 
8775
  ac_status=$?
 
8776
  grep -v '^ *+' conftest.er1 >conftest.err
 
8777
  rm -f conftest.er1
 
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
 
8783
  (eval $ac_try) 2>&5
 
8784
  ac_status=$?
 
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
 
8789
  (eval $ac_try) 2>&5
 
8790
  ac_status=$?
 
8791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8792
  (exit $ac_status); }; }; then
 
8793
  ac_cv_lib_krb4_krb_get_svc_in_tkt=yes
 
8794
else
 
8795
  echo "$as_me: failed program was:" >&5
 
8796
sed 's/^/| /' conftest.$ac_ext >&5
 
8797
 
 
8798
ac_cv_lib_krb4_krb_get_svc_in_tkt=no
 
8799
fi
 
8800
rm -f conftest.err conftest.$ac_objext \
 
8801
      conftest$ac_exeext conftest.$ac_ext
 
8802
LIBS=$ac_check_lib_save_LIBS
 
8803
fi
 
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"
 
8808
else
 
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; }; }
 
8812
fi
 
8813
 
 
8814
fi
 
8815
   ;;
 
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; }; } ;;
 
8819
        esac
 
8820
    fi
 
8821
    if test x"$KRBCPPFLAGS" != x ; then
 
8822
        CPPFLAGS="$CPPFLAGS $KRBCPPFLAGS"
 
8823
    fi
 
8824
fi
 
8825
 
 
8826
if test x"$static" = xtrue ; then
 
8827
    LIBS="-Wl,-Bstatic $KRBLIBS -Wl,-Bdynamic $LIBS"
 
8828
else
 
8829
    LIBS="$KRBLIBS $LIBS"
 
8830
fi
 
8831
CPPFLAGS=`echo "$CPPFLAGS" | sed 's/^  *//'`
 
8832
LDFLAGS=`echo "$LDFLAGS" | sed 's/^  *//'`
 
8833
 
 
8834
case "krb4" in
 
8835
gssapi)
 
8836
for ac_header in gssapi.h
 
8837
do
 
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
 
8844
fi
 
8845
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8846
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8847
else
 
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
 
8852
/* confdefs.h.  */
 
8853
_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>
 
8859
_ACEOF
 
8860
rm -f conftest.$ac_objext
 
8861
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8862
  (eval $ac_compile) 2>conftest.er1
 
8863
  ac_status=$?
 
8864
  grep -v '^ *+' conftest.er1 >conftest.err
 
8865
  rm -f conftest.er1
 
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
 
8871
  (eval $ac_try) 2>&5
 
8872
  ac_status=$?
 
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
 
8877
  (eval $ac_try) 2>&5
 
8878
  ac_status=$?
 
8879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8880
  (exit $ac_status); }; }; then
 
8881
  ac_header_compiler=yes
 
8882
else
 
8883
  echo "$as_me: failed program was:" >&5
 
8884
sed 's/^/| /' conftest.$ac_ext >&5
 
8885
 
 
8886
ac_header_compiler=no
 
8887
fi
 
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
 
8891
 
 
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
 
8896
/* confdefs.h.  */
 
8897
_ACEOF
 
8898
cat confdefs.h >>conftest.$ac_ext
 
8899
cat >>conftest.$ac_ext <<_ACEOF
 
8900
/* end confdefs.h.  */
 
8901
#include <$ac_header>
 
8902
_ACEOF
 
8903
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8904
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8905
  ac_status=$?
 
8906
  grep -v '^ *+' conftest.er1 >conftest.err
 
8907
  rm -f conftest.er1
 
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
 
8914
  else
 
8915
    ac_cpp_err=
 
8916
  fi
 
8917
else
 
8918
  ac_cpp_err=yes
 
8919
fi
 
8920
if test -z "$ac_cpp_err"; then
 
8921
  ac_header_preproc=yes
 
8922
else
 
8923
  echo "$as_me: failed program was:" >&5
 
8924
sed 's/^/| /' conftest.$ac_ext >&5
 
8925
 
 
8926
  ac_header_preproc=no
 
8927
fi
 
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
 
8931
 
 
8932
# So?  What about this header?
 
8933
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
8934
  yes:no: )
 
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
 
8940
    ;;
 
8941
  no: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;}
 
8954
    (
 
8955
      cat <<\_ASBOX
 
8956
## ------------------------------- ##
 
8957
## Report this to rra@stanford.edu ##
 
8958
## ------------------------------- ##
 
8959
_ASBOX
 
8960
    ) |
 
8961
      sed "s/^/$as_me: WARNING:     /" >&2
 
8962
    ;;
 
8963
esac
 
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
 
8968
else
 
8969
  eval "$as_ac_Header=\$ac_header_preproc"
 
8970
fi
 
8971
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8972
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8973
 
 
8974
fi
 
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
 
8978
_ACEOF
 
8979
 
 
8980
fi
 
8981
 
 
8982
done
 
8983
 
 
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
 
8988
else
 
8989
  cat >conftest.$ac_ext <<_ACEOF
 
8990
/* confdefs.h.  */
 
8991
_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>
 
8997
#else
 
8998
# include <gssapi/gssapi.h>
 
8999
#endif
 
9000
 
 
9001
 
 
9002
int
 
9003
main ()
 
9004
{
 
9005
#ifndef GSS_C_NT_USER_NAME
 
9006
  char *p = (char *) GSS_C_NT_USER_NAME;
 
9007
#endif
 
9008
 
 
9009
  ;
 
9010
  return 0;
 
9011
}
 
9012
_ACEOF
 
9013
rm -f conftest.$ac_objext
 
9014
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9015
  (eval $ac_compile) 2>conftest.er1
 
9016
  ac_status=$?
 
9017
  grep -v '^ *+' conftest.er1 >conftest.err
 
9018
  rm -f conftest.er1
 
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
 
9024
  (eval $ac_try) 2>&5
 
9025
  ac_status=$?
 
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
 
9030
  (eval $ac_try) 2>&5
 
9031
  ac_status=$?
 
9032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9033
  (exit $ac_status); }; }; then
 
9034
  ac_cv_have_decl_GSS_C_NT_USER_NAME=yes
 
9035
else
 
9036
  echo "$as_me: failed program was:" >&5
 
9037
sed 's/^/| /' conftest.$ac_ext >&5
 
9038
 
 
9039
ac_cv_have_decl_GSS_C_NT_USER_NAME=no
 
9040
fi
 
9041
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9042
fi
 
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
 
9046
 
 
9047
cat >>confdefs.h <<\_ACEOF
 
9048
#define HAVE_GSS_RFC_OIDS 1
 
9049
_ACEOF
 
9050
 
 
9051
fi
 
9052
 
 
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
 
9057
else
 
9058
  cat >conftest.$ac_ext <<_ACEOF
 
9059
/* confdefs.h.  */
 
9060
_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>
 
9066
#else
 
9067
# include <gssapi/gssapi.h>
 
9068
#endif
 
9069
 
 
9070
 
 
9071
int
 
9072
main ()
 
9073
{
 
9074
#ifndef GSS_KRB5_MECHANISM
 
9075
  char *p = (char *) GSS_KRB5_MECHANISM;
 
9076
#endif
 
9077
 
 
9078
  ;
 
9079
  return 0;
 
9080
}
 
9081
_ACEOF
 
9082
rm -f conftest.$ac_objext
 
9083
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9084
  (eval $ac_compile) 2>conftest.er1
 
9085
  ac_status=$?
 
9086
  grep -v '^ *+' conftest.er1 >conftest.err
 
9087
  rm -f conftest.er1
 
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
 
9093
  (eval $ac_try) 2>&5
 
9094
  ac_status=$?
 
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
 
9099
  (eval $ac_try) 2>&5
 
9100
  ac_status=$?
 
9101
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9102
  (exit $ac_status); }; }; then
 
9103
  ac_cv_have_decl_GSS_KRB5_MECHANISM=yes
 
9104
else
 
9105
  echo "$as_me: failed program was:" >&5
 
9106
sed 's/^/| /' conftest.$ac_ext >&5
 
9107
 
 
9108
ac_cv_have_decl_GSS_KRB5_MECHANISM=no
 
9109
fi
 
9110
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9111
fi
 
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
 
9115
 
 
9116
cat >>confdefs.h <<_ACEOF
 
9117
#define HAVE_DECL_GSS_KRB5_MECHANISM 1
 
9118
_ACEOF
 
9119
 
 
9120
 
 
9121
else
 
9122
  cat >>confdefs.h <<_ACEOF
 
9123
#define HAVE_DECL_GSS_KRB5_MECHANISM 0
 
9124
_ACEOF
 
9125
 
 
9126
 
 
9127
fi
 
9128
 
 
9129
 ;;
 
9130
krb5)
 
9131
for ac_header in et/com_err.h
 
9132
do
 
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
 
9139
fi
 
9140
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9141
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9142
else
 
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
 
9147
/* confdefs.h.  */
 
9148
_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>
 
9154
_ACEOF
 
9155
rm -f conftest.$ac_objext
 
9156
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9157
  (eval $ac_compile) 2>conftest.er1
 
9158
  ac_status=$?
 
9159
  grep -v '^ *+' conftest.er1 >conftest.err
 
9160
  rm -f conftest.er1
 
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
 
9166
  (eval $ac_try) 2>&5
 
9167
  ac_status=$?
 
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
 
9172
  (eval $ac_try) 2>&5
 
9173
  ac_status=$?
 
9174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9175
  (exit $ac_status); }; }; then
 
9176
  ac_header_compiler=yes
 
9177
else
 
9178
  echo "$as_me: failed program was:" >&5
 
9179
sed 's/^/| /' conftest.$ac_ext >&5
 
9180
 
 
9181
ac_header_compiler=no
 
9182
fi
 
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
 
9186
 
 
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
 
9191
/* confdefs.h.  */
 
9192
_ACEOF
 
9193
cat confdefs.h >>conftest.$ac_ext
 
9194
cat >>conftest.$ac_ext <<_ACEOF
 
9195
/* end confdefs.h.  */
 
9196
#include <$ac_header>
 
9197
_ACEOF
 
9198
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9199
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9200
  ac_status=$?
 
9201
  grep -v '^ *+' conftest.er1 >conftest.err
 
9202
  rm -f conftest.er1
 
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
 
9209
  else
 
9210
    ac_cpp_err=
 
9211
  fi
 
9212
else
 
9213
  ac_cpp_err=yes
 
9214
fi
 
9215
if test -z "$ac_cpp_err"; then
 
9216
  ac_header_preproc=yes
 
9217
else
 
9218
  echo "$as_me: failed program was:" >&5
 
9219
sed 's/^/| /' conftest.$ac_ext >&5
 
9220
 
 
9221
  ac_header_preproc=no
 
9222
fi
 
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
 
9226
 
 
9227
# So?  What about this header?
 
9228
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9229
  yes:no: )
 
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
 
9235
    ;;
 
9236
  no: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;}
 
9249
    (
 
9250
      cat <<\_ASBOX
 
9251
## ------------------------------- ##
 
9252
## Report this to rra@stanford.edu ##
 
9253
## ------------------------------- ##
 
9254
_ASBOX
 
9255
    ) |
 
9256
      sed "s/^/$as_me: WARNING:     /" >&2
 
9257
    ;;
 
9258
esac
 
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
 
9263
else
 
9264
  eval "$as_ac_Header=\$ac_header_preproc"
 
9265
fi
 
9266
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9267
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9268
 
 
9269
fi
 
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
 
9273
_ACEOF
 
9274
 
 
9275
fi
 
9276
 
 
9277
done
 
9278
 
 
9279
 
 
9280
for ac_func in krb5_free_keytab_entry_contents
 
9281
do
 
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
 
9287
else
 
9288
  cat >conftest.$ac_ext <<_ACEOF
 
9289
/* confdefs.h.  */
 
9290
_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
 
9297
 
 
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.  */
 
9302
 
 
9303
#ifdef __STDC__
 
9304
# include <limits.h>
 
9305
#else
 
9306
# include <assert.h>
 
9307
#endif
 
9308
 
 
9309
#undef $ac_func
 
9310
 
 
9311
/* Override any gcc2 internal prototype to avoid an error.  */
 
9312
#ifdef __cplusplus
 
9313
extern "C"
 
9314
{
 
9315
#endif
 
9316
/* We use char because int might match the return type of a gcc2
 
9317
   builtin and then its argument prototype would still apply.  */
 
9318
char $ac_func ();
 
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)
 
9323
choke me
 
9324
#else
 
9325
char (*f) () = $ac_func;
 
9326
#endif
 
9327
#ifdef __cplusplus
 
9328
}
 
9329
#endif
 
9330
 
 
9331
int
 
9332
main ()
 
9333
{
 
9334
return f != $ac_func;
 
9335
  ;
 
9336
  return 0;
 
9337
}
 
9338
_ACEOF
 
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
 
9342
  ac_status=$?
 
9343
  grep -v '^ *+' conftest.er1 >conftest.err
 
9344
  rm -f conftest.er1
 
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
 
9350
  (eval $ac_try) 2>&5
 
9351
  ac_status=$?
 
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
 
9356
  (eval $ac_try) 2>&5
 
9357
  ac_status=$?
 
9358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9359
  (exit $ac_status); }; }; then
 
9360
  eval "$as_ac_var=yes"
 
9361
else
 
9362
  echo "$as_me: failed program was:" >&5
 
9363
sed 's/^/| /' conftest.$ac_ext >&5
 
9364
 
 
9365
eval "$as_ac_var=no"
 
9366
fi
 
9367
rm -f conftest.err conftest.$ac_objext \
 
9368
      conftest$ac_exeext conftest.$ac_ext
 
9369
fi
 
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
 
9375
_ACEOF
 
9376
 
 
9377
fi
 
9378
done
 
9379
 
 
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
 
9384
else
 
9385
  cat >conftest.$ac_ext <<_ACEOF
 
9386
/* confdefs.h.  */
 
9387
_ACEOF
 
9388
cat confdefs.h >>conftest.$ac_ext
 
9389
cat >>conftest.$ac_ext <<_ACEOF
 
9390
/* end confdefs.h.  */
 
9391
#include <krb5.h>
 
9392
 
 
9393
int
 
9394
main ()
 
9395
{
 
9396
if ((krb5_realm *) 0)
 
9397
  return 0;
 
9398
if (sizeof (krb5_realm))
 
9399
  return 0;
 
9400
  ;
 
9401
  return 0;
 
9402
}
 
9403
_ACEOF
 
9404
rm -f conftest.$ac_objext
 
9405
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9406
  (eval $ac_compile) 2>conftest.er1
 
9407
  ac_status=$?
 
9408
  grep -v '^ *+' conftest.er1 >conftest.err
 
9409
  rm -f conftest.er1
 
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
 
9415
  (eval $ac_try) 2>&5
 
9416
  ac_status=$?
 
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
 
9421
  (eval $ac_try) 2>&5
 
9422
  ac_status=$?
 
9423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9424
  (exit $ac_status); }; }; then
 
9425
  ac_cv_type_krb5_realm=yes
 
9426
else
 
9427
  echo "$as_me: failed program was:" >&5
 
9428
sed 's/^/| /' conftest.$ac_ext >&5
 
9429
 
 
9430
ac_cv_type_krb5_realm=no
 
9431
fi
 
9432
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9433
fi
 
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
 
9437
 
 
9438
cat >>confdefs.h <<_ACEOF
 
9439
#define HAVE_KRB5_REALM 1
 
9440
_ACEOF
 
9441
 
 
9442
 
 
9443
fi
 
9444
   ;;
 
9445
krb4)
 
9446
for ac_header in kerberosIV/krb.h
 
9447
do
 
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
 
9454
fi
 
9455
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9456
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9457
else
 
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
 
9462
/* confdefs.h.  */
 
9463
_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>
 
9469
_ACEOF
 
9470
rm -f conftest.$ac_objext
 
9471
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9472
  (eval $ac_compile) 2>conftest.er1
 
9473
  ac_status=$?
 
9474
  grep -v '^ *+' conftest.er1 >conftest.err
 
9475
  rm -f conftest.er1
 
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
 
9481
  (eval $ac_try) 2>&5
 
9482
  ac_status=$?
 
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
 
9487
  (eval $ac_try) 2>&5
 
9488
  ac_status=$?
 
9489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9490
  (exit $ac_status); }; }; then
 
9491
  ac_header_compiler=yes
 
9492
else
 
9493
  echo "$as_me: failed program was:" >&5
 
9494
sed 's/^/| /' conftest.$ac_ext >&5
 
9495
 
 
9496
ac_header_compiler=no
 
9497
fi
 
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
 
9501
 
 
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
 
9506
/* confdefs.h.  */
 
9507
_ACEOF
 
9508
cat confdefs.h >>conftest.$ac_ext
 
9509
cat >>conftest.$ac_ext <<_ACEOF
 
9510
/* end confdefs.h.  */
 
9511
#include <$ac_header>
 
9512
_ACEOF
 
9513
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9514
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9515
  ac_status=$?
 
9516
  grep -v '^ *+' conftest.er1 >conftest.err
 
9517
  rm -f conftest.er1
 
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
 
9524
  else
 
9525
    ac_cpp_err=
 
9526
  fi
 
9527
else
 
9528
  ac_cpp_err=yes
 
9529
fi
 
9530
if test -z "$ac_cpp_err"; then
 
9531
  ac_header_preproc=yes
 
9532
else
 
9533
  echo "$as_me: failed program was:" >&5
 
9534
sed 's/^/| /' conftest.$ac_ext >&5
 
9535
 
 
9536
  ac_header_preproc=no
 
9537
fi
 
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
 
9541
 
 
9542
# So?  What about this header?
 
9543
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9544
  yes:no: )
 
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
 
9550
    ;;
 
9551
  no: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;}
 
9564
    (
 
9565
      cat <<\_ASBOX
 
9566
## ------------------------------- ##
 
9567
## Report this to rra@stanford.edu ##
 
9568
## ------------------------------- ##
 
9569
_ASBOX
 
9570
    ) |
 
9571
      sed "s/^/$as_me: WARNING:     /" >&2
 
9572
    ;;
 
9573
esac
 
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
 
9578
else
 
9579
  eval "$as_ac_Header=\$ac_header_preproc"
 
9580
fi
 
9581
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9582
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9583
 
 
9584
fi
 
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
 
9588
_ACEOF
 
9589
 
 
9590
fi
 
9591
 
 
9592
done
 
9593
   ;;
 
9594
esac
 
9595
 
 
9596
for ac_func in krb_life_to_time
 
9597
do
 
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
 
9603
else
 
9604
  cat >conftest.$ac_ext <<_ACEOF
 
9605
/* confdefs.h.  */
 
9606
_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
 
9613
 
 
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.  */
 
9618
 
 
9619
#ifdef __STDC__
 
9620
# include <limits.h>
 
9621
#else
 
9622
# include <assert.h>
 
9623
#endif
 
9624
 
 
9625
#undef $ac_func
 
9626
 
 
9627
/* Override any gcc2 internal prototype to avoid an error.  */
 
9628
#ifdef __cplusplus
 
9629
extern "C"
 
9630
{
 
9631
#endif
 
9632
/* We use char because int might match the return type of a gcc2
 
9633
   builtin and then its argument prototype would still apply.  */
 
9634
char $ac_func ();
 
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)
 
9639
choke me
 
9640
#else
 
9641
char (*f) () = $ac_func;
 
9642
#endif
 
9643
#ifdef __cplusplus
 
9644
}
 
9645
#endif
 
9646
 
 
9647
int
 
9648
main ()
 
9649
{
 
9650
return f != $ac_func;
 
9651
  ;
 
9652
  return 0;
 
9653
}
 
9654
_ACEOF
 
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
 
9658
  ac_status=$?
 
9659
  grep -v '^ *+' conftest.er1 >conftest.err
 
9660
  rm -f conftest.er1
 
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
 
9666
  (eval $ac_try) 2>&5
 
9667
  ac_status=$?
 
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
 
9672
  (eval $ac_try) 2>&5
 
9673
  ac_status=$?
 
9674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9675
  (exit $ac_status); }; }; then
 
9676
  eval "$as_ac_var=yes"
 
9677
else
 
9678
  echo "$as_me: failed program was:" >&5
 
9679
sed 's/^/| /' conftest.$ac_ext >&5
 
9680
 
 
9681
eval "$as_ac_var=no"
 
9682
fi
 
9683
rm -f conftest.err conftest.$ac_objext \
 
9684
      conftest$ac_exeext conftest.$ac_ext
 
9685
fi
 
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
 
9691
_ACEOF
 
9692
 
 
9693
else
 
9694
  case $LIBOBJS in
 
9695
    "lifetime.$ac_objext"   | \
 
9696
  *" lifetime.$ac_objext"   | \
 
9697
    "lifetime.$ac_objext "* | \
 
9698
  *" lifetime.$ac_objext "* ) ;;
 
9699
  *) LIBOBJS="$LIBOBJS lifetime.$ac_objext" ;;
 
9700
esac
 
9701
 
 
9702
fi
 
9703
done
 
9704
 
 
9705
    KRBLIBS=$LIBS
 
9706
    LIBS=$save_LIBS
 
9707
fi
 
9708
 
 
9709
 
 
9710
 
 
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"
 
9717
        fi
 
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
 
9722
else
 
9723
  ac_check_lib_save_LIBS=$LIBS
 
9724
LIBS="-lafsauthent -lafsrpc $LIBS"
 
9725
cat >conftest.$ac_ext <<_ACEOF
 
9726
/* confdefs.h.  */
 
9727
_ACEOF
 
9728
cat confdefs.h >>conftest.$ac_ext
 
9729
cat >>conftest.$ac_ext <<_ACEOF
 
9730
/* end confdefs.h.  */
 
9731
 
 
9732
/* Override any gcc2 internal prototype to avoid an error.  */
 
9733
#ifdef __cplusplus
 
9734
extern "C"
 
9735
#endif
 
9736
/* We use char because int might match the return type of a gcc2
 
9737
   builtin and then its argument prototype would still apply.  */
 
9738
char lsetpag ();
 
9739
int
 
9740
main ()
 
9741
{
 
9742
lsetpag ();
 
9743
  ;
 
9744
  return 0;
 
9745
}
 
9746
_ACEOF
 
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
 
9750
  ac_status=$?
 
9751
  grep -v '^ *+' conftest.er1 >conftest.err
 
9752
  rm -f conftest.er1
 
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
 
9758
  (eval $ac_try) 2>&5
 
9759
  ac_status=$?
 
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
 
9764
  (eval $ac_try) 2>&5
 
9765
  ac_status=$?
 
9766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9767
  (exit $ac_status); }; }; then
 
9768
  ac_cv_lib_afsauthent_lsetpag=yes
 
9769
else
 
9770
  echo "$as_me: failed program was:" >&5
 
9771
sed 's/^/| /' conftest.$ac_ext >&5
 
9772
 
 
9773
ac_cv_lib_afsauthent_lsetpag=no
 
9774
fi
 
9775
rm -f conftest.err conftest.$ac_objext \
 
9776
      conftest$ac_exeext conftest.$ac_ext
 
9777
LIBS=$ac_check_lib_save_LIBS
 
9778
fi
 
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"
 
9783
 
 
9784
cat >>confdefs.h <<\_ACEOF
 
9785
#define HAVE_LSETPAG 1
 
9786
_ACEOF
 
9787
 
 
9788
else
 
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
 
9793
else
 
9794
  ac_check_lib_save_LIBS=$LIBS
 
9795
LIBS="-lkafs  $LIBS"
 
9796
cat >conftest.$ac_ext <<_ACEOF
 
9797
/* confdefs.h.  */
 
9798
_ACEOF
 
9799
cat confdefs.h >>conftest.$ac_ext
 
9800
cat >>conftest.$ac_ext <<_ACEOF
 
9801
/* end confdefs.h.  */
 
9802
 
 
9803
/* Override any gcc2 internal prototype to avoid an error.  */
 
9804
#ifdef __cplusplus
 
9805
extern "C"
 
9806
#endif
 
9807
/* We use char because int might match the return type of a gcc2
 
9808
   builtin and then its argument prototype would still apply.  */
 
9809
char k_setpag ();
 
9810
int
 
9811
main ()
 
9812
{
 
9813
k_setpag ();
 
9814
  ;
 
9815
  return 0;
 
9816
}
 
9817
_ACEOF
 
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
 
9821
  ac_status=$?
 
9822
  grep -v '^ *+' conftest.er1 >conftest.err
 
9823
  rm -f conftest.er1
 
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
 
9829
  (eval $ac_try) 2>&5
 
9830
  ac_status=$?
 
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
 
9835
  (eval $ac_try) 2>&5
 
9836
  ac_status=$?
 
9837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9838
  (exit $ac_status); }; }; then
 
9839
  ac_cv_lib_kafs_k_setpag=yes
 
9840
else
 
9841
  echo "$as_me: failed program was:" >&5
 
9842
sed 's/^/| /' conftest.$ac_ext >&5
 
9843
 
 
9844
ac_cv_lib_kafs_k_setpag=no
 
9845
fi
 
9846
rm -f conftest.err conftest.$ac_objext \
 
9847
      conftest$ac_exeext conftest.$ac_ext
 
9848
LIBS=$ac_check_lib_save_LIBS
 
9849
fi
 
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
 
9853
  AFSLIBS="-lkafs"
 
9854
 
 
9855
for ac_header in kafs.h
 
9856
do
 
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
 
9863
fi
 
9864
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9865
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9866
else
 
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
 
9871
/* confdefs.h.  */
 
9872
_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>
 
9878
_ACEOF
 
9879
rm -f conftest.$ac_objext
 
9880
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9881
  (eval $ac_compile) 2>conftest.er1
 
9882
  ac_status=$?
 
9883
  grep -v '^ *+' conftest.er1 >conftest.err
 
9884
  rm -f conftest.er1
 
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
 
9890
  (eval $ac_try) 2>&5
 
9891
  ac_status=$?
 
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
 
9896
  (eval $ac_try) 2>&5
 
9897
  ac_status=$?
 
9898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9899
  (exit $ac_status); }; }; then
 
9900
  ac_header_compiler=yes
 
9901
else
 
9902
  echo "$as_me: failed program was:" >&5
 
9903
sed 's/^/| /' conftest.$ac_ext >&5
 
9904
 
 
9905
ac_header_compiler=no
 
9906
fi
 
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
 
9910
 
 
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
 
9915
/* confdefs.h.  */
 
9916
_ACEOF
 
9917
cat confdefs.h >>conftest.$ac_ext
 
9918
cat >>conftest.$ac_ext <<_ACEOF
 
9919
/* end confdefs.h.  */
 
9920
#include <$ac_header>
 
9921
_ACEOF
 
9922
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9923
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9924
  ac_status=$?
 
9925
  grep -v '^ *+' conftest.er1 >conftest.err
 
9926
  rm -f conftest.er1
 
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
 
9933
  else
 
9934
    ac_cpp_err=
 
9935
  fi
 
9936
else
 
9937
  ac_cpp_err=yes
 
9938
fi
 
9939
if test -z "$ac_cpp_err"; then
 
9940
  ac_header_preproc=yes
 
9941
else
 
9942
  echo "$as_me: failed program was:" >&5
 
9943
sed 's/^/| /' conftest.$ac_ext >&5
 
9944
 
 
9945
  ac_header_preproc=no
 
9946
fi
 
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
 
9950
 
 
9951
# So?  What about this header?
 
9952
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9953
  yes:no: )
 
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
 
9959
    ;;
 
9960
  no: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;}
 
9973
    (
 
9974
      cat <<\_ASBOX
 
9975
## ------------------------------- ##
 
9976
## Report this to rra@stanford.edu ##
 
9977
## ------------------------------- ##
 
9978
_ASBOX
 
9979
    ) |
 
9980
      sed "s/^/$as_me: WARNING:     /" >&2
 
9981
    ;;
 
9982
esac
 
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
 
9987
else
 
9988
  eval "$as_ac_Header=\$ac_header_preproc"
 
9989
fi
 
9990
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9991
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9992
 
 
9993
fi
 
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
 
9997
_ACEOF
 
9998
 
 
9999
fi
 
10000
 
 
10001
done
 
10002
 
 
10003
 
 
10004
cat >>confdefs.h <<\_ACEOF
 
10005
#define HAVE_K_SETPAG 1
 
10006
_ACEOF
 
10007
 
 
10008
else
 
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; }; }
 
10012
fi
 
10013
 
 
10014
fi
 
10015
 
 
10016
 
 
10017
     fi
 
10018
fi;
 
10019
 
 
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
 
10024
else
 
10025
  cat >conftest.$ac_ext <<_ACEOF
 
10026
/* confdefs.h.  */
 
10027
_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>
 
10033
#include <time.h>
 
10034
 
 
10035
int
 
10036
main ()
 
10037
{
 
10038
if ((struct tm *) 0)
 
10039
return 0;
 
10040
  ;
 
10041
  return 0;
 
10042
}
 
10043
_ACEOF
 
10044
rm -f conftest.$ac_objext
 
10045
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10046
  (eval $ac_compile) 2>conftest.er1
 
10047
  ac_status=$?
 
10048
  grep -v '^ *+' conftest.er1 >conftest.err
 
10049
  rm -f conftest.er1
 
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
 
10056
  ac_status=$?
 
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
 
10062
  ac_status=$?
 
10063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10064
  (exit $ac_status); }; }; then
 
10065
  ac_cv_header_time=yes
 
10066
else
 
10067
  echo "$as_me: failed program was:" >&5
 
10068
sed 's/^/| /' conftest.$ac_ext >&5
 
10069
 
 
10070
ac_cv_header_time=no
 
10071
fi
 
10072
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10073
fi
 
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
 
10077
 
 
10078
cat >>confdefs.h <<\_ACEOF
 
10079
#define TIME_WITH_SYS_TIME 1
 
10080
_ACEOF
 
10081
 
 
10082
fi
 
10083
 
 
10084
 
 
10085
for ac_header in sys/time.h
3824
10086
do
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
4033
10295
 
4034
10296
fi
4035
10297
 
4036
 
echo "$as_me:$LINENO: checking for krb5_realm" >&5
4037
 
echo $ECHO_N "checking for krb5_realm... $ECHO_C" >&6
4038
 
if test "${ac_cv_type_krb5_realm+set}" = set; then
4039
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4040
 
else
4041
 
  cat >conftest.$ac_ext <<_ACEOF
4042
 
/* confdefs.h.  */
4043
 
_ACEOF
4044
 
cat confdefs.h >>conftest.$ac_ext
4045
 
cat >>conftest.$ac_ext <<_ACEOF
4046
 
/* end confdefs.h.  */
4047
 
#include <krb5.h>
4048
 
 
4049
 
int
4050
 
main ()
4051
 
{
4052
 
if ((krb5_realm *) 0)
4053
 
  return 0;
4054
 
if (sizeof (krb5_realm))
4055
 
  return 0;
4056
 
  ;
4057
 
  return 0;
4058
 
}
4059
 
_ACEOF
4060
 
rm -f conftest.$ac_objext
4061
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4062
 
  (eval $ac_compile) 2>conftest.er1
4063
 
  ac_status=$?
4064
 
  grep -v '^ *+' conftest.er1 >conftest.err
4065
 
  rm -f conftest.er1
4066
 
  cat conftest.err >&5
4067
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068
 
  (exit $ac_status); } &&
4069
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4070
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071
 
  (eval $ac_try) 2>&5
4072
 
  ac_status=$?
4073
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074
 
  (exit $ac_status); }; } &&
4075
 
         { ac_try='test -s conftest.$ac_objext'
4076
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077
 
  (eval $ac_try) 2>&5
4078
 
  ac_status=$?
4079
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080
 
  (exit $ac_status); }; }; then
4081
 
  ac_cv_type_krb5_realm=yes
4082
 
else
4083
 
  echo "$as_me: failed program was:" >&5
4084
 
sed 's/^/| /' conftest.$ac_ext >&5
4085
 
 
4086
 
ac_cv_type_krb5_realm=no
4087
 
fi
4088
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4089
 
fi
4090
 
echo "$as_me:$LINENO: result: $ac_cv_type_krb5_realm" >&5
4091
 
echo "${ECHO_T}$ac_cv_type_krb5_realm" >&6
4092
 
if test $ac_cv_type_krb5_realm = yes; then
4093
 
 
4094
 
cat >>confdefs.h <<_ACEOF
4095
 
#define HAVE_KRB5_REALM 1
4096
 
_ACEOF
4097
 
 
4098
 
 
4099
 
fi
4100
 
 
4101
10298
 
4102
10299
 
4103
10300
for ac_func in setsid
4313
10510
 
4314
10511
 
4315
10512
 
4316
 
save_LIBS=$LIBS
4317
 
LIBS="$KRB5LIBS $LIBS"
4318
 
 
4319
 
for ac_func in initialize_krb5_error_table
4320
 
do
4321
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4322
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
4323
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4324
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
4325
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4326
 
else
4327
 
  cat >conftest.$ac_ext <<_ACEOF
4328
 
/* confdefs.h.  */
4329
 
_ACEOF
4330
 
cat confdefs.h >>conftest.$ac_ext
4331
 
cat >>conftest.$ac_ext <<_ACEOF
4332
 
/* end confdefs.h.  */
4333
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4334
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4335
 
#define $ac_func innocuous_$ac_func
4336
 
 
4337
 
/* System header to define __stub macros and hopefully few prototypes,
4338
 
    which can conflict with char $ac_func (); below.
4339
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4340
 
    <limits.h> exists even on freestanding compilers.  */
4341
 
 
4342
 
#ifdef __STDC__
4343
 
# include <limits.h>
4344
 
#else
4345
 
# include <assert.h>
4346
 
#endif
4347
 
 
4348
 
#undef $ac_func
4349
 
 
4350
 
/* Override any gcc2 internal prototype to avoid an error.  */
4351
 
#ifdef __cplusplus
4352
 
extern "C"
4353
 
{
4354
 
#endif
4355
 
/* We use char because int might match the return type of a gcc2
4356
 
   builtin and then its argument prototype would still apply.  */
4357
 
char $ac_func ();
4358
 
/* The GNU C library defines this for functions which it implements
4359
 
    to always fail with ENOSYS.  Some functions are actually named
4360
 
    something starting with __ and the normal name is an alias.  */
4361
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4362
 
choke me
4363
 
#else
4364
 
char (*f) () = $ac_func;
4365
 
#endif
4366
 
#ifdef __cplusplus
4367
 
}
4368
 
#endif
4369
 
 
4370
 
int
4371
 
main ()
4372
 
{
4373
 
return f != $ac_func;
4374
 
  ;
4375
 
  return 0;
4376
 
}
4377
 
_ACEOF
4378
 
rm -f conftest.$ac_objext conftest$ac_exeext
4379
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4380
 
  (eval $ac_link) 2>conftest.er1
4381
 
  ac_status=$?
4382
 
  grep -v '^ *+' conftest.er1 >conftest.err
4383
 
  rm -f conftest.er1
4384
 
  cat conftest.err >&5
4385
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386
 
  (exit $ac_status); } &&
4387
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4388
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389
 
  (eval $ac_try) 2>&5
4390
 
  ac_status=$?
4391
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392
 
  (exit $ac_status); }; } &&
4393
 
         { ac_try='test -s conftest$ac_exeext'
4394
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395
 
  (eval $ac_try) 2>&5
4396
 
  ac_status=$?
4397
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398
 
  (exit $ac_status); }; }; then
4399
 
  eval "$as_ac_var=yes"
4400
 
else
4401
 
  echo "$as_me: failed program was:" >&5
4402
 
sed 's/^/| /' conftest.$ac_ext >&5
4403
 
 
4404
 
eval "$as_ac_var=no"
4405
 
fi
4406
 
rm -f conftest.err conftest.$ac_objext \
4407
 
      conftest$ac_exeext conftest.$ac_ext
4408
 
fi
4409
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4410
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4411
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
4412
 
  cat >>confdefs.h <<_ACEOF
4413
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4414
 
_ACEOF
4415
 
 
4416
 
fi
4417
 
done
4418
 
 
4419
 
 
4420
 
for ac_func in krb5_free_keytab_entry_contents
4421
 
do
4422
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4423
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
4424
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4425
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
4426
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4427
 
else
4428
 
  cat >conftest.$ac_ext <<_ACEOF
4429
 
/* confdefs.h.  */
4430
 
_ACEOF
4431
 
cat confdefs.h >>conftest.$ac_ext
4432
 
cat >>conftest.$ac_ext <<_ACEOF
4433
 
/* end confdefs.h.  */
4434
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4435
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4436
 
#define $ac_func innocuous_$ac_func
4437
 
 
4438
 
/* System header to define __stub macros and hopefully few prototypes,
4439
 
    which can conflict with char $ac_func (); below.
4440
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4441
 
    <limits.h> exists even on freestanding compilers.  */
4442
 
 
4443
 
#ifdef __STDC__
4444
 
# include <limits.h>
4445
 
#else
4446
 
# include <assert.h>
4447
 
#endif
4448
 
 
4449
 
#undef $ac_func
4450
 
 
4451
 
/* Override any gcc2 internal prototype to avoid an error.  */
4452
 
#ifdef __cplusplus
4453
 
extern "C"
4454
 
{
4455
 
#endif
4456
 
/* We use char because int might match the return type of a gcc2
4457
 
   builtin and then its argument prototype would still apply.  */
4458
 
char $ac_func ();
4459
 
/* The GNU C library defines this for functions which it implements
4460
 
    to always fail with ENOSYS.  Some functions are actually named
4461
 
    something starting with __ and the normal name is an alias.  */
4462
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4463
 
choke me
4464
 
#else
4465
 
char (*f) () = $ac_func;
4466
 
#endif
4467
 
#ifdef __cplusplus
4468
 
}
4469
 
#endif
4470
 
 
4471
 
int
4472
 
main ()
4473
 
{
4474
 
return f != $ac_func;
4475
 
  ;
4476
 
  return 0;
4477
 
}
4478
 
_ACEOF
4479
 
rm -f conftest.$ac_objext conftest$ac_exeext
4480
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4481
 
  (eval $ac_link) 2>conftest.er1
4482
 
  ac_status=$?
4483
 
  grep -v '^ *+' conftest.er1 >conftest.err
4484
 
  rm -f conftest.er1
4485
 
  cat conftest.err >&5
4486
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487
 
  (exit $ac_status); } &&
4488
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4489
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490
 
  (eval $ac_try) 2>&5
4491
 
  ac_status=$?
4492
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493
 
  (exit $ac_status); }; } &&
4494
 
         { ac_try='test -s conftest$ac_exeext'
4495
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4496
 
  (eval $ac_try) 2>&5
4497
 
  ac_status=$?
4498
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499
 
  (exit $ac_status); }; }; then
4500
 
  eval "$as_ac_var=yes"
4501
 
else
4502
 
  echo "$as_me: failed program was:" >&5
4503
 
sed 's/^/| /' conftest.$ac_ext >&5
4504
 
 
4505
 
eval "$as_ac_var=no"
4506
 
fi
4507
 
rm -f conftest.err conftest.$ac_objext \
4508
 
      conftest$ac_exeext conftest.$ac_ext
4509
 
fi
4510
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4511
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4512
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
4513
 
  cat >>confdefs.h <<_ACEOF
4514
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4515
 
_ACEOF
4516
 
 
4517
 
fi
4518
 
done
4519
 
 
4520
 
 
4521
 
for ac_func in krb5_get_init_creds_opt_set_default_flags
4522
 
do
4523
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4524
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
4525
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4526
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
4527
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4528
 
else
4529
 
  cat >conftest.$ac_ext <<_ACEOF
4530
 
/* confdefs.h.  */
4531
 
_ACEOF
4532
 
cat confdefs.h >>conftest.$ac_ext
4533
 
cat >>conftest.$ac_ext <<_ACEOF
4534
 
/* end confdefs.h.  */
4535
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4536
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4537
 
#define $ac_func innocuous_$ac_func
4538
 
 
4539
 
/* System header to define __stub macros and hopefully few prototypes,
4540
 
    which can conflict with char $ac_func (); below.
4541
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4542
 
    <limits.h> exists even on freestanding compilers.  */
4543
 
 
4544
 
#ifdef __STDC__
4545
 
# include <limits.h>
4546
 
#else
4547
 
# include <assert.h>
4548
 
#endif
4549
 
 
4550
 
#undef $ac_func
4551
 
 
4552
 
/* Override any gcc2 internal prototype to avoid an error.  */
4553
 
#ifdef __cplusplus
4554
 
extern "C"
4555
 
{
4556
 
#endif
4557
 
/* We use char because int might match the return type of a gcc2
4558
 
   builtin and then its argument prototype would still apply.  */
4559
 
char $ac_func ();
4560
 
/* The GNU C library defines this for functions which it implements
4561
 
    to always fail with ENOSYS.  Some functions are actually named
4562
 
    something starting with __ and the normal name is an alias.  */
4563
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4564
 
choke me
4565
 
#else
4566
 
char (*f) () = $ac_func;
4567
 
#endif
4568
 
#ifdef __cplusplus
4569
 
}
4570
 
#endif
4571
 
 
4572
 
int
4573
 
main ()
4574
 
{
4575
 
return f != $ac_func;
4576
 
  ;
4577
 
  return 0;
4578
 
}
4579
 
_ACEOF
4580
 
rm -f conftest.$ac_objext conftest$ac_exeext
4581
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4582
 
  (eval $ac_link) 2>conftest.er1
4583
 
  ac_status=$?
4584
 
  grep -v '^ *+' conftest.er1 >conftest.err
4585
 
  rm -f conftest.er1
4586
 
  cat conftest.err >&5
4587
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588
 
  (exit $ac_status); } &&
4589
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4590
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591
 
  (eval $ac_try) 2>&5
4592
 
  ac_status=$?
4593
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594
 
  (exit $ac_status); }; } &&
4595
 
         { ac_try='test -s conftest$ac_exeext'
4596
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597
 
  (eval $ac_try) 2>&5
4598
 
  ac_status=$?
4599
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600
 
  (exit $ac_status); }; }; then
4601
 
  eval "$as_ac_var=yes"
4602
 
else
4603
 
  echo "$as_me: failed program was:" >&5
4604
 
sed 's/^/| /' conftest.$ac_ext >&5
4605
 
 
4606
 
eval "$as_ac_var=no"
4607
 
fi
4608
 
rm -f conftest.err conftest.$ac_objext \
4609
 
      conftest$ac_exeext conftest.$ac_ext
4610
 
fi
4611
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4612
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4613
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
4614
 
  cat >>confdefs.h <<_ACEOF
4615
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4616
 
_ACEOF
4617
 
 
4618
 
fi
4619
 
done
4620
 
 
4621
 
LIBS=$save_LIBS
4622
 
 
4623
10513
          ac_config_headers="$ac_config_headers config.h"
4624
10514
 
4625
10515
          ac_config_files="$ac_config_files Makefile"
4986
10876
} >&5
4987
10877
cat >&5 <<_CSEOF
4988
10878
 
4989
 
This file was extended by kstart $as_me 2.8, which was
 
10879
This file was extended by kstart $as_me 2.9, which was
4990
10880
generated by GNU Autoconf 2.59.  Invocation command line was
4991
10881
 
4992
10882
  CONFIG_FILES    = $CONFIG_FILES
5046
10936
 
5047
10937
cat >>$CONFIG_STATUS <<_ACEOF
5048
10938
ac_cs_version="\\
5049
 
kstart config.status 2.8
 
10939
kstart config.status 2.9
5050
10940
configured by $0, generated by GNU Autoconf 2.59,
5051
10941
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5052
10942
 
5246
11136
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5247
11137
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5248
11138
s,@PATH_AKLOG@,$PATH_AKLOG,;t t
5249
 
s,@KRBLIBS@,$KRBLIBS,;t t
5250
 
s,@KRB5LIBS@,$KRB5LIBS,;t t
5251
11139
s,@K4START@,$K4START,;t t
5252
11140
s,@K4START_MAN@,$K4START_MAN,;t t
5253
 
s,@LIBOBJS@,$LIBOBJS,;t t
 
11141
s,@KRB5_CONFIG@,$KRB5_CONFIG,;t t
5254
11142
s,@CPP@,$CPP,;t t
5255
11143
s,@EGREP@,$EGREP,;t t
 
11144
s,@KRB5LIBS@,$KRB5LIBS,;t t
 
11145
s,@LIBOBJS@,$LIBOBJS,;t t
 
11146
s,@KRBLIBS@,$KRBLIBS,;t t
 
11147
s,@AFSLIBS@,$AFSLIBS,;t t
5256
11148
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5257
11149
CEOF
5258
11150