diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 20337 |
1 files changed, 20337 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 000000000..ec3a98ffc --- /dev/null +++ b/configure | |||
@@ -0,0 +1,20337 @@ | |||
1 | #! /bin/sh | ||
2 | # From configure.ac Revision: 1.583 . | ||
3 | # Guess values for system-dependent variables and create Makefiles. | ||
4 | # Generated by GNU Autoconf 2.69 for OpenSSH Portable. | ||
5 | # | ||
6 | # Report bugs to <openssh-unix-dev@mindrot.org>. | ||
7 | # | ||
8 | # | ||
9 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | ||
10 | # | ||
11 | # | ||
12 | # This configure script is free software; the Free Software Foundation | ||
13 | # gives unlimited permission to copy, distribute and modify it. | ||
14 | ## -------------------- ## | ||
15 | ## M4sh Initialization. ## | ||
16 | ## -------------------- ## | ||
17 | |||
18 | # Be more Bourne compatible | ||
19 | DUALCASE=1; export DUALCASE # for MKS sh | ||
20 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
21 | emulate sh | ||
22 | NULLCMD=: | ||
23 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
24 | # is contrary to our usage. Disable this feature. | ||
25 | alias -g '${1+"$@"}'='"$@"' | ||
26 | setopt NO_GLOB_SUBST | ||
27 | else | ||
28 | case `(set -o) 2>/dev/null` in #( | ||
29 | *posix*) : | ||
30 | set -o posix ;; #( | ||
31 | *) : | ||
32 | ;; | ||
33 | esac | ||
34 | fi | ||
35 | |||
36 | |||
37 | as_nl=' | ||
38 | ' | ||
39 | export as_nl | ||
40 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
41 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
44 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
45 | # but without wasting forks for bash or zsh. | ||
46 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
47 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
48 | as_echo='print -r --' | ||
49 | as_echo_n='print -rn --' | ||
50 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
51 | as_echo='printf %s\n' | ||
52 | as_echo_n='printf %s' | ||
53 | else | ||
54 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
55 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
56 | as_echo_n='/usr/ucb/echo -n' | ||
57 | else | ||
58 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
59 | as_echo_n_body='eval | ||
60 | arg=$1; | ||
61 | case $arg in #( | ||
62 | *"$as_nl"*) | ||
63 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
64 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
65 | esac; | ||
66 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
67 | ' | ||
68 | export as_echo_n_body | ||
69 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
70 | fi | ||
71 | export as_echo_body | ||
72 | as_echo='sh -c $as_echo_body as_echo' | ||
73 | fi | ||
74 | |||
75 | # The user is always right. | ||
76 | if test "${PATH_SEPARATOR+set}" != set; then | ||
77 | PATH_SEPARATOR=: | ||
78 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
80 | PATH_SEPARATOR=';' | ||
81 | } | ||
82 | fi | ||
83 | |||
84 | |||
85 | # IFS | ||
86 | # We need space, tab and new line, in precisely that order. Quoting is | ||
87 | # there to prevent editors from complaining about space-tab. | ||
88 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
89 | # splitting by setting IFS to empty value.) | ||
90 | IFS=" "" $as_nl" | ||
91 | |||
92 | # Find who we are. Look in the path if we contain no directory separator. | ||
93 | as_myself= | ||
94 | case $0 in #(( | ||
95 | *[\\/]* ) as_myself=$0 ;; | ||
96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
97 | for as_dir in $PATH | ||
98 | do | ||
99 | IFS=$as_save_IFS | ||
100 | test -z "$as_dir" && as_dir=. | ||
101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
102 | done | ||
103 | IFS=$as_save_IFS | ||
104 | |||
105 | ;; | ||
106 | esac | ||
107 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
108 | # in which case we are not to be found in the path. | ||
109 | if test "x$as_myself" = x; then | ||
110 | as_myself=$0 | ||
111 | fi | ||
112 | if test ! -f "$as_myself"; then | ||
113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
114 | exit 1 | ||
115 | fi | ||
116 | |||
117 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
119 | # suppresses any "Segmentation fault" message there. '((' could | ||
120 | # trigger a bug in pdksh 5.2.14. | ||
121 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
122 | do eval test x\${$as_var+set} = xset \ | ||
123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
124 | done | ||
125 | PS1='$ ' | ||
126 | PS2='> ' | ||
127 | PS4='+ ' | ||
128 | |||
129 | # NLS nuisances. | ||
130 | LC_ALL=C | ||
131 | export LC_ALL | ||
132 | LANGUAGE=C | ||
133 | export LANGUAGE | ||
134 | |||
135 | # CDPATH. | ||
136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
137 | |||
138 | # Use a proper internal environment variable to ensure we don't fall | ||
139 | # into an infinite loop, continuously re-executing ourselves. | ||
140 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | ||
141 | _as_can_reexec=no; export _as_can_reexec; | ||
142 | # We cannot yet assume a decent shell, so we have to provide a | ||
143 | # neutralization value for shells without unset; and this also | ||
144 | # works around shells that cannot unset nonexistent variables. | ||
145 | # Preserve -v and -x to the replacement shell. | ||
146 | BASH_ENV=/dev/null | ||
147 | ENV=/dev/null | ||
148 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | ||
149 | case $- in # (((( | ||
150 | *v*x* | *x*v* ) as_opts=-vx ;; | ||
151 | *v* ) as_opts=-v ;; | ||
152 | *x* ) as_opts=-x ;; | ||
153 | * ) as_opts= ;; | ||
154 | esac | ||
155 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | ||
156 | # Admittedly, this is quite paranoid, since all the known shells bail | ||
157 | # out after a failed `exec'. | ||
158 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | ||
159 | as_fn_exit 255 | ||
160 | fi | ||
161 | # We don't want this to propagate to other subprocesses. | ||
162 | { _as_can_reexec=; unset _as_can_reexec;} | ||
163 | if test "x$CONFIG_SHELL" = x; then | ||
164 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | ||
165 | emulate sh | ||
166 | NULLCMD=: | ||
167 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | ||
168 | # is contrary to our usage. Disable this feature. | ||
169 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | ||
170 | setopt NO_GLOB_SUBST | ||
171 | else | ||
172 | case \`(set -o) 2>/dev/null\` in #( | ||
173 | *posix*) : | ||
174 | set -o posix ;; #( | ||
175 | *) : | ||
176 | ;; | ||
177 | esac | ||
178 | fi | ||
179 | " | ||
180 | as_required="as_fn_return () { (exit \$1); } | ||
181 | as_fn_success () { as_fn_return 0; } | ||
182 | as_fn_failure () { as_fn_return 1; } | ||
183 | as_fn_ret_success () { return 0; } | ||
184 | as_fn_ret_failure () { return 1; } | ||
185 | |||
186 | exitcode=0 | ||
187 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | ||
188 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | ||
189 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | ||
190 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | ||
191 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | ||
192 | |||
193 | else | ||
194 | exitcode=1; echo positional parameters were not saved. | ||
195 | fi | ||
196 | test x\$exitcode = x0 || exit 1 | ||
197 | test -x / || exit 1" | ||
198 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | ||
199 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | ||
200 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | ||
201 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | ||
202 | test \$(( 1 + 1 )) = 2 || exit 1" | ||
203 | if (eval "$as_required") 2>/dev/null; then : | ||
204 | as_have_required=yes | ||
205 | else | ||
206 | as_have_required=no | ||
207 | fi | ||
208 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | ||
209 | |||
210 | else | ||
211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
212 | as_found=false | ||
213 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
214 | do | ||
215 | IFS=$as_save_IFS | ||
216 | test -z "$as_dir" && as_dir=. | ||
217 | as_found=: | ||
218 | case $as_dir in #( | ||
219 | /*) | ||
220 | for as_base in sh bash ksh sh5; do | ||
221 | # Try only shells that exist, to save several forks. | ||
222 | as_shell=$as_dir/$as_base | ||
223 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||
224 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
225 | CONFIG_SHELL=$as_shell as_have_required=yes | ||
226 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
227 | break 2 | ||
228 | fi | ||
229 | fi | ||
230 | done;; | ||
231 | esac | ||
232 | as_found=false | ||
233 | done | ||
234 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | ||
235 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | ||
236 | CONFIG_SHELL=$SHELL as_have_required=yes | ||
237 | fi; } | ||
238 | IFS=$as_save_IFS | ||
239 | |||
240 | |||
241 | if test "x$CONFIG_SHELL" != x; then : | ||
242 | export CONFIG_SHELL | ||
243 | # We cannot yet assume a decent shell, so we have to provide a | ||
244 | # neutralization value for shells without unset; and this also | ||
245 | # works around shells that cannot unset nonexistent variables. | ||
246 | # Preserve -v and -x to the replacement shell. | ||
247 | BASH_ENV=/dev/null | ||
248 | ENV=/dev/null | ||
249 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | ||
250 | case $- in # (((( | ||
251 | *v*x* | *x*v* ) as_opts=-vx ;; | ||
252 | *v* ) as_opts=-v ;; | ||
253 | *x* ) as_opts=-x ;; | ||
254 | * ) as_opts= ;; | ||
255 | esac | ||
256 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | ||
257 | # Admittedly, this is quite paranoid, since all the known shells bail | ||
258 | # out after a failed `exec'. | ||
259 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | ||
260 | exit 255 | ||
261 | fi | ||
262 | |||
263 | if test x$as_have_required = xno; then : | ||
264 | $as_echo "$0: This script requires a shell more modern than all" | ||
265 | $as_echo "$0: the shells that I found on your system." | ||
266 | if test x${ZSH_VERSION+set} = xset ; then | ||
267 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | ||
268 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | ||
269 | else | ||
270 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | ||
271 | $0: openssh-unix-dev@mindrot.org about your system, | ||
272 | $0: including any error possibly output before this | ||
273 | $0: message. Then install a modern shell, or manually run | ||
274 | $0: the script under such a shell if you do have one." | ||
275 | fi | ||
276 | exit 1 | ||
277 | fi | ||
278 | fi | ||
279 | fi | ||
280 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
281 | export SHELL | ||
282 | # Unset more variables known to interfere with behavior of common tools. | ||
283 | CLICOLOR_FORCE= GREP_OPTIONS= | ||
284 | unset CLICOLOR_FORCE GREP_OPTIONS | ||
285 | |||
286 | ## --------------------- ## | ||
287 | ## M4sh Shell Functions. ## | ||
288 | ## --------------------- ## | ||
289 | # as_fn_unset VAR | ||
290 | # --------------- | ||
291 | # Portably unset VAR. | ||
292 | as_fn_unset () | ||
293 | { | ||
294 | { eval $1=; unset $1;} | ||
295 | } | ||
296 | as_unset=as_fn_unset | ||
297 | |||
298 | # as_fn_set_status STATUS | ||
299 | # ----------------------- | ||
300 | # Set $? to STATUS, without forking. | ||
301 | as_fn_set_status () | ||
302 | { | ||
303 | return $1 | ||
304 | } # as_fn_set_status | ||
305 | |||
306 | # as_fn_exit STATUS | ||
307 | # ----------------- | ||
308 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
309 | as_fn_exit () | ||
310 | { | ||
311 | set +e | ||
312 | as_fn_set_status $1 | ||
313 | exit $1 | ||
314 | } # as_fn_exit | ||
315 | |||
316 | # as_fn_mkdir_p | ||
317 | # ------------- | ||
318 | # Create "$as_dir" as a directory, including parents if necessary. | ||
319 | as_fn_mkdir_p () | ||
320 | { | ||
321 | |||
322 | case $as_dir in #( | ||
323 | -*) as_dir=./$as_dir;; | ||
324 | esac | ||
325 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
326 | as_dirs= | ||
327 | while :; do | ||
328 | case $as_dir in #( | ||
329 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
330 | *) as_qdir=$as_dir;; | ||
331 | esac | ||
332 | as_dirs="'$as_qdir' $as_dirs" | ||
333 | as_dir=`$as_dirname -- "$as_dir" || | ||
334 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
335 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
336 | X"$as_dir" : 'X\(//\)$' \| \ | ||
337 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
338 | $as_echo X"$as_dir" | | ||
339 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
340 | s//\1/ | ||
341 | q | ||
342 | } | ||
343 | /^X\(\/\/\)[^/].*/{ | ||
344 | s//\1/ | ||
345 | q | ||
346 | } | ||
347 | /^X\(\/\/\)$/{ | ||
348 | s//\1/ | ||
349 | q | ||
350 | } | ||
351 | /^X\(\/\).*/{ | ||
352 | s//\1/ | ||
353 | q | ||
354 | } | ||
355 | s/.*/./; q'` | ||
356 | test -d "$as_dir" && break | ||
357 | done | ||
358 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
359 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
360 | |||
361 | |||
362 | } # as_fn_mkdir_p | ||
363 | |||
364 | # as_fn_executable_p FILE | ||
365 | # ----------------------- | ||
366 | # Test if FILE is an executable regular file. | ||
367 | as_fn_executable_p () | ||
368 | { | ||
369 | test -f "$1" && test -x "$1" | ||
370 | } # as_fn_executable_p | ||
371 | # as_fn_append VAR VALUE | ||
372 | # ---------------------- | ||
373 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
374 | # advantage of any shell optimizations that allow amortized linear growth over | ||
375 | # repeated appends, instead of the typical quadratic growth present in naive | ||
376 | # implementations. | ||
377 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
378 | eval 'as_fn_append () | ||
379 | { | ||
380 | eval $1+=\$2 | ||
381 | }' | ||
382 | else | ||
383 | as_fn_append () | ||
384 | { | ||
385 | eval $1=\$$1\$2 | ||
386 | } | ||
387 | fi # as_fn_append | ||
388 | |||
389 | # as_fn_arith ARG... | ||
390 | # ------------------ | ||
391 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
392 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
393 | # must be portable across $(()) and expr. | ||
394 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
395 | eval 'as_fn_arith () | ||
396 | { | ||
397 | as_val=$(( $* )) | ||
398 | }' | ||
399 | else | ||
400 | as_fn_arith () | ||
401 | { | ||
402 | as_val=`expr "$@" || test $? -eq 1` | ||
403 | } | ||
404 | fi # as_fn_arith | ||
405 | |||
406 | |||
407 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
408 | # ---------------------------------------- | ||
409 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
410 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
411 | # script with STATUS, using 1 if that was 0. | ||
412 | as_fn_error () | ||
413 | { | ||
414 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
415 | if test "$4"; then | ||
416 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
417 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
418 | fi | ||
419 | $as_echo "$as_me: error: $2" >&2 | ||
420 | as_fn_exit $as_status | ||
421 | } # as_fn_error | ||
422 | |||
423 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
424 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
425 | as_expr=expr | ||
426 | else | ||
427 | as_expr=false | ||
428 | fi | ||
429 | |||
430 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
431 | as_basename=basename | ||
432 | else | ||
433 | as_basename=false | ||
434 | fi | ||
435 | |||
436 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
437 | as_dirname=dirname | ||
438 | else | ||
439 | as_dirname=false | ||
440 | fi | ||
441 | |||
442 | as_me=`$as_basename -- "$0" || | ||
443 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
444 | X"$0" : 'X\(//\)$' \| \ | ||
445 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
446 | $as_echo X/"$0" | | ||
447 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
448 | s//\1/ | ||
449 | q | ||
450 | } | ||
451 | /^X\/\(\/\/\)$/{ | ||
452 | s//\1/ | ||
453 | q | ||
454 | } | ||
455 | /^X\/\(\/\).*/{ | ||
456 | s//\1/ | ||
457 | q | ||
458 | } | ||
459 | s/.*/./; q'` | ||
460 | |||
461 | # Avoid depending upon Character Ranges. | ||
462 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
463 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
464 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
465 | as_cr_digits='0123456789' | ||
466 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
467 | |||
468 | |||
469 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | ||
470 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | ||
471 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | ||
472 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | ||
473 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | ||
474 | sed -n ' | ||
475 | p | ||
476 | /[$]LINENO/= | ||
477 | ' <$as_myself | | ||
478 | sed ' | ||
479 | s/[$]LINENO.*/&-/ | ||
480 | t lineno | ||
481 | b | ||
482 | :lineno | ||
483 | N | ||
484 | :loop | ||
485 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
486 | t loop | ||
487 | s/-\n.*// | ||
488 | ' >$as_me.lineno && | ||
489 | chmod +x "$as_me.lineno" || | ||
490 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | ||
491 | |||
492 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | ||
493 | # already done that, so ensure we don't try to do so again and fall | ||
494 | # in an infinite loop. This has already happened in practice. | ||
495 | _as_can_reexec=no; export _as_can_reexec | ||
496 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
497 | # (the dirname of $[0] is not the place where we might find the | ||
498 | # original and so on. Autoconf is especially sensitive to this). | ||
499 | . "./$as_me.lineno" | ||
500 | # Exit status is that of the last command. | ||
501 | exit | ||
502 | } | ||
503 | |||
504 | ECHO_C= ECHO_N= ECHO_T= | ||
505 | case `echo -n x` in #((((( | ||
506 | -n*) | ||
507 | case `echo 'xy\c'` in | ||
508 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
509 | xy) ECHO_C='\c';; | ||
510 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
511 | ECHO_T=' ';; | ||
512 | esac;; | ||
513 | *) | ||
514 | ECHO_N='-n';; | ||
515 | esac | ||
516 | |||
517 | rm -f conf$$ conf$$.exe conf$$.file | ||
518 | if test -d conf$$.dir; then | ||
519 | rm -f conf$$.dir/conf$$.file | ||
520 | else | ||
521 | rm -f conf$$.dir | ||
522 | mkdir conf$$.dir 2>/dev/null | ||
523 | fi | ||
524 | if (echo >conf$$.file) 2>/dev/null; then | ||
525 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
526 | as_ln_s='ln -s' | ||
527 | # ... but there are two gotchas: | ||
528 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
529 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
530 | # In both cases, we have to default to `cp -pR'. | ||
531 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
532 | as_ln_s='cp -pR' | ||
533 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
534 | as_ln_s=ln | ||
535 | else | ||
536 | as_ln_s='cp -pR' | ||
537 | fi | ||
538 | else | ||
539 | as_ln_s='cp -pR' | ||
540 | fi | ||
541 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
542 | rmdir conf$$.dir 2>/dev/null | ||
543 | |||
544 | if mkdir -p . 2>/dev/null; then | ||
545 | as_mkdir_p='mkdir -p "$as_dir"' | ||
546 | else | ||
547 | test -d ./-p && rmdir ./-p | ||
548 | as_mkdir_p=false | ||
549 | fi | ||
550 | |||
551 | as_test_x='test -x' | ||
552 | as_executable_p=as_fn_executable_p | ||
553 | |||
554 | # Sed expression to map a string onto a valid CPP name. | ||
555 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
556 | |||
557 | # Sed expression to map a string onto a valid variable name. | ||
558 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
559 | |||
560 | |||
561 | test -n "$DJDIR" || exec 7<&0 </dev/null | ||
562 | exec 6>&1 | ||
563 | |||
564 | # Name of the host. | ||
565 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | ||
566 | # so uname gets run too. | ||
567 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
568 | |||
569 | # | ||
570 | # Initializations. | ||
571 | # | ||
572 | ac_default_prefix=/usr/local | ||
573 | ac_clean_files= | ||
574 | ac_config_libobj_dir=. | ||
575 | LIBOBJS= | ||
576 | cross_compiling=no | ||
577 | subdirs= | ||
578 | MFLAGS= | ||
579 | MAKEFLAGS= | ||
580 | |||
581 | # Identity of this package. | ||
582 | PACKAGE_NAME='OpenSSH' | ||
583 | PACKAGE_TARNAME='openssh' | ||
584 | PACKAGE_VERSION='Portable' | ||
585 | PACKAGE_STRING='OpenSSH Portable' | ||
586 | PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org' | ||
587 | PACKAGE_URL='' | ||
588 | |||
589 | ac_unique_file="ssh.c" | ||
590 | # Factoring default headers for most tests. | ||
591 | ac_includes_default="\ | ||
592 | #include <stdio.h> | ||
593 | #ifdef HAVE_SYS_TYPES_H | ||
594 | # include <sys/types.h> | ||
595 | #endif | ||
596 | #ifdef HAVE_SYS_STAT_H | ||
597 | # include <sys/stat.h> | ||
598 | #endif | ||
599 | #ifdef STDC_HEADERS | ||
600 | # include <stdlib.h> | ||
601 | # include <stddef.h> | ||
602 | #else | ||
603 | # ifdef HAVE_STDLIB_H | ||
604 | # include <stdlib.h> | ||
605 | # endif | ||
606 | #endif | ||
607 | #ifdef HAVE_STRING_H | ||
608 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||
609 | # include <memory.h> | ||
610 | # endif | ||
611 | # include <string.h> | ||
612 | #endif | ||
613 | #ifdef HAVE_STRINGS_H | ||
614 | # include <strings.h> | ||
615 | #endif | ||
616 | #ifdef HAVE_INTTYPES_H | ||
617 | # include <inttypes.h> | ||
618 | #endif | ||
619 | #ifdef HAVE_STDINT_H | ||
620 | # include <stdint.h> | ||
621 | #endif | ||
622 | #ifdef HAVE_UNISTD_H | ||
623 | # include <unistd.h> | ||
624 | #endif" | ||
625 | |||
626 | ac_subst_vars='LTLIBOBJS | ||
627 | LIBOBJS | ||
628 | UNSUPPORTED_ALGORITHMS | ||
629 | TEST_MALLOC_OPTIONS | ||
630 | TEST_SSH_UTF8 | ||
631 | TEST_SSH_IPV6 | ||
632 | piddir | ||
633 | user_path | ||
634 | mansubdir | ||
635 | MANTYPE | ||
636 | XAUTH_PATH | ||
637 | STRIP_OPT | ||
638 | xauth_path | ||
639 | PRIVSEP_PATH | ||
640 | K5LIBS | ||
641 | GSSLIBS | ||
642 | KRB5CONF | ||
643 | SSHDLIBS | ||
644 | SSHLIBS | ||
645 | SSH_PRIVSEP_USER | ||
646 | COMMENT_OUT_ECC | ||
647 | TEST_SSH_ECC | ||
648 | LIBEDIT | ||
649 | PKGCONFIG | ||
650 | COMMENT_OUT_RSA1 | ||
651 | LD | ||
652 | PATH_PASSWD_PROG | ||
653 | STARTUP_SCRIPT_SHELL | ||
654 | MAKE_PACKAGE_SUPPORTED | ||
655 | PATH_USERADD_PROG | ||
656 | PATH_GROUPADD_PROG | ||
657 | MANFMT | ||
658 | TEST_SHELL | ||
659 | MANDOC | ||
660 | NROFF | ||
661 | GROFF | ||
662 | SH | ||
663 | TEST_MINUS_S_SH | ||
664 | ENT | ||
665 | SED | ||
666 | PERL | ||
667 | KILL | ||
668 | CAT | ||
669 | ac_ct_AR | ||
670 | AR | ||
671 | INSTALL_DATA | ||
672 | INSTALL_SCRIPT | ||
673 | INSTALL_PROGRAM | ||
674 | RANLIB | ||
675 | AWK | ||
676 | EGREP | ||
677 | GREP | ||
678 | CPP | ||
679 | host_os | ||
680 | host_vendor | ||
681 | host_cpu | ||
682 | host | ||
683 | build_os | ||
684 | build_vendor | ||
685 | build_cpu | ||
686 | build | ||
687 | OBJEXT | ||
688 | EXEEXT | ||
689 | ac_ct_CC | ||
690 | CPPFLAGS | ||
691 | LDFLAGS | ||
692 | CFLAGS | ||
693 | CC | ||
694 | target_alias | ||
695 | host_alias | ||
696 | build_alias | ||
697 | LIBS | ||
698 | ECHO_T | ||
699 | ECHO_N | ||
700 | ECHO_C | ||
701 | DEFS | ||
702 | mandir | ||
703 | localedir | ||
704 | libdir | ||
705 | psdir | ||
706 | pdfdir | ||
707 | dvidir | ||
708 | htmldir | ||
709 | infodir | ||
710 | docdir | ||
711 | oldincludedir | ||
712 | includedir | ||
713 | localstatedir | ||
714 | sharedstatedir | ||
715 | sysconfdir | ||
716 | datadir | ||
717 | datarootdir | ||
718 | libexecdir | ||
719 | sbindir | ||
720 | bindir | ||
721 | program_transform_name | ||
722 | prefix | ||
723 | exec_prefix | ||
724 | PACKAGE_URL | ||
725 | PACKAGE_BUGREPORT | ||
726 | PACKAGE_STRING | ||
727 | PACKAGE_VERSION | ||
728 | PACKAGE_TARNAME | ||
729 | PACKAGE_NAME | ||
730 | PATH_SEPARATOR | ||
731 | SHELL' | ||
732 | ac_subst_files='' | ||
733 | ac_user_opts=' | ||
734 | enable_option_checking | ||
735 | enable_largefile | ||
736 | with_openssl | ||
737 | with_ssh1 | ||
738 | with_stackprotect | ||
739 | with_hardening | ||
740 | with_rpath | ||
741 | with_cflags | ||
742 | with_cppflags | ||
743 | with_ldflags | ||
744 | with_libs | ||
745 | with_Werror | ||
746 | with_solaris_contracts | ||
747 | with_solaris_projects | ||
748 | with_solaris_privs | ||
749 | with_osfsia | ||
750 | with_zlib | ||
751 | with_zlib_version_check | ||
752 | with_skey | ||
753 | with_ldns | ||
754 | with_libedit | ||
755 | with_audit | ||
756 | with_pie | ||
757 | enable_pkcs11 | ||
758 | with_ssl_dir | ||
759 | with_openssl_header_check | ||
760 | with_ssl_engine | ||
761 | with_prngd_port | ||
762 | with_prngd_socket | ||
763 | with_pam | ||
764 | with_pam_service | ||
765 | with_privsep_user | ||
766 | with_sandbox | ||
767 | with_selinux | ||
768 | with_kerberos5 | ||
769 | with_privsep_path | ||
770 | with_xauth | ||
771 | enable_strip | ||
772 | with_maildir | ||
773 | with_mantype | ||
774 | with_md5_passwords | ||
775 | with_shadow | ||
776 | with_ipaddr_display | ||
777 | enable_etc_default_login | ||
778 | with_default_path | ||
779 | with_superuser_path | ||
780 | with_4in6 | ||
781 | with_bsd_auth | ||
782 | with_pid_dir | ||
783 | enable_lastlog | ||
784 | enable_utmp | ||
785 | enable_utmpx | ||
786 | enable_wtmp | ||
787 | enable_wtmpx | ||
788 | enable_libutil | ||
789 | enable_pututline | ||
790 | enable_pututxline | ||
791 | with_lastlog | ||
792 | ' | ||
793 | ac_precious_vars='build_alias | ||
794 | host_alias | ||
795 | target_alias | ||
796 | CC | ||
797 | CFLAGS | ||
798 | LDFLAGS | ||
799 | LIBS | ||
800 | CPPFLAGS | ||
801 | CPP' | ||
802 | |||
803 | |||
804 | # Initialize some variables set by options. | ||
805 | ac_init_help= | ||
806 | ac_init_version=false | ||
807 | ac_unrecognized_opts= | ||
808 | ac_unrecognized_sep= | ||
809 | # The variables have the same names as the options, with | ||
810 | # dashes changed to underlines. | ||
811 | cache_file=/dev/null | ||
812 | exec_prefix=NONE | ||
813 | no_create= | ||
814 | no_recursion= | ||
815 | prefix=NONE | ||
816 | program_prefix=NONE | ||
817 | program_suffix=NONE | ||
818 | program_transform_name=s,x,x, | ||
819 | silent= | ||
820 | site= | ||
821 | srcdir= | ||
822 | verbose= | ||
823 | x_includes=NONE | ||
824 | x_libraries=NONE | ||
825 | |||
826 | # Installation directory options. | ||
827 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
828 | # and all the variables that are supposed to be based on exec_prefix | ||
829 | # by default will actually change. | ||
830 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
831 | # (The list follows the same order as the GNU Coding Standards.) | ||
832 | bindir='${exec_prefix}/bin' | ||
833 | sbindir='${exec_prefix}/sbin' | ||
834 | libexecdir='${exec_prefix}/libexec' | ||
835 | datarootdir='${prefix}/share' | ||
836 | datadir='${datarootdir}' | ||
837 | sysconfdir='${prefix}/etc' | ||
838 | sharedstatedir='${prefix}/com' | ||
839 | localstatedir='${prefix}/var' | ||
840 | includedir='${prefix}/include' | ||
841 | oldincludedir='/usr/include' | ||
842 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
843 | infodir='${datarootdir}/info' | ||
844 | htmldir='${docdir}' | ||
845 | dvidir='${docdir}' | ||
846 | pdfdir='${docdir}' | ||
847 | psdir='${docdir}' | ||
848 | libdir='${exec_prefix}/lib' | ||
849 | localedir='${datarootdir}/locale' | ||
850 | mandir='${datarootdir}/man' | ||
851 | |||
852 | ac_prev= | ||
853 | ac_dashdash= | ||
854 | for ac_option | ||
855 | do | ||
856 | # If the previous option needs an argument, assign it. | ||
857 | if test -n "$ac_prev"; then | ||
858 | eval $ac_prev=\$ac_option | ||
859 | ac_prev= | ||
860 | continue | ||
861 | fi | ||
862 | |||
863 | case $ac_option in | ||
864 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
865 | *=) ac_optarg= ;; | ||
866 | *) ac_optarg=yes ;; | ||
867 | esac | ||
868 | |||
869 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
870 | |||
871 | case $ac_dashdash$ac_option in | ||
872 | --) | ||
873 | ac_dashdash=yes ;; | ||
874 | |||
875 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
876 | ac_prev=bindir ;; | ||
877 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
878 | bindir=$ac_optarg ;; | ||
879 | |||
880 | -build | --build | --buil | --bui | --bu) | ||
881 | ac_prev=build_alias ;; | ||
882 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
883 | build_alias=$ac_optarg ;; | ||
884 | |||
885 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
886 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
887 | ac_prev=cache_file ;; | ||
888 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
889 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
890 | cache_file=$ac_optarg ;; | ||
891 | |||
892 | --config-cache | -C) | ||
893 | cache_file=config.cache ;; | ||
894 | |||
895 | -datadir | --datadir | --datadi | --datad) | ||
896 | ac_prev=datadir ;; | ||
897 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
898 | datadir=$ac_optarg ;; | ||
899 | |||
900 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
901 | | --dataroo | --dataro | --datar) | ||
902 | ac_prev=datarootdir ;; | ||
903 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
904 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
905 | datarootdir=$ac_optarg ;; | ||
906 | |||
907 | -disable-* | --disable-*) | ||
908 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
909 | # Reject names that are not valid shell variable names. | ||
910 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
911 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
912 | ac_useropt_orig=$ac_useropt | ||
913 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
914 | case $ac_user_opts in | ||
915 | *" | ||
916 | "enable_$ac_useropt" | ||
917 | "*) ;; | ||
918 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||
919 | ac_unrecognized_sep=', ';; | ||
920 | esac | ||
921 | eval enable_$ac_useropt=no ;; | ||
922 | |||
923 | -docdir | --docdir | --docdi | --doc | --do) | ||
924 | ac_prev=docdir ;; | ||
925 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
926 | docdir=$ac_optarg ;; | ||
927 | |||
928 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
929 | ac_prev=dvidir ;; | ||
930 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
931 | dvidir=$ac_optarg ;; | ||
932 | |||
933 | -enable-* | --enable-*) | ||
934 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
935 | # Reject names that are not valid shell variable names. | ||
936 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
937 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
938 | ac_useropt_orig=$ac_useropt | ||
939 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
940 | case $ac_user_opts in | ||
941 | *" | ||
942 | "enable_$ac_useropt" | ||
943 | "*) ;; | ||
944 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||
945 | ac_unrecognized_sep=', ';; | ||
946 | esac | ||
947 | eval enable_$ac_useropt=\$ac_optarg ;; | ||
948 | |||
949 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
950 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
951 | | --exec | --exe | --ex) | ||
952 | ac_prev=exec_prefix ;; | ||
953 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
954 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
955 | | --exec=* | --exe=* | --ex=*) | ||
956 | exec_prefix=$ac_optarg ;; | ||
957 | |||
958 | -gas | --gas | --ga | --g) | ||
959 | # Obsolete; use --with-gas. | ||
960 | with_gas=yes ;; | ||
961 | |||
962 | -help | --help | --hel | --he | -h) | ||
963 | ac_init_help=long ;; | ||
964 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
965 | ac_init_help=recursive ;; | ||
966 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
967 | ac_init_help=short ;; | ||
968 | |||
969 | -host | --host | --hos | --ho) | ||
970 | ac_prev=host_alias ;; | ||
971 | -host=* | --host=* | --hos=* | --ho=*) | ||
972 | host_alias=$ac_optarg ;; | ||
973 | |||
974 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
975 | ac_prev=htmldir ;; | ||
976 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
977 | | --ht=*) | ||
978 | htmldir=$ac_optarg ;; | ||
979 | |||
980 | -includedir | --includedir | --includedi | --included | --include \ | ||
981 | | --includ | --inclu | --incl | --inc) | ||
982 | ac_prev=includedir ;; | ||
983 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
984 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
985 | includedir=$ac_optarg ;; | ||
986 | |||
987 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
988 | ac_prev=infodir ;; | ||
989 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
990 | infodir=$ac_optarg ;; | ||
991 | |||
992 | -libdir | --libdir | --libdi | --libd) | ||
993 | ac_prev=libdir ;; | ||
994 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
995 | libdir=$ac_optarg ;; | ||
996 | |||
997 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
998 | | --libexe | --libex | --libe) | ||
999 | ac_prev=libexecdir ;; | ||
1000 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
1001 | | --libexe=* | --libex=* | --libe=*) | ||
1002 | libexecdir=$ac_optarg ;; | ||
1003 | |||
1004 | -localedir | --localedir | --localedi | --localed | --locale) | ||
1005 | ac_prev=localedir ;; | ||
1006 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
1007 | localedir=$ac_optarg ;; | ||
1008 | |||
1009 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
1010 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
1011 | ac_prev=localstatedir ;; | ||
1012 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
1013 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
1014 | localstatedir=$ac_optarg ;; | ||
1015 | |||
1016 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
1017 | ac_prev=mandir ;; | ||
1018 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
1019 | mandir=$ac_optarg ;; | ||
1020 | |||
1021 | -nfp | --nfp | --nf) | ||
1022 | # Obsolete; use --without-fp. | ||
1023 | with_fp=no ;; | ||
1024 | |||
1025 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
1026 | | --no-cr | --no-c | -n) | ||
1027 | no_create=yes ;; | ||
1028 | |||
1029 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
1030 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
1031 | no_recursion=yes ;; | ||
1032 | |||
1033 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
1034 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
1035 | | --oldin | --oldi | --old | --ol | --o) | ||
1036 | ac_prev=oldincludedir ;; | ||
1037 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
1038 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
1039 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
1040 | oldincludedir=$ac_optarg ;; | ||
1041 | |||
1042 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
1043 | ac_prev=prefix ;; | ||
1044 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
1045 | prefix=$ac_optarg ;; | ||
1046 | |||
1047 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
1048 | | --program-pre | --program-pr | --program-p) | ||
1049 | ac_prev=program_prefix ;; | ||
1050 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
1051 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
1052 | program_prefix=$ac_optarg ;; | ||
1053 | |||
1054 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
1055 | | --program-suf | --program-su | --program-s) | ||
1056 | ac_prev=program_suffix ;; | ||
1057 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
1058 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
1059 | program_suffix=$ac_optarg ;; | ||
1060 | |||
1061 | -program-transform-name | --program-transform-name \ | ||
1062 | | --program-transform-nam | --program-transform-na \ | ||
1063 | | --program-transform-n | --program-transform- \ | ||
1064 | | --program-transform | --program-transfor \ | ||
1065 | | --program-transfo | --program-transf \ | ||
1066 | | --program-trans | --program-tran \ | ||
1067 | | --progr-tra | --program-tr | --program-t) | ||
1068 | ac_prev=program_transform_name ;; | ||
1069 | -program-transform-name=* | --program-transform-name=* \ | ||
1070 | | --program-transform-nam=* | --program-transform-na=* \ | ||
1071 | | --program-transform-n=* | --program-transform-=* \ | ||
1072 | | --program-transform=* | --program-transfor=* \ | ||
1073 | | --program-transfo=* | --program-transf=* \ | ||
1074 | | --program-trans=* | --program-tran=* \ | ||
1075 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
1076 | program_transform_name=$ac_optarg ;; | ||
1077 | |||
1078 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
1079 | ac_prev=pdfdir ;; | ||
1080 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1081 | pdfdir=$ac_optarg ;; | ||
1082 | |||
1083 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1084 | ac_prev=psdir ;; | ||
1085 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1086 | psdir=$ac_optarg ;; | ||
1087 | |||
1088 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1089 | | -silent | --silent | --silen | --sile | --sil) | ||
1090 | silent=yes ;; | ||
1091 | |||
1092 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1093 | ac_prev=sbindir ;; | ||
1094 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1095 | | --sbi=* | --sb=*) | ||
1096 | sbindir=$ac_optarg ;; | ||
1097 | |||
1098 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1099 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1100 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1101 | | --sha | --sh) | ||
1102 | ac_prev=sharedstatedir ;; | ||
1103 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1104 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1105 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1106 | | --sha=* | --sh=*) | ||
1107 | sharedstatedir=$ac_optarg ;; | ||
1108 | |||
1109 | -site | --site | --sit) | ||
1110 | ac_prev=site ;; | ||
1111 | -site=* | --site=* | --sit=*) | ||
1112 | site=$ac_optarg ;; | ||
1113 | |||
1114 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1115 | ac_prev=srcdir ;; | ||
1116 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1117 | srcdir=$ac_optarg ;; | ||
1118 | |||
1119 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1120 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1121 | ac_prev=sysconfdir ;; | ||
1122 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1123 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1124 | sysconfdir=$ac_optarg ;; | ||
1125 | |||
1126 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1127 | ac_prev=target_alias ;; | ||
1128 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1129 | target_alias=$ac_optarg ;; | ||
1130 | |||
1131 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1132 | verbose=yes ;; | ||
1133 | |||
1134 | -version | --version | --versio | --versi | --vers | -V) | ||
1135 | ac_init_version=: ;; | ||
1136 | |||
1137 | -with-* | --with-*) | ||
1138 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1139 | # Reject names that are not valid shell variable names. | ||
1140 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1141 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1142 | ac_useropt_orig=$ac_useropt | ||
1143 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1144 | case $ac_user_opts in | ||
1145 | *" | ||
1146 | "with_$ac_useropt" | ||
1147 | "*) ;; | ||
1148 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||
1149 | ac_unrecognized_sep=', ';; | ||
1150 | esac | ||
1151 | eval with_$ac_useropt=\$ac_optarg ;; | ||
1152 | |||
1153 | -without-* | --without-*) | ||
1154 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1155 | # Reject names that are not valid shell variable names. | ||
1156 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1157 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1158 | ac_useropt_orig=$ac_useropt | ||
1159 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1160 | case $ac_user_opts in | ||
1161 | *" | ||
1162 | "with_$ac_useropt" | ||
1163 | "*) ;; | ||
1164 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||
1165 | ac_unrecognized_sep=', ';; | ||
1166 | esac | ||
1167 | eval with_$ac_useropt=no ;; | ||
1168 | |||
1169 | --x) | ||
1170 | # Obsolete; use --with-x. | ||
1171 | with_x=yes ;; | ||
1172 | |||
1173 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1174 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1175 | ac_prev=x_includes ;; | ||
1176 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1177 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1178 | x_includes=$ac_optarg ;; | ||
1179 | |||
1180 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1181 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1182 | ac_prev=x_libraries ;; | ||
1183 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1184 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1185 | x_libraries=$ac_optarg ;; | ||
1186 | |||
1187 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | ||
1188 | Try \`$0 --help' for more information" | ||
1189 | ;; | ||
1190 | |||
1191 | *=*) | ||
1192 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1193 | # Reject names that are not valid shell variable names. | ||
1194 | case $ac_envvar in #( | ||
1195 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | ||
1196 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | ||
1197 | esac | ||
1198 | eval $ac_envvar=\$ac_optarg | ||
1199 | export $ac_envvar ;; | ||
1200 | |||
1201 | *) | ||
1202 | # FIXME: should be removed in autoconf 3.0. | ||
1203 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1204 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1205 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1206 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | ||
1207 | ;; | ||
1208 | |||
1209 | esac | ||
1210 | done | ||
1211 | |||
1212 | if test -n "$ac_prev"; then | ||
1213 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1214 | as_fn_error $? "missing argument to $ac_option" | ||
1215 | fi | ||
1216 | |||
1217 | if test -n "$ac_unrecognized_opts"; then | ||
1218 | case $enable_option_checking in | ||
1219 | no) ;; | ||
1220 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | ||
1221 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | ||
1222 | esac | ||
1223 | fi | ||
1224 | |||
1225 | # Check all directory arguments for consistency. | ||
1226 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1227 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1228 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1229 | libdir localedir mandir | ||
1230 | do | ||
1231 | eval ac_val=\$$ac_var | ||
1232 | # Remove trailing slashes. | ||
1233 | case $ac_val in | ||
1234 | */ ) | ||
1235 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||
1236 | eval $ac_var=\$ac_val;; | ||
1237 | esac | ||
1238 | # Be sure to have absolute directory names. | ||
1239 | case $ac_val in | ||
1240 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1241 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1242 | esac | ||
1243 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | ||
1244 | done | ||
1245 | |||
1246 | # There might be people who depend on the old broken behavior: `$host' | ||
1247 | # used to hold the argument of --host etc. | ||
1248 | # FIXME: To remove some day. | ||
1249 | build=$build_alias | ||
1250 | host=$host_alias | ||
1251 | target=$target_alias | ||
1252 | |||
1253 | # FIXME: To remove some day. | ||
1254 | if test "x$host_alias" != x; then | ||
1255 | if test "x$build_alias" = x; then | ||
1256 | cross_compiling=maybe | ||
1257 | elif test "x$build_alias" != "x$host_alias"; then | ||
1258 | cross_compiling=yes | ||
1259 | fi | ||
1260 | fi | ||
1261 | |||
1262 | ac_tool_prefix= | ||
1263 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1264 | |||
1265 | test "$silent" = yes && exec 6>/dev/null | ||
1266 | |||
1267 | |||
1268 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1269 | ac_ls_di=`ls -di .` && | ||
1270 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1271 | as_fn_error $? "working directory cannot be determined" | ||
1272 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1273 | as_fn_error $? "pwd does not report name of working directory" | ||
1274 | |||
1275 | |||
1276 | # Find the source files, if location was not specified. | ||
1277 | if test -z "$srcdir"; then | ||
1278 | ac_srcdir_defaulted=yes | ||
1279 | # Try the directory containing this script, then the parent directory. | ||
1280 | ac_confdir=`$as_dirname -- "$as_myself" || | ||
1281 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1282 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||
1283 | X"$as_myself" : 'X\(//\)$' \| \ | ||
1284 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||
1285 | $as_echo X"$as_myself" | | ||
1286 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1287 | s//\1/ | ||
1288 | q | ||
1289 | } | ||
1290 | /^X\(\/\/\)[^/].*/{ | ||
1291 | s//\1/ | ||
1292 | q | ||
1293 | } | ||
1294 | /^X\(\/\/\)$/{ | ||
1295 | s//\1/ | ||
1296 | q | ||
1297 | } | ||
1298 | /^X\(\/\).*/{ | ||
1299 | s//\1/ | ||
1300 | q | ||
1301 | } | ||
1302 | s/.*/./; q'` | ||
1303 | srcdir=$ac_confdir | ||
1304 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1305 | srcdir=.. | ||
1306 | fi | ||
1307 | else | ||
1308 | ac_srcdir_defaulted=no | ||
1309 | fi | ||
1310 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1311 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1312 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | ||
1313 | fi | ||
1314 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1315 | ac_abs_confdir=`( | ||
1316 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | ||
1317 | pwd)` | ||
1318 | # When building in place, set srcdir=. | ||
1319 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1320 | srcdir=. | ||
1321 | fi | ||
1322 | # Remove unnecessary trailing slashes from srcdir. | ||
1323 | # Double slashes in file names in object file debugging info | ||
1324 | # mess up M-x gdb in Emacs. | ||
1325 | case $srcdir in | ||
1326 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1327 | esac | ||
1328 | for ac_var in $ac_precious_vars; do | ||
1329 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1330 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1331 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1332 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1333 | done | ||
1334 | |||
1335 | # | ||
1336 | # Report the --help message. | ||
1337 | # | ||
1338 | if test "$ac_init_help" = "long"; then | ||
1339 | # Omit some internal or obsolete options to make the list less imposing. | ||
1340 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1341 | cat <<_ACEOF | ||
1342 | \`configure' configures OpenSSH Portable to adapt to many kinds of systems. | ||
1343 | |||
1344 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1345 | |||
1346 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1347 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1348 | |||
1349 | Defaults for the options are specified in brackets. | ||
1350 | |||
1351 | Configuration: | ||
1352 | -h, --help display this help and exit | ||
1353 | --help=short display options specific to this package | ||
1354 | --help=recursive display the short help of all the included packages | ||
1355 | -V, --version display version information and exit | ||
1356 | -q, --quiet, --silent do not print \`checking ...' messages | ||
1357 | --cache-file=FILE cache test results in FILE [disabled] | ||
1358 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1359 | -n, --no-create do not create output files | ||
1360 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1361 | |||
1362 | Installation directories: | ||
1363 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1364 | [$ac_default_prefix] | ||
1365 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1366 | [PREFIX] | ||
1367 | |||
1368 | By default, \`make install' will install all the files in | ||
1369 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1370 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1371 | for instance \`--prefix=\$HOME'. | ||
1372 | |||
1373 | For better control, use the options below. | ||
1374 | |||
1375 | Fine tuning of the installation directories: | ||
1376 | --bindir=DIR user executables [EPREFIX/bin] | ||
1377 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1378 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1379 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1380 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1381 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1382 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1383 | --includedir=DIR C header files [PREFIX/include] | ||
1384 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1385 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1386 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1387 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1388 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1389 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1390 | --docdir=DIR documentation root [DATAROOTDIR/doc/openssh] | ||
1391 | --htmldir=DIR html documentation [DOCDIR] | ||
1392 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1393 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1394 | --psdir=DIR ps documentation [DOCDIR] | ||
1395 | _ACEOF | ||
1396 | |||
1397 | cat <<\_ACEOF | ||
1398 | |||
1399 | System types: | ||
1400 | --build=BUILD configure for building on BUILD [guessed] | ||
1401 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1402 | _ACEOF | ||
1403 | fi | ||
1404 | |||
1405 | if test -n "$ac_init_help"; then | ||
1406 | case $ac_init_help in | ||
1407 | short | recursive ) echo "Configuration of OpenSSH Portable:";; | ||
1408 | esac | ||
1409 | cat <<\_ACEOF | ||
1410 | |||
1411 | Optional Features: | ||
1412 | --disable-option-checking ignore unrecognized --enable/--with options | ||
1413 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1414 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1415 | --disable-largefile omit support for large files | ||
1416 | --disable-pkcs11 disable PKCS#11 support code [no] | ||
1417 | --disable-strip Disable calling strip(1) on install | ||
1418 | --disable-etc-default-login Disable using PATH from /etc/default/login no | ||
1419 | --disable-lastlog disable use of lastlog even if detected no | ||
1420 | --disable-utmp disable use of utmp even if detected no | ||
1421 | --disable-utmpx disable use of utmpx even if detected no | ||
1422 | --disable-wtmp disable use of wtmp even if detected no | ||
1423 | --disable-wtmpx disable use of wtmpx even if detected no | ||
1424 | --disable-libutil disable use of libutil (login() etc.) no | ||
1425 | --disable-pututline disable use of pututline() etc. (uwtmp) no | ||
1426 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | ||
1427 | |||
1428 | Optional Packages: | ||
1429 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1430 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1431 | --without-openssl Disable use of OpenSSL; use only limited internal crypto **EXPERIMENTAL** | ||
1432 | --with-ssh1 Enable support for SSH protocol 1 | ||
1433 | --without-stackprotect Don't use compiler's stack protection | ||
1434 | --without-hardening Don't use toolchain hardening flags | ||
1435 | --without-rpath Disable auto-added -R linker paths | ||
1436 | --with-cflags Specify additional flags to pass to compiler | ||
1437 | --with-cppflags Specify additional flags to pass to preprocessor | ||
1438 | --with-ldflags Specify additional flags to pass to linker | ||
1439 | --with-libs Specify additional libraries to link with | ||
1440 | --with-Werror Build main code with -Werror | ||
1441 | --with-solaris-contracts Enable Solaris process contracts (experimental) | ||
1442 | --with-solaris-projects Enable Solaris projects (experimental) | ||
1443 | --with-solaris-privs Enable Solaris/Illumos privileges (experimental) | ||
1444 | --with-osfsia Enable Digital Unix SIA | ||
1445 | --with-zlib=PATH Use zlib in PATH | ||
1446 | --without-zlib-version-check Disable zlib version check | ||
1447 | --with-skey[=PATH] Enable S/Key support (optionally in PATH) | ||
1448 | --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH) | ||
1449 | --with-libedit[=PATH] Enable libedit support for sftp | ||
1450 | --with-audit=module Enable audit support (modules=debug,bsm,linux) | ||
1451 | --with-pie Build Position Independent Executables if possible | ||
1452 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
1453 | --without-openssl-header-check Disable OpenSSL version consistency check | ||
1454 | --with-ssl-engine Enable OpenSSL (hardware) ENGINE support | ||
1455 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
1456 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
1457 | --with-pam Enable PAM support | ||
1458 | --with-pam-service=name Specify PAM service name | ||
1459 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
1460 | --with-sandbox=style Specify privilege separation sandbox (no, capsicum, darwin, rlimit, seccomp_filter, systrace, pledge) | ||
1461 | --with-selinux Enable SELinux support | ||
1462 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
1463 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | ||
1464 | --with-xauth=PATH Specify path to xauth program | ||
1465 | --with-maildir=/path/to/mail Specify your system mail directory | ||
1466 | --with-mantype=man|cat|doc Set man page type | ||
1467 | --with-md5-passwords Enable use of MD5 passwords | ||
1468 | --without-shadow Disable shadow password support | ||
1469 | --with-ipaddr-display Use ip address instead of hostname in $DISPLAY | ||
1470 | --with-default-path= Specify default $PATH environment for server | ||
1471 | --with-superuser-path= Specify different path for super-user | ||
1472 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
1473 | --with-bsd-auth Enable BSD auth support | ||
1474 | --with-pid-dir=PATH Specify location of ssh.pid file | ||
1475 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
1476 | |||
1477 | Some influential environment variables: | ||
1478 | CC C compiler command | ||
1479 | CFLAGS C compiler flags | ||
1480 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1481 | nonstandard directory <lib dir> | ||
1482 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
1483 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | ||
1484 | you have headers in a nonstandard directory <include dir> | ||
1485 | CPP C preprocessor | ||
1486 | |||
1487 | Use these variables to override the choices made by `configure' or to help | ||
1488 | it to find libraries and programs with nonstandard names/locations. | ||
1489 | |||
1490 | Report bugs to <openssh-unix-dev@mindrot.org>. | ||
1491 | _ACEOF | ||
1492 | ac_status=$? | ||
1493 | fi | ||
1494 | |||
1495 | if test "$ac_init_help" = "recursive"; then | ||
1496 | # If there are subdirs, report their specific --help. | ||
1497 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1498 | test -d "$ac_dir" || | ||
1499 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||
1500 | continue | ||
1501 | ac_builddir=. | ||
1502 | |||
1503 | case "$ac_dir" in | ||
1504 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1505 | *) | ||
1506 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
1507 | # A ".." for each directory in $ac_dir_suffix. | ||
1508 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
1509 | case $ac_top_builddir_sub in | ||
1510 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1511 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1512 | esac ;; | ||
1513 | esac | ||
1514 | ac_abs_top_builddir=$ac_pwd | ||
1515 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1516 | # for backward compatibility: | ||
1517 | ac_top_builddir=$ac_top_build_prefix | ||
1518 | |||
1519 | case $srcdir in | ||
1520 | .) # We are building in place. | ||
1521 | ac_srcdir=. | ||
1522 | ac_top_srcdir=$ac_top_builddir_sub | ||
1523 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1524 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1525 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1526 | ac_top_srcdir=$srcdir | ||
1527 | ac_abs_top_srcdir=$srcdir ;; | ||
1528 | *) # Relative name. | ||
1529 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1530 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1531 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1532 | esac | ||
1533 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1534 | |||
1535 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1536 | # Check for guested configure. | ||
1537 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1538 | echo && | ||
1539 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1540 | elif test -f "$ac_srcdir/configure"; then | ||
1541 | echo && | ||
1542 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1543 | else | ||
1544 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1545 | fi || ac_status=$? | ||
1546 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1547 | done | ||
1548 | fi | ||
1549 | |||
1550 | test -n "$ac_init_help" && exit $ac_status | ||
1551 | if $ac_init_version; then | ||
1552 | cat <<\_ACEOF | ||
1553 | OpenSSH configure Portable | ||
1554 | generated by GNU Autoconf 2.69 | ||
1555 | |||
1556 | Copyright (C) 2012 Free Software Foundation, Inc. | ||
1557 | This configure script is free software; the Free Software Foundation | ||
1558 | gives unlimited permission to copy, distribute and modify it. | ||
1559 | _ACEOF | ||
1560 | exit | ||
1561 | fi | ||
1562 | |||
1563 | ## ------------------------ ## | ||
1564 | ## Autoconf initialization. ## | ||
1565 | ## ------------------------ ## | ||
1566 | |||
1567 | # ac_fn_c_try_compile LINENO | ||
1568 | # -------------------------- | ||
1569 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
1570 | ac_fn_c_try_compile () | ||
1571 | { | ||
1572 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1573 | rm -f conftest.$ac_objext | ||
1574 | if { { ac_try="$ac_compile" | ||
1575 | case "(($ac_try" in | ||
1576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1577 | *) ac_try_echo=$ac_try;; | ||
1578 | esac | ||
1579 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1580 | $as_echo "$ac_try_echo"; } >&5 | ||
1581 | (eval "$ac_compile") 2>conftest.err | ||
1582 | ac_status=$? | ||
1583 | if test -s conftest.err; then | ||
1584 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1585 | cat conftest.er1 >&5 | ||
1586 | mv -f conftest.er1 conftest.err | ||
1587 | fi | ||
1588 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1589 | test $ac_status = 0; } && { | ||
1590 | test -z "$ac_c_werror_flag" || | ||
1591 | test ! -s conftest.err | ||
1592 | } && test -s conftest.$ac_objext; then : | ||
1593 | ac_retval=0 | ||
1594 | else | ||
1595 | $as_echo "$as_me: failed program was:" >&5 | ||
1596 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1597 | |||
1598 | ac_retval=1 | ||
1599 | fi | ||
1600 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1601 | as_fn_set_status $ac_retval | ||
1602 | |||
1603 | } # ac_fn_c_try_compile | ||
1604 | |||
1605 | # ac_fn_c_try_run LINENO | ||
1606 | # ---------------------- | ||
1607 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | ||
1608 | # that executables *can* be run. | ||
1609 | ac_fn_c_try_run () | ||
1610 | { | ||
1611 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1612 | if { { ac_try="$ac_link" | ||
1613 | case "(($ac_try" in | ||
1614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1615 | *) ac_try_echo=$ac_try;; | ||
1616 | esac | ||
1617 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1618 | $as_echo "$ac_try_echo"; } >&5 | ||
1619 | (eval "$ac_link") 2>&5 | ||
1620 | ac_status=$? | ||
1621 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1622 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | ||
1623 | { { case "(($ac_try" in | ||
1624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1625 | *) ac_try_echo=$ac_try;; | ||
1626 | esac | ||
1627 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1628 | $as_echo "$ac_try_echo"; } >&5 | ||
1629 | (eval "$ac_try") 2>&5 | ||
1630 | ac_status=$? | ||
1631 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1632 | test $ac_status = 0; }; }; then : | ||
1633 | ac_retval=0 | ||
1634 | else | ||
1635 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
1636 | $as_echo "$as_me: failed program was:" >&5 | ||
1637 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1638 | |||
1639 | ac_retval=$ac_status | ||
1640 | fi | ||
1641 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
1642 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1643 | as_fn_set_status $ac_retval | ||
1644 | |||
1645 | } # ac_fn_c_try_run | ||
1646 | |||
1647 | # ac_fn_c_try_cpp LINENO | ||
1648 | # ---------------------- | ||
1649 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
1650 | ac_fn_c_try_cpp () | ||
1651 | { | ||
1652 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1653 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
1654 | case "(($ac_try" in | ||
1655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1656 | *) ac_try_echo=$ac_try;; | ||
1657 | esac | ||
1658 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1659 | $as_echo "$ac_try_echo"; } >&5 | ||
1660 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
1661 | ac_status=$? | ||
1662 | if test -s conftest.err; then | ||
1663 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1664 | cat conftest.er1 >&5 | ||
1665 | mv -f conftest.er1 conftest.err | ||
1666 | fi | ||
1667 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1668 | test $ac_status = 0; } > conftest.i && { | ||
1669 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
1670 | test ! -s conftest.err | ||
1671 | }; then : | ||
1672 | ac_retval=0 | ||
1673 | else | ||
1674 | $as_echo "$as_me: failed program was:" >&5 | ||
1675 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1676 | |||
1677 | ac_retval=1 | ||
1678 | fi | ||
1679 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1680 | as_fn_set_status $ac_retval | ||
1681 | |||
1682 | } # ac_fn_c_try_cpp | ||
1683 | |||
1684 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | ||
1685 | # ------------------------------------------------------- | ||
1686 | # Tests whether HEADER exists and can be compiled using the include files in | ||
1687 | # INCLUDES, setting the cache variable VAR accordingly. | ||
1688 | ac_fn_c_check_header_compile () | ||
1689 | { | ||
1690 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1692 | $as_echo_n "checking for $2... " >&6; } | ||
1693 | if eval \${$3+:} false; then : | ||
1694 | $as_echo_n "(cached) " >&6 | ||
1695 | else | ||
1696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1697 | /* end confdefs.h. */ | ||
1698 | $4 | ||
1699 | #include <$2> | ||
1700 | _ACEOF | ||
1701 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1702 | eval "$3=yes" | ||
1703 | else | ||
1704 | eval "$3=no" | ||
1705 | fi | ||
1706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1707 | fi | ||
1708 | eval ac_res=\$$3 | ||
1709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1710 | $as_echo "$ac_res" >&6; } | ||
1711 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1712 | |||
1713 | } # ac_fn_c_check_header_compile | ||
1714 | |||
1715 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | ||
1716 | # --------------------------------------------- | ||
1717 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | ||
1718 | # accordingly. | ||
1719 | ac_fn_c_check_decl () | ||
1720 | { | ||
1721 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1722 | as_decl_name=`echo $2|sed 's/ *(.*//'` | ||
1723 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | ||
1724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | ||
1725 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | ||
1726 | if eval \${$3+:} false; then : | ||
1727 | $as_echo_n "(cached) " >&6 | ||
1728 | else | ||
1729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1730 | /* end confdefs.h. */ | ||
1731 | $4 | ||
1732 | int | ||
1733 | main () | ||
1734 | { | ||
1735 | #ifndef $as_decl_name | ||
1736 | #ifdef __cplusplus | ||
1737 | (void) $as_decl_use; | ||
1738 | #else | ||
1739 | (void) $as_decl_name; | ||
1740 | #endif | ||
1741 | #endif | ||
1742 | |||
1743 | ; | ||
1744 | return 0; | ||
1745 | } | ||
1746 | _ACEOF | ||
1747 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1748 | eval "$3=yes" | ||
1749 | else | ||
1750 | eval "$3=no" | ||
1751 | fi | ||
1752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1753 | fi | ||
1754 | eval ac_res=\$$3 | ||
1755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1756 | $as_echo "$ac_res" >&6; } | ||
1757 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1758 | |||
1759 | } # ac_fn_c_check_decl | ||
1760 | |||
1761 | # ac_fn_c_try_link LINENO | ||
1762 | # ----------------------- | ||
1763 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
1764 | ac_fn_c_try_link () | ||
1765 | { | ||
1766 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1767 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
1768 | if { { ac_try="$ac_link" | ||
1769 | case "(($ac_try" in | ||
1770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1771 | *) ac_try_echo=$ac_try;; | ||
1772 | esac | ||
1773 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1774 | $as_echo "$ac_try_echo"; } >&5 | ||
1775 | (eval "$ac_link") 2>conftest.err | ||
1776 | ac_status=$? | ||
1777 | if test -s conftest.err; then | ||
1778 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1779 | cat conftest.er1 >&5 | ||
1780 | mv -f conftest.er1 conftest.err | ||
1781 | fi | ||
1782 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1783 | test $ac_status = 0; } && { | ||
1784 | test -z "$ac_c_werror_flag" || | ||
1785 | test ! -s conftest.err | ||
1786 | } && test -s conftest$ac_exeext && { | ||
1787 | test "$cross_compiling" = yes || | ||
1788 | test -x conftest$ac_exeext | ||
1789 | }; then : | ||
1790 | ac_retval=0 | ||
1791 | else | ||
1792 | $as_echo "$as_me: failed program was:" >&5 | ||
1793 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1794 | |||
1795 | ac_retval=1 | ||
1796 | fi | ||
1797 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
1798 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
1799 | # interfere with the next link command; also delete a directory that is | ||
1800 | # left behind by Apple's compiler. We do this before executing the actions. | ||
1801 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
1802 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1803 | as_fn_set_status $ac_retval | ||
1804 | |||
1805 | } # ac_fn_c_try_link | ||
1806 | |||
1807 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | ||
1808 | # ------------------------------------------------------- | ||
1809 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | ||
1810 | # the include files in INCLUDES and setting the cache variable VAR | ||
1811 | # accordingly. | ||
1812 | ac_fn_c_check_header_mongrel () | ||
1813 | { | ||
1814 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1815 | if eval \${$3+:} false; then : | ||
1816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1817 | $as_echo_n "checking for $2... " >&6; } | ||
1818 | if eval \${$3+:} false; then : | ||
1819 | $as_echo_n "(cached) " >&6 | ||
1820 | fi | ||
1821 | eval ac_res=\$$3 | ||
1822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1823 | $as_echo "$ac_res" >&6; } | ||
1824 | else | ||
1825 | # Is the header compilable? | ||
1826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||
1827 | $as_echo_n "checking $2 usability... " >&6; } | ||
1828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1829 | /* end confdefs.h. */ | ||
1830 | $4 | ||
1831 | #include <$2> | ||
1832 | _ACEOF | ||
1833 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1834 | ac_header_compiler=yes | ||
1835 | else | ||
1836 | ac_header_compiler=no | ||
1837 | fi | ||
1838 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||
1840 | $as_echo "$ac_header_compiler" >&6; } | ||
1841 | |||
1842 | # Is the header present? | ||
1843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||
1844 | $as_echo_n "checking $2 presence... " >&6; } | ||
1845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1846 | /* end confdefs.h. */ | ||
1847 | #include <$2> | ||
1848 | _ACEOF | ||
1849 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
1850 | ac_header_preproc=yes | ||
1851 | else | ||
1852 | ac_header_preproc=no | ||
1853 | fi | ||
1854 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
1855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | ||
1856 | $as_echo "$ac_header_preproc" >&6; } | ||
1857 | |||
1858 | # So? What about this header? | ||
1859 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||
1860 | yes:no: ) | ||
1861 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
1862 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
1863 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
1864 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
1865 | ;; | ||
1866 | no:yes:* ) | ||
1867 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | ||
1868 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||
1869 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | ||
1870 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | ||
1871 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | ||
1872 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||
1873 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | ||
1874 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | ||
1875 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
1876 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
1877 | ( $as_echo "## ------------------------------------------- ## | ||
1878 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
1879 | ## ------------------------------------------- ##" | ||
1880 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
1881 | ;; | ||
1882 | esac | ||
1883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1884 | $as_echo_n "checking for $2... " >&6; } | ||
1885 | if eval \${$3+:} false; then : | ||
1886 | $as_echo_n "(cached) " >&6 | ||
1887 | else | ||
1888 | eval "$3=\$ac_header_compiler" | ||
1889 | fi | ||
1890 | eval ac_res=\$$3 | ||
1891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1892 | $as_echo "$ac_res" >&6; } | ||
1893 | fi | ||
1894 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1895 | |||
1896 | } # ac_fn_c_check_header_mongrel | ||
1897 | |||
1898 | # ac_fn_c_check_func LINENO FUNC VAR | ||
1899 | # ---------------------------------- | ||
1900 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | ||
1901 | ac_fn_c_check_func () | ||
1902 | { | ||
1903 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1905 | $as_echo_n "checking for $2... " >&6; } | ||
1906 | if eval \${$3+:} false; then : | ||
1907 | $as_echo_n "(cached) " >&6 | ||
1908 | else | ||
1909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1910 | /* end confdefs.h. */ | ||
1911 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||
1912 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
1913 | #define $2 innocuous_$2 | ||
1914 | |||
1915 | /* System header to define __stub macros and hopefully few prototypes, | ||
1916 | which can conflict with char $2 (); below. | ||
1917 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
1918 | <limits.h> exists even on freestanding compilers. */ | ||
1919 | |||
1920 | #ifdef __STDC__ | ||
1921 | # include <limits.h> | ||
1922 | #else | ||
1923 | # include <assert.h> | ||
1924 | #endif | ||
1925 | |||
1926 | #undef $2 | ||
1927 | |||
1928 | /* Override any GCC internal prototype to avoid an error. | ||
1929 | Use char because int might match the return type of a GCC | ||
1930 | builtin and then its argument prototype would still apply. */ | ||
1931 | #ifdef __cplusplus | ||
1932 | extern "C" | ||
1933 | #endif | ||
1934 | char $2 (); | ||
1935 | /* The GNU C library defines this for functions which it implements | ||
1936 | to always fail with ENOSYS. Some functions are actually named | ||
1937 | something starting with __ and the normal name is an alias. */ | ||
1938 | #if defined __stub_$2 || defined __stub___$2 | ||
1939 | choke me | ||
1940 | #endif | ||
1941 | |||
1942 | int | ||
1943 | main () | ||
1944 | { | ||
1945 | return $2 (); | ||
1946 | ; | ||
1947 | return 0; | ||
1948 | } | ||
1949 | _ACEOF | ||
1950 | if ac_fn_c_try_link "$LINENO"; then : | ||
1951 | eval "$3=yes" | ||
1952 | else | ||
1953 | eval "$3=no" | ||
1954 | fi | ||
1955 | rm -f core conftest.err conftest.$ac_objext \ | ||
1956 | conftest$ac_exeext conftest.$ac_ext | ||
1957 | fi | ||
1958 | eval ac_res=\$$3 | ||
1959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1960 | $as_echo "$ac_res" >&6; } | ||
1961 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1962 | |||
1963 | } # ac_fn_c_check_func | ||
1964 | |||
1965 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | ||
1966 | # ------------------------------------------- | ||
1967 | # Tests whether TYPE exists after having included INCLUDES, setting cache | ||
1968 | # variable VAR accordingly. | ||
1969 | ac_fn_c_check_type () | ||
1970 | { | ||
1971 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1973 | $as_echo_n "checking for $2... " >&6; } | ||
1974 | if eval \${$3+:} false; then : | ||
1975 | $as_echo_n "(cached) " >&6 | ||
1976 | else | ||
1977 | eval "$3=no" | ||
1978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1979 | /* end confdefs.h. */ | ||
1980 | $4 | ||
1981 | int | ||
1982 | main () | ||
1983 | { | ||
1984 | if (sizeof ($2)) | ||
1985 | return 0; | ||
1986 | ; | ||
1987 | return 0; | ||
1988 | } | ||
1989 | _ACEOF | ||
1990 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1992 | /* end confdefs.h. */ | ||
1993 | $4 | ||
1994 | int | ||
1995 | main () | ||
1996 | { | ||
1997 | if (sizeof (($2))) | ||
1998 | return 0; | ||
1999 | ; | ||
2000 | return 0; | ||
2001 | } | ||
2002 | _ACEOF | ||
2003 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2004 | |||
2005 | else | ||
2006 | eval "$3=yes" | ||
2007 | fi | ||
2008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2009 | fi | ||
2010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2011 | fi | ||
2012 | eval ac_res=\$$3 | ||
2013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2014 | $as_echo "$ac_res" >&6; } | ||
2015 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
2016 | |||
2017 | } # ac_fn_c_check_type | ||
2018 | |||
2019 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | ||
2020 | # -------------------------------------------- | ||
2021 | # Tries to find the compile-time value of EXPR in a program that includes | ||
2022 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | ||
2023 | # computed | ||
2024 | ac_fn_c_compute_int () | ||
2025 | { | ||
2026 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2027 | if test "$cross_compiling" = yes; then | ||
2028 | # Depending upon the size, compute the lo and hi bounds. | ||
2029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2030 | /* end confdefs.h. */ | ||
2031 | $4 | ||
2032 | int | ||
2033 | main () | ||
2034 | { | ||
2035 | static int test_array [1 - 2 * !(($2) >= 0)]; | ||
2036 | test_array [0] = 0; | ||
2037 | return test_array [0]; | ||
2038 | |||
2039 | ; | ||
2040 | return 0; | ||
2041 | } | ||
2042 | _ACEOF | ||
2043 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2044 | ac_lo=0 ac_mid=0 | ||
2045 | while :; do | ||
2046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2047 | /* end confdefs.h. */ | ||
2048 | $4 | ||
2049 | int | ||
2050 | main () | ||
2051 | { | ||
2052 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
2053 | test_array [0] = 0; | ||
2054 | return test_array [0]; | ||
2055 | |||
2056 | ; | ||
2057 | return 0; | ||
2058 | } | ||
2059 | _ACEOF | ||
2060 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2061 | ac_hi=$ac_mid; break | ||
2062 | else | ||
2063 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | ||
2064 | if test $ac_lo -le $ac_mid; then | ||
2065 | ac_lo= ac_hi= | ||
2066 | break | ||
2067 | fi | ||
2068 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | ||
2069 | fi | ||
2070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2071 | done | ||
2072 | else | ||
2073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2074 | /* end confdefs.h. */ | ||
2075 | $4 | ||
2076 | int | ||
2077 | main () | ||
2078 | { | ||
2079 | static int test_array [1 - 2 * !(($2) < 0)]; | ||
2080 | test_array [0] = 0; | ||
2081 | return test_array [0]; | ||
2082 | |||
2083 | ; | ||
2084 | return 0; | ||
2085 | } | ||
2086 | _ACEOF | ||
2087 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2088 | ac_hi=-1 ac_mid=-1 | ||
2089 | while :; do | ||
2090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2091 | /* end confdefs.h. */ | ||
2092 | $4 | ||
2093 | int | ||
2094 | main () | ||
2095 | { | ||
2096 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | ||
2097 | test_array [0] = 0; | ||
2098 | return test_array [0]; | ||
2099 | |||
2100 | ; | ||
2101 | return 0; | ||
2102 | } | ||
2103 | _ACEOF | ||
2104 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2105 | ac_lo=$ac_mid; break | ||
2106 | else | ||
2107 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | ||
2108 | if test $ac_mid -le $ac_hi; then | ||
2109 | ac_lo= ac_hi= | ||
2110 | break | ||
2111 | fi | ||
2112 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | ||
2113 | fi | ||
2114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2115 | done | ||
2116 | else | ||
2117 | ac_lo= ac_hi= | ||
2118 | fi | ||
2119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2120 | fi | ||
2121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2122 | # Binary search between lo and hi bounds. | ||
2123 | while test "x$ac_lo" != "x$ac_hi"; do | ||
2124 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | ||
2125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2126 | /* end confdefs.h. */ | ||
2127 | $4 | ||
2128 | int | ||
2129 | main () | ||
2130 | { | ||
2131 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
2132 | test_array [0] = 0; | ||
2133 | return test_array [0]; | ||
2134 | |||
2135 | ; | ||
2136 | return 0; | ||
2137 | } | ||
2138 | _ACEOF | ||
2139 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2140 | ac_hi=$ac_mid | ||
2141 | else | ||
2142 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | ||
2143 | fi | ||
2144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2145 | done | ||
2146 | case $ac_lo in #(( | ||
2147 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | ||
2148 | '') ac_retval=1 ;; | ||
2149 | esac | ||
2150 | else | ||
2151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2152 | /* end confdefs.h. */ | ||
2153 | $4 | ||
2154 | static long int longval () { return $2; } | ||
2155 | static unsigned long int ulongval () { return $2; } | ||
2156 | #include <stdio.h> | ||
2157 | #include <stdlib.h> | ||
2158 | int | ||
2159 | main () | ||
2160 | { | ||
2161 | |||
2162 | FILE *f = fopen ("conftest.val", "w"); | ||
2163 | if (! f) | ||
2164 | return 1; | ||
2165 | if (($2) < 0) | ||
2166 | { | ||
2167 | long int i = longval (); | ||
2168 | if (i != ($2)) | ||
2169 | return 1; | ||
2170 | fprintf (f, "%ld", i); | ||
2171 | } | ||
2172 | else | ||
2173 | { | ||
2174 | unsigned long int i = ulongval (); | ||
2175 | if (i != ($2)) | ||
2176 | return 1; | ||
2177 | fprintf (f, "%lu", i); | ||
2178 | } | ||
2179 | /* Do not output a trailing newline, as this causes \r\n confusion | ||
2180 | on some platforms. */ | ||
2181 | return ferror (f) || fclose (f) != 0; | ||
2182 | |||
2183 | ; | ||
2184 | return 0; | ||
2185 | } | ||
2186 | _ACEOF | ||
2187 | if ac_fn_c_try_run "$LINENO"; then : | ||
2188 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | ||
2189 | else | ||
2190 | ac_retval=1 | ||
2191 | fi | ||
2192 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
2193 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
2194 | rm -f conftest.val | ||
2195 | |||
2196 | fi | ||
2197 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
2198 | as_fn_set_status $ac_retval | ||
2199 | |||
2200 | } # ac_fn_c_compute_int | ||
2201 | |||
2202 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | ||
2203 | # ---------------------------------------------------- | ||
2204 | # Tries to find if the field MEMBER exists in type AGGR, after including | ||
2205 | # INCLUDES, setting cache variable VAR accordingly. | ||
2206 | ac_fn_c_check_member () | ||
2207 | { | ||
2208 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | ||
2210 | $as_echo_n "checking for $2.$3... " >&6; } | ||
2211 | if eval \${$4+:} false; then : | ||
2212 | $as_echo_n "(cached) " >&6 | ||
2213 | else | ||
2214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2215 | /* end confdefs.h. */ | ||
2216 | $5 | ||
2217 | int | ||
2218 | main () | ||
2219 | { | ||
2220 | static $2 ac_aggr; | ||
2221 | if (ac_aggr.$3) | ||
2222 | return 0; | ||
2223 | ; | ||
2224 | return 0; | ||
2225 | } | ||
2226 | _ACEOF | ||
2227 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2228 | eval "$4=yes" | ||
2229 | else | ||
2230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2231 | /* end confdefs.h. */ | ||
2232 | $5 | ||
2233 | int | ||
2234 | main () | ||
2235 | { | ||
2236 | static $2 ac_aggr; | ||
2237 | if (sizeof ac_aggr.$3) | ||
2238 | return 0; | ||
2239 | ; | ||
2240 | return 0; | ||
2241 | } | ||
2242 | _ACEOF | ||
2243 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2244 | eval "$4=yes" | ||
2245 | else | ||
2246 | eval "$4=no" | ||
2247 | fi | ||
2248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2249 | fi | ||
2250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2251 | fi | ||
2252 | eval ac_res=\$$4 | ||
2253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2254 | $as_echo "$ac_res" >&6; } | ||
2255 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
2256 | |||
2257 | } # ac_fn_c_check_member | ||
2258 | cat >config.log <<_ACEOF | ||
2259 | This file contains any messages produced by compilers while | ||
2260 | running configure, to aid debugging if configure makes a mistake. | ||
2261 | |||
2262 | It was created by OpenSSH $as_me Portable, which was | ||
2263 | generated by GNU Autoconf 2.69. Invocation command line was | ||
2264 | |||
2265 | $ $0 $@ | ||
2266 | |||
2267 | _ACEOF | ||
2268 | exec 5>>config.log | ||
2269 | { | ||
2270 | cat <<_ASUNAME | ||
2271 | ## --------- ## | ||
2272 | ## Platform. ## | ||
2273 | ## --------- ## | ||
2274 | |||
2275 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
2276 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
2277 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
2278 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
2279 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
2280 | |||
2281 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
2282 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
2283 | |||
2284 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
2285 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
2286 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
2287 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
2288 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
2289 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
2290 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
2291 | |||
2292 | _ASUNAME | ||
2293 | |||
2294 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2295 | for as_dir in $PATH | ||
2296 | do | ||
2297 | IFS=$as_save_IFS | ||
2298 | test -z "$as_dir" && as_dir=. | ||
2299 | $as_echo "PATH: $as_dir" | ||
2300 | done | ||
2301 | IFS=$as_save_IFS | ||
2302 | |||
2303 | } >&5 | ||
2304 | |||
2305 | cat >&5 <<_ACEOF | ||
2306 | |||
2307 | |||
2308 | ## ----------- ## | ||
2309 | ## Core tests. ## | ||
2310 | ## ----------- ## | ||
2311 | |||
2312 | _ACEOF | ||
2313 | |||
2314 | |||
2315 | # Keep a trace of the command line. | ||
2316 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
2317 | # Strip out --silent because we don't want to record it for future runs. | ||
2318 | # Also quote any args containing shell meta-characters. | ||
2319 | # Make two passes to allow for proper duplicate-argument suppression. | ||
2320 | ac_configure_args= | ||
2321 | ac_configure_args0= | ||
2322 | ac_configure_args1= | ||
2323 | ac_must_keep_next=false | ||
2324 | for ac_pass in 1 2 | ||
2325 | do | ||
2326 | for ac_arg | ||
2327 | do | ||
2328 | case $ac_arg in | ||
2329 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
2330 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
2331 | | -silent | --silent | --silen | --sile | --sil) | ||
2332 | continue ;; | ||
2333 | *\'*) | ||
2334 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2335 | esac | ||
2336 | case $ac_pass in | ||
2337 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | ||
2338 | 2) | ||
2339 | as_fn_append ac_configure_args1 " '$ac_arg'" | ||
2340 | if test $ac_must_keep_next = true; then | ||
2341 | ac_must_keep_next=false # Got value, back to normal. | ||
2342 | else | ||
2343 | case $ac_arg in | ||
2344 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
2345 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
2346 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
2347 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
2348 | case "$ac_configure_args0 " in | ||
2349 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
2350 | esac | ||
2351 | ;; | ||
2352 | -* ) ac_must_keep_next=true ;; | ||
2353 | esac | ||
2354 | fi | ||
2355 | as_fn_append ac_configure_args " '$ac_arg'" | ||
2356 | ;; | ||
2357 | esac | ||
2358 | done | ||
2359 | done | ||
2360 | { ac_configure_args0=; unset ac_configure_args0;} | ||
2361 | { ac_configure_args1=; unset ac_configure_args1;} | ||
2362 | |||
2363 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
2364 | # config.log. We remove comments because anyway the quotes in there | ||
2365 | # would cause problems or look ugly. | ||
2366 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
2367 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
2368 | trap 'exit_status=$? | ||
2369 | # Save into config.log some information that might help in debugging. | ||
2370 | { | ||
2371 | echo | ||
2372 | |||
2373 | $as_echo "## ---------------- ## | ||
2374 | ## Cache variables. ## | ||
2375 | ## ---------------- ##" | ||
2376 | echo | ||
2377 | # The following way of writing the cache mishandles newlines in values, | ||
2378 | ( | ||
2379 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
2380 | eval ac_val=\$$ac_var | ||
2381 | case $ac_val in #( | ||
2382 | *${as_nl}*) | ||
2383 | case $ac_var in #( | ||
2384 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
2385 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
2386 | esac | ||
2387 | case $ac_var in #( | ||
2388 | _ | IFS | as_nl) ;; #( | ||
2389 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
2390 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
2391 | esac ;; | ||
2392 | esac | ||
2393 | done | ||
2394 | (set) 2>&1 | | ||
2395 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
2396 | *${as_nl}ac_space=\ *) | ||
2397 | sed -n \ | ||
2398 | "s/'\''/'\''\\\\'\'''\''/g; | ||
2399 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
2400 | ;; #( | ||
2401 | *) | ||
2402 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
2403 | ;; | ||
2404 | esac | | ||
2405 | sort | ||
2406 | ) | ||
2407 | echo | ||
2408 | |||
2409 | $as_echo "## ----------------- ## | ||
2410 | ## Output variables. ## | ||
2411 | ## ----------------- ##" | ||
2412 | echo | ||
2413 | for ac_var in $ac_subst_vars | ||
2414 | do | ||
2415 | eval ac_val=\$$ac_var | ||
2416 | case $ac_val in | ||
2417 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2418 | esac | ||
2419 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2420 | done | sort | ||
2421 | echo | ||
2422 | |||
2423 | if test -n "$ac_subst_files"; then | ||
2424 | $as_echo "## ------------------- ## | ||
2425 | ## File substitutions. ## | ||
2426 | ## ------------------- ##" | ||
2427 | echo | ||
2428 | for ac_var in $ac_subst_files | ||
2429 | do | ||
2430 | eval ac_val=\$$ac_var | ||
2431 | case $ac_val in | ||
2432 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2433 | esac | ||
2434 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2435 | done | sort | ||
2436 | echo | ||
2437 | fi | ||
2438 | |||
2439 | if test -s confdefs.h; then | ||
2440 | $as_echo "## ----------- ## | ||
2441 | ## confdefs.h. ## | ||
2442 | ## ----------- ##" | ||
2443 | echo | ||
2444 | cat confdefs.h | ||
2445 | echo | ||
2446 | fi | ||
2447 | test "$ac_signal" != 0 && | ||
2448 | $as_echo "$as_me: caught signal $ac_signal" | ||
2449 | $as_echo "$as_me: exit $exit_status" | ||
2450 | } >&5 | ||
2451 | rm -f core *.core core.conftest.* && | ||
2452 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
2453 | exit $exit_status | ||
2454 | ' 0 | ||
2455 | for ac_signal in 1 2 13 15; do | ||
2456 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | ||
2457 | done | ||
2458 | ac_signal=0 | ||
2459 | |||
2460 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
2461 | rm -f -r conftest* confdefs.h | ||
2462 | |||
2463 | $as_echo "/* confdefs.h */" > confdefs.h | ||
2464 | |||
2465 | # Predefined preprocessor variables. | ||
2466 | |||
2467 | cat >>confdefs.h <<_ACEOF | ||
2468 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
2469 | _ACEOF | ||
2470 | |||
2471 | cat >>confdefs.h <<_ACEOF | ||
2472 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
2473 | _ACEOF | ||
2474 | |||
2475 | cat >>confdefs.h <<_ACEOF | ||
2476 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
2477 | _ACEOF | ||
2478 | |||
2479 | cat >>confdefs.h <<_ACEOF | ||
2480 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
2481 | _ACEOF | ||
2482 | |||
2483 | cat >>confdefs.h <<_ACEOF | ||
2484 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
2485 | _ACEOF | ||
2486 | |||
2487 | cat >>confdefs.h <<_ACEOF | ||
2488 | #define PACKAGE_URL "$PACKAGE_URL" | ||
2489 | _ACEOF | ||
2490 | |||
2491 | |||
2492 | # Let the site file select an alternate cache file if it wants to. | ||
2493 | # Prefer an explicitly selected file to automatically selected ones. | ||
2494 | ac_site_file1=NONE | ||
2495 | ac_site_file2=NONE | ||
2496 | if test -n "$CONFIG_SITE"; then | ||
2497 | # We do not want a PATH search for config.site. | ||
2498 | case $CONFIG_SITE in #(( | ||
2499 | -*) ac_site_file1=./$CONFIG_SITE;; | ||
2500 | */*) ac_site_file1=$CONFIG_SITE;; | ||
2501 | *) ac_site_file1=./$CONFIG_SITE;; | ||
2502 | esac | ||
2503 | elif test "x$prefix" != xNONE; then | ||
2504 | ac_site_file1=$prefix/share/config.site | ||
2505 | ac_site_file2=$prefix/etc/config.site | ||
2506 | else | ||
2507 | ac_site_file1=$ac_default_prefix/share/config.site | ||
2508 | ac_site_file2=$ac_default_prefix/etc/config.site | ||
2509 | fi | ||
2510 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | ||
2511 | do | ||
2512 | test "x$ac_site_file" = xNONE && continue | ||
2513 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||
2514 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | ||
2515 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||
2516 | sed 's/^/| /' "$ac_site_file" >&5 | ||
2517 | . "$ac_site_file" \ | ||
2518 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2519 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2520 | as_fn_error $? "failed to load site script $ac_site_file | ||
2521 | See \`config.log' for more details" "$LINENO" 5; } | ||
2522 | fi | ||
2523 | done | ||
2524 | |||
2525 | if test -r "$cache_file"; then | ||
2526 | # Some versions of bash will fail to source /dev/null (special files | ||
2527 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | ||
2528 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | ||
2529 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | ||
2530 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||
2531 | case $cache_file in | ||
2532 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
2533 | *) . "./$cache_file";; | ||
2534 | esac | ||
2535 | fi | ||
2536 | else | ||
2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | ||
2538 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||
2539 | >$cache_file | ||
2540 | fi | ||
2541 | |||
2542 | # Check that the precious variables saved in the cache have kept the same | ||
2543 | # value. | ||
2544 | ac_cache_corrupted=false | ||
2545 | for ac_var in $ac_precious_vars; do | ||
2546 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
2547 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
2548 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
2549 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
2550 | case $ac_old_set,$ac_new_set in | ||
2551 | set,) | ||
2552 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
2553 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
2554 | ac_cache_corrupted=: ;; | ||
2555 | ,set) | ||
2556 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | ||
2557 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
2558 | ac_cache_corrupted=: ;; | ||
2559 | ,);; | ||
2560 | *) | ||
2561 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
2562 | # differences in whitespace do not lead to failure. | ||
2563 | ac_old_val_w=`echo x $ac_old_val` | ||
2564 | ac_new_val_w=`echo x $ac_new_val` | ||
2565 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||
2566 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | ||
2567 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
2568 | ac_cache_corrupted=: | ||
2569 | else | ||
2570 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | ||
2571 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||
2572 | eval $ac_var=\$ac_old_val | ||
2573 | fi | ||
2574 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | ||
2575 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||
2576 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | ||
2577 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||
2578 | fi;; | ||
2579 | esac | ||
2580 | # Pass precious variables to config.status. | ||
2581 | if test "$ac_new_set" = set; then | ||
2582 | case $ac_new_val in | ||
2583 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2584 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
2585 | esac | ||
2586 | case " $ac_configure_args " in | ||
2587 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
2588 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | ||
2589 | esac | ||
2590 | fi | ||
2591 | done | ||
2592 | if $ac_cache_corrupted; then | ||
2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2594 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2595 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | ||
2596 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
2597 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | ||
2598 | fi | ||
2599 | ## -------------------- ## | ||
2600 | ## Main body of script. ## | ||
2601 | ## -------------------- ## | ||
2602 | |||
2603 | ac_ext=c | ||
2604 | ac_cpp='$CPP $CPPFLAGS' | ||
2605 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2606 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2607 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2608 | |||
2609 | |||
2610 | |||
2611 | |||
2612 | ac_ext=c | ||
2613 | ac_cpp='$CPP $CPPFLAGS' | ||
2614 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2615 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2616 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2617 | |||
2618 | |||
2619 | ac_config_headers="$ac_config_headers config.h" | ||
2620 | |||
2621 | ac_ext=c | ||
2622 | ac_cpp='$CPP $CPPFLAGS' | ||
2623 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2624 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2625 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2626 | if test -n "$ac_tool_prefix"; then | ||
2627 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
2628 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2630 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2631 | if ${ac_cv_prog_CC+:} false; then : | ||
2632 | $as_echo_n "(cached) " >&6 | ||
2633 | else | ||
2634 | if test -n "$CC"; then | ||
2635 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2636 | else | ||
2637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2638 | for as_dir in $PATH | ||
2639 | do | ||
2640 | IFS=$as_save_IFS | ||
2641 | test -z "$as_dir" && as_dir=. | ||
2642 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2643 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2644 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
2645 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2646 | break 2 | ||
2647 | fi | ||
2648 | done | ||
2649 | done | ||
2650 | IFS=$as_save_IFS | ||
2651 | |||
2652 | fi | ||
2653 | fi | ||
2654 | CC=$ac_cv_prog_CC | ||
2655 | if test -n "$CC"; then | ||
2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2657 | $as_echo "$CC" >&6; } | ||
2658 | else | ||
2659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2660 | $as_echo "no" >&6; } | ||
2661 | fi | ||
2662 | |||
2663 | |||
2664 | fi | ||
2665 | if test -z "$ac_cv_prog_CC"; then | ||
2666 | ac_ct_CC=$CC | ||
2667 | # Extract the first word of "gcc", so it can be a program name with args. | ||
2668 | set dummy gcc; ac_word=$2 | ||
2669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2670 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2671 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | ||
2672 | $as_echo_n "(cached) " >&6 | ||
2673 | else | ||
2674 | if test -n "$ac_ct_CC"; then | ||
2675 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2676 | else | ||
2677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2678 | for as_dir in $PATH | ||
2679 | do | ||
2680 | IFS=$as_save_IFS | ||
2681 | test -z "$as_dir" && as_dir=. | ||
2682 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2683 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2684 | ac_cv_prog_ac_ct_CC="gcc" | ||
2685 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2686 | break 2 | ||
2687 | fi | ||
2688 | done | ||
2689 | done | ||
2690 | IFS=$as_save_IFS | ||
2691 | |||
2692 | fi | ||
2693 | fi | ||
2694 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2695 | if test -n "$ac_ct_CC"; then | ||
2696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
2697 | $as_echo "$ac_ct_CC" >&6; } | ||
2698 | else | ||
2699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2700 | $as_echo "no" >&6; } | ||
2701 | fi | ||
2702 | |||
2703 | if test "x$ac_ct_CC" = x; then | ||
2704 | CC="" | ||
2705 | else | ||
2706 | case $cross_compiling:$ac_tool_warned in | ||
2707 | yes:) | ||
2708 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
2709 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
2710 | ac_tool_warned=yes ;; | ||
2711 | esac | ||
2712 | CC=$ac_ct_CC | ||
2713 | fi | ||
2714 | else | ||
2715 | CC="$ac_cv_prog_CC" | ||
2716 | fi | ||
2717 | |||
2718 | if test -z "$CC"; then | ||
2719 | if test -n "$ac_tool_prefix"; then | ||
2720 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
2721 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
2722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2723 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2724 | if ${ac_cv_prog_CC+:} false; then : | ||
2725 | $as_echo_n "(cached) " >&6 | ||
2726 | else | ||
2727 | if test -n "$CC"; then | ||
2728 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2729 | else | ||
2730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2731 | for as_dir in $PATH | ||
2732 | do | ||
2733 | IFS=$as_save_IFS | ||
2734 | test -z "$as_dir" && as_dir=. | ||
2735 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2736 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2737 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
2738 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2739 | break 2 | ||
2740 | fi | ||
2741 | done | ||
2742 | done | ||
2743 | IFS=$as_save_IFS | ||
2744 | |||
2745 | fi | ||
2746 | fi | ||
2747 | CC=$ac_cv_prog_CC | ||
2748 | if test -n "$CC"; then | ||
2749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2750 | $as_echo "$CC" >&6; } | ||
2751 | else | ||
2752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2753 | $as_echo "no" >&6; } | ||
2754 | fi | ||
2755 | |||
2756 | |||
2757 | fi | ||
2758 | fi | ||
2759 | if test -z "$CC"; then | ||
2760 | # Extract the first word of "cc", so it can be a program name with args. | ||
2761 | set dummy cc; ac_word=$2 | ||
2762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2763 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2764 | if ${ac_cv_prog_CC+:} false; then : | ||
2765 | $as_echo_n "(cached) " >&6 | ||
2766 | else | ||
2767 | if test -n "$CC"; then | ||
2768 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2769 | else | ||
2770 | ac_prog_rejected=no | ||
2771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2772 | for as_dir in $PATH | ||
2773 | do | ||
2774 | IFS=$as_save_IFS | ||
2775 | test -z "$as_dir" && as_dir=. | ||
2776 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2777 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2778 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
2779 | ac_prog_rejected=yes | ||
2780 | continue | ||
2781 | fi | ||
2782 | ac_cv_prog_CC="cc" | ||
2783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2784 | break 2 | ||
2785 | fi | ||
2786 | done | ||
2787 | done | ||
2788 | IFS=$as_save_IFS | ||
2789 | |||
2790 | if test $ac_prog_rejected = yes; then | ||
2791 | # We found a bogon in the path, so make sure we never use it. | ||
2792 | set dummy $ac_cv_prog_CC | ||
2793 | shift | ||
2794 | if test $# != 0; then | ||
2795 | # We chose a different compiler from the bogus one. | ||
2796 | # However, it has the same basename, so the bogon will be chosen | ||
2797 | # first if we set CC to just the basename; use the full file name. | ||
2798 | shift | ||
2799 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
2800 | fi | ||
2801 | fi | ||
2802 | fi | ||
2803 | fi | ||
2804 | CC=$ac_cv_prog_CC | ||
2805 | if test -n "$CC"; then | ||
2806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2807 | $as_echo "$CC" >&6; } | ||
2808 | else | ||
2809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2810 | $as_echo "no" >&6; } | ||
2811 | fi | ||
2812 | |||
2813 | |||
2814 | fi | ||
2815 | if test -z "$CC"; then | ||
2816 | if test -n "$ac_tool_prefix"; then | ||
2817 | for ac_prog in cl.exe | ||
2818 | do | ||
2819 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
2820 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
2821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2822 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2823 | if ${ac_cv_prog_CC+:} false; then : | ||
2824 | $as_echo_n "(cached) " >&6 | ||
2825 | else | ||
2826 | if test -n "$CC"; then | ||
2827 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2828 | else | ||
2829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2830 | for as_dir in $PATH | ||
2831 | do | ||
2832 | IFS=$as_save_IFS | ||
2833 | test -z "$as_dir" && as_dir=. | ||
2834 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2835 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2836 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
2837 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2838 | break 2 | ||
2839 | fi | ||
2840 | done | ||
2841 | done | ||
2842 | IFS=$as_save_IFS | ||
2843 | |||
2844 | fi | ||
2845 | fi | ||
2846 | CC=$ac_cv_prog_CC | ||
2847 | if test -n "$CC"; then | ||
2848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2849 | $as_echo "$CC" >&6; } | ||
2850 | else | ||
2851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2852 | $as_echo "no" >&6; } | ||
2853 | fi | ||
2854 | |||
2855 | |||
2856 | test -n "$CC" && break | ||
2857 | done | ||
2858 | fi | ||
2859 | if test -z "$CC"; then | ||
2860 | ac_ct_CC=$CC | ||
2861 | for ac_prog in cl.exe | ||
2862 | do | ||
2863 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2864 | set dummy $ac_prog; ac_word=$2 | ||
2865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2866 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2867 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | ||
2868 | $as_echo_n "(cached) " >&6 | ||
2869 | else | ||
2870 | if test -n "$ac_ct_CC"; then | ||
2871 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2872 | else | ||
2873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2874 | for as_dir in $PATH | ||
2875 | do | ||
2876 | IFS=$as_save_IFS | ||
2877 | test -z "$as_dir" && as_dir=. | ||
2878 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2879 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2880 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
2881 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2882 | break 2 | ||
2883 | fi | ||
2884 | done | ||
2885 | done | ||
2886 | IFS=$as_save_IFS | ||
2887 | |||
2888 | fi | ||
2889 | fi | ||
2890 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2891 | if test -n "$ac_ct_CC"; then | ||
2892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
2893 | $as_echo "$ac_ct_CC" >&6; } | ||
2894 | else | ||
2895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2896 | $as_echo "no" >&6; } | ||
2897 | fi | ||
2898 | |||
2899 | |||
2900 | test -n "$ac_ct_CC" && break | ||
2901 | done | ||
2902 | |||
2903 | if test "x$ac_ct_CC" = x; then | ||
2904 | CC="" | ||
2905 | else | ||
2906 | case $cross_compiling:$ac_tool_warned in | ||
2907 | yes:) | ||
2908 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
2909 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
2910 | ac_tool_warned=yes ;; | ||
2911 | esac | ||
2912 | CC=$ac_ct_CC | ||
2913 | fi | ||
2914 | fi | ||
2915 | |||
2916 | fi | ||
2917 | |||
2918 | |||
2919 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2920 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2921 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
2922 | See \`config.log' for more details" "$LINENO" 5; } | ||
2923 | |||
2924 | # Provide some information about the compiler. | ||
2925 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
2926 | set X $ac_compile | ||
2927 | ac_compiler=$2 | ||
2928 | for ac_option in --version -v -V -qversion; do | ||
2929 | { { ac_try="$ac_compiler $ac_option >&5" | ||
2930 | case "(($ac_try" in | ||
2931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2932 | *) ac_try_echo=$ac_try;; | ||
2933 | esac | ||
2934 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2935 | $as_echo "$ac_try_echo"; } >&5 | ||
2936 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
2937 | ac_status=$? | ||
2938 | if test -s conftest.err; then | ||
2939 | sed '10a\ | ||
2940 | ... rest of stderr output deleted ... | ||
2941 | 10q' conftest.err >conftest.er1 | ||
2942 | cat conftest.er1 >&5 | ||
2943 | fi | ||
2944 | rm -f conftest.er1 conftest.err | ||
2945 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2946 | test $ac_status = 0; } | ||
2947 | done | ||
2948 | |||
2949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2950 | /* end confdefs.h. */ | ||
2951 | |||
2952 | int | ||
2953 | main () | ||
2954 | { | ||
2955 | |||
2956 | ; | ||
2957 | return 0; | ||
2958 | } | ||
2959 | _ACEOF | ||
2960 | ac_clean_files_save=$ac_clean_files | ||
2961 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | ||
2962 | # Try to create an executable without -o first, disregard a.out. | ||
2963 | # It will help us diagnose broken compilers, and finding out an intuition | ||
2964 | # of exeext. | ||
2965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | ||
2966 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||
2967 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
2968 | |||
2969 | # The possible output files: | ||
2970 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||
2971 | |||
2972 | ac_rmfiles= | ||
2973 | for ac_file in $ac_files | ||
2974 | do | ||
2975 | case $ac_file in | ||
2976 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
2977 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
2978 | esac | ||
2979 | done | ||
2980 | rm -f $ac_rmfiles | ||
2981 | |||
2982 | if { { ac_try="$ac_link_default" | ||
2983 | case "(($ac_try" in | ||
2984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2985 | *) ac_try_echo=$ac_try;; | ||
2986 | esac | ||
2987 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2988 | $as_echo "$ac_try_echo"; } >&5 | ||
2989 | (eval "$ac_link_default") 2>&5 | ||
2990 | ac_status=$? | ||
2991 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2992 | test $ac_status = 0; }; then : | ||
2993 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
2994 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
2995 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
2996 | # so that the user can short-circuit this test for compilers unknown to | ||
2997 | # Autoconf. | ||
2998 | for ac_file in $ac_files '' | ||
2999 | do | ||
3000 | test -f "$ac_file" || continue | ||
3001 | case $ac_file in | ||
3002 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | ||
3003 | ;; | ||
3004 | [ab].out ) | ||
3005 | # We found the default executable, but exeext='' is most | ||
3006 | # certainly right. | ||
3007 | break;; | ||
3008 | *.* ) | ||
3009 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
3010 | then :; else | ||
3011 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
3012 | fi | ||
3013 | # We set ac_cv_exeext here because the later test for it is not | ||
3014 | # safe: cross compilers may not add the suffix if given an `-o' | ||
3015 | # argument, so we may need to know it at that point already. | ||
3016 | # Even if this section looks crufty: it has the advantage of | ||
3017 | # actually working. | ||
3018 | break;; | ||
3019 | * ) | ||
3020 | break;; | ||
3021 | esac | ||
3022 | done | ||
3023 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
3024 | |||
3025 | else | ||
3026 | ac_file='' | ||
3027 | fi | ||
3028 | if test -z "$ac_file"; then : | ||
3029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3030 | $as_echo "no" >&6; } | ||
3031 | $as_echo "$as_me: failed program was:" >&5 | ||
3032 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3033 | |||
3034 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3035 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3036 | as_fn_error 77 "C compiler cannot create executables | ||
3037 | See \`config.log' for more details" "$LINENO" 5; } | ||
3038 | else | ||
3039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
3040 | $as_echo "yes" >&6; } | ||
3041 | fi | ||
3042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | ||
3043 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||
3044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||
3045 | $as_echo "$ac_file" >&6; } | ||
3046 | ac_exeext=$ac_cv_exeext | ||
3047 | |||
3048 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | ||
3049 | ac_clean_files=$ac_clean_files_save | ||
3050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | ||
3051 | $as_echo_n "checking for suffix of executables... " >&6; } | ||
3052 | if { { ac_try="$ac_link" | ||
3053 | case "(($ac_try" in | ||
3054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3055 | *) ac_try_echo=$ac_try;; | ||
3056 | esac | ||
3057 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3058 | $as_echo "$ac_try_echo"; } >&5 | ||
3059 | (eval "$ac_link") 2>&5 | ||
3060 | ac_status=$? | ||
3061 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3062 | test $ac_status = 0; }; then : | ||
3063 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
3064 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
3065 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
3066 | # `rm'. | ||
3067 | for ac_file in conftest.exe conftest conftest.*; do | ||
3068 | test -f "$ac_file" || continue | ||
3069 | case $ac_file in | ||
3070 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
3071 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
3072 | break;; | ||
3073 | * ) break;; | ||
3074 | esac | ||
3075 | done | ||
3076 | else | ||
3077 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3078 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3079 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | ||
3080 | See \`config.log' for more details" "$LINENO" 5; } | ||
3081 | fi | ||
3082 | rm -f conftest conftest$ac_cv_exeext | ||
3083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | ||
3084 | $as_echo "$ac_cv_exeext" >&6; } | ||
3085 | |||
3086 | rm -f conftest.$ac_ext | ||
3087 | EXEEXT=$ac_cv_exeext | ||
3088 | ac_exeext=$EXEEXT | ||
3089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3090 | /* end confdefs.h. */ | ||
3091 | #include <stdio.h> | ||
3092 | int | ||
3093 | main () | ||
3094 | { | ||
3095 | FILE *f = fopen ("conftest.out", "w"); | ||
3096 | return ferror (f) || fclose (f) != 0; | ||
3097 | |||
3098 | ; | ||
3099 | return 0; | ||
3100 | } | ||
3101 | _ACEOF | ||
3102 | ac_clean_files="$ac_clean_files conftest.out" | ||
3103 | # Check that the compiler produces executables we can run. If not, either | ||
3104 | # the compiler is broken, or we cross compile. | ||
3105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | ||
3106 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||
3107 | if test "$cross_compiling" != yes; then | ||
3108 | { { ac_try="$ac_link" | ||
3109 | case "(($ac_try" in | ||
3110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3111 | *) ac_try_echo=$ac_try;; | ||
3112 | esac | ||
3113 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3114 | $as_echo "$ac_try_echo"; } >&5 | ||
3115 | (eval "$ac_link") 2>&5 | ||
3116 | ac_status=$? | ||
3117 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3118 | test $ac_status = 0; } | ||
3119 | if { ac_try='./conftest$ac_cv_exeext' | ||
3120 | { { case "(($ac_try" in | ||
3121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3122 | *) ac_try_echo=$ac_try;; | ||
3123 | esac | ||
3124 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3125 | $as_echo "$ac_try_echo"; } >&5 | ||
3126 | (eval "$ac_try") 2>&5 | ||
3127 | ac_status=$? | ||
3128 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3129 | test $ac_status = 0; }; }; then | ||
3130 | cross_compiling=no | ||
3131 | else | ||
3132 | if test "$cross_compiling" = maybe; then | ||
3133 | cross_compiling=yes | ||
3134 | else | ||
3135 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3136 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3137 | as_fn_error $? "cannot run C compiled programs. | ||
3138 | If you meant to cross compile, use \`--host'. | ||
3139 | See \`config.log' for more details" "$LINENO" 5; } | ||
3140 | fi | ||
3141 | fi | ||
3142 | fi | ||
3143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | ||
3144 | $as_echo "$cross_compiling" >&6; } | ||
3145 | |||
3146 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||
3147 | ac_clean_files=$ac_clean_files_save | ||
3148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | ||
3149 | $as_echo_n "checking for suffix of object files... " >&6; } | ||
3150 | if ${ac_cv_objext+:} false; then : | ||
3151 | $as_echo_n "(cached) " >&6 | ||
3152 | else | ||
3153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3154 | /* end confdefs.h. */ | ||
3155 | |||
3156 | int | ||
3157 | main () | ||
3158 | { | ||
3159 | |||
3160 | ; | ||
3161 | return 0; | ||
3162 | } | ||
3163 | _ACEOF | ||
3164 | rm -f conftest.o conftest.obj | ||
3165 | if { { ac_try="$ac_compile" | ||
3166 | case "(($ac_try" in | ||
3167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3168 | *) ac_try_echo=$ac_try;; | ||
3169 | esac | ||
3170 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3171 | $as_echo "$ac_try_echo"; } >&5 | ||
3172 | (eval "$ac_compile") 2>&5 | ||
3173 | ac_status=$? | ||
3174 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3175 | test $ac_status = 0; }; then : | ||
3176 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
3177 | test -f "$ac_file" || continue; | ||
3178 | case $ac_file in | ||
3179 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | ||
3180 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
3181 | break;; | ||
3182 | esac | ||
3183 | done | ||
3184 | else | ||
3185 | $as_echo "$as_me: failed program was:" >&5 | ||
3186 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3187 | |||
3188 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3189 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3190 | as_fn_error $? "cannot compute suffix of object files: cannot compile | ||
3191 | See \`config.log' for more details" "$LINENO" 5; } | ||
3192 | fi | ||
3193 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
3194 | fi | ||
3195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | ||
3196 | $as_echo "$ac_cv_objext" >&6; } | ||
3197 | OBJEXT=$ac_cv_objext | ||
3198 | ac_objext=$OBJEXT | ||
3199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
3200 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
3201 | if ${ac_cv_c_compiler_gnu+:} false; then : | ||
3202 | $as_echo_n "(cached) " >&6 | ||
3203 | else | ||
3204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3205 | /* end confdefs.h. */ | ||
3206 | |||
3207 | int | ||
3208 | main () | ||
3209 | { | ||
3210 | #ifndef __GNUC__ | ||
3211 | choke me | ||
3212 | #endif | ||
3213 | |||
3214 | ; | ||
3215 | return 0; | ||
3216 | } | ||
3217 | _ACEOF | ||
3218 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3219 | ac_compiler_gnu=yes | ||
3220 | else | ||
3221 | ac_compiler_gnu=no | ||
3222 | fi | ||
3223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3224 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
3225 | |||
3226 | fi | ||
3227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
3228 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
3229 | if test $ac_compiler_gnu = yes; then | ||
3230 | GCC=yes | ||
3231 | else | ||
3232 | GCC= | ||
3233 | fi | ||
3234 | ac_test_CFLAGS=${CFLAGS+set} | ||
3235 | ac_save_CFLAGS=$CFLAGS | ||
3236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
3237 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
3238 | if ${ac_cv_prog_cc_g+:} false; then : | ||
3239 | $as_echo_n "(cached) " >&6 | ||
3240 | else | ||
3241 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
3242 | ac_c_werror_flag=yes | ||
3243 | ac_cv_prog_cc_g=no | ||
3244 | CFLAGS="-g" | ||
3245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3246 | /* end confdefs.h. */ | ||
3247 | |||
3248 | int | ||
3249 | main () | ||
3250 | { | ||
3251 | |||
3252 | ; | ||
3253 | return 0; | ||
3254 | } | ||
3255 | _ACEOF | ||
3256 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3257 | ac_cv_prog_cc_g=yes | ||
3258 | else | ||
3259 | CFLAGS="" | ||
3260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3261 | /* end confdefs.h. */ | ||
3262 | |||
3263 | int | ||
3264 | main () | ||
3265 | { | ||
3266 | |||
3267 | ; | ||
3268 | return 0; | ||
3269 | } | ||
3270 | _ACEOF | ||
3271 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3272 | |||
3273 | else | ||
3274 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
3275 | CFLAGS="-g" | ||
3276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3277 | /* end confdefs.h. */ | ||
3278 | |||
3279 | int | ||
3280 | main () | ||
3281 | { | ||
3282 | |||
3283 | ; | ||
3284 | return 0; | ||
3285 | } | ||
3286 | _ACEOF | ||
3287 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3288 | ac_cv_prog_cc_g=yes | ||
3289 | fi | ||
3290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3291 | fi | ||
3292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3293 | fi | ||
3294 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3295 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
3296 | fi | ||
3297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
3298 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
3299 | if test "$ac_test_CFLAGS" = set; then | ||
3300 | CFLAGS=$ac_save_CFLAGS | ||
3301 | elif test $ac_cv_prog_cc_g = yes; then | ||
3302 | if test "$GCC" = yes; then | ||
3303 | CFLAGS="-g -O2" | ||
3304 | else | ||
3305 | CFLAGS="-g" | ||
3306 | fi | ||
3307 | else | ||
3308 | if test "$GCC" = yes; then | ||
3309 | CFLAGS="-O2" | ||
3310 | else | ||
3311 | CFLAGS= | ||
3312 | fi | ||
3313 | fi | ||
3314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
3315 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
3316 | if ${ac_cv_prog_cc_c89+:} false; then : | ||
3317 | $as_echo_n "(cached) " >&6 | ||
3318 | else | ||
3319 | ac_cv_prog_cc_c89=no | ||
3320 | ac_save_CC=$CC | ||
3321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3322 | /* end confdefs.h. */ | ||
3323 | #include <stdarg.h> | ||
3324 | #include <stdio.h> | ||
3325 | struct stat; | ||
3326 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
3327 | struct buf { int x; }; | ||
3328 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
3329 | static char *e (p, i) | ||
3330 | char **p; | ||
3331 | int i; | ||
3332 | { | ||
3333 | return p[i]; | ||
3334 | } | ||
3335 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
3336 | { | ||
3337 | char *s; | ||
3338 | va_list v; | ||
3339 | va_start (v,p); | ||
3340 | s = g (p, va_arg (v,int)); | ||
3341 | va_end (v); | ||
3342 | return s; | ||
3343 | } | ||
3344 | |||
3345 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
3346 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
3347 | These don't provoke an error unfortunately, instead are silently treated | ||
3348 | as 'x'. The following induces an error, until -std is added to get | ||
3349 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
3350 | array size at least. It's necessary to write '\x00'==0 to get something | ||
3351 | that's true only with -std. */ | ||
3352 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
3353 | |||
3354 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
3355 | inside strings and character constants. */ | ||
3356 | #define FOO(x) 'x' | ||
3357 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
3358 | |||
3359 | int test (int i, double x); | ||
3360 | struct s1 {int (*f) (int a);}; | ||
3361 | struct s2 {int (*f) (double a);}; | ||
3362 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
3363 | int argc; | ||
3364 | char **argv; | ||
3365 | int | ||
3366 | main () | ||
3367 | { | ||
3368 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
3369 | ; | ||
3370 | return 0; | ||
3371 | } | ||
3372 | _ACEOF | ||
3373 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
3374 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
3375 | do | ||
3376 | CC="$ac_save_CC $ac_arg" | ||
3377 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3378 | ac_cv_prog_cc_c89=$ac_arg | ||
3379 | fi | ||
3380 | rm -f core conftest.err conftest.$ac_objext | ||
3381 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
3382 | done | ||
3383 | rm -f conftest.$ac_ext | ||
3384 | CC=$ac_save_CC | ||
3385 | |||
3386 | fi | ||
3387 | # AC_CACHE_VAL | ||
3388 | case "x$ac_cv_prog_cc_c89" in | ||
3389 | x) | ||
3390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
3391 | $as_echo "none needed" >&6; } ;; | ||
3392 | xno) | ||
3393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
3394 | $as_echo "unsupported" >&6; } ;; | ||
3395 | *) | ||
3396 | CC="$CC $ac_cv_prog_cc_c89" | ||
3397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
3398 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
3399 | esac | ||
3400 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
3401 | |||
3402 | fi | ||
3403 | |||
3404 | ac_ext=c | ||
3405 | ac_cpp='$CPP $CPPFLAGS' | ||
3406 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3407 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3408 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3409 | |||
3410 | ac_aux_dir= | ||
3411 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
3412 | if test -f "$ac_dir/install-sh"; then | ||
3413 | ac_aux_dir=$ac_dir | ||
3414 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
3415 | break | ||
3416 | elif test -f "$ac_dir/install.sh"; then | ||
3417 | ac_aux_dir=$ac_dir | ||
3418 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
3419 | break | ||
3420 | elif test -f "$ac_dir/shtool"; then | ||
3421 | ac_aux_dir=$ac_dir | ||
3422 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
3423 | break | ||
3424 | fi | ||
3425 | done | ||
3426 | if test -z "$ac_aux_dir"; then | ||
3427 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | ||
3428 | fi | ||
3429 | |||
3430 | # These three variables are undocumented and unsupported, | ||
3431 | # and are intended to be withdrawn in a future Autoconf release. | ||
3432 | # They can cause serious problems if a builder's source tree is in a directory | ||
3433 | # whose full name contains unusual characters. | ||
3434 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
3435 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
3436 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
3437 | |||
3438 | |||
3439 | # Make sure we can run config.sub. | ||
3440 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
3441 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | ||
3442 | |||
3443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | ||
3444 | $as_echo_n "checking build system type... " >&6; } | ||
3445 | if ${ac_cv_build+:} false; then : | ||
3446 | $as_echo_n "(cached) " >&6 | ||
3447 | else | ||
3448 | ac_build_alias=$build_alias | ||
3449 | test "x$ac_build_alias" = x && | ||
3450 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
3451 | test "x$ac_build_alias" = x && | ||
3452 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | ||
3453 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
3454 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | ||
3455 | |||
3456 | fi | ||
3457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | ||
3458 | $as_echo "$ac_cv_build" >&6; } | ||
3459 | case $ac_cv_build in | ||
3460 | *-*-*) ;; | ||
3461 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | ||
3462 | esac | ||
3463 | build=$ac_cv_build | ||
3464 | ac_save_IFS=$IFS; IFS='-' | ||
3465 | set x $ac_cv_build | ||
3466 | shift | ||
3467 | build_cpu=$1 | ||
3468 | build_vendor=$2 | ||
3469 | shift; shift | ||
3470 | # Remember, the first character of IFS is used to create $*, | ||
3471 | # except with old shells: | ||
3472 | build_os=$* | ||
3473 | IFS=$ac_save_IFS | ||
3474 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
3475 | |||
3476 | |||
3477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | ||
3478 | $as_echo_n "checking host system type... " >&6; } | ||
3479 | if ${ac_cv_host+:} false; then : | ||
3480 | $as_echo_n "(cached) " >&6 | ||
3481 | else | ||
3482 | if test "x$host_alias" = x; then | ||
3483 | ac_cv_host=$ac_cv_build | ||
3484 | else | ||
3485 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
3486 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | ||
3487 | fi | ||
3488 | |||
3489 | fi | ||
3490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | ||
3491 | $as_echo "$ac_cv_host" >&6; } | ||
3492 | case $ac_cv_host in | ||
3493 | *-*-*) ;; | ||
3494 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | ||
3495 | esac | ||
3496 | host=$ac_cv_host | ||
3497 | ac_save_IFS=$IFS; IFS='-' | ||
3498 | set x $ac_cv_host | ||
3499 | shift | ||
3500 | host_cpu=$1 | ||
3501 | host_vendor=$2 | ||
3502 | shift; shift | ||
3503 | # Remember, the first character of IFS is used to create $*, | ||
3504 | # except with old shells: | ||
3505 | host_os=$* | ||
3506 | IFS=$ac_save_IFS | ||
3507 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
3508 | |||
3509 | |||
3510 | |||
3511 | ac_ext=c | ||
3512 | ac_cpp='$CPP $CPPFLAGS' | ||
3513 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3514 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3515 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
3517 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
3518 | # On Suns, sometimes $CPP names a directory. | ||
3519 | if test -n "$CPP" && test -d "$CPP"; then | ||
3520 | CPP= | ||
3521 | fi | ||
3522 | if test -z "$CPP"; then | ||
3523 | if ${ac_cv_prog_CPP+:} false; then : | ||
3524 | $as_echo_n "(cached) " >&6 | ||
3525 | else | ||
3526 | # Double quotes because CPP needs to be expanded | ||
3527 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
3528 | do | ||
3529 | ac_preproc_ok=false | ||
3530 | for ac_c_preproc_warn_flag in '' yes | ||
3531 | do | ||
3532 | # Use a header file that comes with gcc, so configuring glibc | ||
3533 | # with a fresh cross-compiler works. | ||
3534 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3535 | # <limits.h> exists even on freestanding compilers. | ||
3536 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3537 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3539 | /* end confdefs.h. */ | ||
3540 | #ifdef __STDC__ | ||
3541 | # include <limits.h> | ||
3542 | #else | ||
3543 | # include <assert.h> | ||
3544 | #endif | ||
3545 | Syntax error | ||
3546 | _ACEOF | ||
3547 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3548 | |||
3549 | else | ||
3550 | # Broken: fails on valid input. | ||
3551 | continue | ||
3552 | fi | ||
3553 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3554 | |||
3555 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3556 | # can be detected and how. | ||
3557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3558 | /* end confdefs.h. */ | ||
3559 | #include <ac_nonexistent.h> | ||
3560 | _ACEOF | ||
3561 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3562 | # Broken: success on invalid input. | ||
3563 | continue | ||
3564 | else | ||
3565 | # Passes both tests. | ||
3566 | ac_preproc_ok=: | ||
3567 | break | ||
3568 | fi | ||
3569 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3570 | |||
3571 | done | ||
3572 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3573 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
3574 | if $ac_preproc_ok; then : | ||
3575 | break | ||
3576 | fi | ||
3577 | |||
3578 | done | ||
3579 | ac_cv_prog_CPP=$CPP | ||
3580 | |||
3581 | fi | ||
3582 | CPP=$ac_cv_prog_CPP | ||
3583 | else | ||
3584 | ac_cv_prog_CPP=$CPP | ||
3585 | fi | ||
3586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
3587 | $as_echo "$CPP" >&6; } | ||
3588 | ac_preproc_ok=false | ||
3589 | for ac_c_preproc_warn_flag in '' yes | ||
3590 | do | ||
3591 | # Use a header file that comes with gcc, so configuring glibc | ||
3592 | # with a fresh cross-compiler works. | ||
3593 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3594 | # <limits.h> exists even on freestanding compilers. | ||
3595 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3596 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3598 | /* end confdefs.h. */ | ||
3599 | #ifdef __STDC__ | ||
3600 | # include <limits.h> | ||
3601 | #else | ||
3602 | # include <assert.h> | ||
3603 | #endif | ||
3604 | Syntax error | ||
3605 | _ACEOF | ||
3606 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3607 | |||
3608 | else | ||
3609 | # Broken: fails on valid input. | ||
3610 | continue | ||
3611 | fi | ||
3612 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3613 | |||
3614 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3615 | # can be detected and how. | ||
3616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3617 | /* end confdefs.h. */ | ||
3618 | #include <ac_nonexistent.h> | ||
3619 | _ACEOF | ||
3620 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3621 | # Broken: success on invalid input. | ||
3622 | continue | ||
3623 | else | ||
3624 | # Passes both tests. | ||
3625 | ac_preproc_ok=: | ||
3626 | break | ||
3627 | fi | ||
3628 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3629 | |||
3630 | done | ||
3631 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3632 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
3633 | if $ac_preproc_ok; then : | ||
3634 | |||
3635 | else | ||
3636 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3637 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3638 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||
3639 | See \`config.log' for more details" "$LINENO" 5; } | ||
3640 | fi | ||
3641 | |||
3642 | ac_ext=c | ||
3643 | ac_cpp='$CPP $CPPFLAGS' | ||
3644 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3645 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3646 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3647 | |||
3648 | |||
3649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | ||
3650 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||
3651 | if ${ac_cv_path_GREP+:} false; then : | ||
3652 | $as_echo_n "(cached) " >&6 | ||
3653 | else | ||
3654 | if test -z "$GREP"; then | ||
3655 | ac_path_GREP_found=false | ||
3656 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3658 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3659 | do | ||
3660 | IFS=$as_save_IFS | ||
3661 | test -z "$as_dir" && as_dir=. | ||
3662 | for ac_prog in grep ggrep; do | ||
3663 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3664 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3665 | as_fn_executable_p "$ac_path_GREP" || continue | ||
3666 | # Check for GNU ac_path_GREP and select it if it is found. | ||
3667 | # Check for GNU $ac_path_GREP | ||
3668 | case `"$ac_path_GREP" --version 2>&1` in | ||
3669 | *GNU*) | ||
3670 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
3671 | *) | ||
3672 | ac_count=0 | ||
3673 | $as_echo_n 0123456789 >"conftest.in" | ||
3674 | while : | ||
3675 | do | ||
3676 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3677 | mv "conftest.tmp" "conftest.in" | ||
3678 | cp "conftest.in" "conftest.nl" | ||
3679 | $as_echo 'GREP' >> "conftest.nl" | ||
3680 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3681 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3682 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
3683 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
3684 | # Best one so far, save it but keep looking for a better one | ||
3685 | ac_cv_path_GREP="$ac_path_GREP" | ||
3686 | ac_path_GREP_max=$ac_count | ||
3687 | fi | ||
3688 | # 10*(2^10) chars as input seems more than enough | ||
3689 | test $ac_count -gt 10 && break | ||
3690 | done | ||
3691 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3692 | esac | ||
3693 | |||
3694 | $ac_path_GREP_found && break 3 | ||
3695 | done | ||
3696 | done | ||
3697 | done | ||
3698 | IFS=$as_save_IFS | ||
3699 | if test -z "$ac_cv_path_GREP"; then | ||
3700 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
3701 | fi | ||
3702 | else | ||
3703 | ac_cv_path_GREP=$GREP | ||
3704 | fi | ||
3705 | |||
3706 | fi | ||
3707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | ||
3708 | $as_echo "$ac_cv_path_GREP" >&6; } | ||
3709 | GREP="$ac_cv_path_GREP" | ||
3710 | |||
3711 | |||
3712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
3713 | $as_echo_n "checking for egrep... " >&6; } | ||
3714 | if ${ac_cv_path_EGREP+:} false; then : | ||
3715 | $as_echo_n "(cached) " >&6 | ||
3716 | else | ||
3717 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
3718 | then ac_cv_path_EGREP="$GREP -E" | ||
3719 | else | ||
3720 | if test -z "$EGREP"; then | ||
3721 | ac_path_EGREP_found=false | ||
3722 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3724 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3725 | do | ||
3726 | IFS=$as_save_IFS | ||
3727 | test -z "$as_dir" && as_dir=. | ||
3728 | for ac_prog in egrep; do | ||
3729 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3730 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3731 | as_fn_executable_p "$ac_path_EGREP" || continue | ||
3732 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
3733 | # Check for GNU $ac_path_EGREP | ||
3734 | case `"$ac_path_EGREP" --version 2>&1` in | ||
3735 | *GNU*) | ||
3736 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
3737 | *) | ||
3738 | ac_count=0 | ||
3739 | $as_echo_n 0123456789 >"conftest.in" | ||
3740 | while : | ||
3741 | do | ||
3742 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3743 | mv "conftest.tmp" "conftest.in" | ||
3744 | cp "conftest.in" "conftest.nl" | ||
3745 | $as_echo 'EGREP' >> "conftest.nl" | ||
3746 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3747 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3748 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
3749 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
3750 | # Best one so far, save it but keep looking for a better one | ||
3751 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
3752 | ac_path_EGREP_max=$ac_count | ||
3753 | fi | ||
3754 | # 10*(2^10) chars as input seems more than enough | ||
3755 | test $ac_count -gt 10 && break | ||
3756 | done | ||
3757 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3758 | esac | ||
3759 | |||
3760 | $ac_path_EGREP_found && break 3 | ||
3761 | done | ||
3762 | done | ||
3763 | done | ||
3764 | IFS=$as_save_IFS | ||
3765 | if test -z "$ac_cv_path_EGREP"; then | ||
3766 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
3767 | fi | ||
3768 | else | ||
3769 | ac_cv_path_EGREP=$EGREP | ||
3770 | fi | ||
3771 | |||
3772 | fi | ||
3773 | fi | ||
3774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
3775 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
3776 | EGREP="$ac_cv_path_EGREP" | ||
3777 | |||
3778 | |||
3779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
3780 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
3781 | if ${ac_cv_header_stdc+:} false; then : | ||
3782 | $as_echo_n "(cached) " >&6 | ||
3783 | else | ||
3784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3785 | /* end confdefs.h. */ | ||
3786 | #include <stdlib.h> | ||
3787 | #include <stdarg.h> | ||
3788 | #include <string.h> | ||
3789 | #include <float.h> | ||
3790 | |||
3791 | int | ||
3792 | main () | ||
3793 | { | ||
3794 | |||
3795 | ; | ||
3796 | return 0; | ||
3797 | } | ||
3798 | _ACEOF | ||
3799 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3800 | ac_cv_header_stdc=yes | ||
3801 | else | ||
3802 | ac_cv_header_stdc=no | ||
3803 | fi | ||
3804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3805 | |||
3806 | if test $ac_cv_header_stdc = yes; then | ||
3807 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
3808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3809 | /* end confdefs.h. */ | ||
3810 | #include <string.h> | ||
3811 | |||
3812 | _ACEOF | ||
3813 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3814 | $EGREP "memchr" >/dev/null 2>&1; then : | ||
3815 | |||
3816 | else | ||
3817 | ac_cv_header_stdc=no | ||
3818 | fi | ||
3819 | rm -f conftest* | ||
3820 | |||
3821 | fi | ||
3822 | |||
3823 | if test $ac_cv_header_stdc = yes; then | ||
3824 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
3825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3826 | /* end confdefs.h. */ | ||
3827 | #include <stdlib.h> | ||
3828 | |||
3829 | _ACEOF | ||
3830 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3831 | $EGREP "free" >/dev/null 2>&1; then : | ||
3832 | |||
3833 | else | ||
3834 | ac_cv_header_stdc=no | ||
3835 | fi | ||
3836 | rm -f conftest* | ||
3837 | |||
3838 | fi | ||
3839 | |||
3840 | if test $ac_cv_header_stdc = yes; then | ||
3841 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
3842 | if test "$cross_compiling" = yes; then : | ||
3843 | : | ||
3844 | else | ||
3845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3846 | /* end confdefs.h. */ | ||
3847 | #include <ctype.h> | ||
3848 | #include <stdlib.h> | ||
3849 | #if ((' ' & 0x0FF) == 0x020) | ||
3850 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
3851 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
3852 | #else | ||
3853 | # define ISLOWER(c) \ | ||
3854 | (('a' <= (c) && (c) <= 'i') \ | ||
3855 | || ('j' <= (c) && (c) <= 'r') \ | ||
3856 | || ('s' <= (c) && (c) <= 'z')) | ||
3857 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
3858 | #endif | ||
3859 | |||
3860 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
3861 | int | ||
3862 | main () | ||
3863 | { | ||
3864 | int i; | ||
3865 | for (i = 0; i < 256; i++) | ||
3866 | if (XOR (islower (i), ISLOWER (i)) | ||
3867 | || toupper (i) != TOUPPER (i)) | ||
3868 | return 2; | ||
3869 | return 0; | ||
3870 | } | ||
3871 | _ACEOF | ||
3872 | if ac_fn_c_try_run "$LINENO"; then : | ||
3873 | |||
3874 | else | ||
3875 | ac_cv_header_stdc=no | ||
3876 | fi | ||
3877 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
3878 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
3879 | fi | ||
3880 | |||
3881 | fi | ||
3882 | fi | ||
3883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
3884 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
3885 | if test $ac_cv_header_stdc = yes; then | ||
3886 | |||
3887 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
3888 | |||
3889 | fi | ||
3890 | |||
3891 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
3892 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
3893 | inttypes.h stdint.h unistd.h | ||
3894 | do : | ||
3895 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
3896 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||
3897 | " | ||
3898 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
3899 | cat >>confdefs.h <<_ACEOF | ||
3900 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
3901 | _ACEOF | ||
3902 | |||
3903 | fi | ||
3904 | |||
3905 | done | ||
3906 | |||
3907 | |||
3908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | ||
3909 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | ||
3910 | if ${ac_cv_c_bigendian+:} false; then : | ||
3911 | $as_echo_n "(cached) " >&6 | ||
3912 | else | ||
3913 | ac_cv_c_bigendian=unknown | ||
3914 | # See if we're dealing with a universal compiler. | ||
3915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3916 | /* end confdefs.h. */ | ||
3917 | #ifndef __APPLE_CC__ | ||
3918 | not a universal capable compiler | ||
3919 | #endif | ||
3920 | typedef int dummy; | ||
3921 | |||
3922 | _ACEOF | ||
3923 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3924 | |||
3925 | # Check for potential -arch flags. It is not universal unless | ||
3926 | # there are at least two -arch flags with different values. | ||
3927 | ac_arch= | ||
3928 | ac_prev= | ||
3929 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | ||
3930 | if test -n "$ac_prev"; then | ||
3931 | case $ac_word in | ||
3932 | i?86 | x86_64 | ppc | ppc64) | ||
3933 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | ||
3934 | ac_arch=$ac_word | ||
3935 | else | ||
3936 | ac_cv_c_bigendian=universal | ||
3937 | break | ||
3938 | fi | ||
3939 | ;; | ||
3940 | esac | ||
3941 | ac_prev= | ||
3942 | elif test "x$ac_word" = "x-arch"; then | ||
3943 | ac_prev=arch | ||
3944 | fi | ||
3945 | done | ||
3946 | fi | ||
3947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3948 | if test $ac_cv_c_bigendian = unknown; then | ||
3949 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
3950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3951 | /* end confdefs.h. */ | ||
3952 | #include <sys/types.h> | ||
3953 | #include <sys/param.h> | ||
3954 | |||
3955 | int | ||
3956 | main () | ||
3957 | { | ||
3958 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | ||
3959 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | ||
3960 | && LITTLE_ENDIAN) | ||
3961 | bogus endian macros | ||
3962 | #endif | ||
3963 | |||
3964 | ; | ||
3965 | return 0; | ||
3966 | } | ||
3967 | _ACEOF | ||
3968 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3969 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
3970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3971 | /* end confdefs.h. */ | ||
3972 | #include <sys/types.h> | ||
3973 | #include <sys/param.h> | ||
3974 | |||
3975 | int | ||
3976 | main () | ||
3977 | { | ||
3978 | #if BYTE_ORDER != BIG_ENDIAN | ||
3979 | not big endian | ||
3980 | #endif | ||
3981 | |||
3982 | ; | ||
3983 | return 0; | ||
3984 | } | ||
3985 | _ACEOF | ||
3986 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3987 | ac_cv_c_bigendian=yes | ||
3988 | else | ||
3989 | ac_cv_c_bigendian=no | ||
3990 | fi | ||
3991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3992 | fi | ||
3993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3994 | fi | ||
3995 | if test $ac_cv_c_bigendian = unknown; then | ||
3996 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | ||
3997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3998 | /* end confdefs.h. */ | ||
3999 | #include <limits.h> | ||
4000 | |||
4001 | int | ||
4002 | main () | ||
4003 | { | ||
4004 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | ||
4005 | bogus endian macros | ||
4006 | #endif | ||
4007 | |||
4008 | ; | ||
4009 | return 0; | ||
4010 | } | ||
4011 | _ACEOF | ||
4012 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4013 | # It does; now see whether it defined to _BIG_ENDIAN or not. | ||
4014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4015 | /* end confdefs.h. */ | ||
4016 | #include <limits.h> | ||
4017 | |||
4018 | int | ||
4019 | main () | ||
4020 | { | ||
4021 | #ifndef _BIG_ENDIAN | ||
4022 | not big endian | ||
4023 | #endif | ||
4024 | |||
4025 | ; | ||
4026 | return 0; | ||
4027 | } | ||
4028 | _ACEOF | ||
4029 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4030 | ac_cv_c_bigendian=yes | ||
4031 | else | ||
4032 | ac_cv_c_bigendian=no | ||
4033 | fi | ||
4034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4035 | fi | ||
4036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4037 | fi | ||
4038 | if test $ac_cv_c_bigendian = unknown; then | ||
4039 | # Compile a test program. | ||
4040 | if test "$cross_compiling" = yes; then : | ||
4041 | # Try to guess by grepping values from an object file. | ||
4042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4043 | /* end confdefs.h. */ | ||
4044 | short int ascii_mm[] = | ||
4045 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
4046 | short int ascii_ii[] = | ||
4047 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
4048 | int use_ascii (int i) { | ||
4049 | return ascii_mm[i] + ascii_ii[i]; | ||
4050 | } | ||
4051 | short int ebcdic_ii[] = | ||
4052 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
4053 | short int ebcdic_mm[] = | ||
4054 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
4055 | int use_ebcdic (int i) { | ||
4056 | return ebcdic_mm[i] + ebcdic_ii[i]; | ||
4057 | } | ||
4058 | extern int foo; | ||
4059 | |||
4060 | int | ||
4061 | main () | ||
4062 | { | ||
4063 | return use_ascii (foo) == use_ebcdic (foo); | ||
4064 | ; | ||
4065 | return 0; | ||
4066 | } | ||
4067 | _ACEOF | ||
4068 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4069 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | ||
4070 | ac_cv_c_bigendian=yes | ||
4071 | fi | ||
4072 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
4073 | if test "$ac_cv_c_bigendian" = unknown; then | ||
4074 | ac_cv_c_bigendian=no | ||
4075 | else | ||
4076 | # finding both strings is unlikely to happen, but who knows? | ||
4077 | ac_cv_c_bigendian=unknown | ||
4078 | fi | ||
4079 | fi | ||
4080 | fi | ||
4081 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4082 | else | ||
4083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4084 | /* end confdefs.h. */ | ||
4085 | $ac_includes_default | ||
4086 | int | ||
4087 | main () | ||
4088 | { | ||
4089 | |||
4090 | /* Are we little or big endian? From Harbison&Steele. */ | ||
4091 | union | ||
4092 | { | ||
4093 | long int l; | ||
4094 | char c[sizeof (long int)]; | ||
4095 | } u; | ||
4096 | u.l = 1; | ||
4097 | return u.c[sizeof (long int) - 1] == 1; | ||
4098 | |||
4099 | ; | ||
4100 | return 0; | ||
4101 | } | ||
4102 | _ACEOF | ||
4103 | if ac_fn_c_try_run "$LINENO"; then : | ||
4104 | ac_cv_c_bigendian=no | ||
4105 | else | ||
4106 | ac_cv_c_bigendian=yes | ||
4107 | fi | ||
4108 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
4109 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
4110 | fi | ||
4111 | |||
4112 | fi | ||
4113 | fi | ||
4114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | ||
4115 | $as_echo "$ac_cv_c_bigendian" >&6; } | ||
4116 | case $ac_cv_c_bigendian in #( | ||
4117 | yes) | ||
4118 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | ||
4119 | ;; #( | ||
4120 | no) | ||
4121 | ;; #( | ||
4122 | universal) | ||
4123 | |||
4124 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | ||
4125 | |||
4126 | ;; #( | ||
4127 | *) | ||
4128 | as_fn_error $? "unknown endianness | ||
4129 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | ||
4130 | esac | ||
4131 | |||
4132 | |||
4133 | # Checks for programs. | ||
4134 | for ac_prog in gawk mawk nawk awk | ||
4135 | do | ||
4136 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4137 | set dummy $ac_prog; ac_word=$2 | ||
4138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4139 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4140 | if ${ac_cv_prog_AWK+:} false; then : | ||
4141 | $as_echo_n "(cached) " >&6 | ||
4142 | else | ||
4143 | if test -n "$AWK"; then | ||
4144 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
4145 | else | ||
4146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4147 | for as_dir in $PATH | ||
4148 | do | ||
4149 | IFS=$as_save_IFS | ||
4150 | test -z "$as_dir" && as_dir=. | ||
4151 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4152 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4153 | ac_cv_prog_AWK="$ac_prog" | ||
4154 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4155 | break 2 | ||
4156 | fi | ||
4157 | done | ||
4158 | done | ||
4159 | IFS=$as_save_IFS | ||
4160 | |||
4161 | fi | ||
4162 | fi | ||
4163 | AWK=$ac_cv_prog_AWK | ||
4164 | if test -n "$AWK"; then | ||
4165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | ||
4166 | $as_echo "$AWK" >&6; } | ||
4167 | else | ||
4168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4169 | $as_echo "no" >&6; } | ||
4170 | fi | ||
4171 | |||
4172 | |||
4173 | test -n "$AWK" && break | ||
4174 | done | ||
4175 | |||
4176 | ac_ext=c | ||
4177 | ac_cpp='$CPP $CPPFLAGS' | ||
4178 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4179 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4180 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
4182 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
4183 | # On Suns, sometimes $CPP names a directory. | ||
4184 | if test -n "$CPP" && test -d "$CPP"; then | ||
4185 | CPP= | ||
4186 | fi | ||
4187 | if test -z "$CPP"; then | ||
4188 | if ${ac_cv_prog_CPP+:} false; then : | ||
4189 | $as_echo_n "(cached) " >&6 | ||
4190 | else | ||
4191 | # Double quotes because CPP needs to be expanded | ||
4192 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
4193 | do | ||
4194 | ac_preproc_ok=false | ||
4195 | for ac_c_preproc_warn_flag in '' yes | ||
4196 | do | ||
4197 | # Use a header file that comes with gcc, so configuring glibc | ||
4198 | # with a fresh cross-compiler works. | ||
4199 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4200 | # <limits.h> exists even on freestanding compilers. | ||
4201 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
4202 | # not just through cpp. "Syntax error" is here to catch this case. | ||
4203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4204 | /* end confdefs.h. */ | ||
4205 | #ifdef __STDC__ | ||
4206 | # include <limits.h> | ||
4207 | #else | ||
4208 | # include <assert.h> | ||
4209 | #endif | ||
4210 | Syntax error | ||
4211 | _ACEOF | ||
4212 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4213 | |||
4214 | else | ||
4215 | # Broken: fails on valid input. | ||
4216 | continue | ||
4217 | fi | ||
4218 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4219 | |||
4220 | # OK, works on sane cases. Now check whether nonexistent headers | ||
4221 | # can be detected and how. | ||
4222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4223 | /* end confdefs.h. */ | ||
4224 | #include <ac_nonexistent.h> | ||
4225 | _ACEOF | ||
4226 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4227 | # Broken: success on invalid input. | ||
4228 | continue | ||
4229 | else | ||
4230 | # Passes both tests. | ||
4231 | ac_preproc_ok=: | ||
4232 | break | ||
4233 | fi | ||
4234 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4235 | |||
4236 | done | ||
4237 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
4238 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
4239 | if $ac_preproc_ok; then : | ||
4240 | break | ||
4241 | fi | ||
4242 | |||
4243 | done | ||
4244 | ac_cv_prog_CPP=$CPP | ||
4245 | |||
4246 | fi | ||
4247 | CPP=$ac_cv_prog_CPP | ||
4248 | else | ||
4249 | ac_cv_prog_CPP=$CPP | ||
4250 | fi | ||
4251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
4252 | $as_echo "$CPP" >&6; } | ||
4253 | ac_preproc_ok=false | ||
4254 | for ac_c_preproc_warn_flag in '' yes | ||
4255 | do | ||
4256 | # Use a header file that comes with gcc, so configuring glibc | ||
4257 | # with a fresh cross-compiler works. | ||
4258 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4259 | # <limits.h> exists even on freestanding compilers. | ||
4260 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
4261 | # not just through cpp. "Syntax error" is here to catch this case. | ||
4262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4263 | /* end confdefs.h. */ | ||
4264 | #ifdef __STDC__ | ||
4265 | # include <limits.h> | ||
4266 | #else | ||
4267 | # include <assert.h> | ||
4268 | #endif | ||
4269 | Syntax error | ||
4270 | _ACEOF | ||
4271 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4272 | |||
4273 | else | ||
4274 | # Broken: fails on valid input. | ||
4275 | continue | ||
4276 | fi | ||
4277 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4278 | |||
4279 | # OK, works on sane cases. Now check whether nonexistent headers | ||
4280 | # can be detected and how. | ||
4281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4282 | /* end confdefs.h. */ | ||
4283 | #include <ac_nonexistent.h> | ||
4284 | _ACEOF | ||
4285 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4286 | # Broken: success on invalid input. | ||
4287 | continue | ||
4288 | else | ||
4289 | # Passes both tests. | ||
4290 | ac_preproc_ok=: | ||
4291 | break | ||
4292 | fi | ||
4293 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4294 | |||
4295 | done | ||
4296 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
4297 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
4298 | if $ac_preproc_ok; then : | ||
4299 | |||
4300 | else | ||
4301 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4302 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4303 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||
4304 | See \`config.log' for more details" "$LINENO" 5; } | ||
4305 | fi | ||
4306 | |||
4307 | ac_ext=c | ||
4308 | ac_cpp='$CPP $CPPFLAGS' | ||
4309 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4310 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4311 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4312 | |||
4313 | if test -n "$ac_tool_prefix"; then | ||
4314 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
4315 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
4316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4317 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4318 | if ${ac_cv_prog_RANLIB+:} false; then : | ||
4319 | $as_echo_n "(cached) " >&6 | ||
4320 | else | ||
4321 | if test -n "$RANLIB"; then | ||
4322 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
4323 | else | ||
4324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4325 | for as_dir in $PATH | ||
4326 | do | ||
4327 | IFS=$as_save_IFS | ||
4328 | test -z "$as_dir" && as_dir=. | ||
4329 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4330 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4331 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
4332 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4333 | break 2 | ||
4334 | fi | ||
4335 | done | ||
4336 | done | ||
4337 | IFS=$as_save_IFS | ||
4338 | |||
4339 | fi | ||
4340 | fi | ||
4341 | RANLIB=$ac_cv_prog_RANLIB | ||
4342 | if test -n "$RANLIB"; then | ||
4343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | ||
4344 | $as_echo "$RANLIB" >&6; } | ||
4345 | else | ||
4346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4347 | $as_echo "no" >&6; } | ||
4348 | fi | ||
4349 | |||
4350 | |||
4351 | fi | ||
4352 | if test -z "$ac_cv_prog_RANLIB"; then | ||
4353 | ac_ct_RANLIB=$RANLIB | ||
4354 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
4355 | set dummy ranlib; ac_word=$2 | ||
4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4357 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4358 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | ||
4359 | $as_echo_n "(cached) " >&6 | ||
4360 | else | ||
4361 | if test -n "$ac_ct_RANLIB"; then | ||
4362 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
4363 | else | ||
4364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4365 | for as_dir in $PATH | ||
4366 | do | ||
4367 | IFS=$as_save_IFS | ||
4368 | test -z "$as_dir" && as_dir=. | ||
4369 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4370 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4371 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
4372 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4373 | break 2 | ||
4374 | fi | ||
4375 | done | ||
4376 | done | ||
4377 | IFS=$as_save_IFS | ||
4378 | |||
4379 | fi | ||
4380 | fi | ||
4381 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
4382 | if test -n "$ac_ct_RANLIB"; then | ||
4383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | ||
4384 | $as_echo "$ac_ct_RANLIB" >&6; } | ||
4385 | else | ||
4386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4387 | $as_echo "no" >&6; } | ||
4388 | fi | ||
4389 | |||
4390 | if test "x$ac_ct_RANLIB" = x; then | ||
4391 | RANLIB=":" | ||
4392 | else | ||
4393 | case $cross_compiling:$ac_tool_warned in | ||
4394 | yes:) | ||
4395 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
4396 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
4397 | ac_tool_warned=yes ;; | ||
4398 | esac | ||
4399 | RANLIB=$ac_ct_RANLIB | ||
4400 | fi | ||
4401 | else | ||
4402 | RANLIB="$ac_cv_prog_RANLIB" | ||
4403 | fi | ||
4404 | |||
4405 | # Find a good install program. We prefer a C program (faster), | ||
4406 | # so one script is as good as another. But avoid the broken or | ||
4407 | # incompatible versions: | ||
4408 | # SysV /etc/install, /usr/sbin/install | ||
4409 | # SunOS /usr/etc/install | ||
4410 | # IRIX /sbin/install | ||
4411 | # AIX /bin/install | ||
4412 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
4413 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
4414 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
4415 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
4416 | # OS/2's system install, which has a completely different semantic | ||
4417 | # ./install, which can be erroneously created by make from ./install.sh. | ||
4418 | # Reject install programs that cannot install multiple files. | ||
4419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | ||
4420 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||
4421 | if test -z "$INSTALL"; then | ||
4422 | if ${ac_cv_path_install+:} false; then : | ||
4423 | $as_echo_n "(cached) " >&6 | ||
4424 | else | ||
4425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4426 | for as_dir in $PATH | ||
4427 | do | ||
4428 | IFS=$as_save_IFS | ||
4429 | test -z "$as_dir" && as_dir=. | ||
4430 | # Account for people who put trailing slashes in PATH elements. | ||
4431 | case $as_dir/ in #(( | ||
4432 | ./ | .// | /[cC]/* | \ | ||
4433 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
4434 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | ||
4435 | /usr/ucb/* ) ;; | ||
4436 | *) | ||
4437 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
4438 | # Don't use installbsd from OSF since it installs stuff as root | ||
4439 | # by default. | ||
4440 | for ac_prog in ginstall scoinst install; do | ||
4441 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4442 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | ||
4443 | if test $ac_prog = install && | ||
4444 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4445 | # AIX install. It has an incompatible calling convention. | ||
4446 | : | ||
4447 | elif test $ac_prog = install && | ||
4448 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4449 | # program-specific install script used by HP pwplus--don't use. | ||
4450 | : | ||
4451 | else | ||
4452 | rm -rf conftest.one conftest.two conftest.dir | ||
4453 | echo one > conftest.one | ||
4454 | echo two > conftest.two | ||
4455 | mkdir conftest.dir | ||
4456 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | ||
4457 | test -s conftest.one && test -s conftest.two && | ||
4458 | test -s conftest.dir/conftest.one && | ||
4459 | test -s conftest.dir/conftest.two | ||
4460 | then | ||
4461 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
4462 | break 3 | ||
4463 | fi | ||
4464 | fi | ||
4465 | fi | ||
4466 | done | ||
4467 | done | ||
4468 | ;; | ||
4469 | esac | ||
4470 | |||
4471 | done | ||
4472 | IFS=$as_save_IFS | ||
4473 | |||
4474 | rm -rf conftest.one conftest.two conftest.dir | ||
4475 | |||
4476 | fi | ||
4477 | if test "${ac_cv_path_install+set}" = set; then | ||
4478 | INSTALL=$ac_cv_path_install | ||
4479 | else | ||
4480 | # As a last resort, use the slow shell script. Don't cache a | ||
4481 | # value for INSTALL within a source directory, because that will | ||
4482 | # break other packages using the cache if that directory is | ||
4483 | # removed, or if the value is a relative name. | ||
4484 | INSTALL=$ac_install_sh | ||
4485 | fi | ||
4486 | fi | ||
4487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | ||
4488 | $as_echo "$INSTALL" >&6; } | ||
4489 | |||
4490 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
4491 | # It thinks the first close brace ends the variable substitution. | ||
4492 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
4493 | |||
4494 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
4495 | |||
4496 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
4497 | |||
4498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
4499 | $as_echo_n "checking for egrep... " >&6; } | ||
4500 | if ${ac_cv_path_EGREP+:} false; then : | ||
4501 | $as_echo_n "(cached) " >&6 | ||
4502 | else | ||
4503 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4504 | then ac_cv_path_EGREP="$GREP -E" | ||
4505 | else | ||
4506 | if test -z "$EGREP"; then | ||
4507 | ac_path_EGREP_found=false | ||
4508 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4510 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4511 | do | ||
4512 | IFS=$as_save_IFS | ||
4513 | test -z "$as_dir" && as_dir=. | ||
4514 | for ac_prog in egrep; do | ||
4515 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4516 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4517 | as_fn_executable_p "$ac_path_EGREP" || continue | ||
4518 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4519 | # Check for GNU $ac_path_EGREP | ||
4520 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4521 | *GNU*) | ||
4522 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4523 | *) | ||
4524 | ac_count=0 | ||
4525 | $as_echo_n 0123456789 >"conftest.in" | ||
4526 | while : | ||
4527 | do | ||
4528 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4529 | mv "conftest.tmp" "conftest.in" | ||
4530 | cp "conftest.in" "conftest.nl" | ||
4531 | $as_echo 'EGREP' >> "conftest.nl" | ||
4532 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4533 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4534 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4535 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4536 | # Best one so far, save it but keep looking for a better one | ||
4537 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4538 | ac_path_EGREP_max=$ac_count | ||
4539 | fi | ||
4540 | # 10*(2^10) chars as input seems more than enough | ||
4541 | test $ac_count -gt 10 && break | ||
4542 | done | ||
4543 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4544 | esac | ||
4545 | |||
4546 | $ac_path_EGREP_found && break 3 | ||
4547 | done | ||
4548 | done | ||
4549 | done | ||
4550 | IFS=$as_save_IFS | ||
4551 | if test -z "$ac_cv_path_EGREP"; then | ||
4552 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
4553 | fi | ||
4554 | else | ||
4555 | ac_cv_path_EGREP=$EGREP | ||
4556 | fi | ||
4557 | |||
4558 | fi | ||
4559 | fi | ||
4560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
4561 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
4562 | EGREP="$ac_cv_path_EGREP" | ||
4563 | |||
4564 | |||
4565 | if test -n "$ac_tool_prefix"; then | ||
4566 | for ac_prog in ar | ||
4567 | do | ||
4568 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
4569 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
4570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4571 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4572 | if ${ac_cv_prog_AR+:} false; then : | ||
4573 | $as_echo_n "(cached) " >&6 | ||
4574 | else | ||
4575 | if test -n "$AR"; then | ||
4576 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||
4577 | else | ||
4578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4579 | for as_dir in $PATH | ||
4580 | do | ||
4581 | IFS=$as_save_IFS | ||
4582 | test -z "$as_dir" && as_dir=. | ||
4583 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4584 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4585 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | ||
4586 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4587 | break 2 | ||
4588 | fi | ||
4589 | done | ||
4590 | done | ||
4591 | IFS=$as_save_IFS | ||
4592 | |||
4593 | fi | ||
4594 | fi | ||
4595 | AR=$ac_cv_prog_AR | ||
4596 | if test -n "$AR"; then | ||
4597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
4598 | $as_echo "$AR" >&6; } | ||
4599 | else | ||
4600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4601 | $as_echo "no" >&6; } | ||
4602 | fi | ||
4603 | |||
4604 | |||
4605 | test -n "$AR" && break | ||
4606 | done | ||
4607 | fi | ||
4608 | if test -z "$AR"; then | ||
4609 | ac_ct_AR=$AR | ||
4610 | for ac_prog in ar | ||
4611 | do | ||
4612 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4613 | set dummy $ac_prog; ac_word=$2 | ||
4614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4615 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4616 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | ||
4617 | $as_echo_n "(cached) " >&6 | ||
4618 | else | ||
4619 | if test -n "$ac_ct_AR"; then | ||
4620 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
4621 | else | ||
4622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4623 | for as_dir in $PATH | ||
4624 | do | ||
4625 | IFS=$as_save_IFS | ||
4626 | test -z "$as_dir" && as_dir=. | ||
4627 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4628 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4629 | ac_cv_prog_ac_ct_AR="$ac_prog" | ||
4630 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4631 | break 2 | ||
4632 | fi | ||
4633 | done | ||
4634 | done | ||
4635 | IFS=$as_save_IFS | ||
4636 | |||
4637 | fi | ||
4638 | fi | ||
4639 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
4640 | if test -n "$ac_ct_AR"; then | ||
4641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
4642 | $as_echo "$ac_ct_AR" >&6; } | ||
4643 | else | ||
4644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4645 | $as_echo "no" >&6; } | ||
4646 | fi | ||
4647 | |||
4648 | |||
4649 | test -n "$ac_ct_AR" && break | ||
4650 | done | ||
4651 | |||
4652 | if test "x$ac_ct_AR" = x; then | ||
4653 | AR="" | ||
4654 | else | ||
4655 | case $cross_compiling:$ac_tool_warned in | ||
4656 | yes:) | ||
4657 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
4658 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
4659 | ac_tool_warned=yes ;; | ||
4660 | esac | ||
4661 | AR=$ac_ct_AR | ||
4662 | fi | ||
4663 | fi | ||
4664 | |||
4665 | # Extract the first word of "cat", so it can be a program name with args. | ||
4666 | set dummy cat; ac_word=$2 | ||
4667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4668 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4669 | if ${ac_cv_path_CAT+:} false; then : | ||
4670 | $as_echo_n "(cached) " >&6 | ||
4671 | else | ||
4672 | case $CAT in | ||
4673 | [\\/]* | ?:[\\/]*) | ||
4674 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. | ||
4675 | ;; | ||
4676 | *) | ||
4677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4678 | for as_dir in $PATH | ||
4679 | do | ||
4680 | IFS=$as_save_IFS | ||
4681 | test -z "$as_dir" && as_dir=. | ||
4682 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4683 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4684 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" | ||
4685 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4686 | break 2 | ||
4687 | fi | ||
4688 | done | ||
4689 | done | ||
4690 | IFS=$as_save_IFS | ||
4691 | |||
4692 | ;; | ||
4693 | esac | ||
4694 | fi | ||
4695 | CAT=$ac_cv_path_CAT | ||
4696 | if test -n "$CAT"; then | ||
4697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 | ||
4698 | $as_echo "$CAT" >&6; } | ||
4699 | else | ||
4700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4701 | $as_echo "no" >&6; } | ||
4702 | fi | ||
4703 | |||
4704 | |||
4705 | # Extract the first word of "kill", so it can be a program name with args. | ||
4706 | set dummy kill; ac_word=$2 | ||
4707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4708 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4709 | if ${ac_cv_path_KILL+:} false; then : | ||
4710 | $as_echo_n "(cached) " >&6 | ||
4711 | else | ||
4712 | case $KILL in | ||
4713 | [\\/]* | ?:[\\/]*) | ||
4714 | ac_cv_path_KILL="$KILL" # Let the user override the test with a path. | ||
4715 | ;; | ||
4716 | *) | ||
4717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4718 | for as_dir in $PATH | ||
4719 | do | ||
4720 | IFS=$as_save_IFS | ||
4721 | test -z "$as_dir" && as_dir=. | ||
4722 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4723 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4724 | ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext" | ||
4725 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4726 | break 2 | ||
4727 | fi | ||
4728 | done | ||
4729 | done | ||
4730 | IFS=$as_save_IFS | ||
4731 | |||
4732 | ;; | ||
4733 | esac | ||
4734 | fi | ||
4735 | KILL=$ac_cv_path_KILL | ||
4736 | if test -n "$KILL"; then | ||
4737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5 | ||
4738 | $as_echo "$KILL" >&6; } | ||
4739 | else | ||
4740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4741 | $as_echo "no" >&6; } | ||
4742 | fi | ||
4743 | |||
4744 | |||
4745 | for ac_prog in perl5 perl | ||
4746 | do | ||
4747 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4748 | set dummy $ac_prog; ac_word=$2 | ||
4749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4750 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4751 | if ${ac_cv_path_PERL+:} false; then : | ||
4752 | $as_echo_n "(cached) " >&6 | ||
4753 | else | ||
4754 | case $PERL in | ||
4755 | [\\/]* | ?:[\\/]*) | ||
4756 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
4757 | ;; | ||
4758 | *) | ||
4759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4760 | for as_dir in $PATH | ||
4761 | do | ||
4762 | IFS=$as_save_IFS | ||
4763 | test -z "$as_dir" && as_dir=. | ||
4764 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4765 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4766 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | ||
4767 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4768 | break 2 | ||
4769 | fi | ||
4770 | done | ||
4771 | done | ||
4772 | IFS=$as_save_IFS | ||
4773 | |||
4774 | ;; | ||
4775 | esac | ||
4776 | fi | ||
4777 | PERL=$ac_cv_path_PERL | ||
4778 | if test -n "$PERL"; then | ||
4779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 | ||
4780 | $as_echo "$PERL" >&6; } | ||
4781 | else | ||
4782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4783 | $as_echo "no" >&6; } | ||
4784 | fi | ||
4785 | |||
4786 | |||
4787 | test -n "$PERL" && break | ||
4788 | done | ||
4789 | |||
4790 | # Extract the first word of "sed", so it can be a program name with args. | ||
4791 | set dummy sed; ac_word=$2 | ||
4792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4793 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4794 | if ${ac_cv_path_SED+:} false; then : | ||
4795 | $as_echo_n "(cached) " >&6 | ||
4796 | else | ||
4797 | case $SED in | ||
4798 | [\\/]* | ?:[\\/]*) | ||
4799 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
4800 | ;; | ||
4801 | *) | ||
4802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4803 | for as_dir in $PATH | ||
4804 | do | ||
4805 | IFS=$as_save_IFS | ||
4806 | test -z "$as_dir" && as_dir=. | ||
4807 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4808 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4809 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | ||
4810 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4811 | break 2 | ||
4812 | fi | ||
4813 | done | ||
4814 | done | ||
4815 | IFS=$as_save_IFS | ||
4816 | |||
4817 | ;; | ||
4818 | esac | ||
4819 | fi | ||
4820 | SED=$ac_cv_path_SED | ||
4821 | if test -n "$SED"; then | ||
4822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | ||
4823 | $as_echo "$SED" >&6; } | ||
4824 | else | ||
4825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4826 | $as_echo "no" >&6; } | ||
4827 | fi | ||
4828 | |||
4829 | |||
4830 | |||
4831 | # Extract the first word of "ent", so it can be a program name with args. | ||
4832 | set dummy ent; ac_word=$2 | ||
4833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4834 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4835 | if ${ac_cv_path_ENT+:} false; then : | ||
4836 | $as_echo_n "(cached) " >&6 | ||
4837 | else | ||
4838 | case $ENT in | ||
4839 | [\\/]* | ?:[\\/]*) | ||
4840 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
4841 | ;; | ||
4842 | *) | ||
4843 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4844 | for as_dir in $PATH | ||
4845 | do | ||
4846 | IFS=$as_save_IFS | ||
4847 | test -z "$as_dir" && as_dir=. | ||
4848 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4849 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4850 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" | ||
4851 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4852 | break 2 | ||
4853 | fi | ||
4854 | done | ||
4855 | done | ||
4856 | IFS=$as_save_IFS | ||
4857 | |||
4858 | ;; | ||
4859 | esac | ||
4860 | fi | ||
4861 | ENT=$ac_cv_path_ENT | ||
4862 | if test -n "$ENT"; then | ||
4863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5 | ||
4864 | $as_echo "$ENT" >&6; } | ||
4865 | else | ||
4866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4867 | $as_echo "no" >&6; } | ||
4868 | fi | ||
4869 | |||
4870 | |||
4871 | |||
4872 | # Extract the first word of "bash", so it can be a program name with args. | ||
4873 | set dummy bash; ac_word=$2 | ||
4874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4875 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4876 | if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : | ||
4877 | $as_echo_n "(cached) " >&6 | ||
4878 | else | ||
4879 | case $TEST_MINUS_S_SH in | ||
4880 | [\\/]* | ?:[\\/]*) | ||
4881 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4882 | ;; | ||
4883 | *) | ||
4884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4885 | for as_dir in $PATH | ||
4886 | do | ||
4887 | IFS=$as_save_IFS | ||
4888 | test -z "$as_dir" && as_dir=. | ||
4889 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4890 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4891 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4892 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4893 | break 2 | ||
4894 | fi | ||
4895 | done | ||
4896 | done | ||
4897 | IFS=$as_save_IFS | ||
4898 | |||
4899 | ;; | ||
4900 | esac | ||
4901 | fi | ||
4902 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4903 | if test -n "$TEST_MINUS_S_SH"; then | ||
4904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 | ||
4905 | $as_echo "$TEST_MINUS_S_SH" >&6; } | ||
4906 | else | ||
4907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4908 | $as_echo "no" >&6; } | ||
4909 | fi | ||
4910 | |||
4911 | |||
4912 | # Extract the first word of "ksh", so it can be a program name with args. | ||
4913 | set dummy ksh; ac_word=$2 | ||
4914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4915 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4916 | if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : | ||
4917 | $as_echo_n "(cached) " >&6 | ||
4918 | else | ||
4919 | case $TEST_MINUS_S_SH in | ||
4920 | [\\/]* | ?:[\\/]*) | ||
4921 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4922 | ;; | ||
4923 | *) | ||
4924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4925 | for as_dir in $PATH | ||
4926 | do | ||
4927 | IFS=$as_save_IFS | ||
4928 | test -z "$as_dir" && as_dir=. | ||
4929 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4930 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4931 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4932 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4933 | break 2 | ||
4934 | fi | ||
4935 | done | ||
4936 | done | ||
4937 | IFS=$as_save_IFS | ||
4938 | |||
4939 | ;; | ||
4940 | esac | ||
4941 | fi | ||
4942 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4943 | if test -n "$TEST_MINUS_S_SH"; then | ||
4944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 | ||
4945 | $as_echo "$TEST_MINUS_S_SH" >&6; } | ||
4946 | else | ||
4947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4948 | $as_echo "no" >&6; } | ||
4949 | fi | ||
4950 | |||
4951 | |||
4952 | # Extract the first word of "sh", so it can be a program name with args. | ||
4953 | set dummy sh; ac_word=$2 | ||
4954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4955 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4956 | if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : | ||
4957 | $as_echo_n "(cached) " >&6 | ||
4958 | else | ||
4959 | case $TEST_MINUS_S_SH in | ||
4960 | [\\/]* | ?:[\\/]*) | ||
4961 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4962 | ;; | ||
4963 | *) | ||
4964 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4965 | for as_dir in $PATH | ||
4966 | do | ||
4967 | IFS=$as_save_IFS | ||
4968 | test -z "$as_dir" && as_dir=. | ||
4969 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4970 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4971 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4972 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4973 | break 2 | ||
4974 | fi | ||
4975 | done | ||
4976 | done | ||
4977 | IFS=$as_save_IFS | ||
4978 | |||
4979 | ;; | ||
4980 | esac | ||
4981 | fi | ||
4982 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4983 | if test -n "$TEST_MINUS_S_SH"; then | ||
4984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 | ||
4985 | $as_echo "$TEST_MINUS_S_SH" >&6; } | ||
4986 | else | ||
4987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4988 | $as_echo "no" >&6; } | ||
4989 | fi | ||
4990 | |||
4991 | |||
4992 | # Extract the first word of "sh", so it can be a program name with args. | ||
4993 | set dummy sh; ac_word=$2 | ||
4994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4995 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4996 | if ${ac_cv_path_SH+:} false; then : | ||
4997 | $as_echo_n "(cached) " >&6 | ||
4998 | else | ||
4999 | case $SH in | ||
5000 | [\\/]* | ?:[\\/]*) | ||
5001 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
5002 | ;; | ||
5003 | *) | ||
5004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5005 | for as_dir in $PATH | ||
5006 | do | ||
5007 | IFS=$as_save_IFS | ||
5008 | test -z "$as_dir" && as_dir=. | ||
5009 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5010 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5011 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | ||
5012 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5013 | break 2 | ||
5014 | fi | ||
5015 | done | ||
5016 | done | ||
5017 | IFS=$as_save_IFS | ||
5018 | |||
5019 | ;; | ||
5020 | esac | ||
5021 | fi | ||
5022 | SH=$ac_cv_path_SH | ||
5023 | if test -n "$SH"; then | ||
5024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 | ||
5025 | $as_echo "$SH" >&6; } | ||
5026 | else | ||
5027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5028 | $as_echo "no" >&6; } | ||
5029 | fi | ||
5030 | |||
5031 | |||
5032 | # Extract the first word of "groff", so it can be a program name with args. | ||
5033 | set dummy groff; ac_word=$2 | ||
5034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5035 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5036 | if ${ac_cv_path_GROFF+:} false; then : | ||
5037 | $as_echo_n "(cached) " >&6 | ||
5038 | else | ||
5039 | case $GROFF in | ||
5040 | [\\/]* | ?:[\\/]*) | ||
5041 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. | ||
5042 | ;; | ||
5043 | *) | ||
5044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5045 | for as_dir in $PATH | ||
5046 | do | ||
5047 | IFS=$as_save_IFS | ||
5048 | test -z "$as_dir" && as_dir=. | ||
5049 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5050 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5051 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" | ||
5052 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5053 | break 2 | ||
5054 | fi | ||
5055 | done | ||
5056 | done | ||
5057 | IFS=$as_save_IFS | ||
5058 | |||
5059 | ;; | ||
5060 | esac | ||
5061 | fi | ||
5062 | GROFF=$ac_cv_path_GROFF | ||
5063 | if test -n "$GROFF"; then | ||
5064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 | ||
5065 | $as_echo "$GROFF" >&6; } | ||
5066 | else | ||
5067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5068 | $as_echo "no" >&6; } | ||
5069 | fi | ||
5070 | |||
5071 | |||
5072 | # Extract the first word of "nroff", so it can be a program name with args. | ||
5073 | set dummy nroff; ac_word=$2 | ||
5074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5075 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5076 | if ${ac_cv_path_NROFF+:} false; then : | ||
5077 | $as_echo_n "(cached) " >&6 | ||
5078 | else | ||
5079 | case $NROFF in | ||
5080 | [\\/]* | ?:[\\/]*) | ||
5081 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
5082 | ;; | ||
5083 | *) | ||
5084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5085 | for as_dir in $PATH | ||
5086 | do | ||
5087 | IFS=$as_save_IFS | ||
5088 | test -z "$as_dir" && as_dir=. | ||
5089 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5090 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5091 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
5092 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5093 | break 2 | ||
5094 | fi | ||
5095 | done | ||
5096 | done | ||
5097 | IFS=$as_save_IFS | ||
5098 | |||
5099 | ;; | ||
5100 | esac | ||
5101 | fi | ||
5102 | NROFF=$ac_cv_path_NROFF | ||
5103 | if test -n "$NROFF"; then | ||
5104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 | ||
5105 | $as_echo "$NROFF" >&6; } | ||
5106 | else | ||
5107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5108 | $as_echo "no" >&6; } | ||
5109 | fi | ||
5110 | |||
5111 | |||
5112 | # Extract the first word of "mandoc", so it can be a program name with args. | ||
5113 | set dummy mandoc; ac_word=$2 | ||
5114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5115 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5116 | if ${ac_cv_path_MANDOC+:} false; then : | ||
5117 | $as_echo_n "(cached) " >&6 | ||
5118 | else | ||
5119 | case $MANDOC in | ||
5120 | [\\/]* | ?:[\\/]*) | ||
5121 | ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path. | ||
5122 | ;; | ||
5123 | *) | ||
5124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5125 | for as_dir in $PATH | ||
5126 | do | ||
5127 | IFS=$as_save_IFS | ||
5128 | test -z "$as_dir" && as_dir=. | ||
5129 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5130 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5131 | ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext" | ||
5132 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5133 | break 2 | ||
5134 | fi | ||
5135 | done | ||
5136 | done | ||
5137 | IFS=$as_save_IFS | ||
5138 | |||
5139 | ;; | ||
5140 | esac | ||
5141 | fi | ||
5142 | MANDOC=$ac_cv_path_MANDOC | ||
5143 | if test -n "$MANDOC"; then | ||
5144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5 | ||
5145 | $as_echo "$MANDOC" >&6; } | ||
5146 | else | ||
5147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5148 | $as_echo "no" >&6; } | ||
5149 | fi | ||
5150 | |||
5151 | |||
5152 | TEST_SHELL=sh | ||
5153 | |||
5154 | |||
5155 | if test "x$MANDOC" != "x" ; then | ||
5156 | MANFMT="$MANDOC" | ||
5157 | elif test "x$NROFF" != "x" ; then | ||
5158 | MANFMT="$NROFF -mandoc" | ||
5159 | elif test "x$GROFF" != "x" ; then | ||
5160 | MANFMT="$GROFF -mandoc -Tascii" | ||
5161 | else | ||
5162 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5 | ||
5163 | $as_echo "$as_me: WARNING: no manpage formatted found" >&2;} | ||
5164 | MANFMT="false" | ||
5165 | fi | ||
5166 | |||
5167 | |||
5168 | # Extract the first word of "groupadd", so it can be a program name with args. | ||
5169 | set dummy groupadd; ac_word=$2 | ||
5170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5171 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5172 | if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then : | ||
5173 | $as_echo_n "(cached) " >&6 | ||
5174 | else | ||
5175 | case $PATH_GROUPADD_PROG in | ||
5176 | [\\/]* | ?:[\\/]*) | ||
5177 | ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path. | ||
5178 | ;; | ||
5179 | *) | ||
5180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5181 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
5182 | do | ||
5183 | IFS=$as_save_IFS | ||
5184 | test -z "$as_dir" && as_dir=. | ||
5185 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5186 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5187 | ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5188 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5189 | break 2 | ||
5190 | fi | ||
5191 | done | ||
5192 | done | ||
5193 | IFS=$as_save_IFS | ||
5194 | |||
5195 | test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" | ||
5196 | ;; | ||
5197 | esac | ||
5198 | fi | ||
5199 | PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG | ||
5200 | if test -n "$PATH_GROUPADD_PROG"; then | ||
5201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5 | ||
5202 | $as_echo "$PATH_GROUPADD_PROG" >&6; } | ||
5203 | else | ||
5204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5205 | $as_echo "no" >&6; } | ||
5206 | fi | ||
5207 | |||
5208 | |||
5209 | # Extract the first word of "useradd", so it can be a program name with args. | ||
5210 | set dummy useradd; ac_word=$2 | ||
5211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5212 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5213 | if ${ac_cv_path_PATH_USERADD_PROG+:} false; then : | ||
5214 | $as_echo_n "(cached) " >&6 | ||
5215 | else | ||
5216 | case $PATH_USERADD_PROG in | ||
5217 | [\\/]* | ?:[\\/]*) | ||
5218 | ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path. | ||
5219 | ;; | ||
5220 | *) | ||
5221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5222 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
5223 | do | ||
5224 | IFS=$as_save_IFS | ||
5225 | test -z "$as_dir" && as_dir=. | ||
5226 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5227 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5228 | ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5229 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5230 | break 2 | ||
5231 | fi | ||
5232 | done | ||
5233 | done | ||
5234 | IFS=$as_save_IFS | ||
5235 | |||
5236 | test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" | ||
5237 | ;; | ||
5238 | esac | ||
5239 | fi | ||
5240 | PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG | ||
5241 | if test -n "$PATH_USERADD_PROG"; then | ||
5242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5 | ||
5243 | $as_echo "$PATH_USERADD_PROG" >&6; } | ||
5244 | else | ||
5245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5246 | $as_echo "no" >&6; } | ||
5247 | fi | ||
5248 | |||
5249 | |||
5250 | # Extract the first word of "pkgmk", so it can be a program name with args. | ||
5251 | set dummy pkgmk; ac_word=$2 | ||
5252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5253 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5254 | if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then : | ||
5255 | $as_echo_n "(cached) " >&6 | ||
5256 | else | ||
5257 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
5258 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. | ||
5259 | else | ||
5260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5261 | for as_dir in $PATH | ||
5262 | do | ||
5263 | IFS=$as_save_IFS | ||
5264 | test -z "$as_dir" && as_dir=. | ||
5265 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5266 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5267 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" | ||
5268 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5269 | break 2 | ||
5270 | fi | ||
5271 | done | ||
5272 | done | ||
5273 | IFS=$as_save_IFS | ||
5274 | |||
5275 | test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" | ||
5276 | fi | ||
5277 | fi | ||
5278 | MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED | ||
5279 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
5280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5 | ||
5281 | $as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; } | ||
5282 | else | ||
5283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5284 | $as_echo "no" >&6; } | ||
5285 | fi | ||
5286 | |||
5287 | |||
5288 | if test -x /sbin/sh; then | ||
5289 | STARTUP_SCRIPT_SHELL=/sbin/sh | ||
5290 | |||
5291 | else | ||
5292 | STARTUP_SCRIPT_SHELL=/bin/sh | ||
5293 | |||
5294 | fi | ||
5295 | |||
5296 | # System features | ||
5297 | # Check whether --enable-largefile was given. | ||
5298 | if test "${enable_largefile+set}" = set; then : | ||
5299 | enableval=$enable_largefile; | ||
5300 | fi | ||
5301 | |||
5302 | if test "$enable_largefile" != no; then | ||
5303 | |||
5304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | ||
5305 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | ||
5306 | if ${ac_cv_sys_largefile_CC+:} false; then : | ||
5307 | $as_echo_n "(cached) " >&6 | ||
5308 | else | ||
5309 | ac_cv_sys_largefile_CC=no | ||
5310 | if test "$GCC" != yes; then | ||
5311 | ac_save_CC=$CC | ||
5312 | while :; do | ||
5313 | # IRIX 6.2 and later do not support large files by default, | ||
5314 | # so use the C compiler's -n32 option if that helps. | ||
5315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5316 | /* end confdefs.h. */ | ||
5317 | #include <sys/types.h> | ||
5318 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5319 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5320 | since some C++ compilers masquerading as C compilers | ||
5321 | incorrectly reject 9223372036854775807. */ | ||
5322 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5323 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5324 | && LARGE_OFF_T % 2147483647 == 1) | ||
5325 | ? 1 : -1]; | ||
5326 | int | ||
5327 | main () | ||
5328 | { | ||
5329 | |||
5330 | ; | ||
5331 | return 0; | ||
5332 | } | ||
5333 | _ACEOF | ||
5334 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5335 | break | ||
5336 | fi | ||
5337 | rm -f core conftest.err conftest.$ac_objext | ||
5338 | CC="$CC -n32" | ||
5339 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5340 | ac_cv_sys_largefile_CC=' -n32'; break | ||
5341 | fi | ||
5342 | rm -f core conftest.err conftest.$ac_objext | ||
5343 | break | ||
5344 | done | ||
5345 | CC=$ac_save_CC | ||
5346 | rm -f conftest.$ac_ext | ||
5347 | fi | ||
5348 | fi | ||
5349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | ||
5350 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | ||
5351 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
5352 | CC=$CC$ac_cv_sys_largefile_CC | ||
5353 | fi | ||
5354 | |||
5355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
5356 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | ||
5357 | if ${ac_cv_sys_file_offset_bits+:} false; then : | ||
5358 | $as_echo_n "(cached) " >&6 | ||
5359 | else | ||
5360 | while :; do | ||
5361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5362 | /* end confdefs.h. */ | ||
5363 | #include <sys/types.h> | ||
5364 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5365 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5366 | since some C++ compilers masquerading as C compilers | ||
5367 | incorrectly reject 9223372036854775807. */ | ||
5368 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5369 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5370 | && LARGE_OFF_T % 2147483647 == 1) | ||
5371 | ? 1 : -1]; | ||
5372 | int | ||
5373 | main () | ||
5374 | { | ||
5375 | |||
5376 | ; | ||
5377 | return 0; | ||
5378 | } | ||
5379 | _ACEOF | ||
5380 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5381 | ac_cv_sys_file_offset_bits=no; break | ||
5382 | fi | ||
5383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5385 | /* end confdefs.h. */ | ||
5386 | #define _FILE_OFFSET_BITS 64 | ||
5387 | #include <sys/types.h> | ||
5388 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5389 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5390 | since some C++ compilers masquerading as C compilers | ||
5391 | incorrectly reject 9223372036854775807. */ | ||
5392 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5393 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5394 | && LARGE_OFF_T % 2147483647 == 1) | ||
5395 | ? 1 : -1]; | ||
5396 | int | ||
5397 | main () | ||
5398 | { | ||
5399 | |||
5400 | ; | ||
5401 | return 0; | ||
5402 | } | ||
5403 | _ACEOF | ||
5404 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5405 | ac_cv_sys_file_offset_bits=64; break | ||
5406 | fi | ||
5407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5408 | ac_cv_sys_file_offset_bits=unknown | ||
5409 | break | ||
5410 | done | ||
5411 | fi | ||
5412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | ||
5413 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | ||
5414 | case $ac_cv_sys_file_offset_bits in #( | ||
5415 | no | unknown) ;; | ||
5416 | *) | ||
5417 | cat >>confdefs.h <<_ACEOF | ||
5418 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
5419 | _ACEOF | ||
5420 | ;; | ||
5421 | esac | ||
5422 | rm -rf conftest* | ||
5423 | if test $ac_cv_sys_file_offset_bits = unknown; then | ||
5424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | ||
5425 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | ||
5426 | if ${ac_cv_sys_large_files+:} false; then : | ||
5427 | $as_echo_n "(cached) " >&6 | ||
5428 | else | ||
5429 | while :; do | ||
5430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5431 | /* end confdefs.h. */ | ||
5432 | #include <sys/types.h> | ||
5433 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5434 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5435 | since some C++ compilers masquerading as C compilers | ||
5436 | incorrectly reject 9223372036854775807. */ | ||
5437 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5438 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5439 | && LARGE_OFF_T % 2147483647 == 1) | ||
5440 | ? 1 : -1]; | ||
5441 | int | ||
5442 | main () | ||
5443 | { | ||
5444 | |||
5445 | ; | ||
5446 | return 0; | ||
5447 | } | ||
5448 | _ACEOF | ||
5449 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5450 | ac_cv_sys_large_files=no; break | ||
5451 | fi | ||
5452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5454 | /* end confdefs.h. */ | ||
5455 | #define _LARGE_FILES 1 | ||
5456 | #include <sys/types.h> | ||
5457 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5458 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5459 | since some C++ compilers masquerading as C compilers | ||
5460 | incorrectly reject 9223372036854775807. */ | ||
5461 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5462 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5463 | && LARGE_OFF_T % 2147483647 == 1) | ||
5464 | ? 1 : -1]; | ||
5465 | int | ||
5466 | main () | ||
5467 | { | ||
5468 | |||
5469 | ; | ||
5470 | return 0; | ||
5471 | } | ||
5472 | _ACEOF | ||
5473 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5474 | ac_cv_sys_large_files=1; break | ||
5475 | fi | ||
5476 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5477 | ac_cv_sys_large_files=unknown | ||
5478 | break | ||
5479 | done | ||
5480 | fi | ||
5481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | ||
5482 | $as_echo "$ac_cv_sys_large_files" >&6; } | ||
5483 | case $ac_cv_sys_large_files in #( | ||
5484 | no | unknown) ;; | ||
5485 | *) | ||
5486 | cat >>confdefs.h <<_ACEOF | ||
5487 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
5488 | _ACEOF | ||
5489 | ;; | ||
5490 | esac | ||
5491 | rm -rf conftest* | ||
5492 | fi | ||
5493 | |||
5494 | |||
5495 | fi | ||
5496 | |||
5497 | |||
5498 | if test -z "$AR" ; then | ||
5499 | as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5 | ||
5500 | fi | ||
5501 | |||
5502 | # Extract the first word of "passwd", so it can be a program name with args. | ||
5503 | set dummy passwd; ac_word=$2 | ||
5504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5505 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5506 | if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then : | ||
5507 | $as_echo_n "(cached) " >&6 | ||
5508 | else | ||
5509 | case $PATH_PASSWD_PROG in | ||
5510 | [\\/]* | ?:[\\/]*) | ||
5511 | ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. | ||
5512 | ;; | ||
5513 | *) | ||
5514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5515 | for as_dir in $PATH | ||
5516 | do | ||
5517 | IFS=$as_save_IFS | ||
5518 | test -z "$as_dir" && as_dir=. | ||
5519 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5520 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5521 | ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5522 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5523 | break 2 | ||
5524 | fi | ||
5525 | done | ||
5526 | done | ||
5527 | IFS=$as_save_IFS | ||
5528 | |||
5529 | ;; | ||
5530 | esac | ||
5531 | fi | ||
5532 | PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG | ||
5533 | if test -n "$PATH_PASSWD_PROG"; then | ||
5534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5 | ||
5535 | $as_echo "$PATH_PASSWD_PROG" >&6; } | ||
5536 | else | ||
5537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5538 | $as_echo "no" >&6; } | ||
5539 | fi | ||
5540 | |||
5541 | |||
5542 | if test ! -z "$PATH_PASSWD_PROG" ; then | ||
5543 | |||
5544 | cat >>confdefs.h <<_ACEOF | ||
5545 | #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" | ||
5546 | _ACEOF | ||
5547 | |||
5548 | fi | ||
5549 | |||
5550 | if test -z "$LD" ; then | ||
5551 | LD=$CC | ||
5552 | fi | ||
5553 | |||
5554 | |||
5555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | ||
5556 | $as_echo_n "checking for inline... " >&6; } | ||
5557 | if ${ac_cv_c_inline+:} false; then : | ||
5558 | $as_echo_n "(cached) " >&6 | ||
5559 | else | ||
5560 | ac_cv_c_inline=no | ||
5561 | for ac_kw in inline __inline__ __inline; do | ||
5562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5563 | /* end confdefs.h. */ | ||
5564 | #ifndef __cplusplus | ||
5565 | typedef int foo_t; | ||
5566 | static $ac_kw foo_t static_foo () {return 0; } | ||
5567 | $ac_kw foo_t foo () {return 0; } | ||
5568 | #endif | ||
5569 | |||
5570 | _ACEOF | ||
5571 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5572 | ac_cv_c_inline=$ac_kw | ||
5573 | fi | ||
5574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5575 | test "$ac_cv_c_inline" != no && break | ||
5576 | done | ||
5577 | |||
5578 | fi | ||
5579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | ||
5580 | $as_echo "$ac_cv_c_inline" >&6; } | ||
5581 | |||
5582 | case $ac_cv_c_inline in | ||
5583 | inline | yes) ;; | ||
5584 | *) | ||
5585 | case $ac_cv_c_inline in | ||
5586 | no) ac_val=;; | ||
5587 | *) ac_val=$ac_cv_c_inline;; | ||
5588 | esac | ||
5589 | cat >>confdefs.h <<_ACEOF | ||
5590 | #ifndef __cplusplus | ||
5591 | #define inline $ac_val | ||
5592 | #endif | ||
5593 | _ACEOF | ||
5594 | ;; | ||
5595 | esac | ||
5596 | |||
5597 | |||
5598 | ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h> | ||
5599 | " | ||
5600 | if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then : | ||
5601 | have_llong_max=1 | ||
5602 | fi | ||
5603 | |||
5604 | ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" " | ||
5605 | #include <sys/types.h> | ||
5606 | #include <sys/param.h> | ||
5607 | #include <dev/systrace.h> | ||
5608 | |||
5609 | " | ||
5610 | if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = xyes; then : | ||
5611 | have_systr_policy_kill=1 | ||
5612 | fi | ||
5613 | |||
5614 | ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" " | ||
5615 | #include <sys/types.h> | ||
5616 | #include <sys/resource.h> | ||
5617 | |||
5618 | " | ||
5619 | if test "x$ac_cv_have_decl_RLIMIT_NPROC" = xyes; then : | ||
5620 | |||
5621 | $as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h | ||
5622 | |||
5623 | fi | ||
5624 | |||
5625 | ac_fn_c_check_decl "$LINENO" "PR_SET_NO_NEW_PRIVS" "ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" " | ||
5626 | #include <sys/types.h> | ||
5627 | #include <linux/prctl.h> | ||
5628 | |||
5629 | " | ||
5630 | if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then : | ||
5631 | have_linux_no_new_privs=1 | ||
5632 | fi | ||
5633 | |||
5634 | |||
5635 | openssl=yes | ||
5636 | ssh1=no | ||
5637 | COMMENT_OUT_RSA1="#no ssh1#" | ||
5638 | |||
5639 | # Check whether --with-openssl was given. | ||
5640 | if test "${with_openssl+set}" = set; then : | ||
5641 | withval=$with_openssl; if test "x$withval" = "xno" ; then | ||
5642 | openssl=no | ||
5643 | ssh1=no | ||
5644 | fi | ||
5645 | |||
5646 | |||
5647 | fi | ||
5648 | |||
5649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL will be used for cryptography" >&5 | ||
5650 | $as_echo_n "checking whether OpenSSL will be used for cryptography... " >&6; } | ||
5651 | if test "x$openssl" = "xyes" ; then | ||
5652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5653 | $as_echo "yes" >&6; } | ||
5654 | |||
5655 | cat >>confdefs.h <<_ACEOF | ||
5656 | #define WITH_OPENSSL 1 | ||
5657 | _ACEOF | ||
5658 | |||
5659 | else | ||
5660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5661 | $as_echo "no" >&6; } | ||
5662 | fi | ||
5663 | |||
5664 | |||
5665 | # Check whether --with-ssh1 was given. | ||
5666 | if test "${with_ssh1+set}" = set; then : | ||
5667 | withval=$with_ssh1; | ||
5668 | if test "x$withval" = "xyes" ; then | ||
5669 | if test "x$openssl" = "xno" ; then | ||
5670 | as_fn_error $? "Cannot enable SSH protocol 1 with OpenSSL disabled" "$LINENO" 5 | ||
5671 | fi | ||
5672 | ssh1=yes | ||
5673 | COMMENT_OUT_RSA1="" | ||
5674 | elif test "x$withval" = "xno" ; then | ||
5675 | ssh1=no | ||
5676 | else | ||
5677 | as_fn_error $? "unknown --with-ssh1 argument" "$LINENO" 5 | ||
5678 | fi | ||
5679 | |||
5680 | |||
5681 | fi | ||
5682 | |||
5683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SSH protocol 1 support is enabled" >&5 | ||
5684 | $as_echo_n "checking whether SSH protocol 1 support is enabled... " >&6; } | ||
5685 | if test "x$ssh1" = "xyes" ; then | ||
5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5687 | $as_echo "yes" >&6; } | ||
5688 | |||
5689 | cat >>confdefs.h <<_ACEOF | ||
5690 | #define WITH_SSH1 1 | ||
5691 | _ACEOF | ||
5692 | |||
5693 | |||
5694 | else | ||
5695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5696 | $as_echo "no" >&6; } | ||
5697 | fi | ||
5698 | |||
5699 | use_stack_protector=1 | ||
5700 | use_toolchain_hardening=1 | ||
5701 | |||
5702 | # Check whether --with-stackprotect was given. | ||
5703 | if test "${with_stackprotect+set}" = set; then : | ||
5704 | withval=$with_stackprotect; | ||
5705 | if test "x$withval" = "xno"; then | ||
5706 | use_stack_protector=0 | ||
5707 | fi | ||
5708 | fi | ||
5709 | |||
5710 | |||
5711 | # Check whether --with-hardening was given. | ||
5712 | if test "${with_hardening+set}" = set; then : | ||
5713 | withval=$with_hardening; | ||
5714 | if test "x$withval" = "xno"; then | ||
5715 | use_toolchain_hardening=0 | ||
5716 | fi | ||
5717 | fi | ||
5718 | |||
5719 | |||
5720 | # We use -Werror for the tests only so that we catch warnings like "this is | ||
5721 | # on by default" for things like -fPIE. | ||
5722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 | ||
5723 | $as_echo_n "checking if $CC supports -Werror... " >&6; } | ||
5724 | saved_CFLAGS="$CFLAGS" | ||
5725 | CFLAGS="$CFLAGS -Werror" | ||
5726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5727 | /* end confdefs.h. */ | ||
5728 | int main(void) { return 0; } | ||
5729 | _ACEOF | ||
5730 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5732 | $as_echo "yes" >&6; } | ||
5733 | WERROR="-Werror" | ||
5734 | else | ||
5735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5736 | $as_echo "no" >&6; } | ||
5737 | WERROR="" | ||
5738 | |||
5739 | fi | ||
5740 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5741 | CFLAGS="$saved_CFLAGS" | ||
5742 | |||
5743 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
5744 | { | ||
5745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Qunused-arguments" >&5 | ||
5746 | $as_echo_n "checking if $CC supports compile flag -Qunused-arguments... " >&6; } | ||
5747 | saved_CFLAGS="$CFLAGS" | ||
5748 | CFLAGS="$CFLAGS $WERROR -Qunused-arguments" | ||
5749 | _define_flag="" | ||
5750 | test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments" | ||
5751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5752 | /* end confdefs.h. */ | ||
5753 | |||
5754 | #include <stdlib.h> | ||
5755 | #include <stdio.h> | ||
5756 | int main(int argc, char **argv) { | ||
5757 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5758 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5759 | float l = i * 2.1; | ||
5760 | double m = l / 0.5; | ||
5761 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5762 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5763 | exit(0); | ||
5764 | } | ||
5765 | |||
5766 | _ACEOF | ||
5767 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5768 | |||
5769 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
5770 | then | ||
5771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5772 | $as_echo "no" >&6; } | ||
5773 | CFLAGS="$saved_CFLAGS" | ||
5774 | else | ||
5775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5776 | $as_echo "yes" >&6; } | ||
5777 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5778 | fi | ||
5779 | else | ||
5780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5781 | $as_echo "no" >&6; } | ||
5782 | CFLAGS="$saved_CFLAGS" | ||
5783 | |||
5784 | fi | ||
5785 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5786 | } | ||
5787 | { | ||
5788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunknown-warning-option" >&5 | ||
5789 | $as_echo_n "checking if $CC supports compile flag -Wunknown-warning-option... " >&6; } | ||
5790 | saved_CFLAGS="$CFLAGS" | ||
5791 | CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option" | ||
5792 | _define_flag="" | ||
5793 | test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option" | ||
5794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5795 | /* end confdefs.h. */ | ||
5796 | |||
5797 | #include <stdlib.h> | ||
5798 | #include <stdio.h> | ||
5799 | int main(int argc, char **argv) { | ||
5800 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5801 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5802 | float l = i * 2.1; | ||
5803 | double m = l / 0.5; | ||
5804 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5805 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5806 | exit(0); | ||
5807 | } | ||
5808 | |||
5809 | _ACEOF | ||
5810 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5811 | |||
5812 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
5813 | then | ||
5814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5815 | $as_echo "no" >&6; } | ||
5816 | CFLAGS="$saved_CFLAGS" | ||
5817 | else | ||
5818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5819 | $as_echo "yes" >&6; } | ||
5820 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5821 | fi | ||
5822 | else | ||
5823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5824 | $as_echo "no" >&6; } | ||
5825 | CFLAGS="$saved_CFLAGS" | ||
5826 | |||
5827 | fi | ||
5828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5829 | } | ||
5830 | { | ||
5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wall" >&5 | ||
5832 | $as_echo_n "checking if $CC supports compile flag -Wall... " >&6; } | ||
5833 | saved_CFLAGS="$CFLAGS" | ||
5834 | CFLAGS="$CFLAGS $WERROR -Wall" | ||
5835 | _define_flag="" | ||
5836 | test "x$_define_flag" = "x" && _define_flag="-Wall" | ||
5837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5838 | /* end confdefs.h. */ | ||
5839 | |||
5840 | #include <stdlib.h> | ||
5841 | #include <stdio.h> | ||
5842 | int main(int argc, char **argv) { | ||
5843 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5844 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5845 | float l = i * 2.1; | ||
5846 | double m = l / 0.5; | ||
5847 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5848 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5849 | exit(0); | ||
5850 | } | ||
5851 | |||
5852 | _ACEOF | ||
5853 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5854 | |||
5855 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
5856 | then | ||
5857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5858 | $as_echo "no" >&6; } | ||
5859 | CFLAGS="$saved_CFLAGS" | ||
5860 | else | ||
5861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5862 | $as_echo "yes" >&6; } | ||
5863 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5864 | fi | ||
5865 | else | ||
5866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5867 | $as_echo "no" >&6; } | ||
5868 | CFLAGS="$saved_CFLAGS" | ||
5869 | |||
5870 | fi | ||
5871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5872 | } | ||
5873 | { | ||
5874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-arith" >&5 | ||
5875 | $as_echo_n "checking if $CC supports compile flag -Wpointer-arith... " >&6; } | ||
5876 | saved_CFLAGS="$CFLAGS" | ||
5877 | CFLAGS="$CFLAGS $WERROR -Wpointer-arith" | ||
5878 | _define_flag="" | ||
5879 | test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith" | ||
5880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5881 | /* end confdefs.h. */ | ||
5882 | |||
5883 | #include <stdlib.h> | ||
5884 | #include <stdio.h> | ||
5885 | int main(int argc, char **argv) { | ||
5886 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5887 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5888 | float l = i * 2.1; | ||
5889 | double m = l / 0.5; | ||
5890 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5891 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5892 | exit(0); | ||
5893 | } | ||
5894 | |||
5895 | _ACEOF | ||
5896 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5897 | |||
5898 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
5899 | then | ||
5900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5901 | $as_echo "no" >&6; } | ||
5902 | CFLAGS="$saved_CFLAGS" | ||
5903 | else | ||
5904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5905 | $as_echo "yes" >&6; } | ||
5906 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5907 | fi | ||
5908 | else | ||
5909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5910 | $as_echo "no" >&6; } | ||
5911 | CFLAGS="$saved_CFLAGS" | ||
5912 | |||
5913 | fi | ||
5914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5915 | } | ||
5916 | { | ||
5917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wuninitialized" >&5 | ||
5918 | $as_echo_n "checking if $CC supports compile flag -Wuninitialized... " >&6; } | ||
5919 | saved_CFLAGS="$CFLAGS" | ||
5920 | CFLAGS="$CFLAGS $WERROR -Wuninitialized" | ||
5921 | _define_flag="" | ||
5922 | test "x$_define_flag" = "x" && _define_flag="-Wuninitialized" | ||
5923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5924 | /* end confdefs.h. */ | ||
5925 | |||
5926 | #include <stdlib.h> | ||
5927 | #include <stdio.h> | ||
5928 | int main(int argc, char **argv) { | ||
5929 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5930 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5931 | float l = i * 2.1; | ||
5932 | double m = l / 0.5; | ||
5933 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5934 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5935 | exit(0); | ||
5936 | } | ||
5937 | |||
5938 | _ACEOF | ||
5939 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5940 | |||
5941 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
5942 | then | ||
5943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5944 | $as_echo "no" >&6; } | ||
5945 | CFLAGS="$saved_CFLAGS" | ||
5946 | else | ||
5947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5948 | $as_echo "yes" >&6; } | ||
5949 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5950 | fi | ||
5951 | else | ||
5952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5953 | $as_echo "no" >&6; } | ||
5954 | CFLAGS="$saved_CFLAGS" | ||
5955 | |||
5956 | fi | ||
5957 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5958 | } | ||
5959 | { | ||
5960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsign-compare" >&5 | ||
5961 | $as_echo_n "checking if $CC supports compile flag -Wsign-compare... " >&6; } | ||
5962 | saved_CFLAGS="$CFLAGS" | ||
5963 | CFLAGS="$CFLAGS $WERROR -Wsign-compare" | ||
5964 | _define_flag="" | ||
5965 | test "x$_define_flag" = "x" && _define_flag="-Wsign-compare" | ||
5966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5967 | /* end confdefs.h. */ | ||
5968 | |||
5969 | #include <stdlib.h> | ||
5970 | #include <stdio.h> | ||
5971 | int main(int argc, char **argv) { | ||
5972 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5973 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5974 | float l = i * 2.1; | ||
5975 | double m = l / 0.5; | ||
5976 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5977 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5978 | exit(0); | ||
5979 | } | ||
5980 | |||
5981 | _ACEOF | ||
5982 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5983 | |||
5984 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
5985 | then | ||
5986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5987 | $as_echo "no" >&6; } | ||
5988 | CFLAGS="$saved_CFLAGS" | ||
5989 | else | ||
5990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5991 | $as_echo "yes" >&6; } | ||
5992 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5993 | fi | ||
5994 | else | ||
5995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5996 | $as_echo "no" >&6; } | ||
5997 | CFLAGS="$saved_CFLAGS" | ||
5998 | |||
5999 | fi | ||
6000 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6001 | } | ||
6002 | { | ||
6003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wformat-security" >&5 | ||
6004 | $as_echo_n "checking if $CC supports compile flag -Wformat-security... " >&6; } | ||
6005 | saved_CFLAGS="$CFLAGS" | ||
6006 | CFLAGS="$CFLAGS $WERROR -Wformat-security" | ||
6007 | _define_flag="" | ||
6008 | test "x$_define_flag" = "x" && _define_flag="-Wformat-security" | ||
6009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6010 | /* end confdefs.h. */ | ||
6011 | |||
6012 | #include <stdlib.h> | ||
6013 | #include <stdio.h> | ||
6014 | int main(int argc, char **argv) { | ||
6015 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6016 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6017 | float l = i * 2.1; | ||
6018 | double m = l / 0.5; | ||
6019 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6020 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6021 | exit(0); | ||
6022 | } | ||
6023 | |||
6024 | _ACEOF | ||
6025 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6026 | |||
6027 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6028 | then | ||
6029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6030 | $as_echo "no" >&6; } | ||
6031 | CFLAGS="$saved_CFLAGS" | ||
6032 | else | ||
6033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6034 | $as_echo "yes" >&6; } | ||
6035 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6036 | fi | ||
6037 | else | ||
6038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6039 | $as_echo "no" >&6; } | ||
6040 | CFLAGS="$saved_CFLAGS" | ||
6041 | |||
6042 | fi | ||
6043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6044 | } | ||
6045 | { | ||
6046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5 | ||
6047 | $as_echo_n "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... " >&6; } | ||
6048 | saved_CFLAGS="$CFLAGS" | ||
6049 | CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess" | ||
6050 | _define_flag="" | ||
6051 | test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess" | ||
6052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6053 | /* end confdefs.h. */ | ||
6054 | |||
6055 | #include <stdlib.h> | ||
6056 | #include <stdio.h> | ||
6057 | int main(int argc, char **argv) { | ||
6058 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6059 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6060 | float l = i * 2.1; | ||
6061 | double m = l / 0.5; | ||
6062 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6063 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6064 | exit(0); | ||
6065 | } | ||
6066 | |||
6067 | _ACEOF | ||
6068 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6069 | |||
6070 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6071 | then | ||
6072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6073 | $as_echo "no" >&6; } | ||
6074 | CFLAGS="$saved_CFLAGS" | ||
6075 | else | ||
6076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6077 | $as_echo "yes" >&6; } | ||
6078 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6079 | fi | ||
6080 | else | ||
6081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6082 | $as_echo "no" >&6; } | ||
6083 | CFLAGS="$saved_CFLAGS" | ||
6084 | |||
6085 | fi | ||
6086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6087 | } | ||
6088 | { | ||
6089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-sign" >&5 | ||
6090 | $as_echo_n "checking if $CC supports compile flag -Wpointer-sign... " >&6; } | ||
6091 | saved_CFLAGS="$CFLAGS" | ||
6092 | CFLAGS="$CFLAGS $WERROR -Wpointer-sign" | ||
6093 | _define_flag="-Wno-pointer-sign" | ||
6094 | test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign" | ||
6095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6096 | /* end confdefs.h. */ | ||
6097 | |||
6098 | #include <stdlib.h> | ||
6099 | #include <stdio.h> | ||
6100 | int main(int argc, char **argv) { | ||
6101 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6102 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6103 | float l = i * 2.1; | ||
6104 | double m = l / 0.5; | ||
6105 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6106 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6107 | exit(0); | ||
6108 | } | ||
6109 | |||
6110 | _ACEOF | ||
6111 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6112 | |||
6113 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6114 | then | ||
6115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6116 | $as_echo "no" >&6; } | ||
6117 | CFLAGS="$saved_CFLAGS" | ||
6118 | else | ||
6119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6120 | $as_echo "yes" >&6; } | ||
6121 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6122 | fi | ||
6123 | else | ||
6124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6125 | $as_echo "no" >&6; } | ||
6126 | CFLAGS="$saved_CFLAGS" | ||
6127 | |||
6128 | fi | ||
6129 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6130 | } | ||
6131 | { | ||
6132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunused-result" >&5 | ||
6133 | $as_echo_n "checking if $CC supports compile flag -Wunused-result... " >&6; } | ||
6134 | saved_CFLAGS="$CFLAGS" | ||
6135 | CFLAGS="$CFLAGS $WERROR -Wunused-result" | ||
6136 | _define_flag="-Wno-unused-result" | ||
6137 | test "x$_define_flag" = "x" && _define_flag="-Wunused-result" | ||
6138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6139 | /* end confdefs.h. */ | ||
6140 | |||
6141 | #include <stdlib.h> | ||
6142 | #include <stdio.h> | ||
6143 | int main(int argc, char **argv) { | ||
6144 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6145 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6146 | float l = i * 2.1; | ||
6147 | double m = l / 0.5; | ||
6148 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6149 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6150 | exit(0); | ||
6151 | } | ||
6152 | |||
6153 | _ACEOF | ||
6154 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6155 | |||
6156 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6157 | then | ||
6158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6159 | $as_echo "no" >&6; } | ||
6160 | CFLAGS="$saved_CFLAGS" | ||
6161 | else | ||
6162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6163 | $as_echo "yes" >&6; } | ||
6164 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6165 | fi | ||
6166 | else | ||
6167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6168 | $as_echo "no" >&6; } | ||
6169 | CFLAGS="$saved_CFLAGS" | ||
6170 | |||
6171 | fi | ||
6172 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6173 | } | ||
6174 | { | ||
6175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fno-strict-aliasing" >&5 | ||
6176 | $as_echo_n "checking if $CC supports compile flag -fno-strict-aliasing... " >&6; } | ||
6177 | saved_CFLAGS="$CFLAGS" | ||
6178 | CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing" | ||
6179 | _define_flag="" | ||
6180 | test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing" | ||
6181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6182 | /* end confdefs.h. */ | ||
6183 | |||
6184 | #include <stdlib.h> | ||
6185 | #include <stdio.h> | ||
6186 | int main(int argc, char **argv) { | ||
6187 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6188 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6189 | float l = i * 2.1; | ||
6190 | double m = l / 0.5; | ||
6191 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6192 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6193 | exit(0); | ||
6194 | } | ||
6195 | |||
6196 | _ACEOF | ||
6197 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6198 | |||
6199 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6200 | then | ||
6201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6202 | $as_echo "no" >&6; } | ||
6203 | CFLAGS="$saved_CFLAGS" | ||
6204 | else | ||
6205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6206 | $as_echo "yes" >&6; } | ||
6207 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6208 | fi | ||
6209 | else | ||
6210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6211 | $as_echo "no" >&6; } | ||
6212 | CFLAGS="$saved_CFLAGS" | ||
6213 | |||
6214 | fi | ||
6215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6216 | } | ||
6217 | { | ||
6218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5 | ||
6219 | $as_echo_n "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... " >&6; } | ||
6220 | saved_CFLAGS="$CFLAGS" | ||
6221 | CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2" | ||
6222 | _define_flag="" | ||
6223 | test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2" | ||
6224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6225 | /* end confdefs.h. */ | ||
6226 | |||
6227 | #include <stdlib.h> | ||
6228 | #include <stdio.h> | ||
6229 | int main(int argc, char **argv) { | ||
6230 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6231 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6232 | float l = i * 2.1; | ||
6233 | double m = l / 0.5; | ||
6234 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6235 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6236 | exit(0); | ||
6237 | } | ||
6238 | |||
6239 | _ACEOF | ||
6240 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6241 | |||
6242 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6243 | then | ||
6244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6245 | $as_echo "no" >&6; } | ||
6246 | CFLAGS="$saved_CFLAGS" | ||
6247 | else | ||
6248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6249 | $as_echo "yes" >&6; } | ||
6250 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6251 | fi | ||
6252 | else | ||
6253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6254 | $as_echo "no" >&6; } | ||
6255 | CFLAGS="$saved_CFLAGS" | ||
6256 | |||
6257 | fi | ||
6258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6259 | } | ||
6260 | if test "x$use_toolchain_hardening" = "x1"; then | ||
6261 | { | ||
6262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,relro" >&5 | ||
6263 | $as_echo_n "checking if $LD supports link flag -Wl,-z,relro... " >&6; } | ||
6264 | saved_LDFLAGS="$LDFLAGS" | ||
6265 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro" | ||
6266 | _define_flag="" | ||
6267 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro" | ||
6268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6269 | /* end confdefs.h. */ | ||
6270 | |||
6271 | #include <stdlib.h> | ||
6272 | #include <stdio.h> | ||
6273 | int main(int argc, char **argv) { | ||
6274 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6275 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6276 | float l = i * 2.1; | ||
6277 | double m = l / 0.5; | ||
6278 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6279 | long long p = n * o; | ||
6280 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); | ||
6281 | exit(0); | ||
6282 | } | ||
6283 | |||
6284 | _ACEOF | ||
6285 | if ac_fn_c_try_link "$LINENO"; then : | ||
6286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6287 | $as_echo "yes" >&6; } | ||
6288 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
6289 | else | ||
6290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6291 | $as_echo "no" >&6; } | ||
6292 | LDFLAGS="$saved_LDFLAGS" | ||
6293 | |||
6294 | fi | ||
6295 | rm -f core conftest.err conftest.$ac_objext \ | ||
6296 | conftest$ac_exeext conftest.$ac_ext | ||
6297 | } | ||
6298 | { | ||
6299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,now" >&5 | ||
6300 | $as_echo_n "checking if $LD supports link flag -Wl,-z,now... " >&6; } | ||
6301 | saved_LDFLAGS="$LDFLAGS" | ||
6302 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now" | ||
6303 | _define_flag="" | ||
6304 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now" | ||
6305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6306 | /* end confdefs.h. */ | ||
6307 | |||
6308 | #include <stdlib.h> | ||
6309 | #include <stdio.h> | ||
6310 | int main(int argc, char **argv) { | ||
6311 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6312 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6313 | float l = i * 2.1; | ||
6314 | double m = l / 0.5; | ||
6315 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6316 | long long p = n * o; | ||
6317 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); | ||
6318 | exit(0); | ||
6319 | } | ||
6320 | |||
6321 | _ACEOF | ||
6322 | if ac_fn_c_try_link "$LINENO"; then : | ||
6323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6324 | $as_echo "yes" >&6; } | ||
6325 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
6326 | else | ||
6327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6328 | $as_echo "no" >&6; } | ||
6329 | LDFLAGS="$saved_LDFLAGS" | ||
6330 | |||
6331 | fi | ||
6332 | rm -f core conftest.err conftest.$ac_objext \ | ||
6333 | conftest$ac_exeext conftest.$ac_ext | ||
6334 | } | ||
6335 | { | ||
6336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,noexecstack" >&5 | ||
6337 | $as_echo_n "checking if $LD supports link flag -Wl,-z,noexecstack... " >&6; } | ||
6338 | saved_LDFLAGS="$LDFLAGS" | ||
6339 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack" | ||
6340 | _define_flag="" | ||
6341 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack" | ||
6342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6343 | /* end confdefs.h. */ | ||
6344 | |||
6345 | #include <stdlib.h> | ||
6346 | #include <stdio.h> | ||
6347 | int main(int argc, char **argv) { | ||
6348 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6349 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6350 | float l = i * 2.1; | ||
6351 | double m = l / 0.5; | ||
6352 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6353 | long long p = n * o; | ||
6354 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); | ||
6355 | exit(0); | ||
6356 | } | ||
6357 | |||
6358 | _ACEOF | ||
6359 | if ac_fn_c_try_link "$LINENO"; then : | ||
6360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6361 | $as_echo "yes" >&6; } | ||
6362 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
6363 | else | ||
6364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6365 | $as_echo "no" >&6; } | ||
6366 | LDFLAGS="$saved_LDFLAGS" | ||
6367 | |||
6368 | fi | ||
6369 | rm -f core conftest.err conftest.$ac_objext \ | ||
6370 | conftest$ac_exeext conftest.$ac_ext | ||
6371 | } | ||
6372 | # NB. -ftrapv expects certain support functions to be present in | ||
6373 | # the compiler library (libgcc or similar) to detect integer operations | ||
6374 | # that can overflow. We must check that the result of enabling it | ||
6375 | # actually links. The test program compiled/linked includes a number | ||
6376 | # of integer operations that should exercise this. | ||
6377 | { | ||
6378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5 | ||
6379 | $as_echo_n "checking if $CC supports compile flag -ftrapv and linking succeeds... " >&6; } | ||
6380 | saved_CFLAGS="$CFLAGS" | ||
6381 | CFLAGS="$CFLAGS $WERROR -ftrapv" | ||
6382 | _define_flag="" | ||
6383 | test "x$_define_flag" = "x" && _define_flag="-ftrapv" | ||
6384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6385 | /* end confdefs.h. */ | ||
6386 | |||
6387 | #include <stdlib.h> | ||
6388 | #include <stdio.h> | ||
6389 | int main(int argc, char **argv) { | ||
6390 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6391 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6392 | float l = i * 2.1; | ||
6393 | double m = l / 0.5; | ||
6394 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6395 | long long int p = n * o; | ||
6396 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); | ||
6397 | exit(0); | ||
6398 | } | ||
6399 | |||
6400 | _ACEOF | ||
6401 | if ac_fn_c_try_link "$LINENO"; then : | ||
6402 | |||
6403 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6404 | then | ||
6405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6406 | $as_echo "no" >&6; } | ||
6407 | CFLAGS="$saved_CFLAGS" | ||
6408 | else | ||
6409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6410 | $as_echo "yes" >&6; } | ||
6411 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6412 | fi | ||
6413 | else | ||
6414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6415 | $as_echo "no" >&6; } | ||
6416 | CFLAGS="$saved_CFLAGS" | ||
6417 | |||
6418 | fi | ||
6419 | rm -f core conftest.err conftest.$ac_objext \ | ||
6420 | conftest$ac_exeext conftest.$ac_ext | ||
6421 | } | ||
6422 | fi | ||
6423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5 | ||
6424 | $as_echo_n "checking gcc version... " >&6; } | ||
6425 | GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` | ||
6426 | case $GCC_VER in | ||
6427 | 1.*) no_attrib_nonnull=1 ;; | ||
6428 | 2.8* | 2.9*) | ||
6429 | no_attrib_nonnull=1 | ||
6430 | ;; | ||
6431 | 2.*) no_attrib_nonnull=1 ;; | ||
6432 | *) ;; | ||
6433 | esac | ||
6434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5 | ||
6435 | $as_echo "$GCC_VER" >&6; } | ||
6436 | |||
6437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5 | ||
6438 | $as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; } | ||
6439 | saved_CFLAGS="$CFLAGS" | ||
6440 | CFLAGS="$CFLAGS -fno-builtin-memset" | ||
6441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6442 | /* end confdefs.h. */ | ||
6443 | #include <string.h> | ||
6444 | int | ||
6445 | main () | ||
6446 | { | ||
6447 | char b[10]; memset(b, 0, sizeof(b)); | ||
6448 | ; | ||
6449 | return 0; | ||
6450 | } | ||
6451 | _ACEOF | ||
6452 | if ac_fn_c_try_link "$LINENO"; then : | ||
6453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6454 | $as_echo "yes" >&6; } | ||
6455 | else | ||
6456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6457 | $as_echo "no" >&6; } | ||
6458 | CFLAGS="$saved_CFLAGS" | ||
6459 | |||
6460 | fi | ||
6461 | rm -f core conftest.err conftest.$ac_objext \ | ||
6462 | conftest$ac_exeext conftest.$ac_ext | ||
6463 | |||
6464 | # -fstack-protector-all doesn't always work for some GCC versions | ||
6465 | # and/or platforms, so we test if we can. If it's not supported | ||
6466 | # on a given platform gcc will emit a warning so we use -Werror. | ||
6467 | if test "x$use_stack_protector" = "x1"; then | ||
6468 | for t in -fstack-protector-strong -fstack-protector-all \ | ||
6469 | -fstack-protector; do | ||
6470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5 | ||
6471 | $as_echo_n "checking if $CC supports $t... " >&6; } | ||
6472 | saved_CFLAGS="$CFLAGS" | ||
6473 | saved_LDFLAGS="$LDFLAGS" | ||
6474 | CFLAGS="$CFLAGS $t -Werror" | ||
6475 | LDFLAGS="$LDFLAGS $t -Werror" | ||
6476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6477 | /* end confdefs.h. */ | ||
6478 | #include <stdio.h> | ||
6479 | int | ||
6480 | main () | ||
6481 | { | ||
6482 | |||
6483 | char x[256]; | ||
6484 | snprintf(x, sizeof(x), "XXX"); | ||
6485 | |||
6486 | ; | ||
6487 | return 0; | ||
6488 | } | ||
6489 | _ACEOF | ||
6490 | if ac_fn_c_try_link "$LINENO"; then : | ||
6491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6492 | $as_echo "yes" >&6; } | ||
6493 | CFLAGS="$saved_CFLAGS $t" | ||
6494 | LDFLAGS="$saved_LDFLAGS $t" | ||
6495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5 | ||
6496 | $as_echo_n "checking if $t works... " >&6; } | ||
6497 | if test "$cross_compiling" = yes; then : | ||
6498 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5 | ||
6499 | $as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;} | ||
6500 | break | ||
6501 | |||
6502 | else | ||
6503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6504 | /* end confdefs.h. */ | ||
6505 | #include <stdio.h> | ||
6506 | int | ||
6507 | main () | ||
6508 | { | ||
6509 | |||
6510 | char x[256]; | ||
6511 | snprintf(x, sizeof(x), "XXX"); | ||
6512 | |||
6513 | ; | ||
6514 | return 0; | ||
6515 | } | ||
6516 | _ACEOF | ||
6517 | if ac_fn_c_try_run "$LINENO"; then : | ||
6518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6519 | $as_echo "yes" >&6; } | ||
6520 | break | ||
6521 | else | ||
6522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6523 | $as_echo "no" >&6; } | ||
6524 | fi | ||
6525 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
6526 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
6527 | fi | ||
6528 | |||
6529 | |||
6530 | else | ||
6531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6532 | $as_echo "no" >&6; } | ||
6533 | |||
6534 | fi | ||
6535 | rm -f core conftest.err conftest.$ac_objext \ | ||
6536 | conftest$ac_exeext conftest.$ac_ext | ||
6537 | CFLAGS="$saved_CFLAGS" | ||
6538 | LDFLAGS="$saved_LDFLAGS" | ||
6539 | done | ||
6540 | fi | ||
6541 | |||
6542 | if test -z "$have_llong_max"; then | ||
6543 | # retry LLONG_MAX with -std=gnu99, needed on some Linuxes | ||
6544 | unset ac_cv_have_decl_LLONG_MAX | ||
6545 | saved_CFLAGS="$CFLAGS" | ||
6546 | CFLAGS="$CFLAGS -std=gnu99" | ||
6547 | ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h> | ||
6548 | |||
6549 | " | ||
6550 | if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then : | ||
6551 | have_llong_max=1 | ||
6552 | else | ||
6553 | CFLAGS="$saved_CFLAGS" | ||
6554 | fi | ||
6555 | |||
6556 | fi | ||
6557 | fi | ||
6558 | |||
6559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ on return types" >&5 | ||
6560 | $as_echo_n "checking if compiler allows __attribute__ on return types... " >&6; } | ||
6561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6562 | /* end confdefs.h. */ | ||
6563 | |||
6564 | #include <stdlib.h> | ||
6565 | __attribute__((__unused__)) static void foo(void){return;} | ||
6566 | int | ||
6567 | main () | ||
6568 | { | ||
6569 | exit(0); | ||
6570 | ; | ||
6571 | return 0; | ||
6572 | } | ||
6573 | _ACEOF | ||
6574 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6576 | $as_echo "yes" >&6; } | ||
6577 | else | ||
6578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6579 | $as_echo "no" >&6; } | ||
6580 | |||
6581 | $as_echo "#define NO_ATTRIBUTE_ON_RETURN_TYPE 1" >>confdefs.h | ||
6582 | |||
6583 | |||
6584 | fi | ||
6585 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6586 | |||
6587 | if test "x$no_attrib_nonnull" != "x1" ; then | ||
6588 | |||
6589 | $as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h | ||
6590 | |||
6591 | fi | ||
6592 | |||
6593 | |||
6594 | # Check whether --with-rpath was given. | ||
6595 | if test "${with_rpath+set}" = set; then : | ||
6596 | withval=$with_rpath; | ||
6597 | if test "x$withval" = "xno" ; then | ||
6598 | need_dash_r="" | ||
6599 | fi | ||
6600 | if test "x$withval" = "xyes" ; then | ||
6601 | need_dash_r=1 | ||
6602 | fi | ||
6603 | |||
6604 | |||
6605 | fi | ||
6606 | |||
6607 | |||
6608 | # Allow user to specify flags | ||
6609 | |||
6610 | # Check whether --with-cflags was given. | ||
6611 | if test "${with_cflags+set}" = set; then : | ||
6612 | withval=$with_cflags; | ||
6613 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6614 | test "x${withval}" != "xyes"; then | ||
6615 | CFLAGS="$CFLAGS $withval" | ||
6616 | fi | ||
6617 | |||
6618 | |||
6619 | fi | ||
6620 | |||
6621 | |||
6622 | # Check whether --with-cppflags was given. | ||
6623 | if test "${with_cppflags+set}" = set; then : | ||
6624 | withval=$with_cppflags; | ||
6625 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6626 | test "x${withval}" != "xyes"; then | ||
6627 | CPPFLAGS="$CPPFLAGS $withval" | ||
6628 | fi | ||
6629 | |||
6630 | |||
6631 | fi | ||
6632 | |||
6633 | |||
6634 | # Check whether --with-ldflags was given. | ||
6635 | if test "${with_ldflags+set}" = set; then : | ||
6636 | withval=$with_ldflags; | ||
6637 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6638 | test "x${withval}" != "xyes"; then | ||
6639 | LDFLAGS="$LDFLAGS $withval" | ||
6640 | fi | ||
6641 | |||
6642 | |||
6643 | fi | ||
6644 | |||
6645 | |||
6646 | # Check whether --with-libs was given. | ||
6647 | if test "${with_libs+set}" = set; then : | ||
6648 | withval=$with_libs; | ||
6649 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6650 | test "x${withval}" != "xyes"; then | ||
6651 | LIBS="$LIBS $withval" | ||
6652 | fi | ||
6653 | |||
6654 | |||
6655 | fi | ||
6656 | |||
6657 | |||
6658 | # Check whether --with-Werror was given. | ||
6659 | if test "${with_Werror+set}" = set; then : | ||
6660 | withval=$with_Werror; | ||
6661 | if test -n "$withval" && test "x$withval" != "xno"; then | ||
6662 | werror_flags="-Werror" | ||
6663 | if test "x${withval}" != "xyes"; then | ||
6664 | werror_flags="$withval" | ||
6665 | fi | ||
6666 | fi | ||
6667 | |||
6668 | |||
6669 | fi | ||
6670 | |||
6671 | |||
6672 | for ac_header in \ | ||
6673 | blf.h \ | ||
6674 | bstring.h \ | ||
6675 | crypt.h \ | ||
6676 | crypto/sha2.h \ | ||
6677 | dirent.h \ | ||
6678 | endian.h \ | ||
6679 | elf.h \ | ||
6680 | err.h \ | ||
6681 | features.h \ | ||
6682 | fcntl.h \ | ||
6683 | floatingpoint.h \ | ||
6684 | getopt.h \ | ||
6685 | glob.h \ | ||
6686 | ia.h \ | ||
6687 | iaf.h \ | ||
6688 | inttypes.h \ | ||
6689 | langinfo.h \ | ||
6690 | limits.h \ | ||
6691 | locale.h \ | ||
6692 | login.h \ | ||
6693 | maillock.h \ | ||
6694 | ndir.h \ | ||
6695 | net/if_tun.h \ | ||
6696 | netdb.h \ | ||
6697 | netgroup.h \ | ||
6698 | pam/pam_appl.h \ | ||
6699 | paths.h \ | ||
6700 | poll.h \ | ||
6701 | pty.h \ | ||
6702 | readpassphrase.h \ | ||
6703 | rpc/types.h \ | ||
6704 | security/pam_appl.h \ | ||
6705 | sha2.h \ | ||
6706 | shadow.h \ | ||
6707 | stddef.h \ | ||
6708 | stdint.h \ | ||
6709 | string.h \ | ||
6710 | strings.h \ | ||
6711 | sys/audit.h \ | ||
6712 | sys/bitypes.h \ | ||
6713 | sys/bsdtty.h \ | ||
6714 | sys/capability.h \ | ||
6715 | sys/cdefs.h \ | ||
6716 | sys/dir.h \ | ||
6717 | sys/mman.h \ | ||
6718 | sys/ndir.h \ | ||
6719 | sys/poll.h \ | ||
6720 | sys/prctl.h \ | ||
6721 | sys/pstat.h \ | ||
6722 | sys/ptrace.h \ | ||
6723 | sys/select.h \ | ||
6724 | sys/stat.h \ | ||
6725 | sys/stream.h \ | ||
6726 | sys/stropts.h \ | ||
6727 | sys/strtio.h \ | ||
6728 | sys/statvfs.h \ | ||
6729 | sys/sysmacros.h \ | ||
6730 | sys/time.h \ | ||
6731 | sys/timers.h \ | ||
6732 | time.h \ | ||
6733 | tmpdir.h \ | ||
6734 | ttyent.h \ | ||
6735 | ucred.h \ | ||
6736 | unistd.h \ | ||
6737 | usersec.h \ | ||
6738 | util.h \ | ||
6739 | utime.h \ | ||
6740 | utmp.h \ | ||
6741 | utmpx.h \ | ||
6742 | vis.h \ | ||
6743 | wchar.h \ | ||
6744 | |||
6745 | do : | ||
6746 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6747 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
6748 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
6749 | cat >>confdefs.h <<_ACEOF | ||
6750 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6751 | _ACEOF | ||
6752 | |||
6753 | fi | ||
6754 | |||
6755 | done | ||
6756 | |||
6757 | |||
6758 | # lastlog.h requires sys/time.h to be included first on Solaris | ||
6759 | for ac_header in lastlog.h | ||
6760 | do : | ||
6761 | ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" " | ||
6762 | #ifdef HAVE_SYS_TIME_H | ||
6763 | # include <sys/time.h> | ||
6764 | #endif | ||
6765 | |||
6766 | " | ||
6767 | if test "x$ac_cv_header_lastlog_h" = xyes; then : | ||
6768 | cat >>confdefs.h <<_ACEOF | ||
6769 | #define HAVE_LASTLOG_H 1 | ||
6770 | _ACEOF | ||
6771 | |||
6772 | fi | ||
6773 | |||
6774 | done | ||
6775 | |||
6776 | |||
6777 | # sys/ptms.h requires sys/stream.h to be included first on Solaris | ||
6778 | for ac_header in sys/ptms.h | ||
6779 | do : | ||
6780 | ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" " | ||
6781 | #ifdef HAVE_SYS_STREAM_H | ||
6782 | # include <sys/stream.h> | ||
6783 | #endif | ||
6784 | |||
6785 | " | ||
6786 | if test "x$ac_cv_header_sys_ptms_h" = xyes; then : | ||
6787 | cat >>confdefs.h <<_ACEOF | ||
6788 | #define HAVE_SYS_PTMS_H 1 | ||
6789 | _ACEOF | ||
6790 | |||
6791 | fi | ||
6792 | |||
6793 | done | ||
6794 | |||
6795 | |||
6796 | # login_cap.h requires sys/types.h on NetBSD | ||
6797 | for ac_header in login_cap.h | ||
6798 | do : | ||
6799 | ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" " | ||
6800 | #include <sys/types.h> | ||
6801 | |||
6802 | " | ||
6803 | if test "x$ac_cv_header_login_cap_h" = xyes; then : | ||
6804 | cat >>confdefs.h <<_ACEOF | ||
6805 | #define HAVE_LOGIN_CAP_H 1 | ||
6806 | _ACEOF | ||
6807 | |||
6808 | fi | ||
6809 | |||
6810 | done | ||
6811 | |||
6812 | |||
6813 | # older BSDs need sys/param.h before sys/mount.h | ||
6814 | for ac_header in sys/mount.h | ||
6815 | do : | ||
6816 | ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" " | ||
6817 | #include <sys/param.h> | ||
6818 | |||
6819 | " | ||
6820 | if test "x$ac_cv_header_sys_mount_h" = xyes; then : | ||
6821 | cat >>confdefs.h <<_ACEOF | ||
6822 | #define HAVE_SYS_MOUNT_H 1 | ||
6823 | _ACEOF | ||
6824 | |||
6825 | fi | ||
6826 | |||
6827 | done | ||
6828 | |||
6829 | |||
6830 | # Android requires sys/socket.h to be included before sys/un.h | ||
6831 | for ac_header in sys/un.h | ||
6832 | do : | ||
6833 | ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" " | ||
6834 | #include <sys/types.h> | ||
6835 | #include <sys/socket.h> | ||
6836 | |||
6837 | " | ||
6838 | if test "x$ac_cv_header_sys_un_h" = xyes; then : | ||
6839 | cat >>confdefs.h <<_ACEOF | ||
6840 | #define HAVE_SYS_UN_H 1 | ||
6841 | _ACEOF | ||
6842 | |||
6843 | fi | ||
6844 | |||
6845 | done | ||
6846 | |||
6847 | |||
6848 | # Messages for features tested for in target-specific section | ||
6849 | SIA_MSG="no" | ||
6850 | SPC_MSG="no" | ||
6851 | SP_MSG="no" | ||
6852 | SPP_MSG="no" | ||
6853 | |||
6854 | # Support for Solaris/Illumos privileges (this test is used by both | ||
6855 | # the --with-solaris-privs option and --with-sandbox=solaris). | ||
6856 | SOLARIS_PRIVS="no" | ||
6857 | |||
6858 | # Check for some target-specific stuff | ||
6859 | case "$host" in | ||
6860 | *-*-aix*) | ||
6861 | # Some versions of VAC won't allow macro redefinitions at | ||
6862 | # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that | ||
6863 | # particularly with older versions of vac or xlc. | ||
6864 | # It also throws errors about null macro argments, but these are | ||
6865 | # not fatal. | ||
6866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5 | ||
6867 | $as_echo_n "checking if compiler allows macro redefinitions... " >&6; } | ||
6868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6869 | /* end confdefs.h. */ | ||
6870 | |||
6871 | #define testmacro foo | ||
6872 | #define testmacro bar | ||
6873 | int | ||
6874 | main () | ||
6875 | { | ||
6876 | exit(0); | ||
6877 | ; | ||
6878 | return 0; | ||
6879 | } | ||
6880 | _ACEOF | ||
6881 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6883 | $as_echo "yes" >&6; } | ||
6884 | else | ||
6885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6886 | $as_echo "no" >&6; } | ||
6887 | CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`" | ||
6888 | LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`" | ||
6889 | CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
6890 | CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
6891 | |||
6892 | |||
6893 | fi | ||
6894 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6895 | |||
6896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5 | ||
6897 | $as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; } | ||
6898 | if (test -z "$blibpath"); then | ||
6899 | blibpath="/usr/lib:/lib" | ||
6900 | fi | ||
6901 | saved_LDFLAGS="$LDFLAGS" | ||
6902 | if test "$GCC" = "yes"; then | ||
6903 | flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:" | ||
6904 | else | ||
6905 | flags="-blibpath: -Wl,-blibpath: -Wl,-rpath," | ||
6906 | fi | ||
6907 | for tryflags in $flags ;do | ||
6908 | if (test -z "$blibflags"); then | ||
6909 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" | ||
6910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6911 | /* end confdefs.h. */ | ||
6912 | |||
6913 | int | ||
6914 | main () | ||
6915 | { | ||
6916 | |||
6917 | ; | ||
6918 | return 0; | ||
6919 | } | ||
6920 | _ACEOF | ||
6921 | if ac_fn_c_try_link "$LINENO"; then : | ||
6922 | blibflags=$tryflags | ||
6923 | fi | ||
6924 | rm -f core conftest.err conftest.$ac_objext \ | ||
6925 | conftest$ac_exeext conftest.$ac_ext | ||
6926 | fi | ||
6927 | done | ||
6928 | if (test -z "$blibflags"); then | ||
6929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
6930 | $as_echo "not found" >&6; } | ||
6931 | as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5 | ||
6932 | else | ||
6933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5 | ||
6934 | $as_echo "$blibflags" >&6; } | ||
6935 | fi | ||
6936 | LDFLAGS="$saved_LDFLAGS" | ||
6937 | ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate" | ||
6938 | if test "x$ac_cv_func_authenticate" = xyes; then : | ||
6939 | |||
6940 | $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h | ||
6941 | |||
6942 | else | ||
6943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5 | ||
6944 | $as_echo_n "checking for authenticate in -ls... " >&6; } | ||
6945 | if ${ac_cv_lib_s_authenticate+:} false; then : | ||
6946 | $as_echo_n "(cached) " >&6 | ||
6947 | else | ||
6948 | ac_check_lib_save_LIBS=$LIBS | ||
6949 | LIBS="-ls $LIBS" | ||
6950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6951 | /* end confdefs.h. */ | ||
6952 | |||
6953 | /* Override any GCC internal prototype to avoid an error. | ||
6954 | Use char because int might match the return type of a GCC | ||
6955 | builtin and then its argument prototype would still apply. */ | ||
6956 | #ifdef __cplusplus | ||
6957 | extern "C" | ||
6958 | #endif | ||
6959 | char authenticate (); | ||
6960 | int | ||
6961 | main () | ||
6962 | { | ||
6963 | return authenticate (); | ||
6964 | ; | ||
6965 | return 0; | ||
6966 | } | ||
6967 | _ACEOF | ||
6968 | if ac_fn_c_try_link "$LINENO"; then : | ||
6969 | ac_cv_lib_s_authenticate=yes | ||
6970 | else | ||
6971 | ac_cv_lib_s_authenticate=no | ||
6972 | fi | ||
6973 | rm -f core conftest.err conftest.$ac_objext \ | ||
6974 | conftest$ac_exeext conftest.$ac_ext | ||
6975 | LIBS=$ac_check_lib_save_LIBS | ||
6976 | fi | ||
6977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5 | ||
6978 | $as_echo "$ac_cv_lib_s_authenticate" >&6; } | ||
6979 | if test "x$ac_cv_lib_s_authenticate" = xyes; then : | ||
6980 | $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h | ||
6981 | |||
6982 | LIBS="$LIBS -ls" | ||
6983 | |||
6984 | fi | ||
6985 | |||
6986 | |||
6987 | fi | ||
6988 | |||
6989 | ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h> | ||
6990 | " | ||
6991 | if test "x$ac_cv_have_decl_authenticate" = xyes; then : | ||
6992 | ac_have_decl=1 | ||
6993 | else | ||
6994 | ac_have_decl=0 | ||
6995 | fi | ||
6996 | |||
6997 | cat >>confdefs.h <<_ACEOF | ||
6998 | #define HAVE_DECL_AUTHENTICATE $ac_have_decl | ||
6999 | _ACEOF | ||
7000 | ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h> | ||
7001 | " | ||
7002 | if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then : | ||
7003 | ac_have_decl=1 | ||
7004 | else | ||
7005 | ac_have_decl=0 | ||
7006 | fi | ||
7007 | |||
7008 | cat >>confdefs.h <<_ACEOF | ||
7009 | #define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl | ||
7010 | _ACEOF | ||
7011 | ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h> | ||
7012 | " | ||
7013 | if test "x$ac_cv_have_decl_loginsuccess" = xyes; then : | ||
7014 | ac_have_decl=1 | ||
7015 | else | ||
7016 | ac_have_decl=0 | ||
7017 | fi | ||
7018 | |||
7019 | cat >>confdefs.h <<_ACEOF | ||
7020 | #define HAVE_DECL_LOGINSUCCESS $ac_have_decl | ||
7021 | _ACEOF | ||
7022 | ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h> | ||
7023 | " | ||
7024 | if test "x$ac_cv_have_decl_passwdexpired" = xyes; then : | ||
7025 | ac_have_decl=1 | ||
7026 | else | ||
7027 | ac_have_decl=0 | ||
7028 | fi | ||
7029 | |||
7030 | cat >>confdefs.h <<_ACEOF | ||
7031 | #define HAVE_DECL_PASSWDEXPIRED $ac_have_decl | ||
7032 | _ACEOF | ||
7033 | ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h> | ||
7034 | " | ||
7035 | if test "x$ac_cv_have_decl_setauthdb" = xyes; then : | ||
7036 | ac_have_decl=1 | ||
7037 | else | ||
7038 | ac_have_decl=0 | ||
7039 | fi | ||
7040 | |||
7041 | cat >>confdefs.h <<_ACEOF | ||
7042 | #define HAVE_DECL_SETAUTHDB $ac_have_decl | ||
7043 | _ACEOF | ||
7044 | |||
7045 | ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h> | ||
7046 | |||
7047 | " | ||
7048 | if test "x$ac_cv_have_decl_loginfailed" = xyes; then : | ||
7049 | ac_have_decl=1 | ||
7050 | else | ||
7051 | ac_have_decl=0 | ||
7052 | fi | ||
7053 | |||
7054 | cat >>confdefs.h <<_ACEOF | ||
7055 | #define HAVE_DECL_LOGINFAILED $ac_have_decl | ||
7056 | _ACEOF | ||
7057 | if test $ac_have_decl = 1; then : | ||
7058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5 | ||
7059 | $as_echo_n "checking if loginfailed takes 4 arguments... " >&6; } | ||
7060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7061 | /* end confdefs.h. */ | ||
7062 | #include <usersec.h> | ||
7063 | int | ||
7064 | main () | ||
7065 | { | ||
7066 | (void)loginfailed("user","host","tty",0); | ||
7067 | ; | ||
7068 | return 0; | ||
7069 | } | ||
7070 | _ACEOF | ||
7071 | if ac_fn_c_try_compile "$LINENO"; then : | ||
7072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
7073 | $as_echo "yes" >&6; } | ||
7074 | |||
7075 | $as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h | ||
7076 | |||
7077 | else | ||
7078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7079 | $as_echo "no" >&6; } | ||
7080 | |||
7081 | fi | ||
7082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7083 | fi | ||
7084 | |||
7085 | for ac_func in getgrset setauthdb | ||
7086 | do : | ||
7087 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7088 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
7089 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
7090 | cat >>confdefs.h <<_ACEOF | ||
7091 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7092 | _ACEOF | ||
7093 | |||
7094 | fi | ||
7095 | done | ||
7096 | |||
7097 | ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h> | ||
7098 | #include <fcntl.h> | ||
7099 | |||
7100 | " | ||
7101 | if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then : | ||
7102 | |||
7103 | $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h | ||
7104 | |||
7105 | fi | ||
7106 | |||
7107 | check_for_aix_broken_getaddrinfo=1 | ||
7108 | |||
7109 | $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h | ||
7110 | |||
7111 | |||
7112 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7113 | |||
7114 | |||
7115 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7116 | |||
7117 | |||
7118 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7119 | |||
7120 | |||
7121 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
7122 | |||
7123 | |||
7124 | $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h | ||
7125 | |||
7126 | |||
7127 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
7128 | |||
7129 | |||
7130 | $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h | ||
7131 | |||
7132 | |||
7133 | $as_echo "#define PTY_ZEROREAD 1" >>confdefs.h | ||
7134 | |||
7135 | |||
7136 | $as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h | ||
7137 | |||
7138 | ;; | ||
7139 | *-*-android*) | ||
7140 | |||
7141 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
7142 | |||
7143 | |||
7144 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
7145 | |||
7146 | ;; | ||
7147 | *-*-cygwin*) | ||
7148 | check_for_libcrypt_later=1 | ||
7149 | LIBS="$LIBS /usr/lib/textreadmode.o" | ||
7150 | |||
7151 | $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h | ||
7152 | |||
7153 | |||
7154 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7155 | |||
7156 | |||
7157 | $as_echo "#define NO_UID_RESTORATION_TEST 1" >>confdefs.h | ||
7158 | |||
7159 | |||
7160 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h | ||
7161 | |||
7162 | |||
7163 | $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h | ||
7164 | |||
7165 | |||
7166 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
7167 | |||
7168 | |||
7169 | $as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h | ||
7170 | |||
7171 | |||
7172 | $as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h | ||
7173 | |||
7174 | # Cygwin defines optargs, optargs as declspec(dllimport) for historical | ||
7175 | # reasons which cause compile warnings, so we disable those warnings. | ||
7176 | { | ||
7177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wno-attributes" >&5 | ||
7178 | $as_echo_n "checking if $CC supports compile flag -Wno-attributes... " >&6; } | ||
7179 | saved_CFLAGS="$CFLAGS" | ||
7180 | CFLAGS="$CFLAGS $WERROR -Wno-attributes" | ||
7181 | _define_flag="" | ||
7182 | test "x$_define_flag" = "x" && _define_flag="-Wno-attributes" | ||
7183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7184 | /* end confdefs.h. */ | ||
7185 | |||
7186 | #include <stdlib.h> | ||
7187 | #include <stdio.h> | ||
7188 | int main(int argc, char **argv) { | ||
7189 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
7190 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
7191 | float l = i * 2.1; | ||
7192 | double m = l / 0.5; | ||
7193 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
7194 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
7195 | exit(0); | ||
7196 | } | ||
7197 | |||
7198 | _ACEOF | ||
7199 | if ac_fn_c_try_compile "$LINENO"; then : | ||
7200 | |||
7201 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
7202 | then | ||
7203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7204 | $as_echo "no" >&6; } | ||
7205 | CFLAGS="$saved_CFLAGS" | ||
7206 | else | ||
7207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
7208 | $as_echo "yes" >&6; } | ||
7209 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
7210 | fi | ||
7211 | else | ||
7212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7213 | $as_echo "no" >&6; } | ||
7214 | CFLAGS="$saved_CFLAGS" | ||
7215 | |||
7216 | fi | ||
7217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7218 | } | ||
7219 | ;; | ||
7220 | *-*-dgux*) | ||
7221 | |||
7222 | $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h | ||
7223 | |||
7224 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7225 | |||
7226 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7227 | |||
7228 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7229 | |||
7230 | ;; | ||
7231 | *-*-darwin*) | ||
7232 | use_pie=auto | ||
7233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5 | ||
7234 | $as_echo_n "checking if we have working getaddrinfo... " >&6; } | ||
7235 | if test "$cross_compiling" = yes; then : | ||
7236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5 | ||
7237 | $as_echo "assume it is working" >&6; } | ||
7238 | else | ||
7239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7240 | /* end confdefs.h. */ | ||
7241 | #include <mach-o/dyld.h> | ||
7242 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
7243 | exit(0); | ||
7244 | else | ||
7245 | exit(1); | ||
7246 | } | ||
7247 | |||
7248 | _ACEOF | ||
7249 | if ac_fn_c_try_run "$LINENO"; then : | ||
7250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5 | ||
7251 | $as_echo "working" >&6; } | ||
7252 | else | ||
7253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5 | ||
7254 | $as_echo "buggy" >&6; } | ||
7255 | |||
7256 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
7257 | |||
7258 | |||
7259 | fi | ||
7260 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
7261 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
7262 | fi | ||
7263 | |||
7264 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7265 | |||
7266 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7267 | |||
7268 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7269 | |||
7270 | |||
7271 | $as_echo "#define BROKEN_GLOB 1" >>confdefs.h | ||
7272 | |||
7273 | |||
7274 | cat >>confdefs.h <<_ACEOF | ||
7275 | #define BIND_8_COMPAT 1 | ||
7276 | _ACEOF | ||
7277 | |||
7278 | |||
7279 | $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h | ||
7280 | |||
7281 | |||
7282 | $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h | ||
7283 | |||
7284 | |||
7285 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h | ||
7286 | |||
7287 | |||
7288 | ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default" | ||
7289 | if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then : | ||
7290 | |||
7291 | else | ||
7292 | |||
7293 | $as_echo "#define AU_IPv4 0" >>confdefs.h | ||
7294 | |||
7295 | #include <bsm/audit.h> | ||
7296 | |||
7297 | $as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h | ||
7298 | |||
7299 | |||
7300 | fi | ||
7301 | |||
7302 | |||
7303 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
7304 | |||
7305 | for ac_func in sandbox_init | ||
7306 | do : | ||
7307 | ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init" | ||
7308 | if test "x$ac_cv_func_sandbox_init" = xyes; then : | ||
7309 | cat >>confdefs.h <<_ACEOF | ||
7310 | #define HAVE_SANDBOX_INIT 1 | ||
7311 | _ACEOF | ||
7312 | |||
7313 | fi | ||
7314 | done | ||
7315 | |||
7316 | for ac_header in sandbox.h | ||
7317 | do : | ||
7318 | ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default" | ||
7319 | if test "x$ac_cv_header_sandbox_h" = xyes; then : | ||
7320 | cat >>confdefs.h <<_ACEOF | ||
7321 | #define HAVE_SANDBOX_H 1 | ||
7322 | _ACEOF | ||
7323 | |||
7324 | fi | ||
7325 | |||
7326 | done | ||
7327 | |||
7328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox_apply in -lsandbox" >&5 | ||
7329 | $as_echo_n "checking for sandbox_apply in -lsandbox... " >&6; } | ||
7330 | if ${ac_cv_lib_sandbox_sandbox_apply+:} false; then : | ||
7331 | $as_echo_n "(cached) " >&6 | ||
7332 | else | ||
7333 | ac_check_lib_save_LIBS=$LIBS | ||
7334 | LIBS="-lsandbox $LIBS" | ||
7335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7336 | /* end confdefs.h. */ | ||
7337 | |||
7338 | /* Override any GCC internal prototype to avoid an error. | ||
7339 | Use char because int might match the return type of a GCC | ||
7340 | builtin and then its argument prototype would still apply. */ | ||
7341 | #ifdef __cplusplus | ||
7342 | extern "C" | ||
7343 | #endif | ||
7344 | char sandbox_apply (); | ||
7345 | int | ||
7346 | main () | ||
7347 | { | ||
7348 | return sandbox_apply (); | ||
7349 | ; | ||
7350 | return 0; | ||
7351 | } | ||
7352 | _ACEOF | ||
7353 | if ac_fn_c_try_link "$LINENO"; then : | ||
7354 | ac_cv_lib_sandbox_sandbox_apply=yes | ||
7355 | else | ||
7356 | ac_cv_lib_sandbox_sandbox_apply=no | ||
7357 | fi | ||
7358 | rm -f core conftest.err conftest.$ac_objext \ | ||
7359 | conftest$ac_exeext conftest.$ac_ext | ||
7360 | LIBS=$ac_check_lib_save_LIBS | ||
7361 | fi | ||
7362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sandbox_sandbox_apply" >&5 | ||
7363 | $as_echo "$ac_cv_lib_sandbox_sandbox_apply" >&6; } | ||
7364 | if test "x$ac_cv_lib_sandbox_sandbox_apply" = xyes; then : | ||
7365 | |||
7366 | SSHDLIBS="$SSHDLIBS -lsandbox" | ||
7367 | |||
7368 | fi | ||
7369 | |||
7370 | ;; | ||
7371 | *-*-dragonfly*) | ||
7372 | SSHDLIBS="$SSHDLIBS -lcrypt" | ||
7373 | TEST_MALLOC_OPTIONS="AFGJPRX" | ||
7374 | ;; | ||
7375 | *-*-haiku*) | ||
7376 | LIBS="$LIBS -lbsd " | ||
7377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5 | ||
7378 | $as_echo_n "checking for socket in -lnetwork... " >&6; } | ||
7379 | if ${ac_cv_lib_network_socket+:} false; then : | ||
7380 | $as_echo_n "(cached) " >&6 | ||
7381 | else | ||
7382 | ac_check_lib_save_LIBS=$LIBS | ||
7383 | LIBS="-lnetwork $LIBS" | ||
7384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7385 | /* end confdefs.h. */ | ||
7386 | |||
7387 | /* Override any GCC internal prototype to avoid an error. | ||
7388 | Use char because int might match the return type of a GCC | ||
7389 | builtin and then its argument prototype would still apply. */ | ||
7390 | #ifdef __cplusplus | ||
7391 | extern "C" | ||
7392 | #endif | ||
7393 | char socket (); | ||
7394 | int | ||
7395 | main () | ||
7396 | { | ||
7397 | return socket (); | ||
7398 | ; | ||
7399 | return 0; | ||
7400 | } | ||
7401 | _ACEOF | ||
7402 | if ac_fn_c_try_link "$LINENO"; then : | ||
7403 | ac_cv_lib_network_socket=yes | ||
7404 | else | ||
7405 | ac_cv_lib_network_socket=no | ||
7406 | fi | ||
7407 | rm -f core conftest.err conftest.$ac_objext \ | ||
7408 | conftest$ac_exeext conftest.$ac_ext | ||
7409 | LIBS=$ac_check_lib_save_LIBS | ||
7410 | fi | ||
7411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5 | ||
7412 | $as_echo "$ac_cv_lib_network_socket" >&6; } | ||
7413 | if test "x$ac_cv_lib_network_socket" = xyes; then : | ||
7414 | cat >>confdefs.h <<_ACEOF | ||
7415 | #define HAVE_LIBNETWORK 1 | ||
7416 | _ACEOF | ||
7417 | |||
7418 | LIBS="-lnetwork $LIBS" | ||
7419 | |||
7420 | fi | ||
7421 | |||
7422 | $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h | ||
7423 | |||
7424 | MANTYPE=man | ||
7425 | ;; | ||
7426 | *-*-hpux*) | ||
7427 | # first we define all of the options common to all HP-UX releases | ||
7428 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
7429 | IPADDR_IN_DISPLAY=yes | ||
7430 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7431 | |||
7432 | $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h | ||
7433 | |||
7434 | |||
7435 | $as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h | ||
7436 | |||
7437 | $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h | ||
7438 | |||
7439 | |||
7440 | $as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h | ||
7441 | |||
7442 | maildir="/var/mail" | ||
7443 | LIBS="$LIBS -lsec" | ||
7444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5 | ||
7445 | $as_echo_n "checking for t_error in -lxnet... " >&6; } | ||
7446 | if ${ac_cv_lib_xnet_t_error+:} false; then : | ||
7447 | $as_echo_n "(cached) " >&6 | ||
7448 | else | ||
7449 | ac_check_lib_save_LIBS=$LIBS | ||
7450 | LIBS="-lxnet $LIBS" | ||
7451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7452 | /* end confdefs.h. */ | ||
7453 | |||
7454 | /* Override any GCC internal prototype to avoid an error. | ||
7455 | Use char because int might match the return type of a GCC | ||
7456 | builtin and then its argument prototype would still apply. */ | ||
7457 | #ifdef __cplusplus | ||
7458 | extern "C" | ||
7459 | #endif | ||
7460 | char t_error (); | ||
7461 | int | ||
7462 | main () | ||
7463 | { | ||
7464 | return t_error (); | ||
7465 | ; | ||
7466 | return 0; | ||
7467 | } | ||
7468 | _ACEOF | ||
7469 | if ac_fn_c_try_link "$LINENO"; then : | ||
7470 | ac_cv_lib_xnet_t_error=yes | ||
7471 | else | ||
7472 | ac_cv_lib_xnet_t_error=no | ||
7473 | fi | ||
7474 | rm -f core conftest.err conftest.$ac_objext \ | ||
7475 | conftest$ac_exeext conftest.$ac_ext | ||
7476 | LIBS=$ac_check_lib_save_LIBS | ||
7477 | fi | ||
7478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5 | ||
7479 | $as_echo "$ac_cv_lib_xnet_t_error" >&6; } | ||
7480 | if test "x$ac_cv_lib_xnet_t_error" = xyes; then : | ||
7481 | cat >>confdefs.h <<_ACEOF | ||
7482 | #define HAVE_LIBXNET 1 | ||
7483 | _ACEOF | ||
7484 | |||
7485 | LIBS="-lxnet $LIBS" | ||
7486 | |||
7487 | else | ||
7488 | as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5 | ||
7489 | fi | ||
7490 | |||
7491 | |||
7492 | # next, we define all of the options specific to major releases | ||
7493 | case "$host" in | ||
7494 | *-*-hpux10*) | ||
7495 | if test -z "$GCC"; then | ||
7496 | CFLAGS="$CFLAGS -Ae" | ||
7497 | fi | ||
7498 | ;; | ||
7499 | *-*-hpux11*) | ||
7500 | |||
7501 | $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h | ||
7502 | |||
7503 | |||
7504 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
7505 | |||
7506 | |||
7507 | $as_echo "#define USE_BTMP 1" >>confdefs.h | ||
7508 | |||
7509 | check_for_hpux_broken_getaddrinfo=1 | ||
7510 | check_for_conflicting_getspnam=1 | ||
7511 | ;; | ||
7512 | esac | ||
7513 | |||
7514 | # lastly, we define options specific to minor releases | ||
7515 | case "$host" in | ||
7516 | *-*-hpux10.26) | ||
7517 | |||
7518 | $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h | ||
7519 | |||
7520 | disable_ptmx_check=yes | ||
7521 | LIBS="$LIBS -lsecpw" | ||
7522 | ;; | ||
7523 | esac | ||
7524 | ;; | ||
7525 | *-*-irix5*) | ||
7526 | PATH="$PATH:/usr/etc" | ||
7527 | |||
7528 | $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h | ||
7529 | |||
7530 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7531 | |||
7532 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7533 | |||
7534 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7535 | |||
7536 | |||
7537 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h | ||
7538 | |||
7539 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
7540 | |||
7541 | ;; | ||
7542 | *-*-irix6*) | ||
7543 | PATH="$PATH:/usr/etc" | ||
7544 | |||
7545 | $as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h | ||
7546 | |||
7547 | |||
7548 | $as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h | ||
7549 | |||
7550 | |||
7551 | $as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h | ||
7552 | |||
7553 | ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob" | ||
7554 | if test "x$ac_cv_func_jlimit_startjob" = xyes; then : | ||
7555 | |||
7556 | $as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h | ||
7557 | |||
7558 | fi | ||
7559 | |||
7560 | $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h | ||
7561 | |||
7562 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7563 | |||
7564 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7565 | |||
7566 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7567 | |||
7568 | |||
7569 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h | ||
7570 | |||
7571 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h | ||
7572 | |||
7573 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
7574 | |||
7575 | ;; | ||
7576 | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | ||
7577 | check_for_libcrypt_later=1 | ||
7578 | $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h | ||
7579 | |||
7580 | $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h | ||
7581 | |||
7582 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
7583 | |||
7584 | |||
7585 | $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h | ||
7586 | |||
7587 | |||
7588 | $as_echo "#define USE_BTMP 1" >>confdefs.h | ||
7589 | |||
7590 | ;; | ||
7591 | *-*-linux*) | ||
7592 | no_dev_ptmx=1 | ||
7593 | use_pie=auto | ||
7594 | check_for_libcrypt_later=1 | ||
7595 | check_for_openpty_ctty_bug=1 | ||
7596 | |||
7597 | $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h | ||
7598 | |||
7599 | |||
7600 | $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h | ||
7601 | |||
7602 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
7603 | |||
7604 | |||
7605 | $as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h | ||
7606 | |||
7607 | |||
7608 | $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h | ||
7609 | |||
7610 | $as_echo "#define USE_BTMP 1" >>confdefs.h | ||
7611 | |||
7612 | |||
7613 | $as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h | ||
7614 | |||
7615 | inet6_default_4in6=yes | ||
7616 | case `uname -r` in | ||
7617 | 1.*|2.0.*) | ||
7618 | |||
7619 | $as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h | ||
7620 | |||
7621 | ;; | ||
7622 | esac | ||
7623 | # tun(4) forwarding compat code | ||
7624 | for ac_header in linux/if_tun.h | ||
7625 | do : | ||
7626 | ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default" | ||
7627 | if test "x$ac_cv_header_linux_if_tun_h" = xyes; then : | ||
7628 | cat >>confdefs.h <<_ACEOF | ||
7629 | #define HAVE_LINUX_IF_TUN_H 1 | ||
7630 | _ACEOF | ||
7631 | |||
7632 | fi | ||
7633 | |||
7634 | done | ||
7635 | |||
7636 | if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then | ||
7637 | |||
7638 | $as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h | ||
7639 | |||
7640 | |||
7641 | $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h | ||
7642 | |||
7643 | |||
7644 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h | ||
7645 | |||
7646 | fi | ||
7647 | for ac_header in linux/seccomp.h linux/filter.h linux/audit.h | ||
7648 | do : | ||
7649 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7650 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <linux/types.h> | ||
7651 | " | ||
7652 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
7653 | cat >>confdefs.h <<_ACEOF | ||
7654 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7655 | _ACEOF | ||
7656 | |||
7657 | fi | ||
7658 | |||
7659 | done | ||
7660 | |||
7661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp architecture" >&5 | ||
7662 | $as_echo_n "checking for seccomp architecture... " >&6; } | ||
7663 | seccomp_audit_arch= | ||
7664 | case "$host" in | ||
7665 | x86_64-*) | ||
7666 | seccomp_audit_arch=AUDIT_ARCH_X86_64 | ||
7667 | ;; | ||
7668 | i*86-*) | ||
7669 | seccomp_audit_arch=AUDIT_ARCH_I386 | ||
7670 | ;; | ||
7671 | arm*-*) | ||
7672 | seccomp_audit_arch=AUDIT_ARCH_ARM | ||
7673 | ;; | ||
7674 | aarch64*-*) | ||
7675 | seccomp_audit_arch=AUDIT_ARCH_AARCH64 | ||
7676 | ;; | ||
7677 | s390x-*) | ||
7678 | seccomp_audit_arch=AUDIT_ARCH_S390X | ||
7679 | ;; | ||
7680 | s390-*) | ||
7681 | seccomp_audit_arch=AUDIT_ARCH_S390 | ||
7682 | ;; | ||
7683 | powerpc64-*) | ||
7684 | seccomp_audit_arch=AUDIT_ARCH_PPC64 | ||
7685 | ;; | ||
7686 | powerpc64le-*) | ||
7687 | seccomp_audit_arch=AUDIT_ARCH_PPC64LE | ||
7688 | ;; | ||
7689 | mips-*) | ||
7690 | seccomp_audit_arch=AUDIT_ARCH_MIPS | ||
7691 | ;; | ||
7692 | mipsel-*) | ||
7693 | seccomp_audit_arch=AUDIT_ARCH_MIPSEL | ||
7694 | ;; | ||
7695 | mips64-*) | ||
7696 | seccomp_audit_arch=AUDIT_ARCH_MIPS64 | ||
7697 | ;; | ||
7698 | mips64el-*) | ||
7699 | seccomp_audit_arch=AUDIT_ARCH_MIPSEL64 | ||
7700 | ;; | ||
7701 | esac | ||
7702 | if test "x$seccomp_audit_arch" != "x" ; then | ||
7703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$seccomp_audit_arch\"" >&5 | ||
7704 | $as_echo "\"$seccomp_audit_arch\"" >&6; } | ||
7705 | |||
7706 | cat >>confdefs.h <<_ACEOF | ||
7707 | #define SECCOMP_AUDIT_ARCH $seccomp_audit_arch | ||
7708 | _ACEOF | ||
7709 | |||
7710 | else | ||
7711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: architecture not supported" >&5 | ||
7712 | $as_echo "architecture not supported" >&6; } | ||
7713 | fi | ||
7714 | ;; | ||
7715 | mips-sony-bsd|mips-sony-newsos4) | ||
7716 | |||
7717 | $as_echo "#define NEED_SETPGRP 1" >>confdefs.h | ||
7718 | |||
7719 | SONY=1 | ||
7720 | ;; | ||
7721 | *-*-netbsd*) | ||
7722 | check_for_libcrypt_before=1 | ||
7723 | if test "x$withval" != "xno" ; then | ||
7724 | need_dash_r=1 | ||
7725 | fi | ||
7726 | CPPFLAGS="$CPPFLAGS -D_OPENBSD_SOURCE" | ||
7727 | |||
7728 | $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h | ||
7729 | |||
7730 | ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default" | ||
7731 | if test "x$ac_cv_header_net_if_tap_h" = xyes; then : | ||
7732 | |||
7733 | else | ||
7734 | |||
7735 | $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h | ||
7736 | |||
7737 | fi | ||
7738 | |||
7739 | |||
7740 | |||
7741 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h | ||
7742 | |||
7743 | TEST_MALLOC_OPTIONS="AJRX" | ||
7744 | |||
7745 | $as_echo "#define BROKEN_READ_COMPARISON 1" >>confdefs.h | ||
7746 | |||
7747 | ;; | ||
7748 | *-*-freebsd*) | ||
7749 | check_for_libcrypt_later=1 | ||
7750 | |||
7751 | $as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h | ||
7752 | |||
7753 | |||
7754 | $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h | ||
7755 | |||
7756 | ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default" | ||
7757 | if test "x$ac_cv_header_net_if_tap_h" = xyes; then : | ||
7758 | |||
7759 | else | ||
7760 | |||
7761 | $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h | ||
7762 | |||
7763 | fi | ||
7764 | |||
7765 | |||
7766 | |||
7767 | $as_echo "#define BROKEN_GLOB 1" >>confdefs.h | ||
7768 | |||
7769 | TEST_MALLOC_OPTIONS="AJRX" | ||
7770 | # Preauth crypto occasionally uses file descriptors for crypto offload | ||
7771 | # and will crash if they cannot be opened. | ||
7772 | |||
7773 | $as_echo "#define SANDBOX_SKIP_RLIMIT_NOFILE 1" >>confdefs.h | ||
7774 | |||
7775 | ;; | ||
7776 | *-*-bsdi*) | ||
7777 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7778 | |||
7779 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7780 | |||
7781 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7782 | |||
7783 | ;; | ||
7784 | *-next-*) | ||
7785 | conf_lastlog_location="/usr/adm/lastlog" | ||
7786 | conf_utmp_location=/etc/utmp | ||
7787 | conf_wtmp_location=/usr/adm/wtmp | ||
7788 | maildir=/usr/spool/mail | ||
7789 | |||
7790 | $as_echo "#define HAVE_NEXT 1" >>confdefs.h | ||
7791 | |||
7792 | $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h | ||
7793 | |||
7794 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7795 | |||
7796 | |||
7797 | $as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h | ||
7798 | |||
7799 | ;; | ||
7800 | *-*-openbsd*) | ||
7801 | use_pie=auto | ||
7802 | |||
7803 | $as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h | ||
7804 | |||
7805 | |||
7806 | $as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h | ||
7807 | |||
7808 | |||
7809 | $as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h | ||
7810 | |||
7811 | |||
7812 | $as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h | ||
7813 | |||
7814 | TEST_MALLOC_OPTIONS="AFGJPRX" | ||
7815 | ;; | ||
7816 | *-*-solaris*) | ||
7817 | if test "x$withval" != "xno" ; then | ||
7818 | need_dash_r=1 | ||
7819 | fi | ||
7820 | $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h | ||
7821 | |||
7822 | $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h | ||
7823 | |||
7824 | $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h | ||
7825 | |||
7826 | |||
7827 | $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h | ||
7828 | |||
7829 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
7830 | |||
7831 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. | ||
7832 | |||
7833 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
7834 | |||
7835 | |||
7836 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
7837 | |||
7838 | |||
7839 | $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h | ||
7840 | |||
7841 | external_path_file=/etc/default/login | ||
7842 | # hardwire lastlog location (can't detect it on some versions) | ||
7843 | conf_lastlog_location="/var/adm/lastlog" | ||
7844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
7845 | $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; } | ||
7846 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
7847 | if test "$sol2ver" -ge 8; then | ||
7848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
7849 | $as_echo "yes" >&6; } | ||
7850 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
7851 | |||
7852 | |||
7853 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
7854 | |||
7855 | else | ||
7856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7857 | $as_echo "no" >&6; } | ||
7858 | fi | ||
7859 | for ac_func in setpflags | ||
7860 | do : | ||
7861 | ac_fn_c_check_func "$LINENO" "setpflags" "ac_cv_func_setpflags" | ||
7862 | if test "x$ac_cv_func_setpflags" = xyes; then : | ||
7863 | cat >>confdefs.h <<_ACEOF | ||
7864 | #define HAVE_SETPFLAGS 1 | ||
7865 | _ACEOF | ||
7866 | |||
7867 | fi | ||
7868 | done | ||
7869 | |||
7870 | for ac_func in setppriv | ||
7871 | do : | ||
7872 | ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv" | ||
7873 | if test "x$ac_cv_func_setppriv" = xyes; then : | ||
7874 | cat >>confdefs.h <<_ACEOF | ||
7875 | #define HAVE_SETPPRIV 1 | ||
7876 | _ACEOF | ||
7877 | |||
7878 | fi | ||
7879 | done | ||
7880 | |||
7881 | for ac_func in priv_basicset | ||
7882 | do : | ||
7883 | ac_fn_c_check_func "$LINENO" "priv_basicset" "ac_cv_func_priv_basicset" | ||
7884 | if test "x$ac_cv_func_priv_basicset" = xyes; then : | ||
7885 | cat >>confdefs.h <<_ACEOF | ||
7886 | #define HAVE_PRIV_BASICSET 1 | ||
7887 | _ACEOF | ||
7888 | |||
7889 | fi | ||
7890 | done | ||
7891 | |||
7892 | for ac_header in priv.h | ||
7893 | do : | ||
7894 | ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default" | ||
7895 | if test "x$ac_cv_header_priv_h" = xyes; then : | ||
7896 | cat >>confdefs.h <<_ACEOF | ||
7897 | #define HAVE_PRIV_H 1 | ||
7898 | _ACEOF | ||
7899 | |||
7900 | fi | ||
7901 | |||
7902 | done | ||
7903 | |||
7904 | |||
7905 | # Check whether --with-solaris-contracts was given. | ||
7906 | if test "${with_solaris_contracts+set}" = set; then : | ||
7907 | withval=$with_solaris_contracts; | ||
7908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5 | ||
7909 | $as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; } | ||
7910 | if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then : | ||
7911 | $as_echo_n "(cached) " >&6 | ||
7912 | else | ||
7913 | ac_check_lib_save_LIBS=$LIBS | ||
7914 | LIBS="-lcontract $LIBS" | ||
7915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7916 | /* end confdefs.h. */ | ||
7917 | |||
7918 | /* Override any GCC internal prototype to avoid an error. | ||
7919 | Use char because int might match the return type of a GCC | ||
7920 | builtin and then its argument prototype would still apply. */ | ||
7921 | #ifdef __cplusplus | ||
7922 | extern "C" | ||
7923 | #endif | ||
7924 | char ct_tmpl_activate (); | ||
7925 | int | ||
7926 | main () | ||
7927 | { | ||
7928 | return ct_tmpl_activate (); | ||
7929 | ; | ||
7930 | return 0; | ||
7931 | } | ||
7932 | _ACEOF | ||
7933 | if ac_fn_c_try_link "$LINENO"; then : | ||
7934 | ac_cv_lib_contract_ct_tmpl_activate=yes | ||
7935 | else | ||
7936 | ac_cv_lib_contract_ct_tmpl_activate=no | ||
7937 | fi | ||
7938 | rm -f core conftest.err conftest.$ac_objext \ | ||
7939 | conftest$ac_exeext conftest.$ac_ext | ||
7940 | LIBS=$ac_check_lib_save_LIBS | ||
7941 | fi | ||
7942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5 | ||
7943 | $as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; } | ||
7944 | if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then : | ||
7945 | |||
7946 | $as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h | ||
7947 | |||
7948 | LIBS="$LIBS -lcontract" | ||
7949 | SPC_MSG="yes" | ||
7950 | fi | ||
7951 | |||
7952 | |||
7953 | fi | ||
7954 | |||
7955 | |||
7956 | # Check whether --with-solaris-projects was given. | ||
7957 | if test "${with_solaris_projects+set}" = set; then : | ||
7958 | withval=$with_solaris_projects; | ||
7959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5 | ||
7960 | $as_echo_n "checking for setproject in -lproject... " >&6; } | ||
7961 | if ${ac_cv_lib_project_setproject+:} false; then : | ||
7962 | $as_echo_n "(cached) " >&6 | ||
7963 | else | ||
7964 | ac_check_lib_save_LIBS=$LIBS | ||
7965 | LIBS="-lproject $LIBS" | ||
7966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7967 | /* end confdefs.h. */ | ||
7968 | |||
7969 | /* Override any GCC internal prototype to avoid an error. | ||
7970 | Use char because int might match the return type of a GCC | ||
7971 | builtin and then its argument prototype would still apply. */ | ||
7972 | #ifdef __cplusplus | ||
7973 | extern "C" | ||
7974 | #endif | ||
7975 | char setproject (); | ||
7976 | int | ||
7977 | main () | ||
7978 | { | ||
7979 | return setproject (); | ||
7980 | ; | ||
7981 | return 0; | ||
7982 | } | ||
7983 | _ACEOF | ||
7984 | if ac_fn_c_try_link "$LINENO"; then : | ||
7985 | ac_cv_lib_project_setproject=yes | ||
7986 | else | ||
7987 | ac_cv_lib_project_setproject=no | ||
7988 | fi | ||
7989 | rm -f core conftest.err conftest.$ac_objext \ | ||
7990 | conftest$ac_exeext conftest.$ac_ext | ||
7991 | LIBS=$ac_check_lib_save_LIBS | ||
7992 | fi | ||
7993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5 | ||
7994 | $as_echo "$ac_cv_lib_project_setproject" >&6; } | ||
7995 | if test "x$ac_cv_lib_project_setproject" = xyes; then : | ||
7996 | |||
7997 | $as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h | ||
7998 | |||
7999 | LIBS="$LIBS -lproject" | ||
8000 | SP_MSG="yes" | ||
8001 | fi | ||
8002 | |||
8003 | |||
8004 | fi | ||
8005 | |||
8006 | |||
8007 | # Check whether --with-solaris-privs was given. | ||
8008 | if test "${with_solaris_privs+set}" = set; then : | ||
8009 | withval=$with_solaris_privs; | ||
8010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/Illumos privilege support" >&5 | ||
8011 | $as_echo_n "checking for Solaris/Illumos privilege support... " >&6; } | ||
8012 | if test "x$ac_cv_func_setppriv" = "xyes" -a \ | ||
8013 | "x$ac_cv_header_priv_h" = "xyes" ; then | ||
8014 | SOLARIS_PRIVS=yes | ||
8015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 | ||
8016 | $as_echo "found" >&6; } | ||
8017 | |||
8018 | $as_echo "#define NO_UID_RESTORATION_TEST 1" >>confdefs.h | ||
8019 | |||
8020 | |||
8021 | $as_echo "#define USE_SOLARIS_PRIVS 1" >>confdefs.h | ||
8022 | |||
8023 | SPP_MSG="yes" | ||
8024 | else | ||
8025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
8026 | $as_echo "not found" >&6; } | ||
8027 | as_fn_error $? "*** must have support for Solaris privileges to use --with-solaris-privs" "$LINENO" 5 | ||
8028 | fi | ||
8029 | |||
8030 | fi | ||
8031 | |||
8032 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
8033 | ;; | ||
8034 | *-*-sunos4*) | ||
8035 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
8036 | for ac_func in getpwanam | ||
8037 | do : | ||
8038 | ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam" | ||
8039 | if test "x$ac_cv_func_getpwanam" = xyes; then : | ||
8040 | cat >>confdefs.h <<_ACEOF | ||
8041 | #define HAVE_GETPWANAM 1 | ||
8042 | _ACEOF | ||
8043 | |||
8044 | fi | ||
8045 | done | ||
8046 | |||
8047 | $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h | ||
8048 | |||
8049 | conf_utmp_location=/etc/utmp | ||
8050 | conf_wtmp_location=/var/adm/wtmp | ||
8051 | conf_lastlog_location=/var/adm/lastlog | ||
8052 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8053 | |||
8054 | ;; | ||
8055 | *-ncr-sysv*) | ||
8056 | LIBS="$LIBS -lc89" | ||
8057 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8058 | |||
8059 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
8060 | |||
8061 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8062 | |||
8063 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8064 | |||
8065 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8066 | |||
8067 | ;; | ||
8068 | *-sni-sysv*) | ||
8069 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
8070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 | ||
8071 | $as_echo_n "checking for dlsym in -ldl... " >&6; } | ||
8072 | if ${ac_cv_lib_dl_dlsym+:} false; then : | ||
8073 | $as_echo_n "(cached) " >&6 | ||
8074 | else | ||
8075 | ac_check_lib_save_LIBS=$LIBS | ||
8076 | LIBS="-ldl $LIBS" | ||
8077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8078 | /* end confdefs.h. */ | ||
8079 | |||
8080 | /* Override any GCC internal prototype to avoid an error. | ||
8081 | Use char because int might match the return type of a GCC | ||
8082 | builtin and then its argument prototype would still apply. */ | ||
8083 | #ifdef __cplusplus | ||
8084 | extern "C" | ||
8085 | #endif | ||
8086 | char dlsym (); | ||
8087 | int | ||
8088 | main () | ||
8089 | { | ||
8090 | return dlsym (); | ||
8091 | ; | ||
8092 | return 0; | ||
8093 | } | ||
8094 | _ACEOF | ||
8095 | if ac_fn_c_try_link "$LINENO"; then : | ||
8096 | ac_cv_lib_dl_dlsym=yes | ||
8097 | else | ||
8098 | ac_cv_lib_dl_dlsym=no | ||
8099 | fi | ||
8100 | rm -f core conftest.err conftest.$ac_objext \ | ||
8101 | conftest$ac_exeext conftest.$ac_ext | ||
8102 | LIBS=$ac_check_lib_save_LIBS | ||
8103 | fi | ||
8104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 | ||
8105 | $as_echo "$ac_cv_lib_dl_dlsym" >&6; } | ||
8106 | if test "x$ac_cv_lib_dl_dlsym" = xyes; then : | ||
8107 | cat >>confdefs.h <<_ACEOF | ||
8108 | #define HAVE_LIBDL 1 | ||
8109 | _ACEOF | ||
8110 | |||
8111 | LIBS="-ldl $LIBS" | ||
8112 | |||
8113 | fi | ||
8114 | |||
8115 | # -lresolv needs to be at the end of LIBS or DNS lookups break | ||
8116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5 | ||
8117 | $as_echo_n "checking for res_query in -lresolv... " >&6; } | ||
8118 | if ${ac_cv_lib_resolv_res_query+:} false; then : | ||
8119 | $as_echo_n "(cached) " >&6 | ||
8120 | else | ||
8121 | ac_check_lib_save_LIBS=$LIBS | ||
8122 | LIBS="-lresolv $LIBS" | ||
8123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8124 | /* end confdefs.h. */ | ||
8125 | |||
8126 | /* Override any GCC internal prototype to avoid an error. | ||
8127 | Use char because int might match the return type of a GCC | ||
8128 | builtin and then its argument prototype would still apply. */ | ||
8129 | #ifdef __cplusplus | ||
8130 | extern "C" | ||
8131 | #endif | ||
8132 | char res_query (); | ||
8133 | int | ||
8134 | main () | ||
8135 | { | ||
8136 | return res_query (); | ||
8137 | ; | ||
8138 | return 0; | ||
8139 | } | ||
8140 | _ACEOF | ||
8141 | if ac_fn_c_try_link "$LINENO"; then : | ||
8142 | ac_cv_lib_resolv_res_query=yes | ||
8143 | else | ||
8144 | ac_cv_lib_resolv_res_query=no | ||
8145 | fi | ||
8146 | rm -f core conftest.err conftest.$ac_objext \ | ||
8147 | conftest$ac_exeext conftest.$ac_ext | ||
8148 | LIBS=$ac_check_lib_save_LIBS | ||
8149 | fi | ||
8150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5 | ||
8151 | $as_echo "$ac_cv_lib_resolv_res_query" >&6; } | ||
8152 | if test "x$ac_cv_lib_resolv_res_query" = xyes; then : | ||
8153 | LIBS="$LIBS -lresolv" | ||
8154 | fi | ||
8155 | |||
8156 | IPADDR_IN_DISPLAY=yes | ||
8157 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8158 | |||
8159 | $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h | ||
8160 | |||
8161 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8162 | |||
8163 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8164 | |||
8165 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8166 | |||
8167 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
8168 | |||
8169 | external_path_file=/etc/default/login | ||
8170 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
8171 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
8172 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
8173 | ;; | ||
8174 | # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. | ||
8175 | *-*-sysv4.2*) | ||
8176 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8177 | |||
8178 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8179 | |||
8180 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8181 | |||
8182 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8183 | |||
8184 | |||
8185 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
8186 | |||
8187 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
8188 | |||
8189 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
8190 | ;; | ||
8191 | # UnixWare 7.x, OpenUNIX 8 | ||
8192 | *-*-sysv5*) | ||
8193 | CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf" | ||
8194 | |||
8195 | $as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h | ||
8196 | |||
8197 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8198 | |||
8199 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8200 | |||
8201 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
8202 | |||
8203 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8204 | |||
8205 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8206 | |||
8207 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
8208 | |||
8209 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
8210 | case "$host" in | ||
8211 | *-*-sysv5SCO_SV*) # SCO OpenServer 6.x | ||
8212 | maildir=/var/spool/mail | ||
8213 | |||
8214 | $as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h | ||
8215 | |||
8216 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h | ||
8217 | |||
8218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5 | ||
8219 | $as_echo_n "checking for getluid in -lprot... " >&6; } | ||
8220 | if ${ac_cv_lib_prot_getluid+:} false; then : | ||
8221 | $as_echo_n "(cached) " >&6 | ||
8222 | else | ||
8223 | ac_check_lib_save_LIBS=$LIBS | ||
8224 | LIBS="-lprot $LIBS" | ||
8225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8226 | /* end confdefs.h. */ | ||
8227 | |||
8228 | /* Override any GCC internal prototype to avoid an error. | ||
8229 | Use char because int might match the return type of a GCC | ||
8230 | builtin and then its argument prototype would still apply. */ | ||
8231 | #ifdef __cplusplus | ||
8232 | extern "C" | ||
8233 | #endif | ||
8234 | char getluid (); | ||
8235 | int | ||
8236 | main () | ||
8237 | { | ||
8238 | return getluid (); | ||
8239 | ; | ||
8240 | return 0; | ||
8241 | } | ||
8242 | _ACEOF | ||
8243 | if ac_fn_c_try_link "$LINENO"; then : | ||
8244 | ac_cv_lib_prot_getluid=yes | ||
8245 | else | ||
8246 | ac_cv_lib_prot_getluid=no | ||
8247 | fi | ||
8248 | rm -f core conftest.err conftest.$ac_objext \ | ||
8249 | conftest$ac_exeext conftest.$ac_ext | ||
8250 | LIBS=$ac_check_lib_save_LIBS | ||
8251 | fi | ||
8252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5 | ||
8253 | $as_echo "$ac_cv_lib_prot_getluid" >&6; } | ||
8254 | if test "x$ac_cv_lib_prot_getluid" = xyes; then : | ||
8255 | LIBS="$LIBS -lprot" | ||
8256 | for ac_func in getluid setluid | ||
8257 | do : | ||
8258 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8259 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
8260 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
8261 | cat >>confdefs.h <<_ACEOF | ||
8262 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8263 | _ACEOF | ||
8264 | |||
8265 | fi | ||
8266 | done | ||
8267 | |||
8268 | $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h | ||
8269 | |||
8270 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h | ||
8271 | |||
8272 | |||
8273 | fi | ||
8274 | |||
8275 | ;; | ||
8276 | *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
8277 | |||
8278 | check_for_libcrypt_later=1 | ||
8279 | ;; | ||
8280 | esac | ||
8281 | ;; | ||
8282 | *-*-sysv*) | ||
8283 | ;; | ||
8284 | # SCO UNIX and OEM versions of SCO UNIX | ||
8285 | *-*-sco3.2v4*) | ||
8286 | as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5 | ||
8287 | ;; | ||
8288 | # SCO OpenServer 5.x | ||
8289 | *-*-sco3.2v5*) | ||
8290 | if test -z "$GCC"; then | ||
8291 | CFLAGS="$CFLAGS -belf" | ||
8292 | fi | ||
8293 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
8294 | no_dev_ptmx=1 | ||
8295 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8296 | |||
8297 | $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h | ||
8298 | |||
8299 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h | ||
8300 | |||
8301 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8302 | |||
8303 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8304 | |||
8305 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
8306 | |||
8307 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8308 | |||
8309 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8310 | |||
8311 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h | ||
8312 | |||
8313 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h | ||
8314 | |||
8315 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
8316 | |||
8317 | for ac_func in getluid setluid | ||
8318 | do : | ||
8319 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8320 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
8321 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
8322 | cat >>confdefs.h <<_ACEOF | ||
8323 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8324 | _ACEOF | ||
8325 | |||
8326 | fi | ||
8327 | done | ||
8328 | |||
8329 | MANTYPE=man | ||
8330 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
8331 | SKIP_DISABLE_LASTLOG_DEFINE=yes | ||
8332 | ;; | ||
8333 | *-*-unicosmk*) | ||
8334 | |||
8335 | $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h | ||
8336 | |||
8337 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8338 | |||
8339 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8340 | |||
8341 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8342 | |||
8343 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8344 | |||
8345 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8346 | |||
8347 | LDFLAGS="$LDFLAGS" | ||
8348 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
8349 | MANTYPE=cat | ||
8350 | ;; | ||
8351 | *-*-unicosmp*) | ||
8352 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8353 | |||
8354 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8355 | |||
8356 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8357 | |||
8358 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h | ||
8359 | |||
8360 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8361 | |||
8362 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8363 | |||
8364 | LDFLAGS="$LDFLAGS" | ||
8365 | LIBS="$LIBS -lgen -lacid -ldb" | ||
8366 | MANTYPE=cat | ||
8367 | ;; | ||
8368 | *-*-unicos*) | ||
8369 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8370 | |||
8371 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8372 | |||
8373 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8374 | |||
8375 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8376 | |||
8377 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8378 | |||
8379 | $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h | ||
8380 | |||
8381 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
8382 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
8383 | MANTYPE=cat | ||
8384 | ;; | ||
8385 | *-dec-osf*) | ||
8386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5 | ||
8387 | $as_echo_n "checking for Digital Unix SIA... " >&6; } | ||
8388 | no_osfsia="" | ||
8389 | |||
8390 | # Check whether --with-osfsia was given. | ||
8391 | if test "${with_osfsia+set}" = set; then : | ||
8392 | withval=$with_osfsia; | ||
8393 | if test "x$withval" = "xno" ; then | ||
8394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 | ||
8395 | $as_echo "disabled" >&6; } | ||
8396 | no_osfsia=1 | ||
8397 | fi | ||
8398 | |||
8399 | fi | ||
8400 | |||
8401 | if test -z "$no_osfsia" ; then | ||
8402 | if test -f /etc/sia/matrix.conf; then | ||
8403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8404 | $as_echo "yes" >&6; } | ||
8405 | |||
8406 | $as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h | ||
8407 | |||
8408 | |||
8409 | $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h | ||
8410 | |||
8411 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8412 | |||
8413 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
8414 | SIA_MSG="yes" | ||
8415 | else | ||
8416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8417 | $as_echo "no" >&6; } | ||
8418 | |||
8419 | $as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h | ||
8420 | |||
8421 | fi | ||
8422 | fi | ||
8423 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
8424 | |||
8425 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8426 | |||
8427 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8428 | |||
8429 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8430 | |||
8431 | |||
8432 | $as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h | ||
8433 | |||
8434 | ;; | ||
8435 | |||
8436 | *-*-nto-qnx*) | ||
8437 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8438 | |||
8439 | $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h | ||
8440 | |||
8441 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
8442 | |||
8443 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
8444 | |||
8445 | |||
8446 | $as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h | ||
8447 | |||
8448 | enable_etc_default_login=no # has incompatible /etc/default/login | ||
8449 | case "$host" in | ||
8450 | *-*-nto-qnx6*) | ||
8451 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8452 | |||
8453 | ;; | ||
8454 | esac | ||
8455 | ;; | ||
8456 | |||
8457 | *-*-ultrix*) | ||
8458 | |||
8459 | $as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h | ||
8460 | |||
8461 | $as_echo "#define NEED_SETPGRP 1" >>confdefs.h | ||
8462 | |||
8463 | |||
8464 | $as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h | ||
8465 | |||
8466 | ;; | ||
8467 | |||
8468 | *-*-lynxos) | ||
8469 | CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" | ||
8470 | |||
8471 | $as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h | ||
8472 | |||
8473 | ;; | ||
8474 | esac | ||
8475 | |||
8476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5 | ||
8477 | $as_echo_n "checking compiler and flags for sanity... " >&6; } | ||
8478 | if test "$cross_compiling" = yes; then : | ||
8479 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5 | ||
8480 | $as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} | ||
8481 | |||
8482 | else | ||
8483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8484 | /* end confdefs.h. */ | ||
8485 | #include <stdio.h> | ||
8486 | int | ||
8487 | main () | ||
8488 | { | ||
8489 | exit(0); | ||
8490 | ; | ||
8491 | return 0; | ||
8492 | } | ||
8493 | _ACEOF | ||
8494 | if ac_fn_c_try_run "$LINENO"; then : | ||
8495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8496 | $as_echo "yes" >&6; } | ||
8497 | else | ||
8498 | |||
8499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8500 | $as_echo "no" >&6; } | ||
8501 | as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5 | ||
8502 | |||
8503 | fi | ||
8504 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
8505 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
8506 | fi | ||
8507 | |||
8508 | |||
8509 | # Checks for libraries. | ||
8510 | ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" | ||
8511 | if test "x$ac_cv_func_setsockopt" = xyes; then : | ||
8512 | |||
8513 | else | ||
8514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5 | ||
8515 | $as_echo_n "checking for setsockopt in -lsocket... " >&6; } | ||
8516 | if ${ac_cv_lib_socket_setsockopt+:} false; then : | ||
8517 | $as_echo_n "(cached) " >&6 | ||
8518 | else | ||
8519 | ac_check_lib_save_LIBS=$LIBS | ||
8520 | LIBS="-lsocket $LIBS" | ||
8521 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8522 | /* end confdefs.h. */ | ||
8523 | |||
8524 | /* Override any GCC internal prototype to avoid an error. | ||
8525 | Use char because int might match the return type of a GCC | ||
8526 | builtin and then its argument prototype would still apply. */ | ||
8527 | #ifdef __cplusplus | ||
8528 | extern "C" | ||
8529 | #endif | ||
8530 | char setsockopt (); | ||
8531 | int | ||
8532 | main () | ||
8533 | { | ||
8534 | return setsockopt (); | ||
8535 | ; | ||
8536 | return 0; | ||
8537 | } | ||
8538 | _ACEOF | ||
8539 | if ac_fn_c_try_link "$LINENO"; then : | ||
8540 | ac_cv_lib_socket_setsockopt=yes | ||
8541 | else | ||
8542 | ac_cv_lib_socket_setsockopt=no | ||
8543 | fi | ||
8544 | rm -f core conftest.err conftest.$ac_objext \ | ||
8545 | conftest$ac_exeext conftest.$ac_ext | ||
8546 | LIBS=$ac_check_lib_save_LIBS | ||
8547 | fi | ||
8548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
8549 | $as_echo "$ac_cv_lib_socket_setsockopt" >&6; } | ||
8550 | if test "x$ac_cv_lib_socket_setsockopt" = xyes; then : | ||
8551 | cat >>confdefs.h <<_ACEOF | ||
8552 | #define HAVE_LIBSOCKET 1 | ||
8553 | _ACEOF | ||
8554 | |||
8555 | LIBS="-lsocket $LIBS" | ||
8556 | |||
8557 | fi | ||
8558 | |||
8559 | fi | ||
8560 | |||
8561 | |||
8562 | for ac_func in dirname | ||
8563 | do : | ||
8564 | ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname" | ||
8565 | if test "x$ac_cv_func_dirname" = xyes; then : | ||
8566 | cat >>confdefs.h <<_ACEOF | ||
8567 | #define HAVE_DIRNAME 1 | ||
8568 | _ACEOF | ||
8569 | for ac_header in libgen.h | ||
8570 | do : | ||
8571 | ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" | ||
8572 | if test "x$ac_cv_header_libgen_h" = xyes; then : | ||
8573 | cat >>confdefs.h <<_ACEOF | ||
8574 | #define HAVE_LIBGEN_H 1 | ||
8575 | _ACEOF | ||
8576 | |||
8577 | fi | ||
8578 | |||
8579 | done | ||
8580 | |||
8581 | else | ||
8582 | |||
8583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5 | ||
8584 | $as_echo_n "checking for dirname in -lgen... " >&6; } | ||
8585 | if ${ac_cv_lib_gen_dirname+:} false; then : | ||
8586 | $as_echo_n "(cached) " >&6 | ||
8587 | else | ||
8588 | ac_check_lib_save_LIBS=$LIBS | ||
8589 | LIBS="-lgen $LIBS" | ||
8590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8591 | /* end confdefs.h. */ | ||
8592 | |||
8593 | /* Override any GCC internal prototype to avoid an error. | ||
8594 | Use char because int might match the return type of a GCC | ||
8595 | builtin and then its argument prototype would still apply. */ | ||
8596 | #ifdef __cplusplus | ||
8597 | extern "C" | ||
8598 | #endif | ||
8599 | char dirname (); | ||
8600 | int | ||
8601 | main () | ||
8602 | { | ||
8603 | return dirname (); | ||
8604 | ; | ||
8605 | return 0; | ||
8606 | } | ||
8607 | _ACEOF | ||
8608 | if ac_fn_c_try_link "$LINENO"; then : | ||
8609 | ac_cv_lib_gen_dirname=yes | ||
8610 | else | ||
8611 | ac_cv_lib_gen_dirname=no | ||
8612 | fi | ||
8613 | rm -f core conftest.err conftest.$ac_objext \ | ||
8614 | conftest$ac_exeext conftest.$ac_ext | ||
8615 | LIBS=$ac_check_lib_save_LIBS | ||
8616 | fi | ||
8617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5 | ||
8618 | $as_echo "$ac_cv_lib_gen_dirname" >&6; } | ||
8619 | if test "x$ac_cv_lib_gen_dirname" = xyes; then : | ||
8620 | |||
8621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5 | ||
8622 | $as_echo_n "checking for broken dirname... " >&6; } | ||
8623 | if ${ac_cv_have_broken_dirname+:} false; then : | ||
8624 | $as_echo_n "(cached) " >&6 | ||
8625 | else | ||
8626 | |||
8627 | save_LIBS="$LIBS" | ||
8628 | LIBS="$LIBS -lgen" | ||
8629 | if test "$cross_compiling" = yes; then : | ||
8630 | ac_cv_have_broken_dirname="no" | ||
8631 | else | ||
8632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8633 | /* end confdefs.h. */ | ||
8634 | |||
8635 | #include <libgen.h> | ||
8636 | #include <string.h> | ||
8637 | |||
8638 | int main(int argc, char **argv) { | ||
8639 | char *s, buf[32]; | ||
8640 | |||
8641 | strncpy(buf,"/etc", 32); | ||
8642 | s = dirname(buf); | ||
8643 | if (!s || strncmp(s, "/", 32) != 0) { | ||
8644 | exit(1); | ||
8645 | } else { | ||
8646 | exit(0); | ||
8647 | } | ||
8648 | } | ||
8649 | |||
8650 | _ACEOF | ||
8651 | if ac_fn_c_try_run "$LINENO"; then : | ||
8652 | ac_cv_have_broken_dirname="no" | ||
8653 | else | ||
8654 | ac_cv_have_broken_dirname="yes" | ||
8655 | fi | ||
8656 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
8657 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
8658 | fi | ||
8659 | |||
8660 | LIBS="$save_LIBS" | ||
8661 | |||
8662 | fi | ||
8663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5 | ||
8664 | $as_echo "$ac_cv_have_broken_dirname" >&6; } | ||
8665 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
8666 | LIBS="$LIBS -lgen" | ||
8667 | $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h | ||
8668 | |||
8669 | for ac_header in libgen.h | ||
8670 | do : | ||
8671 | ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" | ||
8672 | if test "x$ac_cv_header_libgen_h" = xyes; then : | ||
8673 | cat >>confdefs.h <<_ACEOF | ||
8674 | #define HAVE_LIBGEN_H 1 | ||
8675 | _ACEOF | ||
8676 | |||
8677 | fi | ||
8678 | |||
8679 | done | ||
8680 | |||
8681 | fi | ||
8682 | |||
8683 | fi | ||
8684 | |||
8685 | |||
8686 | fi | ||
8687 | done | ||
8688 | |||
8689 | |||
8690 | ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam" | ||
8691 | if test "x$ac_cv_func_getspnam" = xyes; then : | ||
8692 | |||
8693 | else | ||
8694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5 | ||
8695 | $as_echo_n "checking for getspnam in -lgen... " >&6; } | ||
8696 | if ${ac_cv_lib_gen_getspnam+:} false; then : | ||
8697 | $as_echo_n "(cached) " >&6 | ||
8698 | else | ||
8699 | ac_check_lib_save_LIBS=$LIBS | ||
8700 | LIBS="-lgen $LIBS" | ||
8701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8702 | /* end confdefs.h. */ | ||
8703 | |||
8704 | /* Override any GCC internal prototype to avoid an error. | ||
8705 | Use char because int might match the return type of a GCC | ||
8706 | builtin and then its argument prototype would still apply. */ | ||
8707 | #ifdef __cplusplus | ||
8708 | extern "C" | ||
8709 | #endif | ||
8710 | char getspnam (); | ||
8711 | int | ||
8712 | main () | ||
8713 | { | ||
8714 | return getspnam (); | ||
8715 | ; | ||
8716 | return 0; | ||
8717 | } | ||
8718 | _ACEOF | ||
8719 | if ac_fn_c_try_link "$LINENO"; then : | ||
8720 | ac_cv_lib_gen_getspnam=yes | ||
8721 | else | ||
8722 | ac_cv_lib_gen_getspnam=no | ||
8723 | fi | ||
8724 | rm -f core conftest.err conftest.$ac_objext \ | ||
8725 | conftest$ac_exeext conftest.$ac_ext | ||
8726 | LIBS=$ac_check_lib_save_LIBS | ||
8727 | fi | ||
8728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5 | ||
8729 | $as_echo "$ac_cv_lib_gen_getspnam" >&6; } | ||
8730 | if test "x$ac_cv_lib_gen_getspnam" = xyes; then : | ||
8731 | LIBS="$LIBS -lgen" | ||
8732 | fi | ||
8733 | |||
8734 | fi | ||
8735 | |||
8736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5 | ||
8737 | $as_echo_n "checking for library containing basename... " >&6; } | ||
8738 | if ${ac_cv_search_basename+:} false; then : | ||
8739 | $as_echo_n "(cached) " >&6 | ||
8740 | else | ||
8741 | ac_func_search_save_LIBS=$LIBS | ||
8742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8743 | /* end confdefs.h. */ | ||
8744 | |||
8745 | /* Override any GCC internal prototype to avoid an error. | ||
8746 | Use char because int might match the return type of a GCC | ||
8747 | builtin and then its argument prototype would still apply. */ | ||
8748 | #ifdef __cplusplus | ||
8749 | extern "C" | ||
8750 | #endif | ||
8751 | char basename (); | ||
8752 | int | ||
8753 | main () | ||
8754 | { | ||
8755 | return basename (); | ||
8756 | ; | ||
8757 | return 0; | ||
8758 | } | ||
8759 | _ACEOF | ||
8760 | for ac_lib in '' gen; do | ||
8761 | if test -z "$ac_lib"; then | ||
8762 | ac_res="none required" | ||
8763 | else | ||
8764 | ac_res=-l$ac_lib | ||
8765 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
8766 | fi | ||
8767 | if ac_fn_c_try_link "$LINENO"; then : | ||
8768 | ac_cv_search_basename=$ac_res | ||
8769 | fi | ||
8770 | rm -f core conftest.err conftest.$ac_objext \ | ||
8771 | conftest$ac_exeext | ||
8772 | if ${ac_cv_search_basename+:} false; then : | ||
8773 | break | ||
8774 | fi | ||
8775 | done | ||
8776 | if ${ac_cv_search_basename+:} false; then : | ||
8777 | |||
8778 | else | ||
8779 | ac_cv_search_basename=no | ||
8780 | fi | ||
8781 | rm conftest.$ac_ext | ||
8782 | LIBS=$ac_func_search_save_LIBS | ||
8783 | fi | ||
8784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5 | ||
8785 | $as_echo "$ac_cv_search_basename" >&6; } | ||
8786 | ac_res=$ac_cv_search_basename | ||
8787 | if test "$ac_res" != no; then : | ||
8788 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
8789 | |||
8790 | $as_echo "#define HAVE_BASENAME 1" >>confdefs.h | ||
8791 | |||
8792 | fi | ||
8793 | |||
8794 | |||
8795 | |||
8796 | # Check whether --with-zlib was given. | ||
8797 | if test "${with_zlib+set}" = set; then : | ||
8798 | withval=$with_zlib; if test "x$withval" = "xno" ; then | ||
8799 | as_fn_error $? "*** zlib is required ***" "$LINENO" 5 | ||
8800 | elif test "x$withval" != "xyes"; then | ||
8801 | if test -d "$withval/lib"; then | ||
8802 | if test -n "${need_dash_r}"; then | ||
8803 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
8804 | else | ||
8805 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
8806 | fi | ||
8807 | else | ||
8808 | if test -n "${need_dash_r}"; then | ||
8809 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
8810 | else | ||
8811 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
8812 | fi | ||
8813 | fi | ||
8814 | if test -d "$withval/include"; then | ||
8815 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
8816 | else | ||
8817 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
8818 | fi | ||
8819 | fi | ||
8820 | |||
8821 | fi | ||
8822 | |||
8823 | |||
8824 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | ||
8825 | if test "x$ac_cv_header_zlib_h" = xyes; then : | ||
8826 | |||
8827 | else | ||
8828 | as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5 | ||
8829 | fi | ||
8830 | |||
8831 | |||
8832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 | ||
8833 | $as_echo_n "checking for deflate in -lz... " >&6; } | ||
8834 | if ${ac_cv_lib_z_deflate+:} false; then : | ||
8835 | $as_echo_n "(cached) " >&6 | ||
8836 | else | ||
8837 | ac_check_lib_save_LIBS=$LIBS | ||
8838 | LIBS="-lz $LIBS" | ||
8839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8840 | /* end confdefs.h. */ | ||
8841 | |||
8842 | /* Override any GCC internal prototype to avoid an error. | ||
8843 | Use char because int might match the return type of a GCC | ||
8844 | builtin and then its argument prototype would still apply. */ | ||
8845 | #ifdef __cplusplus | ||
8846 | extern "C" | ||
8847 | #endif | ||
8848 | char deflate (); | ||
8849 | int | ||
8850 | main () | ||
8851 | { | ||
8852 | return deflate (); | ||
8853 | ; | ||
8854 | return 0; | ||
8855 | } | ||
8856 | _ACEOF | ||
8857 | if ac_fn_c_try_link "$LINENO"; then : | ||
8858 | ac_cv_lib_z_deflate=yes | ||
8859 | else | ||
8860 | ac_cv_lib_z_deflate=no | ||
8861 | fi | ||
8862 | rm -f core conftest.err conftest.$ac_objext \ | ||
8863 | conftest$ac_exeext conftest.$ac_ext | ||
8864 | LIBS=$ac_check_lib_save_LIBS | ||
8865 | fi | ||
8866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 | ||
8867 | $as_echo "$ac_cv_lib_z_deflate" >&6; } | ||
8868 | if test "x$ac_cv_lib_z_deflate" = xyes; then : | ||
8869 | cat >>confdefs.h <<_ACEOF | ||
8870 | #define HAVE_LIBZ 1 | ||
8871 | _ACEOF | ||
8872 | |||
8873 | LIBS="-lz $LIBS" | ||
8874 | |||
8875 | else | ||
8876 | |||
8877 | saved_CPPFLAGS="$CPPFLAGS" | ||
8878 | saved_LDFLAGS="$LDFLAGS" | ||
8879 | save_LIBS="$LIBS" | ||
8880 | if test -n "${need_dash_r}"; then | ||
8881 | LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" | ||
8882 | else | ||
8883 | LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" | ||
8884 | fi | ||
8885 | CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" | ||
8886 | LIBS="$LIBS -lz" | ||
8887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8888 | /* end confdefs.h. */ | ||
8889 | |||
8890 | /* Override any GCC internal prototype to avoid an error. | ||
8891 | Use char because int might match the return type of a GCC | ||
8892 | builtin and then its argument prototype would still apply. */ | ||
8893 | #ifdef __cplusplus | ||
8894 | extern "C" | ||
8895 | #endif | ||
8896 | char deflate (); | ||
8897 | int | ||
8898 | main () | ||
8899 | { | ||
8900 | return deflate (); | ||
8901 | ; | ||
8902 | return 0; | ||
8903 | } | ||
8904 | _ACEOF | ||
8905 | if ac_fn_c_try_link "$LINENO"; then : | ||
8906 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h | ||
8907 | |||
8908 | else | ||
8909 | |||
8910 | as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5 | ||
8911 | |||
8912 | |||
8913 | fi | ||
8914 | rm -f core conftest.err conftest.$ac_objext \ | ||
8915 | conftest$ac_exeext conftest.$ac_ext | ||
8916 | |||
8917 | |||
8918 | fi | ||
8919 | |||
8920 | |||
8921 | |||
8922 | # Check whether --with-zlib-version-check was given. | ||
8923 | if test "${with_zlib_version_check+set}" = set; then : | ||
8924 | withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then | ||
8925 | zlib_check_nonfatal=1 | ||
8926 | fi | ||
8927 | |||
8928 | |||
8929 | fi | ||
8930 | |||
8931 | |||
8932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5 | ||
8933 | $as_echo_n "checking for possibly buggy zlib... " >&6; } | ||
8934 | if test "$cross_compiling" = yes; then : | ||
8935 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5 | ||
8936 | $as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} | ||
8937 | |||
8938 | else | ||
8939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8940 | /* end confdefs.h. */ | ||
8941 | |||
8942 | #include <stdio.h> | ||
8943 | #include <stdlib.h> | ||
8944 | #include <zlib.h> | ||
8945 | |||
8946 | int | ||
8947 | main () | ||
8948 | { | ||
8949 | |||
8950 | int a=0, b=0, c=0, d=0, n, v; | ||
8951 | n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d); | ||
8952 | if (n != 3 && n != 4) | ||
8953 | exit(1); | ||
8954 | v = a*1000000 + b*10000 + c*100 + d; | ||
8955 | fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v); | ||
8956 | |||
8957 | /* 1.1.4 is OK */ | ||
8958 | if (a == 1 && b == 1 && c >= 4) | ||
8959 | exit(0); | ||
8960 | |||
8961 | /* 1.2.3 and up are OK */ | ||
8962 | if (v >= 1020300) | ||
8963 | exit(0); | ||
8964 | |||
8965 | exit(2); | ||
8966 | |||
8967 | ; | ||
8968 | return 0; | ||
8969 | } | ||
8970 | _ACEOF | ||
8971 | if ac_fn_c_try_run "$LINENO"; then : | ||
8972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8973 | $as_echo "no" >&6; } | ||
8974 | else | ||
8975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8976 | $as_echo "yes" >&6; } | ||
8977 | if test -z "$zlib_check_nonfatal" ; then | ||
8978 | as_fn_error $? "*** zlib too old - check config.log *** | ||
8979 | Your reported zlib version has known security problems. It's possible your | ||
8980 | vendor has fixed these problems without changing the version number. If you | ||
8981 | are sure this is the case, you can disable the check by running | ||
8982 | \"./configure --without-zlib-version-check\". | ||
8983 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
8984 | See http://www.gzip.org/zlib/ for details." "$LINENO" 5 | ||
8985 | else | ||
8986 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5 | ||
8987 | $as_echo "$as_me: WARNING: zlib version may have security problems" >&2;} | ||
8988 | fi | ||
8989 | |||
8990 | fi | ||
8991 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
8992 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
8993 | fi | ||
8994 | |||
8995 | |||
8996 | ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" | ||
8997 | if test "x$ac_cv_func_strcasecmp" = xyes; then : | ||
8998 | |||
8999 | else | ||
9000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5 | ||
9001 | $as_echo_n "checking for strcasecmp in -lresolv... " >&6; } | ||
9002 | if ${ac_cv_lib_resolv_strcasecmp+:} false; then : | ||
9003 | $as_echo_n "(cached) " >&6 | ||
9004 | else | ||
9005 | ac_check_lib_save_LIBS=$LIBS | ||
9006 | LIBS="-lresolv $LIBS" | ||
9007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9008 | /* end confdefs.h. */ | ||
9009 | |||
9010 | /* Override any GCC internal prototype to avoid an error. | ||
9011 | Use char because int might match the return type of a GCC | ||
9012 | builtin and then its argument prototype would still apply. */ | ||
9013 | #ifdef __cplusplus | ||
9014 | extern "C" | ||
9015 | #endif | ||
9016 | char strcasecmp (); | ||
9017 | int | ||
9018 | main () | ||
9019 | { | ||
9020 | return strcasecmp (); | ||
9021 | ; | ||
9022 | return 0; | ||
9023 | } | ||
9024 | _ACEOF | ||
9025 | if ac_fn_c_try_link "$LINENO"; then : | ||
9026 | ac_cv_lib_resolv_strcasecmp=yes | ||
9027 | else | ||
9028 | ac_cv_lib_resolv_strcasecmp=no | ||
9029 | fi | ||
9030 | rm -f core conftest.err conftest.$ac_objext \ | ||
9031 | conftest$ac_exeext conftest.$ac_ext | ||
9032 | LIBS=$ac_check_lib_save_LIBS | ||
9033 | fi | ||
9034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
9035 | $as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; } | ||
9036 | if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then : | ||
9037 | LIBS="$LIBS -lresolv" | ||
9038 | fi | ||
9039 | |||
9040 | |||
9041 | fi | ||
9042 | |||
9043 | for ac_func in utimes | ||
9044 | do : | ||
9045 | ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" | ||
9046 | if test "x$ac_cv_func_utimes" = xyes; then : | ||
9047 | cat >>confdefs.h <<_ACEOF | ||
9048 | #define HAVE_UTIMES 1 | ||
9049 | _ACEOF | ||
9050 | |||
9051 | else | ||
9052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5 | ||
9053 | $as_echo_n "checking for utimes in -lc89... " >&6; } | ||
9054 | if ${ac_cv_lib_c89_utimes+:} false; then : | ||
9055 | $as_echo_n "(cached) " >&6 | ||
9056 | else | ||
9057 | ac_check_lib_save_LIBS=$LIBS | ||
9058 | LIBS="-lc89 $LIBS" | ||
9059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9060 | /* end confdefs.h. */ | ||
9061 | |||
9062 | /* Override any GCC internal prototype to avoid an error. | ||
9063 | Use char because int might match the return type of a GCC | ||
9064 | builtin and then its argument prototype would still apply. */ | ||
9065 | #ifdef __cplusplus | ||
9066 | extern "C" | ||
9067 | #endif | ||
9068 | char utimes (); | ||
9069 | int | ||
9070 | main () | ||
9071 | { | ||
9072 | return utimes (); | ||
9073 | ; | ||
9074 | return 0; | ||
9075 | } | ||
9076 | _ACEOF | ||
9077 | if ac_fn_c_try_link "$LINENO"; then : | ||
9078 | ac_cv_lib_c89_utimes=yes | ||
9079 | else | ||
9080 | ac_cv_lib_c89_utimes=no | ||
9081 | fi | ||
9082 | rm -f core conftest.err conftest.$ac_objext \ | ||
9083 | conftest$ac_exeext conftest.$ac_ext | ||
9084 | LIBS=$ac_check_lib_save_LIBS | ||
9085 | fi | ||
9086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5 | ||
9087 | $as_echo "$ac_cv_lib_c89_utimes" >&6; } | ||
9088 | if test "x$ac_cv_lib_c89_utimes" = xyes; then : | ||
9089 | $as_echo "#define HAVE_UTIMES 1" >>confdefs.h | ||
9090 | |||
9091 | LIBS="$LIBS -lc89" | ||
9092 | fi | ||
9093 | |||
9094 | |||
9095 | fi | ||
9096 | done | ||
9097 | |||
9098 | |||
9099 | for ac_header in bsd/libutil.h libutil.h | ||
9100 | do : | ||
9101 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
9102 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
9103 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
9104 | cat >>confdefs.h <<_ACEOF | ||
9105 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
9106 | _ACEOF | ||
9107 | |||
9108 | fi | ||
9109 | |||
9110 | done | ||
9111 | |||
9112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5 | ||
9113 | $as_echo_n "checking for library containing fmt_scaled... " >&6; } | ||
9114 | if ${ac_cv_search_fmt_scaled+:} false; then : | ||
9115 | $as_echo_n "(cached) " >&6 | ||
9116 | else | ||
9117 | ac_func_search_save_LIBS=$LIBS | ||
9118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9119 | /* end confdefs.h. */ | ||
9120 | |||
9121 | /* Override any GCC internal prototype to avoid an error. | ||
9122 | Use char because int might match the return type of a GCC | ||
9123 | builtin and then its argument prototype would still apply. */ | ||
9124 | #ifdef __cplusplus | ||
9125 | extern "C" | ||
9126 | #endif | ||
9127 | char fmt_scaled (); | ||
9128 | int | ||
9129 | main () | ||
9130 | { | ||
9131 | return fmt_scaled (); | ||
9132 | ; | ||
9133 | return 0; | ||
9134 | } | ||
9135 | _ACEOF | ||
9136 | for ac_lib in '' util bsd; do | ||
9137 | if test -z "$ac_lib"; then | ||
9138 | ac_res="none required" | ||
9139 | else | ||
9140 | ac_res=-l$ac_lib | ||
9141 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9142 | fi | ||
9143 | if ac_fn_c_try_link "$LINENO"; then : | ||
9144 | ac_cv_search_fmt_scaled=$ac_res | ||
9145 | fi | ||
9146 | rm -f core conftest.err conftest.$ac_objext \ | ||
9147 | conftest$ac_exeext | ||
9148 | if ${ac_cv_search_fmt_scaled+:} false; then : | ||
9149 | break | ||
9150 | fi | ||
9151 | done | ||
9152 | if ${ac_cv_search_fmt_scaled+:} false; then : | ||
9153 | |||
9154 | else | ||
9155 | ac_cv_search_fmt_scaled=no | ||
9156 | fi | ||
9157 | rm conftest.$ac_ext | ||
9158 | LIBS=$ac_func_search_save_LIBS | ||
9159 | fi | ||
9160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmt_scaled" >&5 | ||
9161 | $as_echo "$ac_cv_search_fmt_scaled" >&6; } | ||
9162 | ac_res=$ac_cv_search_fmt_scaled | ||
9163 | if test "$ac_res" != no; then : | ||
9164 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9165 | |||
9166 | fi | ||
9167 | |||
9168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing scan_scaled" >&5 | ||
9169 | $as_echo_n "checking for library containing scan_scaled... " >&6; } | ||
9170 | if ${ac_cv_search_scan_scaled+:} false; then : | ||
9171 | $as_echo_n "(cached) " >&6 | ||
9172 | else | ||
9173 | ac_func_search_save_LIBS=$LIBS | ||
9174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9175 | /* end confdefs.h. */ | ||
9176 | |||
9177 | /* Override any GCC internal prototype to avoid an error. | ||
9178 | Use char because int might match the return type of a GCC | ||
9179 | builtin and then its argument prototype would still apply. */ | ||
9180 | #ifdef __cplusplus | ||
9181 | extern "C" | ||
9182 | #endif | ||
9183 | char scan_scaled (); | ||
9184 | int | ||
9185 | main () | ||
9186 | { | ||
9187 | return scan_scaled (); | ||
9188 | ; | ||
9189 | return 0; | ||
9190 | } | ||
9191 | _ACEOF | ||
9192 | for ac_lib in '' util bsd; do | ||
9193 | if test -z "$ac_lib"; then | ||
9194 | ac_res="none required" | ||
9195 | else | ||
9196 | ac_res=-l$ac_lib | ||
9197 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9198 | fi | ||
9199 | if ac_fn_c_try_link "$LINENO"; then : | ||
9200 | ac_cv_search_scan_scaled=$ac_res | ||
9201 | fi | ||
9202 | rm -f core conftest.err conftest.$ac_objext \ | ||
9203 | conftest$ac_exeext | ||
9204 | if ${ac_cv_search_scan_scaled+:} false; then : | ||
9205 | break | ||
9206 | fi | ||
9207 | done | ||
9208 | if ${ac_cv_search_scan_scaled+:} false; then : | ||
9209 | |||
9210 | else | ||
9211 | ac_cv_search_scan_scaled=no | ||
9212 | fi | ||
9213 | rm conftest.$ac_ext | ||
9214 | LIBS=$ac_func_search_save_LIBS | ||
9215 | fi | ||
9216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_scan_scaled" >&5 | ||
9217 | $as_echo "$ac_cv_search_scan_scaled" >&6; } | ||
9218 | ac_res=$ac_cv_search_scan_scaled | ||
9219 | if test "$ac_res" != no; then : | ||
9220 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9221 | |||
9222 | fi | ||
9223 | |||
9224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5 | ||
9225 | $as_echo_n "checking for library containing login... " >&6; } | ||
9226 | if ${ac_cv_search_login+:} false; then : | ||
9227 | $as_echo_n "(cached) " >&6 | ||
9228 | else | ||
9229 | ac_func_search_save_LIBS=$LIBS | ||
9230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9231 | /* end confdefs.h. */ | ||
9232 | |||
9233 | /* Override any GCC internal prototype to avoid an error. | ||
9234 | Use char because int might match the return type of a GCC | ||
9235 | builtin and then its argument prototype would still apply. */ | ||
9236 | #ifdef __cplusplus | ||
9237 | extern "C" | ||
9238 | #endif | ||
9239 | char login (); | ||
9240 | int | ||
9241 | main () | ||
9242 | { | ||
9243 | return login (); | ||
9244 | ; | ||
9245 | return 0; | ||
9246 | } | ||
9247 | _ACEOF | ||
9248 | for ac_lib in '' util bsd; do | ||
9249 | if test -z "$ac_lib"; then | ||
9250 | ac_res="none required" | ||
9251 | else | ||
9252 | ac_res=-l$ac_lib | ||
9253 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9254 | fi | ||
9255 | if ac_fn_c_try_link "$LINENO"; then : | ||
9256 | ac_cv_search_login=$ac_res | ||
9257 | fi | ||
9258 | rm -f core conftest.err conftest.$ac_objext \ | ||
9259 | conftest$ac_exeext | ||
9260 | if ${ac_cv_search_login+:} false; then : | ||
9261 | break | ||
9262 | fi | ||
9263 | done | ||
9264 | if ${ac_cv_search_login+:} false; then : | ||
9265 | |||
9266 | else | ||
9267 | ac_cv_search_login=no | ||
9268 | fi | ||
9269 | rm conftest.$ac_ext | ||
9270 | LIBS=$ac_func_search_save_LIBS | ||
9271 | fi | ||
9272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5 | ||
9273 | $as_echo "$ac_cv_search_login" >&6; } | ||
9274 | ac_res=$ac_cv_search_login | ||
9275 | if test "$ac_res" != no; then : | ||
9276 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9277 | |||
9278 | fi | ||
9279 | |||
9280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logout" >&5 | ||
9281 | $as_echo_n "checking for library containing logout... " >&6; } | ||
9282 | if ${ac_cv_search_logout+:} false; then : | ||
9283 | $as_echo_n "(cached) " >&6 | ||
9284 | else | ||
9285 | ac_func_search_save_LIBS=$LIBS | ||
9286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9287 | /* end confdefs.h. */ | ||
9288 | |||
9289 | /* Override any GCC internal prototype to avoid an error. | ||
9290 | Use char because int might match the return type of a GCC | ||
9291 | builtin and then its argument prototype would still apply. */ | ||
9292 | #ifdef __cplusplus | ||
9293 | extern "C" | ||
9294 | #endif | ||
9295 | char logout (); | ||
9296 | int | ||
9297 | main () | ||
9298 | { | ||
9299 | return logout (); | ||
9300 | ; | ||
9301 | return 0; | ||
9302 | } | ||
9303 | _ACEOF | ||
9304 | for ac_lib in '' util bsd; do | ||
9305 | if test -z "$ac_lib"; then | ||
9306 | ac_res="none required" | ||
9307 | else | ||
9308 | ac_res=-l$ac_lib | ||
9309 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9310 | fi | ||
9311 | if ac_fn_c_try_link "$LINENO"; then : | ||
9312 | ac_cv_search_logout=$ac_res | ||
9313 | fi | ||
9314 | rm -f core conftest.err conftest.$ac_objext \ | ||
9315 | conftest$ac_exeext | ||
9316 | if ${ac_cv_search_logout+:} false; then : | ||
9317 | break | ||
9318 | fi | ||
9319 | done | ||
9320 | if ${ac_cv_search_logout+:} false; then : | ||
9321 | |||
9322 | else | ||
9323 | ac_cv_search_logout=no | ||
9324 | fi | ||
9325 | rm conftest.$ac_ext | ||
9326 | LIBS=$ac_func_search_save_LIBS | ||
9327 | fi | ||
9328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logout" >&5 | ||
9329 | $as_echo "$ac_cv_search_logout" >&6; } | ||
9330 | ac_res=$ac_cv_search_logout | ||
9331 | if test "$ac_res" != no; then : | ||
9332 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9333 | |||
9334 | fi | ||
9335 | |||
9336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logwtmp" >&5 | ||
9337 | $as_echo_n "checking for library containing logwtmp... " >&6; } | ||
9338 | if ${ac_cv_search_logwtmp+:} false; then : | ||
9339 | $as_echo_n "(cached) " >&6 | ||
9340 | else | ||
9341 | ac_func_search_save_LIBS=$LIBS | ||
9342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9343 | /* end confdefs.h. */ | ||
9344 | |||
9345 | /* Override any GCC internal prototype to avoid an error. | ||
9346 | Use char because int might match the return type of a GCC | ||
9347 | builtin and then its argument prototype would still apply. */ | ||
9348 | #ifdef __cplusplus | ||
9349 | extern "C" | ||
9350 | #endif | ||
9351 | char logwtmp (); | ||
9352 | int | ||
9353 | main () | ||
9354 | { | ||
9355 | return logwtmp (); | ||
9356 | ; | ||
9357 | return 0; | ||
9358 | } | ||
9359 | _ACEOF | ||
9360 | for ac_lib in '' util bsd; do | ||
9361 | if test -z "$ac_lib"; then | ||
9362 | ac_res="none required" | ||
9363 | else | ||
9364 | ac_res=-l$ac_lib | ||
9365 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9366 | fi | ||
9367 | if ac_fn_c_try_link "$LINENO"; then : | ||
9368 | ac_cv_search_logwtmp=$ac_res | ||
9369 | fi | ||
9370 | rm -f core conftest.err conftest.$ac_objext \ | ||
9371 | conftest$ac_exeext | ||
9372 | if ${ac_cv_search_logwtmp+:} false; then : | ||
9373 | break | ||
9374 | fi | ||
9375 | done | ||
9376 | if ${ac_cv_search_logwtmp+:} false; then : | ||
9377 | |||
9378 | else | ||
9379 | ac_cv_search_logwtmp=no | ||
9380 | fi | ||
9381 | rm conftest.$ac_ext | ||
9382 | LIBS=$ac_func_search_save_LIBS | ||
9383 | fi | ||
9384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logwtmp" >&5 | ||
9385 | $as_echo "$ac_cv_search_logwtmp" >&6; } | ||
9386 | ac_res=$ac_cv_search_logwtmp | ||
9387 | if test "$ac_res" != no; then : | ||
9388 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9389 | |||
9390 | fi | ||
9391 | |||
9392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 | ||
9393 | $as_echo_n "checking for library containing openpty... " >&6; } | ||
9394 | if ${ac_cv_search_openpty+:} false; then : | ||
9395 | $as_echo_n "(cached) " >&6 | ||
9396 | else | ||
9397 | ac_func_search_save_LIBS=$LIBS | ||
9398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9399 | /* end confdefs.h. */ | ||
9400 | |||
9401 | /* Override any GCC internal prototype to avoid an error. | ||
9402 | Use char because int might match the return type of a GCC | ||
9403 | builtin and then its argument prototype would still apply. */ | ||
9404 | #ifdef __cplusplus | ||
9405 | extern "C" | ||
9406 | #endif | ||
9407 | char openpty (); | ||
9408 | int | ||
9409 | main () | ||
9410 | { | ||
9411 | return openpty (); | ||
9412 | ; | ||
9413 | return 0; | ||
9414 | } | ||
9415 | _ACEOF | ||
9416 | for ac_lib in '' util bsd; do | ||
9417 | if test -z "$ac_lib"; then | ||
9418 | ac_res="none required" | ||
9419 | else | ||
9420 | ac_res=-l$ac_lib | ||
9421 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9422 | fi | ||
9423 | if ac_fn_c_try_link "$LINENO"; then : | ||
9424 | ac_cv_search_openpty=$ac_res | ||
9425 | fi | ||
9426 | rm -f core conftest.err conftest.$ac_objext \ | ||
9427 | conftest$ac_exeext | ||
9428 | if ${ac_cv_search_openpty+:} false; then : | ||
9429 | break | ||
9430 | fi | ||
9431 | done | ||
9432 | if ${ac_cv_search_openpty+:} false; then : | ||
9433 | |||
9434 | else | ||
9435 | ac_cv_search_openpty=no | ||
9436 | fi | ||
9437 | rm conftest.$ac_ext | ||
9438 | LIBS=$ac_func_search_save_LIBS | ||
9439 | fi | ||
9440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 | ||
9441 | $as_echo "$ac_cv_search_openpty" >&6; } | ||
9442 | ac_res=$ac_cv_search_openpty | ||
9443 | if test "$ac_res" != no; then : | ||
9444 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9445 | |||
9446 | fi | ||
9447 | |||
9448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing updwtmp" >&5 | ||
9449 | $as_echo_n "checking for library containing updwtmp... " >&6; } | ||
9450 | if ${ac_cv_search_updwtmp+:} false; then : | ||
9451 | $as_echo_n "(cached) " >&6 | ||
9452 | else | ||
9453 | ac_func_search_save_LIBS=$LIBS | ||
9454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9455 | /* end confdefs.h. */ | ||
9456 | |||
9457 | /* Override any GCC internal prototype to avoid an error. | ||
9458 | Use char because int might match the return type of a GCC | ||
9459 | builtin and then its argument prototype would still apply. */ | ||
9460 | #ifdef __cplusplus | ||
9461 | extern "C" | ||
9462 | #endif | ||
9463 | char updwtmp (); | ||
9464 | int | ||
9465 | main () | ||
9466 | { | ||
9467 | return updwtmp (); | ||
9468 | ; | ||
9469 | return 0; | ||
9470 | } | ||
9471 | _ACEOF | ||
9472 | for ac_lib in '' util bsd; do | ||
9473 | if test -z "$ac_lib"; then | ||
9474 | ac_res="none required" | ||
9475 | else | ||
9476 | ac_res=-l$ac_lib | ||
9477 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9478 | fi | ||
9479 | if ac_fn_c_try_link "$LINENO"; then : | ||
9480 | ac_cv_search_updwtmp=$ac_res | ||
9481 | fi | ||
9482 | rm -f core conftest.err conftest.$ac_objext \ | ||
9483 | conftest$ac_exeext | ||
9484 | if ${ac_cv_search_updwtmp+:} false; then : | ||
9485 | break | ||
9486 | fi | ||
9487 | done | ||
9488 | if ${ac_cv_search_updwtmp+:} false; then : | ||
9489 | |||
9490 | else | ||
9491 | ac_cv_search_updwtmp=no | ||
9492 | fi | ||
9493 | rm conftest.$ac_ext | ||
9494 | LIBS=$ac_func_search_save_LIBS | ||
9495 | fi | ||
9496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_updwtmp" >&5 | ||
9497 | $as_echo "$ac_cv_search_updwtmp" >&6; } | ||
9498 | ac_res=$ac_cv_search_updwtmp | ||
9499 | if test "$ac_res" != no; then : | ||
9500 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9501 | |||
9502 | fi | ||
9503 | |||
9504 | for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp | ||
9505 | do : | ||
9506 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9507 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
9508 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
9509 | cat >>confdefs.h <<_ACEOF | ||
9510 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9511 | _ACEOF | ||
9512 | |||
9513 | fi | ||
9514 | done | ||
9515 | |||
9516 | |||
9517 | # On some platforms, inet_ntop and gethostbyname may be found in libresolv | ||
9518 | # or libnsl. | ||
9519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 | ||
9520 | $as_echo_n "checking for library containing inet_ntop... " >&6; } | ||
9521 | if ${ac_cv_search_inet_ntop+:} false; then : | ||
9522 | $as_echo_n "(cached) " >&6 | ||
9523 | else | ||
9524 | ac_func_search_save_LIBS=$LIBS | ||
9525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9526 | /* end confdefs.h. */ | ||
9527 | |||
9528 | /* Override any GCC internal prototype to avoid an error. | ||
9529 | Use char because int might match the return type of a GCC | ||
9530 | builtin and then its argument prototype would still apply. */ | ||
9531 | #ifdef __cplusplus | ||
9532 | extern "C" | ||
9533 | #endif | ||
9534 | char inet_ntop (); | ||
9535 | int | ||
9536 | main () | ||
9537 | { | ||
9538 | return inet_ntop (); | ||
9539 | ; | ||
9540 | return 0; | ||
9541 | } | ||
9542 | _ACEOF | ||
9543 | for ac_lib in '' resolv nsl; do | ||
9544 | if test -z "$ac_lib"; then | ||
9545 | ac_res="none required" | ||
9546 | else | ||
9547 | ac_res=-l$ac_lib | ||
9548 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9549 | fi | ||
9550 | if ac_fn_c_try_link "$LINENO"; then : | ||
9551 | ac_cv_search_inet_ntop=$ac_res | ||
9552 | fi | ||
9553 | rm -f core conftest.err conftest.$ac_objext \ | ||
9554 | conftest$ac_exeext | ||
9555 | if ${ac_cv_search_inet_ntop+:} false; then : | ||
9556 | break | ||
9557 | fi | ||
9558 | done | ||
9559 | if ${ac_cv_search_inet_ntop+:} false; then : | ||
9560 | |||
9561 | else | ||
9562 | ac_cv_search_inet_ntop=no | ||
9563 | fi | ||
9564 | rm conftest.$ac_ext | ||
9565 | LIBS=$ac_func_search_save_LIBS | ||
9566 | fi | ||
9567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 | ||
9568 | $as_echo "$ac_cv_search_inet_ntop" >&6; } | ||
9569 | ac_res=$ac_cv_search_inet_ntop | ||
9570 | if test "$ac_res" != no; then : | ||
9571 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9572 | |||
9573 | fi | ||
9574 | |||
9575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 | ||
9576 | $as_echo_n "checking for library containing gethostbyname... " >&6; } | ||
9577 | if ${ac_cv_search_gethostbyname+:} false; then : | ||
9578 | $as_echo_n "(cached) " >&6 | ||
9579 | else | ||
9580 | ac_func_search_save_LIBS=$LIBS | ||
9581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9582 | /* end confdefs.h. */ | ||
9583 | |||
9584 | /* Override any GCC internal prototype to avoid an error. | ||
9585 | Use char because int might match the return type of a GCC | ||
9586 | builtin and then its argument prototype would still apply. */ | ||
9587 | #ifdef __cplusplus | ||
9588 | extern "C" | ||
9589 | #endif | ||
9590 | char gethostbyname (); | ||
9591 | int | ||
9592 | main () | ||
9593 | { | ||
9594 | return gethostbyname (); | ||
9595 | ; | ||
9596 | return 0; | ||
9597 | } | ||
9598 | _ACEOF | ||
9599 | for ac_lib in '' resolv nsl; do | ||
9600 | if test -z "$ac_lib"; then | ||
9601 | ac_res="none required" | ||
9602 | else | ||
9603 | ac_res=-l$ac_lib | ||
9604 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9605 | fi | ||
9606 | if ac_fn_c_try_link "$LINENO"; then : | ||
9607 | ac_cv_search_gethostbyname=$ac_res | ||
9608 | fi | ||
9609 | rm -f core conftest.err conftest.$ac_objext \ | ||
9610 | conftest$ac_exeext | ||
9611 | if ${ac_cv_search_gethostbyname+:} false; then : | ||
9612 | break | ||
9613 | fi | ||
9614 | done | ||
9615 | if ${ac_cv_search_gethostbyname+:} false; then : | ||
9616 | |||
9617 | else | ||
9618 | ac_cv_search_gethostbyname=no | ||
9619 | fi | ||
9620 | rm conftest.$ac_ext | ||
9621 | LIBS=$ac_func_search_save_LIBS | ||
9622 | fi | ||
9623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 | ||
9624 | $as_echo "$ac_cv_search_gethostbyname" >&6; } | ||
9625 | ac_res=$ac_cv_search_gethostbyname | ||
9626 | if test "$ac_res" != no; then : | ||
9627 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9628 | |||
9629 | fi | ||
9630 | |||
9631 | |||
9632 | for ac_func in strftime | ||
9633 | do : | ||
9634 | ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" | ||
9635 | if test "x$ac_cv_func_strftime" = xyes; then : | ||
9636 | cat >>confdefs.h <<_ACEOF | ||
9637 | #define HAVE_STRFTIME 1 | ||
9638 | _ACEOF | ||
9639 | |||
9640 | else | ||
9641 | # strftime is in -lintl on SCO UNIX. | ||
9642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 | ||
9643 | $as_echo_n "checking for strftime in -lintl... " >&6; } | ||
9644 | if ${ac_cv_lib_intl_strftime+:} false; then : | ||
9645 | $as_echo_n "(cached) " >&6 | ||
9646 | else | ||
9647 | ac_check_lib_save_LIBS=$LIBS | ||
9648 | LIBS="-lintl $LIBS" | ||
9649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9650 | /* end confdefs.h. */ | ||
9651 | |||
9652 | /* Override any GCC internal prototype to avoid an error. | ||
9653 | Use char because int might match the return type of a GCC | ||
9654 | builtin and then its argument prototype would still apply. */ | ||
9655 | #ifdef __cplusplus | ||
9656 | extern "C" | ||
9657 | #endif | ||
9658 | char strftime (); | ||
9659 | int | ||
9660 | main () | ||
9661 | { | ||
9662 | return strftime (); | ||
9663 | ; | ||
9664 | return 0; | ||
9665 | } | ||
9666 | _ACEOF | ||
9667 | if ac_fn_c_try_link "$LINENO"; then : | ||
9668 | ac_cv_lib_intl_strftime=yes | ||
9669 | else | ||
9670 | ac_cv_lib_intl_strftime=no | ||
9671 | fi | ||
9672 | rm -f core conftest.err conftest.$ac_objext \ | ||
9673 | conftest$ac_exeext conftest.$ac_ext | ||
9674 | LIBS=$ac_check_lib_save_LIBS | ||
9675 | fi | ||
9676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 | ||
9677 | $as_echo "$ac_cv_lib_intl_strftime" >&6; } | ||
9678 | if test "x$ac_cv_lib_intl_strftime" = xyes; then : | ||
9679 | $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h | ||
9680 | |||
9681 | LIBS="-lintl $LIBS" | ||
9682 | fi | ||
9683 | |||
9684 | fi | ||
9685 | done | ||
9686 | |||
9687 | |||
9688 | # Check for ALTDIRFUNC glob() extension | ||
9689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5 | ||
9690 | $as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; } | ||
9691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9692 | /* end confdefs.h. */ | ||
9693 | |||
9694 | #include <glob.h> | ||
9695 | #ifdef GLOB_ALTDIRFUNC | ||
9696 | FOUNDIT | ||
9697 | #endif | ||
9698 | |||
9699 | _ACEOF | ||
9700 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
9701 | $EGREP "FOUNDIT" >/dev/null 2>&1; then : | ||
9702 | |||
9703 | |||
9704 | $as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h | ||
9705 | |||
9706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9707 | $as_echo "yes" >&6; } | ||
9708 | |||
9709 | else | ||
9710 | |||
9711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9712 | $as_echo "no" >&6; } | ||
9713 | |||
9714 | |||
9715 | fi | ||
9716 | rm -f conftest* | ||
9717 | |||
9718 | |||
9719 | # Check for g.gl_matchc glob() extension | ||
9720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5 | ||
9721 | $as_echo_n "checking for gl_matchc field in glob_t... " >&6; } | ||
9722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9723 | /* end confdefs.h. */ | ||
9724 | #include <glob.h> | ||
9725 | int | ||
9726 | main () | ||
9727 | { | ||
9728 | glob_t g; g.gl_matchc = 1; | ||
9729 | ; | ||
9730 | return 0; | ||
9731 | } | ||
9732 | _ACEOF | ||
9733 | if ac_fn_c_try_compile "$LINENO"; then : | ||
9734 | |||
9735 | |||
9736 | $as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h | ||
9737 | |||
9738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9739 | $as_echo "yes" >&6; } | ||
9740 | |||
9741 | else | ||
9742 | |||
9743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9744 | $as_echo "no" >&6; } | ||
9745 | |||
9746 | fi | ||
9747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9748 | |||
9749 | # Check for g.gl_statv glob() extension | ||
9750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5 | ||
9751 | $as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; } | ||
9752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9753 | /* end confdefs.h. */ | ||
9754 | #include <glob.h> | ||
9755 | int | ||
9756 | main () | ||
9757 | { | ||
9758 | |||
9759 | #ifndef GLOB_KEEPSTAT | ||
9760 | #error "glob does not support GLOB_KEEPSTAT extension" | ||
9761 | #endif | ||
9762 | glob_t g; | ||
9763 | g.gl_statv = NULL; | ||
9764 | |||
9765 | ; | ||
9766 | return 0; | ||
9767 | } | ||
9768 | _ACEOF | ||
9769 | if ac_fn_c_try_compile "$LINENO"; then : | ||
9770 | |||
9771 | |||
9772 | $as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h | ||
9773 | |||
9774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9775 | $as_echo "yes" >&6; } | ||
9776 | |||
9777 | else | ||
9778 | |||
9779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9780 | $as_echo "no" >&6; } | ||
9781 | |||
9782 | |||
9783 | fi | ||
9784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9785 | |||
9786 | ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h> | ||
9787 | " | ||
9788 | if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then : | ||
9789 | ac_have_decl=1 | ||
9790 | else | ||
9791 | ac_have_decl=0 | ||
9792 | fi | ||
9793 | |||
9794 | cat >>confdefs.h <<_ACEOF | ||
9795 | #define HAVE_DECL_GLOB_NOMATCH $ac_have_decl | ||
9796 | _ACEOF | ||
9797 | |||
9798 | |||
9799 | ac_fn_c_check_decl "$LINENO" "VIS_ALL" "ac_cv_have_decl_VIS_ALL" "#include <vis.h> | ||
9800 | " | ||
9801 | if test "x$ac_cv_have_decl_VIS_ALL" = xyes; then : | ||
9802 | |||
9803 | else | ||
9804 | |||
9805 | $as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h | ||
9806 | |||
9807 | fi | ||
9808 | |||
9809 | |||
9810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5 | ||
9811 | $as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; } | ||
9812 | if test "$cross_compiling" = yes; then : | ||
9813 | |||
9814 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5 | ||
9815 | $as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;} | ||
9816 | $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h | ||
9817 | |||
9818 | |||
9819 | |||
9820 | else | ||
9821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9822 | /* end confdefs.h. */ | ||
9823 | |||
9824 | #include <sys/types.h> | ||
9825 | #include <dirent.h> | ||
9826 | int | ||
9827 | main () | ||
9828 | { | ||
9829 | |||
9830 | struct dirent d; | ||
9831 | exit(sizeof(d.d_name)<=sizeof(char)); | ||
9832 | |||
9833 | ; | ||
9834 | return 0; | ||
9835 | } | ||
9836 | _ACEOF | ||
9837 | if ac_fn_c_try_run "$LINENO"; then : | ||
9838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9839 | $as_echo "yes" >&6; } | ||
9840 | else | ||
9841 | |||
9842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9843 | $as_echo "no" >&6; } | ||
9844 | |||
9845 | $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h | ||
9846 | |||
9847 | |||
9848 | fi | ||
9849 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
9850 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
9851 | fi | ||
9852 | |||
9853 | |||
9854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5 | ||
9855 | $as_echo_n "checking for /proc/pid/fd directory... " >&6; } | ||
9856 | if test -d "/proc/$$/fd" ; then | ||
9857 | |||
9858 | $as_echo "#define HAVE_PROC_PID 1" >>confdefs.h | ||
9859 | |||
9860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9861 | $as_echo "yes" >&6; } | ||
9862 | else | ||
9863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9864 | $as_echo "no" >&6; } | ||
9865 | fi | ||
9866 | |||
9867 | # Check whether user wants S/Key support | ||
9868 | SKEY_MSG="no" | ||
9869 | |||
9870 | # Check whether --with-skey was given. | ||
9871 | if test "${with_skey+set}" = set; then : | ||
9872 | withval=$with_skey; | ||
9873 | if test "x$withval" != "xno" ; then | ||
9874 | |||
9875 | if test "x$withval" != "xyes" ; then | ||
9876 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
9877 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
9878 | fi | ||
9879 | |||
9880 | |||
9881 | $as_echo "#define SKEY 1" >>confdefs.h | ||
9882 | |||
9883 | LIBS="-lskey $LIBS" | ||
9884 | SKEY_MSG="yes" | ||
9885 | |||
9886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5 | ||
9887 | $as_echo_n "checking for s/key support... " >&6; } | ||
9888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9889 | /* end confdefs.h. */ | ||
9890 | |||
9891 | #include <stdio.h> | ||
9892 | #include <skey.h> | ||
9893 | |||
9894 | int | ||
9895 | main () | ||
9896 | { | ||
9897 | |||
9898 | char *ff = skey_keyinfo(""); ff=""; | ||
9899 | exit(0); | ||
9900 | |||
9901 | ; | ||
9902 | return 0; | ||
9903 | } | ||
9904 | _ACEOF | ||
9905 | if ac_fn_c_try_link "$LINENO"; then : | ||
9906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9907 | $as_echo "yes" >&6; } | ||
9908 | else | ||
9909 | |||
9910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9911 | $as_echo "no" >&6; } | ||
9912 | as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5 | ||
9913 | |||
9914 | fi | ||
9915 | rm -f core conftest.err conftest.$ac_objext \ | ||
9916 | conftest$ac_exeext conftest.$ac_ext | ||
9917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5 | ||
9918 | $as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; } | ||
9919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9920 | /* end confdefs.h. */ | ||
9921 | |||
9922 | #include <stdio.h> | ||
9923 | #include <skey.h> | ||
9924 | |||
9925 | int | ||
9926 | main () | ||
9927 | { | ||
9928 | |||
9929 | (void)skeychallenge(NULL,"name","",0); | ||
9930 | |||
9931 | ; | ||
9932 | return 0; | ||
9933 | } | ||
9934 | _ACEOF | ||
9935 | if ac_fn_c_try_compile "$LINENO"; then : | ||
9936 | |||
9937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9938 | $as_echo "yes" >&6; } | ||
9939 | |||
9940 | $as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h | ||
9941 | |||
9942 | else | ||
9943 | |||
9944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9945 | $as_echo "no" >&6; } | ||
9946 | |||
9947 | fi | ||
9948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9949 | fi | ||
9950 | |||
9951 | |||
9952 | fi | ||
9953 | |||
9954 | |||
9955 | # Check whether user wants to use ldns | ||
9956 | LDNS_MSG="no" | ||
9957 | |||
9958 | # Check whether --with-ldns was given. | ||
9959 | if test "${with_ldns+set}" = set; then : | ||
9960 | withval=$with_ldns; | ||
9961 | if test "x$withval" != "xno" ; then | ||
9962 | |||
9963 | if test "x$withval" != "xyes" ; then | ||
9964 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
9965 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
9966 | fi | ||
9967 | |||
9968 | |||
9969 | $as_echo "#define HAVE_LDNS 1" >>confdefs.h | ||
9970 | |||
9971 | LIBS="-lldns $LIBS" | ||
9972 | LDNS_MSG="yes" | ||
9973 | |||
9974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns support" >&5 | ||
9975 | $as_echo_n "checking for ldns support... " >&6; } | ||
9976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9977 | /* end confdefs.h. */ | ||
9978 | |||
9979 | #include <stdio.h> | ||
9980 | #include <stdlib.h> | ||
9981 | #include <stdint.h> | ||
9982 | #include <ldns/ldns.h> | ||
9983 | int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); } | ||
9984 | |||
9985 | |||
9986 | _ACEOF | ||
9987 | if ac_fn_c_try_link "$LINENO"; then : | ||
9988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9989 | $as_echo "yes" >&6; } | ||
9990 | else | ||
9991 | |||
9992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9993 | $as_echo "no" >&6; } | ||
9994 | as_fn_error $? "** Incomplete or missing ldns libraries." "$LINENO" 5 | ||
9995 | |||
9996 | fi | ||
9997 | rm -f core conftest.err conftest.$ac_objext \ | ||
9998 | conftest$ac_exeext conftest.$ac_ext | ||
9999 | fi | ||
10000 | |||
10001 | |||
10002 | fi | ||
10003 | |||
10004 | |||
10005 | # Check whether user wants libedit support | ||
10006 | LIBEDIT_MSG="no" | ||
10007 | |||
10008 | # Check whether --with-libedit was given. | ||
10009 | if test "${with_libedit+set}" = set; then : | ||
10010 | withval=$with_libedit; if test "x$withval" != "xno" ; then | ||
10011 | if test "x$withval" = "xyes" ; then | ||
10012 | if test -n "$ac_tool_prefix"; then | ||
10013 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
10014 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
10015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
10016 | $as_echo_n "checking for $ac_word... " >&6; } | ||
10017 | if ${ac_cv_path_PKGCONFIG+:} false; then : | ||
10018 | $as_echo_n "(cached) " >&6 | ||
10019 | else | ||
10020 | case $PKGCONFIG in | ||
10021 | [\\/]* | ?:[\\/]*) | ||
10022 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. | ||
10023 | ;; | ||
10024 | *) | ||
10025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10026 | for as_dir in $PATH | ||
10027 | do | ||
10028 | IFS=$as_save_IFS | ||
10029 | test -z "$as_dir" && as_dir=. | ||
10030 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10031 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
10032 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
10033 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10034 | break 2 | ||
10035 | fi | ||
10036 | done | ||
10037 | done | ||
10038 | IFS=$as_save_IFS | ||
10039 | |||
10040 | ;; | ||
10041 | esac | ||
10042 | fi | ||
10043 | PKGCONFIG=$ac_cv_path_PKGCONFIG | ||
10044 | if test -n "$PKGCONFIG"; then | ||
10045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 | ||
10046 | $as_echo "$PKGCONFIG" >&6; } | ||
10047 | else | ||
10048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10049 | $as_echo "no" >&6; } | ||
10050 | fi | ||
10051 | |||
10052 | |||
10053 | fi | ||
10054 | if test -z "$ac_cv_path_PKGCONFIG"; then | ||
10055 | ac_pt_PKGCONFIG=$PKGCONFIG | ||
10056 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
10057 | set dummy pkg-config; ac_word=$2 | ||
10058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
10059 | $as_echo_n "checking for $ac_word... " >&6; } | ||
10060 | if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : | ||
10061 | $as_echo_n "(cached) " >&6 | ||
10062 | else | ||
10063 | case $ac_pt_PKGCONFIG in | ||
10064 | [\\/]* | ?:[\\/]*) | ||
10065 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. | ||
10066 | ;; | ||
10067 | *) | ||
10068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10069 | for as_dir in $PATH | ||
10070 | do | ||
10071 | IFS=$as_save_IFS | ||
10072 | test -z "$as_dir" && as_dir=. | ||
10073 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10074 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
10075 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
10076 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10077 | break 2 | ||
10078 | fi | ||
10079 | done | ||
10080 | done | ||
10081 | IFS=$as_save_IFS | ||
10082 | |||
10083 | ;; | ||
10084 | esac | ||
10085 | fi | ||
10086 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG | ||
10087 | if test -n "$ac_pt_PKGCONFIG"; then | ||
10088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 | ||
10089 | $as_echo "$ac_pt_PKGCONFIG" >&6; } | ||
10090 | else | ||
10091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10092 | $as_echo "no" >&6; } | ||
10093 | fi | ||
10094 | |||
10095 | if test "x$ac_pt_PKGCONFIG" = x; then | ||
10096 | PKGCONFIG="no" | ||
10097 | else | ||
10098 | case $cross_compiling:$ac_tool_warned in | ||
10099 | yes:) | ||
10100 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
10101 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
10102 | ac_tool_warned=yes ;; | ||
10103 | esac | ||
10104 | PKGCONFIG=$ac_pt_PKGCONFIG | ||
10105 | fi | ||
10106 | else | ||
10107 | PKGCONFIG="$ac_cv_path_PKGCONFIG" | ||
10108 | fi | ||
10109 | |||
10110 | if test "x$PKGCONFIG" != "xno"; then | ||
10111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5 | ||
10112 | $as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; } | ||
10113 | if "$PKGCONFIG" libedit; then | ||
10114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10115 | $as_echo "yes" >&6; } | ||
10116 | use_pkgconfig_for_libedit=yes | ||
10117 | else | ||
10118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10119 | $as_echo "no" >&6; } | ||
10120 | fi | ||
10121 | fi | ||
10122 | else | ||
10123 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
10124 | if test -n "${need_dash_r}"; then | ||
10125 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
10126 | else | ||
10127 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
10128 | fi | ||
10129 | fi | ||
10130 | if test "x$use_pkgconfig_for_libedit" = "xyes"; then | ||
10131 | LIBEDIT=`$PKGCONFIG --libs libedit` | ||
10132 | CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`" | ||
10133 | else | ||
10134 | LIBEDIT="-ledit -lcurses" | ||
10135 | fi | ||
10136 | OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'` | ||
10137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5 | ||
10138 | $as_echo_n "checking for el_init in -ledit... " >&6; } | ||
10139 | if ${ac_cv_lib_edit_el_init+:} false; then : | ||
10140 | $as_echo_n "(cached) " >&6 | ||
10141 | else | ||
10142 | ac_check_lib_save_LIBS=$LIBS | ||
10143 | LIBS="-ledit $OTHERLIBS | ||
10144 | $LIBS" | ||
10145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10146 | /* end confdefs.h. */ | ||
10147 | |||
10148 | /* Override any GCC internal prototype to avoid an error. | ||
10149 | Use char because int might match the return type of a GCC | ||
10150 | builtin and then its argument prototype would still apply. */ | ||
10151 | #ifdef __cplusplus | ||
10152 | extern "C" | ||
10153 | #endif | ||
10154 | char el_init (); | ||
10155 | int | ||
10156 | main () | ||
10157 | { | ||
10158 | return el_init (); | ||
10159 | ; | ||
10160 | return 0; | ||
10161 | } | ||
10162 | _ACEOF | ||
10163 | if ac_fn_c_try_link "$LINENO"; then : | ||
10164 | ac_cv_lib_edit_el_init=yes | ||
10165 | else | ||
10166 | ac_cv_lib_edit_el_init=no | ||
10167 | fi | ||
10168 | rm -f core conftest.err conftest.$ac_objext \ | ||
10169 | conftest$ac_exeext conftest.$ac_ext | ||
10170 | LIBS=$ac_check_lib_save_LIBS | ||
10171 | fi | ||
10172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5 | ||
10173 | $as_echo "$ac_cv_lib_edit_el_init" >&6; } | ||
10174 | if test "x$ac_cv_lib_edit_el_init" = xyes; then : | ||
10175 | |||
10176 | $as_echo "#define USE_LIBEDIT 1" >>confdefs.h | ||
10177 | |||
10178 | LIBEDIT_MSG="yes" | ||
10179 | |||
10180 | |||
10181 | else | ||
10182 | as_fn_error $? "libedit not found" "$LINENO" 5 | ||
10183 | fi | ||
10184 | |||
10185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5 | ||
10186 | $as_echo_n "checking if libedit version is compatible... " >&6; } | ||
10187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10188 | /* end confdefs.h. */ | ||
10189 | #include <histedit.h> | ||
10190 | int | ||
10191 | main () | ||
10192 | { | ||
10193 | |||
10194 | int i = H_SETSIZE; | ||
10195 | el_init("", NULL, NULL, NULL); | ||
10196 | exit(0); | ||
10197 | |||
10198 | ; | ||
10199 | return 0; | ||
10200 | } | ||
10201 | _ACEOF | ||
10202 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10204 | $as_echo "yes" >&6; } | ||
10205 | else | ||
10206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10207 | $as_echo "no" >&6; } | ||
10208 | as_fn_error $? "libedit version is not compatible" "$LINENO" 5 | ||
10209 | |||
10210 | fi | ||
10211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10212 | fi | ||
10213 | |||
10214 | fi | ||
10215 | |||
10216 | |||
10217 | AUDIT_MODULE=none | ||
10218 | |||
10219 | # Check whether --with-audit was given. | ||
10220 | if test "${with_audit+set}" = set; then : | ||
10221 | withval=$with_audit; | ||
10222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5 | ||
10223 | $as_echo_n "checking for supported audit module... " >&6; } | ||
10224 | case "$withval" in | ||
10225 | bsm) | ||
10226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5 | ||
10227 | $as_echo "bsm" >&6; } | ||
10228 | AUDIT_MODULE=bsm | ||
10229 | for ac_header in bsm/audit.h | ||
10230 | do : | ||
10231 | ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" " | ||
10232 | #ifdef HAVE_TIME_H | ||
10233 | # include <time.h> | ||
10234 | #endif | ||
10235 | |||
10236 | |||
10237 | " | ||
10238 | if test "x$ac_cv_header_bsm_audit_h" = xyes; then : | ||
10239 | cat >>confdefs.h <<_ACEOF | ||
10240 | #define HAVE_BSM_AUDIT_H 1 | ||
10241 | _ACEOF | ||
10242 | |||
10243 | else | ||
10244 | as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5 | ||
10245 | fi | ||
10246 | |||
10247 | done | ||
10248 | |||
10249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5 | ||
10250 | $as_echo_n "checking for getaudit in -lbsm... " >&6; } | ||
10251 | if ${ac_cv_lib_bsm_getaudit+:} false; then : | ||
10252 | $as_echo_n "(cached) " >&6 | ||
10253 | else | ||
10254 | ac_check_lib_save_LIBS=$LIBS | ||
10255 | LIBS="-lbsm $LIBS" | ||
10256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10257 | /* end confdefs.h. */ | ||
10258 | |||
10259 | /* Override any GCC internal prototype to avoid an error. | ||
10260 | Use char because int might match the return type of a GCC | ||
10261 | builtin and then its argument prototype would still apply. */ | ||
10262 | #ifdef __cplusplus | ||
10263 | extern "C" | ||
10264 | #endif | ||
10265 | char getaudit (); | ||
10266 | int | ||
10267 | main () | ||
10268 | { | ||
10269 | return getaudit (); | ||
10270 | ; | ||
10271 | return 0; | ||
10272 | } | ||
10273 | _ACEOF | ||
10274 | if ac_fn_c_try_link "$LINENO"; then : | ||
10275 | ac_cv_lib_bsm_getaudit=yes | ||
10276 | else | ||
10277 | ac_cv_lib_bsm_getaudit=no | ||
10278 | fi | ||
10279 | rm -f core conftest.err conftest.$ac_objext \ | ||
10280 | conftest$ac_exeext conftest.$ac_ext | ||
10281 | LIBS=$ac_check_lib_save_LIBS | ||
10282 | fi | ||
10283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5 | ||
10284 | $as_echo "$ac_cv_lib_bsm_getaudit" >&6; } | ||
10285 | if test "x$ac_cv_lib_bsm_getaudit" = xyes; then : | ||
10286 | cat >>confdefs.h <<_ACEOF | ||
10287 | #define HAVE_LIBBSM 1 | ||
10288 | _ACEOF | ||
10289 | |||
10290 | LIBS="-lbsm $LIBS" | ||
10291 | |||
10292 | else | ||
10293 | as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5 | ||
10294 | fi | ||
10295 | |||
10296 | for ac_func in getaudit | ||
10297 | do : | ||
10298 | ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit" | ||
10299 | if test "x$ac_cv_func_getaudit" = xyes; then : | ||
10300 | cat >>confdefs.h <<_ACEOF | ||
10301 | #define HAVE_GETAUDIT 1 | ||
10302 | _ACEOF | ||
10303 | |||
10304 | else | ||
10305 | as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5 | ||
10306 | fi | ||
10307 | done | ||
10308 | |||
10309 | # These are optional | ||
10310 | for ac_func in getaudit_addr aug_get_machine | ||
10311 | do : | ||
10312 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10313 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
10314 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
10315 | cat >>confdefs.h <<_ACEOF | ||
10316 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10317 | _ACEOF | ||
10318 | |||
10319 | fi | ||
10320 | done | ||
10321 | |||
10322 | |||
10323 | $as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h | ||
10324 | |||
10325 | if test "$sol2ver" -ge 11; then | ||
10326 | SSHDLIBS="$SSHDLIBS -lscf" | ||
10327 | |||
10328 | $as_echo "#define BROKEN_BSM_API 1" >>confdefs.h | ||
10329 | |||
10330 | fi | ||
10331 | ;; | ||
10332 | linux) | ||
10333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5 | ||
10334 | $as_echo "linux" >&6; } | ||
10335 | AUDIT_MODULE=linux | ||
10336 | for ac_header in libaudit.h | ||
10337 | do : | ||
10338 | ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default" | ||
10339 | if test "x$ac_cv_header_libaudit_h" = xyes; then : | ||
10340 | cat >>confdefs.h <<_ACEOF | ||
10341 | #define HAVE_LIBAUDIT_H 1 | ||
10342 | _ACEOF | ||
10343 | |||
10344 | fi | ||
10345 | |||
10346 | done | ||
10347 | |||
10348 | SSHDLIBS="$SSHDLIBS -laudit" | ||
10349 | |||
10350 | $as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h | ||
10351 | |||
10352 | ;; | ||
10353 | debug) | ||
10354 | AUDIT_MODULE=debug | ||
10355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5 | ||
10356 | $as_echo "debug" >&6; } | ||
10357 | |||
10358 | $as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h | ||
10359 | |||
10360 | ;; | ||
10361 | no) | ||
10362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10363 | $as_echo "no" >&6; } | ||
10364 | ;; | ||
10365 | *) | ||
10366 | as_fn_error $? "Unknown audit module $withval" "$LINENO" 5 | ||
10367 | ;; | ||
10368 | esac | ||
10369 | |||
10370 | fi | ||
10371 | |||
10372 | |||
10373 | |||
10374 | # Check whether --with-pie was given. | ||
10375 | if test "${with_pie+set}" = set; then : | ||
10376 | withval=$with_pie; | ||
10377 | if test "x$withval" = "xno"; then | ||
10378 | use_pie=no | ||
10379 | fi | ||
10380 | if test "x$withval" = "xyes"; then | ||
10381 | use_pie=yes | ||
10382 | fi | ||
10383 | |||
10384 | |||
10385 | fi | ||
10386 | |||
10387 | if test "x$use_pie" = "x"; then | ||
10388 | use_pie=no | ||
10389 | fi | ||
10390 | if test "x$use_toolchain_hardening" != "x1" && test "x$use_pie" = "xauto"; then | ||
10391 | # Turn off automatic PIE when toolchain hardening is off. | ||
10392 | use_pie=no | ||
10393 | fi | ||
10394 | if test "x$use_pie" = "xauto"; then | ||
10395 | # Automatic PIE requires gcc >= 4.x | ||
10396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.x" >&5 | ||
10397 | $as_echo_n "checking for gcc >= 4.x... " >&6; } | ||
10398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10399 | /* end confdefs.h. */ | ||
10400 | |||
10401 | #if !defined(__GNUC__) || __GNUC__ < 4 | ||
10402 | #error gcc is too old | ||
10403 | #endif | ||
10404 | |||
10405 | _ACEOF | ||
10406 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10408 | $as_echo "yes" >&6; } | ||
10409 | else | ||
10410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10411 | $as_echo "no" >&6; } | ||
10412 | use_pie=no | ||
10413 | |||
10414 | fi | ||
10415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10416 | fi | ||
10417 | if test "x$use_pie" != "xno"; then | ||
10418 | SAVED_CFLAGS="$CFLAGS" | ||
10419 | SAVED_LDFLAGS="$LDFLAGS" | ||
10420 | { | ||
10421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fPIE" >&5 | ||
10422 | $as_echo_n "checking if $CC supports compile flag -fPIE... " >&6; } | ||
10423 | saved_CFLAGS="$CFLAGS" | ||
10424 | CFLAGS="$CFLAGS $WERROR -fPIE" | ||
10425 | _define_flag="" | ||
10426 | test "x$_define_flag" = "x" && _define_flag="-fPIE" | ||
10427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10428 | /* end confdefs.h. */ | ||
10429 | |||
10430 | #include <stdlib.h> | ||
10431 | #include <stdio.h> | ||
10432 | int main(int argc, char **argv) { | ||
10433 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
10434 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
10435 | float l = i * 2.1; | ||
10436 | double m = l / 0.5; | ||
10437 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
10438 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
10439 | exit(0); | ||
10440 | } | ||
10441 | |||
10442 | _ACEOF | ||
10443 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10444 | |||
10445 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
10446 | then | ||
10447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10448 | $as_echo "no" >&6; } | ||
10449 | CFLAGS="$saved_CFLAGS" | ||
10450 | else | ||
10451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10452 | $as_echo "yes" >&6; } | ||
10453 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
10454 | fi | ||
10455 | else | ||
10456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10457 | $as_echo "no" >&6; } | ||
10458 | CFLAGS="$saved_CFLAGS" | ||
10459 | |||
10460 | fi | ||
10461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10462 | } | ||
10463 | { | ||
10464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -pie" >&5 | ||
10465 | $as_echo_n "checking if $LD supports link flag -pie... " >&6; } | ||
10466 | saved_LDFLAGS="$LDFLAGS" | ||
10467 | LDFLAGS="$LDFLAGS $WERROR -pie" | ||
10468 | _define_flag="" | ||
10469 | test "x$_define_flag" = "x" && _define_flag="-pie" | ||
10470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10471 | /* end confdefs.h. */ | ||
10472 | |||
10473 | #include <stdlib.h> | ||
10474 | #include <stdio.h> | ||
10475 | int main(int argc, char **argv) { | ||
10476 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
10477 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
10478 | float l = i * 2.1; | ||
10479 | double m = l / 0.5; | ||
10480 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
10481 | long long p = n * o; | ||
10482 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); | ||
10483 | exit(0); | ||
10484 | } | ||
10485 | |||
10486 | _ACEOF | ||
10487 | if ac_fn_c_try_link "$LINENO"; then : | ||
10488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10489 | $as_echo "yes" >&6; } | ||
10490 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
10491 | else | ||
10492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10493 | $as_echo "no" >&6; } | ||
10494 | LDFLAGS="$saved_LDFLAGS" | ||
10495 | |||
10496 | fi | ||
10497 | rm -f core conftest.err conftest.$ac_objext \ | ||
10498 | conftest$ac_exeext conftest.$ac_ext | ||
10499 | } | ||
10500 | # We use both -fPIE and -pie or neither. | ||
10501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether both -fPIE and -pie are supported" >&5 | ||
10502 | $as_echo_n "checking whether both -fPIE and -pie are supported... " >&6; } | ||
10503 | if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \ | ||
10504 | echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then | ||
10505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10506 | $as_echo "yes" >&6; } | ||
10507 | else | ||
10508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10509 | $as_echo "no" >&6; } | ||
10510 | CFLAGS="$SAVED_CFLAGS" | ||
10511 | LDFLAGS="$SAVED_LDFLAGS" | ||
10512 | fi | ||
10513 | fi | ||
10514 | |||
10515 | for ac_func in \ | ||
10516 | Blowfish_initstate \ | ||
10517 | Blowfish_expandstate \ | ||
10518 | Blowfish_expand0state \ | ||
10519 | Blowfish_stream2word \ | ||
10520 | asprintf \ | ||
10521 | b64_ntop \ | ||
10522 | __b64_ntop \ | ||
10523 | b64_pton \ | ||
10524 | __b64_pton \ | ||
10525 | bcopy \ | ||
10526 | bcrypt_pbkdf \ | ||
10527 | bindresvport_sa \ | ||
10528 | blf_enc \ | ||
10529 | cap_rights_limit \ | ||
10530 | clock \ | ||
10531 | closefrom \ | ||
10532 | dirfd \ | ||
10533 | endgrent \ | ||
10534 | err \ | ||
10535 | errx \ | ||
10536 | explicit_bzero \ | ||
10537 | fchmod \ | ||
10538 | fchown \ | ||
10539 | freeaddrinfo \ | ||
10540 | fstatfs \ | ||
10541 | fstatvfs \ | ||
10542 | futimes \ | ||
10543 | getaddrinfo \ | ||
10544 | getcwd \ | ||
10545 | getgrouplist \ | ||
10546 | getnameinfo \ | ||
10547 | getopt \ | ||
10548 | getpeereid \ | ||
10549 | getpeerucred \ | ||
10550 | getpgid \ | ||
10551 | getpgrp \ | ||
10552 | _getpty \ | ||
10553 | getrlimit \ | ||
10554 | getttyent \ | ||
10555 | glob \ | ||
10556 | group_from_gid \ | ||
10557 | inet_aton \ | ||
10558 | inet_ntoa \ | ||
10559 | inet_ntop \ | ||
10560 | innetgr \ | ||
10561 | login_getcapbool \ | ||
10562 | md5_crypt \ | ||
10563 | memmove \ | ||
10564 | memset_s \ | ||
10565 | mkdtemp \ | ||
10566 | ngetaddrinfo \ | ||
10567 | nsleep \ | ||
10568 | ogetaddrinfo \ | ||
10569 | openlog_r \ | ||
10570 | pledge \ | ||
10571 | poll \ | ||
10572 | prctl \ | ||
10573 | pstat \ | ||
10574 | readpassphrase \ | ||
10575 | reallocarray \ | ||
10576 | recvmsg \ | ||
10577 | rresvport_af \ | ||
10578 | sendmsg \ | ||
10579 | setdtablesize \ | ||
10580 | setegid \ | ||
10581 | setenv \ | ||
10582 | seteuid \ | ||
10583 | setgroupent \ | ||
10584 | setgroups \ | ||
10585 | setlinebuf \ | ||
10586 | setlogin \ | ||
10587 | setpassent\ | ||
10588 | setpcred \ | ||
10589 | setproctitle \ | ||
10590 | setregid \ | ||
10591 | setreuid \ | ||
10592 | setrlimit \ | ||
10593 | setsid \ | ||
10594 | setvbuf \ | ||
10595 | sigaction \ | ||
10596 | sigvec \ | ||
10597 | snprintf \ | ||
10598 | socketpair \ | ||
10599 | statfs \ | ||
10600 | statvfs \ | ||
10601 | strcasestr \ | ||
10602 | strdup \ | ||
10603 | strerror \ | ||
10604 | strlcat \ | ||
10605 | strlcpy \ | ||
10606 | strmode \ | ||
10607 | strnlen \ | ||
10608 | strnvis \ | ||
10609 | strptime \ | ||
10610 | strtonum \ | ||
10611 | strtoll \ | ||
10612 | strtoul \ | ||
10613 | strtoull \ | ||
10614 | swap32 \ | ||
10615 | sysconf \ | ||
10616 | tcgetpgrp \ | ||
10617 | timingsafe_bcmp \ | ||
10618 | truncate \ | ||
10619 | unsetenv \ | ||
10620 | updwtmpx \ | ||
10621 | user_from_uid \ | ||
10622 | usleep \ | ||
10623 | vasprintf \ | ||
10624 | vsnprintf \ | ||
10625 | waitpid \ | ||
10626 | warn \ | ||
10627 | |||
10628 | do : | ||
10629 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10630 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
10631 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
10632 | cat >>confdefs.h <<_ACEOF | ||
10633 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10634 | _ACEOF | ||
10635 | |||
10636 | fi | ||
10637 | done | ||
10638 | |||
10639 | |||
10640 | saved_CFLAGS="$CFLAGS" | ||
10641 | CFLAGS="$CFLAGS -D_XOPEN_SOURCE" | ||
10642 | for ac_func in mblen mbtowc nl_langinfo wcwidth | ||
10643 | do : | ||
10644 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10645 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
10646 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
10647 | cat >>confdefs.h <<_ACEOF | ||
10648 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10649 | _ACEOF | ||
10650 | |||
10651 | fi | ||
10652 | done | ||
10653 | |||
10654 | CFLAGS="$saved_CFLAGS" | ||
10655 | |||
10656 | TEST_SSH_UTF8=${TEST_SSH_UTF8:=yes} | ||
10657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8 locale support" >&5 | ||
10658 | $as_echo_n "checking for utf8 locale support... " >&6; } | ||
10659 | if test "$cross_compiling" = yes; then : | ||
10660 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
10661 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
10662 | |||
10663 | else | ||
10664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10665 | /* end confdefs.h. */ | ||
10666 | |||
10667 | #include <locale.h> | ||
10668 | #include <stdlib.h> | ||
10669 | |||
10670 | int | ||
10671 | main () | ||
10672 | { | ||
10673 | |||
10674 | char *loc = setlocale(LC_CTYPE, "en_US.UTF-8"); | ||
10675 | if (loc != NULL) | ||
10676 | exit(0); | ||
10677 | exit(1); | ||
10678 | |||
10679 | ; | ||
10680 | return 0; | ||
10681 | } | ||
10682 | _ACEOF | ||
10683 | if ac_fn_c_try_run "$LINENO"; then : | ||
10684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10685 | $as_echo "yes" >&6; } | ||
10686 | else | ||
10687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10688 | $as_echo "no" >&6; } | ||
10689 | TEST_SSH_UTF8=no | ||
10690 | fi | ||
10691 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10692 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10693 | fi | ||
10694 | |||
10695 | |||
10696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10697 | /* end confdefs.h. */ | ||
10698 | #include <ctype.h> | ||
10699 | int | ||
10700 | main () | ||
10701 | { | ||
10702 | return (isblank('a')); | ||
10703 | ; | ||
10704 | return 0; | ||
10705 | } | ||
10706 | _ACEOF | ||
10707 | if ac_fn_c_try_link "$LINENO"; then : | ||
10708 | |||
10709 | $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h | ||
10710 | |||
10711 | |||
10712 | fi | ||
10713 | rm -f core conftest.err conftest.$ac_objext \ | ||
10714 | conftest$ac_exeext conftest.$ac_ext | ||
10715 | |||
10716 | disable_pkcs11= | ||
10717 | # Check whether --enable-pkcs11 was given. | ||
10718 | if test "${enable_pkcs11+set}" = set; then : | ||
10719 | enableval=$enable_pkcs11; | ||
10720 | if test "x$enableval" = "xno" ; then | ||
10721 | disable_pkcs11=1 | ||
10722 | fi | ||
10723 | |||
10724 | |||
10725 | fi | ||
10726 | |||
10727 | |||
10728 | # PKCS11 depends on OpenSSL. | ||
10729 | if test "x$openssl" = "xyes" && test "x$disable_pkcs11" = "x"; then | ||
10730 | # PKCS#11 support requires dlopen() and co | ||
10731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 | ||
10732 | $as_echo_n "checking for library containing dlopen... " >&6; } | ||
10733 | if ${ac_cv_search_dlopen+:} false; then : | ||
10734 | $as_echo_n "(cached) " >&6 | ||
10735 | else | ||
10736 | ac_func_search_save_LIBS=$LIBS | ||
10737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10738 | /* end confdefs.h. */ | ||
10739 | |||
10740 | /* Override any GCC internal prototype to avoid an error. | ||
10741 | Use char because int might match the return type of a GCC | ||
10742 | builtin and then its argument prototype would still apply. */ | ||
10743 | #ifdef __cplusplus | ||
10744 | extern "C" | ||
10745 | #endif | ||
10746 | char dlopen (); | ||
10747 | int | ||
10748 | main () | ||
10749 | { | ||
10750 | return dlopen (); | ||
10751 | ; | ||
10752 | return 0; | ||
10753 | } | ||
10754 | _ACEOF | ||
10755 | for ac_lib in '' dl; do | ||
10756 | if test -z "$ac_lib"; then | ||
10757 | ac_res="none required" | ||
10758 | else | ||
10759 | ac_res=-l$ac_lib | ||
10760 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
10761 | fi | ||
10762 | if ac_fn_c_try_link "$LINENO"; then : | ||
10763 | ac_cv_search_dlopen=$ac_res | ||
10764 | fi | ||
10765 | rm -f core conftest.err conftest.$ac_objext \ | ||
10766 | conftest$ac_exeext | ||
10767 | if ${ac_cv_search_dlopen+:} false; then : | ||
10768 | break | ||
10769 | fi | ||
10770 | done | ||
10771 | if ${ac_cv_search_dlopen+:} false; then : | ||
10772 | |||
10773 | else | ||
10774 | ac_cv_search_dlopen=no | ||
10775 | fi | ||
10776 | rm conftest.$ac_ext | ||
10777 | LIBS=$ac_func_search_save_LIBS | ||
10778 | fi | ||
10779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | ||
10780 | $as_echo "$ac_cv_search_dlopen" >&6; } | ||
10781 | ac_res=$ac_cv_search_dlopen | ||
10782 | if test "$ac_res" != no; then : | ||
10783 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
10784 | |||
10785 | $as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h | ||
10786 | |||
10787 | |||
10788 | fi | ||
10789 | |||
10790 | fi | ||
10791 | |||
10792 | # IRIX has a const char return value for gai_strerror() | ||
10793 | for ac_func in gai_strerror | ||
10794 | do : | ||
10795 | ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" | ||
10796 | if test "x$ac_cv_func_gai_strerror" = xyes; then : | ||
10797 | cat >>confdefs.h <<_ACEOF | ||
10798 | #define HAVE_GAI_STRERROR 1 | ||
10799 | _ACEOF | ||
10800 | |||
10801 | $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h | ||
10802 | |||
10803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10804 | /* end confdefs.h. */ | ||
10805 | |||
10806 | #include <sys/types.h> | ||
10807 | #include <sys/socket.h> | ||
10808 | #include <netdb.h> | ||
10809 | |||
10810 | const char *gai_strerror(int); | ||
10811 | |||
10812 | int | ||
10813 | main () | ||
10814 | { | ||
10815 | |||
10816 | char *str; | ||
10817 | str = gai_strerror(0); | ||
10818 | |||
10819 | ; | ||
10820 | return 0; | ||
10821 | } | ||
10822 | _ACEOF | ||
10823 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10824 | |||
10825 | |||
10826 | $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h | ||
10827 | |||
10828 | fi | ||
10829 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10830 | fi | ||
10831 | done | ||
10832 | |||
10833 | |||
10834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 | ||
10835 | $as_echo_n "checking for library containing nanosleep... " >&6; } | ||
10836 | if ${ac_cv_search_nanosleep+:} false; then : | ||
10837 | $as_echo_n "(cached) " >&6 | ||
10838 | else | ||
10839 | ac_func_search_save_LIBS=$LIBS | ||
10840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10841 | /* end confdefs.h. */ | ||
10842 | |||
10843 | /* Override any GCC internal prototype to avoid an error. | ||
10844 | Use char because int might match the return type of a GCC | ||
10845 | builtin and then its argument prototype would still apply. */ | ||
10846 | #ifdef __cplusplus | ||
10847 | extern "C" | ||
10848 | #endif | ||
10849 | char nanosleep (); | ||
10850 | int | ||
10851 | main () | ||
10852 | { | ||
10853 | return nanosleep (); | ||
10854 | ; | ||
10855 | return 0; | ||
10856 | } | ||
10857 | _ACEOF | ||
10858 | for ac_lib in '' rt posix4; do | ||
10859 | if test -z "$ac_lib"; then | ||
10860 | ac_res="none required" | ||
10861 | else | ||
10862 | ac_res=-l$ac_lib | ||
10863 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
10864 | fi | ||
10865 | if ac_fn_c_try_link "$LINENO"; then : | ||
10866 | ac_cv_search_nanosleep=$ac_res | ||
10867 | fi | ||
10868 | rm -f core conftest.err conftest.$ac_objext \ | ||
10869 | conftest$ac_exeext | ||
10870 | if ${ac_cv_search_nanosleep+:} false; then : | ||
10871 | break | ||
10872 | fi | ||
10873 | done | ||
10874 | if ${ac_cv_search_nanosleep+:} false; then : | ||
10875 | |||
10876 | else | ||
10877 | ac_cv_search_nanosleep=no | ||
10878 | fi | ||
10879 | rm conftest.$ac_ext | ||
10880 | LIBS=$ac_func_search_save_LIBS | ||
10881 | fi | ||
10882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 | ||
10883 | $as_echo "$ac_cv_search_nanosleep" >&6; } | ||
10884 | ac_res=$ac_cv_search_nanosleep | ||
10885 | if test "$ac_res" != no; then : | ||
10886 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
10887 | |||
10888 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h | ||
10889 | |||
10890 | fi | ||
10891 | |||
10892 | |||
10893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 | ||
10894 | $as_echo_n "checking for library containing clock_gettime... " >&6; } | ||
10895 | if ${ac_cv_search_clock_gettime+:} false; then : | ||
10896 | $as_echo_n "(cached) " >&6 | ||
10897 | else | ||
10898 | ac_func_search_save_LIBS=$LIBS | ||
10899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10900 | /* end confdefs.h. */ | ||
10901 | |||
10902 | /* Override any GCC internal prototype to avoid an error. | ||
10903 | Use char because int might match the return type of a GCC | ||
10904 | builtin and then its argument prototype would still apply. */ | ||
10905 | #ifdef __cplusplus | ||
10906 | extern "C" | ||
10907 | #endif | ||
10908 | char clock_gettime (); | ||
10909 | int | ||
10910 | main () | ||
10911 | { | ||
10912 | return clock_gettime (); | ||
10913 | ; | ||
10914 | return 0; | ||
10915 | } | ||
10916 | _ACEOF | ||
10917 | for ac_lib in '' rt; do | ||
10918 | if test -z "$ac_lib"; then | ||
10919 | ac_res="none required" | ||
10920 | else | ||
10921 | ac_res=-l$ac_lib | ||
10922 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
10923 | fi | ||
10924 | if ac_fn_c_try_link "$LINENO"; then : | ||
10925 | ac_cv_search_clock_gettime=$ac_res | ||
10926 | fi | ||
10927 | rm -f core conftest.err conftest.$ac_objext \ | ||
10928 | conftest$ac_exeext | ||
10929 | if ${ac_cv_search_clock_gettime+:} false; then : | ||
10930 | break | ||
10931 | fi | ||
10932 | done | ||
10933 | if ${ac_cv_search_clock_gettime+:} false; then : | ||
10934 | |||
10935 | else | ||
10936 | ac_cv_search_clock_gettime=no | ||
10937 | fi | ||
10938 | rm conftest.$ac_ext | ||
10939 | LIBS=$ac_func_search_save_LIBS | ||
10940 | fi | ||
10941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 | ||
10942 | $as_echo "$ac_cv_search_clock_gettime" >&6; } | ||
10943 | ac_res=$ac_cv_search_clock_gettime | ||
10944 | if test "$ac_res" != no; then : | ||
10945 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
10946 | |||
10947 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | ||
10948 | |||
10949 | fi | ||
10950 | |||
10951 | |||
10952 | ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default" | ||
10953 | if test "x$ac_cv_have_decl_getrusage" = xyes; then : | ||
10954 | for ac_func in getrusage | ||
10955 | do : | ||
10956 | ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage" | ||
10957 | if test "x$ac_cv_func_getrusage" = xyes; then : | ||
10958 | cat >>confdefs.h <<_ACEOF | ||
10959 | #define HAVE_GETRUSAGE 1 | ||
10960 | _ACEOF | ||
10961 | |||
10962 | fi | ||
10963 | done | ||
10964 | |||
10965 | fi | ||
10966 | |||
10967 | ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" " | ||
10968 | #ifdef HAVE_STRING_H | ||
10969 | # include <string.h> | ||
10970 | #endif | ||
10971 | |||
10972 | " | ||
10973 | if test "x$ac_cv_have_decl_strsep" = xyes; then : | ||
10974 | for ac_func in strsep | ||
10975 | do : | ||
10976 | ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" | ||
10977 | if test "x$ac_cv_func_strsep" = xyes; then : | ||
10978 | cat >>confdefs.h <<_ACEOF | ||
10979 | #define HAVE_STRSEP 1 | ||
10980 | _ACEOF | ||
10981 | |||
10982 | fi | ||
10983 | done | ||
10984 | |||
10985 | fi | ||
10986 | |||
10987 | |||
10988 | ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h> | ||
10989 | |||
10990 | " | ||
10991 | if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then : | ||
10992 | $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h | ||
10993 | |||
10994 | else | ||
10995 | for ac_func in tcsendbreak | ||
10996 | do : | ||
10997 | ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak" | ||
10998 | if test "x$ac_cv_func_tcsendbreak" = xyes; then : | ||
10999 | cat >>confdefs.h <<_ACEOF | ||
11000 | #define HAVE_TCSENDBREAK 1 | ||
11001 | _ACEOF | ||
11002 | |||
11003 | fi | ||
11004 | done | ||
11005 | |||
11006 | fi | ||
11007 | |||
11008 | |||
11009 | ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h> | ||
11010 | " | ||
11011 | if test "x$ac_cv_have_decl_h_errno" = xyes; then : | ||
11012 | ac_have_decl=1 | ||
11013 | else | ||
11014 | ac_have_decl=0 | ||
11015 | fi | ||
11016 | |||
11017 | cat >>confdefs.h <<_ACEOF | ||
11018 | #define HAVE_DECL_H_ERRNO $ac_have_decl | ||
11019 | _ACEOF | ||
11020 | |||
11021 | |||
11022 | ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" " | ||
11023 | #include <sys/types.h> | ||
11024 | #include <sys/socket.h> | ||
11025 | |||
11026 | " | ||
11027 | if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then : | ||
11028 | ac_have_decl=1 | ||
11029 | else | ||
11030 | ac_have_decl=0 | ||
11031 | fi | ||
11032 | |||
11033 | cat >>confdefs.h <<_ACEOF | ||
11034 | #define HAVE_DECL_SHUT_RD $ac_have_decl | ||
11035 | _ACEOF | ||
11036 | |||
11037 | |||
11038 | ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" " | ||
11039 | #include <sys/types.h> | ||
11040 | #ifdef HAVE_SYS_STAT_H | ||
11041 | # include <sys/stat.h> | ||
11042 | #endif | ||
11043 | #ifdef HAVE_FCNTL_H | ||
11044 | # include <fcntl.h> | ||
11045 | #endif | ||
11046 | |||
11047 | " | ||
11048 | if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then : | ||
11049 | ac_have_decl=1 | ||
11050 | else | ||
11051 | ac_have_decl=0 | ||
11052 | fi | ||
11053 | |||
11054 | cat >>confdefs.h <<_ACEOF | ||
11055 | #define HAVE_DECL_O_NONBLOCK $ac_have_decl | ||
11056 | _ACEOF | ||
11057 | |||
11058 | |||
11059 | ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" " | ||
11060 | #include <sys/types.h> | ||
11061 | #include <sys/uio.h> | ||
11062 | #include <unistd.h> | ||
11063 | |||
11064 | " | ||
11065 | if test "x$ac_cv_have_decl_writev" = xyes; then : | ||
11066 | ac_have_decl=1 | ||
11067 | else | ||
11068 | ac_have_decl=0 | ||
11069 | fi | ||
11070 | |||
11071 | cat >>confdefs.h <<_ACEOF | ||
11072 | #define HAVE_DECL_WRITEV $ac_have_decl | ||
11073 | _ACEOF | ||
11074 | |||
11075 | |||
11076 | ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" " | ||
11077 | #include <sys/param.h> | ||
11078 | |||
11079 | " | ||
11080 | if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then : | ||
11081 | ac_have_decl=1 | ||
11082 | else | ||
11083 | ac_have_decl=0 | ||
11084 | fi | ||
11085 | |||
11086 | cat >>confdefs.h <<_ACEOF | ||
11087 | #define HAVE_DECL_MAXSYMLINKS $ac_have_decl | ||
11088 | _ACEOF | ||
11089 | |||
11090 | |||
11091 | ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" " | ||
11092 | #include <stddef.h> | ||
11093 | |||
11094 | " | ||
11095 | if test "x$ac_cv_have_decl_offsetof" = xyes; then : | ||
11096 | ac_have_decl=1 | ||
11097 | else | ||
11098 | ac_have_decl=0 | ||
11099 | fi | ||
11100 | |||
11101 | cat >>confdefs.h <<_ACEOF | ||
11102 | #define HAVE_DECL_OFFSETOF $ac_have_decl | ||
11103 | _ACEOF | ||
11104 | |||
11105 | |||
11106 | # extra bits for select(2) | ||
11107 | ac_fn_c_check_decl "$LINENO" "howmany" "ac_cv_have_decl_howmany" " | ||
11108 | #include <sys/param.h> | ||
11109 | #include <sys/types.h> | ||
11110 | #ifdef HAVE_SYS_SYSMACROS_H | ||
11111 | #include <sys/sysmacros.h> | ||
11112 | #endif | ||
11113 | #ifdef HAVE_SYS_SELECT_H | ||
11114 | #include <sys/select.h> | ||
11115 | #endif | ||
11116 | #ifdef HAVE_SYS_TIME_H | ||
11117 | #include <sys/time.h> | ||
11118 | #endif | ||
11119 | #ifdef HAVE_UNISTD_H | ||
11120 | #include <unistd.h> | ||
11121 | #endif | ||
11122 | |||
11123 | " | ||
11124 | if test "x$ac_cv_have_decl_howmany" = xyes; then : | ||
11125 | ac_have_decl=1 | ||
11126 | else | ||
11127 | ac_have_decl=0 | ||
11128 | fi | ||
11129 | |||
11130 | cat >>confdefs.h <<_ACEOF | ||
11131 | #define HAVE_DECL_HOWMANY $ac_have_decl | ||
11132 | _ACEOF | ||
11133 | ac_fn_c_check_decl "$LINENO" "NFDBITS" "ac_cv_have_decl_NFDBITS" " | ||
11134 | #include <sys/param.h> | ||
11135 | #include <sys/types.h> | ||
11136 | #ifdef HAVE_SYS_SYSMACROS_H | ||
11137 | #include <sys/sysmacros.h> | ||
11138 | #endif | ||
11139 | #ifdef HAVE_SYS_SELECT_H | ||
11140 | #include <sys/select.h> | ||
11141 | #endif | ||
11142 | #ifdef HAVE_SYS_TIME_H | ||
11143 | #include <sys/time.h> | ||
11144 | #endif | ||
11145 | #ifdef HAVE_UNISTD_H | ||
11146 | #include <unistd.h> | ||
11147 | #endif | ||
11148 | |||
11149 | " | ||
11150 | if test "x$ac_cv_have_decl_NFDBITS" = xyes; then : | ||
11151 | ac_have_decl=1 | ||
11152 | else | ||
11153 | ac_have_decl=0 | ||
11154 | fi | ||
11155 | |||
11156 | cat >>confdefs.h <<_ACEOF | ||
11157 | #define HAVE_DECL_NFDBITS $ac_have_decl | ||
11158 | _ACEOF | ||
11159 | |||
11160 | ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" " | ||
11161 | #include <sys/param.h> | ||
11162 | #include <sys/types.h> | ||
11163 | #ifdef HAVE_SYS_SELECT_H | ||
11164 | #include <sys/select.h> | ||
11165 | #endif | ||
11166 | #ifdef HAVE_SYS_TIME_H | ||
11167 | #include <sys/time.h> | ||
11168 | #endif | ||
11169 | #ifdef HAVE_UNISTD_H | ||
11170 | #include <unistd.h> | ||
11171 | #endif | ||
11172 | |||
11173 | " | ||
11174 | if test "x$ac_cv_type_fd_mask" = xyes; then : | ||
11175 | |||
11176 | cat >>confdefs.h <<_ACEOF | ||
11177 | #define HAVE_FD_MASK 1 | ||
11178 | _ACEOF | ||
11179 | |||
11180 | |||
11181 | fi | ||
11182 | |||
11183 | |||
11184 | for ac_func in setresuid | ||
11185 | do : | ||
11186 | ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" | ||
11187 | if test "x$ac_cv_func_setresuid" = xyes; then : | ||
11188 | cat >>confdefs.h <<_ACEOF | ||
11189 | #define HAVE_SETRESUID 1 | ||
11190 | _ACEOF | ||
11191 | |||
11192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5 | ||
11193 | $as_echo_n "checking if setresuid seems to work... " >&6; } | ||
11194 | if test "$cross_compiling" = yes; then : | ||
11195 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5 | ||
11196 | $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
11197 | |||
11198 | else | ||
11199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11200 | /* end confdefs.h. */ | ||
11201 | |||
11202 | #include <stdlib.h> | ||
11203 | #include <errno.h> | ||
11204 | |||
11205 | int | ||
11206 | main () | ||
11207 | { | ||
11208 | |||
11209 | errno=0; | ||
11210 | setresuid(0,0,0); | ||
11211 | if (errno==ENOSYS) | ||
11212 | exit(1); | ||
11213 | else | ||
11214 | exit(0); | ||
11215 | |||
11216 | ; | ||
11217 | return 0; | ||
11218 | } | ||
11219 | _ACEOF | ||
11220 | if ac_fn_c_try_run "$LINENO"; then : | ||
11221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11222 | $as_echo "yes" >&6; } | ||
11223 | else | ||
11224 | |||
11225 | $as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h | ||
11226 | |||
11227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5 | ||
11228 | $as_echo "not implemented" >&6; } | ||
11229 | fi | ||
11230 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11231 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11232 | fi | ||
11233 | |||
11234 | |||
11235 | fi | ||
11236 | done | ||
11237 | |||
11238 | |||
11239 | for ac_func in setresgid | ||
11240 | do : | ||
11241 | ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" | ||
11242 | if test "x$ac_cv_func_setresgid" = xyes; then : | ||
11243 | cat >>confdefs.h <<_ACEOF | ||
11244 | #define HAVE_SETRESGID 1 | ||
11245 | _ACEOF | ||
11246 | |||
11247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5 | ||
11248 | $as_echo_n "checking if setresgid seems to work... " >&6; } | ||
11249 | if test "$cross_compiling" = yes; then : | ||
11250 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5 | ||
11251 | $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
11252 | |||
11253 | else | ||
11254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11255 | /* end confdefs.h. */ | ||
11256 | |||
11257 | #include <stdlib.h> | ||
11258 | #include <errno.h> | ||
11259 | |||
11260 | int | ||
11261 | main () | ||
11262 | { | ||
11263 | |||
11264 | errno=0; | ||
11265 | setresgid(0,0,0); | ||
11266 | if (errno==ENOSYS) | ||
11267 | exit(1); | ||
11268 | else | ||
11269 | exit(0); | ||
11270 | |||
11271 | ; | ||
11272 | return 0; | ||
11273 | } | ||
11274 | _ACEOF | ||
11275 | if ac_fn_c_try_run "$LINENO"; then : | ||
11276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11277 | $as_echo "yes" >&6; } | ||
11278 | else | ||
11279 | |||
11280 | $as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h | ||
11281 | |||
11282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5 | ||
11283 | $as_echo "not implemented" >&6; } | ||
11284 | fi | ||
11285 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11286 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11287 | fi | ||
11288 | |||
11289 | |||
11290 | fi | ||
11291 | done | ||
11292 | |||
11293 | |||
11294 | for ac_func in realpath | ||
11295 | do : | ||
11296 | ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath" | ||
11297 | if test "x$ac_cv_func_realpath" = xyes; then : | ||
11298 | cat >>confdefs.h <<_ACEOF | ||
11299 | #define HAVE_REALPATH 1 | ||
11300 | _ACEOF | ||
11301 | |||
11302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if realpath works with non-existent files" >&5 | ||
11303 | $as_echo_n "checking if realpath works with non-existent files... " >&6; } | ||
11304 | if test "$cross_compiling" = yes; then : | ||
11305 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming working" >&5 | ||
11306 | $as_echo "$as_me: WARNING: cross compiling: assuming working" >&2;} | ||
11307 | |||
11308 | else | ||
11309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11310 | /* end confdefs.h. */ | ||
11311 | |||
11312 | #include <limits.h> | ||
11313 | #include <stdlib.h> | ||
11314 | #include <errno.h> | ||
11315 | |||
11316 | int | ||
11317 | main () | ||
11318 | { | ||
11319 | |||
11320 | char buf[PATH_MAX]; | ||
11321 | if (realpath("/opensshnonexistentfilename1234", buf) == NULL) | ||
11322 | if (errno == ENOENT) | ||
11323 | exit(1); | ||
11324 | exit(0); | ||
11325 | |||
11326 | ; | ||
11327 | return 0; | ||
11328 | } | ||
11329 | _ACEOF | ||
11330 | if ac_fn_c_try_run "$LINENO"; then : | ||
11331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11332 | $as_echo "yes" >&6; } | ||
11333 | else | ||
11334 | |||
11335 | $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h | ||
11336 | |||
11337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11338 | $as_echo "no" >&6; } | ||
11339 | fi | ||
11340 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11341 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11342 | fi | ||
11343 | |||
11344 | |||
11345 | fi | ||
11346 | done | ||
11347 | |||
11348 | |||
11349 | for ac_func in gettimeofday time | ||
11350 | do : | ||
11351 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11352 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
11353 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
11354 | cat >>confdefs.h <<_ACEOF | ||
11355 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11356 | _ACEOF | ||
11357 | |||
11358 | fi | ||
11359 | done | ||
11360 | |||
11361 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
11362 | do : | ||
11363 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11364 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
11365 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
11366 | cat >>confdefs.h <<_ACEOF | ||
11367 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11368 | _ACEOF | ||
11369 | |||
11370 | fi | ||
11371 | done | ||
11372 | |||
11373 | for ac_func in utmpname | ||
11374 | do : | ||
11375 | ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname" | ||
11376 | if test "x$ac_cv_func_utmpname" = xyes; then : | ||
11377 | cat >>confdefs.h <<_ACEOF | ||
11378 | #define HAVE_UTMPNAME 1 | ||
11379 | _ACEOF | ||
11380 | |||
11381 | fi | ||
11382 | done | ||
11383 | |||
11384 | for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline | ||
11385 | do : | ||
11386 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11387 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
11388 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
11389 | cat >>confdefs.h <<_ACEOF | ||
11390 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11391 | _ACEOF | ||
11392 | |||
11393 | fi | ||
11394 | done | ||
11395 | |||
11396 | for ac_func in setutxdb setutxent utmpxname | ||
11397 | do : | ||
11398 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11399 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
11400 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
11401 | cat >>confdefs.h <<_ACEOF | ||
11402 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11403 | _ACEOF | ||
11404 | |||
11405 | fi | ||
11406 | done | ||
11407 | |||
11408 | for ac_func in getlastlogxbyname | ||
11409 | do : | ||
11410 | ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname" | ||
11411 | if test "x$ac_cv_func_getlastlogxbyname" = xyes; then : | ||
11412 | cat >>confdefs.h <<_ACEOF | ||
11413 | #define HAVE_GETLASTLOGXBYNAME 1 | ||
11414 | _ACEOF | ||
11415 | |||
11416 | fi | ||
11417 | done | ||
11418 | |||
11419 | |||
11420 | ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" | ||
11421 | if test "x$ac_cv_func_daemon" = xyes; then : | ||
11422 | |||
11423 | $as_echo "#define HAVE_DAEMON 1" >>confdefs.h | ||
11424 | |||
11425 | else | ||
11426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5 | ||
11427 | $as_echo_n "checking for daemon in -lbsd... " >&6; } | ||
11428 | if ${ac_cv_lib_bsd_daemon+:} false; then : | ||
11429 | $as_echo_n "(cached) " >&6 | ||
11430 | else | ||
11431 | ac_check_lib_save_LIBS=$LIBS | ||
11432 | LIBS="-lbsd $LIBS" | ||
11433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11434 | /* end confdefs.h. */ | ||
11435 | |||
11436 | /* Override any GCC internal prototype to avoid an error. | ||
11437 | Use char because int might match the return type of a GCC | ||
11438 | builtin and then its argument prototype would still apply. */ | ||
11439 | #ifdef __cplusplus | ||
11440 | extern "C" | ||
11441 | #endif | ||
11442 | char daemon (); | ||
11443 | int | ||
11444 | main () | ||
11445 | { | ||
11446 | return daemon (); | ||
11447 | ; | ||
11448 | return 0; | ||
11449 | } | ||
11450 | _ACEOF | ||
11451 | if ac_fn_c_try_link "$LINENO"; then : | ||
11452 | ac_cv_lib_bsd_daemon=yes | ||
11453 | else | ||
11454 | ac_cv_lib_bsd_daemon=no | ||
11455 | fi | ||
11456 | rm -f core conftest.err conftest.$ac_objext \ | ||
11457 | conftest$ac_exeext conftest.$ac_ext | ||
11458 | LIBS=$ac_check_lib_save_LIBS | ||
11459 | fi | ||
11460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5 | ||
11461 | $as_echo "$ac_cv_lib_bsd_daemon" >&6; } | ||
11462 | if test "x$ac_cv_lib_bsd_daemon" = xyes; then : | ||
11463 | LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h | ||
11464 | |||
11465 | fi | ||
11466 | |||
11467 | |||
11468 | fi | ||
11469 | |||
11470 | |||
11471 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | ||
11472 | if test "x$ac_cv_func_getpagesize" = xyes; then : | ||
11473 | |||
11474 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | ||
11475 | |||
11476 | else | ||
11477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5 | ||
11478 | $as_echo_n "checking for getpagesize in -lucb... " >&6; } | ||
11479 | if ${ac_cv_lib_ucb_getpagesize+:} false; then : | ||
11480 | $as_echo_n "(cached) " >&6 | ||
11481 | else | ||
11482 | ac_check_lib_save_LIBS=$LIBS | ||
11483 | LIBS="-lucb $LIBS" | ||
11484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11485 | /* end confdefs.h. */ | ||
11486 | |||
11487 | /* Override any GCC internal prototype to avoid an error. | ||
11488 | Use char because int might match the return type of a GCC | ||
11489 | builtin and then its argument prototype would still apply. */ | ||
11490 | #ifdef __cplusplus | ||
11491 | extern "C" | ||
11492 | #endif | ||
11493 | char getpagesize (); | ||
11494 | int | ||
11495 | main () | ||
11496 | { | ||
11497 | return getpagesize (); | ||
11498 | ; | ||
11499 | return 0; | ||
11500 | } | ||
11501 | _ACEOF | ||
11502 | if ac_fn_c_try_link "$LINENO"; then : | ||
11503 | ac_cv_lib_ucb_getpagesize=yes | ||
11504 | else | ||
11505 | ac_cv_lib_ucb_getpagesize=no | ||
11506 | fi | ||
11507 | rm -f core conftest.err conftest.$ac_objext \ | ||
11508 | conftest$ac_exeext conftest.$ac_ext | ||
11509 | LIBS=$ac_check_lib_save_LIBS | ||
11510 | fi | ||
11511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
11512 | $as_echo "$ac_cv_lib_ucb_getpagesize" >&6; } | ||
11513 | if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then : | ||
11514 | LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | ||
11515 | |||
11516 | fi | ||
11517 | |||
11518 | |||
11519 | fi | ||
11520 | |||
11521 | |||
11522 | # Check for broken snprintf | ||
11523 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
11524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5 | ||
11525 | $as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; } | ||
11526 | if test "$cross_compiling" = yes; then : | ||
11527 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
11528 | $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
11529 | |||
11530 | else | ||
11531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11532 | /* end confdefs.h. */ | ||
11533 | #include <stdio.h> | ||
11534 | int | ||
11535 | main () | ||
11536 | { | ||
11537 | |||
11538 | char b[5]; | ||
11539 | snprintf(b,5,"123456789"); | ||
11540 | exit(b[4]!='\0'); | ||
11541 | |||
11542 | ; | ||
11543 | return 0; | ||
11544 | } | ||
11545 | _ACEOF | ||
11546 | if ac_fn_c_try_run "$LINENO"; then : | ||
11547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11548 | $as_echo "yes" >&6; } | ||
11549 | else | ||
11550 | |||
11551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11552 | $as_echo "no" >&6; } | ||
11553 | |||
11554 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h | ||
11555 | |||
11556 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
11557 | $as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
11558 | |||
11559 | fi | ||
11560 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11561 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11562 | fi | ||
11563 | |||
11564 | fi | ||
11565 | |||
11566 | # We depend on vsnprintf returning the right thing on overflow: the | ||
11567 | # number of characters it tried to create (as per SUSv3) | ||
11568 | if test "x$ac_cv_func_vsnprintf" = "xyes" ; then | ||
11569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5 | ||
11570 | $as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; } | ||
11571 | if test "$cross_compiling" = yes; then : | ||
11572 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5 | ||
11573 | $as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;} | ||
11574 | |||
11575 | else | ||
11576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11577 | /* end confdefs.h. */ | ||
11578 | |||
11579 | #include <sys/types.h> | ||
11580 | #include <stdio.h> | ||
11581 | #include <stdarg.h> | ||
11582 | |||
11583 | int x_snprintf(char *str, size_t count, const char *fmt, ...) | ||
11584 | { | ||
11585 | size_t ret; | ||
11586 | va_list ap; | ||
11587 | |||
11588 | va_start(ap, fmt); | ||
11589 | ret = vsnprintf(str, count, fmt, ap); | ||
11590 | va_end(ap); | ||
11591 | return ret; | ||
11592 | } | ||
11593 | |||
11594 | int | ||
11595 | main () | ||
11596 | { | ||
11597 | |||
11598 | char x[1]; | ||
11599 | if (x_snprintf(x, 1, "%s %d", "hello", 12345) != 11) | ||
11600 | return 1; | ||
11601 | if (x_snprintf(NULL, 0, "%s %d", "hello", 12345) != 11) | ||
11602 | return 1; | ||
11603 | return 0; | ||
11604 | |||
11605 | ; | ||
11606 | return 0; | ||
11607 | } | ||
11608 | _ACEOF | ||
11609 | if ac_fn_c_try_run "$LINENO"; then : | ||
11610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11611 | $as_echo "yes" >&6; } | ||
11612 | else | ||
11613 | |||
11614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11615 | $as_echo "no" >&6; } | ||
11616 | |||
11617 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h | ||
11618 | |||
11619 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5 | ||
11620 | $as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;} | ||
11621 | |||
11622 | fi | ||
11623 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11624 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11625 | fi | ||
11626 | |||
11627 | fi | ||
11628 | |||
11629 | # On systems where [v]snprintf is broken, but is declared in stdio, | ||
11630 | # check that the fmt argument is const char * or just char *. | ||
11631 | # This is only useful for when BROKEN_SNPRINTF | ||
11632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5 | ||
11633 | $as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; } | ||
11634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11635 | /* end confdefs.h. */ | ||
11636 | |||
11637 | #include <stdio.h> | ||
11638 | int snprintf(char *a, size_t b, const char *c, ...) { return 0; } | ||
11639 | |||
11640 | int | ||
11641 | main () | ||
11642 | { | ||
11643 | |||
11644 | snprintf(0, 0, 0); | ||
11645 | |||
11646 | ; | ||
11647 | return 0; | ||
11648 | } | ||
11649 | _ACEOF | ||
11650 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11652 | $as_echo "yes" >&6; } | ||
11653 | |||
11654 | $as_echo "#define SNPRINTF_CONST const" >>confdefs.h | ||
11655 | |||
11656 | else | ||
11657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11658 | $as_echo "no" >&6; } | ||
11659 | $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h | ||
11660 | |||
11661 | fi | ||
11662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11663 | |||
11664 | # Check for missing getpeereid (or equiv) support | ||
11665 | NO_PEERCHECK="" | ||
11666 | if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then | ||
11667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5 | ||
11668 | $as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; } | ||
11669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11670 | /* end confdefs.h. */ | ||
11671 | |||
11672 | #include <sys/types.h> | ||
11673 | #include <sys/socket.h> | ||
11674 | int | ||
11675 | main () | ||
11676 | { | ||
11677 | int i = SO_PEERCRED; | ||
11678 | ; | ||
11679 | return 0; | ||
11680 | } | ||
11681 | _ACEOF | ||
11682 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11684 | $as_echo "yes" >&6; } | ||
11685 | |||
11686 | $as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h | ||
11687 | |||
11688 | |||
11689 | else | ||
11690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11691 | $as_echo "no" >&6; } | ||
11692 | NO_PEERCHECK=1 | ||
11693 | |||
11694 | fi | ||
11695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11696 | fi | ||
11697 | |||
11698 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
11699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5 | ||
11700 | $as_echo_n "checking for (overly) strict mkstemp... " >&6; } | ||
11701 | if test "$cross_compiling" = yes; then : | ||
11702 | |||
11703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11704 | $as_echo "yes" >&6; } | ||
11705 | $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h | ||
11706 | |||
11707 | |||
11708 | |||
11709 | else | ||
11710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11711 | /* end confdefs.h. */ | ||
11712 | |||
11713 | #include <stdlib.h> | ||
11714 | |||
11715 | int | ||
11716 | main () | ||
11717 | { | ||
11718 | |||
11719 | char template[]="conftest.mkstemp-test"; | ||
11720 | if (mkstemp(template) == -1) | ||
11721 | exit(1); | ||
11722 | unlink(template); | ||
11723 | exit(0); | ||
11724 | |||
11725 | ; | ||
11726 | return 0; | ||
11727 | } | ||
11728 | _ACEOF | ||
11729 | if ac_fn_c_try_run "$LINENO"; then : | ||
11730 | |||
11731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11732 | $as_echo "no" >&6; } | ||
11733 | |||
11734 | else | ||
11735 | |||
11736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11737 | $as_echo "yes" >&6; } | ||
11738 | |||
11739 | $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h | ||
11740 | |||
11741 | |||
11742 | fi | ||
11743 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11744 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11745 | fi | ||
11746 | |||
11747 | fi | ||
11748 | |||
11749 | if test ! -z "$check_for_openpty_ctty_bug"; then | ||
11750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5 | ||
11751 | $as_echo_n "checking if openpty correctly handles controlling tty... " >&6; } | ||
11752 | if test "$cross_compiling" = yes; then : | ||
11753 | |||
11754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 | ||
11755 | $as_echo "cross-compiling, assuming yes" >&6; } | ||
11756 | |||
11757 | |||
11758 | else | ||
11759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11760 | /* end confdefs.h. */ | ||
11761 | |||
11762 | #include <stdio.h> | ||
11763 | #include <sys/fcntl.h> | ||
11764 | #include <sys/types.h> | ||
11765 | #include <sys/wait.h> | ||
11766 | |||
11767 | int | ||
11768 | main () | ||
11769 | { | ||
11770 | |||
11771 | pid_t pid; | ||
11772 | int fd, ptyfd, ttyfd, status; | ||
11773 | |||
11774 | pid = fork(); | ||
11775 | if (pid < 0) { /* failed */ | ||
11776 | exit(1); | ||
11777 | } else if (pid > 0) { /* parent */ | ||
11778 | waitpid(pid, &status, 0); | ||
11779 | if (WIFEXITED(status)) | ||
11780 | exit(WEXITSTATUS(status)); | ||
11781 | else | ||
11782 | exit(2); | ||
11783 | } else { /* child */ | ||
11784 | close(0); close(1); close(2); | ||
11785 | setsid(); | ||
11786 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); | ||
11787 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); | ||
11788 | if (fd >= 0) | ||
11789 | exit(3); /* Acquired ctty: broken */ | ||
11790 | else | ||
11791 | exit(0); /* Did not acquire ctty: OK */ | ||
11792 | } | ||
11793 | |||
11794 | ; | ||
11795 | return 0; | ||
11796 | } | ||
11797 | _ACEOF | ||
11798 | if ac_fn_c_try_run "$LINENO"; then : | ||
11799 | |||
11800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11801 | $as_echo "yes" >&6; } | ||
11802 | |||
11803 | else | ||
11804 | |||
11805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11806 | $as_echo "no" >&6; } | ||
11807 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
11808 | |||
11809 | |||
11810 | fi | ||
11811 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11812 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11813 | fi | ||
11814 | |||
11815 | fi | ||
11816 | |||
11817 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
11818 | test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then | ||
11819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 | ||
11820 | $as_echo_n "checking if getaddrinfo seems to work... " >&6; } | ||
11821 | if test "$cross_compiling" = yes; then : | ||
11822 | |||
11823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 | ||
11824 | $as_echo "cross-compiling, assuming yes" >&6; } | ||
11825 | |||
11826 | |||
11827 | else | ||
11828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11829 | /* end confdefs.h. */ | ||
11830 | |||
11831 | #include <stdio.h> | ||
11832 | #include <sys/socket.h> | ||
11833 | #include <netdb.h> | ||
11834 | #include <errno.h> | ||
11835 | #include <netinet/in.h> | ||
11836 | |||
11837 | #define TEST_PORT "2222" | ||
11838 | |||
11839 | int | ||
11840 | main () | ||
11841 | { | ||
11842 | |||
11843 | int err, sock; | ||
11844 | struct addrinfo *gai_ai, *ai, hints; | ||
11845 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
11846 | |||
11847 | memset(&hints, 0, sizeof(hints)); | ||
11848 | hints.ai_family = PF_UNSPEC; | ||
11849 | hints.ai_socktype = SOCK_STREAM; | ||
11850 | hints.ai_flags = AI_PASSIVE; | ||
11851 | |||
11852 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
11853 | if (err != 0) { | ||
11854 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
11855 | exit(1); | ||
11856 | } | ||
11857 | |||
11858 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
11859 | if (ai->ai_family != AF_INET6) | ||
11860 | continue; | ||
11861 | |||
11862 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
11863 | sizeof(ntop), strport, sizeof(strport), | ||
11864 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
11865 | |||
11866 | if (err != 0) { | ||
11867 | if (err == EAI_SYSTEM) | ||
11868 | perror("getnameinfo EAI_SYSTEM"); | ||
11869 | else | ||
11870 | fprintf(stderr, "getnameinfo failed: %s\n", | ||
11871 | gai_strerror(err)); | ||
11872 | exit(2); | ||
11873 | } | ||
11874 | |||
11875 | sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); | ||
11876 | if (sock < 0) | ||
11877 | perror("socket"); | ||
11878 | if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { | ||
11879 | if (errno == EBADF) | ||
11880 | exit(3); | ||
11881 | } | ||
11882 | } | ||
11883 | exit(0); | ||
11884 | |||
11885 | ; | ||
11886 | return 0; | ||
11887 | } | ||
11888 | _ACEOF | ||
11889 | if ac_fn_c_try_run "$LINENO"; then : | ||
11890 | |||
11891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11892 | $as_echo "yes" >&6; } | ||
11893 | |||
11894 | else | ||
11895 | |||
11896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11897 | $as_echo "no" >&6; } | ||
11898 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
11899 | |||
11900 | |||
11901 | fi | ||
11902 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11903 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11904 | fi | ||
11905 | |||
11906 | fi | ||
11907 | |||
11908 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
11909 | test "x$check_for_aix_broken_getaddrinfo" = "x1"; then | ||
11910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 | ||
11911 | $as_echo_n "checking if getaddrinfo seems to work... " >&6; } | ||
11912 | if test "$cross_compiling" = yes; then : | ||
11913 | |||
11914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5 | ||
11915 | $as_echo "cross-compiling, assuming no" >&6; } | ||
11916 | |||
11917 | |||
11918 | else | ||
11919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11920 | /* end confdefs.h. */ | ||
11921 | |||
11922 | #include <stdio.h> | ||
11923 | #include <sys/socket.h> | ||
11924 | #include <netdb.h> | ||
11925 | #include <errno.h> | ||
11926 | #include <netinet/in.h> | ||
11927 | |||
11928 | #define TEST_PORT "2222" | ||
11929 | |||
11930 | int | ||
11931 | main () | ||
11932 | { | ||
11933 | |||
11934 | int err, sock; | ||
11935 | struct addrinfo *gai_ai, *ai, hints; | ||
11936 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
11937 | |||
11938 | memset(&hints, 0, sizeof(hints)); | ||
11939 | hints.ai_family = PF_UNSPEC; | ||
11940 | hints.ai_socktype = SOCK_STREAM; | ||
11941 | hints.ai_flags = AI_PASSIVE; | ||
11942 | |||
11943 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
11944 | if (err != 0) { | ||
11945 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
11946 | exit(1); | ||
11947 | } | ||
11948 | |||
11949 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
11950 | if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) | ||
11951 | continue; | ||
11952 | |||
11953 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
11954 | sizeof(ntop), strport, sizeof(strport), | ||
11955 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
11956 | |||
11957 | if (ai->ai_family == AF_INET && err != 0) { | ||
11958 | perror("getnameinfo"); | ||
11959 | exit(2); | ||
11960 | } | ||
11961 | } | ||
11962 | exit(0); | ||
11963 | |||
11964 | ; | ||
11965 | return 0; | ||
11966 | } | ||
11967 | _ACEOF | ||
11968 | if ac_fn_c_try_run "$LINENO"; then : | ||
11969 | |||
11970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11971 | $as_echo "yes" >&6; } | ||
11972 | |||
11973 | $as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h | ||
11974 | |||
11975 | |||
11976 | else | ||
11977 | |||
11978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11979 | $as_echo "no" >&6; } | ||
11980 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
11981 | |||
11982 | |||
11983 | fi | ||
11984 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11985 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11986 | fi | ||
11987 | |||
11988 | fi | ||
11989 | |||
11990 | if test "x$ac_cv_func_getaddrinfo" = "xyes"; then | ||
11991 | ac_fn_c_check_decl "$LINENO" "AI_NUMERICSERV" "ac_cv_have_decl_AI_NUMERICSERV" "#include <sys/types.h> | ||
11992 | #include <sys/socket.h> | ||
11993 | #include <netdb.h> | ||
11994 | " | ||
11995 | if test "x$ac_cv_have_decl_AI_NUMERICSERV" = xyes; then : | ||
11996 | ac_have_decl=1 | ||
11997 | else | ||
11998 | ac_have_decl=0 | ||
11999 | fi | ||
12000 | |||
12001 | cat >>confdefs.h <<_ACEOF | ||
12002 | #define HAVE_DECL_AI_NUMERICSERV $ac_have_decl | ||
12003 | _ACEOF | ||
12004 | |||
12005 | fi | ||
12006 | |||
12007 | if test "x$check_for_conflicting_getspnam" = "x1"; then | ||
12008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5 | ||
12009 | $as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; } | ||
12010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12011 | /* end confdefs.h. */ | ||
12012 | #include <shadow.h> | ||
12013 | int | ||
12014 | main () | ||
12015 | { | ||
12016 | exit(0); | ||
12017 | ; | ||
12018 | return 0; | ||
12019 | } | ||
12020 | _ACEOF | ||
12021 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12022 | |||
12023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12024 | $as_echo "no" >&6; } | ||
12025 | |||
12026 | else | ||
12027 | |||
12028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12029 | $as_echo "yes" >&6; } | ||
12030 | |||
12031 | $as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h | ||
12032 | |||
12033 | |||
12034 | |||
12035 | fi | ||
12036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12037 | fi | ||
12038 | |||
12039 | if test "x$ac_cv_func_strnvis" = "xyes"; then | ||
12040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnvis" >&5 | ||
12041 | $as_echo_n "checking for working strnvis... " >&6; } | ||
12042 | if test "$cross_compiling" = yes; then : | ||
12043 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming broken" >&5 | ||
12044 | $as_echo "$as_me: WARNING: cross compiling: assuming broken" >&2;} | ||
12045 | |||
12046 | $as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h | ||
12047 | |||
12048 | |||
12049 | else | ||
12050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12051 | /* end confdefs.h. */ | ||
12052 | |||
12053 | #include <signal.h> | ||
12054 | #include <stdlib.h> | ||
12055 | #include <string.h> | ||
12056 | #include <vis.h> | ||
12057 | static void sighandler(int sig) { _exit(1); } | ||
12058 | |||
12059 | int | ||
12060 | main () | ||
12061 | { | ||
12062 | |||
12063 | char dst[16]; | ||
12064 | |||
12065 | signal(SIGSEGV, sighandler); | ||
12066 | if (strnvis(dst, "src", 4, 0) && strcmp(dst, "src") == 0) | ||
12067 | exit(0); | ||
12068 | exit(1) | ||
12069 | |||
12070 | ; | ||
12071 | return 0; | ||
12072 | } | ||
12073 | _ACEOF | ||
12074 | if ac_fn_c_try_run "$LINENO"; then : | ||
12075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12076 | $as_echo "yes" >&6; } | ||
12077 | else | ||
12078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12079 | $as_echo "no" >&6; } | ||
12080 | |||
12081 | $as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h | ||
12082 | |||
12083 | fi | ||
12084 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12085 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12086 | fi | ||
12087 | |||
12088 | fi | ||
12089 | |||
12090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 | ||
12091 | $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } | ||
12092 | if ${ac_cv_func_getpgrp_void+:} false; then : | ||
12093 | $as_echo_n "(cached) " >&6 | ||
12094 | else | ||
12095 | # Use it with a single arg. | ||
12096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12097 | /* end confdefs.h. */ | ||
12098 | $ac_includes_default | ||
12099 | int | ||
12100 | main () | ||
12101 | { | ||
12102 | getpgrp (0); | ||
12103 | ; | ||
12104 | return 0; | ||
12105 | } | ||
12106 | _ACEOF | ||
12107 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12108 | ac_cv_func_getpgrp_void=no | ||
12109 | else | ||
12110 | ac_cv_func_getpgrp_void=yes | ||
12111 | fi | ||
12112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12113 | |||
12114 | fi | ||
12115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 | ||
12116 | $as_echo "$ac_cv_func_getpgrp_void" >&6; } | ||
12117 | if test $ac_cv_func_getpgrp_void = yes; then | ||
12118 | |||
12119 | $as_echo "#define GETPGRP_VOID 1" >>confdefs.h | ||
12120 | |||
12121 | fi | ||
12122 | |||
12123 | |||
12124 | # Search for OpenSSL | ||
12125 | saved_CPPFLAGS="$CPPFLAGS" | ||
12126 | saved_LDFLAGS="$LDFLAGS" | ||
12127 | |||
12128 | # Check whether --with-ssl-dir was given. | ||
12129 | if test "${with_ssl_dir+set}" = set; then : | ||
12130 | withval=$with_ssl_dir; | ||
12131 | if test "x$openssl" = "xno" ; then | ||
12132 | as_fn_error $? "cannot use --with-ssl-dir when OpenSSL disabled" "$LINENO" 5 | ||
12133 | fi | ||
12134 | if test "x$withval" != "xno" ; then | ||
12135 | case "$withval" in | ||
12136 | # Relative paths | ||
12137 | ./*|../*) withval="`pwd`/$withval" | ||
12138 | esac | ||
12139 | if test -d "$withval/lib"; then | ||
12140 | if test -n "${need_dash_r}"; then | ||
12141 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
12142 | else | ||
12143 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
12144 | fi | ||
12145 | elif test -d "$withval/lib64"; then | ||
12146 | if test -n "${need_dash_r}"; then | ||
12147 | LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}" | ||
12148 | else | ||
12149 | LDFLAGS="-L${withval}/lib64 ${LDFLAGS}" | ||
12150 | fi | ||
12151 | else | ||
12152 | if test -n "${need_dash_r}"; then | ||
12153 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
12154 | else | ||
12155 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
12156 | fi | ||
12157 | fi | ||
12158 | if test -d "$withval/include"; then | ||
12159 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
12160 | else | ||
12161 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
12162 | fi | ||
12163 | fi | ||
12164 | |||
12165 | |||
12166 | fi | ||
12167 | |||
12168 | |||
12169 | |||
12170 | # Check whether --with-openssl-header-check was given. | ||
12171 | if test "${with_openssl_header_check+set}" = set; then : | ||
12172 | withval=$with_openssl_header_check; | ||
12173 | if test "x$withval" = "xno" ; then | ||
12174 | openssl_check_nonfatal=1 | ||
12175 | fi | ||
12176 | |||
12177 | |||
12178 | fi | ||
12179 | |||
12180 | |||
12181 | openssl_engine=no | ||
12182 | |||
12183 | # Check whether --with-ssl-engine was given. | ||
12184 | if test "${with_ssl_engine+set}" = set; then : | ||
12185 | withval=$with_ssl_engine; | ||
12186 | if test "x$withval" != "xno" ; then | ||
12187 | if test "x$openssl" = "xno" ; then | ||
12188 | as_fn_error $? "cannot use --with-ssl-engine when OpenSSL disabled" "$LINENO" 5 | ||
12189 | fi | ||
12190 | openssl_engine=yes | ||
12191 | fi | ||
12192 | |||
12193 | |||
12194 | fi | ||
12195 | |||
12196 | |||
12197 | if test "x$openssl" = "xyes" ; then | ||
12198 | LIBS="-lcrypto $LIBS" | ||
12199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12200 | /* end confdefs.h. */ | ||
12201 | |||
12202 | /* Override any GCC internal prototype to avoid an error. | ||
12203 | Use char because int might match the return type of a GCC | ||
12204 | builtin and then its argument prototype would still apply. */ | ||
12205 | #ifdef __cplusplus | ||
12206 | extern "C" | ||
12207 | #endif | ||
12208 | char RAND_add (); | ||
12209 | int | ||
12210 | main () | ||
12211 | { | ||
12212 | return RAND_add (); | ||
12213 | ; | ||
12214 | return 0; | ||
12215 | } | ||
12216 | _ACEOF | ||
12217 | if ac_fn_c_try_link "$LINENO"; then : | ||
12218 | |||
12219 | $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h | ||
12220 | |||
12221 | else | ||
12222 | |||
12223 | if test -n "${need_dash_r}"; then | ||
12224 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
12225 | else | ||
12226 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
12227 | fi | ||
12228 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
12229 | ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default" | ||
12230 | if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then : | ||
12231 | |||
12232 | else | ||
12233 | as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5 | ||
12234 | fi | ||
12235 | |||
12236 | |||
12237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12238 | /* end confdefs.h. */ | ||
12239 | |||
12240 | /* Override any GCC internal prototype to avoid an error. | ||
12241 | Use char because int might match the return type of a GCC | ||
12242 | builtin and then its argument prototype would still apply. */ | ||
12243 | #ifdef __cplusplus | ||
12244 | extern "C" | ||
12245 | #endif | ||
12246 | char RAND_add (); | ||
12247 | int | ||
12248 | main () | ||
12249 | { | ||
12250 | return RAND_add (); | ||
12251 | ; | ||
12252 | return 0; | ||
12253 | } | ||
12254 | _ACEOF | ||
12255 | if ac_fn_c_try_link "$LINENO"; then : | ||
12256 | $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h | ||
12257 | |||
12258 | else | ||
12259 | |||
12260 | as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5 | ||
12261 | |||
12262 | |||
12263 | fi | ||
12264 | rm -f core conftest.err conftest.$ac_objext \ | ||
12265 | conftest$ac_exeext conftest.$ac_ext | ||
12266 | |||
12267 | |||
12268 | fi | ||
12269 | rm -f core conftest.err conftest.$ac_objext \ | ||
12270 | conftest$ac_exeext conftest.$ac_ext | ||
12271 | |||
12272 | # Determine OpenSSL header version | ||
12273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5 | ||
12274 | $as_echo_n "checking OpenSSL header version... " >&6; } | ||
12275 | if test "$cross_compiling" = yes; then : | ||
12276 | |||
12277 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
12278 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
12279 | |||
12280 | |||
12281 | else | ||
12282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12283 | /* end confdefs.h. */ | ||
12284 | |||
12285 | #include <stdlib.h> | ||
12286 | #include <stdio.h> | ||
12287 | #include <string.h> | ||
12288 | #include <openssl/opensslv.h> | ||
12289 | #define DATA "conftest.sslincver" | ||
12290 | |||
12291 | int | ||
12292 | main () | ||
12293 | { | ||
12294 | |||
12295 | FILE *fd; | ||
12296 | int rc; | ||
12297 | |||
12298 | fd = fopen(DATA,"w"); | ||
12299 | if(fd == NULL) | ||
12300 | exit(1); | ||
12301 | |||
12302 | if ((rc = fprintf(fd, "%08lx (%s)\n", | ||
12303 | (unsigned long)OPENSSL_VERSION_NUMBER, | ||
12304 | OPENSSL_VERSION_TEXT)) < 0) | ||
12305 | exit(1); | ||
12306 | |||
12307 | exit(0); | ||
12308 | |||
12309 | ; | ||
12310 | return 0; | ||
12311 | } | ||
12312 | _ACEOF | ||
12313 | if ac_fn_c_try_run "$LINENO"; then : | ||
12314 | |||
12315 | ssl_header_ver=`cat conftest.sslincver` | ||
12316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5 | ||
12317 | $as_echo "$ssl_header_ver" >&6; } | ||
12318 | |||
12319 | else | ||
12320 | |||
12321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
12322 | $as_echo "not found" >&6; } | ||
12323 | as_fn_error $? "OpenSSL version header not found." "$LINENO" 5 | ||
12324 | |||
12325 | fi | ||
12326 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12327 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12328 | fi | ||
12329 | |||
12330 | |||
12331 | # Determine OpenSSL library version | ||
12332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5 | ||
12333 | $as_echo_n "checking OpenSSL library version... " >&6; } | ||
12334 | if test "$cross_compiling" = yes; then : | ||
12335 | |||
12336 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
12337 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
12338 | |||
12339 | |||
12340 | else | ||
12341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12342 | /* end confdefs.h. */ | ||
12343 | |||
12344 | #include <stdio.h> | ||
12345 | #include <string.h> | ||
12346 | #include <openssl/opensslv.h> | ||
12347 | #include <openssl/crypto.h> | ||
12348 | #define DATA "conftest.ssllibver" | ||
12349 | |||
12350 | int | ||
12351 | main () | ||
12352 | { | ||
12353 | |||
12354 | FILE *fd; | ||
12355 | int rc; | ||
12356 | |||
12357 | fd = fopen(DATA,"w"); | ||
12358 | if(fd == NULL) | ||
12359 | exit(1); | ||
12360 | |||
12361 | if ((rc = fprintf(fd, "%08lx (%s)\n", (unsigned long)SSLeay(), | ||
12362 | SSLeay_version(SSLEAY_VERSION))) < 0) | ||
12363 | exit(1); | ||
12364 | |||
12365 | exit(0); | ||
12366 | |||
12367 | ; | ||
12368 | return 0; | ||
12369 | } | ||
12370 | _ACEOF | ||
12371 | if ac_fn_c_try_run "$LINENO"; then : | ||
12372 | |||
12373 | ssl_library_ver=`cat conftest.ssllibver` | ||
12374 | # Check version is supported. | ||
12375 | case "$ssl_library_ver" in | ||
12376 | 0090[0-7]*|009080[0-5]*) | ||
12377 | as_fn_error $? "OpenSSL >= 0.9.8f required (have \"$ssl_library_ver\")" "$LINENO" 5 | ||
12378 | ;; | ||
12379 | *) ;; | ||
12380 | esac | ||
12381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5 | ||
12382 | $as_echo "$ssl_library_ver" >&6; } | ||
12383 | |||
12384 | else | ||
12385 | |||
12386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
12387 | $as_echo "not found" >&6; } | ||
12388 | as_fn_error $? "OpenSSL library not found." "$LINENO" 5 | ||
12389 | |||
12390 | fi | ||
12391 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12392 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12393 | fi | ||
12394 | |||
12395 | |||
12396 | # Sanity check OpenSSL headers | ||
12397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5 | ||
12398 | $as_echo_n "checking whether OpenSSL's headers match the library... " >&6; } | ||
12399 | if test "$cross_compiling" = yes; then : | ||
12400 | |||
12401 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
12402 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
12403 | |||
12404 | |||
12405 | else | ||
12406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12407 | /* end confdefs.h. */ | ||
12408 | |||
12409 | #include <string.h> | ||
12410 | #include <openssl/opensslv.h> | ||
12411 | #include <openssl/crypto.h> | ||
12412 | |||
12413 | int | ||
12414 | main () | ||
12415 | { | ||
12416 | |||
12417 | exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); | ||
12418 | |||
12419 | ; | ||
12420 | return 0; | ||
12421 | } | ||
12422 | _ACEOF | ||
12423 | if ac_fn_c_try_run "$LINENO"; then : | ||
12424 | |||
12425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12426 | $as_echo "yes" >&6; } | ||
12427 | |||
12428 | else | ||
12429 | |||
12430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12431 | $as_echo "no" >&6; } | ||
12432 | if test "x$openssl_check_nonfatal" = "x"; then | ||
12433 | as_fn_error $? "Your OpenSSL headers do not match your | ||
12434 | library. Check config.log for details. | ||
12435 | If you are sure your installation is consistent, you can disable the check | ||
12436 | by running \"./configure --without-openssl-header-check\". | ||
12437 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
12438 | " "$LINENO" 5 | ||
12439 | else | ||
12440 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your | ||
12441 | library. Check config.log for details. | ||
12442 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 | ||
12443 | $as_echo "$as_me: WARNING: Your OpenSSL headers do not match your | ||
12444 | library. Check config.log for details. | ||
12445 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} | ||
12446 | fi | ||
12447 | |||
12448 | fi | ||
12449 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12450 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12451 | fi | ||
12452 | |||
12453 | |||
12454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5 | ||
12455 | $as_echo_n "checking if programs using OpenSSL functions will link... " >&6; } | ||
12456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12457 | /* end confdefs.h. */ | ||
12458 | #include <openssl/evp.h> | ||
12459 | int | ||
12460 | main () | ||
12461 | { | ||
12462 | SSLeay_add_all_algorithms(); | ||
12463 | ; | ||
12464 | return 0; | ||
12465 | } | ||
12466 | _ACEOF | ||
12467 | if ac_fn_c_try_link "$LINENO"; then : | ||
12468 | |||
12469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12470 | $as_echo "yes" >&6; } | ||
12471 | |||
12472 | else | ||
12473 | |||
12474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12475 | $as_echo "no" >&6; } | ||
12476 | saved_LIBS="$LIBS" | ||
12477 | LIBS="$LIBS -ldl" | ||
12478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5 | ||
12479 | $as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; } | ||
12480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12481 | /* end confdefs.h. */ | ||
12482 | #include <openssl/evp.h> | ||
12483 | int | ||
12484 | main () | ||
12485 | { | ||
12486 | SSLeay_add_all_algorithms(); | ||
12487 | ; | ||
12488 | return 0; | ||
12489 | } | ||
12490 | _ACEOF | ||
12491 | if ac_fn_c_try_link "$LINENO"; then : | ||
12492 | |||
12493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12494 | $as_echo "yes" >&6; } | ||
12495 | |||
12496 | else | ||
12497 | |||
12498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12499 | $as_echo "no" >&6; } | ||
12500 | LIBS="$saved_LIBS" | ||
12501 | |||
12502 | |||
12503 | fi | ||
12504 | rm -f core conftest.err conftest.$ac_objext \ | ||
12505 | conftest$ac_exeext conftest.$ac_ext | ||
12506 | |||
12507 | |||
12508 | fi | ||
12509 | rm -f core conftest.err conftest.$ac_objext \ | ||
12510 | conftest$ac_exeext conftest.$ac_ext | ||
12511 | |||
12512 | for ac_func in \ | ||
12513 | BN_is_prime_ex \ | ||
12514 | DSA_generate_parameters_ex \ | ||
12515 | EVP_DigestInit_ex \ | ||
12516 | EVP_DigestFinal_ex \ | ||
12517 | EVP_MD_CTX_init \ | ||
12518 | EVP_MD_CTX_cleanup \ | ||
12519 | EVP_MD_CTX_copy_ex \ | ||
12520 | HMAC_CTX_init \ | ||
12521 | RSA_generate_key_ex \ | ||
12522 | RSA_get_default_method \ | ||
12523 | |||
12524 | do : | ||
12525 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12526 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
12527 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
12528 | cat >>confdefs.h <<_ACEOF | ||
12529 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12530 | _ACEOF | ||
12531 | |||
12532 | fi | ||
12533 | done | ||
12534 | |||
12535 | |||
12536 | if test "x$openssl_engine" = "xyes" ; then | ||
12537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5 | ||
12538 | $as_echo_n "checking for OpenSSL ENGINE support... " >&6; } | ||
12539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12540 | /* end confdefs.h. */ | ||
12541 | |||
12542 | #include <openssl/engine.h> | ||
12543 | |||
12544 | int | ||
12545 | main () | ||
12546 | { | ||
12547 | |||
12548 | ENGINE_load_builtin_engines(); | ||
12549 | ENGINE_register_all_complete(); | ||
12550 | |||
12551 | ; | ||
12552 | return 0; | ||
12553 | } | ||
12554 | _ACEOF | ||
12555 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12557 | $as_echo "yes" >&6; } | ||
12558 | |||
12559 | $as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h | ||
12560 | |||
12561 | |||
12562 | else | ||
12563 | as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5 | ||
12564 | |||
12565 | fi | ||
12566 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12567 | fi | ||
12568 | |||
12569 | # Check for OpenSSL without EVP_aes_{192,256}_cbc | ||
12570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5 | ||
12571 | $as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; } | ||
12572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12573 | /* end confdefs.h. */ | ||
12574 | |||
12575 | #include <string.h> | ||
12576 | #include <openssl/evp.h> | ||
12577 | |||
12578 | int | ||
12579 | main () | ||
12580 | { | ||
12581 | |||
12582 | exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL); | ||
12583 | |||
12584 | ; | ||
12585 | return 0; | ||
12586 | } | ||
12587 | _ACEOF | ||
12588 | if ac_fn_c_try_link "$LINENO"; then : | ||
12589 | |||
12590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12591 | $as_echo "no" >&6; } | ||
12592 | |||
12593 | else | ||
12594 | |||
12595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12596 | $as_echo "yes" >&6; } | ||
12597 | |||
12598 | $as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h | ||
12599 | |||
12600 | |||
12601 | |||
12602 | fi | ||
12603 | rm -f core conftest.err conftest.$ac_objext \ | ||
12604 | conftest$ac_exeext conftest.$ac_ext | ||
12605 | |||
12606 | # Check for OpenSSL with EVP_aes_*ctr | ||
12607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES CTR via EVP" >&5 | ||
12608 | $as_echo_n "checking whether OpenSSL has AES CTR via EVP... " >&6; } | ||
12609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12610 | /* end confdefs.h. */ | ||
12611 | |||
12612 | #include <string.h> | ||
12613 | #include <openssl/evp.h> | ||
12614 | |||
12615 | int | ||
12616 | main () | ||
12617 | { | ||
12618 | |||
12619 | exit(EVP_aes_128_ctr() == NULL || | ||
12620 | EVP_aes_192_cbc() == NULL || | ||
12621 | EVP_aes_256_cbc() == NULL); | ||
12622 | |||
12623 | ; | ||
12624 | return 0; | ||
12625 | } | ||
12626 | _ACEOF | ||
12627 | if ac_fn_c_try_link "$LINENO"; then : | ||
12628 | |||
12629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12630 | $as_echo "yes" >&6; } | ||
12631 | |||
12632 | $as_echo "#define OPENSSL_HAVE_EVPCTR 1" >>confdefs.h | ||
12633 | |||
12634 | |||
12635 | else | ||
12636 | |||
12637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12638 | $as_echo "no" >&6; } | ||
12639 | |||
12640 | |||
12641 | fi | ||
12642 | rm -f core conftest.err conftest.$ac_objext \ | ||
12643 | conftest$ac_exeext conftest.$ac_ext | ||
12644 | |||
12645 | # Check for OpenSSL with EVP_aes_*gcm | ||
12646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES GCM via EVP" >&5 | ||
12647 | $as_echo_n "checking whether OpenSSL has AES GCM via EVP... " >&6; } | ||
12648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12649 | /* end confdefs.h. */ | ||
12650 | |||
12651 | #include <string.h> | ||
12652 | #include <openssl/evp.h> | ||
12653 | |||
12654 | int | ||
12655 | main () | ||
12656 | { | ||
12657 | |||
12658 | exit(EVP_aes_128_gcm() == NULL || | ||
12659 | EVP_aes_256_gcm() == NULL || | ||
12660 | EVP_CTRL_GCM_SET_IV_FIXED == 0 || | ||
12661 | EVP_CTRL_GCM_IV_GEN == 0 || | ||
12662 | EVP_CTRL_GCM_SET_TAG == 0 || | ||
12663 | EVP_CTRL_GCM_GET_TAG == 0 || | ||
12664 | EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0); | ||
12665 | |||
12666 | ; | ||
12667 | return 0; | ||
12668 | } | ||
12669 | _ACEOF | ||
12670 | if ac_fn_c_try_link "$LINENO"; then : | ||
12671 | |||
12672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12673 | $as_echo "yes" >&6; } | ||
12674 | |||
12675 | $as_echo "#define OPENSSL_HAVE_EVPGCM 1" >>confdefs.h | ||
12676 | |||
12677 | |||
12678 | else | ||
12679 | |||
12680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12681 | $as_echo "no" >&6; } | ||
12682 | unsupported_algorithms="$unsupported_cipers \ | ||
12683 | aes128-gcm@openssh.com \ | ||
12684 | aes256-gcm@openssh.com" | ||
12685 | |||
12686 | |||
12687 | fi | ||
12688 | rm -f core conftest.err conftest.$ac_objext \ | ||
12689 | conftest$ac_exeext conftest.$ac_ext | ||
12690 | |||
12691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_CIPHER_CTX_ctrl" >&5 | ||
12692 | $as_echo_n "checking for library containing EVP_CIPHER_CTX_ctrl... " >&6; } | ||
12693 | if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : | ||
12694 | $as_echo_n "(cached) " >&6 | ||
12695 | else | ||
12696 | ac_func_search_save_LIBS=$LIBS | ||
12697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12698 | /* end confdefs.h. */ | ||
12699 | |||
12700 | /* Override any GCC internal prototype to avoid an error. | ||
12701 | Use char because int might match the return type of a GCC | ||
12702 | builtin and then its argument prototype would still apply. */ | ||
12703 | #ifdef __cplusplus | ||
12704 | extern "C" | ||
12705 | #endif | ||
12706 | char EVP_CIPHER_CTX_ctrl (); | ||
12707 | int | ||
12708 | main () | ||
12709 | { | ||
12710 | return EVP_CIPHER_CTX_ctrl (); | ||
12711 | ; | ||
12712 | return 0; | ||
12713 | } | ||
12714 | _ACEOF | ||
12715 | for ac_lib in '' crypto; do | ||
12716 | if test -z "$ac_lib"; then | ||
12717 | ac_res="none required" | ||
12718 | else | ||
12719 | ac_res=-l$ac_lib | ||
12720 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
12721 | fi | ||
12722 | if ac_fn_c_try_link "$LINENO"; then : | ||
12723 | ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res | ||
12724 | fi | ||
12725 | rm -f core conftest.err conftest.$ac_objext \ | ||
12726 | conftest$ac_exeext | ||
12727 | if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : | ||
12728 | break | ||
12729 | fi | ||
12730 | done | ||
12731 | if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : | ||
12732 | |||
12733 | else | ||
12734 | ac_cv_search_EVP_CIPHER_CTX_ctrl=no | ||
12735 | fi | ||
12736 | rm conftest.$ac_ext | ||
12737 | LIBS=$ac_func_search_save_LIBS | ||
12738 | fi | ||
12739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5 | ||
12740 | $as_echo "$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; } | ||
12741 | ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl | ||
12742 | if test "$ac_res" != no; then : | ||
12743 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
12744 | |||
12745 | $as_echo "#define HAVE_EVP_CIPHER_CTX_CTRL 1" >>confdefs.h | ||
12746 | |||
12747 | fi | ||
12748 | |||
12749 | |||
12750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5 | ||
12751 | $as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; } | ||
12752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12753 | /* end confdefs.h. */ | ||
12754 | |||
12755 | #include <string.h> | ||
12756 | #include <openssl/evp.h> | ||
12757 | |||
12758 | int | ||
12759 | main () | ||
12760 | { | ||
12761 | |||
12762 | if(EVP_DigestUpdate(NULL, NULL,0)) | ||
12763 | exit(0); | ||
12764 | |||
12765 | ; | ||
12766 | return 0; | ||
12767 | } | ||
12768 | _ACEOF | ||
12769 | if ac_fn_c_try_link "$LINENO"; then : | ||
12770 | |||
12771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12772 | $as_echo "yes" >&6; } | ||
12773 | |||
12774 | else | ||
12775 | |||
12776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12777 | $as_echo "no" >&6; } | ||
12778 | |||
12779 | $as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h | ||
12780 | |||
12781 | |||
12782 | |||
12783 | fi | ||
12784 | rm -f core conftest.err conftest.$ac_objext \ | ||
12785 | conftest$ac_exeext conftest.$ac_ext | ||
12786 | |||
12787 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
12788 | # because the system crypt() is more featureful. | ||
12789 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
12790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 | ||
12791 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } | ||
12792 | if ${ac_cv_lib_crypt_crypt+:} false; then : | ||
12793 | $as_echo_n "(cached) " >&6 | ||
12794 | else | ||
12795 | ac_check_lib_save_LIBS=$LIBS | ||
12796 | LIBS="-lcrypt $LIBS" | ||
12797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12798 | /* end confdefs.h. */ | ||
12799 | |||
12800 | /* Override any GCC internal prototype to avoid an error. | ||
12801 | Use char because int might match the return type of a GCC | ||
12802 | builtin and then its argument prototype would still apply. */ | ||
12803 | #ifdef __cplusplus | ||
12804 | extern "C" | ||
12805 | #endif | ||
12806 | char crypt (); | ||
12807 | int | ||
12808 | main () | ||
12809 | { | ||
12810 | return crypt (); | ||
12811 | ; | ||
12812 | return 0; | ||
12813 | } | ||
12814 | _ACEOF | ||
12815 | if ac_fn_c_try_link "$LINENO"; then : | ||
12816 | ac_cv_lib_crypt_crypt=yes | ||
12817 | else | ||
12818 | ac_cv_lib_crypt_crypt=no | ||
12819 | fi | ||
12820 | rm -f core conftest.err conftest.$ac_objext \ | ||
12821 | conftest$ac_exeext conftest.$ac_ext | ||
12822 | LIBS=$ac_check_lib_save_LIBS | ||
12823 | fi | ||
12824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 | ||
12825 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } | ||
12826 | if test "x$ac_cv_lib_crypt_crypt" = xyes; then : | ||
12827 | cat >>confdefs.h <<_ACEOF | ||
12828 | #define HAVE_LIBCRYPT 1 | ||
12829 | _ACEOF | ||
12830 | |||
12831 | LIBS="-lcrypt $LIBS" | ||
12832 | |||
12833 | fi | ||
12834 | |||
12835 | fi | ||
12836 | |||
12837 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
12838 | # version in OpenSSL. | ||
12839 | if test "x$check_for_libcrypt_later" = "x1"; then | ||
12840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 | ||
12841 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } | ||
12842 | if ${ac_cv_lib_crypt_crypt+:} false; then : | ||
12843 | $as_echo_n "(cached) " >&6 | ||
12844 | else | ||
12845 | ac_check_lib_save_LIBS=$LIBS | ||
12846 | LIBS="-lcrypt $LIBS" | ||
12847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12848 | /* end confdefs.h. */ | ||
12849 | |||
12850 | /* Override any GCC internal prototype to avoid an error. | ||
12851 | Use char because int might match the return type of a GCC | ||
12852 | builtin and then its argument prototype would still apply. */ | ||
12853 | #ifdef __cplusplus | ||
12854 | extern "C" | ||
12855 | #endif | ||
12856 | char crypt (); | ||
12857 | int | ||
12858 | main () | ||
12859 | { | ||
12860 | return crypt (); | ||
12861 | ; | ||
12862 | return 0; | ||
12863 | } | ||
12864 | _ACEOF | ||
12865 | if ac_fn_c_try_link "$LINENO"; then : | ||
12866 | ac_cv_lib_crypt_crypt=yes | ||
12867 | else | ||
12868 | ac_cv_lib_crypt_crypt=no | ||
12869 | fi | ||
12870 | rm -f core conftest.err conftest.$ac_objext \ | ||
12871 | conftest$ac_exeext conftest.$ac_ext | ||
12872 | LIBS=$ac_check_lib_save_LIBS | ||
12873 | fi | ||
12874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 | ||
12875 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } | ||
12876 | if test "x$ac_cv_lib_crypt_crypt" = xyes; then : | ||
12877 | LIBS="$LIBS -lcrypt" | ||
12878 | fi | ||
12879 | |||
12880 | fi | ||
12881 | for ac_func in crypt DES_crypt | ||
12882 | do : | ||
12883 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12884 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
12885 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
12886 | cat >>confdefs.h <<_ACEOF | ||
12887 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12888 | _ACEOF | ||
12889 | |||
12890 | fi | ||
12891 | done | ||
12892 | |||
12893 | |||
12894 | # Search for SHA256 support in libc and/or OpenSSL | ||
12895 | for ac_func in SHA256_Update EVP_sha256 | ||
12896 | do : | ||
12897 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12898 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
12899 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
12900 | cat >>confdefs.h <<_ACEOF | ||
12901 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12902 | _ACEOF | ||
12903 | |||
12904 | else | ||
12905 | unsupported_algorithms="$unsupported_algorithms \ | ||
12906 | hmac-sha2-256 \ | ||
12907 | hmac-sha2-512 \ | ||
12908 | diffie-hellman-group-exchange-sha256 \ | ||
12909 | hmac-sha2-256-etm@openssh.com \ | ||
12910 | hmac-sha2-512-etm@openssh.com" | ||
12911 | |||
12912 | |||
12913 | fi | ||
12914 | done | ||
12915 | |||
12916 | # Search for RIPE-MD support in OpenSSL | ||
12917 | for ac_func in EVP_ripemd160 | ||
12918 | do : | ||
12919 | ac_fn_c_check_func "$LINENO" "EVP_ripemd160" "ac_cv_func_EVP_ripemd160" | ||
12920 | if test "x$ac_cv_func_EVP_ripemd160" = xyes; then : | ||
12921 | cat >>confdefs.h <<_ACEOF | ||
12922 | #define HAVE_EVP_RIPEMD160 1 | ||
12923 | _ACEOF | ||
12924 | |||
12925 | else | ||
12926 | unsupported_algorithms="$unsupported_algorithms \ | ||
12927 | hmac-ripemd160 \ | ||
12928 | hmac-ripemd160@openssh.com \ | ||
12929 | hmac-ripemd160-etm@openssh.com" | ||
12930 | |||
12931 | |||
12932 | fi | ||
12933 | done | ||
12934 | |||
12935 | |||
12936 | # Check complete ECC support in OpenSSL | ||
12937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_X9_62_prime256v1" >&5 | ||
12938 | $as_echo_n "checking whether OpenSSL has NID_X9_62_prime256v1... " >&6; } | ||
12939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12940 | /* end confdefs.h. */ | ||
12941 | |||
12942 | #include <openssl/ec.h> | ||
12943 | #include <openssl/ecdh.h> | ||
12944 | #include <openssl/ecdsa.h> | ||
12945 | #include <openssl/evp.h> | ||
12946 | #include <openssl/objects.h> | ||
12947 | #include <openssl/opensslv.h> | ||
12948 | #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ | ||
12949 | # error "OpenSSL < 0.9.8g has unreliable ECC code" | ||
12950 | #endif | ||
12951 | |||
12952 | int | ||
12953 | main () | ||
12954 | { | ||
12955 | |||
12956 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); | ||
12957 | const EVP_MD *m = EVP_sha256(); /* We need this too */ | ||
12958 | |||
12959 | ; | ||
12960 | return 0; | ||
12961 | } | ||
12962 | _ACEOF | ||
12963 | if ac_fn_c_try_link "$LINENO"; then : | ||
12964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12965 | $as_echo "yes" >&6; } | ||
12966 | enable_nistp256=1 | ||
12967 | else | ||
12968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12969 | $as_echo "no" >&6; } | ||
12970 | |||
12971 | fi | ||
12972 | rm -f core conftest.err conftest.$ac_objext \ | ||
12973 | conftest$ac_exeext conftest.$ac_ext | ||
12974 | |||
12975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp384r1" >&5 | ||
12976 | $as_echo_n "checking whether OpenSSL has NID_secp384r1... " >&6; } | ||
12977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12978 | /* end confdefs.h. */ | ||
12979 | |||
12980 | #include <openssl/ec.h> | ||
12981 | #include <openssl/ecdh.h> | ||
12982 | #include <openssl/ecdsa.h> | ||
12983 | #include <openssl/evp.h> | ||
12984 | #include <openssl/objects.h> | ||
12985 | #include <openssl/opensslv.h> | ||
12986 | #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ | ||
12987 | # error "OpenSSL < 0.9.8g has unreliable ECC code" | ||
12988 | #endif | ||
12989 | |||
12990 | int | ||
12991 | main () | ||
12992 | { | ||
12993 | |||
12994 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1); | ||
12995 | const EVP_MD *m = EVP_sha384(); /* We need this too */ | ||
12996 | |||
12997 | ; | ||
12998 | return 0; | ||
12999 | } | ||
13000 | _ACEOF | ||
13001 | if ac_fn_c_try_link "$LINENO"; then : | ||
13002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13003 | $as_echo "yes" >&6; } | ||
13004 | enable_nistp384=1 | ||
13005 | else | ||
13006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13007 | $as_echo "no" >&6; } | ||
13008 | |||
13009 | fi | ||
13010 | rm -f core conftest.err conftest.$ac_objext \ | ||
13011 | conftest$ac_exeext conftest.$ac_ext | ||
13012 | |||
13013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp521r1" >&5 | ||
13014 | $as_echo_n "checking whether OpenSSL has NID_secp521r1... " >&6; } | ||
13015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13016 | /* end confdefs.h. */ | ||
13017 | |||
13018 | #include <openssl/ec.h> | ||
13019 | #include <openssl/ecdh.h> | ||
13020 | #include <openssl/ecdsa.h> | ||
13021 | #include <openssl/evp.h> | ||
13022 | #include <openssl/objects.h> | ||
13023 | #include <openssl/opensslv.h> | ||
13024 | #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ | ||
13025 | # error "OpenSSL < 0.9.8g has unreliable ECC code" | ||
13026 | #endif | ||
13027 | |||
13028 | int | ||
13029 | main () | ||
13030 | { | ||
13031 | |||
13032 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); | ||
13033 | const EVP_MD *m = EVP_sha512(); /* We need this too */ | ||
13034 | |||
13035 | ; | ||
13036 | return 0; | ||
13037 | } | ||
13038 | _ACEOF | ||
13039 | if ac_fn_c_try_link "$LINENO"; then : | ||
13040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13041 | $as_echo "yes" >&6; } | ||
13042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL's NID_secp521r1 is functional" >&5 | ||
13043 | $as_echo_n "checking if OpenSSL's NID_secp521r1 is functional... " >&6; } | ||
13044 | if test "$cross_compiling" = yes; then : | ||
13045 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: assuming yes" >&5 | ||
13046 | $as_echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;} | ||
13047 | enable_nistp521=1 | ||
13048 | |||
13049 | else | ||
13050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13051 | /* end confdefs.h. */ | ||
13052 | |||
13053 | #include <openssl/ec.h> | ||
13054 | #include <openssl/ecdh.h> | ||
13055 | #include <openssl/ecdsa.h> | ||
13056 | #include <openssl/evp.h> | ||
13057 | #include <openssl/objects.h> | ||
13058 | #include <openssl/opensslv.h> | ||
13059 | |||
13060 | int | ||
13061 | main () | ||
13062 | { | ||
13063 | |||
13064 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); | ||
13065 | const EVP_MD *m = EVP_sha512(); /* We need this too */ | ||
13066 | exit(e == NULL || m == NULL); | ||
13067 | |||
13068 | ; | ||
13069 | return 0; | ||
13070 | } | ||
13071 | _ACEOF | ||
13072 | if ac_fn_c_try_run "$LINENO"; then : | ||
13073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13074 | $as_echo "yes" >&6; } | ||
13075 | enable_nistp521=1 | ||
13076 | else | ||
13077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13078 | $as_echo "no" >&6; } | ||
13079 | fi | ||
13080 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
13081 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
13082 | fi | ||
13083 | |||
13084 | else | ||
13085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13086 | $as_echo "no" >&6; } | ||
13087 | |||
13088 | fi | ||
13089 | rm -f core conftest.err conftest.$ac_objext \ | ||
13090 | conftest$ac_exeext conftest.$ac_ext | ||
13091 | |||
13092 | COMMENT_OUT_ECC="#no ecc#" | ||
13093 | TEST_SSH_ECC=no | ||
13094 | |||
13095 | if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \ | ||
13096 | test x$enable_nistp521 = x1; then | ||
13097 | |||
13098 | $as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h | ||
13099 | |||
13100 | fi | ||
13101 | if test x$enable_nistp256 = x1; then | ||
13102 | |||
13103 | $as_echo "#define OPENSSL_HAS_NISTP256 1" >>confdefs.h | ||
13104 | |||
13105 | TEST_SSH_ECC=yes | ||
13106 | COMMENT_OUT_ECC="" | ||
13107 | else | ||
13108 | unsupported_algorithms="$unsupported_algorithms \ | ||
13109 | ecdsa-sha2-nistp256 \ | ||
13110 | ecdh-sha2-nistp256 \ | ||
13111 | ecdsa-sha2-nistp256-cert-v01@openssh.com" | ||
13112 | fi | ||
13113 | if test x$enable_nistp384 = x1; then | ||
13114 | |||
13115 | $as_echo "#define OPENSSL_HAS_NISTP384 1" >>confdefs.h | ||
13116 | |||
13117 | TEST_SSH_ECC=yes | ||
13118 | COMMENT_OUT_ECC="" | ||
13119 | else | ||
13120 | unsupported_algorithms="$unsupported_algorithms \ | ||
13121 | ecdsa-sha2-nistp384 \ | ||
13122 | ecdh-sha2-nistp384 \ | ||
13123 | ecdsa-sha2-nistp384-cert-v01@openssh.com" | ||
13124 | fi | ||
13125 | if test x$enable_nistp521 = x1; then | ||
13126 | |||
13127 | $as_echo "#define OPENSSL_HAS_NISTP521 1" >>confdefs.h | ||
13128 | |||
13129 | TEST_SSH_ECC=yes | ||
13130 | COMMENT_OUT_ECC="" | ||
13131 | else | ||
13132 | unsupported_algorithms="$unsupported_algorithms \ | ||
13133 | ecdh-sha2-nistp521 \ | ||
13134 | ecdsa-sha2-nistp521 \ | ||
13135 | ecdsa-sha2-nistp521-cert-v01@openssh.com" | ||
13136 | fi | ||
13137 | |||
13138 | |||
13139 | |||
13140 | else | ||
13141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 | ||
13142 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } | ||
13143 | if ${ac_cv_lib_crypt_crypt+:} false; then : | ||
13144 | $as_echo_n "(cached) " >&6 | ||
13145 | else | ||
13146 | ac_check_lib_save_LIBS=$LIBS | ||
13147 | LIBS="-lcrypt $LIBS" | ||
13148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13149 | /* end confdefs.h. */ | ||
13150 | |||
13151 | /* Override any GCC internal prototype to avoid an error. | ||
13152 | Use char because int might match the return type of a GCC | ||
13153 | builtin and then its argument prototype would still apply. */ | ||
13154 | #ifdef __cplusplus | ||
13155 | extern "C" | ||
13156 | #endif | ||
13157 | char crypt (); | ||
13158 | int | ||
13159 | main () | ||
13160 | { | ||
13161 | return crypt (); | ||
13162 | ; | ||
13163 | return 0; | ||
13164 | } | ||
13165 | _ACEOF | ||
13166 | if ac_fn_c_try_link "$LINENO"; then : | ||
13167 | ac_cv_lib_crypt_crypt=yes | ||
13168 | else | ||
13169 | ac_cv_lib_crypt_crypt=no | ||
13170 | fi | ||
13171 | rm -f core conftest.err conftest.$ac_objext \ | ||
13172 | conftest$ac_exeext conftest.$ac_ext | ||
13173 | LIBS=$ac_check_lib_save_LIBS | ||
13174 | fi | ||
13175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 | ||
13176 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } | ||
13177 | if test "x$ac_cv_lib_crypt_crypt" = xyes; then : | ||
13178 | LIBS="$LIBS -lcrypt" | ||
13179 | fi | ||
13180 | |||
13181 | for ac_func in crypt | ||
13182 | do : | ||
13183 | ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" | ||
13184 | if test "x$ac_cv_func_crypt" = xyes; then : | ||
13185 | cat >>confdefs.h <<_ACEOF | ||
13186 | #define HAVE_CRYPT 1 | ||
13187 | _ACEOF | ||
13188 | |||
13189 | fi | ||
13190 | done | ||
13191 | |||
13192 | fi | ||
13193 | |||
13194 | for ac_func in \ | ||
13195 | arc4random \ | ||
13196 | arc4random_buf \ | ||
13197 | arc4random_stir \ | ||
13198 | arc4random_uniform \ | ||
13199 | |||
13200 | do : | ||
13201 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13202 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
13203 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
13204 | cat >>confdefs.h <<_ACEOF | ||
13205 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13206 | _ACEOF | ||
13207 | |||
13208 | fi | ||
13209 | done | ||
13210 | |||
13211 | |||
13212 | saved_LIBS="$LIBS" | ||
13213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5 | ||
13214 | $as_echo_n "checking for ia_openinfo in -liaf... " >&6; } | ||
13215 | if ${ac_cv_lib_iaf_ia_openinfo+:} false; then : | ||
13216 | $as_echo_n "(cached) " >&6 | ||
13217 | else | ||
13218 | ac_check_lib_save_LIBS=$LIBS | ||
13219 | LIBS="-liaf $LIBS" | ||
13220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13221 | /* end confdefs.h. */ | ||
13222 | |||
13223 | /* Override any GCC internal prototype to avoid an error. | ||
13224 | Use char because int might match the return type of a GCC | ||
13225 | builtin and then its argument prototype would still apply. */ | ||
13226 | #ifdef __cplusplus | ||
13227 | extern "C" | ||
13228 | #endif | ||
13229 | char ia_openinfo (); | ||
13230 | int | ||
13231 | main () | ||
13232 | { | ||
13233 | return ia_openinfo (); | ||
13234 | ; | ||
13235 | return 0; | ||
13236 | } | ||
13237 | _ACEOF | ||
13238 | if ac_fn_c_try_link "$LINENO"; then : | ||
13239 | ac_cv_lib_iaf_ia_openinfo=yes | ||
13240 | else | ||
13241 | ac_cv_lib_iaf_ia_openinfo=no | ||
13242 | fi | ||
13243 | rm -f core conftest.err conftest.$ac_objext \ | ||
13244 | conftest$ac_exeext conftest.$ac_ext | ||
13245 | LIBS=$ac_check_lib_save_LIBS | ||
13246 | fi | ||
13247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5 | ||
13248 | $as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; } | ||
13249 | if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then : | ||
13250 | |||
13251 | LIBS="$LIBS -liaf" | ||
13252 | for ac_func in set_id | ||
13253 | do : | ||
13254 | ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id" | ||
13255 | if test "x$ac_cv_func_set_id" = xyes; then : | ||
13256 | cat >>confdefs.h <<_ACEOF | ||
13257 | #define HAVE_SET_ID 1 | ||
13258 | _ACEOF | ||
13259 | SSHDLIBS="$SSHDLIBS -liaf" | ||
13260 | |||
13261 | $as_echo "#define HAVE_LIBIAF 1" >>confdefs.h | ||
13262 | |||
13263 | |||
13264 | fi | ||
13265 | done | ||
13266 | |||
13267 | |||
13268 | fi | ||
13269 | |||
13270 | LIBS="$saved_LIBS" | ||
13271 | |||
13272 | ### Configure cryptographic random number support | ||
13273 | |||
13274 | # Check wheter OpenSSL seeds itself | ||
13275 | if test "x$openssl" = "xyes" ; then | ||
13276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
13277 | $as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; } | ||
13278 | if test "$cross_compiling" = yes; then : | ||
13279 | |||
13280 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
13281 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
13282 | # This is safe, since we will fatal() at runtime if | ||
13283 | # OpenSSL is not seeded correctly. | ||
13284 | OPENSSL_SEEDS_ITSELF=yes | ||
13285 | |||
13286 | |||
13287 | else | ||
13288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13289 | /* end confdefs.h. */ | ||
13290 | |||
13291 | #include <string.h> | ||
13292 | #include <openssl/rand.h> | ||
13293 | |||
13294 | int | ||
13295 | main () | ||
13296 | { | ||
13297 | |||
13298 | exit(RAND_status() == 1 ? 0 : 1); | ||
13299 | |||
13300 | ; | ||
13301 | return 0; | ||
13302 | } | ||
13303 | _ACEOF | ||
13304 | if ac_fn_c_try_run "$LINENO"; then : | ||
13305 | |||
13306 | OPENSSL_SEEDS_ITSELF=yes | ||
13307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13308 | $as_echo "yes" >&6; } | ||
13309 | |||
13310 | else | ||
13311 | |||
13312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13313 | $as_echo "no" >&6; } | ||
13314 | |||
13315 | fi | ||
13316 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
13317 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
13318 | fi | ||
13319 | |||
13320 | fi | ||
13321 | |||
13322 | # PRNGD TCP socket | ||
13323 | |||
13324 | # Check whether --with-prngd-port was given. | ||
13325 | if test "${with_prngd_port+set}" = set; then : | ||
13326 | withval=$with_prngd_port; | ||
13327 | case "$withval" in | ||
13328 | no) | ||
13329 | withval="" | ||
13330 | ;; | ||
13331 | [0-9]*) | ||
13332 | ;; | ||
13333 | *) | ||
13334 | as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5 | ||
13335 | ;; | ||
13336 | esac | ||
13337 | if test ! -z "$withval" ; then | ||
13338 | PRNGD_PORT="$withval" | ||
13339 | |||
13340 | cat >>confdefs.h <<_ACEOF | ||
13341 | #define PRNGD_PORT $PRNGD_PORT | ||
13342 | _ACEOF | ||
13343 | |||
13344 | fi | ||
13345 | |||
13346 | |||
13347 | fi | ||
13348 | |||
13349 | |||
13350 | # PRNGD Unix domain socket | ||
13351 | |||
13352 | # Check whether --with-prngd-socket was given. | ||
13353 | if test "${with_prngd_socket+set}" = set; then : | ||
13354 | withval=$with_prngd_socket; | ||
13355 | case "$withval" in | ||
13356 | yes) | ||
13357 | withval="/var/run/egd-pool" | ||
13358 | ;; | ||
13359 | no) | ||
13360 | withval="" | ||
13361 | ;; | ||
13362 | /*) | ||
13363 | ;; | ||
13364 | *) | ||
13365 | as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5 | ||
13366 | ;; | ||
13367 | esac | ||
13368 | |||
13369 | if test ! -z "$withval" ; then | ||
13370 | if test ! -z "$PRNGD_PORT" ; then | ||
13371 | as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5 | ||
13372 | fi | ||
13373 | if test ! -r "$withval" ; then | ||
13374 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5 | ||
13375 | $as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
13376 | fi | ||
13377 | PRNGD_SOCKET="$withval" | ||
13378 | |||
13379 | cat >>confdefs.h <<_ACEOF | ||
13380 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
13381 | _ACEOF | ||
13382 | |||
13383 | fi | ||
13384 | |||
13385 | else | ||
13386 | |||
13387 | # Check for existing socket only if we don't have a random device already | ||
13388 | if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then | ||
13389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5 | ||
13390 | $as_echo_n "checking for PRNGD/EGD socket... " >&6; } | ||
13391 | # Insert other locations here | ||
13392 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
13393 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
13394 | PRNGD_SOCKET="$sock" | ||
13395 | cat >>confdefs.h <<_ACEOF | ||
13396 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
13397 | _ACEOF | ||
13398 | |||
13399 | break; | ||
13400 | fi | ||
13401 | done | ||
13402 | if test ! -z "$PRNGD_SOCKET" ; then | ||
13403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5 | ||
13404 | $as_echo "$PRNGD_SOCKET" >&6; } | ||
13405 | else | ||
13406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
13407 | $as_echo "not found" >&6; } | ||
13408 | fi | ||
13409 | fi | ||
13410 | |||
13411 | |||
13412 | fi | ||
13413 | |||
13414 | |||
13415 | # Which randomness source do we use? | ||
13416 | if test ! -z "$PRNGD_PORT" ; then | ||
13417 | RAND_MSG="PRNGd port $PRNGD_PORT" | ||
13418 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
13419 | RAND_MSG="PRNGd socket $PRNGD_SOCKET" | ||
13420 | elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
13421 | |||
13422 | $as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h | ||
13423 | |||
13424 | RAND_MSG="OpenSSL internal ONLY" | ||
13425 | elif test "x$openssl" = "xno" ; then | ||
13426 | { $as_echo "$as_me:${as_lineno-$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 | ||
13427 | $as_echo "$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;} | ||
13428 | else | ||
13429 | 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 | ||
13430 | fi | ||
13431 | |||
13432 | # Check for PAM libs | ||
13433 | PAM_MSG="no" | ||
13434 | |||
13435 | # Check whether --with-pam was given. | ||
13436 | if test "${with_pam+set}" = set; then : | ||
13437 | withval=$with_pam; | ||
13438 | if test "x$withval" != "xno" ; then | ||
13439 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ | ||
13440 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then | ||
13441 | as_fn_error $? "PAM headers not found" "$LINENO" 5 | ||
13442 | fi | ||
13443 | |||
13444 | saved_LIBS="$LIBS" | ||
13445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
13446 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
13447 | if ${ac_cv_lib_dl_dlopen+:} false; then : | ||
13448 | $as_echo_n "(cached) " >&6 | ||
13449 | else | ||
13450 | ac_check_lib_save_LIBS=$LIBS | ||
13451 | LIBS="-ldl $LIBS" | ||
13452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13453 | /* end confdefs.h. */ | ||
13454 | |||
13455 | /* Override any GCC internal prototype to avoid an error. | ||
13456 | Use char because int might match the return type of a GCC | ||
13457 | builtin and then its argument prototype would still apply. */ | ||
13458 | #ifdef __cplusplus | ||
13459 | extern "C" | ||
13460 | #endif | ||
13461 | char dlopen (); | ||
13462 | int | ||
13463 | main () | ||
13464 | { | ||
13465 | return dlopen (); | ||
13466 | ; | ||
13467 | return 0; | ||
13468 | } | ||
13469 | _ACEOF | ||
13470 | if ac_fn_c_try_link "$LINENO"; then : | ||
13471 | ac_cv_lib_dl_dlopen=yes | ||
13472 | else | ||
13473 | ac_cv_lib_dl_dlopen=no | ||
13474 | fi | ||
13475 | rm -f core conftest.err conftest.$ac_objext \ | ||
13476 | conftest$ac_exeext conftest.$ac_ext | ||
13477 | LIBS=$ac_check_lib_save_LIBS | ||
13478 | fi | ||
13479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
13480 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
13481 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | ||
13482 | cat >>confdefs.h <<_ACEOF | ||
13483 | #define HAVE_LIBDL 1 | ||
13484 | _ACEOF | ||
13485 | |||
13486 | LIBS="-ldl $LIBS" | ||
13487 | |||
13488 | fi | ||
13489 | |||
13490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5 | ||
13491 | $as_echo_n "checking for pam_set_item in -lpam... " >&6; } | ||
13492 | if ${ac_cv_lib_pam_pam_set_item+:} false; then : | ||
13493 | $as_echo_n "(cached) " >&6 | ||
13494 | else | ||
13495 | ac_check_lib_save_LIBS=$LIBS | ||
13496 | LIBS="-lpam $LIBS" | ||
13497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13498 | /* end confdefs.h. */ | ||
13499 | |||
13500 | /* Override any GCC internal prototype to avoid an error. | ||
13501 | Use char because int might match the return type of a GCC | ||
13502 | builtin and then its argument prototype would still apply. */ | ||
13503 | #ifdef __cplusplus | ||
13504 | extern "C" | ||
13505 | #endif | ||
13506 | char pam_set_item (); | ||
13507 | int | ||
13508 | main () | ||
13509 | { | ||
13510 | return pam_set_item (); | ||
13511 | ; | ||
13512 | return 0; | ||
13513 | } | ||
13514 | _ACEOF | ||
13515 | if ac_fn_c_try_link "$LINENO"; then : | ||
13516 | ac_cv_lib_pam_pam_set_item=yes | ||
13517 | else | ||
13518 | ac_cv_lib_pam_pam_set_item=no | ||
13519 | fi | ||
13520 | rm -f core conftest.err conftest.$ac_objext \ | ||
13521 | conftest$ac_exeext conftest.$ac_ext | ||
13522 | LIBS=$ac_check_lib_save_LIBS | ||
13523 | fi | ||
13524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
13525 | $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; } | ||
13526 | if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then : | ||
13527 | cat >>confdefs.h <<_ACEOF | ||
13528 | #define HAVE_LIBPAM 1 | ||
13529 | _ACEOF | ||
13530 | |||
13531 | LIBS="-lpam $LIBS" | ||
13532 | |||
13533 | else | ||
13534 | as_fn_error $? "*** libpam missing" "$LINENO" 5 | ||
13535 | fi | ||
13536 | |||
13537 | for ac_func in pam_getenvlist | ||
13538 | do : | ||
13539 | ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist" | ||
13540 | if test "x$ac_cv_func_pam_getenvlist" = xyes; then : | ||
13541 | cat >>confdefs.h <<_ACEOF | ||
13542 | #define HAVE_PAM_GETENVLIST 1 | ||
13543 | _ACEOF | ||
13544 | |||
13545 | fi | ||
13546 | done | ||
13547 | |||
13548 | for ac_func in pam_putenv | ||
13549 | do : | ||
13550 | ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv" | ||
13551 | if test "x$ac_cv_func_pam_putenv" = xyes; then : | ||
13552 | cat >>confdefs.h <<_ACEOF | ||
13553 | #define HAVE_PAM_PUTENV 1 | ||
13554 | _ACEOF | ||
13555 | |||
13556 | fi | ||
13557 | done | ||
13558 | |||
13559 | LIBS="$saved_LIBS" | ||
13560 | |||
13561 | PAM_MSG="yes" | ||
13562 | |||
13563 | SSHDLIBS="$SSHDLIBS -lpam" | ||
13564 | |||
13565 | $as_echo "#define USE_PAM 1" >>confdefs.h | ||
13566 | |||
13567 | |||
13568 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
13569 | case "$LIBS" in | ||
13570 | *-ldl*) | ||
13571 | # libdl already in LIBS | ||
13572 | ;; | ||
13573 | *) | ||
13574 | SSHDLIBS="$SSHDLIBS -ldl" | ||
13575 | ;; | ||
13576 | esac | ||
13577 | fi | ||
13578 | fi | ||
13579 | |||
13580 | |||
13581 | fi | ||
13582 | |||
13583 | |||
13584 | |||
13585 | # Check whether --with-pam-service was given. | ||
13586 | if test "${with_pam_service+set}" = set; then : | ||
13587 | withval=$with_pam_service; | ||
13588 | if test "x$withval" != "xno" && \ | ||
13589 | test "x$withval" != "xyes" ; then | ||
13590 | |||
13591 | cat >>confdefs.h <<_ACEOF | ||
13592 | #define SSHD_PAM_SERVICE "$withval" | ||
13593 | _ACEOF | ||
13594 | |||
13595 | fi | ||
13596 | |||
13597 | |||
13598 | fi | ||
13599 | |||
13600 | |||
13601 | # Check for older PAM | ||
13602 | if test "x$PAM_MSG" = "xyes" ; then | ||
13603 | # Check PAM strerror arguments (old PAM) | ||
13604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5 | ||
13605 | $as_echo_n "checking whether pam_strerror takes only one argument... " >&6; } | ||
13606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13607 | /* end confdefs.h. */ | ||
13608 | |||
13609 | #include <stdlib.h> | ||
13610 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
13611 | #include <security/pam_appl.h> | ||
13612 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
13613 | #include <pam/pam_appl.h> | ||
13614 | #endif | ||
13615 | |||
13616 | int | ||
13617 | main () | ||
13618 | { | ||
13619 | |||
13620 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
13621 | |||
13622 | ; | ||
13623 | return 0; | ||
13624 | } | ||
13625 | _ACEOF | ||
13626 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13628 | $as_echo "no" >&6; } | ||
13629 | else | ||
13630 | |||
13631 | |||
13632 | $as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h | ||
13633 | |||
13634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13635 | $as_echo "yes" >&6; } | ||
13636 | PAM_MSG="yes (old library)" | ||
13637 | |||
13638 | |||
13639 | fi | ||
13640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13641 | fi | ||
13642 | |||
13643 | case "$host" in | ||
13644 | *-*-cygwin*) | ||
13645 | SSH_PRIVSEP_USER=CYGWIN_SSH_PRIVSEP_USER | ||
13646 | ;; | ||
13647 | *) | ||
13648 | SSH_PRIVSEP_USER=sshd | ||
13649 | ;; | ||
13650 | esac | ||
13651 | |||
13652 | # Check whether --with-privsep-user was given. | ||
13653 | if test "${with_privsep_user+set}" = set; then : | ||
13654 | withval=$with_privsep_user; | ||
13655 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
13656 | test "x${withval}" != "xyes"; then | ||
13657 | SSH_PRIVSEP_USER=$withval | ||
13658 | fi | ||
13659 | |||
13660 | |||
13661 | fi | ||
13662 | |||
13663 | if test "x$SSH_PRIVSEP_USER" = "xCYGWIN_SSH_PRIVSEP_USER" ; then | ||
13664 | |||
13665 | cat >>confdefs.h <<_ACEOF | ||
13666 | #define SSH_PRIVSEP_USER CYGWIN_SSH_PRIVSEP_USER | ||
13667 | _ACEOF | ||
13668 | |||
13669 | else | ||
13670 | |||
13671 | cat >>confdefs.h <<_ACEOF | ||
13672 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
13673 | _ACEOF | ||
13674 | |||
13675 | fi | ||
13676 | |||
13677 | |||
13678 | if test "x$have_linux_no_new_privs" = "x1" ; then | ||
13679 | ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" " | ||
13680 | #include <sys/types.h> | ||
13681 | #include <linux/seccomp.h> | ||
13682 | |||
13683 | " | ||
13684 | if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then : | ||
13685 | have_seccomp_filter=1 | ||
13686 | fi | ||
13687 | |||
13688 | fi | ||
13689 | if test "x$have_seccomp_filter" = "x1" ; then | ||
13690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5 | ||
13691 | $as_echo_n "checking kernel for seccomp_filter support... " >&6; } | ||
13692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13693 | /* end confdefs.h. */ | ||
13694 | |||
13695 | #include <errno.h> | ||
13696 | #include <elf.h> | ||
13697 | #include <linux/audit.h> | ||
13698 | #include <linux/seccomp.h> | ||
13699 | #include <stdlib.h> | ||
13700 | #include <sys/prctl.h> | ||
13701 | |||
13702 | int | ||
13703 | main () | ||
13704 | { | ||
13705 | int i = $seccomp_audit_arch; | ||
13706 | errno = 0; | ||
13707 | prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0); | ||
13708 | exit(errno == EFAULT ? 0 : 1); | ||
13709 | ; | ||
13710 | return 0; | ||
13711 | } | ||
13712 | _ACEOF | ||
13713 | if ac_fn_c_try_link "$LINENO"; then : | ||
13714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13715 | $as_echo "yes" >&6; } | ||
13716 | else | ||
13717 | |||
13718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13719 | $as_echo "no" >&6; } | ||
13720 | # Disable seccomp filter as a target | ||
13721 | have_seccomp_filter=0 | ||
13722 | |||
13723 | |||
13724 | fi | ||
13725 | rm -f core conftest.err conftest.$ac_objext \ | ||
13726 | conftest$ac_exeext conftest.$ac_ext | ||
13727 | fi | ||
13728 | |||
13729 | # Decide which sandbox style to use | ||
13730 | sandbox_arg="" | ||
13731 | |||
13732 | # Check whether --with-sandbox was given. | ||
13733 | if test "${with_sandbox+set}" = set; then : | ||
13734 | withval=$with_sandbox; | ||
13735 | if test "x$withval" = "xyes" ; then | ||
13736 | sandbox_arg="" | ||
13737 | else | ||
13738 | sandbox_arg="$withval" | ||
13739 | fi | ||
13740 | |||
13741 | |||
13742 | fi | ||
13743 | |||
13744 | |||
13745 | # Some platforms (seems to be the ones that have a kernel poll(2)-type | ||
13746 | # function with which they implement select(2)) use an extra file descriptor | ||
13747 | # when calling select(2), which means we can't use the rlimit sandbox. | ||
13748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select works with descriptor rlimit" >&5 | ||
13749 | $as_echo_n "checking if select works with descriptor rlimit... " >&6; } | ||
13750 | if test "$cross_compiling" = yes; then : | ||
13751 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
13752 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
13753 | |||
13754 | else | ||
13755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13756 | /* end confdefs.h. */ | ||
13757 | |||
13758 | #include <sys/types.h> | ||
13759 | #ifdef HAVE_SYS_TIME_H | ||
13760 | # include <sys/time.h> | ||
13761 | #endif | ||
13762 | #include <sys/resource.h> | ||
13763 | #ifdef HAVE_SYS_SELECT_H | ||
13764 | # include <sys/select.h> | ||
13765 | #endif | ||
13766 | #include <errno.h> | ||
13767 | #include <fcntl.h> | ||
13768 | #include <stdlib.h> | ||
13769 | |||
13770 | int | ||
13771 | main () | ||
13772 | { | ||
13773 | |||
13774 | struct rlimit rl_zero; | ||
13775 | int fd, r; | ||
13776 | fd_set fds; | ||
13777 | struct timeval tv; | ||
13778 | |||
13779 | fd = open("/dev/null", O_RDONLY); | ||
13780 | FD_ZERO(&fds); | ||
13781 | FD_SET(fd, &fds); | ||
13782 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
13783 | setrlimit(RLIMIT_FSIZE, &rl_zero); | ||
13784 | setrlimit(RLIMIT_NOFILE, &rl_zero); | ||
13785 | tv.tv_sec = 1; | ||
13786 | tv.tv_usec = 0; | ||
13787 | r = select(fd+1, &fds, NULL, NULL, &tv); | ||
13788 | exit (r == -1 ? 1 : 0); | ||
13789 | |||
13790 | ; | ||
13791 | return 0; | ||
13792 | } | ||
13793 | _ACEOF | ||
13794 | if ac_fn_c_try_run "$LINENO"; then : | ||
13795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13796 | $as_echo "yes" >&6; } | ||
13797 | select_works_with_rlimit=yes | ||
13798 | else | ||
13799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13800 | $as_echo "no" >&6; } | ||
13801 | select_works_with_rlimit=no | ||
13802 | fi | ||
13803 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
13804 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
13805 | fi | ||
13806 | |||
13807 | |||
13808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5 | ||
13809 | $as_echo_n "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... " >&6; } | ||
13810 | if test "$cross_compiling" = yes; then : | ||
13811 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
13812 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
13813 | |||
13814 | else | ||
13815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13816 | /* end confdefs.h. */ | ||
13817 | |||
13818 | #include <sys/types.h> | ||
13819 | #ifdef HAVE_SYS_TIME_H | ||
13820 | # include <sys/time.h> | ||
13821 | #endif | ||
13822 | #include <sys/resource.h> | ||
13823 | #include <errno.h> | ||
13824 | #include <stdlib.h> | ||
13825 | |||
13826 | int | ||
13827 | main () | ||
13828 | { | ||
13829 | |||
13830 | struct rlimit rl_zero; | ||
13831 | int fd, r; | ||
13832 | fd_set fds; | ||
13833 | |||
13834 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
13835 | r = setrlimit(RLIMIT_NOFILE, &rl_zero); | ||
13836 | exit (r == -1 ? 1 : 0); | ||
13837 | |||
13838 | ; | ||
13839 | return 0; | ||
13840 | } | ||
13841 | _ACEOF | ||
13842 | if ac_fn_c_try_run "$LINENO"; then : | ||
13843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13844 | $as_echo "yes" >&6; } | ||
13845 | rlimit_nofile_zero_works=yes | ||
13846 | else | ||
13847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13848 | $as_echo "no" >&6; } | ||
13849 | rlimit_nofile_zero_works=no | ||
13850 | fi | ||
13851 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
13852 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
13853 | fi | ||
13854 | |||
13855 | |||
13856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5 | ||
13857 | $as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; } | ||
13858 | if test "$cross_compiling" = yes; then : | ||
13859 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
13860 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
13861 | |||
13862 | else | ||
13863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13864 | /* end confdefs.h. */ | ||
13865 | |||
13866 | #include <sys/types.h> | ||
13867 | #include <sys/resource.h> | ||
13868 | #include <stdlib.h> | ||
13869 | |||
13870 | int | ||
13871 | main () | ||
13872 | { | ||
13873 | |||
13874 | struct rlimit rl_zero; | ||
13875 | |||
13876 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
13877 | exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0); | ||
13878 | |||
13879 | ; | ||
13880 | return 0; | ||
13881 | } | ||
13882 | _ACEOF | ||
13883 | if ac_fn_c_try_run "$LINENO"; then : | ||
13884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13885 | $as_echo "yes" >&6; } | ||
13886 | else | ||
13887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13888 | $as_echo "no" >&6; } | ||
13889 | |||
13890 | $as_echo "#define SANDBOX_SKIP_RLIMIT_FSIZE 1" >>confdefs.h | ||
13891 | |||
13892 | fi | ||
13893 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
13894 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
13895 | fi | ||
13896 | |||
13897 | |||
13898 | if test "x$sandbox_arg" = "xpledge" || \ | ||
13899 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_pledge" = "xyes" ) ; then | ||
13900 | test "x$ac_cv_func_pledge" != "xyes" && \ | ||
13901 | as_fn_error $? "pledge sandbox requires pledge(2) support" "$LINENO" 5 | ||
13902 | SANDBOX_STYLE="pledge" | ||
13903 | |||
13904 | $as_echo "#define SANDBOX_PLEDGE 1" >>confdefs.h | ||
13905 | |||
13906 | elif test "x$sandbox_arg" = "xsystrace" || \ | ||
13907 | ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then | ||
13908 | test "x$have_systr_policy_kill" != "x1" && \ | ||
13909 | as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5 | ||
13910 | SANDBOX_STYLE="systrace" | ||
13911 | |||
13912 | $as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h | ||
13913 | |||
13914 | elif test "x$sandbox_arg" = "xdarwin" || \ | ||
13915 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \ | ||
13916 | test "x$ac_cv_header_sandbox_h" = "xyes") ; then | ||
13917 | test "x$ac_cv_func_sandbox_init" != "xyes" -o \ | ||
13918 | "x$ac_cv_header_sandbox_h" != "xyes" && \ | ||
13919 | as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5 | ||
13920 | SANDBOX_STYLE="darwin" | ||
13921 | |||
13922 | $as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h | ||
13923 | |||
13924 | elif test "x$sandbox_arg" = "xseccomp_filter" || \ | ||
13925 | ( test -z "$sandbox_arg" && \ | ||
13926 | test "x$have_seccomp_filter" = "x1" && \ | ||
13927 | test "x$ac_cv_header_elf_h" = "xyes" && \ | ||
13928 | test "x$ac_cv_header_linux_audit_h" = "xyes" && \ | ||
13929 | test "x$ac_cv_header_linux_filter_h" = "xyes" && \ | ||
13930 | test "x$seccomp_audit_arch" != "x" && \ | ||
13931 | test "x$have_linux_no_new_privs" = "x1" && \ | ||
13932 | test "x$ac_cv_func_prctl" = "xyes" ) ; then | ||
13933 | test "x$seccomp_audit_arch" = "x" && \ | ||
13934 | as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5 | ||
13935 | test "x$have_linux_no_new_privs" != "x1" && \ | ||
13936 | as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5 | ||
13937 | test "x$have_seccomp_filter" != "x1" && \ | ||
13938 | as_fn_error $? "seccomp_filter sandbox requires seccomp headers" "$LINENO" 5 | ||
13939 | test "x$ac_cv_func_prctl" != "xyes" && \ | ||
13940 | as_fn_error $? "seccomp_filter sandbox requires prctl function" "$LINENO" 5 | ||
13941 | SANDBOX_STYLE="seccomp_filter" | ||
13942 | |||
13943 | $as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h | ||
13944 | |||
13945 | elif test "x$sandbox_arg" = "xcapsicum" || \ | ||
13946 | ( test -z "$sandbox_arg" && \ | ||
13947 | test "x$ac_cv_header_sys_capability_h" = "xyes" && \ | ||
13948 | test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then | ||
13949 | test "x$ac_cv_header_sys_capability_h" != "xyes" && \ | ||
13950 | as_fn_error $? "capsicum sandbox requires sys/capability.h header" "$LINENO" 5 | ||
13951 | test "x$ac_cv_func_cap_rights_limit" != "xyes" && \ | ||
13952 | as_fn_error $? "capsicum sandbox requires cap_rights_limit function" "$LINENO" 5 | ||
13953 | SANDBOX_STYLE="capsicum" | ||
13954 | |||
13955 | $as_echo "#define SANDBOX_CAPSICUM 1" >>confdefs.h | ||
13956 | |||
13957 | elif test "x$sandbox_arg" = "xrlimit" || \ | ||
13958 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \ | ||
13959 | test "x$select_works_with_rlimit" = "xyes" && \ | ||
13960 | test "x$rlimit_nofile_zero_works" = "xyes" ) ; then | ||
13961 | test "x$ac_cv_func_setrlimit" != "xyes" && \ | ||
13962 | as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5 | ||
13963 | test "x$select_works_with_rlimit" != "xyes" && \ | ||
13964 | as_fn_error $? "rlimit sandbox requires select to work with rlimit" "$LINENO" 5 | ||
13965 | SANDBOX_STYLE="rlimit" | ||
13966 | |||
13967 | $as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h | ||
13968 | |||
13969 | elif test "x$sandbox_arg" = "xsolaris" || \ | ||
13970 | ( test -z "$sandbox_arg" && test "x$SOLARIS_PRIVS" = "xyes" ) ; then | ||
13971 | SANDBOX_STYLE="solaris" | ||
13972 | |||
13973 | $as_echo "#define SANDBOX_SOLARIS 1" >>confdefs.h | ||
13974 | |||
13975 | elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \ | ||
13976 | test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then | ||
13977 | SANDBOX_STYLE="none" | ||
13978 | |||
13979 | $as_echo "#define SANDBOX_NULL 1" >>confdefs.h | ||
13980 | |||
13981 | else | ||
13982 | as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5 | ||
13983 | fi | ||
13984 | |||
13985 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
13986 | if test ! -z "$SONY" ; then | ||
13987 | LIBS="$LIBS -liberty"; | ||
13988 | fi | ||
13989 | |||
13990 | # Check for long long datatypes | ||
13991 | ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" | ||
13992 | if test "x$ac_cv_type_long_long" = xyes; then : | ||
13993 | |||
13994 | cat >>confdefs.h <<_ACEOF | ||
13995 | #define HAVE_LONG_LONG 1 | ||
13996 | _ACEOF | ||
13997 | |||
13998 | |||
13999 | fi | ||
14000 | ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default" | ||
14001 | if test "x$ac_cv_type_unsigned_long_long" = xyes; then : | ||
14002 | |||
14003 | cat >>confdefs.h <<_ACEOF | ||
14004 | #define HAVE_UNSIGNED_LONG_LONG 1 | ||
14005 | _ACEOF | ||
14006 | |||
14007 | |||
14008 | fi | ||
14009 | ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default" | ||
14010 | if test "x$ac_cv_type_long_double" = xyes; then : | ||
14011 | |||
14012 | cat >>confdefs.h <<_ACEOF | ||
14013 | #define HAVE_LONG_DOUBLE 1 | ||
14014 | _ACEOF | ||
14015 | |||
14016 | |||
14017 | fi | ||
14018 | |||
14019 | |||
14020 | # Check datatype sizes | ||
14021 | # The cast to long int works around a bug in the HP C Compiler | ||
14022 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
14023 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
14024 | # This bug is HP SR number 8606223364. | ||
14025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5 | ||
14026 | $as_echo_n "checking size of short int... " >&6; } | ||
14027 | if ${ac_cv_sizeof_short_int+:} false; then : | ||
14028 | $as_echo_n "(cached) " >&6 | ||
14029 | else | ||
14030 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then : | ||
14031 | |||
14032 | else | ||
14033 | if test "$ac_cv_type_short_int" = yes; then | ||
14034 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
14035 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
14036 | as_fn_error 77 "cannot compute sizeof (short int) | ||
14037 | See \`config.log' for more details" "$LINENO" 5; } | ||
14038 | else | ||
14039 | ac_cv_sizeof_short_int=0 | ||
14040 | fi | ||
14041 | fi | ||
14042 | |||
14043 | fi | ||
14044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5 | ||
14045 | $as_echo "$ac_cv_sizeof_short_int" >&6; } | ||
14046 | |||
14047 | |||
14048 | |||
14049 | cat >>confdefs.h <<_ACEOF | ||
14050 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
14051 | _ACEOF | ||
14052 | |||
14053 | |||
14054 | # The cast to long int works around a bug in the HP C Compiler | ||
14055 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
14056 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
14057 | # This bug is HP SR number 8606223364. | ||
14058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | ||
14059 | $as_echo_n "checking size of int... " >&6; } | ||
14060 | if ${ac_cv_sizeof_int+:} false; then : | ||
14061 | $as_echo_n "(cached) " >&6 | ||
14062 | else | ||
14063 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | ||
14064 | |||
14065 | else | ||
14066 | if test "$ac_cv_type_int" = yes; then | ||
14067 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
14068 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
14069 | as_fn_error 77 "cannot compute sizeof (int) | ||
14070 | See \`config.log' for more details" "$LINENO" 5; } | ||
14071 | else | ||
14072 | ac_cv_sizeof_int=0 | ||
14073 | fi | ||
14074 | fi | ||
14075 | |||
14076 | fi | ||
14077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | ||
14078 | $as_echo "$ac_cv_sizeof_int" >&6; } | ||
14079 | |||
14080 | |||
14081 | |||
14082 | cat >>confdefs.h <<_ACEOF | ||
14083 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
14084 | _ACEOF | ||
14085 | |||
14086 | |||
14087 | # The cast to long int works around a bug in the HP C Compiler | ||
14088 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
14089 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
14090 | # This bug is HP SR number 8606223364. | ||
14091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 | ||
14092 | $as_echo_n "checking size of long int... " >&6; } | ||
14093 | if ${ac_cv_sizeof_long_int+:} false; then : | ||
14094 | $as_echo_n "(cached) " >&6 | ||
14095 | else | ||
14096 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : | ||
14097 | |||
14098 | else | ||
14099 | if test "$ac_cv_type_long_int" = yes; then | ||
14100 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
14101 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
14102 | as_fn_error 77 "cannot compute sizeof (long int) | ||
14103 | See \`config.log' for more details" "$LINENO" 5; } | ||
14104 | else | ||
14105 | ac_cv_sizeof_long_int=0 | ||
14106 | fi | ||
14107 | fi | ||
14108 | |||
14109 | fi | ||
14110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 | ||
14111 | $as_echo "$ac_cv_sizeof_long_int" >&6; } | ||
14112 | |||
14113 | |||
14114 | |||
14115 | cat >>confdefs.h <<_ACEOF | ||
14116 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
14117 | _ACEOF | ||
14118 | |||
14119 | |||
14120 | # The cast to long int works around a bug in the HP C Compiler | ||
14121 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
14122 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
14123 | # This bug is HP SR number 8606223364. | ||
14124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5 | ||
14125 | $as_echo_n "checking size of long long int... " >&6; } | ||
14126 | if ${ac_cv_sizeof_long_long_int+:} false; then : | ||
14127 | $as_echo_n "(cached) " >&6 | ||
14128 | else | ||
14129 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then : | ||
14130 | |||
14131 | else | ||
14132 | if test "$ac_cv_type_long_long_int" = yes; then | ||
14133 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
14134 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
14135 | as_fn_error 77 "cannot compute sizeof (long long int) | ||
14136 | See \`config.log' for more details" "$LINENO" 5; } | ||
14137 | else | ||
14138 | ac_cv_sizeof_long_long_int=0 | ||
14139 | fi | ||
14140 | fi | ||
14141 | |||
14142 | fi | ||
14143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5 | ||
14144 | $as_echo "$ac_cv_sizeof_long_long_int" >&6; } | ||
14145 | |||
14146 | |||
14147 | |||
14148 | cat >>confdefs.h <<_ACEOF | ||
14149 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
14150 | _ACEOF | ||
14151 | |||
14152 | |||
14153 | |||
14154 | # Sanity check long long for some platforms (AIX) | ||
14155 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
14156 | ac_cv_sizeof_long_long_int=0 | ||
14157 | fi | ||
14158 | |||
14159 | # compute LLONG_MIN and LLONG_MAX if we don't know them. | ||
14160 | if test -z "$have_llong_max"; then | ||
14161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5 | ||
14162 | $as_echo_n "checking for max value of long long... " >&6; } | ||
14163 | if test "$cross_compiling" = yes; then : | ||
14164 | |||
14165 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
14166 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
14167 | |||
14168 | |||
14169 | else | ||
14170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14171 | /* end confdefs.h. */ | ||
14172 | |||
14173 | #include <stdio.h> | ||
14174 | /* Why is this so damn hard? */ | ||
14175 | #ifdef __GNUC__ | ||
14176 | # undef __GNUC__ | ||
14177 | #endif | ||
14178 | #define __USE_ISOC99 | ||
14179 | #include <limits.h> | ||
14180 | #define DATA "conftest.llminmax" | ||
14181 | #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a)) | ||
14182 | |||
14183 | /* | ||
14184 | * printf in libc on some platforms (eg old Tru64) does not understand %lld so | ||
14185 | * we do this the hard way. | ||
14186 | */ | ||
14187 | static int | ||
14188 | fprint_ll(FILE *f, long long n) | ||
14189 | { | ||
14190 | unsigned int i; | ||
14191 | int l[sizeof(long long) * 8]; | ||
14192 | |||
14193 | if (n < 0) | ||
14194 | if (fprintf(f, "-") < 0) | ||
14195 | return -1; | ||
14196 | for (i = 0; n != 0; i++) { | ||
14197 | l[i] = my_abs(n % 10); | ||
14198 | n /= 10; | ||
14199 | } | ||
14200 | do { | ||
14201 | if (fprintf(f, "%d", l[--i]) < 0) | ||
14202 | return -1; | ||
14203 | } while (i != 0); | ||
14204 | if (fprintf(f, " ") < 0) | ||
14205 | return -1; | ||
14206 | return 0; | ||
14207 | } | ||
14208 | |||
14209 | int | ||
14210 | main () | ||
14211 | { | ||
14212 | |||
14213 | FILE *f; | ||
14214 | long long i, llmin, llmax = 0; | ||
14215 | |||
14216 | if((f = fopen(DATA,"w")) == NULL) | ||
14217 | exit(1); | ||
14218 | |||
14219 | #if defined(LLONG_MIN) && defined(LLONG_MAX) | ||
14220 | fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n"); | ||
14221 | llmin = LLONG_MIN; | ||
14222 | llmax = LLONG_MAX; | ||
14223 | #else | ||
14224 | fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n"); | ||
14225 | /* This will work on one's complement and two's complement */ | ||
14226 | for (i = 1; i > llmax; i <<= 1, i++) | ||
14227 | llmax = i; | ||
14228 | llmin = llmax + 1LL; /* wrap */ | ||
14229 | #endif | ||
14230 | |||
14231 | /* Sanity check */ | ||
14232 | if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax | ||
14233 | || llmax - 1 > llmax || llmin == llmax || llmin == 0 | ||
14234 | || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) { | ||
14235 | fprintf(f, "unknown unknown\n"); | ||
14236 | exit(2); | ||
14237 | } | ||
14238 | |||
14239 | if (fprint_ll(f, llmin) < 0) | ||
14240 | exit(3); | ||
14241 | if (fprint_ll(f, llmax) < 0) | ||
14242 | exit(4); | ||
14243 | if (fclose(f) < 0) | ||
14244 | exit(5); | ||
14245 | exit(0); | ||
14246 | |||
14247 | ; | ||
14248 | return 0; | ||
14249 | } | ||
14250 | _ACEOF | ||
14251 | if ac_fn_c_try_run "$LINENO"; then : | ||
14252 | |||
14253 | llong_min=`$AWK '{print $1}' conftest.llminmax` | ||
14254 | llong_max=`$AWK '{print $2}' conftest.llminmax` | ||
14255 | |||
14256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5 | ||
14257 | $as_echo "$llong_max" >&6; } | ||
14258 | |||
14259 | cat >>confdefs.h <<_ACEOF | ||
14260 | #define LLONG_MAX ${llong_max}LL | ||
14261 | _ACEOF | ||
14262 | |||
14263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5 | ||
14264 | $as_echo_n "checking for min value of long long... " >&6; } | ||
14265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5 | ||
14266 | $as_echo "$llong_min" >&6; } | ||
14267 | |||
14268 | cat >>confdefs.h <<_ACEOF | ||
14269 | #define LLONG_MIN ${llong_min}LL | ||
14270 | _ACEOF | ||
14271 | |||
14272 | |||
14273 | else | ||
14274 | |||
14275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
14276 | $as_echo "not found" >&6; } | ||
14277 | |||
14278 | fi | ||
14279 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
14280 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
14281 | fi | ||
14282 | |||
14283 | fi | ||
14284 | |||
14285 | |||
14286 | # More checks for data types | ||
14287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5 | ||
14288 | $as_echo_n "checking for u_int type... " >&6; } | ||
14289 | if ${ac_cv_have_u_int+:} false; then : | ||
14290 | $as_echo_n "(cached) " >&6 | ||
14291 | else | ||
14292 | |||
14293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14294 | /* end confdefs.h. */ | ||
14295 | #include <sys/types.h> | ||
14296 | int | ||
14297 | main () | ||
14298 | { | ||
14299 | u_int a; a = 1; | ||
14300 | ; | ||
14301 | return 0; | ||
14302 | } | ||
14303 | _ACEOF | ||
14304 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14305 | ac_cv_have_u_int="yes" | ||
14306 | else | ||
14307 | ac_cv_have_u_int="no" | ||
14308 | |||
14309 | fi | ||
14310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14311 | |||
14312 | fi | ||
14313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5 | ||
14314 | $as_echo "$ac_cv_have_u_int" >&6; } | ||
14315 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
14316 | |||
14317 | $as_echo "#define HAVE_U_INT 1" >>confdefs.h | ||
14318 | |||
14319 | have_u_int=1 | ||
14320 | fi | ||
14321 | |||
14322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5 | ||
14323 | $as_echo_n "checking for intXX_t types... " >&6; } | ||
14324 | if ${ac_cv_have_intxx_t+:} false; then : | ||
14325 | $as_echo_n "(cached) " >&6 | ||
14326 | else | ||
14327 | |||
14328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14329 | /* end confdefs.h. */ | ||
14330 | #include <sys/types.h> | ||
14331 | int | ||
14332 | main () | ||
14333 | { | ||
14334 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
14335 | ; | ||
14336 | return 0; | ||
14337 | } | ||
14338 | _ACEOF | ||
14339 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14340 | ac_cv_have_intxx_t="yes" | ||
14341 | else | ||
14342 | ac_cv_have_intxx_t="no" | ||
14343 | |||
14344 | fi | ||
14345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14346 | |||
14347 | fi | ||
14348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5 | ||
14349 | $as_echo "$ac_cv_have_intxx_t" >&6; } | ||
14350 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
14351 | |||
14352 | $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h | ||
14353 | |||
14354 | have_intxx_t=1 | ||
14355 | fi | ||
14356 | |||
14357 | if (test -z "$have_intxx_t" && \ | ||
14358 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
14359 | then | ||
14360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5 | ||
14361 | $as_echo_n "checking for intXX_t types in stdint.h... " >&6; } | ||
14362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14363 | /* end confdefs.h. */ | ||
14364 | #include <stdint.h> | ||
14365 | int | ||
14366 | main () | ||
14367 | { | ||
14368 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
14369 | ; | ||
14370 | return 0; | ||
14371 | } | ||
14372 | _ACEOF | ||
14373 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14374 | |||
14375 | $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h | ||
14376 | |||
14377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14378 | $as_echo "yes" >&6; } | ||
14379 | |||
14380 | else | ||
14381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14382 | $as_echo "no" >&6; } | ||
14383 | |||
14384 | fi | ||
14385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14386 | fi | ||
14387 | |||
14388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5 | ||
14389 | $as_echo_n "checking for int64_t type... " >&6; } | ||
14390 | if ${ac_cv_have_int64_t+:} false; then : | ||
14391 | $as_echo_n "(cached) " >&6 | ||
14392 | else | ||
14393 | |||
14394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14395 | /* end confdefs.h. */ | ||
14396 | |||
14397 | #include <sys/types.h> | ||
14398 | #ifdef HAVE_STDINT_H | ||
14399 | # include <stdint.h> | ||
14400 | #endif | ||
14401 | #include <sys/socket.h> | ||
14402 | #ifdef HAVE_SYS_BITYPES_H | ||
14403 | # include <sys/bitypes.h> | ||
14404 | #endif | ||
14405 | |||
14406 | int | ||
14407 | main () | ||
14408 | { | ||
14409 | |||
14410 | int64_t a; a = 1; | ||
14411 | |||
14412 | ; | ||
14413 | return 0; | ||
14414 | } | ||
14415 | _ACEOF | ||
14416 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14417 | ac_cv_have_int64_t="yes" | ||
14418 | else | ||
14419 | ac_cv_have_int64_t="no" | ||
14420 | |||
14421 | fi | ||
14422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14423 | |||
14424 | fi | ||
14425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5 | ||
14426 | $as_echo "$ac_cv_have_int64_t" >&6; } | ||
14427 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
14428 | |||
14429 | $as_echo "#define HAVE_INT64_T 1" >>confdefs.h | ||
14430 | |||
14431 | fi | ||
14432 | |||
14433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5 | ||
14434 | $as_echo_n "checking for u_intXX_t types... " >&6; } | ||
14435 | if ${ac_cv_have_u_intxx_t+:} false; then : | ||
14436 | $as_echo_n "(cached) " >&6 | ||
14437 | else | ||
14438 | |||
14439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14440 | /* end confdefs.h. */ | ||
14441 | #include <sys/types.h> | ||
14442 | int | ||
14443 | main () | ||
14444 | { | ||
14445 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
14446 | ; | ||
14447 | return 0; | ||
14448 | } | ||
14449 | _ACEOF | ||
14450 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14451 | ac_cv_have_u_intxx_t="yes" | ||
14452 | else | ||
14453 | ac_cv_have_u_intxx_t="no" | ||
14454 | |||
14455 | fi | ||
14456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14457 | |||
14458 | fi | ||
14459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5 | ||
14460 | $as_echo "$ac_cv_have_u_intxx_t" >&6; } | ||
14461 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
14462 | |||
14463 | $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h | ||
14464 | |||
14465 | have_u_intxx_t=1 | ||
14466 | fi | ||
14467 | |||
14468 | if test -z "$have_u_intxx_t" ; then | ||
14469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5 | ||
14470 | $as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; } | ||
14471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14472 | /* end confdefs.h. */ | ||
14473 | #include <sys/socket.h> | ||
14474 | int | ||
14475 | main () | ||
14476 | { | ||
14477 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
14478 | ; | ||
14479 | return 0; | ||
14480 | } | ||
14481 | _ACEOF | ||
14482 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14483 | |||
14484 | $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h | ||
14485 | |||
14486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14487 | $as_echo "yes" >&6; } | ||
14488 | |||
14489 | else | ||
14490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14491 | $as_echo "no" >&6; } | ||
14492 | |||
14493 | fi | ||
14494 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14495 | fi | ||
14496 | |||
14497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5 | ||
14498 | $as_echo_n "checking for u_int64_t types... " >&6; } | ||
14499 | if ${ac_cv_have_u_int64_t+:} false; then : | ||
14500 | $as_echo_n "(cached) " >&6 | ||
14501 | else | ||
14502 | |||
14503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14504 | /* end confdefs.h. */ | ||
14505 | #include <sys/types.h> | ||
14506 | int | ||
14507 | main () | ||
14508 | { | ||
14509 | u_int64_t a; a = 1; | ||
14510 | ; | ||
14511 | return 0; | ||
14512 | } | ||
14513 | _ACEOF | ||
14514 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14515 | ac_cv_have_u_int64_t="yes" | ||
14516 | else | ||
14517 | ac_cv_have_u_int64_t="no" | ||
14518 | |||
14519 | fi | ||
14520 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14521 | |||
14522 | fi | ||
14523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5 | ||
14524 | $as_echo "$ac_cv_have_u_int64_t" >&6; } | ||
14525 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
14526 | |||
14527 | $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h | ||
14528 | |||
14529 | have_u_int64_t=1 | ||
14530 | fi | ||
14531 | |||
14532 | if (test -z "$have_u_int64_t" && \ | ||
14533 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
14534 | then | ||
14535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
14536 | $as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; } | ||
14537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14538 | /* end confdefs.h. */ | ||
14539 | #include <sys/bitypes.h> | ||
14540 | int | ||
14541 | main () | ||
14542 | { | ||
14543 | u_int64_t a; a = 1 | ||
14544 | ; | ||
14545 | return 0; | ||
14546 | } | ||
14547 | _ACEOF | ||
14548 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14549 | |||
14550 | $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h | ||
14551 | |||
14552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14553 | $as_echo "yes" >&6; } | ||
14554 | |||
14555 | else | ||
14556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14557 | $as_echo "no" >&6; } | ||
14558 | |||
14559 | fi | ||
14560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14561 | fi | ||
14562 | |||
14563 | if test -z "$have_u_intxx_t" ; then | ||
14564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5 | ||
14565 | $as_echo_n "checking for uintXX_t types... " >&6; } | ||
14566 | if ${ac_cv_have_uintxx_t+:} false; then : | ||
14567 | $as_echo_n "(cached) " >&6 | ||
14568 | else | ||
14569 | |||
14570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14571 | /* end confdefs.h. */ | ||
14572 | |||
14573 | #include <sys/types.h> | ||
14574 | |||
14575 | int | ||
14576 | main () | ||
14577 | { | ||
14578 | |||
14579 | uint8_t a; | ||
14580 | uint16_t b; | ||
14581 | uint32_t c; | ||
14582 | a = b = c = 1; | ||
14583 | |||
14584 | ; | ||
14585 | return 0; | ||
14586 | } | ||
14587 | _ACEOF | ||
14588 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14589 | ac_cv_have_uintxx_t="yes" | ||
14590 | else | ||
14591 | ac_cv_have_uintxx_t="no" | ||
14592 | |||
14593 | fi | ||
14594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14595 | |||
14596 | fi | ||
14597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5 | ||
14598 | $as_echo "$ac_cv_have_uintxx_t" >&6; } | ||
14599 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
14600 | |||
14601 | $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h | ||
14602 | |||
14603 | fi | ||
14604 | fi | ||
14605 | |||
14606 | if (test -z "$have_uintxx_t" && \ | ||
14607 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
14608 | then | ||
14609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5 | ||
14610 | $as_echo_n "checking for uintXX_t types in stdint.h... " >&6; } | ||
14611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14612 | /* end confdefs.h. */ | ||
14613 | #include <stdint.h> | ||
14614 | int | ||
14615 | main () | ||
14616 | { | ||
14617 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
14618 | ; | ||
14619 | return 0; | ||
14620 | } | ||
14621 | _ACEOF | ||
14622 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14623 | |||
14624 | $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h | ||
14625 | |||
14626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14627 | $as_echo "yes" >&6; } | ||
14628 | |||
14629 | else | ||
14630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14631 | $as_echo "no" >&6; } | ||
14632 | |||
14633 | fi | ||
14634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14635 | fi | ||
14636 | |||
14637 | if (test -z "$have_uintxx_t" && \ | ||
14638 | test "x$ac_cv_header_inttypes_h" = "xyes") | ||
14639 | then | ||
14640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in inttypes.h" >&5 | ||
14641 | $as_echo_n "checking for uintXX_t types in inttypes.h... " >&6; } | ||
14642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14643 | /* end confdefs.h. */ | ||
14644 | #include <inttypes.h> | ||
14645 | int | ||
14646 | main () | ||
14647 | { | ||
14648 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
14649 | ; | ||
14650 | return 0; | ||
14651 | } | ||
14652 | _ACEOF | ||
14653 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14654 | |||
14655 | $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h | ||
14656 | |||
14657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14658 | $as_echo "yes" >&6; } | ||
14659 | |||
14660 | else | ||
14661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14662 | $as_echo "no" >&6; } | ||
14663 | |||
14664 | fi | ||
14665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14666 | fi | ||
14667 | |||
14668 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
14669 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
14670 | then | ||
14671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
14672 | $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; } | ||
14673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14674 | /* end confdefs.h. */ | ||
14675 | |||
14676 | #include <sys/bitypes.h> | ||
14677 | |||
14678 | int | ||
14679 | main () | ||
14680 | { | ||
14681 | |||
14682 | int8_t a; int16_t b; int32_t c; | ||
14683 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
14684 | a = b = c = e = f = g = 1; | ||
14685 | |||
14686 | ; | ||
14687 | return 0; | ||
14688 | } | ||
14689 | _ACEOF | ||
14690 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14691 | |||
14692 | $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h | ||
14693 | |||
14694 | $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h | ||
14695 | |||
14696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14697 | $as_echo "yes" >&6; } | ||
14698 | |||
14699 | else | ||
14700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14701 | $as_echo "no" >&6; } | ||
14702 | |||
14703 | fi | ||
14704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14705 | fi | ||
14706 | |||
14707 | |||
14708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5 | ||
14709 | $as_echo_n "checking for u_char... " >&6; } | ||
14710 | if ${ac_cv_have_u_char+:} false; then : | ||
14711 | $as_echo_n "(cached) " >&6 | ||
14712 | else | ||
14713 | |||
14714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14715 | /* end confdefs.h. */ | ||
14716 | #include <sys/types.h> | ||
14717 | int | ||
14718 | main () | ||
14719 | { | ||
14720 | u_char foo; foo = 125; | ||
14721 | ; | ||
14722 | return 0; | ||
14723 | } | ||
14724 | _ACEOF | ||
14725 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14726 | ac_cv_have_u_char="yes" | ||
14727 | else | ||
14728 | ac_cv_have_u_char="no" | ||
14729 | |||
14730 | fi | ||
14731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14732 | |||
14733 | fi | ||
14734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5 | ||
14735 | $as_echo "$ac_cv_have_u_char" >&6; } | ||
14736 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
14737 | |||
14738 | $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h | ||
14739 | |||
14740 | fi | ||
14741 | |||
14742 | ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" " | ||
14743 | #include <sys/types.h> | ||
14744 | #include <stdint.h> | ||
14745 | |||
14746 | " | ||
14747 | if test "x$ac_cv_type_intmax_t" = xyes; then : | ||
14748 | |||
14749 | cat >>confdefs.h <<_ACEOF | ||
14750 | #define HAVE_INTMAX_T 1 | ||
14751 | _ACEOF | ||
14752 | |||
14753 | |||
14754 | fi | ||
14755 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" " | ||
14756 | #include <sys/types.h> | ||
14757 | #include <stdint.h> | ||
14758 | |||
14759 | " | ||
14760 | if test "x$ac_cv_type_uintmax_t" = xyes; then : | ||
14761 | |||
14762 | cat >>confdefs.h <<_ACEOF | ||
14763 | #define HAVE_UINTMAX_T 1 | ||
14764 | _ACEOF | ||
14765 | |||
14766 | |||
14767 | fi | ||
14768 | |||
14769 | |||
14770 | |||
14771 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> | ||
14772 | #include <sys/socket.h> | ||
14773 | " | ||
14774 | if test "x$ac_cv_type_socklen_t" = xyes; then : | ||
14775 | |||
14776 | else | ||
14777 | |||
14778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 | ||
14779 | $as_echo_n "checking for socklen_t equivalent... " >&6; } | ||
14780 | if ${curl_cv_socklen_t_equiv+:} false; then : | ||
14781 | $as_echo_n "(cached) " >&6 | ||
14782 | else | ||
14783 | |||
14784 | # Systems have either "struct sockaddr *" or | ||
14785 | # "void *" as the second argument to getpeername | ||
14786 | curl_cv_socklen_t_equiv= | ||
14787 | for arg2 in "struct sockaddr" void; do | ||
14788 | for t in int size_t unsigned long "unsigned long"; do | ||
14789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14790 | /* end confdefs.h. */ | ||
14791 | |||
14792 | #include <sys/types.h> | ||
14793 | #include <sys/socket.h> | ||
14794 | |||
14795 | int getpeername (int, $arg2 *, $t *); | ||
14796 | |||
14797 | int | ||
14798 | main () | ||
14799 | { | ||
14800 | |||
14801 | $t len; | ||
14802 | getpeername(0,0,&len); | ||
14803 | |||
14804 | ; | ||
14805 | return 0; | ||
14806 | } | ||
14807 | _ACEOF | ||
14808 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14809 | |||
14810 | curl_cv_socklen_t_equiv="$t" | ||
14811 | break | ||
14812 | |||
14813 | fi | ||
14814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14815 | done | ||
14816 | done | ||
14817 | |||
14818 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
14819 | as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5 | ||
14820 | fi | ||
14821 | |||
14822 | fi | ||
14823 | |||
14824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5 | ||
14825 | $as_echo "$curl_cv_socklen_t_equiv" >&6; } | ||
14826 | |||
14827 | cat >>confdefs.h <<_ACEOF | ||
14828 | #define socklen_t $curl_cv_socklen_t_equiv | ||
14829 | _ACEOF | ||
14830 | |||
14831 | fi | ||
14832 | |||
14833 | |||
14834 | |||
14835 | ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h> | ||
14836 | " | ||
14837 | if test "x$ac_cv_type_sig_atomic_t" = xyes; then : | ||
14838 | |||
14839 | cat >>confdefs.h <<_ACEOF | ||
14840 | #define HAVE_SIG_ATOMIC_T 1 | ||
14841 | _ACEOF | ||
14842 | |||
14843 | |||
14844 | fi | ||
14845 | |||
14846 | ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" " | ||
14847 | #include <sys/types.h> | ||
14848 | #ifdef HAVE_SYS_BITYPES_H | ||
14849 | #include <sys/bitypes.h> | ||
14850 | #endif | ||
14851 | #ifdef HAVE_SYS_STATFS_H | ||
14852 | #include <sys/statfs.h> | ||
14853 | #endif | ||
14854 | #ifdef HAVE_SYS_STATVFS_H | ||
14855 | #include <sys/statvfs.h> | ||
14856 | #endif | ||
14857 | |||
14858 | " | ||
14859 | if test "x$ac_cv_type_fsblkcnt_t" = xyes; then : | ||
14860 | |||
14861 | cat >>confdefs.h <<_ACEOF | ||
14862 | #define HAVE_FSBLKCNT_T 1 | ||
14863 | _ACEOF | ||
14864 | |||
14865 | |||
14866 | fi | ||
14867 | ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" " | ||
14868 | #include <sys/types.h> | ||
14869 | #ifdef HAVE_SYS_BITYPES_H | ||
14870 | #include <sys/bitypes.h> | ||
14871 | #endif | ||
14872 | #ifdef HAVE_SYS_STATFS_H | ||
14873 | #include <sys/statfs.h> | ||
14874 | #endif | ||
14875 | #ifdef HAVE_SYS_STATVFS_H | ||
14876 | #include <sys/statvfs.h> | ||
14877 | #endif | ||
14878 | |||
14879 | " | ||
14880 | if test "x$ac_cv_type_fsfilcnt_t" = xyes; then : | ||
14881 | |||
14882 | cat >>confdefs.h <<_ACEOF | ||
14883 | #define HAVE_FSFILCNT_T 1 | ||
14884 | _ACEOF | ||
14885 | |||
14886 | |||
14887 | fi | ||
14888 | |||
14889 | |||
14890 | ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h> | ||
14891 | #include <netinet/in.h> | ||
14892 | " | ||
14893 | if test "x$ac_cv_type_in_addr_t" = xyes; then : | ||
14894 | |||
14895 | cat >>confdefs.h <<_ACEOF | ||
14896 | #define HAVE_IN_ADDR_T 1 | ||
14897 | _ACEOF | ||
14898 | |||
14899 | |||
14900 | fi | ||
14901 | ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h> | ||
14902 | #include <netinet/in.h> | ||
14903 | " | ||
14904 | if test "x$ac_cv_type_in_port_t" = xyes; then : | ||
14905 | |||
14906 | cat >>confdefs.h <<_ACEOF | ||
14907 | #define HAVE_IN_PORT_T 1 | ||
14908 | _ACEOF | ||
14909 | |||
14910 | |||
14911 | fi | ||
14912 | |||
14913 | |||
14914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5 | ||
14915 | $as_echo_n "checking for size_t... " >&6; } | ||
14916 | if ${ac_cv_have_size_t+:} false; then : | ||
14917 | $as_echo_n "(cached) " >&6 | ||
14918 | else | ||
14919 | |||
14920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14921 | /* end confdefs.h. */ | ||
14922 | #include <sys/types.h> | ||
14923 | int | ||
14924 | main () | ||
14925 | { | ||
14926 | size_t foo; foo = 1235; | ||
14927 | ; | ||
14928 | return 0; | ||
14929 | } | ||
14930 | _ACEOF | ||
14931 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14932 | ac_cv_have_size_t="yes" | ||
14933 | else | ||
14934 | ac_cv_have_size_t="no" | ||
14935 | |||
14936 | fi | ||
14937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14938 | |||
14939 | fi | ||
14940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5 | ||
14941 | $as_echo "$ac_cv_have_size_t" >&6; } | ||
14942 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
14943 | |||
14944 | $as_echo "#define HAVE_SIZE_T 1" >>confdefs.h | ||
14945 | |||
14946 | fi | ||
14947 | |||
14948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 | ||
14949 | $as_echo_n "checking for ssize_t... " >&6; } | ||
14950 | if ${ac_cv_have_ssize_t+:} false; then : | ||
14951 | $as_echo_n "(cached) " >&6 | ||
14952 | else | ||
14953 | |||
14954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14955 | /* end confdefs.h. */ | ||
14956 | #include <sys/types.h> | ||
14957 | int | ||
14958 | main () | ||
14959 | { | ||
14960 | ssize_t foo; foo = 1235; | ||
14961 | ; | ||
14962 | return 0; | ||
14963 | } | ||
14964 | _ACEOF | ||
14965 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14966 | ac_cv_have_ssize_t="yes" | ||
14967 | else | ||
14968 | ac_cv_have_ssize_t="no" | ||
14969 | |||
14970 | fi | ||
14971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14972 | |||
14973 | fi | ||
14974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5 | ||
14975 | $as_echo "$ac_cv_have_ssize_t" >&6; } | ||
14976 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
14977 | |||
14978 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h | ||
14979 | |||
14980 | fi | ||
14981 | |||
14982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5 | ||
14983 | $as_echo_n "checking for clock_t... " >&6; } | ||
14984 | if ${ac_cv_have_clock_t+:} false; then : | ||
14985 | $as_echo_n "(cached) " >&6 | ||
14986 | else | ||
14987 | |||
14988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14989 | /* end confdefs.h. */ | ||
14990 | #include <time.h> | ||
14991 | int | ||
14992 | main () | ||
14993 | { | ||
14994 | clock_t foo; foo = 1235; | ||
14995 | ; | ||
14996 | return 0; | ||
14997 | } | ||
14998 | _ACEOF | ||
14999 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15000 | ac_cv_have_clock_t="yes" | ||
15001 | else | ||
15002 | ac_cv_have_clock_t="no" | ||
15003 | |||
15004 | fi | ||
15005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15006 | |||
15007 | fi | ||
15008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5 | ||
15009 | $as_echo "$ac_cv_have_clock_t" >&6; } | ||
15010 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
15011 | |||
15012 | $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h | ||
15013 | |||
15014 | fi | ||
15015 | |||
15016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5 | ||
15017 | $as_echo_n "checking for sa_family_t... " >&6; } | ||
15018 | if ${ac_cv_have_sa_family_t+:} false; then : | ||
15019 | $as_echo_n "(cached) " >&6 | ||
15020 | else | ||
15021 | |||
15022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15023 | /* end confdefs.h. */ | ||
15024 | |||
15025 | #include <sys/types.h> | ||
15026 | #include <sys/socket.h> | ||
15027 | |||
15028 | int | ||
15029 | main () | ||
15030 | { | ||
15031 | sa_family_t foo; foo = 1235; | ||
15032 | ; | ||
15033 | return 0; | ||
15034 | } | ||
15035 | _ACEOF | ||
15036 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15037 | ac_cv_have_sa_family_t="yes" | ||
15038 | else | ||
15039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15040 | /* end confdefs.h. */ | ||
15041 | |||
15042 | #include <sys/types.h> | ||
15043 | #include <sys/socket.h> | ||
15044 | #include <netinet/in.h> | ||
15045 | |||
15046 | int | ||
15047 | main () | ||
15048 | { | ||
15049 | sa_family_t foo; foo = 1235; | ||
15050 | ; | ||
15051 | return 0; | ||
15052 | } | ||
15053 | _ACEOF | ||
15054 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15055 | ac_cv_have_sa_family_t="yes" | ||
15056 | else | ||
15057 | ac_cv_have_sa_family_t="no" | ||
15058 | |||
15059 | fi | ||
15060 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15061 | |||
15062 | fi | ||
15063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15064 | |||
15065 | fi | ||
15066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5 | ||
15067 | $as_echo "$ac_cv_have_sa_family_t" >&6; } | ||
15068 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
15069 | |||
15070 | $as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h | ||
15071 | |||
15072 | fi | ||
15073 | |||
15074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5 | ||
15075 | $as_echo_n "checking for pid_t... " >&6; } | ||
15076 | if ${ac_cv_have_pid_t+:} false; then : | ||
15077 | $as_echo_n "(cached) " >&6 | ||
15078 | else | ||
15079 | |||
15080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15081 | /* end confdefs.h. */ | ||
15082 | #include <sys/types.h> | ||
15083 | int | ||
15084 | main () | ||
15085 | { | ||
15086 | pid_t foo; foo = 1235; | ||
15087 | ; | ||
15088 | return 0; | ||
15089 | } | ||
15090 | _ACEOF | ||
15091 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15092 | ac_cv_have_pid_t="yes" | ||
15093 | else | ||
15094 | ac_cv_have_pid_t="no" | ||
15095 | |||
15096 | fi | ||
15097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15098 | |||
15099 | fi | ||
15100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5 | ||
15101 | $as_echo "$ac_cv_have_pid_t" >&6; } | ||
15102 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
15103 | |||
15104 | $as_echo "#define HAVE_PID_T 1" >>confdefs.h | ||
15105 | |||
15106 | fi | ||
15107 | |||
15108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5 | ||
15109 | $as_echo_n "checking for mode_t... " >&6; } | ||
15110 | if ${ac_cv_have_mode_t+:} false; then : | ||
15111 | $as_echo_n "(cached) " >&6 | ||
15112 | else | ||
15113 | |||
15114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15115 | /* end confdefs.h. */ | ||
15116 | #include <sys/types.h> | ||
15117 | int | ||
15118 | main () | ||
15119 | { | ||
15120 | mode_t foo; foo = 1235; | ||
15121 | ; | ||
15122 | return 0; | ||
15123 | } | ||
15124 | _ACEOF | ||
15125 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15126 | ac_cv_have_mode_t="yes" | ||
15127 | else | ||
15128 | ac_cv_have_mode_t="no" | ||
15129 | |||
15130 | fi | ||
15131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15132 | |||
15133 | fi | ||
15134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5 | ||
15135 | $as_echo "$ac_cv_have_mode_t" >&6; } | ||
15136 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
15137 | |||
15138 | $as_echo "#define HAVE_MODE_T 1" >>confdefs.h | ||
15139 | |||
15140 | fi | ||
15141 | |||
15142 | |||
15143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 | ||
15144 | $as_echo_n "checking for struct sockaddr_storage... " >&6; } | ||
15145 | if ${ac_cv_have_struct_sockaddr_storage+:} false; then : | ||
15146 | $as_echo_n "(cached) " >&6 | ||
15147 | else | ||
15148 | |||
15149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15150 | /* end confdefs.h. */ | ||
15151 | |||
15152 | #include <sys/types.h> | ||
15153 | #include <sys/socket.h> | ||
15154 | |||
15155 | int | ||
15156 | main () | ||
15157 | { | ||
15158 | struct sockaddr_storage s; | ||
15159 | ; | ||
15160 | return 0; | ||
15161 | } | ||
15162 | _ACEOF | ||
15163 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15164 | ac_cv_have_struct_sockaddr_storage="yes" | ||
15165 | else | ||
15166 | ac_cv_have_struct_sockaddr_storage="no" | ||
15167 | |||
15168 | fi | ||
15169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15170 | |||
15171 | fi | ||
15172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
15173 | $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; } | ||
15174 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
15175 | |||
15176 | $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h | ||
15177 | |||
15178 | fi | ||
15179 | |||
15180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5 | ||
15181 | $as_echo_n "checking for struct sockaddr_in6... " >&6; } | ||
15182 | if ${ac_cv_have_struct_sockaddr_in6+:} false; then : | ||
15183 | $as_echo_n "(cached) " >&6 | ||
15184 | else | ||
15185 | |||
15186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15187 | /* end confdefs.h. */ | ||
15188 | |||
15189 | #include <sys/types.h> | ||
15190 | #include <netinet/in.h> | ||
15191 | |||
15192 | int | ||
15193 | main () | ||
15194 | { | ||
15195 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
15196 | ; | ||
15197 | return 0; | ||
15198 | } | ||
15199 | _ACEOF | ||
15200 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15201 | ac_cv_have_struct_sockaddr_in6="yes" | ||
15202 | else | ||
15203 | ac_cv_have_struct_sockaddr_in6="no" | ||
15204 | |||
15205 | fi | ||
15206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15207 | |||
15208 | fi | ||
15209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
15210 | $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; } | ||
15211 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
15212 | |||
15213 | $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h | ||
15214 | |||
15215 | fi | ||
15216 | |||
15217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5 | ||
15218 | $as_echo_n "checking for struct in6_addr... " >&6; } | ||
15219 | if ${ac_cv_have_struct_in6_addr+:} false; then : | ||
15220 | $as_echo_n "(cached) " >&6 | ||
15221 | else | ||
15222 | |||
15223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15224 | /* end confdefs.h. */ | ||
15225 | |||
15226 | #include <sys/types.h> | ||
15227 | #include <netinet/in.h> | ||
15228 | |||
15229 | int | ||
15230 | main () | ||
15231 | { | ||
15232 | struct in6_addr s; s.s6_addr[0] = 0; | ||
15233 | ; | ||
15234 | return 0; | ||
15235 | } | ||
15236 | _ACEOF | ||
15237 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15238 | ac_cv_have_struct_in6_addr="yes" | ||
15239 | else | ||
15240 | ac_cv_have_struct_in6_addr="no" | ||
15241 | |||
15242 | fi | ||
15243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15244 | |||
15245 | fi | ||
15246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5 | ||
15247 | $as_echo "$ac_cv_have_struct_in6_addr" >&6; } | ||
15248 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
15249 | |||
15250 | $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h | ||
15251 | |||
15252 | |||
15253 | ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" " | ||
15254 | #ifdef HAVE_SYS_TYPES_H | ||
15255 | #include <sys/types.h> | ||
15256 | #endif | ||
15257 | #include <netinet/in.h> | ||
15258 | |||
15259 | " | ||
15260 | if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then : | ||
15261 | |||
15262 | cat >>confdefs.h <<_ACEOF | ||
15263 | #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 | ||
15264 | _ACEOF | ||
15265 | |||
15266 | |||
15267 | fi | ||
15268 | |||
15269 | fi | ||
15270 | |||
15271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5 | ||
15272 | $as_echo_n "checking for struct addrinfo... " >&6; } | ||
15273 | if ${ac_cv_have_struct_addrinfo+:} false; then : | ||
15274 | $as_echo_n "(cached) " >&6 | ||
15275 | else | ||
15276 | |||
15277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15278 | /* end confdefs.h. */ | ||
15279 | |||
15280 | #include <sys/types.h> | ||
15281 | #include <sys/socket.h> | ||
15282 | #include <netdb.h> | ||
15283 | |||
15284 | int | ||
15285 | main () | ||
15286 | { | ||
15287 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
15288 | ; | ||
15289 | return 0; | ||
15290 | } | ||
15291 | _ACEOF | ||
15292 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15293 | ac_cv_have_struct_addrinfo="yes" | ||
15294 | else | ||
15295 | ac_cv_have_struct_addrinfo="no" | ||
15296 | |||
15297 | fi | ||
15298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15299 | |||
15300 | fi | ||
15301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5 | ||
15302 | $as_echo "$ac_cv_have_struct_addrinfo" >&6; } | ||
15303 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
15304 | |||
15305 | $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h | ||
15306 | |||
15307 | fi | ||
15308 | |||
15309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 | ||
15310 | $as_echo_n "checking for struct timeval... " >&6; } | ||
15311 | if ${ac_cv_have_struct_timeval+:} false; then : | ||
15312 | $as_echo_n "(cached) " >&6 | ||
15313 | else | ||
15314 | |||
15315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15316 | /* end confdefs.h. */ | ||
15317 | #include <sys/time.h> | ||
15318 | int | ||
15319 | main () | ||
15320 | { | ||
15321 | struct timeval tv; tv.tv_sec = 1; | ||
15322 | ; | ||
15323 | return 0; | ||
15324 | } | ||
15325 | _ACEOF | ||
15326 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15327 | ac_cv_have_struct_timeval="yes" | ||
15328 | else | ||
15329 | ac_cv_have_struct_timeval="no" | ||
15330 | |||
15331 | fi | ||
15332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15333 | |||
15334 | fi | ||
15335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5 | ||
15336 | $as_echo "$ac_cv_have_struct_timeval" >&6; } | ||
15337 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
15338 | |||
15339 | $as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h | ||
15340 | |||
15341 | have_struct_timeval=1 | ||
15342 | fi | ||
15343 | |||
15344 | ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default" | ||
15345 | if test "x$ac_cv_type_struct_timespec" = xyes; then : | ||
15346 | |||
15347 | cat >>confdefs.h <<_ACEOF | ||
15348 | #define HAVE_STRUCT_TIMESPEC 1 | ||
15349 | _ACEOF | ||
15350 | |||
15351 | |||
15352 | fi | ||
15353 | |||
15354 | |||
15355 | # We need int64_t or else certian parts of the compile will fail. | ||
15356 | if test "x$ac_cv_have_int64_t" = "xno" && \ | ||
15357 | test "x$ac_cv_sizeof_long_int" != "x8" && \ | ||
15358 | test "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
15359 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
15360 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
15361 | echo "" | ||
15362 | exit 1; | ||
15363 | else | ||
15364 | if test "$cross_compiling" = yes; then : | ||
15365 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
15366 | $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
15367 | |||
15368 | else | ||
15369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15370 | /* end confdefs.h. */ | ||
15371 | |||
15372 | #include <stdio.h> | ||
15373 | #include <string.h> | ||
15374 | #ifdef HAVE_SNPRINTF | ||
15375 | main() | ||
15376 | { | ||
15377 | char buf[50]; | ||
15378 | char expected_out[50]; | ||
15379 | int mazsize = 50 ; | ||
15380 | #if (SIZEOF_LONG_INT == 8) | ||
15381 | long int num = 0x7fffffffffffffff; | ||
15382 | #else | ||
15383 | long long num = 0x7fffffffffffffffll; | ||
15384 | #endif | ||
15385 | strcpy(expected_out, "9223372036854775807"); | ||
15386 | snprintf(buf, mazsize, "%lld", num); | ||
15387 | if(strcmp(buf, expected_out) != 0) | ||
15388 | exit(1); | ||
15389 | exit(0); | ||
15390 | } | ||
15391 | #else | ||
15392 | main() { exit(0); } | ||
15393 | #endif | ||
15394 | |||
15395 | _ACEOF | ||
15396 | if ac_fn_c_try_run "$LINENO"; then : | ||
15397 | true | ||
15398 | else | ||
15399 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h | ||
15400 | |||
15401 | fi | ||
15402 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
15403 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
15404 | fi | ||
15405 | |||
15406 | fi | ||
15407 | |||
15408 | |||
15409 | # look for field 'ut_host' in header 'utmp.h' | ||
15410 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
15411 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
15412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5 | ||
15413 | $as_echo_n "checking for ut_host field in utmp.h... " >&6; } | ||
15414 | if eval \${$ossh_varname+:} false; then : | ||
15415 | $as_echo_n "(cached) " >&6 | ||
15416 | else | ||
15417 | |||
15418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15419 | /* end confdefs.h. */ | ||
15420 | #include <utmp.h> | ||
15421 | |||
15422 | _ACEOF | ||
15423 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15424 | $EGREP "ut_host" >/dev/null 2>&1; then : | ||
15425 | eval "$ossh_varname=yes" | ||
15426 | else | ||
15427 | eval "$ossh_varname=no" | ||
15428 | fi | ||
15429 | rm -f conftest* | ||
15430 | |||
15431 | fi | ||
15432 | |||
15433 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15434 | if test -n "`echo $ossh_varname`"; then | ||
15435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15436 | $as_echo "$ossh_result" >&6; } | ||
15437 | if test "x$ossh_result" = "xyes"; then | ||
15438 | |||
15439 | $as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h | ||
15440 | |||
15441 | fi | ||
15442 | else | ||
15443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15444 | $as_echo "no" >&6; } | ||
15445 | fi | ||
15446 | |||
15447 | |||
15448 | # look for field 'ut_host' in header 'utmpx.h' | ||
15449 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
15450 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
15451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5 | ||
15452 | $as_echo_n "checking for ut_host field in utmpx.h... " >&6; } | ||
15453 | if eval \${$ossh_varname+:} false; then : | ||
15454 | $as_echo_n "(cached) " >&6 | ||
15455 | else | ||
15456 | |||
15457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15458 | /* end confdefs.h. */ | ||
15459 | #include <utmpx.h> | ||
15460 | |||
15461 | _ACEOF | ||
15462 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15463 | $EGREP "ut_host" >/dev/null 2>&1; then : | ||
15464 | eval "$ossh_varname=yes" | ||
15465 | else | ||
15466 | eval "$ossh_varname=no" | ||
15467 | fi | ||
15468 | rm -f conftest* | ||
15469 | |||
15470 | fi | ||
15471 | |||
15472 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15473 | if test -n "`echo $ossh_varname`"; then | ||
15474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15475 | $as_echo "$ossh_result" >&6; } | ||
15476 | if test "x$ossh_result" = "xyes"; then | ||
15477 | |||
15478 | $as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h | ||
15479 | |||
15480 | fi | ||
15481 | else | ||
15482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15483 | $as_echo "no" >&6; } | ||
15484 | fi | ||
15485 | |||
15486 | |||
15487 | # look for field 'syslen' in header 'utmpx.h' | ||
15488 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
15489 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
15490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5 | ||
15491 | $as_echo_n "checking for syslen field in utmpx.h... " >&6; } | ||
15492 | if eval \${$ossh_varname+:} false; then : | ||
15493 | $as_echo_n "(cached) " >&6 | ||
15494 | else | ||
15495 | |||
15496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15497 | /* end confdefs.h. */ | ||
15498 | #include <utmpx.h> | ||
15499 | |||
15500 | _ACEOF | ||
15501 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15502 | $EGREP "syslen" >/dev/null 2>&1; then : | ||
15503 | eval "$ossh_varname=yes" | ||
15504 | else | ||
15505 | eval "$ossh_varname=no" | ||
15506 | fi | ||
15507 | rm -f conftest* | ||
15508 | |||
15509 | fi | ||
15510 | |||
15511 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15512 | if test -n "`echo $ossh_varname`"; then | ||
15513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15514 | $as_echo "$ossh_result" >&6; } | ||
15515 | if test "x$ossh_result" = "xyes"; then | ||
15516 | |||
15517 | $as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h | ||
15518 | |||
15519 | fi | ||
15520 | else | ||
15521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15522 | $as_echo "no" >&6; } | ||
15523 | fi | ||
15524 | |||
15525 | |||
15526 | # look for field 'ut_pid' in header 'utmp.h' | ||
15527 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
15528 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
15529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5 | ||
15530 | $as_echo_n "checking for ut_pid field in utmp.h... " >&6; } | ||
15531 | if eval \${$ossh_varname+:} false; then : | ||
15532 | $as_echo_n "(cached) " >&6 | ||
15533 | else | ||
15534 | |||
15535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15536 | /* end confdefs.h. */ | ||
15537 | #include <utmp.h> | ||
15538 | |||
15539 | _ACEOF | ||
15540 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15541 | $EGREP "ut_pid" >/dev/null 2>&1; then : | ||
15542 | eval "$ossh_varname=yes" | ||
15543 | else | ||
15544 | eval "$ossh_varname=no" | ||
15545 | fi | ||
15546 | rm -f conftest* | ||
15547 | |||
15548 | fi | ||
15549 | |||
15550 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15551 | if test -n "`echo $ossh_varname`"; then | ||
15552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15553 | $as_echo "$ossh_result" >&6; } | ||
15554 | if test "x$ossh_result" = "xyes"; then | ||
15555 | |||
15556 | $as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h | ||
15557 | |||
15558 | fi | ||
15559 | else | ||
15560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15561 | $as_echo "no" >&6; } | ||
15562 | fi | ||
15563 | |||
15564 | |||
15565 | # look for field 'ut_type' in header 'utmp.h' | ||
15566 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
15567 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
15568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5 | ||
15569 | $as_echo_n "checking for ut_type field in utmp.h... " >&6; } | ||
15570 | if eval \${$ossh_varname+:} false; then : | ||
15571 | $as_echo_n "(cached) " >&6 | ||
15572 | else | ||
15573 | |||
15574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15575 | /* end confdefs.h. */ | ||
15576 | #include <utmp.h> | ||
15577 | |||
15578 | _ACEOF | ||
15579 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15580 | $EGREP "ut_type" >/dev/null 2>&1; then : | ||
15581 | eval "$ossh_varname=yes" | ||
15582 | else | ||
15583 | eval "$ossh_varname=no" | ||
15584 | fi | ||
15585 | rm -f conftest* | ||
15586 | |||
15587 | fi | ||
15588 | |||
15589 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15590 | if test -n "`echo $ossh_varname`"; then | ||
15591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15592 | $as_echo "$ossh_result" >&6; } | ||
15593 | if test "x$ossh_result" = "xyes"; then | ||
15594 | |||
15595 | $as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h | ||
15596 | |||
15597 | fi | ||
15598 | else | ||
15599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15600 | $as_echo "no" >&6; } | ||
15601 | fi | ||
15602 | |||
15603 | |||
15604 | # look for field 'ut_type' in header 'utmpx.h' | ||
15605 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
15606 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
15607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5 | ||
15608 | $as_echo_n "checking for ut_type field in utmpx.h... " >&6; } | ||
15609 | if eval \${$ossh_varname+:} false; then : | ||
15610 | $as_echo_n "(cached) " >&6 | ||
15611 | else | ||
15612 | |||
15613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15614 | /* end confdefs.h. */ | ||
15615 | #include <utmpx.h> | ||
15616 | |||
15617 | _ACEOF | ||
15618 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15619 | $EGREP "ut_type" >/dev/null 2>&1; then : | ||
15620 | eval "$ossh_varname=yes" | ||
15621 | else | ||
15622 | eval "$ossh_varname=no" | ||
15623 | fi | ||
15624 | rm -f conftest* | ||
15625 | |||
15626 | fi | ||
15627 | |||
15628 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15629 | if test -n "`echo $ossh_varname`"; then | ||
15630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15631 | $as_echo "$ossh_result" >&6; } | ||
15632 | if test "x$ossh_result" = "xyes"; then | ||
15633 | |||
15634 | $as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h | ||
15635 | |||
15636 | fi | ||
15637 | else | ||
15638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15639 | $as_echo "no" >&6; } | ||
15640 | fi | ||
15641 | |||
15642 | |||
15643 | # look for field 'ut_tv' in header 'utmp.h' | ||
15644 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
15645 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
15646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5 | ||
15647 | $as_echo_n "checking for ut_tv field in utmp.h... " >&6; } | ||
15648 | if eval \${$ossh_varname+:} false; then : | ||
15649 | $as_echo_n "(cached) " >&6 | ||
15650 | else | ||
15651 | |||
15652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15653 | /* end confdefs.h. */ | ||
15654 | #include <utmp.h> | ||
15655 | |||
15656 | _ACEOF | ||
15657 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15658 | $EGREP "ut_tv" >/dev/null 2>&1; then : | ||
15659 | eval "$ossh_varname=yes" | ||
15660 | else | ||
15661 | eval "$ossh_varname=no" | ||
15662 | fi | ||
15663 | rm -f conftest* | ||
15664 | |||
15665 | fi | ||
15666 | |||
15667 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15668 | if test -n "`echo $ossh_varname`"; then | ||
15669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15670 | $as_echo "$ossh_result" >&6; } | ||
15671 | if test "x$ossh_result" = "xyes"; then | ||
15672 | |||
15673 | $as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h | ||
15674 | |||
15675 | fi | ||
15676 | else | ||
15677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15678 | $as_echo "no" >&6; } | ||
15679 | fi | ||
15680 | |||
15681 | |||
15682 | # look for field 'ut_id' in header 'utmp.h' | ||
15683 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
15684 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
15685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5 | ||
15686 | $as_echo_n "checking for ut_id field in utmp.h... " >&6; } | ||
15687 | if eval \${$ossh_varname+:} false; then : | ||
15688 | $as_echo_n "(cached) " >&6 | ||
15689 | else | ||
15690 | |||
15691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15692 | /* end confdefs.h. */ | ||
15693 | #include <utmp.h> | ||
15694 | |||
15695 | _ACEOF | ||
15696 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15697 | $EGREP "ut_id" >/dev/null 2>&1; then : | ||
15698 | eval "$ossh_varname=yes" | ||
15699 | else | ||
15700 | eval "$ossh_varname=no" | ||
15701 | fi | ||
15702 | rm -f conftest* | ||
15703 | |||
15704 | fi | ||
15705 | |||
15706 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15707 | if test -n "`echo $ossh_varname`"; then | ||
15708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15709 | $as_echo "$ossh_result" >&6; } | ||
15710 | if test "x$ossh_result" = "xyes"; then | ||
15711 | |||
15712 | $as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h | ||
15713 | |||
15714 | fi | ||
15715 | else | ||
15716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15717 | $as_echo "no" >&6; } | ||
15718 | fi | ||
15719 | |||
15720 | |||
15721 | # look for field 'ut_id' in header 'utmpx.h' | ||
15722 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
15723 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
15724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5 | ||
15725 | $as_echo_n "checking for ut_id field in utmpx.h... " >&6; } | ||
15726 | if eval \${$ossh_varname+:} false; then : | ||
15727 | $as_echo_n "(cached) " >&6 | ||
15728 | else | ||
15729 | |||
15730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15731 | /* end confdefs.h. */ | ||
15732 | #include <utmpx.h> | ||
15733 | |||
15734 | _ACEOF | ||
15735 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15736 | $EGREP "ut_id" >/dev/null 2>&1; then : | ||
15737 | eval "$ossh_varname=yes" | ||
15738 | else | ||
15739 | eval "$ossh_varname=no" | ||
15740 | fi | ||
15741 | rm -f conftest* | ||
15742 | |||
15743 | fi | ||
15744 | |||
15745 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15746 | if test -n "`echo $ossh_varname`"; then | ||
15747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15748 | $as_echo "$ossh_result" >&6; } | ||
15749 | if test "x$ossh_result" = "xyes"; then | ||
15750 | |||
15751 | $as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h | ||
15752 | |||
15753 | fi | ||
15754 | else | ||
15755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15756 | $as_echo "no" >&6; } | ||
15757 | fi | ||
15758 | |||
15759 | |||
15760 | # look for field 'ut_addr' in header 'utmp.h' | ||
15761 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
15762 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
15763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5 | ||
15764 | $as_echo_n "checking for ut_addr field in utmp.h... " >&6; } | ||
15765 | if eval \${$ossh_varname+:} false; then : | ||
15766 | $as_echo_n "(cached) " >&6 | ||
15767 | else | ||
15768 | |||
15769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15770 | /* end confdefs.h. */ | ||
15771 | #include <utmp.h> | ||
15772 | |||
15773 | _ACEOF | ||
15774 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15775 | $EGREP "ut_addr" >/dev/null 2>&1; then : | ||
15776 | eval "$ossh_varname=yes" | ||
15777 | else | ||
15778 | eval "$ossh_varname=no" | ||
15779 | fi | ||
15780 | rm -f conftest* | ||
15781 | |||
15782 | fi | ||
15783 | |||
15784 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15785 | if test -n "`echo $ossh_varname`"; then | ||
15786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15787 | $as_echo "$ossh_result" >&6; } | ||
15788 | if test "x$ossh_result" = "xyes"; then | ||
15789 | |||
15790 | $as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h | ||
15791 | |||
15792 | fi | ||
15793 | else | ||
15794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15795 | $as_echo "no" >&6; } | ||
15796 | fi | ||
15797 | |||
15798 | |||
15799 | # look for field 'ut_addr' in header 'utmpx.h' | ||
15800 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
15801 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
15802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5 | ||
15803 | $as_echo_n "checking for ut_addr field in utmpx.h... " >&6; } | ||
15804 | if eval \${$ossh_varname+:} false; then : | ||
15805 | $as_echo_n "(cached) " >&6 | ||
15806 | else | ||
15807 | |||
15808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15809 | /* end confdefs.h. */ | ||
15810 | #include <utmpx.h> | ||
15811 | |||
15812 | _ACEOF | ||
15813 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15814 | $EGREP "ut_addr" >/dev/null 2>&1; then : | ||
15815 | eval "$ossh_varname=yes" | ||
15816 | else | ||
15817 | eval "$ossh_varname=no" | ||
15818 | fi | ||
15819 | rm -f conftest* | ||
15820 | |||
15821 | fi | ||
15822 | |||
15823 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15824 | if test -n "`echo $ossh_varname`"; then | ||
15825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15826 | $as_echo "$ossh_result" >&6; } | ||
15827 | if test "x$ossh_result" = "xyes"; then | ||
15828 | |||
15829 | $as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h | ||
15830 | |||
15831 | fi | ||
15832 | else | ||
15833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15834 | $as_echo "no" >&6; } | ||
15835 | fi | ||
15836 | |||
15837 | |||
15838 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
15839 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
15840 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
15841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5 | ||
15842 | $as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; } | ||
15843 | if eval \${$ossh_varname+:} false; then : | ||
15844 | $as_echo_n "(cached) " >&6 | ||
15845 | else | ||
15846 | |||
15847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15848 | /* end confdefs.h. */ | ||
15849 | #include <utmp.h> | ||
15850 | |||
15851 | _ACEOF | ||
15852 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15853 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then : | ||
15854 | eval "$ossh_varname=yes" | ||
15855 | else | ||
15856 | eval "$ossh_varname=no" | ||
15857 | fi | ||
15858 | rm -f conftest* | ||
15859 | |||
15860 | fi | ||
15861 | |||
15862 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15863 | if test -n "`echo $ossh_varname`"; then | ||
15864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15865 | $as_echo "$ossh_result" >&6; } | ||
15866 | if test "x$ossh_result" = "xyes"; then | ||
15867 | |||
15868 | $as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h | ||
15869 | |||
15870 | fi | ||
15871 | else | ||
15872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15873 | $as_echo "no" >&6; } | ||
15874 | fi | ||
15875 | |||
15876 | |||
15877 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
15878 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
15879 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
15880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
15881 | $as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; } | ||
15882 | if eval \${$ossh_varname+:} false; then : | ||
15883 | $as_echo_n "(cached) " >&6 | ||
15884 | else | ||
15885 | |||
15886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15887 | /* end confdefs.h. */ | ||
15888 | #include <utmpx.h> | ||
15889 | |||
15890 | _ACEOF | ||
15891 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15892 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then : | ||
15893 | eval "$ossh_varname=yes" | ||
15894 | else | ||
15895 | eval "$ossh_varname=no" | ||
15896 | fi | ||
15897 | rm -f conftest* | ||
15898 | |||
15899 | fi | ||
15900 | |||
15901 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15902 | if test -n "`echo $ossh_varname`"; then | ||
15903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15904 | $as_echo "$ossh_result" >&6; } | ||
15905 | if test "x$ossh_result" = "xyes"; then | ||
15906 | |||
15907 | $as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h | ||
15908 | |||
15909 | fi | ||
15910 | else | ||
15911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15912 | $as_echo "no" >&6; } | ||
15913 | fi | ||
15914 | |||
15915 | |||
15916 | # look for field 'ut_exit' in header 'utmp.h' | ||
15917 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
15918 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
15919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5 | ||
15920 | $as_echo_n "checking for ut_exit field in utmp.h... " >&6; } | ||
15921 | if eval \${$ossh_varname+:} false; then : | ||
15922 | $as_echo_n "(cached) " >&6 | ||
15923 | else | ||
15924 | |||
15925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15926 | /* end confdefs.h. */ | ||
15927 | #include <utmp.h> | ||
15928 | |||
15929 | _ACEOF | ||
15930 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15931 | $EGREP "ut_exit" >/dev/null 2>&1; then : | ||
15932 | eval "$ossh_varname=yes" | ||
15933 | else | ||
15934 | eval "$ossh_varname=no" | ||
15935 | fi | ||
15936 | rm -f conftest* | ||
15937 | |||
15938 | fi | ||
15939 | |||
15940 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15941 | if test -n "`echo $ossh_varname`"; then | ||
15942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15943 | $as_echo "$ossh_result" >&6; } | ||
15944 | if test "x$ossh_result" = "xyes"; then | ||
15945 | |||
15946 | $as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h | ||
15947 | |||
15948 | fi | ||
15949 | else | ||
15950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15951 | $as_echo "no" >&6; } | ||
15952 | fi | ||
15953 | |||
15954 | |||
15955 | # look for field 'ut_time' in header 'utmp.h' | ||
15956 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
15957 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
15958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5 | ||
15959 | $as_echo_n "checking for ut_time field in utmp.h... " >&6; } | ||
15960 | if eval \${$ossh_varname+:} false; then : | ||
15961 | $as_echo_n "(cached) " >&6 | ||
15962 | else | ||
15963 | |||
15964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15965 | /* end confdefs.h. */ | ||
15966 | #include <utmp.h> | ||
15967 | |||
15968 | _ACEOF | ||
15969 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15970 | $EGREP "ut_time" >/dev/null 2>&1; then : | ||
15971 | eval "$ossh_varname=yes" | ||
15972 | else | ||
15973 | eval "$ossh_varname=no" | ||
15974 | fi | ||
15975 | rm -f conftest* | ||
15976 | |||
15977 | fi | ||
15978 | |||
15979 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15980 | if test -n "`echo $ossh_varname`"; then | ||
15981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15982 | $as_echo "$ossh_result" >&6; } | ||
15983 | if test "x$ossh_result" = "xyes"; then | ||
15984 | |||
15985 | $as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h | ||
15986 | |||
15987 | fi | ||
15988 | else | ||
15989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15990 | $as_echo "no" >&6; } | ||
15991 | fi | ||
15992 | |||
15993 | |||
15994 | # look for field 'ut_time' in header 'utmpx.h' | ||
15995 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
15996 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
15997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5 | ||
15998 | $as_echo_n "checking for ut_time field in utmpx.h... " >&6; } | ||
15999 | if eval \${$ossh_varname+:} false; then : | ||
16000 | $as_echo_n "(cached) " >&6 | ||
16001 | else | ||
16002 | |||
16003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16004 | /* end confdefs.h. */ | ||
16005 | #include <utmpx.h> | ||
16006 | |||
16007 | _ACEOF | ||
16008 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16009 | $EGREP "ut_time" >/dev/null 2>&1; then : | ||
16010 | eval "$ossh_varname=yes" | ||
16011 | else | ||
16012 | eval "$ossh_varname=no" | ||
16013 | fi | ||
16014 | rm -f conftest* | ||
16015 | |||
16016 | fi | ||
16017 | |||
16018 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16019 | if test -n "`echo $ossh_varname`"; then | ||
16020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16021 | $as_echo "$ossh_result" >&6; } | ||
16022 | if test "x$ossh_result" = "xyes"; then | ||
16023 | |||
16024 | $as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h | ||
16025 | |||
16026 | fi | ||
16027 | else | ||
16028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16029 | $as_echo "no" >&6; } | ||
16030 | fi | ||
16031 | |||
16032 | |||
16033 | # look for field 'ut_tv' in header 'utmpx.h' | ||
16034 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
16035 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
16036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5 | ||
16037 | $as_echo_n "checking for ut_tv field in utmpx.h... " >&6; } | ||
16038 | if eval \${$ossh_varname+:} false; then : | ||
16039 | $as_echo_n "(cached) " >&6 | ||
16040 | else | ||
16041 | |||
16042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16043 | /* end confdefs.h. */ | ||
16044 | #include <utmpx.h> | ||
16045 | |||
16046 | _ACEOF | ||
16047 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16048 | $EGREP "ut_tv" >/dev/null 2>&1; then : | ||
16049 | eval "$ossh_varname=yes" | ||
16050 | else | ||
16051 | eval "$ossh_varname=no" | ||
16052 | fi | ||
16053 | rm -f conftest* | ||
16054 | |||
16055 | fi | ||
16056 | |||
16057 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16058 | if test -n "`echo $ossh_varname`"; then | ||
16059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16060 | $as_echo "$ossh_result" >&6; } | ||
16061 | if test "x$ossh_result" = "xyes"; then | ||
16062 | |||
16063 | $as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h | ||
16064 | |||
16065 | fi | ||
16066 | else | ||
16067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16068 | $as_echo "no" >&6; } | ||
16069 | fi | ||
16070 | |||
16071 | |||
16072 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | ||
16073 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | ||
16074 | |||
16075 | cat >>confdefs.h <<_ACEOF | ||
16076 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
16077 | _ACEOF | ||
16078 | |||
16079 | |||
16080 | fi | ||
16081 | |||
16082 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " | ||
16083 | #include <sys/types.h> | ||
16084 | #include <pwd.h> | ||
16085 | |||
16086 | " | ||
16087 | if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : | ||
16088 | |||
16089 | cat >>confdefs.h <<_ACEOF | ||
16090 | #define HAVE_STRUCT_PASSWD_PW_GECOS 1 | ||
16091 | _ACEOF | ||
16092 | |||
16093 | |||
16094 | fi | ||
16095 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_class" "ac_cv_member_struct_passwd_pw_class" " | ||
16096 | #include <sys/types.h> | ||
16097 | #include <pwd.h> | ||
16098 | |||
16099 | " | ||
16100 | if test "x$ac_cv_member_struct_passwd_pw_class" = xyes; then : | ||
16101 | |||
16102 | cat >>confdefs.h <<_ACEOF | ||
16103 | #define HAVE_STRUCT_PASSWD_PW_CLASS 1 | ||
16104 | _ACEOF | ||
16105 | |||
16106 | |||
16107 | fi | ||
16108 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_change" "ac_cv_member_struct_passwd_pw_change" " | ||
16109 | #include <sys/types.h> | ||
16110 | #include <pwd.h> | ||
16111 | |||
16112 | " | ||
16113 | if test "x$ac_cv_member_struct_passwd_pw_change" = xyes; then : | ||
16114 | |||
16115 | cat >>confdefs.h <<_ACEOF | ||
16116 | #define HAVE_STRUCT_PASSWD_PW_CHANGE 1 | ||
16117 | _ACEOF | ||
16118 | |||
16119 | |||
16120 | fi | ||
16121 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_expire" "ac_cv_member_struct_passwd_pw_expire" " | ||
16122 | #include <sys/types.h> | ||
16123 | #include <pwd.h> | ||
16124 | |||
16125 | " | ||
16126 | if test "x$ac_cv_member_struct_passwd_pw_expire" = xyes; then : | ||
16127 | |||
16128 | cat >>confdefs.h <<_ACEOF | ||
16129 | #define HAVE_STRUCT_PASSWD_PW_EXPIRE 1 | ||
16130 | _ACEOF | ||
16131 | |||
16132 | |||
16133 | fi | ||
16134 | |||
16135 | |||
16136 | ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" " | ||
16137 | #include <stdio.h> | ||
16138 | #if HAVE_SYS_TYPES_H | ||
16139 | # include <sys/types.h> | ||
16140 | #endif | ||
16141 | #include <netinet/in.h> | ||
16142 | #include <arpa/nameser.h> | ||
16143 | #include <resolv.h> | ||
16144 | |||
16145 | " | ||
16146 | if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then : | ||
16147 | |||
16148 | else | ||
16149 | |||
16150 | $as_echo "#define __res_state state" >>confdefs.h | ||
16151 | |||
16152 | fi | ||
16153 | |||
16154 | |||
16155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5 | ||
16156 | $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; } | ||
16157 | if ${ac_cv_have_ss_family_in_struct_ss+:} false; then : | ||
16158 | $as_echo_n "(cached) " >&6 | ||
16159 | else | ||
16160 | |||
16161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16162 | /* end confdefs.h. */ | ||
16163 | |||
16164 | #include <sys/types.h> | ||
16165 | #include <sys/socket.h> | ||
16166 | |||
16167 | int | ||
16168 | main () | ||
16169 | { | ||
16170 | struct sockaddr_storage s; s.ss_family = 1; | ||
16171 | ; | ||
16172 | return 0; | ||
16173 | } | ||
16174 | _ACEOF | ||
16175 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16176 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
16177 | else | ||
16178 | ac_cv_have_ss_family_in_struct_ss="no" | ||
16179 | fi | ||
16180 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16181 | |||
16182 | fi | ||
16183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
16184 | $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; } | ||
16185 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
16186 | |||
16187 | $as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h | ||
16188 | |||
16189 | fi | ||
16190 | |||
16191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
16192 | $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; } | ||
16193 | if ${ac_cv_have___ss_family_in_struct_ss+:} false; then : | ||
16194 | $as_echo_n "(cached) " >&6 | ||
16195 | else | ||
16196 | |||
16197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16198 | /* end confdefs.h. */ | ||
16199 | |||
16200 | #include <sys/types.h> | ||
16201 | #include <sys/socket.h> | ||
16202 | |||
16203 | int | ||
16204 | main () | ||
16205 | { | ||
16206 | struct sockaddr_storage s; s.__ss_family = 1; | ||
16207 | ; | ||
16208 | return 0; | ||
16209 | } | ||
16210 | _ACEOF | ||
16211 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16212 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
16213 | else | ||
16214 | ac_cv_have___ss_family_in_struct_ss="no" | ||
16215 | |||
16216 | fi | ||
16217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16218 | |||
16219 | fi | ||
16220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
16221 | $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; } | ||
16222 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
16223 | |||
16224 | $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h | ||
16225 | |||
16226 | fi | ||
16227 | |||
16228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5 | ||
16229 | $as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; } | ||
16230 | if ${ac_cv_have_accrights_in_msghdr+:} false; then : | ||
16231 | $as_echo_n "(cached) " >&6 | ||
16232 | else | ||
16233 | |||
16234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16235 | /* end confdefs.h. */ | ||
16236 | |||
16237 | #include <sys/types.h> | ||
16238 | #include <sys/socket.h> | ||
16239 | #include <sys/uio.h> | ||
16240 | |||
16241 | int | ||
16242 | main () | ||
16243 | { | ||
16244 | |||
16245 | #ifdef msg_accrights | ||
16246 | #error "msg_accrights is a macro" | ||
16247 | exit(1); | ||
16248 | #endif | ||
16249 | struct msghdr m; | ||
16250 | m.msg_accrights = 0; | ||
16251 | exit(0); | ||
16252 | |||
16253 | ; | ||
16254 | return 0; | ||
16255 | } | ||
16256 | _ACEOF | ||
16257 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16258 | ac_cv_have_accrights_in_msghdr="yes" | ||
16259 | else | ||
16260 | ac_cv_have_accrights_in_msghdr="no" | ||
16261 | |||
16262 | fi | ||
16263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16264 | |||
16265 | fi | ||
16266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
16267 | $as_echo "$ac_cv_have_accrights_in_msghdr" >&6; } | ||
16268 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
16269 | |||
16270 | $as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h | ||
16271 | |||
16272 | fi | ||
16273 | |||
16274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5 | ||
16275 | $as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; } | ||
16276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16277 | /* end confdefs.h. */ | ||
16278 | |||
16279 | #include <sys/param.h> | ||
16280 | #include <sys/stat.h> | ||
16281 | #ifdef HAVE_SYS_TIME_H | ||
16282 | # include <sys/time.h> | ||
16283 | #endif | ||
16284 | #ifdef HAVE_SYS_MOUNT_H | ||
16285 | #include <sys/mount.h> | ||
16286 | #endif | ||
16287 | #ifdef HAVE_SYS_STATVFS_H | ||
16288 | #include <sys/statvfs.h> | ||
16289 | #endif | ||
16290 | |||
16291 | int | ||
16292 | main () | ||
16293 | { | ||
16294 | struct statvfs s; s.f_fsid = 0; | ||
16295 | ; | ||
16296 | return 0; | ||
16297 | } | ||
16298 | _ACEOF | ||
16299 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16301 | $as_echo "yes" >&6; } | ||
16302 | else | ||
16303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16304 | $as_echo "no" >&6; } | ||
16305 | |||
16306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5 | ||
16307 | $as_echo_n "checking if fsid_t has member val... " >&6; } | ||
16308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16309 | /* end confdefs.h. */ | ||
16310 | |||
16311 | #include <sys/types.h> | ||
16312 | #include <sys/statvfs.h> | ||
16313 | |||
16314 | int | ||
16315 | main () | ||
16316 | { | ||
16317 | fsid_t t; t.val[0] = 0; | ||
16318 | ; | ||
16319 | return 0; | ||
16320 | } | ||
16321 | _ACEOF | ||
16322 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16324 | $as_echo "yes" >&6; } | ||
16325 | |||
16326 | $as_echo "#define FSID_HAS_VAL 1" >>confdefs.h | ||
16327 | |||
16328 | else | ||
16329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16330 | $as_echo "no" >&6; } | ||
16331 | fi | ||
16332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16333 | |||
16334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5 | ||
16335 | $as_echo_n "checking if f_fsid has member __val... " >&6; } | ||
16336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16337 | /* end confdefs.h. */ | ||
16338 | |||
16339 | #include <sys/types.h> | ||
16340 | #include <sys/statvfs.h> | ||
16341 | |||
16342 | int | ||
16343 | main () | ||
16344 | { | ||
16345 | fsid_t t; t.__val[0] = 0; | ||
16346 | ; | ||
16347 | return 0; | ||
16348 | } | ||
16349 | _ACEOF | ||
16350 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16352 | $as_echo "yes" >&6; } | ||
16353 | |||
16354 | $as_echo "#define FSID_HAS___VAL 1" >>confdefs.h | ||
16355 | |||
16356 | else | ||
16357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16358 | $as_echo "no" >&6; } | ||
16359 | fi | ||
16360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16361 | |||
16362 | fi | ||
16363 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16364 | |||
16365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5 | ||
16366 | $as_echo_n "checking for msg_control field in struct msghdr... " >&6; } | ||
16367 | if ${ac_cv_have_control_in_msghdr+:} false; then : | ||
16368 | $as_echo_n "(cached) " >&6 | ||
16369 | else | ||
16370 | |||
16371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16372 | /* end confdefs.h. */ | ||
16373 | |||
16374 | #include <sys/types.h> | ||
16375 | #include <sys/socket.h> | ||
16376 | #include <sys/uio.h> | ||
16377 | |||
16378 | int | ||
16379 | main () | ||
16380 | { | ||
16381 | |||
16382 | #ifdef msg_control | ||
16383 | #error "msg_control is a macro" | ||
16384 | exit(1); | ||
16385 | #endif | ||
16386 | struct msghdr m; | ||
16387 | m.msg_control = 0; | ||
16388 | exit(0); | ||
16389 | |||
16390 | ; | ||
16391 | return 0; | ||
16392 | } | ||
16393 | _ACEOF | ||
16394 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16395 | ac_cv_have_control_in_msghdr="yes" | ||
16396 | else | ||
16397 | ac_cv_have_control_in_msghdr="no" | ||
16398 | |||
16399 | fi | ||
16400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16401 | |||
16402 | fi | ||
16403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5 | ||
16404 | $as_echo "$ac_cv_have_control_in_msghdr" >&6; } | ||
16405 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
16406 | |||
16407 | $as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h | ||
16408 | |||
16409 | fi | ||
16410 | |||
16411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5 | ||
16412 | $as_echo_n "checking if libc defines __progname... " >&6; } | ||
16413 | if ${ac_cv_libc_defines___progname+:} false; then : | ||
16414 | $as_echo_n "(cached) " >&6 | ||
16415 | else | ||
16416 | |||
16417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16418 | /* end confdefs.h. */ | ||
16419 | |||
16420 | int | ||
16421 | main () | ||
16422 | { | ||
16423 | extern char *__progname; printf("%s", __progname); | ||
16424 | ; | ||
16425 | return 0; | ||
16426 | } | ||
16427 | _ACEOF | ||
16428 | if ac_fn_c_try_link "$LINENO"; then : | ||
16429 | ac_cv_libc_defines___progname="yes" | ||
16430 | else | ||
16431 | ac_cv_libc_defines___progname="no" | ||
16432 | |||
16433 | fi | ||
16434 | rm -f core conftest.err conftest.$ac_objext \ | ||
16435 | conftest$ac_exeext conftest.$ac_ext | ||
16436 | |||
16437 | fi | ||
16438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5 | ||
16439 | $as_echo "$ac_cv_libc_defines___progname" >&6; } | ||
16440 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
16441 | |||
16442 | $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h | ||
16443 | |||
16444 | fi | ||
16445 | |||
16446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5 | ||
16447 | $as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; } | ||
16448 | if ${ac_cv_cc_implements___FUNCTION__+:} false; then : | ||
16449 | $as_echo_n "(cached) " >&6 | ||
16450 | else | ||
16451 | |||
16452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16453 | /* end confdefs.h. */ | ||
16454 | #include <stdio.h> | ||
16455 | int | ||
16456 | main () | ||
16457 | { | ||
16458 | printf("%s", __FUNCTION__); | ||
16459 | ; | ||
16460 | return 0; | ||
16461 | } | ||
16462 | _ACEOF | ||
16463 | if ac_fn_c_try_link "$LINENO"; then : | ||
16464 | ac_cv_cc_implements___FUNCTION__="yes" | ||
16465 | else | ||
16466 | ac_cv_cc_implements___FUNCTION__="no" | ||
16467 | |||
16468 | fi | ||
16469 | rm -f core conftest.err conftest.$ac_objext \ | ||
16470 | conftest$ac_exeext conftest.$ac_ext | ||
16471 | |||
16472 | fi | ||
16473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
16474 | $as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; } | ||
16475 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
16476 | |||
16477 | $as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h | ||
16478 | |||
16479 | fi | ||
16480 | |||
16481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5 | ||
16482 | $as_echo_n "checking whether $CC implements __func__... " >&6; } | ||
16483 | if ${ac_cv_cc_implements___func__+:} false; then : | ||
16484 | $as_echo_n "(cached) " >&6 | ||
16485 | else | ||
16486 | |||
16487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16488 | /* end confdefs.h. */ | ||
16489 | #include <stdio.h> | ||
16490 | int | ||
16491 | main () | ||
16492 | { | ||
16493 | printf("%s", __func__); | ||
16494 | ; | ||
16495 | return 0; | ||
16496 | } | ||
16497 | _ACEOF | ||
16498 | if ac_fn_c_try_link "$LINENO"; then : | ||
16499 | ac_cv_cc_implements___func__="yes" | ||
16500 | else | ||
16501 | ac_cv_cc_implements___func__="no" | ||
16502 | |||
16503 | fi | ||
16504 | rm -f core conftest.err conftest.$ac_objext \ | ||
16505 | conftest$ac_exeext conftest.$ac_ext | ||
16506 | |||
16507 | fi | ||
16508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5 | ||
16509 | $as_echo "$ac_cv_cc_implements___func__" >&6; } | ||
16510 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
16511 | |||
16512 | $as_echo "#define HAVE___func__ 1" >>confdefs.h | ||
16513 | |||
16514 | fi | ||
16515 | |||
16516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5 | ||
16517 | $as_echo_n "checking whether va_copy exists... " >&6; } | ||
16518 | if ${ac_cv_have_va_copy+:} false; then : | ||
16519 | $as_echo_n "(cached) " >&6 | ||
16520 | else | ||
16521 | |||
16522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16523 | /* end confdefs.h. */ | ||
16524 | |||
16525 | #include <stdarg.h> | ||
16526 | va_list x,y; | ||
16527 | |||
16528 | int | ||
16529 | main () | ||
16530 | { | ||
16531 | va_copy(x,y); | ||
16532 | ; | ||
16533 | return 0; | ||
16534 | } | ||
16535 | _ACEOF | ||
16536 | if ac_fn_c_try_link "$LINENO"; then : | ||
16537 | ac_cv_have_va_copy="yes" | ||
16538 | else | ||
16539 | ac_cv_have_va_copy="no" | ||
16540 | |||
16541 | fi | ||
16542 | rm -f core conftest.err conftest.$ac_objext \ | ||
16543 | conftest$ac_exeext conftest.$ac_ext | ||
16544 | |||
16545 | fi | ||
16546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5 | ||
16547 | $as_echo "$ac_cv_have_va_copy" >&6; } | ||
16548 | if test "x$ac_cv_have_va_copy" = "xyes" ; then | ||
16549 | |||
16550 | $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h | ||
16551 | |||
16552 | fi | ||
16553 | |||
16554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5 | ||
16555 | $as_echo_n "checking whether __va_copy exists... " >&6; } | ||
16556 | if ${ac_cv_have___va_copy+:} false; then : | ||
16557 | $as_echo_n "(cached) " >&6 | ||
16558 | else | ||
16559 | |||
16560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16561 | /* end confdefs.h. */ | ||
16562 | |||
16563 | #include <stdarg.h> | ||
16564 | va_list x,y; | ||
16565 | |||
16566 | int | ||
16567 | main () | ||
16568 | { | ||
16569 | __va_copy(x,y); | ||
16570 | ; | ||
16571 | return 0; | ||
16572 | } | ||
16573 | _ACEOF | ||
16574 | if ac_fn_c_try_link "$LINENO"; then : | ||
16575 | ac_cv_have___va_copy="yes" | ||
16576 | else | ||
16577 | ac_cv_have___va_copy="no" | ||
16578 | |||
16579 | fi | ||
16580 | rm -f core conftest.err conftest.$ac_objext \ | ||
16581 | conftest$ac_exeext conftest.$ac_ext | ||
16582 | |||
16583 | fi | ||
16584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5 | ||
16585 | $as_echo "$ac_cv_have___va_copy" >&6; } | ||
16586 | if test "x$ac_cv_have___va_copy" = "xyes" ; then | ||
16587 | |||
16588 | $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h | ||
16589 | |||
16590 | fi | ||
16591 | |||
16592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5 | ||
16593 | $as_echo_n "checking whether getopt has optreset support... " >&6; } | ||
16594 | if ${ac_cv_have_getopt_optreset+:} false; then : | ||
16595 | $as_echo_n "(cached) " >&6 | ||
16596 | else | ||
16597 | |||
16598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16599 | /* end confdefs.h. */ | ||
16600 | #include <getopt.h> | ||
16601 | int | ||
16602 | main () | ||
16603 | { | ||
16604 | extern int optreset; optreset = 0; | ||
16605 | ; | ||
16606 | return 0; | ||
16607 | } | ||
16608 | _ACEOF | ||
16609 | if ac_fn_c_try_link "$LINENO"; then : | ||
16610 | ac_cv_have_getopt_optreset="yes" | ||
16611 | else | ||
16612 | ac_cv_have_getopt_optreset="no" | ||
16613 | |||
16614 | fi | ||
16615 | rm -f core conftest.err conftest.$ac_objext \ | ||
16616 | conftest$ac_exeext conftest.$ac_ext | ||
16617 | |||
16618 | fi | ||
16619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5 | ||
16620 | $as_echo "$ac_cv_have_getopt_optreset" >&6; } | ||
16621 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
16622 | |||
16623 | $as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h | ||
16624 | |||
16625 | fi | ||
16626 | |||
16627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5 | ||
16628 | $as_echo_n "checking if libc defines sys_errlist... " >&6; } | ||
16629 | if ${ac_cv_libc_defines_sys_errlist+:} false; then : | ||
16630 | $as_echo_n "(cached) " >&6 | ||
16631 | else | ||
16632 | |||
16633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16634 | /* end confdefs.h. */ | ||
16635 | |||
16636 | int | ||
16637 | main () | ||
16638 | { | ||
16639 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
16640 | ; | ||
16641 | return 0; | ||
16642 | } | ||
16643 | _ACEOF | ||
16644 | if ac_fn_c_try_link "$LINENO"; then : | ||
16645 | ac_cv_libc_defines_sys_errlist="yes" | ||
16646 | else | ||
16647 | ac_cv_libc_defines_sys_errlist="no" | ||
16648 | |||
16649 | fi | ||
16650 | rm -f core conftest.err conftest.$ac_objext \ | ||
16651 | conftest$ac_exeext conftest.$ac_ext | ||
16652 | |||
16653 | fi | ||
16654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
16655 | $as_echo "$ac_cv_libc_defines_sys_errlist" >&6; } | ||
16656 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
16657 | |||
16658 | $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h | ||
16659 | |||
16660 | fi | ||
16661 | |||
16662 | |||
16663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5 | ||
16664 | $as_echo_n "checking if libc defines sys_nerr... " >&6; } | ||
16665 | if ${ac_cv_libc_defines_sys_nerr+:} false; then : | ||
16666 | $as_echo_n "(cached) " >&6 | ||
16667 | else | ||
16668 | |||
16669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16670 | /* end confdefs.h. */ | ||
16671 | |||
16672 | int | ||
16673 | main () | ||
16674 | { | ||
16675 | extern int sys_nerr; printf("%i", sys_nerr); | ||
16676 | ; | ||
16677 | return 0; | ||
16678 | } | ||
16679 | _ACEOF | ||
16680 | if ac_fn_c_try_link "$LINENO"; then : | ||
16681 | ac_cv_libc_defines_sys_nerr="yes" | ||
16682 | else | ||
16683 | ac_cv_libc_defines_sys_nerr="no" | ||
16684 | |||
16685 | fi | ||
16686 | rm -f core conftest.err conftest.$ac_objext \ | ||
16687 | conftest$ac_exeext conftest.$ac_ext | ||
16688 | |||
16689 | fi | ||
16690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
16691 | $as_echo "$ac_cv_libc_defines_sys_nerr" >&6; } | ||
16692 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
16693 | |||
16694 | $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h | ||
16695 | |||
16696 | fi | ||
16697 | |||
16698 | # Check libraries needed by DNS fingerprint support | ||
16699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5 | ||
16700 | $as_echo_n "checking for library containing getrrsetbyname... " >&6; } | ||
16701 | if ${ac_cv_search_getrrsetbyname+:} false; then : | ||
16702 | $as_echo_n "(cached) " >&6 | ||
16703 | else | ||
16704 | ac_func_search_save_LIBS=$LIBS | ||
16705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16706 | /* end confdefs.h. */ | ||
16707 | |||
16708 | /* Override any GCC internal prototype to avoid an error. | ||
16709 | Use char because int might match the return type of a GCC | ||
16710 | builtin and then its argument prototype would still apply. */ | ||
16711 | #ifdef __cplusplus | ||
16712 | extern "C" | ||
16713 | #endif | ||
16714 | char getrrsetbyname (); | ||
16715 | int | ||
16716 | main () | ||
16717 | { | ||
16718 | return getrrsetbyname (); | ||
16719 | ; | ||
16720 | return 0; | ||
16721 | } | ||
16722 | _ACEOF | ||
16723 | for ac_lib in '' resolv; do | ||
16724 | if test -z "$ac_lib"; then | ||
16725 | ac_res="none required" | ||
16726 | else | ||
16727 | ac_res=-l$ac_lib | ||
16728 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
16729 | fi | ||
16730 | if ac_fn_c_try_link "$LINENO"; then : | ||
16731 | ac_cv_search_getrrsetbyname=$ac_res | ||
16732 | fi | ||
16733 | rm -f core conftest.err conftest.$ac_objext \ | ||
16734 | conftest$ac_exeext | ||
16735 | if ${ac_cv_search_getrrsetbyname+:} false; then : | ||
16736 | break | ||
16737 | fi | ||
16738 | done | ||
16739 | if ${ac_cv_search_getrrsetbyname+:} false; then : | ||
16740 | |||
16741 | else | ||
16742 | ac_cv_search_getrrsetbyname=no | ||
16743 | fi | ||
16744 | rm conftest.$ac_ext | ||
16745 | LIBS=$ac_func_search_save_LIBS | ||
16746 | fi | ||
16747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5 | ||
16748 | $as_echo "$ac_cv_search_getrrsetbyname" >&6; } | ||
16749 | ac_res=$ac_cv_search_getrrsetbyname | ||
16750 | if test "$ac_res" != no; then : | ||
16751 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
16752 | |||
16753 | $as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h | ||
16754 | |||
16755 | else | ||
16756 | |||
16757 | # Needed by our getrrsetbyname() | ||
16758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5 | ||
16759 | $as_echo_n "checking for library containing res_query... " >&6; } | ||
16760 | if ${ac_cv_search_res_query+:} false; then : | ||
16761 | $as_echo_n "(cached) " >&6 | ||
16762 | else | ||
16763 | ac_func_search_save_LIBS=$LIBS | ||
16764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16765 | /* end confdefs.h. */ | ||
16766 | |||
16767 | /* Override any GCC internal prototype to avoid an error. | ||
16768 | Use char because int might match the return type of a GCC | ||
16769 | builtin and then its argument prototype would still apply. */ | ||
16770 | #ifdef __cplusplus | ||
16771 | extern "C" | ||
16772 | #endif | ||
16773 | char res_query (); | ||
16774 | int | ||
16775 | main () | ||
16776 | { | ||
16777 | return res_query (); | ||
16778 | ; | ||
16779 | return 0; | ||
16780 | } | ||
16781 | _ACEOF | ||
16782 | for ac_lib in '' resolv; do | ||
16783 | if test -z "$ac_lib"; then | ||
16784 | ac_res="none required" | ||
16785 | else | ||
16786 | ac_res=-l$ac_lib | ||
16787 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
16788 | fi | ||
16789 | if ac_fn_c_try_link "$LINENO"; then : | ||
16790 | ac_cv_search_res_query=$ac_res | ||
16791 | fi | ||
16792 | rm -f core conftest.err conftest.$ac_objext \ | ||
16793 | conftest$ac_exeext | ||
16794 | if ${ac_cv_search_res_query+:} false; then : | ||
16795 | break | ||
16796 | fi | ||
16797 | done | ||
16798 | if ${ac_cv_search_res_query+:} false; then : | ||
16799 | |||
16800 | else | ||
16801 | ac_cv_search_res_query=no | ||
16802 | fi | ||
16803 | rm conftest.$ac_ext | ||
16804 | LIBS=$ac_func_search_save_LIBS | ||
16805 | fi | ||
16806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5 | ||
16807 | $as_echo "$ac_cv_search_res_query" >&6; } | ||
16808 | ac_res=$ac_cv_search_res_query | ||
16809 | if test "$ac_res" != no; then : | ||
16810 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
16811 | |||
16812 | fi | ||
16813 | |||
16814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5 | ||
16815 | $as_echo_n "checking for library containing dn_expand... " >&6; } | ||
16816 | if ${ac_cv_search_dn_expand+:} false; then : | ||
16817 | $as_echo_n "(cached) " >&6 | ||
16818 | else | ||
16819 | ac_func_search_save_LIBS=$LIBS | ||
16820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16821 | /* end confdefs.h. */ | ||
16822 | |||
16823 | /* Override any GCC internal prototype to avoid an error. | ||
16824 | Use char because int might match the return type of a GCC | ||
16825 | builtin and then its argument prototype would still apply. */ | ||
16826 | #ifdef __cplusplus | ||
16827 | extern "C" | ||
16828 | #endif | ||
16829 | char dn_expand (); | ||
16830 | int | ||
16831 | main () | ||
16832 | { | ||
16833 | return dn_expand (); | ||
16834 | ; | ||
16835 | return 0; | ||
16836 | } | ||
16837 | _ACEOF | ||
16838 | for ac_lib in '' resolv; do | ||
16839 | if test -z "$ac_lib"; then | ||
16840 | ac_res="none required" | ||
16841 | else | ||
16842 | ac_res=-l$ac_lib | ||
16843 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
16844 | fi | ||
16845 | if ac_fn_c_try_link "$LINENO"; then : | ||
16846 | ac_cv_search_dn_expand=$ac_res | ||
16847 | fi | ||
16848 | rm -f core conftest.err conftest.$ac_objext \ | ||
16849 | conftest$ac_exeext | ||
16850 | if ${ac_cv_search_dn_expand+:} false; then : | ||
16851 | break | ||
16852 | fi | ||
16853 | done | ||
16854 | if ${ac_cv_search_dn_expand+:} false; then : | ||
16855 | |||
16856 | else | ||
16857 | ac_cv_search_dn_expand=no | ||
16858 | fi | ||
16859 | rm conftest.$ac_ext | ||
16860 | LIBS=$ac_func_search_save_LIBS | ||
16861 | fi | ||
16862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5 | ||
16863 | $as_echo "$ac_cv_search_dn_expand" >&6; } | ||
16864 | ac_res=$ac_cv_search_dn_expand | ||
16865 | if test "$ac_res" != no; then : | ||
16866 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
16867 | |||
16868 | fi | ||
16869 | |||
16870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5 | ||
16871 | $as_echo_n "checking if res_query will link... " >&6; } | ||
16872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16873 | /* end confdefs.h. */ | ||
16874 | |||
16875 | #include <sys/types.h> | ||
16876 | #include <netinet/in.h> | ||
16877 | #include <arpa/nameser.h> | ||
16878 | #include <netdb.h> | ||
16879 | #include <resolv.h> | ||
16880 | |||
16881 | int | ||
16882 | main () | ||
16883 | { | ||
16884 | |||
16885 | res_query (0, 0, 0, 0, 0); | ||
16886 | |||
16887 | ; | ||
16888 | return 0; | ||
16889 | } | ||
16890 | _ACEOF | ||
16891 | if ac_fn_c_try_link "$LINENO"; then : | ||
16892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16893 | $as_echo "yes" >&6; } | ||
16894 | else | ||
16895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16896 | $as_echo "no" >&6; } | ||
16897 | saved_LIBS="$LIBS" | ||
16898 | LIBS="$LIBS -lresolv" | ||
16899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5 | ||
16900 | $as_echo_n "checking for res_query in -lresolv... " >&6; } | ||
16901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16902 | /* end confdefs.h. */ | ||
16903 | |||
16904 | #include <sys/types.h> | ||
16905 | #include <netinet/in.h> | ||
16906 | #include <arpa/nameser.h> | ||
16907 | #include <netdb.h> | ||
16908 | #include <resolv.h> | ||
16909 | |||
16910 | int | ||
16911 | main () | ||
16912 | { | ||
16913 | |||
16914 | res_query (0, 0, 0, 0, 0); | ||
16915 | |||
16916 | ; | ||
16917 | return 0; | ||
16918 | } | ||
16919 | _ACEOF | ||
16920 | if ac_fn_c_try_link "$LINENO"; then : | ||
16921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16922 | $as_echo "yes" >&6; } | ||
16923 | else | ||
16924 | LIBS="$saved_LIBS" | ||
16925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16926 | $as_echo "no" >&6; } | ||
16927 | fi | ||
16928 | rm -f core conftest.err conftest.$ac_objext \ | ||
16929 | conftest$ac_exeext conftest.$ac_ext | ||
16930 | |||
16931 | fi | ||
16932 | rm -f core conftest.err conftest.$ac_objext \ | ||
16933 | conftest$ac_exeext conftest.$ac_ext | ||
16934 | for ac_func in _getshort _getlong | ||
16935 | do : | ||
16936 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
16937 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
16938 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
16939 | cat >>confdefs.h <<_ACEOF | ||
16940 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
16941 | _ACEOF | ||
16942 | |||
16943 | fi | ||
16944 | done | ||
16945 | |||
16946 | ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h> | ||
16947 | #include <arpa/nameser.h> | ||
16948 | " | ||
16949 | if test "x$ac_cv_have_decl__getshort" = xyes; then : | ||
16950 | ac_have_decl=1 | ||
16951 | else | ||
16952 | ac_have_decl=0 | ||
16953 | fi | ||
16954 | |||
16955 | cat >>confdefs.h <<_ACEOF | ||
16956 | #define HAVE_DECL__GETSHORT $ac_have_decl | ||
16957 | _ACEOF | ||
16958 | ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h> | ||
16959 | #include <arpa/nameser.h> | ||
16960 | " | ||
16961 | if test "x$ac_cv_have_decl__getlong" = xyes; then : | ||
16962 | ac_have_decl=1 | ||
16963 | else | ||
16964 | ac_have_decl=0 | ||
16965 | fi | ||
16966 | |||
16967 | cat >>confdefs.h <<_ACEOF | ||
16968 | #define HAVE_DECL__GETLONG $ac_have_decl | ||
16969 | _ACEOF | ||
16970 | |||
16971 | ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h> | ||
16972 | " | ||
16973 | if test "x$ac_cv_member_HEADER_ad" = xyes; then : | ||
16974 | |||
16975 | $as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h | ||
16976 | |||
16977 | fi | ||
16978 | |||
16979 | |||
16980 | fi | ||
16981 | |||
16982 | |||
16983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5 | ||
16984 | $as_echo_n "checking if struct __res_state _res is an extern... " >&6; } | ||
16985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16986 | /* end confdefs.h. */ | ||
16987 | |||
16988 | #include <stdio.h> | ||
16989 | #if HAVE_SYS_TYPES_H | ||
16990 | # include <sys/types.h> | ||
16991 | #endif | ||
16992 | #include <netinet/in.h> | ||
16993 | #include <arpa/nameser.h> | ||
16994 | #include <resolv.h> | ||
16995 | extern struct __res_state _res; | ||
16996 | |||
16997 | int | ||
16998 | main () | ||
16999 | { | ||
17000 | |||
17001 | struct __res_state *volatile p = &_res; /* force resolution of _res */ | ||
17002 | return 0; | ||
17003 | |||
17004 | ; | ||
17005 | return 0; | ||
17006 | } | ||
17007 | _ACEOF | ||
17008 | if ac_fn_c_try_link "$LINENO"; then : | ||
17009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17010 | $as_echo "yes" >&6; } | ||
17011 | |||
17012 | $as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h | ||
17013 | |||
17014 | |||
17015 | else | ||
17016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17017 | $as_echo "no" >&6; } | ||
17018 | |||
17019 | fi | ||
17020 | rm -f core conftest.err conftest.$ac_objext \ | ||
17021 | conftest$ac_exeext conftest.$ac_ext | ||
17022 | |||
17023 | # Check whether user wants SELinux support | ||
17024 | SELINUX_MSG="no" | ||
17025 | LIBSELINUX="" | ||
17026 | |||
17027 | # Check whether --with-selinux was given. | ||
17028 | if test "${with_selinux+set}" = set; then : | ||
17029 | withval=$with_selinux; if test "x$withval" != "xno" ; then | ||
17030 | save_LIBS="$LIBS" | ||
17031 | |||
17032 | $as_echo "#define WITH_SELINUX 1" >>confdefs.h | ||
17033 | |||
17034 | SELINUX_MSG="yes" | ||
17035 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" | ||
17036 | if test "x$ac_cv_header_selinux_selinux_h" = xyes; then : | ||
17037 | |||
17038 | else | ||
17039 | as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5 | ||
17040 | fi | ||
17041 | |||
17042 | |||
17043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5 | ||
17044 | $as_echo_n "checking for setexeccon in -lselinux... " >&6; } | ||
17045 | if ${ac_cv_lib_selinux_setexeccon+:} false; then : | ||
17046 | $as_echo_n "(cached) " >&6 | ||
17047 | else | ||
17048 | ac_check_lib_save_LIBS=$LIBS | ||
17049 | LIBS="-lselinux $LIBS" | ||
17050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17051 | /* end confdefs.h. */ | ||
17052 | |||
17053 | /* Override any GCC internal prototype to avoid an error. | ||
17054 | Use char because int might match the return type of a GCC | ||
17055 | builtin and then its argument prototype would still apply. */ | ||
17056 | #ifdef __cplusplus | ||
17057 | extern "C" | ||
17058 | #endif | ||
17059 | char setexeccon (); | ||
17060 | int | ||
17061 | main () | ||
17062 | { | ||
17063 | return setexeccon (); | ||
17064 | ; | ||
17065 | return 0; | ||
17066 | } | ||
17067 | _ACEOF | ||
17068 | if ac_fn_c_try_link "$LINENO"; then : | ||
17069 | ac_cv_lib_selinux_setexeccon=yes | ||
17070 | else | ||
17071 | ac_cv_lib_selinux_setexeccon=no | ||
17072 | fi | ||
17073 | rm -f core conftest.err conftest.$ac_objext \ | ||
17074 | conftest$ac_exeext conftest.$ac_ext | ||
17075 | LIBS=$ac_check_lib_save_LIBS | ||
17076 | fi | ||
17077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5 | ||
17078 | $as_echo "$ac_cv_lib_selinux_setexeccon" >&6; } | ||
17079 | if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then : | ||
17080 | LIBSELINUX="-lselinux" | ||
17081 | LIBS="$LIBS -lselinux" | ||
17082 | |||
17083 | else | ||
17084 | as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5 | ||
17085 | fi | ||
17086 | |||
17087 | SSHLIBS="$SSHLIBS $LIBSELINUX" | ||
17088 | SSHDLIBS="$SSHDLIBS $LIBSELINUX" | ||
17089 | for ac_func in getseuserbyname get_default_context_with_level | ||
17090 | do : | ||
17091 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17092 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
17093 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
17094 | cat >>confdefs.h <<_ACEOF | ||
17095 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17096 | _ACEOF | ||
17097 | |||
17098 | fi | ||
17099 | done | ||
17100 | |||
17101 | LIBS="$save_LIBS" | ||
17102 | fi | ||
17103 | |||
17104 | fi | ||
17105 | |||
17106 | |||
17107 | |||
17108 | |||
17109 | # Check whether user wants Kerberos 5 support | ||
17110 | KRB5_MSG="no" | ||
17111 | |||
17112 | # Check whether --with-kerberos5 was given. | ||
17113 | if test "${with_kerberos5+set}" = set; then : | ||
17114 | withval=$with_kerberos5; if test "x$withval" != "xno" ; then | ||
17115 | if test "x$withval" = "xyes" ; then | ||
17116 | KRB5ROOT="/usr/local" | ||
17117 | else | ||
17118 | KRB5ROOT=${withval} | ||
17119 | fi | ||
17120 | |||
17121 | |||
17122 | $as_echo "#define KRB5 1" >>confdefs.h | ||
17123 | |||
17124 | KRB5_MSG="yes" | ||
17125 | |||
17126 | if test -n "$ac_tool_prefix"; then | ||
17127 | # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args. | ||
17128 | set dummy ${ac_tool_prefix}krb5-config; ac_word=$2 | ||
17129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
17130 | $as_echo_n "checking for $ac_word... " >&6; } | ||
17131 | if ${ac_cv_path_KRB5CONF+:} false; then : | ||
17132 | $as_echo_n "(cached) " >&6 | ||
17133 | else | ||
17134 | case $KRB5CONF in | ||
17135 | [\\/]* | ?:[\\/]*) | ||
17136 | ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path. | ||
17137 | ;; | ||
17138 | *) | ||
17139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17140 | as_dummy="$KRB5ROOT/bin:$PATH" | ||
17141 | for as_dir in $as_dummy | ||
17142 | do | ||
17143 | IFS=$as_save_IFS | ||
17144 | test -z "$as_dir" && as_dir=. | ||
17145 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17146 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
17147 | ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext" | ||
17148 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17149 | break 2 | ||
17150 | fi | ||
17151 | done | ||
17152 | done | ||
17153 | IFS=$as_save_IFS | ||
17154 | |||
17155 | ;; | ||
17156 | esac | ||
17157 | fi | ||
17158 | KRB5CONF=$ac_cv_path_KRB5CONF | ||
17159 | if test -n "$KRB5CONF"; then | ||
17160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5 | ||
17161 | $as_echo "$KRB5CONF" >&6; } | ||
17162 | else | ||
17163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17164 | $as_echo "no" >&6; } | ||
17165 | fi | ||
17166 | |||
17167 | |||
17168 | fi | ||
17169 | if test -z "$ac_cv_path_KRB5CONF"; then | ||
17170 | ac_pt_KRB5CONF=$KRB5CONF | ||
17171 | # Extract the first word of "krb5-config", so it can be a program name with args. | ||
17172 | set dummy krb5-config; ac_word=$2 | ||
17173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
17174 | $as_echo_n "checking for $ac_word... " >&6; } | ||
17175 | if ${ac_cv_path_ac_pt_KRB5CONF+:} false; then : | ||
17176 | $as_echo_n "(cached) " >&6 | ||
17177 | else | ||
17178 | case $ac_pt_KRB5CONF in | ||
17179 | [\\/]* | ?:[\\/]*) | ||
17180 | ac_cv_path_ac_pt_KRB5CONF="$ac_pt_KRB5CONF" # Let the user override the test with a path. | ||
17181 | ;; | ||
17182 | *) | ||
17183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17184 | as_dummy="$KRB5ROOT/bin:$PATH" | ||
17185 | for as_dir in $as_dummy | ||
17186 | do | ||
17187 | IFS=$as_save_IFS | ||
17188 | test -z "$as_dir" && as_dir=. | ||
17189 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17190 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
17191 | ac_cv_path_ac_pt_KRB5CONF="$as_dir/$ac_word$ac_exec_ext" | ||
17192 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17193 | break 2 | ||
17194 | fi | ||
17195 | done | ||
17196 | done | ||
17197 | IFS=$as_save_IFS | ||
17198 | |||
17199 | ;; | ||
17200 | esac | ||
17201 | fi | ||
17202 | ac_pt_KRB5CONF=$ac_cv_path_ac_pt_KRB5CONF | ||
17203 | if test -n "$ac_pt_KRB5CONF"; then | ||
17204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONF" >&5 | ||
17205 | $as_echo "$ac_pt_KRB5CONF" >&6; } | ||
17206 | else | ||
17207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17208 | $as_echo "no" >&6; } | ||
17209 | fi | ||
17210 | |||
17211 | if test "x$ac_pt_KRB5CONF" = x; then | ||
17212 | KRB5CONF="$KRB5ROOT/bin/krb5-config" | ||
17213 | else | ||
17214 | case $cross_compiling:$ac_tool_warned in | ||
17215 | yes:) | ||
17216 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
17217 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
17218 | ac_tool_warned=yes ;; | ||
17219 | esac | ||
17220 | KRB5CONF=$ac_pt_KRB5CONF | ||
17221 | fi | ||
17222 | else | ||
17223 | KRB5CONF="$ac_cv_path_KRB5CONF" | ||
17224 | fi | ||
17225 | |||
17226 | if test -x $KRB5CONF ; then | ||
17227 | K5CFLAGS="`$KRB5CONF --cflags`" | ||
17228 | K5LIBS="`$KRB5CONF --libs`" | ||
17229 | CPPFLAGS="$CPPFLAGS $K5CFLAGS" | ||
17230 | |||
17231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5 | ||
17232 | $as_echo_n "checking for gssapi support... " >&6; } | ||
17233 | if $KRB5CONF | grep gssapi >/dev/null ; then | ||
17234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17235 | $as_echo "yes" >&6; } | ||
17236 | |||
17237 | $as_echo "#define GSSAPI 1" >>confdefs.h | ||
17238 | |||
17239 | GSSCFLAGS="`$KRB5CONF --cflags gssapi`" | ||
17240 | GSSLIBS="`$KRB5CONF --libs gssapi`" | ||
17241 | CPPFLAGS="$CPPFLAGS $GSSCFLAGS" | ||
17242 | else | ||
17243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17244 | $as_echo "no" >&6; } | ||
17245 | fi | ||
17246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 | ||
17247 | $as_echo_n "checking whether we are using Heimdal... " >&6; } | ||
17248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17249 | /* end confdefs.h. */ | ||
17250 | #include <krb5.h> | ||
17251 | |||
17252 | int | ||
17253 | main () | ||
17254 | { | ||
17255 | char *tmp = heimdal_version; | ||
17256 | ; | ||
17257 | return 0; | ||
17258 | } | ||
17259 | _ACEOF | ||
17260 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17262 | $as_echo "yes" >&6; } | ||
17263 | |||
17264 | $as_echo "#define HEIMDAL 1" >>confdefs.h | ||
17265 | |||
17266 | else | ||
17267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17268 | $as_echo "no" >&6; } | ||
17269 | |||
17270 | fi | ||
17271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17272 | else | ||
17273 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
17274 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
17275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 | ||
17276 | $as_echo_n "checking whether we are using Heimdal... " >&6; } | ||
17277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17278 | /* end confdefs.h. */ | ||
17279 | #include <krb5.h> | ||
17280 | |||
17281 | int | ||
17282 | main () | ||
17283 | { | ||
17284 | char *tmp = heimdal_version; | ||
17285 | ; | ||
17286 | return 0; | ||
17287 | } | ||
17288 | _ACEOF | ||
17289 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17291 | $as_echo "yes" >&6; } | ||
17292 | $as_echo "#define HEIMDAL 1" >>confdefs.h | ||
17293 | |||
17294 | K5LIBS="-lkrb5" | ||
17295 | K5LIBS="$K5LIBS -lcom_err -lasn1" | ||
17296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5 | ||
17297 | $as_echo_n "checking for net_write in -lroken... " >&6; } | ||
17298 | if ${ac_cv_lib_roken_net_write+:} false; then : | ||
17299 | $as_echo_n "(cached) " >&6 | ||
17300 | else | ||
17301 | ac_check_lib_save_LIBS=$LIBS | ||
17302 | LIBS="-lroken $LIBS" | ||
17303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17304 | /* end confdefs.h. */ | ||
17305 | |||
17306 | /* Override any GCC internal prototype to avoid an error. | ||
17307 | Use char because int might match the return type of a GCC | ||
17308 | builtin and then its argument prototype would still apply. */ | ||
17309 | #ifdef __cplusplus | ||
17310 | extern "C" | ||
17311 | #endif | ||
17312 | char net_write (); | ||
17313 | int | ||
17314 | main () | ||
17315 | { | ||
17316 | return net_write (); | ||
17317 | ; | ||
17318 | return 0; | ||
17319 | } | ||
17320 | _ACEOF | ||
17321 | if ac_fn_c_try_link "$LINENO"; then : | ||
17322 | ac_cv_lib_roken_net_write=yes | ||
17323 | else | ||
17324 | ac_cv_lib_roken_net_write=no | ||
17325 | fi | ||
17326 | rm -f core conftest.err conftest.$ac_objext \ | ||
17327 | conftest$ac_exeext conftest.$ac_ext | ||
17328 | LIBS=$ac_check_lib_save_LIBS | ||
17329 | fi | ||
17330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5 | ||
17331 | $as_echo "$ac_cv_lib_roken_net_write" >&6; } | ||
17332 | if test "x$ac_cv_lib_roken_net_write" = xyes; then : | ||
17333 | K5LIBS="$K5LIBS -lroken" | ||
17334 | fi | ||
17335 | |||
17336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5 | ||
17337 | $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } | ||
17338 | if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then : | ||
17339 | $as_echo_n "(cached) " >&6 | ||
17340 | else | ||
17341 | ac_check_lib_save_LIBS=$LIBS | ||
17342 | LIBS="-ldes $LIBS" | ||
17343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17344 | /* end confdefs.h. */ | ||
17345 | |||
17346 | /* Override any GCC internal prototype to avoid an error. | ||
17347 | Use char because int might match the return type of a GCC | ||
17348 | builtin and then its argument prototype would still apply. */ | ||
17349 | #ifdef __cplusplus | ||
17350 | extern "C" | ||
17351 | #endif | ||
17352 | char des_cbc_encrypt (); | ||
17353 | int | ||
17354 | main () | ||
17355 | { | ||
17356 | return des_cbc_encrypt (); | ||
17357 | ; | ||
17358 | return 0; | ||
17359 | } | ||
17360 | _ACEOF | ||
17361 | if ac_fn_c_try_link "$LINENO"; then : | ||
17362 | ac_cv_lib_des_des_cbc_encrypt=yes | ||
17363 | else | ||
17364 | ac_cv_lib_des_des_cbc_encrypt=no | ||
17365 | fi | ||
17366 | rm -f core conftest.err conftest.$ac_objext \ | ||
17367 | conftest$ac_exeext conftest.$ac_ext | ||
17368 | LIBS=$ac_check_lib_save_LIBS | ||
17369 | fi | ||
17370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 | ||
17371 | $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } | ||
17372 | if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then : | ||
17373 | K5LIBS="$K5LIBS -ldes" | ||
17374 | fi | ||
17375 | |||
17376 | |||
17377 | else | ||
17378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17379 | $as_echo "no" >&6; } | ||
17380 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
17381 | |||
17382 | fi | ||
17383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5 | ||
17385 | $as_echo_n "checking for library containing dn_expand... " >&6; } | ||
17386 | if ${ac_cv_search_dn_expand+:} false; then : | ||
17387 | $as_echo_n "(cached) " >&6 | ||
17388 | else | ||
17389 | ac_func_search_save_LIBS=$LIBS | ||
17390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17391 | /* end confdefs.h. */ | ||
17392 | |||
17393 | /* Override any GCC internal prototype to avoid an error. | ||
17394 | Use char because int might match the return type of a GCC | ||
17395 | builtin and then its argument prototype would still apply. */ | ||
17396 | #ifdef __cplusplus | ||
17397 | extern "C" | ||
17398 | #endif | ||
17399 | char dn_expand (); | ||
17400 | int | ||
17401 | main () | ||
17402 | { | ||
17403 | return dn_expand (); | ||
17404 | ; | ||
17405 | return 0; | ||
17406 | } | ||
17407 | _ACEOF | ||
17408 | for ac_lib in '' resolv; do | ||
17409 | if test -z "$ac_lib"; then | ||
17410 | ac_res="none required" | ||
17411 | else | ||
17412 | ac_res=-l$ac_lib | ||
17413 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
17414 | fi | ||
17415 | if ac_fn_c_try_link "$LINENO"; then : | ||
17416 | ac_cv_search_dn_expand=$ac_res | ||
17417 | fi | ||
17418 | rm -f core conftest.err conftest.$ac_objext \ | ||
17419 | conftest$ac_exeext | ||
17420 | if ${ac_cv_search_dn_expand+:} false; then : | ||
17421 | break | ||
17422 | fi | ||
17423 | done | ||
17424 | if ${ac_cv_search_dn_expand+:} false; then : | ||
17425 | |||
17426 | else | ||
17427 | ac_cv_search_dn_expand=no | ||
17428 | fi | ||
17429 | rm conftest.$ac_ext | ||
17430 | LIBS=$ac_func_search_save_LIBS | ||
17431 | fi | ||
17432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5 | ||
17433 | $as_echo "$ac_cv_search_dn_expand" >&6; } | ||
17434 | ac_res=$ac_cv_search_dn_expand | ||
17435 | if test "$ac_res" != no; then : | ||
17436 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
17437 | |||
17438 | fi | ||
17439 | |||
17440 | |||
17441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5 | ||
17442 | $as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; } | ||
17443 | if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then : | ||
17444 | $as_echo_n "(cached) " >&6 | ||
17445 | else | ||
17446 | ac_check_lib_save_LIBS=$LIBS | ||
17447 | LIBS="-lgssapi_krb5 $LIBS" | ||
17448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17449 | /* end confdefs.h. */ | ||
17450 | |||
17451 | /* Override any GCC internal prototype to avoid an error. | ||
17452 | Use char because int might match the return type of a GCC | ||
17453 | builtin and then its argument prototype would still apply. */ | ||
17454 | #ifdef __cplusplus | ||
17455 | extern "C" | ||
17456 | #endif | ||
17457 | char gss_init_sec_context (); | ||
17458 | int | ||
17459 | main () | ||
17460 | { | ||
17461 | return gss_init_sec_context (); | ||
17462 | ; | ||
17463 | return 0; | ||
17464 | } | ||
17465 | _ACEOF | ||
17466 | if ac_fn_c_try_link "$LINENO"; then : | ||
17467 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes | ||
17468 | else | ||
17469 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no | ||
17470 | fi | ||
17471 | rm -f core conftest.err conftest.$ac_objext \ | ||
17472 | conftest$ac_exeext conftest.$ac_ext | ||
17473 | LIBS=$ac_check_lib_save_LIBS | ||
17474 | fi | ||
17475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 | ||
17476 | $as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } | ||
17477 | if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then : | ||
17478 | $as_echo "#define GSSAPI 1" >>confdefs.h | ||
17479 | |||
17480 | GSSLIBS="-lgssapi_krb5" | ||
17481 | else | ||
17482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5 | ||
17483 | $as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; } | ||
17484 | if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then : | ||
17485 | $as_echo_n "(cached) " >&6 | ||
17486 | else | ||
17487 | ac_check_lib_save_LIBS=$LIBS | ||
17488 | LIBS="-lgssapi $LIBS" | ||
17489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17490 | /* end confdefs.h. */ | ||
17491 | |||
17492 | /* Override any GCC internal prototype to avoid an error. | ||
17493 | Use char because int might match the return type of a GCC | ||
17494 | builtin and then its argument prototype would still apply. */ | ||
17495 | #ifdef __cplusplus | ||
17496 | extern "C" | ||
17497 | #endif | ||
17498 | char gss_init_sec_context (); | ||
17499 | int | ||
17500 | main () | ||
17501 | { | ||
17502 | return gss_init_sec_context (); | ||
17503 | ; | ||
17504 | return 0; | ||
17505 | } | ||
17506 | _ACEOF | ||
17507 | if ac_fn_c_try_link "$LINENO"; then : | ||
17508 | ac_cv_lib_gssapi_gss_init_sec_context=yes | ||
17509 | else | ||
17510 | ac_cv_lib_gssapi_gss_init_sec_context=no | ||
17511 | fi | ||
17512 | rm -f core conftest.err conftest.$ac_objext \ | ||
17513 | conftest$ac_exeext conftest.$ac_ext | ||
17514 | LIBS=$ac_check_lib_save_LIBS | ||
17515 | fi | ||
17516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 | ||
17517 | $as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } | ||
17518 | if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then : | ||
17519 | $as_echo "#define GSSAPI 1" >>confdefs.h | ||
17520 | |||
17521 | GSSLIBS="-lgssapi" | ||
17522 | else | ||
17523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgss" >&5 | ||
17524 | $as_echo_n "checking for gss_init_sec_context in -lgss... " >&6; } | ||
17525 | if ${ac_cv_lib_gss_gss_init_sec_context+:} false; then : | ||
17526 | $as_echo_n "(cached) " >&6 | ||
17527 | else | ||
17528 | ac_check_lib_save_LIBS=$LIBS | ||
17529 | LIBS="-lgss $LIBS" | ||
17530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17531 | /* end confdefs.h. */ | ||
17532 | |||
17533 | /* Override any GCC internal prototype to avoid an error. | ||
17534 | Use char because int might match the return type of a GCC | ||
17535 | builtin and then its argument prototype would still apply. */ | ||
17536 | #ifdef __cplusplus | ||
17537 | extern "C" | ||
17538 | #endif | ||
17539 | char gss_init_sec_context (); | ||
17540 | int | ||
17541 | main () | ||
17542 | { | ||
17543 | return gss_init_sec_context (); | ||
17544 | ; | ||
17545 | return 0; | ||
17546 | } | ||
17547 | _ACEOF | ||
17548 | if ac_fn_c_try_link "$LINENO"; then : | ||
17549 | ac_cv_lib_gss_gss_init_sec_context=yes | ||
17550 | else | ||
17551 | ac_cv_lib_gss_gss_init_sec_context=no | ||
17552 | fi | ||
17553 | rm -f core conftest.err conftest.$ac_objext \ | ||
17554 | conftest$ac_exeext conftest.$ac_ext | ||
17555 | LIBS=$ac_check_lib_save_LIBS | ||
17556 | fi | ||
17557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_init_sec_context" >&5 | ||
17558 | $as_echo "$ac_cv_lib_gss_gss_init_sec_context" >&6; } | ||
17559 | if test "x$ac_cv_lib_gss_gss_init_sec_context" = xyes; then : | ||
17560 | $as_echo "#define GSSAPI 1" >>confdefs.h | ||
17561 | |||
17562 | GSSLIBS="-lgss" | ||
17563 | else | ||
17564 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 | ||
17565 | $as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} | ||
17566 | fi | ||
17567 | |||
17568 | |||
17569 | fi | ||
17570 | |||
17571 | |||
17572 | fi | ||
17573 | |||
17574 | |||
17575 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" | ||
17576 | if test "x$ac_cv_header_gssapi_h" = xyes; then : | ||
17577 | |||
17578 | else | ||
17579 | unset ac_cv_header_gssapi_h | ||
17580 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
17581 | for ac_header in gssapi.h | ||
17582 | do : | ||
17583 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" | ||
17584 | if test "x$ac_cv_header_gssapi_h" = xyes; then : | ||
17585 | cat >>confdefs.h <<_ACEOF | ||
17586 | #define HAVE_GSSAPI_H 1 | ||
17587 | _ACEOF | ||
17588 | |||
17589 | else | ||
17590 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 | ||
17591 | $as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} | ||
17592 | |||
17593 | fi | ||
17594 | |||
17595 | done | ||
17596 | |||
17597 | |||
17598 | |||
17599 | fi | ||
17600 | |||
17601 | |||
17602 | |||
17603 | oldCPP="$CPPFLAGS" | ||
17604 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
17605 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default" | ||
17606 | if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then : | ||
17607 | |||
17608 | else | ||
17609 | CPPFLAGS="$oldCPP" | ||
17610 | fi | ||
17611 | |||
17612 | |||
17613 | |||
17614 | fi | ||
17615 | if test ! -z "$need_dash_r" ; then | ||
17616 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
17617 | fi | ||
17618 | if test ! -z "$blibpath" ; then | ||
17619 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
17620 | fi | ||
17621 | |||
17622 | for ac_header in gssapi.h gssapi/gssapi.h | ||
17623 | do : | ||
17624 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
17625 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
17626 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
17627 | cat >>confdefs.h <<_ACEOF | ||
17628 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
17629 | _ACEOF | ||
17630 | |||
17631 | fi | ||
17632 | |||
17633 | done | ||
17634 | |||
17635 | for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h | ||
17636 | do : | ||
17637 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
17638 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
17639 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
17640 | cat >>confdefs.h <<_ACEOF | ||
17641 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
17642 | _ACEOF | ||
17643 | |||
17644 | fi | ||
17645 | |||
17646 | done | ||
17647 | |||
17648 | for ac_header in gssapi_generic.h gssapi/gssapi_generic.h | ||
17649 | do : | ||
17650 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
17651 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
17652 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
17653 | cat >>confdefs.h <<_ACEOF | ||
17654 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
17655 | _ACEOF | ||
17656 | |||
17657 | fi | ||
17658 | |||
17659 | done | ||
17660 | |||
17661 | |||
17662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5 | ||
17663 | $as_echo_n "checking for library containing k_hasafs... " >&6; } | ||
17664 | if ${ac_cv_search_k_hasafs+:} false; then : | ||
17665 | $as_echo_n "(cached) " >&6 | ||
17666 | else | ||
17667 | ac_func_search_save_LIBS=$LIBS | ||
17668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17669 | /* end confdefs.h. */ | ||
17670 | |||
17671 | /* Override any GCC internal prototype to avoid an error. | ||
17672 | Use char because int might match the return type of a GCC | ||
17673 | builtin and then its argument prototype would still apply. */ | ||
17674 | #ifdef __cplusplus | ||
17675 | extern "C" | ||
17676 | #endif | ||
17677 | char k_hasafs (); | ||
17678 | int | ||
17679 | main () | ||
17680 | { | ||
17681 | return k_hasafs (); | ||
17682 | ; | ||
17683 | return 0; | ||
17684 | } | ||
17685 | _ACEOF | ||
17686 | for ac_lib in '' kafs; do | ||
17687 | if test -z "$ac_lib"; then | ||
17688 | ac_res="none required" | ||
17689 | else | ||
17690 | ac_res=-l$ac_lib | ||
17691 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
17692 | fi | ||
17693 | if ac_fn_c_try_link "$LINENO"; then : | ||
17694 | ac_cv_search_k_hasafs=$ac_res | ||
17695 | fi | ||
17696 | rm -f core conftest.err conftest.$ac_objext \ | ||
17697 | conftest$ac_exeext | ||
17698 | if ${ac_cv_search_k_hasafs+:} false; then : | ||
17699 | break | ||
17700 | fi | ||
17701 | done | ||
17702 | if ${ac_cv_search_k_hasafs+:} false; then : | ||
17703 | |||
17704 | else | ||
17705 | ac_cv_search_k_hasafs=no | ||
17706 | fi | ||
17707 | rm conftest.$ac_ext | ||
17708 | LIBS=$ac_func_search_save_LIBS | ||
17709 | fi | ||
17710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5 | ||
17711 | $as_echo "$ac_cv_search_k_hasafs" >&6; } | ||
17712 | ac_res=$ac_cv_search_k_hasafs | ||
17713 | if test "$ac_res" != no; then : | ||
17714 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
17715 | |||
17716 | $as_echo "#define USE_AFS 1" >>confdefs.h | ||
17717 | |||
17718 | fi | ||
17719 | |||
17720 | |||
17721 | ac_fn_c_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" " | ||
17722 | #ifdef HAVE_GSSAPI_H | ||
17723 | # include <gssapi.h> | ||
17724 | #elif defined(HAVE_GSSAPI_GSSAPI_H) | ||
17725 | # include <gssapi/gssapi.h> | ||
17726 | #endif | ||
17727 | |||
17728 | #ifdef HAVE_GSSAPI_GENERIC_H | ||
17729 | # include <gssapi_generic.h> | ||
17730 | #elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H) | ||
17731 | # include <gssapi/gssapi_generic.h> | ||
17732 | #endif | ||
17733 | |||
17734 | " | ||
17735 | if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then : | ||
17736 | ac_have_decl=1 | ||
17737 | else | ||
17738 | ac_have_decl=0 | ||
17739 | fi | ||
17740 | |||
17741 | cat >>confdefs.h <<_ACEOF | ||
17742 | #define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE $ac_have_decl | ||
17743 | _ACEOF | ||
17744 | |||
17745 | saved_LIBS="$LIBS" | ||
17746 | LIBS="$LIBS $K5LIBS" | ||
17747 | for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message | ||
17748 | do : | ||
17749 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17750 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
17751 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
17752 | cat >>confdefs.h <<_ACEOF | ||
17753 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17754 | _ACEOF | ||
17755 | |||
17756 | fi | ||
17757 | done | ||
17758 | |||
17759 | LIBS="$saved_LIBS" | ||
17760 | |||
17761 | fi | ||
17762 | |||
17763 | |||
17764 | fi | ||
17765 | |||
17766 | |||
17767 | |||
17768 | |||
17769 | # Looking for programs, paths and files | ||
17770 | |||
17771 | PRIVSEP_PATH=/var/empty | ||
17772 | |||
17773 | # Check whether --with-privsep-path was given. | ||
17774 | if test "${with_privsep_path+set}" = set; then : | ||
17775 | withval=$with_privsep_path; | ||
17776 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
17777 | test "x${withval}" != "xyes"; then | ||
17778 | PRIVSEP_PATH=$withval | ||
17779 | fi | ||
17780 | |||
17781 | |||
17782 | fi | ||
17783 | |||
17784 | |||
17785 | |||
17786 | |||
17787 | # Check whether --with-xauth was given. | ||
17788 | if test "${with_xauth+set}" = set; then : | ||
17789 | withval=$with_xauth; | ||
17790 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
17791 | test "x${withval}" != "xyes"; then | ||
17792 | xauth_path=$withval | ||
17793 | fi | ||
17794 | |||
17795 | else | ||
17796 | |||
17797 | TestPath="$PATH" | ||
17798 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
17799 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
17800 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
17801 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
17802 | # Extract the first word of "xauth", so it can be a program name with args. | ||
17803 | set dummy xauth; ac_word=$2 | ||
17804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
17805 | $as_echo_n "checking for $ac_word... " >&6; } | ||
17806 | if ${ac_cv_path_xauth_path+:} false; then : | ||
17807 | $as_echo_n "(cached) " >&6 | ||
17808 | else | ||
17809 | case $xauth_path in | ||
17810 | [\\/]* | ?:[\\/]*) | ||
17811 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
17812 | ;; | ||
17813 | *) | ||
17814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17815 | for as_dir in $TestPath | ||
17816 | do | ||
17817 | IFS=$as_save_IFS | ||
17818 | test -z "$as_dir" && as_dir=. | ||
17819 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17820 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
17821 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" | ||
17822 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17823 | break 2 | ||
17824 | fi | ||
17825 | done | ||
17826 | done | ||
17827 | IFS=$as_save_IFS | ||
17828 | |||
17829 | ;; | ||
17830 | esac | ||
17831 | fi | ||
17832 | xauth_path=$ac_cv_path_xauth_path | ||
17833 | if test -n "$xauth_path"; then | ||
17834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5 | ||
17835 | $as_echo "$xauth_path" >&6; } | ||
17836 | else | ||
17837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17838 | $as_echo "no" >&6; } | ||
17839 | fi | ||
17840 | |||
17841 | |||
17842 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
17843 | xauth_path="/usr/openwin/bin/xauth" | ||
17844 | fi | ||
17845 | |||
17846 | |||
17847 | fi | ||
17848 | |||
17849 | |||
17850 | STRIP_OPT=-s | ||
17851 | # Check whether --enable-strip was given. | ||
17852 | if test "${enable_strip+set}" = set; then : | ||
17853 | enableval=$enable_strip; | ||
17854 | if test "x$enableval" = "xno" ; then | ||
17855 | STRIP_OPT= | ||
17856 | fi | ||
17857 | |||
17858 | |||
17859 | fi | ||
17860 | |||
17861 | |||
17862 | |||
17863 | if test -z "$xauth_path" ; then | ||
17864 | XAUTH_PATH="undefined" | ||
17865 | |||
17866 | else | ||
17867 | |||
17868 | cat >>confdefs.h <<_ACEOF | ||
17869 | #define XAUTH_PATH "$xauth_path" | ||
17870 | _ACEOF | ||
17871 | |||
17872 | XAUTH_PATH=$xauth_path | ||
17873 | |||
17874 | fi | ||
17875 | |||
17876 | # Check for mail directory | ||
17877 | |||
17878 | # Check whether --with-maildir was given. | ||
17879 | if test "${with_maildir+set}" = set; then : | ||
17880 | withval=$with_maildir; | ||
17881 | if test "X$withval" != X && test "x$withval" != xno && \ | ||
17882 | test "x${withval}" != xyes; then | ||
17883 | |||
17884 | cat >>confdefs.h <<_ACEOF | ||
17885 | #define MAIL_DIRECTORY "$withval" | ||
17886 | _ACEOF | ||
17887 | |||
17888 | fi | ||
17889 | |||
17890 | else | ||
17891 | |||
17892 | if test "X$maildir" != "X"; then | ||
17893 | cat >>confdefs.h <<_ACEOF | ||
17894 | #define MAIL_DIRECTORY "$maildir" | ||
17895 | _ACEOF | ||
17896 | |||
17897 | else | ||
17898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5 | ||
17899 | $as_echo_n "checking Discovering system mail directory... " >&6; } | ||
17900 | if test "$cross_compiling" = yes; then : | ||
17901 | |||
17902 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5 | ||
17903 | $as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;} | ||
17904 | |||
17905 | |||
17906 | else | ||
17907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17908 | /* end confdefs.h. */ | ||
17909 | |||
17910 | #include <stdio.h> | ||
17911 | #include <string.h> | ||
17912 | #ifdef HAVE_PATHS_H | ||
17913 | #include <paths.h> | ||
17914 | #endif | ||
17915 | #ifdef HAVE_MAILLOCK_H | ||
17916 | #include <maillock.h> | ||
17917 | #endif | ||
17918 | #define DATA "conftest.maildir" | ||
17919 | |||
17920 | int | ||
17921 | main () | ||
17922 | { | ||
17923 | |||
17924 | FILE *fd; | ||
17925 | int rc; | ||
17926 | |||
17927 | fd = fopen(DATA,"w"); | ||
17928 | if(fd == NULL) | ||
17929 | exit(1); | ||
17930 | |||
17931 | #if defined (_PATH_MAILDIR) | ||
17932 | if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0) | ||
17933 | exit(1); | ||
17934 | #elif defined (MAILDIR) | ||
17935 | if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0) | ||
17936 | exit(1); | ||
17937 | #elif defined (_PATH_MAIL) | ||
17938 | if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0) | ||
17939 | exit(1); | ||
17940 | #else | ||
17941 | exit (2); | ||
17942 | #endif | ||
17943 | |||
17944 | exit(0); | ||
17945 | |||
17946 | ; | ||
17947 | return 0; | ||
17948 | } | ||
17949 | _ACEOF | ||
17950 | if ac_fn_c_try_run "$LINENO"; then : | ||
17951 | |||
17952 | maildir_what=`awk -F: '{print $1}' conftest.maildir` | ||
17953 | maildir=`awk -F: '{print $2}' conftest.maildir \ | ||
17954 | | sed 's|/$||'` | ||
17955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5 | ||
17956 | $as_echo "Using: $maildir from $maildir_what" >&6; } | ||
17957 | if test "x$maildir_what" != "x_PATH_MAILDIR"; then | ||
17958 | cat >>confdefs.h <<_ACEOF | ||
17959 | #define MAIL_DIRECTORY "$maildir" | ||
17960 | _ACEOF | ||
17961 | |||
17962 | fi | ||
17963 | |||
17964 | else | ||
17965 | |||
17966 | if test "X$ac_status" = "X2";then | ||
17967 | # our test program didn't find it. Default to /var/spool/mail | ||
17968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5 | ||
17969 | $as_echo "Using: default value of /var/spool/mail" >&6; } | ||
17970 | cat >>confdefs.h <<_ACEOF | ||
17971 | #define MAIL_DIRECTORY "/var/spool/mail" | ||
17972 | _ACEOF | ||
17973 | |||
17974 | else | ||
17975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5 | ||
17976 | $as_echo "*** not found ***" >&6; } | ||
17977 | fi | ||
17978 | |||
17979 | fi | ||
17980 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
17981 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
17982 | fi | ||
17983 | |||
17984 | fi | ||
17985 | |||
17986 | |||
17987 | fi | ||
17988 | # maildir | ||
17989 | |||
17990 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then | ||
17991 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5 | ||
17992 | $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;} | ||
17993 | disable_ptmx_check=yes | ||
17994 | fi | ||
17995 | if test -z "$no_dev_ptmx" ; then | ||
17996 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
17997 | as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh` | ||
17998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5 | ||
17999 | $as_echo_n "checking for \"/dev/ptmx\"... " >&6; } | ||
18000 | if eval \${$as_ac_File+:} false; then : | ||
18001 | $as_echo_n "(cached) " >&6 | ||
18002 | else | ||
18003 | test "$cross_compiling" = yes && | ||
18004 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||
18005 | if test -r ""/dev/ptmx""; then | ||
18006 | eval "$as_ac_File=yes" | ||
18007 | else | ||
18008 | eval "$as_ac_File=no" | ||
18009 | fi | ||
18010 | fi | ||
18011 | eval ac_res=\$$as_ac_File | ||
18012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
18013 | $as_echo "$ac_res" >&6; } | ||
18014 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : | ||
18015 | |||
18016 | |||
18017 | cat >>confdefs.h <<_ACEOF | ||
18018 | #define HAVE_DEV_PTMX 1 | ||
18019 | _ACEOF | ||
18020 | |||
18021 | have_dev_ptmx=1 | ||
18022 | |||
18023 | |||
18024 | fi | ||
18025 | |||
18026 | fi | ||
18027 | fi | ||
18028 | |||
18029 | if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then | ||
18030 | as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh` | ||
18031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5 | ||
18032 | $as_echo_n "checking for \"/dev/ptc\"... " >&6; } | ||
18033 | if eval \${$as_ac_File+:} false; then : | ||
18034 | $as_echo_n "(cached) " >&6 | ||
18035 | else | ||
18036 | test "$cross_compiling" = yes && | ||
18037 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||
18038 | if test -r ""/dev/ptc""; then | ||
18039 | eval "$as_ac_File=yes" | ||
18040 | else | ||
18041 | eval "$as_ac_File=no" | ||
18042 | fi | ||
18043 | fi | ||
18044 | eval ac_res=\$$as_ac_File | ||
18045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
18046 | $as_echo "$ac_res" >&6; } | ||
18047 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : | ||
18048 | |||
18049 | |||
18050 | cat >>confdefs.h <<_ACEOF | ||
18051 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
18052 | _ACEOF | ||
18053 | |||
18054 | have_dev_ptc=1 | ||
18055 | |||
18056 | |||
18057 | fi | ||
18058 | |||
18059 | else | ||
18060 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5 | ||
18061 | $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;} | ||
18062 | fi | ||
18063 | |||
18064 | # Options from here on. Some of these are preset by platform above | ||
18065 | |||
18066 | # Check whether --with-mantype was given. | ||
18067 | if test "${with_mantype+set}" = set; then : | ||
18068 | withval=$with_mantype; | ||
18069 | case "$withval" in | ||
18070 | man|cat|doc) | ||
18071 | MANTYPE=$withval | ||
18072 | ;; | ||
18073 | *) | ||
18074 | as_fn_error $? "invalid man type: $withval" "$LINENO" 5 | ||
18075 | ;; | ||
18076 | esac | ||
18077 | |||
18078 | |||
18079 | fi | ||
18080 | |||
18081 | if test -z "$MANTYPE"; then | ||
18082 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
18083 | for ac_prog in nroff awf | ||
18084 | do | ||
18085 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
18086 | set dummy $ac_prog; ac_word=$2 | ||
18087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
18088 | $as_echo_n "checking for $ac_word... " >&6; } | ||
18089 | if ${ac_cv_path_NROFF+:} false; then : | ||
18090 | $as_echo_n "(cached) " >&6 | ||
18091 | else | ||
18092 | case $NROFF in | ||
18093 | [\\/]* | ?:[\\/]*) | ||
18094 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
18095 | ;; | ||
18096 | *) | ||
18097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18098 | for as_dir in $TestPath | ||
18099 | do | ||
18100 | IFS=$as_save_IFS | ||
18101 | test -z "$as_dir" && as_dir=. | ||
18102 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18103 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
18104 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
18105 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18106 | break 2 | ||
18107 | fi | ||
18108 | done | ||
18109 | done | ||
18110 | IFS=$as_save_IFS | ||
18111 | |||
18112 | ;; | ||
18113 | esac | ||
18114 | fi | ||
18115 | NROFF=$ac_cv_path_NROFF | ||
18116 | if test -n "$NROFF"; then | ||
18117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 | ||
18118 | $as_echo "$NROFF" >&6; } | ||
18119 | else | ||
18120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18121 | $as_echo "no" >&6; } | ||
18122 | fi | ||
18123 | |||
18124 | |||
18125 | test -n "$NROFF" && break | ||
18126 | done | ||
18127 | test -n "$NROFF" || NROFF="/bin/false" | ||
18128 | |||
18129 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
18130 | MANTYPE=doc | ||
18131 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
18132 | MANTYPE=man | ||
18133 | else | ||
18134 | MANTYPE=cat | ||
18135 | fi | ||
18136 | fi | ||
18137 | |||
18138 | if test "$MANTYPE" = "doc"; then | ||
18139 | mansubdir=man; | ||
18140 | else | ||
18141 | mansubdir=$MANTYPE; | ||
18142 | fi | ||
18143 | |||
18144 | |||
18145 | # Check whether to enable MD5 passwords | ||
18146 | MD5_MSG="no" | ||
18147 | |||
18148 | # Check whether --with-md5-passwords was given. | ||
18149 | if test "${with_md5_passwords+set}" = set; then : | ||
18150 | withval=$with_md5_passwords; | ||
18151 | if test "x$withval" != "xno" ; then | ||
18152 | |||
18153 | $as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h | ||
18154 | |||
18155 | MD5_MSG="yes" | ||
18156 | fi | ||
18157 | |||
18158 | |||
18159 | fi | ||
18160 | |||
18161 | |||
18162 | # Whether to disable shadow password support | ||
18163 | |||
18164 | # Check whether --with-shadow was given. | ||
18165 | if test "${with_shadow+set}" = set; then : | ||
18166 | withval=$with_shadow; | ||
18167 | if test "x$withval" = "xno" ; then | ||
18168 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h | ||
18169 | |||
18170 | disable_shadow=yes | ||
18171 | fi | ||
18172 | |||
18173 | |||
18174 | fi | ||
18175 | |||
18176 | |||
18177 | if test -z "$disable_shadow" ; then | ||
18178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5 | ||
18179 | $as_echo_n "checking if the systems has expire shadow information... " >&6; } | ||
18180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18181 | /* end confdefs.h. */ | ||
18182 | |||
18183 | #include <sys/types.h> | ||
18184 | #include <shadow.h> | ||
18185 | struct spwd sp; | ||
18186 | |||
18187 | int | ||
18188 | main () | ||
18189 | { | ||
18190 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
18191 | ; | ||
18192 | return 0; | ||
18193 | } | ||
18194 | _ACEOF | ||
18195 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18196 | sp_expire_available=yes | ||
18197 | fi | ||
18198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18199 | |||
18200 | if test "x$sp_expire_available" = "xyes" ; then | ||
18201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18202 | $as_echo "yes" >&6; } | ||
18203 | |||
18204 | $as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h | ||
18205 | |||
18206 | else | ||
18207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18208 | $as_echo "no" >&6; } | ||
18209 | fi | ||
18210 | fi | ||
18211 | |||
18212 | # Use ip address instead of hostname in $DISPLAY | ||
18213 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
18214 | DISPLAY_HACK_MSG="yes" | ||
18215 | |||
18216 | $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h | ||
18217 | |||
18218 | else | ||
18219 | DISPLAY_HACK_MSG="no" | ||
18220 | |||
18221 | # Check whether --with-ipaddr-display was given. | ||
18222 | if test "${with_ipaddr_display+set}" = set; then : | ||
18223 | withval=$with_ipaddr_display; | ||
18224 | if test "x$withval" != "xno" ; then | ||
18225 | $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h | ||
18226 | |||
18227 | DISPLAY_HACK_MSG="yes" | ||
18228 | fi | ||
18229 | |||
18230 | |||
18231 | fi | ||
18232 | |||
18233 | fi | ||
18234 | |||
18235 | # check for /etc/default/login and use it if present. | ||
18236 | # Check whether --enable-etc-default-login was given. | ||
18237 | if test "${enable_etc_default_login+set}" = set; then : | ||
18238 | enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then | ||
18239 | { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5 | ||
18240 | $as_echo "$as_me: /etc/default/login handling disabled" >&6;} | ||
18241 | etc_default_login=no | ||
18242 | else | ||
18243 | etc_default_login=yes | ||
18244 | fi | ||
18245 | else | ||
18246 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; | ||
18247 | then | ||
18248 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5 | ||
18249 | $as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;} | ||
18250 | etc_default_login=no | ||
18251 | else | ||
18252 | etc_default_login=yes | ||
18253 | fi | ||
18254 | |||
18255 | fi | ||
18256 | |||
18257 | |||
18258 | if test "x$etc_default_login" != "xno"; then | ||
18259 | as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh` | ||
18260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5 | ||
18261 | $as_echo_n "checking for \"/etc/default/login\"... " >&6; } | ||
18262 | if eval \${$as_ac_File+:} false; then : | ||
18263 | $as_echo_n "(cached) " >&6 | ||
18264 | else | ||
18265 | test "$cross_compiling" = yes && | ||
18266 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||
18267 | if test -r ""/etc/default/login""; then | ||
18268 | eval "$as_ac_File=yes" | ||
18269 | else | ||
18270 | eval "$as_ac_File=no" | ||
18271 | fi | ||
18272 | fi | ||
18273 | eval ac_res=\$$as_ac_File | ||
18274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
18275 | $as_echo "$ac_res" >&6; } | ||
18276 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : | ||
18277 | external_path_file=/etc/default/login | ||
18278 | fi | ||
18279 | |||
18280 | if test "x$external_path_file" = "x/etc/default/login"; then | ||
18281 | |||
18282 | $as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h | ||
18283 | |||
18284 | fi | ||
18285 | fi | ||
18286 | |||
18287 | if test $ac_cv_func_login_getcapbool = "yes" && \ | ||
18288 | test $ac_cv_header_login_cap_h = "yes" ; then | ||
18289 | external_path_file=/etc/login.conf | ||
18290 | fi | ||
18291 | |||
18292 | # Whether to mess with the default path | ||
18293 | SERVER_PATH_MSG="(default)" | ||
18294 | |||
18295 | # Check whether --with-default-path was given. | ||
18296 | if test "${with_default_path+set}" = set; then : | ||
18297 | withval=$with_default_path; | ||
18298 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
18299 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ||
18300 | --with-default-path=PATH has no effect on this system. | ||
18301 | Edit /etc/login.conf instead." >&5 | ||
18302 | $as_echo "$as_me: WARNING: | ||
18303 | --with-default-path=PATH has no effect on this system. | ||
18304 | Edit /etc/login.conf instead." >&2;} | ||
18305 | elif test "x$withval" != "xno" ; then | ||
18306 | if test ! -z "$external_path_file" ; then | ||
18307 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ||
18308 | --with-default-path=PATH will only be used if PATH is not defined in | ||
18309 | $external_path_file ." >&5 | ||
18310 | $as_echo "$as_me: WARNING: | ||
18311 | --with-default-path=PATH will only be used if PATH is not defined in | ||
18312 | $external_path_file ." >&2;} | ||
18313 | fi | ||
18314 | user_path="$withval" | ||
18315 | SERVER_PATH_MSG="$withval" | ||
18316 | fi | ||
18317 | |||
18318 | else | ||
18319 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
18320 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
18321 | $as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
18322 | else | ||
18323 | if test ! -z "$external_path_file" ; then | ||
18324 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ||
18325 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
18326 | otherwise scp will not work." >&5 | ||
18327 | $as_echo "$as_me: WARNING: | ||
18328 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
18329 | otherwise scp will not work." >&2;} | ||
18330 | fi | ||
18331 | if test "$cross_compiling" = yes; then : | ||
18332 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
18333 | |||
18334 | else | ||
18335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18336 | /* end confdefs.h. */ | ||
18337 | |||
18338 | /* find out what STDPATH is */ | ||
18339 | #include <stdio.h> | ||
18340 | #ifdef HAVE_PATHS_H | ||
18341 | # include <paths.h> | ||
18342 | #endif | ||
18343 | #ifndef _PATH_STDPATH | ||
18344 | # ifdef _PATH_USERPATH /* Irix */ | ||
18345 | # define _PATH_STDPATH _PATH_USERPATH | ||
18346 | # else | ||
18347 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
18348 | # endif | ||
18349 | #endif | ||
18350 | #include <sys/types.h> | ||
18351 | #include <sys/stat.h> | ||
18352 | #include <fcntl.h> | ||
18353 | #define DATA "conftest.stdpath" | ||
18354 | |||
18355 | int | ||
18356 | main () | ||
18357 | { | ||
18358 | |||
18359 | FILE *fd; | ||
18360 | int rc; | ||
18361 | |||
18362 | fd = fopen(DATA,"w"); | ||
18363 | if(fd == NULL) | ||
18364 | exit(1); | ||
18365 | |||
18366 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
18367 | exit(1); | ||
18368 | |||
18369 | exit(0); | ||
18370 | |||
18371 | ; | ||
18372 | return 0; | ||
18373 | } | ||
18374 | _ACEOF | ||
18375 | if ac_fn_c_try_run "$LINENO"; then : | ||
18376 | user_path=`cat conftest.stdpath` | ||
18377 | else | ||
18378 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
18379 | fi | ||
18380 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
18381 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
18382 | fi | ||
18383 | |||
18384 | # make sure $bindir is in USER_PATH so scp will work | ||
18385 | t_bindir="${bindir}" | ||
18386 | while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do | ||
18387 | t_bindir=`eval echo ${t_bindir}` | ||
18388 | case $t_bindir in | ||
18389 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
18390 | esac | ||
18391 | case $t_bindir in | ||
18392 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
18393 | esac | ||
18394 | done | ||
18395 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
18396 | if test $? -ne 0 ; then | ||
18397 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
18398 | if test $? -ne 0 ; then | ||
18399 | user_path=$user_path:$t_bindir | ||
18400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
18401 | $as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; } | ||
18402 | fi | ||
18403 | fi | ||
18404 | fi | ||
18405 | |||
18406 | fi | ||
18407 | |||
18408 | if test "x$external_path_file" != "x/etc/login.conf" ; then | ||
18409 | |||
18410 | cat >>confdefs.h <<_ACEOF | ||
18411 | #define USER_PATH "$user_path" | ||
18412 | _ACEOF | ||
18413 | |||
18414 | |||
18415 | fi | ||
18416 | |||
18417 | # Set superuser path separately to user path | ||
18418 | |||
18419 | # Check whether --with-superuser-path was given. | ||
18420 | if test "${with_superuser_path+set}" = set; then : | ||
18421 | withval=$with_superuser_path; | ||
18422 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
18423 | test "x${withval}" != "xyes"; then | ||
18424 | |||
18425 | cat >>confdefs.h <<_ACEOF | ||
18426 | #define SUPERUSER_PATH "$withval" | ||
18427 | _ACEOF | ||
18428 | |||
18429 | superuser_path=$withval | ||
18430 | fi | ||
18431 | |||
18432 | |||
18433 | fi | ||
18434 | |||
18435 | |||
18436 | |||
18437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
18438 | $as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; } | ||
18439 | IPV4_IN6_HACK_MSG="no" | ||
18440 | |||
18441 | # Check whether --with-4in6 was given. | ||
18442 | if test "${with_4in6+set}" = set; then : | ||
18443 | withval=$with_4in6; | ||
18444 | if test "x$withval" != "xno" ; then | ||
18445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18446 | $as_echo "yes" >&6; } | ||
18447 | |||
18448 | $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h | ||
18449 | |||
18450 | IPV4_IN6_HACK_MSG="yes" | ||
18451 | else | ||
18452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18453 | $as_echo "no" >&6; } | ||
18454 | fi | ||
18455 | |||
18456 | else | ||
18457 | |||
18458 | if test "x$inet6_default_4in6" = "xyes"; then | ||
18459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 | ||
18460 | $as_echo "yes (default)" >&6; } | ||
18461 | $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h | ||
18462 | |||
18463 | IPV4_IN6_HACK_MSG="yes" | ||
18464 | else | ||
18465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 | ||
18466 | $as_echo "no (default)" >&6; } | ||
18467 | fi | ||
18468 | |||
18469 | |||
18470 | fi | ||
18471 | |||
18472 | |||
18473 | # Whether to enable BSD auth support | ||
18474 | BSD_AUTH_MSG=no | ||
18475 | |||
18476 | # Check whether --with-bsd-auth was given. | ||
18477 | if test "${with_bsd_auth+set}" = set; then : | ||
18478 | withval=$with_bsd_auth; | ||
18479 | if test "x$withval" != "xno" ; then | ||
18480 | |||
18481 | $as_echo "#define BSD_AUTH 1" >>confdefs.h | ||
18482 | |||
18483 | BSD_AUTH_MSG=yes | ||
18484 | fi | ||
18485 | |||
18486 | |||
18487 | fi | ||
18488 | |||
18489 | |||
18490 | # Where to place sshd.pid | ||
18491 | piddir=/var/run | ||
18492 | # make sure the directory exists | ||
18493 | if test ! -d $piddir ; then | ||
18494 | piddir=`eval echo ${sysconfdir}` | ||
18495 | case $piddir in | ||
18496 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
18497 | esac | ||
18498 | fi | ||
18499 | |||
18500 | |||
18501 | # Check whether --with-pid-dir was given. | ||
18502 | if test "${with_pid_dir+set}" = set; then : | ||
18503 | withval=$with_pid_dir; | ||
18504 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
18505 | test "x${withval}" != "xyes"; then | ||
18506 | piddir=$withval | ||
18507 | if test ! -d $piddir ; then | ||
18508 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5 | ||
18509 | $as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
18510 | fi | ||
18511 | fi | ||
18512 | |||
18513 | |||
18514 | fi | ||
18515 | |||
18516 | |||
18517 | |||
18518 | cat >>confdefs.h <<_ACEOF | ||
18519 | #define _PATH_SSH_PIDDIR "$piddir" | ||
18520 | _ACEOF | ||
18521 | |||
18522 | |||
18523 | |||
18524 | # Check whether --enable-lastlog was given. | ||
18525 | if test "${enable_lastlog+set}" = set; then : | ||
18526 | enableval=$enable_lastlog; | ||
18527 | if test "x$enableval" = "xno" ; then | ||
18528 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
18529 | |||
18530 | fi | ||
18531 | |||
18532 | |||
18533 | fi | ||
18534 | |||
18535 | # Check whether --enable-utmp was given. | ||
18536 | if test "${enable_utmp+set}" = set; then : | ||
18537 | enableval=$enable_utmp; | ||
18538 | if test "x$enableval" = "xno" ; then | ||
18539 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
18540 | |||
18541 | fi | ||
18542 | |||
18543 | |||
18544 | fi | ||
18545 | |||
18546 | # Check whether --enable-utmpx was given. | ||
18547 | if test "${enable_utmpx+set}" = set; then : | ||
18548 | enableval=$enable_utmpx; | ||
18549 | if test "x$enableval" = "xno" ; then | ||
18550 | |||
18551 | $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h | ||
18552 | |||
18553 | fi | ||
18554 | |||
18555 | |||
18556 | fi | ||
18557 | |||
18558 | # Check whether --enable-wtmp was given. | ||
18559 | if test "${enable_wtmp+set}" = set; then : | ||
18560 | enableval=$enable_wtmp; | ||
18561 | if test "x$enableval" = "xno" ; then | ||
18562 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
18563 | |||
18564 | fi | ||
18565 | |||
18566 | |||
18567 | fi | ||
18568 | |||
18569 | # Check whether --enable-wtmpx was given. | ||
18570 | if test "${enable_wtmpx+set}" = set; then : | ||
18571 | enableval=$enable_wtmpx; | ||
18572 | if test "x$enableval" = "xno" ; then | ||
18573 | |||
18574 | $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h | ||
18575 | |||
18576 | fi | ||
18577 | |||
18578 | |||
18579 | fi | ||
18580 | |||
18581 | # Check whether --enable-libutil was given. | ||
18582 | if test "${enable_libutil+set}" = set; then : | ||
18583 | enableval=$enable_libutil; | ||
18584 | if test "x$enableval" = "xno" ; then | ||
18585 | $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h | ||
18586 | |||
18587 | fi | ||
18588 | |||
18589 | |||
18590 | fi | ||
18591 | |||
18592 | # Check whether --enable-pututline was given. | ||
18593 | if test "${enable_pututline+set}" = set; then : | ||
18594 | enableval=$enable_pututline; | ||
18595 | if test "x$enableval" = "xno" ; then | ||
18596 | |||
18597 | $as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h | ||
18598 | |||
18599 | fi | ||
18600 | |||
18601 | |||
18602 | fi | ||
18603 | |||
18604 | # Check whether --enable-pututxline was given. | ||
18605 | if test "${enable_pututxline+set}" = set; then : | ||
18606 | enableval=$enable_pututxline; | ||
18607 | if test "x$enableval" = "xno" ; then | ||
18608 | |||
18609 | $as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h | ||
18610 | |||
18611 | fi | ||
18612 | |||
18613 | |||
18614 | fi | ||
18615 | |||
18616 | |||
18617 | # Check whether --with-lastlog was given. | ||
18618 | if test "${with_lastlog+set}" = set; then : | ||
18619 | withval=$with_lastlog; | ||
18620 | if test "x$withval" = "xno" ; then | ||
18621 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
18622 | |||
18623 | elif test -n "$withval" && test "x${withval}" != "xyes"; then | ||
18624 | conf_lastlog_location=$withval | ||
18625 | fi | ||
18626 | |||
18627 | |||
18628 | fi | ||
18629 | |||
18630 | |||
18631 | |||
18632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5 | ||
18633 | $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; } | ||
18634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18635 | /* end confdefs.h. */ | ||
18636 | |||
18637 | #include <sys/types.h> | ||
18638 | #include <utmp.h> | ||
18639 | #ifdef HAVE_LASTLOG_H | ||
18640 | # include <lastlog.h> | ||
18641 | #endif | ||
18642 | #ifdef HAVE_PATHS_H | ||
18643 | # include <paths.h> | ||
18644 | #endif | ||
18645 | #ifdef HAVE_LOGIN_H | ||
18646 | # include <login.h> | ||
18647 | #endif | ||
18648 | |||
18649 | int | ||
18650 | main () | ||
18651 | { | ||
18652 | char *lastlog = LASTLOG_FILE; | ||
18653 | ; | ||
18654 | return 0; | ||
18655 | } | ||
18656 | _ACEOF | ||
18657 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18659 | $as_echo "yes" >&6; } | ||
18660 | else | ||
18661 | |||
18662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18663 | $as_echo "no" >&6; } | ||
18664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5 | ||
18665 | $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; } | ||
18666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18667 | /* end confdefs.h. */ | ||
18668 | |||
18669 | #include <sys/types.h> | ||
18670 | #include <utmp.h> | ||
18671 | #ifdef HAVE_LASTLOG_H | ||
18672 | # include <lastlog.h> | ||
18673 | #endif | ||
18674 | #ifdef HAVE_PATHS_H | ||
18675 | # include <paths.h> | ||
18676 | #endif | ||
18677 | |||
18678 | int | ||
18679 | main () | ||
18680 | { | ||
18681 | char *lastlog = _PATH_LASTLOG; | ||
18682 | ; | ||
18683 | return 0; | ||
18684 | } | ||
18685 | _ACEOF | ||
18686 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18688 | $as_echo "yes" >&6; } | ||
18689 | else | ||
18690 | |||
18691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18692 | $as_echo "no" >&6; } | ||
18693 | system_lastlog_path=no | ||
18694 | |||
18695 | fi | ||
18696 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18697 | |||
18698 | fi | ||
18699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18700 | |||
18701 | if test -z "$conf_lastlog_location"; then | ||
18702 | if test x"$system_lastlog_path" = x"no" ; then | ||
18703 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
18704 | if (test -d "$f" || test -f "$f") ; then | ||
18705 | conf_lastlog_location=$f | ||
18706 | fi | ||
18707 | done | ||
18708 | if test -z "$conf_lastlog_location"; then | ||
18709 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5 | ||
18710 | $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
18711 | fi | ||
18712 | fi | ||
18713 | fi | ||
18714 | |||
18715 | if test -n "$conf_lastlog_location"; then | ||
18716 | |||
18717 | cat >>confdefs.h <<_ACEOF | ||
18718 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
18719 | _ACEOF | ||
18720 | |||
18721 | fi | ||
18722 | |||
18723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5 | ||
18724 | $as_echo_n "checking if your system defines UTMP_FILE... " >&6; } | ||
18725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18726 | /* end confdefs.h. */ | ||
18727 | |||
18728 | #include <sys/types.h> | ||
18729 | #include <utmp.h> | ||
18730 | #ifdef HAVE_PATHS_H | ||
18731 | # include <paths.h> | ||
18732 | #endif | ||
18733 | |||
18734 | int | ||
18735 | main () | ||
18736 | { | ||
18737 | char *utmp = UTMP_FILE; | ||
18738 | ; | ||
18739 | return 0; | ||
18740 | } | ||
18741 | _ACEOF | ||
18742 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18744 | $as_echo "yes" >&6; } | ||
18745 | else | ||
18746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18747 | $as_echo "no" >&6; } | ||
18748 | system_utmp_path=no | ||
18749 | |||
18750 | fi | ||
18751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18752 | if test -z "$conf_utmp_location"; then | ||
18753 | if test x"$system_utmp_path" = x"no" ; then | ||
18754 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
18755 | if test -f $f ; then | ||
18756 | conf_utmp_location=$f | ||
18757 | fi | ||
18758 | done | ||
18759 | if test -z "$conf_utmp_location"; then | ||
18760 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
18761 | |||
18762 | fi | ||
18763 | fi | ||
18764 | fi | ||
18765 | if test -n "$conf_utmp_location"; then | ||
18766 | |||
18767 | cat >>confdefs.h <<_ACEOF | ||
18768 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
18769 | _ACEOF | ||
18770 | |||
18771 | fi | ||
18772 | |||
18773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5 | ||
18774 | $as_echo_n "checking if your system defines WTMP_FILE... " >&6; } | ||
18775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18776 | /* end confdefs.h. */ | ||
18777 | |||
18778 | #include <sys/types.h> | ||
18779 | #include <utmp.h> | ||
18780 | #ifdef HAVE_PATHS_H | ||
18781 | # include <paths.h> | ||
18782 | #endif | ||
18783 | |||
18784 | int | ||
18785 | main () | ||
18786 | { | ||
18787 | char *wtmp = WTMP_FILE; | ||
18788 | ; | ||
18789 | return 0; | ||
18790 | } | ||
18791 | _ACEOF | ||
18792 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18794 | $as_echo "yes" >&6; } | ||
18795 | else | ||
18796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18797 | $as_echo "no" >&6; } | ||
18798 | system_wtmp_path=no | ||
18799 | |||
18800 | fi | ||
18801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18802 | if test -z "$conf_wtmp_location"; then | ||
18803 | if test x"$system_wtmp_path" = x"no" ; then | ||
18804 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
18805 | if test -f $f ; then | ||
18806 | conf_wtmp_location=$f | ||
18807 | fi | ||
18808 | done | ||
18809 | if test -z "$conf_wtmp_location"; then | ||
18810 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
18811 | |||
18812 | fi | ||
18813 | fi | ||
18814 | fi | ||
18815 | if test -n "$conf_wtmp_location"; then | ||
18816 | |||
18817 | cat >>confdefs.h <<_ACEOF | ||
18818 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
18819 | _ACEOF | ||
18820 | |||
18821 | fi | ||
18822 | |||
18823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5 | ||
18824 | $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; } | ||
18825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18826 | /* end confdefs.h. */ | ||
18827 | |||
18828 | #include <sys/types.h> | ||
18829 | #include <utmp.h> | ||
18830 | #ifdef HAVE_UTMPX_H | ||
18831 | #include <utmpx.h> | ||
18832 | #endif | ||
18833 | #ifdef HAVE_PATHS_H | ||
18834 | # include <paths.h> | ||
18835 | #endif | ||
18836 | |||
18837 | int | ||
18838 | main () | ||
18839 | { | ||
18840 | char *wtmpx = WTMPX_FILE; | ||
18841 | ; | ||
18842 | return 0; | ||
18843 | } | ||
18844 | _ACEOF | ||
18845 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18847 | $as_echo "yes" >&6; } | ||
18848 | else | ||
18849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18850 | $as_echo "no" >&6; } | ||
18851 | system_wtmpx_path=no | ||
18852 | |||
18853 | fi | ||
18854 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18855 | if test -z "$conf_wtmpx_location"; then | ||
18856 | if test x"$system_wtmpx_path" = x"no" ; then | ||
18857 | $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h | ||
18858 | |||
18859 | fi | ||
18860 | else | ||
18861 | |||
18862 | cat >>confdefs.h <<_ACEOF | ||
18863 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
18864 | _ACEOF | ||
18865 | |||
18866 | fi | ||
18867 | |||
18868 | |||
18869 | if test ! -z "$blibpath" ; then | ||
18870 | LDFLAGS="$LDFLAGS $blibflags$blibpath" | ||
18871 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 | ||
18872 | $as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} | ||
18873 | fi | ||
18874 | |||
18875 | ac_fn_c_check_member "$LINENO" "struct lastlog" "ll_line" "ac_cv_member_struct_lastlog_ll_line" " | ||
18876 | #ifdef HAVE_SYS_TYPES_H | ||
18877 | #include <sys/types.h> | ||
18878 | #endif | ||
18879 | #ifdef HAVE_UTMP_H | ||
18880 | #include <utmp.h> | ||
18881 | #endif | ||
18882 | #ifdef HAVE_UTMPX_H | ||
18883 | #include <utmpx.h> | ||
18884 | #endif | ||
18885 | #ifdef HAVE_LASTLOG_H | ||
18886 | #include <lastlog.h> | ||
18887 | #endif | ||
18888 | |||
18889 | " | ||
18890 | if test "x$ac_cv_member_struct_lastlog_ll_line" = xyes; then : | ||
18891 | |||
18892 | else | ||
18893 | |||
18894 | if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then | ||
18895 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
18896 | |||
18897 | fi | ||
18898 | |||
18899 | fi | ||
18900 | |||
18901 | |||
18902 | ac_fn_c_check_member "$LINENO" "struct utmp" "ut_line" "ac_cv_member_struct_utmp_ut_line" " | ||
18903 | #ifdef HAVE_SYS_TYPES_H | ||
18904 | #include <sys/types.h> | ||
18905 | #endif | ||
18906 | #ifdef HAVE_UTMP_H | ||
18907 | #include <utmp.h> | ||
18908 | #endif | ||
18909 | #ifdef HAVE_UTMPX_H | ||
18910 | #include <utmpx.h> | ||
18911 | #endif | ||
18912 | #ifdef HAVE_LASTLOG_H | ||
18913 | #include <lastlog.h> | ||
18914 | #endif | ||
18915 | |||
18916 | " | ||
18917 | if test "x$ac_cv_member_struct_utmp_ut_line" = xyes; then : | ||
18918 | |||
18919 | else | ||
18920 | |||
18921 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
18922 | |||
18923 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
18924 | |||
18925 | |||
18926 | fi | ||
18927 | |||
18928 | |||
18929 | CFLAGS="$CFLAGS $werror_flags" | ||
18930 | |||
18931 | if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then | ||
18932 | TEST_SSH_IPV6=no | ||
18933 | else | ||
18934 | TEST_SSH_IPV6=yes | ||
18935 | fi | ||
18936 | ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default" | ||
18937 | if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then : | ||
18938 | TEST_SSH_IPV6=no | ||
18939 | fi | ||
18940 | |||
18941 | TEST_SSH_IPV6=$TEST_SSH_IPV6 | ||
18942 | |||
18943 | TEST_SSH_UTF8=$TEST_SSH_UTF8 | ||
18944 | |||
18945 | TEST_MALLOC_OPTIONS=$TEST_MALLOC_OPTIONS | ||
18946 | |||
18947 | UNSUPPORTED_ALGORITHMS=$unsupported_algorithms | ||
18948 | |||
18949 | |||
18950 | |||
18951 | ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh" | ||
18952 | |||
18953 | cat >confcache <<\_ACEOF | ||
18954 | # This file is a shell script that caches the results of configure | ||
18955 | # tests run on this system so they can be shared between configure | ||
18956 | # scripts and configure runs, see configure's option --config-cache. | ||
18957 | # It is not useful on other systems. If it contains results you don't | ||
18958 | # want to keep, you may remove or edit it. | ||
18959 | # | ||
18960 | # config.status only pays attention to the cache file if you give it | ||
18961 | # the --recheck option to rerun configure. | ||
18962 | # | ||
18963 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
18964 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
18965 | # following values. | ||
18966 | |||
18967 | _ACEOF | ||
18968 | |||
18969 | # The following way of writing the cache mishandles newlines in values, | ||
18970 | # but we know of no workaround that is simple, portable, and efficient. | ||
18971 | # So, we kill variables containing newlines. | ||
18972 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
18973 | # and sets the high bit in the cache file unless we assign to the vars. | ||
18974 | ( | ||
18975 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
18976 | eval ac_val=\$$ac_var | ||
18977 | case $ac_val in #( | ||
18978 | *${as_nl}*) | ||
18979 | case $ac_var in #( | ||
18980 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
18981 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
18982 | esac | ||
18983 | case $ac_var in #( | ||
18984 | _ | IFS | as_nl) ;; #( | ||
18985 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
18986 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
18987 | esac ;; | ||
18988 | esac | ||
18989 | done | ||
18990 | |||
18991 | (set) 2>&1 | | ||
18992 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
18993 | *${as_nl}ac_space=\ *) | ||
18994 | # `set' does not quote correctly, so add quotes: double-quote | ||
18995 | # substitution turns \\\\ into \\, and sed turns \\ into \. | ||
18996 | sed -n \ | ||
18997 | "s/'/'\\\\''/g; | ||
18998 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
18999 | ;; #( | ||
19000 | *) | ||
19001 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
19002 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
19003 | ;; | ||
19004 | esac | | ||
19005 | sort | ||
19006 | ) | | ||
19007 | sed ' | ||
19008 | /^ac_cv_env_/b end | ||
19009 | t clear | ||
19010 | :clear | ||
19011 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
19012 | t end | ||
19013 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
19014 | :end' >>confcache | ||
19015 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
19016 | if test -w "$cache_file"; then | ||
19017 | if test "x$cache_file" != "x/dev/null"; then | ||
19018 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | ||
19019 | $as_echo "$as_me: updating cache $cache_file" >&6;} | ||
19020 | if test ! -f "$cache_file" || test -h "$cache_file"; then | ||
19021 | cat confcache >"$cache_file" | ||
19022 | else | ||
19023 | case $cache_file in #( | ||
19024 | */* | ?:*) | ||
19025 | mv -f confcache "$cache_file"$$ && | ||
19026 | mv -f "$cache_file"$$ "$cache_file" ;; #( | ||
19027 | *) | ||
19028 | mv -f confcache "$cache_file" ;; | ||
19029 | esac | ||
19030 | fi | ||
19031 | fi | ||
19032 | else | ||
19033 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | ||
19034 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
19035 | fi | ||
19036 | fi | ||
19037 | rm -f confcache | ||
19038 | |||
19039 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
19040 | # Let make expand exec_prefix. | ||
19041 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
19042 | |||
19043 | DEFS=-DHAVE_CONFIG_H | ||
19044 | |||
19045 | ac_libobjs= | ||
19046 | ac_ltlibobjs= | ||
19047 | U= | ||
19048 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
19049 | # 1. Remove the extension, and $U if already installed. | ||
19050 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
19051 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | ||
19052 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
19053 | # will be set to the directory where LIBOBJS objects are built. | ||
19054 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
19055 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | ||
19056 | done | ||
19057 | LIBOBJS=$ac_libobjs | ||
19058 | |||
19059 | LTLIBOBJS=$ac_ltlibobjs | ||
19060 | |||
19061 | |||
19062 | |||
19063 | |||
19064 | : "${CONFIG_STATUS=./config.status}" | ||
19065 | ac_write_fail=0 | ||
19066 | ac_clean_files_save=$ac_clean_files | ||
19067 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
19068 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | ||
19069 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
19070 | as_write_fail=0 | ||
19071 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | ||
19072 | #! $SHELL | ||
19073 | # Generated by $as_me. | ||
19074 | # Run this file to recreate the current configuration. | ||
19075 | # Compiler output produced by configure, useful for debugging | ||
19076 | # configure, is in config.log if it exists. | ||
19077 | |||
19078 | debug=false | ||
19079 | ac_cs_recheck=false | ||
19080 | ac_cs_silent=false | ||
19081 | |||
19082 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
19083 | export SHELL | ||
19084 | _ASEOF | ||
19085 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | ||
19086 | ## -------------------- ## | ||
19087 | ## M4sh Initialization. ## | ||
19088 | ## -------------------- ## | ||
19089 | |||
19090 | # Be more Bourne compatible | ||
19091 | DUALCASE=1; export DUALCASE # for MKS sh | ||
19092 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
19093 | emulate sh | ||
19094 | NULLCMD=: | ||
19095 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
19096 | # is contrary to our usage. Disable this feature. | ||
19097 | alias -g '${1+"$@"}'='"$@"' | ||
19098 | setopt NO_GLOB_SUBST | ||
19099 | else | ||
19100 | case `(set -o) 2>/dev/null` in #( | ||
19101 | *posix*) : | ||
19102 | set -o posix ;; #( | ||
19103 | *) : | ||
19104 | ;; | ||
19105 | esac | ||
19106 | fi | ||
19107 | |||
19108 | |||
19109 | as_nl=' | ||
19110 | ' | ||
19111 | export as_nl | ||
19112 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
19113 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
19114 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
19115 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
19116 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
19117 | # but without wasting forks for bash or zsh. | ||
19118 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
19119 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
19120 | as_echo='print -r --' | ||
19121 | as_echo_n='print -rn --' | ||
19122 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
19123 | as_echo='printf %s\n' | ||
19124 | as_echo_n='printf %s' | ||
19125 | else | ||
19126 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
19127 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
19128 | as_echo_n='/usr/ucb/echo -n' | ||
19129 | else | ||
19130 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
19131 | as_echo_n_body='eval | ||
19132 | arg=$1; | ||
19133 | case $arg in #( | ||
19134 | *"$as_nl"*) | ||
19135 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
19136 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
19137 | esac; | ||
19138 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
19139 | ' | ||
19140 | export as_echo_n_body | ||
19141 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
19142 | fi | ||
19143 | export as_echo_body | ||
19144 | as_echo='sh -c $as_echo_body as_echo' | ||
19145 | fi | ||
19146 | |||
19147 | # The user is always right. | ||
19148 | if test "${PATH_SEPARATOR+set}" != set; then | ||
19149 | PATH_SEPARATOR=: | ||
19150 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
19151 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
19152 | PATH_SEPARATOR=';' | ||
19153 | } | ||
19154 | fi | ||
19155 | |||
19156 | |||
19157 | # IFS | ||
19158 | # We need space, tab and new line, in precisely that order. Quoting is | ||
19159 | # there to prevent editors from complaining about space-tab. | ||
19160 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
19161 | # splitting by setting IFS to empty value.) | ||
19162 | IFS=" "" $as_nl" | ||
19163 | |||
19164 | # Find who we are. Look in the path if we contain no directory separator. | ||
19165 | as_myself= | ||
19166 | case $0 in #(( | ||
19167 | *[\\/]* ) as_myself=$0 ;; | ||
19168 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19169 | for as_dir in $PATH | ||
19170 | do | ||
19171 | IFS=$as_save_IFS | ||
19172 | test -z "$as_dir" && as_dir=. | ||
19173 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
19174 | done | ||
19175 | IFS=$as_save_IFS | ||
19176 | |||
19177 | ;; | ||
19178 | esac | ||
19179 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
19180 | # in which case we are not to be found in the path. | ||
19181 | if test "x$as_myself" = x; then | ||
19182 | as_myself=$0 | ||
19183 | fi | ||
19184 | if test ! -f "$as_myself"; then | ||
19185 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
19186 | exit 1 | ||
19187 | fi | ||
19188 | |||
19189 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
19190 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
19191 | # suppresses any "Segmentation fault" message there. '((' could | ||
19192 | # trigger a bug in pdksh 5.2.14. | ||
19193 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
19194 | do eval test x\${$as_var+set} = xset \ | ||
19195 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
19196 | done | ||
19197 | PS1='$ ' | ||
19198 | PS2='> ' | ||
19199 | PS4='+ ' | ||
19200 | |||
19201 | # NLS nuisances. | ||
19202 | LC_ALL=C | ||
19203 | export LC_ALL | ||
19204 | LANGUAGE=C | ||
19205 | export LANGUAGE | ||
19206 | |||
19207 | # CDPATH. | ||
19208 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
19209 | |||
19210 | |||
19211 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
19212 | # ---------------------------------------- | ||
19213 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
19214 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
19215 | # script with STATUS, using 1 if that was 0. | ||
19216 | as_fn_error () | ||
19217 | { | ||
19218 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
19219 | if test "$4"; then | ||
19220 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
19221 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
19222 | fi | ||
19223 | $as_echo "$as_me: error: $2" >&2 | ||
19224 | as_fn_exit $as_status | ||
19225 | } # as_fn_error | ||
19226 | |||
19227 | |||
19228 | # as_fn_set_status STATUS | ||
19229 | # ----------------------- | ||
19230 | # Set $? to STATUS, without forking. | ||
19231 | as_fn_set_status () | ||
19232 | { | ||
19233 | return $1 | ||
19234 | } # as_fn_set_status | ||
19235 | |||
19236 | # as_fn_exit STATUS | ||
19237 | # ----------------- | ||
19238 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
19239 | as_fn_exit () | ||
19240 | { | ||
19241 | set +e | ||
19242 | as_fn_set_status $1 | ||
19243 | exit $1 | ||
19244 | } # as_fn_exit | ||
19245 | |||
19246 | # as_fn_unset VAR | ||
19247 | # --------------- | ||
19248 | # Portably unset VAR. | ||
19249 | as_fn_unset () | ||
19250 | { | ||
19251 | { eval $1=; unset $1;} | ||
19252 | } | ||
19253 | as_unset=as_fn_unset | ||
19254 | # as_fn_append VAR VALUE | ||
19255 | # ---------------------- | ||
19256 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
19257 | # advantage of any shell optimizations that allow amortized linear growth over | ||
19258 | # repeated appends, instead of the typical quadratic growth present in naive | ||
19259 | # implementations. | ||
19260 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
19261 | eval 'as_fn_append () | ||
19262 | { | ||
19263 | eval $1+=\$2 | ||
19264 | }' | ||
19265 | else | ||
19266 | as_fn_append () | ||
19267 | { | ||
19268 | eval $1=\$$1\$2 | ||
19269 | } | ||
19270 | fi # as_fn_append | ||
19271 | |||
19272 | # as_fn_arith ARG... | ||
19273 | # ------------------ | ||
19274 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
19275 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
19276 | # must be portable across $(()) and expr. | ||
19277 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
19278 | eval 'as_fn_arith () | ||
19279 | { | ||
19280 | as_val=$(( $* )) | ||
19281 | }' | ||
19282 | else | ||
19283 | as_fn_arith () | ||
19284 | { | ||
19285 | as_val=`expr "$@" || test $? -eq 1` | ||
19286 | } | ||
19287 | fi # as_fn_arith | ||
19288 | |||
19289 | |||
19290 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
19291 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
19292 | as_expr=expr | ||
19293 | else | ||
19294 | as_expr=false | ||
19295 | fi | ||
19296 | |||
19297 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
19298 | as_basename=basename | ||
19299 | else | ||
19300 | as_basename=false | ||
19301 | fi | ||
19302 | |||
19303 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
19304 | as_dirname=dirname | ||
19305 | else | ||
19306 | as_dirname=false | ||
19307 | fi | ||
19308 | |||
19309 | as_me=`$as_basename -- "$0" || | ||
19310 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
19311 | X"$0" : 'X\(//\)$' \| \ | ||
19312 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
19313 | $as_echo X/"$0" | | ||
19314 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
19315 | s//\1/ | ||
19316 | q | ||
19317 | } | ||
19318 | /^X\/\(\/\/\)$/{ | ||
19319 | s//\1/ | ||
19320 | q | ||
19321 | } | ||
19322 | /^X\/\(\/\).*/{ | ||
19323 | s//\1/ | ||
19324 | q | ||
19325 | } | ||
19326 | s/.*/./; q'` | ||
19327 | |||
19328 | # Avoid depending upon Character Ranges. | ||
19329 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
19330 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
19331 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
19332 | as_cr_digits='0123456789' | ||
19333 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
19334 | |||
19335 | ECHO_C= ECHO_N= ECHO_T= | ||
19336 | case `echo -n x` in #((((( | ||
19337 | -n*) | ||
19338 | case `echo 'xy\c'` in | ||
19339 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
19340 | xy) ECHO_C='\c';; | ||
19341 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
19342 | ECHO_T=' ';; | ||
19343 | esac;; | ||
19344 | *) | ||
19345 | ECHO_N='-n';; | ||
19346 | esac | ||
19347 | |||
19348 | rm -f conf$$ conf$$.exe conf$$.file | ||
19349 | if test -d conf$$.dir; then | ||
19350 | rm -f conf$$.dir/conf$$.file | ||
19351 | else | ||
19352 | rm -f conf$$.dir | ||
19353 | mkdir conf$$.dir 2>/dev/null | ||
19354 | fi | ||
19355 | if (echo >conf$$.file) 2>/dev/null; then | ||
19356 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
19357 | as_ln_s='ln -s' | ||
19358 | # ... but there are two gotchas: | ||
19359 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
19360 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
19361 | # In both cases, we have to default to `cp -pR'. | ||
19362 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
19363 | as_ln_s='cp -pR' | ||
19364 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
19365 | as_ln_s=ln | ||
19366 | else | ||
19367 | as_ln_s='cp -pR' | ||
19368 | fi | ||
19369 | else | ||
19370 | as_ln_s='cp -pR' | ||
19371 | fi | ||
19372 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
19373 | rmdir conf$$.dir 2>/dev/null | ||
19374 | |||
19375 | |||
19376 | # as_fn_mkdir_p | ||
19377 | # ------------- | ||
19378 | # Create "$as_dir" as a directory, including parents if necessary. | ||
19379 | as_fn_mkdir_p () | ||
19380 | { | ||
19381 | |||
19382 | case $as_dir in #( | ||
19383 | -*) as_dir=./$as_dir;; | ||
19384 | esac | ||
19385 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
19386 | as_dirs= | ||
19387 | while :; do | ||
19388 | case $as_dir in #( | ||
19389 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
19390 | *) as_qdir=$as_dir;; | ||
19391 | esac | ||
19392 | as_dirs="'$as_qdir' $as_dirs" | ||
19393 | as_dir=`$as_dirname -- "$as_dir" || | ||
19394 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
19395 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
19396 | X"$as_dir" : 'X\(//\)$' \| \ | ||
19397 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
19398 | $as_echo X"$as_dir" | | ||
19399 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
19400 | s//\1/ | ||
19401 | q | ||
19402 | } | ||
19403 | /^X\(\/\/\)[^/].*/{ | ||
19404 | s//\1/ | ||
19405 | q | ||
19406 | } | ||
19407 | /^X\(\/\/\)$/{ | ||
19408 | s//\1/ | ||
19409 | q | ||
19410 | } | ||
19411 | /^X\(\/\).*/{ | ||
19412 | s//\1/ | ||
19413 | q | ||
19414 | } | ||
19415 | s/.*/./; q'` | ||
19416 | test -d "$as_dir" && break | ||
19417 | done | ||
19418 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
19419 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
19420 | |||
19421 | |||
19422 | } # as_fn_mkdir_p | ||
19423 | if mkdir -p . 2>/dev/null; then | ||
19424 | as_mkdir_p='mkdir -p "$as_dir"' | ||
19425 | else | ||
19426 | test -d ./-p && rmdir ./-p | ||
19427 | as_mkdir_p=false | ||
19428 | fi | ||
19429 | |||
19430 | |||
19431 | # as_fn_executable_p FILE | ||
19432 | # ----------------------- | ||
19433 | # Test if FILE is an executable regular file. | ||
19434 | as_fn_executable_p () | ||
19435 | { | ||
19436 | test -f "$1" && test -x "$1" | ||
19437 | } # as_fn_executable_p | ||
19438 | as_test_x='test -x' | ||
19439 | as_executable_p=as_fn_executable_p | ||
19440 | |||
19441 | # Sed expression to map a string onto a valid CPP name. | ||
19442 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
19443 | |||
19444 | # Sed expression to map a string onto a valid variable name. | ||
19445 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
19446 | |||
19447 | |||
19448 | exec 6>&1 | ||
19449 | ## ----------------------------------- ## | ||
19450 | ## Main body of $CONFIG_STATUS script. ## | ||
19451 | ## ----------------------------------- ## | ||
19452 | _ASEOF | ||
19453 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | ||
19454 | |||
19455 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
19456 | # Save the log message, to keep $0 and so on meaningful, and to | ||
19457 | # report actual input values of CONFIG_FILES etc. instead of their | ||
19458 | # values after options handling. | ||
19459 | ac_log=" | ||
19460 | This file was extended by OpenSSH $as_me Portable, which was | ||
19461 | generated by GNU Autoconf 2.69. Invocation command line was | ||
19462 | |||
19463 | CONFIG_FILES = $CONFIG_FILES | ||
19464 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
19465 | CONFIG_LINKS = $CONFIG_LINKS | ||
19466 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
19467 | $ $0 $@ | ||
19468 | |||
19469 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
19470 | " | ||
19471 | |||
19472 | _ACEOF | ||
19473 | |||
19474 | case $ac_config_files in *" | ||
19475 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | ||
19476 | esac | ||
19477 | |||
19478 | case $ac_config_headers in *" | ||
19479 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | ||
19480 | esac | ||
19481 | |||
19482 | |||
19483 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
19484 | # Files that config.status was made for. | ||
19485 | config_files="$ac_config_files" | ||
19486 | config_headers="$ac_config_headers" | ||
19487 | |||
19488 | _ACEOF | ||
19489 | |||
19490 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
19491 | ac_cs_usage="\ | ||
19492 | \`$as_me' instantiates files and other configuration actions | ||
19493 | from templates according to the current configuration. Unless the files | ||
19494 | and actions are specified as TAGs, all are instantiated by default. | ||
19495 | |||
19496 | Usage: $0 [OPTION]... [TAG]... | ||
19497 | |||
19498 | -h, --help print this help, then exit | ||
19499 | -V, --version print version number and configuration settings, then exit | ||
19500 | --config print configuration, then exit | ||
19501 | -q, --quiet, --silent | ||
19502 | do not print progress messages | ||
19503 | -d, --debug don't remove temporary files | ||
19504 | --recheck update $as_me by reconfiguring in the same conditions | ||
19505 | --file=FILE[:TEMPLATE] | ||
19506 | instantiate the configuration file FILE | ||
19507 | --header=FILE[:TEMPLATE] | ||
19508 | instantiate the configuration header FILE | ||
19509 | |||
19510 | Configuration files: | ||
19511 | $config_files | ||
19512 | |||
19513 | Configuration headers: | ||
19514 | $config_headers | ||
19515 | |||
19516 | Report bugs to <openssh-unix-dev@mindrot.org>." | ||
19517 | |||
19518 | _ACEOF | ||
19519 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
19520 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | ||
19521 | ac_cs_version="\\ | ||
19522 | OpenSSH config.status Portable | ||
19523 | configured by $0, generated by GNU Autoconf 2.69, | ||
19524 | with options \\"\$ac_cs_config\\" | ||
19525 | |||
19526 | Copyright (C) 2012 Free Software Foundation, Inc. | ||
19527 | This config.status script is free software; the Free Software Foundation | ||
19528 | gives unlimited permission to copy, distribute and modify it." | ||
19529 | |||
19530 | ac_pwd='$ac_pwd' | ||
19531 | srcdir='$srcdir' | ||
19532 | INSTALL='$INSTALL' | ||
19533 | AWK='$AWK' | ||
19534 | test -n "\$AWK" || AWK=awk | ||
19535 | _ACEOF | ||
19536 | |||
19537 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
19538 | # The default lists apply if the user does not specify any file. | ||
19539 | ac_need_defaults=: | ||
19540 | while test $# != 0 | ||
19541 | do | ||
19542 | case $1 in | ||
19543 | --*=?*) | ||
19544 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
19545 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
19546 | ac_shift=: | ||
19547 | ;; | ||
19548 | --*=) | ||
19549 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
19550 | ac_optarg= | ||
19551 | ac_shift=: | ||
19552 | ;; | ||
19553 | *) | ||
19554 | ac_option=$1 | ||
19555 | ac_optarg=$2 | ||
19556 | ac_shift=shift | ||
19557 | ;; | ||
19558 | esac | ||
19559 | |||
19560 | case $ac_option in | ||
19561 | # Handling of the options. | ||
19562 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
19563 | ac_cs_recheck=: ;; | ||
19564 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
19565 | $as_echo "$ac_cs_version"; exit ;; | ||
19566 | --config | --confi | --conf | --con | --co | --c ) | ||
19567 | $as_echo "$ac_cs_config"; exit ;; | ||
19568 | --debug | --debu | --deb | --de | --d | -d ) | ||
19569 | debug=: ;; | ||
19570 | --file | --fil | --fi | --f ) | ||
19571 | $ac_shift | ||
19572 | case $ac_optarg in | ||
19573 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
19574 | '') as_fn_error $? "missing file argument" ;; | ||
19575 | esac | ||
19576 | as_fn_append CONFIG_FILES " '$ac_optarg'" | ||
19577 | ac_need_defaults=false;; | ||
19578 | --header | --heade | --head | --hea ) | ||
19579 | $ac_shift | ||
19580 | case $ac_optarg in | ||
19581 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
19582 | esac | ||
19583 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | ||
19584 | ac_need_defaults=false;; | ||
19585 | --he | --h) | ||
19586 | # Conflict between --help and --header | ||
19587 | as_fn_error $? "ambiguous option: \`$1' | ||
19588 | Try \`$0 --help' for more information.";; | ||
19589 | --help | --hel | -h ) | ||
19590 | $as_echo "$ac_cs_usage"; exit ;; | ||
19591 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
19592 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
19593 | ac_cs_silent=: ;; | ||
19594 | |||
19595 | # This is an error. | ||
19596 | -*) as_fn_error $? "unrecognized option: \`$1' | ||
19597 | Try \`$0 --help' for more information." ;; | ||
19598 | |||
19599 | *) as_fn_append ac_config_targets " $1" | ||
19600 | ac_need_defaults=false ;; | ||
19601 | |||
19602 | esac | ||
19603 | shift | ||
19604 | done | ||
19605 | |||
19606 | ac_configure_extra_args= | ||
19607 | |||
19608 | if $ac_cs_silent; then | ||
19609 | exec 6>/dev/null | ||
19610 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
19611 | fi | ||
19612 | |||
19613 | _ACEOF | ||
19614 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
19615 | if \$ac_cs_recheck; then | ||
19616 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
19617 | shift | ||
19618 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | ||
19619 | CONFIG_SHELL='$SHELL' | ||
19620 | export CONFIG_SHELL | ||
19621 | exec "\$@" | ||
19622 | fi | ||
19623 | |||
19624 | _ACEOF | ||
19625 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
19626 | exec 5>>config.log | ||
19627 | { | ||
19628 | echo | ||
19629 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
19630 | ## Running $as_me. ## | ||
19631 | _ASBOX | ||
19632 | $as_echo "$ac_log" | ||
19633 | } >&5 | ||
19634 | |||
19635 | _ACEOF | ||
19636 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
19637 | _ACEOF | ||
19638 | |||
19639 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
19640 | |||
19641 | # Handling of arguments. | ||
19642 | for ac_config_target in $ac_config_targets | ||
19643 | do | ||
19644 | case $ac_config_target in | ||
19645 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
19646 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
19647 | "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; | ||
19648 | "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; | ||
19649 | "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;; | ||
19650 | "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
19651 | "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;; | ||
19652 | "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;; | ||
19653 | |||
19654 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | ||
19655 | esac | ||
19656 | done | ||
19657 | |||
19658 | |||
19659 | # If the user did not use the arguments to specify the items to instantiate, | ||
19660 | # then the envvar interface is used. Set only those that are not. | ||
19661 | # We use the long form for the default assignment because of an extremely | ||
19662 | # bizarre bug on SunOS 4.1.3. | ||
19663 | if $ac_need_defaults; then | ||
19664 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
19665 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
19666 | fi | ||
19667 | |||
19668 | # Have a temporary directory for convenience. Make it in the build tree | ||
19669 | # simply because there is no reason against having it here, and in addition, | ||
19670 | # creating and moving files from /tmp can sometimes cause problems. | ||
19671 | # Hook for its removal unless debugging. | ||
19672 | # Note that there is a small window in which the directory will not be cleaned: | ||
19673 | # after its creation but before its name has been assigned to `$tmp'. | ||
19674 | $debug || | ||
19675 | { | ||
19676 | tmp= ac_tmp= | ||
19677 | trap 'exit_status=$? | ||
19678 | : "${ac_tmp:=$tmp}" | ||
19679 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | ||
19680 | ' 0 | ||
19681 | trap 'as_fn_exit 1' 1 2 13 15 | ||
19682 | } | ||
19683 | # Create a (secure) tmp directory for tmp files. | ||
19684 | |||
19685 | { | ||
19686 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
19687 | test -d "$tmp" | ||
19688 | } || | ||
19689 | { | ||
19690 | tmp=./conf$$-$RANDOM | ||
19691 | (umask 077 && mkdir "$tmp") | ||
19692 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | ||
19693 | ac_tmp=$tmp | ||
19694 | |||
19695 | # Set up the scripts for CONFIG_FILES section. | ||
19696 | # No need to generate them if there are no CONFIG_FILES. | ||
19697 | # This happens for instance with `./config.status config.h'. | ||
19698 | if test -n "$CONFIG_FILES"; then | ||
19699 | |||
19700 | |||
19701 | ac_cr=`echo X | tr X '\015'` | ||
19702 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | ||
19703 | # But we know of no other shell where ac_cr would be empty at this | ||
19704 | # point, so we can use a bashism as a fallback. | ||
19705 | if test "x$ac_cr" = x; then | ||
19706 | eval ac_cr=\$\'\\r\' | ||
19707 | fi | ||
19708 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | ||
19709 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | ||
19710 | ac_cs_awk_cr='\\r' | ||
19711 | else | ||
19712 | ac_cs_awk_cr=$ac_cr | ||
19713 | fi | ||
19714 | |||
19715 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | ||
19716 | _ACEOF | ||
19717 | |||
19718 | |||
19719 | { | ||
19720 | echo "cat >conf$$subs.awk <<_ACEOF" && | ||
19721 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | ||
19722 | echo "_ACEOF" | ||
19723 | } >conf$$subs.sh || | ||
19724 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
19725 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | ||
19726 | ac_delim='%!_!# ' | ||
19727 | for ac_last_try in false false false false false :; do | ||
19728 | . ./conf$$subs.sh || | ||
19729 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
19730 | |||
19731 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | ||
19732 | if test $ac_delim_n = $ac_delim_num; then | ||
19733 | break | ||
19734 | elif $ac_last_try; then | ||
19735 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
19736 | else | ||
19737 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
19738 | fi | ||
19739 | done | ||
19740 | rm -f conf$$subs.sh | ||
19741 | |||
19742 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
19743 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | ||
19744 | _ACEOF | ||
19745 | sed -n ' | ||
19746 | h | ||
19747 | s/^/S["/; s/!.*/"]=/ | ||
19748 | p | ||
19749 | g | ||
19750 | s/^[^!]*!// | ||
19751 | :repl | ||
19752 | t repl | ||
19753 | s/'"$ac_delim"'$// | ||
19754 | t delim | ||
19755 | :nl | ||
19756 | h | ||
19757 | s/\(.\{148\}\)..*/\1/ | ||
19758 | t more1 | ||
19759 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | ||
19760 | p | ||
19761 | n | ||
19762 | b repl | ||
19763 | :more1 | ||
19764 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
19765 | p | ||
19766 | g | ||
19767 | s/.\{148\}// | ||
19768 | t nl | ||
19769 | :delim | ||
19770 | h | ||
19771 | s/\(.\{148\}\)..*/\1/ | ||
19772 | t more2 | ||
19773 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | ||
19774 | p | ||
19775 | b | ||
19776 | :more2 | ||
19777 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
19778 | p | ||
19779 | g | ||
19780 | s/.\{148\}// | ||
19781 | t delim | ||
19782 | ' <conf$$subs.awk | sed ' | ||
19783 | /^[^""]/{ | ||
19784 | N | ||
19785 | s/\n// | ||
19786 | } | ||
19787 | ' >>$CONFIG_STATUS || ac_write_fail=1 | ||
19788 | rm -f conf$$subs.awk | ||
19789 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
19790 | _ACAWK | ||
19791 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | ||
19792 | for (key in S) S_is_set[key] = 1 | ||
19793 | FS = "" | ||
19794 | |||
19795 | } | ||
19796 | { | ||
19797 | line = $ 0 | ||
19798 | nfields = split(line, field, "@") | ||
19799 | substed = 0 | ||
19800 | len = length(field[1]) | ||
19801 | for (i = 2; i < nfields; i++) { | ||
19802 | key = field[i] | ||
19803 | keylen = length(key) | ||
19804 | if (S_is_set[key]) { | ||
19805 | value = S[key] | ||
19806 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | ||
19807 | len += length(value) + length(field[++i]) | ||
19808 | substed = 1 | ||
19809 | } else | ||
19810 | len += 1 + keylen | ||
19811 | } | ||
19812 | |||
19813 | print line | ||
19814 | } | ||
19815 | |||
19816 | _ACAWK | ||
19817 | _ACEOF | ||
19818 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
19819 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | ||
19820 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | ||
19821 | else | ||
19822 | cat | ||
19823 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | ||
19824 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | ||
19825 | _ACEOF | ||
19826 | |||
19827 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | ||
19828 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | ||
19829 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
19830 | # (actually we leave an empty line to preserve line numbers). | ||
19831 | if test "x$srcdir" = x.; then | ||
19832 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | ||
19833 | h | ||
19834 | s/// | ||
19835 | s/^/:/ | ||
19836 | s/[ ]*$/:/ | ||
19837 | s/:\$(srcdir):/:/g | ||
19838 | s/:\${srcdir}:/:/g | ||
19839 | s/:@srcdir@:/:/g | ||
19840 | s/^:*// | ||
19841 | s/:*$// | ||
19842 | x | ||
19843 | s/\(=[ ]*\).*/\1/ | ||
19844 | G | ||
19845 | s/\n// | ||
19846 | s/^[^=]*=[ ]*$// | ||
19847 | }' | ||
19848 | fi | ||
19849 | |||
19850 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
19851 | fi # test -n "$CONFIG_FILES" | ||
19852 | |||
19853 | # Set up the scripts for CONFIG_HEADERS section. | ||
19854 | # No need to generate them if there are no CONFIG_HEADERS. | ||
19855 | # This happens for instance with `./config.status Makefile'. | ||
19856 | if test -n "$CONFIG_HEADERS"; then | ||
19857 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | ||
19858 | BEGIN { | ||
19859 | _ACEOF | ||
19860 | |||
19861 | # Transform confdefs.h into an awk script `defines.awk', embedded as | ||
19862 | # here-document in config.status, that substitutes the proper values into | ||
19863 | # config.h.in to produce config.h. | ||
19864 | |||
19865 | # Create a delimiter string that does not exist in confdefs.h, to ease | ||
19866 | # handling of long lines. | ||
19867 | ac_delim='%!_!# ' | ||
19868 | for ac_last_try in false false :; do | ||
19869 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | ||
19870 | if test -z "$ac_tt"; then | ||
19871 | break | ||
19872 | elif $ac_last_try; then | ||
19873 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | ||
19874 | else | ||
19875 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
19876 | fi | ||
19877 | done | ||
19878 | |||
19879 | # For the awk script, D is an array of macro values keyed by name, | ||
19880 | # likewise P contains macro parameters if any. Preserve backslash | ||
19881 | # newline sequences. | ||
19882 | |||
19883 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
19884 | sed -n ' | ||
19885 | s/.\{148\}/&'"$ac_delim"'/g | ||
19886 | t rset | ||
19887 | :rset | ||
19888 | s/^[ ]*#[ ]*define[ ][ ]*/ / | ||
19889 | t def | ||
19890 | d | ||
19891 | :def | ||
19892 | s/\\$// | ||
19893 | t bsnl | ||
19894 | s/["\\]/\\&/g | ||
19895 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
19896 | D["\1"]=" \3"/p | ||
19897 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | ||
19898 | d | ||
19899 | :bsnl | ||
19900 | s/["\\]/\\&/g | ||
19901 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
19902 | D["\1"]=" \3\\\\\\n"\\/p | ||
19903 | t cont | ||
19904 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | ||
19905 | t cont | ||
19906 | d | ||
19907 | :cont | ||
19908 | n | ||
19909 | s/.\{148\}/&'"$ac_delim"'/g | ||
19910 | t clear | ||
19911 | :clear | ||
19912 | s/\\$// | ||
19913 | t bsnlc | ||
19914 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | ||
19915 | d | ||
19916 | :bsnlc | ||
19917 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | ||
19918 | b cont | ||
19919 | ' <confdefs.h | sed ' | ||
19920 | s/'"$ac_delim"'/"\\\ | ||
19921 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | ||
19922 | |||
19923 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
19924 | for (key in D) D_is_set[key] = 1 | ||
19925 | FS = "" | ||
19926 | } | ||
19927 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | ||
19928 | line = \$ 0 | ||
19929 | split(line, arg, " ") | ||
19930 | if (arg[1] == "#") { | ||
19931 | defundef = arg[2] | ||
19932 | mac1 = arg[3] | ||
19933 | } else { | ||
19934 | defundef = substr(arg[1], 2) | ||
19935 | mac1 = arg[2] | ||
19936 | } | ||
19937 | split(mac1, mac2, "(") #) | ||
19938 | macro = mac2[1] | ||
19939 | prefix = substr(line, 1, index(line, defundef) - 1) | ||
19940 | if (D_is_set[macro]) { | ||
19941 | # Preserve the white space surrounding the "#". | ||
19942 | print prefix "define", macro P[macro] D[macro] | ||
19943 | next | ||
19944 | } else { | ||
19945 | # Replace #undef with comments. This is necessary, for example, | ||
19946 | # in the case of _POSIX_SOURCE, which is predefined and required | ||
19947 | # on some systems where configure will not decide to define it. | ||
19948 | if (defundef == "undef") { | ||
19949 | print "/*", prefix defundef, macro, "*/" | ||
19950 | next | ||
19951 | } | ||
19952 | } | ||
19953 | } | ||
19954 | { print } | ||
19955 | _ACAWK | ||
19956 | _ACEOF | ||
19957 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
19958 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | ||
19959 | fi # test -n "$CONFIG_HEADERS" | ||
19960 | |||
19961 | |||
19962 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | ||
19963 | shift | ||
19964 | for ac_tag | ||
19965 | do | ||
19966 | case $ac_tag in | ||
19967 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
19968 | esac | ||
19969 | case $ac_mode$ac_tag in | ||
19970 | :[FHL]*:*);; | ||
19971 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | ||
19972 | :[FH]-) ac_tag=-:-;; | ||
19973 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
19974 | esac | ||
19975 | ac_save_IFS=$IFS | ||
19976 | IFS=: | ||
19977 | set x $ac_tag | ||
19978 | IFS=$ac_save_IFS | ||
19979 | shift | ||
19980 | ac_file=$1 | ||
19981 | shift | ||
19982 | |||
19983 | case $ac_mode in | ||
19984 | :L) ac_source=$1;; | ||
19985 | :[FH]) | ||
19986 | ac_file_inputs= | ||
19987 | for ac_f | ||
19988 | do | ||
19989 | case $ac_f in | ||
19990 | -) ac_f="$ac_tmp/stdin";; | ||
19991 | *) # Look for the file first in the build tree, then in the source tree | ||
19992 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
19993 | # because $ac_f cannot contain `:'. | ||
19994 | test -f "$ac_f" || | ||
19995 | case $ac_f in | ||
19996 | [\\/$]*) false;; | ||
19997 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
19998 | esac || | ||
19999 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | ||
20000 | esac | ||
20001 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | ||
20002 | as_fn_append ac_file_inputs " '$ac_f'" | ||
20003 | done | ||
20004 | |||
20005 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
20006 | # use $as_me), people would be surprised to read: | ||
20007 | # /* config.h. Generated by config.status. */ | ||
20008 | configure_input='Generated from '` | ||
20009 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | ||
20010 | `' by configure.' | ||
20011 | if test x"$ac_file" != x-; then | ||
20012 | configure_input="$ac_file. $configure_input" | ||
20013 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | ||
20014 | $as_echo "$as_me: creating $ac_file" >&6;} | ||
20015 | fi | ||
20016 | # Neutralize special characters interpreted by sed in replacement strings. | ||
20017 | case $configure_input in #( | ||
20018 | *\&* | *\|* | *\\* ) | ||
20019 | ac_sed_conf_input=`$as_echo "$configure_input" | | ||
20020 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | ||
20021 | *) ac_sed_conf_input=$configure_input;; | ||
20022 | esac | ||
20023 | |||
20024 | case $ac_tag in | ||
20025 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | ||
20026 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | ||
20027 | esac | ||
20028 | ;; | ||
20029 | esac | ||
20030 | |||
20031 | ac_dir=`$as_dirname -- "$ac_file" || | ||
20032 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
20033 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
20034 | X"$ac_file" : 'X\(//\)$' \| \ | ||
20035 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
20036 | $as_echo X"$ac_file" | | ||
20037 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
20038 | s//\1/ | ||
20039 | q | ||
20040 | } | ||
20041 | /^X\(\/\/\)[^/].*/{ | ||
20042 | s//\1/ | ||
20043 | q | ||
20044 | } | ||
20045 | /^X\(\/\/\)$/{ | ||
20046 | s//\1/ | ||
20047 | q | ||
20048 | } | ||
20049 | /^X\(\/\).*/{ | ||
20050 | s//\1/ | ||
20051 | q | ||
20052 | } | ||
20053 | s/.*/./; q'` | ||
20054 | as_dir="$ac_dir"; as_fn_mkdir_p | ||
20055 | ac_builddir=. | ||
20056 | |||
20057 | case "$ac_dir" in | ||
20058 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
20059 | *) | ||
20060 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
20061 | # A ".." for each directory in $ac_dir_suffix. | ||
20062 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
20063 | case $ac_top_builddir_sub in | ||
20064 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
20065 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
20066 | esac ;; | ||
20067 | esac | ||
20068 | ac_abs_top_builddir=$ac_pwd | ||
20069 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
20070 | # for backward compatibility: | ||
20071 | ac_top_builddir=$ac_top_build_prefix | ||
20072 | |||
20073 | case $srcdir in | ||
20074 | .) # We are building in place. | ||
20075 | ac_srcdir=. | ||
20076 | ac_top_srcdir=$ac_top_builddir_sub | ||
20077 | ac_abs_top_srcdir=$ac_pwd ;; | ||
20078 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
20079 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
20080 | ac_top_srcdir=$srcdir | ||
20081 | ac_abs_top_srcdir=$srcdir ;; | ||
20082 | *) # Relative name. | ||
20083 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
20084 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
20085 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
20086 | esac | ||
20087 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
20088 | |||
20089 | |||
20090 | case $ac_mode in | ||
20091 | :F) | ||
20092 | # | ||
20093 | # CONFIG_FILE | ||
20094 | # | ||
20095 | |||
20096 | case $INSTALL in | ||
20097 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
20098 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
20099 | esac | ||
20100 | _ACEOF | ||
20101 | |||
20102 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
20103 | # If the template does not know about datarootdir, expand it. | ||
20104 | # FIXME: This hack should be removed a few years after 2.60. | ||
20105 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
20106 | ac_sed_dataroot=' | ||
20107 | /datarootdir/ { | ||
20108 | p | ||
20109 | q | ||
20110 | } | ||
20111 | /@datadir@/p | ||
20112 | /@docdir@/p | ||
20113 | /@infodir@/p | ||
20114 | /@localedir@/p | ||
20115 | /@mandir@/p' | ||
20116 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | ||
20117 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
20118 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
20119 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
20120 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
20121 | _ACEOF | ||
20122 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
20123 | ac_datarootdir_hack=' | ||
20124 | s&@datadir@&$datadir&g | ||
20125 | s&@docdir@&$docdir&g | ||
20126 | s&@infodir@&$infodir&g | ||
20127 | s&@localedir@&$localedir&g | ||
20128 | s&@mandir@&$mandir&g | ||
20129 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
20130 | esac | ||
20131 | _ACEOF | ||
20132 | |||
20133 | # Neutralize VPATH when `$srcdir' = `.'. | ||
20134 | # Shell code in configure.ac might set extrasub. | ||
20135 | # FIXME: do we really want to maintain this feature? | ||
20136 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
20137 | ac_sed_extra="$ac_vpsub | ||
20138 | $extrasub | ||
20139 | _ACEOF | ||
20140 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
20141 | :t | ||
20142 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
20143 | s|@configure_input@|$ac_sed_conf_input|;t t | ||
20144 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
20145 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | ||
20146 | s&@srcdir@&$ac_srcdir&;t t | ||
20147 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
20148 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
20149 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
20150 | s&@builddir@&$ac_builddir&;t t | ||
20151 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
20152 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
20153 | s&@INSTALL@&$ac_INSTALL&;t t | ||
20154 | $ac_datarootdir_hack | ||
20155 | " | ||
20156 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | ||
20157 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
20158 | |||
20159 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
20160 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | ||
20161 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | ||
20162 | "$ac_tmp/out"`; test -z "$ac_out"; } && | ||
20163 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
20164 | which seems to be undefined. Please make sure it is defined" >&5 | ||
20165 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
20166 | which seems to be undefined. Please make sure it is defined" >&2;} | ||
20167 | |||
20168 | rm -f "$ac_tmp/stdin" | ||
20169 | case $ac_file in | ||
20170 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | ||
20171 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | ||
20172 | esac \ | ||
20173 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
20174 | ;; | ||
20175 | :H) | ||
20176 | # | ||
20177 | # CONFIG_HEADER | ||
20178 | # | ||
20179 | if test x"$ac_file" != x-; then | ||
20180 | { | ||
20181 | $as_echo "/* $configure_input */" \ | ||
20182 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | ||
20183 | } >"$ac_tmp/config.h" \ | ||
20184 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
20185 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | ||
20186 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | ||
20187 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | ||
20188 | else | ||
20189 | rm -f "$ac_file" | ||
20190 | mv "$ac_tmp/config.h" "$ac_file" \ | ||
20191 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
20192 | fi | ||
20193 | else | ||
20194 | $as_echo "/* $configure_input */" \ | ||
20195 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | ||
20196 | || as_fn_error $? "could not create -" "$LINENO" 5 | ||
20197 | fi | ||
20198 | ;; | ||
20199 | |||
20200 | |||
20201 | esac | ||
20202 | |||
20203 | done # for ac_tag | ||
20204 | |||
20205 | |||
20206 | as_fn_exit 0 | ||
20207 | _ACEOF | ||
20208 | ac_clean_files=$ac_clean_files_save | ||
20209 | |||
20210 | test $ac_write_fail = 0 || | ||
20211 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | ||
20212 | |||
20213 | |||
20214 | # configure is writing to config.log, and then calls config.status. | ||
20215 | # config.status does its own redirection, appending to config.log. | ||
20216 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
20217 | # by configure, so config.status won't be able to write to it; its | ||
20218 | # output is simply discarded. So we exec the FD to /dev/null, | ||
20219 | # effectively closing config.log, so it can be properly (re)opened and | ||
20220 | # appended to by config.status. When coming back to configure, we | ||
20221 | # need to make the FD available again. | ||
20222 | if test "$no_create" != yes; then | ||
20223 | ac_cs_success=: | ||
20224 | ac_config_status_args= | ||
20225 | test "$silent" = yes && | ||
20226 | ac_config_status_args="$ac_config_status_args --quiet" | ||
20227 | exec 5>/dev/null | ||
20228 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
20229 | exec 5>>config.log | ||
20230 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
20231 | # would make configure fail if this is the last instruction. | ||
20232 | $ac_cs_success || as_fn_exit 1 | ||
20233 | fi | ||
20234 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | ||
20235 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | ||
20236 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | ||
20237 | fi | ||
20238 | |||
20239 | |||
20240 | # Print summary of options | ||
20241 | |||
20242 | # Someone please show me a better way :) | ||
20243 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
20244 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
20245 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
20246 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
20247 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
20248 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
20249 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
20250 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
20251 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
20252 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
20253 | |||
20254 | echo "" | ||
20255 | echo "OpenSSH has been configured with the following options:" | ||
20256 | echo " User binaries: $B" | ||
20257 | echo " System binaries: $C" | ||
20258 | echo " Configuration files: $D" | ||
20259 | echo " Askpass program: $E" | ||
20260 | echo " Manual pages: $F" | ||
20261 | echo " PID file: $G" | ||
20262 | echo " Privilege separation chroot path: $H" | ||
20263 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
20264 | echo " At runtime, sshd will use the path defined in $external_path_file" | ||
20265 | echo " Make sure the path to scp is present, otherwise scp will not work" | ||
20266 | else | ||
20267 | echo " sshd default user PATH: $I" | ||
20268 | if test ! -z "$external_path_file"; then | ||
20269 | echo " (If PATH is set in $external_path_file it will be used instead. If" | ||
20270 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" | ||
20271 | fi | ||
20272 | fi | ||
20273 | if test ! -z "$superuser_path" ; then | ||
20274 | echo " sshd superuser user PATH: $J" | ||
20275 | fi | ||
20276 | echo " Manpage format: $MANTYPE" | ||
20277 | echo " PAM support: $PAM_MSG" | ||
20278 | echo " OSF SIA support: $SIA_MSG" | ||
20279 | echo " KerberosV support: $KRB5_MSG" | ||
20280 | echo " SELinux support: $SELINUX_MSG" | ||
20281 | echo " Smartcard support: $SCARD_MSG" | ||
20282 | echo " S/KEY support: $SKEY_MSG" | ||
20283 | echo " MD5 password support: $MD5_MSG" | ||
20284 | echo " libedit support: $LIBEDIT_MSG" | ||
20285 | echo " Solaris process contract support: $SPC_MSG" | ||
20286 | echo " Solaris project support: $SP_MSG" | ||
20287 | echo " Solaris privilege support: $SPP_MSG" | ||
20288 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
20289 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
20290 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
20291 | echo " Random number source: $RAND_MSG" | ||
20292 | echo " Privsep sandbox style: $SANDBOX_STYLE" | ||
20293 | |||
20294 | echo "" | ||
20295 | |||
20296 | echo " Host: ${host}" | ||
20297 | echo " Compiler: ${CC}" | ||
20298 | echo " Compiler flags: ${CFLAGS}" | ||
20299 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
20300 | echo " Linker flags: ${LDFLAGS}" | ||
20301 | echo " Libraries: ${LIBS}" | ||
20302 | if test ! -z "${SSHDLIBS}"; then | ||
20303 | echo " +for sshd: ${SSHDLIBS}" | ||
20304 | fi | ||
20305 | if test ! -z "${SSHLIBS}"; then | ||
20306 | echo " +for ssh: ${SSHLIBS}" | ||
20307 | fi | ||
20308 | |||
20309 | echo "" | ||
20310 | |||
20311 | if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then | ||
20312 | echo "SVR4 style packages are supported with \"make package\"" | ||
20313 | echo "" | ||
20314 | fi | ||
20315 | |||
20316 | if test "x$PAM_MSG" = "xyes" ; then | ||
20317 | echo "PAM is enabled. You may need to install a PAM control file " | ||
20318 | echo "for sshd, otherwise password authentication may fail. " | ||
20319 | echo "Example PAM control files can be found in the contrib/ " | ||
20320 | echo "subdirectory" | ||
20321 | echo "" | ||
20322 | fi | ||
20323 | |||
20324 | if test ! -z "$NO_PEERCHECK" ; then | ||
20325 | echo "WARNING: the operating system that you are using does not" | ||
20326 | echo "appear to support getpeereid(), getpeerucred() or the" | ||
20327 | echo "SO_PEERCRED getsockopt() option. These facilities are used to" | ||
20328 | echo "enforce security checks to prevent unauthorised connections to" | ||
20329 | echo "ssh-agent. Their absence increases the risk that a malicious" | ||
20330 | echo "user can connect to your agent." | ||
20331 | echo "" | ||
20332 | fi | ||
20333 | |||
20334 | if test "$AUDIT_MODULE" = "bsm" ; then | ||
20335 | echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." | ||
20336 | echo "See the Solaris section in README.platform for details." | ||
20337 | fi | ||