~ubuntu-branches/ubuntu/warty/krb5/warty

« back to all changes in this revision

Viewing changes to src/appl/bsd/configure

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2004-08-31 13:04:51 UTC
  • Revision ID: james.westby@ubuntu.com-20040831130451-eivm4c364ynih3rj
Tags: 1.3.4-3
* Initial Czech translations thanks to  Miroslav Kure, Closes: #264366
* Updated French debconf translation, thanks Martin Quinson, Closes: #264941
* KDC and clients double-free on error conditions (CAN-2004-0642  VU#795632)
*krb5_rd_cred() double-frees on error conditions(CAN-2004-0643 , CERT
  VU#866472 ) 
* ASN.1 decoder in MIT Kerberos 5 releases krb5-1.3.4 and
  earlier allows unauthenticated remote attackers to induce
  infinite loop, causing denial of service, including in KDC
  code  (CAN-2004-0644 , CERT VU#550464)
* Fix double free in krb524d  handling of encrypted ticket contents
  (CAN-2004-0772)  

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.53.
 
3
# Generated by GNU Autoconf 2.59.
4
4
#
5
5
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
6
6
# Massachusetts Institute of Technology.
7
7
#
8
8
#
9
 
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
10
 
# Free Software Foundation, Inc.
 
9
# Copyright (C) 2003 Free Software Foundation, Inc.
11
10
# This configure script is free software; the Free Software Foundation
12
11
# gives unlimited permission to copy, distribute and modify it.
13
 
 
14
 
if expr a : '\(a\)' >/dev/null 2>&1; then
15
 
  as_expr=expr
16
 
else
17
 
  as_expr=false
18
 
fi
19
 
 
20
 
 
21
12
## --------------------- ##
22
13
## M4sh Initialization.  ##
23
14
## --------------------- ##
26
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27
18
  emulate sh
28
19
  NULLCMD=:
 
20
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
21
  # is contrary to our usage.  Disable this feature.
 
22
  alias -g '${1+"$@"}'='"$@"'
29
23
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30
24
  set -o posix
31
25
fi
 
26
DUALCASE=1; export DUALCASE # for MKS sh
32
27
 
33
 
# NLS nuisances.
34
28
# Support unset when possible.
35
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
29
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36
30
  as_unset=unset
37
31
else
38
32
  as_unset=false
39
33
fi
40
34
 
41
 
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
42
 
    { $as_unset LANG || test "${LANG+set}" != set; } ||
43
 
      { LANG=C; export LANG; }
44
 
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
45
 
    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
46
 
      { LC_ALL=C; export LC_ALL; }
47
 
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
48
 
    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
49
 
      { LC_TIME=C; export LC_TIME; }
50
 
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
51
 
    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
52
 
      { LC_CTYPE=C; export LC_CTYPE; }
53
 
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
54
 
    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
55
 
      { LANGUAGE=C; export LANGUAGE; }
56
 
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
57
 
    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
58
 
      { LC_COLLATE=C; export LC_COLLATE; }
59
 
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
60
 
    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
61
 
      { LC_NUMERIC=C; export LC_NUMERIC; }
62
 
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
63
 
    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
64
 
      { LC_MESSAGES=C; export LC_MESSAGES; }
 
35
 
 
36
# Work around bugs in pre-3.0 UWIN ksh.
 
37
$as_unset ENV MAIL MAILPATH
 
38
PS1='$ '
 
39
PS2='> '
 
40
PS4='+ '
 
41
 
 
42
# NLS nuisances.
 
43
for as_var in \
 
44
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
45
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
46
  LC_TELEPHONE LC_TIME
 
47
do
 
48
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
49
    eval $as_var=C; export $as_var
 
50
  else
 
51
    $as_unset $as_var
 
52
  fi
 
53
done
 
54
 
 
55
# Required to use basename.
 
56
if expr a : '\(a\)' >/dev/null 2>&1; then
 
57
  as_expr=expr
 
58
else
 
59
  as_expr=false
 
60
fi
 
61
 
 
62
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
63
  as_basename=basename
 
64
else
 
65
  as_basename=false
 
66
fi
65
67
 
66
68
 
67
69
# Name of the executable.
68
 
as_me=`(basename "$0") 2>/dev/null ||
 
70
as_me=`$as_basename "$0" ||
69
71
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
72
         X"$0" : 'X\(//\)$' \| \
71
73
         X"$0" : 'X\(/\)$' \| \
76
78
          /^X\/\(\/\).*/{ s//\1/; q; }
77
79
          s/.*/./; q'`
78
80
 
 
81
 
79
82
# PATH needs CR, and LINENO needs CR and PATH.
80
83
# Avoid depending upon Character Ranges.
81
84
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
86
89
 
87
90
# The user is always right.
88
91
if test "${PATH_SEPARATOR+set}" != set; then
89
 
  echo "#! /bin/sh" >conftest.sh
90
 
  echo  "exit 0"   >>conftest.sh
91
 
  chmod +x conftest.sh
92
 
  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
 
92
  echo "#! /bin/sh" >conf$$.sh
 
93
  echo  "exit 0"   >>conf$$.sh
 
94
  chmod +x conf$$.sh
 
95
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93
96
    PATH_SEPARATOR=';'
94
97
  else
95
98
    PATH_SEPARATOR=:
96
99
  fi
97
 
  rm -f conftest.sh
 
100
  rm -f conf$$.sh
98
101
fi
99
102
 
100
103
 
142
145
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143
146
  test "x$as_lineno_1" != "x$as_lineno_2" &&
144
147
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
148
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
149
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
145
150
             CONFIG_SHELL=$as_dir/$as_base
146
151
             export CONFIG_SHELL
147
152
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
214
219
fi
215
220
rm -f conf$$ conf$$.exe conf$$.file
216
221
 
 
222
if mkdir -p . 2>/dev/null; then
 
223
  as_mkdir_p=:
 
224
else
 
225
  test -d ./-p && rmdir ./-p
 
226
  as_mkdir_p=false
 
227
fi
 
228
 
217
229
as_executable_p="test -f"
218
230
 
219
231
# Sed expression to map a string onto a valid CPP name.
220
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
232
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
221
233
 
222
234
# Sed expression to map a string onto a valid variable name.
223
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
235
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
224
236
 
225
237
 
226
238
# IFS
230
242
IFS="   $as_nl"
231
243
 
232
244
# CDPATH.
233
 
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
 
245
$as_unset CDPATH
234
246
 
235
247
 
236
248
# Name of the host.
244
256
# Initializations.
245
257
#
246
258
ac_default_prefix=/usr/local
 
259
ac_config_libobj_dir=.
247
260
cross_compiling=no
248
261
subdirs=
249
262
MFLAGS=
300
313
# include <unistd.h>
301
314
#endif"
302
315
 
 
316
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 HAVE_GCC CPP LD KRB4_INCLUDES KRB4_LIBPATH KRB4_LIB KRB4_DEPLIB KRB_ERR_H_DEP DES425_DEPLIB DES425_LIB compile_et COM_ERR_VERSION SS_LIB SS_VERSION DB_HEADER DB_LIB DB_VERSION DB_HEADER_VERSION KDB5_DB_LIB RESOLV_LIB HESIOD_DEFS HESIOD_LIBS AUTOCONF AUTOCONFFLAGS AUTOCONFINCFLAGS AUTOHEADER AUTOHEADERFLAGS CONFIG_RELTOPDIR subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA KRSHDLIBS LOGINLIBS V4RCP V4RCPO EGREP LIBOBJS UCB_RLOGIN UCB_RSH UCB_RCP SETENVSRC SETENVOBJ build build_cpu build_vendor build_os host host_cpu host_vendor host_os krb5_cv_host GEN_LIB CC_LINK RPATH_FLAG DEPLIBEXT LTLIBOBJS'
 
317
ac_subst_files='lib_frag libobj_frag'
303
318
 
304
319
# Initialize some variables set by options.
305
320
ac_init_help=
657
672
 
658
673
# Be sure to have absolute paths.
659
674
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
660
 
              localstatedir libdir includedir oldincludedir infodir mandir
 
675
              localstatedir libdir includedir oldincludedir infodir mandir
661
676
do
662
677
  eval ac_val=$`echo $ac_var`
663
678
  case $ac_val in
697
712
  # Try the directory containing this script, then its parent.
698
713
  ac_confdir=`(dirname "$0") 2>/dev/null ||
699
714
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
700
 
         X"$0" : 'X\(//\)[^/]' \| \
701
 
         X"$0" : 'X\(//\)$' \| \
702
 
         X"$0" : 'X\(/\)' \| \
703
 
         .     : '\(.\)' 2>/dev/null ||
 
715
         X"$0" : 'X\(//\)[^/]' \| \
 
716
         X"$0" : 'X\(//\)$' \| \
 
717
         X"$0" : 'X\(/\)' \| \
 
718
         .     : '\(.\)' 2>/dev/null ||
704
719
echo X"$0" |
705
720
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
706
721
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723
738
   { (exit 1); exit 1; }; }
724
739
  fi
725
740
fi
 
741
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
742
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
743
   { (exit 1); exit 1; }; }
726
744
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
727
745
ac_env_build_alias_set=${build_alias+set}
728
746
ac_env_build_alias_value=$build_alias
805
823
  cat <<_ACEOF
806
824
Installation directories:
807
825
  --prefix=PREFIX         install architecture-independent files in PREFIX
808
 
                          [$ac_default_prefix]
 
826
                          [$ac_default_prefix]
809
827
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
810
 
                          [PREFIX]
 
828
                          [PREFIX]
811
829
 
812
830
By default, \`make install' will install all the files in
813
831
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
933
951
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934
952
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
935
953
esac
936
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
937
 
# absolute.
938
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
939
 
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
940
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
941
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
954
 
 
955
# Do not use `cd foo && pwd` to compute absolute paths, because
 
956
# the directories may not exist.
 
957
case `pwd` in
 
958
.) ac_abs_builddir="$ac_dir";;
 
959
*)
 
960
  case "$ac_dir" in
 
961
  .) ac_abs_builddir=`pwd`;;
 
962
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
963
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
964
  esac;;
 
965
esac
 
966
case $ac_abs_builddir in
 
967
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
968
*)
 
969
  case ${ac_top_builddir}. in
 
970
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
971
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
972
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
973
  esac;;
 
974
esac
 
975
case $ac_abs_builddir in
 
976
.) ac_abs_srcdir=$ac_srcdir;;
 
977
*)
 
978
  case $ac_srcdir in
 
979
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
980
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
981
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
982
  esac;;
 
983
esac
 
984
case $ac_abs_builddir in
 
985
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
986
*)
 
987
  case $ac_top_srcdir in
 
988
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
989
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
990
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
991
  esac;;
 
992
esac
942
993
 
943
994
    cd $ac_dir
944
995
    # Check for guested configure; otherwise get Cygnus style configure.
949
1000
      echo
950
1001
      $SHELL $ac_srcdir/configure  --help=recursive
951
1002
    elif test -f $ac_srcdir/configure.ac ||
952
 
           test -f $ac_srcdir/configure.in; then
 
1003
           test -f $ac_srcdir/configure.in; then
953
1004
      echo
954
1005
      $ac_configure --help
955
1006
    else
956
1007
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
957
1008
    fi
958
 
    cd $ac_popdir
 
1009
    cd "$ac_popdir"
959
1010
  done
960
1011
fi
961
1012
 
963
1014
if $ac_init_version; then
964
1015
  cat <<\_ACEOF
965
1016
 
966
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
967
 
Free Software Foundation, Inc.
 
1017
Copyright (C) 2003 Free Software Foundation, Inc.
968
1018
This configure script is free software; the Free Software Foundation
969
1019
gives unlimited permission to copy, distribute and modify it.
970
1020
 
980
1030
running configure, to aid debugging if configure makes a mistake.
981
1031
 
982
1032
It was created by $as_me, which was
983
 
generated by GNU Autoconf 2.53.  Invocation command line was
 
1033
generated by GNU Autoconf 2.59.  Invocation command line was
984
1034
 
985
1035
  $ $0 $@
986
1036
 
1032
1082
 
1033
1083
# Keep a trace of the command line.
1034
1084
# Strip out --no-create and --no-recursion so they do not pile up.
 
1085
# Strip out --silent because we don't want to record it for future runs.
1035
1086
# Also quote any args containing shell meta-characters.
 
1087
# Make two passes to allow for proper duplicate-argument suppression.
1036
1088
ac_configure_args=
 
1089
ac_configure_args0=
 
1090
ac_configure_args1=
1037
1091
ac_sep=
1038
 
for ac_arg
 
1092
ac_must_keep_next=false
 
1093
for ac_pass in 1 2
1039
1094
do
1040
 
  case $ac_arg in
1041
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042
 
  | --no-cr | --no-c | -n ) continue ;;
1043
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045
 
    continue ;;
1046
 
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1047
 
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1048
 
  esac
1049
 
  case " $ac_configure_args " in
1050
 
    *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1051
 
    *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1052
 
       ac_sep=" " ;;
1053
 
  esac
1054
 
  # Get rid of the leading space.
 
1095
  for ac_arg
 
1096
  do
 
1097
    case $ac_arg in
 
1098
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1099
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1100
    | -silent | --silent | --silen | --sile | --sil)
 
1101
      continue ;;
 
1102
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1103
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1104
    esac
 
1105
    case $ac_pass in
 
1106
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1107
    2)
 
1108
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1109
      if test $ac_must_keep_next = true; then
 
1110
        ac_must_keep_next=false # Got value, back to normal.
 
1111
      else
 
1112
        case $ac_arg in
 
1113
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1114
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1115
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1116
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1117
            case "$ac_configure_args0 " in
 
1118
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1119
            esac
 
1120
            ;;
 
1121
          -* ) ac_must_keep_next=true ;;
 
1122
        esac
 
1123
      fi
 
1124
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1125
      # Get rid of the leading space.
 
1126
      ac_sep=" "
 
1127
      ;;
 
1128
    esac
 
1129
  done
1055
1130
done
 
1131
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1132
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1056
1133
 
1057
1134
# When interrupted or exit'd, cleanup temporary files, and complete
1058
1135
# config.log.  We remove comments because anyway the quotes in there
1063
1140
  # Save into config.log some information that might help in debugging.
1064
1141
  {
1065
1142
    echo
 
1143
 
1066
1144
    cat <<\_ASBOX
1067
1145
## ---------------- ##
1068
1146
## Cache variables. ##
1075
1153
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1076
1154
    *ac_space=\ *)
1077
1155
      sed -n \
1078
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1079
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1156
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1157
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1080
1158
      ;;
1081
1159
    *)
1082
1160
      sed -n \
1083
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1161
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1084
1162
      ;;
1085
1163
    esac;
1086
1164
}
1087
1165
    echo
 
1166
 
 
1167
    cat <<\_ASBOX
 
1168
## ----------------- ##
 
1169
## Output variables. ##
 
1170
## ----------------- ##
 
1171
_ASBOX
 
1172
    echo
 
1173
    for ac_var in $ac_subst_vars
 
1174
    do
 
1175
      eval ac_val=$`echo $ac_var`
 
1176
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1177
    done | sort
 
1178
    echo
 
1179
 
 
1180
    if test -n "$ac_subst_files"; then
 
1181
      cat <<\_ASBOX
 
1182
## ------------- ##
 
1183
## Output files. ##
 
1184
## ------------- ##
 
1185
_ASBOX
 
1186
      echo
 
1187
      for ac_var in $ac_subst_files
 
1188
      do
 
1189
        eval ac_val=$`echo $ac_var`
 
1190
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1191
      done | sort
 
1192
      echo
 
1193
    fi
 
1194
 
1088
1195
    if test -s confdefs.h; then
1089
1196
      cat <<\_ASBOX
1090
1197
## ----------- ##
1092
1199
## ----------- ##
1093
1200
_ASBOX
1094
1201
      echo
1095
 
      sed "/^$/d" confdefs.h
 
1202
      sed "/^$/d" confdefs.h | sort
1096
1203
      echo
1097
1204
    fi
1098
1205
    test "$ac_signal" != 0 &&
1099
1206
      echo "$as_me: caught signal $ac_signal"
1100
1207
    echo "$as_me: exit $exit_status"
1101
1208
  } >&5
1102
 
  rm -f core core.* *.core &&
 
1209
  rm -f core *.core &&
1103
1210
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1104
1211
    exit $exit_status
1105
1212
     ' 0
1179
1286
# value.
1180
1287
ac_cache_corrupted=false
1181
1288
for ac_var in `(set) 2>&1 |
1182
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1289
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1183
1290
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1184
1291
  eval ac_new_set=\$ac_env_${ac_var}_set
1185
1292
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1196
1303
    ,);;
1197
1304
    *)
1198
1305
      if test "x$ac_old_val" != "x$ac_new_val"; then
1199
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1306
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1200
1307
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1201
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1308
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1202
1309
echo "$as_me:   former value:  $ac_old_val" >&2;}
1203
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1310
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1204
1311
echo "$as_me:   current value: $ac_new_val" >&2;}
1205
 
        ac_cache_corrupted=:
 
1312
        ac_cache_corrupted=:
1206
1313
      fi;;
1207
1314
  esac
1208
1315
  # Pass precious variables to config.status.
1251
1358
 
1252
1359
 
1253
1360
 
 
1361
 
1254
1362
krb5_ac_cflags_set=${CFLAGS+set}
1255
1363
 
1256
1364
 
1465
1573
    # However, it has the same basename, so the bogon will be chosen
1466
1574
    # first if we set CC to just the basename; use the full file name.
1467
1575
    shift
1468
 
    set dummy "$as_dir/$ac_word" ${1+"$@"}
1469
 
    shift
1470
 
    ac_cv_prog_CC="$@"
 
1576
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1471
1577
  fi
1472
1578
fi
1473
1579
fi
1572
1678
fi
1573
1679
 
1574
1680
 
1575
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1576
 
echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
 
1681
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
1682
See \`config.log' for more details." >&5
 
1683
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
1684
See \`config.log' for more details." >&2;}
1577
1685
   { (exit 1); exit 1; }; }
1578
1686
 
1579
1687
# Provide some information about the compiler.
1597
1705
  (exit $ac_status); }
1598
1706
 
1599
1707
cat >conftest.$ac_ext <<_ACEOF
1600
 
#line $LINENO "configure"
1601
 
#include "confdefs.h"
 
1708
/* confdefs.h.  */
 
1709
_ACEOF
 
1710
cat confdefs.h >>conftest.$ac_ext
 
1711
cat >>conftest.$ac_ext <<_ACEOF
 
1712
/* end confdefs.h.  */
1602
1713
 
1603
 
#ifdef F77_DUMMY_MAIN
1604
 
#  ifdef __cplusplus
1605
 
     extern "C"
1606
 
#  endif
1607
 
   int F77_DUMMY_MAIN() { return 1; }
1608
 
#endif
1609
1714
int
1610
1715
main ()
1611
1716
{
1615
1720
}
1616
1721
_ACEOF
1617
1722
ac_clean_files_save=$ac_clean_files
1618
 
ac_clean_files="$ac_clean_files a.out a.exe"
 
1723
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1619
1724
# Try to create an executable without -o first, disregard a.out.
1620
1725
# It will help us diagnose broken compilers, and finding out an intuition
1621
1726
# of exeext.
1622
 
echo "$as_me:$LINENO: checking for C compiler default output" >&5
1623
 
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
1727
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
1728
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1624
1729
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1625
1730
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1626
1731
  (eval $ac_link_default) 2>&5
1634
1739
# Be careful to initialize this variable, since it used to be cached.
1635
1740
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1636
1741
ac_cv_exeext=
1637
 
for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1638
 
                ls a.out conftest 2>/dev/null;
1639
 
                ls a.* conftest.* 2>/dev/null`; do
 
1742
# b.out is created by i960 compilers.
 
1743
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
1744
do
 
1745
  test -f "$ac_file" || continue
1640
1746
  case $ac_file in
1641
 
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1642
 
    a.out ) # We found the default executable, but exeext='' is most
1643
 
            # certainly right.
1644
 
            break;;
1645
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1646
 
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1647
 
          export ac_cv_exeext
1648
 
          break;;
1649
 
    * ) break;;
 
1747
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
1748
        ;;
 
1749
    conftest.$ac_ext )
 
1750
        # This is the source file.
 
1751
        ;;
 
1752
    [ab].out )
 
1753
        # We found the default executable, but exeext='' is most
 
1754
        # certainly right.
 
1755
        break;;
 
1756
    *.* )
 
1757
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1758
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
1759
        # but it would be cool to find out if it's true.  Does anybody
 
1760
        # maintain Libtool? --akim.
 
1761
        export ac_cv_exeext
 
1762
        break;;
 
1763
    * )
 
1764
        break;;
1650
1765
  esac
1651
1766
done
1652
1767
else
1653
1768
  echo "$as_me: failed program was:" >&5
1654
 
cat conftest.$ac_ext >&5
1655
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1656
 
echo "$as_me: error: C compiler cannot create executables" >&2;}
 
1769
sed 's/^/| /' conftest.$ac_ext >&5
 
1770
 
 
1771
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
1772
See \`config.log' for more details." >&5
 
1773
echo "$as_me: error: C compiler cannot create executables
 
1774
See \`config.log' for more details." >&2;}
1657
1775
   { (exit 77); exit 77; }; }
1658
1776
fi
1659
1777
 
1680
1798
        cross_compiling=yes
1681
1799
    else
1682
1800
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1683
 
If you meant to cross compile, use \`--host'." >&5
 
1801
If you meant to cross compile, use \`--host'.
 
1802
See \`config.log' for more details." >&5
1684
1803
echo "$as_me: error: cannot run C compiled programs.
1685
 
If you meant to cross compile, use \`--host'." >&2;}
 
1804
If you meant to cross compile, use \`--host'.
 
1805
See \`config.log' for more details." >&2;}
1686
1806
   { (exit 1); exit 1; }; }
1687
1807
    fi
1688
1808
  fi
1690
1810
echo "$as_me:$LINENO: result: yes" >&5
1691
1811
echo "${ECHO_T}yes" >&6
1692
1812
 
1693
 
rm -f a.out a.exe conftest$ac_cv_exeext
 
1813
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1694
1814
ac_clean_files=$ac_clean_files_save
1695
1815
# Check the compiler produces executables we can run.  If not, either
1696
1816
# the compiler is broken, or we cross compile.
1710
1830
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1711
1831
# work properly (i.e., refer to `conftest.exe'), while it won't with
1712
1832
# `rm'.
1713
 
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
 
1833
for ac_file in conftest.exe conftest conftest.*; do
 
1834
  test -f "$ac_file" || continue
1714
1835
  case $ac_file in
1715
 
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
1836
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1716
1837
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1717
 
          export ac_cv_exeext
1718
 
          break;;
 
1838
          export ac_cv_exeext
 
1839
          break;;
1719
1840
    * ) break;;
1720
1841
  esac
1721
1842
done
1722
1843
else
1723
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1724
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
 
