diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 20667 |
1 files changed, 20667 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 000000000..b2c2c3b91 --- /dev/null +++ b/configure | |||
@@ -0,0 +1,20667 @@ | |||
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 | UNSUPPORTED_ALGORITHMS | ||
628 | TEST_MALLOC_OPTIONS | ||
629 | TEST_SSH_UTF8 | ||
630 | TEST_SSH_IPV6 | ||
631 | piddir | ||
632 | user_path | ||
633 | mansubdir | ||
634 | MANTYPE | ||
635 | XAUTH_PATH | ||
636 | STRIP_OPT | ||
637 | xauth_path | ||
638 | PRIVSEP_PATH | ||
639 | K5LIBS | ||
640 | GSSLIBS | ||
641 | KRB5CONF | ||
642 | SSHDLIBS | ||
643 | SSHLIBS | ||
644 | SSH_PRIVSEP_USER | ||
645 | COMMENT_OUT_ECC | ||
646 | TEST_SSH_ECC | ||
647 | LIBEDIT | ||
648 | PKGCONFIG | ||
649 | LDNSCONFIG | ||
650 | LIBOBJS | ||
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_stackprotect | ||
738 | with_hardening | ||
739 | with_rpath | ||
740 | with_cflags | ||
741 | with_cflags_after | ||
742 | with_cppflags | ||
743 | with_ldflags | ||
744 | with_ldflags_after | ||
745 | with_libs | ||
746 | with_Werror | ||
747 | with_solaris_contracts | ||
748 | with_solaris_projects | ||
749 | with_solaris_privs | ||
750 | with_osfsia | ||
751 | with_zlib | ||
752 | with_zlib_version_check | ||
753 | with_skey | ||
754 | with_ldns | ||
755 | with_libedit | ||
756 | with_audit | ||
757 | with_pie | ||
758 | enable_pkcs11 | ||
759 | with_ssl_dir | ||
760 | with_openssl_header_check | ||
761 | with_ssl_engine | ||
762 | with_prngd_port | ||
763 | with_prngd_socket | ||
764 | with_pam | ||
765 | with_pam_service | ||
766 | with_privsep_user | ||
767 | with_sandbox | ||
768 | with_selinux | ||
769 | with_kerberos5 | ||
770 | with_privsep_path | ||
771 | with_xauth | ||
772 | enable_strip | ||
773 | with_maildir | ||
774 | with_mantype | ||
775 | with_md5_passwords | ||
776 | with_shadow | ||
777 | with_ipaddr_display | ||
778 | enable_etc_default_login | ||
779 | with_default_path | ||
780 | with_superuser_path | ||
781 | with_4in6 | ||
782 | with_bsd_auth | ||
783 | with_pid_dir | ||
784 | enable_lastlog | ||
785 | enable_utmp | ||
786 | enable_utmpx | ||
787 | enable_wtmp | ||
788 | enable_wtmpx | ||
789 | enable_libutil | ||
790 | enable_pututline | ||
791 | enable_pututxline | ||
792 | with_lastlog | ||
793 | ' | ||
794 | ac_precious_vars='build_alias | ||
795 | host_alias | ||
796 | target_alias | ||
797 | CC | ||
798 | CFLAGS | ||
799 | LDFLAGS | ||
800 | LIBS | ||
801 | CPPFLAGS | ||
802 | CPP' | ||
803 | |||
804 | |||
805 | # Initialize some variables set by options. | ||
806 | ac_init_help= | ||
807 | ac_init_version=false | ||
808 | ac_unrecognized_opts= | ||
809 | ac_unrecognized_sep= | ||
810 | # The variables have the same names as the options, with | ||
811 | # dashes changed to underlines. | ||
812 | cache_file=/dev/null | ||
813 | exec_prefix=NONE | ||
814 | no_create= | ||
815 | no_recursion= | ||
816 | prefix=NONE | ||
817 | program_prefix=NONE | ||
818 | program_suffix=NONE | ||
819 | program_transform_name=s,x,x, | ||
820 | silent= | ||
821 | site= | ||
822 | srcdir= | ||
823 | verbose= | ||
824 | x_includes=NONE | ||
825 | x_libraries=NONE | ||
826 | |||
827 | # Installation directory options. | ||
828 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
829 | # and all the variables that are supposed to be based on exec_prefix | ||
830 | # by default will actually change. | ||
831 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
832 | # (The list follows the same order as the GNU Coding Standards.) | ||
833 | bindir='${exec_prefix}/bin' | ||
834 | sbindir='${exec_prefix}/sbin' | ||
835 | libexecdir='${exec_prefix}/libexec' | ||
836 | datarootdir='${prefix}/share' | ||
837 | datadir='${datarootdir}' | ||
838 | sysconfdir='${prefix}/etc' | ||
839 | sharedstatedir='${prefix}/com' | ||
840 | localstatedir='${prefix}/var' | ||
841 | includedir='${prefix}/include' | ||
842 | oldincludedir='/usr/include' | ||
843 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
844 | infodir='${datarootdir}/info' | ||
845 | htmldir='${docdir}' | ||
846 | dvidir='${docdir}' | ||
847 | pdfdir='${docdir}' | ||
848 | psdir='${docdir}' | ||
849 | libdir='${exec_prefix}/lib' | ||
850 | localedir='${datarootdir}/locale' | ||
851 | mandir='${datarootdir}/man' | ||
852 | |||
853 | ac_prev= | ||
854 | ac_dashdash= | ||
855 | for ac_option | ||
856 | do | ||
857 | # If the previous option needs an argument, assign it. | ||
858 | if test -n "$ac_prev"; then | ||
859 | eval $ac_prev=\$ac_option | ||
860 | ac_prev= | ||
861 | continue | ||
862 | fi | ||
863 | |||
864 | case $ac_option in | ||
865 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
866 | *=) ac_optarg= ;; | ||
867 | *) ac_optarg=yes ;; | ||
868 | esac | ||
869 | |||
870 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
871 | |||
872 | case $ac_dashdash$ac_option in | ||
873 | --) | ||
874 | ac_dashdash=yes ;; | ||
875 | |||
876 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
877 | ac_prev=bindir ;; | ||
878 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
879 | bindir=$ac_optarg ;; | ||
880 | |||
881 | -build | --build | --buil | --bui | --bu) | ||
882 | ac_prev=build_alias ;; | ||
883 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
884 | build_alias=$ac_optarg ;; | ||
885 | |||
886 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
887 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
888 | ac_prev=cache_file ;; | ||
889 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
890 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
891 | cache_file=$ac_optarg ;; | ||
892 | |||
893 | --config-cache | -C) | ||
894 | cache_file=config.cache ;; | ||
895 | |||
896 | -datadir | --datadir | --datadi | --datad) | ||
897 | ac_prev=datadir ;; | ||
898 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
899 | datadir=$ac_optarg ;; | ||
900 | |||
901 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
902 | | --dataroo | --dataro | --datar) | ||
903 | ac_prev=datarootdir ;; | ||
904 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
905 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
906 | datarootdir=$ac_optarg ;; | ||
907 | |||
908 | -disable-* | --disable-*) | ||
909 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
910 | # Reject names that are not valid shell variable names. | ||
911 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
912 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
913 | ac_useropt_orig=$ac_useropt | ||
914 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
915 | case $ac_user_opts in | ||
916 | *" | ||
917 | "enable_$ac_useropt" | ||
918 | "*) ;; | ||
919 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||
920 | ac_unrecognized_sep=', ';; | ||
921 | esac | ||
922 | eval enable_$ac_useropt=no ;; | ||
923 | |||
924 | -docdir | --docdir | --docdi | --doc | --do) | ||
925 | ac_prev=docdir ;; | ||
926 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
927 | docdir=$ac_optarg ;; | ||
928 | |||
929 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
930 | ac_prev=dvidir ;; | ||
931 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
932 | dvidir=$ac_optarg ;; | ||
933 | |||
934 | -enable-* | --enable-*) | ||
935 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
936 | # Reject names that are not valid shell variable names. | ||
937 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
938 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
939 | ac_useropt_orig=$ac_useropt | ||
940 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
941 | case $ac_user_opts in | ||
942 | *" | ||
943 | "enable_$ac_useropt" | ||
944 | "*) ;; | ||
945 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||
946 | ac_unrecognized_sep=', ';; | ||
947 | esac | ||
948 | eval enable_$ac_useropt=\$ac_optarg ;; | ||
949 | |||
950 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
951 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
952 | | --exec | --exe | --ex) | ||
953 | ac_prev=exec_prefix ;; | ||
954 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
955 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
956 | | --exec=* | --exe=* | --ex=*) | ||
957 | exec_prefix=$ac_optarg ;; | ||
958 | |||
959 | -gas | --gas | --ga | --g) | ||
960 | # Obsolete; use --with-gas. | ||
961 | with_gas=yes ;; | ||
962 | |||
963 | -help | --help | --hel | --he | -h) | ||
964 | ac_init_help=long ;; | ||
965 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
966 | ac_init_help=recursive ;; | ||
967 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
968 | ac_init_help=short ;; | ||
969 | |||
970 | -host | --host | --hos | --ho) | ||
971 | ac_prev=host_alias ;; | ||
972 | -host=* | --host=* | --hos=* | --ho=*) | ||
973 | host_alias=$ac_optarg ;; | ||
974 | |||
975 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
976 | ac_prev=htmldir ;; | ||
977 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
978 | | --ht=*) | ||
979 | htmldir=$ac_optarg ;; | ||
980 | |||
981 | -includedir | --includedir | --includedi | --included | --include \ | ||
982 | | --includ | --inclu | --incl | --inc) | ||
983 | ac_prev=includedir ;; | ||
984 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
985 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
986 | includedir=$ac_optarg ;; | ||
987 | |||
988 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
989 | ac_prev=infodir ;; | ||
990 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
991 | infodir=$ac_optarg ;; | ||
992 | |||
993 | -libdir | --libdir | --libdi | --libd) | ||
994 | ac_prev=libdir ;; | ||
995 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
996 | libdir=$ac_optarg ;; | ||
997 | |||
998 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
999 | | --libexe | --libex | --libe) | ||
1000 | ac_prev=libexecdir ;; | ||
1001 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
1002 | | --libexe=* | --libex=* | --libe=*) | ||
1003 | libexecdir=$ac_optarg ;; | ||
1004 | |||
1005 | -localedir | --localedir | --localedi | --localed | --locale) | ||
1006 | ac_prev=localedir ;; | ||
1007 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
1008 | localedir=$ac_optarg ;; | ||
1009 | |||
1010 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
1011 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
1012 | ac_prev=localstatedir ;; | ||
1013 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
1014 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
1015 | localstatedir=$ac_optarg ;; | ||
1016 | |||
1017 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
1018 | ac_prev=mandir ;; | ||
1019 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
1020 | mandir=$ac_optarg ;; | ||
1021 | |||
1022 | -nfp | --nfp | --nf) | ||
1023 | # Obsolete; use --without-fp. | ||
1024 | with_fp=no ;; | ||
1025 | |||
1026 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
1027 | | --no-cr | --no-c | -n) | ||
1028 | no_create=yes ;; | ||
1029 | |||
1030 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
1031 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
1032 | no_recursion=yes ;; | ||
1033 | |||
1034 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
1035 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
1036 | | --oldin | --oldi | --old | --ol | --o) | ||
1037 | ac_prev=oldincludedir ;; | ||
1038 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
1039 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
1040 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
1041 | oldincludedir=$ac_optarg ;; | ||
1042 | |||
1043 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
1044 | ac_prev=prefix ;; | ||
1045 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
1046 | prefix=$ac_optarg ;; | ||
1047 | |||
1048 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
1049 | | --program-pre | --program-pr | --program-p) | ||
1050 | ac_prev=program_prefix ;; | ||
1051 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
1052 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
1053 | program_prefix=$ac_optarg ;; | ||
1054 | |||
1055 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
1056 | | --program-suf | --program-su | --program-s) | ||
1057 | ac_prev=program_suffix ;; | ||
1058 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
1059 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
1060 | program_suffix=$ac_optarg ;; | ||
1061 | |||
1062 | -program-transform-name | --program-transform-name \ | ||
1063 | | --program-transform-nam | --program-transform-na \ | ||
1064 | | --program-transform-n | --program-transform- \ | ||
1065 | | --program-transform | --program-transfor \ | ||
1066 | | --program-transfo | --program-transf \ | ||
1067 | | --program-trans | --program-tran \ | ||
1068 | | --progr-tra | --program-tr | --program-t) | ||
1069 | ac_prev=program_transform_name ;; | ||
1070 | -program-transform-name=* | --program-transform-name=* \ | ||
1071 | | --program-transform-nam=* | --program-transform-na=* \ | ||
1072 | | --program-transform-n=* | --program-transform-=* \ | ||
1073 | | --program-transform=* | --program-transfor=* \ | ||
1074 | | --program-transfo=* | --program-transf=* \ | ||
1075 | | --program-trans=* | --program-tran=* \ | ||
1076 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
1077 | program_transform_name=$ac_optarg ;; | ||
1078 | |||
1079 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
1080 | ac_prev=pdfdir ;; | ||
1081 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1082 | pdfdir=$ac_optarg ;; | ||
1083 | |||
1084 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1085 | ac_prev=psdir ;; | ||
1086 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1087 | psdir=$ac_optarg ;; | ||
1088 | |||
1089 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1090 | | -silent | --silent | --silen | --sile | --sil) | ||
1091 | silent=yes ;; | ||
1092 | |||
1093 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1094 | ac_prev=sbindir ;; | ||
1095 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1096 | | --sbi=* | --sb=*) | ||
1097 | sbindir=$ac_optarg ;; | ||
1098 | |||
1099 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1100 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1101 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1102 | | --sha | --sh) | ||
1103 | ac_prev=sharedstatedir ;; | ||
1104 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1105 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1106 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1107 | | --sha=* | --sh=*) | ||
1108 | sharedstatedir=$ac_optarg ;; | ||
1109 | |||
1110 | -site | --site | --sit) | ||
1111 | ac_prev=site ;; | ||
1112 | -site=* | --site=* | --sit=*) | ||
1113 | site=$ac_optarg ;; | ||
1114 | |||
1115 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1116 | ac_prev=srcdir ;; | ||
1117 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1118 | srcdir=$ac_optarg ;; | ||
1119 | |||
1120 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1121 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1122 | ac_prev=sysconfdir ;; | ||
1123 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1124 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1125 | sysconfdir=$ac_optarg ;; | ||
1126 | |||
1127 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1128 | ac_prev=target_alias ;; | ||
1129 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1130 | target_alias=$ac_optarg ;; | ||
1131 | |||
1132 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1133 | verbose=yes ;; | ||
1134 | |||
1135 | -version | --version | --versio | --versi | --vers | -V) | ||
1136 | ac_init_version=: ;; | ||
1137 | |||
1138 | -with-* | --with-*) | ||
1139 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1140 | # Reject names that are not valid shell variable names. | ||
1141 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1142 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1143 | ac_useropt_orig=$ac_useropt | ||
1144 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1145 | case $ac_user_opts in | ||
1146 | *" | ||
1147 | "with_$ac_useropt" | ||
1148 | "*) ;; | ||
1149 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||
1150 | ac_unrecognized_sep=', ';; | ||
1151 | esac | ||
1152 | eval with_$ac_useropt=\$ac_optarg ;; | ||
1153 | |||
1154 | -without-* | --without-*) | ||
1155 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1156 | # Reject names that are not valid shell variable names. | ||
1157 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1158 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1159 | ac_useropt_orig=$ac_useropt | ||
1160 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1161 | case $ac_user_opts in | ||
1162 | *" | ||
1163 | "with_$ac_useropt" | ||
1164 | "*) ;; | ||
1165 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||
1166 | ac_unrecognized_sep=', ';; | ||
1167 | esac | ||
1168 | eval with_$ac_useropt=no ;; | ||
1169 | |||
1170 | --x) | ||
1171 | # Obsolete; use --with-x. | ||
1172 | with_x=yes ;; | ||
1173 | |||
1174 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1175 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1176 | ac_prev=x_includes ;; | ||
1177 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1178 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1179 | x_includes=$ac_optarg ;; | ||
1180 | |||
1181 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1182 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1183 | ac_prev=x_libraries ;; | ||
1184 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1185 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1186 | x_libraries=$ac_optarg ;; | ||
1187 | |||
1188 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | ||
1189 | Try \`$0 --help' for more information" | ||
1190 | ;; | ||
1191 | |||
1192 | *=*) | ||
1193 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1194 | # Reject names that are not valid shell variable names. | ||
1195 | case $ac_envvar in #( | ||
1196 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | ||
1197 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | ||
1198 | esac | ||
1199 | eval $ac_envvar=\$ac_optarg | ||
1200 | export $ac_envvar ;; | ||
1201 | |||
1202 | *) | ||
1203 | # FIXME: should be removed in autoconf 3.0. | ||
1204 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1205 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1206 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1207 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | ||
1208 | ;; | ||
1209 | |||
1210 | esac | ||
1211 | done | ||
1212 | |||
1213 | if test -n "$ac_prev"; then | ||
1214 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1215 | as_fn_error $? "missing argument to $ac_option" | ||
1216 | fi | ||
1217 | |||
1218 | if test -n "$ac_unrecognized_opts"; then | ||
1219 | case $enable_option_checking in | ||
1220 | no) ;; | ||
1221 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | ||
1222 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | ||
1223 | esac | ||
1224 | fi | ||
1225 | |||
1226 | # Check all directory arguments for consistency. | ||
1227 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1228 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1229 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1230 | libdir localedir mandir | ||
1231 | do | ||
1232 | eval ac_val=\$$ac_var | ||
1233 | # Remove trailing slashes. | ||
1234 | case $ac_val in | ||
1235 | */ ) | ||
1236 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||
1237 | eval $ac_var=\$ac_val;; | ||
1238 | esac | ||
1239 | # Be sure to have absolute directory names. | ||
1240 | case $ac_val in | ||
1241 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1242 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1243 | esac | ||
1244 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | ||
1245 | done | ||
1246 | |||
1247 | # There might be people who depend on the old broken behavior: `$host' | ||
1248 | # used to hold the argument of --host etc. | ||
1249 | # FIXME: To remove some day. | ||
1250 | build=$build_alias | ||
1251 | host=$host_alias | ||
1252 | target=$target_alias | ||
1253 | |||
1254 | # FIXME: To remove some day. | ||
1255 | if test "x$host_alias" != x; then | ||
1256 | if test "x$build_alias" = x; then | ||
1257 | cross_compiling=maybe | ||
1258 | elif test "x$build_alias" != "x$host_alias"; then | ||
1259 | cross_compiling=yes | ||
1260 | fi | ||
1261 | fi | ||
1262 | |||
1263 | ac_tool_prefix= | ||
1264 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1265 | |||
1266 | test "$silent" = yes && exec 6>/dev/null | ||
1267 | |||
1268 | |||
1269 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1270 | ac_ls_di=`ls -di .` && | ||
1271 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1272 | as_fn_error $? "working directory cannot be determined" | ||
1273 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1274 | as_fn_error $? "pwd does not report name of working directory" | ||
1275 | |||
1276 | |||
1277 | # Find the source files, if location was not specified. | ||
1278 | if test -z "$srcdir"; then | ||
1279 | ac_srcdir_defaulted=yes | ||
1280 | # Try the directory containing this script, then the parent directory. | ||
1281 | ac_confdir=`$as_dirname -- "$as_myself" || | ||
1282 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1283 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||
1284 | X"$as_myself" : 'X\(//\)$' \| \ | ||
1285 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||
1286 | $as_echo X"$as_myself" | | ||
1287 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1288 | s//\1/ | ||
1289 | q | ||
1290 | } | ||
1291 | /^X\(\/\/\)[^/].*/{ | ||
1292 | s//\1/ | ||
1293 | q | ||
1294 | } | ||
1295 | /^X\(\/\/\)$/{ | ||
1296 | s//\1/ | ||
1297 | q | ||
1298 | } | ||
1299 | /^X\(\/\).*/{ | ||
1300 | s//\1/ | ||
1301 | q | ||
1302 | } | ||
1303 | s/.*/./; q'` | ||
1304 | srcdir=$ac_confdir | ||
1305 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1306 | srcdir=.. | ||
1307 | fi | ||
1308 | else | ||
1309 | ac_srcdir_defaulted=no | ||
1310 | fi | ||
1311 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1312 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1313 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | ||
1314 | fi | ||
1315 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1316 | ac_abs_confdir=`( | ||
1317 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | ||
1318 | pwd)` | ||
1319 | # When building in place, set srcdir=. | ||
1320 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1321 | srcdir=. | ||
1322 | fi | ||
1323 | # Remove unnecessary trailing slashes from srcdir. | ||
1324 | # Double slashes in file names in object file debugging info | ||
1325 | # mess up M-x gdb in Emacs. | ||
1326 | case $srcdir in | ||
1327 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1328 | esac | ||
1329 | for ac_var in $ac_precious_vars; do | ||
1330 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1331 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1332 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1333 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1334 | done | ||
1335 | |||
1336 | # | ||
1337 | # Report the --help message. | ||
1338 | # | ||
1339 | if test "$ac_init_help" = "long"; then | ||
1340 | # Omit some internal or obsolete options to make the list less imposing. | ||
1341 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1342 | cat <<_ACEOF | ||
1343 | \`configure' configures OpenSSH Portable to adapt to many kinds of systems. | ||
1344 | |||
1345 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1346 | |||
1347 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1348 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1349 | |||
1350 | Defaults for the options are specified in brackets. | ||
1351 | |||
1352 | Configuration: | ||
1353 | -h, --help display this help and exit | ||
1354 | --help=short display options specific to this package | ||
1355 | --help=recursive display the short help of all the included packages | ||
1356 | -V, --version display version information and exit | ||
1357 | -q, --quiet, --silent do not print \`checking ...' messages | ||
1358 | --cache-file=FILE cache test results in FILE [disabled] | ||
1359 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1360 | -n, --no-create do not create output files | ||
1361 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1362 | |||
1363 | Installation directories: | ||
1364 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1365 | [$ac_default_prefix] | ||
1366 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1367 | [PREFIX] | ||
1368 | |||
1369 | By default, \`make install' will install all the files in | ||
1370 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1371 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1372 | for instance \`--prefix=\$HOME'. | ||
1373 | |||
1374 | For better control, use the options below. | ||
1375 | |||
1376 | Fine tuning of the installation directories: | ||
1377 | --bindir=DIR user executables [EPREFIX/bin] | ||
1378 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1379 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1380 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1381 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1382 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1383 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1384 | --includedir=DIR C header files [PREFIX/include] | ||
1385 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1386 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1387 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1388 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1389 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1390 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1391 | --docdir=DIR documentation root [DATAROOTDIR/doc/openssh] | ||
1392 | --htmldir=DIR html documentation [DOCDIR] | ||
1393 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1394 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1395 | --psdir=DIR ps documentation [DOCDIR] | ||
1396 | _ACEOF | ||
1397 | |||
1398 | cat <<\_ACEOF | ||
1399 | |||
1400 | System types: | ||
1401 | --build=BUILD configure for building on BUILD [guessed] | ||
1402 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1403 | _ACEOF | ||
1404 | fi | ||
1405 | |||
1406 | if test -n "$ac_init_help"; then | ||
1407 | case $ac_init_help in | ||
1408 | short | recursive ) echo "Configuration of OpenSSH Portable:";; | ||
1409 | esac | ||
1410 | cat <<\_ACEOF | ||
1411 | |||
1412 | Optional Features: | ||
1413 | --disable-option-checking ignore unrecognized --enable/--with options | ||
1414 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1415 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1416 | --disable-largefile omit support for large files | ||
1417 | --disable-pkcs11 disable PKCS#11 support code [no] | ||
1418 | --disable-strip Disable calling strip(1) on install | ||
1419 | --disable-etc-default-login Disable using PATH from /etc/default/login no | ||
1420 | --disable-lastlog disable use of lastlog even if detected no | ||
1421 | --disable-utmp disable use of utmp even if detected no | ||
1422 | --disable-utmpx disable use of utmpx even if detected no | ||
1423 | --disable-wtmp disable use of wtmp even if detected no | ||
1424 | --disable-wtmpx disable use of wtmpx even if detected no | ||
1425 | --disable-libutil disable use of libutil (login() etc.) no | ||
1426 | --disable-pututline disable use of pututline() etc. (uwtmp) no | ||
1427 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | ||
1428 | |||
1429 | Optional Packages: | ||
1430 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1431 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1432 | --without-openssl Disable use of OpenSSL; use only limited internal crypto **EXPERIMENTAL** | ||
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-cflags-after Specify additional flags to pass to compiler after configure | ||
1438 | --with-cppflags Specify additional flags to pass to preprocessor | ||
1439 | --with-ldflags Specify additional flags to pass to linker | ||
1440 | --with-ldflags-after Specify additional flags to pass to linker after configure | ||
1441 | --with-libs Specify additional libraries to link with | ||
1442 | --with-Werror Build main code with -Werror | ||
1443 | --with-solaris-contracts Enable Solaris process contracts (experimental) | ||
1444 | --with-solaris-projects Enable Solaris projects (experimental) | ||
1445 | --with-solaris-privs Enable Solaris/Illumos privileges (experimental) | ||
1446 | --with-osfsia Enable Digital Unix SIA | ||
1447 | --with-zlib=PATH Use zlib in PATH | ||
1448 | --without-zlib-version-check Disable zlib version check | ||
1449 | --with-skey[=PATH] Enable S/Key support (optionally in PATH) | ||
1450 | --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH) | ||
1451 | --with-libedit[=PATH] Enable libedit support for sftp | ||
1452 | --with-audit=module Enable audit support (modules=debug,bsm,linux) | ||
1453 | --with-pie Build Position Independent Executables if possible | ||
1454 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
1455 | --without-openssl-header-check Disable OpenSSL version consistency check | ||
1456 | --with-ssl-engine Enable OpenSSL (hardware) ENGINE support | ||
1457 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
1458 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
1459 | --with-pam Enable PAM support | ||
1460 | --with-pam-service=name Specify PAM service name | ||
1461 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
1462 | --with-sandbox=style Specify privilege separation sandbox (no, capsicum, darwin, rlimit, seccomp_filter, systrace, pledge) | ||
1463 | --with-selinux Enable SELinux support | ||
1464 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
1465 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | ||
1466 | --with-xauth=PATH Specify path to xauth program | ||
1467 | --with-maildir=/path/to/mail Specify your system mail directory | ||
1468 | --with-mantype=man|cat|doc Set man page type | ||
1469 | --with-md5-passwords Enable use of MD5 passwords | ||
1470 | --without-shadow Disable shadow password support | ||
1471 | --with-ipaddr-display Use ip address instead of hostname in $DISPLAY | ||
1472 | --with-default-path= Specify default $PATH environment for server | ||
1473 | --with-superuser-path= Specify different path for super-user | ||
1474 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
1475 | --with-bsd-auth Enable BSD auth support | ||
1476 | --with-pid-dir=PATH Specify location of ssh.pid file | ||
1477 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
1478 | |||
1479 | Some influential environment variables: | ||
1480 | CC C compiler command | ||
1481 | CFLAGS C compiler flags | ||
1482 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1483 | nonstandard directory <lib dir> | ||
1484 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
1485 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | ||
1486 | you have headers in a nonstandard directory <include dir> | ||
1487 | CPP C preprocessor | ||
1488 | |||
1489 | Use these variables to override the choices made by `configure' or to help | ||
1490 | it to find libraries and programs with nonstandard names/locations. | ||
1491 | |||
1492 | Report bugs to <openssh-unix-dev@mindrot.org>. | ||
1493 | _ACEOF | ||
1494 | ac_status=$? | ||
1495 | fi | ||
1496 | |||
1497 | if test "$ac_init_help" = "recursive"; then | ||
1498 | # If there are subdirs, report their specific --help. | ||
1499 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1500 | test -d "$ac_dir" || | ||
1501 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||
1502 | continue | ||
1503 | ac_builddir=. | ||
1504 | |||
1505 | case "$ac_dir" in | ||
1506 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1507 | *) | ||
1508 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
1509 | # A ".." for each directory in $ac_dir_suffix. | ||
1510 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
1511 | case $ac_top_builddir_sub in | ||
1512 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1513 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1514 | esac ;; | ||
1515 | esac | ||
1516 | ac_abs_top_builddir=$ac_pwd | ||
1517 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1518 | # for backward compatibility: | ||
1519 | ac_top_builddir=$ac_top_build_prefix | ||
1520 | |||
1521 | case $srcdir in | ||
1522 | .) # We are building in place. | ||
1523 | ac_srcdir=. | ||
1524 | ac_top_srcdir=$ac_top_builddir_sub | ||
1525 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1526 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1527 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1528 | ac_top_srcdir=$srcdir | ||
1529 | ac_abs_top_srcdir=$srcdir ;; | ||
1530 | *) # Relative name. | ||
1531 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1532 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1533 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1534 | esac | ||
1535 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1536 | |||
1537 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1538 | # Check for guested configure. | ||
1539 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1540 | echo && | ||
1541 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1542 | elif test -f "$ac_srcdir/configure"; then | ||
1543 | echo && | ||
1544 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1545 | else | ||
1546 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1547 | fi || ac_status=$? | ||
1548 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1549 | done | ||
1550 | fi | ||
1551 | |||
1552 | test -n "$ac_init_help" && exit $ac_status | ||
1553 | if $ac_init_version; then | ||
1554 | cat <<\_ACEOF | ||
1555 | OpenSSH configure Portable | ||
1556 | generated by GNU Autoconf 2.69 | ||
1557 | |||
1558 | Copyright (C) 2012 Free Software Foundation, Inc. | ||
1559 | This configure script is free software; the Free Software Foundation | ||
1560 | gives unlimited permission to copy, distribute and modify it. | ||
1561 | _ACEOF | ||
1562 | exit | ||
1563 | fi | ||
1564 | |||
1565 | ## ------------------------ ## | ||
1566 | ## Autoconf initialization. ## | ||
1567 | ## ------------------------ ## | ||
1568 | |||
1569 | # ac_fn_c_try_compile LINENO | ||
1570 | # -------------------------- | ||
1571 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
1572 | ac_fn_c_try_compile () | ||
1573 | { | ||
1574 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1575 | rm -f conftest.$ac_objext | ||
1576 | if { { ac_try="$ac_compile" | ||
1577 | case "(($ac_try" in | ||
1578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1579 | *) ac_try_echo=$ac_try;; | ||
1580 | esac | ||
1581 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1582 | $as_echo "$ac_try_echo"; } >&5 | ||
1583 | (eval "$ac_compile") 2>conftest.err | ||
1584 | ac_status=$? | ||
1585 | if test -s conftest.err; then | ||
1586 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1587 | cat conftest.er1 >&5 | ||
1588 | mv -f conftest.er1 conftest.err | ||
1589 | fi | ||
1590 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1591 | test $ac_status = 0; } && { | ||
1592 | test -z "$ac_c_werror_flag" || | ||
1593 | test ! -s conftest.err | ||
1594 | } && test -s conftest.$ac_objext; then : | ||
1595 | ac_retval=0 | ||
1596 | else | ||
1597 | $as_echo "$as_me: failed program was:" >&5 | ||
1598 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1599 | |||
1600 | ac_retval=1 | ||
1601 | fi | ||
1602 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1603 | as_fn_set_status $ac_retval | ||
1604 | |||
1605 | } # ac_fn_c_try_compile | ||
1606 | |||
1607 | # ac_fn_c_try_run LINENO | ||
1608 | # ---------------------- | ||
1609 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | ||
1610 | # that executables *can* be run. | ||
1611 | ac_fn_c_try_run () | ||
1612 | { | ||
1613 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1614 | if { { ac_try="$ac_link" | ||
1615 | case "(($ac_try" in | ||
1616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1617 | *) ac_try_echo=$ac_try;; | ||
1618 | esac | ||
1619 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1620 | $as_echo "$ac_try_echo"; } >&5 | ||
1621 | (eval "$ac_link") 2>&5 | ||
1622 | ac_status=$? | ||
1623 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1624 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | ||
1625 | { { case "(($ac_try" in | ||
1626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1627 | *) ac_try_echo=$ac_try;; | ||
1628 | esac | ||
1629 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1630 | $as_echo "$ac_try_echo"; } >&5 | ||
1631 | (eval "$ac_try") 2>&5 | ||
1632 | ac_status=$? | ||
1633 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1634 | test $ac_status = 0; }; }; then : | ||
1635 | ac_retval=0 | ||
1636 | else | ||
1637 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
1638 | $as_echo "$as_me: failed program was:" >&5 | ||
1639 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1640 | |||
1641 | ac_retval=$ac_status | ||
1642 | fi | ||
1643 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
1644 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1645 | as_fn_set_status $ac_retval | ||
1646 | |||
1647 | } # ac_fn_c_try_run | ||
1648 | |||
1649 | # ac_fn_c_try_cpp LINENO | ||
1650 | # ---------------------- | ||
1651 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
1652 | ac_fn_c_try_cpp () | ||
1653 | { | ||
1654 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1655 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
1656 | case "(($ac_try" in | ||
1657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1658 | *) ac_try_echo=$ac_try;; | ||
1659 | esac | ||
1660 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1661 | $as_echo "$ac_try_echo"; } >&5 | ||
1662 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
1663 | ac_status=$? | ||
1664 | if test -s conftest.err; then | ||
1665 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1666 | cat conftest.er1 >&5 | ||
1667 | mv -f conftest.er1 conftest.err | ||
1668 | fi | ||
1669 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1670 | test $ac_status = 0; } > conftest.i && { | ||
1671 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
1672 | test ! -s conftest.err | ||
1673 | }; then : | ||
1674 | ac_retval=0 | ||
1675 | else | ||
1676 | $as_echo "$as_me: failed program was:" >&5 | ||
1677 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1678 | |||
1679 | ac_retval=1 | ||
1680 | fi | ||
1681 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1682 | as_fn_set_status $ac_retval | ||
1683 | |||
1684 | } # ac_fn_c_try_cpp | ||
1685 | |||
1686 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | ||
1687 | # ------------------------------------------------------- | ||
1688 | # Tests whether HEADER exists and can be compiled using the include files in | ||
1689 | # INCLUDES, setting the cache variable VAR accordingly. | ||
1690 | ac_fn_c_check_header_compile () | ||
1691 | { | ||
1692 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1694 | $as_echo_n "checking for $2... " >&6; } | ||
1695 | if eval \${$3+:} false; then : | ||
1696 | $as_echo_n "(cached) " >&6 | ||
1697 | else | ||
1698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1699 | /* end confdefs.h. */ | ||
1700 | $4 | ||
1701 | #include <$2> | ||
1702 | _ACEOF | ||
1703 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1704 | eval "$3=yes" | ||
1705 | else | ||
1706 | eval "$3=no" | ||
1707 | fi | ||
1708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1709 | fi | ||
1710 | eval ac_res=\$$3 | ||
1711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1712 | $as_echo "$ac_res" >&6; } | ||
1713 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1714 | |||
1715 | } # ac_fn_c_check_header_compile | ||
1716 | |||
1717 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | ||
1718 | # --------------------------------------------- | ||
1719 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | ||
1720 | # accordingly. | ||
1721 | ac_fn_c_check_decl () | ||
1722 | { | ||
1723 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1724 | as_decl_name=`echo $2|sed 's/ *(.*//'` | ||
1725 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | ||
1726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | ||
1727 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | ||
1728 | if eval \${$3+:} false; then : | ||
1729 | $as_echo_n "(cached) " >&6 | ||
1730 | else | ||
1731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1732 | /* end confdefs.h. */ | ||
1733 | $4 | ||
1734 | int | ||
1735 | main () | ||
1736 | { | ||
1737 | #ifndef $as_decl_name | ||
1738 | #ifdef __cplusplus | ||
1739 | (void) $as_decl_use; | ||
1740 | #else | ||
1741 | (void) $as_decl_name; | ||
1742 | #endif | ||
1743 | #endif | ||
1744 | |||
1745 | ; | ||
1746 | return 0; | ||
1747 | } | ||
1748 | _ACEOF | ||
1749 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1750 | eval "$3=yes" | ||
1751 | else | ||
1752 | eval "$3=no" | ||
1753 | fi | ||
1754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1755 | fi | ||
1756 | eval ac_res=\$$3 | ||
1757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1758 | $as_echo "$ac_res" >&6; } | ||
1759 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1760 | |||
1761 | } # ac_fn_c_check_decl | ||
1762 | |||
1763 | # ac_fn_c_try_link LINENO | ||
1764 | # ----------------------- | ||
1765 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
1766 | ac_fn_c_try_link () | ||
1767 | { | ||
1768 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1769 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
1770 | if { { ac_try="$ac_link" | ||
1771 | case "(($ac_try" in | ||
1772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1773 | *) ac_try_echo=$ac_try;; | ||
1774 | esac | ||
1775 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1776 | $as_echo "$ac_try_echo"; } >&5 | ||
1777 | (eval "$ac_link") 2>conftest.err | ||
1778 | ac_status=$? | ||
1779 | if test -s conftest.err; then | ||
1780 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1781 | cat conftest.er1 >&5 | ||
1782 | mv -f conftest.er1 conftest.err | ||
1783 | fi | ||
1784 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1785 | test $ac_status = 0; } && { | ||
1786 | test -z "$ac_c_werror_flag" || | ||
1787 | test ! -s conftest.err | ||
1788 | } && test -s conftest$ac_exeext && { | ||
1789 | test "$cross_compiling" = yes || | ||
1790 | test -x conftest$ac_exeext | ||
1791 | }; then : | ||
1792 | ac_retval=0 | ||
1793 | else | ||
1794 | $as_echo "$as_me: failed program was:" >&5 | ||
1795 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1796 | |||
1797 | ac_retval=1 | ||
1798 | fi | ||
1799 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
1800 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
1801 | # interfere with the next link command; also delete a directory that is | ||
1802 | # left behind by Apple's compiler. We do this before executing the actions. | ||
1803 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
1804 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1805 | as_fn_set_status $ac_retval | ||
1806 | |||
1807 | } # ac_fn_c_try_link | ||
1808 | |||
1809 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | ||
1810 | # ------------------------------------------------------- | ||
1811 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | ||
1812 | # the include files in INCLUDES and setting the cache variable VAR | ||
1813 | # accordingly. | ||
1814 | ac_fn_c_check_header_mongrel () | ||
1815 | { | ||
1816 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1817 | if eval \${$3+:} false; then : | ||
1818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1819 | $as_echo_n "checking for $2... " >&6; } | ||
1820 | if eval \${$3+:} false; then : | ||
1821 | $as_echo_n "(cached) " >&6 | ||
1822 | fi | ||
1823 | eval ac_res=\$$3 | ||
1824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1825 | $as_echo "$ac_res" >&6; } | ||
1826 | else | ||
1827 | # Is the header compilable? | ||
1828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||
1829 | $as_echo_n "checking $2 usability... " >&6; } | ||
1830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1831 | /* end confdefs.h. */ | ||
1832 | $4 | ||
1833 | #include <$2> | ||
1834 | _ACEOF | ||
1835 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1836 | ac_header_compiler=yes | ||
1837 | else | ||
1838 | ac_header_compiler=no | ||
1839 | fi | ||
1840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||
1842 | $as_echo "$ac_header_compiler" >&6; } | ||
1843 | |||
1844 | # Is the header present? | ||
1845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||
1846 | $as_echo_n "checking $2 presence... " >&6; } | ||
1847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1848 | /* end confdefs.h. */ | ||
1849 | #include <$2> | ||
1850 | _ACEOF | ||
1851 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
1852 | ac_header_preproc=yes | ||
1853 | else | ||
1854 | ac_header_preproc=no | ||
1855 | fi | ||
1856 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
1857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | ||
1858 | $as_echo "$ac_header_preproc" >&6; } | ||
1859 | |||
1860 | # So? What about this header? | ||
1861 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||
1862 | yes:no: ) | ||
1863 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
1864 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
1865 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
1866 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
1867 | ;; | ||
1868 | no:yes:* ) | ||
1869 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | ||
1870 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||
1871 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | ||
1872 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | ||
1873 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | ||
1874 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||
1875 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | ||
1876 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | ||
1877 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
1878 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
1879 | ( $as_echo "## ------------------------------------------- ## | ||
1880 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
1881 | ## ------------------------------------------- ##" | ||
1882 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
1883 | ;; | ||
1884 | esac | ||
1885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1886 | $as_echo_n "checking for $2... " >&6; } | ||
1887 | if eval \${$3+:} false; then : | ||
1888 | $as_echo_n "(cached) " >&6 | ||
1889 | else | ||
1890 | eval "$3=\$ac_header_compiler" | ||
1891 | fi | ||
1892 | eval ac_res=\$$3 | ||
1893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1894 | $as_echo "$ac_res" >&6; } | ||
1895 | fi | ||
1896 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1897 | |||
1898 | } # ac_fn_c_check_header_mongrel | ||
1899 | |||
1900 | # ac_fn_c_check_func LINENO FUNC VAR | ||
1901 | # ---------------------------------- | ||
1902 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | ||
1903 | ac_fn_c_check_func () | ||
1904 | { | ||
1905 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1907 | $as_echo_n "checking for $2... " >&6; } | ||
1908 | if eval \${$3+:} false; then : | ||
1909 | $as_echo_n "(cached) " >&6 | ||
1910 | else | ||
1911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1912 | /* end confdefs.h. */ | ||
1913 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||
1914 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
1915 | #define $2 innocuous_$2 | ||
1916 | |||
1917 | /* System header to define __stub macros and hopefully few prototypes, | ||
1918 | which can conflict with char $2 (); below. | ||
1919 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
1920 | <limits.h> exists even on freestanding compilers. */ | ||
1921 | |||
1922 | #ifdef __STDC__ | ||
1923 | # include <limits.h> | ||
1924 | #else | ||
1925 | # include <assert.h> | ||
1926 | #endif | ||
1927 | |||
1928 | #undef $2 | ||
1929 | |||
1930 | /* Override any GCC internal prototype to avoid an error. | ||
1931 | Use char because int might match the return type of a GCC | ||
1932 | builtin and then its argument prototype would still apply. */ | ||
1933 | #ifdef __cplusplus | ||
1934 | extern "C" | ||
1935 | #endif | ||
1936 | char $2 (); | ||
1937 | /* The GNU C library defines this for functions which it implements | ||
1938 | to always fail with ENOSYS. Some functions are actually named | ||
1939 | something starting with __ and the normal name is an alias. */ | ||
1940 | #if defined __stub_$2 || defined __stub___$2 | ||
1941 | choke me | ||
1942 | #endif | ||
1943 | |||
1944 | int | ||
1945 | main () | ||
1946 | { | ||
1947 | return $2 (); | ||
1948 | ; | ||
1949 | return 0; | ||
1950 | } | ||
1951 | _ACEOF | ||
1952 | if ac_fn_c_try_link "$LINENO"; then : | ||
1953 | eval "$3=yes" | ||
1954 | else | ||
1955 | eval "$3=no" | ||
1956 | fi | ||
1957 | rm -f core conftest.err conftest.$ac_objext \ | ||
1958 | conftest$ac_exeext conftest.$ac_ext | ||
1959 | fi | ||
1960 | eval ac_res=\$$3 | ||
1961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1962 | $as_echo "$ac_res" >&6; } | ||
1963 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1964 | |||
1965 | } # ac_fn_c_check_func | ||
1966 | |||
1967 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | ||
1968 | # ------------------------------------------- | ||
1969 | # Tests whether TYPE exists after having included INCLUDES, setting cache | ||
1970 | # variable VAR accordingly. | ||
1971 | ac_fn_c_check_type () | ||
1972 | { | ||
1973 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1975 | $as_echo_n "checking for $2... " >&6; } | ||
1976 | if eval \${$3+:} false; then : | ||
1977 | $as_echo_n "(cached) " >&6 | ||
1978 | else | ||
1979 | eval "$3=no" | ||
1980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1981 | /* end confdefs.h. */ | ||
1982 | $4 | ||
1983 | int | ||
1984 | main () | ||
1985 | { | ||
1986 | if (sizeof ($2)) | ||
1987 | return 0; | ||
1988 | ; | ||
1989 | return 0; | ||
1990 | } | ||
1991 | _ACEOF | ||
1992 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1994 | /* end confdefs.h. */ | ||
1995 | $4 | ||
1996 | int | ||
1997 | main () | ||
1998 | { | ||
1999 | if (sizeof (($2))) | ||
2000 | return 0; | ||
2001 | ; | ||
2002 | return 0; | ||
2003 | } | ||
2004 | _ACEOF | ||
2005 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2006 | |||
2007 | else | ||
2008 | eval "$3=yes" | ||
2009 | fi | ||
2010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2011 | fi | ||
2012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2013 | fi | ||
2014 | eval ac_res=\$$3 | ||
2015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2016 | $as_echo "$ac_res" >&6; } | ||
2017 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
2018 | |||
2019 | } # ac_fn_c_check_type | ||
2020 | |||
2021 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | ||
2022 | # -------------------------------------------- | ||
2023 | # Tries to find the compile-time value of EXPR in a program that includes | ||
2024 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | ||
2025 | # computed | ||
2026 | ac_fn_c_compute_int () | ||
2027 | { | ||
2028 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2029 | if test "$cross_compiling" = yes; then | ||
2030 | # Depending upon the size, compute the lo and hi bounds. | ||
2031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2032 | /* end confdefs.h. */ | ||
2033 | $4 | ||
2034 | int | ||
2035 | main () | ||
2036 | { | ||
2037 | static int test_array [1 - 2 * !(($2) >= 0)]; | ||
2038 | test_array [0] = 0; | ||
2039 | return test_array [0]; | ||
2040 | |||
2041 | ; | ||
2042 | return 0; | ||
2043 | } | ||
2044 | _ACEOF | ||
2045 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2046 | ac_lo=0 ac_mid=0 | ||
2047 | while :; do | ||
2048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2049 | /* end confdefs.h. */ | ||
2050 | $4 | ||
2051 | int | ||
2052 | main () | ||
2053 | { | ||
2054 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
2055 | test_array [0] = 0; | ||
2056 | return test_array [0]; | ||
2057 | |||
2058 | ; | ||
2059 | return 0; | ||
2060 | } | ||
2061 | _ACEOF | ||
2062 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2063 | ac_hi=$ac_mid; break | ||
2064 | else | ||
2065 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | ||
2066 | if test $ac_lo -le $ac_mid; then | ||
2067 | ac_lo= ac_hi= | ||
2068 | break | ||
2069 | fi | ||
2070 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | ||
2071 | fi | ||
2072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2073 | done | ||
2074 | else | ||
2075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2076 | /* end confdefs.h. */ | ||
2077 | $4 | ||
2078 | int | ||
2079 | main () | ||
2080 | { | ||
2081 | static int test_array [1 - 2 * !(($2) < 0)]; | ||
2082 | test_array [0] = 0; | ||
2083 | return test_array [0]; | ||
2084 | |||
2085 | ; | ||
2086 | return 0; | ||
2087 | } | ||
2088 | _ACEOF | ||
2089 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2090 | ac_hi=-1 ac_mid=-1 | ||
2091 | while :; do | ||
2092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2093 | /* end confdefs.h. */ | ||
2094 | $4 | ||
2095 | int | ||
2096 | main () | ||
2097 | { | ||
2098 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | ||
2099 | test_array [0] = 0; | ||
2100 | return test_array [0]; | ||
2101 | |||
2102 | ; | ||
2103 | return 0; | ||
2104 | } | ||
2105 | _ACEOF | ||
2106 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2107 | ac_lo=$ac_mid; break | ||
2108 | else | ||
2109 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | ||
2110 | if test $ac_mid -le $ac_hi; then | ||
2111 | ac_lo= ac_hi= | ||
2112 | break | ||
2113 | fi | ||
2114 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | ||
2115 | fi | ||
2116 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2117 | done | ||
2118 | else | ||
2119 | ac_lo= ac_hi= | ||
2120 | fi | ||
2121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2122 | fi | ||
2123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2124 | # Binary search between lo and hi bounds. | ||
2125 | while test "x$ac_lo" != "x$ac_hi"; do | ||
2126 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | ||
2127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2128 | /* end confdefs.h. */ | ||
2129 | $4 | ||
2130 | int | ||
2131 | main () | ||
2132 | { | ||
2133 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
2134 | test_array [0] = 0; | ||
2135 | return test_array [0]; | ||
2136 | |||
2137 | ; | ||
2138 | return 0; | ||
2139 | } | ||
2140 | _ACEOF | ||
2141 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2142 | ac_hi=$ac_mid | ||
2143 | else | ||
2144 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | ||
2145 | fi | ||
2146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2147 | done | ||
2148 | case $ac_lo in #(( | ||
2149 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | ||
2150 | '') ac_retval=1 ;; | ||
2151 | esac | ||
2152 | else | ||
2153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2154 | /* end confdefs.h. */ | ||
2155 | $4 | ||
2156 | static long int longval () { return $2; } | ||
2157 | static unsigned long int ulongval () { return $2; } | ||
2158 | #include <stdio.h> | ||
2159 | #include <stdlib.h> | ||
2160 | int | ||
2161 | main () | ||
2162 | { | ||
2163 | |||
2164 | FILE *f = fopen ("conftest.val", "w"); | ||
2165 | if (! f) | ||
2166 | return 1; | ||
2167 | if (($2) < 0) | ||
2168 | { | ||
2169 | long int i = longval (); | ||
2170 | if (i != ($2)) | ||
2171 | return 1; | ||
2172 | fprintf (f, "%ld", i); | ||
2173 | } | ||
2174 | else | ||
2175 | { | ||
2176 | unsigned long int i = ulongval (); | ||
2177 | if (i != ($2)) | ||
2178 | return 1; | ||
2179 | fprintf (f, "%lu", i); | ||
2180 | } | ||
2181 | /* Do not output a trailing newline, as this causes \r\n confusion | ||
2182 | on some platforms. */ | ||
2183 | return ferror (f) || fclose (f) != 0; | ||
2184 | |||
2185 | ; | ||
2186 | return 0; | ||
2187 | } | ||
2188 | _ACEOF | ||
2189 | if ac_fn_c_try_run "$LINENO"; then : | ||
2190 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | ||
2191 | else | ||
2192 | ac_retval=1 | ||
2193 | fi | ||
2194 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
2195 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
2196 | rm -f conftest.val | ||
2197 | |||
2198 | fi | ||
2199 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
2200 | as_fn_set_status $ac_retval | ||
2201 | |||
2202 | } # ac_fn_c_compute_int | ||
2203 | |||
2204 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | ||
2205 | # ---------------------------------------------------- | ||
2206 | # Tries to find if the field MEMBER exists in type AGGR, after including | ||
2207 | # INCLUDES, setting cache variable VAR accordingly. | ||
2208 | ac_fn_c_check_member () | ||
2209 | { | ||
2210 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | ||
2212 | $as_echo_n "checking for $2.$3... " >&6; } | ||
2213 | if eval \${$4+:} false; then : | ||
2214 | $as_echo_n "(cached) " >&6 | ||
2215 | else | ||
2216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2217 | /* end confdefs.h. */ | ||
2218 | $5 | ||
2219 | int | ||
2220 | main () | ||
2221 | { | ||
2222 | static $2 ac_aggr; | ||
2223 | if (ac_aggr.$3) | ||
2224 | return 0; | ||
2225 | ; | ||
2226 | return 0; | ||
2227 | } | ||
2228 | _ACEOF | ||
2229 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2230 | eval "$4=yes" | ||
2231 | else | ||
2232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2233 | /* end confdefs.h. */ | ||
2234 | $5 | ||
2235 | int | ||
2236 | main () | ||
2237 | { | ||
2238 | static $2 ac_aggr; | ||
2239 | if (sizeof ac_aggr.$3) | ||
2240 | return 0; | ||
2241 | ; | ||
2242 | return 0; | ||
2243 | } | ||
2244 | _ACEOF | ||
2245 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2246 | eval "$4=yes" | ||
2247 | else | ||
2248 | eval "$4=no" | ||
2249 | fi | ||
2250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2251 | fi | ||
2252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2253 | fi | ||
2254 | eval ac_res=\$$4 | ||
2255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2256 | $as_echo "$ac_res" >&6; } | ||
2257 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
2258 | |||
2259 | } # ac_fn_c_check_member | ||
2260 | cat >config.log <<_ACEOF | ||
2261 | This file contains any messages produced by compilers while | ||
2262 | running configure, to aid debugging if configure makes a mistake. | ||
2263 | |||
2264 | It was created by OpenSSH $as_me Portable, which was | ||
2265 | generated by GNU Autoconf 2.69. Invocation command line was | ||
2266 | |||
2267 | $ $0 $@ | ||
2268 | |||
2269 | _ACEOF | ||
2270 | exec 5>>config.log | ||
2271 | { | ||
2272 | cat <<_ASUNAME | ||
2273 | ## --------- ## | ||
2274 | ## Platform. ## | ||
2275 | ## --------- ## | ||
2276 | |||
2277 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
2278 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
2279 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
2280 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
2281 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
2282 | |||
2283 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
2284 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
2285 | |||
2286 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
2287 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
2288 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
2289 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
2290 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
2291 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
2292 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
2293 | |||
2294 | _ASUNAME | ||
2295 | |||
2296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2297 | for as_dir in $PATH | ||
2298 | do | ||
2299 | IFS=$as_save_IFS | ||
2300 | test -z "$as_dir" && as_dir=. | ||
2301 | $as_echo "PATH: $as_dir" | ||
2302 | done | ||
2303 | IFS=$as_save_IFS | ||
2304 | |||
2305 | } >&5 | ||
2306 | |||
2307 | cat >&5 <<_ACEOF | ||
2308 | |||
2309 | |||
2310 | ## ----------- ## | ||
2311 | ## Core tests. ## | ||
2312 | ## ----------- ## | ||
2313 | |||
2314 | _ACEOF | ||
2315 | |||
2316 | |||
2317 | # Keep a trace of the command line. | ||
2318 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
2319 | # Strip out --silent because we don't want to record it for future runs. | ||
2320 | # Also quote any args containing shell meta-characters. | ||
2321 | # Make two passes to allow for proper duplicate-argument suppression. | ||
2322 | ac_configure_args= | ||
2323 | ac_configure_args0= | ||
2324 | ac_configure_args1= | ||
2325 | ac_must_keep_next=false | ||
2326 | for ac_pass in 1 2 | ||
2327 | do | ||
2328 | for ac_arg | ||
2329 | do | ||
2330 | case $ac_arg in | ||
2331 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
2332 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
2333 | | -silent | --silent | --silen | --sile | --sil) | ||
2334 | continue ;; | ||
2335 | *\'*) | ||
2336 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2337 | esac | ||
2338 | case $ac_pass in | ||
2339 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | ||
2340 | 2) | ||
2341 | as_fn_append ac_configure_args1 " '$ac_arg'" | ||
2342 | if test $ac_must_keep_next = true; then | ||
2343 | ac_must_keep_next=false # Got value, back to normal. | ||
2344 | else | ||
2345 | case $ac_arg in | ||
2346 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
2347 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
2348 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
2349 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
2350 | case "$ac_configure_args0 " in | ||
2351 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
2352 | esac | ||
2353 | ;; | ||
2354 | -* ) ac_must_keep_next=true ;; | ||
2355 | esac | ||
2356 | fi | ||
2357 | as_fn_append ac_configure_args " '$ac_arg'" | ||
2358 | ;; | ||
2359 | esac | ||
2360 | done | ||
2361 | done | ||
2362 | { ac_configure_args0=; unset ac_configure_args0;} | ||
2363 | { ac_configure_args1=; unset ac_configure_args1;} | ||
2364 | |||
2365 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
2366 | # config.log. We remove comments because anyway the quotes in there | ||
2367 | # would cause problems or look ugly. | ||
2368 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
2369 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
2370 | trap 'exit_status=$? | ||
2371 | # Save into config.log some information that might help in debugging. | ||
2372 | { | ||
2373 | echo | ||
2374 | |||
2375 | $as_echo "## ---------------- ## | ||
2376 | ## Cache variables. ## | ||
2377 | ## ---------------- ##" | ||
2378 | echo | ||
2379 | # The following way of writing the cache mishandles newlines in values, | ||
2380 | ( | ||
2381 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
2382 | eval ac_val=\$$ac_var | ||
2383 | case $ac_val in #( | ||
2384 | *${as_nl}*) | ||
2385 | case $ac_var in #( | ||
2386 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
2387 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
2388 | esac | ||
2389 | case $ac_var in #( | ||
2390 | _ | IFS | as_nl) ;; #( | ||
2391 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
2392 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
2393 | esac ;; | ||
2394 | esac | ||
2395 | done | ||
2396 | (set) 2>&1 | | ||
2397 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
2398 | *${as_nl}ac_space=\ *) | ||
2399 | sed -n \ | ||
2400 | "s/'\''/'\''\\\\'\'''\''/g; | ||
2401 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
2402 | ;; #( | ||
2403 | *) | ||
2404 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
2405 | ;; | ||
2406 | esac | | ||
2407 | sort | ||
2408 | ) | ||
2409 | echo | ||
2410 | |||
2411 | $as_echo "## ----------------- ## | ||
2412 | ## Output variables. ## | ||
2413 | ## ----------------- ##" | ||
2414 | echo | ||
2415 | for ac_var in $ac_subst_vars | ||
2416 | do | ||
2417 | eval ac_val=\$$ac_var | ||
2418 | case $ac_val in | ||
2419 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2420 | esac | ||
2421 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2422 | done | sort | ||
2423 | echo | ||
2424 | |||
2425 | if test -n "$ac_subst_files"; then | ||
2426 | $as_echo "## ------------------- ## | ||
2427 | ## File substitutions. ## | ||
2428 | ## ------------------- ##" | ||
2429 | echo | ||
2430 | for ac_var in $ac_subst_files | ||
2431 | do | ||
2432 | eval ac_val=\$$ac_var | ||
2433 | case $ac_val in | ||
2434 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2435 | esac | ||
2436 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2437 | done | sort | ||
2438 | echo | ||
2439 | fi | ||
2440 | |||
2441 | if test -s confdefs.h; then | ||
2442 | $as_echo "## ----------- ## | ||
2443 | ## confdefs.h. ## | ||
2444 | ## ----------- ##" | ||
2445 | echo | ||
2446 | cat confdefs.h | ||
2447 | echo | ||
2448 | fi | ||
2449 | test "$ac_signal" != 0 && | ||
2450 | $as_echo "$as_me: caught signal $ac_signal" | ||
2451 | $as_echo "$as_me: exit $exit_status" | ||
2452 | } >&5 | ||
2453 | rm -f core *.core core.conftest.* && | ||
2454 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
2455 | exit $exit_status | ||
2456 | ' 0 | ||
2457 | for ac_signal in 1 2 13 15; do | ||
2458 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | ||
2459 | done | ||
2460 | ac_signal=0 | ||
2461 | |||
2462 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
2463 | rm -f -r conftest* confdefs.h | ||
2464 | |||
2465 | $as_echo "/* confdefs.h */" > confdefs.h | ||
2466 | |||
2467 | # Predefined preprocessor variables. | ||
2468 | |||
2469 | cat >>confdefs.h <<_ACEOF | ||
2470 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
2471 | _ACEOF | ||
2472 | |||
2473 | cat >>confdefs.h <<_ACEOF | ||
2474 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
2475 | _ACEOF | ||
2476 | |||
2477 | cat >>confdefs.h <<_ACEOF | ||
2478 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
2479 | _ACEOF | ||
2480 | |||
2481 | cat >>confdefs.h <<_ACEOF | ||
2482 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
2483 | _ACEOF | ||
2484 | |||
2485 | cat >>confdefs.h <<_ACEOF | ||
2486 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
2487 | _ACEOF | ||
2488 | |||
2489 | cat >>confdefs.h <<_ACEOF | ||
2490 | #define PACKAGE_URL "$PACKAGE_URL" | ||
2491 | _ACEOF | ||
2492 | |||
2493 | |||
2494 | # Let the site file select an alternate cache file if it wants to. | ||
2495 | # Prefer an explicitly selected file to automatically selected ones. | ||
2496 | ac_site_file1=NONE | ||
2497 | ac_site_file2=NONE | ||
2498 | if test -n "$CONFIG_SITE"; then | ||
2499 | # We do not want a PATH search for config.site. | ||
2500 | case $CONFIG_SITE in #(( | ||
2501 | -*) ac_site_file1=./$CONFIG_SITE;; | ||
2502 | */*) ac_site_file1=$CONFIG_SITE;; | ||
2503 | *) ac_site_file1=./$CONFIG_SITE;; | ||
2504 | esac | ||
2505 | elif test "x$prefix" != xNONE; then | ||
2506 | ac_site_file1=$prefix/share/config.site | ||
2507 | ac_site_file2=$prefix/etc/config.site | ||
2508 | else | ||
2509 | ac_site_file1=$ac_default_prefix/share/config.site | ||
2510 | ac_site_file2=$ac_default_prefix/etc/config.site | ||
2511 | fi | ||
2512 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | ||
2513 | do | ||
2514 | test "x$ac_site_file" = xNONE && continue | ||
2515 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||
2516 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | ||
2517 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||
2518 | sed 's/^/| /' "$ac_site_file" >&5 | ||
2519 | . "$ac_site_file" \ | ||
2520 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2521 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2522 | as_fn_error $? "failed to load site script $ac_site_file | ||
2523 | See \`config.log' for more details" "$LINENO" 5; } | ||
2524 | fi | ||
2525 | done | ||
2526 | |||
2527 | if test -r "$cache_file"; then | ||
2528 | # Some versions of bash will fail to source /dev/null (special files | ||
2529 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | ||
2530 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | ||
2531 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | ||
2532 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||
2533 | case $cache_file in | ||
2534 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
2535 | *) . "./$cache_file";; | ||
2536 | esac | ||
2537 | fi | ||
2538 | else | ||
2539 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | ||
2540 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||
2541 | >$cache_file | ||
2542 | fi | ||
2543 | |||
2544 | # Check that the precious variables saved in the cache have kept the same | ||
2545 | # value. | ||
2546 | ac_cache_corrupted=false | ||
2547 | for ac_var in $ac_precious_vars; do | ||
2548 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
2549 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
2550 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
2551 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
2552 | case $ac_old_set,$ac_new_set in | ||
2553 | set,) | ||
2554 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
2555 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
2556 | ac_cache_corrupted=: ;; | ||
2557 | ,set) | ||
2558 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | ||
2559 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
2560 | ac_cache_corrupted=: ;; | ||
2561 | ,);; | ||
2562 | *) | ||
2563 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
2564 | # differences in whitespace do not lead to failure. | ||
2565 | ac_old_val_w=`echo x $ac_old_val` | ||
2566 | ac_new_val_w=`echo x $ac_new_val` | ||
2567 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||
2568 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | ||
2569 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
2570 | ac_cache_corrupted=: | ||
2571 | else | ||
2572 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | ||
2573 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||
2574 | eval $ac_var=\$ac_old_val | ||
2575 | fi | ||
2576 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | ||
2577 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||
2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | ||
2579 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||
2580 | fi;; | ||
2581 | esac | ||
2582 | # Pass precious variables to config.status. | ||
2583 | if test "$ac_new_set" = set; then | ||
2584 | case $ac_new_val in | ||
2585 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2586 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
2587 | esac | ||
2588 | case " $ac_configure_args " in | ||
2589 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
2590 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | ||
2591 | esac | ||
2592 | fi | ||
2593 | done | ||
2594 | if $ac_cache_corrupted; then | ||
2595 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2596 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | ||
2598 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
2599 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | ||
2600 | fi | ||
2601 | ## -------------------- ## | ||
2602 | ## Main body of script. ## | ||
2603 | ## -------------------- ## | ||
2604 | |||
2605 | ac_ext=c | ||
2606 | ac_cpp='$CPP $CPPFLAGS' | ||
2607 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2608 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2609 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2610 | |||
2611 | |||
2612 | |||
2613 | |||
2614 | ac_ext=c | ||
2615 | ac_cpp='$CPP $CPPFLAGS' | ||
2616 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2617 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2618 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2619 | |||
2620 | |||
2621 | ac_config_headers="$ac_config_headers config.h" | ||
2622 | |||
2623 | ac_ext=c | ||
2624 | ac_cpp='$CPP $CPPFLAGS' | ||
2625 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2626 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2627 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2628 | if test -n "$ac_tool_prefix"; then | ||
2629 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
2630 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
2631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2632 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2633 | if ${ac_cv_prog_CC+:} false; then : | ||
2634 | $as_echo_n "(cached) " >&6 | ||
2635 | else | ||
2636 | if test -n "$CC"; then | ||
2637 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2638 | else | ||
2639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2640 | for as_dir in $PATH | ||
2641 | do | ||
2642 | IFS=$as_save_IFS | ||
2643 | test -z "$as_dir" && as_dir=. | ||
2644 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2645 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2646 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
2647 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2648 | break 2 | ||
2649 | fi | ||
2650 | done | ||
2651 | done | ||
2652 | IFS=$as_save_IFS | ||
2653 | |||
2654 | fi | ||
2655 | fi | ||
2656 | CC=$ac_cv_prog_CC | ||
2657 | if test -n "$CC"; then | ||
2658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2659 | $as_echo "$CC" >&6; } | ||
2660 | else | ||
2661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2662 | $as_echo "no" >&6; } | ||
2663 | fi | ||
2664 | |||
2665 | |||
2666 | fi | ||
2667 | if test -z "$ac_cv_prog_CC"; then | ||
2668 | ac_ct_CC=$CC | ||
2669 | # Extract the first word of "gcc", so it can be a program name with args. | ||
2670 | set dummy gcc; ac_word=$2 | ||
2671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2672 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2673 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | ||
2674 | $as_echo_n "(cached) " >&6 | ||
2675 | else | ||
2676 | if test -n "$ac_ct_CC"; then | ||
2677 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2678 | else | ||
2679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2680 | for as_dir in $PATH | ||
2681 | do | ||
2682 | IFS=$as_save_IFS | ||
2683 | test -z "$as_dir" && as_dir=. | ||
2684 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2685 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2686 | ac_cv_prog_ac_ct_CC="gcc" | ||
2687 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2688 | break 2 | ||
2689 | fi | ||
2690 | done | ||
2691 | done | ||
2692 | IFS=$as_save_IFS | ||
2693 | |||
2694 | fi | ||
2695 | fi | ||
2696 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2697 | if test -n "$ac_ct_CC"; then | ||
2698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
2699 | $as_echo "$ac_ct_CC" >&6; } | ||
2700 | else | ||
2701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2702 | $as_echo "no" >&6; } | ||
2703 | fi | ||
2704 | |||
2705 | if test "x$ac_ct_CC" = x; then | ||
2706 | CC="" | ||
2707 | else | ||
2708 | case $cross_compiling:$ac_tool_warned in | ||
2709 | yes:) | ||
2710 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
2711 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
2712 | ac_tool_warned=yes ;; | ||
2713 | esac | ||
2714 | CC=$ac_ct_CC | ||
2715 | fi | ||
2716 | else | ||
2717 | CC="$ac_cv_prog_CC" | ||
2718 | fi | ||
2719 | |||
2720 | if test -z "$CC"; then | ||
2721 | if test -n "$ac_tool_prefix"; then | ||
2722 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
2723 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
2724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2725 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2726 | if ${ac_cv_prog_CC+:} false; then : | ||
2727 | $as_echo_n "(cached) " >&6 | ||
2728 | else | ||
2729 | if test -n "$CC"; then | ||
2730 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2731 | else | ||
2732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2733 | for as_dir in $PATH | ||
2734 | do | ||
2735 | IFS=$as_save_IFS | ||
2736 | test -z "$as_dir" && as_dir=. | ||
2737 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2738 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2739 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
2740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2741 | break 2 | ||
2742 | fi | ||
2743 | done | ||
2744 | done | ||
2745 | IFS=$as_save_IFS | ||
2746 | |||
2747 | fi | ||
2748 | fi | ||
2749 | CC=$ac_cv_prog_CC | ||
2750 | if test -n "$CC"; then | ||
2751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2752 | $as_echo "$CC" >&6; } | ||
2753 | else | ||
2754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2755 | $as_echo "no" >&6; } | ||
2756 | fi | ||
2757 | |||
2758 | |||
2759 | fi | ||
2760 | fi | ||
2761 | if test -z "$CC"; then | ||
2762 | # Extract the first word of "cc", so it can be a program name with args. | ||
2763 | set dummy cc; ac_word=$2 | ||
2764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2765 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2766 | if ${ac_cv_prog_CC+:} false; then : | ||
2767 | $as_echo_n "(cached) " >&6 | ||
2768 | else | ||
2769 | if test -n "$CC"; then | ||
2770 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2771 | else | ||
2772 | ac_prog_rejected=no | ||
2773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2774 | for as_dir in $PATH | ||
2775 | do | ||
2776 | IFS=$as_save_IFS | ||
2777 | test -z "$as_dir" && as_dir=. | ||
2778 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2779 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2780 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
2781 | ac_prog_rejected=yes | ||
2782 | continue | ||
2783 | fi | ||
2784 | ac_cv_prog_CC="cc" | ||
2785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2786 | break 2 | ||
2787 | fi | ||
2788 | done | ||
2789 | done | ||
2790 | IFS=$as_save_IFS | ||
2791 | |||
2792 | if test $ac_prog_rejected = yes; then | ||
2793 | # We found a bogon in the path, so make sure we never use it. | ||
2794 | set dummy $ac_cv_prog_CC | ||
2795 | shift | ||
2796 | if test $# != 0; then | ||
2797 | # We chose a different compiler from the bogus one. | ||
2798 | # However, it has the same basename, so the bogon will be chosen | ||
2799 | # first if we set CC to just the basename; use the full file name. | ||
2800 | shift | ||
2801 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
2802 | fi | ||
2803 | fi | ||
2804 | fi | ||
2805 | fi | ||
2806 | CC=$ac_cv_prog_CC | ||
2807 | if test -n "$CC"; then | ||
2808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2809 | $as_echo "$CC" >&6; } | ||
2810 | else | ||
2811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2812 | $as_echo "no" >&6; } | ||
2813 | fi | ||
2814 | |||
2815 | |||
2816 | fi | ||
2817 | if test -z "$CC"; then | ||
2818 | if test -n "$ac_tool_prefix"; then | ||
2819 | for ac_prog in cl.exe | ||
2820 | do | ||
2821 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
2822 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
2823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2824 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2825 | if ${ac_cv_prog_CC+:} false; then : | ||
2826 | $as_echo_n "(cached) " >&6 | ||
2827 | else | ||
2828 | if test -n "$CC"; then | ||
2829 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2830 | else | ||
2831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2832 | for as_dir in $PATH | ||
2833 | do | ||
2834 | IFS=$as_save_IFS | ||
2835 | test -z "$as_dir" && as_dir=. | ||
2836 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2837 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2838 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
2839 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2840 | break 2 | ||
2841 | fi | ||
2842 | done | ||
2843 | done | ||
2844 | IFS=$as_save_IFS | ||
2845 | |||
2846 | fi | ||
2847 | fi | ||
2848 | CC=$ac_cv_prog_CC | ||
2849 | if test -n "$CC"; then | ||
2850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2851 | $as_echo "$CC" >&6; } | ||
2852 | else | ||
2853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2854 | $as_echo "no" >&6; } | ||
2855 | fi | ||
2856 | |||
2857 | |||
2858 | test -n "$CC" && break | ||
2859 | done | ||
2860 | fi | ||
2861 | if test -z "$CC"; then | ||
2862 | ac_ct_CC=$CC | ||
2863 | for ac_prog in cl.exe | ||
2864 | do | ||
2865 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2866 | set dummy $ac_prog; ac_word=$2 | ||
2867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2868 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2869 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | ||
2870 | $as_echo_n "(cached) " >&6 | ||
2871 | else | ||
2872 | if test -n "$ac_ct_CC"; then | ||
2873 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2874 | else | ||
2875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2876 | for as_dir in $PATH | ||
2877 | do | ||
2878 | IFS=$as_save_IFS | ||
2879 | test -z "$as_dir" && as_dir=. | ||
2880 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2881 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2882 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
2883 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2884 | break 2 | ||
2885 | fi | ||
2886 | done | ||
2887 | done | ||
2888 | IFS=$as_save_IFS | ||
2889 | |||
2890 | fi | ||
2891 | fi | ||
2892 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2893 | if test -n "$ac_ct_CC"; then | ||
2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
2895 | $as_echo "$ac_ct_CC" >&6; } | ||
2896 | else | ||
2897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2898 | $as_echo "no" >&6; } | ||
2899 | fi | ||
2900 | |||
2901 | |||
2902 | test -n "$ac_ct_CC" && break | ||
2903 | done | ||
2904 | |||
2905 | if test "x$ac_ct_CC" = x; then | ||
2906 | CC="" | ||
2907 | else | ||
2908 | case $cross_compiling:$ac_tool_warned in | ||
2909 | yes:) | ||
2910 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
2911 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
2912 | ac_tool_warned=yes ;; | ||
2913 | esac | ||
2914 | CC=$ac_ct_CC | ||
2915 | fi | ||
2916 | fi | ||
2917 | |||
2918 | fi | ||
2919 | |||
2920 | |||
2921 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2922 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2923 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
2924 | See \`config.log' for more details" "$LINENO" 5; } | ||
2925 | |||
2926 | # Provide some information about the compiler. | ||
2927 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
2928 | set X $ac_compile | ||
2929 | ac_compiler=$2 | ||
2930 | for ac_option in --version -v -V -qversion; do | ||
2931 | { { ac_try="$ac_compiler $ac_option >&5" | ||
2932 | case "(($ac_try" in | ||
2933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2934 | *) ac_try_echo=$ac_try;; | ||
2935 | esac | ||
2936 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2937 | $as_echo "$ac_try_echo"; } >&5 | ||
2938 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
2939 | ac_status=$? | ||
2940 | if test -s conftest.err; then | ||
2941 | sed '10a\ | ||
2942 | ... rest of stderr output deleted ... | ||
2943 | 10q' conftest.err >conftest.er1 | ||
2944 | cat conftest.er1 >&5 | ||
2945 | fi | ||
2946 | rm -f conftest.er1 conftest.err | ||
2947 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2948 | test $ac_status = 0; } | ||
2949 | done | ||
2950 | |||
2951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2952 | /* end confdefs.h. */ | ||
2953 | |||
2954 | int | ||
2955 | main () | ||
2956 | { | ||
2957 | |||
2958 | ; | ||
2959 | return 0; | ||
2960 | } | ||
2961 | _ACEOF | ||
2962 | ac_clean_files_save=$ac_clean_files | ||
2963 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | ||
2964 | # Try to create an executable without -o first, disregard a.out. | ||
2965 | # It will help us diagnose broken compilers, and finding out an intuition | ||
2966 | # of exeext. | ||
2967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | ||
2968 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||
2969 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
2970 | |||
2971 | # The possible output files: | ||
2972 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||
2973 | |||
2974 | ac_rmfiles= | ||
2975 | for ac_file in $ac_files | ||
2976 | do | ||
2977 | case $ac_file in | ||
2978 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
2979 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
2980 | esac | ||
2981 | done | ||
2982 | rm -f $ac_rmfiles | ||
2983 | |||
2984 | if { { ac_try="$ac_link_default" | ||
2985 | case "(($ac_try" in | ||
2986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2987 | *) ac_try_echo=$ac_try;; | ||
2988 | esac | ||
2989 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2990 | $as_echo "$ac_try_echo"; } >&5 | ||
2991 | (eval "$ac_link_default") 2>&5 | ||
2992 | ac_status=$? | ||
2993 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2994 | test $ac_status = 0; }; then : | ||
2995 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
2996 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
2997 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
2998 | # so that the user can short-circuit this test for compilers unknown to | ||
2999 | # Autoconf. | ||
3000 | for ac_file in $ac_files '' | ||
3001 | do | ||
3002 | test -f "$ac_file" || continue | ||
3003 | case $ac_file in | ||
3004 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | ||
3005 | ;; | ||
3006 | [ab].out ) | ||
3007 | # We found the default executable, but exeext='' is most | ||
3008 | # certainly right. | ||
3009 | break;; | ||
3010 | *.* ) | ||
3011 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
3012 | then :; else | ||
3013 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
3014 | fi | ||
3015 | # We set ac_cv_exeext here because the later test for it is not | ||
3016 | # safe: cross compilers may not add the suffix if given an `-o' | ||
3017 | # argument, so we may need to know it at that point already. | ||
3018 | # Even if this section looks crufty: it has the advantage of | ||
3019 | # actually working. | ||
3020 | break;; | ||
3021 | * ) | ||
3022 | break;; | ||
3023 | esac | ||
3024 | done | ||
3025 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
3026 | |||
3027 | else | ||
3028 | ac_file='' | ||
3029 | fi | ||
3030 | if test -z "$ac_file"; then : | ||
3031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3032 | $as_echo "no" >&6; } | ||
3033 | $as_echo "$as_me: failed program was:" >&5 | ||
3034 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3035 | |||
3036 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3037 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3038 | as_fn_error 77 "C compiler cannot create executables | ||
3039 | See \`config.log' for more details" "$LINENO" 5; } | ||
3040 | else | ||
3041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
3042 | $as_echo "yes" >&6; } | ||
3043 | fi | ||
3044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | ||
3045 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||
3046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||
3047 | $as_echo "$ac_file" >&6; } | ||
3048 | ac_exeext=$ac_cv_exeext | ||
3049 | |||
3050 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | ||
3051 | ac_clean_files=$ac_clean_files_save | ||
3052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | ||
3053 | $as_echo_n "checking for suffix of executables... " >&6; } | ||
3054 | if { { ac_try="$ac_link" | ||
3055 | case "(($ac_try" in | ||
3056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3057 | *) ac_try_echo=$ac_try;; | ||
3058 | esac | ||
3059 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3060 | $as_echo "$ac_try_echo"; } >&5 | ||
3061 | (eval "$ac_link") 2>&5 | ||
3062 | ac_status=$? | ||
3063 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3064 | test $ac_status = 0; }; then : | ||
3065 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
3066 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
3067 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
3068 | # `rm'. | ||
3069 | for ac_file in conftest.exe conftest conftest.*; do | ||
3070 | test -f "$ac_file" || continue | ||
3071 | case $ac_file in | ||
3072 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
3073 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
3074 | break;; | ||
3075 | * ) break;; | ||
3076 | esac | ||
3077 | done | ||
3078 | else | ||
3079 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3080 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3081 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | ||
3082 | See \`config.log' for more details" "$LINENO" 5; } | ||
3083 | fi | ||
3084 | rm -f conftest conftest$ac_cv_exeext | ||
3085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | ||
3086 | $as_echo "$ac_cv_exeext" >&6; } | ||
3087 | |||
3088 | rm -f conftest.$ac_ext | ||
3089 | EXEEXT=$ac_cv_exeext | ||
3090 | ac_exeext=$EXEEXT | ||
3091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3092 | /* end confdefs.h. */ | ||
3093 | #include <stdio.h> | ||
3094 | int | ||
3095 | main () | ||
3096 | { | ||
3097 | FILE *f = fopen ("conftest.out", "w"); | ||
3098 | return ferror (f) || fclose (f) != 0; | ||
3099 | |||
3100 | ; | ||
3101 | return 0; | ||
3102 | } | ||
3103 | _ACEOF | ||
3104 | ac_clean_files="$ac_clean_files conftest.out" | ||
3105 | # Check that the compiler produces executables we can run. If not, either | ||
3106 | # the compiler is broken, or we cross compile. | ||
3107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | ||
3108 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||
3109 | if test "$cross_compiling" != yes; then | ||
3110 | { { ac_try="$ac_link" | ||
3111 | case "(($ac_try" in | ||
3112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3113 | *) ac_try_echo=$ac_try;; | ||
3114 | esac | ||
3115 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3116 | $as_echo "$ac_try_echo"; } >&5 | ||
3117 | (eval "$ac_link") 2>&5 | ||
3118 | ac_status=$? | ||
3119 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3120 | test $ac_status = 0; } | ||
3121 | if { ac_try='./conftest$ac_cv_exeext' | ||
3122 | { { case "(($ac_try" in | ||
3123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3124 | *) ac_try_echo=$ac_try;; | ||
3125 | esac | ||
3126 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3127 | $as_echo "$ac_try_echo"; } >&5 | ||
3128 | (eval "$ac_try") 2>&5 | ||
3129 | ac_status=$? | ||
3130 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3131 | test $ac_status = 0; }; }; then | ||
3132 | cross_compiling=no | ||
3133 | else | ||
3134 | if test "$cross_compiling" = maybe; then | ||
3135 | cross_compiling=yes | ||
3136 | else | ||
3137 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3138 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3139 | as_fn_error $? "cannot run C compiled programs. | ||
3140 | If you meant to cross compile, use \`--host'. | ||
3141 | See \`config.log' for more details" "$LINENO" 5; } | ||
3142 | fi | ||
3143 | fi | ||
3144 | fi | ||
3145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | ||
3146 | $as_echo "$cross_compiling" >&6; } | ||
3147 | |||
3148 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||
3149 | ac_clean_files=$ac_clean_files_save | ||
3150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | ||
3151 | $as_echo_n "checking for suffix of object files... " >&6; } | ||
3152 | if ${ac_cv_objext+:} false; then : | ||
3153 | $as_echo_n "(cached) " >&6 | ||
3154 | else | ||
3155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3156 | /* end confdefs.h. */ | ||
3157 | |||
3158 | int | ||
3159 | main () | ||
3160 | { | ||
3161 | |||
3162 | ; | ||
3163 | return 0; | ||
3164 | } | ||
3165 | _ACEOF | ||
3166 | rm -f conftest.o conftest.obj | ||
3167 | if { { ac_try="$ac_compile" | ||
3168 | case "(($ac_try" in | ||
3169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3170 | *) ac_try_echo=$ac_try;; | ||
3171 | esac | ||
3172 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3173 | $as_echo "$ac_try_echo"; } >&5 | ||
3174 | (eval "$ac_compile") 2>&5 | ||
3175 | ac_status=$? | ||
3176 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3177 | test $ac_status = 0; }; then : | ||
3178 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
3179 | test -f "$ac_file" || continue; | ||
3180 | case $ac_file in | ||
3181 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | ||
3182 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
3183 | break;; | ||
3184 | esac | ||
3185 | done | ||
3186 | else | ||
3187 | $as_echo "$as_me: failed program was:" >&5 | ||
3188 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3189 | |||
3190 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3191 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3192 | as_fn_error $? "cannot compute suffix of object files: cannot compile | ||
3193 | See \`config.log' for more details" "$LINENO" 5; } | ||
3194 | fi | ||
3195 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
3196 | fi | ||
3197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | ||
3198 | $as_echo "$ac_cv_objext" >&6; } | ||
3199 | OBJEXT=$ac_cv_objext | ||
3200 | ac_objext=$OBJEXT | ||
3201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
3202 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
3203 | if ${ac_cv_c_compiler_gnu+:} false; then : | ||
3204 | $as_echo_n "(cached) " >&6 | ||
3205 | else | ||
3206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3207 | /* end confdefs.h. */ | ||
3208 | |||
3209 | int | ||
3210 | main () | ||
3211 | { | ||
3212 | #ifndef __GNUC__ | ||
3213 | choke me | ||
3214 | #endif | ||
3215 | |||
3216 | ; | ||
3217 | return 0; | ||
3218 | } | ||
3219 | _ACEOF | ||
3220 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3221 | ac_compiler_gnu=yes | ||
3222 | else | ||
3223 | ac_compiler_gnu=no | ||
3224 | fi | ||
3225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3226 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
3227 | |||
3228 | fi | ||
3229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
3230 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
3231 | if test $ac_compiler_gnu = yes; then | ||
3232 | GCC=yes | ||
3233 | else | ||
3234 | GCC= | ||
3235 | fi | ||
3236 | ac_test_CFLAGS=${CFLAGS+set} | ||
3237 | ac_save_CFLAGS=$CFLAGS | ||
3238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
3239 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
3240 | if ${ac_cv_prog_cc_g+:} false; then : | ||
3241 | $as_echo_n "(cached) " >&6 | ||
3242 | else | ||
3243 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
3244 | ac_c_werror_flag=yes | ||
3245 | ac_cv_prog_cc_g=no | ||
3246 | CFLAGS="-g" | ||
3247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3248 | /* end confdefs.h. */ | ||
3249 | |||
3250 | int | ||
3251 | main () | ||
3252 | { | ||
3253 | |||
3254 | ; | ||
3255 | return 0; | ||
3256 | } | ||
3257 | _ACEOF | ||
3258 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3259 | ac_cv_prog_cc_g=yes | ||
3260 | else | ||
3261 | CFLAGS="" | ||
3262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3263 | /* end confdefs.h. */ | ||
3264 | |||
3265 | int | ||
3266 | main () | ||
3267 | { | ||
3268 | |||
3269 | ; | ||
3270 | return 0; | ||
3271 | } | ||
3272 | _ACEOF | ||
3273 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3274 | |||
3275 | else | ||
3276 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
3277 | CFLAGS="-g" | ||
3278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3279 | /* end confdefs.h. */ | ||
3280 | |||
3281 | int | ||
3282 | main () | ||
3283 | { | ||
3284 | |||
3285 | ; | ||
3286 | return 0; | ||
3287 | } | ||
3288 | _ACEOF | ||
3289 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3290 | ac_cv_prog_cc_g=yes | ||
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 | fi | ||
3296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3297 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
3298 | fi | ||
3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
3300 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
3301 | if test "$ac_test_CFLAGS" = set; then | ||
3302 | CFLAGS=$ac_save_CFLAGS | ||
3303 | elif test $ac_cv_prog_cc_g = yes; then | ||
3304 | if test "$GCC" = yes; then | ||
3305 | CFLAGS="-g -O2" | ||
3306 | else | ||
3307 | CFLAGS="-g" | ||
3308 | fi | ||
3309 | else | ||
3310 | if test "$GCC" = yes; then | ||
3311 | CFLAGS="-O2" | ||
3312 | else | ||
3313 | CFLAGS= | ||
3314 | fi | ||
3315 | fi | ||
3316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
3317 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
3318 | if ${ac_cv_prog_cc_c89+:} false; then : | ||
3319 | $as_echo_n "(cached) " >&6 | ||
3320 | else | ||
3321 | ac_cv_prog_cc_c89=no | ||
3322 | ac_save_CC=$CC | ||
3323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3324 | /* end confdefs.h. */ | ||
3325 | #include <stdarg.h> | ||
3326 | #include <stdio.h> | ||
3327 | struct stat; | ||
3328 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
3329 | struct buf { int x; }; | ||
3330 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
3331 | static char *e (p, i) | ||
3332 | char **p; | ||
3333 | int i; | ||
3334 | { | ||
3335 | return p[i]; | ||
3336 | } | ||
3337 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
3338 | { | ||
3339 | char *s; | ||
3340 | va_list v; | ||
3341 | va_start (v,p); | ||
3342 | s = g (p, va_arg (v,int)); | ||
3343 | va_end (v); | ||
3344 | return s; | ||
3345 | } | ||
3346 | |||
3347 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
3348 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
3349 | These don't provoke an error unfortunately, instead are silently treated | ||
3350 | as 'x'. The following induces an error, until -std is added to get | ||
3351 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
3352 | array size at least. It's necessary to write '\x00'==0 to get something | ||
3353 | that's true only with -std. */ | ||
3354 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
3355 | |||
3356 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
3357 | inside strings and character constants. */ | ||
3358 | #define FOO(x) 'x' | ||
3359 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
3360 | |||
3361 | int test (int i, double x); | ||
3362 | struct s1 {int (*f) (int a);}; | ||
3363 | struct s2 {int (*f) (double a);}; | ||
3364 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
3365 | int argc; | ||
3366 | char **argv; | ||
3367 | int | ||
3368 | main () | ||
3369 | { | ||
3370 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
3371 | ; | ||
3372 | return 0; | ||
3373 | } | ||
3374 | _ACEOF | ||
3375 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
3376 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
3377 | do | ||
3378 | CC="$ac_save_CC $ac_arg" | ||
3379 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3380 | ac_cv_prog_cc_c89=$ac_arg | ||
3381 | fi | ||
3382 | rm -f core conftest.err conftest.$ac_objext | ||
3383 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
3384 | done | ||
3385 | rm -f conftest.$ac_ext | ||
3386 | CC=$ac_save_CC | ||
3387 | |||
3388 | fi | ||
3389 | # AC_CACHE_VAL | ||
3390 | case "x$ac_cv_prog_cc_c89" in | ||
3391 | x) | ||
3392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
3393 | $as_echo "none needed" >&6; } ;; | ||
3394 | xno) | ||
3395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
3396 | $as_echo "unsupported" >&6; } ;; | ||
3397 | *) | ||
3398 | CC="$CC $ac_cv_prog_cc_c89" | ||
3399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
3400 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
3401 | esac | ||
3402 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
3403 | |||
3404 | fi | ||
3405 | |||
3406 | ac_ext=c | ||
3407 | ac_cpp='$CPP $CPPFLAGS' | ||
3408 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3409 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3410 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3411 | |||
3412 | ac_aux_dir= | ||
3413 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
3414 | if test -f "$ac_dir/install-sh"; then | ||
3415 | ac_aux_dir=$ac_dir | ||
3416 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
3417 | break | ||
3418 | elif test -f "$ac_dir/install.sh"; then | ||
3419 | ac_aux_dir=$ac_dir | ||
3420 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
3421 | break | ||
3422 | elif test -f "$ac_dir/shtool"; then | ||
3423 | ac_aux_dir=$ac_dir | ||
3424 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
3425 | break | ||
3426 | fi | ||
3427 | done | ||
3428 | if test -z "$ac_aux_dir"; then | ||
3429 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | ||
3430 | fi | ||
3431 | |||
3432 | # These three variables are undocumented and unsupported, | ||
3433 | # and are intended to be withdrawn in a future Autoconf release. | ||
3434 | # They can cause serious problems if a builder's source tree is in a directory | ||
3435 | # whose full name contains unusual characters. | ||
3436 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
3437 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
3438 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
3439 | |||
3440 | |||
3441 | # Make sure we can run config.sub. | ||
3442 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
3443 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | ||
3444 | |||
3445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | ||
3446 | $as_echo_n "checking build system type... " >&6; } | ||
3447 | if ${ac_cv_build+:} false; then : | ||
3448 | $as_echo_n "(cached) " >&6 | ||
3449 | else | ||
3450 | ac_build_alias=$build_alias | ||
3451 | test "x$ac_build_alias" = x && | ||
3452 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
3453 | test "x$ac_build_alias" = x && | ||
3454 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | ||
3455 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
3456 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | ||
3457 | |||
3458 | fi | ||
3459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | ||
3460 | $as_echo "$ac_cv_build" >&6; } | ||
3461 | case $ac_cv_build in | ||
3462 | *-*-*) ;; | ||
3463 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | ||
3464 | esac | ||
3465 | build=$ac_cv_build | ||
3466 | ac_save_IFS=$IFS; IFS='-' | ||
3467 | set x $ac_cv_build | ||
3468 | shift | ||
3469 | build_cpu=$1 | ||
3470 | build_vendor=$2 | ||
3471 | shift; shift | ||
3472 | # Remember, the first character of IFS is used to create $*, | ||
3473 | # except with old shells: | ||
3474 | build_os=$* | ||
3475 | IFS=$ac_save_IFS | ||
3476 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
3477 | |||
3478 | |||
3479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | ||
3480 | $as_echo_n "checking host system type... " >&6; } | ||
3481 | if ${ac_cv_host+:} false; then : | ||
3482 | $as_echo_n "(cached) " >&6 | ||
3483 | else | ||
3484 | if test "x$host_alias" = x; then | ||
3485 | ac_cv_host=$ac_cv_build | ||
3486 | else | ||
3487 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
3488 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | ||
3489 | fi | ||
3490 | |||
3491 | fi | ||
3492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | ||
3493 | $as_echo "$ac_cv_host" >&6; } | ||
3494 | case $ac_cv_host in | ||
3495 | *-*-*) ;; | ||
3496 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | ||
3497 | esac | ||
3498 | host=$ac_cv_host | ||
3499 | ac_save_IFS=$IFS; IFS='-' | ||
3500 | set x $ac_cv_host | ||
3501 | shift | ||
3502 | host_cpu=$1 | ||
3503 | host_vendor=$2 | ||
3504 | shift; shift | ||
3505 | # Remember, the first character of IFS is used to create $*, | ||
3506 | # except with old shells: | ||
3507 | host_os=$* | ||
3508 | IFS=$ac_save_IFS | ||
3509 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
3510 | |||
3511 | |||
3512 | |||
3513 | ac_ext=c | ||
3514 | ac_cpp='$CPP $CPPFLAGS' | ||
3515 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3516 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3517 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
3519 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
3520 | # On Suns, sometimes $CPP names a directory. | ||
3521 | if test -n "$CPP" && test -d "$CPP"; then | ||
3522 | CPP= | ||
3523 | fi | ||
3524 | if test -z "$CPP"; then | ||
3525 | if ${ac_cv_prog_CPP+:} false; then : | ||
3526 | $as_echo_n "(cached) " >&6 | ||
3527 | else | ||
3528 | # Double quotes because CPP needs to be expanded | ||
3529 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
3530 | do | ||
3531 | ac_preproc_ok=false | ||
3532 | for ac_c_preproc_warn_flag in '' yes | ||
3533 | do | ||
3534 | # Use a header file that comes with gcc, so configuring glibc | ||
3535 | # with a fresh cross-compiler works. | ||
3536 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3537 | # <limits.h> exists even on freestanding compilers. | ||
3538 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3539 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3541 | /* end confdefs.h. */ | ||
3542 | #ifdef __STDC__ | ||
3543 | # include <limits.h> | ||
3544 | #else | ||
3545 | # include <assert.h> | ||
3546 | #endif | ||
3547 | Syntax error | ||
3548 | _ACEOF | ||
3549 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3550 | |||
3551 | else | ||
3552 | # Broken: fails on valid input. | ||
3553 | continue | ||
3554 | fi | ||
3555 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3556 | |||
3557 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3558 | # can be detected and how. | ||
3559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3560 | /* end confdefs.h. */ | ||
3561 | #include <ac_nonexistent.h> | ||
3562 | _ACEOF | ||
3563 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3564 | # Broken: success on invalid input. | ||
3565 | continue | ||
3566 | else | ||
3567 | # Passes both tests. | ||
3568 | ac_preproc_ok=: | ||
3569 | break | ||
3570 | fi | ||
3571 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3572 | |||
3573 | done | ||
3574 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3575 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
3576 | if $ac_preproc_ok; then : | ||
3577 | break | ||
3578 | fi | ||
3579 | |||
3580 | done | ||
3581 | ac_cv_prog_CPP=$CPP | ||
3582 | |||
3583 | fi | ||
3584 | CPP=$ac_cv_prog_CPP | ||
3585 | else | ||
3586 | ac_cv_prog_CPP=$CPP | ||
3587 | fi | ||
3588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
3589 | $as_echo "$CPP" >&6; } | ||
3590 | ac_preproc_ok=false | ||
3591 | for ac_c_preproc_warn_flag in '' yes | ||
3592 | do | ||
3593 | # Use a header file that comes with gcc, so configuring glibc | ||
3594 | # with a fresh cross-compiler works. | ||
3595 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3596 | # <limits.h> exists even on freestanding compilers. | ||
3597 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3598 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3600 | /* end confdefs.h. */ | ||
3601 | #ifdef __STDC__ | ||
3602 | # include <limits.h> | ||
3603 | #else | ||
3604 | # include <assert.h> | ||
3605 | #endif | ||
3606 | Syntax error | ||
3607 | _ACEOF | ||
3608 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3609 | |||
3610 | else | ||
3611 | # Broken: fails on valid input. | ||
3612 | continue | ||
3613 | fi | ||
3614 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3615 | |||
3616 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3617 | # can be detected and how. | ||
3618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3619 | /* end confdefs.h. */ | ||
3620 | #include <ac_nonexistent.h> | ||
3621 | _ACEOF | ||
3622 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3623 | # Broken: success on invalid input. | ||
3624 | continue | ||
3625 | else | ||
3626 | # Passes both tests. | ||
3627 | ac_preproc_ok=: | ||
3628 | break | ||
3629 | fi | ||
3630 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3631 | |||
3632 | done | ||
3633 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3634 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
3635 | if $ac_preproc_ok; then : | ||
3636 | |||
3637 | else | ||
3638 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3639 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3640 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||
3641 | See \`config.log' for more details" "$LINENO" 5; } | ||
3642 | fi | ||
3643 | |||
3644 | ac_ext=c | ||
3645 | ac_cpp='$CPP $CPPFLAGS' | ||
3646 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3647 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3648 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3649 | |||
3650 | |||
3651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | ||
3652 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||
3653 | if ${ac_cv_path_GREP+:} false; then : | ||
3654 | $as_echo_n "(cached) " >&6 | ||
3655 | else | ||
3656 | if test -z "$GREP"; then | ||
3657 | ac_path_GREP_found=false | ||
3658 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3660 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3661 | do | ||
3662 | IFS=$as_save_IFS | ||
3663 | test -z "$as_dir" && as_dir=. | ||
3664 | for ac_prog in grep ggrep; do | ||
3665 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3666 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3667 | as_fn_executable_p "$ac_path_GREP" || continue | ||
3668 | # Check for GNU ac_path_GREP and select it if it is found. | ||
3669 | # Check for GNU $ac_path_GREP | ||
3670 | case `"$ac_path_GREP" --version 2>&1` in | ||
3671 | *GNU*) | ||
3672 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
3673 | *) | ||
3674 | ac_count=0 | ||
3675 | $as_echo_n 0123456789 >"conftest.in" | ||
3676 | while : | ||
3677 | do | ||
3678 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3679 | mv "conftest.tmp" "conftest.in" | ||
3680 | cp "conftest.in" "conftest.nl" | ||
3681 | $as_echo 'GREP' >> "conftest.nl" | ||
3682 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3683 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3684 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
3685 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
3686 | # Best one so far, save it but keep looking for a better one | ||
3687 | ac_cv_path_GREP="$ac_path_GREP" | ||
3688 | ac_path_GREP_max=$ac_count | ||
3689 | fi | ||
3690 | # 10*(2^10) chars as input seems more than enough | ||
3691 | test $ac_count -gt 10 && break | ||
3692 | done | ||
3693 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3694 | esac | ||
3695 | |||
3696 | $ac_path_GREP_found && break 3 | ||
3697 | done | ||
3698 | done | ||
3699 | done | ||
3700 | IFS=$as_save_IFS | ||
3701 | if test -z "$ac_cv_path_GREP"; then | ||
3702 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
3703 | fi | ||
3704 | else | ||
3705 | ac_cv_path_GREP=$GREP | ||
3706 | fi | ||
3707 | |||
3708 | fi | ||
3709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | ||
3710 | $as_echo "$ac_cv_path_GREP" >&6; } | ||
3711 | GREP="$ac_cv_path_GREP" | ||
3712 | |||
3713 | |||
3714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
3715 | $as_echo_n "checking for egrep... " >&6; } | ||
3716 | if ${ac_cv_path_EGREP+:} false; then : | ||
3717 | $as_echo_n "(cached) " >&6 | ||
3718 | else | ||
3719 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
3720 | then ac_cv_path_EGREP="$GREP -E" | ||
3721 | else | ||
3722 | if test -z "$EGREP"; then | ||
3723 | ac_path_EGREP_found=false | ||
3724 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3726 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3727 | do | ||
3728 | IFS=$as_save_IFS | ||
3729 | test -z "$as_dir" && as_dir=. | ||
3730 | for ac_prog in egrep; do | ||
3731 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3732 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3733 | as_fn_executable_p "$ac_path_EGREP" || continue | ||
3734 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
3735 | # Check for GNU $ac_path_EGREP | ||
3736 | case `"$ac_path_EGREP" --version 2>&1` in | ||
3737 | *GNU*) | ||
3738 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
3739 | *) | ||
3740 | ac_count=0 | ||
3741 | $as_echo_n 0123456789 >"conftest.in" | ||
3742 | while : | ||
3743 | do | ||
3744 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3745 | mv "conftest.tmp" "conftest.in" | ||
3746 | cp "conftest.in" "conftest.nl" | ||
3747 | $as_echo 'EGREP' >> "conftest.nl" | ||
3748 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3749 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3750 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
3751 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
3752 | # Best one so far, save it but keep looking for a better one | ||
3753 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
3754 | ac_path_EGREP_max=$ac_count | ||
3755 | fi | ||
3756 | # 10*(2^10) chars as input seems more than enough | ||
3757 | test $ac_count -gt 10 && break | ||
3758 | done | ||
3759 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3760 | esac | ||
3761 | |||
3762 | $ac_path_EGREP_found && break 3 | ||
3763 | done | ||
3764 | done | ||
3765 | done | ||
3766 | IFS=$as_save_IFS | ||
3767 | if test -z "$ac_cv_path_EGREP"; then | ||
3768 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
3769 | fi | ||
3770 | else | ||
3771 | ac_cv_path_EGREP=$EGREP | ||
3772 | fi | ||
3773 | |||
3774 | fi | ||
3775 | fi | ||
3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
3777 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
3778 | EGREP="$ac_cv_path_EGREP" | ||
3779 | |||
3780 | |||
3781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
3782 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
3783 | if ${ac_cv_header_stdc+:} false; then : | ||
3784 | $as_echo_n "(cached) " >&6 | ||
3785 | else | ||
3786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3787 | /* end confdefs.h. */ | ||
3788 | #include <stdlib.h> | ||
3789 | #include <stdarg.h> | ||
3790 | #include <string.h> | ||
3791 | #include <float.h> | ||
3792 | |||
3793 | int | ||
3794 | main () | ||
3795 | { | ||
3796 | |||
3797 | ; | ||
3798 | return 0; | ||
3799 | } | ||
3800 | _ACEOF | ||
3801 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3802 | ac_cv_header_stdc=yes | ||
3803 | else | ||
3804 | ac_cv_header_stdc=no | ||
3805 | fi | ||
3806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3807 | |||
3808 | if test $ac_cv_header_stdc = yes; then | ||
3809 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
3810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3811 | /* end confdefs.h. */ | ||
3812 | #include <string.h> | ||
3813 | |||
3814 | _ACEOF | ||
3815 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3816 | $EGREP "memchr" >/dev/null 2>&1; then : | ||
3817 | |||
3818 | else | ||
3819 | ac_cv_header_stdc=no | ||
3820 | fi | ||
3821 | rm -f conftest* | ||
3822 | |||
3823 | fi | ||
3824 | |||
3825 | if test $ac_cv_header_stdc = yes; then | ||
3826 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
3827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3828 | /* end confdefs.h. */ | ||
3829 | #include <stdlib.h> | ||
3830 | |||
3831 | _ACEOF | ||
3832 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3833 | $EGREP "free" >/dev/null 2>&1; then : | ||
3834 | |||
3835 | else | ||
3836 | ac_cv_header_stdc=no | ||
3837 | fi | ||
3838 | rm -f conftest* | ||
3839 | |||
3840 | fi | ||
3841 | |||
3842 | if test $ac_cv_header_stdc = yes; then | ||
3843 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
3844 | if test "$cross_compiling" = yes; then : | ||
3845 | : | ||
3846 | else | ||
3847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3848 | /* end confdefs.h. */ | ||
3849 | #include <ctype.h> | ||
3850 | #include <stdlib.h> | ||
3851 | #if ((' ' & 0x0FF) == 0x020) | ||
3852 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
3853 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
3854 | #else | ||
3855 | # define ISLOWER(c) \ | ||
3856 | (('a' <= (c) && (c) <= 'i') \ | ||
3857 | || ('j' <= (c) && (c) <= 'r') \ | ||
3858 | || ('s' <= (c) && (c) <= 'z')) | ||
3859 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
3860 | #endif | ||
3861 | |||
3862 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
3863 | int | ||
3864 | main () | ||
3865 | { | ||
3866 | int i; | ||
3867 | for (i = 0; i < 256; i++) | ||
3868 | if (XOR (islower (i), ISLOWER (i)) | ||
3869 | || toupper (i) != TOUPPER (i)) | ||
3870 | return 2; | ||
3871 | return 0; | ||
3872 | } | ||
3873 | _ACEOF | ||
3874 | if ac_fn_c_try_run "$LINENO"; then : | ||
3875 | |||
3876 | else | ||
3877 | ac_cv_header_stdc=no | ||
3878 | fi | ||
3879 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
3880 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
3881 | fi | ||
3882 | |||
3883 | fi | ||
3884 | fi | ||
3885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
3886 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
3887 | if test $ac_cv_header_stdc = yes; then | ||
3888 | |||
3889 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
3890 | |||
3891 | fi | ||
3892 | |||
3893 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
3894 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
3895 | inttypes.h stdint.h unistd.h | ||
3896 | do : | ||
3897 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
3898 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||
3899 | " | ||
3900 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
3901 | cat >>confdefs.h <<_ACEOF | ||
3902 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
3903 | _ACEOF | ||
3904 | |||
3905 | fi | ||
3906 | |||
3907 | done | ||
3908 | |||
3909 | |||
3910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | ||
3911 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | ||
3912 | if ${ac_cv_c_bigendian+:} false; then : | ||
3913 | $as_echo_n "(cached) " >&6 | ||
3914 | else | ||
3915 | ac_cv_c_bigendian=unknown | ||
3916 | # See if we're dealing with a universal compiler. | ||
3917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3918 | /* end confdefs.h. */ | ||
3919 | #ifndef __APPLE_CC__ | ||
3920 | not a universal capable compiler | ||
3921 | #endif | ||
3922 | typedef int dummy; | ||
3923 | |||
3924 | _ACEOF | ||
3925 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3926 | |||
3927 | # Check for potential -arch flags. It is not universal unless | ||
3928 | # there are at least two -arch flags with different values. | ||
3929 | ac_arch= | ||
3930 | ac_prev= | ||
3931 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | ||
3932 | if test -n "$ac_prev"; then | ||
3933 | case $ac_word in | ||
3934 | i?86 | x86_64 | ppc | ppc64) | ||
3935 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | ||
3936 | ac_arch=$ac_word | ||
3937 | else | ||
3938 | ac_cv_c_bigendian=universal | ||
3939 | break | ||
3940 | fi | ||
3941 | ;; | ||
3942 | esac | ||
3943 | ac_prev= | ||
3944 | elif test "x$ac_word" = "x-arch"; then | ||
3945 | ac_prev=arch | ||
3946 | fi | ||
3947 | done | ||
3948 | fi | ||
3949 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3950 | if test $ac_cv_c_bigendian = unknown; then | ||
3951 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
3952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3953 | /* end confdefs.h. */ | ||
3954 | #include <sys/types.h> | ||
3955 | #include <sys/param.h> | ||
3956 | |||
3957 | int | ||
3958 | main () | ||
3959 | { | ||
3960 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | ||
3961 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | ||
3962 | && LITTLE_ENDIAN) | ||
3963 | bogus endian macros | ||
3964 | #endif | ||
3965 | |||
3966 | ; | ||
3967 | return 0; | ||
3968 | } | ||
3969 | _ACEOF | ||
3970 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3971 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
3972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3973 | /* end confdefs.h. */ | ||
3974 | #include <sys/types.h> | ||
3975 | #include <sys/param.h> | ||
3976 | |||
3977 | int | ||
3978 | main () | ||
3979 | { | ||
3980 | #if BYTE_ORDER != BIG_ENDIAN | ||
3981 | not big endian | ||
3982 | #endif | ||
3983 | |||
3984 | ; | ||
3985 | return 0; | ||
3986 | } | ||
3987 | _ACEOF | ||
3988 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3989 | ac_cv_c_bigendian=yes | ||
3990 | else | ||
3991 | ac_cv_c_bigendian=no | ||
3992 | fi | ||
3993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3994 | fi | ||
3995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3996 | fi | ||
3997 | if test $ac_cv_c_bigendian = unknown; then | ||
3998 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | ||
3999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4000 | /* end confdefs.h. */ | ||
4001 | #include <limits.h> | ||
4002 | |||
4003 | int | ||
4004 | main () | ||
4005 | { | ||
4006 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | ||
4007 | bogus endian macros | ||
4008 | #endif | ||
4009 | |||
4010 | ; | ||
4011 | return 0; | ||
4012 | } | ||
4013 | _ACEOF | ||
4014 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4015 | # It does; now see whether it defined to _BIG_ENDIAN or not. | ||
4016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4017 | /* end confdefs.h. */ | ||
4018 | #include <limits.h> | ||
4019 | |||
4020 | int | ||
4021 | main () | ||
4022 | { | ||
4023 | #ifndef _BIG_ENDIAN | ||
4024 | not big endian | ||
4025 | #endif | ||
4026 | |||
4027 | ; | ||
4028 | return 0; | ||
4029 | } | ||
4030 | _ACEOF | ||
4031 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4032 | ac_cv_c_bigendian=yes | ||
4033 | else | ||
4034 | ac_cv_c_bigendian=no | ||
4035 | fi | ||
4036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4037 | fi | ||
4038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4039 | fi | ||
4040 | if test $ac_cv_c_bigendian = unknown; then | ||
4041 | # Compile a test program. | ||
4042 | if test "$cross_compiling" = yes; then : | ||
4043 | # Try to guess by grepping values from an object file. | ||
4044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4045 | /* end confdefs.h. */ | ||
4046 | short int ascii_mm[] = | ||
4047 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
4048 | short int ascii_ii[] = | ||
4049 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
4050 | int use_ascii (int i) { | ||
4051 | return ascii_mm[i] + ascii_ii[i]; | ||
4052 | } | ||
4053 | short int ebcdic_ii[] = | ||
4054 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
4055 | short int ebcdic_mm[] = | ||
4056 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
4057 | int use_ebcdic (int i) { | ||
4058 | return ebcdic_mm[i] + ebcdic_ii[i]; | ||
4059 | } | ||
4060 | extern int foo; | ||
4061 | |||
4062 | int | ||
4063 | main () | ||
4064 | { | ||
4065 | return use_ascii (foo) == use_ebcdic (foo); | ||
4066 | ; | ||
4067 | return 0; | ||
4068 | } | ||
4069 | _ACEOF | ||
4070 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4071 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | ||
4072 | ac_cv_c_bigendian=yes | ||
4073 | fi | ||
4074 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
4075 | if test "$ac_cv_c_bigendian" = unknown; then | ||
4076 | ac_cv_c_bigendian=no | ||
4077 | else | ||
4078 | # finding both strings is unlikely to happen, but who knows? | ||
4079 | ac_cv_c_bigendian=unknown | ||
4080 | fi | ||
4081 | fi | ||
4082 | fi | ||
4083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4084 | else | ||
4085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4086 | /* end confdefs.h. */ | ||
4087 | $ac_includes_default | ||
4088 | int | ||
4089 | main () | ||
4090 | { | ||
4091 | |||
4092 | /* Are we little or big endian? From Harbison&Steele. */ | ||
4093 | union | ||
4094 | { | ||
4095 | long int l; | ||
4096 | char c[sizeof (long int)]; | ||
4097 | } u; | ||
4098 | u.l = 1; | ||
4099 | return u.c[sizeof (long int) - 1] == 1; | ||
4100 | |||
4101 | ; | ||
4102 | return 0; | ||
4103 | } | ||
4104 | _ACEOF | ||
4105 | if ac_fn_c_try_run "$LINENO"; then : | ||
4106 | ac_cv_c_bigendian=no | ||
4107 | else | ||
4108 | ac_cv_c_bigendian=yes | ||
4109 | fi | ||
4110 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
4111 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
4112 | fi | ||
4113 | |||
4114 | fi | ||
4115 | fi | ||
4116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | ||
4117 | $as_echo "$ac_cv_c_bigendian" >&6; } | ||
4118 | case $ac_cv_c_bigendian in #( | ||
4119 | yes) | ||
4120 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | ||
4121 | ;; #( | ||
4122 | no) | ||
4123 | ;; #( | ||
4124 | universal) | ||
4125 | |||
4126 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | ||
4127 | |||
4128 | ;; #( | ||
4129 | *) | ||
4130 | as_fn_error $? "unknown endianness | ||
4131 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | ||
4132 | esac | ||
4133 | |||
4134 | |||
4135 | # Checks for programs. | ||
4136 | for ac_prog in gawk mawk nawk awk | ||
4137 | do | ||
4138 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4139 | set dummy $ac_prog; ac_word=$2 | ||
4140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4141 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4142 | if ${ac_cv_prog_AWK+:} false; then : | ||
4143 | $as_echo_n "(cached) " >&6 | ||
4144 | else | ||
4145 | if test -n "$AWK"; then | ||
4146 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
4147 | else | ||
4148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4149 | for as_dir in $PATH | ||
4150 | do | ||
4151 | IFS=$as_save_IFS | ||
4152 | test -z "$as_dir" && as_dir=. | ||
4153 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4154 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4155 | ac_cv_prog_AWK="$ac_prog" | ||
4156 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4157 | break 2 | ||
4158 | fi | ||
4159 | done | ||
4160 | done | ||
4161 | IFS=$as_save_IFS | ||
4162 | |||
4163 | fi | ||
4164 | fi | ||
4165 | AWK=$ac_cv_prog_AWK | ||
4166 | if test -n "$AWK"; then | ||
4167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | ||
4168 | $as_echo "$AWK" >&6; } | ||
4169 | else | ||
4170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4171 | $as_echo "no" >&6; } | ||
4172 | fi | ||
4173 | |||
4174 | |||
4175 | test -n "$AWK" && break | ||
4176 | done | ||
4177 | |||
4178 | ac_ext=c | ||
4179 | ac_cpp='$CPP $CPPFLAGS' | ||
4180 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4181 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4182 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
4184 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
4185 | # On Suns, sometimes $CPP names a directory. | ||
4186 | if test -n "$CPP" && test -d "$CPP"; then | ||
4187 | CPP= | ||
4188 | fi | ||
4189 | if test -z "$CPP"; then | ||
4190 | if ${ac_cv_prog_CPP+:} false; then : | ||
4191 | $as_echo_n "(cached) " >&6 | ||
4192 | else | ||
4193 | # Double quotes because CPP needs to be expanded | ||
4194 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
4195 | do | ||
4196 | ac_preproc_ok=false | ||
4197 | for ac_c_preproc_warn_flag in '' yes | ||
4198 | do | ||
4199 | # Use a header file that comes with gcc, so configuring glibc | ||
4200 | # with a fresh cross-compiler works. | ||
4201 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4202 | # <limits.h> exists even on freestanding compilers. | ||
4203 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
4204 | # not just through cpp. "Syntax error" is here to catch this case. | ||
4205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4206 | /* end confdefs.h. */ | ||
4207 | #ifdef __STDC__ | ||
4208 | # include <limits.h> | ||
4209 | #else | ||
4210 | # include <assert.h> | ||
4211 | #endif | ||
4212 | Syntax error | ||
4213 | _ACEOF | ||
4214 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4215 | |||
4216 | else | ||
4217 | # Broken: fails on valid input. | ||
4218 | continue | ||
4219 | fi | ||
4220 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4221 | |||
4222 | # OK, works on sane cases. Now check whether nonexistent headers | ||
4223 | # can be detected and how. | ||
4224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4225 | /* end confdefs.h. */ | ||
4226 | #include <ac_nonexistent.h> | ||
4227 | _ACEOF | ||
4228 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4229 | # Broken: success on invalid input. | ||
4230 | continue | ||
4231 | else | ||
4232 | # Passes both tests. | ||
4233 | ac_preproc_ok=: | ||
4234 | break | ||
4235 | fi | ||
4236 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4237 | |||
4238 | done | ||
4239 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
4240 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
4241 | if $ac_preproc_ok; then : | ||
4242 | break | ||
4243 | fi | ||
4244 | |||
4245 | done | ||
4246 | ac_cv_prog_CPP=$CPP | ||
4247 | |||
4248 | fi | ||
4249 | CPP=$ac_cv_prog_CPP | ||
4250 | else | ||
4251 | ac_cv_prog_CPP=$CPP | ||
4252 | fi | ||
4253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
4254 | $as_echo "$CPP" >&6; } | ||
4255 | ac_preproc_ok=false | ||
4256 | for ac_c_preproc_warn_flag in '' yes | ||
4257 | do | ||
4258 | # Use a header file that comes with gcc, so configuring glibc | ||
4259 | # with a fresh cross-compiler works. | ||
4260 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4261 | # <limits.h> exists even on freestanding compilers. | ||
4262 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
4263 | # not just through cpp. "Syntax error" is here to catch this case. | ||
4264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4265 | /* end confdefs.h. */ | ||
4266 | #ifdef __STDC__ | ||
4267 | # include <limits.h> | ||
4268 | #else | ||
4269 | # include <assert.h> | ||
4270 | #endif | ||
4271 | Syntax error | ||
4272 | _ACEOF | ||
4273 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4274 | |||
4275 | else | ||
4276 | # Broken: fails on valid input. | ||
4277 | continue | ||
4278 | fi | ||
4279 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4280 | |||
4281 | # OK, works on sane cases. Now check whether nonexistent headers | ||
4282 | # can be detected and how. | ||
4283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4284 | /* end confdefs.h. */ | ||
4285 | #include <ac_nonexistent.h> | ||
4286 | _ACEOF | ||
4287 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4288 | # Broken: success on invalid input. | ||
4289 | continue | ||
4290 | else | ||
4291 | # Passes both tests. | ||
4292 | ac_preproc_ok=: | ||
4293 | break | ||
4294 | fi | ||
4295 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4296 | |||
4297 | done | ||
4298 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
4299 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
4300 | if $ac_preproc_ok; then : | ||
4301 | |||
4302 | else | ||
4303 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4304 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4305 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||
4306 | See \`config.log' for more details" "$LINENO" 5; } | ||
4307 | fi | ||
4308 | |||
4309 | ac_ext=c | ||
4310 | ac_cpp='$CPP $CPPFLAGS' | ||
4311 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4312 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4313 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4314 | |||
4315 | if test -n "$ac_tool_prefix"; then | ||
4316 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
4317 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
4318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4319 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4320 | if ${ac_cv_prog_RANLIB+:} false; then : | ||
4321 | $as_echo_n "(cached) " >&6 | ||
4322 | else | ||
4323 | if test -n "$RANLIB"; then | ||
4324 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
4325 | else | ||
4326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4327 | for as_dir in $PATH | ||
4328 | do | ||
4329 | IFS=$as_save_IFS | ||
4330 | test -z "$as_dir" && as_dir=. | ||
4331 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4332 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4333 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
4334 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4335 | break 2 | ||
4336 | fi | ||
4337 | done | ||
4338 | done | ||
4339 | IFS=$as_save_IFS | ||
4340 | |||
4341 | fi | ||
4342 | fi | ||
4343 | RANLIB=$ac_cv_prog_RANLIB | ||
4344 | if test -n "$RANLIB"; then | ||
4345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | ||
4346 | $as_echo "$RANLIB" >&6; } | ||
4347 | else | ||
4348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4349 | $as_echo "no" >&6; } | ||
4350 | fi | ||
4351 | |||
4352 | |||
4353 | fi | ||
4354 | if test -z "$ac_cv_prog_RANLIB"; then | ||
4355 | ac_ct_RANLIB=$RANLIB | ||
4356 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
4357 | set dummy ranlib; ac_word=$2 | ||
4358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4359 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4360 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | ||
4361 | $as_echo_n "(cached) " >&6 | ||
4362 | else | ||
4363 | if test -n "$ac_ct_RANLIB"; then | ||
4364 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
4365 | else | ||
4366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4367 | for as_dir in $PATH | ||
4368 | do | ||
4369 | IFS=$as_save_IFS | ||
4370 | test -z "$as_dir" && as_dir=. | ||
4371 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4372 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4373 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
4374 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4375 | break 2 | ||
4376 | fi | ||
4377 | done | ||
4378 | done | ||
4379 | IFS=$as_save_IFS | ||
4380 | |||
4381 | fi | ||
4382 | fi | ||
4383 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
4384 | if test -n "$ac_ct_RANLIB"; then | ||
4385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | ||
4386 | $as_echo "$ac_ct_RANLIB" >&6; } | ||
4387 | else | ||
4388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4389 | $as_echo "no" >&6; } | ||
4390 | fi | ||
4391 | |||
4392 | if test "x$ac_ct_RANLIB" = x; then | ||
4393 | RANLIB=":" | ||
4394 | else | ||
4395 | case $cross_compiling:$ac_tool_warned in | ||
4396 | yes:) | ||
4397 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
4398 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
4399 | ac_tool_warned=yes ;; | ||
4400 | esac | ||
4401 | RANLIB=$ac_ct_RANLIB | ||
4402 | fi | ||
4403 | else | ||
4404 | RANLIB="$ac_cv_prog_RANLIB" | ||
4405 | fi | ||
4406 | |||
4407 | # Find a good install program. We prefer a C program (faster), | ||
4408 | # so one script is as good as another. But avoid the broken or | ||
4409 | # incompatible versions: | ||
4410 | # SysV /etc/install, /usr/sbin/install | ||
4411 | # SunOS /usr/etc/install | ||
4412 | # IRIX /sbin/install | ||
4413 | # AIX /bin/install | ||
4414 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
4415 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
4416 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
4417 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
4418 | # OS/2's system install, which has a completely different semantic | ||
4419 | # ./install, which can be erroneously created by make from ./install.sh. | ||
4420 | # Reject install programs that cannot install multiple files. | ||
4421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | ||
4422 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||
4423 | if test -z "$INSTALL"; then | ||
4424 | if ${ac_cv_path_install+:} false; then : | ||
4425 | $as_echo_n "(cached) " >&6 | ||
4426 | else | ||
4427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4428 | for as_dir in $PATH | ||
4429 | do | ||
4430 | IFS=$as_save_IFS | ||
4431 | test -z "$as_dir" && as_dir=. | ||
4432 | # Account for people who put trailing slashes in PATH elements. | ||
4433 | case $as_dir/ in #(( | ||
4434 | ./ | .// | /[cC]/* | \ | ||
4435 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
4436 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | ||
4437 | /usr/ucb/* ) ;; | ||
4438 | *) | ||
4439 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
4440 | # Don't use installbsd from OSF since it installs stuff as root | ||
4441 | # by default. | ||
4442 | for ac_prog in ginstall scoinst install; do | ||
4443 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4444 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | ||
4445 | if test $ac_prog = install && | ||
4446 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4447 | # AIX install. It has an incompatible calling convention. | ||
4448 | : | ||
4449 | elif test $ac_prog = install && | ||
4450 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4451 | # program-specific install script used by HP pwplus--don't use. | ||
4452 | : | ||
4453 | else | ||
4454 | rm -rf conftest.one conftest.two conftest.dir | ||
4455 | echo one > conftest.one | ||
4456 | echo two > conftest.two | ||
4457 | mkdir conftest.dir | ||
4458 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | ||
4459 | test -s conftest.one && test -s conftest.two && | ||
4460 | test -s conftest.dir/conftest.one && | ||
4461 | test -s conftest.dir/conftest.two | ||
4462 | then | ||
4463 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
4464 | break 3 | ||
4465 | fi | ||
4466 | fi | ||
4467 | fi | ||
4468 | done | ||
4469 | done | ||
4470 | ;; | ||
4471 | esac | ||
4472 | |||
4473 | done | ||
4474 | IFS=$as_save_IFS | ||
4475 | |||
4476 | rm -rf conftest.one conftest.two conftest.dir | ||
4477 | |||
4478 | fi | ||
4479 | if test "${ac_cv_path_install+set}" = set; then | ||
4480 | INSTALL=$ac_cv_path_install | ||
4481 | else | ||
4482 | # As a last resort, use the slow shell script. Don't cache a | ||
4483 | # value for INSTALL within a source directory, because that will | ||
4484 | # break other packages using the cache if that directory is | ||
4485 | # removed, or if the value is a relative name. | ||
4486 | INSTALL=$ac_install_sh | ||
4487 | fi | ||
4488 | fi | ||
4489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | ||
4490 | $as_echo "$INSTALL" >&6; } | ||
4491 | |||
4492 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
4493 | # It thinks the first close brace ends the variable substitution. | ||
4494 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
4495 | |||
4496 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
4497 | |||
4498 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
4499 | |||
4500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
4501 | $as_echo_n "checking for egrep... " >&6; } | ||
4502 | if ${ac_cv_path_EGREP+:} false; then : | ||
4503 | $as_echo_n "(cached) " >&6 | ||
4504 | else | ||
4505 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4506 | then ac_cv_path_EGREP="$GREP -E" | ||
4507 | else | ||
4508 | if test -z "$EGREP"; then | ||
4509 | ac_path_EGREP_found=false | ||
4510 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4512 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4513 | do | ||
4514 | IFS=$as_save_IFS | ||
4515 | test -z "$as_dir" && as_dir=. | ||
4516 | for ac_prog in egrep; do | ||
4517 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4518 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4519 | as_fn_executable_p "$ac_path_EGREP" || continue | ||
4520 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4521 | # Check for GNU $ac_path_EGREP | ||
4522 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4523 | *GNU*) | ||
4524 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4525 | *) | ||
4526 | ac_count=0 | ||
4527 | $as_echo_n 0123456789 >"conftest.in" | ||
4528 | while : | ||
4529 | do | ||
4530 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4531 | mv "conftest.tmp" "conftest.in" | ||
4532 | cp "conftest.in" "conftest.nl" | ||
4533 | $as_echo 'EGREP' >> "conftest.nl" | ||
4534 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4535 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4536 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4537 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4538 | # Best one so far, save it but keep looking for a better one | ||
4539 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4540 | ac_path_EGREP_max=$ac_count | ||
4541 | fi | ||
4542 | # 10*(2^10) chars as input seems more than enough | ||
4543 | test $ac_count -gt 10 && break | ||
4544 | done | ||
4545 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4546 | esac | ||
4547 | |||
4548 | $ac_path_EGREP_found && break 3 | ||
4549 | done | ||
4550 | done | ||
4551 | done | ||
4552 | IFS=$as_save_IFS | ||
4553 | if test -z "$ac_cv_path_EGREP"; then | ||
4554 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
4555 | fi | ||
4556 | else | ||
4557 | ac_cv_path_EGREP=$EGREP | ||
4558 | fi | ||
4559 | |||
4560 | fi | ||
4561 | fi | ||
4562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
4563 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
4564 | EGREP="$ac_cv_path_EGREP" | ||
4565 | |||
4566 | |||
4567 | if test -n "$ac_tool_prefix"; then | ||
4568 | for ac_prog in ar | ||
4569 | do | ||
4570 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
4571 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
4572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4573 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4574 | if ${ac_cv_prog_AR+:} false; then : | ||
4575 | $as_echo_n "(cached) " >&6 | ||
4576 | else | ||
4577 | if test -n "$AR"; then | ||
4578 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||
4579 | else | ||
4580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4581 | for as_dir in $PATH | ||
4582 | do | ||
4583 | IFS=$as_save_IFS | ||
4584 | test -z "$as_dir" && as_dir=. | ||
4585 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4586 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4587 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | ||
4588 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4589 | break 2 | ||
4590 | fi | ||
4591 | done | ||
4592 | done | ||
4593 | IFS=$as_save_IFS | ||
4594 | |||
4595 | fi | ||
4596 | fi | ||
4597 | AR=$ac_cv_prog_AR | ||
4598 | if test -n "$AR"; then | ||
4599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
4600 | $as_echo "$AR" >&6; } | ||
4601 | else | ||
4602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4603 | $as_echo "no" >&6; } | ||
4604 | fi | ||
4605 | |||
4606 | |||
4607 | test -n "$AR" && break | ||
4608 | done | ||
4609 | fi | ||
4610 | if test -z "$AR"; then | ||
4611 | ac_ct_AR=$AR | ||
4612 | for ac_prog in ar | ||
4613 | do | ||
4614 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4615 | set dummy $ac_prog; ac_word=$2 | ||
4616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4617 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4618 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | ||
4619 | $as_echo_n "(cached) " >&6 | ||
4620 | else | ||
4621 | if test -n "$ac_ct_AR"; then | ||
4622 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
4623 | else | ||
4624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4625 | for as_dir in $PATH | ||
4626 | do | ||
4627 | IFS=$as_save_IFS | ||
4628 | test -z "$as_dir" && as_dir=. | ||
4629 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4630 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4631 | ac_cv_prog_ac_ct_AR="$ac_prog" | ||
4632 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4633 | break 2 | ||
4634 | fi | ||
4635 | done | ||
4636 | done | ||
4637 | IFS=$as_save_IFS | ||
4638 | |||
4639 | fi | ||
4640 | fi | ||
4641 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
4642 | if test -n "$ac_ct_AR"; then | ||
4643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
4644 | $as_echo "$ac_ct_AR" >&6; } | ||
4645 | else | ||
4646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4647 | $as_echo "no" >&6; } | ||
4648 | fi | ||
4649 | |||
4650 | |||
4651 | test -n "$ac_ct_AR" && break | ||
4652 | done | ||
4653 | |||
4654 | if test "x$ac_ct_AR" = x; then | ||
4655 | AR="" | ||
4656 | else | ||
4657 | case $cross_compiling:$ac_tool_warned in | ||
4658 | yes:) | ||
4659 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
4660 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
4661 | ac_tool_warned=yes ;; | ||
4662 | esac | ||
4663 | AR=$ac_ct_AR | ||
4664 | fi | ||
4665 | fi | ||
4666 | |||
4667 | # Extract the first word of "cat", so it can be a program name with args. | ||
4668 | set dummy cat; ac_word=$2 | ||
4669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4670 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4671 | if ${ac_cv_path_CAT+:} false; then : | ||
4672 | $as_echo_n "(cached) " >&6 | ||
4673 | else | ||
4674 | case $CAT in | ||
4675 | [\\/]* | ?:[\\/]*) | ||
4676 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. | ||
4677 | ;; | ||
4678 | *) | ||
4679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4680 | for as_dir in $PATH | ||
4681 | do | ||
4682 | IFS=$as_save_IFS | ||
4683 | test -z "$as_dir" && as_dir=. | ||
4684 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4685 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4686 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" | ||
4687 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4688 | break 2 | ||
4689 | fi | ||
4690 | done | ||
4691 | done | ||
4692 | IFS=$as_save_IFS | ||
4693 | |||
4694 | ;; | ||
4695 | esac | ||
4696 | fi | ||
4697 | CAT=$ac_cv_path_CAT | ||
4698 | if test -n "$CAT"; then | ||
4699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 | ||
4700 | $as_echo "$CAT" >&6; } | ||
4701 | else | ||
4702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4703 | $as_echo "no" >&6; } | ||
4704 | fi | ||
4705 | |||
4706 | |||
4707 | # Extract the first word of "kill", so it can be a program name with args. | ||
4708 | set dummy kill; ac_word=$2 | ||
4709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4710 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4711 | if ${ac_cv_path_KILL+:} false; then : | ||
4712 | $as_echo_n "(cached) " >&6 | ||
4713 | else | ||
4714 | case $KILL in | ||
4715 | [\\/]* | ?:[\\/]*) | ||
4716 | ac_cv_path_KILL="$KILL" # Let the user override the test with a path. | ||
4717 | ;; | ||
4718 | *) | ||
4719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4720 | for as_dir in $PATH | ||
4721 | do | ||
4722 | IFS=$as_save_IFS | ||
4723 | test -z "$as_dir" && as_dir=. | ||
4724 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4725 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4726 | ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext" | ||
4727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4728 | break 2 | ||
4729 | fi | ||
4730 | done | ||
4731 | done | ||
4732 | IFS=$as_save_IFS | ||
4733 | |||
4734 | ;; | ||
4735 | esac | ||
4736 | fi | ||
4737 | KILL=$ac_cv_path_KILL | ||
4738 | if test -n "$KILL"; then | ||
4739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5 | ||
4740 | $as_echo "$KILL" >&6; } | ||
4741 | else | ||
4742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4743 | $as_echo "no" >&6; } | ||
4744 | fi | ||
4745 | |||
4746 | |||
4747 | for ac_prog in perl5 perl | ||
4748 | do | ||
4749 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4750 | set dummy $ac_prog; ac_word=$2 | ||
4751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4752 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4753 | if ${ac_cv_path_PERL+:} false; then : | ||
4754 | $as_echo_n "(cached) " >&6 | ||
4755 | else | ||
4756 | case $PERL in | ||
4757 | [\\/]* | ?:[\\/]*) | ||
4758 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
4759 | ;; | ||
4760 | *) | ||
4761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4762 | for as_dir in $PATH | ||
4763 | do | ||
4764 | IFS=$as_save_IFS | ||
4765 | test -z "$as_dir" && as_dir=. | ||
4766 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4767 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4768 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | ||
4769 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4770 | break 2 | ||
4771 | fi | ||
4772 | done | ||
4773 | done | ||
4774 | IFS=$as_save_IFS | ||
4775 | |||
4776 | ;; | ||
4777 | esac | ||
4778 | fi | ||
4779 | PERL=$ac_cv_path_PERL | ||
4780 | if test -n "$PERL"; then | ||
4781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 | ||
4782 | $as_echo "$PERL" >&6; } | ||
4783 | else | ||
4784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4785 | $as_echo "no" >&6; } | ||
4786 | fi | ||
4787 | |||
4788 | |||
4789 | test -n "$PERL" && break | ||
4790 | done | ||
4791 | |||
4792 | # Extract the first word of "sed", so it can be a program name with args. | ||
4793 | set dummy sed; ac_word=$2 | ||
4794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4795 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4796 | if ${ac_cv_path_SED+:} false; then : | ||
4797 | $as_echo_n "(cached) " >&6 | ||
4798 | else | ||
4799 | case $SED in | ||
4800 | [\\/]* | ?:[\\/]*) | ||
4801 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
4802 | ;; | ||
4803 | *) | ||
4804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4805 | for as_dir in $PATH | ||
4806 | do | ||
4807 | IFS=$as_save_IFS | ||
4808 | test -z "$as_dir" && as_dir=. | ||
4809 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4810 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4811 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | ||
4812 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4813 | break 2 | ||
4814 | fi | ||
4815 | done | ||
4816 | done | ||
4817 | IFS=$as_save_IFS | ||
4818 | |||
4819 | ;; | ||
4820 | esac | ||
4821 | fi | ||
4822 | SED=$ac_cv_path_SED | ||
4823 | if test -n "$SED"; then | ||
4824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | ||
4825 | $as_echo "$SED" >&6; } | ||
4826 | else | ||
4827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4828 | $as_echo "no" >&6; } | ||
4829 | fi | ||
4830 | |||
4831 | |||
4832 | |||
4833 | # Extract the first word of "ent", so it can be a program name with args. | ||
4834 | set dummy ent; ac_word=$2 | ||
4835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4836 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4837 | if ${ac_cv_path_ENT+:} false; then : | ||
4838 | $as_echo_n "(cached) " >&6 | ||
4839 | else | ||
4840 | case $ENT in | ||
4841 | [\\/]* | ?:[\\/]*) | ||
4842 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
4843 | ;; | ||
4844 | *) | ||
4845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4846 | for as_dir in $PATH | ||
4847 | do | ||
4848 | IFS=$as_save_IFS | ||
4849 | test -z "$as_dir" && as_dir=. | ||
4850 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4851 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4852 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" | ||
4853 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4854 | break 2 | ||
4855 | fi | ||
4856 | done | ||
4857 | done | ||
4858 | IFS=$as_save_IFS | ||
4859 | |||
4860 | ;; | ||
4861 | esac | ||
4862 | fi | ||
4863 | ENT=$ac_cv_path_ENT | ||
4864 | if test -n "$ENT"; then | ||
4865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5 | ||
4866 | $as_echo "$ENT" >&6; } | ||
4867 | else | ||
4868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4869 | $as_echo "no" >&6; } | ||
4870 | fi | ||
4871 | |||
4872 | |||
4873 | |||
4874 | # Extract the first word of "bash", so it can be a program name with args. | ||
4875 | set dummy bash; ac_word=$2 | ||
4876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4877 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4878 | if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : | ||
4879 | $as_echo_n "(cached) " >&6 | ||
4880 | else | ||
4881 | case $TEST_MINUS_S_SH in | ||
4882 | [\\/]* | ?:[\\/]*) | ||
4883 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4884 | ;; | ||
4885 | *) | ||
4886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4887 | for as_dir in $PATH | ||
4888 | do | ||
4889 | IFS=$as_save_IFS | ||
4890 | test -z "$as_dir" && as_dir=. | ||
4891 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4892 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4893 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4894 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4895 | break 2 | ||
4896 | fi | ||
4897 | done | ||
4898 | done | ||
4899 | IFS=$as_save_IFS | ||
4900 | |||
4901 | ;; | ||
4902 | esac | ||
4903 | fi | ||
4904 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4905 | if test -n "$TEST_MINUS_S_SH"; then | ||
4906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 | ||
4907 | $as_echo "$TEST_MINUS_S_SH" >&6; } | ||
4908 | else | ||
4909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4910 | $as_echo "no" >&6; } | ||
4911 | fi | ||
4912 | |||
4913 | |||
4914 | # Extract the first word of "ksh", so it can be a program name with args. | ||
4915 | set dummy ksh; ac_word=$2 | ||
4916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4917 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4918 | if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : | ||
4919 | $as_echo_n "(cached) " >&6 | ||
4920 | else | ||
4921 | case $TEST_MINUS_S_SH in | ||
4922 | [\\/]* | ?:[\\/]*) | ||
4923 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4924 | ;; | ||
4925 | *) | ||
4926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4927 | for as_dir in $PATH | ||
4928 | do | ||
4929 | IFS=$as_save_IFS | ||
4930 | test -z "$as_dir" && as_dir=. | ||
4931 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4932 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4933 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4934 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4935 | break 2 | ||
4936 | fi | ||
4937 | done | ||
4938 | done | ||
4939 | IFS=$as_save_IFS | ||
4940 | |||
4941 | ;; | ||
4942 | esac | ||
4943 | fi | ||
4944 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4945 | if test -n "$TEST_MINUS_S_SH"; then | ||
4946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 | ||
4947 | $as_echo "$TEST_MINUS_S_SH" >&6; } | ||
4948 | else | ||
4949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4950 | $as_echo "no" >&6; } | ||
4951 | fi | ||
4952 | |||
4953 | |||
4954 | # Extract the first word of "sh", so it can be a program name with args. | ||
4955 | set dummy sh; ac_word=$2 | ||
4956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4957 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4958 | if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : | ||
4959 | $as_echo_n "(cached) " >&6 | ||
4960 | else | ||
4961 | case $TEST_MINUS_S_SH in | ||
4962 | [\\/]* | ?:[\\/]*) | ||
4963 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4964 | ;; | ||
4965 | *) | ||
4966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4967 | for as_dir in $PATH | ||
4968 | do | ||
4969 | IFS=$as_save_IFS | ||
4970 | test -z "$as_dir" && as_dir=. | ||
4971 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4972 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4973 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4974 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4975 | break 2 | ||
4976 | fi | ||
4977 | done | ||
4978 | done | ||
4979 | IFS=$as_save_IFS | ||
4980 | |||
4981 | ;; | ||
4982 | esac | ||
4983 | fi | ||
4984 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4985 | if test -n "$TEST_MINUS_S_SH"; then | ||
4986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 | ||
4987 | $as_echo "$TEST_MINUS_S_SH" >&6; } | ||
4988 | else | ||
4989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4990 | $as_echo "no" >&6; } | ||
4991 | fi | ||
4992 | |||
4993 | |||
4994 | # Extract the first word of "sh", so it can be a program name with args. | ||
4995 | set dummy sh; ac_word=$2 | ||
4996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4997 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4998 | if ${ac_cv_path_SH+:} false; then : | ||
4999 | $as_echo_n "(cached) " >&6 | ||
5000 | else | ||
5001 | case $SH in | ||
5002 | [\\/]* | ?:[\\/]*) | ||
5003 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
5004 | ;; | ||
5005 | *) | ||
5006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5007 | for as_dir in $PATH | ||
5008 | do | ||
5009 | IFS=$as_save_IFS | ||
5010 | test -z "$as_dir" && as_dir=. | ||
5011 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5012 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5013 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | ||
5014 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5015 | break 2 | ||
5016 | fi | ||
5017 | done | ||
5018 | done | ||
5019 | IFS=$as_save_IFS | ||
5020 | |||
5021 | ;; | ||
5022 | esac | ||
5023 | fi | ||
5024 | SH=$ac_cv_path_SH | ||
5025 | if test -n "$SH"; then | ||
5026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 | ||
5027 | $as_echo "$SH" >&6; } | ||
5028 | else | ||
5029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5030 | $as_echo "no" >&6; } | ||
5031 | fi | ||
5032 | |||
5033 | |||
5034 | # Extract the first word of "groff", so it can be a program name with args. | ||
5035 | set dummy groff; ac_word=$2 | ||
5036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5037 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5038 | if ${ac_cv_path_GROFF+:} false; then : | ||
5039 | $as_echo_n "(cached) " >&6 | ||
5040 | else | ||
5041 | case $GROFF in | ||
5042 | [\\/]* | ?:[\\/]*) | ||
5043 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. | ||
5044 | ;; | ||
5045 | *) | ||
5046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5047 | for as_dir in $PATH | ||
5048 | do | ||
5049 | IFS=$as_save_IFS | ||
5050 | test -z "$as_dir" && as_dir=. | ||
5051 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5052 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5053 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" | ||
5054 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5055 | break 2 | ||
5056 | fi | ||
5057 | done | ||
5058 | done | ||
5059 | IFS=$as_save_IFS | ||
5060 | |||
5061 | ;; | ||
5062 | esac | ||
5063 | fi | ||
5064 | GROFF=$ac_cv_path_GROFF | ||
5065 | if test -n "$GROFF"; then | ||
5066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 | ||
5067 | $as_echo "$GROFF" >&6; } | ||
5068 | else | ||
5069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5070 | $as_echo "no" >&6; } | ||
5071 | fi | ||
5072 | |||
5073 | |||
5074 | # Extract the first word of "nroff", so it can be a program name with args. | ||
5075 | set dummy nroff; ac_word=$2 | ||
5076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5077 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5078 | if ${ac_cv_path_NROFF+:} false; then : | ||
5079 | $as_echo_n "(cached) " >&6 | ||
5080 | else | ||
5081 | case $NROFF in | ||
5082 | [\\/]* | ?:[\\/]*) | ||
5083 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
5084 | ;; | ||
5085 | *) | ||
5086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5087 | for as_dir in $PATH | ||
5088 | do | ||
5089 | IFS=$as_save_IFS | ||
5090 | test -z "$as_dir" && as_dir=. | ||
5091 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5092 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5093 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
5094 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5095 | break 2 | ||
5096 | fi | ||
5097 | done | ||
5098 | done | ||
5099 | IFS=$as_save_IFS | ||
5100 | |||
5101 | ;; | ||
5102 | esac | ||
5103 | fi | ||
5104 | NROFF=$ac_cv_path_NROFF | ||
5105 | if test -n "$NROFF"; then | ||
5106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 | ||
5107 | $as_echo "$NROFF" >&6; } | ||
5108 | else | ||
5109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5110 | $as_echo "no" >&6; } | ||
5111 | fi | ||
5112 | |||
5113 | |||
5114 | # Extract the first word of "mandoc", so it can be a program name with args. | ||
5115 | set dummy mandoc; ac_word=$2 | ||
5116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5117 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5118 | if ${ac_cv_path_MANDOC+:} false; then : | ||
5119 | $as_echo_n "(cached) " >&6 | ||
5120 | else | ||
5121 | case $MANDOC in | ||
5122 | [\\/]* | ?:[\\/]*) | ||
5123 | ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path. | ||
5124 | ;; | ||
5125 | *) | ||
5126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5127 | for as_dir in $PATH | ||
5128 | do | ||
5129 | IFS=$as_save_IFS | ||
5130 | test -z "$as_dir" && as_dir=. | ||
5131 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5132 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5133 | ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext" | ||
5134 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5135 | break 2 | ||
5136 | fi | ||
5137 | done | ||
5138 | done | ||
5139 | IFS=$as_save_IFS | ||
5140 | |||
5141 | ;; | ||
5142 | esac | ||
5143 | fi | ||
5144 | MANDOC=$ac_cv_path_MANDOC | ||
5145 | if test -n "$MANDOC"; then | ||
5146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5 | ||
5147 | $as_echo "$MANDOC" >&6; } | ||
5148 | else | ||
5149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5150 | $as_echo "no" >&6; } | ||
5151 | fi | ||
5152 | |||
5153 | |||
5154 | TEST_SHELL=sh | ||
5155 | |||
5156 | |||
5157 | if test "x$MANDOC" != "x" ; then | ||
5158 | MANFMT="$MANDOC" | ||
5159 | elif test "x$NROFF" != "x" ; then | ||
5160 | MANFMT="$NROFF -mandoc" | ||
5161 | elif test "x$GROFF" != "x" ; then | ||
5162 | MANFMT="$GROFF -mandoc -Tascii" | ||
5163 | else | ||
5164 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5 | ||
5165 | $as_echo "$as_me: WARNING: no manpage formatted found" >&2;} | ||
5166 | MANFMT="false" | ||
5167 | fi | ||
5168 | |||
5169 | |||
5170 | # Extract the first word of "groupadd", so it can be a program name with args. | ||
5171 | set dummy groupadd; ac_word=$2 | ||
5172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5173 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5174 | if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then : | ||
5175 | $as_echo_n "(cached) " >&6 | ||
5176 | else | ||
5177 | case $PATH_GROUPADD_PROG in | ||
5178 | [\\/]* | ?:[\\/]*) | ||
5179 | ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path. | ||
5180 | ;; | ||
5181 | *) | ||
5182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5183 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
5184 | do | ||
5185 | IFS=$as_save_IFS | ||
5186 | test -z "$as_dir" && as_dir=. | ||
5187 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5188 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5189 | ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5190 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5191 | break 2 | ||
5192 | fi | ||
5193 | done | ||
5194 | done | ||
5195 | IFS=$as_save_IFS | ||
5196 | |||
5197 | test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" | ||
5198 | ;; | ||
5199 | esac | ||
5200 | fi | ||
5201 | PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG | ||
5202 | if test -n "$PATH_GROUPADD_PROG"; then | ||
5203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5 | ||
5204 | $as_echo "$PATH_GROUPADD_PROG" >&6; } | ||
5205 | else | ||
5206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5207 | $as_echo "no" >&6; } | ||
5208 | fi | ||
5209 | |||
5210 | |||
5211 | # Extract the first word of "useradd", so it can be a program name with args. | ||
5212 | set dummy useradd; ac_word=$2 | ||
5213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5214 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5215 | if ${ac_cv_path_PATH_USERADD_PROG+:} false; then : | ||
5216 | $as_echo_n "(cached) " >&6 | ||
5217 | else | ||
5218 | case $PATH_USERADD_PROG in | ||
5219 | [\\/]* | ?:[\\/]*) | ||
5220 | ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path. | ||
5221 | ;; | ||
5222 | *) | ||
5223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5224 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
5225 | do | ||
5226 | IFS=$as_save_IFS | ||
5227 | test -z "$as_dir" && as_dir=. | ||
5228 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5229 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5230 | ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5231 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5232 | break 2 | ||
5233 | fi | ||
5234 | done | ||
5235 | done | ||
5236 | IFS=$as_save_IFS | ||
5237 | |||
5238 | test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" | ||
5239 | ;; | ||
5240 | esac | ||
5241 | fi | ||
5242 | PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG | ||
5243 | if test -n "$PATH_USERADD_PROG"; then | ||
5244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5 | ||
5245 | $as_echo "$PATH_USERADD_PROG" >&6; } | ||
5246 | else | ||
5247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5248 | $as_echo "no" >&6; } | ||
5249 | fi | ||
5250 | |||
5251 | |||
5252 | # Extract the first word of "pkgmk", so it can be a program name with args. | ||
5253 | set dummy pkgmk; ac_word=$2 | ||
5254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5255 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5256 | if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then : | ||
5257 | $as_echo_n "(cached) " >&6 | ||
5258 | else | ||
5259 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
5260 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. | ||
5261 | else | ||
5262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5263 | for as_dir in $PATH | ||
5264 | do | ||
5265 | IFS=$as_save_IFS | ||
5266 | test -z "$as_dir" && as_dir=. | ||
5267 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5268 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5269 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" | ||
5270 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5271 | break 2 | ||
5272 | fi | ||
5273 | done | ||
5274 | done | ||
5275 | IFS=$as_save_IFS | ||
5276 | |||
5277 | test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" | ||
5278 | fi | ||
5279 | fi | ||
5280 | MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED | ||
5281 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
5282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5 | ||
5283 | $as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; } | ||
5284 | else | ||
5285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5286 | $as_echo "no" >&6; } | ||
5287 | fi | ||
5288 | |||
5289 | |||
5290 | if test -x /sbin/sh; then | ||
5291 | STARTUP_SCRIPT_SHELL=/sbin/sh | ||
5292 | |||
5293 | else | ||
5294 | STARTUP_SCRIPT_SHELL=/bin/sh | ||
5295 | |||
5296 | fi | ||
5297 | |||
5298 | # System features | ||
5299 | # Check whether --enable-largefile was given. | ||
5300 | if test "${enable_largefile+set}" = set; then : | ||
5301 | enableval=$enable_largefile; | ||
5302 | fi | ||
5303 | |||
5304 | if test "$enable_largefile" != no; then | ||
5305 | |||
5306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | ||
5307 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | ||
5308 | if ${ac_cv_sys_largefile_CC+:} false; then : | ||
5309 | $as_echo_n "(cached) " >&6 | ||
5310 | else | ||
5311 | ac_cv_sys_largefile_CC=no | ||
5312 | if test "$GCC" != yes; then | ||
5313 | ac_save_CC=$CC | ||
5314 | while :; do | ||
5315 | # IRIX 6.2 and later do not support large files by default, | ||
5316 | # so use the C compiler's -n32 option if that helps. | ||
5317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5318 | /* end confdefs.h. */ | ||
5319 | #include <sys/types.h> | ||
5320 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5321 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5322 | since some C++ compilers masquerading as C compilers | ||
5323 | incorrectly reject 9223372036854775807. */ | ||
5324 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5325 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5326 | && LARGE_OFF_T % 2147483647 == 1) | ||
5327 | ? 1 : -1]; | ||
5328 | int | ||
5329 | main () | ||
5330 | { | ||
5331 | |||
5332 | ; | ||
5333 | return 0; | ||
5334 | } | ||
5335 | _ACEOF | ||
5336 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5337 | break | ||
5338 | fi | ||
5339 | rm -f core conftest.err conftest.$ac_objext | ||
5340 | CC="$CC -n32" | ||
5341 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5342 | ac_cv_sys_largefile_CC=' -n32'; break | ||
5343 | fi | ||
5344 | rm -f core conftest.err conftest.$ac_objext | ||
5345 | break | ||
5346 | done | ||
5347 | CC=$ac_save_CC | ||
5348 | rm -f conftest.$ac_ext | ||
5349 | fi | ||
5350 | fi | ||
5351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | ||
5352 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | ||
5353 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
5354 | CC=$CC$ac_cv_sys_largefile_CC | ||
5355 | fi | ||
5356 | |||
5357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
5358 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | ||
5359 | if ${ac_cv_sys_file_offset_bits+:} false; then : | ||
5360 | $as_echo_n "(cached) " >&6 | ||
5361 | else | ||
5362 | while :; do | ||
5363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5364 | /* end confdefs.h. */ | ||
5365 | #include <sys/types.h> | ||
5366 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5367 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5368 | since some C++ compilers masquerading as C compilers | ||
5369 | incorrectly reject 9223372036854775807. */ | ||
5370 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5371 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5372 | && LARGE_OFF_T % 2147483647 == 1) | ||
5373 | ? 1 : -1]; | ||
5374 | int | ||
5375 | main () | ||
5376 | { | ||
5377 | |||
5378 | ; | ||
5379 | return 0; | ||
5380 | } | ||
5381 | _ACEOF | ||
5382 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5383 | ac_cv_sys_file_offset_bits=no; break | ||
5384 | fi | ||
5385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5387 | /* end confdefs.h. */ | ||
5388 | #define _FILE_OFFSET_BITS 64 | ||
5389 | #include <sys/types.h> | ||
5390 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5391 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5392 | since some C++ compilers masquerading as C compilers | ||
5393 | incorrectly reject 9223372036854775807. */ | ||
5394 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5395 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5396 | && LARGE_OFF_T % 2147483647 == 1) | ||
5397 | ? 1 : -1]; | ||
5398 | int | ||
5399 | main () | ||
5400 | { | ||
5401 | |||
5402 | ; | ||
5403 | return 0; | ||
5404 | } | ||
5405 | _ACEOF | ||
5406 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5407 | ac_cv_sys_file_offset_bits=64; break | ||
5408 | fi | ||
5409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5410 | ac_cv_sys_file_offset_bits=unknown | ||
5411 | break | ||
5412 | done | ||
5413 | fi | ||
5414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | ||
5415 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | ||
5416 | case $ac_cv_sys_file_offset_bits in #( | ||
5417 | no | unknown) ;; | ||
5418 | *) | ||
5419 | cat >>confdefs.h <<_ACEOF | ||
5420 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
5421 | _ACEOF | ||
5422 | ;; | ||
5423 | esac | ||
5424 | rm -rf conftest* | ||
5425 | if test $ac_cv_sys_file_offset_bits = unknown; then | ||
5426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | ||
5427 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | ||
5428 | if ${ac_cv_sys_large_files+:} false; then : | ||
5429 | $as_echo_n "(cached) " >&6 | ||
5430 | else | ||
5431 | while :; do | ||
5432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5433 | /* end confdefs.h. */ | ||
5434 | #include <sys/types.h> | ||
5435 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5436 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5437 | since some C++ compilers masquerading as C compilers | ||
5438 | incorrectly reject 9223372036854775807. */ | ||
5439 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5440 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5441 | && LARGE_OFF_T % 2147483647 == 1) | ||
5442 | ? 1 : -1]; | ||
5443 | int | ||
5444 | main () | ||
5445 | { | ||
5446 | |||
5447 | ; | ||
5448 | return 0; | ||
5449 | } | ||
5450 | _ACEOF | ||
5451 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5452 | ac_cv_sys_large_files=no; break | ||
5453 | fi | ||
5454 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5456 | /* end confdefs.h. */ | ||
5457 | #define _LARGE_FILES 1 | ||
5458 | #include <sys/types.h> | ||
5459 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5460 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5461 | since some C++ compilers masquerading as C compilers | ||
5462 | incorrectly reject 9223372036854775807. */ | ||
5463 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5464 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5465 | && LARGE_OFF_T % 2147483647 == 1) | ||
5466 | ? 1 : -1]; | ||
5467 | int | ||
5468 | main () | ||
5469 | { | ||
5470 | |||
5471 | ; | ||
5472 | return 0; | ||
5473 | } | ||
5474 | _ACEOF | ||
5475 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5476 | ac_cv_sys_large_files=1; break | ||
5477 | fi | ||
5478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5479 | ac_cv_sys_large_files=unknown | ||
5480 | break | ||
5481 | done | ||
5482 | fi | ||
5483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | ||
5484 | $as_echo "$ac_cv_sys_large_files" >&6; } | ||
5485 | case $ac_cv_sys_large_files in #( | ||
5486 | no | unknown) ;; | ||
5487 | *) | ||
5488 | cat >>confdefs.h <<_ACEOF | ||
5489 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
5490 | _ACEOF | ||
5491 | ;; | ||
5492 | esac | ||
5493 | rm -rf conftest* | ||
5494 | fi | ||
5495 | |||
5496 | |||
5497 | fi | ||
5498 | |||
5499 | |||
5500 | if test -z "$AR" ; then | ||
5501 | as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5 | ||
5502 | fi | ||
5503 | |||
5504 | # Extract the first word of "passwd", so it can be a program name with args. | ||
5505 | set dummy passwd; ac_word=$2 | ||
5506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5507 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5508 | if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then : | ||
5509 | $as_echo_n "(cached) " >&6 | ||
5510 | else | ||
5511 | case $PATH_PASSWD_PROG in | ||
5512 | [\\/]* | ?:[\\/]*) | ||
5513 | ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. | ||
5514 | ;; | ||
5515 | *) | ||
5516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5517 | for as_dir in $PATH | ||
5518 | do | ||
5519 | IFS=$as_save_IFS | ||
5520 | test -z "$as_dir" && as_dir=. | ||
5521 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5522 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5523 | ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5524 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5525 | break 2 | ||
5526 | fi | ||
5527 | done | ||
5528 | done | ||
5529 | IFS=$as_save_IFS | ||
5530 | |||
5531 | ;; | ||
5532 | esac | ||
5533 | fi | ||
5534 | PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG | ||
5535 | if test -n "$PATH_PASSWD_PROG"; then | ||
5536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5 | ||
5537 | $as_echo "$PATH_PASSWD_PROG" >&6; } | ||
5538 | else | ||
5539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5540 | $as_echo "no" >&6; } | ||
5541 | fi | ||
5542 | |||
5543 | |||
5544 | if test ! -z "$PATH_PASSWD_PROG" ; then | ||
5545 | |||
5546 | cat >>confdefs.h <<_ACEOF | ||
5547 | #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" | ||
5548 | _ACEOF | ||
5549 | |||
5550 | fi | ||
5551 | |||
5552 | if test -z "$LD" ; then | ||
5553 | LD=$CC | ||
5554 | fi | ||
5555 | |||
5556 | |||
5557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | ||
5558 | $as_echo_n "checking for inline... " >&6; } | ||
5559 | if ${ac_cv_c_inline+:} false; then : | ||
5560 | $as_echo_n "(cached) " >&6 | ||
5561 | else | ||
5562 | ac_cv_c_inline=no | ||
5563 | for ac_kw in inline __inline__ __inline; do | ||
5564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5565 | /* end confdefs.h. */ | ||
5566 | #ifndef __cplusplus | ||
5567 | typedef int foo_t; | ||
5568 | static $ac_kw foo_t static_foo () {return 0; } | ||
5569 | $ac_kw foo_t foo () {return 0; } | ||
5570 | #endif | ||
5571 | |||
5572 | _ACEOF | ||
5573 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5574 | ac_cv_c_inline=$ac_kw | ||
5575 | fi | ||
5576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5577 | test "$ac_cv_c_inline" != no && break | ||
5578 | done | ||
5579 | |||
5580 | fi | ||
5581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | ||
5582 | $as_echo "$ac_cv_c_inline" >&6; } | ||
5583 | |||
5584 | case $ac_cv_c_inline in | ||
5585 | inline | yes) ;; | ||
5586 | *) | ||
5587 | case $ac_cv_c_inline in | ||
5588 | no) ac_val=;; | ||
5589 | *) ac_val=$ac_cv_c_inline;; | ||
5590 | esac | ||
5591 | cat >>confdefs.h <<_ACEOF | ||
5592 | #ifndef __cplusplus | ||
5593 | #define inline $ac_val | ||
5594 | #endif | ||
5595 | _ACEOF | ||
5596 | ;; | ||
5597 | esac | ||
5598 | |||
5599 | |||
5600 | ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h> | ||
5601 | " | ||
5602 | if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then : | ||
5603 | have_llong_max=1 | ||
5604 | fi | ||
5605 | |||
5606 | ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" " | ||
5607 | #include <sys/types.h> | ||
5608 | #include <sys/param.h> | ||
5609 | #include <dev/systrace.h> | ||
5610 | |||
5611 | " | ||
5612 | if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = xyes; then : | ||
5613 | have_systr_policy_kill=1 | ||
5614 | fi | ||
5615 | |||
5616 | ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" " | ||
5617 | #include <sys/types.h> | ||
5618 | #include <sys/resource.h> | ||
5619 | |||
5620 | " | ||
5621 | if test "x$ac_cv_have_decl_RLIMIT_NPROC" = xyes; then : | ||
5622 | |||
5623 | $as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h | ||
5624 | |||
5625 | fi | ||
5626 | |||
5627 | ac_fn_c_check_decl "$LINENO" "PR_SET_NO_NEW_PRIVS" "ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" " | ||
5628 | #include <sys/types.h> | ||
5629 | #include <linux/prctl.h> | ||
5630 | |||
5631 | " | ||
5632 | if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then : | ||
5633 | have_linux_no_new_privs=1 | ||
5634 | fi | ||
5635 | |||
5636 | |||
5637 | openssl=yes | ||
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 | fi | ||
5644 | |||
5645 | |||
5646 | fi | ||
5647 | |||
5648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL will be used for cryptography" >&5 | ||
5649 | $as_echo_n "checking whether OpenSSL will be used for cryptography... " >&6; } | ||
5650 | if test "x$openssl" = "xyes" ; then | ||
5651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5652 | $as_echo "yes" >&6; } | ||
5653 | |||
5654 | cat >>confdefs.h <<_ACEOF | ||
5655 | #define WITH_OPENSSL 1 | ||
5656 | _ACEOF | ||
5657 | |||
5658 | else | ||
5659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5660 | $as_echo "no" >&6; } | ||
5661 | fi | ||
5662 | |||
5663 | use_stack_protector=1 | ||
5664 | use_toolchain_hardening=1 | ||
5665 | |||
5666 | # Check whether --with-stackprotect was given. | ||
5667 | if test "${with_stackprotect+set}" = set; then : | ||
5668 | withval=$with_stackprotect; | ||
5669 | if test "x$withval" = "xno"; then | ||
5670 | use_stack_protector=0 | ||
5671 | fi | ||
5672 | fi | ||
5673 | |||
5674 | |||
5675 | # Check whether --with-hardening was given. | ||
5676 | if test "${with_hardening+set}" = set; then : | ||
5677 | withval=$with_hardening; | ||
5678 | if test "x$withval" = "xno"; then | ||
5679 | use_toolchain_hardening=0 | ||
5680 | fi | ||
5681 | fi | ||
5682 | |||
5683 | |||
5684 | # We use -Werror for the tests only so that we catch warnings like "this is | ||
5685 | # on by default" for things like -fPIE. | ||
5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 | ||
5687 | $as_echo_n "checking if $CC supports -Werror... " >&6; } | ||
5688 | saved_CFLAGS="$CFLAGS" | ||
5689 | CFLAGS="$CFLAGS -Werror" | ||
5690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5691 | /* end confdefs.h. */ | ||
5692 | int main(void) { return 0; } | ||
5693 | _ACEOF | ||
5694 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5696 | $as_echo "yes" >&6; } | ||
5697 | WERROR="-Werror" | ||
5698 | else | ||
5699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5700 | $as_echo "no" >&6; } | ||
5701 | WERROR="" | ||
5702 | |||
5703 | fi | ||
5704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5705 | CFLAGS="$saved_CFLAGS" | ||
5706 | |||
5707 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
5708 | { | ||
5709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -pipe" >&5 | ||
5710 | $as_echo_n "checking if $CC supports compile flag -pipe... " >&6; } | ||
5711 | saved_CFLAGS="$CFLAGS" | ||
5712 | CFLAGS="$CFLAGS $WERROR -pipe" | ||
5713 | _define_flag="" | ||
5714 | test "x$_define_flag" = "x" && _define_flag="-pipe" | ||
5715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5716 | /* end confdefs.h. */ | ||
5717 | |||
5718 | #include <stdlib.h> | ||
5719 | #include <stdio.h> | ||
5720 | int main(int argc, char **argv) { | ||
5721 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5722 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5723 | float l = i * 2.1; | ||
5724 | double m = l / 0.5; | ||
5725 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5726 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5727 | exit(0); | ||
5728 | } | ||
5729 | |||
5730 | _ACEOF | ||
5731 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5732 | |||
5733 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
5734 | then | ||
5735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5736 | $as_echo "no" >&6; } | ||
5737 | CFLAGS="$saved_CFLAGS" | ||
5738 | else | ||
5739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5740 | $as_echo "yes" >&6; } | ||
5741 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5742 | fi | ||
5743 | else | ||
5744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5745 | $as_echo "no" >&6; } | ||
5746 | CFLAGS="$saved_CFLAGS" | ||
5747 | |||
5748 | fi | ||
5749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5750 | } | ||
5751 | { | ||
5752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Qunused-arguments" >&5 | ||
5753 | $as_echo_n "checking if $CC supports compile flag -Qunused-arguments... " >&6; } | ||
5754 | saved_CFLAGS="$CFLAGS" | ||
5755 | CFLAGS="$CFLAGS $WERROR -Qunused-arguments" | ||
5756 | _define_flag="" | ||
5757 | test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments" | ||
5758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5759 | /* end confdefs.h. */ | ||
5760 | |||
5761 | #include <stdlib.h> | ||
5762 | #include <stdio.h> | ||
5763 | int main(int argc, char **argv) { | ||
5764 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5765 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5766 | float l = i * 2.1; | ||
5767 | double m = l / 0.5; | ||
5768 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5769 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5770 | exit(0); | ||
5771 | } | ||
5772 | |||
5773 | _ACEOF | ||
5774 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5775 | |||
5776 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
5777 | then | ||
5778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5779 | $as_echo "no" >&6; } | ||
5780 | CFLAGS="$saved_CFLAGS" | ||
5781 | else | ||
5782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5783 | $as_echo "yes" >&6; } | ||
5784 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5785 | fi | ||
5786 | else | ||
5787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5788 | $as_echo "no" >&6; } | ||
5789 | CFLAGS="$saved_CFLAGS" | ||
5790 | |||
5791 | fi | ||
5792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5793 | } | ||
5794 | { | ||
5795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunknown-warning-option" >&5 | ||
5796 | $as_echo_n "checking if $CC supports compile flag -Wunknown-warning-option... " >&6; } | ||
5797 | saved_CFLAGS="$CFLAGS" | ||
5798 | CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option" | ||
5799 | _define_flag="" | ||
5800 | test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option" | ||
5801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5802 | /* end confdefs.h. */ | ||
5803 | |||
5804 | #include <stdlib.h> | ||
5805 | #include <stdio.h> | ||
5806 | int main(int argc, char **argv) { | ||
5807 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5808 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5809 | float l = i * 2.1; | ||
5810 | double m = l / 0.5; | ||
5811 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5812 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5813 | exit(0); | ||
5814 | } | ||
5815 | |||
5816 | _ACEOF | ||
5817 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5818 | |||
5819 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
5820 | then | ||
5821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5822 | $as_echo "no" >&6; } | ||
5823 | CFLAGS="$saved_CFLAGS" | ||
5824 | else | ||
5825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5826 | $as_echo "yes" >&6; } | ||
5827 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5828 | fi | ||
5829 | else | ||
5830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5831 | $as_echo "no" >&6; } | ||
5832 | CFLAGS="$saved_CFLAGS" | ||
5833 | |||
5834 | fi | ||
5835 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5836 | } | ||
5837 | { | ||
5838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wall" >&5 | ||
5839 | $as_echo_n "checking if $CC supports compile flag -Wall... " >&6; } | ||
5840 | saved_CFLAGS="$CFLAGS" | ||
5841 | CFLAGS="$CFLAGS $WERROR -Wall" | ||
5842 | _define_flag="" | ||
5843 | test "x$_define_flag" = "x" && _define_flag="-Wall" | ||
5844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5845 | /* end confdefs.h. */ | ||
5846 | |||
5847 | #include <stdlib.h> | ||
5848 | #include <stdio.h> | ||
5849 | int main(int argc, char **argv) { | ||
5850 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5851 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5852 | float l = i * 2.1; | ||
5853 | double m = l / 0.5; | ||
5854 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5855 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5856 | exit(0); | ||
5857 | } | ||
5858 | |||
5859 | _ACEOF | ||
5860 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5861 | |||
5862 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
5863 | then | ||
5864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5865 | $as_echo "no" >&6; } | ||
5866 | CFLAGS="$saved_CFLAGS" | ||
5867 | else | ||
5868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5869 | $as_echo "yes" >&6; } | ||
5870 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5871 | fi | ||
5872 | else | ||
5873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5874 | $as_echo "no" >&6; } | ||
5875 | CFLAGS="$saved_CFLAGS" | ||
5876 | |||
5877 | fi | ||
5878 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5879 | } | ||
5880 | { | ||
5881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-arith" >&5 | ||
5882 | $as_echo_n "checking if $CC supports compile flag -Wpointer-arith... " >&6; } | ||
5883 | saved_CFLAGS="$CFLAGS" | ||
5884 | CFLAGS="$CFLAGS $WERROR -Wpointer-arith" | ||
5885 | _define_flag="" | ||
5886 | test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith" | ||
5887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5888 | /* end confdefs.h. */ | ||
5889 | |||
5890 | #include <stdlib.h> | ||
5891 | #include <stdio.h> | ||
5892 | int main(int argc, char **argv) { | ||
5893 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5894 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5895 | float l = i * 2.1; | ||
5896 | double m = l / 0.5; | ||
5897 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5898 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5899 | exit(0); | ||
5900 | } | ||
5901 | |||
5902 | _ACEOF | ||
5903 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5904 | |||
5905 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
5906 | then | ||
5907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5908 | $as_echo "no" >&6; } | ||
5909 | CFLAGS="$saved_CFLAGS" | ||
5910 | else | ||
5911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5912 | $as_echo "yes" >&6; } | ||
5913 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5914 | fi | ||
5915 | else | ||
5916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5917 | $as_echo "no" >&6; } | ||
5918 | CFLAGS="$saved_CFLAGS" | ||
5919 | |||
5920 | fi | ||
5921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5922 | } | ||
5923 | { | ||
5924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wuninitialized" >&5 | ||
5925 | $as_echo_n "checking if $CC supports compile flag -Wuninitialized... " >&6; } | ||
5926 | saved_CFLAGS="$CFLAGS" | ||
5927 | CFLAGS="$CFLAGS $WERROR -Wuninitialized" | ||
5928 | _define_flag="" | ||
5929 | test "x$_define_flag" = "x" && _define_flag="-Wuninitialized" | ||
5930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5931 | /* end confdefs.h. */ | ||
5932 | |||
5933 | #include <stdlib.h> | ||
5934 | #include <stdio.h> | ||
5935 | int main(int argc, char **argv) { | ||
5936 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5937 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5938 | float l = i * 2.1; | ||
5939 | double m = l / 0.5; | ||
5940 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5941 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5942 | exit(0); | ||
5943 | } | ||
5944 | |||
5945 | _ACEOF | ||
5946 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5947 | |||
5948 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
5949 | then | ||
5950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5951 | $as_echo "no" >&6; } | ||
5952 | CFLAGS="$saved_CFLAGS" | ||
5953 | else | ||
5954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5955 | $as_echo "yes" >&6; } | ||
5956 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5957 | fi | ||
5958 | else | ||
5959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5960 | $as_echo "no" >&6; } | ||
5961 | CFLAGS="$saved_CFLAGS" | ||
5962 | |||
5963 | fi | ||
5964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5965 | } | ||
5966 | { | ||
5967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsign-compare" >&5 | ||
5968 | $as_echo_n "checking if $CC supports compile flag -Wsign-compare... " >&6; } | ||
5969 | saved_CFLAGS="$CFLAGS" | ||
5970 | CFLAGS="$CFLAGS $WERROR -Wsign-compare" | ||
5971 | _define_flag="" | ||
5972 | test "x$_define_flag" = "x" && _define_flag="-Wsign-compare" | ||
5973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5974 | /* end confdefs.h. */ | ||
5975 | |||
5976 | #include <stdlib.h> | ||
5977 | #include <stdio.h> | ||
5978 | int main(int argc, char **argv) { | ||
5979 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5980 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5981 | float l = i * 2.1; | ||
5982 | double m = l / 0.5; | ||
5983 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5984 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5985 | exit(0); | ||
5986 | } | ||
5987 | |||
5988 | _ACEOF | ||
5989 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5990 | |||
5991 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
5992 | then | ||
5993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5994 | $as_echo "no" >&6; } | ||
5995 | CFLAGS="$saved_CFLAGS" | ||
5996 | else | ||
5997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5998 | $as_echo "yes" >&6; } | ||
5999 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6000 | fi | ||
6001 | else | ||
6002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6003 | $as_echo "no" >&6; } | ||
6004 | CFLAGS="$saved_CFLAGS" | ||
6005 | |||
6006 | fi | ||
6007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6008 | } | ||
6009 | { | ||
6010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wformat-security" >&5 | ||
6011 | $as_echo_n "checking if $CC supports compile flag -Wformat-security... " >&6; } | ||
6012 | saved_CFLAGS="$CFLAGS" | ||
6013 | CFLAGS="$CFLAGS $WERROR -Wformat-security" | ||
6014 | _define_flag="" | ||
6015 | test "x$_define_flag" = "x" && _define_flag="-Wformat-security" | ||
6016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6017 | /* end confdefs.h. */ | ||
6018 | |||
6019 | #include <stdlib.h> | ||
6020 | #include <stdio.h> | ||
6021 | int main(int argc, char **argv) { | ||
6022 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6023 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6024 | float l = i * 2.1; | ||
6025 | double m = l / 0.5; | ||
6026 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6027 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6028 | exit(0); | ||
6029 | } | ||
6030 | |||
6031 | _ACEOF | ||
6032 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6033 | |||
6034 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6035 | then | ||
6036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6037 | $as_echo "no" >&6; } | ||
6038 | CFLAGS="$saved_CFLAGS" | ||
6039 | else | ||
6040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6041 | $as_echo "yes" >&6; } | ||
6042 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6043 | fi | ||
6044 | else | ||
6045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6046 | $as_echo "no" >&6; } | ||
6047 | CFLAGS="$saved_CFLAGS" | ||
6048 | |||
6049 | fi | ||
6050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6051 | } | ||
6052 | { | ||
6053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5 | ||
6054 | $as_echo_n "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... " >&6; } | ||
6055 | saved_CFLAGS="$CFLAGS" | ||
6056 | CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess" | ||
6057 | _define_flag="" | ||
6058 | test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess" | ||
6059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6060 | /* end confdefs.h. */ | ||
6061 | |||
6062 | #include <stdlib.h> | ||
6063 | #include <stdio.h> | ||
6064 | int main(int argc, char **argv) { | ||
6065 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6066 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6067 | float l = i * 2.1; | ||
6068 | double m = l / 0.5; | ||
6069 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6070 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6071 | exit(0); | ||
6072 | } | ||
6073 | |||
6074 | _ACEOF | ||
6075 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6076 | |||
6077 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6078 | then | ||
6079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6080 | $as_echo "no" >&6; } | ||
6081 | CFLAGS="$saved_CFLAGS" | ||
6082 | else | ||
6083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6084 | $as_echo "yes" >&6; } | ||
6085 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6086 | fi | ||
6087 | else | ||
6088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6089 | $as_echo "no" >&6; } | ||
6090 | CFLAGS="$saved_CFLAGS" | ||
6091 | |||
6092 | fi | ||
6093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6094 | } | ||
6095 | { | ||
6096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-sign" >&5 | ||
6097 | $as_echo_n "checking if $CC supports compile flag -Wpointer-sign... " >&6; } | ||
6098 | saved_CFLAGS="$CFLAGS" | ||
6099 | CFLAGS="$CFLAGS $WERROR -Wpointer-sign" | ||
6100 | _define_flag="-Wno-pointer-sign" | ||
6101 | test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign" | ||
6102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6103 | /* end confdefs.h. */ | ||
6104 | |||
6105 | #include <stdlib.h> | ||
6106 | #include <stdio.h> | ||
6107 | int main(int argc, char **argv) { | ||
6108 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6109 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6110 | float l = i * 2.1; | ||
6111 | double m = l / 0.5; | ||
6112 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6113 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6114 | exit(0); | ||
6115 | } | ||
6116 | |||
6117 | _ACEOF | ||
6118 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6119 | |||
6120 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6121 | then | ||
6122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6123 | $as_echo "no" >&6; } | ||
6124 | CFLAGS="$saved_CFLAGS" | ||
6125 | else | ||
6126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6127 | $as_echo "yes" >&6; } | ||
6128 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6129 | fi | ||
6130 | else | ||
6131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6132 | $as_echo "no" >&6; } | ||
6133 | CFLAGS="$saved_CFLAGS" | ||
6134 | |||
6135 | fi | ||
6136 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6137 | } | ||
6138 | { | ||
6139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunused-result" >&5 | ||
6140 | $as_echo_n "checking if $CC supports compile flag -Wunused-result... " >&6; } | ||
6141 | saved_CFLAGS="$CFLAGS" | ||
6142 | CFLAGS="$CFLAGS $WERROR -Wunused-result" | ||
6143 | _define_flag="-Wno-unused-result" | ||
6144 | test "x$_define_flag" = "x" && _define_flag="-Wunused-result" | ||
6145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6146 | /* end confdefs.h. */ | ||
6147 | |||
6148 | #include <stdlib.h> | ||
6149 | #include <stdio.h> | ||
6150 | int main(int argc, char **argv) { | ||
6151 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6152 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6153 | float l = i * 2.1; | ||
6154 | double m = l / 0.5; | ||
6155 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6156 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6157 | exit(0); | ||
6158 | } | ||
6159 | |||
6160 | _ACEOF | ||
6161 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6162 | |||
6163 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6164 | then | ||
6165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6166 | $as_echo "no" >&6; } | ||
6167 | CFLAGS="$saved_CFLAGS" | ||
6168 | else | ||
6169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6170 | $as_echo "yes" >&6; } | ||
6171 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6172 | fi | ||
6173 | else | ||
6174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6175 | $as_echo "no" >&6; } | ||
6176 | CFLAGS="$saved_CFLAGS" | ||
6177 | |||
6178 | fi | ||
6179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6180 | } | ||
6181 | { | ||
6182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fno-strict-aliasing" >&5 | ||
6183 | $as_echo_n "checking if $CC supports compile flag -fno-strict-aliasing... " >&6; } | ||
6184 | saved_CFLAGS="$CFLAGS" | ||
6185 | CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing" | ||
6186 | _define_flag="" | ||
6187 | test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing" | ||
6188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6189 | /* end confdefs.h. */ | ||
6190 | |||
6191 | #include <stdlib.h> | ||
6192 | #include <stdio.h> | ||
6193 | int main(int argc, char **argv) { | ||
6194 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6195 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6196 | float l = i * 2.1; | ||
6197 | double m = l / 0.5; | ||
6198 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6199 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6200 | exit(0); | ||
6201 | } | ||
6202 | |||
6203 | _ACEOF | ||
6204 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6205 | |||
6206 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6207 | then | ||
6208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6209 | $as_echo "no" >&6; } | ||
6210 | CFLAGS="$saved_CFLAGS" | ||
6211 | else | ||
6212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6213 | $as_echo "yes" >&6; } | ||
6214 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6215 | fi | ||
6216 | else | ||
6217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6218 | $as_echo "no" >&6; } | ||
6219 | CFLAGS="$saved_CFLAGS" | ||
6220 | |||
6221 | fi | ||
6222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6223 | } | ||
6224 | if test "x$use_toolchain_hardening" = "x1"; then | ||
6225 | { | ||
6226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5 | ||
6227 | $as_echo_n "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... " >&6; } | ||
6228 | saved_CFLAGS="$CFLAGS" | ||
6229 | CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2" | ||
6230 | _define_flag="" | ||
6231 | test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2" | ||
6232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6233 | /* end confdefs.h. */ | ||
6234 | |||
6235 | #include <stdlib.h> | ||
6236 | #include <stdio.h> | ||
6237 | int main(int argc, char **argv) { | ||
6238 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6239 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6240 | float l = i * 2.1; | ||
6241 | double m = l / 0.5; | ||
6242 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6243 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6244 | exit(0); | ||
6245 | } | ||
6246 | |||
6247 | _ACEOF | ||
6248 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6249 | |||
6250 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6251 | then | ||
6252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6253 | $as_echo "no" >&6; } | ||
6254 | CFLAGS="$saved_CFLAGS" | ||
6255 | else | ||
6256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6257 | $as_echo "yes" >&6; } | ||
6258 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6259 | fi | ||
6260 | else | ||
6261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6262 | $as_echo "no" >&6; } | ||
6263 | CFLAGS="$saved_CFLAGS" | ||
6264 | |||
6265 | fi | ||
6266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6267 | } | ||
6268 | { | ||
6269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,relro" >&5 | ||
6270 | $as_echo_n "checking if $LD supports link flag -Wl,-z,relro... " >&6; } | ||
6271 | saved_LDFLAGS="$LDFLAGS" | ||
6272 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro" | ||
6273 | _define_flag="" | ||
6274 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro" | ||
6275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6276 | /* end confdefs.h. */ | ||
6277 | |||
6278 | #include <stdlib.h> | ||
6279 | #include <stdio.h> | ||
6280 | int main(int argc, char **argv) { | ||
6281 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6282 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6283 | float l = i * 2.1; | ||
6284 | double m = l / 0.5; | ||
6285 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6286 | long long p = n * o; | ||
6287 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); | ||
6288 | exit(0); | ||
6289 | } | ||
6290 | |||
6291 | _ACEOF | ||
6292 | if ac_fn_c_try_link "$LINENO"; then : | ||
6293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6294 | $as_echo "yes" >&6; } | ||
6295 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
6296 | else | ||
6297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6298 | $as_echo "no" >&6; } | ||
6299 | LDFLAGS="$saved_LDFLAGS" | ||
6300 | |||
6301 | fi | ||
6302 | rm -f core conftest.err conftest.$ac_objext \ | ||
6303 | conftest$ac_exeext conftest.$ac_ext | ||
6304 | } | ||
6305 | { | ||
6306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,now" >&5 | ||
6307 | $as_echo_n "checking if $LD supports link flag -Wl,-z,now... " >&6; } | ||
6308 | saved_LDFLAGS="$LDFLAGS" | ||
6309 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now" | ||
6310 | _define_flag="" | ||
6311 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now" | ||
6312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6313 | /* end confdefs.h. */ | ||
6314 | |||
6315 | #include <stdlib.h> | ||
6316 | #include <stdio.h> | ||
6317 | int main(int argc, char **argv) { | ||
6318 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6319 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6320 | float l = i * 2.1; | ||
6321 | double m = l / 0.5; | ||
6322 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6323 | long long p = n * o; | ||
6324 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); | ||
6325 | exit(0); | ||
6326 | } | ||
6327 | |||
6328 | _ACEOF | ||
6329 | if ac_fn_c_try_link "$LINENO"; then : | ||
6330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6331 | $as_echo "yes" >&6; } | ||
6332 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
6333 | else | ||
6334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6335 | $as_echo "no" >&6; } | ||
6336 | LDFLAGS="$saved_LDFLAGS" | ||
6337 | |||
6338 | fi | ||
6339 | rm -f core conftest.err conftest.$ac_objext \ | ||
6340 | conftest$ac_exeext conftest.$ac_ext | ||
6341 | } | ||
6342 | { | ||
6343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,noexecstack" >&5 | ||
6344 | $as_echo_n "checking if $LD supports link flag -Wl,-z,noexecstack... " >&6; } | ||
6345 | saved_LDFLAGS="$LDFLAGS" | ||
6346 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack" | ||
6347 | _define_flag="" | ||
6348 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack" | ||
6349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6350 | /* end confdefs.h. */ | ||
6351 | |||
6352 | #include <stdlib.h> | ||
6353 | #include <stdio.h> | ||
6354 | int main(int argc, char **argv) { | ||
6355 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6356 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6357 | float l = i * 2.1; | ||
6358 | double m = l / 0.5; | ||
6359 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6360 | long long p = n * o; | ||
6361 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); | ||
6362 | exit(0); | ||
6363 | } | ||
6364 | |||
6365 | _ACEOF | ||
6366 | if ac_fn_c_try_link "$LINENO"; then : | ||
6367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6368 | $as_echo "yes" >&6; } | ||
6369 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
6370 | else | ||
6371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6372 | $as_echo "no" >&6; } | ||
6373 | LDFLAGS="$saved_LDFLAGS" | ||
6374 | |||
6375 | fi | ||
6376 | rm -f core conftest.err conftest.$ac_objext \ | ||
6377 | conftest$ac_exeext conftest.$ac_ext | ||
6378 | } | ||
6379 | # NB. -ftrapv expects certain support functions to be present in | ||
6380 | # the compiler library (libgcc or similar) to detect integer operations | ||
6381 | # that can overflow. We must check that the result of enabling it | ||
6382 | # actually links. The test program compiled/linked includes a number | ||
6383 | # of integer operations that should exercise this. | ||
6384 | { | ||
6385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5 | ||
6386 | $as_echo_n "checking if $CC supports compile flag -ftrapv and linking succeeds... " >&6; } | ||
6387 | saved_CFLAGS="$CFLAGS" | ||
6388 | CFLAGS="$CFLAGS $WERROR -ftrapv" | ||
6389 | _define_flag="" | ||
6390 | test "x$_define_flag" = "x" && _define_flag="-ftrapv" | ||
6391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6392 | /* end confdefs.h. */ | ||
6393 | |||
6394 | #include <stdlib.h> | ||
6395 | #include <stdio.h> | ||
6396 | int main(int argc, char **argv) { | ||
6397 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6398 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6399 | float l = i * 2.1; | ||
6400 | double m = l / 0.5; | ||
6401 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6402 | long long int p = n * o; | ||
6403 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); | ||
6404 | exit(0); | ||
6405 | } | ||
6406 | |||
6407 | _ACEOF | ||
6408 | if ac_fn_c_try_link "$LINENO"; then : | ||
6409 | |||
6410 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6411 | then | ||
6412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6413 | $as_echo "no" >&6; } | ||
6414 | CFLAGS="$saved_CFLAGS" | ||
6415 | else | ||
6416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6417 | $as_echo "yes" >&6; } | ||
6418 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6419 | fi | ||
6420 | else | ||
6421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6422 | $as_echo "no" >&6; } | ||
6423 | CFLAGS="$saved_CFLAGS" | ||
6424 | |||
6425 | fi | ||
6426 | rm -f core conftest.err conftest.$ac_objext \ | ||
6427 | conftest$ac_exeext conftest.$ac_ext | ||
6428 | } | ||
6429 | fi | ||
6430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5 | ||
6431 | $as_echo_n "checking gcc version... " >&6; } | ||
6432 | GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` | ||
6433 | case $GCC_VER in | ||
6434 | 1.*) no_attrib_nonnull=1 ;; | ||
6435 | 2.8* | 2.9*) | ||
6436 | no_attrib_nonnull=1 | ||
6437 | ;; | ||
6438 | 2.*) no_attrib_nonnull=1 ;; | ||
6439 | *) ;; | ||
6440 | esac | ||
6441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5 | ||
6442 | $as_echo "$GCC_VER" >&6; } | ||
6443 | |||
6444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5 | ||
6445 | $as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; } | ||
6446 | saved_CFLAGS="$CFLAGS" | ||
6447 | CFLAGS="$CFLAGS -fno-builtin-memset" | ||
6448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6449 | /* end confdefs.h. */ | ||
6450 | #include <string.h> | ||
6451 | int | ||
6452 | main () | ||
6453 | { | ||
6454 | char b[10]; memset(b, 0, sizeof(b)); | ||
6455 | ; | ||
6456 | return 0; | ||
6457 | } | ||
6458 | _ACEOF | ||
6459 | if ac_fn_c_try_link "$LINENO"; then : | ||
6460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6461 | $as_echo "yes" >&6; } | ||
6462 | else | ||
6463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6464 | $as_echo "no" >&6; } | ||
6465 | CFLAGS="$saved_CFLAGS" | ||
6466 | |||
6467 | fi | ||
6468 | rm -f core conftest.err conftest.$ac_objext \ | ||
6469 | conftest$ac_exeext conftest.$ac_ext | ||
6470 | |||
6471 | # -fstack-protector-all doesn't always work for some GCC versions | ||
6472 | # and/or platforms, so we test if we can. If it's not supported | ||
6473 | # on a given platform gcc will emit a warning so we use -Werror. | ||
6474 | if test "x$use_stack_protector" = "x1"; then | ||
6475 | for t in -fstack-protector-strong -fstack-protector-all \ | ||
6476 | -fstack-protector; do | ||
6477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5 | ||
6478 | $as_echo_n "checking if $CC supports $t... " >&6; } | ||
6479 | saved_CFLAGS="$CFLAGS" | ||
6480 | saved_LDFLAGS="$LDFLAGS" | ||
6481 | CFLAGS="$CFLAGS $t -Werror" | ||
6482 | LDFLAGS="$LDFLAGS $t -Werror" | ||
6483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6484 | /* end confdefs.h. */ | ||
6485 | #include <stdio.h> | ||
6486 | int | ||
6487 | main () | ||
6488 | { | ||
6489 | |||
6490 | char x[256]; | ||
6491 | snprintf(x, sizeof(x), "XXX"); | ||
6492 | |||
6493 | ; | ||
6494 | return 0; | ||
6495 | } | ||
6496 | _ACEOF | ||
6497 | if ac_fn_c_try_link "$LINENO"; then : | ||
6498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6499 | $as_echo "yes" >&6; } | ||
6500 | CFLAGS="$saved_CFLAGS $t" | ||
6501 | LDFLAGS="$saved_LDFLAGS $t" | ||
6502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5 | ||
6503 | $as_echo_n "checking if $t works... " >&6; } | ||
6504 | if test "$cross_compiling" = yes; then : | ||
6505 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5 | ||
6506 | $as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;} | ||
6507 | break | ||
6508 | |||
6509 | else | ||
6510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6511 | /* end confdefs.h. */ | ||
6512 | #include <stdio.h> | ||
6513 | int | ||
6514 | main () | ||
6515 | { | ||
6516 | |||
6517 | char x[256]; | ||
6518 | snprintf(x, sizeof(x), "XXX"); | ||
6519 | |||
6520 | ; | ||
6521 | return 0; | ||
6522 | } | ||
6523 | _ACEOF | ||
6524 | if ac_fn_c_try_run "$LINENO"; then : | ||
6525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6526 | $as_echo "yes" >&6; } | ||
6527 | break | ||
6528 | else | ||
6529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6530 | $as_echo "no" >&6; } | ||
6531 | fi | ||
6532 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
6533 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
6534 | fi | ||
6535 | |||
6536 | |||
6537 | else | ||
6538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6539 | $as_echo "no" >&6; } | ||
6540 | |||
6541 | fi | ||
6542 | rm -f core conftest.err conftest.$ac_objext \ | ||
6543 | conftest$ac_exeext conftest.$ac_ext | ||
6544 | CFLAGS="$saved_CFLAGS" | ||
6545 | LDFLAGS="$saved_LDFLAGS" | ||
6546 | done | ||
6547 | fi | ||
6548 | |||
6549 | if test -z "$have_llong_max"; then | ||
6550 | # retry LLONG_MAX with -std=gnu99, needed on some Linuxes | ||
6551 | unset ac_cv_have_decl_LLONG_MAX | ||
6552 | saved_CFLAGS="$CFLAGS" | ||
6553 | CFLAGS="$CFLAGS -std=gnu99" | ||
6554 | ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h> | ||
6555 | |||
6556 | " | ||
6557 | if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then : | ||
6558 | have_llong_max=1 | ||
6559 | else | ||
6560 | CFLAGS="$saved_CFLAGS" | ||
6561 | fi | ||
6562 | |||
6563 | fi | ||
6564 | fi | ||
6565 | |||
6566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ on return types" >&5 | ||
6567 | $as_echo_n "checking if compiler allows __attribute__ on return types... " >&6; } | ||
6568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6569 | /* end confdefs.h. */ | ||
6570 | |||
6571 | #include <stdlib.h> | ||
6572 | __attribute__((__unused__)) static void foo(void){return;} | ||
6573 | int | ||
6574 | main () | ||
6575 | { | ||
6576 | exit(0); | ||
6577 | ; | ||
6578 | return 0; | ||
6579 | } | ||
6580 | _ACEOF | ||
6581 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6583 | $as_echo "yes" >&6; } | ||
6584 | else | ||
6585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6586 | $as_echo "no" >&6; } | ||
6587 | |||
6588 | $as_echo "#define NO_ATTRIBUTE_ON_RETURN_TYPE 1" >>confdefs.h | ||
6589 | |||
6590 | |||
6591 | fi | ||
6592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6593 | |||
6594 | if test "x$no_attrib_nonnull" != "x1" ; then | ||
6595 | |||
6596 | $as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h | ||
6597 | |||
6598 | fi | ||
6599 | |||
6600 | |||
6601 | # Check whether --with-rpath was given. | ||
6602 | if test "${with_rpath+set}" = set; then : | ||
6603 | withval=$with_rpath; | ||
6604 | if test "x$withval" = "xno" ; then | ||
6605 | need_dash_r="" | ||
6606 | fi | ||
6607 | if test "x$withval" = "xyes" ; then | ||
6608 | need_dash_r=1 | ||
6609 | fi | ||
6610 | |||
6611 | |||
6612 | fi | ||
6613 | |||
6614 | |||
6615 | # Allow user to specify flags | ||
6616 | |||
6617 | # Check whether --with-cflags was given. | ||
6618 | if test "${with_cflags+set}" = set; then : | ||
6619 | withval=$with_cflags; | ||
6620 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6621 | test "x${withval}" != "xyes"; then | ||
6622 | CFLAGS="$CFLAGS $withval" | ||
6623 | fi | ||
6624 | |||
6625 | |||
6626 | fi | ||
6627 | |||
6628 | |||
6629 | |||
6630 | # Check whether --with-cflags-after was given. | ||
6631 | if test "${with_cflags_after+set}" = set; then : | ||
6632 | withval=$with_cflags_after; | ||
6633 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6634 | test "x${withval}" != "xyes"; then | ||
6635 | CFLAGS_AFTER="$withval" | ||
6636 | fi | ||
6637 | |||
6638 | |||
6639 | fi | ||
6640 | |||
6641 | |||
6642 | # Check whether --with-cppflags was given. | ||
6643 | if test "${with_cppflags+set}" = set; then : | ||
6644 | withval=$with_cppflags; | ||
6645 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6646 | test "x${withval}" != "xyes"; then | ||
6647 | CPPFLAGS="$CPPFLAGS $withval" | ||
6648 | fi | ||
6649 | |||
6650 | |||
6651 | fi | ||
6652 | |||
6653 | |||
6654 | # Check whether --with-ldflags was given. | ||
6655 | if test "${with_ldflags+set}" = set; then : | ||
6656 | withval=$with_ldflags; | ||
6657 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6658 | test "x${withval}" != "xyes"; then | ||
6659 | LDFLAGS="$LDFLAGS $withval" | ||
6660 | fi | ||
6661 | |||
6662 | |||
6663 | fi | ||
6664 | |||
6665 | |||
6666 | # Check whether --with-ldflags-after was given. | ||
6667 | if test "${with_ldflags_after+set}" = set; then : | ||
6668 | withval=$with_ldflags_after; | ||
6669 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6670 | test "x${withval}" != "xyes"; then | ||
6671 | LDFLAGS_AFTER="$withval" | ||
6672 | fi | ||
6673 | |||
6674 | |||
6675 | fi | ||
6676 | |||
6677 | |||
6678 | # Check whether --with-libs was given. | ||
6679 | if test "${with_libs+set}" = set; then : | ||
6680 | withval=$with_libs; | ||
6681 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6682 | test "x${withval}" != "xyes"; then | ||
6683 | LIBS="$LIBS $withval" | ||
6684 | fi | ||
6685 | |||
6686 | |||
6687 | fi | ||
6688 | |||
6689 | |||
6690 | # Check whether --with-Werror was given. | ||
6691 | if test "${with_Werror+set}" = set; then : | ||
6692 | withval=$with_Werror; | ||
6693 | if test -n "$withval" && test "x$withval" != "xno"; then | ||
6694 | werror_flags="-Werror" | ||
6695 | if test "x${withval}" != "xyes"; then | ||
6696 | werror_flags="$withval" | ||
6697 | fi | ||
6698 | fi | ||
6699 | |||
6700 | |||
6701 | fi | ||
6702 | |||
6703 | |||
6704 | for ac_header in \ | ||
6705 | blf.h \ | ||
6706 | bstring.h \ | ||
6707 | crypt.h \ | ||
6708 | crypto/sha2.h \ | ||
6709 | dirent.h \ | ||
6710 | endian.h \ | ||
6711 | elf.h \ | ||
6712 | err.h \ | ||
6713 | features.h \ | ||
6714 | fcntl.h \ | ||
6715 | floatingpoint.h \ | ||
6716 | getopt.h \ | ||
6717 | glob.h \ | ||
6718 | ia.h \ | ||
6719 | iaf.h \ | ||
6720 | inttypes.h \ | ||
6721 | langinfo.h \ | ||
6722 | limits.h \ | ||
6723 | locale.h \ | ||
6724 | login.h \ | ||
6725 | maillock.h \ | ||
6726 | ndir.h \ | ||
6727 | net/if_tun.h \ | ||
6728 | netdb.h \ | ||
6729 | netgroup.h \ | ||
6730 | pam/pam_appl.h \ | ||
6731 | paths.h \ | ||
6732 | poll.h \ | ||
6733 | pty.h \ | ||
6734 | readpassphrase.h \ | ||
6735 | rpc/types.h \ | ||
6736 | security/pam_appl.h \ | ||
6737 | sha2.h \ | ||
6738 | shadow.h \ | ||
6739 | stddef.h \ | ||
6740 | stdint.h \ | ||
6741 | string.h \ | ||
6742 | strings.h \ | ||
6743 | sys/audit.h \ | ||
6744 | sys/bitypes.h \ | ||
6745 | sys/bsdtty.h \ | ||
6746 | sys/cdefs.h \ | ||
6747 | sys/dir.h \ | ||
6748 | sys/mman.h \ | ||
6749 | sys/ndir.h \ | ||
6750 | sys/poll.h \ | ||
6751 | sys/prctl.h \ | ||
6752 | sys/pstat.h \ | ||
6753 | sys/ptrace.h \ | ||
6754 | sys/select.h \ | ||
6755 | sys/stat.h \ | ||
6756 | sys/stream.h \ | ||
6757 | sys/stropts.h \ | ||
6758 | sys/strtio.h \ | ||
6759 | sys/statvfs.h \ | ||
6760 | sys/sysmacros.h \ | ||
6761 | sys/time.h \ | ||
6762 | sys/timers.h \ | ||
6763 | time.h \ | ||
6764 | tmpdir.h \ | ||
6765 | ttyent.h \ | ||
6766 | ucred.h \ | ||
6767 | unistd.h \ | ||
6768 | usersec.h \ | ||
6769 | util.h \ | ||
6770 | utime.h \ | ||
6771 | utmp.h \ | ||
6772 | utmpx.h \ | ||
6773 | vis.h \ | ||
6774 | wchar.h \ | ||
6775 | |||
6776 | do : | ||
6777 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6778 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
6779 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
6780 | cat >>confdefs.h <<_ACEOF | ||
6781 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6782 | _ACEOF | ||
6783 | |||
6784 | fi | ||
6785 | |||
6786 | done | ||
6787 | |||
6788 | |||
6789 | # sys/capsicum.h requires sys/types.h | ||
6790 | for ac_header in sys/capsicum.h | ||
6791 | do : | ||
6792 | ac_fn_c_check_header_compile "$LINENO" "sys/capsicum.h" "ac_cv_header_sys_capsicum_h" " | ||
6793 | #ifdef HAVE_SYS_TYPES_H | ||
6794 | # include <sys/types.h> | ||
6795 | #endif | ||
6796 | |||
6797 | " | ||
6798 | if test "x$ac_cv_header_sys_capsicum_h" = xyes; then : | ||
6799 | cat >>confdefs.h <<_ACEOF | ||
6800 | #define HAVE_SYS_CAPSICUM_H 1 | ||
6801 | _ACEOF | ||
6802 | |||
6803 | fi | ||
6804 | |||
6805 | done | ||
6806 | |||
6807 | |||
6808 | # lastlog.h requires sys/time.h to be included first on Solaris | ||
6809 | for ac_header in lastlog.h | ||
6810 | do : | ||
6811 | ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" " | ||
6812 | #ifdef HAVE_SYS_TIME_H | ||
6813 | # include <sys/time.h> | ||
6814 | #endif | ||
6815 | |||
6816 | " | ||
6817 | if test "x$ac_cv_header_lastlog_h" = xyes; then : | ||
6818 | cat >>confdefs.h <<_ACEOF | ||
6819 | #define HAVE_LASTLOG_H 1 | ||
6820 | _ACEOF | ||
6821 | |||
6822 | fi | ||
6823 | |||
6824 | done | ||
6825 | |||
6826 | |||
6827 | # sys/ptms.h requires sys/stream.h to be included first on Solaris | ||
6828 | for ac_header in sys/ptms.h | ||
6829 | do : | ||
6830 | ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" " | ||
6831 | #ifdef HAVE_SYS_STREAM_H | ||
6832 | # include <sys/stream.h> | ||
6833 | #endif | ||
6834 | |||
6835 | " | ||
6836 | if test "x$ac_cv_header_sys_ptms_h" = xyes; then : | ||
6837 | cat >>confdefs.h <<_ACEOF | ||
6838 | #define HAVE_SYS_PTMS_H 1 | ||
6839 | _ACEOF | ||
6840 | |||
6841 | fi | ||
6842 | |||
6843 | done | ||
6844 | |||
6845 | |||
6846 | # login_cap.h requires sys/types.h on NetBSD | ||
6847 | for ac_header in login_cap.h | ||
6848 | do : | ||
6849 | ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" " | ||
6850 | #include <sys/types.h> | ||
6851 | |||
6852 | " | ||
6853 | if test "x$ac_cv_header_login_cap_h" = xyes; then : | ||
6854 | cat >>confdefs.h <<_ACEOF | ||
6855 | #define HAVE_LOGIN_CAP_H 1 | ||
6856 | _ACEOF | ||
6857 | |||
6858 | fi | ||
6859 | |||
6860 | done | ||
6861 | |||
6862 | |||
6863 | # older BSDs need sys/param.h before sys/mount.h | ||
6864 | for ac_header in sys/mount.h | ||
6865 | do : | ||
6866 | ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" " | ||
6867 | #include <sys/param.h> | ||
6868 | |||
6869 | " | ||
6870 | if test "x$ac_cv_header_sys_mount_h" = xyes; then : | ||
6871 | cat >>confdefs.h <<_ACEOF | ||
6872 | #define HAVE_SYS_MOUNT_H 1 | ||
6873 | _ACEOF | ||
6874 | |||
6875 | fi | ||
6876 | |||
6877 | done | ||
6878 | |||
6879 | |||
6880 | # Android requires sys/socket.h to be included before sys/un.h | ||
6881 | for ac_header in sys/un.h | ||
6882 | do : | ||
6883 | ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" " | ||
6884 | #include <sys/types.h> | ||
6885 | #include <sys/socket.h> | ||
6886 | |||
6887 | " | ||
6888 | if test "x$ac_cv_header_sys_un_h" = xyes; then : | ||
6889 | cat >>confdefs.h <<_ACEOF | ||
6890 | #define HAVE_SYS_UN_H 1 | ||
6891 | _ACEOF | ||
6892 | |||
6893 | fi | ||
6894 | |||
6895 | done | ||
6896 | |||
6897 | |||
6898 | # Messages for features tested for in target-specific section | ||
6899 | SIA_MSG="no" | ||
6900 | SPC_MSG="no" | ||
6901 | SP_MSG="no" | ||
6902 | SPP_MSG="no" | ||
6903 | |||
6904 | # Support for Solaris/Illumos privileges (this test is used by both | ||
6905 | # the --with-solaris-privs option and --with-sandbox=solaris). | ||
6906 | SOLARIS_PRIVS="no" | ||
6907 | |||
6908 | # Check for some target-specific stuff | ||
6909 | case "$host" in | ||
6910 | *-*-aix*) | ||
6911 | # Some versions of VAC won't allow macro redefinitions at | ||
6912 | # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that | ||
6913 | # particularly with older versions of vac or xlc. | ||
6914 | # It also throws errors about null macro argments, but these are | ||
6915 | # not fatal. | ||
6916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5 | ||
6917 | $as_echo_n "checking if compiler allows macro redefinitions... " >&6; } | ||
6918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6919 | /* end confdefs.h. */ | ||
6920 | |||
6921 | #define testmacro foo | ||
6922 | #define testmacro bar | ||
6923 | int | ||
6924 | main () | ||
6925 | { | ||
6926 | exit(0); | ||
6927 | ; | ||
6928 | return 0; | ||
6929 | } | ||
6930 | _ACEOF | ||
6931 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6933 | $as_echo "yes" >&6; } | ||
6934 | else | ||
6935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6936 | $as_echo "no" >&6; } | ||
6937 | CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`" | ||
6938 | LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`" | ||
6939 | CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
6940 | CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
6941 | |||
6942 | |||
6943 | fi | ||
6944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6945 | |||
6946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5 | ||
6947 | $as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; } | ||
6948 | if (test -z "$blibpath"); then | ||
6949 | blibpath="/usr/lib:/lib" | ||
6950 | fi | ||
6951 | saved_LDFLAGS="$LDFLAGS" | ||
6952 | if test "$GCC" = "yes"; then | ||
6953 | flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:" | ||
6954 | else | ||
6955 | flags="-blibpath: -Wl,-blibpath: -Wl,-rpath," | ||
6956 | fi | ||
6957 | for tryflags in $flags ;do | ||
6958 | if (test -z "$blibflags"); then | ||
6959 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" | ||
6960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6961 | /* end confdefs.h. */ | ||
6962 | |||
6963 | int | ||
6964 | main () | ||
6965 | { | ||
6966 | |||
6967 | ; | ||
6968 | return 0; | ||
6969 | } | ||
6970 | _ACEOF | ||
6971 | if ac_fn_c_try_link "$LINENO"; then : | ||
6972 | blibflags=$tryflags | ||
6973 | fi | ||
6974 | rm -f core conftest.err conftest.$ac_objext \ | ||
6975 | conftest$ac_exeext conftest.$ac_ext | ||
6976 | fi | ||
6977 | done | ||
6978 | if (test -z "$blibflags"); then | ||
6979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
6980 | $as_echo "not found" >&6; } | ||
6981 | as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5 | ||
6982 | else | ||
6983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5 | ||
6984 | $as_echo "$blibflags" >&6; } | ||
6985 | fi | ||
6986 | LDFLAGS="$saved_LDFLAGS" | ||
6987 | ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate" | ||
6988 | if test "x$ac_cv_func_authenticate" = xyes; then : | ||
6989 | |||
6990 | $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h | ||
6991 | |||
6992 | else | ||
6993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5 | ||
6994 | $as_echo_n "checking for authenticate in -ls... " >&6; } | ||
6995 | if ${ac_cv_lib_s_authenticate+:} false; then : | ||
6996 | $as_echo_n "(cached) " >&6 | ||
6997 | else | ||
6998 | ac_check_lib_save_LIBS=$LIBS | ||
6999 | LIBS="-ls $LIBS" | ||
7000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7001 | /* end confdefs.h. */ | ||
7002 | |||
7003 | /* Override any GCC internal prototype to avoid an error. | ||
7004 | Use char because int might match the return type of a GCC | ||
7005 | builtin and then its argument prototype would still apply. */ | ||
7006 | #ifdef __cplusplus | ||
7007 | extern "C" | ||
7008 | #endif | ||
7009 | char authenticate (); | ||
7010 | int | ||
7011 | main () | ||
7012 | { | ||
7013 | return authenticate (); | ||
7014 | ; | ||
7015 | return 0; | ||
7016 | } | ||
7017 | _ACEOF | ||
7018 | if ac_fn_c_try_link "$LINENO"; then : | ||
7019 | ac_cv_lib_s_authenticate=yes | ||
7020 | else | ||
7021 | ac_cv_lib_s_authenticate=no | ||
7022 | fi | ||
7023 | rm -f core conftest.err conftest.$ac_objext \ | ||
7024 | conftest$ac_exeext conftest.$ac_ext | ||
7025 | LIBS=$ac_check_lib_save_LIBS | ||
7026 | fi | ||
7027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5 | ||
7028 | $as_echo "$ac_cv_lib_s_authenticate" >&6; } | ||
7029 | if test "x$ac_cv_lib_s_authenticate" = xyes; then : | ||
7030 | $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h | ||
7031 | |||
7032 | LIBS="$LIBS -ls" | ||
7033 | |||
7034 | fi | ||
7035 | |||
7036 | |||
7037 | fi | ||
7038 | |||
7039 | ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h> | ||
7040 | " | ||
7041 | if test "x$ac_cv_have_decl_authenticate" = xyes; then : | ||
7042 | ac_have_decl=1 | ||
7043 | else | ||
7044 | ac_have_decl=0 | ||
7045 | fi | ||
7046 | |||
7047 | cat >>confdefs.h <<_ACEOF | ||
7048 | #define HAVE_DECL_AUTHENTICATE $ac_have_decl | ||
7049 | _ACEOF | ||
7050 | ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h> | ||
7051 | " | ||
7052 | if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then : | ||
7053 | ac_have_decl=1 | ||
7054 | else | ||
7055 | ac_have_decl=0 | ||
7056 | fi | ||
7057 | |||
7058 | cat >>confdefs.h <<_ACEOF | ||
7059 | #define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl | ||
7060 | _ACEOF | ||
7061 | ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h> | ||
7062 | " | ||
7063 | if test "x$ac_cv_have_decl_loginsuccess" = xyes; then : | ||
7064 | ac_have_decl=1 | ||
7065 | else | ||
7066 | ac_have_decl=0 | ||
7067 | fi | ||
7068 | |||
7069 | cat >>confdefs.h <<_ACEOF | ||
7070 | #define HAVE_DECL_LOGINSUCCESS $ac_have_decl | ||
7071 | _ACEOF | ||
7072 | ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h> | ||
7073 | " | ||
7074 | if test "x$ac_cv_have_decl_passwdexpired" = xyes; then : | ||
7075 | ac_have_decl=1 | ||
7076 | else | ||
7077 | ac_have_decl=0 | ||
7078 | fi | ||
7079 | |||
7080 | cat >>confdefs.h <<_ACEOF | ||
7081 | #define HAVE_DECL_PASSWDEXPIRED $ac_have_decl | ||
7082 | _ACEOF | ||
7083 | ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h> | ||
7084 | " | ||
7085 | if test "x$ac_cv_have_decl_setauthdb" = xyes; then : | ||
7086 | ac_have_decl=1 | ||
7087 | else | ||
7088 | ac_have_decl=0 | ||
7089 | fi | ||
7090 | |||
7091 | cat >>confdefs.h <<_ACEOF | ||
7092 | #define HAVE_DECL_SETAUTHDB $ac_have_decl | ||
7093 | _ACEOF | ||
7094 | |||
7095 | ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h> | ||
7096 | |||
7097 | " | ||
7098 | if test "x$ac_cv_have_decl_loginfailed" = xyes; then : | ||
7099 | ac_have_decl=1 | ||
7100 | else | ||
7101 | ac_have_decl=0 | ||
7102 | fi | ||
7103 | |||
7104 | cat >>confdefs.h <<_ACEOF | ||
7105 | #define HAVE_DECL_LOGINFAILED $ac_have_decl | ||
7106 | _ACEOF | ||
7107 | if test $ac_have_decl = 1; then : | ||
7108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5 | ||
7109 | $as_echo_n "checking if loginfailed takes 4 arguments... " >&6; } | ||
7110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7111 | /* end confdefs.h. */ | ||
7112 | #include <usersec.h> | ||
7113 | int | ||
7114 | main () | ||
7115 | { | ||
7116 | (void)loginfailed("user","host","tty",0); | ||
7117 | ; | ||
7118 | return 0; | ||
7119 | } | ||
7120 | _ACEOF | ||
7121 | if ac_fn_c_try_compile "$LINENO"; then : | ||
7122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
7123 | $as_echo "yes" >&6; } | ||
7124 | |||
7125 | $as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h | ||
7126 | |||
7127 | else | ||
7128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7129 | $as_echo "no" >&6; } | ||
7130 | |||
7131 | fi | ||
7132 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7133 | fi | ||
7134 | |||
7135 | for ac_func in getgrset setauthdb | ||
7136 | do : | ||
7137 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7138 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
7139 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
7140 | cat >>confdefs.h <<_ACEOF | ||
7141 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7142 | _ACEOF | ||
7143 | |||
7144 | fi | ||
7145 | done | ||
7146 | |||
7147 | ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h> | ||
7148 | #include <fcntl.h> | ||
7149 | |||
7150 | " | ||
7151 | if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then : | ||
7152 | |||
7153 | $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h | ||
7154 | |||
7155 | fi | ||
7156 | |||
7157 | check_for_aix_broken_getaddrinfo=1 | ||
7158 | |||
7159 | $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h | ||
7160 | |||
7161 | |||
7162 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7163 | |||
7164 | |||
7165 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7166 | |||
7167 | |||
7168 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7169 | |||
7170 | |||
7171 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
7172 | |||
7173 | |||
7174 | $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h | ||
7175 | |||
7176 | |||
7177 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
7178 | |||
7179 | |||
7180 | $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h | ||
7181 | |||
7182 | |||
7183 | $as_echo "#define PTY_ZEROREAD 1" >>confdefs.h | ||
7184 | |||
7185 | |||
7186 | $as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h | ||
7187 | |||
7188 | ;; | ||
7189 | *-*-android*) | ||
7190 | |||
7191 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
7192 | |||
7193 | |||
7194 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
7195 | |||
7196 | ;; | ||
7197 | *-*-cygwin*) | ||
7198 | check_for_libcrypt_later=1 | ||
7199 | LIBS="$LIBS /usr/lib/textreadmode.o" | ||
7200 | |||
7201 | $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h | ||
7202 | |||
7203 | |||
7204 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7205 | |||
7206 | |||
7207 | $as_echo "#define NO_UID_RESTORATION_TEST 1" >>confdefs.h | ||
7208 | |||
7209 | |||
7210 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h | ||
7211 | |||
7212 | |||
7213 | $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h | ||
7214 | |||
7215 | |||
7216 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
7217 | |||
7218 | |||
7219 | $as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h | ||
7220 | |||
7221 | |||
7222 | $as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h | ||
7223 | |||
7224 | # Cygwin defines optargs, optargs as declspec(dllimport) for historical | ||
7225 | # reasons which cause compile warnings, so we disable those warnings. | ||
7226 | { | ||
7227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wno-attributes" >&5 | ||
7228 | $as_echo_n "checking if $CC supports compile flag -Wno-attributes... " >&6; } | ||
7229 | saved_CFLAGS="$CFLAGS" | ||
7230 | CFLAGS="$CFLAGS $WERROR -Wno-attributes" | ||
7231 | _define_flag="" | ||
7232 | test "x$_define_flag" = "x" && _define_flag="-Wno-attributes" | ||
7233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7234 | /* end confdefs.h. */ | ||
7235 | |||
7236 | #include <stdlib.h> | ||
7237 | #include <stdio.h> | ||
7238 | int main(int argc, char **argv) { | ||
7239 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
7240 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
7241 | float l = i * 2.1; | ||
7242 | double m = l / 0.5; | ||
7243 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
7244 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
7245 | exit(0); | ||
7246 | } | ||
7247 | |||
7248 | _ACEOF | ||
7249 | if ac_fn_c_try_compile "$LINENO"; then : | ||
7250 | |||
7251 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
7252 | then | ||
7253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7254 | $as_echo "no" >&6; } | ||
7255 | CFLAGS="$saved_CFLAGS" | ||
7256 | else | ||
7257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
7258 | $as_echo "yes" >&6; } | ||
7259 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
7260 | fi | ||
7261 | else | ||
7262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7263 | $as_echo "no" >&6; } | ||
7264 | CFLAGS="$saved_CFLAGS" | ||
7265 | |||
7266 | fi | ||
7267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7268 | } | ||
7269 | ;; | ||
7270 | *-*-dgux*) | ||
7271 | |||
7272 | $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h | ||
7273 | |||
7274 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7275 | |||
7276 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7277 | |||
7278 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7279 | |||
7280 | ;; | ||
7281 | *-*-darwin*) | ||
7282 | use_pie=auto | ||
7283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5 | ||
7284 | $as_echo_n "checking if we have working getaddrinfo... " >&6; } | ||
7285 | if test "$cross_compiling" = yes; then : | ||
7286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5 | ||
7287 | $as_echo "assume it is working" >&6; } | ||
7288 | else | ||
7289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7290 | /* end confdefs.h. */ | ||
7291 | #include <mach-o/dyld.h> | ||
7292 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
7293 | exit(0); | ||
7294 | else | ||
7295 | exit(1); | ||
7296 | } | ||
7297 | |||
7298 | _ACEOF | ||
7299 | if ac_fn_c_try_run "$LINENO"; then : | ||
7300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5 | ||
7301 | $as_echo "working" >&6; } | ||
7302 | else | ||
7303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5 | ||
7304 | $as_echo "buggy" >&6; } | ||
7305 | |||
7306 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
7307 | |||
7308 | |||
7309 | fi | ||
7310 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
7311 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
7312 | fi | ||
7313 | |||
7314 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7315 | |||
7316 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7317 | |||
7318 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7319 | |||
7320 | |||
7321 | $as_echo "#define BROKEN_GLOB 1" >>confdefs.h | ||
7322 | |||
7323 | |||
7324 | cat >>confdefs.h <<_ACEOF | ||
7325 | #define BIND_8_COMPAT 1 | ||
7326 | _ACEOF | ||
7327 | |||
7328 | |||
7329 | $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h | ||
7330 | |||
7331 | |||
7332 | $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h | ||
7333 | |||
7334 | |||
7335 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h | ||
7336 | |||
7337 | |||
7338 | ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default" | ||
7339 | if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then : | ||
7340 | |||
7341 | else | ||
7342 | |||
7343 | $as_echo "#define AU_IPv4 0" >>confdefs.h | ||
7344 | |||
7345 | #include <bsm/audit.h> | ||
7346 | |||
7347 | $as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h | ||
7348 | |||
7349 | |||
7350 | fi | ||
7351 | |||
7352 | |||
7353 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
7354 | |||
7355 | for ac_func in sandbox_init | ||
7356 | do : | ||
7357 | ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init" | ||
7358 | if test "x$ac_cv_func_sandbox_init" = xyes; then : | ||
7359 | cat >>confdefs.h <<_ACEOF | ||
7360 | #define HAVE_SANDBOX_INIT 1 | ||
7361 | _ACEOF | ||
7362 | |||
7363 | fi | ||
7364 | done | ||
7365 | |||
7366 | for ac_header in sandbox.h | ||
7367 | do : | ||
7368 | ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default" | ||
7369 | if test "x$ac_cv_header_sandbox_h" = xyes; then : | ||
7370 | cat >>confdefs.h <<_ACEOF | ||
7371 | #define HAVE_SANDBOX_H 1 | ||
7372 | _ACEOF | ||
7373 | |||
7374 | fi | ||
7375 | |||
7376 | done | ||
7377 | |||
7378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox_apply in -lsandbox" >&5 | ||
7379 | $as_echo_n "checking for sandbox_apply in -lsandbox... " >&6; } | ||
7380 | if ${ac_cv_lib_sandbox_sandbox_apply+:} false; then : | ||
7381 | $as_echo_n "(cached) " >&6 | ||
7382 | else | ||
7383 | ac_check_lib_save_LIBS=$LIBS | ||
7384 | LIBS="-lsandbox $LIBS" | ||
7385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7386 | /* end confdefs.h. */ | ||
7387 | |||
7388 | /* Override any GCC internal prototype to avoid an error. | ||
7389 | Use char because int might match the return type of a GCC | ||
7390 | builtin and then its argument prototype would still apply. */ | ||
7391 | #ifdef __cplusplus | ||
7392 | extern "C" | ||
7393 | #endif | ||
7394 | char sandbox_apply (); | ||
7395 | int | ||
7396 | main () | ||
7397 | { | ||
7398 | return sandbox_apply (); | ||
7399 | ; | ||
7400 | return 0; | ||
7401 | } | ||
7402 | _ACEOF | ||
7403 | if ac_fn_c_try_link "$LINENO"; then : | ||
7404 | ac_cv_lib_sandbox_sandbox_apply=yes | ||
7405 | else | ||
7406 | ac_cv_lib_sandbox_sandbox_apply=no | ||
7407 | fi | ||
7408 | rm -f core conftest.err conftest.$ac_objext \ | ||
7409 | conftest$ac_exeext conftest.$ac_ext | ||
7410 | LIBS=$ac_check_lib_save_LIBS | ||
7411 | fi | ||
7412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sandbox_sandbox_apply" >&5 | ||
7413 | $as_echo "$ac_cv_lib_sandbox_sandbox_apply" >&6; } | ||
7414 | if test "x$ac_cv_lib_sandbox_sandbox_apply" = xyes; then : | ||
7415 | |||
7416 | SSHDLIBS="$SSHDLIBS -lsandbox" | ||
7417 | |||
7418 | fi | ||
7419 | |||
7420 | ;; | ||
7421 | *-*-dragonfly*) | ||
7422 | SSHDLIBS="$SSHDLIBS -lcrypt" | ||
7423 | TEST_MALLOC_OPTIONS="AFGJPRX" | ||
7424 | ;; | ||
7425 | *-*-haiku*) | ||
7426 | LIBS="$LIBS -lbsd " | ||
7427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5 | ||
7428 | $as_echo_n "checking for socket in -lnetwork... " >&6; } | ||
7429 | if ${ac_cv_lib_network_socket+:} false; then : | ||
7430 | $as_echo_n "(cached) " >&6 | ||
7431 | else | ||
7432 | ac_check_lib_save_LIBS=$LIBS | ||
7433 | LIBS="-lnetwork $LIBS" | ||
7434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7435 | /* end confdefs.h. */ | ||
7436 | |||
7437 | /* Override any GCC internal prototype to avoid an error. | ||
7438 | Use char because int might match the return type of a GCC | ||
7439 | builtin and then its argument prototype would still apply. */ | ||
7440 | #ifdef __cplusplus | ||
7441 | extern "C" | ||
7442 | #endif | ||
7443 | char socket (); | ||
7444 | int | ||
7445 | main () | ||
7446 | { | ||
7447 | return socket (); | ||
7448 | ; | ||
7449 | return 0; | ||
7450 | } | ||
7451 | _ACEOF | ||
7452 | if ac_fn_c_try_link "$LINENO"; then : | ||
7453 | ac_cv_lib_network_socket=yes | ||
7454 | else | ||
7455 | ac_cv_lib_network_socket=no | ||
7456 | fi | ||
7457 | rm -f core conftest.err conftest.$ac_objext \ | ||
7458 | conftest$ac_exeext conftest.$ac_ext | ||
7459 | LIBS=$ac_check_lib_save_LIBS | ||
7460 | fi | ||
7461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5 | ||
7462 | $as_echo "$ac_cv_lib_network_socket" >&6; } | ||
7463 | if test "x$ac_cv_lib_network_socket" = xyes; then : | ||
7464 | cat >>confdefs.h <<_ACEOF | ||
7465 | #define HAVE_LIBNETWORK 1 | ||
7466 | _ACEOF | ||
7467 | |||
7468 | LIBS="-lnetwork $LIBS" | ||
7469 | |||
7470 | fi | ||
7471 | |||
7472 | $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h | ||
7473 | |||
7474 | MANTYPE=man | ||
7475 | ;; | ||
7476 | *-*-hpux*) | ||
7477 | # first we define all of the options common to all HP-UX releases | ||
7478 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
7479 | IPADDR_IN_DISPLAY=yes | ||
7480 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7481 | |||
7482 | $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h | ||
7483 | |||
7484 | |||
7485 | $as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h | ||
7486 | |||
7487 | $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h | ||
7488 | |||
7489 | |||
7490 | $as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h | ||
7491 | |||
7492 | maildir="/var/mail" | ||
7493 | LIBS="$LIBS -lsec" | ||
7494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5 | ||
7495 | $as_echo_n "checking for t_error in -lxnet... " >&6; } | ||
7496 | if ${ac_cv_lib_xnet_t_error+:} false; then : | ||
7497 | $as_echo_n "(cached) " >&6 | ||
7498 | else | ||
7499 | ac_check_lib_save_LIBS=$LIBS | ||
7500 | LIBS="-lxnet $LIBS" | ||
7501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7502 | /* end confdefs.h. */ | ||
7503 | |||
7504 | /* Override any GCC internal prototype to avoid an error. | ||
7505 | Use char because int might match the return type of a GCC | ||
7506 | builtin and then its argument prototype would still apply. */ | ||
7507 | #ifdef __cplusplus | ||
7508 | extern "C" | ||
7509 | #endif | ||
7510 | char t_error (); | ||
7511 | int | ||
7512 | main () | ||
7513 | { | ||
7514 | return t_error (); | ||
7515 | ; | ||
7516 | return 0; | ||
7517 | } | ||
7518 | _ACEOF | ||
7519 | if ac_fn_c_try_link "$LINENO"; then : | ||
7520 | ac_cv_lib_xnet_t_error=yes | ||
7521 | else | ||
7522 | ac_cv_lib_xnet_t_error=no | ||
7523 | fi | ||
7524 | rm -f core conftest.err conftest.$ac_objext \ | ||
7525 | conftest$ac_exeext conftest.$ac_ext | ||
7526 | LIBS=$ac_check_lib_save_LIBS | ||
7527 | fi | ||
7528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5 | ||
7529 | $as_echo "$ac_cv_lib_xnet_t_error" >&6; } | ||
7530 | if test "x$ac_cv_lib_xnet_t_error" = xyes; then : | ||
7531 | cat >>confdefs.h <<_ACEOF | ||
7532 | #define HAVE_LIBXNET 1 | ||
7533 | _ACEOF | ||
7534 | |||
7535 | LIBS="-lxnet $LIBS" | ||
7536 | |||
7537 | else | ||
7538 | as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5 | ||
7539 | fi | ||
7540 | |||
7541 | |||
7542 | # next, we define all of the options specific to major releases | ||
7543 | case "$host" in | ||
7544 | *-*-hpux10*) | ||
7545 | if test -z "$GCC"; then | ||
7546 | CFLAGS="$CFLAGS -Ae" | ||
7547 | fi | ||
7548 | ;; | ||
7549 | *-*-hpux11*) | ||
7550 | |||
7551 | $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h | ||
7552 | |||
7553 | |||
7554 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
7555 | |||
7556 | |||
7557 | $as_echo "#define USE_BTMP 1" >>confdefs.h | ||
7558 | |||
7559 | check_for_hpux_broken_getaddrinfo=1 | ||
7560 | check_for_conflicting_getspnam=1 | ||
7561 | ;; | ||
7562 | esac | ||
7563 | |||
7564 | # lastly, we define options specific to minor releases | ||
7565 | case "$host" in | ||
7566 | *-*-hpux10.26) | ||
7567 | |||
7568 | $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h | ||
7569 | |||
7570 | disable_ptmx_check=yes | ||
7571 | LIBS="$LIBS -lsecpw" | ||
7572 | ;; | ||
7573 | esac | ||
7574 | ;; | ||
7575 | *-*-irix5*) | ||
7576 | PATH="$PATH:/usr/etc" | ||
7577 | |||
7578 | $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h | ||
7579 | |||
7580 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7581 | |||
7582 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7583 | |||
7584 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7585 | |||
7586 | |||
7587 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h | ||
7588 | |||
7589 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
7590 | |||
7591 | ;; | ||
7592 | *-*-irix6*) | ||
7593 | PATH="$PATH:/usr/etc" | ||
7594 | |||
7595 | $as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h | ||
7596 | |||
7597 | |||
7598 | $as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h | ||
7599 | |||
7600 | |||
7601 | $as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h | ||
7602 | |||
7603 | ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob" | ||
7604 | if test "x$ac_cv_func_jlimit_startjob" = xyes; then : | ||
7605 | |||
7606 | $as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h | ||
7607 | |||
7608 | fi | ||
7609 | |||
7610 | $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h | ||
7611 | |||
7612 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7613 | |||
7614 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7615 | |||
7616 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7617 | |||
7618 | |||
7619 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h | ||
7620 | |||
7621 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h | ||
7622 | |||
7623 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
7624 | |||
7625 | ;; | ||
7626 | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | ||
7627 | check_for_libcrypt_later=1 | ||
7628 | $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h | ||
7629 | |||
7630 | $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h | ||
7631 | |||
7632 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
7633 | |||
7634 | |||
7635 | $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h | ||
7636 | |||
7637 | |||
7638 | $as_echo "#define USE_BTMP 1" >>confdefs.h | ||
7639 | |||
7640 | ;; | ||
7641 | *-*-linux*) | ||
7642 | no_dev_ptmx=1 | ||
7643 | use_pie=auto | ||
7644 | check_for_libcrypt_later=1 | ||
7645 | check_for_openpty_ctty_bug=1 | ||
7646 | CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE" | ||
7647 | |||
7648 | $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h | ||
7649 | |||
7650 | |||
7651 | $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h | ||
7652 | |||
7653 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
7654 | |||
7655 | |||
7656 | $as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h | ||
7657 | |||
7658 | |||
7659 | $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h | ||
7660 | |||
7661 | $as_echo "#define USE_BTMP 1" >>confdefs.h | ||
7662 | |||
7663 | |||
7664 | $as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h | ||
7665 | |||
7666 | inet6_default_4in6=yes | ||
7667 | case `uname -r` in | ||
7668 | 1.*|2.0.*) | ||
7669 | |||
7670 | $as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h | ||
7671 | |||
7672 | ;; | ||
7673 | esac | ||
7674 | # tun(4) forwarding compat code | ||
7675 | for ac_header in linux/if_tun.h | ||
7676 | do : | ||
7677 | ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default" | ||
7678 | if test "x$ac_cv_header_linux_if_tun_h" = xyes; then : | ||
7679 | cat >>confdefs.h <<_ACEOF | ||
7680 | #define HAVE_LINUX_IF_TUN_H 1 | ||
7681 | _ACEOF | ||
7682 | |||
7683 | fi | ||
7684 | |||
7685 | done | ||
7686 | |||
7687 | if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then | ||
7688 | |||
7689 | $as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h | ||
7690 | |||
7691 | |||
7692 | $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h | ||
7693 | |||
7694 | |||
7695 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h | ||
7696 | |||
7697 | fi | ||
7698 | for ac_header in linux/seccomp.h linux/filter.h linux/audit.h | ||
7699 | do : | ||
7700 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7701 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <linux/types.h> | ||
7702 | " | ||
7703 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
7704 | cat >>confdefs.h <<_ACEOF | ||
7705 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7706 | _ACEOF | ||
7707 | |||
7708 | fi | ||
7709 | |||
7710 | done | ||
7711 | |||
7712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp architecture" >&5 | ||
7713 | $as_echo_n "checking for seccomp architecture... " >&6; } | ||
7714 | seccomp_audit_arch= | ||
7715 | case "$host" in | ||
7716 | x86_64-*) | ||
7717 | seccomp_audit_arch=AUDIT_ARCH_X86_64 | ||
7718 | ;; | ||
7719 | i*86-*) | ||
7720 | seccomp_audit_arch=AUDIT_ARCH_I386 | ||
7721 | ;; | ||
7722 | arm*-*) | ||
7723 | seccomp_audit_arch=AUDIT_ARCH_ARM | ||
7724 | ;; | ||
7725 | aarch64*-*) | ||
7726 | seccomp_audit_arch=AUDIT_ARCH_AARCH64 | ||
7727 | ;; | ||
7728 | s390x-*) | ||
7729 | seccomp_audit_arch=AUDIT_ARCH_S390X | ||
7730 | ;; | ||
7731 | s390-*) | ||
7732 | seccomp_audit_arch=AUDIT_ARCH_S390 | ||
7733 | ;; | ||
7734 | powerpc64-*) | ||
7735 | seccomp_audit_arch=AUDIT_ARCH_PPC64 | ||
7736 | ;; | ||
7737 | powerpc64le-*) | ||
7738 | seccomp_audit_arch=AUDIT_ARCH_PPC64LE | ||
7739 | ;; | ||
7740 | mips-*) | ||
7741 | seccomp_audit_arch=AUDIT_ARCH_MIPS | ||
7742 | ;; | ||
7743 | mipsel-*) | ||
7744 | seccomp_audit_arch=AUDIT_ARCH_MIPSEL | ||
7745 | ;; | ||
7746 | mips64-*) | ||
7747 | seccomp_audit_arch=AUDIT_ARCH_MIPS64 | ||
7748 | ;; | ||
7749 | mips64el-*) | ||
7750 | seccomp_audit_arch=AUDIT_ARCH_MIPSEL64 | ||
7751 | ;; | ||
7752 | esac | ||
7753 | if test "x$seccomp_audit_arch" != "x" ; then | ||
7754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$seccomp_audit_arch\"" >&5 | ||
7755 | $as_echo "\"$seccomp_audit_arch\"" >&6; } | ||
7756 | |||
7757 | cat >>confdefs.h <<_ACEOF | ||
7758 | #define SECCOMP_AUDIT_ARCH $seccomp_audit_arch | ||
7759 | _ACEOF | ||
7760 | |||
7761 | else | ||
7762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: architecture not supported" >&5 | ||
7763 | $as_echo "architecture not supported" >&6; } | ||
7764 | fi | ||
7765 | ;; | ||
7766 | mips-sony-bsd|mips-sony-newsos4) | ||
7767 | |||
7768 | $as_echo "#define NEED_SETPGRP 1" >>confdefs.h | ||
7769 | |||
7770 | SONY=1 | ||
7771 | ;; | ||
7772 | *-*-netbsd*) | ||
7773 | check_for_libcrypt_before=1 | ||
7774 | if test "x$withval" != "xno" ; then | ||
7775 | need_dash_r=1 | ||
7776 | fi | ||
7777 | CPPFLAGS="$CPPFLAGS -D_OPENBSD_SOURCE" | ||
7778 | |||
7779 | $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h | ||
7780 | |||
7781 | ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default" | ||
7782 | if test "x$ac_cv_header_net_if_tap_h" = xyes; then : | ||
7783 | |||
7784 | else | ||
7785 | |||
7786 | $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h | ||
7787 | |||
7788 | fi | ||
7789 | |||
7790 | |||
7791 | |||
7792 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h | ||
7793 | |||
7794 | TEST_MALLOC_OPTIONS="AJRX" | ||
7795 | |||
7796 | $as_echo "#define BROKEN_READ_COMPARISON 1" >>confdefs.h | ||
7797 | |||
7798 | ;; | ||
7799 | *-*-freebsd*) | ||
7800 | check_for_libcrypt_later=1 | ||
7801 | |||
7802 | $as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h | ||
7803 | |||
7804 | |||
7805 | $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h | ||
7806 | |||
7807 | ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default" | ||
7808 | if test "x$ac_cv_header_net_if_tap_h" = xyes; then : | ||
7809 | |||
7810 | else | ||
7811 | |||
7812 | $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h | ||
7813 | |||
7814 | fi | ||
7815 | |||
7816 | |||
7817 | |||
7818 | $as_echo "#define BROKEN_GLOB 1" >>confdefs.h | ||
7819 | |||
7820 | TEST_MALLOC_OPTIONS="AJRX" | ||
7821 | # Preauth crypto occasionally uses file descriptors for crypto offload | ||
7822 | # and will crash if they cannot be opened. | ||
7823 | |||
7824 | $as_echo "#define SANDBOX_SKIP_RLIMIT_NOFILE 1" >>confdefs.h | ||
7825 | |||
7826 | ;; | ||
7827 | *-*-bsdi*) | ||
7828 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7829 | |||
7830 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7831 | |||
7832 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7833 | |||
7834 | ;; | ||
7835 | *-next-*) | ||
7836 | conf_lastlog_location="/usr/adm/lastlog" | ||
7837 | conf_utmp_location=/etc/utmp | ||
7838 | conf_wtmp_location=/usr/adm/wtmp | ||
7839 | maildir=/usr/spool/mail | ||
7840 | |||
7841 | $as_echo "#define HAVE_NEXT 1" >>confdefs.h | ||
7842 | |||
7843 | $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h | ||
7844 | |||
7845 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7846 | |||
7847 | |||
7848 | $as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h | ||
7849 | |||
7850 | ;; | ||
7851 | *-*-openbsd*) | ||
7852 | use_pie=auto | ||
7853 | |||
7854 | $as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h | ||
7855 | |||
7856 | |||
7857 | $as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h | ||
7858 | |||
7859 | |||
7860 | $as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h | ||
7861 | |||
7862 | |||
7863 | $as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h | ||
7864 | |||
7865 | TEST_MALLOC_OPTIONS="AFGJPRX" | ||
7866 | ;; | ||
7867 | *-*-solaris*) | ||
7868 | if test "x$withval" != "xno" ; then | ||
7869 | need_dash_r=1 | ||
7870 | fi | ||
7871 | $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h | ||
7872 | |||
7873 | $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h | ||
7874 | |||
7875 | $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h | ||
7876 | |||
7877 | |||
7878 | $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h | ||
7879 | |||
7880 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
7881 | |||
7882 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. | ||
7883 | |||
7884 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
7885 | |||
7886 | |||
7887 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
7888 | |||
7889 | |||
7890 | $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h | ||
7891 | |||
7892 | external_path_file=/etc/default/login | ||
7893 | # hardwire lastlog location (can't detect it on some versions) | ||
7894 | conf_lastlog_location="/var/adm/lastlog" | ||
7895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
7896 | $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; } | ||
7897 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
7898 | if test "$sol2ver" -ge 8; then | ||
7899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
7900 | $as_echo "yes" >&6; } | ||
7901 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
7902 | |||
7903 | |||
7904 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
7905 | |||
7906 | else | ||
7907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7908 | $as_echo "no" >&6; } | ||
7909 | fi | ||
7910 | for ac_func in setpflags | ||
7911 | do : | ||
7912 | ac_fn_c_check_func "$LINENO" "setpflags" "ac_cv_func_setpflags" | ||
7913 | if test "x$ac_cv_func_setpflags" = xyes; then : | ||
7914 | cat >>confdefs.h <<_ACEOF | ||
7915 | #define HAVE_SETPFLAGS 1 | ||
7916 | _ACEOF | ||
7917 | |||
7918 | fi | ||
7919 | done | ||
7920 | |||
7921 | for ac_func in setppriv | ||
7922 | do : | ||
7923 | ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv" | ||
7924 | if test "x$ac_cv_func_setppriv" = xyes; then : | ||
7925 | cat >>confdefs.h <<_ACEOF | ||
7926 | #define HAVE_SETPPRIV 1 | ||
7927 | _ACEOF | ||
7928 | |||
7929 | fi | ||
7930 | done | ||
7931 | |||
7932 | for ac_func in priv_basicset | ||
7933 | do : | ||
7934 | ac_fn_c_check_func "$LINENO" "priv_basicset" "ac_cv_func_priv_basicset" | ||
7935 | if test "x$ac_cv_func_priv_basicset" = xyes; then : | ||
7936 | cat >>confdefs.h <<_ACEOF | ||
7937 | #define HAVE_PRIV_BASICSET 1 | ||
7938 | _ACEOF | ||
7939 | |||
7940 | fi | ||
7941 | done | ||
7942 | |||
7943 | for ac_header in priv.h | ||
7944 | do : | ||
7945 | ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default" | ||
7946 | if test "x$ac_cv_header_priv_h" = xyes; then : | ||
7947 | cat >>confdefs.h <<_ACEOF | ||
7948 | #define HAVE_PRIV_H 1 | ||
7949 | _ACEOF | ||
7950 | |||
7951 | fi | ||
7952 | |||
7953 | done | ||
7954 | |||
7955 | |||
7956 | # Check whether --with-solaris-contracts was given. | ||
7957 | if test "${with_solaris_contracts+set}" = set; then : | ||
7958 | withval=$with_solaris_contracts; | ||
7959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5 | ||
7960 | $as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; } | ||
7961 | if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then : | ||
7962 | $as_echo_n "(cached) " >&6 | ||
7963 | else | ||
7964 | ac_check_lib_save_LIBS=$LIBS | ||
7965 | LIBS="-lcontract $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 ct_tmpl_activate (); | ||
7976 | int | ||
7977 | main () | ||
7978 | { | ||
7979 | return ct_tmpl_activate (); | ||
7980 | ; | ||
7981 | return 0; | ||
7982 | } | ||
7983 | _ACEOF | ||
7984 | if ac_fn_c_try_link "$LINENO"; then : | ||
7985 | ac_cv_lib_contract_ct_tmpl_activate=yes | ||
7986 | else | ||
7987 | ac_cv_lib_contract_ct_tmpl_activate=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_contract_ct_tmpl_activate" >&5 | ||
7994 | $as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; } | ||
7995 | if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then : | ||
7996 | |||
7997 | $as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h | ||
7998 | |||
7999 | LIBS="$LIBS -lcontract" | ||
8000 | SPC_MSG="yes" | ||
8001 | fi | ||
8002 | |||
8003 | |||
8004 | fi | ||
8005 | |||
8006 | |||
8007 | # Check whether --with-solaris-projects was given. | ||
8008 | if test "${with_solaris_projects+set}" = set; then : | ||
8009 | withval=$with_solaris_projects; | ||
8010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5 | ||
8011 | $as_echo_n "checking for setproject in -lproject... " >&6; } | ||
8012 | if ${ac_cv_lib_project_setproject+:} false; then : | ||
8013 | $as_echo_n "(cached) " >&6 | ||
8014 | else | ||
8015 | ac_check_lib_save_LIBS=$LIBS | ||
8016 | LIBS="-lproject $LIBS" | ||
8017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8018 | /* end confdefs.h. */ | ||
8019 | |||
8020 | /* Override any GCC internal prototype to avoid an error. | ||
8021 | Use char because int might match the return type of a GCC | ||
8022 | builtin and then its argument prototype would still apply. */ | ||
8023 | #ifdef __cplusplus | ||
8024 | extern "C" | ||
8025 | #endif | ||
8026 | char setproject (); | ||
8027 | int | ||
8028 | main () | ||
8029 | { | ||
8030 | return setproject (); | ||
8031 | ; | ||
8032 | return 0; | ||
8033 | } | ||
8034 | _ACEOF | ||
8035 | if ac_fn_c_try_link "$LINENO"; then : | ||
8036 | ac_cv_lib_project_setproject=yes | ||
8037 | else | ||
8038 | ac_cv_lib_project_setproject=no | ||
8039 | fi | ||
8040 | rm -f core conftest.err conftest.$ac_objext \ | ||
8041 | conftest$ac_exeext conftest.$ac_ext | ||
8042 | LIBS=$ac_check_lib_save_LIBS | ||
8043 | fi | ||
8044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5 | ||
8045 | $as_echo "$ac_cv_lib_project_setproject" >&6; } | ||
8046 | if test "x$ac_cv_lib_project_setproject" = xyes; then : | ||
8047 | |||
8048 | $as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h | ||
8049 | |||
8050 | LIBS="$LIBS -lproject" | ||
8051 | SP_MSG="yes" | ||
8052 | fi | ||
8053 | |||
8054 | |||
8055 | fi | ||
8056 | |||
8057 | |||
8058 | # Check whether --with-solaris-privs was given. | ||
8059 | if test "${with_solaris_privs+set}" = set; then : | ||
8060 | withval=$with_solaris_privs; | ||
8061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/Illumos privilege support" >&5 | ||
8062 | $as_echo_n "checking for Solaris/Illumos privilege support... " >&6; } | ||
8063 | if test "x$ac_cv_func_setppriv" = "xyes" -a \ | ||
8064 | "x$ac_cv_header_priv_h" = "xyes" ; then | ||
8065 | SOLARIS_PRIVS=yes | ||
8066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 | ||
8067 | $as_echo "found" >&6; } | ||
8068 | |||
8069 | $as_echo "#define NO_UID_RESTORATION_TEST 1" >>confdefs.h | ||
8070 | |||
8071 | |||
8072 | $as_echo "#define USE_SOLARIS_PRIVS 1" >>confdefs.h | ||
8073 | |||
8074 | SPP_MSG="yes" | ||
8075 | else | ||
8076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
8077 | $as_echo "not found" >&6; } | ||
8078 | as_fn_error $? "*** must have support for Solaris privileges to use --with-solaris-privs" "$LINENO" 5 | ||
8079 | fi | ||
8080 | |||
8081 | fi | ||
8082 | |||
8083 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
8084 | ;; | ||
8085 | *-*-sunos4*) | ||
8086 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
8087 | for ac_func in getpwanam | ||
8088 | do : | ||
8089 | ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam" | ||
8090 | if test "x$ac_cv_func_getpwanam" = xyes; then : | ||
8091 | cat >>confdefs.h <<_ACEOF | ||
8092 | #define HAVE_GETPWANAM 1 | ||
8093 | _ACEOF | ||
8094 | |||
8095 | fi | ||
8096 | done | ||
8097 | |||
8098 | $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h | ||
8099 | |||
8100 | conf_utmp_location=/etc/utmp | ||
8101 | conf_wtmp_location=/var/adm/wtmp | ||
8102 | conf_lastlog_location=/var/adm/lastlog | ||
8103 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8104 | |||
8105 | ;; | ||
8106 | *-ncr-sysv*) | ||
8107 | LIBS="$LIBS -lc89" | ||
8108 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8109 | |||
8110 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
8111 | |||
8112 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8113 | |||
8114 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8115 | |||
8116 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8117 | |||
8118 | ;; | ||
8119 | *-sni-sysv*) | ||
8120 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
8121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 | ||
8122 | $as_echo_n "checking for dlsym in -ldl... " >&6; } | ||
8123 | if ${ac_cv_lib_dl_dlsym+:} false; then : | ||
8124 | $as_echo_n "(cached) " >&6 | ||
8125 | else | ||
8126 | ac_check_lib_save_LIBS=$LIBS | ||
8127 | LIBS="-ldl $LIBS" | ||
8128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8129 | /* end confdefs.h. */ | ||
8130 | |||
8131 | /* Override any GCC internal prototype to avoid an error. | ||
8132 | Use char because int might match the return type of a GCC | ||
8133 | builtin and then its argument prototype would still apply. */ | ||
8134 | #ifdef __cplusplus | ||
8135 | extern "C" | ||
8136 | #endif | ||
8137 | char dlsym (); | ||
8138 | int | ||
8139 | main () | ||
8140 | { | ||
8141 | return dlsym (); | ||
8142 | ; | ||
8143 | return 0; | ||
8144 | } | ||
8145 | _ACEOF | ||
8146 | if ac_fn_c_try_link "$LINENO"; then : | ||
8147 | ac_cv_lib_dl_dlsym=yes | ||
8148 | else | ||
8149 | ac_cv_lib_dl_dlsym=no | ||
8150 | fi | ||
8151 | rm -f core conftest.err conftest.$ac_objext \ | ||
8152 | conftest$ac_exeext conftest.$ac_ext | ||
8153 | LIBS=$ac_check_lib_save_LIBS | ||
8154 | fi | ||
8155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 | ||
8156 | $as_echo "$ac_cv_lib_dl_dlsym" >&6; } | ||
8157 | if test "x$ac_cv_lib_dl_dlsym" = xyes; then : | ||
8158 | cat >>confdefs.h <<_ACEOF | ||
8159 | #define HAVE_LIBDL 1 | ||
8160 | _ACEOF | ||
8161 | |||
8162 | LIBS="-ldl $LIBS" | ||
8163 | |||
8164 | fi | ||
8165 | |||
8166 | # -lresolv needs to be at the end of LIBS or DNS lookups break | ||
8167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5 | ||
8168 | $as_echo_n "checking for res_query in -lresolv... " >&6; } | ||
8169 | if ${ac_cv_lib_resolv_res_query+:} false; then : | ||
8170 | $as_echo_n "(cached) " >&6 | ||
8171 | else | ||
8172 | ac_check_lib_save_LIBS=$LIBS | ||
8173 | LIBS="-lresolv $LIBS" | ||
8174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8175 | /* end confdefs.h. */ | ||
8176 | |||
8177 | /* Override any GCC internal prototype to avoid an error. | ||
8178 | Use char because int might match the return type of a GCC | ||
8179 | builtin and then its argument prototype would still apply. */ | ||
8180 | #ifdef __cplusplus | ||
8181 | extern "C" | ||
8182 | #endif | ||
8183 | char res_query (); | ||
8184 | int | ||
8185 | main () | ||
8186 | { | ||
8187 | return res_query (); | ||
8188 | ; | ||
8189 | return 0; | ||
8190 | } | ||
8191 | _ACEOF | ||
8192 | if ac_fn_c_try_link "$LINENO"; then : | ||
8193 | ac_cv_lib_resolv_res_query=yes | ||
8194 | else | ||
8195 | ac_cv_lib_resolv_res_query=no | ||
8196 | fi | ||
8197 | rm -f core conftest.err conftest.$ac_objext \ | ||
8198 | conftest$ac_exeext conftest.$ac_ext | ||
8199 | LIBS=$ac_check_lib_save_LIBS | ||
8200 | fi | ||
8201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5 | ||
8202 | $as_echo "$ac_cv_lib_resolv_res_query" >&6; } | ||
8203 | if test "x$ac_cv_lib_resolv_res_query" = xyes; then : | ||
8204 | LIBS="$LIBS -lresolv" | ||
8205 | fi | ||
8206 | |||
8207 | IPADDR_IN_DISPLAY=yes | ||
8208 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8209 | |||
8210 | $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h | ||
8211 | |||
8212 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8213 | |||
8214 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8215 | |||
8216 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8217 | |||
8218 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
8219 | |||
8220 | external_path_file=/etc/default/login | ||
8221 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
8222 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
8223 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
8224 | ;; | ||
8225 | # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. | ||
8226 | *-*-sysv4.2*) | ||
8227 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8228 | |||
8229 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8230 | |||
8231 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8232 | |||
8233 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8234 | |||
8235 | |||
8236 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
8237 | |||
8238 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
8239 | |||
8240 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
8241 | ;; | ||
8242 | # UnixWare 7.x, OpenUNIX 8 | ||
8243 | *-*-sysv5*) | ||
8244 | CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf" | ||
8245 | |||
8246 | $as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h | ||
8247 | |||
8248 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8249 | |||
8250 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8251 | |||
8252 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
8253 | |||
8254 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8255 | |||
8256 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8257 | |||
8258 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
8259 | |||
8260 | $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h | ||
8261 | |||
8262 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
8263 | case "$host" in | ||
8264 | *-*-sysv5SCO_SV*) # SCO OpenServer 6.x | ||
8265 | maildir=/var/spool/mail | ||
8266 | |||
8267 | $as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h | ||
8268 | |||
8269 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h | ||
8270 | |||
8271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5 | ||
8272 | $as_echo_n "checking for getluid in -lprot... " >&6; } | ||
8273 | if ${ac_cv_lib_prot_getluid+:} false; then : | ||
8274 | $as_echo_n "(cached) " >&6 | ||
8275 | else | ||
8276 | ac_check_lib_save_LIBS=$LIBS | ||
8277 | LIBS="-lprot $LIBS" | ||
8278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8279 | /* end confdefs.h. */ | ||
8280 | |||
8281 | /* Override any GCC internal prototype to avoid an error. | ||
8282 | Use char because int might match the return type of a GCC | ||
8283 | builtin and then its argument prototype would still apply. */ | ||
8284 | #ifdef __cplusplus | ||
8285 | extern "C" | ||
8286 | #endif | ||
8287 | char getluid (); | ||
8288 | int | ||
8289 | main () | ||
8290 | { | ||
8291 | return getluid (); | ||
8292 | ; | ||
8293 | return 0; | ||
8294 | } | ||
8295 | _ACEOF | ||
8296 | if ac_fn_c_try_link "$LINENO"; then : | ||
8297 | ac_cv_lib_prot_getluid=yes | ||
8298 | else | ||
8299 | ac_cv_lib_prot_getluid=no | ||
8300 | fi | ||
8301 | rm -f core conftest.err conftest.$ac_objext \ | ||
8302 | conftest$ac_exeext conftest.$ac_ext | ||
8303 | LIBS=$ac_check_lib_save_LIBS | ||
8304 | fi | ||
8305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5 | ||
8306 | $as_echo "$ac_cv_lib_prot_getluid" >&6; } | ||
8307 | if test "x$ac_cv_lib_prot_getluid" = xyes; then : | ||
8308 | LIBS="$LIBS -lprot" | ||
8309 | for ac_func in getluid setluid | ||
8310 | do : | ||
8311 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8312 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
8313 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
8314 | cat >>confdefs.h <<_ACEOF | ||
8315 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8316 | _ACEOF | ||
8317 | |||
8318 | fi | ||
8319 | done | ||
8320 | |||
8321 | $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h | ||
8322 | |||
8323 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h | ||
8324 | |||
8325 | |||
8326 | fi | ||
8327 | |||
8328 | ;; | ||
8329 | *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
8330 | |||
8331 | check_for_libcrypt_later=1 | ||
8332 | ;; | ||
8333 | esac | ||
8334 | ;; | ||
8335 | *-*-sysv*) | ||
8336 | ;; | ||
8337 | # SCO UNIX and OEM versions of SCO UNIX | ||
8338 | *-*-sco3.2v4*) | ||
8339 | as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5 | ||
8340 | ;; | ||
8341 | # SCO OpenServer 5.x | ||
8342 | *-*-sco3.2v5*) | ||
8343 | if test -z "$GCC"; then | ||
8344 | CFLAGS="$CFLAGS -belf" | ||
8345 | fi | ||
8346 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
8347 | no_dev_ptmx=1 | ||
8348 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8349 | |||
8350 | $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h | ||
8351 | |||
8352 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h | ||
8353 | |||
8354 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8355 | |||
8356 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8357 | |||
8358 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
8359 | |||
8360 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8361 | |||
8362 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8363 | |||
8364 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h | ||
8365 | |||
8366 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h | ||
8367 | |||
8368 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
8369 | |||
8370 | for ac_func in getluid setluid | ||
8371 | do : | ||
8372 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8373 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
8374 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
8375 | cat >>confdefs.h <<_ACEOF | ||
8376 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8377 | _ACEOF | ||
8378 | |||
8379 | fi | ||
8380 | done | ||
8381 | |||
8382 | MANTYPE=man | ||
8383 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
8384 | SKIP_DISABLE_LASTLOG_DEFINE=yes | ||
8385 | ;; | ||
8386 | *-*-unicosmk*) | ||
8387 | |||
8388 | $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h | ||
8389 | |||
8390 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8391 | |||
8392 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8393 | |||
8394 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8395 | |||
8396 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8397 | |||
8398 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8399 | |||
8400 | LDFLAGS="$LDFLAGS" | ||
8401 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
8402 | MANTYPE=cat | ||
8403 | ;; | ||
8404 | *-*-unicosmp*) | ||
8405 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8406 | |||
8407 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8408 | |||
8409 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8410 | |||
8411 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h | ||
8412 | |||
8413 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8414 | |||
8415 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8416 | |||
8417 | LDFLAGS="$LDFLAGS" | ||
8418 | LIBS="$LIBS -lgen -lacid -ldb" | ||
8419 | MANTYPE=cat | ||
8420 | ;; | ||
8421 | *-*-unicos*) | ||
8422 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8423 | |||
8424 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8425 | |||
8426 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8427 | |||
8428 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8429 | |||
8430 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8431 | |||
8432 | $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h | ||
8433 | |||
8434 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
8435 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
8436 | MANTYPE=cat | ||
8437 | ;; | ||
8438 | *-dec-osf*) | ||
8439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5 | ||
8440 | $as_echo_n "checking for Digital Unix SIA... " >&6; } | ||
8441 | no_osfsia="" | ||
8442 | |||
8443 | # Check whether --with-osfsia was given. | ||
8444 | if test "${with_osfsia+set}" = set; then : | ||
8445 | withval=$with_osfsia; | ||
8446 | if test "x$withval" = "xno" ; then | ||
8447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 | ||
8448 | $as_echo "disabled" >&6; } | ||
8449 | no_osfsia=1 | ||
8450 | fi | ||
8451 | |||
8452 | fi | ||
8453 | |||
8454 | if test -z "$no_osfsia" ; then | ||
8455 | if test -f /etc/sia/matrix.conf; then | ||
8456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8457 | $as_echo "yes" >&6; } | ||
8458 | |||
8459 | $as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h | ||
8460 | |||
8461 | |||
8462 | $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h | ||
8463 | |||
8464 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8465 | |||
8466 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
8467 | SIA_MSG="yes" | ||
8468 | else | ||
8469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8470 | $as_echo "no" >&6; } | ||
8471 | |||
8472 | $as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h | ||
8473 | |||
8474 | fi | ||
8475 | fi | ||
8476 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
8477 | |||
8478 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8479 | |||
8480 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8481 | |||
8482 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8483 | |||
8484 | |||
8485 | $as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h | ||
8486 | |||
8487 | ;; | ||
8488 | |||
8489 | *-*-nto-qnx*) | ||
8490 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8491 | |||
8492 | $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h | ||
8493 | |||
8494 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
8495 | |||
8496 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
8497 | |||
8498 | |||
8499 | $as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h | ||
8500 | |||
8501 | enable_etc_default_login=no # has incompatible /etc/default/login | ||
8502 | case "$host" in | ||
8503 | *-*-nto-qnx6*) | ||
8504 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8505 | |||
8506 | ;; | ||
8507 | esac | ||
8508 | ;; | ||
8509 | |||
8510 | *-*-ultrix*) | ||
8511 | |||
8512 | $as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h | ||
8513 | |||
8514 | $as_echo "#define NEED_SETPGRP 1" >>confdefs.h | ||
8515 | |||
8516 | |||
8517 | $as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h | ||
8518 | |||
8519 | ;; | ||
8520 | |||
8521 | *-*-lynxos) | ||
8522 | CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" | ||
8523 | |||
8524 | $as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h | ||
8525 | |||
8526 | ;; | ||
8527 | esac | ||
8528 | |||
8529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5 | ||
8530 | $as_echo_n "checking compiler and flags for sanity... " >&6; } | ||
8531 | if test "$cross_compiling" = yes; then : | ||
8532 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5 | ||
8533 | $as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} | ||
8534 | |||
8535 | else | ||
8536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8537 | /* end confdefs.h. */ | ||
8538 | #include <stdio.h> | ||
8539 | int | ||
8540 | main () | ||
8541 | { | ||
8542 | exit(0); | ||
8543 | ; | ||
8544 | return 0; | ||
8545 | } | ||
8546 | _ACEOF | ||
8547 | if ac_fn_c_try_run "$LINENO"; then : | ||
8548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8549 | $as_echo "yes" >&6; } | ||
8550 | else | ||
8551 | |||
8552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8553 | $as_echo "no" >&6; } | ||
8554 | as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5 | ||
8555 | |||
8556 | fi | ||
8557 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
8558 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
8559 | fi | ||
8560 | |||
8561 | |||
8562 | # Checks for libraries. | ||
8563 | ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" | ||
8564 | if test "x$ac_cv_func_setsockopt" = xyes; then : | ||
8565 | |||
8566 | else | ||
8567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5 | ||
8568 | $as_echo_n "checking for setsockopt in -lsocket... " >&6; } | ||
8569 | if ${ac_cv_lib_socket_setsockopt+:} false; then : | ||
8570 | $as_echo_n "(cached) " >&6 | ||
8571 | else | ||
8572 | ac_check_lib_save_LIBS=$LIBS | ||
8573 | LIBS="-lsocket $LIBS" | ||
8574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8575 | /* end confdefs.h. */ | ||
8576 | |||
8577 | /* Override any GCC internal prototype to avoid an error. | ||
8578 | Use char because int might match the return type of a GCC | ||
8579 | builtin and then its argument prototype would still apply. */ | ||
8580 | #ifdef __cplusplus | ||
8581 | extern "C" | ||
8582 | #endif | ||
8583 | char setsockopt (); | ||
8584 | int | ||
8585 | main () | ||
8586 | { | ||
8587 | return setsockopt (); | ||
8588 | ; | ||
8589 | return 0; | ||
8590 | } | ||
8591 | _ACEOF | ||
8592 | if ac_fn_c_try_link "$LINENO"; then : | ||
8593 | ac_cv_lib_socket_setsockopt=yes | ||
8594 | else | ||
8595 | ac_cv_lib_socket_setsockopt=no | ||
8596 | fi | ||
8597 | rm -f core conftest.err conftest.$ac_objext \ | ||
8598 | conftest$ac_exeext conftest.$ac_ext | ||
8599 | LIBS=$ac_check_lib_save_LIBS | ||
8600 | fi | ||
8601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
8602 | $as_echo "$ac_cv_lib_socket_setsockopt" >&6; } | ||
8603 | if test "x$ac_cv_lib_socket_setsockopt" = xyes; then : | ||
8604 | cat >>confdefs.h <<_ACEOF | ||
8605 | #define HAVE_LIBSOCKET 1 | ||
8606 | _ACEOF | ||
8607 | |||
8608 | LIBS="-lsocket $LIBS" | ||
8609 | |||
8610 | fi | ||
8611 | |||
8612 | fi | ||
8613 | |||
8614 | |||
8615 | for ac_func in dirname | ||
8616 | do : | ||
8617 | ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname" | ||
8618 | if test "x$ac_cv_func_dirname" = xyes; then : | ||
8619 | cat >>confdefs.h <<_ACEOF | ||
8620 | #define HAVE_DIRNAME 1 | ||
8621 | _ACEOF | ||
8622 | for ac_header in libgen.h | ||
8623 | do : | ||
8624 | ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" | ||
8625 | if test "x$ac_cv_header_libgen_h" = xyes; then : | ||
8626 | cat >>confdefs.h <<_ACEOF | ||
8627 | #define HAVE_LIBGEN_H 1 | ||
8628 | _ACEOF | ||
8629 | |||
8630 | fi | ||
8631 | |||
8632 | done | ||
8633 | |||
8634 | else | ||
8635 | |||
8636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5 | ||
8637 | $as_echo_n "checking for dirname in -lgen... " >&6; } | ||
8638 | if ${ac_cv_lib_gen_dirname+:} false; then : | ||
8639 | $as_echo_n "(cached) " >&6 | ||
8640 | else | ||
8641 | ac_check_lib_save_LIBS=$LIBS | ||
8642 | LIBS="-lgen $LIBS" | ||
8643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8644 | /* end confdefs.h. */ | ||
8645 | |||
8646 | /* Override any GCC internal prototype to avoid an error. | ||
8647 | Use char because int might match the return type of a GCC | ||
8648 | builtin and then its argument prototype would still apply. */ | ||
8649 | #ifdef __cplusplus | ||
8650 | extern "C" | ||
8651 | #endif | ||
8652 | char dirname (); | ||
8653 | int | ||
8654 | main () | ||
8655 | { | ||
8656 | return dirname (); | ||
8657 | ; | ||
8658 | return 0; | ||
8659 | } | ||
8660 | _ACEOF | ||
8661 | if ac_fn_c_try_link "$LINENO"; then : | ||
8662 | ac_cv_lib_gen_dirname=yes | ||
8663 | else | ||
8664 | ac_cv_lib_gen_dirname=no | ||
8665 | fi | ||
8666 | rm -f core conftest.err conftest.$ac_objext \ | ||
8667 | conftest$ac_exeext conftest.$ac_ext | ||
8668 | LIBS=$ac_check_lib_save_LIBS | ||
8669 | fi | ||
8670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5 | ||
8671 | $as_echo "$ac_cv_lib_gen_dirname" >&6; } | ||
8672 | if test "x$ac_cv_lib_gen_dirname" = xyes; then : | ||
8673 | |||
8674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5 | ||
8675 | $as_echo_n "checking for broken dirname... " >&6; } | ||
8676 | if ${ac_cv_have_broken_dirname+:} false; then : | ||
8677 | $as_echo_n "(cached) " >&6 | ||
8678 | else | ||
8679 | |||
8680 | save_LIBS="$LIBS" | ||
8681 | LIBS="$LIBS -lgen" | ||
8682 | if test "$cross_compiling" = yes; then : | ||
8683 | ac_cv_have_broken_dirname="no" | ||
8684 | else | ||
8685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8686 | /* end confdefs.h. */ | ||
8687 | |||
8688 | #include <libgen.h> | ||
8689 | #include <string.h> | ||
8690 | |||
8691 | int main(int argc, char **argv) { | ||
8692 | char *s, buf[32]; | ||
8693 | |||
8694 | strncpy(buf,"/etc", 32); | ||
8695 | s = dirname(buf); | ||
8696 | if (!s || strncmp(s, "/", 32) != 0) { | ||
8697 | exit(1); | ||
8698 | } else { | ||
8699 | exit(0); | ||
8700 | } | ||
8701 | } | ||
8702 | |||
8703 | _ACEOF | ||
8704 | if ac_fn_c_try_run "$LINENO"; then : | ||
8705 | ac_cv_have_broken_dirname="no" | ||
8706 | else | ||
8707 | ac_cv_have_broken_dirname="yes" | ||
8708 | fi | ||
8709 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
8710 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
8711 | fi | ||
8712 | |||
8713 | LIBS="$save_LIBS" | ||
8714 | |||
8715 | fi | ||
8716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5 | ||
8717 | $as_echo "$ac_cv_have_broken_dirname" >&6; } | ||
8718 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
8719 | LIBS="$LIBS -lgen" | ||
8720 | $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h | ||
8721 | |||
8722 | for ac_header in libgen.h | ||
8723 | do : | ||
8724 | ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" | ||
8725 | if test "x$ac_cv_header_libgen_h" = xyes; then : | ||
8726 | cat >>confdefs.h <<_ACEOF | ||
8727 | #define HAVE_LIBGEN_H 1 | ||
8728 | _ACEOF | ||
8729 | |||
8730 | fi | ||
8731 | |||
8732 | done | ||
8733 | |||
8734 | fi | ||
8735 | |||
8736 | fi | ||
8737 | |||
8738 | |||
8739 | fi | ||
8740 | done | ||
8741 | |||
8742 | |||
8743 | ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam" | ||
8744 | if test "x$ac_cv_func_getspnam" = xyes; then : | ||
8745 | |||
8746 | else | ||
8747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5 | ||
8748 | $as_echo_n "checking for getspnam in -lgen... " >&6; } | ||
8749 | if ${ac_cv_lib_gen_getspnam+:} false; then : | ||
8750 | $as_echo_n "(cached) " >&6 | ||
8751 | else | ||
8752 | ac_check_lib_save_LIBS=$LIBS | ||
8753 | LIBS="-lgen $LIBS" | ||
8754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8755 | /* end confdefs.h. */ | ||
8756 | |||
8757 | /* Override any GCC internal prototype to avoid an error. | ||
8758 | Use char because int might match the return type of a GCC | ||
8759 | builtin and then its argument prototype would still apply. */ | ||
8760 | #ifdef __cplusplus | ||
8761 | extern "C" | ||
8762 | #endif | ||
8763 | char getspnam (); | ||
8764 | int | ||
8765 | main () | ||
8766 | { | ||
8767 | return getspnam (); | ||
8768 | ; | ||
8769 | return 0; | ||
8770 | } | ||
8771 | _ACEOF | ||
8772 | if ac_fn_c_try_link "$LINENO"; then : | ||
8773 | ac_cv_lib_gen_getspnam=yes | ||
8774 | else | ||
8775 | ac_cv_lib_gen_getspnam=no | ||
8776 | fi | ||
8777 | rm -f core conftest.err conftest.$ac_objext \ | ||
8778 | conftest$ac_exeext conftest.$ac_ext | ||
8779 | LIBS=$ac_check_lib_save_LIBS | ||
8780 | fi | ||
8781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5 | ||
8782 | $as_echo "$ac_cv_lib_gen_getspnam" >&6; } | ||
8783 | if test "x$ac_cv_lib_gen_getspnam" = xyes; then : | ||
8784 | LIBS="$LIBS -lgen" | ||
8785 | fi | ||
8786 | |||
8787 | fi | ||
8788 | |||
8789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5 | ||
8790 | $as_echo_n "checking for library containing basename... " >&6; } | ||
8791 | if ${ac_cv_search_basename+:} false; then : | ||
8792 | $as_echo_n "(cached) " >&6 | ||
8793 | else | ||
8794 | ac_func_search_save_LIBS=$LIBS | ||
8795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8796 | /* end confdefs.h. */ | ||
8797 | |||
8798 | /* Override any GCC internal prototype to avoid an error. | ||
8799 | Use char because int might match the return type of a GCC | ||
8800 | builtin and then its argument prototype would still apply. */ | ||
8801 | #ifdef __cplusplus | ||
8802 | extern "C" | ||
8803 | #endif | ||
8804 | char basename (); | ||
8805 | int | ||
8806 | main () | ||
8807 | { | ||
8808 | return basename (); | ||
8809 | ; | ||
8810 | return 0; | ||
8811 | } | ||
8812 | _ACEOF | ||
8813 | for ac_lib in '' gen; do | ||
8814 | if test -z "$ac_lib"; then | ||
8815 | ac_res="none required" | ||
8816 | else | ||
8817 | ac_res=-l$ac_lib | ||
8818 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
8819 | fi | ||
8820 | if ac_fn_c_try_link "$LINENO"; then : | ||
8821 | ac_cv_search_basename=$ac_res | ||
8822 | fi | ||
8823 | rm -f core conftest.err conftest.$ac_objext \ | ||
8824 | conftest$ac_exeext | ||
8825 | if ${ac_cv_search_basename+:} false; then : | ||
8826 | break | ||
8827 | fi | ||
8828 | done | ||
8829 | if ${ac_cv_search_basename+:} false; then : | ||
8830 | |||
8831 | else | ||
8832 | ac_cv_search_basename=no | ||
8833 | fi | ||
8834 | rm conftest.$ac_ext | ||
8835 | LIBS=$ac_func_search_save_LIBS | ||
8836 | fi | ||
8837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5 | ||
8838 | $as_echo "$ac_cv_search_basename" >&6; } | ||
8839 | ac_res=$ac_cv_search_basename | ||
8840 | if test "$ac_res" != no; then : | ||
8841 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
8842 | |||
8843 | $as_echo "#define HAVE_BASENAME 1" >>confdefs.h | ||
8844 | |||
8845 | fi | ||
8846 | |||
8847 | |||
8848 | |||
8849 | # Check whether --with-zlib was given. | ||
8850 | if test "${with_zlib+set}" = set; then : | ||
8851 | withval=$with_zlib; if test "x$withval" = "xno" ; then | ||
8852 | as_fn_error $? "*** zlib is required ***" "$LINENO" 5 | ||
8853 | elif test "x$withval" != "xyes"; then | ||
8854 | if test -d "$withval/lib"; then | ||
8855 | if test -n "${need_dash_r}"; then | ||
8856 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
8857 | else | ||
8858 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
8859 | fi | ||
8860 | else | ||
8861 | if test -n "${need_dash_r}"; then | ||
8862 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
8863 | else | ||
8864 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
8865 | fi | ||
8866 | fi | ||
8867 | if test -d "$withval/include"; then | ||
8868 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
8869 | else | ||
8870 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
8871 | fi | ||
8872 | fi | ||
8873 | |||
8874 | fi | ||
8875 | |||
8876 | |||
8877 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | ||
8878 | if test "x$ac_cv_header_zlib_h" = xyes; then : | ||
8879 | |||
8880 | else | ||
8881 | as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5 | ||
8882 | fi | ||
8883 | |||
8884 | |||
8885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 | ||
8886 | $as_echo_n "checking for deflate in -lz... " >&6; } | ||
8887 | if ${ac_cv_lib_z_deflate+:} false; then : | ||
8888 | $as_echo_n "(cached) " >&6 | ||
8889 | else | ||
8890 | ac_check_lib_save_LIBS=$LIBS | ||
8891 | LIBS="-lz $LIBS" | ||
8892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8893 | /* end confdefs.h. */ | ||
8894 | |||
8895 | /* Override any GCC internal prototype to avoid an error. | ||
8896 | Use char because int might match the return type of a GCC | ||
8897 | builtin and then its argument prototype would still apply. */ | ||
8898 | #ifdef __cplusplus | ||
8899 | extern "C" | ||
8900 | #endif | ||
8901 | char deflate (); | ||
8902 | int | ||
8903 | main () | ||
8904 | { | ||
8905 | return deflate (); | ||
8906 | ; | ||
8907 | return 0; | ||
8908 | } | ||
8909 | _ACEOF | ||
8910 | if ac_fn_c_try_link "$LINENO"; then : | ||
8911 | ac_cv_lib_z_deflate=yes | ||
8912 | else | ||
8913 | ac_cv_lib_z_deflate=no | ||
8914 | fi | ||
8915 | rm -f core conftest.err conftest.$ac_objext \ | ||
8916 | conftest$ac_exeext conftest.$ac_ext | ||
8917 | LIBS=$ac_check_lib_save_LIBS | ||
8918 | fi | ||
8919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 | ||
8920 | $as_echo "$ac_cv_lib_z_deflate" >&6; } | ||
8921 | if test "x$ac_cv_lib_z_deflate" = xyes; then : | ||
8922 | cat >>confdefs.h <<_ACEOF | ||
8923 | #define HAVE_LIBZ 1 | ||
8924 | _ACEOF | ||
8925 | |||
8926 | LIBS="-lz $LIBS" | ||
8927 | |||
8928 | else | ||
8929 | |||
8930 | saved_CPPFLAGS="$CPPFLAGS" | ||
8931 | saved_LDFLAGS="$LDFLAGS" | ||
8932 | save_LIBS="$LIBS" | ||
8933 | if test -n "${need_dash_r}"; then | ||
8934 | LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" | ||
8935 | else | ||
8936 | LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" | ||
8937 | fi | ||
8938 | CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" | ||
8939 | LIBS="$LIBS -lz" | ||
8940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8941 | /* end confdefs.h. */ | ||
8942 | |||
8943 | /* Override any GCC internal prototype to avoid an error. | ||
8944 | Use char because int might match the return type of a GCC | ||
8945 | builtin and then its argument prototype would still apply. */ | ||
8946 | #ifdef __cplusplus | ||
8947 | extern "C" | ||
8948 | #endif | ||
8949 | char deflate (); | ||
8950 | int | ||
8951 | main () | ||
8952 | { | ||
8953 | return deflate (); | ||
8954 | ; | ||
8955 | return 0; | ||
8956 | } | ||
8957 | _ACEOF | ||
8958 | if ac_fn_c_try_link "$LINENO"; then : | ||
8959 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h | ||
8960 | |||
8961 | else | ||
8962 | |||
8963 | as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5 | ||
8964 | |||
8965 | |||
8966 | fi | ||
8967 | rm -f core conftest.err conftest.$ac_objext \ | ||
8968 | conftest$ac_exeext conftest.$ac_ext | ||
8969 | |||
8970 | |||
8971 | fi | ||
8972 | |||
8973 | |||
8974 | |||
8975 | # Check whether --with-zlib-version-check was given. | ||
8976 | if test "${with_zlib_version_check+set}" = set; then : | ||
8977 | withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then | ||
8978 | zlib_check_nonfatal=1 | ||
8979 | fi | ||
8980 | |||
8981 | |||
8982 | fi | ||
8983 | |||
8984 | |||
8985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5 | ||
8986 | $as_echo_n "checking for possibly buggy zlib... " >&6; } | ||
8987 | if test "$cross_compiling" = yes; then : | ||
8988 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5 | ||
8989 | $as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} | ||
8990 | |||
8991 | else | ||
8992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8993 | /* end confdefs.h. */ | ||
8994 | |||
8995 | #include <stdio.h> | ||
8996 | #include <stdlib.h> | ||
8997 | #include <zlib.h> | ||
8998 | |||
8999 | int | ||
9000 | main () | ||
9001 | { | ||
9002 | |||
9003 | int a=0, b=0, c=0, d=0, n, v; | ||
9004 | n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d); | ||
9005 | if (n != 3 && n != 4) | ||
9006 | exit(1); | ||
9007 | v = a*1000000 + b*10000 + c*100 + d; | ||
9008 | fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v); | ||
9009 | |||
9010 | /* 1.1.4 is OK */ | ||
9011 | if (a == 1 && b == 1 && c >= 4) | ||
9012 | exit(0); | ||
9013 | |||
9014 | /* 1.2.3 and up are OK */ | ||
9015 | if (v >= 1020300) | ||
9016 | exit(0); | ||
9017 | |||
9018 | exit(2); | ||
9019 | |||
9020 | ; | ||
9021 | return 0; | ||
9022 | } | ||
9023 | _ACEOF | ||
9024 | if ac_fn_c_try_run "$LINENO"; then : | ||
9025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9026 | $as_echo "no" >&6; } | ||
9027 | else | ||
9028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9029 | $as_echo "yes" >&6; } | ||
9030 | if test -z "$zlib_check_nonfatal" ; then | ||
9031 | as_fn_error $? "*** zlib too old - check config.log *** | ||
9032 | Your reported zlib version has known security problems. It's possible your | ||
9033 | vendor has fixed these problems without changing the version number. If you | ||
9034 | are sure this is the case, you can disable the check by running | ||
9035 | \"./configure --without-zlib-version-check\". | ||
9036 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
9037 | See http://www.gzip.org/zlib/ for details." "$LINENO" 5 | ||
9038 | else | ||
9039 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5 | ||
9040 | $as_echo "$as_me: WARNING: zlib version may have security problems" >&2;} | ||
9041 | fi | ||
9042 | |||
9043 | fi | ||
9044 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
9045 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
9046 | fi | ||
9047 | |||
9048 | |||
9049 | ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" | ||
9050 | if test "x$ac_cv_func_strcasecmp" = xyes; then : | ||
9051 | |||
9052 | else | ||
9053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5 | ||
9054 | $as_echo_n "checking for strcasecmp in -lresolv... " >&6; } | ||
9055 | if ${ac_cv_lib_resolv_strcasecmp+:} false; then : | ||
9056 | $as_echo_n "(cached) " >&6 | ||
9057 | else | ||
9058 | ac_check_lib_save_LIBS=$LIBS | ||
9059 | LIBS="-lresolv $LIBS" | ||
9060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9061 | /* end confdefs.h. */ | ||
9062 | |||
9063 | /* Override any GCC internal prototype to avoid an error. | ||
9064 | Use char because int might match the return type of a GCC | ||
9065 | builtin and then its argument prototype would still apply. */ | ||
9066 | #ifdef __cplusplus | ||
9067 | extern "C" | ||
9068 | #endif | ||
9069 | char strcasecmp (); | ||
9070 | int | ||
9071 | main () | ||
9072 | { | ||
9073 | return strcasecmp (); | ||
9074 | ; | ||
9075 | return 0; | ||
9076 | } | ||
9077 | _ACEOF | ||
9078 | if ac_fn_c_try_link "$LINENO"; then : | ||
9079 | ac_cv_lib_resolv_strcasecmp=yes | ||
9080 | else | ||
9081 | ac_cv_lib_resolv_strcasecmp=no | ||
9082 | fi | ||
9083 | rm -f core conftest.err conftest.$ac_objext \ | ||
9084 | conftest$ac_exeext conftest.$ac_ext | ||
9085 | LIBS=$ac_check_lib_save_LIBS | ||
9086 | fi | ||
9087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
9088 | $as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; } | ||
9089 | if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then : | ||
9090 | LIBS="$LIBS -lresolv" | ||
9091 | fi | ||
9092 | |||
9093 | |||
9094 | fi | ||
9095 | |||
9096 | for ac_func in utimes | ||
9097 | do : | ||
9098 | ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" | ||
9099 | if test "x$ac_cv_func_utimes" = xyes; then : | ||
9100 | cat >>confdefs.h <<_ACEOF | ||
9101 | #define HAVE_UTIMES 1 | ||
9102 | _ACEOF | ||
9103 | |||
9104 | else | ||
9105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5 | ||
9106 | $as_echo_n "checking for utimes in -lc89... " >&6; } | ||
9107 | if ${ac_cv_lib_c89_utimes+:} false; then : | ||
9108 | $as_echo_n "(cached) " >&6 | ||
9109 | else | ||
9110 | ac_check_lib_save_LIBS=$LIBS | ||
9111 | LIBS="-lc89 $LIBS" | ||
9112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9113 | /* end confdefs.h. */ | ||
9114 | |||
9115 | /* Override any GCC internal prototype to avoid an error. | ||
9116 | Use char because int might match the return type of a GCC | ||
9117 | builtin and then its argument prototype would still apply. */ | ||
9118 | #ifdef __cplusplus | ||
9119 | extern "C" | ||
9120 | #endif | ||
9121 | char utimes (); | ||
9122 | int | ||
9123 | main () | ||
9124 | { | ||
9125 | return utimes (); | ||
9126 | ; | ||
9127 | return 0; | ||
9128 | } | ||
9129 | _ACEOF | ||
9130 | if ac_fn_c_try_link "$LINENO"; then : | ||
9131 | ac_cv_lib_c89_utimes=yes | ||
9132 | else | ||
9133 | ac_cv_lib_c89_utimes=no | ||
9134 | fi | ||
9135 | rm -f core conftest.err conftest.$ac_objext \ | ||
9136 | conftest$ac_exeext conftest.$ac_ext | ||
9137 | LIBS=$ac_check_lib_save_LIBS | ||
9138 | fi | ||
9139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5 | ||
9140 | $as_echo "$ac_cv_lib_c89_utimes" >&6; } | ||
9141 | if test "x$ac_cv_lib_c89_utimes" = xyes; then : | ||
9142 | $as_echo "#define HAVE_UTIMES 1" >>confdefs.h | ||
9143 | |||
9144 | LIBS="$LIBS -lc89" | ||
9145 | fi | ||
9146 | |||
9147 | |||
9148 | fi | ||
9149 | done | ||
9150 | |||
9151 | |||
9152 | for ac_header in bsd/libutil.h libutil.h | ||
9153 | do : | ||
9154 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
9155 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
9156 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
9157 | cat >>confdefs.h <<_ACEOF | ||
9158 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
9159 | _ACEOF | ||
9160 | |||
9161 | fi | ||
9162 | |||
9163 | done | ||
9164 | |||
9165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5 | ||
9166 | $as_echo_n "checking for library containing fmt_scaled... " >&6; } | ||
9167 | if ${ac_cv_search_fmt_scaled+:} false; then : | ||
9168 | $as_echo_n "(cached) " >&6 | ||
9169 | else | ||
9170 | ac_func_search_save_LIBS=$LIBS | ||
9171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9172 | /* end confdefs.h. */ | ||
9173 | |||
9174 | /* Override any GCC internal prototype to avoid an error. | ||
9175 | Use char because int might match the return type of a GCC | ||
9176 | builtin and then its argument prototype would still apply. */ | ||
9177 | #ifdef __cplusplus | ||
9178 | extern "C" | ||
9179 | #endif | ||
9180 | char fmt_scaled (); | ||
9181 | int | ||
9182 | main () | ||
9183 | { | ||
9184 | return fmt_scaled (); | ||
9185 | ; | ||
9186 | return 0; | ||
9187 | } | ||
9188 | _ACEOF | ||
9189 | for ac_lib in '' util bsd; do | ||
9190 | if test -z "$ac_lib"; then | ||
9191 | ac_res="none required" | ||
9192 | else | ||
9193 | ac_res=-l$ac_lib | ||
9194 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9195 | fi | ||
9196 | if ac_fn_c_try_link "$LINENO"; then : | ||
9197 | ac_cv_search_fmt_scaled=$ac_res | ||
9198 | fi | ||
9199 | rm -f core conftest.err conftest.$ac_objext \ | ||
9200 | conftest$ac_exeext | ||
9201 | if ${ac_cv_search_fmt_scaled+:} false; then : | ||
9202 | break | ||
9203 | fi | ||
9204 | done | ||
9205 | if ${ac_cv_search_fmt_scaled+:} false; then : | ||
9206 | |||
9207 | else | ||
9208 | ac_cv_search_fmt_scaled=no | ||
9209 | fi | ||
9210 | rm conftest.$ac_ext | ||
9211 | LIBS=$ac_func_search_save_LIBS | ||
9212 | fi | ||
9213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmt_scaled" >&5 | ||
9214 | $as_echo "$ac_cv_search_fmt_scaled" >&6; } | ||
9215 | ac_res=$ac_cv_search_fmt_scaled | ||
9216 | if test "$ac_res" != no; then : | ||
9217 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9218 | |||
9219 | fi | ||
9220 | |||
9221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing scan_scaled" >&5 | ||
9222 | $as_echo_n "checking for library containing scan_scaled... " >&6; } | ||
9223 | if ${ac_cv_search_scan_scaled+:} false; then : | ||
9224 | $as_echo_n "(cached) " >&6 | ||
9225 | else | ||
9226 | ac_func_search_save_LIBS=$LIBS | ||
9227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9228 | /* end confdefs.h. */ | ||
9229 | |||
9230 | /* Override any GCC internal prototype to avoid an error. | ||
9231 | Use char because int might match the return type of a GCC | ||
9232 | builtin and then its argument prototype would still apply. */ | ||
9233 | #ifdef __cplusplus | ||
9234 | extern "C" | ||
9235 | #endif | ||
9236 | char scan_scaled (); | ||
9237 | int | ||
9238 | main () | ||
9239 | { | ||
9240 | return scan_scaled (); | ||
9241 | ; | ||
9242 | return 0; | ||
9243 | } | ||
9244 | _ACEOF | ||
9245 | for ac_lib in '' util bsd; do | ||
9246 | if test -z "$ac_lib"; then | ||
9247 | ac_res="none required" | ||
9248 | else | ||
9249 | ac_res=-l$ac_lib | ||
9250 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9251 | fi | ||
9252 | if ac_fn_c_try_link "$LINENO"; then : | ||
9253 | ac_cv_search_scan_scaled=$ac_res | ||
9254 | fi | ||
9255 | rm -f core conftest.err conftest.$ac_objext \ | ||
9256 | conftest$ac_exeext | ||
9257 | if ${ac_cv_search_scan_scaled+:} false; then : | ||
9258 | break | ||
9259 | fi | ||
9260 | done | ||
9261 | if ${ac_cv_search_scan_scaled+:} false; then : | ||
9262 | |||
9263 | else | ||
9264 | ac_cv_search_scan_scaled=no | ||
9265 | fi | ||
9266 | rm conftest.$ac_ext | ||
9267 | LIBS=$ac_func_search_save_LIBS | ||
9268 | fi | ||
9269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_scan_scaled" >&5 | ||
9270 | $as_echo "$ac_cv_search_scan_scaled" >&6; } | ||
9271 | ac_res=$ac_cv_search_scan_scaled | ||
9272 | if test "$ac_res" != no; then : | ||
9273 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9274 | |||
9275 | fi | ||
9276 | |||
9277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5 | ||
9278 | $as_echo_n "checking for library containing login... " >&6; } | ||
9279 | if ${ac_cv_search_login+:} false; then : | ||
9280 | $as_echo_n "(cached) " >&6 | ||
9281 | else | ||
9282 | ac_func_search_save_LIBS=$LIBS | ||
9283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9284 | /* end confdefs.h. */ | ||
9285 | |||
9286 | /* Override any GCC internal prototype to avoid an error. | ||
9287 | Use char because int might match the return type of a GCC | ||
9288 | builtin and then its argument prototype would still apply. */ | ||
9289 | #ifdef __cplusplus | ||
9290 | extern "C" | ||
9291 | #endif | ||
9292 | char login (); | ||
9293 | int | ||
9294 | main () | ||
9295 | { | ||
9296 | return login (); | ||
9297 | ; | ||
9298 | return 0; | ||
9299 | } | ||
9300 | _ACEOF | ||
9301 | for ac_lib in '' util bsd; do | ||
9302 | if test -z "$ac_lib"; then | ||
9303 | ac_res="none required" | ||
9304 | else | ||
9305 | ac_res=-l$ac_lib | ||
9306 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9307 | fi | ||
9308 | if ac_fn_c_try_link "$LINENO"; then : | ||
9309 | ac_cv_search_login=$ac_res | ||
9310 | fi | ||
9311 | rm -f core conftest.err conftest.$ac_objext \ | ||
9312 | conftest$ac_exeext | ||
9313 | if ${ac_cv_search_login+:} false; then : | ||
9314 | break | ||
9315 | fi | ||
9316 | done | ||
9317 | if ${ac_cv_search_login+:} false; then : | ||
9318 | |||
9319 | else | ||
9320 | ac_cv_search_login=no | ||
9321 | fi | ||
9322 | rm conftest.$ac_ext | ||
9323 | LIBS=$ac_func_search_save_LIBS | ||
9324 | fi | ||
9325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5 | ||
9326 | $as_echo "$ac_cv_search_login" >&6; } | ||
9327 | ac_res=$ac_cv_search_login | ||
9328 | if test "$ac_res" != no; then : | ||
9329 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9330 | |||
9331 | fi | ||
9332 | |||
9333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logout" >&5 | ||
9334 | $as_echo_n "checking for library containing logout... " >&6; } | ||
9335 | if ${ac_cv_search_logout+:} false; then : | ||
9336 | $as_echo_n "(cached) " >&6 | ||
9337 | else | ||
9338 | ac_func_search_save_LIBS=$LIBS | ||
9339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9340 | /* end confdefs.h. */ | ||
9341 | |||
9342 | /* Override any GCC internal prototype to avoid an error. | ||
9343 | Use char because int might match the return type of a GCC | ||
9344 | builtin and then its argument prototype would still apply. */ | ||
9345 | #ifdef __cplusplus | ||
9346 | extern "C" | ||
9347 | #endif | ||
9348 | char logout (); | ||
9349 | int | ||
9350 | main () | ||
9351 | { | ||
9352 | return logout (); | ||
9353 | ; | ||
9354 | return 0; | ||
9355 | } | ||
9356 | _ACEOF | ||
9357 | for ac_lib in '' util bsd; do | ||
9358 | if test -z "$ac_lib"; then | ||
9359 | ac_res="none required" | ||
9360 | else | ||
9361 | ac_res=-l$ac_lib | ||
9362 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9363 | fi | ||
9364 | if ac_fn_c_try_link "$LINENO"; then : | ||
9365 | ac_cv_search_logout=$ac_res | ||
9366 | fi | ||
9367 | rm -f core conftest.err conftest.$ac_objext \ | ||
9368 | conftest$ac_exeext | ||
9369 | if ${ac_cv_search_logout+:} false; then : | ||
9370 | break | ||
9371 | fi | ||
9372 | done | ||
9373 | if ${ac_cv_search_logout+:} false; then : | ||
9374 | |||
9375 | else | ||
9376 | ac_cv_search_logout=no | ||
9377 | fi | ||
9378 | rm conftest.$ac_ext | ||
9379 | LIBS=$ac_func_search_save_LIBS | ||
9380 | fi | ||
9381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logout" >&5 | ||
9382 | $as_echo "$ac_cv_search_logout" >&6; } | ||
9383 | ac_res=$ac_cv_search_logout | ||
9384 | if test "$ac_res" != no; then : | ||
9385 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9386 | |||
9387 | fi | ||
9388 | |||
9389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logwtmp" >&5 | ||
9390 | $as_echo_n "checking for library containing logwtmp... " >&6; } | ||
9391 | if ${ac_cv_search_logwtmp+:} false; then : | ||
9392 | $as_echo_n "(cached) " >&6 | ||
9393 | else | ||
9394 | ac_func_search_save_LIBS=$LIBS | ||
9395 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9396 | /* end confdefs.h. */ | ||
9397 | |||
9398 | /* Override any GCC internal prototype to avoid an error. | ||
9399 | Use char because int might match the return type of a GCC | ||
9400 | builtin and then its argument prototype would still apply. */ | ||
9401 | #ifdef __cplusplus | ||
9402 | extern "C" | ||
9403 | #endif | ||
9404 | char logwtmp (); | ||
9405 | int | ||
9406 | main () | ||
9407 | { | ||
9408 | return logwtmp (); | ||
9409 | ; | ||
9410 | return 0; | ||
9411 | } | ||
9412 | _ACEOF | ||
9413 | for ac_lib in '' util bsd; do | ||
9414 | if test -z "$ac_lib"; then | ||
9415 | ac_res="none required" | ||
9416 | else | ||
9417 | ac_res=-l$ac_lib | ||
9418 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9419 | fi | ||
9420 | if ac_fn_c_try_link "$LINENO"; then : | ||
9421 | ac_cv_search_logwtmp=$ac_res | ||
9422 | fi | ||
9423 | rm -f core conftest.err conftest.$ac_objext \ | ||
9424 | conftest$ac_exeext | ||
9425 | if ${ac_cv_search_logwtmp+:} false; then : | ||
9426 | break | ||
9427 | fi | ||
9428 | done | ||
9429 | if ${ac_cv_search_logwtmp+:} false; then : | ||
9430 | |||
9431 | else | ||
9432 | ac_cv_search_logwtmp=no | ||
9433 | fi | ||
9434 | rm conftest.$ac_ext | ||
9435 | LIBS=$ac_func_search_save_LIBS | ||
9436 | fi | ||
9437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logwtmp" >&5 | ||
9438 | $as_echo "$ac_cv_search_logwtmp" >&6; } | ||
9439 | ac_res=$ac_cv_search_logwtmp | ||
9440 | if test "$ac_res" != no; then : | ||
9441 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9442 | |||
9443 | fi | ||
9444 | |||
9445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 | ||
9446 | $as_echo_n "checking for library containing openpty... " >&6; } | ||
9447 | if ${ac_cv_search_openpty+:} false; then : | ||
9448 | $as_echo_n "(cached) " >&6 | ||
9449 | else | ||
9450 | ac_func_search_save_LIBS=$LIBS | ||
9451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9452 | /* end confdefs.h. */ | ||
9453 | |||
9454 | /* Override any GCC internal prototype to avoid an error. | ||
9455 | Use char because int might match the return type of a GCC | ||
9456 | builtin and then its argument prototype would still apply. */ | ||
9457 | #ifdef __cplusplus | ||
9458 | extern "C" | ||
9459 | #endif | ||
9460 | char openpty (); | ||
9461 | int | ||
9462 | main () | ||
9463 | { | ||
9464 | return openpty (); | ||
9465 | ; | ||
9466 | return 0; | ||
9467 | } | ||
9468 | _ACEOF | ||
9469 | for ac_lib in '' util bsd; do | ||
9470 | if test -z "$ac_lib"; then | ||
9471 | ac_res="none required" | ||
9472 | else | ||
9473 | ac_res=-l$ac_lib | ||
9474 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9475 | fi | ||
9476 | if ac_fn_c_try_link "$LINENO"; then : | ||
9477 | ac_cv_search_openpty=$ac_res | ||
9478 | fi | ||
9479 | rm -f core conftest.err conftest.$ac_objext \ | ||
9480 | conftest$ac_exeext | ||
9481 | if ${ac_cv_search_openpty+:} false; then : | ||
9482 | break | ||
9483 | fi | ||
9484 | done | ||
9485 | if ${ac_cv_search_openpty+:} false; then : | ||
9486 | |||
9487 | else | ||
9488 | ac_cv_search_openpty=no | ||
9489 | fi | ||
9490 | rm conftest.$ac_ext | ||
9491 | LIBS=$ac_func_search_save_LIBS | ||
9492 | fi | ||
9493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 | ||
9494 | $as_echo "$ac_cv_search_openpty" >&6; } | ||
9495 | ac_res=$ac_cv_search_openpty | ||
9496 | if test "$ac_res" != no; then : | ||
9497 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9498 | |||
9499 | fi | ||
9500 | |||
9501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing updwtmp" >&5 | ||
9502 | $as_echo_n "checking for library containing updwtmp... " >&6; } | ||
9503 | if ${ac_cv_search_updwtmp+:} false; then : | ||
9504 | $as_echo_n "(cached) " >&6 | ||
9505 | else | ||
9506 | ac_func_search_save_LIBS=$LIBS | ||
9507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9508 | /* end confdefs.h. */ | ||
9509 | |||
9510 | /* Override any GCC internal prototype to avoid an error. | ||
9511 | Use char because int might match the return type of a GCC | ||
9512 | builtin and then its argument prototype would still apply. */ | ||
9513 | #ifdef __cplusplus | ||
9514 | extern "C" | ||
9515 | #endif | ||
9516 | char updwtmp (); | ||
9517 | int | ||
9518 | main () | ||
9519 | { | ||
9520 | return updwtmp (); | ||
9521 | ; | ||
9522 | return 0; | ||
9523 | } | ||
9524 | _ACEOF | ||
9525 | for ac_lib in '' util bsd; do | ||
9526 | if test -z "$ac_lib"; then | ||
9527 | ac_res="none required" | ||
9528 | else | ||
9529 | ac_res=-l$ac_lib | ||
9530 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9531 | fi | ||
9532 | if ac_fn_c_try_link "$LINENO"; then : | ||
9533 | ac_cv_search_updwtmp=$ac_res | ||
9534 | fi | ||
9535 | rm -f core conftest.err conftest.$ac_objext \ | ||
9536 | conftest$ac_exeext | ||
9537 | if ${ac_cv_search_updwtmp+:} false; then : | ||
9538 | break | ||
9539 | fi | ||
9540 | done | ||
9541 | if ${ac_cv_search_updwtmp+:} false; then : | ||
9542 | |||
9543 | else | ||
9544 | ac_cv_search_updwtmp=no | ||
9545 | fi | ||
9546 | rm conftest.$ac_ext | ||
9547 | LIBS=$ac_func_search_save_LIBS | ||
9548 | fi | ||
9549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_updwtmp" >&5 | ||
9550 | $as_echo "$ac_cv_search_updwtmp" >&6; } | ||
9551 | ac_res=$ac_cv_search_updwtmp | ||
9552 | if test "$ac_res" != no; then : | ||
9553 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9554 | |||
9555 | fi | ||
9556 | |||
9557 | for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp | ||
9558 | do : | ||
9559 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9560 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
9561 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
9562 | cat >>confdefs.h <<_ACEOF | ||
9563 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9564 | _ACEOF | ||
9565 | |||
9566 | fi | ||
9567 | done | ||
9568 | |||
9569 | |||
9570 | # On some platforms, inet_ntop and gethostbyname may be found in libresolv | ||
9571 | # or libnsl. | ||
9572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 | ||
9573 | $as_echo_n "checking for library containing inet_ntop... " >&6; } | ||
9574 | if ${ac_cv_search_inet_ntop+:} false; then : | ||
9575 | $as_echo_n "(cached) " >&6 | ||
9576 | else | ||
9577 | ac_func_search_save_LIBS=$LIBS | ||
9578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9579 | /* end confdefs.h. */ | ||
9580 | |||
9581 | /* Override any GCC internal prototype to avoid an error. | ||
9582 | Use char because int might match the return type of a GCC | ||
9583 | builtin and then its argument prototype would still apply. */ | ||
9584 | #ifdef __cplusplus | ||
9585 | extern "C" | ||
9586 | #endif | ||
9587 | char inet_ntop (); | ||
9588 | int | ||
9589 | main () | ||
9590 | { | ||
9591 | return inet_ntop (); | ||
9592 | ; | ||
9593 | return 0; | ||
9594 | } | ||
9595 | _ACEOF | ||
9596 | for ac_lib in '' resolv nsl; do | ||
9597 | if test -z "$ac_lib"; then | ||
9598 | ac_res="none required" | ||
9599 | else | ||
9600 | ac_res=-l$ac_lib | ||
9601 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9602 | fi | ||
9603 | if ac_fn_c_try_link "$LINENO"; then : | ||
9604 | ac_cv_search_inet_ntop=$ac_res | ||
9605 | fi | ||
9606 | rm -f core conftest.err conftest.$ac_objext \ | ||
9607 | conftest$ac_exeext | ||
9608 | if ${ac_cv_search_inet_ntop+:} false; then : | ||
9609 | break | ||
9610 | fi | ||
9611 | done | ||
9612 | if ${ac_cv_search_inet_ntop+:} false; then : | ||
9613 | |||
9614 | else | ||
9615 | ac_cv_search_inet_ntop=no | ||
9616 | fi | ||
9617 | rm conftest.$ac_ext | ||
9618 | LIBS=$ac_func_search_save_LIBS | ||
9619 | fi | ||
9620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 | ||
9621 | $as_echo "$ac_cv_search_inet_ntop" >&6; } | ||
9622 | ac_res=$ac_cv_search_inet_ntop | ||
9623 | if test "$ac_res" != no; then : | ||
9624 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9625 | |||
9626 | fi | ||
9627 | |||
9628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 | ||
9629 | $as_echo_n "checking for library containing gethostbyname... " >&6; } | ||
9630 | if ${ac_cv_search_gethostbyname+:} false; then : | ||
9631 | $as_echo_n "(cached) " >&6 | ||
9632 | else | ||
9633 | ac_func_search_save_LIBS=$LIBS | ||
9634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9635 | /* end confdefs.h. */ | ||
9636 | |||
9637 | /* Override any GCC internal prototype to avoid an error. | ||
9638 | Use char because int might match the return type of a GCC | ||
9639 | builtin and then its argument prototype would still apply. */ | ||
9640 | #ifdef __cplusplus | ||
9641 | extern "C" | ||
9642 | #endif | ||
9643 | char gethostbyname (); | ||
9644 | int | ||
9645 | main () | ||
9646 | { | ||
9647 | return gethostbyname (); | ||
9648 | ; | ||
9649 | return 0; | ||
9650 | } | ||
9651 | _ACEOF | ||
9652 | for ac_lib in '' resolv nsl; do | ||
9653 | if test -z "$ac_lib"; then | ||
9654 | ac_res="none required" | ||
9655 | else | ||
9656 | ac_res=-l$ac_lib | ||
9657 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9658 | fi | ||
9659 | if ac_fn_c_try_link "$LINENO"; then : | ||
9660 | ac_cv_search_gethostbyname=$ac_res | ||
9661 | fi | ||
9662 | rm -f core conftest.err conftest.$ac_objext \ | ||
9663 | conftest$ac_exeext | ||
9664 | if ${ac_cv_search_gethostbyname+:} false; then : | ||
9665 | break | ||
9666 | fi | ||
9667 | done | ||
9668 | if ${ac_cv_search_gethostbyname+:} false; then : | ||
9669 | |||
9670 | else | ||
9671 | ac_cv_search_gethostbyname=no | ||
9672 | fi | ||
9673 | rm conftest.$ac_ext | ||
9674 | LIBS=$ac_func_search_save_LIBS | ||
9675 | fi | ||
9676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 | ||
9677 | $as_echo "$ac_cv_search_gethostbyname" >&6; } | ||
9678 | ac_res=$ac_cv_search_gethostbyname | ||
9679 | if test "$ac_res" != no; then : | ||
9680 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9681 | |||
9682 | fi | ||
9683 | |||
9684 | |||
9685 | # "Particular Function Checks" | ||
9686 | # see https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Particular-Functions.html | ||
9687 | for ac_func in strftime | ||
9688 | do : | ||
9689 | ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" | ||
9690 | if test "x$ac_cv_func_strftime" = xyes; then : | ||
9691 | cat >>confdefs.h <<_ACEOF | ||
9692 | #define HAVE_STRFTIME 1 | ||
9693 | _ACEOF | ||
9694 | |||
9695 | else | ||
9696 | # strftime is in -lintl on SCO UNIX. | ||
9697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 | ||
9698 | $as_echo_n "checking for strftime in -lintl... " >&6; } | ||
9699 | if ${ac_cv_lib_intl_strftime+:} false; then : | ||
9700 | $as_echo_n "(cached) " >&6 | ||
9701 | else | ||
9702 | ac_check_lib_save_LIBS=$LIBS | ||
9703 | LIBS="-lintl $LIBS" | ||
9704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9705 | /* end confdefs.h. */ | ||
9706 | |||
9707 | /* Override any GCC internal prototype to avoid an error. | ||
9708 | Use char because int might match the return type of a GCC | ||
9709 | builtin and then its argument prototype would still apply. */ | ||
9710 | #ifdef __cplusplus | ||
9711 | extern "C" | ||
9712 | #endif | ||
9713 | char strftime (); | ||
9714 | int | ||
9715 | main () | ||
9716 | { | ||
9717 | return strftime (); | ||
9718 | ; | ||
9719 | return 0; | ||
9720 | } | ||
9721 | _ACEOF | ||
9722 | if ac_fn_c_try_link "$LINENO"; then : | ||
9723 | ac_cv_lib_intl_strftime=yes | ||
9724 | else | ||
9725 | ac_cv_lib_intl_strftime=no | ||
9726 | fi | ||
9727 | rm -f core conftest.err conftest.$ac_objext \ | ||
9728 | conftest$ac_exeext conftest.$ac_ext | ||
9729 | LIBS=$ac_check_lib_save_LIBS | ||
9730 | fi | ||
9731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 | ||
9732 | $as_echo "$ac_cv_lib_intl_strftime" >&6; } | ||
9733 | if test "x$ac_cv_lib_intl_strftime" = xyes; then : | ||
9734 | $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h | ||
9735 | |||
9736 | LIBS="-lintl $LIBS" | ||
9737 | fi | ||
9738 | |||
9739 | fi | ||
9740 | done | ||
9741 | |||
9742 | for ac_header in stdlib.h | ||
9743 | do : | ||
9744 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | ||
9745 | if test "x$ac_cv_header_stdlib_h" = xyes; then : | ||
9746 | cat >>confdefs.h <<_ACEOF | ||
9747 | #define HAVE_STDLIB_H 1 | ||
9748 | _ACEOF | ||
9749 | |||
9750 | fi | ||
9751 | |||
9752 | done | ||
9753 | |||
9754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 | ||
9755 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | ||
9756 | if ${ac_cv_func_malloc_0_nonnull+:} false; then : | ||
9757 | $as_echo_n "(cached) " >&6 | ||
9758 | else | ||
9759 | if test "$cross_compiling" = yes; then : | ||
9760 | ac_cv_func_malloc_0_nonnull=no | ||
9761 | else | ||
9762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9763 | /* end confdefs.h. */ | ||
9764 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | ||
9765 | # include <stdlib.h> | ||
9766 | #else | ||
9767 | char *malloc (); | ||
9768 | #endif | ||
9769 | |||
9770 | int | ||
9771 | main () | ||
9772 | { | ||
9773 | return ! malloc (0); | ||
9774 | ; | ||
9775 | return 0; | ||
9776 | } | ||
9777 | _ACEOF | ||
9778 | if ac_fn_c_try_run "$LINENO"; then : | ||
9779 | ac_cv_func_malloc_0_nonnull=yes | ||
9780 | else | ||
9781 | ac_cv_func_malloc_0_nonnull=no | ||
9782 | fi | ||
9783 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
9784 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
9785 | fi | ||
9786 | |||
9787 | fi | ||
9788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 | ||
9789 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | ||
9790 | if test $ac_cv_func_malloc_0_nonnull = yes; then : | ||
9791 | |||
9792 | $as_echo "#define HAVE_MALLOC 1" >>confdefs.h | ||
9793 | |||
9794 | else | ||
9795 | $as_echo "#define HAVE_MALLOC 0" >>confdefs.h | ||
9796 | |||
9797 | case " $LIBOBJS " in | ||
9798 | *" malloc.$ac_objext "* ) ;; | ||
9799 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" | ||
9800 | ;; | ||
9801 | esac | ||
9802 | |||
9803 | |||
9804 | $as_echo "#define malloc rpl_malloc" >>confdefs.h | ||
9805 | |||
9806 | fi | ||
9807 | |||
9808 | |||
9809 | for ac_header in stdlib.h | ||
9810 | do : | ||
9811 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | ||
9812 | if test "x$ac_cv_header_stdlib_h" = xyes; then : | ||
9813 | cat >>confdefs.h <<_ACEOF | ||
9814 | #define HAVE_STDLIB_H 1 | ||
9815 | _ACEOF | ||
9816 | |||
9817 | fi | ||
9818 | |||
9819 | done | ||
9820 | |||
9821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 | ||
9822 | $as_echo_n "checking for GNU libc compatible realloc... " >&6; } | ||
9823 | if ${ac_cv_func_realloc_0_nonnull+:} false; then : | ||
9824 | $as_echo_n "(cached) " >&6 | ||
9825 | else | ||
9826 | if test "$cross_compiling" = yes; then : | ||
9827 | ac_cv_func_realloc_0_nonnull=no | ||
9828 | else | ||
9829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9830 | /* end confdefs.h. */ | ||
9831 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | ||
9832 | # include <stdlib.h> | ||
9833 | #else | ||
9834 | char *realloc (); | ||
9835 | #endif | ||
9836 | |||
9837 | int | ||
9838 | main () | ||
9839 | { | ||
9840 | return ! realloc (0, 0); | ||
9841 | ; | ||
9842 | return 0; | ||
9843 | } | ||
9844 | _ACEOF | ||
9845 | if ac_fn_c_try_run "$LINENO"; then : | ||
9846 | ac_cv_func_realloc_0_nonnull=yes | ||
9847 | else | ||
9848 | ac_cv_func_realloc_0_nonnull=no | ||
9849 | fi | ||
9850 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
9851 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
9852 | fi | ||
9853 | |||
9854 | fi | ||
9855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 | ||
9856 | $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } | ||
9857 | if test $ac_cv_func_realloc_0_nonnull = yes; then : | ||
9858 | |||
9859 | $as_echo "#define HAVE_REALLOC 1" >>confdefs.h | ||
9860 | |||
9861 | else | ||
9862 | $as_echo "#define HAVE_REALLOC 0" >>confdefs.h | ||
9863 | |||
9864 | case " $LIBOBJS " in | ||
9865 | *" realloc.$ac_objext "* ) ;; | ||
9866 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" | ||
9867 | ;; | ||
9868 | esac | ||
9869 | |||
9870 | |||
9871 | $as_echo "#define realloc rpl_realloc" >>confdefs.h | ||
9872 | |||
9873 | fi | ||
9874 | |||
9875 | |||
9876 | # autoconf doesn't have AC_FUNC_CALLOC so fake it if malloc returns NULL; | ||
9877 | if test "x$ac_cv_func_malloc_0_nonnull" != "xyes"; then | ||
9878 | |||
9879 | $as_echo "#define HAVE_CALLOC 0" >>confdefs.h | ||
9880 | |||
9881 | |||
9882 | $as_echo "#define calloc rpl_calloc" >>confdefs.h | ||
9883 | |||
9884 | fi | ||
9885 | |||
9886 | # Check for ALTDIRFUNC glob() extension | ||
9887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5 | ||
9888 | $as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; } | ||
9889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9890 | /* end confdefs.h. */ | ||
9891 | |||
9892 | #include <glob.h> | ||
9893 | #ifdef GLOB_ALTDIRFUNC | ||
9894 | FOUNDIT | ||
9895 | #endif | ||
9896 | |||
9897 | _ACEOF | ||
9898 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
9899 | $EGREP "FOUNDIT" >/dev/null 2>&1; then : | ||
9900 | |||
9901 | |||
9902 | $as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h | ||
9903 | |||
9904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9905 | $as_echo "yes" >&6; } | ||
9906 | |||
9907 | else | ||
9908 | |||
9909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9910 | $as_echo "no" >&6; } | ||
9911 | |||
9912 | |||
9913 | fi | ||
9914 | rm -f conftest* | ||
9915 | |||
9916 | |||
9917 | # Check for g.gl_matchc glob() extension | ||
9918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5 | ||
9919 | $as_echo_n "checking for gl_matchc field in glob_t... " >&6; } | ||
9920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9921 | /* end confdefs.h. */ | ||
9922 | #include <glob.h> | ||
9923 | int | ||
9924 | main () | ||
9925 | { | ||
9926 | glob_t g; g.gl_matchc = 1; | ||
9927 | ; | ||
9928 | return 0; | ||
9929 | } | ||
9930 | _ACEOF | ||
9931 | if ac_fn_c_try_compile "$LINENO"; then : | ||
9932 | |||
9933 | |||
9934 | $as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h | ||
9935 | |||
9936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9937 | $as_echo "yes" >&6; } | ||
9938 | |||
9939 | else | ||
9940 | |||
9941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9942 | $as_echo "no" >&6; } | ||
9943 | |||
9944 | fi | ||
9945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9946 | |||
9947 | # Check for g.gl_statv glob() extension | ||
9948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5 | ||
9949 | $as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; } | ||
9950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9951 | /* end confdefs.h. */ | ||
9952 | #include <glob.h> | ||
9953 | int | ||
9954 | main () | ||
9955 | { | ||
9956 | |||
9957 | #ifndef GLOB_KEEPSTAT | ||
9958 | #error "glob does not support GLOB_KEEPSTAT extension" | ||
9959 | #endif | ||
9960 | glob_t g; | ||
9961 | g.gl_statv = NULL; | ||
9962 | |||
9963 | ; | ||
9964 | return 0; | ||
9965 | } | ||
9966 | _ACEOF | ||
9967 | if ac_fn_c_try_compile "$LINENO"; then : | ||
9968 | |||
9969 | |||
9970 | $as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h | ||
9971 | |||
9972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9973 | $as_echo "yes" >&6; } | ||
9974 | |||
9975 | else | ||
9976 | |||
9977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9978 | $as_echo "no" >&6; } | ||
9979 | |||
9980 | |||
9981 | fi | ||
9982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9983 | |||
9984 | ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h> | ||
9985 | " | ||
9986 | if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then : | ||
9987 | ac_have_decl=1 | ||
9988 | else | ||
9989 | ac_have_decl=0 | ||
9990 | fi | ||
9991 | |||
9992 | cat >>confdefs.h <<_ACEOF | ||
9993 | #define HAVE_DECL_GLOB_NOMATCH $ac_have_decl | ||
9994 | _ACEOF | ||
9995 | |||
9996 | |||
9997 | ac_fn_c_check_decl "$LINENO" "VIS_ALL" "ac_cv_have_decl_VIS_ALL" "#include <vis.h> | ||
9998 | " | ||
9999 | if test "x$ac_cv_have_decl_VIS_ALL" = xyes; then : | ||
10000 | |||
10001 | else | ||
10002 | |||
10003 | $as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h | ||
10004 | |||
10005 | fi | ||
10006 | |||
10007 | |||
10008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5 | ||
10009 | $as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; } | ||
10010 | if test "$cross_compiling" = yes; then : | ||
10011 | |||
10012 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5 | ||
10013 | $as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;} | ||
10014 | $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h | ||
10015 | |||
10016 | |||
10017 | |||
10018 | else | ||
10019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10020 | /* end confdefs.h. */ | ||
10021 | |||
10022 | #include <sys/types.h> | ||
10023 | #include <dirent.h> | ||
10024 | int | ||
10025 | main () | ||
10026 | { | ||
10027 | |||
10028 | struct dirent d; | ||
10029 | exit(sizeof(d.d_name)<=sizeof(char)); | ||
10030 | |||
10031 | ; | ||
10032 | return 0; | ||
10033 | } | ||
10034 | _ACEOF | ||
10035 | if ac_fn_c_try_run "$LINENO"; then : | ||
10036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10037 | $as_echo "yes" >&6; } | ||
10038 | else | ||
10039 | |||
10040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10041 | $as_echo "no" >&6; } | ||
10042 | |||
10043 | $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h | ||
10044 | |||
10045 | |||
10046 | fi | ||
10047 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10048 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10049 | fi | ||
10050 | |||
10051 | |||
10052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5 | ||
10053 | $as_echo_n "checking for /proc/pid/fd directory... " >&6; } | ||
10054 | if test -d "/proc/$$/fd" ; then | ||
10055 | |||
10056 | $as_echo "#define HAVE_PROC_PID 1" >>confdefs.h | ||
10057 | |||
10058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10059 | $as_echo "yes" >&6; } | ||
10060 | else | ||
10061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10062 | $as_echo "no" >&6; } | ||
10063 | fi | ||
10064 | |||
10065 | # Check whether user wants S/Key support | ||
10066 | SKEY_MSG="no" | ||
10067 | |||
10068 | # Check whether --with-skey was given. | ||
10069 | if test "${with_skey+set}" = set; then : | ||
10070 | withval=$with_skey; | ||
10071 | if test "x$withval" != "xno" ; then | ||
10072 | |||
10073 | if test "x$withval" != "xyes" ; then | ||
10074 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
10075 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
10076 | fi | ||
10077 | |||
10078 | |||
10079 | $as_echo "#define SKEY 1" >>confdefs.h | ||
10080 | |||
10081 | LIBS="-lskey $LIBS" | ||
10082 | SKEY_MSG="yes" | ||
10083 | |||
10084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5 | ||
10085 | $as_echo_n "checking for s/key support... " >&6; } | ||
10086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10087 | /* end confdefs.h. */ | ||
10088 | |||
10089 | #include <stdio.h> | ||
10090 | #include <skey.h> | ||
10091 | |||
10092 | int | ||
10093 | main () | ||
10094 | { | ||
10095 | |||
10096 | char *ff = skey_keyinfo(""); ff=""; | ||
10097 | exit(0); | ||
10098 | |||
10099 | ; | ||
10100 | return 0; | ||
10101 | } | ||
10102 | _ACEOF | ||
10103 | if ac_fn_c_try_link "$LINENO"; then : | ||
10104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10105 | $as_echo "yes" >&6; } | ||
10106 | else | ||
10107 | |||
10108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10109 | $as_echo "no" >&6; } | ||
10110 | as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5 | ||
10111 | |||
10112 | fi | ||
10113 | rm -f core conftest.err conftest.$ac_objext \ | ||
10114 | conftest$ac_exeext conftest.$ac_ext | ||
10115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5 | ||
10116 | $as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; } | ||
10117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10118 | /* end confdefs.h. */ | ||
10119 | |||
10120 | #include <stdio.h> | ||
10121 | #include <skey.h> | ||
10122 | |||
10123 | int | ||
10124 | main () | ||
10125 | { | ||
10126 | |||
10127 | (void)skeychallenge(NULL,"name","",0); | ||
10128 | |||
10129 | ; | ||
10130 | return 0; | ||
10131 | } | ||
10132 | _ACEOF | ||
10133 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10134 | |||
10135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10136 | $as_echo "yes" >&6; } | ||
10137 | |||
10138 | $as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h | ||
10139 | |||
10140 | else | ||
10141 | |||
10142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10143 | $as_echo "no" >&6; } | ||
10144 | |||
10145 | fi | ||
10146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10147 | fi | ||
10148 | |||
10149 | |||
10150 | fi | ||
10151 | |||
10152 | |||
10153 | # Check whether user wants to use ldns | ||
10154 | LDNS_MSG="no" | ||
10155 | |||
10156 | # Check whether --with-ldns was given. | ||
10157 | if test "${with_ldns+set}" = set; then : | ||
10158 | withval=$with_ldns; | ||
10159 | ldns="" | ||
10160 | if test "x$withval" = "xyes" ; then | ||
10161 | if test -n "$ac_tool_prefix"; then | ||
10162 | # Extract the first word of "${ac_tool_prefix}ldns-config", so it can be a program name with args. | ||
10163 | set dummy ${ac_tool_prefix}ldns-config; ac_word=$2 | ||
10164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
10165 | $as_echo_n "checking for $ac_word... " >&6; } | ||
10166 | if ${ac_cv_path_LDNSCONFIG+:} false; then : | ||
10167 | $as_echo_n "(cached) " >&6 | ||
10168 | else | ||
10169 | case $LDNSCONFIG in | ||
10170 | [\\/]* | ?:[\\/]*) | ||
10171 | ac_cv_path_LDNSCONFIG="$LDNSCONFIG" # Let the user override the test with a path. | ||
10172 | ;; | ||
10173 | *) | ||
10174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10175 | for as_dir in $PATH | ||
10176 | do | ||
10177 | IFS=$as_save_IFS | ||
10178 | test -z "$as_dir" && as_dir=. | ||
10179 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10180 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
10181 | ac_cv_path_LDNSCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
10182 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10183 | break 2 | ||
10184 | fi | ||
10185 | done | ||
10186 | done | ||
10187 | IFS=$as_save_IFS | ||
10188 | |||
10189 | ;; | ||
10190 | esac | ||
10191 | fi | ||
10192 | LDNSCONFIG=$ac_cv_path_LDNSCONFIG | ||
10193 | if test -n "$LDNSCONFIG"; then | ||
10194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDNSCONFIG" >&5 | ||
10195 | $as_echo "$LDNSCONFIG" >&6; } | ||
10196 | else | ||
10197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10198 | $as_echo "no" >&6; } | ||
10199 | fi | ||
10200 | |||
10201 | |||
10202 | fi | ||
10203 | if test -z "$ac_cv_path_LDNSCONFIG"; then | ||
10204 | ac_pt_LDNSCONFIG=$LDNSCONFIG | ||
10205 | # Extract the first word of "ldns-config", so it can be a program name with args. | ||
10206 | set dummy ldns-config; ac_word=$2 | ||
10207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
10208 | $as_echo_n "checking for $ac_word... " >&6; } | ||
10209 | if ${ac_cv_path_ac_pt_LDNSCONFIG+:} false; then : | ||
10210 | $as_echo_n "(cached) " >&6 | ||
10211 | else | ||
10212 | case $ac_pt_LDNSCONFIG in | ||
10213 | [\\/]* | ?:[\\/]*) | ||
10214 | ac_cv_path_ac_pt_LDNSCONFIG="$ac_pt_LDNSCONFIG" # Let the user override the test with a path. | ||
10215 | ;; | ||
10216 | *) | ||
10217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10218 | for as_dir in $PATH | ||
10219 | do | ||
10220 | IFS=$as_save_IFS | ||
10221 | test -z "$as_dir" && as_dir=. | ||
10222 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10223 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
10224 | ac_cv_path_ac_pt_LDNSCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
10225 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10226 | break 2 | ||
10227 | fi | ||
10228 | done | ||
10229 | done | ||
10230 | IFS=$as_save_IFS | ||
10231 | |||
10232 | ;; | ||
10233 | esac | ||
10234 | fi | ||
10235 | ac_pt_LDNSCONFIG=$ac_cv_path_ac_pt_LDNSCONFIG | ||
10236 | if test -n "$ac_pt_LDNSCONFIG"; then | ||
10237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LDNSCONFIG" >&5 | ||
10238 | $as_echo "$ac_pt_LDNSCONFIG" >&6; } | ||
10239 | else | ||
10240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10241 | $as_echo "no" >&6; } | ||
10242 | fi | ||
10243 | |||
10244 | if test "x$ac_pt_LDNSCONFIG" = x; then | ||
10245 | LDNSCONFIG="no" | ||
10246 | else | ||
10247 | case $cross_compiling:$ac_tool_warned in | ||
10248 | yes:) | ||
10249 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
10250 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
10251 | ac_tool_warned=yes ;; | ||
10252 | esac | ||
10253 | LDNSCONFIG=$ac_pt_LDNSCONFIG | ||
10254 | fi | ||
10255 | else | ||
10256 | LDNSCONFIG="$ac_cv_path_LDNSCONFIG" | ||
10257 | fi | ||
10258 | |||
10259 | if test "x$PKGCONFIG" = "xno"; then | ||
10260 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
10261 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
10262 | LIBS="-lldns $LIBS" | ||
10263 | ldns=yes | ||
10264 | else | ||
10265 | LIBS="$LIBS `$LDNSCONFIG --libs`" | ||
10266 | CPPFLAGS="$CPPFLAGS `$LDNSCONFIG --cflags`" | ||
10267 | ldns=yes | ||
10268 | fi | ||
10269 | elif test "x$withval" != "xno" ; then | ||
10270 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
10271 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
10272 | LIBS="-lldns $LIBS" | ||
10273 | ldns=yes | ||
10274 | fi | ||
10275 | |||
10276 | # Verify that it works. | ||
10277 | if test "x$ldns" = "xyes" ; then | ||
10278 | |||
10279 | $as_echo "#define HAVE_LDNS 1" >>confdefs.h | ||
10280 | |||
10281 | LDNS_MSG="yes" | ||
10282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns support" >&5 | ||
10283 | $as_echo_n "checking for ldns support... " >&6; } | ||
10284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10285 | /* end confdefs.h. */ | ||
10286 | |||
10287 | #include <stdio.h> | ||
10288 | #include <stdlib.h> | ||
10289 | #include <stdint.h> | ||
10290 | #include <ldns/ldns.h> | ||
10291 | int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); } | ||
10292 | |||
10293 | |||
10294 | _ACEOF | ||
10295 | if ac_fn_c_try_link "$LINENO"; then : | ||
10296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10297 | $as_echo "yes" >&6; } | ||
10298 | else | ||
10299 | |||
10300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10301 | $as_echo "no" >&6; } | ||
10302 | as_fn_error $? "** Incomplete or missing ldns libraries." "$LINENO" 5 | ||
10303 | |||
10304 | fi | ||
10305 | rm -f core conftest.err conftest.$ac_objext \ | ||
10306 | conftest$ac_exeext conftest.$ac_ext | ||
10307 | fi | ||
10308 | |||
10309 | fi | ||
10310 | |||
10311 | |||
10312 | # Check whether user wants libedit support | ||
10313 | LIBEDIT_MSG="no" | ||
10314 | |||
10315 | # Check whether --with-libedit was given. | ||
10316 | if test "${with_libedit+set}" = set; then : | ||
10317 | withval=$with_libedit; if test "x$withval" != "xno" ; then | ||
10318 | if test "x$withval" = "xyes" ; then | ||
10319 | if test -n "$ac_tool_prefix"; then | ||
10320 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
10321 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
10322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
10323 | $as_echo_n "checking for $ac_word... " >&6; } | ||
10324 | if ${ac_cv_path_PKGCONFIG+:} false; then : | ||
10325 | $as_echo_n "(cached) " >&6 | ||
10326 | else | ||
10327 | case $PKGCONFIG in | ||
10328 | [\\/]* | ?:[\\/]*) | ||
10329 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. | ||
10330 | ;; | ||
10331 | *) | ||
10332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10333 | for as_dir in $PATH | ||
10334 | do | ||
10335 | IFS=$as_save_IFS | ||
10336 | test -z "$as_dir" && as_dir=. | ||
10337 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10338 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
10339 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
10340 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10341 | break 2 | ||
10342 | fi | ||
10343 | done | ||
10344 | done | ||
10345 | IFS=$as_save_IFS | ||
10346 | |||
10347 | ;; | ||
10348 | esac | ||
10349 | fi | ||
10350 | PKGCONFIG=$ac_cv_path_PKGCONFIG | ||
10351 | if test -n "$PKGCONFIG"; then | ||
10352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 | ||
10353 | $as_echo "$PKGCONFIG" >&6; } | ||
10354 | else | ||
10355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10356 | $as_echo "no" >&6; } | ||
10357 | fi | ||
10358 | |||
10359 | |||
10360 | fi | ||
10361 | if test -z "$ac_cv_path_PKGCONFIG"; then | ||
10362 | ac_pt_PKGCONFIG=$PKGCONFIG | ||
10363 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
10364 | set dummy pkg-config; ac_word=$2 | ||
10365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
10366 | $as_echo_n "checking for $ac_word... " >&6; } | ||
10367 | if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : | ||
10368 | $as_echo_n "(cached) " >&6 | ||
10369 | else | ||
10370 | case $ac_pt_PKGCONFIG in | ||
10371 | [\\/]* | ?:[\\/]*) | ||
10372 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. | ||
10373 | ;; | ||
10374 | *) | ||
10375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
10376 | for as_dir in $PATH | ||
10377 | do | ||
10378 | IFS=$as_save_IFS | ||
10379 | test -z "$as_dir" && as_dir=. | ||
10380 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
10381 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
10382 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
10383 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
10384 | break 2 | ||
10385 | fi | ||
10386 | done | ||
10387 | done | ||
10388 | IFS=$as_save_IFS | ||
10389 | |||
10390 | ;; | ||
10391 | esac | ||
10392 | fi | ||
10393 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG | ||
10394 | if test -n "$ac_pt_PKGCONFIG"; then | ||
10395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 | ||
10396 | $as_echo "$ac_pt_PKGCONFIG" >&6; } | ||
10397 | else | ||
10398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10399 | $as_echo "no" >&6; } | ||
10400 | fi | ||
10401 | |||
10402 | if test "x$ac_pt_PKGCONFIG" = x; then | ||
10403 | PKGCONFIG="no" | ||
10404 | else | ||
10405 | case $cross_compiling:$ac_tool_warned in | ||
10406 | yes:) | ||
10407 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
10408 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
10409 | ac_tool_warned=yes ;; | ||
10410 | esac | ||
10411 | PKGCONFIG=$ac_pt_PKGCONFIG | ||
10412 | fi | ||
10413 | else | ||
10414 | PKGCONFIG="$ac_cv_path_PKGCONFIG" | ||
10415 | fi | ||
10416 | |||
10417 | if test "x$PKGCONFIG" != "xno"; then | ||
10418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5 | ||
10419 | $as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; } | ||
10420 | if "$PKGCONFIG" libedit; then | ||
10421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10422 | $as_echo "yes" >&6; } | ||
10423 | use_pkgconfig_for_libedit=yes | ||
10424 | else | ||
10425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10426 | $as_echo "no" >&6; } | ||
10427 | fi | ||
10428 | fi | ||
10429 | else | ||
10430 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
10431 | if test -n "${need_dash_r}"; then | ||
10432 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
10433 | else | ||
10434 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
10435 | fi | ||
10436 | fi | ||
10437 | if test "x$use_pkgconfig_for_libedit" = "xyes"; then | ||
10438 | LIBEDIT=`$PKGCONFIG --libs libedit` | ||
10439 | CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`" | ||
10440 | else | ||
10441 | LIBEDIT="-ledit -lcurses" | ||
10442 | fi | ||
10443 | OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'` | ||
10444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5 | ||
10445 | $as_echo_n "checking for el_init in -ledit... " >&6; } | ||
10446 | if ${ac_cv_lib_edit_el_init+:} false; then : | ||
10447 | $as_echo_n "(cached) " >&6 | ||
10448 | else | ||
10449 | ac_check_lib_save_LIBS=$LIBS | ||
10450 | LIBS="-ledit $OTHERLIBS | ||
10451 | $LIBS" | ||
10452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10453 | /* end confdefs.h. */ | ||
10454 | |||
10455 | /* Override any GCC internal prototype to avoid an error. | ||
10456 | Use char because int might match the return type of a GCC | ||
10457 | builtin and then its argument prototype would still apply. */ | ||
10458 | #ifdef __cplusplus | ||
10459 | extern "C" | ||
10460 | #endif | ||
10461 | char el_init (); | ||
10462 | int | ||
10463 | main () | ||
10464 | { | ||
10465 | return el_init (); | ||
10466 | ; | ||
10467 | return 0; | ||
10468 | } | ||
10469 | _ACEOF | ||
10470 | if ac_fn_c_try_link "$LINENO"; then : | ||
10471 | ac_cv_lib_edit_el_init=yes | ||
10472 | else | ||
10473 | ac_cv_lib_edit_el_init=no | ||
10474 | fi | ||
10475 | rm -f core conftest.err conftest.$ac_objext \ | ||
10476 | conftest$ac_exeext conftest.$ac_ext | ||
10477 | LIBS=$ac_check_lib_save_LIBS | ||
10478 | fi | ||
10479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5 | ||
10480 | $as_echo "$ac_cv_lib_edit_el_init" >&6; } | ||
10481 | if test "x$ac_cv_lib_edit_el_init" = xyes; then : | ||
10482 | |||
10483 | $as_echo "#define USE_LIBEDIT 1" >>confdefs.h | ||
10484 | |||
10485 | LIBEDIT_MSG="yes" | ||
10486 | |||
10487 | |||
10488 | else | ||
10489 | as_fn_error $? "libedit not found" "$LINENO" 5 | ||
10490 | fi | ||
10491 | |||
10492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5 | ||
10493 | $as_echo_n "checking if libedit version is compatible... " >&6; } | ||
10494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10495 | /* end confdefs.h. */ | ||
10496 | #include <histedit.h> | ||
10497 | int | ||
10498 | main () | ||
10499 | { | ||
10500 | |||
10501 | int i = H_SETSIZE; | ||
10502 | el_init("", NULL, NULL, NULL); | ||
10503 | exit(0); | ||
10504 | |||
10505 | ; | ||
10506 | return 0; | ||
10507 | } | ||
10508 | _ACEOF | ||
10509 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10511 | $as_echo "yes" >&6; } | ||
10512 | else | ||
10513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10514 | $as_echo "no" >&6; } | ||
10515 | as_fn_error $? "libedit version is not compatible" "$LINENO" 5 | ||
10516 | |||
10517 | fi | ||
10518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10519 | fi | ||
10520 | |||
10521 | fi | ||
10522 | |||
10523 | |||
10524 | AUDIT_MODULE=none | ||
10525 | |||
10526 | # Check whether --with-audit was given. | ||
10527 | if test "${with_audit+set}" = set; then : | ||
10528 | withval=$with_audit; | ||
10529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5 | ||
10530 | $as_echo_n "checking for supported audit module... " >&6; } | ||
10531 | case "$withval" in | ||
10532 | bsm) | ||
10533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5 | ||
10534 | $as_echo "bsm" >&6; } | ||
10535 | AUDIT_MODULE=bsm | ||
10536 | for ac_header in bsm/audit.h | ||
10537 | do : | ||
10538 | ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" " | ||
10539 | #ifdef HAVE_TIME_H | ||
10540 | # include <time.h> | ||
10541 | #endif | ||
10542 | |||
10543 | |||
10544 | " | ||
10545 | if test "x$ac_cv_header_bsm_audit_h" = xyes; then : | ||
10546 | cat >>confdefs.h <<_ACEOF | ||
10547 | #define HAVE_BSM_AUDIT_H 1 | ||
10548 | _ACEOF | ||
10549 | |||
10550 | else | ||
10551 | as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5 | ||
10552 | fi | ||
10553 | |||
10554 | done | ||
10555 | |||
10556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5 | ||
10557 | $as_echo_n "checking for getaudit in -lbsm... " >&6; } | ||
10558 | if ${ac_cv_lib_bsm_getaudit+:} false; then : | ||
10559 | $as_echo_n "(cached) " >&6 | ||
10560 | else | ||
10561 | ac_check_lib_save_LIBS=$LIBS | ||
10562 | LIBS="-lbsm $LIBS" | ||
10563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10564 | /* end confdefs.h. */ | ||
10565 | |||
10566 | /* Override any GCC internal prototype to avoid an error. | ||
10567 | Use char because int might match the return type of a GCC | ||
10568 | builtin and then its argument prototype would still apply. */ | ||
10569 | #ifdef __cplusplus | ||
10570 | extern "C" | ||
10571 | #endif | ||
10572 | char getaudit (); | ||
10573 | int | ||
10574 | main () | ||
10575 | { | ||
10576 | return getaudit (); | ||
10577 | ; | ||
10578 | return 0; | ||
10579 | } | ||
10580 | _ACEOF | ||
10581 | if ac_fn_c_try_link "$LINENO"; then : | ||
10582 | ac_cv_lib_bsm_getaudit=yes | ||
10583 | else | ||
10584 | ac_cv_lib_bsm_getaudit=no | ||
10585 | fi | ||
10586 | rm -f core conftest.err conftest.$ac_objext \ | ||
10587 | conftest$ac_exeext conftest.$ac_ext | ||
10588 | LIBS=$ac_check_lib_save_LIBS | ||
10589 | fi | ||
10590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5 | ||
10591 | $as_echo "$ac_cv_lib_bsm_getaudit" >&6; } | ||
10592 | if test "x$ac_cv_lib_bsm_getaudit" = xyes; then : | ||
10593 | cat >>confdefs.h <<_ACEOF | ||
10594 | #define HAVE_LIBBSM 1 | ||
10595 | _ACEOF | ||
10596 | |||
10597 | LIBS="-lbsm $LIBS" | ||
10598 | |||
10599 | else | ||
10600 | as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5 | ||
10601 | fi | ||
10602 | |||
10603 | for ac_func in getaudit | ||
10604 | do : | ||
10605 | ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit" | ||
10606 | if test "x$ac_cv_func_getaudit" = xyes; then : | ||
10607 | cat >>confdefs.h <<_ACEOF | ||
10608 | #define HAVE_GETAUDIT 1 | ||
10609 | _ACEOF | ||
10610 | |||
10611 | else | ||
10612 | as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5 | ||
10613 | fi | ||
10614 | done | ||
10615 | |||
10616 | # These are optional | ||
10617 | for ac_func in getaudit_addr aug_get_machine | ||
10618 | do : | ||
10619 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10620 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
10621 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
10622 | cat >>confdefs.h <<_ACEOF | ||
10623 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10624 | _ACEOF | ||
10625 | |||
10626 | fi | ||
10627 | done | ||
10628 | |||
10629 | |||
10630 | $as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h | ||
10631 | |||
10632 | if test "$sol2ver" -ge 11; then | ||
10633 | SSHDLIBS="$SSHDLIBS -lscf" | ||
10634 | |||
10635 | $as_echo "#define BROKEN_BSM_API 1" >>confdefs.h | ||
10636 | |||
10637 | fi | ||
10638 | ;; | ||
10639 | linux) | ||
10640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5 | ||
10641 | $as_echo "linux" >&6; } | ||
10642 | AUDIT_MODULE=linux | ||
10643 | for ac_header in libaudit.h | ||
10644 | do : | ||
10645 | ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default" | ||
10646 | if test "x$ac_cv_header_libaudit_h" = xyes; then : | ||
10647 | cat >>confdefs.h <<_ACEOF | ||
10648 | #define HAVE_LIBAUDIT_H 1 | ||
10649 | _ACEOF | ||
10650 | |||
10651 | fi | ||
10652 | |||
10653 | done | ||
10654 | |||
10655 | SSHDLIBS="$SSHDLIBS -laudit" | ||
10656 | |||
10657 | $as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h | ||
10658 | |||
10659 | ;; | ||
10660 | debug) | ||
10661 | AUDIT_MODULE=debug | ||
10662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5 | ||
10663 | $as_echo "debug" >&6; } | ||
10664 | |||
10665 | $as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h | ||
10666 | |||
10667 | ;; | ||
10668 | no) | ||
10669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10670 | $as_echo "no" >&6; } | ||
10671 | ;; | ||
10672 | *) | ||
10673 | as_fn_error $? "Unknown audit module $withval" "$LINENO" 5 | ||
10674 | ;; | ||
10675 | esac | ||
10676 | |||
10677 | fi | ||
10678 | |||
10679 | |||
10680 | |||
10681 | # Check whether --with-pie was given. | ||
10682 | if test "${with_pie+set}" = set; then : | ||
10683 | withval=$with_pie; | ||
10684 | if test "x$withval" = "xno"; then | ||
10685 | use_pie=no | ||
10686 | fi | ||
10687 | if test "x$withval" = "xyes"; then | ||
10688 | use_pie=yes | ||
10689 | fi | ||
10690 | |||
10691 | |||
10692 | fi | ||
10693 | |||
10694 | if test "x$use_pie" = "x"; then | ||
10695 | use_pie=no | ||
10696 | fi | ||
10697 | if test "x$use_toolchain_hardening" != "x1" && test "x$use_pie" = "xauto"; then | ||
10698 | # Turn off automatic PIE when toolchain hardening is off. | ||
10699 | use_pie=no | ||
10700 | fi | ||
10701 | if test "x$use_pie" = "xauto"; then | ||
10702 | # Automatic PIE requires gcc >= 4.x | ||
10703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.x" >&5 | ||
10704 | $as_echo_n "checking for gcc >= 4.x... " >&6; } | ||
10705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10706 | /* end confdefs.h. */ | ||
10707 | |||
10708 | #if !defined(__GNUC__) || __GNUC__ < 4 | ||
10709 | #error gcc is too old | ||
10710 | #endif | ||
10711 | |||
10712 | _ACEOF | ||
10713 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10715 | $as_echo "yes" >&6; } | ||
10716 | else | ||
10717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10718 | $as_echo "no" >&6; } | ||
10719 | use_pie=no | ||
10720 | |||
10721 | fi | ||
10722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10723 | fi | ||
10724 | if test "x$use_pie" != "xno"; then | ||
10725 | SAVED_CFLAGS="$CFLAGS" | ||
10726 | SAVED_LDFLAGS="$LDFLAGS" | ||
10727 | { | ||
10728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fPIE" >&5 | ||
10729 | $as_echo_n "checking if $CC supports compile flag -fPIE... " >&6; } | ||
10730 | saved_CFLAGS="$CFLAGS" | ||
10731 | CFLAGS="$CFLAGS $WERROR -fPIE" | ||
10732 | _define_flag="" | ||
10733 | test "x$_define_flag" = "x" && _define_flag="-fPIE" | ||
10734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10735 | /* end confdefs.h. */ | ||
10736 | |||
10737 | #include <stdlib.h> | ||
10738 | #include <stdio.h> | ||
10739 | int main(int argc, char **argv) { | ||
10740 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
10741 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
10742 | float l = i * 2.1; | ||
10743 | double m = l / 0.5; | ||
10744 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
10745 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
10746 | exit(0); | ||
10747 | } | ||
10748 | |||
10749 | _ACEOF | ||
10750 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10751 | |||
10752 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
10753 | then | ||
10754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10755 | $as_echo "no" >&6; } | ||
10756 | CFLAGS="$saved_CFLAGS" | ||
10757 | else | ||
10758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10759 | $as_echo "yes" >&6; } | ||
10760 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
10761 | fi | ||
10762 | else | ||
10763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10764 | $as_echo "no" >&6; } | ||
10765 | CFLAGS="$saved_CFLAGS" | ||
10766 | |||
10767 | fi | ||
10768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10769 | } | ||
10770 | { | ||
10771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -pie" >&5 | ||
10772 | $as_echo_n "checking if $LD supports link flag -pie... " >&6; } | ||
10773 | saved_LDFLAGS="$LDFLAGS" | ||
10774 | LDFLAGS="$LDFLAGS $WERROR -pie" | ||
10775 | _define_flag="" | ||
10776 | test "x$_define_flag" = "x" && _define_flag="-pie" | ||
10777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10778 | /* end confdefs.h. */ | ||
10779 | |||
10780 | #include <stdlib.h> | ||
10781 | #include <stdio.h> | ||
10782 | int main(int argc, char **argv) { | ||
10783 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
10784 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
10785 | float l = i * 2.1; | ||
10786 | double m = l / 0.5; | ||
10787 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
10788 | long long p = n * o; | ||
10789 | printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); | ||
10790 | exit(0); | ||
10791 | } | ||
10792 | |||
10793 | _ACEOF | ||
10794 | if ac_fn_c_try_link "$LINENO"; then : | ||
10795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10796 | $as_echo "yes" >&6; } | ||
10797 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
10798 | else | ||
10799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10800 | $as_echo "no" >&6; } | ||
10801 | LDFLAGS="$saved_LDFLAGS" | ||
10802 | |||
10803 | fi | ||
10804 | rm -f core conftest.err conftest.$ac_objext \ | ||
10805 | conftest$ac_exeext conftest.$ac_ext | ||
10806 | } | ||
10807 | # We use both -fPIE and -pie or neither. | ||
10808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether both -fPIE and -pie are supported" >&5 | ||
10809 | $as_echo_n "checking whether both -fPIE and -pie are supported... " >&6; } | ||
10810 | if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \ | ||
10811 | echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then | ||
10812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10813 | $as_echo "yes" >&6; } | ||
10814 | else | ||
10815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10816 | $as_echo "no" >&6; } | ||
10817 | CFLAGS="$SAVED_CFLAGS" | ||
10818 | LDFLAGS="$SAVED_LDFLAGS" | ||
10819 | fi | ||
10820 | fi | ||
10821 | |||
10822 | for ac_func in \ | ||
10823 | Blowfish_initstate \ | ||
10824 | Blowfish_expandstate \ | ||
10825 | Blowfish_expand0state \ | ||
10826 | Blowfish_stream2word \ | ||
10827 | asprintf \ | ||
10828 | b64_ntop \ | ||
10829 | __b64_ntop \ | ||
10830 | b64_pton \ | ||
10831 | __b64_pton \ | ||
10832 | bcopy \ | ||
10833 | bcrypt_pbkdf \ | ||
10834 | bindresvport_sa \ | ||
10835 | blf_enc \ | ||
10836 | cap_rights_limit \ | ||
10837 | clock \ | ||
10838 | closefrom \ | ||
10839 | dirfd \ | ||
10840 | endgrent \ | ||
10841 | err \ | ||
10842 | errx \ | ||
10843 | explicit_bzero \ | ||
10844 | fchmod \ | ||
10845 | fchown \ | ||
10846 | freeaddrinfo \ | ||
10847 | freezero \ | ||
10848 | fstatfs \ | ||
10849 | fstatvfs \ | ||
10850 | futimes \ | ||
10851 | getaddrinfo \ | ||
10852 | getcwd \ | ||
10853 | getgrouplist \ | ||
10854 | getnameinfo \ | ||
10855 | getopt \ | ||
10856 | getpagesize \ | ||
10857 | getpeereid \ | ||
10858 | getpeerucred \ | ||
10859 | getpgid \ | ||
10860 | getpgrp \ | ||
10861 | _getpty \ | ||
10862 | getrlimit \ | ||
10863 | getttyent \ | ||
10864 | glob \ | ||
10865 | group_from_gid \ | ||
10866 | inet_aton \ | ||
10867 | inet_ntoa \ | ||
10868 | inet_ntop \ | ||
10869 | innetgr \ | ||
10870 | llabs \ | ||
10871 | login_getcapbool \ | ||
10872 | md5_crypt \ | ||
10873 | memmove \ | ||
10874 | memset_s \ | ||
10875 | mkdtemp \ | ||
10876 | ngetaddrinfo \ | ||
10877 | nsleep \ | ||
10878 | ogetaddrinfo \ | ||
10879 | openlog_r \ | ||
10880 | pledge \ | ||
10881 | poll \ | ||
10882 | prctl \ | ||
10883 | pstat \ | ||
10884 | readpassphrase \ | ||
10885 | reallocarray \ | ||
10886 | recvmsg \ | ||
10887 | recallocarray \ | ||
10888 | rresvport_af \ | ||
10889 | sendmsg \ | ||
10890 | setdtablesize \ | ||
10891 | setegid \ | ||
10892 | setenv \ | ||
10893 | seteuid \ | ||
10894 | setgroupent \ | ||
10895 | setgroups \ | ||
10896 | setlinebuf \ | ||
10897 | setlogin \ | ||
10898 | setpassent\ | ||
10899 | setpcred \ | ||
10900 | setproctitle \ | ||
10901 | setregid \ | ||
10902 | setreuid \ | ||
10903 | setrlimit \ | ||
10904 | setsid \ | ||
10905 | setvbuf \ | ||
10906 | sigaction \ | ||
10907 | sigvec \ | ||
10908 | snprintf \ | ||
10909 | socketpair \ | ||
10910 | statfs \ | ||
10911 | statvfs \ | ||
10912 | strcasestr \ | ||
10913 | strdup \ | ||
10914 | strerror \ | ||
10915 | strlcat \ | ||
10916 | strlcpy \ | ||
10917 | strmode \ | ||
10918 | strnlen \ | ||
10919 | strnvis \ | ||
10920 | strptime \ | ||
10921 | strsignal \ | ||
10922 | strtonum \ | ||
10923 | strtoll \ | ||
10924 | strtoul \ | ||
10925 | strtoull \ | ||
10926 | swap32 \ | ||
10927 | sysconf \ | ||
10928 | tcgetpgrp \ | ||
10929 | timingsafe_bcmp \ | ||
10930 | truncate \ | ||
10931 | unsetenv \ | ||
10932 | updwtmpx \ | ||
10933 | user_from_uid \ | ||
10934 | usleep \ | ||
10935 | vasprintf \ | ||
10936 | vsnprintf \ | ||
10937 | waitpid \ | ||
10938 | warn \ | ||
10939 | |||
10940 | do : | ||
10941 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10942 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
10943 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
10944 | cat >>confdefs.h <<_ACEOF | ||
10945 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10946 | _ACEOF | ||
10947 | |||
10948 | fi | ||
10949 | done | ||
10950 | |||
10951 | |||
10952 | for ac_func in mblen mbtowc nl_langinfo wcwidth | ||
10953 | do : | ||
10954 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10955 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
10956 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
10957 | cat >>confdefs.h <<_ACEOF | ||
10958 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10959 | _ACEOF | ||
10960 | |||
10961 | fi | ||
10962 | done | ||
10963 | |||
10964 | |||
10965 | TEST_SSH_UTF8=${TEST_SSH_UTF8:=yes} | ||
10966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8 locale support" >&5 | ||
10967 | $as_echo_n "checking for utf8 locale support... " >&6; } | ||
10968 | if test "$cross_compiling" = yes; then : | ||
10969 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
10970 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
10971 | |||
10972 | else | ||
10973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10974 | /* end confdefs.h. */ | ||
10975 | |||
10976 | #include <locale.h> | ||
10977 | #include <stdlib.h> | ||
10978 | |||
10979 | int | ||
10980 | main () | ||
10981 | { | ||
10982 | |||
10983 | char *loc = setlocale(LC_CTYPE, "en_US.UTF-8"); | ||
10984 | if (loc != NULL) | ||
10985 | exit(0); | ||
10986 | exit(1); | ||
10987 | |||
10988 | ; | ||
10989 | return 0; | ||
10990 | } | ||
10991 | _ACEOF | ||
10992 | if ac_fn_c_try_run "$LINENO"; then : | ||
10993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10994 | $as_echo "yes" >&6; } | ||
10995 | else | ||
10996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10997 | $as_echo "no" >&6; } | ||
10998 | TEST_SSH_UTF8=no | ||
10999 | fi | ||
11000 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11001 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11002 | fi | ||
11003 | |||
11004 | |||
11005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11006 | /* end confdefs.h. */ | ||
11007 | #include <ctype.h> | ||
11008 | int | ||
11009 | main () | ||
11010 | { | ||
11011 | return (isblank('a')); | ||
11012 | ; | ||
11013 | return 0; | ||
11014 | } | ||
11015 | _ACEOF | ||
11016 | if ac_fn_c_try_link "$LINENO"; then : | ||
11017 | |||
11018 | $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h | ||
11019 | |||
11020 | |||
11021 | fi | ||
11022 | rm -f core conftest.err conftest.$ac_objext \ | ||
11023 | conftest$ac_exeext conftest.$ac_ext | ||
11024 | |||
11025 | disable_pkcs11= | ||
11026 | # Check whether --enable-pkcs11 was given. | ||
11027 | if test "${enable_pkcs11+set}" = set; then : | ||
11028 | enableval=$enable_pkcs11; | ||
11029 | if test "x$enableval" = "xno" ; then | ||
11030 | disable_pkcs11=1 | ||
11031 | fi | ||
11032 | |||
11033 | |||
11034 | fi | ||
11035 | |||
11036 | |||
11037 | # PKCS11 depends on OpenSSL. | ||
11038 | if test "x$openssl" = "xyes" && test "x$disable_pkcs11" = "x"; then | ||
11039 | # PKCS#11 support requires dlopen() and co | ||
11040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 | ||
11041 | $as_echo_n "checking for library containing dlopen... " >&6; } | ||
11042 | if ${ac_cv_search_dlopen+:} false; then : | ||
11043 | $as_echo_n "(cached) " >&6 | ||
11044 | else | ||
11045 | ac_func_search_save_LIBS=$LIBS | ||
11046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11047 | /* end confdefs.h. */ | ||
11048 | |||
11049 | /* Override any GCC internal prototype to avoid an error. | ||
11050 | Use char because int might match the return type of a GCC | ||
11051 | builtin and then its argument prototype would still apply. */ | ||
11052 | #ifdef __cplusplus | ||
11053 | extern "C" | ||
11054 | #endif | ||
11055 | char dlopen (); | ||
11056 | int | ||
11057 | main () | ||
11058 | { | ||
11059 | return dlopen (); | ||
11060 | ; | ||
11061 | return 0; | ||
11062 | } | ||
11063 | _ACEOF | ||
11064 | for ac_lib in '' dl; do | ||
11065 | if test -z "$ac_lib"; then | ||
11066 | ac_res="none required" | ||
11067 | else | ||
11068 | ac_res=-l$ac_lib | ||
11069 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
11070 | fi | ||
11071 | if ac_fn_c_try_link "$LINENO"; then : | ||
11072 | ac_cv_search_dlopen=$ac_res | ||
11073 | fi | ||
11074 | rm -f core conftest.err conftest.$ac_objext \ | ||
11075 | conftest$ac_exeext | ||
11076 | if ${ac_cv_search_dlopen+:} false; then : | ||
11077 | break | ||
11078 | fi | ||
11079 | done | ||
11080 | if ${ac_cv_search_dlopen+:} false; then : | ||
11081 | |||
11082 | else | ||
11083 | ac_cv_search_dlopen=no | ||
11084 | fi | ||
11085 | rm conftest.$ac_ext | ||
11086 | LIBS=$ac_func_search_save_LIBS | ||
11087 | fi | ||
11088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | ||
11089 | $as_echo "$ac_cv_search_dlopen" >&6; } | ||
11090 | ac_res=$ac_cv_search_dlopen | ||
11091 | if test "$ac_res" != no; then : | ||
11092 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
11093 | |||
11094 | $as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h | ||
11095 | |||
11096 | |||
11097 | fi | ||
11098 | |||
11099 | fi | ||
11100 | |||
11101 | # IRIX has a const char return value for gai_strerror() | ||
11102 | for ac_func in gai_strerror | ||
11103 | do : | ||
11104 | ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" | ||
11105 | if test "x$ac_cv_func_gai_strerror" = xyes; then : | ||
11106 | cat >>confdefs.h <<_ACEOF | ||
11107 | #define HAVE_GAI_STRERROR 1 | ||
11108 | _ACEOF | ||
11109 | |||
11110 | $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h | ||
11111 | |||
11112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11113 | /* end confdefs.h. */ | ||
11114 | |||
11115 | #include <sys/types.h> | ||
11116 | #include <sys/socket.h> | ||
11117 | #include <netdb.h> | ||
11118 | |||
11119 | const char *gai_strerror(int); | ||
11120 | |||
11121 | int | ||
11122 | main () | ||
11123 | { | ||
11124 | |||
11125 | char *str; | ||
11126 | str = gai_strerror(0); | ||
11127 | |||
11128 | ; | ||
11129 | return 0; | ||
11130 | } | ||
11131 | _ACEOF | ||
11132 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11133 | |||
11134 | |||
11135 | $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h | ||
11136 | |||
11137 | fi | ||
11138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11139 | fi | ||
11140 | done | ||
11141 | |||
11142 | |||
11143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 | ||
11144 | $as_echo_n "checking for library containing nanosleep... " >&6; } | ||
11145 | if ${ac_cv_search_nanosleep+:} false; then : | ||
11146 | $as_echo_n "(cached) " >&6 | ||
11147 | else | ||
11148 | ac_func_search_save_LIBS=$LIBS | ||
11149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11150 | /* end confdefs.h. */ | ||
11151 | |||
11152 | /* Override any GCC internal prototype to avoid an error. | ||
11153 | Use char because int might match the return type of a GCC | ||
11154 | builtin and then its argument prototype would still apply. */ | ||
11155 | #ifdef __cplusplus | ||
11156 | extern "C" | ||
11157 | #endif | ||
11158 | char nanosleep (); | ||
11159 | int | ||
11160 | main () | ||
11161 | { | ||
11162 | return nanosleep (); | ||
11163 | ; | ||
11164 | return 0; | ||
11165 | } | ||
11166 | _ACEOF | ||
11167 | for ac_lib in '' rt posix4; do | ||
11168 | if test -z "$ac_lib"; then | ||
11169 | ac_res="none required" | ||
11170 | else | ||
11171 | ac_res=-l$ac_lib | ||
11172 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
11173 | fi | ||
11174 | if ac_fn_c_try_link "$LINENO"; then : | ||
11175 | ac_cv_search_nanosleep=$ac_res | ||
11176 | fi | ||
11177 | rm -f core conftest.err conftest.$ac_objext \ | ||
11178 | conftest$ac_exeext | ||
11179 | if ${ac_cv_search_nanosleep+:} false; then : | ||
11180 | break | ||
11181 | fi | ||
11182 | done | ||
11183 | if ${ac_cv_search_nanosleep+:} false; then : | ||
11184 | |||
11185 | else | ||
11186 | ac_cv_search_nanosleep=no | ||
11187 | fi | ||
11188 | rm conftest.$ac_ext | ||
11189 | LIBS=$ac_func_search_save_LIBS | ||
11190 | fi | ||
11191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 | ||
11192 | $as_echo "$ac_cv_search_nanosleep" >&6; } | ||
11193 | ac_res=$ac_cv_search_nanosleep | ||
11194 | if test "$ac_res" != no; then : | ||
11195 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
11196 | |||
11197 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h | ||
11198 | |||
11199 | fi | ||
11200 | |||
11201 | |||
11202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 | ||
11203 | $as_echo_n "checking for library containing clock_gettime... " >&6; } | ||
11204 | if ${ac_cv_search_clock_gettime+:} false; then : | ||
11205 | $as_echo_n "(cached) " >&6 | ||
11206 | else | ||
11207 | ac_func_search_save_LIBS=$LIBS | ||
11208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11209 | /* end confdefs.h. */ | ||
11210 | |||
11211 | /* Override any GCC internal prototype to avoid an error. | ||
11212 | Use char because int might match the return type of a GCC | ||
11213 | builtin and then its argument prototype would still apply. */ | ||
11214 | #ifdef __cplusplus | ||
11215 | extern "C" | ||
11216 | #endif | ||
11217 | char clock_gettime (); | ||
11218 | int | ||
11219 | main () | ||
11220 | { | ||
11221 | return clock_gettime (); | ||
11222 | ; | ||
11223 | return 0; | ||
11224 | } | ||
11225 | _ACEOF | ||
11226 | for ac_lib in '' rt; do | ||
11227 | if test -z "$ac_lib"; then | ||
11228 | ac_res="none required" | ||
11229 | else | ||
11230 | ac_res=-l$ac_lib | ||
11231 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
11232 | fi | ||
11233 | if ac_fn_c_try_link "$LINENO"; then : | ||
11234 | ac_cv_search_clock_gettime=$ac_res | ||
11235 | fi | ||
11236 | rm -f core conftest.err conftest.$ac_objext \ | ||
11237 | conftest$ac_exeext | ||
11238 | if ${ac_cv_search_clock_gettime+:} false; then : | ||
11239 | break | ||
11240 | fi | ||
11241 | done | ||
11242 | if ${ac_cv_search_clock_gettime+:} false; then : | ||
11243 | |||
11244 | else | ||
11245 | ac_cv_search_clock_gettime=no | ||
11246 | fi | ||
11247 | rm conftest.$ac_ext | ||
11248 | LIBS=$ac_func_search_save_LIBS | ||
11249 | fi | ||
11250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 | ||
11251 | $as_echo "$ac_cv_search_clock_gettime" >&6; } | ||
11252 | ac_res=$ac_cv_search_clock_gettime | ||
11253 | if test "$ac_res" != no; then : | ||
11254 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
11255 | |||
11256 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | ||
11257 | |||
11258 | fi | ||
11259 | |||
11260 | |||
11261 | ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default" | ||
11262 | if test "x$ac_cv_have_decl_getrusage" = xyes; then : | ||
11263 | for ac_func in getrusage | ||
11264 | do : | ||
11265 | ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage" | ||
11266 | if test "x$ac_cv_func_getrusage" = xyes; then : | ||
11267 | cat >>confdefs.h <<_ACEOF | ||
11268 | #define HAVE_GETRUSAGE 1 | ||
11269 | _ACEOF | ||
11270 | |||
11271 | fi | ||
11272 | done | ||
11273 | |||
11274 | fi | ||
11275 | |||
11276 | ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" " | ||
11277 | #ifdef HAVE_STRING_H | ||
11278 | # include <string.h> | ||
11279 | #endif | ||
11280 | |||
11281 | " | ||
11282 | if test "x$ac_cv_have_decl_strsep" = xyes; then : | ||
11283 | for ac_func in strsep | ||
11284 | do : | ||
11285 | ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" | ||
11286 | if test "x$ac_cv_func_strsep" = xyes; then : | ||
11287 | cat >>confdefs.h <<_ACEOF | ||
11288 | #define HAVE_STRSEP 1 | ||
11289 | _ACEOF | ||
11290 | |||
11291 | fi | ||
11292 | done | ||
11293 | |||
11294 | fi | ||
11295 | |||
11296 | |||
11297 | ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h> | ||
11298 | |||
11299 | " | ||
11300 | if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then : | ||
11301 | $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h | ||
11302 | |||
11303 | else | ||
11304 | for ac_func in tcsendbreak | ||
11305 | do : | ||
11306 | ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak" | ||
11307 | if test "x$ac_cv_func_tcsendbreak" = xyes; then : | ||
11308 | cat >>confdefs.h <<_ACEOF | ||
11309 | #define HAVE_TCSENDBREAK 1 | ||
11310 | _ACEOF | ||
11311 | |||
11312 | fi | ||
11313 | done | ||
11314 | |||
11315 | fi | ||
11316 | |||
11317 | |||
11318 | ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h> | ||
11319 | " | ||
11320 | if test "x$ac_cv_have_decl_h_errno" = xyes; then : | ||
11321 | ac_have_decl=1 | ||
11322 | else | ||
11323 | ac_have_decl=0 | ||
11324 | fi | ||
11325 | |||
11326 | cat >>confdefs.h <<_ACEOF | ||
11327 | #define HAVE_DECL_H_ERRNO $ac_have_decl | ||
11328 | _ACEOF | ||
11329 | |||
11330 | |||
11331 | ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" " | ||
11332 | #include <sys/types.h> | ||
11333 | #include <sys/socket.h> | ||
11334 | |||
11335 | " | ||
11336 | if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then : | ||
11337 | ac_have_decl=1 | ||
11338 | else | ||
11339 | ac_have_decl=0 | ||
11340 | fi | ||
11341 | |||
11342 | cat >>confdefs.h <<_ACEOF | ||
11343 | #define HAVE_DECL_SHUT_RD $ac_have_decl | ||
11344 | _ACEOF | ||
11345 | |||
11346 | |||
11347 | ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" " | ||
11348 | #include <sys/types.h> | ||
11349 | #ifdef HAVE_SYS_STAT_H | ||
11350 | # include <sys/stat.h> | ||
11351 | #endif | ||
11352 | #ifdef HAVE_FCNTL_H | ||
11353 | # include <fcntl.h> | ||
11354 | #endif | ||
11355 | |||
11356 | " | ||
11357 | if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then : | ||
11358 | ac_have_decl=1 | ||
11359 | else | ||
11360 | ac_have_decl=0 | ||
11361 | fi | ||
11362 | |||
11363 | cat >>confdefs.h <<_ACEOF | ||
11364 | #define HAVE_DECL_O_NONBLOCK $ac_have_decl | ||
11365 | _ACEOF | ||
11366 | |||
11367 | |||
11368 | ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" " | ||
11369 | #include <sys/types.h> | ||
11370 | #include <sys/uio.h> | ||
11371 | #include <unistd.h> | ||
11372 | |||
11373 | " | ||
11374 | if test "x$ac_cv_have_decl_writev" = xyes; then : | ||
11375 | ac_have_decl=1 | ||
11376 | else | ||
11377 | ac_have_decl=0 | ||
11378 | fi | ||
11379 | |||
11380 | cat >>confdefs.h <<_ACEOF | ||
11381 | #define HAVE_DECL_WRITEV $ac_have_decl | ||
11382 | _ACEOF | ||
11383 | |||
11384 | |||
11385 | ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" " | ||
11386 | #include <sys/param.h> | ||
11387 | |||
11388 | " | ||
11389 | if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then : | ||
11390 | ac_have_decl=1 | ||
11391 | else | ||
11392 | ac_have_decl=0 | ||
11393 | fi | ||
11394 | |||
11395 | cat >>confdefs.h <<_ACEOF | ||
11396 | #define HAVE_DECL_MAXSYMLINKS $ac_have_decl | ||
11397 | _ACEOF | ||
11398 | |||
11399 | |||
11400 | ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" " | ||
11401 | #include <stddef.h> | ||
11402 | |||
11403 | " | ||
11404 | if test "x$ac_cv_have_decl_offsetof" = xyes; then : | ||
11405 | ac_have_decl=1 | ||
11406 | else | ||
11407 | ac_have_decl=0 | ||
11408 | fi | ||
11409 | |||
11410 | cat >>confdefs.h <<_ACEOF | ||
11411 | #define HAVE_DECL_OFFSETOF $ac_have_decl | ||
11412 | _ACEOF | ||
11413 | |||
11414 | |||
11415 | # extra bits for select(2) | ||
11416 | ac_fn_c_check_decl "$LINENO" "howmany" "ac_cv_have_decl_howmany" " | ||
11417 | #include <sys/param.h> | ||
11418 | #include <sys/types.h> | ||
11419 | #ifdef HAVE_SYS_SYSMACROS_H | ||
11420 | #include <sys/sysmacros.h> | ||
11421 | #endif | ||
11422 | #ifdef HAVE_SYS_SELECT_H | ||
11423 | #include <sys/select.h> | ||
11424 | #endif | ||
11425 | #ifdef HAVE_SYS_TIME_H | ||
11426 | #include <sys/time.h> | ||
11427 | #endif | ||
11428 | #ifdef HAVE_UNISTD_H | ||
11429 | #include <unistd.h> | ||
11430 | #endif | ||
11431 | |||
11432 | " | ||
11433 | if test "x$ac_cv_have_decl_howmany" = xyes; then : | ||
11434 | ac_have_decl=1 | ||
11435 | else | ||
11436 | ac_have_decl=0 | ||
11437 | fi | ||
11438 | |||
11439 | cat >>confdefs.h <<_ACEOF | ||
11440 | #define HAVE_DECL_HOWMANY $ac_have_decl | ||
11441 | _ACEOF | ||
11442 | ac_fn_c_check_decl "$LINENO" "NFDBITS" "ac_cv_have_decl_NFDBITS" " | ||
11443 | #include <sys/param.h> | ||
11444 | #include <sys/types.h> | ||
11445 | #ifdef HAVE_SYS_SYSMACROS_H | ||
11446 | #include <sys/sysmacros.h> | ||
11447 | #endif | ||
11448 | #ifdef HAVE_SYS_SELECT_H | ||
11449 | #include <sys/select.h> | ||
11450 | #endif | ||
11451 | #ifdef HAVE_SYS_TIME_H | ||
11452 | #include <sys/time.h> | ||
11453 | #endif | ||
11454 | #ifdef HAVE_UNISTD_H | ||
11455 | #include <unistd.h> | ||
11456 | #endif | ||
11457 | |||
11458 | " | ||
11459 | if test "x$ac_cv_have_decl_NFDBITS" = xyes; then : | ||
11460 | ac_have_decl=1 | ||
11461 | else | ||
11462 | ac_have_decl=0 | ||
11463 | fi | ||
11464 | |||
11465 | cat >>confdefs.h <<_ACEOF | ||
11466 | #define HAVE_DECL_NFDBITS $ac_have_decl | ||
11467 | _ACEOF | ||
11468 | |||
11469 | ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" " | ||
11470 | #include <sys/param.h> | ||
11471 | #include <sys/types.h> | ||
11472 | #ifdef HAVE_SYS_SELECT_H | ||
11473 | #include <sys/select.h> | ||
11474 | #endif | ||
11475 | #ifdef HAVE_SYS_TIME_H | ||
11476 | #include <sys/time.h> | ||
11477 | #endif | ||
11478 | #ifdef HAVE_UNISTD_H | ||
11479 | #include <unistd.h> | ||
11480 | #endif | ||
11481 | |||
11482 | " | ||
11483 | if test "x$ac_cv_type_fd_mask" = xyes; then : | ||
11484 | |||
11485 | cat >>confdefs.h <<_ACEOF | ||
11486 | #define HAVE_FD_MASK 1 | ||
11487 | _ACEOF | ||
11488 | |||
11489 | |||
11490 | fi | ||
11491 | |||
11492 | |||
11493 | for ac_func in setresuid | ||
11494 | do : | ||
11495 | ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" | ||
11496 | if test "x$ac_cv_func_setresuid" = xyes; then : | ||
11497 | cat >>confdefs.h <<_ACEOF | ||
11498 | #define HAVE_SETRESUID 1 | ||
11499 | _ACEOF | ||
11500 | |||
11501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5 | ||
11502 | $as_echo_n "checking if setresuid seems to work... " >&6; } | ||
11503 | if test "$cross_compiling" = yes; then : | ||
11504 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5 | ||
11505 | $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
11506 | |||
11507 | else | ||
11508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11509 | /* end confdefs.h. */ | ||
11510 | |||
11511 | #include <stdlib.h> | ||
11512 | #include <errno.h> | ||
11513 | |||
11514 | int | ||
11515 | main () | ||
11516 | { | ||
11517 | |||
11518 | errno=0; | ||
11519 | setresuid(0,0,0); | ||
11520 | if (errno==ENOSYS) | ||
11521 | exit(1); | ||
11522 | else | ||
11523 | exit(0); | ||
11524 | |||
11525 | ; | ||
11526 | return 0; | ||
11527 | } | ||
11528 | _ACEOF | ||
11529 | if ac_fn_c_try_run "$LINENO"; then : | ||
11530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11531 | $as_echo "yes" >&6; } | ||
11532 | else | ||
11533 | |||
11534 | $as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h | ||
11535 | |||
11536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5 | ||
11537 | $as_echo "not implemented" >&6; } | ||
11538 | fi | ||
11539 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11540 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11541 | fi | ||
11542 | |||
11543 | |||
11544 | fi | ||
11545 | done | ||
11546 | |||
11547 | |||
11548 | for ac_func in setresgid | ||
11549 | do : | ||
11550 | ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" | ||
11551 | if test "x$ac_cv_func_setresgid" = xyes; then : | ||
11552 | cat >>confdefs.h <<_ACEOF | ||
11553 | #define HAVE_SETRESGID 1 | ||
11554 | _ACEOF | ||
11555 | |||
11556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5 | ||
11557 | $as_echo_n "checking if setresgid seems to work... " >&6; } | ||
11558 | if test "$cross_compiling" = yes; then : | ||
11559 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5 | ||
11560 | $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
11561 | |||
11562 | else | ||
11563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11564 | /* end confdefs.h. */ | ||
11565 | |||
11566 | #include <stdlib.h> | ||
11567 | #include <errno.h> | ||
11568 | |||
11569 | int | ||
11570 | main () | ||
11571 | { | ||
11572 | |||
11573 | errno=0; | ||
11574 | setresgid(0,0,0); | ||
11575 | if (errno==ENOSYS) | ||
11576 | exit(1); | ||
11577 | else | ||
11578 | exit(0); | ||
11579 | |||
11580 | ; | ||
11581 | return 0; | ||
11582 | } | ||
11583 | _ACEOF | ||
11584 | if ac_fn_c_try_run "$LINENO"; then : | ||
11585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11586 | $as_echo "yes" >&6; } | ||
11587 | else | ||
11588 | |||
11589 | $as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h | ||
11590 | |||
11591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5 | ||
11592 | $as_echo "not implemented" >&6; } | ||
11593 | fi | ||
11594 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11595 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11596 | fi | ||
11597 | |||
11598 | |||
11599 | fi | ||
11600 | done | ||
11601 | |||
11602 | |||
11603 | for ac_func in realpath | ||
11604 | do : | ||
11605 | ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath" | ||
11606 | if test "x$ac_cv_func_realpath" = xyes; then : | ||
11607 | cat >>confdefs.h <<_ACEOF | ||
11608 | #define HAVE_REALPATH 1 | ||
11609 | _ACEOF | ||
11610 | |||
11611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if realpath works with non-existent files" >&5 | ||
11612 | $as_echo_n "checking if realpath works with non-existent files... " >&6; } | ||
11613 | if test "$cross_compiling" = yes; then : | ||
11614 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming working" >&5 | ||
11615 | $as_echo "$as_me: WARNING: cross compiling: assuming working" >&2;} | ||
11616 | |||
11617 | else | ||
11618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11619 | /* end confdefs.h. */ | ||
11620 | |||
11621 | #include <limits.h> | ||
11622 | #include <stdlib.h> | ||
11623 | #include <errno.h> | ||
11624 | |||
11625 | int | ||
11626 | main () | ||
11627 | { | ||
11628 | |||
11629 | char buf[PATH_MAX]; | ||
11630 | if (realpath("/opensshnonexistentfilename1234", buf) == NULL) | ||
11631 | if (errno == ENOENT) | ||
11632 | exit(1); | ||
11633 | exit(0); | ||
11634 | |||
11635 | ; | ||
11636 | return 0; | ||
11637 | } | ||
11638 | _ACEOF | ||
11639 | if ac_fn_c_try_run "$LINENO"; then : | ||
11640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11641 | $as_echo "yes" >&6; } | ||
11642 | else | ||
11643 | |||
11644 | $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h | ||
11645 | |||
11646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11647 | $as_echo "no" >&6; } | ||
11648 | fi | ||
11649 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11650 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11651 | fi | ||
11652 | |||
11653 | |||
11654 | fi | ||
11655 | done | ||
11656 | |||
11657 | |||
11658 | for ac_func in gettimeofday time | ||
11659 | do : | ||
11660 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11661 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
11662 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
11663 | cat >>confdefs.h <<_ACEOF | ||
11664 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11665 | _ACEOF | ||
11666 | |||
11667 | fi | ||
11668 | done | ||
11669 | |||
11670 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
11671 | do : | ||
11672 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11673 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
11674 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
11675 | cat >>confdefs.h <<_ACEOF | ||
11676 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11677 | _ACEOF | ||
11678 | |||
11679 | fi | ||
11680 | done | ||
11681 | |||
11682 | for ac_func in utmpname | ||
11683 | do : | ||
11684 | ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname" | ||
11685 | if test "x$ac_cv_func_utmpname" = xyes; then : | ||
11686 | cat >>confdefs.h <<_ACEOF | ||
11687 | #define HAVE_UTMPNAME 1 | ||
11688 | _ACEOF | ||
11689 | |||
11690 | fi | ||
11691 | done | ||
11692 | |||
11693 | for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline | ||
11694 | do : | ||
11695 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11696 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
11697 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
11698 | cat >>confdefs.h <<_ACEOF | ||
11699 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11700 | _ACEOF | ||
11701 | |||
11702 | fi | ||
11703 | done | ||
11704 | |||
11705 | for ac_func in setutxdb setutxent utmpxname | ||
11706 | do : | ||
11707 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11708 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
11709 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
11710 | cat >>confdefs.h <<_ACEOF | ||
11711 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11712 | _ACEOF | ||
11713 | |||
11714 | fi | ||
11715 | done | ||
11716 | |||
11717 | for ac_func in getlastlogxbyname | ||
11718 | do : | ||
11719 | ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname" | ||
11720 | if test "x$ac_cv_func_getlastlogxbyname" = xyes; then : | ||
11721 | cat >>confdefs.h <<_ACEOF | ||
11722 | #define HAVE_GETLASTLOGXBYNAME 1 | ||
11723 | _ACEOF | ||
11724 | |||
11725 | fi | ||
11726 | done | ||
11727 | |||
11728 | |||
11729 | ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" | ||
11730 | if test "x$ac_cv_func_daemon" = xyes; then : | ||
11731 | |||
11732 | $as_echo "#define HAVE_DAEMON 1" >>confdefs.h | ||
11733 | |||
11734 | else | ||
11735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5 | ||
11736 | $as_echo_n "checking for daemon in -lbsd... " >&6; } | ||
11737 | if ${ac_cv_lib_bsd_daemon+:} false; then : | ||
11738 | $as_echo_n "(cached) " >&6 | ||
11739 | else | ||
11740 | ac_check_lib_save_LIBS=$LIBS | ||
11741 | LIBS="-lbsd $LIBS" | ||
11742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11743 | /* end confdefs.h. */ | ||
11744 | |||
11745 | /* Override any GCC internal prototype to avoid an error. | ||
11746 | Use char because int might match the return type of a GCC | ||
11747 | builtin and then its argument prototype would still apply. */ | ||
11748 | #ifdef __cplusplus | ||
11749 | extern "C" | ||
11750 | #endif | ||
11751 | char daemon (); | ||
11752 | int | ||
11753 | main () | ||
11754 | { | ||
11755 | return daemon (); | ||
11756 | ; | ||
11757 | return 0; | ||
11758 | } | ||
11759 | _ACEOF | ||
11760 | if ac_fn_c_try_link "$LINENO"; then : | ||
11761 | ac_cv_lib_bsd_daemon=yes | ||
11762 | else | ||
11763 | ac_cv_lib_bsd_daemon=no | ||
11764 | fi | ||
11765 | rm -f core conftest.err conftest.$ac_objext \ | ||
11766 | conftest$ac_exeext conftest.$ac_ext | ||
11767 | LIBS=$ac_check_lib_save_LIBS | ||
11768 | fi | ||
11769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5 | ||
11770 | $as_echo "$ac_cv_lib_bsd_daemon" >&6; } | ||
11771 | if test "x$ac_cv_lib_bsd_daemon" = xyes; then : | ||
11772 | LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h | ||
11773 | |||
11774 | fi | ||
11775 | |||
11776 | |||
11777 | fi | ||
11778 | |||
11779 | |||
11780 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | ||
11781 | if test "x$ac_cv_func_getpagesize" = xyes; then : | ||
11782 | |||
11783 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | ||
11784 | |||
11785 | else | ||
11786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5 | ||
11787 | $as_echo_n "checking for getpagesize in -lucb... " >&6; } | ||
11788 | if ${ac_cv_lib_ucb_getpagesize+:} false; then : | ||
11789 | $as_echo_n "(cached) " >&6 | ||
11790 | else | ||
11791 | ac_check_lib_save_LIBS=$LIBS | ||
11792 | LIBS="-lucb $LIBS" | ||
11793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11794 | /* end confdefs.h. */ | ||
11795 | |||
11796 | /* Override any GCC internal prototype to avoid an error. | ||
11797 | Use char because int might match the return type of a GCC | ||
11798 | builtin and then its argument prototype would still apply. */ | ||
11799 | #ifdef __cplusplus | ||
11800 | extern "C" | ||
11801 | #endif | ||
11802 | char getpagesize (); | ||
11803 | int | ||
11804 | main () | ||
11805 | { | ||
11806 | return getpagesize (); | ||
11807 | ; | ||
11808 | return 0; | ||
11809 | } | ||
11810 | _ACEOF | ||
11811 | if ac_fn_c_try_link "$LINENO"; then : | ||
11812 | ac_cv_lib_ucb_getpagesize=yes | ||
11813 | else | ||
11814 | ac_cv_lib_ucb_getpagesize=no | ||
11815 | fi | ||
11816 | rm -f core conftest.err conftest.$ac_objext \ | ||
11817 | conftest$ac_exeext conftest.$ac_ext | ||
11818 | LIBS=$ac_check_lib_save_LIBS | ||
11819 | fi | ||
11820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
11821 | $as_echo "$ac_cv_lib_ucb_getpagesize" >&6; } | ||
11822 | if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then : | ||
11823 | LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | ||
11824 | |||
11825 | fi | ||
11826 | |||
11827 | |||
11828 | fi | ||
11829 | |||
11830 | |||
11831 | # Check for broken snprintf | ||
11832 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
11833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5 | ||
11834 | $as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; } | ||
11835 | if test "$cross_compiling" = yes; then : | ||
11836 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
11837 | $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
11838 | |||
11839 | else | ||
11840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11841 | /* end confdefs.h. */ | ||
11842 | #include <stdio.h> | ||
11843 | int | ||
11844 | main () | ||
11845 | { | ||
11846 | |||
11847 | char b[5]; | ||
11848 | snprintf(b,5,"123456789"); | ||
11849 | exit(b[4]!='\0'); | ||
11850 | |||
11851 | ; | ||
11852 | return 0; | ||
11853 | } | ||
11854 | _ACEOF | ||
11855 | if ac_fn_c_try_run "$LINENO"; then : | ||
11856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11857 | $as_echo "yes" >&6; } | ||
11858 | else | ||
11859 | |||
11860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11861 | $as_echo "no" >&6; } | ||
11862 | |||
11863 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h | ||
11864 | |||
11865 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
11866 | $as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
11867 | |||
11868 | fi | ||
11869 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11870 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11871 | fi | ||
11872 | |||
11873 | fi | ||
11874 | |||
11875 | # We depend on vsnprintf returning the right thing on overflow: the | ||
11876 | # number of characters it tried to create (as per SUSv3) | ||
11877 | if test "x$ac_cv_func_vsnprintf" = "xyes" ; then | ||
11878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5 | ||
11879 | $as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; } | ||
11880 | if test "$cross_compiling" = yes; then : | ||
11881 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5 | ||
11882 | $as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;} | ||
11883 | |||
11884 | else | ||
11885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11886 | /* end confdefs.h. */ | ||
11887 | |||
11888 | #include <sys/types.h> | ||
11889 | #include <stdio.h> | ||
11890 | #include <stdarg.h> | ||
11891 | |||
11892 | int x_snprintf(char *str, size_t count, const char *fmt, ...) | ||
11893 | { | ||
11894 | size_t ret; | ||
11895 | va_list ap; | ||
11896 | |||
11897 | va_start(ap, fmt); | ||
11898 | ret = vsnprintf(str, count, fmt, ap); | ||
11899 | va_end(ap); | ||
11900 | return ret; | ||
11901 | } | ||
11902 | |||
11903 | int | ||
11904 | main () | ||
11905 | { | ||
11906 | |||
11907 | char x[1]; | ||
11908 | if (x_snprintf(x, 1, "%s %d", "hello", 12345) != 11) | ||
11909 | return 1; | ||
11910 | if (x_snprintf(NULL, 0, "%s %d", "hello", 12345) != 11) | ||
11911 | return 1; | ||
11912 | return 0; | ||
11913 | |||
11914 | ; | ||
11915 | return 0; | ||
11916 | } | ||
11917 | _ACEOF | ||
11918 | if ac_fn_c_try_run "$LINENO"; then : | ||
11919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11920 | $as_echo "yes" >&6; } | ||
11921 | else | ||
11922 | |||
11923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11924 | $as_echo "no" >&6; } | ||
11925 | |||
11926 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h | ||
11927 | |||
11928 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5 | ||
11929 | $as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;} | ||
11930 | |||
11931 | fi | ||
11932 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11933 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11934 | fi | ||
11935 | |||
11936 | fi | ||
11937 | |||
11938 | # On systems where [v]snprintf is broken, but is declared in stdio, | ||
11939 | # check that the fmt argument is const char * or just char *. | ||
11940 | # This is only useful for when BROKEN_SNPRINTF | ||
11941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5 | ||
11942 | $as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; } | ||
11943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11944 | /* end confdefs.h. */ | ||
11945 | |||
11946 | #include <stdio.h> | ||
11947 | int snprintf(char *a, size_t b, const char *c, ...) { return 0; } | ||
11948 | |||
11949 | int | ||
11950 | main () | ||
11951 | { | ||
11952 | |||
11953 | snprintf(0, 0, 0); | ||
11954 | |||
11955 | ; | ||
11956 | return 0; | ||
11957 | } | ||
11958 | _ACEOF | ||
11959 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11961 | $as_echo "yes" >&6; } | ||
11962 | |||
11963 | $as_echo "#define SNPRINTF_CONST const" >>confdefs.h | ||
11964 | |||
11965 | else | ||
11966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11967 | $as_echo "no" >&6; } | ||
11968 | $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h | ||
11969 | |||
11970 | fi | ||
11971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11972 | |||
11973 | # Check for missing getpeereid (or equiv) support | ||
11974 | NO_PEERCHECK="" | ||
11975 | if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then | ||
11976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5 | ||
11977 | $as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; } | ||
11978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11979 | /* end confdefs.h. */ | ||
11980 | |||
11981 | #include <sys/types.h> | ||
11982 | #include <sys/socket.h> | ||
11983 | int | ||
11984 | main () | ||
11985 | { | ||
11986 | int i = SO_PEERCRED; | ||
11987 | ; | ||
11988 | return 0; | ||
11989 | } | ||
11990 | _ACEOF | ||
11991 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11993 | $as_echo "yes" >&6; } | ||
11994 | |||
11995 | $as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h | ||
11996 | |||
11997 | |||
11998 | else | ||
11999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12000 | $as_echo "no" >&6; } | ||
12001 | NO_PEERCHECK=1 | ||
12002 | |||
12003 | fi | ||
12004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12005 | fi | ||
12006 | |||
12007 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
12008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5 | ||
12009 | $as_echo_n "checking for (overly) strict mkstemp... " >&6; } | ||
12010 | if test "$cross_compiling" = yes; then : | ||
12011 | |||
12012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12013 | $as_echo "yes" >&6; } | ||
12014 | $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h | ||
12015 | |||
12016 | |||
12017 | |||
12018 | else | ||
12019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12020 | /* end confdefs.h. */ | ||
12021 | |||
12022 | #include <stdlib.h> | ||
12023 | |||
12024 | int | ||
12025 | main () | ||
12026 | { | ||
12027 | |||
12028 | char template[]="conftest.mkstemp-test"; | ||
12029 | if (mkstemp(template) == -1) | ||
12030 | exit(1); | ||
12031 | unlink(template); | ||
12032 | exit(0); | ||
12033 | |||
12034 | ; | ||
12035 | return 0; | ||
12036 | } | ||
12037 | _ACEOF | ||
12038 | if ac_fn_c_try_run "$LINENO"; then : | ||
12039 | |||
12040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12041 | $as_echo "no" >&6; } | ||
12042 | |||
12043 | else | ||
12044 | |||
12045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12046 | $as_echo "yes" >&6; } | ||
12047 | |||
12048 | $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h | ||
12049 | |||
12050 | |||
12051 | fi | ||
12052 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12053 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12054 | fi | ||
12055 | |||
12056 | fi | ||
12057 | |||
12058 | if test ! -z "$check_for_openpty_ctty_bug"; then | ||
12059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5 | ||
12060 | $as_echo_n "checking if openpty correctly handles controlling tty... " >&6; } | ||
12061 | if test "$cross_compiling" = yes; then : | ||
12062 | |||
12063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 | ||
12064 | $as_echo "cross-compiling, assuming yes" >&6; } | ||
12065 | |||
12066 | |||
12067 | else | ||
12068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12069 | /* end confdefs.h. */ | ||
12070 | |||
12071 | #include <stdio.h> | ||
12072 | #include <sys/fcntl.h> | ||
12073 | #include <sys/types.h> | ||
12074 | #include <sys/wait.h> | ||
12075 | |||
12076 | int | ||
12077 | main () | ||
12078 | { | ||
12079 | |||
12080 | pid_t pid; | ||
12081 | int fd, ptyfd, ttyfd, status; | ||
12082 | |||
12083 | pid = fork(); | ||
12084 | if (pid < 0) { /* failed */ | ||
12085 | exit(1); | ||
12086 | } else if (pid > 0) { /* parent */ | ||
12087 | waitpid(pid, &status, 0); | ||
12088 | if (WIFEXITED(status)) | ||
12089 | exit(WEXITSTATUS(status)); | ||
12090 | else | ||
12091 | exit(2); | ||
12092 | } else { /* child */ | ||
12093 | close(0); close(1); close(2); | ||
12094 | setsid(); | ||
12095 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); | ||
12096 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); | ||
12097 | if (fd >= 0) | ||
12098 | exit(3); /* Acquired ctty: broken */ | ||
12099 | else | ||
12100 | exit(0); /* Did not acquire ctty: OK */ | ||
12101 | } | ||
12102 | |||
12103 | ; | ||
12104 | return 0; | ||
12105 | } | ||
12106 | _ACEOF | ||
12107 | if ac_fn_c_try_run "$LINENO"; then : | ||
12108 | |||
12109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12110 | $as_echo "yes" >&6; } | ||
12111 | |||
12112 | else | ||
12113 | |||
12114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12115 | $as_echo "no" >&6; } | ||
12116 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
12117 | |||
12118 | |||
12119 | fi | ||
12120 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12121 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12122 | fi | ||
12123 | |||
12124 | fi | ||
12125 | |||
12126 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
12127 | test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then | ||
12128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 | ||
12129 | $as_echo_n "checking if getaddrinfo seems to work... " >&6; } | ||
12130 | if test "$cross_compiling" = yes; then : | ||
12131 | |||
12132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 | ||
12133 | $as_echo "cross-compiling, assuming yes" >&6; } | ||
12134 | |||
12135 | |||
12136 | else | ||
12137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12138 | /* end confdefs.h. */ | ||
12139 | |||
12140 | #include <stdio.h> | ||
12141 | #include <sys/socket.h> | ||
12142 | #include <netdb.h> | ||
12143 | #include <errno.h> | ||
12144 | #include <netinet/in.h> | ||
12145 | |||
12146 | #define TEST_PORT "2222" | ||
12147 | |||
12148 | int | ||
12149 | main () | ||
12150 | { | ||
12151 | |||
12152 | int err, sock; | ||
12153 | struct addrinfo *gai_ai, *ai, hints; | ||
12154 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
12155 | |||
12156 | memset(&hints, 0, sizeof(hints)); | ||
12157 | hints.ai_family = PF_UNSPEC; | ||
12158 | hints.ai_socktype = SOCK_STREAM; | ||
12159 | hints.ai_flags = AI_PASSIVE; | ||
12160 | |||
12161 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
12162 | if (err != 0) { | ||
12163 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
12164 | exit(1); | ||
12165 | } | ||
12166 | |||
12167 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
12168 | if (ai->ai_family != AF_INET6) | ||
12169 | continue; | ||
12170 | |||
12171 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
12172 | sizeof(ntop), strport, sizeof(strport), | ||
12173 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
12174 | |||
12175 | if (err != 0) { | ||
12176 | if (err == EAI_SYSTEM) | ||
12177 | perror("getnameinfo EAI_SYSTEM"); | ||
12178 | else | ||
12179 | fprintf(stderr, "getnameinfo failed: %s\n", | ||
12180 | gai_strerror(err)); | ||
12181 | exit(2); | ||
12182 | } | ||
12183 | |||
12184 | sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); | ||
12185 | if (sock < 0) | ||
12186 | perror("socket"); | ||
12187 | if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { | ||
12188 | if (errno == EBADF) | ||
12189 | exit(3); | ||
12190 | } | ||
12191 | } | ||
12192 | exit(0); | ||
12193 | |||
12194 | ; | ||
12195 | return 0; | ||
12196 | } | ||
12197 | _ACEOF | ||
12198 | if ac_fn_c_try_run "$LINENO"; then : | ||
12199 | |||
12200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12201 | $as_echo "yes" >&6; } | ||
12202 | |||
12203 | else | ||
12204 | |||
12205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12206 | $as_echo "no" >&6; } | ||
12207 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
12208 | |||
12209 | |||
12210 | fi | ||
12211 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12212 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12213 | fi | ||
12214 | |||
12215 | fi | ||
12216 | |||
12217 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
12218 | test "x$check_for_aix_broken_getaddrinfo" = "x1"; then | ||
12219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 | ||
12220 | $as_echo_n "checking if getaddrinfo seems to work... " >&6; } | ||
12221 | if test "$cross_compiling" = yes; then : | ||
12222 | |||
12223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5 | ||
12224 | $as_echo "cross-compiling, assuming no" >&6; } | ||
12225 | |||
12226 | |||
12227 | else | ||
12228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12229 | /* end confdefs.h. */ | ||
12230 | |||
12231 | #include <stdio.h> | ||
12232 | #include <sys/socket.h> | ||
12233 | #include <netdb.h> | ||
12234 | #include <errno.h> | ||
12235 | #include <netinet/in.h> | ||
12236 | |||
12237 | #define TEST_PORT "2222" | ||
12238 | |||
12239 | int | ||
12240 | main () | ||
12241 | { | ||
12242 | |||
12243 | int err, sock; | ||
12244 | struct addrinfo *gai_ai, *ai, hints; | ||
12245 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
12246 | |||
12247 | memset(&hints, 0, sizeof(hints)); | ||
12248 | hints.ai_family = PF_UNSPEC; | ||
12249 | hints.ai_socktype = SOCK_STREAM; | ||
12250 | hints.ai_flags = AI_PASSIVE; | ||
12251 | |||
12252 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
12253 | if (err != 0) { | ||
12254 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
12255 | exit(1); | ||
12256 | } | ||
12257 | |||
12258 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
12259 | if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) | ||
12260 | continue; | ||
12261 | |||
12262 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
12263 | sizeof(ntop), strport, sizeof(strport), | ||
12264 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
12265 | |||
12266 | if (ai->ai_family == AF_INET && err != 0) { | ||
12267 | perror("getnameinfo"); | ||
12268 | exit(2); | ||
12269 | } | ||
12270 | } | ||
12271 | exit(0); | ||
12272 | |||
12273 | ; | ||
12274 | return 0; | ||
12275 | } | ||
12276 | _ACEOF | ||
12277 | if ac_fn_c_try_run "$LINENO"; then : | ||
12278 | |||
12279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12280 | $as_echo "yes" >&6; } | ||
12281 | |||
12282 | $as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h | ||
12283 | |||
12284 | |||
12285 | else | ||
12286 | |||
12287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12288 | $as_echo "no" >&6; } | ||
12289 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
12290 | |||
12291 | |||
12292 | fi | ||
12293 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12294 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12295 | fi | ||
12296 | |||
12297 | fi | ||
12298 | |||
12299 | if test "x$ac_cv_func_getaddrinfo" = "xyes"; then | ||
12300 | ac_fn_c_check_decl "$LINENO" "AI_NUMERICSERV" "ac_cv_have_decl_AI_NUMERICSERV" "#include <sys/types.h> | ||
12301 | #include <sys/socket.h> | ||
12302 | #include <netdb.h> | ||
12303 | " | ||
12304 | if test "x$ac_cv_have_decl_AI_NUMERICSERV" = xyes; then : | ||
12305 | ac_have_decl=1 | ||
12306 | else | ||
12307 | ac_have_decl=0 | ||
12308 | fi | ||
12309 | |||
12310 | cat >>confdefs.h <<_ACEOF | ||
12311 | #define HAVE_DECL_AI_NUMERICSERV $ac_have_decl | ||
12312 | _ACEOF | ||
12313 | |||
12314 | fi | ||
12315 | |||
12316 | if test "x$check_for_conflicting_getspnam" = "x1"; then | ||
12317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5 | ||
12318 | $as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; } | ||
12319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12320 | /* end confdefs.h. */ | ||
12321 | #include <shadow.h> | ||
12322 | int | ||
12323 | main () | ||
12324 | { | ||
12325 | exit(0); | ||
12326 | ; | ||
12327 | return 0; | ||
12328 | } | ||
12329 | _ACEOF | ||
12330 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12331 | |||
12332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12333 | $as_echo "no" >&6; } | ||
12334 | |||
12335 | else | ||
12336 | |||
12337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12338 | $as_echo "yes" >&6; } | ||
12339 | |||
12340 | $as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h | ||
12341 | |||
12342 | |||
12343 | |||
12344 | fi | ||
12345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12346 | fi | ||
12347 | |||
12348 | if test "x$ac_cv_func_strnvis" = "xyes"; then | ||
12349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnvis" >&5 | ||
12350 | $as_echo_n "checking for working strnvis... " >&6; } | ||
12351 | if test "$cross_compiling" = yes; then : | ||
12352 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming broken" >&5 | ||
12353 | $as_echo "$as_me: WARNING: cross compiling: assuming broken" >&2;} | ||
12354 | |||
12355 | $as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h | ||
12356 | |||
12357 | |||
12358 | else | ||
12359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12360 | /* end confdefs.h. */ | ||
12361 | |||
12362 | #include <signal.h> | ||
12363 | #include <stdlib.h> | ||
12364 | #include <string.h> | ||
12365 | #include <vis.h> | ||
12366 | static void sighandler(int sig) { _exit(1); } | ||
12367 | |||
12368 | int | ||
12369 | main () | ||
12370 | { | ||
12371 | |||
12372 | char dst[16]; | ||
12373 | |||
12374 | signal(SIGSEGV, sighandler); | ||
12375 | if (strnvis(dst, "src", 4, 0) && strcmp(dst, "src") == 0) | ||
12376 | exit(0); | ||
12377 | exit(1) | ||
12378 | |||
12379 | ; | ||
12380 | return 0; | ||
12381 | } | ||
12382 | _ACEOF | ||
12383 | if ac_fn_c_try_run "$LINENO"; then : | ||
12384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12385 | $as_echo "yes" >&6; } | ||
12386 | else | ||
12387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12388 | $as_echo "no" >&6; } | ||
12389 | |||
12390 | $as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h | ||
12391 | |||
12392 | fi | ||
12393 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12394 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12395 | fi | ||
12396 | |||
12397 | fi | ||
12398 | |||
12399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 | ||
12400 | $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } | ||
12401 | if ${ac_cv_func_getpgrp_void+:} false; then : | ||
12402 | $as_echo_n "(cached) " >&6 | ||
12403 | else | ||
12404 | # Use it with a single arg. | ||
12405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12406 | /* end confdefs.h. */ | ||
12407 | $ac_includes_default | ||
12408 | int | ||
12409 | main () | ||
12410 | { | ||
12411 | getpgrp (0); | ||
12412 | ; | ||
12413 | return 0; | ||
12414 | } | ||
12415 | _ACEOF | ||
12416 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12417 | ac_cv_func_getpgrp_void=no | ||
12418 | else | ||
12419 | ac_cv_func_getpgrp_void=yes | ||
12420 | fi | ||
12421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12422 | |||
12423 | fi | ||
12424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 | ||
12425 | $as_echo "$ac_cv_func_getpgrp_void" >&6; } | ||
12426 | if test $ac_cv_func_getpgrp_void = yes; then | ||
12427 | |||
12428 | $as_echo "#define GETPGRP_VOID 1" >>confdefs.h | ||
12429 | |||
12430 | fi | ||
12431 | |||
12432 | |||
12433 | # Search for OpenSSL | ||
12434 | saved_CPPFLAGS="$CPPFLAGS" | ||
12435 | saved_LDFLAGS="$LDFLAGS" | ||
12436 | |||
12437 | # Check whether --with-ssl-dir was given. | ||
12438 | if test "${with_ssl_dir+set}" = set; then : | ||
12439 | withval=$with_ssl_dir; | ||
12440 | if test "x$openssl" = "xno" ; then | ||
12441 | as_fn_error $? "cannot use --with-ssl-dir when OpenSSL disabled" "$LINENO" 5 | ||
12442 | fi | ||
12443 | if test "x$withval" != "xno" ; then | ||
12444 | case "$withval" in | ||
12445 | # Relative paths | ||
12446 | ./*|../*) withval="`pwd`/$withval" | ||
12447 | esac | ||
12448 | if test -d "$withval/lib"; then | ||
12449 | if test -n "${need_dash_r}"; then | ||
12450 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
12451 | else | ||
12452 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
12453 | fi | ||
12454 | elif test -d "$withval/lib64"; then | ||
12455 | if test -n "${need_dash_r}"; then | ||
12456 | LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}" | ||
12457 | else | ||
12458 | LDFLAGS="-L${withval}/lib64 ${LDFLAGS}" | ||
12459 | fi | ||
12460 | else | ||
12461 | if test -n "${need_dash_r}"; then | ||
12462 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
12463 | else | ||
12464 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
12465 | fi | ||
12466 | fi | ||
12467 | if test -d "$withval/include"; then | ||
12468 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
12469 | else | ||
12470 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
12471 | fi | ||
12472 | fi | ||
12473 | |||
12474 | |||
12475 | fi | ||
12476 | |||
12477 | |||
12478 | |||
12479 | # Check whether --with-openssl-header-check was given. | ||
12480 | if test "${with_openssl_header_check+set}" = set; then : | ||
12481 | withval=$with_openssl_header_check; | ||
12482 | if test "x$withval" = "xno" ; then | ||
12483 | openssl_check_nonfatal=1 | ||
12484 | fi | ||
12485 | |||
12486 | |||
12487 | fi | ||
12488 | |||
12489 | |||
12490 | openssl_engine=no | ||
12491 | |||
12492 | # Check whether --with-ssl-engine was given. | ||
12493 | if test "${with_ssl_engine+set}" = set; then : | ||
12494 | withval=$with_ssl_engine; | ||
12495 | if test "x$withval" != "xno" ; then | ||
12496 | if test "x$openssl" = "xno" ; then | ||
12497 | as_fn_error $? "cannot use --with-ssl-engine when OpenSSL disabled" "$LINENO" 5 | ||
12498 | fi | ||
12499 | openssl_engine=yes | ||
12500 | fi | ||
12501 | |||
12502 | |||
12503 | fi | ||
12504 | |||
12505 | |||
12506 | if test "x$openssl" = "xyes" ; then | ||
12507 | LIBS="-lcrypto $LIBS" | ||
12508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12509 | /* end confdefs.h. */ | ||
12510 | |||
12511 | /* Override any GCC internal prototype to avoid an error. | ||
12512 | Use char because int might match the return type of a GCC | ||
12513 | builtin and then its argument prototype would still apply. */ | ||
12514 | #ifdef __cplusplus | ||
12515 | extern "C" | ||
12516 | #endif | ||
12517 | char RAND_add (); | ||
12518 | int | ||
12519 | main () | ||
12520 | { | ||
12521 | return RAND_add (); | ||
12522 | ; | ||
12523 | return 0; | ||
12524 | } | ||
12525 | _ACEOF | ||
12526 | if ac_fn_c_try_link "$LINENO"; then : | ||
12527 | |||
12528 | $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h | ||
12529 | |||
12530 | else | ||
12531 | |||
12532 | if test -n "${need_dash_r}"; then | ||
12533 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
12534 | else | ||
12535 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
12536 | fi | ||
12537 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
12538 | ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default" | ||
12539 | if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then : | ||
12540 | |||
12541 | else | ||
12542 | as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5 | ||
12543 | fi | ||
12544 | |||
12545 | |||
12546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12547 | /* end confdefs.h. */ | ||
12548 | |||
12549 | /* Override any GCC internal prototype to avoid an error. | ||
12550 | Use char because int might match the return type of a GCC | ||
12551 | builtin and then its argument prototype would still apply. */ | ||
12552 | #ifdef __cplusplus | ||
12553 | extern "C" | ||
12554 | #endif | ||
12555 | char RAND_add (); | ||
12556 | int | ||
12557 | main () | ||
12558 | { | ||
12559 | return RAND_add (); | ||
12560 | ; | ||
12561 | return 0; | ||
12562 | } | ||
12563 | _ACEOF | ||
12564 | if ac_fn_c_try_link "$LINENO"; then : | ||
12565 | $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h | ||
12566 | |||
12567 | else | ||
12568 | |||
12569 | as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5 | ||
12570 | |||
12571 | |||
12572 | fi | ||
12573 | rm -f core conftest.err conftest.$ac_objext \ | ||
12574 | conftest$ac_exeext conftest.$ac_ext | ||
12575 | |||
12576 | |||
12577 | fi | ||
12578 | rm -f core conftest.err conftest.$ac_objext \ | ||
12579 | conftest$ac_exeext conftest.$ac_ext | ||
12580 | |||
12581 | # Determine OpenSSL header version | ||
12582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5 | ||
12583 | $as_echo_n "checking OpenSSL header version... " >&6; } | ||
12584 | if test "$cross_compiling" = yes; then : | ||
12585 | |||
12586 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
12587 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
12588 | |||
12589 | |||
12590 | else | ||
12591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12592 | /* end confdefs.h. */ | ||
12593 | |||
12594 | #include <stdlib.h> | ||
12595 | #include <stdio.h> | ||
12596 | #include <string.h> | ||
12597 | #include <openssl/opensslv.h> | ||
12598 | #define DATA "conftest.sslincver" | ||
12599 | |||
12600 | int | ||
12601 | main () | ||
12602 | { | ||
12603 | |||
12604 | FILE *fd; | ||
12605 | int rc; | ||
12606 | |||
12607 | fd = fopen(DATA,"w"); | ||
12608 | if(fd == NULL) | ||
12609 | exit(1); | ||
12610 | |||
12611 | if ((rc = fprintf(fd, "%08lx (%s)\n", | ||
12612 | (unsigned long)OPENSSL_VERSION_NUMBER, | ||
12613 | OPENSSL_VERSION_TEXT)) < 0) | ||
12614 | exit(1); | ||
12615 | |||
12616 | exit(0); | ||
12617 | |||
12618 | ; | ||
12619 | return 0; | ||
12620 | } | ||
12621 | _ACEOF | ||
12622 | if ac_fn_c_try_run "$LINENO"; then : | ||
12623 | |||
12624 | ssl_header_ver=`cat conftest.sslincver` | ||
12625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5 | ||
12626 | $as_echo "$ssl_header_ver" >&6; } | ||
12627 | |||
12628 | else | ||
12629 | |||
12630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
12631 | $as_echo "not found" >&6; } | ||
12632 | as_fn_error $? "OpenSSL version header not found." "$LINENO" 5 | ||
12633 | |||
12634 | fi | ||
12635 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12636 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12637 | fi | ||
12638 | |||
12639 | |||
12640 | # Determine OpenSSL library version | ||
12641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5 | ||
12642 | $as_echo_n "checking OpenSSL library version... " >&6; } | ||
12643 | if test "$cross_compiling" = yes; then : | ||
12644 | |||
12645 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
12646 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
12647 | |||
12648 | |||
12649 | else | ||
12650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12651 | /* end confdefs.h. */ | ||
12652 | |||
12653 | #include <stdio.h> | ||
12654 | #include <string.h> | ||
12655 | #include <openssl/opensslv.h> | ||
12656 | #include <openssl/crypto.h> | ||
12657 | #define DATA "conftest.ssllibver" | ||
12658 | |||
12659 | int | ||
12660 | main () | ||
12661 | { | ||
12662 | |||
12663 | FILE *fd; | ||
12664 | int rc; | ||
12665 | |||
12666 | fd = fopen(DATA,"w"); | ||
12667 | if(fd == NULL) | ||
12668 | exit(1); | ||
12669 | |||
12670 | if ((rc = fprintf(fd, "%08lx (%s)\n", (unsigned long)SSLeay(), | ||
12671 | SSLeay_version(SSLEAY_VERSION))) < 0) | ||
12672 | exit(1); | ||
12673 | |||
12674 | exit(0); | ||
12675 | |||
12676 | ; | ||
12677 | return 0; | ||
12678 | } | ||
12679 | _ACEOF | ||
12680 | if ac_fn_c_try_run "$LINENO"; then : | ||
12681 | |||
12682 | ssl_library_ver=`cat conftest.ssllibver` | ||
12683 | # Check version is supported. | ||
12684 | case "$ssl_library_ver" in | ||
12685 | 10000*|0*) | ||
12686 | as_fn_error $? "OpenSSL >= 1.0.1 required (have \"$ssl_library_ver\")" "$LINENO" 5 | ||
12687 | ;; | ||
12688 | 100*) ;; # 1.0.x | ||
12689 | 200*) ;; # LibreSSL | ||
12690 | *) | ||
12691 | as_fn_error $? "OpenSSL >= 1.1.0 is not yet supported (have \"$ssl_library_ver\")" "$LINENO" 5 | ||
12692 | ;; | ||
12693 | esac | ||
12694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5 | ||
12695 | $as_echo "$ssl_library_ver" >&6; } | ||
12696 | |||
12697 | else | ||
12698 | |||
12699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
12700 | $as_echo "not found" >&6; } | ||
12701 | as_fn_error $? "OpenSSL library not found." "$LINENO" 5 | ||
12702 | |||
12703 | fi | ||
12704 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12705 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12706 | fi | ||
12707 | |||
12708 | |||
12709 | # Sanity check OpenSSL headers | ||
12710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5 | ||
12711 | $as_echo_n "checking whether OpenSSL's headers match the library... " >&6; } | ||
12712 | if test "$cross_compiling" = yes; then : | ||
12713 | |||
12714 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
12715 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
12716 | |||
12717 | |||
12718 | else | ||
12719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12720 | /* end confdefs.h. */ | ||
12721 | |||
12722 | #include <string.h> | ||
12723 | #include <openssl/opensslv.h> | ||
12724 | #include <openssl/crypto.h> | ||
12725 | |||
12726 | int | ||
12727 | main () | ||
12728 | { | ||
12729 | |||
12730 | exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); | ||
12731 | |||
12732 | ; | ||
12733 | return 0; | ||
12734 | } | ||
12735 | _ACEOF | ||
12736 | if ac_fn_c_try_run "$LINENO"; then : | ||
12737 | |||
12738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12739 | $as_echo "yes" >&6; } | ||
12740 | |||
12741 | else | ||
12742 | |||
12743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12744 | $as_echo "no" >&6; } | ||
12745 | if test "x$openssl_check_nonfatal" = "x"; then | ||
12746 | as_fn_error $? "Your OpenSSL headers do not match your | ||
12747 | library. Check config.log for details. | ||
12748 | If you are sure your installation is consistent, you can disable the check | ||
12749 | by running \"./configure --without-openssl-header-check\". | ||
12750 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
12751 | " "$LINENO" 5 | ||
12752 | else | ||
12753 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your | ||
12754 | library. Check config.log for details. | ||
12755 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 | ||
12756 | $as_echo "$as_me: WARNING: Your OpenSSL headers do not match your | ||
12757 | library. Check config.log for details. | ||
12758 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} | ||
12759 | fi | ||
12760 | |||
12761 | fi | ||
12762 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12763 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12764 | fi | ||
12765 | |||
12766 | |||
12767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5 | ||
12768 | $as_echo_n "checking if programs using OpenSSL functions will link... " >&6; } | ||
12769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12770 | /* end confdefs.h. */ | ||
12771 | #include <openssl/evp.h> | ||
12772 | int | ||
12773 | main () | ||
12774 | { | ||
12775 | SSLeay_add_all_algorithms(); | ||
12776 | ; | ||
12777 | return 0; | ||
12778 | } | ||
12779 | _ACEOF | ||
12780 | if ac_fn_c_try_link "$LINENO"; then : | ||
12781 | |||
12782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12783 | $as_echo "yes" >&6; } | ||
12784 | |||
12785 | else | ||
12786 | |||
12787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12788 | $as_echo "no" >&6; } | ||
12789 | saved_LIBS="$LIBS" | ||
12790 | LIBS="$LIBS -ldl" | ||
12791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5 | ||
12792 | $as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; } | ||
12793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12794 | /* end confdefs.h. */ | ||
12795 | #include <openssl/evp.h> | ||
12796 | int | ||
12797 | main () | ||
12798 | { | ||
12799 | SSLeay_add_all_algorithms(); | ||
12800 | ; | ||
12801 | return 0; | ||
12802 | } | ||
12803 | _ACEOF | ||
12804 | if ac_fn_c_try_link "$LINENO"; then : | ||
12805 | |||
12806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12807 | $as_echo "yes" >&6; } | ||
12808 | |||
12809 | else | ||
12810 | |||
12811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12812 | $as_echo "no" >&6; } | ||
12813 | LIBS="$saved_LIBS" | ||
12814 | |||
12815 | |||
12816 | fi | ||
12817 | rm -f core conftest.err conftest.$ac_objext \ | ||
12818 | conftest$ac_exeext conftest.$ac_ext | ||
12819 | |||
12820 | |||
12821 | fi | ||
12822 | rm -f core conftest.err conftest.$ac_objext \ | ||
12823 | conftest$ac_exeext conftest.$ac_ext | ||
12824 | |||
12825 | for ac_func in \ | ||
12826 | BN_is_prime_ex \ | ||
12827 | DSA_generate_parameters_ex \ | ||
12828 | EVP_DigestInit_ex \ | ||
12829 | EVP_DigestFinal_ex \ | ||
12830 | EVP_MD_CTX_init \ | ||
12831 | EVP_MD_CTX_cleanup \ | ||
12832 | EVP_MD_CTX_copy_ex \ | ||
12833 | HMAC_CTX_init \ | ||
12834 | RSA_generate_key_ex \ | ||
12835 | RSA_get_default_method \ | ||
12836 | |||
12837 | do : | ||
12838 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12839 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
12840 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
12841 | cat >>confdefs.h <<_ACEOF | ||
12842 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12843 | _ACEOF | ||
12844 | |||
12845 | fi | ||
12846 | done | ||
12847 | |||
12848 | |||
12849 | if test "x$openssl_engine" = "xyes" ; then | ||
12850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5 | ||
12851 | $as_echo_n "checking for OpenSSL ENGINE support... " >&6; } | ||
12852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12853 | /* end confdefs.h. */ | ||
12854 | |||
12855 | #include <openssl/engine.h> | ||
12856 | |||
12857 | int | ||
12858 | main () | ||
12859 | { | ||
12860 | |||
12861 | ENGINE_load_builtin_engines(); | ||
12862 | ENGINE_register_all_complete(); | ||
12863 | |||
12864 | ; | ||
12865 | return 0; | ||
12866 | } | ||
12867 | _ACEOF | ||
12868 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12870 | $as_echo "yes" >&6; } | ||
12871 | |||
12872 | $as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h | ||
12873 | |||
12874 | |||
12875 | else | ||
12876 | as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5 | ||
12877 | |||
12878 | fi | ||
12879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12880 | fi | ||
12881 | |||
12882 | # Check for OpenSSL without EVP_aes_{192,256}_cbc | ||
12883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5 | ||
12884 | $as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; } | ||
12885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12886 | /* end confdefs.h. */ | ||
12887 | |||
12888 | #include <string.h> | ||
12889 | #include <openssl/evp.h> | ||
12890 | |||
12891 | int | ||
12892 | main () | ||
12893 | { | ||
12894 | |||
12895 | exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL); | ||
12896 | |||
12897 | ; | ||
12898 | return 0; | ||
12899 | } | ||
12900 | _ACEOF | ||
12901 | if ac_fn_c_try_link "$LINENO"; then : | ||
12902 | |||
12903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12904 | $as_echo "no" >&6; } | ||
12905 | |||
12906 | else | ||
12907 | |||
12908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12909 | $as_echo "yes" >&6; } | ||
12910 | |||
12911 | $as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h | ||
12912 | |||
12913 | |||
12914 | |||
12915 | fi | ||
12916 | rm -f core conftest.err conftest.$ac_objext \ | ||
12917 | conftest$ac_exeext conftest.$ac_ext | ||
12918 | |||
12919 | # Check for OpenSSL with EVP_aes_*ctr | ||
12920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES CTR via EVP" >&5 | ||
12921 | $as_echo_n "checking whether OpenSSL has AES CTR via EVP... " >&6; } | ||
12922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12923 | /* end confdefs.h. */ | ||
12924 | |||
12925 | #include <string.h> | ||
12926 | #include <openssl/evp.h> | ||
12927 | |||
12928 | int | ||
12929 | main () | ||
12930 | { | ||
12931 | |||
12932 | exit(EVP_aes_128_ctr() == NULL || | ||
12933 | EVP_aes_192_cbc() == NULL || | ||
12934 | EVP_aes_256_cbc() == NULL); | ||
12935 | |||
12936 | ; | ||
12937 | return 0; | ||
12938 | } | ||
12939 | _ACEOF | ||
12940 | if ac_fn_c_try_link "$LINENO"; then : | ||
12941 | |||
12942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12943 | $as_echo "yes" >&6; } | ||
12944 | |||
12945 | $as_echo "#define OPENSSL_HAVE_EVPCTR 1" >>confdefs.h | ||
12946 | |||
12947 | |||
12948 | else | ||
12949 | |||
12950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12951 | $as_echo "no" >&6; } | ||
12952 | |||
12953 | |||
12954 | fi | ||
12955 | rm -f core conftest.err conftest.$ac_objext \ | ||
12956 | conftest$ac_exeext conftest.$ac_ext | ||
12957 | |||
12958 | # Check for OpenSSL with EVP_aes_*gcm | ||
12959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES GCM via EVP" >&5 | ||
12960 | $as_echo_n "checking whether OpenSSL has AES GCM via EVP... " >&6; } | ||
12961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12962 | /* end confdefs.h. */ | ||
12963 | |||
12964 | #include <string.h> | ||
12965 | #include <openssl/evp.h> | ||
12966 | |||
12967 | int | ||
12968 | main () | ||
12969 | { | ||
12970 | |||
12971 | exit(EVP_aes_128_gcm() == NULL || | ||
12972 | EVP_aes_256_gcm() == NULL || | ||
12973 | EVP_CTRL_GCM_SET_IV_FIXED == 0 || | ||
12974 | EVP_CTRL_GCM_IV_GEN == 0 || | ||
12975 | EVP_CTRL_GCM_SET_TAG == 0 || | ||
12976 | EVP_CTRL_GCM_GET_TAG == 0 || | ||
12977 | EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0); | ||
12978 | |||
12979 | ; | ||
12980 | return 0; | ||
12981 | } | ||
12982 | _ACEOF | ||
12983 | if ac_fn_c_try_link "$LINENO"; then : | ||
12984 | |||
12985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12986 | $as_echo "yes" >&6; } | ||
12987 | |||
12988 | $as_echo "#define OPENSSL_HAVE_EVPGCM 1" >>confdefs.h | ||
12989 | |||
12990 | |||
12991 | else | ||
12992 | |||
12993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12994 | $as_echo "no" >&6; } | ||
12995 | unsupported_algorithms="$unsupported_cipers \ | ||
12996 | aes128-gcm@openssh.com \ | ||
12997 | aes256-gcm@openssh.com" | ||
12998 | |||
12999 | |||
13000 | fi | ||
13001 | rm -f core conftest.err conftest.$ac_objext \ | ||
13002 | conftest$ac_exeext conftest.$ac_ext | ||
13003 | |||
13004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_CIPHER_CTX_ctrl" >&5 | ||
13005 | $as_echo_n "checking for library containing EVP_CIPHER_CTX_ctrl... " >&6; } | ||
13006 | if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : | ||
13007 | $as_echo_n "(cached) " >&6 | ||
13008 | else | ||
13009 | ac_func_search_save_LIBS=$LIBS | ||
13010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13011 | /* end confdefs.h. */ | ||
13012 | |||
13013 | /* Override any GCC internal prototype to avoid an error. | ||
13014 | Use char because int might match the return type of a GCC | ||
13015 | builtin and then its argument prototype would still apply. */ | ||
13016 | #ifdef __cplusplus | ||
13017 | extern "C" | ||
13018 | #endif | ||
13019 | char EVP_CIPHER_CTX_ctrl (); | ||
13020 | int | ||
13021 | main () | ||
13022 | { | ||
13023 | return EVP_CIPHER_CTX_ctrl (); | ||
13024 | ; | ||
13025 | return 0; | ||
13026 | } | ||
13027 | _ACEOF | ||
13028 | for ac_lib in '' crypto; do | ||
13029 | if test -z "$ac_lib"; then | ||
13030 | ac_res="none required" | ||
13031 | else | ||
13032 | ac_res=-l$ac_lib | ||
13033 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
13034 | fi | ||
13035 | if ac_fn_c_try_link "$LINENO"; then : | ||
13036 | ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res | ||
13037 | fi | ||
13038 | rm -f core conftest.err conftest.$ac_objext \ | ||
13039 | conftest$ac_exeext | ||
13040 | if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : | ||
13041 | break | ||
13042 | fi | ||
13043 | done | ||
13044 | if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : | ||
13045 | |||
13046 | else | ||
13047 | ac_cv_search_EVP_CIPHER_CTX_ctrl=no | ||
13048 | fi | ||
13049 | rm conftest.$ac_ext | ||
13050 | LIBS=$ac_func_search_save_LIBS | ||
13051 | fi | ||
13052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5 | ||
13053 | $as_echo "$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; } | ||
13054 | ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl | ||
13055 | if test "$ac_res" != no; then : | ||
13056 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
13057 | |||
13058 | $as_echo "#define HAVE_EVP_CIPHER_CTX_CTRL 1" >>confdefs.h | ||
13059 | |||
13060 | fi | ||
13061 | |||
13062 | |||
13063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5 | ||
13064 | $as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; } | ||
13065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13066 | /* end confdefs.h. */ | ||
13067 | |||
13068 | #include <string.h> | ||
13069 | #include <openssl/evp.h> | ||
13070 | |||
13071 | int | ||
13072 | main () | ||
13073 | { | ||
13074 | |||
13075 | if(EVP_DigestUpdate(NULL, NULL,0)) | ||
13076 | exit(0); | ||
13077 | |||
13078 | ; | ||
13079 | return 0; | ||
13080 | } | ||
13081 | _ACEOF | ||
13082 | if ac_fn_c_try_link "$LINENO"; then : | ||
13083 | |||
13084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13085 | $as_echo "yes" >&6; } | ||
13086 | |||
13087 | else | ||
13088 | |||
13089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13090 | $as_echo "no" >&6; } | ||
13091 | |||
13092 | $as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h | ||
13093 | |||
13094 | |||
13095 | |||
13096 | fi | ||
13097 | rm -f core conftest.err conftest.$ac_objext \ | ||
13098 | conftest$ac_exeext conftest.$ac_ext | ||
13099 | |||
13100 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
13101 | # because the system crypt() is more featureful. | ||
13102 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
13103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 | ||
13104 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } | ||
13105 | if ${ac_cv_lib_crypt_crypt+:} false; then : | ||
13106 | $as_echo_n "(cached) " >&6 | ||
13107 | else | ||
13108 | ac_check_lib_save_LIBS=$LIBS | ||
13109 | LIBS="-lcrypt $LIBS" | ||
13110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13111 | /* end confdefs.h. */ | ||
13112 | |||
13113 | /* Override any GCC internal prototype to avoid an error. | ||
13114 | Use char because int might match the return type of a GCC | ||
13115 | builtin and then its argument prototype would still apply. */ | ||
13116 | #ifdef __cplusplus | ||
13117 | extern "C" | ||
13118 | #endif | ||
13119 | char crypt (); | ||
13120 | int | ||
13121 | main () | ||
13122 | { | ||
13123 | return crypt (); | ||
13124 | ; | ||
13125 | return 0; | ||
13126 | } | ||
13127 | _ACEOF | ||
13128 | if ac_fn_c_try_link "$LINENO"; then : | ||
13129 | ac_cv_lib_crypt_crypt=yes | ||
13130 | else | ||
13131 | ac_cv_lib_crypt_crypt=no | ||
13132 | fi | ||
13133 | rm -f core conftest.err conftest.$ac_objext \ | ||
13134 | conftest$ac_exeext conftest.$ac_ext | ||
13135 | LIBS=$ac_check_lib_save_LIBS | ||
13136 | fi | ||
13137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 | ||
13138 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } | ||
13139 | if test "x$ac_cv_lib_crypt_crypt" = xyes; then : | ||
13140 | cat >>confdefs.h <<_ACEOF | ||
13141 | #define HAVE_LIBCRYPT 1 | ||
13142 | _ACEOF | ||
13143 | |||
13144 | LIBS="-lcrypt $LIBS" | ||
13145 | |||
13146 | fi | ||
13147 | |||
13148 | fi | ||
13149 | |||
13150 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
13151 | # version in OpenSSL. | ||
13152 | if test "x$check_for_libcrypt_later" = "x1"; then | ||
13153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 | ||
13154 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } | ||
13155 | if ${ac_cv_lib_crypt_crypt+:} false; then : | ||
13156 | $as_echo_n "(cached) " >&6 | ||
13157 | else | ||
13158 | ac_check_lib_save_LIBS=$LIBS | ||
13159 | LIBS="-lcrypt $LIBS" | ||
13160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13161 | /* end confdefs.h. */ | ||
13162 | |||
13163 | /* Override any GCC internal prototype to avoid an error. | ||
13164 | Use char because int might match the return type of a GCC | ||
13165 | builtin and then its argument prototype would still apply. */ | ||
13166 | #ifdef __cplusplus | ||
13167 | extern "C" | ||
13168 | #endif | ||
13169 | char crypt (); | ||
13170 | int | ||
13171 | main () | ||
13172 | { | ||
13173 | return crypt (); | ||
13174 | ; | ||
13175 | return 0; | ||
13176 | } | ||
13177 | _ACEOF | ||
13178 | if ac_fn_c_try_link "$LINENO"; then : | ||
13179 | ac_cv_lib_crypt_crypt=yes | ||
13180 | else | ||
13181 | ac_cv_lib_crypt_crypt=no | ||
13182 | fi | ||
13183 | rm -f core conftest.err conftest.$ac_objext \ | ||
13184 | conftest$ac_exeext conftest.$ac_ext | ||
13185 | LIBS=$ac_check_lib_save_LIBS | ||
13186 | fi | ||
13187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 | ||
13188 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } | ||
13189 | if test "x$ac_cv_lib_crypt_crypt" = xyes; then : | ||
13190 | LIBS="$LIBS -lcrypt" | ||
13191 | fi | ||
13192 | |||
13193 | fi | ||
13194 | for ac_func in crypt DES_crypt | ||
13195 | do : | ||
13196 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13197 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
13198 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
13199 | cat >>confdefs.h <<_ACEOF | ||
13200 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13201 | _ACEOF | ||
13202 | |||
13203 | fi | ||
13204 | done | ||
13205 | |||
13206 | |||
13207 | # Search for SHA256 support in libc and/or OpenSSL | ||
13208 | for ac_func in SHA256_Update EVP_sha256 | ||
13209 | do : | ||
13210 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13211 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
13212 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
13213 | cat >>confdefs.h <<_ACEOF | ||
13214 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13215 | _ACEOF | ||
13216 | |||
13217 | else | ||
13218 | unsupported_algorithms="$unsupported_algorithms \ | ||
13219 | hmac-sha2-256 \ | ||
13220 | hmac-sha2-512 \ | ||
13221 | diffie-hellman-group-exchange-sha256 \ | ||
13222 | hmac-sha2-256-etm@openssh.com \ | ||
13223 | hmac-sha2-512-etm@openssh.com" | ||
13224 | |||
13225 | |||
13226 | fi | ||
13227 | done | ||
13228 | |||
13229 | # Search for RIPE-MD support in OpenSSL | ||
13230 | for ac_func in EVP_ripemd160 | ||
13231 | do : | ||
13232 | ac_fn_c_check_func "$LINENO" "EVP_ripemd160" "ac_cv_func_EVP_ripemd160" | ||
13233 | if test "x$ac_cv_func_EVP_ripemd160" = xyes; then : | ||
13234 | cat >>confdefs.h <<_ACEOF | ||
13235 | #define HAVE_EVP_RIPEMD160 1 | ||
13236 | _ACEOF | ||
13237 | |||
13238 | else | ||
13239 | unsupported_algorithms="$unsupported_algorithms \ | ||
13240 | hmac-ripemd160 \ | ||
13241 | hmac-ripemd160@openssh.com \ | ||
13242 | hmac-ripemd160-etm@openssh.com" | ||
13243 | |||
13244 | |||
13245 | fi | ||
13246 | done | ||
13247 | |||
13248 | |||
13249 | # Check complete ECC support in OpenSSL | ||
13250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_X9_62_prime256v1" >&5 | ||
13251 | $as_echo_n "checking whether OpenSSL has NID_X9_62_prime256v1... " >&6; } | ||
13252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13253 | /* end confdefs.h. */ | ||
13254 | |||
13255 | #include <openssl/ec.h> | ||
13256 | #include <openssl/ecdh.h> | ||
13257 | #include <openssl/ecdsa.h> | ||
13258 | #include <openssl/evp.h> | ||
13259 | #include <openssl/objects.h> | ||
13260 | #include <openssl/opensslv.h> | ||
13261 | |||
13262 | int | ||
13263 | main () | ||
13264 | { | ||
13265 | |||
13266 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); | ||
13267 | const EVP_MD *m = EVP_sha256(); /* We need this too */ | ||
13268 | |||
13269 | ; | ||
13270 | return 0; | ||
13271 | } | ||
13272 | _ACEOF | ||
13273 | if ac_fn_c_try_link "$LINENO"; then : | ||
13274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13275 | $as_echo "yes" >&6; } | ||
13276 | enable_nistp256=1 | ||
13277 | else | ||
13278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13279 | $as_echo "no" >&6; } | ||
13280 | |||
13281 | fi | ||
13282 | rm -f core conftest.err conftest.$ac_objext \ | ||
13283 | conftest$ac_exeext conftest.$ac_ext | ||
13284 | |||
13285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp384r1" >&5 | ||
13286 | $as_echo_n "checking whether OpenSSL has NID_secp384r1... " >&6; } | ||
13287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13288 | /* end confdefs.h. */ | ||
13289 | |||
13290 | #include <openssl/ec.h> | ||
13291 | #include <openssl/ecdh.h> | ||
13292 | #include <openssl/ecdsa.h> | ||
13293 | #include <openssl/evp.h> | ||
13294 | #include <openssl/objects.h> | ||
13295 | #include <openssl/opensslv.h> | ||
13296 | |||
13297 | int | ||
13298 | main () | ||
13299 | { | ||
13300 | |||
13301 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1); | ||
13302 | const EVP_MD *m = EVP_sha384(); /* We need this too */ | ||
13303 | |||
13304 | ; | ||
13305 | return 0; | ||
13306 | } | ||
13307 | _ACEOF | ||
13308 | if ac_fn_c_try_link "$LINENO"; then : | ||
13309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13310 | $as_echo "yes" >&6; } | ||
13311 | enable_nistp384=1 | ||
13312 | else | ||
13313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13314 | $as_echo "no" >&6; } | ||
13315 | |||
13316 | fi | ||
13317 | rm -f core conftest.err conftest.$ac_objext \ | ||
13318 | conftest$ac_exeext conftest.$ac_ext | ||
13319 | |||
13320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp521r1" >&5 | ||
13321 | $as_echo_n "checking whether OpenSSL has NID_secp521r1... " >&6; } | ||
13322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13323 | /* end confdefs.h. */ | ||
13324 | |||
13325 | #include <openssl/ec.h> | ||
13326 | #include <openssl/ecdh.h> | ||
13327 | #include <openssl/ecdsa.h> | ||
13328 | #include <openssl/evp.h> | ||
13329 | #include <openssl/objects.h> | ||
13330 | #include <openssl/opensslv.h> | ||
13331 | |||
13332 | int | ||
13333 | main () | ||
13334 | { | ||
13335 | |||
13336 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); | ||
13337 | const EVP_MD *m = EVP_sha512(); /* We need this too */ | ||
13338 | |||
13339 | ; | ||
13340 | return 0; | ||
13341 | } | ||
13342 | _ACEOF | ||
13343 | if ac_fn_c_try_link "$LINENO"; then : | ||
13344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13345 | $as_echo "yes" >&6; } | ||
13346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL's NID_secp521r1 is functional" >&5 | ||
13347 | $as_echo_n "checking if OpenSSL's NID_secp521r1 is functional... " >&6; } | ||
13348 | if test "$cross_compiling" = yes; then : | ||
13349 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: assuming yes" >&5 | ||
13350 | $as_echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;} | ||
13351 | enable_nistp521=1 | ||
13352 | |||
13353 | else | ||
13354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13355 | /* end confdefs.h. */ | ||
13356 | |||
13357 | #include <openssl/ec.h> | ||
13358 | #include <openssl/ecdh.h> | ||
13359 | #include <openssl/ecdsa.h> | ||
13360 | #include <openssl/evp.h> | ||
13361 | #include <openssl/objects.h> | ||
13362 | #include <openssl/opensslv.h> | ||
13363 | |||
13364 | int | ||
13365 | main () | ||
13366 | { | ||
13367 | |||
13368 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); | ||
13369 | const EVP_MD *m = EVP_sha512(); /* We need this too */ | ||
13370 | exit(e == NULL || m == NULL); | ||
13371 | |||
13372 | ; | ||
13373 | return 0; | ||
13374 | } | ||
13375 | _ACEOF | ||
13376 | if ac_fn_c_try_run "$LINENO"; then : | ||
13377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13378 | $as_echo "yes" >&6; } | ||
13379 | enable_nistp521=1 | ||
13380 | else | ||
13381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13382 | $as_echo "no" >&6; } | ||
13383 | fi | ||
13384 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
13385 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
13386 | fi | ||
13387 | |||
13388 | else | ||
13389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13390 | $as_echo "no" >&6; } | ||
13391 | |||
13392 | fi | ||
13393 | rm -f core conftest.err conftest.$ac_objext \ | ||
13394 | conftest$ac_exeext conftest.$ac_ext | ||
13395 | |||
13396 | COMMENT_OUT_ECC="#no ecc#" | ||
13397 | TEST_SSH_ECC=no | ||
13398 | |||
13399 | if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \ | ||
13400 | test x$enable_nistp521 = x1; then | ||
13401 | |||
13402 | $as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h | ||
13403 | |||
13404 | fi | ||
13405 | if test x$enable_nistp256 = x1; then | ||
13406 | |||
13407 | $as_echo "#define OPENSSL_HAS_NISTP256 1" >>confdefs.h | ||
13408 | |||
13409 | TEST_SSH_ECC=yes | ||
13410 | COMMENT_OUT_ECC="" | ||
13411 | else | ||
13412 | unsupported_algorithms="$unsupported_algorithms \ | ||
13413 | ecdsa-sha2-nistp256 \ | ||
13414 | ecdh-sha2-nistp256 \ | ||
13415 | ecdsa-sha2-nistp256-cert-v01@openssh.com" | ||
13416 | fi | ||
13417 | if test x$enable_nistp384 = x1; then | ||
13418 | |||
13419 | $as_echo "#define OPENSSL_HAS_NISTP384 1" >>confdefs.h | ||
13420 | |||
13421 | TEST_SSH_ECC=yes | ||
13422 | COMMENT_OUT_ECC="" | ||
13423 | else | ||
13424 | unsupported_algorithms="$unsupported_algorithms \ | ||
13425 | ecdsa-sha2-nistp384 \ | ||
13426 | ecdh-sha2-nistp384 \ | ||
13427 | ecdsa-sha2-nistp384-cert-v01@openssh.com" | ||
13428 | fi | ||
13429 | if test x$enable_nistp521 = x1; then | ||
13430 | |||
13431 | $as_echo "#define OPENSSL_HAS_NISTP521 1" >>confdefs.h | ||
13432 | |||
13433 | TEST_SSH_ECC=yes | ||
13434 | COMMENT_OUT_ECC="" | ||
13435 | else | ||
13436 | unsupported_algorithms="$unsupported_algorithms \ | ||
13437 | ecdh-sha2-nistp521 \ | ||
13438 | ecdsa-sha2-nistp521 \ | ||
13439 | ecdsa-sha2-nistp521-cert-v01@openssh.com" | ||
13440 | fi | ||
13441 | |||
13442 | |||
13443 | |||
13444 | else | ||
13445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 | ||
13446 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } | ||
13447 | if ${ac_cv_lib_crypt_crypt+:} false; then : | ||
13448 | $as_echo_n "(cached) " >&6 | ||
13449 | else | ||
13450 | ac_check_lib_save_LIBS=$LIBS | ||
13451 | LIBS="-lcrypt $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 crypt (); | ||
13462 | int | ||
13463 | main () | ||
13464 | { | ||
13465 | return crypt (); | ||
13466 | ; | ||
13467 | return 0; | ||
13468 | } | ||
13469 | _ACEOF | ||
13470 | if ac_fn_c_try_link "$LINENO"; then : | ||
13471 | ac_cv_lib_crypt_crypt=yes | ||
13472 | else | ||
13473 | ac_cv_lib_crypt_crypt=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_crypt_crypt" >&5 | ||
13480 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } | ||
13481 | if test "x$ac_cv_lib_crypt_crypt" = xyes; then : | ||
13482 | LIBS="$LIBS -lcrypt" | ||
13483 | fi | ||
13484 | |||
13485 | for ac_func in crypt | ||
13486 | do : | ||
13487 | ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" | ||
13488 | if test "x$ac_cv_func_crypt" = xyes; then : | ||
13489 | cat >>confdefs.h <<_ACEOF | ||
13490 | #define HAVE_CRYPT 1 | ||
13491 | _ACEOF | ||
13492 | |||
13493 | fi | ||
13494 | done | ||
13495 | |||
13496 | fi | ||
13497 | |||
13498 | for ac_func in \ | ||
13499 | arc4random \ | ||
13500 | arc4random_buf \ | ||
13501 | arc4random_stir \ | ||
13502 | arc4random_uniform \ | ||
13503 | |||
13504 | do : | ||
13505 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13506 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
13507 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
13508 | cat >>confdefs.h <<_ACEOF | ||
13509 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13510 | _ACEOF | ||
13511 | |||
13512 | fi | ||
13513 | done | ||
13514 | |||
13515 | |||
13516 | saved_LIBS="$LIBS" | ||
13517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5 | ||
13518 | $as_echo_n "checking for ia_openinfo in -liaf... " >&6; } | ||
13519 | if ${ac_cv_lib_iaf_ia_openinfo+:} false; then : | ||
13520 | $as_echo_n "(cached) " >&6 | ||
13521 | else | ||
13522 | ac_check_lib_save_LIBS=$LIBS | ||
13523 | LIBS="-liaf $LIBS" | ||
13524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13525 | /* end confdefs.h. */ | ||
13526 | |||
13527 | /* Override any GCC internal prototype to avoid an error. | ||
13528 | Use char because int might match the return type of a GCC | ||
13529 | builtin and then its argument prototype would still apply. */ | ||
13530 | #ifdef __cplusplus | ||
13531 | extern "C" | ||
13532 | #endif | ||
13533 | char ia_openinfo (); | ||
13534 | int | ||
13535 | main () | ||
13536 | { | ||
13537 | return ia_openinfo (); | ||
13538 | ; | ||
13539 | return 0; | ||
13540 | } | ||
13541 | _ACEOF | ||
13542 | if ac_fn_c_try_link "$LINENO"; then : | ||
13543 | ac_cv_lib_iaf_ia_openinfo=yes | ||
13544 | else | ||
13545 | ac_cv_lib_iaf_ia_openinfo=no | ||
13546 | fi | ||
13547 | rm -f core conftest.err conftest.$ac_objext \ | ||
13548 | conftest$ac_exeext conftest.$ac_ext | ||
13549 | LIBS=$ac_check_lib_save_LIBS | ||
13550 | fi | ||
13551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5 | ||
13552 | $as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; } | ||
13553 | if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then : | ||
13554 | |||
13555 | LIBS="$LIBS -liaf" | ||
13556 | for ac_func in set_id | ||
13557 | do : | ||
13558 | ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id" | ||
13559 | if test "x$ac_cv_func_set_id" = xyes; then : | ||
13560 | cat >>confdefs.h <<_ACEOF | ||
13561 | #define HAVE_SET_ID 1 | ||
13562 | _ACEOF | ||
13563 | SSHDLIBS="$SSHDLIBS -liaf" | ||
13564 | |||
13565 | $as_echo "#define HAVE_LIBIAF 1" >>confdefs.h | ||
13566 | |||
13567 | |||
13568 | fi | ||
13569 | done | ||
13570 | |||
13571 | |||
13572 | fi | ||
13573 | |||
13574 | LIBS="$saved_LIBS" | ||
13575 | |||
13576 | ### Configure cryptographic random number support | ||
13577 | |||
13578 | # Check wheter OpenSSL seeds itself | ||
13579 | if test "x$openssl" = "xyes" ; then | ||
13580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
13581 | $as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; } | ||
13582 | if test "$cross_compiling" = yes; then : | ||
13583 | |||
13584 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
13585 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
13586 | # This is safe, since we will fatal() at runtime if | ||
13587 | # OpenSSL is not seeded correctly. | ||
13588 | OPENSSL_SEEDS_ITSELF=yes | ||
13589 | |||
13590 | |||
13591 | else | ||
13592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13593 | /* end confdefs.h. */ | ||
13594 | |||
13595 | #include <string.h> | ||
13596 | #include <openssl/rand.h> | ||
13597 | |||
13598 | int | ||
13599 | main () | ||
13600 | { | ||
13601 | |||
13602 | exit(RAND_status() == 1 ? 0 : 1); | ||
13603 | |||
13604 | ; | ||
13605 | return 0; | ||
13606 | } | ||
13607 | _ACEOF | ||
13608 | if ac_fn_c_try_run "$LINENO"; then : | ||
13609 | |||
13610 | OPENSSL_SEEDS_ITSELF=yes | ||
13611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13612 | $as_echo "yes" >&6; } | ||
13613 | |||
13614 | else | ||
13615 | |||
13616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13617 | $as_echo "no" >&6; } | ||
13618 | |||
13619 | fi | ||
13620 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
13621 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
13622 | fi | ||
13623 | |||
13624 | fi | ||
13625 | |||
13626 | # PRNGD TCP socket | ||
13627 | |||
13628 | # Check whether --with-prngd-port was given. | ||
13629 | if test "${with_prngd_port+set}" = set; then : | ||
13630 | withval=$with_prngd_port; | ||
13631 | case "$withval" in | ||
13632 | no) | ||
13633 | withval="" | ||
13634 | ;; | ||
13635 | [0-9]*) | ||
13636 | ;; | ||
13637 | *) | ||
13638 | as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5 | ||
13639 | ;; | ||
13640 | esac | ||
13641 | if test ! -z "$withval" ; then | ||
13642 | PRNGD_PORT="$withval" | ||
13643 | |||
13644 | cat >>confdefs.h <<_ACEOF | ||
13645 | #define PRNGD_PORT $PRNGD_PORT | ||
13646 | _ACEOF | ||
13647 | |||
13648 | fi | ||
13649 | |||
13650 | |||
13651 | fi | ||
13652 | |||
13653 | |||
13654 | # PRNGD Unix domain socket | ||
13655 | |||
13656 | # Check whether --with-prngd-socket was given. | ||
13657 | if test "${with_prngd_socket+set}" = set; then : | ||
13658 | withval=$with_prngd_socket; | ||
13659 | case "$withval" in | ||
13660 | yes) | ||
13661 | withval="/var/run/egd-pool" | ||
13662 | ;; | ||
13663 | no) | ||
13664 | withval="" | ||
13665 | ;; | ||
13666 | /*) | ||
13667 | ;; | ||
13668 | *) | ||
13669 | as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5 | ||
13670 | ;; | ||
13671 | esac | ||
13672 | |||
13673 | if test ! -z "$withval" ; then | ||
13674 | if test ! -z "$PRNGD_PORT" ; then | ||
13675 | as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5 | ||
13676 | fi | ||
13677 | if test ! -r "$withval" ; then | ||
13678 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5 | ||
13679 | $as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
13680 | fi | ||
13681 | PRNGD_SOCKET="$withval" | ||
13682 | |||
13683 | cat >>confdefs.h <<_ACEOF | ||
13684 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
13685 | _ACEOF | ||
13686 | |||
13687 | fi | ||
13688 | |||
13689 | else | ||
13690 | |||
13691 | # Check for existing socket only if we don't have a random device already | ||
13692 | if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then | ||
13693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5 | ||
13694 | $as_echo_n "checking for PRNGD/EGD socket... " >&6; } | ||
13695 | # Insert other locations here | ||
13696 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
13697 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
13698 | PRNGD_SOCKET="$sock" | ||
13699 | cat >>confdefs.h <<_ACEOF | ||
13700 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
13701 | _ACEOF | ||
13702 | |||
13703 | break; | ||
13704 | fi | ||
13705 | done | ||
13706 | if test ! -z "$PRNGD_SOCKET" ; then | ||
13707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5 | ||
13708 | $as_echo "$PRNGD_SOCKET" >&6; } | ||
13709 | else | ||
13710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
13711 | $as_echo "not found" >&6; } | ||
13712 | fi | ||
13713 | fi | ||
13714 | |||
13715 | |||
13716 | fi | ||
13717 | |||
13718 | |||
13719 | # Which randomness source do we use? | ||
13720 | if test ! -z "$PRNGD_PORT" ; then | ||
13721 | RAND_MSG="PRNGd port $PRNGD_PORT" | ||
13722 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
13723 | RAND_MSG="PRNGd socket $PRNGD_SOCKET" | ||
13724 | elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
13725 | |||
13726 | $as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h | ||
13727 | |||
13728 | RAND_MSG="OpenSSL internal ONLY" | ||
13729 | elif test "x$openssl" = "xno" ; then | ||
13730 | { $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 | ||
13731 | $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;} | ||
13732 | else | ||
13733 | 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 | ||
13734 | fi | ||
13735 | |||
13736 | # Check for PAM libs | ||
13737 | PAM_MSG="no" | ||
13738 | |||
13739 | # Check whether --with-pam was given. | ||
13740 | if test "${with_pam+set}" = set; then : | ||
13741 | withval=$with_pam; | ||
13742 | if test "x$withval" != "xno" ; then | ||
13743 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ | ||
13744 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then | ||
13745 | as_fn_error $? "PAM headers not found" "$LINENO" 5 | ||
13746 | fi | ||
13747 | |||
13748 | saved_LIBS="$LIBS" | ||
13749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
13750 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
13751 | if ${ac_cv_lib_dl_dlopen+:} false; then : | ||
13752 | $as_echo_n "(cached) " >&6 | ||
13753 | else | ||
13754 | ac_check_lib_save_LIBS=$LIBS | ||
13755 | LIBS="-ldl $LIBS" | ||
13756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13757 | /* end confdefs.h. */ | ||
13758 | |||
13759 | /* Override any GCC internal prototype to avoid an error. | ||
13760 | Use char because int might match the return type of a GCC | ||
13761 | builtin and then its argument prototype would still apply. */ | ||
13762 | #ifdef __cplusplus | ||
13763 | extern "C" | ||
13764 | #endif | ||
13765 | char dlopen (); | ||
13766 | int | ||
13767 | main () | ||
13768 | { | ||
13769 | return dlopen (); | ||
13770 | ; | ||
13771 | return 0; | ||
13772 | } | ||
13773 | _ACEOF | ||
13774 | if ac_fn_c_try_link "$LINENO"; then : | ||
13775 | ac_cv_lib_dl_dlopen=yes | ||
13776 | else | ||
13777 | ac_cv_lib_dl_dlopen=no | ||
13778 | fi | ||
13779 | rm -f core conftest.err conftest.$ac_objext \ | ||
13780 | conftest$ac_exeext conftest.$ac_ext | ||
13781 | LIBS=$ac_check_lib_save_LIBS | ||
13782 | fi | ||
13783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
13784 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
13785 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | ||
13786 | cat >>confdefs.h <<_ACEOF | ||
13787 | #define HAVE_LIBDL 1 | ||
13788 | _ACEOF | ||
13789 | |||
13790 | LIBS="-ldl $LIBS" | ||
13791 | |||
13792 | fi | ||
13793 | |||
13794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5 | ||
13795 | $as_echo_n "checking for pam_set_item in -lpam... " >&6; } | ||
13796 | if ${ac_cv_lib_pam_pam_set_item+:} false; then : | ||
13797 | $as_echo_n "(cached) " >&6 | ||
13798 | else | ||
13799 | ac_check_lib_save_LIBS=$LIBS | ||
13800 | LIBS="-lpam $LIBS" | ||
13801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13802 | /* end confdefs.h. */ | ||
13803 | |||
13804 | /* Override any GCC internal prototype to avoid an error. | ||
13805 | Use char because int might match the return type of a GCC | ||
13806 | builtin and then its argument prototype would still apply. */ | ||
13807 | #ifdef __cplusplus | ||
13808 | extern "C" | ||
13809 | #endif | ||
13810 | char pam_set_item (); | ||
13811 | int | ||
13812 | main () | ||
13813 | { | ||
13814 | return pam_set_item (); | ||
13815 | ; | ||
13816 | return 0; | ||
13817 | } | ||
13818 | _ACEOF | ||
13819 | if ac_fn_c_try_link "$LINENO"; then : | ||
13820 | ac_cv_lib_pam_pam_set_item=yes | ||
13821 | else | ||
13822 | ac_cv_lib_pam_pam_set_item=no | ||
13823 | fi | ||
13824 | rm -f core conftest.err conftest.$ac_objext \ | ||
13825 | conftest$ac_exeext conftest.$ac_ext | ||
13826 | LIBS=$ac_check_lib_save_LIBS | ||
13827 | fi | ||
13828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
13829 | $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; } | ||
13830 | if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then : | ||
13831 | cat >>confdefs.h <<_ACEOF | ||
13832 | #define HAVE_LIBPAM 1 | ||
13833 | _ACEOF | ||
13834 | |||
13835 | LIBS="-lpam $LIBS" | ||
13836 | |||
13837 | else | ||
13838 | as_fn_error $? "*** libpam missing" "$LINENO" 5 | ||
13839 | fi | ||
13840 | |||
13841 | for ac_func in pam_getenvlist | ||
13842 | do : | ||
13843 | ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist" | ||
13844 | if test "x$ac_cv_func_pam_getenvlist" = xyes; then : | ||
13845 | cat >>confdefs.h <<_ACEOF | ||
13846 | #define HAVE_PAM_GETENVLIST 1 | ||
13847 | _ACEOF | ||
13848 | |||
13849 | fi | ||
13850 | done | ||
13851 | |||
13852 | for ac_func in pam_putenv | ||
13853 | do : | ||
13854 | ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv" | ||
13855 | if test "x$ac_cv_func_pam_putenv" = xyes; then : | ||
13856 | cat >>confdefs.h <<_ACEOF | ||
13857 | #define HAVE_PAM_PUTENV 1 | ||
13858 | _ACEOF | ||
13859 | |||
13860 | fi | ||
13861 | done | ||
13862 | |||
13863 | LIBS="$saved_LIBS" | ||
13864 | |||
13865 | PAM_MSG="yes" | ||
13866 | |||
13867 | SSHDLIBS="$SSHDLIBS -lpam" | ||
13868 | |||
13869 | $as_echo "#define USE_PAM 1" >>confdefs.h | ||
13870 | |||
13871 | |||
13872 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
13873 | case "$LIBS" in | ||
13874 | *-ldl*) | ||
13875 | # libdl already in LIBS | ||
13876 | ;; | ||
13877 | *) | ||
13878 | SSHDLIBS="$SSHDLIBS -ldl" | ||
13879 | ;; | ||
13880 | esac | ||
13881 | fi | ||
13882 | fi | ||
13883 | |||
13884 | |||
13885 | fi | ||
13886 | |||
13887 | |||
13888 | |||
13889 | # Check whether --with-pam-service was given. | ||
13890 | if test "${with_pam_service+set}" = set; then : | ||
13891 | withval=$with_pam_service; | ||
13892 | if test "x$withval" != "xno" && \ | ||
13893 | test "x$withval" != "xyes" ; then | ||
13894 | |||
13895 | cat >>confdefs.h <<_ACEOF | ||
13896 | #define SSHD_PAM_SERVICE "$withval" | ||
13897 | _ACEOF | ||
13898 | |||
13899 | fi | ||
13900 | |||
13901 | |||
13902 | fi | ||
13903 | |||
13904 | |||
13905 | # Check for older PAM | ||
13906 | if test "x$PAM_MSG" = "xyes" ; then | ||
13907 | # Check PAM strerror arguments (old PAM) | ||
13908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5 | ||
13909 | $as_echo_n "checking whether pam_strerror takes only one argument... " >&6; } | ||
13910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13911 | /* end confdefs.h. */ | ||
13912 | |||
13913 | #include <stdlib.h> | ||
13914 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
13915 | #include <security/pam_appl.h> | ||
13916 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
13917 | #include <pam/pam_appl.h> | ||
13918 | #endif | ||
13919 | |||
13920 | int | ||
13921 | main () | ||
13922 | { | ||
13923 | |||
13924 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
13925 | |||
13926 | ; | ||
13927 | return 0; | ||
13928 | } | ||
13929 | _ACEOF | ||
13930 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13932 | $as_echo "no" >&6; } | ||
13933 | else | ||
13934 | |||
13935 | |||
13936 | $as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h | ||
13937 | |||
13938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13939 | $as_echo "yes" >&6; } | ||
13940 | PAM_MSG="yes (old library)" | ||
13941 | |||
13942 | |||
13943 | fi | ||
13944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13945 | fi | ||
13946 | |||
13947 | case "$host" in | ||
13948 | *-*-cygwin*) | ||
13949 | SSH_PRIVSEP_USER=CYGWIN_SSH_PRIVSEP_USER | ||
13950 | ;; | ||
13951 | *) | ||
13952 | SSH_PRIVSEP_USER=sshd | ||
13953 | ;; | ||
13954 | esac | ||
13955 | |||
13956 | # Check whether --with-privsep-user was given. | ||
13957 | if test "${with_privsep_user+set}" = set; then : | ||
13958 | withval=$with_privsep_user; | ||
13959 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
13960 | test "x${withval}" != "xyes"; then | ||
13961 | SSH_PRIVSEP_USER=$withval | ||
13962 | fi | ||
13963 | |||
13964 | |||
13965 | fi | ||
13966 | |||
13967 | if test "x$SSH_PRIVSEP_USER" = "xCYGWIN_SSH_PRIVSEP_USER" ; then | ||
13968 | |||
13969 | cat >>confdefs.h <<_ACEOF | ||
13970 | #define SSH_PRIVSEP_USER CYGWIN_SSH_PRIVSEP_USER | ||
13971 | _ACEOF | ||
13972 | |||
13973 | else | ||
13974 | |||
13975 | cat >>confdefs.h <<_ACEOF | ||
13976 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
13977 | _ACEOF | ||
13978 | |||
13979 | fi | ||
13980 | |||
13981 | |||
13982 | if test "x$have_linux_no_new_privs" = "x1" ; then | ||
13983 | ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" " | ||
13984 | #include <sys/types.h> | ||
13985 | #include <linux/seccomp.h> | ||
13986 | |||
13987 | " | ||
13988 | if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then : | ||
13989 | have_seccomp_filter=1 | ||
13990 | fi | ||
13991 | |||
13992 | fi | ||
13993 | if test "x$have_seccomp_filter" = "x1" ; then | ||
13994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5 | ||
13995 | $as_echo_n "checking kernel for seccomp_filter support... " >&6; } | ||
13996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13997 | /* end confdefs.h. */ | ||
13998 | |||
13999 | #include <errno.h> | ||
14000 | #include <elf.h> | ||
14001 | #include <linux/audit.h> | ||
14002 | #include <linux/seccomp.h> | ||
14003 | #include <stdlib.h> | ||
14004 | #include <sys/prctl.h> | ||
14005 | |||
14006 | int | ||
14007 | main () | ||
14008 | { | ||
14009 | int i = $seccomp_audit_arch; | ||
14010 | errno = 0; | ||
14011 | prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0); | ||
14012 | exit(errno == EFAULT ? 0 : 1); | ||
14013 | ; | ||
14014 | return 0; | ||
14015 | } | ||
14016 | _ACEOF | ||
14017 | if ac_fn_c_try_link "$LINENO"; then : | ||
14018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14019 | $as_echo "yes" >&6; } | ||
14020 | else | ||
14021 | |||
14022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14023 | $as_echo "no" >&6; } | ||
14024 | # Disable seccomp filter as a target | ||
14025 | have_seccomp_filter=0 | ||
14026 | |||
14027 | |||
14028 | fi | ||
14029 | rm -f core conftest.err conftest.$ac_objext \ | ||
14030 | conftest$ac_exeext conftest.$ac_ext | ||
14031 | fi | ||
14032 | |||
14033 | # Decide which sandbox style to use | ||
14034 | sandbox_arg="" | ||
14035 | |||
14036 | # Check whether --with-sandbox was given. | ||
14037 | if test "${with_sandbox+set}" = set; then : | ||
14038 | withval=$with_sandbox; | ||
14039 | if test "x$withval" = "xyes" ; then | ||
14040 | sandbox_arg="" | ||
14041 | else | ||
14042 | sandbox_arg="$withval" | ||
14043 | fi | ||
14044 | |||
14045 | |||
14046 | fi | ||
14047 | |||
14048 | |||
14049 | # Some platforms (seems to be the ones that have a kernel poll(2)-type | ||
14050 | # function with which they implement select(2)) use an extra file descriptor | ||
14051 | # when calling select(2), which means we can't use the rlimit sandbox. | ||
14052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select works with descriptor rlimit" >&5 | ||
14053 | $as_echo_n "checking if select works with descriptor rlimit... " >&6; } | ||
14054 | if test "$cross_compiling" = yes; then : | ||
14055 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
14056 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
14057 | select_works_with_rlimit=yes | ||
14058 | |||
14059 | else | ||
14060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14061 | /* end confdefs.h. */ | ||
14062 | |||
14063 | #include <sys/types.h> | ||
14064 | #ifdef HAVE_SYS_TIME_H | ||
14065 | # include <sys/time.h> | ||
14066 | #endif | ||
14067 | #include <sys/resource.h> | ||
14068 | #ifdef HAVE_SYS_SELECT_H | ||
14069 | # include <sys/select.h> | ||
14070 | #endif | ||
14071 | #include <errno.h> | ||
14072 | #include <fcntl.h> | ||
14073 | #include <stdlib.h> | ||
14074 | |||
14075 | int | ||
14076 | main () | ||
14077 | { | ||
14078 | |||
14079 | struct rlimit rl_zero; | ||
14080 | int fd, r; | ||
14081 | fd_set fds; | ||
14082 | struct timeval tv; | ||
14083 | |||
14084 | fd = open("/dev/null", O_RDONLY); | ||
14085 | FD_ZERO(&fds); | ||
14086 | FD_SET(fd, &fds); | ||
14087 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
14088 | setrlimit(RLIMIT_FSIZE, &rl_zero); | ||
14089 | setrlimit(RLIMIT_NOFILE, &rl_zero); | ||
14090 | tv.tv_sec = 1; | ||
14091 | tv.tv_usec = 0; | ||
14092 | r = select(fd+1, &fds, NULL, NULL, &tv); | ||
14093 | exit (r == -1 ? 1 : 0); | ||
14094 | |||
14095 | ; | ||
14096 | return 0; | ||
14097 | } | ||
14098 | _ACEOF | ||
14099 | if ac_fn_c_try_run "$LINENO"; then : | ||
14100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14101 | $as_echo "yes" >&6; } | ||
14102 | select_works_with_rlimit=yes | ||
14103 | else | ||
14104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14105 | $as_echo "no" >&6; } | ||
14106 | select_works_with_rlimit=no | ||
14107 | fi | ||
14108 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
14109 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
14110 | fi | ||
14111 | |||
14112 | |||
14113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5 | ||
14114 | $as_echo_n "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... " >&6; } | ||
14115 | if test "$cross_compiling" = yes; then : | ||
14116 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
14117 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
14118 | rlimit_nofile_zero_works=yes | ||
14119 | |||
14120 | else | ||
14121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14122 | /* end confdefs.h. */ | ||
14123 | |||
14124 | #include <sys/types.h> | ||
14125 | #ifdef HAVE_SYS_TIME_H | ||
14126 | # include <sys/time.h> | ||
14127 | #endif | ||
14128 | #include <sys/resource.h> | ||
14129 | #include <errno.h> | ||
14130 | #include <stdlib.h> | ||
14131 | |||
14132 | int | ||
14133 | main () | ||
14134 | { | ||
14135 | |||
14136 | struct rlimit rl_zero; | ||
14137 | int fd, r; | ||
14138 | fd_set fds; | ||
14139 | |||
14140 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
14141 | r = setrlimit(RLIMIT_NOFILE, &rl_zero); | ||
14142 | exit (r == -1 ? 1 : 0); | ||
14143 | |||
14144 | ; | ||
14145 | return 0; | ||
14146 | } | ||
14147 | _ACEOF | ||
14148 | if ac_fn_c_try_run "$LINENO"; then : | ||
14149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14150 | $as_echo "yes" >&6; } | ||
14151 | rlimit_nofile_zero_works=yes | ||
14152 | else | ||
14153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14154 | $as_echo "no" >&6; } | ||
14155 | rlimit_nofile_zero_works=no | ||
14156 | fi | ||
14157 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
14158 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
14159 | fi | ||
14160 | |||
14161 | |||
14162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5 | ||
14163 | $as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; } | ||
14164 | if test "$cross_compiling" = yes; then : | ||
14165 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
14166 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
14167 | |||
14168 | else | ||
14169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14170 | /* end confdefs.h. */ | ||
14171 | |||
14172 | #include <sys/types.h> | ||
14173 | #include <sys/resource.h> | ||
14174 | #include <stdlib.h> | ||
14175 | |||
14176 | int | ||
14177 | main () | ||
14178 | { | ||
14179 | |||
14180 | struct rlimit rl_zero; | ||
14181 | |||
14182 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
14183 | exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0); | ||
14184 | |||
14185 | ; | ||
14186 | return 0; | ||
14187 | } | ||
14188 | _ACEOF | ||
14189 | if ac_fn_c_try_run "$LINENO"; then : | ||
14190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14191 | $as_echo "yes" >&6; } | ||
14192 | else | ||
14193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14194 | $as_echo "no" >&6; } | ||
14195 | |||
14196 | $as_echo "#define SANDBOX_SKIP_RLIMIT_FSIZE 1" >>confdefs.h | ||
14197 | |||
14198 | fi | ||
14199 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
14200 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
14201 | fi | ||
14202 | |||
14203 | |||
14204 | if test "x$sandbox_arg" = "xpledge" || \ | ||
14205 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_pledge" = "xyes" ) ; then | ||
14206 | test "x$ac_cv_func_pledge" != "xyes" && \ | ||
14207 | as_fn_error $? "pledge sandbox requires pledge(2) support" "$LINENO" 5 | ||
14208 | SANDBOX_STYLE="pledge" | ||
14209 | |||
14210 | $as_echo "#define SANDBOX_PLEDGE 1" >>confdefs.h | ||
14211 | |||
14212 | elif test "x$sandbox_arg" = "xsystrace" || \ | ||
14213 | ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then | ||
14214 | test "x$have_systr_policy_kill" != "x1" && \ | ||
14215 | as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5 | ||
14216 | SANDBOX_STYLE="systrace" | ||
14217 | |||
14218 | $as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h | ||
14219 | |||
14220 | elif test "x$sandbox_arg" = "xdarwin" || \ | ||
14221 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \ | ||
14222 | test "x$ac_cv_header_sandbox_h" = "xyes") ; then | ||
14223 | test "x$ac_cv_func_sandbox_init" != "xyes" -o \ | ||
14224 | "x$ac_cv_header_sandbox_h" != "xyes" && \ | ||
14225 | as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5 | ||
14226 | SANDBOX_STYLE="darwin" | ||
14227 | |||
14228 | $as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h | ||
14229 | |||
14230 | elif test "x$sandbox_arg" = "xseccomp_filter" || \ | ||
14231 | ( test -z "$sandbox_arg" && \ | ||
14232 | test "x$have_seccomp_filter" = "x1" && \ | ||
14233 | test "x$ac_cv_header_elf_h" = "xyes" && \ | ||
14234 | test "x$ac_cv_header_linux_audit_h" = "xyes" && \ | ||
14235 | test "x$ac_cv_header_linux_filter_h" = "xyes" && \ | ||
14236 | test "x$seccomp_audit_arch" != "x" && \ | ||
14237 | test "x$have_linux_no_new_privs" = "x1" && \ | ||
14238 | test "x$ac_cv_func_prctl" = "xyes" ) ; then | ||
14239 | test "x$seccomp_audit_arch" = "x" && \ | ||
14240 | as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5 | ||
14241 | test "x$have_linux_no_new_privs" != "x1" && \ | ||
14242 | as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5 | ||
14243 | test "x$have_seccomp_filter" != "x1" && \ | ||
14244 | as_fn_error $? "seccomp_filter sandbox requires seccomp headers" "$LINENO" 5 | ||
14245 | test "x$ac_cv_func_prctl" != "xyes" && \ | ||
14246 | as_fn_error $? "seccomp_filter sandbox requires prctl function" "$LINENO" 5 | ||
14247 | SANDBOX_STYLE="seccomp_filter" | ||
14248 | |||
14249 | $as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h | ||
14250 | |||
14251 | elif test "x$sandbox_arg" = "xcapsicum" || \ | ||
14252 | ( test -z "$sandbox_arg" && \ | ||
14253 | test "x$ac_cv_header_sys_capsicum_h" = "xyes" && \ | ||
14254 | test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then | ||
14255 | test "x$ac_cv_header_sys_capsicum_h" != "xyes" && \ | ||
14256 | as_fn_error $? "capsicum sandbox requires sys/capsicum.h header" "$LINENO" 5 | ||
14257 | test "x$ac_cv_func_cap_rights_limit" != "xyes" && \ | ||
14258 | as_fn_error $? "capsicum sandbox requires cap_rights_limit function" "$LINENO" 5 | ||
14259 | SANDBOX_STYLE="capsicum" | ||
14260 | |||
14261 | $as_echo "#define SANDBOX_CAPSICUM 1" >>confdefs.h | ||
14262 | |||
14263 | elif test "x$sandbox_arg" = "xrlimit" || \ | ||
14264 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \ | ||
14265 | test "x$select_works_with_rlimit" = "xyes" && \ | ||
14266 | test "x$rlimit_nofile_zero_works" = "xyes" ) ; then | ||
14267 | test "x$ac_cv_func_setrlimit" != "xyes" && \ | ||
14268 | as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5 | ||
14269 | test "x$select_works_with_rlimit" != "xyes" && \ | ||
14270 | as_fn_error $? "rlimit sandbox requires select to work with rlimit" "$LINENO" 5 | ||
14271 | SANDBOX_STYLE="rlimit" | ||
14272 | |||
14273 | $as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h | ||
14274 | |||
14275 | elif test "x$sandbox_arg" = "xsolaris" || \ | ||
14276 | ( test -z "$sandbox_arg" && test "x$SOLARIS_PRIVS" = "xyes" ) ; then | ||
14277 | SANDBOX_STYLE="solaris" | ||
14278 | |||
14279 | $as_echo "#define SANDBOX_SOLARIS 1" >>confdefs.h | ||
14280 | |||
14281 | elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \ | ||
14282 | test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then | ||
14283 | SANDBOX_STYLE="none" | ||
14284 | |||
14285 | $as_echo "#define SANDBOX_NULL 1" >>confdefs.h | ||
14286 | |||
14287 | else | ||
14288 | as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5 | ||
14289 | fi | ||
14290 | |||
14291 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
14292 | if test ! -z "$SONY" ; then | ||
14293 | LIBS="$LIBS -liberty"; | ||
14294 | fi | ||
14295 | |||
14296 | # Check for long long datatypes | ||
14297 | ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" | ||
14298 | if test "x$ac_cv_type_long_long" = xyes; then : | ||
14299 | |||
14300 | cat >>confdefs.h <<_ACEOF | ||
14301 | #define HAVE_LONG_LONG 1 | ||
14302 | _ACEOF | ||
14303 | |||
14304 | |||
14305 | fi | ||
14306 | ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default" | ||
14307 | if test "x$ac_cv_type_unsigned_long_long" = xyes; then : | ||
14308 | |||
14309 | cat >>confdefs.h <<_ACEOF | ||
14310 | #define HAVE_UNSIGNED_LONG_LONG 1 | ||
14311 | _ACEOF | ||
14312 | |||
14313 | |||
14314 | fi | ||
14315 | ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default" | ||
14316 | if test "x$ac_cv_type_long_double" = xyes; then : | ||
14317 | |||
14318 | cat >>confdefs.h <<_ACEOF | ||
14319 | #define HAVE_LONG_DOUBLE 1 | ||
14320 | _ACEOF | ||
14321 | |||
14322 | |||
14323 | fi | ||
14324 | |||
14325 | |||
14326 | # Check datatype sizes | ||
14327 | # The cast to long int works around a bug in the HP C Compiler | ||
14328 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
14329 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
14330 | # This bug is HP SR number 8606223364. | ||
14331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5 | ||
14332 | $as_echo_n "checking size of short int... " >&6; } | ||
14333 | if ${ac_cv_sizeof_short_int+:} false; then : | ||
14334 | $as_echo_n "(cached) " >&6 | ||
14335 | else | ||
14336 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then : | ||
14337 | |||
14338 | else | ||
14339 | if test "$ac_cv_type_short_int" = yes; then | ||
14340 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
14341 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
14342 | as_fn_error 77 "cannot compute sizeof (short int) | ||
14343 | See \`config.log' for more details" "$LINENO" 5; } | ||
14344 | else | ||
14345 | ac_cv_sizeof_short_int=0 | ||
14346 | fi | ||
14347 | fi | ||
14348 | |||
14349 | fi | ||
14350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5 | ||
14351 | $as_echo "$ac_cv_sizeof_short_int" >&6; } | ||
14352 | |||
14353 | |||
14354 | |||
14355 | cat >>confdefs.h <<_ACEOF | ||
14356 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
14357 | _ACEOF | ||
14358 | |||
14359 | |||
14360 | # The cast to long int works around a bug in the HP C Compiler | ||
14361 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
14362 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
14363 | # This bug is HP SR number 8606223364. | ||
14364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | ||
14365 | $as_echo_n "checking size of int... " >&6; } | ||
14366 | if ${ac_cv_sizeof_int+:} false; then : | ||
14367 | $as_echo_n "(cached) " >&6 | ||
14368 | else | ||
14369 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | ||
14370 | |||
14371 | else | ||
14372 | if test "$ac_cv_type_int" = yes; then | ||
14373 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
14374 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
14375 | as_fn_error 77 "cannot compute sizeof (int) | ||
14376 | See \`config.log' for more details" "$LINENO" 5; } | ||
14377 | else | ||
14378 | ac_cv_sizeof_int=0 | ||
14379 | fi | ||
14380 | fi | ||
14381 | |||
14382 | fi | ||
14383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | ||
14384 | $as_echo "$ac_cv_sizeof_int" >&6; } | ||
14385 | |||
14386 | |||
14387 | |||
14388 | cat >>confdefs.h <<_ACEOF | ||
14389 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
14390 | _ACEOF | ||
14391 | |||
14392 | |||
14393 | # The cast to long int works around a bug in the HP C Compiler | ||
14394 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
14395 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
14396 | # This bug is HP SR number 8606223364. | ||
14397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 | ||
14398 | $as_echo_n "checking size of long int... " >&6; } | ||
14399 | if ${ac_cv_sizeof_long_int+:} false; then : | ||
14400 | $as_echo_n "(cached) " >&6 | ||
14401 | else | ||
14402 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : | ||
14403 | |||
14404 | else | ||
14405 | if test "$ac_cv_type_long_int" = yes; then | ||
14406 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
14407 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
14408 | as_fn_error 77 "cannot compute sizeof (long int) | ||
14409 | See \`config.log' for more details" "$LINENO" 5; } | ||
14410 | else | ||
14411 | ac_cv_sizeof_long_int=0 | ||
14412 | fi | ||
14413 | fi | ||
14414 | |||
14415 | fi | ||
14416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 | ||
14417 | $as_echo "$ac_cv_sizeof_long_int" >&6; } | ||
14418 | |||
14419 | |||
14420 | |||
14421 | cat >>confdefs.h <<_ACEOF | ||
14422 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
14423 | _ACEOF | ||
14424 | |||
14425 | |||
14426 | # The cast to long int works around a bug in the HP C Compiler | ||
14427 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
14428 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
14429 | # This bug is HP SR number 8606223364. | ||
14430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5 | ||
14431 | $as_echo_n "checking size of long long int... " >&6; } | ||
14432 | if ${ac_cv_sizeof_long_long_int+:} false; then : | ||
14433 | $as_echo_n "(cached) " >&6 | ||
14434 | else | ||
14435 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then : | ||
14436 | |||
14437 | else | ||
14438 | if test "$ac_cv_type_long_long_int" = yes; then | ||
14439 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
14440 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
14441 | as_fn_error 77 "cannot compute sizeof (long long int) | ||
14442 | See \`config.log' for more details" "$LINENO" 5; } | ||
14443 | else | ||
14444 | ac_cv_sizeof_long_long_int=0 | ||
14445 | fi | ||
14446 | fi | ||
14447 | |||
14448 | fi | ||
14449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5 | ||
14450 | $as_echo "$ac_cv_sizeof_long_long_int" >&6; } | ||
14451 | |||
14452 | |||
14453 | |||
14454 | cat >>confdefs.h <<_ACEOF | ||
14455 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
14456 | _ACEOF | ||
14457 | |||
14458 | |||
14459 | |||
14460 | # Sanity check long long for some platforms (AIX) | ||
14461 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
14462 | ac_cv_sizeof_long_long_int=0 | ||
14463 | fi | ||
14464 | |||
14465 | # compute LLONG_MIN and LLONG_MAX if we don't know them. | ||
14466 | if test -z "$have_llong_max"; then | ||
14467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5 | ||
14468 | $as_echo_n "checking for max value of long long... " >&6; } | ||
14469 | if test "$cross_compiling" = yes; then : | ||
14470 | |||
14471 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
14472 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
14473 | |||
14474 | |||
14475 | else | ||
14476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14477 | /* end confdefs.h. */ | ||
14478 | |||
14479 | #include <stdio.h> | ||
14480 | /* Why is this so damn hard? */ | ||
14481 | #ifdef __GNUC__ | ||
14482 | # undef __GNUC__ | ||
14483 | #endif | ||
14484 | #define __USE_ISOC99 | ||
14485 | #include <limits.h> | ||
14486 | #define DATA "conftest.llminmax" | ||
14487 | #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a)) | ||
14488 | |||
14489 | /* | ||
14490 | * printf in libc on some platforms (eg old Tru64) does not understand %lld so | ||
14491 | * we do this the hard way. | ||
14492 | */ | ||
14493 | static int | ||
14494 | fprint_ll(FILE *f, long long n) | ||
14495 | { | ||
14496 | unsigned int i; | ||
14497 | int l[sizeof(long long) * 8]; | ||
14498 | |||
14499 | if (n < 0) | ||
14500 | if (fprintf(f, "-") < 0) | ||
14501 | return -1; | ||
14502 | for (i = 0; n != 0; i++) { | ||
14503 | l[i] = my_abs(n % 10); | ||
14504 | n /= 10; | ||
14505 | } | ||
14506 | do { | ||
14507 | if (fprintf(f, "%d", l[--i]) < 0) | ||
14508 | return -1; | ||
14509 | } while (i != 0); | ||
14510 | if (fprintf(f, " ") < 0) | ||
14511 | return -1; | ||
14512 | return 0; | ||
14513 | } | ||
14514 | |||
14515 | int | ||
14516 | main () | ||
14517 | { | ||
14518 | |||
14519 | FILE *f; | ||
14520 | long long i, llmin, llmax = 0; | ||
14521 | |||
14522 | if((f = fopen(DATA,"w")) == NULL) | ||
14523 | exit(1); | ||
14524 | |||
14525 | #if defined(LLONG_MIN) && defined(LLONG_MAX) | ||
14526 | fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n"); | ||
14527 | llmin = LLONG_MIN; | ||
14528 | llmax = LLONG_MAX; | ||
14529 | #else | ||
14530 | fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n"); | ||
14531 | /* This will work on one's complement and two's complement */ | ||
14532 | for (i = 1; i > llmax; i <<= 1, i++) | ||
14533 | llmax = i; | ||
14534 | llmin = llmax + 1LL; /* wrap */ | ||
14535 | #endif | ||
14536 | |||
14537 | /* Sanity check */ | ||
14538 | if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax | ||
14539 | || llmax - 1 > llmax || llmin == llmax || llmin == 0 | ||
14540 | || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) { | ||
14541 | fprintf(f, "unknown unknown\n"); | ||
14542 | exit(2); | ||
14543 | } | ||
14544 | |||
14545 | if (fprint_ll(f, llmin) < 0) | ||
14546 | exit(3); | ||
14547 | if (fprint_ll(f, llmax) < 0) | ||
14548 | exit(4); | ||
14549 | if (fclose(f) < 0) | ||
14550 | exit(5); | ||
14551 | exit(0); | ||
14552 | |||
14553 | ; | ||
14554 | return 0; | ||
14555 | } | ||
14556 | _ACEOF | ||
14557 | if ac_fn_c_try_run "$LINENO"; then : | ||
14558 | |||
14559 | llong_min=`$AWK '{print $1}' conftest.llminmax` | ||
14560 | llong_max=`$AWK '{print $2}' conftest.llminmax` | ||
14561 | |||
14562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5 | ||
14563 | $as_echo "$llong_max" >&6; } | ||
14564 | |||
14565 | cat >>confdefs.h <<_ACEOF | ||
14566 | #define LLONG_MAX ${llong_max}LL | ||
14567 | _ACEOF | ||
14568 | |||
14569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5 | ||
14570 | $as_echo_n "checking for min value of long long... " >&6; } | ||
14571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5 | ||
14572 | $as_echo "$llong_min" >&6; } | ||
14573 | |||
14574 | cat >>confdefs.h <<_ACEOF | ||
14575 | #define LLONG_MIN ${llong_min}LL | ||
14576 | _ACEOF | ||
14577 | |||
14578 | |||
14579 | else | ||
14580 | |||
14581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
14582 | $as_echo "not found" >&6; } | ||
14583 | |||
14584 | fi | ||
14585 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
14586 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
14587 | fi | ||
14588 | |||
14589 | fi | ||
14590 | |||
14591 | |||
14592 | # More checks for data types | ||
14593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5 | ||
14594 | $as_echo_n "checking for u_int type... " >&6; } | ||
14595 | if ${ac_cv_have_u_int+:} false; then : | ||
14596 | $as_echo_n "(cached) " >&6 | ||
14597 | else | ||
14598 | |||
14599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14600 | /* end confdefs.h. */ | ||
14601 | #include <sys/types.h> | ||
14602 | int | ||
14603 | main () | ||
14604 | { | ||
14605 | u_int a; a = 1; | ||
14606 | ; | ||
14607 | return 0; | ||
14608 | } | ||
14609 | _ACEOF | ||
14610 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14611 | ac_cv_have_u_int="yes" | ||
14612 | else | ||
14613 | ac_cv_have_u_int="no" | ||
14614 | |||
14615 | fi | ||
14616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14617 | |||
14618 | fi | ||
14619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5 | ||
14620 | $as_echo "$ac_cv_have_u_int" >&6; } | ||
14621 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
14622 | |||
14623 | $as_echo "#define HAVE_U_INT 1" >>confdefs.h | ||
14624 | |||
14625 | have_u_int=1 | ||
14626 | fi | ||
14627 | |||
14628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5 | ||
14629 | $as_echo_n "checking for intXX_t types... " >&6; } | ||
14630 | if ${ac_cv_have_intxx_t+:} false; then : | ||
14631 | $as_echo_n "(cached) " >&6 | ||
14632 | else | ||
14633 | |||
14634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14635 | /* end confdefs.h. */ | ||
14636 | #include <sys/types.h> | ||
14637 | int | ||
14638 | main () | ||
14639 | { | ||
14640 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
14641 | ; | ||
14642 | return 0; | ||
14643 | } | ||
14644 | _ACEOF | ||
14645 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14646 | ac_cv_have_intxx_t="yes" | ||
14647 | else | ||
14648 | ac_cv_have_intxx_t="no" | ||
14649 | |||
14650 | fi | ||
14651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14652 | |||
14653 | fi | ||
14654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5 | ||
14655 | $as_echo "$ac_cv_have_intxx_t" >&6; } | ||
14656 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
14657 | |||
14658 | $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h | ||
14659 | |||
14660 | have_intxx_t=1 | ||
14661 | fi | ||
14662 | |||
14663 | if (test -z "$have_intxx_t" && \ | ||
14664 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
14665 | then | ||
14666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5 | ||
14667 | $as_echo_n "checking for intXX_t types in stdint.h... " >&6; } | ||
14668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14669 | /* end confdefs.h. */ | ||
14670 | #include <stdint.h> | ||
14671 | int | ||
14672 | main () | ||
14673 | { | ||
14674 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
14675 | ; | ||
14676 | return 0; | ||
14677 | } | ||
14678 | _ACEOF | ||
14679 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14680 | |||
14681 | $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h | ||
14682 | |||
14683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14684 | $as_echo "yes" >&6; } | ||
14685 | |||
14686 | else | ||
14687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14688 | $as_echo "no" >&6; } | ||
14689 | |||
14690 | fi | ||
14691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14692 | fi | ||
14693 | |||
14694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5 | ||
14695 | $as_echo_n "checking for int64_t type... " >&6; } | ||
14696 | if ${ac_cv_have_int64_t+:} false; then : | ||
14697 | $as_echo_n "(cached) " >&6 | ||
14698 | else | ||
14699 | |||
14700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14701 | /* end confdefs.h. */ | ||
14702 | |||
14703 | #include <sys/types.h> | ||
14704 | #ifdef HAVE_STDINT_H | ||
14705 | # include <stdint.h> | ||
14706 | #endif | ||
14707 | #include <sys/socket.h> | ||
14708 | #ifdef HAVE_SYS_BITYPES_H | ||
14709 | # include <sys/bitypes.h> | ||
14710 | #endif | ||
14711 | |||
14712 | int | ||
14713 | main () | ||
14714 | { | ||
14715 | |||
14716 | int64_t a; a = 1; | ||
14717 | |||
14718 | ; | ||
14719 | return 0; | ||
14720 | } | ||
14721 | _ACEOF | ||
14722 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14723 | ac_cv_have_int64_t="yes" | ||
14724 | else | ||
14725 | ac_cv_have_int64_t="no" | ||
14726 | |||
14727 | fi | ||
14728 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14729 | |||
14730 | fi | ||
14731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5 | ||
14732 | $as_echo "$ac_cv_have_int64_t" >&6; } | ||
14733 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
14734 | |||
14735 | $as_echo "#define HAVE_INT64_T 1" >>confdefs.h | ||
14736 | |||
14737 | fi | ||
14738 | |||
14739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5 | ||
14740 | $as_echo_n "checking for u_intXX_t types... " >&6; } | ||
14741 | if ${ac_cv_have_u_intxx_t+:} false; then : | ||
14742 | $as_echo_n "(cached) " >&6 | ||
14743 | else | ||
14744 | |||
14745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14746 | /* end confdefs.h. */ | ||
14747 | #include <sys/types.h> | ||
14748 | int | ||
14749 | main () | ||
14750 | { | ||
14751 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
14752 | ; | ||
14753 | return 0; | ||
14754 | } | ||
14755 | _ACEOF | ||
14756 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14757 | ac_cv_have_u_intxx_t="yes" | ||
14758 | else | ||
14759 | ac_cv_have_u_intxx_t="no" | ||
14760 | |||
14761 | fi | ||
14762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14763 | |||
14764 | fi | ||
14765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5 | ||
14766 | $as_echo "$ac_cv_have_u_intxx_t" >&6; } | ||
14767 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
14768 | |||
14769 | $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h | ||
14770 | |||
14771 | have_u_intxx_t=1 | ||
14772 | fi | ||
14773 | |||
14774 | if test -z "$have_u_intxx_t" ; then | ||
14775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5 | ||
14776 | $as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; } | ||
14777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14778 | /* end confdefs.h. */ | ||
14779 | #include <sys/socket.h> | ||
14780 | int | ||
14781 | main () | ||
14782 | { | ||
14783 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
14784 | ; | ||
14785 | return 0; | ||
14786 | } | ||
14787 | _ACEOF | ||
14788 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14789 | |||
14790 | $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h | ||
14791 | |||
14792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14793 | $as_echo "yes" >&6; } | ||
14794 | |||
14795 | else | ||
14796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14797 | $as_echo "no" >&6; } | ||
14798 | |||
14799 | fi | ||
14800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14801 | fi | ||
14802 | |||
14803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5 | ||
14804 | $as_echo_n "checking for u_int64_t types... " >&6; } | ||
14805 | if ${ac_cv_have_u_int64_t+:} false; then : | ||
14806 | $as_echo_n "(cached) " >&6 | ||
14807 | else | ||
14808 | |||
14809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14810 | /* end confdefs.h. */ | ||
14811 | #include <sys/types.h> | ||
14812 | int | ||
14813 | main () | ||
14814 | { | ||
14815 | u_int64_t a; a = 1; | ||
14816 | ; | ||
14817 | return 0; | ||
14818 | } | ||
14819 | _ACEOF | ||
14820 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14821 | ac_cv_have_u_int64_t="yes" | ||
14822 | else | ||
14823 | ac_cv_have_u_int64_t="no" | ||
14824 | |||
14825 | fi | ||
14826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14827 | |||
14828 | fi | ||
14829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5 | ||
14830 | $as_echo "$ac_cv_have_u_int64_t" >&6; } | ||
14831 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
14832 | |||
14833 | $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h | ||
14834 | |||
14835 | have_u_int64_t=1 | ||
14836 | fi | ||
14837 | |||
14838 | if (test -z "$have_u_int64_t" && \ | ||
14839 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
14840 | then | ||
14841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
14842 | $as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; } | ||
14843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14844 | /* end confdefs.h. */ | ||
14845 | #include <sys/bitypes.h> | ||
14846 | int | ||
14847 | main () | ||
14848 | { | ||
14849 | u_int64_t a; a = 1 | ||
14850 | ; | ||
14851 | return 0; | ||
14852 | } | ||
14853 | _ACEOF | ||
14854 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14855 | |||
14856 | $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h | ||
14857 | |||
14858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14859 | $as_echo "yes" >&6; } | ||
14860 | |||
14861 | else | ||
14862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14863 | $as_echo "no" >&6; } | ||
14864 | |||
14865 | fi | ||
14866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14867 | fi | ||
14868 | |||
14869 | if test -z "$have_u_intxx_t" ; then | ||
14870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5 | ||
14871 | $as_echo_n "checking for uintXX_t types... " >&6; } | ||
14872 | if ${ac_cv_have_uintxx_t+:} false; then : | ||
14873 | $as_echo_n "(cached) " >&6 | ||
14874 | else | ||
14875 | |||
14876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14877 | /* end confdefs.h. */ | ||
14878 | |||
14879 | #include <sys/types.h> | ||
14880 | |||
14881 | int | ||
14882 | main () | ||
14883 | { | ||
14884 | |||
14885 | uint8_t a; | ||
14886 | uint16_t b; | ||
14887 | uint32_t c; | ||
14888 | a = b = c = 1; | ||
14889 | |||
14890 | ; | ||
14891 | return 0; | ||
14892 | } | ||
14893 | _ACEOF | ||
14894 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14895 | ac_cv_have_uintxx_t="yes" | ||
14896 | else | ||
14897 | ac_cv_have_uintxx_t="no" | ||
14898 | |||
14899 | fi | ||
14900 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14901 | |||
14902 | fi | ||
14903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5 | ||
14904 | $as_echo "$ac_cv_have_uintxx_t" >&6; } | ||
14905 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
14906 | |||
14907 | $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h | ||
14908 | |||
14909 | fi | ||
14910 | fi | ||
14911 | |||
14912 | if (test -z "$have_uintxx_t" && \ | ||
14913 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
14914 | then | ||
14915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5 | ||
14916 | $as_echo_n "checking for uintXX_t types in stdint.h... " >&6; } | ||
14917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14918 | /* end confdefs.h. */ | ||
14919 | #include <stdint.h> | ||
14920 | int | ||
14921 | main () | ||
14922 | { | ||
14923 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
14924 | ; | ||
14925 | return 0; | ||
14926 | } | ||
14927 | _ACEOF | ||
14928 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14929 | |||
14930 | $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h | ||
14931 | |||
14932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14933 | $as_echo "yes" >&6; } | ||
14934 | |||
14935 | else | ||
14936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14937 | $as_echo "no" >&6; } | ||
14938 | |||
14939 | fi | ||
14940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14941 | fi | ||
14942 | |||
14943 | if (test -z "$have_uintxx_t" && \ | ||
14944 | test "x$ac_cv_header_inttypes_h" = "xyes") | ||
14945 | then | ||
14946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in inttypes.h" >&5 | ||
14947 | $as_echo_n "checking for uintXX_t types in inttypes.h... " >&6; } | ||
14948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14949 | /* end confdefs.h. */ | ||
14950 | #include <inttypes.h> | ||
14951 | int | ||
14952 | main () | ||
14953 | { | ||
14954 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
14955 | ; | ||
14956 | return 0; | ||
14957 | } | ||
14958 | _ACEOF | ||
14959 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14960 | |||
14961 | $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h | ||
14962 | |||
14963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14964 | $as_echo "yes" >&6; } | ||
14965 | |||
14966 | else | ||
14967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14968 | $as_echo "no" >&6; } | ||
14969 | |||
14970 | fi | ||
14971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14972 | fi | ||
14973 | |||
14974 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
14975 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
14976 | then | ||
14977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
14978 | $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; } | ||
14979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14980 | /* end confdefs.h. */ | ||
14981 | |||
14982 | #include <sys/bitypes.h> | ||
14983 | |||
14984 | int | ||
14985 | main () | ||
14986 | { | ||
14987 | |||
14988 | int8_t a; int16_t b; int32_t c; | ||
14989 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
14990 | a = b = c = e = f = g = 1; | ||
14991 | |||
14992 | ; | ||
14993 | return 0; | ||
14994 | } | ||
14995 | _ACEOF | ||
14996 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14997 | |||
14998 | $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h | ||
14999 | |||
15000 | $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h | ||
15001 | |||
15002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15003 | $as_echo "yes" >&6; } | ||
15004 | |||
15005 | else | ||
15006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15007 | $as_echo "no" >&6; } | ||
15008 | |||
15009 | fi | ||
15010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15011 | fi | ||
15012 | |||
15013 | |||
15014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5 | ||
15015 | $as_echo_n "checking for u_char... " >&6; } | ||
15016 | if ${ac_cv_have_u_char+:} false; then : | ||
15017 | $as_echo_n "(cached) " >&6 | ||
15018 | else | ||
15019 | |||
15020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15021 | /* end confdefs.h. */ | ||
15022 | #include <sys/types.h> | ||
15023 | int | ||
15024 | main () | ||
15025 | { | ||
15026 | u_char foo; foo = 125; | ||
15027 | ; | ||
15028 | return 0; | ||
15029 | } | ||
15030 | _ACEOF | ||
15031 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15032 | ac_cv_have_u_char="yes" | ||
15033 | else | ||
15034 | ac_cv_have_u_char="no" | ||
15035 | |||
15036 | fi | ||
15037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15038 | |||
15039 | fi | ||
15040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5 | ||
15041 | $as_echo "$ac_cv_have_u_char" >&6; } | ||
15042 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
15043 | |||
15044 | $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h | ||
15045 | |||
15046 | fi | ||
15047 | |||
15048 | ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" " | ||
15049 | #include <sys/types.h> | ||
15050 | #include <stdint.h> | ||
15051 | |||
15052 | " | ||
15053 | if test "x$ac_cv_type_intmax_t" = xyes; then : | ||
15054 | |||
15055 | cat >>confdefs.h <<_ACEOF | ||
15056 | #define HAVE_INTMAX_T 1 | ||
15057 | _ACEOF | ||
15058 | |||
15059 | |||
15060 | fi | ||
15061 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" " | ||
15062 | #include <sys/types.h> | ||
15063 | #include <stdint.h> | ||
15064 | |||
15065 | " | ||
15066 | if test "x$ac_cv_type_uintmax_t" = xyes; then : | ||
15067 | |||
15068 | cat >>confdefs.h <<_ACEOF | ||
15069 | #define HAVE_UINTMAX_T 1 | ||
15070 | _ACEOF | ||
15071 | |||
15072 | |||
15073 | fi | ||
15074 | |||
15075 | |||
15076 | |||
15077 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> | ||
15078 | #include <sys/socket.h> | ||
15079 | " | ||
15080 | if test "x$ac_cv_type_socklen_t" = xyes; then : | ||
15081 | |||
15082 | else | ||
15083 | |||
15084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 | ||
15085 | $as_echo_n "checking for socklen_t equivalent... " >&6; } | ||
15086 | if ${curl_cv_socklen_t_equiv+:} false; then : | ||
15087 | $as_echo_n "(cached) " >&6 | ||
15088 | else | ||
15089 | |||
15090 | # Systems have either "struct sockaddr *" or | ||
15091 | # "void *" as the second argument to getpeername | ||
15092 | curl_cv_socklen_t_equiv= | ||
15093 | for arg2 in "struct sockaddr" void; do | ||
15094 | for t in int size_t unsigned long "unsigned long"; do | ||
15095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15096 | /* end confdefs.h. */ | ||
15097 | |||
15098 | #include <sys/types.h> | ||
15099 | #include <sys/socket.h> | ||
15100 | |||
15101 | int getpeername (int, $arg2 *, $t *); | ||
15102 | |||
15103 | int | ||
15104 | main () | ||
15105 | { | ||
15106 | |||
15107 | $t len; | ||
15108 | getpeername(0,0,&len); | ||
15109 | |||
15110 | ; | ||
15111 | return 0; | ||
15112 | } | ||
15113 | _ACEOF | ||
15114 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15115 | |||
15116 | curl_cv_socklen_t_equiv="$t" | ||
15117 | break | ||
15118 | |||
15119 | fi | ||
15120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15121 | done | ||
15122 | done | ||
15123 | |||
15124 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
15125 | as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5 | ||
15126 | fi | ||
15127 | |||
15128 | fi | ||
15129 | |||
15130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5 | ||
15131 | $as_echo "$curl_cv_socklen_t_equiv" >&6; } | ||
15132 | |||
15133 | cat >>confdefs.h <<_ACEOF | ||
15134 | #define socklen_t $curl_cv_socklen_t_equiv | ||
15135 | _ACEOF | ||
15136 | |||
15137 | fi | ||
15138 | |||
15139 | |||
15140 | |||
15141 | ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h> | ||
15142 | " | ||
15143 | if test "x$ac_cv_type_sig_atomic_t" = xyes; then : | ||
15144 | |||
15145 | cat >>confdefs.h <<_ACEOF | ||
15146 | #define HAVE_SIG_ATOMIC_T 1 | ||
15147 | _ACEOF | ||
15148 | |||
15149 | |||
15150 | fi | ||
15151 | |||
15152 | ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" " | ||
15153 | #include <sys/types.h> | ||
15154 | #ifdef HAVE_SYS_BITYPES_H | ||
15155 | #include <sys/bitypes.h> | ||
15156 | #endif | ||
15157 | #ifdef HAVE_SYS_STATFS_H | ||
15158 | #include <sys/statfs.h> | ||
15159 | #endif | ||
15160 | #ifdef HAVE_SYS_STATVFS_H | ||
15161 | #include <sys/statvfs.h> | ||
15162 | #endif | ||
15163 | |||
15164 | " | ||
15165 | if test "x$ac_cv_type_fsblkcnt_t" = xyes; then : | ||
15166 | |||
15167 | cat >>confdefs.h <<_ACEOF | ||
15168 | #define HAVE_FSBLKCNT_T 1 | ||
15169 | _ACEOF | ||
15170 | |||
15171 | |||
15172 | fi | ||
15173 | ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" " | ||
15174 | #include <sys/types.h> | ||
15175 | #ifdef HAVE_SYS_BITYPES_H | ||
15176 | #include <sys/bitypes.h> | ||
15177 | #endif | ||
15178 | #ifdef HAVE_SYS_STATFS_H | ||
15179 | #include <sys/statfs.h> | ||
15180 | #endif | ||
15181 | #ifdef HAVE_SYS_STATVFS_H | ||
15182 | #include <sys/statvfs.h> | ||
15183 | #endif | ||
15184 | |||
15185 | " | ||
15186 | if test "x$ac_cv_type_fsfilcnt_t" = xyes; then : | ||
15187 | |||
15188 | cat >>confdefs.h <<_ACEOF | ||
15189 | #define HAVE_FSFILCNT_T 1 | ||
15190 | _ACEOF | ||
15191 | |||
15192 | |||
15193 | fi | ||
15194 | |||
15195 | |||
15196 | ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h> | ||
15197 | #include <netinet/in.h> | ||
15198 | " | ||
15199 | if test "x$ac_cv_type_in_addr_t" = xyes; then : | ||
15200 | |||
15201 | cat >>confdefs.h <<_ACEOF | ||
15202 | #define HAVE_IN_ADDR_T 1 | ||
15203 | _ACEOF | ||
15204 | |||
15205 | |||
15206 | fi | ||
15207 | ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h> | ||
15208 | #include <netinet/in.h> | ||
15209 | " | ||
15210 | if test "x$ac_cv_type_in_port_t" = xyes; then : | ||
15211 | |||
15212 | cat >>confdefs.h <<_ACEOF | ||
15213 | #define HAVE_IN_PORT_T 1 | ||
15214 | _ACEOF | ||
15215 | |||
15216 | |||
15217 | fi | ||
15218 | |||
15219 | |||
15220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5 | ||
15221 | $as_echo_n "checking for size_t... " >&6; } | ||
15222 | if ${ac_cv_have_size_t+:} false; then : | ||
15223 | $as_echo_n "(cached) " >&6 | ||
15224 | else | ||
15225 | |||
15226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15227 | /* end confdefs.h. */ | ||
15228 | #include <sys/types.h> | ||
15229 | int | ||
15230 | main () | ||
15231 | { | ||
15232 | size_t foo; foo = 1235; | ||
15233 | ; | ||
15234 | return 0; | ||
15235 | } | ||
15236 | _ACEOF | ||
15237 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15238 | ac_cv_have_size_t="yes" | ||
15239 | else | ||
15240 | ac_cv_have_size_t="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_size_t" >&5 | ||
15247 | $as_echo "$ac_cv_have_size_t" >&6; } | ||
15248 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
15249 | |||
15250 | $as_echo "#define HAVE_SIZE_T 1" >>confdefs.h | ||
15251 | |||
15252 | fi | ||
15253 | |||
15254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 | ||
15255 | $as_echo_n "checking for ssize_t... " >&6; } | ||
15256 | if ${ac_cv_have_ssize_t+:} false; then : | ||
15257 | $as_echo_n "(cached) " >&6 | ||
15258 | else | ||
15259 | |||
15260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15261 | /* end confdefs.h. */ | ||
15262 | #include <sys/types.h> | ||
15263 | int | ||
15264 | main () | ||
15265 | { | ||
15266 | ssize_t foo; foo = 1235; | ||
15267 | ; | ||
15268 | return 0; | ||
15269 | } | ||
15270 | _ACEOF | ||
15271 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15272 | ac_cv_have_ssize_t="yes" | ||
15273 | else | ||
15274 | ac_cv_have_ssize_t="no" | ||
15275 | |||
15276 | fi | ||
15277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15278 | |||
15279 | fi | ||
15280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5 | ||
15281 | $as_echo "$ac_cv_have_ssize_t" >&6; } | ||
15282 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
15283 | |||
15284 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h | ||
15285 | |||
15286 | fi | ||
15287 | |||
15288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5 | ||
15289 | $as_echo_n "checking for clock_t... " >&6; } | ||
15290 | if ${ac_cv_have_clock_t+:} false; then : | ||
15291 | $as_echo_n "(cached) " >&6 | ||
15292 | else | ||
15293 | |||
15294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15295 | /* end confdefs.h. */ | ||
15296 | #include <time.h> | ||
15297 | int | ||
15298 | main () | ||
15299 | { | ||
15300 | clock_t foo; foo = 1235; | ||
15301 | ; | ||
15302 | return 0; | ||
15303 | } | ||
15304 | _ACEOF | ||
15305 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15306 | ac_cv_have_clock_t="yes" | ||
15307 | else | ||
15308 | ac_cv_have_clock_t="no" | ||
15309 | |||
15310 | fi | ||
15311 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15312 | |||
15313 | fi | ||
15314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5 | ||
15315 | $as_echo "$ac_cv_have_clock_t" >&6; } | ||
15316 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
15317 | |||
15318 | $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h | ||
15319 | |||
15320 | fi | ||
15321 | |||
15322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5 | ||
15323 | $as_echo_n "checking for sa_family_t... " >&6; } | ||
15324 | if ${ac_cv_have_sa_family_t+:} false; then : | ||
15325 | $as_echo_n "(cached) " >&6 | ||
15326 | else | ||
15327 | |||
15328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15329 | /* end confdefs.h. */ | ||
15330 | |||
15331 | #include <sys/types.h> | ||
15332 | #include <sys/socket.h> | ||
15333 | |||
15334 | int | ||
15335 | main () | ||
15336 | { | ||
15337 | sa_family_t foo; foo = 1235; | ||
15338 | ; | ||
15339 | return 0; | ||
15340 | } | ||
15341 | _ACEOF | ||
15342 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15343 | ac_cv_have_sa_family_t="yes" | ||
15344 | else | ||
15345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15346 | /* end confdefs.h. */ | ||
15347 | |||
15348 | #include <sys/types.h> | ||
15349 | #include <sys/socket.h> | ||
15350 | #include <netinet/in.h> | ||
15351 | |||
15352 | int | ||
15353 | main () | ||
15354 | { | ||
15355 | sa_family_t foo; foo = 1235; | ||
15356 | ; | ||
15357 | return 0; | ||
15358 | } | ||
15359 | _ACEOF | ||
15360 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15361 | ac_cv_have_sa_family_t="yes" | ||
15362 | else | ||
15363 | ac_cv_have_sa_family_t="no" | ||
15364 | |||
15365 | fi | ||
15366 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15367 | |||
15368 | fi | ||
15369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15370 | |||
15371 | fi | ||
15372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5 | ||
15373 | $as_echo "$ac_cv_have_sa_family_t" >&6; } | ||
15374 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
15375 | |||
15376 | $as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h | ||
15377 | |||
15378 | fi | ||
15379 | |||
15380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5 | ||
15381 | $as_echo_n "checking for pid_t... " >&6; } | ||
15382 | if ${ac_cv_have_pid_t+:} false; then : | ||
15383 | $as_echo_n "(cached) " >&6 | ||
15384 | else | ||
15385 | |||
15386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15387 | /* end confdefs.h. */ | ||
15388 | #include <sys/types.h> | ||
15389 | int | ||
15390 | main () | ||
15391 | { | ||
15392 | pid_t foo; foo = 1235; | ||
15393 | ; | ||
15394 | return 0; | ||
15395 | } | ||
15396 | _ACEOF | ||
15397 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15398 | ac_cv_have_pid_t="yes" | ||
15399 | else | ||
15400 | ac_cv_have_pid_t="no" | ||
15401 | |||
15402 | fi | ||
15403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15404 | |||
15405 | fi | ||
15406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5 | ||
15407 | $as_echo "$ac_cv_have_pid_t" >&6; } | ||
15408 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
15409 | |||
15410 | $as_echo "#define HAVE_PID_T 1" >>confdefs.h | ||
15411 | |||
15412 | fi | ||
15413 | |||
15414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5 | ||
15415 | $as_echo_n "checking for mode_t... " >&6; } | ||
15416 | if ${ac_cv_have_mode_t+:} false; then : | ||
15417 | $as_echo_n "(cached) " >&6 | ||
15418 | else | ||
15419 | |||
15420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15421 | /* end confdefs.h. */ | ||
15422 | #include <sys/types.h> | ||
15423 | int | ||
15424 | main () | ||
15425 | { | ||
15426 | mode_t foo; foo = 1235; | ||
15427 | ; | ||
15428 | return 0; | ||
15429 | } | ||
15430 | _ACEOF | ||
15431 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15432 | ac_cv_have_mode_t="yes" | ||
15433 | else | ||
15434 | ac_cv_have_mode_t="no" | ||
15435 | |||
15436 | fi | ||
15437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15438 | |||
15439 | fi | ||
15440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5 | ||
15441 | $as_echo "$ac_cv_have_mode_t" >&6; } | ||
15442 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
15443 | |||
15444 | $as_echo "#define HAVE_MODE_T 1" >>confdefs.h | ||
15445 | |||
15446 | fi | ||
15447 | |||
15448 | |||
15449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 | ||
15450 | $as_echo_n "checking for struct sockaddr_storage... " >&6; } | ||
15451 | if ${ac_cv_have_struct_sockaddr_storage+:} false; then : | ||
15452 | $as_echo_n "(cached) " >&6 | ||
15453 | else | ||
15454 | |||
15455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15456 | /* end confdefs.h. */ | ||
15457 | |||
15458 | #include <sys/types.h> | ||
15459 | #include <sys/socket.h> | ||
15460 | |||
15461 | int | ||
15462 | main () | ||
15463 | { | ||
15464 | struct sockaddr_storage s; | ||
15465 | ; | ||
15466 | return 0; | ||
15467 | } | ||
15468 | _ACEOF | ||
15469 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15470 | ac_cv_have_struct_sockaddr_storage="yes" | ||
15471 | else | ||
15472 | ac_cv_have_struct_sockaddr_storage="no" | ||
15473 | |||
15474 | fi | ||
15475 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15476 | |||
15477 | fi | ||
15478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
15479 | $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; } | ||
15480 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
15481 | |||
15482 | $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h | ||
15483 | |||
15484 | fi | ||
15485 | |||
15486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5 | ||
15487 | $as_echo_n "checking for struct sockaddr_in6... " >&6; } | ||
15488 | if ${ac_cv_have_struct_sockaddr_in6+:} false; then : | ||
15489 | $as_echo_n "(cached) " >&6 | ||
15490 | else | ||
15491 | |||
15492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15493 | /* end confdefs.h. */ | ||
15494 | |||
15495 | #include <sys/types.h> | ||
15496 | #include <netinet/in.h> | ||
15497 | |||
15498 | int | ||
15499 | main () | ||
15500 | { | ||
15501 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
15502 | ; | ||
15503 | return 0; | ||
15504 | } | ||
15505 | _ACEOF | ||
15506 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15507 | ac_cv_have_struct_sockaddr_in6="yes" | ||
15508 | else | ||
15509 | ac_cv_have_struct_sockaddr_in6="no" | ||
15510 | |||
15511 | fi | ||
15512 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15513 | |||
15514 | fi | ||
15515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
15516 | $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; } | ||
15517 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
15518 | |||
15519 | $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h | ||
15520 | |||
15521 | fi | ||
15522 | |||
15523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5 | ||
15524 | $as_echo_n "checking for struct in6_addr... " >&6; } | ||
15525 | if ${ac_cv_have_struct_in6_addr+:} false; then : | ||
15526 | $as_echo_n "(cached) " >&6 | ||
15527 | else | ||
15528 | |||
15529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15530 | /* end confdefs.h. */ | ||
15531 | |||
15532 | #include <sys/types.h> | ||
15533 | #include <netinet/in.h> | ||
15534 | |||
15535 | int | ||
15536 | main () | ||
15537 | { | ||
15538 | struct in6_addr s; s.s6_addr[0] = 0; | ||
15539 | ; | ||
15540 | return 0; | ||
15541 | } | ||
15542 | _ACEOF | ||
15543 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15544 | ac_cv_have_struct_in6_addr="yes" | ||
15545 | else | ||
15546 | ac_cv_have_struct_in6_addr="no" | ||
15547 | |||
15548 | fi | ||
15549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15550 | |||
15551 | fi | ||
15552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5 | ||
15553 | $as_echo "$ac_cv_have_struct_in6_addr" >&6; } | ||
15554 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
15555 | |||
15556 | $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h | ||
15557 | |||
15558 | |||
15559 | ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" " | ||
15560 | #ifdef HAVE_SYS_TYPES_H | ||
15561 | #include <sys/types.h> | ||
15562 | #endif | ||
15563 | #include <netinet/in.h> | ||
15564 | |||
15565 | " | ||
15566 | if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then : | ||
15567 | |||
15568 | cat >>confdefs.h <<_ACEOF | ||
15569 | #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 | ||
15570 | _ACEOF | ||
15571 | |||
15572 | |||
15573 | fi | ||
15574 | |||
15575 | fi | ||
15576 | |||
15577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5 | ||
15578 | $as_echo_n "checking for struct addrinfo... " >&6; } | ||
15579 | if ${ac_cv_have_struct_addrinfo+:} false; then : | ||
15580 | $as_echo_n "(cached) " >&6 | ||
15581 | else | ||
15582 | |||
15583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15584 | /* end confdefs.h. */ | ||
15585 | |||
15586 | #include <sys/types.h> | ||
15587 | #include <sys/socket.h> | ||
15588 | #include <netdb.h> | ||
15589 | |||
15590 | int | ||
15591 | main () | ||
15592 | { | ||
15593 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
15594 | ; | ||
15595 | return 0; | ||
15596 | } | ||
15597 | _ACEOF | ||
15598 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15599 | ac_cv_have_struct_addrinfo="yes" | ||
15600 | else | ||
15601 | ac_cv_have_struct_addrinfo="no" | ||
15602 | |||
15603 | fi | ||
15604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15605 | |||
15606 | fi | ||
15607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5 | ||
15608 | $as_echo "$ac_cv_have_struct_addrinfo" >&6; } | ||
15609 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
15610 | |||
15611 | $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h | ||
15612 | |||
15613 | fi | ||
15614 | |||
15615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 | ||
15616 | $as_echo_n "checking for struct timeval... " >&6; } | ||
15617 | if ${ac_cv_have_struct_timeval+:} false; then : | ||
15618 | $as_echo_n "(cached) " >&6 | ||
15619 | else | ||
15620 | |||
15621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15622 | /* end confdefs.h. */ | ||
15623 | #include <sys/time.h> | ||
15624 | int | ||
15625 | main () | ||
15626 | { | ||
15627 | struct timeval tv; tv.tv_sec = 1; | ||
15628 | ; | ||
15629 | return 0; | ||
15630 | } | ||
15631 | _ACEOF | ||
15632 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15633 | ac_cv_have_struct_timeval="yes" | ||
15634 | else | ||
15635 | ac_cv_have_struct_timeval="no" | ||
15636 | |||
15637 | fi | ||
15638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15639 | |||
15640 | fi | ||
15641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5 | ||
15642 | $as_echo "$ac_cv_have_struct_timeval" >&6; } | ||
15643 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
15644 | |||
15645 | $as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h | ||
15646 | |||
15647 | have_struct_timeval=1 | ||
15648 | fi | ||
15649 | |||
15650 | ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default" | ||
15651 | if test "x$ac_cv_type_struct_timespec" = xyes; then : | ||
15652 | |||
15653 | cat >>confdefs.h <<_ACEOF | ||
15654 | #define HAVE_STRUCT_TIMESPEC 1 | ||
15655 | _ACEOF | ||
15656 | |||
15657 | |||
15658 | fi | ||
15659 | |||
15660 | |||
15661 | # We need int64_t or else certian parts of the compile will fail. | ||
15662 | if test "x$ac_cv_have_int64_t" = "xno" && \ | ||
15663 | test "x$ac_cv_sizeof_long_int" != "x8" && \ | ||
15664 | test "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
15665 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
15666 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
15667 | echo "" | ||
15668 | exit 1; | ||
15669 | else | ||
15670 | if test "$cross_compiling" = yes; then : | ||
15671 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
15672 | $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
15673 | |||
15674 | else | ||
15675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15676 | /* end confdefs.h. */ | ||
15677 | |||
15678 | #include <stdio.h> | ||
15679 | #include <string.h> | ||
15680 | #ifdef HAVE_SNPRINTF | ||
15681 | main() | ||
15682 | { | ||
15683 | char buf[50]; | ||
15684 | char expected_out[50]; | ||
15685 | int mazsize = 50 ; | ||
15686 | #if (SIZEOF_LONG_INT == 8) | ||
15687 | long int num = 0x7fffffffffffffff; | ||
15688 | #else | ||
15689 | long long num = 0x7fffffffffffffffll; | ||
15690 | #endif | ||
15691 | strcpy(expected_out, "9223372036854775807"); | ||
15692 | snprintf(buf, mazsize, "%lld", num); | ||
15693 | if(strcmp(buf, expected_out) != 0) | ||
15694 | exit(1); | ||
15695 | exit(0); | ||
15696 | } | ||
15697 | #else | ||
15698 | main() { exit(0); } | ||
15699 | #endif | ||
15700 | |||
15701 | _ACEOF | ||
15702 | if ac_fn_c_try_run "$LINENO"; then : | ||
15703 | true | ||
15704 | else | ||
15705 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h | ||
15706 | |||
15707 | fi | ||
15708 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
15709 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
15710 | fi | ||
15711 | |||
15712 | fi | ||
15713 | |||
15714 | |||
15715 | # look for field 'ut_host' in header 'utmp.h' | ||
15716 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
15717 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
15718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5 | ||
15719 | $as_echo_n "checking for ut_host field in utmp.h... " >&6; } | ||
15720 | if eval \${$ossh_varname+:} false; then : | ||
15721 | $as_echo_n "(cached) " >&6 | ||
15722 | else | ||
15723 | |||
15724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15725 | /* end confdefs.h. */ | ||
15726 | #include <utmp.h> | ||
15727 | |||
15728 | _ACEOF | ||
15729 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15730 | $EGREP "ut_host" >/dev/null 2>&1; then : | ||
15731 | eval "$ossh_varname=yes" | ||
15732 | else | ||
15733 | eval "$ossh_varname=no" | ||
15734 | fi | ||
15735 | rm -f conftest* | ||
15736 | |||
15737 | fi | ||
15738 | |||
15739 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15740 | if test -n "`echo $ossh_varname`"; then | ||
15741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15742 | $as_echo "$ossh_result" >&6; } | ||
15743 | if test "x$ossh_result" = "xyes"; then | ||
15744 | |||
15745 | $as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h | ||
15746 | |||
15747 | fi | ||
15748 | else | ||
15749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15750 | $as_echo "no" >&6; } | ||
15751 | fi | ||
15752 | |||
15753 | |||
15754 | # look for field 'ut_host' in header 'utmpx.h' | ||
15755 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
15756 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
15757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5 | ||
15758 | $as_echo_n "checking for ut_host field in utmpx.h... " >&6; } | ||
15759 | if eval \${$ossh_varname+:} false; then : | ||
15760 | $as_echo_n "(cached) " >&6 | ||
15761 | else | ||
15762 | |||
15763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15764 | /* end confdefs.h. */ | ||
15765 | #include <utmpx.h> | ||
15766 | |||
15767 | _ACEOF | ||
15768 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15769 | $EGREP "ut_host" >/dev/null 2>&1; then : | ||
15770 | eval "$ossh_varname=yes" | ||
15771 | else | ||
15772 | eval "$ossh_varname=no" | ||
15773 | fi | ||
15774 | rm -f conftest* | ||
15775 | |||
15776 | fi | ||
15777 | |||
15778 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15779 | if test -n "`echo $ossh_varname`"; then | ||
15780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15781 | $as_echo "$ossh_result" >&6; } | ||
15782 | if test "x$ossh_result" = "xyes"; then | ||
15783 | |||
15784 | $as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h | ||
15785 | |||
15786 | fi | ||
15787 | else | ||
15788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15789 | $as_echo "no" >&6; } | ||
15790 | fi | ||
15791 | |||
15792 | |||
15793 | # look for field 'syslen' in header 'utmpx.h' | ||
15794 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
15795 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
15796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5 | ||
15797 | $as_echo_n "checking for syslen field in utmpx.h... " >&6; } | ||
15798 | if eval \${$ossh_varname+:} false; then : | ||
15799 | $as_echo_n "(cached) " >&6 | ||
15800 | else | ||
15801 | |||
15802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15803 | /* end confdefs.h. */ | ||
15804 | #include <utmpx.h> | ||
15805 | |||
15806 | _ACEOF | ||
15807 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15808 | $EGREP "syslen" >/dev/null 2>&1; then : | ||
15809 | eval "$ossh_varname=yes" | ||
15810 | else | ||
15811 | eval "$ossh_varname=no" | ||
15812 | fi | ||
15813 | rm -f conftest* | ||
15814 | |||
15815 | fi | ||
15816 | |||
15817 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15818 | if test -n "`echo $ossh_varname`"; then | ||
15819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15820 | $as_echo "$ossh_result" >&6; } | ||
15821 | if test "x$ossh_result" = "xyes"; then | ||
15822 | |||
15823 | $as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h | ||
15824 | |||
15825 | fi | ||
15826 | else | ||
15827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15828 | $as_echo "no" >&6; } | ||
15829 | fi | ||
15830 | |||
15831 | |||
15832 | # look for field 'ut_pid' in header 'utmp.h' | ||
15833 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
15834 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
15835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5 | ||
15836 | $as_echo_n "checking for ut_pid field in utmp.h... " >&6; } | ||
15837 | if eval \${$ossh_varname+:} false; then : | ||
15838 | $as_echo_n "(cached) " >&6 | ||
15839 | else | ||
15840 | |||
15841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15842 | /* end confdefs.h. */ | ||
15843 | #include <utmp.h> | ||
15844 | |||
15845 | _ACEOF | ||
15846 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15847 | $EGREP "ut_pid" >/dev/null 2>&1; then : | ||
15848 | eval "$ossh_varname=yes" | ||
15849 | else | ||
15850 | eval "$ossh_varname=no" | ||
15851 | fi | ||
15852 | rm -f conftest* | ||
15853 | |||
15854 | fi | ||
15855 | |||
15856 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15857 | if test -n "`echo $ossh_varname`"; then | ||
15858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15859 | $as_echo "$ossh_result" >&6; } | ||
15860 | if test "x$ossh_result" = "xyes"; then | ||
15861 | |||
15862 | $as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h | ||
15863 | |||
15864 | fi | ||
15865 | else | ||
15866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15867 | $as_echo "no" >&6; } | ||
15868 | fi | ||
15869 | |||
15870 | |||
15871 | # look for field 'ut_type' in header 'utmp.h' | ||
15872 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
15873 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
15874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5 | ||
15875 | $as_echo_n "checking for ut_type field in utmp.h... " >&6; } | ||
15876 | if eval \${$ossh_varname+:} false; then : | ||
15877 | $as_echo_n "(cached) " >&6 | ||
15878 | else | ||
15879 | |||
15880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15881 | /* end confdefs.h. */ | ||
15882 | #include <utmp.h> | ||
15883 | |||
15884 | _ACEOF | ||
15885 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15886 | $EGREP "ut_type" >/dev/null 2>&1; then : | ||
15887 | eval "$ossh_varname=yes" | ||
15888 | else | ||
15889 | eval "$ossh_varname=no" | ||
15890 | fi | ||
15891 | rm -f conftest* | ||
15892 | |||
15893 | fi | ||
15894 | |||
15895 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15896 | if test -n "`echo $ossh_varname`"; then | ||
15897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15898 | $as_echo "$ossh_result" >&6; } | ||
15899 | if test "x$ossh_result" = "xyes"; then | ||
15900 | |||
15901 | $as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h | ||
15902 | |||
15903 | fi | ||
15904 | else | ||
15905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15906 | $as_echo "no" >&6; } | ||
15907 | fi | ||
15908 | |||
15909 | |||
15910 | # look for field 'ut_type' in header 'utmpx.h' | ||
15911 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
15912 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
15913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5 | ||
15914 | $as_echo_n "checking for ut_type field in utmpx.h... " >&6; } | ||
15915 | if eval \${$ossh_varname+:} false; then : | ||
15916 | $as_echo_n "(cached) " >&6 | ||
15917 | else | ||
15918 | |||
15919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15920 | /* end confdefs.h. */ | ||
15921 | #include <utmpx.h> | ||
15922 | |||
15923 | _ACEOF | ||
15924 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15925 | $EGREP "ut_type" >/dev/null 2>&1; then : | ||
15926 | eval "$ossh_varname=yes" | ||
15927 | else | ||
15928 | eval "$ossh_varname=no" | ||
15929 | fi | ||
15930 | rm -f conftest* | ||
15931 | |||
15932 | fi | ||
15933 | |||
15934 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15935 | if test -n "`echo $ossh_varname`"; then | ||
15936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15937 | $as_echo "$ossh_result" >&6; } | ||
15938 | if test "x$ossh_result" = "xyes"; then | ||
15939 | |||
15940 | $as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h | ||
15941 | |||
15942 | fi | ||
15943 | else | ||
15944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15945 | $as_echo "no" >&6; } | ||
15946 | fi | ||
15947 | |||
15948 | |||
15949 | # look for field 'ut_tv' in header 'utmp.h' | ||
15950 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
15951 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
15952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5 | ||
15953 | $as_echo_n "checking for ut_tv field in utmp.h... " >&6; } | ||
15954 | if eval \${$ossh_varname+:} false; then : | ||
15955 | $as_echo_n "(cached) " >&6 | ||
15956 | else | ||
15957 | |||
15958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15959 | /* end confdefs.h. */ | ||
15960 | #include <utmp.h> | ||
15961 | |||
15962 | _ACEOF | ||
15963 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15964 | $EGREP "ut_tv" >/dev/null 2>&1; then : | ||
15965 | eval "$ossh_varname=yes" | ||
15966 | else | ||
15967 | eval "$ossh_varname=no" | ||
15968 | fi | ||
15969 | rm -f conftest* | ||
15970 | |||
15971 | fi | ||
15972 | |||
15973 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15974 | if test -n "`echo $ossh_varname`"; then | ||
15975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15976 | $as_echo "$ossh_result" >&6; } | ||
15977 | if test "x$ossh_result" = "xyes"; then | ||
15978 | |||
15979 | $as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h | ||
15980 | |||
15981 | fi | ||
15982 | else | ||
15983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15984 | $as_echo "no" >&6; } | ||
15985 | fi | ||
15986 | |||
15987 | |||
15988 | # look for field 'ut_id' in header 'utmp.h' | ||
15989 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
15990 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
15991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5 | ||
15992 | $as_echo_n "checking for ut_id field in utmp.h... " >&6; } | ||
15993 | if eval \${$ossh_varname+:} false; then : | ||
15994 | $as_echo_n "(cached) " >&6 | ||
15995 | else | ||
15996 | |||
15997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15998 | /* end confdefs.h. */ | ||
15999 | #include <utmp.h> | ||
16000 | |||
16001 | _ACEOF | ||
16002 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16003 | $EGREP "ut_id" >/dev/null 2>&1; then : | ||
16004 | eval "$ossh_varname=yes" | ||
16005 | else | ||
16006 | eval "$ossh_varname=no" | ||
16007 | fi | ||
16008 | rm -f conftest* | ||
16009 | |||
16010 | fi | ||
16011 | |||
16012 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16013 | if test -n "`echo $ossh_varname`"; then | ||
16014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16015 | $as_echo "$ossh_result" >&6; } | ||
16016 | if test "x$ossh_result" = "xyes"; then | ||
16017 | |||
16018 | $as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h | ||
16019 | |||
16020 | fi | ||
16021 | else | ||
16022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16023 | $as_echo "no" >&6; } | ||
16024 | fi | ||
16025 | |||
16026 | |||
16027 | # look for field 'ut_id' in header 'utmpx.h' | ||
16028 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
16029 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
16030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5 | ||
16031 | $as_echo_n "checking for ut_id field in utmpx.h... " >&6; } | ||
16032 | if eval \${$ossh_varname+:} false; then : | ||
16033 | $as_echo_n "(cached) " >&6 | ||
16034 | else | ||
16035 | |||
16036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16037 | /* end confdefs.h. */ | ||
16038 | #include <utmpx.h> | ||
16039 | |||
16040 | _ACEOF | ||
16041 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16042 | $EGREP "ut_id" >/dev/null 2>&1; then : | ||
16043 | eval "$ossh_varname=yes" | ||
16044 | else | ||
16045 | eval "$ossh_varname=no" | ||
16046 | fi | ||
16047 | rm -f conftest* | ||
16048 | |||
16049 | fi | ||
16050 | |||
16051 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16052 | if test -n "`echo $ossh_varname`"; then | ||
16053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16054 | $as_echo "$ossh_result" >&6; } | ||
16055 | if test "x$ossh_result" = "xyes"; then | ||
16056 | |||
16057 | $as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h | ||
16058 | |||
16059 | fi | ||
16060 | else | ||
16061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16062 | $as_echo "no" >&6; } | ||
16063 | fi | ||
16064 | |||
16065 | |||
16066 | # look for field 'ut_addr' in header 'utmp.h' | ||
16067 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
16068 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
16069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5 | ||
16070 | $as_echo_n "checking for ut_addr field in utmp.h... " >&6; } | ||
16071 | if eval \${$ossh_varname+:} false; then : | ||
16072 | $as_echo_n "(cached) " >&6 | ||
16073 | else | ||
16074 | |||
16075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16076 | /* end confdefs.h. */ | ||
16077 | #include <utmp.h> | ||
16078 | |||
16079 | _ACEOF | ||
16080 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16081 | $EGREP "ut_addr" >/dev/null 2>&1; then : | ||
16082 | eval "$ossh_varname=yes" | ||
16083 | else | ||
16084 | eval "$ossh_varname=no" | ||
16085 | fi | ||
16086 | rm -f conftest* | ||
16087 | |||
16088 | fi | ||
16089 | |||
16090 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16091 | if test -n "`echo $ossh_varname`"; then | ||
16092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16093 | $as_echo "$ossh_result" >&6; } | ||
16094 | if test "x$ossh_result" = "xyes"; then | ||
16095 | |||
16096 | $as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h | ||
16097 | |||
16098 | fi | ||
16099 | else | ||
16100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16101 | $as_echo "no" >&6; } | ||
16102 | fi | ||
16103 | |||
16104 | |||
16105 | # look for field 'ut_addr' in header 'utmpx.h' | ||
16106 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
16107 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
16108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5 | ||
16109 | $as_echo_n "checking for ut_addr field in utmpx.h... " >&6; } | ||
16110 | if eval \${$ossh_varname+:} false; then : | ||
16111 | $as_echo_n "(cached) " >&6 | ||
16112 | else | ||
16113 | |||
16114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16115 | /* end confdefs.h. */ | ||
16116 | #include <utmpx.h> | ||
16117 | |||
16118 | _ACEOF | ||
16119 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16120 | $EGREP "ut_addr" >/dev/null 2>&1; then : | ||
16121 | eval "$ossh_varname=yes" | ||
16122 | else | ||
16123 | eval "$ossh_varname=no" | ||
16124 | fi | ||
16125 | rm -f conftest* | ||
16126 | |||
16127 | fi | ||
16128 | |||
16129 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16130 | if test -n "`echo $ossh_varname`"; then | ||
16131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16132 | $as_echo "$ossh_result" >&6; } | ||
16133 | if test "x$ossh_result" = "xyes"; then | ||
16134 | |||
16135 | $as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h | ||
16136 | |||
16137 | fi | ||
16138 | else | ||
16139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16140 | $as_echo "no" >&6; } | ||
16141 | fi | ||
16142 | |||
16143 | |||
16144 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
16145 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
16146 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
16147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5 | ||
16148 | $as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; } | ||
16149 | if eval \${$ossh_varname+:} false; then : | ||
16150 | $as_echo_n "(cached) " >&6 | ||
16151 | else | ||
16152 | |||
16153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16154 | /* end confdefs.h. */ | ||
16155 | #include <utmp.h> | ||
16156 | |||
16157 | _ACEOF | ||
16158 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16159 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then : | ||
16160 | eval "$ossh_varname=yes" | ||
16161 | else | ||
16162 | eval "$ossh_varname=no" | ||
16163 | fi | ||
16164 | rm -f conftest* | ||
16165 | |||
16166 | fi | ||
16167 | |||
16168 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16169 | if test -n "`echo $ossh_varname`"; then | ||
16170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16171 | $as_echo "$ossh_result" >&6; } | ||
16172 | if test "x$ossh_result" = "xyes"; then | ||
16173 | |||
16174 | $as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h | ||
16175 | |||
16176 | fi | ||
16177 | else | ||
16178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16179 | $as_echo "no" >&6; } | ||
16180 | fi | ||
16181 | |||
16182 | |||
16183 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
16184 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
16185 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
16186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
16187 | $as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; } | ||
16188 | if eval \${$ossh_varname+:} false; then : | ||
16189 | $as_echo_n "(cached) " >&6 | ||
16190 | else | ||
16191 | |||
16192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16193 | /* end confdefs.h. */ | ||
16194 | #include <utmpx.h> | ||
16195 | |||
16196 | _ACEOF | ||
16197 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16198 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then : | ||
16199 | eval "$ossh_varname=yes" | ||
16200 | else | ||
16201 | eval "$ossh_varname=no" | ||
16202 | fi | ||
16203 | rm -f conftest* | ||
16204 | |||
16205 | fi | ||
16206 | |||
16207 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16208 | if test -n "`echo $ossh_varname`"; then | ||
16209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16210 | $as_echo "$ossh_result" >&6; } | ||
16211 | if test "x$ossh_result" = "xyes"; then | ||
16212 | |||
16213 | $as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h | ||
16214 | |||
16215 | fi | ||
16216 | else | ||
16217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16218 | $as_echo "no" >&6; } | ||
16219 | fi | ||
16220 | |||
16221 | |||
16222 | # look for field 'ut_exit' in header 'utmp.h' | ||
16223 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
16224 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
16225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5 | ||
16226 | $as_echo_n "checking for ut_exit field in utmp.h... " >&6; } | ||
16227 | if eval \${$ossh_varname+:} false; then : | ||
16228 | $as_echo_n "(cached) " >&6 | ||
16229 | else | ||
16230 | |||
16231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16232 | /* end confdefs.h. */ | ||
16233 | #include <utmp.h> | ||
16234 | |||
16235 | _ACEOF | ||
16236 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16237 | $EGREP "ut_exit" >/dev/null 2>&1; then : | ||
16238 | eval "$ossh_varname=yes" | ||
16239 | else | ||
16240 | eval "$ossh_varname=no" | ||
16241 | fi | ||
16242 | rm -f conftest* | ||
16243 | |||
16244 | fi | ||
16245 | |||
16246 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16247 | if test -n "`echo $ossh_varname`"; then | ||
16248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16249 | $as_echo "$ossh_result" >&6; } | ||
16250 | if test "x$ossh_result" = "xyes"; then | ||
16251 | |||
16252 | $as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h | ||
16253 | |||
16254 | fi | ||
16255 | else | ||
16256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16257 | $as_echo "no" >&6; } | ||
16258 | fi | ||
16259 | |||
16260 | |||
16261 | # look for field 'ut_time' in header 'utmp.h' | ||
16262 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
16263 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
16264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5 | ||
16265 | $as_echo_n "checking for ut_time field in utmp.h... " >&6; } | ||
16266 | if eval \${$ossh_varname+:} false; then : | ||
16267 | $as_echo_n "(cached) " >&6 | ||
16268 | else | ||
16269 | |||
16270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16271 | /* end confdefs.h. */ | ||
16272 | #include <utmp.h> | ||
16273 | |||
16274 | _ACEOF | ||
16275 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16276 | $EGREP "ut_time" >/dev/null 2>&1; then : | ||
16277 | eval "$ossh_varname=yes" | ||
16278 | else | ||
16279 | eval "$ossh_varname=no" | ||
16280 | fi | ||
16281 | rm -f conftest* | ||
16282 | |||
16283 | fi | ||
16284 | |||
16285 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16286 | if test -n "`echo $ossh_varname`"; then | ||
16287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16288 | $as_echo "$ossh_result" >&6; } | ||
16289 | if test "x$ossh_result" = "xyes"; then | ||
16290 | |||
16291 | $as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h | ||
16292 | |||
16293 | fi | ||
16294 | else | ||
16295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16296 | $as_echo "no" >&6; } | ||
16297 | fi | ||
16298 | |||
16299 | |||
16300 | # look for field 'ut_time' in header 'utmpx.h' | ||
16301 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
16302 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
16303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5 | ||
16304 | $as_echo_n "checking for ut_time field in utmpx.h... " >&6; } | ||
16305 | if eval \${$ossh_varname+:} false; then : | ||
16306 | $as_echo_n "(cached) " >&6 | ||
16307 | else | ||
16308 | |||
16309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16310 | /* end confdefs.h. */ | ||
16311 | #include <utmpx.h> | ||
16312 | |||
16313 | _ACEOF | ||
16314 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16315 | $EGREP "ut_time" >/dev/null 2>&1; then : | ||
16316 | eval "$ossh_varname=yes" | ||
16317 | else | ||
16318 | eval "$ossh_varname=no" | ||
16319 | fi | ||
16320 | rm -f conftest* | ||
16321 | |||
16322 | fi | ||
16323 | |||
16324 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16325 | if test -n "`echo $ossh_varname`"; then | ||
16326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16327 | $as_echo "$ossh_result" >&6; } | ||
16328 | if test "x$ossh_result" = "xyes"; then | ||
16329 | |||
16330 | $as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h | ||
16331 | |||
16332 | fi | ||
16333 | else | ||
16334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16335 | $as_echo "no" >&6; } | ||
16336 | fi | ||
16337 | |||
16338 | |||
16339 | # look for field 'ut_tv' in header 'utmpx.h' | ||
16340 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
16341 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
16342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5 | ||
16343 | $as_echo_n "checking for ut_tv field in utmpx.h... " >&6; } | ||
16344 | if eval \${$ossh_varname+:} false; then : | ||
16345 | $as_echo_n "(cached) " >&6 | ||
16346 | else | ||
16347 | |||
16348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16349 | /* end confdefs.h. */ | ||
16350 | #include <utmpx.h> | ||
16351 | |||
16352 | _ACEOF | ||
16353 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
16354 | $EGREP "ut_tv" >/dev/null 2>&1; then : | ||
16355 | eval "$ossh_varname=yes" | ||
16356 | else | ||
16357 | eval "$ossh_varname=no" | ||
16358 | fi | ||
16359 | rm -f conftest* | ||
16360 | |||
16361 | fi | ||
16362 | |||
16363 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
16364 | if test -n "`echo $ossh_varname`"; then | ||
16365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
16366 | $as_echo "$ossh_result" >&6; } | ||
16367 | if test "x$ossh_result" = "xyes"; then | ||
16368 | |||
16369 | $as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h | ||
16370 | |||
16371 | fi | ||
16372 | else | ||
16373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16374 | $as_echo "no" >&6; } | ||
16375 | fi | ||
16376 | |||
16377 | |||
16378 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | ||
16379 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | ||
16380 | |||
16381 | cat >>confdefs.h <<_ACEOF | ||
16382 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
16383 | _ACEOF | ||
16384 | |||
16385 | |||
16386 | fi | ||
16387 | |||
16388 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default" | ||
16389 | if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then : | ||
16390 | |||
16391 | cat >>confdefs.h <<_ACEOF | ||
16392 | #define HAVE_STRUCT_STAT_ST_MTIM 1 | ||
16393 | _ACEOF | ||
16394 | |||
16395 | |||
16396 | fi | ||
16397 | |||
16398 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "$ac_includes_default" | ||
16399 | if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then : | ||
16400 | |||
16401 | cat >>confdefs.h <<_ACEOF | ||
16402 | #define HAVE_STRUCT_STAT_ST_MTIME 1 | ||
16403 | _ACEOF | ||
16404 | |||
16405 | |||
16406 | fi | ||
16407 | |||
16408 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " | ||
16409 | #include <sys/types.h> | ||
16410 | #include <pwd.h> | ||
16411 | |||
16412 | " | ||
16413 | if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : | ||
16414 | |||
16415 | cat >>confdefs.h <<_ACEOF | ||
16416 | #define HAVE_STRUCT_PASSWD_PW_GECOS 1 | ||
16417 | _ACEOF | ||
16418 | |||
16419 | |||
16420 | fi | ||
16421 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_class" "ac_cv_member_struct_passwd_pw_class" " | ||
16422 | #include <sys/types.h> | ||
16423 | #include <pwd.h> | ||
16424 | |||
16425 | " | ||
16426 | if test "x$ac_cv_member_struct_passwd_pw_class" = xyes; then : | ||
16427 | |||
16428 | cat >>confdefs.h <<_ACEOF | ||
16429 | #define HAVE_STRUCT_PASSWD_PW_CLASS 1 | ||
16430 | _ACEOF | ||
16431 | |||
16432 | |||
16433 | fi | ||
16434 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_change" "ac_cv_member_struct_passwd_pw_change" " | ||
16435 | #include <sys/types.h> | ||
16436 | #include <pwd.h> | ||
16437 | |||
16438 | " | ||
16439 | if test "x$ac_cv_member_struct_passwd_pw_change" = xyes; then : | ||
16440 | |||
16441 | cat >>confdefs.h <<_ACEOF | ||
16442 | #define HAVE_STRUCT_PASSWD_PW_CHANGE 1 | ||
16443 | _ACEOF | ||
16444 | |||
16445 | |||
16446 | fi | ||
16447 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_expire" "ac_cv_member_struct_passwd_pw_expire" " | ||
16448 | #include <sys/types.h> | ||
16449 | #include <pwd.h> | ||
16450 | |||
16451 | " | ||
16452 | if test "x$ac_cv_member_struct_passwd_pw_expire" = xyes; then : | ||
16453 | |||
16454 | cat >>confdefs.h <<_ACEOF | ||
16455 | #define HAVE_STRUCT_PASSWD_PW_EXPIRE 1 | ||
16456 | _ACEOF | ||
16457 | |||
16458 | |||
16459 | fi | ||
16460 | |||
16461 | |||
16462 | ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" " | ||
16463 | #include <stdio.h> | ||
16464 | #if HAVE_SYS_TYPES_H | ||
16465 | # include <sys/types.h> | ||
16466 | #endif | ||
16467 | #include <netinet/in.h> | ||
16468 | #include <arpa/nameser.h> | ||
16469 | #include <resolv.h> | ||
16470 | |||
16471 | " | ||
16472 | if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then : | ||
16473 | |||
16474 | else | ||
16475 | |||
16476 | $as_echo "#define __res_state state" >>confdefs.h | ||
16477 | |||
16478 | fi | ||
16479 | |||
16480 | |||
16481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5 | ||
16482 | $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; } | ||
16483 | if ${ac_cv_have_ss_family_in_struct_ss+:} false; then : | ||
16484 | $as_echo_n "(cached) " >&6 | ||
16485 | else | ||
16486 | |||
16487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16488 | /* end confdefs.h. */ | ||
16489 | |||
16490 | #include <sys/types.h> | ||
16491 | #include <sys/socket.h> | ||
16492 | |||
16493 | int | ||
16494 | main () | ||
16495 | { | ||
16496 | struct sockaddr_storage s; s.ss_family = 1; | ||
16497 | ; | ||
16498 | return 0; | ||
16499 | } | ||
16500 | _ACEOF | ||
16501 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16502 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
16503 | else | ||
16504 | ac_cv_have_ss_family_in_struct_ss="no" | ||
16505 | fi | ||
16506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16507 | |||
16508 | fi | ||
16509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
16510 | $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; } | ||
16511 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
16512 | |||
16513 | $as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h | ||
16514 | |||
16515 | fi | ||
16516 | |||
16517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
16518 | $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; } | ||
16519 | if ${ac_cv_have___ss_family_in_struct_ss+:} false; then : | ||
16520 | $as_echo_n "(cached) " >&6 | ||
16521 | else | ||
16522 | |||
16523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16524 | /* end confdefs.h. */ | ||
16525 | |||
16526 | #include <sys/types.h> | ||
16527 | #include <sys/socket.h> | ||
16528 | |||
16529 | int | ||
16530 | main () | ||
16531 | { | ||
16532 | struct sockaddr_storage s; s.__ss_family = 1; | ||
16533 | ; | ||
16534 | return 0; | ||
16535 | } | ||
16536 | _ACEOF | ||
16537 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16538 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
16539 | else | ||
16540 | ac_cv_have___ss_family_in_struct_ss="no" | ||
16541 | |||
16542 | fi | ||
16543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16544 | |||
16545 | fi | ||
16546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
16547 | $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; } | ||
16548 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
16549 | |||
16550 | $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h | ||
16551 | |||
16552 | fi | ||
16553 | |||
16554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5 | ||
16555 | $as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; } | ||
16556 | if ${ac_cv_have_accrights_in_msghdr+:} 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 <sys/types.h> | ||
16564 | #include <sys/socket.h> | ||
16565 | #include <sys/uio.h> | ||
16566 | |||
16567 | int | ||
16568 | main () | ||
16569 | { | ||
16570 | |||
16571 | #ifdef msg_accrights | ||
16572 | #error "msg_accrights is a macro" | ||
16573 | exit(1); | ||
16574 | #endif | ||
16575 | struct msghdr m; | ||
16576 | m.msg_accrights = 0; | ||
16577 | exit(0); | ||
16578 | |||
16579 | ; | ||
16580 | return 0; | ||
16581 | } | ||
16582 | _ACEOF | ||
16583 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16584 | ac_cv_have_accrights_in_msghdr="yes" | ||
16585 | else | ||
16586 | ac_cv_have_accrights_in_msghdr="no" | ||
16587 | |||
16588 | fi | ||
16589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16590 | |||
16591 | fi | ||
16592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
16593 | $as_echo "$ac_cv_have_accrights_in_msghdr" >&6; } | ||
16594 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
16595 | |||
16596 | $as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h | ||
16597 | |||
16598 | fi | ||
16599 | |||
16600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5 | ||
16601 | $as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; } | ||
16602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16603 | /* end confdefs.h. */ | ||
16604 | |||
16605 | #include <sys/param.h> | ||
16606 | #include <sys/stat.h> | ||
16607 | #ifdef HAVE_SYS_TIME_H | ||
16608 | # include <sys/time.h> | ||
16609 | #endif | ||
16610 | #ifdef HAVE_SYS_MOUNT_H | ||
16611 | #include <sys/mount.h> | ||
16612 | #endif | ||
16613 | #ifdef HAVE_SYS_STATVFS_H | ||
16614 | #include <sys/statvfs.h> | ||
16615 | #endif | ||
16616 | |||
16617 | int | ||
16618 | main () | ||
16619 | { | ||
16620 | struct statvfs s; s.f_fsid = 0; | ||
16621 | ; | ||
16622 | return 0; | ||
16623 | } | ||
16624 | _ACEOF | ||
16625 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16627 | $as_echo "yes" >&6; } | ||
16628 | else | ||
16629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16630 | $as_echo "no" >&6; } | ||
16631 | |||
16632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5 | ||
16633 | $as_echo_n "checking if fsid_t has member val... " >&6; } | ||
16634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16635 | /* end confdefs.h. */ | ||
16636 | |||
16637 | #include <sys/types.h> | ||
16638 | #include <sys/statvfs.h> | ||
16639 | |||
16640 | int | ||
16641 | main () | ||
16642 | { | ||
16643 | fsid_t t; t.val[0] = 0; | ||
16644 | ; | ||
16645 | return 0; | ||
16646 | } | ||
16647 | _ACEOF | ||
16648 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16650 | $as_echo "yes" >&6; } | ||
16651 | |||
16652 | $as_echo "#define FSID_HAS_VAL 1" >>confdefs.h | ||
16653 | |||
16654 | else | ||
16655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16656 | $as_echo "no" >&6; } | ||
16657 | fi | ||
16658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16659 | |||
16660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5 | ||
16661 | $as_echo_n "checking if f_fsid has member __val... " >&6; } | ||
16662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16663 | /* end confdefs.h. */ | ||
16664 | |||
16665 | #include <sys/types.h> | ||
16666 | #include <sys/statvfs.h> | ||
16667 | |||
16668 | int | ||
16669 | main () | ||
16670 | { | ||
16671 | fsid_t t; t.__val[0] = 0; | ||
16672 | ; | ||
16673 | return 0; | ||
16674 | } | ||
16675 | _ACEOF | ||
16676 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16678 | $as_echo "yes" >&6; } | ||
16679 | |||
16680 | $as_echo "#define FSID_HAS___VAL 1" >>confdefs.h | ||
16681 | |||
16682 | else | ||
16683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16684 | $as_echo "no" >&6; } | ||
16685 | fi | ||
16686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16687 | |||
16688 | fi | ||
16689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16690 | |||
16691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5 | ||
16692 | $as_echo_n "checking for msg_control field in struct msghdr... " >&6; } | ||
16693 | if ${ac_cv_have_control_in_msghdr+:} false; then : | ||
16694 | $as_echo_n "(cached) " >&6 | ||
16695 | else | ||
16696 | |||
16697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16698 | /* end confdefs.h. */ | ||
16699 | |||
16700 | #include <sys/types.h> | ||
16701 | #include <sys/socket.h> | ||
16702 | #include <sys/uio.h> | ||
16703 | |||
16704 | int | ||
16705 | main () | ||
16706 | { | ||
16707 | |||
16708 | #ifdef msg_control | ||
16709 | #error "msg_control is a macro" | ||
16710 | exit(1); | ||
16711 | #endif | ||
16712 | struct msghdr m; | ||
16713 | m.msg_control = 0; | ||
16714 | exit(0); | ||
16715 | |||
16716 | ; | ||
16717 | return 0; | ||
16718 | } | ||
16719 | _ACEOF | ||
16720 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16721 | ac_cv_have_control_in_msghdr="yes" | ||
16722 | else | ||
16723 | ac_cv_have_control_in_msghdr="no" | ||
16724 | |||
16725 | fi | ||
16726 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16727 | |||
16728 | fi | ||
16729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5 | ||
16730 | $as_echo "$ac_cv_have_control_in_msghdr" >&6; } | ||
16731 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
16732 | |||
16733 | $as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h | ||
16734 | |||
16735 | fi | ||
16736 | |||
16737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5 | ||
16738 | $as_echo_n "checking if libc defines __progname... " >&6; } | ||
16739 | if ${ac_cv_libc_defines___progname+:} false; then : | ||
16740 | $as_echo_n "(cached) " >&6 | ||
16741 | else | ||
16742 | |||
16743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16744 | /* end confdefs.h. */ | ||
16745 | |||
16746 | int | ||
16747 | main () | ||
16748 | { | ||
16749 | extern char *__progname; printf("%s", __progname); | ||
16750 | ; | ||
16751 | return 0; | ||
16752 | } | ||
16753 | _ACEOF | ||
16754 | if ac_fn_c_try_link "$LINENO"; then : | ||
16755 | ac_cv_libc_defines___progname="yes" | ||
16756 | else | ||
16757 | ac_cv_libc_defines___progname="no" | ||
16758 | |||
16759 | fi | ||
16760 | rm -f core conftest.err conftest.$ac_objext \ | ||
16761 | conftest$ac_exeext conftest.$ac_ext | ||
16762 | |||
16763 | fi | ||
16764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5 | ||
16765 | $as_echo "$ac_cv_libc_defines___progname" >&6; } | ||
16766 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
16767 | |||
16768 | $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h | ||
16769 | |||
16770 | fi | ||
16771 | |||
16772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5 | ||
16773 | $as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; } | ||
16774 | if ${ac_cv_cc_implements___FUNCTION__+:} false; then : | ||
16775 | $as_echo_n "(cached) " >&6 | ||
16776 | else | ||
16777 | |||
16778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16779 | /* end confdefs.h. */ | ||
16780 | #include <stdio.h> | ||
16781 | int | ||
16782 | main () | ||
16783 | { | ||
16784 | printf("%s", __FUNCTION__); | ||
16785 | ; | ||
16786 | return 0; | ||
16787 | } | ||
16788 | _ACEOF | ||
16789 | if ac_fn_c_try_link "$LINENO"; then : | ||
16790 | ac_cv_cc_implements___FUNCTION__="yes" | ||
16791 | else | ||
16792 | ac_cv_cc_implements___FUNCTION__="no" | ||
16793 | |||
16794 | fi | ||
16795 | rm -f core conftest.err conftest.$ac_objext \ | ||
16796 | conftest$ac_exeext conftest.$ac_ext | ||
16797 | |||
16798 | fi | ||
16799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
16800 | $as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; } | ||
16801 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
16802 | |||
16803 | $as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h | ||
16804 | |||
16805 | fi | ||
16806 | |||
16807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5 | ||
16808 | $as_echo_n "checking whether $CC implements __func__... " >&6; } | ||
16809 | if ${ac_cv_cc_implements___func__+:} false; then : | ||
16810 | $as_echo_n "(cached) " >&6 | ||
16811 | else | ||
16812 | |||
16813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16814 | /* end confdefs.h. */ | ||
16815 | #include <stdio.h> | ||
16816 | int | ||
16817 | main () | ||
16818 | { | ||
16819 | printf("%s", __func__); | ||
16820 | ; | ||
16821 | return 0; | ||
16822 | } | ||
16823 | _ACEOF | ||
16824 | if ac_fn_c_try_link "$LINENO"; then : | ||
16825 | ac_cv_cc_implements___func__="yes" | ||
16826 | else | ||
16827 | ac_cv_cc_implements___func__="no" | ||
16828 | |||
16829 | fi | ||
16830 | rm -f core conftest.err conftest.$ac_objext \ | ||
16831 | conftest$ac_exeext conftest.$ac_ext | ||
16832 | |||
16833 | fi | ||
16834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5 | ||
16835 | $as_echo "$ac_cv_cc_implements___func__" >&6; } | ||
16836 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
16837 | |||
16838 | $as_echo "#define HAVE___func__ 1" >>confdefs.h | ||
16839 | |||
16840 | fi | ||
16841 | |||
16842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5 | ||
16843 | $as_echo_n "checking whether va_copy exists... " >&6; } | ||
16844 | if ${ac_cv_have_va_copy+:} false; then : | ||
16845 | $as_echo_n "(cached) " >&6 | ||
16846 | else | ||
16847 | |||
16848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16849 | /* end confdefs.h. */ | ||
16850 | |||
16851 | #include <stdarg.h> | ||
16852 | va_list x,y; | ||
16853 | |||
16854 | int | ||
16855 | main () | ||
16856 | { | ||
16857 | va_copy(x,y); | ||
16858 | ; | ||
16859 | return 0; | ||
16860 | } | ||
16861 | _ACEOF | ||
16862 | if ac_fn_c_try_link "$LINENO"; then : | ||
16863 | ac_cv_have_va_copy="yes" | ||
16864 | else | ||
16865 | ac_cv_have_va_copy="no" | ||
16866 | |||
16867 | fi | ||
16868 | rm -f core conftest.err conftest.$ac_objext \ | ||
16869 | conftest$ac_exeext conftest.$ac_ext | ||
16870 | |||
16871 | fi | ||
16872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5 | ||
16873 | $as_echo "$ac_cv_have_va_copy" >&6; } | ||
16874 | if test "x$ac_cv_have_va_copy" = "xyes" ; then | ||
16875 | |||
16876 | $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h | ||
16877 | |||
16878 | fi | ||
16879 | |||
16880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5 | ||
16881 | $as_echo_n "checking whether __va_copy exists... " >&6; } | ||
16882 | if ${ac_cv_have___va_copy+:} false; then : | ||
16883 | $as_echo_n "(cached) " >&6 | ||
16884 | else | ||
16885 | |||
16886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16887 | /* end confdefs.h. */ | ||
16888 | |||
16889 | #include <stdarg.h> | ||
16890 | va_list x,y; | ||
16891 | |||
16892 | int | ||
16893 | main () | ||
16894 | { | ||
16895 | __va_copy(x,y); | ||
16896 | ; | ||
16897 | return 0; | ||
16898 | } | ||
16899 | _ACEOF | ||
16900 | if ac_fn_c_try_link "$LINENO"; then : | ||
16901 | ac_cv_have___va_copy="yes" | ||
16902 | else | ||
16903 | ac_cv_have___va_copy="no" | ||
16904 | |||
16905 | fi | ||
16906 | rm -f core conftest.err conftest.$ac_objext \ | ||
16907 | conftest$ac_exeext conftest.$ac_ext | ||
16908 | |||
16909 | fi | ||
16910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5 | ||
16911 | $as_echo "$ac_cv_have___va_copy" >&6; } | ||
16912 | if test "x$ac_cv_have___va_copy" = "xyes" ; then | ||
16913 | |||
16914 | $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h | ||
16915 | |||
16916 | fi | ||
16917 | |||
16918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5 | ||
16919 | $as_echo_n "checking whether getopt has optreset support... " >&6; } | ||
16920 | if ${ac_cv_have_getopt_optreset+:} false; then : | ||
16921 | $as_echo_n "(cached) " >&6 | ||
16922 | else | ||
16923 | |||
16924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16925 | /* end confdefs.h. */ | ||
16926 | #include <getopt.h> | ||
16927 | int | ||
16928 | main () | ||
16929 | { | ||
16930 | extern int optreset; optreset = 0; | ||
16931 | ; | ||
16932 | return 0; | ||
16933 | } | ||
16934 | _ACEOF | ||
16935 | if ac_fn_c_try_link "$LINENO"; then : | ||
16936 | ac_cv_have_getopt_optreset="yes" | ||
16937 | else | ||
16938 | ac_cv_have_getopt_optreset="no" | ||
16939 | |||
16940 | fi | ||
16941 | rm -f core conftest.err conftest.$ac_objext \ | ||
16942 | conftest$ac_exeext conftest.$ac_ext | ||
16943 | |||
16944 | fi | ||
16945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5 | ||
16946 | $as_echo "$ac_cv_have_getopt_optreset" >&6; } | ||
16947 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
16948 | |||
16949 | $as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h | ||
16950 | |||
16951 | fi | ||
16952 | |||
16953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5 | ||
16954 | $as_echo_n "checking if libc defines sys_errlist... " >&6; } | ||
16955 | if ${ac_cv_libc_defines_sys_errlist+:} false; then : | ||
16956 | $as_echo_n "(cached) " >&6 | ||
16957 | else | ||
16958 | |||
16959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16960 | /* end confdefs.h. */ | ||
16961 | |||
16962 | int | ||
16963 | main () | ||
16964 | { | ||
16965 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
16966 | ; | ||
16967 | return 0; | ||
16968 | } | ||
16969 | _ACEOF | ||
16970 | if ac_fn_c_try_link "$LINENO"; then : | ||
16971 | ac_cv_libc_defines_sys_errlist="yes" | ||
16972 | else | ||
16973 | ac_cv_libc_defines_sys_errlist="no" | ||
16974 | |||
16975 | fi | ||
16976 | rm -f core conftest.err conftest.$ac_objext \ | ||
16977 | conftest$ac_exeext conftest.$ac_ext | ||
16978 | |||
16979 | fi | ||
16980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
16981 | $as_echo "$ac_cv_libc_defines_sys_errlist" >&6; } | ||
16982 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
16983 | |||
16984 | $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h | ||
16985 | |||
16986 | fi | ||
16987 | |||
16988 | |||
16989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5 | ||
16990 | $as_echo_n "checking if libc defines sys_nerr... " >&6; } | ||
16991 | if ${ac_cv_libc_defines_sys_nerr+:} false; then : | ||
16992 | $as_echo_n "(cached) " >&6 | ||
16993 | else | ||
16994 | |||
16995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16996 | /* end confdefs.h. */ | ||
16997 | |||
16998 | int | ||
16999 | main () | ||
17000 | { | ||
17001 | extern int sys_nerr; printf("%i", sys_nerr); | ||
17002 | ; | ||
17003 | return 0; | ||
17004 | } | ||
17005 | _ACEOF | ||
17006 | if ac_fn_c_try_link "$LINENO"; then : | ||
17007 | ac_cv_libc_defines_sys_nerr="yes" | ||
17008 | else | ||
17009 | ac_cv_libc_defines_sys_nerr="no" | ||
17010 | |||
17011 | fi | ||
17012 | rm -f core conftest.err conftest.$ac_objext \ | ||
17013 | conftest$ac_exeext conftest.$ac_ext | ||
17014 | |||
17015 | fi | ||
17016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
17017 | $as_echo "$ac_cv_libc_defines_sys_nerr" >&6; } | ||
17018 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
17019 | |||
17020 | $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h | ||
17021 | |||
17022 | fi | ||
17023 | |||
17024 | # Check libraries needed by DNS fingerprint support | ||
17025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5 | ||
17026 | $as_echo_n "checking for library containing getrrsetbyname... " >&6; } | ||
17027 | if ${ac_cv_search_getrrsetbyname+:} false; then : | ||
17028 | $as_echo_n "(cached) " >&6 | ||
17029 | else | ||
17030 | ac_func_search_save_LIBS=$LIBS | ||
17031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17032 | /* end confdefs.h. */ | ||
17033 | |||
17034 | /* Override any GCC internal prototype to avoid an error. | ||
17035 | Use char because int might match the return type of a GCC | ||
17036 | builtin and then its argument prototype would still apply. */ | ||
17037 | #ifdef __cplusplus | ||
17038 | extern "C" | ||
17039 | #endif | ||
17040 | char getrrsetbyname (); | ||
17041 | int | ||
17042 | main () | ||
17043 | { | ||
17044 | return getrrsetbyname (); | ||
17045 | ; | ||
17046 | return 0; | ||
17047 | } | ||
17048 | _ACEOF | ||
17049 | for ac_lib in '' resolv; do | ||
17050 | if test -z "$ac_lib"; then | ||
17051 | ac_res="none required" | ||
17052 | else | ||
17053 | ac_res=-l$ac_lib | ||
17054 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
17055 | fi | ||
17056 | if ac_fn_c_try_link "$LINENO"; then : | ||
17057 | ac_cv_search_getrrsetbyname=$ac_res | ||
17058 | fi | ||
17059 | rm -f core conftest.err conftest.$ac_objext \ | ||
17060 | conftest$ac_exeext | ||
17061 | if ${ac_cv_search_getrrsetbyname+:} false; then : | ||
17062 | break | ||
17063 | fi | ||
17064 | done | ||
17065 | if ${ac_cv_search_getrrsetbyname+:} false; then : | ||
17066 | |||
17067 | else | ||
17068 | ac_cv_search_getrrsetbyname=no | ||
17069 | fi | ||
17070 | rm conftest.$ac_ext | ||
17071 | LIBS=$ac_func_search_save_LIBS | ||
17072 | fi | ||
17073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5 | ||
17074 | $as_echo "$ac_cv_search_getrrsetbyname" >&6; } | ||
17075 | ac_res=$ac_cv_search_getrrsetbyname | ||
17076 | if test "$ac_res" != no; then : | ||
17077 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
17078 | |||
17079 | $as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h | ||
17080 | |||
17081 | else | ||
17082 | |||
17083 | # Needed by our getrrsetbyname() | ||
17084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5 | ||
17085 | $as_echo_n "checking for library containing res_query... " >&6; } | ||
17086 | if ${ac_cv_search_res_query+:} false; then : | ||
17087 | $as_echo_n "(cached) " >&6 | ||
17088 | else | ||
17089 | ac_func_search_save_LIBS=$LIBS | ||
17090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17091 | /* end confdefs.h. */ | ||
17092 | |||
17093 | /* Override any GCC internal prototype to avoid an error. | ||
17094 | Use char because int might match the return type of a GCC | ||
17095 | builtin and then its argument prototype would still apply. */ | ||
17096 | #ifdef __cplusplus | ||
17097 | extern "C" | ||
17098 | #endif | ||
17099 | char res_query (); | ||
17100 | int | ||
17101 | main () | ||
17102 | { | ||
17103 | return res_query (); | ||
17104 | ; | ||
17105 | return 0; | ||
17106 | } | ||
17107 | _ACEOF | ||
17108 | for ac_lib in '' resolv; do | ||
17109 | if test -z "$ac_lib"; then | ||
17110 | ac_res="none required" | ||
17111 | else | ||
17112 | ac_res=-l$ac_lib | ||
17113 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
17114 | fi | ||
17115 | if ac_fn_c_try_link "$LINENO"; then : | ||
17116 | ac_cv_search_res_query=$ac_res | ||
17117 | fi | ||
17118 | rm -f core conftest.err conftest.$ac_objext \ | ||
17119 | conftest$ac_exeext | ||
17120 | if ${ac_cv_search_res_query+:} false; then : | ||
17121 | break | ||
17122 | fi | ||
17123 | done | ||
17124 | if ${ac_cv_search_res_query+:} false; then : | ||
17125 | |||
17126 | else | ||
17127 | ac_cv_search_res_query=no | ||
17128 | fi | ||
17129 | rm conftest.$ac_ext | ||
17130 | LIBS=$ac_func_search_save_LIBS | ||
17131 | fi | ||
17132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5 | ||
17133 | $as_echo "$ac_cv_search_res_query" >&6; } | ||
17134 | ac_res=$ac_cv_search_res_query | ||
17135 | if test "$ac_res" != no; then : | ||
17136 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
17137 | |||
17138 | fi | ||
17139 | |||
17140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5 | ||
17141 | $as_echo_n "checking for library containing dn_expand... " >&6; } | ||
17142 | if ${ac_cv_search_dn_expand+:} false; then : | ||
17143 | $as_echo_n "(cached) " >&6 | ||
17144 | else | ||
17145 | ac_func_search_save_LIBS=$LIBS | ||
17146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17147 | /* end confdefs.h. */ | ||
17148 | |||
17149 | /* Override any GCC internal prototype to avoid an error. | ||
17150 | Use char because int might match the return type of a GCC | ||
17151 | builtin and then its argument prototype would still apply. */ | ||
17152 | #ifdef __cplusplus | ||
17153 | extern "C" | ||
17154 | #endif | ||
17155 | char dn_expand (); | ||
17156 | int | ||
17157 | main () | ||
17158 | { | ||
17159 | return dn_expand (); | ||
17160 | ; | ||
17161 | return 0; | ||
17162 | } | ||
17163 | _ACEOF | ||
17164 | for ac_lib in '' resolv; do | ||
17165 | if test -z "$ac_lib"; then | ||
17166 | ac_res="none required" | ||
17167 | else | ||
17168 | ac_res=-l$ac_lib | ||
17169 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
17170 | fi | ||
17171 | if ac_fn_c_try_link "$LINENO"; then : | ||
17172 | ac_cv_search_dn_expand=$ac_res | ||
17173 | fi | ||
17174 | rm -f core conftest.err conftest.$ac_objext \ | ||
17175 | conftest$ac_exeext | ||
17176 | if ${ac_cv_search_dn_expand+:} false; then : | ||
17177 | break | ||
17178 | fi | ||
17179 | done | ||
17180 | if ${ac_cv_search_dn_expand+:} false; then : | ||
17181 | |||
17182 | else | ||
17183 | ac_cv_search_dn_expand=no | ||
17184 | fi | ||
17185 | rm conftest.$ac_ext | ||
17186 | LIBS=$ac_func_search_save_LIBS | ||
17187 | fi | ||
17188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5 | ||
17189 | $as_echo "$ac_cv_search_dn_expand" >&6; } | ||
17190 | ac_res=$ac_cv_search_dn_expand | ||
17191 | if test "$ac_res" != no; then : | ||
17192 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
17193 | |||
17194 | fi | ||
17195 | |||
17196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5 | ||
17197 | $as_echo_n "checking if res_query will link... " >&6; } | ||
17198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17199 | /* end confdefs.h. */ | ||
17200 | |||
17201 | #include <sys/types.h> | ||
17202 | #include <netinet/in.h> | ||
17203 | #include <arpa/nameser.h> | ||
17204 | #include <netdb.h> | ||
17205 | #include <resolv.h> | ||
17206 | |||
17207 | int | ||
17208 | main () | ||
17209 | { | ||
17210 | |||
17211 | res_query (0, 0, 0, 0, 0); | ||
17212 | |||
17213 | ; | ||
17214 | return 0; | ||
17215 | } | ||
17216 | _ACEOF | ||
17217 | if ac_fn_c_try_link "$LINENO"; then : | ||
17218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17219 | $as_echo "yes" >&6; } | ||
17220 | else | ||
17221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17222 | $as_echo "no" >&6; } | ||
17223 | saved_LIBS="$LIBS" | ||
17224 | LIBS="$LIBS -lresolv" | ||
17225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5 | ||
17226 | $as_echo_n "checking for res_query in -lresolv... " >&6; } | ||
17227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17228 | /* end confdefs.h. */ | ||
17229 | |||
17230 | #include <sys/types.h> | ||
17231 | #include <netinet/in.h> | ||
17232 | #include <arpa/nameser.h> | ||
17233 | #include <netdb.h> | ||
17234 | #include <resolv.h> | ||
17235 | |||
17236 | int | ||
17237 | main () | ||
17238 | { | ||
17239 | |||
17240 | res_query (0, 0, 0, 0, 0); | ||
17241 | |||
17242 | ; | ||
17243 | return 0; | ||
17244 | } | ||
17245 | _ACEOF | ||
17246 | if ac_fn_c_try_link "$LINENO"; then : | ||
17247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17248 | $as_echo "yes" >&6; } | ||
17249 | else | ||
17250 | LIBS="$saved_LIBS" | ||
17251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17252 | $as_echo "no" >&6; } | ||
17253 | fi | ||
17254 | rm -f core conftest.err conftest.$ac_objext \ | ||
17255 | conftest$ac_exeext conftest.$ac_ext | ||
17256 | |||
17257 | fi | ||
17258 | rm -f core conftest.err conftest.$ac_objext \ | ||
17259 | conftest$ac_exeext conftest.$ac_ext | ||
17260 | for ac_func in _getshort _getlong | ||
17261 | do : | ||
17262 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17263 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
17264 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
17265 | cat >>confdefs.h <<_ACEOF | ||
17266 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17267 | _ACEOF | ||
17268 | |||
17269 | fi | ||
17270 | done | ||
17271 | |||
17272 | ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h> | ||
17273 | #include <arpa/nameser.h> | ||
17274 | " | ||
17275 | if test "x$ac_cv_have_decl__getshort" = xyes; then : | ||
17276 | ac_have_decl=1 | ||
17277 | else | ||
17278 | ac_have_decl=0 | ||
17279 | fi | ||
17280 | |||
17281 | cat >>confdefs.h <<_ACEOF | ||
17282 | #define HAVE_DECL__GETSHORT $ac_have_decl | ||
17283 | _ACEOF | ||
17284 | ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h> | ||
17285 | #include <arpa/nameser.h> | ||
17286 | " | ||
17287 | if test "x$ac_cv_have_decl__getlong" = xyes; then : | ||
17288 | ac_have_decl=1 | ||
17289 | else | ||
17290 | ac_have_decl=0 | ||
17291 | fi | ||
17292 | |||
17293 | cat >>confdefs.h <<_ACEOF | ||
17294 | #define HAVE_DECL__GETLONG $ac_have_decl | ||
17295 | _ACEOF | ||
17296 | |||
17297 | ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h> | ||
17298 | " | ||
17299 | if test "x$ac_cv_member_HEADER_ad" = xyes; then : | ||
17300 | |||
17301 | $as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h | ||
17302 | |||
17303 | fi | ||
17304 | |||
17305 | |||
17306 | fi | ||
17307 | |||
17308 | |||
17309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5 | ||
17310 | $as_echo_n "checking if struct __res_state _res is an extern... " >&6; } | ||
17311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17312 | /* end confdefs.h. */ | ||
17313 | |||
17314 | #include <stdio.h> | ||
17315 | #if HAVE_SYS_TYPES_H | ||
17316 | # include <sys/types.h> | ||
17317 | #endif | ||
17318 | #include <netinet/in.h> | ||
17319 | #include <arpa/nameser.h> | ||
17320 | #include <resolv.h> | ||
17321 | extern struct __res_state _res; | ||
17322 | |||
17323 | int | ||
17324 | main () | ||
17325 | { | ||
17326 | |||
17327 | struct __res_state *volatile p = &_res; /* force resolution of _res */ | ||
17328 | return 0; | ||
17329 | |||
17330 | ; | ||
17331 | return 0; | ||
17332 | } | ||
17333 | _ACEOF | ||
17334 | if ac_fn_c_try_link "$LINENO"; then : | ||
17335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17336 | $as_echo "yes" >&6; } | ||
17337 | |||
17338 | $as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h | ||
17339 | |||
17340 | |||
17341 | else | ||
17342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17343 | $as_echo "no" >&6; } | ||
17344 | |||
17345 | fi | ||
17346 | rm -f core conftest.err conftest.$ac_objext \ | ||
17347 | conftest$ac_exeext conftest.$ac_ext | ||
17348 | |||
17349 | # Check whether user wants SELinux support | ||
17350 | SELINUX_MSG="no" | ||
17351 | LIBSELINUX="" | ||
17352 | |||
17353 | # Check whether --with-selinux was given. | ||
17354 | if test "${with_selinux+set}" = set; then : | ||
17355 | withval=$with_selinux; if test "x$withval" != "xno" ; then | ||
17356 | save_LIBS="$LIBS" | ||
17357 | |||
17358 | $as_echo "#define WITH_SELINUX 1" >>confdefs.h | ||
17359 | |||
17360 | SELINUX_MSG="yes" | ||
17361 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" | ||
17362 | if test "x$ac_cv_header_selinux_selinux_h" = xyes; then : | ||
17363 | |||
17364 | else | ||
17365 | as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5 | ||
17366 | fi | ||
17367 | |||
17368 | |||
17369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5 | ||
17370 | $as_echo_n "checking for setexeccon in -lselinux... " >&6; } | ||
17371 | if ${ac_cv_lib_selinux_setexeccon+:} false; then : | ||
17372 | $as_echo_n "(cached) " >&6 | ||
17373 | else | ||
17374 | ac_check_lib_save_LIBS=$LIBS | ||
17375 | LIBS="-lselinux $LIBS" | ||
17376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17377 | /* end confdefs.h. */ | ||
17378 | |||
17379 | /* Override any GCC internal prototype to avoid an error. | ||
17380 | Use char because int might match the return type of a GCC | ||
17381 | builtin and then its argument prototype would still apply. */ | ||
17382 | #ifdef __cplusplus | ||
17383 | extern "C" | ||
17384 | #endif | ||
17385 | char setexeccon (); | ||
17386 | int | ||
17387 | main () | ||
17388 | { | ||
17389 | return setexeccon (); | ||
17390 | ; | ||
17391 | return 0; | ||
17392 | } | ||
17393 | _ACEOF | ||
17394 | if ac_fn_c_try_link "$LINENO"; then : | ||
17395 | ac_cv_lib_selinux_setexeccon=yes | ||
17396 | else | ||
17397 | ac_cv_lib_selinux_setexeccon=no | ||
17398 | fi | ||
17399 | rm -f core conftest.err conftest.$ac_objext \ | ||
17400 | conftest$ac_exeext conftest.$ac_ext | ||
17401 | LIBS=$ac_check_lib_save_LIBS | ||
17402 | fi | ||
17403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5 | ||
17404 | $as_echo "$ac_cv_lib_selinux_setexeccon" >&6; } | ||
17405 | if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then : | ||
17406 | LIBSELINUX="-lselinux" | ||
17407 | LIBS="$LIBS -lselinux" | ||
17408 | |||
17409 | else | ||
17410 | as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5 | ||
17411 | fi | ||
17412 | |||
17413 | SSHLIBS="$SSHLIBS $LIBSELINUX" | ||
17414 | SSHDLIBS="$SSHDLIBS $LIBSELINUX" | ||
17415 | for ac_func in getseuserbyname get_default_context_with_level | ||
17416 | do : | ||
17417 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17418 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
17419 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
17420 | cat >>confdefs.h <<_ACEOF | ||
17421 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17422 | _ACEOF | ||
17423 | |||
17424 | fi | ||
17425 | done | ||
17426 | |||
17427 | LIBS="$save_LIBS" | ||
17428 | fi | ||
17429 | |||
17430 | fi | ||
17431 | |||
17432 | |||
17433 | |||
17434 | |||
17435 | # Check whether user wants Kerberos 5 support | ||
17436 | KRB5_MSG="no" | ||
17437 | |||
17438 | # Check whether --with-kerberos5 was given. | ||
17439 | if test "${with_kerberos5+set}" = set; then : | ||
17440 | withval=$with_kerberos5; if test "x$withval" != "xno" ; then | ||
17441 | if test "x$withval" = "xyes" ; then | ||
17442 | KRB5ROOT="/usr/local" | ||
17443 | else | ||
17444 | KRB5ROOT=${withval} | ||
17445 | fi | ||
17446 | |||
17447 | |||
17448 | $as_echo "#define KRB5 1" >>confdefs.h | ||
17449 | |||
17450 | KRB5_MSG="yes" | ||
17451 | |||
17452 | if test -n "$ac_tool_prefix"; then | ||
17453 | # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args. | ||
17454 | set dummy ${ac_tool_prefix}krb5-config; ac_word=$2 | ||
17455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
17456 | $as_echo_n "checking for $ac_word... " >&6; } | ||
17457 | if ${ac_cv_path_KRB5CONF+:} false; then : | ||
17458 | $as_echo_n "(cached) " >&6 | ||
17459 | else | ||
17460 | case $KRB5CONF in | ||
17461 | [\\/]* | ?:[\\/]*) | ||
17462 | ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path. | ||
17463 | ;; | ||
17464 | *) | ||
17465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17466 | as_dummy="$KRB5ROOT/bin:$PATH" | ||
17467 | for as_dir in $as_dummy | ||
17468 | do | ||
17469 | IFS=$as_save_IFS | ||
17470 | test -z "$as_dir" && as_dir=. | ||
17471 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17472 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
17473 | ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext" | ||
17474 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17475 | break 2 | ||
17476 | fi | ||
17477 | done | ||
17478 | done | ||
17479 | IFS=$as_save_IFS | ||
17480 | |||
17481 | ;; | ||
17482 | esac | ||
17483 | fi | ||
17484 | KRB5CONF=$ac_cv_path_KRB5CONF | ||
17485 | if test -n "$KRB5CONF"; then | ||
17486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5 | ||
17487 | $as_echo "$KRB5CONF" >&6; } | ||
17488 | else | ||
17489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17490 | $as_echo "no" >&6; } | ||
17491 | fi | ||
17492 | |||
17493 | |||
17494 | fi | ||
17495 | if test -z "$ac_cv_path_KRB5CONF"; then | ||
17496 | ac_pt_KRB5CONF=$KRB5CONF | ||
17497 | # Extract the first word of "krb5-config", so it can be a program name with args. | ||
17498 | set dummy krb5-config; ac_word=$2 | ||
17499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
17500 | $as_echo_n "checking for $ac_word... " >&6; } | ||
17501 | if ${ac_cv_path_ac_pt_KRB5CONF+:} false; then : | ||
17502 | $as_echo_n "(cached) " >&6 | ||
17503 | else | ||
17504 | case $ac_pt_KRB5CONF in | ||
17505 | [\\/]* | ?:[\\/]*) | ||
17506 | ac_cv_path_ac_pt_KRB5CONF="$ac_pt_KRB5CONF" # Let the user override the test with a path. | ||
17507 | ;; | ||
17508 | *) | ||
17509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17510 | as_dummy="$KRB5ROOT/bin:$PATH" | ||
17511 | for as_dir in $as_dummy | ||
17512 | do | ||
17513 | IFS=$as_save_IFS | ||
17514 | test -z "$as_dir" && as_dir=. | ||
17515 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17516 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
17517 | ac_cv_path_ac_pt_KRB5CONF="$as_dir/$ac_word$ac_exec_ext" | ||
17518 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17519 | break 2 | ||
17520 | fi | ||
17521 | done | ||
17522 | done | ||
17523 | IFS=$as_save_IFS | ||
17524 | |||
17525 | ;; | ||
17526 | esac | ||
17527 | fi | ||
17528 | ac_pt_KRB5CONF=$ac_cv_path_ac_pt_KRB5CONF | ||
17529 | if test -n "$ac_pt_KRB5CONF"; then | ||
17530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONF" >&5 | ||
17531 | $as_echo "$ac_pt_KRB5CONF" >&6; } | ||
17532 | else | ||
17533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17534 | $as_echo "no" >&6; } | ||
17535 | fi | ||
17536 | |||
17537 | if test "x$ac_pt_KRB5CONF" = x; then | ||
17538 | KRB5CONF="$KRB5ROOT/bin/krb5-config" | ||
17539 | else | ||
17540 | case $cross_compiling:$ac_tool_warned in | ||
17541 | yes:) | ||
17542 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
17543 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
17544 | ac_tool_warned=yes ;; | ||
17545 | esac | ||
17546 | KRB5CONF=$ac_pt_KRB5CONF | ||
17547 | fi | ||
17548 | else | ||
17549 | KRB5CONF="$ac_cv_path_KRB5CONF" | ||
17550 | fi | ||
17551 | |||
17552 | if test -x $KRB5CONF ; then | ||
17553 | K5CFLAGS="`$KRB5CONF --cflags`" | ||
17554 | K5LIBS="`$KRB5CONF --libs`" | ||
17555 | CPPFLAGS="$CPPFLAGS $K5CFLAGS" | ||
17556 | |||
17557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5 | ||
17558 | $as_echo_n "checking for gssapi support... " >&6; } | ||
17559 | if $KRB5CONF | grep gssapi >/dev/null ; then | ||
17560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17561 | $as_echo "yes" >&6; } | ||
17562 | |||
17563 | $as_echo "#define GSSAPI 1" >>confdefs.h | ||
17564 | |||
17565 | GSSCFLAGS="`$KRB5CONF --cflags gssapi`" | ||
17566 | GSSLIBS="`$KRB5CONF --libs gssapi`" | ||
17567 | CPPFLAGS="$CPPFLAGS $GSSCFLAGS" | ||
17568 | else | ||
17569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17570 | $as_echo "no" >&6; } | ||
17571 | fi | ||
17572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 | ||
17573 | $as_echo_n "checking whether we are using Heimdal... " >&6; } | ||
17574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17575 | /* end confdefs.h. */ | ||
17576 | #include <krb5.h> | ||
17577 | |||
17578 | int | ||
17579 | main () | ||
17580 | { | ||
17581 | char *tmp = heimdal_version; | ||
17582 | ; | ||
17583 | return 0; | ||
17584 | } | ||
17585 | _ACEOF | ||
17586 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17588 | $as_echo "yes" >&6; } | ||
17589 | |||
17590 | $as_echo "#define HEIMDAL 1" >>confdefs.h | ||
17591 | |||
17592 | else | ||
17593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17594 | $as_echo "no" >&6; } | ||
17595 | |||
17596 | fi | ||
17597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17598 | else | ||
17599 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
17600 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
17601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 | ||
17602 | $as_echo_n "checking whether we are using Heimdal... " >&6; } | ||
17603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17604 | /* end confdefs.h. */ | ||
17605 | #include <krb5.h> | ||
17606 | |||
17607 | int | ||
17608 | main () | ||
17609 | { | ||
17610 | char *tmp = heimdal_version; | ||
17611 | ; | ||
17612 | return 0; | ||
17613 | } | ||
17614 | _ACEOF | ||
17615 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17617 | $as_echo "yes" >&6; } | ||
17618 | $as_echo "#define HEIMDAL 1" >>confdefs.h | ||
17619 | |||
17620 | K5LIBS="-lkrb5" | ||
17621 | K5LIBS="$K5LIBS -lcom_err -lasn1" | ||
17622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5 | ||
17623 | $as_echo_n "checking for net_write in -lroken... " >&6; } | ||
17624 | if ${ac_cv_lib_roken_net_write+:} false; then : | ||
17625 | $as_echo_n "(cached) " >&6 | ||
17626 | else | ||
17627 | ac_check_lib_save_LIBS=$LIBS | ||
17628 | LIBS="-lroken $LIBS" | ||
17629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17630 | /* end confdefs.h. */ | ||
17631 | |||
17632 | /* Override any GCC internal prototype to avoid an error. | ||
17633 | Use char because int might match the return type of a GCC | ||
17634 | builtin and then its argument prototype would still apply. */ | ||
17635 | #ifdef __cplusplus | ||
17636 | extern "C" | ||
17637 | #endif | ||
17638 | char net_write (); | ||
17639 | int | ||
17640 | main () | ||
17641 | { | ||
17642 | return net_write (); | ||
17643 | ; | ||
17644 | return 0; | ||
17645 | } | ||
17646 | _ACEOF | ||
17647 | if ac_fn_c_try_link "$LINENO"; then : | ||
17648 | ac_cv_lib_roken_net_write=yes | ||
17649 | else | ||
17650 | ac_cv_lib_roken_net_write=no | ||
17651 | fi | ||
17652 | rm -f core conftest.err conftest.$ac_objext \ | ||
17653 | conftest$ac_exeext conftest.$ac_ext | ||
17654 | LIBS=$ac_check_lib_save_LIBS | ||
17655 | fi | ||
17656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5 | ||
17657 | $as_echo "$ac_cv_lib_roken_net_write" >&6; } | ||
17658 | if test "x$ac_cv_lib_roken_net_write" = xyes; then : | ||
17659 | K5LIBS="$K5LIBS -lroken" | ||
17660 | fi | ||
17661 | |||
17662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5 | ||
17663 | $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } | ||
17664 | if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then : | ||
17665 | $as_echo_n "(cached) " >&6 | ||
17666 | else | ||
17667 | ac_check_lib_save_LIBS=$LIBS | ||
17668 | LIBS="-ldes $LIBS" | ||
17669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17670 | /* end confdefs.h. */ | ||
17671 | |||
17672 | /* Override any GCC internal prototype to avoid an error. | ||
17673 | Use char because int might match the return type of a GCC | ||
17674 | builtin and then its argument prototype would still apply. */ | ||
17675 | #ifdef __cplusplus | ||
17676 | extern "C" | ||
17677 | #endif | ||
17678 | char des_cbc_encrypt (); | ||
17679 | int | ||
17680 | main () | ||
17681 | { | ||
17682 | return des_cbc_encrypt (); | ||
17683 | ; | ||
17684 | return 0; | ||
17685 | } | ||
17686 | _ACEOF | ||
17687 | if ac_fn_c_try_link "$LINENO"; then : | ||
17688 | ac_cv_lib_des_des_cbc_encrypt=yes | ||
17689 | else | ||
17690 | ac_cv_lib_des_des_cbc_encrypt=no | ||
17691 | fi | ||
17692 | rm -f core conftest.err conftest.$ac_objext \ | ||
17693 | conftest$ac_exeext conftest.$ac_ext | ||
17694 | LIBS=$ac_check_lib_save_LIBS | ||
17695 | fi | ||
17696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 | ||
17697 | $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } | ||
17698 | if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then : | ||
17699 | K5LIBS="$K5LIBS -ldes" | ||
17700 | fi | ||
17701 | |||
17702 | |||
17703 | else | ||
17704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17705 | $as_echo "no" >&6; } | ||
17706 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
17707 | |||
17708 | fi | ||
17709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5 | ||
17711 | $as_echo_n "checking for library containing dn_expand... " >&6; } | ||
17712 | if ${ac_cv_search_dn_expand+:} false; then : | ||
17713 | $as_echo_n "(cached) " >&6 | ||
17714 | else | ||
17715 | ac_func_search_save_LIBS=$LIBS | ||
17716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17717 | /* end confdefs.h. */ | ||
17718 | |||
17719 | /* Override any GCC internal prototype to avoid an error. | ||
17720 | Use char because int might match the return type of a GCC | ||
17721 | builtin and then its argument prototype would still apply. */ | ||
17722 | #ifdef __cplusplus | ||
17723 | extern "C" | ||
17724 | #endif | ||
17725 | char dn_expand (); | ||
17726 | int | ||
17727 | main () | ||
17728 | { | ||
17729 | return dn_expand (); | ||
17730 | ; | ||
17731 | return 0; | ||
17732 | } | ||
17733 | _ACEOF | ||
17734 | for ac_lib in '' resolv; do | ||
17735 | if test -z "$ac_lib"; then | ||
17736 | ac_res="none required" | ||
17737 | else | ||
17738 | ac_res=-l$ac_lib | ||
17739 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
17740 | fi | ||
17741 | if ac_fn_c_try_link "$LINENO"; then : | ||
17742 | ac_cv_search_dn_expand=$ac_res | ||
17743 | fi | ||
17744 | rm -f core conftest.err conftest.$ac_objext \ | ||
17745 | conftest$ac_exeext | ||
17746 | if ${ac_cv_search_dn_expand+:} false; then : | ||
17747 | break | ||
17748 | fi | ||
17749 | done | ||
17750 | if ${ac_cv_search_dn_expand+:} false; then : | ||
17751 | |||
17752 | else | ||
17753 | ac_cv_search_dn_expand=no | ||
17754 | fi | ||
17755 | rm conftest.$ac_ext | ||
17756 | LIBS=$ac_func_search_save_LIBS | ||
17757 | fi | ||
17758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5 | ||
17759 | $as_echo "$ac_cv_search_dn_expand" >&6; } | ||
17760 | ac_res=$ac_cv_search_dn_expand | ||
17761 | if test "$ac_res" != no; then : | ||
17762 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
17763 | |||
17764 | fi | ||
17765 | |||
17766 | |||
17767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5 | ||
17768 | $as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; } | ||
17769 | if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then : | ||
17770 | $as_echo_n "(cached) " >&6 | ||
17771 | else | ||
17772 | ac_check_lib_save_LIBS=$LIBS | ||
17773 | LIBS="-lgssapi_krb5 $LIBS" | ||
17774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17775 | /* end confdefs.h. */ | ||
17776 | |||
17777 | /* Override any GCC internal prototype to avoid an error. | ||
17778 | Use char because int might match the return type of a GCC | ||
17779 | builtin and then its argument prototype would still apply. */ | ||
17780 | #ifdef __cplusplus | ||
17781 | extern "C" | ||
17782 | #endif | ||
17783 | char gss_init_sec_context (); | ||
17784 | int | ||
17785 | main () | ||
17786 | { | ||
17787 | return gss_init_sec_context (); | ||
17788 | ; | ||
17789 | return 0; | ||
17790 | } | ||
17791 | _ACEOF | ||
17792 | if ac_fn_c_try_link "$LINENO"; then : | ||
17793 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes | ||
17794 | else | ||
17795 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no | ||
17796 | fi | ||
17797 | rm -f core conftest.err conftest.$ac_objext \ | ||
17798 | conftest$ac_exeext conftest.$ac_ext | ||
17799 | LIBS=$ac_check_lib_save_LIBS | ||
17800 | fi | ||
17801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 | ||
17802 | $as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } | ||
17803 | if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then : | ||
17804 | $as_echo "#define GSSAPI 1" >>confdefs.h | ||
17805 | |||
17806 | GSSLIBS="-lgssapi_krb5" | ||
17807 | else | ||
17808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5 | ||
17809 | $as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; } | ||
17810 | if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then : | ||
17811 | $as_echo_n "(cached) " >&6 | ||
17812 | else | ||
17813 | ac_check_lib_save_LIBS=$LIBS | ||
17814 | LIBS="-lgssapi $LIBS" | ||
17815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17816 | /* end confdefs.h. */ | ||
17817 | |||
17818 | /* Override any GCC internal prototype to avoid an error. | ||
17819 | Use char because int might match the return type of a GCC | ||
17820 | builtin and then its argument prototype would still apply. */ | ||
17821 | #ifdef __cplusplus | ||
17822 | extern "C" | ||
17823 | #endif | ||
17824 | char gss_init_sec_context (); | ||
17825 | int | ||
17826 | main () | ||
17827 | { | ||
17828 | return gss_init_sec_context (); | ||
17829 | ; | ||
17830 | return 0; | ||
17831 | } | ||
17832 | _ACEOF | ||
17833 | if ac_fn_c_try_link "$LINENO"; then : | ||
17834 | ac_cv_lib_gssapi_gss_init_sec_context=yes | ||
17835 | else | ||
17836 | ac_cv_lib_gssapi_gss_init_sec_context=no | ||
17837 | fi | ||
17838 | rm -f core conftest.err conftest.$ac_objext \ | ||
17839 | conftest$ac_exeext conftest.$ac_ext | ||
17840 | LIBS=$ac_check_lib_save_LIBS | ||
17841 | fi | ||
17842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 | ||
17843 | $as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } | ||
17844 | if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then : | ||
17845 | $as_echo "#define GSSAPI 1" >>confdefs.h | ||
17846 | |||
17847 | GSSLIBS="-lgssapi" | ||
17848 | else | ||
17849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgss" >&5 | ||
17850 | $as_echo_n "checking for gss_init_sec_context in -lgss... " >&6; } | ||
17851 | if ${ac_cv_lib_gss_gss_init_sec_context+:} false; then : | ||
17852 | $as_echo_n "(cached) " >&6 | ||
17853 | else | ||
17854 | ac_check_lib_save_LIBS=$LIBS | ||
17855 | LIBS="-lgss $LIBS" | ||
17856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17857 | /* end confdefs.h. */ | ||
17858 | |||
17859 | /* Override any GCC internal prototype to avoid an error. | ||
17860 | Use char because int might match the return type of a GCC | ||
17861 | builtin and then its argument prototype would still apply. */ | ||
17862 | #ifdef __cplusplus | ||
17863 | extern "C" | ||
17864 | #endif | ||
17865 | char gss_init_sec_context (); | ||
17866 | int | ||
17867 | main () | ||
17868 | { | ||
17869 | return gss_init_sec_context (); | ||
17870 | ; | ||
17871 | return 0; | ||
17872 | } | ||
17873 | _ACEOF | ||
17874 | if ac_fn_c_try_link "$LINENO"; then : | ||
17875 | ac_cv_lib_gss_gss_init_sec_context=yes | ||
17876 | else | ||
17877 | ac_cv_lib_gss_gss_init_sec_context=no | ||
17878 | fi | ||
17879 | rm -f core conftest.err conftest.$ac_objext \ | ||
17880 | conftest$ac_exeext conftest.$ac_ext | ||
17881 | LIBS=$ac_check_lib_save_LIBS | ||
17882 | fi | ||
17883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_init_sec_context" >&5 | ||
17884 | $as_echo "$ac_cv_lib_gss_gss_init_sec_context" >&6; } | ||
17885 | if test "x$ac_cv_lib_gss_gss_init_sec_context" = xyes; then : | ||
17886 | $as_echo "#define GSSAPI 1" >>confdefs.h | ||
17887 | |||
17888 | GSSLIBS="-lgss" | ||
17889 | else | ||
17890 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 | ||
17891 | $as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} | ||
17892 | fi | ||
17893 | |||
17894 | |||
17895 | fi | ||
17896 | |||
17897 | |||
17898 | fi | ||
17899 | |||
17900 | |||
17901 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" | ||
17902 | if test "x$ac_cv_header_gssapi_h" = xyes; then : | ||
17903 | |||
17904 | else | ||
17905 | unset ac_cv_header_gssapi_h | ||
17906 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
17907 | for ac_header in gssapi.h | ||
17908 | do : | ||
17909 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" | ||
17910 | if test "x$ac_cv_header_gssapi_h" = xyes; then : | ||
17911 | cat >>confdefs.h <<_ACEOF | ||
17912 | #define HAVE_GSSAPI_H 1 | ||
17913 | _ACEOF | ||
17914 | |||
17915 | else | ||
17916 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 | ||
17917 | $as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} | ||
17918 | |||
17919 | fi | ||
17920 | |||
17921 | done | ||
17922 | |||
17923 | |||
17924 | |||
17925 | fi | ||
17926 | |||
17927 | |||
17928 | |||
17929 | oldCPP="$CPPFLAGS" | ||
17930 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
17931 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default" | ||
17932 | if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then : | ||
17933 | |||
17934 | else | ||
17935 | CPPFLAGS="$oldCPP" | ||
17936 | fi | ||
17937 | |||
17938 | |||
17939 | |||
17940 | fi | ||
17941 | if test ! -z "$need_dash_r" ; then | ||
17942 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
17943 | fi | ||
17944 | if test ! -z "$blibpath" ; then | ||
17945 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
17946 | fi | ||
17947 | |||
17948 | for ac_header in gssapi.h gssapi/gssapi.h | ||
17949 | do : | ||
17950 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
17951 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
17952 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
17953 | cat >>confdefs.h <<_ACEOF | ||
17954 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
17955 | _ACEOF | ||
17956 | |||
17957 | fi | ||
17958 | |||
17959 | done | ||
17960 | |||
17961 | for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h | ||
17962 | do : | ||
17963 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
17964 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
17965 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
17966 | cat >>confdefs.h <<_ACEOF | ||
17967 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
17968 | _ACEOF | ||
17969 | |||
17970 | fi | ||
17971 | |||
17972 | done | ||
17973 | |||
17974 | for ac_header in gssapi_generic.h gssapi/gssapi_generic.h | ||
17975 | do : | ||
17976 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
17977 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
17978 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
17979 | cat >>confdefs.h <<_ACEOF | ||
17980 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
17981 | _ACEOF | ||
17982 | |||
17983 | fi | ||
17984 | |||
17985 | done | ||
17986 | |||
17987 | |||
17988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5 | ||
17989 | $as_echo_n "checking for library containing k_hasafs... " >&6; } | ||
17990 | if ${ac_cv_search_k_hasafs+:} false; then : | ||
17991 | $as_echo_n "(cached) " >&6 | ||
17992 | else | ||
17993 | ac_func_search_save_LIBS=$LIBS | ||
17994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17995 | /* end confdefs.h. */ | ||
17996 | |||
17997 | /* Override any GCC internal prototype to avoid an error. | ||
17998 | Use char because int might match the return type of a GCC | ||
17999 | builtin and then its argument prototype would still apply. */ | ||
18000 | #ifdef __cplusplus | ||
18001 | extern "C" | ||
18002 | #endif | ||
18003 | char k_hasafs (); | ||
18004 | int | ||
18005 | main () | ||
18006 | { | ||
18007 | return k_hasafs (); | ||
18008 | ; | ||
18009 | return 0; | ||
18010 | } | ||
18011 | _ACEOF | ||
18012 | for ac_lib in '' kafs; do | ||
18013 | if test -z "$ac_lib"; then | ||
18014 | ac_res="none required" | ||
18015 | else | ||
18016 | ac_res=-l$ac_lib | ||
18017 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
18018 | fi | ||
18019 | if ac_fn_c_try_link "$LINENO"; then : | ||
18020 | ac_cv_search_k_hasafs=$ac_res | ||
18021 | fi | ||
18022 | rm -f core conftest.err conftest.$ac_objext \ | ||
18023 | conftest$ac_exeext | ||
18024 | if ${ac_cv_search_k_hasafs+:} false; then : | ||
18025 | break | ||
18026 | fi | ||
18027 | done | ||
18028 | if ${ac_cv_search_k_hasafs+:} false; then : | ||
18029 | |||
18030 | else | ||
18031 | ac_cv_search_k_hasafs=no | ||
18032 | fi | ||
18033 | rm conftest.$ac_ext | ||
18034 | LIBS=$ac_func_search_save_LIBS | ||
18035 | fi | ||
18036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5 | ||
18037 | $as_echo "$ac_cv_search_k_hasafs" >&6; } | ||
18038 | ac_res=$ac_cv_search_k_hasafs | ||
18039 | if test "$ac_res" != no; then : | ||
18040 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
18041 | |||
18042 | $as_echo "#define USE_AFS 1" >>confdefs.h | ||
18043 | |||
18044 | fi | ||
18045 | |||
18046 | |||
18047 | ac_fn_c_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" " | ||
18048 | #ifdef HAVE_GSSAPI_H | ||
18049 | # include <gssapi.h> | ||
18050 | #elif defined(HAVE_GSSAPI_GSSAPI_H) | ||
18051 | # include <gssapi/gssapi.h> | ||
18052 | #endif | ||
18053 | |||
18054 | #ifdef HAVE_GSSAPI_GENERIC_H | ||
18055 | # include <gssapi_generic.h> | ||
18056 | #elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H) | ||
18057 | # include <gssapi/gssapi_generic.h> | ||
18058 | #endif | ||
18059 | |||
18060 | " | ||
18061 | if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then : | ||
18062 | ac_have_decl=1 | ||
18063 | else | ||
18064 | ac_have_decl=0 | ||
18065 | fi | ||
18066 | |||
18067 | cat >>confdefs.h <<_ACEOF | ||
18068 | #define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE $ac_have_decl | ||
18069 | _ACEOF | ||
18070 | |||
18071 | saved_LIBS="$LIBS" | ||
18072 | LIBS="$LIBS $K5LIBS" | ||
18073 | for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message | ||
18074 | do : | ||
18075 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
18076 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
18077 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
18078 | cat >>confdefs.h <<_ACEOF | ||
18079 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
18080 | _ACEOF | ||
18081 | |||
18082 | fi | ||
18083 | done | ||
18084 | |||
18085 | LIBS="$saved_LIBS" | ||
18086 | |||
18087 | fi | ||
18088 | |||
18089 | |||
18090 | fi | ||
18091 | |||
18092 | |||
18093 | |||
18094 | |||
18095 | # Looking for programs, paths and files | ||
18096 | |||
18097 | PRIVSEP_PATH=/var/empty | ||
18098 | |||
18099 | # Check whether --with-privsep-path was given. | ||
18100 | if test "${with_privsep_path+set}" = set; then : | ||
18101 | withval=$with_privsep_path; | ||
18102 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
18103 | test "x${withval}" != "xyes"; then | ||
18104 | PRIVSEP_PATH=$withval | ||
18105 | fi | ||
18106 | |||
18107 | |||
18108 | fi | ||
18109 | |||
18110 | |||
18111 | |||
18112 | |||
18113 | # Check whether --with-xauth was given. | ||
18114 | if test "${with_xauth+set}" = set; then : | ||
18115 | withval=$with_xauth; | ||
18116 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
18117 | test "x${withval}" != "xyes"; then | ||
18118 | xauth_path=$withval | ||
18119 | fi | ||
18120 | |||
18121 | else | ||
18122 | |||
18123 | TestPath="$PATH" | ||
18124 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
18125 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
18126 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
18127 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
18128 | # Extract the first word of "xauth", so it can be a program name with args. | ||
18129 | set dummy xauth; ac_word=$2 | ||
18130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
18131 | $as_echo_n "checking for $ac_word... " >&6; } | ||
18132 | if ${ac_cv_path_xauth_path+:} false; then : | ||
18133 | $as_echo_n "(cached) " >&6 | ||
18134 | else | ||
18135 | case $xauth_path in | ||
18136 | [\\/]* | ?:[\\/]*) | ||
18137 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
18138 | ;; | ||
18139 | *) | ||
18140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18141 | for as_dir in $TestPath | ||
18142 | do | ||
18143 | IFS=$as_save_IFS | ||
18144 | test -z "$as_dir" && as_dir=. | ||
18145 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18146 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
18147 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" | ||
18148 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18149 | break 2 | ||
18150 | fi | ||
18151 | done | ||
18152 | done | ||
18153 | IFS=$as_save_IFS | ||
18154 | |||
18155 | ;; | ||
18156 | esac | ||
18157 | fi | ||
18158 | xauth_path=$ac_cv_path_xauth_path | ||
18159 | if test -n "$xauth_path"; then | ||
18160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5 | ||
18161 | $as_echo "$xauth_path" >&6; } | ||
18162 | else | ||
18163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18164 | $as_echo "no" >&6; } | ||
18165 | fi | ||
18166 | |||
18167 | |||
18168 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
18169 | xauth_path="/usr/openwin/bin/xauth" | ||
18170 | fi | ||
18171 | |||
18172 | |||
18173 | fi | ||
18174 | |||
18175 | |||
18176 | STRIP_OPT=-s | ||
18177 | # Check whether --enable-strip was given. | ||
18178 | if test "${enable_strip+set}" = set; then : | ||
18179 | enableval=$enable_strip; | ||
18180 | if test "x$enableval" = "xno" ; then | ||
18181 | STRIP_OPT= | ||
18182 | fi | ||
18183 | |||
18184 | |||
18185 | fi | ||
18186 | |||
18187 | |||
18188 | |||
18189 | if test -z "$xauth_path" ; then | ||
18190 | XAUTH_PATH="undefined" | ||
18191 | |||
18192 | else | ||
18193 | |||
18194 | cat >>confdefs.h <<_ACEOF | ||
18195 | #define XAUTH_PATH "$xauth_path" | ||
18196 | _ACEOF | ||
18197 | |||
18198 | XAUTH_PATH=$xauth_path | ||
18199 | |||
18200 | fi | ||
18201 | |||
18202 | # Check for mail directory | ||
18203 | |||
18204 | # Check whether --with-maildir was given. | ||
18205 | if test "${with_maildir+set}" = set; then : | ||
18206 | withval=$with_maildir; | ||
18207 | if test "X$withval" != X && test "x$withval" != xno && \ | ||
18208 | test "x${withval}" != xyes; then | ||
18209 | |||
18210 | cat >>confdefs.h <<_ACEOF | ||
18211 | #define MAIL_DIRECTORY "$withval" | ||
18212 | _ACEOF | ||
18213 | |||
18214 | fi | ||
18215 | |||
18216 | else | ||
18217 | |||
18218 | if test "X$maildir" != "X"; then | ||
18219 | cat >>confdefs.h <<_ACEOF | ||
18220 | #define MAIL_DIRECTORY "$maildir" | ||
18221 | _ACEOF | ||
18222 | |||
18223 | else | ||
18224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5 | ||
18225 | $as_echo_n "checking Discovering system mail directory... " >&6; } | ||
18226 | if test "$cross_compiling" = yes; then : | ||
18227 | |||
18228 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5 | ||
18229 | $as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;} | ||
18230 | |||
18231 | |||
18232 | else | ||
18233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18234 | /* end confdefs.h. */ | ||
18235 | |||
18236 | #include <stdio.h> | ||
18237 | #include <string.h> | ||
18238 | #ifdef HAVE_PATHS_H | ||
18239 | #include <paths.h> | ||
18240 | #endif | ||
18241 | #ifdef HAVE_MAILLOCK_H | ||
18242 | #include <maillock.h> | ||
18243 | #endif | ||
18244 | #define DATA "conftest.maildir" | ||
18245 | |||
18246 | int | ||
18247 | main () | ||
18248 | { | ||
18249 | |||
18250 | FILE *fd; | ||
18251 | int rc; | ||
18252 | |||
18253 | fd = fopen(DATA,"w"); | ||
18254 | if(fd == NULL) | ||
18255 | exit(1); | ||
18256 | |||
18257 | #if defined (_PATH_MAILDIR) | ||
18258 | if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0) | ||
18259 | exit(1); | ||
18260 | #elif defined (MAILDIR) | ||
18261 | if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0) | ||
18262 | exit(1); | ||
18263 | #elif defined (_PATH_MAIL) | ||
18264 | if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0) | ||
18265 | exit(1); | ||
18266 | #else | ||
18267 | exit (2); | ||
18268 | #endif | ||
18269 | |||
18270 | exit(0); | ||
18271 | |||
18272 | ; | ||
18273 | return 0; | ||
18274 | } | ||
18275 | _ACEOF | ||
18276 | if ac_fn_c_try_run "$LINENO"; then : | ||
18277 | |||
18278 | maildir_what=`awk -F: '{print $1}' conftest.maildir` | ||
18279 | maildir=`awk -F: '{print $2}' conftest.maildir \ | ||
18280 | | sed 's|/$||'` | ||
18281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5 | ||
18282 | $as_echo "Using: $maildir from $maildir_what" >&6; } | ||
18283 | if test "x$maildir_what" != "x_PATH_MAILDIR"; then | ||
18284 | cat >>confdefs.h <<_ACEOF | ||
18285 | #define MAIL_DIRECTORY "$maildir" | ||
18286 | _ACEOF | ||
18287 | |||
18288 | fi | ||
18289 | |||
18290 | else | ||
18291 | |||
18292 | if test "X$ac_status" = "X2";then | ||
18293 | # our test program didn't find it. Default to /var/spool/mail | ||
18294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5 | ||
18295 | $as_echo "Using: default value of /var/spool/mail" >&6; } | ||
18296 | cat >>confdefs.h <<_ACEOF | ||
18297 | #define MAIL_DIRECTORY "/var/spool/mail" | ||
18298 | _ACEOF | ||
18299 | |||
18300 | else | ||
18301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5 | ||
18302 | $as_echo "*** not found ***" >&6; } | ||
18303 | fi | ||
18304 | |||
18305 | fi | ||
18306 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
18307 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
18308 | fi | ||
18309 | |||
18310 | fi | ||
18311 | |||
18312 | |||
18313 | fi | ||
18314 | # maildir | ||
18315 | |||
18316 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then | ||
18317 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5 | ||
18318 | $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;} | ||
18319 | disable_ptmx_check=yes | ||
18320 | fi | ||
18321 | if test -z "$no_dev_ptmx" ; then | ||
18322 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
18323 | as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh` | ||
18324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5 | ||
18325 | $as_echo_n "checking for \"/dev/ptmx\"... " >&6; } | ||
18326 | if eval \${$as_ac_File+:} false; then : | ||
18327 | $as_echo_n "(cached) " >&6 | ||
18328 | else | ||
18329 | test "$cross_compiling" = yes && | ||
18330 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||
18331 | if test -r ""/dev/ptmx""; then | ||
18332 | eval "$as_ac_File=yes" | ||
18333 | else | ||
18334 | eval "$as_ac_File=no" | ||
18335 | fi | ||
18336 | fi | ||
18337 | eval ac_res=\$$as_ac_File | ||
18338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
18339 | $as_echo "$ac_res" >&6; } | ||
18340 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : | ||
18341 | |||
18342 | |||
18343 | cat >>confdefs.h <<_ACEOF | ||
18344 | #define HAVE_DEV_PTMX 1 | ||
18345 | _ACEOF | ||
18346 | |||
18347 | have_dev_ptmx=1 | ||
18348 | |||
18349 | |||
18350 | fi | ||
18351 | |||
18352 | fi | ||
18353 | fi | ||
18354 | |||
18355 | if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then | ||
18356 | as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh` | ||
18357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5 | ||
18358 | $as_echo_n "checking for \"/dev/ptc\"... " >&6; } | ||
18359 | if eval \${$as_ac_File+:} false; then : | ||
18360 | $as_echo_n "(cached) " >&6 | ||
18361 | else | ||
18362 | test "$cross_compiling" = yes && | ||
18363 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||
18364 | if test -r ""/dev/ptc""; then | ||
18365 | eval "$as_ac_File=yes" | ||
18366 | else | ||
18367 | eval "$as_ac_File=no" | ||
18368 | fi | ||
18369 | fi | ||
18370 | eval ac_res=\$$as_ac_File | ||
18371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
18372 | $as_echo "$ac_res" >&6; } | ||
18373 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : | ||
18374 | |||
18375 | |||
18376 | cat >>confdefs.h <<_ACEOF | ||
18377 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
18378 | _ACEOF | ||
18379 | |||
18380 | have_dev_ptc=1 | ||
18381 | |||
18382 | |||
18383 | fi | ||
18384 | |||
18385 | else | ||
18386 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5 | ||
18387 | $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;} | ||
18388 | fi | ||
18389 | |||
18390 | # Options from here on. Some of these are preset by platform above | ||
18391 | |||
18392 | # Check whether --with-mantype was given. | ||
18393 | if test "${with_mantype+set}" = set; then : | ||
18394 | withval=$with_mantype; | ||
18395 | case "$withval" in | ||
18396 | man|cat|doc) | ||
18397 | MANTYPE=$withval | ||
18398 | ;; | ||
18399 | *) | ||
18400 | as_fn_error $? "invalid man type: $withval" "$LINENO" 5 | ||
18401 | ;; | ||
18402 | esac | ||
18403 | |||
18404 | |||
18405 | fi | ||
18406 | |||
18407 | if test -z "$MANTYPE"; then | ||
18408 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
18409 | for ac_prog in nroff awf | ||
18410 | do | ||
18411 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
18412 | set dummy $ac_prog; ac_word=$2 | ||
18413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
18414 | $as_echo_n "checking for $ac_word... " >&6; } | ||
18415 | if ${ac_cv_path_NROFF+:} false; then : | ||
18416 | $as_echo_n "(cached) " >&6 | ||
18417 | else | ||
18418 | case $NROFF in | ||
18419 | [\\/]* | ?:[\\/]*) | ||
18420 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
18421 | ;; | ||
18422 | *) | ||
18423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18424 | for as_dir in $TestPath | ||
18425 | do | ||
18426 | IFS=$as_save_IFS | ||
18427 | test -z "$as_dir" && as_dir=. | ||
18428 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18429 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
18430 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
18431 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18432 | break 2 | ||
18433 | fi | ||
18434 | done | ||
18435 | done | ||
18436 | IFS=$as_save_IFS | ||
18437 | |||
18438 | ;; | ||
18439 | esac | ||
18440 | fi | ||
18441 | NROFF=$ac_cv_path_NROFF | ||
18442 | if test -n "$NROFF"; then | ||
18443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 | ||
18444 | $as_echo "$NROFF" >&6; } | ||
18445 | else | ||
18446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18447 | $as_echo "no" >&6; } | ||
18448 | fi | ||
18449 | |||
18450 | |||
18451 | test -n "$NROFF" && break | ||
18452 | done | ||
18453 | test -n "$NROFF" || NROFF="/bin/false" | ||
18454 | |||
18455 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
18456 | MANTYPE=doc | ||
18457 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
18458 | MANTYPE=man | ||
18459 | else | ||
18460 | MANTYPE=cat | ||
18461 | fi | ||
18462 | fi | ||
18463 | |||
18464 | if test "$MANTYPE" = "doc"; then | ||
18465 | mansubdir=man; | ||
18466 | else | ||
18467 | mansubdir=$MANTYPE; | ||
18468 | fi | ||
18469 | |||
18470 | |||
18471 | # Check whether to enable MD5 passwords | ||
18472 | MD5_MSG="no" | ||
18473 | |||
18474 | # Check whether --with-md5-passwords was given. | ||
18475 | if test "${with_md5_passwords+set}" = set; then : | ||
18476 | withval=$with_md5_passwords; | ||
18477 | if test "x$withval" != "xno" ; then | ||
18478 | |||
18479 | $as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h | ||
18480 | |||
18481 | MD5_MSG="yes" | ||
18482 | fi | ||
18483 | |||
18484 | |||
18485 | fi | ||
18486 | |||
18487 | |||
18488 | # Whether to disable shadow password support | ||
18489 | |||
18490 | # Check whether --with-shadow was given. | ||
18491 | if test "${with_shadow+set}" = set; then : | ||
18492 | withval=$with_shadow; | ||
18493 | if test "x$withval" = "xno" ; then | ||
18494 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h | ||
18495 | |||
18496 | disable_shadow=yes | ||
18497 | fi | ||
18498 | |||
18499 | |||
18500 | fi | ||
18501 | |||
18502 | |||
18503 | if test -z "$disable_shadow" ; then | ||
18504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5 | ||
18505 | $as_echo_n "checking if the systems has expire shadow information... " >&6; } | ||
18506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18507 | /* end confdefs.h. */ | ||
18508 | |||
18509 | #include <sys/types.h> | ||
18510 | #include <shadow.h> | ||
18511 | struct spwd sp; | ||
18512 | |||
18513 | int | ||
18514 | main () | ||
18515 | { | ||
18516 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
18517 | ; | ||
18518 | return 0; | ||
18519 | } | ||
18520 | _ACEOF | ||
18521 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18522 | sp_expire_available=yes | ||
18523 | fi | ||
18524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18525 | |||
18526 | if test "x$sp_expire_available" = "xyes" ; then | ||
18527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18528 | $as_echo "yes" >&6; } | ||
18529 | |||
18530 | $as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h | ||
18531 | |||
18532 | else | ||
18533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18534 | $as_echo "no" >&6; } | ||
18535 | fi | ||
18536 | fi | ||
18537 | |||
18538 | # Use ip address instead of hostname in $DISPLAY | ||
18539 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
18540 | DISPLAY_HACK_MSG="yes" | ||
18541 | |||
18542 | $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h | ||
18543 | |||
18544 | else | ||
18545 | DISPLAY_HACK_MSG="no" | ||
18546 | |||
18547 | # Check whether --with-ipaddr-display was given. | ||
18548 | if test "${with_ipaddr_display+set}" = set; then : | ||
18549 | withval=$with_ipaddr_display; | ||
18550 | if test "x$withval" != "xno" ; then | ||
18551 | $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h | ||
18552 | |||
18553 | DISPLAY_HACK_MSG="yes" | ||
18554 | fi | ||
18555 | |||
18556 | |||
18557 | fi | ||
18558 | |||
18559 | fi | ||
18560 | |||
18561 | # check for /etc/default/login and use it if present. | ||
18562 | # Check whether --enable-etc-default-login was given. | ||
18563 | if test "${enable_etc_default_login+set}" = set; then : | ||
18564 | enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then | ||
18565 | { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5 | ||
18566 | $as_echo "$as_me: /etc/default/login handling disabled" >&6;} | ||
18567 | etc_default_login=no | ||
18568 | else | ||
18569 | etc_default_login=yes | ||
18570 | fi | ||
18571 | else | ||
18572 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; | ||
18573 | then | ||
18574 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5 | ||
18575 | $as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;} | ||
18576 | etc_default_login=no | ||
18577 | else | ||
18578 | etc_default_login=yes | ||
18579 | fi | ||
18580 | |||
18581 | fi | ||
18582 | |||
18583 | |||
18584 | if test "x$etc_default_login" != "xno"; then | ||
18585 | as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh` | ||
18586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5 | ||
18587 | $as_echo_n "checking for \"/etc/default/login\"... " >&6; } | ||
18588 | if eval \${$as_ac_File+:} false; then : | ||
18589 | $as_echo_n "(cached) " >&6 | ||
18590 | else | ||
18591 | test "$cross_compiling" = yes && | ||
18592 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||
18593 | if test -r ""/etc/default/login""; then | ||
18594 | eval "$as_ac_File=yes" | ||
18595 | else | ||
18596 | eval "$as_ac_File=no" | ||
18597 | fi | ||
18598 | fi | ||
18599 | eval ac_res=\$$as_ac_File | ||
18600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
18601 | $as_echo "$ac_res" >&6; } | ||
18602 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : | ||
18603 | external_path_file=/etc/default/login | ||
18604 | fi | ||
18605 | |||
18606 | if test "x$external_path_file" = "x/etc/default/login"; then | ||
18607 | |||
18608 | $as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h | ||
18609 | |||
18610 | fi | ||
18611 | fi | ||
18612 | |||
18613 | if test $ac_cv_func_login_getcapbool = "yes" && \ | ||
18614 | test $ac_cv_header_login_cap_h = "yes" ; then | ||
18615 | external_path_file=/etc/login.conf | ||
18616 | fi | ||
18617 | |||
18618 | # Whether to mess with the default path | ||
18619 | SERVER_PATH_MSG="(default)" | ||
18620 | |||
18621 | # Check whether --with-default-path was given. | ||
18622 | if test "${with_default_path+set}" = set; then : | ||
18623 | withval=$with_default_path; | ||
18624 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
18625 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ||
18626 | --with-default-path=PATH has no effect on this system. | ||
18627 | Edit /etc/login.conf instead." >&5 | ||
18628 | $as_echo "$as_me: WARNING: | ||
18629 | --with-default-path=PATH has no effect on this system. | ||
18630 | Edit /etc/login.conf instead." >&2;} | ||
18631 | elif test "x$withval" != "xno" ; then | ||
18632 | if test ! -z "$external_path_file" ; then | ||
18633 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ||
18634 | --with-default-path=PATH will only be used if PATH is not defined in | ||
18635 | $external_path_file ." >&5 | ||
18636 | $as_echo "$as_me: WARNING: | ||
18637 | --with-default-path=PATH will only be used if PATH is not defined in | ||
18638 | $external_path_file ." >&2;} | ||
18639 | fi | ||
18640 | user_path="$withval" | ||
18641 | SERVER_PATH_MSG="$withval" | ||
18642 | fi | ||
18643 | |||
18644 | else | ||
18645 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
18646 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
18647 | $as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
18648 | else | ||
18649 | if test ! -z "$external_path_file" ; then | ||
18650 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ||
18651 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
18652 | otherwise scp will not work." >&5 | ||
18653 | $as_echo "$as_me: WARNING: | ||
18654 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
18655 | otherwise scp will not work." >&2;} | ||
18656 | fi | ||
18657 | if test "$cross_compiling" = yes; then : | ||
18658 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
18659 | |||
18660 | else | ||
18661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18662 | /* end confdefs.h. */ | ||
18663 | |||
18664 | /* find out what STDPATH is */ | ||
18665 | #include <stdio.h> | ||
18666 | #ifdef HAVE_PATHS_H | ||
18667 | # include <paths.h> | ||
18668 | #endif | ||
18669 | #ifndef _PATH_STDPATH | ||
18670 | # ifdef _PATH_USERPATH /* Irix */ | ||
18671 | # define _PATH_STDPATH _PATH_USERPATH | ||
18672 | # else | ||
18673 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
18674 | # endif | ||
18675 | #endif | ||
18676 | #include <sys/types.h> | ||
18677 | #include <sys/stat.h> | ||
18678 | #include <fcntl.h> | ||
18679 | #define DATA "conftest.stdpath" | ||
18680 | |||
18681 | int | ||
18682 | main () | ||
18683 | { | ||
18684 | |||
18685 | FILE *fd; | ||
18686 | int rc; | ||
18687 | |||
18688 | fd = fopen(DATA,"w"); | ||
18689 | if(fd == NULL) | ||
18690 | exit(1); | ||
18691 | |||
18692 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
18693 | exit(1); | ||
18694 | |||
18695 | exit(0); | ||
18696 | |||
18697 | ; | ||
18698 | return 0; | ||
18699 | } | ||
18700 | _ACEOF | ||
18701 | if ac_fn_c_try_run "$LINENO"; then : | ||
18702 | user_path=`cat conftest.stdpath` | ||
18703 | else | ||
18704 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
18705 | fi | ||
18706 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
18707 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
18708 | fi | ||
18709 | |||
18710 | # make sure $bindir is in USER_PATH so scp will work | ||
18711 | t_bindir="${bindir}" | ||
18712 | while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do | ||
18713 | t_bindir=`eval echo ${t_bindir}` | ||
18714 | case $t_bindir in | ||
18715 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
18716 | esac | ||
18717 | case $t_bindir in | ||
18718 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
18719 | esac | ||
18720 | done | ||
18721 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
18722 | if test $? -ne 0 ; then | ||
18723 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
18724 | if test $? -ne 0 ; then | ||
18725 | user_path=$user_path:$t_bindir | ||
18726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
18727 | $as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; } | ||
18728 | fi | ||
18729 | fi | ||
18730 | fi | ||
18731 | |||
18732 | fi | ||
18733 | |||
18734 | if test "x$external_path_file" != "x/etc/login.conf" ; then | ||
18735 | |||
18736 | cat >>confdefs.h <<_ACEOF | ||
18737 | #define USER_PATH "$user_path" | ||
18738 | _ACEOF | ||
18739 | |||
18740 | |||
18741 | fi | ||
18742 | |||
18743 | # Set superuser path separately to user path | ||
18744 | |||
18745 | # Check whether --with-superuser-path was given. | ||
18746 | if test "${with_superuser_path+set}" = set; then : | ||
18747 | withval=$with_superuser_path; | ||
18748 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
18749 | test "x${withval}" != "xyes"; then | ||
18750 | |||
18751 | cat >>confdefs.h <<_ACEOF | ||
18752 | #define SUPERUSER_PATH "$withval" | ||
18753 | _ACEOF | ||
18754 | |||
18755 | superuser_path=$withval | ||
18756 | fi | ||
18757 | |||
18758 | |||
18759 | fi | ||
18760 | |||
18761 | |||
18762 | |||
18763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
18764 | $as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; } | ||
18765 | IPV4_IN6_HACK_MSG="no" | ||
18766 | |||
18767 | # Check whether --with-4in6 was given. | ||
18768 | if test "${with_4in6+set}" = set; then : | ||
18769 | withval=$with_4in6; | ||
18770 | if test "x$withval" != "xno" ; then | ||
18771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18772 | $as_echo "yes" >&6; } | ||
18773 | |||
18774 | $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h | ||
18775 | |||
18776 | IPV4_IN6_HACK_MSG="yes" | ||
18777 | else | ||
18778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18779 | $as_echo "no" >&6; } | ||
18780 | fi | ||
18781 | |||
18782 | else | ||
18783 | |||
18784 | if test "x$inet6_default_4in6" = "xyes"; then | ||
18785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 | ||
18786 | $as_echo "yes (default)" >&6; } | ||
18787 | $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h | ||
18788 | |||
18789 | IPV4_IN6_HACK_MSG="yes" | ||
18790 | else | ||
18791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 | ||
18792 | $as_echo "no (default)" >&6; } | ||
18793 | fi | ||
18794 | |||
18795 | |||
18796 | fi | ||
18797 | |||
18798 | |||
18799 | # Whether to enable BSD auth support | ||
18800 | BSD_AUTH_MSG=no | ||
18801 | |||
18802 | # Check whether --with-bsd-auth was given. | ||
18803 | if test "${with_bsd_auth+set}" = set; then : | ||
18804 | withval=$with_bsd_auth; | ||
18805 | if test "x$withval" != "xno" ; then | ||
18806 | |||
18807 | $as_echo "#define BSD_AUTH 1" >>confdefs.h | ||
18808 | |||
18809 | BSD_AUTH_MSG=yes | ||
18810 | fi | ||
18811 | |||
18812 | |||
18813 | fi | ||
18814 | |||
18815 | |||
18816 | # Where to place sshd.pid | ||
18817 | piddir=/var/run | ||
18818 | # make sure the directory exists | ||
18819 | if test ! -d $piddir ; then | ||
18820 | piddir=`eval echo ${sysconfdir}` | ||
18821 | case $piddir in | ||
18822 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
18823 | esac | ||
18824 | fi | ||
18825 | |||
18826 | |||
18827 | # Check whether --with-pid-dir was given. | ||
18828 | if test "${with_pid_dir+set}" = set; then : | ||
18829 | withval=$with_pid_dir; | ||
18830 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
18831 | test "x${withval}" != "xyes"; then | ||
18832 | piddir=$withval | ||
18833 | if test ! -d $piddir ; then | ||
18834 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5 | ||
18835 | $as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
18836 | fi | ||
18837 | fi | ||
18838 | |||
18839 | |||
18840 | fi | ||
18841 | |||
18842 | |||
18843 | |||
18844 | cat >>confdefs.h <<_ACEOF | ||
18845 | #define _PATH_SSH_PIDDIR "$piddir" | ||
18846 | _ACEOF | ||
18847 | |||
18848 | |||
18849 | |||
18850 | # Check whether --enable-lastlog was given. | ||
18851 | if test "${enable_lastlog+set}" = set; then : | ||
18852 | enableval=$enable_lastlog; | ||
18853 | if test "x$enableval" = "xno" ; then | ||
18854 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
18855 | |||
18856 | fi | ||
18857 | |||
18858 | |||
18859 | fi | ||
18860 | |||
18861 | # Check whether --enable-utmp was given. | ||
18862 | if test "${enable_utmp+set}" = set; then : | ||
18863 | enableval=$enable_utmp; | ||
18864 | if test "x$enableval" = "xno" ; then | ||
18865 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
18866 | |||
18867 | fi | ||
18868 | |||
18869 | |||
18870 | fi | ||
18871 | |||
18872 | # Check whether --enable-utmpx was given. | ||
18873 | if test "${enable_utmpx+set}" = set; then : | ||
18874 | enableval=$enable_utmpx; | ||
18875 | if test "x$enableval" = "xno" ; then | ||
18876 | |||
18877 | $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h | ||
18878 | |||
18879 | fi | ||
18880 | |||
18881 | |||
18882 | fi | ||
18883 | |||
18884 | # Check whether --enable-wtmp was given. | ||
18885 | if test "${enable_wtmp+set}" = set; then : | ||
18886 | enableval=$enable_wtmp; | ||
18887 | if test "x$enableval" = "xno" ; then | ||
18888 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
18889 | |||
18890 | fi | ||
18891 | |||
18892 | |||
18893 | fi | ||
18894 | |||
18895 | # Check whether --enable-wtmpx was given. | ||
18896 | if test "${enable_wtmpx+set}" = set; then : | ||
18897 | enableval=$enable_wtmpx; | ||
18898 | if test "x$enableval" = "xno" ; then | ||
18899 | |||
18900 | $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h | ||
18901 | |||
18902 | fi | ||
18903 | |||
18904 | |||
18905 | fi | ||
18906 | |||
18907 | # Check whether --enable-libutil was given. | ||
18908 | if test "${enable_libutil+set}" = set; then : | ||
18909 | enableval=$enable_libutil; | ||
18910 | if test "x$enableval" = "xno" ; then | ||
18911 | $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h | ||
18912 | |||
18913 | fi | ||
18914 | |||
18915 | |||
18916 | fi | ||
18917 | |||
18918 | # Check whether --enable-pututline was given. | ||
18919 | if test "${enable_pututline+set}" = set; then : | ||
18920 | enableval=$enable_pututline; | ||
18921 | if test "x$enableval" = "xno" ; then | ||
18922 | |||
18923 | $as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h | ||
18924 | |||
18925 | fi | ||
18926 | |||
18927 | |||
18928 | fi | ||
18929 | |||
18930 | # Check whether --enable-pututxline was given. | ||
18931 | if test "${enable_pututxline+set}" = set; then : | ||
18932 | enableval=$enable_pututxline; | ||
18933 | if test "x$enableval" = "xno" ; then | ||
18934 | |||
18935 | $as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h | ||
18936 | |||
18937 | fi | ||
18938 | |||
18939 | |||
18940 | fi | ||
18941 | |||
18942 | |||
18943 | # Check whether --with-lastlog was given. | ||
18944 | if test "${with_lastlog+set}" = set; then : | ||
18945 | withval=$with_lastlog; | ||
18946 | if test "x$withval" = "xno" ; then | ||
18947 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
18948 | |||
18949 | elif test -n "$withval" && test "x${withval}" != "xyes"; then | ||
18950 | conf_lastlog_location=$withval | ||
18951 | fi | ||
18952 | |||
18953 | |||
18954 | fi | ||
18955 | |||
18956 | |||
18957 | |||
18958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5 | ||
18959 | $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; } | ||
18960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18961 | /* end confdefs.h. */ | ||
18962 | |||
18963 | #include <sys/types.h> | ||
18964 | #include <utmp.h> | ||
18965 | #ifdef HAVE_LASTLOG_H | ||
18966 | # include <lastlog.h> | ||
18967 | #endif | ||
18968 | #ifdef HAVE_PATHS_H | ||
18969 | # include <paths.h> | ||
18970 | #endif | ||
18971 | #ifdef HAVE_LOGIN_H | ||
18972 | # include <login.h> | ||
18973 | #endif | ||
18974 | |||
18975 | int | ||
18976 | main () | ||
18977 | { | ||
18978 | char *lastlog = LASTLOG_FILE; | ||
18979 | ; | ||
18980 | return 0; | ||
18981 | } | ||
18982 | _ACEOF | ||
18983 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18985 | $as_echo "yes" >&6; } | ||
18986 | else | ||
18987 | |||
18988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18989 | $as_echo "no" >&6; } | ||
18990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5 | ||
18991 | $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; } | ||
18992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18993 | /* end confdefs.h. */ | ||
18994 | |||
18995 | #include <sys/types.h> | ||
18996 | #include <utmp.h> | ||
18997 | #ifdef HAVE_LASTLOG_H | ||
18998 | # include <lastlog.h> | ||
18999 | #endif | ||
19000 | #ifdef HAVE_PATHS_H | ||
19001 | # include <paths.h> | ||
19002 | #endif | ||
19003 | |||
19004 | int | ||
19005 | main () | ||
19006 | { | ||
19007 | char *lastlog = _PATH_LASTLOG; | ||
19008 | ; | ||
19009 | return 0; | ||
19010 | } | ||
19011 | _ACEOF | ||
19012 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
19014 | $as_echo "yes" >&6; } | ||
19015 | else | ||
19016 | |||
19017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19018 | $as_echo "no" >&6; } | ||
19019 | system_lastlog_path=no | ||
19020 | |||
19021 | fi | ||
19022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19023 | |||
19024 | fi | ||
19025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19026 | |||
19027 | if test -z "$conf_lastlog_location"; then | ||
19028 | if test x"$system_lastlog_path" = x"no" ; then | ||
19029 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
19030 | if (test -d "$f" || test -f "$f") ; then | ||
19031 | conf_lastlog_location=$f | ||
19032 | fi | ||
19033 | done | ||
19034 | if test -z "$conf_lastlog_location"; then | ||
19035 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5 | ||
19036 | $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
19037 | fi | ||
19038 | fi | ||
19039 | fi | ||
19040 | |||
19041 | if test -n "$conf_lastlog_location"; then | ||
19042 | |||
19043 | cat >>confdefs.h <<_ACEOF | ||
19044 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
19045 | _ACEOF | ||
19046 | |||
19047 | fi | ||
19048 | |||
19049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5 | ||
19050 | $as_echo_n "checking if your system defines UTMP_FILE... " >&6; } | ||
19051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19052 | /* end confdefs.h. */ | ||
19053 | |||
19054 | #include <sys/types.h> | ||
19055 | #include <utmp.h> | ||
19056 | #ifdef HAVE_PATHS_H | ||
19057 | # include <paths.h> | ||
19058 | #endif | ||
19059 | |||
19060 | int | ||
19061 | main () | ||
19062 | { | ||
19063 | char *utmp = UTMP_FILE; | ||
19064 | ; | ||
19065 | return 0; | ||
19066 | } | ||
19067 | _ACEOF | ||
19068 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
19070 | $as_echo "yes" >&6; } | ||
19071 | else | ||
19072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19073 | $as_echo "no" >&6; } | ||
19074 | system_utmp_path=no | ||
19075 | |||
19076 | fi | ||
19077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19078 | if test -z "$conf_utmp_location"; then | ||
19079 | if test x"$system_utmp_path" = x"no" ; then | ||
19080 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
19081 | if test -f $f ; then | ||
19082 | conf_utmp_location=$f | ||
19083 | fi | ||
19084 | done | ||
19085 | if test -z "$conf_utmp_location"; then | ||
19086 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
19087 | |||
19088 | fi | ||
19089 | fi | ||
19090 | fi | ||
19091 | if test -n "$conf_utmp_location"; then | ||
19092 | |||
19093 | cat >>confdefs.h <<_ACEOF | ||
19094 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
19095 | _ACEOF | ||
19096 | |||
19097 | fi | ||
19098 | |||
19099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5 | ||
19100 | $as_echo_n "checking if your system defines WTMP_FILE... " >&6; } | ||
19101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19102 | /* end confdefs.h. */ | ||
19103 | |||
19104 | #include <sys/types.h> | ||
19105 | #include <utmp.h> | ||
19106 | #ifdef HAVE_PATHS_H | ||
19107 | # include <paths.h> | ||
19108 | #endif | ||
19109 | |||
19110 | int | ||
19111 | main () | ||
19112 | { | ||
19113 | char *wtmp = WTMP_FILE; | ||
19114 | ; | ||
19115 | return 0; | ||
19116 | } | ||
19117 | _ACEOF | ||
19118 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
19120 | $as_echo "yes" >&6; } | ||
19121 | else | ||
19122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19123 | $as_echo "no" >&6; } | ||
19124 | system_wtmp_path=no | ||
19125 | |||
19126 | fi | ||
19127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19128 | if test -z "$conf_wtmp_location"; then | ||
19129 | if test x"$system_wtmp_path" = x"no" ; then | ||
19130 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
19131 | if test -f $f ; then | ||
19132 | conf_wtmp_location=$f | ||
19133 | fi | ||
19134 | done | ||
19135 | if test -z "$conf_wtmp_location"; then | ||
19136 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
19137 | |||
19138 | fi | ||
19139 | fi | ||
19140 | fi | ||
19141 | if test -n "$conf_wtmp_location"; then | ||
19142 | |||
19143 | cat >>confdefs.h <<_ACEOF | ||
19144 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
19145 | _ACEOF | ||
19146 | |||
19147 | fi | ||
19148 | |||
19149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5 | ||
19150 | $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; } | ||
19151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
19152 | /* end confdefs.h. */ | ||
19153 | |||
19154 | #include <sys/types.h> | ||
19155 | #include <utmp.h> | ||
19156 | #ifdef HAVE_UTMPX_H | ||
19157 | #include <utmpx.h> | ||
19158 | #endif | ||
19159 | #ifdef HAVE_PATHS_H | ||
19160 | # include <paths.h> | ||
19161 | #endif | ||
19162 | |||
19163 | int | ||
19164 | main () | ||
19165 | { | ||
19166 | char *wtmpx = WTMPX_FILE; | ||
19167 | ; | ||
19168 | return 0; | ||
19169 | } | ||
19170 | _ACEOF | ||
19171 | if ac_fn_c_try_compile "$LINENO"; then : | ||
19172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
19173 | $as_echo "yes" >&6; } | ||
19174 | else | ||
19175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
19176 | $as_echo "no" >&6; } | ||
19177 | system_wtmpx_path=no | ||
19178 | |||
19179 | fi | ||
19180 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19181 | if test -z "$conf_wtmpx_location"; then | ||
19182 | if test x"$system_wtmpx_path" = x"no" ; then | ||
19183 | $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h | ||
19184 | |||
19185 | fi | ||
19186 | else | ||
19187 | |||
19188 | cat >>confdefs.h <<_ACEOF | ||
19189 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
19190 | _ACEOF | ||
19191 | |||
19192 | fi | ||
19193 | |||
19194 | |||
19195 | if test ! -z "$blibpath" ; then | ||
19196 | LDFLAGS="$LDFLAGS $blibflags$blibpath" | ||
19197 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 | ||
19198 | $as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} | ||
19199 | fi | ||
19200 | |||
19201 | ac_fn_c_check_member "$LINENO" "struct lastlog" "ll_line" "ac_cv_member_struct_lastlog_ll_line" " | ||
19202 | #ifdef HAVE_SYS_TYPES_H | ||
19203 | #include <sys/types.h> | ||
19204 | #endif | ||
19205 | #ifdef HAVE_UTMP_H | ||
19206 | #include <utmp.h> | ||
19207 | #endif | ||
19208 | #ifdef HAVE_UTMPX_H | ||
19209 | #include <utmpx.h> | ||
19210 | #endif | ||
19211 | #ifdef HAVE_LASTLOG_H | ||
19212 | #include <lastlog.h> | ||
19213 | #endif | ||
19214 | |||
19215 | " | ||
19216 | if test "x$ac_cv_member_struct_lastlog_ll_line" = xyes; then : | ||
19217 | |||
19218 | else | ||
19219 | |||
19220 | if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then | ||
19221 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
19222 | |||
19223 | fi | ||
19224 | |||
19225 | fi | ||
19226 | |||
19227 | |||
19228 | ac_fn_c_check_member "$LINENO" "struct utmp" "ut_line" "ac_cv_member_struct_utmp_ut_line" " | ||
19229 | #ifdef HAVE_SYS_TYPES_H | ||
19230 | #include <sys/types.h> | ||
19231 | #endif | ||
19232 | #ifdef HAVE_UTMP_H | ||
19233 | #include <utmp.h> | ||
19234 | #endif | ||
19235 | #ifdef HAVE_UTMPX_H | ||
19236 | #include <utmpx.h> | ||
19237 | #endif | ||
19238 | #ifdef HAVE_LASTLOG_H | ||
19239 | #include <lastlog.h> | ||
19240 | #endif | ||
19241 | |||
19242 | " | ||
19243 | if test "x$ac_cv_member_struct_utmp_ut_line" = xyes; then : | ||
19244 | |||
19245 | else | ||
19246 | |||
19247 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
19248 | |||
19249 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
19250 | |||
19251 | |||
19252 | fi | ||
19253 | |||
19254 | |||
19255 | CFLAGS="$CFLAGS $werror_flags" | ||
19256 | |||
19257 | if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then | ||
19258 | TEST_SSH_IPV6=no | ||
19259 | else | ||
19260 | TEST_SSH_IPV6=yes | ||
19261 | fi | ||
19262 | ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default" | ||
19263 | if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then : | ||
19264 | TEST_SSH_IPV6=no | ||
19265 | fi | ||
19266 | |||
19267 | TEST_SSH_IPV6=$TEST_SSH_IPV6 | ||
19268 | |||
19269 | TEST_SSH_UTF8=$TEST_SSH_UTF8 | ||
19270 | |||
19271 | TEST_MALLOC_OPTIONS=$TEST_MALLOC_OPTIONS | ||
19272 | |||
19273 | UNSUPPORTED_ALGORITHMS=$unsupported_algorithms | ||
19274 | |||
19275 | |||
19276 | CFLAGS="${CFLAGS} ${CFLAGS_AFTER}" | ||
19277 | LDFLAGS="${LDFLAGS} ${LDFLAGS_AFTER}" | ||
19278 | |||
19279 | |||
19280 | ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh" | ||
19281 | |||
19282 | cat >confcache <<\_ACEOF | ||
19283 | # This file is a shell script that caches the results of configure | ||
19284 | # tests run on this system so they can be shared between configure | ||
19285 | # scripts and configure runs, see configure's option --config-cache. | ||
19286 | # It is not useful on other systems. If it contains results you don't | ||
19287 | # want to keep, you may remove or edit it. | ||
19288 | # | ||
19289 | # config.status only pays attention to the cache file if you give it | ||
19290 | # the --recheck option to rerun configure. | ||
19291 | # | ||
19292 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
19293 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
19294 | # following values. | ||
19295 | |||
19296 | _ACEOF | ||
19297 | |||
19298 | # The following way of writing the cache mishandles newlines in values, | ||
19299 | # but we know of no workaround that is simple, portable, and efficient. | ||
19300 | # So, we kill variables containing newlines. | ||
19301 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
19302 | # and sets the high bit in the cache file unless we assign to the vars. | ||
19303 | ( | ||
19304 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
19305 | eval ac_val=\$$ac_var | ||
19306 | case $ac_val in #( | ||
19307 | *${as_nl}*) | ||
19308 | case $ac_var in #( | ||
19309 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
19310 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
19311 | esac | ||
19312 | case $ac_var in #( | ||
19313 | _ | IFS | as_nl) ;; #( | ||
19314 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
19315 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
19316 | esac ;; | ||
19317 | esac | ||
19318 | done | ||
19319 | |||
19320 | (set) 2>&1 | | ||
19321 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
19322 | *${as_nl}ac_space=\ *) | ||
19323 | # `set' does not quote correctly, so add quotes: double-quote | ||
19324 | # substitution turns \\\\ into \\, and sed turns \\ into \. | ||
19325 | sed -n \ | ||
19326 | "s/'/'\\\\''/g; | ||
19327 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
19328 | ;; #( | ||
19329 | *) | ||
19330 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
19331 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
19332 | ;; | ||
19333 | esac | | ||
19334 | sort | ||
19335 | ) | | ||
19336 | sed ' | ||
19337 | /^ac_cv_env_/b end | ||
19338 | t clear | ||
19339 | :clear | ||
19340 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
19341 | t end | ||
19342 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
19343 | :end' >>confcache | ||
19344 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
19345 | if test -w "$cache_file"; then | ||
19346 | if test "x$cache_file" != "x/dev/null"; then | ||
19347 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | ||
19348 | $as_echo "$as_me: updating cache $cache_file" >&6;} | ||
19349 | if test ! -f "$cache_file" || test -h "$cache_file"; then | ||
19350 | cat confcache >"$cache_file" | ||
19351 | else | ||
19352 | case $cache_file in #( | ||
19353 | */* | ?:*) | ||
19354 | mv -f confcache "$cache_file"$$ && | ||
19355 | mv -f "$cache_file"$$ "$cache_file" ;; #( | ||
19356 | *) | ||
19357 | mv -f confcache "$cache_file" ;; | ||
19358 | esac | ||
19359 | fi | ||
19360 | fi | ||
19361 | else | ||
19362 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | ||
19363 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
19364 | fi | ||
19365 | fi | ||
19366 | rm -f confcache | ||
19367 | |||
19368 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
19369 | # Let make expand exec_prefix. | ||
19370 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
19371 | |||
19372 | DEFS=-DHAVE_CONFIG_H | ||
19373 | |||
19374 | ac_libobjs= | ||
19375 | ac_ltlibobjs= | ||
19376 | U= | ||
19377 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
19378 | # 1. Remove the extension, and $U if already installed. | ||
19379 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
19380 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | ||
19381 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
19382 | # will be set to the directory where LIBOBJS objects are built. | ||
19383 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
19384 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | ||
19385 | done | ||
19386 | LIBOBJS=$ac_libobjs | ||
19387 | |||
19388 | LTLIBOBJS=$ac_ltlibobjs | ||
19389 | |||
19390 | |||
19391 | |||
19392 | |||
19393 | : "${CONFIG_STATUS=./config.status}" | ||
19394 | ac_write_fail=0 | ||
19395 | ac_clean_files_save=$ac_clean_files | ||
19396 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
19397 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | ||
19398 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
19399 | as_write_fail=0 | ||
19400 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | ||
19401 | #! $SHELL | ||
19402 | # Generated by $as_me. | ||
19403 | # Run this file to recreate the current configuration. | ||
19404 | # Compiler output produced by configure, useful for debugging | ||
19405 | # configure, is in config.log if it exists. | ||
19406 | |||
19407 | debug=false | ||
19408 | ac_cs_recheck=false | ||
19409 | ac_cs_silent=false | ||
19410 | |||
19411 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
19412 | export SHELL | ||
19413 | _ASEOF | ||
19414 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | ||
19415 | ## -------------------- ## | ||
19416 | ## M4sh Initialization. ## | ||
19417 | ## -------------------- ## | ||
19418 | |||
19419 | # Be more Bourne compatible | ||
19420 | DUALCASE=1; export DUALCASE # for MKS sh | ||
19421 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
19422 | emulate sh | ||
19423 | NULLCMD=: | ||
19424 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
19425 | # is contrary to our usage. Disable this feature. | ||
19426 | alias -g '${1+"$@"}'='"$@"' | ||
19427 | setopt NO_GLOB_SUBST | ||
19428 | else | ||
19429 | case `(set -o) 2>/dev/null` in #( | ||
19430 | *posix*) : | ||
19431 | set -o posix ;; #( | ||
19432 | *) : | ||
19433 | ;; | ||
19434 | esac | ||
19435 | fi | ||
19436 | |||
19437 | |||
19438 | as_nl=' | ||
19439 | ' | ||
19440 | export as_nl | ||
19441 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
19442 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
19443 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
19444 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
19445 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
19446 | # but without wasting forks for bash or zsh. | ||
19447 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
19448 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
19449 | as_echo='print -r --' | ||
19450 | as_echo_n='print -rn --' | ||
19451 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
19452 | as_echo='printf %s\n' | ||
19453 | as_echo_n='printf %s' | ||
19454 | else | ||
19455 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
19456 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
19457 | as_echo_n='/usr/ucb/echo -n' | ||
19458 | else | ||
19459 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
19460 | as_echo_n_body='eval | ||
19461 | arg=$1; | ||
19462 | case $arg in #( | ||
19463 | *"$as_nl"*) | ||
19464 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
19465 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
19466 | esac; | ||
19467 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
19468 | ' | ||
19469 | export as_echo_n_body | ||
19470 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
19471 | fi | ||
19472 | export as_echo_body | ||
19473 | as_echo='sh -c $as_echo_body as_echo' | ||
19474 | fi | ||
19475 | |||
19476 | # The user is always right. | ||
19477 | if test "${PATH_SEPARATOR+set}" != set; then | ||
19478 | PATH_SEPARATOR=: | ||
19479 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
19480 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
19481 | PATH_SEPARATOR=';' | ||
19482 | } | ||
19483 | fi | ||
19484 | |||
19485 | |||
19486 | # IFS | ||
19487 | # We need space, tab and new line, in precisely that order. Quoting is | ||
19488 | # there to prevent editors from complaining about space-tab. | ||
19489 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
19490 | # splitting by setting IFS to empty value.) | ||
19491 | IFS=" "" $as_nl" | ||
19492 | |||
19493 | # Find who we are. Look in the path if we contain no directory separator. | ||
19494 | as_myself= | ||
19495 | case $0 in #(( | ||
19496 | *[\\/]* ) as_myself=$0 ;; | ||
19497 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19498 | for as_dir in $PATH | ||
19499 | do | ||
19500 | IFS=$as_save_IFS | ||
19501 | test -z "$as_dir" && as_dir=. | ||
19502 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
19503 | done | ||
19504 | IFS=$as_save_IFS | ||
19505 | |||
19506 | ;; | ||
19507 | esac | ||
19508 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
19509 | # in which case we are not to be found in the path. | ||
19510 | if test "x$as_myself" = x; then | ||
19511 | as_myself=$0 | ||
19512 | fi | ||
19513 | if test ! -f "$as_myself"; then | ||
19514 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
19515 | exit 1 | ||
19516 | fi | ||
19517 | |||
19518 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
19519 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
19520 | # suppresses any "Segmentation fault" message there. '((' could | ||
19521 | # trigger a bug in pdksh 5.2.14. | ||
19522 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
19523 | do eval test x\${$as_var+set} = xset \ | ||
19524 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
19525 | done | ||
19526 | PS1='$ ' | ||
19527 | PS2='> ' | ||
19528 | PS4='+ ' | ||
19529 | |||
19530 | # NLS nuisances. | ||
19531 | LC_ALL=C | ||
19532 | export LC_ALL | ||
19533 | LANGUAGE=C | ||
19534 | export LANGUAGE | ||
19535 | |||
19536 | # CDPATH. | ||
19537 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
19538 | |||
19539 | |||
19540 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
19541 | # ---------------------------------------- | ||
19542 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
19543 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
19544 | # script with STATUS, using 1 if that was 0. | ||
19545 | as_fn_error () | ||
19546 | { | ||
19547 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
19548 | if test "$4"; then | ||
19549 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
19550 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
19551 | fi | ||
19552 | $as_echo "$as_me: error: $2" >&2 | ||
19553 | as_fn_exit $as_status | ||
19554 | } # as_fn_error | ||
19555 | |||
19556 | |||
19557 | # as_fn_set_status STATUS | ||
19558 | # ----------------------- | ||
19559 | # Set $? to STATUS, without forking. | ||
19560 | as_fn_set_status () | ||
19561 | { | ||
19562 | return $1 | ||
19563 | } # as_fn_set_status | ||
19564 | |||
19565 | # as_fn_exit STATUS | ||
19566 | # ----------------- | ||
19567 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
19568 | as_fn_exit () | ||
19569 | { | ||
19570 | set +e | ||
19571 | as_fn_set_status $1 | ||
19572 | exit $1 | ||
19573 | } # as_fn_exit | ||
19574 | |||
19575 | # as_fn_unset VAR | ||
19576 | # --------------- | ||
19577 | # Portably unset VAR. | ||
19578 | as_fn_unset () | ||
19579 | { | ||
19580 | { eval $1=; unset $1;} | ||
19581 | } | ||
19582 | as_unset=as_fn_unset | ||
19583 | # as_fn_append VAR VALUE | ||
19584 | # ---------------------- | ||
19585 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
19586 | # advantage of any shell optimizations that allow amortized linear growth over | ||
19587 | # repeated appends, instead of the typical quadratic growth present in naive | ||
19588 | # implementations. | ||
19589 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
19590 | eval 'as_fn_append () | ||
19591 | { | ||
19592 | eval $1+=\$2 | ||
19593 | }' | ||
19594 | else | ||
19595 | as_fn_append () | ||
19596 | { | ||
19597 | eval $1=\$$1\$2 | ||
19598 | } | ||
19599 | fi # as_fn_append | ||
19600 | |||
19601 | # as_fn_arith ARG... | ||
19602 | # ------------------ | ||
19603 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
19604 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
19605 | # must be portable across $(()) and expr. | ||
19606 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
19607 | eval 'as_fn_arith () | ||
19608 | { | ||
19609 | as_val=$(( $* )) | ||
19610 | }' | ||
19611 | else | ||
19612 | as_fn_arith () | ||
19613 | { | ||
19614 | as_val=`expr "$@" || test $? -eq 1` | ||
19615 | } | ||
19616 | fi # as_fn_arith | ||
19617 | |||
19618 | |||
19619 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
19620 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
19621 | as_expr=expr | ||
19622 | else | ||
19623 | as_expr=false | ||
19624 | fi | ||
19625 | |||
19626 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
19627 | as_basename=basename | ||
19628 | else | ||
19629 | as_basename=false | ||
19630 | fi | ||
19631 | |||
19632 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
19633 | as_dirname=dirname | ||
19634 | else | ||
19635 | as_dirname=false | ||
19636 | fi | ||
19637 | |||
19638 | as_me=`$as_basename -- "$0" || | ||
19639 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
19640 | X"$0" : 'X\(//\)$' \| \ | ||
19641 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
19642 | $as_echo X/"$0" | | ||
19643 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
19644 | s//\1/ | ||
19645 | q | ||
19646 | } | ||
19647 | /^X\/\(\/\/\)$/{ | ||
19648 | s//\1/ | ||
19649 | q | ||
19650 | } | ||
19651 | /^X\/\(\/\).*/{ | ||
19652 | s//\1/ | ||
19653 | q | ||
19654 | } | ||
19655 | s/.*/./; q'` | ||
19656 | |||
19657 | # Avoid depending upon Character Ranges. | ||
19658 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
19659 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
19660 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
19661 | as_cr_digits='0123456789' | ||
19662 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
19663 | |||
19664 | ECHO_C= ECHO_N= ECHO_T= | ||
19665 | case `echo -n x` in #((((( | ||
19666 | -n*) | ||
19667 | case `echo 'xy\c'` in | ||
19668 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
19669 | xy) ECHO_C='\c';; | ||
19670 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
19671 | ECHO_T=' ';; | ||
19672 | esac;; | ||
19673 | *) | ||
19674 | ECHO_N='-n';; | ||
19675 | esac | ||
19676 | |||
19677 | rm -f conf$$ conf$$.exe conf$$.file | ||
19678 | if test -d conf$$.dir; then | ||
19679 | rm -f conf$$.dir/conf$$.file | ||
19680 | else | ||
19681 | rm -f conf$$.dir | ||
19682 | mkdir conf$$.dir 2>/dev/null | ||
19683 | fi | ||
19684 | if (echo >conf$$.file) 2>/dev/null; then | ||
19685 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
19686 | as_ln_s='ln -s' | ||
19687 | # ... but there are two gotchas: | ||
19688 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
19689 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
19690 | # In both cases, we have to default to `cp -pR'. | ||
19691 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
19692 | as_ln_s='cp -pR' | ||
19693 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
19694 | as_ln_s=ln | ||
19695 | else | ||
19696 | as_ln_s='cp -pR' | ||
19697 | fi | ||
19698 | else | ||
19699 | as_ln_s='cp -pR' | ||
19700 | fi | ||
19701 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
19702 | rmdir conf$$.dir 2>/dev/null | ||
19703 | |||
19704 | |||
19705 | # as_fn_mkdir_p | ||
19706 | # ------------- | ||
19707 | # Create "$as_dir" as a directory, including parents if necessary. | ||
19708 | as_fn_mkdir_p () | ||
19709 | { | ||
19710 | |||
19711 | case $as_dir in #( | ||
19712 | -*) as_dir=./$as_dir;; | ||
19713 | esac | ||
19714 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
19715 | as_dirs= | ||
19716 | while :; do | ||
19717 | case $as_dir in #( | ||
19718 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
19719 | *) as_qdir=$as_dir;; | ||
19720 | esac | ||
19721 | as_dirs="'$as_qdir' $as_dirs" | ||
19722 | as_dir=`$as_dirname -- "$as_dir" || | ||
19723 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
19724 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
19725 | X"$as_dir" : 'X\(//\)$' \| \ | ||
19726 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
19727 | $as_echo X"$as_dir" | | ||
19728 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
19729 | s//\1/ | ||
19730 | q | ||
19731 | } | ||
19732 | /^X\(\/\/\)[^/].*/{ | ||
19733 | s//\1/ | ||
19734 | q | ||
19735 | } | ||
19736 | /^X\(\/\/\)$/{ | ||
19737 | s//\1/ | ||
19738 | q | ||
19739 | } | ||
19740 | /^X\(\/\).*/{ | ||
19741 | s//\1/ | ||
19742 | q | ||
19743 | } | ||
19744 | s/.*/./; q'` | ||
19745 | test -d "$as_dir" && break | ||
19746 | done | ||
19747 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
19748 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
19749 | |||
19750 | |||
19751 | } # as_fn_mkdir_p | ||
19752 | if mkdir -p . 2>/dev/null; then | ||
19753 | as_mkdir_p='mkdir -p "$as_dir"' | ||
19754 | else | ||
19755 | test -d ./-p && rmdir ./-p | ||
19756 | as_mkdir_p=false | ||
19757 | fi | ||
19758 | |||
19759 | |||
19760 | # as_fn_executable_p FILE | ||
19761 | # ----------------------- | ||
19762 | # Test if FILE is an executable regular file. | ||
19763 | as_fn_executable_p () | ||
19764 | { | ||
19765 | test -f "$1" && test -x "$1" | ||
19766 | } # as_fn_executable_p | ||
19767 | as_test_x='test -x' | ||
19768 | as_executable_p=as_fn_executable_p | ||
19769 | |||
19770 | # Sed expression to map a string onto a valid CPP name. | ||
19771 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
19772 | |||
19773 | # Sed expression to map a string onto a valid variable name. | ||
19774 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
19775 | |||
19776 | |||
19777 | exec 6>&1 | ||
19778 | ## ----------------------------------- ## | ||
19779 | ## Main body of $CONFIG_STATUS script. ## | ||
19780 | ## ----------------------------------- ## | ||
19781 | _ASEOF | ||
19782 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | ||
19783 | |||
19784 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
19785 | # Save the log message, to keep $0 and so on meaningful, and to | ||
19786 | # report actual input values of CONFIG_FILES etc. instead of their | ||
19787 | # values after options handling. | ||
19788 | ac_log=" | ||
19789 | This file was extended by OpenSSH $as_me Portable, which was | ||
19790 | generated by GNU Autoconf 2.69. Invocation command line was | ||
19791 | |||
19792 | CONFIG_FILES = $CONFIG_FILES | ||
19793 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
19794 | CONFIG_LINKS = $CONFIG_LINKS | ||
19795 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
19796 | $ $0 $@ | ||
19797 | |||
19798 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
19799 | " | ||
19800 | |||
19801 | _ACEOF | ||
19802 | |||
19803 | case $ac_config_files in *" | ||
19804 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | ||
19805 | esac | ||
19806 | |||
19807 | case $ac_config_headers in *" | ||
19808 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | ||
19809 | esac | ||
19810 | |||
19811 | |||
19812 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
19813 | # Files that config.status was made for. | ||
19814 | config_files="$ac_config_files" | ||
19815 | config_headers="$ac_config_headers" | ||
19816 | |||
19817 | _ACEOF | ||
19818 | |||
19819 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
19820 | ac_cs_usage="\ | ||
19821 | \`$as_me' instantiates files and other configuration actions | ||
19822 | from templates according to the current configuration. Unless the files | ||
19823 | and actions are specified as TAGs, all are instantiated by default. | ||
19824 | |||
19825 | Usage: $0 [OPTION]... [TAG]... | ||
19826 | |||
19827 | -h, --help print this help, then exit | ||
19828 | -V, --version print version number and configuration settings, then exit | ||
19829 | --config print configuration, then exit | ||
19830 | -q, --quiet, --silent | ||
19831 | do not print progress messages | ||
19832 | -d, --debug don't remove temporary files | ||
19833 | --recheck update $as_me by reconfiguring in the same conditions | ||
19834 | --file=FILE[:TEMPLATE] | ||
19835 | instantiate the configuration file FILE | ||
19836 | --header=FILE[:TEMPLATE] | ||
19837 | instantiate the configuration header FILE | ||
19838 | |||
19839 | Configuration files: | ||
19840 | $config_files | ||
19841 | |||
19842 | Configuration headers: | ||
19843 | $config_headers | ||
19844 | |||
19845 | Report bugs to <openssh-unix-dev@mindrot.org>." | ||
19846 | |||
19847 | _ACEOF | ||
19848 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
19849 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | ||
19850 | ac_cs_version="\\ | ||
19851 | OpenSSH config.status Portable | ||
19852 | configured by $0, generated by GNU Autoconf 2.69, | ||
19853 | with options \\"\$ac_cs_config\\" | ||
19854 | |||
19855 | Copyright (C) 2012 Free Software Foundation, Inc. | ||
19856 | This config.status script is free software; the Free Software Foundation | ||
19857 | gives unlimited permission to copy, distribute and modify it." | ||
19858 | |||
19859 | ac_pwd='$ac_pwd' | ||
19860 | srcdir='$srcdir' | ||
19861 | INSTALL='$INSTALL' | ||
19862 | AWK='$AWK' | ||
19863 | test -n "\$AWK" || AWK=awk | ||
19864 | _ACEOF | ||
19865 | |||
19866 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
19867 | # The default lists apply if the user does not specify any file. | ||
19868 | ac_need_defaults=: | ||
19869 | while test $# != 0 | ||
19870 | do | ||
19871 | case $1 in | ||
19872 | --*=?*) | ||
19873 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
19874 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
19875 | ac_shift=: | ||
19876 | ;; | ||
19877 | --*=) | ||
19878 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
19879 | ac_optarg= | ||
19880 | ac_shift=: | ||
19881 | ;; | ||
19882 | *) | ||
19883 | ac_option=$1 | ||
19884 | ac_optarg=$2 | ||
19885 | ac_shift=shift | ||
19886 | ;; | ||
19887 | esac | ||
19888 | |||
19889 | case $ac_option in | ||
19890 | # Handling of the options. | ||
19891 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
19892 | ac_cs_recheck=: ;; | ||
19893 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
19894 | $as_echo "$ac_cs_version"; exit ;; | ||
19895 | --config | --confi | --conf | --con | --co | --c ) | ||
19896 | $as_echo "$ac_cs_config"; exit ;; | ||
19897 | --debug | --debu | --deb | --de | --d | -d ) | ||
19898 | debug=: ;; | ||
19899 | --file | --fil | --fi | --f ) | ||
19900 | $ac_shift | ||
19901 | case $ac_optarg in | ||
19902 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
19903 | '') as_fn_error $? "missing file argument" ;; | ||
19904 | esac | ||
19905 | as_fn_append CONFIG_FILES " '$ac_optarg'" | ||
19906 | ac_need_defaults=false;; | ||
19907 | --header | --heade | --head | --hea ) | ||
19908 | $ac_shift | ||
19909 | case $ac_optarg in | ||
19910 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
19911 | esac | ||
19912 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | ||
19913 | ac_need_defaults=false;; | ||
19914 | --he | --h) | ||
19915 | # Conflict between --help and --header | ||
19916 | as_fn_error $? "ambiguous option: \`$1' | ||
19917 | Try \`$0 --help' for more information.";; | ||
19918 | --help | --hel | -h ) | ||
19919 | $as_echo "$ac_cs_usage"; exit ;; | ||
19920 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
19921 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
19922 | ac_cs_silent=: ;; | ||
19923 | |||
19924 | # This is an error. | ||
19925 | -*) as_fn_error $? "unrecognized option: \`$1' | ||
19926 | Try \`$0 --help' for more information." ;; | ||
19927 | |||
19928 | *) as_fn_append ac_config_targets " $1" | ||
19929 | ac_need_defaults=false ;; | ||
19930 | |||
19931 | esac | ||
19932 | shift | ||
19933 | done | ||
19934 | |||
19935 | ac_configure_extra_args= | ||
19936 | |||
19937 | if $ac_cs_silent; then | ||
19938 | exec 6>/dev/null | ||
19939 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
19940 | fi | ||
19941 | |||
19942 | _ACEOF | ||
19943 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
19944 | if \$ac_cs_recheck; then | ||
19945 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
19946 | shift | ||
19947 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | ||
19948 | CONFIG_SHELL='$SHELL' | ||
19949 | export CONFIG_SHELL | ||
19950 | exec "\$@" | ||
19951 | fi | ||
19952 | |||
19953 | _ACEOF | ||
19954 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
19955 | exec 5>>config.log | ||
19956 | { | ||
19957 | echo | ||
19958 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
19959 | ## Running $as_me. ## | ||
19960 | _ASBOX | ||
19961 | $as_echo "$ac_log" | ||
19962 | } >&5 | ||
19963 | |||
19964 | _ACEOF | ||
19965 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
19966 | _ACEOF | ||
19967 | |||
19968 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
19969 | |||
19970 | # Handling of arguments. | ||
19971 | for ac_config_target in $ac_config_targets | ||
19972 | do | ||
19973 | case $ac_config_target in | ||
19974 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
19975 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
19976 | "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; | ||
19977 | "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; | ||
19978 | "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;; | ||
19979 | "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
19980 | "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;; | ||
19981 | "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;; | ||
19982 | |||
19983 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | ||
19984 | esac | ||
19985 | done | ||
19986 | |||
19987 | |||
19988 | # If the user did not use the arguments to specify the items to instantiate, | ||
19989 | # then the envvar interface is used. Set only those that are not. | ||
19990 | # We use the long form for the default assignment because of an extremely | ||
19991 | # bizarre bug on SunOS 4.1.3. | ||
19992 | if $ac_need_defaults; then | ||
19993 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
19994 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
19995 | fi | ||
19996 | |||
19997 | # Have a temporary directory for convenience. Make it in the build tree | ||
19998 | # simply because there is no reason against having it here, and in addition, | ||
19999 | # creating and moving files from /tmp can sometimes cause problems. | ||
20000 | # Hook for its removal unless debugging. | ||
20001 | # Note that there is a small window in which the directory will not be cleaned: | ||
20002 | # after its creation but before its name has been assigned to `$tmp'. | ||
20003 | $debug || | ||
20004 | { | ||
20005 | tmp= ac_tmp= | ||
20006 | trap 'exit_status=$? | ||
20007 | : "${ac_tmp:=$tmp}" | ||
20008 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | ||
20009 | ' 0 | ||
20010 | trap 'as_fn_exit 1' 1 2 13 15 | ||
20011 | } | ||
20012 | # Create a (secure) tmp directory for tmp files. | ||
20013 | |||
20014 | { | ||
20015 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
20016 | test -d "$tmp" | ||
20017 | } || | ||
20018 | { | ||
20019 | tmp=./conf$$-$RANDOM | ||
20020 | (umask 077 && mkdir "$tmp") | ||
20021 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | ||
20022 | ac_tmp=$tmp | ||
20023 | |||
20024 | # Set up the scripts for CONFIG_FILES section. | ||
20025 | # No need to generate them if there are no CONFIG_FILES. | ||
20026 | # This happens for instance with `./config.status config.h'. | ||
20027 | if test -n "$CONFIG_FILES"; then | ||
20028 | |||
20029 | |||
20030 | ac_cr=`echo X | tr X '\015'` | ||
20031 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | ||
20032 | # But we know of no other shell where ac_cr would be empty at this | ||
20033 | # point, so we can use a bashism as a fallback. | ||
20034 | if test "x$ac_cr" = x; then | ||
20035 | eval ac_cr=\$\'\\r\' | ||
20036 | fi | ||
20037 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | ||
20038 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | ||
20039 | ac_cs_awk_cr='\\r' | ||
20040 | else | ||
20041 | ac_cs_awk_cr=$ac_cr | ||
20042 | fi | ||
20043 | |||
20044 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | ||
20045 | _ACEOF | ||
20046 | |||
20047 | |||
20048 | { | ||
20049 | echo "cat >conf$$subs.awk <<_ACEOF" && | ||
20050 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | ||
20051 | echo "_ACEOF" | ||
20052 | } >conf$$subs.sh || | ||
20053 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
20054 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | ||
20055 | ac_delim='%!_!# ' | ||
20056 | for ac_last_try in false false false false false :; do | ||
20057 | . ./conf$$subs.sh || | ||
20058 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
20059 | |||
20060 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | ||
20061 | if test $ac_delim_n = $ac_delim_num; then | ||
20062 | break | ||
20063 | elif $ac_last_try; then | ||
20064 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
20065 | else | ||
20066 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
20067 | fi | ||
20068 | done | ||
20069 | rm -f conf$$subs.sh | ||
20070 | |||
20071 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
20072 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | ||
20073 | _ACEOF | ||
20074 | sed -n ' | ||
20075 | h | ||
20076 | s/^/S["/; s/!.*/"]=/ | ||
20077 | p | ||
20078 | g | ||
20079 | s/^[^!]*!// | ||
20080 | :repl | ||
20081 | t repl | ||
20082 | s/'"$ac_delim"'$// | ||
20083 | t delim | ||
20084 | :nl | ||
20085 | h | ||
20086 | s/\(.\{148\}\)..*/\1/ | ||
20087 | t more1 | ||
20088 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | ||
20089 | p | ||
20090 | n | ||
20091 | b repl | ||
20092 | :more1 | ||
20093 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
20094 | p | ||
20095 | g | ||
20096 | s/.\{148\}// | ||
20097 | t nl | ||
20098 | :delim | ||
20099 | h | ||
20100 | s/\(.\{148\}\)..*/\1/ | ||
20101 | t more2 | ||
20102 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | ||
20103 | p | ||
20104 | b | ||
20105 | :more2 | ||
20106 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
20107 | p | ||
20108 | g | ||
20109 | s/.\{148\}// | ||
20110 | t delim | ||
20111 | ' <conf$$subs.awk | sed ' | ||
20112 | /^[^""]/{ | ||
20113 | N | ||
20114 | s/\n// | ||
20115 | } | ||
20116 | ' >>$CONFIG_STATUS || ac_write_fail=1 | ||
20117 | rm -f conf$$subs.awk | ||
20118 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
20119 | _ACAWK | ||
20120 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | ||
20121 | for (key in S) S_is_set[key] = 1 | ||
20122 | FS = "" | ||
20123 | |||
20124 | } | ||
20125 | { | ||
20126 | line = $ 0 | ||
20127 | nfields = split(line, field, "@") | ||
20128 | substed = 0 | ||
20129 | len = length(field[1]) | ||
20130 | for (i = 2; i < nfields; i++) { | ||
20131 | key = field[i] | ||
20132 | keylen = length(key) | ||
20133 | if (S_is_set[key]) { | ||
20134 | value = S[key] | ||
20135 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | ||
20136 | len += length(value) + length(field[++i]) | ||
20137 | substed = 1 | ||
20138 | } else | ||
20139 | len += 1 + keylen | ||
20140 | } | ||
20141 | |||
20142 | print line | ||
20143 | } | ||
20144 | |||
20145 | _ACAWK | ||
20146 | _ACEOF | ||
20147 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
20148 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | ||
20149 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | ||
20150 | else | ||
20151 | cat | ||
20152 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | ||
20153 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | ||
20154 | _ACEOF | ||
20155 | |||
20156 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | ||
20157 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | ||
20158 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
20159 | # (actually we leave an empty line to preserve line numbers). | ||
20160 | if test "x$srcdir" = x.; then | ||
20161 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | ||
20162 | h | ||
20163 | s/// | ||
20164 | s/^/:/ | ||
20165 | s/[ ]*$/:/ | ||
20166 | s/:\$(srcdir):/:/g | ||
20167 | s/:\${srcdir}:/:/g | ||
20168 | s/:@srcdir@:/:/g | ||
20169 | s/^:*// | ||
20170 | s/:*$// | ||
20171 | x | ||
20172 | s/\(=[ ]*\).*/\1/ | ||
20173 | G | ||
20174 | s/\n// | ||
20175 | s/^[^=]*=[ ]*$// | ||
20176 | }' | ||
20177 | fi | ||
20178 | |||
20179 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
20180 | fi # test -n "$CONFIG_FILES" | ||
20181 | |||
20182 | # Set up the scripts for CONFIG_HEADERS section. | ||
20183 | # No need to generate them if there are no CONFIG_HEADERS. | ||
20184 | # This happens for instance with `./config.status Makefile'. | ||
20185 | if test -n "$CONFIG_HEADERS"; then | ||
20186 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | ||
20187 | BEGIN { | ||
20188 | _ACEOF | ||
20189 | |||
20190 | # Transform confdefs.h into an awk script `defines.awk', embedded as | ||
20191 | # here-document in config.status, that substitutes the proper values into | ||
20192 | # config.h.in to produce config.h. | ||
20193 | |||
20194 | # Create a delimiter string that does not exist in confdefs.h, to ease | ||
20195 | # handling of long lines. | ||
20196 | ac_delim='%!_!# ' | ||
20197 | for ac_last_try in false false :; do | ||
20198 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | ||
20199 | if test -z "$ac_tt"; then | ||
20200 | break | ||
20201 | elif $ac_last_try; then | ||
20202 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | ||
20203 | else | ||
20204 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
20205 | fi | ||
20206 | done | ||
20207 | |||
20208 | # For the awk script, D is an array of macro values keyed by name, | ||
20209 | # likewise P contains macro parameters if any. Preserve backslash | ||
20210 | # newline sequences. | ||
20211 | |||
20212 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
20213 | sed -n ' | ||
20214 | s/.\{148\}/&'"$ac_delim"'/g | ||
20215 | t rset | ||
20216 | :rset | ||
20217 | s/^[ ]*#[ ]*define[ ][ ]*/ / | ||
20218 | t def | ||
20219 | d | ||
20220 | :def | ||
20221 | s/\\$// | ||
20222 | t bsnl | ||
20223 | s/["\\]/\\&/g | ||
20224 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
20225 | D["\1"]=" \3"/p | ||
20226 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | ||
20227 | d | ||
20228 | :bsnl | ||
20229 | s/["\\]/\\&/g | ||
20230 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
20231 | D["\1"]=" \3\\\\\\n"\\/p | ||
20232 | t cont | ||
20233 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | ||
20234 | t cont | ||
20235 | d | ||
20236 | :cont | ||
20237 | n | ||
20238 | s/.\{148\}/&'"$ac_delim"'/g | ||
20239 | t clear | ||
20240 | :clear | ||
20241 | s/\\$// | ||
20242 | t bsnlc | ||
20243 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | ||
20244 | d | ||
20245 | :bsnlc | ||
20246 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | ||
20247 | b cont | ||
20248 | ' <confdefs.h | sed ' | ||
20249 | s/'"$ac_delim"'/"\\\ | ||
20250 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | ||
20251 | |||
20252 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
20253 | for (key in D) D_is_set[key] = 1 | ||
20254 | FS = "" | ||
20255 | } | ||
20256 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | ||
20257 | line = \$ 0 | ||
20258 | split(line, arg, " ") | ||
20259 | if (arg[1] == "#") { | ||
20260 | defundef = arg[2] | ||
20261 | mac1 = arg[3] | ||
20262 | } else { | ||
20263 | defundef = substr(arg[1], 2) | ||
20264 | mac1 = arg[2] | ||
20265 | } | ||
20266 | split(mac1, mac2, "(") #) | ||
20267 | macro = mac2[1] | ||
20268 | prefix = substr(line, 1, index(line, defundef) - 1) | ||
20269 | if (D_is_set[macro]) { | ||
20270 | # Preserve the white space surrounding the "#". | ||
20271 | print prefix "define", macro P[macro] D[macro] | ||
20272 | next | ||
20273 | } else { | ||
20274 | # Replace #undef with comments. This is necessary, for example, | ||
20275 | # in the case of _POSIX_SOURCE, which is predefined and required | ||
20276 | # on some systems where configure will not decide to define it. | ||
20277 | if (defundef == "undef") { | ||
20278 | print "/*", prefix defundef, macro, "*/" | ||
20279 | next | ||
20280 | } | ||
20281 | } | ||
20282 | } | ||
20283 | { print } | ||
20284 | _ACAWK | ||
20285 | _ACEOF | ||
20286 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
20287 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | ||
20288 | fi # test -n "$CONFIG_HEADERS" | ||
20289 | |||
20290 | |||
20291 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | ||
20292 | shift | ||
20293 | for ac_tag | ||
20294 | do | ||
20295 | case $ac_tag in | ||
20296 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
20297 | esac | ||
20298 | case $ac_mode$ac_tag in | ||
20299 | :[FHL]*:*);; | ||
20300 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | ||
20301 | :[FH]-) ac_tag=-:-;; | ||
20302 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
20303 | esac | ||
20304 | ac_save_IFS=$IFS | ||
20305 | IFS=: | ||
20306 | set x $ac_tag | ||
20307 | IFS=$ac_save_IFS | ||
20308 | shift | ||
20309 | ac_file=$1 | ||
20310 | shift | ||
20311 | |||
20312 | case $ac_mode in | ||
20313 | :L) ac_source=$1;; | ||
20314 | :[FH]) | ||
20315 | ac_file_inputs= | ||
20316 | for ac_f | ||
20317 | do | ||
20318 | case $ac_f in | ||
20319 | -) ac_f="$ac_tmp/stdin";; | ||
20320 | *) # Look for the file first in the build tree, then in the source tree | ||
20321 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
20322 | # because $ac_f cannot contain `:'. | ||
20323 | test -f "$ac_f" || | ||
20324 | case $ac_f in | ||
20325 | [\\/$]*) false;; | ||
20326 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
20327 | esac || | ||
20328 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | ||
20329 | esac | ||
20330 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | ||
20331 | as_fn_append ac_file_inputs " '$ac_f'" | ||
20332 | done | ||
20333 | |||
20334 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
20335 | # use $as_me), people would be surprised to read: | ||
20336 | # /* config.h. Generated by config.status. */ | ||
20337 | configure_input='Generated from '` | ||
20338 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | ||
20339 | `' by configure.' | ||
20340 | if test x"$ac_file" != x-; then | ||
20341 | configure_input="$ac_file. $configure_input" | ||
20342 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | ||
20343 | $as_echo "$as_me: creating $ac_file" >&6;} | ||
20344 | fi | ||
20345 | # Neutralize special characters interpreted by sed in replacement strings. | ||
20346 | case $configure_input in #( | ||
20347 | *\&* | *\|* | *\\* ) | ||
20348 | ac_sed_conf_input=`$as_echo "$configure_input" | | ||
20349 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | ||
20350 | *) ac_sed_conf_input=$configure_input;; | ||
20351 | esac | ||
20352 | |||
20353 | case $ac_tag in | ||
20354 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | ||
20355 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | ||
20356 | esac | ||
20357 | ;; | ||
20358 | esac | ||
20359 | |||
20360 | ac_dir=`$as_dirname -- "$ac_file" || | ||
20361 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
20362 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
20363 | X"$ac_file" : 'X\(//\)$' \| \ | ||
20364 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
20365 | $as_echo X"$ac_file" | | ||
20366 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
20367 | s//\1/ | ||
20368 | q | ||
20369 | } | ||
20370 | /^X\(\/\/\)[^/].*/{ | ||
20371 | s//\1/ | ||
20372 | q | ||
20373 | } | ||
20374 | /^X\(\/\/\)$/{ | ||
20375 | s//\1/ | ||
20376 | q | ||
20377 | } | ||
20378 | /^X\(\/\).*/{ | ||
20379 | s//\1/ | ||
20380 | q | ||
20381 | } | ||
20382 | s/.*/./; q'` | ||
20383 | as_dir="$ac_dir"; as_fn_mkdir_p | ||
20384 | ac_builddir=. | ||
20385 | |||
20386 | case "$ac_dir" in | ||
20387 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
20388 | *) | ||
20389 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
20390 | # A ".." for each directory in $ac_dir_suffix. | ||
20391 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
20392 | case $ac_top_builddir_sub in | ||
20393 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
20394 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
20395 | esac ;; | ||
20396 | esac | ||
20397 | ac_abs_top_builddir=$ac_pwd | ||
20398 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
20399 | # for backward compatibility: | ||
20400 | ac_top_builddir=$ac_top_build_prefix | ||
20401 | |||
20402 | case $srcdir in | ||
20403 | .) # We are building in place. | ||
20404 | ac_srcdir=. | ||
20405 | ac_top_srcdir=$ac_top_builddir_sub | ||
20406 | ac_abs_top_srcdir=$ac_pwd ;; | ||
20407 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
20408 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
20409 | ac_top_srcdir=$srcdir | ||
20410 | ac_abs_top_srcdir=$srcdir ;; | ||
20411 | *) # Relative name. | ||
20412 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
20413 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
20414 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
20415 | esac | ||
20416 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
20417 | |||
20418 | |||
20419 | case $ac_mode in | ||
20420 | :F) | ||
20421 | # | ||
20422 | # CONFIG_FILE | ||
20423 | # | ||
20424 | |||
20425 | case $INSTALL in | ||
20426 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
20427 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
20428 | esac | ||
20429 | _ACEOF | ||
20430 | |||
20431 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
20432 | # If the template does not know about datarootdir, expand it. | ||
20433 | # FIXME: This hack should be removed a few years after 2.60. | ||
20434 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
20435 | ac_sed_dataroot=' | ||
20436 | /datarootdir/ { | ||
20437 | p | ||
20438 | q | ||
20439 | } | ||
20440 | /@datadir@/p | ||
20441 | /@docdir@/p | ||
20442 | /@infodir@/p | ||
20443 | /@localedir@/p | ||
20444 | /@mandir@/p' | ||
20445 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | ||
20446 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
20447 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
20448 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
20449 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
20450 | _ACEOF | ||
20451 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
20452 | ac_datarootdir_hack=' | ||
20453 | s&@datadir@&$datadir&g | ||
20454 | s&@docdir@&$docdir&g | ||
20455 | s&@infodir@&$infodir&g | ||
20456 | s&@localedir@&$localedir&g | ||
20457 | s&@mandir@&$mandir&g | ||
20458 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
20459 | esac | ||
20460 | _ACEOF | ||
20461 | |||
20462 | # Neutralize VPATH when `$srcdir' = `.'. | ||
20463 | # Shell code in configure.ac might set extrasub. | ||
20464 | # FIXME: do we really want to maintain this feature? | ||
20465 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
20466 | ac_sed_extra="$ac_vpsub | ||
20467 | $extrasub | ||
20468 | _ACEOF | ||
20469 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
20470 | :t | ||
20471 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
20472 | s|@configure_input@|$ac_sed_conf_input|;t t | ||
20473 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
20474 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | ||
20475 | s&@srcdir@&$ac_srcdir&;t t | ||
20476 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
20477 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
20478 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
20479 | s&@builddir@&$ac_builddir&;t t | ||
20480 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
20481 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
20482 | s&@INSTALL@&$ac_INSTALL&;t t | ||
20483 | $ac_datarootdir_hack | ||
20484 | " | ||
20485 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | ||
20486 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
20487 | |||
20488 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
20489 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | ||
20490 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | ||
20491 | "$ac_tmp/out"`; test -z "$ac_out"; } && | ||
20492 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
20493 | which seems to be undefined. Please make sure it is defined" >&5 | ||
20494 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
20495 | which seems to be undefined. Please make sure it is defined" >&2;} | ||
20496 | |||
20497 | rm -f "$ac_tmp/stdin" | ||
20498 | case $ac_file in | ||
20499 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | ||
20500 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | ||
20501 | esac \ | ||
20502 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
20503 | ;; | ||
20504 | :H) | ||
20505 | # | ||
20506 | # CONFIG_HEADER | ||
20507 | # | ||
20508 | if test x"$ac_file" != x-; then | ||
20509 | { | ||
20510 | $as_echo "/* $configure_input */" \ | ||
20511 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | ||
20512 | } >"$ac_tmp/config.h" \ | ||
20513 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
20514 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | ||
20515 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | ||
20516 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | ||
20517 | else | ||
20518 | rm -f "$ac_file" | ||
20519 | mv "$ac_tmp/config.h" "$ac_file" \ | ||
20520 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
20521 | fi | ||
20522 | else | ||
20523 | $as_echo "/* $configure_input */" \ | ||
20524 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | ||
20525 | || as_fn_error $? "could not create -" "$LINENO" 5 | ||
20526 | fi | ||
20527 | ;; | ||
20528 | |||
20529 | |||
20530 | esac | ||
20531 | |||
20532 | done # for ac_tag | ||
20533 | |||
20534 | |||
20535 | as_fn_exit 0 | ||
20536 | _ACEOF | ||
20537 | ac_clean_files=$ac_clean_files_save | ||
20538 | |||
20539 | test $ac_write_fail = 0 || | ||
20540 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | ||
20541 | |||
20542 | |||
20543 | # configure is writing to config.log, and then calls config.status. | ||
20544 | # config.status does its own redirection, appending to config.log. | ||
20545 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
20546 | # by configure, so config.status won't be able to write to it; its | ||
20547 | # output is simply discarded. So we exec the FD to /dev/null, | ||
20548 | # effectively closing config.log, so it can be properly (re)opened and | ||
20549 | # appended to by config.status. When coming back to configure, we | ||
20550 | # need to make the FD available again. | ||
20551 | if test "$no_create" != yes; then | ||
20552 | ac_cs_success=: | ||
20553 | ac_config_status_args= | ||
20554 | test "$silent" = yes && | ||
20555 | ac_config_status_args="$ac_config_status_args --quiet" | ||
20556 | exec 5>/dev/null | ||
20557 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
20558 | exec 5>>config.log | ||
20559 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
20560 | # would make configure fail if this is the last instruction. | ||
20561 | $ac_cs_success || as_fn_exit 1 | ||
20562 | fi | ||
20563 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | ||
20564 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | ||
20565 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | ||
20566 | fi | ||
20567 | |||
20568 | |||
20569 | # Print summary of options | ||
20570 | |||
20571 | # Someone please show me a better way :) | ||
20572 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
20573 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
20574 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
20575 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
20576 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
20577 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
20578 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
20579 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
20580 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
20581 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
20582 | |||
20583 | echo "" | ||
20584 | echo "OpenSSH has been configured with the following options:" | ||
20585 | echo " User binaries: $B" | ||
20586 | echo " System binaries: $C" | ||
20587 | echo " Configuration files: $D" | ||
20588 | echo " Askpass program: $E" | ||
20589 | echo " Manual pages: $F" | ||
20590 | echo " PID file: $G" | ||
20591 | echo " Privilege separation chroot path: $H" | ||
20592 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
20593 | echo " At runtime, sshd will use the path defined in $external_path_file" | ||
20594 | echo " Make sure the path to scp is present, otherwise scp will not work" | ||
20595 | else | ||
20596 | echo " sshd default user PATH: $I" | ||
20597 | if test ! -z "$external_path_file"; then | ||
20598 | echo " (If PATH is set in $external_path_file it will be used instead. If" | ||
20599 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" | ||
20600 | fi | ||
20601 | fi | ||
20602 | if test ! -z "$superuser_path" ; then | ||
20603 | echo " sshd superuser user PATH: $J" | ||
20604 | fi | ||
20605 | echo " Manpage format: $MANTYPE" | ||
20606 | echo " PAM support: $PAM_MSG" | ||
20607 | echo " OSF SIA support: $SIA_MSG" | ||
20608 | echo " KerberosV support: $KRB5_MSG" | ||
20609 | echo " SELinux support: $SELINUX_MSG" | ||
20610 | echo " Smartcard support: $SCARD_MSG" | ||
20611 | echo " S/KEY support: $SKEY_MSG" | ||
20612 | echo " MD5 password support: $MD5_MSG" | ||
20613 | echo " libedit support: $LIBEDIT_MSG" | ||
20614 | echo " libldns support: $LDNS_MSG" | ||
20615 | echo " Solaris process contract support: $SPC_MSG" | ||
20616 | echo " Solaris project support: $SP_MSG" | ||
20617 | echo " Solaris privilege support: $SPP_MSG" | ||
20618 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
20619 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
20620 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
20621 | echo " Random number source: $RAND_MSG" | ||
20622 | echo " Privsep sandbox style: $SANDBOX_STYLE" | ||
20623 | |||
20624 | echo "" | ||
20625 | |||
20626 | echo " Host: ${host}" | ||
20627 | echo " Compiler: ${CC}" | ||
20628 | echo " Compiler flags: ${CFLAGS}" | ||
20629 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
20630 | echo " Linker flags: ${LDFLAGS}" | ||
20631 | echo " Libraries: ${LIBS}" | ||
20632 | if test ! -z "${SSHDLIBS}"; then | ||
20633 | echo " +for sshd: ${SSHDLIBS}" | ||
20634 | fi | ||
20635 | if test ! -z "${SSHLIBS}"; then | ||
20636 | echo " +for ssh: ${SSHLIBS}" | ||
20637 | fi | ||
20638 | |||
20639 | echo "" | ||
20640 | |||
20641 | if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then | ||
20642 | echo "SVR4 style packages are supported with \"make package\"" | ||
20643 | echo "" | ||
20644 | fi | ||
20645 | |||
20646 | if test "x$PAM_MSG" = "xyes" ; then | ||
20647 | echo "PAM is enabled. You may need to install a PAM control file " | ||
20648 | echo "for sshd, otherwise password authentication may fail. " | ||
20649 | echo "Example PAM control files can be found in the contrib/ " | ||
20650 | echo "subdirectory" | ||
20651 | echo "" | ||
20652 | fi | ||
20653 | |||
20654 | if test ! -z "$NO_PEERCHECK" ; then | ||
20655 | echo "WARNING: the operating system that you are using does not" | ||
20656 | echo "appear to support getpeereid(), getpeerucred() or the" | ||
20657 | echo "SO_PEERCRED getsockopt() option. These facilities are used to" | ||
20658 | echo "enforce security checks to prevent unauthorised connections to" | ||
20659 | echo "ssh-agent. Their absence increases the risk that a malicious" | ||
20660 | echo "user can connect to your agent." | ||
20661 | echo "" | ||
20662 | fi | ||
20663 | |||
20664 | if test "$AUDIT_MODULE" = "bsm" ; then | ||
20665 | echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." | ||
20666 | echo "See the Solaris section in README.platform for details." | ||
20667 | fi | ||