summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2015-08-19 14:23:50 +0100
committerColin Watson <cjwatson@debian.org>2015-08-19 14:23:50 +0100
commitbaccdb349b31c47cd76fb63211f754ed33a9707e (patch)
treed03653f975fd4eb8bf71bb0c9d168614401202fa /configure
parent487bdb3a5ef6075887b830ccb8a0b14f6da78e93 (diff)
parent9f82e5a9042f2d872e98f48a876fcab3e25dd9bb (diff)
Import openssh_6.8p1.orig.tar.gz
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure29933
1 files changed, 23410 insertions, 6523 deletions
diff --git a/configure b/configure
index 6815388cc..10267f663 100755
--- a/configure
+++ b/configure
@@ -1,86 +1,63 @@
1#! /bin/sh 1#! /bin/sh
2# From configure.ac Revision: 1.583 . 2# From configure.ac Revision: 1.583 .
3# Guess values for system-dependent variables and create Makefiles. 3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.68 for OpenSSH Portable. 4# Generated by GNU Autoconf 2.61 for OpenSSH Portable.
5# 5#
6# Report bugs to <openssh-unix-dev@mindrot.org>. 6# Report bugs to <openssh-unix-dev@mindrot.org>.
7# 7#
8#
9# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 9# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
11# Foundation, Inc.
12#
13#
14# This configure script is free software; the Free Software Foundation 10# This configure script is free software; the Free Software Foundation
15# gives unlimited permission to copy, distribute and modify it. 11# gives unlimited permission to copy, distribute and modify it.
16## -------------------- ## 12## --------------------- ##
17## M4sh Initialization. ## 13## M4sh Initialization. ##
18## -------------------- ## 14## --------------------- ##
19 15
20# Be more Bourne compatible 16# Be more Bourne compatible
21DUALCASE=1; export DUALCASE # for MKS sh 17DUALCASE=1; export DUALCASE # for MKS sh
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh 19 emulate sh
24 NULLCMD=: 20 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature. 22 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"' 23 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST 24 setopt NO_GLOB_SUBST
29else 25else
30 case `(set -o) 2>/dev/null` in #( 26 case `(set -o) 2>/dev/null` in
31 *posix*) : 27 *posix*) set -o posix ;;
32 set -o posix ;; #(
33 *) :
34 ;;
35esac 28esac
29
36fi 30fi
37 31
38 32
39as_nl=' 33
40' 34
41export as_nl 35# PATH needs CR
42# Printing a long string crashes Solaris 7 /usr/bin/printf. 36# Avoid depending upon Character Ranges.
43as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46# Prefer a ksh shell builtin over an external printf program on Solaris, 40as_cr_digits='0123456789'
47# but without wasting forks for bash or zsh. 41as_cr_alnum=$as_cr_Letters$as_cr_digits
48if test -z "$BASH_VERSION$ZSH_VERSION" \ 42
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 43# The user is always right.
50 as_echo='print -r --' 44if test "${PATH_SEPARATOR+set}" != set; then
51 as_echo_n='print -rn --' 45 echo "#! /bin/sh" >conf$$.sh
52elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 46 echo "exit 0" >>conf$$.sh
53 as_echo='printf %s\n' 47 chmod +x conf$$.sh
54 as_echo_n='printf %s' 48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55else 49 PATH_SEPARATOR=';'
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
59 else 50 else
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 51 PATH_SEPARATOR=:
61 as_echo_n_body='eval
62 arg=$1;
63 case $arg in #(
64 *"$as_nl"*)
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 esac;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 '
70 export as_echo_n_body
71 as_echo_n='sh -c $as_echo_n_body as_echo'
72 fi 52 fi
73 export as_echo_body 53 rm -f conf$$.sh
74 as_echo='sh -c $as_echo_body as_echo'
75fi 54fi
76 55
77# The user is always right. 56# Support unset when possible.
78if test "${PATH_SEPARATOR+set}" != set; then 57if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
79 PATH_SEPARATOR=: 58 as_unset=unset
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 59else
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 60 as_unset=false
82 PATH_SEPARATOR=';'
83 }
84fi 61fi
85 62
86 63
@@ -89,19 +66,20 @@ fi
89# there to prevent editors from complaining about space-tab. 66# there to prevent editors from complaining about space-tab.
90# (If _AS_PATH_WALK were called with IFS unset, it would disable word 67# (If _AS_PATH_WALK were called with IFS unset, it would disable word
91# splitting by setting IFS to empty value.) 68# splitting by setting IFS to empty value.)
69as_nl='
70'
92IFS=" "" $as_nl" 71IFS=" "" $as_nl"
93 72
94# Find who we are. Look in the path if we contain no directory separator. 73# Find who we are. Look in the path if we contain no directory separator.
95as_myself= 74case $0 in
96case $0 in #((
97 *[\\/]* ) as_myself=$0 ;; 75 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99for as_dir in $PATH 77for as_dir in $PATH
100do 78do
101 IFS=$as_save_IFS 79 IFS=$as_save_IFS
102 test -z "$as_dir" && as_dir=. 80 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 done 82done
105IFS=$as_save_IFS 83IFS=$as_save_IFS
106 84
107 ;; 85 ;;
@@ -112,329 +90,354 @@ if test "x$as_myself" = x; then
112 as_myself=$0 90 as_myself=$0
113fi 91fi
114if test ! -f "$as_myself"; then 92if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 exit 1 94 { (exit 1); exit 1; }
117fi 95fi
118 96
119# Unset variables that we do not need and which cause bugs (e.g. in 97# Work around bugs in pre-3.0 UWIN ksh.
120# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 98for as_var in ENV MAIL MAILPATH
121# suppresses any "Segmentation fault" message there. '((' could 99do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
122# trigger a bug in pdksh 5.2.14.
123for as_var in BASH_ENV ENV MAIL MAILPATH
124do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126done 100done
127PS1='$ ' 101PS1='$ '
128PS2='> ' 102PS2='> '
129PS4='+ ' 103PS4='+ '
130 104
131# NLS nuisances. 105# NLS nuisances.
132LC_ALL=C 106for as_var in \
133export LC_ALL 107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
134LANGUAGE=C 108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
135export LANGUAGE 109 LC_TELEPHONE LC_TIME
110do
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 fi
116done
117
118# Required to use basename.
119if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122else
123 as_expr=false
124fi
125
126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128else
129 as_basename=false
130fi
131
132
133# Name of the executable.
134as_me=`$as_basename -- "$0" ||
135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
141 q
142 }
143 /^X\/\(\/\/\)$/{
144 s//\1/
145 q
146 }
147 /^X\/\(\/\).*/{
148 s//\1/
149 q
150 }
151 s/.*/./; q'`
136 152
137# CDPATH. 153# CDPATH.
138(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 154$as_unset CDPATH
155
139 156
140if test "x$CONFIG_SHELL" = x; then 157if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 158 if (eval ":") 2>/dev/null; then
142 emulate sh 159 as_have_required=yes
143 NULLCMD=:
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 setopt NO_GLOB_SUBST
148else 160else
149 case \`(set -o) 2>/dev/null\` in #( 161 as_have_required=no
150 *posix*) :
151 set -o posix ;; #(
152 *) :
153 ;;
154esac
155fi 162fi
156" 163
157 as_required="as_fn_return () { (exit \$1); } 164 if test $as_have_required = yes && (eval ":
158as_fn_success () { as_fn_return 0; } 165(as_func_return () {
159as_fn_failure () { as_fn_return 1; } 166 (exit \$1)
160as_fn_ret_success () { return 0; } 167}
161as_fn_ret_failure () { return 1; } 168as_func_success () {
169 as_func_return 0
170}
171as_func_failure () {
172 as_func_return 1
173}
174as_func_ret_success () {
175 return 0
176}
177as_func_ret_failure () {
178 return 1
179}
162 180
163exitcode=0 181exitcode=0
164as_fn_success || { exitcode=1; echo as_fn_success failed.; } 182if as_func_success; then
165as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 183 :
166as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
170else
171 exitcode=1; echo positional parameters were not saved.
172fi
173test x\$exitcode = x0 || exit 1"
174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178test \$(( 1 + 1 )) = 2 || exit 1"
179 if (eval "$as_required") 2>/dev/null; then :
180 as_have_required=yes
181else 184else
182 as_have_required=no 185 exitcode=1
186 echo as_func_success failed.
183fi 187fi
184 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 188
189if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
192fi
193
194if as_func_ret_success; then
195 :
186else 196else
187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 197 exitcode=1
188as_found=false 198 echo as_func_ret_success failed.
199fi
200
201if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
204fi
205
206if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 :
208else
209 exitcode=1
210 echo positional parameters were not saved.
211fi
212
213test \$exitcode = 0) || { (exit 1); exit 1; }
214
215(
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220") 2> /dev/null; then
221 :
222else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
189for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 225for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190do 226do
191 IFS=$as_save_IFS 227 IFS=$as_save_IFS
192 test -z "$as_dir" && as_dir=. 228 test -z "$as_dir" && as_dir=.
193 as_found=: 229 case $as_dir in
194 case $as_dir in #(
195 /*) 230 /*)
196 for as_base in sh bash ksh sh5; do 231 for as_base in sh bash ksh sh5; do
197 # Try only shells that exist, to save several forks. 232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
198 as_shell=$as_dir/$as_base
199 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 CONFIG_SHELL=$as_shell as_have_required=yes
202 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 break 2
204fi
205fi
206 done;; 233 done;;
207 esac 234 esac
208 as_found=false
209done 235done
210$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212 CONFIG_SHELL=$SHELL as_have_required=yes
213fi; }
214IFS=$as_save_IFS 236IFS=$as_save_IFS
215 237
216 238
217 if test "x$CONFIG_SHELL" != x; then : 239 for as_shell in $as_candidate_shells $SHELL; do
218 # We cannot yet assume a decent shell, so we have to provide a 240 # Try only shells that exist, to save several forks.
219 # neutralization value for shells without unset; and this also 241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220 # works around shells that cannot unset nonexistent variables. 242 { ("$as_shell") 2> /dev/null <<\_ASEOF
221 # Preserve -v and -x to the replacement shell. 243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
222 BASH_ENV=/dev/null 244 emulate sh
223 ENV=/dev/null 245 NULLCMD=:
224 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
225 export CONFIG_SHELL 247 # is contrary to our usage. Disable this feature.
226 case $- in # (((( 248 alias -g '${1+"$@"}'='"$@"'
227 *v*x* | *x*v* ) as_opts=-vx ;; 249 setopt NO_GLOB_SUBST
228 *v* ) as_opts=-v ;; 250else
229 *x* ) as_opts=-x ;; 251 case `(set -o) 2>/dev/null` in
230 * ) as_opts= ;; 252 *posix*) set -o posix ;;
231 esac 253esac
232 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
233fi
234 254
235 if test x$as_have_required = xno; then :
236 $as_echo "$0: This script requires a shell more modern than all"
237 $as_echo "$0: the shells that I found on your system."
238 if test x${ZSH_VERSION+set} = xset ; then
239 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
240 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 else
242 $as_echo "$0: Please tell bug-autoconf@gnu.org and
243$0: openssh-unix-dev@mindrot.org about your system,
244$0: including any error possibly output before this
245$0: message. Then install a modern shell, or manually run
246$0: the script under such a shell if you do have one."
247 fi
248 exit 1
249fi
250fi 255fi
256
257
258:
259_ASEOF
260}; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274esac
275
251fi 276fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257 277
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266 { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269 278
270# as_fn_set_status STATUS 279:
271# ----------------------- 280(as_func_return () {
272# Set $? to STATUS, without forking. 281 (exit $1)
273as_fn_set_status () 282}
274{ 283as_func_success () {
275 return $1 284 as_func_return 0
276} # as_fn_set_status 285}
286as_func_failure () {
287 as_func_return 1
288}
289as_func_ret_success () {
290 return 0
291}
292as_func_ret_failure () {
293 return 1
294}
277 295
278# as_fn_exit STATUS 296exitcode=0
279# ----------------- 297if as_func_success; then
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 298 :
281as_fn_exit () 299else
282{ 300 exitcode=1
283 set +e 301 echo as_func_success failed.
284 as_fn_set_status $1 302fi
285 exit $1
286} # as_fn_exit
287 303
288# as_fn_mkdir_p 304if as_func_failure; then
289# ------------- 305 exitcode=1
290# Create "$as_dir" as a directory, including parents if necessary. 306 echo as_func_failure succeeded.
291as_fn_mkdir_p () 307fi
292{
293 308
294 case $as_dir in #( 309if as_func_ret_success; then
295 -*) as_dir=./$as_dir;; 310 :
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346else 311else
347 as_fn_append () 312 exitcode=1
348 { 313 echo as_func_ret_success failed.
349 eval $1=\$$1\$2 314fi
350 } 315
351fi # as_fn_append 316if as_func_ret_failure; then
352 317 exitcode=1
353# as_fn_arith ARG... 318 echo as_func_ret_failure succeeded.
354# ------------------ 319fi
355# Perform arithmetic evaluation on the ARGs, and store the result in the 320
356# global $as_val. Take advantage of shells that can avoid forks. The arguments 321if ( set x; as_func_ret_success y && test x = "$1" ); then
357# must be portable across $(()) and expr. 322 :
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363else 323else
364 as_fn_arith () 324 exitcode=1
365 { 325 echo positional parameters were not saved.
366 as_val=`expr "$@" || test $? -eq 1` 326fi
367 }
368fi # as_fn_arith
369
370
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 fi
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
385} # as_fn_error
386 327
387if expr a : '\(a\)' >/dev/null 2>&1 && 328test $exitcode = 0) || { (exit 1); exit 1; }
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then 329
389 as_expr=expr 330(
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336_ASEOF
337}; then
338 break
339fi
340
341fi
342
343 done
344
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351fi
352
353
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
360fi
361
362
363fi
364
365fi
366
367
368
369(eval "as_func_return () {
370 (exit \$1)
371}
372as_func_success () {
373 as_func_return 0
374}
375as_func_failure () {
376 as_func_return 1
377}
378as_func_ret_success () {
379 return 0
380}
381as_func_ret_failure () {
382 return 1
383}
384
385exitcode=0
386if as_func_success; then
387 :
390else 388else
391 as_expr=false 389 exitcode=1
390 echo as_func_success failed.
392fi 391fi
393 392
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 393if as_func_failure; then
395 as_basename=basename 394 exitcode=1
395 echo as_func_failure succeeded.
396fi
397
398if as_func_ret_success; then
399 :
396else 400else
397 as_basename=false 401 exitcode=1
402 echo as_func_ret_success failed.
398fi 403fi
399 404
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 405if as_func_ret_failure; then
401 as_dirname=dirname 406 exitcode=1
407 echo as_func_ret_failure succeeded.
408fi
409
410if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 :
402else 412else
403 as_dirname=false 413 exitcode=1
414 echo positional parameters were not saved.
404fi 415fi
405 416
406as_me=`$as_basename -- "$0" || 417test \$exitcode = 0") || {
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 418 echo No shell found that supports shell functions.
408 X"$0" : 'X\(//\)$' \| \ 419 echo Please tell autoconf@gnu.org about your system,
409 X"$0" : 'X\(/\)' \| . 2>/dev/null || 420 echo including any error possibly output before this
410$as_echo X/"$0" | 421 echo message
411 sed '/^.*\/\([^/][^/]*\)\/*$/{ 422}
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
424 423
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431 424
432 425
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO 426 as_lineno_1=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO 427 as_lineno_2=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 428 test "x$as_lineno_1" != "x$as_lineno_2" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 430
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n ' 441 sed -n '
439 p 442 p
440 /[$]LINENO/= 443 /[$]LINENO/=
@@ -451,7 +454,8 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
451 s/-\n.*// 454 s/-\n.*//
452 ' >$as_me.lineno && 455 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" || 456 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
455 459
456 # Don't try to exec as it changes $[0], causing all sort of problems 460 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the 461 # (the dirname of $[0] is not the place where we might find the
@@ -461,40 +465,49 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
461 exit 465 exit
462} 466}
463 467
468
469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471else
472 as_dirname=false
473fi
474
464ECHO_C= ECHO_N= ECHO_T= 475ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #((((( 476case `echo -n x` in
466-n*) 477-n*)
467 case `echo 'xy\c'` in 478 case `echo 'x\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';; 480 *) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;; 481 esac;;
473*) 482*)
474 ECHO_N='-n';; 483 ECHO_N='-n';;
475esac 484esac
476 485
486if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489else
490 as_expr=false
491fi
492
477rm -f conf$$ conf$$.exe conf$$.file 493rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then 494if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file 495 rm -f conf$$.dir/conf$$.file
480else 496else
481 rm -f conf$$.dir 497 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null 498 mkdir conf$$.dir
483fi 499fi
484if (echo >conf$$.file) 2>/dev/null; then 500echo >conf$$.file
485 if ln -s conf$$.file conf$$ 2>/dev/null; then 501if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s' 502 as_ln_s='ln -s'
487 # ... but there are two gotchas: 503 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'. 506 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p' 508 as_ln_s='cp -p'
497 fi 509elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
498else 511else
499 as_ln_s='cp -p' 512 as_ln_s='cp -p'
500fi 513fi
@@ -502,7 +515,7 @@ rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null 515rmdir conf$$.dir 2>/dev/null
503 516
504if mkdir -p . 2>/dev/null; then 517if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"' 518 as_mkdir_p=:
506else 519else
507 test -d ./-p && rmdir ./-p 520 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false 521 as_mkdir_p=false
@@ -519,12 +532,12 @@ else
519 as_test_x=' 532 as_test_x='
520 eval sh -c '\'' 533 eval sh -c '\''
521 if test -d "$1"; then 534 if test -d "$1"; then
522 test -d "$1/."; 535 test -d "$1/.";
523 else 536 else
524 case $1 in #( 537 case $1 in
525 -*)set "./$1";; 538 -*)set "./$1";;
526 esac; 539 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
528 ???[sx]*):;;*)false;;esac;fi 541 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh 542 '\'' sh
530 ' 543 '
@@ -538,11 +551,11 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 552
540 553
541test -n "$DJDIR" || exec 7<&0 </dev/null 554
542exec 6>&1 555exec 7<&0 </dev/null 6>&1
543 556
544# Name of the host. 557# Name of the host.
545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 558# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
546# so uname gets run too. 559# so uname gets run too.
547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 561
@@ -557,6 +570,7 @@ cross_compiling=no
557subdirs= 570subdirs=
558MFLAGS= 571MFLAGS=
559MAKEFLAGS= 572MAKEFLAGS=
573SHELL=${CONFIG_SHELL-/bin/sh}
560 574
561# Identity of this package. 575# Identity of this package.
562PACKAGE_NAME='OpenSSH' 576PACKAGE_NAME='OpenSSH'
@@ -564,7 +578,6 @@ PACKAGE_TARNAME='openssh'
564PACKAGE_VERSION='Portable' 578PACKAGE_VERSION='Portable'
565PACKAGE_STRING='OpenSSH Portable' 579PACKAGE_STRING='OpenSSH Portable'
566PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org' 580PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
567PACKAGE_URL=''
568 581
569ac_unique_file="ssh.c" 582ac_unique_file="ssh.c"
570# Factoring default headers for most tests. 583# Factoring default headers for most tests.
@@ -603,166 +616,110 @@ ac_includes_default="\
603# include <unistd.h> 616# include <unistd.h>
604#endif" 617#endif"
605 618
606ac_subst_vars='LTLIBOBJS 619ac_subst_vars='SHELL
607LIBOBJS
608UNSUPPORTED_ALGORITHMS
609TEST_MALLOC_OPTIONS
610TEST_SSH_IPV6
611piddir
612user_path
613mansubdir
614MANTYPE
615XAUTH_PATH
616STRIP_OPT
617xauth_path
618PRIVSEP_PATH
619K5LIBS
620GSSLIBS
621KRB5CONF
622SSHDLIBS
623SSHLIBS
624SSH_PRIVSEP_USER
625COMMENT_OUT_ECC
626TEST_SSH_ECC
627LIBEDIT
628PKGCONFIG
629LD
630PATH_PASSWD_PROG
631LOGIN_PROGRAM_FALLBACK
632STARTUP_SCRIPT_SHELL
633MAKE_PACKAGE_SUPPORTED
634PATH_USERADD_PROG
635PATH_GROUPADD_PROG
636MANFMT
637TEST_SHELL
638MANDOC
639NROFF
640GROFF
641SH
642TEST_MINUS_S_SH
643ENT
644SED
645PERL
646KILL
647CAT
648AR
649INSTALL_DATA
650INSTALL_SCRIPT
651INSTALL_PROGRAM
652RANLIB
653AWK
654EGREP
655GREP
656CPP
657host_os
658host_vendor
659host_cpu
660host
661build_os
662build_vendor
663build_cpu
664build
665OBJEXT
666EXEEXT
667ac_ct_CC
668CPPFLAGS
669LDFLAGS
670CFLAGS
671CC
672target_alias
673host_alias
674build_alias
675LIBS
676ECHO_T
677ECHO_N
678ECHO_C
679DEFS
680mandir
681localedir
682libdir
683psdir
684pdfdir
685dvidir
686htmldir
687infodir
688docdir
689oldincludedir
690includedir
691localstatedir
692sharedstatedir
693sysconfdir
694datadir
695datarootdir
696libexecdir
697sbindir
698bindir
699program_transform_name
700prefix
701exec_prefix
702PACKAGE_URL
703PACKAGE_BUGREPORT
704PACKAGE_STRING
705PACKAGE_VERSION
706PACKAGE_TARNAME
707PACKAGE_NAME
708PATH_SEPARATOR 620PATH_SEPARATOR
709SHELL' 621PACKAGE_NAME
622PACKAGE_TARNAME
623PACKAGE_VERSION
624PACKAGE_STRING
625PACKAGE_BUGREPORT
626exec_prefix
627prefix
628program_transform_name
629bindir
630sbindir
631libexecdir
632datarootdir
633datadir
634sysconfdir
635sharedstatedir
636localstatedir
637includedir
638oldincludedir
639docdir
640infodir
641htmldir
642dvidir
643pdfdir
644psdir
645libdir
646localedir
647mandir
648DEFS
649ECHO_C
650ECHO_N
651ECHO_T
652LIBS
653build_alias
654host_alias
655target_alias
656CC
657CFLAGS
658LDFLAGS
659CPPFLAGS
660ac_ct_CC
661EXEEXT
662OBJEXT
663build
664build_cpu
665build_vendor
666build_os
667host
668host_cpu
669host_vendor
670host_os
671CPP
672GREP
673EGREP
674AWK
675RANLIB
676INSTALL_PROGRAM
677INSTALL_SCRIPT
678INSTALL_DATA
679AR
680CAT
681KILL
682PERL
683SED
684ENT
685TEST_MINUS_S_SH
686SH
687GROFF
688NROFF
689MANDOC
690TEST_SHELL
691MANFMT
692PATH_GROUPADD_PROG
693PATH_USERADD_PROG
694MAKE_PACKAGE_SUPPORTED
695STARTUP_SCRIPT_SHELL
696LOGIN_PROGRAM_FALLBACK
697PATH_PASSWD_PROG
698LD
699PKGCONFIG
700LIBEDIT
701TEST_SSH_ECC
702COMMENT_OUT_ECC
703SSH_PRIVSEP_USER
704SSHLIBS
705SSHDLIBS
706KRB5CONF
707GSSLIBS
708K5LIBS
709PRIVSEP_PATH
710xauth_path
711STRIP_OPT
712XAUTH_PATH
713MANTYPE
714mansubdir
715user_path
716piddir
717TEST_SSH_IPV6
718TEST_MALLOC_OPTIONS
719UNSUPPORTED_ALGORITHMS
720LIBOBJS
721LTLIBOBJS'
710ac_subst_files='' 722ac_subst_files=''
711ac_user_opts='
712enable_option_checking
713enable_largefile
714with_stackprotect
715with_hardening
716with_rpath
717with_cflags
718with_cppflags
719with_ldflags
720with_libs
721with_Werror
722with_solaris_contracts
723with_solaris_projects
724with_osfsia
725with_zlib
726with_zlib_version_check
727with_skey
728with_ldns
729with_libedit
730with_audit
731with_pie
732with_ssl_dir
733with_openssl_header_check
734with_ssl_engine
735with_prngd_port
736with_prngd_socket
737with_pam
738with_privsep_user
739with_sandbox
740with_selinux
741with_kerberos5
742with_privsep_path
743with_xauth
744enable_strip
745with_maildir
746with_mantype
747with_md5_passwords
748with_shadow
749with_ipaddr_display
750enable_etc_default_login
751with_default_path
752with_superuser_path
753with_4in6
754with_bsd_auth
755with_pid_dir
756enable_lastlog
757enable_utmp
758enable_utmpx
759enable_wtmp
760enable_wtmpx
761enable_libutil
762enable_pututline
763enable_pututxline
764with_lastlog
765'
766 ac_precious_vars='build_alias 723 ac_precious_vars='build_alias
767host_alias 724host_alias
768target_alias 725target_alias
@@ -777,8 +734,6 @@ CPP'
777# Initialize some variables set by options. 734# Initialize some variables set by options.
778ac_init_help= 735ac_init_help=
779ac_init_version=false 736ac_init_version=false
780ac_unrecognized_opts=
781ac_unrecognized_sep=
782# The variables have the same names as the options, with 737# The variables have the same names as the options, with
783# dashes changed to underlines. 738# dashes changed to underlines.
784cache_file=/dev/null 739cache_file=/dev/null
@@ -834,9 +789,8 @@ do
834 fi 789 fi
835 790
836 case $ac_option in 791 case $ac_option in
837 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 792 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
838 *=) ac_optarg= ;; 793 *) ac_optarg=yes ;;
839 *) ac_optarg=yes ;;
840 esac 794 esac
841 795
842 # Accept the important Cygnus configure options, so we can diagnose typos. 796 # Accept the important Cygnus configure options, so we can diagnose typos.
@@ -878,20 +832,13 @@ do
878 datarootdir=$ac_optarg ;; 832 datarootdir=$ac_optarg ;;
879 833
880 -disable-* | --disable-*) 834 -disable-* | --disable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 835 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names. 836 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 837 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
884 as_fn_error $? "invalid feature name: $ac_useropt" 838 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
885 ac_useropt_orig=$ac_useropt 839 { (exit 1); exit 1; }; }
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 840 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
887 case $ac_user_opts in 841 eval enable_$ac_feature=no ;;
888 *"
889"enable_$ac_useropt"
890"*) ;;
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
893 esac
894 eval enable_$ac_useropt=no ;;
895 842
896 -docdir | --docdir | --docdi | --doc | --do) 843 -docdir | --docdir | --docdi | --doc | --do)
897 ac_prev=docdir ;; 844 ac_prev=docdir ;;
@@ -904,20 +851,13 @@ do
904 dvidir=$ac_optarg ;; 851 dvidir=$ac_optarg ;;
905 852
906 -enable-* | --enable-*) 853 -enable-* | --enable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 854 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908 # Reject names that are not valid shell variable names. 855 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 856 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: $ac_useropt" 857 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
911 ac_useropt_orig=$ac_useropt 858 { (exit 1); exit 1; }; }
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 859 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
913 case $ac_user_opts in 860 eval enable_$ac_feature=\$ac_optarg ;;
914 *"
915"enable_$ac_useropt"
916"*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=\$ac_optarg ;;
921 861
922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 862 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 863 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
@@ -1108,36 +1048,22 @@ do
1108 ac_init_version=: ;; 1048 ac_init_version=: ;;
1109 1049
1110 -with-* | --with-*) 1050 -with-* | --with-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1051 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names. 1052 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1053 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error $? "invalid package name: $ac_useropt" 1054 { echo "$as_me: error: invalid package name: $ac_package" >&2
1115 ac_useropt_orig=$ac_useropt 1055 { (exit 1); exit 1; }; }
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1056 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1117 case $ac_user_opts in 1057 eval with_$ac_package=\$ac_optarg ;;
1118 *"
1119"with_$ac_useropt"
1120"*) ;;
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1123 esac
1124 eval with_$ac_useropt=\$ac_optarg ;;
1125 1058
1126 -without-* | --without-*) 1059 -without-* | --without-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1060 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128 # Reject names that are not valid shell variable names. 1061 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1062 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error $? "invalid package name: $ac_useropt" 1063 { echo "$as_me: error: invalid package name: $ac_package" >&2
1131 ac_useropt_orig=$ac_useropt 1064 { (exit 1); exit 1; }; }
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1065 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1133 case $ac_user_opts in 1066 eval with_$ac_package=no ;;
1134 *"
1135"with_$ac_useropt"
1136"*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=no ;;
1141 1067
1142 --x) 1068 --x)
1143 # Obsolete; use --with-x. 1069 # Obsolete; use --with-x.
@@ -1157,26 +1083,26 @@ do
1157 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1083 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158 x_libraries=$ac_optarg ;; 1084 x_libraries=$ac_optarg ;;
1159 1085
1160 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1086 -*) { echo "$as_me: error: unrecognized option: $ac_option
1161Try \`$0 --help' for more information" 1087Try \`$0 --help' for more information." >&2
1088 { (exit 1); exit 1; }; }
1162 ;; 1089 ;;
1163 1090
1164 *=*) 1091 *=*)
1165 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1092 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166 # Reject names that are not valid shell variable names. 1093 # Reject names that are not valid shell variable names.
1167 case $ac_envvar in #( 1094 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1168 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1095 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1169 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1096 { (exit 1); exit 1; }; }
1170 esac
1171 eval $ac_envvar=\$ac_optarg 1097 eval $ac_envvar=\$ac_optarg
1172 export $ac_envvar ;; 1098 export $ac_envvar ;;
1173 1099
1174 *) 1100 *)
1175 # FIXME: should be removed in autoconf 3.0. 1101 # FIXME: should be removed in autoconf 3.0.
1176 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1102 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1177 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1103 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1104 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1179 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1105 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1180 ;; 1106 ;;
1181 1107
1182 esac 1108 esac
@@ -1184,36 +1110,23 @@ done
1184 1110
1185if test -n "$ac_prev"; then 1111if test -n "$ac_prev"; then
1186 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1112 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1187 as_fn_error $? "missing argument to $ac_option" 1113 { echo "$as_me: error: missing argument to $ac_option" >&2
1114 { (exit 1); exit 1; }; }
1188fi 1115fi
1189 1116
1190if test -n "$ac_unrecognized_opts"; then 1117# Be sure to have absolute directory names.
1191 case $enable_option_checking in
1192 no) ;;
1193 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1194 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1195 esac
1196fi
1197
1198# Check all directory arguments for consistency.
1199for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1118for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200 datadir sysconfdir sharedstatedir localstatedir includedir \ 1119 datadir sysconfdir sharedstatedir localstatedir includedir \
1201 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1120 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202 libdir localedir mandir 1121 libdir localedir mandir
1203do 1122do
1204 eval ac_val=\$$ac_var 1123 eval ac_val=\$$ac_var
1205 # Remove trailing slashes.
1206 case $ac_val in
1207 */ )
1208 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1209 eval $ac_var=\$ac_val;;
1210 esac
1211 # Be sure to have absolute directory names.
1212 case $ac_val in 1124 case $ac_val in
1213 [\\/$]* | ?:[\\/]* ) continue;; 1125 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1126 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 esac 1127 esac
1216 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1128 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1129 { (exit 1); exit 1; }; }
1217done 1130done
1218 1131
1219# There might be people who depend on the old broken behavior: `$host' 1132# There might be people who depend on the old broken behavior: `$host'
@@ -1227,8 +1140,8 @@ target=$target_alias
1227if test "x$host_alias" != x; then 1140if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then 1141 if test "x$build_alias" = x; then
1229 cross_compiling=maybe 1142 cross_compiling=maybe
1230 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1143 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231 If a cross compiler is detected then cross compile mode will be used" >&2 1144 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then 1145 elif test "x$build_alias" != "x$host_alias"; then
1233 cross_compiling=yes 1146 cross_compiling=yes
1234 fi 1147 fi
@@ -1243,21 +1156,23 @@ test "$silent" = yes && exec 6>/dev/null
1243ac_pwd=`pwd` && test -n "$ac_pwd" && 1156ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244ac_ls_di=`ls -di .` && 1157ac_ls_di=`ls -di .` &&
1245ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1158ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 as_fn_error $? "working directory cannot be determined" 1159 { echo "$as_me: error: Working directory cannot be determined" >&2
1160 { (exit 1); exit 1; }; }
1247test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1161test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 as_fn_error $? "pwd does not report name of working directory" 1162 { echo "$as_me: error: pwd does not report name of working directory" >&2
1163 { (exit 1); exit 1; }; }
1249 1164
1250 1165
1251# Find the source files, if location was not specified. 1166# Find the source files, if location was not specified.
1252if test -z "$srcdir"; then 1167if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes 1168 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory. 1169 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$as_myself" || 1170 ac_confdir=`$as_dirname -- "$0" ||
1256$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1171$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$as_myself" : 'X\(//\)[^/]' \| \ 1172 X"$0" : 'X\(//\)[^/]' \| \
1258 X"$as_myself" : 'X\(//\)$' \| \ 1173 X"$0" : 'X\(//\)$' \| \
1259 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1174 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260$as_echo X"$as_myself" | 1175echo X"$0" |
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 s//\1/ 1177 s//\1/
1263 q 1178 q
@@ -1284,11 +1199,13 @@ else
1284fi 1199fi
1285if test ! -r "$srcdir/$ac_unique_file"; then 1200if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1201 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1202 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1203 { (exit 1); exit 1; }; }
1288fi 1204fi
1289ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1205ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290ac_abs_confdir=`( 1206ac_abs_confdir=`(
1291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1207 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1208 { (exit 1); exit 1; }; }
1292 pwd)` 1209 pwd)`
1293# When building in place, set srcdir=. 1210# When building in place, set srcdir=.
1294if test "$ac_abs_confdir" = "$ac_pwd"; then 1211if test "$ac_abs_confdir" = "$ac_pwd"; then
@@ -1328,7 +1245,7 @@ Configuration:
1328 --help=short display options specific to this package 1245 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages 1246 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit 1247 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking ...' messages 1248 -q, --quiet, --silent do not print \`checking...' messages
1332 --cache-file=FILE cache test results in FILE [disabled] 1249 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache' 1250 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files 1251 -n, --no-create do not create output files
@@ -1336,9 +1253,9 @@ Configuration:
1336 1253
1337Installation directories: 1254Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX 1255 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix] 1256 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1257 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1341 [PREFIX] 1258 [PREFIX]
1342 1259
1343By default, \`make install' will install all the files in 1260By default, \`make install' will install all the files in
1344\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1261\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
@@ -1348,25 +1265,25 @@ for instance \`--prefix=\$HOME'.
1348For better control, use the options below. 1265For better control, use the options below.
1349 1266
1350Fine tuning of the installation directories: 1267Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin] 1268 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin] 1269 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec] 1270 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1271 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1272 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1273 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib] 1274 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include] 1275 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1276 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1277 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1278 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info] 1279 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1280 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man] 1281 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh] 1282 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1366 --htmldir=DIR html documentation [DOCDIR] 1283 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR] 1284 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR] 1285 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR] 1286 --psdir=DIR ps documentation [DOCDIR]
1370_ACEOF 1287_ACEOF
1371 1288
1372 cat <<\_ACEOF 1289 cat <<\_ACEOF
@@ -1384,7 +1301,6 @@ if test -n "$ac_init_help"; then
1384 cat <<\_ACEOF 1301 cat <<\_ACEOF
1385 1302
1386Optional Features: 1303Optional Features:
1387 --disable-option-checking ignore unrecognized --enable/--with options
1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1304 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1305 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1390 --disable-largefile omit support for large files 1306 --disable-largefile omit support for large files
@@ -1402,6 +1318,8 @@ Optional Features:
1402Optional Packages: 1318Optional Packages:
1403 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1319 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1404 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1320 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1321 --without-openssl Disable use of OpenSSL; use only limited internal crypto **EXPERIMENTAL**
1322 --without-ssh1 Disable support for SSH protocol 1
1405 --without-stackprotect Don't use compiler's stack protection 1323 --without-stackprotect Don't use compiler's stack protection
1406 --without-hardening Don't use toolchain hardening flags 1324 --without-hardening Don't use toolchain hardening flags
1407 --without-rpath Disable auto-added -R linker paths 1325 --without-rpath Disable auto-added -R linker paths
@@ -1419,7 +1337,7 @@ Optional Packages:
1419 --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH) 1337 --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH)
1420 --with-libedit[=PATH] Enable libedit support for sftp 1338 --with-libedit[=PATH] Enable libedit support for sftp
1421 --with-audit=module Enable audit support (modules=debug,bsm,linux) 1339 --with-audit=module Enable audit support (modules=debug,bsm,linux)
1422 --with-pie Build Position Independent Executables if possible 1340 --with-pie Build Position Independent Executables if possible
1423 --with-ssl-dir=PATH Specify path to OpenSSL installation 1341 --with-ssl-dir=PATH Specify path to OpenSSL installation
1424 --without-openssl-header-check Disable OpenSSL version consistency check 1342 --without-openssl-header-check Disable OpenSSL version consistency check
1425 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support 1343 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
@@ -1450,7 +1368,7 @@ Some influential environment variables:
1450 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1368 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1451 nonstandard directory <lib dir> 1369 nonstandard directory <lib dir>
1452 LIBS libraries to pass to the linker, e.g. -l<library> 1370 LIBS libraries to pass to the linker, e.g. -l<library>
1453 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1371 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1454 you have headers in a nonstandard directory <include dir> 1372 you have headers in a nonstandard directory <include dir>
1455 CPP C preprocessor 1373 CPP C preprocessor
1456 1374
@@ -1465,17 +1383,15 @@ fi
1465if test "$ac_init_help" = "recursive"; then 1383if test "$ac_init_help" = "recursive"; then
1466 # If there are subdirs, report their specific --help. 1384 # If there are subdirs, report their specific --help.
1467 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1385 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1468 test -d "$ac_dir" || 1386 test -d "$ac_dir" || continue
1469 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1470 continue
1471 ac_builddir=. 1387 ac_builddir=.
1472 1388
1473case "$ac_dir" in 1389case "$ac_dir" in
1474.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1390.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475*) 1391*)
1476 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1392 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1477 # A ".." for each directory in $ac_dir_suffix. 1393 # A ".." for each directory in $ac_dir_suffix.
1478 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1394 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1479 case $ac_top_builddir_sub in 1395 case $ac_top_builddir_sub in
1480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1396 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1397 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
@@ -1511,7 +1427,7 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511 echo && 1427 echo &&
1512 $SHELL "$ac_srcdir/configure" --help=recursive 1428 $SHELL "$ac_srcdir/configure" --help=recursive
1513 else 1429 else
1514 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1430 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1515 fi || ac_status=$? 1431 fi || ac_status=$?
1516 cd "$ac_pwd" || { ac_status=$?; break; } 1432 cd "$ac_pwd" || { ac_status=$?; break; }
1517 done 1433 done
@@ -1521,711 +1437,21 @@ test -n "$ac_init_help" && exit $ac_status
1521if $ac_init_version; then 1437if $ac_init_version; then
1522 cat <<\_ACEOF 1438 cat <<\_ACEOF
1523OpenSSH configure Portable 1439OpenSSH configure Portable
1524generated by GNU Autoconf 2.68 1440generated by GNU Autoconf 2.61
1525 1441
1526Copyright (C) 2010 Free Software Foundation, Inc. 1442Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14432002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1527This configure script is free software; the Free Software Foundation 1444This configure script is free software; the Free Software Foundation
1528gives unlimited permission to copy, distribute and modify it. 1445gives unlimited permission to copy, distribute and modify it.
1529_ACEOF 1446_ACEOF
1530 exit 1447 exit
1531fi 1448fi
1532
1533## ------------------------ ##
1534## Autoconf initialization. ##
1535## ------------------------ ##
1536
1537# ac_fn_c_try_compile LINENO
1538# --------------------------
1539# Try to compile conftest.$ac_ext, and return whether this succeeded.
1540ac_fn_c_try_compile ()
1541{
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 rm -f conftest.$ac_objext
1544 if { { ac_try="$ac_compile"
1545case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548esac
1549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550$as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_compile") 2>conftest.err
1552 ac_status=$?
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1557 fi
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } && {
1560 test -z "$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 } && test -s conftest.$ac_objext; then :
1563 ac_retval=0
1564else
1565 $as_echo "$as_me: failed program was:" >&5
1566sed 's/^/| /' conftest.$ac_ext >&5
1567
1568 ac_retval=1
1569fi
1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571 as_fn_set_status $ac_retval
1572
1573} # ac_fn_c_try_compile
1574
1575# ac_fn_c_try_run LINENO
1576# ----------------------
1577# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1578# that executables *can* be run.
1579ac_fn_c_try_run ()
1580{
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 if { { ac_try="$ac_link"
1583case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586esac
1587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588$as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_link") 2>&5
1590 ac_status=$?
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1593 { { case "(($ac_try" in
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1596esac
1597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598$as_echo "$ac_try_echo"; } >&5
1599 (eval "$ac_try") 2>&5
1600 ac_status=$?
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; }; }; then :
1603 ac_retval=0
1604else
1605 $as_echo "$as_me: program exited with status $ac_status" >&5
1606 $as_echo "$as_me: failed program was:" >&5
1607sed 's/^/| /' conftest.$ac_ext >&5
1608
1609 ac_retval=$ac_status
1610fi
1611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1614
1615} # ac_fn_c_try_run
1616
1617# ac_fn_c_try_cpp LINENO
1618# ----------------------
1619# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1620ac_fn_c_try_cpp ()
1621{
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 if { { ac_try="$ac_cpp conftest.$ac_ext"
1624case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627esac
1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629$as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1631 ac_status=$?
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1636 fi
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } > conftest.i && {
1639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1641 }; then :
1642 ac_retval=0
1643else
1644 $as_echo "$as_me: failed program was:" >&5
1645sed 's/^/| /' conftest.$ac_ext >&5
1646
1647 ac_retval=1
1648fi
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1651
1652} # ac_fn_c_try_cpp
1653
1654# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1655# -------------------------------------------------------
1656# Tests whether HEADER exists and can be compiled using the include files in
1657# INCLUDES, setting the cache variable VAR accordingly.
1658ac_fn_c_check_header_compile ()
1659{
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662$as_echo_n "checking for $2... " >&6; }
1663if eval \${$3+:} false; then :
1664 $as_echo_n "(cached) " >&6
1665else
1666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667/* end confdefs.h. */
1668$4
1669#include <$2>
1670_ACEOF
1671if ac_fn_c_try_compile "$LINENO"; then :
1672 eval "$3=yes"
1673else
1674 eval "$3=no"
1675fi
1676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677fi
1678eval ac_res=\$$3
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680$as_echo "$ac_res" >&6; }
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682
1683} # ac_fn_c_check_header_compile
1684
1685# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1686# ---------------------------------------------
1687# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1688# accordingly.
1689ac_fn_c_check_decl ()
1690{
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 as_decl_name=`echo $2|sed 's/ *(.*//'`
1693 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1695$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1696if eval \${$3+:} false; then :
1697 $as_echo_n "(cached) " >&6
1698else
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700/* end confdefs.h. */
1701$4
1702int
1703main ()
1704{
1705#ifndef $as_decl_name
1706#ifdef __cplusplus
1707 (void) $as_decl_use;
1708#else
1709 (void) $as_decl_name;
1710#endif
1711#endif
1712
1713 ;
1714 return 0;
1715}
1716_ACEOF
1717if ac_fn_c_try_compile "$LINENO"; then :
1718 eval "$3=yes"
1719else
1720 eval "$3=no"
1721fi
1722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723fi
1724eval ac_res=\$$3
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726$as_echo "$ac_res" >&6; }
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728
1729} # ac_fn_c_check_decl
1730
1731# ac_fn_c_try_link LINENO
1732# -----------------------
1733# Try to link conftest.$ac_ext, and return whether this succeeded.
1734ac_fn_c_try_link ()
1735{
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 rm -f conftest.$ac_objext conftest$ac_exeext
1738 if { { ac_try="$ac_link"
1739case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>conftest.err
1746 ac_status=$?
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1751 fi
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_c_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest$ac_exeext && {
1757 test "$cross_compiling" = yes ||
1758 $as_test_x conftest$ac_exeext
1759 }; then :
1760 ac_retval=0
1761else
1762 $as_echo "$as_me: failed program was:" >&5
1763sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 ac_retval=1
1766fi
1767 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1768 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1769 # interfere with the next link command; also delete a directory that is
1770 # left behind by Apple's compiler. We do this before executing the actions.
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1774
1775} # ac_fn_c_try_link
1776
1777# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1778# -------------------------------------------------------
1779# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1780# the include files in INCLUDES and setting the cache variable VAR
1781# accordingly.
1782ac_fn_c_check_header_mongrel ()
1783{
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 if eval \${$3+:} false; then :
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787$as_echo_n "checking for $2... " >&6; }
1788if eval \${$3+:} false; then :
1789 $as_echo_n "(cached) " >&6
1790fi
1791eval ac_res=\$$3
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793$as_echo "$ac_res" >&6; }
1794else
1795 # Is the header compilable?
1796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1797$as_echo_n "checking $2 usability... " >&6; }
1798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799/* end confdefs.h. */
1800$4
1801#include <$2>
1802_ACEOF
1803if ac_fn_c_try_compile "$LINENO"; then :
1804 ac_header_compiler=yes
1805else
1806 ac_header_compiler=no
1807fi
1808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1810$as_echo "$ac_header_compiler" >&6; }
1811
1812# Is the header present?
1813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1814$as_echo_n "checking $2 presence... " >&6; }
1815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816/* end confdefs.h. */
1817#include <$2>
1818_ACEOF
1819if ac_fn_c_try_cpp "$LINENO"; then :
1820 ac_header_preproc=yes
1821else
1822 ac_header_preproc=no
1823fi
1824rm -f conftest.err conftest.i conftest.$ac_ext
1825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1826$as_echo "$ac_header_preproc" >&6; }
1827
1828# So? What about this header?
1829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1830 yes:no: )
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1832$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1834$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1835 ;;
1836 no:yes:* )
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1838$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1840$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1842$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1844$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1847( $as_echo "## ------------------------------------------- ##
1848## Report this to openssh-unix-dev@mindrot.org ##
1849## ------------------------------------------- ##"
1850 ) | sed "s/^/$as_me: WARNING: /" >&2
1851 ;;
1852esac
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854$as_echo_n "checking for $2... " >&6; }
1855if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1857else
1858 eval "$3=\$ac_header_compiler"
1859fi
1860eval ac_res=\$$3
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862$as_echo "$ac_res" >&6; }
1863fi
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865
1866} # ac_fn_c_check_header_mongrel
1867
1868# ac_fn_c_check_func LINENO FUNC VAR
1869# ----------------------------------
1870# Tests whether FUNC exists, setting the cache variable VAR accordingly
1871ac_fn_c_check_func ()
1872{
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875$as_echo_n "checking for $2... " >&6; }
1876if eval \${$3+:} false; then :
1877 $as_echo_n "(cached) " >&6
1878else
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880/* end confdefs.h. */
1881/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1883#define $2 innocuous_$2
1884
1885/* System header to define __stub macros and hopefully few prototypes,
1886 which can conflict with char $2 (); below.
1887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1888 <limits.h> exists even on freestanding compilers. */
1889
1890#ifdef __STDC__
1891# include <limits.h>
1892#else
1893# include <assert.h>
1894#endif
1895
1896#undef $2
1897
1898/* Override any GCC internal prototype to avoid an error.
1899 Use char because int might match the return type of a GCC
1900 builtin and then its argument prototype would still apply. */
1901#ifdef __cplusplus
1902extern "C"
1903#endif
1904char $2 ();
1905/* The GNU C library defines this for functions which it implements
1906 to always fail with ENOSYS. Some functions are actually named
1907 something starting with __ and the normal name is an alias. */
1908#if defined __stub_$2 || defined __stub___$2
1909choke me
1910#endif
1911
1912int
1913main ()
1914{
1915return $2 ();
1916 ;
1917 return 0;
1918}
1919_ACEOF
1920if ac_fn_c_try_link "$LINENO"; then :
1921 eval "$3=yes"
1922else
1923 eval "$3=no"
1924fi
1925rm -f core conftest.err conftest.$ac_objext \
1926 conftest$ac_exeext conftest.$ac_ext
1927fi
1928eval ac_res=\$$3
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930$as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932
1933} # ac_fn_c_check_func
1934
1935# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1936# -------------------------------------------
1937# Tests whether TYPE exists after having included INCLUDES, setting cache
1938# variable VAR accordingly.
1939ac_fn_c_check_type ()
1940{
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1943$as_echo_n "checking for $2... " >&6; }
1944if eval \${$3+:} false; then :
1945 $as_echo_n "(cached) " >&6
1946else
1947 eval "$3=no"
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949/* end confdefs.h. */
1950$4
1951int
1952main ()
1953{
1954if (sizeof ($2))
1955 return 0;
1956 ;
1957 return 0;
1958}
1959_ACEOF
1960if ac_fn_c_try_compile "$LINENO"; then :
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962/* end confdefs.h. */
1963$4
1964int
1965main ()
1966{
1967if (sizeof (($2)))
1968 return 0;
1969 ;
1970 return 0;
1971}
1972_ACEOF
1973if ac_fn_c_try_compile "$LINENO"; then :
1974
1975else
1976 eval "$3=yes"
1977fi
1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979fi
1980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981fi
1982eval ac_res=\$$3
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984$as_echo "$ac_res" >&6; }
1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986
1987} # ac_fn_c_check_type
1988
1989# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1990# --------------------------------------------
1991# Tries to find the compile-time value of EXPR in a program that includes
1992# INCLUDES, setting VAR accordingly. Returns whether the value could be
1993# computed
1994ac_fn_c_compute_int ()
1995{
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 if test "$cross_compiling" = yes; then
1998 # Depending upon the size, compute the lo and hi bounds.
1999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000/* end confdefs.h. */
2001$4
2002int
2003main ()
2004{
2005static int test_array [1 - 2 * !(($2) >= 0)];
2006test_array [0] = 0
2007
2008 ;
2009 return 0;
2010}
2011_ACEOF
2012if ac_fn_c_try_compile "$LINENO"; then :
2013 ac_lo=0 ac_mid=0
2014 while :; do
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h. */
2017$4
2018int
2019main ()
2020{
2021static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2022test_array [0] = 0
2023
2024 ;
2025 return 0;
2026}
2027_ACEOF
2028if ac_fn_c_try_compile "$LINENO"; then :
2029 ac_hi=$ac_mid; break
2030else
2031 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2032 if test $ac_lo -le $ac_mid; then
2033 ac_lo= ac_hi=
2034 break
2035 fi
2036 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2037fi
2038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 done
2040else
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042/* end confdefs.h. */
2043$4
2044int
2045main ()
2046{
2047static int test_array [1 - 2 * !(($2) < 0)];
2048test_array [0] = 0
2049
2050 ;
2051 return 0;
2052}
2053_ACEOF
2054if ac_fn_c_try_compile "$LINENO"; then :
2055 ac_hi=-1 ac_mid=-1
2056 while :; do
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058/* end confdefs.h. */
2059$4
2060int
2061main ()
2062{
2063static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2064test_array [0] = 0
2065
2066 ;
2067 return 0;
2068}
2069_ACEOF
2070if ac_fn_c_try_compile "$LINENO"; then :
2071 ac_lo=$ac_mid; break
2072else
2073 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2074 if test $ac_mid -le $ac_hi; then
2075 ac_lo= ac_hi=
2076 break
2077 fi
2078 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2079fi
2080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 done
2082else
2083 ac_lo= ac_hi=
2084fi
2085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086fi
2087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088# Binary search between lo and hi bounds.
2089while test "x$ac_lo" != "x$ac_hi"; do
2090 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092/* end confdefs.h. */
2093$4
2094int
2095main ()
2096{
2097static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2098test_array [0] = 0
2099
2100 ;
2101 return 0;
2102}
2103_ACEOF
2104if ac_fn_c_try_compile "$LINENO"; then :
2105 ac_hi=$ac_mid
2106else
2107 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2108fi
2109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110done
2111case $ac_lo in #((
2112?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2113'') ac_retval=1 ;;
2114esac
2115 else
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117/* end confdefs.h. */
2118$4
2119static long int longval () { return $2; }
2120static unsigned long int ulongval () { return $2; }
2121#include <stdio.h>
2122#include <stdlib.h>
2123int
2124main ()
2125{
2126
2127 FILE *f = fopen ("conftest.val", "w");
2128 if (! f)
2129 return 1;
2130 if (($2) < 0)
2131 {
2132 long int i = longval ();
2133 if (i != ($2))
2134 return 1;
2135 fprintf (f, "%ld", i);
2136 }
2137 else
2138 {
2139 unsigned long int i = ulongval ();
2140 if (i != ($2))
2141 return 1;
2142 fprintf (f, "%lu", i);
2143 }
2144 /* Do not output a trailing newline, as this causes \r\n confusion
2145 on some platforms. */
2146 return ferror (f) || fclose (f) != 0;
2147
2148 ;
2149 return 0;
2150}
2151_ACEOF
2152if ac_fn_c_try_run "$LINENO"; then :
2153 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2154else
2155 ac_retval=1
2156fi
2157rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2158 conftest.$ac_objext conftest.beam conftest.$ac_ext
2159rm -f conftest.val
2160
2161 fi
2162 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2163 as_fn_set_status $ac_retval
2164
2165} # ac_fn_c_compute_int
2166
2167# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2168# ----------------------------------------------------
2169# Tries to find if the field MEMBER exists in type AGGR, after including
2170# INCLUDES, setting cache variable VAR accordingly.
2171ac_fn_c_check_member ()
2172{
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2175$as_echo_n "checking for $2.$3... " >&6; }
2176if eval \${$4+:} false; then :
2177 $as_echo_n "(cached) " >&6
2178else
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180/* end confdefs.h. */
2181$5
2182int
2183main ()
2184{
2185static $2 ac_aggr;
2186if (ac_aggr.$3)
2187return 0;
2188 ;
2189 return 0;
2190}
2191_ACEOF
2192if ac_fn_c_try_compile "$LINENO"; then :
2193 eval "$4=yes"
2194else
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196/* end confdefs.h. */
2197$5
2198int
2199main ()
2200{
2201static $2 ac_aggr;
2202if (sizeof ac_aggr.$3)
2203return 0;
2204 ;
2205 return 0;
2206}
2207_ACEOF
2208if ac_fn_c_try_compile "$LINENO"; then :
2209 eval "$4=yes"
2210else
2211 eval "$4=no"
2212fi
2213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214fi
2215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216fi
2217eval ac_res=\$$4
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2219$as_echo "$ac_res" >&6; }
2220 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2221
2222} # ac_fn_c_check_member
2223cat >config.log <<_ACEOF 1449cat >config.log <<_ACEOF
2224This file contains any messages produced by compilers while 1450This file contains any messages produced by compilers while
2225running configure, to aid debugging if configure makes a mistake. 1451running configure, to aid debugging if configure makes a mistake.
2226 1452
2227It was created by OpenSSH $as_me Portable, which was 1453It was created by OpenSSH $as_me Portable, which was
2228generated by GNU Autoconf 2.68. Invocation command line was 1454generated by GNU Autoconf 2.61. Invocation command line was
2229 1455
2230 $ $0 $@ 1456 $ $0 $@
2231 1457
@@ -2261,8 +1487,8 @@ for as_dir in $PATH
2261do 1487do
2262 IFS=$as_save_IFS 1488 IFS=$as_save_IFS
2263 test -z "$as_dir" && as_dir=. 1489 test -z "$as_dir" && as_dir=.
2264 $as_echo "PATH: $as_dir" 1490 echo "PATH: $as_dir"
2265 done 1491done
2266IFS=$as_save_IFS 1492IFS=$as_save_IFS
2267 1493
2268} >&5 1494} >&5
@@ -2296,12 +1522,12 @@ do
2296 | -silent | --silent | --silen | --sile | --sil) 1522 | -silent | --silent | --silen | --sile | --sil)
2297 continue ;; 1523 continue ;;
2298 *\'*) 1524 *\'*)
2299 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1525 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2300 esac 1526 esac
2301 case $ac_pass in 1527 case $ac_pass in
2302 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1528 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2303 2) 1529 2)
2304 as_fn_append ac_configure_args1 " '$ac_arg'" 1530 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2305 if test $ac_must_keep_next = true; then 1531 if test $ac_must_keep_next = true; then
2306 ac_must_keep_next=false # Got value, back to normal. 1532 ac_must_keep_next=false # Got value, back to normal.
2307 else 1533 else
@@ -2317,13 +1543,13 @@ do
2317 -* ) ac_must_keep_next=true ;; 1543 -* ) ac_must_keep_next=true ;;
2318 esac 1544 esac
2319 fi 1545 fi
2320 as_fn_append ac_configure_args " '$ac_arg'" 1546 ac_configure_args="$ac_configure_args '$ac_arg'"
2321 ;; 1547 ;;
2322 esac 1548 esac
2323 done 1549 done
2324done 1550done
2325{ ac_configure_args0=; unset ac_configure_args0;} 1551$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2326{ ac_configure_args1=; unset ac_configure_args1;} 1552$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2327 1553
2328# When interrupted or exit'd, cleanup temporary files, and complete 1554# When interrupted or exit'd, cleanup temporary files, and complete
2329# config.log. We remove comments because anyway the quotes in there 1555# config.log. We remove comments because anyway the quotes in there
@@ -2335,9 +1561,11 @@ trap 'exit_status=$?
2335 { 1561 {
2336 echo 1562 echo
2337 1563
2338 $as_echo "## ---------------- ## 1564 cat <<\_ASBOX
1565## ---------------- ##
2339## Cache variables. ## 1566## Cache variables. ##
2340## ---------------- ##" 1567## ---------------- ##
1568_ASBOX
2341 echo 1569 echo
2342 # The following way of writing the cache mishandles newlines in values, 1570 # The following way of writing the cache mishandles newlines in values,
2343( 1571(
@@ -2346,13 +1574,12 @@ trap 'exit_status=$?
2346 case $ac_val in #( 1574 case $ac_val in #(
2347 *${as_nl}*) 1575 *${as_nl}*)
2348 case $ac_var in #( 1576 case $ac_var in #(
2349 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1577 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2350$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1578echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2351 esac 1579 esac
2352 case $ac_var in #( 1580 case $ac_var in #(
2353 _ | IFS | as_nl) ;; #( 1581 _ | IFS | as_nl) ;; #(
2354 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1582 *) $as_unset $ac_var ;;
2355 *) { eval $ac_var=; unset $ac_var;} ;;
2356 esac ;; 1583 esac ;;
2357 esac 1584 esac
2358 done 1585 done
@@ -2371,136 +1598,128 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2371) 1598)
2372 echo 1599 echo
2373 1600
2374 $as_echo "## ----------------- ## 1601 cat <<\_ASBOX
1602## ----------------- ##
2375## Output variables. ## 1603## Output variables. ##
2376## ----------------- ##" 1604## ----------------- ##
1605_ASBOX
2377 echo 1606 echo
2378 for ac_var in $ac_subst_vars 1607 for ac_var in $ac_subst_vars
2379 do 1608 do
2380 eval ac_val=\$$ac_var 1609 eval ac_val=\$$ac_var
2381 case $ac_val in 1610 case $ac_val in
2382 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1611 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2383 esac 1612 esac
2384 $as_echo "$ac_var='\''$ac_val'\''" 1613 echo "$ac_var='\''$ac_val'\''"
2385 done | sort 1614 done | sort
2386 echo 1615 echo
2387 1616
2388 if test -n "$ac_subst_files"; then 1617 if test -n "$ac_subst_files"; then
2389 $as_echo "## ------------------- ## 1618 cat <<\_ASBOX
1619## ------------------- ##
2390## File substitutions. ## 1620## File substitutions. ##
2391## ------------------- ##" 1621## ------------------- ##
1622_ASBOX
2392 echo 1623 echo
2393 for ac_var in $ac_subst_files 1624 for ac_var in $ac_subst_files
2394 do 1625 do
2395 eval ac_val=\$$ac_var 1626 eval ac_val=\$$ac_var
2396 case $ac_val in 1627 case $ac_val in
2397 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1628 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2398 esac 1629 esac
2399 $as_echo "$ac_var='\''$ac_val'\''" 1630 echo "$ac_var='\''$ac_val'\''"
2400 done | sort 1631 done | sort
2401 echo 1632 echo
2402 fi 1633 fi
2403 1634
2404 if test -s confdefs.h; then 1635 if test -s confdefs.h; then
2405 $as_echo "## ----------- ## 1636 cat <<\_ASBOX
1637## ----------- ##
2406## confdefs.h. ## 1638## confdefs.h. ##
2407## ----------- ##" 1639## ----------- ##
1640_ASBOX
2408 echo 1641 echo
2409 cat confdefs.h 1642 cat confdefs.h
2410 echo 1643 echo
2411 fi 1644 fi
2412 test "$ac_signal" != 0 && 1645 test "$ac_signal" != 0 &&
2413 $as_echo "$as_me: caught signal $ac_signal" 1646 echo "$as_me: caught signal $ac_signal"
2414 $as_echo "$as_me: exit $exit_status" 1647 echo "$as_me: exit $exit_status"
2415 } >&5 1648 } >&5
2416 rm -f core *.core core.conftest.* && 1649 rm -f core *.core core.conftest.* &&
2417 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1650 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2418 exit $exit_status 1651 exit $exit_status
2419' 0 1652' 0
2420for ac_signal in 1 2 13 15; do 1653for ac_signal in 1 2 13 15; do
2421 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1654 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2422done 1655done
2423ac_signal=0 1656ac_signal=0
2424 1657
2425# confdefs.h avoids OS command line length limits that DEFS can exceed. 1658# confdefs.h avoids OS command line length limits that DEFS can exceed.
2426rm -f -r conftest* confdefs.h 1659rm -f -r conftest* confdefs.h
2427 1660
2428$as_echo "/* confdefs.h */" > confdefs.h
2429
2430# Predefined preprocessor variables. 1661# Predefined preprocessor variables.
2431 1662
2432cat >>confdefs.h <<_ACEOF 1663cat >>confdefs.h <<_ACEOF
2433#define PACKAGE_NAME "$PACKAGE_NAME" 1664#define PACKAGE_NAME "$PACKAGE_NAME"
2434_ACEOF 1665_ACEOF
2435 1666
1667
2436cat >>confdefs.h <<_ACEOF 1668cat >>confdefs.h <<_ACEOF
2437#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1669#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2438_ACEOF 1670_ACEOF
2439 1671
1672
2440cat >>confdefs.h <<_ACEOF 1673cat >>confdefs.h <<_ACEOF
2441#define PACKAGE_VERSION "$PACKAGE_VERSION" 1674#define PACKAGE_VERSION "$PACKAGE_VERSION"
2442_ACEOF 1675_ACEOF
2443 1676
1677
2444cat >>confdefs.h <<_ACEOF 1678cat >>confdefs.h <<_ACEOF
2445#define PACKAGE_STRING "$PACKAGE_STRING" 1679#define PACKAGE_STRING "$PACKAGE_STRING"
2446_ACEOF 1680_ACEOF
2447 1681
2448cat >>confdefs.h <<_ACEOF
2449#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2450_ACEOF
2451 1682
2452cat >>confdefs.h <<_ACEOF 1683cat >>confdefs.h <<_ACEOF
2453#define PACKAGE_URL "$PACKAGE_URL" 1684#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2454_ACEOF 1685_ACEOF
2455 1686
2456 1687
2457# Let the site file select an alternate cache file if it wants to. 1688# Let the site file select an alternate cache file if it wants to.
2458# Prefer an explicitly selected file to automatically selected ones. 1689# Prefer explicitly selected file to automatically selected ones.
2459ac_site_file1=NONE
2460ac_site_file2=NONE
2461if test -n "$CONFIG_SITE"; then 1690if test -n "$CONFIG_SITE"; then
2462 # We do not want a PATH search for config.site. 1691 set x "$CONFIG_SITE"
2463 case $CONFIG_SITE in #((
2464 -*) ac_site_file1=./$CONFIG_SITE;;
2465 */*) ac_site_file1=$CONFIG_SITE;;
2466 *) ac_site_file1=./$CONFIG_SITE;;
2467 esac
2468elif test "x$prefix" != xNONE; then 1692elif test "x$prefix" != xNONE; then
2469 ac_site_file1=$prefix/share/config.site 1693 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2470 ac_site_file2=$prefix/etc/config.site
2471else 1694else
2472 ac_site_file1=$ac_default_prefix/share/config.site 1695 set x "$ac_default_prefix/share/config.site" \
2473 ac_site_file2=$ac_default_prefix/etc/config.site 1696 "$ac_default_prefix/etc/config.site"
2474fi 1697fi
2475for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1698shift
1699for ac_site_file
2476do 1700do
2477 test "x$ac_site_file" = xNONE && continue 1701 if test -r "$ac_site_file"; then
2478 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1702 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1703echo "$as_me: loading site script $ac_site_file" >&6;}
2480$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2481 sed 's/^/| /' "$ac_site_file" >&5 1704 sed 's/^/| /' "$ac_site_file" >&5
2482 . "$ac_site_file" \ 1705 . "$ac_site_file"
2483 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2485as_fn_error $? "failed to load site script $ac_site_file
2486See \`config.log' for more details" "$LINENO" 5; }
2487 fi 1706 fi
2488done 1707done
2489 1708
2490if test -r "$cache_file"; then 1709if test -r "$cache_file"; then
2491 # Some versions of bash will fail to source /dev/null (special files 1710 # Some versions of bash will fail to source /dev/null (special
2492 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1711 # files actually), so we avoid doing that.
2493 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1712 if test -f "$cache_file"; then
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1713 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2495$as_echo "$as_me: loading cache $cache_file" >&6;} 1714echo "$as_me: loading cache $cache_file" >&6;}
2496 case $cache_file in 1715 case $cache_file in
2497 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1716 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2498 *) . "./$cache_file";; 1717 *) . "./$cache_file";;
2499 esac 1718 esac
2500 fi 1719 fi
2501else 1720else
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1721 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2503$as_echo "$as_me: creating cache $cache_file" >&6;} 1722echo "$as_me: creating cache $cache_file" >&6;}
2504 >$cache_file 1723 >$cache_file
2505fi 1724fi
2506 1725
@@ -2514,56 +1733,68 @@ for ac_var in $ac_precious_vars; do
2514 eval ac_new_val=\$ac_env_${ac_var}_value 1733 eval ac_new_val=\$ac_env_${ac_var}_value
2515 case $ac_old_set,$ac_new_set in 1734 case $ac_old_set,$ac_new_set in
2516 set,) 1735 set,)
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1736 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2518$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1737echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2519 ac_cache_corrupted=: ;; 1738 ac_cache_corrupted=: ;;
2520 ,set) 1739 ,set)
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 1740 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2522$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1741echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2523 ac_cache_corrupted=: ;; 1742 ac_cache_corrupted=: ;;
2524 ,);; 1743 ,);;
2525 *) 1744 *)
2526 if test "x$ac_old_val" != "x$ac_new_val"; then 1745 if test "x$ac_old_val" != "x$ac_new_val"; then
2527 # differences in whitespace do not lead to failure. 1746 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2528 ac_old_val_w=`echo x $ac_old_val` 1747echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2529 ac_new_val_w=`echo x $ac_new_val` 1748 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2530 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1749echo "$as_me: former value: $ac_old_val" >&2;}
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 1750 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2532$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1751echo "$as_me: current value: $ac_new_val" >&2;}
2533 ac_cache_corrupted=: 1752 ac_cache_corrupted=:
2534 else
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2536$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2537 eval $ac_var=\$ac_old_val
2538 fi
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2540$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2542$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2543 fi;; 1753 fi;;
2544 esac 1754 esac
2545 # Pass precious variables to config.status. 1755 # Pass precious variables to config.status.
2546 if test "$ac_new_set" = set; then 1756 if test "$ac_new_set" = set; then
2547 case $ac_new_val in 1757 case $ac_new_val in
2548 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1758 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2549 *) ac_arg=$ac_var=$ac_new_val ;; 1759 *) ac_arg=$ac_var=$ac_new_val ;;
2550 esac 1760 esac
2551 case " $ac_configure_args " in 1761 case " $ac_configure_args " in
2552 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1762 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2553 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 1763 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2554 esac 1764 esac
2555 fi 1765 fi
2556done 1766done
2557if $ac_cache_corrupted; then 1767if $ac_cache_corrupted; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1768 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2559$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1769echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 1770 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2561$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1771echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2562 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 1772 { (exit 1); exit 1; }; }
2563fi 1773fi
2564## -------------------- ## 1774
2565## Main body of script. ## 1775
2566## -------------------- ## 1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
2567 1798
2568ac_ext=c 1799ac_ext=c
2569ac_cpp='$CPP $CPPFLAGS' 1800ac_cpp='$CPP $CPPFLAGS'
@@ -2591,10 +1822,10 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
2591if test -n "$ac_tool_prefix"; then 1822if test -n "$ac_tool_prefix"; then
2592 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1823 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2593set dummy ${ac_tool_prefix}gcc; ac_word=$2 1824set dummy ${ac_tool_prefix}gcc; ac_word=$2
2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1825{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2595$as_echo_n "checking for $ac_word... " >&6; } 1826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2596if ${ac_cv_prog_CC+:} false; then : 1827if test "${ac_cv_prog_CC+set}" = set; then
2597 $as_echo_n "(cached) " >&6 1828 echo $ECHO_N "(cached) $ECHO_C" >&6
2598else 1829else
2599 if test -n "$CC"; then 1830 if test -n "$CC"; then
2600 ac_cv_prog_CC="$CC" # Let the user override the test. 1831 ac_cv_prog_CC="$CC" # Let the user override the test.
@@ -2604,25 +1835,25 @@ for as_dir in $PATH
2604do 1835do
2605 IFS=$as_save_IFS 1836 IFS=$as_save_IFS
2606 test -z "$as_dir" && as_dir=. 1837 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do 1838 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1840 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 break 2 1842 break 2
2612 fi 1843 fi
2613done 1844done
2614 done 1845done
2615IFS=$as_save_IFS 1846IFS=$as_save_IFS
2616 1847
2617fi 1848fi
2618fi 1849fi
2619CC=$ac_cv_prog_CC 1850CC=$ac_cv_prog_CC
2620if test -n "$CC"; then 1851if test -n "$CC"; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 1852 { echo "$as_me:$LINENO: result: $CC" >&5
2622$as_echo "$CC" >&6; } 1853echo "${ECHO_T}$CC" >&6; }
2623else 1854else
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1855 { echo "$as_me:$LINENO: result: no" >&5
2625$as_echo "no" >&6; } 1856echo "${ECHO_T}no" >&6; }
2626fi 1857fi
2627 1858
2628 1859
@@ -2631,10 +1862,10 @@ if test -z "$ac_cv_prog_CC"; then
2631 ac_ct_CC=$CC 1862 ac_ct_CC=$CC
2632 # Extract the first word of "gcc", so it can be a program name with args. 1863 # Extract the first word of "gcc", so it can be a program name with args.
2633set dummy gcc; ac_word=$2 1864set dummy gcc; ac_word=$2
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1865{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2635$as_echo_n "checking for $ac_word... " >&6; } 1866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636if ${ac_cv_prog_ac_ct_CC+:} false; then : 1867if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2637 $as_echo_n "(cached) " >&6 1868 echo $ECHO_N "(cached) $ECHO_C" >&6
2638else 1869else
2639 if test -n "$ac_ct_CC"; then 1870 if test -n "$ac_ct_CC"; then
2640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1871 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
@@ -2644,25 +1875,25 @@ for as_dir in $PATH
2644do 1875do
2645 IFS=$as_save_IFS 1876 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=. 1877 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do 1878 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_ac_ct_CC="gcc" 1880 ac_cv_prog_ac_ct_CC="gcc"
2650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 break 2 1882 break 2
2652 fi 1883 fi
2653done 1884done
2654 done 1885done
2655IFS=$as_save_IFS 1886IFS=$as_save_IFS
2656 1887
2657fi 1888fi
2658fi 1889fi
2659ac_ct_CC=$ac_cv_prog_ac_ct_CC 1890ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660if test -n "$ac_ct_CC"; then 1891if test -n "$ac_ct_CC"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 1892 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2662$as_echo "$ac_ct_CC" >&6; } 1893echo "${ECHO_T}$ac_ct_CC" >&6; }
2663else 1894else
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1895 { echo "$as_me:$LINENO: result: no" >&5
2665$as_echo "no" >&6; } 1896echo "${ECHO_T}no" >&6; }
2666fi 1897fi
2667 1898
2668 if test "x$ac_ct_CC" = x; then 1899 if test "x$ac_ct_CC" = x; then
@@ -2670,8 +1901,12 @@ fi
2670 else 1901 else
2671 case $cross_compiling:$ac_tool_warned in 1902 case $cross_compiling:$ac_tool_warned in
2672yes:) 1903yes:)
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 1904{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2674$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 1905whose name does not start with the host triplet. If you think this
1906configuration is useful to you, please write to autoconf@gnu.org." >&5
1907echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1908whose name does not start with the host triplet. If you think this
1909configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2675ac_tool_warned=yes ;; 1910ac_tool_warned=yes ;;
2676esac 1911esac
2677 CC=$ac_ct_CC 1912 CC=$ac_ct_CC
@@ -2684,10 +1919,10 @@ if test -z "$CC"; then
2684 if test -n "$ac_tool_prefix"; then 1919 if test -n "$ac_tool_prefix"; then
2685 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1920 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2686set dummy ${ac_tool_prefix}cc; ac_word=$2 1921set dummy ${ac_tool_prefix}cc; ac_word=$2
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1922{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2688$as_echo_n "checking for $ac_word... " >&6; } 1923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2689if ${ac_cv_prog_CC+:} false; then : 1924if test "${ac_cv_prog_CC+set}" = set; then
2690 $as_echo_n "(cached) " >&6 1925 echo $ECHO_N "(cached) $ECHO_C" >&6
2691else 1926else
2692 if test -n "$CC"; then 1927 if test -n "$CC"; then
2693 ac_cv_prog_CC="$CC" # Let the user override the test. 1928 ac_cv_prog_CC="$CC" # Let the user override the test.
@@ -2697,25 +1932,25 @@ for as_dir in $PATH
2697do 1932do
2698 IFS=$as_save_IFS 1933 IFS=$as_save_IFS
2699 test -z "$as_dir" && as_dir=. 1934 test -z "$as_dir" && as_dir=.
2700 for ac_exec_ext in '' $ac_executable_extensions; do 1935 for ac_exec_ext in '' $ac_executable_extensions; do
2701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2702 ac_cv_prog_CC="${ac_tool_prefix}cc" 1937 ac_cv_prog_CC="${ac_tool_prefix}cc"
2703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 break 2 1939 break 2
2705 fi 1940 fi
2706done 1941done
2707 done 1942done
2708IFS=$as_save_IFS 1943IFS=$as_save_IFS
2709 1944
2710fi 1945fi
2711fi 1946fi
2712CC=$ac_cv_prog_CC 1947CC=$ac_cv_prog_CC
2713if test -n "$CC"; then 1948if test -n "$CC"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 1949 { echo "$as_me:$LINENO: result: $CC" >&5
2715$as_echo "$CC" >&6; } 1950echo "${ECHO_T}$CC" >&6; }
2716else 1951else
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1952 { echo "$as_me:$LINENO: result: no" >&5
2718$as_echo "no" >&6; } 1953echo "${ECHO_T}no" >&6; }
2719fi 1954fi
2720 1955
2721 1956
@@ -2724,10 +1959,10 @@ fi
2724if test -z "$CC"; then 1959if test -z "$CC"; then
2725 # Extract the first word of "cc", so it can be a program name with args. 1960 # Extract the first word of "cc", so it can be a program name with args.
2726set dummy cc; ac_word=$2 1961set dummy cc; ac_word=$2
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1962{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2728$as_echo_n "checking for $ac_word... " >&6; } 1963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2729if ${ac_cv_prog_CC+:} false; then : 1964if test "${ac_cv_prog_CC+set}" = set; then
2730 $as_echo_n "(cached) " >&6 1965 echo $ECHO_N "(cached) $ECHO_C" >&6
2731else 1966else
2732 if test -n "$CC"; then 1967 if test -n "$CC"; then
2733 ac_cv_prog_CC="$CC" # Let the user override the test. 1968 ac_cv_prog_CC="$CC" # Let the user override the test.
@@ -2738,18 +1973,18 @@ for as_dir in $PATH
2738do 1973do
2739 IFS=$as_save_IFS 1974 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=. 1975 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do 1976 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2743 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1978 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2744 ac_prog_rejected=yes 1979 ac_prog_rejected=yes
2745 continue 1980 continue
2746 fi 1981 fi
2747 ac_cv_prog_CC="cc" 1982 ac_cv_prog_CC="cc"
2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 break 2 1984 break 2
2750 fi 1985 fi
2751done 1986done
2752 done 1987done
2753IFS=$as_save_IFS 1988IFS=$as_save_IFS
2754 1989
2755if test $ac_prog_rejected = yes; then 1990if test $ac_prog_rejected = yes; then
@@ -2768,11 +2003,11 @@ fi
2768fi 2003fi
2769CC=$ac_cv_prog_CC 2004CC=$ac_cv_prog_CC
2770if test -n "$CC"; then 2005if test -n "$CC"; then
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2006 { echo "$as_me:$LINENO: result: $CC" >&5
2772$as_echo "$CC" >&6; } 2007echo "${ECHO_T}$CC" >&6; }
2773else 2008else
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2009 { echo "$as_me:$LINENO: result: no" >&5
2775$as_echo "no" >&6; } 2010echo "${ECHO_T}no" >&6; }
2776fi 2011fi
2777 2012
2778 2013
@@ -2783,10 +2018,10 @@ if test -z "$CC"; then
2783 do 2018 do
2784 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2785set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2020set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2021{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2787$as_echo_n "checking for $ac_word... " >&6; } 2022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2788if ${ac_cv_prog_CC+:} false; then : 2023if test "${ac_cv_prog_CC+set}" = set; then
2789 $as_echo_n "(cached) " >&6 2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2790else 2025else
2791 if test -n "$CC"; then 2026 if test -n "$CC"; then
2792 ac_cv_prog_CC="$CC" # Let the user override the test. 2027 ac_cv_prog_CC="$CC" # Let the user override the test.
@@ -2796,25 +2031,25 @@ for as_dir in $PATH
2796do 2031do
2797 IFS=$as_save_IFS 2032 IFS=$as_save_IFS
2798 test -z "$as_dir" && as_dir=. 2033 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do 2034 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2036 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 break 2 2038 break 2
2804 fi 2039 fi
2805done 2040done
2806 done 2041done
2807IFS=$as_save_IFS 2042IFS=$as_save_IFS
2808 2043
2809fi 2044fi
2810fi 2045fi
2811CC=$ac_cv_prog_CC 2046CC=$ac_cv_prog_CC
2812if test -n "$CC"; then 2047if test -n "$CC"; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2048 { echo "$as_me:$LINENO: result: $CC" >&5
2814$as_echo "$CC" >&6; } 2049echo "${ECHO_T}$CC" >&6; }
2815else 2050else
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2051 { echo "$as_me:$LINENO: result: no" >&5
2817$as_echo "no" >&6; } 2052echo "${ECHO_T}no" >&6; }
2818fi 2053fi
2819 2054
2820 2055
@@ -2827,10 +2062,10 @@ if test -z "$CC"; then
2827do 2062do
2828 # Extract the first word of "$ac_prog", so it can be a program name with args. 2063 # Extract the first word of "$ac_prog", so it can be a program name with args.
2829set dummy $ac_prog; ac_word=$2 2064set dummy $ac_prog; ac_word=$2
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2065{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2831$as_echo_n "checking for $ac_word... " >&6; } 2066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2832if ${ac_cv_prog_ac_ct_CC+:} false; then : 2067if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2833 $as_echo_n "(cached) " >&6 2068 echo $ECHO_N "(cached) $ECHO_C" >&6
2834else 2069else
2835 if test -n "$ac_ct_CC"; then 2070 if test -n "$ac_ct_CC"; then
2836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2071 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
@@ -2840,25 +2075,25 @@ for as_dir in $PATH
2840do 2075do
2841 IFS=$as_save_IFS 2076 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=. 2077 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do 2078 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2845 ac_cv_prog_ac_ct_CC="$ac_prog" 2080 ac_cv_prog_ac_ct_CC="$ac_prog"
2846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2 2082 break 2
2848 fi 2083 fi
2849done 2084done
2850 done 2085done
2851IFS=$as_save_IFS 2086IFS=$as_save_IFS
2852 2087
2853fi 2088fi
2854fi 2089fi
2855ac_ct_CC=$ac_cv_prog_ac_ct_CC 2090ac_ct_CC=$ac_cv_prog_ac_ct_CC
2856if test -n "$ac_ct_CC"; then 2091if test -n "$ac_ct_CC"; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2092 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2858$as_echo "$ac_ct_CC" >&6; } 2093echo "${ECHO_T}$ac_ct_CC" >&6; }
2859else 2094else
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2095 { echo "$as_me:$LINENO: result: no" >&5
2861$as_echo "no" >&6; } 2096echo "${ECHO_T}no" >&6; }
2862fi 2097fi
2863 2098
2864 2099
@@ -2870,8 +2105,12 @@ done
2870 else 2105 else
2871 case $cross_compiling:$ac_tool_warned in 2106 case $cross_compiling:$ac_tool_warned in
2872yes:) 2107yes:)
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2108{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2109whose name does not start with the host triplet. If you think this
2110configuration is useful to you, please write to autoconf@gnu.org." >&5
2111echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2112whose name does not start with the host triplet. If you think this
2113configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2875ac_tool_warned=yes ;; 2114ac_tool_warned=yes ;;
2876esac 2115esac
2877 CC=$ac_ct_CC 2116 CC=$ac_ct_CC
@@ -2881,37 +2120,51 @@ fi
2881fi 2120fi
2882 2121
2883 2122
2884test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2123test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2885$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2124See \`config.log' for more details." >&5
2886as_fn_error $? "no acceptable C compiler found in \$PATH 2125echo "$as_me: error: no acceptable C compiler found in \$PATH
2887See \`config.log' for more details" "$LINENO" 5; } 2126See \`config.log' for more details." >&2;}
2127 { (exit 1); exit 1; }; }
2888 2128
2889# Provide some information about the compiler. 2129# Provide some information about the compiler.
2890$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2130echo "$as_me:$LINENO: checking for C compiler version" >&5
2891set X $ac_compile 2131ac_compiler=`set X $ac_compile; echo $2`
2892ac_compiler=$2 2132{ (ac_try="$ac_compiler --version >&5"
2893for ac_option in --version -v -V -qversion; do
2894 { { ac_try="$ac_compiler $ac_option >&5"
2895case "(($ac_try" in 2133case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;; 2135 *) ac_try_echo=$ac_try;;
2898esac 2136esac
2899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900$as_echo "$ac_try_echo"; } >&5 2138 (eval "$ac_compiler --version >&5") 2>&5
2901 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2902 ac_status=$? 2139 ac_status=$?
2903 if test -s conftest.err; then 2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 sed '10a\ 2141 (exit $ac_status); }
2905... rest of stderr output deleted ... 2142{ (ac_try="$ac_compiler -v >&5"
2906 10q' conftest.err >conftest.er1 2143case "(($ac_try" in
2907 cat conftest.er1 >&5 2144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 fi 2145 *) ac_try_echo=$ac_try;;
2909 rm -f conftest.er1 conftest.err 2146esac
2910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911 test $ac_status = 0; } 2148 (eval "$ac_compiler -v >&5") 2>&5
2912done 2149 ac_status=$?
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }
2152{ (ac_try="$ac_compiler -V >&5"
2153case "(($ac_try" in
2154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155 *) ac_try_echo=$ac_try;;
2156esac
2157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2158 (eval "$ac_compiler -V >&5") 2>&5
2159 ac_status=$?
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }
2913 2162
2914cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2163cat >conftest.$ac_ext <<_ACEOF
2164/* confdefs.h. */
2165_ACEOF
2166cat confdefs.h >>conftest.$ac_ext
2167cat >>conftest.$ac_ext <<_ACEOF
2915/* end confdefs.h. */ 2168/* end confdefs.h. */
2916 2169
2917int 2170int
@@ -2923,38 +2176,42 @@ main ()
2923} 2176}
2924_ACEOF 2177_ACEOF
2925ac_clean_files_save=$ac_clean_files 2178ac_clean_files_save=$ac_clean_files
2926ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2179ac_clean_files="$ac_clean_files a.out a.exe b.out"
2927# Try to create an executable without -o first, disregard a.out. 2180# Try to create an executable without -o first, disregard a.out.
2928# It will help us diagnose broken compilers, and finding out an intuition 2181# It will help us diagnose broken compilers, and finding out an intuition
2929# of exeext. 2182# of exeext.
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2183{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2931$as_echo_n "checking whether the C compiler works... " >&6; } 2184echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2932ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2185ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2933 2186#
2934# The possible output files: 2187# List of possible output files, starting from the most likely.
2935ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2188# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2936 2189# only as a last resort. b.out is created by i960 compilers.
2190ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2191#
2192# The IRIX 6 linker writes into existing files which may not be
2193# executable, retaining their permissions. Remove them first so a
2194# subsequent execution test works.
2937ac_rmfiles= 2195ac_rmfiles=
2938for ac_file in $ac_files 2196for ac_file in $ac_files
2939do 2197do
2940 case $ac_file in 2198 case $ac_file in
2941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2942 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2200 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2943 esac 2201 esac
2944done 2202done
2945rm -f $ac_rmfiles 2203rm -f $ac_rmfiles
2946 2204
2947if { { ac_try="$ac_link_default" 2205if { (ac_try="$ac_link_default"
2948case "(($ac_try" in 2206case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;; 2208 *) ac_try_echo=$ac_try;;
2951esac 2209esac
2952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953$as_echo "$ac_try_echo"; } >&5
2954 (eval "$ac_link_default") 2>&5 2211 (eval "$ac_link_default") 2>&5
2955 ac_status=$? 2212 ac_status=$?
2956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 test $ac_status = 0; }; then : 2214 (exit $ac_status); }; then
2958 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2215 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2959# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2216# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2960# in a Makefile. We should not override ac_cv_exeext if it was cached, 2217# in a Makefile. We should not override ac_cv_exeext if it was cached,
@@ -2964,14 +2221,14 @@ for ac_file in $ac_files ''
2964do 2221do
2965 test -f "$ac_file" || continue 2222 test -f "$ac_file" || continue
2966 case $ac_file in 2223 case $ac_file in
2967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2968 ;; 2225 ;;
2969 [ab].out ) 2226 [ab].out )
2970 # We found the default executable, but exeext='' is most 2227 # We found the default executable, but exeext='' is most
2971 # certainly right. 2228 # certainly right.
2972 break;; 2229 break;;
2973 *.* ) 2230 *.* )
2974 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2231 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2975 then :; else 2232 then :; else
2976 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2233 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2977 fi 2234 fi
@@ -2990,41 +2247,78 @@ test "$ac_cv_exeext" = no && ac_cv_exeext=
2990else 2247else
2991 ac_file='' 2248 ac_file=''
2992fi 2249fi
2993if test -z "$ac_file"; then : 2250
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2251{ echo "$as_me:$LINENO: result: $ac_file" >&5
2995$as_echo "no" >&6; } 2252echo "${ECHO_T}$ac_file" >&6; }
2996$as_echo "$as_me: failed program was:" >&5 2253if test -z "$ac_file"; then
2254 echo "$as_me: failed program was:" >&5
2997sed 's/^/| /' conftest.$ac_ext >&5 2255sed 's/^/| /' conftest.$ac_ext >&5
2998 2256
2999{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2257{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2258See \`config.log' for more details." >&5
3001as_fn_error 77 "C compiler cannot create executables 2259echo "$as_me: error: C compiler cannot create executables
3002See \`config.log' for more details" "$LINENO" 5; } 2260See \`config.log' for more details." >&2;}
3003else 2261 { (exit 77); exit 77; }; }
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3005$as_echo "yes" >&6; }
3006fi 2262fi
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2263
3008$as_echo_n "checking for C compiler default output file name... " >&6; }
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3010$as_echo "$ac_file" >&6; }
3011ac_exeext=$ac_cv_exeext 2264ac_exeext=$ac_cv_exeext
3012 2265
3013rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2266# Check that the compiler produces executables we can run. If not, either
2267# the compiler is broken, or we cross compile.
2268{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2269echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2270# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2271# If not cross compiling, check that we can run a simple program.
2272if test "$cross_compiling" != yes; then
2273 if { ac_try='./$ac_file'
2274 { (case "(($ac_try" in
2275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2276 *) ac_try_echo=$ac_try;;
2277esac
2278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2279 (eval "$ac_try") 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; }; then
2283 cross_compiling=no
2284 else
2285 if test "$cross_compiling" = maybe; then
2286 cross_compiling=yes
2287 else
2288 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2289If you meant to cross compile, use \`--host'.
2290See \`config.log' for more details." >&5
2291echo "$as_me: error: cannot run C compiled programs.
2292If you meant to cross compile, use \`--host'.
2293See \`config.log' for more details." >&2;}
2294 { (exit 1); exit 1; }; }
2295 fi
2296 fi
2297fi
2298{ echo "$as_me:$LINENO: result: yes" >&5
2299echo "${ECHO_T}yes" >&6; }
2300
2301rm -f a.out a.exe conftest$ac_cv_exeext b.out
3014ac_clean_files=$ac_clean_files_save 2302ac_clean_files=$ac_clean_files_save
3015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2303# Check that the compiler produces executables we can run. If not, either
3016$as_echo_n "checking for suffix of executables... " >&6; } 2304# the compiler is broken, or we cross compile.
3017if { { ac_try="$ac_link" 2305{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2306echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2307{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2308echo "${ECHO_T}$cross_compiling" >&6; }
2309
2310{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2311echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2312if { (ac_try="$ac_link"
3018case "(($ac_try" in 2313case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;; 2315 *) ac_try_echo=$ac_try;;
3021esac 2316esac
3022eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023$as_echo "$ac_try_echo"; } >&5
3024 (eval "$ac_link") 2>&5 2318 (eval "$ac_link") 2>&5
3025 ac_status=$? 2319 ac_status=$?
3026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 test $ac_status = 0; }; then : 2321 (exit $ac_status); }; then
3028 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2322 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3029# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2323# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3030# work properly (i.e., refer to `conftest.exe'), while it won't with 2324# work properly (i.e., refer to `conftest.exe'), while it won't with
@@ -3032,90 +2326,37 @@ $as_echo "$ac_try_echo"; } >&5
3032for ac_file in conftest.exe conftest conftest.*; do 2326for ac_file in conftest.exe conftest conftest.*; do
3033 test -f "$ac_file" || continue 2327 test -f "$ac_file" || continue
3034 case $ac_file in 2328 case $ac_file in
3035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3036 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2330 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3037 break;; 2331 break;;
3038 * ) break;; 2332 * ) break;;
3039 esac 2333 esac
3040done 2334done
3041else 2335else
3042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2336 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2337See \`config.log' for more details." >&5
3044as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2338echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3045See \`config.log' for more details" "$LINENO" 5; } 2339See \`config.log' for more details." >&2;}
2340 { (exit 1); exit 1; }; }
3046fi 2341fi
3047rm -f conftest conftest$ac_cv_exeext 2342
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2343rm -f conftest$ac_cv_exeext
3049$as_echo "$ac_cv_exeext" >&6; } 2344{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2345echo "${ECHO_T}$ac_cv_exeext" >&6; }
3050 2346
3051rm -f conftest.$ac_ext 2347rm -f conftest.$ac_ext
3052EXEEXT=$ac_cv_exeext 2348EXEEXT=$ac_cv_exeext
3053ac_exeext=$EXEEXT 2349ac_exeext=$EXEEXT
3054cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2350{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3055/* end confdefs.h. */ 2351echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3056#include <stdio.h> 2352if test "${ac_cv_objext+set}" = set; then
3057int 2353 echo $ECHO_N "(cached) $ECHO_C" >&6
3058main ()
3059{
3060FILE *f = fopen ("conftest.out", "w");
3061 return ferror (f) || fclose (f) != 0;
3062
3063 ;
3064 return 0;
3065}
3066_ACEOF
3067ac_clean_files="$ac_clean_files conftest.out"
3068# Check that the compiler produces executables we can run. If not, either
3069# the compiler is broken, or we cross compile.
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3071$as_echo_n "checking whether we are cross compiling... " >&6; }
3072if test "$cross_compiling" != yes; then
3073 { { ac_try="$ac_link"
3074case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077esac
3078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3079$as_echo "$ac_try_echo"; } >&5
3080 (eval "$ac_link") 2>&5
3081 ac_status=$?
3082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083 test $ac_status = 0; }
3084 if { ac_try='./conftest$ac_cv_exeext'
3085 { { case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
3089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090$as_echo "$ac_try_echo"; } >&5
3091 (eval "$ac_try") 2>&5
3092 ac_status=$?
3093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3094 test $ac_status = 0; }; }; then
3095 cross_compiling=no
3096 else
3097 if test "$cross_compiling" = maybe; then
3098 cross_compiling=yes
3099 else
3100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3102as_fn_error $? "cannot run C compiled programs.
3103If you meant to cross compile, use \`--host'.
3104See \`config.log' for more details" "$LINENO" 5; }
3105 fi
3106 fi
3107fi
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3109$as_echo "$cross_compiling" >&6; }
3110
3111rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3112ac_clean_files=$ac_clean_files_save
3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3114$as_echo_n "checking for suffix of object files... " >&6; }
3115if ${ac_cv_objext+:} false; then :
3116 $as_echo_n "(cached) " >&6
3117else 2354else
3118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2355 cat >conftest.$ac_ext <<_ACEOF
2356/* confdefs.h. */
2357_ACEOF
2358cat confdefs.h >>conftest.$ac_ext
2359cat >>conftest.$ac_ext <<_ACEOF
3119/* end confdefs.h. */ 2360/* end confdefs.h. */
3120 2361
3121int 2362int
@@ -3127,46 +2368,51 @@ main ()
3127} 2368}
3128_ACEOF 2369_ACEOF
3129rm -f conftest.o conftest.obj 2370rm -f conftest.o conftest.obj
3130if { { ac_try="$ac_compile" 2371if { (ac_try="$ac_compile"
3131case "(($ac_try" in 2372case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;; 2374 *) ac_try_echo=$ac_try;;
3134esac 2375esac
3135eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136$as_echo "$ac_try_echo"; } >&5
3137 (eval "$ac_compile") 2>&5 2377 (eval "$ac_compile") 2>&5
3138 ac_status=$? 2378 ac_status=$?
3139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 test $ac_status = 0; }; then : 2380 (exit $ac_status); }; then
3141 for ac_file in conftest.o conftest.obj conftest.*; do 2381 for ac_file in conftest.o conftest.obj conftest.*; do
3142 test -f "$ac_file" || continue; 2382 test -f "$ac_file" || continue;
3143 case $ac_file in 2383 case $ac_file in
3144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3145 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2385 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3146 break;; 2386 break;;
3147 esac 2387 esac
3148done 2388done
3149else 2389else
3150 $as_echo "$as_me: failed program was:" >&5 2390 echo "$as_me: failed program was:" >&5
3151sed 's/^/| /' conftest.$ac_ext >&5 2391sed 's/^/| /' conftest.$ac_ext >&5
3152 2392
3153{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2393{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2394See \`config.log' for more details." >&5
3155as_fn_error $? "cannot compute suffix of object files: cannot compile 2395echo "$as_me: error: cannot compute suffix of object files: cannot compile
3156See \`config.log' for more details" "$LINENO" 5; } 2396See \`config.log' for more details." >&2;}
2397 { (exit 1); exit 1; }; }
3157fi 2398fi
2399
3158rm -f conftest.$ac_cv_objext conftest.$ac_ext 2400rm -f conftest.$ac_cv_objext conftest.$ac_ext
3159fi 2401fi
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2402{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3161$as_echo "$ac_cv_objext" >&6; } 2403echo "${ECHO_T}$ac_cv_objext" >&6; }
3162OBJEXT=$ac_cv_objext 2404OBJEXT=$ac_cv_objext
3163ac_objext=$OBJEXT 2405ac_objext=$OBJEXT
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2406{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3165$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2407echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3166if ${ac_cv_c_compiler_gnu+:} false; then : 2408if test "${ac_cv_c_compiler_gnu+set}" = set; then
3167 $as_echo_n "(cached) " >&6 2409 echo $ECHO_N "(cached) $ECHO_C" >&6
3168else 2410else
3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2411 cat >conftest.$ac_ext <<_ACEOF
2412/* confdefs.h. */
2413_ACEOF
2414cat confdefs.h >>conftest.$ac_ext
2415cat >>conftest.$ac_ext <<_ACEOF
3170/* end confdefs.h. */ 2416/* end confdefs.h. */
3171 2417
3172int 2418int
@@ -3180,34 +2426,54 @@ main ()
3180 return 0; 2426 return 0;
3181} 2427}
3182_ACEOF 2428_ACEOF
3183if ac_fn_c_try_compile "$LINENO"; then : 2429rm -f conftest.$ac_objext
2430if { (ac_try="$ac_compile"
2431case "(($ac_try" in
2432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433 *) ac_try_echo=$ac_try;;
2434esac
2435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2436 (eval "$ac_compile") 2>conftest.er1
2437 ac_status=$?
2438 grep -v '^ *+' conftest.er1 >conftest.err
2439 rm -f conftest.er1
2440 cat conftest.err >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); } && {
2443 test -z "$ac_c_werror_flag" ||
2444 test ! -s conftest.err
2445 } && test -s conftest.$ac_objext; then
3184 ac_compiler_gnu=yes 2446 ac_compiler_gnu=yes
3185else 2447else
3186 ac_compiler_gnu=no 2448 echo "$as_me: failed program was:" >&5
2449sed 's/^/| /' conftest.$ac_ext >&5
2450
2451 ac_compiler_gnu=no
3187fi 2452fi
2453
3188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189ac_cv_c_compiler_gnu=$ac_compiler_gnu 2455ac_cv_c_compiler_gnu=$ac_compiler_gnu
3190 2456
3191fi 2457fi
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2458{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3193$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2459echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3194if test $ac_compiler_gnu = yes; then 2460GCC=`test $ac_compiler_gnu = yes && echo yes`
3195 GCC=yes
3196else
3197 GCC=
3198fi
3199ac_test_CFLAGS=${CFLAGS+set} 2461ac_test_CFLAGS=${CFLAGS+set}
3200ac_save_CFLAGS=$CFLAGS 2462ac_save_CFLAGS=$CFLAGS
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2463{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3202$as_echo_n "checking whether $CC accepts -g... " >&6; } 2464echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3203if ${ac_cv_prog_cc_g+:} false; then : 2465if test "${ac_cv_prog_cc_g+set}" = set; then
3204 $as_echo_n "(cached) " >&6 2466 echo $ECHO_N "(cached) $ECHO_C" >&6
3205else 2467else
3206 ac_save_c_werror_flag=$ac_c_werror_flag 2468 ac_save_c_werror_flag=$ac_c_werror_flag
3207 ac_c_werror_flag=yes 2469 ac_c_werror_flag=yes
3208 ac_cv_prog_cc_g=no 2470 ac_cv_prog_cc_g=no
3209 CFLAGS="-g" 2471 CFLAGS="-g"
3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2472 cat >conftest.$ac_ext <<_ACEOF
2473/* confdefs.h. */
2474_ACEOF
2475cat confdefs.h >>conftest.$ac_ext
2476cat >>conftest.$ac_ext <<_ACEOF
3211/* end confdefs.h. */ 2477/* end confdefs.h. */
3212 2478
3213int 2479int
@@ -3218,11 +2484,34 @@ main ()
3218 return 0; 2484 return 0;
3219} 2485}
3220_ACEOF 2486_ACEOF
3221if ac_fn_c_try_compile "$LINENO"; then : 2487rm -f conftest.$ac_objext
2488if { (ac_try="$ac_compile"
2489case "(($ac_try" in
2490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2491 *) ac_try_echo=$ac_try;;
2492esac
2493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2494 (eval "$ac_compile") 2>conftest.er1
2495 ac_status=$?
2496 grep -v '^ *+' conftest.er1 >conftest.err
2497 rm -f conftest.er1
2498 cat conftest.err >&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); } && {
2501 test -z "$ac_c_werror_flag" ||
2502 test ! -s conftest.err
2503 } && test -s conftest.$ac_objext; then
3222 ac_cv_prog_cc_g=yes 2504 ac_cv_prog_cc_g=yes
3223else 2505else
3224 CFLAGS="" 2506 echo "$as_me: failed program was:" >&5
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2507sed 's/^/| /' conftest.$ac_ext >&5
2508
2509 CFLAGS=""
2510 cat >conftest.$ac_ext <<_ACEOF
2511/* confdefs.h. */
2512_ACEOF
2513cat confdefs.h >>conftest.$ac_ext
2514cat >>conftest.$ac_ext <<_ACEOF
3226/* end confdefs.h. */ 2515/* end confdefs.h. */
3227 2516
3228int 2517int
@@ -3233,12 +2522,35 @@ main ()
3233 return 0; 2522 return 0;
3234} 2523}
3235_ACEOF 2524_ACEOF
3236if ac_fn_c_try_compile "$LINENO"; then : 2525rm -f conftest.$ac_objext
3237 2526if { (ac_try="$ac_compile"
2527case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2530esac
2531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532 (eval "$ac_compile") 2>conftest.er1
2533 ac_status=$?
2534 grep -v '^ *+' conftest.er1 >conftest.err
2535 rm -f conftest.er1
2536 cat conftest.err >&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); } && {
2539 test -z "$ac_c_werror_flag" ||
2540 test ! -s conftest.err
2541 } && test -s conftest.$ac_objext; then
2542 :
3238else 2543else
3239 ac_c_werror_flag=$ac_save_c_werror_flag 2544 echo "$as_me: failed program was:" >&5
2545sed 's/^/| /' conftest.$ac_ext >&5
2546
2547 ac_c_werror_flag=$ac_save_c_werror_flag
3240 CFLAGS="-g" 2548 CFLAGS="-g"
3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2549 cat >conftest.$ac_ext <<_ACEOF
2550/* confdefs.h. */
2551_ACEOF
2552cat confdefs.h >>conftest.$ac_ext
2553cat >>conftest.$ac_ext <<_ACEOF
3242/* end confdefs.h. */ 2554/* end confdefs.h. */
3243 2555
3244int 2556int
@@ -3249,18 +2561,42 @@ main ()
3249 return 0; 2561 return 0;
3250} 2562}
3251_ACEOF 2563_ACEOF
3252if ac_fn_c_try_compile "$LINENO"; then : 2564rm -f conftest.$ac_objext
2565if { (ac_try="$ac_compile"
2566case "(($ac_try" in
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2569esac
2570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2571 (eval "$ac_compile") 2>conftest.er1
2572 ac_status=$?
2573 grep -v '^ *+' conftest.er1 >conftest.err
2574 rm -f conftest.er1
2575 cat conftest.err >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } && {
2578 test -z "$ac_c_werror_flag" ||
2579 test ! -s conftest.err
2580 } && test -s conftest.$ac_objext; then
3253 ac_cv_prog_cc_g=yes 2581 ac_cv_prog_cc_g=yes
2582else
2583 echo "$as_me: failed program was:" >&5
2584sed 's/^/| /' conftest.$ac_ext >&5
2585
2586
3254fi 2587fi
2588
3255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3256fi 2590fi
2591
3257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3258fi 2593fi
2594
3259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 ac_c_werror_flag=$ac_save_c_werror_flag 2596 ac_c_werror_flag=$ac_save_c_werror_flag
3261fi 2597fi
3262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2598{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3263$as_echo "$ac_cv_prog_cc_g" >&6; } 2599echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3264if test "$ac_test_CFLAGS" = set; then 2600if test "$ac_test_CFLAGS" = set; then
3265 CFLAGS=$ac_save_CFLAGS 2601 CFLAGS=$ac_save_CFLAGS
3266elif test $ac_cv_prog_cc_g = yes; then 2602elif test $ac_cv_prog_cc_g = yes; then
@@ -3276,14 +2612,18 @@ else
3276 CFLAGS= 2612 CFLAGS=
3277 fi 2613 fi
3278fi 2614fi
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2615{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3280$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2616echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3281if ${ac_cv_prog_cc_c89+:} false; then : 2617if test "${ac_cv_prog_cc_c89+set}" = set; then
3282 $as_echo_n "(cached) " >&6 2618 echo $ECHO_N "(cached) $ECHO_C" >&6
3283else 2619else
3284 ac_cv_prog_cc_c89=no 2620 ac_cv_prog_cc_c89=no
3285ac_save_CC=$CC 2621ac_save_CC=$CC
3286cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2622cat >conftest.$ac_ext <<_ACEOF
2623/* confdefs.h. */
2624_ACEOF
2625cat confdefs.h >>conftest.$ac_ext
2626cat >>conftest.$ac_ext <<_ACEOF
3287/* end confdefs.h. */ 2627/* end confdefs.h. */
3288#include <stdarg.h> 2628#include <stdarg.h>
3289#include <stdio.h> 2629#include <stdio.h>
@@ -3340,9 +2680,31 @@ for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3340 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2680 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3341do 2681do
3342 CC="$ac_save_CC $ac_arg" 2682 CC="$ac_save_CC $ac_arg"
3343 if ac_fn_c_try_compile "$LINENO"; then : 2683 rm -f conftest.$ac_objext
2684if { (ac_try="$ac_compile"
2685case "(($ac_try" in
2686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687 *) ac_try_echo=$ac_try;;
2688esac
2689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2690 (eval "$ac_compile") 2>conftest.er1
2691 ac_status=$?
2692 grep -v '^ *+' conftest.er1 >conftest.err
2693 rm -f conftest.er1
2694 cat conftest.err >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); } && {
2697 test -z "$ac_c_werror_flag" ||
2698 test ! -s conftest.err
2699 } && test -s conftest.$ac_objext; then
3344 ac_cv_prog_cc_c89=$ac_arg 2700 ac_cv_prog_cc_c89=$ac_arg
2701else
2702 echo "$as_me: failed program was:" >&5
2703sed 's/^/| /' conftest.$ac_ext >&5
2704
2705
3345fi 2706fi
2707
3346rm -f core conftest.err conftest.$ac_objext 2708rm -f core conftest.err conftest.$ac_objext
3347 test "x$ac_cv_prog_cc_c89" != "xno" && break 2709 test "x$ac_cv_prog_cc_c89" != "xno" && break
3348done 2710done
@@ -3353,19 +2715,17 @@ fi
3353# AC_CACHE_VAL 2715# AC_CACHE_VAL
3354case "x$ac_cv_prog_cc_c89" in 2716case "x$ac_cv_prog_cc_c89" in
3355 x) 2717 x)
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 2718 { echo "$as_me:$LINENO: result: none needed" >&5
3357$as_echo "none needed" >&6; } ;; 2719echo "${ECHO_T}none needed" >&6; } ;;
3358 xno) 2720 xno)
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 2721 { echo "$as_me:$LINENO: result: unsupported" >&5
3360$as_echo "unsupported" >&6; } ;; 2722echo "${ECHO_T}unsupported" >&6; } ;;
3361 *) 2723 *)
3362 CC="$CC $ac_cv_prog_cc_c89" 2724 CC="$CC $ac_cv_prog_cc_c89"
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 2725 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3364$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 2726echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3365esac 2727esac
3366if test "x$ac_cv_prog_cc_c89" != xno; then :
3367 2728
3368fi
3369 2729
3370ac_ext=c 2730ac_ext=c
3371ac_cpp='$CPP $CPPFLAGS' 2731ac_cpp='$CPP $CPPFLAGS'
@@ -3390,7 +2750,9 @@ for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3390 fi 2750 fi
3391done 2751done
3392if test -z "$ac_aux_dir"; then 2752if test -z "$ac_aux_dir"; then
3393 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2753 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2754echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2755 { (exit 1); exit 1; }; }
3394fi 2756fi
3395 2757
3396# These three variables are undocumented and unsupported, 2758# These three variables are undocumented and unsupported,
@@ -3404,27 +2766,35 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3404 2766
3405# Make sure we can run config.sub. 2767# Make sure we can run config.sub.
3406$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2768$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3407 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2769 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2770echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2771 { (exit 1); exit 1; }; }
3408 2772
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2773{ echo "$as_me:$LINENO: checking build system type" >&5
3410$as_echo_n "checking build system type... " >&6; } 2774echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3411if ${ac_cv_build+:} false; then : 2775if test "${ac_cv_build+set}" = set; then
3412 $as_echo_n "(cached) " >&6 2776 echo $ECHO_N "(cached) $ECHO_C" >&6
3413else 2777else
3414 ac_build_alias=$build_alias 2778 ac_build_alias=$build_alias
3415test "x$ac_build_alias" = x && 2779test "x$ac_build_alias" = x &&
3416 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2780 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3417test "x$ac_build_alias" = x && 2781test "x$ac_build_alias" = x &&
3418 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2782 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2783echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2784 { (exit 1); exit 1; }; }
3419ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2785ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3420 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2786 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2787echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2788 { (exit 1); exit 1; }; }
3421 2789
3422fi 2790fi
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2791{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3424$as_echo "$ac_cv_build" >&6; } 2792echo "${ECHO_T}$ac_cv_build" >&6; }
3425case $ac_cv_build in 2793case $ac_cv_build in
3426*-*-*) ;; 2794*-*-*) ;;
3427*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2795*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2796echo "$as_me: error: invalid value of canonical build" >&2;}
2797 { (exit 1); exit 1; }; };;
3428esac 2798esac
3429build=$ac_cv_build 2799build=$ac_cv_build
3430ac_save_IFS=$IFS; IFS='-' 2800ac_save_IFS=$IFS; IFS='-'
@@ -3440,24 +2810,28 @@ IFS=$ac_save_IFS
3440case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2810case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3441 2811
3442 2812
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2813{ echo "$as_me:$LINENO: checking host system type" >&5
3444$as_echo_n "checking host system type... " >&6; } 2814echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3445if ${ac_cv_host+:} false; then : 2815if test "${ac_cv_host+set}" = set; then
3446 $as_echo_n "(cached) " >&6 2816 echo $ECHO_N "(cached) $ECHO_C" >&6
3447else 2817else
3448 if test "x$host_alias" = x; then 2818 if test "x$host_alias" = x; then
3449 ac_cv_host=$ac_cv_build 2819 ac_cv_host=$ac_cv_build
3450else 2820else
3451 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2821 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3452 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2822 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2823echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2824 { (exit 1); exit 1; }; }
3453fi 2825fi
3454 2826
3455fi 2827fi
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2828{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3457$as_echo "$ac_cv_host" >&6; } 2829echo "${ECHO_T}$ac_cv_host" >&6; }
3458case $ac_cv_host in 2830case $ac_cv_host in
3459*-*-*) ;; 2831*-*-*) ;;
3460*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2832*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2833echo "$as_me: error: invalid value of canonical host" >&2;}
2834 { (exit 1); exit 1; }; };;
3461esac 2835esac
3462host=$ac_cv_host 2836host=$ac_cv_host
3463ac_save_IFS=$IFS; IFS='-' 2837ac_save_IFS=$IFS; IFS='-'
@@ -3479,15 +2853,15 @@ ac_cpp='$CPP $CPPFLAGS'
3479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481ac_compiler_gnu=$ac_cv_c_compiler_gnu 2855ac_compiler_gnu=$ac_cv_c_compiler_gnu
3482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 2856{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3483$as_echo_n "checking how to run the C preprocessor... " >&6; } 2857echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3484# On Suns, sometimes $CPP names a directory. 2858# On Suns, sometimes $CPP names a directory.
3485if test -n "$CPP" && test -d "$CPP"; then 2859if test -n "$CPP" && test -d "$CPP"; then
3486 CPP= 2860 CPP=
3487fi 2861fi
3488if test -z "$CPP"; then 2862if test -z "$CPP"; then
3489 if ${ac_cv_prog_CPP+:} false; then : 2863 if test "${ac_cv_prog_CPP+set}" = set; then
3490 $as_echo_n "(cached) " >&6 2864 echo $ECHO_N "(cached) $ECHO_C" >&6
3491else 2865else
3492 # Double quotes because CPP needs to be expanded 2866 # Double quotes because CPP needs to be expanded
3493 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2867 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
@@ -3501,7 +2875,11 @@ do
3501 # <limits.h> exists even on freestanding compilers. 2875 # <limits.h> exists even on freestanding compilers.
3502 # On the NeXT, cc -E runs the code through the compiler's parser, 2876 # On the NeXT, cc -E runs the code through the compiler's parser,
3503 # not just through cpp. "Syntax error" is here to catch this case. 2877 # not just through cpp. "Syntax error" is here to catch this case.
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2878 cat >conftest.$ac_ext <<_ACEOF
2879/* confdefs.h. */
2880_ACEOF
2881cat confdefs.h >>conftest.$ac_ext
2882cat >>conftest.$ac_ext <<_ACEOF
3505/* end confdefs.h. */ 2883/* end confdefs.h. */
3506#ifdef __STDC__ 2884#ifdef __STDC__
3507# include <limits.h> 2885# include <limits.h>
@@ -3510,34 +2888,76 @@ do
3510#endif 2888#endif
3511 Syntax error 2889 Syntax error
3512_ACEOF 2890_ACEOF
3513if ac_fn_c_try_cpp "$LINENO"; then : 2891if { (ac_try="$ac_cpp conftest.$ac_ext"
3514 2892case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2895esac
2896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2898 ac_status=$?
2899 grep -v '^ *+' conftest.er1 >conftest.err
2900 rm -f conftest.er1
2901 cat conftest.err >&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); } >/dev/null && {
2904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2905 test ! -s conftest.err
2906 }; then
2907 :
3515else 2908else
2909 echo "$as_me: failed program was:" >&5
2910sed 's/^/| /' conftest.$ac_ext >&5
2911
3516 # Broken: fails on valid input. 2912 # Broken: fails on valid input.
3517continue 2913continue
3518fi 2914fi
3519rm -f conftest.err conftest.i conftest.$ac_ext 2915
2916rm -f conftest.err conftest.$ac_ext
3520 2917
3521 # OK, works on sane cases. Now check whether nonexistent headers 2918 # OK, works on sane cases. Now check whether nonexistent headers
3522 # can be detected and how. 2919 # can be detected and how.
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2920 cat >conftest.$ac_ext <<_ACEOF
2921/* confdefs.h. */
2922_ACEOF
2923cat confdefs.h >>conftest.$ac_ext
2924cat >>conftest.$ac_ext <<_ACEOF
3524/* end confdefs.h. */ 2925/* end confdefs.h. */
3525#include <ac_nonexistent.h> 2926#include <ac_nonexistent.h>
3526_ACEOF 2927_ACEOF
3527if ac_fn_c_try_cpp "$LINENO"; then : 2928if { (ac_try="$ac_cpp conftest.$ac_ext"
2929case "(($ac_try" in
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2932esac
2933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2935 ac_status=$?
2936 grep -v '^ *+' conftest.er1 >conftest.err
2937 rm -f conftest.er1
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } >/dev/null && {
2941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2942 test ! -s conftest.err
2943 }; then
3528 # Broken: success on invalid input. 2944 # Broken: success on invalid input.
3529continue 2945continue
3530else 2946else
2947 echo "$as_me: failed program was:" >&5
2948sed 's/^/| /' conftest.$ac_ext >&5
2949
3531 # Passes both tests. 2950 # Passes both tests.
3532ac_preproc_ok=: 2951ac_preproc_ok=:
3533break 2952break
3534fi 2953fi
3535rm -f conftest.err conftest.i conftest.$ac_ext 2954
2955rm -f conftest.err conftest.$ac_ext
3536 2956
3537done 2957done
3538# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2958# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3539rm -f conftest.i conftest.err conftest.$ac_ext 2959rm -f conftest.err conftest.$ac_ext
3540if $ac_preproc_ok; then : 2960if $ac_preproc_ok; then
3541 break 2961 break
3542fi 2962fi
3543 2963
@@ -3549,8 +2969,8 @@ fi
3549else 2969else
3550 ac_cv_prog_CPP=$CPP 2970 ac_cv_prog_CPP=$CPP
3551fi 2971fi
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 2972{ echo "$as_me:$LINENO: result: $CPP" >&5
3553$as_echo "$CPP" >&6; } 2973echo "${ECHO_T}$CPP" >&6; }
3554ac_preproc_ok=false 2974ac_preproc_ok=false
3555for ac_c_preproc_warn_flag in '' yes 2975for ac_c_preproc_warn_flag in '' yes
3556do 2976do
@@ -3560,7 +2980,11 @@ do
3560 # <limits.h> exists even on freestanding compilers. 2980 # <limits.h> exists even on freestanding compilers.
3561 # On the NeXT, cc -E runs the code through the compiler's parser, 2981 # On the NeXT, cc -E runs the code through the compiler's parser,
3562 # not just through cpp. "Syntax error" is here to catch this case. 2982 # not just through cpp. "Syntax error" is here to catch this case.
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2983 cat >conftest.$ac_ext <<_ACEOF
2984/* confdefs.h. */
2985_ACEOF
2986cat confdefs.h >>conftest.$ac_ext
2987cat >>conftest.$ac_ext <<_ACEOF
3564/* end confdefs.h. */ 2988/* end confdefs.h. */
3565#ifdef __STDC__ 2989#ifdef __STDC__
3566# include <limits.h> 2990# include <limits.h>
@@ -3569,40 +2993,83 @@ do
3569#endif 2993#endif
3570 Syntax error 2994 Syntax error
3571_ACEOF 2995_ACEOF
3572if ac_fn_c_try_cpp "$LINENO"; then : 2996if { (ac_try="$ac_cpp conftest.$ac_ext"
3573 2997case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000esac
3001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3003 ac_status=$?
3004 grep -v '^ *+' conftest.er1 >conftest.err
3005 rm -f conftest.er1
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } >/dev/null && {
3009 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3010 test ! -s conftest.err
3011 }; then
3012 :
3574else 3013else
3014 echo "$as_me: failed program was:" >&5
3015sed 's/^/| /' conftest.$ac_ext >&5
3016
3575 # Broken: fails on valid input. 3017 # Broken: fails on valid input.
3576continue 3018continue
3577fi 3019fi
3578rm -f conftest.err conftest.i conftest.$ac_ext 3020
3021rm -f conftest.err conftest.$ac_ext
3579 3022
3580 # OK, works on sane cases. Now check whether nonexistent headers 3023 # OK, works on sane cases. Now check whether nonexistent headers
3581 # can be detected and how. 3024 # can be detected and how.
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3025 cat >conftest.$ac_ext <<_ACEOF
3026/* confdefs.h. */
3027_ACEOF
3028cat confdefs.h >>conftest.$ac_ext
3029cat >>conftest.$ac_ext <<_ACEOF
3583/* end confdefs.h. */ 3030/* end confdefs.h. */
3584#include <ac_nonexistent.h> 3031#include <ac_nonexistent.h>
3585_ACEOF 3032_ACEOF
3586if ac_fn_c_try_cpp "$LINENO"; then : 3033if { (ac_try="$ac_cpp conftest.$ac_ext"
3034case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3037esac
3038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3040 ac_status=$?
3041 grep -v '^ *+' conftest.er1 >conftest.err
3042 rm -f conftest.er1
3043 cat conftest.err >&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); } >/dev/null && {
3046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3047 test ! -s conftest.err
3048 }; then
3587 # Broken: success on invalid input. 3049 # Broken: success on invalid input.
3588continue 3050continue
3589else 3051else
3052 echo "$as_me: failed program was:" >&5
3053sed 's/^/| /' conftest.$ac_ext >&5
3054
3590 # Passes both tests. 3055 # Passes both tests.
3591ac_preproc_ok=: 3056ac_preproc_ok=:
3592break 3057break
3593fi 3058fi
3594rm -f conftest.err conftest.i conftest.$ac_ext 3059
3060rm -f conftest.err conftest.$ac_ext
3595 3061
3596done 3062done
3597# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3063# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3598rm -f conftest.i conftest.err conftest.$ac_ext 3064rm -f conftest.err conftest.$ac_ext
3599if $ac_preproc_ok; then : 3065if $ac_preproc_ok; then
3600 3066 :
3601else 3067else
3602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3068 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3069See \`config.log' for more details." >&5
3604as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3070echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3605See \`config.log' for more details" "$LINENO" 5; } 3071See \`config.log' for more details." >&2;}
3072 { (exit 1); exit 1; }; }
3606fi 3073fi
3607 3074
3608ac_ext=c 3075ac_ext=c
@@ -3612,40 +3079,45 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
3612ac_compiler_gnu=$ac_cv_c_compiler_gnu 3079ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613 3080
3614 3081
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3082{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3616$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3083echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3617if ${ac_cv_path_GREP+:} false; then : 3084if test "${ac_cv_path_GREP+set}" = set; then
3618 $as_echo_n "(cached) " >&6 3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3086else
3087 # Extract the first word of "grep ggrep" to use in msg output
3088if test -z "$GREP"; then
3089set dummy grep ggrep; ac_prog_name=$2
3090if test "${ac_cv_path_GREP+set}" = set; then
3091 echo $ECHO_N "(cached) $ECHO_C" >&6
3619else 3092else
3620 if test -z "$GREP"; then
3621 ac_path_GREP_found=false 3093 ac_path_GREP_found=false
3622 # Loop through the user's path and test for each of PROGNAME-LIST 3094# Loop through the user's path and test for each of PROGNAME-LIST
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3096for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3625do 3097do
3626 IFS=$as_save_IFS 3098 IFS=$as_save_IFS
3627 test -z "$as_dir" && as_dir=. 3099 test -z "$as_dir" && as_dir=.
3628 for ac_prog in grep ggrep; do 3100 for ac_prog in grep ggrep; do
3629 for ac_exec_ext in '' $ac_executable_extensions; do 3101 for ac_exec_ext in '' $ac_executable_extensions; do
3630 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3102 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3631 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3103 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3632# Check for GNU ac_path_GREP and select it if it is found. 3104 # Check for GNU ac_path_GREP and select it if it is found.
3633 # Check for GNU $ac_path_GREP 3105 # Check for GNU $ac_path_GREP
3634case `"$ac_path_GREP" --version 2>&1` in 3106case `"$ac_path_GREP" --version 2>&1` in
3635*GNU*) 3107*GNU*)
3636 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3108 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3637*) 3109*)
3638 ac_count=0 3110 ac_count=0
3639 $as_echo_n 0123456789 >"conftest.in" 3111 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3640 while : 3112 while :
3641 do 3113 do
3642 cat "conftest.in" "conftest.in" >"conftest.tmp" 3114 cat "conftest.in" "conftest.in" >"conftest.tmp"
3643 mv "conftest.tmp" "conftest.in" 3115 mv "conftest.tmp" "conftest.in"
3644 cp "conftest.in" "conftest.nl" 3116 cp "conftest.in" "conftest.nl"
3645 $as_echo 'GREP' >> "conftest.nl" 3117 echo 'GREP' >> "conftest.nl"
3646 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3118 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3647 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3119 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3648 as_fn_arith $ac_count + 1 && ac_count=$as_val 3120 ac_count=`expr $ac_count + 1`
3649 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3121 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3650 # Best one so far, save it but keep looking for a better one 3122 # Best one so far, save it but keep looking for a better one
3651 ac_cv_path_GREP="$ac_path_GREP" 3123 ac_cv_path_GREP="$ac_path_GREP"
@@ -3657,61 +3129,77 @@ case `"$ac_path_GREP" --version 2>&1` in
3657 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3129 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3658esac 3130esac
3659 3131
3660 $ac_path_GREP_found && break 3 3132
3661 done 3133 $ac_path_GREP_found && break 3
3662 done
3663 done 3134 done
3135done
3136
3137done
3664IFS=$as_save_IFS 3138IFS=$as_save_IFS
3665 if test -z "$ac_cv_path_GREP"; then 3139
3666 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3140
3667 fi 3141fi
3142
3143GREP="$ac_cv_path_GREP"
3144if test -z "$GREP"; then
3145 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3146echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3147 { (exit 1); exit 1; }; }
3148fi
3149
3668else 3150else
3669 ac_cv_path_GREP=$GREP 3151 ac_cv_path_GREP=$GREP
3670fi 3152fi
3671 3153
3154
3672fi 3155fi
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3156{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3674$as_echo "$ac_cv_path_GREP" >&6; } 3157echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3675 GREP="$ac_cv_path_GREP" 3158 GREP="$ac_cv_path_GREP"
3676 3159
3677 3160
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3161{ echo "$as_me:$LINENO: checking for egrep" >&5
3679$as_echo_n "checking for egrep... " >&6; } 3162echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3680if ${ac_cv_path_EGREP+:} false; then : 3163if test "${ac_cv_path_EGREP+set}" = set; then
3681 $as_echo_n "(cached) " >&6 3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3682else 3165else
3683 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3166 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3684 then ac_cv_path_EGREP="$GREP -E" 3167 then ac_cv_path_EGREP="$GREP -E"
3685 else 3168 else
3686 if test -z "$EGREP"; then 3169 # Extract the first word of "egrep" to use in msg output
3170if test -z "$EGREP"; then
3171set dummy egrep; ac_prog_name=$2
3172if test "${ac_cv_path_EGREP+set}" = set; then
3173 echo $ECHO_N "(cached) $ECHO_C" >&6
3174else
3687 ac_path_EGREP_found=false 3175 ac_path_EGREP_found=false
3688 # Loop through the user's path and test for each of PROGNAME-LIST 3176# Loop through the user's path and test for each of PROGNAME-LIST
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3178for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3691do 3179do
3692 IFS=$as_save_IFS 3180 IFS=$as_save_IFS
3693 test -z "$as_dir" && as_dir=. 3181 test -z "$as_dir" && as_dir=.
3694 for ac_prog in egrep; do 3182 for ac_prog in egrep; do
3695 for ac_exec_ext in '' $ac_executable_extensions; do 3183 for ac_exec_ext in '' $ac_executable_extensions; do
3696 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3184 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3697 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3185 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3698# Check for GNU ac_path_EGREP and select it if it is found. 3186 # Check for GNU ac_path_EGREP and select it if it is found.
3699 # Check for GNU $ac_path_EGREP 3187 # Check for GNU $ac_path_EGREP
3700case `"$ac_path_EGREP" --version 2>&1` in 3188case `"$ac_path_EGREP" --version 2>&1` in
3701*GNU*) 3189*GNU*)
3702 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3190 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3703*) 3191*)
3704 ac_count=0 3192 ac_count=0
3705 $as_echo_n 0123456789 >"conftest.in" 3193 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3706 while : 3194 while :
3707 do 3195 do
3708 cat "conftest.in" "conftest.in" >"conftest.tmp" 3196 cat "conftest.in" "conftest.in" >"conftest.tmp"
3709 mv "conftest.tmp" "conftest.in" 3197 mv "conftest.tmp" "conftest.in"
3710 cp "conftest.in" "conftest.nl" 3198 cp "conftest.in" "conftest.nl"
3711 $as_echo 'EGREP' >> "conftest.nl" 3199 echo 'EGREP' >> "conftest.nl"
3712 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3200 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3713 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3201 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3714 as_fn_arith $ac_count + 1 && ac_count=$as_val 3202 ac_count=`expr $ac_count + 1`
3715 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3203 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3716 # Best one so far, save it but keep looking for a better one 3204 # Best one so far, save it but keep looking for a better one
3717 ac_cv_path_EGREP="$ac_path_EGREP" 3205 ac_cv_path_EGREP="$ac_path_EGREP"
@@ -3723,31 +3211,46 @@ case `"$ac_path_EGREP" --version 2>&1` in
3723 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3211 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3724esac 3212esac
3725 3213
3726 $ac_path_EGREP_found && break 3 3214
3727 done 3215 $ac_path_EGREP_found && break 3
3728 done
3729 done 3216 done
3217done
3218
3219done
3730IFS=$as_save_IFS 3220IFS=$as_save_IFS
3731 if test -z "$ac_cv_path_EGREP"; then 3221
3732 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3222
3733 fi 3223fi
3224
3225EGREP="$ac_cv_path_EGREP"
3226if test -z "$EGREP"; then
3227 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3228echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3229 { (exit 1); exit 1; }; }
3230fi
3231
3734else 3232else
3735 ac_cv_path_EGREP=$EGREP 3233 ac_cv_path_EGREP=$EGREP
3736fi 3234fi
3737 3235
3236
3738 fi 3237 fi
3739fi 3238fi
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3239{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3741$as_echo "$ac_cv_path_EGREP" >&6; } 3240echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3742 EGREP="$ac_cv_path_EGREP" 3241 EGREP="$ac_cv_path_EGREP"
3743 3242
3744 3243
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3244{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3746$as_echo_n "checking for ANSI C header files... " >&6; } 3245echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3747if ${ac_cv_header_stdc+:} false; then : 3246if test "${ac_cv_header_stdc+set}" = set; then
3748 $as_echo_n "(cached) " >&6 3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3749else 3248else
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3249 cat >conftest.$ac_ext <<_ACEOF
3250/* confdefs.h. */
3251_ACEOF
3252cat confdefs.h >>conftest.$ac_ext
3253cat >>conftest.$ac_ext <<_ACEOF
3751/* end confdefs.h. */ 3254/* end confdefs.h. */
3752#include <stdlib.h> 3255#include <stdlib.h>
3753#include <stdarg.h> 3256#include <stdarg.h>
@@ -3762,23 +3265,47 @@ main ()
3762 return 0; 3265 return 0;
3763} 3266}
3764_ACEOF 3267_ACEOF
3765if ac_fn_c_try_compile "$LINENO"; then : 3268rm -f conftest.$ac_objext
3269if { (ac_try="$ac_compile"
3270case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273esac
3274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275 (eval "$ac_compile") 2>conftest.er1
3276 ac_status=$?
3277 grep -v '^ *+' conftest.er1 >conftest.err
3278 rm -f conftest.er1
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } && {
3282 test -z "$ac_c_werror_flag" ||
3283 test ! -s conftest.err
3284 } && test -s conftest.$ac_objext; then
3766 ac_cv_header_stdc=yes 3285 ac_cv_header_stdc=yes
3767else 3286else
3768 ac_cv_header_stdc=no 3287 echo "$as_me: failed program was:" >&5
3288sed 's/^/| /' conftest.$ac_ext >&5
3289
3290 ac_cv_header_stdc=no
3769fi 3291fi
3292
3770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3771 3294
3772if test $ac_cv_header_stdc = yes; then 3295if test $ac_cv_header_stdc = yes; then
3773 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3296 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3297 cat >conftest.$ac_ext <<_ACEOF
3298/* confdefs.h. */
3299_ACEOF
3300cat confdefs.h >>conftest.$ac_ext
3301cat >>conftest.$ac_ext <<_ACEOF
3775/* end confdefs.h. */ 3302/* end confdefs.h. */
3776#include <string.h> 3303#include <string.h>
3777 3304
3778_ACEOF 3305_ACEOF
3779if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3780 $EGREP "memchr" >/dev/null 2>&1; then : 3307 $EGREP "memchr" >/dev/null 2>&1; then
3781 3308 :
3782else 3309else
3783 ac_cv_header_stdc=no 3310 ac_cv_header_stdc=no
3784fi 3311fi
@@ -3788,14 +3315,18 @@ fi
3788 3315
3789if test $ac_cv_header_stdc = yes; then 3316if test $ac_cv_header_stdc = yes; then
3790 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3317 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3318 cat >conftest.$ac_ext <<_ACEOF
3319/* confdefs.h. */
3320_ACEOF
3321cat confdefs.h >>conftest.$ac_ext
3322cat >>conftest.$ac_ext <<_ACEOF
3792/* end confdefs.h. */ 3323/* end confdefs.h. */
3793#include <stdlib.h> 3324#include <stdlib.h>
3794 3325
3795_ACEOF 3326_ACEOF
3796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3797 $EGREP "free" >/dev/null 2>&1; then : 3328 $EGREP "free" >/dev/null 2>&1; then
3798 3329 :
3799else 3330else
3800 ac_cv_header_stdc=no 3331 ac_cv_header_stdc=no
3801fi 3332fi
@@ -3805,10 +3336,14 @@ fi
3805 3336
3806if test $ac_cv_header_stdc = yes; then 3337if test $ac_cv_header_stdc = yes; then
3807 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3338 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3808 if test "$cross_compiling" = yes; then : 3339 if test "$cross_compiling" = yes; then
3809 : 3340 :
3810else 3341else
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3342 cat >conftest.$ac_ext <<_ACEOF
3343/* confdefs.h. */
3344_ACEOF
3345cat confdefs.h >>conftest.$ac_ext
3346cat >>conftest.$ac_ext <<_ACEOF
3812/* end confdefs.h. */ 3347/* end confdefs.h. */
3813#include <ctype.h> 3348#include <ctype.h>
3814#include <stdlib.h> 3349#include <stdlib.h>
@@ -3835,35 +3370,113 @@ main ()
3835 return 0; 3370 return 0;
3836} 3371}
3837_ACEOF 3372_ACEOF
3838if ac_fn_c_try_run "$LINENO"; then : 3373rm -f conftest$ac_exeext
3839 3374if { (ac_try="$ac_link"
3375case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378esac
3379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_link") 2>&5
3381 ac_status=$?
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3384 { (case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387esac
3388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389 (eval "$ac_try") 2>&5
3390 ac_status=$?
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; }; then
3393 :
3840else 3394else
3841 ac_cv_header_stdc=no 3395 echo "$as_me: program exited with status $ac_status" >&5
3396echo "$as_me: failed program was:" >&5
3397sed 's/^/| /' conftest.$ac_ext >&5
3398
3399( exit $ac_status )
3400ac_cv_header_stdc=no
3842fi 3401fi
3843rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3402rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3844 conftest.$ac_objext conftest.beam conftest.$ac_ext
3845fi 3403fi
3846 3404
3405
3847fi 3406fi
3848fi 3407fi
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3408{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3850$as_echo "$ac_cv_header_stdc" >&6; } 3409echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3851if test $ac_cv_header_stdc = yes; then 3410if test $ac_cv_header_stdc = yes; then
3852 3411
3853$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3412cat >>confdefs.h <<\_ACEOF
3413#define STDC_HEADERS 1
3414_ACEOF
3854 3415
3855fi 3416fi
3856 3417
3857# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3418# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3419
3420
3421
3422
3423
3424
3425
3426
3427
3858for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3428for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3859 inttypes.h stdint.h unistd.h 3429 inttypes.h stdint.h unistd.h
3860do : 3430do
3861 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3431as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3862ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3432{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3863" 3433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3864if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3434if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3436else
3437 cat >conftest.$ac_ext <<_ACEOF
3438/* confdefs.h. */
3439_ACEOF
3440cat confdefs.h >>conftest.$ac_ext
3441cat >>conftest.$ac_ext <<_ACEOF
3442/* end confdefs.h. */
3443$ac_includes_default
3444
3445#include <$ac_header>
3446_ACEOF
3447rm -f conftest.$ac_objext
3448if { (ac_try="$ac_compile"
3449case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452esac
3453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454 (eval "$ac_compile") 2>conftest.er1
3455 ac_status=$?
3456 grep -v '^ *+' conftest.er1 >conftest.err
3457 rm -f conftest.er1
3458 cat conftest.err >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } && {
3461 test -z "$ac_c_werror_flag" ||
3462 test ! -s conftest.err
3463 } && test -s conftest.$ac_objext; then
3464 eval "$as_ac_Header=yes"
3465else
3466 echo "$as_me: failed program was:" >&5
3467sed 's/^/| /' conftest.$ac_ext >&5
3468
3469 eval "$as_ac_Header=no"
3470fi
3471
3472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3473fi
3474ac_res=`eval echo '${'$as_ac_Header'}'`
3475 { echo "$as_me:$LINENO: result: $ac_res" >&5
3476echo "${ECHO_T}$ac_res" >&6; }
3477if test `eval echo '${'$as_ac_Header'}'` = yes; then
3865 cat >>confdefs.h <<_ACEOF 3478 cat >>confdefs.h <<_ACEOF
3866#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3479#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3867_ACEOF 3480_ACEOF
3868 3481
3869fi 3482fi
@@ -3871,229 +3484,241 @@ fi
3871done 3484done
3872 3485
3873 3486
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 3487{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3875$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 3488echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3876if ${ac_cv_c_bigendian+:} false; then : 3489if test "${ac_cv_c_bigendian+set}" = set; then
3877 $as_echo_n "(cached) " >&6 3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3878else 3491else
3879 ac_cv_c_bigendian=unknown 3492 # See if sys/param.h defines the BYTE_ORDER macro.
3880 # See if we're dealing with a universal compiler. 3493cat >conftest.$ac_ext <<_ACEOF
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3494/* confdefs.h. */
3882/* end confdefs.h. */ 3495_ACEOF
3883#ifndef __APPLE_CC__ 3496cat confdefs.h >>conftest.$ac_ext
3884 not a universal capable compiler 3497cat >>conftest.$ac_ext <<_ACEOF
3885 #endif
3886 typedef int dummy;
3887
3888_ACEOF
3889if ac_fn_c_try_compile "$LINENO"; then :
3890
3891 # Check for potential -arch flags. It is not universal unless
3892 # there are at least two -arch flags with different values.
3893 ac_arch=
3894 ac_prev=
3895 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3896 if test -n "$ac_prev"; then
3897 case $ac_word in
3898 i?86 | x86_64 | ppc | ppc64)
3899 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3900 ac_arch=$ac_word
3901 else
3902 ac_cv_c_bigendian=universal
3903 break
3904 fi
3905 ;;
3906 esac
3907 ac_prev=
3908 elif test "x$ac_word" = "x-arch"; then
3909 ac_prev=arch
3910 fi
3911 done
3912fi
3913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3914 if test $ac_cv_c_bigendian = unknown; then
3915 # See if sys/param.h defines the BYTE_ORDER macro.
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917/* end confdefs.h. */ 3498/* end confdefs.h. */
3918#include <sys/types.h> 3499#include <sys/types.h>
3919 #include <sys/param.h> 3500#include <sys/param.h>
3920 3501
3921int 3502int
3922main () 3503main ()
3923{ 3504{
3924#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 3505#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3925 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 3506 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3926 && LITTLE_ENDIAN) 3507 bogus endian macros
3927 bogus endian macros 3508#endif
3928 #endif
3929 3509
3930 ; 3510 ;
3931 return 0; 3511 return 0;
3932} 3512}
3933_ACEOF 3513_ACEOF
3934if ac_fn_c_try_compile "$LINENO"; then : 3514rm -f conftest.$ac_objext
3515if { (ac_try="$ac_compile"
3516case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519esac
3520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_compile") 2>conftest.er1
3522 ac_status=$?
3523 grep -v '^ *+' conftest.er1 >conftest.err
3524 rm -f conftest.er1
3525 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } && {
3528 test -z "$ac_c_werror_flag" ||
3529 test ! -s conftest.err
3530 } && test -s conftest.$ac_objext; then
3935 # It does; now see whether it defined to BIG_ENDIAN or not. 3531 # It does; now see whether it defined to BIG_ENDIAN or not.
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3532cat >conftest.$ac_ext <<_ACEOF
3533/* confdefs.h. */
3534_ACEOF
3535cat confdefs.h >>conftest.$ac_ext
3536cat >>conftest.$ac_ext <<_ACEOF
3937/* end confdefs.h. */ 3537/* end confdefs.h. */
3938#include <sys/types.h> 3538#include <sys/types.h>
3939 #include <sys/param.h> 3539#include <sys/param.h>
3940 3540
3941int 3541int
3942main () 3542main ()
3943{ 3543{
3944#if BYTE_ORDER != BIG_ENDIAN 3544#if BYTE_ORDER != BIG_ENDIAN
3945 not big endian 3545 not big endian
3946 #endif 3546#endif
3947 3547
3948 ; 3548 ;
3949 return 0; 3549 return 0;
3950} 3550}
3951_ACEOF 3551_ACEOF
3952if ac_fn_c_try_compile "$LINENO"; then : 3552rm -f conftest.$ac_objext
3553if { (ac_try="$ac_compile"
3554case "(($ac_try" in
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3557esac
3558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3559 (eval "$ac_compile") 2>conftest.er1
3560 ac_status=$?
3561 grep -v '^ *+' conftest.er1 >conftest.err
3562 rm -f conftest.er1
3563 cat conftest.err >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } && {
3566 test -z "$ac_c_werror_flag" ||
3567 test ! -s conftest.err
3568 } && test -s conftest.$ac_objext; then
3953 ac_cv_c_bigendian=yes 3569 ac_cv_c_bigendian=yes
3954else 3570else
3955 ac_cv_c_bigendian=no 3571 echo "$as_me: failed program was:" >&5
3956fi 3572sed 's/^/| /' conftest.$ac_ext >&5
3957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3573
3574 ac_cv_c_bigendian=no
3958fi 3575fi
3959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960 fi
3961 if test $ac_cv_c_bigendian = unknown; then
3962 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964/* end confdefs.h. */
3965#include <limits.h>
3966 3576
3967int 3577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3968main () 3578else
3969{ 3579 echo "$as_me: failed program was:" >&5
3970#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 3580sed 's/^/| /' conftest.$ac_ext >&5
3971 bogus endian macros
3972 #endif
3973 3581
3974 ; 3582 # It does not; compile a test program.
3975 return 0; 3583if test "$cross_compiling" = yes; then
3976} 3584 # try to guess the endianness by grepping values into an object file
3585 ac_cv_c_bigendian=unknown
3586 cat >conftest.$ac_ext <<_ACEOF
3587/* confdefs.h. */
3977_ACEOF 3588_ACEOF
3978if ac_fn_c_try_compile "$LINENO"; then : 3589cat confdefs.h >>conftest.$ac_ext
3979 # It does; now see whether it defined to _BIG_ENDIAN or not. 3590cat >>conftest.$ac_ext <<_ACEOF
3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981/* end confdefs.h. */ 3591/* end confdefs.h. */
3982#include <limits.h> 3592short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3983 3593short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3594void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3595short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3596short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3597void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3984int 3598int
3985main () 3599main ()
3986{ 3600{
3987#ifndef _BIG_ENDIAN 3601 _ascii (); _ebcdic ();
3988 not big endian
3989 #endif
3990
3991 ; 3602 ;
3992 return 0; 3603 return 0;
3993} 3604}
3994_ACEOF 3605_ACEOF
3995if ac_fn_c_try_compile "$LINENO"; then : 3606rm -f conftest.$ac_objext
3607if { (ac_try="$ac_compile"
3608case "(($ac_try" in
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3611esac
3612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613 (eval "$ac_compile") 2>conftest.er1
3614 ac_status=$?
3615 grep -v '^ *+' conftest.er1 >conftest.err
3616 rm -f conftest.er1
3617 cat conftest.err >&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); } && {
3620 test -z "$ac_c_werror_flag" ||
3621 test ! -s conftest.err
3622 } && test -s conftest.$ac_objext; then
3623 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3996 ac_cv_c_bigendian=yes 3624 ac_cv_c_bigendian=yes
3997else
3998 ac_cv_c_bigendian=no
3999fi 3625fi
4000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3626if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3627 if test "$ac_cv_c_bigendian" = unknown; then
3628 ac_cv_c_bigendian=no
3629 else
3630 # finding both strings is unlikely to happen, but who knows?
3631 ac_cv_c_bigendian=unknown
3632 fi
4001fi 3633fi
4002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3634else
4003 fi 3635 echo "$as_me: failed program was:" >&5
4004 if test $ac_cv_c_bigendian = unknown; then 3636sed 's/^/| /' conftest.$ac_ext >&5
4005 # Compile a test program. 3637
4006 if test "$cross_compiling" = yes; then :
4007 # Try to guess by grepping values from an object file.
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009/* end confdefs.h. */
4010short int ascii_mm[] =
4011 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4012 short int ascii_ii[] =
4013 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4014 int use_ascii (int i) {
4015 return ascii_mm[i] + ascii_ii[i];
4016 }
4017 short int ebcdic_ii[] =
4018 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4019 short int ebcdic_mm[] =
4020 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4021 int use_ebcdic (int i) {
4022 return ebcdic_mm[i] + ebcdic_ii[i];
4023 }
4024 extern int foo;
4025 3638
4026int
4027main ()
4028{
4029return use_ascii (foo) == use_ebcdic (foo);
4030 ;
4031 return 0;
4032}
4033_ACEOF
4034if ac_fn_c_try_compile "$LINENO"; then :
4035 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4036 ac_cv_c_bigendian=yes
4037 fi
4038 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4039 if test "$ac_cv_c_bigendian" = unknown; then
4040 ac_cv_c_bigendian=no
4041 else
4042 # finding both strings is unlikely to happen, but who knows?
4043 ac_cv_c_bigendian=unknown
4044 fi
4045 fi
4046fi 3639fi
3640
4047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048else 3642else
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3643 cat >conftest.$ac_ext <<_ACEOF
3644/* confdefs.h. */
3645_ACEOF
3646cat confdefs.h >>conftest.$ac_ext
3647cat >>conftest.$ac_ext <<_ACEOF
4050/* end confdefs.h. */ 3648/* end confdefs.h. */
4051$ac_includes_default 3649$ac_includes_default
4052int 3650int
4053main () 3651main ()
4054{ 3652{
4055 3653
4056 /* Are we little or big endian? From Harbison&Steele. */ 3654 /* Are we little or big endian? From Harbison&Steele. */
4057 union 3655 union
4058 { 3656 {
4059 long int l; 3657 long int l;
4060 char c[sizeof (long int)]; 3658 char c[sizeof (long int)];
4061 } u; 3659 } u;
4062 u.l = 1; 3660 u.l = 1;
4063 return u.c[sizeof (long int) - 1] == 1; 3661 return u.c[sizeof (long int) - 1] == 1;
4064 3662
4065 ; 3663 ;
4066 return 0; 3664 return 0;
4067} 3665}
4068_ACEOF 3666_ACEOF
4069if ac_fn_c_try_run "$LINENO"; then : 3667rm -f conftest$ac_exeext
3668if { (ac_try="$ac_link"
3669case "(($ac_try" in
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3672esac
3673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674 (eval "$ac_link") 2>&5
3675 ac_status=$?
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3678 { (case "(($ac_try" in
3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3681esac
3682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3683 (eval "$ac_try") 2>&5
3684 ac_status=$?
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); }; }; then
4070 ac_cv_c_bigendian=no 3687 ac_cv_c_bigendian=no
4071else 3688else
4072 ac_cv_c_bigendian=yes 3689 echo "$as_me: program exited with status $ac_status" >&5
3690echo "$as_me: failed program was:" >&5
3691sed 's/^/| /' conftest.$ac_ext >&5
3692
3693( exit $ac_status )
3694ac_cv_c_bigendian=yes
4073fi 3695fi
4074rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3696rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4075 conftest.$ac_objext conftest.beam conftest.$ac_ext
4076fi 3697fi
4077 3698
4078 fi 3699
4079fi 3700fi
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4081$as_echo "$ac_cv_c_bigendian" >&6; }
4082 case $ac_cv_c_bigendian in #(
4083 yes)
4084 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4085;; #(
4086 no)
4087 ;; #(
4088 universal)
4089 3701
4090$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 3702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703fi
3704{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3705echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3706case $ac_cv_c_bigendian in
3707 yes)
4091 3708
4092 ;; #( 3709cat >>confdefs.h <<\_ACEOF
4093 *) 3710#define WORDS_BIGENDIAN 1
4094 as_fn_error $? "unknown endianness 3711_ACEOF
4095 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 3712 ;;
4096 esac 3713 no)
3714 ;;
3715 *)
3716 { { echo "$as_me:$LINENO: error: unknown endianness
3717presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3718echo "$as_me: error: unknown endianness
3719presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3720 { (exit 1); exit 1; }; } ;;
3721esac
4097 3722
4098 3723
4099# Checks for programs. 3724# Checks for programs.
@@ -4101,10 +3726,10 @@ for ac_prog in gawk mawk nawk awk
4101do 3726do
4102 # Extract the first word of "$ac_prog", so it can be a program name with args. 3727 # Extract the first word of "$ac_prog", so it can be a program name with args.
4103set dummy $ac_prog; ac_word=$2 3728set dummy $ac_prog; ac_word=$2
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4105$as_echo_n "checking for $ac_word... " >&6; } 3730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4106if ${ac_cv_prog_AWK+:} false; then : 3731if test "${ac_cv_prog_AWK+set}" = set; then
4107 $as_echo_n "(cached) " >&6 3732 echo $ECHO_N "(cached) $ECHO_C" >&6
4108else 3733else
4109 if test -n "$AWK"; then 3734 if test -n "$AWK"; then
4110 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3735 ac_cv_prog_AWK="$AWK" # Let the user override the test.
@@ -4114,25 +3739,25 @@ for as_dir in $PATH
4114do 3739do
4115 IFS=$as_save_IFS 3740 IFS=$as_save_IFS
4116 test -z "$as_dir" && as_dir=. 3741 test -z "$as_dir" && as_dir=.
4117 for ac_exec_ext in '' $ac_executable_extensions; do 3742 for ac_exec_ext in '' $ac_executable_extensions; do
4118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4119 ac_cv_prog_AWK="$ac_prog" 3744 ac_cv_prog_AWK="$ac_prog"
4120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4121 break 2 3746 break 2
4122 fi 3747 fi
4123done 3748done
4124 done 3749done
4125IFS=$as_save_IFS 3750IFS=$as_save_IFS
4126 3751
4127fi 3752fi
4128fi 3753fi
4129AWK=$ac_cv_prog_AWK 3754AWK=$ac_cv_prog_AWK
4130if test -n "$AWK"; then 3755if test -n "$AWK"; then
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3756 { echo "$as_me:$LINENO: result: $AWK" >&5
4132$as_echo "$AWK" >&6; } 3757echo "${ECHO_T}$AWK" >&6; }
4133else 3758else
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3759 { echo "$as_me:$LINENO: result: no" >&5
4135$as_echo "no" >&6; } 3760echo "${ECHO_T}no" >&6; }
4136fi 3761fi
4137 3762
4138 3763
@@ -4144,15 +3769,15 @@ ac_cpp='$CPP $CPPFLAGS'
4144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146ac_compiler_gnu=$ac_cv_c_compiler_gnu 3771ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3772{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4148$as_echo_n "checking how to run the C preprocessor... " >&6; } 3773echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4149# On Suns, sometimes $CPP names a directory. 3774# On Suns, sometimes $CPP names a directory.
4150if test -n "$CPP" && test -d "$CPP"; then 3775if test -n "$CPP" && test -d "$CPP"; then
4151 CPP= 3776 CPP=
4152fi 3777fi
4153if test -z "$CPP"; then 3778if test -z "$CPP"; then
4154 if ${ac_cv_prog_CPP+:} false; then : 3779 if test "${ac_cv_prog_CPP+set}" = set; then
4155 $as_echo_n "(cached) " >&6 3780 echo $ECHO_N "(cached) $ECHO_C" >&6
4156else 3781else
4157 # Double quotes because CPP needs to be expanded 3782 # Double quotes because CPP needs to be expanded
4158 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3783 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
@@ -4166,7 +3791,11 @@ do
4166 # <limits.h> exists even on freestanding compilers. 3791 # <limits.h> exists even on freestanding compilers.
4167 # On the NeXT, cc -E runs the code through the compiler's parser, 3792 # On the NeXT, cc -E runs the code through the compiler's parser,
4168 # not just through cpp. "Syntax error" is here to catch this case. 3793 # not just through cpp. "Syntax error" is here to catch this case.
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3794 cat >conftest.$ac_ext <<_ACEOF
3795/* confdefs.h. */
3796_ACEOF
3797cat confdefs.h >>conftest.$ac_ext
3798cat >>conftest.$ac_ext <<_ACEOF
4170/* end confdefs.h. */ 3799/* end confdefs.h. */
4171#ifdef __STDC__ 3800#ifdef __STDC__
4172# include <limits.h> 3801# include <limits.h>
@@ -4175,34 +3804,76 @@ do
4175#endif 3804#endif
4176 Syntax error 3805 Syntax error
4177_ACEOF 3806_ACEOF
4178if ac_fn_c_try_cpp "$LINENO"; then : 3807if { (ac_try="$ac_cpp conftest.$ac_ext"
4179 3808case "(($ac_try" in
3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810 *) ac_try_echo=$ac_try;;
3811esac
3812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3814 ac_status=$?
3815 grep -v '^ *+' conftest.er1 >conftest.err
3816 rm -f conftest.er1
3817 cat conftest.err >&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } >/dev/null && {
3820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3821 test ! -s conftest.err
3822 }; then
3823 :
4180else 3824else
3825 echo "$as_me: failed program was:" >&5
3826sed 's/^/| /' conftest.$ac_ext >&5
3827
4181 # Broken: fails on valid input. 3828 # Broken: fails on valid input.
4182continue 3829continue
4183fi 3830fi
4184rm -f conftest.err conftest.i conftest.$ac_ext 3831
3832rm -f conftest.err conftest.$ac_ext
4185 3833
4186 # OK, works on sane cases. Now check whether nonexistent headers 3834 # OK, works on sane cases. Now check whether nonexistent headers
4187 # can be detected and how. 3835 # can be detected and how.
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3836 cat >conftest.$ac_ext <<_ACEOF
3837/* confdefs.h. */
3838_ACEOF
3839cat confdefs.h >>conftest.$ac_ext
3840cat >>conftest.$ac_ext <<_ACEOF
4189/* end confdefs.h. */ 3841/* end confdefs.h. */
4190#include <ac_nonexistent.h> 3842#include <ac_nonexistent.h>
4191_ACEOF 3843_ACEOF
4192if ac_fn_c_try_cpp "$LINENO"; then : 3844if { (ac_try="$ac_cpp conftest.$ac_ext"
3845case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848esac
3849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3851 ac_status=$?
3852 grep -v '^ *+' conftest.er1 >conftest.err
3853 rm -f conftest.er1
3854 cat conftest.err >&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } >/dev/null && {
3857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3858 test ! -s conftest.err
3859 }; then
4193 # Broken: success on invalid input. 3860 # Broken: success on invalid input.
4194continue 3861continue
4195else 3862else
3863 echo "$as_me: failed program was:" >&5
3864sed 's/^/| /' conftest.$ac_ext >&5
3865
4196 # Passes both tests. 3866 # Passes both tests.
4197ac_preproc_ok=: 3867ac_preproc_ok=:
4198break 3868break
4199fi 3869fi
4200rm -f conftest.err conftest.i conftest.$ac_ext 3870
3871rm -f conftest.err conftest.$ac_ext
4201 3872
4202done 3873done
4203# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3874# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4204rm -f conftest.i conftest.err conftest.$ac_ext 3875rm -f conftest.err conftest.$ac_ext
4205if $ac_preproc_ok; then : 3876if $ac_preproc_ok; then
4206 break 3877 break
4207fi 3878fi
4208 3879
@@ -4214,8 +3885,8 @@ fi
4214else 3885else
4215 ac_cv_prog_CPP=$CPP 3886 ac_cv_prog_CPP=$CPP
4216fi 3887fi
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3888{ echo "$as_me:$LINENO: result: $CPP" >&5
4218$as_echo "$CPP" >&6; } 3889echo "${ECHO_T}$CPP" >&6; }
4219ac_preproc_ok=false 3890ac_preproc_ok=false
4220for ac_c_preproc_warn_flag in '' yes 3891for ac_c_preproc_warn_flag in '' yes
4221do 3892do
@@ -4225,7 +3896,11 @@ do
4225 # <limits.h> exists even on freestanding compilers. 3896 # <limits.h> exists even on freestanding compilers.
4226 # On the NeXT, cc -E runs the code through the compiler's parser, 3897 # On the NeXT, cc -E runs the code through the compiler's parser,
4227 # not just through cpp. "Syntax error" is here to catch this case. 3898 # not just through cpp. "Syntax error" is here to catch this case.
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3899 cat >conftest.$ac_ext <<_ACEOF
3900/* confdefs.h. */
3901_ACEOF
3902cat confdefs.h >>conftest.$ac_ext
3903cat >>conftest.$ac_ext <<_ACEOF
4229/* end confdefs.h. */ 3904/* end confdefs.h. */
4230#ifdef __STDC__ 3905#ifdef __STDC__
4231# include <limits.h> 3906# include <limits.h>
@@ -4234,40 +3909,83 @@ do
4234#endif 3909#endif
4235 Syntax error 3910 Syntax error
4236_ACEOF 3911_ACEOF
4237if ac_fn_c_try_cpp "$LINENO"; then : 3912if { (ac_try="$ac_cpp conftest.$ac_ext"
4238 3913case "(($ac_try" in
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3916esac
3917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3919 ac_status=$?
3920 grep -v '^ *+' conftest.er1 >conftest.err
3921 rm -f conftest.er1
3922 cat conftest.err >&5
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); } >/dev/null && {
3925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3926 test ! -s conftest.err
3927 }; then
3928 :
4239else 3929else
3930 echo "$as_me: failed program was:" >&5
3931sed 's/^/| /' conftest.$ac_ext >&5
3932
4240 # Broken: fails on valid input. 3933 # Broken: fails on valid input.
4241continue 3934continue
4242fi 3935fi
4243rm -f conftest.err conftest.i conftest.$ac_ext 3936
3937rm -f conftest.err conftest.$ac_ext
4244 3938
4245 # OK, works on sane cases. Now check whether nonexistent headers 3939 # OK, works on sane cases. Now check whether nonexistent headers
4246 # can be detected and how. 3940 # can be detected and how.
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3941 cat >conftest.$ac_ext <<_ACEOF
3942/* confdefs.h. */
3943_ACEOF
3944cat confdefs.h >>conftest.$ac_ext
3945cat >>conftest.$ac_ext <<_ACEOF
4248/* end confdefs.h. */ 3946/* end confdefs.h. */
4249#include <ac_nonexistent.h> 3947#include <ac_nonexistent.h>
4250_ACEOF 3948_ACEOF
4251if ac_fn_c_try_cpp "$LINENO"; then : 3949if { (ac_try="$ac_cpp conftest.$ac_ext"
3950case "(($ac_try" in
3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3953esac
3954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3956 ac_status=$?
3957 grep -v '^ *+' conftest.er1 >conftest.err
3958 rm -f conftest.er1
3959 cat conftest.err >&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); } >/dev/null && {
3962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3963 test ! -s conftest.err
3964 }; then
4252 # Broken: success on invalid input. 3965 # Broken: success on invalid input.
4253continue 3966continue
4254else 3967else
3968 echo "$as_me: failed program was:" >&5
3969sed 's/^/| /' conftest.$ac_ext >&5
3970
4255 # Passes both tests. 3971 # Passes both tests.
4256ac_preproc_ok=: 3972ac_preproc_ok=:
4257break 3973break
4258fi 3974fi
4259rm -f conftest.err conftest.i conftest.$ac_ext 3975
3976rm -f conftest.err conftest.$ac_ext
4260 3977
4261done 3978done
4262# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3979# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4263rm -f conftest.i conftest.err conftest.$ac_ext 3980rm -f conftest.err conftest.$ac_ext
4264if $ac_preproc_ok; then : 3981if $ac_preproc_ok; then
4265 3982 :
4266else 3983else
4267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3984 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3985See \`config.log' for more details." >&5
4269as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3986echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4270See \`config.log' for more details" "$LINENO" 5; } 3987See \`config.log' for more details." >&2;}
3988 { (exit 1); exit 1; }; }
4271fi 3989fi
4272 3990
4273ac_ext=c 3991ac_ext=c
@@ -4279,10 +3997,10 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
4279if test -n "$ac_tool_prefix"; then 3997if test -n "$ac_tool_prefix"; then
4280 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3998 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4281set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3999set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4000{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4283$as_echo_n "checking for $ac_word... " >&6; } 4001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4284if ${ac_cv_prog_RANLIB+:} false; then : 4002if test "${ac_cv_prog_RANLIB+set}" = set; then
4285 $as_echo_n "(cached) " >&6 4003 echo $ECHO_N "(cached) $ECHO_C" >&6
4286else 4004else
4287 if test -n "$RANLIB"; then 4005 if test -n "$RANLIB"; then
4288 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4006 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
@@ -4292,25 +4010,25 @@ for as_dir in $PATH
4292do 4010do
4293 IFS=$as_save_IFS 4011 IFS=$as_save_IFS
4294 test -z "$as_dir" && as_dir=. 4012 test -z "$as_dir" && as_dir=.
4295 for ac_exec_ext in '' $ac_executable_extensions; do 4013 for ac_exec_ext in '' $ac_executable_extensions; do
4296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4297 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4015 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 break 2 4017 break 2
4300 fi 4018 fi
4301done 4019done
4302 done 4020done
4303IFS=$as_save_IFS 4021IFS=$as_save_IFS
4304 4022
4305fi 4023fi
4306fi 4024fi
4307RANLIB=$ac_cv_prog_RANLIB 4025RANLIB=$ac_cv_prog_RANLIB
4308if test -n "$RANLIB"; then 4026if test -n "$RANLIB"; then
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4027 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4310$as_echo "$RANLIB" >&6; } 4028echo "${ECHO_T}$RANLIB" >&6; }
4311else 4029else
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4030 { echo "$as_me:$LINENO: result: no" >&5
4313$as_echo "no" >&6; } 4031echo "${ECHO_T}no" >&6; }
4314fi 4032fi
4315 4033
4316 4034
@@ -4319,10 +4037,10 @@ if test -z "$ac_cv_prog_RANLIB"; then
4319 ac_ct_RANLIB=$RANLIB 4037 ac_ct_RANLIB=$RANLIB
4320 # Extract the first word of "ranlib", so it can be a program name with args. 4038 # Extract the first word of "ranlib", so it can be a program name with args.
4321set dummy ranlib; ac_word=$2 4039set dummy ranlib; ac_word=$2
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4040{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4323$as_echo_n "checking for $ac_word... " >&6; } 4041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4324if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4042if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4325 $as_echo_n "(cached) " >&6 4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4326else 4044else
4327 if test -n "$ac_ct_RANLIB"; then 4045 if test -n "$ac_ct_RANLIB"; then
4328 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4046 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
@@ -4332,25 +4050,25 @@ for as_dir in $PATH
4332do 4050do
4333 IFS=$as_save_IFS 4051 IFS=$as_save_IFS
4334 test -z "$as_dir" && as_dir=. 4052 test -z "$as_dir" && as_dir=.
4335 for ac_exec_ext in '' $ac_executable_extensions; do 4053 for ac_exec_ext in '' $ac_executable_extensions; do
4336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4337 ac_cv_prog_ac_ct_RANLIB="ranlib" 4055 ac_cv_prog_ac_ct_RANLIB="ranlib"
4338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4339 break 2 4057 break 2
4340 fi 4058 fi
4341done 4059done
4342 done 4060done
4343IFS=$as_save_IFS 4061IFS=$as_save_IFS
4344 4062
4345fi 4063fi
4346fi 4064fi
4347ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4065ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4348if test -n "$ac_ct_RANLIB"; then 4066if test -n "$ac_ct_RANLIB"; then
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4067 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4350$as_echo "$ac_ct_RANLIB" >&6; } 4068echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4351else 4069else
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4070 { echo "$as_me:$LINENO: result: no" >&5
4353$as_echo "no" >&6; } 4071echo "${ECHO_T}no" >&6; }
4354fi 4072fi
4355 4073
4356 if test "x$ac_ct_RANLIB" = x; then 4074 if test "x$ac_ct_RANLIB" = x; then
@@ -4358,8 +4076,12 @@ fi
4358 else 4076 else
4359 case $cross_compiling:$ac_tool_warned in 4077 case $cross_compiling:$ac_tool_warned in
4360yes:) 4078yes:)
4361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4079{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4080whose name does not start with the host triplet. If you think this
4081configuration is useful to you, please write to autoconf@gnu.org." >&5
4082echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4083whose name does not start with the host triplet. If you think this
4084configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4363ac_tool_warned=yes ;; 4085ac_tool_warned=yes ;;
4364esac 4086esac
4365 RANLIB=$ac_ct_RANLIB 4087 RANLIB=$ac_ct_RANLIB
@@ -4381,23 +4103,22 @@ fi
4381# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4103# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4382# OS/2's system install, which has a completely different semantic 4104# OS/2's system install, which has a completely different semantic
4383# ./install, which can be erroneously created by make from ./install.sh. 4105# ./install, which can be erroneously created by make from ./install.sh.
4384# Reject install programs that cannot install multiple files. 4106{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4107echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4386$as_echo_n "checking for a BSD-compatible install... " >&6; }
4387if test -z "$INSTALL"; then 4108if test -z "$INSTALL"; then
4388if ${ac_cv_path_install+:} false; then : 4109if test "${ac_cv_path_install+set}" = set; then
4389 $as_echo_n "(cached) " >&6 4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4390else 4111else
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392for as_dir in $PATH 4113for as_dir in $PATH
4393do 4114do
4394 IFS=$as_save_IFS 4115 IFS=$as_save_IFS
4395 test -z "$as_dir" && as_dir=. 4116 test -z "$as_dir" && as_dir=.
4396 # Account for people who put trailing slashes in PATH elements. 4117 # Account for people who put trailing slashes in PATH elements.
4397case $as_dir/ in #(( 4118case $as_dir/ in
4398 ./ | .// | /[cC]/* | \ 4119 ./ | .// | /cC/* | \
4399 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4120 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4400 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4121 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4401 /usr/ucb/* ) ;; 4122 /usr/ucb/* ) ;;
4402 *) 4123 *)
4403 # OSF1 and SCO ODT 3.0 have their own names for install. 4124 # OSF1 and SCO ODT 3.0 have their own names for install.
@@ -4415,29 +4136,17 @@ case $as_dir/ in #((
4415 # program-specific install script used by HP pwplus--don't use. 4136 # program-specific install script used by HP pwplus--don't use.
4416 : 4137 :
4417 else 4138 else
4418 rm -rf conftest.one conftest.two conftest.dir 4139 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4419 echo one > conftest.one 4140 break 3
4420 echo two > conftest.two
4421 mkdir conftest.dir
4422 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4423 test -s conftest.one && test -s conftest.two &&
4424 test -s conftest.dir/conftest.one &&
4425 test -s conftest.dir/conftest.two
4426 then
4427 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4428 break 3
4429 fi
4430 fi 4141 fi
4431 fi 4142 fi
4432 done 4143 done
4433 done 4144 done
4434 ;; 4145 ;;
4435esac 4146esac
4436 4147done
4437 done
4438IFS=$as_save_IFS 4148IFS=$as_save_IFS
4439 4149
4440rm -rf conftest.one conftest.two conftest.dir
4441 4150
4442fi 4151fi
4443 if test "${ac_cv_path_install+set}" = set; then 4152 if test "${ac_cv_path_install+set}" = set; then
@@ -4450,8 +4159,8 @@ fi
4450 INSTALL=$ac_install_sh 4159 INSTALL=$ac_install_sh
4451 fi 4160 fi
4452fi 4161fi
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4162{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4454$as_echo "$INSTALL" >&6; } 4163echo "${ECHO_T}$INSTALL" >&6; }
4455 4164
4456# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4165# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4457# It thinks the first close brace ends the variable substitution. 4166# It thinks the first close brace ends the variable substitution.
@@ -4461,43 +4170,48 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4461 4170
4462test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4171test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4463 4172
4464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4173{ echo "$as_me:$LINENO: checking for egrep" >&5
4465$as_echo_n "checking for egrep... " >&6; } 4174echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4466if ${ac_cv_path_EGREP+:} false; then : 4175if test "${ac_cv_path_EGREP+set}" = set; then
4467 $as_echo_n "(cached) " >&6 4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4468else 4177else
4469 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4178 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4470 then ac_cv_path_EGREP="$GREP -E" 4179 then ac_cv_path_EGREP="$GREP -E"
4471 else 4180 else
4472 if test -z "$EGREP"; then 4181 # Extract the first word of "egrep" to use in msg output
4182if test -z "$EGREP"; then
4183set dummy egrep; ac_prog_name=$2
4184if test "${ac_cv_path_EGREP+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4186else
4473 ac_path_EGREP_found=false 4187 ac_path_EGREP_found=false
4474 # Loop through the user's path and test for each of PROGNAME-LIST 4188# Loop through the user's path and test for each of PROGNAME-LIST
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4190for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4477do 4191do
4478 IFS=$as_save_IFS 4192 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=. 4193 test -z "$as_dir" && as_dir=.
4480 for ac_prog in egrep; do 4194 for ac_prog in egrep; do
4481 for ac_exec_ext in '' $ac_executable_extensions; do 4195 for ac_exec_ext in '' $ac_executable_extensions; do
4482 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4196 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4483 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4197 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4484# Check for GNU ac_path_EGREP and select it if it is found. 4198 # Check for GNU ac_path_EGREP and select it if it is found.
4485 # Check for GNU $ac_path_EGREP 4199 # Check for GNU $ac_path_EGREP
4486case `"$ac_path_EGREP" --version 2>&1` in 4200case `"$ac_path_EGREP" --version 2>&1` in
4487*GNU*) 4201*GNU*)
4488 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4202 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4489*) 4203*)
4490 ac_count=0 4204 ac_count=0
4491 $as_echo_n 0123456789 >"conftest.in" 4205 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4492 while : 4206 while :
4493 do 4207 do
4494 cat "conftest.in" "conftest.in" >"conftest.tmp" 4208 cat "conftest.in" "conftest.in" >"conftest.tmp"
4495 mv "conftest.tmp" "conftest.in" 4209 mv "conftest.tmp" "conftest.in"
4496 cp "conftest.in" "conftest.nl" 4210 cp "conftest.in" "conftest.nl"
4497 $as_echo 'EGREP' >> "conftest.nl" 4211 echo 'EGREP' >> "conftest.nl"
4498 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4212 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4499 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4213 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4500 as_fn_arith $ac_count + 1 && ac_count=$as_val 4214 ac_count=`expr $ac_count + 1`
4501 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4215 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4502 # Best one so far, save it but keep looking for a better one 4216 # Best one so far, save it but keep looking for a better one
4503 ac_cv_path_EGREP="$ac_path_EGREP" 4217 ac_cv_path_EGREP="$ac_path_EGREP"
@@ -4509,31 +4223,42 @@ case `"$ac_path_EGREP" --version 2>&1` in
4509 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4223 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4510esac 4224esac
4511 4225
4512 $ac_path_EGREP_found && break 3 4226
4513 done 4227 $ac_path_EGREP_found && break 3
4514 done
4515 done 4228 done
4229done
4230
4231done
4516IFS=$as_save_IFS 4232IFS=$as_save_IFS
4517 if test -z "$ac_cv_path_EGREP"; then 4233
4518 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4234
4519 fi 4235fi
4236
4237EGREP="$ac_cv_path_EGREP"
4238if test -z "$EGREP"; then
4239 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4240echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4241 { (exit 1); exit 1; }; }
4242fi
4243
4520else 4244else
4521 ac_cv_path_EGREP=$EGREP 4245 ac_cv_path_EGREP=$EGREP
4522fi 4246fi
4523 4247
4248
4524 fi 4249 fi
4525fi 4250fi
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4251{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4527$as_echo "$ac_cv_path_EGREP" >&6; } 4252echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4528 EGREP="$ac_cv_path_EGREP" 4253 EGREP="$ac_cv_path_EGREP"
4529 4254
4530 4255
4531# Extract the first word of "ar", so it can be a program name with args. 4256# Extract the first word of "ar", so it can be a program name with args.
4532set dummy ar; ac_word=$2 4257set dummy ar; ac_word=$2
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4258{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4534$as_echo_n "checking for $ac_word... " >&6; } 4259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4535if ${ac_cv_path_AR+:} false; then : 4260if test "${ac_cv_path_AR+set}" = set; then
4536 $as_echo_n "(cached) " >&6 4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4537else 4262else
4538 case $AR in 4263 case $AR in
4539 [\\/]* | ?:[\\/]*) 4264 [\\/]* | ?:[\\/]*)
@@ -4545,14 +4270,14 @@ for as_dir in $PATH
4545do 4270do
4546 IFS=$as_save_IFS 4271 IFS=$as_save_IFS
4547 test -z "$as_dir" && as_dir=. 4272 test -z "$as_dir" && as_dir=.
4548 for ac_exec_ext in '' $ac_executable_extensions; do 4273 for ac_exec_ext in '' $ac_executable_extensions; do
4549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4550 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 4275 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4552 break 2 4277 break 2
4553 fi 4278 fi
4554done 4279done
4555 done 4280done
4556IFS=$as_save_IFS 4281IFS=$as_save_IFS
4557 4282
4558 ;; 4283 ;;
@@ -4560,20 +4285,20 @@ esac
4560fi 4285fi
4561AR=$ac_cv_path_AR 4286AR=$ac_cv_path_AR
4562if test -n "$AR"; then 4287if test -n "$AR"; then
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4288 { echo "$as_me:$LINENO: result: $AR" >&5
4564$as_echo "$AR" >&6; } 4289echo "${ECHO_T}$AR" >&6; }
4565else 4290else
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4291 { echo "$as_me:$LINENO: result: no" >&5
4567$as_echo "no" >&6; } 4292echo "${ECHO_T}no" >&6; }
4568fi 4293fi
4569 4294
4570 4295
4571# Extract the first word of "cat", so it can be a program name with args. 4296# Extract the first word of "cat", so it can be a program name with args.
4572set dummy cat; ac_word=$2 4297set dummy cat; ac_word=$2
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4298{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4574$as_echo_n "checking for $ac_word... " >&6; } 4299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4575if ${ac_cv_path_CAT+:} false; then : 4300if test "${ac_cv_path_CAT+set}" = set; then
4576 $as_echo_n "(cached) " >&6 4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4577else 4302else
4578 case $CAT in 4303 case $CAT in
4579 [\\/]* | ?:[\\/]*) 4304 [\\/]* | ?:[\\/]*)
@@ -4585,14 +4310,14 @@ for as_dir in $PATH
4585do 4310do
4586 IFS=$as_save_IFS 4311 IFS=$as_save_IFS
4587 test -z "$as_dir" && as_dir=. 4312 test -z "$as_dir" && as_dir=.
4588 for ac_exec_ext in '' $ac_executable_extensions; do 4313 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4590 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4315 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 break 2 4317 break 2
4593 fi 4318 fi
4594done 4319done
4595 done 4320done
4596IFS=$as_save_IFS 4321IFS=$as_save_IFS
4597 4322
4598 ;; 4323 ;;
@@ -4600,20 +4325,20 @@ esac
4600fi 4325fi
4601CAT=$ac_cv_path_CAT 4326CAT=$ac_cv_path_CAT
4602if test -n "$CAT"; then 4327if test -n "$CAT"; then
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4328 { echo "$as_me:$LINENO: result: $CAT" >&5
4604$as_echo "$CAT" >&6; } 4329echo "${ECHO_T}$CAT" >&6; }
4605else 4330else
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4331 { echo "$as_me:$LINENO: result: no" >&5
4607$as_echo "no" >&6; } 4332echo "${ECHO_T}no" >&6; }
4608fi 4333fi
4609 4334
4610 4335
4611# Extract the first word of "kill", so it can be a program name with args. 4336# Extract the first word of "kill", so it can be a program name with args.
4612set dummy kill; ac_word=$2 4337set dummy kill; ac_word=$2
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4338{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4614$as_echo_n "checking for $ac_word... " >&6; } 4339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4615if ${ac_cv_path_KILL+:} false; then : 4340if test "${ac_cv_path_KILL+set}" = set; then
4616 $as_echo_n "(cached) " >&6 4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4617else 4342else
4618 case $KILL in 4343 case $KILL in
4619 [\\/]* | ?:[\\/]*) 4344 [\\/]* | ?:[\\/]*)
@@ -4625,14 +4350,14 @@ for as_dir in $PATH
4625do 4350do
4626 IFS=$as_save_IFS 4351 IFS=$as_save_IFS
4627 test -z "$as_dir" && as_dir=. 4352 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do 4353 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext" 4355 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 break 2 4357 break 2
4633 fi 4358 fi
4634done 4359done
4635 done 4360done
4636IFS=$as_save_IFS 4361IFS=$as_save_IFS
4637 4362
4638 ;; 4363 ;;
@@ -4640,11 +4365,11 @@ esac
4640fi 4365fi
4641KILL=$ac_cv_path_KILL 4366KILL=$ac_cv_path_KILL
4642if test -n "$KILL"; then 4367if test -n "$KILL"; then
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5 4368 { echo "$as_me:$LINENO: result: $KILL" >&5
4644$as_echo "$KILL" >&6; } 4369echo "${ECHO_T}$KILL" >&6; }
4645else 4370else
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4371 { echo "$as_me:$LINENO: result: no" >&5
4647$as_echo "no" >&6; } 4372echo "${ECHO_T}no" >&6; }
4648fi 4373fi
4649 4374
4650 4375
@@ -4652,10 +4377,10 @@ for ac_prog in perl5 perl
4652do 4377do
4653 # Extract the first word of "$ac_prog", so it can be a program name with args. 4378 # Extract the first word of "$ac_prog", so it can be a program name with args.
4654set dummy $ac_prog; ac_word=$2 4379set dummy $ac_prog; ac_word=$2
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4380{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4656$as_echo_n "checking for $ac_word... " >&6; } 4381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4657if ${ac_cv_path_PERL+:} false; then : 4382if test "${ac_cv_path_PERL+set}" = set; then
4658 $as_echo_n "(cached) " >&6 4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4659else 4384else
4660 case $PERL in 4385 case $PERL in
4661 [\\/]* | ?:[\\/]*) 4386 [\\/]* | ?:[\\/]*)
@@ -4667,14 +4392,14 @@ for as_dir in $PATH
4667do 4392do
4668 IFS=$as_save_IFS 4393 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=. 4394 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do 4395 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 4397 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 break 2 4399 break 2
4675 fi 4400 fi
4676done 4401done
4677 done 4402done
4678IFS=$as_save_IFS 4403IFS=$as_save_IFS
4679 4404
4680 ;; 4405 ;;
@@ -4682,11 +4407,11 @@ esac
4682fi 4407fi
4683PERL=$ac_cv_path_PERL 4408PERL=$ac_cv_path_PERL
4684if test -n "$PERL"; then 4409if test -n "$PERL"; then
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 4410 { echo "$as_me:$LINENO: result: $PERL" >&5
4686$as_echo "$PERL" >&6; } 4411echo "${ECHO_T}$PERL" >&6; }
4687else 4412else
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4413 { echo "$as_me:$LINENO: result: no" >&5
4689$as_echo "no" >&6; } 4414echo "${ECHO_T}no" >&6; }
4690fi 4415fi
4691 4416
4692 4417
@@ -4695,10 +4420,10 @@ done
4695 4420
4696# Extract the first word of "sed", so it can be a program name with args. 4421# Extract the first word of "sed", so it can be a program name with args.
4697set dummy sed; ac_word=$2 4422set dummy sed; ac_word=$2
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4423{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4699$as_echo_n "checking for $ac_word... " >&6; } 4424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700if ${ac_cv_path_SED+:} false; then : 4425if test "${ac_cv_path_SED+set}" = set; then
4701 $as_echo_n "(cached) " >&6 4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4702else 4427else
4703 case $SED in 4428 case $SED in
4704 [\\/]* | ?:[\\/]*) 4429 [\\/]* | ?:[\\/]*)
@@ -4710,14 +4435,14 @@ for as_dir in $PATH
4710do 4435do
4711 IFS=$as_save_IFS 4436 IFS=$as_save_IFS
4712 test -z "$as_dir" && as_dir=. 4437 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do 4438 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 4440 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 break 2 4442 break 2
4718 fi 4443 fi
4719done 4444done
4720 done 4445done
4721IFS=$as_save_IFS 4446IFS=$as_save_IFS
4722 4447
4723 ;; 4448 ;;
@@ -4725,21 +4450,21 @@ esac
4725fi 4450fi
4726SED=$ac_cv_path_SED 4451SED=$ac_cv_path_SED
4727if test -n "$SED"; then 4452if test -n "$SED"; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 4453 { echo "$as_me:$LINENO: result: $SED" >&5
4729$as_echo "$SED" >&6; } 4454echo "${ECHO_T}$SED" >&6; }
4730else 4455else
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4456 { echo "$as_me:$LINENO: result: no" >&5
4732$as_echo "no" >&6; } 4457echo "${ECHO_T}no" >&6; }
4733fi 4458fi
4734 4459
4735 4460
4736 4461
4737# Extract the first word of "ent", so it can be a program name with args. 4462# Extract the first word of "ent", so it can be a program name with args.
4738set dummy ent; ac_word=$2 4463set dummy ent; ac_word=$2
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4464{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4740$as_echo_n "checking for $ac_word... " >&6; } 4465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4741if ${ac_cv_path_ENT+:} false; then : 4466if test "${ac_cv_path_ENT+set}" = set; then
4742 $as_echo_n "(cached) " >&6 4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4743else 4468else
4744 case $ENT in 4469 case $ENT in
4745 [\\/]* | ?:[\\/]*) 4470 [\\/]* | ?:[\\/]*)
@@ -4751,14 +4476,14 @@ for as_dir in $PATH
4751do 4476do
4752 IFS=$as_save_IFS 4477 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=. 4478 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do 4479 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" 4481 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2 4483 break 2
4759 fi 4484 fi
4760done 4485done
4761 done 4486done
4762IFS=$as_save_IFS 4487IFS=$as_save_IFS
4763 4488
4764 ;; 4489 ;;
@@ -4766,21 +4491,21 @@ esac
4766fi 4491fi
4767ENT=$ac_cv_path_ENT 4492ENT=$ac_cv_path_ENT
4768if test -n "$ENT"; then 4493if test -n "$ENT"; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5 4494 { echo "$as_me:$LINENO: result: $ENT" >&5
4770$as_echo "$ENT" >&6; } 4495echo "${ECHO_T}$ENT" >&6; }
4771else 4496else
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4497 { echo "$as_me:$LINENO: result: no" >&5
4773$as_echo "no" >&6; } 4498echo "${ECHO_T}no" >&6; }
4774fi 4499fi
4775 4500
4776 4501
4777 4502
4778# Extract the first word of "bash", so it can be a program name with args. 4503# Extract the first word of "bash", so it can be a program name with args.
4779set dummy bash; ac_word=$2 4504set dummy bash; ac_word=$2
4780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4505{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4781$as_echo_n "checking for $ac_word... " >&6; } 4506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4782if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : 4507if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4783 $as_echo_n "(cached) " >&6 4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4784else 4509else
4785 case $TEST_MINUS_S_SH in 4510 case $TEST_MINUS_S_SH in
4786 [\\/]* | ?:[\\/]*) 4511 [\\/]* | ?:[\\/]*)
@@ -4792,14 +4517,14 @@ for as_dir in $PATH
4792do 4517do
4793 IFS=$as_save_IFS 4518 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=. 4519 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do 4520 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" 4522 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2 4524 break 2
4800 fi 4525 fi
4801done 4526done
4802 done 4527done
4803IFS=$as_save_IFS 4528IFS=$as_save_IFS
4804 4529
4805 ;; 4530 ;;
@@ -4807,20 +4532,20 @@ esac
4807fi 4532fi
4808TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH 4533TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4809if test -n "$TEST_MINUS_S_SH"; then 4534if test -n "$TEST_MINUS_S_SH"; then
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 4535 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4811$as_echo "$TEST_MINUS_S_SH" >&6; } 4536echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4812else 4537else
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4538 { echo "$as_me:$LINENO: result: no" >&5
4814$as_echo "no" >&6; } 4539echo "${ECHO_T}no" >&6; }
4815fi 4540fi
4816 4541
4817 4542
4818# Extract the first word of "ksh", so it can be a program name with args. 4543# Extract the first word of "ksh", so it can be a program name with args.
4819set dummy ksh; ac_word=$2 4544set dummy ksh; ac_word=$2
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4545{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4821$as_echo_n "checking for $ac_word... " >&6; } 4546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4822if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : 4547if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4823 $as_echo_n "(cached) " >&6 4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4824else 4549else
4825 case $TEST_MINUS_S_SH in 4550 case $TEST_MINUS_S_SH in
4826 [\\/]* | ?:[\\/]*) 4551 [\\/]* | ?:[\\/]*)
@@ -4832,14 +4557,14 @@ for as_dir in $PATH
4832do 4557do
4833 IFS=$as_save_IFS 4558 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=. 4559 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do 4560 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" 4562 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2 4564 break 2
4840 fi 4565 fi
4841done 4566done
4842 done 4567done
4843IFS=$as_save_IFS 4568IFS=$as_save_IFS
4844 4569
4845 ;; 4570 ;;
@@ -4847,20 +4572,20 @@ esac
4847fi 4572fi
4848TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH 4573TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4849if test -n "$TEST_MINUS_S_SH"; then 4574if test -n "$TEST_MINUS_S_SH"; then
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 4575 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4851$as_echo "$TEST_MINUS_S_SH" >&6; } 4576echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4852else 4577else
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4578 { echo "$as_me:$LINENO: result: no" >&5
4854$as_echo "no" >&6; } 4579echo "${ECHO_T}no" >&6; }
4855fi 4580fi
4856 4581
4857 4582
4858# Extract the first word of "sh", so it can be a program name with args. 4583# Extract the first word of "sh", so it can be a program name with args.
4859set dummy sh; ac_word=$2 4584set dummy sh; ac_word=$2
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4585{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4861$as_echo_n "checking for $ac_word... " >&6; } 4586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4862if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : 4587if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4863 $as_echo_n "(cached) " >&6 4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4864else 4589else
4865 case $TEST_MINUS_S_SH in 4590 case $TEST_MINUS_S_SH in
4866 [\\/]* | ?:[\\/]*) 4591 [\\/]* | ?:[\\/]*)
@@ -4872,14 +4597,14 @@ for as_dir in $PATH
4872do 4597do
4873 IFS=$as_save_IFS 4598 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=. 4599 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do 4600 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" 4602 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2 4604 break 2
4880 fi 4605 fi
4881done 4606done
4882 done 4607done
4883IFS=$as_save_IFS 4608IFS=$as_save_IFS
4884 4609
4885 ;; 4610 ;;
@@ -4887,20 +4612,20 @@ esac
4887fi 4612fi
4888TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH 4613TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4889if test -n "$TEST_MINUS_S_SH"; then 4614if test -n "$TEST_MINUS_S_SH"; then
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 4615 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4891$as_echo "$TEST_MINUS_S_SH" >&6; } 4616echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4892else 4617else
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4618 { echo "$as_me:$LINENO: result: no" >&5
4894$as_echo "no" >&6; } 4619echo "${ECHO_T}no" >&6; }
4895fi 4620fi
4896 4621
4897 4622
4898# Extract the first word of "sh", so it can be a program name with args. 4623# Extract the first word of "sh", so it can be a program name with args.
4899set dummy sh; ac_word=$2 4624set dummy sh; ac_word=$2
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4625{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4901$as_echo_n "checking for $ac_word... " >&6; } 4626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4902if ${ac_cv_path_SH+:} false; then : 4627if test "${ac_cv_path_SH+set}" = set; then
4903 $as_echo_n "(cached) " >&6 4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4904else 4629else
4905 case $SH in 4630 case $SH in
4906 [\\/]* | ?:[\\/]*) 4631 [\\/]* | ?:[\\/]*)
@@ -4912,14 +4637,14 @@ for as_dir in $PATH
4912do 4637do
4913 IFS=$as_save_IFS 4638 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=. 4639 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do 4640 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 4642 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 break 2 4644 break 2
4920 fi 4645 fi
4921done 4646done
4922 done 4647done
4923IFS=$as_save_IFS 4648IFS=$as_save_IFS
4924 4649
4925 ;; 4650 ;;
@@ -4927,20 +4652,20 @@ esac
4927fi 4652fi
4928SH=$ac_cv_path_SH 4653SH=$ac_cv_path_SH
4929if test -n "$SH"; then 4654if test -n "$SH"; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 4655 { echo "$as_me:$LINENO: result: $SH" >&5
4931$as_echo "$SH" >&6; } 4656echo "${ECHO_T}$SH" >&6; }
4932else 4657else
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4658 { echo "$as_me:$LINENO: result: no" >&5
4934$as_echo "no" >&6; } 4659echo "${ECHO_T}no" >&6; }
4935fi 4660fi
4936 4661
4937 4662
4938# Extract the first word of "groff", so it can be a program name with args. 4663# Extract the first word of "groff", so it can be a program name with args.
4939set dummy groff; ac_word=$2 4664set dummy groff; ac_word=$2
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4941$as_echo_n "checking for $ac_word... " >&6; } 4666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4942if ${ac_cv_path_GROFF+:} false; then : 4667if test "${ac_cv_path_GROFF+set}" = set; then
4943 $as_echo_n "(cached) " >&6 4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4944else 4669else
4945 case $GROFF in 4670 case $GROFF in
4946 [\\/]* | ?:[\\/]*) 4671 [\\/]* | ?:[\\/]*)
@@ -4952,14 +4677,14 @@ for as_dir in $PATH
4952do 4677do
4953 IFS=$as_save_IFS 4678 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=. 4679 test -z "$as_dir" && as_dir=.
4955 for ac_exec_ext in '' $ac_executable_extensions; do 4680 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4957 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 4682 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
4958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 break 2 4684 break 2
4960 fi 4685 fi
4961done 4686done
4962 done 4687done
4963IFS=$as_save_IFS 4688IFS=$as_save_IFS
4964 4689
4965 ;; 4690 ;;
@@ -4967,20 +4692,20 @@ esac
4967fi 4692fi
4968GROFF=$ac_cv_path_GROFF 4693GROFF=$ac_cv_path_GROFF
4969if test -n "$GROFF"; then 4694if test -n "$GROFF"; then
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 4695 { echo "$as_me:$LINENO: result: $GROFF" >&5
4971$as_echo "$GROFF" >&6; } 4696echo "${ECHO_T}$GROFF" >&6; }
4972else 4697else
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4698 { echo "$as_me:$LINENO: result: no" >&5
4974$as_echo "no" >&6; } 4699echo "${ECHO_T}no" >&6; }
4975fi 4700fi
4976 4701
4977 4702
4978# Extract the first word of "nroff", so it can be a program name with args. 4703# Extract the first word of "nroff", so it can be a program name with args.
4979set dummy nroff; ac_word=$2 4704set dummy nroff; ac_word=$2
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4705{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4981$as_echo_n "checking for $ac_word... " >&6; } 4706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4982if ${ac_cv_path_NROFF+:} false; then : 4707if test "${ac_cv_path_NROFF+set}" = set; then
4983 $as_echo_n "(cached) " >&6 4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4984else 4709else
4985 case $NROFF in 4710 case $NROFF in
4986 [\\/]* | ?:[\\/]*) 4711 [\\/]* | ?:[\\/]*)
@@ -4992,14 +4717,14 @@ for as_dir in $PATH
4992do 4717do
4993 IFS=$as_save_IFS 4718 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=. 4719 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do 4720 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4997 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" 4722 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
4998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 break 2 4724 break 2
5000 fi 4725 fi
5001done 4726done
5002 done 4727done
5003IFS=$as_save_IFS 4728IFS=$as_save_IFS
5004 4729
5005 ;; 4730 ;;
@@ -5007,20 +4732,20 @@ esac
5007fi 4732fi
5008NROFF=$ac_cv_path_NROFF 4733NROFF=$ac_cv_path_NROFF
5009if test -n "$NROFF"; then 4734if test -n "$NROFF"; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 4735 { echo "$as_me:$LINENO: result: $NROFF" >&5
5011$as_echo "$NROFF" >&6; } 4736echo "${ECHO_T}$NROFF" >&6; }
5012else 4737else
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4738 { echo "$as_me:$LINENO: result: no" >&5
5014$as_echo "no" >&6; } 4739echo "${ECHO_T}no" >&6; }
5015fi 4740fi
5016 4741
5017 4742
5018# Extract the first word of "mandoc", so it can be a program name with args. 4743# Extract the first word of "mandoc", so it can be a program name with args.
5019set dummy mandoc; ac_word=$2 4744set dummy mandoc; ac_word=$2
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4745{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5021$as_echo_n "checking for $ac_word... " >&6; } 4746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5022if ${ac_cv_path_MANDOC+:} false; then : 4747if test "${ac_cv_path_MANDOC+set}" = set; then
5023 $as_echo_n "(cached) " >&6 4748 echo $ECHO_N "(cached) $ECHO_C" >&6
5024else 4749else
5025 case $MANDOC in 4750 case $MANDOC in
5026 [\\/]* | ?:[\\/]*) 4751 [\\/]* | ?:[\\/]*)
@@ -5032,14 +4757,14 @@ for as_dir in $PATH
5032do 4757do
5033 IFS=$as_save_IFS 4758 IFS=$as_save_IFS
5034 test -z "$as_dir" && as_dir=. 4759 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do 4760 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037 ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext" 4762 ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
5038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 break 2 4764 break 2
5040 fi 4765 fi
5041done 4766done
5042 done 4767done
5043IFS=$as_save_IFS 4768IFS=$as_save_IFS
5044 4769
5045 ;; 4770 ;;
@@ -5047,11 +4772,11 @@ esac
5047fi 4772fi
5048MANDOC=$ac_cv_path_MANDOC 4773MANDOC=$ac_cv_path_MANDOC
5049if test -n "$MANDOC"; then 4774if test -n "$MANDOC"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5 4775 { echo "$as_me:$LINENO: result: $MANDOC" >&5
5051$as_echo "$MANDOC" >&6; } 4776echo "${ECHO_T}$MANDOC" >&6; }
5052else 4777else
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4778 { echo "$as_me:$LINENO: result: no" >&5
5054$as_echo "no" >&6; } 4779echo "${ECHO_T}no" >&6; }
5055fi 4780fi
5056 4781
5057 4782
@@ -5065,18 +4790,18 @@ elif test "x$NROFF" != "x" ; then
5065elif test "x$GROFF" != "x" ; then 4790elif test "x$GROFF" != "x" ; then
5066 MANFMT="$GROFF -mandoc -Tascii" 4791 MANFMT="$GROFF -mandoc -Tascii"
5067else 4792else
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5 4793 { echo "$as_me:$LINENO: WARNING: no manpage formatted found" >&5
5069$as_echo "$as_me: WARNING: no manpage formatted found" >&2;} 4794echo "$as_me: WARNING: no manpage formatted found" >&2;}
5070 MANFMT="false" 4795 MANFMT="false"
5071fi 4796fi
5072 4797
5073 4798
5074# Extract the first word of "groupadd", so it can be a program name with args. 4799# Extract the first word of "groupadd", so it can be a program name with args.
5075set dummy groupadd; ac_word=$2 4800set dummy groupadd; ac_word=$2
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4801{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5077$as_echo_n "checking for $ac_word... " >&6; } 4802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5078if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then : 4803if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then
5079 $as_echo_n "(cached) " >&6 4804 echo $ECHO_N "(cached) $ECHO_C" >&6
5080else 4805else
5081 case $PATH_GROUPADD_PROG in 4806 case $PATH_GROUPADD_PROG in
5082 [\\/]* | ?:[\\/]*) 4807 [\\/]* | ?:[\\/]*)
@@ -5088,14 +4813,14 @@ for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5088do 4813do
5089 IFS=$as_save_IFS 4814 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=. 4815 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do 4816 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" 4818 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 break 2 4820 break 2
5096 fi 4821 fi
5097done 4822done
5098 done 4823done
5099IFS=$as_save_IFS 4824IFS=$as_save_IFS
5100 4825
5101 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" 4826 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
@@ -5104,20 +4829,20 @@ esac
5104fi 4829fi
5105PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG 4830PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
5106if test -n "$PATH_GROUPADD_PROG"; then 4831if test -n "$PATH_GROUPADD_PROG"; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5 4832 { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5
5108$as_echo "$PATH_GROUPADD_PROG" >&6; } 4833echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; }
5109else 4834else
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4835 { echo "$as_me:$LINENO: result: no" >&5
5111$as_echo "no" >&6; } 4836echo "${ECHO_T}no" >&6; }
5112fi 4837fi
5113 4838
5114 4839
5115# Extract the first word of "useradd", so it can be a program name with args. 4840# Extract the first word of "useradd", so it can be a program name with args.
5116set dummy useradd; ac_word=$2 4841set dummy useradd; ac_word=$2
5117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4842{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5118$as_echo_n "checking for $ac_word... " >&6; } 4843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5119if ${ac_cv_path_PATH_USERADD_PROG+:} false; then : 4844if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then
5120 $as_echo_n "(cached) " >&6 4845 echo $ECHO_N "(cached) $ECHO_C" >&6
5121else 4846else
5122 case $PATH_USERADD_PROG in 4847 case $PATH_USERADD_PROG in
5123 [\\/]* | ?:[\\/]*) 4848 [\\/]* | ?:[\\/]*)
@@ -5129,14 +4854,14 @@ for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5129do 4854do
5130 IFS=$as_save_IFS 4855 IFS=$as_save_IFS
5131 test -z "$as_dir" && as_dir=. 4856 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do 4857 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" 4859 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 break 2 4861 break 2
5137 fi 4862 fi
5138done 4863done
5139 done 4864done
5140IFS=$as_save_IFS 4865IFS=$as_save_IFS
5141 4866
5142 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" 4867 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
@@ -5145,20 +4870,20 @@ esac
5145fi 4870fi
5146PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG 4871PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
5147if test -n "$PATH_USERADD_PROG"; then 4872if test -n "$PATH_USERADD_PROG"; then
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5 4873 { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5
5149$as_echo "$PATH_USERADD_PROG" >&6; } 4874echo "${ECHO_T}$PATH_USERADD_PROG" >&6; }
5150else 4875else
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4876 { echo "$as_me:$LINENO: result: no" >&5
5152$as_echo "no" >&6; } 4877echo "${ECHO_T}no" >&6; }
5153fi 4878fi
5154 4879
5155 4880
5156# Extract the first word of "pkgmk", so it can be a program name with args. 4881# Extract the first word of "pkgmk", so it can be a program name with args.
5157set dummy pkgmk; ac_word=$2 4882set dummy pkgmk; ac_word=$2
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4883{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5159$as_echo_n "checking for $ac_word... " >&6; } 4884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5160if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then : 4885if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then
5161 $as_echo_n "(cached) " >&6 4886 echo $ECHO_N "(cached) $ECHO_C" >&6
5162else 4887else
5163 if test -n "$MAKE_PACKAGE_SUPPORTED"; then 4888 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5164 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. 4889 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
@@ -5168,14 +4893,14 @@ for as_dir in $PATH
5168do 4893do
5169 IFS=$as_save_IFS 4894 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=. 4895 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do 4896 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5173 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" 4898 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 break 2 4900 break 2
5176 fi 4901 fi
5177done 4902done
5178 done 4903done
5179IFS=$as_save_IFS 4904IFS=$as_save_IFS
5180 4905
5181 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" 4906 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
@@ -5183,11 +4908,11 @@ fi
5183fi 4908fi
5184MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED 4909MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
5185if test -n "$MAKE_PACKAGE_SUPPORTED"; then 4910if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5 4911 { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5
5187$as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; } 4912echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; }
5188else 4913else
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4914 { echo "$as_me:$LINENO: result: no" >&5
5190$as_echo "no" >&6; } 4915echo "${ECHO_T}no" >&6; }
5191fi 4916fi
5192 4917
5193 4918
@@ -5201,16 +4926,16 @@ fi
5201 4926
5202# System features 4927# System features
5203# Check whether --enable-largefile was given. 4928# Check whether --enable-largefile was given.
5204if test "${enable_largefile+set}" = set; then : 4929if test "${enable_largefile+set}" = set; then
5205 enableval=$enable_largefile; 4930 enableval=$enable_largefile;
5206fi 4931fi
5207 4932
5208if test "$enable_largefile" != no; then 4933if test "$enable_largefile" != no; then
5209 4934
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 4935 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5211$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 4936echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5212if ${ac_cv_sys_largefile_CC+:} false; then : 4937if test "${ac_cv_sys_largefile_CC+set}" = set; then
5213 $as_echo_n "(cached) " >&6 4938 echo $ECHO_N "(cached) $ECHO_C" >&6
5214else 4939else
5215 ac_cv_sys_largefile_CC=no 4940 ac_cv_sys_largefile_CC=no
5216 if test "$GCC" != yes; then 4941 if test "$GCC" != yes; then
@@ -5218,7 +4943,11 @@ else
5218 while :; do 4943 while :; do
5219 # IRIX 6.2 and later do not support large files by default, 4944 # IRIX 6.2 and later do not support large files by default,
5220 # so use the C compiler's -n32 option if that helps. 4945 # so use the C compiler's -n32 option if that helps.
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4946 cat >conftest.$ac_ext <<_ACEOF
4947/* confdefs.h. */
4948_ACEOF
4949cat confdefs.h >>conftest.$ac_ext
4950cat >>conftest.$ac_ext <<_ACEOF
5222/* end confdefs.h. */ 4951/* end confdefs.h. */
5223#include <sys/types.h> 4952#include <sys/types.h>
5224 /* Check that off_t can represent 2**63 - 1 correctly. 4953 /* Check that off_t can represent 2**63 - 1 correctly.
@@ -5237,14 +4966,58 @@ main ()
5237 return 0; 4966 return 0;
5238} 4967}
5239_ACEOF 4968_ACEOF
5240 if ac_fn_c_try_compile "$LINENO"; then : 4969 rm -f conftest.$ac_objext
4970if { (ac_try="$ac_compile"
4971case "(($ac_try" in
4972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973 *) ac_try_echo=$ac_try;;
4974esac
4975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4976 (eval "$ac_compile") 2>conftest.er1
4977 ac_status=$?
4978 grep -v '^ *+' conftest.er1 >conftest.err
4979 rm -f conftest.er1
4980 cat conftest.err >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } && {
4983 test -z "$ac_c_werror_flag" ||
4984 test ! -s conftest.err
4985 } && test -s conftest.$ac_objext; then
5241 break 4986 break
4987else
4988 echo "$as_me: failed program was:" >&5
4989sed 's/^/| /' conftest.$ac_ext >&5
4990
4991
5242fi 4992fi
4993
5243rm -f core conftest.err conftest.$ac_objext 4994rm -f core conftest.err conftest.$ac_objext
5244 CC="$CC -n32" 4995 CC="$CC -n32"
5245 if ac_fn_c_try_compile "$LINENO"; then : 4996 rm -f conftest.$ac_objext
4997if { (ac_try="$ac_compile"
4998case "(($ac_try" in
4999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5000 *) ac_try_echo=$ac_try;;
5001esac
5002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5003 (eval "$ac_compile") 2>conftest.er1
5004 ac_status=$?
5005 grep -v '^ *+' conftest.er1 >conftest.err
5006 rm -f conftest.er1
5007 cat conftest.err >&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } && {
5010 test -z "$ac_c_werror_flag" ||
5011 test ! -s conftest.err
5012 } && test -s conftest.$ac_objext; then
5246 ac_cv_sys_largefile_CC=' -n32'; break 5013 ac_cv_sys_largefile_CC=' -n32'; break
5014else
5015 echo "$as_me: failed program was:" >&5
5016sed 's/^/| /' conftest.$ac_ext >&5
5017
5018
5247fi 5019fi
5020
5248rm -f core conftest.err conftest.$ac_objext 5021rm -f core conftest.err conftest.$ac_objext
5249 break 5022 break
5250 done 5023 done
@@ -5252,19 +5025,23 @@ rm -f core conftest.err conftest.$ac_objext
5252 rm -f conftest.$ac_ext 5025 rm -f conftest.$ac_ext
5253 fi 5026 fi
5254fi 5027fi
5255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 5028{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5256$as_echo "$ac_cv_sys_largefile_CC" >&6; } 5029echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5257 if test "$ac_cv_sys_largefile_CC" != no; then 5030 if test "$ac_cv_sys_largefile_CC" != no; then
5258 CC=$CC$ac_cv_sys_largefile_CC 5031 CC=$CC$ac_cv_sys_largefile_CC
5259 fi 5032 fi
5260 5033
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 5034 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5262$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 5035echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5263if ${ac_cv_sys_file_offset_bits+:} false; then : 5036if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5264 $as_echo_n "(cached) " >&6 5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5265else 5038else
5266 while :; do 5039 while :; do
5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5040 cat >conftest.$ac_ext <<_ACEOF
5041/* confdefs.h. */
5042_ACEOF
5043cat confdefs.h >>conftest.$ac_ext
5044cat >>conftest.$ac_ext <<_ACEOF
5268/* end confdefs.h. */ 5045/* end confdefs.h. */
5269#include <sys/types.h> 5046#include <sys/types.h>
5270 /* Check that off_t can represent 2**63 - 1 correctly. 5047 /* Check that off_t can represent 2**63 - 1 correctly.
@@ -5283,11 +5060,37 @@ main ()
5283 return 0; 5060 return 0;
5284} 5061}
5285_ACEOF 5062_ACEOF
5286if ac_fn_c_try_compile "$LINENO"; then : 5063rm -f conftest.$ac_objext
5064if { (ac_try="$ac_compile"
5065case "(($ac_try" in
5066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067 *) ac_try_echo=$ac_try;;
5068esac
5069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5070 (eval "$ac_compile") 2>conftest.er1
5071 ac_status=$?
5072 grep -v '^ *+' conftest.er1 >conftest.err
5073 rm -f conftest.er1
5074 cat conftest.err >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } && {
5077 test -z "$ac_c_werror_flag" ||
5078 test ! -s conftest.err
5079 } && test -s conftest.$ac_objext; then
5287 ac_cv_sys_file_offset_bits=no; break 5080 ac_cv_sys_file_offset_bits=no; break
5081else
5082 echo "$as_me: failed program was:" >&5
5083sed 's/^/| /' conftest.$ac_ext >&5
5084
5085
5288fi 5086fi
5087
5289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5089 cat >conftest.$ac_ext <<_ACEOF
5090/* confdefs.h. */
5091_ACEOF
5092cat confdefs.h >>conftest.$ac_ext
5093cat >>conftest.$ac_ext <<_ACEOF
5291/* end confdefs.h. */ 5094/* end confdefs.h. */
5292#define _FILE_OFFSET_BITS 64 5095#define _FILE_OFFSET_BITS 64
5293#include <sys/types.h> 5096#include <sys/types.h>
@@ -5307,16 +5110,38 @@ main ()
5307 return 0; 5110 return 0;
5308} 5111}
5309_ACEOF 5112_ACEOF
5310if ac_fn_c_try_compile "$LINENO"; then : 5113rm -f conftest.$ac_objext
5114if { (ac_try="$ac_compile"
5115case "(($ac_try" in
5116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5117 *) ac_try_echo=$ac_try;;
5118esac
5119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5120 (eval "$ac_compile") 2>conftest.er1
5121 ac_status=$?
5122 grep -v '^ *+' conftest.er1 >conftest.err
5123 rm -f conftest.er1
5124 cat conftest.err >&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); } && {
5127 test -z "$ac_c_werror_flag" ||
5128 test ! -s conftest.err
5129 } && test -s conftest.$ac_objext; then
5311 ac_cv_sys_file_offset_bits=64; break 5130 ac_cv_sys_file_offset_bits=64; break
5131else
5132 echo "$as_me: failed program was:" >&5
5133sed 's/^/| /' conftest.$ac_ext >&5
5134
5135
5312fi 5136fi
5137
5313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314 ac_cv_sys_file_offset_bits=unknown 5139 ac_cv_sys_file_offset_bits=unknown
5315 break 5140 break
5316done 5141done
5317fi 5142fi
5318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 5143{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5319$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 5144echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5320case $ac_cv_sys_file_offset_bits in #( 5145case $ac_cv_sys_file_offset_bits in #(
5321 no | unknown) ;; 5146 no | unknown) ;;
5322 *) 5147 *)
@@ -5325,15 +5150,19 @@ cat >>confdefs.h <<_ACEOF
5325_ACEOF 5150_ACEOF
5326;; 5151;;
5327esac 5152esac
5328rm -rf conftest* 5153rm -f conftest*
5329 if test $ac_cv_sys_file_offset_bits = unknown; then 5154 if test $ac_cv_sys_file_offset_bits = unknown; then
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 5155 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5331$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 5156echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5332if ${ac_cv_sys_large_files+:} false; then : 5157if test "${ac_cv_sys_large_files+set}" = set; then
5333 $as_echo_n "(cached) " >&6 5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5334else 5159else
5335 while :; do 5160 while :; do
5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5161 cat >conftest.$ac_ext <<_ACEOF
5162/* confdefs.h. */
5163_ACEOF
5164cat confdefs.h >>conftest.$ac_ext
5165cat >>conftest.$ac_ext <<_ACEOF
5337/* end confdefs.h. */ 5166/* end confdefs.h. */
5338#include <sys/types.h> 5167#include <sys/types.h>
5339 /* Check that off_t can represent 2**63 - 1 correctly. 5168 /* Check that off_t can represent 2**63 - 1 correctly.
@@ -5352,11 +5181,37 @@ main ()
5352 return 0; 5181 return 0;
5353} 5182}
5354_ACEOF 5183_ACEOF
5355if ac_fn_c_try_compile "$LINENO"; then : 5184rm -f conftest.$ac_objext
5185if { (ac_try="$ac_compile"
5186case "(($ac_try" in
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5189esac
5190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191 (eval "$ac_compile") 2>conftest.er1
5192 ac_status=$?
5193 grep -v '^ *+' conftest.er1 >conftest.err
5194 rm -f conftest.er1
5195 cat conftest.err >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } && {
5198 test -z "$ac_c_werror_flag" ||
5199 test ! -s conftest.err
5200 } && test -s conftest.$ac_objext; then
5356 ac_cv_sys_large_files=no; break 5201 ac_cv_sys_large_files=no; break
5202else
5203 echo "$as_me: failed program was:" >&5
5204sed 's/^/| /' conftest.$ac_ext >&5
5205
5206
5357fi 5207fi
5208
5358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5210 cat >conftest.$ac_ext <<_ACEOF
5211/* confdefs.h. */
5212_ACEOF
5213cat confdefs.h >>conftest.$ac_ext
5214cat >>conftest.$ac_ext <<_ACEOF
5360/* end confdefs.h. */ 5215/* end confdefs.h. */
5361#define _LARGE_FILES 1 5216#define _LARGE_FILES 1
5362#include <sys/types.h> 5217#include <sys/types.h>
@@ -5376,16 +5231,38 @@ main ()
5376 return 0; 5231 return 0;
5377} 5232}
5378_ACEOF 5233_ACEOF
5379if ac_fn_c_try_compile "$LINENO"; then : 5234rm -f conftest.$ac_objext
5235if { (ac_try="$ac_compile"
5236case "(($ac_try" in
5237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5238 *) ac_try_echo=$ac_try;;
5239esac
5240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5241 (eval "$ac_compile") 2>conftest.er1
5242 ac_status=$?
5243 grep -v '^ *+' conftest.er1 >conftest.err
5244 rm -f conftest.er1
5245 cat conftest.err >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); } && {
5248 test -z "$ac_c_werror_flag" ||
5249 test ! -s conftest.err
5250 } && test -s conftest.$ac_objext; then
5380 ac_cv_sys_large_files=1; break 5251 ac_cv_sys_large_files=1; break
5252else
5253 echo "$as_me: failed program was:" >&5
5254sed 's/^/| /' conftest.$ac_ext >&5
5255
5256
5381fi 5257fi
5258
5382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383 ac_cv_sys_large_files=unknown 5260 ac_cv_sys_large_files=unknown
5384 break 5261 break
5385done 5262done
5386fi 5263fi
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 5264{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5388$as_echo "$ac_cv_sys_large_files" >&6; } 5265echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5389case $ac_cv_sys_large_files in #( 5266case $ac_cv_sys_large_files in #(
5390 no | unknown) ;; 5267 no | unknown) ;;
5391 *) 5268 *)
@@ -5394,13 +5271,15 @@ cat >>confdefs.h <<_ACEOF
5394_ACEOF 5271_ACEOF
5395;; 5272;;
5396esac 5273esac
5397rm -rf conftest* 5274rm -f conftest*
5398 fi 5275 fi
5399fi 5276fi
5400 5277
5401 5278
5402if test -z "$AR" ; then 5279if test -z "$AR" ; then
5403 as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5 5280 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
5281echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
5282 { (exit 1); exit 1; }; }
5404fi 5283fi
5405 5284
5406# Use LOGIN_PROGRAM from environment if possible 5285# Use LOGIN_PROGRAM from environment if possible
@@ -5414,10 +5293,10 @@ else
5414 # Search for login 5293 # Search for login
5415 # Extract the first word of "login", so it can be a program name with args. 5294 # Extract the first word of "login", so it can be a program name with args.
5416set dummy login; ac_word=$2 5295set dummy login; ac_word=$2
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5418$as_echo_n "checking for $ac_word... " >&6; } 5297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5419if ${ac_cv_path_LOGIN_PROGRAM_FALLBACK+:} false; then : 5298if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
5420 $as_echo_n "(cached) " >&6 5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5421else 5300else
5422 case $LOGIN_PROGRAM_FALLBACK in 5301 case $LOGIN_PROGRAM_FALLBACK in
5423 [\\/]* | ?:[\\/]*) 5302 [\\/]* | ?:[\\/]*)
@@ -5429,14 +5308,14 @@ for as_dir in $PATH
5429do 5308do
5430 IFS=$as_save_IFS 5309 IFS=$as_save_IFS
5431 test -z "$as_dir" && as_dir=. 5310 test -z "$as_dir" && as_dir=.
5432 for ac_exec_ext in '' $ac_executable_extensions; do 5311 for ac_exec_ext in '' $ac_executable_extensions; do
5433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5434 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext" 5313 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5436 break 2 5315 break 2
5437 fi 5316 fi
5438done 5317done
5439 done 5318done
5440IFS=$as_save_IFS 5319IFS=$as_save_IFS
5441 5320
5442 ;; 5321 ;;
@@ -5444,11 +5323,11 @@ esac
5444fi 5323fi
5445LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK 5324LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5446if test -n "$LOGIN_PROGRAM_FALLBACK"; then 5325if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOGIN_PROGRAM_FALLBACK" >&5 5326 { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
5448$as_echo "$LOGIN_PROGRAM_FALLBACK" >&6; } 5327echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; }
5449else 5328else
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5329 { echo "$as_me:$LINENO: result: no" >&5
5451$as_echo "no" >&6; } 5330echo "${ECHO_T}no" >&6; }
5452fi 5331fi
5453 5332
5454 5333
@@ -5462,10 +5341,10 @@ fi
5462 5341
5463# Extract the first word of "passwd", so it can be a program name with args. 5342# Extract the first word of "passwd", so it can be a program name with args.
5464set dummy passwd; ac_word=$2 5343set dummy passwd; ac_word=$2
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5344{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5466$as_echo_n "checking for $ac_word... " >&6; } 5345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5467if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then : 5346if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
5468 $as_echo_n "(cached) " >&6 5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5469else 5348else
5470 case $PATH_PASSWD_PROG in 5349 case $PATH_PASSWD_PROG in
5471 [\\/]* | ?:[\\/]*) 5350 [\\/]* | ?:[\\/]*)
@@ -5477,14 +5356,14 @@ for as_dir in $PATH
5477do 5356do
5478 IFS=$as_save_IFS 5357 IFS=$as_save_IFS
5479 test -z "$as_dir" && as_dir=. 5358 test -z "$as_dir" && as_dir=.
5480 for ac_exec_ext in '' $ac_executable_extensions; do 5359 for ac_exec_ext in '' $ac_executable_extensions; do
5481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5482 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" 5361 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5484 break 2 5363 break 2
5485 fi 5364 fi
5486done 5365done
5487 done 5366done
5488IFS=$as_save_IFS 5367IFS=$as_save_IFS
5489 5368
5490 ;; 5369 ;;
@@ -5492,11 +5371,11 @@ esac
5492fi 5371fi
5493PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG 5372PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5494if test -n "$PATH_PASSWD_PROG"; then 5373if test -n "$PATH_PASSWD_PROG"; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5 5374 { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5
5496$as_echo "$PATH_PASSWD_PROG" >&6; } 5375echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; }
5497else 5376else
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5377 { echo "$as_me:$LINENO: result: no" >&5
5499$as_echo "no" >&6; } 5378echo "${ECHO_T}no" >&6; }
5500fi 5379fi
5501 5380
5502 5381
@@ -5513,14 +5392,18 @@ if test -z "$LD" ; then
5513fi 5392fi
5514 5393
5515 5394
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 5395{ echo "$as_me:$LINENO: checking for inline" >&5
5517$as_echo_n "checking for inline... " >&6; } 5396echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5518if ${ac_cv_c_inline+:} false; then : 5397if test "${ac_cv_c_inline+set}" = set; then
5519 $as_echo_n "(cached) " >&6 5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5520else 5399else
5521 ac_cv_c_inline=no 5400 ac_cv_c_inline=no
5522for ac_kw in inline __inline__ __inline; do 5401for ac_kw in inline __inline__ __inline; do
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5402 cat >conftest.$ac_ext <<_ACEOF
5403/* confdefs.h. */
5404_ACEOF
5405cat confdefs.h >>conftest.$ac_ext
5406cat >>conftest.$ac_ext <<_ACEOF
5524/* end confdefs.h. */ 5407/* end confdefs.h. */
5525#ifndef __cplusplus 5408#ifndef __cplusplus
5526typedef int foo_t; 5409typedef int foo_t;
@@ -5529,16 +5412,39 @@ $ac_kw foo_t foo () {return 0; }
5529#endif 5412#endif
5530 5413
5531_ACEOF 5414_ACEOF
5532if ac_fn_c_try_compile "$LINENO"; then : 5415rm -f conftest.$ac_objext
5416if { (ac_try="$ac_compile"
5417case "(($ac_try" in
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5420esac
5421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422 (eval "$ac_compile") 2>conftest.er1
5423 ac_status=$?
5424 grep -v '^ *+' conftest.er1 >conftest.err
5425 rm -f conftest.er1
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } && {
5429 test -z "$ac_c_werror_flag" ||
5430 test ! -s conftest.err
5431 } && test -s conftest.$ac_objext; then
5533 ac_cv_c_inline=$ac_kw 5432 ac_cv_c_inline=$ac_kw
5433else
5434 echo "$as_me: failed program was:" >&5
5435sed 's/^/| /' conftest.$ac_ext >&5
5436
5437
5534fi 5438fi
5439
5535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536 test "$ac_cv_c_inline" != no && break 5441 test "$ac_cv_c_inline" != no && break
5537done 5442done
5538 5443
5539fi 5444fi
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 5445{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5541$as_echo "$ac_cv_c_inline" >&6; } 5446echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5447
5542 5448
5543case $ac_cv_c_inline in 5449case $ac_cv_c_inline in
5544 inline | yes) ;; 5450 inline | yes) ;;
@@ -5556,48 +5462,312 @@ _ACEOF
5556esac 5462esac
5557 5463
5558 5464
5559ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h> 5465{ echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5560" 5466echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5561if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then : 5467if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5469else
5470 cat >conftest.$ac_ext <<_ACEOF
5471/* confdefs.h. */
5472_ACEOF
5473cat confdefs.h >>conftest.$ac_ext
5474cat >>conftest.$ac_ext <<_ACEOF
5475/* end confdefs.h. */
5476#include <limits.h>
5477
5478int
5479main ()
5480{
5481#ifndef LLONG_MAX
5482 (void) LLONG_MAX;
5483#endif
5484
5485 ;
5486 return 0;
5487}
5488_ACEOF
5489rm -f conftest.$ac_objext
5490if { (ac_try="$ac_compile"
5491case "(($ac_try" in
5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493 *) ac_try_echo=$ac_try;;
5494esac
5495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496 (eval "$ac_compile") 2>conftest.er1
5497 ac_status=$?
5498 grep -v '^ *+' conftest.er1 >conftest.err
5499 rm -f conftest.er1
5500 cat conftest.err >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } && {
5503 test -z "$ac_c_werror_flag" ||
5504 test ! -s conftest.err
5505 } && test -s conftest.$ac_objext; then
5506 ac_cv_have_decl_LLONG_MAX=yes
5507else
5508 echo "$as_me: failed program was:" >&5
5509sed 's/^/| /' conftest.$ac_ext >&5
5510
5511 ac_cv_have_decl_LLONG_MAX=no
5512fi
5513
5514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5515fi
5516{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5517echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5518if test $ac_cv_have_decl_LLONG_MAX = yes; then
5562 have_llong_max=1 5519 have_llong_max=1
5563fi 5520fi
5564 5521
5565ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" " 5522{ echo "$as_me:$LINENO: checking whether SYSTR_POLICY_KILL is declared" >&5
5523echo $ECHO_N "checking whether SYSTR_POLICY_KILL is declared... $ECHO_C" >&6; }
5524if test "${ac_cv_have_decl_SYSTR_POLICY_KILL+set}" = set; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5526else
5527 cat >conftest.$ac_ext <<_ACEOF
5528/* confdefs.h. */
5529_ACEOF
5530cat confdefs.h >>conftest.$ac_ext
5531cat >>conftest.$ac_ext <<_ACEOF
5532/* end confdefs.h. */
5533
5566 #include <sys/types.h> 5534 #include <sys/types.h>
5567 #include <sys/param.h> 5535 #include <sys/param.h>
5568 #include <dev/systrace.h> 5536 #include <dev/systrace.h>
5569 5537
5570" 5538
5571if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = xyes; then : 5539int
5540main ()
5541{
5542#ifndef SYSTR_POLICY_KILL
5543 (void) SYSTR_POLICY_KILL;
5544#endif
5545
5546 ;
5547 return 0;
5548}
5549_ACEOF
5550rm -f conftest.$ac_objext
5551if { (ac_try="$ac_compile"
5552case "(($ac_try" in
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5555esac
5556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557 (eval "$ac_compile") 2>conftest.er1
5558 ac_status=$?
5559 grep -v '^ *+' conftest.er1 >conftest.err
5560 rm -f conftest.er1
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } && {
5564 test -z "$ac_c_werror_flag" ||
5565 test ! -s conftest.err
5566 } && test -s conftest.$ac_objext; then
5567 ac_cv_have_decl_SYSTR_POLICY_KILL=yes
5568else
5569 echo "$as_me: failed program was:" >&5
5570sed 's/^/| /' conftest.$ac_ext >&5
5571
5572 ac_cv_have_decl_SYSTR_POLICY_KILL=no
5573fi
5574
5575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576fi
5577{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SYSTR_POLICY_KILL" >&5
5578echo "${ECHO_T}$ac_cv_have_decl_SYSTR_POLICY_KILL" >&6; }
5579if test $ac_cv_have_decl_SYSTR_POLICY_KILL = yes; then
5572 have_systr_policy_kill=1 5580 have_systr_policy_kill=1
5573fi 5581fi
5574 5582
5575ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" " 5583{ echo "$as_me:$LINENO: checking whether RLIMIT_NPROC is declared" >&5
5584echo $ECHO_N "checking whether RLIMIT_NPROC is declared... $ECHO_C" >&6; }
5585if test "${ac_cv_have_decl_RLIMIT_NPROC+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5587else
5588 cat >conftest.$ac_ext <<_ACEOF
5589/* confdefs.h. */
5590_ACEOF
5591cat confdefs.h >>conftest.$ac_ext
5592cat >>conftest.$ac_ext <<_ACEOF
5593/* end confdefs.h. */
5594
5576 #include <sys/types.h> 5595 #include <sys/types.h>
5577 #include <sys/resource.h> 5596 #include <sys/resource.h>
5578 5597
5579"
5580if test "x$ac_cv_have_decl_RLIMIT_NPROC" = xyes; then :
5581 5598
5582$as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h 5599int
5600main ()
5601{
5602#ifndef RLIMIT_NPROC
5603 (void) RLIMIT_NPROC;
5604#endif
5583 5605
5606 ;
5607 return 0;
5608}
5609_ACEOF
5610rm -f conftest.$ac_objext
5611if { (ac_try="$ac_compile"
5612case "(($ac_try" in
5613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614 *) ac_try_echo=$ac_try;;
5615esac
5616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5617 (eval "$ac_compile") 2>conftest.er1
5618 ac_status=$?
5619 grep -v '^ *+' conftest.er1 >conftest.err
5620 rm -f conftest.er1
5621 cat conftest.err >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } && {
5624 test -z "$ac_c_werror_flag" ||
5625 test ! -s conftest.err
5626 } && test -s conftest.$ac_objext; then
5627 ac_cv_have_decl_RLIMIT_NPROC=yes
5628else
5629 echo "$as_me: failed program was:" >&5
5630sed 's/^/| /' conftest.$ac_ext >&5
5631
5632 ac_cv_have_decl_RLIMIT_NPROC=no
5584fi 5633fi
5585 5634
5586ac_fn_c_check_decl "$LINENO" "PR_SET_NO_NEW_PRIVS" "ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" " 5635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5636fi
5637{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_RLIMIT_NPROC" >&5
5638echo "${ECHO_T}$ac_cv_have_decl_RLIMIT_NPROC" >&6; }
5639if test $ac_cv_have_decl_RLIMIT_NPROC = yes; then
5640
5641cat >>confdefs.h <<\_ACEOF
5642#define HAVE_RLIMIT_NPROC
5643_ACEOF
5644
5645fi
5646
5647{ echo "$as_me:$LINENO: checking whether PR_SET_NO_NEW_PRIVS is declared" >&5
5648echo $ECHO_N "checking whether PR_SET_NO_NEW_PRIVS is declared... $ECHO_C" >&6; }
5649if test "${ac_cv_have_decl_PR_SET_NO_NEW_PRIVS+set}" = set; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5651else
5652 cat >conftest.$ac_ext <<_ACEOF
5653/* confdefs.h. */
5654_ACEOF
5655cat confdefs.h >>conftest.$ac_ext
5656cat >>conftest.$ac_ext <<_ACEOF
5657/* end confdefs.h. */
5658
5587 #include <sys/types.h> 5659 #include <sys/types.h>
5588 #include <linux/prctl.h> 5660 #include <linux/prctl.h>
5589 5661
5590" 5662
5591if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then : 5663int
5664main ()
5665{
5666#ifndef PR_SET_NO_NEW_PRIVS
5667 (void) PR_SET_NO_NEW_PRIVS;
5668#endif
5669
5670 ;
5671 return 0;
5672}
5673_ACEOF
5674rm -f conftest.$ac_objext
5675if { (ac_try="$ac_compile"
5676case "(($ac_try" in
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5679esac
5680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681 (eval "$ac_compile") 2>conftest.er1
5682 ac_status=$?
5683 grep -v '^ *+' conftest.er1 >conftest.err
5684 rm -f conftest.er1
5685 cat conftest.err >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } && {
5688 test -z "$ac_c_werror_flag" ||
5689 test ! -s conftest.err
5690 } && test -s conftest.$ac_objext; then
5691 ac_cv_have_decl_PR_SET_NO_NEW_PRIVS=yes
5692else
5693 echo "$as_me: failed program was:" >&5
5694sed 's/^/| /' conftest.$ac_ext >&5
5695
5696 ac_cv_have_decl_PR_SET_NO_NEW_PRIVS=no
5697fi
5698
5699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700fi
5701{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" >&5
5702echo "${ECHO_T}$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" >&6; }
5703if test $ac_cv_have_decl_PR_SET_NO_NEW_PRIVS = yes; then
5592 have_linux_no_new_privs=1 5704 have_linux_no_new_privs=1
5593fi 5705fi
5594 5706
5595 5707
5708openssl=yes
5709ssh1=yes
5710
5711# Check whether --with-openssl was given.
5712if test "${with_openssl+set}" = set; then
5713 withval=$with_openssl; if test "x$withval" = "xno" ; then
5714 openssl=no
5715 ssh1=no
5716 fi
5717
5718
5719fi
5720
5721{ echo "$as_me:$LINENO: checking whether OpenSSL will be used for cryptography" >&5
5722echo $ECHO_N "checking whether OpenSSL will be used for cryptography... $ECHO_C" >&6; }
5723if test "x$openssl" = "xyes" ; then
5724 { echo "$as_me:$LINENO: result: yes" >&5
5725echo "${ECHO_T}yes" >&6; }
5726
5727cat >>confdefs.h <<_ACEOF
5728#define WITH_OPENSSL 1
5729_ACEOF
5730
5731else
5732 { echo "$as_me:$LINENO: result: no" >&5
5733echo "${ECHO_T}no" >&6; }
5734fi
5735
5736
5737# Check whether --with-ssh1 was given.
5738if test "${with_ssh1+set}" = set; then
5739 withval=$with_ssh1;
5740 if test "x$withval" = "xno" ; then
5741 ssh1=no
5742 elif test "x$openssl" = "xno" ; then
5743 { { echo "$as_me:$LINENO: error: Cannot enable SSH protocol 1 with OpenSSL disabled" >&5
5744echo "$as_me: error: Cannot enable SSH protocol 1 with OpenSSL disabled" >&2;}
5745 { (exit 1); exit 1; }; }
5746 fi
5747
5748
5749fi
5750
5751{ echo "$as_me:$LINENO: checking whether SSH protocol 1 support is enabled" >&5
5752echo $ECHO_N "checking whether SSH protocol 1 support is enabled... $ECHO_C" >&6; }
5753if test "x$ssh1" = "xyes" ; then
5754 { echo "$as_me:$LINENO: result: yes" >&5
5755echo "${ECHO_T}yes" >&6; }
5756
5757cat >>confdefs.h <<_ACEOF
5758#define WITH_SSH1 1
5759_ACEOF
5760
5761else
5762 { echo "$as_me:$LINENO: result: no" >&5
5763echo "${ECHO_T}no" >&6; }
5764fi
5765
5596use_stack_protector=1 5766use_stack_protector=1
5597use_toolchain_hardening=1 5767use_toolchain_hardening=1
5598 5768
5599# Check whether --with-stackprotect was given. 5769# Check whether --with-stackprotect was given.
5600if test "${with_stackprotect+set}" = set; then : 5770if test "${with_stackprotect+set}" = set; then
5601 withval=$with_stackprotect; 5771 withval=$with_stackprotect;
5602 if test "x$withval" = "xno"; then 5772 if test "x$withval" = "xno"; then
5603 use_stack_protector=0 5773 use_stack_protector=0
@@ -5606,7 +5776,7 @@ fi
5606 5776
5607 5777
5608# Check whether --with-hardening was given. 5778# Check whether --with-hardening was given.
5609if test "${with_hardening+set}" = set; then : 5779if test "${with_hardening+set}" = set; then
5610 withval=$with_hardening; 5780 withval=$with_hardening;
5611 if test "x$withval" = "xno"; then 5781 if test "x$withval" = "xno"; then
5612 use_toolchain_hardening=0 5782 use_toolchain_hardening=0
@@ -5616,36 +5786,64 @@ fi
5616 5786
5617# We use -Werror for the tests only so that we catch warnings like "this is 5787# We use -Werror for the tests only so that we catch warnings like "this is
5618# on by default" for things like -fPIE. 5788# on by default" for things like -fPIE.
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 5789{ echo "$as_me:$LINENO: checking if $CC supports -Werror" >&5
5620$as_echo_n "checking if $CC supports -Werror... " >&6; } 5790echo $ECHO_N "checking if $CC supports -Werror... $ECHO_C" >&6; }
5621saved_CFLAGS="$CFLAGS" 5791saved_CFLAGS="$CFLAGS"
5622CFLAGS="$CFLAGS -Werror" 5792CFLAGS="$CFLAGS -Werror"
5623cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5793cat >conftest.$ac_ext <<_ACEOF
5794/* confdefs.h. */
5795_ACEOF
5796cat confdefs.h >>conftest.$ac_ext
5797cat >>conftest.$ac_ext <<_ACEOF
5624/* end confdefs.h. */ 5798/* end confdefs.h. */
5625int main(void) { return 0; } 5799int main(void) { return 0; }
5626_ACEOF 5800_ACEOF
5627if ac_fn_c_try_compile "$LINENO"; then : 5801rm -f conftest.$ac_objext
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5802if { (ac_try="$ac_compile"
5629$as_echo "yes" >&6; } 5803case "(($ac_try" in
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5806esac
5807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_compile") 2>conftest.er1
5809 ac_status=$?
5810 grep -v '^ *+' conftest.er1 >conftest.err
5811 rm -f conftest.er1
5812 cat conftest.err >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } && {
5815 test -z "$ac_c_werror_flag" ||
5816 test ! -s conftest.err
5817 } && test -s conftest.$ac_objext; then
5818 { echo "$as_me:$LINENO: result: yes" >&5
5819echo "${ECHO_T}yes" >&6; }
5630 WERROR="-Werror" 5820 WERROR="-Werror"
5631else 5821else
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5822 echo "$as_me: failed program was:" >&5
5633$as_echo "no" >&6; } 5823sed 's/^/| /' conftest.$ac_ext >&5
5824
5825 { echo "$as_me:$LINENO: result: no" >&5
5826echo "${ECHO_T}no" >&6; }
5634 WERROR="" 5827 WERROR=""
5635 5828
5636fi 5829fi
5830
5637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638CFLAGS="$saved_CFLAGS" 5832CFLAGS="$saved_CFLAGS"
5639 5833
5640if test "$GCC" = "yes" || test "$GCC" = "egcs"; then 5834if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5641 { 5835 {
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Qunused-arguments" >&5 5836 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Qunused-arguments" >&5
5643$as_echo_n "checking if $CC supports compile flag -Qunused-arguments... " >&6; } 5837echo $ECHO_N "checking if $CC supports compile flag -Qunused-arguments... $ECHO_C" >&6; }
5644 saved_CFLAGS="$CFLAGS" 5838 saved_CFLAGS="$CFLAGS"
5645 CFLAGS="$CFLAGS $WERROR -Qunused-arguments" 5839 CFLAGS="$CFLAGS $WERROR -Qunused-arguments"
5646 _define_flag="" 5840 _define_flag=""
5647 test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments" 5841 test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments"
5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5842 cat >conftest.$ac_ext <<_ACEOF
5843/* confdefs.h. */
5844_ACEOF
5845cat confdefs.h >>conftest.$ac_ext
5846cat >>conftest.$ac_ext <<_ACEOF
5649/* end confdefs.h. */ 5847/* end confdefs.h. */
5650 5848
5651#include <stdlib.h> 5849#include <stdlib.h>
@@ -5661,34 +5859,58 @@ int main(int argc, char **argv) {
5661} 5859}
5662 5860
5663_ACEOF 5861_ACEOF
5664if ac_fn_c_try_compile "$LINENO"; then : 5862rm -f conftest.$ac_objext
5863if { (ac_try="$ac_compile"
5864case "(($ac_try" in
5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5867esac
5868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869 (eval "$ac_compile") 2>conftest.er1
5870 ac_status=$?
5871 grep -v '^ *+' conftest.er1 >conftest.err
5872 rm -f conftest.er1
5873 cat conftest.err >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } && {
5876 test -z "$ac_c_werror_flag" ||
5877 test ! -s conftest.err
5878 } && test -s conftest.$ac_objext; then
5665 5879
5666if `grep -i "unrecognized option" conftest.err >/dev/null` 5880if `grep -i "unrecognized option" conftest.err >/dev/null`
5667then 5881then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5882 { echo "$as_me:$LINENO: result: no" >&5
5669$as_echo "no" >&6; } 5883echo "${ECHO_T}no" >&6; }
5670 CFLAGS="$saved_CFLAGS" 5884 CFLAGS="$saved_CFLAGS"
5671else 5885else
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5886 { echo "$as_me:$LINENO: result: yes" >&5
5673$as_echo "yes" >&6; } 5887echo "${ECHO_T}yes" >&6; }
5674 CFLAGS="$saved_CFLAGS $_define_flag" 5888 CFLAGS="$saved_CFLAGS $_define_flag"
5675fi 5889fi
5676else 5890else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5891 echo "$as_me: failed program was:" >&5
5678$as_echo "no" >&6; } 5892sed 's/^/| /' conftest.$ac_ext >&5
5893
5894 { echo "$as_me:$LINENO: result: no" >&5
5895echo "${ECHO_T}no" >&6; }
5679 CFLAGS="$saved_CFLAGS" 5896 CFLAGS="$saved_CFLAGS"
5680 5897
5681fi 5898fi
5899
5682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683} 5901}
5684 { 5902 {
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunknown-warning-option" >&5 5903 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wunknown-warning-option" >&5
5686$as_echo_n "checking if $CC supports compile flag -Wunknown-warning-option... " >&6; } 5904echo $ECHO_N "checking if $CC supports compile flag -Wunknown-warning-option... $ECHO_C" >&6; }
5687 saved_CFLAGS="$CFLAGS" 5905 saved_CFLAGS="$CFLAGS"
5688 CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option" 5906 CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option"
5689 _define_flag="" 5907 _define_flag=""
5690 test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option" 5908 test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option"
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5909 cat >conftest.$ac_ext <<_ACEOF
5910/* confdefs.h. */
5911_ACEOF
5912cat confdefs.h >>conftest.$ac_ext
5913cat >>conftest.$ac_ext <<_ACEOF
5692/* end confdefs.h. */ 5914/* end confdefs.h. */
5693 5915
5694#include <stdlib.h> 5916#include <stdlib.h>
@@ -5704,34 +5926,58 @@ int main(int argc, char **argv) {
5704} 5926}
5705 5927
5706_ACEOF 5928_ACEOF
5707if ac_fn_c_try_compile "$LINENO"; then : 5929rm -f conftest.$ac_objext
5930if { (ac_try="$ac_compile"
5931case "(($ac_try" in
5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933 *) ac_try_echo=$ac_try;;
5934esac
5935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5936 (eval "$ac_compile") 2>conftest.er1
5937 ac_status=$?
5938 grep -v '^ *+' conftest.er1 >conftest.err
5939 rm -f conftest.er1
5940 cat conftest.err >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } && {
5943 test -z "$ac_c_werror_flag" ||
5944 test ! -s conftest.err
5945 } && test -s conftest.$ac_objext; then
5708 5946
5709if `grep -i "unrecognized option" conftest.err >/dev/null` 5947if `grep -i "unrecognized option" conftest.err >/dev/null`
5710then 5948then
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5949 { echo "$as_me:$LINENO: result: no" >&5
5712$as_echo "no" >&6; } 5950echo "${ECHO_T}no" >&6; }
5713 CFLAGS="$saved_CFLAGS" 5951 CFLAGS="$saved_CFLAGS"
5714else 5952else
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5953 { echo "$as_me:$LINENO: result: yes" >&5
5716$as_echo "yes" >&6; } 5954echo "${ECHO_T}yes" >&6; }
5717 CFLAGS="$saved_CFLAGS $_define_flag" 5955 CFLAGS="$saved_CFLAGS $_define_flag"
5718fi 5956fi
5719else 5957else
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5958 echo "$as_me: failed program was:" >&5
5721$as_echo "no" >&6; } 5959sed 's/^/| /' conftest.$ac_ext >&5
5960
5961 { echo "$as_me:$LINENO: result: no" >&5
5962echo "${ECHO_T}no" >&6; }
5722 CFLAGS="$saved_CFLAGS" 5963 CFLAGS="$saved_CFLAGS"
5723 5964
5724fi 5965fi
5966
5725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5726} 5968}
5727 { 5969 {
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wall" >&5 5970 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wall" >&5
5729$as_echo_n "checking if $CC supports compile flag -Wall... " >&6; } 5971echo $ECHO_N "checking if $CC supports compile flag -Wall... $ECHO_C" >&6; }
5730 saved_CFLAGS="$CFLAGS" 5972 saved_CFLAGS="$CFLAGS"
5731 CFLAGS="$CFLAGS $WERROR -Wall" 5973 CFLAGS="$CFLAGS $WERROR -Wall"
5732 _define_flag="" 5974 _define_flag=""
5733 test "x$_define_flag" = "x" && _define_flag="-Wall" 5975 test "x$_define_flag" = "x" && _define_flag="-Wall"
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5976 cat >conftest.$ac_ext <<_ACEOF
5977/* confdefs.h. */
5978_ACEOF
5979cat confdefs.h >>conftest.$ac_ext
5980cat >>conftest.$ac_ext <<_ACEOF
5735/* end confdefs.h. */ 5981/* end confdefs.h. */
5736 5982
5737#include <stdlib.h> 5983#include <stdlib.h>
@@ -5747,34 +5993,58 @@ int main(int argc, char **argv) {
5747} 5993}
5748 5994
5749_ACEOF 5995_ACEOF
5750if ac_fn_c_try_compile "$LINENO"; then : 5996rm -f conftest.$ac_objext
5997if { (ac_try="$ac_compile"
5998case "(($ac_try" in
5999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6000 *) ac_try_echo=$ac_try;;
6001esac
6002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003 (eval "$ac_compile") 2>conftest.er1
6004 ac_status=$?
6005 grep -v '^ *+' conftest.er1 >conftest.err
6006 rm -f conftest.er1
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } && {
6010 test -z "$ac_c_werror_flag" ||
6011 test ! -s conftest.err
6012 } && test -s conftest.$ac_objext; then
5751 6013
5752if `grep -i "unrecognized option" conftest.err >/dev/null` 6014if `grep -i "unrecognized option" conftest.err >/dev/null`
5753then 6015then
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6016 { echo "$as_me:$LINENO: result: no" >&5
5755$as_echo "no" >&6; } 6017echo "${ECHO_T}no" >&6; }
5756 CFLAGS="$saved_CFLAGS" 6018 CFLAGS="$saved_CFLAGS"
5757else 6019else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6020 { echo "$as_me:$LINENO: result: yes" >&5
5759$as_echo "yes" >&6; } 6021echo "${ECHO_T}yes" >&6; }
5760 CFLAGS="$saved_CFLAGS $_define_flag" 6022 CFLAGS="$saved_CFLAGS $_define_flag"
5761fi 6023fi
5762else 6024else
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6025 echo "$as_me: failed program was:" >&5
5764$as_echo "no" >&6; } 6026sed 's/^/| /' conftest.$ac_ext >&5
6027
6028 { echo "$as_me:$LINENO: result: no" >&5
6029echo "${ECHO_T}no" >&6; }
5765 CFLAGS="$saved_CFLAGS" 6030 CFLAGS="$saved_CFLAGS"
5766 6031
5767fi 6032fi
6033
5768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769} 6035}
5770 { 6036 {
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-arith" >&5 6037 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wpointer-arith" >&5
5772$as_echo_n "checking if $CC supports compile flag -Wpointer-arith... " >&6; } 6038echo $ECHO_N "checking if $CC supports compile flag -Wpointer-arith... $ECHO_C" >&6; }
5773 saved_CFLAGS="$CFLAGS" 6039 saved_CFLAGS="$CFLAGS"
5774 CFLAGS="$CFLAGS $WERROR -Wpointer-arith" 6040 CFLAGS="$CFLAGS $WERROR -Wpointer-arith"
5775 _define_flag="" 6041 _define_flag=""
5776 test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith" 6042 test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith"
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6043 cat >conftest.$ac_ext <<_ACEOF
6044/* confdefs.h. */
6045_ACEOF
6046cat confdefs.h >>conftest.$ac_ext
6047cat >>conftest.$ac_ext <<_ACEOF
5778/* end confdefs.h. */ 6048/* end confdefs.h. */
5779 6049
5780#include <stdlib.h> 6050#include <stdlib.h>
@@ -5790,34 +6060,58 @@ int main(int argc, char **argv) {
5790} 6060}
5791 6061
5792_ACEOF 6062_ACEOF
5793if ac_fn_c_try_compile "$LINENO"; then : 6063rm -f conftest.$ac_objext
6064if { (ac_try="$ac_compile"
6065case "(($ac_try" in
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6068esac
6069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070 (eval "$ac_compile") 2>conftest.er1
6071 ac_status=$?
6072 grep -v '^ *+' conftest.er1 >conftest.err
6073 rm -f conftest.er1
6074 cat conftest.err >&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); } && {
6077 test -z "$ac_c_werror_flag" ||
6078 test ! -s conftest.err
6079 } && test -s conftest.$ac_objext; then
5794 6080
5795if `grep -i "unrecognized option" conftest.err >/dev/null` 6081if `grep -i "unrecognized option" conftest.err >/dev/null`
5796then 6082then
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6083 { echo "$as_me:$LINENO: result: no" >&5
5798$as_echo "no" >&6; } 6084echo "${ECHO_T}no" >&6; }
5799 CFLAGS="$saved_CFLAGS" 6085 CFLAGS="$saved_CFLAGS"
5800else 6086else
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6087 { echo "$as_me:$LINENO: result: yes" >&5
5802$as_echo "yes" >&6; } 6088echo "${ECHO_T}yes" >&6; }
5803 CFLAGS="$saved_CFLAGS $_define_flag" 6089 CFLAGS="$saved_CFLAGS $_define_flag"
5804fi 6090fi
5805else 6091else
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6092 echo "$as_me: failed program was:" >&5
5807$as_echo "no" >&6; } 6093sed 's/^/| /' conftest.$ac_ext >&5
6094
6095 { echo "$as_me:$LINENO: result: no" >&5
6096echo "${ECHO_T}no" >&6; }
5808 CFLAGS="$saved_CFLAGS" 6097 CFLAGS="$saved_CFLAGS"
5809 6098
5810fi 6099fi
6100
5811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812} 6102}
5813 { 6103 {
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wuninitialized" >&5 6104 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wuninitialized" >&5
5815$as_echo_n "checking if $CC supports compile flag -Wuninitialized... " >&6; } 6105echo $ECHO_N "checking if $CC supports compile flag -Wuninitialized... $ECHO_C" >&6; }
5816 saved_CFLAGS="$CFLAGS" 6106 saved_CFLAGS="$CFLAGS"
5817 CFLAGS="$CFLAGS $WERROR -Wuninitialized" 6107 CFLAGS="$CFLAGS $WERROR -Wuninitialized"
5818 _define_flag="" 6108 _define_flag=""
5819 test "x$_define_flag" = "x" && _define_flag="-Wuninitialized" 6109 test "x$_define_flag" = "x" && _define_flag="-Wuninitialized"
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6110 cat >conftest.$ac_ext <<_ACEOF
6111/* confdefs.h. */
6112_ACEOF
6113cat confdefs.h >>conftest.$ac_ext
6114cat >>conftest.$ac_ext <<_ACEOF
5821/* end confdefs.h. */ 6115/* end confdefs.h. */
5822 6116
5823#include <stdlib.h> 6117#include <stdlib.h>
@@ -5833,34 +6127,58 @@ int main(int argc, char **argv) {
5833} 6127}
5834 6128
5835_ACEOF 6129_ACEOF
5836if ac_fn_c_try_compile "$LINENO"; then : 6130rm -f conftest.$ac_objext
6131if { (ac_try="$ac_compile"
6132case "(($ac_try" in
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6135esac
6136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137 (eval "$ac_compile") 2>conftest.er1
6138 ac_status=$?
6139 grep -v '^ *+' conftest.er1 >conftest.err
6140 rm -f conftest.er1
6141 cat conftest.err >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } && {
6144 test -z "$ac_c_werror_flag" ||
6145 test ! -s conftest.err
6146 } && test -s conftest.$ac_objext; then
5837 6147
5838if `grep -i "unrecognized option" conftest.err >/dev/null` 6148if `grep -i "unrecognized option" conftest.err >/dev/null`
5839then 6149then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6150 { echo "$as_me:$LINENO: result: no" >&5
5841$as_echo "no" >&6; } 6151echo "${ECHO_T}no" >&6; }
5842 CFLAGS="$saved_CFLAGS" 6152 CFLAGS="$saved_CFLAGS"
5843else 6153else
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6154 { echo "$as_me:$LINENO: result: yes" >&5
5845$as_echo "yes" >&6; } 6155echo "${ECHO_T}yes" >&6; }
5846 CFLAGS="$saved_CFLAGS $_define_flag" 6156 CFLAGS="$saved_CFLAGS $_define_flag"
5847fi 6157fi
5848else 6158else
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6159 echo "$as_me: failed program was:" >&5
5850$as_echo "no" >&6; } 6160sed 's/^/| /' conftest.$ac_ext >&5
6161
6162 { echo "$as_me:$LINENO: result: no" >&5
6163echo "${ECHO_T}no" >&6; }
5851 CFLAGS="$saved_CFLAGS" 6164 CFLAGS="$saved_CFLAGS"
5852 6165
5853fi 6166fi
6167
5854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855} 6169}
5856 { 6170 {
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsign-compare" >&5 6171 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wsign-compare" >&5
5858$as_echo_n "checking if $CC supports compile flag -Wsign-compare... " >&6; } 6172echo $ECHO_N "checking if $CC supports compile flag -Wsign-compare... $ECHO_C" >&6; }
5859 saved_CFLAGS="$CFLAGS" 6173 saved_CFLAGS="$CFLAGS"
5860 CFLAGS="$CFLAGS $WERROR -Wsign-compare" 6174 CFLAGS="$CFLAGS $WERROR -Wsign-compare"
5861 _define_flag="" 6175 _define_flag=""
5862 test "x$_define_flag" = "x" && _define_flag="-Wsign-compare" 6176 test "x$_define_flag" = "x" && _define_flag="-Wsign-compare"
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6177 cat >conftest.$ac_ext <<_ACEOF
6178/* confdefs.h. */
6179_ACEOF
6180cat confdefs.h >>conftest.$ac_ext
6181cat >>conftest.$ac_ext <<_ACEOF
5864/* end confdefs.h. */ 6182/* end confdefs.h. */
5865 6183
5866#include <stdlib.h> 6184#include <stdlib.h>
@@ -5876,34 +6194,58 @@ int main(int argc, char **argv) {
5876} 6194}
5877 6195
5878_ACEOF 6196_ACEOF
5879if ac_fn_c_try_compile "$LINENO"; then : 6197rm -f conftest.$ac_objext
6198if { (ac_try="$ac_compile"
6199case "(($ac_try" in
6200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201 *) ac_try_echo=$ac_try;;
6202esac
6203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6204 (eval "$ac_compile") 2>conftest.er1
6205 ac_status=$?
6206 grep -v '^ *+' conftest.er1 >conftest.err
6207 rm -f conftest.er1
6208 cat conftest.err >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); } && {
6211 test -z "$ac_c_werror_flag" ||
6212 test ! -s conftest.err
6213 } && test -s conftest.$ac_objext; then
5880 6214
5881if `grep -i "unrecognized option" conftest.err >/dev/null` 6215if `grep -i "unrecognized option" conftest.err >/dev/null`
5882then 6216then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6217 { echo "$as_me:$LINENO: result: no" >&5
5884$as_echo "no" >&6; } 6218echo "${ECHO_T}no" >&6; }
5885 CFLAGS="$saved_CFLAGS" 6219 CFLAGS="$saved_CFLAGS"
5886else 6220else
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6221 { echo "$as_me:$LINENO: result: yes" >&5
5888$as_echo "yes" >&6; } 6222echo "${ECHO_T}yes" >&6; }
5889 CFLAGS="$saved_CFLAGS $_define_flag" 6223 CFLAGS="$saved_CFLAGS $_define_flag"
5890fi 6224fi
5891else 6225else
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6226 echo "$as_me: failed program was:" >&5
5893$as_echo "no" >&6; } 6227sed 's/^/| /' conftest.$ac_ext >&5
6228
6229 { echo "$as_me:$LINENO: result: no" >&5
6230echo "${ECHO_T}no" >&6; }
5894 CFLAGS="$saved_CFLAGS" 6231 CFLAGS="$saved_CFLAGS"
5895 6232
5896fi 6233fi
6234
5897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5898} 6236}
5899 { 6237 {
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wformat-security" >&5 6238 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wformat-security" >&5
5901$as_echo_n "checking if $CC supports compile flag -Wformat-security... " >&6; } 6239echo $ECHO_N "checking if $CC supports compile flag -Wformat-security... $ECHO_C" >&6; }
5902 saved_CFLAGS="$CFLAGS" 6240 saved_CFLAGS="$CFLAGS"
5903 CFLAGS="$CFLAGS $WERROR -Wformat-security" 6241 CFLAGS="$CFLAGS $WERROR -Wformat-security"
5904 _define_flag="" 6242 _define_flag=""
5905 test "x$_define_flag" = "x" && _define_flag="-Wformat-security" 6243 test "x$_define_flag" = "x" && _define_flag="-Wformat-security"
5906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6244 cat >conftest.$ac_ext <<_ACEOF
6245/* confdefs.h. */
6246_ACEOF
6247cat confdefs.h >>conftest.$ac_ext
6248cat >>conftest.$ac_ext <<_ACEOF
5907/* end confdefs.h. */ 6249/* end confdefs.h. */
5908 6250
5909#include <stdlib.h> 6251#include <stdlib.h>
@@ -5919,34 +6261,58 @@ int main(int argc, char **argv) {
5919} 6261}
5920 6262
5921_ACEOF 6263_ACEOF
5922if ac_fn_c_try_compile "$LINENO"; then : 6264rm -f conftest.$ac_objext
6265if { (ac_try="$ac_compile"
6266case "(($ac_try" in
6267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268 *) ac_try_echo=$ac_try;;
6269esac
6270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271 (eval "$ac_compile") 2>conftest.er1
6272 ac_status=$?
6273 grep -v '^ *+' conftest.er1 >conftest.err
6274 rm -f conftest.er1
6275 cat conftest.err >&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); } && {
6278 test -z "$ac_c_werror_flag" ||
6279 test ! -s conftest.err
6280 } && test -s conftest.$ac_objext; then
5923 6281
5924if `grep -i "unrecognized option" conftest.err >/dev/null` 6282if `grep -i "unrecognized option" conftest.err >/dev/null`
5925then 6283then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6284 { echo "$as_me:$LINENO: result: no" >&5
5927$as_echo "no" >&6; } 6285echo "${ECHO_T}no" >&6; }
5928 CFLAGS="$saved_CFLAGS" 6286 CFLAGS="$saved_CFLAGS"
5929else 6287else
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6288 { echo "$as_me:$LINENO: result: yes" >&5
5931$as_echo "yes" >&6; } 6289echo "${ECHO_T}yes" >&6; }
5932 CFLAGS="$saved_CFLAGS $_define_flag" 6290 CFLAGS="$saved_CFLAGS $_define_flag"
5933fi 6291fi
5934else 6292else
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6293 echo "$as_me: failed program was:" >&5
5936$as_echo "no" >&6; } 6294sed 's/^/| /' conftest.$ac_ext >&5
6295
6296 { echo "$as_me:$LINENO: result: no" >&5
6297echo "${ECHO_T}no" >&6; }
5937 CFLAGS="$saved_CFLAGS" 6298 CFLAGS="$saved_CFLAGS"
5938 6299
5939fi 6300fi
6301
5940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941} 6303}
5942 { 6304 {
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5 6305 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5
5944$as_echo_n "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... " >&6; } 6306echo $ECHO_N "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... $ECHO_C" >&6; }
5945 saved_CFLAGS="$CFLAGS" 6307 saved_CFLAGS="$CFLAGS"
5946 CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess" 6308 CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess"
5947 _define_flag="" 6309 _define_flag=""
5948 test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess" 6310 test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess"
5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6311 cat >conftest.$ac_ext <<_ACEOF
6312/* confdefs.h. */
6313_ACEOF
6314cat confdefs.h >>conftest.$ac_ext
6315cat >>conftest.$ac_ext <<_ACEOF
5950/* end confdefs.h. */ 6316/* end confdefs.h. */
5951 6317
5952#include <stdlib.h> 6318#include <stdlib.h>
@@ -5962,34 +6328,58 @@ int main(int argc, char **argv) {
5962} 6328}
5963 6329
5964_ACEOF 6330_ACEOF
5965if ac_fn_c_try_compile "$LINENO"; then : 6331rm -f conftest.$ac_objext
6332if { (ac_try="$ac_compile"
6333case "(($ac_try" in
6334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6335 *) ac_try_echo=$ac_try;;
6336esac
6337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6338 (eval "$ac_compile") 2>conftest.er1
6339 ac_status=$?
6340 grep -v '^ *+' conftest.er1 >conftest.err
6341 rm -f conftest.er1
6342 cat conftest.err >&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } && {
6345 test -z "$ac_c_werror_flag" ||
6346 test ! -s conftest.err
6347 } && test -s conftest.$ac_objext; then
5966 6348
5967if `grep -i "unrecognized option" conftest.err >/dev/null` 6349if `grep -i "unrecognized option" conftest.err >/dev/null`
5968then 6350then
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6351 { echo "$as_me:$LINENO: result: no" >&5
5970$as_echo "no" >&6; } 6352echo "${ECHO_T}no" >&6; }
5971 CFLAGS="$saved_CFLAGS" 6353 CFLAGS="$saved_CFLAGS"
5972else 6354else
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6355 { echo "$as_me:$LINENO: result: yes" >&5
5974$as_echo "yes" >&6; } 6356echo "${ECHO_T}yes" >&6; }
5975 CFLAGS="$saved_CFLAGS $_define_flag" 6357 CFLAGS="$saved_CFLAGS $_define_flag"
5976fi 6358fi
5977else 6359else
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6360 echo "$as_me: failed program was:" >&5
5979$as_echo "no" >&6; } 6361sed 's/^/| /' conftest.$ac_ext >&5
6362
6363 { echo "$as_me:$LINENO: result: no" >&5
6364echo "${ECHO_T}no" >&6; }
5980 CFLAGS="$saved_CFLAGS" 6365 CFLAGS="$saved_CFLAGS"
5981 6366
5982fi 6367fi
6368
5983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984} 6370}
5985 { 6371 {
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-sign" >&5 6372 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wpointer-sign" >&5
5987$as_echo_n "checking if $CC supports compile flag -Wpointer-sign... " >&6; } 6373echo $ECHO_N "checking if $CC supports compile flag -Wpointer-sign... $ECHO_C" >&6; }
5988 saved_CFLAGS="$CFLAGS" 6374 saved_CFLAGS="$CFLAGS"
5989 CFLAGS="$CFLAGS $WERROR -Wpointer-sign" 6375 CFLAGS="$CFLAGS $WERROR -Wpointer-sign"
5990 _define_flag="-Wno-pointer-sign" 6376 _define_flag="-Wno-pointer-sign"
5991 test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign" 6377 test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign"
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6378 cat >conftest.$ac_ext <<_ACEOF
6379/* confdefs.h. */
6380_ACEOF
6381cat confdefs.h >>conftest.$ac_ext
6382cat >>conftest.$ac_ext <<_ACEOF
5993/* end confdefs.h. */ 6383/* end confdefs.h. */
5994 6384
5995#include <stdlib.h> 6385#include <stdlib.h>
@@ -6005,34 +6395,58 @@ int main(int argc, char **argv) {
6005} 6395}
6006 6396
6007_ACEOF 6397_ACEOF
6008if ac_fn_c_try_compile "$LINENO"; then : 6398rm -f conftest.$ac_objext
6399if { (ac_try="$ac_compile"
6400case "(($ac_try" in
6401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6402 *) ac_try_echo=$ac_try;;
6403esac
6404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6405 (eval "$ac_compile") 2>conftest.er1
6406 ac_status=$?
6407 grep -v '^ *+' conftest.er1 >conftest.err
6408 rm -f conftest.er1
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } && {
6412 test -z "$ac_c_werror_flag" ||
6413 test ! -s conftest.err
6414 } && test -s conftest.$ac_objext; then
6009 6415
6010if `grep -i "unrecognized option" conftest.err >/dev/null` 6416if `grep -i "unrecognized option" conftest.err >/dev/null`
6011then 6417then
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6418 { echo "$as_me:$LINENO: result: no" >&5
6013$as_echo "no" >&6; } 6419echo "${ECHO_T}no" >&6; }
6014 CFLAGS="$saved_CFLAGS" 6420 CFLAGS="$saved_CFLAGS"
6015else 6421else
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6422 { echo "$as_me:$LINENO: result: yes" >&5
6017$as_echo "yes" >&6; } 6423echo "${ECHO_T}yes" >&6; }
6018 CFLAGS="$saved_CFLAGS $_define_flag" 6424 CFLAGS="$saved_CFLAGS $_define_flag"
6019fi 6425fi
6020else 6426else
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6427 echo "$as_me: failed program was:" >&5
6022$as_echo "no" >&6; } 6428sed 's/^/| /' conftest.$ac_ext >&5
6429
6430 { echo "$as_me:$LINENO: result: no" >&5
6431echo "${ECHO_T}no" >&6; }
6023 CFLAGS="$saved_CFLAGS" 6432 CFLAGS="$saved_CFLAGS"
6024 6433
6025fi 6434fi
6435
6026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027} 6437}
6028 { 6438 {
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunused-result" >&5 6439 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wunused-result" >&5
6030$as_echo_n "checking if $CC supports compile flag -Wunused-result... " >&6; } 6440echo $ECHO_N "checking if $CC supports compile flag -Wunused-result... $ECHO_C" >&6; }
6031 saved_CFLAGS="$CFLAGS" 6441 saved_CFLAGS="$CFLAGS"
6032 CFLAGS="$CFLAGS $WERROR -Wunused-result" 6442 CFLAGS="$CFLAGS $WERROR -Wunused-result"
6033 _define_flag="-Wno-unused-result" 6443 _define_flag="-Wno-unused-result"
6034 test "x$_define_flag" = "x" && _define_flag="-Wunused-result" 6444 test "x$_define_flag" = "x" && _define_flag="-Wunused-result"
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6445 cat >conftest.$ac_ext <<_ACEOF
6446/* confdefs.h. */
6447_ACEOF
6448cat confdefs.h >>conftest.$ac_ext
6449cat >>conftest.$ac_ext <<_ACEOF
6036/* end confdefs.h. */ 6450/* end confdefs.h. */
6037 6451
6038#include <stdlib.h> 6452#include <stdlib.h>
@@ -6048,34 +6462,58 @@ int main(int argc, char **argv) {
6048} 6462}
6049 6463
6050_ACEOF 6464_ACEOF
6051if ac_fn_c_try_compile "$LINENO"; then : 6465rm -f conftest.$ac_objext
6466if { (ac_try="$ac_compile"
6467case "(($ac_try" in
6468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469 *) ac_try_echo=$ac_try;;
6470esac
6471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472 (eval "$ac_compile") 2>conftest.er1
6473 ac_status=$?
6474 grep -v '^ *+' conftest.er1 >conftest.err
6475 rm -f conftest.er1
6476 cat conftest.err >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); } && {
6479 test -z "$ac_c_werror_flag" ||
6480 test ! -s conftest.err
6481 } && test -s conftest.$ac_objext; then
6052 6482
6053if `grep -i "unrecognized option" conftest.err >/dev/null` 6483if `grep -i "unrecognized option" conftest.err >/dev/null`
6054then 6484then
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6485 { echo "$as_me:$LINENO: result: no" >&5
6056$as_echo "no" >&6; } 6486echo "${ECHO_T}no" >&6; }
6057 CFLAGS="$saved_CFLAGS" 6487 CFLAGS="$saved_CFLAGS"
6058else 6488else
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6489 { echo "$as_me:$LINENO: result: yes" >&5
6060$as_echo "yes" >&6; } 6490echo "${ECHO_T}yes" >&6; }
6061 CFLAGS="$saved_CFLAGS $_define_flag" 6491 CFLAGS="$saved_CFLAGS $_define_flag"
6062fi 6492fi
6063else 6493else
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6494 echo "$as_me: failed program was:" >&5
6065$as_echo "no" >&6; } 6495sed 's/^/| /' conftest.$ac_ext >&5
6496
6497 { echo "$as_me:$LINENO: result: no" >&5
6498echo "${ECHO_T}no" >&6; }
6066 CFLAGS="$saved_CFLAGS" 6499 CFLAGS="$saved_CFLAGS"
6067 6500
6068fi 6501fi
6502
6069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6070} 6504}
6071 { 6505 {
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fno-strict-aliasing" >&5 6506 { echo "$as_me:$LINENO: checking if $CC supports compile flag -fno-strict-aliasing" >&5
6073$as_echo_n "checking if $CC supports compile flag -fno-strict-aliasing... " >&6; } 6507echo $ECHO_N "checking if $CC supports compile flag -fno-strict-aliasing... $ECHO_C" >&6; }
6074 saved_CFLAGS="$CFLAGS" 6508 saved_CFLAGS="$CFLAGS"
6075 CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing" 6509 CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing"
6076 _define_flag="" 6510 _define_flag=""
6077 test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing" 6511 test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing"
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6512 cat >conftest.$ac_ext <<_ACEOF
6513/* confdefs.h. */
6514_ACEOF
6515cat confdefs.h >>conftest.$ac_ext
6516cat >>conftest.$ac_ext <<_ACEOF
6079/* end confdefs.h. */ 6517/* end confdefs.h. */
6080 6518
6081#include <stdlib.h> 6519#include <stdlib.h>
@@ -6091,34 +6529,58 @@ int main(int argc, char **argv) {
6091} 6529}
6092 6530
6093_ACEOF 6531_ACEOF
6094if ac_fn_c_try_compile "$LINENO"; then : 6532rm -f conftest.$ac_objext
6533if { (ac_try="$ac_compile"
6534case "(($ac_try" in
6535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536 *) ac_try_echo=$ac_try;;
6537esac
6538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539 (eval "$ac_compile") 2>conftest.er1
6540 ac_status=$?
6541 grep -v '^ *+' conftest.er1 >conftest.err
6542 rm -f conftest.er1
6543 cat conftest.err >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } && {
6546 test -z "$ac_c_werror_flag" ||
6547 test ! -s conftest.err
6548 } && test -s conftest.$ac_objext; then
6095 6549
6096if `grep -i "unrecognized option" conftest.err >/dev/null` 6550if `grep -i "unrecognized option" conftest.err >/dev/null`
6097then 6551then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6552 { echo "$as_me:$LINENO: result: no" >&5
6099$as_echo "no" >&6; } 6553echo "${ECHO_T}no" >&6; }
6100 CFLAGS="$saved_CFLAGS" 6554 CFLAGS="$saved_CFLAGS"
6101else 6555else
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6556 { echo "$as_me:$LINENO: result: yes" >&5
6103$as_echo "yes" >&6; } 6557echo "${ECHO_T}yes" >&6; }
6104 CFLAGS="$saved_CFLAGS $_define_flag" 6558 CFLAGS="$saved_CFLAGS $_define_flag"
6105fi 6559fi
6106else 6560else
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6561 echo "$as_me: failed program was:" >&5
6108$as_echo "no" >&6; } 6562sed 's/^/| /' conftest.$ac_ext >&5
6563
6564 { echo "$as_me:$LINENO: result: no" >&5
6565echo "${ECHO_T}no" >&6; }
6109 CFLAGS="$saved_CFLAGS" 6566 CFLAGS="$saved_CFLAGS"
6110 6567
6111fi 6568fi
6569
6112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6113} 6571}
6114 { 6572 {
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5 6573 { echo "$as_me:$LINENO: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5
6116$as_echo_n "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... " >&6; } 6574echo $ECHO_N "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... $ECHO_C" >&6; }
6117 saved_CFLAGS="$CFLAGS" 6575 saved_CFLAGS="$CFLAGS"
6118 CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2" 6576 CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2"
6119 _define_flag="" 6577 _define_flag=""
6120 test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2" 6578 test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2"
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6579 cat >conftest.$ac_ext <<_ACEOF
6580/* confdefs.h. */
6581_ACEOF
6582cat confdefs.h >>conftest.$ac_ext
6583cat >>conftest.$ac_ext <<_ACEOF
6122/* end confdefs.h. */ 6584/* end confdefs.h. */
6123 6585
6124#include <stdlib.h> 6586#include <stdlib.h>
@@ -6134,35 +6596,59 @@ int main(int argc, char **argv) {
6134} 6596}
6135 6597
6136_ACEOF 6598_ACEOF
6137if ac_fn_c_try_compile "$LINENO"; then : 6599rm -f conftest.$ac_objext
6600if { (ac_try="$ac_compile"
6601case "(($ac_try" in
6602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6603 *) ac_try_echo=$ac_try;;
6604esac
6605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6606 (eval "$ac_compile") 2>conftest.er1
6607 ac_status=$?
6608 grep -v '^ *+' conftest.er1 >conftest.err
6609 rm -f conftest.er1
6610 cat conftest.err >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } && {
6613 test -z "$ac_c_werror_flag" ||
6614 test ! -s conftest.err
6615 } && test -s conftest.$ac_objext; then
6138 6616
6139if `grep -i "unrecognized option" conftest.err >/dev/null` 6617if `grep -i "unrecognized option" conftest.err >/dev/null`
6140then 6618then
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6619 { echo "$as_me:$LINENO: result: no" >&5
6142$as_echo "no" >&6; } 6620echo "${ECHO_T}no" >&6; }
6143 CFLAGS="$saved_CFLAGS" 6621 CFLAGS="$saved_CFLAGS"
6144else 6622else
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6623 { echo "$as_me:$LINENO: result: yes" >&5
6146$as_echo "yes" >&6; } 6624echo "${ECHO_T}yes" >&6; }
6147 CFLAGS="$saved_CFLAGS $_define_flag" 6625 CFLAGS="$saved_CFLAGS $_define_flag"
6148fi 6626fi
6149else 6627else
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6628 echo "$as_me: failed program was:" >&5
6151$as_echo "no" >&6; } 6629sed 's/^/| /' conftest.$ac_ext >&5
6630
6631 { echo "$as_me:$LINENO: result: no" >&5
6632echo "${ECHO_T}no" >&6; }
6152 CFLAGS="$saved_CFLAGS" 6633 CFLAGS="$saved_CFLAGS"
6153 6634
6154fi 6635fi
6636
6155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6156} 6638}
6157 if test "x$use_toolchain_hardening" = "x1"; then 6639 if test "x$use_toolchain_hardening" = "x1"; then
6158 { 6640 {
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,relro" >&5 6641 { echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,relro" >&5
6160$as_echo_n "checking if $LD supports link flag -Wl,-z,relro... " >&6; } 6642echo $ECHO_N "checking if $LD supports link flag -Wl,-z,relro... $ECHO_C" >&6; }
6161 saved_LDFLAGS="$LDFLAGS" 6643 saved_LDFLAGS="$LDFLAGS"
6162 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro" 6644 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro"
6163 _define_flag="" 6645 _define_flag=""
6164 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro" 6646 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro"
6165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6647 cat >conftest.$ac_ext <<_ACEOF
6648/* confdefs.h. */
6649_ACEOF
6650cat confdefs.h >>conftest.$ac_ext
6651cat >>conftest.$ac_ext <<_ACEOF
6166/* end confdefs.h. */ 6652/* end confdefs.h. */
6167 6653
6168#include <stdlib.h> 6654#include <stdlib.h>
@@ -6178,27 +6664,52 @@ int main(int argc, char **argv) {
6178} 6664}
6179 6665
6180_ACEOF 6666_ACEOF
6181if ac_fn_c_try_link "$LINENO"; then : 6667rm -f conftest.$ac_objext conftest$ac_exeext
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6668if { (ac_try="$ac_link"
6183$as_echo "yes" >&6; } 6669case "(($ac_try" in
6670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6671 *) ac_try_echo=$ac_try;;
6672esac
6673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6674 (eval "$ac_link") 2>conftest.er1
6675 ac_status=$?
6676 grep -v '^ *+' conftest.er1 >conftest.err
6677 rm -f conftest.er1
6678 cat conftest.err >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } && {
6681 test -z "$ac_c_werror_flag" ||
6682 test ! -s conftest.err
6683 } && test -s conftest$ac_exeext &&
6684 $as_test_x conftest$ac_exeext; then
6685 { echo "$as_me:$LINENO: result: yes" >&5
6686echo "${ECHO_T}yes" >&6; }
6184 LDFLAGS="$saved_LDFLAGS $_define_flag" 6687 LDFLAGS="$saved_LDFLAGS $_define_flag"
6185else 6688else
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6689 echo "$as_me: failed program was:" >&5
6187$as_echo "no" >&6; } 6690sed 's/^/| /' conftest.$ac_ext >&5
6691
6692 { echo "$as_me:$LINENO: result: no" >&5
6693echo "${ECHO_T}no" >&6; }
6188 LDFLAGS="$saved_LDFLAGS" 6694 LDFLAGS="$saved_LDFLAGS"
6189 6695
6190fi 6696fi
6191rm -f core conftest.err conftest.$ac_objext \ 6697
6192 conftest$ac_exeext conftest.$ac_ext 6698rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6699 conftest$ac_exeext conftest.$ac_ext
6193} 6700}
6194 { 6701 {
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,now" >&5 6702 { echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,now" >&5
6196$as_echo_n "checking if $LD supports link flag -Wl,-z,now... " >&6; } 6703echo $ECHO_N "checking if $LD supports link flag -Wl,-z,now... $ECHO_C" >&6; }
6197 saved_LDFLAGS="$LDFLAGS" 6704 saved_LDFLAGS="$LDFLAGS"
6198 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now" 6705 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now"
6199 _define_flag="" 6706 _define_flag=""
6200 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now" 6707 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now"
6201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6708 cat >conftest.$ac_ext <<_ACEOF
6709/* confdefs.h. */
6710_ACEOF
6711cat confdefs.h >>conftest.$ac_ext
6712cat >>conftest.$ac_ext <<_ACEOF
6202/* end confdefs.h. */ 6713/* end confdefs.h. */
6203 6714
6204#include <stdlib.h> 6715#include <stdlib.h>
@@ -6214,27 +6725,52 @@ int main(int argc, char **argv) {
6214} 6725}
6215 6726
6216_ACEOF 6727_ACEOF
6217if ac_fn_c_try_link "$LINENO"; then : 6728rm -f conftest.$ac_objext conftest$ac_exeext
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6729if { (ac_try="$ac_link"
6219$as_echo "yes" >&6; } 6730case "(($ac_try" in
6731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6732 *) ac_try_echo=$ac_try;;
6733esac
6734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6735 (eval "$ac_link") 2>conftest.er1
6736 ac_status=$?
6737 grep -v '^ *+' conftest.er1 >conftest.err
6738 rm -f conftest.er1
6739 cat conftest.err >&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } && {
6742 test -z "$ac_c_werror_flag" ||
6743 test ! -s conftest.err
6744 } && test -s conftest$ac_exeext &&
6745 $as_test_x conftest$ac_exeext; then
6746 { echo "$as_me:$LINENO: result: yes" >&5
6747echo "${ECHO_T}yes" >&6; }
6220 LDFLAGS="$saved_LDFLAGS $_define_flag" 6748 LDFLAGS="$saved_LDFLAGS $_define_flag"
6221else 6749else
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6750 echo "$as_me: failed program was:" >&5
6223$as_echo "no" >&6; } 6751sed 's/^/| /' conftest.$ac_ext >&5
6752
6753 { echo "$as_me:$LINENO: result: no" >&5
6754echo "${ECHO_T}no" >&6; }
6224 LDFLAGS="$saved_LDFLAGS" 6755 LDFLAGS="$saved_LDFLAGS"
6225 6756
6226fi 6757fi
6227rm -f core conftest.err conftest.$ac_objext \ 6758
6228 conftest$ac_exeext conftest.$ac_ext 6759rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6760 conftest$ac_exeext conftest.$ac_ext
6229} 6761}
6230 { 6762 {
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,noexecstack" >&5 6763 { echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,noexecstack" >&5
6232$as_echo_n "checking if $LD supports link flag -Wl,-z,noexecstack... " >&6; } 6764echo $ECHO_N "checking if $LD supports link flag -Wl,-z,noexecstack... $ECHO_C" >&6; }
6233 saved_LDFLAGS="$LDFLAGS" 6765 saved_LDFLAGS="$LDFLAGS"
6234 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack" 6766 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack"
6235 _define_flag="" 6767 _define_flag=""
6236 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack" 6768 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack"
6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6769 cat >conftest.$ac_ext <<_ACEOF
6770/* confdefs.h. */
6771_ACEOF
6772cat confdefs.h >>conftest.$ac_ext
6773cat >>conftest.$ac_ext <<_ACEOF
6238/* end confdefs.h. */ 6774/* end confdefs.h. */
6239 6775
6240#include <stdlib.h> 6776#include <stdlib.h>
@@ -6250,18 +6786,39 @@ int main(int argc, char **argv) {
6250} 6786}
6251 6787
6252_ACEOF 6788_ACEOF
6253if ac_fn_c_try_link "$LINENO"; then : 6789rm -f conftest.$ac_objext conftest$ac_exeext
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6790if { (ac_try="$ac_link"
6255$as_echo "yes" >&6; } 6791case "(($ac_try" in
6792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6793 *) ac_try_echo=$ac_try;;
6794esac
6795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6796 (eval "$ac_link") 2>conftest.er1
6797 ac_status=$?
6798 grep -v '^ *+' conftest.er1 >conftest.err
6799 rm -f conftest.er1
6800 cat conftest.err >&5
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); } && {
6803 test -z "$ac_c_werror_flag" ||
6804 test ! -s conftest.err
6805 } && test -s conftest$ac_exeext &&
6806 $as_test_x conftest$ac_exeext; then
6807 { echo "$as_me:$LINENO: result: yes" >&5
6808echo "${ECHO_T}yes" >&6; }
6256 LDFLAGS="$saved_LDFLAGS $_define_flag" 6809 LDFLAGS="$saved_LDFLAGS $_define_flag"
6257else 6810else
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6811 echo "$as_me: failed program was:" >&5
6259$as_echo "no" >&6; } 6812sed 's/^/| /' conftest.$ac_ext >&5
6813
6814 { echo "$as_me:$LINENO: result: no" >&5
6815echo "${ECHO_T}no" >&6; }
6260 LDFLAGS="$saved_LDFLAGS" 6816 LDFLAGS="$saved_LDFLAGS"
6261 6817
6262fi 6818fi
6263rm -f core conftest.err conftest.$ac_objext \ 6819
6264 conftest$ac_exeext conftest.$ac_ext 6820rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6821 conftest$ac_exeext conftest.$ac_ext
6265} 6822}
6266 # NB. -ftrapv expects certain support functions to be present in 6823 # NB. -ftrapv expects certain support functions to be present in
6267 # the compiler library (libgcc or similar) to detect integer operations 6824 # the compiler library (libgcc or similar) to detect integer operations
@@ -6269,13 +6826,17 @@ rm -f core conftest.err conftest.$ac_objext \
6269 # actually links. The test program compiled/linked includes a number 6826 # actually links. The test program compiled/linked includes a number
6270 # of integer operations that should exercise this. 6827 # of integer operations that should exercise this.
6271 { 6828 {
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5 6829 { echo "$as_me:$LINENO: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5
6273$as_echo_n "checking if $CC supports compile flag -ftrapv and linking succeeds... " >&6; } 6830echo $ECHO_N "checking if $CC supports compile flag -ftrapv and linking succeeds... $ECHO_C" >&6; }
6274 saved_CFLAGS="$CFLAGS" 6831 saved_CFLAGS="$CFLAGS"
6275 CFLAGS="$CFLAGS $WERROR -ftrapv" 6832 CFLAGS="$CFLAGS $WERROR -ftrapv"
6276 _define_flag="" 6833 _define_flag=""
6277 test "x$_define_flag" = "x" && _define_flag="-ftrapv" 6834 test "x$_define_flag" = "x" && _define_flag="-ftrapv"
6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6835 cat >conftest.$ac_ext <<_ACEOF
6836/* confdefs.h. */
6837_ACEOF
6838cat confdefs.h >>conftest.$ac_ext
6839cat >>conftest.$ac_ext <<_ACEOF
6279/* end confdefs.h. */ 6840/* end confdefs.h. */
6280 6841
6281#include <stdlib.h> 6842#include <stdlib.h>
@@ -6291,30 +6852,51 @@ int main(int argc, char **argv) {
6291} 6852}
6292 6853
6293_ACEOF 6854_ACEOF
6294if ac_fn_c_try_link "$LINENO"; then : 6855rm -f conftest.$ac_objext conftest$ac_exeext
6856if { (ac_try="$ac_link"
6857case "(($ac_try" in
6858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6859 *) ac_try_echo=$ac_try;;
6860esac
6861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6862 (eval "$ac_link") 2>conftest.er1
6863 ac_status=$?
6864 grep -v '^ *+' conftest.er1 >conftest.err
6865 rm -f conftest.er1
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } && {
6869 test -z "$ac_c_werror_flag" ||
6870 test ! -s conftest.err
6871 } && test -s conftest$ac_exeext &&
6872 $as_test_x conftest$ac_exeext; then
6295 6873
6296if `grep -i "unrecognized option" conftest.err >/dev/null` 6874if `grep -i "unrecognized option" conftest.err >/dev/null`
6297then 6875then
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6876 { echo "$as_me:$LINENO: result: no" >&5
6299$as_echo "no" >&6; } 6877echo "${ECHO_T}no" >&6; }
6300 CFLAGS="$saved_CFLAGS" 6878 CFLAGS="$saved_CFLAGS"
6301else 6879else
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6880 { echo "$as_me:$LINENO: result: yes" >&5
6303$as_echo "yes" >&6; } 6881echo "${ECHO_T}yes" >&6; }
6304 CFLAGS="$saved_CFLAGS $_define_flag" 6882 CFLAGS="$saved_CFLAGS $_define_flag"
6305fi 6883fi
6306else 6884else
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6885 echo "$as_me: failed program was:" >&5
6308$as_echo "no" >&6; } 6886sed 's/^/| /' conftest.$ac_ext >&5
6887
6888 { echo "$as_me:$LINENO: result: no" >&5
6889echo "${ECHO_T}no" >&6; }
6309 CFLAGS="$saved_CFLAGS" 6890 CFLAGS="$saved_CFLAGS"
6310 6891
6311fi 6892fi
6312rm -f core conftest.err conftest.$ac_objext \ 6893
6313 conftest$ac_exeext conftest.$ac_ext 6894rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6895 conftest$ac_exeext conftest.$ac_ext
6314} 6896}
6315 fi 6897 fi
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5 6898 { echo "$as_me:$LINENO: checking gcc version" >&5
6317$as_echo_n "checking gcc version... " >&6; } 6899echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
6318 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` 6900 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
6319 case $GCC_VER in 6901 case $GCC_VER in
6320 1.*) no_attrib_nonnull=1 ;; 6902 1.*) no_attrib_nonnull=1 ;;
@@ -6324,14 +6906,18 @@ $as_echo_n "checking gcc version... " >&6; }
6324 2.*) no_attrib_nonnull=1 ;; 6906 2.*) no_attrib_nonnull=1 ;;
6325 *) ;; 6907 *) ;;
6326 esac 6908 esac
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5 6909 { echo "$as_me:$LINENO: result: $GCC_VER" >&5
6328$as_echo "$GCC_VER" >&6; } 6910echo "${ECHO_T}$GCC_VER" >&6; }
6329 6911
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5 6912 { echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5
6331$as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; } 6913echo $ECHO_N "checking if $CC accepts -fno-builtin-memset... $ECHO_C" >&6; }
6332 saved_CFLAGS="$CFLAGS" 6914 saved_CFLAGS="$CFLAGS"
6333 CFLAGS="$CFLAGS -fno-builtin-memset" 6915 CFLAGS="$CFLAGS -fno-builtin-memset"
6334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6916 cat >conftest.$ac_ext <<_ACEOF
6917/* confdefs.h. */
6918_ACEOF
6919cat confdefs.h >>conftest.$ac_ext
6920cat >>conftest.$ac_ext <<_ACEOF
6335/* end confdefs.h. */ 6921/* end confdefs.h. */
6336 #include <string.h> 6922 #include <string.h>
6337int 6923int
@@ -6342,17 +6928,38 @@ main ()
6342 return 0; 6928 return 0;
6343} 6929}
6344_ACEOF 6930_ACEOF
6345if ac_fn_c_try_link "$LINENO"; then : 6931rm -f conftest.$ac_objext conftest$ac_exeext
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6932if { (ac_try="$ac_link"
6347$as_echo "yes" >&6; } 6933case "(($ac_try" in
6934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6935 *) ac_try_echo=$ac_try;;
6936esac
6937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6938 (eval "$ac_link") 2>conftest.er1
6939 ac_status=$?
6940 grep -v '^ *+' conftest.er1 >conftest.err
6941 rm -f conftest.er1
6942 cat conftest.err >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } && {
6945 test -z "$ac_c_werror_flag" ||
6946 test ! -s conftest.err
6947 } && test -s conftest$ac_exeext &&
6948 $as_test_x conftest$ac_exeext; then
6949 { echo "$as_me:$LINENO: result: yes" >&5
6950echo "${ECHO_T}yes" >&6; }
6348else 6951else
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6952 echo "$as_me: failed program was:" >&5
6350$as_echo "no" >&6; } 6953sed 's/^/| /' conftest.$ac_ext >&5
6954
6955 { echo "$as_me:$LINENO: result: no" >&5
6956echo "${ECHO_T}no" >&6; }
6351 CFLAGS="$saved_CFLAGS" 6957 CFLAGS="$saved_CFLAGS"
6352 6958
6353fi 6959fi
6354rm -f core conftest.err conftest.$ac_objext \ 6960
6355 conftest$ac_exeext conftest.$ac_ext 6961rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6962 conftest$ac_exeext conftest.$ac_ext
6356 6963
6357 # -fstack-protector-all doesn't always work for some GCC versions 6964 # -fstack-protector-all doesn't always work for some GCC versions
6358 # and/or platforms, so we test if we can. If it's not supported 6965 # and/or platforms, so we test if we can. If it's not supported
@@ -6360,13 +6967,17 @@ rm -f core conftest.err conftest.$ac_objext \
6360 if test "x$use_stack_protector" = "x1"; then 6967 if test "x$use_stack_protector" = "x1"; then
6361 for t in -fstack-protector-strong -fstack-protector-all \ 6968 for t in -fstack-protector-strong -fstack-protector-all \
6362 -fstack-protector; do 6969 -fstack-protector; do
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5 6970 { echo "$as_me:$LINENO: checking if $CC supports $t" >&5
6364$as_echo_n "checking if $CC supports $t... " >&6; } 6971echo $ECHO_N "checking if $CC supports $t... $ECHO_C" >&6; }
6365 saved_CFLAGS="$CFLAGS" 6972 saved_CFLAGS="$CFLAGS"
6366 saved_LDFLAGS="$LDFLAGS" 6973 saved_LDFLAGS="$LDFLAGS"
6367 CFLAGS="$CFLAGS $t -Werror" 6974 CFLAGS="$CFLAGS $t -Werror"
6368 LDFLAGS="$LDFLAGS $t -Werror" 6975 LDFLAGS="$LDFLAGS $t -Werror"
6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6976 cat >conftest.$ac_ext <<_ACEOF
6977/* confdefs.h. */
6978_ACEOF
6979cat confdefs.h >>conftest.$ac_ext
6980cat >>conftest.$ac_ext <<_ACEOF
6370/* end confdefs.h. */ 6981/* end confdefs.h. */
6371 #include <stdio.h> 6982 #include <stdio.h>
6372int 6983int
@@ -6380,20 +6991,41 @@ main ()
6380 return 0; 6991 return 0;
6381} 6992}
6382_ACEOF 6993_ACEOF
6383if ac_fn_c_try_link "$LINENO"; then : 6994rm -f conftest.$ac_objext conftest$ac_exeext
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6995if { (ac_try="$ac_link"
6385$as_echo "yes" >&6; } 6996case "(($ac_try" in
6997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6998 *) ac_try_echo=$ac_try;;
6999esac
7000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7001 (eval "$ac_link") 2>conftest.er1
7002 ac_status=$?
7003 grep -v '^ *+' conftest.er1 >conftest.err
7004 rm -f conftest.er1
7005 cat conftest.err >&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } && {
7008 test -z "$ac_c_werror_flag" ||
7009 test ! -s conftest.err
7010 } && test -s conftest$ac_exeext &&
7011 $as_test_x conftest$ac_exeext; then
7012 { echo "$as_me:$LINENO: result: yes" >&5
7013echo "${ECHO_T}yes" >&6; }
6386 CFLAGS="$saved_CFLAGS $t" 7014 CFLAGS="$saved_CFLAGS $t"
6387 LDFLAGS="$saved_LDFLAGS $t" 7015 LDFLAGS="$saved_LDFLAGS $t"
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5 7016 { echo "$as_me:$LINENO: checking if $t works" >&5
6389$as_echo_n "checking if $t works... " >&6; } 7017echo $ECHO_N "checking if $t works... $ECHO_C" >&6; }
6390 if test "$cross_compiling" = yes; then : 7018 if test "$cross_compiling" = yes; then
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5 7019 { echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5
6392$as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;} 7020echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
6393 break 7021 break
6394 7022
6395else 7023else
6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7024 cat >conftest.$ac_ext <<_ACEOF
7025/* confdefs.h. */
7026_ACEOF
7027cat confdefs.h >>conftest.$ac_ext
7028cat >>conftest.$ac_ext <<_ACEOF
6397/* end confdefs.h. */ 7029/* end confdefs.h. */
6398 #include <stdio.h> 7030 #include <stdio.h>
6399int 7031int
@@ -6407,26 +7039,54 @@ main ()
6407 return 0; 7039 return 0;
6408} 7040}
6409_ACEOF 7041_ACEOF
6410if ac_fn_c_try_run "$LINENO"; then : 7042rm -f conftest$ac_exeext
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7043if { (ac_try="$ac_link"
6412$as_echo "yes" >&6; } 7044case "(($ac_try" in
7045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7046 *) ac_try_echo=$ac_try;;
7047esac
7048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7049 (eval "$ac_link") 2>&5
7050 ac_status=$?
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7053 { (case "(($ac_try" in
7054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7055 *) ac_try_echo=$ac_try;;
7056esac
7057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7058 (eval "$ac_try") 2>&5
7059 ac_status=$?
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; }; then
7062 { echo "$as_me:$LINENO: result: yes" >&5
7063echo "${ECHO_T}yes" >&6; }
6413 break 7064 break
6414else 7065else
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7066 echo "$as_me: program exited with status $ac_status" >&5
6416$as_echo "no" >&6; } 7067echo "$as_me: failed program was:" >&5
7068sed 's/^/| /' conftest.$ac_ext >&5
7069
7070( exit $ac_status )
7071 { echo "$as_me:$LINENO: result: no" >&5
7072echo "${ECHO_T}no" >&6; }
6417fi 7073fi
6418rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7074rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6419 conftest.$ac_objext conftest.beam conftest.$ac_ext
6420fi 7075fi
6421 7076
6422 7077
7078
6423else 7079else
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7080 echo "$as_me: failed program was:" >&5
6425$as_echo "no" >&6; } 7081sed 's/^/| /' conftest.$ac_ext >&5
7082
7083 { echo "$as_me:$LINENO: result: no" >&5
7084echo "${ECHO_T}no" >&6; }
6426 7085
6427fi 7086fi
6428rm -f core conftest.err conftest.$ac_objext \ 7087
6429 conftest$ac_exeext conftest.$ac_ext 7088rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7089 conftest$ac_exeext conftest.$ac_ext
6430 CFLAGS="$saved_CFLAGS" 7090 CFLAGS="$saved_CFLAGS"
6431 LDFLAGS="$saved_LDFLAGS" 7091 LDFLAGS="$saved_LDFLAGS"
6432 done 7092 done
@@ -6437,10 +7097,61 @@ rm -f core conftest.err conftest.$ac_objext \
6437 unset ac_cv_have_decl_LLONG_MAX 7097 unset ac_cv_have_decl_LLONG_MAX
6438 saved_CFLAGS="$CFLAGS" 7098 saved_CFLAGS="$CFLAGS"
6439 CFLAGS="$CFLAGS -std=gnu99" 7099 CFLAGS="$CFLAGS -std=gnu99"
6440 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h> 7100 { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
7101echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
7102if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7104else
7105 cat >conftest.$ac_ext <<_ACEOF
7106/* confdefs.h. */
7107_ACEOF
7108cat confdefs.h >>conftest.$ac_ext
7109cat >>conftest.$ac_ext <<_ACEOF
7110/* end confdefs.h. */
7111#include <limits.h>
6441 7112
6442" 7113
6443if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then : 7114int
7115main ()
7116{
7117#ifndef LLONG_MAX
7118 (void) LLONG_MAX;
7119#endif
7120
7121 ;
7122 return 0;
7123}
7124_ACEOF
7125rm -f conftest.$ac_objext
7126if { (ac_try="$ac_compile"
7127case "(($ac_try" in
7128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7129 *) ac_try_echo=$ac_try;;
7130esac
7131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7132 (eval "$ac_compile") 2>conftest.er1
7133 ac_status=$?
7134 grep -v '^ *+' conftest.er1 >conftest.err
7135 rm -f conftest.er1
7136 cat conftest.err >&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); } && {
7139 test -z "$ac_c_werror_flag" ||
7140 test ! -s conftest.err
7141 } && test -s conftest.$ac_objext; then
7142 ac_cv_have_decl_LLONG_MAX=yes
7143else
7144 echo "$as_me: failed program was:" >&5
7145sed 's/^/| /' conftest.$ac_ext >&5
7146
7147 ac_cv_have_decl_LLONG_MAX=no
7148fi
7149
7150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7151fi
7152{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
7153echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
7154if test $ac_cv_have_decl_LLONG_MAX = yes; then
6444 have_llong_max=1 7155 have_llong_max=1
6445else 7156else
6446 CFLAGS="$saved_CFLAGS" 7157 CFLAGS="$saved_CFLAGS"
@@ -6449,9 +7160,13 @@ fi
6449 fi 7160 fi
6450fi 7161fi
6451 7162
6452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ on return types" >&5 7163{ echo "$as_me:$LINENO: checking if compiler allows __attribute__ on return types" >&5
6453$as_echo_n "checking if compiler allows __attribute__ on return types... " >&6; } 7164echo $ECHO_N "checking if compiler allows __attribute__ on return types... $ECHO_C" >&6; }
6454cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7165cat >conftest.$ac_ext <<_ACEOF
7166/* confdefs.h. */
7167_ACEOF
7168cat confdefs.h >>conftest.$ac_ext
7169cat >>conftest.$ac_ext <<_ACEOF
6455/* end confdefs.h. */ 7170/* end confdefs.h. */
6456 7171
6457#include <stdlib.h> 7172#include <stdlib.h>
@@ -6464,28 +7179,52 @@ main ()
6464 return 0; 7179 return 0;
6465} 7180}
6466_ACEOF 7181_ACEOF
6467if ac_fn_c_try_compile "$LINENO"; then : 7182rm -f conftest.$ac_objext
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7183if { (ac_try="$ac_compile"
6469$as_echo "yes" >&6; } 7184case "(($ac_try" in
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7187esac
7188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7189 (eval "$ac_compile") 2>conftest.er1
7190 ac_status=$?
7191 grep -v '^ *+' conftest.er1 >conftest.err
7192 rm -f conftest.er1
7193 cat conftest.err >&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); } && {
7196 test -z "$ac_c_werror_flag" ||
7197 test ! -s conftest.err
7198 } && test -s conftest.$ac_objext; then
7199 { echo "$as_me:$LINENO: result: yes" >&5
7200echo "${ECHO_T}yes" >&6; }
6470else 7201else
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7202 echo "$as_me: failed program was:" >&5
6472$as_echo "no" >&6; } 7203sed 's/^/| /' conftest.$ac_ext >&5
6473 7204
6474$as_echo "#define NO_ATTRIBUTE_ON_RETURN_TYPE 1" >>confdefs.h 7205 { echo "$as_me:$LINENO: result: no" >&5
7206echo "${ECHO_T}no" >&6; }
7207
7208cat >>confdefs.h <<\_ACEOF
7209#define NO_ATTRIBUTE_ON_RETURN_TYPE 1
7210_ACEOF
6475 7211
6476 7212
6477fi 7213fi
7214
6478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479 7216
6480if test "x$no_attrib_nonnull" != "x1" ; then 7217if test "x$no_attrib_nonnull" != "x1" ; then
6481 7218
6482$as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h 7219cat >>confdefs.h <<\_ACEOF
7220#define HAVE_ATTRIBUTE__NONNULL__ 1
7221_ACEOF
6483 7222
6484fi 7223fi
6485 7224
6486 7225
6487# Check whether --with-rpath was given. 7226# Check whether --with-rpath was given.
6488if test "${with_rpath+set}" = set; then : 7227if test "${with_rpath+set}" = set; then
6489 withval=$with_rpath; 7228 withval=$with_rpath;
6490 if test "x$withval" = "xno" ; then 7229 if test "x$withval" = "xno" ; then
6491 need_dash_r="" 7230 need_dash_r=""
@@ -6501,7 +7240,7 @@ fi
6501# Allow user to specify flags 7240# Allow user to specify flags
6502 7241
6503# Check whether --with-cflags was given. 7242# Check whether --with-cflags was given.
6504if test "${with_cflags+set}" = set; then : 7243if test "${with_cflags+set}" = set; then
6505 withval=$with_cflags; 7244 withval=$with_cflags;
6506 if test -n "$withval" && test "x$withval" != "xno" && \ 7245 if test -n "$withval" && test "x$withval" != "xno" && \
6507 test "x${withval}" != "xyes"; then 7246 test "x${withval}" != "xyes"; then
@@ -6513,7 +7252,7 @@ fi
6513 7252
6514 7253
6515# Check whether --with-cppflags was given. 7254# Check whether --with-cppflags was given.
6516if test "${with_cppflags+set}" = set; then : 7255if test "${with_cppflags+set}" = set; then
6517 withval=$with_cppflags; 7256 withval=$with_cppflags;
6518 if test -n "$withval" && test "x$withval" != "xno" && \ 7257 if test -n "$withval" && test "x$withval" != "xno" && \
6519 test "x${withval}" != "xyes"; then 7258 test "x${withval}" != "xyes"; then
@@ -6525,7 +7264,7 @@ fi
6525 7264
6526 7265
6527# Check whether --with-ldflags was given. 7266# Check whether --with-ldflags was given.
6528if test "${with_ldflags+set}" = set; then : 7267if test "${with_ldflags+set}" = set; then
6529 withval=$with_ldflags; 7268 withval=$with_ldflags;
6530 if test -n "$withval" && test "x$withval" != "xno" && \ 7269 if test -n "$withval" && test "x$withval" != "xno" && \
6531 test "x${withval}" != "xyes"; then 7270 test "x${withval}" != "xyes"; then
@@ -6537,7 +7276,7 @@ fi
6537 7276
6538 7277
6539# Check whether --with-libs was given. 7278# Check whether --with-libs was given.
6540if test "${with_libs+set}" = set; then : 7279if test "${with_libs+set}" = set; then
6541 withval=$with_libs; 7280 withval=$with_libs;
6542 if test -n "$withval" && test "x$withval" != "xno" && \ 7281 if test -n "$withval" && test "x$withval" != "xno" && \
6543 test "x${withval}" != "xyes"; then 7282 test "x${withval}" != "xyes"; then
@@ -6549,7 +7288,7 @@ fi
6549 7288
6550 7289
6551# Check whether --with-Werror was given. 7290# Check whether --with-Werror was given.
6552if test "${with_Werror+set}" = set; then : 7291if test "${with_Werror+set}" = set; then
6553 withval=$with_Werror; 7292 withval=$with_Werror;
6554 if test -n "$withval" && test "x$withval" != "xno"; then 7293 if test -n "$withval" && test "x$withval" != "xno"; then
6555 werror_flags="-Werror" 7294 werror_flags="-Werror"
@@ -6562,6 +7301,73 @@ if test "${with_Werror+set}" = set; then :
6562fi 7301fi
6563 7302
6564 7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
6565for ac_header in \ 7371for ac_header in \
6566 blf.h \ 7372 blf.h \
6567 bstring.h \ 7373 bstring.h \
@@ -6631,12 +7437,143 @@ for ac_header in \
6631 utmpx.h \ 7437 utmpx.h \
6632 vis.h \ 7438 vis.h \
6633 7439
6634do : 7440do
6635 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7441as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6636ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7442if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6637if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7445if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7447fi
7448ac_res=`eval echo '${'$as_ac_Header'}'`
7449 { echo "$as_me:$LINENO: result: $ac_res" >&5
7450echo "${ECHO_T}$ac_res" >&6; }
7451else
7452 # Is the header compilable?
7453{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7454echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7455cat >conftest.$ac_ext <<_ACEOF
7456/* confdefs.h. */
7457_ACEOF
7458cat confdefs.h >>conftest.$ac_ext
7459cat >>conftest.$ac_ext <<_ACEOF
7460/* end confdefs.h. */
7461$ac_includes_default
7462#include <$ac_header>
7463_ACEOF
7464rm -f conftest.$ac_objext
7465if { (ac_try="$ac_compile"
7466case "(($ac_try" in
7467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7468 *) ac_try_echo=$ac_try;;
7469esac
7470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7471 (eval "$ac_compile") 2>conftest.er1
7472 ac_status=$?
7473 grep -v '^ *+' conftest.er1 >conftest.err
7474 rm -f conftest.er1
7475 cat conftest.err >&5
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); } && {
7478 test -z "$ac_c_werror_flag" ||
7479 test ! -s conftest.err
7480 } && test -s conftest.$ac_objext; then
7481 ac_header_compiler=yes
7482else
7483 echo "$as_me: failed program was:" >&5
7484sed 's/^/| /' conftest.$ac_ext >&5
7485
7486 ac_header_compiler=no
7487fi
7488
7489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7490{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7491echo "${ECHO_T}$ac_header_compiler" >&6; }
7492
7493# Is the header present?
7494{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7495echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7496cat >conftest.$ac_ext <<_ACEOF
7497/* confdefs.h. */
7498_ACEOF
7499cat confdefs.h >>conftest.$ac_ext
7500cat >>conftest.$ac_ext <<_ACEOF
7501/* end confdefs.h. */
7502#include <$ac_header>
7503_ACEOF
7504if { (ac_try="$ac_cpp conftest.$ac_ext"
7505case "(($ac_try" in
7506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7507 *) ac_try_echo=$ac_try;;
7508esac
7509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7511 ac_status=$?
7512 grep -v '^ *+' conftest.er1 >conftest.err
7513 rm -f conftest.er1
7514 cat conftest.err >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } >/dev/null && {
7517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7518 test ! -s conftest.err
7519 }; then
7520 ac_header_preproc=yes
7521else
7522 echo "$as_me: failed program was:" >&5
7523sed 's/^/| /' conftest.$ac_ext >&5
7524
7525 ac_header_preproc=no
7526fi
7527
7528rm -f conftest.err conftest.$ac_ext
7529{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7530echo "${ECHO_T}$ac_header_preproc" >&6; }
7531
7532# So? What about this header?
7533case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7534 yes:no: )
7535 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7536echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7538echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7539 ac_header_preproc=yes
7540 ;;
7541 no:yes:* )
7542 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7543echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7544 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7545echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7546 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7547echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7548 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7549echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7551echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7552 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7553echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7554 ( cat <<\_ASBOX
7555## ------------------------------------------- ##
7556## Report this to openssh-unix-dev@mindrot.org ##
7557## ------------------------------------------- ##
7558_ASBOX
7559 ) | sed "s/^/$as_me: WARNING: /" >&2
7560 ;;
7561esac
7562{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7564if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
7566else
7567 eval "$as_ac_Header=\$ac_header_preproc"
7568fi
7569ac_res=`eval echo '${'$as_ac_Header'}'`
7570 { echo "$as_me:$LINENO: result: $ac_res" >&5
7571echo "${ECHO_T}$ac_res" >&6; }
7572
7573fi
7574if test `eval echo '${'$as_ac_Header'}'` = yes; then
6638 cat >>confdefs.h <<_ACEOF 7575 cat >>confdefs.h <<_ACEOF
6639#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7576#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6640_ACEOF 7577_ACEOF
6641 7578
6642fi 7579fi
@@ -6645,17 +7582,62 @@ done
6645 7582
6646 7583
6647# lastlog.h requires sys/time.h to be included first on Solaris 7584# lastlog.h requires sys/time.h to be included first on Solaris
7585
6648for ac_header in lastlog.h 7586for ac_header in lastlog.h
6649do : 7587do
6650 ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" " 7588as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7589{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7590echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7591if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7593else
7594 cat >conftest.$ac_ext <<_ACEOF
7595/* confdefs.h. */
7596_ACEOF
7597cat confdefs.h >>conftest.$ac_ext
7598cat >>conftest.$ac_ext <<_ACEOF
7599/* end confdefs.h. */
7600
6651#ifdef HAVE_SYS_TIME_H 7601#ifdef HAVE_SYS_TIME_H
6652# include <sys/time.h> 7602# include <sys/time.h>
6653#endif 7603#endif
6654 7604
6655" 7605
6656if test "x$ac_cv_header_lastlog_h" = xyes; then : 7606#include <$ac_header>
7607_ACEOF
7608rm -f conftest.$ac_objext
7609if { (ac_try="$ac_compile"
7610case "(($ac_try" in
7611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7612 *) ac_try_echo=$ac_try;;
7613esac
7614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7615 (eval "$ac_compile") 2>conftest.er1
7616 ac_status=$?
7617 grep -v '^ *+' conftest.er1 >conftest.err
7618 rm -f conftest.er1
7619 cat conftest.err >&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } && {
7622 test -z "$ac_c_werror_flag" ||
7623 test ! -s conftest.err
7624 } && test -s conftest.$ac_objext; then
7625 eval "$as_ac_Header=yes"
7626else
7627 echo "$as_me: failed program was:" >&5
7628sed 's/^/| /' conftest.$ac_ext >&5
7629
7630 eval "$as_ac_Header=no"
7631fi
7632
7633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7634fi
7635ac_res=`eval echo '${'$as_ac_Header'}'`
7636 { echo "$as_me:$LINENO: result: $ac_res" >&5
7637echo "${ECHO_T}$ac_res" >&6; }
7638if test `eval echo '${'$as_ac_Header'}'` = yes; then
6657 cat >>confdefs.h <<_ACEOF 7639 cat >>confdefs.h <<_ACEOF
6658#define HAVE_LASTLOG_H 1 7640#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6659_ACEOF 7641_ACEOF
6660 7642
6661fi 7643fi
@@ -6664,17 +7646,62 @@ done
6664 7646
6665 7647
6666# sys/ptms.h requires sys/stream.h to be included first on Solaris 7648# sys/ptms.h requires sys/stream.h to be included first on Solaris
7649
6667for ac_header in sys/ptms.h 7650for ac_header in sys/ptms.h
6668do : 7651do
6669 ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" " 7652as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7653{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7657else
7658 cat >conftest.$ac_ext <<_ACEOF
7659/* confdefs.h. */
7660_ACEOF
7661cat confdefs.h >>conftest.$ac_ext
7662cat >>conftest.$ac_ext <<_ACEOF
7663/* end confdefs.h. */
7664
6670#ifdef HAVE_SYS_STREAM_H 7665#ifdef HAVE_SYS_STREAM_H
6671# include <sys/stream.h> 7666# include <sys/stream.h>
6672#endif 7667#endif
6673 7668
6674" 7669
6675if test "x$ac_cv_header_sys_ptms_h" = xyes; then : 7670#include <$ac_header>
7671_ACEOF
7672rm -f conftest.$ac_objext
7673if { (ac_try="$ac_compile"
7674case "(($ac_try" in
7675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7676 *) ac_try_echo=$ac_try;;
7677esac
7678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7679 (eval "$ac_compile") 2>conftest.er1
7680 ac_status=$?
7681 grep -v '^ *+' conftest.er1 >conftest.err
7682 rm -f conftest.er1
7683 cat conftest.err >&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); } && {
7686 test -z "$ac_c_werror_flag" ||
7687 test ! -s conftest.err
7688 } && test -s conftest.$ac_objext; then
7689 eval "$as_ac_Header=yes"
7690else
7691 echo "$as_me: failed program was:" >&5
7692sed 's/^/| /' conftest.$ac_ext >&5
7693
7694 eval "$as_ac_Header=no"
7695fi
7696
7697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7698fi
7699ac_res=`eval echo '${'$as_ac_Header'}'`
7700 { echo "$as_me:$LINENO: result: $ac_res" >&5
7701echo "${ECHO_T}$ac_res" >&6; }
7702if test `eval echo '${'$as_ac_Header'}'` = yes; then
6676 cat >>confdefs.h <<_ACEOF 7703 cat >>confdefs.h <<_ACEOF
6677#define HAVE_SYS_PTMS_H 1 7704#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6678_ACEOF 7705_ACEOF
6679 7706
6680fi 7707fi
@@ -6683,15 +7710,60 @@ done
6683 7710
6684 7711
6685# login_cap.h requires sys/types.h on NetBSD 7712# login_cap.h requires sys/types.h on NetBSD
7713
6686for ac_header in login_cap.h 7714for ac_header in login_cap.h
6687do : 7715do
6688 ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" " 7716as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7717{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7719if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
7721else
7722 cat >conftest.$ac_ext <<_ACEOF
7723/* confdefs.h. */
7724_ACEOF
7725cat confdefs.h >>conftest.$ac_ext
7726cat >>conftest.$ac_ext <<_ACEOF
7727/* end confdefs.h. */
7728
6689#include <sys/types.h> 7729#include <sys/types.h>
6690 7730
6691" 7731
6692if test "x$ac_cv_header_login_cap_h" = xyes; then : 7732#include <$ac_header>
7733_ACEOF
7734rm -f conftest.$ac_objext
7735if { (ac_try="$ac_compile"
7736case "(($ac_try" in
7737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738 *) ac_try_echo=$ac_try;;
7739esac
7740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7741 (eval "$ac_compile") 2>conftest.er1
7742 ac_status=$?
7743 grep -v '^ *+' conftest.er1 >conftest.err
7744 rm -f conftest.er1
7745 cat conftest.err >&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } && {
7748 test -z "$ac_c_werror_flag" ||
7749 test ! -s conftest.err
7750 } && test -s conftest.$ac_objext; then
7751 eval "$as_ac_Header=yes"
7752else
7753 echo "$as_me: failed program was:" >&5
7754sed 's/^/| /' conftest.$ac_ext >&5
7755
7756 eval "$as_ac_Header=no"
7757fi
7758
7759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7760fi
7761ac_res=`eval echo '${'$as_ac_Header'}'`
7762 { echo "$as_me:$LINENO: result: $ac_res" >&5
7763echo "${ECHO_T}$ac_res" >&6; }
7764if test `eval echo '${'$as_ac_Header'}'` = yes; then
6693 cat >>confdefs.h <<_ACEOF 7765 cat >>confdefs.h <<_ACEOF
6694#define HAVE_LOGIN_CAP_H 1 7766#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6695_ACEOF 7767_ACEOF
6696 7768
6697fi 7769fi
@@ -6700,15 +7772,60 @@ done
6700 7772
6701 7773
6702# older BSDs need sys/param.h before sys/mount.h 7774# older BSDs need sys/param.h before sys/mount.h
7775
6703for ac_header in sys/mount.h 7776for ac_header in sys/mount.h
6704do : 7777do
6705 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" " 7778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7779{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7780echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7781if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7783else
7784 cat >conftest.$ac_ext <<_ACEOF
7785/* confdefs.h. */
7786_ACEOF
7787cat confdefs.h >>conftest.$ac_ext
7788cat >>conftest.$ac_ext <<_ACEOF
7789/* end confdefs.h. */
7790
6706#include <sys/param.h> 7791#include <sys/param.h>
6707 7792
6708" 7793
6709if test "x$ac_cv_header_sys_mount_h" = xyes; then : 7794#include <$ac_header>
7795_ACEOF
7796rm -f conftest.$ac_objext
7797if { (ac_try="$ac_compile"
7798case "(($ac_try" in
7799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7800 *) ac_try_echo=$ac_try;;
7801esac
7802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7803 (eval "$ac_compile") 2>conftest.er1
7804 ac_status=$?
7805 grep -v '^ *+' conftest.er1 >conftest.err
7806 rm -f conftest.er1
7807 cat conftest.err >&5
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); } && {
7810 test -z "$ac_c_werror_flag" ||
7811 test ! -s conftest.err
7812 } && test -s conftest.$ac_objext; then
7813 eval "$as_ac_Header=yes"
7814else
7815 echo "$as_me: failed program was:" >&5
7816sed 's/^/| /' conftest.$ac_ext >&5
7817
7818 eval "$as_ac_Header=no"
7819fi
7820
7821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7822fi
7823ac_res=`eval echo '${'$as_ac_Header'}'`
7824 { echo "$as_me:$LINENO: result: $ac_res" >&5
7825echo "${ECHO_T}$ac_res" >&6; }
7826if test `eval echo '${'$as_ac_Header'}'` = yes; then
6710 cat >>confdefs.h <<_ACEOF 7827 cat >>confdefs.h <<_ACEOF
6711#define HAVE_SYS_MOUNT_H 1 7828#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6712_ACEOF 7829_ACEOF
6713 7830
6714fi 7831fi
@@ -6717,16 +7834,61 @@ done
6717 7834
6718 7835
6719# Android requires sys/socket.h to be included before sys/un.h 7836# Android requires sys/socket.h to be included before sys/un.h
7837
6720for ac_header in sys/un.h 7838for ac_header in sys/un.h
6721do : 7839do
6722 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" " 7840as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7841{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7842echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7843if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7845else
7846 cat >conftest.$ac_ext <<_ACEOF
7847/* confdefs.h. */
7848_ACEOF
7849cat confdefs.h >>conftest.$ac_ext
7850cat >>conftest.$ac_ext <<_ACEOF
7851/* end confdefs.h. */
7852
6723#include <sys/types.h> 7853#include <sys/types.h>
6724#include <sys/socket.h> 7854#include <sys/socket.h>
6725 7855
6726" 7856
6727if test "x$ac_cv_header_sys_un_h" = xyes; then : 7857#include <$ac_header>
7858_ACEOF
7859rm -f conftest.$ac_objext
7860if { (ac_try="$ac_compile"
7861case "(($ac_try" in
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7864esac
7865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_compile") 2>conftest.er1
7867 ac_status=$?
7868 grep -v '^ *+' conftest.er1 >conftest.err
7869 rm -f conftest.er1
7870 cat conftest.err >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } && {
7873 test -z "$ac_c_werror_flag" ||
7874 test ! -s conftest.err
7875 } && test -s conftest.$ac_objext; then
7876 eval "$as_ac_Header=yes"
7877else
7878 echo "$as_me: failed program was:" >&5
7879sed 's/^/| /' conftest.$ac_ext >&5
7880
7881 eval "$as_ac_Header=no"
7882fi
7883
7884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7885fi
7886ac_res=`eval echo '${'$as_ac_Header'}'`
7887 { echo "$as_me:$LINENO: result: $ac_res" >&5
7888echo "${ECHO_T}$ac_res" >&6; }
7889if test `eval echo '${'$as_ac_Header'}'` = yes; then
6728 cat >>confdefs.h <<_ACEOF 7890 cat >>confdefs.h <<_ACEOF
6729#define HAVE_SYS_UN_H 1 7891#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6730_ACEOF 7892_ACEOF
6731 7893
6732fi 7894fi
@@ -6747,9 +7909,13 @@ case "$host" in
6747 # particularly with older versions of vac or xlc. 7909 # particularly with older versions of vac or xlc.
6748 # It also throws errors about null macro argments, but these are 7910 # It also throws errors about null macro argments, but these are
6749 # not fatal. 7911 # not fatal.
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5 7912 { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5
6751$as_echo_n "checking if compiler allows macro redefinitions... " >&6; } 7913echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; }
6752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7914 cat >conftest.$ac_ext <<_ACEOF
7915/* confdefs.h. */
7916_ACEOF
7917cat confdefs.h >>conftest.$ac_ext
7918cat >>conftest.$ac_ext <<_ACEOF
6753/* end confdefs.h. */ 7919/* end confdefs.h. */
6754 7920
6755#define testmacro foo 7921#define testmacro foo
@@ -6762,12 +7928,31 @@ main ()
6762 return 0; 7928 return 0;
6763} 7929}
6764_ACEOF 7930_ACEOF
6765if ac_fn_c_try_compile "$LINENO"; then : 7931rm -f conftest.$ac_objext
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7932if { (ac_try="$ac_compile"
6767$as_echo "yes" >&6; } 7933case "(($ac_try" in
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7936esac
7937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_compile") 2>conftest.er1
7939 ac_status=$?
7940 grep -v '^ *+' conftest.er1 >conftest.err
7941 rm -f conftest.er1
7942 cat conftest.err >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } && {
7945 test -z "$ac_c_werror_flag" ||
7946 test ! -s conftest.err
7947 } && test -s conftest.$ac_objext; then
7948 { echo "$as_me:$LINENO: result: yes" >&5
7949echo "${ECHO_T}yes" >&6; }
6768else 7950else
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7951 echo "$as_me: failed program was:" >&5
6770$as_echo "no" >&6; } 7952sed 's/^/| /' conftest.$ac_ext >&5
7953
7954 { echo "$as_me:$LINENO: result: no" >&5
7955echo "${ECHO_T}no" >&6; }
6771 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`" 7956 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6772 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`" 7957 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6773 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`" 7958 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
@@ -6775,10 +7960,11 @@ $as_echo "no" >&6; }
6775 7960
6776 7961
6777fi 7962fi
7963
6778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6779 7965
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5 7966 { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
6781$as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; } 7967echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; }
6782 if (test -z "$blibpath"); then 7968 if (test -z "$blibpath"); then
6783 blibpath="/usr/lib:/lib" 7969 blibpath="/usr/lib:/lib"
6784 fi 7970 fi
@@ -6791,7 +7977,11 @@ $as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; }
6791 for tryflags in $flags ;do 7977 for tryflags in $flags ;do
6792 if (test -z "$blibflags"); then 7978 if (test -z "$blibflags"); then
6793 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" 7979 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7980 cat >conftest.$ac_ext <<_ACEOF
7981/* confdefs.h. */
7982_ACEOF
7983cat confdefs.h >>conftest.$ac_ext
7984cat >>conftest.$ac_ext <<_ACEOF
6795/* end confdefs.h. */ 7985/* end confdefs.h. */
6796 7986
6797int 7987int
@@ -6802,36 +7992,147 @@ main ()
6802 return 0; 7992 return 0;
6803} 7993}
6804_ACEOF 7994_ACEOF
6805if ac_fn_c_try_link "$LINENO"; then : 7995rm -f conftest.$ac_objext conftest$ac_exeext
7996if { (ac_try="$ac_link"
7997case "(($ac_try" in
7998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7999 *) ac_try_echo=$ac_try;;
8000esac
8001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8002 (eval "$ac_link") 2>conftest.er1
8003 ac_status=$?
8004 grep -v '^ *+' conftest.er1 >conftest.err
8005 rm -f conftest.er1
8006 cat conftest.err >&5
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); } && {
8009 test -z "$ac_c_werror_flag" ||
8010 test ! -s conftest.err
8011 } && test -s conftest$ac_exeext &&
8012 $as_test_x conftest$ac_exeext; then
6806 blibflags=$tryflags 8013 blibflags=$tryflags
8014else
8015 echo "$as_me: failed program was:" >&5
8016sed 's/^/| /' conftest.$ac_ext >&5
8017
8018
6807fi 8019fi
6808rm -f core conftest.err conftest.$ac_objext \ 8020
6809 conftest$ac_exeext conftest.$ac_ext 8021rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8022 conftest$ac_exeext conftest.$ac_ext
6810 fi 8023 fi
6811 done 8024 done
6812 if (test -z "$blibflags"); then 8025 if (test -z "$blibflags"); then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8026 { echo "$as_me:$LINENO: result: not found" >&5
6814$as_echo "not found" >&6; } 8027echo "${ECHO_T}not found" >&6; }
6815 as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5 8028 { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5
8029echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
8030 { (exit 1); exit 1; }; }
6816 else 8031 else
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5 8032 { echo "$as_me:$LINENO: result: $blibflags" >&5
6818$as_echo "$blibflags" >&6; } 8033echo "${ECHO_T}$blibflags" >&6; }
6819 fi 8034 fi
6820 LDFLAGS="$saved_LDFLAGS" 8035 LDFLAGS="$saved_LDFLAGS"
6821 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate" 8036 { echo "$as_me:$LINENO: checking for authenticate" >&5
6822if test "x$ac_cv_func_authenticate" = xyes; then : 8037echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; }
8038if test "${ac_cv_func_authenticate+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8040else
8041 cat >conftest.$ac_ext <<_ACEOF
8042/* confdefs.h. */
8043_ACEOF
8044cat confdefs.h >>conftest.$ac_ext
8045cat >>conftest.$ac_ext <<_ACEOF
8046/* end confdefs.h. */
8047/* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate.
8048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8049#define authenticate innocuous_authenticate
8050
8051/* System header to define __stub macros and hopefully few prototypes,
8052 which can conflict with char authenticate (); below.
8053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8054 <limits.h> exists even on freestanding compilers. */
8055
8056#ifdef __STDC__
8057# include <limits.h>
8058#else
8059# include <assert.h>
8060#endif
8061
8062#undef authenticate
8063
8064/* Override any GCC internal prototype to avoid an error.
8065 Use char because int might match the return type of a GCC
8066 builtin and then its argument prototype would still apply. */
8067#ifdef __cplusplus
8068extern "C"
8069#endif
8070char authenticate ();
8071/* The GNU C library defines this for functions which it implements
8072 to always fail with ENOSYS. Some functions are actually named
8073 something starting with __ and the normal name is an alias. */
8074#if defined __stub_authenticate || defined __stub___authenticate
8075choke me
8076#endif
6823 8077
6824$as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h 8078int
8079main ()
8080{
8081return authenticate ();
8082 ;
8083 return 0;
8084}
8085_ACEOF
8086rm -f conftest.$ac_objext conftest$ac_exeext
8087if { (ac_try="$ac_link"
8088case "(($ac_try" in
8089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8090 *) ac_try_echo=$ac_try;;
8091esac
8092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8093 (eval "$ac_link") 2>conftest.er1
8094 ac_status=$?
8095 grep -v '^ *+' conftest.er1 >conftest.err
8096 rm -f conftest.er1
8097 cat conftest.err >&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); } && {
8100 test -z "$ac_c_werror_flag" ||
8101 test ! -s conftest.err
8102 } && test -s conftest$ac_exeext &&
8103 $as_test_x conftest$ac_exeext; then
8104 ac_cv_func_authenticate=yes
8105else
8106 echo "$as_me: failed program was:" >&5
8107sed 's/^/| /' conftest.$ac_ext >&5
8108
8109 ac_cv_func_authenticate=no
8110fi
8111
8112rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8113 conftest$ac_exeext conftest.$ac_ext
8114fi
8115{ echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
8116echo "${ECHO_T}$ac_cv_func_authenticate" >&6; }
8117if test $ac_cv_func_authenticate = yes; then
8118
8119cat >>confdefs.h <<\_ACEOF
8120#define WITH_AIXAUTHENTICATE 1
8121_ACEOF
6825 8122
6826else 8123else
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5 8124 { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
6828$as_echo_n "checking for authenticate in -ls... " >&6; } 8125echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; }
6829if ${ac_cv_lib_s_authenticate+:} false; then : 8126if test "${ac_cv_lib_s_authenticate+set}" = set; then
6830 $as_echo_n "(cached) " >&6 8127 echo $ECHO_N "(cached) $ECHO_C" >&6
6831else 8128else
6832 ac_check_lib_save_LIBS=$LIBS 8129 ac_check_lib_save_LIBS=$LIBS
6833LIBS="-ls $LIBS" 8130LIBS="-ls $LIBS"
6834cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8131cat >conftest.$ac_ext <<_ACEOF
8132/* confdefs.h. */
8133_ACEOF
8134cat confdefs.h >>conftest.$ac_ext
8135cat >>conftest.$ac_ext <<_ACEOF
6835/* end confdefs.h. */ 8136/* end confdefs.h. */
6836 8137
6837/* Override any GCC internal prototype to avoid an error. 8138/* Override any GCC internal prototype to avoid an error.
@@ -6849,19 +8150,42 @@ return authenticate ();
6849 return 0; 8150 return 0;
6850} 8151}
6851_ACEOF 8152_ACEOF
6852if ac_fn_c_try_link "$LINENO"; then : 8153rm -f conftest.$ac_objext conftest$ac_exeext
8154if { (ac_try="$ac_link"
8155case "(($ac_try" in
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8158esac
8159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160 (eval "$ac_link") 2>conftest.er1
8161 ac_status=$?
8162 grep -v '^ *+' conftest.er1 >conftest.err
8163 rm -f conftest.er1
8164 cat conftest.err >&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } && {
8167 test -z "$ac_c_werror_flag" ||
8168 test ! -s conftest.err
8169 } && test -s conftest$ac_exeext &&
8170 $as_test_x conftest$ac_exeext; then
6853 ac_cv_lib_s_authenticate=yes 8171 ac_cv_lib_s_authenticate=yes
6854else 8172else
6855 ac_cv_lib_s_authenticate=no 8173 echo "$as_me: failed program was:" >&5
8174sed 's/^/| /' conftest.$ac_ext >&5
8175
8176 ac_cv_lib_s_authenticate=no
6856fi 8177fi
6857rm -f core conftest.err conftest.$ac_objext \ 8178
6858 conftest$ac_exeext conftest.$ac_ext 8179rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8180 conftest$ac_exeext conftest.$ac_ext
6859LIBS=$ac_check_lib_save_LIBS 8181LIBS=$ac_check_lib_save_LIBS
6860fi 8182fi
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5 8183{ echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
6862$as_echo "$ac_cv_lib_s_authenticate" >&6; } 8184echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; }
6863if test "x$ac_cv_lib_s_authenticate" = xyes; then : 8185if test $ac_cv_lib_s_authenticate = yes; then
6864 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h 8186 cat >>confdefs.h <<\_ACEOF
8187#define WITH_AIXAUTHENTICATE 1
8188_ACEOF
6865 8189
6866 LIBS="$LIBS -ls" 8190 LIBS="$LIBS -ls"
6867 8191
@@ -6870,78 +8194,410 @@ fi
6870 8194
6871fi 8195fi
6872 8196
6873 ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h> 8197 { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5
6874" 8198echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; }
6875if test "x$ac_cv_have_decl_authenticate" = xyes; then : 8199if test "${ac_cv_have_decl_authenticate+set}" = set; then
6876 ac_have_decl=1 8200 echo $ECHO_N "(cached) $ECHO_C" >&6
6877else 8201else
6878 ac_have_decl=0 8202 cat >conftest.$ac_ext <<_ACEOF
8203/* confdefs.h. */
8204_ACEOF
8205cat confdefs.h >>conftest.$ac_ext
8206cat >>conftest.$ac_ext <<_ACEOF
8207/* end confdefs.h. */
8208#include <usersec.h>
8209
8210int
8211main ()
8212{
8213#ifndef authenticate
8214 (void) authenticate;
8215#endif
8216
8217 ;
8218 return 0;
8219}
8220_ACEOF
8221rm -f conftest.$ac_objext
8222if { (ac_try="$ac_compile"
8223case "(($ac_try" in
8224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225 *) ac_try_echo=$ac_try;;
8226esac
8227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228 (eval "$ac_compile") 2>conftest.er1
8229 ac_status=$?
8230 grep -v '^ *+' conftest.er1 >conftest.err
8231 rm -f conftest.er1
8232 cat conftest.err >&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); } && {
8235 test -z "$ac_c_werror_flag" ||
8236 test ! -s conftest.err
8237 } && test -s conftest.$ac_objext; then
8238 ac_cv_have_decl_authenticate=yes
8239else
8240 echo "$as_me: failed program was:" >&5
8241sed 's/^/| /' conftest.$ac_ext >&5
8242
8243 ac_cv_have_decl_authenticate=no
6879fi 8244fi
6880 8245
8246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8247fi
8248{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5
8249echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; }
8250if test $ac_cv_have_decl_authenticate = yes; then
8251
6881cat >>confdefs.h <<_ACEOF 8252cat >>confdefs.h <<_ACEOF
6882#define HAVE_DECL_AUTHENTICATE $ac_have_decl 8253#define HAVE_DECL_AUTHENTICATE 1
6883_ACEOF 8254_ACEOF
6884ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h> 8255
6885" 8256
6886if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then : 8257else
6887 ac_have_decl=1 8258 cat >>confdefs.h <<_ACEOF
8259#define HAVE_DECL_AUTHENTICATE 0
8260_ACEOF
8261
8262
8263fi
8264{ echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5
8265echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; }
8266if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8268else
8269 cat >conftest.$ac_ext <<_ACEOF
8270/* confdefs.h. */
8271_ACEOF
8272cat confdefs.h >>conftest.$ac_ext
8273cat >>conftest.$ac_ext <<_ACEOF
8274/* end confdefs.h. */
8275#include <usersec.h>
8276
8277int
8278main ()
8279{
8280#ifndef loginrestrictions
8281 (void) loginrestrictions;
8282#endif
8283
8284 ;
8285 return 0;
8286}
8287_ACEOF
8288rm -f conftest.$ac_objext
8289if { (ac_try="$ac_compile"
8290case "(($ac_try" in
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8293esac
8294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_compile") 2>conftest.er1
8296 ac_status=$?
8297 grep -v '^ *+' conftest.er1 >conftest.err
8298 rm -f conftest.er1
8299 cat conftest.err >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } && {
8302 test -z "$ac_c_werror_flag" ||
8303 test ! -s conftest.err
8304 } && test -s conftest.$ac_objext; then
8305 ac_cv_have_decl_loginrestrictions=yes
6888else 8306else
6889 ac_have_decl=0 8307 echo "$as_me: failed program was:" >&5
8308sed 's/^/| /' conftest.$ac_ext >&5
8309
8310 ac_cv_have_decl_loginrestrictions=no
6890fi 8311fi
6891 8312
8313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8314fi
8315{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5
8316echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; }
8317if test $ac_cv_have_decl_loginrestrictions = yes; then
8318
6892cat >>confdefs.h <<_ACEOF 8319cat >>confdefs.h <<_ACEOF
6893#define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl 8320#define HAVE_DECL_LOGINRESTRICTIONS 1
6894_ACEOF 8321_ACEOF
6895ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h> 8322
6896" 8323
6897if test "x$ac_cv_have_decl_loginsuccess" = xyes; then : 8324else
6898 ac_have_decl=1 8325 cat >>confdefs.h <<_ACEOF
8326#define HAVE_DECL_LOGINRESTRICTIONS 0
8327_ACEOF
8328
8329
8330fi
8331{ echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5
8332echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; }
8333if test "${ac_cv_have_decl_loginsuccess+set}" = set; then
8334 echo $ECHO_N "(cached) $ECHO_C" >&6
8335else
8336 cat >conftest.$ac_ext <<_ACEOF
8337/* confdefs.h. */
8338_ACEOF
8339cat confdefs.h >>conftest.$ac_ext
8340cat >>conftest.$ac_ext <<_ACEOF
8341/* end confdefs.h. */
8342#include <usersec.h>
8343
8344int
8345main ()
8346{
8347#ifndef loginsuccess
8348 (void) loginsuccess;
8349#endif
8350
8351 ;
8352 return 0;
8353}
8354_ACEOF
8355rm -f conftest.$ac_objext
8356if { (ac_try="$ac_compile"
8357case "(($ac_try" in
8358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8359 *) ac_try_echo=$ac_try;;
8360esac
8361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8362 (eval "$ac_compile") 2>conftest.er1
8363 ac_status=$?
8364 grep -v '^ *+' conftest.er1 >conftest.err
8365 rm -f conftest.er1
8366 cat conftest.err >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); } && {
8369 test -z "$ac_c_werror_flag" ||
8370 test ! -s conftest.err
8371 } && test -s conftest.$ac_objext; then
8372 ac_cv_have_decl_loginsuccess=yes
6899else 8373else
6900 ac_have_decl=0 8374 echo "$as_me: failed program was:" >&5
8375sed 's/^/| /' conftest.$ac_ext >&5
8376
8377 ac_cv_have_decl_loginsuccess=no
8378fi
8379
8380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6901fi 8381fi
8382{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5
8383echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; }
8384if test $ac_cv_have_decl_loginsuccess = yes; then
6902 8385
6903cat >>confdefs.h <<_ACEOF 8386cat >>confdefs.h <<_ACEOF
6904#define HAVE_DECL_LOGINSUCCESS $ac_have_decl 8387#define HAVE_DECL_LOGINSUCCESS 1
6905_ACEOF 8388_ACEOF
6906ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h> 8389
6907" 8390
6908if test "x$ac_cv_have_decl_passwdexpired" = xyes; then :
6909 ac_have_decl=1
6910else 8391else
6911 ac_have_decl=0 8392 cat >>confdefs.h <<_ACEOF
8393#define HAVE_DECL_LOGINSUCCESS 0
8394_ACEOF
8395
8396
6912fi 8397fi
8398{ echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5
8399echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; }
8400if test "${ac_cv_have_decl_passwdexpired+set}" = set; then
8401 echo $ECHO_N "(cached) $ECHO_C" >&6
8402else
8403 cat >conftest.$ac_ext <<_ACEOF
8404/* confdefs.h. */
8405_ACEOF
8406cat confdefs.h >>conftest.$ac_ext
8407cat >>conftest.$ac_ext <<_ACEOF
8408/* end confdefs.h. */
8409#include <usersec.h>
8410
8411int
8412main ()
8413{
8414#ifndef passwdexpired
8415 (void) passwdexpired;
8416#endif
8417
8418 ;
8419 return 0;
8420}
8421_ACEOF
8422rm -f conftest.$ac_objext
8423if { (ac_try="$ac_compile"
8424case "(($ac_try" in
8425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426 *) ac_try_echo=$ac_try;;
8427esac
8428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429 (eval "$ac_compile") 2>conftest.er1
8430 ac_status=$?
8431 grep -v '^ *+' conftest.er1 >conftest.err
8432 rm -f conftest.er1
8433 cat conftest.err >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } && {
8436 test -z "$ac_c_werror_flag" ||
8437 test ! -s conftest.err
8438 } && test -s conftest.$ac_objext; then
8439 ac_cv_have_decl_passwdexpired=yes
8440else
8441 echo "$as_me: failed program was:" >&5
8442sed 's/^/| /' conftest.$ac_ext >&5
8443
8444 ac_cv_have_decl_passwdexpired=no
8445fi
8446
8447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8448fi
8449{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5
8450echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; }
8451if test $ac_cv_have_decl_passwdexpired = yes; then
6913 8452
6914cat >>confdefs.h <<_ACEOF 8453cat >>confdefs.h <<_ACEOF
6915#define HAVE_DECL_PASSWDEXPIRED $ac_have_decl 8454#define HAVE_DECL_PASSWDEXPIRED 1
6916_ACEOF 8455_ACEOF
6917ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h> 8456
6918" 8457
6919if test "x$ac_cv_have_decl_setauthdb" = xyes; then : 8458else
6920 ac_have_decl=1 8459 cat >>confdefs.h <<_ACEOF
8460#define HAVE_DECL_PASSWDEXPIRED 0
8461_ACEOF
8462
8463
8464fi
8465{ echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5
8466echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; }
8467if test "${ac_cv_have_decl_setauthdb+set}" = set; then
8468 echo $ECHO_N "(cached) $ECHO_C" >&6
6921else 8469else
6922 ac_have_decl=0 8470 cat >conftest.$ac_ext <<_ACEOF
8471/* confdefs.h. */
8472_ACEOF
8473cat confdefs.h >>conftest.$ac_ext
8474cat >>conftest.$ac_ext <<_ACEOF
8475/* end confdefs.h. */
8476#include <usersec.h>
8477
8478int
8479main ()
8480{
8481#ifndef setauthdb
8482 (void) setauthdb;
8483#endif
8484
8485 ;
8486 return 0;
8487}
8488_ACEOF
8489rm -f conftest.$ac_objext
8490if { (ac_try="$ac_compile"
8491case "(($ac_try" in
8492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493 *) ac_try_echo=$ac_try;;
8494esac
8495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496 (eval "$ac_compile") 2>conftest.er1
8497 ac_status=$?
8498 grep -v '^ *+' conftest.er1 >conftest.err
8499 rm -f conftest.er1
8500 cat conftest.err >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } && {
8503 test -z "$ac_c_werror_flag" ||
8504 test ! -s conftest.err
8505 } && test -s conftest.$ac_objext; then
8506 ac_cv_have_decl_setauthdb=yes
8507else
8508 echo "$as_me: failed program was:" >&5
8509sed 's/^/| /' conftest.$ac_ext >&5
8510
8511 ac_cv_have_decl_setauthdb=no
6923fi 8512fi
6924 8513
8514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8515fi
8516{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5
8517echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; }
8518if test $ac_cv_have_decl_setauthdb = yes; then
8519
6925cat >>confdefs.h <<_ACEOF 8520cat >>confdefs.h <<_ACEOF
6926#define HAVE_DECL_SETAUTHDB $ac_have_decl 8521#define HAVE_DECL_SETAUTHDB 1
6927_ACEOF 8522_ACEOF
6928 8523
6929 ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h>
6930 8524
6931"
6932if test "x$ac_cv_have_decl_loginfailed" = xyes; then :
6933 ac_have_decl=1
6934else 8525else
6935 ac_have_decl=0 8526 cat >>confdefs.h <<_ACEOF
8527#define HAVE_DECL_SETAUTHDB 0
8528_ACEOF
8529
8530
6936fi 8531fi
6937 8532
8533
8534 { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
8535echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; }
8536if test "${ac_cv_have_decl_loginfailed+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8538else
8539 cat >conftest.$ac_ext <<_ACEOF
8540/* confdefs.h. */
8541_ACEOF
8542cat confdefs.h >>conftest.$ac_ext
8543cat >>conftest.$ac_ext <<_ACEOF
8544/* end confdefs.h. */
8545#include <usersec.h>
8546
8547
8548int
8549main ()
8550{
8551#ifndef loginfailed
8552 (void) loginfailed;
8553#endif
8554
8555 ;
8556 return 0;
8557}
8558_ACEOF
8559rm -f conftest.$ac_objext
8560if { (ac_try="$ac_compile"
8561case "(($ac_try" in
8562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563 *) ac_try_echo=$ac_try;;
8564esac
8565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8566 (eval "$ac_compile") 2>conftest.er1
8567 ac_status=$?
8568 grep -v '^ *+' conftest.er1 >conftest.err
8569 rm -f conftest.er1
8570 cat conftest.err >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } && {
8573 test -z "$ac_c_werror_flag" ||
8574 test ! -s conftest.err
8575 } && test -s conftest.$ac_objext; then
8576 ac_cv_have_decl_loginfailed=yes
8577else
8578 echo "$as_me: failed program was:" >&5
8579sed 's/^/| /' conftest.$ac_ext >&5
8580
8581 ac_cv_have_decl_loginfailed=no
8582fi
8583
8584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8585fi
8586{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5
8587echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; }
8588if test $ac_cv_have_decl_loginfailed = yes; then
8589
6938cat >>confdefs.h <<_ACEOF 8590cat >>confdefs.h <<_ACEOF
6939#define HAVE_DECL_LOGINFAILED $ac_have_decl 8591#define HAVE_DECL_LOGINFAILED 1
6940_ACEOF 8592_ACEOF
6941if test $ac_have_decl = 1; then : 8593
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5 8594{ echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5
6943$as_echo_n "checking if loginfailed takes 4 arguments... " >&6; } 8595echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; }
6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8596 cat >conftest.$ac_ext <<_ACEOF
8597/* confdefs.h. */
8598_ACEOF
8599cat confdefs.h >>conftest.$ac_ext
8600cat >>conftest.$ac_ext <<_ACEOF
6945/* end confdefs.h. */ 8601/* end confdefs.h. */
6946 #include <usersec.h> 8602 #include <usersec.h>
6947int 8603int
@@ -6952,119 +8608,328 @@ main ()
6952 return 0; 8608 return 0;
6953} 8609}
6954_ACEOF 8610_ACEOF
6955if ac_fn_c_try_compile "$LINENO"; then : 8611rm -f conftest.$ac_objext
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8612if { (ac_try="$ac_compile"
6957$as_echo "yes" >&6; } 8613case "(($ac_try" in
8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8616esac
8617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8618 (eval "$ac_compile") 2>conftest.er1
8619 ac_status=$?
8620 grep -v '^ *+' conftest.er1 >conftest.err
8621 rm -f conftest.er1
8622 cat conftest.err >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } && {
8625 test -z "$ac_c_werror_flag" ||
8626 test ! -s conftest.err
8627 } && test -s conftest.$ac_objext; then
8628 { echo "$as_me:$LINENO: result: yes" >&5
8629echo "${ECHO_T}yes" >&6; }
6958 8630
6959$as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h 8631cat >>confdefs.h <<\_ACEOF
8632#define AIX_LOGINFAILED_4ARG 1
8633_ACEOF
6960 8634
6961else 8635else
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8636 echo "$as_me: failed program was:" >&5
6963$as_echo "no" >&6; } 8637sed 's/^/| /' conftest.$ac_ext >&5
8638
8639 { echo "$as_me:$LINENO: result: no" >&5
8640echo "${ECHO_T}no" >&6; }
6964 8641
6965fi 8642fi
8643
6966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8645else
8646 cat >>confdefs.h <<_ACEOF
8647#define HAVE_DECL_LOGINFAILED 0
8648_ACEOF
8649
8650
8651fi
8652
8653
8654
8655
8656for ac_func in getgrset setauthdb
8657do
8658as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8659{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8660echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8661if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8663else
8664 cat >conftest.$ac_ext <<_ACEOF
8665/* confdefs.h. */
8666_ACEOF
8667cat confdefs.h >>conftest.$ac_ext
8668cat >>conftest.$ac_ext <<_ACEOF
8669/* end confdefs.h. */
8670/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8672#define $ac_func innocuous_$ac_func
8673
8674/* System header to define __stub macros and hopefully few prototypes,
8675 which can conflict with char $ac_func (); below.
8676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8677 <limits.h> exists even on freestanding compilers. */
8678
8679#ifdef __STDC__
8680# include <limits.h>
8681#else
8682# include <assert.h>
8683#endif
8684
8685#undef $ac_func
8686
8687/* Override any GCC internal prototype to avoid an error.
8688 Use char because int might match the return type of a GCC
8689 builtin and then its argument prototype would still apply. */
8690#ifdef __cplusplus
8691extern "C"
8692#endif
8693char $ac_func ();
8694/* The GNU C library defines this for functions which it implements
8695 to always fail with ENOSYS. Some functions are actually named
8696 something starting with __ and the normal name is an alias. */
8697#if defined __stub_$ac_func || defined __stub___$ac_func
8698choke me
8699#endif
8700
8701int
8702main ()
8703{
8704return $ac_func ();
8705 ;
8706 return 0;
8707}
8708_ACEOF
8709rm -f conftest.$ac_objext conftest$ac_exeext
8710if { (ac_try="$ac_link"
8711case "(($ac_try" in
8712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8713 *) ac_try_echo=$ac_try;;
8714esac
8715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8716 (eval "$ac_link") 2>conftest.er1
8717 ac_status=$?
8718 grep -v '^ *+' conftest.er1 >conftest.err
8719 rm -f conftest.er1
8720 cat conftest.err >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); } && {
8723 test -z "$ac_c_werror_flag" ||
8724 test ! -s conftest.err
8725 } && test -s conftest$ac_exeext &&
8726 $as_test_x conftest$ac_exeext; then
8727 eval "$as_ac_var=yes"
8728else
8729 echo "$as_me: failed program was:" >&5
8730sed 's/^/| /' conftest.$ac_ext >&5
8731
8732 eval "$as_ac_var=no"
6967fi 8733fi
6968 8734
6969 for ac_func in getgrset setauthdb 8735rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6970do : 8736 conftest$ac_exeext conftest.$ac_ext
6971 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8737fi
6972ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8738ac_res=`eval echo '${'$as_ac_var'}'`
6973if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8739 { echo "$as_me:$LINENO: result: $ac_res" >&5
8740echo "${ECHO_T}$ac_res" >&6; }
8741if test `eval echo '${'$as_ac_var'}'` = yes; then
6974 cat >>confdefs.h <<_ACEOF 8742 cat >>confdefs.h <<_ACEOF
6975#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8743#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6976_ACEOF 8744_ACEOF
6977 8745
6978fi 8746fi
6979done 8747done
6980 8748
6981 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h> 8749 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
8750echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
8751if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
8753else
8754 cat >conftest.$ac_ext <<_ACEOF
8755/* confdefs.h. */
8756_ACEOF
8757cat confdefs.h >>conftest.$ac_ext
8758cat >>conftest.$ac_ext <<_ACEOF
8759/* end confdefs.h. */
8760 #include <limits.h>
6982 #include <fcntl.h> 8761 #include <fcntl.h>
6983 8762
6984"
6985if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
6986 8763
6987$as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h 8764int
8765main ()
8766{
8767#ifndef F_CLOSEM
8768 (void) F_CLOSEM;
8769#endif
8770
8771 ;
8772 return 0;
8773}
8774_ACEOF
8775rm -f conftest.$ac_objext
8776if { (ac_try="$ac_compile"
8777case "(($ac_try" in
8778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8779 *) ac_try_echo=$ac_try;;
8780esac
8781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8782 (eval "$ac_compile") 2>conftest.er1
8783 ac_status=$?
8784 grep -v '^ *+' conftest.er1 >conftest.err
8785 rm -f conftest.er1
8786 cat conftest.err >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); } && {
8789 test -z "$ac_c_werror_flag" ||
8790 test ! -s conftest.err
8791 } && test -s conftest.$ac_objext; then
8792 ac_cv_have_decl_F_CLOSEM=yes
8793else
8794 echo "$as_me: failed program was:" >&5
8795sed 's/^/| /' conftest.$ac_ext >&5
8796
8797 ac_cv_have_decl_F_CLOSEM=no
8798fi
8799
8800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8801fi
8802{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
8803echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
8804if test $ac_cv_have_decl_F_CLOSEM = yes; then
8805
8806cat >>confdefs.h <<\_ACEOF
8807#define HAVE_FCNTL_CLOSEM 1
8808_ACEOF
6988 8809
6989fi 8810fi
6990 8811
6991 check_for_aix_broken_getaddrinfo=1 8812 check_for_aix_broken_getaddrinfo=1
6992 8813
6993$as_echo "#define BROKEN_REALPATH 1" >>confdefs.h 8814cat >>confdefs.h <<\_ACEOF
8815#define BROKEN_REALPATH 1
8816_ACEOF
6994 8817
6995 8818
6996$as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 8819cat >>confdefs.h <<\_ACEOF
8820#define SETEUID_BREAKS_SETUID 1
8821_ACEOF
6997 8822
6998 8823
6999$as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 8824cat >>confdefs.h <<\_ACEOF
8825#define BROKEN_SETREUID 1
8826_ACEOF
7000 8827
7001 8828
7002$as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 8829cat >>confdefs.h <<\_ACEOF
8830#define BROKEN_SETREGID 1
8831_ACEOF
7003 8832
7004 8833
7005$as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h 8834cat >>confdefs.h <<\_ACEOF
8835#define DISABLE_LASTLOG 1
8836_ACEOF
7006 8837
7007 8838
7008$as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h 8839cat >>confdefs.h <<\_ACEOF
8840#define LOGIN_NEEDS_UTMPX 1
8841_ACEOF
7009 8842
7010 8843
7011$as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h 8844cat >>confdefs.h <<\_ACEOF
8845#define SPT_TYPE SPT_REUSEARGV
8846_ACEOF
7012 8847
7013 8848
7014$as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h 8849cat >>confdefs.h <<\_ACEOF
8850#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
8851_ACEOF
7015 8852
7016 8853
7017$as_echo "#define PTY_ZEROREAD 1" >>confdefs.h 8854cat >>confdefs.h <<\_ACEOF
8855#define PTY_ZEROREAD 1
8856_ACEOF
7018 8857
7019 8858
7020$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h 8859cat >>confdefs.h <<\_ACEOF
8860#define PLATFORM_SYS_DIR_UID 2
8861_ACEOF
7021 8862
7022 ;; 8863 ;;
7023*-*-android*) 8864*-*-android*)
7024 8865
7025$as_echo "#define DISABLE_UTMP 1" >>confdefs.h 8866cat >>confdefs.h <<\_ACEOF
8867#define DISABLE_UTMP 1
8868_ACEOF
7026 8869
7027 8870
7028$as_echo "#define DISABLE_WTMP 1" >>confdefs.h 8871cat >>confdefs.h <<\_ACEOF
8872#define DISABLE_WTMP 1
8873_ACEOF
7029 8874
7030 ;; 8875 ;;
7031*-*-cygwin*) 8876*-*-cygwin*)
7032 check_for_libcrypt_later=1 8877 check_for_libcrypt_later=1
7033 LIBS="$LIBS /usr/lib/textreadmode.o" 8878 LIBS="$LIBS /usr/lib/textreadmode.o"
7034 8879
7035$as_echo "#define HAVE_CYGWIN 1" >>confdefs.h 8880cat >>confdefs.h <<\_ACEOF
8881#define HAVE_CYGWIN 1
8882_ACEOF
7036 8883
7037 8884
7038$as_echo "#define USE_PIPES 1" >>confdefs.h 8885cat >>confdefs.h <<\_ACEOF
8886#define USE_PIPES 1
8887_ACEOF
7039 8888
7040 8889
7041$as_echo "#define DISABLE_SHADOW 1" >>confdefs.h 8890cat >>confdefs.h <<\_ACEOF
8891#define DISABLE_SHADOW 1
8892_ACEOF
7042 8893
7043 8894
7044$as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h 8895cat >>confdefs.h <<\_ACEOF
8896#define NO_X11_UNIX_SOCKETS 1
8897_ACEOF
7045 8898
7046 8899
7047$as_echo "#define NO_IPPORT_RESERVED_CONCEPT 1" >>confdefs.h 8900cat >>confdefs.h <<\_ACEOF
8901#define NO_IPPORT_RESERVED_CONCEPT 1
8902_ACEOF
7048 8903
7049 8904
7050$as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h 8905cat >>confdefs.h <<\_ACEOF
8906#define DISABLE_FD_PASSING 1
8907_ACEOF
7051 8908
7052 8909
7053$as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h 8910cat >>confdefs.h <<\_ACEOF
8911#define SSH_IOBUFSZ 65535
8912_ACEOF
7054 8913
7055 8914
7056$as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h 8915cat >>confdefs.h <<\_ACEOF
8916#define FILESYSTEM_NO_BACKSLASH 1
8917_ACEOF
7057 8918
7058 # Cygwin defines optargs, optargs as declspec(dllimport) for historical 8919 # Cygwin defines optargs, optargs as declspec(dllimport) for historical
7059 # reasons which cause compile warnings, so we disable those warnings. 8920 # reasons which cause compile warnings, so we disable those warnings.
7060 { 8921 {
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wno-attributes" >&5 8922 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wno-attributes" >&5
7062$as_echo_n "checking if $CC supports compile flag -Wno-attributes... " >&6; } 8923echo $ECHO_N "checking if $CC supports compile flag -Wno-attributes... $ECHO_C" >&6; }
7063 saved_CFLAGS="$CFLAGS" 8924 saved_CFLAGS="$CFLAGS"
7064 CFLAGS="$CFLAGS $WERROR -Wno-attributes" 8925 CFLAGS="$CFLAGS $WERROR -Wno-attributes"
7065 _define_flag="" 8926 _define_flag=""
7066 test "x$_define_flag" = "x" && _define_flag="-Wno-attributes" 8927 test "x$_define_flag" = "x" && _define_flag="-Wno-attributes"
7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8928 cat >conftest.$ac_ext <<_ACEOF
8929/* confdefs.h. */
8930_ACEOF
8931cat confdefs.h >>conftest.$ac_ext
8932cat >>conftest.$ac_ext <<_ACEOF
7068/* end confdefs.h. */ 8933/* end confdefs.h. */
7069 8934
7070#include <stdlib.h> 8935#include <stdlib.h>
@@ -7080,47 +8945,79 @@ int main(int argc, char **argv) {
7080} 8945}
7081 8946
7082_ACEOF 8947_ACEOF
7083if ac_fn_c_try_compile "$LINENO"; then : 8948rm -f conftest.$ac_objext
8949if { (ac_try="$ac_compile"
8950case "(($ac_try" in
8951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8952 *) ac_try_echo=$ac_try;;
8953esac
8954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8955 (eval "$ac_compile") 2>conftest.er1
8956 ac_status=$?
8957 grep -v '^ *+' conftest.er1 >conftest.err
8958 rm -f conftest.er1
8959 cat conftest.err >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); } && {
8962 test -z "$ac_c_werror_flag" ||
8963 test ! -s conftest.err
8964 } && test -s conftest.$ac_objext; then
7084 8965
7085if `grep -i "unrecognized option" conftest.err >/dev/null` 8966if `grep -i "unrecognized option" conftest.err >/dev/null`
7086then 8967then
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8968 { echo "$as_me:$LINENO: result: no" >&5
7088$as_echo "no" >&6; } 8969echo "${ECHO_T}no" >&6; }
7089 CFLAGS="$saved_CFLAGS" 8970 CFLAGS="$saved_CFLAGS"
7090else 8971else
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8972 { echo "$as_me:$LINENO: result: yes" >&5
7092$as_echo "yes" >&6; } 8973echo "${ECHO_T}yes" >&6; }
7093 CFLAGS="$saved_CFLAGS $_define_flag" 8974 CFLAGS="$saved_CFLAGS $_define_flag"
7094fi 8975fi
7095else 8976else
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8977 echo "$as_me: failed program was:" >&5
7097$as_echo "no" >&6; } 8978sed 's/^/| /' conftest.$ac_ext >&5
8979
8980 { echo "$as_me:$LINENO: result: no" >&5
8981echo "${ECHO_T}no" >&6; }
7098 CFLAGS="$saved_CFLAGS" 8982 CFLAGS="$saved_CFLAGS"
7099 8983
7100fi 8984fi
8985
7101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7102} 8987}
7103 ;; 8988 ;;
7104*-*-dgux*) 8989*-*-dgux*)
7105 8990
7106$as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h 8991cat >>confdefs.h <<\_ACEOF
8992#define IP_TOS_IS_BROKEN 1
8993_ACEOF
7107 8994
7108 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 8995 cat >>confdefs.h <<\_ACEOF
8996#define SETEUID_BREAKS_SETUID 1
8997_ACEOF
7109 8998
7110 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 8999 cat >>confdefs.h <<\_ACEOF
9000#define BROKEN_SETREUID 1
9001_ACEOF
7111 9002
7112 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 9003 cat >>confdefs.h <<\_ACEOF
9004#define BROKEN_SETREGID 1
9005_ACEOF
7113 9006
7114 ;; 9007 ;;
7115*-*-darwin*) 9008*-*-darwin*)
7116 use_pie=auto 9009 use_pie=auto
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5 9010 { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
7118$as_echo_n "checking if we have working getaddrinfo... " >&6; } 9011echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; }
7119 if test "$cross_compiling" = yes; then : 9012 if test "$cross_compiling" = yes; then
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5 9013 { echo "$as_me:$LINENO: result: assume it is working" >&5
7121$as_echo "assume it is working" >&6; } 9014echo "${ECHO_T}assume it is working" >&6; }
7122else 9015else
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9016 cat >conftest.$ac_ext <<_ACEOF
9017/* confdefs.h. */
9018_ACEOF
9019cat confdefs.h >>conftest.$ac_ext
9020cat >>conftest.$ac_ext <<_ACEOF
7124/* end confdefs.h. */ 9021/* end confdefs.h. */
7125 #include <mach-o/dyld.h> 9022 #include <mach-o/dyld.h>
7126main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) 9023main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
@@ -7130,29 +9027,63 @@ main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
7130} 9027}
7131 9028
7132_ACEOF 9029_ACEOF
7133if ac_fn_c_try_run "$LINENO"; then : 9030rm -f conftest$ac_exeext
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5 9031if { (ac_try="$ac_link"
7135$as_echo "working" >&6; } 9032case "(($ac_try" in
9033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9034 *) ac_try_echo=$ac_try;;
9035esac
9036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9037 (eval "$ac_link") 2>&5
9038 ac_status=$?
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9041 { (case "(($ac_try" in
9042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9043 *) ac_try_echo=$ac_try;;
9044esac
9045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9046 (eval "$ac_try") 2>&5
9047 ac_status=$?
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); }; }; then
9050 { echo "$as_me:$LINENO: result: working" >&5
9051echo "${ECHO_T}working" >&6; }
7136else 9052else
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5 9053 echo "$as_me: program exited with status $ac_status" >&5
7138$as_echo "buggy" >&6; } 9054echo "$as_me: failed program was:" >&5
9055sed 's/^/| /' conftest.$ac_ext >&5
7139 9056
7140$as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h 9057( exit $ac_status )
9058{ echo "$as_me:$LINENO: result: buggy" >&5
9059echo "${ECHO_T}buggy" >&6; }
9060
9061cat >>confdefs.h <<\_ACEOF
9062#define BROKEN_GETADDRINFO 1
9063_ACEOF
7141 9064
7142 9065
7143fi 9066fi
7144rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9067rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7145 conftest.$ac_objext conftest.beam conftest.$ac_ext
7146fi 9068fi
7147 9069
7148 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7149 9070
7150 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 9071 cat >>confdefs.h <<\_ACEOF
9072#define SETEUID_BREAKS_SETUID 1
9073_ACEOF
9074
9075 cat >>confdefs.h <<\_ACEOF
9076#define BROKEN_SETREUID 1
9077_ACEOF
7151 9078
7152 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 9079 cat >>confdefs.h <<\_ACEOF
9080#define BROKEN_SETREGID 1
9081_ACEOF
7153 9082
7154 9083
7155$as_echo "#define BROKEN_GLOB 1" >>confdefs.h 9084cat >>confdefs.h <<\_ACEOF
9085#define BROKEN_GLOB 1
9086_ACEOF
7156 9087
7157 9088
7158cat >>confdefs.h <<_ACEOF 9089cat >>confdefs.h <<_ACEOF
@@ -7160,49 +9091,328 @@ cat >>confdefs.h <<_ACEOF
7160_ACEOF 9091_ACEOF
7161 9092
7162 9093
7163$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h 9094cat >>confdefs.h <<\_ACEOF
9095#define SSH_TUN_FREEBSD 1
9096_ACEOF
7164 9097
7165 9098
7166$as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h 9099cat >>confdefs.h <<\_ACEOF
9100#define SSH_TUN_COMPAT_AF 1
9101_ACEOF
7167 9102
7168 9103
7169$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h 9104cat >>confdefs.h <<\_ACEOF
9105#define SSH_TUN_PREPEND_AF 1
9106_ACEOF
7170 9107
7171 9108
7172 ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default" 9109 { echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5
7173if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then : 9110echo $ECHO_N "checking whether AU_IPv4 is declared... $ECHO_C" >&6; }
9111if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then
9112 echo $ECHO_N "(cached) $ECHO_C" >&6
9113else
9114 cat >conftest.$ac_ext <<_ACEOF
9115/* confdefs.h. */
9116_ACEOF
9117cat confdefs.h >>conftest.$ac_ext
9118cat >>conftest.$ac_ext <<_ACEOF
9119/* end confdefs.h. */
9120$ac_includes_default
9121int
9122main ()
9123{
9124#ifndef AU_IPv4
9125 (void) AU_IPv4;
9126#endif
7174 9127
9128 ;
9129 return 0;
9130}
9131_ACEOF
9132rm -f conftest.$ac_objext
9133if { (ac_try="$ac_compile"
9134case "(($ac_try" in
9135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136 *) ac_try_echo=$ac_try;;
9137esac
9138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139 (eval "$ac_compile") 2>conftest.er1
9140 ac_status=$?
9141 grep -v '^ *+' conftest.er1 >conftest.err
9142 rm -f conftest.er1
9143 cat conftest.err >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } && {
9146 test -z "$ac_c_werror_flag" ||
9147 test ! -s conftest.err
9148 } && test -s conftest.$ac_objext; then
9149 ac_cv_have_decl_AU_IPv4=yes
7175else 9150else
9151 echo "$as_me: failed program was:" >&5
9152sed 's/^/| /' conftest.$ac_ext >&5
7176 9153
7177$as_echo "#define AU_IPv4 0" >>confdefs.h 9154 ac_cv_have_decl_AU_IPv4=no
9155fi
9156
9157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9158fi
9159{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5
9160echo "${ECHO_T}$ac_cv_have_decl_AU_IPv4" >&6; }
9161if test $ac_cv_have_decl_AU_IPv4 = yes; then
9162 :
9163else
9164
9165cat >>confdefs.h <<\_ACEOF
9166#define AU_IPv4 0
9167_ACEOF
7178 9168
7179 #include <bsm/audit.h> 9169 #include <bsm/audit.h>
7180 9170
7181$as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h 9171cat >>confdefs.h <<\_ACEOF
9172#define LASTLOG_WRITE_PUTUTXLINE 1
9173_ACEOF
7182 9174
7183 9175
7184fi 9176fi
7185 9177
7186 9178
7187$as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h 9179cat >>confdefs.h <<\_ACEOF
9180#define SPT_TYPE SPT_REUSEARGV
9181_ACEOF
9182
9183
9184for ac_func in sandbox_init
9185do
9186as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9187{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9188echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9189if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9191else
9192 cat >conftest.$ac_ext <<_ACEOF
9193/* confdefs.h. */
9194_ACEOF
9195cat confdefs.h >>conftest.$ac_ext
9196cat >>conftest.$ac_ext <<_ACEOF
9197/* end confdefs.h. */
9198/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9200#define $ac_func innocuous_$ac_func
9201
9202/* System header to define __stub macros and hopefully few prototypes,
9203 which can conflict with char $ac_func (); below.
9204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9205 <limits.h> exists even on freestanding compilers. */
9206
9207#ifdef __STDC__
9208# include <limits.h>
9209#else
9210# include <assert.h>
9211#endif
9212
9213#undef $ac_func
9214
9215/* Override any GCC internal prototype to avoid an error.
9216 Use char because int might match the return type of a GCC
9217 builtin and then its argument prototype would still apply. */
9218#ifdef __cplusplus
9219extern "C"
9220#endif
9221char $ac_func ();
9222/* The GNU C library defines this for functions which it implements
9223 to always fail with ENOSYS. Some functions are actually named
9224 something starting with __ and the normal name is an alias. */
9225#if defined __stub_$ac_func || defined __stub___$ac_func
9226choke me
9227#endif
9228
9229int
9230main ()
9231{
9232return $ac_func ();
9233 ;
9234 return 0;
9235}
9236_ACEOF
9237rm -f conftest.$ac_objext conftest$ac_exeext
9238if { (ac_try="$ac_link"
9239case "(($ac_try" in
9240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9241 *) ac_try_echo=$ac_try;;
9242esac
9243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9244 (eval "$ac_link") 2>conftest.er1
9245 ac_status=$?
9246 grep -v '^ *+' conftest.er1 >conftest.err
9247 rm -f conftest.er1
9248 cat conftest.err >&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); } && {
9251 test -z "$ac_c_werror_flag" ||
9252 test ! -s conftest.err
9253 } && test -s conftest$ac_exeext &&
9254 $as_test_x conftest$ac_exeext; then
9255 eval "$as_ac_var=yes"
9256else
9257 echo "$as_me: failed program was:" >&5
9258sed 's/^/| /' conftest.$ac_ext >&5
9259
9260 eval "$as_ac_var=no"
9261fi
7188 9262
7189 for ac_func in sandbox_init 9263rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7190do : 9264 conftest$ac_exeext conftest.$ac_ext
7191 ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init" 9265fi
7192if test "x$ac_cv_func_sandbox_init" = xyes; then : 9266ac_res=`eval echo '${'$as_ac_var'}'`
9267 { echo "$as_me:$LINENO: result: $ac_res" >&5
9268echo "${ECHO_T}$ac_res" >&6; }
9269if test `eval echo '${'$as_ac_var'}'` = yes; then
7193 cat >>confdefs.h <<_ACEOF 9270 cat >>confdefs.h <<_ACEOF
7194#define HAVE_SANDBOX_INIT 1 9271#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7195_ACEOF 9272_ACEOF
7196 9273
7197fi 9274fi
7198done 9275done
7199 9276
7200 for ac_header in sandbox.h 9277
7201do : 9278for ac_header in sandbox.h
7202 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default" 9279do
7203if test "x$ac_cv_header_sandbox_h" = xyes; then : 9280as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9283echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9284if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9286fi
9287ac_res=`eval echo '${'$as_ac_Header'}'`
9288 { echo "$as_me:$LINENO: result: $ac_res" >&5
9289echo "${ECHO_T}$ac_res" >&6; }
9290else
9291 # Is the header compilable?
9292{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9293echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9294cat >conftest.$ac_ext <<_ACEOF
9295/* confdefs.h. */
9296_ACEOF
9297cat confdefs.h >>conftest.$ac_ext
9298cat >>conftest.$ac_ext <<_ACEOF
9299/* end confdefs.h. */
9300$ac_includes_default
9301#include <$ac_header>
9302_ACEOF
9303rm -f conftest.$ac_objext
9304if { (ac_try="$ac_compile"
9305case "(($ac_try" in
9306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9307 *) ac_try_echo=$ac_try;;
9308esac
9309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9310 (eval "$ac_compile") 2>conftest.er1
9311 ac_status=$?
9312 grep -v '^ *+' conftest.er1 >conftest.err
9313 rm -f conftest.er1
9314 cat conftest.err >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } && {
9317 test -z "$ac_c_werror_flag" ||
9318 test ! -s conftest.err
9319 } && test -s conftest.$ac_objext; then
9320 ac_header_compiler=yes
9321else
9322 echo "$as_me: failed program was:" >&5
9323sed 's/^/| /' conftest.$ac_ext >&5
9324
9325 ac_header_compiler=no
9326fi
9327
9328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9329{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9330echo "${ECHO_T}$ac_header_compiler" >&6; }
9331
9332# Is the header present?
9333{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9334echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9335cat >conftest.$ac_ext <<_ACEOF
9336/* confdefs.h. */
9337_ACEOF
9338cat confdefs.h >>conftest.$ac_ext
9339cat >>conftest.$ac_ext <<_ACEOF
9340/* end confdefs.h. */
9341#include <$ac_header>
9342_ACEOF
9343if { (ac_try="$ac_cpp conftest.$ac_ext"
9344case "(($ac_try" in
9345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9346 *) ac_try_echo=$ac_try;;
9347esac
9348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9350 ac_status=$?
9351 grep -v '^ *+' conftest.er1 >conftest.err
9352 rm -f conftest.er1
9353 cat conftest.err >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } >/dev/null && {
9356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9357 test ! -s conftest.err
9358 }; then
9359 ac_header_preproc=yes
9360else
9361 echo "$as_me: failed program was:" >&5
9362sed 's/^/| /' conftest.$ac_ext >&5
9363
9364 ac_header_preproc=no
9365fi
9366
9367rm -f conftest.err conftest.$ac_ext
9368{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9369echo "${ECHO_T}$ac_header_preproc" >&6; }
9370
9371# So? What about this header?
9372case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9373 yes:no: )
9374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9375echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9377echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9378 ac_header_preproc=yes
9379 ;;
9380 no:yes:* )
9381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9382echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9384echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9386echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9388echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9390echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9392echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9393 ( cat <<\_ASBOX
9394## ------------------------------------------- ##
9395## Report this to openssh-unix-dev@mindrot.org ##
9396## ------------------------------------------- ##
9397_ASBOX
9398 ) | sed "s/^/$as_me: WARNING: /" >&2
9399 ;;
9400esac
9401{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9403if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9404 echo $ECHO_N "(cached) $ECHO_C" >&6
9405else
9406 eval "$as_ac_Header=\$ac_header_preproc"
9407fi
9408ac_res=`eval echo '${'$as_ac_Header'}'`
9409 { echo "$as_me:$LINENO: result: $ac_res" >&5
9410echo "${ECHO_T}$ac_res" >&6; }
9411
9412fi
9413if test `eval echo '${'$as_ac_Header'}'` = yes; then
7204 cat >>confdefs.h <<_ACEOF 9414 cat >>confdefs.h <<_ACEOF
7205#define HAVE_SANDBOX_H 1 9415#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7206_ACEOF 9416_ACEOF
7207 9417
7208fi 9418fi
@@ -7216,14 +9426,19 @@ done
7216 ;; 9426 ;;
7217*-*-haiku*) 9427*-*-haiku*)
7218 LIBS="$LIBS -lbsd " 9428 LIBS="$LIBS -lbsd "
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5 9429
7220$as_echo_n "checking for socket in -lnetwork... " >&6; } 9430{ echo "$as_me:$LINENO: checking for socket in -lnetwork" >&5
7221if ${ac_cv_lib_network_socket+:} false; then : 9431echo $ECHO_N "checking for socket in -lnetwork... $ECHO_C" >&6; }
7222 $as_echo_n "(cached) " >&6 9432if test "${ac_cv_lib_network_socket+set}" = set; then
9433 echo $ECHO_N "(cached) $ECHO_C" >&6
7223else 9434else
7224 ac_check_lib_save_LIBS=$LIBS 9435 ac_check_lib_save_LIBS=$LIBS
7225LIBS="-lnetwork $LIBS" 9436LIBS="-lnetwork $LIBS"
7226cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9437cat >conftest.$ac_ext <<_ACEOF
9438/* confdefs.h. */
9439_ACEOF
9440cat confdefs.h >>conftest.$ac_ext
9441cat >>conftest.$ac_ext <<_ACEOF
7227/* end confdefs.h. */ 9442/* end confdefs.h. */
7228 9443
7229/* Override any GCC internal prototype to avoid an error. 9444/* Override any GCC internal prototype to avoid an error.
@@ -7241,18 +9456,39 @@ return socket ();
7241 return 0; 9456 return 0;
7242} 9457}
7243_ACEOF 9458_ACEOF
7244if ac_fn_c_try_link "$LINENO"; then : 9459rm -f conftest.$ac_objext conftest$ac_exeext
9460if { (ac_try="$ac_link"
9461case "(($ac_try" in
9462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9463 *) ac_try_echo=$ac_try;;
9464esac
9465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9466 (eval "$ac_link") 2>conftest.er1
9467 ac_status=$?
9468 grep -v '^ *+' conftest.er1 >conftest.err
9469 rm -f conftest.er1
9470 cat conftest.err >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); } && {
9473 test -z "$ac_c_werror_flag" ||
9474 test ! -s conftest.err
9475 } && test -s conftest$ac_exeext &&
9476 $as_test_x conftest$ac_exeext; then
7245 ac_cv_lib_network_socket=yes 9477 ac_cv_lib_network_socket=yes
7246else 9478else
7247 ac_cv_lib_network_socket=no 9479 echo "$as_me: failed program was:" >&5
9480sed 's/^/| /' conftest.$ac_ext >&5
9481
9482 ac_cv_lib_network_socket=no
7248fi 9483fi
7249rm -f core conftest.err conftest.$ac_objext \ 9484
7250 conftest$ac_exeext conftest.$ac_ext 9485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9486 conftest$ac_exeext conftest.$ac_ext
7251LIBS=$ac_check_lib_save_LIBS 9487LIBS=$ac_check_lib_save_LIBS
7252fi 9488fi
7253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5 9489{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_socket" >&5
7254$as_echo "$ac_cv_lib_network_socket" >&6; } 9490echo "${ECHO_T}$ac_cv_lib_network_socket" >&6; }
7255if test "x$ac_cv_lib_network_socket" = xyes; then : 9491if test $ac_cv_lib_network_socket = yes; then
7256 cat >>confdefs.h <<_ACEOF 9492 cat >>confdefs.h <<_ACEOF
7257#define HAVE_LIBNETWORK 1 9493#define HAVE_LIBNETWORK 1
7258_ACEOF 9494_ACEOF
@@ -7261,7 +9497,9 @@ _ACEOF
7261 9497
7262fi 9498fi
7263 9499
7264 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h 9500 cat >>confdefs.h <<\_ACEOF
9501#define HAVE_U_INT64_T 1
9502_ACEOF
7265 9503
7266 MANTYPE=man 9504 MANTYPE=man
7267 ;; 9505 ;;
@@ -7269,31 +9507,48 @@ fi
7269 # first we define all of the options common to all HP-UX releases 9507 # first we define all of the options common to all HP-UX releases
7270 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" 9508 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
7271 IPADDR_IN_DISPLAY=yes 9509 IPADDR_IN_DISPLAY=yes
7272 $as_echo "#define USE_PIPES 1" >>confdefs.h 9510 cat >>confdefs.h <<\_ACEOF
9511#define USE_PIPES 1
9512_ACEOF
7273 9513
7274 9514
7275$as_echo "#define LOGIN_NO_ENDOPT 1" >>confdefs.h 9515cat >>confdefs.h <<\_ACEOF
9516#define LOGIN_NO_ENDOPT 1
9517_ACEOF
7276 9518
7277 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h 9519 cat >>confdefs.h <<\_ACEOF
9520#define LOGIN_NEEDS_UTMPX 1
9521_ACEOF
7278 9522
7279 9523
7280$as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h 9524cat >>confdefs.h <<\_ACEOF
9525#define LOCKED_PASSWD_STRING "*"
9526_ACEOF
7281 9527
7282 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h 9528 cat >>confdefs.h <<\_ACEOF
9529#define SPT_TYPE SPT_PSTAT
9530_ACEOF
7283 9531
7284 9532
7285$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h 9533cat >>confdefs.h <<\_ACEOF
9534#define PLATFORM_SYS_DIR_UID 2
9535_ACEOF
7286 9536
7287 maildir="/var/mail" 9537 maildir="/var/mail"
7288 LIBS="$LIBS -lsec" 9538 LIBS="$LIBS -lsec"
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5 9539
7290$as_echo_n "checking for t_error in -lxnet... " >&6; } 9540{ echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
7291if ${ac_cv_lib_xnet_t_error+:} false; then : 9541echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; }
7292 $as_echo_n "(cached) " >&6 9542if test "${ac_cv_lib_xnet_t_error+set}" = set; then
9543 echo $ECHO_N "(cached) $ECHO_C" >&6
7293else 9544else
7294 ac_check_lib_save_LIBS=$LIBS 9545 ac_check_lib_save_LIBS=$LIBS
7295LIBS="-lxnet $LIBS" 9546LIBS="-lxnet $LIBS"
7296cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9547cat >conftest.$ac_ext <<_ACEOF
9548/* confdefs.h. */
9549_ACEOF
9550cat confdefs.h >>conftest.$ac_ext
9551cat >>conftest.$ac_ext <<_ACEOF
7297/* end confdefs.h. */ 9552/* end confdefs.h. */
7298 9553
7299/* Override any GCC internal prototype to avoid an error. 9554/* Override any GCC internal prototype to avoid an error.
@@ -7311,18 +9566,39 @@ return t_error ();
7311 return 0; 9566 return 0;
7312} 9567}
7313_ACEOF 9568_ACEOF
7314if ac_fn_c_try_link "$LINENO"; then : 9569rm -f conftest.$ac_objext conftest$ac_exeext
9570if { (ac_try="$ac_link"
9571case "(($ac_try" in
9572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9573 *) ac_try_echo=$ac_try;;
9574esac
9575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9576 (eval "$ac_link") 2>conftest.er1
9577 ac_status=$?
9578 grep -v '^ *+' conftest.er1 >conftest.err
9579 rm -f conftest.er1
9580 cat conftest.err >&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); } && {
9583 test -z "$ac_c_werror_flag" ||
9584 test ! -s conftest.err
9585 } && test -s conftest$ac_exeext &&
9586 $as_test_x conftest$ac_exeext; then
7315 ac_cv_lib_xnet_t_error=yes 9587 ac_cv_lib_xnet_t_error=yes
7316else 9588else
7317 ac_cv_lib_xnet_t_error=no 9589 echo "$as_me: failed program was:" >&5
9590sed 's/^/| /' conftest.$ac_ext >&5
9591
9592 ac_cv_lib_xnet_t_error=no
7318fi 9593fi
7319rm -f core conftest.err conftest.$ac_objext \ 9594
7320 conftest$ac_exeext conftest.$ac_ext 9595rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9596 conftest$ac_exeext conftest.$ac_ext
7321LIBS=$ac_check_lib_save_LIBS 9597LIBS=$ac_check_lib_save_LIBS
7322fi 9598fi
7323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5 9599{ echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
7324$as_echo "$ac_cv_lib_xnet_t_error" >&6; } 9600echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; }
7325if test "x$ac_cv_lib_xnet_t_error" = xyes; then : 9601if test $ac_cv_lib_xnet_t_error = yes; then
7326 cat >>confdefs.h <<_ACEOF 9602 cat >>confdefs.h <<_ACEOF
7327#define HAVE_LIBXNET 1 9603#define HAVE_LIBXNET 1
7328_ACEOF 9604_ACEOF
@@ -7330,7 +9606,9 @@ _ACEOF
7330 LIBS="-lxnet $LIBS" 9606 LIBS="-lxnet $LIBS"
7331 9607
7332else 9608else
7333 as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5 9609 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
9610echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
9611 { (exit 1); exit 1; }; }
7334fi 9612fi
7335 9613
7336 9614
@@ -7343,13 +9621,19 @@ fi
7343 ;; 9621 ;;
7344 *-*-hpux11*) 9622 *-*-hpux11*)
7345 9623
7346$as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h 9624cat >>confdefs.h <<\_ACEOF
9625#define PAM_SUN_CODEBASE 1
9626_ACEOF
7347 9627
7348 9628
7349$as_echo "#define DISABLE_UTMP 1" >>confdefs.h 9629cat >>confdefs.h <<\_ACEOF
9630#define DISABLE_UTMP 1
9631_ACEOF
7350 9632
7351 9633
7352$as_echo "#define USE_BTMP 1" >>confdefs.h 9634cat >>confdefs.h <<\_ACEOF
9635#define USE_BTMP 1
9636_ACEOF
7353 9637
7354 check_for_hpux_broken_getaddrinfo=1 9638 check_for_hpux_broken_getaddrinfo=1
7355 check_for_conflicting_getspnam=1 9639 check_for_conflicting_getspnam=1
@@ -7360,7 +9644,9 @@ $as_echo "#define USE_BTMP 1" >>confdefs.h
7360 case "$host" in 9644 case "$host" in
7361 *-*-hpux10.26) 9645 *-*-hpux10.26)
7362 9646
7363$as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h 9647cat >>confdefs.h <<\_ACEOF
9648#define HAVE_SECUREWARE 1
9649_ACEOF
7364 9650
7365 disable_ptmx_check=yes 9651 disable_ptmx_check=yes
7366 LIBS="$LIBS -lsecpw" 9652 LIBS="$LIBS -lsecpw"
@@ -7370,67 +9656,191 @@ $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7370*-*-irix5*) 9656*-*-irix5*)
7371 PATH="$PATH:/usr/etc" 9657 PATH="$PATH:/usr/etc"
7372 9658
7373$as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h 9659cat >>confdefs.h <<\_ACEOF
9660#define BROKEN_INET_NTOA 1
9661_ACEOF
7374 9662
7375 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 9663 cat >>confdefs.h <<\_ACEOF
9664#define SETEUID_BREAKS_SETUID 1
9665_ACEOF
7376 9666
7377 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 9667 cat >>confdefs.h <<\_ACEOF
9668#define BROKEN_SETREUID 1
9669_ACEOF
7378 9670
7379 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 9671 cat >>confdefs.h <<\_ACEOF
9672#define BROKEN_SETREGID 1
9673_ACEOF
7380 9674
7381 9675
7382$as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h 9676cat >>confdefs.h <<\_ACEOF
9677#define WITH_ABBREV_NO_TTY 1
9678_ACEOF
7383 9679
7384 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h 9680 cat >>confdefs.h <<\_ACEOF
9681#define LOCKED_PASSWD_STRING "*LK*"
9682_ACEOF
7385 9683
7386 ;; 9684 ;;
7387*-*-irix6*) 9685*-*-irix6*)
7388 PATH="$PATH:/usr/etc" 9686 PATH="$PATH:/usr/etc"
7389 9687
7390$as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h 9688cat >>confdefs.h <<\_ACEOF
9689#define WITH_IRIX_ARRAY 1
9690_ACEOF
9691
9692
9693cat >>confdefs.h <<\_ACEOF
9694#define WITH_IRIX_PROJECT 1
9695_ACEOF
7391 9696
7392 9697
7393$as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h 9698cat >>confdefs.h <<\_ACEOF
9699#define WITH_IRIX_AUDIT 1
9700_ACEOF
9701
9702 { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
9703echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; }
9704if test "${ac_cv_func_jlimit_startjob+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
9706else
9707 cat >conftest.$ac_ext <<_ACEOF
9708/* confdefs.h. */
9709_ACEOF
9710cat confdefs.h >>conftest.$ac_ext
9711cat >>conftest.$ac_ext <<_ACEOF
9712/* end confdefs.h. */
9713/* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob.
9714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9715#define jlimit_startjob innocuous_jlimit_startjob
7394 9716
9717/* System header to define __stub macros and hopefully few prototypes,
9718 which can conflict with char jlimit_startjob (); below.
9719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9720 <limits.h> exists even on freestanding compilers. */
7395 9721
7396$as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h 9722#ifdef __STDC__
9723# include <limits.h>
9724#else
9725# include <assert.h>
9726#endif
7397 9727
7398 ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob" 9728#undef jlimit_startjob
7399if test "x$ac_cv_func_jlimit_startjob" = xyes; then :
7400 9729
7401$as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h 9730/* Override any GCC internal prototype to avoid an error.
9731 Use char because int might match the return type of a GCC
9732 builtin and then its argument prototype would still apply. */
9733#ifdef __cplusplus
9734extern "C"
9735#endif
9736char jlimit_startjob ();
9737/* The GNU C library defines this for functions which it implements
9738 to always fail with ENOSYS. Some functions are actually named
9739 something starting with __ and the normal name is an alias. */
9740#if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob
9741choke me
9742#endif
7402 9743
9744int
9745main ()
9746{
9747return jlimit_startjob ();
9748 ;
9749 return 0;
9750}
9751_ACEOF
9752rm -f conftest.$ac_objext conftest$ac_exeext
9753if { (ac_try="$ac_link"
9754case "(($ac_try" in
9755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756 *) ac_try_echo=$ac_try;;
9757esac
9758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9759 (eval "$ac_link") 2>conftest.er1
9760 ac_status=$?
9761 grep -v '^ *+' conftest.er1 >conftest.err
9762 rm -f conftest.er1
9763 cat conftest.err >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } && {
9766 test -z "$ac_c_werror_flag" ||
9767 test ! -s conftest.err
9768 } && test -s conftest$ac_exeext &&
9769 $as_test_x conftest$ac_exeext; then
9770 ac_cv_func_jlimit_startjob=yes
9771else
9772 echo "$as_me: failed program was:" >&5
9773sed 's/^/| /' conftest.$ac_ext >&5
9774
9775 ac_cv_func_jlimit_startjob=no
7403fi 9776fi
7404 9777
7405 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h 9778rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9779 conftest$ac_exeext conftest.$ac_ext
9780fi
9781{ echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
9782echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; }
9783if test $ac_cv_func_jlimit_startjob = yes; then
7406 9784
7407 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 9785cat >>confdefs.h <<\_ACEOF
9786#define WITH_IRIX_JOBS 1
9787_ACEOF
7408 9788
7409 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 9789fi
7410 9790
7411 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 9791 cat >>confdefs.h <<\_ACEOF
9792#define BROKEN_INET_NTOA 1
9793_ACEOF
7412 9794
9795 cat >>confdefs.h <<\_ACEOF
9796#define SETEUID_BREAKS_SETUID 1
9797_ACEOF
7413 9798
7414$as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h 9799 cat >>confdefs.h <<\_ACEOF
9800#define BROKEN_SETREUID 1
9801_ACEOF
7415 9802
7416 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h 9803 cat >>confdefs.h <<\_ACEOF
9804#define BROKEN_SETREGID 1
9805_ACEOF
7417 9806
7418 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h 9807
9808cat >>confdefs.h <<\_ACEOF
9809#define BROKEN_UPDWTMPX 1
9810_ACEOF
9811
9812 cat >>confdefs.h <<\_ACEOF
9813#define WITH_ABBREV_NO_TTY 1
9814_ACEOF
9815
9816 cat >>confdefs.h <<\_ACEOF
9817#define LOCKED_PASSWD_STRING "*LK*"
9818_ACEOF
7419 9819
7420 ;; 9820 ;;
7421*-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) 9821*-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7422 check_for_libcrypt_later=1 9822 check_for_libcrypt_later=1
7423 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h 9823 cat >>confdefs.h <<\_ACEOF
9824#define PAM_TTY_KLUDGE 1
9825_ACEOF
7424 9826
7425 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h 9827 cat >>confdefs.h <<\_ACEOF
9828#define LOCKED_PASSWD_PREFIX "!"
9829_ACEOF
7426 9830
7427 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h 9831 cat >>confdefs.h <<\_ACEOF
9832#define SPT_TYPE SPT_REUSEARGV
9833_ACEOF
7428 9834
7429 9835
7430$as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h 9836cat >>confdefs.h <<\_ACEOF
9837#define _PATH_BTMP "/var/log/btmp"
9838_ACEOF
7431 9839
7432 9840
7433$as_echo "#define USE_BTMP 1" >>confdefs.h 9841cat >>confdefs.h <<\_ACEOF
9842#define USE_BTMP 1
9843_ACEOF
7434 9844
7435 ;; 9845 ;;
7436*-*-linux*) 9846*-*-linux*)
@@ -7439,39 +9849,188 @@ $as_echo "#define USE_BTMP 1" >>confdefs.h
7439 check_for_libcrypt_later=1 9849 check_for_libcrypt_later=1
7440 check_for_openpty_ctty_bug=1 9850 check_for_openpty_ctty_bug=1
7441 9851
7442$as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h 9852cat >>confdefs.h <<\_ACEOF
9853#define PAM_TTY_KLUDGE 1
9854_ACEOF
7443 9855
7444 9856
7445$as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h 9857cat >>confdefs.h <<\_ACEOF
9858#define LOCKED_PASSWD_PREFIX "!"
9859_ACEOF
7446 9860
7447 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h 9861 cat >>confdefs.h <<\_ACEOF
9862#define SPT_TYPE SPT_REUSEARGV
9863_ACEOF
7448 9864
7449 9865
7450$as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h 9866cat >>confdefs.h <<\_ACEOF
9867#define LINK_OPNOTSUPP_ERRNO EPERM
9868_ACEOF
7451 9869
7452 9870
7453$as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h 9871cat >>confdefs.h <<\_ACEOF
9872#define _PATH_BTMP "/var/log/btmp"
9873_ACEOF
7454 9874
7455 $as_echo "#define USE_BTMP 1" >>confdefs.h 9875 cat >>confdefs.h <<\_ACEOF
9876#define USE_BTMP 1
9877_ACEOF
7456 9878
7457 9879
7458$as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h 9880cat >>confdefs.h <<\_ACEOF
9881#define LINUX_OOM_ADJUST 1
9882_ACEOF
7459 9883
7460 inet6_default_4in6=yes 9884 inet6_default_4in6=yes
7461 case `uname -r` in 9885 case `uname -r` in
7462 1.*|2.0.*) 9886 1.*|2.0.*)
7463 9887
7464$as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h 9888cat >>confdefs.h <<\_ACEOF
9889#define BROKEN_CMSG_TYPE 1
9890_ACEOF
7465 9891
7466 ;; 9892 ;;
7467 esac 9893 esac
7468 # tun(4) forwarding compat code 9894 # tun(4) forwarding compat code
7469 for ac_header in linux/if_tun.h 9895
7470do : 9896for ac_header in linux/if_tun.h
7471 ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default" 9897do
7472if test "x$ac_cv_header_linux_if_tun_h" = xyes; then : 9898as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9899if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9904fi
9905ac_res=`eval echo '${'$as_ac_Header'}'`
9906 { echo "$as_me:$LINENO: result: $ac_res" >&5
9907echo "${ECHO_T}$ac_res" >&6; }
9908else
9909 # Is the header compilable?
9910{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9911echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9912cat >conftest.$ac_ext <<_ACEOF
9913/* confdefs.h. */
9914_ACEOF
9915cat confdefs.h >>conftest.$ac_ext
9916cat >>conftest.$ac_ext <<_ACEOF
9917/* end confdefs.h. */
9918$ac_includes_default
9919#include <$ac_header>
9920_ACEOF
9921rm -f conftest.$ac_objext
9922if { (ac_try="$ac_compile"
9923case "(($ac_try" in
9924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925 *) ac_try_echo=$ac_try;;
9926esac
9927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928 (eval "$ac_compile") 2>conftest.er1
9929 ac_status=$?
9930 grep -v '^ *+' conftest.er1 >conftest.err
9931 rm -f conftest.er1
9932 cat conftest.err >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } && {
9935 test -z "$ac_c_werror_flag" ||
9936 test ! -s conftest.err
9937 } && test -s conftest.$ac_objext; then
9938 ac_header_compiler=yes
9939else
9940 echo "$as_me: failed program was:" >&5
9941sed 's/^/| /' conftest.$ac_ext >&5
9942
9943 ac_header_compiler=no
9944fi
9945
9946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9947{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9948echo "${ECHO_T}$ac_header_compiler" >&6; }
9949
9950# Is the header present?
9951{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9952echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9953cat >conftest.$ac_ext <<_ACEOF
9954/* confdefs.h. */
9955_ACEOF
9956cat confdefs.h >>conftest.$ac_ext
9957cat >>conftest.$ac_ext <<_ACEOF
9958/* end confdefs.h. */
9959#include <$ac_header>
9960_ACEOF
9961if { (ac_try="$ac_cpp conftest.$ac_ext"
9962case "(($ac_try" in
9963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964 *) ac_try_echo=$ac_try;;
9965esac
9966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9968 ac_status=$?
9969 grep -v '^ *+' conftest.er1 >conftest.err
9970 rm -f conftest.er1
9971 cat conftest.err >&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } >/dev/null && {
9974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9975 test ! -s conftest.err
9976 }; then
9977 ac_header_preproc=yes
9978else
9979 echo "$as_me: failed program was:" >&5
9980sed 's/^/| /' conftest.$ac_ext >&5
9981
9982 ac_header_preproc=no
9983fi
9984
9985rm -f conftest.err conftest.$ac_ext
9986{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9987echo "${ECHO_T}$ac_header_preproc" >&6; }
9988
9989# So? What about this header?
9990case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9991 yes:no: )
9992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9993echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9995echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9996 ac_header_preproc=yes
9997 ;;
9998 no:yes:* )
9999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10000echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10002echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10004echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10006echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10008echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10010echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10011 ( cat <<\_ASBOX
10012## ------------------------------------------- ##
10013## Report this to openssh-unix-dev@mindrot.org ##
10014## ------------------------------------------- ##
10015_ASBOX
10016 ) | sed "s/^/$as_me: WARNING: /" >&2
10017 ;;
10018esac
10019{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10021if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10023else
10024 eval "$as_ac_Header=\$ac_header_preproc"
10025fi
10026ac_res=`eval echo '${'$as_ac_Header'}'`
10027 { echo "$as_me:$LINENO: result: $ac_res" >&5
10028echo "${ECHO_T}$ac_res" >&6; }
10029
10030fi
10031if test `eval echo '${'$as_ac_Header'}'` = yes; then
7473 cat >>confdefs.h <<_ACEOF 10032 cat >>confdefs.h <<_ACEOF
7474#define HAVE_LINUX_IF_TUN_H 1 10033#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7475_ACEOF 10034_ACEOF
7476 10035
7477fi 10036fi
@@ -7480,42 +10039,177 @@ done
7480 10039
7481 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then 10040 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
7482 10041
7483$as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h 10042cat >>confdefs.h <<\_ACEOF
10043#define SSH_TUN_LINUX 1
10044_ACEOF
7484 10045
7485 10046
7486$as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h 10047cat >>confdefs.h <<\_ACEOF
10048#define SSH_TUN_COMPAT_AF 1
10049_ACEOF
7487 10050
7488 10051
7489$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h 10052cat >>confdefs.h <<\_ACEOF
10053#define SSH_TUN_PREPEND_AF 1
10054_ACEOF
7490 10055
7491 fi 10056 fi
7492 for ac_header in linux/seccomp.h linux/filter.h linux/audit.h 10057
7493do : 10058
7494 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10059
7495ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <linux/types.h> 10060for ac_header in linux/seccomp.h linux/filter.h linux/audit.h
7496" 10061do
7497if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10062as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10063{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10065if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10066 echo $ECHO_N "(cached) $ECHO_C" >&6
10067else
10068 cat >conftest.$ac_ext <<_ACEOF
10069/* confdefs.h. */
10070_ACEOF
10071cat confdefs.h >>conftest.$ac_ext
10072cat >>conftest.$ac_ext <<_ACEOF
10073/* end confdefs.h. */
10074#include <linux/types.h>
10075
10076#include <$ac_header>
10077_ACEOF
10078rm -f conftest.$ac_objext
10079if { (ac_try="$ac_compile"
10080case "(($ac_try" in
10081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10082 *) ac_try_echo=$ac_try;;
10083esac
10084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10085 (eval "$ac_compile") 2>conftest.er1
10086 ac_status=$?
10087 grep -v '^ *+' conftest.er1 >conftest.err
10088 rm -f conftest.er1
10089 cat conftest.err >&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } && {
10092 test -z "$ac_c_werror_flag" ||
10093 test ! -s conftest.err
10094 } && test -s conftest.$ac_objext; then
10095 eval "$as_ac_Header=yes"
10096else
10097 echo "$as_me: failed program was:" >&5
10098sed 's/^/| /' conftest.$ac_ext >&5
10099
10100 eval "$as_ac_Header=no"
10101fi
10102
10103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10104fi
10105ac_res=`eval echo '${'$as_ac_Header'}'`
10106 { echo "$as_me:$LINENO: result: $ac_res" >&5
10107echo "${ECHO_T}$ac_res" >&6; }
10108if test `eval echo '${'$as_ac_Header'}'` = yes; then
7498 cat >>confdefs.h <<_ACEOF 10109 cat >>confdefs.h <<_ACEOF
7499#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10110#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7500_ACEOF 10111_ACEOF
7501 10112
7502fi 10113fi
7503 10114
7504done 10115done
7505 10116
7506 for ac_func in prctl 10117
7507do : 10118for ac_func in prctl
7508 ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl" 10119do
7509if test "x$ac_cv_func_prctl" = xyes; then : 10120as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10121{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10122echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10123if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10125else
10126 cat >conftest.$ac_ext <<_ACEOF
10127/* confdefs.h. */
10128_ACEOF
10129cat confdefs.h >>conftest.$ac_ext
10130cat >>conftest.$ac_ext <<_ACEOF
10131/* end confdefs.h. */
10132/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10134#define $ac_func innocuous_$ac_func
10135
10136/* System header to define __stub macros and hopefully few prototypes,
10137 which can conflict with char $ac_func (); below.
10138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10139 <limits.h> exists even on freestanding compilers. */
10140
10141#ifdef __STDC__
10142# include <limits.h>
10143#else
10144# include <assert.h>
10145#endif
10146
10147#undef $ac_func
10148
10149/* Override any GCC internal prototype to avoid an error.
10150 Use char because int might match the return type of a GCC
10151 builtin and then its argument prototype would still apply. */
10152#ifdef __cplusplus
10153extern "C"
10154#endif
10155char $ac_func ();
10156/* The GNU C library defines this for functions which it implements
10157 to always fail with ENOSYS. Some functions are actually named
10158 something starting with __ and the normal name is an alias. */
10159#if defined __stub_$ac_func || defined __stub___$ac_func
10160choke me
10161#endif
10162
10163int
10164main ()
10165{
10166return $ac_func ();
10167 ;
10168 return 0;
10169}
10170_ACEOF
10171rm -f conftest.$ac_objext conftest$ac_exeext
10172if { (ac_try="$ac_link"
10173case "(($ac_try" in
10174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175 *) ac_try_echo=$ac_try;;
10176esac
10177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10178 (eval "$ac_link") 2>conftest.er1
10179 ac_status=$?
10180 grep -v '^ *+' conftest.er1 >conftest.err
10181 rm -f conftest.er1
10182 cat conftest.err >&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } && {
10185 test -z "$ac_c_werror_flag" ||
10186 test ! -s conftest.err
10187 } && test -s conftest$ac_exeext &&
10188 $as_test_x conftest$ac_exeext; then
10189 eval "$as_ac_var=yes"
10190else
10191 echo "$as_me: failed program was:" >&5
10192sed 's/^/| /' conftest.$ac_ext >&5
10193
10194 eval "$as_ac_var=no"
10195fi
10196
10197rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10198 conftest$ac_exeext conftest.$ac_ext
10199fi
10200ac_res=`eval echo '${'$as_ac_var'}'`
10201 { echo "$as_me:$LINENO: result: $ac_res" >&5
10202echo "${ECHO_T}$ac_res" >&6; }
10203if test `eval echo '${'$as_ac_var'}'` = yes; then
7510 cat >>confdefs.h <<_ACEOF 10204 cat >>confdefs.h <<_ACEOF
7511#define HAVE_PRCTL 1 10205#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7512_ACEOF 10206_ACEOF
7513 10207
7514fi 10208fi
7515done 10209done
7516 10210
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp architecture" >&5 10211 { echo "$as_me:$LINENO: checking for seccomp architecture" >&5
7518$as_echo_n "checking for seccomp architecture... " >&6; } 10212echo $ECHO_N "checking for seccomp architecture... $ECHO_C" >&6; }
7519 seccomp_audit_arch= 10213 seccomp_audit_arch=
7520 case "$host" in 10214 case "$host" in
7521 x86_64-*) 10215 x86_64-*)
@@ -7529,21 +10223,23 @@ $as_echo_n "checking for seccomp architecture... " >&6; }
7529 ;; 10223 ;;
7530 esac 10224 esac
7531 if test "x$seccomp_audit_arch" != "x" ; then 10225 if test "x$seccomp_audit_arch" != "x" ; then
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$seccomp_audit_arch\"" >&5 10226 { echo "$as_me:$LINENO: result: \"$seccomp_audit_arch\"" >&5
7533$as_echo "\"$seccomp_audit_arch\"" >&6; } 10227echo "${ECHO_T}\"$seccomp_audit_arch\"" >&6; }
7534 10228
7535cat >>confdefs.h <<_ACEOF 10229cat >>confdefs.h <<_ACEOF
7536#define SECCOMP_AUDIT_ARCH $seccomp_audit_arch 10230#define SECCOMP_AUDIT_ARCH $seccomp_audit_arch
7537_ACEOF 10231_ACEOF
7538 10232
7539 else 10233 else
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: architecture not supported" >&5 10234 { echo "$as_me:$LINENO: result: architecture not supported" >&5
7541$as_echo "architecture not supported" >&6; } 10235echo "${ECHO_T}architecture not supported" >&6; }
7542 fi 10236 fi
7543 ;; 10237 ;;
7544mips-sony-bsd|mips-sony-newsos4) 10238mips-sony-bsd|mips-sony-newsos4)
7545 10239
7546$as_echo "#define NEED_SETPGRP 1" >>confdefs.h 10240cat >>confdefs.h <<\_ACEOF
10241#define NEED_SETPGRP 1
10242_ACEOF
7547 10243
7548 SONY=1 10244 SONY=1
7549 ;; 10245 ;;
@@ -7553,66 +10249,352 @@ $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
7553 need_dash_r=1 10249 need_dash_r=1
7554 fi 10250 fi
7555 10251
7556$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h 10252cat >>confdefs.h <<\_ACEOF
10253#define SSH_TUN_FREEBSD 1
10254_ACEOF
10255
10256 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10257 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
10258echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
10259if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10260 echo $ECHO_N "(cached) $ECHO_C" >&6
10261fi
10262{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
10263echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
10264else
10265 # Is the header compilable?
10266{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
10267echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
10268cat >conftest.$ac_ext <<_ACEOF
10269/* confdefs.h. */
10270_ACEOF
10271cat confdefs.h >>conftest.$ac_ext
10272cat >>conftest.$ac_ext <<_ACEOF
10273/* end confdefs.h. */
10274$ac_includes_default
10275#include <net/if_tap.h>
10276_ACEOF
10277rm -f conftest.$ac_objext
10278if { (ac_try="$ac_compile"
10279case "(($ac_try" in
10280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10281 *) ac_try_echo=$ac_try;;
10282esac
10283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10284 (eval "$ac_compile") 2>conftest.er1
10285 ac_status=$?
10286 grep -v '^ *+' conftest.er1 >conftest.err
10287 rm -f conftest.er1
10288 cat conftest.err >&5
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); } && {
10291 test -z "$ac_c_werror_flag" ||
10292 test ! -s conftest.err
10293 } && test -s conftest.$ac_objext; then
10294 ac_header_compiler=yes
10295else
10296 echo "$as_me: failed program was:" >&5
10297sed 's/^/| /' conftest.$ac_ext >&5
10298
10299 ac_header_compiler=no
10300fi
10301
10302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10303{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10304echo "${ECHO_T}$ac_header_compiler" >&6; }
10305
10306# Is the header present?
10307{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
10308echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
10309cat >conftest.$ac_ext <<_ACEOF
10310/* confdefs.h. */
10311_ACEOF
10312cat confdefs.h >>conftest.$ac_ext
10313cat >>conftest.$ac_ext <<_ACEOF
10314/* end confdefs.h. */
10315#include <net/if_tap.h>
10316_ACEOF
10317if { (ac_try="$ac_cpp conftest.$ac_ext"
10318case "(($ac_try" in
10319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10320 *) ac_try_echo=$ac_try;;
10321esac
10322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10324 ac_status=$?
10325 grep -v '^ *+' conftest.er1 >conftest.err
10326 rm -f conftest.er1
10327 cat conftest.err >&5
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); } >/dev/null && {
10330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10331 test ! -s conftest.err
10332 }; then
10333 ac_header_preproc=yes
10334else
10335 echo "$as_me: failed program was:" >&5
10336sed 's/^/| /' conftest.$ac_ext >&5
10337
10338 ac_header_preproc=no
10339fi
10340
10341rm -f conftest.err conftest.$ac_ext
10342{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10343echo "${ECHO_T}$ac_header_preproc" >&6; }
7557 10344
7558 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default" 10345# So? What about this header?
7559if test "x$ac_cv_header_net_if_tap_h" = xyes; then : 10346case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10347 yes:no: )
10348 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
10349echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10350 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
10351echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
10352 ac_header_preproc=yes
10353 ;;
10354 no:yes:* )
10355 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
10356echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
10357 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
10358echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
10359 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
10360echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
10361 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
10362echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
10363 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
10364echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
10365 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
10366echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
10367 ( cat <<\_ASBOX
10368## ------------------------------------------- ##
10369## Report this to openssh-unix-dev@mindrot.org ##
10370## ------------------------------------------- ##
10371_ASBOX
10372 ) | sed "s/^/$as_me: WARNING: /" >&2
10373 ;;
10374esac
10375{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
10376echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
10377if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10379else
10380 ac_cv_header_net_if_tap_h=$ac_header_preproc
10381fi
10382{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
10383echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
7560 10384
10385fi
10386if test $ac_cv_header_net_if_tap_h = yes; then
10387 :
7561else 10388else
7562 10389
7563$as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h 10390cat >>confdefs.h <<\_ACEOF
10391#define SSH_TUN_NO_L2 1
10392_ACEOF
7564 10393
7565fi 10394fi
7566 10395
7567 10396
7568 10397
7569$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h 10398cat >>confdefs.h <<\_ACEOF
10399#define SSH_TUN_PREPEND_AF 1
10400_ACEOF
7570 10401
7571 TEST_MALLOC_OPTIONS="AJRX" 10402 TEST_MALLOC_OPTIONS="AJRX"
7572 10403
7573$as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h 10404cat >>confdefs.h <<\_ACEOF
10405#define BROKEN_STRNVIS 1
10406_ACEOF
7574 10407
7575 10408
7576$as_echo "#define BROKEN_READ_COMPARISON 1" >>confdefs.h 10409cat >>confdefs.h <<\_ACEOF
10410#define BROKEN_READ_COMPARISON 1
10411_ACEOF
7577 10412
7578 ;; 10413 ;;
7579*-*-freebsd*) 10414*-*-freebsd*)
7580 check_for_libcrypt_later=1 10415 check_for_libcrypt_later=1
7581 10416
7582$as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h 10417cat >>confdefs.h <<\_ACEOF
10418#define LOCKED_PASSWD_PREFIX "*LOCKED*"
10419_ACEOF
10420
10421
10422cat >>confdefs.h <<\_ACEOF
10423#define SSH_TUN_FREEBSD 1
10424_ACEOF
10425
10426 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10427 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
10428echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
10429if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10430 echo $ECHO_N "(cached) $ECHO_C" >&6
10431fi
10432{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
10433echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
10434else
10435 # Is the header compilable?
10436{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
10437echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
10438cat >conftest.$ac_ext <<_ACEOF
10439/* confdefs.h. */
10440_ACEOF
10441cat confdefs.h >>conftest.$ac_ext
10442cat >>conftest.$ac_ext <<_ACEOF
10443/* end confdefs.h. */
10444$ac_includes_default
10445#include <net/if_tap.h>
10446_ACEOF
10447rm -f conftest.$ac_objext
10448if { (ac_try="$ac_compile"
10449case "(($ac_try" in
10450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10451 *) ac_try_echo=$ac_try;;
10452esac
10453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10454 (eval "$ac_compile") 2>conftest.er1
10455 ac_status=$?
10456 grep -v '^ *+' conftest.er1 >conftest.err
10457 rm -f conftest.er1
10458 cat conftest.err >&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } && {
10461 test -z "$ac_c_werror_flag" ||
10462 test ! -s conftest.err
10463 } && test -s conftest.$ac_objext; then
10464 ac_header_compiler=yes
10465else
10466 echo "$as_me: failed program was:" >&5
10467sed 's/^/| /' conftest.$ac_ext >&5
10468
10469 ac_header_compiler=no
10470fi
10471
10472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10473{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10474echo "${ECHO_T}$ac_header_compiler" >&6; }
7583 10475
10476# Is the header present?
10477{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
10478echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
10479cat >conftest.$ac_ext <<_ACEOF
10480/* confdefs.h. */
10481_ACEOF
10482cat confdefs.h >>conftest.$ac_ext
10483cat >>conftest.$ac_ext <<_ACEOF
10484/* end confdefs.h. */
10485#include <net/if_tap.h>
10486_ACEOF
10487if { (ac_try="$ac_cpp conftest.$ac_ext"
10488case "(($ac_try" in
10489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10490 *) ac_try_echo=$ac_try;;
10491esac
10492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10494 ac_status=$?
10495 grep -v '^ *+' conftest.er1 >conftest.err
10496 rm -f conftest.er1
10497 cat conftest.err >&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); } >/dev/null && {
10500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10501 test ! -s conftest.err
10502 }; then
10503 ac_header_preproc=yes
10504else
10505 echo "$as_me: failed program was:" >&5
10506sed 's/^/| /' conftest.$ac_ext >&5
7584 10507
7585$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h 10508 ac_header_preproc=no
10509fi
7586 10510
7587 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default" 10511rm -f conftest.err conftest.$ac_ext
7588if test "x$ac_cv_header_net_if_tap_h" = xyes; then : 10512{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10513echo "${ECHO_T}$ac_header_preproc" >&6; }
7589 10514
10515# So? What about this header?
10516case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10517 yes:no: )
10518 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
10519echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10520 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
10521echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
10522 ac_header_preproc=yes
10523 ;;
10524 no:yes:* )
10525 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
10526echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
10527 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
10528echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
10529 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
10530echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
10531 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
10532echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
10533 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
10534echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
10535 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
10536echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
10537 ( cat <<\_ASBOX
10538## ------------------------------------------- ##
10539## Report this to openssh-unix-dev@mindrot.org ##
10540## ------------------------------------------- ##
10541_ASBOX
10542 ) | sed "s/^/$as_me: WARNING: /" >&2
10543 ;;
10544esac
10545{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
10546echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
10547if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10548 echo $ECHO_N "(cached) $ECHO_C" >&6
7590else 10549else
10550 ac_cv_header_net_if_tap_h=$ac_header_preproc
10551fi
10552{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
10553echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
7591 10554
7592$as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h 10555fi
10556if test $ac_cv_header_net_if_tap_h = yes; then
10557 :
10558else
10559
10560cat >>confdefs.h <<\_ACEOF
10561#define SSH_TUN_NO_L2 1
10562_ACEOF
7593 10563
7594fi 10564fi
7595 10565
7596 10566
7597 10567
7598$as_echo "#define BROKEN_GLOB 1" >>confdefs.h 10568cat >>confdefs.h <<\_ACEOF
10569#define BROKEN_GLOB 1
10570_ACEOF
7599 10571
7600 10572
7601$as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h 10573cat >>confdefs.h <<\_ACEOF
10574#define BROKEN_STRNVIS 1
10575_ACEOF
7602 10576
7603 TEST_MALLOC_OPTIONS="AJRX" 10577 TEST_MALLOC_OPTIONS="AJRX"
7604 # Preauth crypto occasionally uses file descriptors for crypto offload 10578 # Preauth crypto occasionally uses file descriptors for crypto offload
7605 # and will crash if they cannot be opened. 10579 # and will crash if they cannot be opened.
7606 10580
7607$as_echo "#define SANDBOX_SKIP_RLIMIT_NOFILE 1" >>confdefs.h 10581cat >>confdefs.h <<\_ACEOF
10582#define SANDBOX_SKIP_RLIMIT_NOFILE 1
10583_ACEOF
7608 10584
7609 ;; 10585 ;;
7610*-*-bsdi*) 10586*-*-bsdi*)
7611 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 10587 cat >>confdefs.h <<\_ACEOF
10588#define SETEUID_BREAKS_SETUID 1
10589_ACEOF
7612 10590
7613 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 10591 cat >>confdefs.h <<\_ACEOF
10592#define BROKEN_SETREUID 1
10593_ACEOF
7614 10594
7615 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 10595 cat >>confdefs.h <<\_ACEOF
10596#define BROKEN_SETREGID 1
10597_ACEOF
7616 10598
7617 ;; 10599 ;;
7618*-next-*) 10600*-next-*)
@@ -7621,29 +10603,45 @@ $as_echo "#define SANDBOX_SKIP_RLIMIT_NOFILE 1" >>confdefs.h
7621 conf_wtmp_location=/usr/adm/wtmp 10603 conf_wtmp_location=/usr/adm/wtmp
7622 maildir=/usr/spool/mail 10604 maildir=/usr/spool/mail
7623 10605
7624$as_echo "#define HAVE_NEXT 1" >>confdefs.h 10606cat >>confdefs.h <<\_ACEOF
10607#define HAVE_NEXT 1
10608_ACEOF
7625 10609
7626 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h 10610 cat >>confdefs.h <<\_ACEOF
10611#define BROKEN_REALPATH 1
10612_ACEOF
7627 10613
7628 $as_echo "#define USE_PIPES 1" >>confdefs.h 10614 cat >>confdefs.h <<\_ACEOF
10615#define USE_PIPES 1
10616_ACEOF
7629 10617
7630 10618
7631$as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h 10619cat >>confdefs.h <<\_ACEOF
10620#define BROKEN_SAVED_UIDS 1
10621_ACEOF
7632 10622
7633 ;; 10623 ;;
7634*-*-openbsd*) 10624*-*-openbsd*)
7635 use_pie=auto 10625 use_pie=auto
7636 10626
7637$as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h 10627cat >>confdefs.h <<\_ACEOF
10628#define HAVE_ATTRIBUTE__SENTINEL__ 1
10629_ACEOF
7638 10630
7639 10631
7640$as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h 10632cat >>confdefs.h <<\_ACEOF
10633#define HAVE_ATTRIBUTE__BOUNDED__ 1
10634_ACEOF
7641 10635
7642 10636
7643$as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h 10637cat >>confdefs.h <<\_ACEOF
10638#define SSH_TUN_OPENBSD 1
10639_ACEOF
7644 10640
7645 10641
7646$as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h 10642cat >>confdefs.h <<\_ACEOF
10643#define SYSLOG_R_SAFE_IN_SIGHAND 1
10644_ACEOF
7647 10645
7648 TEST_MALLOC_OPTIONS="AFGJPRX" 10646 TEST_MALLOC_OPTIONS="AFGJPRX"
7649 ;; 10647 ;;
@@ -7651,60 +10649,86 @@ $as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h
7651 if test "x$withval" != "xno" ; then 10649 if test "x$withval" != "xno" ; then
7652 need_dash_r=1 10650 need_dash_r=1
7653 fi 10651 fi
7654 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h 10652 cat >>confdefs.h <<\_ACEOF
10653#define PAM_SUN_CODEBASE 1
10654_ACEOF
7655 10655
7656 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h 10656 cat >>confdefs.h <<\_ACEOF
10657#define LOGIN_NEEDS_UTMPX 1
10658_ACEOF
7657 10659
7658 10660
7659$as_echo "#define LOGIN_NEEDS_TERM 1" >>confdefs.h 10661cat >>confdefs.h <<\_ACEOF
10662#define LOGIN_NEEDS_TERM 1
10663_ACEOF
7660 10664
7661 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h 10665 cat >>confdefs.h <<\_ACEOF
10666#define PAM_TTY_KLUDGE 1
10667_ACEOF
7662 10668
7663 10669
7664$as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h 10670cat >>confdefs.h <<\_ACEOF
10671#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
10672_ACEOF
7665 10673
7666 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h 10674 cat >>confdefs.h <<\_ACEOF
10675#define LOCKED_PASSWD_STRING "*LK*"
10676_ACEOF
7667 10677
7668 # Pushing STREAMS modules will cause sshd to acquire a controlling tty. 10678 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
7669 10679
7670$as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h 10680cat >>confdefs.h <<\_ACEOF
10681#define SSHD_ACQUIRES_CTTY 1
10682_ACEOF
7671 10683
7672 10684
7673$as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h 10685cat >>confdefs.h <<\_ACEOF
10686#define PASSWD_NEEDS_USERNAME 1
10687_ACEOF
7674 10688
7675 10689
7676$as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h 10690cat >>confdefs.h <<\_ACEOF
10691#define BROKEN_TCGETATTR_ICANON 1
10692_ACEOF
7677 10693
7678 external_path_file=/etc/default/login 10694 external_path_file=/etc/default/login
7679 # hardwire lastlog location (can't detect it on some versions) 10695 # hardwire lastlog location (can't detect it on some versions)
7680 conf_lastlog_location="/var/adm/lastlog" 10696 conf_lastlog_location="/var/adm/lastlog"
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5 10697 { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
7682$as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; } 10698echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; }
7683 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` 10699 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
7684 if test "$sol2ver" -ge 8; then 10700 if test "$sol2ver" -ge 8; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10701 { echo "$as_me:$LINENO: result: yes" >&5
7686$as_echo "yes" >&6; } 10702echo "${ECHO_T}yes" >&6; }
7687 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h 10703 cat >>confdefs.h <<\_ACEOF
10704#define DISABLE_UTMP 1
10705_ACEOF
7688 10706
7689 10707
7690$as_echo "#define DISABLE_WTMP 1" >>confdefs.h 10708cat >>confdefs.h <<\_ACEOF
10709#define DISABLE_WTMP 1
10710_ACEOF
7691 10711
7692 else 10712 else
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10713 { echo "$as_me:$LINENO: result: no" >&5
7694$as_echo "no" >&6; } 10714echo "${ECHO_T}no" >&6; }
7695 fi 10715 fi
7696 10716
7697# Check whether --with-solaris-contracts was given. 10717# Check whether --with-solaris-contracts was given.
7698if test "${with_solaris_contracts+set}" = set; then : 10718if test "${with_solaris_contracts+set}" = set; then
7699 withval=$with_solaris_contracts; 10719 withval=$with_solaris_contracts;
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5 10720 { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5
7701$as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; } 10721echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; }
7702if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then : 10722if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then
7703 $as_echo_n "(cached) " >&6 10723 echo $ECHO_N "(cached) $ECHO_C" >&6
7704else 10724else
7705 ac_check_lib_save_LIBS=$LIBS 10725 ac_check_lib_save_LIBS=$LIBS
7706LIBS="-lcontract $LIBS" 10726LIBS="-lcontract $LIBS"
7707cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10727cat >conftest.$ac_ext <<_ACEOF
10728/* confdefs.h. */
10729_ACEOF
10730cat confdefs.h >>conftest.$ac_ext
10731cat >>conftest.$ac_ext <<_ACEOF
7708/* end confdefs.h. */ 10732/* end confdefs.h. */
7709 10733
7710/* Override any GCC internal prototype to avoid an error. 10734/* Override any GCC internal prototype to avoid an error.
@@ -7722,20 +10746,43 @@ return ct_tmpl_activate ();
7722 return 0; 10746 return 0;
7723} 10747}
7724_ACEOF 10748_ACEOF
7725if ac_fn_c_try_link "$LINENO"; then : 10749rm -f conftest.$ac_objext conftest$ac_exeext
10750if { (ac_try="$ac_link"
10751case "(($ac_try" in
10752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753 *) ac_try_echo=$ac_try;;
10754esac
10755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10756 (eval "$ac_link") 2>conftest.er1
10757 ac_status=$?
10758 grep -v '^ *+' conftest.er1 >conftest.err
10759 rm -f conftest.er1
10760 cat conftest.err >&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); } && {
10763 test -z "$ac_c_werror_flag" ||
10764 test ! -s conftest.err
10765 } && test -s conftest$ac_exeext &&
10766 $as_test_x conftest$ac_exeext; then
7726 ac_cv_lib_contract_ct_tmpl_activate=yes 10767 ac_cv_lib_contract_ct_tmpl_activate=yes
7727else 10768else
7728 ac_cv_lib_contract_ct_tmpl_activate=no 10769 echo "$as_me: failed program was:" >&5
10770sed 's/^/| /' conftest.$ac_ext >&5
10771
10772 ac_cv_lib_contract_ct_tmpl_activate=no
7729fi 10773fi
7730rm -f core conftest.err conftest.$ac_objext \ 10774
7731 conftest$ac_exeext conftest.$ac_ext 10775rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10776 conftest$ac_exeext conftest.$ac_ext
7732LIBS=$ac_check_lib_save_LIBS 10777LIBS=$ac_check_lib_save_LIBS
7733fi 10778fi
7734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5 10779{ echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
7735$as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; } 10780echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
7736if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then : 10781if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then
7737 10782
7738$as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h 10783cat >>confdefs.h <<\_ACEOF
10784#define USE_SOLARIS_PROCESS_CONTRACTS 1
10785_ACEOF
7739 10786
7740 SSHDLIBS="$SSHDLIBS -lcontract" 10787 SSHDLIBS="$SSHDLIBS -lcontract"
7741 SPC_MSG="yes" 10788 SPC_MSG="yes"
@@ -7746,16 +10793,20 @@ fi
7746 10793
7747 10794
7748# Check whether --with-solaris-projects was given. 10795# Check whether --with-solaris-projects was given.
7749if test "${with_solaris_projects+set}" = set; then : 10796if test "${with_solaris_projects+set}" = set; then
7750 withval=$with_solaris_projects; 10797 withval=$with_solaris_projects;
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5 10798 { echo "$as_me:$LINENO: checking for setproject in -lproject" >&5
7752$as_echo_n "checking for setproject in -lproject... " >&6; } 10799echo $ECHO_N "checking for setproject in -lproject... $ECHO_C" >&6; }
7753if ${ac_cv_lib_project_setproject+:} false; then : 10800if test "${ac_cv_lib_project_setproject+set}" = set; then
7754 $as_echo_n "(cached) " >&6 10801 echo $ECHO_N "(cached) $ECHO_C" >&6
7755else 10802else
7756 ac_check_lib_save_LIBS=$LIBS 10803 ac_check_lib_save_LIBS=$LIBS
7757LIBS="-lproject $LIBS" 10804LIBS="-lproject $LIBS"
7758cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10805cat >conftest.$ac_ext <<_ACEOF
10806/* confdefs.h. */
10807_ACEOF
10808cat confdefs.h >>conftest.$ac_ext
10809cat >>conftest.$ac_ext <<_ACEOF
7759/* end confdefs.h. */ 10810/* end confdefs.h. */
7760 10811
7761/* Override any GCC internal prototype to avoid an error. 10812/* Override any GCC internal prototype to avoid an error.
@@ -7773,20 +10824,43 @@ return setproject ();
7773 return 0; 10824 return 0;
7774} 10825}
7775_ACEOF 10826_ACEOF
7776if ac_fn_c_try_link "$LINENO"; then : 10827rm -f conftest.$ac_objext conftest$ac_exeext
10828if { (ac_try="$ac_link"
10829case "(($ac_try" in
10830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10831 *) ac_try_echo=$ac_try;;
10832esac
10833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10834 (eval "$ac_link") 2>conftest.er1
10835 ac_status=$?
10836 grep -v '^ *+' conftest.er1 >conftest.err
10837 rm -f conftest.er1
10838 cat conftest.err >&5
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); } && {
10841 test -z "$ac_c_werror_flag" ||
10842 test ! -s conftest.err
10843 } && test -s conftest$ac_exeext &&
10844 $as_test_x conftest$ac_exeext; then
7777 ac_cv_lib_project_setproject=yes 10845 ac_cv_lib_project_setproject=yes
7778else 10846else
7779 ac_cv_lib_project_setproject=no 10847 echo "$as_me: failed program was:" >&5
10848sed 's/^/| /' conftest.$ac_ext >&5
10849
10850 ac_cv_lib_project_setproject=no
7780fi 10851fi
7781rm -f core conftest.err conftest.$ac_objext \ 10852
7782 conftest$ac_exeext conftest.$ac_ext 10853rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10854 conftest$ac_exeext conftest.$ac_ext
7783LIBS=$ac_check_lib_save_LIBS 10855LIBS=$ac_check_lib_save_LIBS
7784fi 10856fi
7785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5 10857{ echo "$as_me:$LINENO: result: $ac_cv_lib_project_setproject" >&5
7786$as_echo "$ac_cv_lib_project_setproject" >&6; } 10858echo "${ECHO_T}$ac_cv_lib_project_setproject" >&6; }
7787if test "x$ac_cv_lib_project_setproject" = xyes; then : 10859if test $ac_cv_lib_project_setproject = yes; then
7788 10860
7789$as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h 10861cat >>confdefs.h <<\_ACEOF
10862#define USE_SOLARIS_PROJECTS 1
10863_ACEOF
7790 10864
7791 SSHDLIBS="$SSHDLIBS -lproject" 10865 SSHDLIBS="$SSHDLIBS -lproject"
7792 SP_MSG="yes" 10866 SP_MSG="yes"
@@ -7799,48 +10873,150 @@ fi
7799 ;; 10873 ;;
7800*-*-sunos4*) 10874*-*-sunos4*)
7801 CPPFLAGS="$CPPFLAGS -DSUNOS4" 10875 CPPFLAGS="$CPPFLAGS -DSUNOS4"
7802 for ac_func in getpwanam 10876
7803do : 10877for ac_func in getpwanam
7804 ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam" 10878do
7805if test "x$ac_cv_func_getpwanam" = xyes; then : 10879as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10880{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10881echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10882if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10884else
10885 cat >conftest.$ac_ext <<_ACEOF
10886/* confdefs.h. */
10887_ACEOF
10888cat confdefs.h >>conftest.$ac_ext
10889cat >>conftest.$ac_ext <<_ACEOF
10890/* end confdefs.h. */
10891/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10893#define $ac_func innocuous_$ac_func
10894
10895/* System header to define __stub macros and hopefully few prototypes,
10896 which can conflict with char $ac_func (); below.
10897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10898 <limits.h> exists even on freestanding compilers. */
10899
10900#ifdef __STDC__
10901# include <limits.h>
10902#else
10903# include <assert.h>
10904#endif
10905
10906#undef $ac_func
10907
10908/* Override any GCC internal prototype to avoid an error.
10909 Use char because int might match the return type of a GCC
10910 builtin and then its argument prototype would still apply. */
10911#ifdef __cplusplus
10912extern "C"
10913#endif
10914char $ac_func ();
10915/* The GNU C library defines this for functions which it implements
10916 to always fail with ENOSYS. Some functions are actually named
10917 something starting with __ and the normal name is an alias. */
10918#if defined __stub_$ac_func || defined __stub___$ac_func
10919choke me
10920#endif
10921
10922int
10923main ()
10924{
10925return $ac_func ();
10926 ;
10927 return 0;
10928}
10929_ACEOF
10930rm -f conftest.$ac_objext conftest$ac_exeext
10931if { (ac_try="$ac_link"
10932case "(($ac_try" in
10933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934 *) ac_try_echo=$ac_try;;
10935esac
10936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10937 (eval "$ac_link") 2>conftest.er1
10938 ac_status=$?
10939 grep -v '^ *+' conftest.er1 >conftest.err
10940 rm -f conftest.er1
10941 cat conftest.err >&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } && {
10944 test -z "$ac_c_werror_flag" ||
10945 test ! -s conftest.err
10946 } && test -s conftest$ac_exeext &&
10947 $as_test_x conftest$ac_exeext; then
10948 eval "$as_ac_var=yes"
10949else
10950 echo "$as_me: failed program was:" >&5
10951sed 's/^/| /' conftest.$ac_ext >&5
10952
10953 eval "$as_ac_var=no"
10954fi
10955
10956rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10957 conftest$ac_exeext conftest.$ac_ext
10958fi
10959ac_res=`eval echo '${'$as_ac_var'}'`
10960 { echo "$as_me:$LINENO: result: $ac_res" >&5
10961echo "${ECHO_T}$ac_res" >&6; }
10962if test `eval echo '${'$as_ac_var'}'` = yes; then
7806 cat >>confdefs.h <<_ACEOF 10963 cat >>confdefs.h <<_ACEOF
7807#define HAVE_GETPWANAM 1 10964#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7808_ACEOF 10965_ACEOF
7809 10966
7810fi 10967fi
7811done 10968done
7812 10969
7813 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h 10970 cat >>confdefs.h <<\_ACEOF
10971#define PAM_SUN_CODEBASE 1
10972_ACEOF
7814 10973
7815 conf_utmp_location=/etc/utmp 10974 conf_utmp_location=/etc/utmp
7816 conf_wtmp_location=/var/adm/wtmp 10975 conf_wtmp_location=/var/adm/wtmp
7817 conf_lastlog_location=/var/adm/lastlog 10976 conf_lastlog_location=/var/adm/lastlog
7818 $as_echo "#define USE_PIPES 1" >>confdefs.h 10977 cat >>confdefs.h <<\_ACEOF
10978#define USE_PIPES 1
10979_ACEOF
7819 10980
7820 ;; 10981 ;;
7821*-ncr-sysv*) 10982*-ncr-sysv*)
7822 LIBS="$LIBS -lc89" 10983 LIBS="$LIBS -lc89"
7823 $as_echo "#define USE_PIPES 1" >>confdefs.h 10984 cat >>confdefs.h <<\_ACEOF
10985#define USE_PIPES 1
10986_ACEOF
7824 10987
7825 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h 10988 cat >>confdefs.h <<\_ACEOF
10989#define SSHD_ACQUIRES_CTTY 1
10990_ACEOF
7826 10991
7827 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 10992 cat >>confdefs.h <<\_ACEOF
10993#define SETEUID_BREAKS_SETUID 1
10994_ACEOF
7828 10995
7829 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 10996 cat >>confdefs.h <<\_ACEOF
10997#define BROKEN_SETREUID 1
10998_ACEOF
7830 10999
7831 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 11000 cat >>confdefs.h <<\_ACEOF
11001#define BROKEN_SETREGID 1
11002_ACEOF
7832 11003
7833 ;; 11004 ;;
7834*-sni-sysv*) 11005*-sni-sysv*)
7835 # /usr/ucblib MUST NOT be searched on ReliantUNIX 11006 # /usr/ucblib MUST NOT be searched on ReliantUNIX
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 11007
7837$as_echo_n "checking for dlsym in -ldl... " >&6; } 11008{ echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
7838if ${ac_cv_lib_dl_dlsym+:} false; then : 11009echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
7839 $as_echo_n "(cached) " >&6 11010if test "${ac_cv_lib_dl_dlsym+set}" = set; then
11011 echo $ECHO_N "(cached) $ECHO_C" >&6
7840else 11012else
7841 ac_check_lib_save_LIBS=$LIBS 11013 ac_check_lib_save_LIBS=$LIBS
7842LIBS="-ldl $LIBS" 11014LIBS="-ldl $LIBS"
7843cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11015cat >conftest.$ac_ext <<_ACEOF
11016/* confdefs.h. */
11017_ACEOF
11018cat confdefs.h >>conftest.$ac_ext
11019cat >>conftest.$ac_ext <<_ACEOF
7844/* end confdefs.h. */ 11020/* end confdefs.h. */
7845 11021
7846/* Override any GCC internal prototype to avoid an error. 11022/* Override any GCC internal prototype to avoid an error.
@@ -7858,18 +11034,39 @@ return dlsym ();
7858 return 0; 11034 return 0;
7859} 11035}
7860_ACEOF 11036_ACEOF
7861if ac_fn_c_try_link "$LINENO"; then : 11037rm -f conftest.$ac_objext conftest$ac_exeext
11038if { (ac_try="$ac_link"
11039case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11042esac
11043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_link") 2>conftest.er1
11045 ac_status=$?
11046 grep -v '^ *+' conftest.er1 >conftest.err
11047 rm -f conftest.er1
11048 cat conftest.err >&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } && {
11051 test -z "$ac_c_werror_flag" ||
11052 test ! -s conftest.err
11053 } && test -s conftest$ac_exeext &&
11054 $as_test_x conftest$ac_exeext; then
7862 ac_cv_lib_dl_dlsym=yes 11055 ac_cv_lib_dl_dlsym=yes
7863else 11056else
7864 ac_cv_lib_dl_dlsym=no 11057 echo "$as_me: failed program was:" >&5
11058sed 's/^/| /' conftest.$ac_ext >&5
11059
11060 ac_cv_lib_dl_dlsym=no
7865fi 11061fi
7866rm -f core conftest.err conftest.$ac_objext \ 11062
7867 conftest$ac_exeext conftest.$ac_ext 11063rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11064 conftest$ac_exeext conftest.$ac_ext
7868LIBS=$ac_check_lib_save_LIBS 11065LIBS=$ac_check_lib_save_LIBS
7869fi 11066fi
7870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 11067{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
7871$as_echo "$ac_cv_lib_dl_dlsym" >&6; } 11068echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
7872if test "x$ac_cv_lib_dl_dlsym" = xyes; then : 11069if test $ac_cv_lib_dl_dlsym = yes; then
7873 cat >>confdefs.h <<_ACEOF 11070 cat >>confdefs.h <<_ACEOF
7874#define HAVE_LIBDL 1 11071#define HAVE_LIBDL 1
7875_ACEOF 11072_ACEOF
@@ -7879,14 +11076,18 @@ _ACEOF
7879fi 11076fi
7880 11077
7881 # -lresolv needs to be at the end of LIBS or DNS lookups break 11078 # -lresolv needs to be at the end of LIBS or DNS lookups break
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5 11079 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
7883$as_echo_n "checking for res_query in -lresolv... " >&6; } 11080echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
7884if ${ac_cv_lib_resolv_res_query+:} false; then : 11081if test "${ac_cv_lib_resolv_res_query+set}" = set; then
7885 $as_echo_n "(cached) " >&6 11082 echo $ECHO_N "(cached) $ECHO_C" >&6
7886else 11083else
7887 ac_check_lib_save_LIBS=$LIBS 11084 ac_check_lib_save_LIBS=$LIBS
7888LIBS="-lresolv $LIBS" 11085LIBS="-lresolv $LIBS"
7889cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11086cat >conftest.$ac_ext <<_ACEOF
11087/* confdefs.h. */
11088_ACEOF
11089cat confdefs.h >>conftest.$ac_ext
11090cat >>conftest.$ac_ext <<_ACEOF
7890/* end confdefs.h. */ 11091/* end confdefs.h. */
7891 11092
7892/* Override any GCC internal prototype to avoid an error. 11093/* Override any GCC internal prototype to avoid an error.
@@ -7904,33 +11105,66 @@ return res_query ();
7904 return 0; 11105 return 0;
7905} 11106}
7906_ACEOF 11107_ACEOF
7907if ac_fn_c_try_link "$LINENO"; then : 11108rm -f conftest.$ac_objext conftest$ac_exeext
11109if { (ac_try="$ac_link"
11110case "(($ac_try" in
11111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112 *) ac_try_echo=$ac_try;;
11113esac
11114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115 (eval "$ac_link") 2>conftest.er1
11116 ac_status=$?
11117 grep -v '^ *+' conftest.er1 >conftest.err
11118 rm -f conftest.er1
11119 cat conftest.err >&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } && {
11122 test -z "$ac_c_werror_flag" ||
11123 test ! -s conftest.err
11124 } && test -s conftest$ac_exeext &&
11125 $as_test_x conftest$ac_exeext; then
7908 ac_cv_lib_resolv_res_query=yes 11126 ac_cv_lib_resolv_res_query=yes
7909else 11127else
7910 ac_cv_lib_resolv_res_query=no 11128 echo "$as_me: failed program was:" >&5
11129sed 's/^/| /' conftest.$ac_ext >&5
11130
11131 ac_cv_lib_resolv_res_query=no
7911fi 11132fi
7912rm -f core conftest.err conftest.$ac_objext \ 11133
7913 conftest$ac_exeext conftest.$ac_ext 11134rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11135 conftest$ac_exeext conftest.$ac_ext
7914LIBS=$ac_check_lib_save_LIBS 11136LIBS=$ac_check_lib_save_LIBS
7915fi 11137fi
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5 11138{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
7917$as_echo "$ac_cv_lib_resolv_res_query" >&6; } 11139echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
7918if test "x$ac_cv_lib_resolv_res_query" = xyes; then : 11140if test $ac_cv_lib_resolv_res_query = yes; then
7919 LIBS="$LIBS -lresolv" 11141 LIBS="$LIBS -lresolv"
7920fi 11142fi
7921 11143
7922 IPADDR_IN_DISPLAY=yes 11144 IPADDR_IN_DISPLAY=yes
7923 $as_echo "#define USE_PIPES 1" >>confdefs.h 11145 cat >>confdefs.h <<\_ACEOF
11146#define USE_PIPES 1
11147_ACEOF
7924 11148
7925 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h 11149 cat >>confdefs.h <<\_ACEOF
11150#define IP_TOS_IS_BROKEN 1
11151_ACEOF
7926 11152
7927 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 11153 cat >>confdefs.h <<\_ACEOF
11154#define SETEUID_BREAKS_SETUID 1
11155_ACEOF
7928 11156
7929 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 11157 cat >>confdefs.h <<\_ACEOF
11158#define BROKEN_SETREUID 1
11159_ACEOF
7930 11160
7931 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 11161 cat >>confdefs.h <<\_ACEOF
11162#define BROKEN_SETREGID 1
11163_ACEOF
7932 11164
7933 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h 11165 cat >>confdefs.h <<\_ACEOF
11166#define SSHD_ACQUIRES_CTTY 1
11167_ACEOF
7934 11168
7935 external_path_file=/etc/default/login 11169 external_path_file=/etc/default/login
7936 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX 11170 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
@@ -7939,18 +11173,30 @@ fi
7939 ;; 11173 ;;
7940# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. 11174# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
7941*-*-sysv4.2*) 11175*-*-sysv4.2*)
7942 $as_echo "#define USE_PIPES 1" >>confdefs.h 11176 cat >>confdefs.h <<\_ACEOF
11177#define USE_PIPES 1
11178_ACEOF
7943 11179
7944 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 11180 cat >>confdefs.h <<\_ACEOF
11181#define SETEUID_BREAKS_SETUID 1
11182_ACEOF
7945 11183
7946 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 11184 cat >>confdefs.h <<\_ACEOF
11185#define BROKEN_SETREUID 1
11186_ACEOF
7947 11187
7948 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 11188 cat >>confdefs.h <<\_ACEOF
11189#define BROKEN_SETREGID 1
11190_ACEOF
7949 11191
7950 11192
7951$as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h 11193cat >>confdefs.h <<\_ACEOF
11194#define PASSWD_NEEDS_USERNAME 1
11195_ACEOF
7952 11196
7953 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h 11197 cat >>confdefs.h <<\_ACEOF
11198#define LOCKED_PASSWD_STRING "*LK*"
11199_ACEOF
7954 11200
7955 TEST_SHELL=$SHELL # let configure find us a capable shell 11201 TEST_SHELL=$SHELL # let configure find us a capable shell
7956 ;; 11202 ;;
@@ -7958,37 +11204,59 @@ $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7958*-*-sysv5*) 11204*-*-sysv5*)
7959 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf" 11205 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
7960 11206
7961$as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h 11207cat >>confdefs.h <<\_ACEOF
11208#define UNIXWARE_LONG_PASSWORDS 1
11209_ACEOF
7962 11210
7963 $as_echo "#define USE_PIPES 1" >>confdefs.h 11211 cat >>confdefs.h <<\_ACEOF
11212#define USE_PIPES 1
11213_ACEOF
7964 11214
7965 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 11215 cat >>confdefs.h <<\_ACEOF
11216#define SETEUID_BREAKS_SETUID 1
11217_ACEOF
7966 11218
7967 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h 11219 cat >>confdefs.h <<\_ACEOF
11220#define BROKEN_GETADDRINFO 1
11221_ACEOF
7968 11222
7969 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 11223 cat >>confdefs.h <<\_ACEOF
11224#define BROKEN_SETREUID 1
11225_ACEOF
7970 11226
7971 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 11227 cat >>confdefs.h <<\_ACEOF
11228#define BROKEN_SETREGID 1
11229_ACEOF
7972 11230
7973 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h 11231 cat >>confdefs.h <<\_ACEOF
11232#define PASSWD_NEEDS_USERNAME 1
11233_ACEOF
7974 11234
7975 TEST_SHELL=$SHELL # let configure find us a capable shell 11235 TEST_SHELL=$SHELL # let configure find us a capable shell
7976 case "$host" in 11236 case "$host" in
7977 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x 11237 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
7978 maildir=/var/spool/mail 11238 maildir=/var/spool/mail
7979 11239
7980$as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h 11240cat >>confdefs.h <<\_ACEOF
11241#define BROKEN_LIBIAF 1
11242_ACEOF
7981 11243
7982 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h 11244 cat >>confdefs.h <<\_ACEOF
11245#define BROKEN_UPDWTMPX 1
11246_ACEOF
7983 11247
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5 11248 { echo "$as_me:$LINENO: checking for getluid in -lprot" >&5
7985$as_echo_n "checking for getluid in -lprot... " >&6; } 11249echo $ECHO_N "checking for getluid in -lprot... $ECHO_C" >&6; }
7986if ${ac_cv_lib_prot_getluid+:} false; then : 11250if test "${ac_cv_lib_prot_getluid+set}" = set; then
7987 $as_echo_n "(cached) " >&6 11251 echo $ECHO_N "(cached) $ECHO_C" >&6
7988else 11252else
7989 ac_check_lib_save_LIBS=$LIBS 11253 ac_check_lib_save_LIBS=$LIBS
7990LIBS="-lprot $LIBS" 11254LIBS="-lprot $LIBS"
7991cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11255cat >conftest.$ac_ext <<_ACEOF
11256/* confdefs.h. */
11257_ACEOF
11258cat confdefs.h >>conftest.$ac_ext
11259cat >>conftest.$ac_ext <<_ACEOF
7992/* end confdefs.h. */ 11260/* end confdefs.h. */
7993 11261
7994/* Override any GCC internal prototype to avoid an error. 11262/* Override any GCC internal prototype to avoid an error.
@@ -8006,40 +11274,150 @@ return getluid ();
8006 return 0; 11274 return 0;
8007} 11275}
8008_ACEOF 11276_ACEOF
8009if ac_fn_c_try_link "$LINENO"; then : 11277rm -f conftest.$ac_objext conftest$ac_exeext
11278if { (ac_try="$ac_link"
11279case "(($ac_try" in
11280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11281 *) ac_try_echo=$ac_try;;
11282esac
11283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11284 (eval "$ac_link") 2>conftest.er1
11285 ac_status=$?
11286 grep -v '^ *+' conftest.er1 >conftest.err
11287 rm -f conftest.er1
11288 cat conftest.err >&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } && {
11291 test -z "$ac_c_werror_flag" ||
11292 test ! -s conftest.err
11293 } && test -s conftest$ac_exeext &&
11294 $as_test_x conftest$ac_exeext; then
8010 ac_cv_lib_prot_getluid=yes 11295 ac_cv_lib_prot_getluid=yes
8011else 11296else
8012 ac_cv_lib_prot_getluid=no 11297 echo "$as_me: failed program was:" >&5
11298sed 's/^/| /' conftest.$ac_ext >&5
11299
11300 ac_cv_lib_prot_getluid=no
8013fi 11301fi
8014rm -f core conftest.err conftest.$ac_objext \ 11302
8015 conftest$ac_exeext conftest.$ac_ext 11303rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11304 conftest$ac_exeext conftest.$ac_ext
8016LIBS=$ac_check_lib_save_LIBS 11305LIBS=$ac_check_lib_save_LIBS
8017fi 11306fi
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5 11307{ echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getluid" >&5
8019$as_echo "$ac_cv_lib_prot_getluid" >&6; } 11308echo "${ECHO_T}$ac_cv_lib_prot_getluid" >&6; }
8020if test "x$ac_cv_lib_prot_getluid" = xyes; then : 11309if test $ac_cv_lib_prot_getluid = yes; then
8021 LIBS="$LIBS -lprot" 11310 LIBS="$LIBS -lprot"
8022 for ac_func in getluid setluid 11311
8023do : 11312
8024 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11313for ac_func in getluid setluid
8025ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11314do
8026if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11315as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11316{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11317echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11318if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11319 echo $ECHO_N "(cached) $ECHO_C" >&6
11320else
11321 cat >conftest.$ac_ext <<_ACEOF
11322/* confdefs.h. */
11323_ACEOF
11324cat confdefs.h >>conftest.$ac_ext
11325cat >>conftest.$ac_ext <<_ACEOF
11326/* end confdefs.h. */
11327/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11329#define $ac_func innocuous_$ac_func
11330
11331/* System header to define __stub macros and hopefully few prototypes,
11332 which can conflict with char $ac_func (); below.
11333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11334 <limits.h> exists even on freestanding compilers. */
11335
11336#ifdef __STDC__
11337# include <limits.h>
11338#else
11339# include <assert.h>
11340#endif
11341
11342#undef $ac_func
11343
11344/* Override any GCC internal prototype to avoid an error.
11345 Use char because int might match the return type of a GCC
11346 builtin and then its argument prototype would still apply. */
11347#ifdef __cplusplus
11348extern "C"
11349#endif
11350char $ac_func ();
11351/* The GNU C library defines this for functions which it implements
11352 to always fail with ENOSYS. Some functions are actually named
11353 something starting with __ and the normal name is an alias. */
11354#if defined __stub_$ac_func || defined __stub___$ac_func
11355choke me
11356#endif
11357
11358int
11359main ()
11360{
11361return $ac_func ();
11362 ;
11363 return 0;
11364}
11365_ACEOF
11366rm -f conftest.$ac_objext conftest$ac_exeext
11367if { (ac_try="$ac_link"
11368case "(($ac_try" in
11369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370 *) ac_try_echo=$ac_try;;
11371esac
11372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11373 (eval "$ac_link") 2>conftest.er1
11374 ac_status=$?
11375 grep -v '^ *+' conftest.er1 >conftest.err
11376 rm -f conftest.er1
11377 cat conftest.err >&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); } && {
11380 test -z "$ac_c_werror_flag" ||
11381 test ! -s conftest.err
11382 } && test -s conftest$ac_exeext &&
11383 $as_test_x conftest$ac_exeext; then
11384 eval "$as_ac_var=yes"
11385else
11386 echo "$as_me: failed program was:" >&5
11387sed 's/^/| /' conftest.$ac_ext >&5
11388
11389 eval "$as_ac_var=no"
11390fi
11391
11392rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11393 conftest$ac_exeext conftest.$ac_ext
11394fi
11395ac_res=`eval echo '${'$as_ac_var'}'`
11396 { echo "$as_me:$LINENO: result: $ac_res" >&5
11397echo "${ECHO_T}$ac_res" >&6; }
11398if test `eval echo '${'$as_ac_var'}'` = yes; then
8027 cat >>confdefs.h <<_ACEOF 11399 cat >>confdefs.h <<_ACEOF
8028#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11400#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8029_ACEOF 11401_ACEOF
8030 11402
8031fi 11403fi
8032done 11404done
8033 11405
8034 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h 11406 cat >>confdefs.h <<\_ACEOF
11407#define HAVE_SECUREWARE 1
11408_ACEOF
8035 11409
8036 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h 11410 cat >>confdefs.h <<\_ACEOF
11411#define DISABLE_SHADOW 1
11412_ACEOF
8037 11413
8038 11414
8039fi 11415fi
8040 11416
8041 ;; 11417 ;;
8042 *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h 11418 *) cat >>confdefs.h <<\_ACEOF
11419#define LOCKED_PASSWD_STRING "*LK*"
11420_ACEOF
8043 11421
8044 check_for_libcrypt_later=1 11422 check_for_libcrypt_later=1
8045 ;; 11423 ;;
@@ -8049,7 +11427,9 @@ fi
8049 ;; 11427 ;;
8050# SCO UNIX and OEM versions of SCO UNIX 11428# SCO UNIX and OEM versions of SCO UNIX
8051*-*-sco3.2v4*) 11429*-*-sco3.2v4*)
8052 as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5 11430 { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5
11431echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;}
11432 { (exit 1); exit 1; }; }
8053 ;; 11433 ;;
8054# SCO OpenServer 5.x 11434# SCO OpenServer 5.x
8055*-*-sco3.2v5*) 11435*-*-sco3.2v5*)
@@ -8058,35 +11438,140 @@ fi
8058 fi 11438 fi
8059 LIBS="$LIBS -lprot -lx -ltinfo -lm" 11439 LIBS="$LIBS -lprot -lx -ltinfo -lm"
8060 no_dev_ptmx=1 11440 no_dev_ptmx=1
8061 $as_echo "#define USE_PIPES 1" >>confdefs.h 11441 cat >>confdefs.h <<\_ACEOF
11442#define USE_PIPES 1
11443_ACEOF
11444
11445 cat >>confdefs.h <<\_ACEOF
11446#define HAVE_SECUREWARE 1
11447_ACEOF
11448
11449 cat >>confdefs.h <<\_ACEOF
11450#define DISABLE_SHADOW 1
11451_ACEOF
11452
11453 cat >>confdefs.h <<\_ACEOF
11454#define DISABLE_FD_PASSING 1
11455_ACEOF
11456
11457 cat >>confdefs.h <<\_ACEOF
11458#define SETEUID_BREAKS_SETUID 1
11459_ACEOF
11460
11461 cat >>confdefs.h <<\_ACEOF
11462#define BROKEN_GETADDRINFO 1
11463_ACEOF
8062 11464
8063 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h 11465 cat >>confdefs.h <<\_ACEOF
11466#define BROKEN_SETREUID 1
11467_ACEOF
11468
11469 cat >>confdefs.h <<\_ACEOF
11470#define BROKEN_SETREGID 1
11471_ACEOF
8064 11472
8065 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h 11473 cat >>confdefs.h <<\_ACEOF
11474#define WITH_ABBREV_NO_TTY 1
11475_ACEOF
8066 11476
8067 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h 11477 cat >>confdefs.h <<\_ACEOF
11478#define BROKEN_UPDWTMPX 1
11479_ACEOF
8068 11480
8069 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 11481 cat >>confdefs.h <<\_ACEOF
11482#define PASSWD_NEEDS_USERNAME 1
11483_ACEOF
8070 11484
8071 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
8072 11485
8073 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
8074 11486
8075 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 11487for ac_func in getluid setluid
11488do
11489as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11490{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11491echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11492if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11494else
11495 cat >conftest.$ac_ext <<_ACEOF
11496/* confdefs.h. */
11497_ACEOF
11498cat confdefs.h >>conftest.$ac_ext
11499cat >>conftest.$ac_ext <<_ACEOF
11500/* end confdefs.h. */
11501/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11503#define $ac_func innocuous_$ac_func
11504
11505/* System header to define __stub macros and hopefully few prototypes,
11506 which can conflict with char $ac_func (); below.
11507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11508 <limits.h> exists even on freestanding compilers. */
11509
11510#ifdef __STDC__
11511# include <limits.h>
11512#else
11513# include <assert.h>
11514#endif
8076 11515
8077 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h 11516#undef $ac_func
8078 11517
8079 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h 11518/* Override any GCC internal prototype to avoid an error.
11519 Use char because int might match the return type of a GCC
11520 builtin and then its argument prototype would still apply. */
11521#ifdef __cplusplus
11522extern "C"
11523#endif
11524char $ac_func ();
11525/* The GNU C library defines this for functions which it implements
11526 to always fail with ENOSYS. Some functions are actually named
11527 something starting with __ and the normal name is an alias. */
11528#if defined __stub_$ac_func || defined __stub___$ac_func
11529choke me
11530#endif
11531
11532int
11533main ()
11534{
11535return $ac_func ();
11536 ;
11537 return 0;
11538}
11539_ACEOF
11540rm -f conftest.$ac_objext conftest$ac_exeext
11541if { (ac_try="$ac_link"
11542case "(($ac_try" in
11543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11544 *) ac_try_echo=$ac_try;;
11545esac
11546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11547 (eval "$ac_link") 2>conftest.er1
11548 ac_status=$?
11549 grep -v '^ *+' conftest.er1 >conftest.err
11550 rm -f conftest.er1
11551 cat conftest.err >&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } && {
11554 test -z "$ac_c_werror_flag" ||
11555 test ! -s conftest.err
11556 } && test -s conftest$ac_exeext &&
11557 $as_test_x conftest$ac_exeext; then
11558 eval "$as_ac_var=yes"
11559else
11560 echo "$as_me: failed program was:" >&5
11561sed 's/^/| /' conftest.$ac_ext >&5
8080 11562
8081 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h 11563 eval "$as_ac_var=no"
11564fi
8082 11565
8083 for ac_func in getluid setluid 11566rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8084do : 11567 conftest$ac_exeext conftest.$ac_ext
8085 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11568fi
8086ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11569ac_res=`eval echo '${'$as_ac_var'}'`
8087if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11570 { echo "$as_me:$LINENO: result: $ac_res" >&5
11571echo "${ECHO_T}$ac_res" >&6; }
11572if test `eval echo '${'$as_ac_var'}'` = yes; then
8088 cat >>confdefs.h <<_ACEOF 11573 cat >>confdefs.h <<_ACEOF
8089#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11574#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8090_ACEOF 11575_ACEOF
8091 11576
8092fi 11577fi
@@ -8098,67 +11583,103 @@ done
8098 ;; 11583 ;;
8099*-*-unicosmk*) 11584*-*-unicosmk*)
8100 11585
8101$as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h 11586cat >>confdefs.h <<\_ACEOF
11587#define NO_SSH_LASTLOG 1
11588_ACEOF
8102 11589
8103 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 11590 cat >>confdefs.h <<\_ACEOF
11591#define SETEUID_BREAKS_SETUID 1
11592_ACEOF
8104 11593
8105 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 11594 cat >>confdefs.h <<\_ACEOF
11595#define BROKEN_SETREUID 1
11596_ACEOF
8106 11597
8107 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 11598 cat >>confdefs.h <<\_ACEOF
11599#define BROKEN_SETREGID 1
11600_ACEOF
8108 11601
8109 $as_echo "#define USE_PIPES 1" >>confdefs.h 11602 cat >>confdefs.h <<\_ACEOF
11603#define USE_PIPES 1
11604_ACEOF
8110 11605
8111 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h 11606 cat >>confdefs.h <<\_ACEOF
11607#define DISABLE_FD_PASSING 1
11608_ACEOF
8112 11609
8113 LDFLAGS="$LDFLAGS" 11610 LDFLAGS="$LDFLAGS"
8114 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" 11611 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
8115 MANTYPE=cat 11612 MANTYPE=cat
8116 ;; 11613 ;;
8117*-*-unicosmp*) 11614*-*-unicosmp*)
8118 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 11615 cat >>confdefs.h <<\_ACEOF
11616#define SETEUID_BREAKS_SETUID 1
11617_ACEOF
8119 11618
8120 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 11619 cat >>confdefs.h <<\_ACEOF
11620#define BROKEN_SETREUID 1
11621_ACEOF
8121 11622
8122 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 11623 cat >>confdefs.h <<\_ACEOF
11624#define BROKEN_SETREGID 1
11625_ACEOF
8123 11626
8124 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h 11627 cat >>confdefs.h <<\_ACEOF
11628#define WITH_ABBREV_NO_TTY 1
11629_ACEOF
8125 11630
8126 $as_echo "#define USE_PIPES 1" >>confdefs.h 11631 cat >>confdefs.h <<\_ACEOF
11632#define USE_PIPES 1
11633_ACEOF
8127 11634
8128 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h 11635 cat >>confdefs.h <<\_ACEOF
11636#define DISABLE_FD_PASSING 1
11637_ACEOF
8129 11638
8130 LDFLAGS="$LDFLAGS" 11639 LDFLAGS="$LDFLAGS"
8131 LIBS="$LIBS -lgen -lacid -ldb" 11640 LIBS="$LIBS -lgen -lacid -ldb"
8132 MANTYPE=cat 11641 MANTYPE=cat
8133 ;; 11642 ;;
8134*-*-unicos*) 11643*-*-unicos*)
8135 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 11644 cat >>confdefs.h <<\_ACEOF
11645#define SETEUID_BREAKS_SETUID 1
11646_ACEOF
8136 11647
8137 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 11648 cat >>confdefs.h <<\_ACEOF
11649#define BROKEN_SETREUID 1
11650_ACEOF
8138 11651
8139 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 11652 cat >>confdefs.h <<\_ACEOF
11653#define BROKEN_SETREGID 1
11654_ACEOF
8140 11655
8141 $as_echo "#define USE_PIPES 1" >>confdefs.h 11656 cat >>confdefs.h <<\_ACEOF
11657#define USE_PIPES 1
11658_ACEOF
8142 11659
8143 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h 11660 cat >>confdefs.h <<\_ACEOF
11661#define DISABLE_FD_PASSING 1
11662_ACEOF
8144 11663
8145 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h 11664 cat >>confdefs.h <<\_ACEOF
11665#define NO_SSH_LASTLOG 1
11666_ACEOF
8146 11667
8147 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" 11668 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
8148 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" 11669 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
8149 MANTYPE=cat 11670 MANTYPE=cat
8150 ;; 11671 ;;
8151*-dec-osf*) 11672*-dec-osf*)
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5 11673 { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
8153$as_echo_n "checking for Digital Unix SIA... " >&6; } 11674echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; }
8154 no_osfsia="" 11675 no_osfsia=""
8155 11676
8156# Check whether --with-osfsia was given. 11677# Check whether --with-osfsia was given.
8157if test "${with_osfsia+set}" = set; then : 11678if test "${with_osfsia+set}" = set; then
8158 withval=$with_osfsia; 11679 withval=$with_osfsia;
8159 if test "x$withval" = "xno" ; then 11680 if test "x$withval" = "xno" ; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11681 { echo "$as_me:$LINENO: result: disabled" >&5
8161$as_echo "disabled" >&6; } 11682echo "${ECHO_T}disabled" >&6; }
8162 no_osfsia=1 11683 no_osfsia=1
8163 fi 11684 fi
8164 11685
@@ -8166,55 +11687,85 @@ fi
8166 11687
8167 if test -z "$no_osfsia" ; then 11688 if test -z "$no_osfsia" ; then
8168 if test -f /etc/sia/matrix.conf; then 11689 if test -f /etc/sia/matrix.conf; then
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11690 { echo "$as_me:$LINENO: result: yes" >&5
8170$as_echo "yes" >&6; } 11691echo "${ECHO_T}yes" >&6; }
8171 11692
8172$as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h 11693cat >>confdefs.h <<\_ACEOF
11694#define HAVE_OSF_SIA 1
11695_ACEOF
8173 11696
8174 11697
8175$as_echo "#define DISABLE_LOGIN 1" >>confdefs.h 11698cat >>confdefs.h <<\_ACEOF
11699#define DISABLE_LOGIN 1
11700_ACEOF
8176 11701
8177 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h 11702 cat >>confdefs.h <<\_ACEOF
11703#define DISABLE_FD_PASSING 1
11704_ACEOF
8178 11705
8179 LIBS="$LIBS -lsecurity -ldb -lm -laud" 11706 LIBS="$LIBS -lsecurity -ldb -lm -laud"
8180 SIA_MSG="yes" 11707 SIA_MSG="yes"
8181 else 11708 else
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11709 { echo "$as_me:$LINENO: result: no" >&5
8183$as_echo "no" >&6; } 11710echo "${ECHO_T}no" >&6; }
8184 11711
8185$as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h 11712cat >>confdefs.h <<\_ACEOF
11713#define LOCKED_PASSWD_SUBSTR "Nologin"
11714_ACEOF
8186 11715
8187 fi 11716 fi
8188 fi 11717 fi
8189 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h 11718 cat >>confdefs.h <<\_ACEOF
11719#define BROKEN_GETADDRINFO 1
11720_ACEOF
8190 11721
8191 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 11722 cat >>confdefs.h <<\_ACEOF
11723#define SETEUID_BREAKS_SETUID 1
11724_ACEOF
8192 11725
8193 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 11726 cat >>confdefs.h <<\_ACEOF
11727#define BROKEN_SETREUID 1
11728_ACEOF
8194 11729
8195 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 11730 cat >>confdefs.h <<\_ACEOF
11731#define BROKEN_SETREGID 1
11732_ACEOF
8196 11733
8197 11734
8198$as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h 11735cat >>confdefs.h <<\_ACEOF
11736#define BROKEN_READV_COMPARISON 1
11737_ACEOF
8199 11738
8200 ;; 11739 ;;
8201 11740
8202*-*-nto-qnx*) 11741*-*-nto-qnx*)
8203 $as_echo "#define USE_PIPES 1" >>confdefs.h 11742 cat >>confdefs.h <<\_ACEOF
11743#define USE_PIPES 1
11744_ACEOF
8204 11745
8205 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h 11746 cat >>confdefs.h <<\_ACEOF
11747#define NO_X11_UNIX_SOCKETS 1
11748_ACEOF
8206 11749
8207 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h 11750 cat >>confdefs.h <<\_ACEOF
11751#define DISABLE_LASTLOG 1
11752_ACEOF
8208 11753
8209 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h 11754 cat >>confdefs.h <<\_ACEOF
11755#define SSHD_ACQUIRES_CTTY 1
11756_ACEOF
8210 11757
8211 11758
8212$as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h 11759cat >>confdefs.h <<\_ACEOF
11760#define BROKEN_SHADOW_EXPIRE 1
11761_ACEOF
8213 11762
8214 enable_etc_default_login=no # has incompatible /etc/default/login 11763 enable_etc_default_login=no # has incompatible /etc/default/login
8215 case "$host" in 11764 case "$host" in
8216 *-*-nto-qnx6*) 11765 *-*-nto-qnx6*)
8217 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h 11766 cat >>confdefs.h <<\_ACEOF
11767#define DISABLE_FD_PASSING 1
11768_ACEOF
8218 11769
8219 ;; 11770 ;;
8220 esac 11771 esac
@@ -8222,34 +11773,48 @@ $as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h
8222 11773
8223*-*-ultrix*) 11774*-*-ultrix*)
8224 11775
8225$as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h 11776cat >>confdefs.h <<\_ACEOF
11777#define BROKEN_GETGROUPS 1
11778_ACEOF
8226 11779
8227 11780
8228$as_echo "#define BROKEN_MMAP 1" >>confdefs.h 11781cat >>confdefs.h <<\_ACEOF
11782#define BROKEN_MMAP 1
11783_ACEOF
8229 11784
8230 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h 11785 cat >>confdefs.h <<\_ACEOF
11786#define NEED_SETPGRP 1
11787_ACEOF
8231 11788
8232 11789
8233$as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h 11790cat >>confdefs.h <<\_ACEOF
11791#define HAVE_SYS_SYSLOG_H 1
11792_ACEOF
8234 11793
8235 ;; 11794 ;;
8236 11795
8237*-*-lynxos) 11796*-*-lynxos)
8238 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" 11797 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
8239 11798
8240$as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h 11799cat >>confdefs.h <<\_ACEOF
11800#define BROKEN_SETVBUF 1
11801_ACEOF
8241 11802
8242 ;; 11803 ;;
8243esac 11804esac
8244 11805
8245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5 11806{ echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
8246$as_echo_n "checking compiler and flags for sanity... " >&6; } 11807echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; }
8247if test "$cross_compiling" = yes; then : 11808if test "$cross_compiling" = yes; then
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5 11809 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5
8249$as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} 11810echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
8250 11811
8251else 11812else
8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11813 cat >conftest.$ac_ext <<_ACEOF
11814/* confdefs.h. */
11815_ACEOF
11816cat confdefs.h >>conftest.$ac_ext
11817cat >>conftest.$ac_ext <<_ACEOF
8253/* end confdefs.h. */ 11818/* end confdefs.h. */
8254 #include <stdio.h> 11819 #include <stdio.h>
8255int 11820int
@@ -8260,34 +11825,145 @@ main ()
8260 return 0; 11825 return 0;
8261} 11826}
8262_ACEOF 11827_ACEOF
8263if ac_fn_c_try_run "$LINENO"; then : 11828rm -f conftest$ac_exeext
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11829if { (ac_try="$ac_link"
8265$as_echo "yes" >&6; } 11830case "(($ac_try" in
11831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832 *) ac_try_echo=$ac_try;;
11833esac
11834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835 (eval "$ac_link") 2>&5
11836 ac_status=$?
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11839 { (case "(($ac_try" in
11840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841 *) ac_try_echo=$ac_try;;
11842esac
11843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11844 (eval "$ac_try") 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
11848 { echo "$as_me:$LINENO: result: yes" >&5
11849echo "${ECHO_T}yes" >&6; }
8266else 11850else
11851 echo "$as_me: program exited with status $ac_status" >&5
11852echo "$as_me: failed program was:" >&5
11853sed 's/^/| /' conftest.$ac_ext >&5
11854
11855( exit $ac_status )
8267 11856
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11857 { echo "$as_me:$LINENO: result: no" >&5
8269$as_echo "no" >&6; } 11858echo "${ECHO_T}no" >&6; }
8270 as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5 11859 { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5
11860echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
11861 { (exit 1); exit 1; }; }
8271 11862
8272fi 11863fi
8273rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11864rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8274 conftest.$ac_objext conftest.beam conftest.$ac_ext
8275fi 11865fi
8276 11866
8277 11867
11868
8278# Checks for libraries. 11869# Checks for libraries.
8279ac_fn_c_check_func "$LINENO" "yp_match" "ac_cv_func_yp_match" 11870{ echo "$as_me:$LINENO: checking for yp_match" >&5
8280if test "x$ac_cv_func_yp_match" = xyes; then : 11871echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; }
11872if test "${ac_cv_func_yp_match+set}" = set; then
11873 echo $ECHO_N "(cached) $ECHO_C" >&6
11874else
11875 cat >conftest.$ac_ext <<_ACEOF
11876/* confdefs.h. */
11877_ACEOF
11878cat confdefs.h >>conftest.$ac_ext
11879cat >>conftest.$ac_ext <<_ACEOF
11880/* end confdefs.h. */
11881/* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match.
11882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11883#define yp_match innocuous_yp_match
11884
11885/* System header to define __stub macros and hopefully few prototypes,
11886 which can conflict with char yp_match (); below.
11887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11888 <limits.h> exists even on freestanding compilers. */
11889
11890#ifdef __STDC__
11891# include <limits.h>
11892#else
11893# include <assert.h>
11894#endif
11895
11896#undef yp_match
11897
11898/* Override any GCC internal prototype to avoid an error.
11899 Use char because int might match the return type of a GCC
11900 builtin and then its argument prototype would still apply. */
11901#ifdef __cplusplus
11902extern "C"
11903#endif
11904char yp_match ();
11905/* The GNU C library defines this for functions which it implements
11906 to always fail with ENOSYS. Some functions are actually named
11907 something starting with __ and the normal name is an alias. */
11908#if defined __stub_yp_match || defined __stub___yp_match
11909choke me
11910#endif
11911
11912int
11913main ()
11914{
11915return yp_match ();
11916 ;
11917 return 0;
11918}
11919_ACEOF
11920rm -f conftest.$ac_objext conftest$ac_exeext
11921if { (ac_try="$ac_link"
11922case "(($ac_try" in
11923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924 *) ac_try_echo=$ac_try;;
11925esac
11926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11927 (eval "$ac_link") 2>conftest.er1
11928 ac_status=$?
11929 grep -v '^ *+' conftest.er1 >conftest.err
11930 rm -f conftest.er1
11931 cat conftest.err >&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); } && {
11934 test -z "$ac_c_werror_flag" ||
11935 test ! -s conftest.err
11936 } && test -s conftest$ac_exeext &&
11937 $as_test_x conftest$ac_exeext; then
11938 ac_cv_func_yp_match=yes
11939else
11940 echo "$as_me: failed program was:" >&5
11941sed 's/^/| /' conftest.$ac_ext >&5
11942
11943 ac_cv_func_yp_match=no
11944fi
8281 11945
11946rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11947 conftest$ac_exeext conftest.$ac_ext
11948fi
11949{ echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
11950echo "${ECHO_T}$ac_cv_func_yp_match" >&6; }
11951if test $ac_cv_func_yp_match = yes; then
11952 :
8282else 11953else
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5 11954
8284$as_echo_n "checking for yp_match in -lnsl... " >&6; } 11955{ echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
8285if ${ac_cv_lib_nsl_yp_match+:} false; then : 11956echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; }
8286 $as_echo_n "(cached) " >&6 11957if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
11958 echo $ECHO_N "(cached) $ECHO_C" >&6
8287else 11959else
8288 ac_check_lib_save_LIBS=$LIBS 11960 ac_check_lib_save_LIBS=$LIBS
8289LIBS="-lnsl $LIBS" 11961LIBS="-lnsl $LIBS"
8290cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11962cat >conftest.$ac_ext <<_ACEOF
11963/* confdefs.h. */
11964_ACEOF
11965cat confdefs.h >>conftest.$ac_ext
11966cat >>conftest.$ac_ext <<_ACEOF
8291/* end confdefs.h. */ 11967/* end confdefs.h. */
8292 11968
8293/* Override any GCC internal prototype to avoid an error. 11969/* Override any GCC internal prototype to avoid an error.
@@ -8305,18 +11981,39 @@ return yp_match ();
8305 return 0; 11981 return 0;
8306} 11982}
8307_ACEOF 11983_ACEOF
8308if ac_fn_c_try_link "$LINENO"; then : 11984rm -f conftest.$ac_objext conftest$ac_exeext
11985if { (ac_try="$ac_link"
11986case "(($ac_try" in
11987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988 *) ac_try_echo=$ac_try;;
11989esac
11990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991 (eval "$ac_link") 2>conftest.er1
11992 ac_status=$?
11993 grep -v '^ *+' conftest.er1 >conftest.err
11994 rm -f conftest.er1
11995 cat conftest.err >&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); } && {
11998 test -z "$ac_c_werror_flag" ||
11999 test ! -s conftest.err
12000 } && test -s conftest$ac_exeext &&
12001 $as_test_x conftest$ac_exeext; then
8309 ac_cv_lib_nsl_yp_match=yes 12002 ac_cv_lib_nsl_yp_match=yes
8310else 12003else
8311 ac_cv_lib_nsl_yp_match=no 12004 echo "$as_me: failed program was:" >&5
12005sed 's/^/| /' conftest.$ac_ext >&5
12006
12007 ac_cv_lib_nsl_yp_match=no
8312fi 12008fi
8313rm -f core conftest.err conftest.$ac_objext \ 12009
8314 conftest$ac_exeext conftest.$ac_ext 12010rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12011 conftest$ac_exeext conftest.$ac_ext
8315LIBS=$ac_check_lib_save_LIBS 12012LIBS=$ac_check_lib_save_LIBS
8316fi 12013fi
8317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5 12014{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
8318$as_echo "$ac_cv_lib_nsl_yp_match" >&6; } 12015echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; }
8319if test "x$ac_cv_lib_nsl_yp_match" = xyes; then : 12016if test $ac_cv_lib_nsl_yp_match = yes; then
8320 cat >>confdefs.h <<_ACEOF 12017 cat >>confdefs.h <<_ACEOF
8321#define HAVE_LIBNSL 1 12018#define HAVE_LIBNSL 1
8322_ACEOF 12019_ACEOF
@@ -8327,18 +12024,103 @@ fi
8327 12024
8328fi 12025fi
8329 12026
8330ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" 12027{ echo "$as_me:$LINENO: checking for setsockopt" >&5
8331if test "x$ac_cv_func_setsockopt" = xyes; then : 12028echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
12029if test "${ac_cv_func_setsockopt+set}" = set; then
12030 echo $ECHO_N "(cached) $ECHO_C" >&6
12031else
12032 cat >conftest.$ac_ext <<_ACEOF
12033/* confdefs.h. */
12034_ACEOF
12035cat confdefs.h >>conftest.$ac_ext
12036cat >>conftest.$ac_ext <<_ACEOF
12037/* end confdefs.h. */
12038/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
12039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12040#define setsockopt innocuous_setsockopt
8332 12041
12042/* System header to define __stub macros and hopefully few prototypes,
12043 which can conflict with char setsockopt (); below.
12044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12045 <limits.h> exists even on freestanding compilers. */
12046
12047#ifdef __STDC__
12048# include <limits.h>
12049#else
12050# include <assert.h>
12051#endif
12052
12053#undef setsockopt
12054
12055/* Override any GCC internal prototype to avoid an error.
12056 Use char because int might match the return type of a GCC
12057 builtin and then its argument prototype would still apply. */
12058#ifdef __cplusplus
12059extern "C"
12060#endif
12061char setsockopt ();
12062/* The GNU C library defines this for functions which it implements
12063 to always fail with ENOSYS. Some functions are actually named
12064 something starting with __ and the normal name is an alias. */
12065#if defined __stub_setsockopt || defined __stub___setsockopt
12066choke me
12067#endif
12068
12069int
12070main ()
12071{
12072return setsockopt ();
12073 ;
12074 return 0;
12075}
12076_ACEOF
12077rm -f conftest.$ac_objext conftest$ac_exeext
12078if { (ac_try="$ac_link"
12079case "(($ac_try" in
12080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12081 *) ac_try_echo=$ac_try;;
12082esac
12083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12084 (eval "$ac_link") 2>conftest.er1
12085 ac_status=$?
12086 grep -v '^ *+' conftest.er1 >conftest.err
12087 rm -f conftest.er1
12088 cat conftest.err >&5
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); } && {
12091 test -z "$ac_c_werror_flag" ||
12092 test ! -s conftest.err
12093 } && test -s conftest$ac_exeext &&
12094 $as_test_x conftest$ac_exeext; then
12095 ac_cv_func_setsockopt=yes
8333else 12096else
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5 12097 echo "$as_me: failed program was:" >&5
8335$as_echo_n "checking for setsockopt in -lsocket... " >&6; } 12098sed 's/^/| /' conftest.$ac_ext >&5
8336if ${ac_cv_lib_socket_setsockopt+:} false; then : 12099
8337 $as_echo_n "(cached) " >&6 12100 ac_cv_func_setsockopt=no
12101fi
12102
12103rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12104 conftest$ac_exeext conftest.$ac_ext
12105fi
12106{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
12107echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
12108if test $ac_cv_func_setsockopt = yes; then
12109 :
12110else
12111
12112{ echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
12113echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
12114if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
8338else 12116else
8339 ac_check_lib_save_LIBS=$LIBS 12117 ac_check_lib_save_LIBS=$LIBS
8340LIBS="-lsocket $LIBS" 12118LIBS="-lsocket $LIBS"
8341cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12119cat >conftest.$ac_ext <<_ACEOF
12120/* confdefs.h. */
12121_ACEOF
12122cat confdefs.h >>conftest.$ac_ext
12123cat >>conftest.$ac_ext <<_ACEOF
8342/* end confdefs.h. */ 12124/* end confdefs.h. */
8343 12125
8344/* Override any GCC internal prototype to avoid an error. 12126/* Override any GCC internal prototype to avoid an error.
@@ -8356,18 +12138,39 @@ return setsockopt ();
8356 return 0; 12138 return 0;
8357} 12139}
8358_ACEOF 12140_ACEOF
8359if ac_fn_c_try_link "$LINENO"; then : 12141rm -f conftest.$ac_objext conftest$ac_exeext
12142if { (ac_try="$ac_link"
12143case "(($ac_try" in
12144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145 *) ac_try_echo=$ac_try;;
12146esac
12147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148 (eval "$ac_link") 2>conftest.er1
12149 ac_status=$?
12150 grep -v '^ *+' conftest.er1 >conftest.err
12151 rm -f conftest.er1
12152 cat conftest.err >&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); } && {
12155 test -z "$ac_c_werror_flag" ||
12156 test ! -s conftest.err
12157 } && test -s conftest$ac_exeext &&
12158 $as_test_x conftest$ac_exeext; then
8360 ac_cv_lib_socket_setsockopt=yes 12159 ac_cv_lib_socket_setsockopt=yes
8361else 12160else
8362 ac_cv_lib_socket_setsockopt=no 12161 echo "$as_me: failed program was:" >&5
12162sed 's/^/| /' conftest.$ac_ext >&5
12163
12164 ac_cv_lib_socket_setsockopt=no
8363fi 12165fi
8364rm -f core conftest.err conftest.$ac_objext \ 12166
8365 conftest$ac_exeext conftest.$ac_ext 12167rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12168 conftest$ac_exeext conftest.$ac_ext
8366LIBS=$ac_check_lib_save_LIBS 12169LIBS=$ac_check_lib_save_LIBS
8367fi 12170fi
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5 12171{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
8369$as_echo "$ac_cv_lib_socket_setsockopt" >&6; } 12172echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
8370if test "x$ac_cv_lib_socket_setsockopt" = xyes; then : 12173if test $ac_cv_lib_socket_setsockopt = yes; then
8371 cat >>confdefs.h <<_ACEOF 12174 cat >>confdefs.h <<_ACEOF
8372#define HAVE_LIBSOCKET 1 12175#define HAVE_LIBSOCKET 1
8373_ACEOF 12176_ACEOF
@@ -8379,19 +12182,235 @@ fi
8379fi 12182fi
8380 12183
8381 12184
12185
8382for ac_func in dirname 12186for ac_func in dirname
8383do : 12187do
8384 ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname" 12188as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8385if test "x$ac_cv_func_dirname" = xyes; then : 12189{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12190echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12191if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12192 echo $ECHO_N "(cached) $ECHO_C" >&6
12193else
12194 cat >conftest.$ac_ext <<_ACEOF
12195/* confdefs.h. */
12196_ACEOF
12197cat confdefs.h >>conftest.$ac_ext
12198cat >>conftest.$ac_ext <<_ACEOF
12199/* end confdefs.h. */
12200/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12202#define $ac_func innocuous_$ac_func
12203
12204/* System header to define __stub macros and hopefully few prototypes,
12205 which can conflict with char $ac_func (); below.
12206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12207 <limits.h> exists even on freestanding compilers. */
12208
12209#ifdef __STDC__
12210# include <limits.h>
12211#else
12212# include <assert.h>
12213#endif
12214
12215#undef $ac_func
12216
12217/* Override any GCC internal prototype to avoid an error.
12218 Use char because int might match the return type of a GCC
12219 builtin and then its argument prototype would still apply. */
12220#ifdef __cplusplus
12221extern "C"
12222#endif
12223char $ac_func ();
12224/* The GNU C library defines this for functions which it implements
12225 to always fail with ENOSYS. Some functions are actually named
12226 something starting with __ and the normal name is an alias. */
12227#if defined __stub_$ac_func || defined __stub___$ac_func
12228choke me
12229#endif
12230
12231int
12232main ()
12233{
12234return $ac_func ();
12235 ;
12236 return 0;
12237}
12238_ACEOF
12239rm -f conftest.$ac_objext conftest$ac_exeext
12240if { (ac_try="$ac_link"
12241case "(($ac_try" in
12242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12243 *) ac_try_echo=$ac_try;;
12244esac
12245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12246 (eval "$ac_link") 2>conftest.er1
12247 ac_status=$?
12248 grep -v '^ *+' conftest.er1 >conftest.err
12249 rm -f conftest.er1
12250 cat conftest.err >&5
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); } && {
12253 test -z "$ac_c_werror_flag" ||
12254 test ! -s conftest.err
12255 } && test -s conftest$ac_exeext &&
12256 $as_test_x conftest$ac_exeext; then
12257 eval "$as_ac_var=yes"
12258else
12259 echo "$as_me: failed program was:" >&5
12260sed 's/^/| /' conftest.$ac_ext >&5
12261
12262 eval "$as_ac_var=no"
12263fi
12264
12265rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12266 conftest$ac_exeext conftest.$ac_ext
12267fi
12268ac_res=`eval echo '${'$as_ac_var'}'`
12269 { echo "$as_me:$LINENO: result: $ac_res" >&5
12270echo "${ECHO_T}$ac_res" >&6; }
12271if test `eval echo '${'$as_ac_var'}'` = yes; then
8386 cat >>confdefs.h <<_ACEOF 12272 cat >>confdefs.h <<_ACEOF
8387#define HAVE_DIRNAME 1 12273#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8388_ACEOF 12274_ACEOF
8389 for ac_header in libgen.h 12275
8390do : 12276for ac_header in libgen.h
8391 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" 12277do
8392if test "x$ac_cv_header_libgen_h" = xyes; then : 12278as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12279if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12282if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12283 echo $ECHO_N "(cached) $ECHO_C" >&6
12284fi
12285ac_res=`eval echo '${'$as_ac_Header'}'`
12286 { echo "$as_me:$LINENO: result: $ac_res" >&5
12287echo "${ECHO_T}$ac_res" >&6; }
12288else
12289 # Is the header compilable?
12290{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12291echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12292cat >conftest.$ac_ext <<_ACEOF
12293/* confdefs.h. */
12294_ACEOF
12295cat confdefs.h >>conftest.$ac_ext
12296cat >>conftest.$ac_ext <<_ACEOF
12297/* end confdefs.h. */
12298$ac_includes_default
12299#include <$ac_header>
12300_ACEOF
12301rm -f conftest.$ac_objext
12302if { (ac_try="$ac_compile"
12303case "(($ac_try" in
12304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12305 *) ac_try_echo=$ac_try;;
12306esac
12307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12308 (eval "$ac_compile") 2>conftest.er1
12309 ac_status=$?
12310 grep -v '^ *+' conftest.er1 >conftest.err
12311 rm -f conftest.er1
12312 cat conftest.err >&5
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); } && {
12315 test -z "$ac_c_werror_flag" ||
12316 test ! -s conftest.err
12317 } && test -s conftest.$ac_objext; then
12318 ac_header_compiler=yes
12319else
12320 echo "$as_me: failed program was:" >&5
12321sed 's/^/| /' conftest.$ac_ext >&5
12322
12323 ac_header_compiler=no
12324fi
12325
12326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12327{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12328echo "${ECHO_T}$ac_header_compiler" >&6; }
12329
12330# Is the header present?
12331{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12332echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12333cat >conftest.$ac_ext <<_ACEOF
12334/* confdefs.h. */
12335_ACEOF
12336cat confdefs.h >>conftest.$ac_ext
12337cat >>conftest.$ac_ext <<_ACEOF
12338/* end confdefs.h. */
12339#include <$ac_header>
12340_ACEOF
12341if { (ac_try="$ac_cpp conftest.$ac_ext"
12342case "(($ac_try" in
12343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12344 *) ac_try_echo=$ac_try;;
12345esac
12346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12347 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12348 ac_status=$?
12349 grep -v '^ *+' conftest.er1 >conftest.err
12350 rm -f conftest.er1
12351 cat conftest.err >&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); } >/dev/null && {
12354 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12355 test ! -s conftest.err
12356 }; then
12357 ac_header_preproc=yes
12358else
12359 echo "$as_me: failed program was:" >&5
12360sed 's/^/| /' conftest.$ac_ext >&5
12361
12362 ac_header_preproc=no
12363fi
12364
12365rm -f conftest.err conftest.$ac_ext
12366{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12367echo "${ECHO_T}$ac_header_preproc" >&6; }
12368
12369# So? What about this header?
12370case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12371 yes:no: )
12372 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12373echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12375echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12376 ac_header_preproc=yes
12377 ;;
12378 no:yes:* )
12379 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12380echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12381 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12382echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12383 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12384echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12385 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12386echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12388echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12389 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12390echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12391 ( cat <<\_ASBOX
12392## ------------------------------------------- ##
12393## Report this to openssh-unix-dev@mindrot.org ##
12394## ------------------------------------------- ##
12395_ASBOX
12396 ) | sed "s/^/$as_me: WARNING: /" >&2
12397 ;;
12398esac
12399{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12401if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12402 echo $ECHO_N "(cached) $ECHO_C" >&6
12403else
12404 eval "$as_ac_Header=\$ac_header_preproc"
12405fi
12406ac_res=`eval echo '${'$as_ac_Header'}'`
12407 { echo "$as_me:$LINENO: result: $ac_res" >&5
12408echo "${ECHO_T}$ac_res" >&6; }
12409
12410fi
12411if test `eval echo '${'$as_ac_Header'}'` = yes; then
8393 cat >>confdefs.h <<_ACEOF 12412 cat >>confdefs.h <<_ACEOF
8394#define HAVE_LIBGEN_H 1 12413#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8395_ACEOF 12414_ACEOF
8396 12415
8397fi 12416fi
@@ -8400,14 +12419,18 @@ done
8400 12419
8401else 12420else
8402 12421
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5 12422 { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
8404$as_echo_n "checking for dirname in -lgen... " >&6; } 12423echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; }
8405if ${ac_cv_lib_gen_dirname+:} false; then : 12424if test "${ac_cv_lib_gen_dirname+set}" = set; then
8406 $as_echo_n "(cached) " >&6 12425 echo $ECHO_N "(cached) $ECHO_C" >&6
8407else 12426else
8408 ac_check_lib_save_LIBS=$LIBS 12427 ac_check_lib_save_LIBS=$LIBS
8409LIBS="-lgen $LIBS" 12428LIBS="-lgen $LIBS"
8410cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12429cat >conftest.$ac_ext <<_ACEOF
12430/* confdefs.h. */
12431_ACEOF
12432cat confdefs.h >>conftest.$ac_ext
12433cat >>conftest.$ac_ext <<_ACEOF
8411/* end confdefs.h. */ 12434/* end confdefs.h. */
8412 12435
8413/* Override any GCC internal prototype to avoid an error. 12436/* Override any GCC internal prototype to avoid an error.
@@ -8425,31 +12448,56 @@ return dirname ();
8425 return 0; 12448 return 0;
8426} 12449}
8427_ACEOF 12450_ACEOF
8428if ac_fn_c_try_link "$LINENO"; then : 12451rm -f conftest.$ac_objext conftest$ac_exeext
12452if { (ac_try="$ac_link"
12453case "(($ac_try" in
12454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12455 *) ac_try_echo=$ac_try;;
12456esac
12457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12458 (eval "$ac_link") 2>conftest.er1
12459 ac_status=$?
12460 grep -v '^ *+' conftest.er1 >conftest.err
12461 rm -f conftest.er1
12462 cat conftest.err >&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); } && {
12465 test -z "$ac_c_werror_flag" ||
12466 test ! -s conftest.err
12467 } && test -s conftest$ac_exeext &&
12468 $as_test_x conftest$ac_exeext; then
8429 ac_cv_lib_gen_dirname=yes 12469 ac_cv_lib_gen_dirname=yes
8430else 12470else
8431 ac_cv_lib_gen_dirname=no 12471 echo "$as_me: failed program was:" >&5
12472sed 's/^/| /' conftest.$ac_ext >&5
12473
12474 ac_cv_lib_gen_dirname=no
8432fi 12475fi
8433rm -f core conftest.err conftest.$ac_objext \ 12476
8434 conftest$ac_exeext conftest.$ac_ext 12477rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12478 conftest$ac_exeext conftest.$ac_ext
8435LIBS=$ac_check_lib_save_LIBS 12479LIBS=$ac_check_lib_save_LIBS
8436fi 12480fi
8437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5 12481{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
8438$as_echo "$ac_cv_lib_gen_dirname" >&6; } 12482echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; }
8439if test "x$ac_cv_lib_gen_dirname" = xyes; then : 12483if test $ac_cv_lib_gen_dirname = yes; then
8440 12484
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5 12485 { echo "$as_me:$LINENO: checking for broken dirname" >&5
8442$as_echo_n "checking for broken dirname... " >&6; } 12486echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; }
8443if ${ac_cv_have_broken_dirname+:} false; then : 12487if test "${ac_cv_have_broken_dirname+set}" = set; then
8444 $as_echo_n "(cached) " >&6 12488 echo $ECHO_N "(cached) $ECHO_C" >&6
8445else 12489else
8446 12490
8447 save_LIBS="$LIBS" 12491 save_LIBS="$LIBS"
8448 LIBS="$LIBS -lgen" 12492 LIBS="$LIBS -lgen"
8449 if test "$cross_compiling" = yes; then : 12493 if test "$cross_compiling" = yes; then
8450 ac_cv_have_broken_dirname="no" 12494 ac_cv_have_broken_dirname="no"
8451else 12495else
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12496 cat >conftest.$ac_ext <<_ACEOF
12497/* confdefs.h. */
12498_ACEOF
12499cat confdefs.h >>conftest.$ac_ext
12500cat >>conftest.$ac_ext <<_ACEOF
8453/* end confdefs.h. */ 12501/* end confdefs.h. */
8454 12502
8455#include <libgen.h> 12503#include <libgen.h>
@@ -8468,30 +12516,189 @@ int main(int argc, char **argv) {
8468} 12516}
8469 12517
8470_ACEOF 12518_ACEOF
8471if ac_fn_c_try_run "$LINENO"; then : 12519rm -f conftest$ac_exeext
12520if { (ac_try="$ac_link"
12521case "(($ac_try" in
12522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523 *) ac_try_echo=$ac_try;;
12524esac
12525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526 (eval "$ac_link") 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12530 { (case "(($ac_try" in
12531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532 *) ac_try_echo=$ac_try;;
12533esac
12534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535 (eval "$ac_try") 2>&5
12536 ac_status=$?
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; }; then
8472 ac_cv_have_broken_dirname="no" 12539 ac_cv_have_broken_dirname="no"
8473else 12540else
8474 ac_cv_have_broken_dirname="yes" 12541 echo "$as_me: program exited with status $ac_status" >&5
12542echo "$as_me: failed program was:" >&5
12543sed 's/^/| /' conftest.$ac_ext >&5
12544
12545( exit $ac_status )
12546 ac_cv_have_broken_dirname="yes"
8475fi 12547fi
8476rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12548rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8477 conftest.$ac_objext conftest.beam conftest.$ac_ext
8478fi 12549fi
8479 12550
12551
8480 LIBS="$save_LIBS" 12552 LIBS="$save_LIBS"
8481 12553
8482fi 12554fi
8483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5 12555{ echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
8484$as_echo "$ac_cv_have_broken_dirname" >&6; } 12556echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; }
8485 if test "x$ac_cv_have_broken_dirname" = "xno" ; then 12557 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
8486 LIBS="$LIBS -lgen" 12558 LIBS="$LIBS -lgen"
8487 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h 12559 cat >>confdefs.h <<\_ACEOF
12560#define HAVE_DIRNAME 1
12561_ACEOF
12562
12563
12564for ac_header in libgen.h
12565do
12566as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12567if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12568 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12569echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12570if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12572fi
12573ac_res=`eval echo '${'$as_ac_Header'}'`
12574 { echo "$as_me:$LINENO: result: $ac_res" >&5
12575echo "${ECHO_T}$ac_res" >&6; }
12576else
12577 # Is the header compilable?
12578{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12579echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12580cat >conftest.$ac_ext <<_ACEOF
12581/* confdefs.h. */
12582_ACEOF
12583cat confdefs.h >>conftest.$ac_ext
12584cat >>conftest.$ac_ext <<_ACEOF
12585/* end confdefs.h. */
12586$ac_includes_default
12587#include <$ac_header>
12588_ACEOF
12589rm -f conftest.$ac_objext
12590if { (ac_try="$ac_compile"
12591case "(($ac_try" in
12592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593 *) ac_try_echo=$ac_try;;
12594esac
12595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596 (eval "$ac_compile") 2>conftest.er1
12597 ac_status=$?
12598 grep -v '^ *+' conftest.er1 >conftest.err
12599 rm -f conftest.er1
12600 cat conftest.err >&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); } && {
12603 test -z "$ac_c_werror_flag" ||
12604 test ! -s conftest.err
12605 } && test -s conftest.$ac_objext; then
12606 ac_header_compiler=yes
12607else
12608 echo "$as_me: failed program was:" >&5
12609sed 's/^/| /' conftest.$ac_ext >&5
12610
12611 ac_header_compiler=no
12612fi
12613
12614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12615{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12616echo "${ECHO_T}$ac_header_compiler" >&6; }
12617
12618# Is the header present?
12619{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12620echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12621cat >conftest.$ac_ext <<_ACEOF
12622/* confdefs.h. */
12623_ACEOF
12624cat confdefs.h >>conftest.$ac_ext
12625cat >>conftest.$ac_ext <<_ACEOF
12626/* end confdefs.h. */
12627#include <$ac_header>
12628_ACEOF
12629if { (ac_try="$ac_cpp conftest.$ac_ext"
12630case "(($ac_try" in
12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632 *) ac_try_echo=$ac_try;;
12633esac
12634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12636 ac_status=$?
12637 grep -v '^ *+' conftest.er1 >conftest.err
12638 rm -f conftest.er1
12639 cat conftest.err >&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } >/dev/null && {
12642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12643 test ! -s conftest.err
12644 }; then
12645 ac_header_preproc=yes
12646else
12647 echo "$as_me: failed program was:" >&5
12648sed 's/^/| /' conftest.$ac_ext >&5
12649
12650 ac_header_preproc=no
12651fi
8488 12652
8489 for ac_header in libgen.h 12653rm -f conftest.err conftest.$ac_ext
8490do : 12654{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8491 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" 12655echo "${ECHO_T}$ac_header_preproc" >&6; }
8492if test "x$ac_cv_header_libgen_h" = xyes; then : 12656
12657# So? What about this header?
12658case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12659 yes:no: )
12660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12661echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12663echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12664 ac_header_preproc=yes
12665 ;;
12666 no:yes:* )
12667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12668echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12670echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12671 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12672echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12673 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12674echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12676echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12677 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12678echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12679 ( cat <<\_ASBOX
12680## ------------------------------------------- ##
12681## Report this to openssh-unix-dev@mindrot.org ##
12682## ------------------------------------------- ##
12683_ASBOX
12684 ) | sed "s/^/$as_me: WARNING: /" >&2
12685 ;;
12686esac
12687{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12689if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12691else
12692 eval "$as_ac_Header=\$ac_header_preproc"
12693fi
12694ac_res=`eval echo '${'$as_ac_Header'}'`
12695 { echo "$as_me:$LINENO: result: $ac_res" >&5
12696echo "${ECHO_T}$ac_res" >&6; }
12697
12698fi
12699if test `eval echo '${'$as_ac_Header'}'` = yes; then
8493 cat >>confdefs.h <<_ACEOF 12700 cat >>confdefs.h <<_ACEOF
8494#define HAVE_LIBGEN_H 1 12701#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8495_ACEOF 12702_ACEOF
8496 12703
8497fi 12704fi
@@ -8507,18 +12714,102 @@ fi
8507done 12714done
8508 12715
8509 12716
8510ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam" 12717{ echo "$as_me:$LINENO: checking for getspnam" >&5
8511if test "x$ac_cv_func_getspnam" = xyes; then : 12718echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; }
12719if test "${ac_cv_func_getspnam+set}" = set; then
12720 echo $ECHO_N "(cached) $ECHO_C" >&6
12721else
12722 cat >conftest.$ac_ext <<_ACEOF
12723/* confdefs.h. */
12724_ACEOF
12725cat confdefs.h >>conftest.$ac_ext
12726cat >>conftest.$ac_ext <<_ACEOF
12727/* end confdefs.h. */
12728/* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
12729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12730#define getspnam innocuous_getspnam
12731
12732/* System header to define __stub macros and hopefully few prototypes,
12733 which can conflict with char getspnam (); below.
12734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12735 <limits.h> exists even on freestanding compilers. */
12736
12737#ifdef __STDC__
12738# include <limits.h>
12739#else
12740# include <assert.h>
12741#endif
12742
12743#undef getspnam
12744
12745/* Override any GCC internal prototype to avoid an error.
12746 Use char because int might match the return type of a GCC
12747 builtin and then its argument prototype would still apply. */
12748#ifdef __cplusplus
12749extern "C"
12750#endif
12751char getspnam ();
12752/* The GNU C library defines this for functions which it implements
12753 to always fail with ENOSYS. Some functions are actually named
12754 something starting with __ and the normal name is an alias. */
12755#if defined __stub_getspnam || defined __stub___getspnam
12756choke me
12757#endif
8512 12758
12759int
12760main ()
12761{
12762return getspnam ();
12763 ;
12764 return 0;
12765}
12766_ACEOF
12767rm -f conftest.$ac_objext conftest$ac_exeext
12768if { (ac_try="$ac_link"
12769case "(($ac_try" in
12770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12771 *) ac_try_echo=$ac_try;;
12772esac
12773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12774 (eval "$ac_link") 2>conftest.er1
12775 ac_status=$?
12776 grep -v '^ *+' conftest.er1 >conftest.err
12777 rm -f conftest.er1
12778 cat conftest.err >&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); } && {
12781 test -z "$ac_c_werror_flag" ||
12782 test ! -s conftest.err
12783 } && test -s conftest$ac_exeext &&
12784 $as_test_x conftest$ac_exeext; then
12785 ac_cv_func_getspnam=yes
8513else 12786else
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5 12787 echo "$as_me: failed program was:" >&5
8515$as_echo_n "checking for getspnam in -lgen... " >&6; } 12788sed 's/^/| /' conftest.$ac_ext >&5
8516if ${ac_cv_lib_gen_getspnam+:} false; then : 12789
8517 $as_echo_n "(cached) " >&6 12790 ac_cv_func_getspnam=no
12791fi
12792
12793rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12794 conftest$ac_exeext conftest.$ac_ext
12795fi
12796{ echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
12797echo "${ECHO_T}$ac_cv_func_getspnam" >&6; }
12798if test $ac_cv_func_getspnam = yes; then
12799 :
12800else
12801 { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
12802echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; }
12803if test "${ac_cv_lib_gen_getspnam+set}" = set; then
12804 echo $ECHO_N "(cached) $ECHO_C" >&6
8518else 12805else
8519 ac_check_lib_save_LIBS=$LIBS 12806 ac_check_lib_save_LIBS=$LIBS
8520LIBS="-lgen $LIBS" 12807LIBS="-lgen $LIBS"
8521cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12808cat >conftest.$ac_ext <<_ACEOF
12809/* confdefs.h. */
12810_ACEOF
12811cat confdefs.h >>conftest.$ac_ext
12812cat >>conftest.$ac_ext <<_ACEOF
8522/* end confdefs.h. */ 12813/* end confdefs.h. */
8523 12814
8524/* Override any GCC internal prototype to avoid an error. 12815/* Override any GCC internal prototype to avoid an error.
@@ -8536,30 +12827,55 @@ return getspnam ();
8536 return 0; 12827 return 0;
8537} 12828}
8538_ACEOF 12829_ACEOF
8539if ac_fn_c_try_link "$LINENO"; then : 12830rm -f conftest.$ac_objext conftest$ac_exeext
12831if { (ac_try="$ac_link"
12832case "(($ac_try" in
12833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834 *) ac_try_echo=$ac_try;;
12835esac
12836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837 (eval "$ac_link") 2>conftest.er1
12838 ac_status=$?
12839 grep -v '^ *+' conftest.er1 >conftest.err
12840 rm -f conftest.er1
12841 cat conftest.err >&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } && {
12844 test -z "$ac_c_werror_flag" ||
12845 test ! -s conftest.err
12846 } && test -s conftest$ac_exeext &&
12847 $as_test_x conftest$ac_exeext; then
8540 ac_cv_lib_gen_getspnam=yes 12848 ac_cv_lib_gen_getspnam=yes
8541else 12849else
8542 ac_cv_lib_gen_getspnam=no 12850 echo "$as_me: failed program was:" >&5
12851sed 's/^/| /' conftest.$ac_ext >&5
12852
12853 ac_cv_lib_gen_getspnam=no
8543fi 12854fi
8544rm -f core conftest.err conftest.$ac_objext \ 12855
8545 conftest$ac_exeext conftest.$ac_ext 12856rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12857 conftest$ac_exeext conftest.$ac_ext
8546LIBS=$ac_check_lib_save_LIBS 12858LIBS=$ac_check_lib_save_LIBS
8547fi 12859fi
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5 12860{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
8549$as_echo "$ac_cv_lib_gen_getspnam" >&6; } 12861echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; }
8550if test "x$ac_cv_lib_gen_getspnam" = xyes; then : 12862if test $ac_cv_lib_gen_getspnam = yes; then
8551 LIBS="$LIBS -lgen" 12863 LIBS="$LIBS -lgen"
8552fi 12864fi
8553 12865
8554fi 12866fi
8555 12867
8556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5 12868{ echo "$as_me:$LINENO: checking for library containing basename" >&5
8557$as_echo_n "checking for library containing basename... " >&6; } 12869echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; }
8558if ${ac_cv_search_basename+:} false; then : 12870if test "${ac_cv_search_basename+set}" = set; then
8559 $as_echo_n "(cached) " >&6 12871 echo $ECHO_N "(cached) $ECHO_C" >&6
8560else 12872else
8561 ac_func_search_save_LIBS=$LIBS 12873 ac_func_search_save_LIBS=$LIBS
8562cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12874cat >conftest.$ac_ext <<_ACEOF
12875/* confdefs.h. */
12876_ACEOF
12877cat confdefs.h >>conftest.$ac_ext
12878cat >>conftest.$ac_ext <<_ACEOF
8563/* end confdefs.h. */ 12879/* end confdefs.h. */
8564 12880
8565/* Override any GCC internal prototype to avoid an error. 12881/* Override any GCC internal prototype to avoid an error.
@@ -8584,39 +12900,66 @@ for ac_lib in '' gen; do
8584 ac_res=-l$ac_lib 12900 ac_res=-l$ac_lib
8585 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12901 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8586 fi 12902 fi
8587 if ac_fn_c_try_link "$LINENO"; then : 12903 rm -f conftest.$ac_objext conftest$ac_exeext
12904if { (ac_try="$ac_link"
12905case "(($ac_try" in
12906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907 *) ac_try_echo=$ac_try;;
12908esac
12909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12910 (eval "$ac_link") 2>conftest.er1
12911 ac_status=$?
12912 grep -v '^ *+' conftest.er1 >conftest.err
12913 rm -f conftest.er1
12914 cat conftest.err >&5
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); } && {
12917 test -z "$ac_c_werror_flag" ||
12918 test ! -s conftest.err
12919 } && test -s conftest$ac_exeext &&
12920 $as_test_x conftest$ac_exeext; then
8588 ac_cv_search_basename=$ac_res 12921 ac_cv_search_basename=$ac_res
12922else
12923 echo "$as_me: failed program was:" >&5
12924sed 's/^/| /' conftest.$ac_ext >&5
12925
12926
8589fi 12927fi
8590rm -f core conftest.err conftest.$ac_objext \ 12928
8591 conftest$ac_exeext 12929rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8592 if ${ac_cv_search_basename+:} false; then : 12930 conftest$ac_exeext
12931 if test "${ac_cv_search_basename+set}" = set; then
8593 break 12932 break
8594fi 12933fi
8595done 12934done
8596if ${ac_cv_search_basename+:} false; then : 12935if test "${ac_cv_search_basename+set}" = set; then
8597 12936 :
8598else 12937else
8599 ac_cv_search_basename=no 12938 ac_cv_search_basename=no
8600fi 12939fi
8601rm conftest.$ac_ext 12940rm conftest.$ac_ext
8602LIBS=$ac_func_search_save_LIBS 12941LIBS=$ac_func_search_save_LIBS
8603fi 12942fi
8604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5 12943{ echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
8605$as_echo "$ac_cv_search_basename" >&6; } 12944echo "${ECHO_T}$ac_cv_search_basename" >&6; }
8606ac_res=$ac_cv_search_basename 12945ac_res=$ac_cv_search_basename
8607if test "$ac_res" != no; then : 12946if test "$ac_res" != no; then
8608 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12947 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8609 12948
8610$as_echo "#define HAVE_BASENAME 1" >>confdefs.h 12949cat >>confdefs.h <<\_ACEOF
12950#define HAVE_BASENAME 1
12951_ACEOF
8611 12952
8612fi 12953fi
8613 12954
8614 12955
8615 12956
8616# Check whether --with-zlib was given. 12957# Check whether --with-zlib was given.
8617if test "${with_zlib+set}" = set; then : 12958if test "${with_zlib+set}" = set; then
8618 withval=$with_zlib; if test "x$withval" = "xno" ; then 12959 withval=$with_zlib; if test "x$withval" = "xno" ; then
8619 as_fn_error $? "*** zlib is required ***" "$LINENO" 5 12960 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
12961echo "$as_me: error: *** zlib is required ***" >&2;}
12962 { (exit 1); exit 1; }; }
8620 elif test "x$withval" != "xyes"; then 12963 elif test "x$withval" != "xyes"; then
8621 if test -d "$withval/lib"; then 12964 if test -d "$withval/lib"; then
8622 if test -n "${need_dash_r}"; then 12965 if test -n "${need_dash_r}"; then
@@ -8641,22 +12984,158 @@ if test "${with_zlib+set}" = set; then :
8641fi 12984fi
8642 12985
8643 12986
8644ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 12987if test "${ac_cv_header_zlib_h+set}" = set; then
8645if test "x$ac_cv_header_zlib_h" = xyes; then : 12988 { echo "$as_me:$LINENO: checking for zlib.h" >&5
12989echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
12990if test "${ac_cv_header_zlib_h+set}" = set; then
12991 echo $ECHO_N "(cached) $ECHO_C" >&6
12992fi
12993{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12994echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
12995else
12996 # Is the header compilable?
12997{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
12998echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
12999cat >conftest.$ac_ext <<_ACEOF
13000/* confdefs.h. */
13001_ACEOF
13002cat confdefs.h >>conftest.$ac_ext
13003cat >>conftest.$ac_ext <<_ACEOF
13004/* end confdefs.h. */
13005$ac_includes_default
13006#include <zlib.h>
13007_ACEOF
13008rm -f conftest.$ac_objext
13009if { (ac_try="$ac_compile"
13010case "(($ac_try" in
13011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012 *) ac_try_echo=$ac_try;;
13013esac
13014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13015 (eval "$ac_compile") 2>conftest.er1
13016 ac_status=$?
13017 grep -v '^ *+' conftest.er1 >conftest.err
13018 rm -f conftest.er1
13019 cat conftest.err >&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); } && {
13022 test -z "$ac_c_werror_flag" ||
13023 test ! -s conftest.err
13024 } && test -s conftest.$ac_objext; then
13025 ac_header_compiler=yes
13026else
13027 echo "$as_me: failed program was:" >&5
13028sed 's/^/| /' conftest.$ac_ext >&5
13029
13030 ac_header_compiler=no
13031fi
13032
13033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13034{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13035echo "${ECHO_T}$ac_header_compiler" >&6; }
13036
13037# Is the header present?
13038{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
13039echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
13040cat >conftest.$ac_ext <<_ACEOF
13041/* confdefs.h. */
13042_ACEOF
13043cat confdefs.h >>conftest.$ac_ext
13044cat >>conftest.$ac_ext <<_ACEOF
13045/* end confdefs.h. */
13046#include <zlib.h>
13047_ACEOF
13048if { (ac_try="$ac_cpp conftest.$ac_ext"
13049case "(($ac_try" in
13050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13051 *) ac_try_echo=$ac_try;;
13052esac
13053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13055 ac_status=$?
13056 grep -v '^ *+' conftest.er1 >conftest.err
13057 rm -f conftest.er1
13058 cat conftest.err >&5
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); } >/dev/null && {
13061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13062 test ! -s conftest.err
13063 }; then
13064 ac_header_preproc=yes
13065else
13066 echo "$as_me: failed program was:" >&5
13067sed 's/^/| /' conftest.$ac_ext >&5
13068
13069 ac_header_preproc=no
13070fi
13071
13072rm -f conftest.err conftest.$ac_ext
13073{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13074echo "${ECHO_T}$ac_header_preproc" >&6; }
8646 13075
13076# So? What about this header?
13077case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13078 yes:no: )
13079 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13080echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13081 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
13082echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
13083 ac_header_preproc=yes
13084 ;;
13085 no:yes:* )
13086 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
13087echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
13088 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
13089echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
13090 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
13091echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
13092 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
13093echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13094 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
13095echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
13096 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
13097echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
13098 ( cat <<\_ASBOX
13099## ------------------------------------------- ##
13100## Report this to openssh-unix-dev@mindrot.org ##
13101## ------------------------------------------- ##
13102_ASBOX
13103 ) | sed "s/^/$as_me: WARNING: /" >&2
13104 ;;
13105esac
13106{ echo "$as_me:$LINENO: checking for zlib.h" >&5
13107echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
13108if test "${ac_cv_header_zlib_h+set}" = set; then
13109 echo $ECHO_N "(cached) $ECHO_C" >&6
8647else 13110else
8648 as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5 13111 ac_cv_header_zlib_h=$ac_header_preproc
13112fi
13113{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
13114echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
13115
13116fi
13117if test $ac_cv_header_zlib_h = yes; then
13118 :
13119else
13120 { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5
13121echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
13122 { (exit 1); exit 1; }; }
8649fi 13123fi
8650 13124
8651 13125
8652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 13126
8653$as_echo_n "checking for deflate in -lz... " >&6; } 13127{ echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8654if ${ac_cv_lib_z_deflate+:} false; then : 13128echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
8655 $as_echo_n "(cached) " >&6 13129if test "${ac_cv_lib_z_deflate+set}" = set; then
13130 echo $ECHO_N "(cached) $ECHO_C" >&6
8656else 13131else
8657 ac_check_lib_save_LIBS=$LIBS 13132 ac_check_lib_save_LIBS=$LIBS
8658LIBS="-lz $LIBS" 13133LIBS="-lz $LIBS"
8659cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13134cat >conftest.$ac_ext <<_ACEOF
13135/* confdefs.h. */
13136_ACEOF
13137cat confdefs.h >>conftest.$ac_ext
13138cat >>conftest.$ac_ext <<_ACEOF
8660/* end confdefs.h. */ 13139/* end confdefs.h. */
8661 13140
8662/* Override any GCC internal prototype to avoid an error. 13141/* Override any GCC internal prototype to avoid an error.
@@ -8674,18 +13153,39 @@ return deflate ();
8674 return 0; 13153 return 0;
8675} 13154}
8676_ACEOF 13155_ACEOF
8677if ac_fn_c_try_link "$LINENO"; then : 13156rm -f conftest.$ac_objext conftest$ac_exeext
13157if { (ac_try="$ac_link"
13158case "(($ac_try" in
13159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13160 *) ac_try_echo=$ac_try;;
13161esac
13162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13163 (eval "$ac_link") 2>conftest.er1
13164 ac_status=$?
13165 grep -v '^ *+' conftest.er1 >conftest.err
13166 rm -f conftest.er1
13167 cat conftest.err >&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } && {
13170 test -z "$ac_c_werror_flag" ||
13171 test ! -s conftest.err
13172 } && test -s conftest$ac_exeext &&
13173 $as_test_x conftest$ac_exeext; then
8678 ac_cv_lib_z_deflate=yes 13174 ac_cv_lib_z_deflate=yes
8679else 13175else
8680 ac_cv_lib_z_deflate=no 13176 echo "$as_me: failed program was:" >&5
13177sed 's/^/| /' conftest.$ac_ext >&5
13178
13179 ac_cv_lib_z_deflate=no
8681fi 13180fi
8682rm -f core conftest.err conftest.$ac_objext \ 13181
8683 conftest$ac_exeext conftest.$ac_ext 13182rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13183 conftest$ac_exeext conftest.$ac_ext
8684LIBS=$ac_check_lib_save_LIBS 13184LIBS=$ac_check_lib_save_LIBS
8685fi 13185fi
8686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 13186{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8687$as_echo "$ac_cv_lib_z_deflate" >&6; } 13187echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
8688if test "x$ac_cv_lib_z_deflate" = xyes; then : 13188if test $ac_cv_lib_z_deflate = yes; then
8689 cat >>confdefs.h <<_ACEOF 13189 cat >>confdefs.h <<_ACEOF
8690#define HAVE_LIBZ 1 13190#define HAVE_LIBZ 1
8691_ACEOF 13191_ACEOF
@@ -8704,7 +13204,11 @@ else
8704 fi 13204 fi
8705 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" 13205 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
8706 LIBS="$LIBS -lz" 13206 LIBS="$LIBS -lz"
8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13207 cat >conftest.$ac_ext <<_ACEOF
13208/* confdefs.h. */
13209_ACEOF
13210cat confdefs.h >>conftest.$ac_ext
13211cat >>conftest.$ac_ext <<_ACEOF
8708/* end confdefs.h. */ 13212/* end confdefs.h. */
8709 13213
8710/* Override any GCC internal prototype to avoid an error. 13214/* Override any GCC internal prototype to avoid an error.
@@ -8722,17 +13226,42 @@ return deflate ();
8722 return 0; 13226 return 0;
8723} 13227}
8724_ACEOF 13228_ACEOF
8725if ac_fn_c_try_link "$LINENO"; then : 13229rm -f conftest.$ac_objext conftest$ac_exeext
8726 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h 13230if { (ac_try="$ac_link"
13231case "(($ac_try" in
13232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233 *) ac_try_echo=$ac_try;;
13234esac
13235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13236 (eval "$ac_link") 2>conftest.er1
13237 ac_status=$?
13238 grep -v '^ *+' conftest.er1 >conftest.err
13239 rm -f conftest.er1
13240 cat conftest.err >&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); } && {
13243 test -z "$ac_c_werror_flag" ||
13244 test ! -s conftest.err
13245 } && test -s conftest$ac_exeext &&
13246 $as_test_x conftest$ac_exeext; then
13247 cat >>confdefs.h <<\_ACEOF
13248#define HAVE_LIBZ 1
13249_ACEOF
8727 13250
8728else 13251else
13252 echo "$as_me: failed program was:" >&5
13253sed 's/^/| /' conftest.$ac_ext >&5
13254
8729 13255
8730 as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5 13256 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
13257echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
13258 { (exit 1); exit 1; }; }
8731 13259
8732 13260
8733fi 13261fi
8734rm -f core conftest.err conftest.$ac_objext \ 13262
8735 conftest$ac_exeext conftest.$ac_ext 13263rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13264 conftest$ac_exeext conftest.$ac_ext
8736 13265
8737 13266
8738fi 13267fi
@@ -8740,7 +13269,7 @@ fi
8740 13269
8741 13270
8742# Check whether --with-zlib-version-check was given. 13271# Check whether --with-zlib-version-check was given.
8743if test "${with_zlib_version_check+set}" = set; then : 13272if test "${with_zlib_version_check+set}" = set; then
8744 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then 13273 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
8745 zlib_check_nonfatal=1 13274 zlib_check_nonfatal=1
8746 fi 13275 fi
@@ -8749,14 +13278,18 @@ if test "${with_zlib_version_check+set}" = set; then :
8749fi 13278fi
8750 13279
8751 13280
8752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5 13281{ echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5
8753$as_echo_n "checking for possibly buggy zlib... " >&6; } 13282echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; }
8754if test "$cross_compiling" = yes; then : 13283if test "$cross_compiling" = yes; then
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5 13284 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5
8756$as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} 13285echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
8757 13286
8758else 13287else
8759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13288 cat >conftest.$ac_ext <<_ACEOF
13289/* confdefs.h. */
13290_ACEOF
13291cat confdefs.h >>conftest.$ac_ext
13292cat >>conftest.$ac_ext <<_ACEOF
8760/* end confdefs.h. */ 13293/* end confdefs.h. */
8761 13294
8762#include <stdio.h> 13295#include <stdio.h>
@@ -8788,43 +13321,159 @@ main ()
8788 return 0; 13321 return 0;
8789} 13322}
8790_ACEOF 13323_ACEOF
8791if ac_fn_c_try_run "$LINENO"; then : 13324rm -f conftest$ac_exeext
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13325if { (ac_try="$ac_link"
8793$as_echo "no" >&6; } 13326case "(($ac_try" in
13327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328 *) ac_try_echo=$ac_try;;
13329esac
13330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13331 (eval "$ac_link") 2>&5
13332 ac_status=$?
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13335 { (case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13338esac
13339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_try") 2>&5
13341 ac_status=$?
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; }; then
13344 { echo "$as_me:$LINENO: result: no" >&5
13345echo "${ECHO_T}no" >&6; }
8794else 13346else
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13347 echo "$as_me: program exited with status $ac_status" >&5
8796$as_echo "yes" >&6; } 13348echo "$as_me: failed program was:" >&5
13349sed 's/^/| /' conftest.$ac_ext >&5
13350
13351( exit $ac_status )
13352 { echo "$as_me:$LINENO: result: yes" >&5
13353echo "${ECHO_T}yes" >&6; }
8797 if test -z "$zlib_check_nonfatal" ; then 13354 if test -z "$zlib_check_nonfatal" ; then
8798 as_fn_error $? "*** zlib too old - check config.log *** 13355 { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
8799Your reported zlib version has known security problems. It's possible your 13356Your reported zlib version has known security problems. It's possible your
8800vendor has fixed these problems without changing the version number. If you 13357vendor has fixed these problems without changing the version number. If you
8801are sure this is the case, you can disable the check by running 13358are sure this is the case, you can disable the check by running
8802\"./configure --without-zlib-version-check\". 13359\"./configure --without-zlib-version-check\".
8803If you are in doubt, upgrade zlib to version 1.2.3 or greater. 13360If you are in doubt, upgrade zlib to version 1.2.3 or greater.
8804See http://www.gzip.org/zlib/ for details." "$LINENO" 5 13361See http://www.gzip.org/zlib/ for details." >&5
13362echo "$as_me: error: *** zlib too old - check config.log ***
13363Your reported zlib version has known security problems. It's possible your
13364vendor has fixed these problems without changing the version number. If you
13365are sure this is the case, you can disable the check by running
13366\"./configure --without-zlib-version-check\".
13367If you are in doubt, upgrade zlib to version 1.2.3 or greater.
13368See http://www.gzip.org/zlib/ for details." >&2;}
13369 { (exit 1); exit 1; }; }
8805 else 13370 else
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5 13371 { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
8807$as_echo "$as_me: WARNING: zlib version may have security problems" >&2;} 13372echo "$as_me: WARNING: zlib version may have security problems" >&2;}
8808 fi 13373 fi
8809 13374
8810fi 13375fi
8811rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13376rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8812 conftest.$ac_objext conftest.beam conftest.$ac_ext
8813fi 13377fi
8814 13378
8815 13379
8816ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
8817if test "x$ac_cv_func_strcasecmp" = xyes; then :
8818 13380
13381{ echo "$as_me:$LINENO: checking for strcasecmp" >&5
13382echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
13383if test "${ac_cv_func_strcasecmp+set}" = set; then
13384 echo $ECHO_N "(cached) $ECHO_C" >&6
13385else
13386 cat >conftest.$ac_ext <<_ACEOF
13387/* confdefs.h. */
13388_ACEOF
13389cat confdefs.h >>conftest.$ac_ext
13390cat >>conftest.$ac_ext <<_ACEOF
13391/* end confdefs.h. */
13392/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
13393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13394#define strcasecmp innocuous_strcasecmp
13395
13396/* System header to define __stub macros and hopefully few prototypes,
13397 which can conflict with char strcasecmp (); below.
13398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13399 <limits.h> exists even on freestanding compilers. */
13400
13401#ifdef __STDC__
13402# include <limits.h>
13403#else
13404# include <assert.h>
13405#endif
13406
13407#undef strcasecmp
13408
13409/* Override any GCC internal prototype to avoid an error.
13410 Use char because int might match the return type of a GCC
13411 builtin and then its argument prototype would still apply. */
13412#ifdef __cplusplus
13413extern "C"
13414#endif
13415char strcasecmp ();
13416/* The GNU C library defines this for functions which it implements
13417 to always fail with ENOSYS. Some functions are actually named
13418 something starting with __ and the normal name is an alias. */
13419#if defined __stub_strcasecmp || defined __stub___strcasecmp
13420choke me
13421#endif
13422
13423int
13424main ()
13425{
13426return strcasecmp ();
13427 ;
13428 return 0;
13429}
13430_ACEOF
13431rm -f conftest.$ac_objext conftest$ac_exeext
13432if { (ac_try="$ac_link"
13433case "(($ac_try" in
13434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13435 *) ac_try_echo=$ac_try;;
13436esac
13437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13438 (eval "$ac_link") 2>conftest.er1
13439 ac_status=$?
13440 grep -v '^ *+' conftest.er1 >conftest.err
13441 rm -f conftest.er1
13442 cat conftest.err >&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); } && {
13445 test -z "$ac_c_werror_flag" ||
13446 test ! -s conftest.err
13447 } && test -s conftest$ac_exeext &&
13448 $as_test_x conftest$ac_exeext; then
13449 ac_cv_func_strcasecmp=yes
13450else
13451 echo "$as_me: failed program was:" >&5
13452sed 's/^/| /' conftest.$ac_ext >&5
13453
13454 ac_cv_func_strcasecmp=no
13455fi
13456
13457rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13458 conftest$ac_exeext conftest.$ac_ext
13459fi
13460{ echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
13461echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
13462if test $ac_cv_func_strcasecmp = yes; then
13463 :
8819else 13464else
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5 13465 { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
8821$as_echo_n "checking for strcasecmp in -lresolv... " >&6; } 13466echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; }
8822if ${ac_cv_lib_resolv_strcasecmp+:} false; then : 13467if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
8823 $as_echo_n "(cached) " >&6 13468 echo $ECHO_N "(cached) $ECHO_C" >&6
8824else 13469else
8825 ac_check_lib_save_LIBS=$LIBS 13470 ac_check_lib_save_LIBS=$LIBS
8826LIBS="-lresolv $LIBS" 13471LIBS="-lresolv $LIBS"
8827cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13472cat >conftest.$ac_ext <<_ACEOF
13473/* confdefs.h. */
13474_ACEOF
13475cat confdefs.h >>conftest.$ac_ext
13476cat >>conftest.$ac_ext <<_ACEOF
8828/* end confdefs.h. */ 13477/* end confdefs.h. */
8829 13478
8830/* Override any GCC internal prototype to avoid an error. 13479/* Override any GCC internal prototype to avoid an error.
@@ -8842,41 +13491,149 @@ return strcasecmp ();
8842 return 0; 13491 return 0;
8843} 13492}
8844_ACEOF 13493_ACEOF
8845if ac_fn_c_try_link "$LINENO"; then : 13494rm -f conftest.$ac_objext conftest$ac_exeext
13495if { (ac_try="$ac_link"
13496case "(($ac_try" in
13497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13498 *) ac_try_echo=$ac_try;;
13499esac
13500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13501 (eval "$ac_link") 2>conftest.er1
13502 ac_status=$?
13503 grep -v '^ *+' conftest.er1 >conftest.err
13504 rm -f conftest.er1
13505 cat conftest.err >&5
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); } && {
13508 test -z "$ac_c_werror_flag" ||
13509 test ! -s conftest.err
13510 } && test -s conftest$ac_exeext &&
13511 $as_test_x conftest$ac_exeext; then
8846 ac_cv_lib_resolv_strcasecmp=yes 13512 ac_cv_lib_resolv_strcasecmp=yes
8847else 13513else
8848 ac_cv_lib_resolv_strcasecmp=no 13514 echo "$as_me: failed program was:" >&5
13515sed 's/^/| /' conftest.$ac_ext >&5
13516
13517 ac_cv_lib_resolv_strcasecmp=no
8849fi 13518fi
8850rm -f core conftest.err conftest.$ac_objext \ 13519
8851 conftest$ac_exeext conftest.$ac_ext 13520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13521 conftest$ac_exeext conftest.$ac_ext
8852LIBS=$ac_check_lib_save_LIBS 13522LIBS=$ac_check_lib_save_LIBS
8853fi 13523fi
8854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5 13524{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
8855$as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; } 13525echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; }
8856if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then : 13526if test $ac_cv_lib_resolv_strcasecmp = yes; then
8857 LIBS="$LIBS -lresolv" 13527 LIBS="$LIBS -lresolv"
8858fi 13528fi
8859 13529
8860 13530
8861fi 13531fi
8862 13532
13533
8863for ac_func in utimes 13534for ac_func in utimes
8864do : 13535do
8865 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" 13536as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8866if test "x$ac_cv_func_utimes" = xyes; then : 13537{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13538echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13539if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13540 echo $ECHO_N "(cached) $ECHO_C" >&6
13541else
13542 cat >conftest.$ac_ext <<_ACEOF
13543/* confdefs.h. */
13544_ACEOF
13545cat confdefs.h >>conftest.$ac_ext
13546cat >>conftest.$ac_ext <<_ACEOF
13547/* end confdefs.h. */
13548/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13550#define $ac_func innocuous_$ac_func
13551
13552/* System header to define __stub macros and hopefully few prototypes,
13553 which can conflict with char $ac_func (); below.
13554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13555 <limits.h> exists even on freestanding compilers. */
13556
13557#ifdef __STDC__
13558# include <limits.h>
13559#else
13560# include <assert.h>
13561#endif
13562
13563#undef $ac_func
13564
13565/* Override any GCC internal prototype to avoid an error.
13566 Use char because int might match the return type of a GCC
13567 builtin and then its argument prototype would still apply. */
13568#ifdef __cplusplus
13569extern "C"
13570#endif
13571char $ac_func ();
13572/* The GNU C library defines this for functions which it implements
13573 to always fail with ENOSYS. Some functions are actually named
13574 something starting with __ and the normal name is an alias. */
13575#if defined __stub_$ac_func || defined __stub___$ac_func
13576choke me
13577#endif
13578
13579int
13580main ()
13581{
13582return $ac_func ();
13583 ;
13584 return 0;
13585}
13586_ACEOF
13587rm -f conftest.$ac_objext conftest$ac_exeext
13588if { (ac_try="$ac_link"
13589case "(($ac_try" in
13590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13591 *) ac_try_echo=$ac_try;;
13592esac
13593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13594 (eval "$ac_link") 2>conftest.er1
13595 ac_status=$?
13596 grep -v '^ *+' conftest.er1 >conftest.err
13597 rm -f conftest.er1
13598 cat conftest.err >&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } && {
13601 test -z "$ac_c_werror_flag" ||
13602 test ! -s conftest.err
13603 } && test -s conftest$ac_exeext &&
13604 $as_test_x conftest$ac_exeext; then
13605 eval "$as_ac_var=yes"
13606else
13607 echo "$as_me: failed program was:" >&5
13608sed 's/^/| /' conftest.$ac_ext >&5
13609
13610 eval "$as_ac_var=no"
13611fi
13612
13613rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13614 conftest$ac_exeext conftest.$ac_ext
13615fi
13616ac_res=`eval echo '${'$as_ac_var'}'`
13617 { echo "$as_me:$LINENO: result: $ac_res" >&5
13618echo "${ECHO_T}$ac_res" >&6; }
13619if test `eval echo '${'$as_ac_var'}'` = yes; then
8867 cat >>confdefs.h <<_ACEOF 13620 cat >>confdefs.h <<_ACEOF
8868#define HAVE_UTIMES 1 13621#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8869_ACEOF 13622_ACEOF
8870 13623
8871else 13624else
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5 13625 { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
8873$as_echo_n "checking for utimes in -lc89... " >&6; } 13626echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; }
8874if ${ac_cv_lib_c89_utimes+:} false; then : 13627if test "${ac_cv_lib_c89_utimes+set}" = set; then
8875 $as_echo_n "(cached) " >&6 13628 echo $ECHO_N "(cached) $ECHO_C" >&6
8876else 13629else
8877 ac_check_lib_save_LIBS=$LIBS 13630 ac_check_lib_save_LIBS=$LIBS
8878LIBS="-lc89 $LIBS" 13631LIBS="-lc89 $LIBS"
8879cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13632cat >conftest.$ac_ext <<_ACEOF
13633/* confdefs.h. */
13634_ACEOF
13635cat confdefs.h >>conftest.$ac_ext
13636cat >>conftest.$ac_ext <<_ACEOF
8880/* end confdefs.h. */ 13637/* end confdefs.h. */
8881 13638
8882/* Override any GCC internal prototype to avoid an error. 13639/* Override any GCC internal prototype to avoid an error.
@@ -8894,19 +13651,42 @@ return utimes ();
8894 return 0; 13651 return 0;
8895} 13652}
8896_ACEOF 13653_ACEOF
8897if ac_fn_c_try_link "$LINENO"; then : 13654rm -f conftest.$ac_objext conftest$ac_exeext
13655if { (ac_try="$ac_link"
13656case "(($ac_try" in
13657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658 *) ac_try_echo=$ac_try;;
13659esac
13660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13661 (eval "$ac_link") 2>conftest.er1
13662 ac_status=$?
13663 grep -v '^ *+' conftest.er1 >conftest.err
13664 rm -f conftest.er1
13665 cat conftest.err >&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); } && {
13668 test -z "$ac_c_werror_flag" ||
13669 test ! -s conftest.err
13670 } && test -s conftest$ac_exeext &&
13671 $as_test_x conftest$ac_exeext; then
8898 ac_cv_lib_c89_utimes=yes 13672 ac_cv_lib_c89_utimes=yes
8899else 13673else
8900 ac_cv_lib_c89_utimes=no 13674 echo "$as_me: failed program was:" >&5
13675sed 's/^/| /' conftest.$ac_ext >&5
13676
13677 ac_cv_lib_c89_utimes=no
8901fi 13678fi
8902rm -f core conftest.err conftest.$ac_objext \ 13679
8903 conftest$ac_exeext conftest.$ac_ext 13680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13681 conftest$ac_exeext conftest.$ac_ext
8904LIBS=$ac_check_lib_save_LIBS 13682LIBS=$ac_check_lib_save_LIBS
8905fi 13683fi
8906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5 13684{ echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
8907$as_echo "$ac_cv_lib_c89_utimes" >&6; } 13685echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; }
8908if test "x$ac_cv_lib_c89_utimes" = xyes; then : 13686if test $ac_cv_lib_c89_utimes = yes; then
8909 $as_echo "#define HAVE_UTIMES 1" >>confdefs.h 13687 cat >>confdefs.h <<\_ACEOF
13688#define HAVE_UTIMES 1
13689_ACEOF
8910 13690
8911 LIBS="$LIBS -lc89" 13691 LIBS="$LIBS -lc89"
8912fi 13692fi
@@ -8916,26 +13696,163 @@ fi
8916done 13696done
8917 13697
8918 13698
13699
13700
8919for ac_header in bsd/libutil.h libutil.h 13701for ac_header in bsd/libutil.h libutil.h
8920do : 13702do
8921 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13703as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8922ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13704if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8923if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13707if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13708 echo $ECHO_N "(cached) $ECHO_C" >&6
13709fi
13710ac_res=`eval echo '${'$as_ac_Header'}'`
13711 { echo "$as_me:$LINENO: result: $ac_res" >&5
13712echo "${ECHO_T}$ac_res" >&6; }
13713else
13714 # Is the header compilable?
13715{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13716echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13717cat >conftest.$ac_ext <<_ACEOF
13718/* confdefs.h. */
13719_ACEOF
13720cat confdefs.h >>conftest.$ac_ext
13721cat >>conftest.$ac_ext <<_ACEOF
13722/* end confdefs.h. */
13723$ac_includes_default
13724#include <$ac_header>
13725_ACEOF
13726rm -f conftest.$ac_objext
13727if { (ac_try="$ac_compile"
13728case "(($ac_try" in
13729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13730 *) ac_try_echo=$ac_try;;
13731esac
13732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13733 (eval "$ac_compile") 2>conftest.er1
13734 ac_status=$?
13735 grep -v '^ *+' conftest.er1 >conftest.err
13736 rm -f conftest.er1
13737 cat conftest.err >&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } && {
13740 test -z "$ac_c_werror_flag" ||
13741 test ! -s conftest.err
13742 } && test -s conftest.$ac_objext; then
13743 ac_header_compiler=yes
13744else
13745 echo "$as_me: failed program was:" >&5
13746sed 's/^/| /' conftest.$ac_ext >&5
13747
13748 ac_header_compiler=no
13749fi
13750
13751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13752{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13753echo "${ECHO_T}$ac_header_compiler" >&6; }
13754
13755# Is the header present?
13756{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13757echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13758cat >conftest.$ac_ext <<_ACEOF
13759/* confdefs.h. */
13760_ACEOF
13761cat confdefs.h >>conftest.$ac_ext
13762cat >>conftest.$ac_ext <<_ACEOF
13763/* end confdefs.h. */
13764#include <$ac_header>
13765_ACEOF
13766if { (ac_try="$ac_cpp conftest.$ac_ext"
13767case "(($ac_try" in
13768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13770esac
13771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13773 ac_status=$?
13774 grep -v '^ *+' conftest.er1 >conftest.err
13775 rm -f conftest.er1
13776 cat conftest.err >&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } >/dev/null && {
13779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13780 test ! -s conftest.err
13781 }; then
13782 ac_header_preproc=yes
13783else
13784 echo "$as_me: failed program was:" >&5
13785sed 's/^/| /' conftest.$ac_ext >&5
13786
13787 ac_header_preproc=no
13788fi
13789
13790rm -f conftest.err conftest.$ac_ext
13791{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13792echo "${ECHO_T}$ac_header_preproc" >&6; }
13793
13794# So? What about this header?
13795case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13796 yes:no: )
13797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13798echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13800echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13801 ac_header_preproc=yes
13802 ;;
13803 no:yes:* )
13804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13805echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13807echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13809echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13811echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13813echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13815echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13816 ( cat <<\_ASBOX
13817## ------------------------------------------- ##
13818## Report this to openssh-unix-dev@mindrot.org ##
13819## ------------------------------------------- ##
13820_ASBOX
13821 ) | sed "s/^/$as_me: WARNING: /" >&2
13822 ;;
13823esac
13824{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13826if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13828else
13829 eval "$as_ac_Header=\$ac_header_preproc"
13830fi
13831ac_res=`eval echo '${'$as_ac_Header'}'`
13832 { echo "$as_me:$LINENO: result: $ac_res" >&5
13833echo "${ECHO_T}$ac_res" >&6; }
13834
13835fi
13836if test `eval echo '${'$as_ac_Header'}'` = yes; then
8924 cat >>confdefs.h <<_ACEOF 13837 cat >>confdefs.h <<_ACEOF
8925#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13838#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8926_ACEOF 13839_ACEOF
8927 13840
8928fi 13841fi
8929 13842
8930done 13843done
8931 13844
8932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5 13845{ echo "$as_me:$LINENO: checking for library containing fmt_scaled" >&5
8933$as_echo_n "checking for library containing fmt_scaled... " >&6; } 13846echo $ECHO_N "checking for library containing fmt_scaled... $ECHO_C" >&6; }
8934if ${ac_cv_search_fmt_scaled+:} false; then : 13847if test "${ac_cv_search_fmt_scaled+set}" = set; then
8935 $as_echo_n "(cached) " >&6 13848 echo $ECHO_N "(cached) $ECHO_C" >&6
8936else 13849else
8937 ac_func_search_save_LIBS=$LIBS 13850 ac_func_search_save_LIBS=$LIBS
8938cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13851cat >conftest.$ac_ext <<_ACEOF
13852/* confdefs.h. */
13853_ACEOF
13854cat confdefs.h >>conftest.$ac_ext
13855cat >>conftest.$ac_ext <<_ACEOF
8939/* end confdefs.h. */ 13856/* end confdefs.h. */
8940 13857
8941/* Override any GCC internal prototype to avoid an error. 13858/* Override any GCC internal prototype to avoid an error.
@@ -8960,38 +13877,65 @@ for ac_lib in '' util bsd; do
8960 ac_res=-l$ac_lib 13877 ac_res=-l$ac_lib
8961 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13878 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8962 fi 13879 fi
8963 if ac_fn_c_try_link "$LINENO"; then : 13880 rm -f conftest.$ac_objext conftest$ac_exeext
13881if { (ac_try="$ac_link"
13882case "(($ac_try" in
13883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884 *) ac_try_echo=$ac_try;;
13885esac
13886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13887 (eval "$ac_link") 2>conftest.er1
13888 ac_status=$?
13889 grep -v '^ *+' conftest.er1 >conftest.err
13890 rm -f conftest.er1
13891 cat conftest.err >&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } && {
13894 test -z "$ac_c_werror_flag" ||
13895 test ! -s conftest.err
13896 } && test -s conftest$ac_exeext &&
13897 $as_test_x conftest$ac_exeext; then
8964 ac_cv_search_fmt_scaled=$ac_res 13898 ac_cv_search_fmt_scaled=$ac_res
13899else
13900 echo "$as_me: failed program was:" >&5
13901sed 's/^/| /' conftest.$ac_ext >&5
13902
13903
8965fi 13904fi
8966rm -f core conftest.err conftest.$ac_objext \ 13905
8967 conftest$ac_exeext 13906rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8968 if ${ac_cv_search_fmt_scaled+:} false; then : 13907 conftest$ac_exeext
13908 if test "${ac_cv_search_fmt_scaled+set}" = set; then
8969 break 13909 break
8970fi 13910fi
8971done 13911done
8972if ${ac_cv_search_fmt_scaled+:} false; then : 13912if test "${ac_cv_search_fmt_scaled+set}" = set; then
8973 13913 :
8974else 13914else
8975 ac_cv_search_fmt_scaled=no 13915 ac_cv_search_fmt_scaled=no
8976fi 13916fi
8977rm conftest.$ac_ext 13917rm conftest.$ac_ext
8978LIBS=$ac_func_search_save_LIBS 13918LIBS=$ac_func_search_save_LIBS
8979fi 13919fi
8980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmt_scaled" >&5 13920{ echo "$as_me:$LINENO: result: $ac_cv_search_fmt_scaled" >&5
8981$as_echo "$ac_cv_search_fmt_scaled" >&6; } 13921echo "${ECHO_T}$ac_cv_search_fmt_scaled" >&6; }
8982ac_res=$ac_cv_search_fmt_scaled 13922ac_res=$ac_cv_search_fmt_scaled
8983if test "$ac_res" != no; then : 13923if test "$ac_res" != no; then
8984 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13924 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8985 13925
8986fi 13926fi
8987 13927
8988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing scan_scaled" >&5 13928{ echo "$as_me:$LINENO: checking for library containing scan_scaled" >&5
8989$as_echo_n "checking for library containing scan_scaled... " >&6; } 13929echo $ECHO_N "checking for library containing scan_scaled... $ECHO_C" >&6; }
8990if ${ac_cv_search_scan_scaled+:} false; then : 13930if test "${ac_cv_search_scan_scaled+set}" = set; then
8991 $as_echo_n "(cached) " >&6 13931 echo $ECHO_N "(cached) $ECHO_C" >&6
8992else 13932else
8993 ac_func_search_save_LIBS=$LIBS 13933 ac_func_search_save_LIBS=$LIBS
8994cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13934cat >conftest.$ac_ext <<_ACEOF
13935/* confdefs.h. */
13936_ACEOF
13937cat confdefs.h >>conftest.$ac_ext
13938cat >>conftest.$ac_ext <<_ACEOF
8995/* end confdefs.h. */ 13939/* end confdefs.h. */
8996 13940
8997/* Override any GCC internal prototype to avoid an error. 13941/* Override any GCC internal prototype to avoid an error.
@@ -9016,38 +13960,65 @@ for ac_lib in '' util bsd; do
9016 ac_res=-l$ac_lib 13960 ac_res=-l$ac_lib
9017 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13961 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9018 fi 13962 fi
9019 if ac_fn_c_try_link "$LINENO"; then : 13963 rm -f conftest.$ac_objext conftest$ac_exeext
13964if { (ac_try="$ac_link"
13965case "(($ac_try" in
13966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13967 *) ac_try_echo=$ac_try;;
13968esac
13969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13970 (eval "$ac_link") 2>conftest.er1
13971 ac_status=$?
13972 grep -v '^ *+' conftest.er1 >conftest.err
13973 rm -f conftest.er1
13974 cat conftest.err >&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } && {
13977 test -z "$ac_c_werror_flag" ||
13978 test ! -s conftest.err
13979 } && test -s conftest$ac_exeext &&
13980 $as_test_x conftest$ac_exeext; then
9020 ac_cv_search_scan_scaled=$ac_res 13981 ac_cv_search_scan_scaled=$ac_res
13982else
13983 echo "$as_me: failed program was:" >&5
13984sed 's/^/| /' conftest.$ac_ext >&5
13985
13986
9021fi 13987fi
9022rm -f core conftest.err conftest.$ac_objext \ 13988
9023 conftest$ac_exeext 13989rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9024 if ${ac_cv_search_scan_scaled+:} false; then : 13990 conftest$ac_exeext
13991 if test "${ac_cv_search_scan_scaled+set}" = set; then
9025 break 13992 break
9026fi 13993fi
9027done 13994done
9028if ${ac_cv_search_scan_scaled+:} false; then : 13995if test "${ac_cv_search_scan_scaled+set}" = set; then
9029 13996 :
9030else 13997else
9031 ac_cv_search_scan_scaled=no 13998 ac_cv_search_scan_scaled=no
9032fi 13999fi
9033rm conftest.$ac_ext 14000rm conftest.$ac_ext
9034LIBS=$ac_func_search_save_LIBS 14001LIBS=$ac_func_search_save_LIBS
9035fi 14002fi
9036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_scan_scaled" >&5 14003{ echo "$as_me:$LINENO: result: $ac_cv_search_scan_scaled" >&5
9037$as_echo "$ac_cv_search_scan_scaled" >&6; } 14004echo "${ECHO_T}$ac_cv_search_scan_scaled" >&6; }
9038ac_res=$ac_cv_search_scan_scaled 14005ac_res=$ac_cv_search_scan_scaled
9039if test "$ac_res" != no; then : 14006if test "$ac_res" != no; then
9040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14007 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9041 14008
9042fi 14009fi
9043 14010
9044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5 14011{ echo "$as_me:$LINENO: checking for library containing login" >&5
9045$as_echo_n "checking for library containing login... " >&6; } 14012echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; }
9046if ${ac_cv_search_login+:} false; then : 14013if test "${ac_cv_search_login+set}" = set; then
9047 $as_echo_n "(cached) " >&6 14014 echo $ECHO_N "(cached) $ECHO_C" >&6
9048else 14015else
9049 ac_func_search_save_LIBS=$LIBS 14016 ac_func_search_save_LIBS=$LIBS
9050cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14017cat >conftest.$ac_ext <<_ACEOF
14018/* confdefs.h. */
14019_ACEOF
14020cat confdefs.h >>conftest.$ac_ext
14021cat >>conftest.$ac_ext <<_ACEOF
9051/* end confdefs.h. */ 14022/* end confdefs.h. */
9052 14023
9053/* Override any GCC internal prototype to avoid an error. 14024/* Override any GCC internal prototype to avoid an error.
@@ -9072,38 +14043,65 @@ for ac_lib in '' util bsd; do
9072 ac_res=-l$ac_lib 14043 ac_res=-l$ac_lib
9073 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9074 fi 14045 fi
9075 if ac_fn_c_try_link "$LINENO"; then : 14046 rm -f conftest.$ac_objext conftest$ac_exeext
14047if { (ac_try="$ac_link"
14048case "(($ac_try" in
14049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050 *) ac_try_echo=$ac_try;;
14051esac
14052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14053 (eval "$ac_link") 2>conftest.er1
14054 ac_status=$?
14055 grep -v '^ *+' conftest.er1 >conftest.err
14056 rm -f conftest.er1
14057 cat conftest.err >&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); } && {
14060 test -z "$ac_c_werror_flag" ||
14061 test ! -s conftest.err
14062 } && test -s conftest$ac_exeext &&
14063 $as_test_x conftest$ac_exeext; then
9076 ac_cv_search_login=$ac_res 14064 ac_cv_search_login=$ac_res
14065else
14066 echo "$as_me: failed program was:" >&5
14067sed 's/^/| /' conftest.$ac_ext >&5
14068
14069
9077fi 14070fi
9078rm -f core conftest.err conftest.$ac_objext \ 14071
9079 conftest$ac_exeext 14072rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9080 if ${ac_cv_search_login+:} false; then : 14073 conftest$ac_exeext
14074 if test "${ac_cv_search_login+set}" = set; then
9081 break 14075 break
9082fi 14076fi
9083done 14077done
9084if ${ac_cv_search_login+:} false; then : 14078if test "${ac_cv_search_login+set}" = set; then
9085 14079 :
9086else 14080else
9087 ac_cv_search_login=no 14081 ac_cv_search_login=no
9088fi 14082fi
9089rm conftest.$ac_ext 14083rm conftest.$ac_ext
9090LIBS=$ac_func_search_save_LIBS 14084LIBS=$ac_func_search_save_LIBS
9091fi 14085fi
9092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5 14086{ echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
9093$as_echo "$ac_cv_search_login" >&6; } 14087echo "${ECHO_T}$ac_cv_search_login" >&6; }
9094ac_res=$ac_cv_search_login 14088ac_res=$ac_cv_search_login
9095if test "$ac_res" != no; then : 14089if test "$ac_res" != no; then
9096 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14090 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9097 14091
9098fi 14092fi
9099 14093
9100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logout" >&5 14094{ echo "$as_me:$LINENO: checking for library containing logout" >&5
9101$as_echo_n "checking for library containing logout... " >&6; } 14095echo $ECHO_N "checking for library containing logout... $ECHO_C" >&6; }
9102if ${ac_cv_search_logout+:} false; then : 14096if test "${ac_cv_search_logout+set}" = set; then
9103 $as_echo_n "(cached) " >&6 14097 echo $ECHO_N "(cached) $ECHO_C" >&6
9104else 14098else
9105 ac_func_search_save_LIBS=$LIBS 14099 ac_func_search_save_LIBS=$LIBS
9106cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14100cat >conftest.$ac_ext <<_ACEOF
14101/* confdefs.h. */
14102_ACEOF
14103cat confdefs.h >>conftest.$ac_ext
14104cat >>conftest.$ac_ext <<_ACEOF
9107/* end confdefs.h. */ 14105/* end confdefs.h. */
9108 14106
9109/* Override any GCC internal prototype to avoid an error. 14107/* Override any GCC internal prototype to avoid an error.
@@ -9128,38 +14126,65 @@ for ac_lib in '' util bsd; do
9128 ac_res=-l$ac_lib 14126 ac_res=-l$ac_lib
9129 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14127 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9130 fi 14128 fi
9131 if ac_fn_c_try_link "$LINENO"; then : 14129 rm -f conftest.$ac_objext conftest$ac_exeext
14130if { (ac_try="$ac_link"
14131case "(($ac_try" in
14132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14133 *) ac_try_echo=$ac_try;;
14134esac
14135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14136 (eval "$ac_link") 2>conftest.er1
14137 ac_status=$?
14138 grep -v '^ *+' conftest.er1 >conftest.err
14139 rm -f conftest.er1
14140 cat conftest.err >&5
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); } && {
14143 test -z "$ac_c_werror_flag" ||
14144 test ! -s conftest.err
14145 } && test -s conftest$ac_exeext &&
14146 $as_test_x conftest$ac_exeext; then
9132 ac_cv_search_logout=$ac_res 14147 ac_cv_search_logout=$ac_res
14148else
14149 echo "$as_me: failed program was:" >&5
14150sed 's/^/| /' conftest.$ac_ext >&5
14151
14152
9133fi 14153fi
9134rm -f core conftest.err conftest.$ac_objext \ 14154
9135 conftest$ac_exeext 14155rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9136 if ${ac_cv_search_logout+:} false; then : 14156 conftest$ac_exeext
14157 if test "${ac_cv_search_logout+set}" = set; then
9137 break 14158 break
9138fi 14159fi
9139done 14160done
9140if ${ac_cv_search_logout+:} false; then : 14161if test "${ac_cv_search_logout+set}" = set; then
9141 14162 :
9142else 14163else
9143 ac_cv_search_logout=no 14164 ac_cv_search_logout=no
9144fi 14165fi
9145rm conftest.$ac_ext 14166rm conftest.$ac_ext
9146LIBS=$ac_func_search_save_LIBS 14167LIBS=$ac_func_search_save_LIBS
9147fi 14168fi
9148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logout" >&5 14169{ echo "$as_me:$LINENO: result: $ac_cv_search_logout" >&5
9149$as_echo "$ac_cv_search_logout" >&6; } 14170echo "${ECHO_T}$ac_cv_search_logout" >&6; }
9150ac_res=$ac_cv_search_logout 14171ac_res=$ac_cv_search_logout
9151if test "$ac_res" != no; then : 14172if test "$ac_res" != no; then
9152 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14173 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9153 14174
9154fi 14175fi
9155 14176
9156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logwtmp" >&5 14177{ echo "$as_me:$LINENO: checking for library containing logwtmp" >&5
9157$as_echo_n "checking for library containing logwtmp... " >&6; } 14178echo $ECHO_N "checking for library containing logwtmp... $ECHO_C" >&6; }
9158if ${ac_cv_search_logwtmp+:} false; then : 14179if test "${ac_cv_search_logwtmp+set}" = set; then
9159 $as_echo_n "(cached) " >&6 14180 echo $ECHO_N "(cached) $ECHO_C" >&6
9160else 14181else
9161 ac_func_search_save_LIBS=$LIBS 14182 ac_func_search_save_LIBS=$LIBS
9162cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14183cat >conftest.$ac_ext <<_ACEOF
14184/* confdefs.h. */
14185_ACEOF
14186cat confdefs.h >>conftest.$ac_ext
14187cat >>conftest.$ac_ext <<_ACEOF
9163/* end confdefs.h. */ 14188/* end confdefs.h. */
9164 14189
9165/* Override any GCC internal prototype to avoid an error. 14190/* Override any GCC internal prototype to avoid an error.
@@ -9184,38 +14209,65 @@ for ac_lib in '' util bsd; do
9184 ac_res=-l$ac_lib 14209 ac_res=-l$ac_lib
9185 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14210 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9186 fi 14211 fi
9187 if ac_fn_c_try_link "$LINENO"; then : 14212 rm -f conftest.$ac_objext conftest$ac_exeext
14213if { (ac_try="$ac_link"
14214case "(($ac_try" in
14215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216 *) ac_try_echo=$ac_try;;
14217esac
14218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14219 (eval "$ac_link") 2>conftest.er1
14220 ac_status=$?
14221 grep -v '^ *+' conftest.er1 >conftest.err
14222 rm -f conftest.er1
14223 cat conftest.err >&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); } && {
14226 test -z "$ac_c_werror_flag" ||
14227 test ! -s conftest.err
14228 } && test -s conftest$ac_exeext &&
14229 $as_test_x conftest$ac_exeext; then
9188 ac_cv_search_logwtmp=$ac_res 14230 ac_cv_search_logwtmp=$ac_res
14231else
14232 echo "$as_me: failed program was:" >&5
14233sed 's/^/| /' conftest.$ac_ext >&5
14234
14235
9189fi 14236fi
9190rm -f core conftest.err conftest.$ac_objext \ 14237
9191 conftest$ac_exeext 14238rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9192 if ${ac_cv_search_logwtmp+:} false; then : 14239 conftest$ac_exeext
14240 if test "${ac_cv_search_logwtmp+set}" = set; then
9193 break 14241 break
9194fi 14242fi
9195done 14243done
9196if ${ac_cv_search_logwtmp+:} false; then : 14244if test "${ac_cv_search_logwtmp+set}" = set; then
9197 14245 :
9198else 14246else
9199 ac_cv_search_logwtmp=no 14247 ac_cv_search_logwtmp=no
9200fi 14248fi
9201rm conftest.$ac_ext 14249rm conftest.$ac_ext
9202LIBS=$ac_func_search_save_LIBS 14250LIBS=$ac_func_search_save_LIBS
9203fi 14251fi
9204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logwtmp" >&5 14252{ echo "$as_me:$LINENO: result: $ac_cv_search_logwtmp" >&5
9205$as_echo "$ac_cv_search_logwtmp" >&6; } 14253echo "${ECHO_T}$ac_cv_search_logwtmp" >&6; }
9206ac_res=$ac_cv_search_logwtmp 14254ac_res=$ac_cv_search_logwtmp
9207if test "$ac_res" != no; then : 14255if test "$ac_res" != no; then
9208 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14256 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9209 14257
9210fi 14258fi
9211 14259
9212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 14260{ echo "$as_me:$LINENO: checking for library containing openpty" >&5
9213$as_echo_n "checking for library containing openpty... " >&6; } 14261echo $ECHO_N "checking for library containing openpty... $ECHO_C" >&6; }
9214if ${ac_cv_search_openpty+:} false; then : 14262if test "${ac_cv_search_openpty+set}" = set; then
9215 $as_echo_n "(cached) " >&6 14263 echo $ECHO_N "(cached) $ECHO_C" >&6
9216else 14264else
9217 ac_func_search_save_LIBS=$LIBS 14265 ac_func_search_save_LIBS=$LIBS
9218cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14266cat >conftest.$ac_ext <<_ACEOF
14267/* confdefs.h. */
14268_ACEOF
14269cat confdefs.h >>conftest.$ac_ext
14270cat >>conftest.$ac_ext <<_ACEOF
9219/* end confdefs.h. */ 14271/* end confdefs.h. */
9220 14272
9221/* Override any GCC internal prototype to avoid an error. 14273/* Override any GCC internal prototype to avoid an error.
@@ -9240,38 +14292,65 @@ for ac_lib in '' util bsd; do
9240 ac_res=-l$ac_lib 14292 ac_res=-l$ac_lib
9241 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9242 fi 14294 fi
9243 if ac_fn_c_try_link "$LINENO"; then : 14295 rm -f conftest.$ac_objext conftest$ac_exeext
14296if { (ac_try="$ac_link"
14297case "(($ac_try" in
14298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299 *) ac_try_echo=$ac_try;;
14300esac
14301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302 (eval "$ac_link") 2>conftest.er1
14303 ac_status=$?
14304 grep -v '^ *+' conftest.er1 >conftest.err
14305 rm -f conftest.er1
14306 cat conftest.err >&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); } && {
14309 test -z "$ac_c_werror_flag" ||
14310 test ! -s conftest.err
14311 } && test -s conftest$ac_exeext &&
14312 $as_test_x conftest$ac_exeext; then
9244 ac_cv_search_openpty=$ac_res 14313 ac_cv_search_openpty=$ac_res
14314else
14315 echo "$as_me: failed program was:" >&5
14316sed 's/^/| /' conftest.$ac_ext >&5
14317
14318
9245fi 14319fi
9246rm -f core conftest.err conftest.$ac_objext \ 14320
9247 conftest$ac_exeext 14321rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9248 if ${ac_cv_search_openpty+:} false; then : 14322 conftest$ac_exeext
14323 if test "${ac_cv_search_openpty+set}" = set; then
9249 break 14324 break
9250fi 14325fi
9251done 14326done
9252if ${ac_cv_search_openpty+:} false; then : 14327if test "${ac_cv_search_openpty+set}" = set; then
9253 14328 :
9254else 14329else
9255 ac_cv_search_openpty=no 14330 ac_cv_search_openpty=no
9256fi 14331fi
9257rm conftest.$ac_ext 14332rm conftest.$ac_ext
9258LIBS=$ac_func_search_save_LIBS 14333LIBS=$ac_func_search_save_LIBS
9259fi 14334fi
9260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 14335{ echo "$as_me:$LINENO: result: $ac_cv_search_openpty" >&5
9261$as_echo "$ac_cv_search_openpty" >&6; } 14336echo "${ECHO_T}$ac_cv_search_openpty" >&6; }
9262ac_res=$ac_cv_search_openpty 14337ac_res=$ac_cv_search_openpty
9263if test "$ac_res" != no; then : 14338if test "$ac_res" != no; then
9264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14339 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9265 14340
9266fi 14341fi
9267 14342
9268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing updwtmp" >&5 14343{ echo "$as_me:$LINENO: checking for library containing updwtmp" >&5
9269$as_echo_n "checking for library containing updwtmp... " >&6; } 14344echo $ECHO_N "checking for library containing updwtmp... $ECHO_C" >&6; }
9270if ${ac_cv_search_updwtmp+:} false; then : 14345if test "${ac_cv_search_updwtmp+set}" = set; then
9271 $as_echo_n "(cached) " >&6 14346 echo $ECHO_N "(cached) $ECHO_C" >&6
9272else 14347else
9273 ac_func_search_save_LIBS=$LIBS 14348 ac_func_search_save_LIBS=$LIBS
9274cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14349cat >conftest.$ac_ext <<_ACEOF
14350/* confdefs.h. */
14351_ACEOF
14352cat confdefs.h >>conftest.$ac_ext
14353cat >>conftest.$ac_ext <<_ACEOF
9275/* end confdefs.h. */ 14354/* end confdefs.h. */
9276 14355
9277/* Override any GCC internal prototype to avoid an error. 14356/* Override any GCC internal prototype to avoid an error.
@@ -9296,38 +14375,149 @@ for ac_lib in '' util bsd; do
9296 ac_res=-l$ac_lib 14375 ac_res=-l$ac_lib
9297 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9298 fi 14377 fi
9299 if ac_fn_c_try_link "$LINENO"; then : 14378 rm -f conftest.$ac_objext conftest$ac_exeext
14379if { (ac_try="$ac_link"
14380case "(($ac_try" in
14381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382 *) ac_try_echo=$ac_try;;
14383esac
14384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14385 (eval "$ac_link") 2>conftest.er1
14386 ac_status=$?
14387 grep -v '^ *+' conftest.er1 >conftest.err
14388 rm -f conftest.er1
14389 cat conftest.err >&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); } && {
14392 test -z "$ac_c_werror_flag" ||
14393 test ! -s conftest.err
14394 } && test -s conftest$ac_exeext &&
14395 $as_test_x conftest$ac_exeext; then
9300 ac_cv_search_updwtmp=$ac_res 14396 ac_cv_search_updwtmp=$ac_res
14397else
14398 echo "$as_me: failed program was:" >&5
14399sed 's/^/| /' conftest.$ac_ext >&5
14400
14401
9301fi 14402fi
9302rm -f core conftest.err conftest.$ac_objext \ 14403
9303 conftest$ac_exeext 14404rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9304 if ${ac_cv_search_updwtmp+:} false; then : 14405 conftest$ac_exeext
14406 if test "${ac_cv_search_updwtmp+set}" = set; then
9305 break 14407 break
9306fi 14408fi
9307done 14409done
9308if ${ac_cv_search_updwtmp+:} false; then : 14410if test "${ac_cv_search_updwtmp+set}" = set; then
9309 14411 :
9310else 14412else
9311 ac_cv_search_updwtmp=no 14413 ac_cv_search_updwtmp=no
9312fi 14414fi
9313rm conftest.$ac_ext 14415rm conftest.$ac_ext
9314LIBS=$ac_func_search_save_LIBS 14416LIBS=$ac_func_search_save_LIBS
9315fi 14417fi
9316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_updwtmp" >&5 14418{ echo "$as_me:$LINENO: result: $ac_cv_search_updwtmp" >&5
9317$as_echo "$ac_cv_search_updwtmp" >&6; } 14419echo "${ECHO_T}$ac_cv_search_updwtmp" >&6; }
9318ac_res=$ac_cv_search_updwtmp 14420ac_res=$ac_cv_search_updwtmp
9319if test "$ac_res" != no; then : 14421if test "$ac_res" != no; then
9320 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14422 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9321 14423
9322fi 14424fi
9323 14425
14426
14427
14428
14429
14430
14431
14432
9324for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp 14433for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp
9325do : 14434do
9326 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14435as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9327ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14436{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9328if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14437echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14438if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14439 echo $ECHO_N "(cached) $ECHO_C" >&6
14440else
14441 cat >conftest.$ac_ext <<_ACEOF
14442/* confdefs.h. */
14443_ACEOF
14444cat confdefs.h >>conftest.$ac_ext
14445cat >>conftest.$ac_ext <<_ACEOF
14446/* end confdefs.h. */
14447/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14449#define $ac_func innocuous_$ac_func
14450
14451/* System header to define __stub macros and hopefully few prototypes,
14452 which can conflict with char $ac_func (); below.
14453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14454 <limits.h> exists even on freestanding compilers. */
14455
14456#ifdef __STDC__
14457# include <limits.h>
14458#else
14459# include <assert.h>
14460#endif
14461
14462#undef $ac_func
14463
14464/* Override any GCC internal prototype to avoid an error.
14465 Use char because int might match the return type of a GCC
14466 builtin and then its argument prototype would still apply. */
14467#ifdef __cplusplus
14468extern "C"
14469#endif
14470char $ac_func ();
14471/* The GNU C library defines this for functions which it implements
14472 to always fail with ENOSYS. Some functions are actually named
14473 something starting with __ and the normal name is an alias. */
14474#if defined __stub_$ac_func || defined __stub___$ac_func
14475choke me
14476#endif
14477
14478int
14479main ()
14480{
14481return $ac_func ();
14482 ;
14483 return 0;
14484}
14485_ACEOF
14486rm -f conftest.$ac_objext conftest$ac_exeext
14487if { (ac_try="$ac_link"
14488case "(($ac_try" in
14489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14490 *) ac_try_echo=$ac_try;;
14491esac
14492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14493 (eval "$ac_link") 2>conftest.er1
14494 ac_status=$?
14495 grep -v '^ *+' conftest.er1 >conftest.err
14496 rm -f conftest.er1
14497 cat conftest.err >&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); } && {
14500 test -z "$ac_c_werror_flag" ||
14501 test ! -s conftest.err
14502 } && test -s conftest$ac_exeext &&
14503 $as_test_x conftest$ac_exeext; then
14504 eval "$as_ac_var=yes"
14505else
14506 echo "$as_me: failed program was:" >&5
14507sed 's/^/| /' conftest.$ac_ext >&5
14508
14509 eval "$as_ac_var=no"
14510fi
14511
14512rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14513 conftest$ac_exeext conftest.$ac_ext
14514fi
14515ac_res=`eval echo '${'$as_ac_var'}'`
14516 { echo "$as_me:$LINENO: result: $ac_res" >&5
14517echo "${ECHO_T}$ac_res" >&6; }
14518if test `eval echo '${'$as_ac_var'}'` = yes; then
9329 cat >>confdefs.h <<_ACEOF 14519 cat >>confdefs.h <<_ACEOF
9330#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14520#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9331_ACEOF 14521_ACEOF
9332 14522
9333fi 14523fi
@@ -9335,13 +14525,17 @@ done
9335 14525
9336 14526
9337# On some platforms, inet_ntop may be found in libresolv or libnsl. 14527# On some platforms, inet_ntop may be found in libresolv or libnsl.
9338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 14528{ echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5
9339$as_echo_n "checking for library containing inet_ntop... " >&6; } 14529echo $ECHO_N "checking for library containing inet_ntop... $ECHO_C" >&6; }
9340if ${ac_cv_search_inet_ntop+:} false; then : 14530if test "${ac_cv_search_inet_ntop+set}" = set; then
9341 $as_echo_n "(cached) " >&6 14531 echo $ECHO_N "(cached) $ECHO_C" >&6
9342else 14532else
9343 ac_func_search_save_LIBS=$LIBS 14533 ac_func_search_save_LIBS=$LIBS
9344cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14534cat >conftest.$ac_ext <<_ACEOF
14535/* confdefs.h. */
14536_ACEOF
14537cat confdefs.h >>conftest.$ac_ext
14538cat >>conftest.$ac_ext <<_ACEOF
9345/* end confdefs.h. */ 14539/* end confdefs.h. */
9346 14540
9347/* Override any GCC internal prototype to avoid an error. 14541/* Override any GCC internal prototype to avoid an error.
@@ -9366,50 +14560,160 @@ for ac_lib in '' resolv nsl; do
9366 ac_res=-l$ac_lib 14560 ac_res=-l$ac_lib
9367 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14561 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9368 fi 14562 fi
9369 if ac_fn_c_try_link "$LINENO"; then : 14563 rm -f conftest.$ac_objext conftest$ac_exeext
14564if { (ac_try="$ac_link"
14565case "(($ac_try" in
14566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14567 *) ac_try_echo=$ac_try;;
14568esac
14569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14570 (eval "$ac_link") 2>conftest.er1
14571 ac_status=$?
14572 grep -v '^ *+' conftest.er1 >conftest.err
14573 rm -f conftest.er1
14574 cat conftest.err >&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } && {
14577 test -z "$ac_c_werror_flag" ||
14578 test ! -s conftest.err
14579 } && test -s conftest$ac_exeext &&
14580 $as_test_x conftest$ac_exeext; then
9370 ac_cv_search_inet_ntop=$ac_res 14581 ac_cv_search_inet_ntop=$ac_res
14582else
14583 echo "$as_me: failed program was:" >&5
14584sed 's/^/| /' conftest.$ac_ext >&5
14585
14586
9371fi 14587fi
9372rm -f core conftest.err conftest.$ac_objext \ 14588
9373 conftest$ac_exeext 14589rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9374 if ${ac_cv_search_inet_ntop+:} false; then : 14590 conftest$ac_exeext
14591 if test "${ac_cv_search_inet_ntop+set}" = set; then
9375 break 14592 break
9376fi 14593fi
9377done 14594done
9378if ${ac_cv_search_inet_ntop+:} false; then : 14595if test "${ac_cv_search_inet_ntop+set}" = set; then
9379 14596 :
9380else 14597else
9381 ac_cv_search_inet_ntop=no 14598 ac_cv_search_inet_ntop=no
9382fi 14599fi
9383rm conftest.$ac_ext 14600rm conftest.$ac_ext
9384LIBS=$ac_func_search_save_LIBS 14601LIBS=$ac_func_search_save_LIBS
9385fi 14602fi
9386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 14603{ echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5
9387$as_echo "$ac_cv_search_inet_ntop" >&6; } 14604echo "${ECHO_T}$ac_cv_search_inet_ntop" >&6; }
9388ac_res=$ac_cv_search_inet_ntop 14605ac_res=$ac_cv_search_inet_ntop
9389if test "$ac_res" != no; then : 14606if test "$ac_res" != no; then
9390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14607 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9391 14608
9392fi 14609fi
9393 14610
9394 14611
14612
9395for ac_func in strftime 14613for ac_func in strftime
9396do : 14614do
9397 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 14615as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9398if test "x$ac_cv_func_strftime" = xyes; then : 14616{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14617echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14618if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14619 echo $ECHO_N "(cached) $ECHO_C" >&6
14620else
14621 cat >conftest.$ac_ext <<_ACEOF
14622/* confdefs.h. */
14623_ACEOF
14624cat confdefs.h >>conftest.$ac_ext
14625cat >>conftest.$ac_ext <<_ACEOF
14626/* end confdefs.h. */
14627/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14629#define $ac_func innocuous_$ac_func
14630
14631/* System header to define __stub macros and hopefully few prototypes,
14632 which can conflict with char $ac_func (); below.
14633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14634 <limits.h> exists even on freestanding compilers. */
14635
14636#ifdef __STDC__
14637# include <limits.h>
14638#else
14639# include <assert.h>
14640#endif
14641
14642#undef $ac_func
14643
14644/* Override any GCC internal prototype to avoid an error.
14645 Use char because int might match the return type of a GCC
14646 builtin and then its argument prototype would still apply. */
14647#ifdef __cplusplus
14648extern "C"
14649#endif
14650char $ac_func ();
14651/* The GNU C library defines this for functions which it implements
14652 to always fail with ENOSYS. Some functions are actually named
14653 something starting with __ and the normal name is an alias. */
14654#if defined __stub_$ac_func || defined __stub___$ac_func
14655choke me
14656#endif
14657
14658int
14659main ()
14660{
14661return $ac_func ();
14662 ;
14663 return 0;
14664}
14665_ACEOF
14666rm -f conftest.$ac_objext conftest$ac_exeext
14667if { (ac_try="$ac_link"
14668case "(($ac_try" in
14669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670 *) ac_try_echo=$ac_try;;
14671esac
14672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14673 (eval "$ac_link") 2>conftest.er1
14674 ac_status=$?
14675 grep -v '^ *+' conftest.er1 >conftest.err
14676 rm -f conftest.er1
14677 cat conftest.err >&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } && {
14680 test -z "$ac_c_werror_flag" ||
14681 test ! -s conftest.err
14682 } && test -s conftest$ac_exeext &&
14683 $as_test_x conftest$ac_exeext; then
14684 eval "$as_ac_var=yes"
14685else
14686 echo "$as_me: failed program was:" >&5
14687sed 's/^/| /' conftest.$ac_ext >&5
14688
14689 eval "$as_ac_var=no"
14690fi
14691
14692rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14693 conftest$ac_exeext conftest.$ac_ext
14694fi
14695ac_res=`eval echo '${'$as_ac_var'}'`
14696 { echo "$as_me:$LINENO: result: $ac_res" >&5
14697echo "${ECHO_T}$ac_res" >&6; }
14698if test `eval echo '${'$as_ac_var'}'` = yes; then
9399 cat >>confdefs.h <<_ACEOF 14699 cat >>confdefs.h <<_ACEOF
9400#define HAVE_STRFTIME 1 14700#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9401_ACEOF 14701_ACEOF
9402 14702
9403else 14703else
9404 # strftime is in -lintl on SCO UNIX. 14704 # strftime is in -lintl on SCO UNIX.
9405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 14705{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9406$as_echo_n "checking for strftime in -lintl... " >&6; } 14706echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
9407if ${ac_cv_lib_intl_strftime+:} false; then : 14707if test "${ac_cv_lib_intl_strftime+set}" = set; then
9408 $as_echo_n "(cached) " >&6 14708 echo $ECHO_N "(cached) $ECHO_C" >&6
9409else 14709else
9410 ac_check_lib_save_LIBS=$LIBS 14710 ac_check_lib_save_LIBS=$LIBS
9411LIBS="-lintl $LIBS" 14711LIBS="-lintl $LIBS"
9412cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14712cat >conftest.$ac_ext <<_ACEOF
14713/* confdefs.h. */
14714_ACEOF
14715cat confdefs.h >>conftest.$ac_ext
14716cat >>conftest.$ac_ext <<_ACEOF
9413/* end confdefs.h. */ 14717/* end confdefs.h. */
9414 14718
9415/* Override any GCC internal prototype to avoid an error. 14719/* Override any GCC internal prototype to avoid an error.
@@ -9427,19 +14731,42 @@ return strftime ();
9427 return 0; 14731 return 0;
9428} 14732}
9429_ACEOF 14733_ACEOF
9430if ac_fn_c_try_link "$LINENO"; then : 14734rm -f conftest.$ac_objext conftest$ac_exeext
14735if { (ac_try="$ac_link"
14736case "(($ac_try" in
14737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14738 *) ac_try_echo=$ac_try;;
14739esac
14740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14741 (eval "$ac_link") 2>conftest.er1
14742 ac_status=$?
14743 grep -v '^ *+' conftest.er1 >conftest.err
14744 rm -f conftest.er1
14745 cat conftest.err >&5
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); } && {
14748 test -z "$ac_c_werror_flag" ||
14749 test ! -s conftest.err
14750 } && test -s conftest$ac_exeext &&
14751 $as_test_x conftest$ac_exeext; then
9431 ac_cv_lib_intl_strftime=yes 14752 ac_cv_lib_intl_strftime=yes
9432else 14753else
9433 ac_cv_lib_intl_strftime=no 14754 echo "$as_me: failed program was:" >&5
14755sed 's/^/| /' conftest.$ac_ext >&5
14756
14757 ac_cv_lib_intl_strftime=no
9434fi 14758fi
9435rm -f core conftest.err conftest.$ac_objext \ 14759
9436 conftest$ac_exeext conftest.$ac_ext 14760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14761 conftest$ac_exeext conftest.$ac_ext
9437LIBS=$ac_check_lib_save_LIBS 14762LIBS=$ac_check_lib_save_LIBS
9438fi 14763fi
9439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 14764{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
9440$as_echo "$ac_cv_lib_intl_strftime" >&6; } 14765echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
9441if test "x$ac_cv_lib_intl_strftime" = xyes; then : 14766if test $ac_cv_lib_intl_strftime = yes; then
9442 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 14767 cat >>confdefs.h <<\_ACEOF
14768#define HAVE_STRFTIME 1
14769_ACEOF
9443 14770
9444LIBS="-lintl $LIBS" 14771LIBS="-lintl $LIBS"
9445fi 14772fi
@@ -9449,9 +14776,13 @@ done
9449 14776
9450 14777
9451# Check for ALTDIRFUNC glob() extension 14778# Check for ALTDIRFUNC glob() extension
9452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5 14779{ echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
9453$as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; } 14780echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; }
9454cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14781cat >conftest.$ac_ext <<_ACEOF
14782/* confdefs.h. */
14783_ACEOF
14784cat confdefs.h >>conftest.$ac_ext
14785cat >>conftest.$ac_ext <<_ACEOF
9455/* end confdefs.h. */ 14786/* end confdefs.h. */
9456 14787
9457 #include <glob.h> 14788 #include <glob.h>
@@ -9461,18 +14792,20 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461 14792
9462_ACEOF 14793_ACEOF
9463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14794if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9464 $EGREP "FOUNDIT" >/dev/null 2>&1; then : 14795 $EGREP "FOUNDIT" >/dev/null 2>&1; then
9465 14796
9466 14797
9467$as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h 14798cat >>confdefs.h <<\_ACEOF
14799#define GLOB_HAS_ALTDIRFUNC 1
14800_ACEOF
9468 14801
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14802 { echo "$as_me:$LINENO: result: yes" >&5
9470$as_echo "yes" >&6; } 14803echo "${ECHO_T}yes" >&6; }
9471 14804
9472else 14805else
9473 14806
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14807 { echo "$as_me:$LINENO: result: no" >&5
9475$as_echo "no" >&6; } 14808echo "${ECHO_T}no" >&6; }
9476 14809
9477 14810
9478fi 14811fi
@@ -9480,9 +14813,13 @@ rm -f conftest*
9480 14813
9481 14814
9482# Check for g.gl_matchc glob() extension 14815# Check for g.gl_matchc glob() extension
9483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5 14816{ echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
9484$as_echo_n "checking for gl_matchc field in glob_t... " >&6; } 14817echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; }
9485cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14818cat >conftest.$ac_ext <<_ACEOF
14819/* confdefs.h. */
14820_ACEOF
14821cat confdefs.h >>conftest.$ac_ext
14822cat >>conftest.$ac_ext <<_ACEOF
9486/* end confdefs.h. */ 14823/* end confdefs.h. */
9487 #include <glob.h> 14824 #include <glob.h>
9488int 14825int
@@ -9493,26 +14830,52 @@ main ()
9493 return 0; 14830 return 0;
9494} 14831}
9495_ACEOF 14832_ACEOF
9496if ac_fn_c_try_compile "$LINENO"; then : 14833rm -f conftest.$ac_objext
14834if { (ac_try="$ac_compile"
14835case "(($ac_try" in
14836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837 *) ac_try_echo=$ac_try;;
14838esac
14839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840 (eval "$ac_compile") 2>conftest.er1
14841 ac_status=$?
14842 grep -v '^ *+' conftest.er1 >conftest.err
14843 rm -f conftest.er1
14844 cat conftest.err >&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); } && {
14847 test -z "$ac_c_werror_flag" ||
14848 test ! -s conftest.err
14849 } && test -s conftest.$ac_objext; then
9497 14850
9498 14851
9499$as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h 14852cat >>confdefs.h <<\_ACEOF
14853#define GLOB_HAS_GL_MATCHC 1
14854_ACEOF
9500 14855
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14856 { echo "$as_me:$LINENO: result: yes" >&5
9502$as_echo "yes" >&6; } 14857echo "${ECHO_T}yes" >&6; }
9503 14858
9504else 14859else
14860 echo "$as_me: failed program was:" >&5
14861sed 's/^/| /' conftest.$ac_ext >&5
9505 14862
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14863
9507$as_echo "no" >&6; } 14864 { echo "$as_me:$LINENO: result: no" >&5
14865echo "${ECHO_T}no" >&6; }
9508 14866
9509fi 14867fi
14868
9510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9511 14870
9512# Check for g.gl_statv glob() extension 14871# Check for g.gl_statv glob() extension
9513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5 14872{ echo "$as_me:$LINENO: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
9514$as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; } 14873echo $ECHO_N "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... $ECHO_C" >&6; }
9515cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14874cat >conftest.$ac_ext <<_ACEOF
14875/* confdefs.h. */
14876_ACEOF
14877cat confdefs.h >>conftest.$ac_ext
14878cat >>conftest.$ac_ext <<_ACEOF
9516/* end confdefs.h. */ 14879/* end confdefs.h. */
9517 #include <glob.h> 14880 #include <glob.h>
9518int 14881int
@@ -9529,48 +14892,133 @@ g.gl_statv = NULL;
9529 return 0; 14892 return 0;
9530} 14893}
9531_ACEOF 14894_ACEOF
9532if ac_fn_c_try_compile "$LINENO"; then : 14895rm -f conftest.$ac_objext
14896if { (ac_try="$ac_compile"
14897case "(($ac_try" in
14898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899 *) ac_try_echo=$ac_try;;
14900esac
14901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902 (eval "$ac_compile") 2>conftest.er1
14903 ac_status=$?
14904 grep -v '^ *+' conftest.er1 >conftest.err
14905 rm -f conftest.er1
14906 cat conftest.err >&5
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); } && {
14909 test -z "$ac_c_werror_flag" ||
14910 test ! -s conftest.err
14911 } && test -s conftest.$ac_objext; then
9533 14912
9534 14913
9535$as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h 14914cat >>confdefs.h <<\_ACEOF
14915#define GLOB_HAS_GL_STATV 1
14916_ACEOF
9536 14917
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14918 { echo "$as_me:$LINENO: result: yes" >&5
9538$as_echo "yes" >&6; } 14919echo "${ECHO_T}yes" >&6; }
9539 14920
9540else 14921else
14922 echo "$as_me: failed program was:" >&5
14923sed 's/^/| /' conftest.$ac_ext >&5
14924
9541 14925
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14926 { echo "$as_me:$LINENO: result: no" >&5
9543$as_echo "no" >&6; } 14927echo "${ECHO_T}no" >&6; }
9544 14928
9545 14929
9546fi 14930fi
14931
9547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9548 14933
9549ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h> 14934{ echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5
9550" 14935echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; }
9551if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then : 14936if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then
9552 ac_have_decl=1 14937 echo $ECHO_N "(cached) $ECHO_C" >&6
9553else 14938else
9554 ac_have_decl=0 14939 cat >conftest.$ac_ext <<_ACEOF
14940/* confdefs.h. */
14941_ACEOF
14942cat confdefs.h >>conftest.$ac_ext
14943cat >>conftest.$ac_ext <<_ACEOF
14944/* end confdefs.h. */
14945#include <glob.h>
14946
14947int
14948main ()
14949{
14950#ifndef GLOB_NOMATCH
14951 (void) GLOB_NOMATCH;
14952#endif
14953
14954 ;
14955 return 0;
14956}
14957_ACEOF
14958rm -f conftest.$ac_objext
14959if { (ac_try="$ac_compile"
14960case "(($ac_try" in
14961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14962 *) ac_try_echo=$ac_try;;
14963esac
14964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14965 (eval "$ac_compile") 2>conftest.er1
14966 ac_status=$?
14967 grep -v '^ *+' conftest.er1 >conftest.err
14968 rm -f conftest.er1
14969 cat conftest.err >&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } && {
14972 test -z "$ac_c_werror_flag" ||
14973 test ! -s conftest.err
14974 } && test -s conftest.$ac_objext; then
14975 ac_cv_have_decl_GLOB_NOMATCH=yes
14976else
14977 echo "$as_me: failed program was:" >&5
14978sed 's/^/| /' conftest.$ac_ext >&5
14979
14980 ac_cv_have_decl_GLOB_NOMATCH=no
9555fi 14981fi
9556 14982
14983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14984fi
14985{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5
14986echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; }
14987if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then
14988
9557cat >>confdefs.h <<_ACEOF 14989cat >>confdefs.h <<_ACEOF
9558#define HAVE_DECL_GLOB_NOMATCH $ac_have_decl 14990#define HAVE_DECL_GLOB_NOMATCH 1
9559_ACEOF 14991_ACEOF
9560 14992
9561 14993
9562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5 14994else
9563$as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; } 14995 cat >>confdefs.h <<_ACEOF
9564if test "$cross_compiling" = yes; then : 14996#define HAVE_DECL_GLOB_NOMATCH 0
14997_ACEOF
14998
14999
15000fi
15001
15002
9565 15003
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5 15004{ echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
9567$as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;} 15005echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; }
9568 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h 15006if test "$cross_compiling" = yes; then
15007
15008 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
15009echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
15010 cat >>confdefs.h <<\_ACEOF
15011#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
15012_ACEOF
9569 15013
9570 15014
9571 15015
9572else 15016else
9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15017 cat >conftest.$ac_ext <<_ACEOF
15018/* confdefs.h. */
15019_ACEOF
15020cat confdefs.h >>conftest.$ac_ext
15021cat >>conftest.$ac_ext <<_ACEOF
9574/* end confdefs.h. */ 15022/* end confdefs.h. */
9575 15023
9576#include <sys/types.h> 15024#include <sys/types.h>
@@ -9586,41 +15034,69 @@ main ()
9586 return 0; 15034 return 0;
9587} 15035}
9588_ACEOF 15036_ACEOF
9589if ac_fn_c_try_run "$LINENO"; then : 15037rm -f conftest$ac_exeext
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15038if { (ac_try="$ac_link"
9591$as_echo "yes" >&6; } 15039case "(($ac_try" in
15040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041 *) ac_try_echo=$ac_try;;
15042esac
15043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15044 (eval "$ac_link") 2>&5
15045 ac_status=$?
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15048 { (case "(($ac_try" in
15049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15050 *) ac_try_echo=$ac_try;;
15051esac
15052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15053 (eval "$ac_try") 2>&5
15054 ac_status=$?
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); }; }; then
15057 { echo "$as_me:$LINENO: result: yes" >&5
15058echo "${ECHO_T}yes" >&6; }
9592else 15059else
15060 echo "$as_me: program exited with status $ac_status" >&5
15061echo "$as_me: failed program was:" >&5
15062sed 's/^/| /' conftest.$ac_ext >&5
15063
15064( exit $ac_status )
9593 15065
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15066 { echo "$as_me:$LINENO: result: no" >&5
9595$as_echo "no" >&6; } 15067echo "${ECHO_T}no" >&6; }
9596 15068
9597$as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h 15069cat >>confdefs.h <<\_ACEOF
15070#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
15071_ACEOF
9598 15072
9599 15073
9600fi 15074fi
9601rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15075rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9602 conftest.$ac_objext conftest.beam conftest.$ac_ext
9603fi 15076fi
9604 15077
9605 15078
9606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5 15079
9607$as_echo_n "checking for /proc/pid/fd directory... " >&6; } 15080{ echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5
15081echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; }
9608if test -d "/proc/$$/fd" ; then 15082if test -d "/proc/$$/fd" ; then
9609 15083
9610$as_echo "#define HAVE_PROC_PID 1" >>confdefs.h 15084cat >>confdefs.h <<\_ACEOF
15085#define HAVE_PROC_PID 1
15086_ACEOF
9611 15087
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15088 { echo "$as_me:$LINENO: result: yes" >&5
9613$as_echo "yes" >&6; } 15089echo "${ECHO_T}yes" >&6; }
9614else 15090else
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15091 { echo "$as_me:$LINENO: result: no" >&5
9616$as_echo "no" >&6; } 15092echo "${ECHO_T}no" >&6; }
9617fi 15093fi
9618 15094
9619# Check whether user wants S/Key support 15095# Check whether user wants S/Key support
9620SKEY_MSG="no" 15096SKEY_MSG="no"
9621 15097
9622# Check whether --with-skey was given. 15098# Check whether --with-skey was given.
9623if test "${with_skey+set}" = set; then : 15099if test "${with_skey+set}" = set; then
9624 withval=$with_skey; 15100 withval=$with_skey;
9625 if test "x$withval" != "xno" ; then 15101 if test "x$withval" != "xno" ; then
9626 15102
@@ -9630,14 +15106,20 @@ if test "${with_skey+set}" = set; then :
9630 fi 15106 fi
9631 15107
9632 15108
9633$as_echo "#define SKEY 1" >>confdefs.h 15109cat >>confdefs.h <<\_ACEOF
15110#define SKEY 1
15111_ACEOF
9634 15112
9635 LIBS="-lskey $LIBS" 15113 LIBS="-lskey $LIBS"
9636 SKEY_MSG="yes" 15114 SKEY_MSG="yes"
9637 15115
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5 15116 { echo "$as_me:$LINENO: checking for s/key support" >&5
9639$as_echo_n "checking for s/key support... " >&6; } 15117echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; }
9640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15118 cat >conftest.$ac_ext <<_ACEOF
15119/* confdefs.h. */
15120_ACEOF
15121cat confdefs.h >>conftest.$ac_ext
15122cat >>conftest.$ac_ext <<_ACEOF
9641/* end confdefs.h. */ 15123/* end confdefs.h. */
9642 15124
9643#include <stdio.h> 15125#include <stdio.h>
@@ -9654,21 +15136,48 @@ main ()
9654 return 0; 15136 return 0;
9655} 15137}
9656_ACEOF 15138_ACEOF
9657if ac_fn_c_try_link "$LINENO"; then : 15139rm -f conftest.$ac_objext conftest$ac_exeext
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15140if { (ac_try="$ac_link"
9659$as_echo "yes" >&6; } 15141case "(($ac_try" in
15142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15143 *) ac_try_echo=$ac_try;;
15144esac
15145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15146 (eval "$ac_link") 2>conftest.er1
15147 ac_status=$?
15148 grep -v '^ *+' conftest.er1 >conftest.err
15149 rm -f conftest.er1
15150 cat conftest.err >&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); } && {
15153 test -z "$ac_c_werror_flag" ||
15154 test ! -s conftest.err
15155 } && test -s conftest$ac_exeext &&
15156 $as_test_x conftest$ac_exeext; then
15157 { echo "$as_me:$LINENO: result: yes" >&5
15158echo "${ECHO_T}yes" >&6; }
9660else 15159else
15160 echo "$as_me: failed program was:" >&5
15161sed 's/^/| /' conftest.$ac_ext >&5
15162
9661 15163
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15164 { echo "$as_me:$LINENO: result: no" >&5
9663$as_echo "no" >&6; } 15165echo "${ECHO_T}no" >&6; }
9664 as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5 15166 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
15167echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
15168 { (exit 1); exit 1; }; }
9665 15169
9666fi 15170fi
9667rm -f core conftest.err conftest.$ac_objext \ 15171
9668 conftest$ac_exeext conftest.$ac_ext 15172rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5 15173 conftest$ac_exeext conftest.$ac_ext
9670$as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; } 15174 { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5
9671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15175echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; }
15176 cat >conftest.$ac_ext <<_ACEOF
15177/* confdefs.h. */
15178_ACEOF
15179cat confdefs.h >>conftest.$ac_ext
15180cat >>conftest.$ac_ext <<_ACEOF
9672/* end confdefs.h. */ 15181/* end confdefs.h. */
9673 15182
9674#include <stdio.h> 15183#include <stdio.h>
@@ -9684,19 +15193,41 @@ main ()
9684 return 0; 15193 return 0;
9685} 15194}
9686_ACEOF 15195_ACEOF
9687if ac_fn_c_try_compile "$LINENO"; then : 15196rm -f conftest.$ac_objext
15197if { (ac_try="$ac_compile"
15198case "(($ac_try" in
15199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15200 *) ac_try_echo=$ac_try;;
15201esac
15202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15203 (eval "$ac_compile") 2>conftest.er1
15204 ac_status=$?
15205 grep -v '^ *+' conftest.er1 >conftest.err
15206 rm -f conftest.er1
15207 cat conftest.err >&5
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); } && {
15210 test -z "$ac_c_werror_flag" ||
15211 test ! -s conftest.err
15212 } && test -s conftest.$ac_objext; then
9688 15213
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15214 { echo "$as_me:$LINENO: result: yes" >&5
9690$as_echo "yes" >&6; } 15215echo "${ECHO_T}yes" >&6; }
9691 15216
9692$as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h 15217cat >>confdefs.h <<\_ACEOF
15218#define SKEYCHALLENGE_4ARG 1
15219_ACEOF
9693 15220
9694else 15221else
15222 echo "$as_me: failed program was:" >&5
15223sed 's/^/| /' conftest.$ac_ext >&5
9695 15224
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15225
9697$as_echo "no" >&6; } 15226 { echo "$as_me:$LINENO: result: no" >&5
15227echo "${ECHO_T}no" >&6; }
9698 15228
9699fi 15229fi
15230
9700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9701 fi 15232 fi
9702 15233
@@ -9708,7 +15239,7 @@ fi
9708LDNS_MSG="no" 15239LDNS_MSG="no"
9709 15240
9710# Check whether --with-ldns was given. 15241# Check whether --with-ldns was given.
9711if test "${with_ldns+set}" = set; then : 15242if test "${with_ldns+set}" = set; then
9712 withval=$with_ldns; 15243 withval=$with_ldns;
9713 if test "x$withval" != "xno" ; then 15244 if test "x$withval" != "xno" ; then
9714 15245
@@ -9718,14 +15249,20 @@ if test "${with_ldns+set}" = set; then :
9718 fi 15249 fi
9719 15250
9720 15251
9721$as_echo "#define HAVE_LDNS 1" >>confdefs.h 15252cat >>confdefs.h <<\_ACEOF
15253#define HAVE_LDNS 1
15254_ACEOF
9722 15255
9723 LIBS="-lldns $LIBS" 15256 LIBS="-lldns $LIBS"
9724 LDNS_MSG="yes" 15257 LDNS_MSG="yes"
9725 15258
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns support" >&5 15259 { echo "$as_me:$LINENO: checking for ldns support" >&5
9727$as_echo_n "checking for ldns support... " >&6; } 15260echo $ECHO_N "checking for ldns support... $ECHO_C" >&6; }
9728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15261 cat >conftest.$ac_ext <<_ACEOF
15262/* confdefs.h. */
15263_ACEOF
15264cat confdefs.h >>conftest.$ac_ext
15265cat >>conftest.$ac_ext <<_ACEOF
9729/* end confdefs.h. */ 15266/* end confdefs.h. */
9730 15267
9731#include <stdio.h> 15268#include <stdio.h>
@@ -9736,18 +15273,41 @@ int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); s
9736 15273
9737 15274
9738_ACEOF 15275_ACEOF
9739if ac_fn_c_try_link "$LINENO"; then : 15276rm -f conftest.$ac_objext conftest$ac_exeext
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15277if { (ac_try="$ac_link"
9741$as_echo "yes" >&6; } 15278case "(($ac_try" in
15279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15280 *) ac_try_echo=$ac_try;;
15281esac
15282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15283 (eval "$ac_link") 2>conftest.er1
15284 ac_status=$?
15285 grep -v '^ *+' conftest.er1 >conftest.err
15286 rm -f conftest.er1
15287 cat conftest.err >&5
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); } && {
15290 test -z "$ac_c_werror_flag" ||
15291 test ! -s conftest.err
15292 } && test -s conftest$ac_exeext &&
15293 $as_test_x conftest$ac_exeext; then
15294 { echo "$as_me:$LINENO: result: yes" >&5
15295echo "${ECHO_T}yes" >&6; }
9742else 15296else
15297 echo "$as_me: failed program was:" >&5
15298sed 's/^/| /' conftest.$ac_ext >&5
15299
9743 15300
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15301 { echo "$as_me:$LINENO: result: no" >&5
9745$as_echo "no" >&6; } 15302echo "${ECHO_T}no" >&6; }
9746 as_fn_error $? "** Incomplete or missing ldns libraries." "$LINENO" 5 15303 { { echo "$as_me:$LINENO: error: ** Incomplete or missing ldns libraries." >&5
15304echo "$as_me: error: ** Incomplete or missing ldns libraries." >&2;}
15305 { (exit 1); exit 1; }; }
9747 15306
9748fi 15307fi
9749rm -f core conftest.err conftest.$ac_objext \ 15308
9750 conftest$ac_exeext conftest.$ac_ext 15309rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15310 conftest$ac_exeext conftest.$ac_ext
9751 fi 15311 fi
9752 15312
9753 15313
@@ -9758,16 +15318,16 @@ fi
9758LIBEDIT_MSG="no" 15318LIBEDIT_MSG="no"
9759 15319
9760# Check whether --with-libedit was given. 15320# Check whether --with-libedit was given.
9761if test "${with_libedit+set}" = set; then : 15321if test "${with_libedit+set}" = set; then
9762 withval=$with_libedit; if test "x$withval" != "xno" ; then 15322 withval=$with_libedit; if test "x$withval" != "xno" ; then
9763 if test "x$withval" = "xyes" ; then 15323 if test "x$withval" = "xyes" ; then
9764 if test -n "$ac_tool_prefix"; then 15324 if test -n "$ac_tool_prefix"; then
9765 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 15325 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9766set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 15326set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15327{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9768$as_echo_n "checking for $ac_word... " >&6; } 15328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9769if ${ac_cv_path_PKGCONFIG+:} false; then : 15329if test "${ac_cv_path_PKGCONFIG+set}" = set; then
9770 $as_echo_n "(cached) " >&6 15330 echo $ECHO_N "(cached) $ECHO_C" >&6
9771else 15331else
9772 case $PKGCONFIG in 15332 case $PKGCONFIG in
9773 [\\/]* | ?:[\\/]*) 15333 [\\/]* | ?:[\\/]*)
@@ -9779,14 +15339,14 @@ for as_dir in $PATH
9779do 15339do
9780 IFS=$as_save_IFS 15340 IFS=$as_save_IFS
9781 test -z "$as_dir" && as_dir=. 15341 test -z "$as_dir" && as_dir=.
9782 for ac_exec_ext in '' $ac_executable_extensions; do 15342 for ac_exec_ext in '' $ac_executable_extensions; do
9783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 15343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9784 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 15344 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
9785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9786 break 2 15346 break 2
9787 fi 15347 fi
9788done 15348done
9789 done 15349done
9790IFS=$as_save_IFS 15350IFS=$as_save_IFS
9791 15351
9792 ;; 15352 ;;
@@ -9794,11 +15354,11 @@ esac
9794fi 15354fi
9795PKGCONFIG=$ac_cv_path_PKGCONFIG 15355PKGCONFIG=$ac_cv_path_PKGCONFIG
9796if test -n "$PKGCONFIG"; then 15356if test -n "$PKGCONFIG"; then
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 15357 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
9798$as_echo "$PKGCONFIG" >&6; } 15358echo "${ECHO_T}$PKGCONFIG" >&6; }
9799else 15359else
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15360 { echo "$as_me:$LINENO: result: no" >&5
9801$as_echo "no" >&6; } 15361echo "${ECHO_T}no" >&6; }
9802fi 15362fi
9803 15363
9804 15364
@@ -9807,10 +15367,10 @@ if test -z "$ac_cv_path_PKGCONFIG"; then
9807 ac_pt_PKGCONFIG=$PKGCONFIG 15367 ac_pt_PKGCONFIG=$PKGCONFIG
9808 # Extract the first word of "pkg-config", so it can be a program name with args. 15368 # Extract the first word of "pkg-config", so it can be a program name with args.
9809set dummy pkg-config; ac_word=$2 15369set dummy pkg-config; ac_word=$2
9810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15370{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9811$as_echo_n "checking for $ac_word... " >&6; } 15371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9812if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : 15372if test "${ac_cv_path_ac_pt_PKGCONFIG+set}" = set; then
9813 $as_echo_n "(cached) " >&6 15373 echo $ECHO_N "(cached) $ECHO_C" >&6
9814else 15374else
9815 case $ac_pt_PKGCONFIG in 15375 case $ac_pt_PKGCONFIG in
9816 [\\/]* | ?:[\\/]*) 15376 [\\/]* | ?:[\\/]*)
@@ -9822,14 +15382,14 @@ for as_dir in $PATH
9822do 15382do
9823 IFS=$as_save_IFS 15383 IFS=$as_save_IFS
9824 test -z "$as_dir" && as_dir=. 15384 test -z "$as_dir" && as_dir=.
9825 for ac_exec_ext in '' $ac_executable_extensions; do 15385 for ac_exec_ext in '' $ac_executable_extensions; do
9826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 15386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9827 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 15387 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
9828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9829 break 2 15389 break 2
9830 fi 15390 fi
9831done 15391done
9832 done 15392done
9833IFS=$as_save_IFS 15393IFS=$as_save_IFS
9834 15394
9835 ;; 15395 ;;
@@ -9837,11 +15397,11 @@ esac
9837fi 15397fi
9838ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 15398ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
9839if test -n "$ac_pt_PKGCONFIG"; then 15399if test -n "$ac_pt_PKGCONFIG"; then
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 15400 { echo "$as_me:$LINENO: result: $ac_pt_PKGCONFIG" >&5
9841$as_echo "$ac_pt_PKGCONFIG" >&6; } 15401echo "${ECHO_T}$ac_pt_PKGCONFIG" >&6; }
9842else 15402else
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15403 { echo "$as_me:$LINENO: result: no" >&5
9844$as_echo "no" >&6; } 15404echo "${ECHO_T}no" >&6; }
9845fi 15405fi
9846 15406
9847 if test "x$ac_pt_PKGCONFIG" = x; then 15407 if test "x$ac_pt_PKGCONFIG" = x; then
@@ -9849,8 +15409,12 @@ fi
9849 else 15409 else
9850 case $cross_compiling:$ac_tool_warned in 15410 case $cross_compiling:$ac_tool_warned in
9851yes:) 15411yes:)
9852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15412{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15413whose name does not start with the host triplet. If you think this
15414configuration is useful to you, please write to autoconf@gnu.org." >&5
15415echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15416whose name does not start with the host triplet. If you think this
15417configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9854ac_tool_warned=yes ;; 15418ac_tool_warned=yes ;;
9855esac 15419esac
9856 PKGCONFIG=$ac_pt_PKGCONFIG 15420 PKGCONFIG=$ac_pt_PKGCONFIG
@@ -9860,15 +15424,15 @@ else
9860fi 15424fi
9861 15425
9862 if test "x$PKGCONFIG" != "xno"; then 15426 if test "x$PKGCONFIG" != "xno"; then
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5 15427 { echo "$as_me:$LINENO: checking if $PKGCONFIG knows about libedit" >&5
9864$as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; } 15428echo $ECHO_N "checking if $PKGCONFIG knows about libedit... $ECHO_C" >&6; }
9865 if "$PKGCONFIG" libedit; then 15429 if "$PKGCONFIG" libedit; then
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15430 { echo "$as_me:$LINENO: result: yes" >&5
9867$as_echo "yes" >&6; } 15431echo "${ECHO_T}yes" >&6; }
9868 use_pkgconfig_for_libedit=yes 15432 use_pkgconfig_for_libedit=yes
9869 else 15433 else
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15434 { echo "$as_me:$LINENO: result: no" >&5
9871$as_echo "no" >&6; } 15435echo "${ECHO_T}no" >&6; }
9872 fi 15436 fi
9873 fi 15437 fi
9874 else 15438 else
@@ -9886,15 +15450,19 @@ $as_echo "no" >&6; }
9886 LIBEDIT="-ledit -lcurses" 15450 LIBEDIT="-ledit -lcurses"
9887 fi 15451 fi
9888 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'` 15452 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5 15453 { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
9890$as_echo_n "checking for el_init in -ledit... " >&6; } 15454echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; }
9891if ${ac_cv_lib_edit_el_init+:} false; then : 15455if test "${ac_cv_lib_edit_el_init+set}" = set; then
9892 $as_echo_n "(cached) " >&6 15456 echo $ECHO_N "(cached) $ECHO_C" >&6
9893else 15457else
9894 ac_check_lib_save_LIBS=$LIBS 15458 ac_check_lib_save_LIBS=$LIBS
9895LIBS="-ledit $OTHERLIBS 15459LIBS="-ledit $OTHERLIBS
9896 $LIBS" 15460 $LIBS"
9897cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15461cat >conftest.$ac_ext <<_ACEOF
15462/* confdefs.h. */
15463_ACEOF
15464cat confdefs.h >>conftest.$ac_ext
15465cat >>conftest.$ac_ext <<_ACEOF
9898/* end confdefs.h. */ 15466/* end confdefs.h. */
9899 15467
9900/* Override any GCC internal prototype to avoid an error. 15468/* Override any GCC internal prototype to avoid an error.
@@ -9912,31 +15480,60 @@ return el_init ();
9912 return 0; 15480 return 0;
9913} 15481}
9914_ACEOF 15482_ACEOF
9915if ac_fn_c_try_link "$LINENO"; then : 15483rm -f conftest.$ac_objext conftest$ac_exeext
15484if { (ac_try="$ac_link"
15485case "(($ac_try" in
15486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15487 *) ac_try_echo=$ac_try;;
15488esac
15489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15490 (eval "$ac_link") 2>conftest.er1
15491 ac_status=$?
15492 grep -v '^ *+' conftest.er1 >conftest.err
15493 rm -f conftest.er1
15494 cat conftest.err >&5
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); } && {
15497 test -z "$ac_c_werror_flag" ||
15498 test ! -s conftest.err
15499 } && test -s conftest$ac_exeext &&
15500 $as_test_x conftest$ac_exeext; then
9916 ac_cv_lib_edit_el_init=yes 15501 ac_cv_lib_edit_el_init=yes
9917else 15502else
9918 ac_cv_lib_edit_el_init=no 15503 echo "$as_me: failed program was:" >&5
15504sed 's/^/| /' conftest.$ac_ext >&5
15505
15506 ac_cv_lib_edit_el_init=no
9919fi 15507fi
9920rm -f core conftest.err conftest.$ac_objext \ 15508
9921 conftest$ac_exeext conftest.$ac_ext 15509rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15510 conftest$ac_exeext conftest.$ac_ext
9922LIBS=$ac_check_lib_save_LIBS 15511LIBS=$ac_check_lib_save_LIBS
9923fi 15512fi
9924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5 15513{ echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5
9925$as_echo "$ac_cv_lib_edit_el_init" >&6; } 15514echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; }
9926if test "x$ac_cv_lib_edit_el_init" = xyes; then : 15515if test $ac_cv_lib_edit_el_init = yes; then
9927 15516
9928$as_echo "#define USE_LIBEDIT 1" >>confdefs.h 15517cat >>confdefs.h <<\_ACEOF
15518#define USE_LIBEDIT 1
15519_ACEOF
9929 15520
9930 LIBEDIT_MSG="yes" 15521 LIBEDIT_MSG="yes"
9931 15522
9932 15523
9933else 15524else
9934 as_fn_error $? "libedit not found" "$LINENO" 5 15525 { { echo "$as_me:$LINENO: error: libedit not found" >&5
15526echo "$as_me: error: libedit not found" >&2;}
15527 { (exit 1); exit 1; }; }
9935fi 15528fi
9936 15529
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5 15530 { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5
9938$as_echo_n "checking if libedit version is compatible... " >&6; } 15531echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; }
9939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15532 cat >conftest.$ac_ext <<_ACEOF
15533/* confdefs.h. */
15534_ACEOF
15535cat confdefs.h >>conftest.$ac_ext
15536cat >>conftest.$ac_ext <<_ACEOF
9940/* end confdefs.h. */ 15537/* end confdefs.h. */
9941 #include <histedit.h> 15538 #include <histedit.h>
9942int 15539int
@@ -9951,15 +15548,37 @@ main ()
9951 return 0; 15548 return 0;
9952} 15549}
9953_ACEOF 15550_ACEOF
9954if ac_fn_c_try_compile "$LINENO"; then : 15551rm -f conftest.$ac_objext
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15552if { (ac_try="$ac_compile"
9956$as_echo "yes" >&6; } 15553case "(($ac_try" in
15554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15555 *) ac_try_echo=$ac_try;;
15556esac
15557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15558 (eval "$ac_compile") 2>conftest.er1
15559 ac_status=$?
15560 grep -v '^ *+' conftest.er1 >conftest.err
15561 rm -f conftest.er1
15562 cat conftest.err >&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); } && {
15565 test -z "$ac_c_werror_flag" ||
15566 test ! -s conftest.err
15567 } && test -s conftest.$ac_objext; then
15568 { echo "$as_me:$LINENO: result: yes" >&5
15569echo "${ECHO_T}yes" >&6; }
9957else 15570else
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15571 echo "$as_me: failed program was:" >&5
9959$as_echo "no" >&6; } 15572sed 's/^/| /' conftest.$ac_ext >&5
9960 as_fn_error $? "libedit version is not compatible" "$LINENO" 5 15573
15574 { echo "$as_me:$LINENO: result: no" >&5
15575echo "${ECHO_T}no" >&6; }
15576 { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5
15577echo "$as_me: error: libedit version is not compatible" >&2;}
15578 { (exit 1); exit 1; }; }
9961 15579
9962fi 15580fi
15581
9963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9964 fi 15583 fi
9965 15584
@@ -9969,43 +15588,95 @@ fi
9969AUDIT_MODULE=none 15588AUDIT_MODULE=none
9970 15589
9971# Check whether --with-audit was given. 15590# Check whether --with-audit was given.
9972if test "${with_audit+set}" = set; then : 15591if test "${with_audit+set}" = set; then
9973 withval=$with_audit; 15592 withval=$with_audit;
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5 15593 { echo "$as_me:$LINENO: checking for supported audit module" >&5
9975$as_echo_n "checking for supported audit module... " >&6; } 15594echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; }
9976 case "$withval" in 15595 case "$withval" in
9977 bsm) 15596 bsm)
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5 15597 { echo "$as_me:$LINENO: result: bsm" >&5
9979$as_echo "bsm" >&6; } 15598echo "${ECHO_T}bsm" >&6; }
9980 AUDIT_MODULE=bsm 15599 AUDIT_MODULE=bsm
9981 for ac_header in bsm/audit.h 15600
9982do : 15601for ac_header in bsm/audit.h
9983 ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" " 15602do
15603as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15604{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15606if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15607 echo $ECHO_N "(cached) $ECHO_C" >&6
15608else
15609 cat >conftest.$ac_ext <<_ACEOF
15610/* confdefs.h. */
15611_ACEOF
15612cat confdefs.h >>conftest.$ac_ext
15613cat >>conftest.$ac_ext <<_ACEOF
15614/* end confdefs.h. */
15615
9984#ifdef HAVE_TIME_H 15616#ifdef HAVE_TIME_H
9985# include <time.h> 15617# include <time.h>
9986#endif 15618#endif
9987 15619
9988 15620
9989" 15621
9990if test "x$ac_cv_header_bsm_audit_h" = xyes; then : 15622#include <$ac_header>
15623_ACEOF
15624rm -f conftest.$ac_objext
15625if { (ac_try="$ac_compile"
15626case "(($ac_try" in
15627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15628 *) ac_try_echo=$ac_try;;
15629esac
15630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15631 (eval "$ac_compile") 2>conftest.er1
15632 ac_status=$?
15633 grep -v '^ *+' conftest.er1 >conftest.err
15634 rm -f conftest.er1
15635 cat conftest.err >&5
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); } && {
15638 test -z "$ac_c_werror_flag" ||
15639 test ! -s conftest.err
15640 } && test -s conftest.$ac_objext; then
15641 eval "$as_ac_Header=yes"
15642else
15643 echo "$as_me: failed program was:" >&5
15644sed 's/^/| /' conftest.$ac_ext >&5
15645
15646 eval "$as_ac_Header=no"
15647fi
15648
15649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15650fi
15651ac_res=`eval echo '${'$as_ac_Header'}'`
15652 { echo "$as_me:$LINENO: result: $ac_res" >&5
15653echo "${ECHO_T}$ac_res" >&6; }
15654if test `eval echo '${'$as_ac_Header'}'` = yes; then
9991 cat >>confdefs.h <<_ACEOF 15655 cat >>confdefs.h <<_ACEOF
9992#define HAVE_BSM_AUDIT_H 1 15656#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9993_ACEOF 15657_ACEOF
9994 15658
9995else 15659else
9996 as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5 15660 { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5
15661echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;}
15662 { (exit 1); exit 1; }; }
9997fi 15663fi
9998 15664
9999done 15665done
10000 15666
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5 15667
10002$as_echo_n "checking for getaudit in -lbsm... " >&6; } 15668{ echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5
10003if ${ac_cv_lib_bsm_getaudit+:} false; then : 15669echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; }
10004 $as_echo_n "(cached) " >&6 15670if test "${ac_cv_lib_bsm_getaudit+set}" = set; then
15671 echo $ECHO_N "(cached) $ECHO_C" >&6
10005else 15672else
10006 ac_check_lib_save_LIBS=$LIBS 15673 ac_check_lib_save_LIBS=$LIBS
10007LIBS="-lbsm $LIBS" 15674LIBS="-lbsm $LIBS"
10008cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15675cat >conftest.$ac_ext <<_ACEOF
15676/* confdefs.h. */
15677_ACEOF
15678cat confdefs.h >>conftest.$ac_ext
15679cat >>conftest.$ac_ext <<_ACEOF
10009/* end confdefs.h. */ 15680/* end confdefs.h. */
10010 15681
10011/* Override any GCC internal prototype to avoid an error. 15682/* Override any GCC internal prototype to avoid an error.
@@ -10023,18 +15694,39 @@ return getaudit ();
10023 return 0; 15694 return 0;
10024} 15695}
10025_ACEOF 15696_ACEOF
10026if ac_fn_c_try_link "$LINENO"; then : 15697rm -f conftest.$ac_objext conftest$ac_exeext
15698if { (ac_try="$ac_link"
15699case "(($ac_try" in
15700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15701 *) ac_try_echo=$ac_try;;
15702esac
15703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15704 (eval "$ac_link") 2>conftest.er1
15705 ac_status=$?
15706 grep -v '^ *+' conftest.er1 >conftest.err
15707 rm -f conftest.er1
15708 cat conftest.err >&5
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); } && {
15711 test -z "$ac_c_werror_flag" ||
15712 test ! -s conftest.err
15713 } && test -s conftest$ac_exeext &&
15714 $as_test_x conftest$ac_exeext; then
10027 ac_cv_lib_bsm_getaudit=yes 15715 ac_cv_lib_bsm_getaudit=yes
10028else 15716else
10029 ac_cv_lib_bsm_getaudit=no 15717 echo "$as_me: failed program was:" >&5
15718sed 's/^/| /' conftest.$ac_ext >&5
15719
15720 ac_cv_lib_bsm_getaudit=no
10030fi 15721fi
10031rm -f core conftest.err conftest.$ac_objext \ 15722
10032 conftest$ac_exeext conftest.$ac_ext 15723rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15724 conftest$ac_exeext conftest.$ac_ext
10033LIBS=$ac_check_lib_save_LIBS 15725LIBS=$ac_check_lib_save_LIBS
10034fi 15726fi
10035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5 15727{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5
10036$as_echo "$ac_cv_lib_bsm_getaudit" >&6; } 15728echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; }
10037if test "x$ac_cv_lib_bsm_getaudit" = xyes; then : 15729if test $ac_cv_lib_bsm_getaudit = yes; then
10038 cat >>confdefs.h <<_ACEOF 15730 cat >>confdefs.h <<_ACEOF
10039#define HAVE_LIBBSM 1 15731#define HAVE_LIBBSM 1
10040_ACEOF 15732_ACEOF
@@ -10042,55 +15734,362 @@ _ACEOF
10042 LIBS="-lbsm $LIBS" 15734 LIBS="-lbsm $LIBS"
10043 15735
10044else 15736else
10045 as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5 15737 { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5
15738echo "$as_me: error: BSM enabled and required library not found" >&2;}
15739 { (exit 1); exit 1; }; }
15740fi
15741
15742
15743for ac_func in getaudit
15744do
15745as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15746{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15747echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15748if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15749 echo $ECHO_N "(cached) $ECHO_C" >&6
15750else
15751 cat >conftest.$ac_ext <<_ACEOF
15752/* confdefs.h. */
15753_ACEOF
15754cat confdefs.h >>conftest.$ac_ext
15755cat >>conftest.$ac_ext <<_ACEOF
15756/* end confdefs.h. */
15757/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15759#define $ac_func innocuous_$ac_func
15760
15761/* System header to define __stub macros and hopefully few prototypes,
15762 which can conflict with char $ac_func (); below.
15763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15764 <limits.h> exists even on freestanding compilers. */
15765
15766#ifdef __STDC__
15767# include <limits.h>
15768#else
15769# include <assert.h>
15770#endif
15771
15772#undef $ac_func
15773
15774/* Override any GCC internal prototype to avoid an error.
15775 Use char because int might match the return type of a GCC
15776 builtin and then its argument prototype would still apply. */
15777#ifdef __cplusplus
15778extern "C"
15779#endif
15780char $ac_func ();
15781/* The GNU C library defines this for functions which it implements
15782 to always fail with ENOSYS. Some functions are actually named
15783 something starting with __ and the normal name is an alias. */
15784#if defined __stub_$ac_func || defined __stub___$ac_func
15785choke me
15786#endif
15787
15788int
15789main ()
15790{
15791return $ac_func ();
15792 ;
15793 return 0;
15794}
15795_ACEOF
15796rm -f conftest.$ac_objext conftest$ac_exeext
15797if { (ac_try="$ac_link"
15798case "(($ac_try" in
15799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15800 *) ac_try_echo=$ac_try;;
15801esac
15802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15803 (eval "$ac_link") 2>conftest.er1
15804 ac_status=$?
15805 grep -v '^ *+' conftest.er1 >conftest.err
15806 rm -f conftest.er1
15807 cat conftest.err >&5
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); } && {
15810 test -z "$ac_c_werror_flag" ||
15811 test ! -s conftest.err
15812 } && test -s conftest$ac_exeext &&
15813 $as_test_x conftest$ac_exeext; then
15814 eval "$as_ac_var=yes"
15815else
15816 echo "$as_me: failed program was:" >&5
15817sed 's/^/| /' conftest.$ac_ext >&5
15818
15819 eval "$as_ac_var=no"
10046fi 15820fi
10047 15821
10048 for ac_func in getaudit 15822rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10049do : 15823 conftest$ac_exeext conftest.$ac_ext
10050 ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit" 15824fi
10051if test "x$ac_cv_func_getaudit" = xyes; then : 15825ac_res=`eval echo '${'$as_ac_var'}'`
15826 { echo "$as_me:$LINENO: result: $ac_res" >&5
15827echo "${ECHO_T}$ac_res" >&6; }
15828if test `eval echo '${'$as_ac_var'}'` = yes; then
10052 cat >>confdefs.h <<_ACEOF 15829 cat >>confdefs.h <<_ACEOF
10053#define HAVE_GETAUDIT 1 15830#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10054_ACEOF 15831_ACEOF
10055 15832
10056else 15833else
10057 as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5 15834 { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5
15835echo "$as_me: error: BSM enabled and required function not found" >&2;}
15836 { (exit 1); exit 1; }; }
10058fi 15837fi
10059done 15838done
10060 15839
10061 # These are optional 15840 # These are optional
10062 for ac_func in getaudit_addr aug_get_machine 15841
10063do : 15842
10064 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15843for ac_func in getaudit_addr aug_get_machine
10065ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15844do
10066if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15845as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15846{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15847echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15848if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15849 echo $ECHO_N "(cached) $ECHO_C" >&6
15850else
15851 cat >conftest.$ac_ext <<_ACEOF
15852/* confdefs.h. */
15853_ACEOF
15854cat confdefs.h >>conftest.$ac_ext
15855cat >>conftest.$ac_ext <<_ACEOF
15856/* end confdefs.h. */
15857/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15859#define $ac_func innocuous_$ac_func
15860
15861/* System header to define __stub macros and hopefully few prototypes,
15862 which can conflict with char $ac_func (); below.
15863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15864 <limits.h> exists even on freestanding compilers. */
15865
15866#ifdef __STDC__
15867# include <limits.h>
15868#else
15869# include <assert.h>
15870#endif
15871
15872#undef $ac_func
15873
15874/* Override any GCC internal prototype to avoid an error.
15875 Use char because int might match the return type of a GCC
15876 builtin and then its argument prototype would still apply. */
15877#ifdef __cplusplus
15878extern "C"
15879#endif
15880char $ac_func ();
15881/* The GNU C library defines this for functions which it implements
15882 to always fail with ENOSYS. Some functions are actually named
15883 something starting with __ and the normal name is an alias. */
15884#if defined __stub_$ac_func || defined __stub___$ac_func
15885choke me
15886#endif
15887
15888int
15889main ()
15890{
15891return $ac_func ();
15892 ;
15893 return 0;
15894}
15895_ACEOF
15896rm -f conftest.$ac_objext conftest$ac_exeext
15897if { (ac_try="$ac_link"
15898case "(($ac_try" in
15899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15900 *) ac_try_echo=$ac_try;;
15901esac
15902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15903 (eval "$ac_link") 2>conftest.er1
15904 ac_status=$?
15905 grep -v '^ *+' conftest.er1 >conftest.err
15906 rm -f conftest.er1
15907 cat conftest.err >&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } && {
15910 test -z "$ac_c_werror_flag" ||
15911 test ! -s conftest.err
15912 } && test -s conftest$ac_exeext &&
15913 $as_test_x conftest$ac_exeext; then
15914 eval "$as_ac_var=yes"
15915else
15916 echo "$as_me: failed program was:" >&5
15917sed 's/^/| /' conftest.$ac_ext >&5
15918
15919 eval "$as_ac_var=no"
15920fi
15921
15922rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15923 conftest$ac_exeext conftest.$ac_ext
15924fi
15925ac_res=`eval echo '${'$as_ac_var'}'`
15926 { echo "$as_me:$LINENO: result: $ac_res" >&5
15927echo "${ECHO_T}$ac_res" >&6; }
15928if test `eval echo '${'$as_ac_var'}'` = yes; then
10067 cat >>confdefs.h <<_ACEOF 15929 cat >>confdefs.h <<_ACEOF
10068#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15930#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10069_ACEOF 15931_ACEOF
10070 15932
10071fi 15933fi
10072done 15934done
10073 15935
10074 15936
10075$as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h 15937cat >>confdefs.h <<\_ACEOF
15938#define USE_BSM_AUDIT 1
15939_ACEOF
10076 15940
10077 if test "$sol2ver" -ge 11; then 15941 if test "$sol2ver" -ge 11; then
10078 SSHDLIBS="$SSHDLIBS -lscf" 15942 SSHDLIBS="$SSHDLIBS -lscf"
10079 15943
10080$as_echo "#define BROKEN_BSM_API 1" >>confdefs.h 15944cat >>confdefs.h <<\_ACEOF
15945#define BROKEN_BSM_API 1
15946_ACEOF
10081 15947
10082 fi 15948 fi
10083 ;; 15949 ;;
10084 linux) 15950 linux)
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5 15951 { echo "$as_me:$LINENO: result: linux" >&5
10086$as_echo "linux" >&6; } 15952echo "${ECHO_T}linux" >&6; }
10087 AUDIT_MODULE=linux 15953 AUDIT_MODULE=linux
10088 for ac_header in libaudit.h 15954
10089do : 15955for ac_header in libaudit.h
10090 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default" 15956do
10091if test "x$ac_cv_header_libaudit_h" = xyes; then : 15957as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15961if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15962 echo $ECHO_N "(cached) $ECHO_C" >&6
15963fi
15964ac_res=`eval echo '${'$as_ac_Header'}'`
15965 { echo "$as_me:$LINENO: result: $ac_res" >&5
15966echo "${ECHO_T}$ac_res" >&6; }
15967else
15968 # Is the header compilable?
15969{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15970echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15971cat >conftest.$ac_ext <<_ACEOF
15972/* confdefs.h. */
15973_ACEOF
15974cat confdefs.h >>conftest.$ac_ext
15975cat >>conftest.$ac_ext <<_ACEOF
15976/* end confdefs.h. */
15977$ac_includes_default
15978#include <$ac_header>
15979_ACEOF
15980rm -f conftest.$ac_objext
15981if { (ac_try="$ac_compile"
15982case "(($ac_try" in
15983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984 *) ac_try_echo=$ac_try;;
15985esac
15986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987 (eval "$ac_compile") 2>conftest.er1
15988 ac_status=$?
15989 grep -v '^ *+' conftest.er1 >conftest.err
15990 rm -f conftest.er1
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } && {
15994 test -z "$ac_c_werror_flag" ||
15995 test ! -s conftest.err
15996 } && test -s conftest.$ac_objext; then
15997 ac_header_compiler=yes
15998else
15999 echo "$as_me: failed program was:" >&5
16000sed 's/^/| /' conftest.$ac_ext >&5
16001
16002 ac_header_compiler=no
16003fi
16004
16005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16006{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16007echo "${ECHO_T}$ac_header_compiler" >&6; }
16008
16009# Is the header present?
16010{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16011echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16012cat >conftest.$ac_ext <<_ACEOF
16013/* confdefs.h. */
16014_ACEOF
16015cat confdefs.h >>conftest.$ac_ext
16016cat >>conftest.$ac_ext <<_ACEOF
16017/* end confdefs.h. */
16018#include <$ac_header>
16019_ACEOF
16020if { (ac_try="$ac_cpp conftest.$ac_ext"
16021case "(($ac_try" in
16022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16023 *) ac_try_echo=$ac_try;;
16024esac
16025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16027 ac_status=$?
16028 grep -v '^ *+' conftest.er1 >conftest.err
16029 rm -f conftest.er1
16030 cat conftest.err >&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); } >/dev/null && {
16033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16034 test ! -s conftest.err
16035 }; then
16036 ac_header_preproc=yes
16037else
16038 echo "$as_me: failed program was:" >&5
16039sed 's/^/| /' conftest.$ac_ext >&5
16040
16041 ac_header_preproc=no
16042fi
16043
16044rm -f conftest.err conftest.$ac_ext
16045{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16046echo "${ECHO_T}$ac_header_preproc" >&6; }
16047
16048# So? What about this header?
16049case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16050 yes:no: )
16051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16052echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16054echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16055 ac_header_preproc=yes
16056 ;;
16057 no:yes:* )
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16059echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16061echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16063echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16065echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16067echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16069echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16070 ( cat <<\_ASBOX
16071## ------------------------------------------- ##
16072## Report this to openssh-unix-dev@mindrot.org ##
16073## ------------------------------------------- ##
16074_ASBOX
16075 ) | sed "s/^/$as_me: WARNING: /" >&2
16076 ;;
16077esac
16078{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16080if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16081 echo $ECHO_N "(cached) $ECHO_C" >&6
16082else
16083 eval "$as_ac_Header=\$ac_header_preproc"
16084fi
16085ac_res=`eval echo '${'$as_ac_Header'}'`
16086 { echo "$as_me:$LINENO: result: $ac_res" >&5
16087echo "${ECHO_T}$ac_res" >&6; }
16088
16089fi
16090if test `eval echo '${'$as_ac_Header'}'` = yes; then
10092 cat >>confdefs.h <<_ACEOF 16091 cat >>confdefs.h <<_ACEOF
10093#define HAVE_LIBAUDIT_H 1 16092#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10094_ACEOF 16093_ACEOF
10095 16094
10096fi 16095fi
@@ -10099,23 +16098,29 @@ done
10099 16098
10100 SSHDLIBS="$SSHDLIBS -laudit" 16099 SSHDLIBS="$SSHDLIBS -laudit"
10101 16100
10102$as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h 16101cat >>confdefs.h <<\_ACEOF
16102#define USE_LINUX_AUDIT 1
16103_ACEOF
10103 16104
10104 ;; 16105 ;;
10105 debug) 16106 debug)
10106 AUDIT_MODULE=debug 16107 AUDIT_MODULE=debug
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5 16108 { echo "$as_me:$LINENO: result: debug" >&5
10108$as_echo "debug" >&6; } 16109echo "${ECHO_T}debug" >&6; }
10109 16110
10110$as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h 16111cat >>confdefs.h <<\_ACEOF
16112#define SSH_AUDIT_EVENTS 1
16113_ACEOF
10111 16114
10112 ;; 16115 ;;
10113 no) 16116 no)
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16117 { echo "$as_me:$LINENO: result: no" >&5
10115$as_echo "no" >&6; } 16118echo "${ECHO_T}no" >&6; }
10116 ;; 16119 ;;
10117 *) 16120 *)
10118 as_fn_error $? "Unknown audit module $withval" "$LINENO" 5 16121 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
16122echo "$as_me: error: Unknown audit module $withval" >&2;}
16123 { (exit 1); exit 1; }; }
10119 ;; 16124 ;;
10120 esac 16125 esac
10121 16126
@@ -10124,7 +16129,7 @@ fi
10124 16129
10125 16130
10126# Check whether --with-pie was given. 16131# Check whether --with-pie was given.
10127if test "${with_pie+set}" = set; then : 16132if test "${with_pie+set}" = set; then
10128 withval=$with_pie; 16133 withval=$with_pie;
10129 if test "x$withval" = "xno"; then 16134 if test "x$withval" = "xno"; then
10130 use_pie=no 16135 use_pie=no
@@ -10145,9 +16150,13 @@ if test "x$use_toolchain_hardening" != "x1" && test "x$use_pie" = "xauto"; then
10145fi 16150fi
10146if test "x$use_pie" = "xauto"; then 16151if test "x$use_pie" = "xauto"; then
10147 # Automatic PIE requires gcc >= 4.x 16152 # Automatic PIE requires gcc >= 4.x
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.x" >&5 16153 { echo "$as_me:$LINENO: checking for gcc >= 4.x" >&5
10149$as_echo_n "checking for gcc >= 4.x... " >&6; } 16154echo $ECHO_N "checking for gcc >= 4.x... $ECHO_C" >&6; }
10150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16155 cat >conftest.$ac_ext <<_ACEOF
16156/* confdefs.h. */
16157_ACEOF
16158cat confdefs.h >>conftest.$ac_ext
16159cat >>conftest.$ac_ext <<_ACEOF
10151/* end confdefs.h. */ 16160/* end confdefs.h. */
10152 16161
10153#if !defined(__GNUC__) || __GNUC__ < 4 16162#if !defined(__GNUC__) || __GNUC__ < 4
@@ -10155,28 +16164,52 @@ $as_echo_n "checking for gcc >= 4.x... " >&6; }
10155#endif 16164#endif
10156 16165
10157_ACEOF 16166_ACEOF
10158if ac_fn_c_try_compile "$LINENO"; then : 16167rm -f conftest.$ac_objext
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16168if { (ac_try="$ac_compile"
10160$as_echo "yes" >&6; } 16169case "(($ac_try" in
16170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16171 *) ac_try_echo=$ac_try;;
16172esac
16173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16174 (eval "$ac_compile") 2>conftest.er1
16175 ac_status=$?
16176 grep -v '^ *+' conftest.er1 >conftest.err
16177 rm -f conftest.er1
16178 cat conftest.err >&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } && {
16181 test -z "$ac_c_werror_flag" ||
16182 test ! -s conftest.err
16183 } && test -s conftest.$ac_objext; then
16184 { echo "$as_me:$LINENO: result: yes" >&5
16185echo "${ECHO_T}yes" >&6; }
10161else 16186else
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16187 echo "$as_me: failed program was:" >&5
10163$as_echo "no" >&6; } 16188sed 's/^/| /' conftest.$ac_ext >&5
16189
16190 { echo "$as_me:$LINENO: result: no" >&5
16191echo "${ECHO_T}no" >&6; }
10164 use_pie=no 16192 use_pie=no
10165 16193
10166fi 16194fi
16195
10167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10168fi 16197fi
10169if test "x$use_pie" != "xno"; then 16198if test "x$use_pie" != "xno"; then
10170 SAVED_CFLAGS="$CFLAGS" 16199 SAVED_CFLAGS="$CFLAGS"
10171 SAVED_LDFLAGS="$LDFLAGS" 16200 SAVED_LDFLAGS="$LDFLAGS"
10172 { 16201 {
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fPIE" >&5 16202 { echo "$as_me:$LINENO: checking if $CC supports compile flag -fPIE" >&5
10174$as_echo_n "checking if $CC supports compile flag -fPIE... " >&6; } 16203echo $ECHO_N "checking if $CC supports compile flag -fPIE... $ECHO_C" >&6; }
10175 saved_CFLAGS="$CFLAGS" 16204 saved_CFLAGS="$CFLAGS"
10176 CFLAGS="$CFLAGS $WERROR -fPIE" 16205 CFLAGS="$CFLAGS $WERROR -fPIE"
10177 _define_flag="" 16206 _define_flag=""
10178 test "x$_define_flag" = "x" && _define_flag="-fPIE" 16207 test "x$_define_flag" = "x" && _define_flag="-fPIE"
10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16208 cat >conftest.$ac_ext <<_ACEOF
16209/* confdefs.h. */
16210_ACEOF
16211cat confdefs.h >>conftest.$ac_ext
16212cat >>conftest.$ac_ext <<_ACEOF
10180/* end confdefs.h. */ 16213/* end confdefs.h. */
10181 16214
10182#include <stdlib.h> 16215#include <stdlib.h>
@@ -10192,34 +16225,58 @@ int main(int argc, char **argv) {
10192} 16225}
10193 16226
10194_ACEOF 16227_ACEOF
10195if ac_fn_c_try_compile "$LINENO"; then : 16228rm -f conftest.$ac_objext
16229if { (ac_try="$ac_compile"
16230case "(($ac_try" in
16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232 *) ac_try_echo=$ac_try;;
16233esac
16234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235 (eval "$ac_compile") 2>conftest.er1
16236 ac_status=$?
16237 grep -v '^ *+' conftest.er1 >conftest.err
16238 rm -f conftest.er1
16239 cat conftest.err >&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); } && {
16242 test -z "$ac_c_werror_flag" ||
16243 test ! -s conftest.err
16244 } && test -s conftest.$ac_objext; then
10196 16245
10197if `grep -i "unrecognized option" conftest.err >/dev/null` 16246if `grep -i "unrecognized option" conftest.err >/dev/null`
10198then 16247then
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16248 { echo "$as_me:$LINENO: result: no" >&5
10200$as_echo "no" >&6; } 16249echo "${ECHO_T}no" >&6; }
10201 CFLAGS="$saved_CFLAGS" 16250 CFLAGS="$saved_CFLAGS"
10202else 16251else
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16252 { echo "$as_me:$LINENO: result: yes" >&5
10204$as_echo "yes" >&6; } 16253echo "${ECHO_T}yes" >&6; }
10205 CFLAGS="$saved_CFLAGS $_define_flag" 16254 CFLAGS="$saved_CFLAGS $_define_flag"
10206fi 16255fi
10207else 16256else
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16257 echo "$as_me: failed program was:" >&5
10209$as_echo "no" >&6; } 16258sed 's/^/| /' conftest.$ac_ext >&5
16259
16260 { echo "$as_me:$LINENO: result: no" >&5
16261echo "${ECHO_T}no" >&6; }
10210 CFLAGS="$saved_CFLAGS" 16262 CFLAGS="$saved_CFLAGS"
10211 16263
10212fi 16264fi
16265
10213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10214} 16267}
10215 { 16268 {
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -pie" >&5 16269 { echo "$as_me:$LINENO: checking if $LD supports link flag -pie" >&5
10217$as_echo_n "checking if $LD supports link flag -pie... " >&6; } 16270echo $ECHO_N "checking if $LD supports link flag -pie... $ECHO_C" >&6; }
10218 saved_LDFLAGS="$LDFLAGS" 16271 saved_LDFLAGS="$LDFLAGS"
10219 LDFLAGS="$LDFLAGS $WERROR -pie" 16272 LDFLAGS="$LDFLAGS $WERROR -pie"
10220 _define_flag="" 16273 _define_flag=""
10221 test "x$_define_flag" = "x" && _define_flag="-pie" 16274 test "x$_define_flag" = "x" && _define_flag="-pie"
10222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16275 cat >conftest.$ac_ext <<_ACEOF
16276/* confdefs.h. */
16277_ACEOF
16278cat confdefs.h >>conftest.$ac_ext
16279cat >>conftest.$ac_ext <<_ACEOF
10223/* end confdefs.h. */ 16280/* end confdefs.h. */
10224 16281
10225#include <stdlib.h> 16282#include <stdlib.h>
@@ -10235,34 +16292,164 @@ int main(int argc, char **argv) {
10235} 16292}
10236 16293
10237_ACEOF 16294_ACEOF
10238if ac_fn_c_try_link "$LINENO"; then : 16295rm -f conftest.$ac_objext conftest$ac_exeext
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16296if { (ac_try="$ac_link"
10240$as_echo "yes" >&6; } 16297case "(($ac_try" in
16298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299 *) ac_try_echo=$ac_try;;
16300esac
16301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302 (eval "$ac_link") 2>conftest.er1
16303 ac_status=$?
16304 grep -v '^ *+' conftest.er1 >conftest.err
16305 rm -f conftest.er1
16306 cat conftest.err >&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } && {
16309 test -z "$ac_c_werror_flag" ||
16310 test ! -s conftest.err
16311 } && test -s conftest$ac_exeext &&
16312 $as_test_x conftest$ac_exeext; then
16313 { echo "$as_me:$LINENO: result: yes" >&5
16314echo "${ECHO_T}yes" >&6; }
10241 LDFLAGS="$saved_LDFLAGS $_define_flag" 16315 LDFLAGS="$saved_LDFLAGS $_define_flag"
10242else 16316else
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16317 echo "$as_me: failed program was:" >&5
10244$as_echo "no" >&6; } 16318sed 's/^/| /' conftest.$ac_ext >&5
16319
16320 { echo "$as_me:$LINENO: result: no" >&5
16321echo "${ECHO_T}no" >&6; }
10245 LDFLAGS="$saved_LDFLAGS" 16322 LDFLAGS="$saved_LDFLAGS"
10246 16323
10247fi 16324fi
10248rm -f core conftest.err conftest.$ac_objext \ 16325
10249 conftest$ac_exeext conftest.$ac_ext 16326rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16327 conftest$ac_exeext conftest.$ac_ext
10250} 16328}
10251 # We use both -fPIE and -pie or neither. 16329 # We use both -fPIE and -pie or neither.
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether both -fPIE and -pie are supported" >&5 16330 { echo "$as_me:$LINENO: checking whether both -fPIE and -pie are supported" >&5
10253$as_echo_n "checking whether both -fPIE and -pie are supported... " >&6; } 16331echo $ECHO_N "checking whether both -fPIE and -pie are supported... $ECHO_C" >&6; }
10254 if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \ 16332 if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \
10255 echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then 16333 echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16334 { echo "$as_me:$LINENO: result: yes" >&5
10257$as_echo "yes" >&6; } 16335echo "${ECHO_T}yes" >&6; }
10258 else 16336 else
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16337 { echo "$as_me:$LINENO: result: no" >&5
10260$as_echo "no" >&6; } 16338echo "${ECHO_T}no" >&6; }
10261 CFLAGS="$SAVED_CFLAGS" 16339 CFLAGS="$SAVED_CFLAGS"
10262 LDFLAGS="$SAVED_LDFLAGS" 16340 LDFLAGS="$SAVED_LDFLAGS"
10263 fi 16341 fi
10264fi 16342fi
10265 16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
10266for ac_func in \ 16453for ac_func in \
10267 Blowfish_initstate \ 16454 Blowfish_initstate \
10268 Blowfish_expandstate \ 16455 Blowfish_expandstate \
@@ -10322,6 +16509,7 @@ for ac_func in \
10322 prctl \ 16509 prctl \
10323 pstat \ 16510 pstat \
10324 readpassphrase \ 16511 readpassphrase \
16512 reallocarray \
10325 realpath \ 16513 realpath \
10326 recvmsg \ 16514 recvmsg \
10327 rresvport_af \ 16515 rresvport_af \
@@ -10373,19 +16561,104 @@ for ac_func in \
10373 vsnprintf \ 16561 vsnprintf \
10374 waitpid \ 16562 waitpid \
10375 16563
10376do : 16564do
10377 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16565as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10378ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16566{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10379if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16567echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16568if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16569 echo $ECHO_N "(cached) $ECHO_C" >&6
16570else
16571 cat >conftest.$ac_ext <<_ACEOF
16572/* confdefs.h. */
16573_ACEOF
16574cat confdefs.h >>conftest.$ac_ext
16575cat >>conftest.$ac_ext <<_ACEOF
16576/* end confdefs.h. */
16577/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16579#define $ac_func innocuous_$ac_func
16580
16581/* System header to define __stub macros and hopefully few prototypes,
16582 which can conflict with char $ac_func (); below.
16583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16584 <limits.h> exists even on freestanding compilers. */
16585
16586#ifdef __STDC__
16587# include <limits.h>
16588#else
16589# include <assert.h>
16590#endif
16591
16592#undef $ac_func
16593
16594/* Override any GCC internal prototype to avoid an error.
16595 Use char because int might match the return type of a GCC
16596 builtin and then its argument prototype would still apply. */
16597#ifdef __cplusplus
16598extern "C"
16599#endif
16600char $ac_func ();
16601/* The GNU C library defines this for functions which it implements
16602 to always fail with ENOSYS. Some functions are actually named
16603 something starting with __ and the normal name is an alias. */
16604#if defined __stub_$ac_func || defined __stub___$ac_func
16605choke me
16606#endif
16607
16608int
16609main ()
16610{
16611return $ac_func ();
16612 ;
16613 return 0;
16614}
16615_ACEOF
16616rm -f conftest.$ac_objext conftest$ac_exeext
16617if { (ac_try="$ac_link"
16618case "(($ac_try" in
16619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16620 *) ac_try_echo=$ac_try;;
16621esac
16622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16623 (eval "$ac_link") 2>conftest.er1
16624 ac_status=$?
16625 grep -v '^ *+' conftest.er1 >conftest.err
16626 rm -f conftest.er1
16627 cat conftest.err >&5
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); } && {
16630 test -z "$ac_c_werror_flag" ||
16631 test ! -s conftest.err
16632 } && test -s conftest$ac_exeext &&
16633 $as_test_x conftest$ac_exeext; then
16634 eval "$as_ac_var=yes"
16635else
16636 echo "$as_me: failed program was:" >&5
16637sed 's/^/| /' conftest.$ac_ext >&5
16638
16639 eval "$as_ac_var=no"
16640fi
16641
16642rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16643 conftest$ac_exeext conftest.$ac_ext
16644fi
16645ac_res=`eval echo '${'$as_ac_var'}'`
16646 { echo "$as_me:$LINENO: result: $ac_res" >&5
16647echo "${ECHO_T}$ac_res" >&6; }
16648if test `eval echo '${'$as_ac_var'}'` = yes; then
10380 cat >>confdefs.h <<_ACEOF 16649 cat >>confdefs.h <<_ACEOF
10381#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16650#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10382_ACEOF 16651_ACEOF
10383 16652
10384fi 16653fi
10385done 16654done
10386 16655
10387 16656
10388cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16657cat >conftest.$ac_ext <<_ACEOF
16658/* confdefs.h. */
16659_ACEOF
16660cat confdefs.h >>conftest.$ac_ext
16661cat >>conftest.$ac_ext <<_ACEOF
10389/* end confdefs.h. */ 16662/* end confdefs.h. */
10390 #include <ctype.h> 16663 #include <ctype.h>
10391int 16664int
@@ -10396,23 +16669,54 @@ main ()
10396 return 0; 16669 return 0;
10397} 16670}
10398_ACEOF 16671_ACEOF
10399if ac_fn_c_try_link "$LINENO"; then : 16672rm -f conftest.$ac_objext conftest$ac_exeext
16673if { (ac_try="$ac_link"
16674case "(($ac_try" in
16675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676 *) ac_try_echo=$ac_try;;
16677esac
16678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679 (eval "$ac_link") 2>conftest.er1
16680 ac_status=$?
16681 grep -v '^ *+' conftest.er1 >conftest.err
16682 rm -f conftest.er1
16683 cat conftest.err >&5
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); } && {
16686 test -z "$ac_c_werror_flag" ||
16687 test ! -s conftest.err
16688 } && test -s conftest$ac_exeext &&
16689 $as_test_x conftest$ac_exeext; then
16690
16691cat >>confdefs.h <<\_ACEOF
16692#define HAVE_ISBLANK 1
16693_ACEOF
10400 16694
10401$as_echo "#define HAVE_ISBLANK 1" >>confdefs.h 16695
16696else
16697 echo "$as_me: failed program was:" >&5
16698sed 's/^/| /' conftest.$ac_ext >&5
10402 16699
10403 16700
10404fi 16701fi
10405rm -f core conftest.err conftest.$ac_objext \
10406 conftest$ac_exeext conftest.$ac_ext
10407 16702
10408# PKCS#11 support requires dlopen() and co 16703rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 16704 conftest$ac_exeext conftest.$ac_ext
10410$as_echo_n "checking for library containing dlopen... " >&6; } 16705
10411if ${ac_cv_search_dlopen+:} false; then : 16706# PKCS11 depends on OpenSSL.
10412 $as_echo_n "(cached) " >&6 16707if test "x$openssl" = "xyes" ; then
16708 # PKCS#11 support requires dlopen() and co
16709 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16710echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16711if test "${ac_cv_search_dlopen+set}" = set; then
16712 echo $ECHO_N "(cached) $ECHO_C" >&6
10413else 16713else
10414 ac_func_search_save_LIBS=$LIBS 16714 ac_func_search_save_LIBS=$LIBS
10415cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16715cat >conftest.$ac_ext <<_ACEOF
16716/* confdefs.h. */
16717_ACEOF
16718cat confdefs.h >>conftest.$ac_ext
16719cat >>conftest.$ac_ext <<_ACEOF
10416/* end confdefs.h. */ 16720/* end confdefs.h. */
10417 16721
10418/* Override any GCC internal prototype to avoid an error. 16722/* Override any GCC internal prototype to avoid an error.
@@ -10437,47 +16741,162 @@ for ac_lib in '' dl; do
10437 ac_res=-l$ac_lib 16741 ac_res=-l$ac_lib
10438 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10439 fi 16743 fi
10440 if ac_fn_c_try_link "$LINENO"; then : 16744 rm -f conftest.$ac_objext conftest$ac_exeext
16745if { (ac_try="$ac_link"
16746case "(($ac_try" in
16747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16748 *) ac_try_echo=$ac_try;;
16749esac
16750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16751 (eval "$ac_link") 2>conftest.er1
16752 ac_status=$?
16753 grep -v '^ *+' conftest.er1 >conftest.err
16754 rm -f conftest.er1
16755 cat conftest.err >&5
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); } && {
16758 test -z "$ac_c_werror_flag" ||
16759 test ! -s conftest.err
16760 } && test -s conftest$ac_exeext &&
16761 $as_test_x conftest$ac_exeext; then
10441 ac_cv_search_dlopen=$ac_res 16762 ac_cv_search_dlopen=$ac_res
16763else
16764 echo "$as_me: failed program was:" >&5
16765sed 's/^/| /' conftest.$ac_ext >&5
16766
16767
10442fi 16768fi
10443rm -f core conftest.err conftest.$ac_objext \ 16769
10444 conftest$ac_exeext 16770rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10445 if ${ac_cv_search_dlopen+:} false; then : 16771 conftest$ac_exeext
16772 if test "${ac_cv_search_dlopen+set}" = set; then
10446 break 16773 break
10447fi 16774fi
10448done 16775done
10449if ${ac_cv_search_dlopen+:} false; then : 16776if test "${ac_cv_search_dlopen+set}" = set; then
10450 16777 :
10451else 16778else
10452 ac_cv_search_dlopen=no 16779 ac_cv_search_dlopen=no
10453fi 16780fi
10454rm conftest.$ac_ext 16781rm conftest.$ac_ext
10455LIBS=$ac_func_search_save_LIBS 16782LIBS=$ac_func_search_save_LIBS
10456fi 16783fi
10457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 16784{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
10458$as_echo "$ac_cv_search_dlopen" >&6; } 16785echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
10459ac_res=$ac_cv_search_dlopen 16786ac_res=$ac_cv_search_dlopen
10460if test "$ac_res" != no; then : 16787if test "$ac_res" != no; then
10461 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16788 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10462 16789
10463$as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h 16790cat >>confdefs.h <<\_ACEOF
16791#define ENABLE_PKCS11
16792_ACEOF
10464 16793
10465 16794
10466fi 16795fi
10467 16796
16797fi
10468 16798
10469# IRIX has a const char return value for gai_strerror() 16799# IRIX has a const char return value for gai_strerror()
16800
10470for ac_func in gai_strerror 16801for ac_func in gai_strerror
10471do : 16802do
10472 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" 16803as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10473if test "x$ac_cv_func_gai_strerror" = xyes; then : 16804{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16805echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16806if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16807 echo $ECHO_N "(cached) $ECHO_C" >&6
16808else
16809 cat >conftest.$ac_ext <<_ACEOF
16810/* confdefs.h. */
16811_ACEOF
16812cat confdefs.h >>conftest.$ac_ext
16813cat >>conftest.$ac_ext <<_ACEOF
16814/* end confdefs.h. */
16815/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16817#define $ac_func innocuous_$ac_func
16818
16819/* System header to define __stub macros and hopefully few prototypes,
16820 which can conflict with char $ac_func (); below.
16821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16822 <limits.h> exists even on freestanding compilers. */
16823
16824#ifdef __STDC__
16825# include <limits.h>
16826#else
16827# include <assert.h>
16828#endif
16829
16830#undef $ac_func
16831
16832/* Override any GCC internal prototype to avoid an error.
16833 Use char because int might match the return type of a GCC
16834 builtin and then its argument prototype would still apply. */
16835#ifdef __cplusplus
16836extern "C"
16837#endif
16838char $ac_func ();
16839/* The GNU C library defines this for functions which it implements
16840 to always fail with ENOSYS. Some functions are actually named
16841 something starting with __ and the normal name is an alias. */
16842#if defined __stub_$ac_func || defined __stub___$ac_func
16843choke me
16844#endif
16845
16846int
16847main ()
16848{
16849return $ac_func ();
16850 ;
16851 return 0;
16852}
16853_ACEOF
16854rm -f conftest.$ac_objext conftest$ac_exeext
16855if { (ac_try="$ac_link"
16856case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16859esac
16860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_link") 2>conftest.er1
16862 ac_status=$?
16863 grep -v '^ *+' conftest.er1 >conftest.err
16864 rm -f conftest.er1
16865 cat conftest.err >&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } && {
16868 test -z "$ac_c_werror_flag" ||
16869 test ! -s conftest.err
16870 } && test -s conftest$ac_exeext &&
16871 $as_test_x conftest$ac_exeext; then
16872 eval "$as_ac_var=yes"
16873else
16874 echo "$as_me: failed program was:" >&5
16875sed 's/^/| /' conftest.$ac_ext >&5
16876
16877 eval "$as_ac_var=no"
16878fi
16879
16880rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16881 conftest$ac_exeext conftest.$ac_ext
16882fi
16883ac_res=`eval echo '${'$as_ac_var'}'`
16884 { echo "$as_me:$LINENO: result: $ac_res" >&5
16885echo "${ECHO_T}$ac_res" >&6; }
16886if test `eval echo '${'$as_ac_var'}'` = yes; then
10474 cat >>confdefs.h <<_ACEOF 16887 cat >>confdefs.h <<_ACEOF
10475#define HAVE_GAI_STRERROR 1 16888#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10476_ACEOF 16889_ACEOF
10477 16890
10478 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h 16891 cat >>confdefs.h <<\_ACEOF
16892#define HAVE_GAI_STRERROR 1
16893_ACEOF
10479 16894
10480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16895 cat >conftest.$ac_ext <<_ACEOF
16896/* confdefs.h. */
16897_ACEOF
16898cat confdefs.h >>conftest.$ac_ext
16899cat >>conftest.$ac_ext <<_ACEOF
10481/* end confdefs.h. */ 16900/* end confdefs.h. */
10482 16901
10483#include <sys/types.h> 16902#include <sys/types.h>
@@ -10497,24 +16916,52 @@ main ()
10497 return 0; 16916 return 0;
10498} 16917}
10499_ACEOF 16918_ACEOF
10500if ac_fn_c_try_compile "$LINENO"; then : 16919rm -f conftest.$ac_objext
16920if { (ac_try="$ac_compile"
16921case "(($ac_try" in
16922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923 *) ac_try_echo=$ac_try;;
16924esac
16925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926 (eval "$ac_compile") 2>conftest.er1
16927 ac_status=$?
16928 grep -v '^ *+' conftest.er1 >conftest.err
16929 rm -f conftest.er1
16930 cat conftest.err >&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); } && {
16933 test -z "$ac_c_werror_flag" ||
16934 test ! -s conftest.err
16935 } && test -s conftest.$ac_objext; then
16936
16937
16938cat >>confdefs.h <<\_ACEOF
16939#define HAVE_CONST_GAI_STRERROR_PROTO 1
16940_ACEOF
10501 16941
16942else
16943 echo "$as_me: failed program was:" >&5
16944sed 's/^/| /' conftest.$ac_ext >&5
10502 16945
10503$as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
10504 16946
10505fi 16947fi
16948
10506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10507fi 16950fi
10508done 16951done
10509 16952
10510 16953
10511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 16954{ echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
10512$as_echo_n "checking for library containing nanosleep... " >&6; } 16955echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
10513if ${ac_cv_search_nanosleep+:} false; then : 16956if test "${ac_cv_search_nanosleep+set}" = set; then
10514 $as_echo_n "(cached) " >&6 16957 echo $ECHO_N "(cached) $ECHO_C" >&6
10515else 16958else
10516 ac_func_search_save_LIBS=$LIBS 16959 ac_func_search_save_LIBS=$LIBS
10517cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16960cat >conftest.$ac_ext <<_ACEOF
16961/* confdefs.h. */
16962_ACEOF
16963cat confdefs.h >>conftest.$ac_ext
16964cat >>conftest.$ac_ext <<_ACEOF
10518/* end confdefs.h. */ 16965/* end confdefs.h. */
10519 16966
10520/* Override any GCC internal prototype to avoid an error. 16967/* Override any GCC internal prototype to avoid an error.
@@ -10539,41 +16986,70 @@ for ac_lib in '' rt posix4; do
10539 ac_res=-l$ac_lib 16986 ac_res=-l$ac_lib
10540 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16987 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10541 fi 16988 fi
10542 if ac_fn_c_try_link "$LINENO"; then : 16989 rm -f conftest.$ac_objext conftest$ac_exeext
16990if { (ac_try="$ac_link"
16991case "(($ac_try" in
16992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993 *) ac_try_echo=$ac_try;;
16994esac
16995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16996 (eval "$ac_link") 2>conftest.er1
16997 ac_status=$?
16998 grep -v '^ *+' conftest.er1 >conftest.err
16999 rm -f conftest.er1
17000 cat conftest.err >&5
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); } && {
17003 test -z "$ac_c_werror_flag" ||
17004 test ! -s conftest.err
17005 } && test -s conftest$ac_exeext &&
17006 $as_test_x conftest$ac_exeext; then
10543 ac_cv_search_nanosleep=$ac_res 17007 ac_cv_search_nanosleep=$ac_res
17008else
17009 echo "$as_me: failed program was:" >&5
17010sed 's/^/| /' conftest.$ac_ext >&5
17011
17012
10544fi 17013fi
10545rm -f core conftest.err conftest.$ac_objext \ 17014
10546 conftest$ac_exeext 17015rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10547 if ${ac_cv_search_nanosleep+:} false; then : 17016 conftest$ac_exeext
17017 if test "${ac_cv_search_nanosleep+set}" = set; then
10548 break 17018 break
10549fi 17019fi
10550done 17020done
10551if ${ac_cv_search_nanosleep+:} false; then : 17021if test "${ac_cv_search_nanosleep+set}" = set; then
10552 17022 :
10553else 17023else
10554 ac_cv_search_nanosleep=no 17024 ac_cv_search_nanosleep=no
10555fi 17025fi
10556rm conftest.$ac_ext 17026rm conftest.$ac_ext
10557LIBS=$ac_func_search_save_LIBS 17027LIBS=$ac_func_search_save_LIBS
10558fi 17028fi
10559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 17029{ echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
10560$as_echo "$ac_cv_search_nanosleep" >&6; } 17030echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
10561ac_res=$ac_cv_search_nanosleep 17031ac_res=$ac_cv_search_nanosleep
10562if test "$ac_res" != no; then : 17032if test "$ac_res" != no; then
10563 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17033 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10564 17034
10565$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h 17035cat >>confdefs.h <<\_ACEOF
17036#define HAVE_NANOSLEEP 1
17037_ACEOF
10566 17038
10567fi 17039fi
10568 17040
10569 17041
10570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 17042{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
10571$as_echo_n "checking for library containing clock_gettime... " >&6; } 17043echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
10572if ${ac_cv_search_clock_gettime+:} false; then : 17044if test "${ac_cv_search_clock_gettime+set}" = set; then
10573 $as_echo_n "(cached) " >&6 17045 echo $ECHO_N "(cached) $ECHO_C" >&6
10574else 17046else
10575 ac_func_search_save_LIBS=$LIBS 17047 ac_func_search_save_LIBS=$LIBS
10576cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17048cat >conftest.$ac_ext <<_ACEOF
17049/* confdefs.h. */
17050_ACEOF
17051cat confdefs.h >>conftest.$ac_ext
17052cat >>conftest.$ac_ext <<_ACEOF
10577/* end confdefs.h. */ 17053/* end confdefs.h. */
10578 17054
10579/* Override any GCC internal prototype to avoid an error. 17055/* Override any GCC internal prototype to avoid an error.
@@ -10598,42 +17074,201 @@ for ac_lib in '' rt; do
10598 ac_res=-l$ac_lib 17074 ac_res=-l$ac_lib
10599 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17075 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10600 fi 17076 fi
10601 if ac_fn_c_try_link "$LINENO"; then : 17077 rm -f conftest.$ac_objext conftest$ac_exeext
17078if { (ac_try="$ac_link"
17079case "(($ac_try" in
17080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081 *) ac_try_echo=$ac_try;;
17082esac
17083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17084 (eval "$ac_link") 2>conftest.er1
17085 ac_status=$?
17086 grep -v '^ *+' conftest.er1 >conftest.err
17087 rm -f conftest.er1
17088 cat conftest.err >&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); } && {
17091 test -z "$ac_c_werror_flag" ||
17092 test ! -s conftest.err
17093 } && test -s conftest$ac_exeext &&
17094 $as_test_x conftest$ac_exeext; then
10602 ac_cv_search_clock_gettime=$ac_res 17095 ac_cv_search_clock_gettime=$ac_res
17096else
17097 echo "$as_me: failed program was:" >&5
17098sed 's/^/| /' conftest.$ac_ext >&5
17099
17100
10603fi 17101fi
10604rm -f core conftest.err conftest.$ac_objext \ 17102
10605 conftest$ac_exeext 17103rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10606 if ${ac_cv_search_clock_gettime+:} false; then : 17104 conftest$ac_exeext
17105 if test "${ac_cv_search_clock_gettime+set}" = set; then
10607 break 17106 break
10608fi 17107fi
10609done 17108done
10610if ${ac_cv_search_clock_gettime+:} false; then : 17109if test "${ac_cv_search_clock_gettime+set}" = set; then
10611 17110 :
10612else 17111else
10613 ac_cv_search_clock_gettime=no 17112 ac_cv_search_clock_gettime=no
10614fi 17113fi
10615rm conftest.$ac_ext 17114rm conftest.$ac_ext
10616LIBS=$ac_func_search_save_LIBS 17115LIBS=$ac_func_search_save_LIBS
10617fi 17116fi
10618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 17117{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
10619$as_echo "$ac_cv_search_clock_gettime" >&6; } 17118echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
10620ac_res=$ac_cv_search_clock_gettime 17119ac_res=$ac_cv_search_clock_gettime
10621if test "$ac_res" != no; then : 17120if test "$ac_res" != no; then
10622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17121 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10623 17122
10624$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 17123cat >>confdefs.h <<\_ACEOF
17124#define HAVE_CLOCK_GETTIME 1
17125_ACEOF
10625 17126
10626fi 17127fi
10627 17128
10628 17129
10629ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default" 17130{ echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
10630if test "x$ac_cv_have_decl_getrusage" = xyes; then : 17131echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; }
10631 for ac_func in getrusage 17132if test "${ac_cv_have_decl_getrusage+set}" = set; then
10632do : 17133 echo $ECHO_N "(cached) $ECHO_C" >&6
10633 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage" 17134else
10634if test "x$ac_cv_func_getrusage" = xyes; then : 17135 cat >conftest.$ac_ext <<_ACEOF
17136/* confdefs.h. */
17137_ACEOF
17138cat confdefs.h >>conftest.$ac_ext
17139cat >>conftest.$ac_ext <<_ACEOF
17140/* end confdefs.h. */
17141$ac_includes_default
17142int
17143main ()
17144{
17145#ifndef getrusage
17146 (void) getrusage;
17147#endif
17148
17149 ;
17150 return 0;
17151}
17152_ACEOF
17153rm -f conftest.$ac_objext
17154if { (ac_try="$ac_compile"
17155case "(($ac_try" in
17156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157 *) ac_try_echo=$ac_try;;
17158esac
17159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160 (eval "$ac_compile") 2>conftest.er1
17161 ac_status=$?
17162 grep -v '^ *+' conftest.er1 >conftest.err
17163 rm -f conftest.er1
17164 cat conftest.err >&5
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); } && {
17167 test -z "$ac_c_werror_flag" ||
17168 test ! -s conftest.err
17169 } && test -s conftest.$ac_objext; then
17170 ac_cv_have_decl_getrusage=yes
17171else
17172 echo "$as_me: failed program was:" >&5
17173sed 's/^/| /' conftest.$ac_ext >&5
17174
17175 ac_cv_have_decl_getrusage=no
17176fi
17177
17178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17179fi
17180{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
17181echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; }
17182if test $ac_cv_have_decl_getrusage = yes; then
17183
17184for ac_func in getrusage
17185do
17186as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17187{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17188echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17189if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17190 echo $ECHO_N "(cached) $ECHO_C" >&6
17191else
17192 cat >conftest.$ac_ext <<_ACEOF
17193/* confdefs.h. */
17194_ACEOF
17195cat confdefs.h >>conftest.$ac_ext
17196cat >>conftest.$ac_ext <<_ACEOF
17197/* end confdefs.h. */
17198/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17200#define $ac_func innocuous_$ac_func
17201
17202/* System header to define __stub macros and hopefully few prototypes,
17203 which can conflict with char $ac_func (); below.
17204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17205 <limits.h> exists even on freestanding compilers. */
17206
17207#ifdef __STDC__
17208# include <limits.h>
17209#else
17210# include <assert.h>
17211#endif
17212
17213#undef $ac_func
17214
17215/* Override any GCC internal prototype to avoid an error.
17216 Use char because int might match the return type of a GCC
17217 builtin and then its argument prototype would still apply. */
17218#ifdef __cplusplus
17219extern "C"
17220#endif
17221char $ac_func ();
17222/* The GNU C library defines this for functions which it implements
17223 to always fail with ENOSYS. Some functions are actually named
17224 something starting with __ and the normal name is an alias. */
17225#if defined __stub_$ac_func || defined __stub___$ac_func
17226choke me
17227#endif
17228
17229int
17230main ()
17231{
17232return $ac_func ();
17233 ;
17234 return 0;
17235}
17236_ACEOF
17237rm -f conftest.$ac_objext conftest$ac_exeext
17238if { (ac_try="$ac_link"
17239case "(($ac_try" in
17240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17241 *) ac_try_echo=$ac_try;;
17242esac
17243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17244 (eval "$ac_link") 2>conftest.er1
17245 ac_status=$?
17246 grep -v '^ *+' conftest.er1 >conftest.err
17247 rm -f conftest.er1
17248 cat conftest.err >&5
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); } && {
17251 test -z "$ac_c_werror_flag" ||
17252 test ! -s conftest.err
17253 } && test -s conftest$ac_exeext &&
17254 $as_test_x conftest$ac_exeext; then
17255 eval "$as_ac_var=yes"
17256else
17257 echo "$as_me: failed program was:" >&5
17258sed 's/^/| /' conftest.$ac_ext >&5
17259
17260 eval "$as_ac_var=no"
17261fi
17262
17263rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17264 conftest$ac_exeext conftest.$ac_ext
17265fi
17266ac_res=`eval echo '${'$as_ac_var'}'`
17267 { echo "$as_me:$LINENO: result: $ac_res" >&5
17268echo "${ECHO_T}$ac_res" >&6; }
17269if test `eval echo '${'$as_ac_var'}'` = yes; then
10635 cat >>confdefs.h <<_ACEOF 17270 cat >>confdefs.h <<_ACEOF
10636#define HAVE_GETRUSAGE 1 17271#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10637_ACEOF 17272_ACEOF
10638 17273
10639fi 17274fi
@@ -10641,19 +17276,153 @@ done
10641 17276
10642fi 17277fi
10643 17278
10644ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" " 17279{ echo "$as_me:$LINENO: checking whether strsep is declared" >&5
17280echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; }
17281if test "${ac_cv_have_decl_strsep+set}" = set; then
17282 echo $ECHO_N "(cached) $ECHO_C" >&6
17283else
17284 cat >conftest.$ac_ext <<_ACEOF
17285/* confdefs.h. */
17286_ACEOF
17287cat confdefs.h >>conftest.$ac_ext
17288cat >>conftest.$ac_ext <<_ACEOF
17289/* end confdefs.h. */
17290
10645#ifdef HAVE_STRING_H 17291#ifdef HAVE_STRING_H
10646# include <string.h> 17292# include <string.h>
10647#endif 17293#endif
10648 17294
10649" 17295
10650if test "x$ac_cv_have_decl_strsep" = xyes; then : 17296int
10651 for ac_func in strsep 17297main ()
10652do : 17298{
10653 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" 17299#ifndef strsep
10654if test "x$ac_cv_func_strsep" = xyes; then : 17300 (void) strsep;
17301#endif
17302
17303 ;
17304 return 0;
17305}
17306_ACEOF
17307rm -f conftest.$ac_objext
17308if { (ac_try="$ac_compile"
17309case "(($ac_try" in
17310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17311 *) ac_try_echo=$ac_try;;
17312esac
17313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17314 (eval "$ac_compile") 2>conftest.er1
17315 ac_status=$?
17316 grep -v '^ *+' conftest.er1 >conftest.err
17317 rm -f conftest.er1
17318 cat conftest.err >&5
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); } && {
17321 test -z "$ac_c_werror_flag" ||
17322 test ! -s conftest.err
17323 } && test -s conftest.$ac_objext; then
17324 ac_cv_have_decl_strsep=yes
17325else
17326 echo "$as_me: failed program was:" >&5
17327sed 's/^/| /' conftest.$ac_ext >&5
17328
17329 ac_cv_have_decl_strsep=no
17330fi
17331
17332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17333fi
17334{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
17335echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; }
17336if test $ac_cv_have_decl_strsep = yes; then
17337
17338for ac_func in strsep
17339do
17340as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17341{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17342echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17343if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17344 echo $ECHO_N "(cached) $ECHO_C" >&6
17345else
17346 cat >conftest.$ac_ext <<_ACEOF
17347/* confdefs.h. */
17348_ACEOF
17349cat confdefs.h >>conftest.$ac_ext
17350cat >>conftest.$ac_ext <<_ACEOF
17351/* end confdefs.h. */
17352/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17354#define $ac_func innocuous_$ac_func
17355
17356/* System header to define __stub macros and hopefully few prototypes,
17357 which can conflict with char $ac_func (); below.
17358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17359 <limits.h> exists even on freestanding compilers. */
17360
17361#ifdef __STDC__
17362# include <limits.h>
17363#else
17364# include <assert.h>
17365#endif
17366
17367#undef $ac_func
17368
17369/* Override any GCC internal prototype to avoid an error.
17370 Use char because int might match the return type of a GCC
17371 builtin and then its argument prototype would still apply. */
17372#ifdef __cplusplus
17373extern "C"
17374#endif
17375char $ac_func ();
17376/* The GNU C library defines this for functions which it implements
17377 to always fail with ENOSYS. Some functions are actually named
17378 something starting with __ and the normal name is an alias. */
17379#if defined __stub_$ac_func || defined __stub___$ac_func
17380choke me
17381#endif
17382
17383int
17384main ()
17385{
17386return $ac_func ();
17387 ;
17388 return 0;
17389}
17390_ACEOF
17391rm -f conftest.$ac_objext conftest$ac_exeext
17392if { (ac_try="$ac_link"
17393case "(($ac_try" in
17394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17395 *) ac_try_echo=$ac_try;;
17396esac
17397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17398 (eval "$ac_link") 2>conftest.er1
17399 ac_status=$?
17400 grep -v '^ *+' conftest.er1 >conftest.err
17401 rm -f conftest.er1
17402 cat conftest.err >&5
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); } && {
17405 test -z "$ac_c_werror_flag" ||
17406 test ! -s conftest.err
17407 } && test -s conftest$ac_exeext &&
17408 $as_test_x conftest$ac_exeext; then
17409 eval "$as_ac_var=yes"
17410else
17411 echo "$as_me: failed program was:" >&5
17412sed 's/^/| /' conftest.$ac_ext >&5
17413
17414 eval "$as_ac_var=no"
17415fi
17416
17417rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17418 conftest$ac_exeext conftest.$ac_ext
17419fi
17420ac_res=`eval echo '${'$as_ac_var'}'`
17421 { echo "$as_me:$LINENO: result: $ac_res" >&5
17422echo "${ECHO_T}$ac_res" >&6; }
17423if test `eval echo '${'$as_ac_var'}'` = yes; then
10655 cat >>confdefs.h <<_ACEOF 17424 cat >>confdefs.h <<_ACEOF
10656#define HAVE_STRSEP 1 17425#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10657_ACEOF 17426_ACEOF
10658 17427
10659fi 17428fi
@@ -10662,57 +17431,318 @@ done
10662fi 17431fi
10663 17432
10664 17433
10665ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h> 17434{ echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5
17435echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; }
17436if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
17437 echo $ECHO_N "(cached) $ECHO_C" >&6
17438else
17439 cat >conftest.$ac_ext <<_ACEOF
17440/* confdefs.h. */
17441_ACEOF
17442cat confdefs.h >>conftest.$ac_ext
17443cat >>conftest.$ac_ext <<_ACEOF
17444/* end confdefs.h. */
17445#include <termios.h>
10666 17446
10667"
10668if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then :
10669 $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h
10670 17447
17448int
17449main ()
17450{
17451#ifndef tcsendbreak
17452 (void) tcsendbreak;
17453#endif
17454
17455 ;
17456 return 0;
17457}
17458_ACEOF
17459rm -f conftest.$ac_objext
17460if { (ac_try="$ac_compile"
17461case "(($ac_try" in
17462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463 *) ac_try_echo=$ac_try;;
17464esac
17465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466 (eval "$ac_compile") 2>conftest.er1
17467 ac_status=$?
17468 grep -v '^ *+' conftest.er1 >conftest.err
17469 rm -f conftest.er1
17470 cat conftest.err >&5
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } && {
17473 test -z "$ac_c_werror_flag" ||
17474 test ! -s conftest.err
17475 } && test -s conftest.$ac_objext; then
17476 ac_cv_have_decl_tcsendbreak=yes
10671else 17477else
10672 for ac_func in tcsendbreak 17478 echo "$as_me: failed program was:" >&5
10673do : 17479sed 's/^/| /' conftest.$ac_ext >&5
10674 ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak" 17480
10675if test "x$ac_cv_func_tcsendbreak" = xyes; then : 17481 ac_cv_have_decl_tcsendbreak=no
10676 cat >>confdefs.h <<_ACEOF 17482fi
17483
17484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17485fi
17486{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5
17487echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; }
17488if test $ac_cv_have_decl_tcsendbreak = yes; then
17489 cat >>confdefs.h <<\_ACEOF
10677#define HAVE_TCSENDBREAK 1 17490#define HAVE_TCSENDBREAK 1
10678_ACEOF 17491_ACEOF
10679 17492
17493else
17494
17495for ac_func in tcsendbreak
17496do
17497as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17498{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17499echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17500if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17501 echo $ECHO_N "(cached) $ECHO_C" >&6
17502else
17503 cat >conftest.$ac_ext <<_ACEOF
17504/* confdefs.h. */
17505_ACEOF
17506cat confdefs.h >>conftest.$ac_ext
17507cat >>conftest.$ac_ext <<_ACEOF
17508/* end confdefs.h. */
17509/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17511#define $ac_func innocuous_$ac_func
17512
17513/* System header to define __stub macros and hopefully few prototypes,
17514 which can conflict with char $ac_func (); below.
17515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17516 <limits.h> exists even on freestanding compilers. */
17517
17518#ifdef __STDC__
17519# include <limits.h>
17520#else
17521# include <assert.h>
17522#endif
17523
17524#undef $ac_func
17525
17526/* Override any GCC internal prototype to avoid an error.
17527 Use char because int might match the return type of a GCC
17528 builtin and then its argument prototype would still apply. */
17529#ifdef __cplusplus
17530extern "C"
17531#endif
17532char $ac_func ();
17533/* The GNU C library defines this for functions which it implements
17534 to always fail with ENOSYS. Some functions are actually named
17535 something starting with __ and the normal name is an alias. */
17536#if defined __stub_$ac_func || defined __stub___$ac_func
17537choke me
17538#endif
17539
17540int
17541main ()
17542{
17543return $ac_func ();
17544 ;
17545 return 0;
17546}
17547_ACEOF
17548rm -f conftest.$ac_objext conftest$ac_exeext
17549if { (ac_try="$ac_link"
17550case "(($ac_try" in
17551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552 *) ac_try_echo=$ac_try;;
17553esac
17554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17555 (eval "$ac_link") 2>conftest.er1
17556 ac_status=$?
17557 grep -v '^ *+' conftest.er1 >conftest.err
17558 rm -f conftest.er1
17559 cat conftest.err >&5
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); } && {
17562 test -z "$ac_c_werror_flag" ||
17563 test ! -s conftest.err
17564 } && test -s conftest$ac_exeext &&
17565 $as_test_x conftest$ac_exeext; then
17566 eval "$as_ac_var=yes"
17567else
17568 echo "$as_me: failed program was:" >&5
17569sed 's/^/| /' conftest.$ac_ext >&5
17570
17571 eval "$as_ac_var=no"
17572fi
17573
17574rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17575 conftest$ac_exeext conftest.$ac_ext
17576fi
17577ac_res=`eval echo '${'$as_ac_var'}'`
17578 { echo "$as_me:$LINENO: result: $ac_res" >&5
17579echo "${ECHO_T}$ac_res" >&6; }
17580if test `eval echo '${'$as_ac_var'}'` = yes; then
17581 cat >>confdefs.h <<_ACEOF
17582#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17583_ACEOF
17584
10680fi 17585fi
10681done 17586done
10682 17587
10683fi 17588fi
10684 17589
10685 17590
10686ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h> 17591{ echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
10687" 17592echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; }
10688if test "x$ac_cv_have_decl_h_errno" = xyes; then : 17593if test "${ac_cv_have_decl_h_errno+set}" = set; then
10689 ac_have_decl=1 17594 echo $ECHO_N "(cached) $ECHO_C" >&6
17595else
17596 cat >conftest.$ac_ext <<_ACEOF
17597/* confdefs.h. */
17598_ACEOF
17599cat confdefs.h >>conftest.$ac_ext
17600cat >>conftest.$ac_ext <<_ACEOF
17601/* end confdefs.h. */
17602#include <netdb.h>
17603
17604int
17605main ()
17606{
17607#ifndef h_errno
17608 (void) h_errno;
17609#endif
17610
17611 ;
17612 return 0;
17613}
17614_ACEOF
17615rm -f conftest.$ac_objext
17616if { (ac_try="$ac_compile"
17617case "(($ac_try" in
17618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17619 *) ac_try_echo=$ac_try;;
17620esac
17621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17622 (eval "$ac_compile") 2>conftest.er1
17623 ac_status=$?
17624 grep -v '^ *+' conftest.er1 >conftest.err
17625 rm -f conftest.er1
17626 cat conftest.err >&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); } && {
17629 test -z "$ac_c_werror_flag" ||
17630 test ! -s conftest.err
17631 } && test -s conftest.$ac_objext; then
17632 ac_cv_have_decl_h_errno=yes
10690else 17633else
10691 ac_have_decl=0 17634 echo "$as_me: failed program was:" >&5
17635sed 's/^/| /' conftest.$ac_ext >&5
17636
17637 ac_cv_have_decl_h_errno=no
17638fi
17639
17640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10692fi 17641fi
17642{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
17643echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; }
17644if test $ac_cv_have_decl_h_errno = yes; then
10693 17645
10694cat >>confdefs.h <<_ACEOF 17646cat >>confdefs.h <<_ACEOF
10695#define HAVE_DECL_H_ERRNO $ac_have_decl 17647#define HAVE_DECL_H_ERRNO 1
17648_ACEOF
17649
17650
17651else
17652 cat >>confdefs.h <<_ACEOF
17653#define HAVE_DECL_H_ERRNO 0
10696_ACEOF 17654_ACEOF
10697 17655
10698 17656
10699ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" " 17657fi
17658
17659
17660
17661{ echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5
17662echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; }
17663if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then
17664 echo $ECHO_N "(cached) $ECHO_C" >&6
17665else
17666 cat >conftest.$ac_ext <<_ACEOF
17667/* confdefs.h. */
17668_ACEOF
17669cat confdefs.h >>conftest.$ac_ext
17670cat >>conftest.$ac_ext <<_ACEOF
17671/* end confdefs.h. */
17672
10700#include <sys/types.h> 17673#include <sys/types.h>
10701#include <sys/socket.h> 17674#include <sys/socket.h>
10702 17675
10703" 17676
10704if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then : 17677int
10705 ac_have_decl=1 17678main ()
17679{
17680#ifndef SHUT_RD
17681 (void) SHUT_RD;
17682#endif
17683
17684 ;
17685 return 0;
17686}
17687_ACEOF
17688rm -f conftest.$ac_objext
17689if { (ac_try="$ac_compile"
17690case "(($ac_try" in
17691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17692 *) ac_try_echo=$ac_try;;
17693esac
17694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17695 (eval "$ac_compile") 2>conftest.er1
17696 ac_status=$?
17697 grep -v '^ *+' conftest.er1 >conftest.err
17698 rm -f conftest.er1
17699 cat conftest.err >&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); } && {
17702 test -z "$ac_c_werror_flag" ||
17703 test ! -s conftest.err
17704 } && test -s conftest.$ac_objext; then
17705 ac_cv_have_decl_SHUT_RD=yes
10706else 17706else
10707 ac_have_decl=0 17707 echo "$as_me: failed program was:" >&5
17708sed 's/^/| /' conftest.$ac_ext >&5
17709
17710 ac_cv_have_decl_SHUT_RD=no
10708fi 17711fi
10709 17712
17713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17714fi
17715{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5
17716echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; }
17717if test $ac_cv_have_decl_SHUT_RD = yes; then
17718
10710cat >>confdefs.h <<_ACEOF 17719cat >>confdefs.h <<_ACEOF
10711#define HAVE_DECL_SHUT_RD $ac_have_decl 17720#define HAVE_DECL_SHUT_RD 1
17721_ACEOF
17722
17723
17724else
17725 cat >>confdefs.h <<_ACEOF
17726#define HAVE_DECL_SHUT_RD 0
10712_ACEOF 17727_ACEOF
10713 17728
10714 17729
10715ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" " 17730fi
17731
17732
17733
17734{ echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5
17735echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; }
17736if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then
17737 echo $ECHO_N "(cached) $ECHO_C" >&6
17738else
17739 cat >conftest.$ac_ext <<_ACEOF
17740/* confdefs.h. */
17741_ACEOF
17742cat confdefs.h >>conftest.$ac_ext
17743cat >>conftest.$ac_ext <<_ACEOF
17744/* end confdefs.h. */
17745
10716#include <sys/types.h> 17746#include <sys/types.h>
10717#ifdef HAVE_SYS_STAT_H 17747#ifdef HAVE_SYS_STAT_H
10718# include <sys/stat.h> 17748# include <sys/stat.h>
@@ -10721,67 +17751,295 @@ ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "
10721# include <fcntl.h> 17751# include <fcntl.h>
10722#endif 17752#endif
10723 17753
10724" 17754
10725if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then : 17755int
10726 ac_have_decl=1 17756main ()
17757{
17758#ifndef O_NONBLOCK
17759 (void) O_NONBLOCK;
17760#endif
17761
17762 ;
17763 return 0;
17764}
17765_ACEOF
17766rm -f conftest.$ac_objext
17767if { (ac_try="$ac_compile"
17768case "(($ac_try" in
17769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17770 *) ac_try_echo=$ac_try;;
17771esac
17772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17773 (eval "$ac_compile") 2>conftest.er1
17774 ac_status=$?
17775 grep -v '^ *+' conftest.er1 >conftest.err
17776 rm -f conftest.er1
17777 cat conftest.err >&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); } && {
17780 test -z "$ac_c_werror_flag" ||
17781 test ! -s conftest.err
17782 } && test -s conftest.$ac_objext; then
17783 ac_cv_have_decl_O_NONBLOCK=yes
10727else 17784else
10728 ac_have_decl=0 17785 echo "$as_me: failed program was:" >&5
17786sed 's/^/| /' conftest.$ac_ext >&5
17787
17788 ac_cv_have_decl_O_NONBLOCK=no
10729fi 17789fi
10730 17790
17791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17792fi
17793{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5
17794echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; }
17795if test $ac_cv_have_decl_O_NONBLOCK = yes; then
17796
10731cat >>confdefs.h <<_ACEOF 17797cat >>confdefs.h <<_ACEOF
10732#define HAVE_DECL_O_NONBLOCK $ac_have_decl 17798#define HAVE_DECL_O_NONBLOCK 1
10733_ACEOF 17799_ACEOF
10734 17800
10735 17801
10736ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" " 17802else
17803 cat >>confdefs.h <<_ACEOF
17804#define HAVE_DECL_O_NONBLOCK 0
17805_ACEOF
17806
17807
17808fi
17809
17810
17811
17812{ echo "$as_me:$LINENO: checking whether writev is declared" >&5
17813echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; }
17814if test "${ac_cv_have_decl_writev+set}" = set; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
17816else
17817 cat >conftest.$ac_ext <<_ACEOF
17818/* confdefs.h. */
17819_ACEOF
17820cat confdefs.h >>conftest.$ac_ext
17821cat >>conftest.$ac_ext <<_ACEOF
17822/* end confdefs.h. */
17823
10737#include <sys/types.h> 17824#include <sys/types.h>
10738#include <sys/uio.h> 17825#include <sys/uio.h>
10739#include <unistd.h> 17826#include <unistd.h>
10740 17827
10741" 17828
10742if test "x$ac_cv_have_decl_writev" = xyes; then : 17829int
10743 ac_have_decl=1 17830main ()
17831{
17832#ifndef writev
17833 (void) writev;
17834#endif
17835
17836 ;
17837 return 0;
17838}
17839_ACEOF
17840rm -f conftest.$ac_objext
17841if { (ac_try="$ac_compile"
17842case "(($ac_try" in
17843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17844 *) ac_try_echo=$ac_try;;
17845esac
17846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17847 (eval "$ac_compile") 2>conftest.er1
17848 ac_status=$?
17849 grep -v '^ *+' conftest.er1 >conftest.err
17850 rm -f conftest.er1
17851 cat conftest.err >&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); } && {
17854 test -z "$ac_c_werror_flag" ||
17855 test ! -s conftest.err
17856 } && test -s conftest.$ac_objext; then
17857 ac_cv_have_decl_writev=yes
10744else 17858else
10745 ac_have_decl=0 17859 echo "$as_me: failed program was:" >&5
17860sed 's/^/| /' conftest.$ac_ext >&5
17861
17862 ac_cv_have_decl_writev=no
17863fi
17864
17865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10746fi 17866fi
17867{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5
17868echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; }
17869if test $ac_cv_have_decl_writev = yes; then
10747 17870
10748cat >>confdefs.h <<_ACEOF 17871cat >>confdefs.h <<_ACEOF
10749#define HAVE_DECL_WRITEV $ac_have_decl 17872#define HAVE_DECL_WRITEV 1
17873_ACEOF
17874
17875
17876else
17877 cat >>confdefs.h <<_ACEOF
17878#define HAVE_DECL_WRITEV 0
10750_ACEOF 17879_ACEOF
10751 17880
10752 17881
10753ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" " 17882fi
17883
17884
17885
17886{ echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5
17887echo $ECHO_N "checking whether MAXSYMLINKS is declared... $ECHO_C" >&6; }
17888if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then
17889 echo $ECHO_N "(cached) $ECHO_C" >&6
17890else
17891 cat >conftest.$ac_ext <<_ACEOF
17892/* confdefs.h. */
17893_ACEOF
17894cat confdefs.h >>conftest.$ac_ext
17895cat >>conftest.$ac_ext <<_ACEOF
17896/* end confdefs.h. */
17897
10754#include <sys/param.h> 17898#include <sys/param.h>
10755 17899
10756" 17900
10757if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then : 17901int
10758 ac_have_decl=1 17902main ()
17903{
17904#ifndef MAXSYMLINKS
17905 (void) MAXSYMLINKS;
17906#endif
17907
17908 ;
17909 return 0;
17910}
17911_ACEOF
17912rm -f conftest.$ac_objext
17913if { (ac_try="$ac_compile"
17914case "(($ac_try" in
17915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17916 *) ac_try_echo=$ac_try;;
17917esac
17918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17919 (eval "$ac_compile") 2>conftest.er1
17920 ac_status=$?
17921 grep -v '^ *+' conftest.er1 >conftest.err
17922 rm -f conftest.er1
17923 cat conftest.err >&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } && {
17926 test -z "$ac_c_werror_flag" ||
17927 test ! -s conftest.err
17928 } && test -s conftest.$ac_objext; then
17929 ac_cv_have_decl_MAXSYMLINKS=yes
10759else 17930else
10760 ac_have_decl=0 17931 echo "$as_me: failed program was:" >&5
17932sed 's/^/| /' conftest.$ac_ext >&5
17933
17934 ac_cv_have_decl_MAXSYMLINKS=no
10761fi 17935fi
10762 17936
17937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17938fi
17939{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5
17940echo "${ECHO_T}$ac_cv_have_decl_MAXSYMLINKS" >&6; }
17941if test $ac_cv_have_decl_MAXSYMLINKS = yes; then
17942
10763cat >>confdefs.h <<_ACEOF 17943cat >>confdefs.h <<_ACEOF
10764#define HAVE_DECL_MAXSYMLINKS $ac_have_decl 17944#define HAVE_DECL_MAXSYMLINKS 1
10765_ACEOF 17945_ACEOF
10766 17946
10767 17947
10768ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" " 17948else
17949 cat >>confdefs.h <<_ACEOF
17950#define HAVE_DECL_MAXSYMLINKS 0
17951_ACEOF
17952
17953
17954fi
17955
17956
17957
17958{ echo "$as_me:$LINENO: checking whether offsetof is declared" >&5
17959echo $ECHO_N "checking whether offsetof is declared... $ECHO_C" >&6; }
17960if test "${ac_cv_have_decl_offsetof+set}" = set; then
17961 echo $ECHO_N "(cached) $ECHO_C" >&6
17962else
17963 cat >conftest.$ac_ext <<_ACEOF
17964/* confdefs.h. */
17965_ACEOF
17966cat confdefs.h >>conftest.$ac_ext
17967cat >>conftest.$ac_ext <<_ACEOF
17968/* end confdefs.h. */
17969
10769#include <stddef.h> 17970#include <stddef.h>
10770 17971
10771" 17972
10772if test "x$ac_cv_have_decl_offsetof" = xyes; then : 17973int
10773 ac_have_decl=1 17974main ()
17975{
17976#ifndef offsetof
17977 (void) offsetof;
17978#endif
17979
17980 ;
17981 return 0;
17982}
17983_ACEOF
17984rm -f conftest.$ac_objext
17985if { (ac_try="$ac_compile"
17986case "(($ac_try" in
17987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17988 *) ac_try_echo=$ac_try;;
17989esac
17990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17991 (eval "$ac_compile") 2>conftest.er1
17992 ac_status=$?
17993 grep -v '^ *+' conftest.er1 >conftest.err
17994 rm -f conftest.er1
17995 cat conftest.err >&5
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); } && {
17998 test -z "$ac_c_werror_flag" ||
17999 test ! -s conftest.err
18000 } && test -s conftest.$ac_objext; then
18001 ac_cv_have_decl_offsetof=yes
10774else 18002else
10775 ac_have_decl=0 18003 echo "$as_me: failed program was:" >&5
18004sed 's/^/| /' conftest.$ac_ext >&5
18005
18006 ac_cv_have_decl_offsetof=no
10776fi 18007fi
10777 18008
18009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18010fi
18011{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5
18012echo "${ECHO_T}$ac_cv_have_decl_offsetof" >&6; }
18013if test $ac_cv_have_decl_offsetof = yes; then
18014
10778cat >>confdefs.h <<_ACEOF 18015cat >>confdefs.h <<_ACEOF
10779#define HAVE_DECL_OFFSETOF $ac_have_decl 18016#define HAVE_DECL_OFFSETOF 1
10780_ACEOF 18017_ACEOF
10781 18018
10782 18019
18020else
18021 cat >>confdefs.h <<_ACEOF
18022#define HAVE_DECL_OFFSETOF 0
18023_ACEOF
18024
18025
18026fi
18027
18028
18029
10783# extra bits for select(2) 18030# extra bits for select(2)
10784ac_fn_c_check_decl "$LINENO" "howmany" "ac_cv_have_decl_howmany" " 18031{ echo "$as_me:$LINENO: checking whether howmany is declared" >&5
18032echo $ECHO_N "checking whether howmany is declared... $ECHO_C" >&6; }
18033if test "${ac_cv_have_decl_howmany+set}" = set; then
18034 echo $ECHO_N "(cached) $ECHO_C" >&6
18035else
18036 cat >conftest.$ac_ext <<_ACEOF
18037/* confdefs.h. */
18038_ACEOF
18039cat confdefs.h >>conftest.$ac_ext
18040cat >>conftest.$ac_ext <<_ACEOF
18041/* end confdefs.h. */
18042
10785#include <sys/param.h> 18043#include <sys/param.h>
10786#include <sys/types.h> 18044#include <sys/types.h>
10787#ifdef HAVE_SYS_SYSMACROS_H 18045#ifdef HAVE_SYS_SYSMACROS_H
@@ -10797,17 +18055,73 @@ ac_fn_c_check_decl "$LINENO" "howmany" "ac_cv_have_decl_howmany" "
10797#include <unistd.h> 18055#include <unistd.h>
10798#endif 18056#endif
10799 18057
10800" 18058
10801if test "x$ac_cv_have_decl_howmany" = xyes; then : 18059int
10802 ac_have_decl=1 18060main ()
18061{
18062#ifndef howmany
18063 (void) howmany;
18064#endif
18065
18066 ;
18067 return 0;
18068}
18069_ACEOF
18070rm -f conftest.$ac_objext
18071if { (ac_try="$ac_compile"
18072case "(($ac_try" in
18073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18074 *) ac_try_echo=$ac_try;;
18075esac
18076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18077 (eval "$ac_compile") 2>conftest.er1
18078 ac_status=$?
18079 grep -v '^ *+' conftest.er1 >conftest.err
18080 rm -f conftest.er1
18081 cat conftest.err >&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); } && {
18084 test -z "$ac_c_werror_flag" ||
18085 test ! -s conftest.err
18086 } && test -s conftest.$ac_objext; then
18087 ac_cv_have_decl_howmany=yes
10803else 18088else
10804 ac_have_decl=0 18089 echo "$as_me: failed program was:" >&5
18090sed 's/^/| /' conftest.$ac_ext >&5
18091
18092 ac_cv_have_decl_howmany=no
10805fi 18093fi
10806 18094
18095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18096fi
18097{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_howmany" >&5
18098echo "${ECHO_T}$ac_cv_have_decl_howmany" >&6; }
18099if test $ac_cv_have_decl_howmany = yes; then
18100
10807cat >>confdefs.h <<_ACEOF 18101cat >>confdefs.h <<_ACEOF
10808#define HAVE_DECL_HOWMANY $ac_have_decl 18102#define HAVE_DECL_HOWMANY 1
10809_ACEOF 18103_ACEOF
10810ac_fn_c_check_decl "$LINENO" "NFDBITS" "ac_cv_have_decl_NFDBITS" " 18104
18105
18106else
18107 cat >>confdefs.h <<_ACEOF
18108#define HAVE_DECL_HOWMANY 0
18109_ACEOF
18110
18111
18112fi
18113{ echo "$as_me:$LINENO: checking whether NFDBITS is declared" >&5
18114echo $ECHO_N "checking whether NFDBITS is declared... $ECHO_C" >&6; }
18115if test "${ac_cv_have_decl_NFDBITS+set}" = set; then
18116 echo $ECHO_N "(cached) $ECHO_C" >&6
18117else
18118 cat >conftest.$ac_ext <<_ACEOF
18119/* confdefs.h. */
18120_ACEOF
18121cat confdefs.h >>conftest.$ac_ext
18122cat >>conftest.$ac_ext <<_ACEOF
18123/* end confdefs.h. */
18124
10811#include <sys/param.h> 18125#include <sys/param.h>
10812#include <sys/types.h> 18126#include <sys/types.h>
10813#ifdef HAVE_SYS_SYSMACROS_H 18127#ifdef HAVE_SYS_SYSMACROS_H
@@ -10823,18 +18137,75 @@ ac_fn_c_check_decl "$LINENO" "NFDBITS" "ac_cv_have_decl_NFDBITS" "
10823#include <unistd.h> 18137#include <unistd.h>
10824#endif 18138#endif
10825 18139
10826" 18140
10827if test "x$ac_cv_have_decl_NFDBITS" = xyes; then : 18141int
10828 ac_have_decl=1 18142main ()
18143{
18144#ifndef NFDBITS
18145 (void) NFDBITS;
18146#endif
18147
18148 ;
18149 return 0;
18150}
18151_ACEOF
18152rm -f conftest.$ac_objext
18153if { (ac_try="$ac_compile"
18154case "(($ac_try" in
18155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156 *) ac_try_echo=$ac_try;;
18157esac
18158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18159 (eval "$ac_compile") 2>conftest.er1
18160 ac_status=$?
18161 grep -v '^ *+' conftest.er1 >conftest.err
18162 rm -f conftest.er1
18163 cat conftest.err >&5
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); } && {
18166 test -z "$ac_c_werror_flag" ||
18167 test ! -s conftest.err
18168 } && test -s conftest.$ac_objext; then
18169 ac_cv_have_decl_NFDBITS=yes
10829else 18170else
10830 ac_have_decl=0 18171 echo "$as_me: failed program was:" >&5
18172sed 's/^/| /' conftest.$ac_ext >&5
18173
18174 ac_cv_have_decl_NFDBITS=no
10831fi 18175fi
10832 18176
18177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18178fi
18179{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_NFDBITS" >&5
18180echo "${ECHO_T}$ac_cv_have_decl_NFDBITS" >&6; }
18181if test $ac_cv_have_decl_NFDBITS = yes; then
18182
10833cat >>confdefs.h <<_ACEOF 18183cat >>confdefs.h <<_ACEOF
10834#define HAVE_DECL_NFDBITS $ac_have_decl 18184#define HAVE_DECL_NFDBITS 1
18185_ACEOF
18186
18187
18188else
18189 cat >>confdefs.h <<_ACEOF
18190#define HAVE_DECL_NFDBITS 0
18191_ACEOF
18192
18193
18194fi
18195
18196
18197{ echo "$as_me:$LINENO: checking for fd_mask" >&5
18198echo $ECHO_N "checking for fd_mask... $ECHO_C" >&6; }
18199if test "${ac_cv_type_fd_mask+set}" = set; then
18200 echo $ECHO_N "(cached) $ECHO_C" >&6
18201else
18202 cat >conftest.$ac_ext <<_ACEOF
18203/* confdefs.h. */
10835_ACEOF 18204_ACEOF
18205cat confdefs.h >>conftest.$ac_ext
18206cat >>conftest.$ac_ext <<_ACEOF
18207/* end confdefs.h. */
10836 18208
10837ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "
10838#include <sys/param.h> 18209#include <sys/param.h>
10839#include <sys/types.h> 18210#include <sys/types.h>
10840#ifdef HAVE_SYS_SELECT_H 18211#ifdef HAVE_SYS_SELECT_H
@@ -10847,8 +18218,49 @@ ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "
10847#include <unistd.h> 18218#include <unistd.h>
10848#endif 18219#endif
10849 18220
10850" 18221
10851if test "x$ac_cv_type_fd_mask" = xyes; then : 18222typedef fd_mask ac__type_new_;
18223int
18224main ()
18225{
18226if ((ac__type_new_ *) 0)
18227 return 0;
18228if (sizeof (ac__type_new_))
18229 return 0;
18230 ;
18231 return 0;
18232}
18233_ACEOF
18234rm -f conftest.$ac_objext
18235if { (ac_try="$ac_compile"
18236case "(($ac_try" in
18237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18238 *) ac_try_echo=$ac_try;;
18239esac
18240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18241 (eval "$ac_compile") 2>conftest.er1
18242 ac_status=$?
18243 grep -v '^ *+' conftest.er1 >conftest.err
18244 rm -f conftest.er1
18245 cat conftest.err >&5
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); } && {
18248 test -z "$ac_c_werror_flag" ||
18249 test ! -s conftest.err
18250 } && test -s conftest.$ac_objext; then
18251 ac_cv_type_fd_mask=yes
18252else
18253 echo "$as_me: failed program was:" >&5
18254sed 's/^/| /' conftest.$ac_ext >&5
18255
18256 ac_cv_type_fd_mask=no
18257fi
18258
18259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18260fi
18261{ echo "$as_me:$LINENO: result: $ac_cv_type_fd_mask" >&5
18262echo "${ECHO_T}$ac_cv_type_fd_mask" >&6; }
18263if test $ac_cv_type_fd_mask = yes; then
10852 18264
10853cat >>confdefs.h <<_ACEOF 18265cat >>confdefs.h <<_ACEOF
10854#define HAVE_FD_MASK 1 18266#define HAVE_FD_MASK 1
@@ -10858,22 +18270,109 @@ _ACEOF
10858fi 18270fi
10859 18271
10860 18272
18273
10861for ac_func in setresuid 18274for ac_func in setresuid
10862do : 18275do
10863 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" 18276as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10864if test "x$ac_cv_func_setresuid" = xyes; then : 18277{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18278echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18279if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18280 echo $ECHO_N "(cached) $ECHO_C" >&6
18281else
18282 cat >conftest.$ac_ext <<_ACEOF
18283/* confdefs.h. */
18284_ACEOF
18285cat confdefs.h >>conftest.$ac_ext
18286cat >>conftest.$ac_ext <<_ACEOF
18287/* end confdefs.h. */
18288/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18290#define $ac_func innocuous_$ac_func
18291
18292/* System header to define __stub macros and hopefully few prototypes,
18293 which can conflict with char $ac_func (); below.
18294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18295 <limits.h> exists even on freestanding compilers. */
18296
18297#ifdef __STDC__
18298# include <limits.h>
18299#else
18300# include <assert.h>
18301#endif
18302
18303#undef $ac_func
18304
18305/* Override any GCC internal prototype to avoid an error.
18306 Use char because int might match the return type of a GCC
18307 builtin and then its argument prototype would still apply. */
18308#ifdef __cplusplus
18309extern "C"
18310#endif
18311char $ac_func ();
18312/* The GNU C library defines this for functions which it implements
18313 to always fail with ENOSYS. Some functions are actually named
18314 something starting with __ and the normal name is an alias. */
18315#if defined __stub_$ac_func || defined __stub___$ac_func
18316choke me
18317#endif
18318
18319int
18320main ()
18321{
18322return $ac_func ();
18323 ;
18324 return 0;
18325}
18326_ACEOF
18327rm -f conftest.$ac_objext conftest$ac_exeext
18328if { (ac_try="$ac_link"
18329case "(($ac_try" in
18330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18331 *) ac_try_echo=$ac_try;;
18332esac
18333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18334 (eval "$ac_link") 2>conftest.er1
18335 ac_status=$?
18336 grep -v '^ *+' conftest.er1 >conftest.err
18337 rm -f conftest.er1
18338 cat conftest.err >&5
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); } && {
18341 test -z "$ac_c_werror_flag" ||
18342 test ! -s conftest.err
18343 } && test -s conftest$ac_exeext &&
18344 $as_test_x conftest$ac_exeext; then
18345 eval "$as_ac_var=yes"
18346else
18347 echo "$as_me: failed program was:" >&5
18348sed 's/^/| /' conftest.$ac_ext >&5
18349
18350 eval "$as_ac_var=no"
18351fi
18352
18353rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18354 conftest$ac_exeext conftest.$ac_ext
18355fi
18356ac_res=`eval echo '${'$as_ac_var'}'`
18357 { echo "$as_me:$LINENO: result: $ac_res" >&5
18358echo "${ECHO_T}$ac_res" >&6; }
18359if test `eval echo '${'$as_ac_var'}'` = yes; then
10865 cat >>confdefs.h <<_ACEOF 18360 cat >>confdefs.h <<_ACEOF
10866#define HAVE_SETRESUID 1 18361#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10867_ACEOF 18362_ACEOF
10868 18363
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5 18364 { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5
10870$as_echo_n "checking if setresuid seems to work... " >&6; } 18365echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; }
10871 if test "$cross_compiling" = yes; then : 18366 if test "$cross_compiling" = yes; then
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5 18367 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
10873$as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} 18368echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
10874 18369
10875else 18370else
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18371 cat >conftest.$ac_ext <<_ACEOF
18372/* confdefs.h. */
18373_ACEOF
18374cat confdefs.h >>conftest.$ac_ext
18375cat >>conftest.$ac_ext <<_ACEOF
10877/* end confdefs.h. */ 18376/* end confdefs.h. */
10878 18377
10879#include <stdlib.h> 18378#include <stdlib.h>
@@ -10894,41 +18393,154 @@ main ()
10894 return 0; 18393 return 0;
10895} 18394}
10896_ACEOF 18395_ACEOF
10897if ac_fn_c_try_run "$LINENO"; then : 18396rm -f conftest$ac_exeext
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18397if { (ac_try="$ac_link"
10899$as_echo "yes" >&6; } 18398case "(($ac_try" in
18399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18400 *) ac_try_echo=$ac_try;;
18401esac
18402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18403 (eval "$ac_link") 2>&5
18404 ac_status=$?
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18407 { (case "(($ac_try" in
18408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18409 *) ac_try_echo=$ac_try;;
18410esac
18411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18412 (eval "$ac_try") 2>&5
18413 ac_status=$?
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; }; then
18416 { echo "$as_me:$LINENO: result: yes" >&5
18417echo "${ECHO_T}yes" >&6; }
10900else 18418else
18419 echo "$as_me: program exited with status $ac_status" >&5
18420echo "$as_me: failed program was:" >&5
18421sed 's/^/| /' conftest.$ac_ext >&5
18422
18423( exit $ac_status )
10901 18424
10902$as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h 18425cat >>confdefs.h <<\_ACEOF
18426#define BROKEN_SETRESUID 1
18427_ACEOF
10903 18428
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5 18429 { echo "$as_me:$LINENO: result: not implemented" >&5
10905$as_echo "not implemented" >&6; } 18430echo "${ECHO_T}not implemented" >&6; }
10906fi 18431fi
10907rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18432rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10908 conftest.$ac_objext conftest.beam conftest.$ac_ext
10909fi 18433fi
10910 18434
10911 18435
18436
10912fi 18437fi
10913done 18438done
10914 18439
10915 18440
18441
10916for ac_func in setresgid 18442for ac_func in setresgid
10917do : 18443do
10918 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" 18444as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10919if test "x$ac_cv_func_setresgid" = xyes; then : 18445{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18446echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18447if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18448 echo $ECHO_N "(cached) $ECHO_C" >&6
18449else
18450 cat >conftest.$ac_ext <<_ACEOF
18451/* confdefs.h. */
18452_ACEOF
18453cat confdefs.h >>conftest.$ac_ext
18454cat >>conftest.$ac_ext <<_ACEOF
18455/* end confdefs.h. */
18456/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18458#define $ac_func innocuous_$ac_func
18459
18460/* System header to define __stub macros and hopefully few prototypes,
18461 which can conflict with char $ac_func (); below.
18462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18463 <limits.h> exists even on freestanding compilers. */
18464
18465#ifdef __STDC__
18466# include <limits.h>
18467#else
18468# include <assert.h>
18469#endif
18470
18471#undef $ac_func
18472
18473/* Override any GCC internal prototype to avoid an error.
18474 Use char because int might match the return type of a GCC
18475 builtin and then its argument prototype would still apply. */
18476#ifdef __cplusplus
18477extern "C"
18478#endif
18479char $ac_func ();
18480/* The GNU C library defines this for functions which it implements
18481 to always fail with ENOSYS. Some functions are actually named
18482 something starting with __ and the normal name is an alias. */
18483#if defined __stub_$ac_func || defined __stub___$ac_func
18484choke me
18485#endif
18486
18487int
18488main ()
18489{
18490return $ac_func ();
18491 ;
18492 return 0;
18493}
18494_ACEOF
18495rm -f conftest.$ac_objext conftest$ac_exeext
18496if { (ac_try="$ac_link"
18497case "(($ac_try" in
18498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499 *) ac_try_echo=$ac_try;;
18500esac
18501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502 (eval "$ac_link") 2>conftest.er1
18503 ac_status=$?
18504 grep -v '^ *+' conftest.er1 >conftest.err
18505 rm -f conftest.er1
18506 cat conftest.err >&5
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); } && {
18509 test -z "$ac_c_werror_flag" ||
18510 test ! -s conftest.err
18511 } && test -s conftest$ac_exeext &&
18512 $as_test_x conftest$ac_exeext; then
18513 eval "$as_ac_var=yes"
18514else
18515 echo "$as_me: failed program was:" >&5
18516sed 's/^/| /' conftest.$ac_ext >&5
18517
18518 eval "$as_ac_var=no"
18519fi
18520
18521rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18522 conftest$ac_exeext conftest.$ac_ext
18523fi
18524ac_res=`eval echo '${'$as_ac_var'}'`
18525 { echo "$as_me:$LINENO: result: $ac_res" >&5
18526echo "${ECHO_T}$ac_res" >&6; }
18527if test `eval echo '${'$as_ac_var'}'` = yes; then
10920 cat >>confdefs.h <<_ACEOF 18528 cat >>confdefs.h <<_ACEOF
10921#define HAVE_SETRESGID 1 18529#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10922_ACEOF 18530_ACEOF
10923 18531
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5 18532 { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5
10925$as_echo_n "checking if setresgid seems to work... " >&6; } 18533echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; }
10926 if test "$cross_compiling" = yes; then : 18534 if test "$cross_compiling" = yes; then
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5 18535 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
10928$as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} 18536echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
10929 18537
10930else 18538else
10931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18539 cat >conftest.$ac_ext <<_ACEOF
18540/* confdefs.h. */
18541_ACEOF
18542cat confdefs.h >>conftest.$ac_ext
18543cat >>conftest.$ac_ext <<_ACEOF
10932/* end confdefs.h. */ 18544/* end confdefs.h. */
10933 18545
10934#include <stdlib.h> 18546#include <stdlib.h>
@@ -10949,110 +18561,729 @@ main ()
10949 return 0; 18561 return 0;
10950} 18562}
10951_ACEOF 18563_ACEOF
10952if ac_fn_c_try_run "$LINENO"; then : 18564rm -f conftest$ac_exeext
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18565if { (ac_try="$ac_link"
10954$as_echo "yes" >&6; } 18566case "(($ac_try" in
18567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18568 *) ac_try_echo=$ac_try;;
18569esac
18570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18571 (eval "$ac_link") 2>&5
18572 ac_status=$?
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18575 { (case "(($ac_try" in
18576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18577 *) ac_try_echo=$ac_try;;
18578esac
18579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18580 (eval "$ac_try") 2>&5
18581 ac_status=$?
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); }; }; then
18584 { echo "$as_me:$LINENO: result: yes" >&5
18585echo "${ECHO_T}yes" >&6; }
10955else 18586else
18587 echo "$as_me: program exited with status $ac_status" >&5
18588echo "$as_me: failed program was:" >&5
18589sed 's/^/| /' conftest.$ac_ext >&5
18590
18591( exit $ac_status )
10956 18592
10957$as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h 18593cat >>confdefs.h <<\_ACEOF
18594#define BROKEN_SETRESGID 1
18595_ACEOF
10958 18596
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5 18597 { echo "$as_me:$LINENO: result: not implemented" >&5
10960$as_echo "not implemented" >&6; } 18598echo "${ECHO_T}not implemented" >&6; }
10961fi 18599fi
10962rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18600rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10963 conftest.$ac_objext conftest.beam conftest.$ac_ext
10964fi 18601fi
10965 18602
10966 18603
18604
10967fi 18605fi
10968done 18606done
10969 18607
10970 18608
18609
18610
10971for ac_func in gettimeofday time 18611for ac_func in gettimeofday time
10972do : 18612do
10973 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18613as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10974ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18614{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10975if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18615echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18616if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18617 echo $ECHO_N "(cached) $ECHO_C" >&6
18618else
18619 cat >conftest.$ac_ext <<_ACEOF
18620/* confdefs.h. */
18621_ACEOF
18622cat confdefs.h >>conftest.$ac_ext
18623cat >>conftest.$ac_ext <<_ACEOF
18624/* end confdefs.h. */
18625/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18627#define $ac_func innocuous_$ac_func
18628
18629/* System header to define __stub macros and hopefully few prototypes,
18630 which can conflict with char $ac_func (); below.
18631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18632 <limits.h> exists even on freestanding compilers. */
18633
18634#ifdef __STDC__
18635# include <limits.h>
18636#else
18637# include <assert.h>
18638#endif
18639
18640#undef $ac_func
18641
18642/* Override any GCC internal prototype to avoid an error.
18643 Use char because int might match the return type of a GCC
18644 builtin and then its argument prototype would still apply. */
18645#ifdef __cplusplus
18646extern "C"
18647#endif
18648char $ac_func ();
18649/* The GNU C library defines this for functions which it implements
18650 to always fail with ENOSYS. Some functions are actually named
18651 something starting with __ and the normal name is an alias. */
18652#if defined __stub_$ac_func || defined __stub___$ac_func
18653choke me
18654#endif
18655
18656int
18657main ()
18658{
18659return $ac_func ();
18660 ;
18661 return 0;
18662}
18663_ACEOF
18664rm -f conftest.$ac_objext conftest$ac_exeext
18665if { (ac_try="$ac_link"
18666case "(($ac_try" in
18667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18668 *) ac_try_echo=$ac_try;;
18669esac
18670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18671 (eval "$ac_link") 2>conftest.er1
18672 ac_status=$?
18673 grep -v '^ *+' conftest.er1 >conftest.err
18674 rm -f conftest.er1
18675 cat conftest.err >&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } && {
18678 test -z "$ac_c_werror_flag" ||
18679 test ! -s conftest.err
18680 } && test -s conftest$ac_exeext &&
18681 $as_test_x conftest$ac_exeext; then
18682 eval "$as_ac_var=yes"
18683else
18684 echo "$as_me: failed program was:" >&5
18685sed 's/^/| /' conftest.$ac_ext >&5
18686
18687 eval "$as_ac_var=no"
18688fi
18689
18690rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18691 conftest$ac_exeext conftest.$ac_ext
18692fi
18693ac_res=`eval echo '${'$as_ac_var'}'`
18694 { echo "$as_me:$LINENO: result: $ac_res" >&5
18695echo "${ECHO_T}$ac_res" >&6; }
18696if test `eval echo '${'$as_ac_var'}'` = yes; then
10976 cat >>confdefs.h <<_ACEOF 18697 cat >>confdefs.h <<_ACEOF
10977#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18698#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10978_ACEOF 18699_ACEOF
10979 18700
10980fi 18701fi
10981done 18702done
10982 18703
18704
18705
18706
18707
18708
18709
10983for ac_func in endutent getutent getutid getutline pututline setutent 18710for ac_func in endutent getutent getutid getutline pututline setutent
10984do : 18711do
10985 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18712as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10986ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18713{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10987if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18714echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18715if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18716 echo $ECHO_N "(cached) $ECHO_C" >&6
18717else
18718 cat >conftest.$ac_ext <<_ACEOF
18719/* confdefs.h. */
18720_ACEOF
18721cat confdefs.h >>conftest.$ac_ext
18722cat >>conftest.$ac_ext <<_ACEOF
18723/* end confdefs.h. */
18724/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18726#define $ac_func innocuous_$ac_func
18727
18728/* System header to define __stub macros and hopefully few prototypes,
18729 which can conflict with char $ac_func (); below.
18730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18731 <limits.h> exists even on freestanding compilers. */
18732
18733#ifdef __STDC__
18734# include <limits.h>
18735#else
18736# include <assert.h>
18737#endif
18738
18739#undef $ac_func
18740
18741/* Override any GCC internal prototype to avoid an error.
18742 Use char because int might match the return type of a GCC
18743 builtin and then its argument prototype would still apply. */
18744#ifdef __cplusplus
18745extern "C"
18746#endif
18747char $ac_func ();
18748/* The GNU C library defines this for functions which it implements
18749 to always fail with ENOSYS. Some functions are actually named
18750 something starting with __ and the normal name is an alias. */
18751#if defined __stub_$ac_func || defined __stub___$ac_func
18752choke me
18753#endif
18754
18755int
18756main ()
18757{
18758return $ac_func ();
18759 ;
18760 return 0;
18761}
18762_ACEOF
18763rm -f conftest.$ac_objext conftest$ac_exeext
18764if { (ac_try="$ac_link"
18765case "(($ac_try" in
18766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18767 *) ac_try_echo=$ac_try;;
18768esac
18769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18770 (eval "$ac_link") 2>conftest.er1
18771 ac_status=$?
18772 grep -v '^ *+' conftest.er1 >conftest.err
18773 rm -f conftest.er1
18774 cat conftest.err >&5
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); } && {
18777 test -z "$ac_c_werror_flag" ||
18778 test ! -s conftest.err
18779 } && test -s conftest$ac_exeext &&
18780 $as_test_x conftest$ac_exeext; then
18781 eval "$as_ac_var=yes"
18782else
18783 echo "$as_me: failed program was:" >&5
18784sed 's/^/| /' conftest.$ac_ext >&5
18785
18786 eval "$as_ac_var=no"
18787fi
18788
18789rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18790 conftest$ac_exeext conftest.$ac_ext
18791fi
18792ac_res=`eval echo '${'$as_ac_var'}'`
18793 { echo "$as_me:$LINENO: result: $ac_res" >&5
18794echo "${ECHO_T}$ac_res" >&6; }
18795if test `eval echo '${'$as_ac_var'}'` = yes; then
10988 cat >>confdefs.h <<_ACEOF 18796 cat >>confdefs.h <<_ACEOF
10989#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18797#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10990_ACEOF 18798_ACEOF
10991 18799
10992fi 18800fi
10993done 18801done
10994 18802
18803
10995for ac_func in utmpname 18804for ac_func in utmpname
10996do : 18805do
10997 ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname" 18806as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10998if test "x$ac_cv_func_utmpname" = xyes; then : 18807{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18808echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18809if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18810 echo $ECHO_N "(cached) $ECHO_C" >&6
18811else
18812 cat >conftest.$ac_ext <<_ACEOF
18813/* confdefs.h. */
18814_ACEOF
18815cat confdefs.h >>conftest.$ac_ext
18816cat >>conftest.$ac_ext <<_ACEOF
18817/* end confdefs.h. */
18818/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18820#define $ac_func innocuous_$ac_func
18821
18822/* System header to define __stub macros and hopefully few prototypes,
18823 which can conflict with char $ac_func (); below.
18824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18825 <limits.h> exists even on freestanding compilers. */
18826
18827#ifdef __STDC__
18828# include <limits.h>
18829#else
18830# include <assert.h>
18831#endif
18832
18833#undef $ac_func
18834
18835/* Override any GCC internal prototype to avoid an error.
18836 Use char because int might match the return type of a GCC
18837 builtin and then its argument prototype would still apply. */
18838#ifdef __cplusplus
18839extern "C"
18840#endif
18841char $ac_func ();
18842/* The GNU C library defines this for functions which it implements
18843 to always fail with ENOSYS. Some functions are actually named
18844 something starting with __ and the normal name is an alias. */
18845#if defined __stub_$ac_func || defined __stub___$ac_func
18846choke me
18847#endif
18848
18849int
18850main ()
18851{
18852return $ac_func ();
18853 ;
18854 return 0;
18855}
18856_ACEOF
18857rm -f conftest.$ac_objext conftest$ac_exeext
18858if { (ac_try="$ac_link"
18859case "(($ac_try" in
18860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861 *) ac_try_echo=$ac_try;;
18862esac
18863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18864 (eval "$ac_link") 2>conftest.er1
18865 ac_status=$?
18866 grep -v '^ *+' conftest.er1 >conftest.err
18867 rm -f conftest.er1
18868 cat conftest.err >&5
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); } && {
18871 test -z "$ac_c_werror_flag" ||
18872 test ! -s conftest.err
18873 } && test -s conftest$ac_exeext &&
18874 $as_test_x conftest$ac_exeext; then
18875 eval "$as_ac_var=yes"
18876else
18877 echo "$as_me: failed program was:" >&5
18878sed 's/^/| /' conftest.$ac_ext >&5
18879
18880 eval "$as_ac_var=no"
18881fi
18882
18883rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18884 conftest$ac_exeext conftest.$ac_ext
18885fi
18886ac_res=`eval echo '${'$as_ac_var'}'`
18887 { echo "$as_me:$LINENO: result: $ac_res" >&5
18888echo "${ECHO_T}$ac_res" >&6; }
18889if test `eval echo '${'$as_ac_var'}'` = yes; then
10999 cat >>confdefs.h <<_ACEOF 18890 cat >>confdefs.h <<_ACEOF
11000#define HAVE_UTMPNAME 1 18891#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11001_ACEOF 18892_ACEOF
11002 18893
11003fi 18894fi
11004done 18895done
11005 18896
18897
18898
18899
18900
18901
18902
11006for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline 18903for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
11007do : 18904do
11008 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18905as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11009ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18906{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11010if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18907echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18908if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18909 echo $ECHO_N "(cached) $ECHO_C" >&6
18910else
18911 cat >conftest.$ac_ext <<_ACEOF
18912/* confdefs.h. */
18913_ACEOF
18914cat confdefs.h >>conftest.$ac_ext
18915cat >>conftest.$ac_ext <<_ACEOF
18916/* end confdefs.h. */
18917/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18919#define $ac_func innocuous_$ac_func
18920
18921/* System header to define __stub macros and hopefully few prototypes,
18922 which can conflict with char $ac_func (); below.
18923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18924 <limits.h> exists even on freestanding compilers. */
18925
18926#ifdef __STDC__
18927# include <limits.h>
18928#else
18929# include <assert.h>
18930#endif
18931
18932#undef $ac_func
18933
18934/* Override any GCC internal prototype to avoid an error.
18935 Use char because int might match the return type of a GCC
18936 builtin and then its argument prototype would still apply. */
18937#ifdef __cplusplus
18938extern "C"
18939#endif
18940char $ac_func ();
18941/* The GNU C library defines this for functions which it implements
18942 to always fail with ENOSYS. Some functions are actually named
18943 something starting with __ and the normal name is an alias. */
18944#if defined __stub_$ac_func || defined __stub___$ac_func
18945choke me
18946#endif
18947
18948int
18949main ()
18950{
18951return $ac_func ();
18952 ;
18953 return 0;
18954}
18955_ACEOF
18956rm -f conftest.$ac_objext conftest$ac_exeext
18957if { (ac_try="$ac_link"
18958case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18961esac
18962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_link") 2>conftest.er1
18964 ac_status=$?
18965 grep -v '^ *+' conftest.er1 >conftest.err
18966 rm -f conftest.er1
18967 cat conftest.err >&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } && {
18970 test -z "$ac_c_werror_flag" ||
18971 test ! -s conftest.err
18972 } && test -s conftest$ac_exeext &&
18973 $as_test_x conftest$ac_exeext; then
18974 eval "$as_ac_var=yes"
18975else
18976 echo "$as_me: failed program was:" >&5
18977sed 's/^/| /' conftest.$ac_ext >&5
18978
18979 eval "$as_ac_var=no"
18980fi
18981
18982rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18983 conftest$ac_exeext conftest.$ac_ext
18984fi
18985ac_res=`eval echo '${'$as_ac_var'}'`
18986 { echo "$as_me:$LINENO: result: $ac_res" >&5
18987echo "${ECHO_T}$ac_res" >&6; }
18988if test `eval echo '${'$as_ac_var'}'` = yes; then
11011 cat >>confdefs.h <<_ACEOF 18989 cat >>confdefs.h <<_ACEOF
11012#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18990#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11013_ACEOF 18991_ACEOF
11014 18992
11015fi 18993fi
11016done 18994done
11017 18995
18996
18997
18998
11018for ac_func in setutxdb setutxent utmpxname 18999for ac_func in setutxdb setutxent utmpxname
11019do : 19000do
11020 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19001as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11021ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19002{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11022if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19003echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19004if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19005 echo $ECHO_N "(cached) $ECHO_C" >&6
19006else
19007 cat >conftest.$ac_ext <<_ACEOF
19008/* confdefs.h. */
19009_ACEOF
19010cat confdefs.h >>conftest.$ac_ext
19011cat >>conftest.$ac_ext <<_ACEOF
19012/* end confdefs.h. */
19013/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19015#define $ac_func innocuous_$ac_func
19016
19017/* System header to define __stub macros and hopefully few prototypes,
19018 which can conflict with char $ac_func (); below.
19019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19020 <limits.h> exists even on freestanding compilers. */
19021
19022#ifdef __STDC__
19023# include <limits.h>
19024#else
19025# include <assert.h>
19026#endif
19027
19028#undef $ac_func
19029
19030/* Override any GCC internal prototype to avoid an error.
19031 Use char because int might match the return type of a GCC
19032 builtin and then its argument prototype would still apply. */
19033#ifdef __cplusplus
19034extern "C"
19035#endif
19036char $ac_func ();
19037/* The GNU C library defines this for functions which it implements
19038 to always fail with ENOSYS. Some functions are actually named
19039 something starting with __ and the normal name is an alias. */
19040#if defined __stub_$ac_func || defined __stub___$ac_func
19041choke me
19042#endif
19043
19044int
19045main ()
19046{
19047return $ac_func ();
19048 ;
19049 return 0;
19050}
19051_ACEOF
19052rm -f conftest.$ac_objext conftest$ac_exeext
19053if { (ac_try="$ac_link"
19054case "(($ac_try" in
19055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19056 *) ac_try_echo=$ac_try;;
19057esac
19058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19059 (eval "$ac_link") 2>conftest.er1
19060 ac_status=$?
19061 grep -v '^ *+' conftest.er1 >conftest.err
19062 rm -f conftest.er1
19063 cat conftest.err >&5
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); } && {
19066 test -z "$ac_c_werror_flag" ||
19067 test ! -s conftest.err
19068 } && test -s conftest$ac_exeext &&
19069 $as_test_x conftest$ac_exeext; then
19070 eval "$as_ac_var=yes"
19071else
19072 echo "$as_me: failed program was:" >&5
19073sed 's/^/| /' conftest.$ac_ext >&5
19074
19075 eval "$as_ac_var=no"
19076fi
19077
19078rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19079 conftest$ac_exeext conftest.$ac_ext
19080fi
19081ac_res=`eval echo '${'$as_ac_var'}'`
19082 { echo "$as_me:$LINENO: result: $ac_res" >&5
19083echo "${ECHO_T}$ac_res" >&6; }
19084if test `eval echo '${'$as_ac_var'}'` = yes; then
11023 cat >>confdefs.h <<_ACEOF 19085 cat >>confdefs.h <<_ACEOF
11024#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19086#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11025_ACEOF 19087_ACEOF
11026 19088
11027fi 19089fi
11028done 19090done
11029 19091
19092
11030for ac_func in getlastlogxbyname 19093for ac_func in getlastlogxbyname
11031do : 19094do
11032 ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname" 19095as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11033if test "x$ac_cv_func_getlastlogxbyname" = xyes; then : 19096{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19097echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19098if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19099 echo $ECHO_N "(cached) $ECHO_C" >&6
19100else
19101 cat >conftest.$ac_ext <<_ACEOF
19102/* confdefs.h. */
19103_ACEOF
19104cat confdefs.h >>conftest.$ac_ext
19105cat >>conftest.$ac_ext <<_ACEOF
19106/* end confdefs.h. */
19107/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19109#define $ac_func innocuous_$ac_func
19110
19111/* System header to define __stub macros and hopefully few prototypes,
19112 which can conflict with char $ac_func (); below.
19113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19114 <limits.h> exists even on freestanding compilers. */
19115
19116#ifdef __STDC__
19117# include <limits.h>
19118#else
19119# include <assert.h>
19120#endif
19121
19122#undef $ac_func
19123
19124/* Override any GCC internal prototype to avoid an error.
19125 Use char because int might match the return type of a GCC
19126 builtin and then its argument prototype would still apply. */
19127#ifdef __cplusplus
19128extern "C"
19129#endif
19130char $ac_func ();
19131/* The GNU C library defines this for functions which it implements
19132 to always fail with ENOSYS. Some functions are actually named
19133 something starting with __ and the normal name is an alias. */
19134#if defined __stub_$ac_func || defined __stub___$ac_func
19135choke me
19136#endif
19137
19138int
19139main ()
19140{
19141return $ac_func ();
19142 ;
19143 return 0;
19144}
19145_ACEOF
19146rm -f conftest.$ac_objext conftest$ac_exeext
19147if { (ac_try="$ac_link"
19148case "(($ac_try" in
19149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150 *) ac_try_echo=$ac_try;;
19151esac
19152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19153 (eval "$ac_link") 2>conftest.er1
19154 ac_status=$?
19155 grep -v '^ *+' conftest.er1 >conftest.err
19156 rm -f conftest.er1
19157 cat conftest.err >&5
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); } && {
19160 test -z "$ac_c_werror_flag" ||
19161 test ! -s conftest.err
19162 } && test -s conftest$ac_exeext &&
19163 $as_test_x conftest$ac_exeext; then
19164 eval "$as_ac_var=yes"
19165else
19166 echo "$as_me: failed program was:" >&5
19167sed 's/^/| /' conftest.$ac_ext >&5
19168
19169 eval "$as_ac_var=no"
19170fi
19171
19172rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19173 conftest$ac_exeext conftest.$ac_ext
19174fi
19175ac_res=`eval echo '${'$as_ac_var'}'`
19176 { echo "$as_me:$LINENO: result: $ac_res" >&5
19177echo "${ECHO_T}$ac_res" >&6; }
19178if test `eval echo '${'$as_ac_var'}'` = yes; then
11034 cat >>confdefs.h <<_ACEOF 19179 cat >>confdefs.h <<_ACEOF
11035#define HAVE_GETLASTLOGXBYNAME 1 19180#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11036_ACEOF 19181_ACEOF
11037 19182
11038fi 19183fi
11039done 19184done
11040 19185
11041 19186
11042ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 19187{ echo "$as_me:$LINENO: checking for daemon" >&5
11043if test "x$ac_cv_func_daemon" = xyes; then : 19188echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
19189if test "${ac_cv_func_daemon+set}" = set; then
19190 echo $ECHO_N "(cached) $ECHO_C" >&6
19191else
19192 cat >conftest.$ac_ext <<_ACEOF
19193/* confdefs.h. */
19194_ACEOF
19195cat confdefs.h >>conftest.$ac_ext
19196cat >>conftest.$ac_ext <<_ACEOF
19197/* end confdefs.h. */
19198/* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
19199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19200#define daemon innocuous_daemon
19201
19202/* System header to define __stub macros and hopefully few prototypes,
19203 which can conflict with char daemon (); below.
19204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19205 <limits.h> exists even on freestanding compilers. */
19206
19207#ifdef __STDC__
19208# include <limits.h>
19209#else
19210# include <assert.h>
19211#endif
19212
19213#undef daemon
19214
19215/* Override any GCC internal prototype to avoid an error.
19216 Use char because int might match the return type of a GCC
19217 builtin and then its argument prototype would still apply. */
19218#ifdef __cplusplus
19219extern "C"
19220#endif
19221char daemon ();
19222/* The GNU C library defines this for functions which it implements
19223 to always fail with ENOSYS. Some functions are actually named
19224 something starting with __ and the normal name is an alias. */
19225#if defined __stub_daemon || defined __stub___daemon
19226choke me
19227#endif
19228
19229int
19230main ()
19231{
19232return daemon ();
19233 ;
19234 return 0;
19235}
19236_ACEOF
19237rm -f conftest.$ac_objext conftest$ac_exeext
19238if { (ac_try="$ac_link"
19239case "(($ac_try" in
19240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19241 *) ac_try_echo=$ac_try;;
19242esac
19243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19244 (eval "$ac_link") 2>conftest.er1
19245 ac_status=$?
19246 grep -v '^ *+' conftest.er1 >conftest.err
19247 rm -f conftest.er1
19248 cat conftest.err >&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); } && {
19251 test -z "$ac_c_werror_flag" ||
19252 test ! -s conftest.err
19253 } && test -s conftest$ac_exeext &&
19254 $as_test_x conftest$ac_exeext; then
19255 ac_cv_func_daemon=yes
19256else
19257 echo "$as_me: failed program was:" >&5
19258sed 's/^/| /' conftest.$ac_ext >&5
19259
19260 ac_cv_func_daemon=no
19261fi
19262
19263rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19264 conftest$ac_exeext conftest.$ac_ext
19265fi
19266{ echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
19267echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
19268if test $ac_cv_func_daemon = yes; then
11044 19269
11045$as_echo "#define HAVE_DAEMON 1" >>confdefs.h 19270cat >>confdefs.h <<\_ACEOF
19271#define HAVE_DAEMON 1
19272_ACEOF
11046 19273
11047else 19274else
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5 19275 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
11049$as_echo_n "checking for daemon in -lbsd... " >&6; } 19276echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
11050if ${ac_cv_lib_bsd_daemon+:} false; then : 19277if test "${ac_cv_lib_bsd_daemon+set}" = set; then
11051 $as_echo_n "(cached) " >&6 19278 echo $ECHO_N "(cached) $ECHO_C" >&6
11052else 19279else
11053 ac_check_lib_save_LIBS=$LIBS 19280 ac_check_lib_save_LIBS=$LIBS
11054LIBS="-lbsd $LIBS" 19281LIBS="-lbsd $LIBS"
11055cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19282cat >conftest.$ac_ext <<_ACEOF
19283/* confdefs.h. */
19284_ACEOF
19285cat confdefs.h >>conftest.$ac_ext
19286cat >>conftest.$ac_ext <<_ACEOF
11056/* end confdefs.h. */ 19287/* end confdefs.h. */
11057 19288
11058/* Override any GCC internal prototype to avoid an error. 19289/* Override any GCC internal prototype to avoid an error.
@@ -11070,19 +19301,42 @@ return daemon ();
11070 return 0; 19301 return 0;
11071} 19302}
11072_ACEOF 19303_ACEOF
11073if ac_fn_c_try_link "$LINENO"; then : 19304rm -f conftest.$ac_objext conftest$ac_exeext
19305if { (ac_try="$ac_link"
19306case "(($ac_try" in
19307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19308 *) ac_try_echo=$ac_try;;
19309esac
19310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19311 (eval "$ac_link") 2>conftest.er1
19312 ac_status=$?
19313 grep -v '^ *+' conftest.er1 >conftest.err
19314 rm -f conftest.er1
19315 cat conftest.err >&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); } && {
19318 test -z "$ac_c_werror_flag" ||
19319 test ! -s conftest.err
19320 } && test -s conftest$ac_exeext &&
19321 $as_test_x conftest$ac_exeext; then
11074 ac_cv_lib_bsd_daemon=yes 19322 ac_cv_lib_bsd_daemon=yes
11075else 19323else
11076 ac_cv_lib_bsd_daemon=no 19324 echo "$as_me: failed program was:" >&5
19325sed 's/^/| /' conftest.$ac_ext >&5
19326
19327 ac_cv_lib_bsd_daemon=no
11077fi 19328fi
11078rm -f core conftest.err conftest.$ac_objext \ 19329
11079 conftest$ac_exeext conftest.$ac_ext 19330rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19331 conftest$ac_exeext conftest.$ac_ext
11080LIBS=$ac_check_lib_save_LIBS 19332LIBS=$ac_check_lib_save_LIBS
11081fi 19333fi
11082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5 19334{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
11083$as_echo "$ac_cv_lib_bsd_daemon" >&6; } 19335echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
11084if test "x$ac_cv_lib_bsd_daemon" = xyes; then : 19336if test $ac_cv_lib_bsd_daemon = yes; then
11085 LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h 19337 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
19338#define HAVE_DAEMON 1
19339_ACEOF
11086 19340
11087fi 19341fi
11088 19342
@@ -11090,20 +19344,106 @@ fi
11090fi 19344fi
11091 19345
11092 19346
11093ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 19347{ echo "$as_me:$LINENO: checking for getpagesize" >&5
11094if test "x$ac_cv_func_getpagesize" = xyes; then : 19348echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
19349if test "${ac_cv_func_getpagesize+set}" = set; then
19350 echo $ECHO_N "(cached) $ECHO_C" >&6
19351else
19352 cat >conftest.$ac_ext <<_ACEOF
19353/* confdefs.h. */
19354_ACEOF
19355cat confdefs.h >>conftest.$ac_ext
19356cat >>conftest.$ac_ext <<_ACEOF
19357/* end confdefs.h. */
19358/* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
19359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19360#define getpagesize innocuous_getpagesize
19361
19362/* System header to define __stub macros and hopefully few prototypes,
19363 which can conflict with char getpagesize (); below.
19364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19365 <limits.h> exists even on freestanding compilers. */
19366
19367#ifdef __STDC__
19368# include <limits.h>
19369#else
19370# include <assert.h>
19371#endif
19372
19373#undef getpagesize
19374
19375/* Override any GCC internal prototype to avoid an error.
19376 Use char because int might match the return type of a GCC
19377 builtin and then its argument prototype would still apply. */
19378#ifdef __cplusplus
19379extern "C"
19380#endif
19381char getpagesize ();
19382/* The GNU C library defines this for functions which it implements
19383 to always fail with ENOSYS. Some functions are actually named
19384 something starting with __ and the normal name is an alias. */
19385#if defined __stub_getpagesize || defined __stub___getpagesize
19386choke me
19387#endif
19388
19389int
19390main ()
19391{
19392return getpagesize ();
19393 ;
19394 return 0;
19395}
19396_ACEOF
19397rm -f conftest.$ac_objext conftest$ac_exeext
19398if { (ac_try="$ac_link"
19399case "(($ac_try" in
19400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19401 *) ac_try_echo=$ac_try;;
19402esac
19403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19404 (eval "$ac_link") 2>conftest.er1
19405 ac_status=$?
19406 grep -v '^ *+' conftest.er1 >conftest.err
19407 rm -f conftest.er1
19408 cat conftest.err >&5
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); } && {
19411 test -z "$ac_c_werror_flag" ||
19412 test ! -s conftest.err
19413 } && test -s conftest$ac_exeext &&
19414 $as_test_x conftest$ac_exeext; then
19415 ac_cv_func_getpagesize=yes
19416else
19417 echo "$as_me: failed program was:" >&5
19418sed 's/^/| /' conftest.$ac_ext >&5
19419
19420 ac_cv_func_getpagesize=no
19421fi
19422
19423rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19424 conftest$ac_exeext conftest.$ac_ext
19425fi
19426{ echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
19427echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; }
19428if test $ac_cv_func_getpagesize = yes; then
11095 19429
11096$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h 19430cat >>confdefs.h <<\_ACEOF
19431#define HAVE_GETPAGESIZE 1
19432_ACEOF
11097 19433
11098else 19434else
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5 19435 { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
11100$as_echo_n "checking for getpagesize in -lucb... " >&6; } 19436echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; }
11101if ${ac_cv_lib_ucb_getpagesize+:} false; then : 19437if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
11102 $as_echo_n "(cached) " >&6 19438 echo $ECHO_N "(cached) $ECHO_C" >&6
11103else 19439else
11104 ac_check_lib_save_LIBS=$LIBS 19440 ac_check_lib_save_LIBS=$LIBS
11105LIBS="-lucb $LIBS" 19441LIBS="-lucb $LIBS"
11106cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19442cat >conftest.$ac_ext <<_ACEOF
19443/* confdefs.h. */
19444_ACEOF
19445cat confdefs.h >>conftest.$ac_ext
19446cat >>conftest.$ac_ext <<_ACEOF
11107/* end confdefs.h. */ 19447/* end confdefs.h. */
11108 19448
11109/* Override any GCC internal prototype to avoid an error. 19449/* Override any GCC internal prototype to avoid an error.
@@ -11121,19 +19461,42 @@ return getpagesize ();
11121 return 0; 19461 return 0;
11122} 19462}
11123_ACEOF 19463_ACEOF
11124if ac_fn_c_try_link "$LINENO"; then : 19464rm -f conftest.$ac_objext conftest$ac_exeext
19465if { (ac_try="$ac_link"
19466case "(($ac_try" in
19467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468 *) ac_try_echo=$ac_try;;
19469esac
19470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19471 (eval "$ac_link") 2>conftest.er1
19472 ac_status=$?
19473 grep -v '^ *+' conftest.er1 >conftest.err
19474 rm -f conftest.er1
19475 cat conftest.err >&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); } && {
19478 test -z "$ac_c_werror_flag" ||
19479 test ! -s conftest.err
19480 } && test -s conftest$ac_exeext &&
19481 $as_test_x conftest$ac_exeext; then
11125 ac_cv_lib_ucb_getpagesize=yes 19482 ac_cv_lib_ucb_getpagesize=yes
11126else 19483else
11127 ac_cv_lib_ucb_getpagesize=no 19484 echo "$as_me: failed program was:" >&5
19485sed 's/^/| /' conftest.$ac_ext >&5
19486
19487 ac_cv_lib_ucb_getpagesize=no
11128fi 19488fi
11129rm -f core conftest.err conftest.$ac_objext \ 19489
11130 conftest$ac_exeext conftest.$ac_ext 19490rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19491 conftest$ac_exeext conftest.$ac_ext
11131LIBS=$ac_check_lib_save_LIBS 19492LIBS=$ac_check_lib_save_LIBS
11132fi 19493fi
11133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5 19494{ echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
11134$as_echo "$ac_cv_lib_ucb_getpagesize" >&6; } 19495echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; }
11135if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then : 19496if test $ac_cv_lib_ucb_getpagesize = yes; then
11136 LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h 19497 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
19498#define HAVE_GETPAGESIZE 1
19499_ACEOF
11137 19500
11138fi 19501fi
11139 19502
@@ -11143,14 +19506,18 @@ fi
11143 19506
11144# Check for broken snprintf 19507# Check for broken snprintf
11145if test "x$ac_cv_func_snprintf" = "xyes" ; then 19508if test "x$ac_cv_func_snprintf" = "xyes" ; then
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5 19509 { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
11147$as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; } 19510echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; }
11148 if test "$cross_compiling" = yes; then : 19511 if test "$cross_compiling" = yes; then
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5 19512 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
11150$as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} 19513echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
11151 19514
11152else 19515else
11153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19516 cat >conftest.$ac_ext <<_ACEOF
19517/* confdefs.h. */
19518_ACEOF
19519cat confdefs.h >>conftest.$ac_ext
19520cat >>conftest.$ac_ext <<_ACEOF
11154/* end confdefs.h. */ 19521/* end confdefs.h. */
11155 #include <stdio.h> 19522 #include <stdio.h>
11156int 19523int
@@ -11165,37 +19532,67 @@ main ()
11165 return 0; 19532 return 0;
11166} 19533}
11167_ACEOF 19534_ACEOF
11168if ac_fn_c_try_run "$LINENO"; then : 19535rm -f conftest$ac_exeext
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19536if { (ac_try="$ac_link"
11170$as_echo "yes" >&6; } 19537case "(($ac_try" in
19538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19539 *) ac_try_echo=$ac_try;;
19540esac
19541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19542 (eval "$ac_link") 2>&5
19543 ac_status=$?
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19546 { (case "(($ac_try" in
19547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19548 *) ac_try_echo=$ac_try;;
19549esac
19550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19551 (eval "$ac_try") 2>&5
19552 ac_status=$?
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); }; }; then
19555 { echo "$as_me:$LINENO: result: yes" >&5
19556echo "${ECHO_T}yes" >&6; }
11171else 19557else
19558 echo "$as_me: program exited with status $ac_status" >&5
19559echo "$as_me: failed program was:" >&5
19560sed 's/^/| /' conftest.$ac_ext >&5
19561
19562( exit $ac_status )
11172 19563
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19564 { echo "$as_me:$LINENO: result: no" >&5
11174$as_echo "no" >&6; } 19565echo "${ECHO_T}no" >&6; }
11175 19566
11176$as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h 19567cat >>confdefs.h <<\_ACEOF
19568#define BROKEN_SNPRINTF 1
19569_ACEOF
11177 19570
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 19571 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
11179$as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} 19572echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
11180 19573
11181fi 19574fi
11182rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19575rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11183 conftest.$ac_objext conftest.beam conftest.$ac_ext
11184fi 19576fi
11185 19577
19578
11186fi 19579fi
11187 19580
11188# We depend on vsnprintf returning the right thing on overflow: the 19581# We depend on vsnprintf returning the right thing on overflow: the
11189# number of characters it tried to create (as per SUSv3) 19582# number of characters it tried to create (as per SUSv3)
11190if test "x$ac_cv_func_vsnprintf" = "xyes" ; then 19583if test "x$ac_cv_func_vsnprintf" = "xyes" ; then
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5 19584 { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5
11192$as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; } 19585echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; }
11193 if test "$cross_compiling" = yes; then : 19586 if test "$cross_compiling" = yes; then
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5 19587 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5
11195$as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;} 19588echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
11196 19589
11197else 19590else
11198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19591 cat >conftest.$ac_ext <<_ACEOF
19592/* confdefs.h. */
19593_ACEOF
19594cat confdefs.h >>conftest.$ac_ext
19595cat >>conftest.$ac_ext <<_ACEOF
11199/* end confdefs.h. */ 19596/* end confdefs.h. */
11200 19597
11201#include <sys/types.h> 19598#include <sys/types.h>
@@ -11228,32 +19625,62 @@ return 0;
11228 return 0; 19625 return 0;
11229} 19626}
11230_ACEOF 19627_ACEOF
11231if ac_fn_c_try_run "$LINENO"; then : 19628rm -f conftest$ac_exeext
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19629if { (ac_try="$ac_link"
11233$as_echo "yes" >&6; } 19630case "(($ac_try" in
19631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632 *) ac_try_echo=$ac_try;;
19633esac
19634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635 (eval "$ac_link") 2>&5
19636 ac_status=$?
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19639 { (case "(($ac_try" in
19640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641 *) ac_try_echo=$ac_try;;
19642esac
19643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644 (eval "$ac_try") 2>&5
19645 ac_status=$?
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; }; then
19648 { echo "$as_me:$LINENO: result: yes" >&5
19649echo "${ECHO_T}yes" >&6; }
11234else 19650else
19651 echo "$as_me: program exited with status $ac_status" >&5
19652echo "$as_me: failed program was:" >&5
19653sed 's/^/| /' conftest.$ac_ext >&5
19654
19655( exit $ac_status )
11235 19656
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19657 { echo "$as_me:$LINENO: result: no" >&5
11237$as_echo "no" >&6; } 19658echo "${ECHO_T}no" >&6; }
11238 19659
11239$as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h 19660cat >>confdefs.h <<\_ACEOF
19661#define BROKEN_SNPRINTF 1
19662_ACEOF
11240 19663
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5 19664 { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
11242$as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;} 19665echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
11243 19666
11244fi 19667fi
11245rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19668rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11246 conftest.$ac_objext conftest.beam conftest.$ac_ext
11247fi 19669fi
11248 19670
19671
11249fi 19672fi
11250 19673
11251# On systems where [v]snprintf is broken, but is declared in stdio, 19674# On systems where [v]snprintf is broken, but is declared in stdio,
11252# check that the fmt argument is const char * or just char *. 19675# check that the fmt argument is const char * or just char *.
11253# This is only useful for when BROKEN_SNPRINTF 19676# This is only useful for when BROKEN_SNPRINTF
11254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5 19677{ echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5
11255$as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; } 19678echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; }
11256cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19679cat >conftest.$ac_ext <<_ACEOF
19680/* confdefs.h. */
19681_ACEOF
19682cat confdefs.h >>conftest.$ac_ext
19683cat >>conftest.$ac_ext <<_ACEOF
11257/* end confdefs.h. */ 19684/* end confdefs.h. */
11258 19685
11259#include <stdio.h> 19686#include <stdio.h>
@@ -11269,26 +19696,54 @@ main ()
11269 return 0; 19696 return 0;
11270} 19697}
11271_ACEOF 19698_ACEOF
11272if ac_fn_c_try_compile "$LINENO"; then : 19699rm -f conftest.$ac_objext
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19700if { (ac_try="$ac_compile"
11274$as_echo "yes" >&6; } 19701case "(($ac_try" in
19702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19703 *) ac_try_echo=$ac_try;;
19704esac
19705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19706 (eval "$ac_compile") 2>conftest.er1
19707 ac_status=$?
19708 grep -v '^ *+' conftest.er1 >conftest.err
19709 rm -f conftest.er1
19710 cat conftest.err >&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } && {
19713 test -z "$ac_c_werror_flag" ||
19714 test ! -s conftest.err
19715 } && test -s conftest.$ac_objext; then
19716 { echo "$as_me:$LINENO: result: yes" >&5
19717echo "${ECHO_T}yes" >&6; }
11275 19718
11276$as_echo "#define SNPRINTF_CONST const" >>confdefs.h 19719cat >>confdefs.h <<\_ACEOF
19720#define SNPRINTF_CONST const
19721_ACEOF
11277 19722
11278else 19723else
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19724 echo "$as_me: failed program was:" >&5
11280$as_echo "no" >&6; } 19725sed 's/^/| /' conftest.$ac_ext >&5
11281 $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h 19726
19727 { echo "$as_me:$LINENO: result: no" >&5
19728echo "${ECHO_T}no" >&6; }
19729 cat >>confdefs.h <<\_ACEOF
19730#define SNPRINTF_CONST /* not const */
19731_ACEOF
11282 19732
11283fi 19733fi
19734
11284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11285 19736
11286# Check for missing getpeereid (or equiv) support 19737# Check for missing getpeereid (or equiv) support
11287NO_PEERCHECK="" 19738NO_PEERCHECK=""
11288if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then 19739if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5 19740 { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5
11290$as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; } 19741echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; }
11291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19742 cat >conftest.$ac_ext <<_ACEOF
19743/* confdefs.h. */
19744_ACEOF
19745cat confdefs.h >>conftest.$ac_ext
19746cat >>conftest.$ac_ext <<_ACEOF
11292/* end confdefs.h. */ 19747/* end confdefs.h. */
11293 19748
11294#include <sys/types.h> 19749#include <sys/types.h>
@@ -11301,35 +19756,63 @@ int i = SO_PEERCRED;
11301 return 0; 19756 return 0;
11302} 19757}
11303_ACEOF 19758_ACEOF
11304if ac_fn_c_try_compile "$LINENO"; then : 19759rm -f conftest.$ac_objext
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19760if { (ac_try="$ac_compile"
11306$as_echo "yes" >&6; } 19761case "(($ac_try" in
19762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19763 *) ac_try_echo=$ac_try;;
19764esac
19765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19766 (eval "$ac_compile") 2>conftest.er1
19767 ac_status=$?
19768 grep -v '^ *+' conftest.er1 >conftest.err
19769 rm -f conftest.er1
19770 cat conftest.err >&5
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); } && {
19773 test -z "$ac_c_werror_flag" ||
19774 test ! -s conftest.err
19775 } && test -s conftest.$ac_objext; then
19776 { echo "$as_me:$LINENO: result: yes" >&5
19777echo "${ECHO_T}yes" >&6; }
11307 19778
11308$as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h 19779cat >>confdefs.h <<\_ACEOF
19780#define HAVE_SO_PEERCRED 1
19781_ACEOF
11309 19782
11310 19783
11311else 19784else
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19785 echo "$as_me: failed program was:" >&5
11313$as_echo "no" >&6; } 19786sed 's/^/| /' conftest.$ac_ext >&5
19787
19788 { echo "$as_me:$LINENO: result: no" >&5
19789echo "${ECHO_T}no" >&6; }
11314 NO_PEERCHECK=1 19790 NO_PEERCHECK=1
11315 19791
11316fi 19792fi
19793
11317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11318fi 19795fi
11319 19796
11320if test "x$ac_cv_func_mkdtemp" = "xyes" ; then 19797if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
11321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5 19798{ echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
11322$as_echo_n "checking for (overly) strict mkstemp... " >&6; } 19799echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; }
11323if test "$cross_compiling" = yes; then : 19800if test "$cross_compiling" = yes; then
11324 19801
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19802 { echo "$as_me:$LINENO: result: yes" >&5
11326$as_echo "yes" >&6; } 19803echo "${ECHO_T}yes" >&6; }
11327 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h 19804 cat >>confdefs.h <<\_ACEOF
19805#define HAVE_STRICT_MKSTEMP 1
19806_ACEOF
11328 19807
11329 19808
11330 19809
11331else 19810else
11332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19811 cat >conftest.$ac_ext <<_ACEOF
19812/* confdefs.h. */
19813_ACEOF
19814cat confdefs.h >>conftest.$ac_ext
19815cat >>conftest.$ac_ext <<_ACEOF
11333/* end confdefs.h. */ 19816/* end confdefs.h. */
11334 19817
11335#include <stdlib.h> 19818#include <stdlib.h>
@@ -11348,37 +19831,67 @@ main ()
11348 return 0; 19831 return 0;
11349} 19832}
11350_ACEOF 19833_ACEOF
11351if ac_fn_c_try_run "$LINENO"; then : 19834rm -f conftest$ac_exeext
19835if { (ac_try="$ac_link"
19836case "(($ac_try" in
19837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838 *) ac_try_echo=$ac_try;;
19839esac
19840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19841 (eval "$ac_link") 2>&5
19842 ac_status=$?
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19845 { (case "(($ac_try" in
19846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19847 *) ac_try_echo=$ac_try;;
19848esac
19849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19850 (eval "$ac_try") 2>&5
19851 ac_status=$?
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; }; then
11352 19854
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19855 { echo "$as_me:$LINENO: result: no" >&5
11354$as_echo "no" >&6; } 19856echo "${ECHO_T}no" >&6; }
11355 19857
11356else 19858else
19859 echo "$as_me: program exited with status $ac_status" >&5
19860echo "$as_me: failed program was:" >&5
19861sed 's/^/| /' conftest.$ac_ext >&5
19862
19863( exit $ac_status )
11357 19864
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19865 { echo "$as_me:$LINENO: result: yes" >&5
11359$as_echo "yes" >&6; } 19866echo "${ECHO_T}yes" >&6; }
11360 19867
11361$as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h 19868cat >>confdefs.h <<\_ACEOF
19869#define HAVE_STRICT_MKSTEMP 1
19870_ACEOF
11362 19871
11363 19872
11364fi 19873fi
11365rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19874rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11366 conftest.$ac_objext conftest.beam conftest.$ac_ext
11367fi 19875fi
11368 19876
19877
11369fi 19878fi
11370 19879
11371if test ! -z "$check_for_openpty_ctty_bug"; then 19880if test ! -z "$check_for_openpty_ctty_bug"; then
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5 19881 { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
11373$as_echo_n "checking if openpty correctly handles controlling tty... " >&6; } 19882echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; }
11374 if test "$cross_compiling" = yes; then : 19883 if test "$cross_compiling" = yes; then
11375 19884
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 19885 { echo "$as_me:$LINENO: result: cross-compiling, assuming yes" >&5
11377$as_echo "cross-compiling, assuming yes" >&6; } 19886echo "${ECHO_T}cross-compiling, assuming yes" >&6; }
11378 19887
11379 19888
11380else 19889else
11381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19890 cat >conftest.$ac_ext <<_ACEOF
19891/* confdefs.h. */
19892_ACEOF
19893cat confdefs.h >>conftest.$ac_ext
19894cat >>conftest.$ac_ext <<_ACEOF
11382/* end confdefs.h. */ 19895/* end confdefs.h. */
11383 19896
11384#include <stdio.h> 19897#include <stdio.h>
@@ -11417,37 +19930,67 @@ main ()
11417 return 0; 19930 return 0;
11418} 19931}
11419_ACEOF 19932_ACEOF
11420if ac_fn_c_try_run "$LINENO"; then : 19933rm -f conftest$ac_exeext
19934if { (ac_try="$ac_link"
19935case "(($ac_try" in
19936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937 *) ac_try_echo=$ac_try;;
19938esac
19939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940 (eval "$ac_link") 2>&5
19941 ac_status=$?
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19944 { (case "(($ac_try" in
19945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19946 *) ac_try_echo=$ac_try;;
19947esac
19948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19949 (eval "$ac_try") 2>&5
19950 ac_status=$?
19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); }; }; then
11421 19953
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19954 { echo "$as_me:$LINENO: result: yes" >&5
11423$as_echo "yes" >&6; } 19955echo "${ECHO_T}yes" >&6; }
11424 19956
11425else 19957else
19958 echo "$as_me: program exited with status $ac_status" >&5
19959echo "$as_me: failed program was:" >&5
19960sed 's/^/| /' conftest.$ac_ext >&5
11426 19961
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19962( exit $ac_status )
11428$as_echo "no" >&6; } 19963
11429 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h 19964 { echo "$as_me:$LINENO: result: no" >&5
19965echo "${ECHO_T}no" >&6; }
19966 cat >>confdefs.h <<\_ACEOF
19967#define SSHD_ACQUIRES_CTTY 1
19968_ACEOF
11430 19969
11431 19970
11432fi 19971fi
11433rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19972rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11434 conftest.$ac_objext conftest.beam conftest.$ac_ext
11435fi 19973fi
11436 19974
19975
11437fi 19976fi
11438 19977
11439if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ 19978if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
11440 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then 19979 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 19980 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
11442$as_echo_n "checking if getaddrinfo seems to work... " >&6; } 19981echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
11443 if test "$cross_compiling" = yes; then : 19982 if test "$cross_compiling" = yes; then
11444 19983
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 19984 { echo "$as_me:$LINENO: result: cross-compiling, assuming yes" >&5
11446$as_echo "cross-compiling, assuming yes" >&6; } 19985echo "${ECHO_T}cross-compiling, assuming yes" >&6; }
11447 19986
11448 19987
11449else 19988else
11450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19989 cat >conftest.$ac_ext <<_ACEOF
19990/* confdefs.h. */
19991_ACEOF
19992cat confdefs.h >>conftest.$ac_ext
19993cat >>conftest.$ac_ext <<_ACEOF
11451/* end confdefs.h. */ 19994/* end confdefs.h. */
11452 19995
11453#include <stdio.h> 19996#include <stdio.h>
@@ -11508,37 +20051,67 @@ main ()
11508 return 0; 20051 return 0;
11509} 20052}
11510_ACEOF 20053_ACEOF
11511if ac_fn_c_try_run "$LINENO"; then : 20054rm -f conftest$ac_exeext
20055if { (ac_try="$ac_link"
20056case "(($ac_try" in
20057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058 *) ac_try_echo=$ac_try;;
20059esac
20060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061 (eval "$ac_link") 2>&5
20062 ac_status=$?
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20065 { (case "(($ac_try" in
20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067 *) ac_try_echo=$ac_try;;
20068esac
20069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20070 (eval "$ac_try") 2>&5
20071 ac_status=$?
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); }; }; then
11512 20074
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20075 { echo "$as_me:$LINENO: result: yes" >&5
11514$as_echo "yes" >&6; } 20076echo "${ECHO_T}yes" >&6; }
11515 20077
11516else 20078else
20079 echo "$as_me: program exited with status $ac_status" >&5
20080echo "$as_me: failed program was:" >&5
20081sed 's/^/| /' conftest.$ac_ext >&5
11517 20082
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20083( exit $ac_status )
11519$as_echo "no" >&6; } 20084
11520 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h 20085 { echo "$as_me:$LINENO: result: no" >&5
20086echo "${ECHO_T}no" >&6; }
20087 cat >>confdefs.h <<\_ACEOF
20088#define BROKEN_GETADDRINFO 1
20089_ACEOF
11521 20090
11522 20091
11523fi 20092fi
11524rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20093rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11525 conftest.$ac_objext conftest.beam conftest.$ac_ext
11526fi 20094fi
11527 20095
20096
11528fi 20097fi
11529 20098
11530if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ 20099if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
11531 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then 20100 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 20101 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
11533$as_echo_n "checking if getaddrinfo seems to work... " >&6; } 20102echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
11534 if test "$cross_compiling" = yes; then : 20103 if test "$cross_compiling" = yes; then
11535 20104
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5 20105 { echo "$as_me:$LINENO: result: cross-compiling, assuming no" >&5
11537$as_echo "cross-compiling, assuming no" >&6; } 20106echo "${ECHO_T}cross-compiling, assuming no" >&6; }
11538 20107
11539 20108
11540else 20109else
11541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20110 cat >conftest.$ac_ext <<_ACEOF
20111/* confdefs.h. */
20112_ACEOF
20113cat confdefs.h >>conftest.$ac_ext
20114cat >>conftest.$ac_ext <<_ACEOF
11542/* end confdefs.h. */ 20115/* end confdefs.h. */
11543 20116
11544#include <stdio.h> 20117#include <stdio.h>
@@ -11587,32 +20160,138 @@ main ()
11587 return 0; 20160 return 0;
11588} 20161}
11589_ACEOF 20162_ACEOF
11590if ac_fn_c_try_run "$LINENO"; then : 20163rm -f conftest$ac_exeext
20164if { (ac_try="$ac_link"
20165case "(($ac_try" in
20166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167 *) ac_try_echo=$ac_try;;
20168esac
20169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170 (eval "$ac_link") 2>&5
20171 ac_status=$?
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20174 { (case "(($ac_try" in
20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176 *) ac_try_echo=$ac_try;;
20177esac
20178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179 (eval "$ac_try") 2>&5
20180 ac_status=$?
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); }; }; then
11591 20183
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20184 { echo "$as_me:$LINENO: result: yes" >&5
11593$as_echo "yes" >&6; } 20185echo "${ECHO_T}yes" >&6; }
11594 20186
11595$as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h 20187cat >>confdefs.h <<\_ACEOF
20188#define AIX_GETNAMEINFO_HACK 1
20189_ACEOF
11596 20190
11597 20191
11598else 20192else
20193 echo "$as_me: program exited with status $ac_status" >&5
20194echo "$as_me: failed program was:" >&5
20195sed 's/^/| /' conftest.$ac_ext >&5
11599 20196
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20197( exit $ac_status )
11601$as_echo "no" >&6; } 20198
11602 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h 20199 { echo "$as_me:$LINENO: result: no" >&5
20200echo "${ECHO_T}no" >&6; }
20201 cat >>confdefs.h <<\_ACEOF
20202#define BROKEN_GETADDRINFO 1
20203_ACEOF
11603 20204
11604 20205
11605fi 20206fi
11606rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20207rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11607 conftest.$ac_objext conftest.beam conftest.$ac_ext
11608fi 20208fi
11609 20209
20210
20211fi
20212
20213if test "x$ac_cv_func_getaddrinfo" = "xyes"; then
20214 { echo "$as_me:$LINENO: checking whether AI_NUMERICSERV is declared" >&5
20215echo $ECHO_N "checking whether AI_NUMERICSERV is declared... $ECHO_C" >&6; }
20216if test "${ac_cv_have_decl_AI_NUMERICSERV+set}" = set; then
20217 echo $ECHO_N "(cached) $ECHO_C" >&6
20218else
20219 cat >conftest.$ac_ext <<_ACEOF
20220/* confdefs.h. */
20221_ACEOF
20222cat confdefs.h >>conftest.$ac_ext
20223cat >>conftest.$ac_ext <<_ACEOF
20224/* end confdefs.h. */
20225#include <sys/types.h>
20226 #include <sys/socket.h>
20227 #include <netdb.h>
20228
20229int
20230main ()
20231{
20232#ifndef AI_NUMERICSERV
20233 (void) AI_NUMERICSERV;
20234#endif
20235
20236 ;
20237 return 0;
20238}
20239_ACEOF
20240rm -f conftest.$ac_objext
20241if { (ac_try="$ac_compile"
20242case "(($ac_try" in
20243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20244 *) ac_try_echo=$ac_try;;
20245esac
20246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20247 (eval "$ac_compile") 2>conftest.er1
20248 ac_status=$?
20249 grep -v '^ *+' conftest.er1 >conftest.err
20250 rm -f conftest.er1
20251 cat conftest.err >&5
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); } && {
20254 test -z "$ac_c_werror_flag" ||
20255 test ! -s conftest.err
20256 } && test -s conftest.$ac_objext; then
20257 ac_cv_have_decl_AI_NUMERICSERV=yes
20258else
20259 echo "$as_me: failed program was:" >&5
20260sed 's/^/| /' conftest.$ac_ext >&5
20261
20262 ac_cv_have_decl_AI_NUMERICSERV=no
20263fi
20264
20265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20266fi
20267{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_NUMERICSERV" >&5
20268echo "${ECHO_T}$ac_cv_have_decl_AI_NUMERICSERV" >&6; }
20269if test $ac_cv_have_decl_AI_NUMERICSERV = yes; then
20270
20271cat >>confdefs.h <<_ACEOF
20272#define HAVE_DECL_AI_NUMERICSERV 1
20273_ACEOF
20274
20275
20276else
20277 cat >>confdefs.h <<_ACEOF
20278#define HAVE_DECL_AI_NUMERICSERV 0
20279_ACEOF
20280
20281
20282fi
20283
20284
11610fi 20285fi
11611 20286
11612if test "x$check_for_conflicting_getspnam" = "x1"; then 20287if test "x$check_for_conflicting_getspnam" = "x1"; then
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5 20288 { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5
11614$as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; } 20289echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; }
11615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20290 cat >conftest.$ac_ext <<_ACEOF
20291/* confdefs.h. */
20292_ACEOF
20293cat confdefs.h >>conftest.$ac_ext
20294cat >>conftest.$ac_ext <<_ACEOF
11616/* end confdefs.h. */ 20295/* end confdefs.h. */
11617 #include <shadow.h> 20296 #include <shadow.h>
11618int 20297int
@@ -11623,31 +20302,57 @@ main ()
11623 return 0; 20302 return 0;
11624} 20303}
11625_ACEOF 20304_ACEOF
11626if ac_fn_c_try_compile "$LINENO"; then : 20305rm -f conftest.$ac_objext
20306if { (ac_try="$ac_compile"
20307case "(($ac_try" in
20308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309 *) ac_try_echo=$ac_try;;
20310esac
20311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20312 (eval "$ac_compile") 2>conftest.er1
20313 ac_status=$?
20314 grep -v '^ *+' conftest.er1 >conftest.err
20315 rm -f conftest.er1
20316 cat conftest.err >&5
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); } && {
20319 test -z "$ac_c_werror_flag" ||
20320 test ! -s conftest.err
20321 } && test -s conftest.$ac_objext; then
11627 20322
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20323 { echo "$as_me:$LINENO: result: no" >&5
11629$as_echo "no" >&6; } 20324echo "${ECHO_T}no" >&6; }
11630 20325
11631else 20326else
20327 echo "$as_me: failed program was:" >&5
20328sed 's/^/| /' conftest.$ac_ext >&5
20329
11632 20330
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20331 { echo "$as_me:$LINENO: result: yes" >&5
11634$as_echo "yes" >&6; } 20332echo "${ECHO_T}yes" >&6; }
11635 20333
11636$as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h 20334cat >>confdefs.h <<\_ACEOF
20335#define GETSPNAM_CONFLICTING_DEFS 1
20336_ACEOF
11637 20337
11638 20338
11639 20339
11640fi 20340fi
20341
11641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11642fi 20343fi
11643 20344
11644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 20345{ echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
11645$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } 20346echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
11646if ${ac_cv_func_getpgrp_void+:} false; then : 20347if test "${ac_cv_func_getpgrp_void+set}" = set; then
11647 $as_echo_n "(cached) " >&6 20348 echo $ECHO_N "(cached) $ECHO_C" >&6
11648else 20349else
11649 # Use it with a single arg. 20350 # Use it with a single arg.
11650cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20351cat >conftest.$ac_ext <<_ACEOF
20352/* confdefs.h. */
20353_ACEOF
20354cat confdefs.h >>conftest.$ac_ext
20355cat >>conftest.$ac_ext <<_ACEOF
11651/* end confdefs.h. */ 20356/* end confdefs.h. */
11652$ac_includes_default 20357$ac_includes_default
11653int 20358int
@@ -11658,19 +20363,41 @@ getpgrp (0);
11658 return 0; 20363 return 0;
11659} 20364}
11660_ACEOF 20365_ACEOF
11661if ac_fn_c_try_compile "$LINENO"; then : 20366rm -f conftest.$ac_objext
20367if { (ac_try="$ac_compile"
20368case "(($ac_try" in
20369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20370 *) ac_try_echo=$ac_try;;
20371esac
20372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20373 (eval "$ac_compile") 2>conftest.er1
20374 ac_status=$?
20375 grep -v '^ *+' conftest.er1 >conftest.err
20376 rm -f conftest.er1
20377 cat conftest.err >&5
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); } && {
20380 test -z "$ac_c_werror_flag" ||
20381 test ! -s conftest.err
20382 } && test -s conftest.$ac_objext; then
11662 ac_cv_func_getpgrp_void=no 20383 ac_cv_func_getpgrp_void=no
11663else 20384else
11664 ac_cv_func_getpgrp_void=yes 20385 echo "$as_me: failed program was:" >&5
20386sed 's/^/| /' conftest.$ac_ext >&5
20387
20388 ac_cv_func_getpgrp_void=yes
11665fi 20389fi
20390
11666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11667 20392
11668fi 20393fi
11669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 20394{ echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
11670$as_echo "$ac_cv_func_getpgrp_void" >&6; } 20395echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
11671if test $ac_cv_func_getpgrp_void = yes; then 20396if test $ac_cv_func_getpgrp_void = yes; then
11672 20397
11673$as_echo "#define GETPGRP_VOID 1" >>confdefs.h 20398cat >>confdefs.h <<\_ACEOF
20399#define GETPGRP_VOID 1
20400_ACEOF
11674 20401
11675fi 20402fi
11676 20403
@@ -11680,8 +20407,13 @@ saved_CPPFLAGS="$CPPFLAGS"
11680saved_LDFLAGS="$LDFLAGS" 20407saved_LDFLAGS="$LDFLAGS"
11681 20408
11682# Check whether --with-ssl-dir was given. 20409# Check whether --with-ssl-dir was given.
11683if test "${with_ssl_dir+set}" = set; then : 20410if test "${with_ssl_dir+set}" = set; then
11684 withval=$with_ssl_dir; 20411 withval=$with_ssl_dir;
20412 if test "x$openssl" = "xno" ; then
20413 { { echo "$as_me:$LINENO: error: cannot use --with-ssl-dir when OpenSSL disabled" >&5
20414echo "$as_me: error: cannot use --with-ssl-dir when OpenSSL disabled" >&2;}
20415 { (exit 1); exit 1; }; }
20416 fi
11685 if test "x$withval" != "xno" ; then 20417 if test "x$withval" != "xno" ; then
11686 case "$withval" in 20418 case "$withval" in
11687 # Relative paths 20419 # Relative paths
@@ -11716,8 +20448,44 @@ if test "${with_ssl_dir+set}" = set; then :
11716 20448
11717fi 20449fi
11718 20450
11719LIBS="-lcrypto $LIBS" 20451
11720cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20452
20453# Check whether --with-openssl-header-check was given.
20454if test "${with_openssl_header_check+set}" = set; then
20455 withval=$with_openssl_header_check;
20456 if test "x$withval" = "xno" ; then
20457 openssl_check_nonfatal=1
20458 fi
20459
20460
20461fi
20462
20463
20464openssl_engine=no
20465
20466# Check whether --with-ssl-engine was given.
20467if test "${with_ssl_engine+set}" = set; then
20468 withval=$with_ssl_engine;
20469 if test "x$openssl" = "xno" ; then
20470 { { echo "$as_me:$LINENO: error: cannot use --with-ssl-engine when OpenSSL disabled" >&5
20471echo "$as_me: error: cannot use --with-ssl-engine when OpenSSL disabled" >&2;}
20472 { (exit 1); exit 1; }; }
20473 fi
20474 if test "x$withval" != "xno" ; then
20475 openssl_engine=yes
20476 fi
20477
20478
20479fi
20480
20481
20482if test "x$openssl" = "xyes" ; then
20483 LIBS="-lcrypto $LIBS"
20484 cat >conftest.$ac_ext <<_ACEOF
20485/* confdefs.h. */
20486_ACEOF
20487cat confdefs.h >>conftest.$ac_ext
20488cat >>conftest.$ac_ext <<_ACEOF
11721/* end confdefs.h. */ 20489/* end confdefs.h. */
11722 20490
11723/* Override any GCC internal prototype to avoid an error. 20491/* Override any GCC internal prototype to avoid an error.
@@ -11735,27 +20503,184 @@ return RAND_add ();
11735 return 0; 20503 return 0;
11736} 20504}
11737_ACEOF 20505_ACEOF
11738if ac_fn_c_try_link "$LINENO"; then : 20506rm -f conftest.$ac_objext conftest$ac_exeext
20507if { (ac_try="$ac_link"
20508case "(($ac_try" in
20509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20510 *) ac_try_echo=$ac_try;;
20511esac
20512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20513 (eval "$ac_link") 2>conftest.er1
20514 ac_status=$?
20515 grep -v '^ *+' conftest.er1 >conftest.err
20516 rm -f conftest.er1
20517 cat conftest.err >&5
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); } && {
20520 test -z "$ac_c_werror_flag" ||
20521 test ! -s conftest.err
20522 } && test -s conftest$ac_exeext &&
20523 $as_test_x conftest$ac_exeext; then
11739 20524
11740$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h 20525cat >>confdefs.h <<\_ACEOF
20526#define HAVE_OPENSSL 1
20527_ACEOF
11741 20528
11742else 20529else
20530 echo "$as_me: failed program was:" >&5
20531sed 's/^/| /' conftest.$ac_ext >&5
11743 20532
11744 if test -n "${need_dash_r}"; then
11745 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
11746 else
11747 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
11748 fi
11749 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
11750 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
11751if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then :
11752 20533
20534 if test -n "${need_dash_r}"; then
20535 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
20536 else
20537 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
20538 fi
20539 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
20540 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
20541 { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
20542echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
20543if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
20544 echo $ECHO_N "(cached) $ECHO_C" >&6
20545fi
20546{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
20547echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
11753else 20548else
11754 as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5 20549 # Is the header compilable?
20550{ echo "$as_me:$LINENO: checking openssl/opensslv.h usability" >&5
20551echo $ECHO_N "checking openssl/opensslv.h usability... $ECHO_C" >&6; }
20552cat >conftest.$ac_ext <<_ACEOF
20553/* confdefs.h. */
20554_ACEOF
20555cat confdefs.h >>conftest.$ac_ext
20556cat >>conftest.$ac_ext <<_ACEOF
20557/* end confdefs.h. */
20558$ac_includes_default
20559#include <openssl/opensslv.h>
20560_ACEOF
20561rm -f conftest.$ac_objext
20562if { (ac_try="$ac_compile"
20563case "(($ac_try" in
20564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20565 *) ac_try_echo=$ac_try;;
20566esac
20567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20568 (eval "$ac_compile") 2>conftest.er1
20569 ac_status=$?
20570 grep -v '^ *+' conftest.er1 >conftest.err
20571 rm -f conftest.er1
20572 cat conftest.err >&5
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); } && {
20575 test -z "$ac_c_werror_flag" ||
20576 test ! -s conftest.err
20577 } && test -s conftest.$ac_objext; then
20578 ac_header_compiler=yes
20579else
20580 echo "$as_me: failed program was:" >&5
20581sed 's/^/| /' conftest.$ac_ext >&5
20582
20583 ac_header_compiler=no
11755fi 20584fi
11756 20585
20586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20587{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20588echo "${ECHO_T}$ac_header_compiler" >&6; }
11757 20589
11758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20590# Is the header present?
20591{ echo "$as_me:$LINENO: checking openssl/opensslv.h presence" >&5
20592echo $ECHO_N "checking openssl/opensslv.h presence... $ECHO_C" >&6; }
20593cat >conftest.$ac_ext <<_ACEOF
20594/* confdefs.h. */
20595_ACEOF
20596cat confdefs.h >>conftest.$ac_ext
20597cat >>conftest.$ac_ext <<_ACEOF
20598/* end confdefs.h. */
20599#include <openssl/opensslv.h>
20600_ACEOF
20601if { (ac_try="$ac_cpp conftest.$ac_ext"
20602case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20605esac
20606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20608 ac_status=$?
20609 grep -v '^ *+' conftest.er1 >conftest.err
20610 rm -f conftest.er1
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } >/dev/null && {
20614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20615 test ! -s conftest.err
20616 }; then
20617 ac_header_preproc=yes
20618else
20619 echo "$as_me: failed program was:" >&5
20620sed 's/^/| /' conftest.$ac_ext >&5
20621
20622 ac_header_preproc=no
20623fi
20624
20625rm -f conftest.err conftest.$ac_ext
20626{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20627echo "${ECHO_T}$ac_header_preproc" >&6; }
20628
20629# So? What about this header?
20630case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20631 yes:no: )
20632 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&5
20633echo "$as_me: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20634 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&5
20635echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&2;}
20636 ac_header_preproc=yes
20637 ;;
20638 no:yes:* )
20639 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: present but cannot be compiled" >&5
20640echo "$as_me: WARNING: openssl/opensslv.h: present but cannot be compiled" >&2;}
20641 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&5
20642echo "$as_me: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&2;}
20643 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&5
20644echo "$as_me: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&2;}
20645 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&5
20646echo "$as_me: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&2;}
20647 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&5
20648echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&2;}
20649 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&5
20650echo "$as_me: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&2;}
20651 ( cat <<\_ASBOX
20652## ------------------------------------------- ##
20653## Report this to openssh-unix-dev@mindrot.org ##
20654## ------------------------------------------- ##
20655_ASBOX
20656 ) | sed "s/^/$as_me: WARNING: /" >&2
20657 ;;
20658esac
20659{ echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
20660echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
20661if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
20662 echo $ECHO_N "(cached) $ECHO_C" >&6
20663else
20664 ac_cv_header_openssl_opensslv_h=$ac_header_preproc
20665fi
20666{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
20667echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
20668
20669fi
20670if test $ac_cv_header_openssl_opensslv_h = yes; then
20671 :
20672else
20673 { { echo "$as_me:$LINENO: error: *** OpenSSL headers missing - please install first or check config.log ***" >&5
20674echo "$as_me: error: *** OpenSSL headers missing - please install first or check config.log ***" >&2;}
20675 { (exit 1); exit 1; }; }
20676fi
20677
20678
20679 cat >conftest.$ac_ext <<_ACEOF
20680/* confdefs.h. */
20681_ACEOF
20682cat confdefs.h >>conftest.$ac_ext
20683cat >>conftest.$ac_ext <<_ACEOF
11759/* end confdefs.h. */ 20684/* end confdefs.h. */
11760 20685
11761/* Override any GCC internal prototype to avoid an error. 20686/* Override any GCC internal prototype to avoid an error.
@@ -11773,227 +20698,331 @@ return RAND_add ();
11773 return 0; 20698 return 0;
11774} 20699}
11775_ACEOF 20700_ACEOF
11776if ac_fn_c_try_link "$LINENO"; then : 20701rm -f conftest.$ac_objext conftest$ac_exeext
11777 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h 20702if { (ac_try="$ac_link"
20703case "(($ac_try" in
20704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705 *) ac_try_echo=$ac_try;;
20706esac
20707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708 (eval "$ac_link") 2>conftest.er1
20709 ac_status=$?
20710 grep -v '^ *+' conftest.er1 >conftest.err
20711 rm -f conftest.er1
20712 cat conftest.err >&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); } && {
20715 test -z "$ac_c_werror_flag" ||
20716 test ! -s conftest.err
20717 } && test -s conftest$ac_exeext &&
20718 $as_test_x conftest$ac_exeext; then
20719 cat >>confdefs.h <<\_ACEOF
20720#define HAVE_OPENSSL 1
20721_ACEOF
11778 20722
11779else 20723else
20724 echo "$as_me: failed program was:" >&5
20725sed 's/^/| /' conftest.$ac_ext >&5
20726
11780 20727
11781 as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5 20728 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
20729echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
20730 { (exit 1); exit 1; }; }
11782 20731
11783 20732
11784fi 20733fi
11785rm -f core conftest.err conftest.$ac_objext \ 20734
11786 conftest$ac_exeext conftest.$ac_ext 20735rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20736 conftest$ac_exeext conftest.$ac_ext
11787 20737
11788 20738
11789fi 20739fi
11790rm -f core conftest.err conftest.$ac_objext \
11791 conftest$ac_exeext conftest.$ac_ext
11792 20740
11793# Determine OpenSSL header version 20741rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5 20742 conftest$ac_exeext conftest.$ac_ext
11795$as_echo_n "checking OpenSSL header version... " >&6; }
11796if test "$cross_compiling" = yes; then :
11797 20743
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 20744 # Determine OpenSSL header version
11799$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} 20745 { echo "$as_me:$LINENO: checking OpenSSL header version" >&5
20746echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; }
20747 if test "$cross_compiling" = yes; then
20748
20749 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
20750echo "$as_me: WARNING: cross compiling: not checking" >&2;}
11800 20751
11801 20752
11802else 20753else
11803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20754 cat >conftest.$ac_ext <<_ACEOF
20755/* confdefs.h. */
20756_ACEOF
20757cat confdefs.h >>conftest.$ac_ext
20758cat >>conftest.$ac_ext <<_ACEOF
11804/* end confdefs.h. */ 20759/* end confdefs.h. */
11805 20760
11806#include <stdio.h> 20761 #include <stdio.h>
11807#include <string.h> 20762 #include <string.h>
11808#include <openssl/opensslv.h> 20763 #include <openssl/opensslv.h>
11809#define DATA "conftest.sslincver" 20764 #define DATA "conftest.sslincver"
11810 20765
11811int 20766int
11812main () 20767main ()
11813{ 20768{
11814 20769
11815 FILE *fd; 20770 FILE *fd;
11816 int rc; 20771 int rc;
11817 20772
11818 fd = fopen(DATA,"w"); 20773 fd = fopen(DATA,"w");
11819 if(fd == NULL) 20774 if(fd == NULL)
11820 exit(1); 20775 exit(1);
11821 20776
11822 if ((rc = fprintf(fd ,"%08x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) 20777 if ((rc = fprintf(fd ,"%08x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
11823 exit(1); 20778 exit(1);
11824 20779
11825 exit(0); 20780 exit(0);
11826 20781
11827 ; 20782 ;
11828 return 0; 20783 return 0;
11829} 20784}
11830_ACEOF 20785_ACEOF
11831if ac_fn_c_try_run "$LINENO"; then : 20786rm -f conftest$ac_exeext
20787if { (ac_try="$ac_link"
20788case "(($ac_try" in
20789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20790 *) ac_try_echo=$ac_try;;
20791esac
20792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20793 (eval "$ac_link") 2>&5
20794 ac_status=$?
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20797 { (case "(($ac_try" in
20798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20799 *) ac_try_echo=$ac_try;;
20800esac
20801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20802 (eval "$ac_try") 2>&5
20803 ac_status=$?
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); }; }; then
11832 20806
11833 ssl_header_ver=`cat conftest.sslincver` 20807 ssl_header_ver=`cat conftest.sslincver`
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5 20808 { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
11835$as_echo "$ssl_header_ver" >&6; } 20809echo "${ECHO_T}$ssl_header_ver" >&6; }
11836 20810
11837else 20811else
20812 echo "$as_me: program exited with status $ac_status" >&5
20813echo "$as_me: failed program was:" >&5
20814sed 's/^/| /' conftest.$ac_ext >&5
20815
20816( exit $ac_status )
11838 20817
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 20818 { echo "$as_me:$LINENO: result: not found" >&5
11840$as_echo "not found" >&6; } 20819echo "${ECHO_T}not found" >&6; }
11841 as_fn_error $? "OpenSSL version header not found." "$LINENO" 5 20820 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
20821echo "$as_me: error: OpenSSL version header not found." >&2;}
20822 { (exit 1); exit 1; }; }
11842 20823
11843fi 20824fi
11844rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20825rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11845 conftest.$ac_objext conftest.beam conftest.$ac_ext
11846fi 20826fi
11847 20827
11848 20828
11849# Determine OpenSSL library version
11850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5
11851$as_echo_n "checking OpenSSL library version... " >&6; }
11852if test "$cross_compiling" = yes; then :
11853 20829
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 20830 # Determine OpenSSL library version
11855$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} 20831 { echo "$as_me:$LINENO: checking OpenSSL library version" >&5
20832echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; }
20833 if test "$cross_compiling" = yes; then
20834
20835 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
20836echo "$as_me: WARNING: cross compiling: not checking" >&2;}
11856 20837
11857 20838
11858else 20839else
11859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20840 cat >conftest.$ac_ext <<_ACEOF
20841/* confdefs.h. */
20842_ACEOF
20843cat confdefs.h >>conftest.$ac_ext
20844cat >>conftest.$ac_ext <<_ACEOF
11860/* end confdefs.h. */ 20845/* end confdefs.h. */
11861 20846
11862#include <stdio.h> 20847 #include <stdio.h>
11863#include <string.h> 20848 #include <string.h>
11864#include <openssl/opensslv.h> 20849 #include <openssl/opensslv.h>
11865#include <openssl/crypto.h> 20850 #include <openssl/crypto.h>
11866#define DATA "conftest.ssllibver" 20851 #define DATA "conftest.ssllibver"
11867 20852
11868int 20853int
11869main () 20854main ()
11870{ 20855{
11871 20856
11872 FILE *fd; 20857 FILE *fd;
11873 int rc; 20858 int rc;
11874 20859
11875 fd = fopen(DATA,"w"); 20860 fd = fopen(DATA,"w");
11876 if(fd == NULL) 20861 if(fd == NULL)
11877 exit(1); 20862 exit(1);
11878 20863
11879 if ((rc = fprintf(fd ,"%08x (%s)\n", SSLeay(), 20864 if ((rc = fprintf(fd ,"%08x (%s)\n", SSLeay(),
11880 SSLeay_version(SSLEAY_VERSION))) <0) 20865 SSLeay_version(SSLEAY_VERSION))) <0)
11881 exit(1); 20866 exit(1);
11882 20867
11883 exit(0); 20868 exit(0);
11884 20869
11885 ; 20870 ;
11886 return 0; 20871 return 0;
11887} 20872}
11888_ACEOF 20873_ACEOF
11889if ac_fn_c_try_run "$LINENO"; then : 20874rm -f conftest$ac_exeext
11890 20875if { (ac_try="$ac_link"
11891 ssl_library_ver=`cat conftest.ssllibver` 20876case "(($ac_try" in
11892 # Check version is supported. 20877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11893 case "$ssl_library_ver" in 20878 *) ac_try_echo=$ac_try;;
11894 0090[0-7]*|009080[0-5]*) 20879esac
11895 as_fn_error $? "OpenSSL >= 0.9.8f required" "$LINENO" 5 20880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11896 ;; 20881 (eval "$ac_link") 2>&5
11897 *) ;; 20882 ac_status=$?
11898 esac 20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5 20884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11900$as_echo "$ssl_library_ver" >&6; } 20885 { (case "(($ac_try" in
20886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887 *) ac_try_echo=$ac_try;;
20888esac
20889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20890 (eval "$ac_try") 2>&5
20891 ac_status=$?
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; }; then
20894
20895 ssl_library_ver=`cat conftest.ssllibver`
20896 # Check version is supported.
20897 case "$ssl_library_ver" in
20898 0090[0-7]*|009080[0-5]*)
20899 { { echo "$as_me:$LINENO: error: OpenSSL >= 0.9.8f required (have \"$ssl_library_ver\")" >&5
20900echo "$as_me: error: OpenSSL >= 0.9.8f required (have \"$ssl_library_ver\")" >&2;}
20901 { (exit 1); exit 1; }; }
20902 ;;
20903 *) ;;
20904 esac
20905 { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
20906echo "${ECHO_T}$ssl_library_ver" >&6; }
11901 20907
11902else 20908else
20909 echo "$as_me: program exited with status $ac_status" >&5
20910echo "$as_me: failed program was:" >&5
20911sed 's/^/| /' conftest.$ac_ext >&5
11903 20912
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 20913( exit $ac_status )
11905$as_echo "not found" >&6; } 20914
11906 as_fn_error $? "OpenSSL library not found." "$LINENO" 5 20915 { echo "$as_me:$LINENO: result: not found" >&5
20916echo "${ECHO_T}not found" >&6; }
20917 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
20918echo "$as_me: error: OpenSSL library not found." >&2;}
20919 { (exit 1); exit 1; }; }
11907 20920
11908fi 20921fi
11909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20922rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11910 conftest.$ac_objext conftest.beam conftest.$ac_ext
11911fi 20923fi
11912 20924
11913 20925
11914# XXX make --without-openssl work
11915
11916cat >>confdefs.h <<_ACEOF
11917#define WITH_OPENSSL 1
11918_ACEOF
11919 20926
20927 # Sanity check OpenSSL headers
20928 { echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
20929echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; }
20930 if test "$cross_compiling" = yes; then
11920 20931
11921cat >>confdefs.h <<_ACEOF 20932 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
11922#define WITH_SSH1 1 20933echo "$as_me: WARNING: cross compiling: not checking" >&2;}
11923_ACEOF
11924
11925
11926
11927# Check whether --with-openssl-header-check was given.
11928if test "${with_openssl_header_check+set}" = set; then :
11929 withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then
11930 openssl_check_nonfatal=1
11931 fi
11932
11933
11934fi
11935
11936
11937# Sanity check OpenSSL headers
11938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5
11939$as_echo_n "checking whether OpenSSL's headers match the library... " >&6; }
11940if test "$cross_compiling" = yes; then :
11941
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
11943$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
11944 20934
11945 20935
11946else 20936else
11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20937 cat >conftest.$ac_ext <<_ACEOF
20938/* confdefs.h. */
20939_ACEOF
20940cat confdefs.h >>conftest.$ac_ext
20941cat >>conftest.$ac_ext <<_ACEOF
11948/* end confdefs.h. */ 20942/* end confdefs.h. */
11949 20943
11950#include <string.h> 20944 #include <string.h>
11951#include <openssl/opensslv.h> 20945 #include <openssl/opensslv.h>
11952 20946
11953int 20947int
11954main () 20948main ()
11955{ 20949{
11956 20950
11957 exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); 20951 exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1);
11958 20952
11959 ; 20953 ;
11960 return 0; 20954 return 0;
11961} 20955}
11962_ACEOF 20956_ACEOF
11963if ac_fn_c_try_run "$LINENO"; then : 20957rm -f conftest$ac_exeext
20958if { (ac_try="$ac_link"
20959case "(($ac_try" in
20960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961 *) ac_try_echo=$ac_try;;
20962esac
20963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20964 (eval "$ac_link") 2>&5
20965 ac_status=$?
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20968 { (case "(($ac_try" in
20969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20970 *) ac_try_echo=$ac_try;;
20971esac
20972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20973 (eval "$ac_try") 2>&5
20974 ac_status=$?
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); }; }; then
11964 20977
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20978 { echo "$as_me:$LINENO: result: yes" >&5
11966$as_echo "yes" >&6; } 20979echo "${ECHO_T}yes" >&6; }
11967 20980
11968else 20981else
20982 echo "$as_me: program exited with status $ac_status" >&5
20983echo "$as_me: failed program was:" >&5
20984sed 's/^/| /' conftest.$ac_ext >&5
11969 20985
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20986( exit $ac_status )
11971$as_echo "no" >&6; } 20987
11972 if test "x$openssl_check_nonfatal" = "x"; then 20988 { echo "$as_me:$LINENO: result: no" >&5
11973 as_fn_error $? "Your OpenSSL headers do not match your 20989echo "${ECHO_T}no" >&6; }
11974library. Check config.log for details. 20990 if test "x$openssl_check_nonfatal" = "x"; then
11975If you are sure your installation is consistent, you can disable the check 20991 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your
11976by running \"./configure --without-openssl-header-check\". 20992 library. Check config.log for details.
11977Also see contrib/findssl.sh for help identifying header/library mismatches. 20993 If you are sure your installation is consistent, you can disable the check
11978" "$LINENO" 5 20994 by running \"./configure --without-openssl-header-check\".
11979 else 20995 Also see contrib/findssl.sh for help identifying header/library mismatches.
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your 20996 " >&5
11981library. Check config.log for details. 20997echo "$as_me: error: Your OpenSSL headers do not match your
11982Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 20998 library. Check config.log for details.
11983$as_echo "$as_me: WARNING: Your OpenSSL headers do not match your 20999 If you are sure your installation is consistent, you can disable the check
11984library. Check config.log for details. 21000 by running \"./configure --without-openssl-header-check\".
11985Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} 21001 Also see contrib/findssl.sh for help identifying header/library mismatches.
11986 fi 21002 " >&2;}
21003 { (exit 1); exit 1; }; }
21004 else
21005 { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your
21006 library. Check config.log for details.
21007 Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
21008echo "$as_me: WARNING: Your OpenSSL headers do not match your
21009 library. Check config.log for details.
21010 Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
21011 fi
11987 21012
11988fi 21013fi
11989rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21014rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11990 conftest.$ac_objext conftest.beam conftest.$ac_ext
11991fi 21015fi
11992 21016
11993 21017
11994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5 21018
11995$as_echo_n "checking if programs using OpenSSL functions will link... " >&6; } 21019 { echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5
11996cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21020echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; }
21021 cat >conftest.$ac_ext <<_ACEOF
21022/* confdefs.h. */
21023_ACEOF
21024cat confdefs.h >>conftest.$ac_ext
21025cat >>conftest.$ac_ext <<_ACEOF
11997/* end confdefs.h. */ 21026/* end confdefs.h. */
11998 #include <openssl/evp.h> 21027 #include <openssl/evp.h>
11999int 21028int
@@ -12004,20 +21033,44 @@ main ()
12004 return 0; 21033 return 0;
12005} 21034}
12006_ACEOF 21035_ACEOF
12007if ac_fn_c_try_link "$LINENO"; then : 21036rm -f conftest.$ac_objext conftest$ac_exeext
21037if { (ac_try="$ac_link"
21038case "(($ac_try" in
21039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040 *) ac_try_echo=$ac_try;;
21041esac
21042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043 (eval "$ac_link") 2>conftest.er1
21044 ac_status=$?
21045 grep -v '^ *+' conftest.er1 >conftest.err
21046 rm -f conftest.er1
21047 cat conftest.err >&5
21048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049 (exit $ac_status); } && {
21050 test -z "$ac_c_werror_flag" ||
21051 test ! -s conftest.err
21052 } && test -s conftest$ac_exeext &&
21053 $as_test_x conftest$ac_exeext; then
12008 21054
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21055 { echo "$as_me:$LINENO: result: yes" >&5
12010$as_echo "yes" >&6; } 21056echo "${ECHO_T}yes" >&6; }
12011 21057
12012else 21058else
21059 echo "$as_me: failed program was:" >&5
21060sed 's/^/| /' conftest.$ac_ext >&5
12013 21061
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21062
12015$as_echo "no" >&6; } 21063 { echo "$as_me:$LINENO: result: no" >&5
12016 saved_LIBS="$LIBS" 21064echo "${ECHO_T}no" >&6; }
12017 LIBS="$LIBS -ldl" 21065 saved_LIBS="$LIBS"
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5 21066 LIBS="$LIBS -ldl"
12019$as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; } 21067 { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5
12020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21068echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; }
21069 cat >conftest.$ac_ext <<_ACEOF
21070/* confdefs.h. */
21071_ACEOF
21072cat confdefs.h >>conftest.$ac_ext
21073cat >>conftest.$ac_ext <<_ACEOF
12021/* end confdefs.h. */ 21074/* end confdefs.h. */
12022 #include <openssl/evp.h> 21075 #include <openssl/evp.h>
12023int 21076int
@@ -12028,218 +21081,438 @@ main ()
12028 return 0; 21081 return 0;
12029} 21082}
12030_ACEOF 21083_ACEOF
12031if ac_fn_c_try_link "$LINENO"; then : 21084rm -f conftest.$ac_objext conftest$ac_exeext
21085if { (ac_try="$ac_link"
21086case "(($ac_try" in
21087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21088 *) ac_try_echo=$ac_try;;
21089esac
21090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21091 (eval "$ac_link") 2>conftest.er1
21092 ac_status=$?
21093 grep -v '^ *+' conftest.er1 >conftest.err
21094 rm -f conftest.er1
21095 cat conftest.err >&5
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); } && {
21098 test -z "$ac_c_werror_flag" ||
21099 test ! -s conftest.err
21100 } && test -s conftest$ac_exeext &&
21101 $as_test_x conftest$ac_exeext; then
12032 21102
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21103 { echo "$as_me:$LINENO: result: yes" >&5
12034$as_echo "yes" >&6; } 21104echo "${ECHO_T}yes" >&6; }
12035 21105
12036else 21106else
21107 echo "$as_me: failed program was:" >&5
21108sed 's/^/| /' conftest.$ac_ext >&5
12037 21109
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21110
12039$as_echo "no" >&6; } 21111 { echo "$as_me:$LINENO: result: no" >&5
12040 LIBS="$saved_LIBS" 21112echo "${ECHO_T}no" >&6; }
21113 LIBS="$saved_LIBS"
12041 21114
12042 21115
12043fi 21116fi
12044rm -f core conftest.err conftest.$ac_objext \ 21117
12045 conftest$ac_exeext conftest.$ac_ext 21118rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21119 conftest$ac_exeext conftest.$ac_ext
12046 21120
12047 21121
12048fi 21122fi
12049rm -f core conftest.err conftest.$ac_objext \ 21123
12050 conftest$ac_exeext conftest.$ac_ext 21124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21125 conftest$ac_exeext conftest.$ac_ext
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
12051 21136
12052for ac_func in \ 21137for ac_func in \
12053 BN_is_prime_ex \ 21138 BN_is_prime_ex \
12054 DSA_generate_parameters_ex \ 21139 DSA_generate_parameters_ex \
12055 EVP_DigestInit_ex \ 21140 EVP_DigestInit_ex \
12056 EVP_DigestFinal_ex \ 21141 EVP_DigestFinal_ex \
12057 EVP_MD_CTX_init \ 21142 EVP_MD_CTX_init \
12058 EVP_MD_CTX_cleanup \ 21143 EVP_MD_CTX_cleanup \
12059 EVP_MD_CTX_copy_ex \ 21144 EVP_MD_CTX_copy_ex \
12060 HMAC_CTX_init \ 21145 HMAC_CTX_init \
12061 RSA_generate_key_ex \ 21146 RSA_generate_key_ex \
12062 RSA_get_default_method \ 21147 RSA_get_default_method \
12063 21148
12064do : 21149do
12065 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21150as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12066ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21151{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12067if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 21152echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21153if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21154 echo $ECHO_N "(cached) $ECHO_C" >&6
21155else
21156 cat >conftest.$ac_ext <<_ACEOF
21157/* confdefs.h. */
21158_ACEOF
21159cat confdefs.h >>conftest.$ac_ext
21160cat >>conftest.$ac_ext <<_ACEOF
21161/* end confdefs.h. */
21162/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21164#define $ac_func innocuous_$ac_func
21165
21166/* System header to define __stub macros and hopefully few prototypes,
21167 which can conflict with char $ac_func (); below.
21168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21169 <limits.h> exists even on freestanding compilers. */
21170
21171#ifdef __STDC__
21172# include <limits.h>
21173#else
21174# include <assert.h>
21175#endif
21176
21177#undef $ac_func
21178
21179/* Override any GCC internal prototype to avoid an error.
21180 Use char because int might match the return type of a GCC
21181 builtin and then its argument prototype would still apply. */
21182#ifdef __cplusplus
21183extern "C"
21184#endif
21185char $ac_func ();
21186/* The GNU C library defines this for functions which it implements
21187 to always fail with ENOSYS. Some functions are actually named
21188 something starting with __ and the normal name is an alias. */
21189#if defined __stub_$ac_func || defined __stub___$ac_func
21190choke me
21191#endif
21192
21193int
21194main ()
21195{
21196return $ac_func ();
21197 ;
21198 return 0;
21199}
21200_ACEOF
21201rm -f conftest.$ac_objext conftest$ac_exeext
21202if { (ac_try="$ac_link"
21203case "(($ac_try" in
21204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21205 *) ac_try_echo=$ac_try;;
21206esac
21207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21208 (eval "$ac_link") 2>conftest.er1
21209 ac_status=$?
21210 grep -v '^ *+' conftest.er1 >conftest.err
21211 rm -f conftest.er1
21212 cat conftest.err >&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); } && {
21215 test -z "$ac_c_werror_flag" ||
21216 test ! -s conftest.err
21217 } && test -s conftest$ac_exeext &&
21218 $as_test_x conftest$ac_exeext; then
21219 eval "$as_ac_var=yes"
21220else
21221 echo "$as_me: failed program was:" >&5
21222sed 's/^/| /' conftest.$ac_ext >&5
21223
21224 eval "$as_ac_var=no"
21225fi
21226
21227rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21228 conftest$ac_exeext conftest.$ac_ext
21229fi
21230ac_res=`eval echo '${'$as_ac_var'}'`
21231 { echo "$as_me:$LINENO: result: $ac_res" >&5
21232echo "${ECHO_T}$ac_res" >&6; }
21233if test `eval echo '${'$as_ac_var'}'` = yes; then
12068 cat >>confdefs.h <<_ACEOF 21234 cat >>confdefs.h <<_ACEOF
12069#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21235#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12070_ACEOF 21236_ACEOF
12071 21237
12072fi 21238fi
12073done 21239done
12074 21240
12075 21241
12076 21242 if test "x$openssl_engine" = "xyes" ; then
12077# Check whether --with-ssl-engine was given. 21243 { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5
12078if test "${with_ssl_engine+set}" = set; then : 21244echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; }
12079 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then 21245 cat >conftest.$ac_ext <<_ACEOF
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5 21246/* confdefs.h. */
12081$as_echo_n "checking for OpenSSL ENGINE support... " >&6; } 21247_ACEOF
12082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21248cat confdefs.h >>conftest.$ac_ext
21249cat >>conftest.$ac_ext <<_ACEOF
12083/* end confdefs.h. */ 21250/* end confdefs.h. */
12084 21251
12085#include <openssl/engine.h> 21252 #include <openssl/engine.h>
12086 21253
12087int 21254int
12088main () 21255main ()
12089{ 21256{
12090 21257
12091 ENGINE_load_builtin_engines(); 21258 ENGINE_load_builtin_engines();
12092 ENGINE_register_all_complete(); 21259 ENGINE_register_all_complete();
12093 21260
12094 ; 21261 ;
12095 return 0; 21262 return 0;
12096} 21263}
12097_ACEOF 21264_ACEOF
12098if ac_fn_c_try_compile "$LINENO"; then : 21265rm -f conftest.$ac_objext
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21266if { (ac_try="$ac_compile"
12100$as_echo "yes" >&6; } 21267case "(($ac_try" in
21268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21269 *) ac_try_echo=$ac_try;;
21270esac
21271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21272 (eval "$ac_compile") 2>conftest.er1
21273 ac_status=$?
21274 grep -v '^ *+' conftest.er1 >conftest.err
21275 rm -f conftest.er1
21276 cat conftest.err >&5
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); } && {
21279 test -z "$ac_c_werror_flag" ||
21280 test ! -s conftest.err
21281 } && test -s conftest.$ac_objext; then
21282 { echo "$as_me:$LINENO: result: yes" >&5
21283echo "${ECHO_T}yes" >&6; }
12101 21284
12102$as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h 21285cat >>confdefs.h <<\_ACEOF
21286#define USE_OPENSSL_ENGINE 1
21287_ACEOF
12103 21288
12104 21289
12105else 21290else
12106 as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5 21291 echo "$as_me: failed program was:" >&5
21292sed 's/^/| /' conftest.$ac_ext >&5
12107 21293
12108fi 21294 { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5
12109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21295echo "$as_me: error: OpenSSL ENGINE support not found" >&2;}
12110 fi 21296 { (exit 1); exit 1; }; }
12111 21297
12112fi 21298fi
12113 21299
21300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21301 fi
12114 21302
12115# Check for OpenSSL without EVP_aes_{192,256}_cbc 21303 # Check for OpenSSL without EVP_aes_{192,256}_cbc
12116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5 21304 { echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5
12117$as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; } 21305echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; }
12118cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21306 cat >conftest.$ac_ext <<_ACEOF
21307/* confdefs.h. */
21308_ACEOF
21309cat confdefs.h >>conftest.$ac_ext
21310cat >>conftest.$ac_ext <<_ACEOF
12119/* end confdefs.h. */ 21311/* end confdefs.h. */
12120 21312
12121#include <string.h> 21313 #include <string.h>
12122#include <openssl/evp.h> 21314 #include <openssl/evp.h>
12123 21315
12124int 21316int
12125main () 21317main ()
12126{ 21318{
12127 21319
12128 exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL); 21320 exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);
12129 21321
12130 ; 21322 ;
12131 return 0; 21323 return 0;
12132} 21324}
12133_ACEOF 21325_ACEOF
12134if ac_fn_c_try_link "$LINENO"; then : 21326rm -f conftest.$ac_objext conftest$ac_exeext
21327if { (ac_try="$ac_link"
21328case "(($ac_try" in
21329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21330 *) ac_try_echo=$ac_try;;
21331esac
21332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21333 (eval "$ac_link") 2>conftest.er1
21334 ac_status=$?
21335 grep -v '^ *+' conftest.er1 >conftest.err
21336 rm -f conftest.er1
21337 cat conftest.err >&5
21338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339 (exit $ac_status); } && {
21340 test -z "$ac_c_werror_flag" ||
21341 test ! -s conftest.err
21342 } && test -s conftest$ac_exeext &&
21343 $as_test_x conftest$ac_exeext; then
12135 21344
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21345 { echo "$as_me:$LINENO: result: no" >&5
12137$as_echo "no" >&6; } 21346echo "${ECHO_T}no" >&6; }
12138 21347
12139else 21348else
21349 echo "$as_me: failed program was:" >&5
21350sed 's/^/| /' conftest.$ac_ext >&5
12140 21351
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12142$as_echo "yes" >&6; }
12143 21352
12144$as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h 21353 { echo "$as_me:$LINENO: result: yes" >&5
21354echo "${ECHO_T}yes" >&6; }
21355
21356cat >>confdefs.h <<\_ACEOF
21357#define OPENSSL_LOBOTOMISED_AES 1
21358_ACEOF
12145 21359
12146 21360
12147 21361
12148fi 21362fi
12149rm -f core conftest.err conftest.$ac_objext \
12150 conftest$ac_exeext conftest.$ac_ext
12151 21363
12152# Check for OpenSSL with EVP_aes_*ctr 21364rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES CTR via EVP" >&5 21365 conftest$ac_exeext conftest.$ac_ext
12154$as_echo_n "checking whether OpenSSL has AES CTR via EVP... " >&6; } 21366
12155cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21367 # Check for OpenSSL with EVP_aes_*ctr
21368 { echo "$as_me:$LINENO: checking whether OpenSSL has AES CTR via EVP" >&5
21369echo $ECHO_N "checking whether OpenSSL has AES CTR via EVP... $ECHO_C" >&6; }
21370 cat >conftest.$ac_ext <<_ACEOF
21371/* confdefs.h. */
21372_ACEOF
21373cat confdefs.h >>conftest.$ac_ext
21374cat >>conftest.$ac_ext <<_ACEOF
12156/* end confdefs.h. */ 21375/* end confdefs.h. */
12157 21376
12158#include <string.h> 21377 #include <string.h>
12159#include <openssl/evp.h> 21378 #include <openssl/evp.h>
12160 21379
12161int 21380int
12162main () 21381main ()
12163{ 21382{
12164 21383
12165 exit(EVP_aes_128_ctr() == NULL || 21384 exit(EVP_aes_128_ctr() == NULL ||
12166 EVP_aes_192_cbc() == NULL || 21385 EVP_aes_192_cbc() == NULL ||
12167 EVP_aes_256_cbc() == NULL); 21386 EVP_aes_256_cbc() == NULL);
12168 21387
12169 ; 21388 ;
12170 return 0; 21389 return 0;
12171} 21390}
12172_ACEOF 21391_ACEOF
12173if ac_fn_c_try_link "$LINENO"; then : 21392rm -f conftest.$ac_objext conftest$ac_exeext
21393if { (ac_try="$ac_link"
21394case "(($ac_try" in
21395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21396 *) ac_try_echo=$ac_try;;
21397esac
21398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21399 (eval "$ac_link") 2>conftest.er1
21400 ac_status=$?
21401 grep -v '^ *+' conftest.er1 >conftest.err
21402 rm -f conftest.er1
21403 cat conftest.err >&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); } && {
21406 test -z "$ac_c_werror_flag" ||
21407 test ! -s conftest.err
21408 } && test -s conftest$ac_exeext &&
21409 $as_test_x conftest$ac_exeext; then
12174 21410
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21411 { echo "$as_me:$LINENO: result: yes" >&5
12176$as_echo "yes" >&6; } 21412echo "${ECHO_T}yes" >&6; }
12177 21413
12178$as_echo "#define OPENSSL_HAVE_EVPCTR 1" >>confdefs.h 21414cat >>confdefs.h <<\_ACEOF
21415#define OPENSSL_HAVE_EVPCTR 1
21416_ACEOF
12179 21417
12180 21418
12181else 21419else
21420 echo "$as_me: failed program was:" >&5
21421sed 's/^/| /' conftest.$ac_ext >&5
12182 21422
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21423
12184$as_echo "no" >&6; } 21424 { echo "$as_me:$LINENO: result: no" >&5
21425echo "${ECHO_T}no" >&6; }
12185 21426
12186 21427
12187fi 21428fi
12188rm -f core conftest.err conftest.$ac_objext \
12189 conftest$ac_exeext conftest.$ac_ext
12190 21429
12191# Check for OpenSSL with EVP_aes_*gcm 21430rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES GCM via EVP" >&5 21431 conftest$ac_exeext conftest.$ac_ext
12193$as_echo_n "checking whether OpenSSL has AES GCM via EVP... " >&6; } 21432
12194cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21433 # Check for OpenSSL with EVP_aes_*gcm
21434 { echo "$as_me:$LINENO: checking whether OpenSSL has AES GCM via EVP" >&5
21435echo $ECHO_N "checking whether OpenSSL has AES GCM via EVP... $ECHO_C" >&6; }
21436 cat >conftest.$ac_ext <<_ACEOF
21437/* confdefs.h. */
21438_ACEOF
21439cat confdefs.h >>conftest.$ac_ext
21440cat >>conftest.$ac_ext <<_ACEOF
12195/* end confdefs.h. */ 21441/* end confdefs.h. */
12196 21442
12197#include <string.h> 21443 #include <string.h>
12198#include <openssl/evp.h> 21444 #include <openssl/evp.h>
12199 21445
12200int 21446int
12201main () 21447main ()
12202{ 21448{
12203 21449
12204 exit(EVP_aes_128_gcm() == NULL || 21450 exit(EVP_aes_128_gcm() == NULL ||
12205 EVP_aes_256_gcm() == NULL || 21451 EVP_aes_256_gcm() == NULL ||
12206 EVP_CTRL_GCM_SET_IV_FIXED == 0 || 21452 EVP_CTRL_GCM_SET_IV_FIXED == 0 ||
12207 EVP_CTRL_GCM_IV_GEN == 0 || 21453 EVP_CTRL_GCM_IV_GEN == 0 ||
12208 EVP_CTRL_GCM_SET_TAG == 0 || 21454 EVP_CTRL_GCM_SET_TAG == 0 ||
12209 EVP_CTRL_GCM_GET_TAG == 0 || 21455 EVP_CTRL_GCM_GET_TAG == 0 ||
12210 EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0); 21456 EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0);
12211 21457
12212 ; 21458 ;
12213 return 0; 21459 return 0;
12214} 21460}
12215_ACEOF 21461_ACEOF
12216if ac_fn_c_try_link "$LINENO"; then : 21462rm -f conftest.$ac_objext conftest$ac_exeext
21463if { (ac_try="$ac_link"
21464case "(($ac_try" in
21465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21466 *) ac_try_echo=$ac_try;;
21467esac
21468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21469 (eval "$ac_link") 2>conftest.er1
21470 ac_status=$?
21471 grep -v '^ *+' conftest.er1 >conftest.err
21472 rm -f conftest.er1
21473 cat conftest.err >&5
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); } && {
21476 test -z "$ac_c_werror_flag" ||
21477 test ! -s conftest.err
21478 } && test -s conftest$ac_exeext &&
21479 $as_test_x conftest$ac_exeext; then
12217 21480
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21481 { echo "$as_me:$LINENO: result: yes" >&5
12219$as_echo "yes" >&6; } 21482echo "${ECHO_T}yes" >&6; }
12220 21483
12221$as_echo "#define OPENSSL_HAVE_EVPGCM 1" >>confdefs.h 21484cat >>confdefs.h <<\_ACEOF
21485#define OPENSSL_HAVE_EVPGCM 1
21486_ACEOF
12222 21487
12223 21488
12224else 21489else
21490 echo "$as_me: failed program was:" >&5
21491sed 's/^/| /' conftest.$ac_ext >&5
21492
12225 21493
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21494 { echo "$as_me:$LINENO: result: no" >&5
12227$as_echo "no" >&6; } 21495echo "${ECHO_T}no" >&6; }
12228 unsupported_algorithms="$unsupported_cipers \ 21496 unsupported_algorithms="$unsupported_cipers \
12229 aes128-gcm@openssh.com aes256-gcm@openssh.com" 21497 aes128-gcm@openssh.com aes256-gcm@openssh.com"
12230 21498
12231 21499
12232fi 21500fi
12233rm -f core conftest.err conftest.$ac_objext \
12234 conftest$ac_exeext conftest.$ac_ext
12235 21501
12236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_CIPHER_CTX_ctrl" >&5 21502rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12237$as_echo_n "checking for library containing EVP_CIPHER_CTX_ctrl... " >&6; } 21503 conftest$ac_exeext conftest.$ac_ext
12238if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : 21504
12239 $as_echo_n "(cached) " >&6 21505 { echo "$as_me:$LINENO: checking for library containing EVP_CIPHER_CTX_ctrl" >&5
21506echo $ECHO_N "checking for library containing EVP_CIPHER_CTX_ctrl... $ECHO_C" >&6; }
21507if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then
21508 echo $ECHO_N "(cached) $ECHO_C" >&6
12240else 21509else
12241 ac_func_search_save_LIBS=$LIBS 21510 ac_func_search_save_LIBS=$LIBS
12242cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21511cat >conftest.$ac_ext <<_ACEOF
21512/* confdefs.h. */
21513_ACEOF
21514cat confdefs.h >>conftest.$ac_ext
21515cat >>conftest.$ac_ext <<_ACEOF
12243/* end confdefs.h. */ 21516/* end confdefs.h. */
12244 21517
12245/* Override any GCC internal prototype to avoid an error. 21518/* Override any GCC internal prototype to avoid an error.
@@ -12264,82 +21537,139 @@ for ac_lib in '' crypto; do
12264 ac_res=-l$ac_lib 21537 ac_res=-l$ac_lib
12265 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21538 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12266 fi 21539 fi
12267 if ac_fn_c_try_link "$LINENO"; then : 21540 rm -f conftest.$ac_objext conftest$ac_exeext
21541if { (ac_try="$ac_link"
21542case "(($ac_try" in
21543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21544 *) ac_try_echo=$ac_try;;
21545esac
21546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21547 (eval "$ac_link") 2>conftest.er1
21548 ac_status=$?
21549 grep -v '^ *+' conftest.er1 >conftest.err
21550 rm -f conftest.er1
21551 cat conftest.err >&5
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); } && {
21554 test -z "$ac_c_werror_flag" ||
21555 test ! -s conftest.err
21556 } && test -s conftest$ac_exeext &&
21557 $as_test_x conftest$ac_exeext; then
12268 ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res 21558 ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res
21559else
21560 echo "$as_me: failed program was:" >&5
21561sed 's/^/| /' conftest.$ac_ext >&5
21562
21563
12269fi 21564fi
12270rm -f core conftest.err conftest.$ac_objext \ 21565
12271 conftest$ac_exeext 21566rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12272 if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : 21567 conftest$ac_exeext
21568 if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then
12273 break 21569 break
12274fi 21570fi
12275done 21571done
12276if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : 21572if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then
12277 21573 :
12278else 21574else
12279 ac_cv_search_EVP_CIPHER_CTX_ctrl=no 21575 ac_cv_search_EVP_CIPHER_CTX_ctrl=no
12280fi 21576fi
12281rm conftest.$ac_ext 21577rm conftest.$ac_ext
12282LIBS=$ac_func_search_save_LIBS 21578LIBS=$ac_func_search_save_LIBS
12283fi 21579fi
12284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5 21580{ echo "$as_me:$LINENO: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5
12285$as_echo "$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; } 21581echo "${ECHO_T}$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; }
12286ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl 21582ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl
12287if test "$ac_res" != no; then : 21583if test "$ac_res" != no; then
12288 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21584 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12289 21585
12290$as_echo "#define HAVE_EVP_CIPHER_CTX_CTRL 1" >>confdefs.h 21586cat >>confdefs.h <<\_ACEOF
21587#define HAVE_EVP_CIPHER_CTX_CTRL 1
21588_ACEOF
12291 21589
12292fi 21590fi
12293 21591
12294 21592
12295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5 21593 { echo "$as_me:$LINENO: checking if EVP_DigestUpdate returns an int" >&5
12296$as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; } 21594echo $ECHO_N "checking if EVP_DigestUpdate returns an int... $ECHO_C" >&6; }
12297cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21595 cat >conftest.$ac_ext <<_ACEOF
21596/* confdefs.h. */
21597_ACEOF
21598cat confdefs.h >>conftest.$ac_ext
21599cat >>conftest.$ac_ext <<_ACEOF
12298/* end confdefs.h. */ 21600/* end confdefs.h. */
12299 21601
12300#include <string.h> 21602 #include <string.h>
12301#include <openssl/evp.h> 21603 #include <openssl/evp.h>
12302 21604
12303int 21605int
12304main () 21606main ()
12305{ 21607{
12306 21608
12307 if(EVP_DigestUpdate(NULL, NULL,0)) 21609 if(EVP_DigestUpdate(NULL, NULL,0))
12308 exit(0); 21610 exit(0);
12309 21611
12310 ; 21612 ;
12311 return 0; 21613 return 0;
12312} 21614}
12313_ACEOF 21615_ACEOF
12314if ac_fn_c_try_link "$LINENO"; then : 21616rm -f conftest.$ac_objext conftest$ac_exeext
21617if { (ac_try="$ac_link"
21618case "(($ac_try" in
21619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21620 *) ac_try_echo=$ac_try;;
21621esac
21622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21623 (eval "$ac_link") 2>conftest.er1
21624 ac_status=$?
21625 grep -v '^ *+' conftest.er1 >conftest.err
21626 rm -f conftest.er1
21627 cat conftest.err >&5
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); } && {
21630 test -z "$ac_c_werror_flag" ||
21631 test ! -s conftest.err
21632 } && test -s conftest$ac_exeext &&
21633 $as_test_x conftest$ac_exeext; then
12315 21634
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21635 { echo "$as_me:$LINENO: result: yes" >&5
12317$as_echo "yes" >&6; } 21636echo "${ECHO_T}yes" >&6; }
12318 21637
12319else 21638else
21639 echo "$as_me: failed program was:" >&5
21640sed 's/^/| /' conftest.$ac_ext >&5
12320 21641
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12322$as_echo "no" >&6; }
12323 21642
12324$as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h 21643 { echo "$as_me:$LINENO: result: no" >&5
21644echo "${ECHO_T}no" >&6; }
21645
21646cat >>confdefs.h <<\_ACEOF
21647#define OPENSSL_EVP_DIGESTUPDATE_VOID 1
21648_ACEOF
12325 21649
12326 21650
12327 21651
12328fi 21652fi
12329rm -f core conftest.err conftest.$ac_objext \
12330 conftest$ac_exeext conftest.$ac_ext
12331 21653
12332# Some systems want crypt() from libcrypt, *not* the version in OpenSSL, 21654rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12333# because the system crypt() is more featureful. 21655 conftest$ac_exeext conftest.$ac_ext
12334if test "x$check_for_libcrypt_before" = "x1"; then 21656
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 21657 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
12336$as_echo_n "checking for crypt in -lcrypt... " >&6; } 21658 # because the system crypt() is more featureful.
12337if ${ac_cv_lib_crypt_crypt+:} false; then : 21659 if test "x$check_for_libcrypt_before" = "x1"; then
12338 $as_echo_n "(cached) " >&6 21660
21661{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21662echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21663if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21664 echo $ECHO_N "(cached) $ECHO_C" >&6
12339else 21665else
12340 ac_check_lib_save_LIBS=$LIBS 21666 ac_check_lib_save_LIBS=$LIBS
12341LIBS="-lcrypt $LIBS" 21667LIBS="-lcrypt $LIBS"
12342cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21668cat >conftest.$ac_ext <<_ACEOF
21669/* confdefs.h. */
21670_ACEOF
21671cat confdefs.h >>conftest.$ac_ext
21672cat >>conftest.$ac_ext <<_ACEOF
12343/* end confdefs.h. */ 21673/* end confdefs.h. */
12344 21674
12345/* Override any GCC internal prototype to avoid an error. 21675/* Override any GCC internal prototype to avoid an error.
@@ -12357,18 +21687,39 @@ return crypt ();
12357 return 0; 21687 return 0;
12358} 21688}
12359_ACEOF 21689_ACEOF
12360if ac_fn_c_try_link "$LINENO"; then : 21690rm -f conftest.$ac_objext conftest$ac_exeext
21691if { (ac_try="$ac_link"
21692case "(($ac_try" in
21693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21694 *) ac_try_echo=$ac_try;;
21695esac
21696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21697 (eval "$ac_link") 2>conftest.er1
21698 ac_status=$?
21699 grep -v '^ *+' conftest.er1 >conftest.err
21700 rm -f conftest.er1
21701 cat conftest.err >&5
21702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703 (exit $ac_status); } && {
21704 test -z "$ac_c_werror_flag" ||
21705 test ! -s conftest.err
21706 } && test -s conftest$ac_exeext &&
21707 $as_test_x conftest$ac_exeext; then
12361 ac_cv_lib_crypt_crypt=yes 21708 ac_cv_lib_crypt_crypt=yes
12362else 21709else
12363 ac_cv_lib_crypt_crypt=no 21710 echo "$as_me: failed program was:" >&5
21711sed 's/^/| /' conftest.$ac_ext >&5
21712
21713 ac_cv_lib_crypt_crypt=no
12364fi 21714fi
12365rm -f core conftest.err conftest.$ac_objext \ 21715
12366 conftest$ac_exeext conftest.$ac_ext 21716rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21717 conftest$ac_exeext conftest.$ac_ext
12367LIBS=$ac_check_lib_save_LIBS 21718LIBS=$ac_check_lib_save_LIBS
12368fi 21719fi
12369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 21720{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
12370$as_echo "$ac_cv_lib_crypt_crypt" >&6; } 21721echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
12371if test "x$ac_cv_lib_crypt_crypt" = xyes; then : 21722if test $ac_cv_lib_crypt_crypt = yes; then
12372 cat >>confdefs.h <<_ACEOF 21723 cat >>confdefs.h <<_ACEOF
12373#define HAVE_LIBCRYPT 1 21724#define HAVE_LIBCRYPT 1
12374_ACEOF 21725_ACEOF
@@ -12377,19 +21728,23 @@ _ACEOF
12377 21728
12378fi 21729fi
12379 21730
12380fi 21731 fi
12381 21732
12382# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the 21733 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
12383# version in OpenSSL. 21734 # version in OpenSSL.
12384if test "x$check_for_libcrypt_later" = "x1"; then 21735 if test "x$check_for_libcrypt_later" = "x1"; then
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 21736 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
12386$as_echo_n "checking for crypt in -lcrypt... " >&6; } 21737echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
12387if ${ac_cv_lib_crypt_crypt+:} false; then : 21738if test "${ac_cv_lib_crypt_crypt+set}" = set; then
12388 $as_echo_n "(cached) " >&6 21739 echo $ECHO_N "(cached) $ECHO_C" >&6
12389else 21740else
12390 ac_check_lib_save_LIBS=$LIBS 21741 ac_check_lib_save_LIBS=$LIBS
12391LIBS="-lcrypt $LIBS" 21742LIBS="-lcrypt $LIBS"
12392cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21743cat >conftest.$ac_ext <<_ACEOF
21744/* confdefs.h. */
21745_ACEOF
21746cat confdefs.h >>conftest.$ac_ext
21747cat >>conftest.$ac_ext <<_ACEOF
12393/* end confdefs.h. */ 21748/* end confdefs.h. */
12394 21749
12395/* Override any GCC internal prototype to avoid an error. 21750/* Override any GCC internal prototype to avoid an error.
@@ -12407,286 +21762,913 @@ return crypt ();
12407 return 0; 21762 return 0;
12408} 21763}
12409_ACEOF 21764_ACEOF
12410if ac_fn_c_try_link "$LINENO"; then : 21765rm -f conftest.$ac_objext conftest$ac_exeext
21766if { (ac_try="$ac_link"
21767case "(($ac_try" in
21768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21769 *) ac_try_echo=$ac_try;;
21770esac
21771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21772 (eval "$ac_link") 2>conftest.er1
21773 ac_status=$?
21774 grep -v '^ *+' conftest.er1 >conftest.err
21775 rm -f conftest.er1
21776 cat conftest.err >&5
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); } && {
21779 test -z "$ac_c_werror_flag" ||
21780 test ! -s conftest.err
21781 } && test -s conftest$ac_exeext &&
21782 $as_test_x conftest$ac_exeext; then
12411 ac_cv_lib_crypt_crypt=yes 21783 ac_cv_lib_crypt_crypt=yes
12412else 21784else
12413 ac_cv_lib_crypt_crypt=no 21785 echo "$as_me: failed program was:" >&5
21786sed 's/^/| /' conftest.$ac_ext >&5
21787
21788 ac_cv_lib_crypt_crypt=no
12414fi 21789fi
12415rm -f core conftest.err conftest.$ac_objext \ 21790
12416 conftest$ac_exeext conftest.$ac_ext 21791rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21792 conftest$ac_exeext conftest.$ac_ext
12417LIBS=$ac_check_lib_save_LIBS 21793LIBS=$ac_check_lib_save_LIBS
12418fi 21794fi
12419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 21795{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
12420$as_echo "$ac_cv_lib_crypt_crypt" >&6; } 21796echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
12421if test "x$ac_cv_lib_crypt_crypt" = xyes; then : 21797if test $ac_cv_lib_crypt_crypt = yes; then
12422 LIBS="$LIBS -lcrypt" 21798 LIBS="$LIBS -lcrypt"
12423fi 21799fi
12424 21800
12425fi 21801 fi
21802
21803
12426for ac_func in crypt DES_crypt 21804for ac_func in crypt DES_crypt
12427do : 21805do
12428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21806as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12429ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21807{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12430if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 21808echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21809if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21811else
21812 cat >conftest.$ac_ext <<_ACEOF
21813/* confdefs.h. */
21814_ACEOF
21815cat confdefs.h >>conftest.$ac_ext
21816cat >>conftest.$ac_ext <<_ACEOF
21817/* end confdefs.h. */
21818/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21820#define $ac_func innocuous_$ac_func
21821
21822/* System header to define __stub macros and hopefully few prototypes,
21823 which can conflict with char $ac_func (); below.
21824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21825 <limits.h> exists even on freestanding compilers. */
21826
21827#ifdef __STDC__
21828# include <limits.h>
21829#else
21830# include <assert.h>
21831#endif
21832
21833#undef $ac_func
21834
21835/* Override any GCC internal prototype to avoid an error.
21836 Use char because int might match the return type of a GCC
21837 builtin and then its argument prototype would still apply. */
21838#ifdef __cplusplus
21839extern "C"
21840#endif
21841char $ac_func ();
21842/* The GNU C library defines this for functions which it implements
21843 to always fail with ENOSYS. Some functions are actually named
21844 something starting with __ and the normal name is an alias. */
21845#if defined __stub_$ac_func || defined __stub___$ac_func
21846choke me
21847#endif
21848
21849int
21850main ()
21851{
21852return $ac_func ();
21853 ;
21854 return 0;
21855}
21856_ACEOF
21857rm -f conftest.$ac_objext conftest$ac_exeext
21858if { (ac_try="$ac_link"
21859case "(($ac_try" in
21860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861 *) ac_try_echo=$ac_try;;
21862esac
21863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21864 (eval "$ac_link") 2>conftest.er1
21865 ac_status=$?
21866 grep -v '^ *+' conftest.er1 >conftest.err
21867 rm -f conftest.er1
21868 cat conftest.err >&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); } && {
21871 test -z "$ac_c_werror_flag" ||
21872 test ! -s conftest.err
21873 } && test -s conftest$ac_exeext &&
21874 $as_test_x conftest$ac_exeext; then
21875 eval "$as_ac_var=yes"
21876else
21877 echo "$as_me: failed program was:" >&5
21878sed 's/^/| /' conftest.$ac_ext >&5
21879
21880 eval "$as_ac_var=no"
21881fi
21882
21883rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21884 conftest$ac_exeext conftest.$ac_ext
21885fi
21886ac_res=`eval echo '${'$as_ac_var'}'`
21887 { echo "$as_me:$LINENO: result: $ac_res" >&5
21888echo "${ECHO_T}$ac_res" >&6; }
21889if test `eval echo '${'$as_ac_var'}'` = yes; then
12431 cat >>confdefs.h <<_ACEOF 21890 cat >>confdefs.h <<_ACEOF
12432#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21891#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12433_ACEOF 21892_ACEOF
12434 21893
12435fi 21894fi
12436done 21895done
12437 21896
12438 21897
12439# Search for SHA256 support in libc and/or OpenSSL 21898 # Search for SHA256 support in libc and/or OpenSSL
21899
21900
12440for ac_func in SHA256_Update EVP_sha256 21901for ac_func in SHA256_Update EVP_sha256
12441do : 21902do
12442 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21903as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12443ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21904{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12444if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 21905echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21906if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21907 echo $ECHO_N "(cached) $ECHO_C" >&6
21908else
21909 cat >conftest.$ac_ext <<_ACEOF
21910/* confdefs.h. */
21911_ACEOF
21912cat confdefs.h >>conftest.$ac_ext
21913cat >>conftest.$ac_ext <<_ACEOF
21914/* end confdefs.h. */
21915/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21917#define $ac_func innocuous_$ac_func
21918
21919/* System header to define __stub macros and hopefully few prototypes,
21920 which can conflict with char $ac_func (); below.
21921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21922 <limits.h> exists even on freestanding compilers. */
21923
21924#ifdef __STDC__
21925# include <limits.h>
21926#else
21927# include <assert.h>
21928#endif
21929
21930#undef $ac_func
21931
21932/* Override any GCC internal prototype to avoid an error.
21933 Use char because int might match the return type of a GCC
21934 builtin and then its argument prototype would still apply. */
21935#ifdef __cplusplus
21936extern "C"
21937#endif
21938char $ac_func ();
21939/* The GNU C library defines this for functions which it implements
21940 to always fail with ENOSYS. Some functions are actually named
21941 something starting with __ and the normal name is an alias. */
21942#if defined __stub_$ac_func || defined __stub___$ac_func
21943choke me
21944#endif
21945
21946int
21947main ()
21948{
21949return $ac_func ();
21950 ;
21951 return 0;
21952}
21953_ACEOF
21954rm -f conftest.$ac_objext conftest$ac_exeext
21955if { (ac_try="$ac_link"
21956case "(($ac_try" in
21957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21958 *) ac_try_echo=$ac_try;;
21959esac
21960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21961 (eval "$ac_link") 2>conftest.er1
21962 ac_status=$?
21963 grep -v '^ *+' conftest.er1 >conftest.err
21964 rm -f conftest.er1
21965 cat conftest.err >&5
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); } && {
21968 test -z "$ac_c_werror_flag" ||
21969 test ! -s conftest.err
21970 } && test -s conftest$ac_exeext &&
21971 $as_test_x conftest$ac_exeext; then
21972 eval "$as_ac_var=yes"
21973else
21974 echo "$as_me: failed program was:" >&5
21975sed 's/^/| /' conftest.$ac_ext >&5
21976
21977 eval "$as_ac_var=no"
21978fi
21979
21980rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21981 conftest$ac_exeext conftest.$ac_ext
21982fi
21983ac_res=`eval echo '${'$as_ac_var'}'`
21984 { echo "$as_me:$LINENO: result: $ac_res" >&5
21985echo "${ECHO_T}$ac_res" >&6; }
21986if test `eval echo '${'$as_ac_var'}'` = yes; then
12445 cat >>confdefs.h <<_ACEOF 21987 cat >>confdefs.h <<_ACEOF
12446#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21988#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12447_ACEOF 21989_ACEOF
12448 21990
12449else 21991else
12450 unsupported_algorithms="$unsupported_algorithms \ 21992 unsupported_algorithms="$unsupported_algorithms \
12451 hmac-sha2-256 hmac-sha2-512 \ 21993 hmac-sha2-256 hmac-sha2-512 \
12452 diffie-hellman-group-exchange-sha256 \ 21994 diffie-hellman-group-exchange-sha256 \
12453 hmac-sha2-256-etm@openssh.com hmac-sha2-512-etm@openssh.com" 21995 hmac-sha2-256-etm@openssh.com hmac-sha2-512-etm@openssh.com"
12454 21996
12455 21997
12456fi 21998fi
12457done 21999done
12458 22000
12459# Search for RIPE-MD support in OpenSSL 22001 # Search for RIPE-MD support in OpenSSL
22002
12460for ac_func in EVP_ripemd160 22003for ac_func in EVP_ripemd160
12461do : 22004do
12462 ac_fn_c_check_func "$LINENO" "EVP_ripemd160" "ac_cv_func_EVP_ripemd160" 22005as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12463if test "x$ac_cv_func_EVP_ripemd160" = xyes; then : 22006{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22007echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22008if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22009 echo $ECHO_N "(cached) $ECHO_C" >&6
22010else
22011 cat >conftest.$ac_ext <<_ACEOF
22012/* confdefs.h. */
22013_ACEOF
22014cat confdefs.h >>conftest.$ac_ext
22015cat >>conftest.$ac_ext <<_ACEOF
22016/* end confdefs.h. */
22017/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22019#define $ac_func innocuous_$ac_func
22020
22021/* System header to define __stub macros and hopefully few prototypes,
22022 which can conflict with char $ac_func (); below.
22023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22024 <limits.h> exists even on freestanding compilers. */
22025
22026#ifdef __STDC__
22027# include <limits.h>
22028#else
22029# include <assert.h>
22030#endif
22031
22032#undef $ac_func
22033
22034/* Override any GCC internal prototype to avoid an error.
22035 Use char because int might match the return type of a GCC
22036 builtin and then its argument prototype would still apply. */
22037#ifdef __cplusplus
22038extern "C"
22039#endif
22040char $ac_func ();
22041/* The GNU C library defines this for functions which it implements
22042 to always fail with ENOSYS. Some functions are actually named
22043 something starting with __ and the normal name is an alias. */
22044#if defined __stub_$ac_func || defined __stub___$ac_func
22045choke me
22046#endif
22047
22048int
22049main ()
22050{
22051return $ac_func ();
22052 ;
22053 return 0;
22054}
22055_ACEOF
22056rm -f conftest.$ac_objext conftest$ac_exeext
22057if { (ac_try="$ac_link"
22058case "(($ac_try" in
22059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22060 *) ac_try_echo=$ac_try;;
22061esac
22062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22063 (eval "$ac_link") 2>conftest.er1
22064 ac_status=$?
22065 grep -v '^ *+' conftest.er1 >conftest.err
22066 rm -f conftest.er1
22067 cat conftest.err >&5
22068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069 (exit $ac_status); } && {
22070 test -z "$ac_c_werror_flag" ||
22071 test ! -s conftest.err
22072 } && test -s conftest$ac_exeext &&
22073 $as_test_x conftest$ac_exeext; then
22074 eval "$as_ac_var=yes"
22075else
22076 echo "$as_me: failed program was:" >&5
22077sed 's/^/| /' conftest.$ac_ext >&5
22078
22079 eval "$as_ac_var=no"
22080fi
22081
22082rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22083 conftest$ac_exeext conftest.$ac_ext
22084fi
22085ac_res=`eval echo '${'$as_ac_var'}'`
22086 { echo "$as_me:$LINENO: result: $ac_res" >&5
22087echo "${ECHO_T}$ac_res" >&6; }
22088if test `eval echo '${'$as_ac_var'}'` = yes; then
12464 cat >>confdefs.h <<_ACEOF 22089 cat >>confdefs.h <<_ACEOF
12465#define HAVE_EVP_RIPEMD160 1 22090#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12466_ACEOF 22091_ACEOF
12467 22092
12468else 22093else
12469 unsupported_algorithms="$unsupported_algorithms \ 22094 unsupported_algorithms="$unsupported_algorithms \
12470 hmac-ripemd160 22095 hmac-ripemd160
12471 hmac-ripemd160@openssh.com 22096 hmac-ripemd160@openssh.com
12472 hmac-ripemd160-etm@openssh.com" 22097 hmac-ripemd160-etm@openssh.com"
12473 22098
12474 22099
12475fi 22100fi
12476done 22101done
12477 22102
12478 22103
12479# Check complete ECC support in OpenSSL 22104 # Check complete ECC support in OpenSSL
12480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_X9_62_prime256v1" >&5 22105 { echo "$as_me:$LINENO: checking whether OpenSSL has NID_X9_62_prime256v1" >&5
12481$as_echo_n "checking whether OpenSSL has NID_X9_62_prime256v1... " >&6; } 22106echo $ECHO_N "checking whether OpenSSL has NID_X9_62_prime256v1... $ECHO_C" >&6; }
12482cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22107 cat >conftest.$ac_ext <<_ACEOF
22108/* confdefs.h. */
22109_ACEOF
22110cat confdefs.h >>conftest.$ac_ext
22111cat >>conftest.$ac_ext <<_ACEOF
12483/* end confdefs.h. */ 22112/* end confdefs.h. */
12484 22113
12485#include <openssl/ec.h> 22114 #include <openssl/ec.h>
12486#include <openssl/ecdh.h> 22115 #include <openssl/ecdh.h>
12487#include <openssl/ecdsa.h> 22116 #include <openssl/ecdsa.h>
12488#include <openssl/evp.h> 22117 #include <openssl/evp.h>
12489#include <openssl/objects.h> 22118 #include <openssl/objects.h>
12490#include <openssl/opensslv.h> 22119 #include <openssl/opensslv.h>
12491#if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ 22120 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
12492# error "OpenSSL < 0.9.8g has unreliable ECC code" 22121 # error "OpenSSL < 0.9.8g has unreliable ECC code"
12493#endif 22122 #endif
12494 22123
12495int 22124int
12496main () 22125main ()
12497{ 22126{
12498 22127
12499 EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); 22128 EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
12500 const EVP_MD *m = EVP_sha256(); /* We need this too */ 22129 const EVP_MD *m = EVP_sha256(); /* We need this too */
12501 22130
12502 ; 22131 ;
12503 return 0; 22132 return 0;
12504} 22133}
12505_ACEOF 22134_ACEOF
12506if ac_fn_c_try_link "$LINENO"; then : 22135rm -f conftest.$ac_objext conftest$ac_exeext
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22136if { (ac_try="$ac_link"
12508$as_echo "yes" >&6; } 22137case "(($ac_try" in
12509 enable_nistp256=1 22138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22139 *) ac_try_echo=$ac_try;;
22140esac
22141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22142 (eval "$ac_link") 2>conftest.er1
22143 ac_status=$?
22144 grep -v '^ *+' conftest.er1 >conftest.err
22145 rm -f conftest.er1
22146 cat conftest.err >&5
22147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148 (exit $ac_status); } && {
22149 test -z "$ac_c_werror_flag" ||
22150 test ! -s conftest.err
22151 } && test -s conftest$ac_exeext &&
22152 $as_test_x conftest$ac_exeext; then
22153 { echo "$as_me:$LINENO: result: yes" >&5
22154echo "${ECHO_T}yes" >&6; }
22155 enable_nistp256=1
12510else 22156else
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22157 echo "$as_me: failed program was:" >&5
12512$as_echo "no" >&6; } 22158sed 's/^/| /' conftest.$ac_ext >&5
22159
22160 { echo "$as_me:$LINENO: result: no" >&5
22161echo "${ECHO_T}no" >&6; }
12513 22162
12514fi 22163fi
12515rm -f core conftest.err conftest.$ac_objext \
12516 conftest$ac_exeext conftest.$ac_ext
12517 22164
12518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp384r1" >&5 22165rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12519$as_echo_n "checking whether OpenSSL has NID_secp384r1... " >&6; } 22166 conftest$ac_exeext conftest.$ac_ext
12520cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22167
22168 { echo "$as_me:$LINENO: checking whether OpenSSL has NID_secp384r1" >&5
22169echo $ECHO_N "checking whether OpenSSL has NID_secp384r1... $ECHO_C" >&6; }
22170 cat >conftest.$ac_ext <<_ACEOF
22171/* confdefs.h. */
22172_ACEOF
22173cat confdefs.h >>conftest.$ac_ext
22174cat >>conftest.$ac_ext <<_ACEOF
12521/* end confdefs.h. */ 22175/* end confdefs.h. */
12522 22176
12523#include <openssl/ec.h> 22177 #include <openssl/ec.h>
12524#include <openssl/ecdh.h> 22178 #include <openssl/ecdh.h>
12525#include <openssl/ecdsa.h> 22179 #include <openssl/ecdsa.h>
12526#include <openssl/evp.h> 22180 #include <openssl/evp.h>
12527#include <openssl/objects.h> 22181 #include <openssl/objects.h>
12528#include <openssl/opensslv.h> 22182 #include <openssl/opensslv.h>
12529#if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ 22183 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
12530# error "OpenSSL < 0.9.8g has unreliable ECC code" 22184 # error "OpenSSL < 0.9.8g has unreliable ECC code"
12531#endif 22185 #endif
12532 22186
12533int 22187int
12534main () 22188main ()
12535{ 22189{
12536 22190
12537 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1); 22191 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1);
12538 const EVP_MD *m = EVP_sha384(); /* We need this too */ 22192 const EVP_MD *m = EVP_sha384(); /* We need this too */
12539 22193
12540 ; 22194 ;
12541 return 0; 22195 return 0;
12542} 22196}
12543_ACEOF 22197_ACEOF
12544if ac_fn_c_try_link "$LINENO"; then : 22198rm -f conftest.$ac_objext conftest$ac_exeext
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22199if { (ac_try="$ac_link"
12546$as_echo "yes" >&6; } 22200case "(($ac_try" in
12547 enable_nistp384=1 22201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22202 *) ac_try_echo=$ac_try;;
22203esac
22204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22205 (eval "$ac_link") 2>conftest.er1
22206 ac_status=$?
22207 grep -v '^ *+' conftest.er1 >conftest.err
22208 rm -f conftest.er1
22209 cat conftest.err >&5
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); } && {
22212 test -z "$ac_c_werror_flag" ||
22213 test ! -s conftest.err
22214 } && test -s conftest$ac_exeext &&
22215 $as_test_x conftest$ac_exeext; then
22216 { echo "$as_me:$LINENO: result: yes" >&5
22217echo "${ECHO_T}yes" >&6; }
22218 enable_nistp384=1
12548else 22219else
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22220 echo "$as_me: failed program was:" >&5
12550$as_echo "no" >&6; } 22221sed 's/^/| /' conftest.$ac_ext >&5
22222
22223 { echo "$as_me:$LINENO: result: no" >&5
22224echo "${ECHO_T}no" >&6; }
12551 22225
12552fi 22226fi
12553rm -f core conftest.err conftest.$ac_objext \
12554 conftest$ac_exeext conftest.$ac_ext
12555 22227
12556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp521r1" >&5 22228rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12557$as_echo_n "checking whether OpenSSL has NID_secp521r1... " >&6; } 22229 conftest$ac_exeext conftest.$ac_ext
12558cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22230
22231 { echo "$as_me:$LINENO: checking whether OpenSSL has NID_secp521r1" >&5
22232echo $ECHO_N "checking whether OpenSSL has NID_secp521r1... $ECHO_C" >&6; }
22233 cat >conftest.$ac_ext <<_ACEOF
22234/* confdefs.h. */
22235_ACEOF
22236cat confdefs.h >>conftest.$ac_ext
22237cat >>conftest.$ac_ext <<_ACEOF
12559/* end confdefs.h. */ 22238/* end confdefs.h. */
12560 22239
12561#include <openssl/ec.h> 22240 #include <openssl/ec.h>
12562#include <openssl/ecdh.h> 22241 #include <openssl/ecdh.h>
12563#include <openssl/ecdsa.h> 22242 #include <openssl/ecdsa.h>
12564#include <openssl/evp.h> 22243 #include <openssl/evp.h>
12565#include <openssl/objects.h> 22244 #include <openssl/objects.h>
12566#include <openssl/opensslv.h> 22245 #include <openssl/opensslv.h>
12567#if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ 22246 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
12568# error "OpenSSL < 0.9.8g has unreliable ECC code" 22247 # error "OpenSSL < 0.9.8g has unreliable ECC code"
12569#endif 22248 #endif
12570 22249
12571int 22250int
12572main () 22251main ()
12573{ 22252{
12574 22253
12575 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); 22254 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
12576 const EVP_MD *m = EVP_sha512(); /* We need this too */ 22255 const EVP_MD *m = EVP_sha512(); /* We need this too */
12577 22256
12578 ; 22257 ;
12579 return 0; 22258 return 0;
12580} 22259}
12581_ACEOF 22260_ACEOF
12582if ac_fn_c_try_link "$LINENO"; then : 22261rm -f conftest.$ac_objext conftest$ac_exeext
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22262if { (ac_try="$ac_link"
12584$as_echo "yes" >&6; } 22263case "(($ac_try" in
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL's NID_secp521r1 is functional" >&5 22264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586$as_echo_n "checking if OpenSSL's NID_secp521r1 is functional... " >&6; } 22265 *) ac_try_echo=$ac_try;;
12587 if test "$cross_compiling" = yes; then : 22266esac
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: assuming yes" >&5 22267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589$as_echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;} 22268 (eval "$ac_link") 2>conftest.er1
12590 enable_nistp521=1 22269 ac_status=$?
12591 22270 grep -v '^ *+' conftest.er1 >conftest.err
12592else 22271 rm -f conftest.er1
12593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22272 cat conftest.err >&5
22273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); } && {
22275 test -z "$ac_c_werror_flag" ||
22276 test ! -s conftest.err
22277 } && test -s conftest$ac_exeext &&
22278 $as_test_x conftest$ac_exeext; then
22279 { echo "$as_me:$LINENO: result: yes" >&5
22280echo "${ECHO_T}yes" >&6; }
22281 { echo "$as_me:$LINENO: checking if OpenSSL's NID_secp521r1 is functional" >&5
22282echo $ECHO_N "checking if OpenSSL's NID_secp521r1 is functional... $ECHO_C" >&6; }
22283 if test "$cross_compiling" = yes; then
22284 { echo "$as_me:$LINENO: WARNING: cross-compiling: assuming yes" >&5
22285echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;}
22286 enable_nistp521=1
22287
22288else
22289 cat >conftest.$ac_ext <<_ACEOF
22290/* confdefs.h. */
22291_ACEOF
22292cat confdefs.h >>conftest.$ac_ext
22293cat >>conftest.$ac_ext <<_ACEOF
12594/* end confdefs.h. */ 22294/* end confdefs.h. */
12595 22295
12596#include <openssl/ec.h> 22296 #include <openssl/ec.h>
12597#include <openssl/ecdh.h> 22297 #include <openssl/ecdh.h>
12598#include <openssl/ecdsa.h> 22298 #include <openssl/ecdsa.h>
12599#include <openssl/evp.h> 22299 #include <openssl/evp.h>
12600#include <openssl/objects.h> 22300 #include <openssl/objects.h>
12601#include <openssl/opensslv.h> 22301 #include <openssl/opensslv.h>
12602 22302
12603int 22303int
12604main () 22304main ()
12605{ 22305{
12606 22306
12607 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); 22307 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
12608 const EVP_MD *m = EVP_sha512(); /* We need this too */ 22308 const EVP_MD *m = EVP_sha512(); /* We need this too */
12609 exit(e == NULL || m == NULL); 22309 exit(e == NULL || m == NULL);
12610 22310
12611 ; 22311 ;
12612 return 0; 22312 return 0;
12613} 22313}
12614_ACEOF 22314_ACEOF
12615if ac_fn_c_try_run "$LINENO"; then : 22315rm -f conftest$ac_exeext
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22316if { (ac_try="$ac_link"
12617$as_echo "yes" >&6; } 22317case "(($ac_try" in
12618 enable_nistp521=1 22318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12619else 22319 *) ac_try_echo=$ac_try;;
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22320esac
12621$as_echo "no" >&6; } 22321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22322 (eval "$ac_link") 2>&5
22323 ac_status=$?
22324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22326 { (case "(($ac_try" in
22327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22328 *) ac_try_echo=$ac_try;;
22329esac
22330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22331 (eval "$ac_try") 2>&5
22332 ac_status=$?
22333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334 (exit $ac_status); }; }; then
22335 { echo "$as_me:$LINENO: result: yes" >&5
22336echo "${ECHO_T}yes" >&6; }
22337 enable_nistp521=1
22338else
22339 echo "$as_me: program exited with status $ac_status" >&5
22340echo "$as_me: failed program was:" >&5
22341sed 's/^/| /' conftest.$ac_ext >&5
22342
22343( exit $ac_status )
22344 { echo "$as_me:$LINENO: result: no" >&5
22345echo "${ECHO_T}no" >&6; }
12622fi 22346fi
12623rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22347rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12624 conftest.$ac_objext conftest.beam conftest.$ac_ext
12625fi 22348fi
12626 22349
22350
12627else 22351else
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22352 echo "$as_me: failed program was:" >&5
12629$as_echo "no" >&6; } 22353sed 's/^/| /' conftest.$ac_ext >&5
22354
22355 { echo "$as_me:$LINENO: result: no" >&5
22356echo "${ECHO_T}no" >&6; }
12630 22357
12631fi 22358fi
12632rm -f core conftest.err conftest.$ac_objext \
12633 conftest$ac_exeext conftest.$ac_ext
12634 22359
12635COMMENT_OUT_ECC="#no ecc#" 22360rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12636TEST_SSH_ECC=no 22361 conftest$ac_exeext conftest.$ac_ext
12637 22362
12638if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \ 22363 COMMENT_OUT_ECC="#no ecc#"
12639 test x$enable_nistp521 = x1; then 22364 TEST_SSH_ECC=no
12640 22365
12641$as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h 22366 if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \
22367 test x$enable_nistp521 = x1; then
22368
22369cat >>confdefs.h <<\_ACEOF
22370#define OPENSSL_HAS_ECC 1
22371_ACEOF
22372
22373 fi
22374 if test x$enable_nistp256 = x1; then
22375
22376cat >>confdefs.h <<\_ACEOF
22377#define OPENSSL_HAS_NISTP256 1
22378_ACEOF
22379
22380 TEST_SSH_ECC=yes
22381 COMMENT_OUT_ECC=""
22382 else
22383 unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp256 \
22384 ecdh-sha2-nistp256 ecdsa-sha2-nistp256-cert-v01@openssh.com"
22385 fi
22386 if test x$enable_nistp384 = x1; then
22387
22388cat >>confdefs.h <<\_ACEOF
22389#define OPENSSL_HAS_NISTP384 1
22390_ACEOF
22391
22392 TEST_SSH_ECC=yes
22393 COMMENT_OUT_ECC=""
22394 else
22395 unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp384 \
22396 ecdh-sha2-nistp384 ecdsa-sha2-nistp384-cert-v01@openssh.com"
22397 fi
22398 if test x$enable_nistp521 = x1; then
22399
22400cat >>confdefs.h <<\_ACEOF
22401#define OPENSSL_HAS_NISTP521 1
22402_ACEOF
22403
22404 TEST_SSH_ECC=yes
22405 COMMENT_OUT_ECC=""
22406 else
22407 unsupported_algorithms="$unsupported_algorithms ecdh-sha2-nistp521 \
22408 ecdsa-sha2-nistp521 ecdsa-sha2-nistp521-cert-v01@openssh.com"
22409 fi
12642 22410
12643fi
12644if test x$enable_nistp256 = x1; then
12645 22411
12646$as_echo "#define OPENSSL_HAS_NISTP256 1" >>confdefs.h
12647 22412
12648 TEST_SSH_ECC=yes
12649 COMMENT_OUT_ECC=""
12650else 22413else
12651 unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp256 \ 22414 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
12652 ecdh-sha2-nistp256 ecdsa-sha2-nistp256-cert-v01@openssh.com" 22415echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22416if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22417 echo $ECHO_N "(cached) $ECHO_C" >&6
22418else
22419 ac_check_lib_save_LIBS=$LIBS
22420LIBS="-lcrypt $LIBS"
22421cat >conftest.$ac_ext <<_ACEOF
22422/* confdefs.h. */
22423_ACEOF
22424cat confdefs.h >>conftest.$ac_ext
22425cat >>conftest.$ac_ext <<_ACEOF
22426/* end confdefs.h. */
22427
22428/* Override any GCC internal prototype to avoid an error.
22429 Use char because int might match the return type of a GCC
22430 builtin and then its argument prototype would still apply. */
22431#ifdef __cplusplus
22432extern "C"
22433#endif
22434char crypt ();
22435int
22436main ()
22437{
22438return crypt ();
22439 ;
22440 return 0;
22441}
22442_ACEOF
22443rm -f conftest.$ac_objext conftest$ac_exeext
22444if { (ac_try="$ac_link"
22445case "(($ac_try" in
22446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22447 *) ac_try_echo=$ac_try;;
22448esac
22449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22450 (eval "$ac_link") 2>conftest.er1
22451 ac_status=$?
22452 grep -v '^ *+' conftest.er1 >conftest.err
22453 rm -f conftest.er1
22454 cat conftest.err >&5
22455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 (exit $ac_status); } && {
22457 test -z "$ac_c_werror_flag" ||
22458 test ! -s conftest.err
22459 } && test -s conftest$ac_exeext &&
22460 $as_test_x conftest$ac_exeext; then
22461 ac_cv_lib_crypt_crypt=yes
22462else
22463 echo "$as_me: failed program was:" >&5
22464sed 's/^/| /' conftest.$ac_ext >&5
22465
22466 ac_cv_lib_crypt_crypt=no
22467fi
22468
22469rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22470 conftest$ac_exeext conftest.$ac_ext
22471LIBS=$ac_check_lib_save_LIBS
22472fi
22473{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22474echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22475if test $ac_cv_lib_crypt_crypt = yes; then
22476 LIBS="$LIBS -lcrypt"
12653fi 22477fi
12654if test x$enable_nistp384 = x1; then
12655 22478
12656$as_echo "#define OPENSSL_HAS_NISTP384 1" >>confdefs.h
12657 22479
12658 TEST_SSH_ECC=yes 22480for ac_func in crypt
12659 COMMENT_OUT_ECC="" 22481do
22482as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22483{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22484echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22485if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22486 echo $ECHO_N "(cached) $ECHO_C" >&6
12660else 22487else
12661 unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp384 \ 22488 cat >conftest.$ac_ext <<_ACEOF
12662 ecdh-sha2-nistp384 ecdsa-sha2-nistp384-cert-v01@openssh.com" 22489/* confdefs.h. */
12663fi 22490_ACEOF
12664if test x$enable_nistp521 = x1; then 22491cat confdefs.h >>conftest.$ac_ext
22492cat >>conftest.$ac_ext <<_ACEOF
22493/* end confdefs.h. */
22494/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22496#define $ac_func innocuous_$ac_func
22497
22498/* System header to define __stub macros and hopefully few prototypes,
22499 which can conflict with char $ac_func (); below.
22500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22501 <limits.h> exists even on freestanding compilers. */
12665 22502
12666$as_echo "#define OPENSSL_HAS_NISTP521 1" >>confdefs.h 22503#ifdef __STDC__
22504# include <limits.h>
22505#else
22506# include <assert.h>
22507#endif
12667 22508
12668 TEST_SSH_ECC=yes 22509#undef $ac_func
12669 COMMENT_OUT_ECC="" 22510
22511/* Override any GCC internal prototype to avoid an error.
22512 Use char because int might match the return type of a GCC
22513 builtin and then its argument prototype would still apply. */
22514#ifdef __cplusplus
22515extern "C"
22516#endif
22517char $ac_func ();
22518/* The GNU C library defines this for functions which it implements
22519 to always fail with ENOSYS. Some functions are actually named
22520 something starting with __ and the normal name is an alias. */
22521#if defined __stub_$ac_func || defined __stub___$ac_func
22522choke me
22523#endif
22524
22525int
22526main ()
22527{
22528return $ac_func ();
22529 ;
22530 return 0;
22531}
22532_ACEOF
22533rm -f conftest.$ac_objext conftest$ac_exeext
22534if { (ac_try="$ac_link"
22535case "(($ac_try" in
22536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22537 *) ac_try_echo=$ac_try;;
22538esac
22539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22540 (eval "$ac_link") 2>conftest.er1
22541 ac_status=$?
22542 grep -v '^ *+' conftest.er1 >conftest.err
22543 rm -f conftest.er1
22544 cat conftest.err >&5
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); } && {
22547 test -z "$ac_c_werror_flag" ||
22548 test ! -s conftest.err
22549 } && test -s conftest$ac_exeext &&
22550 $as_test_x conftest$ac_exeext; then
22551 eval "$as_ac_var=yes"
12670else 22552else
12671 unsupported_algorithms="$unsupported_algorithms ecdh-sha2-nistp521 \ 22553 echo "$as_me: failed program was:" >&5
12672 ecdsa-sha2-nistp521 ecdsa-sha2-nistp521-cert-v01@openssh.com" 22554sed 's/^/| /' conftest.$ac_ext >&5
22555
22556 eval "$as_ac_var=no"
22557fi
22558
22559rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22560 conftest$ac_exeext conftest.$ac_ext
22561fi
22562ac_res=`eval echo '${'$as_ac_var'}'`
22563 { echo "$as_me:$LINENO: result: $ac_res" >&5
22564echo "${ECHO_T}$ac_res" >&6; }
22565if test `eval echo '${'$as_ac_var'}'` = yes; then
22566 cat >>confdefs.h <<_ACEOF
22567#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22568_ACEOF
22569
22570fi
22571done
22572
12673fi 22573fi
12674 22574
12675 22575
12676 22576
12677 22577
22578
12678for ac_func in \ 22579for ac_func in \
12679 arc4random \ 22580 arc4random \
12680 arc4random_buf \ 22581 arc4random_buf \
12681 arc4random_stir \ 22582 arc4random_stir \
12682 arc4random_uniform \ 22583 arc4random_uniform \
12683 22584
12684do : 22585do
12685 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12686ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22587{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12687if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 22588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22589if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22590 echo $ECHO_N "(cached) $ECHO_C" >&6
22591else
22592 cat >conftest.$ac_ext <<_ACEOF
22593/* confdefs.h. */
22594_ACEOF
22595cat confdefs.h >>conftest.$ac_ext
22596cat >>conftest.$ac_ext <<_ACEOF
22597/* end confdefs.h. */
22598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22600#define $ac_func innocuous_$ac_func
22601
22602/* System header to define __stub macros and hopefully few prototypes,
22603 which can conflict with char $ac_func (); below.
22604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22605 <limits.h> exists even on freestanding compilers. */
22606
22607#ifdef __STDC__
22608# include <limits.h>
22609#else
22610# include <assert.h>
22611#endif
22612
22613#undef $ac_func
22614
22615/* Override any GCC internal prototype to avoid an error.
22616 Use char because int might match the return type of a GCC
22617 builtin and then its argument prototype would still apply. */
22618#ifdef __cplusplus
22619extern "C"
22620#endif
22621char $ac_func ();
22622/* The GNU C library defines this for functions which it implements
22623 to always fail with ENOSYS. Some functions are actually named
22624 something starting with __ and the normal name is an alias. */
22625#if defined __stub_$ac_func || defined __stub___$ac_func
22626choke me
22627#endif
22628
22629int
22630main ()
22631{
22632return $ac_func ();
22633 ;
22634 return 0;
22635}
22636_ACEOF
22637rm -f conftest.$ac_objext conftest$ac_exeext
22638if { (ac_try="$ac_link"
22639case "(($ac_try" in
22640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22641 *) ac_try_echo=$ac_try;;
22642esac
22643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22644 (eval "$ac_link") 2>conftest.er1
22645 ac_status=$?
22646 grep -v '^ *+' conftest.er1 >conftest.err
22647 rm -f conftest.er1
22648 cat conftest.err >&5
22649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22650 (exit $ac_status); } && {
22651 test -z "$ac_c_werror_flag" ||
22652 test ! -s conftest.err
22653 } && test -s conftest$ac_exeext &&
22654 $as_test_x conftest$ac_exeext; then
22655 eval "$as_ac_var=yes"
22656else
22657 echo "$as_me: failed program was:" >&5
22658sed 's/^/| /' conftest.$ac_ext >&5
22659
22660 eval "$as_ac_var=no"
22661fi
22662
22663rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22664 conftest$ac_exeext conftest.$ac_ext
22665fi
22666ac_res=`eval echo '${'$as_ac_var'}'`
22667 { echo "$as_me:$LINENO: result: $ac_res" >&5
22668echo "${ECHO_T}$ac_res" >&6; }
22669if test `eval echo '${'$as_ac_var'}'` = yes; then
12688 cat >>confdefs.h <<_ACEOF 22670 cat >>confdefs.h <<_ACEOF
12689#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22671#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12690_ACEOF 22672_ACEOF
12691 22673
12692fi 22674fi
@@ -12694,14 +22676,18 @@ done
12694 22676
12695 22677
12696saved_LIBS="$LIBS" 22678saved_LIBS="$LIBS"
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5 22679{ echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5
12698$as_echo_n "checking for ia_openinfo in -liaf... " >&6; } 22680echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; }
12699if ${ac_cv_lib_iaf_ia_openinfo+:} false; then : 22681if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then
12700 $as_echo_n "(cached) " >&6 22682 echo $ECHO_N "(cached) $ECHO_C" >&6
12701else 22683else
12702 ac_check_lib_save_LIBS=$LIBS 22684 ac_check_lib_save_LIBS=$LIBS
12703LIBS="-liaf $LIBS" 22685LIBS="-liaf $LIBS"
12704cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22686cat >conftest.$ac_ext <<_ACEOF
22687/* confdefs.h. */
22688_ACEOF
22689cat confdefs.h >>conftest.$ac_ext
22690cat >>conftest.$ac_ext <<_ACEOF
12705/* end confdefs.h. */ 22691/* end confdefs.h. */
12706 22692
12707/* Override any GCC internal prototype to avoid an error. 22693/* Override any GCC internal prototype to avoid an error.
@@ -12719,30 +22705,136 @@ return ia_openinfo ();
12719 return 0; 22705 return 0;
12720} 22706}
12721_ACEOF 22707_ACEOF
12722if ac_fn_c_try_link "$LINENO"; then : 22708rm -f conftest.$ac_objext conftest$ac_exeext
22709if { (ac_try="$ac_link"
22710case "(($ac_try" in
22711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22712 *) ac_try_echo=$ac_try;;
22713esac
22714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22715 (eval "$ac_link") 2>conftest.er1
22716 ac_status=$?
22717 grep -v '^ *+' conftest.er1 >conftest.err
22718 rm -f conftest.er1
22719 cat conftest.err >&5
22720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721 (exit $ac_status); } && {
22722 test -z "$ac_c_werror_flag" ||
22723 test ! -s conftest.err
22724 } && test -s conftest$ac_exeext &&
22725 $as_test_x conftest$ac_exeext; then
12723 ac_cv_lib_iaf_ia_openinfo=yes 22726 ac_cv_lib_iaf_ia_openinfo=yes
12724else 22727else
12725 ac_cv_lib_iaf_ia_openinfo=no 22728 echo "$as_me: failed program was:" >&5
22729sed 's/^/| /' conftest.$ac_ext >&5
22730
22731 ac_cv_lib_iaf_ia_openinfo=no
12726fi 22732fi
12727rm -f core conftest.err conftest.$ac_objext \ 22733
12728 conftest$ac_exeext conftest.$ac_ext 22734rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22735 conftest$ac_exeext conftest.$ac_ext
12729LIBS=$ac_check_lib_save_LIBS 22736LIBS=$ac_check_lib_save_LIBS
12730fi 22737fi
12731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5 22738{ echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5
12732$as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; } 22739echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; }
12733if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then : 22740if test $ac_cv_lib_iaf_ia_openinfo = yes; then
12734 22741
12735 LIBS="$LIBS -liaf" 22742 LIBS="$LIBS -liaf"
12736 for ac_func in set_id 22743
12737do : 22744for ac_func in set_id
12738 ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id" 22745do
12739if test "x$ac_cv_func_set_id" = xyes; then : 22746as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22747{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22748echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22749if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22750 echo $ECHO_N "(cached) $ECHO_C" >&6
22751else
22752 cat >conftest.$ac_ext <<_ACEOF
22753/* confdefs.h. */
22754_ACEOF
22755cat confdefs.h >>conftest.$ac_ext
22756cat >>conftest.$ac_ext <<_ACEOF
22757/* end confdefs.h. */
22758/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22760#define $ac_func innocuous_$ac_func
22761
22762/* System header to define __stub macros and hopefully few prototypes,
22763 which can conflict with char $ac_func (); below.
22764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22765 <limits.h> exists even on freestanding compilers. */
22766
22767#ifdef __STDC__
22768# include <limits.h>
22769#else
22770# include <assert.h>
22771#endif
22772
22773#undef $ac_func
22774
22775/* Override any GCC internal prototype to avoid an error.
22776 Use char because int might match the return type of a GCC
22777 builtin and then its argument prototype would still apply. */
22778#ifdef __cplusplus
22779extern "C"
22780#endif
22781char $ac_func ();
22782/* The GNU C library defines this for functions which it implements
22783 to always fail with ENOSYS. Some functions are actually named
22784 something starting with __ and the normal name is an alias. */
22785#if defined __stub_$ac_func || defined __stub___$ac_func
22786choke me
22787#endif
22788
22789int
22790main ()
22791{
22792return $ac_func ();
22793 ;
22794 return 0;
22795}
22796_ACEOF
22797rm -f conftest.$ac_objext conftest$ac_exeext
22798if { (ac_try="$ac_link"
22799case "(($ac_try" in
22800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22801 *) ac_try_echo=$ac_try;;
22802esac
22803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22804 (eval "$ac_link") 2>conftest.er1
22805 ac_status=$?
22806 grep -v '^ *+' conftest.er1 >conftest.err
22807 rm -f conftest.er1
22808 cat conftest.err >&5
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); } && {
22811 test -z "$ac_c_werror_flag" ||
22812 test ! -s conftest.err
22813 } && test -s conftest$ac_exeext &&
22814 $as_test_x conftest$ac_exeext; then
22815 eval "$as_ac_var=yes"
22816else
22817 echo "$as_me: failed program was:" >&5
22818sed 's/^/| /' conftest.$ac_ext >&5
22819
22820 eval "$as_ac_var=no"
22821fi
22822
22823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22824 conftest$ac_exeext conftest.$ac_ext
22825fi
22826ac_res=`eval echo '${'$as_ac_var'}'`
22827 { echo "$as_me:$LINENO: result: $ac_res" >&5
22828echo "${ECHO_T}$ac_res" >&6; }
22829if test `eval echo '${'$as_ac_var'}'` = yes; then
12740 cat >>confdefs.h <<_ACEOF 22830 cat >>confdefs.h <<_ACEOF
12741#define HAVE_SET_ID 1 22831#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12742_ACEOF 22832_ACEOF
12743 SSHDLIBS="$SSHDLIBS -liaf" 22833 SSHDLIBS="$SSHDLIBS -liaf"
12744 22834
12745$as_echo "#define HAVE_LIBIAF 1" >>confdefs.h 22835cat >>confdefs.h <<\_ACEOF
22836#define HAVE_LIBIAF 1
22837_ACEOF
12746 22838
12747 22839
12748fi 22840fi
@@ -12756,55 +22848,85 @@ LIBS="$saved_LIBS"
12756### Configure cryptographic random number support 22848### Configure cryptographic random number support
12757 22849
12758# Check wheter OpenSSL seeds itself 22850# Check wheter OpenSSL seeds itself
12759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5 22851if test "x$openssl" = "xyes" ; then
12760$as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; } 22852 { echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
12761if test "$cross_compiling" = yes; then : 22853echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; }
22854 if test "$cross_compiling" = yes; then
12762 22855
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 22856 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
12764$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} 22857echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
12765 # This is safe, since we will fatal() at runtime if 22858 # This is safe, since we will fatal() at runtime if
12766 # OpenSSL is not seeded correctly. 22859 # OpenSSL is not seeded correctly.
12767 OPENSSL_SEEDS_ITSELF=yes 22860 OPENSSL_SEEDS_ITSELF=yes
12768 22861
12769 22862
12770else 22863else
12771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22864 cat >conftest.$ac_ext <<_ACEOF
22865/* confdefs.h. */
22866_ACEOF
22867cat confdefs.h >>conftest.$ac_ext
22868cat >>conftest.$ac_ext <<_ACEOF
12772/* end confdefs.h. */ 22869/* end confdefs.h. */
12773 22870
12774#include <string.h> 22871 #include <string.h>
12775#include <openssl/rand.h> 22872 #include <openssl/rand.h>
12776 22873
12777int 22874int
12778main () 22875main ()
12779{ 22876{
12780 22877
12781 exit(RAND_status() == 1 ? 0 : 1); 22878 exit(RAND_status() == 1 ? 0 : 1);
12782 22879
12783 ; 22880 ;
12784 return 0; 22881 return 0;
12785} 22882}
12786_ACEOF 22883_ACEOF
12787if ac_fn_c_try_run "$LINENO"; then : 22884rm -f conftest$ac_exeext
22885if { (ac_try="$ac_link"
22886case "(($ac_try" in
22887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22888 *) ac_try_echo=$ac_try;;
22889esac
22890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22891 (eval "$ac_link") 2>&5
22892 ac_status=$?
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22895 { (case "(($ac_try" in
22896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22897 *) ac_try_echo=$ac_try;;
22898esac
22899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22900 (eval "$ac_try") 2>&5
22901 ac_status=$?
22902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); }; }; then
12788 22904
12789 OPENSSL_SEEDS_ITSELF=yes 22905 OPENSSL_SEEDS_ITSELF=yes
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22906 { echo "$as_me:$LINENO: result: yes" >&5
12791$as_echo "yes" >&6; } 22907echo "${ECHO_T}yes" >&6; }
12792 22908
12793else 22909else
22910 echo "$as_me: program exited with status $ac_status" >&5
22911echo "$as_me: failed program was:" >&5
22912sed 's/^/| /' conftest.$ac_ext >&5
12794 22913
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22914( exit $ac_status )
12796$as_echo "no" >&6; } 22915
22916 { echo "$as_me:$LINENO: result: no" >&5
22917echo "${ECHO_T}no" >&6; }
12797 22918
12798fi 22919fi
12799rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22920rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12800 conftest.$ac_objext conftest.beam conftest.$ac_ext
12801fi 22921fi
12802 22922
12803 22923
22924fi
22925
12804# PRNGD TCP socket 22926# PRNGD TCP socket
12805 22927
12806# Check whether --with-prngd-port was given. 22928# Check whether --with-prngd-port was given.
12807if test "${with_prngd_port+set}" = set; then : 22929if test "${with_prngd_port+set}" = set; then
12808 withval=$with_prngd_port; 22930 withval=$with_prngd_port;
12809 case "$withval" in 22931 case "$withval" in
12810 no) 22932 no)
@@ -12813,7 +22935,9 @@ if test "${with_prngd_port+set}" = set; then :
12813 [0-9]*) 22935 [0-9]*)
12814 ;; 22936 ;;
12815 *) 22937 *)
12816 as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5 22938 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
22939echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
22940 { (exit 1); exit 1; }; }
12817 ;; 22941 ;;
12818 esac 22942 esac
12819 if test ! -z "$withval" ; then 22943 if test ! -z "$withval" ; then
@@ -12832,7 +22956,7 @@ fi
12832# PRNGD Unix domain socket 22956# PRNGD Unix domain socket
12833 22957
12834# Check whether --with-prngd-socket was given. 22958# Check whether --with-prngd-socket was given.
12835if test "${with_prngd_socket+set}" = set; then : 22959if test "${with_prngd_socket+set}" = set; then
12836 withval=$with_prngd_socket; 22960 withval=$with_prngd_socket;
12837 case "$withval" in 22961 case "$withval" in
12838 yes) 22962 yes)
@@ -12844,17 +22968,21 @@ if test "${with_prngd_socket+set}" = set; then :
12844 /*) 22968 /*)
12845 ;; 22969 ;;
12846 *) 22970 *)
12847 as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5 22971 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
22972echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
22973 { (exit 1); exit 1; }; }
12848 ;; 22974 ;;
12849 esac 22975 esac
12850 22976
12851 if test ! -z "$withval" ; then 22977 if test ! -z "$withval" ; then
12852 if test ! -z "$PRNGD_PORT" ; then 22978 if test ! -z "$PRNGD_PORT" ; then
12853 as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5 22979 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
22980echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
22981 { (exit 1); exit 1; }; }
12854 fi 22982 fi
12855 if test ! -r "$withval" ; then 22983 if test ! -r "$withval" ; then
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5 22984 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
12857$as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;} 22985echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
12858 fi 22986 fi
12859 PRNGD_SOCKET="$withval" 22987 PRNGD_SOCKET="$withval"
12860 22988
@@ -12868,8 +22996,8 @@ else
12868 22996
12869 # Check for existing socket only if we don't have a random device already 22997 # Check for existing socket only if we don't have a random device already
12870 if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then 22998 if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5 22999 { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
12872$as_echo_n "checking for PRNGD/EGD socket... " >&6; } 23000echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; }
12873 # Insert other locations here 23001 # Insert other locations here
12874 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do 23002 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
12875 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then 23003 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
@@ -12882,11 +23010,11 @@ _ACEOF
12882 fi 23010 fi
12883 done 23011 done
12884 if test ! -z "$PRNGD_SOCKET" ; then 23012 if test ! -z "$PRNGD_SOCKET" ; then
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5 23013 { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
12886$as_echo "$PRNGD_SOCKET" >&6; } 23014echo "${ECHO_T}$PRNGD_SOCKET" >&6; }
12887 else 23015 else
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23016 { echo "$as_me:$LINENO: result: not found" >&5
12889$as_echo "not found" >&6; } 23017echo "${ECHO_T}not found" >&6; }
12890 fi 23018 fi
12891 fi 23019 fi
12892 23020
@@ -12901,34 +23029,48 @@ elif test ! -z "$PRNGD_SOCKET" ; then
12901 RAND_MSG="PRNGd socket $PRNGD_SOCKET" 23029 RAND_MSG="PRNGd socket $PRNGD_SOCKET"
12902elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then 23030elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then
12903 23031
12904$as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h 23032cat >>confdefs.h <<\_ACEOF
23033#define OPENSSL_PRNG_ONLY 1
23034_ACEOF
12905 23035
12906 RAND_MSG="OpenSSL internal ONLY" 23036 RAND_MSG="OpenSSL internal ONLY"
23037elif test "x$openssl" = "xno" ; then
23038 { echo "$as_me:$LINENO: WARNING: OpenSSH will use /dev/urandom as a source of random numbers. It will fail if this device is not supported or accessible" >&5
23039echo "$as_me: WARNING: OpenSSH will use /dev/urandom as a source of random numbers. It will fail if this device is not supported or accessible" >&2;}
12907else 23040else
12908 as_fn_error $? "OpenSSH has no source of random numbers. Please configure OpenSSL with an entropy source or re-run configure using one of the --with-prngd-port or --with-prngd-socket options" "$LINENO" 5 23041 { { echo "$as_me:$LINENO: error: OpenSSH has no source of random numbers. Please configure OpenSSL with an entropy source or re-run configure using one of the --with-prngd-port or --with-prngd-socket options" >&5
23042echo "$as_me: error: OpenSSH has no source of random numbers. Please configure OpenSSL with an entropy source or re-run configure using one of the --with-prngd-port or --with-prngd-socket options" >&2;}
23043 { (exit 1); exit 1; }; }
12909fi 23044fi
12910 23045
12911# Check for PAM libs 23046# Check for PAM libs
12912PAM_MSG="no" 23047PAM_MSG="no"
12913 23048
12914# Check whether --with-pam was given. 23049# Check whether --with-pam was given.
12915if test "${with_pam+set}" = set; then : 23050if test "${with_pam+set}" = set; then
12916 withval=$with_pam; 23051 withval=$with_pam;
12917 if test "x$withval" != "xno" ; then 23052 if test "x$withval" != "xno" ; then
12918 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ 23053 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
12919 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then 23054 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
12920 as_fn_error $? "PAM headers not found" "$LINENO" 5 23055 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
23056echo "$as_me: error: PAM headers not found" >&2;}
23057 { (exit 1); exit 1; }; }
12921 fi 23058 fi
12922 23059
12923 saved_LIBS="$LIBS" 23060 saved_LIBS="$LIBS"
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 23061
12925$as_echo_n "checking for dlopen in -ldl... " >&6; } 23062{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12926if ${ac_cv_lib_dl_dlopen+:} false; then : 23063echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12927 $as_echo_n "(cached) " >&6 23064if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23065 echo $ECHO_N "(cached) $ECHO_C" >&6
12928else 23066else
12929 ac_check_lib_save_LIBS=$LIBS 23067 ac_check_lib_save_LIBS=$LIBS
12930LIBS="-ldl $LIBS" 23068LIBS="-ldl $LIBS"
12931cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23069cat >conftest.$ac_ext <<_ACEOF
23070/* confdefs.h. */
23071_ACEOF
23072cat confdefs.h >>conftest.$ac_ext
23073cat >>conftest.$ac_ext <<_ACEOF
12932/* end confdefs.h. */ 23074/* end confdefs.h. */
12933 23075
12934/* Override any GCC internal prototype to avoid an error. 23076/* Override any GCC internal prototype to avoid an error.
@@ -12946,18 +23088,39 @@ return dlopen ();
12946 return 0; 23088 return 0;
12947} 23089}
12948_ACEOF 23090_ACEOF
12949if ac_fn_c_try_link "$LINENO"; then : 23091rm -f conftest.$ac_objext conftest$ac_exeext
23092if { (ac_try="$ac_link"
23093case "(($ac_try" in
23094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23095 *) ac_try_echo=$ac_try;;
23096esac
23097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23098 (eval "$ac_link") 2>conftest.er1
23099 ac_status=$?
23100 grep -v '^ *+' conftest.er1 >conftest.err
23101 rm -f conftest.er1
23102 cat conftest.err >&5
23103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); } && {
23105 test -z "$ac_c_werror_flag" ||
23106 test ! -s conftest.err
23107 } && test -s conftest$ac_exeext &&
23108 $as_test_x conftest$ac_exeext; then
12950 ac_cv_lib_dl_dlopen=yes 23109 ac_cv_lib_dl_dlopen=yes
12951else 23110else
12952 ac_cv_lib_dl_dlopen=no 23111 echo "$as_me: failed program was:" >&5
23112sed 's/^/| /' conftest.$ac_ext >&5
23113
23114 ac_cv_lib_dl_dlopen=no
12953fi 23115fi
12954rm -f core conftest.err conftest.$ac_objext \ 23116
12955 conftest$ac_exeext conftest.$ac_ext 23117rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23118 conftest$ac_exeext conftest.$ac_ext
12956LIBS=$ac_check_lib_save_LIBS 23119LIBS=$ac_check_lib_save_LIBS
12957fi 23120fi
12958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 23121{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12959$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 23122echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12960if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 23123if test $ac_cv_lib_dl_dlopen = yes; then
12961 cat >>confdefs.h <<_ACEOF 23124 cat >>confdefs.h <<_ACEOF
12962#define HAVE_LIBDL 1 23125#define HAVE_LIBDL 1
12963_ACEOF 23126_ACEOF
@@ -12966,14 +23129,19 @@ _ACEOF
12966 23129
12967fi 23130fi
12968 23131
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5 23132
12970$as_echo_n "checking for pam_set_item in -lpam... " >&6; } 23133{ echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
12971if ${ac_cv_lib_pam_pam_set_item+:} false; then : 23134echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; }
12972 $as_echo_n "(cached) " >&6 23135if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
23136 echo $ECHO_N "(cached) $ECHO_C" >&6
12973else 23137else
12974 ac_check_lib_save_LIBS=$LIBS 23138 ac_check_lib_save_LIBS=$LIBS
12975LIBS="-lpam $LIBS" 23139LIBS="-lpam $LIBS"
12976cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23140cat >conftest.$ac_ext <<_ACEOF
23141/* confdefs.h. */
23142_ACEOF
23143cat confdefs.h >>conftest.$ac_ext
23144cat >>conftest.$ac_ext <<_ACEOF
12977/* end confdefs.h. */ 23145/* end confdefs.h. */
12978 23146
12979/* Override any GCC internal prototype to avoid an error. 23147/* Override any GCC internal prototype to avoid an error.
@@ -12991,18 +23159,39 @@ return pam_set_item ();
12991 return 0; 23159 return 0;
12992} 23160}
12993_ACEOF 23161_ACEOF
12994if ac_fn_c_try_link "$LINENO"; then : 23162rm -f conftest.$ac_objext conftest$ac_exeext
23163if { (ac_try="$ac_link"
23164case "(($ac_try" in
23165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23166 *) ac_try_echo=$ac_try;;
23167esac
23168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23169 (eval "$ac_link") 2>conftest.er1
23170 ac_status=$?
23171 grep -v '^ *+' conftest.er1 >conftest.err
23172 rm -f conftest.er1
23173 cat conftest.err >&5
23174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175 (exit $ac_status); } && {
23176 test -z "$ac_c_werror_flag" ||
23177 test ! -s conftest.err
23178 } && test -s conftest$ac_exeext &&
23179 $as_test_x conftest$ac_exeext; then
12995 ac_cv_lib_pam_pam_set_item=yes 23180 ac_cv_lib_pam_pam_set_item=yes
12996else 23181else
12997 ac_cv_lib_pam_pam_set_item=no 23182 echo "$as_me: failed program was:" >&5
23183sed 's/^/| /' conftest.$ac_ext >&5
23184
23185 ac_cv_lib_pam_pam_set_item=no
12998fi 23186fi
12999rm -f core conftest.err conftest.$ac_objext \ 23187
13000 conftest$ac_exeext conftest.$ac_ext 23188rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23189 conftest$ac_exeext conftest.$ac_ext
13001LIBS=$ac_check_lib_save_LIBS 23190LIBS=$ac_check_lib_save_LIBS
13002fi 23191fi
13003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5 23192{ echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
13004$as_echo "$ac_cv_lib_pam_pam_set_item" >&6; } 23193echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; }
13005if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then : 23194if test $ac_cv_lib_pam_pam_set_item = yes; then
13006 cat >>confdefs.h <<_ACEOF 23195 cat >>confdefs.h <<_ACEOF
13007#define HAVE_LIBPAM 1 23196#define HAVE_LIBPAM 1
13008_ACEOF 23197_ACEOF
@@ -13010,26 +23199,194 @@ _ACEOF
13010 LIBS="-lpam $LIBS" 23199 LIBS="-lpam $LIBS"
13011 23200
13012else 23201else
13013 as_fn_error $? "*** libpam missing" "$LINENO" 5 23202 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
23203echo "$as_me: error: *** libpam missing" >&2;}
23204 { (exit 1); exit 1; }; }
13014fi 23205fi
13015 23206
13016 for ac_func in pam_getenvlist 23207
13017do : 23208for ac_func in pam_getenvlist
13018 ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist" 23209do
13019if test "x$ac_cv_func_pam_getenvlist" = xyes; then : 23210as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23211{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23212echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23213if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23214 echo $ECHO_N "(cached) $ECHO_C" >&6
23215else
23216 cat >conftest.$ac_ext <<_ACEOF
23217/* confdefs.h. */
23218_ACEOF
23219cat confdefs.h >>conftest.$ac_ext
23220cat >>conftest.$ac_ext <<_ACEOF
23221/* end confdefs.h. */
23222/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23224#define $ac_func innocuous_$ac_func
23225
23226/* System header to define __stub macros and hopefully few prototypes,
23227 which can conflict with char $ac_func (); below.
23228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23229 <limits.h> exists even on freestanding compilers. */
23230
23231#ifdef __STDC__
23232# include <limits.h>
23233#else
23234# include <assert.h>
23235#endif
23236
23237#undef $ac_func
23238
23239/* Override any GCC internal prototype to avoid an error.
23240 Use char because int might match the return type of a GCC
23241 builtin and then its argument prototype would still apply. */
23242#ifdef __cplusplus
23243extern "C"
23244#endif
23245char $ac_func ();
23246/* The GNU C library defines this for functions which it implements
23247 to always fail with ENOSYS. Some functions are actually named
23248 something starting with __ and the normal name is an alias. */
23249#if defined __stub_$ac_func || defined __stub___$ac_func
23250choke me
23251#endif
23252
23253int
23254main ()
23255{
23256return $ac_func ();
23257 ;
23258 return 0;
23259}
23260_ACEOF
23261rm -f conftest.$ac_objext conftest$ac_exeext
23262if { (ac_try="$ac_link"
23263case "(($ac_try" in
23264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23265 *) ac_try_echo=$ac_try;;
23266esac
23267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23268 (eval "$ac_link") 2>conftest.er1
23269 ac_status=$?
23270 grep -v '^ *+' conftest.er1 >conftest.err
23271 rm -f conftest.er1
23272 cat conftest.err >&5
23273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274 (exit $ac_status); } && {
23275 test -z "$ac_c_werror_flag" ||
23276 test ! -s conftest.err
23277 } && test -s conftest$ac_exeext &&
23278 $as_test_x conftest$ac_exeext; then
23279 eval "$as_ac_var=yes"
23280else
23281 echo "$as_me: failed program was:" >&5
23282sed 's/^/| /' conftest.$ac_ext >&5
23283
23284 eval "$as_ac_var=no"
23285fi
23286
23287rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23288 conftest$ac_exeext conftest.$ac_ext
23289fi
23290ac_res=`eval echo '${'$as_ac_var'}'`
23291 { echo "$as_me:$LINENO: result: $ac_res" >&5
23292echo "${ECHO_T}$ac_res" >&6; }
23293if test `eval echo '${'$as_ac_var'}'` = yes; then
13020 cat >>confdefs.h <<_ACEOF 23294 cat >>confdefs.h <<_ACEOF
13021#define HAVE_PAM_GETENVLIST 1 23295#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13022_ACEOF 23296_ACEOF
13023 23297
13024fi 23298fi
13025done 23299done
13026 23300
13027 for ac_func in pam_putenv 23301
13028do : 23302for ac_func in pam_putenv
13029 ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv" 23303do
13030if test "x$ac_cv_func_pam_putenv" = xyes; then : 23304as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23305{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23306echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23307if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23308 echo $ECHO_N "(cached) $ECHO_C" >&6
23309else
23310 cat >conftest.$ac_ext <<_ACEOF
23311/* confdefs.h. */
23312_ACEOF
23313cat confdefs.h >>conftest.$ac_ext
23314cat >>conftest.$ac_ext <<_ACEOF
23315/* end confdefs.h. */
23316/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23318#define $ac_func innocuous_$ac_func
23319
23320/* System header to define __stub macros and hopefully few prototypes,
23321 which can conflict with char $ac_func (); below.
23322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23323 <limits.h> exists even on freestanding compilers. */
23324
23325#ifdef __STDC__
23326# include <limits.h>
23327#else
23328# include <assert.h>
23329#endif
23330
23331#undef $ac_func
23332
23333/* Override any GCC internal prototype to avoid an error.
23334 Use char because int might match the return type of a GCC
23335 builtin and then its argument prototype would still apply. */
23336#ifdef __cplusplus
23337extern "C"
23338#endif
23339char $ac_func ();
23340/* The GNU C library defines this for functions which it implements
23341 to always fail with ENOSYS. Some functions are actually named
23342 something starting with __ and the normal name is an alias. */
23343#if defined __stub_$ac_func || defined __stub___$ac_func
23344choke me
23345#endif
23346
23347int
23348main ()
23349{
23350return $ac_func ();
23351 ;
23352 return 0;
23353}
23354_ACEOF
23355rm -f conftest.$ac_objext conftest$ac_exeext
23356if { (ac_try="$ac_link"
23357case "(($ac_try" in
23358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23359 *) ac_try_echo=$ac_try;;
23360esac
23361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23362 (eval "$ac_link") 2>conftest.er1
23363 ac_status=$?
23364 grep -v '^ *+' conftest.er1 >conftest.err
23365 rm -f conftest.er1
23366 cat conftest.err >&5
23367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368 (exit $ac_status); } && {
23369 test -z "$ac_c_werror_flag" ||
23370 test ! -s conftest.err
23371 } && test -s conftest$ac_exeext &&
23372 $as_test_x conftest$ac_exeext; then
23373 eval "$as_ac_var=yes"
23374else
23375 echo "$as_me: failed program was:" >&5
23376sed 's/^/| /' conftest.$ac_ext >&5
23377
23378 eval "$as_ac_var=no"
23379fi
23380
23381rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23382 conftest$ac_exeext conftest.$ac_ext
23383fi
23384ac_res=`eval echo '${'$as_ac_var'}'`
23385 { echo "$as_me:$LINENO: result: $ac_res" >&5
23386echo "${ECHO_T}$ac_res" >&6; }
23387if test `eval echo '${'$as_ac_var'}'` = yes; then
13031 cat >>confdefs.h <<_ACEOF 23388 cat >>confdefs.h <<_ACEOF
13032#define HAVE_PAM_PUTENV 1 23389#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13033_ACEOF 23390_ACEOF
13034 23391
13035fi 23392fi
@@ -13041,7 +23398,9 @@ done
13041 23398
13042 SSHDLIBS="$SSHDLIBS -lpam" 23399 SSHDLIBS="$SSHDLIBS -lpam"
13043 23400
13044$as_echo "#define USE_PAM 1" >>confdefs.h 23401cat >>confdefs.h <<\_ACEOF
23402#define USE_PAM 1
23403_ACEOF
13045 23404
13046 23405
13047 if test $ac_cv_lib_dl_dlopen = yes; then 23406 if test $ac_cv_lib_dl_dlopen = yes; then
@@ -13063,9 +23422,13 @@ fi
13063# Check for older PAM 23422# Check for older PAM
13064if test "x$PAM_MSG" = "xyes" ; then 23423if test "x$PAM_MSG" = "xyes" ; then
13065 # Check PAM strerror arguments (old PAM) 23424 # Check PAM strerror arguments (old PAM)
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5 23425 { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
13067$as_echo_n "checking whether pam_strerror takes only one argument... " >&6; } 23426echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; }
13068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23427 cat >conftest.$ac_ext <<_ACEOF
23428/* confdefs.h. */
23429_ACEOF
23430cat confdefs.h >>conftest.$ac_ext
23431cat >>conftest.$ac_ext <<_ACEOF
13069/* end confdefs.h. */ 23432/* end confdefs.h. */
13070 23433
13071#include <stdlib.h> 23434#include <stdlib.h>
@@ -13085,20 +23448,42 @@ main ()
13085 return 0; 23448 return 0;
13086} 23449}
13087_ACEOF 23450_ACEOF
13088if ac_fn_c_try_compile "$LINENO"; then : 23451rm -f conftest.$ac_objext
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23452if { (ac_try="$ac_compile"
13090$as_echo "no" >&6; } 23453case "(($ac_try" in
23454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23455 *) ac_try_echo=$ac_try;;
23456esac
23457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23458 (eval "$ac_compile") 2>conftest.er1
23459 ac_status=$?
23460 grep -v '^ *+' conftest.er1 >conftest.err
23461 rm -f conftest.er1
23462 cat conftest.err >&5
23463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); } && {
23465 test -z "$ac_c_werror_flag" ||
23466 test ! -s conftest.err
23467 } && test -s conftest.$ac_objext; then
23468 { echo "$as_me:$LINENO: result: no" >&5
23469echo "${ECHO_T}no" >&6; }
13091else 23470else
23471 echo "$as_me: failed program was:" >&5
23472sed 's/^/| /' conftest.$ac_ext >&5
23473
13092 23474
13093 23475
13094$as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h 23476cat >>confdefs.h <<\_ACEOF
23477#define HAVE_OLD_PAM 1
23478_ACEOF
13095 23479
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23480 { echo "$as_me:$LINENO: result: yes" >&5
13097$as_echo "yes" >&6; } 23481echo "${ECHO_T}yes" >&6; }
13098 PAM_MSG="yes (old library)" 23482 PAM_MSG="yes (old library)"
13099 23483
13100 23484
13101fi 23485fi
23486
13102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13103fi 23488fi
13104 23489
@@ -13112,7 +23497,7 @@ case "$host" in
13112esac 23497esac
13113 23498
13114# Check whether --with-privsep-user was given. 23499# Check whether --with-privsep-user was given.
13115if test "${with_privsep_user+set}" = set; then : 23500if test "${with_privsep_user+set}" = set; then
13116 withval=$with_privsep_user; 23501 withval=$with_privsep_user;
13117 if test -n "$withval" && test "x$withval" != "xno" && \ 23502 if test -n "$withval" && test "x$withval" != "xno" && \
13118 test "x${withval}" != "xyes"; then 23503 test "x${withval}" != "xyes"; then
@@ -13138,20 +23523,75 @@ fi
13138 23523
13139 23524
13140if test "x$have_linux_no_new_privs" = "x1" ; then 23525if test "x$have_linux_no_new_privs" = "x1" ; then
13141ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" " 23526{ echo "$as_me:$LINENO: checking whether SECCOMP_MODE_FILTER is declared" >&5
23527echo $ECHO_N "checking whether SECCOMP_MODE_FILTER is declared... $ECHO_C" >&6; }
23528if test "${ac_cv_have_decl_SECCOMP_MODE_FILTER+set}" = set; then
23529 echo $ECHO_N "(cached) $ECHO_C" >&6
23530else
23531 cat >conftest.$ac_ext <<_ACEOF
23532/* confdefs.h. */
23533_ACEOF
23534cat confdefs.h >>conftest.$ac_ext
23535cat >>conftest.$ac_ext <<_ACEOF
23536/* end confdefs.h. */
23537
13142 #include <sys/types.h> 23538 #include <sys/types.h>
13143 #include <linux/seccomp.h> 23539 #include <linux/seccomp.h>
13144 23540
13145" 23541
13146if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then : 23542int
23543main ()
23544{
23545#ifndef SECCOMP_MODE_FILTER
23546 (void) SECCOMP_MODE_FILTER;
23547#endif
23548
23549 ;
23550 return 0;
23551}
23552_ACEOF
23553rm -f conftest.$ac_objext
23554if { (ac_try="$ac_compile"
23555case "(($ac_try" in
23556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23557 *) ac_try_echo=$ac_try;;
23558esac
23559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23560 (eval "$ac_compile") 2>conftest.er1
23561 ac_status=$?
23562 grep -v '^ *+' conftest.er1 >conftest.err
23563 rm -f conftest.er1
23564 cat conftest.err >&5
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); } && {
23567 test -z "$ac_c_werror_flag" ||
23568 test ! -s conftest.err
23569 } && test -s conftest.$ac_objext; then
23570 ac_cv_have_decl_SECCOMP_MODE_FILTER=yes
23571else
23572 echo "$as_me: failed program was:" >&5
23573sed 's/^/| /' conftest.$ac_ext >&5
23574
23575 ac_cv_have_decl_SECCOMP_MODE_FILTER=no
23576fi
23577
23578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23579fi
23580{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SECCOMP_MODE_FILTER" >&5
23581echo "${ECHO_T}$ac_cv_have_decl_SECCOMP_MODE_FILTER" >&6; }
23582if test $ac_cv_have_decl_SECCOMP_MODE_FILTER = yes; then
13147 have_seccomp_filter=1 23583 have_seccomp_filter=1
13148fi 23584fi
13149 23585
13150fi 23586fi
13151if test "x$have_seccomp_filter" = "x1" ; then 23587if test "x$have_seccomp_filter" = "x1" ; then
13152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5 23588{ echo "$as_me:$LINENO: checking kernel for seccomp_filter support" >&5
13153$as_echo_n "checking kernel for seccomp_filter support... " >&6; } 23589echo $ECHO_N "checking kernel for seccomp_filter support... $ECHO_C" >&6; }
13154cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23590cat >conftest.$ac_ext <<_ACEOF
23591/* confdefs.h. */
23592_ACEOF
23593cat confdefs.h >>conftest.$ac_ext
23594cat >>conftest.$ac_ext <<_ACEOF
13155/* end confdefs.h. */ 23595/* end confdefs.h. */
13156 23596
13157 #include <errno.h> 23597 #include <errno.h>
@@ -13172,27 +23612,48 @@ main ()
13172 return 0; 23612 return 0;
13173} 23613}
13174_ACEOF 23614_ACEOF
13175if ac_fn_c_try_link "$LINENO"; then : 23615rm -f conftest.$ac_objext conftest$ac_exeext
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23616if { (ac_try="$ac_link"
13177$as_echo "yes" >&6; } 23617case "(($ac_try" in
23618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23619 *) ac_try_echo=$ac_try;;
23620esac
23621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23622 (eval "$ac_link") 2>conftest.er1
23623 ac_status=$?
23624 grep -v '^ *+' conftest.er1 >conftest.err
23625 rm -f conftest.er1
23626 cat conftest.err >&5
23627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628 (exit $ac_status); } && {
23629 test -z "$ac_c_werror_flag" ||
23630 test ! -s conftest.err
23631 } && test -s conftest$ac_exeext &&
23632 $as_test_x conftest$ac_exeext; then
23633 { echo "$as_me:$LINENO: result: yes" >&5
23634echo "${ECHO_T}yes" >&6; }
13178else 23635else
23636 echo "$as_me: failed program was:" >&5
23637sed 's/^/| /' conftest.$ac_ext >&5
23638
13179 23639
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23640 { echo "$as_me:$LINENO: result: no" >&5
13181$as_echo "no" >&6; } 23641echo "${ECHO_T}no" >&6; }
13182 # Disable seccomp filter as a target 23642 # Disable seccomp filter as a target
13183 have_seccomp_filter=0 23643 have_seccomp_filter=0
13184 23644
13185 23645
13186fi 23646fi
13187rm -f core conftest.err conftest.$ac_objext \ 23647
13188 conftest$ac_exeext conftest.$ac_ext 23648rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23649 conftest$ac_exeext conftest.$ac_ext
13189fi 23650fi
13190 23651
13191# Decide which sandbox style to use 23652# Decide which sandbox style to use
13192sandbox_arg="" 23653sandbox_arg=""
13193 23654
13194# Check whether --with-sandbox was given. 23655# Check whether --with-sandbox was given.
13195if test "${with_sandbox+set}" = set; then : 23656if test "${with_sandbox+set}" = set; then
13196 withval=$with_sandbox; 23657 withval=$with_sandbox;
13197 if test "x$withval" = "xyes" ; then 23658 if test "x$withval" = "xyes" ; then
13198 sandbox_arg="" 23659 sandbox_arg=""
@@ -13207,14 +23668,18 @@ fi
13207# Some platforms (seems to be the ones that have a kernel poll(2)-type 23668# Some platforms (seems to be the ones that have a kernel poll(2)-type
13208# function with which they implement select(2)) use an extra file descriptor 23669# function with which they implement select(2)) use an extra file descriptor
13209# when calling select(2), which means we can't use the rlimit sandbox. 23670# when calling select(2), which means we can't use the rlimit sandbox.
13210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select works with descriptor rlimit" >&5 23671{ echo "$as_me:$LINENO: checking if select works with descriptor rlimit" >&5
13211$as_echo_n "checking if select works with descriptor rlimit... " >&6; } 23672echo $ECHO_N "checking if select works with descriptor rlimit... $ECHO_C" >&6; }
13212if test "$cross_compiling" = yes; then : 23673if test "$cross_compiling" = yes; then
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 23674 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
13214$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} 23675echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
13215 23676
13216else 23677else
13217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23678 cat >conftest.$ac_ext <<_ACEOF
23679/* confdefs.h. */
23680_ACEOF
23681cat confdefs.h >>conftest.$ac_ext
23682cat >>conftest.$ac_ext <<_ACEOF
13218/* end confdefs.h. */ 23683/* end confdefs.h. */
13219 23684
13220#include <sys/types.h> 23685#include <sys/types.h>
@@ -13253,28 +23718,56 @@ main ()
13253 return 0; 23718 return 0;
13254} 23719}
13255_ACEOF 23720_ACEOF
13256if ac_fn_c_try_run "$LINENO"; then : 23721rm -f conftest$ac_exeext
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23722if { (ac_try="$ac_link"
13258$as_echo "yes" >&6; } 23723case "(($ac_try" in
23724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23725 *) ac_try_echo=$ac_try;;
23726esac
23727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23728 (eval "$ac_link") 2>&5
23729 ac_status=$?
23730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23732 { (case "(($ac_try" in
23733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23734 *) ac_try_echo=$ac_try;;
23735esac
23736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23737 (eval "$ac_try") 2>&5
23738 ac_status=$?
23739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740 (exit $ac_status); }; }; then
23741 { echo "$as_me:$LINENO: result: yes" >&5
23742echo "${ECHO_T}yes" >&6; }
13259 select_works_with_rlimit=yes 23743 select_works_with_rlimit=yes
13260else 23744else
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23745 echo "$as_me: program exited with status $ac_status" >&5
13262$as_echo "no" >&6; } 23746echo "$as_me: failed program was:" >&5
23747sed 's/^/| /' conftest.$ac_ext >&5
23748
23749( exit $ac_status )
23750{ echo "$as_me:$LINENO: result: no" >&5
23751echo "${ECHO_T}no" >&6; }
13263 select_works_with_rlimit=no 23752 select_works_with_rlimit=no
13264fi 23753fi
13265rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23754rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13266 conftest.$ac_objext conftest.beam conftest.$ac_ext
13267fi 23755fi
13268 23756
13269 23757
13270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5 23758
13271$as_echo_n "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... " >&6; } 23759{ echo "$as_me:$LINENO: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5
13272if test "$cross_compiling" = yes; then : 23760echo $ECHO_N "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... $ECHO_C" >&6; }
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 23761if test "$cross_compiling" = yes; then
13274$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} 23762 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
23763echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
13275 23764
13276else 23765else
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23766 cat >conftest.$ac_ext <<_ACEOF
23767/* confdefs.h. */
23768_ACEOF
23769cat confdefs.h >>conftest.$ac_ext
23770cat >>conftest.$ac_ext <<_ACEOF
13278/* end confdefs.h. */ 23771/* end confdefs.h. */
13279 23772
13280#include <sys/types.h> 23773#include <sys/types.h>
@@ -13301,28 +23794,56 @@ main ()
13301 return 0; 23794 return 0;
13302} 23795}
13303_ACEOF 23796_ACEOF
13304if ac_fn_c_try_run "$LINENO"; then : 23797rm -f conftest$ac_exeext
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23798if { (ac_try="$ac_link"
13306$as_echo "yes" >&6; } 23799case "(($ac_try" in
23800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23801 *) ac_try_echo=$ac_try;;
23802esac
23803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23804 (eval "$ac_link") 2>&5
23805 ac_status=$?
23806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23808 { (case "(($ac_try" in
23809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23810 *) ac_try_echo=$ac_try;;
23811esac
23812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23813 (eval "$ac_try") 2>&5
23814 ac_status=$?
23815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816 (exit $ac_status); }; }; then
23817 { echo "$as_me:$LINENO: result: yes" >&5
23818echo "${ECHO_T}yes" >&6; }
13307 rlimit_nofile_zero_works=yes 23819 rlimit_nofile_zero_works=yes
13308else 23820else
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23821 echo "$as_me: program exited with status $ac_status" >&5
13310$as_echo "no" >&6; } 23822echo "$as_me: failed program was:" >&5
23823sed 's/^/| /' conftest.$ac_ext >&5
23824
23825( exit $ac_status )
23826{ echo "$as_me:$LINENO: result: no" >&5
23827echo "${ECHO_T}no" >&6; }
13311 rlimit_nofile_zero_works=no 23828 rlimit_nofile_zero_works=no
13312fi 23829fi
13313rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23830rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13314 conftest.$ac_objext conftest.beam conftest.$ac_ext
13315fi 23831fi
13316 23832
13317 23833
13318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5 23834
13319$as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; } 23835{ echo "$as_me:$LINENO: checking if setrlimit RLIMIT_FSIZE works" >&5
13320if test "$cross_compiling" = yes; then : 23836echo $ECHO_N "checking if setrlimit RLIMIT_FSIZE works... $ECHO_C" >&6; }
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 23837if test "$cross_compiling" = yes; then
13322$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} 23838 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
23839echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
13323 23840
13324else 23841else
13325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23842 cat >conftest.$ac_ext <<_ACEOF
23843/* confdefs.h. */
23844_ACEOF
23845cat confdefs.h >>conftest.$ac_ext
23846cat >>conftest.$ac_ext <<_ACEOF
13326/* end confdefs.h. */ 23847/* end confdefs.h. */
13327 23848
13328#include <sys/types.h> 23849#include <sys/types.h>
@@ -13342,38 +23863,72 @@ main ()
13342 return 0; 23863 return 0;
13343} 23864}
13344_ACEOF 23865_ACEOF
13345if ac_fn_c_try_run "$LINENO"; then : 23866rm -f conftest$ac_exeext
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23867if { (ac_try="$ac_link"
13347$as_echo "yes" >&6; } 23868case "(($ac_try" in
23869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23870 *) ac_try_echo=$ac_try;;
23871esac
23872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23873 (eval "$ac_link") 2>&5
23874 ac_status=$?
23875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23877 { (case "(($ac_try" in
23878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23879 *) ac_try_echo=$ac_try;;
23880esac
23881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23882 (eval "$ac_try") 2>&5
23883 ac_status=$?
23884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885 (exit $ac_status); }; }; then
23886 { echo "$as_me:$LINENO: result: yes" >&5
23887echo "${ECHO_T}yes" >&6; }
13348else 23888else
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23889 echo "$as_me: program exited with status $ac_status" >&5
13350$as_echo "no" >&6; } 23890echo "$as_me: failed program was:" >&5
23891sed 's/^/| /' conftest.$ac_ext >&5
23892
23893( exit $ac_status )
23894{ echo "$as_me:$LINENO: result: no" >&5
23895echo "${ECHO_T}no" >&6; }
13351 23896
13352$as_echo "#define SANDBOX_SKIP_RLIMIT_FSIZE 1" >>confdefs.h 23897cat >>confdefs.h <<\_ACEOF
23898#define SANDBOX_SKIP_RLIMIT_FSIZE 1
23899_ACEOF
13353 23900
13354fi 23901fi
13355rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23902rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13356 conftest.$ac_objext conftest.beam conftest.$ac_ext
13357fi 23903fi
13358 23904
13359 23905
23906
13360if test "x$sandbox_arg" = "xsystrace" || \ 23907if test "x$sandbox_arg" = "xsystrace" || \
13361 ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then 23908 ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then
13362 test "x$have_systr_policy_kill" != "x1" && \ 23909 test "x$have_systr_policy_kill" != "x1" && \
13363 as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5 23910 { { echo "$as_me:$LINENO: error: systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" >&5
23911echo "$as_me: error: systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" >&2;}
23912 { (exit 1); exit 1; }; }
13364 SANDBOX_STYLE="systrace" 23913 SANDBOX_STYLE="systrace"
13365 23914
13366$as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h 23915cat >>confdefs.h <<\_ACEOF
23916#define SANDBOX_SYSTRACE 1
23917_ACEOF
13367 23918
13368elif test "x$sandbox_arg" = "xdarwin" || \ 23919elif test "x$sandbox_arg" = "xdarwin" || \
13369 ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \ 23920 ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \
13370 test "x$ac_cv_header_sandbox_h" = "xyes") ; then 23921 test "x$ac_cv_header_sandbox_h" = "xyes") ; then
13371 test "x$ac_cv_func_sandbox_init" != "xyes" -o \ 23922 test "x$ac_cv_func_sandbox_init" != "xyes" -o \
13372 "x$ac_cv_header_sandbox_h" != "xyes" && \ 23923 "x$ac_cv_header_sandbox_h" != "xyes" && \
13373 as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5 23924 { { echo "$as_me:$LINENO: error: Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" >&5
23925echo "$as_me: error: Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" >&2;}
23926 { (exit 1); exit 1; }; }
13374 SANDBOX_STYLE="darwin" 23927 SANDBOX_STYLE="darwin"
13375 23928
13376$as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h 23929cat >>confdefs.h <<\_ACEOF
23930#define SANDBOX_DARWIN 1
23931_ACEOF
13377 23932
13378elif test "x$sandbox_arg" = "xseccomp_filter" || \ 23933elif test "x$sandbox_arg" = "xseccomp_filter" || \
13379 ( test -z "$sandbox_arg" && \ 23934 ( test -z "$sandbox_arg" && \
@@ -13385,49 +23940,75 @@ elif test "x$sandbox_arg" = "xseccomp_filter" || \
13385 test "x$have_linux_no_new_privs" = "x1" && \ 23940 test "x$have_linux_no_new_privs" = "x1" && \
13386 test "x$ac_cv_func_prctl" = "xyes" ) ; then 23941 test "x$ac_cv_func_prctl" = "xyes" ) ; then
13387 test "x$seccomp_audit_arch" = "x" && \ 23942 test "x$seccomp_audit_arch" = "x" && \
13388 as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5 23943 { { echo "$as_me:$LINENO: error: seccomp_filter sandbox not supported on $host" >&5
23944echo "$as_me: error: seccomp_filter sandbox not supported on $host" >&2;}
23945 { (exit 1); exit 1; }; }
13389 test "x$have_linux_no_new_privs" != "x1" && \ 23946 test "x$have_linux_no_new_privs" != "x1" && \
13390 as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5 23947 { { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" >&5
23948echo "$as_me: error: seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" >&2;}
23949 { (exit 1); exit 1; }; }
13391 test "x$have_seccomp_filter" != "x1" && \ 23950 test "x$have_seccomp_filter" != "x1" && \
13392 as_fn_error $? "seccomp_filter sandbox requires seccomp headers" "$LINENO" 5 23951 { { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires seccomp headers" >&5
23952echo "$as_me: error: seccomp_filter sandbox requires seccomp headers" >&2;}
23953 { (exit 1); exit 1; }; }
13393 test "x$ac_cv_func_prctl" != "xyes" && \ 23954 test "x$ac_cv_func_prctl" != "xyes" && \
13394 as_fn_error $? "seccomp_filter sandbox requires prctl function" "$LINENO" 5 23955 { { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires prctl function" >&5
23956echo "$as_me: error: seccomp_filter sandbox requires prctl function" >&2;}
23957 { (exit 1); exit 1; }; }
13395 SANDBOX_STYLE="seccomp_filter" 23958 SANDBOX_STYLE="seccomp_filter"
13396 23959
13397$as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h 23960cat >>confdefs.h <<\_ACEOF
23961#define SANDBOX_SECCOMP_FILTER 1
23962_ACEOF
13398 23963
13399elif test "x$sandbox_arg" = "xcapsicum" || \ 23964elif test "x$sandbox_arg" = "xcapsicum" || \
13400 ( test -z "$sandbox_arg" && \ 23965 ( test -z "$sandbox_arg" && \
13401 test "x$ac_cv_header_sys_capability_h" = "xyes" && \ 23966 test "x$ac_cv_header_sys_capability_h" = "xyes" && \
13402 test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then 23967 test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then
13403 test "x$ac_cv_header_sys_capability_h" != "xyes" && \ 23968 test "x$ac_cv_header_sys_capability_h" != "xyes" && \
13404 as_fn_error $? "capsicum sandbox requires sys/capability.h header" "$LINENO" 5 23969 { { echo "$as_me:$LINENO: error: capsicum sandbox requires sys/capability.h header" >&5
23970echo "$as_me: error: capsicum sandbox requires sys/capability.h header" >&2;}
23971 { (exit 1); exit 1; }; }
13405 test "x$ac_cv_func_cap_rights_limit" != "xyes" && \ 23972 test "x$ac_cv_func_cap_rights_limit" != "xyes" && \
13406 as_fn_error $? "capsicum sandbox requires cap_rights_limit function" "$LINENO" 5 23973 { { echo "$as_me:$LINENO: error: capsicum sandbox requires cap_rights_limit function" >&5
23974echo "$as_me: error: capsicum sandbox requires cap_rights_limit function" >&2;}
23975 { (exit 1); exit 1; }; }
13407 SANDBOX_STYLE="capsicum" 23976 SANDBOX_STYLE="capsicum"
13408 23977
13409$as_echo "#define SANDBOX_CAPSICUM 1" >>confdefs.h 23978cat >>confdefs.h <<\_ACEOF
23979#define SANDBOX_CAPSICUM 1
23980_ACEOF
13410 23981
13411elif test "x$sandbox_arg" = "xrlimit" || \ 23982elif test "x$sandbox_arg" = "xrlimit" || \
13412 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \ 23983 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \
13413 test "x$select_works_with_rlimit" = "xyes" && \ 23984 test "x$select_works_with_rlimit" = "xyes" && \
13414 test "x$rlimit_nofile_zero_works" = "xyes" ) ; then 23985 test "x$rlimit_nofile_zero_works" = "xyes" ) ; then
13415 test "x$ac_cv_func_setrlimit" != "xyes" && \ 23986 test "x$ac_cv_func_setrlimit" != "xyes" && \
13416 as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5 23987 { { echo "$as_me:$LINENO: error: rlimit sandbox requires setrlimit function" >&5
23988echo "$as_me: error: rlimit sandbox requires setrlimit function" >&2;}
23989 { (exit 1); exit 1; }; }
13417 test "x$select_works_with_rlimit" != "xyes" && \ 23990 test "x$select_works_with_rlimit" != "xyes" && \
13418 as_fn_error $? "rlimit sandbox requires select to work with rlimit" "$LINENO" 5 23991 { { echo "$as_me:$LINENO: error: rlimit sandbox requires select to work with rlimit" >&5
23992echo "$as_me: error: rlimit sandbox requires select to work with rlimit" >&2;}
23993 { (exit 1); exit 1; }; }
13419 SANDBOX_STYLE="rlimit" 23994 SANDBOX_STYLE="rlimit"
13420 23995
13421$as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h 23996cat >>confdefs.h <<\_ACEOF
23997#define SANDBOX_RLIMIT 1
23998_ACEOF
13422 23999
13423elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \ 24000elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \
13424 test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then 24001 test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then
13425 SANDBOX_STYLE="none" 24002 SANDBOX_STYLE="none"
13426 24003
13427$as_echo "#define SANDBOX_NULL 1" >>confdefs.h 24004cat >>confdefs.h <<\_ACEOF
24005#define SANDBOX_NULL 1
24006_ACEOF
13428 24007
13429else 24008else
13430 as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5 24009 { { echo "$as_me:$LINENO: error: unsupported --with-sandbox" >&5
24010echo "$as_me: error: unsupported --with-sandbox" >&2;}
24011 { (exit 1); exit 1; }; }
13431fi 24012fi
13432 24013
13433# Cheap hack to ensure NEWS-OS libraries are arranged right. 24014# Cheap hack to ensure NEWS-OS libraries are arranged right.
@@ -13436,8 +24017,60 @@ if test ! -z "$SONY" ; then
13436fi 24017fi
13437 24018
13438# Check for long long datatypes 24019# Check for long long datatypes
13439ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 24020{ echo "$as_me:$LINENO: checking for long long" >&5
13440if test "x$ac_cv_type_long_long" = xyes; then : 24021echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24022if test "${ac_cv_type_long_long+set}" = set; then
24023 echo $ECHO_N "(cached) $ECHO_C" >&6
24024else
24025 cat >conftest.$ac_ext <<_ACEOF
24026/* confdefs.h. */
24027_ACEOF
24028cat confdefs.h >>conftest.$ac_ext
24029cat >>conftest.$ac_ext <<_ACEOF
24030/* end confdefs.h. */
24031$ac_includes_default
24032typedef long long ac__type_new_;
24033int
24034main ()
24035{
24036if ((ac__type_new_ *) 0)
24037 return 0;
24038if (sizeof (ac__type_new_))
24039 return 0;
24040 ;
24041 return 0;
24042}
24043_ACEOF
24044rm -f conftest.$ac_objext
24045if { (ac_try="$ac_compile"
24046case "(($ac_try" in
24047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24048 *) ac_try_echo=$ac_try;;
24049esac
24050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24051 (eval "$ac_compile") 2>conftest.er1
24052 ac_status=$?
24053 grep -v '^ *+' conftest.er1 >conftest.err
24054 rm -f conftest.er1
24055 cat conftest.err >&5
24056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057 (exit $ac_status); } && {
24058 test -z "$ac_c_werror_flag" ||
24059 test ! -s conftest.err
24060 } && test -s conftest.$ac_objext; then
24061 ac_cv_type_long_long=yes
24062else
24063 echo "$as_me: failed program was:" >&5
24064sed 's/^/| /' conftest.$ac_ext >&5
24065
24066 ac_cv_type_long_long=no
24067fi
24068
24069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24070fi
24071{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24072echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24073if test $ac_cv_type_long_long = yes; then
13441 24074
13442cat >>confdefs.h <<_ACEOF 24075cat >>confdefs.h <<_ACEOF
13443#define HAVE_LONG_LONG 1 24076#define HAVE_LONG_LONG 1
@@ -13445,8 +24078,60 @@ _ACEOF
13445 24078
13446 24079
13447fi 24080fi
13448ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default" 24081{ echo "$as_me:$LINENO: checking for unsigned long long" >&5
13449if test "x$ac_cv_type_unsigned_long_long" = xyes; then : 24082echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
24083if test "${ac_cv_type_unsigned_long_long+set}" = set; then
24084 echo $ECHO_N "(cached) $ECHO_C" >&6
24085else
24086 cat >conftest.$ac_ext <<_ACEOF
24087/* confdefs.h. */
24088_ACEOF
24089cat confdefs.h >>conftest.$ac_ext
24090cat >>conftest.$ac_ext <<_ACEOF
24091/* end confdefs.h. */
24092$ac_includes_default
24093typedef unsigned long long ac__type_new_;
24094int
24095main ()
24096{
24097if ((ac__type_new_ *) 0)
24098 return 0;
24099if (sizeof (ac__type_new_))
24100 return 0;
24101 ;
24102 return 0;
24103}
24104_ACEOF
24105rm -f conftest.$ac_objext
24106if { (ac_try="$ac_compile"
24107case "(($ac_try" in
24108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24109 *) ac_try_echo=$ac_try;;
24110esac
24111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24112 (eval "$ac_compile") 2>conftest.er1
24113 ac_status=$?
24114 grep -v '^ *+' conftest.er1 >conftest.err
24115 rm -f conftest.er1
24116 cat conftest.err >&5
24117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24118 (exit $ac_status); } && {
24119 test -z "$ac_c_werror_flag" ||
24120 test ! -s conftest.err
24121 } && test -s conftest.$ac_objext; then
24122 ac_cv_type_unsigned_long_long=yes
24123else
24124 echo "$as_me: failed program was:" >&5
24125sed 's/^/| /' conftest.$ac_ext >&5
24126
24127 ac_cv_type_unsigned_long_long=no
24128fi
24129
24130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24131fi
24132{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
24133echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
24134if test $ac_cv_type_unsigned_long_long = yes; then
13450 24135
13451cat >>confdefs.h <<_ACEOF 24136cat >>confdefs.h <<_ACEOF
13452#define HAVE_UNSIGNED_LONG_LONG 1 24137#define HAVE_UNSIGNED_LONG_LONG 1
@@ -13454,8 +24139,60 @@ _ACEOF
13454 24139
13455 24140
13456fi 24141fi
13457ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default" 24142{ echo "$as_me:$LINENO: checking for long double" >&5
13458if test "x$ac_cv_type_long_double" = xyes; then : 24143echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
24144if test "${ac_cv_type_long_double+set}" = set; then
24145 echo $ECHO_N "(cached) $ECHO_C" >&6
24146else
24147 cat >conftest.$ac_ext <<_ACEOF
24148/* confdefs.h. */
24149_ACEOF
24150cat confdefs.h >>conftest.$ac_ext
24151cat >>conftest.$ac_ext <<_ACEOF
24152/* end confdefs.h. */
24153$ac_includes_default
24154typedef long double ac__type_new_;
24155int
24156main ()
24157{
24158if ((ac__type_new_ *) 0)
24159 return 0;
24160if (sizeof (ac__type_new_))
24161 return 0;
24162 ;
24163 return 0;
24164}
24165_ACEOF
24166rm -f conftest.$ac_objext
24167if { (ac_try="$ac_compile"
24168case "(($ac_try" in
24169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24170 *) ac_try_echo=$ac_try;;
24171esac
24172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24173 (eval "$ac_compile") 2>conftest.er1
24174 ac_status=$?
24175 grep -v '^ *+' conftest.er1 >conftest.err
24176 rm -f conftest.er1
24177 cat conftest.err >&5
24178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179 (exit $ac_status); } && {
24180 test -z "$ac_c_werror_flag" ||
24181 test ! -s conftest.err
24182 } && test -s conftest.$ac_objext; then
24183 ac_cv_type_long_double=yes
24184else
24185 echo "$as_me: failed program was:" >&5
24186sed 's/^/| /' conftest.$ac_ext >&5
24187
24188 ac_cv_type_long_double=no
24189fi
24190
24191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24192fi
24193{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
24194echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
24195if test $ac_cv_type_long_double = yes; then
13459 24196
13460cat >>confdefs.h <<_ACEOF 24197cat >>confdefs.h <<_ACEOF
13461#define HAVE_LONG_DOUBLE 1 24198#define HAVE_LONG_DOUBLE 1
@@ -13466,31 +24203,403 @@ fi
13466 24203
13467 24204
13468# Check datatype sizes 24205# Check datatype sizes
24206{ echo "$as_me:$LINENO: checking for short int" >&5
24207echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
24208if test "${ac_cv_type_short_int+set}" = set; then
24209 echo $ECHO_N "(cached) $ECHO_C" >&6
24210else
24211 cat >conftest.$ac_ext <<_ACEOF
24212/* confdefs.h. */
24213_ACEOF
24214cat confdefs.h >>conftest.$ac_ext
24215cat >>conftest.$ac_ext <<_ACEOF
24216/* end confdefs.h. */
24217$ac_includes_default
24218typedef short int ac__type_new_;
24219int
24220main ()
24221{
24222if ((ac__type_new_ *) 0)
24223 return 0;
24224if (sizeof (ac__type_new_))
24225 return 0;
24226 ;
24227 return 0;
24228}
24229_ACEOF
24230rm -f conftest.$ac_objext
24231if { (ac_try="$ac_compile"
24232case "(($ac_try" in
24233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24234 *) ac_try_echo=$ac_try;;
24235esac
24236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24237 (eval "$ac_compile") 2>conftest.er1
24238 ac_status=$?
24239 grep -v '^ *+' conftest.er1 >conftest.err
24240 rm -f conftest.er1
24241 cat conftest.err >&5
24242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24243 (exit $ac_status); } && {
24244 test -z "$ac_c_werror_flag" ||
24245 test ! -s conftest.err
24246 } && test -s conftest.$ac_objext; then
24247 ac_cv_type_short_int=yes
24248else
24249 echo "$as_me: failed program was:" >&5
24250sed 's/^/| /' conftest.$ac_ext >&5
24251
24252 ac_cv_type_short_int=no
24253fi
24254
24255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24256fi
24257{ echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
24258echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
24259
13469# The cast to long int works around a bug in the HP C Compiler 24260# The cast to long int works around a bug in the HP C Compiler
13470# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24261# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13471# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24262# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13472# This bug is HP SR number 8606223364. 24263# This bug is HP SR number 8606223364.
13473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5 24264{ echo "$as_me:$LINENO: checking size of short int" >&5
13474$as_echo_n "checking size of short int... " >&6; } 24265echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
13475if ${ac_cv_sizeof_short_int+:} false; then : 24266if test "${ac_cv_sizeof_short_int+set}" = set; then
13476 $as_echo_n "(cached) " >&6 24267 echo $ECHO_N "(cached) $ECHO_C" >&6
24268else
24269 if test "$cross_compiling" = yes; then
24270 # Depending upon the size, compute the lo and hi bounds.
24271cat >conftest.$ac_ext <<_ACEOF
24272/* confdefs.h. */
24273_ACEOF
24274cat confdefs.h >>conftest.$ac_ext
24275cat >>conftest.$ac_ext <<_ACEOF
24276/* end confdefs.h. */
24277$ac_includes_default
24278 typedef short int ac__type_sizeof_;
24279int
24280main ()
24281{
24282static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24283test_array [0] = 0
24284
24285 ;
24286 return 0;
24287}
24288_ACEOF
24289rm -f conftest.$ac_objext
24290if { (ac_try="$ac_compile"
24291case "(($ac_try" in
24292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24293 *) ac_try_echo=$ac_try;;
24294esac
24295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24296 (eval "$ac_compile") 2>conftest.er1
24297 ac_status=$?
24298 grep -v '^ *+' conftest.er1 >conftest.err
24299 rm -f conftest.er1
24300 cat conftest.err >&5
24301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24302 (exit $ac_status); } && {
24303 test -z "$ac_c_werror_flag" ||
24304 test ! -s conftest.err
24305 } && test -s conftest.$ac_objext; then
24306 ac_lo=0 ac_mid=0
24307 while :; do
24308 cat >conftest.$ac_ext <<_ACEOF
24309/* confdefs.h. */
24310_ACEOF
24311cat confdefs.h >>conftest.$ac_ext
24312cat >>conftest.$ac_ext <<_ACEOF
24313/* end confdefs.h. */
24314$ac_includes_default
24315 typedef short int ac__type_sizeof_;
24316int
24317main ()
24318{
24319static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24320test_array [0] = 0
24321
24322 ;
24323 return 0;
24324}
24325_ACEOF
24326rm -f conftest.$ac_objext
24327if { (ac_try="$ac_compile"
24328case "(($ac_try" in
24329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24330 *) ac_try_echo=$ac_try;;
24331esac
24332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24333 (eval "$ac_compile") 2>conftest.er1
24334 ac_status=$?
24335 grep -v '^ *+' conftest.er1 >conftest.err
24336 rm -f conftest.er1
24337 cat conftest.err >&5
24338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24339 (exit $ac_status); } && {
24340 test -z "$ac_c_werror_flag" ||
24341 test ! -s conftest.err
24342 } && test -s conftest.$ac_objext; then
24343 ac_hi=$ac_mid; break
24344else
24345 echo "$as_me: failed program was:" >&5
24346sed 's/^/| /' conftest.$ac_ext >&5
24347
24348 ac_lo=`expr $ac_mid + 1`
24349 if test $ac_lo -le $ac_mid; then
24350 ac_lo= ac_hi=
24351 break
24352 fi
24353 ac_mid=`expr 2 '*' $ac_mid + 1`
24354fi
24355
24356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24357 done
24358else
24359 echo "$as_me: failed program was:" >&5
24360sed 's/^/| /' conftest.$ac_ext >&5
24361
24362 cat >conftest.$ac_ext <<_ACEOF
24363/* confdefs.h. */
24364_ACEOF
24365cat confdefs.h >>conftest.$ac_ext
24366cat >>conftest.$ac_ext <<_ACEOF
24367/* end confdefs.h. */
24368$ac_includes_default
24369 typedef short int ac__type_sizeof_;
24370int
24371main ()
24372{
24373static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24374test_array [0] = 0
24375
24376 ;
24377 return 0;
24378}
24379_ACEOF
24380rm -f conftest.$ac_objext
24381if { (ac_try="$ac_compile"
24382case "(($ac_try" in
24383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24384 *) ac_try_echo=$ac_try;;
24385esac
24386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24387 (eval "$ac_compile") 2>conftest.er1
24388 ac_status=$?
24389 grep -v '^ *+' conftest.er1 >conftest.err
24390 rm -f conftest.er1
24391 cat conftest.err >&5
24392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393 (exit $ac_status); } && {
24394 test -z "$ac_c_werror_flag" ||
24395 test ! -s conftest.err
24396 } && test -s conftest.$ac_objext; then
24397 ac_hi=-1 ac_mid=-1
24398 while :; do
24399 cat >conftest.$ac_ext <<_ACEOF
24400/* confdefs.h. */
24401_ACEOF
24402cat confdefs.h >>conftest.$ac_ext
24403cat >>conftest.$ac_ext <<_ACEOF
24404/* end confdefs.h. */
24405$ac_includes_default
24406 typedef short int ac__type_sizeof_;
24407int
24408main ()
24409{
24410static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24411test_array [0] = 0
24412
24413 ;
24414 return 0;
24415}
24416_ACEOF
24417rm -f conftest.$ac_objext
24418if { (ac_try="$ac_compile"
24419case "(($ac_try" in
24420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24421 *) ac_try_echo=$ac_try;;
24422esac
24423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24424 (eval "$ac_compile") 2>conftest.er1
24425 ac_status=$?
24426 grep -v '^ *+' conftest.er1 >conftest.err
24427 rm -f conftest.er1
24428 cat conftest.err >&5
24429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24430 (exit $ac_status); } && {
24431 test -z "$ac_c_werror_flag" ||
24432 test ! -s conftest.err
24433 } && test -s conftest.$ac_objext; then
24434 ac_lo=$ac_mid; break
13477else 24435else
13478 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then : 24436 echo "$as_me: failed program was:" >&5
24437sed 's/^/| /' conftest.$ac_ext >&5
13479 24438
24439 ac_hi=`expr '(' $ac_mid ')' - 1`
24440 if test $ac_mid -le $ac_hi; then
24441 ac_lo= ac_hi=
24442 break
24443 fi
24444 ac_mid=`expr 2 '*' $ac_mid`
24445fi
24446
24447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24448 done
13480else 24449else
13481 if test "$ac_cv_type_short_int" = yes; then 24450 echo "$as_me: failed program was:" >&5
13482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24451sed 's/^/| /' conftest.$ac_ext >&5
13483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24452
13484as_fn_error 77 "cannot compute sizeof (short int) 24453 ac_lo= ac_hi=
13485See \`config.log' for more details" "$LINENO" 5; } 24454fi
24455
24456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24457fi
24458
24459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24460# Binary search between lo and hi bounds.
24461while test "x$ac_lo" != "x$ac_hi"; do
24462 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24463 cat >conftest.$ac_ext <<_ACEOF
24464/* confdefs.h. */
24465_ACEOF
24466cat confdefs.h >>conftest.$ac_ext
24467cat >>conftest.$ac_ext <<_ACEOF
24468/* end confdefs.h. */
24469$ac_includes_default
24470 typedef short int ac__type_sizeof_;
24471int
24472main ()
24473{
24474static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24475test_array [0] = 0
24476
24477 ;
24478 return 0;
24479}
24480_ACEOF
24481rm -f conftest.$ac_objext
24482if { (ac_try="$ac_compile"
24483case "(($ac_try" in
24484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24485 *) ac_try_echo=$ac_try;;
24486esac
24487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24488 (eval "$ac_compile") 2>conftest.er1
24489 ac_status=$?
24490 grep -v '^ *+' conftest.er1 >conftest.err
24491 rm -f conftest.er1
24492 cat conftest.err >&5
24493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24494 (exit $ac_status); } && {
24495 test -z "$ac_c_werror_flag" ||
24496 test ! -s conftest.err
24497 } && test -s conftest.$ac_objext; then
24498 ac_hi=$ac_mid
24499else
24500 echo "$as_me: failed program was:" >&5
24501sed 's/^/| /' conftest.$ac_ext >&5
24502
24503 ac_lo=`expr '(' $ac_mid ')' + 1`
24504fi
24505
24506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24507done
24508case $ac_lo in
24509?*) ac_cv_sizeof_short_int=$ac_lo;;
24510'') if test "$ac_cv_type_short_int" = yes; then
24511 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24512See \`config.log' for more details." >&5
24513echo "$as_me: error: cannot compute sizeof (short int)
24514See \`config.log' for more details." >&2;}
24515 { (exit 77); exit 77; }; }
24516 else
24517 ac_cv_sizeof_short_int=0
24518 fi ;;
24519esac
24520else
24521 cat >conftest.$ac_ext <<_ACEOF
24522/* confdefs.h. */
24523_ACEOF
24524cat confdefs.h >>conftest.$ac_ext
24525cat >>conftest.$ac_ext <<_ACEOF
24526/* end confdefs.h. */
24527$ac_includes_default
24528 typedef short int ac__type_sizeof_;
24529static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24530static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24531#include <stdio.h>
24532#include <stdlib.h>
24533int
24534main ()
24535{
24536
24537 FILE *f = fopen ("conftest.val", "w");
24538 if (! f)
24539 return 1;
24540 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24541 {
24542 long int i = longval ();
24543 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24544 return 1;
24545 fprintf (f, "%ld\n", i);
24546 }
24547 else
24548 {
24549 unsigned long int i = ulongval ();
24550 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24551 return 1;
24552 fprintf (f, "%lu\n", i);
24553 }
24554 return ferror (f) || fclose (f) != 0;
24555
24556 ;
24557 return 0;
24558}
24559_ACEOF
24560rm -f conftest$ac_exeext
24561if { (ac_try="$ac_link"
24562case "(($ac_try" in
24563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24564 *) ac_try_echo=$ac_try;;
24565esac
24566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24567 (eval "$ac_link") 2>&5
24568 ac_status=$?
24569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24571 { (case "(($ac_try" in
24572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24573 *) ac_try_echo=$ac_try;;
24574esac
24575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24576 (eval "$ac_try") 2>&5
24577 ac_status=$?
24578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24579 (exit $ac_status); }; }; then
24580 ac_cv_sizeof_short_int=`cat conftest.val`
24581else
24582 echo "$as_me: program exited with status $ac_status" >&5
24583echo "$as_me: failed program was:" >&5
24584sed 's/^/| /' conftest.$ac_ext >&5
24585
24586( exit $ac_status )
24587if test "$ac_cv_type_short_int" = yes; then
24588 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24589See \`config.log' for more details." >&5
24590echo "$as_me: error: cannot compute sizeof (short int)
24591See \`config.log' for more details." >&2;}
24592 { (exit 77); exit 77; }; }
13486 else 24593 else
13487 ac_cv_sizeof_short_int=0 24594 ac_cv_sizeof_short_int=0
13488 fi 24595 fi
13489fi 24596fi
13490 24597rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24598fi
24599rm -f conftest.val
13491fi 24600fi
13492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5 24601{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13493$as_echo "$ac_cv_sizeof_short_int" >&6; } 24602echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
13494 24603
13495 24604
13496 24605
@@ -13499,31 +24608,403 @@ cat >>confdefs.h <<_ACEOF
13499_ACEOF 24608_ACEOF
13500 24609
13501 24610
24611{ echo "$as_me:$LINENO: checking for int" >&5
24612echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24613if test "${ac_cv_type_int+set}" = set; then
24614 echo $ECHO_N "(cached) $ECHO_C" >&6
24615else
24616 cat >conftest.$ac_ext <<_ACEOF
24617/* confdefs.h. */
24618_ACEOF
24619cat confdefs.h >>conftest.$ac_ext
24620cat >>conftest.$ac_ext <<_ACEOF
24621/* end confdefs.h. */
24622$ac_includes_default
24623typedef int ac__type_new_;
24624int
24625main ()
24626{
24627if ((ac__type_new_ *) 0)
24628 return 0;
24629if (sizeof (ac__type_new_))
24630 return 0;
24631 ;
24632 return 0;
24633}
24634_ACEOF
24635rm -f conftest.$ac_objext
24636if { (ac_try="$ac_compile"
24637case "(($ac_try" in
24638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24639 *) ac_try_echo=$ac_try;;
24640esac
24641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24642 (eval "$ac_compile") 2>conftest.er1
24643 ac_status=$?
24644 grep -v '^ *+' conftest.er1 >conftest.err
24645 rm -f conftest.er1
24646 cat conftest.err >&5
24647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648 (exit $ac_status); } && {
24649 test -z "$ac_c_werror_flag" ||
24650 test ! -s conftest.err
24651 } && test -s conftest.$ac_objext; then
24652 ac_cv_type_int=yes
24653else
24654 echo "$as_me: failed program was:" >&5
24655sed 's/^/| /' conftest.$ac_ext >&5
24656
24657 ac_cv_type_int=no
24658fi
24659
24660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24661fi
24662{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24663echo "${ECHO_T}$ac_cv_type_int" >&6; }
24664
13502# The cast to long int works around a bug in the HP C Compiler 24665# The cast to long int works around a bug in the HP C Compiler
13503# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24666# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13504# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24667# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13505# This bug is HP SR number 8606223364. 24668# This bug is HP SR number 8606223364.
13506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 24669{ echo "$as_me:$LINENO: checking size of int" >&5
13507$as_echo_n "checking size of int... " >&6; } 24670echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
13508if ${ac_cv_sizeof_int+:} false; then : 24671if test "${ac_cv_sizeof_int+set}" = set; then
13509 $as_echo_n "(cached) " >&6 24672 echo $ECHO_N "(cached) $ECHO_C" >&6
13510else 24673else
13511 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 24674 if test "$cross_compiling" = yes; then
24675 # Depending upon the size, compute the lo and hi bounds.
24676cat >conftest.$ac_ext <<_ACEOF
24677/* confdefs.h. */
24678_ACEOF
24679cat confdefs.h >>conftest.$ac_ext
24680cat >>conftest.$ac_ext <<_ACEOF
24681/* end confdefs.h. */
24682$ac_includes_default
24683 typedef int ac__type_sizeof_;
24684int
24685main ()
24686{
24687static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24688test_array [0] = 0
13512 24689
24690 ;
24691 return 0;
24692}
24693_ACEOF
24694rm -f conftest.$ac_objext
24695if { (ac_try="$ac_compile"
24696case "(($ac_try" in
24697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24698 *) ac_try_echo=$ac_try;;
24699esac
24700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24701 (eval "$ac_compile") 2>conftest.er1
24702 ac_status=$?
24703 grep -v '^ *+' conftest.er1 >conftest.err
24704 rm -f conftest.er1
24705 cat conftest.err >&5
24706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24707 (exit $ac_status); } && {
24708 test -z "$ac_c_werror_flag" ||
24709 test ! -s conftest.err
24710 } && test -s conftest.$ac_objext; then
24711 ac_lo=0 ac_mid=0
24712 while :; do
24713 cat >conftest.$ac_ext <<_ACEOF
24714/* confdefs.h. */
24715_ACEOF
24716cat confdefs.h >>conftest.$ac_ext
24717cat >>conftest.$ac_ext <<_ACEOF
24718/* end confdefs.h. */
24719$ac_includes_default
24720 typedef int ac__type_sizeof_;
24721int
24722main ()
24723{
24724static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24725test_array [0] = 0
24726
24727 ;
24728 return 0;
24729}
24730_ACEOF
24731rm -f conftest.$ac_objext
24732if { (ac_try="$ac_compile"
24733case "(($ac_try" in
24734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24735 *) ac_try_echo=$ac_try;;
24736esac
24737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24738 (eval "$ac_compile") 2>conftest.er1
24739 ac_status=$?
24740 grep -v '^ *+' conftest.er1 >conftest.err
24741 rm -f conftest.er1
24742 cat conftest.err >&5
24743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744 (exit $ac_status); } && {
24745 test -z "$ac_c_werror_flag" ||
24746 test ! -s conftest.err
24747 } && test -s conftest.$ac_objext; then
24748 ac_hi=$ac_mid; break
24749else
24750 echo "$as_me: failed program was:" >&5
24751sed 's/^/| /' conftest.$ac_ext >&5
24752
24753 ac_lo=`expr $ac_mid + 1`
24754 if test $ac_lo -le $ac_mid; then
24755 ac_lo= ac_hi=
24756 break
24757 fi
24758 ac_mid=`expr 2 '*' $ac_mid + 1`
24759fi
24760
24761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24762 done
24763else
24764 echo "$as_me: failed program was:" >&5
24765sed 's/^/| /' conftest.$ac_ext >&5
24766
24767 cat >conftest.$ac_ext <<_ACEOF
24768/* confdefs.h. */
24769_ACEOF
24770cat confdefs.h >>conftest.$ac_ext
24771cat >>conftest.$ac_ext <<_ACEOF
24772/* end confdefs.h. */
24773$ac_includes_default
24774 typedef int ac__type_sizeof_;
24775int
24776main ()
24777{
24778static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24779test_array [0] = 0
24780
24781 ;
24782 return 0;
24783}
24784_ACEOF
24785rm -f conftest.$ac_objext
24786if { (ac_try="$ac_compile"
24787case "(($ac_try" in
24788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24789 *) ac_try_echo=$ac_try;;
24790esac
24791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24792 (eval "$ac_compile") 2>conftest.er1
24793 ac_status=$?
24794 grep -v '^ *+' conftest.er1 >conftest.err
24795 rm -f conftest.er1
24796 cat conftest.err >&5
24797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798 (exit $ac_status); } && {
24799 test -z "$ac_c_werror_flag" ||
24800 test ! -s conftest.err
24801 } && test -s conftest.$ac_objext; then
24802 ac_hi=-1 ac_mid=-1
24803 while :; do
24804 cat >conftest.$ac_ext <<_ACEOF
24805/* confdefs.h. */
24806_ACEOF
24807cat confdefs.h >>conftest.$ac_ext
24808cat >>conftest.$ac_ext <<_ACEOF
24809/* end confdefs.h. */
24810$ac_includes_default
24811 typedef int ac__type_sizeof_;
24812int
24813main ()
24814{
24815static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24816test_array [0] = 0
24817
24818 ;
24819 return 0;
24820}
24821_ACEOF
24822rm -f conftest.$ac_objext
24823if { (ac_try="$ac_compile"
24824case "(($ac_try" in
24825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24826 *) ac_try_echo=$ac_try;;
24827esac
24828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24829 (eval "$ac_compile") 2>conftest.er1
24830 ac_status=$?
24831 grep -v '^ *+' conftest.er1 >conftest.err
24832 rm -f conftest.er1
24833 cat conftest.err >&5
24834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835 (exit $ac_status); } && {
24836 test -z "$ac_c_werror_flag" ||
24837 test ! -s conftest.err
24838 } && test -s conftest.$ac_objext; then
24839 ac_lo=$ac_mid; break
24840else
24841 echo "$as_me: failed program was:" >&5
24842sed 's/^/| /' conftest.$ac_ext >&5
24843
24844 ac_hi=`expr '(' $ac_mid ')' - 1`
24845 if test $ac_mid -le $ac_hi; then
24846 ac_lo= ac_hi=
24847 break
24848 fi
24849 ac_mid=`expr 2 '*' $ac_mid`
24850fi
24851
24852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24853 done
24854else
24855 echo "$as_me: failed program was:" >&5
24856sed 's/^/| /' conftest.$ac_ext >&5
24857
24858 ac_lo= ac_hi=
24859fi
24860
24861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24862fi
24863
24864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24865# Binary search between lo and hi bounds.
24866while test "x$ac_lo" != "x$ac_hi"; do
24867 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24868 cat >conftest.$ac_ext <<_ACEOF
24869/* confdefs.h. */
24870_ACEOF
24871cat confdefs.h >>conftest.$ac_ext
24872cat >>conftest.$ac_ext <<_ACEOF
24873/* end confdefs.h. */
24874$ac_includes_default
24875 typedef int ac__type_sizeof_;
24876int
24877main ()
24878{
24879static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24880test_array [0] = 0
24881
24882 ;
24883 return 0;
24884}
24885_ACEOF
24886rm -f conftest.$ac_objext
24887if { (ac_try="$ac_compile"
24888case "(($ac_try" in
24889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24890 *) ac_try_echo=$ac_try;;
24891esac
24892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24893 (eval "$ac_compile") 2>conftest.er1
24894 ac_status=$?
24895 grep -v '^ *+' conftest.er1 >conftest.err
24896 rm -f conftest.er1
24897 cat conftest.err >&5
24898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899 (exit $ac_status); } && {
24900 test -z "$ac_c_werror_flag" ||
24901 test ! -s conftest.err
24902 } && test -s conftest.$ac_objext; then
24903 ac_hi=$ac_mid
24904else
24905 echo "$as_me: failed program was:" >&5
24906sed 's/^/| /' conftest.$ac_ext >&5
24907
24908 ac_lo=`expr '(' $ac_mid ')' + 1`
24909fi
24910
24911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24912done
24913case $ac_lo in
24914?*) ac_cv_sizeof_int=$ac_lo;;
24915'') if test "$ac_cv_type_int" = yes; then
24916 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24917See \`config.log' for more details." >&5
24918echo "$as_me: error: cannot compute sizeof (int)
24919See \`config.log' for more details." >&2;}
24920 { (exit 77); exit 77; }; }
24921 else
24922 ac_cv_sizeof_int=0
24923 fi ;;
24924esac
24925else
24926 cat >conftest.$ac_ext <<_ACEOF
24927/* confdefs.h. */
24928_ACEOF
24929cat confdefs.h >>conftest.$ac_ext
24930cat >>conftest.$ac_ext <<_ACEOF
24931/* end confdefs.h. */
24932$ac_includes_default
24933 typedef int ac__type_sizeof_;
24934static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24935static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24936#include <stdio.h>
24937#include <stdlib.h>
24938int
24939main ()
24940{
24941
24942 FILE *f = fopen ("conftest.val", "w");
24943 if (! f)
24944 return 1;
24945 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24946 {
24947 long int i = longval ();
24948 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24949 return 1;
24950 fprintf (f, "%ld\n", i);
24951 }
24952 else
24953 {
24954 unsigned long int i = ulongval ();
24955 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24956 return 1;
24957 fprintf (f, "%lu\n", i);
24958 }
24959 return ferror (f) || fclose (f) != 0;
24960
24961 ;
24962 return 0;
24963}
24964_ACEOF
24965rm -f conftest$ac_exeext
24966if { (ac_try="$ac_link"
24967case "(($ac_try" in
24968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24969 *) ac_try_echo=$ac_try;;
24970esac
24971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24972 (eval "$ac_link") 2>&5
24973 ac_status=$?
24974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24976 { (case "(($ac_try" in
24977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24978 *) ac_try_echo=$ac_try;;
24979esac
24980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24981 (eval "$ac_try") 2>&5
24982 ac_status=$?
24983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984 (exit $ac_status); }; }; then
24985 ac_cv_sizeof_int=`cat conftest.val`
13513else 24986else
13514 if test "$ac_cv_type_int" = yes; then 24987 echo "$as_me: program exited with status $ac_status" >&5
13515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24988echo "$as_me: failed program was:" >&5
13516$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24989sed 's/^/| /' conftest.$ac_ext >&5
13517as_fn_error 77 "cannot compute sizeof (int) 24990
13518See \`config.log' for more details" "$LINENO" 5; } 24991( exit $ac_status )
24992if test "$ac_cv_type_int" = yes; then
24993 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24994See \`config.log' for more details." >&5
24995echo "$as_me: error: cannot compute sizeof (int)
24996See \`config.log' for more details." >&2;}
24997 { (exit 77); exit 77; }; }
13519 else 24998 else
13520 ac_cv_sizeof_int=0 24999 ac_cv_sizeof_int=0
13521 fi 25000 fi
13522fi 25001fi
13523 25002rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25003fi
25004rm -f conftest.val
13524fi 25005fi
13525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 25006{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13526$as_echo "$ac_cv_sizeof_int" >&6; } 25007echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13527 25008
13528 25009
13529 25010
@@ -13532,31 +25013,403 @@ cat >>confdefs.h <<_ACEOF
13532_ACEOF 25013_ACEOF
13533 25014
13534 25015
25016{ echo "$as_me:$LINENO: checking for long int" >&5
25017echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
25018if test "${ac_cv_type_long_int+set}" = set; then
25019 echo $ECHO_N "(cached) $ECHO_C" >&6
25020else
25021 cat >conftest.$ac_ext <<_ACEOF
25022/* confdefs.h. */
25023_ACEOF
25024cat confdefs.h >>conftest.$ac_ext
25025cat >>conftest.$ac_ext <<_ACEOF
25026/* end confdefs.h. */
25027$ac_includes_default
25028typedef long int ac__type_new_;
25029int
25030main ()
25031{
25032if ((ac__type_new_ *) 0)
25033 return 0;
25034if (sizeof (ac__type_new_))
25035 return 0;
25036 ;
25037 return 0;
25038}
25039_ACEOF
25040rm -f conftest.$ac_objext
25041if { (ac_try="$ac_compile"
25042case "(($ac_try" in
25043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25044 *) ac_try_echo=$ac_try;;
25045esac
25046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25047 (eval "$ac_compile") 2>conftest.er1
25048 ac_status=$?
25049 grep -v '^ *+' conftest.er1 >conftest.err
25050 rm -f conftest.er1
25051 cat conftest.err >&5
25052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053 (exit $ac_status); } && {
25054 test -z "$ac_c_werror_flag" ||
25055 test ! -s conftest.err
25056 } && test -s conftest.$ac_objext; then
25057 ac_cv_type_long_int=yes
25058else
25059 echo "$as_me: failed program was:" >&5
25060sed 's/^/| /' conftest.$ac_ext >&5
25061
25062 ac_cv_type_long_int=no
25063fi
25064
25065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25066fi
25067{ echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
25068echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
25069
13535# The cast to long int works around a bug in the HP C Compiler 25070# The cast to long int works around a bug in the HP C Compiler
13536# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 25071# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13537# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 25072# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13538# This bug is HP SR number 8606223364. 25073# This bug is HP SR number 8606223364.
13539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 25074{ echo "$as_me:$LINENO: checking size of long int" >&5
13540$as_echo_n "checking size of long int... " >&6; } 25075echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
13541if ${ac_cv_sizeof_long_int+:} false; then : 25076if test "${ac_cv_sizeof_long_int+set}" = set; then
13542 $as_echo_n "(cached) " >&6 25077 echo $ECHO_N "(cached) $ECHO_C" >&6
25078else
25079 if test "$cross_compiling" = yes; then
25080 # Depending upon the size, compute the lo and hi bounds.
25081cat >conftest.$ac_ext <<_ACEOF
25082/* confdefs.h. */
25083_ACEOF
25084cat confdefs.h >>conftest.$ac_ext
25085cat >>conftest.$ac_ext <<_ACEOF
25086/* end confdefs.h. */
25087$ac_includes_default
25088 typedef long int ac__type_sizeof_;
25089int
25090main ()
25091{
25092static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25093test_array [0] = 0
25094
25095 ;
25096 return 0;
25097}
25098_ACEOF
25099rm -f conftest.$ac_objext
25100if { (ac_try="$ac_compile"
25101case "(($ac_try" in
25102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25103 *) ac_try_echo=$ac_try;;
25104esac
25105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25106 (eval "$ac_compile") 2>conftest.er1
25107 ac_status=$?
25108 grep -v '^ *+' conftest.er1 >conftest.err
25109 rm -f conftest.er1
25110 cat conftest.err >&5
25111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112 (exit $ac_status); } && {
25113 test -z "$ac_c_werror_flag" ||
25114 test ! -s conftest.err
25115 } && test -s conftest.$ac_objext; then
25116 ac_lo=0 ac_mid=0
25117 while :; do
25118 cat >conftest.$ac_ext <<_ACEOF
25119/* confdefs.h. */
25120_ACEOF
25121cat confdefs.h >>conftest.$ac_ext
25122cat >>conftest.$ac_ext <<_ACEOF
25123/* end confdefs.h. */
25124$ac_includes_default
25125 typedef long int ac__type_sizeof_;
25126int
25127main ()
25128{
25129static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25130test_array [0] = 0
25131
25132 ;
25133 return 0;
25134}
25135_ACEOF
25136rm -f conftest.$ac_objext
25137if { (ac_try="$ac_compile"
25138case "(($ac_try" in
25139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25140 *) ac_try_echo=$ac_try;;
25141esac
25142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25143 (eval "$ac_compile") 2>conftest.er1
25144 ac_status=$?
25145 grep -v '^ *+' conftest.er1 >conftest.err
25146 rm -f conftest.er1
25147 cat conftest.err >&5
25148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149 (exit $ac_status); } && {
25150 test -z "$ac_c_werror_flag" ||
25151 test ! -s conftest.err
25152 } && test -s conftest.$ac_objext; then
25153 ac_hi=$ac_mid; break
25154else
25155 echo "$as_me: failed program was:" >&5
25156sed 's/^/| /' conftest.$ac_ext >&5
25157
25158 ac_lo=`expr $ac_mid + 1`
25159 if test $ac_lo -le $ac_mid; then
25160 ac_lo= ac_hi=
25161 break
25162 fi
25163 ac_mid=`expr 2 '*' $ac_mid + 1`
25164fi
25165
25166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25167 done
25168else
25169 echo "$as_me: failed program was:" >&5
25170sed 's/^/| /' conftest.$ac_ext >&5
25171
25172 cat >conftest.$ac_ext <<_ACEOF
25173/* confdefs.h. */
25174_ACEOF
25175cat confdefs.h >>conftest.$ac_ext
25176cat >>conftest.$ac_ext <<_ACEOF
25177/* end confdefs.h. */
25178$ac_includes_default
25179 typedef long int ac__type_sizeof_;
25180int
25181main ()
25182{
25183static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25184test_array [0] = 0
25185
25186 ;
25187 return 0;
25188}
25189_ACEOF
25190rm -f conftest.$ac_objext
25191if { (ac_try="$ac_compile"
25192case "(($ac_try" in
25193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25194 *) ac_try_echo=$ac_try;;
25195esac
25196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25197 (eval "$ac_compile") 2>conftest.er1
25198 ac_status=$?
25199 grep -v '^ *+' conftest.er1 >conftest.err
25200 rm -f conftest.er1
25201 cat conftest.err >&5
25202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203 (exit $ac_status); } && {
25204 test -z "$ac_c_werror_flag" ||
25205 test ! -s conftest.err
25206 } && test -s conftest.$ac_objext; then
25207 ac_hi=-1 ac_mid=-1
25208 while :; do
25209 cat >conftest.$ac_ext <<_ACEOF
25210/* confdefs.h. */
25211_ACEOF
25212cat confdefs.h >>conftest.$ac_ext
25213cat >>conftest.$ac_ext <<_ACEOF
25214/* end confdefs.h. */
25215$ac_includes_default
25216 typedef long int ac__type_sizeof_;
25217int
25218main ()
25219{
25220static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25221test_array [0] = 0
25222
25223 ;
25224 return 0;
25225}
25226_ACEOF
25227rm -f conftest.$ac_objext
25228if { (ac_try="$ac_compile"
25229case "(($ac_try" in
25230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25231 *) ac_try_echo=$ac_try;;
25232esac
25233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25234 (eval "$ac_compile") 2>conftest.er1
25235 ac_status=$?
25236 grep -v '^ *+' conftest.er1 >conftest.err
25237 rm -f conftest.er1
25238 cat conftest.err >&5
25239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); } && {
25241 test -z "$ac_c_werror_flag" ||
25242 test ! -s conftest.err
25243 } && test -s conftest.$ac_objext; then
25244 ac_lo=$ac_mid; break
25245else
25246 echo "$as_me: failed program was:" >&5
25247sed 's/^/| /' conftest.$ac_ext >&5
25248
25249 ac_hi=`expr '(' $ac_mid ')' - 1`
25250 if test $ac_mid -le $ac_hi; then
25251 ac_lo= ac_hi=
25252 break
25253 fi
25254 ac_mid=`expr 2 '*' $ac_mid`
25255fi
25256
25257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25258 done
13543else 25259else
13544 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : 25260 echo "$as_me: failed program was:" >&5
25261sed 's/^/| /' conftest.$ac_ext >&5
25262
25263 ac_lo= ac_hi=
25264fi
25265
25266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25267fi
25268
25269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25270# Binary search between lo and hi bounds.
25271while test "x$ac_lo" != "x$ac_hi"; do
25272 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25273 cat >conftest.$ac_ext <<_ACEOF
25274/* confdefs.h. */
25275_ACEOF
25276cat confdefs.h >>conftest.$ac_ext
25277cat >>conftest.$ac_ext <<_ACEOF
25278/* end confdefs.h. */
25279$ac_includes_default
25280 typedef long int ac__type_sizeof_;
25281int
25282main ()
25283{
25284static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25285test_array [0] = 0
25286
25287 ;
25288 return 0;
25289}
25290_ACEOF
25291rm -f conftest.$ac_objext
25292if { (ac_try="$ac_compile"
25293case "(($ac_try" in
25294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25295 *) ac_try_echo=$ac_try;;
25296esac
25297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25298 (eval "$ac_compile") 2>conftest.er1
25299 ac_status=$?
25300 grep -v '^ *+' conftest.er1 >conftest.err
25301 rm -f conftest.er1
25302 cat conftest.err >&5
25303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25304 (exit $ac_status); } && {
25305 test -z "$ac_c_werror_flag" ||
25306 test ! -s conftest.err
25307 } && test -s conftest.$ac_objext; then
25308 ac_hi=$ac_mid
25309else
25310 echo "$as_me: failed program was:" >&5
25311sed 's/^/| /' conftest.$ac_ext >&5
25312
25313 ac_lo=`expr '(' $ac_mid ')' + 1`
25314fi
25315
25316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25317done
25318case $ac_lo in
25319?*) ac_cv_sizeof_long_int=$ac_lo;;
25320'') if test "$ac_cv_type_long_int" = yes; then
25321 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25322See \`config.log' for more details." >&5
25323echo "$as_me: error: cannot compute sizeof (long int)
25324See \`config.log' for more details." >&2;}
25325 { (exit 77); exit 77; }; }
25326 else
25327 ac_cv_sizeof_long_int=0
25328 fi ;;
25329esac
25330else
25331 cat >conftest.$ac_ext <<_ACEOF
25332/* confdefs.h. */
25333_ACEOF
25334cat confdefs.h >>conftest.$ac_ext
25335cat >>conftest.$ac_ext <<_ACEOF
25336/* end confdefs.h. */
25337$ac_includes_default
25338 typedef long int ac__type_sizeof_;
25339static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25340static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25341#include <stdio.h>
25342#include <stdlib.h>
25343int
25344main ()
25345{
25346
25347 FILE *f = fopen ("conftest.val", "w");
25348 if (! f)
25349 return 1;
25350 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25351 {
25352 long int i = longval ();
25353 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25354 return 1;
25355 fprintf (f, "%ld\n", i);
25356 }
25357 else
25358 {
25359 unsigned long int i = ulongval ();
25360 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25361 return 1;
25362 fprintf (f, "%lu\n", i);
25363 }
25364 return ferror (f) || fclose (f) != 0;
13545 25365
25366 ;
25367 return 0;
25368}
25369_ACEOF
25370rm -f conftest$ac_exeext
25371if { (ac_try="$ac_link"
25372case "(($ac_try" in
25373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25374 *) ac_try_echo=$ac_try;;
25375esac
25376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25377 (eval "$ac_link") 2>&5
25378 ac_status=$?
25379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25381 { (case "(($ac_try" in
25382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25383 *) ac_try_echo=$ac_try;;
25384esac
25385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25386 (eval "$ac_try") 2>&5
25387 ac_status=$?
25388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25389 (exit $ac_status); }; }; then
25390 ac_cv_sizeof_long_int=`cat conftest.val`
13546else 25391else
13547 if test "$ac_cv_type_long_int" = yes; then 25392 echo "$as_me: program exited with status $ac_status" >&5
13548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 25393echo "$as_me: failed program was:" >&5
13549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 25394sed 's/^/| /' conftest.$ac_ext >&5
13550as_fn_error 77 "cannot compute sizeof (long int) 25395
13551See \`config.log' for more details" "$LINENO" 5; } 25396( exit $ac_status )
25397if test "$ac_cv_type_long_int" = yes; then
25398 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25399See \`config.log' for more details." >&5
25400echo "$as_me: error: cannot compute sizeof (long int)
25401See \`config.log' for more details." >&2;}
25402 { (exit 77); exit 77; }; }
13552 else 25403 else
13553 ac_cv_sizeof_long_int=0 25404 ac_cv_sizeof_long_int=0
13554 fi 25405 fi
13555fi 25406fi
13556 25407rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25408fi
25409rm -f conftest.val
13557fi 25410fi
13558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 25411{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13559$as_echo "$ac_cv_sizeof_long_int" >&6; } 25412echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
13560 25413
13561 25414
13562 25415
@@ -13565,31 +25418,403 @@ cat >>confdefs.h <<_ACEOF
13565_ACEOF 25418_ACEOF
13566 25419
13567 25420
25421{ echo "$as_me:$LINENO: checking for long long int" >&5
25422echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
25423if test "${ac_cv_type_long_long_int+set}" = set; then
25424 echo $ECHO_N "(cached) $ECHO_C" >&6
25425else
25426 cat >conftest.$ac_ext <<_ACEOF
25427/* confdefs.h. */
25428_ACEOF
25429cat confdefs.h >>conftest.$ac_ext
25430cat >>conftest.$ac_ext <<_ACEOF
25431/* end confdefs.h. */
25432$ac_includes_default
25433typedef long long int ac__type_new_;
25434int
25435main ()
25436{
25437if ((ac__type_new_ *) 0)
25438 return 0;
25439if (sizeof (ac__type_new_))
25440 return 0;
25441 ;
25442 return 0;
25443}
25444_ACEOF
25445rm -f conftest.$ac_objext
25446if { (ac_try="$ac_compile"
25447case "(($ac_try" in
25448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25449 *) ac_try_echo=$ac_try;;
25450esac
25451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25452 (eval "$ac_compile") 2>conftest.er1
25453 ac_status=$?
25454 grep -v '^ *+' conftest.er1 >conftest.err
25455 rm -f conftest.er1
25456 cat conftest.err >&5
25457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458 (exit $ac_status); } && {
25459 test -z "$ac_c_werror_flag" ||
25460 test ! -s conftest.err
25461 } && test -s conftest.$ac_objext; then
25462 ac_cv_type_long_long_int=yes
25463else
25464 echo "$as_me: failed program was:" >&5
25465sed 's/^/| /' conftest.$ac_ext >&5
25466
25467 ac_cv_type_long_long_int=no
25468fi
25469
25470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25471fi
25472{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25473echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
25474
13568# The cast to long int works around a bug in the HP C Compiler 25475# The cast to long int works around a bug in the HP C Compiler
13569# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 25476# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13570# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 25477# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13571# This bug is HP SR number 8606223364. 25478# This bug is HP SR number 8606223364.
13572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5 25479{ echo "$as_me:$LINENO: checking size of long long int" >&5
13573$as_echo_n "checking size of long long int... " >&6; } 25480echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
13574if ${ac_cv_sizeof_long_long_int+:} false; then : 25481if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13575 $as_echo_n "(cached) " >&6 25482 echo $ECHO_N "(cached) $ECHO_C" >&6
25483else
25484 if test "$cross_compiling" = yes; then
25485 # Depending upon the size, compute the lo and hi bounds.
25486cat >conftest.$ac_ext <<_ACEOF
25487/* confdefs.h. */
25488_ACEOF
25489cat confdefs.h >>conftest.$ac_ext
25490cat >>conftest.$ac_ext <<_ACEOF
25491/* end confdefs.h. */
25492$ac_includes_default
25493 typedef long long int ac__type_sizeof_;
25494int
25495main ()
25496{
25497static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25498test_array [0] = 0
25499
25500 ;
25501 return 0;
25502}
25503_ACEOF
25504rm -f conftest.$ac_objext
25505if { (ac_try="$ac_compile"
25506case "(($ac_try" in
25507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25508 *) ac_try_echo=$ac_try;;
25509esac
25510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25511 (eval "$ac_compile") 2>conftest.er1
25512 ac_status=$?
25513 grep -v '^ *+' conftest.er1 >conftest.err
25514 rm -f conftest.er1
25515 cat conftest.err >&5
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); } && {
25518 test -z "$ac_c_werror_flag" ||
25519 test ! -s conftest.err
25520 } && test -s conftest.$ac_objext; then
25521 ac_lo=0 ac_mid=0
25522 while :; do
25523 cat >conftest.$ac_ext <<_ACEOF
25524/* confdefs.h. */
25525_ACEOF
25526cat confdefs.h >>conftest.$ac_ext
25527cat >>conftest.$ac_ext <<_ACEOF
25528/* end confdefs.h. */
25529$ac_includes_default
25530 typedef long long int ac__type_sizeof_;
25531int
25532main ()
25533{
25534static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25535test_array [0] = 0
25536
25537 ;
25538 return 0;
25539}
25540_ACEOF
25541rm -f conftest.$ac_objext
25542if { (ac_try="$ac_compile"
25543case "(($ac_try" in
25544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25545 *) ac_try_echo=$ac_try;;
25546esac
25547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25548 (eval "$ac_compile") 2>conftest.er1
25549 ac_status=$?
25550 grep -v '^ *+' conftest.er1 >conftest.err
25551 rm -f conftest.er1
25552 cat conftest.err >&5
25553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554 (exit $ac_status); } && {
25555 test -z "$ac_c_werror_flag" ||
25556 test ! -s conftest.err
25557 } && test -s conftest.$ac_objext; then
25558 ac_hi=$ac_mid; break
13576else 25559else
13577 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then : 25560 echo "$as_me: failed program was:" >&5
25561sed 's/^/| /' conftest.$ac_ext >&5
25562
25563 ac_lo=`expr $ac_mid + 1`
25564 if test $ac_lo -le $ac_mid; then
25565 ac_lo= ac_hi=
25566 break
25567 fi
25568 ac_mid=`expr 2 '*' $ac_mid + 1`
25569fi
25570
25571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25572 done
25573else
25574 echo "$as_me: failed program was:" >&5
25575sed 's/^/| /' conftest.$ac_ext >&5
25576
25577 cat >conftest.$ac_ext <<_ACEOF
25578/* confdefs.h. */
25579_ACEOF
25580cat confdefs.h >>conftest.$ac_ext
25581cat >>conftest.$ac_ext <<_ACEOF
25582/* end confdefs.h. */
25583$ac_includes_default
25584 typedef long long int ac__type_sizeof_;
25585int
25586main ()
25587{
25588static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25589test_array [0] = 0
13578 25590
25591 ;
25592 return 0;
25593}
25594_ACEOF
25595rm -f conftest.$ac_objext
25596if { (ac_try="$ac_compile"
25597case "(($ac_try" in
25598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25599 *) ac_try_echo=$ac_try;;
25600esac
25601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25602 (eval "$ac_compile") 2>conftest.er1
25603 ac_status=$?
25604 grep -v '^ *+' conftest.er1 >conftest.err
25605 rm -f conftest.er1
25606 cat conftest.err >&5
25607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608 (exit $ac_status); } && {
25609 test -z "$ac_c_werror_flag" ||
25610 test ! -s conftest.err
25611 } && test -s conftest.$ac_objext; then
25612 ac_hi=-1 ac_mid=-1
25613 while :; do
25614 cat >conftest.$ac_ext <<_ACEOF
25615/* confdefs.h. */
25616_ACEOF
25617cat confdefs.h >>conftest.$ac_ext
25618cat >>conftest.$ac_ext <<_ACEOF
25619/* end confdefs.h. */
25620$ac_includes_default
25621 typedef long long int ac__type_sizeof_;
25622int
25623main ()
25624{
25625static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25626test_array [0] = 0
25627
25628 ;
25629 return 0;
25630}
25631_ACEOF
25632rm -f conftest.$ac_objext
25633if { (ac_try="$ac_compile"
25634case "(($ac_try" in
25635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25636 *) ac_try_echo=$ac_try;;
25637esac
25638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25639 (eval "$ac_compile") 2>conftest.er1
25640 ac_status=$?
25641 grep -v '^ *+' conftest.er1 >conftest.err
25642 rm -f conftest.er1
25643 cat conftest.err >&5
25644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645 (exit $ac_status); } && {
25646 test -z "$ac_c_werror_flag" ||
25647 test ! -s conftest.err
25648 } && test -s conftest.$ac_objext; then
25649 ac_lo=$ac_mid; break
13579else 25650else
13580 if test "$ac_cv_type_long_long_int" = yes; then 25651 echo "$as_me: failed program was:" >&5
13581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 25652sed 's/^/| /' conftest.$ac_ext >&5
13582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 25653
13583as_fn_error 77 "cannot compute sizeof (long long int) 25654 ac_hi=`expr '(' $ac_mid ')' - 1`
13584See \`config.log' for more details" "$LINENO" 5; } 25655 if test $ac_mid -le $ac_hi; then
25656 ac_lo= ac_hi=
25657 break
25658 fi
25659 ac_mid=`expr 2 '*' $ac_mid`
25660fi
25661
25662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25663 done
25664else
25665 echo "$as_me: failed program was:" >&5
25666sed 's/^/| /' conftest.$ac_ext >&5
25667
25668 ac_lo= ac_hi=
25669fi
25670
25671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25672fi
25673
25674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25675# Binary search between lo and hi bounds.
25676while test "x$ac_lo" != "x$ac_hi"; do
25677 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25678 cat >conftest.$ac_ext <<_ACEOF
25679/* confdefs.h. */
25680_ACEOF
25681cat confdefs.h >>conftest.$ac_ext
25682cat >>conftest.$ac_ext <<_ACEOF
25683/* end confdefs.h. */
25684$ac_includes_default
25685 typedef long long int ac__type_sizeof_;
25686int
25687main ()
25688{
25689static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25690test_array [0] = 0
25691
25692 ;
25693 return 0;
25694}
25695_ACEOF
25696rm -f conftest.$ac_objext
25697if { (ac_try="$ac_compile"
25698case "(($ac_try" in
25699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25700 *) ac_try_echo=$ac_try;;
25701esac
25702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25703 (eval "$ac_compile") 2>conftest.er1
25704 ac_status=$?
25705 grep -v '^ *+' conftest.er1 >conftest.err
25706 rm -f conftest.er1
25707 cat conftest.err >&5
25708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709 (exit $ac_status); } && {
25710 test -z "$ac_c_werror_flag" ||
25711 test ! -s conftest.err
25712 } && test -s conftest.$ac_objext; then
25713 ac_hi=$ac_mid
25714else
25715 echo "$as_me: failed program was:" >&5
25716sed 's/^/| /' conftest.$ac_ext >&5
25717
25718 ac_lo=`expr '(' $ac_mid ')' + 1`
25719fi
25720
25721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25722done
25723case $ac_lo in
25724?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25725'') if test "$ac_cv_type_long_long_int" = yes; then
25726 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25727See \`config.log' for more details." >&5
25728echo "$as_me: error: cannot compute sizeof (long long int)
25729See \`config.log' for more details." >&2;}
25730 { (exit 77); exit 77; }; }
25731 else
25732 ac_cv_sizeof_long_long_int=0
25733 fi ;;
25734esac
25735else
25736 cat >conftest.$ac_ext <<_ACEOF
25737/* confdefs.h. */
25738_ACEOF
25739cat confdefs.h >>conftest.$ac_ext
25740cat >>conftest.$ac_ext <<_ACEOF
25741/* end confdefs.h. */
25742$ac_includes_default
25743 typedef long long int ac__type_sizeof_;
25744static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25745static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25746#include <stdio.h>
25747#include <stdlib.h>
25748int
25749main ()
25750{
25751
25752 FILE *f = fopen ("conftest.val", "w");
25753 if (! f)
25754 return 1;
25755 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25756 {
25757 long int i = longval ();
25758 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25759 return 1;
25760 fprintf (f, "%ld\n", i);
25761 }
25762 else
25763 {
25764 unsigned long int i = ulongval ();
25765 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25766 return 1;
25767 fprintf (f, "%lu\n", i);
25768 }
25769 return ferror (f) || fclose (f) != 0;
25770
25771 ;
25772 return 0;
25773}
25774_ACEOF
25775rm -f conftest$ac_exeext
25776if { (ac_try="$ac_link"
25777case "(($ac_try" in
25778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25779 *) ac_try_echo=$ac_try;;
25780esac
25781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25782 (eval "$ac_link") 2>&5
25783 ac_status=$?
25784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25786 { (case "(($ac_try" in
25787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25788 *) ac_try_echo=$ac_try;;
25789esac
25790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25791 (eval "$ac_try") 2>&5
25792 ac_status=$?
25793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794 (exit $ac_status); }; }; then
25795 ac_cv_sizeof_long_long_int=`cat conftest.val`
25796else
25797 echo "$as_me: program exited with status $ac_status" >&5
25798echo "$as_me: failed program was:" >&5
25799sed 's/^/| /' conftest.$ac_ext >&5
25800
25801( exit $ac_status )
25802if test "$ac_cv_type_long_long_int" = yes; then
25803 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25804See \`config.log' for more details." >&5
25805echo "$as_me: error: cannot compute sizeof (long long int)
25806See \`config.log' for more details." >&2;}
25807 { (exit 77); exit 77; }; }
13585 else 25808 else
13586 ac_cv_sizeof_long_long_int=0 25809 ac_cv_sizeof_long_long_int=0
13587 fi 25810 fi
13588fi 25811fi
13589 25812rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13590fi 25813fi
13591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5 25814rm -f conftest.val
13592$as_echo "$ac_cv_sizeof_long_long_int" >&6; } 25815fi
25816{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25817echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
13593 25818
13594 25819
13595 25820
@@ -13606,16 +25831,20 @@ fi
13606 25831
13607# compute LLONG_MIN and LLONG_MAX if we don't know them. 25832# compute LLONG_MIN and LLONG_MAX if we don't know them.
13608if test -z "$have_llong_max"; then 25833if test -z "$have_llong_max"; then
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5 25834 { echo "$as_me:$LINENO: checking for max value of long long" >&5
13610$as_echo_n "checking for max value of long long... " >&6; } 25835echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; }
13611 if test "$cross_compiling" = yes; then : 25836 if test "$cross_compiling" = yes; then
13612 25837
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 25838 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
13614$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} 25839echo "$as_me: WARNING: cross compiling: not checking" >&2;}
13615 25840
13616 25841
13617else 25842else
13618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25843 cat >conftest.$ac_ext <<_ACEOF
25844/* confdefs.h. */
25845_ACEOF
25846cat confdefs.h >>conftest.$ac_ext
25847cat >>conftest.$ac_ext <<_ACEOF
13619/* end confdefs.h. */ 25848/* end confdefs.h. */
13620 25849
13621#include <stdio.h> 25850#include <stdio.h>
@@ -13696,22 +25925,41 @@ main ()
13696 return 0; 25925 return 0;
13697} 25926}
13698_ACEOF 25927_ACEOF
13699if ac_fn_c_try_run "$LINENO"; then : 25928rm -f conftest$ac_exeext
25929if { (ac_try="$ac_link"
25930case "(($ac_try" in
25931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25932 *) ac_try_echo=$ac_try;;
25933esac
25934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25935 (eval "$ac_link") 2>&5
25936 ac_status=$?
25937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25939 { (case "(($ac_try" in
25940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25941 *) ac_try_echo=$ac_try;;
25942esac
25943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25944 (eval "$ac_try") 2>&5
25945 ac_status=$?
25946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947 (exit $ac_status); }; }; then
13700 25948
13701 llong_min=`$AWK '{print $1}' conftest.llminmax` 25949 llong_min=`$AWK '{print $1}' conftest.llminmax`
13702 llong_max=`$AWK '{print $2}' conftest.llminmax` 25950 llong_max=`$AWK '{print $2}' conftest.llminmax`
13703 25951
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5 25952 { echo "$as_me:$LINENO: result: $llong_max" >&5
13705$as_echo "$llong_max" >&6; } 25953echo "${ECHO_T}$llong_max" >&6; }
13706 25954
13707cat >>confdefs.h <<_ACEOF 25955cat >>confdefs.h <<_ACEOF
13708#define LLONG_MAX ${llong_max}LL 25956#define LLONG_MAX ${llong_max}LL
13709_ACEOF 25957_ACEOF
13710 25958
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5 25959 { echo "$as_me:$LINENO: checking for min value of long long" >&5
13712$as_echo_n "checking for min value of long long... " >&6; } 25960echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; }
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5 25961 { echo "$as_me:$LINENO: result: $llong_min" >&5
13714$as_echo "$llong_min" >&6; } 25962echo "${ECHO_T}$llong_min" >&6; }
13715 25963
13716cat >>confdefs.h <<_ACEOF 25964cat >>confdefs.h <<_ACEOF
13717#define LLONG_MIN ${llong_min}LL 25965#define LLONG_MIN ${llong_min}LL
@@ -13719,26 +25967,35 @@ _ACEOF
13719 25967
13720 25968
13721else 25969else
25970 echo "$as_me: program exited with status $ac_status" >&5
25971echo "$as_me: failed program was:" >&5
25972sed 's/^/| /' conftest.$ac_ext >&5
25973
25974( exit $ac_status )
13722 25975
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25976 { echo "$as_me:$LINENO: result: not found" >&5
13724$as_echo "not found" >&6; } 25977echo "${ECHO_T}not found" >&6; }
13725 25978
13726fi 25979fi
13727rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25980rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13728 conftest.$ac_objext conftest.beam conftest.$ac_ext
13729fi 25981fi
13730 25982
25983
13731fi 25984fi
13732 25985
13733 25986
13734# More checks for data types 25987# More checks for data types
13735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5 25988{ echo "$as_me:$LINENO: checking for u_int type" >&5
13736$as_echo_n "checking for u_int type... " >&6; } 25989echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
13737if ${ac_cv_have_u_int+:} false; then : 25990if test "${ac_cv_have_u_int+set}" = set; then
13738 $as_echo_n "(cached) " >&6 25991 echo $ECHO_N "(cached) $ECHO_C" >&6
13739else 25992else
13740 25993
13741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25994 cat >conftest.$ac_ext <<_ACEOF
25995/* confdefs.h. */
25996_ACEOF
25997cat confdefs.h >>conftest.$ac_ext
25998cat >>conftest.$ac_ext <<_ACEOF
13742/* end confdefs.h. */ 25999/* end confdefs.h. */
13743 #include <sys/types.h> 26000 #include <sys/types.h>
13744int 26001int
@@ -13749,31 +26006,57 @@ main ()
13749 return 0; 26006 return 0;
13750} 26007}
13751_ACEOF 26008_ACEOF
13752if ac_fn_c_try_compile "$LINENO"; then : 26009rm -f conftest.$ac_objext
26010if { (ac_try="$ac_compile"
26011case "(($ac_try" in
26012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26013 *) ac_try_echo=$ac_try;;
26014esac
26015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26016 (eval "$ac_compile") 2>conftest.er1
26017 ac_status=$?
26018 grep -v '^ *+' conftest.er1 >conftest.err
26019 rm -f conftest.er1
26020 cat conftest.err >&5
26021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022 (exit $ac_status); } && {
26023 test -z "$ac_c_werror_flag" ||
26024 test ! -s conftest.err
26025 } && test -s conftest.$ac_objext; then
13753 ac_cv_have_u_int="yes" 26026 ac_cv_have_u_int="yes"
13754else 26027else
13755 ac_cv_have_u_int="no" 26028 echo "$as_me: failed program was:" >&5
26029sed 's/^/| /' conftest.$ac_ext >&5
26030
26031 ac_cv_have_u_int="no"
13756 26032
13757fi 26033fi
26034
13758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13759 26036
13760fi 26037fi
13761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5 26038{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
13762$as_echo "$ac_cv_have_u_int" >&6; } 26039echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
13763if test "x$ac_cv_have_u_int" = "xyes" ; then 26040if test "x$ac_cv_have_u_int" = "xyes" ; then
13764 26041
13765$as_echo "#define HAVE_U_INT 1" >>confdefs.h 26042cat >>confdefs.h <<\_ACEOF
26043#define HAVE_U_INT 1
26044_ACEOF
13766 26045
13767 have_u_int=1 26046 have_u_int=1
13768fi 26047fi
13769 26048
13770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5 26049{ echo "$as_me:$LINENO: checking for intXX_t types" >&5
13771$as_echo_n "checking for intXX_t types... " >&6; } 26050echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
13772if ${ac_cv_have_intxx_t+:} false; then : 26051if test "${ac_cv_have_intxx_t+set}" = set; then
13773 $as_echo_n "(cached) " >&6 26052 echo $ECHO_N "(cached) $ECHO_C" >&6
13774else 26053else
13775 26054
13776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26055 cat >conftest.$ac_ext <<_ACEOF
26056/* confdefs.h. */
26057_ACEOF
26058cat confdefs.h >>conftest.$ac_ext
26059cat >>conftest.$ac_ext <<_ACEOF
13777/* end confdefs.h. */ 26060/* end confdefs.h. */
13778 #include <sys/types.h> 26061 #include <sys/types.h>
13779int 26062int
@@ -13784,20 +26067,42 @@ main ()
13784 return 0; 26067 return 0;
13785} 26068}
13786_ACEOF 26069_ACEOF
13787if ac_fn_c_try_compile "$LINENO"; then : 26070rm -f conftest.$ac_objext
26071if { (ac_try="$ac_compile"
26072case "(($ac_try" in
26073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26074 *) ac_try_echo=$ac_try;;
26075esac
26076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26077 (eval "$ac_compile") 2>conftest.er1
26078 ac_status=$?
26079 grep -v '^ *+' conftest.er1 >conftest.err
26080 rm -f conftest.er1
26081 cat conftest.err >&5
26082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083 (exit $ac_status); } && {
26084 test -z "$ac_c_werror_flag" ||
26085 test ! -s conftest.err
26086 } && test -s conftest.$ac_objext; then
13788 ac_cv_have_intxx_t="yes" 26087 ac_cv_have_intxx_t="yes"
13789else 26088else
13790 ac_cv_have_intxx_t="no" 26089 echo "$as_me: failed program was:" >&5
26090sed 's/^/| /' conftest.$ac_ext >&5
26091
26092 ac_cv_have_intxx_t="no"
13791 26093
13792fi 26094fi
26095
13793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13794 26097
13795fi 26098fi
13796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5 26099{ echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
13797$as_echo "$ac_cv_have_intxx_t" >&6; } 26100echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
13798if test "x$ac_cv_have_intxx_t" = "xyes" ; then 26101if test "x$ac_cv_have_intxx_t" = "xyes" ; then
13799 26102
13800$as_echo "#define HAVE_INTXX_T 1" >>confdefs.h 26103cat >>confdefs.h <<\_ACEOF
26104#define HAVE_INTXX_T 1
26105_ACEOF
13801 26106
13802 have_intxx_t=1 26107 have_intxx_t=1
13803fi 26108fi
@@ -13805,9 +26110,13 @@ fi
13805if (test -z "$have_intxx_t" && \ 26110if (test -z "$have_intxx_t" && \
13806 test "x$ac_cv_header_stdint_h" = "xyes") 26111 test "x$ac_cv_header_stdint_h" = "xyes")
13807then 26112then
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5 26113 { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
13809$as_echo_n "checking for intXX_t types in stdint.h... " >&6; } 26114echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; }
13810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26115 cat >conftest.$ac_ext <<_ACEOF
26116/* confdefs.h. */
26117_ACEOF
26118cat confdefs.h >>conftest.$ac_ext
26119cat >>conftest.$ac_ext <<_ACEOF
13811/* end confdefs.h. */ 26120/* end confdefs.h. */
13812 #include <stdint.h> 26121 #include <stdint.h>
13813int 26122int
@@ -13818,28 +26127,54 @@ main ()
13818 return 0; 26127 return 0;
13819} 26128}
13820_ACEOF 26129_ACEOF
13821if ac_fn_c_try_compile "$LINENO"; then : 26130rm -f conftest.$ac_objext
26131if { (ac_try="$ac_compile"
26132case "(($ac_try" in
26133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26134 *) ac_try_echo=$ac_try;;
26135esac
26136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26137 (eval "$ac_compile") 2>conftest.er1
26138 ac_status=$?
26139 grep -v '^ *+' conftest.er1 >conftest.err
26140 rm -f conftest.er1
26141 cat conftest.err >&5
26142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26143 (exit $ac_status); } && {
26144 test -z "$ac_c_werror_flag" ||
26145 test ! -s conftest.err
26146 } && test -s conftest.$ac_objext; then
13822 26147
13823 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h 26148 cat >>confdefs.h <<\_ACEOF
26149#define HAVE_INTXX_T 1
26150_ACEOF
13824 26151
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26152 { echo "$as_me:$LINENO: result: yes" >&5
13826$as_echo "yes" >&6; } 26153echo "${ECHO_T}yes" >&6; }
13827 26154
13828else 26155else
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26156 echo "$as_me: failed program was:" >&5
13830$as_echo "no" >&6; } 26157sed 's/^/| /' conftest.$ac_ext >&5
26158
26159 { echo "$as_me:$LINENO: result: no" >&5
26160echo "${ECHO_T}no" >&6; }
13831 26161
13832fi 26162fi
26163
13833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13834fi 26165fi
13835 26166
13836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5 26167{ echo "$as_me:$LINENO: checking for int64_t type" >&5
13837$as_echo_n "checking for int64_t type... " >&6; } 26168echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
13838if ${ac_cv_have_int64_t+:} false; then : 26169if test "${ac_cv_have_int64_t+set}" = set; then
13839 $as_echo_n "(cached) " >&6 26170 echo $ECHO_N "(cached) $ECHO_C" >&6
13840else 26171else
13841 26172
13842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26173 cat >conftest.$ac_ext <<_ACEOF
26174/* confdefs.h. */
26175_ACEOF
26176cat confdefs.h >>conftest.$ac_ext
26177cat >>conftest.$ac_ext <<_ACEOF
13843/* end confdefs.h. */ 26178/* end confdefs.h. */
13844 26179
13845#include <sys/types.h> 26180#include <sys/types.h>
@@ -13861,30 +26196,56 @@ int64_t a; a = 1;
13861 return 0; 26196 return 0;
13862} 26197}
13863_ACEOF 26198_ACEOF
13864if ac_fn_c_try_compile "$LINENO"; then : 26199rm -f conftest.$ac_objext
26200if { (ac_try="$ac_compile"
26201case "(($ac_try" in
26202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26203 *) ac_try_echo=$ac_try;;
26204esac
26205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26206 (eval "$ac_compile") 2>conftest.er1
26207 ac_status=$?
26208 grep -v '^ *+' conftest.er1 >conftest.err
26209 rm -f conftest.er1
26210 cat conftest.err >&5
26211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212 (exit $ac_status); } && {
26213 test -z "$ac_c_werror_flag" ||
26214 test ! -s conftest.err
26215 } && test -s conftest.$ac_objext; then
13865 ac_cv_have_int64_t="yes" 26216 ac_cv_have_int64_t="yes"
13866else 26217else
13867 ac_cv_have_int64_t="no" 26218 echo "$as_me: failed program was:" >&5
26219sed 's/^/| /' conftest.$ac_ext >&5
26220
26221 ac_cv_have_int64_t="no"
13868 26222
13869fi 26223fi
26224
13870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13871 26226
13872fi 26227fi
13873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5 26228{ echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
13874$as_echo "$ac_cv_have_int64_t" >&6; } 26229echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
13875if test "x$ac_cv_have_int64_t" = "xyes" ; then 26230if test "x$ac_cv_have_int64_t" = "xyes" ; then
13876 26231
13877$as_echo "#define HAVE_INT64_T 1" >>confdefs.h 26232cat >>confdefs.h <<\_ACEOF
26233#define HAVE_INT64_T 1
26234_ACEOF
13878 26235
13879fi 26236fi
13880 26237
13881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5 26238{ echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
13882$as_echo_n "checking for u_intXX_t types... " >&6; } 26239echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
13883if ${ac_cv_have_u_intxx_t+:} false; then : 26240if test "${ac_cv_have_u_intxx_t+set}" = set; then
13884 $as_echo_n "(cached) " >&6 26241 echo $ECHO_N "(cached) $ECHO_C" >&6
13885else 26242else
13886 26243
13887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26244 cat >conftest.$ac_ext <<_ACEOF
26245/* confdefs.h. */
26246_ACEOF
26247cat confdefs.h >>conftest.$ac_ext
26248cat >>conftest.$ac_ext <<_ACEOF
13888/* end confdefs.h. */ 26249/* end confdefs.h. */
13889 #include <sys/types.h> 26250 #include <sys/types.h>
13890int 26251int
@@ -13895,28 +26256,54 @@ main ()
13895 return 0; 26256 return 0;
13896} 26257}
13897_ACEOF 26258_ACEOF
13898if ac_fn_c_try_compile "$LINENO"; then : 26259rm -f conftest.$ac_objext
26260if { (ac_try="$ac_compile"
26261case "(($ac_try" in
26262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26263 *) ac_try_echo=$ac_try;;
26264esac
26265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26266 (eval "$ac_compile") 2>conftest.er1
26267 ac_status=$?
26268 grep -v '^ *+' conftest.er1 >conftest.err
26269 rm -f conftest.er1
26270 cat conftest.err >&5
26271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272 (exit $ac_status); } && {
26273 test -z "$ac_c_werror_flag" ||
26274 test ! -s conftest.err
26275 } && test -s conftest.$ac_objext; then
13899 ac_cv_have_u_intxx_t="yes" 26276 ac_cv_have_u_intxx_t="yes"
13900else 26277else
13901 ac_cv_have_u_intxx_t="no" 26278 echo "$as_me: failed program was:" >&5
26279sed 's/^/| /' conftest.$ac_ext >&5
26280
26281 ac_cv_have_u_intxx_t="no"
13902 26282
13903fi 26283fi
26284
13904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13905 26286
13906fi 26287fi
13907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5 26288{ echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
13908$as_echo "$ac_cv_have_u_intxx_t" >&6; } 26289echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
13909if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then 26290if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
13910 26291
13911$as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h 26292cat >>confdefs.h <<\_ACEOF
26293#define HAVE_U_INTXX_T 1
26294_ACEOF
13912 26295
13913 have_u_intxx_t=1 26296 have_u_intxx_t=1
13914fi 26297fi
13915 26298
13916if test -z "$have_u_intxx_t" ; then 26299if test -z "$have_u_intxx_t" ; then
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5 26300 { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
13918$as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; } 26301echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; }
13919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26302 cat >conftest.$ac_ext <<_ACEOF
26303/* confdefs.h. */
26304_ACEOF
26305cat confdefs.h >>conftest.$ac_ext
26306cat >>conftest.$ac_ext <<_ACEOF
13920/* end confdefs.h. */ 26307/* end confdefs.h. */
13921 #include <sys/socket.h> 26308 #include <sys/socket.h>
13922int 26309int
@@ -13927,28 +26314,54 @@ main ()
13927 return 0; 26314 return 0;
13928} 26315}
13929_ACEOF 26316_ACEOF
13930if ac_fn_c_try_compile "$LINENO"; then : 26317rm -f conftest.$ac_objext
26318if { (ac_try="$ac_compile"
26319case "(($ac_try" in
26320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26321 *) ac_try_echo=$ac_try;;
26322esac
26323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26324 (eval "$ac_compile") 2>conftest.er1
26325 ac_status=$?
26326 grep -v '^ *+' conftest.er1 >conftest.err
26327 rm -f conftest.er1
26328 cat conftest.err >&5
26329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330 (exit $ac_status); } && {
26331 test -z "$ac_c_werror_flag" ||
26332 test ! -s conftest.err
26333 } && test -s conftest.$ac_objext; then
13931 26334
13932 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h 26335 cat >>confdefs.h <<\_ACEOF
26336#define HAVE_U_INTXX_T 1
26337_ACEOF
13933 26338
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26339 { echo "$as_me:$LINENO: result: yes" >&5
13935$as_echo "yes" >&6; } 26340echo "${ECHO_T}yes" >&6; }
13936 26341
13937else 26342else
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26343 echo "$as_me: failed program was:" >&5
13939$as_echo "no" >&6; } 26344sed 's/^/| /' conftest.$ac_ext >&5
26345
26346 { echo "$as_me:$LINENO: result: no" >&5
26347echo "${ECHO_T}no" >&6; }
13940 26348
13941fi 26349fi
26350
13942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13943fi 26352fi
13944 26353
13945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5 26354{ echo "$as_me:$LINENO: checking for u_int64_t types" >&5
13946$as_echo_n "checking for u_int64_t types... " >&6; } 26355echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
13947if ${ac_cv_have_u_int64_t+:} false; then : 26356if test "${ac_cv_have_u_int64_t+set}" = set; then
13948 $as_echo_n "(cached) " >&6 26357 echo $ECHO_N "(cached) $ECHO_C" >&6
13949else 26358else
13950 26359
13951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26360 cat >conftest.$ac_ext <<_ACEOF
26361/* confdefs.h. */
26362_ACEOF
26363cat confdefs.h >>conftest.$ac_ext
26364cat >>conftest.$ac_ext <<_ACEOF
13952/* end confdefs.h. */ 26365/* end confdefs.h. */
13953 #include <sys/types.h> 26366 #include <sys/types.h>
13954int 26367int
@@ -13959,20 +26372,42 @@ main ()
13959 return 0; 26372 return 0;
13960} 26373}
13961_ACEOF 26374_ACEOF
13962if ac_fn_c_try_compile "$LINENO"; then : 26375rm -f conftest.$ac_objext
26376if { (ac_try="$ac_compile"
26377case "(($ac_try" in
26378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26379 *) ac_try_echo=$ac_try;;
26380esac
26381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26382 (eval "$ac_compile") 2>conftest.er1
26383 ac_status=$?
26384 grep -v '^ *+' conftest.er1 >conftest.err
26385 rm -f conftest.er1
26386 cat conftest.err >&5
26387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26388 (exit $ac_status); } && {
26389 test -z "$ac_c_werror_flag" ||
26390 test ! -s conftest.err
26391 } && test -s conftest.$ac_objext; then
13963 ac_cv_have_u_int64_t="yes" 26392 ac_cv_have_u_int64_t="yes"
13964else 26393else
13965 ac_cv_have_u_int64_t="no" 26394 echo "$as_me: failed program was:" >&5
26395sed 's/^/| /' conftest.$ac_ext >&5
26396
26397 ac_cv_have_u_int64_t="no"
13966 26398
13967fi 26399fi
26400
13968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13969 26402
13970fi 26403fi
13971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5 26404{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
13972$as_echo "$ac_cv_have_u_int64_t" >&6; } 26405echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
13973if test "x$ac_cv_have_u_int64_t" = "xyes" ; then 26406if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
13974 26407
13975$as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h 26408cat >>confdefs.h <<\_ACEOF
26409#define HAVE_U_INT64_T 1
26410_ACEOF
13976 26411
13977 have_u_int64_t=1 26412 have_u_int64_t=1
13978fi 26413fi
@@ -13980,9 +26415,13 @@ fi
13980if (test -z "$have_u_int64_t" && \ 26415if (test -z "$have_u_int64_t" && \
13981 test "x$ac_cv_header_sys_bitypes_h" = "xyes") 26416 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
13982then 26417then
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5 26418 { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
13984$as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; } 26419echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; }
13985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26420 cat >conftest.$ac_ext <<_ACEOF
26421/* confdefs.h. */
26422_ACEOF
26423cat confdefs.h >>conftest.$ac_ext
26424cat >>conftest.$ac_ext <<_ACEOF
13986/* end confdefs.h. */ 26425/* end confdefs.h. */
13987 #include <sys/bitypes.h> 26426 #include <sys/bitypes.h>
13988int 26427int
@@ -13993,29 +26432,55 @@ main ()
13993 return 0; 26432 return 0;
13994} 26433}
13995_ACEOF 26434_ACEOF
13996if ac_fn_c_try_compile "$LINENO"; then : 26435rm -f conftest.$ac_objext
26436if { (ac_try="$ac_compile"
26437case "(($ac_try" in
26438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26439 *) ac_try_echo=$ac_try;;
26440esac
26441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26442 (eval "$ac_compile") 2>conftest.er1
26443 ac_status=$?
26444 grep -v '^ *+' conftest.er1 >conftest.err
26445 rm -f conftest.er1
26446 cat conftest.err >&5
26447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26448 (exit $ac_status); } && {
26449 test -z "$ac_c_werror_flag" ||
26450 test ! -s conftest.err
26451 } && test -s conftest.$ac_objext; then
13997 26452
13998 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h 26453 cat >>confdefs.h <<\_ACEOF
26454#define HAVE_U_INT64_T 1
26455_ACEOF
13999 26456
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26457 { echo "$as_me:$LINENO: result: yes" >&5
14001$as_echo "yes" >&6; } 26458echo "${ECHO_T}yes" >&6; }
14002 26459
14003else 26460else
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26461 echo "$as_me: failed program was:" >&5
14005$as_echo "no" >&6; } 26462sed 's/^/| /' conftest.$ac_ext >&5
26463
26464 { echo "$as_me:$LINENO: result: no" >&5
26465echo "${ECHO_T}no" >&6; }
14006 26466
14007fi 26467fi
26468
14008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14009fi 26470fi
14010 26471
14011if test -z "$have_u_intxx_t" ; then 26472if test -z "$have_u_intxx_t" ; then
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5 26473 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14013$as_echo_n "checking for uintXX_t types... " >&6; } 26474echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
14014if ${ac_cv_have_uintxx_t+:} false; then : 26475if test "${ac_cv_have_uintxx_t+set}" = set; then
14015 $as_echo_n "(cached) " >&6 26476 echo $ECHO_N "(cached) $ECHO_C" >&6
14016else 26477else
14017 26478
14018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26479 cat >conftest.$ac_ext <<_ACEOF
26480/* confdefs.h. */
26481_ACEOF
26482cat confdefs.h >>conftest.$ac_ext
26483cat >>conftest.$ac_ext <<_ACEOF
14019/* end confdefs.h. */ 26484/* end confdefs.h. */
14020 26485
14021#include <sys/types.h> 26486#include <sys/types.h>
@@ -14033,20 +26498,42 @@ main ()
14033 return 0; 26498 return 0;
14034} 26499}
14035_ACEOF 26500_ACEOF
14036if ac_fn_c_try_compile "$LINENO"; then : 26501rm -f conftest.$ac_objext
26502if { (ac_try="$ac_compile"
26503case "(($ac_try" in
26504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26505 *) ac_try_echo=$ac_try;;
26506esac
26507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26508 (eval "$ac_compile") 2>conftest.er1
26509 ac_status=$?
26510 grep -v '^ *+' conftest.er1 >conftest.err
26511 rm -f conftest.er1
26512 cat conftest.err >&5
26513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26514 (exit $ac_status); } && {
26515 test -z "$ac_c_werror_flag" ||
26516 test ! -s conftest.err
26517 } && test -s conftest.$ac_objext; then
14037 ac_cv_have_uintxx_t="yes" 26518 ac_cv_have_uintxx_t="yes"
14038else 26519else
14039 ac_cv_have_uintxx_t="no" 26520 echo "$as_me: failed program was:" >&5
26521sed 's/^/| /' conftest.$ac_ext >&5
26522
26523 ac_cv_have_uintxx_t="no"
14040 26524
14041fi 26525fi
26526
14042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14043 26528
14044fi 26529fi
14045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5 26530{ echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14046$as_echo "$ac_cv_have_uintxx_t" >&6; } 26531echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
14047 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then 26532 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14048 26533
14049$as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h 26534cat >>confdefs.h <<\_ACEOF
26535#define HAVE_UINTXX_T 1
26536_ACEOF
14050 26537
14051 fi 26538 fi
14052fi 26539fi
@@ -14054,9 +26541,13 @@ fi
14054if (test -z "$have_uintxx_t" && \ 26541if (test -z "$have_uintxx_t" && \
14055 test "x$ac_cv_header_stdint_h" = "xyes") 26542 test "x$ac_cv_header_stdint_h" = "xyes")
14056then 26543then
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5 26544 { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
14058$as_echo_n "checking for uintXX_t types in stdint.h... " >&6; } 26545echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; }
14059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26546 cat >conftest.$ac_ext <<_ACEOF
26547/* confdefs.h. */
26548_ACEOF
26549cat confdefs.h >>conftest.$ac_ext
26550cat >>conftest.$ac_ext <<_ACEOF
14060/* end confdefs.h. */ 26551/* end confdefs.h. */
14061 #include <stdint.h> 26552 #include <stdint.h>
14062int 26553int
@@ -14067,27 +26558,53 @@ main ()
14067 return 0; 26558 return 0;
14068} 26559}
14069_ACEOF 26560_ACEOF
14070if ac_fn_c_try_compile "$LINENO"; then : 26561rm -f conftest.$ac_objext
26562if { (ac_try="$ac_compile"
26563case "(($ac_try" in
26564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26565 *) ac_try_echo=$ac_try;;
26566esac
26567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26568 (eval "$ac_compile") 2>conftest.er1
26569 ac_status=$?
26570 grep -v '^ *+' conftest.er1 >conftest.err
26571 rm -f conftest.er1
26572 cat conftest.err >&5
26573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26574 (exit $ac_status); } && {
26575 test -z "$ac_c_werror_flag" ||
26576 test ! -s conftest.err
26577 } && test -s conftest.$ac_objext; then
14071 26578
14072 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h 26579 cat >>confdefs.h <<\_ACEOF
26580#define HAVE_UINTXX_T 1
26581_ACEOF
14073 26582
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26583 { echo "$as_me:$LINENO: result: yes" >&5
14075$as_echo "yes" >&6; } 26584echo "${ECHO_T}yes" >&6; }
14076 26585
14077else 26586else
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26587 echo "$as_me: failed program was:" >&5
14079$as_echo "no" >&6; } 26588sed 's/^/| /' conftest.$ac_ext >&5
26589
26590 { echo "$as_me:$LINENO: result: no" >&5
26591echo "${ECHO_T}no" >&6; }
14080 26592
14081fi 26593fi
26594
14082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14083fi 26596fi
14084 26597
14085if (test -z "$have_uintxx_t" && \ 26598if (test -z "$have_uintxx_t" && \
14086 test "x$ac_cv_header_inttypes_h" = "xyes") 26599 test "x$ac_cv_header_inttypes_h" = "xyes")
14087then 26600then
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in inttypes.h" >&5 26601 { echo "$as_me:$LINENO: checking for uintXX_t types in inttypes.h" >&5
14089$as_echo_n "checking for uintXX_t types in inttypes.h... " >&6; } 26602echo $ECHO_N "checking for uintXX_t types in inttypes.h... $ECHO_C" >&6; }
14090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26603 cat >conftest.$ac_ext <<_ACEOF
26604/* confdefs.h. */
26605_ACEOF
26606cat confdefs.h >>conftest.$ac_ext
26607cat >>conftest.$ac_ext <<_ACEOF
14091/* end confdefs.h. */ 26608/* end confdefs.h. */
14092 #include <inttypes.h> 26609 #include <inttypes.h>
14093int 26610int
@@ -14098,27 +26615,53 @@ main ()
14098 return 0; 26615 return 0;
14099} 26616}
14100_ACEOF 26617_ACEOF
14101if ac_fn_c_try_compile "$LINENO"; then : 26618rm -f conftest.$ac_objext
26619if { (ac_try="$ac_compile"
26620case "(($ac_try" in
26621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26622 *) ac_try_echo=$ac_try;;
26623esac
26624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26625 (eval "$ac_compile") 2>conftest.er1
26626 ac_status=$?
26627 grep -v '^ *+' conftest.er1 >conftest.err
26628 rm -f conftest.er1
26629 cat conftest.err >&5
26630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26631 (exit $ac_status); } && {
26632 test -z "$ac_c_werror_flag" ||
26633 test ! -s conftest.err
26634 } && test -s conftest.$ac_objext; then
14102 26635
14103 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h 26636 cat >>confdefs.h <<\_ACEOF
26637#define HAVE_UINTXX_T 1
26638_ACEOF
14104 26639
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26640 { echo "$as_me:$LINENO: result: yes" >&5
14106$as_echo "yes" >&6; } 26641echo "${ECHO_T}yes" >&6; }
14107 26642
14108else 26643else
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26644 echo "$as_me: failed program was:" >&5
14110$as_echo "no" >&6; } 26645sed 's/^/| /' conftest.$ac_ext >&5
26646
26647 { echo "$as_me:$LINENO: result: no" >&5
26648echo "${ECHO_T}no" >&6; }
14111 26649
14112fi 26650fi
26651
14113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14114fi 26653fi
14115 26654
14116if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ 26655if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14117 test "x$ac_cv_header_sys_bitypes_h" = "xyes") 26656 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14118then 26657then
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 26658 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14120$as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; } 26659echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
14121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26660 cat >conftest.$ac_ext <<_ACEOF
26661/* confdefs.h. */
26662_ACEOF
26663cat confdefs.h >>conftest.$ac_ext
26664cat >>conftest.$ac_ext <<_ACEOF
14122/* end confdefs.h. */ 26665/* end confdefs.h. */
14123 26666
14124#include <sys/bitypes.h> 26667#include <sys/bitypes.h>
@@ -14135,31 +26678,59 @@ main ()
14135 return 0; 26678 return 0;
14136} 26679}
14137_ACEOF 26680_ACEOF
14138if ac_fn_c_try_compile "$LINENO"; then : 26681rm -f conftest.$ac_objext
26682if { (ac_try="$ac_compile"
26683case "(($ac_try" in
26684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26685 *) ac_try_echo=$ac_try;;
26686esac
26687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26688 (eval "$ac_compile") 2>conftest.er1
26689 ac_status=$?
26690 grep -v '^ *+' conftest.er1 >conftest.err
26691 rm -f conftest.er1
26692 cat conftest.err >&5
26693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694 (exit $ac_status); } && {
26695 test -z "$ac_c_werror_flag" ||
26696 test ! -s conftest.err
26697 } && test -s conftest.$ac_objext; then
14139 26698
14140 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h 26699 cat >>confdefs.h <<\_ACEOF
26700#define HAVE_U_INTXX_T 1
26701_ACEOF
14141 26702
14142 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h 26703 cat >>confdefs.h <<\_ACEOF
26704#define HAVE_INTXX_T 1
26705_ACEOF
14143 26706
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26707 { echo "$as_me:$LINENO: result: yes" >&5
14145$as_echo "yes" >&6; } 26708echo "${ECHO_T}yes" >&6; }
14146 26709
14147else 26710else
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26711 echo "$as_me: failed program was:" >&5
14149$as_echo "no" >&6; } 26712sed 's/^/| /' conftest.$ac_ext >&5
26713
26714 { echo "$as_me:$LINENO: result: no" >&5
26715echo "${ECHO_T}no" >&6; }
14150 26716
14151fi 26717fi
26718
14152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14153fi 26720fi
14154 26721
14155 26722
14156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5 26723{ echo "$as_me:$LINENO: checking for u_char" >&5
14157$as_echo_n "checking for u_char... " >&6; } 26724echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
14158if ${ac_cv_have_u_char+:} false; then : 26725if test "${ac_cv_have_u_char+set}" = set; then
14159 $as_echo_n "(cached) " >&6 26726 echo $ECHO_N "(cached) $ECHO_C" >&6
14160else 26727else
14161 26728
14162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26729 cat >conftest.$ac_ext <<_ACEOF
26730/* confdefs.h. */
26731_ACEOF
26732cat confdefs.h >>conftest.$ac_ext
26733cat >>conftest.$ac_ext <<_ACEOF
14163/* end confdefs.h. */ 26734/* end confdefs.h. */
14164 #include <sys/types.h> 26735 #include <sys/types.h>
14165int 26736int
@@ -14170,29 +26741,103 @@ main ()
14170 return 0; 26741 return 0;
14171} 26742}
14172_ACEOF 26743_ACEOF
14173if ac_fn_c_try_compile "$LINENO"; then : 26744rm -f conftest.$ac_objext
26745if { (ac_try="$ac_compile"
26746case "(($ac_try" in
26747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26748 *) ac_try_echo=$ac_try;;
26749esac
26750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26751 (eval "$ac_compile") 2>conftest.er1
26752 ac_status=$?
26753 grep -v '^ *+' conftest.er1 >conftest.err
26754 rm -f conftest.er1
26755 cat conftest.err >&5
26756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26757 (exit $ac_status); } && {
26758 test -z "$ac_c_werror_flag" ||
26759 test ! -s conftest.err
26760 } && test -s conftest.$ac_objext; then
14174 ac_cv_have_u_char="yes" 26761 ac_cv_have_u_char="yes"
14175else 26762else
14176 ac_cv_have_u_char="no" 26763 echo "$as_me: failed program was:" >&5
26764sed 's/^/| /' conftest.$ac_ext >&5
26765
26766 ac_cv_have_u_char="no"
14177 26767
14178fi 26768fi
26769
14179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14180 26771
14181fi 26772fi
14182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5 26773{ echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
14183$as_echo "$ac_cv_have_u_char" >&6; } 26774echo "${ECHO_T}$ac_cv_have_u_char" >&6; }
14184if test "x$ac_cv_have_u_char" = "xyes" ; then 26775if test "x$ac_cv_have_u_char" = "xyes" ; then
14185 26776
14186$as_echo "#define HAVE_U_CHAR 1" >>confdefs.h 26777cat >>confdefs.h <<\_ACEOF
26778#define HAVE_U_CHAR 1
26779_ACEOF
14187 26780
14188fi 26781fi
14189 26782
14190ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" " 26783{ echo "$as_me:$LINENO: checking for intmax_t" >&5
26784echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
26785if test "${ac_cv_type_intmax_t+set}" = set; then
26786 echo $ECHO_N "(cached) $ECHO_C" >&6
26787else
26788 cat >conftest.$ac_ext <<_ACEOF
26789/* confdefs.h. */
26790_ACEOF
26791cat confdefs.h >>conftest.$ac_ext
26792cat >>conftest.$ac_ext <<_ACEOF
26793/* end confdefs.h. */
26794
14191#include <sys/types.h> 26795#include <sys/types.h>
14192#include <stdint.h> 26796#include <stdint.h>
14193 26797
14194" 26798
14195if test "x$ac_cv_type_intmax_t" = xyes; then : 26799typedef intmax_t ac__type_new_;
26800int
26801main ()
26802{
26803if ((ac__type_new_ *) 0)
26804 return 0;
26805if (sizeof (ac__type_new_))
26806 return 0;
26807 ;
26808 return 0;
26809}
26810_ACEOF
26811rm -f conftest.$ac_objext
26812if { (ac_try="$ac_compile"
26813case "(($ac_try" in
26814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26815 *) ac_try_echo=$ac_try;;
26816esac
26817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26818 (eval "$ac_compile") 2>conftest.er1
26819 ac_status=$?
26820 grep -v '^ *+' conftest.er1 >conftest.err
26821 rm -f conftest.er1
26822 cat conftest.err >&5
26823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824 (exit $ac_status); } && {
26825 test -z "$ac_c_werror_flag" ||
26826 test ! -s conftest.err
26827 } && test -s conftest.$ac_objext; then
26828 ac_cv_type_intmax_t=yes
26829else
26830 echo "$as_me: failed program was:" >&5
26831sed 's/^/| /' conftest.$ac_ext >&5
26832
26833 ac_cv_type_intmax_t=no
26834fi
26835
26836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26837fi
26838{ echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
26839echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
26840if test $ac_cv_type_intmax_t = yes; then
14196 26841
14197cat >>confdefs.h <<_ACEOF 26842cat >>confdefs.h <<_ACEOF
14198#define HAVE_INTMAX_T 1 26843#define HAVE_INTMAX_T 1
@@ -14200,12 +26845,64 @@ _ACEOF
14200 26845
14201 26846
14202fi 26847fi
14203ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" " 26848{ echo "$as_me:$LINENO: checking for uintmax_t" >&5
26849echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6; }
26850if test "${ac_cv_type_uintmax_t+set}" = set; then
26851 echo $ECHO_N "(cached) $ECHO_C" >&6
26852else
26853 cat >conftest.$ac_ext <<_ACEOF
26854/* confdefs.h. */
26855_ACEOF
26856cat confdefs.h >>conftest.$ac_ext
26857cat >>conftest.$ac_ext <<_ACEOF
26858/* end confdefs.h. */
26859
14204#include <sys/types.h> 26860#include <sys/types.h>
14205#include <stdint.h> 26861#include <stdint.h>
14206 26862
14207" 26863
14208if test "x$ac_cv_type_uintmax_t" = xyes; then : 26864typedef uintmax_t ac__type_new_;
26865int
26866main ()
26867{
26868if ((ac__type_new_ *) 0)
26869 return 0;
26870if (sizeof (ac__type_new_))
26871 return 0;
26872 ;
26873 return 0;
26874}
26875_ACEOF
26876rm -f conftest.$ac_objext
26877if { (ac_try="$ac_compile"
26878case "(($ac_try" in
26879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26880 *) ac_try_echo=$ac_try;;
26881esac
26882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26883 (eval "$ac_compile") 2>conftest.er1
26884 ac_status=$?
26885 grep -v '^ *+' conftest.er1 >conftest.err
26886 rm -f conftest.er1
26887 cat conftest.err >&5
26888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26889 (exit $ac_status); } && {
26890 test -z "$ac_c_werror_flag" ||
26891 test ! -s conftest.err
26892 } && test -s conftest.$ac_objext; then
26893 ac_cv_type_uintmax_t=yes
26894else
26895 echo "$as_me: failed program was:" >&5
26896sed 's/^/| /' conftest.$ac_ext >&5
26897
26898 ac_cv_type_uintmax_t=no
26899fi
26900
26901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26902fi
26903{ echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
26904echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6; }
26905if test $ac_cv_type_uintmax_t = yes; then
14209 26906
14210cat >>confdefs.h <<_ACEOF 26907cat >>confdefs.h <<_ACEOF
14211#define HAVE_UINTMAX_T 1 26908#define HAVE_UINTMAX_T 1
@@ -14216,17 +26913,69 @@ fi
14216 26913
14217 26914
14218 26915
14219 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> 26916 { echo "$as_me:$LINENO: checking for socklen_t" >&5
26917echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
26918if test "${ac_cv_type_socklen_t+set}" = set; then
26919 echo $ECHO_N "(cached) $ECHO_C" >&6
26920else
26921 cat >conftest.$ac_ext <<_ACEOF
26922/* confdefs.h. */
26923_ACEOF
26924cat confdefs.h >>conftest.$ac_ext
26925cat >>conftest.$ac_ext <<_ACEOF
26926/* end confdefs.h. */
26927#include <sys/types.h>
14220#include <sys/socket.h> 26928#include <sys/socket.h>
14221"
14222if test "x$ac_cv_type_socklen_t" = xyes; then :
14223 26929
26930typedef socklen_t ac__type_new_;
26931int
26932main ()
26933{
26934if ((ac__type_new_ *) 0)
26935 return 0;
26936if (sizeof (ac__type_new_))
26937 return 0;
26938 ;
26939 return 0;
26940}
26941_ACEOF
26942rm -f conftest.$ac_objext
26943if { (ac_try="$ac_compile"
26944case "(($ac_try" in
26945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26946 *) ac_try_echo=$ac_try;;
26947esac
26948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26949 (eval "$ac_compile") 2>conftest.er1
26950 ac_status=$?
26951 grep -v '^ *+' conftest.er1 >conftest.err
26952 rm -f conftest.er1
26953 cat conftest.err >&5
26954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26955 (exit $ac_status); } && {
26956 test -z "$ac_c_werror_flag" ||
26957 test ! -s conftest.err
26958 } && test -s conftest.$ac_objext; then
26959 ac_cv_type_socklen_t=yes
14224else 26960else
26961 echo "$as_me: failed program was:" >&5
26962sed 's/^/| /' conftest.$ac_ext >&5
26963
26964 ac_cv_type_socklen_t=no
26965fi
14225 26966
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 26967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14227$as_echo_n "checking for socklen_t equivalent... " >&6; } 26968fi
14228 if ${curl_cv_socklen_t_equiv+:} false; then : 26969{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
14229 $as_echo_n "(cached) " >&6 26970echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
26971if test $ac_cv_type_socklen_t = yes; then
26972 :
26973else
26974
26975 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
26976echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
26977 if test "${curl_cv_socklen_t_equiv+set}" = set; then
26978 echo $ECHO_N "(cached) $ECHO_C" >&6
14230else 26979else
14231 26980
14232 # Systems have either "struct sockaddr *" or 26981 # Systems have either "struct sockaddr *" or
@@ -14234,7 +26983,11 @@ else
14234 curl_cv_socklen_t_equiv= 26983 curl_cv_socklen_t_equiv=
14235 for arg2 in "struct sockaddr" void; do 26984 for arg2 in "struct sockaddr" void; do
14236 for t in int size_t unsigned long "unsigned long"; do 26985 for t in int size_t unsigned long "unsigned long"; do
14237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26986 cat >conftest.$ac_ext <<_ACEOF
26987/* confdefs.h. */
26988_ACEOF
26989cat confdefs.h >>conftest.$ac_ext
26990cat >>conftest.$ac_ext <<_ACEOF
14238/* end confdefs.h. */ 26991/* end confdefs.h. */
14239 26992
14240 #include <sys/types.h> 26993 #include <sys/types.h>
@@ -14253,24 +27006,48 @@ main ()
14253 return 0; 27006 return 0;
14254} 27007}
14255_ACEOF 27008_ACEOF
14256if ac_fn_c_try_compile "$LINENO"; then : 27009rm -f conftest.$ac_objext
27010if { (ac_try="$ac_compile"
27011case "(($ac_try" in
27012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27013 *) ac_try_echo=$ac_try;;
27014esac
27015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27016 (eval "$ac_compile") 2>conftest.er1
27017 ac_status=$?
27018 grep -v '^ *+' conftest.er1 >conftest.err
27019 rm -f conftest.er1
27020 cat conftest.err >&5
27021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27022 (exit $ac_status); } && {
27023 test -z "$ac_c_werror_flag" ||
27024 test ! -s conftest.err
27025 } && test -s conftest.$ac_objext; then
14257 27026
14258 curl_cv_socklen_t_equiv="$t" 27027 curl_cv_socklen_t_equiv="$t"
14259 break 27028 break
14260 27029
27030else
27031 echo "$as_me: failed program was:" >&5
27032sed 's/^/| /' conftest.$ac_ext >&5
27033
27034
14261fi 27035fi
27036
14262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14263 done 27038 done
14264 done 27039 done
14265 27040
14266 if test "x$curl_cv_socklen_t_equiv" = x; then 27041 if test "x$curl_cv_socklen_t_equiv" = x; then
14267 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5 27042 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
27043echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
27044 { (exit 1); exit 1; }; }
14268 fi 27045 fi
14269 27046
14270fi 27047fi
14271 27048
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5 27049 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
14273$as_echo "$curl_cv_socklen_t_equiv" >&6; } 27050echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
14274 27051
14275cat >>confdefs.h <<_ACEOF 27052cat >>confdefs.h <<_ACEOF
14276#define socklen_t $curl_cv_socklen_t_equiv 27053#define socklen_t $curl_cv_socklen_t_equiv
@@ -14280,9 +27057,61 @@ fi
14280 27057
14281 27058
14282 27059
14283ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h> 27060{ echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
14284" 27061echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
14285if test "x$ac_cv_type_sig_atomic_t" = xyes; then : 27062if test "${ac_cv_type_sig_atomic_t+set}" = set; then
27063 echo $ECHO_N "(cached) $ECHO_C" >&6
27064else
27065 cat >conftest.$ac_ext <<_ACEOF
27066/* confdefs.h. */
27067_ACEOF
27068cat confdefs.h >>conftest.$ac_ext
27069cat >>conftest.$ac_ext <<_ACEOF
27070/* end confdefs.h. */
27071#include <signal.h>
27072
27073typedef sig_atomic_t ac__type_new_;
27074int
27075main ()
27076{
27077if ((ac__type_new_ *) 0)
27078 return 0;
27079if (sizeof (ac__type_new_))
27080 return 0;
27081 ;
27082 return 0;
27083}
27084_ACEOF
27085rm -f conftest.$ac_objext
27086if { (ac_try="$ac_compile"
27087case "(($ac_try" in
27088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27089 *) ac_try_echo=$ac_try;;
27090esac
27091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27092 (eval "$ac_compile") 2>conftest.er1
27093 ac_status=$?
27094 grep -v '^ *+' conftest.er1 >conftest.err
27095 rm -f conftest.er1
27096 cat conftest.err >&5
27097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27098 (exit $ac_status); } && {
27099 test -z "$ac_c_werror_flag" ||
27100 test ! -s conftest.err
27101 } && test -s conftest.$ac_objext; then
27102 ac_cv_type_sig_atomic_t=yes
27103else
27104 echo "$as_me: failed program was:" >&5
27105sed 's/^/| /' conftest.$ac_ext >&5
27106
27107 ac_cv_type_sig_atomic_t=no
27108fi
27109
27110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27111fi
27112{ echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
27113echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
27114if test $ac_cv_type_sig_atomic_t = yes; then
14286 27115
14287cat >>confdefs.h <<_ACEOF 27116cat >>confdefs.h <<_ACEOF
14288#define HAVE_SIG_ATOMIC_T 1 27117#define HAVE_SIG_ATOMIC_T 1
@@ -14291,7 +27120,18 @@ _ACEOF
14291 27120
14292fi 27121fi
14293 27122
14294ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" " 27123{ echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
27124echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
27125if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
27126 echo $ECHO_N "(cached) $ECHO_C" >&6
27127else
27128 cat >conftest.$ac_ext <<_ACEOF
27129/* confdefs.h. */
27130_ACEOF
27131cat confdefs.h >>conftest.$ac_ext
27132cat >>conftest.$ac_ext <<_ACEOF
27133/* end confdefs.h. */
27134
14295#include <sys/types.h> 27135#include <sys/types.h>
14296#ifdef HAVE_SYS_BITYPES_H 27136#ifdef HAVE_SYS_BITYPES_H
14297#include <sys/bitypes.h> 27137#include <sys/bitypes.h>
@@ -14303,8 +27143,49 @@ ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "
14303#include <sys/statvfs.h> 27143#include <sys/statvfs.h>
14304#endif 27144#endif
14305 27145
14306" 27146
14307if test "x$ac_cv_type_fsblkcnt_t" = xyes; then : 27147typedef fsblkcnt_t ac__type_new_;
27148int
27149main ()
27150{
27151if ((ac__type_new_ *) 0)
27152 return 0;
27153if (sizeof (ac__type_new_))
27154 return 0;
27155 ;
27156 return 0;
27157}
27158_ACEOF
27159rm -f conftest.$ac_objext
27160if { (ac_try="$ac_compile"
27161case "(($ac_try" in
27162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27163 *) ac_try_echo=$ac_try;;
27164esac
27165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27166 (eval "$ac_compile") 2>conftest.er1
27167 ac_status=$?
27168 grep -v '^ *+' conftest.er1 >conftest.err
27169 rm -f conftest.er1
27170 cat conftest.err >&5
27171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27172 (exit $ac_status); } && {
27173 test -z "$ac_c_werror_flag" ||
27174 test ! -s conftest.err
27175 } && test -s conftest.$ac_objext; then
27176 ac_cv_type_fsblkcnt_t=yes
27177else
27178 echo "$as_me: failed program was:" >&5
27179sed 's/^/| /' conftest.$ac_ext >&5
27180
27181 ac_cv_type_fsblkcnt_t=no
27182fi
27183
27184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27185fi
27186{ echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
27187echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
27188if test $ac_cv_type_fsblkcnt_t = yes; then
14308 27189
14309cat >>confdefs.h <<_ACEOF 27190cat >>confdefs.h <<_ACEOF
14310#define HAVE_FSBLKCNT_T 1 27191#define HAVE_FSBLKCNT_T 1
@@ -14312,7 +27193,18 @@ _ACEOF
14312 27193
14313 27194
14314fi 27195fi
14315ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" " 27196{ echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
27197echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
27198if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
27199 echo $ECHO_N "(cached) $ECHO_C" >&6
27200else
27201 cat >conftest.$ac_ext <<_ACEOF
27202/* confdefs.h. */
27203_ACEOF
27204cat confdefs.h >>conftest.$ac_ext
27205cat >>conftest.$ac_ext <<_ACEOF
27206/* end confdefs.h. */
27207
14316#include <sys/types.h> 27208#include <sys/types.h>
14317#ifdef HAVE_SYS_BITYPES_H 27209#ifdef HAVE_SYS_BITYPES_H
14318#include <sys/bitypes.h> 27210#include <sys/bitypes.h>
@@ -14324,8 +27216,49 @@ ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "
14324#include <sys/statvfs.h> 27216#include <sys/statvfs.h>
14325#endif 27217#endif
14326 27218
14327" 27219
14328if test "x$ac_cv_type_fsfilcnt_t" = xyes; then : 27220typedef fsfilcnt_t ac__type_new_;
27221int
27222main ()
27223{
27224if ((ac__type_new_ *) 0)
27225 return 0;
27226if (sizeof (ac__type_new_))
27227 return 0;
27228 ;
27229 return 0;
27230}
27231_ACEOF
27232rm -f conftest.$ac_objext
27233if { (ac_try="$ac_compile"
27234case "(($ac_try" in
27235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27236 *) ac_try_echo=$ac_try;;
27237esac
27238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27239 (eval "$ac_compile") 2>conftest.er1
27240 ac_status=$?
27241 grep -v '^ *+' conftest.er1 >conftest.err
27242 rm -f conftest.er1
27243 cat conftest.err >&5
27244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245 (exit $ac_status); } && {
27246 test -z "$ac_c_werror_flag" ||
27247 test ! -s conftest.err
27248 } && test -s conftest.$ac_objext; then
27249 ac_cv_type_fsfilcnt_t=yes
27250else
27251 echo "$as_me: failed program was:" >&5
27252sed 's/^/| /' conftest.$ac_ext >&5
27253
27254 ac_cv_type_fsfilcnt_t=no
27255fi
27256
27257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27258fi
27259{ echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
27260echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
27261if test $ac_cv_type_fsfilcnt_t = yes; then
14329 27262
14330cat >>confdefs.h <<_ACEOF 27263cat >>confdefs.h <<_ACEOF
14331#define HAVE_FSFILCNT_T 1 27264#define HAVE_FSFILCNT_T 1
@@ -14335,10 +27268,62 @@ _ACEOF
14335fi 27268fi
14336 27269
14337 27270
14338ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h> 27271{ echo "$as_me:$LINENO: checking for in_addr_t" >&5
27272echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
27273if test "${ac_cv_type_in_addr_t+set}" = set; then
27274 echo $ECHO_N "(cached) $ECHO_C" >&6
27275else
27276 cat >conftest.$ac_ext <<_ACEOF
27277/* confdefs.h. */
27278_ACEOF
27279cat confdefs.h >>conftest.$ac_ext
27280cat >>conftest.$ac_ext <<_ACEOF
27281/* end confdefs.h. */
27282#include <sys/types.h>
14339#include <netinet/in.h> 27283#include <netinet/in.h>
14340" 27284
14341if test "x$ac_cv_type_in_addr_t" = xyes; then : 27285typedef in_addr_t ac__type_new_;
27286int
27287main ()
27288{
27289if ((ac__type_new_ *) 0)
27290 return 0;
27291if (sizeof (ac__type_new_))
27292 return 0;
27293 ;
27294 return 0;
27295}
27296_ACEOF
27297rm -f conftest.$ac_objext
27298if { (ac_try="$ac_compile"
27299case "(($ac_try" in
27300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27301 *) ac_try_echo=$ac_try;;
27302esac
27303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27304 (eval "$ac_compile") 2>conftest.er1
27305 ac_status=$?
27306 grep -v '^ *+' conftest.er1 >conftest.err
27307 rm -f conftest.er1
27308 cat conftest.err >&5
27309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310 (exit $ac_status); } && {
27311 test -z "$ac_c_werror_flag" ||
27312 test ! -s conftest.err
27313 } && test -s conftest.$ac_objext; then
27314 ac_cv_type_in_addr_t=yes
27315else
27316 echo "$as_me: failed program was:" >&5
27317sed 's/^/| /' conftest.$ac_ext >&5
27318
27319 ac_cv_type_in_addr_t=no
27320fi
27321
27322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27323fi
27324{ echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
27325echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
27326if test $ac_cv_type_in_addr_t = yes; then
14342 27327
14343cat >>confdefs.h <<_ACEOF 27328cat >>confdefs.h <<_ACEOF
14344#define HAVE_IN_ADDR_T 1 27329#define HAVE_IN_ADDR_T 1
@@ -14346,10 +27331,62 @@ _ACEOF
14346 27331
14347 27332
14348fi 27333fi
14349ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h> 27334{ echo "$as_me:$LINENO: checking for in_port_t" >&5
27335echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
27336if test "${ac_cv_type_in_port_t+set}" = set; then
27337 echo $ECHO_N "(cached) $ECHO_C" >&6
27338else
27339 cat >conftest.$ac_ext <<_ACEOF
27340/* confdefs.h. */
27341_ACEOF
27342cat confdefs.h >>conftest.$ac_ext
27343cat >>conftest.$ac_ext <<_ACEOF
27344/* end confdefs.h. */
27345#include <sys/types.h>
14350#include <netinet/in.h> 27346#include <netinet/in.h>
14351" 27347
14352if test "x$ac_cv_type_in_port_t" = xyes; then : 27348typedef in_port_t ac__type_new_;
27349int
27350main ()
27351{
27352if ((ac__type_new_ *) 0)
27353 return 0;
27354if (sizeof (ac__type_new_))
27355 return 0;
27356 ;
27357 return 0;
27358}
27359_ACEOF
27360rm -f conftest.$ac_objext
27361if { (ac_try="$ac_compile"
27362case "(($ac_try" in
27363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27364 *) ac_try_echo=$ac_try;;
27365esac
27366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27367 (eval "$ac_compile") 2>conftest.er1
27368 ac_status=$?
27369 grep -v '^ *+' conftest.er1 >conftest.err
27370 rm -f conftest.er1
27371 cat conftest.err >&5
27372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373 (exit $ac_status); } && {
27374 test -z "$ac_c_werror_flag" ||
27375 test ! -s conftest.err
27376 } && test -s conftest.$ac_objext; then
27377 ac_cv_type_in_port_t=yes
27378else
27379 echo "$as_me: failed program was:" >&5
27380sed 's/^/| /' conftest.$ac_ext >&5
27381
27382 ac_cv_type_in_port_t=no
27383fi
27384
27385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27386fi
27387{ echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
27388echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
27389if test $ac_cv_type_in_port_t = yes; then
14353 27390
14354cat >>confdefs.h <<_ACEOF 27391cat >>confdefs.h <<_ACEOF
14355#define HAVE_IN_PORT_T 1 27392#define HAVE_IN_PORT_T 1
@@ -14359,13 +27396,17 @@ _ACEOF
14359fi 27396fi
14360 27397
14361 27398
14362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5 27399{ echo "$as_me:$LINENO: checking for size_t" >&5
14363$as_echo_n "checking for size_t... " >&6; } 27400echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14364if ${ac_cv_have_size_t+:} false; then : 27401if test "${ac_cv_have_size_t+set}" = set; then
14365 $as_echo_n "(cached) " >&6 27402 echo $ECHO_N "(cached) $ECHO_C" >&6
14366else 27403else
14367 27404
14368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27405 cat >conftest.$ac_ext <<_ACEOF
27406/* confdefs.h. */
27407_ACEOF
27408cat confdefs.h >>conftest.$ac_ext
27409cat >>conftest.$ac_ext <<_ACEOF
14369/* end confdefs.h. */ 27410/* end confdefs.h. */
14370 #include <sys/types.h> 27411 #include <sys/types.h>
14371int 27412int
@@ -14376,30 +27417,56 @@ main ()
14376 return 0; 27417 return 0;
14377} 27418}
14378_ACEOF 27419_ACEOF
14379if ac_fn_c_try_compile "$LINENO"; then : 27420rm -f conftest.$ac_objext
27421if { (ac_try="$ac_compile"
27422case "(($ac_try" in
27423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27424 *) ac_try_echo=$ac_try;;
27425esac
27426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27427 (eval "$ac_compile") 2>conftest.er1
27428 ac_status=$?
27429 grep -v '^ *+' conftest.er1 >conftest.err
27430 rm -f conftest.er1
27431 cat conftest.err >&5
27432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433 (exit $ac_status); } && {
27434 test -z "$ac_c_werror_flag" ||
27435 test ! -s conftest.err
27436 } && test -s conftest.$ac_objext; then
14380 ac_cv_have_size_t="yes" 27437 ac_cv_have_size_t="yes"
14381else 27438else
14382 ac_cv_have_size_t="no" 27439 echo "$as_me: failed program was:" >&5
27440sed 's/^/| /' conftest.$ac_ext >&5
27441
27442 ac_cv_have_size_t="no"
14383 27443
14384fi 27444fi
27445
14385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14386 27447
14387fi 27448fi
14388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5 27449{ echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
14389$as_echo "$ac_cv_have_size_t" >&6; } 27450echo "${ECHO_T}$ac_cv_have_size_t" >&6; }
14390if test "x$ac_cv_have_size_t" = "xyes" ; then 27451if test "x$ac_cv_have_size_t" = "xyes" ; then
14391 27452
14392$as_echo "#define HAVE_SIZE_T 1" >>confdefs.h 27453cat >>confdefs.h <<\_ACEOF
27454#define HAVE_SIZE_T 1
27455_ACEOF
14393 27456
14394fi 27457fi
14395 27458
14396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 27459{ echo "$as_me:$LINENO: checking for ssize_t" >&5
14397$as_echo_n "checking for ssize_t... " >&6; } 27460echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
14398if ${ac_cv_have_ssize_t+:} false; then : 27461if test "${ac_cv_have_ssize_t+set}" = set; then
14399 $as_echo_n "(cached) " >&6 27462 echo $ECHO_N "(cached) $ECHO_C" >&6
14400else 27463else
14401 27464
14402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27465 cat >conftest.$ac_ext <<_ACEOF
27466/* confdefs.h. */
27467_ACEOF
27468cat confdefs.h >>conftest.$ac_ext
27469cat >>conftest.$ac_ext <<_ACEOF
14403/* end confdefs.h. */ 27470/* end confdefs.h. */
14404 #include <sys/types.h> 27471 #include <sys/types.h>
14405int 27472int
@@ -14410,30 +27477,56 @@ main ()
14410 return 0; 27477 return 0;
14411} 27478}
14412_ACEOF 27479_ACEOF
14413if ac_fn_c_try_compile "$LINENO"; then : 27480rm -f conftest.$ac_objext
27481if { (ac_try="$ac_compile"
27482case "(($ac_try" in
27483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27484 *) ac_try_echo=$ac_try;;
27485esac
27486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27487 (eval "$ac_compile") 2>conftest.er1
27488 ac_status=$?
27489 grep -v '^ *+' conftest.er1 >conftest.err
27490 rm -f conftest.er1
27491 cat conftest.err >&5
27492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27493 (exit $ac_status); } && {
27494 test -z "$ac_c_werror_flag" ||
27495 test ! -s conftest.err
27496 } && test -s conftest.$ac_objext; then
14414 ac_cv_have_ssize_t="yes" 27497 ac_cv_have_ssize_t="yes"
14415else 27498else
14416 ac_cv_have_ssize_t="no" 27499 echo "$as_me: failed program was:" >&5
27500sed 's/^/| /' conftest.$ac_ext >&5
27501
27502 ac_cv_have_ssize_t="no"
14417 27503
14418fi 27504fi
27505
14419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14420 27507
14421fi 27508fi
14422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5 27509{ echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
14423$as_echo "$ac_cv_have_ssize_t" >&6; } 27510echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; }
14424if test "x$ac_cv_have_ssize_t" = "xyes" ; then 27511if test "x$ac_cv_have_ssize_t" = "xyes" ; then
14425 27512
14426$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h 27513cat >>confdefs.h <<\_ACEOF
27514#define HAVE_SSIZE_T 1
27515_ACEOF
14427 27516
14428fi 27517fi
14429 27518
14430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5 27519{ echo "$as_me:$LINENO: checking for clock_t" >&5
14431$as_echo_n "checking for clock_t... " >&6; } 27520echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
14432if ${ac_cv_have_clock_t+:} false; then : 27521if test "${ac_cv_have_clock_t+set}" = set; then
14433 $as_echo_n "(cached) " >&6 27522 echo $ECHO_N "(cached) $ECHO_C" >&6
14434else 27523else
14435 27524
14436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27525 cat >conftest.$ac_ext <<_ACEOF
27526/* confdefs.h. */
27527_ACEOF
27528cat confdefs.h >>conftest.$ac_ext
27529cat >>conftest.$ac_ext <<_ACEOF
14437/* end confdefs.h. */ 27530/* end confdefs.h. */
14438 #include <time.h> 27531 #include <time.h>
14439int 27532int
@@ -14444,30 +27537,56 @@ main ()
14444 return 0; 27537 return 0;
14445} 27538}
14446_ACEOF 27539_ACEOF
14447if ac_fn_c_try_compile "$LINENO"; then : 27540rm -f conftest.$ac_objext
27541if { (ac_try="$ac_compile"
27542case "(($ac_try" in
27543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27544 *) ac_try_echo=$ac_try;;
27545esac
27546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27547 (eval "$ac_compile") 2>conftest.er1
27548 ac_status=$?
27549 grep -v '^ *+' conftest.er1 >conftest.err
27550 rm -f conftest.er1
27551 cat conftest.err >&5
27552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27553 (exit $ac_status); } && {
27554 test -z "$ac_c_werror_flag" ||
27555 test ! -s conftest.err
27556 } && test -s conftest.$ac_objext; then
14448 ac_cv_have_clock_t="yes" 27557 ac_cv_have_clock_t="yes"
14449else 27558else
14450 ac_cv_have_clock_t="no" 27559 echo "$as_me: failed program was:" >&5
27560sed 's/^/| /' conftest.$ac_ext >&5
27561
27562 ac_cv_have_clock_t="no"
14451 27563
14452fi 27564fi
27565
14453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14454 27567
14455fi 27568fi
14456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5 27569{ echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
14457$as_echo "$ac_cv_have_clock_t" >&6; } 27570echo "${ECHO_T}$ac_cv_have_clock_t" >&6; }
14458if test "x$ac_cv_have_clock_t" = "xyes" ; then 27571if test "x$ac_cv_have_clock_t" = "xyes" ; then
14459 27572
14460$as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h 27573cat >>confdefs.h <<\_ACEOF
27574#define HAVE_CLOCK_T 1
27575_ACEOF
14461 27576
14462fi 27577fi
14463 27578
14464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5 27579{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
14465$as_echo_n "checking for sa_family_t... " >&6; } 27580echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
14466if ${ac_cv_have_sa_family_t+:} false; then : 27581if test "${ac_cv_have_sa_family_t+set}" = set; then
14467 $as_echo_n "(cached) " >&6 27582 echo $ECHO_N "(cached) $ECHO_C" >&6
14468else 27583else
14469 27584
14470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27585 cat >conftest.$ac_ext <<_ACEOF
27586/* confdefs.h. */
27587_ACEOF
27588cat confdefs.h >>conftest.$ac_ext
27589cat >>conftest.$ac_ext <<_ACEOF
14471/* end confdefs.h. */ 27590/* end confdefs.h. */
14472 27591
14473#include <sys/types.h> 27592#include <sys/types.h>
@@ -14481,10 +27600,33 @@ main ()
14481 return 0; 27600 return 0;
14482} 27601}
14483_ACEOF 27602_ACEOF
14484if ac_fn_c_try_compile "$LINENO"; then : 27603rm -f conftest.$ac_objext
27604if { (ac_try="$ac_compile"
27605case "(($ac_try" in
27606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27607 *) ac_try_echo=$ac_try;;
27608esac
27609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27610 (eval "$ac_compile") 2>conftest.er1
27611 ac_status=$?
27612 grep -v '^ *+' conftest.er1 >conftest.err
27613 rm -f conftest.er1
27614 cat conftest.err >&5
27615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616 (exit $ac_status); } && {
27617 test -z "$ac_c_werror_flag" ||
27618 test ! -s conftest.err
27619 } && test -s conftest.$ac_objext; then
14485 ac_cv_have_sa_family_t="yes" 27620 ac_cv_have_sa_family_t="yes"
14486else 27621else
14487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27622 echo "$as_me: failed program was:" >&5
27623sed 's/^/| /' conftest.$ac_ext >&5
27624
27625 cat >conftest.$ac_ext <<_ACEOF
27626/* confdefs.h. */
27627_ACEOF
27628cat confdefs.h >>conftest.$ac_ext
27629cat >>conftest.$ac_ext <<_ACEOF
14488/* end confdefs.h. */ 27630/* end confdefs.h. */
14489 27631
14490#include <sys/types.h> 27632#include <sys/types.h>
@@ -14499,33 +27641,60 @@ main ()
14499 return 0; 27641 return 0;
14500} 27642}
14501_ACEOF 27643_ACEOF
14502if ac_fn_c_try_compile "$LINENO"; then : 27644rm -f conftest.$ac_objext
27645if { (ac_try="$ac_compile"
27646case "(($ac_try" in
27647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27648 *) ac_try_echo=$ac_try;;
27649esac
27650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27651 (eval "$ac_compile") 2>conftest.er1
27652 ac_status=$?
27653 grep -v '^ *+' conftest.er1 >conftest.err
27654 rm -f conftest.er1
27655 cat conftest.err >&5
27656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657 (exit $ac_status); } && {
27658 test -z "$ac_c_werror_flag" ||
27659 test ! -s conftest.err
27660 } && test -s conftest.$ac_objext; then
14503 ac_cv_have_sa_family_t="yes" 27661 ac_cv_have_sa_family_t="yes"
14504else 27662else
14505 ac_cv_have_sa_family_t="no" 27663 echo "$as_me: failed program was:" >&5
27664sed 's/^/| /' conftest.$ac_ext >&5
27665
27666 ac_cv_have_sa_family_t="no"
14506 27667
14507fi 27668fi
27669
14508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14509 27671
14510fi 27672fi
27673
14511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14512 27675
14513fi 27676fi
14514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5 27677{ echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
14515$as_echo "$ac_cv_have_sa_family_t" >&6; } 27678echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; }
14516if test "x$ac_cv_have_sa_family_t" = "xyes" ; then 27679if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
14517 27680
14518$as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h 27681cat >>confdefs.h <<\_ACEOF
27682#define HAVE_SA_FAMILY_T 1
27683_ACEOF
14519 27684
14520fi 27685fi
14521 27686
14522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5 27687{ echo "$as_me:$LINENO: checking for pid_t" >&5
14523$as_echo_n "checking for pid_t... " >&6; } 27688echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
14524if ${ac_cv_have_pid_t+:} false; then : 27689if test "${ac_cv_have_pid_t+set}" = set; then
14525 $as_echo_n "(cached) " >&6 27690 echo $ECHO_N "(cached) $ECHO_C" >&6
14526else 27691else
14527 27692
14528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27693 cat >conftest.$ac_ext <<_ACEOF
27694/* confdefs.h. */
27695_ACEOF
27696cat confdefs.h >>conftest.$ac_ext
27697cat >>conftest.$ac_ext <<_ACEOF
14529/* end confdefs.h. */ 27698/* end confdefs.h. */
14530 #include <sys/types.h> 27699 #include <sys/types.h>
14531int 27700int
@@ -14536,30 +27705,56 @@ main ()
14536 return 0; 27705 return 0;
14537} 27706}
14538_ACEOF 27707_ACEOF
14539if ac_fn_c_try_compile "$LINENO"; then : 27708rm -f conftest.$ac_objext
27709if { (ac_try="$ac_compile"
27710case "(($ac_try" in
27711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27712 *) ac_try_echo=$ac_try;;
27713esac
27714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27715 (eval "$ac_compile") 2>conftest.er1
27716 ac_status=$?
27717 grep -v '^ *+' conftest.er1 >conftest.err
27718 rm -f conftest.er1
27719 cat conftest.err >&5
27720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721 (exit $ac_status); } && {
27722 test -z "$ac_c_werror_flag" ||
27723 test ! -s conftest.err
27724 } && test -s conftest.$ac_objext; then
14540 ac_cv_have_pid_t="yes" 27725 ac_cv_have_pid_t="yes"
14541else 27726else
14542 ac_cv_have_pid_t="no" 27727 echo "$as_me: failed program was:" >&5
27728sed 's/^/| /' conftest.$ac_ext >&5
27729
27730 ac_cv_have_pid_t="no"
14543 27731
14544fi 27732fi
27733
14545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14546 27735
14547fi 27736fi
14548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5 27737{ echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
14549$as_echo "$ac_cv_have_pid_t" >&6; } 27738echo "${ECHO_T}$ac_cv_have_pid_t" >&6; }
14550if test "x$ac_cv_have_pid_t" = "xyes" ; then 27739if test "x$ac_cv_have_pid_t" = "xyes" ; then
14551 27740
14552$as_echo "#define HAVE_PID_T 1" >>confdefs.h 27741cat >>confdefs.h <<\_ACEOF
27742#define HAVE_PID_T 1
27743_ACEOF
14553 27744
14554fi 27745fi
14555 27746
14556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5 27747{ echo "$as_me:$LINENO: checking for mode_t" >&5
14557$as_echo_n "checking for mode_t... " >&6; } 27748echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
14558if ${ac_cv_have_mode_t+:} false; then : 27749if test "${ac_cv_have_mode_t+set}" = set; then
14559 $as_echo_n "(cached) " >&6 27750 echo $ECHO_N "(cached) $ECHO_C" >&6
14560else 27751else
14561 27752
14562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27753 cat >conftest.$ac_ext <<_ACEOF
27754/* confdefs.h. */
27755_ACEOF
27756cat confdefs.h >>conftest.$ac_ext
27757cat >>conftest.$ac_ext <<_ACEOF
14563/* end confdefs.h. */ 27758/* end confdefs.h. */
14564 #include <sys/types.h> 27759 #include <sys/types.h>
14565int 27760int
@@ -14570,31 +27765,57 @@ main ()
14570 return 0; 27765 return 0;
14571} 27766}
14572_ACEOF 27767_ACEOF
14573if ac_fn_c_try_compile "$LINENO"; then : 27768rm -f conftest.$ac_objext
27769if { (ac_try="$ac_compile"
27770case "(($ac_try" in
27771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27772 *) ac_try_echo=$ac_try;;
27773esac
27774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27775 (eval "$ac_compile") 2>conftest.er1
27776 ac_status=$?
27777 grep -v '^ *+' conftest.er1 >conftest.err
27778 rm -f conftest.er1
27779 cat conftest.err >&5
27780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781 (exit $ac_status); } && {
27782 test -z "$ac_c_werror_flag" ||
27783 test ! -s conftest.err
27784 } && test -s conftest.$ac_objext; then
14574 ac_cv_have_mode_t="yes" 27785 ac_cv_have_mode_t="yes"
14575else 27786else
14576 ac_cv_have_mode_t="no" 27787 echo "$as_me: failed program was:" >&5
27788sed 's/^/| /' conftest.$ac_ext >&5
27789
27790 ac_cv_have_mode_t="no"
14577 27791
14578fi 27792fi
27793
14579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14580 27795
14581fi 27796fi
14582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5 27797{ echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
14583$as_echo "$ac_cv_have_mode_t" >&6; } 27798echo "${ECHO_T}$ac_cv_have_mode_t" >&6; }
14584if test "x$ac_cv_have_mode_t" = "xyes" ; then 27799if test "x$ac_cv_have_mode_t" = "xyes" ; then
14585 27800
14586$as_echo "#define HAVE_MODE_T 1" >>confdefs.h 27801cat >>confdefs.h <<\_ACEOF
27802#define HAVE_MODE_T 1
27803_ACEOF
14587 27804
14588fi 27805fi
14589 27806
14590 27807
14591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 27808{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
14592$as_echo_n "checking for struct sockaddr_storage... " >&6; } 27809echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
14593if ${ac_cv_have_struct_sockaddr_storage+:} false; then : 27810if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
14594 $as_echo_n "(cached) " >&6 27811 echo $ECHO_N "(cached) $ECHO_C" >&6
14595else 27812else
14596 27813
14597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27814 cat >conftest.$ac_ext <<_ACEOF
27815/* confdefs.h. */
27816_ACEOF
27817cat confdefs.h >>conftest.$ac_ext
27818cat >>conftest.$ac_ext <<_ACEOF
14598/* end confdefs.h. */ 27819/* end confdefs.h. */
14599 27820
14600#include <sys/types.h> 27821#include <sys/types.h>
@@ -14608,30 +27829,56 @@ main ()
14608 return 0; 27829 return 0;
14609} 27830}
14610_ACEOF 27831_ACEOF
14611if ac_fn_c_try_compile "$LINENO"; then : 27832rm -f conftest.$ac_objext
27833if { (ac_try="$ac_compile"
27834case "(($ac_try" in
27835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27836 *) ac_try_echo=$ac_try;;
27837esac
27838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27839 (eval "$ac_compile") 2>conftest.er1
27840 ac_status=$?
27841 grep -v '^ *+' conftest.er1 >conftest.err
27842 rm -f conftest.er1
27843 cat conftest.err >&5
27844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27845 (exit $ac_status); } && {
27846 test -z "$ac_c_werror_flag" ||
27847 test ! -s conftest.err
27848 } && test -s conftest.$ac_objext; then
14612 ac_cv_have_struct_sockaddr_storage="yes" 27849 ac_cv_have_struct_sockaddr_storage="yes"
14613else 27850else
14614 ac_cv_have_struct_sockaddr_storage="no" 27851 echo "$as_me: failed program was:" >&5
27852sed 's/^/| /' conftest.$ac_ext >&5
27853
27854 ac_cv_have_struct_sockaddr_storage="no"
14615 27855
14616fi 27856fi
27857
14617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14618 27859
14619fi 27860fi
14620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5 27861{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
14621$as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; } 27862echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; }
14622if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then 27863if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
14623 27864
14624$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 27865cat >>confdefs.h <<\_ACEOF
27866#define HAVE_STRUCT_SOCKADDR_STORAGE 1
27867_ACEOF
14625 27868
14626fi 27869fi
14627 27870
14628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5 27871{ echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
14629$as_echo_n "checking for struct sockaddr_in6... " >&6; } 27872echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
14630if ${ac_cv_have_struct_sockaddr_in6+:} false; then : 27873if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
14631 $as_echo_n "(cached) " >&6 27874 echo $ECHO_N "(cached) $ECHO_C" >&6
14632else 27875else
14633 27876
14634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27877 cat >conftest.$ac_ext <<_ACEOF
27878/* confdefs.h. */
27879_ACEOF
27880cat confdefs.h >>conftest.$ac_ext
27881cat >>conftest.$ac_ext <<_ACEOF
14635/* end confdefs.h. */ 27882/* end confdefs.h. */
14636 27883
14637#include <sys/types.h> 27884#include <sys/types.h>
@@ -14645,30 +27892,56 @@ main ()
14645 return 0; 27892 return 0;
14646} 27893}
14647_ACEOF 27894_ACEOF
14648if ac_fn_c_try_compile "$LINENO"; then : 27895rm -f conftest.$ac_objext
27896if { (ac_try="$ac_compile"
27897case "(($ac_try" in
27898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27899 *) ac_try_echo=$ac_try;;
27900esac
27901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27902 (eval "$ac_compile") 2>conftest.er1
27903 ac_status=$?
27904 grep -v '^ *+' conftest.er1 >conftest.err
27905 rm -f conftest.er1
27906 cat conftest.err >&5
27907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908 (exit $ac_status); } && {
27909 test -z "$ac_c_werror_flag" ||
27910 test ! -s conftest.err
27911 } && test -s conftest.$ac_objext; then
14649 ac_cv_have_struct_sockaddr_in6="yes" 27912 ac_cv_have_struct_sockaddr_in6="yes"
14650else 27913else
14651 ac_cv_have_struct_sockaddr_in6="no" 27914 echo "$as_me: failed program was:" >&5
27915sed 's/^/| /' conftest.$ac_ext >&5
27916
27917 ac_cv_have_struct_sockaddr_in6="no"
14652 27918
14653fi 27919fi
27920
14654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14655 27922
14656fi 27923fi
14657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5 27924{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
14658$as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; } 27925echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; }
14659if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then 27926if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
14660 27927
14661$as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h 27928cat >>confdefs.h <<\_ACEOF
27929#define HAVE_STRUCT_SOCKADDR_IN6 1
27930_ACEOF
14662 27931
14663fi 27932fi
14664 27933
14665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5 27934{ echo "$as_me:$LINENO: checking for struct in6_addr" >&5
14666$as_echo_n "checking for struct in6_addr... " >&6; } 27935echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
14667if ${ac_cv_have_struct_in6_addr+:} false; then : 27936if test "${ac_cv_have_struct_in6_addr+set}" = set; then
14668 $as_echo_n "(cached) " >&6 27937 echo $ECHO_N "(cached) $ECHO_C" >&6
14669else 27938else
14670 27939
14671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27940 cat >conftest.$ac_ext <<_ACEOF
27941/* confdefs.h. */
27942_ACEOF
27943cat confdefs.h >>conftest.$ac_ext
27944cat >>conftest.$ac_ext <<_ACEOF
14672/* end confdefs.h. */ 27945/* end confdefs.h. */
14673 27946
14674#include <sys/types.h> 27947#include <sys/types.h>
@@ -14682,30 +27955,150 @@ main ()
14682 return 0; 27955 return 0;
14683} 27956}
14684_ACEOF 27957_ACEOF
14685if ac_fn_c_try_compile "$LINENO"; then : 27958rm -f conftest.$ac_objext
27959if { (ac_try="$ac_compile"
27960case "(($ac_try" in
27961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27962 *) ac_try_echo=$ac_try;;
27963esac
27964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27965 (eval "$ac_compile") 2>conftest.er1
27966 ac_status=$?
27967 grep -v '^ *+' conftest.er1 >conftest.err
27968 rm -f conftest.er1
27969 cat conftest.err >&5
27970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971 (exit $ac_status); } && {
27972 test -z "$ac_c_werror_flag" ||
27973 test ! -s conftest.err
27974 } && test -s conftest.$ac_objext; then
14686 ac_cv_have_struct_in6_addr="yes" 27975 ac_cv_have_struct_in6_addr="yes"
14687else 27976else
14688 ac_cv_have_struct_in6_addr="no" 27977 echo "$as_me: failed program was:" >&5
27978sed 's/^/| /' conftest.$ac_ext >&5
27979
27980 ac_cv_have_struct_in6_addr="no"
14689 27981
14690fi 27982fi
27983
14691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14692 27985
14693fi 27986fi
14694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5 27987{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
14695$as_echo "$ac_cv_have_struct_in6_addr" >&6; } 27988echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; }
14696if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then 27989if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
14697 27990
14698$as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h 27991cat >>confdefs.h <<\_ACEOF
27992#define HAVE_STRUCT_IN6_ADDR 1
27993_ACEOF
14699 27994
14700 27995
14701 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" " 27996 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
27997echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
27998if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
27999 echo $ECHO_N "(cached) $ECHO_C" >&6
28000else
28001 cat >conftest.$ac_ext <<_ACEOF
28002/* confdefs.h. */
28003_ACEOF
28004cat confdefs.h >>conftest.$ac_ext
28005cat >>conftest.$ac_ext <<_ACEOF
28006/* end confdefs.h. */
28007
14702#ifdef HAVE_SYS_TYPES_H 28008#ifdef HAVE_SYS_TYPES_H
14703#include <sys/types.h> 28009#include <sys/types.h>
14704#endif 28010#endif
14705#include <netinet/in.h> 28011#include <netinet/in.h>
14706 28012
14707" 28013
14708if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then : 28014int
28015main ()
28016{
28017static struct sockaddr_in6 ac_aggr;
28018if (ac_aggr.sin6_scope_id)
28019return 0;
28020 ;
28021 return 0;
28022}
28023_ACEOF
28024rm -f conftest.$ac_objext
28025if { (ac_try="$ac_compile"
28026case "(($ac_try" in
28027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28028 *) ac_try_echo=$ac_try;;
28029esac
28030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28031 (eval "$ac_compile") 2>conftest.er1
28032 ac_status=$?
28033 grep -v '^ *+' conftest.er1 >conftest.err
28034 rm -f conftest.er1
28035 cat conftest.err >&5
28036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28037 (exit $ac_status); } && {
28038 test -z "$ac_c_werror_flag" ||
28039 test ! -s conftest.err
28040 } && test -s conftest.$ac_objext; then
28041 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
28042else
28043 echo "$as_me: failed program was:" >&5
28044sed 's/^/| /' conftest.$ac_ext >&5
28045
28046 cat >conftest.$ac_ext <<_ACEOF
28047/* confdefs.h. */
28048_ACEOF
28049cat confdefs.h >>conftest.$ac_ext
28050cat >>conftest.$ac_ext <<_ACEOF
28051/* end confdefs.h. */
28052
28053#ifdef HAVE_SYS_TYPES_H
28054#include <sys/types.h>
28055#endif
28056#include <netinet/in.h>
28057
28058
28059int
28060main ()
28061{
28062static struct sockaddr_in6 ac_aggr;
28063if (sizeof ac_aggr.sin6_scope_id)
28064return 0;
28065 ;
28066 return 0;
28067}
28068_ACEOF
28069rm -f conftest.$ac_objext
28070if { (ac_try="$ac_compile"
28071case "(($ac_try" in
28072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28073 *) ac_try_echo=$ac_try;;
28074esac
28075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28076 (eval "$ac_compile") 2>conftest.er1
28077 ac_status=$?
28078 grep -v '^ *+' conftest.er1 >conftest.err
28079 rm -f conftest.er1
28080 cat conftest.err >&5
28081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28082 (exit $ac_status); } && {
28083 test -z "$ac_c_werror_flag" ||
28084 test ! -s conftest.err
28085 } && test -s conftest.$ac_objext; then
28086 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
28087else
28088 echo "$as_me: failed program was:" >&5
28089sed 's/^/| /' conftest.$ac_ext >&5
28090
28091 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
28092fi
28093
28094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28095fi
28096
28097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28098fi
28099{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
28100echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
28101if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
14709 28102
14710cat >>confdefs.h <<_ACEOF 28103cat >>confdefs.h <<_ACEOF
14711#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 28104#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
@@ -14716,13 +28109,17 @@ fi
14716 28109
14717fi 28110fi
14718 28111
14719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5 28112{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5
14720$as_echo_n "checking for struct addrinfo... " >&6; } 28113echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
14721if ${ac_cv_have_struct_addrinfo+:} false; then : 28114if test "${ac_cv_have_struct_addrinfo+set}" = set; then
14722 $as_echo_n "(cached) " >&6 28115 echo $ECHO_N "(cached) $ECHO_C" >&6
14723else 28116else
14724 28117
14725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28118 cat >conftest.$ac_ext <<_ACEOF
28119/* confdefs.h. */
28120_ACEOF
28121cat confdefs.h >>conftest.$ac_ext
28122cat >>conftest.$ac_ext <<_ACEOF
14726/* end confdefs.h. */ 28123/* end confdefs.h. */
14727 28124
14728#include <sys/types.h> 28125#include <sys/types.h>
@@ -14737,30 +28134,56 @@ main ()
14737 return 0; 28134 return 0;
14738} 28135}
14739_ACEOF 28136_ACEOF
14740if ac_fn_c_try_compile "$LINENO"; then : 28137rm -f conftest.$ac_objext
28138if { (ac_try="$ac_compile"
28139case "(($ac_try" in
28140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28141 *) ac_try_echo=$ac_try;;
28142esac
28143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28144 (eval "$ac_compile") 2>conftest.er1
28145 ac_status=$?
28146 grep -v '^ *+' conftest.er1 >conftest.err
28147 rm -f conftest.er1
28148 cat conftest.err >&5
28149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150 (exit $ac_status); } && {
28151 test -z "$ac_c_werror_flag" ||
28152 test ! -s conftest.err
28153 } && test -s conftest.$ac_objext; then
14741 ac_cv_have_struct_addrinfo="yes" 28154 ac_cv_have_struct_addrinfo="yes"
14742else 28155else
14743 ac_cv_have_struct_addrinfo="no" 28156 echo "$as_me: failed program was:" >&5
28157sed 's/^/| /' conftest.$ac_ext >&5
28158
28159 ac_cv_have_struct_addrinfo="no"
14744 28160
14745fi 28161fi
28162
14746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14747 28164
14748fi 28165fi
14749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5 28166{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
14750$as_echo "$ac_cv_have_struct_addrinfo" >&6; } 28167echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; }
14751if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then 28168if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
14752 28169
14753$as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h 28170cat >>confdefs.h <<\_ACEOF
28171#define HAVE_STRUCT_ADDRINFO 1
28172_ACEOF
14754 28173
14755fi 28174fi
14756 28175
14757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 28176{ echo "$as_me:$LINENO: checking for struct timeval" >&5
14758$as_echo_n "checking for struct timeval... " >&6; } 28177echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
14759if ${ac_cv_have_struct_timeval+:} false; then : 28178if test "${ac_cv_have_struct_timeval+set}" = set; then
14760 $as_echo_n "(cached) " >&6 28179 echo $ECHO_N "(cached) $ECHO_C" >&6
14761else 28180else
14762 28181
14763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28182 cat >conftest.$ac_ext <<_ACEOF
28183/* confdefs.h. */
28184_ACEOF
28185cat confdefs.h >>conftest.$ac_ext
28186cat >>conftest.$ac_ext <<_ACEOF
14764/* end confdefs.h. */ 28187/* end confdefs.h. */
14765 #include <sys/time.h> 28188 #include <sys/time.h>
14766int 28189int
@@ -14771,26 +28194,100 @@ main ()
14771 return 0; 28194 return 0;
14772} 28195}
14773_ACEOF 28196_ACEOF
14774if ac_fn_c_try_compile "$LINENO"; then : 28197rm -f conftest.$ac_objext
28198if { (ac_try="$ac_compile"
28199case "(($ac_try" in
28200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28201 *) ac_try_echo=$ac_try;;
28202esac
28203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28204 (eval "$ac_compile") 2>conftest.er1
28205 ac_status=$?
28206 grep -v '^ *+' conftest.er1 >conftest.err
28207 rm -f conftest.er1
28208 cat conftest.err >&5
28209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210 (exit $ac_status); } && {
28211 test -z "$ac_c_werror_flag" ||
28212 test ! -s conftest.err
28213 } && test -s conftest.$ac_objext; then
14775 ac_cv_have_struct_timeval="yes" 28214 ac_cv_have_struct_timeval="yes"
14776else 28215else
14777 ac_cv_have_struct_timeval="no" 28216 echo "$as_me: failed program was:" >&5
28217sed 's/^/| /' conftest.$ac_ext >&5
28218
28219 ac_cv_have_struct_timeval="no"
14778 28220
14779fi 28221fi
28222
14780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14781 28224
14782fi 28225fi
14783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5 28226{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
14784$as_echo "$ac_cv_have_struct_timeval" >&6; } 28227echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; }
14785if test "x$ac_cv_have_struct_timeval" = "xyes" ; then 28228if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
14786 28229
14787$as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h 28230cat >>confdefs.h <<\_ACEOF
28231#define HAVE_STRUCT_TIMEVAL 1
28232_ACEOF
14788 28233
14789 have_struct_timeval=1 28234 have_struct_timeval=1
14790fi 28235fi
14791 28236
14792ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default" 28237{ echo "$as_me:$LINENO: checking for struct timespec" >&5
14793if test "x$ac_cv_type_struct_timespec" = xyes; then : 28238echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
28239if test "${ac_cv_type_struct_timespec+set}" = set; then
28240 echo $ECHO_N "(cached) $ECHO_C" >&6
28241else
28242 cat >conftest.$ac_ext <<_ACEOF
28243/* confdefs.h. */
28244_ACEOF
28245cat confdefs.h >>conftest.$ac_ext
28246cat >>conftest.$ac_ext <<_ACEOF
28247/* end confdefs.h. */
28248$ac_includes_default
28249typedef struct timespec ac__type_new_;
28250int
28251main ()
28252{
28253if ((ac__type_new_ *) 0)
28254 return 0;
28255if (sizeof (ac__type_new_))
28256 return 0;
28257 ;
28258 return 0;
28259}
28260_ACEOF
28261rm -f conftest.$ac_objext
28262if { (ac_try="$ac_compile"
28263case "(($ac_try" in
28264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28265 *) ac_try_echo=$ac_try;;
28266esac
28267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28268 (eval "$ac_compile") 2>conftest.er1
28269 ac_status=$?
28270 grep -v '^ *+' conftest.er1 >conftest.err
28271 rm -f conftest.er1
28272 cat conftest.err >&5
28273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28274 (exit $ac_status); } && {
28275 test -z "$ac_c_werror_flag" ||
28276 test ! -s conftest.err
28277 } && test -s conftest.$ac_objext; then
28278 ac_cv_type_struct_timespec=yes
28279else
28280 echo "$as_me: failed program was:" >&5
28281sed 's/^/| /' conftest.$ac_ext >&5
28282
28283 ac_cv_type_struct_timespec=no
28284fi
28285
28286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28287fi
28288{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
28289echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
28290if test $ac_cv_type_struct_timespec = yes; then
14794 28291
14795cat >>confdefs.h <<_ACEOF 28292cat >>confdefs.h <<_ACEOF
14796#define HAVE_STRUCT_TIMESPEC 1 28293#define HAVE_STRUCT_TIMESPEC 1
@@ -14809,12 +28306,16 @@ if test "x$ac_cv_have_int64_t" = "xno" && \
14809 echo "" 28306 echo ""
14810 exit 1; 28307 exit 1;
14811else 28308else
14812 if test "$cross_compiling" = yes; then : 28309 if test "$cross_compiling" = yes; then
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5 28310 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
14814$as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} 28311echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
14815 28312
14816else 28313else
14817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28314 cat >conftest.$ac_ext <<_ACEOF
28315/* confdefs.h. */
28316_ACEOF
28317cat confdefs.h >>conftest.$ac_ext
28318cat >>conftest.$ac_ext <<_ACEOF
14818/* end confdefs.h. */ 28319/* end confdefs.h. */
14819 28320
14820#include <stdio.h> 28321#include <stdio.h>
@@ -14841,35 +28342,65 @@ main() { exit(0); }
14841#endif 28342#endif
14842 28343
14843_ACEOF 28344_ACEOF
14844if ac_fn_c_try_run "$LINENO"; then : 28345rm -f conftest$ac_exeext
28346if { (ac_try="$ac_link"
28347case "(($ac_try" in
28348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28349 *) ac_try_echo=$ac_try;;
28350esac
28351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28352 (eval "$ac_link") 2>&5
28353 ac_status=$?
28354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28356 { (case "(($ac_try" in
28357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28358 *) ac_try_echo=$ac_try;;
28359esac
28360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28361 (eval "$ac_try") 2>&5
28362 ac_status=$?
28363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364 (exit $ac_status); }; }; then
14845 true 28365 true
14846else 28366else
14847 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h 28367 echo "$as_me: program exited with status $ac_status" >&5
28368echo "$as_me: failed program was:" >&5
28369sed 's/^/| /' conftest.$ac_ext >&5
28370
28371( exit $ac_status )
28372 cat >>confdefs.h <<\_ACEOF
28373#define BROKEN_SNPRINTF 1
28374_ACEOF
14848 28375
14849fi 28376fi
14850rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28377rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14851 conftest.$ac_objext conftest.beam conftest.$ac_ext
14852fi 28378fi
14853 28379
28380
14854fi 28381fi
14855 28382
14856 28383
14857# look for field 'ut_host' in header 'utmp.h' 28384# look for field 'ut_host' in header 'utmp.h'
14858 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 28385 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14859 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host 28386 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5 28387 { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
14861$as_echo_n "checking for ut_host field in utmp.h... " >&6; } 28388echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; }
14862 if eval \${$ossh_varname+:} false; then : 28389 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
14863 $as_echo_n "(cached) " >&6 28390 echo $ECHO_N "(cached) $ECHO_C" >&6
14864else 28391else
14865 28392
14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28393 cat >conftest.$ac_ext <<_ACEOF
28394/* confdefs.h. */
28395_ACEOF
28396cat confdefs.h >>conftest.$ac_ext
28397cat >>conftest.$ac_ext <<_ACEOF
14867/* end confdefs.h. */ 28398/* end confdefs.h. */
14868#include <utmp.h> 28399#include <utmp.h>
14869 28400
14870_ACEOF 28401_ACEOF
14871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14872 $EGREP "ut_host" >/dev/null 2>&1; then : 28403 $EGREP "ut_host" >/dev/null 2>&1; then
14873 eval "$ossh_varname=yes" 28404 eval "$ossh_varname=yes"
14874else 28405else
14875 eval "$ossh_varname=no" 28406 eval "$ossh_varname=no"
@@ -14880,35 +28411,41 @@ fi
14880 28411
14881 ossh_result=`eval 'echo $'"$ossh_varname"` 28412 ossh_result=`eval 'echo $'"$ossh_varname"`
14882 if test -n "`echo $ossh_varname`"; then 28413 if test -n "`echo $ossh_varname`"; then
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 28414 { echo "$as_me:$LINENO: result: $ossh_result" >&5
14884$as_echo "$ossh_result" >&6; } 28415echo "${ECHO_T}$ossh_result" >&6; }
14885 if test "x$ossh_result" = "xyes"; then 28416 if test "x$ossh_result" = "xyes"; then
14886 28417
14887$as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h 28418cat >>confdefs.h <<\_ACEOF
28419#define HAVE_HOST_IN_UTMP 1
28420_ACEOF
14888 28421
14889 fi 28422 fi
14890 else 28423 else
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28424 { echo "$as_me:$LINENO: result: no" >&5
14892$as_echo "no" >&6; } 28425echo "${ECHO_T}no" >&6; }
14893 fi 28426 fi
14894 28427
14895 28428
14896# look for field 'ut_host' in header 'utmpx.h' 28429# look for field 'ut_host' in header 'utmpx.h'
14897 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 28430 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14898 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host 28431 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5 28432 { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
14900$as_echo_n "checking for ut_host field in utmpx.h... " >&6; } 28433echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; }
14901 if eval \${$ossh_varname+:} false; then : 28434 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
14902 $as_echo_n "(cached) " >&6 28435 echo $ECHO_N "(cached) $ECHO_C" >&6
14903else 28436else
14904 28437
14905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28438 cat >conftest.$ac_ext <<_ACEOF
28439/* confdefs.h. */
28440_ACEOF
28441cat confdefs.h >>conftest.$ac_ext
28442cat >>conftest.$ac_ext <<_ACEOF
14906/* end confdefs.h. */ 28443/* end confdefs.h. */
14907#include <utmpx.h> 28444#include <utmpx.h>
14908 28445
14909_ACEOF 28446_ACEOF
14910if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28447if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14911 $EGREP "ut_host" >/dev/null 2>&1; then : 28448 $EGREP "ut_host" >/dev/null 2>&1; then
14912 eval "$ossh_varname=yes" 28449 eval "$ossh_varname=yes"
14913else 28450else
14914 eval "$ossh_varname=no" 28451 eval "$ossh_varname=no"
@@ -14919,35 +28456,41 @@ fi
14919 28456
14920 ossh_result=`eval 'echo $'"$ossh_varname"` 28457 ossh_result=`eval 'echo $'"$ossh_varname"`
14921 if test -n "`echo $ossh_varname`"; then 28458 if test -n "`echo $ossh_varname`"; then
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 28459 { echo "$as_me:$LINENO: result: $ossh_result" >&5
14923$as_echo "$ossh_result" >&6; } 28460echo "${ECHO_T}$ossh_result" >&6; }
14924 if test "x$ossh_result" = "xyes"; then 28461 if test "x$ossh_result" = "xyes"; then
14925 28462
14926$as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h 28463cat >>confdefs.h <<\_ACEOF
28464#define HAVE_HOST_IN_UTMPX 1
28465_ACEOF
14927 28466
14928 fi 28467 fi
14929 else 28468 else
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28469 { echo "$as_me:$LINENO: result: no" >&5
14931$as_echo "no" >&6; } 28470echo "${ECHO_T}no" >&6; }
14932 fi 28471 fi
14933 28472
14934 28473
14935# look for field 'syslen' in header 'utmpx.h' 28474# look for field 'syslen' in header 'utmpx.h'
14936 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 28475 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
14937 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen 28476 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5 28477 { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
14939$as_echo_n "checking for syslen field in utmpx.h... " >&6; } 28478echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; }
14940 if eval \${$ossh_varname+:} false; then : 28479 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
14941 $as_echo_n "(cached) " >&6 28480 echo $ECHO_N "(cached) $ECHO_C" >&6
14942else 28481else
14943 28482
14944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28483 cat >conftest.$ac_ext <<_ACEOF
28484/* confdefs.h. */
28485_ACEOF
28486cat confdefs.h >>conftest.$ac_ext
28487cat >>conftest.$ac_ext <<_ACEOF
14945/* end confdefs.h. */ 28488/* end confdefs.h. */
14946#include <utmpx.h> 28489#include <utmpx.h>
14947 28490
14948_ACEOF 28491_ACEOF
14949if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28492if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14950 $EGREP "syslen" >/dev/null 2>&1; then : 28493 $EGREP "syslen" >/dev/null 2>&1; then
14951 eval "$ossh_varname=yes" 28494 eval "$ossh_varname=yes"
14952else 28495else
14953 eval "$ossh_varname=no" 28496 eval "$ossh_varname=no"
@@ -14958,35 +28501,41 @@ fi
14958 28501
14959 ossh_result=`eval 'echo $'"$ossh_varname"` 28502 ossh_result=`eval 'echo $'"$ossh_varname"`
14960 if test -n "`echo $ossh_varname`"; then 28503 if test -n "`echo $ossh_varname`"; then
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 28504 { echo "$as_me:$LINENO: result: $ossh_result" >&5
14962$as_echo "$ossh_result" >&6; } 28505echo "${ECHO_T}$ossh_result" >&6; }
14963 if test "x$ossh_result" = "xyes"; then 28506 if test "x$ossh_result" = "xyes"; then
14964 28507
14965$as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h 28508cat >>confdefs.h <<\_ACEOF
28509#define HAVE_SYSLEN_IN_UTMPX 1
28510_ACEOF
14966 28511
14967 fi 28512 fi
14968 else 28513 else
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28514 { echo "$as_me:$LINENO: result: no" >&5
14970$as_echo "no" >&6; } 28515echo "${ECHO_T}no" >&6; }
14971 fi 28516 fi
14972 28517
14973 28518
14974# look for field 'ut_pid' in header 'utmp.h' 28519# look for field 'ut_pid' in header 'utmp.h'
14975 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 28520 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
14976 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid 28521 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5 28522 { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
14978$as_echo_n "checking for ut_pid field in utmp.h... " >&6; } 28523echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; }
14979 if eval \${$ossh_varname+:} false; then : 28524 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
14980 $as_echo_n "(cached) " >&6 28525 echo $ECHO_N "(cached) $ECHO_C" >&6
14981else 28526else
14982 28527
14983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28528 cat >conftest.$ac_ext <<_ACEOF
28529/* confdefs.h. */
28530_ACEOF
28531cat confdefs.h >>conftest.$ac_ext
28532cat >>conftest.$ac_ext <<_ACEOF
14984/* end confdefs.h. */ 28533/* end confdefs.h. */
14985#include <utmp.h> 28534#include <utmp.h>
14986 28535
14987_ACEOF 28536_ACEOF
14988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28537if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14989 $EGREP "ut_pid" >/dev/null 2>&1; then : 28538 $EGREP "ut_pid" >/dev/null 2>&1; then
14990 eval "$ossh_varname=yes" 28539 eval "$ossh_varname=yes"
14991else 28540else
14992 eval "$ossh_varname=no" 28541 eval "$ossh_varname=no"
@@ -14997,35 +28546,41 @@ fi
14997 28546
14998 ossh_result=`eval 'echo $'"$ossh_varname"` 28547 ossh_result=`eval 'echo $'"$ossh_varname"`
14999 if test -n "`echo $ossh_varname`"; then 28548 if test -n "`echo $ossh_varname`"; then
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 28549 { echo "$as_me:$LINENO: result: $ossh_result" >&5
15001$as_echo "$ossh_result" >&6; } 28550echo "${ECHO_T}$ossh_result" >&6; }
15002 if test "x$ossh_result" = "xyes"; then 28551 if test "x$ossh_result" = "xyes"; then
15003 28552
15004$as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h 28553cat >>confdefs.h <<\_ACEOF
28554#define HAVE_PID_IN_UTMP 1
28555_ACEOF
15005 28556
15006 fi 28557 fi
15007 else 28558 else
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28559 { echo "$as_me:$LINENO: result: no" >&5
15009$as_echo "no" >&6; } 28560echo "${ECHO_T}no" >&6; }
15010 fi 28561 fi
15011 28562
15012 28563
15013# look for field 'ut_type' in header 'utmp.h' 28564# look for field 'ut_type' in header 'utmp.h'
15014 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 28565 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15015 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type 28566 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5 28567 { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
15017$as_echo_n "checking for ut_type field in utmp.h... " >&6; } 28568echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; }
15018 if eval \${$ossh_varname+:} false; then : 28569 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
15019 $as_echo_n "(cached) " >&6 28570 echo $ECHO_N "(cached) $ECHO_C" >&6
15020else 28571else
15021 28572
15022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28573 cat >conftest.$ac_ext <<_ACEOF
28574/* confdefs.h. */
28575_ACEOF
28576cat confdefs.h >>conftest.$ac_ext
28577cat >>conftest.$ac_ext <<_ACEOF
15023/* end confdefs.h. */ 28578/* end confdefs.h. */
15024#include <utmp.h> 28579#include <utmp.h>
15025 28580
15026_ACEOF 28581_ACEOF
15027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15028 $EGREP "ut_type" >/dev/null 2>&1; then : 28583 $EGREP "ut_type" >/dev/null 2>&1; then
15029 eval "$ossh_varname=yes" 28584 eval "$ossh_varname=yes"
15030else 28585else
15031 eval "$ossh_varname=no" 28586 eval "$ossh_varname=no"
@@ -15036,35 +28591,41 @@ fi
15036 28591
15037 ossh_result=`eval 'echo $'"$ossh_varname"` 28592 ossh_result=`eval 'echo $'"$ossh_varname"`
15038 if test -n "`echo $ossh_varname`"; then 28593 if test -n "`echo $ossh_varname`"; then
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 28594 { echo "$as_me:$LINENO: result: $ossh_result" >&5
15040$as_echo "$ossh_result" >&6; } 28595echo "${ECHO_T}$ossh_result" >&6; }
15041 if test "x$ossh_result" = "xyes"; then 28596 if test "x$ossh_result" = "xyes"; then
15042 28597
15043$as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h 28598cat >>confdefs.h <<\_ACEOF
28599#define HAVE_TYPE_IN_UTMP 1
28600_ACEOF
15044 28601
15045 fi 28602 fi
15046 else 28603 else
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28604 { echo "$as_me:$LINENO: result: no" >&5
15048$as_echo "no" >&6; } 28605echo "${ECHO_T}no" >&6; }
15049 fi 28606 fi
15050 28607
15051 28608
15052# look for field 'ut_type' in header 'utmpx.h' 28609# look for field 'ut_type' in header 'utmpx.h'
15053 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 28610 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15054 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type 28611 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5 28612 { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
15056$as_echo_n "checking for ut_type field in utmpx.h... " >&6; } 28613echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; }
15057 if eval \${$ossh_varname+:} false; then : 28614 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
15058 $as_echo_n "(cached) " >&6 28615 echo $ECHO_N "(cached) $ECHO_C" >&6
15059else 28616else
15060 28617
15061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28618 cat >conftest.$ac_ext <<_ACEOF
28619/* confdefs.h. */
28620_ACEOF
28621cat confdefs.h >>conftest.$ac_ext
28622cat >>conftest.$ac_ext <<_ACEOF
15062/* end confdefs.h. */ 28623/* end confdefs.h. */
15063#include <utmpx.h> 28624#include <utmpx.h>
15064 28625
15065_ACEOF 28626_ACEOF
15066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15067 $EGREP "ut_type" >/dev/null 2>&1; then : 28628 $EGREP "ut_type" >/dev/null 2>&1; then
15068 eval "$ossh_varname=yes" 28629 eval "$ossh_varname=yes"
15069else 28630else
15070 eval "$ossh_varname=no" 28631 eval "$ossh_varname=no"
@@ -15075,35 +28636,41 @@ fi
15075 28636
15076 ossh_result=`eval 'echo $'"$ossh_varname"` 28637 ossh_result=`eval 'echo $'"$ossh_varname"`
15077 if test -n "`echo $ossh_varname`"; then 28638 if test -n "`echo $ossh_varname`"; then
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 28639 { echo "$as_me:$LINENO: result: $ossh_result" >&5
15079$as_echo "$ossh_result" >&6; } 28640echo "${ECHO_T}$ossh_result" >&6; }
15080 if test "x$ossh_result" = "xyes"; then 28641 if test "x$ossh_result" = "xyes"; then
15081 28642
15082$as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h 28643cat >>confdefs.h <<\_ACEOF
28644#define HAVE_TYPE_IN_UTMPX 1
28645_ACEOF
15083 28646
15084 fi 28647 fi
15085 else 28648 else
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28649 { echo "$as_me:$LINENO: result: no" >&5
15087$as_echo "no" >&6; } 28650echo "${ECHO_T}no" >&6; }
15088 fi 28651 fi
15089 28652
15090 28653
15091# look for field 'ut_tv' in header 'utmp.h' 28654# look for field 'ut_tv' in header 'utmp.h'
15092 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 28655 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15093 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv 28656 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5 28657 { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
15095$as_echo_n "checking for ut_tv field in utmp.h... " >&6; } 28658echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; }
15096 if eval \${$ossh_varname+:} false; then : 28659 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
15097 $as_echo_n "(cached) " >&6 28660 echo $ECHO_N "(cached) $ECHO_C" >&6
15098else 28661else
15099 28662
15100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28663 cat >conftest.$ac_ext <<_ACEOF
28664/* confdefs.h. */
28665_ACEOF
28666cat confdefs.h >>conftest.$ac_ext
28667cat >>conftest.$ac_ext <<_ACEOF
15101/* end confdefs.h. */ 28668/* end confdefs.h. */
15102#include <utmp.h> 28669#include <utmp.h>
15103 28670
15104_ACEOF 28671_ACEOF
15105if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28672if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15106 $EGREP "ut_tv" >/dev/null 2>&1; then : 28673 $EGREP "ut_tv" >/dev/null 2>&1; then
15107 eval "$ossh_varname=yes" 28674 eval "$ossh_varname=yes"
15108else 28675else
15109 eval "$ossh_varname=no" 28676 eval "$ossh_varname=no"
@@ -15114,35 +28681,41 @@ fi
15114 28681
15115 ossh_result=`eval 'echo $'"$ossh_varname"` 28682 ossh_result=`eval 'echo $'"$ossh_varname"`
15116 if test -n "`echo $ossh_varname`"; then 28683 if test -n "`echo $ossh_varname`"; then
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 28684 { echo "$as_me:$LINENO: result: $ossh_result" >&5
15118$as_echo "$ossh_result" >&6; } 28685echo "${ECHO_T}$ossh_result" >&6; }
15119 if test "x$ossh_result" = "xyes"; then 28686 if test "x$ossh_result" = "xyes"; then
15120 28687
15121$as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h 28688cat >>confdefs.h <<\_ACEOF
28689#define HAVE_TV_IN_UTMP 1
28690_ACEOF
15122 28691
15123 fi 28692 fi
15124 else 28693 else
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28694 { echo "$as_me:$LINENO: result: no" >&5
15126$as_echo "no" >&6; } 28695echo "${ECHO_T}no" >&6; }
15127 fi 28696 fi
15128 28697
15129 28698
15130# look for field 'ut_id' in header 'utmp.h' 28699# look for field 'ut_id' in header 'utmp.h'
15131 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 28700 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15132 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id 28701 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5 28702 { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
15134$as_echo_n "checking for ut_id field in utmp.h... " >&6; } 28703echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; }
15135 if eval \${$ossh_varname+:} false; then : 28704 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
15136 $as_echo_n "(cached) " >&6 28705 echo $ECHO_N "(cached) $ECHO_C" >&6
15137else 28706else
15138 28707
15139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28708 cat >conftest.$ac_ext <<_ACEOF
28709/* confdefs.h. */
28710_ACEOF
28711cat confdefs.h >>conftest.$ac_ext
28712cat >>conftest.$ac_ext <<_ACEOF
15140/* end confdefs.h. */ 28713/* end confdefs.h. */
15141#include <utmp.h> 28714#include <utmp.h>
15142 28715
15143_ACEOF 28716_ACEOF
15144if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15145 $EGREP "ut_id" >/dev/null 2>&1; then : 28718 $EGREP "ut_id" >/dev/null 2>&1; then
15146 eval "$ossh_varname=yes" 28719 eval "$ossh_varname=yes"
15147else 28720else
15148 eval "$ossh_varname=no" 28721 eval "$ossh_varname=no"
@@ -15153,35 +28726,41 @@ fi
15153 28726
15154 ossh_result=`eval 'echo $'"$ossh_varname"` 28727 ossh_result=`eval 'echo $'"$ossh_varname"`
15155 if test -n "`echo $ossh_varname`"; then 28728 if test -n "`echo $ossh_varname`"; then
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 28729 { echo "$as_me:$LINENO: result: $ossh_result" >&5
15157$as_echo "$ossh_result" >&6; } 28730echo "${ECHO_T}$ossh_result" >&6; }
15158 if test "x$ossh_result" = "xyes"; then 28731 if test "x$ossh_result" = "xyes"; then
15159 28732
15160$as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h 28733cat >>confdefs.h <<\_ACEOF
28734#define HAVE_ID_IN_UTMP 1
28735_ACEOF
15161 28736
15162 fi 28737 fi
15163 else 28738 else
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28739 { echo "$as_me:$LINENO: result: no" >&5
15165$as_echo "no" >&6; } 28740echo "${ECHO_T}no" >&6; }
15166 fi 28741 fi
15167 28742
15168 28743
15169# look for field 'ut_id' in header 'utmpx.h' 28744# look for field 'ut_id' in header 'utmpx.h'
15170 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 28745 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15171 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id 28746 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5 28747 { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
15173$as_echo_n "checking for ut_id field in utmpx.h... " >&6; } 28748echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; }
15174 if eval \${$ossh_varname+:} false; then : 28749 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
15175 $as_echo_n "(cached) " >&6 28750 echo $ECHO_N "(cached) $ECHO_C" >&6
15176else 28751else
15177 28752
15178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28753 cat >conftest.$ac_ext <<_ACEOF
28754/* confdefs.h. */
28755_ACEOF
28756cat confdefs.h >>conftest.$ac_ext
28757cat >>conftest.$ac_ext <<_ACEOF
15179/* end confdefs.h. */ 28758/* end confdefs.h. */
15180#include <utmpx.h> 28759#include <utmpx.h>
15181 28760
15182_ACEOF 28761_ACEOF
15183if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28762if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15184 $EGREP "ut_id" >/dev/null 2>&1; then : 28763 $EGREP "ut_id" >/dev/null 2>&1; then
15185 eval "$ossh_varname=yes" 28764 eval "$ossh_varname=yes"
15186else 28765else
15187 eval "$ossh_varname=no" 28766 eval "$ossh_varname=no"
@@ -15192,35 +28771,41 @@ fi
15192 28771
15193 ossh_result=`eval 'echo $'"$ossh_varname"` 28772 ossh_result=`eval 'echo $'"$ossh_varname"`
15194 if test -n "`echo $ossh_varname`"; then 28773 if test -n "`echo $ossh_varname`"; then
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 28774 { echo "$as_me:$LINENO: result: $ossh_result" >&5
15196$as_echo "$ossh_result" >&6; } 28775echo "${ECHO_T}$ossh_result" >&6; }
15197 if test "x$ossh_result" = "xyes"; then 28776 if test "x$ossh_result" = "xyes"; then
15198 28777
15199$as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h 28778cat >>confdefs.h <<\_ACEOF
28779#define HAVE_ID_IN_UTMPX 1
28780_ACEOF
15200 28781
15201 fi 28782 fi
15202 else 28783 else
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28784 { echo "$as_me:$LINENO: result: no" >&5
15204$as_echo "no" >&6; } 28785echo "${ECHO_T}no" >&6; }
15205 fi 28786 fi
15206 28787
15207 28788
15208# look for field 'ut_addr' in header 'utmp.h' 28789# look for field 'ut_addr' in header 'utmp.h'
15209 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 28790 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15210 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr 28791 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5 28792 { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
15212$as_echo_n "checking for ut_addr field in utmp.h... " >&6; } 28793echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; }
15213 if eval \${$ossh_varname+:} false; then : 28794 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
15214 $as_echo_n "(cached) " >&6 28795 echo $ECHO_N "(cached) $ECHO_C" >&6
15215else 28796else
15216 28797
15217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28798 cat >conftest.$ac_ext <<_ACEOF
28799/* confdefs.h. */
28800_ACEOF
28801cat confdefs.h >>conftest.$ac_ext
28802cat >>conftest.$ac_ext <<_ACEOF
15218/* end confdefs.h. */ 28803/* end confdefs.h. */
15219#include <utmp.h> 28804#include <utmp.h>
15220 28805
15221_ACEOF 28806_ACEOF
15222if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15223 $EGREP "ut_addr" >/dev/null 2>&1; then : 28808 $EGREP "ut_addr" >/dev/null 2>&1; then
15224 eval "$ossh_varname=yes" 28809 eval "$ossh_varname=yes"
15225else 28810else
15226 eval "$ossh_varname=no" 28811 eval "$ossh_varname=no"
@@ -15231,35 +28816,41 @@ fi
15231 28816
15232 ossh_result=`eval 'echo $'"$ossh_varname"` 28817 ossh_result=`eval 'echo $'"$ossh_varname"`
15233 if test -n "`echo $ossh_varname`"; then 28818 if test -n "`echo $ossh_varname`"; then
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 28819 { echo "$as_me:$LINENO: result: $ossh_result" >&5
15235$as_echo "$ossh_result" >&6; } 28820echo "${ECHO_T}$ossh_result" >&6; }
15236 if test "x$ossh_result" = "xyes"; then 28821 if test "x$ossh_result" = "xyes"; then
15237 28822
15238$as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h 28823cat >>confdefs.h <<\_ACEOF
28824#define HAVE_ADDR_IN_UTMP 1
28825_ACEOF
15239 28826
15240 fi 28827 fi
15241 else 28828 else
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28829 { echo "$as_me:$LINENO: result: no" >&5
15243$as_echo "no" >&6; } 28830echo "${ECHO_T}no" >&6; }
15244 fi 28831 fi
15245 28832
15246 28833
15247# look for field 'ut_addr' in header 'utmpx.h' 28834# look for field 'ut_addr' in header 'utmpx.h'
15248 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 28835 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15249 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr 28836 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5 28837 { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
15251$as_echo_n "checking for ut_addr field in utmpx.h... " >&6; } 28838echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; }
15252 if eval \${$ossh_varname+:} false; then : 28839 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
15253 $as_echo_n "(cached) " >&6 28840 echo $ECHO_N "(cached) $ECHO_C" >&6
15254else 28841else
15255 28842
15256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28843 cat >conftest.$ac_ext <<_ACEOF
28844/* confdefs.h. */
28845_ACEOF
28846cat confdefs.h >>conftest.$ac_ext
28847cat >>conftest.$ac_ext <<_ACEOF
15257/* end confdefs.h. */ 28848/* end confdefs.h. */
15258#include <utmpx.h> 28849#include <utmpx.h>
15259 28850
15260_ACEOF 28851_ACEOF
15261if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15262 $EGREP "ut_addr" >/dev/null 2>&1; then : 28853 $EGREP "ut_addr" >/dev/null 2>&1; then
15263 eval "$ossh_varname=yes" 28854 eval "$ossh_varname=yes"
15264else 28855else
15265 eval "$ossh_varname=no" 28856 eval "$ossh_varname=no"
@@ -15270,35 +28861,41 @@ fi
15270 28861
15271 ossh_result=`eval 'echo $'"$ossh_varname"` 28862 ossh_result=`eval 'echo $'"$ossh_varname"`
15272 if test -n "`echo $ossh_varname`"; then 28863 if test -n "`echo $ossh_varname`"; then
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 28864 { echo "$as_me:$LINENO: result: $ossh_result" >&5
15274$as_echo "$ossh_result" >&6; } 28865echo "${ECHO_T}$ossh_result" >&6; }
15275 if test "x$ossh_result" = "xyes"; then 28866 if test "x$ossh_result" = "xyes"; then
15276 28867
15277$as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h 28868cat >>confdefs.h <<\_ACEOF
28869#define HAVE_ADDR_IN_UTMPX 1
28870_ACEOF
15278 28871
15279 fi 28872 fi
15280 else 28873 else
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28874 { echo "$as_me:$LINENO: result: no" >&5
15282$as_echo "no" >&6; } 28875echo "${ECHO_T}no" >&6; }
15283 fi 28876 fi
15284 28877
15285 28878
15286# look for field 'ut_addr_v6' in header 'utmp.h' 28879# look for field 'ut_addr_v6' in header 'utmp.h'
15287 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 28880 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15288 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 28881 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5 28882 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
15290$as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; } 28883echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; }
15291 if eval \${$ossh_varname+:} false; then : 28884 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
15292 $as_echo_n "(cached) " >&6 28885 echo $ECHO_N "(cached) $ECHO_C" >&6
15293else 28886else
15294 28887
15295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28888 cat >conftest.$ac_ext <<_ACEOF
28889/* confdefs.h. */
28890_ACEOF
28891cat confdefs.h >>conftest.$ac_ext
28892cat >>conftest.$ac_ext <<_ACEOF
15296/* end confdefs.h. */ 28893/* end confdefs.h. */
15297#include <utmp.h> 28894#include <utmp.h>
15298 28895
15299_ACEOF 28896_ACEOF
15300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28897if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15301 $EGREP "ut_addr_v6" >/dev/null 2>&1; then : 28898 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
15302 eval "$ossh_varname=yes" 28899 eval "$ossh_varname=yes"
15303else 28900else
15304 eval "$ossh_varname=no" 28901 eval "$ossh_varname=no"
@@ -15309,35 +28906,41 @@ fi
15309 28906
15310 ossh_result=`eval 'echo $'"$ossh_varname"` 28907 ossh_result=`eval 'echo $'"$ossh_varname"`
15311 if test -n "`echo $ossh_varname`"; then 28908 if test -n "`echo $ossh_varname`"; then
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 28909 { echo "$as_me:$LINENO: result: $ossh_result" >&5
15313$as_echo "$ossh_result" >&6; } 28910echo "${ECHO_T}$ossh_result" >&6; }
15314 if test "x$ossh_result" = "xyes"; then 28911 if test "x$ossh_result" = "xyes"; then
15315 28912
15316$as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h 28913cat >>confdefs.h <<\_ACEOF
28914#define HAVE_ADDR_V6_IN_UTMP 1
28915_ACEOF
15317 28916
15318 fi 28917 fi
15319 else 28918 else
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28919 { echo "$as_me:$LINENO: result: no" >&5
15321$as_echo "no" >&6; } 28920echo "${ECHO_T}no" >&6; }
15322 fi 28921 fi
15323 28922
15324 28923
15325# look for field 'ut_addr_v6' in header 'utmpx.h' 28924# look for field 'ut_addr_v6' in header 'utmpx.h'
15326 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 28925 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15327 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 28926 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5 28927 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
15329$as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; } 28928echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; }
15330 if eval \${$ossh_varname+:} false; then : 28929 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
15331 $as_echo_n "(cached) " >&6 28930 echo $ECHO_N "(cached) $ECHO_C" >&6
15332else 28931else
15333 28932
15334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28933 cat >conftest.$ac_ext <<_ACEOF
28934/* confdefs.h. */
28935_ACEOF
28936cat confdefs.h >>conftest.$ac_ext
28937cat >>conftest.$ac_ext <<_ACEOF
15335/* end confdefs.h. */ 28938/* end confdefs.h. */
15336#include <utmpx.h> 28939#include <utmpx.h>
15337 28940
15338_ACEOF 28941_ACEOF
15339if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28942if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15340 $EGREP "ut_addr_v6" >/dev/null 2>&1; then : 28943 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
15341 eval "$ossh_varname=yes" 28944 eval "$ossh_varname=yes"
15342else 28945else
15343 eval "$ossh_varname=no" 28946 eval "$ossh_varname=no"
@@ -15348,35 +28951,41 @@ fi
15348 28951
15349 ossh_result=`eval 'echo $'"$ossh_varname"` 28952 ossh_result=`eval 'echo $'"$ossh_varname"`
15350 if test -n "`echo $ossh_varname`"; then 28953 if test -n "`echo $ossh_varname`"; then
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 28954 { echo "$as_me:$LINENO: result: $ossh_result" >&5
15352$as_echo "$ossh_result" >&6; } 28955echo "${ECHO_T}$ossh_result" >&6; }
15353 if test "x$ossh_result" = "xyes"; then 28956 if test "x$ossh_result" = "xyes"; then
15354 28957
15355$as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h 28958cat >>confdefs.h <<\_ACEOF
28959#define HAVE_ADDR_V6_IN_UTMPX 1
28960_ACEOF
15356 28961
15357 fi 28962 fi
15358 else 28963 else
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28964 { echo "$as_me:$LINENO: result: no" >&5
15360$as_echo "no" >&6; } 28965echo "${ECHO_T}no" >&6; }
15361 fi 28966 fi
15362 28967
15363 28968
15364# look for field 'ut_exit' in header 'utmp.h' 28969# look for field 'ut_exit' in header 'utmp.h'
15365 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 28970 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15366 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit 28971 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5 28972 { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
15368$as_echo_n "checking for ut_exit field in utmp.h... " >&6; } 28973echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; }
15369 if eval \${$ossh_varname+:} false; then : 28974 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
15370 $as_echo_n "(cached) " >&6 28975 echo $ECHO_N "(cached) $ECHO_C" >&6
15371else 28976else
15372 28977
15373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28978 cat >conftest.$ac_ext <<_ACEOF
28979/* confdefs.h. */
28980_ACEOF
28981cat confdefs.h >>conftest.$ac_ext
28982cat >>conftest.$ac_ext <<_ACEOF
15374/* end confdefs.h. */ 28983/* end confdefs.h. */
15375#include <utmp.h> 28984#include <utmp.h>
15376 28985
15377_ACEOF 28986_ACEOF
15378if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15379 $EGREP "ut_exit" >/dev/null 2>&1; then : 28988 $EGREP "ut_exit" >/dev/null 2>&1; then
15380 eval "$ossh_varname=yes" 28989 eval "$ossh_varname=yes"
15381else 28990else
15382 eval "$ossh_varname=no" 28991 eval "$ossh_varname=no"
@@ -15387,35 +28996,41 @@ fi
15387 28996
15388 ossh_result=`eval 'echo $'"$ossh_varname"` 28997 ossh_result=`eval 'echo $'"$ossh_varname"`
15389 if test -n "`echo $ossh_varname`"; then 28998 if test -n "`echo $ossh_varname`"; then
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 28999 { echo "$as_me:$LINENO: result: $ossh_result" >&5
15391$as_echo "$ossh_result" >&6; } 29000echo "${ECHO_T}$ossh_result" >&6; }
15392 if test "x$ossh_result" = "xyes"; then 29001 if test "x$ossh_result" = "xyes"; then
15393 29002
15394$as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h 29003cat >>confdefs.h <<\_ACEOF
29004#define HAVE_EXIT_IN_UTMP 1
29005_ACEOF
15395 29006
15396 fi 29007 fi
15397 else 29008 else
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29009 { echo "$as_me:$LINENO: result: no" >&5
15399$as_echo "no" >&6; } 29010echo "${ECHO_T}no" >&6; }
15400 fi 29011 fi
15401 29012
15402 29013
15403# look for field 'ut_time' in header 'utmp.h' 29014# look for field 'ut_time' in header 'utmp.h'
15404 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 29015 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
15405 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time 29016 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5 29017 { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
15407$as_echo_n "checking for ut_time field in utmp.h... " >&6; } 29018echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; }
15408 if eval \${$ossh_varname+:} false; then : 29019 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
15409 $as_echo_n "(cached) " >&6 29020 echo $ECHO_N "(cached) $ECHO_C" >&6
15410else 29021else
15411 29022
15412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29023 cat >conftest.$ac_ext <<_ACEOF
29024/* confdefs.h. */
29025_ACEOF
29026cat confdefs.h >>conftest.$ac_ext
29027cat >>conftest.$ac_ext <<_ACEOF
15413/* end confdefs.h. */ 29028/* end confdefs.h. */
15414#include <utmp.h> 29029#include <utmp.h>
15415 29030
15416_ACEOF 29031_ACEOF
15417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29032if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15418 $EGREP "ut_time" >/dev/null 2>&1; then : 29033 $EGREP "ut_time" >/dev/null 2>&1; then
15419 eval "$ossh_varname=yes" 29034 eval "$ossh_varname=yes"
15420else 29035else
15421 eval "$ossh_varname=no" 29036 eval "$ossh_varname=no"
@@ -15426,35 +29041,41 @@ fi
15426 29041
15427 ossh_result=`eval 'echo $'"$ossh_varname"` 29042 ossh_result=`eval 'echo $'"$ossh_varname"`
15428 if test -n "`echo $ossh_varname`"; then 29043 if test -n "`echo $ossh_varname`"; then
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 29044 { echo "$as_me:$LINENO: result: $ossh_result" >&5
15430$as_echo "$ossh_result" >&6; } 29045echo "${ECHO_T}$ossh_result" >&6; }
15431 if test "x$ossh_result" = "xyes"; then 29046 if test "x$ossh_result" = "xyes"; then
15432 29047
15433$as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h 29048cat >>confdefs.h <<\_ACEOF
29049#define HAVE_TIME_IN_UTMP 1
29050_ACEOF
15434 29051
15435 fi 29052 fi
15436 else 29053 else
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29054 { echo "$as_me:$LINENO: result: no" >&5
15438$as_echo "no" >&6; } 29055echo "${ECHO_T}no" >&6; }
15439 fi 29056 fi
15440 29057
15441 29058
15442# look for field 'ut_time' in header 'utmpx.h' 29059# look for field 'ut_time' in header 'utmpx.h'
15443 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 29060 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15444 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time 29061 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5 29062 { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
15446$as_echo_n "checking for ut_time field in utmpx.h... " >&6; } 29063echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; }
15447 if eval \${$ossh_varname+:} false; then : 29064 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
15448 $as_echo_n "(cached) " >&6 29065 echo $ECHO_N "(cached) $ECHO_C" >&6
15449else 29066else
15450 29067
15451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29068 cat >conftest.$ac_ext <<_ACEOF
29069/* confdefs.h. */
29070_ACEOF
29071cat confdefs.h >>conftest.$ac_ext
29072cat >>conftest.$ac_ext <<_ACEOF
15452/* end confdefs.h. */ 29073/* end confdefs.h. */
15453#include <utmpx.h> 29074#include <utmpx.h>
15454 29075
15455_ACEOF 29076_ACEOF
15456if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29077if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15457 $EGREP "ut_time" >/dev/null 2>&1; then : 29078 $EGREP "ut_time" >/dev/null 2>&1; then
15458 eval "$ossh_varname=yes" 29079 eval "$ossh_varname=yes"
15459else 29080else
15460 eval "$ossh_varname=no" 29081 eval "$ossh_varname=no"
@@ -15465,35 +29086,41 @@ fi
15465 29086
15466 ossh_result=`eval 'echo $'"$ossh_varname"` 29087 ossh_result=`eval 'echo $'"$ossh_varname"`
15467 if test -n "`echo $ossh_varname`"; then 29088 if test -n "`echo $ossh_varname`"; then
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 29089 { echo "$as_me:$LINENO: result: $ossh_result" >&5
15469$as_echo "$ossh_result" >&6; } 29090echo "${ECHO_T}$ossh_result" >&6; }
15470 if test "x$ossh_result" = "xyes"; then 29091 if test "x$ossh_result" = "xyes"; then
15471 29092
15472$as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h 29093cat >>confdefs.h <<\_ACEOF
29094#define HAVE_TIME_IN_UTMPX 1
29095_ACEOF
15473 29096
15474 fi 29097 fi
15475 else 29098 else
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29099 { echo "$as_me:$LINENO: result: no" >&5
15477$as_echo "no" >&6; } 29100echo "${ECHO_T}no" >&6; }
15478 fi 29101 fi
15479 29102
15480 29103
15481# look for field 'ut_tv' in header 'utmpx.h' 29104# look for field 'ut_tv' in header 'utmpx.h'
15482 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 29105 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
15483 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv 29106 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5 29107 { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
15485$as_echo_n "checking for ut_tv field in utmpx.h... " >&6; } 29108echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; }
15486 if eval \${$ossh_varname+:} false; then : 29109 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
15487 $as_echo_n "(cached) " >&6 29110 echo $ECHO_N "(cached) $ECHO_C" >&6
15488else 29111else
15489 29112
15490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29113 cat >conftest.$ac_ext <<_ACEOF
29114/* confdefs.h. */
29115_ACEOF
29116cat confdefs.h >>conftest.$ac_ext
29117cat >>conftest.$ac_ext <<_ACEOF
15491/* end confdefs.h. */ 29118/* end confdefs.h. */
15492#include <utmpx.h> 29119#include <utmpx.h>
15493 29120
15494_ACEOF 29121_ACEOF
15495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29122if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15496 $EGREP "ut_tv" >/dev/null 2>&1; then : 29123 $EGREP "ut_tv" >/dev/null 2>&1; then
15497 eval "$ossh_varname=yes" 29124 eval "$ossh_varname=yes"
15498else 29125else
15499 eval "$ossh_varname=no" 29126 eval "$ossh_varname=no"
@@ -15504,21 +29131,115 @@ fi
15504 29131
15505 ossh_result=`eval 'echo $'"$ossh_varname"` 29132 ossh_result=`eval 'echo $'"$ossh_varname"`
15506 if test -n "`echo $ossh_varname`"; then 29133 if test -n "`echo $ossh_varname`"; then
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 29134 { echo "$as_me:$LINENO: result: $ossh_result" >&5
15508$as_echo "$ossh_result" >&6; } 29135echo "${ECHO_T}$ossh_result" >&6; }
15509 if test "x$ossh_result" = "xyes"; then 29136 if test "x$ossh_result" = "xyes"; then
15510 29137
15511$as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h 29138cat >>confdefs.h <<\_ACEOF
29139#define HAVE_TV_IN_UTMPX 1
29140_ACEOF
15512 29141
15513 fi 29142 fi
15514 else 29143 else
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29144 { echo "$as_me:$LINENO: result: no" >&5
15516$as_echo "no" >&6; } 29145echo "${ECHO_T}no" >&6; }
15517 fi 29146 fi
15518 29147
15519 29148
15520ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" 29149{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
15521if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : 29150echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
29151if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
29152 echo $ECHO_N "(cached) $ECHO_C" >&6
29153else
29154 cat >conftest.$ac_ext <<_ACEOF
29155/* confdefs.h. */
29156_ACEOF
29157cat confdefs.h >>conftest.$ac_ext
29158cat >>conftest.$ac_ext <<_ACEOF
29159/* end confdefs.h. */
29160$ac_includes_default
29161int
29162main ()
29163{
29164static struct stat ac_aggr;
29165if (ac_aggr.st_blksize)
29166return 0;
29167 ;
29168 return 0;
29169}
29170_ACEOF
29171rm -f conftest.$ac_objext
29172if { (ac_try="$ac_compile"
29173case "(($ac_try" in
29174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29175 *) ac_try_echo=$ac_try;;
29176esac
29177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29178 (eval "$ac_compile") 2>conftest.er1
29179 ac_status=$?
29180 grep -v '^ *+' conftest.er1 >conftest.err
29181 rm -f conftest.er1
29182 cat conftest.err >&5
29183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184 (exit $ac_status); } && {
29185 test -z "$ac_c_werror_flag" ||
29186 test ! -s conftest.err
29187 } && test -s conftest.$ac_objext; then
29188 ac_cv_member_struct_stat_st_blksize=yes
29189else
29190 echo "$as_me: failed program was:" >&5
29191sed 's/^/| /' conftest.$ac_ext >&5
29192
29193 cat >conftest.$ac_ext <<_ACEOF
29194/* confdefs.h. */
29195_ACEOF
29196cat confdefs.h >>conftest.$ac_ext
29197cat >>conftest.$ac_ext <<_ACEOF
29198/* end confdefs.h. */
29199$ac_includes_default
29200int
29201main ()
29202{
29203static struct stat ac_aggr;
29204if (sizeof ac_aggr.st_blksize)
29205return 0;
29206 ;
29207 return 0;
29208}
29209_ACEOF
29210rm -f conftest.$ac_objext
29211if { (ac_try="$ac_compile"
29212case "(($ac_try" in
29213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29214 *) ac_try_echo=$ac_try;;
29215esac
29216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29217 (eval "$ac_compile") 2>conftest.er1
29218 ac_status=$?
29219 grep -v '^ *+' conftest.er1 >conftest.err
29220 rm -f conftest.er1
29221 cat conftest.err >&5
29222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223 (exit $ac_status); } && {
29224 test -z "$ac_c_werror_flag" ||
29225 test ! -s conftest.err
29226 } && test -s conftest.$ac_objext; then
29227 ac_cv_member_struct_stat_st_blksize=yes
29228else
29229 echo "$as_me: failed program was:" >&5
29230sed 's/^/| /' conftest.$ac_ext >&5
29231
29232 ac_cv_member_struct_stat_st_blksize=no
29233fi
29234
29235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29236fi
29237
29238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29239fi
29240{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
29241echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
29242if test $ac_cv_member_struct_stat_st_blksize = yes; then
15522 29243
15523cat >>confdefs.h <<_ACEOF 29244cat >>confdefs.h <<_ACEOF
15524#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 29245#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
@@ -15527,12 +29248,108 @@ _ACEOF
15527 29248
15528fi 29249fi
15529 29250
15530ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " 29251{ echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
29252echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
29253if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
29254 echo $ECHO_N "(cached) $ECHO_C" >&6
29255else
29256 cat >conftest.$ac_ext <<_ACEOF
29257/* confdefs.h. */
29258_ACEOF
29259cat confdefs.h >>conftest.$ac_ext
29260cat >>conftest.$ac_ext <<_ACEOF
29261/* end confdefs.h. */
29262
15531#include <sys/types.h> 29263#include <sys/types.h>
15532#include <pwd.h> 29264#include <pwd.h>
15533 29265
15534" 29266
15535if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : 29267int
29268main ()
29269{
29270static struct passwd ac_aggr;
29271if (ac_aggr.pw_gecos)
29272return 0;
29273 ;
29274 return 0;
29275}
29276_ACEOF
29277rm -f conftest.$ac_objext
29278if { (ac_try="$ac_compile"
29279case "(($ac_try" in
29280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29281 *) ac_try_echo=$ac_try;;
29282esac
29283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29284 (eval "$ac_compile") 2>conftest.er1
29285 ac_status=$?
29286 grep -v '^ *+' conftest.er1 >conftest.err
29287 rm -f conftest.er1
29288 cat conftest.err >&5
29289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290 (exit $ac_status); } && {
29291 test -z "$ac_c_werror_flag" ||
29292 test ! -s conftest.err
29293 } && test -s conftest.$ac_objext; then
29294 ac_cv_member_struct_passwd_pw_gecos=yes
29295else
29296 echo "$as_me: failed program was:" >&5
29297sed 's/^/| /' conftest.$ac_ext >&5
29298
29299 cat >conftest.$ac_ext <<_ACEOF
29300/* confdefs.h. */
29301_ACEOF
29302cat confdefs.h >>conftest.$ac_ext
29303cat >>conftest.$ac_ext <<_ACEOF
29304/* end confdefs.h. */
29305
29306#include <sys/types.h>
29307#include <pwd.h>
29308
29309
29310int
29311main ()
29312{
29313static struct passwd ac_aggr;
29314if (sizeof ac_aggr.pw_gecos)
29315return 0;
29316 ;
29317 return 0;
29318}
29319_ACEOF
29320rm -f conftest.$ac_objext
29321if { (ac_try="$ac_compile"
29322case "(($ac_try" in
29323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29324 *) ac_try_echo=$ac_try;;
29325esac
29326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29327 (eval "$ac_compile") 2>conftest.er1
29328 ac_status=$?
29329 grep -v '^ *+' conftest.er1 >conftest.err
29330 rm -f conftest.er1
29331 cat conftest.err >&5
29332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333 (exit $ac_status); } && {
29334 test -z "$ac_c_werror_flag" ||
29335 test ! -s conftest.err
29336 } && test -s conftest.$ac_objext; then
29337 ac_cv_member_struct_passwd_pw_gecos=yes
29338else
29339 echo "$as_me: failed program was:" >&5
29340sed 's/^/| /' conftest.$ac_ext >&5
29341
29342 ac_cv_member_struct_passwd_pw_gecos=no
29343fi
29344
29345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29346fi
29347
29348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29349fi
29350{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
29351echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
29352if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
15536 29353
15537cat >>confdefs.h <<_ACEOF 29354cat >>confdefs.h <<_ACEOF
15538#define HAVE_STRUCT_PASSWD_PW_GECOS 1 29355#define HAVE_STRUCT_PASSWD_PW_GECOS 1
@@ -15540,12 +29357,108 @@ _ACEOF
15540 29357
15541 29358
15542fi 29359fi
15543ac_fn_c_check_member "$LINENO" "struct passwd" "pw_class" "ac_cv_member_struct_passwd_pw_class" " 29360{ echo "$as_me:$LINENO: checking for struct passwd.pw_class" >&5
29361echo $ECHO_N "checking for struct passwd.pw_class... $ECHO_C" >&6; }
29362if test "${ac_cv_member_struct_passwd_pw_class+set}" = set; then
29363 echo $ECHO_N "(cached) $ECHO_C" >&6
29364else
29365 cat >conftest.$ac_ext <<_ACEOF
29366/* confdefs.h. */
29367_ACEOF
29368cat confdefs.h >>conftest.$ac_ext
29369cat >>conftest.$ac_ext <<_ACEOF
29370/* end confdefs.h. */
29371
29372#include <sys/types.h>
29373#include <pwd.h>
29374
29375
29376int
29377main ()
29378{
29379static struct passwd ac_aggr;
29380if (ac_aggr.pw_class)
29381return 0;
29382 ;
29383 return 0;
29384}
29385_ACEOF
29386rm -f conftest.$ac_objext
29387if { (ac_try="$ac_compile"
29388case "(($ac_try" in
29389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29390 *) ac_try_echo=$ac_try;;
29391esac
29392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29393 (eval "$ac_compile") 2>conftest.er1
29394 ac_status=$?
29395 grep -v '^ *+' conftest.er1 >conftest.err
29396 rm -f conftest.er1
29397 cat conftest.err >&5
29398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399 (exit $ac_status); } && {
29400 test -z "$ac_c_werror_flag" ||
29401 test ! -s conftest.err
29402 } && test -s conftest.$ac_objext; then
29403 ac_cv_member_struct_passwd_pw_class=yes
29404else
29405 echo "$as_me: failed program was:" >&5
29406sed 's/^/| /' conftest.$ac_ext >&5
29407
29408 cat >conftest.$ac_ext <<_ACEOF
29409/* confdefs.h. */
29410_ACEOF
29411cat confdefs.h >>conftest.$ac_ext
29412cat >>conftest.$ac_ext <<_ACEOF
29413/* end confdefs.h. */
29414
15544#include <sys/types.h> 29415#include <sys/types.h>
15545#include <pwd.h> 29416#include <pwd.h>
15546 29417
15547" 29418
15548if test "x$ac_cv_member_struct_passwd_pw_class" = xyes; then : 29419int
29420main ()
29421{
29422static struct passwd ac_aggr;
29423if (sizeof ac_aggr.pw_class)
29424return 0;
29425 ;
29426 return 0;
29427}
29428_ACEOF
29429rm -f conftest.$ac_objext
29430if { (ac_try="$ac_compile"
29431case "(($ac_try" in
29432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29433 *) ac_try_echo=$ac_try;;
29434esac
29435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29436 (eval "$ac_compile") 2>conftest.er1
29437 ac_status=$?
29438 grep -v '^ *+' conftest.er1 >conftest.err
29439 rm -f conftest.er1
29440 cat conftest.err >&5
29441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442 (exit $ac_status); } && {
29443 test -z "$ac_c_werror_flag" ||
29444 test ! -s conftest.err
29445 } && test -s conftest.$ac_objext; then
29446 ac_cv_member_struct_passwd_pw_class=yes
29447else
29448 echo "$as_me: failed program was:" >&5
29449sed 's/^/| /' conftest.$ac_ext >&5
29450
29451 ac_cv_member_struct_passwd_pw_class=no
29452fi
29453
29454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29455fi
29456
29457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29458fi
29459{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_class" >&5
29460echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_class" >&6; }
29461if test $ac_cv_member_struct_passwd_pw_class = yes; then
15549 29462
15550cat >>confdefs.h <<_ACEOF 29463cat >>confdefs.h <<_ACEOF
15551#define HAVE_STRUCT_PASSWD_PW_CLASS 1 29464#define HAVE_STRUCT_PASSWD_PW_CLASS 1
@@ -15553,12 +29466,108 @@ _ACEOF
15553 29466
15554 29467
15555fi 29468fi
15556ac_fn_c_check_member "$LINENO" "struct passwd" "pw_change" "ac_cv_member_struct_passwd_pw_change" " 29469{ echo "$as_me:$LINENO: checking for struct passwd.pw_change" >&5
29470echo $ECHO_N "checking for struct passwd.pw_change... $ECHO_C" >&6; }
29471if test "${ac_cv_member_struct_passwd_pw_change+set}" = set; then
29472 echo $ECHO_N "(cached) $ECHO_C" >&6
29473else
29474 cat >conftest.$ac_ext <<_ACEOF
29475/* confdefs.h. */
29476_ACEOF
29477cat confdefs.h >>conftest.$ac_ext
29478cat >>conftest.$ac_ext <<_ACEOF
29479/* end confdefs.h. */
29480
15557#include <sys/types.h> 29481#include <sys/types.h>
15558#include <pwd.h> 29482#include <pwd.h>
15559 29483
15560" 29484
15561if test "x$ac_cv_member_struct_passwd_pw_change" = xyes; then : 29485int
29486main ()
29487{
29488static struct passwd ac_aggr;
29489if (ac_aggr.pw_change)
29490return 0;
29491 ;
29492 return 0;
29493}
29494_ACEOF
29495rm -f conftest.$ac_objext
29496if { (ac_try="$ac_compile"
29497case "(($ac_try" in
29498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29499 *) ac_try_echo=$ac_try;;
29500esac
29501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29502 (eval "$ac_compile") 2>conftest.er1
29503 ac_status=$?
29504 grep -v '^ *+' conftest.er1 >conftest.err
29505 rm -f conftest.er1
29506 cat conftest.err >&5
29507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29508 (exit $ac_status); } && {
29509 test -z "$ac_c_werror_flag" ||
29510 test ! -s conftest.err
29511 } && test -s conftest.$ac_objext; then
29512 ac_cv_member_struct_passwd_pw_change=yes
29513else
29514 echo "$as_me: failed program was:" >&5
29515sed 's/^/| /' conftest.$ac_ext >&5
29516
29517 cat >conftest.$ac_ext <<_ACEOF
29518/* confdefs.h. */
29519_ACEOF
29520cat confdefs.h >>conftest.$ac_ext
29521cat >>conftest.$ac_ext <<_ACEOF
29522/* end confdefs.h. */
29523
29524#include <sys/types.h>
29525#include <pwd.h>
29526
29527
29528int
29529main ()
29530{
29531static struct passwd ac_aggr;
29532if (sizeof ac_aggr.pw_change)
29533return 0;
29534 ;
29535 return 0;
29536}
29537_ACEOF
29538rm -f conftest.$ac_objext
29539if { (ac_try="$ac_compile"
29540case "(($ac_try" in
29541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29542 *) ac_try_echo=$ac_try;;
29543esac
29544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29545 (eval "$ac_compile") 2>conftest.er1
29546 ac_status=$?
29547 grep -v '^ *+' conftest.er1 >conftest.err
29548 rm -f conftest.er1
29549 cat conftest.err >&5
29550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551 (exit $ac_status); } && {
29552 test -z "$ac_c_werror_flag" ||
29553 test ! -s conftest.err
29554 } && test -s conftest.$ac_objext; then
29555 ac_cv_member_struct_passwd_pw_change=yes
29556else
29557 echo "$as_me: failed program was:" >&5
29558sed 's/^/| /' conftest.$ac_ext >&5
29559
29560 ac_cv_member_struct_passwd_pw_change=no
29561fi
29562
29563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29564fi
29565
29566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29567fi
29568{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_change" >&5
29569echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_change" >&6; }
29570if test $ac_cv_member_struct_passwd_pw_change = yes; then
15562 29571
15563cat >>confdefs.h <<_ACEOF 29572cat >>confdefs.h <<_ACEOF
15564#define HAVE_STRUCT_PASSWD_PW_CHANGE 1 29573#define HAVE_STRUCT_PASSWD_PW_CHANGE 1
@@ -15566,12 +29575,108 @@ _ACEOF
15566 29575
15567 29576
15568fi 29577fi
15569ac_fn_c_check_member "$LINENO" "struct passwd" "pw_expire" "ac_cv_member_struct_passwd_pw_expire" " 29578{ echo "$as_me:$LINENO: checking for struct passwd.pw_expire" >&5
29579echo $ECHO_N "checking for struct passwd.pw_expire... $ECHO_C" >&6; }
29580if test "${ac_cv_member_struct_passwd_pw_expire+set}" = set; then
29581 echo $ECHO_N "(cached) $ECHO_C" >&6
29582else
29583 cat >conftest.$ac_ext <<_ACEOF
29584/* confdefs.h. */
29585_ACEOF
29586cat confdefs.h >>conftest.$ac_ext
29587cat >>conftest.$ac_ext <<_ACEOF
29588/* end confdefs.h. */
29589
15570#include <sys/types.h> 29590#include <sys/types.h>
15571#include <pwd.h> 29591#include <pwd.h>
15572 29592
15573" 29593
15574if test "x$ac_cv_member_struct_passwd_pw_expire" = xyes; then : 29594int
29595main ()
29596{
29597static struct passwd ac_aggr;
29598if (ac_aggr.pw_expire)
29599return 0;
29600 ;
29601 return 0;
29602}
29603_ACEOF
29604rm -f conftest.$ac_objext
29605if { (ac_try="$ac_compile"
29606case "(($ac_try" in
29607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29608 *) ac_try_echo=$ac_try;;
29609esac
29610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29611 (eval "$ac_compile") 2>conftest.er1
29612 ac_status=$?
29613 grep -v '^ *+' conftest.er1 >conftest.err
29614 rm -f conftest.er1
29615 cat conftest.err >&5
29616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617 (exit $ac_status); } && {
29618 test -z "$ac_c_werror_flag" ||
29619 test ! -s conftest.err
29620 } && test -s conftest.$ac_objext; then
29621 ac_cv_member_struct_passwd_pw_expire=yes
29622else
29623 echo "$as_me: failed program was:" >&5
29624sed 's/^/| /' conftest.$ac_ext >&5
29625
29626 cat >conftest.$ac_ext <<_ACEOF
29627/* confdefs.h. */
29628_ACEOF
29629cat confdefs.h >>conftest.$ac_ext
29630cat >>conftest.$ac_ext <<_ACEOF
29631/* end confdefs.h. */
29632
29633#include <sys/types.h>
29634#include <pwd.h>
29635
29636
29637int
29638main ()
29639{
29640static struct passwd ac_aggr;
29641if (sizeof ac_aggr.pw_expire)
29642return 0;
29643 ;
29644 return 0;
29645}
29646_ACEOF
29647rm -f conftest.$ac_objext
29648if { (ac_try="$ac_compile"
29649case "(($ac_try" in
29650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29651 *) ac_try_echo=$ac_try;;
29652esac
29653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29654 (eval "$ac_compile") 2>conftest.er1
29655 ac_status=$?
29656 grep -v '^ *+' conftest.er1 >conftest.err
29657 rm -f conftest.er1
29658 cat conftest.err >&5
29659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660 (exit $ac_status); } && {
29661 test -z "$ac_c_werror_flag" ||
29662 test ! -s conftest.err
29663 } && test -s conftest.$ac_objext; then
29664 ac_cv_member_struct_passwd_pw_expire=yes
29665else
29666 echo "$as_me: failed program was:" >&5
29667sed 's/^/| /' conftest.$ac_ext >&5
29668
29669 ac_cv_member_struct_passwd_pw_expire=no
29670fi
29671
29672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29673fi
29674
29675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29676fi
29677{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_expire" >&5
29678echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_expire" >&6; }
29679if test $ac_cv_member_struct_passwd_pw_expire = yes; then
15575 29680
15576cat >>confdefs.h <<_ACEOF 29681cat >>confdefs.h <<_ACEOF
15577#define HAVE_STRUCT_PASSWD_PW_EXPIRE 1 29682#define HAVE_STRUCT_PASSWD_PW_EXPIRE 1
@@ -15581,7 +29686,18 @@ _ACEOF
15581fi 29686fi
15582 29687
15583 29688
15584ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" " 29689{ echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5
29690echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; }
29691if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then
29692 echo $ECHO_N "(cached) $ECHO_C" >&6
29693else
29694 cat >conftest.$ac_ext <<_ACEOF
29695/* confdefs.h. */
29696_ACEOF
29697cat confdefs.h >>conftest.$ac_ext
29698cat >>conftest.$ac_ext <<_ACEOF
29699/* end confdefs.h. */
29700
15585#include <stdio.h> 29701#include <stdio.h>
15586#if HAVE_SYS_TYPES_H 29702#if HAVE_SYS_TYPES_H
15587# include <sys/types.h> 29703# include <sys/types.h>
@@ -15590,23 +29706,119 @@ ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_stru
15590#include <arpa/nameser.h> 29706#include <arpa/nameser.h>
15591#include <resolv.h> 29707#include <resolv.h>
15592 29708
15593"
15594if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then :
15595 29709
29710int
29711main ()
29712{
29713static struct __res_state ac_aggr;
29714if (ac_aggr.retrans)
29715return 0;
29716 ;
29717 return 0;
29718}
29719_ACEOF
29720rm -f conftest.$ac_objext
29721if { (ac_try="$ac_compile"
29722case "(($ac_try" in
29723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29724 *) ac_try_echo=$ac_try;;
29725esac
29726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29727 (eval "$ac_compile") 2>conftest.er1
29728 ac_status=$?
29729 grep -v '^ *+' conftest.er1 >conftest.err
29730 rm -f conftest.er1
29731 cat conftest.err >&5
29732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733 (exit $ac_status); } && {
29734 test -z "$ac_c_werror_flag" ||
29735 test ! -s conftest.err
29736 } && test -s conftest.$ac_objext; then
29737 ac_cv_member_struct___res_state_retrans=yes
29738else
29739 echo "$as_me: failed program was:" >&5
29740sed 's/^/| /' conftest.$ac_ext >&5
29741
29742 cat >conftest.$ac_ext <<_ACEOF
29743/* confdefs.h. */
29744_ACEOF
29745cat confdefs.h >>conftest.$ac_ext
29746cat >>conftest.$ac_ext <<_ACEOF
29747/* end confdefs.h. */
29748
29749#include <stdio.h>
29750#if HAVE_SYS_TYPES_H
29751# include <sys/types.h>
29752#endif
29753#include <netinet/in.h>
29754#include <arpa/nameser.h>
29755#include <resolv.h>
29756
29757
29758int
29759main ()
29760{
29761static struct __res_state ac_aggr;
29762if (sizeof ac_aggr.retrans)
29763return 0;
29764 ;
29765 return 0;
29766}
29767_ACEOF
29768rm -f conftest.$ac_objext
29769if { (ac_try="$ac_compile"
29770case "(($ac_try" in
29771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29772 *) ac_try_echo=$ac_try;;
29773esac
29774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29775 (eval "$ac_compile") 2>conftest.er1
29776 ac_status=$?
29777 grep -v '^ *+' conftest.er1 >conftest.err
29778 rm -f conftest.er1
29779 cat conftest.err >&5
29780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29781 (exit $ac_status); } && {
29782 test -z "$ac_c_werror_flag" ||
29783 test ! -s conftest.err
29784 } && test -s conftest.$ac_objext; then
29785 ac_cv_member_struct___res_state_retrans=yes
15596else 29786else
29787 echo "$as_me: failed program was:" >&5
29788sed 's/^/| /' conftest.$ac_ext >&5
15597 29789
15598$as_echo "#define __res_state state" >>confdefs.h 29790 ac_cv_member_struct___res_state_retrans=no
29791fi
15599 29792
29793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15600fi 29794fi
15601 29795
29796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29797fi
29798{ echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5
29799echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; }
29800if test $ac_cv_member_struct___res_state_retrans = yes; then
29801 :
29802else
29803
29804cat >>confdefs.h <<\_ACEOF
29805#define __res_state state
29806_ACEOF
29807
29808fi
15602 29809
15603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5 29810
15604$as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; } 29811{ echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
15605if ${ac_cv_have_ss_family_in_struct_ss+:} false; then : 29812echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
15606 $as_echo_n "(cached) " >&6 29813if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
29814 echo $ECHO_N "(cached) $ECHO_C" >&6
15607else 29815else
15608 29816
15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29817 cat >conftest.$ac_ext <<_ACEOF
29818/* confdefs.h. */
29819_ACEOF
29820cat confdefs.h >>conftest.$ac_ext
29821cat >>conftest.$ac_ext <<_ACEOF
15610/* end confdefs.h. */ 29822/* end confdefs.h. */
15611 29823
15612#include <sys/types.h> 29824#include <sys/types.h>
@@ -15620,29 +29832,55 @@ main ()
15620 return 0; 29832 return 0;
15621} 29833}
15622_ACEOF 29834_ACEOF
15623if ac_fn_c_try_compile "$LINENO"; then : 29835rm -f conftest.$ac_objext
29836if { (ac_try="$ac_compile"
29837case "(($ac_try" in
29838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29839 *) ac_try_echo=$ac_try;;
29840esac
29841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29842 (eval "$ac_compile") 2>conftest.er1
29843 ac_status=$?
29844 grep -v '^ *+' conftest.er1 >conftest.err
29845 rm -f conftest.er1
29846 cat conftest.err >&5
29847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29848 (exit $ac_status); } && {
29849 test -z "$ac_c_werror_flag" ||
29850 test ! -s conftest.err
29851 } && test -s conftest.$ac_objext; then
15624 ac_cv_have_ss_family_in_struct_ss="yes" 29852 ac_cv_have_ss_family_in_struct_ss="yes"
15625else 29853else
15626 ac_cv_have_ss_family_in_struct_ss="no" 29854 echo "$as_me: failed program was:" >&5
29855sed 's/^/| /' conftest.$ac_ext >&5
29856
29857 ac_cv_have_ss_family_in_struct_ss="no"
15627fi 29858fi
29859
15628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15629 29861
15630fi 29862fi
15631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5 29863{ echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
15632$as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; } 29864echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; }
15633if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then 29865if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
15634 29866
15635$as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h 29867cat >>confdefs.h <<\_ACEOF
29868#define HAVE_SS_FAMILY_IN_SS 1
29869_ACEOF
15636 29870
15637fi 29871fi
15638 29872
15639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5 29873{ echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
15640$as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; } 29874echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
15641if ${ac_cv_have___ss_family_in_struct_ss+:} false; then : 29875if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
15642 $as_echo_n "(cached) " >&6 29876 echo $ECHO_N "(cached) $ECHO_C" >&6
15643else 29877else
15644 29878
15645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29879 cat >conftest.$ac_ext <<_ACEOF
29880/* confdefs.h. */
29881_ACEOF
29882cat confdefs.h >>conftest.$ac_ext
29883cat >>conftest.$ac_ext <<_ACEOF
15646/* end confdefs.h. */ 29884/* end confdefs.h. */
15647 29885
15648#include <sys/types.h> 29886#include <sys/types.h>
@@ -15656,30 +29894,56 @@ main ()
15656 return 0; 29894 return 0;
15657} 29895}
15658_ACEOF 29896_ACEOF
15659if ac_fn_c_try_compile "$LINENO"; then : 29897rm -f conftest.$ac_objext
29898if { (ac_try="$ac_compile"
29899case "(($ac_try" in
29900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29901 *) ac_try_echo=$ac_try;;
29902esac
29903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29904 (eval "$ac_compile") 2>conftest.er1
29905 ac_status=$?
29906 grep -v '^ *+' conftest.er1 >conftest.err
29907 rm -f conftest.er1
29908 cat conftest.err >&5
29909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29910 (exit $ac_status); } && {
29911 test -z "$ac_c_werror_flag" ||
29912 test ! -s conftest.err
29913 } && test -s conftest.$ac_objext; then
15660 ac_cv_have___ss_family_in_struct_ss="yes" 29914 ac_cv_have___ss_family_in_struct_ss="yes"
15661else 29915else
15662 ac_cv_have___ss_family_in_struct_ss="no" 29916 echo "$as_me: failed program was:" >&5
29917sed 's/^/| /' conftest.$ac_ext >&5
29918
29919 ac_cv_have___ss_family_in_struct_ss="no"
15663 29920
15664fi 29921fi
29922
15665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15666 29924
15667fi 29925fi
15668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5 29926{ echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
15669$as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; } 29927echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; }
15670if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then 29928if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
15671 29929
15672$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h 29930cat >>confdefs.h <<\_ACEOF
29931#define HAVE___SS_FAMILY_IN_SS 1
29932_ACEOF
15673 29933
15674fi 29934fi
15675 29935
15676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5 29936{ echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
15677$as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; } 29937echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; }
15678if ${ac_cv_have_accrights_in_msghdr+:} false; then : 29938if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
15679 $as_echo_n "(cached) " >&6 29939 echo $ECHO_N "(cached) $ECHO_C" >&6
15680else 29940else
15681 29941
15682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29942 cat >conftest.$ac_ext <<_ACEOF
29943/* confdefs.h. */
29944_ACEOF
29945cat confdefs.h >>conftest.$ac_ext
29946cat >>conftest.$ac_ext <<_ACEOF
15683/* end confdefs.h. */ 29947/* end confdefs.h. */
15684 29948
15685#include <sys/types.h> 29949#include <sys/types.h>
@@ -15702,26 +29966,52 @@ exit(0);
15702 return 0; 29966 return 0;
15703} 29967}
15704_ACEOF 29968_ACEOF
15705if ac_fn_c_try_compile "$LINENO"; then : 29969rm -f conftest.$ac_objext
29970if { (ac_try="$ac_compile"
29971case "(($ac_try" in
29972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29973 *) ac_try_echo=$ac_try;;
29974esac
29975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29976 (eval "$ac_compile") 2>conftest.er1
29977 ac_status=$?
29978 grep -v '^ *+' conftest.er1 >conftest.err
29979 rm -f conftest.er1
29980 cat conftest.err >&5
29981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982 (exit $ac_status); } && {
29983 test -z "$ac_c_werror_flag" ||
29984 test ! -s conftest.err
29985 } && test -s conftest.$ac_objext; then
15706 ac_cv_have_accrights_in_msghdr="yes" 29986 ac_cv_have_accrights_in_msghdr="yes"
15707else 29987else
15708 ac_cv_have_accrights_in_msghdr="no" 29988 echo "$as_me: failed program was:" >&5
29989sed 's/^/| /' conftest.$ac_ext >&5
29990
29991 ac_cv_have_accrights_in_msghdr="no"
15709 29992
15710fi 29993fi
29994
15711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15712 29996
15713fi 29997fi
15714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5 29998{ echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
15715$as_echo "$ac_cv_have_accrights_in_msghdr" >&6; } 29999echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; }
15716if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then 30000if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
15717 30001
15718$as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h 30002cat >>confdefs.h <<\_ACEOF
30003#define HAVE_ACCRIGHTS_IN_MSGHDR 1
30004_ACEOF
15719 30005
15720fi 30006fi
15721 30007
15722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5 30008{ echo "$as_me:$LINENO: checking if struct statvfs.f_fsid is integral type" >&5
15723$as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; } 30009echo $ECHO_N "checking if struct statvfs.f_fsid is integral type... $ECHO_C" >&6; }
15724cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30010cat >conftest.$ac_ext <<_ACEOF
30011/* confdefs.h. */
30012_ACEOF
30013cat confdefs.h >>conftest.$ac_ext
30014cat >>conftest.$ac_ext <<_ACEOF
15725/* end confdefs.h. */ 30015/* end confdefs.h. */
15726 30016
15727#include <sys/param.h> 30017#include <sys/param.h>
@@ -15744,16 +30034,39 @@ main ()
15744 return 0; 30034 return 0;
15745} 30035}
15746_ACEOF 30036_ACEOF
15747if ac_fn_c_try_compile "$LINENO"; then : 30037rm -f conftest.$ac_objext
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30038if { (ac_try="$ac_compile"
15749$as_echo "yes" >&6; } 30039case "(($ac_try" in
30040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30041 *) ac_try_echo=$ac_try;;
30042esac
30043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30044 (eval "$ac_compile") 2>conftest.er1
30045 ac_status=$?
30046 grep -v '^ *+' conftest.er1 >conftest.err
30047 rm -f conftest.er1
30048 cat conftest.err >&5
30049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30050 (exit $ac_status); } && {
30051 test -z "$ac_c_werror_flag" ||
30052 test ! -s conftest.err
30053 } && test -s conftest.$ac_objext; then
30054 { echo "$as_me:$LINENO: result: yes" >&5
30055echo "${ECHO_T}yes" >&6; }
15750else 30056else
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30057 echo "$as_me: failed program was:" >&5
15752$as_echo "no" >&6; } 30058sed 's/^/| /' conftest.$ac_ext >&5
30059
30060 { echo "$as_me:$LINENO: result: no" >&5
30061echo "${ECHO_T}no" >&6; }
15753 30062
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5 30063 { echo "$as_me:$LINENO: checking if fsid_t has member val" >&5
15755$as_echo_n "checking if fsid_t has member val... " >&6; } 30064echo $ECHO_N "checking if fsid_t has member val... $ECHO_C" >&6; }
15756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30065 cat >conftest.$ac_ext <<_ACEOF
30066/* confdefs.h. */
30067_ACEOF
30068cat confdefs.h >>conftest.$ac_ext
30069cat >>conftest.$ac_ext <<_ACEOF
15757/* end confdefs.h. */ 30070/* end confdefs.h. */
15758 30071
15759#include <sys/types.h> 30072#include <sys/types.h>
@@ -15767,21 +30080,47 @@ main ()
15767 return 0; 30080 return 0;
15768} 30081}
15769_ACEOF 30082_ACEOF
15770if ac_fn_c_try_compile "$LINENO"; then : 30083rm -f conftest.$ac_objext
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30084if { (ac_try="$ac_compile"
15772$as_echo "yes" >&6; } 30085case "(($ac_try" in
30086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30087 *) ac_try_echo=$ac_try;;
30088esac
30089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30090 (eval "$ac_compile") 2>conftest.er1
30091 ac_status=$?
30092 grep -v '^ *+' conftest.er1 >conftest.err
30093 rm -f conftest.er1
30094 cat conftest.err >&5
30095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096 (exit $ac_status); } && {
30097 test -z "$ac_c_werror_flag" ||
30098 test ! -s conftest.err
30099 } && test -s conftest.$ac_objext; then
30100 { echo "$as_me:$LINENO: result: yes" >&5
30101echo "${ECHO_T}yes" >&6; }
15773 30102
15774$as_echo "#define FSID_HAS_VAL 1" >>confdefs.h 30103cat >>confdefs.h <<\_ACEOF
30104#define FSID_HAS_VAL 1
30105_ACEOF
15775 30106
15776else 30107else
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30108 echo "$as_me: failed program was:" >&5
15778$as_echo "no" >&6; } 30109sed 's/^/| /' conftest.$ac_ext >&5
30110
30111 { echo "$as_me:$LINENO: result: no" >&5
30112echo "${ECHO_T}no" >&6; }
15779fi 30113fi
30114
15780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15781 30116
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5 30117 { echo "$as_me:$LINENO: checking if f_fsid has member __val" >&5
15783$as_echo_n "checking if f_fsid has member __val... " >&6; } 30118echo $ECHO_N "checking if f_fsid has member __val... $ECHO_C" >&6; }
15784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30119 cat >conftest.$ac_ext <<_ACEOF
30120/* confdefs.h. */
30121_ACEOF
30122cat confdefs.h >>conftest.$ac_ext
30123cat >>conftest.$ac_ext <<_ACEOF
15785/* end confdefs.h. */ 30124/* end confdefs.h. */
15786 30125
15787#include <sys/types.h> 30126#include <sys/types.h>
@@ -15795,28 +30134,55 @@ main ()
15795 return 0; 30134 return 0;
15796} 30135}
15797_ACEOF 30136_ACEOF
15798if ac_fn_c_try_compile "$LINENO"; then : 30137rm -f conftest.$ac_objext
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30138if { (ac_try="$ac_compile"
15800$as_echo "yes" >&6; } 30139case "(($ac_try" in
30140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30141 *) ac_try_echo=$ac_try;;
30142esac
30143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30144 (eval "$ac_compile") 2>conftest.er1
30145 ac_status=$?
30146 grep -v '^ *+' conftest.er1 >conftest.err
30147 rm -f conftest.er1
30148 cat conftest.err >&5
30149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30150 (exit $ac_status); } && {
30151 test -z "$ac_c_werror_flag" ||
30152 test ! -s conftest.err
30153 } && test -s conftest.$ac_objext; then
30154 { echo "$as_me:$LINENO: result: yes" >&5
30155echo "${ECHO_T}yes" >&6; }
15801 30156
15802$as_echo "#define FSID_HAS___VAL 1" >>confdefs.h 30157cat >>confdefs.h <<\_ACEOF
30158#define FSID_HAS___VAL 1
30159_ACEOF
15803 30160
15804else 30161else
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30162 echo "$as_me: failed program was:" >&5
15806$as_echo "no" >&6; } 30163sed 's/^/| /' conftest.$ac_ext >&5
30164
30165 { echo "$as_me:$LINENO: result: no" >&5
30166echo "${ECHO_T}no" >&6; }
15807fi 30167fi
30168
15808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15809 30170
15810fi 30171fi
30172
15811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15812 30174
15813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5 30175{ echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
15814$as_echo_n "checking for msg_control field in struct msghdr... " >&6; } 30176echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; }
15815if ${ac_cv_have_control_in_msghdr+:} false; then : 30177if test "${ac_cv_have_control_in_msghdr+set}" = set; then
15816 $as_echo_n "(cached) " >&6 30178 echo $ECHO_N "(cached) $ECHO_C" >&6
15817else 30179else
15818 30180
15819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30181 cat >conftest.$ac_ext <<_ACEOF
30182/* confdefs.h. */
30183_ACEOF
30184cat confdefs.h >>conftest.$ac_ext
30185cat >>conftest.$ac_ext <<_ACEOF
15820/* end confdefs.h. */ 30186/* end confdefs.h. */
15821 30187
15822#include <sys/types.h> 30188#include <sys/types.h>
@@ -15839,30 +30205,56 @@ exit(0);
15839 return 0; 30205 return 0;
15840} 30206}
15841_ACEOF 30207_ACEOF
15842if ac_fn_c_try_compile "$LINENO"; then : 30208rm -f conftest.$ac_objext
30209if { (ac_try="$ac_compile"
30210case "(($ac_try" in
30211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30212 *) ac_try_echo=$ac_try;;
30213esac
30214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30215 (eval "$ac_compile") 2>conftest.er1
30216 ac_status=$?
30217 grep -v '^ *+' conftest.er1 >conftest.err
30218 rm -f conftest.er1
30219 cat conftest.err >&5
30220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30221 (exit $ac_status); } && {
30222 test -z "$ac_c_werror_flag" ||
30223 test ! -s conftest.err
30224 } && test -s conftest.$ac_objext; then
15843 ac_cv_have_control_in_msghdr="yes" 30225 ac_cv_have_control_in_msghdr="yes"
15844else 30226else
15845 ac_cv_have_control_in_msghdr="no" 30227 echo "$as_me: failed program was:" >&5
30228sed 's/^/| /' conftest.$ac_ext >&5
30229
30230 ac_cv_have_control_in_msghdr="no"
15846 30231
15847fi 30232fi
30233
15848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15849 30235
15850fi 30236fi
15851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5 30237{ echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
15852$as_echo "$ac_cv_have_control_in_msghdr" >&6; } 30238echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; }
15853if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then 30239if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
15854 30240
15855$as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h 30241cat >>confdefs.h <<\_ACEOF
30242#define HAVE_CONTROL_IN_MSGHDR 1
30243_ACEOF
15856 30244
15857fi 30245fi
15858 30246
15859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5 30247{ echo "$as_me:$LINENO: checking if libc defines __progname" >&5
15860$as_echo_n "checking if libc defines __progname... " >&6; } 30248echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; }
15861if ${ac_cv_libc_defines___progname+:} false; then : 30249if test "${ac_cv_libc_defines___progname+set}" = set; then
15862 $as_echo_n "(cached) " >&6 30250 echo $ECHO_N "(cached) $ECHO_C" >&6
15863else 30251else
15864 30252
15865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30253 cat >conftest.$ac_ext <<_ACEOF
30254/* confdefs.h. */
30255_ACEOF
30256cat confdefs.h >>conftest.$ac_ext
30257cat >>conftest.$ac_ext <<_ACEOF
15866/* end confdefs.h. */ 30258/* end confdefs.h. */
15867 30259
15868int 30260int
@@ -15873,31 +30265,58 @@ main ()
15873 return 0; 30265 return 0;
15874} 30266}
15875_ACEOF 30267_ACEOF
15876if ac_fn_c_try_link "$LINENO"; then : 30268rm -f conftest.$ac_objext conftest$ac_exeext
30269if { (ac_try="$ac_link"
30270case "(($ac_try" in
30271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30272 *) ac_try_echo=$ac_try;;
30273esac
30274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30275 (eval "$ac_link") 2>conftest.er1
30276 ac_status=$?
30277 grep -v '^ *+' conftest.er1 >conftest.err
30278 rm -f conftest.er1
30279 cat conftest.err >&5
30280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281 (exit $ac_status); } && {
30282 test -z "$ac_c_werror_flag" ||
30283 test ! -s conftest.err
30284 } && test -s conftest$ac_exeext &&
30285 $as_test_x conftest$ac_exeext; then
15877 ac_cv_libc_defines___progname="yes" 30286 ac_cv_libc_defines___progname="yes"
15878else 30287else
15879 ac_cv_libc_defines___progname="no" 30288 echo "$as_me: failed program was:" >&5
30289sed 's/^/| /' conftest.$ac_ext >&5
30290
30291 ac_cv_libc_defines___progname="no"
15880 30292
15881fi 30293fi
15882rm -f core conftest.err conftest.$ac_objext \ 30294
15883 conftest$ac_exeext conftest.$ac_ext 30295rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30296 conftest$ac_exeext conftest.$ac_ext
15884 30297
15885fi 30298fi
15886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5 30299{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
15887$as_echo "$ac_cv_libc_defines___progname" >&6; } 30300echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; }
15888if test "x$ac_cv_libc_defines___progname" = "xyes" ; then 30301if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
15889 30302
15890$as_echo "#define HAVE___PROGNAME 1" >>confdefs.h 30303cat >>confdefs.h <<\_ACEOF
30304#define HAVE___PROGNAME 1
30305_ACEOF
15891 30306
15892fi 30307fi
15893 30308
15894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5 30309{ echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
15895$as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; } 30310echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; }
15896if ${ac_cv_cc_implements___FUNCTION__+:} false; then : 30311if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
15897 $as_echo_n "(cached) " >&6 30312 echo $ECHO_N "(cached) $ECHO_C" >&6
15898else 30313else
15899 30314
15900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30315 cat >conftest.$ac_ext <<_ACEOF
30316/* confdefs.h. */
30317_ACEOF
30318cat confdefs.h >>conftest.$ac_ext
30319cat >>conftest.$ac_ext <<_ACEOF
15901/* end confdefs.h. */ 30320/* end confdefs.h. */
15902 #include <stdio.h> 30321 #include <stdio.h>
15903int 30322int
@@ -15908,31 +30327,58 @@ main ()
15908 return 0; 30327 return 0;
15909} 30328}
15910_ACEOF 30329_ACEOF
15911if ac_fn_c_try_link "$LINENO"; then : 30330rm -f conftest.$ac_objext conftest$ac_exeext
30331if { (ac_try="$ac_link"
30332case "(($ac_try" in
30333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30334 *) ac_try_echo=$ac_try;;
30335esac
30336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30337 (eval "$ac_link") 2>conftest.er1
30338 ac_status=$?
30339 grep -v '^ *+' conftest.er1 >conftest.err
30340 rm -f conftest.er1
30341 cat conftest.err >&5
30342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30343 (exit $ac_status); } && {
30344 test -z "$ac_c_werror_flag" ||
30345 test ! -s conftest.err
30346 } && test -s conftest$ac_exeext &&
30347 $as_test_x conftest$ac_exeext; then
15912 ac_cv_cc_implements___FUNCTION__="yes" 30348 ac_cv_cc_implements___FUNCTION__="yes"
15913else 30349else
15914 ac_cv_cc_implements___FUNCTION__="no" 30350 echo "$as_me: failed program was:" >&5
30351sed 's/^/| /' conftest.$ac_ext >&5
30352
30353 ac_cv_cc_implements___FUNCTION__="no"
15915 30354
15916fi 30355fi
15917rm -f core conftest.err conftest.$ac_objext \ 30356
15918 conftest$ac_exeext conftest.$ac_ext 30357rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30358 conftest$ac_exeext conftest.$ac_ext
15919 30359
15920fi 30360fi
15921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5 30361{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
15922$as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; } 30362echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; }
15923if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then 30363if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
15924 30364
15925$as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h 30365cat >>confdefs.h <<\_ACEOF
30366#define HAVE___FUNCTION__ 1
30367_ACEOF
15926 30368
15927fi 30369fi
15928 30370
15929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5 30371{ echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
15930$as_echo_n "checking whether $CC implements __func__... " >&6; } 30372echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; }
15931if ${ac_cv_cc_implements___func__+:} false; then : 30373if test "${ac_cv_cc_implements___func__+set}" = set; then
15932 $as_echo_n "(cached) " >&6 30374 echo $ECHO_N "(cached) $ECHO_C" >&6
15933else 30375else
15934 30376
15935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30377 cat >conftest.$ac_ext <<_ACEOF
30378/* confdefs.h. */
30379_ACEOF
30380cat confdefs.h >>conftest.$ac_ext
30381cat >>conftest.$ac_ext <<_ACEOF
15936/* end confdefs.h. */ 30382/* end confdefs.h. */
15937 #include <stdio.h> 30383 #include <stdio.h>
15938int 30384int
@@ -15943,31 +30389,58 @@ main ()
15943 return 0; 30389 return 0;
15944} 30390}
15945_ACEOF 30391_ACEOF
15946if ac_fn_c_try_link "$LINENO"; then : 30392rm -f conftest.$ac_objext conftest$ac_exeext
30393if { (ac_try="$ac_link"
30394case "(($ac_try" in
30395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30396 *) ac_try_echo=$ac_try;;
30397esac
30398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30399 (eval "$ac_link") 2>conftest.er1
30400 ac_status=$?
30401 grep -v '^ *+' conftest.er1 >conftest.err
30402 rm -f conftest.er1
30403 cat conftest.err >&5
30404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30405 (exit $ac_status); } && {
30406 test -z "$ac_c_werror_flag" ||
30407 test ! -s conftest.err
30408 } && test -s conftest$ac_exeext &&
30409 $as_test_x conftest$ac_exeext; then
15947 ac_cv_cc_implements___func__="yes" 30410 ac_cv_cc_implements___func__="yes"
15948else 30411else
15949 ac_cv_cc_implements___func__="no" 30412 echo "$as_me: failed program was:" >&5
30413sed 's/^/| /' conftest.$ac_ext >&5
30414
30415 ac_cv_cc_implements___func__="no"
15950 30416
15951fi 30417fi
15952rm -f core conftest.err conftest.$ac_objext \ 30418
15953 conftest$ac_exeext conftest.$ac_ext 30419rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30420 conftest$ac_exeext conftest.$ac_ext
15954 30421
15955fi 30422fi
15956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5 30423{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
15957$as_echo "$ac_cv_cc_implements___func__" >&6; } 30424echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; }
15958if test "x$ac_cv_cc_implements___func__" = "xyes" ; then 30425if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
15959 30426
15960$as_echo "#define HAVE___func__ 1" >>confdefs.h 30427cat >>confdefs.h <<\_ACEOF
30428#define HAVE___func__ 1
30429_ACEOF
15961 30430
15962fi 30431fi
15963 30432
15964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5 30433{ echo "$as_me:$LINENO: checking whether va_copy exists" >&5
15965$as_echo_n "checking whether va_copy exists... " >&6; } 30434echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; }
15966if ${ac_cv_have_va_copy+:} false; then : 30435if test "${ac_cv_have_va_copy+set}" = set; then
15967 $as_echo_n "(cached) " >&6 30436 echo $ECHO_N "(cached) $ECHO_C" >&6
15968else 30437else
15969 30438
15970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30439 cat >conftest.$ac_ext <<_ACEOF
30440/* confdefs.h. */
30441_ACEOF
30442cat confdefs.h >>conftest.$ac_ext
30443cat >>conftest.$ac_ext <<_ACEOF
15971/* end confdefs.h. */ 30444/* end confdefs.h. */
15972 30445
15973#include <stdarg.h> 30446#include <stdarg.h>
@@ -15981,31 +30454,58 @@ main ()
15981 return 0; 30454 return 0;
15982} 30455}
15983_ACEOF 30456_ACEOF
15984if ac_fn_c_try_link "$LINENO"; then : 30457rm -f conftest.$ac_objext conftest$ac_exeext
30458if { (ac_try="$ac_link"
30459case "(($ac_try" in
30460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30461 *) ac_try_echo=$ac_try;;
30462esac
30463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30464 (eval "$ac_link") 2>conftest.er1
30465 ac_status=$?
30466 grep -v '^ *+' conftest.er1 >conftest.err
30467 rm -f conftest.er1
30468 cat conftest.err >&5
30469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30470 (exit $ac_status); } && {
30471 test -z "$ac_c_werror_flag" ||
30472 test ! -s conftest.err
30473 } && test -s conftest$ac_exeext &&
30474 $as_test_x conftest$ac_exeext; then
15985 ac_cv_have_va_copy="yes" 30475 ac_cv_have_va_copy="yes"
15986else 30476else
15987 ac_cv_have_va_copy="no" 30477 echo "$as_me: failed program was:" >&5
30478sed 's/^/| /' conftest.$ac_ext >&5
30479
30480 ac_cv_have_va_copy="no"
15988 30481
15989fi 30482fi
15990rm -f core conftest.err conftest.$ac_objext \ 30483
15991 conftest$ac_exeext conftest.$ac_ext 30484rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30485 conftest$ac_exeext conftest.$ac_ext
15992 30486
15993fi 30487fi
15994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5 30488{ echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5
15995$as_echo "$ac_cv_have_va_copy" >&6; } 30489echo "${ECHO_T}$ac_cv_have_va_copy" >&6; }
15996if test "x$ac_cv_have_va_copy" = "xyes" ; then 30490if test "x$ac_cv_have_va_copy" = "xyes" ; then
15997 30491
15998$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h 30492cat >>confdefs.h <<\_ACEOF
30493#define HAVE_VA_COPY 1
30494_ACEOF
15999 30495
16000fi 30496fi
16001 30497
16002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5 30498{ echo "$as_me:$LINENO: checking whether __va_copy exists" >&5
16003$as_echo_n "checking whether __va_copy exists... " >&6; } 30499echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; }
16004if ${ac_cv_have___va_copy+:} false; then : 30500if test "${ac_cv_have___va_copy+set}" = set; then
16005 $as_echo_n "(cached) " >&6 30501 echo $ECHO_N "(cached) $ECHO_C" >&6
16006else 30502else
16007 30503
16008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30504 cat >conftest.$ac_ext <<_ACEOF
30505/* confdefs.h. */
30506_ACEOF
30507cat confdefs.h >>conftest.$ac_ext
30508cat >>conftest.$ac_ext <<_ACEOF
16009/* end confdefs.h. */ 30509/* end confdefs.h. */
16010 30510
16011#include <stdarg.h> 30511#include <stdarg.h>
@@ -16019,31 +30519,58 @@ main ()
16019 return 0; 30519 return 0;
16020} 30520}
16021_ACEOF 30521_ACEOF
16022if ac_fn_c_try_link "$LINENO"; then : 30522rm -f conftest.$ac_objext conftest$ac_exeext
30523if { (ac_try="$ac_link"
30524case "(($ac_try" in
30525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30526 *) ac_try_echo=$ac_try;;
30527esac
30528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30529 (eval "$ac_link") 2>conftest.er1
30530 ac_status=$?
30531 grep -v '^ *+' conftest.er1 >conftest.err
30532 rm -f conftest.er1
30533 cat conftest.err >&5
30534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535 (exit $ac_status); } && {
30536 test -z "$ac_c_werror_flag" ||
30537 test ! -s conftest.err
30538 } && test -s conftest$ac_exeext &&
30539 $as_test_x conftest$ac_exeext; then
16023 ac_cv_have___va_copy="yes" 30540 ac_cv_have___va_copy="yes"
16024else 30541else
16025 ac_cv_have___va_copy="no" 30542 echo "$as_me: failed program was:" >&5
30543sed 's/^/| /' conftest.$ac_ext >&5
30544
30545 ac_cv_have___va_copy="no"
16026 30546
16027fi 30547fi
16028rm -f core conftest.err conftest.$ac_objext \ 30548
16029 conftest$ac_exeext conftest.$ac_ext 30549rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30550 conftest$ac_exeext conftest.$ac_ext
16030 30551
16031fi 30552fi
16032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5 30553{ echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5
16033$as_echo "$ac_cv_have___va_copy" >&6; } 30554echo "${ECHO_T}$ac_cv_have___va_copy" >&6; }
16034if test "x$ac_cv_have___va_copy" = "xyes" ; then 30555if test "x$ac_cv_have___va_copy" = "xyes" ; then
16035 30556
16036$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h 30557cat >>confdefs.h <<\_ACEOF
30558#define HAVE___VA_COPY 1
30559_ACEOF
16037 30560
16038fi 30561fi
16039 30562
16040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5 30563{ echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
16041$as_echo_n "checking whether getopt has optreset support... " >&6; } 30564echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; }
16042if ${ac_cv_have_getopt_optreset+:} false; then : 30565if test "${ac_cv_have_getopt_optreset+set}" = set; then
16043 $as_echo_n "(cached) " >&6 30566 echo $ECHO_N "(cached) $ECHO_C" >&6
16044else 30567else
16045 30568
16046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30569 cat >conftest.$ac_ext <<_ACEOF
30570/* confdefs.h. */
30571_ACEOF
30572cat confdefs.h >>conftest.$ac_ext
30573cat >>conftest.$ac_ext <<_ACEOF
16047/* end confdefs.h. */ 30574/* end confdefs.h. */
16048 #include <getopt.h> 30575 #include <getopt.h>
16049int 30576int
@@ -16054,31 +30581,58 @@ main ()
16054 return 0; 30581 return 0;
16055} 30582}
16056_ACEOF 30583_ACEOF
16057if ac_fn_c_try_link "$LINENO"; then : 30584rm -f conftest.$ac_objext conftest$ac_exeext
30585if { (ac_try="$ac_link"
30586case "(($ac_try" in
30587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30588 *) ac_try_echo=$ac_try;;
30589esac
30590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30591 (eval "$ac_link") 2>conftest.er1
30592 ac_status=$?
30593 grep -v '^ *+' conftest.er1 >conftest.err
30594 rm -f conftest.er1
30595 cat conftest.err >&5
30596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30597 (exit $ac_status); } && {
30598 test -z "$ac_c_werror_flag" ||
30599 test ! -s conftest.err
30600 } && test -s conftest$ac_exeext &&
30601 $as_test_x conftest$ac_exeext; then
16058 ac_cv_have_getopt_optreset="yes" 30602 ac_cv_have_getopt_optreset="yes"
16059else 30603else
16060 ac_cv_have_getopt_optreset="no" 30604 echo "$as_me: failed program was:" >&5
30605sed 's/^/| /' conftest.$ac_ext >&5
30606
30607 ac_cv_have_getopt_optreset="no"
16061 30608
16062fi 30609fi
16063rm -f core conftest.err conftest.$ac_objext \ 30610
16064 conftest$ac_exeext conftest.$ac_ext 30611rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30612 conftest$ac_exeext conftest.$ac_ext
16065 30613
16066fi 30614fi
16067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5 30615{ echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
16068$as_echo "$ac_cv_have_getopt_optreset" >&6; } 30616echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; }
16069if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then 30617if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
16070 30618
16071$as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h 30619cat >>confdefs.h <<\_ACEOF
30620#define HAVE_GETOPT_OPTRESET 1
30621_ACEOF
16072 30622
16073fi 30623fi
16074 30624
16075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5 30625{ echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
16076$as_echo_n "checking if libc defines sys_errlist... " >&6; } 30626echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; }
16077if ${ac_cv_libc_defines_sys_errlist+:} false; then : 30627if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
16078 $as_echo_n "(cached) " >&6 30628 echo $ECHO_N "(cached) $ECHO_C" >&6
16079else 30629else
16080 30630
16081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30631 cat >conftest.$ac_ext <<_ACEOF
30632/* confdefs.h. */
30633_ACEOF
30634cat confdefs.h >>conftest.$ac_ext
30635cat >>conftest.$ac_ext <<_ACEOF
16082/* end confdefs.h. */ 30636/* end confdefs.h. */
16083 30637
16084int 30638int
@@ -16089,32 +30643,59 @@ main ()
16089 return 0; 30643 return 0;
16090} 30644}
16091_ACEOF 30645_ACEOF
16092if ac_fn_c_try_link "$LINENO"; then : 30646rm -f conftest.$ac_objext conftest$ac_exeext
30647if { (ac_try="$ac_link"
30648case "(($ac_try" in
30649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30650 *) ac_try_echo=$ac_try;;
30651esac
30652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30653 (eval "$ac_link") 2>conftest.er1
30654 ac_status=$?
30655 grep -v '^ *+' conftest.er1 >conftest.err
30656 rm -f conftest.er1
30657 cat conftest.err >&5
30658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30659 (exit $ac_status); } && {
30660 test -z "$ac_c_werror_flag" ||
30661 test ! -s conftest.err
30662 } && test -s conftest$ac_exeext &&
30663 $as_test_x conftest$ac_exeext; then
16093 ac_cv_libc_defines_sys_errlist="yes" 30664 ac_cv_libc_defines_sys_errlist="yes"
16094else 30665else
16095 ac_cv_libc_defines_sys_errlist="no" 30666 echo "$as_me: failed program was:" >&5
30667sed 's/^/| /' conftest.$ac_ext >&5
30668
30669 ac_cv_libc_defines_sys_errlist="no"
16096 30670
16097fi 30671fi
16098rm -f core conftest.err conftest.$ac_objext \ 30672
16099 conftest$ac_exeext conftest.$ac_ext 30673rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30674 conftest$ac_exeext conftest.$ac_ext
16100 30675
16101fi 30676fi
16102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5 30677{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
16103$as_echo "$ac_cv_libc_defines_sys_errlist" >&6; } 30678echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; }
16104if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then 30679if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
16105 30680
16106$as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h 30681cat >>confdefs.h <<\_ACEOF
30682#define HAVE_SYS_ERRLIST 1
30683_ACEOF
16107 30684
16108fi 30685fi
16109 30686
16110 30687
16111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5 30688{ echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
16112$as_echo_n "checking if libc defines sys_nerr... " >&6; } 30689echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; }
16113if ${ac_cv_libc_defines_sys_nerr+:} false; then : 30690if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
16114 $as_echo_n "(cached) " >&6 30691 echo $ECHO_N "(cached) $ECHO_C" >&6
16115else 30692else
16116 30693
16117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30694 cat >conftest.$ac_ext <<_ACEOF
30695/* confdefs.h. */
30696_ACEOF
30697cat confdefs.h >>conftest.$ac_ext
30698cat >>conftest.$ac_ext <<_ACEOF
16118/* end confdefs.h. */ 30699/* end confdefs.h. */
16119 30700
16120int 30701int
@@ -16125,32 +30706,59 @@ main ()
16125 return 0; 30706 return 0;
16126} 30707}
16127_ACEOF 30708_ACEOF
16128if ac_fn_c_try_link "$LINENO"; then : 30709rm -f conftest.$ac_objext conftest$ac_exeext
30710if { (ac_try="$ac_link"
30711case "(($ac_try" in
30712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30713 *) ac_try_echo=$ac_try;;
30714esac
30715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30716 (eval "$ac_link") 2>conftest.er1
30717 ac_status=$?
30718 grep -v '^ *+' conftest.er1 >conftest.err
30719 rm -f conftest.er1
30720 cat conftest.err >&5
30721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722 (exit $ac_status); } && {
30723 test -z "$ac_c_werror_flag" ||
30724 test ! -s conftest.err
30725 } && test -s conftest$ac_exeext &&
30726 $as_test_x conftest$ac_exeext; then
16129 ac_cv_libc_defines_sys_nerr="yes" 30727 ac_cv_libc_defines_sys_nerr="yes"
16130else 30728else
16131 ac_cv_libc_defines_sys_nerr="no" 30729 echo "$as_me: failed program was:" >&5
30730sed 's/^/| /' conftest.$ac_ext >&5
30731
30732 ac_cv_libc_defines_sys_nerr="no"
16132 30733
16133fi 30734fi
16134rm -f core conftest.err conftest.$ac_objext \ 30735
16135 conftest$ac_exeext conftest.$ac_ext 30736rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30737 conftest$ac_exeext conftest.$ac_ext
16136 30738
16137fi 30739fi
16138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5 30740{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
16139$as_echo "$ac_cv_libc_defines_sys_nerr" >&6; } 30741echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; }
16140if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then 30742if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
16141 30743
16142$as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h 30744cat >>confdefs.h <<\_ACEOF
30745#define HAVE_SYS_NERR 1
30746_ACEOF
16143 30747
16144fi 30748fi
16145 30749
16146# Check libraries needed by DNS fingerprint support 30750# Check libraries needed by DNS fingerprint support
16147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5 30751{ echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
16148$as_echo_n "checking for library containing getrrsetbyname... " >&6; } 30752echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; }
16149if ${ac_cv_search_getrrsetbyname+:} false; then : 30753if test "${ac_cv_search_getrrsetbyname+set}" = set; then
16150 $as_echo_n "(cached) " >&6 30754 echo $ECHO_N "(cached) $ECHO_C" >&6
16151else 30755else
16152 ac_func_search_save_LIBS=$LIBS 30756 ac_func_search_save_LIBS=$LIBS
16153cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30757cat >conftest.$ac_ext <<_ACEOF
30758/* confdefs.h. */
30759_ACEOF
30760cat confdefs.h >>conftest.$ac_ext
30761cat >>conftest.$ac_ext <<_ACEOF
16154/* end confdefs.h. */ 30762/* end confdefs.h. */
16155 30763
16156/* Override any GCC internal prototype to avoid an error. 30764/* Override any GCC internal prototype to avoid an error.
@@ -16175,41 +30783,70 @@ for ac_lib in '' resolv; do
16175 ac_res=-l$ac_lib 30783 ac_res=-l$ac_lib
16176 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 30784 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16177 fi 30785 fi
16178 if ac_fn_c_try_link "$LINENO"; then : 30786 rm -f conftest.$ac_objext conftest$ac_exeext
30787if { (ac_try="$ac_link"
30788case "(($ac_try" in
30789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30790 *) ac_try_echo=$ac_try;;
30791esac
30792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30793 (eval "$ac_link") 2>conftest.er1
30794 ac_status=$?
30795 grep -v '^ *+' conftest.er1 >conftest.err
30796 rm -f conftest.er1
30797 cat conftest.err >&5
30798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30799 (exit $ac_status); } && {
30800 test -z "$ac_c_werror_flag" ||
30801 test ! -s conftest.err
30802 } && test -s conftest$ac_exeext &&
30803 $as_test_x conftest$ac_exeext; then
16179 ac_cv_search_getrrsetbyname=$ac_res 30804 ac_cv_search_getrrsetbyname=$ac_res
30805else
30806 echo "$as_me: failed program was:" >&5
30807sed 's/^/| /' conftest.$ac_ext >&5
30808
30809
16180fi 30810fi
16181rm -f core conftest.err conftest.$ac_objext \ 30811
16182 conftest$ac_exeext 30812rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16183 if ${ac_cv_search_getrrsetbyname+:} false; then : 30813 conftest$ac_exeext
30814 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
16184 break 30815 break
16185fi 30816fi
16186done 30817done
16187if ${ac_cv_search_getrrsetbyname+:} false; then : 30818if test "${ac_cv_search_getrrsetbyname+set}" = set; then
16188 30819 :
16189else 30820else
16190 ac_cv_search_getrrsetbyname=no 30821 ac_cv_search_getrrsetbyname=no
16191fi 30822fi
16192rm conftest.$ac_ext 30823rm conftest.$ac_ext
16193LIBS=$ac_func_search_save_LIBS 30824LIBS=$ac_func_search_save_LIBS
16194fi 30825fi
16195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5 30826{ echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5
16196$as_echo "$ac_cv_search_getrrsetbyname" >&6; } 30827echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; }
16197ac_res=$ac_cv_search_getrrsetbyname 30828ac_res=$ac_cv_search_getrrsetbyname
16198if test "$ac_res" != no; then : 30829if test "$ac_res" != no; then
16199 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 30830 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16200 30831
16201$as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h 30832cat >>confdefs.h <<\_ACEOF
30833#define HAVE_GETRRSETBYNAME 1
30834_ACEOF
16202 30835
16203else 30836else
16204 30837
16205 # Needed by our getrrsetbyname() 30838 # Needed by our getrrsetbyname()
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5 30839 { echo "$as_me:$LINENO: checking for library containing res_query" >&5
16207$as_echo_n "checking for library containing res_query... " >&6; } 30840echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; }
16208if ${ac_cv_search_res_query+:} false; then : 30841if test "${ac_cv_search_res_query+set}" = set; then
16209 $as_echo_n "(cached) " >&6 30842 echo $ECHO_N "(cached) $ECHO_C" >&6
16210else 30843else
16211 ac_func_search_save_LIBS=$LIBS 30844 ac_func_search_save_LIBS=$LIBS
16212cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30845cat >conftest.$ac_ext <<_ACEOF
30846/* confdefs.h. */
30847_ACEOF
30848cat confdefs.h >>conftest.$ac_ext
30849cat >>conftest.$ac_ext <<_ACEOF
16213/* end confdefs.h. */ 30850/* end confdefs.h. */
16214 30851
16215/* Override any GCC internal prototype to avoid an error. 30852/* Override any GCC internal prototype to avoid an error.
@@ -16234,38 +30871,65 @@ for ac_lib in '' resolv; do
16234 ac_res=-l$ac_lib 30871 ac_res=-l$ac_lib
16235 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 30872 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16236 fi 30873 fi
16237 if ac_fn_c_try_link "$LINENO"; then : 30874 rm -f conftest.$ac_objext conftest$ac_exeext
30875if { (ac_try="$ac_link"
30876case "(($ac_try" in
30877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30878 *) ac_try_echo=$ac_try;;
30879esac
30880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30881 (eval "$ac_link") 2>conftest.er1
30882 ac_status=$?
30883 grep -v '^ *+' conftest.er1 >conftest.err
30884 rm -f conftest.er1
30885 cat conftest.err >&5
30886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887 (exit $ac_status); } && {
30888 test -z "$ac_c_werror_flag" ||
30889 test ! -s conftest.err
30890 } && test -s conftest$ac_exeext &&
30891 $as_test_x conftest$ac_exeext; then
16238 ac_cv_search_res_query=$ac_res 30892 ac_cv_search_res_query=$ac_res
30893else
30894 echo "$as_me: failed program was:" >&5
30895sed 's/^/| /' conftest.$ac_ext >&5
30896
30897
16239fi 30898fi
16240rm -f core conftest.err conftest.$ac_objext \ 30899
16241 conftest$ac_exeext 30900rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16242 if ${ac_cv_search_res_query+:} false; then : 30901 conftest$ac_exeext
30902 if test "${ac_cv_search_res_query+set}" = set; then
16243 break 30903 break
16244fi 30904fi
16245done 30905done
16246if ${ac_cv_search_res_query+:} false; then : 30906if test "${ac_cv_search_res_query+set}" = set; then
16247 30907 :
16248else 30908else
16249 ac_cv_search_res_query=no 30909 ac_cv_search_res_query=no
16250fi 30910fi
16251rm conftest.$ac_ext 30911rm conftest.$ac_ext
16252LIBS=$ac_func_search_save_LIBS 30912LIBS=$ac_func_search_save_LIBS
16253fi 30913fi
16254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5 30914{ echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
16255$as_echo "$ac_cv_search_res_query" >&6; } 30915echo "${ECHO_T}$ac_cv_search_res_query" >&6; }
16256ac_res=$ac_cv_search_res_query 30916ac_res=$ac_cv_search_res_query
16257if test "$ac_res" != no; then : 30917if test "$ac_res" != no; then
16258 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 30918 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16259 30919
16260fi 30920fi
16261 30921
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5 30922 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
16263$as_echo_n "checking for library containing dn_expand... " >&6; } 30923echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
16264if ${ac_cv_search_dn_expand+:} false; then : 30924if test "${ac_cv_search_dn_expand+set}" = set; then
16265 $as_echo_n "(cached) " >&6 30925 echo $ECHO_N "(cached) $ECHO_C" >&6
16266else 30926else
16267 ac_func_search_save_LIBS=$LIBS 30927 ac_func_search_save_LIBS=$LIBS
16268cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30928cat >conftest.$ac_ext <<_ACEOF
30929/* confdefs.h. */
30930_ACEOF
30931cat confdefs.h >>conftest.$ac_ext
30932cat >>conftest.$ac_ext <<_ACEOF
16269/* end confdefs.h. */ 30933/* end confdefs.h. */
16270 30934
16271/* Override any GCC internal prototype to avoid an error. 30935/* Override any GCC internal prototype to avoid an error.
@@ -16290,34 +30954,61 @@ for ac_lib in '' resolv; do
16290 ac_res=-l$ac_lib 30954 ac_res=-l$ac_lib
16291 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 30955 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16292 fi 30956 fi
16293 if ac_fn_c_try_link "$LINENO"; then : 30957 rm -f conftest.$ac_objext conftest$ac_exeext
30958if { (ac_try="$ac_link"
30959case "(($ac_try" in
30960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30961 *) ac_try_echo=$ac_try;;
30962esac
30963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30964 (eval "$ac_link") 2>conftest.er1
30965 ac_status=$?
30966 grep -v '^ *+' conftest.er1 >conftest.err
30967 rm -f conftest.er1
30968 cat conftest.err >&5
30969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30970 (exit $ac_status); } && {
30971 test -z "$ac_c_werror_flag" ||
30972 test ! -s conftest.err
30973 } && test -s conftest$ac_exeext &&
30974 $as_test_x conftest$ac_exeext; then
16294 ac_cv_search_dn_expand=$ac_res 30975 ac_cv_search_dn_expand=$ac_res
30976else
30977 echo "$as_me: failed program was:" >&5
30978sed 's/^/| /' conftest.$ac_ext >&5
30979
30980
16295fi 30981fi
16296rm -f core conftest.err conftest.$ac_objext \ 30982
16297 conftest$ac_exeext 30983rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16298 if ${ac_cv_search_dn_expand+:} false; then : 30984 conftest$ac_exeext
30985 if test "${ac_cv_search_dn_expand+set}" = set; then
16299 break 30986 break
16300fi 30987fi
16301done 30988done
16302if ${ac_cv_search_dn_expand+:} false; then : 30989if test "${ac_cv_search_dn_expand+set}" = set; then
16303 30990 :
16304else 30991else
16305 ac_cv_search_dn_expand=no 30992 ac_cv_search_dn_expand=no
16306fi 30993fi
16307rm conftest.$ac_ext 30994rm conftest.$ac_ext
16308LIBS=$ac_func_search_save_LIBS 30995LIBS=$ac_func_search_save_LIBS
16309fi 30996fi
16310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5 30997{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
16311$as_echo "$ac_cv_search_dn_expand" >&6; } 30998echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
16312ac_res=$ac_cv_search_dn_expand 30999ac_res=$ac_cv_search_dn_expand
16313if test "$ac_res" != no; then : 31000if test "$ac_res" != no; then
16314 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 31001 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16315 31002
16316fi 31003fi
16317 31004
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5 31005 { echo "$as_me:$LINENO: checking if res_query will link" >&5
16319$as_echo_n "checking if res_query will link... " >&6; } 31006echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; }
16320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31007 cat >conftest.$ac_ext <<_ACEOF
31008/* confdefs.h. */
31009_ACEOF
31010cat confdefs.h >>conftest.$ac_ext
31011cat >>conftest.$ac_ext <<_ACEOF
16321/* end confdefs.h. */ 31012/* end confdefs.h. */
16322 31013
16323#include <sys/types.h> 31014#include <sys/types.h>
@@ -16336,17 +31027,41 @@ main ()
16336 return 0; 31027 return 0;
16337} 31028}
16338_ACEOF 31029_ACEOF
16339if ac_fn_c_try_link "$LINENO"; then : 31030rm -f conftest.$ac_objext conftest$ac_exeext
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31031if { (ac_try="$ac_link"
16341$as_echo "yes" >&6; } 31032case "(($ac_try" in
31033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31034 *) ac_try_echo=$ac_try;;
31035esac
31036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31037 (eval "$ac_link") 2>conftest.er1
31038 ac_status=$?
31039 grep -v '^ *+' conftest.er1 >conftest.err
31040 rm -f conftest.er1
31041 cat conftest.err >&5
31042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31043 (exit $ac_status); } && {
31044 test -z "$ac_c_werror_flag" ||
31045 test ! -s conftest.err
31046 } && test -s conftest$ac_exeext &&
31047 $as_test_x conftest$ac_exeext; then
31048 { echo "$as_me:$LINENO: result: yes" >&5
31049echo "${ECHO_T}yes" >&6; }
16342else 31050else
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31051 echo "$as_me: failed program was:" >&5
16344$as_echo "no" >&6; } 31052sed 's/^/| /' conftest.$ac_ext >&5
31053
31054 { echo "$as_me:$LINENO: result: no" >&5
31055echo "${ECHO_T}no" >&6; }
16345 saved_LIBS="$LIBS" 31056 saved_LIBS="$LIBS"
16346 LIBS="$LIBS -lresolv" 31057 LIBS="$LIBS -lresolv"
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5 31058 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
16348$as_echo_n "checking for res_query in -lresolv... " >&6; } 31059echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
16349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31060 cat >conftest.$ac_ext <<_ACEOF
31061/* confdefs.h. */
31062_ACEOF
31063cat confdefs.h >>conftest.$ac_ext
31064cat >>conftest.$ac_ext <<_ACEOF
16350/* end confdefs.h. */ 31065/* end confdefs.h. */
16351 31066
16352#include <sys/types.h> 31067#include <sys/types.h>
@@ -16365,72 +31080,389 @@ main ()
16365 return 0; 31080 return 0;
16366} 31081}
16367_ACEOF 31082_ACEOF
16368if ac_fn_c_try_link "$LINENO"; then : 31083rm -f conftest.$ac_objext conftest$ac_exeext
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31084if { (ac_try="$ac_link"
16370$as_echo "yes" >&6; } 31085case "(($ac_try" in
31086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31087 *) ac_try_echo=$ac_try;;
31088esac
31089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31090 (eval "$ac_link") 2>conftest.er1
31091 ac_status=$?
31092 grep -v '^ *+' conftest.er1 >conftest.err
31093 rm -f conftest.er1
31094 cat conftest.err >&5
31095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31096 (exit $ac_status); } && {
31097 test -z "$ac_c_werror_flag" ||
31098 test ! -s conftest.err
31099 } && test -s conftest$ac_exeext &&
31100 $as_test_x conftest$ac_exeext; then
31101 { echo "$as_me:$LINENO: result: yes" >&5
31102echo "${ECHO_T}yes" >&6; }
16371else 31103else
16372 LIBS="$saved_LIBS" 31104 echo "$as_me: failed program was:" >&5
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31105sed 's/^/| /' conftest.$ac_ext >&5
16374$as_echo "no" >&6; } 31106
31107 LIBS="$saved_LIBS"
31108 { echo "$as_me:$LINENO: result: no" >&5
31109echo "${ECHO_T}no" >&6; }
16375fi 31110fi
16376rm -f core conftest.err conftest.$ac_objext \ 31111
16377 conftest$ac_exeext conftest.$ac_ext 31112rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31113 conftest$ac_exeext conftest.$ac_ext
16378 31114
16379fi 31115fi
16380rm -f core conftest.err conftest.$ac_objext \ 31116
16381 conftest$ac_exeext conftest.$ac_ext 31117rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16382 for ac_func in _getshort _getlong 31118 conftest$ac_exeext conftest.$ac_ext
16383do : 31119
16384 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 31120
16385ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 31121for ac_func in _getshort _getlong
16386if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 31122do
31123as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31124{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31125echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31126if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31127 echo $ECHO_N "(cached) $ECHO_C" >&6
31128else
31129 cat >conftest.$ac_ext <<_ACEOF
31130/* confdefs.h. */
31131_ACEOF
31132cat confdefs.h >>conftest.$ac_ext
31133cat >>conftest.$ac_ext <<_ACEOF
31134/* end confdefs.h. */
31135/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31137#define $ac_func innocuous_$ac_func
31138
31139/* System header to define __stub macros and hopefully few prototypes,
31140 which can conflict with char $ac_func (); below.
31141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31142 <limits.h> exists even on freestanding compilers. */
31143
31144#ifdef __STDC__
31145# include <limits.h>
31146#else
31147# include <assert.h>
31148#endif
31149
31150#undef $ac_func
31151
31152/* Override any GCC internal prototype to avoid an error.
31153 Use char because int might match the return type of a GCC
31154 builtin and then its argument prototype would still apply. */
31155#ifdef __cplusplus
31156extern "C"
31157#endif
31158char $ac_func ();
31159/* The GNU C library defines this for functions which it implements
31160 to always fail with ENOSYS. Some functions are actually named
31161 something starting with __ and the normal name is an alias. */
31162#if defined __stub_$ac_func || defined __stub___$ac_func
31163choke me
31164#endif
31165
31166int
31167main ()
31168{
31169return $ac_func ();
31170 ;
31171 return 0;
31172}
31173_ACEOF
31174rm -f conftest.$ac_objext conftest$ac_exeext
31175if { (ac_try="$ac_link"
31176case "(($ac_try" in
31177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31178 *) ac_try_echo=$ac_try;;
31179esac
31180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31181 (eval "$ac_link") 2>conftest.er1
31182 ac_status=$?
31183 grep -v '^ *+' conftest.er1 >conftest.err
31184 rm -f conftest.er1
31185 cat conftest.err >&5
31186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31187 (exit $ac_status); } && {
31188 test -z "$ac_c_werror_flag" ||
31189 test ! -s conftest.err
31190 } && test -s conftest$ac_exeext &&
31191 $as_test_x conftest$ac_exeext; then
31192 eval "$as_ac_var=yes"
31193else
31194 echo "$as_me: failed program was:" >&5
31195sed 's/^/| /' conftest.$ac_ext >&5
31196
31197 eval "$as_ac_var=no"
31198fi
31199
31200rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31201 conftest$ac_exeext conftest.$ac_ext
31202fi
31203ac_res=`eval echo '${'$as_ac_var'}'`
31204 { echo "$as_me:$LINENO: result: $ac_res" >&5
31205echo "${ECHO_T}$ac_res" >&6; }
31206if test `eval echo '${'$as_ac_var'}'` = yes; then
16387 cat >>confdefs.h <<_ACEOF 31207 cat >>confdefs.h <<_ACEOF
16388#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 31208#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16389_ACEOF 31209_ACEOF
16390 31210
16391fi 31211fi
16392done 31212done
16393 31213
16394 ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h> 31214 { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5
31215echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; }
31216if test "${ac_cv_have_decl__getshort+set}" = set; then
31217 echo $ECHO_N "(cached) $ECHO_C" >&6
31218else
31219 cat >conftest.$ac_ext <<_ACEOF
31220/* confdefs.h. */
31221_ACEOF
31222cat confdefs.h >>conftest.$ac_ext
31223cat >>conftest.$ac_ext <<_ACEOF
31224/* end confdefs.h. */
31225#include <sys/types.h>
16395 #include <arpa/nameser.h> 31226 #include <arpa/nameser.h>
16396" 31227
16397if test "x$ac_cv_have_decl__getshort" = xyes; then : 31228int
16398 ac_have_decl=1 31229main ()
31230{
31231#ifndef _getshort
31232 (void) _getshort;
31233#endif
31234
31235 ;
31236 return 0;
31237}
31238_ACEOF
31239rm -f conftest.$ac_objext
31240if { (ac_try="$ac_compile"
31241case "(($ac_try" in
31242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31243 *) ac_try_echo=$ac_try;;
31244esac
31245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31246 (eval "$ac_compile") 2>conftest.er1
31247 ac_status=$?
31248 grep -v '^ *+' conftest.er1 >conftest.err
31249 rm -f conftest.er1
31250 cat conftest.err >&5
31251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252 (exit $ac_status); } && {
31253 test -z "$ac_c_werror_flag" ||
31254 test ! -s conftest.err
31255 } && test -s conftest.$ac_objext; then
31256 ac_cv_have_decl__getshort=yes
16399else 31257else
16400 ac_have_decl=0 31258 echo "$as_me: failed program was:" >&5
31259sed 's/^/| /' conftest.$ac_ext >&5
31260
31261 ac_cv_have_decl__getshort=no
16401fi 31262fi
16402 31263
31264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31265fi
31266{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5
31267echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; }
31268if test $ac_cv_have_decl__getshort = yes; then
31269
16403cat >>confdefs.h <<_ACEOF 31270cat >>confdefs.h <<_ACEOF
16404#define HAVE_DECL__GETSHORT $ac_have_decl 31271#define HAVE_DECL__GETSHORT 1
16405_ACEOF 31272_ACEOF
16406ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h> 31273
31274
31275else
31276 cat >>confdefs.h <<_ACEOF
31277#define HAVE_DECL__GETSHORT 0
31278_ACEOF
31279
31280
31281fi
31282{ echo "$as_me:$LINENO: checking whether _getlong is declared" >&5
31283echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; }
31284if test "${ac_cv_have_decl__getlong+set}" = set; then
31285 echo $ECHO_N "(cached) $ECHO_C" >&6
31286else
31287 cat >conftest.$ac_ext <<_ACEOF
31288/* confdefs.h. */
31289_ACEOF
31290cat confdefs.h >>conftest.$ac_ext
31291cat >>conftest.$ac_ext <<_ACEOF
31292/* end confdefs.h. */
31293#include <sys/types.h>
16407 #include <arpa/nameser.h> 31294 #include <arpa/nameser.h>
16408" 31295
16409if test "x$ac_cv_have_decl__getlong" = xyes; then : 31296int
16410 ac_have_decl=1 31297main ()
31298{
31299#ifndef _getlong
31300 (void) _getlong;
31301#endif
31302
31303 ;
31304 return 0;
31305}
31306_ACEOF
31307rm -f conftest.$ac_objext
31308if { (ac_try="$ac_compile"
31309case "(($ac_try" in
31310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31311 *) ac_try_echo=$ac_try;;
31312esac
31313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31314 (eval "$ac_compile") 2>conftest.er1
31315 ac_status=$?
31316 grep -v '^ *+' conftest.er1 >conftest.err
31317 rm -f conftest.er1
31318 cat conftest.err >&5
31319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31320 (exit $ac_status); } && {
31321 test -z "$ac_c_werror_flag" ||
31322 test ! -s conftest.err
31323 } && test -s conftest.$ac_objext; then
31324 ac_cv_have_decl__getlong=yes
16411else 31325else
16412 ac_have_decl=0 31326 echo "$as_me: failed program was:" >&5
31327sed 's/^/| /' conftest.$ac_ext >&5
31328
31329 ac_cv_have_decl__getlong=no
31330fi
31331
31332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16413fi 31333fi
31334{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5
31335echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; }
31336if test $ac_cv_have_decl__getlong = yes; then
16414 31337
16415cat >>confdefs.h <<_ACEOF 31338cat >>confdefs.h <<_ACEOF
16416#define HAVE_DECL__GETLONG $ac_have_decl 31339#define HAVE_DECL__GETLONG 1
16417_ACEOF 31340_ACEOF
16418 31341
16419 ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h>
16420"
16421if test "x$ac_cv_member_HEADER_ad" = xyes; then :
16422 31342
16423$as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h 31343else
31344 cat >>confdefs.h <<_ACEOF
31345#define HAVE_DECL__GETLONG 0
31346_ACEOF
31347
31348
31349fi
31350
31351
31352 { echo "$as_me:$LINENO: checking for HEADER.ad" >&5
31353echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; }
31354if test "${ac_cv_member_HEADER_ad+set}" = set; then
31355 echo $ECHO_N "(cached) $ECHO_C" >&6
31356else
31357 cat >conftest.$ac_ext <<_ACEOF
31358/* confdefs.h. */
31359_ACEOF
31360cat confdefs.h >>conftest.$ac_ext
31361cat >>conftest.$ac_ext <<_ACEOF
31362/* end confdefs.h. */
31363#include <arpa/nameser.h>
31364
31365int
31366main ()
31367{
31368static HEADER ac_aggr;
31369if (ac_aggr.ad)
31370return 0;
31371 ;
31372 return 0;
31373}
31374_ACEOF
31375rm -f conftest.$ac_objext
31376if { (ac_try="$ac_compile"
31377case "(($ac_try" in
31378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31379 *) ac_try_echo=$ac_try;;
31380esac
31381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31382 (eval "$ac_compile") 2>conftest.er1
31383 ac_status=$?
31384 grep -v '^ *+' conftest.er1 >conftest.err
31385 rm -f conftest.er1
31386 cat conftest.err >&5
31387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31388 (exit $ac_status); } && {
31389 test -z "$ac_c_werror_flag" ||
31390 test ! -s conftest.err
31391 } && test -s conftest.$ac_objext; then
31392 ac_cv_member_HEADER_ad=yes
31393else
31394 echo "$as_me: failed program was:" >&5
31395sed 's/^/| /' conftest.$ac_ext >&5
31396
31397 cat >conftest.$ac_ext <<_ACEOF
31398/* confdefs.h. */
31399_ACEOF
31400cat confdefs.h >>conftest.$ac_ext
31401cat >>conftest.$ac_ext <<_ACEOF
31402/* end confdefs.h. */
31403#include <arpa/nameser.h>
16424 31404
31405int
31406main ()
31407{
31408static HEADER ac_aggr;
31409if (sizeof ac_aggr.ad)
31410return 0;
31411 ;
31412 return 0;
31413}
31414_ACEOF
31415rm -f conftest.$ac_objext
31416if { (ac_try="$ac_compile"
31417case "(($ac_try" in
31418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31419 *) ac_try_echo=$ac_try;;
31420esac
31421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31422 (eval "$ac_compile") 2>conftest.er1
31423 ac_status=$?
31424 grep -v '^ *+' conftest.er1 >conftest.err
31425 rm -f conftest.er1
31426 cat conftest.err >&5
31427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31428 (exit $ac_status); } && {
31429 test -z "$ac_c_werror_flag" ||
31430 test ! -s conftest.err
31431 } && test -s conftest.$ac_objext; then
31432 ac_cv_member_HEADER_ad=yes
31433else
31434 echo "$as_me: failed program was:" >&5
31435sed 's/^/| /' conftest.$ac_ext >&5
31436
31437 ac_cv_member_HEADER_ad=no
16425fi 31438fi
16426 31439
31440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31441fi
16427 31442
31443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16428fi 31444fi
31445{ echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5
31446echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; }
31447if test $ac_cv_member_HEADER_ad = yes; then
16429 31448
31449cat >>confdefs.h <<\_ACEOF
31450#define HAVE_HEADER_AD 1
31451_ACEOF
31452
31453fi
16430 31454
16431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5 31455
16432$as_echo_n "checking if struct __res_state _res is an extern... " >&6; } 31456fi
16433cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31457
31458
31459{ echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5
31460echo $ECHO_N "checking if struct __res_state _res is an extern... $ECHO_C" >&6; }
31461cat >conftest.$ac_ext <<_ACEOF
31462/* confdefs.h. */
31463_ACEOF
31464cat confdefs.h >>conftest.$ac_ext
31465cat >>conftest.$ac_ext <<_ACEOF
16434/* end confdefs.h. */ 31466/* end confdefs.h. */
16435 31467
16436#include <stdio.h> 31468#include <stdio.h>
@@ -16450,49 +31482,209 @@ main ()
16450 return 0; 31482 return 0;
16451} 31483}
16452_ACEOF 31484_ACEOF
16453if ac_fn_c_try_link "$LINENO"; then : 31485rm -f conftest.$ac_objext conftest$ac_exeext
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31486if { (ac_try="$ac_link"
16455$as_echo "yes" >&6; } 31487case "(($ac_try" in
31488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31489 *) ac_try_echo=$ac_try;;
31490esac
31491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31492 (eval "$ac_link") 2>conftest.er1
31493 ac_status=$?
31494 grep -v '^ *+' conftest.er1 >conftest.err
31495 rm -f conftest.er1
31496 cat conftest.err >&5
31497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31498 (exit $ac_status); } && {
31499 test -z "$ac_c_werror_flag" ||
31500 test ! -s conftest.err
31501 } && test -s conftest$ac_exeext &&
31502 $as_test_x conftest$ac_exeext; then
31503 { echo "$as_me:$LINENO: result: yes" >&5
31504echo "${ECHO_T}yes" >&6; }
16456 31505
16457$as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h 31506cat >>confdefs.h <<\_ACEOF
31507#define HAVE__RES_EXTERN 1
31508_ACEOF
16458 31509
16459 31510
16460else 31511else
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31512 echo "$as_me: failed program was:" >&5
16462$as_echo "no" >&6; } 31513sed 's/^/| /' conftest.$ac_ext >&5
31514
31515 { echo "$as_me:$LINENO: result: no" >&5
31516echo "${ECHO_T}no" >&6; }
16463 31517
16464fi 31518fi
16465rm -f core conftest.err conftest.$ac_objext \ 31519
16466 conftest$ac_exeext conftest.$ac_ext 31520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31521 conftest$ac_exeext conftest.$ac_ext
16467 31522
16468# Check whether user wants SELinux support 31523# Check whether user wants SELinux support
16469SELINUX_MSG="no" 31524SELINUX_MSG="no"
16470LIBSELINUX="" 31525LIBSELINUX=""
16471 31526
16472# Check whether --with-selinux was given. 31527# Check whether --with-selinux was given.
16473if test "${with_selinux+set}" = set; then : 31528if test "${with_selinux+set}" = set; then
16474 withval=$with_selinux; if test "x$withval" != "xno" ; then 31529 withval=$with_selinux; if test "x$withval" != "xno" ; then
16475 save_LIBS="$LIBS" 31530 save_LIBS="$LIBS"
16476 31531
16477$as_echo "#define WITH_SELINUX 1" >>confdefs.h 31532cat >>confdefs.h <<\_ACEOF
31533#define WITH_SELINUX 1
31534_ACEOF
16478 31535
16479 SELINUX_MSG="yes" 31536 SELINUX_MSG="yes"
16480 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" 31537 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
16481if test "x$ac_cv_header_selinux_selinux_h" = xyes; then : 31538 { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
31539echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
31540if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
31541 echo $ECHO_N "(cached) $ECHO_C" >&6
31542fi
31543{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
31544echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
31545else
31546 # Is the header compilable?
31547{ echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
31548echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; }
31549cat >conftest.$ac_ext <<_ACEOF
31550/* confdefs.h. */
31551_ACEOF
31552cat confdefs.h >>conftest.$ac_ext
31553cat >>conftest.$ac_ext <<_ACEOF
31554/* end confdefs.h. */
31555$ac_includes_default
31556#include <selinux/selinux.h>
31557_ACEOF
31558rm -f conftest.$ac_objext
31559if { (ac_try="$ac_compile"
31560case "(($ac_try" in
31561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31562 *) ac_try_echo=$ac_try;;
31563esac
31564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31565 (eval "$ac_compile") 2>conftest.er1
31566 ac_status=$?
31567 grep -v '^ *+' conftest.er1 >conftest.err
31568 rm -f conftest.er1
31569 cat conftest.err >&5
31570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31571 (exit $ac_status); } && {
31572 test -z "$ac_c_werror_flag" ||
31573 test ! -s conftest.err
31574 } && test -s conftest.$ac_objext; then
31575 ac_header_compiler=yes
31576else
31577 echo "$as_me: failed program was:" >&5
31578sed 's/^/| /' conftest.$ac_ext >&5
31579
31580 ac_header_compiler=no
31581fi
31582
31583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31584{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31585echo "${ECHO_T}$ac_header_compiler" >&6; }
31586
31587# Is the header present?
31588{ echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
31589echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; }
31590cat >conftest.$ac_ext <<_ACEOF
31591/* confdefs.h. */
31592_ACEOF
31593cat confdefs.h >>conftest.$ac_ext
31594cat >>conftest.$ac_ext <<_ACEOF
31595/* end confdefs.h. */
31596#include <selinux/selinux.h>
31597_ACEOF
31598if { (ac_try="$ac_cpp conftest.$ac_ext"
31599case "(($ac_try" in
31600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31601 *) ac_try_echo=$ac_try;;
31602esac
31603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31605 ac_status=$?
31606 grep -v '^ *+' conftest.er1 >conftest.err
31607 rm -f conftest.er1
31608 cat conftest.err >&5
31609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31610 (exit $ac_status); } >/dev/null && {
31611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31612 test ! -s conftest.err
31613 }; then
31614 ac_header_preproc=yes
31615else
31616 echo "$as_me: failed program was:" >&5
31617sed 's/^/| /' conftest.$ac_ext >&5
16482 31618
31619 ac_header_preproc=no
31620fi
31621
31622rm -f conftest.err conftest.$ac_ext
31623{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31624echo "${ECHO_T}$ac_header_preproc" >&6; }
31625
31626# So? What about this header?
31627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31628 yes:no: )
31629 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
31630echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31631 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
31632echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
31633 ac_header_preproc=yes
31634 ;;
31635 no:yes:* )
31636 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
31637echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
31638 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
31639echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
31640 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
31641echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
31642 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
31643echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
31644 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
31645echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
31646 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
31647echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
31648 ( cat <<\_ASBOX
31649## ------------------------------------------- ##
31650## Report this to openssh-unix-dev@mindrot.org ##
31651## ------------------------------------------- ##
31652_ASBOX
31653 ) | sed "s/^/$as_me: WARNING: /" >&2
31654 ;;
31655esac
31656{ echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
31657echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
31658if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
31659 echo $ECHO_N "(cached) $ECHO_C" >&6
16483else 31660else
16484 as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5 31661 ac_cv_header_selinux_selinux_h=$ac_header_preproc
16485fi 31662fi
31663{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
31664echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
16486 31665
31666fi
31667if test $ac_cv_header_selinux_selinux_h = yes; then
31668 :
31669else
31670 { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5
31671echo "$as_me: error: SELinux support requires selinux.h header" >&2;}
31672 { (exit 1); exit 1; }; }
31673fi
16487 31674
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5 31675
16489$as_echo_n "checking for setexeccon in -lselinux... " >&6; } 31676 { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5
16490if ${ac_cv_lib_selinux_setexeccon+:} false; then : 31677echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; }
16491 $as_echo_n "(cached) " >&6 31678if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then
31679 echo $ECHO_N "(cached) $ECHO_C" >&6
16492else 31680else
16493 ac_check_lib_save_LIBS=$LIBS 31681 ac_check_lib_save_LIBS=$LIBS
16494LIBS="-lselinux $LIBS" 31682LIBS="-lselinux $LIBS"
16495cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31683cat >conftest.$ac_ext <<_ACEOF
31684/* confdefs.h. */
31685_ACEOF
31686cat confdefs.h >>conftest.$ac_ext
31687cat >>conftest.$ac_ext <<_ACEOF
16496/* end confdefs.h. */ 31688/* end confdefs.h. */
16497 31689
16498/* Override any GCC internal prototype to avoid an error. 31690/* Override any GCC internal prototype to avoid an error.
@@ -16510,34 +31702,140 @@ return setexeccon ();
16510 return 0; 31702 return 0;
16511} 31703}
16512_ACEOF 31704_ACEOF
16513if ac_fn_c_try_link "$LINENO"; then : 31705rm -f conftest.$ac_objext conftest$ac_exeext
31706if { (ac_try="$ac_link"
31707case "(($ac_try" in
31708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31709 *) ac_try_echo=$ac_try;;
31710esac
31711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31712 (eval "$ac_link") 2>conftest.er1
31713 ac_status=$?
31714 grep -v '^ *+' conftest.er1 >conftest.err
31715 rm -f conftest.er1
31716 cat conftest.err >&5
31717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31718 (exit $ac_status); } && {
31719 test -z "$ac_c_werror_flag" ||
31720 test ! -s conftest.err
31721 } && test -s conftest$ac_exeext &&
31722 $as_test_x conftest$ac_exeext; then
16514 ac_cv_lib_selinux_setexeccon=yes 31723 ac_cv_lib_selinux_setexeccon=yes
16515else 31724else
16516 ac_cv_lib_selinux_setexeccon=no 31725 echo "$as_me: failed program was:" >&5
31726sed 's/^/| /' conftest.$ac_ext >&5
31727
31728 ac_cv_lib_selinux_setexeccon=no
16517fi 31729fi
16518rm -f core conftest.err conftest.$ac_objext \ 31730
16519 conftest$ac_exeext conftest.$ac_ext 31731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31732 conftest$ac_exeext conftest.$ac_ext
16520LIBS=$ac_check_lib_save_LIBS 31733LIBS=$ac_check_lib_save_LIBS
16521fi 31734fi
16522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5 31735{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5
16523$as_echo "$ac_cv_lib_selinux_setexeccon" >&6; } 31736echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; }
16524if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then : 31737if test $ac_cv_lib_selinux_setexeccon = yes; then
16525 LIBSELINUX="-lselinux" 31738 LIBSELINUX="-lselinux"
16526 LIBS="$LIBS -lselinux" 31739 LIBS="$LIBS -lselinux"
16527 31740
16528else 31741else
16529 as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5 31742 { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5
31743echo "$as_me: error: SELinux support requires libselinux library" >&2;}
31744 { (exit 1); exit 1; }; }
16530fi 31745fi
16531 31746
16532 SSHLIBS="$SSHLIBS $LIBSELINUX" 31747 SSHLIBS="$SSHLIBS $LIBSELINUX"
16533 SSHDLIBS="$SSHDLIBS $LIBSELINUX" 31748 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
16534 for ac_func in getseuserbyname get_default_context_with_level 31749
16535do : 31750
16536 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 31751for ac_func in getseuserbyname get_default_context_with_level
16537ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 31752do
16538if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 31753as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31754{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31755echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31756if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31757 echo $ECHO_N "(cached) $ECHO_C" >&6
31758else
31759 cat >conftest.$ac_ext <<_ACEOF
31760/* confdefs.h. */
31761_ACEOF
31762cat confdefs.h >>conftest.$ac_ext
31763cat >>conftest.$ac_ext <<_ACEOF
31764/* end confdefs.h. */
31765/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31767#define $ac_func innocuous_$ac_func
31768
31769/* System header to define __stub macros and hopefully few prototypes,
31770 which can conflict with char $ac_func (); below.
31771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31772 <limits.h> exists even on freestanding compilers. */
31773
31774#ifdef __STDC__
31775# include <limits.h>
31776#else
31777# include <assert.h>
31778#endif
31779
31780#undef $ac_func
31781
31782/* Override any GCC internal prototype to avoid an error.
31783 Use char because int might match the return type of a GCC
31784 builtin and then its argument prototype would still apply. */
31785#ifdef __cplusplus
31786extern "C"
31787#endif
31788char $ac_func ();
31789/* The GNU C library defines this for functions which it implements
31790 to always fail with ENOSYS. Some functions are actually named
31791 something starting with __ and the normal name is an alias. */
31792#if defined __stub_$ac_func || defined __stub___$ac_func
31793choke me
31794#endif
31795
31796int
31797main ()
31798{
31799return $ac_func ();
31800 ;
31801 return 0;
31802}
31803_ACEOF
31804rm -f conftest.$ac_objext conftest$ac_exeext
31805if { (ac_try="$ac_link"
31806case "(($ac_try" in
31807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31808 *) ac_try_echo=$ac_try;;
31809esac
31810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31811 (eval "$ac_link") 2>conftest.er1
31812 ac_status=$?
31813 grep -v '^ *+' conftest.er1 >conftest.err
31814 rm -f conftest.er1
31815 cat conftest.err >&5
31816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31817 (exit $ac_status); } && {
31818 test -z "$ac_c_werror_flag" ||
31819 test ! -s conftest.err
31820 } && test -s conftest$ac_exeext &&
31821 $as_test_x conftest$ac_exeext; then
31822 eval "$as_ac_var=yes"
31823else
31824 echo "$as_me: failed program was:" >&5
31825sed 's/^/| /' conftest.$ac_ext >&5
31826
31827 eval "$as_ac_var=no"
31828fi
31829
31830rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31831 conftest$ac_exeext conftest.$ac_ext
31832fi
31833ac_res=`eval echo '${'$as_ac_var'}'`
31834 { echo "$as_me:$LINENO: result: $ac_res" >&5
31835echo "${ECHO_T}$ac_res" >&6; }
31836if test `eval echo '${'$as_ac_var'}'` = yes; then
16539 cat >>confdefs.h <<_ACEOF 31837 cat >>confdefs.h <<_ACEOF
16540#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 31838#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16541_ACEOF 31839_ACEOF
16542 31840
16543fi 31841fi
@@ -16555,7 +31853,7 @@ fi
16555KRB5_MSG="no" 31853KRB5_MSG="no"
16556 31854
16557# Check whether --with-kerberos5 was given. 31855# Check whether --with-kerberos5 was given.
16558if test "${with_kerberos5+set}" = set; then : 31856if test "${with_kerberos5+set}" = set; then
16559 withval=$with_kerberos5; if test "x$withval" != "xno" ; then 31857 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
16560 if test "x$withval" = "xyes" ; then 31858 if test "x$withval" = "xyes" ; then
16561 KRB5ROOT="/usr/local" 31859 KRB5ROOT="/usr/local"
@@ -16564,16 +31862,18 @@ if test "${with_kerberos5+set}" = set; then :
16564 fi 31862 fi
16565 31863
16566 31864
16567$as_echo "#define KRB5 1" >>confdefs.h 31865cat >>confdefs.h <<\_ACEOF
31866#define KRB5 1
31867_ACEOF
16568 31868
16569 KRB5_MSG="yes" 31869 KRB5_MSG="yes"
16570 31870
16571 # Extract the first word of "krb5-config", so it can be a program name with args. 31871 # Extract the first word of "krb5-config", so it can be a program name with args.
16572set dummy krb5-config; ac_word=$2 31872set dummy krb5-config; ac_word=$2
16573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31873{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16574$as_echo_n "checking for $ac_word... " >&6; } 31874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16575if ${ac_cv_path_KRB5CONF+:} false; then : 31875if test "${ac_cv_path_KRB5CONF+set}" = set; then
16576 $as_echo_n "(cached) " >&6 31876 echo $ECHO_N "(cached) $ECHO_C" >&6
16577else 31877else
16578 case $KRB5CONF in 31878 case $KRB5CONF in
16579 [\\/]* | ?:[\\/]*) 31879 [\\/]* | ?:[\\/]*)
@@ -16586,14 +31886,14 @@ for as_dir in $as_dummy
16586do 31886do
16587 IFS=$as_save_IFS 31887 IFS=$as_save_IFS
16588 test -z "$as_dir" && as_dir=. 31888 test -z "$as_dir" && as_dir=.
16589 for ac_exec_ext in '' $ac_executable_extensions; do 31889 for ac_exec_ext in '' $ac_executable_extensions; do
16590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 31890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16591 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext" 31891 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
16592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16593 break 2 31893 break 2
16594 fi 31894 fi
16595done 31895done
16596 done 31896done
16597IFS=$as_save_IFS 31897IFS=$as_save_IFS
16598 31898
16599 test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config" 31899 test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
@@ -16602,11 +31902,11 @@ esac
16602fi 31902fi
16603KRB5CONF=$ac_cv_path_KRB5CONF 31903KRB5CONF=$ac_cv_path_KRB5CONF
16604if test -n "$KRB5CONF"; then 31904if test -n "$KRB5CONF"; then
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5 31905 { echo "$as_me:$LINENO: result: $KRB5CONF" >&5
16606$as_echo "$KRB5CONF" >&6; } 31906echo "${ECHO_T}$KRB5CONF" >&6; }
16607else 31907else
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31908 { echo "$as_me:$LINENO: result: no" >&5
16609$as_echo "no" >&6; } 31909echo "${ECHO_T}no" >&6; }
16610fi 31910fi
16611 31911
16612 31912
@@ -16615,24 +31915,30 @@ fi
16615 K5LIBS="`$KRB5CONF --libs`" 31915 K5LIBS="`$KRB5CONF --libs`"
16616 CPPFLAGS="$CPPFLAGS $K5CFLAGS" 31916 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
16617 31917
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5 31918 { echo "$as_me:$LINENO: checking for gssapi support" >&5
16619$as_echo_n "checking for gssapi support... " >&6; } 31919echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; }
16620 if $KRB5CONF | grep gssapi >/dev/null ; then 31920 if $KRB5CONF | grep gssapi >/dev/null ; then
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31921 { echo "$as_me:$LINENO: result: yes" >&5
16622$as_echo "yes" >&6; } 31922echo "${ECHO_T}yes" >&6; }
16623 31923
16624$as_echo "#define GSSAPI 1" >>confdefs.h 31924cat >>confdefs.h <<\_ACEOF
31925#define GSSAPI 1
31926_ACEOF
16625 31927
16626 GSSCFLAGS="`$KRB5CONF --cflags gssapi`" 31928 GSSCFLAGS="`$KRB5CONF --cflags gssapi`"
16627 GSSLIBS="`$KRB5CONF --libs gssapi`" 31929 GSSLIBS="`$KRB5CONF --libs gssapi`"
16628 CPPFLAGS="$CPPFLAGS $GSSCFLAGS" 31930 CPPFLAGS="$CPPFLAGS $GSSCFLAGS"
16629 else 31931 else
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31932 { echo "$as_me:$LINENO: result: no" >&5
16631$as_echo "no" >&6; } 31933echo "${ECHO_T}no" >&6; }
16632 fi 31934 fi
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 31935 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
16634$as_echo_n "checking whether we are using Heimdal... " >&6; } 31936echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
16635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31937 cat >conftest.$ac_ext <<_ACEOF
31938/* confdefs.h. */
31939_ACEOF
31940cat confdefs.h >>conftest.$ac_ext
31941cat >>conftest.$ac_ext <<_ACEOF
16636/* end confdefs.h. */ 31942/* end confdefs.h. */
16637 #include <krb5.h> 31943 #include <krb5.h>
16638 31944
@@ -16644,24 +31950,50 @@ main ()
16644 return 0; 31950 return 0;
16645} 31951}
16646_ACEOF 31952_ACEOF
16647if ac_fn_c_try_compile "$LINENO"; then : 31953rm -f conftest.$ac_objext
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31954if { (ac_try="$ac_compile"
16649$as_echo "yes" >&6; } 31955case "(($ac_try" in
31956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31957 *) ac_try_echo=$ac_try;;
31958esac
31959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31960 (eval "$ac_compile") 2>conftest.er1
31961 ac_status=$?
31962 grep -v '^ *+' conftest.er1 >conftest.err
31963 rm -f conftest.er1
31964 cat conftest.err >&5
31965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31966 (exit $ac_status); } && {
31967 test -z "$ac_c_werror_flag" ||
31968 test ! -s conftest.err
31969 } && test -s conftest.$ac_objext; then
31970 { echo "$as_me:$LINENO: result: yes" >&5
31971echo "${ECHO_T}yes" >&6; }
16650 31972
16651$as_echo "#define HEIMDAL 1" >>confdefs.h 31973cat >>confdefs.h <<\_ACEOF
31974#define HEIMDAL 1
31975_ACEOF
16652 31976
16653else 31977else
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31978 echo "$as_me: failed program was:" >&5
16655$as_echo "no" >&6; } 31979sed 's/^/| /' conftest.$ac_ext >&5
31980
31981 { echo "$as_me:$LINENO: result: no" >&5
31982echo "${ECHO_T}no" >&6; }
16656 31983
16657fi 31984fi
31985
16658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16659 else 31987 else
16660 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" 31988 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
16661 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" 31989 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 31990 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
16663$as_echo_n "checking whether we are using Heimdal... " >&6; } 31991echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
16664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31992 cat >conftest.$ac_ext <<_ACEOF
31993/* confdefs.h. */
31994_ACEOF
31995cat confdefs.h >>conftest.$ac_ext
31996cat >>conftest.$ac_ext <<_ACEOF
16665/* end confdefs.h. */ 31997/* end confdefs.h. */
16666 #include <krb5.h> 31998 #include <krb5.h>
16667 31999
@@ -16673,21 +32005,43 @@ main ()
16673 return 0; 32005 return 0;
16674} 32006}
16675_ACEOF 32007_ACEOF
16676if ac_fn_c_try_compile "$LINENO"; then : 32008rm -f conftest.$ac_objext
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32009if { (ac_try="$ac_compile"
16678$as_echo "yes" >&6; } 32010case "(($ac_try" in
16679 $as_echo "#define HEIMDAL 1" >>confdefs.h 32011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32012 *) ac_try_echo=$ac_try;;
32013esac
32014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32015 (eval "$ac_compile") 2>conftest.er1
32016 ac_status=$?
32017 grep -v '^ *+' conftest.er1 >conftest.err
32018 rm -f conftest.er1
32019 cat conftest.err >&5
32020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32021 (exit $ac_status); } && {
32022 test -z "$ac_c_werror_flag" ||
32023 test ! -s conftest.err
32024 } && test -s conftest.$ac_objext; then
32025 { echo "$as_me:$LINENO: result: yes" >&5
32026echo "${ECHO_T}yes" >&6; }
32027 cat >>confdefs.h <<\_ACEOF
32028#define HEIMDAL 1
32029_ACEOF
16680 32030
16681 K5LIBS="-lkrb5" 32031 K5LIBS="-lkrb5"
16682 K5LIBS="$K5LIBS -lcom_err -lasn1" 32032 K5LIBS="$K5LIBS -lcom_err -lasn1"
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5 32033 { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5
16684$as_echo_n "checking for net_write in -lroken... " >&6; } 32034echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; }
16685if ${ac_cv_lib_roken_net_write+:} false; then : 32035if test "${ac_cv_lib_roken_net_write+set}" = set; then
16686 $as_echo_n "(cached) " >&6 32036 echo $ECHO_N "(cached) $ECHO_C" >&6
16687else 32037else
16688 ac_check_lib_save_LIBS=$LIBS 32038 ac_check_lib_save_LIBS=$LIBS
16689LIBS="-lroken $LIBS" 32039LIBS="-lroken $LIBS"
16690cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32040cat >conftest.$ac_ext <<_ACEOF
32041/* confdefs.h. */
32042_ACEOF
32043cat confdefs.h >>conftest.$ac_ext
32044cat >>conftest.$ac_ext <<_ACEOF
16691/* end confdefs.h. */ 32045/* end confdefs.h. */
16692 32046
16693/* Override any GCC internal prototype to avoid an error. 32047/* Override any GCC internal prototype to avoid an error.
@@ -16705,29 +32059,54 @@ return net_write ();
16705 return 0; 32059 return 0;
16706} 32060}
16707_ACEOF 32061_ACEOF
16708if ac_fn_c_try_link "$LINENO"; then : 32062rm -f conftest.$ac_objext conftest$ac_exeext
32063if { (ac_try="$ac_link"
32064case "(($ac_try" in
32065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32066 *) ac_try_echo=$ac_try;;
32067esac
32068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32069 (eval "$ac_link") 2>conftest.er1
32070 ac_status=$?
32071 grep -v '^ *+' conftest.er1 >conftest.err
32072 rm -f conftest.er1
32073 cat conftest.err >&5
32074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32075 (exit $ac_status); } && {
32076 test -z "$ac_c_werror_flag" ||
32077 test ! -s conftest.err
32078 } && test -s conftest$ac_exeext &&
32079 $as_test_x conftest$ac_exeext; then
16709 ac_cv_lib_roken_net_write=yes 32080 ac_cv_lib_roken_net_write=yes
16710else 32081else
16711 ac_cv_lib_roken_net_write=no 32082 echo "$as_me: failed program was:" >&5
32083sed 's/^/| /' conftest.$ac_ext >&5
32084
32085 ac_cv_lib_roken_net_write=no
16712fi 32086fi
16713rm -f core conftest.err conftest.$ac_objext \ 32087
16714 conftest$ac_exeext conftest.$ac_ext 32088rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32089 conftest$ac_exeext conftest.$ac_ext
16715LIBS=$ac_check_lib_save_LIBS 32090LIBS=$ac_check_lib_save_LIBS
16716fi 32091fi
16717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5 32092{ echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5
16718$as_echo "$ac_cv_lib_roken_net_write" >&6; } 32093echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; }
16719if test "x$ac_cv_lib_roken_net_write" = xyes; then : 32094if test $ac_cv_lib_roken_net_write = yes; then
16720 K5LIBS="$K5LIBS -lroken" 32095 K5LIBS="$K5LIBS -lroken"
16721fi 32096fi
16722 32097
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5 32098 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
16724$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } 32099echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
16725if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then : 32100if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
16726 $as_echo_n "(cached) " >&6 32101 echo $ECHO_N "(cached) $ECHO_C" >&6
16727else 32102else
16728 ac_check_lib_save_LIBS=$LIBS 32103 ac_check_lib_save_LIBS=$LIBS
16729LIBS="-ldes $LIBS" 32104LIBS="-ldes $LIBS"
16730cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32105cat >conftest.$ac_ext <<_ACEOF
32106/* confdefs.h. */
32107_ACEOF
32108cat confdefs.h >>conftest.$ac_ext
32109cat >>conftest.$ac_ext <<_ACEOF
16731/* end confdefs.h. */ 32110/* end confdefs.h. */
16732 32111
16733/* Override any GCC internal prototype to avoid an error. 32112/* Override any GCC internal prototype to avoid an error.
@@ -16745,37 +32124,66 @@ return des_cbc_encrypt ();
16745 return 0; 32124 return 0;
16746} 32125}
16747_ACEOF 32126_ACEOF
16748if ac_fn_c_try_link "$LINENO"; then : 32127rm -f conftest.$ac_objext conftest$ac_exeext
32128if { (ac_try="$ac_link"
32129case "(($ac_try" in
32130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32131 *) ac_try_echo=$ac_try;;
32132esac
32133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32134 (eval "$ac_link") 2>conftest.er1
32135 ac_status=$?
32136 grep -v '^ *+' conftest.er1 >conftest.err
32137 rm -f conftest.er1
32138 cat conftest.err >&5
32139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32140 (exit $ac_status); } && {
32141 test -z "$ac_c_werror_flag" ||
32142 test ! -s conftest.err
32143 } && test -s conftest$ac_exeext &&
32144 $as_test_x conftest$ac_exeext; then
16749 ac_cv_lib_des_des_cbc_encrypt=yes 32145 ac_cv_lib_des_des_cbc_encrypt=yes
16750else 32146else
16751 ac_cv_lib_des_des_cbc_encrypt=no 32147 echo "$as_me: failed program was:" >&5
32148sed 's/^/| /' conftest.$ac_ext >&5
32149
32150 ac_cv_lib_des_des_cbc_encrypt=no
16752fi 32151fi
16753rm -f core conftest.err conftest.$ac_objext \ 32152
16754 conftest$ac_exeext conftest.$ac_ext 32153rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32154 conftest$ac_exeext conftest.$ac_ext
16755LIBS=$ac_check_lib_save_LIBS 32155LIBS=$ac_check_lib_save_LIBS
16756fi 32156fi
16757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 32157{ echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16758$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } 32158echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16759if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then : 32159if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
16760 K5LIBS="$K5LIBS -ldes" 32160 K5LIBS="$K5LIBS -ldes"
16761fi 32161fi
16762 32162
16763 32163
16764else 32164else
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32165 echo "$as_me: failed program was:" >&5
16766$as_echo "no" >&6; } 32166sed 's/^/| /' conftest.$ac_ext >&5
32167
32168 { echo "$as_me:$LINENO: result: no" >&5
32169echo "${ECHO_T}no" >&6; }
16767 K5LIBS="-lkrb5 -lk5crypto -lcom_err" 32170 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
16768 32171
16769 32172
16770fi 32173fi
32174
16771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5 32176 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
16773$as_echo_n "checking for library containing dn_expand... " >&6; } 32177echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
16774if ${ac_cv_search_dn_expand+:} false; then : 32178if test "${ac_cv_search_dn_expand+set}" = set; then
16775 $as_echo_n "(cached) " >&6 32179 echo $ECHO_N "(cached) $ECHO_C" >&6
16776else 32180else
16777 ac_func_search_save_LIBS=$LIBS 32181 ac_func_search_save_LIBS=$LIBS
16778cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32182cat >conftest.$ac_ext <<_ACEOF
32183/* confdefs.h. */
32184_ACEOF
32185cat confdefs.h >>conftest.$ac_ext
32186cat >>conftest.$ac_ext <<_ACEOF
16779/* end confdefs.h. */ 32187/* end confdefs.h. */
16780 32188
16781/* Override any GCC internal prototype to avoid an error. 32189/* Override any GCC internal prototype to avoid an error.
@@ -16800,40 +32208,67 @@ for ac_lib in '' resolv; do
16800 ac_res=-l$ac_lib 32208 ac_res=-l$ac_lib
16801 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 32209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16802 fi 32210 fi
16803 if ac_fn_c_try_link "$LINENO"; then : 32211 rm -f conftest.$ac_objext conftest$ac_exeext
32212if { (ac_try="$ac_link"
32213case "(($ac_try" in
32214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32215 *) ac_try_echo=$ac_try;;
32216esac
32217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32218 (eval "$ac_link") 2>conftest.er1
32219 ac_status=$?
32220 grep -v '^ *+' conftest.er1 >conftest.err
32221 rm -f conftest.er1
32222 cat conftest.err >&5
32223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32224 (exit $ac_status); } && {
32225 test -z "$ac_c_werror_flag" ||
32226 test ! -s conftest.err
32227 } && test -s conftest$ac_exeext &&
32228 $as_test_x conftest$ac_exeext; then
16804 ac_cv_search_dn_expand=$ac_res 32229 ac_cv_search_dn_expand=$ac_res
32230else
32231 echo "$as_me: failed program was:" >&5
32232sed 's/^/| /' conftest.$ac_ext >&5
32233
32234
16805fi 32235fi
16806rm -f core conftest.err conftest.$ac_objext \ 32236
16807 conftest$ac_exeext 32237rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16808 if ${ac_cv_search_dn_expand+:} false; then : 32238 conftest$ac_exeext
32239 if test "${ac_cv_search_dn_expand+set}" = set; then
16809 break 32240 break
16810fi 32241fi
16811done 32242done
16812if ${ac_cv_search_dn_expand+:} false; then : 32243if test "${ac_cv_search_dn_expand+set}" = set; then
16813 32244 :
16814else 32245else
16815 ac_cv_search_dn_expand=no 32246 ac_cv_search_dn_expand=no
16816fi 32247fi
16817rm conftest.$ac_ext 32248rm conftest.$ac_ext
16818LIBS=$ac_func_search_save_LIBS 32249LIBS=$ac_func_search_save_LIBS
16819fi 32250fi
16820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5 32251{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
16821$as_echo "$ac_cv_search_dn_expand" >&6; } 32252echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
16822ac_res=$ac_cv_search_dn_expand 32253ac_res=$ac_cv_search_dn_expand
16823if test "$ac_res" != no; then : 32254if test "$ac_res" != no; then
16824 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 32255 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16825 32256
16826fi 32257fi
16827 32258
16828 32259
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5 32260 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
16830$as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; } 32261echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; }
16831if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then : 32262if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
16832 $as_echo_n "(cached) " >&6 32263 echo $ECHO_N "(cached) $ECHO_C" >&6
16833else 32264else
16834 ac_check_lib_save_LIBS=$LIBS 32265 ac_check_lib_save_LIBS=$LIBS
16835LIBS="-lgssapi_krb5 $LIBS" 32266LIBS="-lgssapi_krb5 $LIBS"
16836cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32267cat >conftest.$ac_ext <<_ACEOF
32268/* confdefs.h. */
32269_ACEOF
32270cat confdefs.h >>conftest.$ac_ext
32271cat >>conftest.$ac_ext <<_ACEOF
16837/* end confdefs.h. */ 32272/* end confdefs.h. */
16838 32273
16839/* Override any GCC internal prototype to avoid an error. 32274/* Override any GCC internal prototype to avoid an error.
@@ -16851,30 +32286,57 @@ return gss_init_sec_context ();
16851 return 0; 32286 return 0;
16852} 32287}
16853_ACEOF 32288_ACEOF
16854if ac_fn_c_try_link "$LINENO"; then : 32289rm -f conftest.$ac_objext conftest$ac_exeext
32290if { (ac_try="$ac_link"
32291case "(($ac_try" in
32292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32293 *) ac_try_echo=$ac_try;;
32294esac
32295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32296 (eval "$ac_link") 2>conftest.er1
32297 ac_status=$?
32298 grep -v '^ *+' conftest.er1 >conftest.err
32299 rm -f conftest.er1
32300 cat conftest.err >&5
32301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32302 (exit $ac_status); } && {
32303 test -z "$ac_c_werror_flag" ||
32304 test ! -s conftest.err
32305 } && test -s conftest$ac_exeext &&
32306 $as_test_x conftest$ac_exeext; then
16855 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes 32307 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
16856else 32308else
16857 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no 32309 echo "$as_me: failed program was:" >&5
32310sed 's/^/| /' conftest.$ac_ext >&5
32311
32312 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
16858fi 32313fi
16859rm -f core conftest.err conftest.$ac_objext \ 32314
16860 conftest$ac_exeext conftest.$ac_ext 32315rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32316 conftest$ac_exeext conftest.$ac_ext
16861LIBS=$ac_check_lib_save_LIBS 32317LIBS=$ac_check_lib_save_LIBS
16862fi 32318fi
16863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 32319{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
16864$as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } 32320echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
16865if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then : 32321if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
16866 $as_echo "#define GSSAPI 1" >>confdefs.h 32322 cat >>confdefs.h <<\_ACEOF
32323#define GSSAPI 1
32324_ACEOF
16867 32325
16868 GSSLIBS="-lgssapi_krb5" 32326 GSSLIBS="-lgssapi_krb5"
16869else 32327else
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5 32328 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
16871$as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; } 32329echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; }
16872if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then : 32330if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
16873 $as_echo_n "(cached) " >&6 32331 echo $ECHO_N "(cached) $ECHO_C" >&6
16874else 32332else
16875 ac_check_lib_save_LIBS=$LIBS 32333 ac_check_lib_save_LIBS=$LIBS
16876LIBS="-lgssapi $LIBS" 32334LIBS="-lgssapi $LIBS"
16877cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32335cat >conftest.$ac_ext <<_ACEOF
32336/* confdefs.h. */
32337_ACEOF
32338cat confdefs.h >>conftest.$ac_ext
32339cat >>conftest.$ac_ext <<_ACEOF
16878/* end confdefs.h. */ 32340/* end confdefs.h. */
16879 32341
16880/* Override any GCC internal prototype to avoid an error. 32342/* Override any GCC internal prototype to avoid an error.
@@ -16892,30 +32354,57 @@ return gss_init_sec_context ();
16892 return 0; 32354 return 0;
16893} 32355}
16894_ACEOF 32356_ACEOF
16895if ac_fn_c_try_link "$LINENO"; then : 32357rm -f conftest.$ac_objext conftest$ac_exeext
32358if { (ac_try="$ac_link"
32359case "(($ac_try" in
32360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32361 *) ac_try_echo=$ac_try;;
32362esac
32363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32364 (eval "$ac_link") 2>conftest.er1
32365 ac_status=$?
32366 grep -v '^ *+' conftest.er1 >conftest.err
32367 rm -f conftest.er1
32368 cat conftest.err >&5
32369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32370 (exit $ac_status); } && {
32371 test -z "$ac_c_werror_flag" ||
32372 test ! -s conftest.err
32373 } && test -s conftest$ac_exeext &&
32374 $as_test_x conftest$ac_exeext; then
16896 ac_cv_lib_gssapi_gss_init_sec_context=yes 32375 ac_cv_lib_gssapi_gss_init_sec_context=yes
16897else 32376else
16898 ac_cv_lib_gssapi_gss_init_sec_context=no 32377 echo "$as_me: failed program was:" >&5
32378sed 's/^/| /' conftest.$ac_ext >&5
32379
32380 ac_cv_lib_gssapi_gss_init_sec_context=no
16899fi 32381fi
16900rm -f core conftest.err conftest.$ac_objext \ 32382
16901 conftest$ac_exeext conftest.$ac_ext 32383rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32384 conftest$ac_exeext conftest.$ac_ext
16902LIBS=$ac_check_lib_save_LIBS 32385LIBS=$ac_check_lib_save_LIBS
16903fi 32386fi
16904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 32387{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
16905$as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } 32388echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
16906if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then : 32389if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
16907 $as_echo "#define GSSAPI 1" >>confdefs.h 32390 cat >>confdefs.h <<\_ACEOF
32391#define GSSAPI 1
32392_ACEOF
16908 32393
16909 GSSLIBS="-lgssapi" 32394 GSSLIBS="-lgssapi"
16910else 32395else
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgss" >&5 32396 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgss" >&5
16912$as_echo_n "checking for gss_init_sec_context in -lgss... " >&6; } 32397echo $ECHO_N "checking for gss_init_sec_context in -lgss... $ECHO_C" >&6; }
16913if ${ac_cv_lib_gss_gss_init_sec_context+:} false; then : 32398if test "${ac_cv_lib_gss_gss_init_sec_context+set}" = set; then
16914 $as_echo_n "(cached) " >&6 32399 echo $ECHO_N "(cached) $ECHO_C" >&6
16915else 32400else
16916 ac_check_lib_save_LIBS=$LIBS 32401 ac_check_lib_save_LIBS=$LIBS
16917LIBS="-lgss $LIBS" 32402LIBS="-lgss $LIBS"
16918cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32403cat >conftest.$ac_ext <<_ACEOF
32404/* confdefs.h. */
32405_ACEOF
32406cat confdefs.h >>conftest.$ac_ext
32407cat >>conftest.$ac_ext <<_ACEOF
16919/* end confdefs.h. */ 32408/* end confdefs.h. */
16920 32409
16921/* Override any GCC internal prototype to avoid an error. 32410/* Override any GCC internal prototype to avoid an error.
@@ -16933,50 +32422,335 @@ return gss_init_sec_context ();
16933 return 0; 32422 return 0;
16934} 32423}
16935_ACEOF 32424_ACEOF
16936if ac_fn_c_try_link "$LINENO"; then : 32425rm -f conftest.$ac_objext conftest$ac_exeext
32426if { (ac_try="$ac_link"
32427case "(($ac_try" in
32428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32429 *) ac_try_echo=$ac_try;;
32430esac
32431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32432 (eval "$ac_link") 2>conftest.er1
32433 ac_status=$?
32434 grep -v '^ *+' conftest.er1 >conftest.err
32435 rm -f conftest.er1
32436 cat conftest.err >&5
32437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438 (exit $ac_status); } && {
32439 test -z "$ac_c_werror_flag" ||
32440 test ! -s conftest.err
32441 } && test -s conftest$ac_exeext &&
32442 $as_test_x conftest$ac_exeext; then
16937 ac_cv_lib_gss_gss_init_sec_context=yes 32443 ac_cv_lib_gss_gss_init_sec_context=yes
16938else 32444else
16939 ac_cv_lib_gss_gss_init_sec_context=no 32445 echo "$as_me: failed program was:" >&5
32446sed 's/^/| /' conftest.$ac_ext >&5
32447
32448 ac_cv_lib_gss_gss_init_sec_context=no
16940fi 32449fi
16941rm -f core conftest.err conftest.$ac_objext \ 32450
16942 conftest$ac_exeext conftest.$ac_ext 32451rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32452 conftest$ac_exeext conftest.$ac_ext
16943LIBS=$ac_check_lib_save_LIBS 32453LIBS=$ac_check_lib_save_LIBS
16944fi 32454fi
16945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_init_sec_context" >&5 32455{ echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_init_sec_context" >&5
16946$as_echo "$ac_cv_lib_gss_gss_init_sec_context" >&6; } 32456echo "${ECHO_T}$ac_cv_lib_gss_gss_init_sec_context" >&6; }
16947if test "x$ac_cv_lib_gss_gss_init_sec_context" = xyes; then : 32457if test $ac_cv_lib_gss_gss_init_sec_context = yes; then
16948 $as_echo "#define GSSAPI 1" >>confdefs.h 32458 cat >>confdefs.h <<\_ACEOF
32459#define GSSAPI 1
32460_ACEOF
16949 32461
16950 GSSLIBS="-lgss" 32462 GSSLIBS="-lgss"
16951else 32463else
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 32464 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
16953$as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} 32465echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
32466fi
32467
32468
16954fi 32469fi
16955 32470
16956 32471
16957fi 32472fi
16958 32473
16959 32474
32475 if test "${ac_cv_header_gssapi_h+set}" = set; then
32476 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
32477echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
32478if test "${ac_cv_header_gssapi_h+set}" = set; then
32479 echo $ECHO_N "(cached) $ECHO_C" >&6
32480fi
32481{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
32482echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
32483else
32484 # Is the header compilable?
32485{ echo "$as_me:$LINENO: checking gssapi.h usability" >&5
32486echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
32487cat >conftest.$ac_ext <<_ACEOF
32488/* confdefs.h. */
32489_ACEOF
32490cat confdefs.h >>conftest.$ac_ext
32491cat >>conftest.$ac_ext <<_ACEOF
32492/* end confdefs.h. */
32493$ac_includes_default
32494#include <gssapi.h>
32495_ACEOF
32496rm -f conftest.$ac_objext
32497if { (ac_try="$ac_compile"
32498case "(($ac_try" in
32499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32500 *) ac_try_echo=$ac_try;;
32501esac
32502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32503 (eval "$ac_compile") 2>conftest.er1
32504 ac_status=$?
32505 grep -v '^ *+' conftest.er1 >conftest.err
32506 rm -f conftest.er1
32507 cat conftest.err >&5
32508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509 (exit $ac_status); } && {
32510 test -z "$ac_c_werror_flag" ||
32511 test ! -s conftest.err
32512 } && test -s conftest.$ac_objext; then
32513 ac_header_compiler=yes
32514else
32515 echo "$as_me: failed program was:" >&5
32516sed 's/^/| /' conftest.$ac_ext >&5
32517
32518 ac_header_compiler=no
32519fi
32520
32521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32522{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32523echo "${ECHO_T}$ac_header_compiler" >&6; }
32524
32525# Is the header present?
32526{ echo "$as_me:$LINENO: checking gssapi.h presence" >&5
32527echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
32528cat >conftest.$ac_ext <<_ACEOF
32529/* confdefs.h. */
32530_ACEOF
32531cat confdefs.h >>conftest.$ac_ext
32532cat >>conftest.$ac_ext <<_ACEOF
32533/* end confdefs.h. */
32534#include <gssapi.h>
32535_ACEOF
32536if { (ac_try="$ac_cpp conftest.$ac_ext"
32537case "(($ac_try" in
32538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32539 *) ac_try_echo=$ac_try;;
32540esac
32541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32543 ac_status=$?
32544 grep -v '^ *+' conftest.er1 >conftest.err
32545 rm -f conftest.er1
32546 cat conftest.err >&5
32547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32548 (exit $ac_status); } >/dev/null && {
32549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32550 test ! -s conftest.err
32551 }; then
32552 ac_header_preproc=yes
32553else
32554 echo "$as_me: failed program was:" >&5
32555sed 's/^/| /' conftest.$ac_ext >&5
32556
32557 ac_header_preproc=no
16960fi 32558fi
16961 32559
32560rm -f conftest.err conftest.$ac_ext
32561{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32562echo "${ECHO_T}$ac_header_preproc" >&6; }
16962 32563
16963 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" 32564# So? What about this header?
16964if test "x$ac_cv_header_gssapi_h" = xyes; then : 32565case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32566 yes:no: )
32567 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
32568echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32569 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
32570echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
32571 ac_header_preproc=yes
32572 ;;
32573 no:yes:* )
32574 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
32575echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
32576 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
32577echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
32578 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
32579echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
32580 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
32581echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
32582 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
32583echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
32584 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
32585echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
32586 ( cat <<\_ASBOX
32587## ------------------------------------------- ##
32588## Report this to openssh-unix-dev@mindrot.org ##
32589## ------------------------------------------- ##
32590_ASBOX
32591 ) | sed "s/^/$as_me: WARNING: /" >&2
32592 ;;
32593esac
32594{ echo "$as_me:$LINENO: checking for gssapi.h" >&5
32595echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
32596if test "${ac_cv_header_gssapi_h+set}" = set; then
32597 echo $ECHO_N "(cached) $ECHO_C" >&6
32598else
32599 ac_cv_header_gssapi_h=$ac_header_preproc
32600fi
32601{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
32602echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
16965 32603
32604fi
32605if test $ac_cv_header_gssapi_h = yes; then
32606 :
16966else 32607else
16967 unset ac_cv_header_gssapi_h 32608 unset ac_cv_header_gssapi_h
16968 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" 32609 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
16969 for ac_header in gssapi.h 32610
16970do : 32611for ac_header in gssapi.h
16971 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" 32612do
16972if test "x$ac_cv_header_gssapi_h" = xyes; then : 32613as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32616echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32617if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32618 echo $ECHO_N "(cached) $ECHO_C" >&6
32619fi
32620ac_res=`eval echo '${'$as_ac_Header'}'`
32621 { echo "$as_me:$LINENO: result: $ac_res" >&5
32622echo "${ECHO_T}$ac_res" >&6; }
32623else
32624 # Is the header compilable?
32625{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32626echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32627cat >conftest.$ac_ext <<_ACEOF
32628/* confdefs.h. */
32629_ACEOF
32630cat confdefs.h >>conftest.$ac_ext
32631cat >>conftest.$ac_ext <<_ACEOF
32632/* end confdefs.h. */
32633$ac_includes_default
32634#include <$ac_header>
32635_ACEOF
32636rm -f conftest.$ac_objext
32637if { (ac_try="$ac_compile"
32638case "(($ac_try" in
32639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32640 *) ac_try_echo=$ac_try;;
32641esac
32642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32643 (eval "$ac_compile") 2>conftest.er1
32644 ac_status=$?
32645 grep -v '^ *+' conftest.er1 >conftest.err
32646 rm -f conftest.er1
32647 cat conftest.err >&5
32648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32649 (exit $ac_status); } && {
32650 test -z "$ac_c_werror_flag" ||
32651 test ! -s conftest.err
32652 } && test -s conftest.$ac_objext; then
32653 ac_header_compiler=yes
32654else
32655 echo "$as_me: failed program was:" >&5
32656sed 's/^/| /' conftest.$ac_ext >&5
32657
32658 ac_header_compiler=no
32659fi
32660
32661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32662{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32663echo "${ECHO_T}$ac_header_compiler" >&6; }
32664
32665# Is the header present?
32666{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32667echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32668cat >conftest.$ac_ext <<_ACEOF
32669/* confdefs.h. */
32670_ACEOF
32671cat confdefs.h >>conftest.$ac_ext
32672cat >>conftest.$ac_ext <<_ACEOF
32673/* end confdefs.h. */
32674#include <$ac_header>
32675_ACEOF
32676if { (ac_try="$ac_cpp conftest.$ac_ext"
32677case "(($ac_try" in
32678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32679 *) ac_try_echo=$ac_try;;
32680esac
32681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32683 ac_status=$?
32684 grep -v '^ *+' conftest.er1 >conftest.err
32685 rm -f conftest.er1
32686 cat conftest.err >&5
32687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32688 (exit $ac_status); } >/dev/null && {
32689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32690 test ! -s conftest.err
32691 }; then
32692 ac_header_preproc=yes
32693else
32694 echo "$as_me: failed program was:" >&5
32695sed 's/^/| /' conftest.$ac_ext >&5
32696
32697 ac_header_preproc=no
32698fi
32699
32700rm -f conftest.err conftest.$ac_ext
32701{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32702echo "${ECHO_T}$ac_header_preproc" >&6; }
32703
32704# So? What about this header?
32705case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32706 yes:no: )
32707 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32708echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32710echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32711 ac_header_preproc=yes
32712 ;;
32713 no:yes:* )
32714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32715echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32717echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32718 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32719echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32720 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32721echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32723echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32724 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32725echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32726 ( cat <<\_ASBOX
32727## ------------------------------------------- ##
32728## Report this to openssh-unix-dev@mindrot.org ##
32729## ------------------------------------------- ##
32730_ASBOX
32731 ) | sed "s/^/$as_me: WARNING: /" >&2
32732 ;;
32733esac
32734{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32736if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32737 echo $ECHO_N "(cached) $ECHO_C" >&6
32738else
32739 eval "$as_ac_Header=\$ac_header_preproc"
32740fi
32741ac_res=`eval echo '${'$as_ac_Header'}'`
32742 { echo "$as_me:$LINENO: result: $ac_res" >&5
32743echo "${ECHO_T}$ac_res" >&6; }
32744
32745fi
32746if test `eval echo '${'$as_ac_Header'}'` = yes; then
16973 cat >>confdefs.h <<_ACEOF 32747 cat >>confdefs.h <<_ACEOF
16974#define HAVE_GSSAPI_H 1 32748#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16975_ACEOF 32749_ACEOF
16976 32750
16977else 32751else
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 32752 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
16979$as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} 32753echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
16980 32754
16981fi 32755fi
16982 32756
@@ -16990,9 +32764,138 @@ fi
16990 32764
16991 oldCPP="$CPPFLAGS" 32765 oldCPP="$CPPFLAGS"
16992 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" 32766 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
16993 ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default" 32767 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
16994if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then : 32768 { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
32769echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
32770if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
32771 echo $ECHO_N "(cached) $ECHO_C" >&6
32772fi
32773{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
32774echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
32775else
32776 # Is the header compilable?
32777{ echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5
32778echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; }
32779cat >conftest.$ac_ext <<_ACEOF
32780/* confdefs.h. */
32781_ACEOF
32782cat confdefs.h >>conftest.$ac_ext
32783cat >>conftest.$ac_ext <<_ACEOF
32784/* end confdefs.h. */
32785$ac_includes_default
32786#include <gssapi_krb5.h>
32787_ACEOF
32788rm -f conftest.$ac_objext
32789if { (ac_try="$ac_compile"
32790case "(($ac_try" in
32791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32792 *) ac_try_echo=$ac_try;;
32793esac
32794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32795 (eval "$ac_compile") 2>conftest.er1
32796 ac_status=$?
32797 grep -v '^ *+' conftest.er1 >conftest.err
32798 rm -f conftest.er1
32799 cat conftest.err >&5
32800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32801 (exit $ac_status); } && {
32802 test -z "$ac_c_werror_flag" ||
32803 test ! -s conftest.err
32804 } && test -s conftest.$ac_objext; then
32805 ac_header_compiler=yes
32806else
32807 echo "$as_me: failed program was:" >&5
32808sed 's/^/| /' conftest.$ac_ext >&5
32809
32810 ac_header_compiler=no
32811fi
32812
32813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32814{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32815echo "${ECHO_T}$ac_header_compiler" >&6; }
32816
32817# Is the header present?
32818{ echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5
32819echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; }
32820cat >conftest.$ac_ext <<_ACEOF
32821/* confdefs.h. */
32822_ACEOF
32823cat confdefs.h >>conftest.$ac_ext
32824cat >>conftest.$ac_ext <<_ACEOF
32825/* end confdefs.h. */
32826#include <gssapi_krb5.h>
32827_ACEOF
32828if { (ac_try="$ac_cpp conftest.$ac_ext"
32829case "(($ac_try" in
32830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32831 *) ac_try_echo=$ac_try;;
32832esac
32833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32835 ac_status=$?
32836 grep -v '^ *+' conftest.er1 >conftest.err
32837 rm -f conftest.er1
32838 cat conftest.err >&5
32839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32840 (exit $ac_status); } >/dev/null && {
32841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32842 test ! -s conftest.err
32843 }; then
32844 ac_header_preproc=yes
32845else
32846 echo "$as_me: failed program was:" >&5
32847sed 's/^/| /' conftest.$ac_ext >&5
32848
32849 ac_header_preproc=no
32850fi
32851
32852rm -f conftest.err conftest.$ac_ext
32853{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32854echo "${ECHO_T}$ac_header_preproc" >&6; }
32855
32856# So? What about this header?
32857case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32858 yes:no: )
32859 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
32860echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32861 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5
32862echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;}
32863 ac_header_preproc=yes
32864 ;;
32865 no:yes:* )
32866 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5
32867echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;}
32868 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5
32869echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;}
32870 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5
32871echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;}
32872 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5
32873echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
32874 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5
32875echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;}
32876 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5
32877echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
32878 ( cat <<\_ASBOX
32879## ------------------------------------------- ##
32880## Report this to openssh-unix-dev@mindrot.org ##
32881## ------------------------------------------- ##
32882_ASBOX
32883 ) | sed "s/^/$as_me: WARNING: /" >&2
32884 ;;
32885esac
32886{ echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
32887echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
32888if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
32889 echo $ECHO_N "(cached) $ECHO_C" >&6
32890else
32891 ac_cv_header_gssapi_krb5_h=$ac_header_preproc
32892fi
32893{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
32894echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
16995 32895
32896fi
32897if test $ac_cv_header_gssapi_krb5_h = yes; then
32898 :
16996else 32899else
16997 CPPFLAGS="$oldCPP" 32900 CPPFLAGS="$oldCPP"
16998fi 32901fi
@@ -17007,39 +32910,438 @@ fi
17007 blibpath="$blibpath:${KRB5ROOT}/lib" 32910 blibpath="$blibpath:${KRB5ROOT}/lib"
17008 fi 32911 fi
17009 32912
17010 for ac_header in gssapi.h gssapi/gssapi.h 32913
17011do : 32914
17012 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 32915for ac_header in gssapi.h gssapi/gssapi.h
17013ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 32916do
17014if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 32917as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32921if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32922 echo $ECHO_N "(cached) $ECHO_C" >&6
32923fi
32924ac_res=`eval echo '${'$as_ac_Header'}'`
32925 { echo "$as_me:$LINENO: result: $ac_res" >&5
32926echo "${ECHO_T}$ac_res" >&6; }
32927else
32928 # Is the header compilable?
32929{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32930echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32931cat >conftest.$ac_ext <<_ACEOF
32932/* confdefs.h. */
32933_ACEOF
32934cat confdefs.h >>conftest.$ac_ext
32935cat >>conftest.$ac_ext <<_ACEOF
32936/* end confdefs.h. */
32937$ac_includes_default
32938#include <$ac_header>
32939_ACEOF
32940rm -f conftest.$ac_objext
32941if { (ac_try="$ac_compile"
32942case "(($ac_try" in
32943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32944 *) ac_try_echo=$ac_try;;
32945esac
32946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32947 (eval "$ac_compile") 2>conftest.er1
32948 ac_status=$?
32949 grep -v '^ *+' conftest.er1 >conftest.err
32950 rm -f conftest.er1
32951 cat conftest.err >&5
32952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32953 (exit $ac_status); } && {
32954 test -z "$ac_c_werror_flag" ||
32955 test ! -s conftest.err
32956 } && test -s conftest.$ac_objext; then
32957 ac_header_compiler=yes
32958else
32959 echo "$as_me: failed program was:" >&5
32960sed 's/^/| /' conftest.$ac_ext >&5
32961
32962 ac_header_compiler=no
32963fi
32964
32965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32966{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32967echo "${ECHO_T}$ac_header_compiler" >&6; }
32968
32969# Is the header present?
32970{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32971echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32972cat >conftest.$ac_ext <<_ACEOF
32973/* confdefs.h. */
32974_ACEOF
32975cat confdefs.h >>conftest.$ac_ext
32976cat >>conftest.$ac_ext <<_ACEOF
32977/* end confdefs.h. */
32978#include <$ac_header>
32979_ACEOF
32980if { (ac_try="$ac_cpp conftest.$ac_ext"
32981case "(($ac_try" in
32982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32983 *) ac_try_echo=$ac_try;;
32984esac
32985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32987 ac_status=$?
32988 grep -v '^ *+' conftest.er1 >conftest.err
32989 rm -f conftest.er1
32990 cat conftest.err >&5
32991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32992 (exit $ac_status); } >/dev/null && {
32993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32994 test ! -s conftest.err
32995 }; then
32996 ac_header_preproc=yes
32997else
32998 echo "$as_me: failed program was:" >&5
32999sed 's/^/| /' conftest.$ac_ext >&5
33000
33001 ac_header_preproc=no
33002fi
33003
33004rm -f conftest.err conftest.$ac_ext
33005{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33006echo "${ECHO_T}$ac_header_preproc" >&6; }
33007
33008# So? What about this header?
33009case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33010 yes:no: )
33011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33012echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33014echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33015 ac_header_preproc=yes
33016 ;;
33017 no:yes:* )
33018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33019echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33021echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33023echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33025echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33027echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33029echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33030 ( cat <<\_ASBOX
33031## ------------------------------------------- ##
33032## Report this to openssh-unix-dev@mindrot.org ##
33033## ------------------------------------------- ##
33034_ASBOX
33035 ) | sed "s/^/$as_me: WARNING: /" >&2
33036 ;;
33037esac
33038{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33040if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33041 echo $ECHO_N "(cached) $ECHO_C" >&6
33042else
33043 eval "$as_ac_Header=\$ac_header_preproc"
33044fi
33045ac_res=`eval echo '${'$as_ac_Header'}'`
33046 { echo "$as_me:$LINENO: result: $ac_res" >&5
33047echo "${ECHO_T}$ac_res" >&6; }
33048
33049fi
33050if test `eval echo '${'$as_ac_Header'}'` = yes; then
17015 cat >>confdefs.h <<_ACEOF 33051 cat >>confdefs.h <<_ACEOF
17016#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 33052#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17017_ACEOF 33053_ACEOF
17018 33054
17019fi 33055fi
17020 33056
17021done 33057done
17022 33058
17023 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h 33059
17024do : 33060
17025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 33061for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
17026ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 33062do
17027if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 33063as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33064if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33066echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33067if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33068 echo $ECHO_N "(cached) $ECHO_C" >&6
33069fi
33070ac_res=`eval echo '${'$as_ac_Header'}'`
33071 { echo "$as_me:$LINENO: result: $ac_res" >&5
33072echo "${ECHO_T}$ac_res" >&6; }
33073else
33074 # Is the header compilable?
33075{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33076echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33077cat >conftest.$ac_ext <<_ACEOF
33078/* confdefs.h. */
33079_ACEOF
33080cat confdefs.h >>conftest.$ac_ext
33081cat >>conftest.$ac_ext <<_ACEOF
33082/* end confdefs.h. */
33083$ac_includes_default
33084#include <$ac_header>
33085_ACEOF
33086rm -f conftest.$ac_objext
33087if { (ac_try="$ac_compile"
33088case "(($ac_try" in
33089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33090 *) ac_try_echo=$ac_try;;
33091esac
33092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33093 (eval "$ac_compile") 2>conftest.er1
33094 ac_status=$?
33095 grep -v '^ *+' conftest.er1 >conftest.err
33096 rm -f conftest.er1
33097 cat conftest.err >&5
33098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33099 (exit $ac_status); } && {
33100 test -z "$ac_c_werror_flag" ||
33101 test ! -s conftest.err
33102 } && test -s conftest.$ac_objext; then
33103 ac_header_compiler=yes
33104else
33105 echo "$as_me: failed program was:" >&5
33106sed 's/^/| /' conftest.$ac_ext >&5
33107
33108 ac_header_compiler=no
33109fi
33110
33111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33112{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33113echo "${ECHO_T}$ac_header_compiler" >&6; }
33114
33115# Is the header present?
33116{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33117echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33118cat >conftest.$ac_ext <<_ACEOF
33119/* confdefs.h. */
33120_ACEOF
33121cat confdefs.h >>conftest.$ac_ext
33122cat >>conftest.$ac_ext <<_ACEOF
33123/* end confdefs.h. */
33124#include <$ac_header>
33125_ACEOF
33126if { (ac_try="$ac_cpp conftest.$ac_ext"
33127case "(($ac_try" in
33128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33129 *) ac_try_echo=$ac_try;;
33130esac
33131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33133 ac_status=$?
33134 grep -v '^ *+' conftest.er1 >conftest.err
33135 rm -f conftest.er1
33136 cat conftest.err >&5
33137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33138 (exit $ac_status); } >/dev/null && {
33139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33140 test ! -s conftest.err
33141 }; then
33142 ac_header_preproc=yes
33143else
33144 echo "$as_me: failed program was:" >&5
33145sed 's/^/| /' conftest.$ac_ext >&5
33146
33147 ac_header_preproc=no
33148fi
33149
33150rm -f conftest.err conftest.$ac_ext
33151{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33152echo "${ECHO_T}$ac_header_preproc" >&6; }
33153
33154# So? What about this header?
33155case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33156 yes:no: )
33157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33158echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33160echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33161 ac_header_preproc=yes
33162 ;;
33163 no:yes:* )
33164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33165echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33167echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33169echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33171echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33173echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33175echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33176 ( cat <<\_ASBOX
33177## ------------------------------------------- ##
33178## Report this to openssh-unix-dev@mindrot.org ##
33179## ------------------------------------------- ##
33180_ASBOX
33181 ) | sed "s/^/$as_me: WARNING: /" >&2
33182 ;;
33183esac
33184{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33185echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33186if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33187 echo $ECHO_N "(cached) $ECHO_C" >&6
33188else
33189 eval "$as_ac_Header=\$ac_header_preproc"
33190fi
33191ac_res=`eval echo '${'$as_ac_Header'}'`
33192 { echo "$as_me:$LINENO: result: $ac_res" >&5
33193echo "${ECHO_T}$ac_res" >&6; }
33194
33195fi
33196if test `eval echo '${'$as_ac_Header'}'` = yes; then
17028 cat >>confdefs.h <<_ACEOF 33197 cat >>confdefs.h <<_ACEOF
17029#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 33198#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17030_ACEOF 33199_ACEOF
17031 33200
17032fi 33201fi
17033 33202
17034done 33203done
17035 33204
17036 for ac_header in gssapi_generic.h gssapi/gssapi_generic.h 33205
17037do : 33206
17038 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 33207for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
17039ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 33208do
17040if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 33209as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33210if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33212echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33213if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33214 echo $ECHO_N "(cached) $ECHO_C" >&6
33215fi
33216ac_res=`eval echo '${'$as_ac_Header'}'`
33217 { echo "$as_me:$LINENO: result: $ac_res" >&5
33218echo "${ECHO_T}$ac_res" >&6; }
33219else
33220 # Is the header compilable?
33221{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33222echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33223cat >conftest.$ac_ext <<_ACEOF
33224/* confdefs.h. */
33225_ACEOF
33226cat confdefs.h >>conftest.$ac_ext
33227cat >>conftest.$ac_ext <<_ACEOF
33228/* end confdefs.h. */
33229$ac_includes_default
33230#include <$ac_header>
33231_ACEOF
33232rm -f conftest.$ac_objext
33233if { (ac_try="$ac_compile"
33234case "(($ac_try" in
33235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33236 *) ac_try_echo=$ac_try;;
33237esac
33238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33239 (eval "$ac_compile") 2>conftest.er1
33240 ac_status=$?
33241 grep -v '^ *+' conftest.er1 >conftest.err
33242 rm -f conftest.er1
33243 cat conftest.err >&5
33244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33245 (exit $ac_status); } && {
33246 test -z "$ac_c_werror_flag" ||
33247 test ! -s conftest.err
33248 } && test -s conftest.$ac_objext; then
33249 ac_header_compiler=yes
33250else
33251 echo "$as_me: failed program was:" >&5
33252sed 's/^/| /' conftest.$ac_ext >&5
33253
33254 ac_header_compiler=no
33255fi
33256
33257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33258{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33259echo "${ECHO_T}$ac_header_compiler" >&6; }
33260
33261# Is the header present?
33262{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33263echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33264cat >conftest.$ac_ext <<_ACEOF
33265/* confdefs.h. */
33266_ACEOF
33267cat confdefs.h >>conftest.$ac_ext
33268cat >>conftest.$ac_ext <<_ACEOF
33269/* end confdefs.h. */
33270#include <$ac_header>
33271_ACEOF
33272if { (ac_try="$ac_cpp conftest.$ac_ext"
33273case "(($ac_try" in
33274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33275 *) ac_try_echo=$ac_try;;
33276esac
33277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33279 ac_status=$?
33280 grep -v '^ *+' conftest.er1 >conftest.err
33281 rm -f conftest.er1
33282 cat conftest.err >&5
33283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33284 (exit $ac_status); } >/dev/null && {
33285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33286 test ! -s conftest.err
33287 }; then
33288 ac_header_preproc=yes
33289else
33290 echo "$as_me: failed program was:" >&5
33291sed 's/^/| /' conftest.$ac_ext >&5
33292
33293 ac_header_preproc=no
33294fi
33295
33296rm -f conftest.err conftest.$ac_ext
33297{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33298echo "${ECHO_T}$ac_header_preproc" >&6; }
33299
33300# So? What about this header?
33301case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33302 yes:no: )
33303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33304echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33306echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33307 ac_header_preproc=yes
33308 ;;
33309 no:yes:* )
33310 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33311echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33312 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33313echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33314 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33315echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33316 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33317echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33319echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33320 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33321echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33322 ( cat <<\_ASBOX
33323## ------------------------------------------- ##
33324## Report this to openssh-unix-dev@mindrot.org ##
33325## ------------------------------------------- ##
33326_ASBOX
33327 ) | sed "s/^/$as_me: WARNING: /" >&2
33328 ;;
33329esac
33330{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33332if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33333 echo $ECHO_N "(cached) $ECHO_C" >&6
33334else
33335 eval "$as_ac_Header=\$ac_header_preproc"
33336fi
33337ac_res=`eval echo '${'$as_ac_Header'}'`
33338 { echo "$as_me:$LINENO: result: $ac_res" >&5
33339echo "${ECHO_T}$ac_res" >&6; }
33340
33341fi
33342if test `eval echo '${'$as_ac_Header'}'` = yes; then
17041 cat >>confdefs.h <<_ACEOF 33343 cat >>confdefs.h <<_ACEOF
17042#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 33344#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17043_ACEOF 33345_ACEOF
17044 33346
17045fi 33347fi
@@ -17047,13 +33349,17 @@ fi
17047done 33349done
17048 33350
17049 33351
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5 33352 { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5
17051$as_echo_n "checking for library containing k_hasafs... " >&6; } 33353echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; }
17052if ${ac_cv_search_k_hasafs+:} false; then : 33354if test "${ac_cv_search_k_hasafs+set}" = set; then
17053 $as_echo_n "(cached) " >&6 33355 echo $ECHO_N "(cached) $ECHO_C" >&6
17054else 33356else
17055 ac_func_search_save_LIBS=$LIBS 33357 ac_func_search_save_LIBS=$LIBS
17056cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33358cat >conftest.$ac_ext <<_ACEOF
33359/* confdefs.h. */
33360_ACEOF
33361cat confdefs.h >>conftest.$ac_ext
33362cat >>conftest.$ac_ext <<_ACEOF
17057/* end confdefs.h. */ 33363/* end confdefs.h. */
17058 33364
17059/* Override any GCC internal prototype to avoid an error. 33365/* Override any GCC internal prototype to avoid an error.
@@ -17078,35 +33384,71 @@ for ac_lib in '' kafs; do
17078 ac_res=-l$ac_lib 33384 ac_res=-l$ac_lib
17079 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 33385 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17080 fi 33386 fi
17081 if ac_fn_c_try_link "$LINENO"; then : 33387 rm -f conftest.$ac_objext conftest$ac_exeext
33388if { (ac_try="$ac_link"
33389case "(($ac_try" in
33390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33391 *) ac_try_echo=$ac_try;;
33392esac
33393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33394 (eval "$ac_link") 2>conftest.er1
33395 ac_status=$?
33396 grep -v '^ *+' conftest.er1 >conftest.err
33397 rm -f conftest.er1
33398 cat conftest.err >&5
33399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33400 (exit $ac_status); } && {
33401 test -z "$ac_c_werror_flag" ||
33402 test ! -s conftest.err
33403 } && test -s conftest$ac_exeext &&
33404 $as_test_x conftest$ac_exeext; then
17082 ac_cv_search_k_hasafs=$ac_res 33405 ac_cv_search_k_hasafs=$ac_res
33406else
33407 echo "$as_me: failed program was:" >&5
33408sed 's/^/| /' conftest.$ac_ext >&5
33409
33410
17083fi 33411fi
17084rm -f core conftest.err conftest.$ac_objext \ 33412
17085 conftest$ac_exeext 33413rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17086 if ${ac_cv_search_k_hasafs+:} false; then : 33414 conftest$ac_exeext
33415 if test "${ac_cv_search_k_hasafs+set}" = set; then
17087 break 33416 break
17088fi 33417fi
17089done 33418done
17090if ${ac_cv_search_k_hasafs+:} false; then : 33419if test "${ac_cv_search_k_hasafs+set}" = set; then
17091 33420 :
17092else 33421else
17093 ac_cv_search_k_hasafs=no 33422 ac_cv_search_k_hasafs=no
17094fi 33423fi
17095rm conftest.$ac_ext 33424rm conftest.$ac_ext
17096LIBS=$ac_func_search_save_LIBS 33425LIBS=$ac_func_search_save_LIBS
17097fi 33426fi
17098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5 33427{ echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5
17099$as_echo "$ac_cv_search_k_hasafs" >&6; } 33428echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; }
17100ac_res=$ac_cv_search_k_hasafs 33429ac_res=$ac_cv_search_k_hasafs
17101if test "$ac_res" != no; then : 33430if test "$ac_res" != no; then
17102 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 33431 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17103 33432
17104$as_echo "#define USE_AFS 1" >>confdefs.h 33433cat >>confdefs.h <<\_ACEOF
33434#define USE_AFS 1
33435_ACEOF
17105 33436
17106fi 33437fi
17107 33438
17108 33439
17109 ac_fn_c_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" " 33440 { echo "$as_me:$LINENO: checking whether GSS_C_NT_HOSTBASED_SERVICE is declared" >&5
33441echo $ECHO_N "checking whether GSS_C_NT_HOSTBASED_SERVICE is declared... $ECHO_C" >&6; }
33442if test "${ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE+set}" = set; then
33443 echo $ECHO_N "(cached) $ECHO_C" >&6
33444else
33445 cat >conftest.$ac_ext <<_ACEOF
33446/* confdefs.h. */
33447_ACEOF
33448cat confdefs.h >>conftest.$ac_ext
33449cat >>conftest.$ac_ext <<_ACEOF
33450/* end confdefs.h. */
33451
17110#ifdef HAVE_GSSAPI_H 33452#ifdef HAVE_GSSAPI_H
17111# include <gssapi.h> 33453# include <gssapi.h>
17112#elif defined(HAVE_GSSAPI_GSSAPI_H) 33454#elif defined(HAVE_GSSAPI_GSSAPI_H)
@@ -17119,26 +33461,156 @@ fi
17119# include <gssapi/gssapi_generic.h> 33461# include <gssapi/gssapi_generic.h>
17120#endif 33462#endif
17121 33463
17122" 33464
17123if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then : 33465int
17124 ac_have_decl=1 33466main ()
33467{
33468#ifndef GSS_C_NT_HOSTBASED_SERVICE
33469 (void) GSS_C_NT_HOSTBASED_SERVICE;
33470#endif
33471
33472 ;
33473 return 0;
33474}
33475_ACEOF
33476rm -f conftest.$ac_objext
33477if { (ac_try="$ac_compile"
33478case "(($ac_try" in
33479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33480 *) ac_try_echo=$ac_try;;
33481esac
33482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33483 (eval "$ac_compile") 2>conftest.er1
33484 ac_status=$?
33485 grep -v '^ *+' conftest.er1 >conftest.err
33486 rm -f conftest.er1
33487 cat conftest.err >&5
33488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33489 (exit $ac_status); } && {
33490 test -z "$ac_c_werror_flag" ||
33491 test ! -s conftest.err
33492 } && test -s conftest.$ac_objext; then
33493 ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE=yes
17125else 33494else
17126 ac_have_decl=0 33495 echo "$as_me: failed program was:" >&5
33496sed 's/^/| /' conftest.$ac_ext >&5
33497
33498 ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE=no
33499fi
33500
33501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17127fi 33502fi
33503{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" >&5
33504echo "${ECHO_T}$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" >&6; }
33505if test $ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE = yes; then
17128 33506
17129cat >>confdefs.h <<_ACEOF 33507cat >>confdefs.h <<_ACEOF
17130#define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE $ac_have_decl 33508#define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE 1
17131_ACEOF 33509_ACEOF
17132 33510
33511
33512else
33513 cat >>confdefs.h <<_ACEOF
33514#define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE 0
33515_ACEOF
33516
33517
33518fi
33519
33520
17133 saved_LIBS="$LIBS" 33521 saved_LIBS="$LIBS"
17134 LIBS="$LIBS $K5LIBS" 33522 LIBS="$LIBS $K5LIBS"
17135 for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message 33523
17136do : 33524
17137 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 33525
17138ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 33526for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message
17139if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 33527do
33528as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33529{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33530echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33531if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33532 echo $ECHO_N "(cached) $ECHO_C" >&6
33533else
33534 cat >conftest.$ac_ext <<_ACEOF
33535/* confdefs.h. */
33536_ACEOF
33537cat confdefs.h >>conftest.$ac_ext
33538cat >>conftest.$ac_ext <<_ACEOF
33539/* end confdefs.h. */
33540/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33542#define $ac_func innocuous_$ac_func
33543
33544/* System header to define __stub macros and hopefully few prototypes,
33545 which can conflict with char $ac_func (); below.
33546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33547 <limits.h> exists even on freestanding compilers. */
33548
33549#ifdef __STDC__
33550# include <limits.h>
33551#else
33552# include <assert.h>
33553#endif
33554
33555#undef $ac_func
33556
33557/* Override any GCC internal prototype to avoid an error.
33558 Use char because int might match the return type of a GCC
33559 builtin and then its argument prototype would still apply. */
33560#ifdef __cplusplus
33561extern "C"
33562#endif
33563char $ac_func ();
33564/* The GNU C library defines this for functions which it implements
33565 to always fail with ENOSYS. Some functions are actually named
33566 something starting with __ and the normal name is an alias. */
33567#if defined __stub_$ac_func || defined __stub___$ac_func
33568choke me
33569#endif
33570
33571int
33572main ()
33573{
33574return $ac_func ();
33575 ;
33576 return 0;
33577}
33578_ACEOF
33579rm -f conftest.$ac_objext conftest$ac_exeext
33580if { (ac_try="$ac_link"
33581case "(($ac_try" in
33582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33583 *) ac_try_echo=$ac_try;;
33584esac
33585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33586 (eval "$ac_link") 2>conftest.er1
33587 ac_status=$?
33588 grep -v '^ *+' conftest.er1 >conftest.err
33589 rm -f conftest.er1
33590 cat conftest.err >&5
33591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33592 (exit $ac_status); } && {
33593 test -z "$ac_c_werror_flag" ||
33594 test ! -s conftest.err
33595 } && test -s conftest$ac_exeext &&
33596 $as_test_x conftest$ac_exeext; then
33597 eval "$as_ac_var=yes"
33598else
33599 echo "$as_me: failed program was:" >&5
33600sed 's/^/| /' conftest.$ac_ext >&5
33601
33602 eval "$as_ac_var=no"
33603fi
33604
33605rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33606 conftest$ac_exeext conftest.$ac_ext
33607fi
33608ac_res=`eval echo '${'$as_ac_var'}'`
33609 { echo "$as_me:$LINENO: result: $ac_res" >&5
33610echo "${ECHO_T}$ac_res" >&6; }
33611if test `eval echo '${'$as_ac_var'}'` = yes; then
17140 cat >>confdefs.h <<_ACEOF 33612 cat >>confdefs.h <<_ACEOF
17141#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 33613#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17142_ACEOF 33614_ACEOF
17143 33615
17144fi 33616fi
@@ -17159,7 +33631,7 @@ fi
17159PRIVSEP_PATH=/var/empty 33631PRIVSEP_PATH=/var/empty
17160 33632
17161# Check whether --with-privsep-path was given. 33633# Check whether --with-privsep-path was given.
17162if test "${with_privsep_path+set}" = set; then : 33634if test "${with_privsep_path+set}" = set; then
17163 withval=$with_privsep_path; 33635 withval=$with_privsep_path;
17164 if test -n "$withval" && test "x$withval" != "xno" && \ 33636 if test -n "$withval" && test "x$withval" != "xno" && \
17165 test "x${withval}" != "xyes"; then 33637 test "x${withval}" != "xyes"; then
@@ -17173,7 +33645,7 @@ fi
17173 33645
17174 33646
17175# Check whether --with-xauth was given. 33647# Check whether --with-xauth was given.
17176if test "${with_xauth+set}" = set; then : 33648if test "${with_xauth+set}" = set; then
17177 withval=$with_xauth; 33649 withval=$with_xauth;
17178 if test -n "$withval" && test "x$withval" != "xno" && \ 33650 if test -n "$withval" && test "x$withval" != "xno" && \
17179 test "x${withval}" != "xyes"; then 33651 test "x${withval}" != "xyes"; then
@@ -17189,10 +33661,10 @@ else
17189 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" 33661 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
17190 # Extract the first word of "xauth", so it can be a program name with args. 33662 # Extract the first word of "xauth", so it can be a program name with args.
17191set dummy xauth; ac_word=$2 33663set dummy xauth; ac_word=$2
17192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33664{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17193$as_echo_n "checking for $ac_word... " >&6; } 33665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17194if ${ac_cv_path_xauth_path+:} false; then : 33666if test "${ac_cv_path_xauth_path+set}" = set; then
17195 $as_echo_n "(cached) " >&6 33667 echo $ECHO_N "(cached) $ECHO_C" >&6
17196else 33668else
17197 case $xauth_path in 33669 case $xauth_path in
17198 [\\/]* | ?:[\\/]*) 33670 [\\/]* | ?:[\\/]*)
@@ -17204,14 +33676,14 @@ for as_dir in $TestPath
17204do 33676do
17205 IFS=$as_save_IFS 33677 IFS=$as_save_IFS
17206 test -z "$as_dir" && as_dir=. 33678 test -z "$as_dir" && as_dir=.
17207 for ac_exec_ext in '' $ac_executable_extensions; do 33679 for ac_exec_ext in '' $ac_executable_extensions; do
17208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 33680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17209 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" 33681 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
17210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17211 break 2 33683 break 2
17212 fi 33684 fi
17213done 33685done
17214 done 33686done
17215IFS=$as_save_IFS 33687IFS=$as_save_IFS
17216 33688
17217 ;; 33689 ;;
@@ -17219,11 +33691,11 @@ esac
17219fi 33691fi
17220xauth_path=$ac_cv_path_xauth_path 33692xauth_path=$ac_cv_path_xauth_path
17221if test -n "$xauth_path"; then 33693if test -n "$xauth_path"; then
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5 33694 { echo "$as_me:$LINENO: result: $xauth_path" >&5
17223$as_echo "$xauth_path" >&6; } 33695echo "${ECHO_T}$xauth_path" >&6; }
17224else 33696else
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33697 { echo "$as_me:$LINENO: result: no" >&5
17226$as_echo "no" >&6; } 33698echo "${ECHO_T}no" >&6; }
17227fi 33699fi
17228 33700
17229 33701
@@ -17237,7 +33709,7 @@ fi
17237 33709
17238STRIP_OPT=-s 33710STRIP_OPT=-s
17239# Check whether --enable-strip was given. 33711# Check whether --enable-strip was given.
17240if test "${enable_strip+set}" = set; then : 33712if test "${enable_strip+set}" = set; then
17241 enableval=$enable_strip; 33713 enableval=$enable_strip;
17242 if test "x$enableval" = "xno" ; then 33714 if test "x$enableval" = "xno" ; then
17243 STRIP_OPT= 33715 STRIP_OPT=
@@ -17264,7 +33736,7 @@ fi
17264# Check for mail directory 33736# Check for mail directory
17265 33737
17266# Check whether --with-maildir was given. 33738# Check whether --with-maildir was given.
17267if test "${with_maildir+set}" = set; then : 33739if test "${with_maildir+set}" = set; then
17268 withval=$with_maildir; 33740 withval=$with_maildir;
17269 if test "X$withval" != X && test "x$withval" != xno && \ 33741 if test "X$withval" != X && test "x$withval" != xno && \
17270 test "x${withval}" != xyes; then 33742 test "x${withval}" != xyes; then
@@ -17283,16 +33755,20 @@ else
17283_ACEOF 33755_ACEOF
17284 33756
17285 else 33757 else
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5 33758 { echo "$as_me:$LINENO: checking Discovering system mail directory" >&5
17287$as_echo_n "checking Discovering system mail directory... " >&6; } 33759echo $ECHO_N "checking Discovering system mail directory... $ECHO_C" >&6; }
17288 if test "$cross_compiling" = yes; then : 33760 if test "$cross_compiling" = yes; then
17289 33761
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5 33762 { echo "$as_me:$LINENO: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5
17291$as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;} 33763echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;}
17292 33764
17293 33765
17294else 33766else
17295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33767 cat >conftest.$ac_ext <<_ACEOF
33768/* confdefs.h. */
33769_ACEOF
33770cat confdefs.h >>conftest.$ac_ext
33771cat >>conftest.$ac_ext <<_ACEOF
17296/* end confdefs.h. */ 33772/* end confdefs.h. */
17297 33773
17298#include <stdio.h> 33774#include <stdio.h>
@@ -17335,13 +33811,32 @@ main ()
17335 return 0; 33811 return 0;
17336} 33812}
17337_ACEOF 33813_ACEOF
17338if ac_fn_c_try_run "$LINENO"; then : 33814rm -f conftest$ac_exeext
33815if { (ac_try="$ac_link"
33816case "(($ac_try" in
33817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33818 *) ac_try_echo=$ac_try;;
33819esac
33820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33821 (eval "$ac_link") 2>&5
33822 ac_status=$?
33823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33825 { (case "(($ac_try" in
33826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33827 *) ac_try_echo=$ac_try;;
33828esac
33829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33830 (eval "$ac_try") 2>&5
33831 ac_status=$?
33832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33833 (exit $ac_status); }; }; then
17339 33834
17340 maildir_what=`awk -F: '{print $1}' conftest.maildir` 33835 maildir_what=`awk -F: '{print $1}' conftest.maildir`
17341 maildir=`awk -F: '{print $2}' conftest.maildir \ 33836 maildir=`awk -F: '{print $2}' conftest.maildir \
17342 | sed 's|/$||'` 33837 | sed 's|/$||'`
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5 33838 { echo "$as_me:$LINENO: result: Using: $maildir from $maildir_what" >&5
17344$as_echo "Using: $maildir from $maildir_what" >&6; } 33839echo "${ECHO_T}Using: $maildir from $maildir_what" >&6; }
17345 if test "x$maildir_what" != "x_PATH_MAILDIR"; then 33840 if test "x$maildir_what" != "x_PATH_MAILDIR"; then
17346 cat >>confdefs.h <<_ACEOF 33841 cat >>confdefs.h <<_ACEOF
17347#define MAIL_DIRECTORY "$maildir" 33842#define MAIL_DIRECTORY "$maildir"
@@ -17350,25 +33845,30 @@ _ACEOF
17350 fi 33845 fi
17351 33846
17352else 33847else
33848 echo "$as_me: program exited with status $ac_status" >&5
33849echo "$as_me: failed program was:" >&5
33850sed 's/^/| /' conftest.$ac_ext >&5
33851
33852( exit $ac_status )
17353 33853
17354 if test "X$ac_status" = "X2";then 33854 if test "X$ac_status" = "X2";then
17355# our test program didn't find it. Default to /var/spool/mail 33855# our test program didn't find it. Default to /var/spool/mail
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5 33856 { echo "$as_me:$LINENO: result: Using: default value of /var/spool/mail" >&5
17357$as_echo "Using: default value of /var/spool/mail" >&6; } 33857echo "${ECHO_T}Using: default value of /var/spool/mail" >&6; }
17358 cat >>confdefs.h <<_ACEOF 33858 cat >>confdefs.h <<_ACEOF
17359#define MAIL_DIRECTORY "/var/spool/mail" 33859#define MAIL_DIRECTORY "/var/spool/mail"
17360_ACEOF 33860_ACEOF
17361 33861
17362 else 33862 else
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5 33863 { echo "$as_me:$LINENO: result: *** not found ***" >&5
17364$as_echo "*** not found ***" >&6; } 33864echo "${ECHO_T}*** not found ***" >&6; }
17365 fi 33865 fi
17366 33866
17367fi 33867fi
17368rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 33868rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17369 conftest.$ac_objext conftest.beam conftest.$ac_ext
17370fi 33869fi
17371 33870
33871
17372 fi 33872 fi
17373 33873
17374 33874
@@ -17376,30 +33876,30 @@ fi
17376 # maildir 33876 # maildir
17377 33877
17378if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then 33878if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5 33879 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
17380$as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;} 33880echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
17381 disable_ptmx_check=yes 33881 disable_ptmx_check=yes
17382fi 33882fi
17383if test -z "$no_dev_ptmx" ; then 33883if test -z "$no_dev_ptmx" ; then
17384 if test "x$disable_ptmx_check" != "xyes" ; then 33884 if test "x$disable_ptmx_check" != "xyes" ; then
17385 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh` 33885 { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
17386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5 33886echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; }
17387$as_echo_n "checking for \"/dev/ptmx\"... " >&6; } 33887if test "${ac_cv_file___dev_ptmx_+set}" = set; then
17388if eval \${$as_ac_File+:} false; then : 33888 echo $ECHO_N "(cached) $ECHO_C" >&6
17389 $as_echo_n "(cached) " >&6
17390else 33889else
17391 test "$cross_compiling" = yes && 33890 test "$cross_compiling" = yes &&
17392 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 33891 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
33892echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
33893 { (exit 1); exit 1; }; }
17393if test -r ""/dev/ptmx""; then 33894if test -r ""/dev/ptmx""; then
17394 eval "$as_ac_File=yes" 33895 ac_cv_file___dev_ptmx_=yes
17395else 33896else
17396 eval "$as_ac_File=no" 33897 ac_cv_file___dev_ptmx_=no
17397fi 33898fi
17398fi 33899fi
17399eval ac_res=\$$as_ac_File 33900{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 33901echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; }
17401$as_echo "$ac_res" >&6; } 33902if test $ac_cv_file___dev_ptmx_ = yes; then
17402if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
17403 33903
17404 33904
17405cat >>confdefs.h <<_ACEOF 33905cat >>confdefs.h <<_ACEOF
@@ -17415,24 +33915,24 @@ fi
17415fi 33915fi
17416 33916
17417if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then 33917if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
17418 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh` 33918 { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
17419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5 33919echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; }
17420$as_echo_n "checking for \"/dev/ptc\"... " >&6; } 33920if test "${ac_cv_file___dev_ptc_+set}" = set; then
17421if eval \${$as_ac_File+:} false; then : 33921 echo $ECHO_N "(cached) $ECHO_C" >&6
17422 $as_echo_n "(cached) " >&6
17423else 33922else
17424 test "$cross_compiling" = yes && 33923 test "$cross_compiling" = yes &&
17425 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 33924 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
33925echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
33926 { (exit 1); exit 1; }; }
17426if test -r ""/dev/ptc""; then 33927if test -r ""/dev/ptc""; then
17427 eval "$as_ac_File=yes" 33928 ac_cv_file___dev_ptc_=yes
17428else 33929else
17429 eval "$as_ac_File=no" 33930 ac_cv_file___dev_ptc_=no
17430fi 33931fi
17431fi 33932fi
17432eval ac_res=\$$as_ac_File 33933{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 33934echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; }
17434$as_echo "$ac_res" >&6; } 33935if test $ac_cv_file___dev_ptc_ = yes; then
17435if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
17436 33936
17437 33937
17438cat >>confdefs.h <<_ACEOF 33938cat >>confdefs.h <<_ACEOF
@@ -17445,21 +33945,23 @@ _ACEOF
17445fi 33945fi
17446 33946
17447else 33947else
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5 33948 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5
17449$as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;} 33949echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
17450fi 33950fi
17451 33951
17452# Options from here on. Some of these are preset by platform above 33952# Options from here on. Some of these are preset by platform above
17453 33953
17454# Check whether --with-mantype was given. 33954# Check whether --with-mantype was given.
17455if test "${with_mantype+set}" = set; then : 33955if test "${with_mantype+set}" = set; then
17456 withval=$with_mantype; 33956 withval=$with_mantype;
17457 case "$withval" in 33957 case "$withval" in
17458 man|cat|doc) 33958 man|cat|doc)
17459 MANTYPE=$withval 33959 MANTYPE=$withval
17460 ;; 33960 ;;
17461 *) 33961 *)
17462 as_fn_error $? "invalid man type: $withval" "$LINENO" 5 33962 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
33963echo "$as_me: error: invalid man type: $withval" >&2;}
33964 { (exit 1); exit 1; }; }
17463 ;; 33965 ;;
17464 esac 33966 esac
17465 33967
@@ -17472,10 +33974,10 @@ if test -z "$MANTYPE"; then
17472do 33974do
17473 # Extract the first word of "$ac_prog", so it can be a program name with args. 33975 # Extract the first word of "$ac_prog", so it can be a program name with args.
17474set dummy $ac_prog; ac_word=$2 33976set dummy $ac_prog; ac_word=$2
17475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33977{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17476$as_echo_n "checking for $ac_word... " >&6; } 33978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17477if ${ac_cv_path_NROFF+:} false; then : 33979if test "${ac_cv_path_NROFF+set}" = set; then
17478 $as_echo_n "(cached) " >&6 33980 echo $ECHO_N "(cached) $ECHO_C" >&6
17479else 33981else
17480 case $NROFF in 33982 case $NROFF in
17481 [\\/]* | ?:[\\/]*) 33983 [\\/]* | ?:[\\/]*)
@@ -17487,14 +33989,14 @@ for as_dir in $TestPath
17487do 33989do
17488 IFS=$as_save_IFS 33990 IFS=$as_save_IFS
17489 test -z "$as_dir" && as_dir=. 33991 test -z "$as_dir" && as_dir=.
17490 for ac_exec_ext in '' $ac_executable_extensions; do 33992 for ac_exec_ext in '' $ac_executable_extensions; do
17491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 33993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17492 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" 33994 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
17493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17494 break 2 33996 break 2
17495 fi 33997 fi
17496done 33998done
17497 done 33999done
17498IFS=$as_save_IFS 34000IFS=$as_save_IFS
17499 34001
17500 ;; 34002 ;;
@@ -17502,11 +34004,11 @@ esac
17502fi 34004fi
17503NROFF=$ac_cv_path_NROFF 34005NROFF=$ac_cv_path_NROFF
17504if test -n "$NROFF"; then 34006if test -n "$NROFF"; then
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 34007 { echo "$as_me:$LINENO: result: $NROFF" >&5
17506$as_echo "$NROFF" >&6; } 34008echo "${ECHO_T}$NROFF" >&6; }
17507else 34009else
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34010 { echo "$as_me:$LINENO: result: no" >&5
17509$as_echo "no" >&6; } 34011echo "${ECHO_T}no" >&6; }
17510fi 34012fi
17511 34013
17512 34014
@@ -17534,11 +34036,13 @@ fi
17534MD5_MSG="no" 34036MD5_MSG="no"
17535 34037
17536# Check whether --with-md5-passwords was given. 34038# Check whether --with-md5-passwords was given.
17537if test "${with_md5_passwords+set}" = set; then : 34039if test "${with_md5_passwords+set}" = set; then
17538 withval=$with_md5_passwords; 34040 withval=$with_md5_passwords;
17539 if test "x$withval" != "xno" ; then 34041 if test "x$withval" != "xno" ; then
17540 34042
17541$as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h 34043cat >>confdefs.h <<\_ACEOF
34044#define HAVE_MD5_PASSWORDS 1
34045_ACEOF
17542 34046
17543 MD5_MSG="yes" 34047 MD5_MSG="yes"
17544 fi 34048 fi
@@ -17550,10 +34054,12 @@ fi
17550# Whether to disable shadow password support 34054# Whether to disable shadow password support
17551 34055
17552# Check whether --with-shadow was given. 34056# Check whether --with-shadow was given.
17553if test "${with_shadow+set}" = set; then : 34057if test "${with_shadow+set}" = set; then
17554 withval=$with_shadow; 34058 withval=$with_shadow;
17555 if test "x$withval" = "xno" ; then 34059 if test "x$withval" = "xno" ; then
17556 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h 34060 cat >>confdefs.h <<\_ACEOF
34061#define DISABLE_SHADOW 1
34062_ACEOF
17557 34063
17558 disable_shadow=yes 34064 disable_shadow=yes
17559 fi 34065 fi
@@ -17563,9 +34069,13 @@ fi
17563 34069
17564 34070
17565if test -z "$disable_shadow" ; then 34071if test -z "$disable_shadow" ; then
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5 34072 { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
17567$as_echo_n "checking if the systems has expire shadow information... " >&6; } 34073echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; }
17568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34074 cat >conftest.$ac_ext <<_ACEOF
34075/* confdefs.h. */
34076_ACEOF
34077cat confdefs.h >>conftest.$ac_ext
34078cat >>conftest.$ac_ext <<_ACEOF
17569/* end confdefs.h. */ 34079/* end confdefs.h. */
17570 34080
17571#include <sys/types.h> 34081#include <sys/types.h>
@@ -17580,20 +34090,45 @@ main ()
17580 return 0; 34090 return 0;
17581} 34091}
17582_ACEOF 34092_ACEOF
17583if ac_fn_c_try_compile "$LINENO"; then : 34093rm -f conftest.$ac_objext
34094if { (ac_try="$ac_compile"
34095case "(($ac_try" in
34096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34097 *) ac_try_echo=$ac_try;;
34098esac
34099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34100 (eval "$ac_compile") 2>conftest.er1
34101 ac_status=$?
34102 grep -v '^ *+' conftest.er1 >conftest.err
34103 rm -f conftest.er1
34104 cat conftest.err >&5
34105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34106 (exit $ac_status); } && {
34107 test -z "$ac_c_werror_flag" ||
34108 test ! -s conftest.err
34109 } && test -s conftest.$ac_objext; then
17584 sp_expire_available=yes 34110 sp_expire_available=yes
34111else
34112 echo "$as_me: failed program was:" >&5
34113sed 's/^/| /' conftest.$ac_ext >&5
34114
34115
34116
17585fi 34117fi
34118
17586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17587 34120
17588 if test "x$sp_expire_available" = "xyes" ; then 34121 if test "x$sp_expire_available" = "xyes" ; then
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34122 { echo "$as_me:$LINENO: result: yes" >&5
17590$as_echo "yes" >&6; } 34123echo "${ECHO_T}yes" >&6; }
17591 34124
17592$as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h 34125cat >>confdefs.h <<\_ACEOF
34126#define HAS_SHADOW_EXPIRE 1
34127_ACEOF
17593 34128
17594 else 34129 else
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34130 { echo "$as_me:$LINENO: result: no" >&5
17596$as_echo "no" >&6; } 34131echo "${ECHO_T}no" >&6; }
17597 fi 34132 fi
17598fi 34133fi
17599 34134
@@ -17601,16 +34136,20 @@ fi
17601if test ! -z "$IPADDR_IN_DISPLAY" ; then 34136if test ! -z "$IPADDR_IN_DISPLAY" ; then
17602 DISPLAY_HACK_MSG="yes" 34137 DISPLAY_HACK_MSG="yes"
17603 34138
17604$as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h 34139cat >>confdefs.h <<\_ACEOF
34140#define IPADDR_IN_DISPLAY 1
34141_ACEOF
17605 34142
17606else 34143else
17607 DISPLAY_HACK_MSG="no" 34144 DISPLAY_HACK_MSG="no"
17608 34145
17609# Check whether --with-ipaddr-display was given. 34146# Check whether --with-ipaddr-display was given.
17610if test "${with_ipaddr_display+set}" = set; then : 34147if test "${with_ipaddr_display+set}" = set; then
17611 withval=$with_ipaddr_display; 34148 withval=$with_ipaddr_display;
17612 if test "x$withval" != "xno" ; then 34149 if test "x$withval" != "xno" ; then
17613 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h 34150 cat >>confdefs.h <<\_ACEOF
34151#define IPADDR_IN_DISPLAY 1
34152_ACEOF
17614 34153
17615 DISPLAY_HACK_MSG="yes" 34154 DISPLAY_HACK_MSG="yes"
17616 fi 34155 fi
@@ -17622,10 +34161,10 @@ fi
17622 34161
17623# check for /etc/default/login and use it if present. 34162# check for /etc/default/login and use it if present.
17624# Check whether --enable-etc-default-login was given. 34163# Check whether --enable-etc-default-login was given.
17625if test "${enable_etc_default_login+set}" = set; then : 34164if test "${enable_etc_default_login+set}" = set; then
17626 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then 34165 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5 34166 { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5
17628$as_echo "$as_me: /etc/default/login handling disabled" >&6;} 34167echo "$as_me: /etc/default/login handling disabled" >&6;}
17629 etc_default_login=no 34168 etc_default_login=no
17630 else 34169 else
17631 etc_default_login=yes 34170 etc_default_login=yes
@@ -17633,8 +34172,8 @@ $as_echo "$as_me: /etc/default/login handling disabled" >&6;}
17633else 34172else
17634 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; 34173 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
17635 then 34174 then
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5 34175 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5
17637$as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;} 34176echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
17638 etc_default_login=no 34177 etc_default_login=no
17639 else 34178 else
17640 etc_default_login=yes 34179 etc_default_login=yes
@@ -17644,30 +34183,32 @@ fi
17644 34183
17645 34184
17646if test "x$etc_default_login" != "xno"; then 34185if test "x$etc_default_login" != "xno"; then
17647 as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh` 34186 { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5
17648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5 34187echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; }
17649$as_echo_n "checking for \"/etc/default/login\"... " >&6; } 34188if test "${ac_cv_file___etc_default_login_+set}" = set; then
17650if eval \${$as_ac_File+:} false; then : 34189 echo $ECHO_N "(cached) $ECHO_C" >&6
17651 $as_echo_n "(cached) " >&6
17652else 34190else
17653 test "$cross_compiling" = yes && 34191 test "$cross_compiling" = yes &&
17654 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 34192 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
34193echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
34194 { (exit 1); exit 1; }; }
17655if test -r ""/etc/default/login""; then 34195if test -r ""/etc/default/login""; then
17656 eval "$as_ac_File=yes" 34196 ac_cv_file___etc_default_login_=yes
17657else 34197else
17658 eval "$as_ac_File=no" 34198 ac_cv_file___etc_default_login_=no
17659fi 34199fi
17660fi 34200fi
17661eval ac_res=\$$as_ac_File 34201{ echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 34202echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; }
17663$as_echo "$ac_res" >&6; } 34203if test $ac_cv_file___etc_default_login_ = yes; then
17664if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
17665 external_path_file=/etc/default/login 34204 external_path_file=/etc/default/login
17666fi 34205fi
17667 34206
17668 if test "x$external_path_file" = "x/etc/default/login"; then 34207 if test "x$external_path_file" = "x/etc/default/login"; then
17669 34208
17670$as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h 34209cat >>confdefs.h <<\_ACEOF
34210#define HAVE_ETC_DEFAULT_LOGIN 1
34211_ACEOF
17671 34212
17672 fi 34213 fi
17673fi 34214fi
@@ -17681,21 +34222,21 @@ fi
17681SERVER_PATH_MSG="(default)" 34222SERVER_PATH_MSG="(default)"
17682 34223
17683# Check whether --with-default-path was given. 34224# Check whether --with-default-path was given.
17684if test "${with_default_path+set}" = set; then : 34225if test "${with_default_path+set}" = set; then
17685 withval=$with_default_path; 34226 withval=$with_default_path;
17686 if test "x$external_path_file" = "x/etc/login.conf" ; then 34227 if test "x$external_path_file" = "x/etc/login.conf" ; then
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 34228 { echo "$as_me:$LINENO: WARNING:
17688--with-default-path=PATH has no effect on this system. 34229--with-default-path=PATH has no effect on this system.
17689Edit /etc/login.conf instead." >&5 34230Edit /etc/login.conf instead." >&5
17690$as_echo "$as_me: WARNING: 34231echo "$as_me: WARNING:
17691--with-default-path=PATH has no effect on this system. 34232--with-default-path=PATH has no effect on this system.
17692Edit /etc/login.conf instead." >&2;} 34233Edit /etc/login.conf instead." >&2;}
17693 elif test "x$withval" != "xno" ; then 34234 elif test "x$withval" != "xno" ; then
17694 if test ! -z "$external_path_file" ; then 34235 if test ! -z "$external_path_file" ; then
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 34236 { echo "$as_me:$LINENO: WARNING:
17696--with-default-path=PATH will only be used if PATH is not defined in 34237--with-default-path=PATH will only be used if PATH is not defined in
17697$external_path_file ." >&5 34238$external_path_file ." >&5
17698$as_echo "$as_me: WARNING: 34239echo "$as_me: WARNING:
17699--with-default-path=PATH will only be used if PATH is not defined in 34240--with-default-path=PATH will only be used if PATH is not defined in
17700$external_path_file ." >&2;} 34241$external_path_file ." >&2;}
17701 fi 34242 fi
@@ -17705,22 +34246,26 @@ $external_path_file ." >&2;}
17705 34246
17706else 34247else
17707 if test "x$external_path_file" = "x/etc/login.conf" ; then 34248 if test "x$external_path_file" = "x/etc/login.conf" ; then
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 34249 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
17709$as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} 34250echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
17710 else 34251 else
17711 if test ! -z "$external_path_file" ; then 34252 if test ! -z "$external_path_file" ; then
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 34253 { echo "$as_me:$LINENO: WARNING:
17713If PATH is defined in $external_path_file, ensure the path to scp is included, 34254If PATH is defined in $external_path_file, ensure the path to scp is included,
17714otherwise scp will not work." >&5 34255otherwise scp will not work." >&5
17715$as_echo "$as_me: WARNING: 34256echo "$as_me: WARNING:
17716If PATH is defined in $external_path_file, ensure the path to scp is included, 34257If PATH is defined in $external_path_file, ensure the path to scp is included,
17717otherwise scp will not work." >&2;} 34258otherwise scp will not work." >&2;}
17718 fi 34259 fi
17719 if test "$cross_compiling" = yes; then : 34260 if test "$cross_compiling" = yes; then
17720 user_path="/usr/bin:/bin:/usr/sbin:/sbin" 34261 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
17721 34262
17722else 34263else
17723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34264 cat >conftest.$ac_ext <<_ACEOF
34265/* confdefs.h. */
34266_ACEOF
34267cat confdefs.h >>conftest.$ac_ext
34268cat >>conftest.$ac_ext <<_ACEOF
17724/* end confdefs.h. */ 34269/* end confdefs.h. */
17725 34270
17726/* find out what STDPATH is */ 34271/* find out what STDPATH is */
@@ -17760,15 +34305,39 @@ main ()
17760 return 0; 34305 return 0;
17761} 34306}
17762_ACEOF 34307_ACEOF
17763if ac_fn_c_try_run "$LINENO"; then : 34308rm -f conftest$ac_exeext
34309if { (ac_try="$ac_link"
34310case "(($ac_try" in
34311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34312 *) ac_try_echo=$ac_try;;
34313esac
34314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34315 (eval "$ac_link") 2>&5
34316 ac_status=$?
34317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34319 { (case "(($ac_try" in
34320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34321 *) ac_try_echo=$ac_try;;
34322esac
34323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34324 (eval "$ac_try") 2>&5
34325 ac_status=$?
34326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34327 (exit $ac_status); }; }; then
17764 user_path=`cat conftest.stdpath` 34328 user_path=`cat conftest.stdpath`
17765else 34329else
17766 user_path="/usr/bin:/bin:/usr/sbin:/sbin" 34330 echo "$as_me: program exited with status $ac_status" >&5
34331echo "$as_me: failed program was:" >&5
34332sed 's/^/| /' conftest.$ac_ext >&5
34333
34334( exit $ac_status )
34335 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
17767fi 34336fi
17768rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 34337rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17769 conftest.$ac_objext conftest.beam conftest.$ac_ext
17770fi 34338fi
17771 34339
34340
17772# make sure $bindir is in USER_PATH so scp will work 34341# make sure $bindir is in USER_PATH so scp will work
17773 t_bindir="${bindir}" 34342 t_bindir="${bindir}"
17774 while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do 34343 while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do
@@ -17785,8 +34354,8 @@ fi
17785 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 34354 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
17786 if test $? -ne 0 ; then 34355 if test $? -ne 0 ; then
17787 user_path=$user_path:$t_bindir 34356 user_path=$user_path:$t_bindir
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5 34357 { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
17789$as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; } 34358echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; }
17790 fi 34359 fi
17791 fi 34360 fi
17792 fi 34361 fi
@@ -17805,7 +34374,7 @@ fi
17805# Set superuser path separately to user path 34374# Set superuser path separately to user path
17806 34375
17807# Check whether --with-superuser-path was given. 34376# Check whether --with-superuser-path was given.
17808if test "${with_superuser_path+set}" = set; then : 34377if test "${with_superuser_path+set}" = set; then
17809 withval=$with_superuser_path; 34378 withval=$with_superuser_path;
17810 if test -n "$withval" && test "x$withval" != "xno" && \ 34379 if test -n "$withval" && test "x$withval" != "xno" && \
17811 test "x${withval}" != "xyes"; then 34380 test "x${withval}" != "xyes"; then
@@ -17822,36 +34391,40 @@ fi
17822 34391
17823 34392
17824 34393
17825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 34394{ echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
17826$as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; } 34395echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; }
17827IPV4_IN6_HACK_MSG="no" 34396IPV4_IN6_HACK_MSG="no"
17828 34397
17829# Check whether --with-4in6 was given. 34398# Check whether --with-4in6 was given.
17830if test "${with_4in6+set}" = set; then : 34399if test "${with_4in6+set}" = set; then
17831 withval=$with_4in6; 34400 withval=$with_4in6;
17832 if test "x$withval" != "xno" ; then 34401 if test "x$withval" != "xno" ; then
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34402 { echo "$as_me:$LINENO: result: yes" >&5
17834$as_echo "yes" >&6; } 34403echo "${ECHO_T}yes" >&6; }
17835 34404
17836$as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h 34405cat >>confdefs.h <<\_ACEOF
34406#define IPV4_IN_IPV6 1
34407_ACEOF
17837 34408
17838 IPV4_IN6_HACK_MSG="yes" 34409 IPV4_IN6_HACK_MSG="yes"
17839 else 34410 else
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34411 { echo "$as_me:$LINENO: result: no" >&5
17841$as_echo "no" >&6; } 34412echo "${ECHO_T}no" >&6; }
17842 fi 34413 fi
17843 34414
17844else 34415else
17845 34416
17846 if test "x$inet6_default_4in6" = "xyes"; then 34417 if test "x$inet6_default_4in6" = "xyes"; then
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 34418 { echo "$as_me:$LINENO: result: yes (default)" >&5
17848$as_echo "yes (default)" >&6; } 34419echo "${ECHO_T}yes (default)" >&6; }
17849 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h 34420 cat >>confdefs.h <<\_ACEOF
34421#define IPV4_IN_IPV6 1
34422_ACEOF
17850 34423
17851 IPV4_IN6_HACK_MSG="yes" 34424 IPV4_IN6_HACK_MSG="yes"
17852 else 34425 else
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 34426 { echo "$as_me:$LINENO: result: no (default)" >&5
17854$as_echo "no (default)" >&6; } 34427echo "${ECHO_T}no (default)" >&6; }
17855 fi 34428 fi
17856 34429
17857 34430
@@ -17862,11 +34435,13 @@ fi
17862BSD_AUTH_MSG=no 34435BSD_AUTH_MSG=no
17863 34436
17864# Check whether --with-bsd-auth was given. 34437# Check whether --with-bsd-auth was given.
17865if test "${with_bsd_auth+set}" = set; then : 34438if test "${with_bsd_auth+set}" = set; then
17866 withval=$with_bsd_auth; 34439 withval=$with_bsd_auth;
17867 if test "x$withval" != "xno" ; then 34440 if test "x$withval" != "xno" ; then
17868 34441
17869$as_echo "#define BSD_AUTH 1" >>confdefs.h 34442cat >>confdefs.h <<\_ACEOF
34443#define BSD_AUTH 1
34444_ACEOF
17870 34445
17871 BSD_AUTH_MSG=yes 34446 BSD_AUTH_MSG=yes
17872 fi 34447 fi
@@ -17887,14 +34462,14 @@ fi
17887 34462
17888 34463
17889# Check whether --with-pid-dir was given. 34464# Check whether --with-pid-dir was given.
17890if test "${with_pid_dir+set}" = set; then : 34465if test "${with_pid_dir+set}" = set; then
17891 withval=$with_pid_dir; 34466 withval=$with_pid_dir;
17892 if test -n "$withval" && test "x$withval" != "xno" && \ 34467 if test -n "$withval" && test "x$withval" != "xno" && \
17893 test "x${withval}" != "xyes"; then 34468 test "x${withval}" != "xyes"; then
17894 piddir=$withval 34469 piddir=$withval
17895 if test ! -d $piddir ; then 34470 if test ! -d $piddir ; then
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5 34471 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
17897$as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} 34472echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
17898 fi 34473 fi
17899 fi 34474 fi
17900 34475
@@ -17910,10 +34485,12 @@ _ACEOF
17910 34485
17911 34486
17912# Check whether --enable-lastlog was given. 34487# Check whether --enable-lastlog was given.
17913if test "${enable_lastlog+set}" = set; then : 34488if test "${enable_lastlog+set}" = set; then
17914 enableval=$enable_lastlog; 34489 enableval=$enable_lastlog;
17915 if test "x$enableval" = "xno" ; then 34490 if test "x$enableval" = "xno" ; then
17916 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h 34491 cat >>confdefs.h <<\_ACEOF
34492#define DISABLE_LASTLOG 1
34493_ACEOF
17917 34494
17918 fi 34495 fi
17919 34496
@@ -17921,10 +34498,12 @@ if test "${enable_lastlog+set}" = set; then :
17921fi 34498fi
17922 34499
17923# Check whether --enable-utmp was given. 34500# Check whether --enable-utmp was given.
17924if test "${enable_utmp+set}" = set; then : 34501if test "${enable_utmp+set}" = set; then
17925 enableval=$enable_utmp; 34502 enableval=$enable_utmp;
17926 if test "x$enableval" = "xno" ; then 34503 if test "x$enableval" = "xno" ; then
17927 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h 34504 cat >>confdefs.h <<\_ACEOF
34505#define DISABLE_UTMP 1
34506_ACEOF
17928 34507
17929 fi 34508 fi
17930 34509
@@ -17932,11 +34511,13 @@ if test "${enable_utmp+set}" = set; then :
17932fi 34511fi
17933 34512
17934# Check whether --enable-utmpx was given. 34513# Check whether --enable-utmpx was given.
17935if test "${enable_utmpx+set}" = set; then : 34514if test "${enable_utmpx+set}" = set; then
17936 enableval=$enable_utmpx; 34515 enableval=$enable_utmpx;
17937 if test "x$enableval" = "xno" ; then 34516 if test "x$enableval" = "xno" ; then
17938 34517
17939$as_echo "#define DISABLE_UTMPX 1" >>confdefs.h 34518cat >>confdefs.h <<\_ACEOF
34519#define DISABLE_UTMPX 1
34520_ACEOF
17940 34521
17941 fi 34522 fi
17942 34523
@@ -17944,10 +34525,12 @@ $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
17944fi 34525fi
17945 34526
17946# Check whether --enable-wtmp was given. 34527# Check whether --enable-wtmp was given.
17947if test "${enable_wtmp+set}" = set; then : 34528if test "${enable_wtmp+set}" = set; then
17948 enableval=$enable_wtmp; 34529 enableval=$enable_wtmp;
17949 if test "x$enableval" = "xno" ; then 34530 if test "x$enableval" = "xno" ; then
17950 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h 34531 cat >>confdefs.h <<\_ACEOF
34532#define DISABLE_WTMP 1
34533_ACEOF
17951 34534
17952 fi 34535 fi
17953 34536
@@ -17955,11 +34538,13 @@ if test "${enable_wtmp+set}" = set; then :
17955fi 34538fi
17956 34539
17957# Check whether --enable-wtmpx was given. 34540# Check whether --enable-wtmpx was given.
17958if test "${enable_wtmpx+set}" = set; then : 34541if test "${enable_wtmpx+set}" = set; then
17959 enableval=$enable_wtmpx; 34542 enableval=$enable_wtmpx;
17960 if test "x$enableval" = "xno" ; then 34543 if test "x$enableval" = "xno" ; then
17961 34544
17962$as_echo "#define DISABLE_WTMPX 1" >>confdefs.h 34545cat >>confdefs.h <<\_ACEOF
34546#define DISABLE_WTMPX 1
34547_ACEOF
17963 34548
17964 fi 34549 fi
17965 34550
@@ -17967,10 +34552,12 @@ $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
17967fi 34552fi
17968 34553
17969# Check whether --enable-libutil was given. 34554# Check whether --enable-libutil was given.
17970if test "${enable_libutil+set}" = set; then : 34555if test "${enable_libutil+set}" = set; then
17971 enableval=$enable_libutil; 34556 enableval=$enable_libutil;
17972 if test "x$enableval" = "xno" ; then 34557 if test "x$enableval" = "xno" ; then
17973 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h 34558 cat >>confdefs.h <<\_ACEOF
34559#define DISABLE_LOGIN 1
34560_ACEOF
17974 34561
17975 fi 34562 fi
17976 34563
@@ -17978,11 +34565,13 @@ if test "${enable_libutil+set}" = set; then :
17978fi 34565fi
17979 34566
17980# Check whether --enable-pututline was given. 34567# Check whether --enable-pututline was given.
17981if test "${enable_pututline+set}" = set; then : 34568if test "${enable_pututline+set}" = set; then
17982 enableval=$enable_pututline; 34569 enableval=$enable_pututline;
17983 if test "x$enableval" = "xno" ; then 34570 if test "x$enableval" = "xno" ; then
17984 34571
17985$as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h 34572cat >>confdefs.h <<\_ACEOF
34573#define DISABLE_PUTUTLINE 1
34574_ACEOF
17986 34575
17987 fi 34576 fi
17988 34577
@@ -17990,11 +34579,13 @@ $as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h
17990fi 34579fi
17991 34580
17992# Check whether --enable-pututxline was given. 34581# Check whether --enable-pututxline was given.
17993if test "${enable_pututxline+set}" = set; then : 34582if test "${enable_pututxline+set}" = set; then
17994 enableval=$enable_pututxline; 34583 enableval=$enable_pututxline;
17995 if test "x$enableval" = "xno" ; then 34584 if test "x$enableval" = "xno" ; then
17996 34585
17997$as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h 34586cat >>confdefs.h <<\_ACEOF
34587#define DISABLE_PUTUTXLINE 1
34588_ACEOF
17998 34589
17999 fi 34590 fi
18000 34591
@@ -18003,10 +34594,12 @@ fi
18003 34594
18004 34595
18005# Check whether --with-lastlog was given. 34596# Check whether --with-lastlog was given.
18006if test "${with_lastlog+set}" = set; then : 34597if test "${with_lastlog+set}" = set; then
18007 withval=$with_lastlog; 34598 withval=$with_lastlog;
18008 if test "x$withval" = "xno" ; then 34599 if test "x$withval" = "xno" ; then
18009 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h 34600 cat >>confdefs.h <<\_ACEOF
34601#define DISABLE_LASTLOG 1
34602_ACEOF
18010 34603
18011 elif test -n "$withval" && test "x${withval}" != "xyes"; then 34604 elif test -n "$withval" && test "x${withval}" != "xyes"; then
18012 conf_lastlog_location=$withval 34605 conf_lastlog_location=$withval
@@ -18017,9 +34610,13 @@ fi
18017 34610
18018 34611
18019 34612
18020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5 34613{ echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
18021$as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; } 34614echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; }
18022cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34615cat >conftest.$ac_ext <<_ACEOF
34616/* confdefs.h. */
34617_ACEOF
34618cat confdefs.h >>conftest.$ac_ext
34619cat >>conftest.$ac_ext <<_ACEOF
18023/* end confdefs.h. */ 34620/* end confdefs.h. */
18024 34621
18025#include <sys/types.h> 34622#include <sys/types.h>
@@ -18042,16 +34639,39 @@ main ()
18042 return 0; 34639 return 0;
18043} 34640}
18044_ACEOF 34641_ACEOF
18045if ac_fn_c_try_compile "$LINENO"; then : 34642rm -f conftest.$ac_objext
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34643if { (ac_try="$ac_compile"
18047$as_echo "yes" >&6; } 34644case "(($ac_try" in
34645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34646 *) ac_try_echo=$ac_try;;
34647esac
34648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34649 (eval "$ac_compile") 2>conftest.er1
34650 ac_status=$?
34651 grep -v '^ *+' conftest.er1 >conftest.err
34652 rm -f conftest.er1
34653 cat conftest.err >&5
34654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34655 (exit $ac_status); } && {
34656 test -z "$ac_c_werror_flag" ||
34657 test ! -s conftest.err
34658 } && test -s conftest.$ac_objext; then
34659 { echo "$as_me:$LINENO: result: yes" >&5
34660echo "${ECHO_T}yes" >&6; }
18048else 34661else
34662 echo "$as_me: failed program was:" >&5
34663sed 's/^/| /' conftest.$ac_ext >&5
34664
18049 34665
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34666 { echo "$as_me:$LINENO: result: no" >&5
18051$as_echo "no" >&6; } 34667echo "${ECHO_T}no" >&6; }
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5 34668 { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
18053$as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; } 34669echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; }
18054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34670 cat >conftest.$ac_ext <<_ACEOF
34671/* confdefs.h. */
34672_ACEOF
34673cat confdefs.h >>conftest.$ac_ext
34674cat >>conftest.$ac_ext <<_ACEOF
18055/* end confdefs.h. */ 34675/* end confdefs.h. */
18056 34676
18057#include <sys/types.h> 34677#include <sys/types.h>
@@ -18071,19 +34691,40 @@ main ()
18071 return 0; 34691 return 0;
18072} 34692}
18073_ACEOF 34693_ACEOF
18074if ac_fn_c_try_compile "$LINENO"; then : 34694rm -f conftest.$ac_objext
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34695if { (ac_try="$ac_compile"
18076$as_echo "yes" >&6; } 34696case "(($ac_try" in
34697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34698 *) ac_try_echo=$ac_try;;
34699esac
34700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34701 (eval "$ac_compile") 2>conftest.er1
34702 ac_status=$?
34703 grep -v '^ *+' conftest.er1 >conftest.err
34704 rm -f conftest.er1
34705 cat conftest.err >&5
34706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34707 (exit $ac_status); } && {
34708 test -z "$ac_c_werror_flag" ||
34709 test ! -s conftest.err
34710 } && test -s conftest.$ac_objext; then
34711 { echo "$as_me:$LINENO: result: yes" >&5
34712echo "${ECHO_T}yes" >&6; }
18077else 34713else
34714 echo "$as_me: failed program was:" >&5
34715sed 's/^/| /' conftest.$ac_ext >&5
18078 34716
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34717
18080$as_echo "no" >&6; } 34718 { echo "$as_me:$LINENO: result: no" >&5
34719echo "${ECHO_T}no" >&6; }
18081 system_lastlog_path=no 34720 system_lastlog_path=no
18082 34721
18083fi 34722fi
34723
18084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18085 34725
18086fi 34726fi
34727
18087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18088 34729
18089if test -z "$conf_lastlog_location"; then 34730if test -z "$conf_lastlog_location"; then
@@ -18094,8 +34735,8 @@ if test -z "$conf_lastlog_location"; then
18094 fi 34735 fi
18095 done 34736 done
18096 if test -z "$conf_lastlog_location"; then 34737 if test -z "$conf_lastlog_location"; then
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5 34738 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
18098$as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} 34739echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
18099 fi 34740 fi
18100 fi 34741 fi
18101fi 34742fi
@@ -18108,9 +34749,13 @@ _ACEOF
18108 34749
18109fi 34750fi
18110 34751
18111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5 34752{ echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
18112$as_echo_n "checking if your system defines UTMP_FILE... " >&6; } 34753echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; }
18113cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34754cat >conftest.$ac_ext <<_ACEOF
34755/* confdefs.h. */
34756_ACEOF
34757cat confdefs.h >>conftest.$ac_ext
34758cat >>conftest.$ac_ext <<_ACEOF
18114/* end confdefs.h. */ 34759/* end confdefs.h. */
18115 34760
18116#include <sys/types.h> 34761#include <sys/types.h>
@@ -18127,15 +34772,35 @@ main ()
18127 return 0; 34772 return 0;
18128} 34773}
18129_ACEOF 34774_ACEOF
18130if ac_fn_c_try_compile "$LINENO"; then : 34775rm -f conftest.$ac_objext
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34776if { (ac_try="$ac_compile"
18132$as_echo "yes" >&6; } 34777case "(($ac_try" in
34778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34779 *) ac_try_echo=$ac_try;;
34780esac
34781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34782 (eval "$ac_compile") 2>conftest.er1
34783 ac_status=$?
34784 grep -v '^ *+' conftest.er1 >conftest.err
34785 rm -f conftest.er1
34786 cat conftest.err >&5
34787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34788 (exit $ac_status); } && {
34789 test -z "$ac_c_werror_flag" ||
34790 test ! -s conftest.err
34791 } && test -s conftest.$ac_objext; then
34792 { echo "$as_me:$LINENO: result: yes" >&5
34793echo "${ECHO_T}yes" >&6; }
18133else 34794else
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34795 echo "$as_me: failed program was:" >&5
18135$as_echo "no" >&6; } 34796sed 's/^/| /' conftest.$ac_ext >&5
34797
34798 { echo "$as_me:$LINENO: result: no" >&5
34799echo "${ECHO_T}no" >&6; }
18136 system_utmp_path=no 34800 system_utmp_path=no
18137 34801
18138fi 34802fi
34803
18139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18140if test -z "$conf_utmp_location"; then 34805if test -z "$conf_utmp_location"; then
18141 if test x"$system_utmp_path" = x"no" ; then 34806 if test x"$system_utmp_path" = x"no" ; then
@@ -18145,7 +34810,9 @@ if test -z "$conf_utmp_location"; then
18145 fi 34810 fi
18146 done 34811 done
18147 if test -z "$conf_utmp_location"; then 34812 if test -z "$conf_utmp_location"; then
18148 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h 34813 cat >>confdefs.h <<\_ACEOF
34814#define DISABLE_UTMP 1
34815_ACEOF
18149 34816
18150 fi 34817 fi
18151 fi 34818 fi
@@ -18158,9 +34825,13 @@ _ACEOF
18158 34825
18159fi 34826fi
18160 34827
18161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5 34828{ echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
18162$as_echo_n "checking if your system defines WTMP_FILE... " >&6; } 34829echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; }
18163cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34830cat >conftest.$ac_ext <<_ACEOF
34831/* confdefs.h. */
34832_ACEOF
34833cat confdefs.h >>conftest.$ac_ext
34834cat >>conftest.$ac_ext <<_ACEOF
18164/* end confdefs.h. */ 34835/* end confdefs.h. */
18165 34836
18166#include <sys/types.h> 34837#include <sys/types.h>
@@ -18177,15 +34848,35 @@ main ()
18177 return 0; 34848 return 0;
18178} 34849}
18179_ACEOF 34850_ACEOF
18180if ac_fn_c_try_compile "$LINENO"; then : 34851rm -f conftest.$ac_objext
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34852if { (ac_try="$ac_compile"
18182$as_echo "yes" >&6; } 34853case "(($ac_try" in
34854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34855 *) ac_try_echo=$ac_try;;
34856esac
34857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34858 (eval "$ac_compile") 2>conftest.er1
34859 ac_status=$?
34860 grep -v '^ *+' conftest.er1 >conftest.err
34861 rm -f conftest.er1
34862 cat conftest.err >&5
34863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34864 (exit $ac_status); } && {
34865 test -z "$ac_c_werror_flag" ||
34866 test ! -s conftest.err
34867 } && test -s conftest.$ac_objext; then
34868 { echo "$as_me:$LINENO: result: yes" >&5
34869echo "${ECHO_T}yes" >&6; }
18183else 34870else
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34871 echo "$as_me: failed program was:" >&5
18185$as_echo "no" >&6; } 34872sed 's/^/| /' conftest.$ac_ext >&5
34873
34874 { echo "$as_me:$LINENO: result: no" >&5
34875echo "${ECHO_T}no" >&6; }
18186 system_wtmp_path=no 34876 system_wtmp_path=no
18187 34877
18188fi 34878fi
34879
18189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18190if test -z "$conf_wtmp_location"; then 34881if test -z "$conf_wtmp_location"; then
18191 if test x"$system_wtmp_path" = x"no" ; then 34882 if test x"$system_wtmp_path" = x"no" ; then
@@ -18195,7 +34886,9 @@ if test -z "$conf_wtmp_location"; then
18195 fi 34886 fi
18196 done 34887 done
18197 if test -z "$conf_wtmp_location"; then 34888 if test -z "$conf_wtmp_location"; then
18198 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h 34889 cat >>confdefs.h <<\_ACEOF
34890#define DISABLE_WTMP 1
34891_ACEOF
18199 34892
18200 fi 34893 fi
18201 fi 34894 fi
@@ -18208,9 +34901,13 @@ _ACEOF
18208 34901
18209fi 34902fi
18210 34903
18211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5 34904{ echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
18212$as_echo_n "checking if your system defines WTMPX_FILE... " >&6; } 34905echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; }
18213cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34906cat >conftest.$ac_ext <<_ACEOF
34907/* confdefs.h. */
34908_ACEOF
34909cat confdefs.h >>conftest.$ac_ext
34910cat >>conftest.$ac_ext <<_ACEOF
18214/* end confdefs.h. */ 34911/* end confdefs.h. */
18215 34912
18216#include <sys/types.h> 34913#include <sys/types.h>
@@ -18230,19 +34927,41 @@ main ()
18230 return 0; 34927 return 0;
18231} 34928}
18232_ACEOF 34929_ACEOF
18233if ac_fn_c_try_compile "$LINENO"; then : 34930rm -f conftest.$ac_objext
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34931if { (ac_try="$ac_compile"
18235$as_echo "yes" >&6; } 34932case "(($ac_try" in
34933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34934 *) ac_try_echo=$ac_try;;
34935esac
34936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34937 (eval "$ac_compile") 2>conftest.er1
34938 ac_status=$?
34939 grep -v '^ *+' conftest.er1 >conftest.err
34940 rm -f conftest.er1
34941 cat conftest.err >&5
34942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34943 (exit $ac_status); } && {
34944 test -z "$ac_c_werror_flag" ||
34945 test ! -s conftest.err
34946 } && test -s conftest.$ac_objext; then
34947 { echo "$as_me:$LINENO: result: yes" >&5
34948echo "${ECHO_T}yes" >&6; }
18236else 34949else
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34950 echo "$as_me: failed program was:" >&5
18238$as_echo "no" >&6; } 34951sed 's/^/| /' conftest.$ac_ext >&5
34952
34953 { echo "$as_me:$LINENO: result: no" >&5
34954echo "${ECHO_T}no" >&6; }
18239 system_wtmpx_path=no 34955 system_wtmpx_path=no
18240 34956
18241fi 34957fi
34958
18242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18243if test -z "$conf_wtmpx_location"; then 34960if test -z "$conf_wtmpx_location"; then
18244 if test x"$system_wtmpx_path" = x"no" ; then 34961 if test x"$system_wtmpx_path" = x"no" ; then
18245 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h 34962 cat >>confdefs.h <<\_ACEOF
34963#define DISABLE_WTMPX 1
34964_ACEOF
18246 34965
18247 fi 34966 fi
18248else 34967else
@@ -18256,11 +34975,75 @@ fi
18256 34975
18257if test ! -z "$blibpath" ; then 34976if test ! -z "$blibpath" ; then
18258 LDFLAGS="$LDFLAGS $blibflags$blibpath" 34977 LDFLAGS="$LDFLAGS $blibflags$blibpath"
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 34978 { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
18260$as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} 34979echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
18261fi 34980fi
18262 34981
18263ac_fn_c_check_member "$LINENO" "struct lastlog" "ll_line" "ac_cv_member_struct_lastlog_ll_line" " 34982{ echo "$as_me:$LINENO: checking for struct lastlog.ll_line" >&5
34983echo $ECHO_N "checking for struct lastlog.ll_line... $ECHO_C" >&6; }
34984if test "${ac_cv_member_struct_lastlog_ll_line+set}" = set; then
34985 echo $ECHO_N "(cached) $ECHO_C" >&6
34986else
34987 cat >conftest.$ac_ext <<_ACEOF
34988/* confdefs.h. */
34989_ACEOF
34990cat confdefs.h >>conftest.$ac_ext
34991cat >>conftest.$ac_ext <<_ACEOF
34992/* end confdefs.h. */
34993
34994#ifdef HAVE_SYS_TYPES_H
34995#include <sys/types.h>
34996#endif
34997#ifdef HAVE_UTMP_H
34998#include <utmp.h>
34999#endif
35000#ifdef HAVE_UTMPX_H
35001#include <utmpx.h>
35002#endif
35003#ifdef HAVE_LASTLOG_H
35004#include <lastlog.h>
35005#endif
35006
35007
35008int
35009main ()
35010{
35011static struct lastlog ac_aggr;
35012if (ac_aggr.ll_line)
35013return 0;
35014 ;
35015 return 0;
35016}
35017_ACEOF
35018rm -f conftest.$ac_objext
35019if { (ac_try="$ac_compile"
35020case "(($ac_try" in
35021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35022 *) ac_try_echo=$ac_try;;
35023esac
35024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35025 (eval "$ac_compile") 2>conftest.er1
35026 ac_status=$?
35027 grep -v '^ *+' conftest.er1 >conftest.err
35028 rm -f conftest.er1
35029 cat conftest.err >&5
35030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35031 (exit $ac_status); } && {
35032 test -z "$ac_c_werror_flag" ||
35033 test ! -s conftest.err
35034 } && test -s conftest.$ac_objext; then
35035 ac_cv_member_struct_lastlog_ll_line=yes
35036else
35037 echo "$as_me: failed program was:" >&5
35038sed 's/^/| /' conftest.$ac_ext >&5
35039
35040 cat >conftest.$ac_ext <<_ACEOF
35041/* confdefs.h. */
35042_ACEOF
35043cat confdefs.h >>conftest.$ac_ext
35044cat >>conftest.$ac_ext <<_ACEOF
35045/* end confdefs.h. */
35046
18264#ifdef HAVE_SYS_TYPES_H 35047#ifdef HAVE_SYS_TYPES_H
18265#include <sys/types.h> 35048#include <sys/types.h>
18266#endif 35049#endif
@@ -18274,20 +35057,128 @@ ac_fn_c_check_member "$LINENO" "struct lastlog" "ll_line" "ac_cv_member_struct_l
18274#include <lastlog.h> 35057#include <lastlog.h>
18275#endif 35058#endif
18276 35059
18277"
18278if test "x$ac_cv_member_struct_lastlog_ll_line" = xyes; then :
18279 35060
35061int
35062main ()
35063{
35064static struct lastlog ac_aggr;
35065if (sizeof ac_aggr.ll_line)
35066return 0;
35067 ;
35068 return 0;
35069}
35070_ACEOF
35071rm -f conftest.$ac_objext
35072if { (ac_try="$ac_compile"
35073case "(($ac_try" in
35074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35075 *) ac_try_echo=$ac_try;;
35076esac
35077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35078 (eval "$ac_compile") 2>conftest.er1
35079 ac_status=$?
35080 grep -v '^ *+' conftest.er1 >conftest.err
35081 rm -f conftest.er1
35082 cat conftest.err >&5
35083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35084 (exit $ac_status); } && {
35085 test -z "$ac_c_werror_flag" ||
35086 test ! -s conftest.err
35087 } && test -s conftest.$ac_objext; then
35088 ac_cv_member_struct_lastlog_ll_line=yes
35089else
35090 echo "$as_me: failed program was:" >&5
35091sed 's/^/| /' conftest.$ac_ext >&5
35092
35093 ac_cv_member_struct_lastlog_ll_line=no
35094fi
35095
35096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35097fi
35098
35099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35100fi
35101{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_lastlog_ll_line" >&5
35102echo "${ECHO_T}$ac_cv_member_struct_lastlog_ll_line" >&6; }
35103if test $ac_cv_member_struct_lastlog_ll_line = yes; then
35104 :
18280else 35105else
18281 35106
18282 if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then 35107 if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then
18283 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h 35108 cat >>confdefs.h <<\_ACEOF
35109#define DISABLE_LASTLOG 1
35110_ACEOF
18284 35111
18285 fi 35112 fi
18286 35113
18287fi 35114fi
18288 35115
18289 35116
18290ac_fn_c_check_member "$LINENO" "struct utmp" "ut_line" "ac_cv_member_struct_utmp_ut_line" " 35117{ echo "$as_me:$LINENO: checking for struct utmp.ut_line" >&5
35118echo $ECHO_N "checking for struct utmp.ut_line... $ECHO_C" >&6; }
35119if test "${ac_cv_member_struct_utmp_ut_line+set}" = set; then
35120 echo $ECHO_N "(cached) $ECHO_C" >&6
35121else
35122 cat >conftest.$ac_ext <<_ACEOF
35123/* confdefs.h. */
35124_ACEOF
35125cat confdefs.h >>conftest.$ac_ext
35126cat >>conftest.$ac_ext <<_ACEOF
35127/* end confdefs.h. */
35128
35129#ifdef HAVE_SYS_TYPES_H
35130#include <sys/types.h>
35131#endif
35132#ifdef HAVE_UTMP_H
35133#include <utmp.h>
35134#endif
35135#ifdef HAVE_UTMPX_H
35136#include <utmpx.h>
35137#endif
35138#ifdef HAVE_LASTLOG_H
35139#include <lastlog.h>
35140#endif
35141
35142
35143int
35144main ()
35145{
35146static struct utmp ac_aggr;
35147if (ac_aggr.ut_line)
35148return 0;
35149 ;
35150 return 0;
35151}
35152_ACEOF
35153rm -f conftest.$ac_objext
35154if { (ac_try="$ac_compile"
35155case "(($ac_try" in
35156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35157 *) ac_try_echo=$ac_try;;
35158esac
35159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35160 (eval "$ac_compile") 2>conftest.er1
35161 ac_status=$?
35162 grep -v '^ *+' conftest.er1 >conftest.err
35163 rm -f conftest.er1
35164 cat conftest.err >&5
35165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35166 (exit $ac_status); } && {
35167 test -z "$ac_c_werror_flag" ||
35168 test ! -s conftest.err
35169 } && test -s conftest.$ac_objext; then
35170 ac_cv_member_struct_utmp_ut_line=yes
35171else
35172 echo "$as_me: failed program was:" >&5
35173sed 's/^/| /' conftest.$ac_ext >&5
35174
35175 cat >conftest.$ac_ext <<_ACEOF
35176/* confdefs.h. */
35177_ACEOF
35178cat confdefs.h >>conftest.$ac_ext
35179cat >>conftest.$ac_ext <<_ACEOF
35180/* end confdefs.h. */
35181
18291#ifdef HAVE_SYS_TYPES_H 35182#ifdef HAVE_SYS_TYPES_H
18292#include <sys/types.h> 35183#include <sys/types.h>
18293#endif 35184#endif
@@ -18301,14 +35192,60 @@ ac_fn_c_check_member "$LINENO" "struct utmp" "ut_line" "ac_cv_member_struct_utmp
18301#include <lastlog.h> 35192#include <lastlog.h>
18302#endif 35193#endif
18303 35194
18304"
18305if test "x$ac_cv_member_struct_utmp_ut_line" = xyes; then :
18306 35195
35196int
35197main ()
35198{
35199static struct utmp ac_aggr;
35200if (sizeof ac_aggr.ut_line)
35201return 0;
35202 ;
35203 return 0;
35204}
35205_ACEOF
35206rm -f conftest.$ac_objext
35207if { (ac_try="$ac_compile"
35208case "(($ac_try" in
35209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35210 *) ac_try_echo=$ac_try;;
35211esac
35212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35213 (eval "$ac_compile") 2>conftest.er1
35214 ac_status=$?
35215 grep -v '^ *+' conftest.er1 >conftest.err
35216 rm -f conftest.er1
35217 cat conftest.err >&5
35218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35219 (exit $ac_status); } && {
35220 test -z "$ac_c_werror_flag" ||
35221 test ! -s conftest.err
35222 } && test -s conftest.$ac_objext; then
35223 ac_cv_member_struct_utmp_ut_line=yes
35224else
35225 echo "$as_me: failed program was:" >&5
35226sed 's/^/| /' conftest.$ac_ext >&5
35227
35228 ac_cv_member_struct_utmp_ut_line=no
35229fi
35230
35231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35232fi
35233
35234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35235fi
35236{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_line" >&5
35237echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_line" >&6; }
35238if test $ac_cv_member_struct_utmp_ut_line = yes; then
35239 :
18307else 35240else
18308 35241
18309 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h 35242 cat >>confdefs.h <<\_ACEOF
35243#define DISABLE_UTMP 1
35244_ACEOF
18310 35245
18311 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h 35246 cat >>confdefs.h <<\_ACEOF
35247#define DISABLE_WTMP 1
35248_ACEOF
18312 35249
18313 35250
18314fi 35251fi
@@ -18321,8 +35258,59 @@ if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
18321else 35258else
18322 TEST_SSH_IPV6=yes 35259 TEST_SSH_IPV6=yes
18323fi 35260fi
18324ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default" 35261{ echo "$as_me:$LINENO: checking whether BROKEN_GETADDRINFO is declared" >&5
18325if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then : 35262echo $ECHO_N "checking whether BROKEN_GETADDRINFO is declared... $ECHO_C" >&6; }
35263if test "${ac_cv_have_decl_BROKEN_GETADDRINFO+set}" = set; then
35264 echo $ECHO_N "(cached) $ECHO_C" >&6
35265else
35266 cat >conftest.$ac_ext <<_ACEOF
35267/* confdefs.h. */
35268_ACEOF
35269cat confdefs.h >>conftest.$ac_ext
35270cat >>conftest.$ac_ext <<_ACEOF
35271/* end confdefs.h. */
35272$ac_includes_default
35273int
35274main ()
35275{
35276#ifndef BROKEN_GETADDRINFO
35277 (void) BROKEN_GETADDRINFO;
35278#endif
35279
35280 ;
35281 return 0;
35282}
35283_ACEOF
35284rm -f conftest.$ac_objext
35285if { (ac_try="$ac_compile"
35286case "(($ac_try" in
35287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35288 *) ac_try_echo=$ac_try;;
35289esac
35290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35291 (eval "$ac_compile") 2>conftest.er1
35292 ac_status=$?
35293 grep -v '^ *+' conftest.er1 >conftest.err
35294 rm -f conftest.er1
35295 cat conftest.err >&5
35296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35297 (exit $ac_status); } && {
35298 test -z "$ac_c_werror_flag" ||
35299 test ! -s conftest.err
35300 } && test -s conftest.$ac_objext; then
35301 ac_cv_have_decl_BROKEN_GETADDRINFO=yes
35302else
35303 echo "$as_me: failed program was:" >&5
35304sed 's/^/| /' conftest.$ac_ext >&5
35305
35306 ac_cv_have_decl_BROKEN_GETADDRINFO=no
35307fi
35308
35309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35310fi
35311{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_BROKEN_GETADDRINFO" >&5
35312echo "${ECHO_T}$ac_cv_have_decl_BROKEN_GETADDRINFO" >&6; }
35313if test $ac_cv_have_decl_BROKEN_GETADDRINFO = yes; then
18326 TEST_SSH_IPV6=no 35314 TEST_SSH_IPV6=no
18327fi 35315fi
18328 35316
@@ -18363,13 +35351,12 @@ _ACEOF
18363 case $ac_val in #( 35351 case $ac_val in #(
18364 *${as_nl}*) 35352 *${as_nl}*)
18365 case $ac_var in #( 35353 case $ac_var in #(
18366 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 35354 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18367$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 35355echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18368 esac 35356 esac
18369 case $ac_var in #( 35357 case $ac_var in #(
18370 _ | IFS | as_nl) ;; #( 35358 _ | IFS | as_nl) ;; #(
18371 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 35359 *) $as_unset $ac_var ;;
18372 *) { eval $ac_var=; unset $ac_var;} ;;
18373 esac ;; 35360 esac ;;
18374 esac 35361 esac
18375 done 35362 done
@@ -18377,8 +35364,8 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18377 (set) 2>&1 | 35364 (set) 2>&1 |
18378 case $as_nl`(ac_space=' '; set) 2>&1` in #( 35365 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18379 *${as_nl}ac_space=\ *) 35366 *${as_nl}ac_space=\ *)
18380 # `set' does not quote correctly, so add quotes: double-quote 35367 # `set' does not quote correctly, so add quotes (double-quote
18381 # substitution turns \\\\ into \\, and sed turns \\ into \. 35368 # substitution turns \\\\ into \\, and sed turns \\ into \).
18382 sed -n \ 35369 sed -n \
18383 "s/'/'\\\\''/g; 35370 "s/'/'\\\\''/g;
18384 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 35371 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
@@ -18400,24 +35387,13 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18400 :end' >>confcache 35387 :end' >>confcache
18401if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 35388if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18402 if test -w "$cache_file"; then 35389 if test -w "$cache_file"; then
18403 if test "x$cache_file" != "x/dev/null"; then 35390 test "x$cache_file" != "x/dev/null" &&
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 35391 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18405$as_echo "$as_me: updating cache $cache_file" >&6;} 35392echo "$as_me: updating cache $cache_file" >&6;}
18406 if test ! -f "$cache_file" || test -h "$cache_file"; then 35393 cat confcache >$cache_file
18407 cat confcache >"$cache_file"
18408 else
18409 case $cache_file in #(
18410 */* | ?:*)
18411 mv -f confcache "$cache_file"$$ &&
18412 mv -f "$cache_file"$$ "$cache_file" ;; #(
18413 *)
18414 mv -f confcache "$cache_file" ;;
18415 esac
18416 fi
18417 fi
18418 else 35394 else
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 35395 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18420$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 35396echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18421 fi 35397 fi
18422fi 35398fi
18423rm -f confcache 35399rm -f confcache
@@ -18430,15 +35406,14 @@ DEFS=-DHAVE_CONFIG_H
18430 35406
18431ac_libobjs= 35407ac_libobjs=
18432ac_ltlibobjs= 35408ac_ltlibobjs=
18433U=
18434for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 35409for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18435 # 1. Remove the extension, and $U if already installed. 35410 # 1. Remove the extension, and $U if already installed.
18436 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 35411 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18437 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 35412 ac_i=`echo "$ac_i" | sed "$ac_script"`
18438 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 35413 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18439 # will be set to the directory where LIBOBJS objects are built. 35414 # will be set to the directory where LIBOBJS objects are built.
18440 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 35415 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18441 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 35416 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18442done 35417done
18443LIBOBJS=$ac_libobjs 35418LIBOBJS=$ac_libobjs
18444 35419
@@ -18446,15 +35421,12 @@ LTLIBOBJS=$ac_ltlibobjs
18446 35421
18447 35422
18448 35423
18449 35424: ${CONFIG_STATUS=./config.status}
18450: "${CONFIG_STATUS=./config.status}"
18451ac_write_fail=0
18452ac_clean_files_save=$ac_clean_files 35425ac_clean_files_save=$ac_clean_files
18453ac_clean_files="$ac_clean_files $CONFIG_STATUS" 35426ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18454{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 35427{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18455$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 35428echo "$as_me: creating $CONFIG_STATUS" >&6;}
18456as_write_fail=0 35429cat >$CONFIG_STATUS <<_ACEOF
18457cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18458#! $SHELL 35430#! $SHELL
18459# Generated by $as_me. 35431# Generated by $as_me.
18460# Run this file to recreate the current configuration. 35432# Run this file to recreate the current configuration.
@@ -18464,79 +35436,59 @@ cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18464debug=false 35436debug=false
18465ac_cs_recheck=false 35437ac_cs_recheck=false
18466ac_cs_silent=false 35438ac_cs_silent=false
18467
18468SHELL=\${CONFIG_SHELL-$SHELL} 35439SHELL=\${CONFIG_SHELL-$SHELL}
18469export SHELL 35440_ACEOF
18470_ASEOF 35441
18471cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 35442cat >>$CONFIG_STATUS <<\_ACEOF
18472## -------------------- ## 35443## --------------------- ##
18473## M4sh Initialization. ## 35444## M4sh Initialization. ##
18474## -------------------- ## 35445## --------------------- ##
18475 35446
18476# Be more Bourne compatible 35447# Be more Bourne compatible
18477DUALCASE=1; export DUALCASE # for MKS sh 35448DUALCASE=1; export DUALCASE # for MKS sh
18478if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 35449if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18479 emulate sh 35450 emulate sh
18480 NULLCMD=: 35451 NULLCMD=:
18481 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 35452 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18482 # is contrary to our usage. Disable this feature. 35453 # is contrary to our usage. Disable this feature.
18483 alias -g '${1+"$@"}'='"$@"' 35454 alias -g '${1+"$@"}'='"$@"'
18484 setopt NO_GLOB_SUBST 35455 setopt NO_GLOB_SUBST
18485else 35456else
18486 case `(set -o) 2>/dev/null` in #( 35457 case `(set -o) 2>/dev/null` in
18487 *posix*) : 35458 *posix*) set -o posix ;;
18488 set -o posix ;; #(
18489 *) :
18490 ;;
18491esac 35459esac
35460
18492fi 35461fi
18493 35462
18494 35463
18495as_nl=' 35464
18496' 35465
18497export as_nl 35466# PATH needs CR
18498# Printing a long string crashes Solaris 7 /usr/bin/printf. 35467# Avoid depending upon Character Ranges.
18499as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 35468as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18500as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 35469as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18501as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 35470as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18502# Prefer a ksh shell builtin over an external printf program on Solaris, 35471as_cr_digits='0123456789'
18503# but without wasting forks for bash or zsh. 35472as_cr_alnum=$as_cr_Letters$as_cr_digits
18504if test -z "$BASH_VERSION$ZSH_VERSION" \ 35473
18505 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 35474# The user is always right.
18506 as_echo='print -r --' 35475if test "${PATH_SEPARATOR+set}" != set; then
18507 as_echo_n='print -rn --' 35476 echo "#! /bin/sh" >conf$$.sh
18508elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 35477 echo "exit 0" >>conf$$.sh
18509 as_echo='printf %s\n' 35478 chmod +x conf$$.sh
18510 as_echo_n='printf %s' 35479 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18511else 35480 PATH_SEPARATOR=';'
18512 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18513 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18514 as_echo_n='/usr/ucb/echo -n'
18515 else 35481 else
18516 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 35482 PATH_SEPARATOR=:
18517 as_echo_n_body='eval
18518 arg=$1;
18519 case $arg in #(
18520 *"$as_nl"*)
18521 expr "X$arg" : "X\\(.*\\)$as_nl";
18522 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18523 esac;
18524 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18525 '
18526 export as_echo_n_body
18527 as_echo_n='sh -c $as_echo_n_body as_echo'
18528 fi 35483 fi
18529 export as_echo_body 35484 rm -f conf$$.sh
18530 as_echo='sh -c $as_echo_body as_echo'
18531fi 35485fi
18532 35486
18533# The user is always right. 35487# Support unset when possible.
18534if test "${PATH_SEPARATOR+set}" != set; then 35488if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18535 PATH_SEPARATOR=: 35489 as_unset=unset
18536 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 35490else
18537 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 35491 as_unset=false
18538 PATH_SEPARATOR=';'
18539 }
18540fi 35492fi
18541 35493
18542 35494
@@ -18545,19 +35497,20 @@ fi
18545# there to prevent editors from complaining about space-tab. 35497# there to prevent editors from complaining about space-tab.
18546# (If _AS_PATH_WALK were called with IFS unset, it would disable word 35498# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18547# splitting by setting IFS to empty value.) 35499# splitting by setting IFS to empty value.)
35500as_nl='
35501'
18548IFS=" "" $as_nl" 35502IFS=" "" $as_nl"
18549 35503
18550# Find who we are. Look in the path if we contain no directory separator. 35504# Find who we are. Look in the path if we contain no directory separator.
18551as_myself= 35505case $0 in
18552case $0 in #((
18553 *[\\/]* ) as_myself=$0 ;; 35506 *[\\/]* ) as_myself=$0 ;;
18554 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35507 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18555for as_dir in $PATH 35508for as_dir in $PATH
18556do 35509do
18557 IFS=$as_save_IFS 35510 IFS=$as_save_IFS
18558 test -z "$as_dir" && as_dir=. 35511 test -z "$as_dir" && as_dir=.
18559 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 35512 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18560 done 35513done
18561IFS=$as_save_IFS 35514IFS=$as_save_IFS
18562 35515
18563 ;; 35516 ;;
@@ -18568,111 +35521,32 @@ if test "x$as_myself" = x; then
18568 as_myself=$0 35521 as_myself=$0
18569fi 35522fi
18570if test ! -f "$as_myself"; then 35523if test ! -f "$as_myself"; then
18571 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 35524 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18572 exit 1 35525 { (exit 1); exit 1; }
18573fi 35526fi
18574 35527
18575# Unset variables that we do not need and which cause bugs (e.g. in 35528# Work around bugs in pre-3.0 UWIN ksh.
18576# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 35529for as_var in ENV MAIL MAILPATH
18577# suppresses any "Segmentation fault" message there. '((' could 35530do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18578# trigger a bug in pdksh 5.2.14.
18579for as_var in BASH_ENV ENV MAIL MAILPATH
18580do eval test x\${$as_var+set} = xset \
18581 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18582done 35531done
18583PS1='$ ' 35532PS1='$ '
18584PS2='> ' 35533PS2='> '
18585PS4='+ ' 35534PS4='+ '
18586 35535
18587# NLS nuisances. 35536# NLS nuisances.
18588LC_ALL=C 35537for as_var in \
18589export LC_ALL 35538 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18590LANGUAGE=C 35539 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18591export LANGUAGE 35540 LC_TELEPHONE LC_TIME
18592 35541do
18593# CDPATH. 35542 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18594(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 35543 eval $as_var=C; export $as_var
18595 35544 else
18596 35545 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18597# as_fn_error STATUS ERROR [LINENO LOG_FD]
18598# ----------------------------------------
18599# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18600# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18601# script with STATUS, using 1 if that was 0.
18602as_fn_error ()
18603{
18604 as_status=$1; test $as_status -eq 0 && as_status=1
18605 if test "$4"; then
18606 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18607 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18608 fi 35546 fi
18609 $as_echo "$as_me: error: $2" >&2 35547done
18610 as_fn_exit $as_status
18611} # as_fn_error
18612
18613
18614# as_fn_set_status STATUS
18615# -----------------------
18616# Set $? to STATUS, without forking.
18617as_fn_set_status ()
18618{
18619 return $1
18620} # as_fn_set_status
18621
18622# as_fn_exit STATUS
18623# -----------------
18624# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18625as_fn_exit ()
18626{
18627 set +e
18628 as_fn_set_status $1
18629 exit $1
18630} # as_fn_exit
18631
18632# as_fn_unset VAR
18633# ---------------
18634# Portably unset VAR.
18635as_fn_unset ()
18636{
18637 { eval $1=; unset $1;}
18638}
18639as_unset=as_fn_unset
18640# as_fn_append VAR VALUE
18641# ----------------------
18642# Append the text in VALUE to the end of the definition contained in VAR. Take
18643# advantage of any shell optimizations that allow amortized linear growth over
18644# repeated appends, instead of the typical quadratic growth present in naive
18645# implementations.
18646if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18647 eval 'as_fn_append ()
18648 {
18649 eval $1+=\$2
18650 }'
18651else
18652 as_fn_append ()
18653 {
18654 eval $1=\$$1\$2
18655 }
18656fi # as_fn_append
18657
18658# as_fn_arith ARG...
18659# ------------------
18660# Perform arithmetic evaluation on the ARGs, and store the result in the
18661# global $as_val. Take advantage of shells that can avoid forks. The arguments
18662# must be portable across $(()) and expr.
18663if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18664 eval 'as_fn_arith ()
18665 {
18666 as_val=$(( $* ))
18667 }'
18668else
18669 as_fn_arith ()
18670 {
18671 as_val=`expr "$@" || test $? -eq 1`
18672 }
18673fi # as_fn_arith
18674
18675 35548
35549# Required to use basename.
18676if expr a : '\(a\)' >/dev/null 2>&1 && 35550if expr a : '\(a\)' >/dev/null 2>&1 &&
18677 test "X`expr 00001 : '.*\(...\)'`" = X001; then 35551 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18678 as_expr=expr 35552 as_expr=expr
@@ -18686,17 +35560,13 @@ else
18686 as_basename=false 35560 as_basename=false
18687fi 35561fi
18688 35562
18689if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18690 as_dirname=dirname
18691else
18692 as_dirname=false
18693fi
18694 35563
35564# Name of the executable.
18695as_me=`$as_basename -- "$0" || 35565as_me=`$as_basename -- "$0" ||
18696$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 35566$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18697 X"$0" : 'X\(//\)$' \| \ 35567 X"$0" : 'X\(//\)$' \| \
18698 X"$0" : 'X\(/\)' \| . 2>/dev/null || 35568 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18699$as_echo X/"$0" | 35569echo X/"$0" |
18700 sed '/^.*\/\([^/][^/]*\)\/*$/{ 35570 sed '/^.*\/\([^/][^/]*\)\/*$/{
18701 s//\1/ 35571 s//\1/
18702 q 35572 q
@@ -18711,103 +35581,104 @@ $as_echo X/"$0" |
18711 } 35581 }
18712 s/.*/./; q'` 35582 s/.*/./; q'`
18713 35583
18714# Avoid depending upon Character Ranges. 35584# CDPATH.
18715as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35585$as_unset CDPATH
18716as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 35586
18717as_cr_Letters=$as_cr_letters$as_cr_LETTERS 35587
18718as_cr_digits='0123456789' 35588
18719as_cr_alnum=$as_cr_Letters$as_cr_digits 35589 as_lineno_1=$LINENO
35590 as_lineno_2=$LINENO
35591 test "x$as_lineno_1" != "x$as_lineno_2" &&
35592 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35593
35594 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35595 # uniformly replaced by the line number. The first 'sed' inserts a
35596 # line-number line after each line using $LINENO; the second 'sed'
35597 # does the real work. The second script uses 'N' to pair each
35598 # line-number line with the line containing $LINENO, and appends
35599 # trailing '-' during substitution so that $LINENO is not a special
35600 # case at line end.
35601 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35602 # scripts with optimization help from Paolo Bonzini. Blame Lee
35603 # E. McMahon (1931-1989) for sed's syntax. :-)
35604 sed -n '
35605 p
35606 /[$]LINENO/=
35607 ' <$as_myself |
35608 sed '
35609 s/[$]LINENO.*/&-/
35610 t lineno
35611 b
35612 :lineno
35613 N
35614 :loop
35615 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35616 t loop
35617 s/-\n.*//
35618 ' >$as_me.lineno &&
35619 chmod +x "$as_me.lineno" ||
35620 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35621 { (exit 1); exit 1; }; }
35622
35623 # Don't try to exec as it changes $[0], causing all sort of problems
35624 # (the dirname of $[0] is not the place where we might find the
35625 # original and so on. Autoconf is especially sensitive to this).
35626 . "./$as_me.lineno"
35627 # Exit status is that of the last command.
35628 exit
35629}
35630
35631
35632if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35633 as_dirname=dirname
35634else
35635 as_dirname=false
35636fi
18720 35637
18721ECHO_C= ECHO_N= ECHO_T= 35638ECHO_C= ECHO_N= ECHO_T=
18722case `echo -n x` in #((((( 35639case `echo -n x` in
18723-n*) 35640-n*)
18724 case `echo 'xy\c'` in 35641 case `echo 'x\c'` in
18725 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 35642 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18726 xy) ECHO_C='\c';; 35643 *) ECHO_C='\c';;
18727 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18728 ECHO_T=' ';;
18729 esac;; 35644 esac;;
18730*) 35645*)
18731 ECHO_N='-n';; 35646 ECHO_N='-n';;
18732esac 35647esac
18733 35648
35649if expr a : '\(a\)' >/dev/null 2>&1 &&
35650 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35651 as_expr=expr
35652else
35653 as_expr=false
35654fi
35655
18734rm -f conf$$ conf$$.exe conf$$.file 35656rm -f conf$$ conf$$.exe conf$$.file
18735if test -d conf$$.dir; then 35657if test -d conf$$.dir; then
18736 rm -f conf$$.dir/conf$$.file 35658 rm -f conf$$.dir/conf$$.file
18737else 35659else
18738 rm -f conf$$.dir 35660 rm -f conf$$.dir
18739 mkdir conf$$.dir 2>/dev/null 35661 mkdir conf$$.dir
18740fi 35662fi
18741if (echo >conf$$.file) 2>/dev/null; then 35663echo >conf$$.file
18742 if ln -s conf$$.file conf$$ 2>/dev/null; then 35664if ln -s conf$$.file conf$$ 2>/dev/null; then
18743 as_ln_s='ln -s' 35665 as_ln_s='ln -s'
18744 # ... but there are two gotchas: 35666 # ... but there are two gotchas:
18745 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 35667 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18746 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 35668 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18747 # In both cases, we have to default to `cp -p'. 35669 # In both cases, we have to default to `cp -p'.
18748 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 35670 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18749 as_ln_s='cp -p'
18750 elif ln conf$$.file conf$$ 2>/dev/null; then
18751 as_ln_s=ln
18752 else
18753 as_ln_s='cp -p' 35671 as_ln_s='cp -p'
18754 fi 35672elif ln conf$$.file conf$$ 2>/dev/null; then
35673 as_ln_s=ln
18755else 35674else
18756 as_ln_s='cp -p' 35675 as_ln_s='cp -p'
18757fi 35676fi
18758rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 35677rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18759rmdir conf$$.dir 2>/dev/null 35678rmdir conf$$.dir 2>/dev/null
18760 35679
18761
18762# as_fn_mkdir_p
18763# -------------
18764# Create "$as_dir" as a directory, including parents if necessary.
18765as_fn_mkdir_p ()
18766{
18767
18768 case $as_dir in #(
18769 -*) as_dir=./$as_dir;;
18770 esac
18771 test -d "$as_dir" || eval $as_mkdir_p || {
18772 as_dirs=
18773 while :; do
18774 case $as_dir in #(
18775 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18776 *) as_qdir=$as_dir;;
18777 esac
18778 as_dirs="'$as_qdir' $as_dirs"
18779 as_dir=`$as_dirname -- "$as_dir" ||
18780$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18781 X"$as_dir" : 'X\(//\)[^/]' \| \
18782 X"$as_dir" : 'X\(//\)$' \| \
18783 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18784$as_echo X"$as_dir" |
18785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18786 s//\1/
18787 q
18788 }
18789 /^X\(\/\/\)[^/].*/{
18790 s//\1/
18791 q
18792 }
18793 /^X\(\/\/\)$/{
18794 s//\1/
18795 q
18796 }
18797 /^X\(\/\).*/{
18798 s//\1/
18799 q
18800 }
18801 s/.*/./; q'`
18802 test -d "$as_dir" && break
18803 done
18804 test -z "$as_dirs" || eval "mkdir $as_dirs"
18805 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18806
18807
18808} # as_fn_mkdir_p
18809if mkdir -p . 2>/dev/null; then 35680if mkdir -p . 2>/dev/null; then
18810 as_mkdir_p='mkdir -p "$as_dir"' 35681 as_mkdir_p=:
18811else 35682else
18812 test -d ./-p && rmdir ./-p 35683 test -d ./-p && rmdir ./-p
18813 as_mkdir_p=false 35684 as_mkdir_p=false
@@ -18824,12 +35695,12 @@ else
18824 as_test_x=' 35695 as_test_x='
18825 eval sh -c '\'' 35696 eval sh -c '\''
18826 if test -d "$1"; then 35697 if test -d "$1"; then
18827 test -d "$1/."; 35698 test -d "$1/.";
18828 else 35699 else
18829 case $1 in #( 35700 case $1 in
18830 -*)set "./$1";; 35701 -*)set "./$1";;
18831 esac; 35702 esac;
18832 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 35703 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18833 ???[sx]*):;;*)false;;esac;fi 35704 ???[sx]*):;;*)false;;esac;fi
18834 '\'' sh 35705 '\'' sh
18835 ' 35706 '
@@ -18844,19 +35715,13 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18844 35715
18845 35716
18846exec 6>&1 35717exec 6>&1
18847## ----------------------------------- ##
18848## Main body of $CONFIG_STATUS script. ##
18849## ----------------------------------- ##
18850_ASEOF
18851test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18852 35718
18853cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35719# Save the log message, to keep $[0] and so on meaningful, and to
18854# Save the log message, to keep $0 and so on meaningful, and to
18855# report actual input values of CONFIG_FILES etc. instead of their 35720# report actual input values of CONFIG_FILES etc. instead of their
18856# values after options handling. 35721# values after options handling.
18857ac_log=" 35722ac_log="
18858This file was extended by OpenSSH $as_me Portable, which was 35723This file was extended by OpenSSH $as_me Portable, which was
18859generated by GNU Autoconf 2.68. Invocation command line was 35724generated by GNU Autoconf 2.61. Invocation command line was
18860 35725
18861 CONFIG_FILES = $CONFIG_FILES 35726 CONFIG_FILES = $CONFIG_FILES
18862 CONFIG_HEADERS = $CONFIG_HEADERS 35727 CONFIG_HEADERS = $CONFIG_HEADERS
@@ -18869,41 +35734,29 @@ on `(hostname || uname -n) 2>/dev/null | sed 1q`
18869 35734
18870_ACEOF 35735_ACEOF
18871 35736
18872case $ac_config_files in *" 35737cat >>$CONFIG_STATUS <<_ACEOF
18873"*) set x $ac_config_files; shift; ac_config_files=$*;;
18874esac
18875
18876case $ac_config_headers in *"
18877"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18878esac
18879
18880
18881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18882# Files that config.status was made for. 35738# Files that config.status was made for.
18883config_files="$ac_config_files" 35739config_files="$ac_config_files"
18884config_headers="$ac_config_headers" 35740config_headers="$ac_config_headers"
18885 35741
18886_ACEOF 35742_ACEOF
18887 35743
18888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35744cat >>$CONFIG_STATUS <<\_ACEOF
18889ac_cs_usage="\ 35745ac_cs_usage="\
18890\`$as_me' instantiates files and other configuration actions 35746\`$as_me' instantiates files from templates according to the
18891from templates according to the current configuration. Unless the files 35747current configuration.
18892and actions are specified as TAGs, all are instantiated by default.
18893 35748
18894Usage: $0 [OPTION]... [TAG]... 35749Usage: $0 [OPTIONS] [FILE]...
18895 35750
18896 -h, --help print this help, then exit 35751 -h, --help print this help, then exit
18897 -V, --version print version number and configuration settings, then exit 35752 -V, --version print version number and configuration settings, then exit
18898 --config print configuration, then exit 35753 -q, --quiet do not print progress messages
18899 -q, --quiet, --silent
18900 do not print progress messages
18901 -d, --debug don't remove temporary files 35754 -d, --debug don't remove temporary files
18902 --recheck update $as_me by reconfiguring in the same conditions 35755 --recheck update $as_me by reconfiguring in the same conditions
18903 --file=FILE[:TEMPLATE] 35756 --file=FILE[:TEMPLATE]
18904 instantiate the configuration file FILE 35757 instantiate the configuration file FILE
18905 --header=FILE[:TEMPLATE] 35758 --header=FILE[:TEMPLATE]
18906 instantiate the configuration header FILE 35759 instantiate the configuration header FILE
18907 35760
18908Configuration files: 35761Configuration files:
18909$config_files 35762$config_files
@@ -18911,43 +35764,36 @@ $config_files
18911Configuration headers: 35764Configuration headers:
18912$config_headers 35765$config_headers
18913 35766
18914Report bugs to <openssh-unix-dev@mindrot.org>." 35767Report bugs to <bug-autoconf@gnu.org>."
18915 35768
18916_ACEOF 35769_ACEOF
18917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35770cat >>$CONFIG_STATUS <<_ACEOF
18918ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18919ac_cs_version="\\ 35771ac_cs_version="\\
18920OpenSSH config.status Portable 35772OpenSSH config.status Portable
18921configured by $0, generated by GNU Autoconf 2.68, 35773configured by $0, generated by GNU Autoconf 2.61,
18922 with options \\"\$ac_cs_config\\" 35774 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18923 35775
18924Copyright (C) 2010 Free Software Foundation, Inc. 35776Copyright (C) 2006 Free Software Foundation, Inc.
18925This config.status script is free software; the Free Software Foundation 35777This config.status script is free software; the Free Software Foundation
18926gives unlimited permission to copy, distribute and modify it." 35778gives unlimited permission to copy, distribute and modify it."
18927 35779
18928ac_pwd='$ac_pwd' 35780ac_pwd='$ac_pwd'
18929srcdir='$srcdir' 35781srcdir='$srcdir'
18930INSTALL='$INSTALL' 35782INSTALL='$INSTALL'
18931AWK='$AWK'
18932test -n "\$AWK" || AWK=awk
18933_ACEOF 35783_ACEOF
18934 35784
18935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35785cat >>$CONFIG_STATUS <<\_ACEOF
18936# The default lists apply if the user does not specify any file. 35786# If no file are specified by the user, then we need to provide default
35787# value. By we need to know if files were specified by the user.
18937ac_need_defaults=: 35788ac_need_defaults=:
18938while test $# != 0 35789while test $# != 0
18939do 35790do
18940 case $1 in 35791 case $1 in
18941 --*=?*) 35792 --*=*)
18942 ac_option=`expr "X$1" : 'X\([^=]*\)='` 35793 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18943 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 35794 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18944 ac_shift=: 35795 ac_shift=:
18945 ;; 35796 ;;
18946 --*=)
18947 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18948 ac_optarg=
18949 ac_shift=:
18950 ;;
18951 *) 35797 *)
18952 ac_option=$1 35798 ac_option=$1
18953 ac_optarg=$2 35799 ac_optarg=$2
@@ -18960,41 +35806,34 @@ do
18960 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 35806 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18961 ac_cs_recheck=: ;; 35807 ac_cs_recheck=: ;;
18962 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 35808 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18963 $as_echo "$ac_cs_version"; exit ;; 35809 echo "$ac_cs_version"; exit ;;
18964 --config | --confi | --conf | --con | --co | --c )
18965 $as_echo "$ac_cs_config"; exit ;;
18966 --debug | --debu | --deb | --de | --d | -d ) 35810 --debug | --debu | --deb | --de | --d | -d )
18967 debug=: ;; 35811 debug=: ;;
18968 --file | --fil | --fi | --f ) 35812 --file | --fil | --fi | --f )
18969 $ac_shift 35813 $ac_shift
18970 case $ac_optarg in 35814 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18971 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18972 '') as_fn_error $? "missing file argument" ;;
18973 esac
18974 as_fn_append CONFIG_FILES " '$ac_optarg'"
18975 ac_need_defaults=false;; 35815 ac_need_defaults=false;;
18976 --header | --heade | --head | --hea ) 35816 --header | --heade | --head | --hea )
18977 $ac_shift 35817 $ac_shift
18978 case $ac_optarg in 35818 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18979 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18980 esac
18981 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18982 ac_need_defaults=false;; 35819 ac_need_defaults=false;;
18983 --he | --h) 35820 --he | --h)
18984 # Conflict between --help and --header 35821 # Conflict between --help and --header
18985 as_fn_error $? "ambiguous option: \`$1' 35822 { echo "$as_me: error: ambiguous option: $1
18986Try \`$0 --help' for more information.";; 35823Try \`$0 --help' for more information." >&2
35824 { (exit 1); exit 1; }; };;
18987 --help | --hel | -h ) 35825 --help | --hel | -h )
18988 $as_echo "$ac_cs_usage"; exit ;; 35826 echo "$ac_cs_usage"; exit ;;
18989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 35827 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18990 | -silent | --silent | --silen | --sile | --sil | --si | --s) 35828 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18991 ac_cs_silent=: ;; 35829 ac_cs_silent=: ;;
18992 35830
18993 # This is an error. 35831 # This is an error.
18994 -*) as_fn_error $? "unrecognized option: \`$1' 35832 -*) { echo "$as_me: error: unrecognized option: $1
18995Try \`$0 --help' for more information." ;; 35833Try \`$0 --help' for more information." >&2
35834 { (exit 1); exit 1; }; } ;;
18996 35835
18997 *) as_fn_append ac_config_targets " $1" 35836 *) ac_config_targets="$ac_config_targets $1"
18998 ac_need_defaults=false ;; 35837 ac_need_defaults=false ;;
18999 35838
19000 esac 35839 esac
@@ -19009,32 +35848,30 @@ if $ac_cs_silent; then
19009fi 35848fi
19010 35849
19011_ACEOF 35850_ACEOF
19012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35851cat >>$CONFIG_STATUS <<_ACEOF
19013if \$ac_cs_recheck; then 35852if \$ac_cs_recheck; then
19014 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 35853 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19015 shift 35854 CONFIG_SHELL=$SHELL
19016 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19017 CONFIG_SHELL='$SHELL'
19018 export CONFIG_SHELL 35855 export CONFIG_SHELL
19019 exec "\$@" 35856 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19020fi 35857fi
19021 35858
19022_ACEOF 35859_ACEOF
19023cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35860cat >>$CONFIG_STATUS <<\_ACEOF
19024exec 5>>config.log 35861exec 5>>config.log
19025{ 35862{
19026 echo 35863 echo
19027 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 35864 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19028## Running $as_me. ## 35865## Running $as_me. ##
19029_ASBOX 35866_ASBOX
19030 $as_echo "$ac_log" 35867 echo "$ac_log"
19031} >&5 35868} >&5
19032 35869
19033_ACEOF 35870_ACEOF
19034cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35871cat >>$CONFIG_STATUS <<_ACEOF
19035_ACEOF 35872_ACEOF
19036 35873
19037cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35874cat >>$CONFIG_STATUS <<\_ACEOF
19038 35875
19039# Handling of arguments. 35876# Handling of arguments.
19040for ac_config_target in $ac_config_targets 35877for ac_config_target in $ac_config_targets
@@ -19049,7 +35886,9 @@ do
19049 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;; 35886 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
19050 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;; 35887 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
19051 35888
19052 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 35889 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35890echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35891 { (exit 1); exit 1; }; };;
19053 esac 35892 esac
19054done 35893done
19055 35894
@@ -19071,302 +35910,255 @@ fi
19071# after its creation but before its name has been assigned to `$tmp'. 35910# after its creation but before its name has been assigned to `$tmp'.
19072$debug || 35911$debug ||
19073{ 35912{
19074 tmp= ac_tmp= 35913 tmp=
19075 trap 'exit_status=$? 35914 trap 'exit_status=$?
19076 : "${ac_tmp:=$tmp}" 35915 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19077 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19078' 0 35916' 0
19079 trap 'as_fn_exit 1' 1 2 13 15 35917 trap '{ (exit 1); exit 1; }' 1 2 13 15
19080} 35918}
19081# Create a (secure) tmp directory for tmp files. 35919# Create a (secure) tmp directory for tmp files.
19082 35920
19083{ 35921{
19084 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 35922 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19085 test -d "$tmp" 35923 test -n "$tmp" && test -d "$tmp"
19086} || 35924} ||
19087{ 35925{
19088 tmp=./conf$$-$RANDOM 35926 tmp=./conf$$-$RANDOM
19089 (umask 077 && mkdir "$tmp") 35927 (umask 077 && mkdir "$tmp")
19090} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 35928} ||
19091ac_tmp=$tmp 35929{
19092 35930 echo "$me: cannot create a temporary directory in ." >&2
19093# Set up the scripts for CONFIG_FILES section. 35931 { (exit 1); exit 1; }
19094# No need to generate them if there are no CONFIG_FILES. 35932}
19095# This happens for instance with `./config.status config.h'.
19096if test -n "$CONFIG_FILES"; then
19097 35933
35934#
35935# Set up the sed scripts for CONFIG_FILES section.
35936#
19098 35937
19099ac_cr=`echo X | tr X '\015'` 35938# No need to generate the scripts if there are no CONFIG_FILES.
19100# On cygwin, bash can eat \r inside `` if the user requested igncr. 35939# This happens for instance when ./config.status config.h
19101# But we know of no other shell where ac_cr would be empty at this 35940if test -n "$CONFIG_FILES"; then
19102# point, so we can use a bashism as a fallback.
19103if test "x$ac_cr" = x; then
19104 eval ac_cr=\$\'\\r\'
19105fi
19106ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19107if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19108 ac_cs_awk_cr='\\r'
19109else
19110 ac_cs_awk_cr=$ac_cr
19111fi
19112 35941
19113echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19114_ACEOF 35942_ACEOF
19115 35943
19116 35944
19117{ 35945
19118 echo "cat >conf$$subs.awk <<_ACEOF" &&
19119 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19120 echo "_ACEOF"
19121} >conf$$subs.sh ||
19122 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19123ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19124ac_delim='%!_!# ' 35946ac_delim='%!_!# '
19125for ac_last_try in false false false false false :; do 35947for ac_last_try in false false false false false :; do
19126 . ./conf$$subs.sh || 35948 cat >conf$$subs.sed <<_ACEOF
19127 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 35949SHELL!$SHELL$ac_delim
19128 35950PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19129 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 35951PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19130 if test $ac_delim_n = $ac_delim_num; then 35952PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35953PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35954PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35955PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35956exec_prefix!$exec_prefix$ac_delim
35957prefix!$prefix$ac_delim
35958program_transform_name!$program_transform_name$ac_delim
35959bindir!$bindir$ac_delim
35960sbindir!$sbindir$ac_delim
35961libexecdir!$libexecdir$ac_delim
35962datarootdir!$datarootdir$ac_delim
35963datadir!$datadir$ac_delim
35964sysconfdir!$sysconfdir$ac_delim
35965sharedstatedir!$sharedstatedir$ac_delim
35966localstatedir!$localstatedir$ac_delim
35967includedir!$includedir$ac_delim
35968oldincludedir!$oldincludedir$ac_delim
35969docdir!$docdir$ac_delim
35970infodir!$infodir$ac_delim
35971htmldir!$htmldir$ac_delim
35972dvidir!$dvidir$ac_delim
35973pdfdir!$pdfdir$ac_delim
35974psdir!$psdir$ac_delim
35975libdir!$libdir$ac_delim
35976localedir!$localedir$ac_delim
35977mandir!$mandir$ac_delim
35978DEFS!$DEFS$ac_delim
35979ECHO_C!$ECHO_C$ac_delim
35980ECHO_N!$ECHO_N$ac_delim
35981ECHO_T!$ECHO_T$ac_delim
35982LIBS!$LIBS$ac_delim
35983build_alias!$build_alias$ac_delim
35984host_alias!$host_alias$ac_delim
35985target_alias!$target_alias$ac_delim
35986CC!$CC$ac_delim
35987CFLAGS!$CFLAGS$ac_delim
35988LDFLAGS!$LDFLAGS$ac_delim
35989CPPFLAGS!$CPPFLAGS$ac_delim
35990ac_ct_CC!$ac_ct_CC$ac_delim
35991EXEEXT!$EXEEXT$ac_delim
35992OBJEXT!$OBJEXT$ac_delim
35993build!$build$ac_delim
35994build_cpu!$build_cpu$ac_delim
35995build_vendor!$build_vendor$ac_delim
35996build_os!$build_os$ac_delim
35997host!$host$ac_delim
35998host_cpu!$host_cpu$ac_delim
35999host_vendor!$host_vendor$ac_delim
36000host_os!$host_os$ac_delim
36001CPP!$CPP$ac_delim
36002GREP!$GREP$ac_delim
36003EGREP!$EGREP$ac_delim
36004AWK!$AWK$ac_delim
36005RANLIB!$RANLIB$ac_delim
36006INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36007INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36008INSTALL_DATA!$INSTALL_DATA$ac_delim
36009AR!$AR$ac_delim
36010CAT!$CAT$ac_delim
36011KILL!$KILL$ac_delim
36012PERL!$PERL$ac_delim
36013SED!$SED$ac_delim
36014ENT!$ENT$ac_delim
36015TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim
36016SH!$SH$ac_delim
36017GROFF!$GROFF$ac_delim
36018NROFF!$NROFF$ac_delim
36019MANDOC!$MANDOC$ac_delim
36020TEST_SHELL!$TEST_SHELL$ac_delim
36021MANFMT!$MANFMT$ac_delim
36022PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim
36023PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim
36024MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim
36025STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim
36026LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim
36027PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim
36028LD!$LD$ac_delim
36029PKGCONFIG!$PKGCONFIG$ac_delim
36030LIBEDIT!$LIBEDIT$ac_delim
36031TEST_SSH_ECC!$TEST_SSH_ECC$ac_delim
36032COMMENT_OUT_ECC!$COMMENT_OUT_ECC$ac_delim
36033SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim
36034SSHLIBS!$SSHLIBS$ac_delim
36035SSHDLIBS!$SSHDLIBS$ac_delim
36036KRB5CONF!$KRB5CONF$ac_delim
36037GSSLIBS!$GSSLIBS$ac_delim
36038K5LIBS!$K5LIBS$ac_delim
36039PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim
36040xauth_path!$xauth_path$ac_delim
36041STRIP_OPT!$STRIP_OPT$ac_delim
36042XAUTH_PATH!$XAUTH_PATH$ac_delim
36043MANTYPE!$MANTYPE$ac_delim
36044mansubdir!$mansubdir$ac_delim
36045user_path!$user_path$ac_delim
36046_ACEOF
36047
36048 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19131 break 36049 break
19132 elif $ac_last_try; then 36050 elif $ac_last_try; then
19133 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 36051 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36052echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36053 { (exit 1); exit 1; }; }
19134 else 36054 else
19135 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 36055 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19136 fi 36056 fi
19137done 36057done
19138rm -f conf$$subs.sh
19139
19140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19141cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19142_ACEOF
19143sed -n '
19144h
19145s/^/S["/; s/!.*/"]=/
19146p
19147g
19148s/^[^!]*!//
19149:repl
19150t repl
19151s/'"$ac_delim"'$//
19152t delim
19153:nl
19154h
19155s/\(.\{148\}\)..*/\1/
19156t more1
19157s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19158p
19159n
19160b repl
19161:more1
19162s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19163p
19164g
19165s/.\{148\}//
19166t nl
19167:delim
19168h
19169s/\(.\{148\}\)..*/\1/
19170t more2
19171s/["\\]/\\&/g; s/^/"/; s/$/"/
19172p
19173b
19174:more2
19175s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19176p
19177g
19178s/.\{148\}//
19179t delim
19180' <conf$$subs.awk | sed '
19181/^[^""]/{
19182 N
19183 s/\n//
19184}
19185' >>$CONFIG_STATUS || ac_write_fail=1
19186rm -f conf$$subs.awk
19187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19188_ACAWK
19189cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19190 for (key in S) S_is_set[key] = 1
19191 FS = ""
19192
19193}
19194{
19195 line = $ 0
19196 nfields = split(line, field, "@")
19197 substed = 0
19198 len = length(field[1])
19199 for (i = 2; i < nfields; i++) {
19200 key = field[i]
19201 keylen = length(key)
19202 if (S_is_set[key]) {
19203 value = S[key]
19204 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19205 len += length(value) + length(field[++i])
19206 substed = 1
19207 } else
19208 len += 1 + keylen
19209 }
19210
19211 print line
19212}
19213
19214_ACAWK
19215_ACEOF
19216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19217if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19218 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19219else
19220 cat
19221fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19222 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19223_ACEOF
19224
19225# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19226# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19227# trailing colons and then remove the whole line if VPATH becomes empty
19228# (actually we leave an empty line to preserve line numbers).
19229if test "x$srcdir" = x.; then
19230 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19231h
19232s///
19233s/^/:/
19234s/[ ]*$/:/
19235s/:\$(srcdir):/:/g
19236s/:\${srcdir}:/:/g
19237s/:@srcdir@:/:/g
19238s/^:*//
19239s/:*$//
19240x
19241s/\(=[ ]*\).*/\1/
19242G
19243s/\n//
19244s/^[^=]*=[ ]*$//
19245}'
19246fi
19247 36058
19248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 36059ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19249fi # test -n "$CONFIG_FILES" 36060if test -n "$ac_eof"; then
36061 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36062 ac_eof=`expr $ac_eof + 1`
36063fi
19250 36064
19251# Set up the scripts for CONFIG_HEADERS section. 36065cat >>$CONFIG_STATUS <<_ACEOF
19252# No need to generate them if there are no CONFIG_HEADERS. 36066cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19253# This happens for instance with `./config.status Makefile'. 36067/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19254if test -n "$CONFIG_HEADERS"; then 36068_ACEOF
19255cat >"$ac_tmp/defines.awk" <<\_ACAWK || 36069sed '
19256BEGIN { 36070s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36071s/^/s,@/; s/!/@,|#_!!_#|/
36072:n
36073t n
36074s/'"$ac_delim"'$/,g/; t
36075s/$/\\/; p
36076N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36077' >>$CONFIG_STATUS <conf$$subs.sed
36078rm -f conf$$subs.sed
36079cat >>$CONFIG_STATUS <<_ACEOF
36080CEOF$ac_eof
19257_ACEOF 36081_ACEOF
19258 36082
19259# Transform confdefs.h into an awk script `defines.awk', embedded as
19260# here-document in config.status, that substitutes the proper values into
19261# config.h.in to produce config.h.
19262 36083
19263# Create a delimiter string that does not exist in confdefs.h, to ease
19264# handling of long lines.
19265ac_delim='%!_!# ' 36084ac_delim='%!_!# '
19266for ac_last_try in false false :; do 36085for ac_last_try in false false false false false :; do
19267 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 36086 cat >conf$$subs.sed <<_ACEOF
19268 if test -z "$ac_tt"; then 36087piddir!$piddir$ac_delim
36088TEST_SSH_IPV6!$TEST_SSH_IPV6$ac_delim
36089TEST_MALLOC_OPTIONS!$TEST_MALLOC_OPTIONS$ac_delim
36090UNSUPPORTED_ALGORITHMS!$UNSUPPORTED_ALGORITHMS$ac_delim
36091LIBOBJS!$LIBOBJS$ac_delim
36092LTLIBOBJS!$LTLIBOBJS$ac_delim
36093_ACEOF
36094
36095 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
19269 break 36096 break
19270 elif $ac_last_try; then 36097 elif $ac_last_try; then
19271 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 36098 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36099echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36100 { (exit 1); exit 1; }; }
19272 else 36101 else
19273 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 36102 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19274 fi 36103 fi
19275done 36104done
19276 36105
19277# For the awk script, D is an array of macro values keyed by name, 36106ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19278# likewise P contains macro parameters if any. Preserve backslash 36107if test -n "$ac_eof"; then
19279# newline sequences. 36108 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36109 ac_eof=`expr $ac_eof + 1`
36110fi
19280 36111
19281ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 36112cat >>$CONFIG_STATUS <<_ACEOF
19282sed -n ' 36113cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19283s/.\{148\}/&'"$ac_delim"'/g 36114/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19284t rset 36115_ACEOF
19285:rset 36116sed '
19286s/^[ ]*#[ ]*define[ ][ ]*/ / 36117s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19287t def 36118s/^/s,@/; s/!/@,|#_!!_#|/
19288d 36119:n
19289:def 36120t n
19290s/\\$// 36121s/'"$ac_delim"'$/,g/; t
19291t bsnl 36122s/$/\\/; p
19292s/["\\]/\\&/g 36123N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19293s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 36124' >>$CONFIG_STATUS <conf$$subs.sed
19294D["\1"]=" \3"/p 36125rm -f conf$$subs.sed
19295s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 36126cat >>$CONFIG_STATUS <<_ACEOF
19296d 36127:end
19297:bsnl 36128s/|#_!!_#|//g
19298s/["\\]/\\&/g 36129CEOF$ac_eof
19299s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19300D["\1"]=" \3\\\\\\n"\\/p
19301t cont
19302s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19303t cont
19304d
19305:cont
19306n
19307s/.\{148\}/&'"$ac_delim"'/g
19308t clear
19309:clear
19310s/\\$//
19311t bsnlc
19312s/["\\]/\\&/g; s/^/"/; s/$/"/p
19313d
19314:bsnlc
19315s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19316b cont
19317' <confdefs.h | sed '
19318s/'"$ac_delim"'/"\\\
19319"/g' >>$CONFIG_STATUS || ac_write_fail=1
19320
19321cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19322 for (key in D) D_is_set[key] = 1
19323 FS = ""
19324}
19325/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19326 line = \$ 0
19327 split(line, arg, " ")
19328 if (arg[1] == "#") {
19329 defundef = arg[2]
19330 mac1 = arg[3]
19331 } else {
19332 defundef = substr(arg[1], 2)
19333 mac1 = arg[2]
19334 }
19335 split(mac1, mac2, "(") #)
19336 macro = mac2[1]
19337 prefix = substr(line, 1, index(line, defundef) - 1)
19338 if (D_is_set[macro]) {
19339 # Preserve the white space surrounding the "#".
19340 print prefix "define", macro P[macro] D[macro]
19341 next
19342 } else {
19343 # Replace #undef with comments. This is necessary, for example,
19344 # in the case of _POSIX_SOURCE, which is predefined and required
19345 # on some systems where configure will not decide to define it.
19346 if (defundef == "undef") {
19347 print "/*", prefix defundef, macro, "*/"
19348 next
19349 }
19350 }
19351}
19352{ print }
19353_ACAWK
19354_ACEOF 36130_ACEOF
19355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19356 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19357fi # test -n "$CONFIG_HEADERS"
19358 36131
19359 36132
19360eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 36133# VPATH may cause trouble with some makes, so we remove $(srcdir),
19361shift 36134# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19362for ac_tag 36135# trailing colons and then remove the whole line if VPATH becomes empty
36136# (actually we leave an empty line to preserve line numbers).
36137if test "x$srcdir" = x.; then
36138 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36139s/:*\$(srcdir):*/:/
36140s/:*\${srcdir}:*/:/
36141s/:*@srcdir@:*/:/
36142s/^\([^=]*=[ ]*\):*/\1/
36143s/:*$//
36144s/^[^=]*=[ ]*$//
36145}'
36146fi
36147
36148cat >>$CONFIG_STATUS <<\_ACEOF
36149fi # test -n "$CONFIG_FILES"
36150
36151
36152for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
19363do 36153do
19364 case $ac_tag in 36154 case $ac_tag in
19365 :[FHLC]) ac_mode=$ac_tag; continue;; 36155 :[FHLC]) ac_mode=$ac_tag; continue;;
19366 esac 36156 esac
19367 case $ac_mode$ac_tag in 36157 case $ac_mode$ac_tag in
19368 :[FHL]*:*);; 36158 :[FHL]*:*);;
19369 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 36159 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36160echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36161 { (exit 1); exit 1; }; };;
19370 :[FH]-) ac_tag=-:-;; 36162 :[FH]-) ac_tag=-:-;;
19371 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 36163 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19372 esac 36164 esac
@@ -19385,7 +36177,7 @@ do
19385 for ac_f 36177 for ac_f
19386 do 36178 do
19387 case $ac_f in 36179 case $ac_f in
19388 -) ac_f="$ac_tmp/stdin";; 36180 -) ac_f="$tmp/stdin";;
19389 *) # Look for the file first in the build tree, then in the source tree 36181 *) # Look for the file first in the build tree, then in the source tree
19390 # (if the path is not absolute). The absolute path cannot be DOS-style, 36182 # (if the path is not absolute). The absolute path cannot be DOS-style,
19391 # because $ac_f cannot contain `:'. 36183 # because $ac_f cannot contain `:'.
@@ -19394,34 +36186,26 @@ do
19394 [\\/$]*) false;; 36186 [\\/$]*) false;;
19395 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 36187 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19396 esac || 36188 esac ||
19397 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 36189 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36190echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36191 { (exit 1); exit 1; }; };;
19398 esac 36192 esac
19399 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 36193 ac_file_inputs="$ac_file_inputs $ac_f"
19400 as_fn_append ac_file_inputs " '$ac_f'"
19401 done 36194 done
19402 36195
19403 # Let's still pretend it is `configure' which instantiates (i.e., don't 36196 # Let's still pretend it is `configure' which instantiates (i.e., don't
19404 # use $as_me), people would be surprised to read: 36197 # use $as_me), people would be surprised to read:
19405 # /* config.h. Generated by config.status. */ 36198 # /* config.h. Generated by config.status. */
19406 configure_input='Generated from '` 36199 configure_input="Generated from "`IFS=:
19407 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 36200 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19408 `' by configure.'
19409 if test x"$ac_file" != x-; then 36201 if test x"$ac_file" != x-; then
19410 configure_input="$ac_file. $configure_input" 36202 configure_input="$ac_file. $configure_input"
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 36203 { echo "$as_me:$LINENO: creating $ac_file" >&5
19412$as_echo "$as_me: creating $ac_file" >&6;} 36204echo "$as_me: creating $ac_file" >&6;}
19413 fi 36205 fi
19414 # Neutralize special characters interpreted by sed in replacement strings.
19415 case $configure_input in #(
19416 *\&* | *\|* | *\\* )
19417 ac_sed_conf_input=`$as_echo "$configure_input" |
19418 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19419 *) ac_sed_conf_input=$configure_input;;
19420 esac
19421 36206
19422 case $ac_tag in 36207 case $ac_tag in
19423 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 36208 *:-:* | *:-) cat >"$tmp/stdin";;
19424 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19425 esac 36209 esac
19426 ;; 36210 ;;
19427 esac 36211 esac
@@ -19431,7 +36215,42 @@ $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19431 X"$ac_file" : 'X\(//\)[^/]' \| \ 36215 X"$ac_file" : 'X\(//\)[^/]' \| \
19432 X"$ac_file" : 'X\(//\)$' \| \ 36216 X"$ac_file" : 'X\(//\)$' \| \
19433 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 36217 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19434$as_echo X"$ac_file" | 36218echo X"$ac_file" |
36219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36220 s//\1/
36221 q
36222 }
36223 /^X\(\/\/\)[^/].*/{
36224 s//\1/
36225 q
36226 }
36227 /^X\(\/\/\)$/{
36228 s//\1/
36229 q
36230 }
36231 /^X\(\/\).*/{
36232 s//\1/
36233 q
36234 }
36235 s/.*/./; q'`
36236 { as_dir="$ac_dir"
36237 case $as_dir in #(
36238 -*) as_dir=./$as_dir;;
36239 esac
36240 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36241 as_dirs=
36242 while :; do
36243 case $as_dir in #(
36244 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36245 *) as_qdir=$as_dir;;
36246 esac
36247 as_dirs="'$as_qdir' $as_dirs"
36248 as_dir=`$as_dirname -- "$as_dir" ||
36249$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36250 X"$as_dir" : 'X\(//\)[^/]' \| \
36251 X"$as_dir" : 'X\(//\)$' \| \
36252 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36253echo X"$as_dir" |
19435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 36254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19436 s//\1/ 36255 s//\1/
19437 q 36256 q
@@ -19449,15 +36268,20 @@ $as_echo X"$ac_file" |
19449 q 36268 q
19450 } 36269 }
19451 s/.*/./; q'` 36270 s/.*/./; q'`
19452 as_dir="$ac_dir"; as_fn_mkdir_p 36271 test -d "$as_dir" && break
36272 done
36273 test -z "$as_dirs" || eval "mkdir $as_dirs"
36274 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36275echo "$as_me: error: cannot create directory $as_dir" >&2;}
36276 { (exit 1); exit 1; }; }; }
19453 ac_builddir=. 36277 ac_builddir=.
19454 36278
19455case "$ac_dir" in 36279case "$ac_dir" in
19456.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 36280.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19457*) 36281*)
19458 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 36282 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19459 # A ".." for each directory in $ac_dir_suffix. 36283 # A ".." for each directory in $ac_dir_suffix.
19460 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 36284 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19461 case $ac_top_builddir_sub in 36285 case $ac_top_builddir_sub in
19462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 36286 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 36287 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
@@ -19497,12 +36321,12 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19497 esac 36321 esac
19498_ACEOF 36322_ACEOF
19499 36323
19500cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 36324cat >>$CONFIG_STATUS <<\_ACEOF
19501# If the template does not know about datarootdir, expand it. 36325# If the template does not know about datarootdir, expand it.
19502# FIXME: This hack should be removed a few years after 2.60. 36326# FIXME: This hack should be removed a few years after 2.60.
19503ac_datarootdir_hack=; ac_datarootdir_seen= 36327ac_datarootdir_hack=; ac_datarootdir_seen=
19504ac_sed_dataroot=' 36328
19505/datarootdir/ { 36329case `sed -n '/datarootdir/ {
19506 p 36330 p
19507 q 36331 q
19508} 36332}
@@ -19510,37 +36334,36 @@ ac_sed_dataroot='
19510/@docdir@/p 36334/@docdir@/p
19511/@infodir@/p 36335/@infodir@/p
19512/@localedir@/p 36336/@localedir@/p
19513/@mandir@/p' 36337/@mandir@/p
19514case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 36338' $ac_file_inputs` in
19515*datarootdir*) ac_datarootdir_seen=yes;; 36339*datarootdir*) ac_datarootdir_seen=yes;;
19516*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 36340*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 36341 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19518$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 36342echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19519_ACEOF 36343_ACEOF
19520cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 36344cat >>$CONFIG_STATUS <<_ACEOF
19521 ac_datarootdir_hack=' 36345 ac_datarootdir_hack='
19522 s&@datadir@&$datadir&g 36346 s&@datadir@&$datadir&g
19523 s&@docdir@&$docdir&g 36347 s&@docdir@&$docdir&g
19524 s&@infodir@&$infodir&g 36348 s&@infodir@&$infodir&g
19525 s&@localedir@&$localedir&g 36349 s&@localedir@&$localedir&g
19526 s&@mandir@&$mandir&g 36350 s&@mandir@&$mandir&g
19527 s&\\\${datarootdir}&$datarootdir&g' ;; 36351 s&\\\${datarootdir}&$datarootdir&g' ;;
19528esac 36352esac
19529_ACEOF 36353_ACEOF
19530 36354
19531# Neutralize VPATH when `$srcdir' = `.'. 36355# Neutralize VPATH when `$srcdir' = `.'.
19532# Shell code in configure.ac might set extrasub. 36356# Shell code in configure.ac might set extrasub.
19533# FIXME: do we really want to maintain this feature? 36357# FIXME: do we really want to maintain this feature?
19534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 36358cat >>$CONFIG_STATUS <<_ACEOF
19535ac_sed_extra="$ac_vpsub 36359 sed "$ac_vpsub
19536$extrasub 36360$extrasub
19537_ACEOF 36361_ACEOF
19538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 36362cat >>$CONFIG_STATUS <<\_ACEOF
19539:t 36363:t
19540/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 36364/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19541s|@configure_input@|$ac_sed_conf_input|;t t 36365s&@configure_input@&$configure_input&;t t
19542s&@top_builddir@&$ac_top_builddir_sub&;t t 36366s&@top_builddir@&$ac_top_builddir_sub&;t t
19543s&@top_build_prefix@&$ac_top_build_prefix&;t t
19544s&@srcdir@&$ac_srcdir&;t t 36367s&@srcdir@&$ac_srcdir&;t t
19545s&@abs_srcdir@&$ac_abs_srcdir&;t t 36368s&@abs_srcdir@&$ac_abs_srcdir&;t t
19546s&@top_srcdir@&$ac_top_srcdir&;t t 36369s&@top_srcdir@&$ac_top_srcdir&;t t
@@ -19550,49 +36373,119 @@ s&@abs_builddir@&$ac_abs_builddir&;t t
19550s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 36373s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19551s&@INSTALL@&$ac_INSTALL&;t t 36374s&@INSTALL@&$ac_INSTALL&;t t
19552$ac_datarootdir_hack 36375$ac_datarootdir_hack
19553" 36376" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
19554eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19555 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19556 36377
19557test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 36378test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19558 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 36379 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19559 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 36380 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19560 "$ac_tmp/out"`; test -z "$ac_out"; } && 36381 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 36382which seems to be undefined. Please make sure it is defined." >&5
19562which seems to be undefined. Please make sure it is defined" >&5 36383echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19563$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 36384which seems to be undefined. Please make sure it is defined." >&2;}
19564which seems to be undefined. Please make sure it is defined" >&2;} 36385
19565 36386 rm -f "$tmp/stdin"
19566 rm -f "$ac_tmp/stdin"
19567 case $ac_file in 36387 case $ac_file in
19568 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 36388 -) cat "$tmp/out"; rm -f "$tmp/out";;
19569 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 36389 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19570 esac \ 36390 esac
19571 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19572 ;; 36391 ;;
19573 :H) 36392 :H)
19574 # 36393 #
19575 # CONFIG_HEADER 36394 # CONFIG_HEADER
19576 # 36395 #
36396_ACEOF
36397
36398# Transform confdefs.h into a sed script `conftest.defines', that
36399# substitutes the proper values into config.h.in to produce config.h.
36400rm -f conftest.defines conftest.tail
36401# First, append a space to every undef/define line, to ease matching.
36402echo 's/$/ /' >conftest.defines
36403# Then, protect against being on the right side of a sed subst, or in
36404# an unquoted here document, in config.status. If some macros were
36405# called several times there might be several #defines for the same
36406# symbol, which is useless. But do not sort them, since the last
36407# AC_DEFINE must be honored.
36408ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36409# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36410# NAME is the cpp macro being defined, VALUE is the value it is being given.
36411# PARAMS is the parameter list in the macro definition--in most cases, it's
36412# just an empty string.
36413ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36414ac_dB='\\)[ (].*,\\1define\\2'
36415ac_dC=' '
36416ac_dD=' ,'
36417
36418uniq confdefs.h |
36419 sed -n '
36420 t rset
36421 :rset
36422 s/^[ ]*#[ ]*define[ ][ ]*//
36423 t ok
36424 d
36425 :ok
36426 s/[\\&,]/\\&/g
36427 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36428 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36429 ' >>conftest.defines
36430
36431# Remove the space that was appended to ease matching.
36432# Then replace #undef with comments. This is necessary, for
36433# example, in the case of _POSIX_SOURCE, which is predefined and required
36434# on some systems where configure will not decide to define it.
36435# (The regexp can be short, since the line contains either #define or #undef.)
36436echo 's/ $//
36437s,^[ #]*u.*,/* & */,' >>conftest.defines
36438
36439# Break up conftest.defines:
36440ac_max_sed_lines=50
36441
36442# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36443# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36444# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36445# et cetera.
36446ac_in='$ac_file_inputs'
36447ac_out='"$tmp/out1"'
36448ac_nxt='"$tmp/out2"'
36449
36450while :
36451do
36452 # Write a here document:
36453 cat >>$CONFIG_STATUS <<_ACEOF
36454 # First, check the format of the line:
36455 cat >"\$tmp/defines.sed" <<\\CEOF
36456/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36457/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36458b
36459:def
36460_ACEOF
36461 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36462 echo 'CEOF
36463 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36464 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36465 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36466 grep . conftest.tail >/dev/null || break
36467 rm -f conftest.defines
36468 mv conftest.tail conftest.defines
36469done
36470rm -f conftest.defines conftest.tail
36471
36472echo "ac_result=$ac_in" >>$CONFIG_STATUS
36473cat >>$CONFIG_STATUS <<\_ACEOF
19577 if test x"$ac_file" != x-; then 36474 if test x"$ac_file" != x-; then
19578 { 36475 echo "/* $configure_input */" >"$tmp/config.h"
19579 $as_echo "/* $configure_input */" \ 36476 cat "$ac_result" >>"$tmp/config.h"
19580 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 36477 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19581 } >"$ac_tmp/config.h" \ 36478 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19582 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 36479echo "$as_me: $ac_file is unchanged" >&6;}
19583 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19585$as_echo "$as_me: $ac_file is unchanged" >&6;}
19586 else 36480 else
19587 rm -f "$ac_file" 36481 rm -f $ac_file
19588 mv "$ac_tmp/config.h" "$ac_file" \ 36482 mv "$tmp/config.h" $ac_file
19589 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19590 fi 36483 fi
19591 else 36484 else
19592 $as_echo "/* $configure_input */" \ 36485 echo "/* $configure_input */"
19593 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 36486 cat "$ac_result"
19594 || as_fn_error $? "could not create -" "$LINENO" 5
19595 fi 36487 fi
36488 rm -f "$tmp/out12"
19596 ;; 36489 ;;
19597 36490
19598 36491
@@ -19601,13 +36494,11 @@ $as_echo "$as_me: $ac_file is unchanged" >&6;}
19601done # for ac_tag 36494done # for ac_tag
19602 36495
19603 36496
19604as_fn_exit 0 36497{ (exit 0); exit 0; }
19605_ACEOF 36498_ACEOF
36499chmod +x $CONFIG_STATUS
19606ac_clean_files=$ac_clean_files_save 36500ac_clean_files=$ac_clean_files_save
19607 36501
19608test $ac_write_fail = 0 ||
19609 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19610
19611 36502
19612# configure is writing to config.log, and then calls config.status. 36503# configure is writing to config.log, and then calls config.status.
19613# config.status does its own redirection, appending to config.log. 36504# config.status does its own redirection, appending to config.log.
@@ -19627,11 +36518,7 @@ if test "$no_create" != yes; then
19627 exec 5>>config.log 36518 exec 5>>config.log
19628 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 36519 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19629 # would make configure fail if this is the last instruction. 36520 # would make configure fail if this is the last instruction.
19630 $ac_cs_success || as_fn_exit 1 36521 $ac_cs_success || { (exit 1); exit 1; }
19631fi
19632if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19634$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19635fi 36522fi
19636 36523
19637 36524