1844
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
1845
See \`config.log' for more details." >&5
 
1846
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
1847
See \`config.log' for more details." >&2;}
1725
1848
   { (exit 1); exit 1; }; }
1726
1849
fi
1727
1850
 
1738
1861
  echo $ECHO_N "(cached) $ECHO_C" >&6
1739
1862
else
1740
1863
  cat >conftest.$ac_ext <<_ACEOF
1741
 
#line $LINENO "configure"
1742
 
#include "confdefs.h"
 
1864
/* confdefs.h.  */
 
1865
_ACEOF
 
1866
cat confdefs.h >>conftest.$ac_ext
 
1867
cat >>conftest.$ac_ext <<_ACEOF
 
1868
/* end confdefs.h.  */
1743
1869
 
1744
 
#ifdef F77_DUMMY_MAIN
1745
 
#  ifdef __cplusplus
1746
 
     extern "C"
1747
 
#  endif
1748
 
   int F77_DUMMY_MAIN() { return 1; }
1749
 
#endif
1750
1870
int
1751
1871
main ()
1752
1872
{
1763
1883
  (exit $ac_status); }; then
1764
1884
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1765
1885
  case $ac_file in
1766
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
1886
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1767
1887
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1768
1888
       break;;
1769
1889
  esac
1770
1890
done
1771
1891
else
1772
1892
  echo "$as_me: failed program was:" >&5
1773
 
cat conftest.$ac_ext >&5
1774
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1775
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
 
1893
sed 's/^/| /' conftest.$ac_ext >&5
 
1894
 
 
1895
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
1896
See \`config.log' for more details." >&5
 
1897
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
1898
See \`config.log' for more details." >&2;}
1776
1899
   { (exit 1); exit 1; }; }
1777
1900
fi
1778
1901
 
1788
1911
  echo $ECHO_N "(cached) $ECHO_C" >&6
1789
1912
else
1790
1913
  cat >conftest.$ac_ext <<_ACEOF
1791
 
#line $LINENO "configure"
1792
 
#include "confdefs.h"
 
1914
/* confdefs.h.  */
 
1915
_ACEOF
 
1916
cat confdefs.h >>conftest.$ac_ext
 
1917
cat >>conftest.$ac_ext <<_ACEOF
 
1918
/* end confdefs.h.  */
1793
1919
 
1794
 
#ifdef F77_DUMMY_MAIN
1795
 
#  ifdef __cplusplus
1796
 
     extern "C"
1797
 
#  endif
1798
 
   int F77_DUMMY_MAIN() { return 1; }
1799
 
#endif
1800
1920
int
1801
1921
main ()
1802
1922
{
1810
1930
_ACEOF
1811
1931
rm -f conftest.$ac_objext
1812
1932
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1813
 
  (eval $ac_compile) 2>&5
 
1933
  (eval $ac_compile) 2>conftest.er1
1814
1934
  ac_status=$?
 
1935
  grep -v '^ *+' conftest.er1 >conftest.err
 
1936
  rm -f conftest.er1
 
1937
  cat conftest.err >&5
1815
1938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1816
1939
  (exit $ac_status); } &&
1817
 
         { ac_try='test -s conftest.$ac_objext'
 
1940
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
1941
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1942
  (eval $ac_try) 2>&5
 
1943
  ac_status=$?
 
1944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1945
  (exit $ac_status); }; } &&
 
1946
         { ac_try='test -s conftest.$ac_objext'
1818
1947
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1819
1948
  (eval $ac_try) 2>&5
1820
1949
  ac_status=$?
1823
1952
  ac_compiler_gnu=yes
1824
1953
else
1825
1954
  echo "$as_me: failed program was:" >&5
1826
 
cat conftest.$ac_ext >&5
 
1955
sed 's/^/| /' conftest.$ac_ext >&5
 
1956
 
1827
1957
ac_compiler_gnu=no
1828
1958
fi
1829
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
1959
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1830
1960
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1831
1961
 
1832
1962
fi
1842
1972
  echo $ECHO_N "(cached) $ECHO_C" >&6
1843
1973
else
1844
1974
  cat >conftest.$ac_ext <<_ACEOF
1845
 
#line $LINENO "configure"
1846
 
#include "confdefs.h"
 
1975
/* confdefs.h.  */
 
1976
_ACEOF
 
1977
cat confdefs.h >>conftest.$ac_ext
 
1978
cat >>conftest.$ac_ext <<_ACEOF
 
1979
/* end confdefs.h.  */
1847
1980
 
1848
 
#ifdef F77_DUMMY_MAIN
1849
 
#  ifdef __cplusplus
1850
 
     extern "C"
1851
 
#  endif
1852
 
   int F77_DUMMY_MAIN() { return 1; }
1853
 
#endif
1854
1981
int
1855
1982
main ()
1856
1983
{
1861
1988
_ACEOF
1862
1989
rm -f conftest.$ac_objext
1863
1990
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1864
 
  (eval $ac_compile) 2>&5
 
1991
  (eval $ac_compile) 2>conftest.er1
1865
1992
  ac_status=$?
 
1993
  grep -v '^ *+' conftest.er1 >conftest.err
 
1994
  rm -f conftest.er1
 
1995
  cat conftest.err >&5
1866
1996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867
1997
  (exit $ac_status); } &&
1868
 
         { ac_try='test -s conftest.$ac_objext'
 
1998
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
1999
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2000
  (eval $ac_try) 2>&5
 
2001
  ac_status=$?
 
2002
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2003
  (exit $ac_status); }; } &&
 
2004
         { ac_try='test -s conftest.$ac_objext'
1869
2005
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1870
2006
  (eval $ac_try) 2>&5
1871
2007
  ac_status=$?
1874
2010
  ac_cv_prog_cc_g=yes
1875
2011
else
1876
2012
  echo "$as_me: failed program was:" >&5
1877
 
cat conftest.$ac_ext >&5
 
2013
sed 's/^/| /' conftest.$ac_ext >&5
 
2014
 
1878
2015
ac_cv_prog_cc_g=no
1879
2016
fi
1880
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2017
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1881
2018
fi
1882
2019
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1883
2020
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1896
2033
    CFLAGS=
1897
2034
  fi
1898
2035
fi
1899
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
1900
 
# in C++ we need to declare it.  In case someone uses the same compiler
1901
 
# for both compiling C and C++ we need to have the C++ compiler decide
1902
 
# the declaration of exit, since it's the most demanding environment.
1903
 
cat >conftest.$ac_ext <<_ACEOF
1904
 
#ifndef __cplusplus
1905
 
  choke me
1906
 
#endif
1907
 
_ACEOF
1908
 
rm -f conftest.$ac_objext
1909
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1910
 
  (eval $ac_compile) 2>&5
1911
 
  ac_status=$?
1912
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913
 
  (exit $ac_status); } &&
1914
 
         { ac_try='test -s conftest.$ac_objext'
1915
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1916
 
  (eval $ac_try) 2>&5
1917
 
  ac_status=$?
1918
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919
 
  (exit $ac_status); }; }; then
1920
 
  for ac_declaration in \
1921
 
   ''\
1922
 
   '#include <stdlib.h>' \
1923
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
1924
 
   'extern "C" void std::exit (int); using std::exit;' \
1925
 
   'extern "C" void exit (int) throw ();' \
1926
 
   'extern "C" void exit (int);' \
1927
 
   'void exit (int);'
1928
 
do
1929
 
  cat >conftest.$ac_ext <<_ACEOF
1930
 
#line $LINENO "configure"
1931
 
#include "confdefs.h"
1932
 
#include <stdlib.h>
1933
 
$ac_declaration
1934
 
#ifdef F77_DUMMY_MAIN
1935
 
#  ifdef __cplusplus
1936
 
     extern "C"
1937
 
#  endif
1938
 
   int F77_DUMMY_MAIN() { return 1; }
1939
 
#endif
1940
 
int
1941
 
main ()
1942
 
{
1943
 
exit (42);
1944
 
  ;
1945
 
  return 0;
1946
 
}
1947
 
_ACEOF
1948
 
rm -f conftest.$ac_objext
1949
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1950
 
  (eval $ac_compile) 2>&5
1951
 
  ac_status=$?
1952
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1953
 
  (exit $ac_status); } &&
1954
 
         { ac_try='test -s conftest.$ac_objext'
1955
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1956
 
  (eval $ac_try) 2>&5
1957
 
  ac_status=$?
1958
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1959
 
  (exit $ac_status); }; }; then
1960
 
  :
1961
 
else
1962
 
  echo "$as_me: failed program was:" >&5
1963
 
cat conftest.$ac_ext >&5
1964
 
continue
1965
 
fi
1966
 
rm -f conftest.$ac_objext conftest.$ac_ext
1967
 
  cat >conftest.$ac_ext <<_ACEOF
1968
 
#line $LINENO "configure"
1969
 
#include "confdefs.h"
1970
 
$ac_declaration
1971
 
#ifdef F77_DUMMY_MAIN
1972
 
#  ifdef __cplusplus
1973
 
     extern "C"
1974
 
#  endif
1975
 
   int F77_DUMMY_MAIN() { return 1; }
1976
 
#endif
1977
 
int
1978
 
main ()
1979
 
{
1980
 
exit (42);
1981
 
  ;
1982
 
  return 0;
1983
 
}
1984
 
_ACEOF
1985
 
rm -f conftest.$ac_objext
1986
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1987
 
  (eval $ac_compile) 2>&5
1988
 
  ac_status=$?
1989
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990
 
  (exit $ac_status); } &&
1991
 
         { ac_try='test -s conftest.$ac_objext'
1992
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1993
 
  (eval $ac_try) 2>&5
1994
 
  ac_status=$?
1995
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996
 
  (exit $ac_status); }; }; then
1997
 
  break
1998
 
else
1999
 
  echo "$as_me: failed program was:" >&5
2000
 
cat conftest.$ac_ext >&5
2001
 
fi
2002
 
rm -f conftest.$ac_objext conftest.$ac_ext
2003
 
done
2004
 
rm -f conftest*
2005
 
if test -n "$ac_declaration"; then
2006
 
  echo '#ifdef __cplusplus' >>confdefs.h
2007
 
  echo $ac_declaration      >>confdefs.h
2008
 
  echo '#endif'             >>confdefs.h
2009
 
fi
2010
 
 
2011
 
else
2012
 
  echo "$as_me: failed program was:" >&5
2013
 
cat conftest.$ac_ext >&5
2014
 
fi
2015
 
rm -f conftest.$ac_objext conftest.$ac_ext
2016
 
ac_ext=c
2017
 
ac_cpp='$CPP $CPPFLAGS'
2018
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2019
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2020
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2021
 
 
2022
 
CCOPTS=
2023
 
 
2024
 
 
2025
 
ac_ext=c
2026
 
ac_cpp='$CPP $CPPFLAGS'
2027
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2028
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2029
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2030
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2031
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2032
 
# On Suns, sometimes $CPP names a directory.
2033
 
if test -n "$CPP" && test -d "$CPP"; then
2034
 
  CPP=
2035
 
fi
2036
 
if test -z "$CPP"; then
2037
 
  if test "${ac_cv_prog_CPP+set}" = set; then
2038
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2039
 
else
2040
 
      # Double quotes because CPP needs to be expanded
2041
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2042
 
    do
2043
 
      ac_preproc_ok=false
2044
 
for ac_c_preproc_warn_flag in '' yes
2045
 
do
2046
 
  # Use a header file that comes with gcc, so configuring glibc
2047
 
  # with a fresh cross-compiler works.
2048
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
2049
 
  # not just through cpp. "Syntax error" is here to catch this case.
2050
 
  cat >conftest.$ac_ext <<_ACEOF
2051
 
#line $LINENO "configure"
2052
 
#include "confdefs.h"
2053
 
#include <assert.h>
2054
 
                     Syntax error
2055
 
_ACEOF
2056
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2057
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2058
 
  ac_status=$?
2059
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
2060
 
  rm -f conftest.er1
2061
 
  cat conftest.err >&5
2062
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063
 
  (exit $ac_status); } >/dev/null; then
2064
 
  if test -s conftest.err; then
2065
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2066
 
  else
2067
 
    ac_cpp_err=
2068
 
  fi
2069
 
else
2070
 
  ac_cpp_err=yes
2071
 
fi
2072
 
if test -z "$ac_cpp_err"; then
2073
 
  :
2074
 
else
2075
 
  echo "$as_me: failed program was:" >&5
2076
 
  cat conftest.$ac_ext >&5
2077
 
  # Broken: fails on valid input.
2078
 
continue
2079
 
fi
2080
 
rm -f conftest.err conftest.$ac_ext
2081
 
 
2082
 
  # OK, works on sane cases.  Now check whether non-existent headers
2083
 
  # can be detected and how.
2084
 
  cat >conftest.$ac_ext <<_ACEOF
2085
 
#line $LINENO "configure"
2086
 
#include "confdefs.h"
2087
 
#include <ac_nonexistent.h>
2088
 
_ACEOF
2089
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2090
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2091
 
  ac_status=$?
2092
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
2093
 
  rm -f conftest.er1
2094
 
  cat conftest.err >&5
2095
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096
 
  (exit $ac_status); } >/dev/null; then
2097
 
  if test -s conftest.err; then
2098
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2099
 
  else
2100
 
    ac_cpp_err=
2101
 
  fi
2102
 
else
2103
 
  ac_cpp_err=yes
2104
 
fi
2105
 
if test -z "$ac_cpp_err"; then
2106
 
  # Broken: success on invalid input.
2107
 
continue
2108
 
else
2109
 
  echo "$as_me: failed program was:" >&5
2110
 
  cat conftest.$ac_ext >&5
2111
 
  # Passes both tests.
2112
 
ac_preproc_ok=:
2113
 
break
2114
 
fi
2115
 
rm -f conftest.err conftest.$ac_ext
2116
 
 
2117
 
done
2118
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2119
 
rm -f conftest.err conftest.$ac_ext
2120
 
if $ac_preproc_ok; then
2121
 
  break
2122
 
fi
2123
 
 
2124
 
    done
2125
 
    ac_cv_prog_CPP=$CPP
2126
 
 
2127
 
fi
2128
 
  CPP=$ac_cv_prog_CPP
2129
 
else
2130
 
  ac_cv_prog_CPP=$CPP
2131
 
fi
2132
 
echo "$as_me:$LINENO: result: $CPP" >&5
2133
 
echo "${ECHO_T}$CPP" >&6
2134
 
ac_preproc_ok=false
2135
 
for ac_c_preproc_warn_flag in '' yes
2136
 
do
2137
 
  # Use a header file that comes with gcc, so configuring glibc
2138
 
  # with a fresh cross-compiler works.
2139
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
2140
 
  # not just through cpp. "Syntax error" is here to catch this case.
2141
 
  cat >conftest.$ac_ext <<_ACEOF
2142
 
#line $LINENO "configure"
2143
 
#include "confdefs.h"
2144
 
#include <assert.h>
2145
 
                     Syntax error
2146
 
_ACEOF
2147
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2148
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2149
 
  ac_status=$?
2150
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
2151
 
  rm -f conftest.er1
2152
 
  cat conftest.err >&5
2153
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154
 
  (exit $ac_status); } >/dev/null; then
2155
 
  if test -s conftest.err; then
2156
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2157
 
  else
2158
 
    ac_cpp_err=
2159
 
  fi
2160
 
else
2161
 
  ac_cpp_err=yes
2162
 
fi
2163
 
if test -z "$ac_cpp_err"; then
2164
 
  :
2165
 
else
2166
 
  echo "$as_me: failed program was:" >&5
2167
 
  cat conftest.$ac_ext >&5
2168
 
  # Broken: fails on valid input.
2169
 
continue
2170
 
fi
2171
 
rm -f conftest.err conftest.$ac_ext
2172
 
 
2173
 
  # OK, works on sane cases.  Now check whether non-existent headers
2174
 
  # can be detected and how.
2175
 
  cat >conftest.$ac_ext <<_ACEOF
2176
 
#line $LINENO "configure"
2177
 
#include "confdefs.h"
2178
 
#include <ac_nonexistent.h>
2179
 
_ACEOF
2180
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2181
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2182
 
  ac_status=$?
2183
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
2184
 
  rm -f conftest.er1
2185
 
  cat conftest.err >&5
2186
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187
 
  (exit $ac_status); } >/dev/null; then
2188
 
  if test -s conftest.err; then
2189
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2190
 
  else
2191
 
    ac_cpp_err=
2192
 
  fi
2193
 
else
2194
 
  ac_cpp_err=yes
2195
 
fi
2196
 
if test -z "$ac_cpp_err"; then
2197
 
  # Broken: success on invalid input.
2198
 
continue
2199
 
else
2200
 
  echo "$as_me: failed program was:" >&5
2201
 
  cat conftest.$ac_ext >&5
2202
 
  # Passes both tests.
2203
 
ac_preproc_ok=:
2204
 
break
2205
 
fi
2206
 
rm -f conftest.err conftest.$ac_ext
2207
 
 
2208
 
done
2209
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2210
 
rm -f conftest.err conftest.$ac_ext
2211
 
if $ac_preproc_ok; then
2212
 
  :
2213
 
else
2214
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2215
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2216
 
   { (exit 1); exit 1; }; }
2217
 
fi
2218
 
 
2219
 
ac_ext=c
2220
 
ac_cpp='$CPP $CPPFLAGS'
2221
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2222
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2223
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2224
 
 
2225
 
 
2226
2036
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2227
2037
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2228
2038
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2231
2041
  ac_cv_prog_cc_stdc=no
2232
2042
ac_save_CC=$CC
2233
2043
cat >conftest.$ac_ext <<_ACEOF
2234
 
#line $LINENO "configure"
2235
 
#include "confdefs.h"
 
2044
/* confdefs.h.  */
 
2045
_ACEOF
 
2046
cat confdefs.h >>conftest.$ac_ext
 
2047
cat >>conftest.$ac_ext <<_ACEOF
 
2048
/* end confdefs.h.  */
2236
2049
#include <stdarg.h>
2237
2050
#include <stdio.h>
2238
2051
#include <sys/types.h>
2255
2068
  va_end (v);
2256
2069
  return s;
2257
2070
}
 
2071
 
 
2072
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2073
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2074
   These don't provoke an error unfortunately, instead are silently treated
 
2075
   as 'x'.  The following induces an error, until -std1 is added to get
 
2076
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2077
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2078
   that's true only with -std1.  */
 
2079
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2080
 
2258
2081
int test (int i, double x);
2259
2082
struct s1 {int (*f) (int a);};
2260
2083
struct s2 {int (*f) (double a);};
2261
2084
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2262
2085
int argc;
2263
2086
char **argv;
2264
 
#ifdef F77_DUMMY_MAIN
2265
 
#  ifdef __cplusplus
2266
 
     extern "C"
2267
 
#  endif
2268
 
   int F77_DUMMY_MAIN() { return 1; }
2269
 
#endif
2270
2087
int
2271
2088
main ()
2272
2089
{
2287
2104
  CC="$ac_save_CC $ac_arg"
2288
2105
  rm -f conftest.$ac_objext
2289
2106
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2290
 
  (eval $ac_compile) 2>&5
 
2107
  (eval $ac_compile) 2>conftest.er1
2291
2108
  ac_status=$?
 
2109
  grep -v '^ *+' conftest.er1 >conftest.err
 
2110
  rm -f conftest.er1
 
2111
  cat conftest.err >&5
2292
2112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293
2113
  (exit $ac_status); } &&
2294
 
         { ac_try='test -s conftest.$ac_objext'
 
2114
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2115
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2116
  (eval $ac_try) 2>&5
 
2117
  ac_status=$?
 
2118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2119
  (exit $ac_status); }; } &&
 
2120
         { ac_try='test -s conftest.$ac_objext'
2295
2121
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296
2122
  (eval $ac_try) 2>&5
2297
2123
  ac_status=$?
2301
2127
break
2302
2128
else
2303
2129
  echo "$as_me: failed program was:" >&5
2304
 
cat conftest.$ac_ext >&5
 
2130
sed 's/^/| /' conftest.$ac_ext >&5
 
2131
 
2305
2132
fi
2306
 
rm -f conftest.$ac_objext
 
2133
rm -f conftest.err conftest.$ac_objext
2307
2134
done
2308
2135
rm -f conftest.$ac_ext conftest.$ac_objext
2309
2136
CC=$ac_save_CC
2320
2147
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2321
2148
esac
2322
2149
 
 
2150
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2151
# in C++ we need to declare it.  In case someone uses the same compiler
 
2152
# for both compiling C and C++ we need to have the C++ compiler decide
 
2153
# the declaration of exit, since it's the most demanding environment.
 
2154
cat >conftest.$ac_ext <<_ACEOF
 
2155
#ifndef __cplusplus
 
2156
  choke me
 
2157
#endif
 
2158
_ACEOF
 
2159
rm -f conftest.$ac_objext
 
2160
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2161
  (eval $ac_compile) 2>conftest.er1
 
2162
  ac_status=$?
 
2163
  grep -v '^ *+' conftest.er1 >conftest.err
 
2164
  rm -f conftest.er1
 
2165
  cat conftest.err >&5
 
2166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2167
  (exit $ac_status); } &&
 
2168
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2169
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2170
  (eval $ac_try) 2>&5
 
2171
  ac_status=$?
 
2172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2173
  (exit $ac_status); }; } &&
 
2174
         { ac_try='test -s conftest.$ac_objext'
 
2175
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2176
  (eval $ac_try) 2>&5
 
2177
  ac_status=$?
 
2178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2179
  (exit $ac_status); }; }; then
 
2180
  for ac_declaration in \
 
2181
   '' \
 
2182
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2183
   'extern "C" void std::exit (int); using std::exit;' \
 
2184
   'extern "C" void exit (int) throw ();' \
 
2185
   'extern "C" void exit (int);' \
 
2186
   'void exit (int);'
 
2187
do
 
2188
  cat >conftest.$ac_ext <<_ACEOF
 
2189
/* confdefs.h.  */
 
2190
_ACEOF
 
2191
cat confdefs.h >>conftest.$ac_ext
 
2192
cat >>conftest.$ac_ext <<_ACEOF
 
2193
/* end confdefs.h.  */
 
2194
$ac_declaration
 
2195
#include <stdlib.h>
 
2196
int
 
2197
main ()
 
2198
{
 
2199
exit (42);
 
2200
  ;
 
2201
  return 0;
 
2202
}
 
2203
_ACEOF
 
2204
rm -f conftest.$ac_objext
 
2205
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2206
  (eval $ac_compile) 2>conftest.er1
 
2207
  ac_status=$?
 
2208
  grep -v '^ *+' conftest.er1 >conftest.err
 
2209
  rm -f conftest.er1
 
2210
  cat conftest.err >&5
 
2211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2212
  (exit $ac_status); } &&
 
2213
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2214
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2215
  (eval $ac_try) 2>&5
 
2216
  ac_status=$?
 
2217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2218
  (exit $ac_status); }; } &&
 
2219
         { ac_try='test -s conftest.$ac_objext'
 
2220
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2221
  (eval $ac_try) 2>&5
 
2222
  ac_status=$?
 
2223
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2224
  (exit $ac_status); }; }; then
 
2225
  :
 
2226
else
 
2227
  echo "$as_me: failed program was:" >&5
 
2228
sed 's/^/| /' conftest.$ac_ext >&5
 
2229
 
 
2230
continue
 
2231
fi
 
2232
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2233
  cat >conftest.$ac_ext <<_ACEOF
 
2234
/* confdefs.h.  */
 
2235
_ACEOF
 
2236
cat confdefs.h >>conftest.$ac_ext
 
2237
cat >>conftest.$ac_ext <<_ACEOF
 
2238
/* end confdefs.h.  */
 
2239
$ac_declaration
 
2240
int
 
2241
main ()
 
2242
{
 
2243
exit (42);
 
2244
  ;
 
2245
  return 0;
 
2246
}
 
2247
_ACEOF
 
2248
rm -f conftest.$ac_objext
 
2249
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2250
  (eval $ac_compile) 2>conftest.er1
 
2251
  ac_status=$?
 
2252
  grep -v '^ *+' conftest.er1 >conftest.err
 
2253
  rm -f conftest.er1
 
2254
  cat conftest.err >&5
 
2255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2256
  (exit $ac_status); } &&
 
2257
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2258
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2259
  (eval $ac_try) 2>&5
 
2260
  ac_status=$?
 
2261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2262
  (exit $ac_status); }; } &&
 
2263
         { ac_try='test -s conftest.$ac_objext'
 
2264
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2265
  (eval $ac_try) 2>&5
 
2266
  ac_status=$?
 
2267
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2268
  (exit $ac_status); }; }; then
 
2269
  break
 
2270
else
 
2271
  echo "$as_me: failed program was:" >&5
 
2272
sed 's/^/| /' conftest.$ac_ext >&5
 
2273
 
 
2274
fi
 
2275
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2276
done
 
2277
rm -f conftest*
 
2278
if test -n "$ac_declaration"; then
 
2279
  echo '#ifdef __cplusplus' >>confdefs.h
 
2280
  echo $ac_declaration      >>confdefs.h
 
2281
  echo '#endif'             >>confdefs.h
 
2282
fi
 
2283
 
 
2284
else
 
2285
  echo "$as_me: failed program was:" >&5
 
2286
sed 's/^/| /' conftest.$ac_ext >&5
 
2287
 
 
2288
fi
 
2289
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2290
ac_ext=c
 
2291
ac_cpp='$CPP $CPPFLAGS'
 
2292
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2293
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2294
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2295
 
 
2296
CCOPTS=
 
2297
 
 
2298
 
 
2299
ac_ext=c
 
2300
ac_cpp='$CPP $CPPFLAGS'
 
2301
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2302
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2303
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2304
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
2305
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
2306
# On Suns, sometimes $CPP names a directory.
 
2307
if test -n "$CPP" && test -d "$CPP"; then
 
2308
  CPP=
 
2309
fi
 
2310
if test -z "$CPP"; then
 
2311
  if test "${ac_cv_prog_CPP+set}" = set; then
 
2312
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2313
else
 
2314
      # Double quotes because CPP needs to be expanded
 
2315
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
2316
    do
 
2317
      ac_preproc_ok=false
 
2318
for ac_c_preproc_warn_flag in '' yes
 
2319
do
 
2320
  # Use a header file that comes with gcc, so configuring glibc
 
2321
  # with a fresh cross-compiler works.
 
2322
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2323
  # <limits.h> exists even on freestanding compilers.
 
2324
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2325
  # not just through cpp. "Syntax error" is here to catch this case.
 
2326
  cat >conftest.$ac_ext <<_ACEOF
 
2327
/* confdefs.h.  */
 
2328
_ACEOF
 
2329
cat confdefs.h >>conftest.$ac_ext
 
2330
cat >>conftest.$ac_ext <<_ACEOF
 
2331
/* end confdefs.h.  */
 
2332
#ifdef __STDC__
 
2333
# include <limits.h>
 
2334
#else
 
2335
# include <assert.h>
 
2336
#endif
 
2337
                     Syntax error
 
2338
_ACEOF
 
2339
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2340
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2341
  ac_status=$?
 
2342
  grep -v '^ *+' conftest.er1 >conftest.err
 
2343
  rm -f conftest.er1
 
2344
  cat conftest.err >&5
 
2345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2346
  (exit $ac_status); } >/dev/null; then
 
2347
  if test -s conftest.err; then
 
2348
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2349
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2350
  else
 
2351
    ac_cpp_err=
 
2352
  fi
 
2353
else
 
2354
  ac_cpp_err=yes
 
2355
fi
 
2356
if test -z "$ac_cpp_err"; then
 
2357
  :
 
2358
else
 
2359
  echo "$as_me: failed program was:" >&5
 
2360
sed 's/^/| /' conftest.$ac_ext >&5
 
2361
 
 
2362
  # Broken: fails on valid input.
 
2363
continue
 
2364
fi
 
2365
rm -f conftest.err conftest.$ac_ext
 
2366
 
 
2367
  # OK, works on sane cases.  Now check whether non-existent headers
 
2368
  # can be detected and how.
 
2369
  cat >conftest.$ac_ext <<_ACEOF
 
2370
/* confdefs.h.  */
 
2371
_ACEOF
 
2372
cat confdefs.h >>conftest.$ac_ext
 
2373
cat >>conftest.$ac_ext <<_ACEOF
 
2374
/* end confdefs.h.  */
 
2375
#include <ac_nonexistent.h>
 
2376
_ACEOF
 
2377
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2378
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2379
  ac_status=$?
 
2380
  grep -v '^ *+' conftest.er1 >conftest.err
 
2381
  rm -f conftest.er1
 
2382
  cat conftest.err >&5
 
2383
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2384
  (exit $ac_status); } >/dev/null; then
 
2385
  if test -s conftest.err; then
 
2386
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2387
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2388
  else
 
2389
    ac_cpp_err=
 
2390
  fi
 
2391
else
 
2392
  ac_cpp_err=yes
 
2393
fi
 
2394
if test -z "$ac_cpp_err"; then
 
2395
  # Broken: success on invalid input.
 
2396
continue
 
2397
else
 
2398
  echo "$as_me: failed program was:" >&5
 
2399
sed 's/^/| /' conftest.$ac_ext >&5
 
2400
 
 
2401
  # Passes both tests.
 
2402
ac_preproc_ok=:
 
2403
break
 
2404
fi
 
2405
rm -f conftest.err conftest.$ac_ext
 
2406
 
 
2407
done
 
2408
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2409
rm -f conftest.err conftest.$ac_ext
 
2410
if $ac_preproc_ok; then
 
2411
  break
 
2412
fi
 
2413
 
 
2414
    done
 
2415
    ac_cv_prog_CPP=$CPP
 
2416
 
 
2417
fi
 
2418
  CPP=$ac_cv_prog_CPP
 
2419
else
 
2420
  ac_cv_prog_CPP=$CPP
 
2421
fi
 
2422
echo "$as_me:$LINENO: result: $CPP" >&5
 
2423
echo "${ECHO_T}$CPP" >&6
 
2424
ac_preproc_ok=false
 
2425
for ac_c_preproc_warn_flag in '' yes
 
2426
do
 
2427
  # Use a header file that comes with gcc, so configuring glibc
 
2428
  # with a fresh cross-compiler works.
 
2429
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2430
  # <limits.h> exists even on freestanding compilers.
 
2431
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2432
  # not just through cpp. "Syntax error" is here to catch this case.
 
2433
  cat >conftest.$ac_ext <<_ACEOF
 
2434
/* confdefs.h.  */
 
2435
_ACEOF
 
2436
cat confdefs.h >>conftest.$ac_ext
 
2437
cat >>conftest.$ac_ext <<_ACEOF
 
2438
/* end confdefs.h.  */
 
2439
#ifdef __STDC__
 
2440
# include <limits.h>
 
2441
#else
 
2442
# include <assert.h>
 
2443
#endif
 
2444
                     Syntax error
 
2445
_ACEOF
 
2446
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2447
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2448
  ac_status=$?
 
2449
  grep -v '^ *+' conftest.er1 >conftest.err
 
2450
  rm -f conftest.er1
 
2451
  cat conftest.err >&5
 
2452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2453
  (exit $ac_status); } >/dev/null; then
 
2454
  if test -s conftest.err; then
 
2455
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2456
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2457
  else
 
2458
    ac_cpp_err=
 
2459
  fi
 
2460
else
 
2461
  ac_cpp_err=yes
 
2462
fi
 
2463
if test -z "$ac_cpp_err"; then
 
2464
  :
 
2465
else
 
2466
  echo "$as_me: failed program was:" >&5
 
2467
sed 's/^/| /' conftest.$ac_ext >&5
 
2468
 
 
2469
  # Broken: fails on valid input.
 
2470
continue
 
2471
fi
 
2472
rm -f conftest.err conftest.$ac_ext
 
2473
 
 
2474
  # OK, works on sane cases.  Now check whether non-existent headers
 
2475
  # can be detected and how.
 
2476
  cat >conftest.$ac_ext <<_ACEOF
 
2477
/* confdefs.h.  */
 
2478
_ACEOF
 
2479
cat confdefs.h >>conftest.$ac_ext
 
2480
cat >>conftest.$ac_ext <<_ACEOF
 
2481
/* end confdefs.h.  */
 
2482
#include <ac_nonexistent.h>
 
2483
_ACEOF
 
2484
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2485
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2486
  ac_status=$?
 
2487
  grep -v '^ *+' conftest.er1 >conftest.err
 
2488
  rm -f conftest.er1
 
2489
  cat conftest.err >&5
 
2490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2491
  (exit $ac_status); } >/dev/null; then
 
2492
  if test -s conftest.err; then
 
2493
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2494
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2495
  else
 
2496
    ac_cpp_err=
 
2497
  fi
 
2498
else
 
2499
  ac_cpp_err=yes
 
2500
fi
 
2501
if test -z "$ac_cpp_err"; then
 
2502
  # Broken: success on invalid input.
 
2503
continue
 
2504
else
 
2505
  echo "$as_me: failed program was:" >&5
 
2506
sed 's/^/| /' conftest.$ac_ext >&5
 
2507
 
 
2508
  # Passes both tests.
 
2509
ac_preproc_ok=:
 
2510
break
 
2511
fi
 
2512
rm -f conftest.err conftest.$ac_ext
 
2513
 
 
2514
done
 
2515
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2516
rm -f conftest.err conftest.$ac_ext
 
2517
if $ac_preproc_ok; then
 
2518
  :
 
2519
else
 
2520
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
2521
See \`config.log' for more details." >&5
 
2522
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
2523
See \`config.log' for more details." >&2;}
 
2524
   { (exit 1); exit 1; }; }
 
2525
fi
 
2526
 
 
2527
ac_ext=c
 
2528
ac_cpp='$CPP $CPPFLAGS'
 
2529
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2530
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2531
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2532
 
 
2533
 
2323
2534
 
2324
2535
ac_reltopdir=
2325
2536
for x in . .. ../.. ../../.. ../../../..; do
2508
2719
  ac_check_lib_save_LIBS=$LIBS
2509
2720
LIBS="-lcom_err  $LIBS"
2510
2721
cat >conftest.$ac_ext <<_ACEOF
2511
 
#line $LINENO "configure"
2512
 
#include "confdefs.h"
 
2722
/* confdefs.h.  */
 
2723
_ACEOF
 
2724
cat confdefs.h >>conftest.$ac_ext
 
2725
cat >>conftest.$ac_ext <<_ACEOF
 
2726
/* end confdefs.h.  */
2513
2727
 
2514
2728
/* Override any gcc2 internal prototype to avoid an error.  */
2515
2729
#ifdef __cplusplus
2518
2732
/* We use char because int might match the return type of a gcc2
2519
2733
   builtin and then its argument prototype would still apply.  */
2520
2734
char add_error_table ();
2521
 
#ifdef F77_DUMMY_MAIN
2522
 
#  ifdef __cplusplus
2523
 
     extern "C"
2524
 
#  endif
2525
 
   int F77_DUMMY_MAIN() { return 1; }
2526
 
#endif
2527
2735
int
2528
2736
main ()
2529
2737
{
2534
2742
_ACEOF
2535
2743
rm -f conftest.$ac_objext conftest$ac_exeext
2536
2744
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2537
 
  (eval $ac_link) 2>&5
 
2745
  (eval $ac_link) 2>conftest.er1
2538
2746
  ac_status=$?
 
2747
  grep -v '^ *+' conftest.er1 >conftest.err
 
2748
  rm -f conftest.er1
 
2749
  cat conftest.err >&5
2539
2750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540
2751
  (exit $ac_status); } &&
2541
 
         { ac_try='test -s conftest$ac_exeext'
 
2752
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2753
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2754
  (eval $ac_try) 2>&5
 
2755
  ac_status=$?
 
2756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2757
  (exit $ac_status); }; } &&
 
2758
         { ac_try='test -s conftest$ac_exeext'
2542
2759
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543
2760
  (eval $ac_try) 2>&5
2544
2761
  ac_status=$?
2547
2764
  ac_cv_lib_com_err_add_error_table=yes
2548
2765
else
2549
2766
  echo "$as_me: failed program was:" >&5
2550
 
cat conftest.$ac_ext >&5
 
2767
sed 's/^/| /' conftest.$ac_ext >&5
 
2768
 
2551
2769
ac_cv_lib_com_err_add_error_table=no
2552
2770
fi
2553
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
2771
rm -f conftest.err conftest.$ac_objext \
 
2772
      conftest$ac_exeext conftest.$ac_ext
2554
2773
LIBS=$ac_check_lib_save_LIBS
2555
2774
fi
2556
2775
echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_add_error_table" >&5
2571
2790
  ac_check_lib_save_LIBS=$LIBS
2572
2791
LIBS="-lcom_err  $LIBS"
2573
2792
cat >conftest.$ac_ext <<_ACEOF
2574
 
#line $LINENO "configure"
2575
 
#include "confdefs.h"
 
2793
/* confdefs.h.  */
 
2794
_ACEOF
 
2795
cat confdefs.h >>conftest.$ac_ext
 
2796
cat >>conftest.$ac_ext <<_ACEOF
 
2797
/* end confdefs.h.  */
2576
2798
 
2577
2799
/* Override any gcc2 internal prototype to avoid an error.  */
2578
2800
#ifdef __cplusplus
2581
2803
/* We use char because int might match the return type of a gcc2
2582
2804
   builtin and then its argument prototype would still apply.  */
2583
2805
char remove_error_table ();
2584
 
#ifdef F77_DUMMY_MAIN
2585
 
#  ifdef __cplusplus
2586
 
     extern "C"
2587
 
#  endif
2588
 
   int F77_DUMMY_MAIN() { return 1; }
2589
 
#endif
2590
2806
int
2591
2807
main ()
2592
2808
{
2597
2813
_ACEOF
2598
2814
rm -f conftest.$ac_objext conftest$ac_exeext
2599
2815
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2600
 
  (eval $ac_link) 2>&5
 
2816
  (eval $ac_link) 2>conftest.er1
2601
2817
  ac_status=$?
 
2818
  grep -v '^ *+' conftest.er1 >conftest.err
 
2819
  rm -f conftest.er1
 
2820
  cat conftest.err >&5
2602
2821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603
2822
  (exit $ac_status); } &&
2604
 
         { ac_try='test -s conftest$ac_exeext'
 
2823
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2824
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2825
  (eval $ac_try) 2>&5
 
2826
  ac_status=$?
 
2827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2828
  (exit $ac_status); }; } &&
 
2829
         { ac_try='test -s conftest$ac_exeext'
2605
2830
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606
2831
  (eval $ac_try) 2>&5
2607
2832
  ac_status=$?
2610
2835
  ac_cv_lib_com_err_remove_error_table=yes
2611
2836
else
2612
2837
  echo "$as_me: failed program was:" >&5
2613
 
cat conftest.$ac_ext >&5
 
2838
sed 's/^/| /' conftest.$ac_ext >&5
 
2839
 
2614
2840
ac_cv_lib_com_err_remove_error_table=no
2615
2841
fi
2616
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
2842
rm -f conftest.err conftest.$ac_objext \
 
2843
      conftest$ac_exeext conftest.$ac_ext
2617
2844
LIBS=$ac_check_lib_save_LIBS
2618
2845
fi
2619
2846
echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_remove_error_table" >&5
2690
2917
   { (exit 1); exit 1; }; }
2691
2918
  fi
2692
2919
  cat >conftest.$ac_ext <<_ACEOF
2693
 
#line $LINENO "configure"
2694
 
#include "confdefs.h"
 
2920
/* confdefs.h.  */
 
2921
_ACEOF
 
2922
cat confdefs.h >>conftest.$ac_ext
 
2923
cat >>conftest.$ac_ext <<_ACEOF
 
2924
/* end confdefs.h.  */
2695
2925
#include "conf$$e.h"
2696
2926
 
2697
 
#ifdef F77_DUMMY_MAIN
2698
 
#  ifdef __cplusplus
2699
 
     extern "C"
2700
 
#  endif
2701
 
   int F77_DUMMY_MAIN() { return 1; }
2702
 
#endif
2703
2927
int
2704
2928
main ()
2705
2929
{
2710
2934
_ACEOF
2711
2935
rm -f conftest.$ac_objext
2712
2936
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713
 
  (eval $ac_compile) 2>&5
 
2937
  (eval $ac_compile) 2>conftest.er1
2714
2938
  ac_status=$?
 
2939
  grep -v '^ *+' conftest.er1 >conftest.err
 
2940
  rm -f conftest.er1
 
2941
  cat conftest.err >&5
2715
2942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716
2943
  (exit $ac_status); } &&
2717
 
         { ac_try='test -s conftest.$ac_objext'
 
2944
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2945
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2946
  (eval $ac_try) 2>&5
 
2947
  ac_status=$?
 
2948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2949
  (exit $ac_status); }; } &&
 
2950
         { ac_try='test -s conftest.$ac_objext'
2718
2951
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719
2952
  (eval $ac_try) 2>&5
2720
2953
  ac_status=$?
2723
2956
  :
2724
2957
else
2725
2958
  echo "$as_me: failed program was:" >&5
2726
 
cat conftest.$ac_ext >&5
 
2959
sed 's/^/| /' conftest.$ac_ext >&5
 
2960
 
2727
2961
{ { echo "$as_me:$LINENO: error: cannot use et_foo_error_table" >&5
2728
2962
echo "$as_me: error: cannot use et_foo_error_table" >&2;}
2729
2963
   { (exit 1); exit 1; }; }
2730
2964
fi
2731
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2965
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2732
2966
  # Anything else we need to test for?
2733
2967
  rm -f conf$$e.et conf$$e.c conf$$e.h
2734
2968
  krb5_cv_compile_et_useful=yes
2767
3001
  krb5_cv_system_ss_okay="assumed"
2768
3002
else
2769
3003
  cat >conftest.$ac_ext <<_ACEOF
2770
 
#line $LINENO "configure"
2771
 
#include "confdefs.h"
 
3004
/* confdefs.h.  */
 
3005
_ACEOF
 
3006
cat confdefs.h >>conftest.$ac_ext
 
3007
cat >>conftest.$ac_ext <<_ACEOF
 
3008
/* end confdefs.h.  */
2772
3009
 
2773
3010
#include <ss/ss.h>
2774
3011
int main(int argc, char *argv[]) {
2795
3032
else
2796
3033
  echo "$as_me: program exited with status $ac_status" >&5
2797
3034
echo "$as_me: failed program was:" >&5
2798
 
cat conftest.$ac_ext >&5
 
3035
sed 's/^/| /' conftest.$ac_ext >&5
 
3036
 
2799
3037
( exit $ac_status )
2800
3038
{ { echo "$as_me:$LINENO: error: cannot run test program" >&5
2801
3039
echo "$as_me: error: cannot run test program" >&2;}
2802
3040
   { (exit 1); exit 1; }; }
2803
3041
fi
2804
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3042
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2805
3043
fi
2806
3044
fi
2807
3045
echo "$as_me:$LINENO: result: $krb5_cv_system_ss_okay" >&5
2875
3113
  echo $ECHO_N "(cached) $ECHO_C" >&6
2876
3114
else
2877
3115
  cat >conftest.$ac_ext <<_ACEOF
2878
 
#line $LINENO "configure"
2879
 
#include "confdefs.h"
 
3116
/* confdefs.h.  */
 
3117
_ACEOF
 
3118
cat confdefs.h >>conftest.$ac_ext
 
3119
cat >>conftest.$ac_ext <<_ACEOF
 
3120
/* end confdefs.h.  */
2880
3121
 
2881
 
#ifdef F77_DUMMY_MAIN
2882
 
#  ifdef __cplusplus
2883
 
     extern "C"
2884
 
#  endif
2885
 
   int F77_DUMMY_MAIN() { return 1; }
2886
 
#endif
2887
3122
int
2888
3123
main ()
2889
3124
{
2940
3175
_ACEOF
2941
3176
rm -f conftest.$ac_objext
2942
3177
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2943
 
  (eval $ac_compile) 2>&5
 
3178
  (eval $ac_compile) 2>conftest.er1
2944
3179
  ac_status=$?
 
3180
  grep -v '^ *+' conftest.er1 >conftest.err
 
3181
  rm -f conftest.er1
 
3182
  cat conftest.err >&5
2945
3183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946
3184
  (exit $ac_status); } &&
2947
 
         { ac_try='test -s conftest.$ac_objext'
 
3185
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3186
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3187
  (eval $ac_try) 2>&5
 
3188
  ac_status=$?
 
3189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3190
  (exit $ac_status); }; } &&
 
3191
         { ac_try='test -s conftest.$ac_objext'
2948
3192
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2949
3193
  (eval $ac_try) 2>&5
2950
3194
  ac_status=$?
2953
3197
  ac_cv_c_const=yes
2954
3198
else
2955
3199
  echo "$as_me: failed program was:" >&5
2956
 
cat conftest.$ac_ext >&5
 
3200
sed 's/^/| /' conftest.$ac_ext >&5
 
3201
 
2957
3202
ac_cv_c_const=no
2958
3203
fi
2959
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
3204
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2960
3205
fi
2961
3206
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2962
3207
echo "${ECHO_T}$ac_cv_c_const" >&6
2991
3236
  echo $ECHO_N "(cached) $ECHO_C" >&6
2992
3237
else
2993
3238
  cat >conftest.$ac_ext <<_ACEOF
2994
 
#line $LINENO "configure"
2995
 
#include "confdefs.h"
 
3239
/* confdefs.h.  */
 
3240
_ACEOF
 
3241
cat confdefs.h >>conftest.$ac_ext
 
3242
cat >>conftest.$ac_ext <<_ACEOF
 
3243
/* end confdefs.h.  */
 
3244
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
 
3245
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
3246
#define gethostbyname innocuous_gethostbyname
 
3247
 
2996
3248
/* System header to define __stub macros and hopefully few prototypes,
2997
 
    which can conflict with char gethostbyname (); below.  */
2998
 
#include <assert.h>
 
3249
    which can conflict with char gethostbyname (); below.
 
3250
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3251
    <limits.h> exists even on freestanding compilers.  */
 
3252
 
 
3253
#ifdef __STDC__
 
3254
# include <limits.h>
 
3255
#else
 
3256
# include <assert.h>
 
3257
#endif
 
3258
 
 
3259
#undef gethostbyname
 
3260
 
2999
3261
/* Override any gcc2 internal prototype to avoid an error.  */
3000
3262
#ifdef __cplusplus
3001
3263
extern "C"
 
3264
{
3002
3265
#endif
3003
3266
/* We use char because int might match the return type of a gcc2
3004
3267
   builtin and then its argument prototype would still apply.  */
3005
3268
char gethostbyname ();
3006
 
char (*f) ();
3007
 
 
3008
 
#ifdef F77_DUMMY_MAIN
3009
 
#  ifdef __cplusplus
3010
 
     extern "C"
3011
 
#  endif
3012
 
   int F77_DUMMY_MAIN() { return 1; }
3013
 
#endif
3014
 
int
3015
 
main ()
3016
 
{
3017
3269
/* The GNU C library defines this for functions which it implements
3018
3270
    to always fail with ENOSYS.  Some functions are actually named
3019
3271
    something starting with __ and the normal name is an alias.  */
3020
3272
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3021
3273
choke me
3022
3274
#else
3023
 
f = gethostbyname;
 
3275
char (*f) () = gethostbyname;
 
3276
#endif
 
3277
#ifdef __cplusplus
 
3278
}
3024
3279
#endif
3025
3280
 
 
3281
int
 
3282
main ()
 
3283
{
 
3284
return f != gethostbyname;
3026
3285
  ;
3027
3286
  return 0;
3028
3287
}
3029
3288
_ACEOF
3030
3289
rm -f conftest.$ac_objext conftest$ac_exeext
3031
3290
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3032
 
  (eval $ac_link) 2>&5
 
3291
  (eval $ac_link) 2>conftest.er1
3033
3292
  ac_status=$?
 
3293
  grep -v '^ *+' conftest.er1 >conftest.err
 
3294
  rm -f conftest.er1
 
3295
  cat conftest.err >&5
3034
3296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035
3297
  (exit $ac_status); } &&
3036
 
         { ac_try='test -s conftest$ac_exeext'
 
3298
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
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); }; } &&
 
3304
         { ac_try='test -s conftest$ac_exeext'
3037
3305
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3038
3306
  (eval $ac_try) 2>&5
3039
3307
  ac_status=$?
3042
3310
  ac_cv_func_gethostbyname=yes
3043
3311
else
3044
3312
  echo "$as_me: failed program was:" >&5
3045
 
cat conftest.$ac_ext >&5
 
3313
sed 's/^/| /' conftest.$ac_ext >&5
 
3314
 
3046
3315
ac_cv_func_gethostbyname=no
3047
3316
fi
3048
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3317
rm -f conftest.err conftest.$ac_objext \
 
3318
      conftest$ac_exeext conftest.$ac_ext
3049
3319
fi
3050
3320
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3051
3321
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3063
3333
  ac_check_lib_save_LIBS=$LIBS
3064
3334
LIBS="-lnsl  $LIBS"
3065
3335
cat >conftest.$ac_ext <<_ACEOF
3066
 
#line $LINENO "configure"
3067
 
#include "confdefs.h"
 
3336
/* confdefs.h.  */
 
3337
_ACEOF
 
3338
cat confdefs.h >>conftest.$ac_ext
 
3339
cat >>conftest.$ac_ext <<_ACEOF
 
3340
/* end confdefs.h.  */
3068
3341
 
3069
3342
/* Override any gcc2 internal prototype to avoid an error.  */
3070
3343
#ifdef __cplusplus
3073
3346
/* We use char because int might match the return type of a gcc2
3074
3347
   builtin and then its argument prototype would still apply.  */
3075
3348
char gethostbyname ();
3076
 
#ifdef F77_DUMMY_MAIN
3077
 
#  ifdef __cplusplus
3078
 
     extern "C"
3079
 
#  endif
3080
 
   int F77_DUMMY_MAIN() { return 1; }
3081
 
#endif
3082
3349
int
3083
3350
main ()
3084
3351
{
3089
3356
_ACEOF
3090
3357
rm -f conftest.$ac_objext conftest$ac_exeext
3091
3358
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3092
 
  (eval $ac_link) 2>&5
 
3359
  (eval $ac_link) 2>conftest.er1
3093
3360
  ac_status=$?
 
3361
  grep -v '^ *+' conftest.er1 >conftest.err
 
3362
  rm -f conftest.er1
 
3363
  cat conftest.err >&5
3094
3364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095
3365
  (exit $ac_status); } &&
3096
 
         { ac_try='test -s conftest$ac_exeext'
 
3366
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3367
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3368
  (eval $ac_try) 2>&5
 
3369
  ac_status=$?
 
3370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3371
  (exit $ac_status); }; } &&
 
3372
         { ac_try='test -s conftest$ac_exeext'
3097
3373
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098
3374
  (eval $ac_try) 2>&5
3099
3375
  ac_status=$?
3102
3378
  ac_cv_lib_nsl_gethostbyname=yes
3103
3379
else
3104
3380
  echo "$as_me: failed program was:" >&5
3105
 
cat conftest.$ac_ext >&5
 
3381
sed 's/^/| /' conftest.$ac_ext >&5
 
3382
 
3106
3383
ac_cv_lib_nsl_gethostbyname=no
3107
3384
fi
3108
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3385
rm -f conftest.err conftest.$ac_objext \
 
3386
      conftest$ac_exeext conftest.$ac_ext
3109
3387
LIBS=$ac_check_lib_save_LIBS
3110
3388
fi
3111
3389
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3129
3407
  ac_check_lib_save_LIBS=$LIBS
3130
3408
LIBS="-lsocket  $LIBS"
3131
3409
cat >conftest.$ac_ext <<_ACEOF
3132
 
#line $LINENO "configure"
3133
 
#include "confdefs.h"
 
3410
/* confdefs.h.  */
 
3411
_ACEOF
 
3412
cat confdefs.h >>conftest.$ac_ext
 
3413
cat >>conftest.$ac_ext <<_ACEOF
 
3414
/* end confdefs.h.  */
3134
3415
 
3135
3416
/* Override any gcc2 internal prototype to avoid an error.  */
3136
3417
#ifdef __cplusplus
3139
3420
/* We use char because int might match the return type of a gcc2
3140
3421
   builtin and then its argument prototype would still apply.  */
3141
3422
char gethostbyname ();
3142
 
#ifdef F77_DUMMY_MAIN
3143
 
#  ifdef __cplusplus
3144
 
     extern "C"
3145
 
#  endif
3146
 
   int F77_DUMMY_MAIN() { return 1; }
3147
 
#endif
3148
3423
int
3149
3424
main ()
3150
3425
{
3155
3430
_ACEOF
3156
3431
rm -f conftest.$ac_objext conftest$ac_exeext
3157
3432
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3158
 
  (eval $ac_link) 2>&5
 
3433
  (eval $ac_link) 2>conftest.er1
3159
3434
  ac_status=$?
 
3435
  grep -v '^ *+' conftest.er1 >conftest.err
 
3436
  rm -f conftest.er1
 
3437
  cat conftest.err >&5
3160
3438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161
3439
  (exit $ac_status); } &&
3162
 
         { ac_try='test -s conftest$ac_exeext'
 
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'
3163
3447
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164
3448
  (eval $ac_try) 2>&5
3165
3449
  ac_status=$?
3168
3452
  ac_cv_lib_socket_gethostbyname=yes
3169
3453
else
3170
3454
  echo "$as_me: failed program was:" >&5
3171
 
cat conftest.$ac_ext >&5
 
3455
sed 's/^/| /' conftest.$ac_ext >&5
 
3456
 
3172
3457
ac_cv_lib_socket_gethostbyname=no
3173
3458
fi
3174
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3459
rm -f conftest.err conftest.$ac_objext \
 
3460
      conftest$ac_exeext conftest.$ac_ext
3175
3461
LIBS=$ac_check_lib_save_LIBS
3176
3462
fi
3177
3463
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3196
3482
  ac_check_lib_save_LIBS=$LIBS
3197
3483
LIBS="-lsocket -lnsl $LIBS"
3198
3484
cat >conftest.$ac_ext <<_ACEOF
3199
 
#line $LINENO "configure"
3200
 
#include "confdefs.h"
 
3485
/* confdefs.h.  */
 
3486
_ACEOF
 
3487
cat confdefs.h >>conftest.$ac_ext
 
3488
cat >>conftest.$ac_ext <<_ACEOF
 
3489
/* end confdefs.h.  */
3201
3490
 
3202
3491
/* Override any gcc2 internal prototype to avoid an error.  */
3203
3492
#ifdef __cplusplus
3206
3495
/* We use char because int might match the return type of a gcc2
3207
3496
   builtin and then its argument prototype would still apply.  */
3208
3497
char gethostbyname ();
3209
 
#ifdef F77_DUMMY_MAIN
3210
 
#  ifdef __cplusplus
3211
 
     extern "C"
3212
 
#  endif
3213
 
   int F77_DUMMY_MAIN() { return 1; }
3214
 
#endif
3215
3498
int
3216
3499
main ()
3217
3500
{
3222
3505
_ACEOF
3223
3506
rm -f conftest.$ac_objext conftest$ac_exeext
3224
3507
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3225
 
  (eval $ac_link) 2>&5
 
3508
  (eval $ac_link) 2>conftest.er1
3226
3509
  ac_status=$?
 
3510
  grep -v '^ *+' conftest.er1 >conftest.err
 
3511
  rm -f conftest.er1
 
3512
  cat conftest.err >&5
3227
3513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228
3514
  (exit $ac_status); } &&
3229
 
         { ac_try='test -s conftest$ac_exeext'
 
3515
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3516
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3517
  (eval $ac_try) 2>&5
 
3518
  ac_status=$?
 
3519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3520
  (exit $ac_status); }; } &&
 
3521
         { ac_try='test -s conftest$ac_exeext'
3230
3522
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231
3523
  (eval $ac_try) 2>&5
3232
3524
  ac_status=$?
3235
3527
  ac_cv_lib_socket_gethostbyname=yes
3236
3528
else
3237
3529
  echo "$as_me: failed program was:" >&5
3238
 
cat conftest.$ac_ext >&5
 
3530
sed 's/^/| /' conftest.$ac_ext >&5
 
3531
 
3239
3532
ac_cv_lib_socket_gethostbyname=no
3240
3533
fi
3241
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3534
rm -f conftest.err conftest.$ac_objext \
 
3535
      conftest$ac_exeext conftest.$ac_ext
3242
3536
LIBS=$ac_check_lib_save_LIBS
3243
3537
fi
3244
3538
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3254
3548
  ac_check_lib_save_LIBS=$LIBS
3255
3549
LIBS="-lresolv  $LIBS"
3256
3550
cat >conftest.$ac_ext <<_ACEOF
3257
 
#line $LINENO "configure"
3258
 
#include "confdefs.h"
 
3551
/* confdefs.h.  */
 
3552
_ACEOF
 
3553
cat confdefs.h >>conftest.$ac_ext
 
3554
cat >>conftest.$ac_ext <<_ACEOF
 
3555
/* end confdefs.h.  */
3259
3556
 
3260
3557
/* Override any gcc2 internal prototype to avoid an error.  */
3261
3558
#ifdef __cplusplus
3264
3561
/* We use char because int might match the return type of a gcc2
3265
3562
   builtin and then its argument prototype would still apply.  */
3266
3563
char gethostbyname ();
3267
 
#ifdef F77_DUMMY_MAIN
3268
 
#  ifdef __cplusplus
3269
 
     extern "C"
3270
 
#  endif
3271
 
   int F77_DUMMY_MAIN() { return 1; }
3272
 
#endif
3273
3564
int
3274
3565
main ()
3275
3566
{
3280
3571
_ACEOF
3281
3572
rm -f conftest.$ac_objext conftest$ac_exeext
3282
3573
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3283
 
  (eval $ac_link) 2>&5
 
3574
  (eval $ac_link) 2>conftest.er1
3284
3575
  ac_status=$?
 
3576
  grep -v '^ *+' conftest.er1 >conftest.err
 
3577
  rm -f conftest.er1
 
3578
  cat conftest.err >&5
3285
3579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286
3580
  (exit $ac_status); } &&
3287
 
         { ac_try='test -s conftest$ac_exeext'
 
3581
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3582
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3583
  (eval $ac_try) 2>&5
 
3584
  ac_status=$?
 
3585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3586
  (exit $ac_status); }; } &&
 
3587
         { ac_try='test -s conftest$ac_exeext'
3288
3588
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289
3589
  (eval $ac_try) 2>&5
3290
3590
  ac_status=$?
3293
3593
  ac_cv_lib_resolv_gethostbyname=yes
3294
3594
else
3295
3595
  echo "$as_me: failed program was:" >&5
3296
 
cat conftest.$ac_ext >&5
 
3596
sed 's/^/| /' conftest.$ac_ext >&5
 
3597
 
3297
3598
ac_cv_lib_resolv_gethostbyname=no
3298
3599
fi
3299
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3600
rm -f conftest.err conftest.$ac_objext \
 
3601
      conftest$ac_exeext conftest.$ac_ext
3300
3602
LIBS=$ac_check_lib_save_LIBS
3301
3603
fi
3302
3604
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3322
3624
  echo $ECHO_N "(cached) $ECHO_C" >&6
3323
3625
else
3324
3626
  cat >conftest.$ac_ext <<_ACEOF
3325
 
#line $LINENO "configure"
3326
 
#include "confdefs.h"
 
3627
/* confdefs.h.  */
 
3628
_ACEOF
 
3629
cat confdefs.h >>conftest.$ac_ext
 
3630
cat >>conftest.$ac_ext <<_ACEOF
 
3631
/* end confdefs.h.  */
 
3632
/* Define socket to an innocuous variant, in case <limits.h> declares socket.
 
3633
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
3634
#define socket innocuous_socket
 
3635
 
3327
3636
/* System header to define __stub macros and hopefully few prototypes,
3328
 
    which can conflict with char socket (); below.  */
3329
 
#include <assert.h>
 
3637
    which can conflict with char socket (); below.
 
3638
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3639
    <limits.h> exists even on freestanding compilers.  */
 
3640
 
 
3641
#ifdef __STDC__
 
3642
# include <limits.h>
 
3643
#else
 
3644
# include <assert.h>
 
3645
#endif
 
3646
 
 
3647
#undef socket
 
3648
 
3330
3649
/* Override any gcc2 internal prototype to avoid an error.  */
3331
3650
#ifdef __cplusplus
3332
3651
extern "C"
 
3652
{
3333
3653
#endif
3334
3654
/* We use char because int might match the return type of a gcc2
3335
3655
   builtin and then its argument prototype would still apply.  */
3336
3656
char socket ();
3337
 
char (*f) ();
3338
 
 
3339
 
#ifdef F77_DUMMY_MAIN
3340
 
#  ifdef __cplusplus
3341
 
     extern "C"
3342
 
#  endif
3343
 
   int F77_DUMMY_MAIN() { return 1; }
3344
 
#endif
3345
 
int
3346
 
main ()
3347
 
{
3348
3657
/* The GNU C library defines this for functions which it implements
3349
3658
    to always fail with ENOSYS.  Some functions are actually named
3350
3659
    something starting with __ and the normal name is an alias.  */
3351
3660
#if defined (__stub_socket) || defined (__stub___socket)
3352
3661
choke me
3353
3662
#else
3354
 
f = socket;
 
3663
char (*f) () = socket;
 
3664
#endif
 
3665
#ifdef __cplusplus
 
3666
}
3355
3667
#endif
3356
3668
 
 
3669
int
 
3670
main ()
 
3671
{
 
3672
return f != socket;
3357
3673
  ;
3358
3674
  return 0;
3359
3675
}
3360
3676
_ACEOF
3361
3677
rm -f conftest.$ac_objext conftest$ac_exeext
3362
3678
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3363
 
  (eval $ac_link) 2>&5
 
3679
  (eval $ac_link) 2>conftest.er1
3364
3680
  ac_status=$?
 
3681
  grep -v '^ *+' conftest.er1 >conftest.err
 
3682
  rm -f conftest.er1
 
3683
  cat conftest.err >&5
3365
3684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366
3685
  (exit $ac_status); } &&
3367
 
         { ac_try='test -s conftest$ac_exeext'
 
3686
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3687
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3688
  (eval $ac_try) 2>&5
 
3689
  ac_status=$?
 
3690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3691
  (exit $ac_status); }; } &&
 
3692
         { ac_try='test -s conftest$ac_exeext'
3368
3693
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369
3694
  (eval $ac_try) 2>&5
3370
3695
  ac_status=$?
3373
3698
  ac_cv_func_socket=yes
3374
3699
else
3375
3700
  echo "$as_me: failed program was:" >&5
3376
 
cat conftest.$ac_ext >&5
 
3701
sed 's/^/| /' conftest.$ac_ext >&5
 
3702
 
3377
3703
ac_cv_func_socket=no
3378
3704
fi
3379
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3705
rm -f conftest.err conftest.$ac_objext \
 
3706
      conftest$ac_exeext conftest.$ac_ext
3380
3707
fi
3381
3708
echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3382
3709
echo "${ECHO_T}$ac_cv_func_socket" >&6
3392
3719
  ac_check_lib_save_LIBS=$LIBS
3393
3720
LIBS="-lsocket  $LIBS"
3394
3721
cat >conftest.$ac_ext <<_ACEOF
3395
 
#line $LINENO "configure"
3396
 
#include "confdefs.h"
 
3722
/* confdefs.h.  */
 
3723
_ACEOF
 
3724
cat confdefs.h >>conftest.$ac_ext
 
3725
cat >>conftest.$ac_ext <<_ACEOF
 
3726
/* end confdefs.h.  */
3397
3727
 
3398
3728
/* Override any gcc2 internal prototype to avoid an error.  */
3399
3729
#ifdef __cplusplus
3402
3732
/* We use char because int might match the return type of a gcc2
3403
3733
   builtin and then its argument prototype would still apply.  */
3404
3734
char socket ();
3405
 
#ifdef F77_DUMMY_MAIN
3406
 
#  ifdef __cplusplus
3407
 
     extern "C"
3408
 
#  endif
3409
 
   int F77_DUMMY_MAIN() { return 1; }
3410
 
#endif
3411
3735
int
3412
3736
main ()
3413
3737
{
3418
3742
_ACEOF
3419
3743
rm -f conftest.$ac_objext conftest$ac_exeext
3420
3744
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3421
 
  (eval $ac_link) 2>&5
 
3745
  (eval $ac_link) 2>conftest.er1
3422
3746
  ac_status=$?
 
3747
  grep -v '^ *+' conftest.er1 >conftest.err
 
3748
  rm -f conftest.er1
 
3749
  cat conftest.err >&5
3423
3750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424
3751
  (exit $ac_status); } &&
3425
 
         { ac_try='test -s conftest$ac_exeext'
 
3752
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3753
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3754
  (eval $ac_try) 2>&5
 
3755
  ac_status=$?
 
3756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3757
  (exit $ac_status); }; } &&
 
3758
         { ac_try='test -s conftest$ac_exeext'
3426
3759
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427
3760
  (eval $ac_try) 2>&5
3428
3761
  ac_status=$?
3431
3764
  ac_cv_lib_socket_socket=yes
3432
3765
else
3433
3766
  echo "$as_me: failed program was:" >&5
3434
 
cat conftest.$ac_ext >&5
 
3767
sed 's/^/| /' conftest.$ac_ext >&5
 
3768
 
3435
3769
ac_cv_lib_socket_socket=no
3436
3770
fi
3437
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3771
rm -f conftest.err conftest.$ac_objext \
 
3772
      conftest$ac_exeext conftest.$ac_ext
3438
3773
LIBS=$ac_check_lib_save_LIBS
3439
3774
fi
3440
3775
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3455
3790
  ac_check_lib_save_LIBS=$LIBS
3456
3791
LIBS="-lsocket -lnsl $LIBS"
3457
3792
cat >conftest.$ac_ext <<_ACEOF
3458
 
#line $LINENO "configure"
3459
 
#include "confdefs.h"
 
3793
/* confdefs.h.  */
 
3794
_ACEOF
 
3795
cat confdefs.h >>conftest.$ac_ext
 
3796
cat >>conftest.$ac_ext <<_ACEOF
 
3797
/* end confdefs.h.  */
3460
3798
 
3461
3799
/* Override any gcc2 internal prototype to avoid an error.  */
3462
3800
#ifdef __cplusplus
3465
3803
/* We use char because int might match the return type of a gcc2
3466
3804
   builtin and then its argument prototype would still apply.  */
3467
3805
char socket ();
3468
 
#ifdef F77_DUMMY_MAIN
3469
 
#  ifdef __cplusplus
3470
 
     extern "C"
3471
 
#  endif
3472
 
   int F77_DUMMY_MAIN() { return 1; }
3473
 
#endif
3474
3806
int
3475
3807
main ()
3476
3808
{
3481
3813
_ACEOF
3482
3814
rm -f conftest.$ac_objext conftest$ac_exeext
3483
3815
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3484
 
  (eval $ac_link) 2>&5
 
3816
  (eval $ac_link) 2>conftest.er1
3485
3817
  ac_status=$?
 
3818
  grep -v '^ *+' conftest.er1 >conftest.err
 
3819
  rm -f conftest.er1
 
3820
  cat conftest.err >&5
3486
3821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487
3822
  (exit $ac_status); } &&
3488
 
         { ac_try='test -s conftest$ac_exeext'
 
3823
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3824
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3825
  (eval $ac_try) 2>&5
 
3826
  ac_status=$?
 
3827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3828
  (exit $ac_status); }; } &&
 
3829
         { ac_try='test -s conftest$ac_exeext'
3489
3830
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490
3831
  (eval $ac_try) 2>&5
3491
3832
  ac_status=$?
3494
3835
  ac_cv_lib_socket_socket=yes
3495
3836
else
3496
3837
  echo "$as_me: failed program was:" >&5
3497
 
cat conftest.$ac_ext >&5
 
3838
sed 's/^/| /' conftest.$ac_ext >&5
 
3839
 
3498
3840
ac_cv_lib_socket_socket=no
3499
3841
fi
3500
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3842
rm -f conftest.err conftest.$ac_objext \
 
3843
      conftest$ac_exeext conftest.$ac_ext
3501
3844
LIBS=$ac_check_lib_save_LIBS
3502
3845
fi
3503
3846
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3582
3925
echo "${ECHO_T}$enable_dns" >&6
3583
3926
 
3584
3927
  if test "$enable_dns" = yes ; then
3585
 
    echo "$as_me:$LINENO: checking for res_search" >&5
 
3928
        echo "$as_me:$LINENO: checking for res_search" >&5
3586
3929
echo $ECHO_N "checking for res_search... $ECHO_C" >&6
3587
 
if test "${ac_cv_func_res_search+set}" = set; then
3588
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3589
 
else
3590
 
  cat >conftest.$ac_ext <<_ACEOF
3591
 
#line $LINENO "configure"
3592
 
#include "confdefs.h"
3593
 
/* System header to define __stub macros and hopefully few prototypes,
3594
 
    which can conflict with char res_search (); below.  */
3595
 
#include <assert.h>
 
3930
        cat >conftest.$ac_ext <<_ACEOF
 
3931
/* confdefs.h.  */
 
3932
_ACEOF
 
3933
cat confdefs.h >>conftest.$ac_ext
 
3934
cat >>conftest.$ac_ext <<_ACEOF
 
3935
/* end confdefs.h.  */
 
3936
 
3596
3937
/* Override any gcc2 internal prototype to avoid an error.  */
3597
3938
#ifdef __cplusplus
3598
3939
extern "C"
3600
3941
/* We use char because int might match the return type of a gcc2
3601
3942
   builtin and then its argument prototype would still apply.  */
3602
3943
char res_search ();
3603
 
char (*f) ();
3604
 
 
3605
 
#ifdef F77_DUMMY_MAIN
3606
 
#  ifdef __cplusplus
3607
 
     extern "C"
3608
 
#  endif
3609
 
   int F77_DUMMY_MAIN() { return 1; }
3610
 
#endif
3611
3944
int
3612
3945
main ()
3613
3946
{
3614
 
/* The GNU C library defines this for functions which it implements
3615
 
    to always fail with ENOSYS.  Some functions are actually named
3616
 
    something starting with __ and the normal name is an alias.  */
3617
 
#if defined (__stub_res_search) || defined (__stub___res_search)
3618
 
choke me
3619
 
#else
3620
 
f = res_search;
3621
 
#endif
3622
 
 
 
3947
res_search ();
3623
3948
  ;
3624
3949
  return 0;
3625
3950
}
3626
3951
_ACEOF
3627
3952
rm -f conftest.$ac_objext conftest$ac_exeext
3628
3953
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3629
 
  (eval $ac_link) 2>&5
 
3954
  (eval $ac_link) 2>conftest.er1
3630
3955
  ac_status=$?
 
3956
  grep -v '^ *+' conftest.er1 >conftest.err
 
3957
  rm -f conftest.er1
 
3958
  cat conftest.err >&5
3631
3959
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632
3960
  (exit $ac_status); } &&
3633
 
         { ac_try='test -s conftest$ac_exeext'
 
3961
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3962
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3963
  (eval $ac_try) 2>&5
 
3964
  ac_status=$?
 
3965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3966
  (exit $ac_status); }; } &&
 
3967
         { ac_try='test -s conftest$ac_exeext'
3634
3968
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635
3969
  (eval $ac_try) 2>&5
3636
3970
  ac_status=$?
3637
3971
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638
3972
  (exit $ac_status); }; }; then
3639
 
  ac_cv_func_res_search=yes
 
3973
  echo "$as_me:$LINENO: result: yes" >&5
 
3974
echo "${ECHO_T}yes" >&6
3640
3975
else
3641
3976
  echo "$as_me: failed program was:" >&5
3642
 
cat conftest.$ac_ext >&5
3643
 
ac_cv_func_res_search=no
3644
 
fi
3645
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3646
 
fi
3647
 
echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
3648
 
echo "${ECHO_T}$ac_cv_func_res_search" >&6
3649
 
if test $ac_cv_func_res_search = yes; then
3650
 
  :
3651
 
else
3652
 
  echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
 
3977
sed 's/^/| /' conftest.$ac_ext >&5
 
3978
 
 
3979
echo "$as_me:$LINENO: result: no" >&5
 
3980
echo "${ECHO_T}no" >&6
 
3981
fi
 
3982
rm -f conftest.err conftest.$ac_objext \
 
3983
      conftest$ac_exeext conftest.$ac_ext
 
3984
        saved_LIBS="$LIBS"
 
3985
        LIBS="$LIBS -lresolv"
 
3986
        echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
3653
3987
echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
3654
 
if test "${ac_cv_lib_resolv_res_search+set}" = set; then
3655
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3656
 
else
3657
 
  ac_check_lib_save_LIBS=$LIBS
3658
 
LIBS="-lresolv  $LIBS"
3659
 
cat >conftest.$ac_ext <<_ACEOF
3660
 
#line $LINENO "configure"
3661
 
#include "confdefs.h"
 
3988
        cat >conftest.$ac_ext <<_ACEOF
3662
3989
 
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 res_search ();
3670
 
#ifdef F77_DUMMY_MAIN
3671
 
#  ifdef __cplusplus
3672
 
     extern "C"
3673
 
#  endif
3674
 
   int F77_DUMMY_MAIN() { return 1; }
3675
 
#endif
3676
 
int
3677
 
main ()
 
3990
#include <resolv.h>
 
3991
int main()
3678
3992
{
3679
 
res_search ();
3680
 
  ;
3681
 
  return 0;
 
3993
       res_search (0, 0, 0, 0, 0);
 
3994
       return 0;
3682
3995
}
3683
3996
_ACEOF
3684
3997
rm -f conftest.$ac_objext conftest$ac_exeext
3685
3998
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3686
 
  (eval $ac_link) 2>&5
 
3999
  (eval $ac_link) 2>conftest.er1
3687
4000
  ac_status=$?
 
4001
  grep -v '^ *+' conftest.er1 >conftest.err
 
4002
  rm -f conftest.er1
 
4003
  cat conftest.err >&5
3688
4004
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689
4005
  (exit $ac_status); } &&
3690
 
         { ac_try='test -s conftest$ac_exeext'
 
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'
3691
4013
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3692
4014
  (eval $ac_try) 2>&5
3693
4015
  ac_status=$?
3694
4016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695
4017
  (exit $ac_status); }; }; then
3696
 
  ac_cv_lib_resolv_res_search=yes
 
4018
  LIBS="$LIBS -lresolv"; RESOLV_LIB=-lresolv; echo "$as_me:$LINENO: result: yes" >&5
 
4019
echo "${ECHO_T}yes" >&6
3697
4020
else
3698
4021
  echo "$as_me: failed program was:" >&5
3699
 
cat conftest.$ac_ext >&5
3700
 
ac_cv_lib_resolv_res_search=no
3701
 
fi
3702
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3703
 
LIBS=$ac_check_lib_save_LIBS
3704
 
fi
3705
 
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
3706
 
echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
3707
 
if test $ac_cv_lib_resolv_res_search = yes; then
3708
 
  LIBS="$LIBS -lresolv" ; RESOLV_LIB=-lresolv
3709
 
else
3710
 
  { { echo "$as_me:$LINENO: error: Cannot find resolver support routine res_search in -lresolv." >&5
3711
 
echo "$as_me: error: Cannot find resolver support routine res_search in -lresolv." >&2;}
3712
 
   { (exit 1); exit 1; }; }
3713
 
 
3714
 
fi
3715
 
 
3716
 
fi
3717
 
 
 
4022
sed 's/^/| /' conftest.$ac_ext >&5
 
4023
 
 
4024
LIBS="$saved_LIBS"; echo "$as_me:$LINENO: result: no" >&5
 
4025
echo "${ECHO_T}no" >&6
 
4026
fi
 
4027
rm -f conftest.err conftest.$ac_objext \
 
4028
      conftest$ac_exeext conftest.$ac_ext
3718
4029
  fi
3719
4030
 
3720
4031
 
3737
4048
  ac_check_lib_save_LIBS=$LIBS
3738
4049
LIBS="-lresolv  $LIBS"
3739
4050
cat >conftest.$ac_ext <<_ACEOF
3740
 
#line $LINENO "configure"
3741
 
#include "confdefs.h"
 
4051
/* confdefs.h.  */
 
4052
_ACEOF
 
4053
cat confdefs.h >>conftest.$ac_ext
 
4054
cat >>conftest.$ac_ext <<_ACEOF
 
4055
/* end confdefs.h.  */
3742
4056
 
3743
4057
/* Override any gcc2 internal prototype to avoid an error.  */
3744
4058
#ifdef __cplusplus
3747
4061
/* We use char because int might match the return type of a gcc2
3748
4062
   builtin and then its argument prototype would still apply.  */
3749
4063
char res_send ();
3750
 
#ifdef F77_DUMMY_MAIN
3751
 
#  ifdef __cplusplus
3752
 
     extern "C"
3753
 
#  endif
3754
 
   int F77_DUMMY_MAIN() { return 1; }
3755
 
#endif
3756
4064
int
3757
4065
main ()
3758
4066
{
3763
4071
_ACEOF
3764
4072
rm -f conftest.$ac_objext conftest$ac_exeext
3765
4073
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3766
 
  (eval $ac_link) 2>&5
 
4074
  (eval $ac_link) 2>conftest.er1
3767
4075
  ac_status=$?
 
4076
  grep -v '^ *+' conftest.er1 >conftest.err
 
4077
  rm -f conftest.er1
 
4078
  cat conftest.err >&5
3768
4079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769
4080
  (exit $ac_status); } &&
3770
 
         { ac_try='test -s conftest$ac_exeext'
 
4081
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4082
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4083
  (eval $ac_try) 2>&5
 
4084
  ac_status=$?
 
4085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4086
  (exit $ac_status); }; } &&
 
4087
         { ac_try='test -s conftest$ac_exeext'
3771
4088
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3772
4089
  (eval $ac_try) 2>&5
3773
4090
  ac_status=$?
3776
4093
  ac_cv_lib_resolv_res_send=yes
3777
4094
else
3778
4095
  echo "$as_me: failed program was:" >&5
3779
 
cat conftest.$ac_ext >&5
 
4096
sed 's/^/| /' conftest.$ac_ext >&5
 
4097
 
3780
4098
ac_cv_lib_resolv_res_send=no
3781
4099
fi
3782
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4100
rm -f conftest.err conftest.$ac_objext \
 
4101
      conftest$ac_exeext conftest.$ac_ext
3783
4102
LIBS=$ac_check_lib_save_LIBS
3784
4103
fi
3785
4104
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
3854
4173
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3855
4174
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3856
4175
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
4176
# OS/2's system install, which has a completely different semantic
3857
4177
# ./install, which can be erroneously created by make from ./install.sh.
3858
4178
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3859
4179
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3870
4190
case $as_dir/ in
3871
4191
  ./ | .// | /cC/* | \
3872
4192
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
4193
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3873
4194
  /usr/ucb/* ) ;;
3874
4195
  *)
3875
4196
    # OSF1 and SCO ODT 3.0 have their own names for install.
3877
4198
    # by default.
3878
4199
    for ac_prog in ginstall scoinst install; do
3879
4200
      for ac_exec_ext in '' $ac_executable_extensions; do
3880
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3881
 
          if test $ac_prog = install &&
3882
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3883
 
            # AIX install.  It has an incompatible calling convention.
3884
 
            :
3885
 
          elif test $ac_prog = install &&
3886
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3887
 
            # program-specific install script used by HP pwplus--don't use.
3888
 
            :
3889
 
          else
3890
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3891
 
            break 3
3892
 
          fi
3893
 
        fi
 
4201
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
4202
          if test $ac_prog = install &&
 
4203
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
4204
            # AIX install.  It has an incompatible calling convention.
 
4205
            :
 
4206
          elif test $ac_prog = install &&
 
4207
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
4208
            # program-specific install script used by HP pwplus--don't use.
 
4209
            :
 
4210
          else
 
4211
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
4212
            break 3
 
4213
          fi
 
4214
        fi
3894
4215
      done
3895
4216
    done
3896
4217
    ;;
3929
4250
  ac_check_lib_save_LIBS=$LIBS
3930
4251
LIBS="-lutil  $LIBS"
3931
4252
cat >conftest.$ac_ext <<_ACEOF
3932
 
#line $LINENO "configure"
3933
 
#include "confdefs.h"
3934
 
 
3935
 
 
3936
 
#ifdef F77_DUMMY_MAIN
3937
 
#  ifdef __cplusplus
3938
 
     extern "C"
3939
 
#  endif
3940
 
   int F77_DUMMY_MAIN() { return 1; }
3941
 
#endif
 
4253
/* confdefs.h.  */
 
4254
_ACEOF
 
4255
cat confdefs.h >>conftest.$ac_ext
 
4256
cat >>conftest.$ac_ext <<_ACEOF
 
4257
/* end confdefs.h.  */
 
4258
 
 
4259
 
3942
4260
int
3943
4261
main ()
3944
4262
{
3949
4267
_ACEOF
3950
4268
rm -f conftest.$ac_objext conftest$ac_exeext
3951
4269
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3952
 
  (eval $ac_link) 2>&5
 
4270
  (eval $ac_link) 2>conftest.er1
3953
4271
  ac_status=$?
 
4272
  grep -v '^ *+' conftest.er1 >conftest.err
 
4273
  rm -f conftest.er1
 
4274
  cat conftest.err >&5
3954
4275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955
4276
  (exit $ac_status); } &&
3956
 
         { ac_try='test -s conftest$ac_exeext'
 
4277
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4278
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4279
  (eval $ac_try) 2>&5
 
4280
  ac_status=$?
 
4281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4282
  (exit $ac_status); }; } &&
 
4283
         { ac_try='test -s conftest$ac_exeext'
3957
4284
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958
4285
  (eval $ac_try) 2>&5
3959
4286
  ac_status=$?
3962
4289
  ac_cv_lib_util_main=yes
3963
4290
else
3964
4291
  echo "$as_me: failed program was:" >&5
3965
 
cat conftest.$ac_ext >&5
 
4292
sed 's/^/| /' conftest.$ac_ext >&5
 
4293
 
3966
4294
ac_cv_lib_util_main=no
3967
4295
fi
3968
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4296
rm -f conftest.err conftest.$ac_objext \
 
4297
      conftest$ac_exeext conftest.$ac_ext
3969
4298
LIBS=$ac_check_lib_save_LIBS
3970
4299
fi
3971
4300
echo "$as_me:$LINENO: result: $ac_cv_lib_util_main" >&5
3990
4319
  ac_check_lib_save_LIBS=$LIBS
3991
4320
LIBS="-lcrypt  $LIBS"
3992
4321
cat >conftest.$ac_ext <<_ACEOF
3993
 
#line $LINENO "configure"
3994
 
#include "confdefs.h"
 
4322
/* confdefs.h.  */
 
4323
_ACEOF
 
4324
cat confdefs.h >>conftest.$ac_ext
 
4325
cat >>conftest.$ac_ext <<_ACEOF
 
4326
/* end confdefs.h.  */
3995
4327
 
3996
4328
/* Override any gcc2 internal prototype to avoid an error.  */
3997
4329
#ifdef __cplusplus
4000
4332
/* We use char because int might match the return type of a gcc2
4001
4333
   builtin and then its argument prototype would still apply.  */
4002
4334
char crypt ();
4003
 
#ifdef F77_DUMMY_MAIN
4004
 
#  ifdef __cplusplus
4005
 
     extern "C"
4006
 
#  endif
4007
 
   int F77_DUMMY_MAIN() { return 1; }
4008
 
#endif
4009
4335
int
4010
4336
main ()
4011
4337
{
4016
4342
_ACEOF
4017
4343
rm -f conftest.$ac_objext conftest$ac_exeext
4018
4344
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4019
 
  (eval $ac_link) 2>&5
 
4345
  (eval $ac_link) 2>conftest.er1
4020
4346
  ac_status=$?
 
4347
  grep -v '^ *+' conftest.er1 >conftest.err
 
4348
  rm -f conftest.er1
 
4349
  cat conftest.err >&5
4021
4350
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022
4351
  (exit $ac_status); } &&
4023
 
         { ac_try='test -s conftest$ac_exeext'
 
4352
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4353
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4354
  (eval $ac_try) 2>&5
 
4355
  ac_status=$?
 
4356
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4357
  (exit $ac_status); }; } &&
 
4358
         { ac_try='test -s conftest$ac_exeext'
4024
4359
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4025
4360
  (eval $ac_try) 2>&5
4026
4361
  ac_status=$?
4029
4364
  ac_cv_lib_crypt_crypt=yes
4030
4365
else
4031
4366
  echo "$as_me: failed program was:" >&5
4032
 
cat conftest.$ac_ext >&5
 
4367
sed 's/^/| /' conftest.$ac_ext >&5
 
4368
 
4033
4369
ac_cv_lib_crypt_crypt=no
4034
4370
fi
4035
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4371
rm -f conftest.err conftest.$ac_objext \
 
4372
      conftest$ac_exeext conftest.$ac_ext
4036
4373
LIBS=$ac_check_lib_save_LIBS
4037
4374
fi
4038
4375
echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
4056
4393
  ac_check_lib_save_LIBS=$LIBS
4057
4394
LIBS="-lodm  $LIBS"
4058
4395
cat >conftest.$ac_ext <<_ACEOF
4059
 
#line $LINENO "configure"
4060
 
#include "confdefs.h"
4061
 
 
4062
 
 
4063
 
#ifdef F77_DUMMY_MAIN
4064
 
#  ifdef __cplusplus
4065
 
     extern "C"
4066
 
#  endif
4067
 
   int F77_DUMMY_MAIN() { return 1; }
4068
 
#endif
 
4396
/* confdefs.h.  */
 
4397
_ACEOF
 
4398
cat confdefs.h >>conftest.$ac_ext
 
4399
cat >>conftest.$ac_ext <<_ACEOF
 
4400
/* end confdefs.h.  */
 
4401
 
 
4402
 
4069
4403
int
4070
4404
main ()
4071
4405
{
4076
4410
_ACEOF
4077
4411
rm -f conftest.$ac_objext conftest$ac_exeext
4078
4412
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4079
 
  (eval $ac_link) 2>&5
 
4413
  (eval $ac_link) 2>conftest.er1
4080
4414
  ac_status=$?
 
4415
  grep -v '^ *+' conftest.er1 >conftest.err
 
4416
  rm -f conftest.er1
 
4417
  cat conftest.err >&5
4081
4418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082
4419
  (exit $ac_status); } &&
4083
 
         { ac_try='test -s conftest$ac_exeext'
 
4420
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4421
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4422
  (eval $ac_try) 2>&5
 
4423
  ac_status=$?
 
4424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4425
  (exit $ac_status); }; } &&
 
4426
         { ac_try='test -s conftest$ac_exeext'
4084
4427
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085
4428
  (eval $ac_try) 2>&5
4086
4429
  ac_status=$?
4089
4432
  ac_cv_lib_odm_main=yes
4090
4433
else
4091
4434
  echo "$as_me: failed program was:" >&5
4092
 
cat conftest.$ac_ext >&5
 
4435
sed 's/^/| /' conftest.$ac_ext >&5
 
4436
 
4093
4437
ac_cv_lib_odm_main=no
4094
4438
fi
4095
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4439
rm -f conftest.err conftest.$ac_objext \
 
4440
      conftest$ac_exeext conftest.$ac_ext
4096
4441
LIBS=$ac_check_lib_save_LIBS
4097
4442
fi
4098
4443
echo "$as_me:$LINENO: result: $ac_cv_lib_odm_main" >&5
4106
4451
  ac_check_lib_save_LIBS=$LIBS
4107
4452
LIBS="-ls  $LIBS"
4108
4453
cat >conftest.$ac_ext <<_ACEOF
4109
 
#line $LINENO "configure"
4110
 
#include "confdefs.h"
4111
 
 
4112
 
 
4113
 
#ifdef F77_DUMMY_MAIN
4114
 
#  ifdef __cplusplus
4115
 
     extern "C"
4116
 
#  endif
4117
 
   int F77_DUMMY_MAIN() { return 1; }
4118
 
#endif
 
4454
/* confdefs.h.  */
 
4455
_ACEOF
 
4456
cat confdefs.h >>conftest.$ac_ext
 
4457
cat >>conftest.$ac_ext <<_ACEOF
 
4458
/* end confdefs.h.  */
 
4459
 
 
4460
 
4119
4461
int
4120
4462
main ()
4121
4463
{
4126
4468
_ACEOF
4127
4469
rm -f conftest.$ac_objext conftest$ac_exeext
4128
4470
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4129
 
  (eval $ac_link) 2>&5
 
4471
  (eval $ac_link) 2>conftest.er1
4130
4472
  ac_status=$?
 
4473
  grep -v '^ *+' conftest.er1 >conftest.err
 
4474
  rm -f conftest.er1
 
4475
  cat conftest.err >&5
4131
4476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132
4477
  (exit $ac_status); } &&
4133
 
         { ac_try='test -s conftest$ac_exeext'
 
4478
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4479
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4480
  (eval $ac_try) 2>&5
 
4481
  ac_status=$?
 
4482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4483
  (exit $ac_status); }; } &&
 
4484
         { ac_try='test -s conftest$ac_exeext'
4134
4485
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4135
4486
  (eval $ac_try) 2>&5
4136
4487
  ac_status=$?
4139
4490
  ac_cv_lib_s_main=yes
4140
4491
else
4141
4492
  echo "$as_me: failed program was:" >&5
4142
 
cat conftest.$ac_ext >&5
 
4493
sed 's/^/| /' conftest.$ac_ext >&5
 
4494
 
4143
4495
ac_cv_lib_s_main=no
4144
4496
fi
4145
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4497
rm -f conftest.err conftest.$ac_objext \
 
4498
      conftest$ac_exeext conftest.$ac_ext
4146
4499
LIBS=$ac_check_lib_save_LIBS
4147
4500
fi
4148
4501
echo "$as_me:$LINENO: result: $ac_cv_lib_s_main" >&5
4156
4509
  ac_check_lib_save_LIBS=$LIBS
4157
4510
LIBS="-lcfg  $LIBS"
4158
4511
cat >conftest.$ac_ext <<_ACEOF
4159
 
#line $LINENO "configure"
4160
 
#include "confdefs.h"
4161
 
 
4162
 
 
4163
 
#ifdef F77_DUMMY_MAIN
4164
 
#  ifdef __cplusplus
4165
 
     extern "C"
4166
 
#  endif
4167
 
   int F77_DUMMY_MAIN() { return 1; }
4168
 
#endif
 
4512
/* confdefs.h.  */
 
4513
_ACEOF
 
4514
cat confdefs.h >>conftest.$ac_ext
 
4515
cat >>conftest.$ac_ext <<_ACEOF
 
4516
/* end confdefs.h.  */
 
4517
 
 
4518
 
4169
4519
int
4170
4520
main ()
4171
4521
{
4176
4526
_ACEOF
4177
4527
rm -f conftest.$ac_objext conftest$ac_exeext
4178
4528
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4179
 
  (eval $ac_link) 2>&5
 
4529
  (eval $ac_link) 2>conftest.er1
4180
4530
  ac_status=$?
 
4531
  grep -v '^ *+' conftest.er1 >conftest.err
 
4532
  rm -f conftest.er1
 
4533
  cat conftest.err >&5
4181
4534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182
4535
  (exit $ac_status); } &&
4183
 
         { ac_try='test -s conftest$ac_exeext'
 
4536
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4537
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4538
  (eval $ac_try) 2>&5
 
4539
  ac_status=$?
 
4540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4541
  (exit $ac_status); }; } &&
 
4542
         { ac_try='test -s conftest$ac_exeext'
4184
4543
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185
4544
  (eval $ac_try) 2>&5
4186
4545
  ac_status=$?
4189
4548
  ac_cv_lib_cfg_main=yes
4190
4549
else
4191
4550
  echo "$as_me: failed program was:" >&5
4192
 
cat conftest.$ac_ext >&5
 
4551
sed 's/^/| /' conftest.$ac_ext >&5
 
4552
 
4193
4553
ac_cv_lib_cfg_main=no
4194
4554
fi
4195
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4555
rm -f conftest.err conftest.$ac_objext \
 
4556
      conftest$ac_exeext conftest.$ac_ext
4196
4557
LIBS=$ac_check_lib_save_LIBS
4197
4558
fi
4198
4559
echo "$as_me:$LINENO: result: $ac_cv_lib_cfg_main" >&5
4221
4582
  ac_check_lib_save_LIBS=$LIBS
4222
4583
LIBS="-lsecurity  $LIBS"
4223
4584
cat >conftest.$ac_ext <<_ACEOF
4224
 
#line $LINENO "configure"
4225
 
#include "confdefs.h"
 
4585
/* confdefs.h.  */
 
4586
_ACEOF
 
4587
cat confdefs.h >>conftest.$ac_ext
 
4588
cat >>conftest.$ac_ext <<_ACEOF
 
4589
/* end confdefs.h.  */
4226
4590
 
4227
4591
/* Override any gcc2 internal prototype to avoid an error.  */
4228
4592
#ifdef __cplusplus
4231
4595
/* We use char because int might match the return type of a gcc2
4232
4596
   builtin and then its argument prototype would still apply.  */
4233
4597
char setluid ();
4234
 
#ifdef F77_DUMMY_MAIN
4235
 
#  ifdef __cplusplus
4236
 
     extern "C"
4237
 
#  endif
4238
 
   int F77_DUMMY_MAIN() { return 1; }
4239
 
#endif
4240
4598
int
4241
4599
main ()
4242
4600
{
4247
4605
_ACEOF
4248
4606
rm -f conftest.$ac_objext conftest$ac_exeext
4249
4607
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4250
 
  (eval $ac_link) 2>&5
 
4608
  (eval $ac_link) 2>conftest.er1
4251
4609
  ac_status=$?
 
4610
  grep -v '^ *+' conftest.er1 >conftest.err
 
4611
  rm -f conftest.er1
 
4612
  cat conftest.err >&5
4252
4613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253
4614
  (exit $ac_status); } &&
4254
 
         { ac_try='test -s conftest$ac_exeext'
 
4615
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4616
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4617
  (eval $ac_try) 2>&5
 
4618
  ac_status=$?
 
4619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4620
  (exit $ac_status); }; } &&
 
4621
         { ac_try='test -s conftest$ac_exeext'
4255
4622
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256
4623
  (eval $ac_try) 2>&5
4257
4624
  ac_status=$?
4260
4627
  ac_cv_lib_security_setluid=yes
4261
4628
else
4262
4629
  echo "$as_me: failed program was:" >&5
4263
 
cat conftest.$ac_ext >&5
 
4630
sed 's/^/| /' conftest.$ac_ext >&5
 
4631
 
4264
4632
ac_cv_lib_security_setluid=no
4265
4633
fi
4266
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4634
rm -f conftest.err conftest.$ac_objext \
 
4635
      conftest$ac_exeext conftest.$ac_ext
4267
4636
LIBS=$ac_check_lib_save_LIBS
4268
4637
fi
4269
4638
echo "$as_me:$LINENO: result: $ac_cv_lib_security_setluid" >&5
4306
4675
 
4307
4676
 
4308
4677
 
 
4678
echo "$as_me:$LINENO: checking for egrep" >&5
 
4679
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
4680
if test "${ac_cv_prog_egrep+set}" = set; then
 
4681
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4682
else
 
4683
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
4684
    then ac_cv_prog_egrep='grep -E'
 
4685
    else ac_cv_prog_egrep='egrep'
 
4686
    fi
 
4687
fi
 
4688
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
4689
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
4690
 EGREP=$ac_cv_prog_egrep
 
4691
 
 
4692
 
4309
4693
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4310
4694
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4311
4695
if test "${ac_cv_header_stdc+set}" = set; then
4312
4696
  echo $ECHO_N "(cached) $ECHO_C" >&6
4313
4697
else
4314
4698
  cat >conftest.$ac_ext <<_ACEOF
4315
 
#line $LINENO "configure"
4316
 
#include "confdefs.h"
 
4699
/* confdefs.h.  */
 
4700
_ACEOF
 
4701
cat confdefs.h >>conftest.$ac_ext
 
4702
cat >>conftest.$ac_ext <<_ACEOF
 
4703
/* end confdefs.h.  */
4317
4704
#include <stdlib.h>
4318
4705
#include <stdarg.h>
4319
4706
#include <string.h>
4320
4707
#include <float.h>
4321
4708
 
 
4709
int
 
4710
main ()
 
4711
{
 
4712
 
 
4713
  ;
 
4714
  return 0;
 
4715
}
4322
4716
_ACEOF
4323
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4324
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4717
rm -f conftest.$ac_objext
 
4718
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4719
  (eval $ac_compile) 2>conftest.er1
4325
4720
  ac_status=$?
4326
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
4721
  grep -v '^ *+' conftest.er1 >conftest.err
4327
4722
  rm -f conftest.er1
4328
4723
  cat conftest.err >&5
4329
4724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330
 
  (exit $ac_status); } >/dev/null; then
4331
 
  if test -s conftest.err; then
4332
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4333
 
  else
4334
 
    ac_cpp_err=
4335
 
  fi
4336
 
else
4337
 
  ac_cpp_err=yes
4338
 
fi
4339
 
if test -z "$ac_cpp_err"; then
 
4725
  (exit $ac_status); } &&
 
4726
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4727
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4728
  (eval $ac_try) 2>&5
 
4729
  ac_status=$?
 
4730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4731
  (exit $ac_status); }; } &&
 
4732
         { ac_try='test -s conftest.$ac_objext'
 
4733
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4734
  (eval $ac_try) 2>&5
 
4735
  ac_status=$?
 
4736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4737
  (exit $ac_status); }; }; then
4340
4738
  ac_cv_header_stdc=yes
4341
4739
else
4342
4740
  echo "$as_me: failed program was:" >&5
4343
 
  cat conftest.$ac_ext >&5
4344
 
  ac_cv_header_stdc=no
 
4741
sed 's/^/| /' conftest.$ac_ext >&5
 
4742
 
 
4743
ac_cv_header_stdc=no
4345
4744
fi
4346
 
rm -f conftest.err conftest.$ac_ext
 
4745
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4347
4746
 
4348
4747
if test $ac_cv_header_stdc = yes; then
4349
4748
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4350
4749
  cat >conftest.$ac_ext <<_ACEOF
4351
 
#line $LINENO "configure"
4352
 
#include "confdefs.h"
 
4750
/* confdefs.h.  */
 
4751
_ACEOF
 
4752
cat confdefs.h >>conftest.$ac_ext
 
4753
cat >>conftest.$ac_ext <<_ACEOF
 
4754
/* end confdefs.h.  */
4353
4755
#include <string.h>
4354
4756
 
4355
4757
_ACEOF
4356
4758
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4357
 
  egrep "memchr" >/dev/null 2>&1; then
 
4759
  $EGREP "memchr" >/dev/null 2>&1; then
4358
4760
  :
4359
4761
else
4360
4762
  ac_cv_header_stdc=no
4366
4768
if test $ac_cv_header_stdc = yes; then
4367
4769
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4368
4770
  cat >conftest.$ac_ext <<_ACEOF
4369
 
#line $LINENO "configure"
4370
 
#include "confdefs.h"
 
4771
/* confdefs.h.  */
 
4772
_ACEOF
 
4773
cat confdefs.h >>conftest.$ac_ext
 
4774
cat >>conftest.$ac_ext <<_ACEOF
 
4775
/* end confdefs.h.  */
4371
4776
#include <stdlib.h>
4372
4777
 
4373
4778
_ACEOF
4374
4779
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4375
 
  egrep "free" >/dev/null 2>&1; then
 
4780
  $EGREP "free" >/dev/null 2>&1; then
4376
4781
  :
4377
4782
else
4378
4783
  ac_cv_header_stdc=no
4387
4792
  :
4388
4793
else
4389
4794
  cat >conftest.$ac_ext <<_ACEOF
4390
 
#line $LINENO "configure"
4391
 
#include "confdefs.h"
 
4795
/* confdefs.h.  */
 
4796
_ACEOF
 
4797
cat confdefs.h >>conftest.$ac_ext
 
4798
cat >>conftest.$ac_ext <<_ACEOF
 
4799
/* end confdefs.h.  */
4392
4800
#include <ctype.h>
4393
4801
#if ((' ' & 0x0FF) == 0x020)
4394
4802
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4395
4803
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4396
4804
#else
4397
 
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4398
 
                     || ('j' <= (c) && (c) <= 'r') \
4399
 
                     || ('s' <= (c) && (c) <= 'z'))
 
4805
# define ISLOWER(c) \
 
4806
                   (('a' <= (c) && (c) <= 'i') \
 
4807
                     || ('j' <= (c) && (c) <= 'r') \
 
4808
                     || ('s' <= (c) && (c) <= 'z'))
4400
4809
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4401
4810
#endif
4402
4811
 
4407
4816
  int i;
4408
4817
  for (i = 0; i < 256; i++)
4409
4818
    if (XOR (islower (i), ISLOWER (i))
4410
 
        || toupper (i) != TOUPPER (i))
 
4819
        || toupper (i) != TOUPPER (i))
4411
4820
      exit(2);
4412
4821
  exit (0);
4413
4822
}
4427
4836
else
4428
4837
  echo "$as_me: program exited with status $ac_status" >&5
4429
4838
echo "$as_me: failed program was:" >&5
4430
 
cat conftest.$ac_ext >&5
 
4839
sed 's/^/| /' conftest.$ac_ext >&5
 
4840
 
4431
4841
( exit $ac_status )
4432
4842
ac_cv_header_stdc=no
4433
4843
fi
4434
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4844
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4435
4845
fi
4436
4846
fi
4437
4847
fi
4456
4866
 
4457
4867
 
4458
4868
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4459
 
                  inttypes.h stdint.h unistd.h
 
4869
                  inttypes.h stdint.h unistd.h
4460
4870
do
4461
4871
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4462
4872
echo "$as_me:$LINENO: checking for $ac_header" >&5
4465
4875
  echo $ECHO_N "(cached) $ECHO_C" >&6
4466
4876
else
4467
4877
  cat >conftest.$ac_ext <<_ACEOF
4468
 
#line $LINENO "configure"
4469
 
#include "confdefs.h"
 
4878
/* confdefs.h.  */
 
4879
_ACEOF
 
4880
cat confdefs.h >>conftest.$ac_ext
 
4881
cat >>conftest.$ac_ext <<_ACEOF
 
4882
/* end confdefs.h.  */
4470
4883
$ac_includes_default
4471
4884
 
4472
4885
#include <$ac_header>
4473
4886
_ACEOF
4474
4887
rm -f conftest.$ac_objext
4475
4888
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4476
 
  (eval $ac_compile) 2>&5
 
4889
  (eval $ac_compile) 2>conftest.er1
4477
4890
  ac_status=$?
 
4891
  grep -v '^ *+' conftest.er1 >conftest.err
 
4892
  rm -f conftest.er1
 
4893
  cat conftest.err >&5
4478
4894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479
4895
  (exit $ac_status); } &&
4480
 
         { ac_try='test -s conftest.$ac_objext'
 
4896
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4897
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4898
  (eval $ac_try) 2>&5
 
4899
  ac_status=$?
 
4900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4901
  (exit $ac_status); }; } &&
 
4902
         { ac_try='test -s conftest.$ac_objext'
4481
4903
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482
4904
  (eval $ac_try) 2>&5
4483
4905
  ac_status=$?
4486
4908
  eval "$as_ac_Header=yes"
4487
4909
else
4488
4910
  echo "$as_me: failed program was:" >&5
4489
 
cat conftest.$ac_ext >&5
 
4911
sed 's/^/| /' conftest.$ac_ext >&5
 
4912
 
4490
4913
eval "$as_ac_Header=no"
4491
4914
fi
4492
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
4915
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4493
4916
fi
4494
4917
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4495
4918
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4509
4932
  echo $ECHO_N "(cached) $ECHO_C" >&6
4510
4933
else
4511
4934
  cat >conftest.$ac_ext <<_ACEOF
4512
 
#line $LINENO "configure"
4513
 
#include "confdefs.h"
 
4935
/* confdefs.h.  */
 
4936
_ACEOF
 
4937
cat confdefs.h >>conftest.$ac_ext
 
4938
cat >>conftest.$ac_ext <<_ACEOF
 
4939
/* end confdefs.h.  */
4514
4940
$ac_includes_default
4515
 
#ifdef F77_DUMMY_MAIN
4516
 
#  ifdef __cplusplus
4517
 
     extern "C"
4518
 
#  endif
4519
 
   int F77_DUMMY_MAIN() { return 1; }
4520
 
#endif
4521
4941
int
4522
4942
main ()
4523
4943
{
4531
4951
_ACEOF
4532
4952
rm -f conftest.$ac_objext
4533
4953
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4534
 
  (eval $ac_compile) 2>&5
 
4954
  (eval $ac_compile) 2>conftest.er1
4535
4955
  ac_status=$?
 
4956
  grep -v '^ *+' conftest.er1 >conftest.err
 
4957
  rm -f conftest.er1
 
4958
  cat conftest.err >&5
4536
4959
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537
4960
  (exit $ac_status); } &&
4538
 
         { ac_try='test -s conftest.$ac_objext'
 
4961
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4962
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4963
  (eval $ac_try) 2>&5
 
4964
  ac_status=$?
 
4965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4966
  (exit $ac_status); }; } &&
 
4967
         { ac_try='test -s conftest.$ac_objext'
4539
4968
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540
4969
  (eval $ac_try) 2>&5
4541
4970
  ac_status=$?
4544
4973
  ac_cv_type_pid_t=yes
4545
4974
else
4546
4975
  echo "$as_me: failed program was:" >&5
4547
 
cat conftest.$ac_ext >&5
 
4976
sed 's/^/| /' conftest.$ac_ext >&5
 
4977
 
4548
4978
ac_cv_type_pid_t=no
4549
4979
fi
4550
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
4980
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4551
4981
fi
4552
4982
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4553
4983
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4579
5009
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4580
5010
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4581
5011
cat >conftest.$ac_ext <<_ACEOF
4582
 
#line $LINENO "configure"
4583
 
#include "confdefs.h"
 
5012
/* confdefs.h.  */
 
5013
_ACEOF
 
5014
cat confdefs.h >>conftest.$ac_ext
 
5015
cat >>conftest.$ac_ext <<_ACEOF
 
5016
/* end confdefs.h.  */
4584
5017
$ac_includes_default
4585
5018
#include <$ac_header>
4586
5019
_ACEOF
4587
5020
rm -f conftest.$ac_objext
4588
5021
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4589
 
  (eval $ac_compile) 2>&5
 
5022
  (eval $ac_compile) 2>conftest.er1
4590
5023
  ac_status=$?
 
5024
  grep -v '^ *+' conftest.er1 >conftest.err
 
5025
  rm -f conftest.er1
 
5026
  cat conftest.err >&5
4591
5027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592
5028
  (exit $ac_status); } &&
4593
 
         { ac_try='test -s conftest.$ac_objext'
 
5029
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5030
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5031
  (eval $ac_try) 2>&5
 
5032
  ac_status=$?
 
5033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5034
  (exit $ac_status); }; } &&
 
5035
         { ac_try='test -s conftest.$ac_objext'
4594
5036
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595
5037
  (eval $ac_try) 2>&5
4596
5038
  ac_status=$?
4599
5041
  ac_header_compiler=yes
4600
5042
else
4601
5043
  echo "$as_me: failed program was:" >&5
4602
 
cat conftest.$ac_ext >&5
 
5044
sed 's/^/| /' conftest.$ac_ext >&5
 
5045
 
4603
5046
ac_header_compiler=no
4604
5047
fi
4605
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
5048
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4606
5049
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4607
5050
echo "${ECHO_T}$ac_header_compiler" >&6
4608
5051
 
4610
5053
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4611
5054
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4612
5055
cat >conftest.$ac_ext <<_ACEOF
4613
 
#line $LINENO "configure"
4614
 
#include "confdefs.h"
 
5056
/* confdefs.h.  */
 
5057
_ACEOF
 
5058
cat confdefs.h >>conftest.$ac_ext
 
5059
cat >>conftest.$ac_ext <<_ACEOF
 
5060
/* end confdefs.h.  */
4615
5061
#include <$ac_header>
4616
5062
_ACEOF
4617
5063
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4618
5064
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4619
5065
  ac_status=$?
4620
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
5066
  grep -v '^ *+' conftest.er1 >conftest.err
4621
5067
  rm -f conftest.er1
4622
5068
  cat conftest.err >&5
4623
5069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624
5070
  (exit $ac_status); } >/dev/null; then
4625
5071
  if test -s conftest.err; then
4626
5072
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5073
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4627
5074
  else
4628
5075
    ac_cpp_err=
4629
5076
  fi
4634
5081
  ac_header_preproc=yes
4635
5082
else
4636
5083
  echo "$as_me: failed program was:" >&5
4637
 
  cat conftest.$ac_ext >&5
 
5084
sed 's/^/| /' conftest.$ac_ext >&5
 
5085
 
4638
5086
  ac_header_preproc=no
4639
5087
fi
4640
5088
rm -f conftest.err conftest.$ac_ext
4642
5090
echo "${ECHO_T}$ac_header_preproc" >&6
4643
5091
 
4644
5092
# So?  What about this header?
4645
 
case $ac_header_compiler:$ac_header_preproc in
4646
 
  yes:no )
 
5093
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5094
  yes:no: )
4647
5095
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4648
5096
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4649
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4650
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4651
 
  no:yes )
 
5097
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5098
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5099
    ac_header_preproc=yes
 
5100
    ;;
 
5101
  no:yes:* )
4652
5102
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4653
5103
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4654
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4655
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
5104
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5105
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5106
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5107
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5108
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5109
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4656
5110
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4657
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
 
5111
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5112
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5113
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5114
    (
 
5115
      cat <<\_ASBOX
 
5116
## ------------------------------------------ ##
 
5117
## Report this to the AC_PACKAGE_NAME lists.  ##
 
5118
## ------------------------------------------ ##
 
5119
_ASBOX
 
5120
    ) |
 
5121
      sed "s/^/$as_me: WARNING:     /" >&2
 
5122
    ;;
4658
5123
esac
4659
5124
echo "$as_me:$LINENO: checking for $ac_header" >&5
4660
5125
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4661
5126
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4662
5127
  echo $ECHO_N "(cached) $ECHO_C" >&6
4663
5128
else
4664
 
  eval "$as_ac_Header=$ac_header_preproc"
 
5129
  eval "$as_ac_Header=\$ac_header_preproc"
4665
5130
fi
4666
5131
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4667
5132
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4687
5152
  echo $ECHO_N "(cached) $ECHO_C" >&6
4688
5153
else
4689
5154
  cat >conftest.$ac_ext <<_ACEOF
4690
 
#line $LINENO "configure"
4691
 
#include "confdefs.h"
 
5155
/* confdefs.h.  */
 
5156
_ACEOF
 
5157
cat confdefs.h >>conftest.$ac_ext
 
5158
cat >>conftest.$ac_ext <<_ACEOF
 
5159
/* end confdefs.h.  */
 
5160
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5161
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5162
#define $ac_func innocuous_$ac_func
 
5163
 
4692
5164
/* System header to define __stub macros and hopefully few prototypes,
4693
 
    which can conflict with char $ac_func (); below.  */
4694
 
#include <assert.h>
 
5165
    which can conflict with char $ac_func (); below.
 
5166
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5167
    <limits.h> exists even on freestanding compilers.  */
 
5168
 
 
5169
#ifdef __STDC__
 
5170
# include <limits.h>
 
5171
#else
 
5172
# include <assert.h>
 
5173
#endif
 
5174
 
 
5175
#undef $ac_func
 
5176
 
4695
5177
/* Override any gcc2 internal prototype to avoid an error.  */
4696
5178
#ifdef __cplusplus
4697
5179
extern "C"
 
5180
{
4698
5181
#endif
4699
5182
/* We use char because int might match the return type of a gcc2
4700
5183
   builtin and then its argument prototype would still apply.  */
4701
5184
char $ac_func ();
4702
 
char (*f) ();
4703
 
 
4704
 
#ifdef F77_DUMMY_MAIN
4705
 
#  ifdef __cplusplus
4706
 
     extern "C"
4707
 
#  endif
4708
 
   int F77_DUMMY_MAIN() { return 1; }
4709
 
#endif
4710
 
int
4711
 
main ()
4712
 
{
4713
5185
/* The GNU C library defines this for functions which it implements
4714
5186
    to always fail with ENOSYS.  Some functions are actually named
4715
5187
    something starting with __ and the normal name is an alias.  */
4716
5188
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4717
5189
choke me
4718
5190
#else
4719
 
f = $ac_func;
 
5191
char (*f) () = $ac_func;
 
5192
#endif
 
5193
#ifdef __cplusplus
 
5194
}
4720
5195
#endif
4721
5196
 
 
5197
int
 
5198
main ()
 
5199
{
 
5200
return f != $ac_func;
4722
5201
  ;
4723
5202
  return 0;
4724
5203
}
4725
5204
_ACEOF
4726
5205
rm -f conftest.$ac_objext conftest$ac_exeext
4727
5206
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4728
 
  (eval $ac_link) 2>&5
 
5207
  (eval $ac_link) 2>conftest.er1
4729
5208
  ac_status=$?
 
5209
  grep -v '^ *+' conftest.er1 >conftest.err
 
5210
  rm -f conftest.er1
 
5211
  cat conftest.err >&5
4730
5212
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731
5213
  (exit $ac_status); } &&
4732
 
         { ac_try='test -s conftest$ac_exeext'
 
5214
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5215
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5216
  (eval $ac_try) 2>&5
 
5217
  ac_status=$?
 
5218
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5219
  (exit $ac_status); }; } &&
 
5220
         { ac_try='test -s conftest$ac_exeext'
4733
5221
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734
5222
  (eval $ac_try) 2>&5
4735
5223
  ac_status=$?
4738
5226
  eval "$as_ac_var=yes"
4739
5227
else
4740
5228
  echo "$as_me: failed program was:" >&5
4741
 
cat conftest.$ac_ext >&5
 
5229
sed 's/^/| /' conftest.$ac_ext >&5
 
5230
 
4742
5231
eval "$as_ac_var=no"
4743
5232
fi
4744
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5233
rm -f conftest.err conftest.$ac_objext \
 
5234
      conftest$ac_exeext conftest.$ac_ext
4745
5235
fi
4746
5236
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4747
5237
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4753
5243
fi
4754
5244
done
4755
5245
 
4756
 
ac_cv_func_fork_works=$ac_cv_func_fork
4757
5246
if test "x$ac_cv_func_fork" = xyes; then
4758
5247
  echo "$as_me:$LINENO: checking for working fork" >&5
4759
5248
echo $ECHO_N "checking for working fork... $ECHO_C" >&6
4772
5261
      /* Some systems only have a dummy stub for fork() */
4773
5262
      int main ()
4774
5263
      {
4775
 
        if (fork() < 0)
4776
 
          exit (1);
4777
 
        exit (0);
 
5264
        if (fork() < 0)
 
5265
          exit (1);
 
5266
        exit (0);
4778
5267
      }
4779
5268
_ACEOF
4780
5269
rm -f conftest$ac_exeext
4792
5281
else
4793
5282
  echo "$as_me: program exited with status $ac_status" >&5
4794
5283
echo "$as_me: failed program was:" >&5
4795
 
cat conftest.$ac_ext >&5
 
5284
sed 's/^/| /' conftest.$ac_ext >&5
 
5285
 
4796
5286
( exit $ac_status )
4797
5287
ac_cv_func_fork_works=no
4798
5288
fi
4799
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5289
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4800
5290
fi
4801
5291
fi
4802
5292
echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
4803
5293
echo "${ECHO_T}$ac_cv_func_fork_works" >&6
4804
5294
 
 
5295
else
 
5296
  ac_cv_func_fork_works=$ac_cv_func_fork
4805
5297
fi
4806
5298
if test "x$ac_cv_func_fork_works" = xcross; then
4807
5299
  case $host in
4827
5319
  ac_cv_func_vfork_works=cross
4828
5320
else
4829
5321
  cat >conftest.$ac_ext <<_ACEOF
4830
 
#line $LINENO "configure"
4831
 
#include "confdefs.h"
 
5322
/* confdefs.h.  */
 
5323
_ACEOF
 
5324
cat confdefs.h >>conftest.$ac_ext
 
5325
cat >>conftest.$ac_ext <<_ACEOF
 
5326
/* end confdefs.h.  */
4832
5327
/* Thanks to Paul Eggert for this test.  */
4833
5328
#include <stdio.h>
 
5329
#include <stdlib.h>
4834
5330
#include <sys/types.h>
4835
5331
#include <sys/stat.h>
 
5332
#include <sys/wait.h>
4836
5333
#if HAVE_UNISTD_H
4837
5334
# include <unistd.h>
4838
5335
#endif
4845
5342
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
4846
5343
   static variable whose address is put into a register that is
4847
5344
   clobbered by the vfork.  */
4848
 
static
 
5345
static void
4849
5346
#ifdef __cplusplus
4850
5347
sparc_address_test (int arg)
4851
5348
# else
4873
5370
  pid_t parent = getpid ();
4874
5371
  pid_t child;
4875
5372
 
4876
 
  sparc_address_test ();
 
5373
  sparc_address_test (0);
4877
5374
 
4878
5375
  child = vfork ();
4879
5376
 
4938
5435
else
4939
5436
  echo "$as_me: program exited with status $ac_status" >&5
4940
5437
echo "$as_me: failed program was:" >&5
4941
 
cat conftest.$ac_ext >&5
 
5438
sed 's/^/| /' conftest.$ac_ext >&5
 
5439
 
4942
5440
( exit $ac_status )
4943
5441
ac_cv_func_vfork_works=no
4944
5442
fi
4945
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5443
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4946
5444
fi
4947
5445
fi
4948
5446
echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
4950
5448
 
4951
5449
fi;
4952
5450
if test "x$ac_cv_func_fork_works" = xcross; then
4953
 
  ac_cv_func_vfork_works=ac_cv_func_vfork
 
5451
  ac_cv_func_vfork_works=$ac_cv_func_vfork
4954
5452
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
4955
5453
echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
4956
5454
fi
4982
5480
  echo $ECHO_N "(cached) $ECHO_C" >&6
4983
5481
else
4984
5482
  cat >conftest.$ac_ext <<_ACEOF
4985
 
#line $LINENO "configure"
4986
 
#include "confdefs.h"
 
5483
/* confdefs.h.  */
 
5484
_ACEOF
 
5485
cat confdefs.h >>conftest.$ac_ext
 
5486
cat >>conftest.$ac_ext <<_ACEOF
 
5487
/* end confdefs.h.  */
4987
5488
$ac_includes_default
4988
 
#ifdef F77_DUMMY_MAIN
4989
 
#  ifdef __cplusplus
4990
 
     extern "C"
4991
 
#  endif
4992
 
   int F77_DUMMY_MAIN() { return 1; }
4993
 
#endif
4994
5489
int
4995
5490
main ()
4996
5491
{
5004
5499
_ACEOF
5005
5500
rm -f conftest.$ac_objext
5006
5501
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5007
 
  (eval $ac_compile) 2>&5
 
5502
  (eval $ac_compile) 2>conftest.er1
5008
5503
  ac_status=$?
 
5504
  grep -v '^ *+' conftest.er1 >conftest.err
 
5505
  rm -f conftest.er1
 
5506
  cat conftest.err >&5
5009
5507
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010
5508
  (exit $ac_status); } &&
5011
 
         { ac_try='test -s conftest.$ac_objext'
 
5509
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5510
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5511
  (eval $ac_try) 2>&5
 
5512
  ac_status=$?
 
5513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5514
  (exit $ac_status); }; } &&
 
5515
         { ac_try='test -s conftest.$ac_objext'
5012
5516
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013
5517
  (eval $ac_try) 2>&5
5014
5518
  ac_status=$?
5017
5521
  ac_cv_type_mode_t=yes
5018
5522
else
5019
5523
  echo "$as_me: failed program was:" >&5
5020
 
cat conftest.$ac_ext >&5
 
5524
sed 's/^/| /' conftest.$ac_ext >&5
 
5525
 
5021
5526
ac_cv_type_mode_t=no
5022
5527
fi
5023
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
5528
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5024
5529
fi
5025
5530
echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5026
5531
echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5063
5568
  echo $ECHO_N "(cached) $ECHO_C" >&6
5064
5569
else
5065
5570
  cat >conftest.$ac_ext <<_ACEOF
5066
 
#line $LINENO "configure"
5067
 
#include "confdefs.h"
 
5571
/* confdefs.h.  */
 
5572
_ACEOF
 
5573
cat confdefs.h >>conftest.$ac_ext
 
5574
cat >>conftest.$ac_ext <<_ACEOF
 
5575
/* end confdefs.h.  */
 
5576
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5577
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5578
#define $ac_func innocuous_$ac_func
 
5579
 
5068
5580
/* System header to define __stub macros and hopefully few prototypes,
5069
 
    which can conflict with char $ac_func (); below.  */
5070
 
#include <assert.h>
 
5581
    which can conflict with char $ac_func (); below.
 
5582
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5583
    <limits.h> exists even on freestanding compilers.  */
 
5584
 
 
5585
#ifdef __STDC__
 
5586
# include <limits.h>
 
5587
#else
 
5588
# include <assert.h>
 
5589
#endif
 
5590
 
 
5591
#undef $ac_func
 
5592
 
5071
5593
/* Override any gcc2 internal prototype to avoid an error.  */
5072
5594
#ifdef __cplusplus
5073
5595
extern "C"
 
5596
{
5074
5597
#endif
5075
5598
/* We use char because int might match the return type of a gcc2
5076
5599
   builtin and then its argument prototype would still apply.  */
5077
5600
char $ac_func ();
5078
 
char (*f) ();
5079
 
 
5080
 
#ifdef F77_DUMMY_MAIN
5081
 
#  ifdef __cplusplus
5082
 
     extern "C"
5083
 
#  endif
5084
 
   int F77_DUMMY_MAIN() { return 1; }
5085
 
#endif
5086
 
int
5087
 
main ()
5088
 
{
5089
5601
/* The GNU C library defines this for functions which it implements
5090
5602
    to always fail with ENOSYS.  Some functions are actually named
5091
5603
    something starting with __ and the normal name is an alias.  */
5092
5604
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5093
5605
choke me
5094
5606
#else
5095
 
f = $ac_func;
 
5607
char (*f) () = $ac_func;
 
5608
#endif
 
5609
#ifdef __cplusplus
 
5610
}
5096
5611
#endif
5097
5612
 
 
5613
int
 
5614
main ()
 
5615
{
 
5616
return f != $ac_func;
5098
5617
  ;
5099
5618
  return 0;
5100
5619
}
5101
5620
_ACEOF
5102
5621
rm -f conftest.$ac_objext conftest$ac_exeext
5103
5622
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5104
 
  (eval $ac_link) 2>&5
 
5623
  (eval $ac_link) 2>conftest.er1
5105
5624
  ac_status=$?
 
5625
  grep -v '^ *+' conftest.er1 >conftest.err
 
5626
  rm -f conftest.er1
 
5627
  cat conftest.err >&5
5106
5628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107
5629
  (exit $ac_status); } &&
5108
 
         { ac_try='test -s conftest$ac_exeext'
 
5630
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5631
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5632
  (eval $ac_try) 2>&5
 
5633
  ac_status=$?
 
5634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5635
  (exit $ac_status); }; } &&
 
5636
         { ac_try='test -s conftest$ac_exeext'
5109
5637
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110
5638
  (eval $ac_try) 2>&5
5111
5639
  ac_status=$?
5114
5642
  eval "$as_ac_var=yes"
5115
5643
else
5116
5644
  echo "$as_me: failed program was:" >&5
5117
 
cat conftest.$ac_ext >&5
 
5645
sed 's/^/| /' conftest.$ac_ext >&5
 
5646
 
5118
5647
eval "$as_ac_var=no"
5119
5648
fi
5120
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5649
rm -f conftest.err conftest.$ac_objext \
 
5650
      conftest$ac_exeext conftest.$ac_ext
5121
5651
fi
5122
5652
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5123
5653
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5162
5692
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5163
5693
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5164
5694
cat >conftest.$ac_ext <<_ACEOF
5165
 
#line $LINENO "configure"
5166
 
#include "confdefs.h"
 
5695
/* confdefs.h.  */
 
5696
_ACEOF
 
5697
cat confdefs.h >>conftest.$ac_ext
 
5698
cat >>conftest.$ac_ext <<_ACEOF
 
5699
/* end confdefs.h.  */
5167
5700
$ac_includes_default
5168
5701
#include <$ac_header>
5169
5702
_ACEOF
5170
5703
rm -f conftest.$ac_objext
5171
5704
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5172
 
  (eval $ac_compile) 2>&5
 
5705
  (eval $ac_compile) 2>conftest.er1
5173
5706
  ac_status=$?
 
5707
  grep -v '^ *+' conftest.er1 >conftest.err
 
5708
  rm -f conftest.er1
 
5709
  cat conftest.err >&5
5174
5710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175
5711
  (exit $ac_status); } &&
5176
 
         { ac_try='test -s conftest.$ac_objext'
 
5712
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5713
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5714
  (eval $ac_try) 2>&5
 
5715
  ac_status=$?
 
5716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5717
  (exit $ac_status); }; } &&
 
5718
         { ac_try='test -s conftest.$ac_objext'
5177
5719
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5178
5720
  (eval $ac_try) 2>&5
5179
5721
  ac_status=$?
5182
5724
  ac_header_compiler=yes
5183
5725
else
5184
5726
  echo "$as_me: failed program was:" >&5
5185
 
cat conftest.$ac_ext >&5
 
5727
sed 's/^/| /' conftest.$ac_ext >&5
 
5728
 
5186
5729
ac_header_compiler=no
5187
5730
fi
5188
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
5731
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5189
5732
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5190
5733
echo "${ECHO_T}$ac_header_compiler" >&6
5191
5734
 
5193
5736
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5194
5737
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5195
5738
cat >conftest.$ac_ext <<_ACEOF
5196
 
#line $LINENO "configure"
5197
 
#include "confdefs.h"
 
5739
/* confdefs.h.  */
 
5740
_ACEOF
 
5741
cat confdefs.h >>conftest.$ac_ext
 
5742
cat >>conftest.$ac_ext <<_ACEOF
 
5743
/* end confdefs.h.  */
5198
5744
#include <$ac_header>
5199
5745
_ACEOF
5200
5746
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5201
5747
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5202
5748
  ac_status=$?
5203
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
5749
  grep -v '^ *+' conftest.er1 >conftest.err
5204
5750
  rm -f conftest.er1
5205
5751
  cat conftest.err >&5
5206
5752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207
5753
  (exit $ac_status); } >/dev/null; then
5208
5754
  if test -s conftest.err; then
5209
5755
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5756
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5210
5757
  else
5211
5758
    ac_cpp_err=
5212
5759
  fi
5217
5764
  ac_header_preproc=yes
5218
5765
else
5219
5766
  echo "$as_me: failed program was:" >&5
5220
 
  cat conftest.$ac_ext >&5
 
5767
sed 's/^/| /' conftest.$ac_ext >&5
 
5768
 
5221
5769
  ac_header_preproc=no
5222
5770
fi
5223
5771
rm -f conftest.err conftest.$ac_ext
5225
5773
echo "${ECHO_T}$ac_header_preproc" >&6
5226
5774
 
5227
5775
# So?  What about this header?
5228
 
case $ac_header_compiler:$ac_header_preproc in
5229
 
  yes:no )
 
5776
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5777
  yes:no: )
5230
5778
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5231
5779
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5232
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5233
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5234
 
  no:yes )
 
5780
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5781
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5782
    ac_header_preproc=yes
 
5783
    ;;
 
5784
  no:yes:* )
5235
5785
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5236
5786
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5237
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5238
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
5787
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5788
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5789
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5790
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5791
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5792
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5239
5793
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5240
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
 
5794
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5795
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5796
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5797
    (
 
5798
      cat <<\_ASBOX
 
5799
## ------------------------------------------ ##
 
5800
## Report this to the AC_PACKAGE_NAME lists.  ##
 
5801
## ------------------------------------------ ##
 
5802
_ASBOX
 
5803
    ) |
 
5804
      sed "s/^/$as_me: WARNING:     /" >&2
 
5805
    ;;
5241
5806
esac
5242
5807
echo "$as_me:$LINENO: checking for $ac_header" >&5
5243
5808
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5244
5809
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5245
5810
  echo $ECHO_N "(cached) $ECHO_C" >&6
5246
5811
else
5247
 
  eval "$as_ac_Header=$ac_header_preproc"
 
5812
  eval "$as_ac_Header=\$ac_header_preproc"
5248
5813
fi
5249
5814
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5250
5815
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5267
5832
  echo $ECHO_N "(cached) $ECHO_C" >&6
5268
5833
else
5269
5834
  cat >conftest.$ac_ext <<_ACEOF
5270
 
#line $LINENO "configure"
5271
 
#include "confdefs.h"
 
5835
/* confdefs.h.  */
 
5836
_ACEOF
 
5837
cat confdefs.h >>conftest.$ac_ext
 
5838
cat >>conftest.$ac_ext <<_ACEOF
 
5839
/* end confdefs.h.  */
5272
5840
#include <stdarg.h>
5273
 
#ifdef F77_DUMMY_MAIN
5274
 
#  ifdef __cplusplus
5275
 
     extern "C"
5276
 
#  endif
5277
 
   int F77_DUMMY_MAIN() { return 1; }
5278
 
#endif
5279
5841
int
5280
5842
main ()
5281
5843
{
5294
5856
_ACEOF
5295
5857
rm -f conftest.$ac_objext
5296
5858
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5297
 
  (eval $ac_compile) 2>&5
 
5859
  (eval $ac_compile) 2>conftest.er1
5298
5860
  ac_status=$?
 
5861
  grep -v '^ *+' conftest.er1 >conftest.err
 
5862
  rm -f conftest.er1
 
5863
  cat conftest.err >&5
5299
5864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300
5865
  (exit $ac_status); } &&
5301
 
         { ac_try='test -s conftest.$ac_objext'
 
5866
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5867
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5868
  (eval $ac_try) 2>&5
 
5869
  ac_status=$?
 
5870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5871
  (exit $ac_status); }; } &&
 
5872
         { ac_try='test -s conftest.$ac_objext'
5302
5873
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303
5874
  (eval $ac_try) 2>&5
5304
5875
  ac_status=$?
5307
5878
  ac_cv_header_stdarg_h=yes
5308
5879
else
5309
5880
  echo "$as_me: failed program was:" >&5
5310
 
cat conftest.$ac_ext >&5
 
5881
sed 's/^/| /' conftest.$ac_ext >&5
 
5882
 
5311
5883
ac_cv_header_stdarg_h=no
5312
5884
fi
5313
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
5885
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5314
5886
fi
5315
5887
echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
5316
5888
echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
5328
5900
  echo $ECHO_N "(cached) $ECHO_C" >&6
5329
5901
else
5330
5902
  cat >conftest.$ac_ext <<_ACEOF
5331
 
#line $LINENO "configure"
5332
 
#include "confdefs.h"
 
5903
/* confdefs.h.  */
 
5904
_ACEOF
 
5905
cat confdefs.h >>conftest.$ac_ext
 
5906
cat >>conftest.$ac_ext <<_ACEOF
 
5907
/* end confdefs.h.  */
5333
5908
#include <varargs.h>
5334
 
#ifdef F77_DUMMY_MAIN
5335
 
#  ifdef __cplusplus
5336
 
     extern "C"
5337
 
#  endif
5338
 
   int F77_DUMMY_MAIN() { return 1; }
5339
 
#endif
5340
5909
int
5341
5910
main ()
5342
5911
{
5355
5924
_ACEOF
5356
5925
rm -f conftest.$ac_objext
5357
5926
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5358
 
  (eval $ac_compile) 2>&5
 
5927
  (eval $ac_compile) 2>conftest.er1
5359
5928
  ac_status=$?
 
5929
  grep -v '^ *+' conftest.er1 >conftest.err
 
5930
  rm -f conftest.er1
 
5931
  cat conftest.err >&5
5360
5932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361
5933
  (exit $ac_status); } &&
5362
 
         { ac_try='test -s conftest.$ac_objext'
 
5934
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5935
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5936
  (eval $ac_try) 2>&5
 
5937
  ac_status=$?
 
5938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5939
  (exit $ac_status); }; } &&
 
5940
         { ac_try='test -s conftest.$ac_objext'
5363
5941
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5364
5942
  (eval $ac_try) 2>&5
5365
5943
  ac_status=$?
5368
5946
  ac_cv_header_varargs_h=yes
5369
5947
else
5370
5948
  echo "$as_me: failed program was:" >&5
5371
 
cat conftest.$ac_ext >&5
 
5949
sed 's/^/| /' conftest.$ac_ext >&5
 
5950
 
5372
5951
ac_cv_header_varargs_h=no
5373
5952
fi
5374
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
5953
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5375
5954
fi
5376
5955
echo "$as_me:$LINENO: result: $ac_cv_header_varargs_h" >&5
5377
5956
echo "${ECHO_T}$ac_cv_header_varargs_h" >&6
5399
5978
  echo $ECHO_N "(cached) $ECHO_C" >&6
5400
5979
else
5401
5980
  cat >conftest.$ac_ext <<_ACEOF
5402
 
#line $LINENO "configure"
5403
 
#include "confdefs.h"
 
5981
/* confdefs.h.  */
 
5982
_ACEOF
 
5983
cat confdefs.h >>conftest.$ac_ext
 
5984
cat >>conftest.$ac_ext <<_ACEOF
 
5985
/* end confdefs.h.  */
 
5986
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5987
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5988
#define $ac_func innocuous_$ac_func
 
5989
 
5404
5990
/* System header to define __stub macros and hopefully few prototypes,
5405
 
    which can conflict with char $ac_func (); below.  */
5406
 
#include <assert.h>
 
5991
    which can conflict with char $ac_func (); below.
 
5992
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5993
    <limits.h> exists even on freestanding compilers.  */
 
5994
 
 
5995
#ifdef __STDC__
 
5996
# include <limits.h>
 
5997
#else
 
5998
# include <assert.h>
 
5999
#endif
 
6000
 
 
6001
#undef $ac_func
 
6002
 
5407
6003
/* Override any gcc2 internal prototype to avoid an error.  */
5408
6004
#ifdef __cplusplus
5409
6005
extern "C"
 
6006
{
5410
6007
#endif
5411
6008
/* We use char because int might match the return type of a gcc2
5412
6009
   builtin and then its argument prototype would still apply.  */
5413
6010
char $ac_func ();
5414
 
char (*f) ();
5415
 
 
5416
 
#ifdef F77_DUMMY_MAIN
5417
 
#  ifdef __cplusplus
5418
 
     extern "C"
5419
 
#  endif
5420
 
   int F77_DUMMY_MAIN() { return 1; }
5421
 
#endif
5422
 
int
5423
 
main ()
5424
 
{
5425
6011
/* The GNU C library defines this for functions which it implements
5426
6012
    to always fail with ENOSYS.  Some functions are actually named
5427
6013
    something starting with __ and the normal name is an alias.  */
5428
6014
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5429
6015
choke me
5430
6016
#else
5431
 
f = $ac_func;
 
6017
char (*f) () = $ac_func;
 
6018
#endif
 
6019
#ifdef __cplusplus
 
6020
}
5432
6021
#endif
5433
6022
 
 
6023
int
 
6024
main ()
 
6025
{
 
6026
return f != $ac_func;
5434
6027
  ;
5435
6028
  return 0;
5436
6029
}
5437
6030
_ACEOF
5438
6031
rm -f conftest.$ac_objext conftest$ac_exeext
5439
6032
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5440
 
  (eval $ac_link) 2>&5
 
6033
  (eval $ac_link) 2>conftest.er1
5441
6034
  ac_status=$?
 
6035
  grep -v '^ *+' conftest.er1 >conftest.err
 
6036
  rm -f conftest.er1
 
6037
  cat conftest.err >&5
5442
6038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443
6039
  (exit $ac_status); } &&
5444
 
         { ac_try='test -s conftest$ac_exeext'
 
6040
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6041
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6042
  (eval $ac_try) 2>&5
 
6043
  ac_status=$?
 
6044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6045
  (exit $ac_status); }; } &&
 
6046
         { ac_try='test -s conftest$ac_exeext'
5445
6047
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446
6048
  (eval $ac_try) 2>&5
5447
6049
  ac_status=$?
5450
6052
  eval "$as_ac_var=yes"
5451
6053
else
5452
6054
  echo "$as_me: failed program was:" >&5
5453
 
cat conftest.$ac_ext >&5
 
6055
sed 's/^/| /' conftest.$ac_ext >&5
 
6056
 
5454
6057
eval "$as_ac_var=no"
5455
6058
fi
5456
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6059
rm -f conftest.err conftest.$ac_objext \
 
6060
      conftest$ac_exeext conftest.$ac_ext
5457
6061
fi
5458
6062
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5459
6063
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5463
6067
_ACEOF
5464
6068
 
5465
6069
else
5466
 
  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
 
6070
  case $LIBOBJS in
 
6071
    "$ac_func.$ac_objext"   | \
 
6072
  *" $ac_func.$ac_objext"   | \
 
6073
    "$ac_func.$ac_objext "* | \
 
6074
  *" $ac_func.$ac_objext "* ) ;;
 
6075
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
 
6076
esac
 
6077
 
5467
6078
fi
5468
6079
done
5469
6080
 
5476
6087
  echo $ECHO_N "(cached) $ECHO_C" >&6
5477
6088
else
5478
6089
  cat >conftest.$ac_ext <<_ACEOF
5479
 
#line $LINENO "configure"
5480
 
#include "confdefs.h"
 
6090
/* confdefs.h.  */
 
6091
_ACEOF
 
6092
cat confdefs.h >>conftest.$ac_ext
 
6093
cat >>conftest.$ac_ext <<_ACEOF
 
6094
/* end confdefs.h.  */
5481
6095
#ifdef HAVE_UNISTD_H
5482
6096
#include <unistd.h>
5483
6097
#endif
5484
 
#ifdef F77_DUMMY_MAIN
5485
 
#  ifdef __cplusplus
5486
 
     extern "C"
5487
 
#  endif
5488
 
   int F77_DUMMY_MAIN() { return 1; }
5489
 
#endif
5490
6098
int
5491
6099
main ()
5492
6100
{
5500
6108
_ACEOF
5501
6109
rm -f conftest.$ac_objext
5502
6110
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5503
 
  (eval $ac_compile) 2>&5
 
6111
  (eval $ac_compile) 2>conftest.er1
5504
6112
  ac_status=$?
 
6113
  grep -v '^ *+' conftest.er1 >conftest.err
 
6114
  rm -f conftest.er1
 
6115
  cat conftest.err >&5
5505
6116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506
6117
  (exit $ac_status); } &&
5507
 
         { ac_try='test -s conftest.$ac_objext'
 
6118
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6119
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6120
  (eval $ac_try) 2>&5
 
6121
  ac_status=$?
 
6122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6123
  (exit $ac_status); }; } &&
 
6124
         { ac_try='test -s conftest.$ac_objext'
5508
6125
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509
6126
  (eval $ac_try) 2>&5
5510
6127
  ac_status=$?
5513
6130
  krb5_cv_func_daemon_noproto=yes
5514
6131
else
5515
6132
  echo "$as_me: failed program was:" >&5
5516
 
cat conftest.$ac_ext >&5
 
6133
sed 's/^/| /' conftest.$ac_ext >&5
 
6134
 
5517
6135
krb5_cv_func_daemon_noproto=no
5518
6136
fi
5519
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
6137
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5520
6138
fi
5521
6139
echo "$as_me:$LINENO: result: $krb5_cv_func_daemon_noproto" >&5
5522
6140
echo "${ECHO_T}$krb5_cv_func_daemon_noproto" >&6
5536
6154
  echo $ECHO_N "(cached) $ECHO_C" >&6
5537
6155
else
5538
6156
  cat >conftest.$ac_ext <<_ACEOF
5539
 
#line $LINENO "configure"
5540
 
#include "confdefs.h"
 
6157
/* confdefs.h.  */
 
6158
_ACEOF
 
6159
cat confdefs.h >>conftest.$ac_ext
 
6160
cat >>conftest.$ac_ext <<_ACEOF
 
6161
/* end confdefs.h.  */
5541
6162
#include <sys/types.h>
5542
6163
#include <signal.h>
5543
6164
#ifdef signal
5544
6165
#undef signal
5545
6166
#endif
5546
6167
extern void (*signal ()) ();
5547
 
#ifdef F77_DUMMY_MAIN
5548
 
#  ifdef __cplusplus
5549
 
     extern "C"
5550
 
#  endif
5551
 
   int F77_DUMMY_MAIN() { return 1; }
5552
 
#endif
5553
6168
int
5554
6169
main ()
5555
6170
{
5560
6175
_ACEOF
5561
6176
rm -f conftest.$ac_objext
5562
6177
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5563
 
  (eval $ac_compile) 2>&5
 
6178
  (eval $ac_compile) 2>conftest.er1
5564
6179
  ac_status=$?
 
6180
  grep -v '^ *+' conftest.er1 >conftest.err
 
6181
  rm -f conftest.er1
 
6182
  cat conftest.err >&5
5565
6183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566
6184
  (exit $ac_status); } &&
5567
 
         { ac_try='test -s conftest.$ac_objext'
 
6185
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6186
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6187
  (eval $ac_try) 2>&5
 
6188
  ac_status=$?
 
6189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6190
  (exit $ac_status); }; } &&
 
6191
         { ac_try='test -s conftest.$ac_objext'
5568
6192
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5569
6193
  (eval $ac_try) 2>&5
5570
6194
  ac_status=$?
5573
6197
  krb5_cv_has_posix_signals=yes
5574
6198
else
5575
6199
  echo "$as_me: failed program was:" >&5
5576
 
cat conftest.$ac_ext >&5
 
6200
sed 's/^/| /' conftest.$ac_ext >&5
 
6201
 
5577
6202
krb5_cv_has_posix_signals=no
5578
6203
fi
5579
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
6204
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5580
6205
fi
5581
6206
 
5582
6207
echo "$as_me:$LINENO: result: $krb5_cv_has_posix_signals" >&5
5607
6232
  echo $ECHO_N "(cached) $ECHO_C" >&6
5608
6233
else
5609
6234
  cat >conftest.$ac_ext <<_ACEOF
5610
 
#line $LINENO "configure"
5611
 
#include "confdefs.h"
 
6235
/* confdefs.h.  */
 
6236
_ACEOF
 
6237
cat confdefs.h >>conftest.$ac_ext
 
6238
cat >>conftest.$ac_ext <<_ACEOF
 
6239
/* end confdefs.h.  */
 
6240
/* Define sigprocmask to an innocuous variant, in case <limits.h> declares sigprocmask.
 
6241
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6242
#define sigprocmask innocuous_sigprocmask
 
6243
 
5612
6244
/* System header to define __stub macros and hopefully few prototypes,
5613
 
    which can conflict with char sigprocmask (); below.  */
5614
 
#include <assert.h>
 
6245
    which can conflict with char sigprocmask (); below.
 
6246
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6247
    <limits.h> exists even on freestanding compilers.  */
 
6248
 
 
6249
#ifdef __STDC__
 
6250
# include <limits.h>
 
6251
#else
 
6252
# include <assert.h>
 
6253
#endif
 
6254
 
 
6255
#undef sigprocmask
 
6256
 
5615
6257
/* Override any gcc2 internal prototype to avoid an error.  */
5616
6258
#ifdef __cplusplus
5617
6259
extern "C"
 
6260
{
5618
6261
#endif
5619
6262
/* We use char because int might match the return type of a gcc2
5620
6263
   builtin and then its argument prototype would still apply.  */
5621
6264
char sigprocmask ();
5622
 
char (*f) ();
5623
 
 
5624
 
#ifdef F77_DUMMY_MAIN
5625
 
#  ifdef __cplusplus
5626
 
     extern "C"
5627
 
#  endif
5628
 
   int F77_DUMMY_MAIN() { return 1; }
5629
 
#endif
5630
 
int
5631
 
main ()
5632
 
{
5633
6265
/* The GNU C library defines this for functions which it implements
5634
6266
    to always fail with ENOSYS.  Some functions are actually named
5635
6267
    something starting with __ and the normal name is an alias.  */
5636
6268
#if defined (__stub_sigprocmask) || defined (__stub___sigprocmask)
5637
6269
choke me
5638
6270
#else
5639
 
f = sigprocmask;
 
6271
char (*f) () = sigprocmask;
 
6272
#endif
 
6273
#ifdef __cplusplus
 
6274
}
5640
6275
#endif
5641
6276
 
 
6277
int
 
6278
main ()
 
6279
{
 
6280
return f != sigprocmask;
5642
6281
  ;
5643
6282
  return 0;
5644
6283
}
5645
6284
_ACEOF
5646
6285
rm -f conftest.$ac_objext conftest$ac_exeext
5647
6286
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5648
 
  (eval $ac_link) 2>&5
 
6287
  (eval $ac_link) 2>conftest.er1
5649
6288
  ac_status=$?
 
6289
  grep -v '^ *+' conftest.er1 >conftest.err
 
6290
  rm -f conftest.er1
 
6291
  cat conftest.err >&5
5650
6292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651
6293
  (exit $ac_status); } &&
5652
 
         { ac_try='test -s conftest$ac_exeext'
 
6294
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6295
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6296
  (eval $ac_try) 2>&5
 
6297
  ac_status=$?
 
6298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6299
  (exit $ac_status); }; } &&
 
6300
         { ac_try='test -s conftest$ac_exeext'
5653
6301
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5654
6302
  (eval $ac_try) 2>&5
5655
6303
  ac_status=$?
5658
6306
  ac_cv_func_sigprocmask=yes
5659
6307
else
5660
6308
  echo "$as_me: failed program was:" >&5
5661
 
cat conftest.$ac_ext >&5
 
6309
sed 's/^/| /' conftest.$ac_ext >&5
 
6310
 
5662
6311
ac_cv_func_sigprocmask=no
5663
6312
fi
5664
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6313
rm -f conftest.err conftest.$ac_objext \
 
6314
      conftest$ac_exeext conftest.$ac_ext
5665
6315
fi
5666
6316
echo "$as_me:$LINENO: result: $ac_cv_func_sigprocmask" >&5
5667
6317
echo "${ECHO_T}$ac_cv_func_sigprocmask" >&6
5672
6322
  echo $ECHO_N "(cached) $ECHO_C" >&6
5673
6323
else
5674
6324
  cat >conftest.$ac_ext <<_ACEOF
5675
 
#line $LINENO "configure"
5676
 
#include "confdefs.h"
 
6325
/* confdefs.h.  */
 
6326
_ACEOF
 
6327
cat confdefs.h >>conftest.$ac_ext
 
6328
cat >>conftest.$ac_ext <<_ACEOF
 
6329
/* end confdefs.h.  */
5677
6330
#include <signal.h>
5678
 
#ifdef F77_DUMMY_MAIN
5679
 
#  ifdef __cplusplus
5680
 
     extern "C"
5681
 
#  endif
5682
 
   int F77_DUMMY_MAIN() { return 1; }
5683
 
#endif
5684
6331
int
5685
6332
main ()
5686
6333
{
5691
6338
_ACEOF
5692
6339
rm -f conftest.$ac_objext
5693
6340
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5694
 
  (eval $ac_compile) 2>&5
 
6341
  (eval $ac_compile) 2>conftest.er1
5695
6342
  ac_status=$?
 
6343
  grep -v '^ *+' conftest.er1 >conftest.err
 
6344
  rm -f conftest.er1
 
6345
  cat conftest.err >&5
5696
6346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697
6347
  (exit $ac_status); } &&
5698
 
         { ac_try='test -s conftest.$ac_objext'
 
6348
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6349
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6350
  (eval $ac_try) 2>&5
 
6351
  ac_status=$?
 
6352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6353
  (exit $ac_status); }; } &&
 
6354
         { ac_try='test -s conftest.$ac_objext'
5699
6355
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700
6356
  (eval $ac_try) 2>&5
5701
6357
  ac_status=$?
5704
6360
  krb5_cv_type_sigset_t=yes
5705
6361
else
5706
6362
  echo "$as_me: failed program was:" >&5
5707
 
cat conftest.$ac_ext >&5
 
6363
sed 's/^/| /' conftest.$ac_ext >&5
 
6364
 
5708
6365
krb5_cv_type_sigset_t=no
5709
6366
fi
5710
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
6367
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5711
6368
fi
5712
6369
 
5713
6370
echo "$as_me:$LINENO: result: $krb5_cv_type_sigset_t" >&5
5729
6386
  echo $ECHO_N "(cached) $ECHO_C" >&6
5730
6387
else
5731
6388
  cat >conftest.$ac_ext <<_ACEOF
5732
 
#line $LINENO "configure"
5733
 
#include "confdefs.h"
 
6389
/* confdefs.h.  */
 
6390
_ACEOF
 
6391
cat confdefs.h >>conftest.$ac_ext
 
6392
cat >>conftest.$ac_ext <<_ACEOF
 
6393
/* end confdefs.h.  */
 
6394
/* Define sigsetjmp to an innocuous variant, in case <limits.h> declares sigsetjmp.
 
6395
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6396
#define sigsetjmp innocuous_sigsetjmp
 
6397
 
5734
6398
/* System header to define __stub macros and hopefully few prototypes,
5735
 
    which can conflict with char sigsetjmp (); below.  */
5736
 
#include <assert.h>
 
6399
    which can conflict with char sigsetjmp (); below.
 
6400
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6401
    <limits.h> exists even on freestanding compilers.  */
 
6402
 
 
6403
#ifdef __STDC__
 
6404
# include <limits.h>
 
6405
#else
 
6406
# include <assert.h>
 
6407
#endif
 
6408
 
 
6409
#undef sigsetjmp
 
6410
 
5737
6411
/* Override any gcc2 internal prototype to avoid an error.  */
5738
6412
#ifdef __cplusplus
5739
6413
extern "C"
 
6414
{
5740
6415
#endif
5741
6416
/* We use char because int might match the return type of a gcc2
5742
6417
   builtin and then its argument prototype would still apply.  */
5743
6418
char sigsetjmp ();
5744
 
char (*f) ();
5745
 
 
5746
 
#ifdef F77_DUMMY_MAIN
5747
 
#  ifdef __cplusplus
5748
 
     extern "C"
5749
 
#  endif
5750
 
   int F77_DUMMY_MAIN() { return 1; }
5751
 
#endif
5752
 
int
5753
 
main ()
5754
 
{
5755
6419
/* The GNU C library defines this for functions which it implements
5756
6420
    to always fail with ENOSYS.  Some functions are actually named
5757
6421
    something starting with __ and the normal name is an alias.  */
5758
6422
#if defined (__stub_sigsetjmp) || defined (__stub___sigsetjmp)
5759
6423
choke me
5760
6424
#else
5761
 
f = sigsetjmp;
 
6425
char (*f) () = sigsetjmp;
 
6426
#endif
 
6427
#ifdef __cplusplus
 
6428
}
5762
6429
#endif
5763
6430
 
 
6431
int
 
6432
main ()
 
6433
{
 
6434
return f != sigsetjmp;
5764
6435
  ;
5765
6436
  return 0;
5766
6437
}
5767
6438
_ACEOF
5768
6439
rm -f conftest.$ac_objext conftest$ac_exeext
5769
6440
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5770
 
  (eval $ac_link) 2>&5
 
6441
  (eval $ac_link) 2>conftest.er1
5771
6442
  ac_status=$?
 
6443
  grep -v '^ *+' conftest.er1 >conftest.err
 
6444
  rm -f conftest.er1
 
6445
  cat conftest.err >&5
5772
6446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773
6447
  (exit $ac_status); } &&
5774
 
         { ac_try='test -s conftest$ac_exeext'
 
6448
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6449
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6450
  (eval $ac_try) 2>&5
 
6451
  ac_status=$?
 
6452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6453
  (exit $ac_status); }; } &&
 
6454
         { ac_try='test -s conftest$ac_exeext'
5775
6455
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776
6456
  (eval $ac_try) 2>&5
5777
6457
  ac_status=$?
5780
6460
  ac_cv_func_sigsetjmp=yes
5781
6461
else
5782
6462
  echo "$as_me: failed program was:" >&5
5783
 
cat conftest.$ac_ext >&5
 
6463
sed 's/^/| /' conftest.$ac_ext >&5
 
6464
 
5784
6465
ac_cv_func_sigsetjmp=no
5785
6466
fi
5786
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6467
rm -f conftest.err conftest.$ac_objext \
 
6468
      conftest$ac_exeext conftest.$ac_ext
5787
6469
fi
5788
6470
echo "$as_me:$LINENO: result: $ac_cv_func_sigsetjmp" >&5
5789
6471
echo "${ECHO_T}$ac_cv_func_sigsetjmp" >&6
5794
6476
  echo $ECHO_N "(cached) $ECHO_C" >&6
5795
6477
else
5796
6478
  cat >conftest.$ac_ext <<_ACEOF
5797
 
#line $LINENO "configure"
5798
 
#include "confdefs.h"
 
6479
/* confdefs.h.  */
 
6480
_ACEOF
 
6481
cat confdefs.h >>conftest.$ac_ext
 
6482
cat >>conftest.$ac_ext <<_ACEOF
 
6483
/* end confdefs.h.  */
5799
6484
#include <setjmp.h>
5800
 
#ifdef F77_DUMMY_MAIN
5801
 
#  ifdef __cplusplus
5802
 
     extern "C"
5803
 
#  endif
5804
 
   int F77_DUMMY_MAIN() { return 1; }
5805
 
#endif
5806
6485
int
5807
6486
main ()
5808
6487
{
5813
6492
_ACEOF
5814
6493
rm -f conftest.$ac_objext
5815
6494
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5816
 
  (eval $ac_compile) 2>&5
 
6495
  (eval $ac_compile) 2>conftest.er1
5817
6496
  ac_status=$?
 
6497
  grep -v '^ *+' conftest.er1 >conftest.err
 
6498
  rm -f conftest.er1
 
6499
  cat conftest.err >&5
5818
6500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819
6501
  (exit $ac_status); } &&
5820
 
         { ac_try='test -s conftest.$ac_objext'
 
6502
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6503
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6504
  (eval $ac_try) 2>&5
 
6505
  ac_status=$?
 
6506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6507
  (exit $ac_status); }; } &&
 
6508
         { ac_try='test -s conftest.$ac_objext'
5821
6509
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822
6510
  (eval $ac_try) 2>&5
5823
6511
  ac_status=$?
5826
6514
  krb5_cv_struct_sigjmp_buf=yes
5827
6515
else
5828
6516
  echo "$as_me: failed program was:" >&5
5829
 
cat conftest.$ac_ext >&5
 
6517
sed 's/^/| /' conftest.$ac_ext >&5
 
6518
 
5830
6519
krb5_cv_struct_sigjmp_buf=no
5831
6520
fi
5832
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
6521
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5833
6522
fi
5834
6523
 
5835
6524
echo "$as_me:$LINENO: result: $krb5_cv_struct_sigjmp_buf" >&5
5857
6546
echo "$as_me:$LINENO: checking dirent.h usability" >&5
5858
6547
echo $ECHO_N "checking dirent.h usability... $ECHO_C" >&6
5859
6548
cat >conftest.$ac_ext <<_ACEOF
5860
 
#line $LINENO "configure"
5861
 
#include "confdefs.h"
 
6549
/* confdefs.h.  */
 
6550
_ACEOF
 
6551
cat confdefs.h >>conftest.$ac_ext
 
6552
cat >>conftest.$ac_ext <<_ACEOF
 
6553
/* end confdefs.h.  */
5862
6554
$ac_includes_default
5863
6555
#include <dirent.h>
5864
6556
_ACEOF
5865
6557
rm -f conftest.$ac_objext
5866
6558
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867
 
  (eval $ac_compile) 2>&5
 
6559
  (eval $ac_compile) 2>conftest.er1
5868
6560
  ac_status=$?
 
6561
  grep -v '^ *+' conftest.er1 >conftest.err
 
6562
  rm -f conftest.er1
 
6563
  cat conftest.err >&5
5869
6564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870
6565
  (exit $ac_status); } &&
5871
 
         { ac_try='test -s conftest.$ac_objext'
 
6566
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6567
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6568
  (eval $ac_try) 2>&5
 
6569
  ac_status=$?
 
6570
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6571
  (exit $ac_status); }; } &&
 
6572
         { ac_try='test -s conftest.$ac_objext'
5872
6573
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873
6574
  (eval $ac_try) 2>&5
5874
6575
  ac_status=$?
5877
6578
  ac_header_compiler=yes
5878
6579
else
5879
6580
  echo "$as_me: failed program was:" >&5
5880
 
cat conftest.$ac_ext >&5
 
6581
sed 's/^/| /' conftest.$ac_ext >&5
 
6582
 
5881
6583
ac_header_compiler=no
5882
6584
fi
5883
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
6585
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5884
6586
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5885
6587
echo "${ECHO_T}$ac_header_compiler" >&6
5886
6588
 
5888
6590
echo "$as_me:$LINENO: checking dirent.h presence" >&5
5889
6591
echo $ECHO_N "checking dirent.h presence... $ECHO_C" >&6
5890
6592
cat >conftest.$ac_ext <<_ACEOF
5891
 
#line $LINENO "configure"
5892
 
#include "confdefs.h"
 
6593
/* confdefs.h.  */
 
6594
_ACEOF
 
6595
cat confdefs.h >>conftest.$ac_ext
 
6596
cat >>conftest.$ac_ext <<_ACEOF
 
6597
/* end confdefs.h.  */
5893
6598
#include <dirent.h>
5894
6599
_ACEOF
5895
6600
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5896
6601
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5897
6602
  ac_status=$?
5898
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
6603
  grep -v '^ *+' conftest.er1 >conftest.err
5899
6604
  rm -f conftest.er1
5900
6605
  cat conftest.err >&5
5901
6606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902
6607
  (exit $ac_status); } >/dev/null; then
5903
6608
  if test -s conftest.err; then
5904
6609
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6610
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5905
6611
  else
5906
6612
    ac_cpp_err=
5907
6613
  fi
5912
6618
  ac_header_preproc=yes
5913
6619
else
5914
6620
  echo "$as_me: failed program was:" >&5
5915
 
  cat conftest.$ac_ext >&5
 
6621
sed 's/^/| /' conftest.$ac_ext >&5
 
6622
 
5916
6623
  ac_header_preproc=no
5917
6624
fi
5918
6625
rm -f conftest.err conftest.$ac_ext
5920
6627
echo "${ECHO_T}$ac_header_preproc" >&6
5921
6628
 
5922
6629
# So?  What about this header?
5923
 
case $ac_header_compiler:$ac_header_preproc in
5924
 
  yes:no )
 
6630
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6631
  yes:no: )
5925
6632
    { echo "$as_me:$LINENO: WARNING: dirent.h: accepted by the compiler, rejected by the preprocessor!" >&5
5926
6633
echo "$as_me: WARNING: dirent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5927
 
    { echo "$as_me:$LINENO: WARNING: dirent.h: proceeding with the preprocessor's result" >&5
5928
 
echo "$as_me: WARNING: dirent.h: proceeding with the preprocessor's result" >&2;};;
5929
 
  no:yes )
 
6634
    { echo "$as_me:$LINENO: WARNING: dirent.h: proceeding with the compiler's result" >&5
 
6635
echo "$as_me: WARNING: dirent.h: proceeding with the compiler's result" >&2;}
 
6636
    ac_header_preproc=yes
 
6637
    ;;
 
6638
  no:yes:* )
5930
6639
    { echo "$as_me:$LINENO: WARNING: dirent.h: present but cannot be compiled" >&5
5931
6640
echo "$as_me: WARNING: dirent.h: present but cannot be compiled" >&2;}
5932
 
    { echo "$as_me:$LINENO: WARNING: dirent.h: check for missing prerequisite headers?" >&5
5933
 
echo "$as_me: WARNING: dirent.h: check for missing prerequisite headers?" >&2;}
 
6641
    { echo "$as_me:$LINENO: WARNING: dirent.h:     check for missing prerequisite headers?" >&5
 
6642
echo "$as_me: WARNING: dirent.h:     check for missing prerequisite headers?" >&2;}
 
6643
    { echo "$as_me:$LINENO: WARNING: dirent.h: see the Autoconf documentation" >&5
 
6644
echo "$as_me: WARNING: dirent.h: see the Autoconf documentation" >&2;}
 
6645
    { echo "$as_me:$LINENO: WARNING: dirent.h:     section \"Present But Cannot Be Compiled\"" >&5
 
6646
echo "$as_me: WARNING: dirent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5934
6647
    { echo "$as_me:$LINENO: WARNING: dirent.h: proceeding with the preprocessor's result" >&5
5935
 
echo "$as_me: WARNING: dirent.h: proceeding with the preprocessor's result" >&2;};;
 
6648
echo "$as_me: WARNING: dirent.h: proceeding with the preprocessor's result" >&2;}
 
6649
    { echo "$as_me:$LINENO: WARNING: dirent.h: in the future, the compiler will take precedence" >&5
 
6650
echo "$as_me: WARNING: dirent.h: in the future, the compiler will take precedence" >&2;}
 
6651
    (
 
6652
      cat <<\_ASBOX
 
6653
## ------------------------------------------ ##
 
6654
## Report this to the AC_PACKAGE_NAME lists.  ##
 
6655
## ------------------------------------------ ##
 
6656
_ASBOX
 
6657
    ) |
 
6658
      sed "s/^/$as_me: WARNING:     /" >&2
 
6659
    ;;
5936
6660
esac
5937
6661
echo "$as_me:$LINENO: checking for dirent.h" >&5
5938
6662
echo $ECHO_N "checking for dirent.h... $ECHO_C" >&6
5961
6685
  echo $ECHO_N "(cached) $ECHO_C" >&6
5962
6686
else
5963
6687
  cat >conftest.$ac_ext <<_ACEOF
5964
 
#line $LINENO "configure"
5965
 
#include "confdefs.h"
 
6688
/* confdefs.h.  */
 
6689
_ACEOF
 
6690
cat confdefs.h >>conftest.$ac_ext
 
6691
cat >>conftest.$ac_ext <<_ACEOF
 
6692
/* end confdefs.h.  */
5966
6693
#include <sys/types.h>
5967
6694
#include <sys/wait.h>
5968
6695
extern pid_t wait(int *);
5969
 
#ifdef F77_DUMMY_MAIN
5970
 
#  ifdef __cplusplus
5971
 
     extern "C"
5972
 
#  endif
5973
 
   int F77_DUMMY_MAIN() { return 1; }
5974
 
#endif
5975
6696
int
5976
6697
main ()
5977
6698
{
5982
6703
_ACEOF
5983
6704
rm -f conftest.$ac_objext
5984
6705
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5985
 
  (eval $ac_compile) 2>&5
 
6706
  (eval $ac_compile) 2>conftest.er1
5986
6707
  ac_status=$?
 
6708
  grep -v '^ *+' conftest.er1 >conftest.err
 
6709
  rm -f conftest.er1
 
6710
  cat conftest.err >&5
5987
6711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988
6712
  (exit $ac_status); } &&
5989
 
         { ac_try='test -s conftest.$ac_objext'
 
6713
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6714
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6715
  (eval $ac_try) 2>&5
 
6716
  ac_status=$?
 
6717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6718
  (exit $ac_status); }; } &&
 
6719
         { ac_try='test -s conftest.$ac_objext'
5990
6720
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991
6721
  (eval $ac_try) 2>&5
5992
6722
  ac_status=$?
5995
6725
  krb5_cv_struct_wait=no
5996
6726
else
5997
6727
  echo "$as_me: failed program was:" >&5
5998
 
cat conftest.$ac_ext >&5
 
6728
sed 's/^/| /' conftest.$ac_ext >&5
 
6729
 
5999
6730
cat >conftest.$ac_ext <<_ACEOF
6000
 
#line $LINENO "configure"
6001
 
#include "confdefs.h"
 
6731
/* confdefs.h.  */
 
6732
_ACEOF
 
6733
cat confdefs.h >>conftest.$ac_ext
 
6734
cat >>conftest.$ac_ext <<_ACEOF
 
6735
/* end confdefs.h.  */
6002
6736
#include <sys/wait.h>
6003
 
#ifdef F77_DUMMY_MAIN
6004
 
#  ifdef __cplusplus
6005
 
     extern "C"
6006
 
#  endif
6007
 
   int F77_DUMMY_MAIN() { return 1; }
6008
 
#endif
6009
6737
int
6010
6738
main ()
6011
6739
{
6020
6748
_ACEOF
6021
6749
rm -f conftest.$ac_objext
6022
6750
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6023
 
  (eval $ac_compile) 2>&5
 
6751
  (eval $ac_compile) 2>conftest.er1
6024
6752
  ac_status=$?
 
6753
  grep -v '^ *+' conftest.er1 >conftest.err
 
6754
  rm -f conftest.er1
 
6755
  cat conftest.err >&5
6025
6756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026
6757
  (exit $ac_status); } &&
6027
 
         { ac_try='test -s conftest.$ac_objext'
 
6758
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6759
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6760
  (eval $ac_try) 2>&5
 
6761
  ac_status=$?
 
6762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6763
  (exit $ac_status); }; } &&
 
6764
         { ac_try='test -s conftest.$ac_objext'
6028
6765
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029
6766
  (eval $ac_try) 2>&5
6030
6767
  ac_status=$?
6033
6770
  krb5_cv_struct_wait=yes
6034
6771
else
6035
6772
  echo "$as_me: failed program was:" >&5
6036
 
cat conftest.$ac_ext >&5
 
6773
sed 's/^/| /' conftest.$ac_ext >&5
 
6774
 
6037
6775
krb5_cv_struct_wait=no
6038
6776
fi
6039
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
6777
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6040
6778
fi
6041
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
6779
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6042
6780
fi
6043
6781
 
6044
6782
echo "$as_me:$LINENO: result: $krb5_cv_struct_wait" >&5
6064
6802
echo "$as_me:$LINENO: checking termios.h usability" >&5
6065
6803
echo $ECHO_N "checking termios.h usability... $ECHO_C" >&6
6066
6804
cat >conftest.$ac_ext <<_ACEOF
6067
 
#line $LINENO "configure"
6068
 
#include "confdefs.h"
 
6805
/* confdefs.h.  */
 
6806
_ACEOF
 
6807
cat confdefs.h >>conftest.$ac_ext
 
6808
cat >>conftest.$ac_ext <<_ACEOF
 
6809
/* end confdefs.h.  */
6069
6810
$ac_includes_default
6070
6811
#include <termios.h>
6071
6812
_ACEOF
6072
6813
rm -f conftest.$ac_objext
6073
6814
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6074
 
  (eval $ac_compile) 2>&5
 
6815
  (eval $ac_compile) 2>conftest.er1
6075
6816
  ac_status=$?
 
6817
  grep -v '^ *+' conftest.er1 >conftest.err
 
6818
  rm -f conftest.er1
 
6819
  cat conftest.err >&5
6076
6820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077
6821
  (exit $ac_status); } &&
6078
 
         { ac_try='test -s conftest.$ac_objext'
 
6822
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6823
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6824
  (eval $ac_try) 2>&5
 
6825
  ac_status=$?
 
6826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6827
  (exit $ac_status); }; } &&
 
6828
         { ac_try='test -s conftest.$ac_objext'
6079
6829
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6080
6830
  (eval $ac_try) 2>&5
6081
6831
  ac_status=$?
6084
6834
  ac_header_compiler=yes
6085
6835
else
6086
6836
  echo "$as_me: failed program was:" >&5
6087
 
cat conftest.$ac_ext >&5
 
6837
sed 's/^/| /' conftest.$ac_ext >&5
 
6838
 
6088
6839
ac_header_compiler=no
6089
6840
fi
6090
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
6841
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6091
6842
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6092
6843
echo "${ECHO_T}$ac_header_compiler" >&6
6093
6844
 
6095
6846
echo "$as_me:$LINENO: checking termios.h presence" >&5
6096
6847
echo $ECHO_N "checking termios.h presence... $ECHO_C" >&6
6097
6848
cat >conftest.$ac_ext <<_ACEOF
6098
 
#line $LINENO "configure"
6099
 
#include "confdefs.h"
 
6849
/* confdefs.h.  */
 
6850
_ACEOF
 
6851
cat confdefs.h >>conftest.$ac_ext
 
6852
cat >>conftest.$ac_ext <<_ACEOF
 
6853
/* end confdefs.h.  */
6100
6854
#include <termios.h>
6101
6855
_ACEOF
6102
6856
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6103
6857
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6104
6858
  ac_status=$?
6105
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
6859
  grep -v '^ *+' conftest.er1 >conftest.err
6106
6860
  rm -f conftest.er1
6107
6861
  cat conftest.err >&5
6108
6862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109
6863
  (exit $ac_status); } >/dev/null; then
6110
6864
  if test -s conftest.err; then
6111
6865
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6866
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6112
6867
  else
6113
6868
    ac_cpp_err=
6114
6869
  fi
6119
6874
  ac_header_preproc=yes
6120
6875
else
6121
6876
  echo "$as_me: failed program was:" >&5
6122
 
  cat conftest.$ac_ext >&5
 
6877
sed 's/^/| /' conftest.$ac_ext >&5
 
6878
 
6123
6879
  ac_header_preproc=no
6124
6880
fi
6125
6881
rm -f conftest.err conftest.$ac_ext
6127
6883
echo "${ECHO_T}$ac_header_preproc" >&6
6128
6884
 
6129
6885
# So?  What about this header?
6130
 
case $ac_header_compiler:$ac_header_preproc in
6131
 
  yes:no )
 
6886
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6887
  yes:no: )
6132
6888
    { echo "$as_me:$LINENO: WARNING: termios.h: accepted by the compiler, rejected by the preprocessor!" >&5
6133
6889
echo "$as_me: WARNING: termios.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6134
 
    { echo "$as_me:$LINENO: WARNING: termios.h: proceeding with the preprocessor's result" >&5
6135
 
echo "$as_me: WARNING: termios.h: proceeding with the preprocessor's result" >&2;};;
6136
 
  no:yes )
 
6890
    { echo "$as_me:$LINENO: WARNING: termios.h: proceeding with the compiler's result" >&5
 
6891
echo "$as_me: WARNING: termios.h: proceeding with the compiler's result" >&2;}
 
6892
    ac_header_preproc=yes
 
6893
    ;;
 
6894
  no:yes:* )
6137
6895
    { echo "$as_me:$LINENO: WARNING: termios.h: present but cannot be compiled" >&5
6138
6896
echo "$as_me: WARNING: termios.h: present but cannot be compiled" >&2;}
6139
 
    { echo "$as_me:$LINENO: WARNING: termios.h: check for missing prerequisite headers?" >&5
6140
 
echo "$as_me: WARNING: termios.h: check for missing prerequisite headers?" >&2;}
 
6897
    { echo "$as_me:$LINENO: WARNING: termios.h:     check for missing prerequisite headers?" >&5
 
6898
echo "$as_me: WARNING: termios.h:     check for missing prerequisite headers?" >&2;}
 
6899
    { echo "$as_me:$LINENO: WARNING: termios.h: see the Autoconf documentation" >&5
 
6900
echo "$as_me: WARNING: termios.h: see the Autoconf documentation" >&2;}
 
6901
    { echo "$as_me:$LINENO: WARNING: termios.h:     section \"Present But Cannot Be Compiled\"" >&5
 
6902
echo "$as_me: WARNING: termios.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6141
6903
    { echo "$as_me:$LINENO: WARNING: termios.h: proceeding with the preprocessor's result" >&5
6142
 
echo "$as_me: WARNING: termios.h: proceeding with the preprocessor's result" >&2;};;
 
6904
echo "$as_me: WARNING: termios.h: proceeding with the preprocessor's result" >&2;}
 
6905
    { echo "$as_me:$LINENO: WARNING: termios.h: in the future, the compiler will take precedence" >&5
 
6906
echo "$as_me: WARNING: termios.h: in the future, the compiler will take precedence" >&2;}
 
6907
    (
 
6908
      cat <<\_ASBOX
 
6909
## ------------------------------------------ ##
 
6910
## Report this to the AC_PACKAGE_NAME lists.  ##
 
6911
## ------------------------------------------ ##
 
6912
_ASBOX
 
6913
    ) |
 
6914
      sed "s/^/$as_me: WARNING:     /" >&2
 
6915
    ;;
6143
6916
esac
6144
6917
echo "$as_me:$LINENO: checking for termios.h" >&5
6145
6918
echo $ECHO_N "checking for termios.h... $ECHO_C" >&6
6159
6932
  echo $ECHO_N "(cached) $ECHO_C" >&6
6160
6933
else
6161
6934
  cat >conftest.$ac_ext <<_ACEOF
6162
 
#line $LINENO "configure"
6163
 
#include "confdefs.h"
 
6935
/* confdefs.h.  */
 
6936
_ACEOF
 
6937
cat confdefs.h >>conftest.$ac_ext
 
6938
cat >>conftest.$ac_ext <<_ACEOF
 
6939
/* end confdefs.h.  */
 
6940
/* Define cfsetispeed to an innocuous variant, in case <limits.h> declares cfsetispeed.
 
6941
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6942
#define cfsetispeed innocuous_cfsetispeed
 
6943
 
6164
6944
/* System header to define __stub macros and hopefully few prototypes,
6165
 
    which can conflict with char cfsetispeed (); below.  */
6166
 
#include <assert.h>
 
6945
    which can conflict with char cfsetispeed (); below.
 
6946
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6947
    <limits.h> exists even on freestanding compilers.  */
 
6948
 
 
6949
#ifdef __STDC__
 
6950
# include <limits.h>
 
6951
#else
 
6952
# include <assert.h>
 
6953
#endif
 
6954
 
 
6955
#undef cfsetispeed
 
6956
 
6167
6957
/* Override any gcc2 internal prototype to avoid an error.  */
6168
6958
#ifdef __cplusplus
6169
6959
extern "C"
 
6960
{
6170
6961
#endif
6171
6962
/* We use char because int might match the return type of a gcc2
6172
6963
   builtin and then its argument prototype would still apply.  */
6173
6964
char cfsetispeed ();
6174
 
char (*f) ();
6175
 
 
6176
 
#ifdef F77_DUMMY_MAIN
6177
 
#  ifdef __cplusplus
6178
 
     extern "C"
6179
 
#  endif
6180
 
   int F77_DUMMY_MAIN() { return 1; }
6181
 
#endif
6182
 
int
6183
 
main ()
6184
 
{
6185
6965
/* The GNU C library defines this for functions which it implements
6186
6966
    to always fail with ENOSYS.  Some functions are actually named
6187
6967
    something starting with __ and the normal name is an alias.  */
6188
6968
#if defined (__stub_cfsetispeed) || defined (__stub___cfsetispeed)
6189
6969
choke me
6190
6970
#else
6191
 
f = cfsetispeed;
 
6971
char (*f) () = cfsetispeed;
 
6972
#endif
 
6973
#ifdef __cplusplus
 
6974
}
6192
6975
#endif
6193
6976
 
 
6977
int
 
6978
main ()
 
6979
{
 
6980
return f != cfsetispeed;
6194
6981
  ;
6195
6982
  return 0;
6196
6983
}
6197
6984
_ACEOF
6198
6985
rm -f conftest.$ac_objext conftest$ac_exeext
6199
6986
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6200
 
  (eval $ac_link) 2>&5
 
6987
  (eval $ac_link) 2>conftest.er1
6201
6988
  ac_status=$?
 
6989
  grep -v '^ *+' conftest.er1 >conftest.err
 
6990
  rm -f conftest.er1
 
6991
  cat conftest.err >&5
6202
6992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203
6993
  (exit $ac_status); } &&
6204
 
         { ac_try='test -s conftest$ac_exeext'
 
6994
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6995
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6996
  (eval $ac_try) 2>&5
 
6997
  ac_status=$?
 
6998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6999
  (exit $ac_status); }; } &&
 
7000
         { ac_try='test -s conftest$ac_exeext'
6205
7001
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206
7002
  (eval $ac_try) 2>&5
6207
7003
  ac_status=$?
6210
7006
  ac_cv_func_cfsetispeed=yes
6211
7007
else
6212
7008
  echo "$as_me: failed program was:" >&5
6213
 
cat conftest.$ac_ext >&5
 
7009
sed 's/^/| /' conftest.$ac_ext >&5
 
7010
 
6214
7011
ac_cv_func_cfsetispeed=no
6215
7012
fi
6216
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7013
rm -f conftest.err conftest.$ac_objext \
 
7014
      conftest$ac_exeext conftest.$ac_ext
6217
7015
fi
6218
7016
echo "$as_me:$LINENO: result: $ac_cv_func_cfsetispeed" >&5
6219
7017
echo "${ECHO_T}$ac_cv_func_cfsetispeed" >&6
6234
7032
  echo $ECHO_N "(cached) $ECHO_C" >&6
6235
7033
else
6236
7034
  cat >conftest.$ac_ext <<_ACEOF
6237
 
#line $LINENO "configure"
6238
 
#include "confdefs.h"
 
7035
/* confdefs.h.  */
 
7036
_ACEOF
 
7037
cat confdefs.h >>conftest.$ac_ext
 
7038
cat >>conftest.$ac_ext <<_ACEOF
 
7039
/* end confdefs.h.  */
6239
7040
#include <sys/types.h>
6240
7041
#include <utmp.h>
6241
 
#ifdef F77_DUMMY_MAIN
6242
 
#  ifdef __cplusplus
6243
 
     extern "C"
6244
 
#  endif
6245
 
   int F77_DUMMY_MAIN() { return 1; }
6246
 
#endif
6247
7042
int
6248
7043
main ()
6249
7044
{
6254
7049
_ACEOF
6255
7050
rm -f conftest.$ac_objext
6256
7051
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6257
 
  (eval $ac_compile) 2>&5
 
7052
  (eval $ac_compile) 2>conftest.er1
6258
7053
  ac_status=$?
 
7054
  grep -v '^ *+' conftest.er1 >conftest.err
 
7055
  rm -f conftest.er1
 
7056
  cat conftest.err >&5
6259
7057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260
7058
  (exit $ac_status); } &&
6261
 
         { ac_try='test -s conftest.$ac_objext'
 
7059
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7060
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7061
  (eval $ac_try) 2>&5
 
7062
  ac_status=$?
 
7063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7064
  (exit $ac_status); }; } &&
 
7065
         { ac_try='test -s conftest.$ac_objext'
6262
7066
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263
7067
  (eval $ac_try) 2>&5
6264
7068
  ac_status=$?
6267
7071
  krb5_cv_struct_ut_pid=yes
6268
7072
else
6269
7073
  echo "$as_me: failed program was:" >&5
6270
 
cat conftest.$ac_ext >&5
 
7074
sed 's/^/| /' conftest.$ac_ext >&5
 
7075
 
6271
7076
krb5_cv_struct_ut_pid=no
6272
7077
fi
6273
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
7078
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6274
7079
fi
6275
7080
 
6276
7081
echo "$as_me:$LINENO: result: $krb5_cv_struct_ut_pid" >&5
6287
7092
  echo $ECHO_N "(cached) $ECHO_C" >&6
6288
7093
else
6289
7094
  cat >conftest.$ac_ext <<_ACEOF
6290
 
#line $LINENO "configure"
6291
 
#include "confdefs.h"
 
7095
/* confdefs.h.  */
 
7096
_ACEOF
 
7097
cat confdefs.h >>conftest.$ac_ext
 
7098
cat >>conftest.$ac_ext <<_ACEOF
 
7099
/* end confdefs.h.  */
6292
7100
#include <sys/types.h>
6293
7101
#include <utmp.h>
6294
 
#ifdef F77_DUMMY_MAIN
6295
 
#  ifdef __cplusplus
6296
 
     extern "C"
6297
 
#  endif
6298
 
   int F77_DUMMY_MAIN() { return 1; }
6299
 
#endif
6300
7102
int
6301
7103
main ()
6302
7104
{
6307
7109
_ACEOF
6308
7110
rm -f conftest.$ac_objext
6309
7111
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6310
 
  (eval $ac_compile) 2>&5
 
7112
  (eval $ac_compile) 2>conftest.er1
6311
7113
  ac_status=$?
 
7114
  grep -v '^ *+' conftest.er1 >conftest.err
 
7115
  rm -f conftest.er1
 
7116
  cat conftest.err >&5
6312
7117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313
7118
  (exit $ac_status); } &&
6314
 
         { ac_try='test -s conftest.$ac_objext'
 
7119
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7120
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7121
  (eval $ac_try) 2>&5
 
7122
  ac_status=$?
 
7123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7124
  (exit $ac_status); }; } &&
 
7125
         { ac_try='test -s conftest.$ac_objext'
6315
7126
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316
7127
  (eval $ac_try) 2>&5
6317
7128
  ac_status=$?
6320
7131
  krb5_cv_struct_ut_type=yes
6321
7132
else
6322
7133
  echo "$as_me: failed program was:" >&5
6323
 
cat conftest.$ac_ext >&5
 
7134
sed 's/^/| /' conftest.$ac_ext >&5
 
7135
 
6324
7136
krb5_cv_struct_ut_type=no
6325
7137
fi
6326
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
7138
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6327
7139
fi
6328
7140
 
6329
7141
echo "$as_me:$LINENO: result: $krb5_cv_struct_ut_type" >&5
6340
7152
  echo $ECHO_N "(cached) $ECHO_C" >&6
6341
7153
else
6342
7154
  cat >conftest.$ac_ext <<_ACEOF
6343
 
#line $LINENO "configure"
6344
 
#include "confdefs.h"
 
7155
/* confdefs.h.  */
 
7156
_ACEOF
 
7157
cat confdefs.h >>conftest.$ac_ext
 
7158
cat >>conftest.$ac_ext <<_ACEOF
 
7159
/* end confdefs.h.  */
6345
7160
#include <sys/types.h>
6346
7161
#include <utmp.h>
6347
 
#ifdef F77_DUMMY_MAIN
6348
 
#  ifdef __cplusplus
6349
 
     extern "C"
6350
 
#  endif
6351
 
   int F77_DUMMY_MAIN() { return 1; }
6352
 
#endif
6353
7162
int
6354
7163
main ()
6355
7164
{
6360
7169
_ACEOF
6361
7170
rm -f conftest.$ac_objext
6362
7171
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6363
 
  (eval $ac_compile) 2>&5
 
7172
  (eval $ac_compile) 2>conftest.er1
6364
7173
  ac_status=$?
 
7174
  grep -v '^ *+' conftest.er1 >conftest.err
 
7175
  rm -f conftest.er1
 
7176
  cat conftest.err >&5
6365
7177
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366
7178
  (exit $ac_status); } &&
6367
 
         { ac_try='test -s conftest.$ac_objext'
 
7179
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7180
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7181
  (eval $ac_try) 2>&5
 
7182
  ac_status=$?
 
7183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7184
  (exit $ac_status); }; } &&
 
7185
         { ac_try='test -s conftest.$ac_objext'
6368
7186
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369
7187
  (eval $ac_try) 2>&5
6370
7188
  ac_status=$?
6373
7191
  krb5_cv_struct_ut_host=yes
6374
7192
else
6375
7193
  echo "$as_me: failed program was:" >&5
6376
 
cat conftest.$ac_ext >&5
 
7194
sed 's/^/| /' conftest.$ac_ext >&5
 
7195
 
6377
7196
krb5_cv_struct_ut_host=no
6378
7197
fi
6379
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
7198
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6380
7199
fi
6381
7200
 
6382
7201
echo "$as_me:$LINENO: result: $krb5_cv_struct_ut_host" >&5
6393
7212
  echo $ECHO_N "(cached) $ECHO_C" >&6
6394
7213
else
6395
7214
  cat >conftest.$ac_ext <<_ACEOF
6396
 
#line $LINENO "configure"
6397
 
#include "confdefs.h"
 
7215
/* confdefs.h.  */
 
7216
_ACEOF
 
7217
cat confdefs.h >>conftest.$ac_ext
 
7218
cat >>conftest.$ac_ext <<_ACEOF
 
7219
/* end confdefs.h.  */
6398
7220
#include <sys/types.h>
6399
7221
#include <utmp.h>
6400
 
#ifdef F77_DUMMY_MAIN
6401
 
#  ifdef __cplusplus
6402
 
     extern "C"
6403
 
#  endif
6404
 
   int F77_DUMMY_MAIN() { return 1; }
6405
 
#endif
6406
7222
int
6407
7223
main ()
6408
7224
{
6413
7229
_ACEOF
6414
7230
rm -f conftest.$ac_objext
6415
7231
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6416
 
  (eval $ac_compile) 2>&5
 
7232
  (eval $ac_compile) 2>conftest.er1
6417
7233
  ac_status=$?
 
7234
  grep -v '^ *+' conftest.er1 >conftest.err
 
7235
  rm -f conftest.er1
 
7236
  cat conftest.err >&5
6418
7237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419
7238
  (exit $ac_status); } &&
6420
 
         { ac_try='test -s conftest.$ac_objext'
 
7239
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7240
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7241
  (eval $ac_try) 2>&5
 
7242
  ac_status=$?
 
7243
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7244
  (exit $ac_status); }; } &&
 
7245
         { ac_try='test -s conftest.$ac_objext'
6421
7246
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422
7247
  (eval $ac_try) 2>&5
6423
7248
  ac_status=$?
6426
7251
  krb5_cv_struct_ut_exit=yes
6427
7252
else
6428
7253
  echo "$as_me: failed program was:" >&5
6429
 
cat conftest.$ac_ext >&5
 
7254
sed 's/^/| /' conftest.$ac_ext >&5
 
7255
 
6430
7256
krb5_cv_struct_ut_exit=no
6431
7257
fi
6432
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
7258
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6433
7259
fi
6434
7260
 
6435
7261
echo "$as_me:$LINENO: result: $krb5_cv_struct_ut_exit" >&5
6446
7272
  echo $ECHO_N "(cached) $ECHO_C" >&6
6447
7273
else
6448
7274
  cat >conftest.$ac_ext <<_ACEOF
6449
 
#line $LINENO "configure"
6450
 
#include "confdefs.h"
 
7275
/* confdefs.h.  */
 
7276
_ACEOF
 
7277
cat confdefs.h >>conftest.$ac_ext
 
7278
cat >>conftest.$ac_ext <<_ACEOF
 
7279
/* end confdefs.h.  */
 
7280
/* Define setutent to an innocuous variant, in case <limits.h> declares setutent.
 
7281
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
7282
#define setutent innocuous_setutent
 
7283
 
6451
7284
/* System header to define __stub macros and hopefully few prototypes,
6452
 
    which can conflict with char setutent (); below.  */
6453
 
#include <assert.h>
 
7285
    which can conflict with char setutent (); below.
 
7286
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7287
    <limits.h> exists even on freestanding compilers.  */
 
7288
 
 
7289
#ifdef __STDC__
 
7290
# include <limits.h>
 
7291
#else
 
7292
# include <assert.h>
 
7293
#endif
 
7294
 
 
7295
#undef setutent
 
7296
 
6454
7297
/* Override any gcc2 internal prototype to avoid an error.  */
6455
7298
#ifdef __cplusplus
6456
7299
extern "C"
 
7300
{
6457
7301
#endif
6458
7302
/* We use char because int might match the return type of a gcc2
6459
7303
   builtin and then its argument prototype would still apply.  */
6460
7304
char setutent ();
6461
 
char (*f) ();
6462
 
 
6463
 
#ifdef F77_DUMMY_MAIN
6464
 
#  ifdef __cplusplus
6465
 
     extern "C"
6466
 
#  endif
6467
 
   int F77_DUMMY_MAIN() { return 1; }
6468
 
#endif
6469
 
int
6470
 
main ()
6471
 
{
6472
7305
/* The GNU C library defines this for functions which it implements
6473
7306
    to always fail with ENOSYS.  Some functions are actually named
6474
7307
    something starting with __ and the normal name is an alias.  */
6475
7308
#if defined (__stub_setutent) || defined (__stub___setutent)
6476
7309
choke me
6477
7310
#else
6478
 
f = setutent;
 
7311
char (*f) () = setutent;
 
7312
#endif
 
7313
#ifdef __cplusplus
 
7314
}
6479
7315
#endif
6480
7316
 
 
7317
int
 
7318
main ()
 
7319
{
 
7320
return f != setutent;
6481
7321
  ;
6482
7322
  return 0;
6483
7323
}
6484
7324
_ACEOF
6485
7325
rm -f conftest.$ac_objext conftest$ac_exeext
6486
7326
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6487
 
  (eval $ac_link) 2>&5
 
7327
  (eval $ac_link) 2>conftest.er1
6488
7328
  ac_status=$?
 
7329
  grep -v '^ *+' conftest.er1 >conftest.err
 
7330
  rm -f conftest.er1
 
7331
  cat conftest.err >&5
6489
7332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490
7333
  (exit $ac_status); } &&
6491
 
         { ac_try='test -s conftest$ac_exeext'
 
7334
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7335
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7336
  (eval $ac_try) 2>&5
 
7337
  ac_status=$?
 
7338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7339
  (exit $ac_status); }; } &&
 
7340
         { ac_try='test -s conftest$ac_exeext'
6492
7341
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493
7342
  (eval $ac_try) 2>&5
6494
7343
  ac_status=$?
6497
7346
  ac_cv_func_setutent=yes
6498
7347
else
6499
7348
  echo "$as_me: failed program was:" >&5
6500
 
cat conftest.$ac_ext >&5
 
7349
sed 's/^/| /' conftest.$ac_ext >&5
 
7350
 
6501
7351
ac_cv_func_setutent=no
6502
7352
fi
6503
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7353
rm -f conftest.err conftest.$ac_objext \
 
7354
      conftest$ac_exeext conftest.$ac_ext
6504
7355
fi
6505
7356
echo "$as_me:$LINENO: result: $ac_cv_func_setutent" >&5
6506
7357
echo "${ECHO_T}$ac_cv_func_setutent" >&6
6517
7368
  echo $ECHO_N "(cached) $ECHO_C" >&6
6518
7369
else
6519
7370
  cat >conftest.$ac_ext <<_ACEOF
6520
 
#line $LINENO "configure"
6521
 
#include "confdefs.h"
 
7371
/* confdefs.h.  */
 
7372
_ACEOF
 
7373
cat confdefs.h >>conftest.$ac_ext
 
7374
cat >>conftest.$ac_ext <<_ACEOF
 
7375
/* end confdefs.h.  */
 
7376
/* Define setutxent to an innocuous variant, in case <limits.h> declares setutxent.
 
7377
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
7378
#define setutxent innocuous_setutxent
 
7379
 
6522
7380
/* System header to define __stub macros and hopefully few prototypes,
6523
 
    which can conflict with char setutxent (); below.  */
6524
 
#include <assert.h>
 
7381
    which can conflict with char setutxent (); below.
 
7382
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7383
    <limits.h> exists even on freestanding compilers.  */
 
7384
 
 
7385
#ifdef __STDC__
 
7386
# include <limits.h>
 
7387
#else
 
7388
# include <assert.h>
 
7389
#endif
 
7390
 
 
7391
#undef setutxent
 
7392
 
6525
7393
/* Override any gcc2 internal prototype to avoid an error.  */
6526
7394
#ifdef __cplusplus
6527
7395
extern "C"
 
7396
{
6528
7397
#endif
6529
7398
/* We use char because int might match the return type of a gcc2
6530
7399
   builtin and then its argument prototype would still apply.  */
6531
7400
char setutxent ();
6532
 
char (*f) ();
6533
 
 
6534
 
#ifdef F77_DUMMY_MAIN
6535
 
#  ifdef __cplusplus
6536
 
     extern "C"
6537
 
#  endif
6538
 
   int F77_DUMMY_MAIN() { return 1; }
6539
 
#endif
6540
 
int
6541
 
main ()
6542
 
{
6543
7401
/* The GNU C library defines this for functions which it implements
6544
7402
    to always fail with ENOSYS.  Some functions are actually named
6545
7403
    something starting with __ and the normal name is an alias.  */
6546
7404
#if defined (__stub_setutxent) || defined (__stub___setutxent)
6547
7405
choke me
6548
7406
#else
6549
 
f = setutxent;
 
7407
char (*f) () = setutxent;
 
7408
#endif
 
7409
#ifdef __cplusplus
 
7410
}
6550
7411
#endif
6551
7412
 
 
7413
int
 
7414
main ()
 
7415
{
 
7416
return f != setutxent;
6552
7417
  ;
6553
7418
  return 0;
6554
7419
}
6555
7420
_ACEOF
6556
7421
rm -f conftest.$ac_objext conftest$ac_exeext
6557
7422
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6558
 
  (eval $ac_link) 2>&5
 
7423
  (eval $ac_link) 2>conftest.er1
6559
7424
  ac_status=$?
 
7425
  grep -v '^ *+' conftest.er1 >conftest.err
 
7426
  rm -f conftest.er1
 
7427
  cat conftest.err >&5
6560
7428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561
7429
  (exit $ac_status); } &&
6562
 
         { ac_try='test -s conftest$ac_exeext'
 
7430
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7431
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7432
  (eval $ac_try) 2>&5
 
7433
  ac_status=$?
 
7434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7435
  (exit $ac_status); }; } &&
 
7436
         { ac_try='test -s conftest$ac_exeext'
6563
7437
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564
7438
  (eval $ac_try) 2>&5
6565
7439
  ac_status=$?
6568
7442
  ac_cv_func_setutxent=yes
6569
7443
else
6570
7444
  echo "$as_me: failed program was:" >&5
6571
 
cat conftest.$ac_ext >&5
 
7445
sed 's/^/| /' conftest.$ac_ext >&5
 
7446
 
6572
7447
ac_cv_func_setutxent=no
6573
7448
fi
6574
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7449
rm -f conftest.err conftest.$ac_objext \
 
7450
      conftest$ac_exeext conftest.$ac_ext
6575
7451
fi
6576
7452
echo "$as_me:$LINENO: result: $ac_cv_func_setutxent" >&5
6577
7453
echo "${ECHO_T}$ac_cv_func_setutxent" >&6
6588
7464
  echo $ECHO_N "(cached) $ECHO_C" >&6
6589
7465
else
6590
7466
  cat >conftest.$ac_ext <<_ACEOF
6591
 
#line $LINENO "configure"
6592
 
#include "confdefs.h"
 
7467
/* confdefs.h.  */
 
7468
_ACEOF
 
7469
cat confdefs.h >>conftest.$ac_ext
 
7470
cat >>conftest.$ac_ext <<_ACEOF
 
7471
/* end confdefs.h.  */
 
7472
/* Define updwtmp to an innocuous variant, in case <limits.h> declares updwtmp.
 
7473
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
7474
#define updwtmp innocuous_updwtmp
 
7475
 
6593
7476
/* System header to define __stub macros and hopefully few prototypes,
6594
 
    which can conflict with char updwtmp (); below.  */
6595
 
#include <assert.h>
 
7477
    which can conflict with char updwtmp (); below.
 
7478
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7479
    <limits.h> exists even on freestanding compilers.  */
 
7480
 
 
7481
#ifdef __STDC__
 
7482
# include <limits.h>
 
7483
#else
 
7484
# include <assert.h>
 
7485
#endif
 
7486
 
 
7487
#undef updwtmp
 
7488
 
6596
7489
/* Override any gcc2 internal prototype to avoid an error.  */
6597
7490
#ifdef __cplusplus
6598
7491
extern "C"
 
7492
{
6599
7493
#endif
6600
7494
/* We use char because int might match the return type of a gcc2
6601
7495
   builtin and then its argument prototype would still apply.  */
6602
7496
char updwtmp ();
6603
 
char (*f) ();
6604
 
 
6605
 
#ifdef F77_DUMMY_MAIN
6606
 
#  ifdef __cplusplus
6607
 
     extern "C"
6608
 
#  endif
6609
 
   int F77_DUMMY_MAIN() { return 1; }
6610
 
#endif
6611
 
int
6612
 
main ()
6613
 
{
6614
7497
/* The GNU C library defines this for functions which it implements
6615
7498
    to always fail with ENOSYS.  Some functions are actually named
6616
7499
    something starting with __ and the normal name is an alias.  */
6617
7500
#if defined (__stub_updwtmp) || defined (__stub___updwtmp)
6618
7501
choke me
6619
7502
#else
6620
 
f = updwtmp;
 
7503
char (*f) () = updwtmp;
 
7504
#endif
 
7505
#ifdef __cplusplus
 
7506
}
6621
7507
#endif
6622
7508
 
 
7509
int
 
7510
main ()
 
7511
{
 
7512
return f != updwtmp;
6623
7513
  ;
6624
7514
  return 0;
6625
7515
}
6626
7516
_ACEOF
6627
7517
rm -f conftest.$ac_objext conftest$ac_exeext
6628
7518
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6629
 
  (eval $ac_link) 2>&5
 
7519
  (eval $ac_link) 2>conftest.er1
6630
7520
  ac_status=$?
 
7521
  grep -v '^ *+' conftest.er1 >conftest.err
 
7522
  rm -f conftest.er1
 
7523
  cat conftest.err >&5
6631
7524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632
7525
  (exit $ac_status); } &&
6633
 
         { ac_try='test -s conftest$ac_exeext'
 
7526
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7527
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7528
  (eval $ac_try) 2>&5
 
7529
  ac_status=$?
 
7530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7531
  (exit $ac_status); }; } &&
 
7532
         { ac_try='test -s conftest$ac_exeext'
6634
7533
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6635
7534
  (eval $ac_try) 2>&5
6636
7535
  ac_status=$?
6639
7538
  ac_cv_func_updwtmp=yes
6640
7539
else
6641
7540
  echo "$as_me: failed program was:" >&5
6642
 
cat conftest.$ac_ext >&5
 
7541
sed 's/^/| /' conftest.$ac_ext >&5
 
7542
 
6643
7543
ac_cv_func_updwtmp=no
6644
7544
fi
6645
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7545
rm -f conftest.err conftest.$ac_objext \
 
7546
      conftest$ac_exeext conftest.$ac_ext
6646
7547
fi
6647
7548
echo "$as_me:$LINENO: result: $ac_cv_func_updwtmp" >&5
6648
7549
echo "${ECHO_T}$ac_cv_func_updwtmp" >&6
6659
7560
  echo $ECHO_N "(cached) $ECHO_C" >&6
6660
7561
else
6661
7562
  cat >conftest.$ac_ext <<_ACEOF
6662
 
#line $LINENO "configure"
6663
 
#include "confdefs.h"
 
7563
/* confdefs.h.  */
 
7564
_ACEOF
 
7565
cat confdefs.h >>conftest.$ac_ext
 
7566
cat >>conftest.$ac_ext <<_ACEOF
 
7567
/* end confdefs.h.  */
 
7568
/* Define updwtmpx to an innocuous variant, in case <limits.h> declares updwtmpx.
 
7569
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
7570
#define updwtmpx innocuous_updwtmpx
 
7571
 
6664
7572
/* System header to define __stub macros and hopefully few prototypes,
6665
 
    which can conflict with char updwtmpx (); below.  */
6666
 
#include <assert.h>
 
7573
    which can conflict with char updwtmpx (); below.
 
7574
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7575
    <limits.h> exists even on freestanding compilers.  */
 
7576
 
 
7577
#ifdef __STDC__
 
7578
# include <limits.h>
 
7579
#else
 
7580
# include <assert.h>
 
7581
#endif
 
7582
 
 
7583
#undef updwtmpx
 
7584
 
6667
7585
/* Override any gcc2 internal prototype to avoid an error.  */
6668
7586
#ifdef __cplusplus
6669
7587
extern "C"
 
7588
{
6670
7589
#endif
6671
7590
/* We use char because int might match the return type of a gcc2
6672
7591
   builtin and then its argument prototype would still apply.  */
6673
7592
char updwtmpx ();
6674
 
char (*f) ();
6675
 
 
6676
 
#ifdef F77_DUMMY_MAIN
6677
 
#  ifdef __cplusplus
6678
 
     extern "C"
6679
 
#  endif
6680
 
   int F77_DUMMY_MAIN() { return 1; }
6681
 
#endif
6682
 
int
6683
 
main ()
6684
 
{
6685
7593
/* The GNU C library defines this for functions which it implements
6686
7594
    to always fail with ENOSYS.  Some functions are actually named
6687
7595
    something starting with __ and the normal name is an alias.  */
6688
7596
#if defined (__stub_updwtmpx) || defined (__stub___updwtmpx)
6689
7597
choke me
6690
7598
#else
6691
 
f = updwtmpx;
 
7599
char (*f) () = updwtmpx;
 
7600
#endif
 
7601
#ifdef __cplusplus
 
7602
}
6692
7603
#endif
6693
7604
 
 
7605
int
 
7606
main ()
 
7607
{
 
7608
return f != updwtmpx;
6694
7609
  ;
6695
7610
  return 0;
6696
7611
}
6697
7612
_ACEOF
6698
7613
rm -f conftest.$ac_objext conftest$ac_exeext
6699
7614
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6700
 
  (eval $ac_link) 2>&5
 
7615
  (eval $ac_link) 2>conftest.er1
6701
7616
  ac_status=$?
 
7617
  grep -v '^ *+' conftest.er1 >conftest.err
 
7618
  rm -f conftest.er1
 
7619
  cat conftest.err >&5
6702
7620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703
7621
  (exit $ac_status); } &&
6704
 
         { ac_try='test -s conftest$ac_exeext'
 
7622
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7623
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7624
  (eval $ac_try) 2>&5
 
7625
  ac_status=$?
 
7626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7627
  (exit $ac_status); }; } &&
 
7628
         { ac_try='test -s conftest$ac_exeext'
6705
7629
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706
7630
  (eval $ac_try) 2>&5
6707
7631
  ac_status=$?
6710
7634
  ac_cv_func_updwtmpx=yes
6711
7635
else
6712
7636
  echo "$as_me: failed program was:" >&5
6713
 
cat conftest.$ac_ext >&5
 
7637
sed 's/^/| /' conftest.$ac_ext >&5
 
7638
 
6714
7639
ac_cv_func_updwtmpx=no
6715
7640
fi
6716
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7641
rm -f conftest.err conftest.$ac_objext \
 
7642
      conftest$ac_exeext conftest.$ac_ext
6717
7643
fi
6718
7644
echo "$as_me:$LINENO: result: $ac_cv_func_updwtmpx" >&5
6719
7645
echo "${ECHO_T}$ac_cv_func_updwtmpx" >&6
6741
7667
else
6742
7668
 
6743
7669
cat >conftest.$ac_ext <<_ACEOF
6744
 
#line $LINENO "configure"
6745
 
#include "confdefs.h"
 
7670
/* confdefs.h.  */
 
7671
_ACEOF
 
7672
cat confdefs.h >>conftest.$ac_ext
 
7673
cat >>conftest.$ac_ext <<_ACEOF
 
7674
/* end confdefs.h.  */
6746
7675
#include <sys/types.h>
6747
7676
#include <sys/socket.h>
6748
7677
extern int getsockname(int, $sock_arg1, $sock_arg2);
6749
7678
 
6750
 
#ifdef F77_DUMMY_MAIN
6751
 
#  ifdef __cplusplus
6752
 
     extern "C"
6753
 
#  endif
6754
 
   int F77_DUMMY_MAIN() { return 1; }
6755
 
#endif
6756
7679
int
6757
7680
main ()
6758
7681
{
6763
7686
_ACEOF
6764
7687
rm -f conftest.$ac_objext
6765
7688
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6766
 
  (eval $ac_compile) 2>&5
 
7689
  (eval $ac_compile) 2>conftest.er1
6767
7690
  ac_status=$?
 
7691
  grep -v '^ *+' conftest.er1 >conftest.err
 
7692
  rm -f conftest.er1
 
7693
  cat conftest.err >&5
6768
7694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769
7695
  (exit $ac_status); } &&
6770
 
         { ac_try='test -s conftest.$ac_objext'
 
7696
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7697
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7698
  (eval $ac_try) 2>&5
 
7699
  ac_status=$?
 
7700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7701
  (exit $ac_status); }; } &&
 
7702
         { ac_try='test -s conftest.$ac_objext'
6771
7703
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772
7704
  (eval $ac_try) 2>&5
6773
7705
  ac_status=$?
6776
7708
  eval "krb5_cv_getsockname_proto_$krb5_lib_var=yes"
6777
7709
else
6778
7710
  echo "$as_me: failed program was:" >&5
6779
 
cat conftest.$ac_ext >&5
 
7711
sed 's/^/| /' conftest.$ac_ext >&5
 
7712
 
6780
7713
eval "krb5_cv_getsockname_proto_$krb5_lib_var=no"
6781
7714
fi
6782
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
7715
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6783
7716
fi
6784
7717
 
6785
7718
if eval "test \"`echo '$krb5_cv_getsockname_proto_'$krb5_lib_var`\" = yes"; then
6944
7877
  echo $ECHO_N "(cached) $ECHO_C" >&6
6945
7878
else
6946
7879
  cat >conftest.$ac_ext <<_ACEOF
6947
 
#line $LINENO "configure"
6948
 
#include "confdefs.h"
 
7880
/* confdefs.h.  */
 
7881
_ACEOF
 
7882
cat confdefs.h >>conftest.$ac_ext
 
7883
cat >>conftest.$ac_ext <<_ACEOF
 
7884
/* end confdefs.h.  */
6949
7885
#include <sys/stream.h>
6950
7886
#include <sys/stropts.h>
6951
 
#ifdef F77_DUMMY_MAIN
6952
 
#  ifdef __cplusplus
6953
 
     extern "C"
6954
 
#  endif
6955
 
   int F77_DUMMY_MAIN() { return 1; }
6956
 
#endif
6957
7887
int
6958
7888
main ()
6959
7889
{
6964
7894
_ACEOF
6965
7895
rm -f conftest.$ac_objext
6966
7896
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6967
 
  (eval $ac_compile) 2>&5
 
7897
  (eval $ac_compile) 2>conftest.er1
6968
7898
  ac_status=$?
 
7899
  grep -v '^ *+' conftest.er1 >conftest.err
 
7900
  rm -f conftest.er1
 
7901
  cat conftest.err >&5
6969
7902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970
7903
  (exit $ac_status); } &&
6971
 
         { ac_try='test -s conftest.$ac_objext'
 
7904
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7905
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7906
  (eval $ac_try) 2>&5
 
7907
  ac_status=$?
 
7908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7909
  (exit $ac_status); }; } &&
 
7910
         { ac_try='test -s conftest.$ac_objext'
6972
7911
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973
7912
  (eval $ac_try) 2>&5
6974
7913
  ac_status=$?
6977
7916
  krb5_cv_has_streams=yes
6978
7917
else
6979
7918
  echo "$as_me: failed program was:" >&5
6980
 
cat conftest.$ac_ext >&5
 
7919
sed 's/^/| /' conftest.$ac_ext >&5
 
7920
 
6981
7921
krb5_cv_has_streams=no
6982
7922
fi
6983
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
7923
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6984
7924
fi
6985
7925
 
6986
7926
echo "$as_me:$LINENO: result: $krb5_cv_has_streams" >&5
6997
7937
  echo $ECHO_N "(cached) $ECHO_C" >&6
6998
7938
else
6999
7939
  cat >conftest.$ac_ext <<_ACEOF
7000
 
#line $LINENO "configure"
7001
 
#include "confdefs.h"
 
7940
/* confdefs.h.  */
 
7941
_ACEOF
 
7942
cat confdefs.h >>conftest.$ac_ext
 
7943
cat >>conftest.$ac_ext <<_ACEOF
 
7944
/* end confdefs.h.  */
7002
7945
#include <sys/types.h>
7003
7946
#include <fcntl.h>
7004
 
#ifdef F77_DUMMY_MAIN
7005
 
#  ifdef __cplusplus
7006
 
     extern "C"
7007
 
#  endif
7008
 
   int F77_DUMMY_MAIN() { return 1; }
7009
 
#endif
7010
7947
int
7011
7948
main ()
7012
7949
{
7017
7954
_ACEOF
7018
7955
rm -f conftest.$ac_objext
7019
7956
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7020
 
  (eval $ac_compile) 2>&5
 
7957
  (eval $ac_compile) 2>conftest.er1
7021
7958
  ac_status=$?
 
7959
  grep -v '^ *+' conftest.er1 >conftest.err
 
7960
  rm -f conftest.er1
 
7961
  cat conftest.err >&5
7022
7962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023
7963
  (exit $ac_status); } &&
7024
 
         { ac_try='test -s conftest.$ac_objext'
 
7964
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7965
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7966
  (eval $ac_try) 2>&5
 
7967
  ac_status=$?
 
7968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7969
  (exit $ac_status); }; } &&
 
7970
         { ac_try='test -s conftest.$ac_objext'
7025
7971
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026
7972
  (eval $ac_try) 2>&5
7027
7973
  ac_status=$?
7030
7976
  krb5_cv_f_setown=yes
7031
7977
else
7032
7978
  echo "$as_me: failed program was:" >&5
7033
 
cat conftest.$ac_ext >&5
 
7979
sed 's/^/| /' conftest.$ac_ext >&5
 
7980
 
7034
7981
krb5_cv_f_setown=no
7035
7982
fi
7036
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
7983
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7037
7984
fi
7038
7985
 
7039
7986
echo "$as_me:$LINENO: result: $krb5_cv_f_setown" >&5
7050
7997
  echo $ECHO_N "(cached) $ECHO_C" >&6
7051
7998
else
7052
7999
  cat >conftest.$ac_ext <<_ACEOF
7053
 
#line $LINENO "configure"
7054
 
#include "confdefs.h"
 
8000
/* confdefs.h.  */
 
8001
_ACEOF
 
8002
cat confdefs.h >>conftest.$ac_ext
 
8003
cat >>conftest.$ac_ext <<_ACEOF
 
8004
/* end confdefs.h.  */
7055
8005
 
7056
 
#ifdef F77_DUMMY_MAIN
7057
 
#  ifdef __cplusplus
7058
 
     extern "C"
7059
 
#  endif
7060
 
   int F77_DUMMY_MAIN() { return 1; }
7061
 
#endif
7062
8006
int
7063
8007
main ()
7064
8008
{
7069
8013
_ACEOF
7070
8014
rm -f conftest.$ac_objext conftest$ac_exeext
7071
8015
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7072
 
  (eval $ac_link) 2>&5
 
8016
  (eval $ac_link) 2>conftest.er1
7073
8017
  ac_status=$?
 
8018
  grep -v '^ *+' conftest.er1 >conftest.err
 
8019
  rm -f conftest.er1
 
8020
  cat conftest.err >&5
7074
8021
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075
8022
  (exit $ac_status); } &&
7076
 
         { ac_try='test -s conftest$ac_exeext'
 
8023
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8024
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8025
  (eval $ac_try) 2>&5
 
8026
  ac_status=$?
 
8027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8028
  (exit $ac_status); }; } &&
 
8029
         { ac_try='test -s conftest$ac_exeext'
7077
8030
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078
8031
  (eval $ac_try) 2>&5
7079
8032
  ac_status=$?
7082
8035
  krb5_cv_setenv=yes
7083
8036
else
7084
8037
  echo "$as_me: failed program was:" >&5
7085
 
cat conftest.$ac_ext >&5
 
8038
sed 's/^/| /' conftest.$ac_ext >&5
 
8039
 
7086
8040
krb5_cv_setenv=no
7087
8041
fi
7088
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8042
rm -f conftest.err conftest.$ac_objext \
 
8043
      conftest$ac_exeext conftest.$ac_ext
7089
8044
fi
7090
8045
 
7091
8046
echo "$as_me:$LINENO: result: $krb5_cv_setenv" >&5
7106
8061
  echo $ECHO_N "(cached) $ECHO_C" >&6
7107
8062
else
7108
8063
  cat >conftest.$ac_ext <<_ACEOF
7109
 
#line $LINENO "configure"
7110
 
#include "confdefs.h"
 
8064
/* confdefs.h.  */
 
8065
_ACEOF
 
8066
cat confdefs.h >>conftest.$ac_ext
 
8067
cat >>conftest.$ac_ext <<_ACEOF
 
8068
/* end confdefs.h.  */
7111
8069
#ifndef __STDC__
7112
8070
#define __STDC__ 1
7113
8071
#endif
7114
8072
#include <unistd.h>
7115
 
#ifdef F77_DUMMY_MAIN
7116
 
#  ifdef __cplusplus
7117
 
     extern "C"
7118
 
#  endif
7119
 
   int F77_DUMMY_MAIN() { return 1; }
7120
 
#endif
7121
8073
int
7122
8074
main ()
7123
8075
{
7128
8080
_ACEOF
7129
8081
rm -f conftest.$ac_objext
7130
8082
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7131
 
  (eval $ac_compile) 2>&5
 
8083
  (eval $ac_compile) 2>conftest.er1
7132
8084
  ac_status=$?
 
8085
  grep -v '^ *+' conftest.er1 >conftest.err
 
8086
  rm -f conftest.er1
 
8087
  cat conftest.err >&5
7133
8088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134
8089
  (exit $ac_status); } &&
7135
 
         { ac_try='test -s conftest.$ac_objext'
 
8090
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8091
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8092
  (eval $ac_try) 2>&5
 
8093
  ac_status=$?
 
8094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8095
  (exit $ac_status); }; } &&
 
8096
         { ac_try='test -s conftest.$ac_objext'
7136
8097
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137
8098
  (eval $ac_try) 2>&5
7138
8099
  ac_status=$?
7141
8102
  krb5_cv_setpgrp_args=two
7142
8103
else
7143
8104
  echo "$as_me: failed program was:" >&5
7144
 
cat conftest.$ac_ext >&5
 
8105
sed 's/^/| /' conftest.$ac_ext >&5
 
8106
 
7145
8107
krb5_cv_setpgrp_args=void
7146
8108
fi
7147
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
8109
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7148
8110
fi
7149
8111
 
7150
8112
echo "$as_me:$LINENO: result: $krb5_cv_setpgrp_args" >&5
7161
8123
  echo $ECHO_N "(cached) $ECHO_C" >&6
7162
8124
else
7163
8125
  cat >conftest.$ac_ext <<_ACEOF
7164
 
#line $LINENO "configure"
7165
 
#include "confdefs.h"
 
8126
/* confdefs.h.  */
 
8127
_ACEOF
 
8128
cat confdefs.h >>conftest.$ac_ext
 
8129
cat >>conftest.$ac_ext <<_ACEOF
 
8130
/* end confdefs.h.  */
7166
8131
#include <sys/types.h>
7167
8132
#include <pwd.h>
7168
8133
#include <shadow.h>
7169
 
#ifdef F77_DUMMY_MAIN
7170
 
#  ifdef __cplusplus
7171
 
     extern "C"
7172
 
#  endif
7173
 
   int F77_DUMMY_MAIN() { return 1; }
7174
 
#endif
7175
8134
int
7176
8135
main ()
7177
8136
{
7182
8141
_ACEOF
7183
8142
rm -f conftest.$ac_objext conftest$ac_exeext
7184
8143
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7185
 
  (eval $ac_link) 2>&5
 
8144
  (eval $ac_link) 2>conftest.er1
7186
8145
  ac_status=$?
 
8146
  grep -v '^ *+' conftest.er1 >conftest.err
 
8147
  rm -f conftest.er1
 
8148
  cat conftest.err >&5
7187
8149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188
8150
  (exit $ac_status); } &&
7189
 
         { ac_try='test -s conftest$ac_exeext'
 
8151
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8152
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8153
  (eval $ac_try) 2>&5
 
8154
  ac_status=$?
 
8155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8156
  (exit $ac_status); }; } &&
 
8157
         { ac_try='test -s conftest$ac_exeext'
7190
8158
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191
8159
  (eval $ac_try) 2>&5
7192
8160
  ac_status=$?
7195
8163
  krb5_cv_shadow_pwd=yes
7196
8164
else
7197
8165
  echo "$as_me: failed program was:" >&5
7198
 
cat conftest.$ac_ext >&5
 
8166
sed 's/^/| /' conftest.$ac_ext >&5
 
8167
 
7199
8168
krb5_cv_shadow_pwd=no
7200
8169
fi
7201
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8170
rm -f conftest.err conftest.$ac_objext \
 
8171
      conftest$ac_exeext conftest.$ac_ext
7202
8172
fi
7203
8173
 
7204
8174
echo "$as_me:$LINENO: result: $krb5_cv_shadow_pwd" >&5
7249
8219
  echo $ECHO_N "(cached) $ECHO_C" >&6
7250
8220
else
7251
8221
  cat >conftest.$ac_ext <<_ACEOF
7252
 
#line $LINENO "configure"
7253
 
#include "confdefs.h"
 
8222
/* confdefs.h.  */
 
8223
_ACEOF
 
8224
cat confdefs.h >>conftest.$ac_ext
 
8225
cat >>conftest.$ac_ext <<_ACEOF
 
8226
/* end confdefs.h.  */
7254
8227
 
7255
 
#ifdef F77_DUMMY_MAIN
7256
 
#  ifdef __cplusplus
7257
 
     extern "C"
7258
 
#  endif
7259
 
   int F77_DUMMY_MAIN() { return 1; }
7260
 
#endif
7261
8228
int
7262
8229
main ()
7263
8230
{
7314
8281
_ACEOF
7315
8282
rm -f conftest.$ac_objext
7316
8283
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7317
 
  (eval $ac_compile) 2>&5
 
8284
  (eval $ac_compile) 2>conftest.er1
7318
8285
  ac_status=$?
 
8286
  grep -v '^ *+' conftest.er1 >conftest.err
 
8287
  rm -f conftest.er1
 
8288
  cat conftest.err >&5
7319
8289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320
8290
  (exit $ac_status); } &&
7321
 
         { ac_try='test -s conftest.$ac_objext'
 
8291
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8292
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8293
  (eval $ac_try) 2>&5
 
8294
  ac_status=$?
 
8295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8296
  (exit $ac_status); }; } &&
 
8297
         { ac_try='test -s conftest.$ac_objext'
7322
8298
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323
8299
  (eval $ac_try) 2>&5
7324
8300
  ac_status=$?
7327
8303
  ac_cv_c_const=yes
7328
8304
else
7329
8305
  echo "$as_me: failed program was:" >&5
7330
 
cat conftest.$ac_ext >&5
 
8306
sed 's/^/| /' conftest.$ac_ext >&5
 
8307
 
7331
8308
ac_cv_c_const=no
7332
8309
fi
7333
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
8310
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7334
8311
fi
7335
8312
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7336
8313
echo "${ECHO_T}$ac_cv_c_const" >&6
7365
8342
  echo $ECHO_N "(cached) $ECHO_C" >&6
7366
8343
else
7367
8344
  cat >conftest.$ac_ext <<_ACEOF
7368
 
#line $LINENO "configure"
7369
 
#include "confdefs.h"
 
8345
/* confdefs.h.  */
 
8346
_ACEOF
 
8347
cat confdefs.h >>conftest.$ac_ext
 
8348
cat >>conftest.$ac_ext <<_ACEOF
 
8349
/* end confdefs.h.  */
 
8350
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
8351
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8352
#define $ac_func innocuous_$ac_func
 
8353
 
7370
8354
/* System header to define __stub macros and hopefully few prototypes,
7371
 
    which can conflict with char $ac_func (); below.  */
7372
 
#include <assert.h>
 
8355
    which can conflict with char $ac_func (); below.
 
8356
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8357
    <limits.h> exists even on freestanding compilers.  */
 
8358
 
 
8359
#ifdef __STDC__
 
8360
# include <limits.h>
 
8361
#else
 
8362
# include <assert.h>
 
8363
#endif
 
8364
 
 
8365
#undef $ac_func
 
8366
 
7373
8367
/* Override any gcc2 internal prototype to avoid an error.  */
7374
8368
#ifdef __cplusplus
7375
8369
extern "C"
 
8370
{
7376
8371
#endif
7377
8372
/* We use char because int might match the return type of a gcc2
7378
8373
   builtin and then its argument prototype would still apply.  */
7379
8374
char $ac_func ();
7380
 
char (*f) ();
7381
 
 
7382
 
#ifdef F77_DUMMY_MAIN
7383
 
#  ifdef __cplusplus
7384
 
     extern "C"
7385
 
#  endif
7386
 
   int F77_DUMMY_MAIN() { return 1; }
7387
 
#endif
7388
 
int
7389
 
main ()
7390
 
{
7391
8375
/* The GNU C library defines this for functions which it implements
7392
8376
    to always fail with ENOSYS.  Some functions are actually named
7393
8377
    something starting with __ and the normal name is an alias.  */
7394
8378
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7395
8379
choke me
7396
8380
#else
7397
 
f = $ac_func;
 
8381
char (*f) () = $ac_func;
 
8382
#endif
 
8383
#ifdef __cplusplus
 
8384
}
7398
8385
#endif
7399
8386
 
 
8387
int
 
8388
main ()
 
8389
{
 
8390
return f != $ac_func;
7400
8391
  ;
7401
8392
  return 0;
7402
8393
}
7403
8394
_ACEOF
7404
8395
rm -f conftest.$ac_objext conftest$ac_exeext
7405
8396
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7406
 
  (eval $ac_link) 2>&5
 
8397
  (eval $ac_link) 2>conftest.er1
7407
8398
  ac_status=$?
 
8399
  grep -v '^ *+' conftest.er1 >conftest.err
 
8400
  rm -f conftest.er1
 
8401
  cat conftest.err >&5
7408
8402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409
8403
  (exit $ac_status); } &&
7410
 
         { ac_try='test -s conftest$ac_exeext'
 
8404
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8405
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8406
  (eval $ac_try) 2>&5
 
8407
  ac_status=$?
 
8408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8409
  (exit $ac_status); }; } &&
 
8410
         { ac_try='test -s conftest$ac_exeext'
7411
8411
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412
8412
  (eval $ac_try) 2>&5
7413
8413
  ac_status=$?
7416
8416
  eval "$as_ac_var=yes"
7417
8417
else
7418
8418
  echo "$as_me: failed program was:" >&5
7419
 
cat conftest.$ac_ext >&5
 
8419
sed 's/^/| /' conftest.$ac_ext >&5
 
8420
 
7420
8421
eval "$as_ac_var=no"
7421
8422
fi
7422
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8423
rm -f conftest.err conftest.$ac_objext \
 
8424
      conftest$ac_exeext conftest.$ac_ext
7423
8425
fi
7424
8426
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7425
8427
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7451
8453
echo "$as_me:$LINENO: checking $ac_header usability" >&5
7452
8454
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7453
8455
cat >conftest.$ac_ext <<_ACEOF
7454
 
#line $LINENO "configure"
7455
 
#include "confdefs.h"
 
8456
/* confdefs.h.  */
 
8457
_ACEOF
 
8458
cat confdefs.h >>conftest.$ac_ext
 
8459
cat >>conftest.$ac_ext <<_ACEOF
 
8460
/* end confdefs.h.  */
7456
8461
$ac_includes_default
7457
8462
#include <$ac_header>
7458
8463
_ACEOF
7459
8464
rm -f conftest.$ac_objext
7460
8465
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7461
 
  (eval $ac_compile) 2>&5
 
8466
  (eval $ac_compile) 2>conftest.er1
7462
8467
  ac_status=$?
 
8468
  grep -v '^ *+' conftest.er1 >conftest.err
 
8469
  rm -f conftest.er1
 
8470
  cat conftest.err >&5
7463
8471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464
8472
  (exit $ac_status); } &&
7465
 
         { ac_try='test -s conftest.$ac_objext'
 
8473
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8474
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8475
  (eval $ac_try) 2>&5
 
8476
  ac_status=$?
 
8477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8478
  (exit $ac_status); }; } &&
 
8479
         { ac_try='test -s conftest.$ac_objext'
7466
8480
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467
8481
  (eval $ac_try) 2>&5
7468
8482
  ac_status=$?
7471
8485
  ac_header_compiler=yes
7472
8486
else
7473
8487
  echo "$as_me: failed program was:" >&5
7474
 
cat conftest.$ac_ext >&5
 
8488
sed 's/^/| /' conftest.$ac_ext >&5
 
8489
 
7475
8490
ac_header_compiler=no
7476
8491
fi
7477
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
8492
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7478
8493
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7479
8494
echo "${ECHO_T}$ac_header_compiler" >&6
7480
8495
 
7482
8497
echo "$as_me:$LINENO: checking $ac_header presence" >&5
7483
8498
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7484
8499
cat >conftest.$ac_ext <<_ACEOF
7485
 
#line $LINENO "configure"
7486
 
#include "confdefs.h"
 
8500
/* confdefs.h.  */
 
8501
_ACEOF
 
8502
cat confdefs.h >>conftest.$ac_ext
 
8503
cat >>conftest.$ac_ext <<_ACEOF
 
8504
/* end confdefs.h.  */
7487
8505
#include <$ac_header>
7488
8506
_ACEOF
7489
8507
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7490
8508
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7491
8509
  ac_status=$?
7492
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
8510
  grep -v '^ *+' conftest.er1 >conftest.err
7493
8511
  rm -f conftest.er1
7494
8512
  cat conftest.err >&5
7495
8513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496
8514
  (exit $ac_status); } >/dev/null; then
7497
8515
  if test -s conftest.err; then
7498
8516
    ac_cpp_err=$ac_c_preproc_warn_flag
 
8517
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7499
8518
  else
7500
8519
    ac_cpp_err=
7501
8520
  fi
7506
8525
  ac_header_preproc=yes
7507
8526
else
7508
8527
  echo "$as_me: failed program was:" >&5
7509
 
  cat conftest.$ac_ext >&5
 
8528
sed 's/^/| /' conftest.$ac_ext >&5
 
8529
 
7510
8530
  ac_header_preproc=no
7511
8531
fi
7512
8532
rm -f conftest.err conftest.$ac_ext
7514
8534
echo "${ECHO_T}$ac_header_preproc" >&6
7515
8535
 
7516
8536
# So?  What about this header?
7517
 
case $ac_header_compiler:$ac_header_preproc in
7518
 
  yes:no )
 
8537
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
8538
  yes:no: )
7519
8539
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7520
8540
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7521
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7522
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7523
 
  no:yes )
 
8541
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
8542
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
8543
    ac_header_preproc=yes
 
8544
    ;;
 
8545
  no:yes:* )
7524
8546
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7525
8547
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7526
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7527
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
8548
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
8549
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
8550
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
8551
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
8552
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
8553
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7528
8554
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7529
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
 
8555
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8556
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
8557
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
8558
    (
 
8559
      cat <<\_ASBOX
 
8560
## ------------------------------------------ ##
 
8561
## Report this to the AC_PACKAGE_NAME lists.  ##
 
8562
## ------------------------------------------ ##
 
8563
_ASBOX
 
8564
    ) |
 
8565
      sed "s/^/$as_me: WARNING:     /" >&2
 
8566
    ;;
7530
8567
esac
7531
8568
echo "$as_me:$LINENO: checking for $ac_header" >&5
7532
8569
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7533
8570
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7534
8571
  echo $ECHO_N "(cached) $ECHO_C" >&6
7535
8572
else
7536
 
  eval "$as_ac_Header=$ac_header_preproc"
 
8573
  eval "$as_ac_Header=\$ac_header_preproc"
7537
8574
fi
7538
8575
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7539
8576
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7734
8771
   { (exit 1); exit 1; }; }
7735
8772
else
7736
8773
  cat >conftest.$ac_ext <<_ACEOF
7737
 
#line $LINENO "configure"
7738
 
#include "confdefs.h"
 
8774
/* confdefs.h.  */
 
8775
_ACEOF
 
8776
cat confdefs.h >>conftest.$ac_ext
 
8777
cat >>conftest.$ac_ext <<_ACEOF
 
8778
/* end confdefs.h.  */
7739
8779
 
7740
8780
#include <sys/types.h>
7741
8781
#include <regex.h>
7758
8798
else
7759
8799
  echo "$as_me: program exited with status $ac_status" >&5
7760
8800
echo "$as_me: failed program was:" >&5
7761
 
cat conftest.$ac_ext >&5
 
8801
sed 's/^/| /' conftest.$ac_ext >&5
 
8802
 
7762
8803
( exit $ac_status )
7763
8804
ac_cv_func_regcomp=no
7764
8805
fi
7765
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
8806
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7766
8807
fi
7767
8808
fi
7768
8809
 
7787
8828
  echo $ECHO_N "(cached) $ECHO_C" >&6
7788
8829
else
7789
8830
  cat >conftest.$ac_ext <<_ACEOF
7790
 
#line $LINENO "configure"
7791
 
#include "confdefs.h"
 
8831
/* confdefs.h.  */
 
8832
_ACEOF
 
8833
cat confdefs.h >>conftest.$ac_ext
 
8834
cat >>conftest.$ac_ext <<_ACEOF
 
8835
/* end confdefs.h.  */
 
8836
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
8837
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8838
#define $ac_func innocuous_$ac_func
 
8839
 
7792
8840
/* System header to define __stub macros and hopefully few prototypes,
7793
 
    which can conflict with char $ac_func (); below.  */
7794
 
#include <assert.h>
 
8841
    which can conflict with char $ac_func (); below.
 
8842
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8843
    <limits.h> exists even on freestanding compilers.  */
 
8844
 
 
8845
#ifdef __STDC__
 
8846
# include <limits.h>
 
8847
#else
 
8848
# include <assert.h>
 
8849
#endif
 
8850
 
 
8851
#undef $ac_func
 
8852
 
7795
8853
/* Override any gcc2 internal prototype to avoid an error.  */
7796
8854
#ifdef __cplusplus
7797
8855
extern "C"
 
8856
{
7798
8857
#endif
7799
8858
/* We use char because int might match the return type of a gcc2
7800
8859
   builtin and then its argument prototype would still apply.  */
7801
8860
char $ac_func ();
7802
 
char (*f) ();
7803
 
 
7804
 
#ifdef F77_DUMMY_MAIN
7805
 
#  ifdef __cplusplus
7806
 
     extern "C"
7807
 
#  endif
7808
 
   int F77_DUMMY_MAIN() { return 1; }
7809
 
#endif
7810
 
int
7811
 
main ()
7812
 
{
7813
8861
/* The GNU C library defines this for functions which it implements
7814
8862
    to always fail with ENOSYS.  Some functions are actually named
7815
8863
    something starting with __ and the normal name is an alias.  */
7816
8864
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7817
8865
choke me
7818
8866
#else
7819
 
f = $ac_func;
 
8867
char (*f) () = $ac_func;
 
8868
#endif
 
8869
#ifdef __cplusplus
 
8870
}
7820
8871
#endif
7821
8872
 
 
8873
int
 
8874
main ()
 
8875
{
 
8876
return f != $ac_func;
7822
8877
  ;
7823
8878
  return 0;
7824
8879
}
7825
8880
_ACEOF
7826
8881
rm -f conftest.$ac_objext conftest$ac_exeext
7827
8882
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7828
 
  (eval $ac_link) 2>&5
 
8883
  (eval $ac_link) 2>conftest.er1
7829
8884
  ac_status=$?
 
8885
  grep -v '^ *+' conftest.er1 >conftest.err
 
8886
  rm -f conftest.er1
 
8887
  cat conftest.err >&5
7830
8888
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831
8889
  (exit $ac_status); } &&
7832
 
         { ac_try='test -s conftest$ac_exeext'
 
8890
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8891
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8892
  (eval $ac_try) 2>&5
 
8893
  ac_status=$?
 
8894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8895
  (exit $ac_status); }; } &&
 
8896
         { ac_try='test -s conftest$ac_exeext'
7833
8897
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834
8898
  (eval $ac_try) 2>&5
7835
8899
  ac_status=$?
7838
8902
  eval "$as_ac_var=yes"
7839
8903
else
7840
8904
  echo "$as_me: failed program was:" >&5
7841
 
cat conftest.$ac_ext >&5
 
8905
sed 's/^/| /' conftest.$ac_ext >&5
 
8906
 
7842
8907
eval "$as_ac_var=no"
7843
8908
fi
7844
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8909
rm -f conftest.err conftest.$ac_objext \
 
8910
      conftest$ac_exeext conftest.$ac_ext
7845
8911
fi
7846
8912
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7847
8913
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7862
8928
  ac_check_lib_save_LIBS=$LIBS
7863
8929
LIBS="-lgen  $LIBS"
7864
8930
cat >conftest.$ac_ext <<_ACEOF
7865
 
#line $LINENO "configure"
7866
 
#include "confdefs.h"
 
8931
/* confdefs.h.  */
 
8932
_ACEOF
 
8933
cat confdefs.h >>conftest.$ac_ext
 
8934
cat >>conftest.$ac_ext <<_ACEOF
 
8935
/* end confdefs.h.  */
7867
8936
 
7868
8937
/* Override any gcc2 internal prototype to avoid an error.  */
7869
8938
#ifdef __cplusplus
7872
8941
/* We use char because int might match the return type of a gcc2
7873
8942
   builtin and then its argument prototype would still apply.  */
7874
8943
char compile ();
7875
 
#ifdef F77_DUMMY_MAIN
7876
 
#  ifdef __cplusplus
7877
 
     extern "C"
7878
 
#  endif
7879
 
   int F77_DUMMY_MAIN() { return 1; }
7880
 
#endif
7881
8944
int
7882
8945
main ()
7883
8946
{
7888
8951
_ACEOF
7889
8952
rm -f conftest.$ac_objext conftest$ac_exeext
7890
8953
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7891
 
  (eval $ac_link) 2>&5
 
8954
  (eval $ac_link) 2>conftest.er1
7892
8955
  ac_status=$?
 
8956
  grep -v '^ *+' conftest.er1 >conftest.err
 
8957
  rm -f conftest.er1
 
8958
  cat conftest.err >&5
7893
8959
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894
8960
  (exit $ac_status); } &&
7895
 
         { ac_try='test -s conftest$ac_exeext'
 
8961
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8962
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8963
  (eval $ac_try) 2>&5
 
8964
  ac_status=$?
 
8965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8966
  (exit $ac_status); }; } &&
 
8967
         { ac_try='test -s conftest$ac_exeext'
7896
8968
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7897
8969
  (eval $ac_try) 2>&5
7898
8970
  ac_status=$?
7901
8973
  ac_cv_lib_gen_compile=yes
7902
8974
else
7903
8975
  echo "$as_me: failed program was:" >&5
7904
 
cat conftest.$ac_ext >&5
 
8976
sed 's/^/| /' conftest.$ac_ext >&5
 
8977
 
7905
8978
ac_cv_lib_gen_compile=no
7906
8979
fi
7907
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8980
rm -f conftest.err conftest.$ac_objext \
 
8981
      conftest$ac_exeext conftest.$ac_ext
7908
8982
LIBS=$ac_check_lib_save_LIBS
7909
8983
fi
7910
8984
echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
7922
8996
 
7923
8997
 
7924
8998
 
7925
 
 ac_config_files="$ac_config_files ./Makefile:$krb5_pre_in:./Makefile.in:$krb5_post_in"
 
8999
           ac_config_files="$ac_config_files ./Makefile:$krb5_pre_in:./Makefile.in:$krb5_post_in"
7926
9000
 
7927
 
ac_config_commands="$ac_config_commands krb5_config_prefix"
 
9001
          ac_config_commands="$ac_config_commands krb5_config_prefix"
7928
9002
 
7929
9003
cat >confcache <<\_ACEOF
7930
9004
# This file is a shell script that caches the results of configure
7936
9010
# config.status only pays attention to the cache file if you give it
7937
9011
# the --recheck option to rerun configure.
7938
9012
#
7939
 
# `ac_cv_env_foo' variables (set or unset) will be overriden when
 
9013
# `ac_cv_env_foo' variables (set or unset) will be overridden when
7940
9014
# loading this file, other *unset* `ac_cv_foo' will be assigned the
7941
9015
# following values.
7942
9016
 
7954
9028
      # `set' does not quote correctly, so add quotes (double-quote
7955
9029
      # substitution turns \\\\ into \\, and sed turns \\ into \).
7956
9030
      sed -n \
7957
 
        "s/'/'\\\\''/g;
7958
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
9031
        "s/'/'\\\\''/g;
 
9032
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7959
9033
      ;;
7960
9034
    *)
7961
9035
      # `set' quotes correctly as required by POSIX, so do not add quotes.
7962
9036
      sed -n \
7963
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
9037
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7964
9038
      ;;
7965
9039
    esac;
7966
9040
} |
7971
9045
     t end
7972
9046
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7973
9047
     : end' >>confcache
7974
 
if cmp -s $cache_file confcache; then :; else
 
9048
if diff $cache_file confcache >/dev/null 2>&1; then :; else
7975
9049
  if test -w $cache_file; then
7976
9050
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7977
9051
    cat confcache >$cache_file
7990
9064
# trailing colons and then remove the whole line if VPATH becomes empty
7991
9065
# (actually we leave an empty line to preserve line numbers).
7992
9066
if test "x$srcdir" = x.; then
7993
 
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
9067
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
7994
9068
s/:*\$(srcdir):*/:/;
7995
9069
s/:*\${srcdir}:*/:/;
7996
9070
s/:*@srcdir@:*/:/;
7997
 
s/^\([^=]*=[    ]*\):*/\1/;
 
9071
s/^\([^=]*=[     ]*\):*/\1/;
7998
9072
s/:*$//;
7999
 
s/^[^=]*=[      ]*$//;
 
9073
s/^[^=]*=[       ]*$//;
8000
9074
}'
8001
9075
fi
8002
9076
 
8010
9084
cat >confdef2opt.sed <<\_ACEOF
8011
9085
t clear
8012
9086
: clear
8013
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
 
9087
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
8014
9088
t quote
8015
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
 
9089
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
8016
9090
t quote
8017
9091
d
8018
9092
: quote
8019
 
s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
 
9093
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
8020
9094
s,\[,\\&,g
8021
9095
s,\],\\&,g
8022
9096
s,\$,$$,g
8033
9107
rm -f confdef2opt.sed
8034
9108
 
8035
9109
 
 
9110
ac_libobjs=
 
9111
ac_ltlibobjs=
 
9112
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
9113
  # 1. Remove the extension, and $U if already installed.
 
9114
  ac_i=`echo "$ac_i" |
 
9115
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
9116
  # 2. Add them.
 
9117
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
9118
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
9119
done
 
9120
LIBOBJS=$ac_libobjs
 
9121
 
 
9122
LTLIBOBJS=$ac_ltlibobjs
 
9123
 
 
9124
 
8036
9125
 
8037
9126
: ${CONFIG_STATUS=./config.status}
8038
9127
ac_clean_files_save=$ac_clean_files
8047
9136
# configure, is in config.log if it exists.
8048
9137
 
8049
9138
debug=false
 
9139
ac_cs_recheck=false
 
9140
ac_cs_silent=false
8050
9141
SHELL=\${CONFIG_SHELL-$SHELL}
8051
9142
_ACEOF
8052
9143
 
8053
9144
cat >>$CONFIG_STATUS <<\_ACEOF
8054
 
 
8055
9145
## --------------------- ##
8056
9146
## M4sh Initialization.  ##
8057
9147
## --------------------- ##
8060
9150
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8061
9151
  emulate sh
8062
9152
  NULLCMD=:
 
9153
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
9154
  # is contrary to our usage.  Disable this feature.
 
9155
  alias -g '${1+"$@"}'='"$@"'
8063
9156
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8064
9157
  set -o posix
8065
9158
fi
 
9159
DUALCASE=1; export DUALCASE # for MKS sh
8066
9160
 
8067
 
# NLS nuisances.
8068
9161
# Support unset when possible.
8069
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
9162
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8070
9163
  as_unset=unset
8071
9164
else
8072
9165
  as_unset=false
8073
9166
fi
8074
9167
 
8075
 
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
8076
 
    { $as_unset LANG || test "${LANG+set}" != set; } ||
8077
 
      { LANG=C; export LANG; }
8078
 
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
8079
 
    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
8080
 
      { LC_ALL=C; export LC_ALL; }
8081
 
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
8082
 
    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
8083
 
      { LC_TIME=C; export LC_TIME; }
8084
 
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
8085
 
    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
8086
 
      { LC_CTYPE=C; export LC_CTYPE; }
8087
 
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
8088
 
    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
8089
 
      { LANGUAGE=C; export LANGUAGE; }
8090
 
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
8091
 
    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
8092
 
      { LC_COLLATE=C; export LC_COLLATE; }
8093
 
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
8094
 
    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
8095
 
      { LC_NUMERIC=C; export LC_NUMERIC; }
8096
 
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
8097
 
    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
8098
 
      { LC_MESSAGES=C; export LC_MESSAGES; }
 
9168
 
 
9169
# Work around bugs in pre-3.0 UWIN ksh.
 
9170
$as_unset ENV MAIL MAILPATH
 
9171
PS1='$ '
 
9172
PS2='> '
 
9173
PS4='+ '
 
9174
 
 
9175
# NLS nuisances.
 
9176
for as_var in \
 
9177
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
9178
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
9179
  LC_TELEPHONE LC_TIME
 
9180
do
 
9181
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
9182
    eval $as_var=C; export $as_var
 
9183
  else
 
9184
    $as_unset $as_var
 
9185
  fi
 
9186
done
 
9187
 
 
9188
# Required to use basename.
 
9189
if expr a : '\(a\)' >/dev/null 2>&1; then
 
9190
  as_expr=expr
 
9191
else
 
9192
  as_expr=false
 
9193
fi
 
9194
 
 
9195
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
9196
  as_basename=basename
 
9197
else
 
9198
  as_basename=false
 
9199
fi
8099
9200
 
8100
9201
 
8101
9202
# Name of the executable.
8102
 
as_me=`(basename "$0") 2>/dev/null ||
 
9203
as_me=`$as_basename "$0" ||
8103
9204
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8104
9205
         X"$0" : 'X\(//\)$' \| \
8105
9206
         X"$0" : 'X\(/\)$' \| \
8110
9211
          /^X\/\(\/\).*/{ s//\1/; q; }
8111
9212
          s/.*/./; q'`
8112
9213
 
 
9214
 
8113
9215
# PATH needs CR, and LINENO needs CR and PATH.
8114
9216
# Avoid depending upon Character Ranges.
8115
9217
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8120
9222
 
8121
9223
# The user is always right.
8122
9224
if test "${PATH_SEPARATOR+set}" != set; then
8123
 
  echo "#! /bin/sh" >conftest.sh
8124
 
  echo  "exit 0"   >>conftest.sh
8125
 
  chmod +x conftest.sh
8126
 
  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
 
9225
  echo "#! /bin/sh" >conf$$.sh
 
9226
  echo  "exit 0"   >>conf$$.sh
 
9227
  chmod +x conf$$.sh
 
9228
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8127
9229
    PATH_SEPARATOR=';'
8128
9230
  else
8129
9231
    PATH_SEPARATOR=:
8130
9232
  fi
8131
 
  rm -f conftest.sh
 
9233
  rm -f conf$$.sh
8132
9234
fi
8133
9235
 
8134
9236
 
8177
9279
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8178
9280
  test "x$as_lineno_1" != "x$as_lineno_2" &&
8179
9281
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
9282
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
9283
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8180
9284
             CONFIG_SHELL=$as_dir/$as_base
8181
9285
             export CONFIG_SHELL
8182
9286
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8250
9354
fi
8251
9355
rm -f conf$$ conf$$.exe conf$$.file
8252
9356
 
 
9357
if mkdir -p . 2>/dev/null; then
 
9358
  as_mkdir_p=:
 
9359
else
 
9360
  test -d ./-p && rmdir ./-p
 
9361
  as_mkdir_p=false
 
9362
fi
 
9363
 
8253
9364
as_executable_p="test -f"
8254
9365
 
8255
9366
# Sed expression to map a string onto a valid CPP name.
8256
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
9367
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8257
9368
 
8258
9369
# Sed expression to map a string onto a valid variable name.
8259
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
9370
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8260
9371
 
8261
9372
 
8262
9373
# IFS
8266
9377
IFS="   $as_nl"
8267
9378
 
8268
9379
# CDPATH.
8269
 
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
 
9380
$as_unset CDPATH
8270
9381
 
8271
9382
exec 6>&1
8272
9383
 
8283
9394
cat >&5 <<_CSEOF
8284
9395
 
8285
9396
This file was extended by $as_me, which was
8286
 
generated by GNU Autoconf 2.53.  Invocation command line was
 
9397
generated by GNU Autoconf 2.59.  Invocation command line was
8287
9398
 
8288
9399
  CONFIG_FILES    = $CONFIG_FILES
8289
9400
  CONFIG_HEADERS  = $CONFIG_HEADERS
8323
9434
 
8324
9435
  -h, --help       print this help, then exit
8325
9436
  -V, --version    print version number, then exit
 
9437
  -q, --quiet      do not print progress messages
8326
9438
  -d, --debug      don't remove temporary files
8327
9439
      --recheck    update $as_me by reconfiguring in the same conditions
8328
9440
  --file=FILE[:TEMPLATE]
8329
 
                   instantiate the configuration file FILE
 
9441
                   instantiate the configuration file FILE
8330
9442
 
8331
9443
Configuration files:
8332
9444
$config_files
8340
9452
cat >>$CONFIG_STATUS <<_ACEOF
8341
9453
ac_cs_version="\\
8342
9454
config.status
8343
 
configured by $0, generated by GNU Autoconf 2.53,
 
9455
configured by $0, generated by GNU Autoconf 2.59,
8344
9456
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8345
9457
 
8346
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8347
 
Free Software Foundation, Inc.
 
9458
Copyright (C) 2003 Free Software Foundation, Inc.
8348
9459
This config.status script is free software; the Free Software Foundation
8349
9460
gives unlimited permission to copy, distribute and modify it."
8350
9461
srcdir=$srcdir
8361
9472
  --*=*)
8362
9473
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
8363
9474
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8364
 
    shift
8365
 
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
8366
 
    shift
8367
 
    ;;
8368
 
  -*);;
 
9475
    ac_shift=:
 
9476
    ;;
 
9477
  -*)
 
9478
    ac_option=$1
 
9479
    ac_optarg=$2
 
9480
    ac_shift=shift
 
9481
    ;;
8369
9482
  *) # This is not an option, so the user has probably given explicit
8370
9483
     # arguments.
 
9484
     ac_option=$1
8371
9485
     ac_need_defaults=false;;
8372
9486
  esac
8373
9487
 
8374
 
  case $1 in
 
9488
  case $ac_option in
8375
9489
  # Handling of the options.
8376
9490
_ACEOF
8377
 
cat >>$CONFIG_STATUS <<_ACEOF
 
9491
cat >>$CONFIG_STATUS <<\_ACEOF
8378
9492
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8379
 
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8380
 
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8381
 
_ACEOF
8382
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
9493
    ac_cs_recheck=: ;;
8383
9494
  --version | --vers* | -V )
8384
9495
    echo "$ac_cs_version"; exit 0 ;;
8385
9496
  --he | --h)
8394
9505
  --debug | --d* | -d )
8395
9506
    debug=: ;;
8396
9507
  --file | --fil | --fi | --f )
8397
 
    shift
8398
 
    CONFIG_FILES="$CONFIG_FILES $1"
 
9508
    $ac_shift
 
9509
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8399
9510
    ac_need_defaults=false;;
8400
9511
  --header | --heade | --head | --hea )
8401
 
    shift
8402
 
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
 
9512
    $ac_shift
 
9513
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8403
9514
    ac_need_defaults=false;;
 
9515
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
9516
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
9517
    ac_cs_silent=: ;;
8404
9518
 
8405
9519
  # This is an error.
8406
9520
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8415
9529
  shift
8416
9530
done
8417
9531
 
 
9532
ac_configure_extra_args=
 
9533
 
 
9534
if $ac_cs_silent; then
 
9535
  exec 6>/dev/null
 
9536
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
9537
fi
 
9538
 
 
9539
_ACEOF
 
9540
cat >>$CONFIG_STATUS <<_ACEOF
 
9541
if \$ac_cs_recheck; then
 
9542
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
9543
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
9544
fi
 
9545
 
8418
9546
_ACEOF
8419
9547
 
8420
9548
cat >>$CONFIG_STATUS <<_ACEOF
8452
9580
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8453
9581
fi
8454
9582
 
 
9583
# Have a temporary directory for convenience.  Make it in the build tree
 
9584
# simply because there is no reason to put it here, and in addition,
 
9585
# creating and moving files from /tmp can sometimes cause problems.
8455
9586
# Create a temporary directory, and hook for its removal unless debugging.
8456
9587
$debug ||
8457
9588
{
8460
9591
}
8461
9592
 
8462
9593
# Create a (secure) tmp directory for tmp files.
8463
 
: ${TMPDIR=/tmp}
 
9594
 
8464
9595
{
8465
 
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
 
9596
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8466
9597
  test -n "$tmp" && test -d "$tmp"
8467
9598
}  ||
8468
9599
{
8469
 
  tmp=$TMPDIR/cs$$-$RANDOM
 
9600
  tmp=./confstat$$-$RANDOM
8470
9601
  (umask 077 && mkdir $tmp)
8471
9602
} ||
8472
9603
{
8473
 
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
 
9604
   echo "$me: cannot create a temporary directory in ." >&2
8474
9605
   { (exit 1); exit 1; }
8475
9606
}
8476
9607
 
8554
9685
s,@AUTOHEADERFLAGS@,$AUTOHEADERFLAGS,;t t
8555
9686
s,@CONFIG_RELTOPDIR@,$CONFIG_RELTOPDIR,;t t
8556
9687
s,@subdirs@,$subdirs,;t t
8557
 
/@lib_frag@/r $lib_frag
8558
 
s,@lib_frag@,,;t t
8559
 
/@libobj_frag@/r $libobj_frag
8560
 
s,@libobj_frag@,,;t t
8561
9688
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8562
9689
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8563
9690
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8565
9692
s,@LOGINLIBS@,$LOGINLIBS,;t t
8566
9693
s,@V4RCP@,$V4RCP,;t t
8567
9694
s,@V4RCPO@,$V4RCPO,;t t
 
9695
s,@EGREP@,$EGREP,;t t
8568
9696
s,@LIBOBJS@,$LIBOBJS,;t t
8569
9697
s,@UCB_RLOGIN@,$UCB_RLOGIN,;t t
8570
9698
s,@UCB_RSH@,$UCB_RSH,;t t
8584
9712
s,@CC_LINK@,$CC_LINK,;t t
8585
9713
s,@RPATH_FLAG@,$RPATH_FLAG,;t t
8586
9714
s,@DEPLIBEXT@,$DEPLIBEXT,;t t
 
9715
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
9716
/@lib_frag@/r $lib_frag
 
9717
s,@lib_frag@,,;t t
 
9718
/@libobj_frag@/r $libobj_frag
 
9719
s,@libobj_frag@,,;t t
8587
9720
CEOF
8588
9721
 
8589
9722
_ACEOF
8613
9746
      (echo ':t
8614
9747
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8615
9748
      if test -z "$ac_sed_cmds"; then
8616
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
9749
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8617
9750
      else
8618
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
9751
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8619
9752
      fi
8620
9753
      ac_sed_frag=`expr $ac_sed_frag + 1`
8621
9754
      ac_beg=$ac_end
8633
9766
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8634
9767
  case $ac_file in
8635
9768
  - | *:- | *:-:* ) # input from stdin
8636
 
        cat >$tmp/stdin
8637
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8638
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
9769
        cat >$tmp/stdin
 
9770
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
9771
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8639
9772
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8640
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
9773
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8641
9774
  * )   ac_file_in=$ac_file.in ;;
8642
9775
  esac
8643
9776
 
8644
9777
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8645
9778
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8646
9779
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8647
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
8648
 
         X"$ac_file" : 'X\(//\)$' \| \
8649
 
         X"$ac_file" : 'X\(/\)' \| \
8650
 
         .     : '\(.\)' 2>/dev/null ||
 
9780
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
9781
         X"$ac_file" : 'X\(//\)$' \| \
 
9782
         X"$ac_file" : 'X\(/\)' \| \
 
9783
         .     : '\(.\)' 2>/dev/null ||
8651
9784
echo X"$ac_file" |
8652
9785
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8653
9786
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8654
9787
          /^X\(\/\/\)$/{ s//\1/; q; }
8655
9788
          /^X\(\/\).*/{ s//\1/; q; }
8656
9789
          s/.*/./; q'`
8657
 
  { case "$ac_dir" in
8658
 
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8659
 
  *)                      as_incr_dir=.;;
8660
 
esac
8661
 
as_dummy="$ac_dir"
8662
 
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8663
 
  case $as_mkdir_dir in
8664
 
    # Skip DOS drivespec
8665
 
    ?:) as_incr_dir=$as_mkdir_dir ;;
8666
 
    *)
8667
 
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
8668
 
      test -d "$as_incr_dir" ||
8669
 
        mkdir "$as_incr_dir" ||
8670
 
        { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
8671
 
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
8672
 
   { (exit 1); exit 1; }; }
8673
 
    ;;
8674
 
  esac
8675
 
done; }
 
9790
  { if $as_mkdir_p; then
 
9791
    mkdir -p "$ac_dir"
 
9792
  else
 
9793
    as_dir="$ac_dir"
 
9794
    as_dirs=
 
9795
    while test ! -d "$as_dir"; do
 
9796
      as_dirs="$as_dir $as_dirs"
 
9797
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
9798
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9799
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
9800
         X"$as_dir" : 'X\(//\)$' \| \
 
9801
         X"$as_dir" : 'X\(/\)' \| \
 
9802
         .     : '\(.\)' 2>/dev/null ||
 
9803
echo X"$as_dir" |
 
9804
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9805
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9806
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9807
          /^X\(\/\).*/{ s//\1/; q; }
 
9808
          s/.*/./; q'`
 
9809
    done
 
9810
    test ! -n "$as_dirs" || mkdir $as_dirs
 
9811
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
9812
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
9813
   { (exit 1); exit 1; }; }; }
8676
9814
 
8677
9815
  ac_builddir=.
8678
9816
 
8699
9837
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8700
9838
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
8701
9839
esac
8702
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8703
 
# absolute.
8704
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8705
 
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
8706
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8707
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
9840
 
 
9841
# Do not use `cd foo && pwd` to compute absolute paths, because
 
9842
# the directories may not exist.
 
9843
case `pwd` in
 
9844
.) ac_abs_builddir="$ac_dir";;
 
9845
*)
 
9846
  case "$ac_dir" in
 
9847
  .) ac_abs_builddir=`pwd`;;
 
9848
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
9849
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
9850
  esac;;
 
9851
esac
 
9852
case $ac_abs_builddir in
 
9853
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
9854
*)
 
9855
  case ${ac_top_builddir}. in
 
9856
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
9857
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
9858
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
9859
  esac;;
 
9860
esac
 
9861
case $ac_abs_builddir in
 
9862
.) ac_abs_srcdir=$ac_srcdir;;
 
9863
*)
 
9864
  case $ac_srcdir in
 
9865
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
9866
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
9867
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
9868
  esac;;
 
9869
esac
 
9870
case $ac_abs_builddir in
 
9871
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
9872
*)
 
9873
  case $ac_top_srcdir in
 
9874
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
9875
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
9876
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
9877
  esac;;
 
9878
esac
8708
9879
 
8709
9880
 
8710
9881
  case $INSTALL in
8712
9883
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8713
9884
  esac
8714
9885
 
8715
 
  if test x"$ac_file" != x-; then
8716
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
8717
 
echo "$as_me: creating $ac_file" >&6;}
8718
 
    rm -f "$ac_file"
8719
 
  fi
8720
9886
  # Let's still pretend it is `configure' which instantiates (i.e., don't
8721
9887
  # use $as_me), people would be surprised to read:
8722
9888
  #    /* config.h.  Generated by config.status.  */
8726
9892
    configure_input="$ac_file.  "
8727
9893
  fi
8728
9894
  configure_input=$configure_input"Generated from `echo $ac_file_in |
8729
 
                                     sed 's,.*/,,'` by configure."
 
9895
                                     sed 's,.*/,,'` by configure."
8730
9896
 
8731
9897
  # First look for the input files in the build tree, otherwise in the
8732
9898
  # src tree.
8735
9901
      case $f in
8736
9902
      -) echo $tmp/stdin ;;
8737
9903
      [\\/$]*)
8738
 
         # Absolute (can't be DOS-style, as IFS=:)
8739
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
9904
         # Absolute (can't be DOS-style, as IFS=:)
 
9905
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8740
9906
echo "$as_me: error: cannot find input file: $f" >&2;}
8741
9907
   { (exit 1); exit 1; }; }
8742
 
         echo $f;;
 
9908
         echo "$f";;
8743
9909
      *) # Relative
8744
 
         if test -f "$f"; then
8745
 
           # Build tree
8746
 
           echo $f
8747
 
         elif test -f "$srcdir/$f"; then
8748
 
           # Source tree
8749
 
           echo $srcdir/$f
8750
 
         else
8751
 
           # /dev/null tree
8752
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
9910
         if test -f "$f"; then
 
9911
           # Build tree
 
9912
           echo "$f"
 
9913
         elif test -f "$srcdir/$f"; then
 
9914
           # Source tree
 
9915
           echo "$srcdir/$f"
 
9916
         else
 
9917
           # /dev/null tree
 
9918
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8753
9919
echo "$as_me: error: cannot find input file: $f" >&2;}
8754
9920
   { (exit 1); exit 1; }; }
8755
 
         fi;;
 
9921
         fi;;
8756
9922
      esac
8757
9923
    done` || { (exit 1); exit 1; }
 
9924
 
 
9925
  if test x"$ac_file" != x-; then
 
9926
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
9927
echo "$as_me: creating $ac_file" >&6;}
 
9928
    rm -f "$ac_file"
 
9929
  fi
8758
9930
_ACEOF
8759
9931
cat >>$CONFIG_STATUS <<_ACEOF
8760
9932
  sed "$ac_vpsub
8794
9966
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8795
9967
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8796
9968
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8797
 
         X"$ac_dest" : 'X\(//\)[^/]' \| \
8798
 
         X"$ac_dest" : 'X\(//\)$' \| \
8799
 
         X"$ac_dest" : 'X\(/\)' \| \
8800
 
         .     : '\(.\)' 2>/dev/null ||
 
9969
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
9970
         X"$ac_dest" : 'X\(//\)$' \| \
 
9971
         X"$ac_dest" : 'X\(/\)' \| \
 
9972
         .     : '\(.\)' 2>/dev/null ||
8801
9973
echo X"$ac_dest" |
8802
9974
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8803
9975
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8804
9976
          /^X\(\/\/\)$/{ s//\1/; q; }
8805
9977
          /^X\(\/\).*/{ s//\1/; q; }
8806
9978
          s/.*/./; q'`
 
9979
  { if $as_mkdir_p; then
 
9980
    mkdir -p "$ac_dir"
 
9981
  else
 
9982
    as_dir="$ac_dir"
 
9983
    as_dirs=
 
9984
    while test ! -d "$as_dir"; do
 
9985
      as_dirs="$as_dir $as_dirs"
 
9986
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
9987
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9988
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
9989
         X"$as_dir" : 'X\(//\)$' \| \
 
9990
         X"$as_dir" : 'X\(/\)' \| \
 
9991
         .     : '\(.\)' 2>/dev/null ||
 
9992
echo X"$as_dir" |
 
9993
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9994
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9995
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9996
          /^X\(\/\).*/{ s//\1/; q; }
 
9997
          s/.*/./; q'`
 
9998
    done
 
9999
    test ! -n "$as_dirs" || mkdir $as_dirs
 
10000
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
10001
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
10002
   { (exit 1); exit 1; }; }; }
 
10003
 
8807
10004
  ac_builddir=.
8808
10005
 
8809
10006
if test "$ac_dir" != .; then
8829
10026
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8830
10027
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
8831
10028
esac
8832
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8833
 
# absolute.
8834
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8835
 
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
8836
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8837
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
10029
 
 
10030
# Do not use `cd foo && pwd` to compute absolute paths, because
 
10031
# the directories may not exist.
 
10032
case `pwd` in
 
10033
.) ac_abs_builddir="$ac_dir";;
 
10034
*)
 
10035
  case "$ac_dir" in
 
10036
  .) ac_abs_builddir=`pwd`;;
 
10037
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
10038
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
10039
  esac;;
 
10040
esac
 
10041
case $ac_abs_builddir in
 
10042
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
10043
*)
 
10044
  case ${ac_top_builddir}. in
 
10045
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
10046
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
10047
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
10048
  esac;;
 
10049
esac
 
10050
case $ac_abs_builddir in
 
10051
.) ac_abs_srcdir=$ac_srcdir;;
 
10052
*)
 
10053
  case $ac_srcdir in
 
10054
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
10055
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
10056
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
10057
  esac;;
 
10058
esac
 
10059
case $ac_abs_builddir in
 
10060
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
10061
*)
 
10062
  case $ac_top_srcdir in
 
10063
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
10064
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
10065
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
10066
  esac;;
 
10067
esac
8838
10068
 
8839
10069
 
8840
10070
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8860
10090
# need to make the FD available again.
8861
10091
if test "$no_create" != yes; then
8862
10092
  ac_cs_success=:
 
10093
  ac_config_status_args=
 
10094
  test "$silent" = yes &&
 
10095
    ac_config_status_args="$ac_config_status_args --quiet"
8863
10096
  exec 5>/dev/null
8864
 
  $SHELL $CONFIG_STATUS || ac_cs_success=false
 
10097
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8865
10098
  exec 5>>config.log
8866
10099
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8867
10100
  # would make configure fail if this is the last instruction.