diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 18522 |
1 files changed, 18522 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 000000000..c36bb1907 --- /dev/null +++ b/configure | |||
@@ -0,0 +1,18522 @@ | |||
1 | #! /bin/sh | ||
2 | # From configure.ac Revision: 1.518 . | ||
3 | # Guess values for system-dependent variables and create Makefiles. | ||
4 | # Generated by GNU Autoconf 2.68 for OpenSSH Portable. | ||
5 | # | ||
6 | # Report bugs to <openssh-unix-dev@mindrot.org>. | ||
7 | # | ||
8 | # | ||
9 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
10 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | ||
11 | # Foundation, Inc. | ||
12 | # | ||
13 | # | ||
14 | # This configure script is free software; the Free Software Foundation | ||
15 | # gives unlimited permission to copy, distribute and modify it. | ||
16 | ## -------------------- ## | ||
17 | ## M4sh Initialization. ## | ||
18 | ## -------------------- ## | ||
19 | |||
20 | # Be more Bourne compatible | ||
21 | DUALCASE=1; export DUALCASE # for MKS sh | ||
22 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
23 | emulate sh | ||
24 | NULLCMD=: | ||
25 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
26 | # is contrary to our usage. Disable this feature. | ||
27 | alias -g '${1+"$@"}'='"$@"' | ||
28 | setopt NO_GLOB_SUBST | ||
29 | else | ||
30 | case `(set -o) 2>/dev/null` in #( | ||
31 | *posix*) : | ||
32 | set -o posix ;; #( | ||
33 | *) : | ||
34 | ;; | ||
35 | esac | ||
36 | fi | ||
37 | |||
38 | |||
39 | as_nl=' | ||
40 | ' | ||
41 | export as_nl | ||
42 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
43 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
46 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
47 | # but without wasting forks for bash or zsh. | ||
48 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
49 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
50 | as_echo='print -r --' | ||
51 | as_echo_n='print -rn --' | ||
52 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
53 | as_echo='printf %s\n' | ||
54 | as_echo_n='printf %s' | ||
55 | else | ||
56 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
57 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
58 | as_echo_n='/usr/ucb/echo -n' | ||
59 | else | ||
60 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
61 | as_echo_n_body='eval | ||
62 | arg=$1; | ||
63 | case $arg in #( | ||
64 | *"$as_nl"*) | ||
65 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
66 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
67 | esac; | ||
68 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
69 | ' | ||
70 | export as_echo_n_body | ||
71 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
72 | fi | ||
73 | export as_echo_body | ||
74 | as_echo='sh -c $as_echo_body as_echo' | ||
75 | fi | ||
76 | |||
77 | # The user is always right. | ||
78 | if test "${PATH_SEPARATOR+set}" != set; then | ||
79 | PATH_SEPARATOR=: | ||
80 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
81 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
82 | PATH_SEPARATOR=';' | ||
83 | } | ||
84 | fi | ||
85 | |||
86 | |||
87 | # IFS | ||
88 | # We need space, tab and new line, in precisely that order. Quoting is | ||
89 | # there to prevent editors from complaining about space-tab. | ||
90 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
91 | # splitting by setting IFS to empty value.) | ||
92 | IFS=" "" $as_nl" | ||
93 | |||
94 | # Find who we are. Look in the path if we contain no directory separator. | ||
95 | as_myself= | ||
96 | case $0 in #(( | ||
97 | *[\\/]* ) as_myself=$0 ;; | ||
98 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
99 | for as_dir in $PATH | ||
100 | do | ||
101 | IFS=$as_save_IFS | ||
102 | test -z "$as_dir" && as_dir=. | ||
103 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
104 | done | ||
105 | IFS=$as_save_IFS | ||
106 | |||
107 | ;; | ||
108 | esac | ||
109 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
110 | # in which case we are not to be found in the path. | ||
111 | if test "x$as_myself" = x; then | ||
112 | as_myself=$0 | ||
113 | fi | ||
114 | if test ! -f "$as_myself"; then | ||
115 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
116 | exit 1 | ||
117 | fi | ||
118 | |||
119 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
120 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
121 | # suppresses any "Segmentation fault" message there. '((' could | ||
122 | # trigger a bug in pdksh 5.2.14. | ||
123 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
124 | do eval test x\${$as_var+set} = xset \ | ||
125 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
126 | done | ||
127 | PS1='$ ' | ||
128 | PS2='> ' | ||
129 | PS4='+ ' | ||
130 | |||
131 | # NLS nuisances. | ||
132 | LC_ALL=C | ||
133 | export LC_ALL | ||
134 | LANGUAGE=C | ||
135 | export LANGUAGE | ||
136 | |||
137 | # CDPATH. | ||
138 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
139 | |||
140 | if test "x$CONFIG_SHELL" = x; then | ||
141 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | ||
142 | emulate sh | ||
143 | NULLCMD=: | ||
144 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | ||
145 | # is contrary to our usage. Disable this feature. | ||
146 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | ||
147 | setopt NO_GLOB_SUBST | ||
148 | else | ||
149 | case \`(set -o) 2>/dev/null\` in #( | ||
150 | *posix*) : | ||
151 | set -o posix ;; #( | ||
152 | *) : | ||
153 | ;; | ||
154 | esac | ||
155 | fi | ||
156 | " | ||
157 | as_required="as_fn_return () { (exit \$1); } | ||
158 | as_fn_success () { as_fn_return 0; } | ||
159 | as_fn_failure () { as_fn_return 1; } | ||
160 | as_fn_ret_success () { return 0; } | ||
161 | as_fn_ret_failure () { return 1; } | ||
162 | |||
163 | exitcode=0 | ||
164 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | ||
165 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | ||
166 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | ||
167 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | ||
168 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | ||
169 | |||
170 | else | ||
171 | exitcode=1; echo positional parameters were not saved. | ||
172 | fi | ||
173 | test x\$exitcode = x0 || exit 1" | ||
174 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | ||
175 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | ||
176 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | ||
177 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | ||
178 | test \$(( 1 + 1 )) = 2 || exit 1" | ||
179 | if (eval "$as_required") 2>/dev/null; then : | ||
180 | as_have_required=yes | ||
181 | else | ||
182 | as_have_required=no | ||
183 | fi | ||
184 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | ||
185 | |||
186 | else | ||
187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
188 | as_found=false | ||
189 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
190 | do | ||
191 | IFS=$as_save_IFS | ||
192 | test -z "$as_dir" && as_dir=. | ||
193 | as_found=: | ||
194 | case $as_dir in #( | ||
195 | /*) | ||
196 | for as_base in sh bash ksh sh5; do | ||
197 | # Try only shells that exist, to save several forks. | ||
198 | as_shell=$as_dir/$as_base | ||
199 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||
200 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
201 | CONFIG_SHELL=$as_shell as_have_required=yes | ||
202 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
203 | break 2 | ||
204 | fi | ||
205 | fi | ||
206 | done;; | ||
207 | esac | ||
208 | as_found=false | ||
209 | done | ||
210 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | ||
211 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | ||
212 | CONFIG_SHELL=$SHELL as_have_required=yes | ||
213 | fi; } | ||
214 | IFS=$as_save_IFS | ||
215 | |||
216 | |||
217 | if test "x$CONFIG_SHELL" != x; then : | ||
218 | # We cannot yet assume a decent shell, so we have to provide a | ||
219 | # neutralization value for shells without unset; and this also | ||
220 | # works around shells that cannot unset nonexistent variables. | ||
221 | # Preserve -v and -x to the replacement shell. | ||
222 | BASH_ENV=/dev/null | ||
223 | ENV=/dev/null | ||
224 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | ||
225 | export CONFIG_SHELL | ||
226 | case $- in # (((( | ||
227 | *v*x* | *x*v* ) as_opts=-vx ;; | ||
228 | *v* ) as_opts=-v ;; | ||
229 | *x* ) as_opts=-x ;; | ||
230 | * ) as_opts= ;; | ||
231 | esac | ||
232 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | ||
233 | fi | ||
234 | |||
235 | if test x$as_have_required = xno; then : | ||
236 | $as_echo "$0: This script requires a shell more modern than all" | ||
237 | $as_echo "$0: the shells that I found on your system." | ||
238 | if test x${ZSH_VERSION+set} = xset ; then | ||
239 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | ||
240 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | ||
241 | else | ||
242 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | ||
243 | $0: openssh-unix-dev@mindrot.org about your system, | ||
244 | $0: including any error possibly output before this | ||
245 | $0: message. Then install a modern shell, or manually run | ||
246 | $0: the script under such a shell if you do have one." | ||
247 | fi | ||
248 | exit 1 | ||
249 | fi | ||
250 | fi | ||
251 | fi | ||
252 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
253 | export SHELL | ||
254 | # Unset more variables known to interfere with behavior of common tools. | ||
255 | CLICOLOR_FORCE= GREP_OPTIONS= | ||
256 | unset CLICOLOR_FORCE GREP_OPTIONS | ||
257 | |||
258 | ## --------------------- ## | ||
259 | ## M4sh Shell Functions. ## | ||
260 | ## --------------------- ## | ||
261 | # as_fn_unset VAR | ||
262 | # --------------- | ||
263 | # Portably unset VAR. | ||
264 | as_fn_unset () | ||
265 | { | ||
266 | { eval $1=; unset $1;} | ||
267 | } | ||
268 | as_unset=as_fn_unset | ||
269 | |||
270 | # as_fn_set_status STATUS | ||
271 | # ----------------------- | ||
272 | # Set $? to STATUS, without forking. | ||
273 | as_fn_set_status () | ||
274 | { | ||
275 | return $1 | ||
276 | } # as_fn_set_status | ||
277 | |||
278 | # as_fn_exit STATUS | ||
279 | # ----------------- | ||
280 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
281 | as_fn_exit () | ||
282 | { | ||
283 | set +e | ||
284 | as_fn_set_status $1 | ||
285 | exit $1 | ||
286 | } # as_fn_exit | ||
287 | |||
288 | # as_fn_mkdir_p | ||
289 | # ------------- | ||
290 | # Create "$as_dir" as a directory, including parents if necessary. | ||
291 | as_fn_mkdir_p () | ||
292 | { | ||
293 | |||
294 | case $as_dir in #( | ||
295 | -*) as_dir=./$as_dir;; | ||
296 | esac | ||
297 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
298 | as_dirs= | ||
299 | while :; do | ||
300 | case $as_dir in #( | ||
301 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
302 | *) as_qdir=$as_dir;; | ||
303 | esac | ||
304 | as_dirs="'$as_qdir' $as_dirs" | ||
305 | as_dir=`$as_dirname -- "$as_dir" || | ||
306 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
307 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
308 | X"$as_dir" : 'X\(//\)$' \| \ | ||
309 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
310 | $as_echo X"$as_dir" | | ||
311 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
312 | s//\1/ | ||
313 | q | ||
314 | } | ||
315 | /^X\(\/\/\)[^/].*/{ | ||
316 | s//\1/ | ||
317 | q | ||
318 | } | ||
319 | /^X\(\/\/\)$/{ | ||
320 | s//\1/ | ||
321 | q | ||
322 | } | ||
323 | /^X\(\/\).*/{ | ||
324 | s//\1/ | ||
325 | q | ||
326 | } | ||
327 | s/.*/./; q'` | ||
328 | test -d "$as_dir" && break | ||
329 | done | ||
330 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
331 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
332 | |||
333 | |||
334 | } # as_fn_mkdir_p | ||
335 | # as_fn_append VAR VALUE | ||
336 | # ---------------------- | ||
337 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
338 | # advantage of any shell optimizations that allow amortized linear growth over | ||
339 | # repeated appends, instead of the typical quadratic growth present in naive | ||
340 | # implementations. | ||
341 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
342 | eval 'as_fn_append () | ||
343 | { | ||
344 | eval $1+=\$2 | ||
345 | }' | ||
346 | else | ||
347 | as_fn_append () | ||
348 | { | ||
349 | eval $1=\$$1\$2 | ||
350 | } | ||
351 | fi # as_fn_append | ||
352 | |||
353 | # as_fn_arith ARG... | ||
354 | # ------------------ | ||
355 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
356 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
357 | # must be portable across $(()) and expr. | ||
358 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
359 | eval 'as_fn_arith () | ||
360 | { | ||
361 | as_val=$(( $* )) | ||
362 | }' | ||
363 | else | ||
364 | as_fn_arith () | ||
365 | { | ||
366 | as_val=`expr "$@" || test $? -eq 1` | ||
367 | } | ||
368 | fi # as_fn_arith | ||
369 | |||
370 | |||
371 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
372 | # ---------------------------------------- | ||
373 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
374 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
375 | # script with STATUS, using 1 if that was 0. | ||
376 | as_fn_error () | ||
377 | { | ||
378 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
379 | if test "$4"; then | ||
380 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
381 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
382 | fi | ||
383 | $as_echo "$as_me: error: $2" >&2 | ||
384 | as_fn_exit $as_status | ||
385 | } # as_fn_error | ||
386 | |||
387 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
388 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
389 | as_expr=expr | ||
390 | else | ||
391 | as_expr=false | ||
392 | fi | ||
393 | |||
394 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
395 | as_basename=basename | ||
396 | else | ||
397 | as_basename=false | ||
398 | fi | ||
399 | |||
400 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
401 | as_dirname=dirname | ||
402 | else | ||
403 | as_dirname=false | ||
404 | fi | ||
405 | |||
406 | as_me=`$as_basename -- "$0" || | ||
407 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
408 | X"$0" : 'X\(//\)$' \| \ | ||
409 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
410 | $as_echo X/"$0" | | ||
411 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
412 | s//\1/ | ||
413 | q | ||
414 | } | ||
415 | /^X\/\(\/\/\)$/{ | ||
416 | s//\1/ | ||
417 | q | ||
418 | } | ||
419 | /^X\/\(\/\).*/{ | ||
420 | s//\1/ | ||
421 | q | ||
422 | } | ||
423 | s/.*/./; q'` | ||
424 | |||
425 | # Avoid depending upon Character Ranges. | ||
426 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
427 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
428 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
429 | as_cr_digits='0123456789' | ||
430 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
431 | |||
432 | |||
433 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | ||
434 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | ||
435 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | ||
436 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | ||
437 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | ||
438 | sed -n ' | ||
439 | p | ||
440 | /[$]LINENO/= | ||
441 | ' <$as_myself | | ||
442 | sed ' | ||
443 | s/[$]LINENO.*/&-/ | ||
444 | t lineno | ||
445 | b | ||
446 | :lineno | ||
447 | N | ||
448 | :loop | ||
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
450 | t loop | ||
451 | s/-\n.*// | ||
452 | ' >$as_me.lineno && | ||
453 | chmod +x "$as_me.lineno" || | ||
454 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | ||
455 | |||
456 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
457 | # (the dirname of $[0] is not the place where we might find the | ||
458 | # original and so on. Autoconf is especially sensitive to this). | ||
459 | . "./$as_me.lineno" | ||
460 | # Exit status is that of the last command. | ||
461 | exit | ||
462 | } | ||
463 | |||
464 | ECHO_C= ECHO_N= ECHO_T= | ||
465 | case `echo -n x` in #((((( | ||
466 | -n*) | ||
467 | case `echo 'xy\c'` in | ||
468 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
469 | xy) ECHO_C='\c';; | ||
470 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
471 | ECHO_T=' ';; | ||
472 | esac;; | ||
473 | *) | ||
474 | ECHO_N='-n';; | ||
475 | esac | ||
476 | |||
477 | rm -f conf$$ conf$$.exe conf$$.file | ||
478 | if test -d conf$$.dir; then | ||
479 | rm -f conf$$.dir/conf$$.file | ||
480 | else | ||
481 | rm -f conf$$.dir | ||
482 | mkdir conf$$.dir 2>/dev/null | ||
483 | fi | ||
484 | if (echo >conf$$.file) 2>/dev/null; then | ||
485 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
486 | as_ln_s='ln -s' | ||
487 | # ... but there are two gotchas: | ||
488 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
489 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
490 | # In both cases, we have to default to `cp -p'. | ||
491 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
492 | as_ln_s='cp -p' | ||
493 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
494 | as_ln_s=ln | ||
495 | else | ||
496 | as_ln_s='cp -p' | ||
497 | fi | ||
498 | else | ||
499 | as_ln_s='cp -p' | ||
500 | fi | ||
501 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
502 | rmdir conf$$.dir 2>/dev/null | ||
503 | |||
504 | if mkdir -p . 2>/dev/null; then | ||
505 | as_mkdir_p='mkdir -p "$as_dir"' | ||
506 | else | ||
507 | test -d ./-p && rmdir ./-p | ||
508 | as_mkdir_p=false | ||
509 | fi | ||
510 | |||
511 | if test -x / >/dev/null 2>&1; then | ||
512 | as_test_x='test -x' | ||
513 | else | ||
514 | if ls -dL / >/dev/null 2>&1; then | ||
515 | as_ls_L_option=L | ||
516 | else | ||
517 | as_ls_L_option= | ||
518 | fi | ||
519 | as_test_x=' | ||
520 | eval sh -c '\'' | ||
521 | if test -d "$1"; then | ||
522 | test -d "$1/."; | ||
523 | else | ||
524 | case $1 in #( | ||
525 | -*)set "./$1";; | ||
526 | esac; | ||
527 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | ||
528 | ???[sx]*):;;*)false;;esac;fi | ||
529 | '\'' sh | ||
530 | ' | ||
531 | fi | ||
532 | as_executable_p=$as_test_x | ||
533 | |||
534 | # Sed expression to map a string onto a valid CPP name. | ||
535 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
536 | |||
537 | # Sed expression to map a string onto a valid variable name. | ||
538 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
539 | |||
540 | |||
541 | test -n "$DJDIR" || exec 7<&0 </dev/null | ||
542 | exec 6>&1 | ||
543 | |||
544 | # Name of the host. | ||
545 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | ||
546 | # so uname gets run too. | ||
547 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
548 | |||
549 | # | ||
550 | # Initializations. | ||
551 | # | ||
552 | ac_default_prefix=/usr/local | ||
553 | ac_clean_files= | ||
554 | ac_config_libobj_dir=. | ||
555 | LIBOBJS= | ||
556 | cross_compiling=no | ||
557 | subdirs= | ||
558 | MFLAGS= | ||
559 | MAKEFLAGS= | ||
560 | |||
561 | # Identity of this package. | ||
562 | PACKAGE_NAME='OpenSSH' | ||
563 | PACKAGE_TARNAME='openssh' | ||
564 | PACKAGE_VERSION='Portable' | ||
565 | PACKAGE_STRING='OpenSSH Portable' | ||
566 | PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org' | ||
567 | PACKAGE_URL='' | ||
568 | |||
569 | ac_unique_file="ssh.c" | ||
570 | # Factoring default headers for most tests. | ||
571 | ac_includes_default="\ | ||
572 | #include <stdio.h> | ||
573 | #ifdef HAVE_SYS_TYPES_H | ||
574 | # include <sys/types.h> | ||
575 | #endif | ||
576 | #ifdef HAVE_SYS_STAT_H | ||
577 | # include <sys/stat.h> | ||
578 | #endif | ||
579 | #ifdef STDC_HEADERS | ||
580 | # include <stdlib.h> | ||
581 | # include <stddef.h> | ||
582 | #else | ||
583 | # ifdef HAVE_STDLIB_H | ||
584 | # include <stdlib.h> | ||
585 | # endif | ||
586 | #endif | ||
587 | #ifdef HAVE_STRING_H | ||
588 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||
589 | # include <memory.h> | ||
590 | # endif | ||
591 | # include <string.h> | ||
592 | #endif | ||
593 | #ifdef HAVE_STRINGS_H | ||
594 | # include <strings.h> | ||
595 | #endif | ||
596 | #ifdef HAVE_INTTYPES_H | ||
597 | # include <inttypes.h> | ||
598 | #endif | ||
599 | #ifdef HAVE_STDINT_H | ||
600 | # include <stdint.h> | ||
601 | #endif | ||
602 | #ifdef HAVE_UNISTD_H | ||
603 | # include <unistd.h> | ||
604 | #endif" | ||
605 | |||
606 | ac_subst_vars='LTLIBOBJS | ||
607 | LIBOBJS | ||
608 | TEST_SSH_IPV6 | ||
609 | piddir | ||
610 | user_path | ||
611 | mansubdir | ||
612 | MANTYPE | ||
613 | XAUTH_PATH | ||
614 | STRIP_OPT | ||
615 | xauth_path | ||
616 | PRIVSEP_PATH | ||
617 | K5LIBS | ||
618 | GSSLIBS | ||
619 | KRB5CONF | ||
620 | SSHDLIBS | ||
621 | SSHLIBS | ||
622 | SSH_PRIVSEP_USER | ||
623 | COMMENT_OUT_ECC | ||
624 | TEST_SSH_ECC | ||
625 | TEST_SSH_SHA256 | ||
626 | LIBEDIT | ||
627 | PKGCONFIG | ||
628 | LD | ||
629 | PATH_PASSWD_PROG | ||
630 | LOGIN_PROGRAM_FALLBACK | ||
631 | STARTUP_SCRIPT_SHELL | ||
632 | MAKE_PACKAGE_SUPPORTED | ||
633 | PATH_USERADD_PROG | ||
634 | PATH_GROUPADD_PROG | ||
635 | MANFMT | ||
636 | TEST_SHELL | ||
637 | MANDOC | ||
638 | NROFF | ||
639 | GROFF | ||
640 | SH | ||
641 | TEST_MINUS_S_SH | ||
642 | ENT | ||
643 | SED | ||
644 | PERL | ||
645 | KILL | ||
646 | CAT | ||
647 | AR | ||
648 | INSTALL_DATA | ||
649 | INSTALL_SCRIPT | ||
650 | INSTALL_PROGRAM | ||
651 | RANLIB | ||
652 | AWK | ||
653 | EGREP | ||
654 | GREP | ||
655 | CPP | ||
656 | host_os | ||
657 | host_vendor | ||
658 | host_cpu | ||
659 | host | ||
660 | build_os | ||
661 | build_vendor | ||
662 | build_cpu | ||
663 | build | ||
664 | OBJEXT | ||
665 | EXEEXT | ||
666 | ac_ct_CC | ||
667 | CPPFLAGS | ||
668 | LDFLAGS | ||
669 | CFLAGS | ||
670 | CC | ||
671 | target_alias | ||
672 | host_alias | ||
673 | build_alias | ||
674 | LIBS | ||
675 | ECHO_T | ||
676 | ECHO_N | ||
677 | ECHO_C | ||
678 | DEFS | ||
679 | mandir | ||
680 | localedir | ||
681 | libdir | ||
682 | psdir | ||
683 | pdfdir | ||
684 | dvidir | ||
685 | htmldir | ||
686 | infodir | ||
687 | docdir | ||
688 | oldincludedir | ||
689 | includedir | ||
690 | localstatedir | ||
691 | sharedstatedir | ||
692 | sysconfdir | ||
693 | datadir | ||
694 | datarootdir | ||
695 | libexecdir | ||
696 | sbindir | ||
697 | bindir | ||
698 | program_transform_name | ||
699 | prefix | ||
700 | exec_prefix | ||
701 | PACKAGE_URL | ||
702 | PACKAGE_BUGREPORT | ||
703 | PACKAGE_STRING | ||
704 | PACKAGE_VERSION | ||
705 | PACKAGE_TARNAME | ||
706 | PACKAGE_NAME | ||
707 | PATH_SEPARATOR | ||
708 | SHELL' | ||
709 | ac_subst_files='' | ||
710 | ac_user_opts=' | ||
711 | enable_option_checking | ||
712 | enable_largefile | ||
713 | with_stackprotect | ||
714 | with_rpath | ||
715 | with_cflags | ||
716 | with_cppflags | ||
717 | with_ldflags | ||
718 | with_libs | ||
719 | with_Werror | ||
720 | with_solaris_contracts | ||
721 | with_solaris_projects | ||
722 | with_osfsia | ||
723 | with_zlib | ||
724 | with_zlib_version_check | ||
725 | with_skey | ||
726 | with_tcp_wrappers | ||
727 | with_ldns | ||
728 | with_libedit | ||
729 | with_audit | ||
730 | with_ssl_dir | ||
731 | with_openssl_header_check | ||
732 | with_ssl_engine | ||
733 | with_prngd_port | ||
734 | with_prngd_socket | ||
735 | with_pam | ||
736 | with_privsep_user | ||
737 | with_sandbox | ||
738 | with_selinux | ||
739 | with_kerberos5 | ||
740 | with_privsep_path | ||
741 | with_xauth | ||
742 | enable_strip | ||
743 | with_maildir | ||
744 | with_mantype | ||
745 | with_md5_passwords | ||
746 | with_shadow | ||
747 | with_ipaddr_display | ||
748 | enable_etc_default_login | ||
749 | with_default_path | ||
750 | with_superuser_path | ||
751 | with_4in6 | ||
752 | with_bsd_auth | ||
753 | with_pid_dir | ||
754 | enable_lastlog | ||
755 | enable_utmp | ||
756 | enable_utmpx | ||
757 | enable_wtmp | ||
758 | enable_wtmpx | ||
759 | enable_libutil | ||
760 | enable_pututline | ||
761 | enable_pututxline | ||
762 | with_lastlog | ||
763 | ' | ||
764 | ac_precious_vars='build_alias | ||
765 | host_alias | ||
766 | target_alias | ||
767 | CC | ||
768 | CFLAGS | ||
769 | LDFLAGS | ||
770 | LIBS | ||
771 | CPPFLAGS | ||
772 | CPP' | ||
773 | |||
774 | |||
775 | # Initialize some variables set by options. | ||
776 | ac_init_help= | ||
777 | ac_init_version=false | ||
778 | ac_unrecognized_opts= | ||
779 | ac_unrecognized_sep= | ||
780 | # The variables have the same names as the options, with | ||
781 | # dashes changed to underlines. | ||
782 | cache_file=/dev/null | ||
783 | exec_prefix=NONE | ||
784 | no_create= | ||
785 | no_recursion= | ||
786 | prefix=NONE | ||
787 | program_prefix=NONE | ||
788 | program_suffix=NONE | ||
789 | program_transform_name=s,x,x, | ||
790 | silent= | ||
791 | site= | ||
792 | srcdir= | ||
793 | verbose= | ||
794 | x_includes=NONE | ||
795 | x_libraries=NONE | ||
796 | |||
797 | # Installation directory options. | ||
798 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
799 | # and all the variables that are supposed to be based on exec_prefix | ||
800 | # by default will actually change. | ||
801 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
802 | # (The list follows the same order as the GNU Coding Standards.) | ||
803 | bindir='${exec_prefix}/bin' | ||
804 | sbindir='${exec_prefix}/sbin' | ||
805 | libexecdir='${exec_prefix}/libexec' | ||
806 | datarootdir='${prefix}/share' | ||
807 | datadir='${datarootdir}' | ||
808 | sysconfdir='${prefix}/etc' | ||
809 | sharedstatedir='${prefix}/com' | ||
810 | localstatedir='${prefix}/var' | ||
811 | includedir='${prefix}/include' | ||
812 | oldincludedir='/usr/include' | ||
813 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
814 | infodir='${datarootdir}/info' | ||
815 | htmldir='${docdir}' | ||
816 | dvidir='${docdir}' | ||
817 | pdfdir='${docdir}' | ||
818 | psdir='${docdir}' | ||
819 | libdir='${exec_prefix}/lib' | ||
820 | localedir='${datarootdir}/locale' | ||
821 | mandir='${datarootdir}/man' | ||
822 | |||
823 | ac_prev= | ||
824 | ac_dashdash= | ||
825 | for ac_option | ||
826 | do | ||
827 | # If the previous option needs an argument, assign it. | ||
828 | if test -n "$ac_prev"; then | ||
829 | eval $ac_prev=\$ac_option | ||
830 | ac_prev= | ||
831 | continue | ||
832 | fi | ||
833 | |||
834 | case $ac_option in | ||
835 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
836 | *=) ac_optarg= ;; | ||
837 | *) ac_optarg=yes ;; | ||
838 | esac | ||
839 | |||
840 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
841 | |||
842 | case $ac_dashdash$ac_option in | ||
843 | --) | ||
844 | ac_dashdash=yes ;; | ||
845 | |||
846 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
847 | ac_prev=bindir ;; | ||
848 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
849 | bindir=$ac_optarg ;; | ||
850 | |||
851 | -build | --build | --buil | --bui | --bu) | ||
852 | ac_prev=build_alias ;; | ||
853 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
854 | build_alias=$ac_optarg ;; | ||
855 | |||
856 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
857 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
858 | ac_prev=cache_file ;; | ||
859 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
860 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
861 | cache_file=$ac_optarg ;; | ||
862 | |||
863 | --config-cache | -C) | ||
864 | cache_file=config.cache ;; | ||
865 | |||
866 | -datadir | --datadir | --datadi | --datad) | ||
867 | ac_prev=datadir ;; | ||
868 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
869 | datadir=$ac_optarg ;; | ||
870 | |||
871 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
872 | | --dataroo | --dataro | --datar) | ||
873 | ac_prev=datarootdir ;; | ||
874 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
875 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
876 | datarootdir=$ac_optarg ;; | ||
877 | |||
878 | -disable-* | --disable-*) | ||
879 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
880 | # Reject names that are not valid shell variable names. | ||
881 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
882 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
883 | ac_useropt_orig=$ac_useropt | ||
884 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
885 | case $ac_user_opts in | ||
886 | *" | ||
887 | "enable_$ac_useropt" | ||
888 | "*) ;; | ||
889 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||
890 | ac_unrecognized_sep=', ';; | ||
891 | esac | ||
892 | eval enable_$ac_useropt=no ;; | ||
893 | |||
894 | -docdir | --docdir | --docdi | --doc | --do) | ||
895 | ac_prev=docdir ;; | ||
896 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
897 | docdir=$ac_optarg ;; | ||
898 | |||
899 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
900 | ac_prev=dvidir ;; | ||
901 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
902 | dvidir=$ac_optarg ;; | ||
903 | |||
904 | -enable-* | --enable-*) | ||
905 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
906 | # Reject names that are not valid shell variable names. | ||
907 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
908 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
909 | ac_useropt_orig=$ac_useropt | ||
910 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
911 | case $ac_user_opts in | ||
912 | *" | ||
913 | "enable_$ac_useropt" | ||
914 | "*) ;; | ||
915 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||
916 | ac_unrecognized_sep=', ';; | ||
917 | esac | ||
918 | eval enable_$ac_useropt=\$ac_optarg ;; | ||
919 | |||
920 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
921 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
922 | | --exec | --exe | --ex) | ||
923 | ac_prev=exec_prefix ;; | ||
924 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
925 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
926 | | --exec=* | --exe=* | --ex=*) | ||
927 | exec_prefix=$ac_optarg ;; | ||
928 | |||
929 | -gas | --gas | --ga | --g) | ||
930 | # Obsolete; use --with-gas. | ||
931 | with_gas=yes ;; | ||
932 | |||
933 | -help | --help | --hel | --he | -h) | ||
934 | ac_init_help=long ;; | ||
935 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
936 | ac_init_help=recursive ;; | ||
937 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
938 | ac_init_help=short ;; | ||
939 | |||
940 | -host | --host | --hos | --ho) | ||
941 | ac_prev=host_alias ;; | ||
942 | -host=* | --host=* | --hos=* | --ho=*) | ||
943 | host_alias=$ac_optarg ;; | ||
944 | |||
945 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
946 | ac_prev=htmldir ;; | ||
947 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
948 | | --ht=*) | ||
949 | htmldir=$ac_optarg ;; | ||
950 | |||
951 | -includedir | --includedir | --includedi | --included | --include \ | ||
952 | | --includ | --inclu | --incl | --inc) | ||
953 | ac_prev=includedir ;; | ||
954 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
955 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
956 | includedir=$ac_optarg ;; | ||
957 | |||
958 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
959 | ac_prev=infodir ;; | ||
960 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
961 | infodir=$ac_optarg ;; | ||
962 | |||
963 | -libdir | --libdir | --libdi | --libd) | ||
964 | ac_prev=libdir ;; | ||
965 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
966 | libdir=$ac_optarg ;; | ||
967 | |||
968 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
969 | | --libexe | --libex | --libe) | ||
970 | ac_prev=libexecdir ;; | ||
971 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
972 | | --libexe=* | --libex=* | --libe=*) | ||
973 | libexecdir=$ac_optarg ;; | ||
974 | |||
975 | -localedir | --localedir | --localedi | --localed | --locale) | ||
976 | ac_prev=localedir ;; | ||
977 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
978 | localedir=$ac_optarg ;; | ||
979 | |||
980 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
981 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
982 | ac_prev=localstatedir ;; | ||
983 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
984 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
985 | localstatedir=$ac_optarg ;; | ||
986 | |||
987 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
988 | ac_prev=mandir ;; | ||
989 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
990 | mandir=$ac_optarg ;; | ||
991 | |||
992 | -nfp | --nfp | --nf) | ||
993 | # Obsolete; use --without-fp. | ||
994 | with_fp=no ;; | ||
995 | |||
996 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
997 | | --no-cr | --no-c | -n) | ||
998 | no_create=yes ;; | ||
999 | |||
1000 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
1001 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
1002 | no_recursion=yes ;; | ||
1003 | |||
1004 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
1005 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
1006 | | --oldin | --oldi | --old | --ol | --o) | ||
1007 | ac_prev=oldincludedir ;; | ||
1008 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
1009 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
1010 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
1011 | oldincludedir=$ac_optarg ;; | ||
1012 | |||
1013 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
1014 | ac_prev=prefix ;; | ||
1015 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
1016 | prefix=$ac_optarg ;; | ||
1017 | |||
1018 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
1019 | | --program-pre | --program-pr | --program-p) | ||
1020 | ac_prev=program_prefix ;; | ||
1021 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
1022 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
1023 | program_prefix=$ac_optarg ;; | ||
1024 | |||
1025 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
1026 | | --program-suf | --program-su | --program-s) | ||
1027 | ac_prev=program_suffix ;; | ||
1028 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
1029 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
1030 | program_suffix=$ac_optarg ;; | ||
1031 | |||
1032 | -program-transform-name | --program-transform-name \ | ||
1033 | | --program-transform-nam | --program-transform-na \ | ||
1034 | | --program-transform-n | --program-transform- \ | ||
1035 | | --program-transform | --program-transfor \ | ||
1036 | | --program-transfo | --program-transf \ | ||
1037 | | --program-trans | --program-tran \ | ||
1038 | | --progr-tra | --program-tr | --program-t) | ||
1039 | ac_prev=program_transform_name ;; | ||
1040 | -program-transform-name=* | --program-transform-name=* \ | ||
1041 | | --program-transform-nam=* | --program-transform-na=* \ | ||
1042 | | --program-transform-n=* | --program-transform-=* \ | ||
1043 | | --program-transform=* | --program-transfor=* \ | ||
1044 | | --program-transfo=* | --program-transf=* \ | ||
1045 | | --program-trans=* | --program-tran=* \ | ||
1046 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
1047 | program_transform_name=$ac_optarg ;; | ||
1048 | |||
1049 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
1050 | ac_prev=pdfdir ;; | ||
1051 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1052 | pdfdir=$ac_optarg ;; | ||
1053 | |||
1054 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1055 | ac_prev=psdir ;; | ||
1056 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1057 | psdir=$ac_optarg ;; | ||
1058 | |||
1059 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1060 | | -silent | --silent | --silen | --sile | --sil) | ||
1061 | silent=yes ;; | ||
1062 | |||
1063 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1064 | ac_prev=sbindir ;; | ||
1065 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1066 | | --sbi=* | --sb=*) | ||
1067 | sbindir=$ac_optarg ;; | ||
1068 | |||
1069 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1070 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1071 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1072 | | --sha | --sh) | ||
1073 | ac_prev=sharedstatedir ;; | ||
1074 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1075 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1076 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1077 | | --sha=* | --sh=*) | ||
1078 | sharedstatedir=$ac_optarg ;; | ||
1079 | |||
1080 | -site | --site | --sit) | ||
1081 | ac_prev=site ;; | ||
1082 | -site=* | --site=* | --sit=*) | ||
1083 | site=$ac_optarg ;; | ||
1084 | |||
1085 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1086 | ac_prev=srcdir ;; | ||
1087 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1088 | srcdir=$ac_optarg ;; | ||
1089 | |||
1090 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1091 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1092 | ac_prev=sysconfdir ;; | ||
1093 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1094 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1095 | sysconfdir=$ac_optarg ;; | ||
1096 | |||
1097 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1098 | ac_prev=target_alias ;; | ||
1099 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1100 | target_alias=$ac_optarg ;; | ||
1101 | |||
1102 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1103 | verbose=yes ;; | ||
1104 | |||
1105 | -version | --version | --versio | --versi | --vers | -V) | ||
1106 | ac_init_version=: ;; | ||
1107 | |||
1108 | -with-* | --with-*) | ||
1109 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1110 | # Reject names that are not valid shell variable names. | ||
1111 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1112 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1113 | ac_useropt_orig=$ac_useropt | ||
1114 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1115 | case $ac_user_opts in | ||
1116 | *" | ||
1117 | "with_$ac_useropt" | ||
1118 | "*) ;; | ||
1119 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||
1120 | ac_unrecognized_sep=', ';; | ||
1121 | esac | ||
1122 | eval with_$ac_useropt=\$ac_optarg ;; | ||
1123 | |||
1124 | -without-* | --without-*) | ||
1125 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1126 | # Reject names that are not valid shell variable names. | ||
1127 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1128 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1129 | ac_useropt_orig=$ac_useropt | ||
1130 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1131 | case $ac_user_opts in | ||
1132 | *" | ||
1133 | "with_$ac_useropt" | ||
1134 | "*) ;; | ||
1135 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||
1136 | ac_unrecognized_sep=', ';; | ||
1137 | esac | ||
1138 | eval with_$ac_useropt=no ;; | ||
1139 | |||
1140 | --x) | ||
1141 | # Obsolete; use --with-x. | ||
1142 | with_x=yes ;; | ||
1143 | |||
1144 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1145 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1146 | ac_prev=x_includes ;; | ||
1147 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1148 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1149 | x_includes=$ac_optarg ;; | ||
1150 | |||
1151 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1152 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1153 | ac_prev=x_libraries ;; | ||
1154 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1155 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1156 | x_libraries=$ac_optarg ;; | ||
1157 | |||
1158 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | ||
1159 | Try \`$0 --help' for more information" | ||
1160 | ;; | ||
1161 | |||
1162 | *=*) | ||
1163 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1164 | # Reject names that are not valid shell variable names. | ||
1165 | case $ac_envvar in #( | ||
1166 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | ||
1167 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | ||
1168 | esac | ||
1169 | eval $ac_envvar=\$ac_optarg | ||
1170 | export $ac_envvar ;; | ||
1171 | |||
1172 | *) | ||
1173 | # FIXME: should be removed in autoconf 3.0. | ||
1174 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1175 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1176 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1177 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | ||
1178 | ;; | ||
1179 | |||
1180 | esac | ||
1181 | done | ||
1182 | |||
1183 | if test -n "$ac_prev"; then | ||
1184 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1185 | as_fn_error $? "missing argument to $ac_option" | ||
1186 | fi | ||
1187 | |||
1188 | if test -n "$ac_unrecognized_opts"; then | ||
1189 | case $enable_option_checking in | ||
1190 | no) ;; | ||
1191 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | ||
1192 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | ||
1193 | esac | ||
1194 | fi | ||
1195 | |||
1196 | # Check all directory arguments for consistency. | ||
1197 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1198 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1199 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1200 | libdir localedir mandir | ||
1201 | do | ||
1202 | eval ac_val=\$$ac_var | ||
1203 | # Remove trailing slashes. | ||
1204 | case $ac_val in | ||
1205 | */ ) | ||
1206 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||
1207 | eval $ac_var=\$ac_val;; | ||
1208 | esac | ||
1209 | # Be sure to have absolute directory names. | ||
1210 | case $ac_val in | ||
1211 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1212 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1213 | esac | ||
1214 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | ||
1215 | done | ||
1216 | |||
1217 | # There might be people who depend on the old broken behavior: `$host' | ||
1218 | # used to hold the argument of --host etc. | ||
1219 | # FIXME: To remove some day. | ||
1220 | build=$build_alias | ||
1221 | host=$host_alias | ||
1222 | target=$target_alias | ||
1223 | |||
1224 | # FIXME: To remove some day. | ||
1225 | if test "x$host_alias" != x; then | ||
1226 | if test "x$build_alias" = x; then | ||
1227 | cross_compiling=maybe | ||
1228 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | ||
1229 | If a cross compiler is detected then cross compile mode will be used" >&2 | ||
1230 | elif test "x$build_alias" != "x$host_alias"; then | ||
1231 | cross_compiling=yes | ||
1232 | fi | ||
1233 | fi | ||
1234 | |||
1235 | ac_tool_prefix= | ||
1236 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1237 | |||
1238 | test "$silent" = yes && exec 6>/dev/null | ||
1239 | |||
1240 | |||
1241 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1242 | ac_ls_di=`ls -di .` && | ||
1243 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1244 | as_fn_error $? "working directory cannot be determined" | ||
1245 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1246 | as_fn_error $? "pwd does not report name of working directory" | ||
1247 | |||
1248 | |||
1249 | # Find the source files, if location was not specified. | ||
1250 | if test -z "$srcdir"; then | ||
1251 | ac_srcdir_defaulted=yes | ||
1252 | # Try the directory containing this script, then the parent directory. | ||
1253 | ac_confdir=`$as_dirname -- "$as_myself" || | ||
1254 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1255 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||
1256 | X"$as_myself" : 'X\(//\)$' \| \ | ||
1257 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||
1258 | $as_echo X"$as_myself" | | ||
1259 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1260 | s//\1/ | ||
1261 | q | ||
1262 | } | ||
1263 | /^X\(\/\/\)[^/].*/{ | ||
1264 | s//\1/ | ||
1265 | q | ||
1266 | } | ||
1267 | /^X\(\/\/\)$/{ | ||
1268 | s//\1/ | ||
1269 | q | ||
1270 | } | ||
1271 | /^X\(\/\).*/{ | ||
1272 | s//\1/ | ||
1273 | q | ||
1274 | } | ||
1275 | s/.*/./; q'` | ||
1276 | srcdir=$ac_confdir | ||
1277 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1278 | srcdir=.. | ||
1279 | fi | ||
1280 | else | ||
1281 | ac_srcdir_defaulted=no | ||
1282 | fi | ||
1283 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1284 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1285 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | ||
1286 | fi | ||
1287 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1288 | ac_abs_confdir=`( | ||
1289 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | ||
1290 | pwd)` | ||
1291 | # When building in place, set srcdir=. | ||
1292 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1293 | srcdir=. | ||
1294 | fi | ||
1295 | # Remove unnecessary trailing slashes from srcdir. | ||
1296 | # Double slashes in file names in object file debugging info | ||
1297 | # mess up M-x gdb in Emacs. | ||
1298 | case $srcdir in | ||
1299 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1300 | esac | ||
1301 | for ac_var in $ac_precious_vars; do | ||
1302 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1303 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1304 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1305 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1306 | done | ||
1307 | |||
1308 | # | ||
1309 | # Report the --help message. | ||
1310 | # | ||
1311 | if test "$ac_init_help" = "long"; then | ||
1312 | # Omit some internal or obsolete options to make the list less imposing. | ||
1313 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1314 | cat <<_ACEOF | ||
1315 | \`configure' configures OpenSSH Portable to adapt to many kinds of systems. | ||
1316 | |||
1317 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1318 | |||
1319 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1320 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1321 | |||
1322 | Defaults for the options are specified in brackets. | ||
1323 | |||
1324 | Configuration: | ||
1325 | -h, --help display this help and exit | ||
1326 | --help=short display options specific to this package | ||
1327 | --help=recursive display the short help of all the included packages | ||
1328 | -V, --version display version information and exit | ||
1329 | -q, --quiet, --silent do not print \`checking ...' messages | ||
1330 | --cache-file=FILE cache test results in FILE [disabled] | ||
1331 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1332 | -n, --no-create do not create output files | ||
1333 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1334 | |||
1335 | Installation directories: | ||
1336 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1337 | [$ac_default_prefix] | ||
1338 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1339 | [PREFIX] | ||
1340 | |||
1341 | By default, \`make install' will install all the files in | ||
1342 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1343 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1344 | for instance \`--prefix=\$HOME'. | ||
1345 | |||
1346 | For better control, use the options below. | ||
1347 | |||
1348 | Fine tuning of the installation directories: | ||
1349 | --bindir=DIR user executables [EPREFIX/bin] | ||
1350 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1351 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1352 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1353 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1354 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1355 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1356 | --includedir=DIR C header files [PREFIX/include] | ||
1357 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1358 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1359 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1360 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1361 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1362 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1363 | --docdir=DIR documentation root [DATAROOTDIR/doc/openssh] | ||
1364 | --htmldir=DIR html documentation [DOCDIR] | ||
1365 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1366 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1367 | --psdir=DIR ps documentation [DOCDIR] | ||
1368 | _ACEOF | ||
1369 | |||
1370 | cat <<\_ACEOF | ||
1371 | |||
1372 | System types: | ||
1373 | --build=BUILD configure for building on BUILD [guessed] | ||
1374 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1375 | _ACEOF | ||
1376 | fi | ||
1377 | |||
1378 | if test -n "$ac_init_help"; then | ||
1379 | case $ac_init_help in | ||
1380 | short | recursive ) echo "Configuration of OpenSSH Portable:";; | ||
1381 | esac | ||
1382 | cat <<\_ACEOF | ||
1383 | |||
1384 | Optional Features: | ||
1385 | --disable-option-checking ignore unrecognized --enable/--with options | ||
1386 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1387 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1388 | --disable-largefile omit support for large files | ||
1389 | --disable-strip Disable calling strip(1) on install | ||
1390 | --disable-etc-default-login Disable using PATH from /etc/default/login no | ||
1391 | --disable-lastlog disable use of lastlog even if detected no | ||
1392 | --disable-utmp disable use of utmp even if detected no | ||
1393 | --disable-utmpx disable use of utmpx even if detected no | ||
1394 | --disable-wtmp disable use of wtmp even if detected no | ||
1395 | --disable-wtmpx disable use of wtmpx even if detected no | ||
1396 | --disable-libutil disable use of libutil (login() etc.) no | ||
1397 | --disable-pututline disable use of pututline() etc. (uwtmp) no | ||
1398 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | ||
1399 | |||
1400 | Optional Packages: | ||
1401 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1402 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1403 | --without-stackprotect Don't use compiler's stack protection | ||
1404 | --without-rpath Disable auto-added -R linker paths | ||
1405 | --with-cflags Specify additional flags to pass to compiler | ||
1406 | --with-cppflags Specify additional flags to pass to preprocessor | ||
1407 | --with-ldflags Specify additional flags to pass to linker | ||
1408 | --with-libs Specify additional libraries to link with | ||
1409 | --with-Werror Build main code with -Werror | ||
1410 | --with-solaris-contracts Enable Solaris process contracts (experimental) | ||
1411 | --with-solaris-projects Enable Solaris projects (experimental) | ||
1412 | --with-osfsia Enable Digital Unix SIA | ||
1413 | --with-zlib=PATH Use zlib in PATH | ||
1414 | --without-zlib-version-check Disable zlib version check | ||
1415 | --with-skey[=PATH] Enable S/Key support (optionally in PATH) | ||
1416 | --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH) | ||
1417 | --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH) | ||
1418 | --with-libedit[=PATH] Enable libedit support for sftp | ||
1419 | --with-audit=module Enable audit support (modules=debug,bsm,linux) | ||
1420 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
1421 | --without-openssl-header-check Disable OpenSSL version consistency check | ||
1422 | --with-ssl-engine Enable OpenSSL (hardware) ENGINE support | ||
1423 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
1424 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
1425 | --with-pam Enable PAM support | ||
1426 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
1427 | --with-sandbox=style Specify privilege separation sandbox (no, darwin, rlimit, systrace, seccomp_filter) | ||
1428 | --with-selinux Enable SELinux support | ||
1429 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
1430 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | ||
1431 | --with-xauth=PATH Specify path to xauth program | ||
1432 | --with-maildir=/path/to/mail Specify your system mail directory | ||
1433 | --with-mantype=man|cat|doc Set man page type | ||
1434 | --with-md5-passwords Enable use of MD5 passwords | ||
1435 | --without-shadow Disable shadow password support | ||
1436 | --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY | ||
1437 | --with-default-path= Specify default \$PATH environment for server | ||
1438 | --with-superuser-path= Specify different path for super-user | ||
1439 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
1440 | --with-bsd-auth Enable BSD auth support | ||
1441 | --with-pid-dir=PATH Specify location of ssh.pid file | ||
1442 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
1443 | |||
1444 | Some influential environment variables: | ||
1445 | CC C compiler command | ||
1446 | CFLAGS C compiler flags | ||
1447 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1448 | nonstandard directory <lib dir> | ||
1449 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
1450 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | ||
1451 | you have headers in a nonstandard directory <include dir> | ||
1452 | CPP C preprocessor | ||
1453 | |||
1454 | Use these variables to override the choices made by `configure' or to help | ||
1455 | it to find libraries and programs with nonstandard names/locations. | ||
1456 | |||
1457 | Report bugs to <openssh-unix-dev@mindrot.org>. | ||
1458 | _ACEOF | ||
1459 | ac_status=$? | ||
1460 | fi | ||
1461 | |||
1462 | if test "$ac_init_help" = "recursive"; then | ||
1463 | # If there are subdirs, report their specific --help. | ||
1464 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1465 | test -d "$ac_dir" || | ||
1466 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||
1467 | continue | ||
1468 | ac_builddir=. | ||
1469 | |||
1470 | case "$ac_dir" in | ||
1471 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1472 | *) | ||
1473 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
1474 | # A ".." for each directory in $ac_dir_suffix. | ||
1475 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
1476 | case $ac_top_builddir_sub in | ||
1477 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1478 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1479 | esac ;; | ||
1480 | esac | ||
1481 | ac_abs_top_builddir=$ac_pwd | ||
1482 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1483 | # for backward compatibility: | ||
1484 | ac_top_builddir=$ac_top_build_prefix | ||
1485 | |||
1486 | case $srcdir in | ||
1487 | .) # We are building in place. | ||
1488 | ac_srcdir=. | ||
1489 | ac_top_srcdir=$ac_top_builddir_sub | ||
1490 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1491 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1492 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1493 | ac_top_srcdir=$srcdir | ||
1494 | ac_abs_top_srcdir=$srcdir ;; | ||
1495 | *) # Relative name. | ||
1496 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1497 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1498 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1499 | esac | ||
1500 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1501 | |||
1502 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1503 | # Check for guested configure. | ||
1504 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1505 | echo && | ||
1506 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1507 | elif test -f "$ac_srcdir/configure"; then | ||
1508 | echo && | ||
1509 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1510 | else | ||
1511 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1512 | fi || ac_status=$? | ||
1513 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1514 | done | ||
1515 | fi | ||
1516 | |||
1517 | test -n "$ac_init_help" && exit $ac_status | ||
1518 | if $ac_init_version; then | ||
1519 | cat <<\_ACEOF | ||
1520 | OpenSSH configure Portable | ||
1521 | generated by GNU Autoconf 2.68 | ||
1522 | |||
1523 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
1524 | This configure script is free software; the Free Software Foundation | ||
1525 | gives unlimited permission to copy, distribute and modify it. | ||
1526 | _ACEOF | ||
1527 | exit | ||
1528 | fi | ||
1529 | |||
1530 | ## ------------------------ ## | ||
1531 | ## Autoconf initialization. ## | ||
1532 | ## ------------------------ ## | ||
1533 | |||
1534 | # ac_fn_c_try_compile LINENO | ||
1535 | # -------------------------- | ||
1536 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
1537 | ac_fn_c_try_compile () | ||
1538 | { | ||
1539 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1540 | rm -f conftest.$ac_objext | ||
1541 | if { { ac_try="$ac_compile" | ||
1542 | case "(($ac_try" in | ||
1543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1544 | *) ac_try_echo=$ac_try;; | ||
1545 | esac | ||
1546 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1547 | $as_echo "$ac_try_echo"; } >&5 | ||
1548 | (eval "$ac_compile") 2>conftest.err | ||
1549 | ac_status=$? | ||
1550 | if test -s conftest.err; then | ||
1551 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1552 | cat conftest.er1 >&5 | ||
1553 | mv -f conftest.er1 conftest.err | ||
1554 | fi | ||
1555 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1556 | test $ac_status = 0; } && { | ||
1557 | test -z "$ac_c_werror_flag" || | ||
1558 | test ! -s conftest.err | ||
1559 | } && test -s conftest.$ac_objext; then : | ||
1560 | ac_retval=0 | ||
1561 | else | ||
1562 | $as_echo "$as_me: failed program was:" >&5 | ||
1563 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1564 | |||
1565 | ac_retval=1 | ||
1566 | fi | ||
1567 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1568 | as_fn_set_status $ac_retval | ||
1569 | |||
1570 | } # ac_fn_c_try_compile | ||
1571 | |||
1572 | # ac_fn_c_try_run LINENO | ||
1573 | # ---------------------- | ||
1574 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | ||
1575 | # that executables *can* be run. | ||
1576 | ac_fn_c_try_run () | ||
1577 | { | ||
1578 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1579 | if { { ac_try="$ac_link" | ||
1580 | case "(($ac_try" in | ||
1581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1582 | *) ac_try_echo=$ac_try;; | ||
1583 | esac | ||
1584 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1585 | $as_echo "$ac_try_echo"; } >&5 | ||
1586 | (eval "$ac_link") 2>&5 | ||
1587 | ac_status=$? | ||
1588 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1589 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | ||
1590 | { { case "(($ac_try" in | ||
1591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1592 | *) ac_try_echo=$ac_try;; | ||
1593 | esac | ||
1594 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1595 | $as_echo "$ac_try_echo"; } >&5 | ||
1596 | (eval "$ac_try") 2>&5 | ||
1597 | ac_status=$? | ||
1598 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1599 | test $ac_status = 0; }; }; then : | ||
1600 | ac_retval=0 | ||
1601 | else | ||
1602 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
1603 | $as_echo "$as_me: failed program was:" >&5 | ||
1604 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1605 | |||
1606 | ac_retval=$ac_status | ||
1607 | fi | ||
1608 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
1609 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1610 | as_fn_set_status $ac_retval | ||
1611 | |||
1612 | } # ac_fn_c_try_run | ||
1613 | |||
1614 | # ac_fn_c_try_cpp LINENO | ||
1615 | # ---------------------- | ||
1616 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
1617 | ac_fn_c_try_cpp () | ||
1618 | { | ||
1619 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1620 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
1621 | case "(($ac_try" in | ||
1622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1623 | *) ac_try_echo=$ac_try;; | ||
1624 | esac | ||
1625 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1626 | $as_echo "$ac_try_echo"; } >&5 | ||
1627 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
1628 | ac_status=$? | ||
1629 | if test -s conftest.err; then | ||
1630 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1631 | cat conftest.er1 >&5 | ||
1632 | mv -f conftest.er1 conftest.err | ||
1633 | fi | ||
1634 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1635 | test $ac_status = 0; } > conftest.i && { | ||
1636 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
1637 | test ! -s conftest.err | ||
1638 | }; then : | ||
1639 | ac_retval=0 | ||
1640 | else | ||
1641 | $as_echo "$as_me: failed program was:" >&5 | ||
1642 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1643 | |||
1644 | ac_retval=1 | ||
1645 | fi | ||
1646 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1647 | as_fn_set_status $ac_retval | ||
1648 | |||
1649 | } # ac_fn_c_try_cpp | ||
1650 | |||
1651 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | ||
1652 | # ------------------------------------------------------- | ||
1653 | # Tests whether HEADER exists and can be compiled using the include files in | ||
1654 | # INCLUDES, setting the cache variable VAR accordingly. | ||
1655 | ac_fn_c_check_header_compile () | ||
1656 | { | ||
1657 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1659 | $as_echo_n "checking for $2... " >&6; } | ||
1660 | if eval \${$3+:} false; then : | ||
1661 | $as_echo_n "(cached) " >&6 | ||
1662 | else | ||
1663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1664 | /* end confdefs.h. */ | ||
1665 | $4 | ||
1666 | #include <$2> | ||
1667 | _ACEOF | ||
1668 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1669 | eval "$3=yes" | ||
1670 | else | ||
1671 | eval "$3=no" | ||
1672 | fi | ||
1673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1674 | fi | ||
1675 | eval ac_res=\$$3 | ||
1676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1677 | $as_echo "$ac_res" >&6; } | ||
1678 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1679 | |||
1680 | } # ac_fn_c_check_header_compile | ||
1681 | |||
1682 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | ||
1683 | # --------------------------------------------- | ||
1684 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | ||
1685 | # accordingly. | ||
1686 | ac_fn_c_check_decl () | ||
1687 | { | ||
1688 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1689 | as_decl_name=`echo $2|sed 's/ *(.*//'` | ||
1690 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | ||
1691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | ||
1692 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | ||
1693 | if eval \${$3+:} false; then : | ||
1694 | $as_echo_n "(cached) " >&6 | ||
1695 | else | ||
1696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1697 | /* end confdefs.h. */ | ||
1698 | $4 | ||
1699 | int | ||
1700 | main () | ||
1701 | { | ||
1702 | #ifndef $as_decl_name | ||
1703 | #ifdef __cplusplus | ||
1704 | (void) $as_decl_use; | ||
1705 | #else | ||
1706 | (void) $as_decl_name; | ||
1707 | #endif | ||
1708 | #endif | ||
1709 | |||
1710 | ; | ||
1711 | return 0; | ||
1712 | } | ||
1713 | _ACEOF | ||
1714 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1715 | eval "$3=yes" | ||
1716 | else | ||
1717 | eval "$3=no" | ||
1718 | fi | ||
1719 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1720 | fi | ||
1721 | eval ac_res=\$$3 | ||
1722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1723 | $as_echo "$ac_res" >&6; } | ||
1724 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1725 | |||
1726 | } # ac_fn_c_check_decl | ||
1727 | |||
1728 | # ac_fn_c_try_link LINENO | ||
1729 | # ----------------------- | ||
1730 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
1731 | ac_fn_c_try_link () | ||
1732 | { | ||
1733 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1734 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
1735 | if { { ac_try="$ac_link" | ||
1736 | case "(($ac_try" in | ||
1737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1738 | *) ac_try_echo=$ac_try;; | ||
1739 | esac | ||
1740 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1741 | $as_echo "$ac_try_echo"; } >&5 | ||
1742 | (eval "$ac_link") 2>conftest.err | ||
1743 | ac_status=$? | ||
1744 | if test -s conftest.err; then | ||
1745 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1746 | cat conftest.er1 >&5 | ||
1747 | mv -f conftest.er1 conftest.err | ||
1748 | fi | ||
1749 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1750 | test $ac_status = 0; } && { | ||
1751 | test -z "$ac_c_werror_flag" || | ||
1752 | test ! -s conftest.err | ||
1753 | } && test -s conftest$ac_exeext && { | ||
1754 | test "$cross_compiling" = yes || | ||
1755 | $as_test_x conftest$ac_exeext | ||
1756 | }; then : | ||
1757 | ac_retval=0 | ||
1758 | else | ||
1759 | $as_echo "$as_me: failed program was:" >&5 | ||
1760 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1761 | |||
1762 | ac_retval=1 | ||
1763 | fi | ||
1764 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
1765 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
1766 | # interfere with the next link command; also delete a directory that is | ||
1767 | # left behind by Apple's compiler. We do this before executing the actions. | ||
1768 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
1769 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1770 | as_fn_set_status $ac_retval | ||
1771 | |||
1772 | } # ac_fn_c_try_link | ||
1773 | |||
1774 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | ||
1775 | # ------------------------------------------------------- | ||
1776 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | ||
1777 | # the include files in INCLUDES and setting the cache variable VAR | ||
1778 | # accordingly. | ||
1779 | ac_fn_c_check_header_mongrel () | ||
1780 | { | ||
1781 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1782 | if eval \${$3+:} false; then : | ||
1783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1784 | $as_echo_n "checking for $2... " >&6; } | ||
1785 | if eval \${$3+:} false; then : | ||
1786 | $as_echo_n "(cached) " >&6 | ||
1787 | fi | ||
1788 | eval ac_res=\$$3 | ||
1789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1790 | $as_echo "$ac_res" >&6; } | ||
1791 | else | ||
1792 | # Is the header compilable? | ||
1793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||
1794 | $as_echo_n "checking $2 usability... " >&6; } | ||
1795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1796 | /* end confdefs.h. */ | ||
1797 | $4 | ||
1798 | #include <$2> | ||
1799 | _ACEOF | ||
1800 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1801 | ac_header_compiler=yes | ||
1802 | else | ||
1803 | ac_header_compiler=no | ||
1804 | fi | ||
1805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||
1807 | $as_echo "$ac_header_compiler" >&6; } | ||
1808 | |||
1809 | # Is the header present? | ||
1810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||
1811 | $as_echo_n "checking $2 presence... " >&6; } | ||
1812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1813 | /* end confdefs.h. */ | ||
1814 | #include <$2> | ||
1815 | _ACEOF | ||
1816 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
1817 | ac_header_preproc=yes | ||
1818 | else | ||
1819 | ac_header_preproc=no | ||
1820 | fi | ||
1821 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
1822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | ||
1823 | $as_echo "$ac_header_preproc" >&6; } | ||
1824 | |||
1825 | # So? What about this header? | ||
1826 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||
1827 | yes:no: ) | ||
1828 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
1829 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
1830 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
1831 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
1832 | ;; | ||
1833 | no:yes:* ) | ||
1834 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | ||
1835 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||
1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | ||
1837 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | ||
1838 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | ||
1839 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||
1840 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | ||
1841 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | ||
1842 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
1843 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
1844 | ( $as_echo "## ------------------------------------------- ## | ||
1845 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
1846 | ## ------------------------------------------- ##" | ||
1847 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
1848 | ;; | ||
1849 | esac | ||
1850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1851 | $as_echo_n "checking for $2... " >&6; } | ||
1852 | if eval \${$3+:} false; then : | ||
1853 | $as_echo_n "(cached) " >&6 | ||
1854 | else | ||
1855 | eval "$3=\$ac_header_compiler" | ||
1856 | fi | ||
1857 | eval ac_res=\$$3 | ||
1858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1859 | $as_echo "$ac_res" >&6; } | ||
1860 | fi | ||
1861 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1862 | |||
1863 | } # ac_fn_c_check_header_mongrel | ||
1864 | |||
1865 | # ac_fn_c_check_func LINENO FUNC VAR | ||
1866 | # ---------------------------------- | ||
1867 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | ||
1868 | ac_fn_c_check_func () | ||
1869 | { | ||
1870 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1872 | $as_echo_n "checking for $2... " >&6; } | ||
1873 | if eval \${$3+:} false; then : | ||
1874 | $as_echo_n "(cached) " >&6 | ||
1875 | else | ||
1876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1877 | /* end confdefs.h. */ | ||
1878 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||
1879 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
1880 | #define $2 innocuous_$2 | ||
1881 | |||
1882 | /* System header to define __stub macros and hopefully few prototypes, | ||
1883 | which can conflict with char $2 (); below. | ||
1884 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
1885 | <limits.h> exists even on freestanding compilers. */ | ||
1886 | |||
1887 | #ifdef __STDC__ | ||
1888 | # include <limits.h> | ||
1889 | #else | ||
1890 | # include <assert.h> | ||
1891 | #endif | ||
1892 | |||
1893 | #undef $2 | ||
1894 | |||
1895 | /* Override any GCC internal prototype to avoid an error. | ||
1896 | Use char because int might match the return type of a GCC | ||
1897 | builtin and then its argument prototype would still apply. */ | ||
1898 | #ifdef __cplusplus | ||
1899 | extern "C" | ||
1900 | #endif | ||
1901 | char $2 (); | ||
1902 | /* The GNU C library defines this for functions which it implements | ||
1903 | to always fail with ENOSYS. Some functions are actually named | ||
1904 | something starting with __ and the normal name is an alias. */ | ||
1905 | #if defined __stub_$2 || defined __stub___$2 | ||
1906 | choke me | ||
1907 | #endif | ||
1908 | |||
1909 | int | ||
1910 | main () | ||
1911 | { | ||
1912 | return $2 (); | ||
1913 | ; | ||
1914 | return 0; | ||
1915 | } | ||
1916 | _ACEOF | ||
1917 | if ac_fn_c_try_link "$LINENO"; then : | ||
1918 | eval "$3=yes" | ||
1919 | else | ||
1920 | eval "$3=no" | ||
1921 | fi | ||
1922 | rm -f core conftest.err conftest.$ac_objext \ | ||
1923 | conftest$ac_exeext conftest.$ac_ext | ||
1924 | fi | ||
1925 | eval ac_res=\$$3 | ||
1926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1927 | $as_echo "$ac_res" >&6; } | ||
1928 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1929 | |||
1930 | } # ac_fn_c_check_func | ||
1931 | |||
1932 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | ||
1933 | # ------------------------------------------- | ||
1934 | # Tests whether TYPE exists after having included INCLUDES, setting cache | ||
1935 | # variable VAR accordingly. | ||
1936 | ac_fn_c_check_type () | ||
1937 | { | ||
1938 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1940 | $as_echo_n "checking for $2... " >&6; } | ||
1941 | if eval \${$3+:} false; then : | ||
1942 | $as_echo_n "(cached) " >&6 | ||
1943 | else | ||
1944 | eval "$3=no" | ||
1945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1946 | /* end confdefs.h. */ | ||
1947 | $4 | ||
1948 | int | ||
1949 | main () | ||
1950 | { | ||
1951 | if (sizeof ($2)) | ||
1952 | return 0; | ||
1953 | ; | ||
1954 | return 0; | ||
1955 | } | ||
1956 | _ACEOF | ||
1957 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1959 | /* end confdefs.h. */ | ||
1960 | $4 | ||
1961 | int | ||
1962 | main () | ||
1963 | { | ||
1964 | if (sizeof (($2))) | ||
1965 | return 0; | ||
1966 | ; | ||
1967 | return 0; | ||
1968 | } | ||
1969 | _ACEOF | ||
1970 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1971 | |||
1972 | else | ||
1973 | eval "$3=yes" | ||
1974 | fi | ||
1975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1976 | fi | ||
1977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1978 | fi | ||
1979 | eval ac_res=\$$3 | ||
1980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1981 | $as_echo "$ac_res" >&6; } | ||
1982 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1983 | |||
1984 | } # ac_fn_c_check_type | ||
1985 | |||
1986 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | ||
1987 | # -------------------------------------------- | ||
1988 | # Tries to find the compile-time value of EXPR in a program that includes | ||
1989 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | ||
1990 | # computed | ||
1991 | ac_fn_c_compute_int () | ||
1992 | { | ||
1993 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1994 | if test "$cross_compiling" = yes; then | ||
1995 | # Depending upon the size, compute the lo and hi bounds. | ||
1996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1997 | /* end confdefs.h. */ | ||
1998 | $4 | ||
1999 | int | ||
2000 | main () | ||
2001 | { | ||
2002 | static int test_array [1 - 2 * !(($2) >= 0)]; | ||
2003 | test_array [0] = 0 | ||
2004 | |||
2005 | ; | ||
2006 | return 0; | ||
2007 | } | ||
2008 | _ACEOF | ||
2009 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2010 | ac_lo=0 ac_mid=0 | ||
2011 | while :; do | ||
2012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2013 | /* end confdefs.h. */ | ||
2014 | $4 | ||
2015 | int | ||
2016 | main () | ||
2017 | { | ||
2018 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
2019 | test_array [0] = 0 | ||
2020 | |||
2021 | ; | ||
2022 | return 0; | ||
2023 | } | ||
2024 | _ACEOF | ||
2025 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2026 | ac_hi=$ac_mid; break | ||
2027 | else | ||
2028 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | ||
2029 | if test $ac_lo -le $ac_mid; then | ||
2030 | ac_lo= ac_hi= | ||
2031 | break | ||
2032 | fi | ||
2033 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | ||
2034 | fi | ||
2035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2036 | done | ||
2037 | else | ||
2038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2039 | /* end confdefs.h. */ | ||
2040 | $4 | ||
2041 | int | ||
2042 | main () | ||
2043 | { | ||
2044 | static int test_array [1 - 2 * !(($2) < 0)]; | ||
2045 | test_array [0] = 0 | ||
2046 | |||
2047 | ; | ||
2048 | return 0; | ||
2049 | } | ||
2050 | _ACEOF | ||
2051 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2052 | ac_hi=-1 ac_mid=-1 | ||
2053 | while :; do | ||
2054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2055 | /* end confdefs.h. */ | ||
2056 | $4 | ||
2057 | int | ||
2058 | main () | ||
2059 | { | ||
2060 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | ||
2061 | test_array [0] = 0 | ||
2062 | |||
2063 | ; | ||
2064 | return 0; | ||
2065 | } | ||
2066 | _ACEOF | ||
2067 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2068 | ac_lo=$ac_mid; break | ||
2069 | else | ||
2070 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | ||
2071 | if test $ac_mid -le $ac_hi; then | ||
2072 | ac_lo= ac_hi= | ||
2073 | break | ||
2074 | fi | ||
2075 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | ||
2076 | fi | ||
2077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2078 | done | ||
2079 | else | ||
2080 | ac_lo= ac_hi= | ||
2081 | fi | ||
2082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2083 | fi | ||
2084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2085 | # Binary search between lo and hi bounds. | ||
2086 | while test "x$ac_lo" != "x$ac_hi"; do | ||
2087 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | ||
2088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2089 | /* end confdefs.h. */ | ||
2090 | $4 | ||
2091 | int | ||
2092 | main () | ||
2093 | { | ||
2094 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
2095 | test_array [0] = 0 | ||
2096 | |||
2097 | ; | ||
2098 | return 0; | ||
2099 | } | ||
2100 | _ACEOF | ||
2101 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2102 | ac_hi=$ac_mid | ||
2103 | else | ||
2104 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | ||
2105 | fi | ||
2106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2107 | done | ||
2108 | case $ac_lo in #(( | ||
2109 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | ||
2110 | '') ac_retval=1 ;; | ||
2111 | esac | ||
2112 | else | ||
2113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2114 | /* end confdefs.h. */ | ||
2115 | $4 | ||
2116 | static long int longval () { return $2; } | ||
2117 | static unsigned long int ulongval () { return $2; } | ||
2118 | #include <stdio.h> | ||
2119 | #include <stdlib.h> | ||
2120 | int | ||
2121 | main () | ||
2122 | { | ||
2123 | |||
2124 | FILE *f = fopen ("conftest.val", "w"); | ||
2125 | if (! f) | ||
2126 | return 1; | ||
2127 | if (($2) < 0) | ||
2128 | { | ||
2129 | long int i = longval (); | ||
2130 | if (i != ($2)) | ||
2131 | return 1; | ||
2132 | fprintf (f, "%ld", i); | ||
2133 | } | ||
2134 | else | ||
2135 | { | ||
2136 | unsigned long int i = ulongval (); | ||
2137 | if (i != ($2)) | ||
2138 | return 1; | ||
2139 | fprintf (f, "%lu", i); | ||
2140 | } | ||
2141 | /* Do not output a trailing newline, as this causes \r\n confusion | ||
2142 | on some platforms. */ | ||
2143 | return ferror (f) || fclose (f) != 0; | ||
2144 | |||
2145 | ; | ||
2146 | return 0; | ||
2147 | } | ||
2148 | _ACEOF | ||
2149 | if ac_fn_c_try_run "$LINENO"; then : | ||
2150 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | ||
2151 | else | ||
2152 | ac_retval=1 | ||
2153 | fi | ||
2154 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
2155 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
2156 | rm -f conftest.val | ||
2157 | |||
2158 | fi | ||
2159 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
2160 | as_fn_set_status $ac_retval | ||
2161 | |||
2162 | } # ac_fn_c_compute_int | ||
2163 | |||
2164 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | ||
2165 | # ---------------------------------------------------- | ||
2166 | # Tries to find if the field MEMBER exists in type AGGR, after including | ||
2167 | # INCLUDES, setting cache variable VAR accordingly. | ||
2168 | ac_fn_c_check_member () | ||
2169 | { | ||
2170 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | ||
2172 | $as_echo_n "checking for $2.$3... " >&6; } | ||
2173 | if eval \${$4+:} false; then : | ||
2174 | $as_echo_n "(cached) " >&6 | ||
2175 | else | ||
2176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2177 | /* end confdefs.h. */ | ||
2178 | $5 | ||
2179 | int | ||
2180 | main () | ||
2181 | { | ||
2182 | static $2 ac_aggr; | ||
2183 | if (ac_aggr.$3) | ||
2184 | return 0; | ||
2185 | ; | ||
2186 | return 0; | ||
2187 | } | ||
2188 | _ACEOF | ||
2189 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2190 | eval "$4=yes" | ||
2191 | else | ||
2192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2193 | /* end confdefs.h. */ | ||
2194 | $5 | ||
2195 | int | ||
2196 | main () | ||
2197 | { | ||
2198 | static $2 ac_aggr; | ||
2199 | if (sizeof ac_aggr.$3) | ||
2200 | return 0; | ||
2201 | ; | ||
2202 | return 0; | ||
2203 | } | ||
2204 | _ACEOF | ||
2205 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2206 | eval "$4=yes" | ||
2207 | else | ||
2208 | eval "$4=no" | ||
2209 | fi | ||
2210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2211 | fi | ||
2212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2213 | fi | ||
2214 | eval ac_res=\$$4 | ||
2215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2216 | $as_echo "$ac_res" >&6; } | ||
2217 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
2218 | |||
2219 | } # ac_fn_c_check_member | ||
2220 | cat >config.log <<_ACEOF | ||
2221 | This file contains any messages produced by compilers while | ||
2222 | running configure, to aid debugging if configure makes a mistake. | ||
2223 | |||
2224 | It was created by OpenSSH $as_me Portable, which was | ||
2225 | generated by GNU Autoconf 2.68. Invocation command line was | ||
2226 | |||
2227 | $ $0 $@ | ||
2228 | |||
2229 | _ACEOF | ||
2230 | exec 5>>config.log | ||
2231 | { | ||
2232 | cat <<_ASUNAME | ||
2233 | ## --------- ## | ||
2234 | ## Platform. ## | ||
2235 | ## --------- ## | ||
2236 | |||
2237 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
2238 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
2239 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
2240 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
2241 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
2242 | |||
2243 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
2244 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
2245 | |||
2246 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
2247 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
2248 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
2249 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
2250 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
2251 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
2252 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
2253 | |||
2254 | _ASUNAME | ||
2255 | |||
2256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2257 | for as_dir in $PATH | ||
2258 | do | ||
2259 | IFS=$as_save_IFS | ||
2260 | test -z "$as_dir" && as_dir=. | ||
2261 | $as_echo "PATH: $as_dir" | ||
2262 | done | ||
2263 | IFS=$as_save_IFS | ||
2264 | |||
2265 | } >&5 | ||
2266 | |||
2267 | cat >&5 <<_ACEOF | ||
2268 | |||
2269 | |||
2270 | ## ----------- ## | ||
2271 | ## Core tests. ## | ||
2272 | ## ----------- ## | ||
2273 | |||
2274 | _ACEOF | ||
2275 | |||
2276 | |||
2277 | # Keep a trace of the command line. | ||
2278 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
2279 | # Strip out --silent because we don't want to record it for future runs. | ||
2280 | # Also quote any args containing shell meta-characters. | ||
2281 | # Make two passes to allow for proper duplicate-argument suppression. | ||
2282 | ac_configure_args= | ||
2283 | ac_configure_args0= | ||
2284 | ac_configure_args1= | ||
2285 | ac_must_keep_next=false | ||
2286 | for ac_pass in 1 2 | ||
2287 | do | ||
2288 | for ac_arg | ||
2289 | do | ||
2290 | case $ac_arg in | ||
2291 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
2292 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
2293 | | -silent | --silent | --silen | --sile | --sil) | ||
2294 | continue ;; | ||
2295 | *\'*) | ||
2296 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2297 | esac | ||
2298 | case $ac_pass in | ||
2299 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | ||
2300 | 2) | ||
2301 | as_fn_append ac_configure_args1 " '$ac_arg'" | ||
2302 | if test $ac_must_keep_next = true; then | ||
2303 | ac_must_keep_next=false # Got value, back to normal. | ||
2304 | else | ||
2305 | case $ac_arg in | ||
2306 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
2307 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
2308 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
2309 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
2310 | case "$ac_configure_args0 " in | ||
2311 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
2312 | esac | ||
2313 | ;; | ||
2314 | -* ) ac_must_keep_next=true ;; | ||
2315 | esac | ||
2316 | fi | ||
2317 | as_fn_append ac_configure_args " '$ac_arg'" | ||
2318 | ;; | ||
2319 | esac | ||
2320 | done | ||
2321 | done | ||
2322 | { ac_configure_args0=; unset ac_configure_args0;} | ||
2323 | { ac_configure_args1=; unset ac_configure_args1;} | ||
2324 | |||
2325 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
2326 | # config.log. We remove comments because anyway the quotes in there | ||
2327 | # would cause problems or look ugly. | ||
2328 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
2329 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
2330 | trap 'exit_status=$? | ||
2331 | # Save into config.log some information that might help in debugging. | ||
2332 | { | ||
2333 | echo | ||
2334 | |||
2335 | $as_echo "## ---------------- ## | ||
2336 | ## Cache variables. ## | ||
2337 | ## ---------------- ##" | ||
2338 | echo | ||
2339 | # The following way of writing the cache mishandles newlines in values, | ||
2340 | ( | ||
2341 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
2342 | eval ac_val=\$$ac_var | ||
2343 | case $ac_val in #( | ||
2344 | *${as_nl}*) | ||
2345 | case $ac_var in #( | ||
2346 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
2347 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
2348 | esac | ||
2349 | case $ac_var in #( | ||
2350 | _ | IFS | as_nl) ;; #( | ||
2351 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
2352 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
2353 | esac ;; | ||
2354 | esac | ||
2355 | done | ||
2356 | (set) 2>&1 | | ||
2357 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
2358 | *${as_nl}ac_space=\ *) | ||
2359 | sed -n \ | ||
2360 | "s/'\''/'\''\\\\'\'''\''/g; | ||
2361 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
2362 | ;; #( | ||
2363 | *) | ||
2364 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
2365 | ;; | ||
2366 | esac | | ||
2367 | sort | ||
2368 | ) | ||
2369 | echo | ||
2370 | |||
2371 | $as_echo "## ----------------- ## | ||
2372 | ## Output variables. ## | ||
2373 | ## ----------------- ##" | ||
2374 | echo | ||
2375 | for ac_var in $ac_subst_vars | ||
2376 | do | ||
2377 | eval ac_val=\$$ac_var | ||
2378 | case $ac_val in | ||
2379 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2380 | esac | ||
2381 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2382 | done | sort | ||
2383 | echo | ||
2384 | |||
2385 | if test -n "$ac_subst_files"; then | ||
2386 | $as_echo "## ------------------- ## | ||
2387 | ## File substitutions. ## | ||
2388 | ## ------------------- ##" | ||
2389 | echo | ||
2390 | for ac_var in $ac_subst_files | ||
2391 | do | ||
2392 | eval ac_val=\$$ac_var | ||
2393 | case $ac_val in | ||
2394 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2395 | esac | ||
2396 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2397 | done | sort | ||
2398 | echo | ||
2399 | fi | ||
2400 | |||
2401 | if test -s confdefs.h; then | ||
2402 | $as_echo "## ----------- ## | ||
2403 | ## confdefs.h. ## | ||
2404 | ## ----------- ##" | ||
2405 | echo | ||
2406 | cat confdefs.h | ||
2407 | echo | ||
2408 | fi | ||
2409 | test "$ac_signal" != 0 && | ||
2410 | $as_echo "$as_me: caught signal $ac_signal" | ||
2411 | $as_echo "$as_me: exit $exit_status" | ||
2412 | } >&5 | ||
2413 | rm -f core *.core core.conftest.* && | ||
2414 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
2415 | exit $exit_status | ||
2416 | ' 0 | ||
2417 | for ac_signal in 1 2 13 15; do | ||
2418 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | ||
2419 | done | ||
2420 | ac_signal=0 | ||
2421 | |||
2422 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
2423 | rm -f -r conftest* confdefs.h | ||
2424 | |||
2425 | $as_echo "/* confdefs.h */" > confdefs.h | ||
2426 | |||
2427 | # Predefined preprocessor variables. | ||
2428 | |||
2429 | cat >>confdefs.h <<_ACEOF | ||
2430 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
2431 | _ACEOF | ||
2432 | |||
2433 | cat >>confdefs.h <<_ACEOF | ||
2434 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
2435 | _ACEOF | ||
2436 | |||
2437 | cat >>confdefs.h <<_ACEOF | ||
2438 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
2439 | _ACEOF | ||
2440 | |||
2441 | cat >>confdefs.h <<_ACEOF | ||
2442 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
2443 | _ACEOF | ||
2444 | |||
2445 | cat >>confdefs.h <<_ACEOF | ||
2446 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
2447 | _ACEOF | ||
2448 | |||
2449 | cat >>confdefs.h <<_ACEOF | ||
2450 | #define PACKAGE_URL "$PACKAGE_URL" | ||
2451 | _ACEOF | ||
2452 | |||
2453 | |||
2454 | # Let the site file select an alternate cache file if it wants to. | ||
2455 | # Prefer an explicitly selected file to automatically selected ones. | ||
2456 | ac_site_file1=NONE | ||
2457 | ac_site_file2=NONE | ||
2458 | if test -n "$CONFIG_SITE"; then | ||
2459 | # We do not want a PATH search for config.site. | ||
2460 | case $CONFIG_SITE in #(( | ||
2461 | -*) ac_site_file1=./$CONFIG_SITE;; | ||
2462 | */*) ac_site_file1=$CONFIG_SITE;; | ||
2463 | *) ac_site_file1=./$CONFIG_SITE;; | ||
2464 | esac | ||
2465 | elif test "x$prefix" != xNONE; then | ||
2466 | ac_site_file1=$prefix/share/config.site | ||
2467 | ac_site_file2=$prefix/etc/config.site | ||
2468 | else | ||
2469 | ac_site_file1=$ac_default_prefix/share/config.site | ||
2470 | ac_site_file2=$ac_default_prefix/etc/config.site | ||
2471 | fi | ||
2472 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | ||
2473 | do | ||
2474 | test "x$ac_site_file" = xNONE && continue | ||
2475 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||
2476 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | ||
2477 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||
2478 | sed 's/^/| /' "$ac_site_file" >&5 | ||
2479 | . "$ac_site_file" \ | ||
2480 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2481 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2482 | as_fn_error $? "failed to load site script $ac_site_file | ||
2483 | See \`config.log' for more details" "$LINENO" 5; } | ||
2484 | fi | ||
2485 | done | ||
2486 | |||
2487 | if test -r "$cache_file"; then | ||
2488 | # Some versions of bash will fail to source /dev/null (special files | ||
2489 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | ||
2490 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | ||
2491 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | ||
2492 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||
2493 | case $cache_file in | ||
2494 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
2495 | *) . "./$cache_file";; | ||
2496 | esac | ||
2497 | fi | ||
2498 | else | ||
2499 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | ||
2500 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||
2501 | >$cache_file | ||
2502 | fi | ||
2503 | |||
2504 | # Check that the precious variables saved in the cache have kept the same | ||
2505 | # value. | ||
2506 | ac_cache_corrupted=false | ||
2507 | for ac_var in $ac_precious_vars; do | ||
2508 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
2509 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
2510 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
2511 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
2512 | case $ac_old_set,$ac_new_set in | ||
2513 | set,) | ||
2514 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
2515 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
2516 | ac_cache_corrupted=: ;; | ||
2517 | ,set) | ||
2518 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | ||
2519 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
2520 | ac_cache_corrupted=: ;; | ||
2521 | ,);; | ||
2522 | *) | ||
2523 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
2524 | # differences in whitespace do not lead to failure. | ||
2525 | ac_old_val_w=`echo x $ac_old_val` | ||
2526 | ac_new_val_w=`echo x $ac_new_val` | ||
2527 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||
2528 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | ||
2529 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
2530 | ac_cache_corrupted=: | ||
2531 | else | ||
2532 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | ||
2533 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||
2534 | eval $ac_var=\$ac_old_val | ||
2535 | fi | ||
2536 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | ||
2537 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||
2538 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | ||
2539 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||
2540 | fi;; | ||
2541 | esac | ||
2542 | # Pass precious variables to config.status. | ||
2543 | if test "$ac_new_set" = set; then | ||
2544 | case $ac_new_val in | ||
2545 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2546 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
2547 | esac | ||
2548 | case " $ac_configure_args " in | ||
2549 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
2550 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | ||
2551 | esac | ||
2552 | fi | ||
2553 | done | ||
2554 | if $ac_cache_corrupted; then | ||
2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2556 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2557 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | ||
2558 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
2559 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | ||
2560 | fi | ||
2561 | ## -------------------- ## | ||
2562 | ## Main body of script. ## | ||
2563 | ## -------------------- ## | ||
2564 | |||
2565 | ac_ext=c | ||
2566 | ac_cpp='$CPP $CPPFLAGS' | ||
2567 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2568 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2569 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2570 | |||
2571 | |||
2572 | |||
2573 | |||
2574 | ac_ext=c | ||
2575 | ac_cpp='$CPP $CPPFLAGS' | ||
2576 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2577 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2578 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2579 | |||
2580 | |||
2581 | ac_config_headers="$ac_config_headers config.h" | ||
2582 | |||
2583 | ac_ext=c | ||
2584 | ac_cpp='$CPP $CPPFLAGS' | ||
2585 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2586 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2587 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2588 | if test -n "$ac_tool_prefix"; then | ||
2589 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
2590 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
2591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2592 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2593 | if ${ac_cv_prog_CC+:} false; then : | ||
2594 | $as_echo_n "(cached) " >&6 | ||
2595 | else | ||
2596 | if test -n "$CC"; then | ||
2597 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2598 | else | ||
2599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2600 | for as_dir in $PATH | ||
2601 | do | ||
2602 | IFS=$as_save_IFS | ||
2603 | test -z "$as_dir" && as_dir=. | ||
2604 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2605 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2606 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
2607 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2608 | break 2 | ||
2609 | fi | ||
2610 | done | ||
2611 | done | ||
2612 | IFS=$as_save_IFS | ||
2613 | |||
2614 | fi | ||
2615 | fi | ||
2616 | CC=$ac_cv_prog_CC | ||
2617 | if test -n "$CC"; then | ||
2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2619 | $as_echo "$CC" >&6; } | ||
2620 | else | ||
2621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2622 | $as_echo "no" >&6; } | ||
2623 | fi | ||
2624 | |||
2625 | |||
2626 | fi | ||
2627 | if test -z "$ac_cv_prog_CC"; then | ||
2628 | ac_ct_CC=$CC | ||
2629 | # Extract the first word of "gcc", so it can be a program name with args. | ||
2630 | set dummy 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_ac_ct_CC+:} false; then : | ||
2634 | $as_echo_n "(cached) " >&6 | ||
2635 | else | ||
2636 | if test -n "$ac_ct_CC"; then | ||
2637 | ac_cv_prog_ac_ct_CC="$ac_ct_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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2646 | ac_cv_prog_ac_ct_CC="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 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2657 | if test -n "$ac_ct_CC"; then | ||
2658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
2659 | $as_echo "$ac_ct_CC" >&6; } | ||
2660 | else | ||
2661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2662 | $as_echo "no" >&6; } | ||
2663 | fi | ||
2664 | |||
2665 | if test "x$ac_ct_CC" = x; then | ||
2666 | CC="" | ||
2667 | else | ||
2668 | case $cross_compiling:$ac_tool_warned in | ||
2669 | yes:) | ||
2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
2671 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
2672 | ac_tool_warned=yes ;; | ||
2673 | esac | ||
2674 | CC=$ac_ct_CC | ||
2675 | fi | ||
2676 | else | ||
2677 | CC="$ac_cv_prog_CC" | ||
2678 | fi | ||
2679 | |||
2680 | if test -z "$CC"; then | ||
2681 | if test -n "$ac_tool_prefix"; then | ||
2682 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
2683 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
2684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2685 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2686 | if ${ac_cv_prog_CC+:} false; then : | ||
2687 | $as_echo_n "(cached) " >&6 | ||
2688 | else | ||
2689 | if test -n "$CC"; then | ||
2690 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2691 | else | ||
2692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2693 | for as_dir in $PATH | ||
2694 | do | ||
2695 | IFS=$as_save_IFS | ||
2696 | test -z "$as_dir" && as_dir=. | ||
2697 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2698 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2699 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
2700 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2701 | break 2 | ||
2702 | fi | ||
2703 | done | ||
2704 | done | ||
2705 | IFS=$as_save_IFS | ||
2706 | |||
2707 | fi | ||
2708 | fi | ||
2709 | CC=$ac_cv_prog_CC | ||
2710 | if test -n "$CC"; then | ||
2711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2712 | $as_echo "$CC" >&6; } | ||
2713 | else | ||
2714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2715 | $as_echo "no" >&6; } | ||
2716 | fi | ||
2717 | |||
2718 | |||
2719 | fi | ||
2720 | fi | ||
2721 | if test -z "$CC"; then | ||
2722 | # Extract the first word of "cc", so it can be a program name with args. | ||
2723 | set dummy 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 | ac_prog_rejected=no | ||
2733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2734 | for as_dir in $PATH | ||
2735 | do | ||
2736 | IFS=$as_save_IFS | ||
2737 | test -z "$as_dir" && as_dir=. | ||
2738 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2739 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2740 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
2741 | ac_prog_rejected=yes | ||
2742 | continue | ||
2743 | fi | ||
2744 | ac_cv_prog_CC="cc" | ||
2745 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2746 | break 2 | ||
2747 | fi | ||
2748 | done | ||
2749 | done | ||
2750 | IFS=$as_save_IFS | ||
2751 | |||
2752 | if test $ac_prog_rejected = yes; then | ||
2753 | # We found a bogon in the path, so make sure we never use it. | ||
2754 | set dummy $ac_cv_prog_CC | ||
2755 | shift | ||
2756 | if test $# != 0; then | ||
2757 | # We chose a different compiler from the bogus one. | ||
2758 | # However, it has the same basename, so the bogon will be chosen | ||
2759 | # first if we set CC to just the basename; use the full file name. | ||
2760 | shift | ||
2761 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
2762 | fi | ||
2763 | fi | ||
2764 | fi | ||
2765 | fi | ||
2766 | CC=$ac_cv_prog_CC | ||
2767 | if test -n "$CC"; then | ||
2768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2769 | $as_echo "$CC" >&6; } | ||
2770 | else | ||
2771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2772 | $as_echo "no" >&6; } | ||
2773 | fi | ||
2774 | |||
2775 | |||
2776 | fi | ||
2777 | if test -z "$CC"; then | ||
2778 | if test -n "$ac_tool_prefix"; then | ||
2779 | for ac_prog in cl.exe | ||
2780 | do | ||
2781 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
2782 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
2783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2784 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2785 | if ${ac_cv_prog_CC+:} false; then : | ||
2786 | $as_echo_n "(cached) " >&6 | ||
2787 | else | ||
2788 | if test -n "$CC"; then | ||
2789 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2790 | else | ||
2791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2792 | for as_dir in $PATH | ||
2793 | do | ||
2794 | IFS=$as_save_IFS | ||
2795 | test -z "$as_dir" && as_dir=. | ||
2796 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2797 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2798 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
2799 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2800 | break 2 | ||
2801 | fi | ||
2802 | done | ||
2803 | done | ||
2804 | IFS=$as_save_IFS | ||
2805 | |||
2806 | fi | ||
2807 | fi | ||
2808 | CC=$ac_cv_prog_CC | ||
2809 | if test -n "$CC"; then | ||
2810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2811 | $as_echo "$CC" >&6; } | ||
2812 | else | ||
2813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2814 | $as_echo "no" >&6; } | ||
2815 | fi | ||
2816 | |||
2817 | |||
2818 | test -n "$CC" && break | ||
2819 | done | ||
2820 | fi | ||
2821 | if test -z "$CC"; then | ||
2822 | ac_ct_CC=$CC | ||
2823 | for ac_prog in cl.exe | ||
2824 | do | ||
2825 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2826 | set dummy $ac_prog; ac_word=$2 | ||
2827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2828 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2829 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | ||
2830 | $as_echo_n "(cached) " >&6 | ||
2831 | else | ||
2832 | if test -n "$ac_ct_CC"; then | ||
2833 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2834 | else | ||
2835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2836 | for as_dir in $PATH | ||
2837 | do | ||
2838 | IFS=$as_save_IFS | ||
2839 | test -z "$as_dir" && as_dir=. | ||
2840 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2841 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2842 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
2843 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2844 | break 2 | ||
2845 | fi | ||
2846 | done | ||
2847 | done | ||
2848 | IFS=$as_save_IFS | ||
2849 | |||
2850 | fi | ||
2851 | fi | ||
2852 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2853 | if test -n "$ac_ct_CC"; then | ||
2854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
2855 | $as_echo "$ac_ct_CC" >&6; } | ||
2856 | else | ||
2857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2858 | $as_echo "no" >&6; } | ||
2859 | fi | ||
2860 | |||
2861 | |||
2862 | test -n "$ac_ct_CC" && break | ||
2863 | done | ||
2864 | |||
2865 | if test "x$ac_ct_CC" = x; then | ||
2866 | CC="" | ||
2867 | else | ||
2868 | case $cross_compiling:$ac_tool_warned in | ||
2869 | yes:) | ||
2870 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
2871 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
2872 | ac_tool_warned=yes ;; | ||
2873 | esac | ||
2874 | CC=$ac_ct_CC | ||
2875 | fi | ||
2876 | fi | ||
2877 | |||
2878 | fi | ||
2879 | |||
2880 | |||
2881 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2882 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2883 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
2884 | See \`config.log' for more details" "$LINENO" 5; } | ||
2885 | |||
2886 | # Provide some information about the compiler. | ||
2887 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
2888 | set X $ac_compile | ||
2889 | ac_compiler=$2 | ||
2890 | for ac_option in --version -v -V -qversion; do | ||
2891 | { { ac_try="$ac_compiler $ac_option >&5" | ||
2892 | case "(($ac_try" in | ||
2893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2894 | *) ac_try_echo=$ac_try;; | ||
2895 | esac | ||
2896 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2897 | $as_echo "$ac_try_echo"; } >&5 | ||
2898 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
2899 | ac_status=$? | ||
2900 | if test -s conftest.err; then | ||
2901 | sed '10a\ | ||
2902 | ... rest of stderr output deleted ... | ||
2903 | 10q' conftest.err >conftest.er1 | ||
2904 | cat conftest.er1 >&5 | ||
2905 | fi | ||
2906 | rm -f conftest.er1 conftest.err | ||
2907 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2908 | test $ac_status = 0; } | ||
2909 | done | ||
2910 | |||
2911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2912 | /* end confdefs.h. */ | ||
2913 | |||
2914 | int | ||
2915 | main () | ||
2916 | { | ||
2917 | |||
2918 | ; | ||
2919 | return 0; | ||
2920 | } | ||
2921 | _ACEOF | ||
2922 | ac_clean_files_save=$ac_clean_files | ||
2923 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | ||
2924 | # Try to create an executable without -o first, disregard a.out. | ||
2925 | # It will help us diagnose broken compilers, and finding out an intuition | ||
2926 | # of exeext. | ||
2927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | ||
2928 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||
2929 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
2930 | |||
2931 | # The possible output files: | ||
2932 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||
2933 | |||
2934 | ac_rmfiles= | ||
2935 | for ac_file in $ac_files | ||
2936 | do | ||
2937 | case $ac_file in | ||
2938 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
2939 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
2940 | esac | ||
2941 | done | ||
2942 | rm -f $ac_rmfiles | ||
2943 | |||
2944 | if { { ac_try="$ac_link_default" | ||
2945 | case "(($ac_try" in | ||
2946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2947 | *) ac_try_echo=$ac_try;; | ||
2948 | esac | ||
2949 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2950 | $as_echo "$ac_try_echo"; } >&5 | ||
2951 | (eval "$ac_link_default") 2>&5 | ||
2952 | ac_status=$? | ||
2953 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2954 | test $ac_status = 0; }; then : | ||
2955 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
2956 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
2957 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
2958 | # so that the user can short-circuit this test for compilers unknown to | ||
2959 | # Autoconf. | ||
2960 | for ac_file in $ac_files '' | ||
2961 | do | ||
2962 | test -f "$ac_file" || continue | ||
2963 | case $ac_file in | ||
2964 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | ||
2965 | ;; | ||
2966 | [ab].out ) | ||
2967 | # We found the default executable, but exeext='' is most | ||
2968 | # certainly right. | ||
2969 | break;; | ||
2970 | *.* ) | ||
2971 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
2972 | then :; else | ||
2973 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2974 | fi | ||
2975 | # We set ac_cv_exeext here because the later test for it is not | ||
2976 | # safe: cross compilers may not add the suffix if given an `-o' | ||
2977 | # argument, so we may need to know it at that point already. | ||
2978 | # Even if this section looks crufty: it has the advantage of | ||
2979 | # actually working. | ||
2980 | break;; | ||
2981 | * ) | ||
2982 | break;; | ||
2983 | esac | ||
2984 | done | ||
2985 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
2986 | |||
2987 | else | ||
2988 | ac_file='' | ||
2989 | fi | ||
2990 | if test -z "$ac_file"; then : | ||
2991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2992 | $as_echo "no" >&6; } | ||
2993 | $as_echo "$as_me: failed program was:" >&5 | ||
2994 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2995 | |||
2996 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2997 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2998 | as_fn_error 77 "C compiler cannot create executables | ||
2999 | See \`config.log' for more details" "$LINENO" 5; } | ||
3000 | else | ||
3001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
3002 | $as_echo "yes" >&6; } | ||
3003 | fi | ||
3004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | ||
3005 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||
3006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||
3007 | $as_echo "$ac_file" >&6; } | ||
3008 | ac_exeext=$ac_cv_exeext | ||
3009 | |||
3010 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | ||
3011 | ac_clean_files=$ac_clean_files_save | ||
3012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | ||
3013 | $as_echo_n "checking for suffix of executables... " >&6; } | ||
3014 | if { { ac_try="$ac_link" | ||
3015 | case "(($ac_try" in | ||
3016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3017 | *) ac_try_echo=$ac_try;; | ||
3018 | esac | ||
3019 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3020 | $as_echo "$ac_try_echo"; } >&5 | ||
3021 | (eval "$ac_link") 2>&5 | ||
3022 | ac_status=$? | ||
3023 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3024 | test $ac_status = 0; }; then : | ||
3025 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
3026 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
3027 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
3028 | # `rm'. | ||
3029 | for ac_file in conftest.exe conftest conftest.*; do | ||
3030 | test -f "$ac_file" || continue | ||
3031 | case $ac_file in | ||
3032 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
3033 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
3034 | break;; | ||
3035 | * ) break;; | ||
3036 | esac | ||
3037 | done | ||
3038 | else | ||
3039 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3040 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3041 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | ||
3042 | See \`config.log' for more details" "$LINENO" 5; } | ||
3043 | fi | ||
3044 | rm -f conftest conftest$ac_cv_exeext | ||
3045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | ||
3046 | $as_echo "$ac_cv_exeext" >&6; } | ||
3047 | |||
3048 | rm -f conftest.$ac_ext | ||
3049 | EXEEXT=$ac_cv_exeext | ||
3050 | ac_exeext=$EXEEXT | ||
3051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3052 | /* end confdefs.h. */ | ||
3053 | #include <stdio.h> | ||
3054 | int | ||
3055 | main () | ||
3056 | { | ||
3057 | FILE *f = fopen ("conftest.out", "w"); | ||
3058 | return ferror (f) || fclose (f) != 0; | ||
3059 | |||
3060 | ; | ||
3061 | return 0; | ||
3062 | } | ||
3063 | _ACEOF | ||
3064 | ac_clean_files="$ac_clean_files conftest.out" | ||
3065 | # Check that the compiler produces executables we can run. If not, either | ||
3066 | # the compiler is broken, or we cross compile. | ||
3067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | ||
3068 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||
3069 | if test "$cross_compiling" != yes; then | ||
3070 | { { ac_try="$ac_link" | ||
3071 | case "(($ac_try" in | ||
3072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3073 | *) ac_try_echo=$ac_try;; | ||
3074 | esac | ||
3075 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3076 | $as_echo "$ac_try_echo"; } >&5 | ||
3077 | (eval "$ac_link") 2>&5 | ||
3078 | ac_status=$? | ||
3079 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3080 | test $ac_status = 0; } | ||
3081 | if { ac_try='./conftest$ac_cv_exeext' | ||
3082 | { { case "(($ac_try" in | ||
3083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3084 | *) ac_try_echo=$ac_try;; | ||
3085 | esac | ||
3086 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3087 | $as_echo "$ac_try_echo"; } >&5 | ||
3088 | (eval "$ac_try") 2>&5 | ||
3089 | ac_status=$? | ||
3090 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3091 | test $ac_status = 0; }; }; then | ||
3092 | cross_compiling=no | ||
3093 | else | ||
3094 | if test "$cross_compiling" = maybe; then | ||
3095 | cross_compiling=yes | ||
3096 | else | ||
3097 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3098 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3099 | as_fn_error $? "cannot run C compiled programs. | ||
3100 | If you meant to cross compile, use \`--host'. | ||
3101 | See \`config.log' for more details" "$LINENO" 5; } | ||
3102 | fi | ||
3103 | fi | ||
3104 | fi | ||
3105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | ||
3106 | $as_echo "$cross_compiling" >&6; } | ||
3107 | |||
3108 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||
3109 | ac_clean_files=$ac_clean_files_save | ||
3110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | ||
3111 | $as_echo_n "checking for suffix of object files... " >&6; } | ||
3112 | if ${ac_cv_objext+:} false; then : | ||
3113 | $as_echo_n "(cached) " >&6 | ||
3114 | else | ||
3115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3116 | /* end confdefs.h. */ | ||
3117 | |||
3118 | int | ||
3119 | main () | ||
3120 | { | ||
3121 | |||
3122 | ; | ||
3123 | return 0; | ||
3124 | } | ||
3125 | _ACEOF | ||
3126 | rm -f conftest.o conftest.obj | ||
3127 | if { { ac_try="$ac_compile" | ||
3128 | case "(($ac_try" in | ||
3129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3130 | *) ac_try_echo=$ac_try;; | ||
3131 | esac | ||
3132 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3133 | $as_echo "$ac_try_echo"; } >&5 | ||
3134 | (eval "$ac_compile") 2>&5 | ||
3135 | ac_status=$? | ||
3136 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3137 | test $ac_status = 0; }; then : | ||
3138 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
3139 | test -f "$ac_file" || continue; | ||
3140 | case $ac_file in | ||
3141 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | ||
3142 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
3143 | break;; | ||
3144 | esac | ||
3145 | done | ||
3146 | else | ||
3147 | $as_echo "$as_me: failed program was:" >&5 | ||
3148 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3149 | |||
3150 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3151 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3152 | as_fn_error $? "cannot compute suffix of object files: cannot compile | ||
3153 | See \`config.log' for more details" "$LINENO" 5; } | ||
3154 | fi | ||
3155 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
3156 | fi | ||
3157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | ||
3158 | $as_echo "$ac_cv_objext" >&6; } | ||
3159 | OBJEXT=$ac_cv_objext | ||
3160 | ac_objext=$OBJEXT | ||
3161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
3162 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
3163 | if ${ac_cv_c_compiler_gnu+:} false; then : | ||
3164 | $as_echo_n "(cached) " >&6 | ||
3165 | else | ||
3166 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3167 | /* end confdefs.h. */ | ||
3168 | |||
3169 | int | ||
3170 | main () | ||
3171 | { | ||
3172 | #ifndef __GNUC__ | ||
3173 | choke me | ||
3174 | #endif | ||
3175 | |||
3176 | ; | ||
3177 | return 0; | ||
3178 | } | ||
3179 | _ACEOF | ||
3180 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3181 | ac_compiler_gnu=yes | ||
3182 | else | ||
3183 | ac_compiler_gnu=no | ||
3184 | fi | ||
3185 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3186 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
3187 | |||
3188 | fi | ||
3189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
3190 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
3191 | if test $ac_compiler_gnu = yes; then | ||
3192 | GCC=yes | ||
3193 | else | ||
3194 | GCC= | ||
3195 | fi | ||
3196 | ac_test_CFLAGS=${CFLAGS+set} | ||
3197 | ac_save_CFLAGS=$CFLAGS | ||
3198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
3199 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
3200 | if ${ac_cv_prog_cc_g+:} false; then : | ||
3201 | $as_echo_n "(cached) " >&6 | ||
3202 | else | ||
3203 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
3204 | ac_c_werror_flag=yes | ||
3205 | ac_cv_prog_cc_g=no | ||
3206 | CFLAGS="-g" | ||
3207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3208 | /* end confdefs.h. */ | ||
3209 | |||
3210 | int | ||
3211 | main () | ||
3212 | { | ||
3213 | |||
3214 | ; | ||
3215 | return 0; | ||
3216 | } | ||
3217 | _ACEOF | ||
3218 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3219 | ac_cv_prog_cc_g=yes | ||
3220 | else | ||
3221 | CFLAGS="" | ||
3222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3223 | /* end confdefs.h. */ | ||
3224 | |||
3225 | int | ||
3226 | main () | ||
3227 | { | ||
3228 | |||
3229 | ; | ||
3230 | return 0; | ||
3231 | } | ||
3232 | _ACEOF | ||
3233 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3234 | |||
3235 | else | ||
3236 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
3237 | CFLAGS="-g" | ||
3238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3239 | /* end confdefs.h. */ | ||
3240 | |||
3241 | int | ||
3242 | main () | ||
3243 | { | ||
3244 | |||
3245 | ; | ||
3246 | return 0; | ||
3247 | } | ||
3248 | _ACEOF | ||
3249 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3250 | ac_cv_prog_cc_g=yes | ||
3251 | fi | ||
3252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3253 | fi | ||
3254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3255 | fi | ||
3256 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3257 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
3258 | fi | ||
3259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
3260 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
3261 | if test "$ac_test_CFLAGS" = set; then | ||
3262 | CFLAGS=$ac_save_CFLAGS | ||
3263 | elif test $ac_cv_prog_cc_g = yes; then | ||
3264 | if test "$GCC" = yes; then | ||
3265 | CFLAGS="-g -O2" | ||
3266 | else | ||
3267 | CFLAGS="-g" | ||
3268 | fi | ||
3269 | else | ||
3270 | if test "$GCC" = yes; then | ||
3271 | CFLAGS="-O2" | ||
3272 | else | ||
3273 | CFLAGS= | ||
3274 | fi | ||
3275 | fi | ||
3276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
3277 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
3278 | if ${ac_cv_prog_cc_c89+:} false; then : | ||
3279 | $as_echo_n "(cached) " >&6 | ||
3280 | else | ||
3281 | ac_cv_prog_cc_c89=no | ||
3282 | ac_save_CC=$CC | ||
3283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3284 | /* end confdefs.h. */ | ||
3285 | #include <stdarg.h> | ||
3286 | #include <stdio.h> | ||
3287 | #include <sys/types.h> | ||
3288 | #include <sys/stat.h> | ||
3289 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
3290 | struct buf { int x; }; | ||
3291 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
3292 | static char *e (p, i) | ||
3293 | char **p; | ||
3294 | int i; | ||
3295 | { | ||
3296 | return p[i]; | ||
3297 | } | ||
3298 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
3299 | { | ||
3300 | char *s; | ||
3301 | va_list v; | ||
3302 | va_start (v,p); | ||
3303 | s = g (p, va_arg (v,int)); | ||
3304 | va_end (v); | ||
3305 | return s; | ||
3306 | } | ||
3307 | |||
3308 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
3309 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
3310 | These don't provoke an error unfortunately, instead are silently treated | ||
3311 | as 'x'. The following induces an error, until -std is added to get | ||
3312 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
3313 | array size at least. It's necessary to write '\x00'==0 to get something | ||
3314 | that's true only with -std. */ | ||
3315 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
3316 | |||
3317 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
3318 | inside strings and character constants. */ | ||
3319 | #define FOO(x) 'x' | ||
3320 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
3321 | |||
3322 | int test (int i, double x); | ||
3323 | struct s1 {int (*f) (int a);}; | ||
3324 | struct s2 {int (*f) (double a);}; | ||
3325 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
3326 | int argc; | ||
3327 | char **argv; | ||
3328 | int | ||
3329 | main () | ||
3330 | { | ||
3331 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
3332 | ; | ||
3333 | return 0; | ||
3334 | } | ||
3335 | _ACEOF | ||
3336 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
3337 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
3338 | do | ||
3339 | CC="$ac_save_CC $ac_arg" | ||
3340 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3341 | ac_cv_prog_cc_c89=$ac_arg | ||
3342 | fi | ||
3343 | rm -f core conftest.err conftest.$ac_objext | ||
3344 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
3345 | done | ||
3346 | rm -f conftest.$ac_ext | ||
3347 | CC=$ac_save_CC | ||
3348 | |||
3349 | fi | ||
3350 | # AC_CACHE_VAL | ||
3351 | case "x$ac_cv_prog_cc_c89" in | ||
3352 | x) | ||
3353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
3354 | $as_echo "none needed" >&6; } ;; | ||
3355 | xno) | ||
3356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
3357 | $as_echo "unsupported" >&6; } ;; | ||
3358 | *) | ||
3359 | CC="$CC $ac_cv_prog_cc_c89" | ||
3360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
3361 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
3362 | esac | ||
3363 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
3364 | |||
3365 | fi | ||
3366 | |||
3367 | ac_ext=c | ||
3368 | ac_cpp='$CPP $CPPFLAGS' | ||
3369 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3370 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3371 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3372 | |||
3373 | ac_aux_dir= | ||
3374 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
3375 | if test -f "$ac_dir/install-sh"; then | ||
3376 | ac_aux_dir=$ac_dir | ||
3377 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
3378 | break | ||
3379 | elif test -f "$ac_dir/install.sh"; then | ||
3380 | ac_aux_dir=$ac_dir | ||
3381 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
3382 | break | ||
3383 | elif test -f "$ac_dir/shtool"; then | ||
3384 | ac_aux_dir=$ac_dir | ||
3385 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
3386 | break | ||
3387 | fi | ||
3388 | done | ||
3389 | if test -z "$ac_aux_dir"; then | ||
3390 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | ||
3391 | fi | ||
3392 | |||
3393 | # These three variables are undocumented and unsupported, | ||
3394 | # and are intended to be withdrawn in a future Autoconf release. | ||
3395 | # They can cause serious problems if a builder's source tree is in a directory | ||
3396 | # whose full name contains unusual characters. | ||
3397 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
3398 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
3399 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
3400 | |||
3401 | |||
3402 | # Make sure we can run config.sub. | ||
3403 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
3404 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | ||
3405 | |||
3406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | ||
3407 | $as_echo_n "checking build system type... " >&6; } | ||
3408 | if ${ac_cv_build+:} false; then : | ||
3409 | $as_echo_n "(cached) " >&6 | ||
3410 | else | ||
3411 | ac_build_alias=$build_alias | ||
3412 | test "x$ac_build_alias" = x && | ||
3413 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
3414 | test "x$ac_build_alias" = x && | ||
3415 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | ||
3416 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
3417 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | ||
3418 | |||
3419 | fi | ||
3420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | ||
3421 | $as_echo "$ac_cv_build" >&6; } | ||
3422 | case $ac_cv_build in | ||
3423 | *-*-*) ;; | ||
3424 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | ||
3425 | esac | ||
3426 | build=$ac_cv_build | ||
3427 | ac_save_IFS=$IFS; IFS='-' | ||
3428 | set x $ac_cv_build | ||
3429 | shift | ||
3430 | build_cpu=$1 | ||
3431 | build_vendor=$2 | ||
3432 | shift; shift | ||
3433 | # Remember, the first character of IFS is used to create $*, | ||
3434 | # except with old shells: | ||
3435 | build_os=$* | ||
3436 | IFS=$ac_save_IFS | ||
3437 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
3438 | |||
3439 | |||
3440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | ||
3441 | $as_echo_n "checking host system type... " >&6; } | ||
3442 | if ${ac_cv_host+:} false; then : | ||
3443 | $as_echo_n "(cached) " >&6 | ||
3444 | else | ||
3445 | if test "x$host_alias" = x; then | ||
3446 | ac_cv_host=$ac_cv_build | ||
3447 | else | ||
3448 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
3449 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | ||
3450 | fi | ||
3451 | |||
3452 | fi | ||
3453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | ||
3454 | $as_echo "$ac_cv_host" >&6; } | ||
3455 | case $ac_cv_host in | ||
3456 | *-*-*) ;; | ||
3457 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | ||
3458 | esac | ||
3459 | host=$ac_cv_host | ||
3460 | ac_save_IFS=$IFS; IFS='-' | ||
3461 | set x $ac_cv_host | ||
3462 | shift | ||
3463 | host_cpu=$1 | ||
3464 | host_vendor=$2 | ||
3465 | shift; shift | ||
3466 | # Remember, the first character of IFS is used to create $*, | ||
3467 | # except with old shells: | ||
3468 | host_os=$* | ||
3469 | IFS=$ac_save_IFS | ||
3470 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
3471 | |||
3472 | |||
3473 | |||
3474 | ac_ext=c | ||
3475 | ac_cpp='$CPP $CPPFLAGS' | ||
3476 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3477 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3478 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
3480 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
3481 | # On Suns, sometimes $CPP names a directory. | ||
3482 | if test -n "$CPP" && test -d "$CPP"; then | ||
3483 | CPP= | ||
3484 | fi | ||
3485 | if test -z "$CPP"; then | ||
3486 | if ${ac_cv_prog_CPP+:} false; then : | ||
3487 | $as_echo_n "(cached) " >&6 | ||
3488 | else | ||
3489 | # Double quotes because CPP needs to be expanded | ||
3490 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
3491 | do | ||
3492 | ac_preproc_ok=false | ||
3493 | for ac_c_preproc_warn_flag in '' yes | ||
3494 | do | ||
3495 | # Use a header file that comes with gcc, so configuring glibc | ||
3496 | # with a fresh cross-compiler works. | ||
3497 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3498 | # <limits.h> exists even on freestanding compilers. | ||
3499 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3500 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3502 | /* end confdefs.h. */ | ||
3503 | #ifdef __STDC__ | ||
3504 | # include <limits.h> | ||
3505 | #else | ||
3506 | # include <assert.h> | ||
3507 | #endif | ||
3508 | Syntax error | ||
3509 | _ACEOF | ||
3510 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3511 | |||
3512 | else | ||
3513 | # Broken: fails on valid input. | ||
3514 | continue | ||
3515 | fi | ||
3516 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3517 | |||
3518 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3519 | # can be detected and how. | ||
3520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3521 | /* end confdefs.h. */ | ||
3522 | #include <ac_nonexistent.h> | ||
3523 | _ACEOF | ||
3524 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3525 | # Broken: success on invalid input. | ||
3526 | continue | ||
3527 | else | ||
3528 | # Passes both tests. | ||
3529 | ac_preproc_ok=: | ||
3530 | break | ||
3531 | fi | ||
3532 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3533 | |||
3534 | done | ||
3535 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3536 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
3537 | if $ac_preproc_ok; then : | ||
3538 | break | ||
3539 | fi | ||
3540 | |||
3541 | done | ||
3542 | ac_cv_prog_CPP=$CPP | ||
3543 | |||
3544 | fi | ||
3545 | CPP=$ac_cv_prog_CPP | ||
3546 | else | ||
3547 | ac_cv_prog_CPP=$CPP | ||
3548 | fi | ||
3549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
3550 | $as_echo "$CPP" >&6; } | ||
3551 | ac_preproc_ok=false | ||
3552 | for ac_c_preproc_warn_flag in '' yes | ||
3553 | do | ||
3554 | # Use a header file that comes with gcc, so configuring glibc | ||
3555 | # with a fresh cross-compiler works. | ||
3556 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3557 | # <limits.h> exists even on freestanding compilers. | ||
3558 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3559 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3561 | /* end confdefs.h. */ | ||
3562 | #ifdef __STDC__ | ||
3563 | # include <limits.h> | ||
3564 | #else | ||
3565 | # include <assert.h> | ||
3566 | #endif | ||
3567 | Syntax error | ||
3568 | _ACEOF | ||
3569 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3570 | |||
3571 | else | ||
3572 | # Broken: fails on valid input. | ||
3573 | continue | ||
3574 | fi | ||
3575 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3576 | |||
3577 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3578 | # can be detected and how. | ||
3579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3580 | /* end confdefs.h. */ | ||
3581 | #include <ac_nonexistent.h> | ||
3582 | _ACEOF | ||
3583 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3584 | # Broken: success on invalid input. | ||
3585 | continue | ||
3586 | else | ||
3587 | # Passes both tests. | ||
3588 | ac_preproc_ok=: | ||
3589 | break | ||
3590 | fi | ||
3591 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3592 | |||
3593 | done | ||
3594 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3595 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
3596 | if $ac_preproc_ok; then : | ||
3597 | |||
3598 | else | ||
3599 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3600 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3601 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||
3602 | See \`config.log' for more details" "$LINENO" 5; } | ||
3603 | fi | ||
3604 | |||
3605 | ac_ext=c | ||
3606 | ac_cpp='$CPP $CPPFLAGS' | ||
3607 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3608 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3609 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3610 | |||
3611 | |||
3612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | ||
3613 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||
3614 | if ${ac_cv_path_GREP+:} false; then : | ||
3615 | $as_echo_n "(cached) " >&6 | ||
3616 | else | ||
3617 | if test -z "$GREP"; then | ||
3618 | ac_path_GREP_found=false | ||
3619 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3621 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3622 | do | ||
3623 | IFS=$as_save_IFS | ||
3624 | test -z "$as_dir" && as_dir=. | ||
3625 | for ac_prog in grep ggrep; do | ||
3626 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3627 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3628 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
3629 | # Check for GNU ac_path_GREP and select it if it is found. | ||
3630 | # Check for GNU $ac_path_GREP | ||
3631 | case `"$ac_path_GREP" --version 2>&1` in | ||
3632 | *GNU*) | ||
3633 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
3634 | *) | ||
3635 | ac_count=0 | ||
3636 | $as_echo_n 0123456789 >"conftest.in" | ||
3637 | while : | ||
3638 | do | ||
3639 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3640 | mv "conftest.tmp" "conftest.in" | ||
3641 | cp "conftest.in" "conftest.nl" | ||
3642 | $as_echo 'GREP' >> "conftest.nl" | ||
3643 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3644 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3645 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
3646 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
3647 | # Best one so far, save it but keep looking for a better one | ||
3648 | ac_cv_path_GREP="$ac_path_GREP" | ||
3649 | ac_path_GREP_max=$ac_count | ||
3650 | fi | ||
3651 | # 10*(2^10) chars as input seems more than enough | ||
3652 | test $ac_count -gt 10 && break | ||
3653 | done | ||
3654 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3655 | esac | ||
3656 | |||
3657 | $ac_path_GREP_found && break 3 | ||
3658 | done | ||
3659 | done | ||
3660 | done | ||
3661 | IFS=$as_save_IFS | ||
3662 | if test -z "$ac_cv_path_GREP"; then | ||
3663 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
3664 | fi | ||
3665 | else | ||
3666 | ac_cv_path_GREP=$GREP | ||
3667 | fi | ||
3668 | |||
3669 | fi | ||
3670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | ||
3671 | $as_echo "$ac_cv_path_GREP" >&6; } | ||
3672 | GREP="$ac_cv_path_GREP" | ||
3673 | |||
3674 | |||
3675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
3676 | $as_echo_n "checking for egrep... " >&6; } | ||
3677 | if ${ac_cv_path_EGREP+:} false; then : | ||
3678 | $as_echo_n "(cached) " >&6 | ||
3679 | else | ||
3680 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
3681 | then ac_cv_path_EGREP="$GREP -E" | ||
3682 | else | ||
3683 | if test -z "$EGREP"; then | ||
3684 | ac_path_EGREP_found=false | ||
3685 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3687 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3688 | do | ||
3689 | IFS=$as_save_IFS | ||
3690 | test -z "$as_dir" && as_dir=. | ||
3691 | for ac_prog in egrep; do | ||
3692 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3693 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3694 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
3695 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
3696 | # Check for GNU $ac_path_EGREP | ||
3697 | case `"$ac_path_EGREP" --version 2>&1` in | ||
3698 | *GNU*) | ||
3699 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
3700 | *) | ||
3701 | ac_count=0 | ||
3702 | $as_echo_n 0123456789 >"conftest.in" | ||
3703 | while : | ||
3704 | do | ||
3705 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3706 | mv "conftest.tmp" "conftest.in" | ||
3707 | cp "conftest.in" "conftest.nl" | ||
3708 | $as_echo 'EGREP' >> "conftest.nl" | ||
3709 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3710 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3711 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
3712 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
3713 | # Best one so far, save it but keep looking for a better one | ||
3714 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
3715 | ac_path_EGREP_max=$ac_count | ||
3716 | fi | ||
3717 | # 10*(2^10) chars as input seems more than enough | ||
3718 | test $ac_count -gt 10 && break | ||
3719 | done | ||
3720 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3721 | esac | ||
3722 | |||
3723 | $ac_path_EGREP_found && break 3 | ||
3724 | done | ||
3725 | done | ||
3726 | done | ||
3727 | IFS=$as_save_IFS | ||
3728 | if test -z "$ac_cv_path_EGREP"; then | ||
3729 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
3730 | fi | ||
3731 | else | ||
3732 | ac_cv_path_EGREP=$EGREP | ||
3733 | fi | ||
3734 | |||
3735 | fi | ||
3736 | fi | ||
3737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
3738 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
3739 | EGREP="$ac_cv_path_EGREP" | ||
3740 | |||
3741 | |||
3742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
3743 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
3744 | if ${ac_cv_header_stdc+:} false; then : | ||
3745 | $as_echo_n "(cached) " >&6 | ||
3746 | else | ||
3747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3748 | /* end confdefs.h. */ | ||
3749 | #include <stdlib.h> | ||
3750 | #include <stdarg.h> | ||
3751 | #include <string.h> | ||
3752 | #include <float.h> | ||
3753 | |||
3754 | int | ||
3755 | main () | ||
3756 | { | ||
3757 | |||
3758 | ; | ||
3759 | return 0; | ||
3760 | } | ||
3761 | _ACEOF | ||
3762 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3763 | ac_cv_header_stdc=yes | ||
3764 | else | ||
3765 | ac_cv_header_stdc=no | ||
3766 | fi | ||
3767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3768 | |||
3769 | if test $ac_cv_header_stdc = yes; then | ||
3770 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
3771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3772 | /* end confdefs.h. */ | ||
3773 | #include <string.h> | ||
3774 | |||
3775 | _ACEOF | ||
3776 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3777 | $EGREP "memchr" >/dev/null 2>&1; then : | ||
3778 | |||
3779 | else | ||
3780 | ac_cv_header_stdc=no | ||
3781 | fi | ||
3782 | rm -f conftest* | ||
3783 | |||
3784 | fi | ||
3785 | |||
3786 | if test $ac_cv_header_stdc = yes; then | ||
3787 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
3788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3789 | /* end confdefs.h. */ | ||
3790 | #include <stdlib.h> | ||
3791 | |||
3792 | _ACEOF | ||
3793 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3794 | $EGREP "free" >/dev/null 2>&1; then : | ||
3795 | |||
3796 | else | ||
3797 | ac_cv_header_stdc=no | ||
3798 | fi | ||
3799 | rm -f conftest* | ||
3800 | |||
3801 | fi | ||
3802 | |||
3803 | if test $ac_cv_header_stdc = yes; then | ||
3804 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
3805 | if test "$cross_compiling" = yes; then : | ||
3806 | : | ||
3807 | else | ||
3808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3809 | /* end confdefs.h. */ | ||
3810 | #include <ctype.h> | ||
3811 | #include <stdlib.h> | ||
3812 | #if ((' ' & 0x0FF) == 0x020) | ||
3813 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
3814 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
3815 | #else | ||
3816 | # define ISLOWER(c) \ | ||
3817 | (('a' <= (c) && (c) <= 'i') \ | ||
3818 | || ('j' <= (c) && (c) <= 'r') \ | ||
3819 | || ('s' <= (c) && (c) <= 'z')) | ||
3820 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
3821 | #endif | ||
3822 | |||
3823 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
3824 | int | ||
3825 | main () | ||
3826 | { | ||
3827 | int i; | ||
3828 | for (i = 0; i < 256; i++) | ||
3829 | if (XOR (islower (i), ISLOWER (i)) | ||
3830 | || toupper (i) != TOUPPER (i)) | ||
3831 | return 2; | ||
3832 | return 0; | ||
3833 | } | ||
3834 | _ACEOF | ||
3835 | if ac_fn_c_try_run "$LINENO"; then : | ||
3836 | |||
3837 | else | ||
3838 | ac_cv_header_stdc=no | ||
3839 | fi | ||
3840 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
3841 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
3842 | fi | ||
3843 | |||
3844 | fi | ||
3845 | fi | ||
3846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
3847 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
3848 | if test $ac_cv_header_stdc = yes; then | ||
3849 | |||
3850 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
3851 | |||
3852 | fi | ||
3853 | |||
3854 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
3855 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
3856 | inttypes.h stdint.h unistd.h | ||
3857 | do : | ||
3858 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
3859 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||
3860 | " | ||
3861 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
3862 | cat >>confdefs.h <<_ACEOF | ||
3863 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
3864 | _ACEOF | ||
3865 | |||
3866 | fi | ||
3867 | |||
3868 | done | ||
3869 | |||
3870 | |||
3871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | ||
3872 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | ||
3873 | if ${ac_cv_c_bigendian+:} false; then : | ||
3874 | $as_echo_n "(cached) " >&6 | ||
3875 | else | ||
3876 | ac_cv_c_bigendian=unknown | ||
3877 | # See if we're dealing with a universal compiler. | ||
3878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3879 | /* end confdefs.h. */ | ||
3880 | #ifndef __APPLE_CC__ | ||
3881 | not a universal capable compiler | ||
3882 | #endif | ||
3883 | typedef int dummy; | ||
3884 | |||
3885 | _ACEOF | ||
3886 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3887 | |||
3888 | # Check for potential -arch flags. It is not universal unless | ||
3889 | # there are at least two -arch flags with different values. | ||
3890 | ac_arch= | ||
3891 | ac_prev= | ||
3892 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | ||
3893 | if test -n "$ac_prev"; then | ||
3894 | case $ac_word in | ||
3895 | i?86 | x86_64 | ppc | ppc64) | ||
3896 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | ||
3897 | ac_arch=$ac_word | ||
3898 | else | ||
3899 | ac_cv_c_bigendian=universal | ||
3900 | break | ||
3901 | fi | ||
3902 | ;; | ||
3903 | esac | ||
3904 | ac_prev= | ||
3905 | elif test "x$ac_word" = "x-arch"; then | ||
3906 | ac_prev=arch | ||
3907 | fi | ||
3908 | done | ||
3909 | fi | ||
3910 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3911 | if test $ac_cv_c_bigendian = unknown; then | ||
3912 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
3913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3914 | /* end confdefs.h. */ | ||
3915 | #include <sys/types.h> | ||
3916 | #include <sys/param.h> | ||
3917 | |||
3918 | int | ||
3919 | main () | ||
3920 | { | ||
3921 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | ||
3922 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | ||
3923 | && LITTLE_ENDIAN) | ||
3924 | bogus endian macros | ||
3925 | #endif | ||
3926 | |||
3927 | ; | ||
3928 | return 0; | ||
3929 | } | ||
3930 | _ACEOF | ||
3931 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3932 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
3933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3934 | /* end confdefs.h. */ | ||
3935 | #include <sys/types.h> | ||
3936 | #include <sys/param.h> | ||
3937 | |||
3938 | int | ||
3939 | main () | ||
3940 | { | ||
3941 | #if BYTE_ORDER != BIG_ENDIAN | ||
3942 | not big endian | ||
3943 | #endif | ||
3944 | |||
3945 | ; | ||
3946 | return 0; | ||
3947 | } | ||
3948 | _ACEOF | ||
3949 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3950 | ac_cv_c_bigendian=yes | ||
3951 | else | ||
3952 | ac_cv_c_bigendian=no | ||
3953 | fi | ||
3954 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3955 | fi | ||
3956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3957 | fi | ||
3958 | if test $ac_cv_c_bigendian = unknown; then | ||
3959 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | ||
3960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3961 | /* end confdefs.h. */ | ||
3962 | #include <limits.h> | ||
3963 | |||
3964 | int | ||
3965 | main () | ||
3966 | { | ||
3967 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | ||
3968 | bogus endian macros | ||
3969 | #endif | ||
3970 | |||
3971 | ; | ||
3972 | return 0; | ||
3973 | } | ||
3974 | _ACEOF | ||
3975 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3976 | # It does; now see whether it defined to _BIG_ENDIAN or not. | ||
3977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3978 | /* end confdefs.h. */ | ||
3979 | #include <limits.h> | ||
3980 | |||
3981 | int | ||
3982 | main () | ||
3983 | { | ||
3984 | #ifndef _BIG_ENDIAN | ||
3985 | not big endian | ||
3986 | #endif | ||
3987 | |||
3988 | ; | ||
3989 | return 0; | ||
3990 | } | ||
3991 | _ACEOF | ||
3992 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3993 | ac_cv_c_bigendian=yes | ||
3994 | else | ||
3995 | ac_cv_c_bigendian=no | ||
3996 | fi | ||
3997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3998 | fi | ||
3999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4000 | fi | ||
4001 | if test $ac_cv_c_bigendian = unknown; then | ||
4002 | # Compile a test program. | ||
4003 | if test "$cross_compiling" = yes; then : | ||
4004 | # Try to guess by grepping values from an object file. | ||
4005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4006 | /* end confdefs.h. */ | ||
4007 | short int ascii_mm[] = | ||
4008 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
4009 | short int ascii_ii[] = | ||
4010 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
4011 | int use_ascii (int i) { | ||
4012 | return ascii_mm[i] + ascii_ii[i]; | ||
4013 | } | ||
4014 | short int ebcdic_ii[] = | ||
4015 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
4016 | short int ebcdic_mm[] = | ||
4017 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
4018 | int use_ebcdic (int i) { | ||
4019 | return ebcdic_mm[i] + ebcdic_ii[i]; | ||
4020 | } | ||
4021 | extern int foo; | ||
4022 | |||
4023 | int | ||
4024 | main () | ||
4025 | { | ||
4026 | return use_ascii (foo) == use_ebcdic (foo); | ||
4027 | ; | ||
4028 | return 0; | ||
4029 | } | ||
4030 | _ACEOF | ||
4031 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4032 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | ||
4033 | ac_cv_c_bigendian=yes | ||
4034 | fi | ||
4035 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
4036 | if test "$ac_cv_c_bigendian" = unknown; then | ||
4037 | ac_cv_c_bigendian=no | ||
4038 | else | ||
4039 | # finding both strings is unlikely to happen, but who knows? | ||
4040 | ac_cv_c_bigendian=unknown | ||
4041 | fi | ||
4042 | fi | ||
4043 | fi | ||
4044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4045 | else | ||
4046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4047 | /* end confdefs.h. */ | ||
4048 | $ac_includes_default | ||
4049 | int | ||
4050 | main () | ||
4051 | { | ||
4052 | |||
4053 | /* Are we little or big endian? From Harbison&Steele. */ | ||
4054 | union | ||
4055 | { | ||
4056 | long int l; | ||
4057 | char c[sizeof (long int)]; | ||
4058 | } u; | ||
4059 | u.l = 1; | ||
4060 | return u.c[sizeof (long int) - 1] == 1; | ||
4061 | |||
4062 | ; | ||
4063 | return 0; | ||
4064 | } | ||
4065 | _ACEOF | ||
4066 | if ac_fn_c_try_run "$LINENO"; then : | ||
4067 | ac_cv_c_bigendian=no | ||
4068 | else | ||
4069 | ac_cv_c_bigendian=yes | ||
4070 | fi | ||
4071 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
4072 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
4073 | fi | ||
4074 | |||
4075 | fi | ||
4076 | fi | ||
4077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | ||
4078 | $as_echo "$ac_cv_c_bigendian" >&6; } | ||
4079 | case $ac_cv_c_bigendian in #( | ||
4080 | yes) | ||
4081 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | ||
4082 | ;; #( | ||
4083 | no) | ||
4084 | ;; #( | ||
4085 | universal) | ||
4086 | |||
4087 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | ||
4088 | |||
4089 | ;; #( | ||
4090 | *) | ||
4091 | as_fn_error $? "unknown endianness | ||
4092 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | ||
4093 | esac | ||
4094 | |||
4095 | |||
4096 | # Checks for programs. | ||
4097 | for ac_prog in gawk mawk nawk awk | ||
4098 | do | ||
4099 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4100 | set dummy $ac_prog; ac_word=$2 | ||
4101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4102 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4103 | if ${ac_cv_prog_AWK+:} false; then : | ||
4104 | $as_echo_n "(cached) " >&6 | ||
4105 | else | ||
4106 | if test -n "$AWK"; then | ||
4107 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
4108 | else | ||
4109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4110 | for as_dir in $PATH | ||
4111 | do | ||
4112 | IFS=$as_save_IFS | ||
4113 | test -z "$as_dir" && as_dir=. | ||
4114 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4115 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4116 | ac_cv_prog_AWK="$ac_prog" | ||
4117 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4118 | break 2 | ||
4119 | fi | ||
4120 | done | ||
4121 | done | ||
4122 | IFS=$as_save_IFS | ||
4123 | |||
4124 | fi | ||
4125 | fi | ||
4126 | AWK=$ac_cv_prog_AWK | ||
4127 | if test -n "$AWK"; then | ||
4128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | ||
4129 | $as_echo "$AWK" >&6; } | ||
4130 | else | ||
4131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4132 | $as_echo "no" >&6; } | ||
4133 | fi | ||
4134 | |||
4135 | |||
4136 | test -n "$AWK" && break | ||
4137 | done | ||
4138 | |||
4139 | ac_ext=c | ||
4140 | ac_cpp='$CPP $CPPFLAGS' | ||
4141 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4142 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4143 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
4145 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
4146 | # On Suns, sometimes $CPP names a directory. | ||
4147 | if test -n "$CPP" && test -d "$CPP"; then | ||
4148 | CPP= | ||
4149 | fi | ||
4150 | if test -z "$CPP"; then | ||
4151 | if ${ac_cv_prog_CPP+:} false; then : | ||
4152 | $as_echo_n "(cached) " >&6 | ||
4153 | else | ||
4154 | # Double quotes because CPP needs to be expanded | ||
4155 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
4156 | do | ||
4157 | ac_preproc_ok=false | ||
4158 | for ac_c_preproc_warn_flag in '' yes | ||
4159 | do | ||
4160 | # Use a header file that comes with gcc, so configuring glibc | ||
4161 | # with a fresh cross-compiler works. | ||
4162 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4163 | # <limits.h> exists even on freestanding compilers. | ||
4164 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
4165 | # not just through cpp. "Syntax error" is here to catch this case. | ||
4166 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4167 | /* end confdefs.h. */ | ||
4168 | #ifdef __STDC__ | ||
4169 | # include <limits.h> | ||
4170 | #else | ||
4171 | # include <assert.h> | ||
4172 | #endif | ||
4173 | Syntax error | ||
4174 | _ACEOF | ||
4175 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4176 | |||
4177 | else | ||
4178 | # Broken: fails on valid input. | ||
4179 | continue | ||
4180 | fi | ||
4181 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4182 | |||
4183 | # OK, works on sane cases. Now check whether nonexistent headers | ||
4184 | # can be detected and how. | ||
4185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4186 | /* end confdefs.h. */ | ||
4187 | #include <ac_nonexistent.h> | ||
4188 | _ACEOF | ||
4189 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4190 | # Broken: success on invalid input. | ||
4191 | continue | ||
4192 | else | ||
4193 | # Passes both tests. | ||
4194 | ac_preproc_ok=: | ||
4195 | break | ||
4196 | fi | ||
4197 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4198 | |||
4199 | done | ||
4200 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
4201 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
4202 | if $ac_preproc_ok; then : | ||
4203 | break | ||
4204 | fi | ||
4205 | |||
4206 | done | ||
4207 | ac_cv_prog_CPP=$CPP | ||
4208 | |||
4209 | fi | ||
4210 | CPP=$ac_cv_prog_CPP | ||
4211 | else | ||
4212 | ac_cv_prog_CPP=$CPP | ||
4213 | fi | ||
4214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
4215 | $as_echo "$CPP" >&6; } | ||
4216 | ac_preproc_ok=false | ||
4217 | for ac_c_preproc_warn_flag in '' yes | ||
4218 | do | ||
4219 | # Use a header file that comes with gcc, so configuring glibc | ||
4220 | # with a fresh cross-compiler works. | ||
4221 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4222 | # <limits.h> exists even on freestanding compilers. | ||
4223 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
4224 | # not just through cpp. "Syntax error" is here to catch this case. | ||
4225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4226 | /* end confdefs.h. */ | ||
4227 | #ifdef __STDC__ | ||
4228 | # include <limits.h> | ||
4229 | #else | ||
4230 | # include <assert.h> | ||
4231 | #endif | ||
4232 | Syntax error | ||
4233 | _ACEOF | ||
4234 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4235 | |||
4236 | else | ||
4237 | # Broken: fails on valid input. | ||
4238 | continue | ||
4239 | fi | ||
4240 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4241 | |||
4242 | # OK, works on sane cases. Now check whether nonexistent headers | ||
4243 | # can be detected and how. | ||
4244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4245 | /* end confdefs.h. */ | ||
4246 | #include <ac_nonexistent.h> | ||
4247 | _ACEOF | ||
4248 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4249 | # Broken: success on invalid input. | ||
4250 | continue | ||
4251 | else | ||
4252 | # Passes both tests. | ||
4253 | ac_preproc_ok=: | ||
4254 | break | ||
4255 | fi | ||
4256 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4257 | |||
4258 | done | ||
4259 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
4260 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
4261 | if $ac_preproc_ok; then : | ||
4262 | |||
4263 | else | ||
4264 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4265 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4266 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||
4267 | See \`config.log' for more details" "$LINENO" 5; } | ||
4268 | fi | ||
4269 | |||
4270 | ac_ext=c | ||
4271 | ac_cpp='$CPP $CPPFLAGS' | ||
4272 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4273 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4274 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4275 | |||
4276 | if test -n "$ac_tool_prefix"; then | ||
4277 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
4278 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
4279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4280 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4281 | if ${ac_cv_prog_RANLIB+:} false; then : | ||
4282 | $as_echo_n "(cached) " >&6 | ||
4283 | else | ||
4284 | if test -n "$RANLIB"; then | ||
4285 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
4286 | else | ||
4287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4288 | for as_dir in $PATH | ||
4289 | do | ||
4290 | IFS=$as_save_IFS | ||
4291 | test -z "$as_dir" && as_dir=. | ||
4292 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4293 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4294 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
4295 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4296 | break 2 | ||
4297 | fi | ||
4298 | done | ||
4299 | done | ||
4300 | IFS=$as_save_IFS | ||
4301 | |||
4302 | fi | ||
4303 | fi | ||
4304 | RANLIB=$ac_cv_prog_RANLIB | ||
4305 | if test -n "$RANLIB"; then | ||
4306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | ||
4307 | $as_echo "$RANLIB" >&6; } | ||
4308 | else | ||
4309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4310 | $as_echo "no" >&6; } | ||
4311 | fi | ||
4312 | |||
4313 | |||
4314 | fi | ||
4315 | if test -z "$ac_cv_prog_RANLIB"; then | ||
4316 | ac_ct_RANLIB=$RANLIB | ||
4317 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
4318 | set dummy ranlib; ac_word=$2 | ||
4319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4320 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4321 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | ||
4322 | $as_echo_n "(cached) " >&6 | ||
4323 | else | ||
4324 | if test -n "$ac_ct_RANLIB"; then | ||
4325 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
4326 | else | ||
4327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4328 | for as_dir in $PATH | ||
4329 | do | ||
4330 | IFS=$as_save_IFS | ||
4331 | test -z "$as_dir" && as_dir=. | ||
4332 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4333 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4334 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
4335 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4336 | break 2 | ||
4337 | fi | ||
4338 | done | ||
4339 | done | ||
4340 | IFS=$as_save_IFS | ||
4341 | |||
4342 | fi | ||
4343 | fi | ||
4344 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
4345 | if test -n "$ac_ct_RANLIB"; then | ||
4346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | ||
4347 | $as_echo "$ac_ct_RANLIB" >&6; } | ||
4348 | else | ||
4349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4350 | $as_echo "no" >&6; } | ||
4351 | fi | ||
4352 | |||
4353 | if test "x$ac_ct_RANLIB" = x; then | ||
4354 | RANLIB=":" | ||
4355 | else | ||
4356 | case $cross_compiling:$ac_tool_warned in | ||
4357 | yes:) | ||
4358 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
4359 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
4360 | ac_tool_warned=yes ;; | ||
4361 | esac | ||
4362 | RANLIB=$ac_ct_RANLIB | ||
4363 | fi | ||
4364 | else | ||
4365 | RANLIB="$ac_cv_prog_RANLIB" | ||
4366 | fi | ||
4367 | |||
4368 | # Find a good install program. We prefer a C program (faster), | ||
4369 | # so one script is as good as another. But avoid the broken or | ||
4370 | # incompatible versions: | ||
4371 | # SysV /etc/install, /usr/sbin/install | ||
4372 | # SunOS /usr/etc/install | ||
4373 | # IRIX /sbin/install | ||
4374 | # AIX /bin/install | ||
4375 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
4376 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
4377 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
4378 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
4379 | # OS/2's system install, which has a completely different semantic | ||
4380 | # ./install, which can be erroneously created by make from ./install.sh. | ||
4381 | # Reject install programs that cannot install multiple files. | ||
4382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | ||
4383 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||
4384 | if test -z "$INSTALL"; then | ||
4385 | if ${ac_cv_path_install+:} false; then : | ||
4386 | $as_echo_n "(cached) " >&6 | ||
4387 | else | ||
4388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4389 | for as_dir in $PATH | ||
4390 | do | ||
4391 | IFS=$as_save_IFS | ||
4392 | test -z "$as_dir" && as_dir=. | ||
4393 | # Account for people who put trailing slashes in PATH elements. | ||
4394 | case $as_dir/ in #(( | ||
4395 | ./ | .// | /[cC]/* | \ | ||
4396 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
4397 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | ||
4398 | /usr/ucb/* ) ;; | ||
4399 | *) | ||
4400 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
4401 | # Don't use installbsd from OSF since it installs stuff as root | ||
4402 | # by default. | ||
4403 | for ac_prog in ginstall scoinst install; do | ||
4404 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4405 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
4406 | if test $ac_prog = install && | ||
4407 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4408 | # AIX install. It has an incompatible calling convention. | ||
4409 | : | ||
4410 | elif test $ac_prog = install && | ||
4411 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4412 | # program-specific install script used by HP pwplus--don't use. | ||
4413 | : | ||
4414 | else | ||
4415 | rm -rf conftest.one conftest.two conftest.dir | ||
4416 | echo one > conftest.one | ||
4417 | echo two > conftest.two | ||
4418 | mkdir conftest.dir | ||
4419 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | ||
4420 | test -s conftest.one && test -s conftest.two && | ||
4421 | test -s conftest.dir/conftest.one && | ||
4422 | test -s conftest.dir/conftest.two | ||
4423 | then | ||
4424 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
4425 | break 3 | ||
4426 | fi | ||
4427 | fi | ||
4428 | fi | ||
4429 | done | ||
4430 | done | ||
4431 | ;; | ||
4432 | esac | ||
4433 | |||
4434 | done | ||
4435 | IFS=$as_save_IFS | ||
4436 | |||
4437 | rm -rf conftest.one conftest.two conftest.dir | ||
4438 | |||
4439 | fi | ||
4440 | if test "${ac_cv_path_install+set}" = set; then | ||
4441 | INSTALL=$ac_cv_path_install | ||
4442 | else | ||
4443 | # As a last resort, use the slow shell script. Don't cache a | ||
4444 | # value for INSTALL within a source directory, because that will | ||
4445 | # break other packages using the cache if that directory is | ||
4446 | # removed, or if the value is a relative name. | ||
4447 | INSTALL=$ac_install_sh | ||
4448 | fi | ||
4449 | fi | ||
4450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | ||
4451 | $as_echo "$INSTALL" >&6; } | ||
4452 | |||
4453 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
4454 | # It thinks the first close brace ends the variable substitution. | ||
4455 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
4456 | |||
4457 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
4458 | |||
4459 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
4460 | |||
4461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
4462 | $as_echo_n "checking for egrep... " >&6; } | ||
4463 | if ${ac_cv_path_EGREP+:} false; then : | ||
4464 | $as_echo_n "(cached) " >&6 | ||
4465 | else | ||
4466 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4467 | then ac_cv_path_EGREP="$GREP -E" | ||
4468 | else | ||
4469 | if test -z "$EGREP"; then | ||
4470 | ac_path_EGREP_found=false | ||
4471 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4473 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4474 | do | ||
4475 | IFS=$as_save_IFS | ||
4476 | test -z "$as_dir" && as_dir=. | ||
4477 | for ac_prog in egrep; do | ||
4478 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4479 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4480 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
4481 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4482 | # Check for GNU $ac_path_EGREP | ||
4483 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4484 | *GNU*) | ||
4485 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4486 | *) | ||
4487 | ac_count=0 | ||
4488 | $as_echo_n 0123456789 >"conftest.in" | ||
4489 | while : | ||
4490 | do | ||
4491 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4492 | mv "conftest.tmp" "conftest.in" | ||
4493 | cp "conftest.in" "conftest.nl" | ||
4494 | $as_echo 'EGREP' >> "conftest.nl" | ||
4495 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4496 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4497 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4498 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4499 | # Best one so far, save it but keep looking for a better one | ||
4500 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4501 | ac_path_EGREP_max=$ac_count | ||
4502 | fi | ||
4503 | # 10*(2^10) chars as input seems more than enough | ||
4504 | test $ac_count -gt 10 && break | ||
4505 | done | ||
4506 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4507 | esac | ||
4508 | |||
4509 | $ac_path_EGREP_found && break 3 | ||
4510 | done | ||
4511 | done | ||
4512 | done | ||
4513 | IFS=$as_save_IFS | ||
4514 | if test -z "$ac_cv_path_EGREP"; then | ||
4515 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
4516 | fi | ||
4517 | else | ||
4518 | ac_cv_path_EGREP=$EGREP | ||
4519 | fi | ||
4520 | |||
4521 | fi | ||
4522 | fi | ||
4523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
4524 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
4525 | EGREP="$ac_cv_path_EGREP" | ||
4526 | |||
4527 | |||
4528 | # Extract the first word of "ar", so it can be a program name with args. | ||
4529 | set dummy ar; ac_word=$2 | ||
4530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4531 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4532 | if ${ac_cv_path_AR+:} false; then : | ||
4533 | $as_echo_n "(cached) " >&6 | ||
4534 | else | ||
4535 | case $AR in | ||
4536 | [\\/]* | ?:[\\/]*) | ||
4537 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | ||
4538 | ;; | ||
4539 | *) | ||
4540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4541 | for as_dir in $PATH | ||
4542 | do | ||
4543 | IFS=$as_save_IFS | ||
4544 | test -z "$as_dir" && as_dir=. | ||
4545 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4546 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4547 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | ||
4548 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4549 | break 2 | ||
4550 | fi | ||
4551 | done | ||
4552 | done | ||
4553 | IFS=$as_save_IFS | ||
4554 | |||
4555 | ;; | ||
4556 | esac | ||
4557 | fi | ||
4558 | AR=$ac_cv_path_AR | ||
4559 | if test -n "$AR"; then | ||
4560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
4561 | $as_echo "$AR" >&6; } | ||
4562 | else | ||
4563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4564 | $as_echo "no" >&6; } | ||
4565 | fi | ||
4566 | |||
4567 | |||
4568 | # Extract the first word of "cat", so it can be a program name with args. | ||
4569 | set dummy cat; ac_word=$2 | ||
4570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4571 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4572 | if ${ac_cv_path_CAT+:} false; then : | ||
4573 | $as_echo_n "(cached) " >&6 | ||
4574 | else | ||
4575 | case $CAT in | ||
4576 | [\\/]* | ?:[\\/]*) | ||
4577 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. | ||
4578 | ;; | ||
4579 | *) | ||
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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4587 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" | ||
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 | ;; | ||
4596 | esac | ||
4597 | fi | ||
4598 | CAT=$ac_cv_path_CAT | ||
4599 | if test -n "$CAT"; then | ||
4600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 | ||
4601 | $as_echo "$CAT" >&6; } | ||
4602 | else | ||
4603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4604 | $as_echo "no" >&6; } | ||
4605 | fi | ||
4606 | |||
4607 | |||
4608 | # Extract the first word of "kill", so it can be a program name with args. | ||
4609 | set dummy kill; ac_word=$2 | ||
4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4611 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4612 | if ${ac_cv_path_KILL+:} false; then : | ||
4613 | $as_echo_n "(cached) " >&6 | ||
4614 | else | ||
4615 | case $KILL in | ||
4616 | [\\/]* | ?:[\\/]*) | ||
4617 | ac_cv_path_KILL="$KILL" # Let the user override the test with a path. | ||
4618 | ;; | ||
4619 | *) | ||
4620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4621 | for as_dir in $PATH | ||
4622 | do | ||
4623 | IFS=$as_save_IFS | ||
4624 | test -z "$as_dir" && as_dir=. | ||
4625 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4626 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4627 | ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext" | ||
4628 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4629 | break 2 | ||
4630 | fi | ||
4631 | done | ||
4632 | done | ||
4633 | IFS=$as_save_IFS | ||
4634 | |||
4635 | ;; | ||
4636 | esac | ||
4637 | fi | ||
4638 | KILL=$ac_cv_path_KILL | ||
4639 | if test -n "$KILL"; then | ||
4640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5 | ||
4641 | $as_echo "$KILL" >&6; } | ||
4642 | else | ||
4643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4644 | $as_echo "no" >&6; } | ||
4645 | fi | ||
4646 | |||
4647 | |||
4648 | for ac_prog in perl5 perl | ||
4649 | do | ||
4650 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4651 | set dummy $ac_prog; ac_word=$2 | ||
4652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4653 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4654 | if ${ac_cv_path_PERL+:} false; then : | ||
4655 | $as_echo_n "(cached) " >&6 | ||
4656 | else | ||
4657 | case $PERL in | ||
4658 | [\\/]* | ?:[\\/]*) | ||
4659 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
4660 | ;; | ||
4661 | *) | ||
4662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4663 | for as_dir in $PATH | ||
4664 | do | ||
4665 | IFS=$as_save_IFS | ||
4666 | test -z "$as_dir" && as_dir=. | ||
4667 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4668 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4669 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | ||
4670 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4671 | break 2 | ||
4672 | fi | ||
4673 | done | ||
4674 | done | ||
4675 | IFS=$as_save_IFS | ||
4676 | |||
4677 | ;; | ||
4678 | esac | ||
4679 | fi | ||
4680 | PERL=$ac_cv_path_PERL | ||
4681 | if test -n "$PERL"; then | ||
4682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 | ||
4683 | $as_echo "$PERL" >&6; } | ||
4684 | else | ||
4685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4686 | $as_echo "no" >&6; } | ||
4687 | fi | ||
4688 | |||
4689 | |||
4690 | test -n "$PERL" && break | ||
4691 | done | ||
4692 | |||
4693 | # Extract the first word of "sed", so it can be a program name with args. | ||
4694 | set dummy sed; ac_word=$2 | ||
4695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4696 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4697 | if ${ac_cv_path_SED+:} false; then : | ||
4698 | $as_echo_n "(cached) " >&6 | ||
4699 | else | ||
4700 | case $SED in | ||
4701 | [\\/]* | ?:[\\/]*) | ||
4702 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
4703 | ;; | ||
4704 | *) | ||
4705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4706 | for as_dir in $PATH | ||
4707 | do | ||
4708 | IFS=$as_save_IFS | ||
4709 | test -z "$as_dir" && as_dir=. | ||
4710 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4711 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4712 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | ||
4713 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4714 | break 2 | ||
4715 | fi | ||
4716 | done | ||
4717 | done | ||
4718 | IFS=$as_save_IFS | ||
4719 | |||
4720 | ;; | ||
4721 | esac | ||
4722 | fi | ||
4723 | SED=$ac_cv_path_SED | ||
4724 | if test -n "$SED"; then | ||
4725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | ||
4726 | $as_echo "$SED" >&6; } | ||
4727 | else | ||
4728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4729 | $as_echo "no" >&6; } | ||
4730 | fi | ||
4731 | |||
4732 | |||
4733 | |||
4734 | # Extract the first word of "ent", so it can be a program name with args. | ||
4735 | set dummy ent; ac_word=$2 | ||
4736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4737 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4738 | if ${ac_cv_path_ENT+:} false; then : | ||
4739 | $as_echo_n "(cached) " >&6 | ||
4740 | else | ||
4741 | case $ENT in | ||
4742 | [\\/]* | ?:[\\/]*) | ||
4743 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
4744 | ;; | ||
4745 | *) | ||
4746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4747 | for as_dir in $PATH | ||
4748 | do | ||
4749 | IFS=$as_save_IFS | ||
4750 | test -z "$as_dir" && as_dir=. | ||
4751 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4752 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4753 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" | ||
4754 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4755 | break 2 | ||
4756 | fi | ||
4757 | done | ||
4758 | done | ||
4759 | IFS=$as_save_IFS | ||
4760 | |||
4761 | ;; | ||
4762 | esac | ||
4763 | fi | ||
4764 | ENT=$ac_cv_path_ENT | ||
4765 | if test -n "$ENT"; then | ||
4766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5 | ||
4767 | $as_echo "$ENT" >&6; } | ||
4768 | else | ||
4769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4770 | $as_echo "no" >&6; } | ||
4771 | fi | ||
4772 | |||
4773 | |||
4774 | |||
4775 | # Extract the first word of "bash", so it can be a program name with args. | ||
4776 | set dummy bash; ac_word=$2 | ||
4777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4778 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4779 | if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : | ||
4780 | $as_echo_n "(cached) " >&6 | ||
4781 | else | ||
4782 | case $TEST_MINUS_S_SH in | ||
4783 | [\\/]* | ?:[\\/]*) | ||
4784 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4785 | ;; | ||
4786 | *) | ||
4787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4788 | for as_dir in $PATH | ||
4789 | do | ||
4790 | IFS=$as_save_IFS | ||
4791 | test -z "$as_dir" && as_dir=. | ||
4792 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4793 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4794 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4795 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4796 | break 2 | ||
4797 | fi | ||
4798 | done | ||
4799 | done | ||
4800 | IFS=$as_save_IFS | ||
4801 | |||
4802 | ;; | ||
4803 | esac | ||
4804 | fi | ||
4805 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4806 | if test -n "$TEST_MINUS_S_SH"; then | ||
4807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 | ||
4808 | $as_echo "$TEST_MINUS_S_SH" >&6; } | ||
4809 | else | ||
4810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4811 | $as_echo "no" >&6; } | ||
4812 | fi | ||
4813 | |||
4814 | |||
4815 | # Extract the first word of "ksh", so it can be a program name with args. | ||
4816 | set dummy ksh; ac_word=$2 | ||
4817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4818 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4819 | if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : | ||
4820 | $as_echo_n "(cached) " >&6 | ||
4821 | else | ||
4822 | case $TEST_MINUS_S_SH in | ||
4823 | [\\/]* | ?:[\\/]*) | ||
4824 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4825 | ;; | ||
4826 | *) | ||
4827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4828 | for as_dir in $PATH | ||
4829 | do | ||
4830 | IFS=$as_save_IFS | ||
4831 | test -z "$as_dir" && as_dir=. | ||
4832 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4833 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4834 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4835 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4836 | break 2 | ||
4837 | fi | ||
4838 | done | ||
4839 | done | ||
4840 | IFS=$as_save_IFS | ||
4841 | |||
4842 | ;; | ||
4843 | esac | ||
4844 | fi | ||
4845 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4846 | if test -n "$TEST_MINUS_S_SH"; then | ||
4847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 | ||
4848 | $as_echo "$TEST_MINUS_S_SH" >&6; } | ||
4849 | else | ||
4850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4851 | $as_echo "no" >&6; } | ||
4852 | fi | ||
4853 | |||
4854 | |||
4855 | # Extract the first word of "sh", so it can be a program name with args. | ||
4856 | set dummy sh; ac_word=$2 | ||
4857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4858 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4859 | if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : | ||
4860 | $as_echo_n "(cached) " >&6 | ||
4861 | else | ||
4862 | case $TEST_MINUS_S_SH in | ||
4863 | [\\/]* | ?:[\\/]*) | ||
4864 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4865 | ;; | ||
4866 | *) | ||
4867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4868 | for as_dir in $PATH | ||
4869 | do | ||
4870 | IFS=$as_save_IFS | ||
4871 | test -z "$as_dir" && as_dir=. | ||
4872 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4873 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4874 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4875 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4876 | break 2 | ||
4877 | fi | ||
4878 | done | ||
4879 | done | ||
4880 | IFS=$as_save_IFS | ||
4881 | |||
4882 | ;; | ||
4883 | esac | ||
4884 | fi | ||
4885 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4886 | if test -n "$TEST_MINUS_S_SH"; then | ||
4887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 | ||
4888 | $as_echo "$TEST_MINUS_S_SH" >&6; } | ||
4889 | else | ||
4890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4891 | $as_echo "no" >&6; } | ||
4892 | fi | ||
4893 | |||
4894 | |||
4895 | # Extract the first word of "sh", so it can be a program name with args. | ||
4896 | set dummy sh; ac_word=$2 | ||
4897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4898 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4899 | if ${ac_cv_path_SH+:} false; then : | ||
4900 | $as_echo_n "(cached) " >&6 | ||
4901 | else | ||
4902 | case $SH in | ||
4903 | [\\/]* | ?:[\\/]*) | ||
4904 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
4905 | ;; | ||
4906 | *) | ||
4907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4908 | for as_dir in $PATH | ||
4909 | do | ||
4910 | IFS=$as_save_IFS | ||
4911 | test -z "$as_dir" && as_dir=. | ||
4912 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4913 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4914 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4915 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4916 | break 2 | ||
4917 | fi | ||
4918 | done | ||
4919 | done | ||
4920 | IFS=$as_save_IFS | ||
4921 | |||
4922 | ;; | ||
4923 | esac | ||
4924 | fi | ||
4925 | SH=$ac_cv_path_SH | ||
4926 | if test -n "$SH"; then | ||
4927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 | ||
4928 | $as_echo "$SH" >&6; } | ||
4929 | else | ||
4930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4931 | $as_echo "no" >&6; } | ||
4932 | fi | ||
4933 | |||
4934 | |||
4935 | # Extract the first word of "groff", so it can be a program name with args. | ||
4936 | set dummy groff; ac_word=$2 | ||
4937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4938 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4939 | if ${ac_cv_path_GROFF+:} false; then : | ||
4940 | $as_echo_n "(cached) " >&6 | ||
4941 | else | ||
4942 | case $GROFF in | ||
4943 | [\\/]* | ?:[\\/]*) | ||
4944 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. | ||
4945 | ;; | ||
4946 | *) | ||
4947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4948 | for as_dir in $PATH | ||
4949 | do | ||
4950 | IFS=$as_save_IFS | ||
4951 | test -z "$as_dir" && as_dir=. | ||
4952 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4953 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4954 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" | ||
4955 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4956 | break 2 | ||
4957 | fi | ||
4958 | done | ||
4959 | done | ||
4960 | IFS=$as_save_IFS | ||
4961 | |||
4962 | ;; | ||
4963 | esac | ||
4964 | fi | ||
4965 | GROFF=$ac_cv_path_GROFF | ||
4966 | if test -n "$GROFF"; then | ||
4967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 | ||
4968 | $as_echo "$GROFF" >&6; } | ||
4969 | else | ||
4970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4971 | $as_echo "no" >&6; } | ||
4972 | fi | ||
4973 | |||
4974 | |||
4975 | # Extract the first word of "nroff", so it can be a program name with args. | ||
4976 | set dummy nroff; ac_word=$2 | ||
4977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4978 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4979 | if ${ac_cv_path_NROFF+:} false; then : | ||
4980 | $as_echo_n "(cached) " >&6 | ||
4981 | else | ||
4982 | case $NROFF in | ||
4983 | [\\/]* | ?:[\\/]*) | ||
4984 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
4985 | ;; | ||
4986 | *) | ||
4987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4988 | for as_dir in $PATH | ||
4989 | do | ||
4990 | IFS=$as_save_IFS | ||
4991 | test -z "$as_dir" && as_dir=. | ||
4992 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4993 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4994 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
4995 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4996 | break 2 | ||
4997 | fi | ||
4998 | done | ||
4999 | done | ||
5000 | IFS=$as_save_IFS | ||
5001 | |||
5002 | ;; | ||
5003 | esac | ||
5004 | fi | ||
5005 | NROFF=$ac_cv_path_NROFF | ||
5006 | if test -n "$NROFF"; then | ||
5007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 | ||
5008 | $as_echo "$NROFF" >&6; } | ||
5009 | else | ||
5010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5011 | $as_echo "no" >&6; } | ||
5012 | fi | ||
5013 | |||
5014 | |||
5015 | # Extract the first word of "mandoc", so it can be a program name with args. | ||
5016 | set dummy mandoc; ac_word=$2 | ||
5017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5018 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5019 | if ${ac_cv_path_MANDOC+:} false; then : | ||
5020 | $as_echo_n "(cached) " >&6 | ||
5021 | else | ||
5022 | case $MANDOC in | ||
5023 | [\\/]* | ?:[\\/]*) | ||
5024 | ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path. | ||
5025 | ;; | ||
5026 | *) | ||
5027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5028 | for as_dir in $PATH | ||
5029 | do | ||
5030 | IFS=$as_save_IFS | ||
5031 | test -z "$as_dir" && as_dir=. | ||
5032 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5033 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5034 | ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext" | ||
5035 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5036 | break 2 | ||
5037 | fi | ||
5038 | done | ||
5039 | done | ||
5040 | IFS=$as_save_IFS | ||
5041 | |||
5042 | ;; | ||
5043 | esac | ||
5044 | fi | ||
5045 | MANDOC=$ac_cv_path_MANDOC | ||
5046 | if test -n "$MANDOC"; then | ||
5047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5 | ||
5048 | $as_echo "$MANDOC" >&6; } | ||
5049 | else | ||
5050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5051 | $as_echo "no" >&6; } | ||
5052 | fi | ||
5053 | |||
5054 | |||
5055 | TEST_SHELL=sh | ||
5056 | |||
5057 | |||
5058 | if test "x$MANDOC" != "x" ; then | ||
5059 | MANFMT="$MANDOC" | ||
5060 | elif test "x$NROFF" != "x" ; then | ||
5061 | MANFMT="$NROFF -mandoc" | ||
5062 | elif test "x$GROFF" != "x" ; then | ||
5063 | MANFMT="$GROFF -mandoc -Tascii" | ||
5064 | else | ||
5065 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5 | ||
5066 | $as_echo "$as_me: WARNING: no manpage formatted found" >&2;} | ||
5067 | MANFMT="false" | ||
5068 | fi | ||
5069 | |||
5070 | |||
5071 | # Extract the first word of "groupadd", so it can be a program name with args. | ||
5072 | set dummy groupadd; ac_word=$2 | ||
5073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5074 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5075 | if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then : | ||
5076 | $as_echo_n "(cached) " >&6 | ||
5077 | else | ||
5078 | case $PATH_GROUPADD_PROG in | ||
5079 | [\\/]* | ?:[\\/]*) | ||
5080 | ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path. | ||
5081 | ;; | ||
5082 | *) | ||
5083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5084 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
5085 | do | ||
5086 | IFS=$as_save_IFS | ||
5087 | test -z "$as_dir" && as_dir=. | ||
5088 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5089 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5090 | ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5091 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5092 | break 2 | ||
5093 | fi | ||
5094 | done | ||
5095 | done | ||
5096 | IFS=$as_save_IFS | ||
5097 | |||
5098 | test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" | ||
5099 | ;; | ||
5100 | esac | ||
5101 | fi | ||
5102 | PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG | ||
5103 | if test -n "$PATH_GROUPADD_PROG"; then | ||
5104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5 | ||
5105 | $as_echo "$PATH_GROUPADD_PROG" >&6; } | ||
5106 | else | ||
5107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5108 | $as_echo "no" >&6; } | ||
5109 | fi | ||
5110 | |||
5111 | |||
5112 | # Extract the first word of "useradd", so it can be a program name with args. | ||
5113 | set dummy useradd; ac_word=$2 | ||
5114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5115 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5116 | if ${ac_cv_path_PATH_USERADD_PROG+:} false; then : | ||
5117 | $as_echo_n "(cached) " >&6 | ||
5118 | else | ||
5119 | case $PATH_USERADD_PROG in | ||
5120 | [\\/]* | ?:[\\/]*) | ||
5121 | ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path. | ||
5122 | ;; | ||
5123 | *) | ||
5124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5125 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
5126 | do | ||
5127 | IFS=$as_save_IFS | ||
5128 | test -z "$as_dir" && as_dir=. | ||
5129 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5130 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5131 | ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5132 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5133 | break 2 | ||
5134 | fi | ||
5135 | done | ||
5136 | done | ||
5137 | IFS=$as_save_IFS | ||
5138 | |||
5139 | test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" | ||
5140 | ;; | ||
5141 | esac | ||
5142 | fi | ||
5143 | PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG | ||
5144 | if test -n "$PATH_USERADD_PROG"; then | ||
5145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5 | ||
5146 | $as_echo "$PATH_USERADD_PROG" >&6; } | ||
5147 | else | ||
5148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5149 | $as_echo "no" >&6; } | ||
5150 | fi | ||
5151 | |||
5152 | |||
5153 | # Extract the first word of "pkgmk", so it can be a program name with args. | ||
5154 | set dummy pkgmk; ac_word=$2 | ||
5155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5156 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5157 | if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then : | ||
5158 | $as_echo_n "(cached) " >&6 | ||
5159 | else | ||
5160 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
5161 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. | ||
5162 | else | ||
5163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5164 | for as_dir in $PATH | ||
5165 | do | ||
5166 | IFS=$as_save_IFS | ||
5167 | test -z "$as_dir" && as_dir=. | ||
5168 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5169 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5170 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" | ||
5171 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5172 | break 2 | ||
5173 | fi | ||
5174 | done | ||
5175 | done | ||
5176 | IFS=$as_save_IFS | ||
5177 | |||
5178 | test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" | ||
5179 | fi | ||
5180 | fi | ||
5181 | MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED | ||
5182 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
5183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5 | ||
5184 | $as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; } | ||
5185 | else | ||
5186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5187 | $as_echo "no" >&6; } | ||
5188 | fi | ||
5189 | |||
5190 | |||
5191 | if test -x /sbin/sh; then | ||
5192 | STARTUP_SCRIPT_SHELL=/sbin/sh | ||
5193 | |||
5194 | else | ||
5195 | STARTUP_SCRIPT_SHELL=/bin/sh | ||
5196 | |||
5197 | fi | ||
5198 | |||
5199 | # System features | ||
5200 | # Check whether --enable-largefile was given. | ||
5201 | if test "${enable_largefile+set}" = set; then : | ||
5202 | enableval=$enable_largefile; | ||
5203 | fi | ||
5204 | |||
5205 | if test "$enable_largefile" != no; then | ||
5206 | |||
5207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | ||
5208 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | ||
5209 | if ${ac_cv_sys_largefile_CC+:} false; then : | ||
5210 | $as_echo_n "(cached) " >&6 | ||
5211 | else | ||
5212 | ac_cv_sys_largefile_CC=no | ||
5213 | if test "$GCC" != yes; then | ||
5214 | ac_save_CC=$CC | ||
5215 | while :; do | ||
5216 | # IRIX 6.2 and later do not support large files by default, | ||
5217 | # so use the C compiler's -n32 option if that helps. | ||
5218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5219 | /* end confdefs.h. */ | ||
5220 | #include <sys/types.h> | ||
5221 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5222 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5223 | since some C++ compilers masquerading as C compilers | ||
5224 | incorrectly reject 9223372036854775807. */ | ||
5225 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5226 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5227 | && LARGE_OFF_T % 2147483647 == 1) | ||
5228 | ? 1 : -1]; | ||
5229 | int | ||
5230 | main () | ||
5231 | { | ||
5232 | |||
5233 | ; | ||
5234 | return 0; | ||
5235 | } | ||
5236 | _ACEOF | ||
5237 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5238 | break | ||
5239 | fi | ||
5240 | rm -f core conftest.err conftest.$ac_objext | ||
5241 | CC="$CC -n32" | ||
5242 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5243 | ac_cv_sys_largefile_CC=' -n32'; break | ||
5244 | fi | ||
5245 | rm -f core conftest.err conftest.$ac_objext | ||
5246 | break | ||
5247 | done | ||
5248 | CC=$ac_save_CC | ||
5249 | rm -f conftest.$ac_ext | ||
5250 | fi | ||
5251 | fi | ||
5252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | ||
5253 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | ||
5254 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
5255 | CC=$CC$ac_cv_sys_largefile_CC | ||
5256 | fi | ||
5257 | |||
5258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
5259 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | ||
5260 | if ${ac_cv_sys_file_offset_bits+:} false; then : | ||
5261 | $as_echo_n "(cached) " >&6 | ||
5262 | else | ||
5263 | while :; do | ||
5264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5265 | /* end confdefs.h. */ | ||
5266 | #include <sys/types.h> | ||
5267 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5268 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5269 | since some C++ compilers masquerading as C compilers | ||
5270 | incorrectly reject 9223372036854775807. */ | ||
5271 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5272 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5273 | && LARGE_OFF_T % 2147483647 == 1) | ||
5274 | ? 1 : -1]; | ||
5275 | int | ||
5276 | main () | ||
5277 | { | ||
5278 | |||
5279 | ; | ||
5280 | return 0; | ||
5281 | } | ||
5282 | _ACEOF | ||
5283 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5284 | ac_cv_sys_file_offset_bits=no; break | ||
5285 | fi | ||
5286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5288 | /* end confdefs.h. */ | ||
5289 | #define _FILE_OFFSET_BITS 64 | ||
5290 | #include <sys/types.h> | ||
5291 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5292 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5293 | since some C++ compilers masquerading as C compilers | ||
5294 | incorrectly reject 9223372036854775807. */ | ||
5295 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5296 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5297 | && LARGE_OFF_T % 2147483647 == 1) | ||
5298 | ? 1 : -1]; | ||
5299 | int | ||
5300 | main () | ||
5301 | { | ||
5302 | |||
5303 | ; | ||
5304 | return 0; | ||
5305 | } | ||
5306 | _ACEOF | ||
5307 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5308 | ac_cv_sys_file_offset_bits=64; break | ||
5309 | fi | ||
5310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5311 | ac_cv_sys_file_offset_bits=unknown | ||
5312 | break | ||
5313 | done | ||
5314 | fi | ||
5315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | ||
5316 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | ||
5317 | case $ac_cv_sys_file_offset_bits in #( | ||
5318 | no | unknown) ;; | ||
5319 | *) | ||
5320 | cat >>confdefs.h <<_ACEOF | ||
5321 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
5322 | _ACEOF | ||
5323 | ;; | ||
5324 | esac | ||
5325 | rm -rf conftest* | ||
5326 | if test $ac_cv_sys_file_offset_bits = unknown; then | ||
5327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | ||
5328 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | ||
5329 | if ${ac_cv_sys_large_files+:} false; then : | ||
5330 | $as_echo_n "(cached) " >&6 | ||
5331 | else | ||
5332 | while :; do | ||
5333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5334 | /* end confdefs.h. */ | ||
5335 | #include <sys/types.h> | ||
5336 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5337 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5338 | since some C++ compilers masquerading as C compilers | ||
5339 | incorrectly reject 9223372036854775807. */ | ||
5340 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5341 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5342 | && LARGE_OFF_T % 2147483647 == 1) | ||
5343 | ? 1 : -1]; | ||
5344 | int | ||
5345 | main () | ||
5346 | { | ||
5347 | |||
5348 | ; | ||
5349 | return 0; | ||
5350 | } | ||
5351 | _ACEOF | ||
5352 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5353 | ac_cv_sys_large_files=no; break | ||
5354 | fi | ||
5355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5357 | /* end confdefs.h. */ | ||
5358 | #define _LARGE_FILES 1 | ||
5359 | #include <sys/types.h> | ||
5360 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5361 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5362 | since some C++ compilers masquerading as C compilers | ||
5363 | incorrectly reject 9223372036854775807. */ | ||
5364 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5365 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5366 | && LARGE_OFF_T % 2147483647 == 1) | ||
5367 | ? 1 : -1]; | ||
5368 | int | ||
5369 | main () | ||
5370 | { | ||
5371 | |||
5372 | ; | ||
5373 | return 0; | ||
5374 | } | ||
5375 | _ACEOF | ||
5376 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5377 | ac_cv_sys_large_files=1; break | ||
5378 | fi | ||
5379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5380 | ac_cv_sys_large_files=unknown | ||
5381 | break | ||
5382 | done | ||
5383 | fi | ||
5384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | ||
5385 | $as_echo "$ac_cv_sys_large_files" >&6; } | ||
5386 | case $ac_cv_sys_large_files in #( | ||
5387 | no | unknown) ;; | ||
5388 | *) | ||
5389 | cat >>confdefs.h <<_ACEOF | ||
5390 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
5391 | _ACEOF | ||
5392 | ;; | ||
5393 | esac | ||
5394 | rm -rf conftest* | ||
5395 | fi | ||
5396 | fi | ||
5397 | |||
5398 | |||
5399 | if test -z "$AR" ; then | ||
5400 | as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5 | ||
5401 | fi | ||
5402 | |||
5403 | # Use LOGIN_PROGRAM from environment if possible | ||
5404 | if test ! -z "$LOGIN_PROGRAM" ; then | ||
5405 | |||
5406 | cat >>confdefs.h <<_ACEOF | ||
5407 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" | ||
5408 | _ACEOF | ||
5409 | |||
5410 | else | ||
5411 | # Search for login | ||
5412 | # Extract the first word of "login", so it can be a program name with args. | ||
5413 | set dummy login; ac_word=$2 | ||
5414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5415 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5416 | if ${ac_cv_path_LOGIN_PROGRAM_FALLBACK+:} false; then : | ||
5417 | $as_echo_n "(cached) " >&6 | ||
5418 | else | ||
5419 | case $LOGIN_PROGRAM_FALLBACK in | ||
5420 | [\\/]* | ?:[\\/]*) | ||
5421 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. | ||
5422 | ;; | ||
5423 | *) | ||
5424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5425 | for as_dir in $PATH | ||
5426 | do | ||
5427 | IFS=$as_save_IFS | ||
5428 | test -z "$as_dir" && as_dir=. | ||
5429 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5430 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5431 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext" | ||
5432 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5433 | break 2 | ||
5434 | fi | ||
5435 | done | ||
5436 | done | ||
5437 | IFS=$as_save_IFS | ||
5438 | |||
5439 | ;; | ||
5440 | esac | ||
5441 | fi | ||
5442 | LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK | ||
5443 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then | ||
5444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOGIN_PROGRAM_FALLBACK" >&5 | ||
5445 | $as_echo "$LOGIN_PROGRAM_FALLBACK" >&6; } | ||
5446 | else | ||
5447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5448 | $as_echo "no" >&6; } | ||
5449 | fi | ||
5450 | |||
5451 | |||
5452 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | ||
5453 | cat >>confdefs.h <<_ACEOF | ||
5454 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" | ||
5455 | _ACEOF | ||
5456 | |||
5457 | fi | ||
5458 | fi | ||
5459 | |||
5460 | # Extract the first word of "passwd", so it can be a program name with args. | ||
5461 | set dummy passwd; ac_word=$2 | ||
5462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5463 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5464 | if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then : | ||
5465 | $as_echo_n "(cached) " >&6 | ||
5466 | else | ||
5467 | case $PATH_PASSWD_PROG in | ||
5468 | [\\/]* | ?:[\\/]*) | ||
5469 | ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. | ||
5470 | ;; | ||
5471 | *) | ||
5472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5473 | for as_dir in $PATH | ||
5474 | do | ||
5475 | IFS=$as_save_IFS | ||
5476 | test -z "$as_dir" && as_dir=. | ||
5477 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5478 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5479 | ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5480 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5481 | break 2 | ||
5482 | fi | ||
5483 | done | ||
5484 | done | ||
5485 | IFS=$as_save_IFS | ||
5486 | |||
5487 | ;; | ||
5488 | esac | ||
5489 | fi | ||
5490 | PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG | ||
5491 | if test -n "$PATH_PASSWD_PROG"; then | ||
5492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5 | ||
5493 | $as_echo "$PATH_PASSWD_PROG" >&6; } | ||
5494 | else | ||
5495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5496 | $as_echo "no" >&6; } | ||
5497 | fi | ||
5498 | |||
5499 | |||
5500 | if test ! -z "$PATH_PASSWD_PROG" ; then | ||
5501 | |||
5502 | cat >>confdefs.h <<_ACEOF | ||
5503 | #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" | ||
5504 | _ACEOF | ||
5505 | |||
5506 | fi | ||
5507 | |||
5508 | if test -z "$LD" ; then | ||
5509 | LD=$CC | ||
5510 | fi | ||
5511 | |||
5512 | |||
5513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | ||
5514 | $as_echo_n "checking for inline... " >&6; } | ||
5515 | if ${ac_cv_c_inline+:} false; then : | ||
5516 | $as_echo_n "(cached) " >&6 | ||
5517 | else | ||
5518 | ac_cv_c_inline=no | ||
5519 | for ac_kw in inline __inline__ __inline; do | ||
5520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5521 | /* end confdefs.h. */ | ||
5522 | #ifndef __cplusplus | ||
5523 | typedef int foo_t; | ||
5524 | static $ac_kw foo_t static_foo () {return 0; } | ||
5525 | $ac_kw foo_t foo () {return 0; } | ||
5526 | #endif | ||
5527 | |||
5528 | _ACEOF | ||
5529 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5530 | ac_cv_c_inline=$ac_kw | ||
5531 | fi | ||
5532 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5533 | test "$ac_cv_c_inline" != no && break | ||
5534 | done | ||
5535 | |||
5536 | fi | ||
5537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | ||
5538 | $as_echo "$ac_cv_c_inline" >&6; } | ||
5539 | |||
5540 | case $ac_cv_c_inline in | ||
5541 | inline | yes) ;; | ||
5542 | *) | ||
5543 | case $ac_cv_c_inline in | ||
5544 | no) ac_val=;; | ||
5545 | *) ac_val=$ac_cv_c_inline;; | ||
5546 | esac | ||
5547 | cat >>confdefs.h <<_ACEOF | ||
5548 | #ifndef __cplusplus | ||
5549 | #define inline $ac_val | ||
5550 | #endif | ||
5551 | _ACEOF | ||
5552 | ;; | ||
5553 | esac | ||
5554 | |||
5555 | |||
5556 | ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h> | ||
5557 | " | ||
5558 | if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then : | ||
5559 | have_llong_max=1 | ||
5560 | fi | ||
5561 | |||
5562 | ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" " | ||
5563 | #include <sys/types.h> | ||
5564 | #include <sys/param.h> | ||
5565 | #include <dev/systrace.h> | ||
5566 | |||
5567 | " | ||
5568 | if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = xyes; then : | ||
5569 | have_systr_policy_kill=1 | ||
5570 | fi | ||
5571 | |||
5572 | ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" " | ||
5573 | #include <sys/types.h> | ||
5574 | #include <sys/resource.h> | ||
5575 | |||
5576 | " | ||
5577 | if test "x$ac_cv_have_decl_RLIMIT_NPROC" = xyes; then : | ||
5578 | |||
5579 | $as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h | ||
5580 | |||
5581 | fi | ||
5582 | |||
5583 | ac_fn_c_check_decl "$LINENO" "PR_SET_NO_NEW_PRIVS" "ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" " | ||
5584 | #include <sys/types.h> | ||
5585 | #include <linux/prctl.h> | ||
5586 | |||
5587 | " | ||
5588 | if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then : | ||
5589 | have_linux_no_new_privs=1 | ||
5590 | fi | ||
5591 | |||
5592 | use_stack_protector=1 | ||
5593 | |||
5594 | # Check whether --with-stackprotect was given. | ||
5595 | if test "${with_stackprotect+set}" = set; then : | ||
5596 | withval=$with_stackprotect; | ||
5597 | if test "x$withval" = "xno"; then | ||
5598 | use_stack_protector=0 | ||
5599 | fi | ||
5600 | fi | ||
5601 | |||
5602 | |||
5603 | |||
5604 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
5605 | { | ||
5606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 | ||
5607 | $as_echo_n "checking if $CC supports -Wall... " >&6; } | ||
5608 | saved_CFLAGS="$CFLAGS" | ||
5609 | CFLAGS="$CFLAGS -Wall" | ||
5610 | _define_flag="" | ||
5611 | test "x$_define_flag" = "x" && _define_flag="-Wall" | ||
5612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5613 | /* end confdefs.h. */ | ||
5614 | int main(void) { return 0; } | ||
5615 | _ACEOF | ||
5616 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5618 | $as_echo "yes" >&6; } | ||
5619 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5620 | else | ||
5621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5622 | $as_echo "no" >&6; } | ||
5623 | CFLAGS="$saved_CFLAGS" | ||
5624 | |||
5625 | fi | ||
5626 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5627 | } | ||
5628 | { | ||
5629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 | ||
5630 | $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } | ||
5631 | saved_CFLAGS="$CFLAGS" | ||
5632 | CFLAGS="$CFLAGS -Wpointer-arith" | ||
5633 | _define_flag="" | ||
5634 | test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith" | ||
5635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5636 | /* end confdefs.h. */ | ||
5637 | int main(void) { return 0; } | ||
5638 | _ACEOF | ||
5639 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5641 | $as_echo "yes" >&6; } | ||
5642 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5643 | else | ||
5644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5645 | $as_echo "no" >&6; } | ||
5646 | CFLAGS="$saved_CFLAGS" | ||
5647 | |||
5648 | fi | ||
5649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5650 | } | ||
5651 | { | ||
5652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 | ||
5653 | $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } | ||
5654 | saved_CFLAGS="$CFLAGS" | ||
5655 | CFLAGS="$CFLAGS -Wuninitialized" | ||
5656 | _define_flag="" | ||
5657 | test "x$_define_flag" = "x" && _define_flag="-Wuninitialized" | ||
5658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5659 | /* end confdefs.h. */ | ||
5660 | int main(void) { return 0; } | ||
5661 | _ACEOF | ||
5662 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5664 | $as_echo "yes" >&6; } | ||
5665 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5666 | else | ||
5667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5668 | $as_echo "no" >&6; } | ||
5669 | CFLAGS="$saved_CFLAGS" | ||
5670 | |||
5671 | fi | ||
5672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5673 | } | ||
5674 | { | ||
5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsign-compare" >&5 | ||
5676 | $as_echo_n "checking if $CC supports -Wsign-compare... " >&6; } | ||
5677 | saved_CFLAGS="$CFLAGS" | ||
5678 | CFLAGS="$CFLAGS -Wsign-compare" | ||
5679 | _define_flag="" | ||
5680 | test "x$_define_flag" = "x" && _define_flag="-Wsign-compare" | ||
5681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5682 | /* end confdefs.h. */ | ||
5683 | int main(void) { return 0; } | ||
5684 | _ACEOF | ||
5685 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5687 | $as_echo "yes" >&6; } | ||
5688 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5689 | else | ||
5690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5691 | $as_echo "no" >&6; } | ||
5692 | CFLAGS="$saved_CFLAGS" | ||
5693 | |||
5694 | fi | ||
5695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5696 | } | ||
5697 | { | ||
5698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-security" >&5 | ||
5699 | $as_echo_n "checking if $CC supports -Wformat-security... " >&6; } | ||
5700 | saved_CFLAGS="$CFLAGS" | ||
5701 | CFLAGS="$CFLAGS -Wformat-security" | ||
5702 | _define_flag="" | ||
5703 | test "x$_define_flag" = "x" && _define_flag="-Wformat-security" | ||
5704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5705 | /* end confdefs.h. */ | ||
5706 | int main(void) { return 0; } | ||
5707 | _ACEOF | ||
5708 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5710 | $as_echo "yes" >&6; } | ||
5711 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5712 | else | ||
5713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5714 | $as_echo "no" >&6; } | ||
5715 | CFLAGS="$saved_CFLAGS" | ||
5716 | |||
5717 | fi | ||
5718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5719 | } | ||
5720 | { | ||
5721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-sign" >&5 | ||
5722 | $as_echo_n "checking if $CC supports -Wpointer-sign... " >&6; } | ||
5723 | saved_CFLAGS="$CFLAGS" | ||
5724 | CFLAGS="$CFLAGS -Wpointer-sign" | ||
5725 | _define_flag="-Wno-pointer-sign" | ||
5726 | test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign" | ||
5727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5728 | /* end confdefs.h. */ | ||
5729 | int main(void) { return 0; } | ||
5730 | _ACEOF | ||
5731 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5733 | $as_echo "yes" >&6; } | ||
5734 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5735 | else | ||
5736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5737 | $as_echo "no" >&6; } | ||
5738 | CFLAGS="$saved_CFLAGS" | ||
5739 | |||
5740 | fi | ||
5741 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5742 | } | ||
5743 | { | ||
5744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused-result" >&5 | ||
5745 | $as_echo_n "checking if $CC supports -Wunused-result... " >&6; } | ||
5746 | saved_CFLAGS="$CFLAGS" | ||
5747 | CFLAGS="$CFLAGS -Wunused-result" | ||
5748 | _define_flag="-Wno-unused-result" | ||
5749 | test "x$_define_flag" = "x" && _define_flag="-Wunused-result" | ||
5750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5751 | /* end confdefs.h. */ | ||
5752 | int main(void) { return 0; } | ||
5753 | _ACEOF | ||
5754 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5756 | $as_echo "yes" >&6; } | ||
5757 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5758 | else | ||
5759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5760 | $as_echo "no" >&6; } | ||
5761 | CFLAGS="$saved_CFLAGS" | ||
5762 | |||
5763 | fi | ||
5764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5765 | } | ||
5766 | { | ||
5767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-strict-aliasing" >&5 | ||
5768 | $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; } | ||
5769 | saved_CFLAGS="$CFLAGS" | ||
5770 | CFLAGS="$CFLAGS -fno-strict-aliasing" | ||
5771 | _define_flag="" | ||
5772 | test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing" | ||
5773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5774 | /* end confdefs.h. */ | ||
5775 | int main(void) { return 0; } | ||
5776 | _ACEOF | ||
5777 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5779 | $as_echo "yes" >&6; } | ||
5780 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5781 | else | ||
5782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5783 | $as_echo "no" >&6; } | ||
5784 | CFLAGS="$saved_CFLAGS" | ||
5785 | |||
5786 | fi | ||
5787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5788 | } | ||
5789 | { | ||
5790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -D_FORTIFY_SOURCE=2" >&5 | ||
5791 | $as_echo_n "checking if $CC supports -D_FORTIFY_SOURCE=2... " >&6; } | ||
5792 | saved_CFLAGS="$CFLAGS" | ||
5793 | CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2" | ||
5794 | _define_flag="" | ||
5795 | test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2" | ||
5796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5797 | /* end confdefs.h. */ | ||
5798 | int main(void) { return 0; } | ||
5799 | _ACEOF | ||
5800 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5802 | $as_echo "yes" >&6; } | ||
5803 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5804 | else | ||
5805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5806 | $as_echo "no" >&6; } | ||
5807 | CFLAGS="$saved_CFLAGS" | ||
5808 | |||
5809 | fi | ||
5810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5811 | } | ||
5812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5 | ||
5813 | $as_echo_n "checking gcc version... " >&6; } | ||
5814 | GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` | ||
5815 | case $GCC_VER in | ||
5816 | 1.*) no_attrib_nonnull=1 ;; | ||
5817 | 2.8* | 2.9*) | ||
5818 | no_attrib_nonnull=1 | ||
5819 | ;; | ||
5820 | 2.*) no_attrib_nonnull=1 ;; | ||
5821 | *) ;; | ||
5822 | esac | ||
5823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5 | ||
5824 | $as_echo "$GCC_VER" >&6; } | ||
5825 | |||
5826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5 | ||
5827 | $as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; } | ||
5828 | saved_CFLAGS="$CFLAGS" | ||
5829 | CFLAGS="$CFLAGS -fno-builtin-memset" | ||
5830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5831 | /* end confdefs.h. */ | ||
5832 | #include <string.h> | ||
5833 | int | ||
5834 | main () | ||
5835 | { | ||
5836 | char b[10]; memset(b, 0, sizeof(b)); | ||
5837 | ; | ||
5838 | return 0; | ||
5839 | } | ||
5840 | _ACEOF | ||
5841 | if ac_fn_c_try_link "$LINENO"; then : | ||
5842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5843 | $as_echo "yes" >&6; } | ||
5844 | else | ||
5845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5846 | $as_echo "no" >&6; } | ||
5847 | CFLAGS="$saved_CFLAGS" | ||
5848 | |||
5849 | fi | ||
5850 | rm -f core conftest.err conftest.$ac_objext \ | ||
5851 | conftest$ac_exeext conftest.$ac_ext | ||
5852 | |||
5853 | # -fstack-protector-all doesn't always work for some GCC versions | ||
5854 | # and/or platforms, so we test if we can. If it's not supported | ||
5855 | # on a given platform gcc will emit a warning so we use -Werror. | ||
5856 | if test "x$use_stack_protector" = "x1"; then | ||
5857 | for t in -fstack-protector-all -fstack-protector; do | ||
5858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5 | ||
5859 | $as_echo_n "checking if $CC supports $t... " >&6; } | ||
5860 | saved_CFLAGS="$CFLAGS" | ||
5861 | saved_LDFLAGS="$LDFLAGS" | ||
5862 | CFLAGS="$CFLAGS $t -Werror" | ||
5863 | LDFLAGS="$LDFLAGS $t -Werror" | ||
5864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5865 | /* end confdefs.h. */ | ||
5866 | #include <stdio.h> | ||
5867 | int | ||
5868 | main () | ||
5869 | { | ||
5870 | |||
5871 | char x[256]; | ||
5872 | snprintf(x, sizeof(x), "XXX"); | ||
5873 | |||
5874 | ; | ||
5875 | return 0; | ||
5876 | } | ||
5877 | _ACEOF | ||
5878 | if ac_fn_c_try_link "$LINENO"; then : | ||
5879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5880 | $as_echo "yes" >&6; } | ||
5881 | CFLAGS="$saved_CFLAGS $t" | ||
5882 | LDFLAGS="$saved_LDFLAGS $t" | ||
5883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5 | ||
5884 | $as_echo_n "checking if $t works... " >&6; } | ||
5885 | if test "$cross_compiling" = yes; then : | ||
5886 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5 | ||
5887 | $as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;} | ||
5888 | break | ||
5889 | |||
5890 | else | ||
5891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5892 | /* end confdefs.h. */ | ||
5893 | #include <stdio.h> | ||
5894 | int | ||
5895 | main () | ||
5896 | { | ||
5897 | |||
5898 | char x[256]; | ||
5899 | snprintf(x, sizeof(x), "XXX"); | ||
5900 | |||
5901 | ; | ||
5902 | return 0; | ||
5903 | } | ||
5904 | _ACEOF | ||
5905 | if ac_fn_c_try_run "$LINENO"; then : | ||
5906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5907 | $as_echo "yes" >&6; } | ||
5908 | break | ||
5909 | else | ||
5910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5911 | $as_echo "no" >&6; } | ||
5912 | fi | ||
5913 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
5914 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
5915 | fi | ||
5916 | |||
5917 | |||
5918 | else | ||
5919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5920 | $as_echo "no" >&6; } | ||
5921 | |||
5922 | fi | ||
5923 | rm -f core conftest.err conftest.$ac_objext \ | ||
5924 | conftest$ac_exeext conftest.$ac_ext | ||
5925 | CFLAGS="$saved_CFLAGS" | ||
5926 | LDFLAGS="$saved_LDFLAGS" | ||
5927 | done | ||
5928 | fi | ||
5929 | |||
5930 | if test -z "$have_llong_max"; then | ||
5931 | # retry LLONG_MAX with -std=gnu99, needed on some Linuxes | ||
5932 | unset ac_cv_have_decl_LLONG_MAX | ||
5933 | saved_CFLAGS="$CFLAGS" | ||
5934 | CFLAGS="$CFLAGS -std=gnu99" | ||
5935 | ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h> | ||
5936 | |||
5937 | " | ||
5938 | if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then : | ||
5939 | have_llong_max=1 | ||
5940 | else | ||
5941 | CFLAGS="$saved_CFLAGS" | ||
5942 | fi | ||
5943 | |||
5944 | fi | ||
5945 | fi | ||
5946 | |||
5947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ on return types" >&5 | ||
5948 | $as_echo_n "checking if compiler allows __attribute__ on return types... " >&6; } | ||
5949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5950 | /* end confdefs.h. */ | ||
5951 | |||
5952 | #include <stdlib.h> | ||
5953 | __attribute__((__unused__)) static void foo(void){return;} | ||
5954 | int | ||
5955 | main () | ||
5956 | { | ||
5957 | exit(0); | ||
5958 | ; | ||
5959 | return 0; | ||
5960 | } | ||
5961 | _ACEOF | ||
5962 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5964 | $as_echo "yes" >&6; } | ||
5965 | else | ||
5966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5967 | $as_echo "no" >&6; } | ||
5968 | |||
5969 | $as_echo "#define NO_ATTRIBUTE_ON_RETURN_TYPE 1" >>confdefs.h | ||
5970 | |||
5971 | |||
5972 | fi | ||
5973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5974 | |||
5975 | if test "x$no_attrib_nonnull" != "x1" ; then | ||
5976 | |||
5977 | $as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h | ||
5978 | |||
5979 | fi | ||
5980 | |||
5981 | |||
5982 | # Check whether --with-rpath was given. | ||
5983 | if test "${with_rpath+set}" = set; then : | ||
5984 | withval=$with_rpath; | ||
5985 | if test "x$withval" = "xno" ; then | ||
5986 | need_dash_r="" | ||
5987 | fi | ||
5988 | if test "x$withval" = "xyes" ; then | ||
5989 | need_dash_r=1 | ||
5990 | fi | ||
5991 | |||
5992 | |||
5993 | fi | ||
5994 | |||
5995 | |||
5996 | # Allow user to specify flags | ||
5997 | |||
5998 | # Check whether --with-cflags was given. | ||
5999 | if test "${with_cflags+set}" = set; then : | ||
6000 | withval=$with_cflags; | ||
6001 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6002 | test "x${withval}" != "xyes"; then | ||
6003 | CFLAGS="$CFLAGS $withval" | ||
6004 | fi | ||
6005 | |||
6006 | |||
6007 | fi | ||
6008 | |||
6009 | |||
6010 | # Check whether --with-cppflags was given. | ||
6011 | if test "${with_cppflags+set}" = set; then : | ||
6012 | withval=$with_cppflags; | ||
6013 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6014 | test "x${withval}" != "xyes"; then | ||
6015 | CPPFLAGS="$CPPFLAGS $withval" | ||
6016 | fi | ||
6017 | |||
6018 | |||
6019 | fi | ||
6020 | |||
6021 | |||
6022 | # Check whether --with-ldflags was given. | ||
6023 | if test "${with_ldflags+set}" = set; then : | ||
6024 | withval=$with_ldflags; | ||
6025 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6026 | test "x${withval}" != "xyes"; then | ||
6027 | LDFLAGS="$LDFLAGS $withval" | ||
6028 | fi | ||
6029 | |||
6030 | |||
6031 | fi | ||
6032 | |||
6033 | |||
6034 | # Check whether --with-libs was given. | ||
6035 | if test "${with_libs+set}" = set; then : | ||
6036 | withval=$with_libs; | ||
6037 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6038 | test "x${withval}" != "xyes"; then | ||
6039 | LIBS="$LIBS $withval" | ||
6040 | fi | ||
6041 | |||
6042 | |||
6043 | fi | ||
6044 | |||
6045 | |||
6046 | # Check whether --with-Werror was given. | ||
6047 | if test "${with_Werror+set}" = set; then : | ||
6048 | withval=$with_Werror; | ||
6049 | if test -n "$withval" && test "x$withval" != "xno"; then | ||
6050 | werror_flags="-Werror" | ||
6051 | if test "x${withval}" != "xyes"; then | ||
6052 | werror_flags="$withval" | ||
6053 | fi | ||
6054 | fi | ||
6055 | |||
6056 | |||
6057 | fi | ||
6058 | |||
6059 | |||
6060 | for ac_header in \ | ||
6061 | bstring.h \ | ||
6062 | crypt.h \ | ||
6063 | crypto/sha2.h \ | ||
6064 | dirent.h \ | ||
6065 | endian.h \ | ||
6066 | elf.h \ | ||
6067 | features.h \ | ||
6068 | fcntl.h \ | ||
6069 | floatingpoint.h \ | ||
6070 | getopt.h \ | ||
6071 | glob.h \ | ||
6072 | ia.h \ | ||
6073 | iaf.h \ | ||
6074 | limits.h \ | ||
6075 | login.h \ | ||
6076 | maillock.h \ | ||
6077 | ndir.h \ | ||
6078 | net/if_tun.h \ | ||
6079 | netdb.h \ | ||
6080 | netgroup.h \ | ||
6081 | pam/pam_appl.h \ | ||
6082 | paths.h \ | ||
6083 | poll.h \ | ||
6084 | pty.h \ | ||
6085 | readpassphrase.h \ | ||
6086 | rpc/types.h \ | ||
6087 | security/pam_appl.h \ | ||
6088 | sha2.h \ | ||
6089 | shadow.h \ | ||
6090 | stddef.h \ | ||
6091 | stdint.h \ | ||
6092 | string.h \ | ||
6093 | strings.h \ | ||
6094 | sys/audit.h \ | ||
6095 | sys/bitypes.h \ | ||
6096 | sys/bsdtty.h \ | ||
6097 | sys/cdefs.h \ | ||
6098 | sys/dir.h \ | ||
6099 | sys/mman.h \ | ||
6100 | sys/ndir.h \ | ||
6101 | sys/poll.h \ | ||
6102 | sys/prctl.h \ | ||
6103 | sys/pstat.h \ | ||
6104 | sys/select.h \ | ||
6105 | sys/stat.h \ | ||
6106 | sys/stream.h \ | ||
6107 | sys/stropts.h \ | ||
6108 | sys/strtio.h \ | ||
6109 | sys/statvfs.h \ | ||
6110 | sys/sysmacros.h \ | ||
6111 | sys/time.h \ | ||
6112 | sys/timers.h \ | ||
6113 | sys/un.h \ | ||
6114 | time.h \ | ||
6115 | tmpdir.h \ | ||
6116 | ttyent.h \ | ||
6117 | ucred.h \ | ||
6118 | unistd.h \ | ||
6119 | usersec.h \ | ||
6120 | util.h \ | ||
6121 | utime.h \ | ||
6122 | utmp.h \ | ||
6123 | utmpx.h \ | ||
6124 | vis.h \ | ||
6125 | |||
6126 | do : | ||
6127 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6128 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
6129 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
6130 | cat >>confdefs.h <<_ACEOF | ||
6131 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6132 | _ACEOF | ||
6133 | |||
6134 | fi | ||
6135 | |||
6136 | done | ||
6137 | |||
6138 | |||
6139 | # lastlog.h requires sys/time.h to be included first on Solaris | ||
6140 | for ac_header in lastlog.h | ||
6141 | do : | ||
6142 | ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" " | ||
6143 | #ifdef HAVE_SYS_TIME_H | ||
6144 | # include <sys/time.h> | ||
6145 | #endif | ||
6146 | |||
6147 | " | ||
6148 | if test "x$ac_cv_header_lastlog_h" = xyes; then : | ||
6149 | cat >>confdefs.h <<_ACEOF | ||
6150 | #define HAVE_LASTLOG_H 1 | ||
6151 | _ACEOF | ||
6152 | |||
6153 | fi | ||
6154 | |||
6155 | done | ||
6156 | |||
6157 | |||
6158 | # sys/ptms.h requires sys/stream.h to be included first on Solaris | ||
6159 | for ac_header in sys/ptms.h | ||
6160 | do : | ||
6161 | ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" " | ||
6162 | #ifdef HAVE_SYS_STREAM_H | ||
6163 | # include <sys/stream.h> | ||
6164 | #endif | ||
6165 | |||
6166 | " | ||
6167 | if test "x$ac_cv_header_sys_ptms_h" = xyes; then : | ||
6168 | cat >>confdefs.h <<_ACEOF | ||
6169 | #define HAVE_SYS_PTMS_H 1 | ||
6170 | _ACEOF | ||
6171 | |||
6172 | fi | ||
6173 | |||
6174 | done | ||
6175 | |||
6176 | |||
6177 | # login_cap.h requires sys/types.h on NetBSD | ||
6178 | for ac_header in login_cap.h | ||
6179 | do : | ||
6180 | ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" " | ||
6181 | #include <sys/types.h> | ||
6182 | |||
6183 | " | ||
6184 | if test "x$ac_cv_header_login_cap_h" = xyes; then : | ||
6185 | cat >>confdefs.h <<_ACEOF | ||
6186 | #define HAVE_LOGIN_CAP_H 1 | ||
6187 | _ACEOF | ||
6188 | |||
6189 | fi | ||
6190 | |||
6191 | done | ||
6192 | |||
6193 | |||
6194 | # older BSDs need sys/param.h before sys/mount.h | ||
6195 | for ac_header in sys/mount.h | ||
6196 | do : | ||
6197 | ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" " | ||
6198 | #include <sys/param.h> | ||
6199 | |||
6200 | " | ||
6201 | if test "x$ac_cv_header_sys_mount_h" = xyes; then : | ||
6202 | cat >>confdefs.h <<_ACEOF | ||
6203 | #define HAVE_SYS_MOUNT_H 1 | ||
6204 | _ACEOF | ||
6205 | |||
6206 | fi | ||
6207 | |||
6208 | done | ||
6209 | |||
6210 | |||
6211 | # Messages for features tested for in target-specific section | ||
6212 | SIA_MSG="no" | ||
6213 | SPC_MSG="no" | ||
6214 | SP_MSG="no" | ||
6215 | |||
6216 | # Check for some target-specific stuff | ||
6217 | case "$host" in | ||
6218 | *-*-aix*) | ||
6219 | # Some versions of VAC won't allow macro redefinitions at | ||
6220 | # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that | ||
6221 | # particularly with older versions of vac or xlc. | ||
6222 | # It also throws errors about null macro argments, but these are | ||
6223 | # not fatal. | ||
6224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5 | ||
6225 | $as_echo_n "checking if compiler allows macro redefinitions... " >&6; } | ||
6226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6227 | /* end confdefs.h. */ | ||
6228 | |||
6229 | #define testmacro foo | ||
6230 | #define testmacro bar | ||
6231 | int | ||
6232 | main () | ||
6233 | { | ||
6234 | exit(0); | ||
6235 | ; | ||
6236 | return 0; | ||
6237 | } | ||
6238 | _ACEOF | ||
6239 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6241 | $as_echo "yes" >&6; } | ||
6242 | else | ||
6243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6244 | $as_echo "no" >&6; } | ||
6245 | CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`" | ||
6246 | LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`" | ||
6247 | CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
6248 | CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
6249 | |||
6250 | |||
6251 | fi | ||
6252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6253 | |||
6254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5 | ||
6255 | $as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; } | ||
6256 | if (test -z "$blibpath"); then | ||
6257 | blibpath="/usr/lib:/lib" | ||
6258 | fi | ||
6259 | saved_LDFLAGS="$LDFLAGS" | ||
6260 | if test "$GCC" = "yes"; then | ||
6261 | flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:" | ||
6262 | else | ||
6263 | flags="-blibpath: -Wl,-blibpath: -Wl,-rpath," | ||
6264 | fi | ||
6265 | for tryflags in $flags ;do | ||
6266 | if (test -z "$blibflags"); then | ||
6267 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" | ||
6268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6269 | /* end confdefs.h. */ | ||
6270 | |||
6271 | int | ||
6272 | main () | ||
6273 | { | ||
6274 | |||
6275 | ; | ||
6276 | return 0; | ||
6277 | } | ||
6278 | _ACEOF | ||
6279 | if ac_fn_c_try_link "$LINENO"; then : | ||
6280 | blibflags=$tryflags | ||
6281 | fi | ||
6282 | rm -f core conftest.err conftest.$ac_objext \ | ||
6283 | conftest$ac_exeext conftest.$ac_ext | ||
6284 | fi | ||
6285 | done | ||
6286 | if (test -z "$blibflags"); then | ||
6287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
6288 | $as_echo "not found" >&6; } | ||
6289 | as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5 | ||
6290 | else | ||
6291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5 | ||
6292 | $as_echo "$blibflags" >&6; } | ||
6293 | fi | ||
6294 | LDFLAGS="$saved_LDFLAGS" | ||
6295 | ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate" | ||
6296 | if test "x$ac_cv_func_authenticate" = xyes; then : | ||
6297 | |||
6298 | $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h | ||
6299 | |||
6300 | else | ||
6301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5 | ||
6302 | $as_echo_n "checking for authenticate in -ls... " >&6; } | ||
6303 | if ${ac_cv_lib_s_authenticate+:} false; then : | ||
6304 | $as_echo_n "(cached) " >&6 | ||
6305 | else | ||
6306 | ac_check_lib_save_LIBS=$LIBS | ||
6307 | LIBS="-ls $LIBS" | ||
6308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6309 | /* end confdefs.h. */ | ||
6310 | |||
6311 | /* Override any GCC internal prototype to avoid an error. | ||
6312 | Use char because int might match the return type of a GCC | ||
6313 | builtin and then its argument prototype would still apply. */ | ||
6314 | #ifdef __cplusplus | ||
6315 | extern "C" | ||
6316 | #endif | ||
6317 | char authenticate (); | ||
6318 | int | ||
6319 | main () | ||
6320 | { | ||
6321 | return authenticate (); | ||
6322 | ; | ||
6323 | return 0; | ||
6324 | } | ||
6325 | _ACEOF | ||
6326 | if ac_fn_c_try_link "$LINENO"; then : | ||
6327 | ac_cv_lib_s_authenticate=yes | ||
6328 | else | ||
6329 | ac_cv_lib_s_authenticate=no | ||
6330 | fi | ||
6331 | rm -f core conftest.err conftest.$ac_objext \ | ||
6332 | conftest$ac_exeext conftest.$ac_ext | ||
6333 | LIBS=$ac_check_lib_save_LIBS | ||
6334 | fi | ||
6335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5 | ||
6336 | $as_echo "$ac_cv_lib_s_authenticate" >&6; } | ||
6337 | if test "x$ac_cv_lib_s_authenticate" = xyes; then : | ||
6338 | $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h | ||
6339 | |||
6340 | LIBS="$LIBS -ls" | ||
6341 | |||
6342 | fi | ||
6343 | |||
6344 | |||
6345 | fi | ||
6346 | |||
6347 | ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h> | ||
6348 | " | ||
6349 | if test "x$ac_cv_have_decl_authenticate" = xyes; then : | ||
6350 | ac_have_decl=1 | ||
6351 | else | ||
6352 | ac_have_decl=0 | ||
6353 | fi | ||
6354 | |||
6355 | cat >>confdefs.h <<_ACEOF | ||
6356 | #define HAVE_DECL_AUTHENTICATE $ac_have_decl | ||
6357 | _ACEOF | ||
6358 | ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h> | ||
6359 | " | ||
6360 | if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then : | ||
6361 | ac_have_decl=1 | ||
6362 | else | ||
6363 | ac_have_decl=0 | ||
6364 | fi | ||
6365 | |||
6366 | cat >>confdefs.h <<_ACEOF | ||
6367 | #define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl | ||
6368 | _ACEOF | ||
6369 | ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h> | ||
6370 | " | ||
6371 | if test "x$ac_cv_have_decl_loginsuccess" = xyes; then : | ||
6372 | ac_have_decl=1 | ||
6373 | else | ||
6374 | ac_have_decl=0 | ||
6375 | fi | ||
6376 | |||
6377 | cat >>confdefs.h <<_ACEOF | ||
6378 | #define HAVE_DECL_LOGINSUCCESS $ac_have_decl | ||
6379 | _ACEOF | ||
6380 | ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h> | ||
6381 | " | ||
6382 | if test "x$ac_cv_have_decl_passwdexpired" = xyes; then : | ||
6383 | ac_have_decl=1 | ||
6384 | else | ||
6385 | ac_have_decl=0 | ||
6386 | fi | ||
6387 | |||
6388 | cat >>confdefs.h <<_ACEOF | ||
6389 | #define HAVE_DECL_PASSWDEXPIRED $ac_have_decl | ||
6390 | _ACEOF | ||
6391 | ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h> | ||
6392 | " | ||
6393 | if test "x$ac_cv_have_decl_setauthdb" = xyes; then : | ||
6394 | ac_have_decl=1 | ||
6395 | else | ||
6396 | ac_have_decl=0 | ||
6397 | fi | ||
6398 | |||
6399 | cat >>confdefs.h <<_ACEOF | ||
6400 | #define HAVE_DECL_SETAUTHDB $ac_have_decl | ||
6401 | _ACEOF | ||
6402 | |||
6403 | ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h> | ||
6404 | |||
6405 | " | ||
6406 | if test "x$ac_cv_have_decl_loginfailed" = xyes; then : | ||
6407 | ac_have_decl=1 | ||
6408 | else | ||
6409 | ac_have_decl=0 | ||
6410 | fi | ||
6411 | |||
6412 | cat >>confdefs.h <<_ACEOF | ||
6413 | #define HAVE_DECL_LOGINFAILED $ac_have_decl | ||
6414 | _ACEOF | ||
6415 | if test $ac_have_decl = 1; then : | ||
6416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5 | ||
6417 | $as_echo_n "checking if loginfailed takes 4 arguments... " >&6; } | ||
6418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6419 | /* end confdefs.h. */ | ||
6420 | #include <usersec.h> | ||
6421 | int | ||
6422 | main () | ||
6423 | { | ||
6424 | (void)loginfailed("user","host","tty",0); | ||
6425 | ; | ||
6426 | return 0; | ||
6427 | } | ||
6428 | _ACEOF | ||
6429 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6431 | $as_echo "yes" >&6; } | ||
6432 | |||
6433 | $as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h | ||
6434 | |||
6435 | else | ||
6436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6437 | $as_echo "no" >&6; } | ||
6438 | |||
6439 | fi | ||
6440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6441 | fi | ||
6442 | |||
6443 | for ac_func in getgrset setauthdb | ||
6444 | do : | ||
6445 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6446 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
6447 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
6448 | cat >>confdefs.h <<_ACEOF | ||
6449 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6450 | _ACEOF | ||
6451 | |||
6452 | fi | ||
6453 | done | ||
6454 | |||
6455 | ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h> | ||
6456 | #include <fcntl.h> | ||
6457 | |||
6458 | " | ||
6459 | if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then : | ||
6460 | |||
6461 | $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h | ||
6462 | |||
6463 | fi | ||
6464 | |||
6465 | check_for_aix_broken_getaddrinfo=1 | ||
6466 | |||
6467 | $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h | ||
6468 | |||
6469 | |||
6470 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
6471 | |||
6472 | |||
6473 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
6474 | |||
6475 | |||
6476 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
6477 | |||
6478 | |||
6479 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
6480 | |||
6481 | |||
6482 | $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h | ||
6483 | |||
6484 | |||
6485 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
6486 | |||
6487 | |||
6488 | $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h | ||
6489 | |||
6490 | |||
6491 | $as_echo "#define PTY_ZEROREAD 1" >>confdefs.h | ||
6492 | |||
6493 | |||
6494 | $as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h | ||
6495 | |||
6496 | ;; | ||
6497 | *-*-cygwin*) | ||
6498 | check_for_libcrypt_later=1 | ||
6499 | LIBS="$LIBS /usr/lib/textreadmode.o" | ||
6500 | |||
6501 | $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h | ||
6502 | |||
6503 | |||
6504 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
6505 | |||
6506 | |||
6507 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h | ||
6508 | |||
6509 | |||
6510 | $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h | ||
6511 | |||
6512 | |||
6513 | $as_echo "#define NO_IPPORT_RESERVED_CONCEPT 1" >>confdefs.h | ||
6514 | |||
6515 | |||
6516 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
6517 | |||
6518 | |||
6519 | $as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h | ||
6520 | |||
6521 | |||
6522 | $as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h | ||
6523 | |||
6524 | ;; | ||
6525 | *-*-dgux*) | ||
6526 | |||
6527 | $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h | ||
6528 | |||
6529 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
6530 | |||
6531 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
6532 | |||
6533 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
6534 | |||
6535 | ;; | ||
6536 | *-*-darwin*) | ||
6537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5 | ||
6538 | $as_echo_n "checking if we have working getaddrinfo... " >&6; } | ||
6539 | if test "$cross_compiling" = yes; then : | ||
6540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5 | ||
6541 | $as_echo "assume it is working" >&6; } | ||
6542 | else | ||
6543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6544 | /* end confdefs.h. */ | ||
6545 | #include <mach-o/dyld.h> | ||
6546 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
6547 | exit(0); | ||
6548 | else | ||
6549 | exit(1); | ||
6550 | } | ||
6551 | |||
6552 | _ACEOF | ||
6553 | if ac_fn_c_try_run "$LINENO"; then : | ||
6554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5 | ||
6555 | $as_echo "working" >&6; } | ||
6556 | else | ||
6557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5 | ||
6558 | $as_echo "buggy" >&6; } | ||
6559 | |||
6560 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
6561 | |||
6562 | |||
6563 | fi | ||
6564 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
6565 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
6566 | fi | ||
6567 | |||
6568 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
6569 | |||
6570 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
6571 | |||
6572 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
6573 | |||
6574 | |||
6575 | $as_echo "#define BROKEN_GLOB 1" >>confdefs.h | ||
6576 | |||
6577 | |||
6578 | cat >>confdefs.h <<_ACEOF | ||
6579 | #define BIND_8_COMPAT 1 | ||
6580 | _ACEOF | ||
6581 | |||
6582 | |||
6583 | $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h | ||
6584 | |||
6585 | |||
6586 | $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h | ||
6587 | |||
6588 | |||
6589 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h | ||
6590 | |||
6591 | |||
6592 | ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default" | ||
6593 | if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then : | ||
6594 | |||
6595 | else | ||
6596 | |||
6597 | $as_echo "#define AU_IPv4 0" >>confdefs.h | ||
6598 | |||
6599 | #include <bsm/audit.h> | ||
6600 | |||
6601 | $as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h | ||
6602 | |||
6603 | |||
6604 | fi | ||
6605 | |||
6606 | |||
6607 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
6608 | |||
6609 | for ac_func in sandbox_init | ||
6610 | do : | ||
6611 | ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init" | ||
6612 | if test "x$ac_cv_func_sandbox_init" = xyes; then : | ||
6613 | cat >>confdefs.h <<_ACEOF | ||
6614 | #define HAVE_SANDBOX_INIT 1 | ||
6615 | _ACEOF | ||
6616 | |||
6617 | fi | ||
6618 | done | ||
6619 | |||
6620 | for ac_header in sandbox.h | ||
6621 | do : | ||
6622 | ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default" | ||
6623 | if test "x$ac_cv_header_sandbox_h" = xyes; then : | ||
6624 | cat >>confdefs.h <<_ACEOF | ||
6625 | #define HAVE_SANDBOX_H 1 | ||
6626 | _ACEOF | ||
6627 | |||
6628 | fi | ||
6629 | |||
6630 | done | ||
6631 | |||
6632 | ;; | ||
6633 | *-*-dragonfly*) | ||
6634 | SSHDLIBS="$SSHDLIBS -lcrypt" | ||
6635 | ;; | ||
6636 | *-*-haiku*) | ||
6637 | LIBS="$LIBS -lbsd " | ||
6638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5 | ||
6639 | $as_echo_n "checking for socket in -lnetwork... " >&6; } | ||
6640 | if ${ac_cv_lib_network_socket+:} false; then : | ||
6641 | $as_echo_n "(cached) " >&6 | ||
6642 | else | ||
6643 | ac_check_lib_save_LIBS=$LIBS | ||
6644 | LIBS="-lnetwork $LIBS" | ||
6645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6646 | /* end confdefs.h. */ | ||
6647 | |||
6648 | /* Override any GCC internal prototype to avoid an error. | ||
6649 | Use char because int might match the return type of a GCC | ||
6650 | builtin and then its argument prototype would still apply. */ | ||
6651 | #ifdef __cplusplus | ||
6652 | extern "C" | ||
6653 | #endif | ||
6654 | char socket (); | ||
6655 | int | ||
6656 | main () | ||
6657 | { | ||
6658 | return socket (); | ||
6659 | ; | ||
6660 | return 0; | ||
6661 | } | ||
6662 | _ACEOF | ||
6663 | if ac_fn_c_try_link "$LINENO"; then : | ||
6664 | ac_cv_lib_network_socket=yes | ||
6665 | else | ||
6666 | ac_cv_lib_network_socket=no | ||
6667 | fi | ||
6668 | rm -f core conftest.err conftest.$ac_objext \ | ||
6669 | conftest$ac_exeext conftest.$ac_ext | ||
6670 | LIBS=$ac_check_lib_save_LIBS | ||
6671 | fi | ||
6672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5 | ||
6673 | $as_echo "$ac_cv_lib_network_socket" >&6; } | ||
6674 | if test "x$ac_cv_lib_network_socket" = xyes; then : | ||
6675 | cat >>confdefs.h <<_ACEOF | ||
6676 | #define HAVE_LIBNETWORK 1 | ||
6677 | _ACEOF | ||
6678 | |||
6679 | LIBS="-lnetwork $LIBS" | ||
6680 | |||
6681 | fi | ||
6682 | |||
6683 | $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h | ||
6684 | |||
6685 | MANTYPE=man | ||
6686 | ;; | ||
6687 | *-*-hpux*) | ||
6688 | # first we define all of the options common to all HP-UX releases | ||
6689 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
6690 | IPADDR_IN_DISPLAY=yes | ||
6691 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
6692 | |||
6693 | |||
6694 | $as_echo "#define LOGIN_NO_ENDOPT 1" >>confdefs.h | ||
6695 | |||
6696 | $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h | ||
6697 | |||
6698 | |||
6699 | $as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h | ||
6700 | |||
6701 | $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h | ||
6702 | |||
6703 | |||
6704 | $as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h | ||
6705 | |||
6706 | maildir="/var/mail" | ||
6707 | LIBS="$LIBS -lsec" | ||
6708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5 | ||
6709 | $as_echo_n "checking for t_error in -lxnet... " >&6; } | ||
6710 | if ${ac_cv_lib_xnet_t_error+:} false; then : | ||
6711 | $as_echo_n "(cached) " >&6 | ||
6712 | else | ||
6713 | ac_check_lib_save_LIBS=$LIBS | ||
6714 | LIBS="-lxnet $LIBS" | ||
6715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6716 | /* end confdefs.h. */ | ||
6717 | |||
6718 | /* Override any GCC internal prototype to avoid an error. | ||
6719 | Use char because int might match the return type of a GCC | ||
6720 | builtin and then its argument prototype would still apply. */ | ||
6721 | #ifdef __cplusplus | ||
6722 | extern "C" | ||
6723 | #endif | ||
6724 | char t_error (); | ||
6725 | int | ||
6726 | main () | ||
6727 | { | ||
6728 | return t_error (); | ||
6729 | ; | ||
6730 | return 0; | ||
6731 | } | ||
6732 | _ACEOF | ||
6733 | if ac_fn_c_try_link "$LINENO"; then : | ||
6734 | ac_cv_lib_xnet_t_error=yes | ||
6735 | else | ||
6736 | ac_cv_lib_xnet_t_error=no | ||
6737 | fi | ||
6738 | rm -f core conftest.err conftest.$ac_objext \ | ||
6739 | conftest$ac_exeext conftest.$ac_ext | ||
6740 | LIBS=$ac_check_lib_save_LIBS | ||
6741 | fi | ||
6742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5 | ||
6743 | $as_echo "$ac_cv_lib_xnet_t_error" >&6; } | ||
6744 | if test "x$ac_cv_lib_xnet_t_error" = xyes; then : | ||
6745 | cat >>confdefs.h <<_ACEOF | ||
6746 | #define HAVE_LIBXNET 1 | ||
6747 | _ACEOF | ||
6748 | |||
6749 | LIBS="-lxnet $LIBS" | ||
6750 | |||
6751 | else | ||
6752 | as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5 | ||
6753 | fi | ||
6754 | |||
6755 | |||
6756 | # next, we define all of the options specific to major releases | ||
6757 | case "$host" in | ||
6758 | *-*-hpux10*) | ||
6759 | if test -z "$GCC"; then | ||
6760 | CFLAGS="$CFLAGS -Ae" | ||
6761 | fi | ||
6762 | ;; | ||
6763 | *-*-hpux11*) | ||
6764 | |||
6765 | $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h | ||
6766 | |||
6767 | |||
6768 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
6769 | |||
6770 | |||
6771 | $as_echo "#define USE_BTMP 1" >>confdefs.h | ||
6772 | |||
6773 | check_for_hpux_broken_getaddrinfo=1 | ||
6774 | check_for_conflicting_getspnam=1 | ||
6775 | ;; | ||
6776 | esac | ||
6777 | |||
6778 | # lastly, we define options specific to minor releases | ||
6779 | case "$host" in | ||
6780 | *-*-hpux10.26) | ||
6781 | |||
6782 | $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h | ||
6783 | |||
6784 | disable_ptmx_check=yes | ||
6785 | LIBS="$LIBS -lsecpw" | ||
6786 | ;; | ||
6787 | esac | ||
6788 | ;; | ||
6789 | *-*-irix5*) | ||
6790 | PATH="$PATH:/usr/etc" | ||
6791 | |||
6792 | $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h | ||
6793 | |||
6794 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
6795 | |||
6796 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
6797 | |||
6798 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
6799 | |||
6800 | |||
6801 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h | ||
6802 | |||
6803 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
6804 | |||
6805 | ;; | ||
6806 | *-*-irix6*) | ||
6807 | PATH="$PATH:/usr/etc" | ||
6808 | |||
6809 | $as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h | ||
6810 | |||
6811 | |||
6812 | $as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h | ||
6813 | |||
6814 | |||
6815 | $as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h | ||
6816 | |||
6817 | ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob" | ||
6818 | if test "x$ac_cv_func_jlimit_startjob" = xyes; then : | ||
6819 | |||
6820 | $as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h | ||
6821 | |||
6822 | fi | ||
6823 | |||
6824 | $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h | ||
6825 | |||
6826 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
6827 | |||
6828 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
6829 | |||
6830 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
6831 | |||
6832 | |||
6833 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h | ||
6834 | |||
6835 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h | ||
6836 | |||
6837 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
6838 | |||
6839 | ;; | ||
6840 | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | ||
6841 | check_for_libcrypt_later=1 | ||
6842 | $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h | ||
6843 | |||
6844 | $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h | ||
6845 | |||
6846 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
6847 | |||
6848 | |||
6849 | $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h | ||
6850 | |||
6851 | |||
6852 | $as_echo "#define USE_BTMP 1" >>confdefs.h | ||
6853 | |||
6854 | ;; | ||
6855 | *-*-linux*) | ||
6856 | no_dev_ptmx=1 | ||
6857 | check_for_libcrypt_later=1 | ||
6858 | check_for_openpty_ctty_bug=1 | ||
6859 | |||
6860 | $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h | ||
6861 | |||
6862 | |||
6863 | $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h | ||
6864 | |||
6865 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
6866 | |||
6867 | |||
6868 | $as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h | ||
6869 | |||
6870 | |||
6871 | $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h | ||
6872 | |||
6873 | $as_echo "#define USE_BTMP 1" >>confdefs.h | ||
6874 | |||
6875 | |||
6876 | $as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h | ||
6877 | |||
6878 | inet6_default_4in6=yes | ||
6879 | case `uname -r` in | ||
6880 | 1.*|2.0.*) | ||
6881 | |||
6882 | $as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h | ||
6883 | |||
6884 | ;; | ||
6885 | esac | ||
6886 | # tun(4) forwarding compat code | ||
6887 | for ac_header in linux/if_tun.h | ||
6888 | do : | ||
6889 | ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default" | ||
6890 | if test "x$ac_cv_header_linux_if_tun_h" = xyes; then : | ||
6891 | cat >>confdefs.h <<_ACEOF | ||
6892 | #define HAVE_LINUX_IF_TUN_H 1 | ||
6893 | _ACEOF | ||
6894 | |||
6895 | fi | ||
6896 | |||
6897 | done | ||
6898 | |||
6899 | if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then | ||
6900 | |||
6901 | $as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h | ||
6902 | |||
6903 | |||
6904 | $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h | ||
6905 | |||
6906 | |||
6907 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h | ||
6908 | |||
6909 | fi | ||
6910 | for ac_header in linux/seccomp.h linux/filter.h linux/audit.h | ||
6911 | do : | ||
6912 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6913 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <linux/types.h> | ||
6914 | " | ||
6915 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
6916 | cat >>confdefs.h <<_ACEOF | ||
6917 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6918 | _ACEOF | ||
6919 | |||
6920 | fi | ||
6921 | |||
6922 | done | ||
6923 | |||
6924 | for ac_func in prctl | ||
6925 | do : | ||
6926 | ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl" | ||
6927 | if test "x$ac_cv_func_prctl" = xyes; then : | ||
6928 | cat >>confdefs.h <<_ACEOF | ||
6929 | #define HAVE_PRCTL 1 | ||
6930 | _ACEOF | ||
6931 | |||
6932 | fi | ||
6933 | done | ||
6934 | |||
6935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp architecture" >&5 | ||
6936 | $as_echo_n "checking for seccomp architecture... " >&6; } | ||
6937 | seccomp_audit_arch= | ||
6938 | case "$host" in | ||
6939 | x86_64-*) | ||
6940 | seccomp_audit_arch=AUDIT_ARCH_X86_64 | ||
6941 | ;; | ||
6942 | i*86-*) | ||
6943 | seccomp_audit_arch=AUDIT_ARCH_I386 | ||
6944 | ;; | ||
6945 | arm*-*) | ||
6946 | seccomp_audit_arch=AUDIT_ARCH_ARM | ||
6947 | ;; | ||
6948 | esac | ||
6949 | if test "x$seccomp_audit_arch" != "x" ; then | ||
6950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$seccomp_audit_arch\"" >&5 | ||
6951 | $as_echo "\"$seccomp_audit_arch\"" >&6; } | ||
6952 | |||
6953 | cat >>confdefs.h <<_ACEOF | ||
6954 | #define SECCOMP_AUDIT_ARCH $seccomp_audit_arch | ||
6955 | _ACEOF | ||
6956 | |||
6957 | else | ||
6958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: architecture not supported" >&5 | ||
6959 | $as_echo "architecture not supported" >&6; } | ||
6960 | fi | ||
6961 | ;; | ||
6962 | mips-sony-bsd|mips-sony-newsos4) | ||
6963 | |||
6964 | $as_echo "#define NEED_SETPGRP 1" >>confdefs.h | ||
6965 | |||
6966 | SONY=1 | ||
6967 | ;; | ||
6968 | *-*-netbsd*) | ||
6969 | check_for_libcrypt_before=1 | ||
6970 | if test "x$withval" != "xno" ; then | ||
6971 | need_dash_r=1 | ||
6972 | fi | ||
6973 | |||
6974 | $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h | ||
6975 | |||
6976 | ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default" | ||
6977 | if test "x$ac_cv_header_net_if_tap_h" = xyes; then : | ||
6978 | |||
6979 | else | ||
6980 | |||
6981 | $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h | ||
6982 | |||
6983 | fi | ||
6984 | |||
6985 | |||
6986 | |||
6987 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h | ||
6988 | |||
6989 | ;; | ||
6990 | *-*-freebsd*) | ||
6991 | check_for_libcrypt_later=1 | ||
6992 | |||
6993 | $as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h | ||
6994 | |||
6995 | |||
6996 | $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h | ||
6997 | |||
6998 | ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default" | ||
6999 | if test "x$ac_cv_header_net_if_tap_h" = xyes; then : | ||
7000 | |||
7001 | else | ||
7002 | |||
7003 | $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h | ||
7004 | |||
7005 | fi | ||
7006 | |||
7007 | |||
7008 | |||
7009 | $as_echo "#define BROKEN_GLOB 1" >>confdefs.h | ||
7010 | |||
7011 | |||
7012 | $as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h | ||
7013 | |||
7014 | ;; | ||
7015 | *-*-bsdi*) | ||
7016 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7017 | |||
7018 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7019 | |||
7020 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7021 | |||
7022 | ;; | ||
7023 | *-next-*) | ||
7024 | conf_lastlog_location="/usr/adm/lastlog" | ||
7025 | conf_utmp_location=/etc/utmp | ||
7026 | conf_wtmp_location=/usr/adm/wtmp | ||
7027 | maildir=/usr/spool/mail | ||
7028 | |||
7029 | $as_echo "#define HAVE_NEXT 1" >>confdefs.h | ||
7030 | |||
7031 | $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h | ||
7032 | |||
7033 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7034 | |||
7035 | |||
7036 | $as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h | ||
7037 | |||
7038 | ;; | ||
7039 | *-*-openbsd*) | ||
7040 | |||
7041 | $as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h | ||
7042 | |||
7043 | |||
7044 | $as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h | ||
7045 | |||
7046 | |||
7047 | $as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h | ||
7048 | |||
7049 | |||
7050 | $as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h | ||
7051 | |||
7052 | ;; | ||
7053 | *-*-solaris*) | ||
7054 | if test "x$withval" != "xno" ; then | ||
7055 | need_dash_r=1 | ||
7056 | fi | ||
7057 | $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h | ||
7058 | |||
7059 | $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h | ||
7060 | |||
7061 | |||
7062 | $as_echo "#define LOGIN_NEEDS_TERM 1" >>confdefs.h | ||
7063 | |||
7064 | $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h | ||
7065 | |||
7066 | |||
7067 | $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h | ||
7068 | |||
7069 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
7070 | |||
7071 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. | ||
7072 | |||
7073 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
7074 | |||
7075 | |||
7076 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
7077 | |||
7078 | |||
7079 | $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h | ||
7080 | |||
7081 | external_path_file=/etc/default/login | ||
7082 | # hardwire lastlog location (can't detect it on some versions) | ||
7083 | conf_lastlog_location="/var/adm/lastlog" | ||
7084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
7085 | $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; } | ||
7086 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
7087 | if test "$sol2ver" -ge 8; then | ||
7088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
7089 | $as_echo "yes" >&6; } | ||
7090 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
7091 | |||
7092 | |||
7093 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
7094 | |||
7095 | else | ||
7096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7097 | $as_echo "no" >&6; } | ||
7098 | fi | ||
7099 | |||
7100 | # Check whether --with-solaris-contracts was given. | ||
7101 | if test "${with_solaris_contracts+set}" = set; then : | ||
7102 | withval=$with_solaris_contracts; | ||
7103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5 | ||
7104 | $as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; } | ||
7105 | if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then : | ||
7106 | $as_echo_n "(cached) " >&6 | ||
7107 | else | ||
7108 | ac_check_lib_save_LIBS=$LIBS | ||
7109 | LIBS="-lcontract $LIBS" | ||
7110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7111 | /* end confdefs.h. */ | ||
7112 | |||
7113 | /* Override any GCC internal prototype to avoid an error. | ||
7114 | Use char because int might match the return type of a GCC | ||
7115 | builtin and then its argument prototype would still apply. */ | ||
7116 | #ifdef __cplusplus | ||
7117 | extern "C" | ||
7118 | #endif | ||
7119 | char ct_tmpl_activate (); | ||
7120 | int | ||
7121 | main () | ||
7122 | { | ||
7123 | return ct_tmpl_activate (); | ||
7124 | ; | ||
7125 | return 0; | ||
7126 | } | ||
7127 | _ACEOF | ||
7128 | if ac_fn_c_try_link "$LINENO"; then : | ||
7129 | ac_cv_lib_contract_ct_tmpl_activate=yes | ||
7130 | else | ||
7131 | ac_cv_lib_contract_ct_tmpl_activate=no | ||
7132 | fi | ||
7133 | rm -f core conftest.err conftest.$ac_objext \ | ||
7134 | conftest$ac_exeext conftest.$ac_ext | ||
7135 | LIBS=$ac_check_lib_save_LIBS | ||
7136 | fi | ||
7137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5 | ||
7138 | $as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; } | ||
7139 | if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then : | ||
7140 | |||
7141 | $as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h | ||
7142 | |||
7143 | SSHDLIBS="$SSHDLIBS -lcontract" | ||
7144 | SPC_MSG="yes" | ||
7145 | fi | ||
7146 | |||
7147 | |||
7148 | fi | ||
7149 | |||
7150 | |||
7151 | # Check whether --with-solaris-projects was given. | ||
7152 | if test "${with_solaris_projects+set}" = set; then : | ||
7153 | withval=$with_solaris_projects; | ||
7154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5 | ||
7155 | $as_echo_n "checking for setproject in -lproject... " >&6; } | ||
7156 | if ${ac_cv_lib_project_setproject+:} false; then : | ||
7157 | $as_echo_n "(cached) " >&6 | ||
7158 | else | ||
7159 | ac_check_lib_save_LIBS=$LIBS | ||
7160 | LIBS="-lproject $LIBS" | ||
7161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7162 | /* end confdefs.h. */ | ||
7163 | |||
7164 | /* Override any GCC internal prototype to avoid an error. | ||
7165 | Use char because int might match the return type of a GCC | ||
7166 | builtin and then its argument prototype would still apply. */ | ||
7167 | #ifdef __cplusplus | ||
7168 | extern "C" | ||
7169 | #endif | ||
7170 | char setproject (); | ||
7171 | int | ||
7172 | main () | ||
7173 | { | ||
7174 | return setproject (); | ||
7175 | ; | ||
7176 | return 0; | ||
7177 | } | ||
7178 | _ACEOF | ||
7179 | if ac_fn_c_try_link "$LINENO"; then : | ||
7180 | ac_cv_lib_project_setproject=yes | ||
7181 | else | ||
7182 | ac_cv_lib_project_setproject=no | ||
7183 | fi | ||
7184 | rm -f core conftest.err conftest.$ac_objext \ | ||
7185 | conftest$ac_exeext conftest.$ac_ext | ||
7186 | LIBS=$ac_check_lib_save_LIBS | ||
7187 | fi | ||
7188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5 | ||
7189 | $as_echo "$ac_cv_lib_project_setproject" >&6; } | ||
7190 | if test "x$ac_cv_lib_project_setproject" = xyes; then : | ||
7191 | |||
7192 | $as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h | ||
7193 | |||
7194 | SSHDLIBS="$SSHDLIBS -lproject" | ||
7195 | SP_MSG="yes" | ||
7196 | fi | ||
7197 | |||
7198 | |||
7199 | fi | ||
7200 | |||
7201 | ;; | ||
7202 | *-*-sunos4*) | ||
7203 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
7204 | for ac_func in getpwanam | ||
7205 | do : | ||
7206 | ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam" | ||
7207 | if test "x$ac_cv_func_getpwanam" = xyes; then : | ||
7208 | cat >>confdefs.h <<_ACEOF | ||
7209 | #define HAVE_GETPWANAM 1 | ||
7210 | _ACEOF | ||
7211 | |||
7212 | fi | ||
7213 | done | ||
7214 | |||
7215 | $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h | ||
7216 | |||
7217 | conf_utmp_location=/etc/utmp | ||
7218 | conf_wtmp_location=/var/adm/wtmp | ||
7219 | conf_lastlog_location=/var/adm/lastlog | ||
7220 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7221 | |||
7222 | ;; | ||
7223 | *-ncr-sysv*) | ||
7224 | LIBS="$LIBS -lc89" | ||
7225 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7226 | |||
7227 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
7228 | |||
7229 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7230 | |||
7231 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7232 | |||
7233 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7234 | |||
7235 | ;; | ||
7236 | *-sni-sysv*) | ||
7237 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
7238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 | ||
7239 | $as_echo_n "checking for dlsym in -ldl... " >&6; } | ||
7240 | if ${ac_cv_lib_dl_dlsym+:} false; then : | ||
7241 | $as_echo_n "(cached) " >&6 | ||
7242 | else | ||
7243 | ac_check_lib_save_LIBS=$LIBS | ||
7244 | LIBS="-ldl $LIBS" | ||
7245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7246 | /* end confdefs.h. */ | ||
7247 | |||
7248 | /* Override any GCC internal prototype to avoid an error. | ||
7249 | Use char because int might match the return type of a GCC | ||
7250 | builtin and then its argument prototype would still apply. */ | ||
7251 | #ifdef __cplusplus | ||
7252 | extern "C" | ||
7253 | #endif | ||
7254 | char dlsym (); | ||
7255 | int | ||
7256 | main () | ||
7257 | { | ||
7258 | return dlsym (); | ||
7259 | ; | ||
7260 | return 0; | ||
7261 | } | ||
7262 | _ACEOF | ||
7263 | if ac_fn_c_try_link "$LINENO"; then : | ||
7264 | ac_cv_lib_dl_dlsym=yes | ||
7265 | else | ||
7266 | ac_cv_lib_dl_dlsym=no | ||
7267 | fi | ||
7268 | rm -f core conftest.err conftest.$ac_objext \ | ||
7269 | conftest$ac_exeext conftest.$ac_ext | ||
7270 | LIBS=$ac_check_lib_save_LIBS | ||
7271 | fi | ||
7272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 | ||
7273 | $as_echo "$ac_cv_lib_dl_dlsym" >&6; } | ||
7274 | if test "x$ac_cv_lib_dl_dlsym" = xyes; then : | ||
7275 | cat >>confdefs.h <<_ACEOF | ||
7276 | #define HAVE_LIBDL 1 | ||
7277 | _ACEOF | ||
7278 | |||
7279 | LIBS="-ldl $LIBS" | ||
7280 | |||
7281 | fi | ||
7282 | |||
7283 | # -lresolv needs to be at the end of LIBS or DNS lookups break | ||
7284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5 | ||
7285 | $as_echo_n "checking for res_query in -lresolv... " >&6; } | ||
7286 | if ${ac_cv_lib_resolv_res_query+:} false; then : | ||
7287 | $as_echo_n "(cached) " >&6 | ||
7288 | else | ||
7289 | ac_check_lib_save_LIBS=$LIBS | ||
7290 | LIBS="-lresolv $LIBS" | ||
7291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7292 | /* end confdefs.h. */ | ||
7293 | |||
7294 | /* Override any GCC internal prototype to avoid an error. | ||
7295 | Use char because int might match the return type of a GCC | ||
7296 | builtin and then its argument prototype would still apply. */ | ||
7297 | #ifdef __cplusplus | ||
7298 | extern "C" | ||
7299 | #endif | ||
7300 | char res_query (); | ||
7301 | int | ||
7302 | main () | ||
7303 | { | ||
7304 | return res_query (); | ||
7305 | ; | ||
7306 | return 0; | ||
7307 | } | ||
7308 | _ACEOF | ||
7309 | if ac_fn_c_try_link "$LINENO"; then : | ||
7310 | ac_cv_lib_resolv_res_query=yes | ||
7311 | else | ||
7312 | ac_cv_lib_resolv_res_query=no | ||
7313 | fi | ||
7314 | rm -f core conftest.err conftest.$ac_objext \ | ||
7315 | conftest$ac_exeext conftest.$ac_ext | ||
7316 | LIBS=$ac_check_lib_save_LIBS | ||
7317 | fi | ||
7318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5 | ||
7319 | $as_echo "$ac_cv_lib_resolv_res_query" >&6; } | ||
7320 | if test "x$ac_cv_lib_resolv_res_query" = xyes; then : | ||
7321 | LIBS="$LIBS -lresolv" | ||
7322 | fi | ||
7323 | |||
7324 | IPADDR_IN_DISPLAY=yes | ||
7325 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7326 | |||
7327 | $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h | ||
7328 | |||
7329 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7330 | |||
7331 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7332 | |||
7333 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7334 | |||
7335 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
7336 | |||
7337 | external_path_file=/etc/default/login | ||
7338 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
7339 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
7340 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
7341 | ;; | ||
7342 | # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. | ||
7343 | *-*-sysv4.2*) | ||
7344 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7345 | |||
7346 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7347 | |||
7348 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7349 | |||
7350 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7351 | |||
7352 | |||
7353 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
7354 | |||
7355 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
7356 | |||
7357 | ;; | ||
7358 | # UnixWare 7.x, OpenUNIX 8 | ||
7359 | *-*-sysv5*) | ||
7360 | CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf" | ||
7361 | |||
7362 | $as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h | ||
7363 | |||
7364 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7365 | |||
7366 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7367 | |||
7368 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
7369 | |||
7370 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7371 | |||
7372 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7373 | |||
7374 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
7375 | |||
7376 | case "$host" in | ||
7377 | *-*-sysv5SCO_SV*) # SCO OpenServer 6.x | ||
7378 | maildir=/var/spool/mail | ||
7379 | TEST_SHELL=/u95/bin/sh | ||
7380 | |||
7381 | $as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h | ||
7382 | |||
7383 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h | ||
7384 | |||
7385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5 | ||
7386 | $as_echo_n "checking for getluid in -lprot... " >&6; } | ||
7387 | if ${ac_cv_lib_prot_getluid+:} false; then : | ||
7388 | $as_echo_n "(cached) " >&6 | ||
7389 | else | ||
7390 | ac_check_lib_save_LIBS=$LIBS | ||
7391 | LIBS="-lprot $LIBS" | ||
7392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7393 | /* end confdefs.h. */ | ||
7394 | |||
7395 | /* Override any GCC internal prototype to avoid an error. | ||
7396 | Use char because int might match the return type of a GCC | ||
7397 | builtin and then its argument prototype would still apply. */ | ||
7398 | #ifdef __cplusplus | ||
7399 | extern "C" | ||
7400 | #endif | ||
7401 | char getluid (); | ||
7402 | int | ||
7403 | main () | ||
7404 | { | ||
7405 | return getluid (); | ||
7406 | ; | ||
7407 | return 0; | ||
7408 | } | ||
7409 | _ACEOF | ||
7410 | if ac_fn_c_try_link "$LINENO"; then : | ||
7411 | ac_cv_lib_prot_getluid=yes | ||
7412 | else | ||
7413 | ac_cv_lib_prot_getluid=no | ||
7414 | fi | ||
7415 | rm -f core conftest.err conftest.$ac_objext \ | ||
7416 | conftest$ac_exeext conftest.$ac_ext | ||
7417 | LIBS=$ac_check_lib_save_LIBS | ||
7418 | fi | ||
7419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5 | ||
7420 | $as_echo "$ac_cv_lib_prot_getluid" >&6; } | ||
7421 | if test "x$ac_cv_lib_prot_getluid" = xyes; then : | ||
7422 | LIBS="$LIBS -lprot" | ||
7423 | for ac_func in getluid setluid | ||
7424 | do : | ||
7425 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7426 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
7427 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
7428 | cat >>confdefs.h <<_ACEOF | ||
7429 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7430 | _ACEOF | ||
7431 | |||
7432 | fi | ||
7433 | done | ||
7434 | |||
7435 | $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h | ||
7436 | |||
7437 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h | ||
7438 | |||
7439 | |||
7440 | fi | ||
7441 | |||
7442 | ;; | ||
7443 | *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
7444 | |||
7445 | check_for_libcrypt_later=1 | ||
7446 | ;; | ||
7447 | esac | ||
7448 | ;; | ||
7449 | *-*-sysv*) | ||
7450 | ;; | ||
7451 | # SCO UNIX and OEM versions of SCO UNIX | ||
7452 | *-*-sco3.2v4*) | ||
7453 | as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5 | ||
7454 | ;; | ||
7455 | # SCO OpenServer 5.x | ||
7456 | *-*-sco3.2v5*) | ||
7457 | if test -z "$GCC"; then | ||
7458 | CFLAGS="$CFLAGS -belf" | ||
7459 | fi | ||
7460 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
7461 | no_dev_ptmx=1 | ||
7462 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7463 | |||
7464 | $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h | ||
7465 | |||
7466 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h | ||
7467 | |||
7468 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
7469 | |||
7470 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7471 | |||
7472 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
7473 | |||
7474 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7475 | |||
7476 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7477 | |||
7478 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h | ||
7479 | |||
7480 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h | ||
7481 | |||
7482 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
7483 | |||
7484 | for ac_func in getluid setluid | ||
7485 | do : | ||
7486 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7487 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
7488 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
7489 | cat >>confdefs.h <<_ACEOF | ||
7490 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7491 | _ACEOF | ||
7492 | |||
7493 | fi | ||
7494 | done | ||
7495 | |||
7496 | MANTYPE=man | ||
7497 | TEST_SHELL=ksh | ||
7498 | SKIP_DISABLE_LASTLOG_DEFINE=yes | ||
7499 | ;; | ||
7500 | *-*-unicosmk*) | ||
7501 | |||
7502 | $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h | ||
7503 | |||
7504 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7505 | |||
7506 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7507 | |||
7508 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7509 | |||
7510 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7511 | |||
7512 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
7513 | |||
7514 | LDFLAGS="$LDFLAGS" | ||
7515 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
7516 | MANTYPE=cat | ||
7517 | ;; | ||
7518 | *-*-unicosmp*) | ||
7519 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7520 | |||
7521 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7522 | |||
7523 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7524 | |||
7525 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h | ||
7526 | |||
7527 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7528 | |||
7529 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
7530 | |||
7531 | LDFLAGS="$LDFLAGS" | ||
7532 | LIBS="$LIBS -lgen -lacid -ldb" | ||
7533 | MANTYPE=cat | ||
7534 | ;; | ||
7535 | *-*-unicos*) | ||
7536 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7537 | |||
7538 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7539 | |||
7540 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7541 | |||
7542 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7543 | |||
7544 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
7545 | |||
7546 | $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h | ||
7547 | |||
7548 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
7549 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
7550 | MANTYPE=cat | ||
7551 | ;; | ||
7552 | *-dec-osf*) | ||
7553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5 | ||
7554 | $as_echo_n "checking for Digital Unix SIA... " >&6; } | ||
7555 | no_osfsia="" | ||
7556 | |||
7557 | # Check whether --with-osfsia was given. | ||
7558 | if test "${with_osfsia+set}" = set; then : | ||
7559 | withval=$with_osfsia; | ||
7560 | if test "x$withval" = "xno" ; then | ||
7561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 | ||
7562 | $as_echo "disabled" >&6; } | ||
7563 | no_osfsia=1 | ||
7564 | fi | ||
7565 | |||
7566 | fi | ||
7567 | |||
7568 | if test -z "$no_osfsia" ; then | ||
7569 | if test -f /etc/sia/matrix.conf; then | ||
7570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
7571 | $as_echo "yes" >&6; } | ||
7572 | |||
7573 | $as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h | ||
7574 | |||
7575 | |||
7576 | $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h | ||
7577 | |||
7578 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
7579 | |||
7580 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
7581 | SIA_MSG="yes" | ||
7582 | else | ||
7583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7584 | $as_echo "no" >&6; } | ||
7585 | |||
7586 | $as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h | ||
7587 | |||
7588 | fi | ||
7589 | fi | ||
7590 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
7591 | |||
7592 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7593 | |||
7594 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7595 | |||
7596 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7597 | |||
7598 | |||
7599 | $as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h | ||
7600 | |||
7601 | ;; | ||
7602 | |||
7603 | *-*-nto-qnx*) | ||
7604 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7605 | |||
7606 | $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h | ||
7607 | |||
7608 | |||
7609 | $as_echo "#define MISSING_NFDBITS 1" >>confdefs.h | ||
7610 | |||
7611 | |||
7612 | $as_echo "#define MISSING_HOWMANY 1" >>confdefs.h | ||
7613 | |||
7614 | |||
7615 | $as_echo "#define MISSING_FD_MASK 1" >>confdefs.h | ||
7616 | |||
7617 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
7618 | |||
7619 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
7620 | |||
7621 | |||
7622 | $as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h | ||
7623 | |||
7624 | enable_etc_default_login=no # has incompatible /etc/default/login | ||
7625 | case "$host" in | ||
7626 | *-*-nto-qnx6*) | ||
7627 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
7628 | |||
7629 | ;; | ||
7630 | esac | ||
7631 | ;; | ||
7632 | |||
7633 | *-*-ultrix*) | ||
7634 | |||
7635 | $as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h | ||
7636 | |||
7637 | |||
7638 | $as_echo "#define BROKEN_MMAP 1" >>confdefs.h | ||
7639 | |||
7640 | $as_echo "#define NEED_SETPGRP 1" >>confdefs.h | ||
7641 | |||
7642 | |||
7643 | $as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h | ||
7644 | |||
7645 | ;; | ||
7646 | |||
7647 | *-*-lynxos) | ||
7648 | CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" | ||
7649 | $as_echo "#define MISSING_HOWMANY 1" >>confdefs.h | ||
7650 | |||
7651 | |||
7652 | $as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h | ||
7653 | |||
7654 | ;; | ||
7655 | esac | ||
7656 | |||
7657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5 | ||
7658 | $as_echo_n "checking compiler and flags for sanity... " >&6; } | ||
7659 | if test "$cross_compiling" = yes; then : | ||
7660 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5 | ||
7661 | $as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} | ||
7662 | |||
7663 | else | ||
7664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7665 | /* end confdefs.h. */ | ||
7666 | #include <stdio.h> | ||
7667 | int | ||
7668 | main () | ||
7669 | { | ||
7670 | exit(0); | ||
7671 | ; | ||
7672 | return 0; | ||
7673 | } | ||
7674 | _ACEOF | ||
7675 | if ac_fn_c_try_run "$LINENO"; then : | ||
7676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
7677 | $as_echo "yes" >&6; } | ||
7678 | else | ||
7679 | |||
7680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7681 | $as_echo "no" >&6; } | ||
7682 | as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5 | ||
7683 | |||
7684 | fi | ||
7685 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
7686 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
7687 | fi | ||
7688 | |||
7689 | |||
7690 | # Checks for libraries. | ||
7691 | ac_fn_c_check_func "$LINENO" "yp_match" "ac_cv_func_yp_match" | ||
7692 | if test "x$ac_cv_func_yp_match" = xyes; then : | ||
7693 | |||
7694 | else | ||
7695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5 | ||
7696 | $as_echo_n "checking for yp_match in -lnsl... " >&6; } | ||
7697 | if ${ac_cv_lib_nsl_yp_match+:} false; then : | ||
7698 | $as_echo_n "(cached) " >&6 | ||
7699 | else | ||
7700 | ac_check_lib_save_LIBS=$LIBS | ||
7701 | LIBS="-lnsl $LIBS" | ||
7702 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7703 | /* end confdefs.h. */ | ||
7704 | |||
7705 | /* Override any GCC internal prototype to avoid an error. | ||
7706 | Use char because int might match the return type of a GCC | ||
7707 | builtin and then its argument prototype would still apply. */ | ||
7708 | #ifdef __cplusplus | ||
7709 | extern "C" | ||
7710 | #endif | ||
7711 | char yp_match (); | ||
7712 | int | ||
7713 | main () | ||
7714 | { | ||
7715 | return yp_match (); | ||
7716 | ; | ||
7717 | return 0; | ||
7718 | } | ||
7719 | _ACEOF | ||
7720 | if ac_fn_c_try_link "$LINENO"; then : | ||
7721 | ac_cv_lib_nsl_yp_match=yes | ||
7722 | else | ||
7723 | ac_cv_lib_nsl_yp_match=no | ||
7724 | fi | ||
7725 | rm -f core conftest.err conftest.$ac_objext \ | ||
7726 | conftest$ac_exeext conftest.$ac_ext | ||
7727 | LIBS=$ac_check_lib_save_LIBS | ||
7728 | fi | ||
7729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5 | ||
7730 | $as_echo "$ac_cv_lib_nsl_yp_match" >&6; } | ||
7731 | if test "x$ac_cv_lib_nsl_yp_match" = xyes; then : | ||
7732 | cat >>confdefs.h <<_ACEOF | ||
7733 | #define HAVE_LIBNSL 1 | ||
7734 | _ACEOF | ||
7735 | |||
7736 | LIBS="-lnsl $LIBS" | ||
7737 | |||
7738 | fi | ||
7739 | |||
7740 | fi | ||
7741 | |||
7742 | ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" | ||
7743 | if test "x$ac_cv_func_setsockopt" = xyes; then : | ||
7744 | |||
7745 | else | ||
7746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5 | ||
7747 | $as_echo_n "checking for setsockopt in -lsocket... " >&6; } | ||
7748 | if ${ac_cv_lib_socket_setsockopt+:} false; then : | ||
7749 | $as_echo_n "(cached) " >&6 | ||
7750 | else | ||
7751 | ac_check_lib_save_LIBS=$LIBS | ||
7752 | LIBS="-lsocket $LIBS" | ||
7753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7754 | /* end confdefs.h. */ | ||
7755 | |||
7756 | /* Override any GCC internal prototype to avoid an error. | ||
7757 | Use char because int might match the return type of a GCC | ||
7758 | builtin and then its argument prototype would still apply. */ | ||
7759 | #ifdef __cplusplus | ||
7760 | extern "C" | ||
7761 | #endif | ||
7762 | char setsockopt (); | ||
7763 | int | ||
7764 | main () | ||
7765 | { | ||
7766 | return setsockopt (); | ||
7767 | ; | ||
7768 | return 0; | ||
7769 | } | ||
7770 | _ACEOF | ||
7771 | if ac_fn_c_try_link "$LINENO"; then : | ||
7772 | ac_cv_lib_socket_setsockopt=yes | ||
7773 | else | ||
7774 | ac_cv_lib_socket_setsockopt=no | ||
7775 | fi | ||
7776 | rm -f core conftest.err conftest.$ac_objext \ | ||
7777 | conftest$ac_exeext conftest.$ac_ext | ||
7778 | LIBS=$ac_check_lib_save_LIBS | ||
7779 | fi | ||
7780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
7781 | $as_echo "$ac_cv_lib_socket_setsockopt" >&6; } | ||
7782 | if test "x$ac_cv_lib_socket_setsockopt" = xyes; then : | ||
7783 | cat >>confdefs.h <<_ACEOF | ||
7784 | #define HAVE_LIBSOCKET 1 | ||
7785 | _ACEOF | ||
7786 | |||
7787 | LIBS="-lsocket $LIBS" | ||
7788 | |||
7789 | fi | ||
7790 | |||
7791 | fi | ||
7792 | |||
7793 | |||
7794 | for ac_func in dirname | ||
7795 | do : | ||
7796 | ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname" | ||
7797 | if test "x$ac_cv_func_dirname" = xyes; then : | ||
7798 | cat >>confdefs.h <<_ACEOF | ||
7799 | #define HAVE_DIRNAME 1 | ||
7800 | _ACEOF | ||
7801 | for ac_header in libgen.h | ||
7802 | do : | ||
7803 | ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" | ||
7804 | if test "x$ac_cv_header_libgen_h" = xyes; then : | ||
7805 | cat >>confdefs.h <<_ACEOF | ||
7806 | #define HAVE_LIBGEN_H 1 | ||
7807 | _ACEOF | ||
7808 | |||
7809 | fi | ||
7810 | |||
7811 | done | ||
7812 | |||
7813 | else | ||
7814 | |||
7815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5 | ||
7816 | $as_echo_n "checking for dirname in -lgen... " >&6; } | ||
7817 | if ${ac_cv_lib_gen_dirname+:} false; then : | ||
7818 | $as_echo_n "(cached) " >&6 | ||
7819 | else | ||
7820 | ac_check_lib_save_LIBS=$LIBS | ||
7821 | LIBS="-lgen $LIBS" | ||
7822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7823 | /* end confdefs.h. */ | ||
7824 | |||
7825 | /* Override any GCC internal prototype to avoid an error. | ||
7826 | Use char because int might match the return type of a GCC | ||
7827 | builtin and then its argument prototype would still apply. */ | ||
7828 | #ifdef __cplusplus | ||
7829 | extern "C" | ||
7830 | #endif | ||
7831 | char dirname (); | ||
7832 | int | ||
7833 | main () | ||
7834 | { | ||
7835 | return dirname (); | ||
7836 | ; | ||
7837 | return 0; | ||
7838 | } | ||
7839 | _ACEOF | ||
7840 | if ac_fn_c_try_link "$LINENO"; then : | ||
7841 | ac_cv_lib_gen_dirname=yes | ||
7842 | else | ||
7843 | ac_cv_lib_gen_dirname=no | ||
7844 | fi | ||
7845 | rm -f core conftest.err conftest.$ac_objext \ | ||
7846 | conftest$ac_exeext conftest.$ac_ext | ||
7847 | LIBS=$ac_check_lib_save_LIBS | ||
7848 | fi | ||
7849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5 | ||
7850 | $as_echo "$ac_cv_lib_gen_dirname" >&6; } | ||
7851 | if test "x$ac_cv_lib_gen_dirname" = xyes; then : | ||
7852 | |||
7853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5 | ||
7854 | $as_echo_n "checking for broken dirname... " >&6; } | ||
7855 | if ${ac_cv_have_broken_dirname+:} false; then : | ||
7856 | $as_echo_n "(cached) " >&6 | ||
7857 | else | ||
7858 | |||
7859 | save_LIBS="$LIBS" | ||
7860 | LIBS="$LIBS -lgen" | ||
7861 | if test "$cross_compiling" = yes; then : | ||
7862 | ac_cv_have_broken_dirname="no" | ||
7863 | else | ||
7864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7865 | /* end confdefs.h. */ | ||
7866 | |||
7867 | #include <libgen.h> | ||
7868 | #include <string.h> | ||
7869 | |||
7870 | int main(int argc, char **argv) { | ||
7871 | char *s, buf[32]; | ||
7872 | |||
7873 | strncpy(buf,"/etc", 32); | ||
7874 | s = dirname(buf); | ||
7875 | if (!s || strncmp(s, "/", 32) != 0) { | ||
7876 | exit(1); | ||
7877 | } else { | ||
7878 | exit(0); | ||
7879 | } | ||
7880 | } | ||
7881 | |||
7882 | _ACEOF | ||
7883 | if ac_fn_c_try_run "$LINENO"; then : | ||
7884 | ac_cv_have_broken_dirname="no" | ||
7885 | else | ||
7886 | ac_cv_have_broken_dirname="yes" | ||
7887 | fi | ||
7888 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
7889 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
7890 | fi | ||
7891 | |||
7892 | LIBS="$save_LIBS" | ||
7893 | |||
7894 | fi | ||
7895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5 | ||
7896 | $as_echo "$ac_cv_have_broken_dirname" >&6; } | ||
7897 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
7898 | LIBS="$LIBS -lgen" | ||
7899 | $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h | ||
7900 | |||
7901 | for ac_header in libgen.h | ||
7902 | do : | ||
7903 | ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" | ||
7904 | if test "x$ac_cv_header_libgen_h" = xyes; then : | ||
7905 | cat >>confdefs.h <<_ACEOF | ||
7906 | #define HAVE_LIBGEN_H 1 | ||
7907 | _ACEOF | ||
7908 | |||
7909 | fi | ||
7910 | |||
7911 | done | ||
7912 | |||
7913 | fi | ||
7914 | |||
7915 | fi | ||
7916 | |||
7917 | |||
7918 | fi | ||
7919 | done | ||
7920 | |||
7921 | |||
7922 | ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam" | ||
7923 | if test "x$ac_cv_func_getspnam" = xyes; then : | ||
7924 | |||
7925 | else | ||
7926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5 | ||
7927 | $as_echo_n "checking for getspnam in -lgen... " >&6; } | ||
7928 | if ${ac_cv_lib_gen_getspnam+:} false; then : | ||
7929 | $as_echo_n "(cached) " >&6 | ||
7930 | else | ||
7931 | ac_check_lib_save_LIBS=$LIBS | ||
7932 | LIBS="-lgen $LIBS" | ||
7933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7934 | /* end confdefs.h. */ | ||
7935 | |||
7936 | /* Override any GCC internal prototype to avoid an error. | ||
7937 | Use char because int might match the return type of a GCC | ||
7938 | builtin and then its argument prototype would still apply. */ | ||
7939 | #ifdef __cplusplus | ||
7940 | extern "C" | ||
7941 | #endif | ||
7942 | char getspnam (); | ||
7943 | int | ||
7944 | main () | ||
7945 | { | ||
7946 | return getspnam (); | ||
7947 | ; | ||
7948 | return 0; | ||
7949 | } | ||
7950 | _ACEOF | ||
7951 | if ac_fn_c_try_link "$LINENO"; then : | ||
7952 | ac_cv_lib_gen_getspnam=yes | ||
7953 | else | ||
7954 | ac_cv_lib_gen_getspnam=no | ||
7955 | fi | ||
7956 | rm -f core conftest.err conftest.$ac_objext \ | ||
7957 | conftest$ac_exeext conftest.$ac_ext | ||
7958 | LIBS=$ac_check_lib_save_LIBS | ||
7959 | fi | ||
7960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5 | ||
7961 | $as_echo "$ac_cv_lib_gen_getspnam" >&6; } | ||
7962 | if test "x$ac_cv_lib_gen_getspnam" = xyes; then : | ||
7963 | LIBS="$LIBS -lgen" | ||
7964 | fi | ||
7965 | |||
7966 | fi | ||
7967 | |||
7968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5 | ||
7969 | $as_echo_n "checking for library containing basename... " >&6; } | ||
7970 | if ${ac_cv_search_basename+:} false; then : | ||
7971 | $as_echo_n "(cached) " >&6 | ||
7972 | else | ||
7973 | ac_func_search_save_LIBS=$LIBS | ||
7974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7975 | /* end confdefs.h. */ | ||
7976 | |||
7977 | /* Override any GCC internal prototype to avoid an error. | ||
7978 | Use char because int might match the return type of a GCC | ||
7979 | builtin and then its argument prototype would still apply. */ | ||
7980 | #ifdef __cplusplus | ||
7981 | extern "C" | ||
7982 | #endif | ||
7983 | char basename (); | ||
7984 | int | ||
7985 | main () | ||
7986 | { | ||
7987 | return basename (); | ||
7988 | ; | ||
7989 | return 0; | ||
7990 | } | ||
7991 | _ACEOF | ||
7992 | for ac_lib in '' gen; do | ||
7993 | if test -z "$ac_lib"; then | ||
7994 | ac_res="none required" | ||
7995 | else | ||
7996 | ac_res=-l$ac_lib | ||
7997 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
7998 | fi | ||
7999 | if ac_fn_c_try_link "$LINENO"; then : | ||
8000 | ac_cv_search_basename=$ac_res | ||
8001 | fi | ||
8002 | rm -f core conftest.err conftest.$ac_objext \ | ||
8003 | conftest$ac_exeext | ||
8004 | if ${ac_cv_search_basename+:} false; then : | ||
8005 | break | ||
8006 | fi | ||
8007 | done | ||
8008 | if ${ac_cv_search_basename+:} false; then : | ||
8009 | |||
8010 | else | ||
8011 | ac_cv_search_basename=no | ||
8012 | fi | ||
8013 | rm conftest.$ac_ext | ||
8014 | LIBS=$ac_func_search_save_LIBS | ||
8015 | fi | ||
8016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5 | ||
8017 | $as_echo "$ac_cv_search_basename" >&6; } | ||
8018 | ac_res=$ac_cv_search_basename | ||
8019 | if test "$ac_res" != no; then : | ||
8020 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
8021 | |||
8022 | $as_echo "#define HAVE_BASENAME 1" >>confdefs.h | ||
8023 | |||
8024 | fi | ||
8025 | |||
8026 | |||
8027 | |||
8028 | # Check whether --with-zlib was given. | ||
8029 | if test "${with_zlib+set}" = set; then : | ||
8030 | withval=$with_zlib; if test "x$withval" = "xno" ; then | ||
8031 | as_fn_error $? "*** zlib is required ***" "$LINENO" 5 | ||
8032 | elif test "x$withval" != "xyes"; then | ||
8033 | if test -d "$withval/lib"; then | ||
8034 | if test -n "${need_dash_r}"; then | ||
8035 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
8036 | else | ||
8037 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
8038 | fi | ||
8039 | else | ||
8040 | if test -n "${need_dash_r}"; then | ||
8041 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
8042 | else | ||
8043 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
8044 | fi | ||
8045 | fi | ||
8046 | if test -d "$withval/include"; then | ||
8047 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
8048 | else | ||
8049 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
8050 | fi | ||
8051 | fi | ||
8052 | |||
8053 | fi | ||
8054 | |||
8055 | |||
8056 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | ||
8057 | if test "x$ac_cv_header_zlib_h" = xyes; then : | ||
8058 | |||
8059 | else | ||
8060 | as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5 | ||
8061 | fi | ||
8062 | |||
8063 | |||
8064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 | ||
8065 | $as_echo_n "checking for deflate in -lz... " >&6; } | ||
8066 | if ${ac_cv_lib_z_deflate+:} false; then : | ||
8067 | $as_echo_n "(cached) " >&6 | ||
8068 | else | ||
8069 | ac_check_lib_save_LIBS=$LIBS | ||
8070 | LIBS="-lz $LIBS" | ||
8071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8072 | /* end confdefs.h. */ | ||
8073 | |||
8074 | /* Override any GCC internal prototype to avoid an error. | ||
8075 | Use char because int might match the return type of a GCC | ||
8076 | builtin and then its argument prototype would still apply. */ | ||
8077 | #ifdef __cplusplus | ||
8078 | extern "C" | ||
8079 | #endif | ||
8080 | char deflate (); | ||
8081 | int | ||
8082 | main () | ||
8083 | { | ||
8084 | return deflate (); | ||
8085 | ; | ||
8086 | return 0; | ||
8087 | } | ||
8088 | _ACEOF | ||
8089 | if ac_fn_c_try_link "$LINENO"; then : | ||
8090 | ac_cv_lib_z_deflate=yes | ||
8091 | else | ||
8092 | ac_cv_lib_z_deflate=no | ||
8093 | fi | ||
8094 | rm -f core conftest.err conftest.$ac_objext \ | ||
8095 | conftest$ac_exeext conftest.$ac_ext | ||
8096 | LIBS=$ac_check_lib_save_LIBS | ||
8097 | fi | ||
8098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 | ||
8099 | $as_echo "$ac_cv_lib_z_deflate" >&6; } | ||
8100 | if test "x$ac_cv_lib_z_deflate" = xyes; then : | ||
8101 | cat >>confdefs.h <<_ACEOF | ||
8102 | #define HAVE_LIBZ 1 | ||
8103 | _ACEOF | ||
8104 | |||
8105 | LIBS="-lz $LIBS" | ||
8106 | |||
8107 | else | ||
8108 | |||
8109 | saved_CPPFLAGS="$CPPFLAGS" | ||
8110 | saved_LDFLAGS="$LDFLAGS" | ||
8111 | save_LIBS="$LIBS" | ||
8112 | if test -n "${need_dash_r}"; then | ||
8113 | LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" | ||
8114 | else | ||
8115 | LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" | ||
8116 | fi | ||
8117 | CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" | ||
8118 | LIBS="$LIBS -lz" | ||
8119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8120 | /* end confdefs.h. */ | ||
8121 | |||
8122 | /* Override any GCC internal prototype to avoid an error. | ||
8123 | Use char because int might match the return type of a GCC | ||
8124 | builtin and then its argument prototype would still apply. */ | ||
8125 | #ifdef __cplusplus | ||
8126 | extern "C" | ||
8127 | #endif | ||
8128 | char deflate (); | ||
8129 | int | ||
8130 | main () | ||
8131 | { | ||
8132 | return deflate (); | ||
8133 | ; | ||
8134 | return 0; | ||
8135 | } | ||
8136 | _ACEOF | ||
8137 | if ac_fn_c_try_link "$LINENO"; then : | ||
8138 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h | ||
8139 | |||
8140 | else | ||
8141 | |||
8142 | as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5 | ||
8143 | |||
8144 | |||
8145 | fi | ||
8146 | rm -f core conftest.err conftest.$ac_objext \ | ||
8147 | conftest$ac_exeext conftest.$ac_ext | ||
8148 | |||
8149 | |||
8150 | fi | ||
8151 | |||
8152 | |||
8153 | |||
8154 | # Check whether --with-zlib-version-check was given. | ||
8155 | if test "${with_zlib_version_check+set}" = set; then : | ||
8156 | withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then | ||
8157 | zlib_check_nonfatal=1 | ||
8158 | fi | ||
8159 | |||
8160 | |||
8161 | fi | ||
8162 | |||
8163 | |||
8164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5 | ||
8165 | $as_echo_n "checking for possibly buggy zlib... " >&6; } | ||
8166 | if test "$cross_compiling" = yes; then : | ||
8167 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5 | ||
8168 | $as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} | ||
8169 | |||
8170 | else | ||
8171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8172 | /* end confdefs.h. */ | ||
8173 | |||
8174 | #include <stdio.h> | ||
8175 | #include <zlib.h> | ||
8176 | |||
8177 | int | ||
8178 | main () | ||
8179 | { | ||
8180 | |||
8181 | int a=0, b=0, c=0, d=0, n, v; | ||
8182 | n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d); | ||
8183 | if (n != 3 && n != 4) | ||
8184 | exit(1); | ||
8185 | v = a*1000000 + b*10000 + c*100 + d; | ||
8186 | fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v); | ||
8187 | |||
8188 | /* 1.1.4 is OK */ | ||
8189 | if (a == 1 && b == 1 && c >= 4) | ||
8190 | exit(0); | ||
8191 | |||
8192 | /* 1.2.3 and up are OK */ | ||
8193 | if (v >= 1020300) | ||
8194 | exit(0); | ||
8195 | |||
8196 | exit(2); | ||
8197 | |||
8198 | ; | ||
8199 | return 0; | ||
8200 | } | ||
8201 | _ACEOF | ||
8202 | if ac_fn_c_try_run "$LINENO"; then : | ||
8203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8204 | $as_echo "no" >&6; } | ||
8205 | else | ||
8206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8207 | $as_echo "yes" >&6; } | ||
8208 | if test -z "$zlib_check_nonfatal" ; then | ||
8209 | as_fn_error $? "*** zlib too old - check config.log *** | ||
8210 | Your reported zlib version has known security problems. It's possible your | ||
8211 | vendor has fixed these problems without changing the version number. If you | ||
8212 | are sure this is the case, you can disable the check by running | ||
8213 | \"./configure --without-zlib-version-check\". | ||
8214 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
8215 | See http://www.gzip.org/zlib/ for details." "$LINENO" 5 | ||
8216 | else | ||
8217 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5 | ||
8218 | $as_echo "$as_me: WARNING: zlib version may have security problems" >&2;} | ||
8219 | fi | ||
8220 | |||
8221 | fi | ||
8222 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
8223 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
8224 | fi | ||
8225 | |||
8226 | |||
8227 | ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" | ||
8228 | if test "x$ac_cv_func_strcasecmp" = xyes; then : | ||
8229 | |||
8230 | else | ||
8231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5 | ||
8232 | $as_echo_n "checking for strcasecmp in -lresolv... " >&6; } | ||
8233 | if ${ac_cv_lib_resolv_strcasecmp+:} false; then : | ||
8234 | $as_echo_n "(cached) " >&6 | ||
8235 | else | ||
8236 | ac_check_lib_save_LIBS=$LIBS | ||
8237 | LIBS="-lresolv $LIBS" | ||
8238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8239 | /* end confdefs.h. */ | ||
8240 | |||
8241 | /* Override any GCC internal prototype to avoid an error. | ||
8242 | Use char because int might match the return type of a GCC | ||
8243 | builtin and then its argument prototype would still apply. */ | ||
8244 | #ifdef __cplusplus | ||
8245 | extern "C" | ||
8246 | #endif | ||
8247 | char strcasecmp (); | ||
8248 | int | ||
8249 | main () | ||
8250 | { | ||
8251 | return strcasecmp (); | ||
8252 | ; | ||
8253 | return 0; | ||
8254 | } | ||
8255 | _ACEOF | ||
8256 | if ac_fn_c_try_link "$LINENO"; then : | ||
8257 | ac_cv_lib_resolv_strcasecmp=yes | ||
8258 | else | ||
8259 | ac_cv_lib_resolv_strcasecmp=no | ||
8260 | fi | ||
8261 | rm -f core conftest.err conftest.$ac_objext \ | ||
8262 | conftest$ac_exeext conftest.$ac_ext | ||
8263 | LIBS=$ac_check_lib_save_LIBS | ||
8264 | fi | ||
8265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
8266 | $as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; } | ||
8267 | if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then : | ||
8268 | LIBS="$LIBS -lresolv" | ||
8269 | fi | ||
8270 | |||
8271 | |||
8272 | fi | ||
8273 | |||
8274 | for ac_func in utimes | ||
8275 | do : | ||
8276 | ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" | ||
8277 | if test "x$ac_cv_func_utimes" = xyes; then : | ||
8278 | cat >>confdefs.h <<_ACEOF | ||
8279 | #define HAVE_UTIMES 1 | ||
8280 | _ACEOF | ||
8281 | |||
8282 | else | ||
8283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5 | ||
8284 | $as_echo_n "checking for utimes in -lc89... " >&6; } | ||
8285 | if ${ac_cv_lib_c89_utimes+:} false; then : | ||
8286 | $as_echo_n "(cached) " >&6 | ||
8287 | else | ||
8288 | ac_check_lib_save_LIBS=$LIBS | ||
8289 | LIBS="-lc89 $LIBS" | ||
8290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8291 | /* end confdefs.h. */ | ||
8292 | |||
8293 | /* Override any GCC internal prototype to avoid an error. | ||
8294 | Use char because int might match the return type of a GCC | ||
8295 | builtin and then its argument prototype would still apply. */ | ||
8296 | #ifdef __cplusplus | ||
8297 | extern "C" | ||
8298 | #endif | ||
8299 | char utimes (); | ||
8300 | int | ||
8301 | main () | ||
8302 | { | ||
8303 | return utimes (); | ||
8304 | ; | ||
8305 | return 0; | ||
8306 | } | ||
8307 | _ACEOF | ||
8308 | if ac_fn_c_try_link "$LINENO"; then : | ||
8309 | ac_cv_lib_c89_utimes=yes | ||
8310 | else | ||
8311 | ac_cv_lib_c89_utimes=no | ||
8312 | fi | ||
8313 | rm -f core conftest.err conftest.$ac_objext \ | ||
8314 | conftest$ac_exeext conftest.$ac_ext | ||
8315 | LIBS=$ac_check_lib_save_LIBS | ||
8316 | fi | ||
8317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5 | ||
8318 | $as_echo "$ac_cv_lib_c89_utimes" >&6; } | ||
8319 | if test "x$ac_cv_lib_c89_utimes" = xyes; then : | ||
8320 | $as_echo "#define HAVE_UTIMES 1" >>confdefs.h | ||
8321 | |||
8322 | LIBS="$LIBS -lc89" | ||
8323 | fi | ||
8324 | |||
8325 | |||
8326 | fi | ||
8327 | done | ||
8328 | |||
8329 | |||
8330 | for ac_header in bsd/libutil.h libutil.h | ||
8331 | do : | ||
8332 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
8333 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
8334 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
8335 | cat >>confdefs.h <<_ACEOF | ||
8336 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
8337 | _ACEOF | ||
8338 | |||
8339 | fi | ||
8340 | |||
8341 | done | ||
8342 | |||
8343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5 | ||
8344 | $as_echo_n "checking for library containing fmt_scaled... " >&6; } | ||
8345 | if ${ac_cv_search_fmt_scaled+:} false; then : | ||
8346 | $as_echo_n "(cached) " >&6 | ||
8347 | else | ||
8348 | ac_func_search_save_LIBS=$LIBS | ||
8349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8350 | /* end confdefs.h. */ | ||
8351 | |||
8352 | /* Override any GCC internal prototype to avoid an error. | ||
8353 | Use char because int might match the return type of a GCC | ||
8354 | builtin and then its argument prototype would still apply. */ | ||
8355 | #ifdef __cplusplus | ||
8356 | extern "C" | ||
8357 | #endif | ||
8358 | char fmt_scaled (); | ||
8359 | int | ||
8360 | main () | ||
8361 | { | ||
8362 | return fmt_scaled (); | ||
8363 | ; | ||
8364 | return 0; | ||
8365 | } | ||
8366 | _ACEOF | ||
8367 | for ac_lib in '' util bsd; do | ||
8368 | if test -z "$ac_lib"; then | ||
8369 | ac_res="none required" | ||
8370 | else | ||
8371 | ac_res=-l$ac_lib | ||
8372 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
8373 | fi | ||
8374 | if ac_fn_c_try_link "$LINENO"; then : | ||
8375 | ac_cv_search_fmt_scaled=$ac_res | ||
8376 | fi | ||
8377 | rm -f core conftest.err conftest.$ac_objext \ | ||
8378 | conftest$ac_exeext | ||
8379 | if ${ac_cv_search_fmt_scaled+:} false; then : | ||
8380 | break | ||
8381 | fi | ||
8382 | done | ||
8383 | if ${ac_cv_search_fmt_scaled+:} false; then : | ||
8384 | |||
8385 | else | ||
8386 | ac_cv_search_fmt_scaled=no | ||
8387 | fi | ||
8388 | rm conftest.$ac_ext | ||
8389 | LIBS=$ac_func_search_save_LIBS | ||
8390 | fi | ||
8391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmt_scaled" >&5 | ||
8392 | $as_echo "$ac_cv_search_fmt_scaled" >&6; } | ||
8393 | ac_res=$ac_cv_search_fmt_scaled | ||
8394 | if test "$ac_res" != no; then : | ||
8395 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
8396 | |||
8397 | fi | ||
8398 | |||
8399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5 | ||
8400 | $as_echo_n "checking for library containing login... " >&6; } | ||
8401 | if ${ac_cv_search_login+:} false; then : | ||
8402 | $as_echo_n "(cached) " >&6 | ||
8403 | else | ||
8404 | ac_func_search_save_LIBS=$LIBS | ||
8405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8406 | /* end confdefs.h. */ | ||
8407 | |||
8408 | /* Override any GCC internal prototype to avoid an error. | ||
8409 | Use char because int might match the return type of a GCC | ||
8410 | builtin and then its argument prototype would still apply. */ | ||
8411 | #ifdef __cplusplus | ||
8412 | extern "C" | ||
8413 | #endif | ||
8414 | char login (); | ||
8415 | int | ||
8416 | main () | ||
8417 | { | ||
8418 | return login (); | ||
8419 | ; | ||
8420 | return 0; | ||
8421 | } | ||
8422 | _ACEOF | ||
8423 | for ac_lib in '' util bsd; do | ||
8424 | if test -z "$ac_lib"; then | ||
8425 | ac_res="none required" | ||
8426 | else | ||
8427 | ac_res=-l$ac_lib | ||
8428 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
8429 | fi | ||
8430 | if ac_fn_c_try_link "$LINENO"; then : | ||
8431 | ac_cv_search_login=$ac_res | ||
8432 | fi | ||
8433 | rm -f core conftest.err conftest.$ac_objext \ | ||
8434 | conftest$ac_exeext | ||
8435 | if ${ac_cv_search_login+:} false; then : | ||
8436 | break | ||
8437 | fi | ||
8438 | done | ||
8439 | if ${ac_cv_search_login+:} false; then : | ||
8440 | |||
8441 | else | ||
8442 | ac_cv_search_login=no | ||
8443 | fi | ||
8444 | rm conftest.$ac_ext | ||
8445 | LIBS=$ac_func_search_save_LIBS | ||
8446 | fi | ||
8447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5 | ||
8448 | $as_echo "$ac_cv_search_login" >&6; } | ||
8449 | ac_res=$ac_cv_search_login | ||
8450 | if test "$ac_res" != no; then : | ||
8451 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
8452 | |||
8453 | fi | ||
8454 | |||
8455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logout" >&5 | ||
8456 | $as_echo_n "checking for library containing logout... " >&6; } | ||
8457 | if ${ac_cv_search_logout+:} false; then : | ||
8458 | $as_echo_n "(cached) " >&6 | ||
8459 | else | ||
8460 | ac_func_search_save_LIBS=$LIBS | ||
8461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8462 | /* end confdefs.h. */ | ||
8463 | |||
8464 | /* Override any GCC internal prototype to avoid an error. | ||
8465 | Use char because int might match the return type of a GCC | ||
8466 | builtin and then its argument prototype would still apply. */ | ||
8467 | #ifdef __cplusplus | ||
8468 | extern "C" | ||
8469 | #endif | ||
8470 | char logout (); | ||
8471 | int | ||
8472 | main () | ||
8473 | { | ||
8474 | return logout (); | ||
8475 | ; | ||
8476 | return 0; | ||
8477 | } | ||
8478 | _ACEOF | ||
8479 | for ac_lib in '' util bsd; do | ||
8480 | if test -z "$ac_lib"; then | ||
8481 | ac_res="none required" | ||
8482 | else | ||
8483 | ac_res=-l$ac_lib | ||
8484 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
8485 | fi | ||
8486 | if ac_fn_c_try_link "$LINENO"; then : | ||
8487 | ac_cv_search_logout=$ac_res | ||
8488 | fi | ||
8489 | rm -f core conftest.err conftest.$ac_objext \ | ||
8490 | conftest$ac_exeext | ||
8491 | if ${ac_cv_search_logout+:} false; then : | ||
8492 | break | ||
8493 | fi | ||
8494 | done | ||
8495 | if ${ac_cv_search_logout+:} false; then : | ||
8496 | |||
8497 | else | ||
8498 | ac_cv_search_logout=no | ||
8499 | fi | ||
8500 | rm conftest.$ac_ext | ||
8501 | LIBS=$ac_func_search_save_LIBS | ||
8502 | fi | ||
8503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logout" >&5 | ||
8504 | $as_echo "$ac_cv_search_logout" >&6; } | ||
8505 | ac_res=$ac_cv_search_logout | ||
8506 | if test "$ac_res" != no; then : | ||
8507 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
8508 | |||
8509 | fi | ||
8510 | |||
8511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logwtmp" >&5 | ||
8512 | $as_echo_n "checking for library containing logwtmp... " >&6; } | ||
8513 | if ${ac_cv_search_logwtmp+:} false; then : | ||
8514 | $as_echo_n "(cached) " >&6 | ||
8515 | else | ||
8516 | ac_func_search_save_LIBS=$LIBS | ||
8517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8518 | /* end confdefs.h. */ | ||
8519 | |||
8520 | /* Override any GCC internal prototype to avoid an error. | ||
8521 | Use char because int might match the return type of a GCC | ||
8522 | builtin and then its argument prototype would still apply. */ | ||
8523 | #ifdef __cplusplus | ||
8524 | extern "C" | ||
8525 | #endif | ||
8526 | char logwtmp (); | ||
8527 | int | ||
8528 | main () | ||
8529 | { | ||
8530 | return logwtmp (); | ||
8531 | ; | ||
8532 | return 0; | ||
8533 | } | ||
8534 | _ACEOF | ||
8535 | for ac_lib in '' util bsd; do | ||
8536 | if test -z "$ac_lib"; then | ||
8537 | ac_res="none required" | ||
8538 | else | ||
8539 | ac_res=-l$ac_lib | ||
8540 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
8541 | fi | ||
8542 | if ac_fn_c_try_link "$LINENO"; then : | ||
8543 | ac_cv_search_logwtmp=$ac_res | ||
8544 | fi | ||
8545 | rm -f core conftest.err conftest.$ac_objext \ | ||
8546 | conftest$ac_exeext | ||
8547 | if ${ac_cv_search_logwtmp+:} false; then : | ||
8548 | break | ||
8549 | fi | ||
8550 | done | ||
8551 | if ${ac_cv_search_logwtmp+:} false; then : | ||
8552 | |||
8553 | else | ||
8554 | ac_cv_search_logwtmp=no | ||
8555 | fi | ||
8556 | rm conftest.$ac_ext | ||
8557 | LIBS=$ac_func_search_save_LIBS | ||
8558 | fi | ||
8559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logwtmp" >&5 | ||
8560 | $as_echo "$ac_cv_search_logwtmp" >&6; } | ||
8561 | ac_res=$ac_cv_search_logwtmp | ||
8562 | if test "$ac_res" != no; then : | ||
8563 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
8564 | |||
8565 | fi | ||
8566 | |||
8567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 | ||
8568 | $as_echo_n "checking for library containing openpty... " >&6; } | ||
8569 | if ${ac_cv_search_openpty+:} false; then : | ||
8570 | $as_echo_n "(cached) " >&6 | ||
8571 | else | ||
8572 | ac_func_search_save_LIBS=$LIBS | ||
8573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8574 | /* end confdefs.h. */ | ||
8575 | |||
8576 | /* Override any GCC internal prototype to avoid an error. | ||
8577 | Use char because int might match the return type of a GCC | ||
8578 | builtin and then its argument prototype would still apply. */ | ||
8579 | #ifdef __cplusplus | ||
8580 | extern "C" | ||
8581 | #endif | ||
8582 | char openpty (); | ||
8583 | int | ||
8584 | main () | ||
8585 | { | ||
8586 | return openpty (); | ||
8587 | ; | ||
8588 | return 0; | ||
8589 | } | ||
8590 | _ACEOF | ||
8591 | for ac_lib in '' util bsd; do | ||
8592 | if test -z "$ac_lib"; then | ||
8593 | ac_res="none required" | ||
8594 | else | ||
8595 | ac_res=-l$ac_lib | ||
8596 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
8597 | fi | ||
8598 | if ac_fn_c_try_link "$LINENO"; then : | ||
8599 | ac_cv_search_openpty=$ac_res | ||
8600 | fi | ||
8601 | rm -f core conftest.err conftest.$ac_objext \ | ||
8602 | conftest$ac_exeext | ||
8603 | if ${ac_cv_search_openpty+:} false; then : | ||
8604 | break | ||
8605 | fi | ||
8606 | done | ||
8607 | if ${ac_cv_search_openpty+:} false; then : | ||
8608 | |||
8609 | else | ||
8610 | ac_cv_search_openpty=no | ||
8611 | fi | ||
8612 | rm conftest.$ac_ext | ||
8613 | LIBS=$ac_func_search_save_LIBS | ||
8614 | fi | ||
8615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 | ||
8616 | $as_echo "$ac_cv_search_openpty" >&6; } | ||
8617 | ac_res=$ac_cv_search_openpty | ||
8618 | if test "$ac_res" != no; then : | ||
8619 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
8620 | |||
8621 | fi | ||
8622 | |||
8623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing updwtmp" >&5 | ||
8624 | $as_echo_n "checking for library containing updwtmp... " >&6; } | ||
8625 | if ${ac_cv_search_updwtmp+:} false; then : | ||
8626 | $as_echo_n "(cached) " >&6 | ||
8627 | else | ||
8628 | ac_func_search_save_LIBS=$LIBS | ||
8629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8630 | /* end confdefs.h. */ | ||
8631 | |||
8632 | /* Override any GCC internal prototype to avoid an error. | ||
8633 | Use char because int might match the return type of a GCC | ||
8634 | builtin and then its argument prototype would still apply. */ | ||
8635 | #ifdef __cplusplus | ||
8636 | extern "C" | ||
8637 | #endif | ||
8638 | char updwtmp (); | ||
8639 | int | ||
8640 | main () | ||
8641 | { | ||
8642 | return updwtmp (); | ||
8643 | ; | ||
8644 | return 0; | ||
8645 | } | ||
8646 | _ACEOF | ||
8647 | for ac_lib in '' util bsd; do | ||
8648 | if test -z "$ac_lib"; then | ||
8649 | ac_res="none required" | ||
8650 | else | ||
8651 | ac_res=-l$ac_lib | ||
8652 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
8653 | fi | ||
8654 | if ac_fn_c_try_link "$LINENO"; then : | ||
8655 | ac_cv_search_updwtmp=$ac_res | ||
8656 | fi | ||
8657 | rm -f core conftest.err conftest.$ac_objext \ | ||
8658 | conftest$ac_exeext | ||
8659 | if ${ac_cv_search_updwtmp+:} false; then : | ||
8660 | break | ||
8661 | fi | ||
8662 | done | ||
8663 | if ${ac_cv_search_updwtmp+:} false; then : | ||
8664 | |||
8665 | else | ||
8666 | ac_cv_search_updwtmp=no | ||
8667 | fi | ||
8668 | rm conftest.$ac_ext | ||
8669 | LIBS=$ac_func_search_save_LIBS | ||
8670 | fi | ||
8671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_updwtmp" >&5 | ||
8672 | $as_echo "$ac_cv_search_updwtmp" >&6; } | ||
8673 | ac_res=$ac_cv_search_updwtmp | ||
8674 | if test "$ac_res" != no; then : | ||
8675 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
8676 | |||
8677 | fi | ||
8678 | |||
8679 | for ac_func in fmt_scaled login logout openpty updwtmp logwtmp | ||
8680 | do : | ||
8681 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8682 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
8683 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
8684 | cat >>confdefs.h <<_ACEOF | ||
8685 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8686 | _ACEOF | ||
8687 | |||
8688 | fi | ||
8689 | done | ||
8690 | |||
8691 | |||
8692 | for ac_func in strftime | ||
8693 | do : | ||
8694 | ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" | ||
8695 | if test "x$ac_cv_func_strftime" = xyes; then : | ||
8696 | cat >>confdefs.h <<_ACEOF | ||
8697 | #define HAVE_STRFTIME 1 | ||
8698 | _ACEOF | ||
8699 | |||
8700 | else | ||
8701 | # strftime is in -lintl on SCO UNIX. | ||
8702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 | ||
8703 | $as_echo_n "checking for strftime in -lintl... " >&6; } | ||
8704 | if ${ac_cv_lib_intl_strftime+:} false; then : | ||
8705 | $as_echo_n "(cached) " >&6 | ||
8706 | else | ||
8707 | ac_check_lib_save_LIBS=$LIBS | ||
8708 | LIBS="-lintl $LIBS" | ||
8709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8710 | /* end confdefs.h. */ | ||
8711 | |||
8712 | /* Override any GCC internal prototype to avoid an error. | ||
8713 | Use char because int might match the return type of a GCC | ||
8714 | builtin and then its argument prototype would still apply. */ | ||
8715 | #ifdef __cplusplus | ||
8716 | extern "C" | ||
8717 | #endif | ||
8718 | char strftime (); | ||
8719 | int | ||
8720 | main () | ||
8721 | { | ||
8722 | return strftime (); | ||
8723 | ; | ||
8724 | return 0; | ||
8725 | } | ||
8726 | _ACEOF | ||
8727 | if ac_fn_c_try_link "$LINENO"; then : | ||
8728 | ac_cv_lib_intl_strftime=yes | ||
8729 | else | ||
8730 | ac_cv_lib_intl_strftime=no | ||
8731 | fi | ||
8732 | rm -f core conftest.err conftest.$ac_objext \ | ||
8733 | conftest$ac_exeext conftest.$ac_ext | ||
8734 | LIBS=$ac_check_lib_save_LIBS | ||
8735 | fi | ||
8736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 | ||
8737 | $as_echo "$ac_cv_lib_intl_strftime" >&6; } | ||
8738 | if test "x$ac_cv_lib_intl_strftime" = xyes; then : | ||
8739 | $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h | ||
8740 | |||
8741 | LIBS="-lintl $LIBS" | ||
8742 | fi | ||
8743 | |||
8744 | fi | ||
8745 | done | ||
8746 | |||
8747 | |||
8748 | # Check for ALTDIRFUNC glob() extension | ||
8749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5 | ||
8750 | $as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; } | ||
8751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8752 | /* end confdefs.h. */ | ||
8753 | |||
8754 | #include <glob.h> | ||
8755 | #ifdef GLOB_ALTDIRFUNC | ||
8756 | FOUNDIT | ||
8757 | #endif | ||
8758 | |||
8759 | _ACEOF | ||
8760 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
8761 | $EGREP "FOUNDIT" >/dev/null 2>&1; then : | ||
8762 | |||
8763 | |||
8764 | $as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h | ||
8765 | |||
8766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8767 | $as_echo "yes" >&6; } | ||
8768 | |||
8769 | else | ||
8770 | |||
8771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8772 | $as_echo "no" >&6; } | ||
8773 | |||
8774 | |||
8775 | fi | ||
8776 | rm -f conftest* | ||
8777 | |||
8778 | |||
8779 | # Check for g.gl_matchc glob() extension | ||
8780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5 | ||
8781 | $as_echo_n "checking for gl_matchc field in glob_t... " >&6; } | ||
8782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8783 | /* end confdefs.h. */ | ||
8784 | #include <glob.h> | ||
8785 | int | ||
8786 | main () | ||
8787 | { | ||
8788 | glob_t g; g.gl_matchc = 1; | ||
8789 | ; | ||
8790 | return 0; | ||
8791 | } | ||
8792 | _ACEOF | ||
8793 | if ac_fn_c_try_compile "$LINENO"; then : | ||
8794 | |||
8795 | |||
8796 | $as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h | ||
8797 | |||
8798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8799 | $as_echo "yes" >&6; } | ||
8800 | |||
8801 | else | ||
8802 | |||
8803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8804 | $as_echo "no" >&6; } | ||
8805 | |||
8806 | fi | ||
8807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8808 | |||
8809 | # Check for g.gl_statv glob() extension | ||
8810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5 | ||
8811 | $as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; } | ||
8812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8813 | /* end confdefs.h. */ | ||
8814 | #include <glob.h> | ||
8815 | int | ||
8816 | main () | ||
8817 | { | ||
8818 | |||
8819 | #ifndef GLOB_KEEPSTAT | ||
8820 | #error "glob does not support GLOB_KEEPSTAT extension" | ||
8821 | #endif | ||
8822 | glob_t g; | ||
8823 | g.gl_statv = NULL; | ||
8824 | |||
8825 | ; | ||
8826 | return 0; | ||
8827 | } | ||
8828 | _ACEOF | ||
8829 | if ac_fn_c_try_compile "$LINENO"; then : | ||
8830 | |||
8831 | |||
8832 | $as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h | ||
8833 | |||
8834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8835 | $as_echo "yes" >&6; } | ||
8836 | |||
8837 | else | ||
8838 | |||
8839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8840 | $as_echo "no" >&6; } | ||
8841 | |||
8842 | |||
8843 | fi | ||
8844 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8845 | |||
8846 | ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h> | ||
8847 | " | ||
8848 | if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then : | ||
8849 | ac_have_decl=1 | ||
8850 | else | ||
8851 | ac_have_decl=0 | ||
8852 | fi | ||
8853 | |||
8854 | cat >>confdefs.h <<_ACEOF | ||
8855 | #define HAVE_DECL_GLOB_NOMATCH $ac_have_decl | ||
8856 | _ACEOF | ||
8857 | |||
8858 | |||
8859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5 | ||
8860 | $as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; } | ||
8861 | if test "$cross_compiling" = yes; then : | ||
8862 | |||
8863 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5 | ||
8864 | $as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;} | ||
8865 | $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h | ||
8866 | |||
8867 | |||
8868 | |||
8869 | else | ||
8870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8871 | /* end confdefs.h. */ | ||
8872 | |||
8873 | #include <sys/types.h> | ||
8874 | #include <dirent.h> | ||
8875 | int | ||
8876 | main () | ||
8877 | { | ||
8878 | |||
8879 | struct dirent d; | ||
8880 | exit(sizeof(d.d_name)<=sizeof(char)); | ||
8881 | |||
8882 | ; | ||
8883 | return 0; | ||
8884 | } | ||
8885 | _ACEOF | ||
8886 | if ac_fn_c_try_run "$LINENO"; then : | ||
8887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8888 | $as_echo "yes" >&6; } | ||
8889 | else | ||
8890 | |||
8891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8892 | $as_echo "no" >&6; } | ||
8893 | |||
8894 | $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h | ||
8895 | |||
8896 | |||
8897 | fi | ||
8898 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
8899 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
8900 | fi | ||
8901 | |||
8902 | |||
8903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5 | ||
8904 | $as_echo_n "checking for /proc/pid/fd directory... " >&6; } | ||
8905 | if test -d "/proc/$$/fd" ; then | ||
8906 | |||
8907 | $as_echo "#define HAVE_PROC_PID 1" >>confdefs.h | ||
8908 | |||
8909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8910 | $as_echo "yes" >&6; } | ||
8911 | else | ||
8912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8913 | $as_echo "no" >&6; } | ||
8914 | fi | ||
8915 | |||
8916 | # Check whether user wants S/Key support | ||
8917 | SKEY_MSG="no" | ||
8918 | |||
8919 | # Check whether --with-skey was given. | ||
8920 | if test "${with_skey+set}" = set; then : | ||
8921 | withval=$with_skey; | ||
8922 | if test "x$withval" != "xno" ; then | ||
8923 | |||
8924 | if test "x$withval" != "xyes" ; then | ||
8925 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
8926 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
8927 | fi | ||
8928 | |||
8929 | |||
8930 | $as_echo "#define SKEY 1" >>confdefs.h | ||
8931 | |||
8932 | LIBS="-lskey $LIBS" | ||
8933 | SKEY_MSG="yes" | ||
8934 | |||
8935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5 | ||
8936 | $as_echo_n "checking for s/key support... " >&6; } | ||
8937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8938 | /* end confdefs.h. */ | ||
8939 | |||
8940 | #include <stdio.h> | ||
8941 | #include <skey.h> | ||
8942 | |||
8943 | int | ||
8944 | main () | ||
8945 | { | ||
8946 | |||
8947 | char *ff = skey_keyinfo(""); ff=""; | ||
8948 | exit(0); | ||
8949 | |||
8950 | ; | ||
8951 | return 0; | ||
8952 | } | ||
8953 | _ACEOF | ||
8954 | if ac_fn_c_try_link "$LINENO"; then : | ||
8955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8956 | $as_echo "yes" >&6; } | ||
8957 | else | ||
8958 | |||
8959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8960 | $as_echo "no" >&6; } | ||
8961 | as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5 | ||
8962 | |||
8963 | fi | ||
8964 | rm -f core conftest.err conftest.$ac_objext \ | ||
8965 | conftest$ac_exeext conftest.$ac_ext | ||
8966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5 | ||
8967 | $as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; } | ||
8968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8969 | /* end confdefs.h. */ | ||
8970 | |||
8971 | #include <stdio.h> | ||
8972 | #include <skey.h> | ||
8973 | |||
8974 | int | ||
8975 | main () | ||
8976 | { | ||
8977 | |||
8978 | (void)skeychallenge(NULL,"name","",0); | ||
8979 | |||
8980 | ; | ||
8981 | return 0; | ||
8982 | } | ||
8983 | _ACEOF | ||
8984 | if ac_fn_c_try_compile "$LINENO"; then : | ||
8985 | |||
8986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8987 | $as_echo "yes" >&6; } | ||
8988 | |||
8989 | $as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h | ||
8990 | |||
8991 | else | ||
8992 | |||
8993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8994 | $as_echo "no" >&6; } | ||
8995 | |||
8996 | fi | ||
8997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8998 | fi | ||
8999 | |||
9000 | |||
9001 | fi | ||
9002 | |||
9003 | |||
9004 | # Check whether user wants TCP wrappers support | ||
9005 | TCPW_MSG="no" | ||
9006 | |||
9007 | # Check whether --with-tcp-wrappers was given. | ||
9008 | if test "${with_tcp_wrappers+set}" = set; then : | ||
9009 | withval=$with_tcp_wrappers; | ||
9010 | if test "x$withval" != "xno" ; then | ||
9011 | saved_LIBS="$LIBS" | ||
9012 | saved_LDFLAGS="$LDFLAGS" | ||
9013 | saved_CPPFLAGS="$CPPFLAGS" | ||
9014 | if test -n "${withval}" && \ | ||
9015 | test "x${withval}" != "xyes"; then | ||
9016 | if test -d "${withval}/lib"; then | ||
9017 | if test -n "${need_dash_r}"; then | ||
9018 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
9019 | else | ||
9020 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
9021 | fi | ||
9022 | else | ||
9023 | if test -n "${need_dash_r}"; then | ||
9024 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
9025 | else | ||
9026 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
9027 | fi | ||
9028 | fi | ||
9029 | if test -d "${withval}/include"; then | ||
9030 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
9031 | else | ||
9032 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
9033 | fi | ||
9034 | fi | ||
9035 | LIBS="-lwrap $LIBS" | ||
9036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5 | ||
9037 | $as_echo_n "checking for libwrap... " >&6; } | ||
9038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9039 | /* end confdefs.h. */ | ||
9040 | |||
9041 | #include <sys/types.h> | ||
9042 | #include <sys/socket.h> | ||
9043 | #include <netinet/in.h> | ||
9044 | #include <tcpd.h> | ||
9045 | int deny_severity = 0, allow_severity = 0; | ||
9046 | |||
9047 | int | ||
9048 | main () | ||
9049 | { | ||
9050 | |||
9051 | hosts_access(0); | ||
9052 | |||
9053 | ; | ||
9054 | return 0; | ||
9055 | } | ||
9056 | _ACEOF | ||
9057 | if ac_fn_c_try_link "$LINENO"; then : | ||
9058 | |||
9059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9060 | $as_echo "yes" >&6; } | ||
9061 | |||
9062 | $as_echo "#define LIBWRAP 1" >>confdefs.h | ||
9063 | |||
9064 | SSHDLIBS="$SSHDLIBS -lwrap" | ||
9065 | TCPW_MSG="yes" | ||
9066 | |||
9067 | else | ||
9068 | |||
9069 | as_fn_error $? "*** libwrap missing" "$LINENO" 5 | ||
9070 | |||
9071 | |||
9072 | fi | ||
9073 | rm -f core conftest.err conftest.$ac_objext \ | ||
9074 | conftest$ac_exeext conftest.$ac_ext | ||
9075 | LIBS="$saved_LIBS" | ||
9076 | fi | ||
9077 | |||
9078 | |||
9079 | fi | ||
9080 | |||
9081 | |||
9082 | # Check whether user wants to use ldns | ||
9083 | LDNS_MSG="no" | ||
9084 | |||
9085 | # Check whether --with-ldns was given. | ||
9086 | if test "${with_ldns+set}" = set; then : | ||
9087 | withval=$with_ldns; | ||
9088 | if test "x$withval" != "xno" ; then | ||
9089 | |||
9090 | if test "x$withval" != "xyes" ; then | ||
9091 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
9092 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
9093 | fi | ||
9094 | |||
9095 | |||
9096 | $as_echo "#define HAVE_LDNS 1" >>confdefs.h | ||
9097 | |||
9098 | LIBS="-lldns $LIBS" | ||
9099 | LDNS_MSG="yes" | ||
9100 | |||
9101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns support" >&5 | ||
9102 | $as_echo_n "checking for ldns support... " >&6; } | ||
9103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9104 | /* end confdefs.h. */ | ||
9105 | |||
9106 | #include <stdio.h> | ||
9107 | #include <stdlib.h> | ||
9108 | #include <stdint.h> | ||
9109 | #include <ldns/ldns.h> | ||
9110 | int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); } | ||
9111 | |||
9112 | |||
9113 | _ACEOF | ||
9114 | if ac_fn_c_try_link "$LINENO"; then : | ||
9115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9116 | $as_echo "yes" >&6; } | ||
9117 | else | ||
9118 | |||
9119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9120 | $as_echo "no" >&6; } | ||
9121 | as_fn_error $? "** Incomplete or missing ldns libraries." "$LINENO" 5 | ||
9122 | |||
9123 | fi | ||
9124 | rm -f core conftest.err conftest.$ac_objext \ | ||
9125 | conftest$ac_exeext conftest.$ac_ext | ||
9126 | fi | ||
9127 | |||
9128 | |||
9129 | fi | ||
9130 | |||
9131 | |||
9132 | # Check whether user wants libedit support | ||
9133 | LIBEDIT_MSG="no" | ||
9134 | |||
9135 | # Check whether --with-libedit was given. | ||
9136 | if test "${with_libedit+set}" = set; then : | ||
9137 | withval=$with_libedit; if test "x$withval" != "xno" ; then | ||
9138 | if test "x$withval" = "xyes" ; then | ||
9139 | if test -n "$ac_tool_prefix"; then | ||
9140 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
9141 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
9142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
9143 | $as_echo_n "checking for $ac_word... " >&6; } | ||
9144 | if ${ac_cv_path_PKGCONFIG+:} false; then : | ||
9145 | $as_echo_n "(cached) " >&6 | ||
9146 | else | ||
9147 | case $PKGCONFIG in | ||
9148 | [\\/]* | ?:[\\/]*) | ||
9149 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. | ||
9150 | ;; | ||
9151 | *) | ||
9152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9153 | for as_dir in $PATH | ||
9154 | do | ||
9155 | IFS=$as_save_IFS | ||
9156 | test -z "$as_dir" && as_dir=. | ||
9157 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9158 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
9159 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
9160 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9161 | break 2 | ||
9162 | fi | ||
9163 | done | ||
9164 | done | ||
9165 | IFS=$as_save_IFS | ||
9166 | |||
9167 | ;; | ||
9168 | esac | ||
9169 | fi | ||
9170 | PKGCONFIG=$ac_cv_path_PKGCONFIG | ||
9171 | if test -n "$PKGCONFIG"; then | ||
9172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 | ||
9173 | $as_echo "$PKGCONFIG" >&6; } | ||
9174 | else | ||
9175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9176 | $as_echo "no" >&6; } | ||
9177 | fi | ||
9178 | |||
9179 | |||
9180 | fi | ||
9181 | if test -z "$ac_cv_path_PKGCONFIG"; then | ||
9182 | ac_pt_PKGCONFIG=$PKGCONFIG | ||
9183 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
9184 | set dummy pkg-config; ac_word=$2 | ||
9185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
9186 | $as_echo_n "checking for $ac_word... " >&6; } | ||
9187 | if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : | ||
9188 | $as_echo_n "(cached) " >&6 | ||
9189 | else | ||
9190 | case $ac_pt_PKGCONFIG in | ||
9191 | [\\/]* | ?:[\\/]*) | ||
9192 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. | ||
9193 | ;; | ||
9194 | *) | ||
9195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9196 | for as_dir in $PATH | ||
9197 | do | ||
9198 | IFS=$as_save_IFS | ||
9199 | test -z "$as_dir" && as_dir=. | ||
9200 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9201 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
9202 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
9203 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9204 | break 2 | ||
9205 | fi | ||
9206 | done | ||
9207 | done | ||
9208 | IFS=$as_save_IFS | ||
9209 | |||
9210 | ;; | ||
9211 | esac | ||
9212 | fi | ||
9213 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG | ||
9214 | if test -n "$ac_pt_PKGCONFIG"; then | ||
9215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 | ||
9216 | $as_echo "$ac_pt_PKGCONFIG" >&6; } | ||
9217 | else | ||
9218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9219 | $as_echo "no" >&6; } | ||
9220 | fi | ||
9221 | |||
9222 | if test "x$ac_pt_PKGCONFIG" = x; then | ||
9223 | PKGCONFIG="no" | ||
9224 | else | ||
9225 | case $cross_compiling:$ac_tool_warned in | ||
9226 | yes:) | ||
9227 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
9228 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
9229 | ac_tool_warned=yes ;; | ||
9230 | esac | ||
9231 | PKGCONFIG=$ac_pt_PKGCONFIG | ||
9232 | fi | ||
9233 | else | ||
9234 | PKGCONFIG="$ac_cv_path_PKGCONFIG" | ||
9235 | fi | ||
9236 | |||
9237 | if test "x$PKGCONFIG" != "xno"; then | ||
9238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5 | ||
9239 | $as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; } | ||
9240 | if "$PKGCONFIG" libedit; then | ||
9241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9242 | $as_echo "yes" >&6; } | ||
9243 | use_pkgconfig_for_libedit=yes | ||
9244 | else | ||
9245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9246 | $as_echo "no" >&6; } | ||
9247 | fi | ||
9248 | fi | ||
9249 | else | ||
9250 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
9251 | if test -n "${need_dash_r}"; then | ||
9252 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
9253 | else | ||
9254 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
9255 | fi | ||
9256 | fi | ||
9257 | if test "x$use_pkgconfig_for_libedit" = "xyes"; then | ||
9258 | LIBEDIT=`$PKGCONFIG --libs-only-l libedit` | ||
9259 | CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`" | ||
9260 | else | ||
9261 | LIBEDIT="-ledit -lcurses" | ||
9262 | fi | ||
9263 | OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'` | ||
9264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5 | ||
9265 | $as_echo_n "checking for el_init in -ledit... " >&6; } | ||
9266 | if ${ac_cv_lib_edit_el_init+:} false; then : | ||
9267 | $as_echo_n "(cached) " >&6 | ||
9268 | else | ||
9269 | ac_check_lib_save_LIBS=$LIBS | ||
9270 | LIBS="-ledit $OTHERLIBS | ||
9271 | $LIBS" | ||
9272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9273 | /* end confdefs.h. */ | ||
9274 | |||
9275 | /* Override any GCC internal prototype to avoid an error. | ||
9276 | Use char because int might match the return type of a GCC | ||
9277 | builtin and then its argument prototype would still apply. */ | ||
9278 | #ifdef __cplusplus | ||
9279 | extern "C" | ||
9280 | #endif | ||
9281 | char el_init (); | ||
9282 | int | ||
9283 | main () | ||
9284 | { | ||
9285 | return el_init (); | ||
9286 | ; | ||
9287 | return 0; | ||
9288 | } | ||
9289 | _ACEOF | ||
9290 | if ac_fn_c_try_link "$LINENO"; then : | ||
9291 | ac_cv_lib_edit_el_init=yes | ||
9292 | else | ||
9293 | ac_cv_lib_edit_el_init=no | ||
9294 | fi | ||
9295 | rm -f core conftest.err conftest.$ac_objext \ | ||
9296 | conftest$ac_exeext conftest.$ac_ext | ||
9297 | LIBS=$ac_check_lib_save_LIBS | ||
9298 | fi | ||
9299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5 | ||
9300 | $as_echo "$ac_cv_lib_edit_el_init" >&6; } | ||
9301 | if test "x$ac_cv_lib_edit_el_init" = xyes; then : | ||
9302 | |||
9303 | $as_echo "#define USE_LIBEDIT 1" >>confdefs.h | ||
9304 | |||
9305 | LIBEDIT_MSG="yes" | ||
9306 | |||
9307 | |||
9308 | else | ||
9309 | as_fn_error $? "libedit not found" "$LINENO" 5 | ||
9310 | fi | ||
9311 | |||
9312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5 | ||
9313 | $as_echo_n "checking if libedit version is compatible... " >&6; } | ||
9314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9315 | /* end confdefs.h. */ | ||
9316 | #include <histedit.h> | ||
9317 | int | ||
9318 | main () | ||
9319 | { | ||
9320 | |||
9321 | int i = H_SETSIZE; | ||
9322 | el_init("", NULL, NULL, NULL); | ||
9323 | exit(0); | ||
9324 | |||
9325 | ; | ||
9326 | return 0; | ||
9327 | } | ||
9328 | _ACEOF | ||
9329 | if ac_fn_c_try_compile "$LINENO"; then : | ||
9330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9331 | $as_echo "yes" >&6; } | ||
9332 | else | ||
9333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9334 | $as_echo "no" >&6; } | ||
9335 | as_fn_error $? "libedit version is not compatible" "$LINENO" 5 | ||
9336 | |||
9337 | fi | ||
9338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9339 | fi | ||
9340 | |||
9341 | fi | ||
9342 | |||
9343 | |||
9344 | AUDIT_MODULE=none | ||
9345 | |||
9346 | # Check whether --with-audit was given. | ||
9347 | if test "${with_audit+set}" = set; then : | ||
9348 | withval=$with_audit; | ||
9349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5 | ||
9350 | $as_echo_n "checking for supported audit module... " >&6; } | ||
9351 | case "$withval" in | ||
9352 | bsm) | ||
9353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5 | ||
9354 | $as_echo "bsm" >&6; } | ||
9355 | AUDIT_MODULE=bsm | ||
9356 | for ac_header in bsm/audit.h | ||
9357 | do : | ||
9358 | ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" " | ||
9359 | #ifdef HAVE_TIME_H | ||
9360 | # include <time.h> | ||
9361 | #endif | ||
9362 | |||
9363 | |||
9364 | " | ||
9365 | if test "x$ac_cv_header_bsm_audit_h" = xyes; then : | ||
9366 | cat >>confdefs.h <<_ACEOF | ||
9367 | #define HAVE_BSM_AUDIT_H 1 | ||
9368 | _ACEOF | ||
9369 | |||
9370 | else | ||
9371 | as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5 | ||
9372 | fi | ||
9373 | |||
9374 | done | ||
9375 | |||
9376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5 | ||
9377 | $as_echo_n "checking for getaudit in -lbsm... " >&6; } | ||
9378 | if ${ac_cv_lib_bsm_getaudit+:} false; then : | ||
9379 | $as_echo_n "(cached) " >&6 | ||
9380 | else | ||
9381 | ac_check_lib_save_LIBS=$LIBS | ||
9382 | LIBS="-lbsm $LIBS" | ||
9383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9384 | /* end confdefs.h. */ | ||
9385 | |||
9386 | /* Override any GCC internal prototype to avoid an error. | ||
9387 | Use char because int might match the return type of a GCC | ||
9388 | builtin and then its argument prototype would still apply. */ | ||
9389 | #ifdef __cplusplus | ||
9390 | extern "C" | ||
9391 | #endif | ||
9392 | char getaudit (); | ||
9393 | int | ||
9394 | main () | ||
9395 | { | ||
9396 | return getaudit (); | ||
9397 | ; | ||
9398 | return 0; | ||
9399 | } | ||
9400 | _ACEOF | ||
9401 | if ac_fn_c_try_link "$LINENO"; then : | ||
9402 | ac_cv_lib_bsm_getaudit=yes | ||
9403 | else | ||
9404 | ac_cv_lib_bsm_getaudit=no | ||
9405 | fi | ||
9406 | rm -f core conftest.err conftest.$ac_objext \ | ||
9407 | conftest$ac_exeext conftest.$ac_ext | ||
9408 | LIBS=$ac_check_lib_save_LIBS | ||
9409 | fi | ||
9410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5 | ||
9411 | $as_echo "$ac_cv_lib_bsm_getaudit" >&6; } | ||
9412 | if test "x$ac_cv_lib_bsm_getaudit" = xyes; then : | ||
9413 | cat >>confdefs.h <<_ACEOF | ||
9414 | #define HAVE_LIBBSM 1 | ||
9415 | _ACEOF | ||
9416 | |||
9417 | LIBS="-lbsm $LIBS" | ||
9418 | |||
9419 | else | ||
9420 | as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5 | ||
9421 | fi | ||
9422 | |||
9423 | for ac_func in getaudit | ||
9424 | do : | ||
9425 | ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit" | ||
9426 | if test "x$ac_cv_func_getaudit" = xyes; then : | ||
9427 | cat >>confdefs.h <<_ACEOF | ||
9428 | #define HAVE_GETAUDIT 1 | ||
9429 | _ACEOF | ||
9430 | |||
9431 | else | ||
9432 | as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5 | ||
9433 | fi | ||
9434 | done | ||
9435 | |||
9436 | # These are optional | ||
9437 | for ac_func in getaudit_addr aug_get_machine | ||
9438 | do : | ||
9439 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9440 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
9441 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
9442 | cat >>confdefs.h <<_ACEOF | ||
9443 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9444 | _ACEOF | ||
9445 | |||
9446 | fi | ||
9447 | done | ||
9448 | |||
9449 | |||
9450 | $as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h | ||
9451 | |||
9452 | if test "$sol2ver" -eq 11; then | ||
9453 | SSHDLIBS="$SSHDLIBS -lscf" | ||
9454 | |||
9455 | $as_echo "#define BROKEN_BSM_API 1" >>confdefs.h | ||
9456 | |||
9457 | fi | ||
9458 | ;; | ||
9459 | linux) | ||
9460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5 | ||
9461 | $as_echo "linux" >&6; } | ||
9462 | AUDIT_MODULE=linux | ||
9463 | for ac_header in libaudit.h | ||
9464 | do : | ||
9465 | ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default" | ||
9466 | if test "x$ac_cv_header_libaudit_h" = xyes; then : | ||
9467 | cat >>confdefs.h <<_ACEOF | ||
9468 | #define HAVE_LIBAUDIT_H 1 | ||
9469 | _ACEOF | ||
9470 | |||
9471 | fi | ||
9472 | |||
9473 | done | ||
9474 | |||
9475 | SSHDLIBS="$SSHDLIBS -laudit" | ||
9476 | |||
9477 | $as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h | ||
9478 | |||
9479 | ;; | ||
9480 | debug) | ||
9481 | AUDIT_MODULE=debug | ||
9482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5 | ||
9483 | $as_echo "debug" >&6; } | ||
9484 | |||
9485 | $as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h | ||
9486 | |||
9487 | ;; | ||
9488 | no) | ||
9489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9490 | $as_echo "no" >&6; } | ||
9491 | ;; | ||
9492 | *) | ||
9493 | as_fn_error $? "Unknown audit module $withval" "$LINENO" 5 | ||
9494 | ;; | ||
9495 | esac | ||
9496 | |||
9497 | fi | ||
9498 | |||
9499 | |||
9500 | for ac_func in \ | ||
9501 | arc4random \ | ||
9502 | arc4random_buf \ | ||
9503 | arc4random_uniform \ | ||
9504 | asprintf \ | ||
9505 | b64_ntop \ | ||
9506 | __b64_ntop \ | ||
9507 | b64_pton \ | ||
9508 | __b64_pton \ | ||
9509 | bcopy \ | ||
9510 | bindresvport_sa \ | ||
9511 | clock \ | ||
9512 | closefrom \ | ||
9513 | dirfd \ | ||
9514 | fchmod \ | ||
9515 | fchown \ | ||
9516 | freeaddrinfo \ | ||
9517 | fstatvfs \ | ||
9518 | futimes \ | ||
9519 | getaddrinfo \ | ||
9520 | getcwd \ | ||
9521 | getgrouplist \ | ||
9522 | getnameinfo \ | ||
9523 | getopt \ | ||
9524 | getpeereid \ | ||
9525 | getpeerucred \ | ||
9526 | getpgid \ | ||
9527 | getpgrp \ | ||
9528 | _getpty \ | ||
9529 | getrlimit \ | ||
9530 | getttyent \ | ||
9531 | glob \ | ||
9532 | group_from_gid \ | ||
9533 | inet_aton \ | ||
9534 | inet_ntoa \ | ||
9535 | inet_ntop \ | ||
9536 | innetgr \ | ||
9537 | login_getcapbool \ | ||
9538 | md5_crypt \ | ||
9539 | memmove \ | ||
9540 | mkdtemp \ | ||
9541 | mmap \ | ||
9542 | ngetaddrinfo \ | ||
9543 | nsleep \ | ||
9544 | ogetaddrinfo \ | ||
9545 | openlog_r \ | ||
9546 | poll \ | ||
9547 | prctl \ | ||
9548 | pstat \ | ||
9549 | readpassphrase \ | ||
9550 | realpath \ | ||
9551 | recvmsg \ | ||
9552 | rresvport_af \ | ||
9553 | sendmsg \ | ||
9554 | setdtablesize \ | ||
9555 | setegid \ | ||
9556 | setenv \ | ||
9557 | seteuid \ | ||
9558 | setgroupent \ | ||
9559 | setgroups \ | ||
9560 | setlinebuf \ | ||
9561 | setlogin \ | ||
9562 | setpassent\ | ||
9563 | setpcred \ | ||
9564 | setproctitle \ | ||
9565 | setregid \ | ||
9566 | setreuid \ | ||
9567 | setrlimit \ | ||
9568 | setsid \ | ||
9569 | setvbuf \ | ||
9570 | sigaction \ | ||
9571 | sigvec \ | ||
9572 | snprintf \ | ||
9573 | socketpair \ | ||
9574 | statfs \ | ||
9575 | statvfs \ | ||
9576 | strdup \ | ||
9577 | strerror \ | ||
9578 | strlcat \ | ||
9579 | strlcpy \ | ||
9580 | strmode \ | ||
9581 | strnlen \ | ||
9582 | strnvis \ | ||
9583 | strptime \ | ||
9584 | strtonum \ | ||
9585 | strtoll \ | ||
9586 | strtoul \ | ||
9587 | strtoull \ | ||
9588 | swap32 \ | ||
9589 | sysconf \ | ||
9590 | tcgetpgrp \ | ||
9591 | timingsafe_bcmp \ | ||
9592 | truncate \ | ||
9593 | unsetenv \ | ||
9594 | updwtmpx \ | ||
9595 | user_from_uid \ | ||
9596 | usleep \ | ||
9597 | vasprintf \ | ||
9598 | vhangup \ | ||
9599 | vsnprintf \ | ||
9600 | waitpid \ | ||
9601 | |||
9602 | do : | ||
9603 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9604 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
9605 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
9606 | cat >>confdefs.h <<_ACEOF | ||
9607 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9608 | _ACEOF | ||
9609 | |||
9610 | fi | ||
9611 | done | ||
9612 | |||
9613 | |||
9614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9615 | /* end confdefs.h. */ | ||
9616 | #include <ctype.h> | ||
9617 | int | ||
9618 | main () | ||
9619 | { | ||
9620 | return (isblank('a')); | ||
9621 | ; | ||
9622 | return 0; | ||
9623 | } | ||
9624 | _ACEOF | ||
9625 | if ac_fn_c_try_link "$LINENO"; then : | ||
9626 | |||
9627 | $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h | ||
9628 | |||
9629 | |||
9630 | fi | ||
9631 | rm -f core conftest.err conftest.$ac_objext \ | ||
9632 | conftest$ac_exeext conftest.$ac_ext | ||
9633 | |||
9634 | # PKCS#11 support requires dlopen() and co | ||
9635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 | ||
9636 | $as_echo_n "checking for library containing dlopen... " >&6; } | ||
9637 | if ${ac_cv_search_dlopen+:} false; then : | ||
9638 | $as_echo_n "(cached) " >&6 | ||
9639 | else | ||
9640 | ac_func_search_save_LIBS=$LIBS | ||
9641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9642 | /* end confdefs.h. */ | ||
9643 | |||
9644 | /* Override any GCC internal prototype to avoid an error. | ||
9645 | Use char because int might match the return type of a GCC | ||
9646 | builtin and then its argument prototype would still apply. */ | ||
9647 | #ifdef __cplusplus | ||
9648 | extern "C" | ||
9649 | #endif | ||
9650 | char dlopen (); | ||
9651 | int | ||
9652 | main () | ||
9653 | { | ||
9654 | return dlopen (); | ||
9655 | ; | ||
9656 | return 0; | ||
9657 | } | ||
9658 | _ACEOF | ||
9659 | for ac_lib in '' dl; do | ||
9660 | if test -z "$ac_lib"; then | ||
9661 | ac_res="none required" | ||
9662 | else | ||
9663 | ac_res=-l$ac_lib | ||
9664 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9665 | fi | ||
9666 | if ac_fn_c_try_link "$LINENO"; then : | ||
9667 | ac_cv_search_dlopen=$ac_res | ||
9668 | fi | ||
9669 | rm -f core conftest.err conftest.$ac_objext \ | ||
9670 | conftest$ac_exeext | ||
9671 | if ${ac_cv_search_dlopen+:} false; then : | ||
9672 | break | ||
9673 | fi | ||
9674 | done | ||
9675 | if ${ac_cv_search_dlopen+:} false; then : | ||
9676 | |||
9677 | else | ||
9678 | ac_cv_search_dlopen=no | ||
9679 | fi | ||
9680 | rm conftest.$ac_ext | ||
9681 | LIBS=$ac_func_search_save_LIBS | ||
9682 | fi | ||
9683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | ||
9684 | $as_echo "$ac_cv_search_dlopen" >&6; } | ||
9685 | ac_res=$ac_cv_search_dlopen | ||
9686 | if test "$ac_res" != no; then : | ||
9687 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9688 | |||
9689 | $as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h | ||
9690 | |||
9691 | |||
9692 | fi | ||
9693 | |||
9694 | |||
9695 | # IRIX has a const char return value for gai_strerror() | ||
9696 | for ac_func in gai_strerror | ||
9697 | do : | ||
9698 | ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" | ||
9699 | if test "x$ac_cv_func_gai_strerror" = xyes; then : | ||
9700 | cat >>confdefs.h <<_ACEOF | ||
9701 | #define HAVE_GAI_STRERROR 1 | ||
9702 | _ACEOF | ||
9703 | |||
9704 | $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h | ||
9705 | |||
9706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9707 | /* end confdefs.h. */ | ||
9708 | |||
9709 | #include <sys/types.h> | ||
9710 | #include <sys/socket.h> | ||
9711 | #include <netdb.h> | ||
9712 | |||
9713 | const char *gai_strerror(int); | ||
9714 | |||
9715 | int | ||
9716 | main () | ||
9717 | { | ||
9718 | |||
9719 | char *str; | ||
9720 | str = gai_strerror(0); | ||
9721 | |||
9722 | ; | ||
9723 | return 0; | ||
9724 | } | ||
9725 | _ACEOF | ||
9726 | if ac_fn_c_try_compile "$LINENO"; then : | ||
9727 | |||
9728 | |||
9729 | $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h | ||
9730 | |||
9731 | fi | ||
9732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9733 | fi | ||
9734 | done | ||
9735 | |||
9736 | |||
9737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 | ||
9738 | $as_echo_n "checking for library containing nanosleep... " >&6; } | ||
9739 | if ${ac_cv_search_nanosleep+:} false; then : | ||
9740 | $as_echo_n "(cached) " >&6 | ||
9741 | else | ||
9742 | ac_func_search_save_LIBS=$LIBS | ||
9743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9744 | /* end confdefs.h. */ | ||
9745 | |||
9746 | /* Override any GCC internal prototype to avoid an error. | ||
9747 | Use char because int might match the return type of a GCC | ||
9748 | builtin and then its argument prototype would still apply. */ | ||
9749 | #ifdef __cplusplus | ||
9750 | extern "C" | ||
9751 | #endif | ||
9752 | char nanosleep (); | ||
9753 | int | ||
9754 | main () | ||
9755 | { | ||
9756 | return nanosleep (); | ||
9757 | ; | ||
9758 | return 0; | ||
9759 | } | ||
9760 | _ACEOF | ||
9761 | for ac_lib in '' rt posix4; do | ||
9762 | if test -z "$ac_lib"; then | ||
9763 | ac_res="none required" | ||
9764 | else | ||
9765 | ac_res=-l$ac_lib | ||
9766 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9767 | fi | ||
9768 | if ac_fn_c_try_link "$LINENO"; then : | ||
9769 | ac_cv_search_nanosleep=$ac_res | ||
9770 | fi | ||
9771 | rm -f core conftest.err conftest.$ac_objext \ | ||
9772 | conftest$ac_exeext | ||
9773 | if ${ac_cv_search_nanosleep+:} false; then : | ||
9774 | break | ||
9775 | fi | ||
9776 | done | ||
9777 | if ${ac_cv_search_nanosleep+:} false; then : | ||
9778 | |||
9779 | else | ||
9780 | ac_cv_search_nanosleep=no | ||
9781 | fi | ||
9782 | rm conftest.$ac_ext | ||
9783 | LIBS=$ac_func_search_save_LIBS | ||
9784 | fi | ||
9785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 | ||
9786 | $as_echo "$ac_cv_search_nanosleep" >&6; } | ||
9787 | ac_res=$ac_cv_search_nanosleep | ||
9788 | if test "$ac_res" != no; then : | ||
9789 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9790 | |||
9791 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h | ||
9792 | |||
9793 | fi | ||
9794 | |||
9795 | |||
9796 | ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default" | ||
9797 | if test "x$ac_cv_have_decl_getrusage" = xyes; then : | ||
9798 | for ac_func in getrusage | ||
9799 | do : | ||
9800 | ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage" | ||
9801 | if test "x$ac_cv_func_getrusage" = xyes; then : | ||
9802 | cat >>confdefs.h <<_ACEOF | ||
9803 | #define HAVE_GETRUSAGE 1 | ||
9804 | _ACEOF | ||
9805 | |||
9806 | fi | ||
9807 | done | ||
9808 | |||
9809 | fi | ||
9810 | |||
9811 | ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" " | ||
9812 | #ifdef HAVE_STRING_H | ||
9813 | # include <string.h> | ||
9814 | #endif | ||
9815 | |||
9816 | " | ||
9817 | if test "x$ac_cv_have_decl_strsep" = xyes; then : | ||
9818 | for ac_func in strsep | ||
9819 | do : | ||
9820 | ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" | ||
9821 | if test "x$ac_cv_func_strsep" = xyes; then : | ||
9822 | cat >>confdefs.h <<_ACEOF | ||
9823 | #define HAVE_STRSEP 1 | ||
9824 | _ACEOF | ||
9825 | |||
9826 | fi | ||
9827 | done | ||
9828 | |||
9829 | fi | ||
9830 | |||
9831 | |||
9832 | ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h> | ||
9833 | |||
9834 | " | ||
9835 | if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then : | ||
9836 | $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h | ||
9837 | |||
9838 | else | ||
9839 | for ac_func in tcsendbreak | ||
9840 | do : | ||
9841 | ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak" | ||
9842 | if test "x$ac_cv_func_tcsendbreak" = xyes; then : | ||
9843 | cat >>confdefs.h <<_ACEOF | ||
9844 | #define HAVE_TCSENDBREAK 1 | ||
9845 | _ACEOF | ||
9846 | |||
9847 | fi | ||
9848 | done | ||
9849 | |||
9850 | fi | ||
9851 | |||
9852 | |||
9853 | ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h> | ||
9854 | " | ||
9855 | if test "x$ac_cv_have_decl_h_errno" = xyes; then : | ||
9856 | ac_have_decl=1 | ||
9857 | else | ||
9858 | ac_have_decl=0 | ||
9859 | fi | ||
9860 | |||
9861 | cat >>confdefs.h <<_ACEOF | ||
9862 | #define HAVE_DECL_H_ERRNO $ac_have_decl | ||
9863 | _ACEOF | ||
9864 | |||
9865 | |||
9866 | ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" " | ||
9867 | #include <sys/types.h> | ||
9868 | #include <sys/socket.h> | ||
9869 | |||
9870 | " | ||
9871 | if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then : | ||
9872 | ac_have_decl=1 | ||
9873 | else | ||
9874 | ac_have_decl=0 | ||
9875 | fi | ||
9876 | |||
9877 | cat >>confdefs.h <<_ACEOF | ||
9878 | #define HAVE_DECL_SHUT_RD $ac_have_decl | ||
9879 | _ACEOF | ||
9880 | |||
9881 | |||
9882 | ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" " | ||
9883 | #include <sys/types.h> | ||
9884 | #ifdef HAVE_SYS_STAT_H | ||
9885 | # include <sys/stat.h> | ||
9886 | #endif | ||
9887 | #ifdef HAVE_FCNTL_H | ||
9888 | # include <fcntl.h> | ||
9889 | #endif | ||
9890 | |||
9891 | " | ||
9892 | if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then : | ||
9893 | ac_have_decl=1 | ||
9894 | else | ||
9895 | ac_have_decl=0 | ||
9896 | fi | ||
9897 | |||
9898 | cat >>confdefs.h <<_ACEOF | ||
9899 | #define HAVE_DECL_O_NONBLOCK $ac_have_decl | ||
9900 | _ACEOF | ||
9901 | |||
9902 | |||
9903 | ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" " | ||
9904 | #include <sys/types.h> | ||
9905 | #include <sys/uio.h> | ||
9906 | #include <unistd.h> | ||
9907 | |||
9908 | " | ||
9909 | if test "x$ac_cv_have_decl_writev" = xyes; then : | ||
9910 | ac_have_decl=1 | ||
9911 | else | ||
9912 | ac_have_decl=0 | ||
9913 | fi | ||
9914 | |||
9915 | cat >>confdefs.h <<_ACEOF | ||
9916 | #define HAVE_DECL_WRITEV $ac_have_decl | ||
9917 | _ACEOF | ||
9918 | |||
9919 | |||
9920 | ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" " | ||
9921 | #include <sys/param.h> | ||
9922 | |||
9923 | " | ||
9924 | if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then : | ||
9925 | ac_have_decl=1 | ||
9926 | else | ||
9927 | ac_have_decl=0 | ||
9928 | fi | ||
9929 | |||
9930 | cat >>confdefs.h <<_ACEOF | ||
9931 | #define HAVE_DECL_MAXSYMLINKS $ac_have_decl | ||
9932 | _ACEOF | ||
9933 | |||
9934 | |||
9935 | ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" " | ||
9936 | #include <stddef.h> | ||
9937 | |||
9938 | " | ||
9939 | if test "x$ac_cv_have_decl_offsetof" = xyes; then : | ||
9940 | ac_have_decl=1 | ||
9941 | else | ||
9942 | ac_have_decl=0 | ||
9943 | fi | ||
9944 | |||
9945 | cat >>confdefs.h <<_ACEOF | ||
9946 | #define HAVE_DECL_OFFSETOF $ac_have_decl | ||
9947 | _ACEOF | ||
9948 | |||
9949 | |||
9950 | for ac_func in setresuid | ||
9951 | do : | ||
9952 | ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" | ||
9953 | if test "x$ac_cv_func_setresuid" = xyes; then : | ||
9954 | cat >>confdefs.h <<_ACEOF | ||
9955 | #define HAVE_SETRESUID 1 | ||
9956 | _ACEOF | ||
9957 | |||
9958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5 | ||
9959 | $as_echo_n "checking if setresuid seems to work... " >&6; } | ||
9960 | if test "$cross_compiling" = yes; then : | ||
9961 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5 | ||
9962 | $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
9963 | |||
9964 | else | ||
9965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9966 | /* end confdefs.h. */ | ||
9967 | |||
9968 | #include <stdlib.h> | ||
9969 | #include <errno.h> | ||
9970 | |||
9971 | int | ||
9972 | main () | ||
9973 | { | ||
9974 | |||
9975 | errno=0; | ||
9976 | setresuid(0,0,0); | ||
9977 | if (errno==ENOSYS) | ||
9978 | exit(1); | ||
9979 | else | ||
9980 | exit(0); | ||
9981 | |||
9982 | ; | ||
9983 | return 0; | ||
9984 | } | ||
9985 | _ACEOF | ||
9986 | if ac_fn_c_try_run "$LINENO"; then : | ||
9987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9988 | $as_echo "yes" >&6; } | ||
9989 | else | ||
9990 | |||
9991 | $as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h | ||
9992 | |||
9993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5 | ||
9994 | $as_echo "not implemented" >&6; } | ||
9995 | fi | ||
9996 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
9997 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
9998 | fi | ||
9999 | |||
10000 | |||
10001 | fi | ||
10002 | done | ||
10003 | |||
10004 | |||
10005 | for ac_func in setresgid | ||
10006 | do : | ||
10007 | ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" | ||
10008 | if test "x$ac_cv_func_setresgid" = xyes; then : | ||
10009 | cat >>confdefs.h <<_ACEOF | ||
10010 | #define HAVE_SETRESGID 1 | ||
10011 | _ACEOF | ||
10012 | |||
10013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5 | ||
10014 | $as_echo_n "checking if setresgid seems to work... " >&6; } | ||
10015 | if test "$cross_compiling" = yes; then : | ||
10016 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5 | ||
10017 | $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
10018 | |||
10019 | else | ||
10020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10021 | /* end confdefs.h. */ | ||
10022 | |||
10023 | #include <stdlib.h> | ||
10024 | #include <errno.h> | ||
10025 | |||
10026 | int | ||
10027 | main () | ||
10028 | { | ||
10029 | |||
10030 | errno=0; | ||
10031 | setresgid(0,0,0); | ||
10032 | if (errno==ENOSYS) | ||
10033 | exit(1); | ||
10034 | else | ||
10035 | exit(0); | ||
10036 | |||
10037 | ; | ||
10038 | return 0; | ||
10039 | } | ||
10040 | _ACEOF | ||
10041 | if ac_fn_c_try_run "$LINENO"; then : | ||
10042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10043 | $as_echo "yes" >&6; } | ||
10044 | else | ||
10045 | |||
10046 | $as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h | ||
10047 | |||
10048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5 | ||
10049 | $as_echo "not implemented" >&6; } | ||
10050 | fi | ||
10051 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10052 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10053 | fi | ||
10054 | |||
10055 | |||
10056 | fi | ||
10057 | done | ||
10058 | |||
10059 | |||
10060 | for ac_func in gettimeofday time | ||
10061 | do : | ||
10062 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10063 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
10064 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
10065 | cat >>confdefs.h <<_ACEOF | ||
10066 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10067 | _ACEOF | ||
10068 | |||
10069 | fi | ||
10070 | done | ||
10071 | |||
10072 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
10073 | do : | ||
10074 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10075 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
10076 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
10077 | cat >>confdefs.h <<_ACEOF | ||
10078 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10079 | _ACEOF | ||
10080 | |||
10081 | fi | ||
10082 | done | ||
10083 | |||
10084 | for ac_func in utmpname | ||
10085 | do : | ||
10086 | ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname" | ||
10087 | if test "x$ac_cv_func_utmpname" = xyes; then : | ||
10088 | cat >>confdefs.h <<_ACEOF | ||
10089 | #define HAVE_UTMPNAME 1 | ||
10090 | _ACEOF | ||
10091 | |||
10092 | fi | ||
10093 | done | ||
10094 | |||
10095 | for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline | ||
10096 | do : | ||
10097 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10098 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
10099 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
10100 | cat >>confdefs.h <<_ACEOF | ||
10101 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10102 | _ACEOF | ||
10103 | |||
10104 | fi | ||
10105 | done | ||
10106 | |||
10107 | for ac_func in setutxdb setutxent utmpxname | ||
10108 | do : | ||
10109 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10110 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
10111 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
10112 | cat >>confdefs.h <<_ACEOF | ||
10113 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10114 | _ACEOF | ||
10115 | |||
10116 | fi | ||
10117 | done | ||
10118 | |||
10119 | for ac_func in getlastlogxbyname | ||
10120 | do : | ||
10121 | ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname" | ||
10122 | if test "x$ac_cv_func_getlastlogxbyname" = xyes; then : | ||
10123 | cat >>confdefs.h <<_ACEOF | ||
10124 | #define HAVE_GETLASTLOGXBYNAME 1 | ||
10125 | _ACEOF | ||
10126 | |||
10127 | fi | ||
10128 | done | ||
10129 | |||
10130 | |||
10131 | ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" | ||
10132 | if test "x$ac_cv_func_daemon" = xyes; then : | ||
10133 | |||
10134 | $as_echo "#define HAVE_DAEMON 1" >>confdefs.h | ||
10135 | |||
10136 | else | ||
10137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5 | ||
10138 | $as_echo_n "checking for daemon in -lbsd... " >&6; } | ||
10139 | if ${ac_cv_lib_bsd_daemon+:} false; then : | ||
10140 | $as_echo_n "(cached) " >&6 | ||
10141 | else | ||
10142 | ac_check_lib_save_LIBS=$LIBS | ||
10143 | LIBS="-lbsd $LIBS" | ||
10144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10145 | /* end confdefs.h. */ | ||
10146 | |||
10147 | /* Override any GCC internal prototype to avoid an error. | ||
10148 | Use char because int might match the return type of a GCC | ||
10149 | builtin and then its argument prototype would still apply. */ | ||
10150 | #ifdef __cplusplus | ||
10151 | extern "C" | ||
10152 | #endif | ||
10153 | char daemon (); | ||
10154 | int | ||
10155 | main () | ||
10156 | { | ||
10157 | return daemon (); | ||
10158 | ; | ||
10159 | return 0; | ||
10160 | } | ||
10161 | _ACEOF | ||
10162 | if ac_fn_c_try_link "$LINENO"; then : | ||
10163 | ac_cv_lib_bsd_daemon=yes | ||
10164 | else | ||
10165 | ac_cv_lib_bsd_daemon=no | ||
10166 | fi | ||
10167 | rm -f core conftest.err conftest.$ac_objext \ | ||
10168 | conftest$ac_exeext conftest.$ac_ext | ||
10169 | LIBS=$ac_check_lib_save_LIBS | ||
10170 | fi | ||
10171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5 | ||
10172 | $as_echo "$ac_cv_lib_bsd_daemon" >&6; } | ||
10173 | if test "x$ac_cv_lib_bsd_daemon" = xyes; then : | ||
10174 | LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h | ||
10175 | |||
10176 | fi | ||
10177 | |||
10178 | |||
10179 | fi | ||
10180 | |||
10181 | |||
10182 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | ||
10183 | if test "x$ac_cv_func_getpagesize" = xyes; then : | ||
10184 | |||
10185 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | ||
10186 | |||
10187 | else | ||
10188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5 | ||
10189 | $as_echo_n "checking for getpagesize in -lucb... " >&6; } | ||
10190 | if ${ac_cv_lib_ucb_getpagesize+:} false; then : | ||
10191 | $as_echo_n "(cached) " >&6 | ||
10192 | else | ||
10193 | ac_check_lib_save_LIBS=$LIBS | ||
10194 | LIBS="-lucb $LIBS" | ||
10195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10196 | /* end confdefs.h. */ | ||
10197 | |||
10198 | /* Override any GCC internal prototype to avoid an error. | ||
10199 | Use char because int might match the return type of a GCC | ||
10200 | builtin and then its argument prototype would still apply. */ | ||
10201 | #ifdef __cplusplus | ||
10202 | extern "C" | ||
10203 | #endif | ||
10204 | char getpagesize (); | ||
10205 | int | ||
10206 | main () | ||
10207 | { | ||
10208 | return getpagesize (); | ||
10209 | ; | ||
10210 | return 0; | ||
10211 | } | ||
10212 | _ACEOF | ||
10213 | if ac_fn_c_try_link "$LINENO"; then : | ||
10214 | ac_cv_lib_ucb_getpagesize=yes | ||
10215 | else | ||
10216 | ac_cv_lib_ucb_getpagesize=no | ||
10217 | fi | ||
10218 | rm -f core conftest.err conftest.$ac_objext \ | ||
10219 | conftest$ac_exeext conftest.$ac_ext | ||
10220 | LIBS=$ac_check_lib_save_LIBS | ||
10221 | fi | ||
10222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
10223 | $as_echo "$ac_cv_lib_ucb_getpagesize" >&6; } | ||
10224 | if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then : | ||
10225 | LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | ||
10226 | |||
10227 | fi | ||
10228 | |||
10229 | |||
10230 | fi | ||
10231 | |||
10232 | |||
10233 | # Check for broken snprintf | ||
10234 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
10235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5 | ||
10236 | $as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; } | ||
10237 | if test "$cross_compiling" = yes; then : | ||
10238 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
10239 | $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
10240 | |||
10241 | else | ||
10242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10243 | /* end confdefs.h. */ | ||
10244 | #include <stdio.h> | ||
10245 | int | ||
10246 | main () | ||
10247 | { | ||
10248 | |||
10249 | char b[5]; | ||
10250 | snprintf(b,5,"123456789"); | ||
10251 | exit(b[4]!='\0'); | ||
10252 | |||
10253 | ; | ||
10254 | return 0; | ||
10255 | } | ||
10256 | _ACEOF | ||
10257 | if ac_fn_c_try_run "$LINENO"; then : | ||
10258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10259 | $as_echo "yes" >&6; } | ||
10260 | else | ||
10261 | |||
10262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10263 | $as_echo "no" >&6; } | ||
10264 | |||
10265 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h | ||
10266 | |||
10267 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
10268 | $as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
10269 | |||
10270 | fi | ||
10271 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10272 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10273 | fi | ||
10274 | |||
10275 | fi | ||
10276 | |||
10277 | # If we don't have a working asprintf, then we strongly depend on vsnprintf | ||
10278 | # returning the right thing on overflow: the number of characters it tried to | ||
10279 | # create (as per SUSv3) | ||
10280 | if test "x$ac_cv_func_asprintf" != "xyes" && \ | ||
10281 | test "x$ac_cv_func_vsnprintf" = "xyes" ; then | ||
10282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5 | ||
10283 | $as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; } | ||
10284 | if test "$cross_compiling" = yes; then : | ||
10285 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5 | ||
10286 | $as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;} | ||
10287 | |||
10288 | else | ||
10289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10290 | /* end confdefs.h. */ | ||
10291 | |||
10292 | #include <sys/types.h> | ||
10293 | #include <stdio.h> | ||
10294 | #include <stdarg.h> | ||
10295 | |||
10296 | int x_snprintf(char *str,size_t count,const char *fmt,...) | ||
10297 | { | ||
10298 | size_t ret; va_list ap; | ||
10299 | va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap); | ||
10300 | return ret; | ||
10301 | } | ||
10302 | |||
10303 | int | ||
10304 | main () | ||
10305 | { | ||
10306 | |||
10307 | char x[1]; | ||
10308 | exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1); | ||
10309 | |||
10310 | ; | ||
10311 | return 0; | ||
10312 | } | ||
10313 | _ACEOF | ||
10314 | if ac_fn_c_try_run "$LINENO"; then : | ||
10315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10316 | $as_echo "yes" >&6; } | ||
10317 | else | ||
10318 | |||
10319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10320 | $as_echo "no" >&6; } | ||
10321 | |||
10322 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h | ||
10323 | |||
10324 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5 | ||
10325 | $as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;} | ||
10326 | |||
10327 | fi | ||
10328 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10329 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10330 | fi | ||
10331 | |||
10332 | fi | ||
10333 | |||
10334 | # On systems where [v]snprintf is broken, but is declared in stdio, | ||
10335 | # check that the fmt argument is const char * or just char *. | ||
10336 | # This is only useful for when BROKEN_SNPRINTF | ||
10337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5 | ||
10338 | $as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; } | ||
10339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10340 | /* end confdefs.h. */ | ||
10341 | |||
10342 | #include <stdio.h> | ||
10343 | int snprintf(char *a, size_t b, const char *c, ...) { return 0; } | ||
10344 | |||
10345 | int | ||
10346 | main () | ||
10347 | { | ||
10348 | |||
10349 | snprintf(0, 0, 0); | ||
10350 | |||
10351 | ; | ||
10352 | return 0; | ||
10353 | } | ||
10354 | _ACEOF | ||
10355 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10357 | $as_echo "yes" >&6; } | ||
10358 | |||
10359 | $as_echo "#define SNPRINTF_CONST const" >>confdefs.h | ||
10360 | |||
10361 | else | ||
10362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10363 | $as_echo "no" >&6; } | ||
10364 | $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h | ||
10365 | |||
10366 | fi | ||
10367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10368 | |||
10369 | # Check for missing getpeereid (or equiv) support | ||
10370 | NO_PEERCHECK="" | ||
10371 | if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then | ||
10372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5 | ||
10373 | $as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; } | ||
10374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10375 | /* end confdefs.h. */ | ||
10376 | |||
10377 | #include <sys/types.h> | ||
10378 | #include <sys/socket.h> | ||
10379 | int | ||
10380 | main () | ||
10381 | { | ||
10382 | int i = SO_PEERCRED; | ||
10383 | ; | ||
10384 | return 0; | ||
10385 | } | ||
10386 | _ACEOF | ||
10387 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10389 | $as_echo "yes" >&6; } | ||
10390 | |||
10391 | $as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h | ||
10392 | |||
10393 | |||
10394 | else | ||
10395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10396 | $as_echo "no" >&6; } | ||
10397 | NO_PEERCHECK=1 | ||
10398 | |||
10399 | fi | ||
10400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10401 | fi | ||
10402 | |||
10403 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
10404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5 | ||
10405 | $as_echo_n "checking for (overly) strict mkstemp... " >&6; } | ||
10406 | if test "$cross_compiling" = yes; then : | ||
10407 | |||
10408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10409 | $as_echo "yes" >&6; } | ||
10410 | $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h | ||
10411 | |||
10412 | |||
10413 | |||
10414 | else | ||
10415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10416 | /* end confdefs.h. */ | ||
10417 | |||
10418 | #include <stdlib.h> | ||
10419 | |||
10420 | int | ||
10421 | main () | ||
10422 | { | ||
10423 | |||
10424 | char template[]="conftest.mkstemp-test"; | ||
10425 | if (mkstemp(template) == -1) | ||
10426 | exit(1); | ||
10427 | unlink(template); | ||
10428 | exit(0); | ||
10429 | |||
10430 | ; | ||
10431 | return 0; | ||
10432 | } | ||
10433 | _ACEOF | ||
10434 | if ac_fn_c_try_run "$LINENO"; then : | ||
10435 | |||
10436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10437 | $as_echo "no" >&6; } | ||
10438 | |||
10439 | else | ||
10440 | |||
10441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10442 | $as_echo "yes" >&6; } | ||
10443 | |||
10444 | $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h | ||
10445 | |||
10446 | |||
10447 | fi | ||
10448 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10449 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10450 | fi | ||
10451 | |||
10452 | fi | ||
10453 | |||
10454 | if test ! -z "$check_for_openpty_ctty_bug"; then | ||
10455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5 | ||
10456 | $as_echo_n "checking if openpty correctly handles controlling tty... " >&6; } | ||
10457 | if test "$cross_compiling" = yes; then : | ||
10458 | |||
10459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 | ||
10460 | $as_echo "cross-compiling, assuming yes" >&6; } | ||
10461 | |||
10462 | |||
10463 | else | ||
10464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10465 | /* end confdefs.h. */ | ||
10466 | |||
10467 | #include <stdio.h> | ||
10468 | #include <sys/fcntl.h> | ||
10469 | #include <sys/types.h> | ||
10470 | #include <sys/wait.h> | ||
10471 | |||
10472 | int | ||
10473 | main () | ||
10474 | { | ||
10475 | |||
10476 | pid_t pid; | ||
10477 | int fd, ptyfd, ttyfd, status; | ||
10478 | |||
10479 | pid = fork(); | ||
10480 | if (pid < 0) { /* failed */ | ||
10481 | exit(1); | ||
10482 | } else if (pid > 0) { /* parent */ | ||
10483 | waitpid(pid, &status, 0); | ||
10484 | if (WIFEXITED(status)) | ||
10485 | exit(WEXITSTATUS(status)); | ||
10486 | else | ||
10487 | exit(2); | ||
10488 | } else { /* child */ | ||
10489 | close(0); close(1); close(2); | ||
10490 | setsid(); | ||
10491 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); | ||
10492 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); | ||
10493 | if (fd >= 0) | ||
10494 | exit(3); /* Acquired ctty: broken */ | ||
10495 | else | ||
10496 | exit(0); /* Did not acquire ctty: OK */ | ||
10497 | } | ||
10498 | |||
10499 | ; | ||
10500 | return 0; | ||
10501 | } | ||
10502 | _ACEOF | ||
10503 | if ac_fn_c_try_run "$LINENO"; then : | ||
10504 | |||
10505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10506 | $as_echo "yes" >&6; } | ||
10507 | |||
10508 | else | ||
10509 | |||
10510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10511 | $as_echo "no" >&6; } | ||
10512 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
10513 | |||
10514 | |||
10515 | fi | ||
10516 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10517 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10518 | fi | ||
10519 | |||
10520 | fi | ||
10521 | |||
10522 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
10523 | test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then | ||
10524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 | ||
10525 | $as_echo_n "checking if getaddrinfo seems to work... " >&6; } | ||
10526 | if test "$cross_compiling" = yes; then : | ||
10527 | |||
10528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 | ||
10529 | $as_echo "cross-compiling, assuming yes" >&6; } | ||
10530 | |||
10531 | |||
10532 | else | ||
10533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10534 | /* end confdefs.h. */ | ||
10535 | |||
10536 | #include <stdio.h> | ||
10537 | #include <sys/socket.h> | ||
10538 | #include <netdb.h> | ||
10539 | #include <errno.h> | ||
10540 | #include <netinet/in.h> | ||
10541 | |||
10542 | #define TEST_PORT "2222" | ||
10543 | |||
10544 | int | ||
10545 | main () | ||
10546 | { | ||
10547 | |||
10548 | int err, sock; | ||
10549 | struct addrinfo *gai_ai, *ai, hints; | ||
10550 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
10551 | |||
10552 | memset(&hints, 0, sizeof(hints)); | ||
10553 | hints.ai_family = PF_UNSPEC; | ||
10554 | hints.ai_socktype = SOCK_STREAM; | ||
10555 | hints.ai_flags = AI_PASSIVE; | ||
10556 | |||
10557 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
10558 | if (err != 0) { | ||
10559 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
10560 | exit(1); | ||
10561 | } | ||
10562 | |||
10563 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
10564 | if (ai->ai_family != AF_INET6) | ||
10565 | continue; | ||
10566 | |||
10567 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
10568 | sizeof(ntop), strport, sizeof(strport), | ||
10569 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
10570 | |||
10571 | if (err != 0) { | ||
10572 | if (err == EAI_SYSTEM) | ||
10573 | perror("getnameinfo EAI_SYSTEM"); | ||
10574 | else | ||
10575 | fprintf(stderr, "getnameinfo failed: %s\n", | ||
10576 | gai_strerror(err)); | ||
10577 | exit(2); | ||
10578 | } | ||
10579 | |||
10580 | sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); | ||
10581 | if (sock < 0) | ||
10582 | perror("socket"); | ||
10583 | if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { | ||
10584 | if (errno == EBADF) | ||
10585 | exit(3); | ||
10586 | } | ||
10587 | } | ||
10588 | exit(0); | ||
10589 | |||
10590 | ; | ||
10591 | return 0; | ||
10592 | } | ||
10593 | _ACEOF | ||
10594 | if ac_fn_c_try_run "$LINENO"; then : | ||
10595 | |||
10596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10597 | $as_echo "yes" >&6; } | ||
10598 | |||
10599 | else | ||
10600 | |||
10601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10602 | $as_echo "no" >&6; } | ||
10603 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
10604 | |||
10605 | |||
10606 | fi | ||
10607 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10608 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10609 | fi | ||
10610 | |||
10611 | fi | ||
10612 | |||
10613 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
10614 | test "x$check_for_aix_broken_getaddrinfo" = "x1"; then | ||
10615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 | ||
10616 | $as_echo_n "checking if getaddrinfo seems to work... " >&6; } | ||
10617 | if test "$cross_compiling" = yes; then : | ||
10618 | |||
10619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5 | ||
10620 | $as_echo "cross-compiling, assuming no" >&6; } | ||
10621 | |||
10622 | |||
10623 | else | ||
10624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10625 | /* end confdefs.h. */ | ||
10626 | |||
10627 | #include <stdio.h> | ||
10628 | #include <sys/socket.h> | ||
10629 | #include <netdb.h> | ||
10630 | #include <errno.h> | ||
10631 | #include <netinet/in.h> | ||
10632 | |||
10633 | #define TEST_PORT "2222" | ||
10634 | |||
10635 | int | ||
10636 | main () | ||
10637 | { | ||
10638 | |||
10639 | int err, sock; | ||
10640 | struct addrinfo *gai_ai, *ai, hints; | ||
10641 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
10642 | |||
10643 | memset(&hints, 0, sizeof(hints)); | ||
10644 | hints.ai_family = PF_UNSPEC; | ||
10645 | hints.ai_socktype = SOCK_STREAM; | ||
10646 | hints.ai_flags = AI_PASSIVE; | ||
10647 | |||
10648 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
10649 | if (err != 0) { | ||
10650 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
10651 | exit(1); | ||
10652 | } | ||
10653 | |||
10654 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
10655 | if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) | ||
10656 | continue; | ||
10657 | |||
10658 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
10659 | sizeof(ntop), strport, sizeof(strport), | ||
10660 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
10661 | |||
10662 | if (ai->ai_family == AF_INET && err != 0) { | ||
10663 | perror("getnameinfo"); | ||
10664 | exit(2); | ||
10665 | } | ||
10666 | } | ||
10667 | exit(0); | ||
10668 | |||
10669 | ; | ||
10670 | return 0; | ||
10671 | } | ||
10672 | _ACEOF | ||
10673 | if ac_fn_c_try_run "$LINENO"; then : | ||
10674 | |||
10675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10676 | $as_echo "yes" >&6; } | ||
10677 | |||
10678 | $as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h | ||
10679 | |||
10680 | |||
10681 | else | ||
10682 | |||
10683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10684 | $as_echo "no" >&6; } | ||
10685 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
10686 | |||
10687 | |||
10688 | fi | ||
10689 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10690 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10691 | fi | ||
10692 | |||
10693 | fi | ||
10694 | |||
10695 | if test "x$check_for_conflicting_getspnam" = "x1"; then | ||
10696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5 | ||
10697 | $as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; } | ||
10698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10699 | /* end confdefs.h. */ | ||
10700 | #include <shadow.h> | ||
10701 | int | ||
10702 | main () | ||
10703 | { | ||
10704 | exit(0); | ||
10705 | ; | ||
10706 | return 0; | ||
10707 | } | ||
10708 | _ACEOF | ||
10709 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10710 | |||
10711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10712 | $as_echo "no" >&6; } | ||
10713 | |||
10714 | else | ||
10715 | |||
10716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10717 | $as_echo "yes" >&6; } | ||
10718 | |||
10719 | $as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h | ||
10720 | |||
10721 | |||
10722 | |||
10723 | fi | ||
10724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10725 | fi | ||
10726 | |||
10727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 | ||
10728 | $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } | ||
10729 | if ${ac_cv_func_getpgrp_void+:} false; then : | ||
10730 | $as_echo_n "(cached) " >&6 | ||
10731 | else | ||
10732 | # Use it with a single arg. | ||
10733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10734 | /* end confdefs.h. */ | ||
10735 | $ac_includes_default | ||
10736 | int | ||
10737 | main () | ||
10738 | { | ||
10739 | getpgrp (0); | ||
10740 | ; | ||
10741 | return 0; | ||
10742 | } | ||
10743 | _ACEOF | ||
10744 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10745 | ac_cv_func_getpgrp_void=no | ||
10746 | else | ||
10747 | ac_cv_func_getpgrp_void=yes | ||
10748 | fi | ||
10749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10750 | |||
10751 | fi | ||
10752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 | ||
10753 | $as_echo "$ac_cv_func_getpgrp_void" >&6; } | ||
10754 | if test $ac_cv_func_getpgrp_void = yes; then | ||
10755 | |||
10756 | $as_echo "#define GETPGRP_VOID 1" >>confdefs.h | ||
10757 | |||
10758 | fi | ||
10759 | |||
10760 | |||
10761 | # Search for OpenSSL | ||
10762 | saved_CPPFLAGS="$CPPFLAGS" | ||
10763 | saved_LDFLAGS="$LDFLAGS" | ||
10764 | |||
10765 | # Check whether --with-ssl-dir was given. | ||
10766 | if test "${with_ssl_dir+set}" = set; then : | ||
10767 | withval=$with_ssl_dir; | ||
10768 | if test "x$withval" != "xno" ; then | ||
10769 | case "$withval" in | ||
10770 | # Relative paths | ||
10771 | ./*|../*) withval="`pwd`/$withval" | ||
10772 | esac | ||
10773 | if test -d "$withval/lib"; then | ||
10774 | if test -n "${need_dash_r}"; then | ||
10775 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
10776 | else | ||
10777 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
10778 | fi | ||
10779 | elif test -d "$withval/lib64"; then | ||
10780 | if test -n "${need_dash_r}"; then | ||
10781 | LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}" | ||
10782 | else | ||
10783 | LDFLAGS="-L${withval}/lib64 ${LDFLAGS}" | ||
10784 | fi | ||
10785 | else | ||
10786 | if test -n "${need_dash_r}"; then | ||
10787 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
10788 | else | ||
10789 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
10790 | fi | ||
10791 | fi | ||
10792 | if test -d "$withval/include"; then | ||
10793 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
10794 | else | ||
10795 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
10796 | fi | ||
10797 | fi | ||
10798 | |||
10799 | |||
10800 | fi | ||
10801 | |||
10802 | LIBS="-lcrypto $LIBS" | ||
10803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10804 | /* end confdefs.h. */ | ||
10805 | |||
10806 | /* Override any GCC internal prototype to avoid an error. | ||
10807 | Use char because int might match the return type of a GCC | ||
10808 | builtin and then its argument prototype would still apply. */ | ||
10809 | #ifdef __cplusplus | ||
10810 | extern "C" | ||
10811 | #endif | ||
10812 | char RAND_add (); | ||
10813 | int | ||
10814 | main () | ||
10815 | { | ||
10816 | return RAND_add (); | ||
10817 | ; | ||
10818 | return 0; | ||
10819 | } | ||
10820 | _ACEOF | ||
10821 | if ac_fn_c_try_link "$LINENO"; then : | ||
10822 | |||
10823 | $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h | ||
10824 | |||
10825 | else | ||
10826 | |||
10827 | if test -n "${need_dash_r}"; then | ||
10828 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
10829 | else | ||
10830 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
10831 | fi | ||
10832 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
10833 | ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default" | ||
10834 | if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then : | ||
10835 | |||
10836 | else | ||
10837 | as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5 | ||
10838 | fi | ||
10839 | |||
10840 | |||
10841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10842 | /* end confdefs.h. */ | ||
10843 | |||
10844 | /* Override any GCC internal prototype to avoid an error. | ||
10845 | Use char because int might match the return type of a GCC | ||
10846 | builtin and then its argument prototype would still apply. */ | ||
10847 | #ifdef __cplusplus | ||
10848 | extern "C" | ||
10849 | #endif | ||
10850 | char RAND_add (); | ||
10851 | int | ||
10852 | main () | ||
10853 | { | ||
10854 | return RAND_add (); | ||
10855 | ; | ||
10856 | return 0; | ||
10857 | } | ||
10858 | _ACEOF | ||
10859 | if ac_fn_c_try_link "$LINENO"; then : | ||
10860 | $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h | ||
10861 | |||
10862 | else | ||
10863 | |||
10864 | as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5 | ||
10865 | |||
10866 | |||
10867 | fi | ||
10868 | rm -f core conftest.err conftest.$ac_objext \ | ||
10869 | conftest$ac_exeext conftest.$ac_ext | ||
10870 | |||
10871 | |||
10872 | fi | ||
10873 | rm -f core conftest.err conftest.$ac_objext \ | ||
10874 | conftest$ac_exeext conftest.$ac_ext | ||
10875 | |||
10876 | # Determine OpenSSL header version | ||
10877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5 | ||
10878 | $as_echo_n "checking OpenSSL header version... " >&6; } | ||
10879 | if test "$cross_compiling" = yes; then : | ||
10880 | |||
10881 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
10882 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
10883 | |||
10884 | |||
10885 | else | ||
10886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10887 | /* end confdefs.h. */ | ||
10888 | |||
10889 | #include <stdio.h> | ||
10890 | #include <string.h> | ||
10891 | #include <openssl/opensslv.h> | ||
10892 | #define DATA "conftest.sslincver" | ||
10893 | |||
10894 | int | ||
10895 | main () | ||
10896 | { | ||
10897 | |||
10898 | FILE *fd; | ||
10899 | int rc; | ||
10900 | |||
10901 | fd = fopen(DATA,"w"); | ||
10902 | if(fd == NULL) | ||
10903 | exit(1); | ||
10904 | |||
10905 | if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) | ||
10906 | exit(1); | ||
10907 | |||
10908 | exit(0); | ||
10909 | |||
10910 | ; | ||
10911 | return 0; | ||
10912 | } | ||
10913 | _ACEOF | ||
10914 | if ac_fn_c_try_run "$LINENO"; then : | ||
10915 | |||
10916 | ssl_header_ver=`cat conftest.sslincver` | ||
10917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5 | ||
10918 | $as_echo "$ssl_header_ver" >&6; } | ||
10919 | |||
10920 | else | ||
10921 | |||
10922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
10923 | $as_echo "not found" >&6; } | ||
10924 | as_fn_error $? "OpenSSL version header not found." "$LINENO" 5 | ||
10925 | |||
10926 | fi | ||
10927 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10928 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10929 | fi | ||
10930 | |||
10931 | |||
10932 | # Determine OpenSSL library version | ||
10933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5 | ||
10934 | $as_echo_n "checking OpenSSL library version... " >&6; } | ||
10935 | if test "$cross_compiling" = yes; then : | ||
10936 | |||
10937 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
10938 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
10939 | |||
10940 | |||
10941 | else | ||
10942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10943 | /* end confdefs.h. */ | ||
10944 | |||
10945 | #include <stdio.h> | ||
10946 | #include <string.h> | ||
10947 | #include <openssl/opensslv.h> | ||
10948 | #include <openssl/crypto.h> | ||
10949 | #define DATA "conftest.ssllibver" | ||
10950 | |||
10951 | int | ||
10952 | main () | ||
10953 | { | ||
10954 | |||
10955 | FILE *fd; | ||
10956 | int rc; | ||
10957 | |||
10958 | fd = fopen(DATA,"w"); | ||
10959 | if(fd == NULL) | ||
10960 | exit(1); | ||
10961 | |||
10962 | if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0) | ||
10963 | exit(1); | ||
10964 | |||
10965 | exit(0); | ||
10966 | |||
10967 | ; | ||
10968 | return 0; | ||
10969 | } | ||
10970 | _ACEOF | ||
10971 | if ac_fn_c_try_run "$LINENO"; then : | ||
10972 | |||
10973 | ssl_library_ver=`cat conftest.ssllibver` | ||
10974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5 | ||
10975 | $as_echo "$ssl_library_ver" >&6; } | ||
10976 | |||
10977 | else | ||
10978 | |||
10979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
10980 | $as_echo "not found" >&6; } | ||
10981 | as_fn_error $? "OpenSSL library not found." "$LINENO" 5 | ||
10982 | |||
10983 | fi | ||
10984 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10985 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10986 | fi | ||
10987 | |||
10988 | |||
10989 | |||
10990 | # Check whether --with-openssl-header-check was given. | ||
10991 | if test "${with_openssl_header_check+set}" = set; then : | ||
10992 | withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then | ||
10993 | openssl_check_nonfatal=1 | ||
10994 | fi | ||
10995 | |||
10996 | |||
10997 | fi | ||
10998 | |||
10999 | |||
11000 | # Sanity check OpenSSL headers | ||
11001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5 | ||
11002 | $as_echo_n "checking whether OpenSSL's headers match the library... " >&6; } | ||
11003 | if test "$cross_compiling" = yes; then : | ||
11004 | |||
11005 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
11006 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
11007 | |||
11008 | |||
11009 | else | ||
11010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11011 | /* end confdefs.h. */ | ||
11012 | |||
11013 | #include <string.h> | ||
11014 | #include <openssl/opensslv.h> | ||
11015 | |||
11016 | int | ||
11017 | main () | ||
11018 | { | ||
11019 | |||
11020 | exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); | ||
11021 | |||
11022 | ; | ||
11023 | return 0; | ||
11024 | } | ||
11025 | _ACEOF | ||
11026 | if ac_fn_c_try_run "$LINENO"; then : | ||
11027 | |||
11028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11029 | $as_echo "yes" >&6; } | ||
11030 | |||
11031 | else | ||
11032 | |||
11033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11034 | $as_echo "no" >&6; } | ||
11035 | if test "x$openssl_check_nonfatal" = "x"; then | ||
11036 | as_fn_error $? "Your OpenSSL headers do not match your | ||
11037 | library. Check config.log for details. | ||
11038 | If you are sure your installation is consistent, you can disable the check | ||
11039 | by running \"./configure --without-openssl-header-check\". | ||
11040 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
11041 | " "$LINENO" 5 | ||
11042 | else | ||
11043 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your | ||
11044 | library. Check config.log for details. | ||
11045 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 | ||
11046 | $as_echo "$as_me: WARNING: Your OpenSSL headers do not match your | ||
11047 | library. Check config.log for details. | ||
11048 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} | ||
11049 | fi | ||
11050 | |||
11051 | fi | ||
11052 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11053 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11054 | fi | ||
11055 | |||
11056 | |||
11057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5 | ||
11058 | $as_echo_n "checking if programs using OpenSSL functions will link... " >&6; } | ||
11059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11060 | /* end confdefs.h. */ | ||
11061 | #include <openssl/evp.h> | ||
11062 | int | ||
11063 | main () | ||
11064 | { | ||
11065 | SSLeay_add_all_algorithms(); | ||
11066 | ; | ||
11067 | return 0; | ||
11068 | } | ||
11069 | _ACEOF | ||
11070 | if ac_fn_c_try_link "$LINENO"; then : | ||
11071 | |||
11072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11073 | $as_echo "yes" >&6; } | ||
11074 | |||
11075 | else | ||
11076 | |||
11077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11078 | $as_echo "no" >&6; } | ||
11079 | saved_LIBS="$LIBS" | ||
11080 | LIBS="$LIBS -ldl" | ||
11081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5 | ||
11082 | $as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; } | ||
11083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11084 | /* end confdefs.h. */ | ||
11085 | #include <openssl/evp.h> | ||
11086 | int | ||
11087 | main () | ||
11088 | { | ||
11089 | SSLeay_add_all_algorithms(); | ||
11090 | ; | ||
11091 | return 0; | ||
11092 | } | ||
11093 | _ACEOF | ||
11094 | if ac_fn_c_try_link "$LINENO"; then : | ||
11095 | |||
11096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11097 | $as_echo "yes" >&6; } | ||
11098 | |||
11099 | else | ||
11100 | |||
11101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11102 | $as_echo "no" >&6; } | ||
11103 | LIBS="$saved_LIBS" | ||
11104 | |||
11105 | |||
11106 | fi | ||
11107 | rm -f core conftest.err conftest.$ac_objext \ | ||
11108 | conftest$ac_exeext conftest.$ac_ext | ||
11109 | |||
11110 | |||
11111 | fi | ||
11112 | rm -f core conftest.err conftest.$ac_objext \ | ||
11113 | conftest$ac_exeext conftest.$ac_ext | ||
11114 | |||
11115 | for ac_func in RSA_generate_key_ex DSA_generate_parameters_ex BN_is_prime_ex RSA_get_default_method HMAC_CTX_init | ||
11116 | do : | ||
11117 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11118 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
11119 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
11120 | cat >>confdefs.h <<_ACEOF | ||
11121 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11122 | _ACEOF | ||
11123 | |||
11124 | fi | ||
11125 | done | ||
11126 | |||
11127 | |||
11128 | |||
11129 | # Check whether --with-ssl-engine was given. | ||
11130 | if test "${with_ssl_engine+set}" = set; then : | ||
11131 | withval=$with_ssl_engine; if test "x$withval" != "xno" ; then | ||
11132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5 | ||
11133 | $as_echo_n "checking for OpenSSL ENGINE support... " >&6; } | ||
11134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11135 | /* end confdefs.h. */ | ||
11136 | |||
11137 | #include <openssl/engine.h> | ||
11138 | |||
11139 | int | ||
11140 | main () | ||
11141 | { | ||
11142 | |||
11143 | ENGINE_load_builtin_engines(); | ||
11144 | ENGINE_register_all_complete(); | ||
11145 | |||
11146 | ; | ||
11147 | return 0; | ||
11148 | } | ||
11149 | _ACEOF | ||
11150 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11152 | $as_echo "yes" >&6; } | ||
11153 | |||
11154 | $as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h | ||
11155 | |||
11156 | |||
11157 | else | ||
11158 | as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5 | ||
11159 | |||
11160 | fi | ||
11161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11162 | fi | ||
11163 | |||
11164 | fi | ||
11165 | |||
11166 | |||
11167 | # Check for OpenSSL without EVP_aes_{192,256}_cbc | ||
11168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5 | ||
11169 | $as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; } | ||
11170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11171 | /* end confdefs.h. */ | ||
11172 | |||
11173 | #include <string.h> | ||
11174 | #include <openssl/evp.h> | ||
11175 | |||
11176 | int | ||
11177 | main () | ||
11178 | { | ||
11179 | |||
11180 | exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL); | ||
11181 | |||
11182 | ; | ||
11183 | return 0; | ||
11184 | } | ||
11185 | _ACEOF | ||
11186 | if ac_fn_c_try_link "$LINENO"; then : | ||
11187 | |||
11188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11189 | $as_echo "no" >&6; } | ||
11190 | |||
11191 | else | ||
11192 | |||
11193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11194 | $as_echo "yes" >&6; } | ||
11195 | |||
11196 | $as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h | ||
11197 | |||
11198 | |||
11199 | |||
11200 | fi | ||
11201 | rm -f core conftest.err conftest.$ac_objext \ | ||
11202 | conftest$ac_exeext conftest.$ac_ext | ||
11203 | |||
11204 | # Check for OpenSSL with EVP_aes_*ctr | ||
11205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES CTR via EVP" >&5 | ||
11206 | $as_echo_n "checking whether OpenSSL has AES CTR via EVP... " >&6; } | ||
11207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11208 | /* end confdefs.h. */ | ||
11209 | |||
11210 | #include <string.h> | ||
11211 | #include <openssl/evp.h> | ||
11212 | |||
11213 | int | ||
11214 | main () | ||
11215 | { | ||
11216 | |||
11217 | exit(EVP_aes_128_ctr() == NULL || | ||
11218 | EVP_aes_192_cbc() == NULL || | ||
11219 | EVP_aes_256_cbc() == NULL); | ||
11220 | |||
11221 | ; | ||
11222 | return 0; | ||
11223 | } | ||
11224 | _ACEOF | ||
11225 | if ac_fn_c_try_link "$LINENO"; then : | ||
11226 | |||
11227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11228 | $as_echo "yes" >&6; } | ||
11229 | |||
11230 | $as_echo "#define OPENSSL_HAVE_EVPCTR 1" >>confdefs.h | ||
11231 | |||
11232 | |||
11233 | else | ||
11234 | |||
11235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11236 | $as_echo "no" >&6; } | ||
11237 | |||
11238 | |||
11239 | fi | ||
11240 | rm -f core conftest.err conftest.$ac_objext \ | ||
11241 | conftest$ac_exeext conftest.$ac_ext | ||
11242 | |||
11243 | # Check for OpenSSL with EVP_aes_*gcm | ||
11244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES GCM via EVP" >&5 | ||
11245 | $as_echo_n "checking whether OpenSSL has AES GCM via EVP... " >&6; } | ||
11246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11247 | /* end confdefs.h. */ | ||
11248 | |||
11249 | #include <string.h> | ||
11250 | #include <openssl/evp.h> | ||
11251 | |||
11252 | int | ||
11253 | main () | ||
11254 | { | ||
11255 | |||
11256 | exit(EVP_aes_128_gcm() == NULL || | ||
11257 | EVP_aes_256_gcm() == NULL || | ||
11258 | EVP_CTRL_GCM_SET_IV_FIXED == 0 || | ||
11259 | EVP_CTRL_GCM_IV_GEN == 0 || | ||
11260 | EVP_CTRL_GCM_SET_TAG == 0 || | ||
11261 | EVP_CTRL_GCM_GET_TAG == 0 || | ||
11262 | EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0); | ||
11263 | |||
11264 | ; | ||
11265 | return 0; | ||
11266 | } | ||
11267 | _ACEOF | ||
11268 | if ac_fn_c_try_link "$LINENO"; then : | ||
11269 | |||
11270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11271 | $as_echo "yes" >&6; } | ||
11272 | |||
11273 | $as_echo "#define OPENSSL_HAVE_EVPGCM 1" >>confdefs.h | ||
11274 | |||
11275 | |||
11276 | else | ||
11277 | |||
11278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11279 | $as_echo "no" >&6; } | ||
11280 | |||
11281 | |||
11282 | fi | ||
11283 | rm -f core conftest.err conftest.$ac_objext \ | ||
11284 | conftest$ac_exeext conftest.$ac_ext | ||
11285 | |||
11286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_CIPHER_CTX_ctrl" >&5 | ||
11287 | $as_echo_n "checking for library containing EVP_CIPHER_CTX_ctrl... " >&6; } | ||
11288 | if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : | ||
11289 | $as_echo_n "(cached) " >&6 | ||
11290 | else | ||
11291 | ac_func_search_save_LIBS=$LIBS | ||
11292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11293 | /* end confdefs.h. */ | ||
11294 | |||
11295 | /* Override any GCC internal prototype to avoid an error. | ||
11296 | Use char because int might match the return type of a GCC | ||
11297 | builtin and then its argument prototype would still apply. */ | ||
11298 | #ifdef __cplusplus | ||
11299 | extern "C" | ||
11300 | #endif | ||
11301 | char EVP_CIPHER_CTX_ctrl (); | ||
11302 | int | ||
11303 | main () | ||
11304 | { | ||
11305 | return EVP_CIPHER_CTX_ctrl (); | ||
11306 | ; | ||
11307 | return 0; | ||
11308 | } | ||
11309 | _ACEOF | ||
11310 | for ac_lib in '' crypto; do | ||
11311 | if test -z "$ac_lib"; then | ||
11312 | ac_res="none required" | ||
11313 | else | ||
11314 | ac_res=-l$ac_lib | ||
11315 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
11316 | fi | ||
11317 | if ac_fn_c_try_link "$LINENO"; then : | ||
11318 | ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res | ||
11319 | fi | ||
11320 | rm -f core conftest.err conftest.$ac_objext \ | ||
11321 | conftest$ac_exeext | ||
11322 | if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : | ||
11323 | break | ||
11324 | fi | ||
11325 | done | ||
11326 | if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : | ||
11327 | |||
11328 | else | ||
11329 | ac_cv_search_EVP_CIPHER_CTX_ctrl=no | ||
11330 | fi | ||
11331 | rm conftest.$ac_ext | ||
11332 | LIBS=$ac_func_search_save_LIBS | ||
11333 | fi | ||
11334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5 | ||
11335 | $as_echo "$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; } | ||
11336 | ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl | ||
11337 | if test "$ac_res" != no; then : | ||
11338 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
11339 | |||
11340 | $as_echo "#define HAVE_EVP_CIPHER_CTX_CTRL 1" >>confdefs.h | ||
11341 | |||
11342 | fi | ||
11343 | |||
11344 | |||
11345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5 | ||
11346 | $as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; } | ||
11347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11348 | /* end confdefs.h. */ | ||
11349 | |||
11350 | #include <string.h> | ||
11351 | #include <openssl/evp.h> | ||
11352 | |||
11353 | int | ||
11354 | main () | ||
11355 | { | ||
11356 | |||
11357 | if(EVP_DigestUpdate(NULL, NULL,0)) | ||
11358 | exit(0); | ||
11359 | |||
11360 | ; | ||
11361 | return 0; | ||
11362 | } | ||
11363 | _ACEOF | ||
11364 | if ac_fn_c_try_link "$LINENO"; then : | ||
11365 | |||
11366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11367 | $as_echo "yes" >&6; } | ||
11368 | |||
11369 | else | ||
11370 | |||
11371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11372 | $as_echo "no" >&6; } | ||
11373 | |||
11374 | $as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h | ||
11375 | |||
11376 | |||
11377 | |||
11378 | fi | ||
11379 | rm -f core conftest.err conftest.$ac_objext \ | ||
11380 | conftest$ac_exeext conftest.$ac_ext | ||
11381 | |||
11382 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
11383 | # because the system crypt() is more featureful. | ||
11384 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
11385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 | ||
11386 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } | ||
11387 | if ${ac_cv_lib_crypt_crypt+:} false; then : | ||
11388 | $as_echo_n "(cached) " >&6 | ||
11389 | else | ||
11390 | ac_check_lib_save_LIBS=$LIBS | ||
11391 | LIBS="-lcrypt $LIBS" | ||
11392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11393 | /* end confdefs.h. */ | ||
11394 | |||
11395 | /* Override any GCC internal prototype to avoid an error. | ||
11396 | Use char because int might match the return type of a GCC | ||
11397 | builtin and then its argument prototype would still apply. */ | ||
11398 | #ifdef __cplusplus | ||
11399 | extern "C" | ||
11400 | #endif | ||
11401 | char crypt (); | ||
11402 | int | ||
11403 | main () | ||
11404 | { | ||
11405 | return crypt (); | ||
11406 | ; | ||
11407 | return 0; | ||
11408 | } | ||
11409 | _ACEOF | ||
11410 | if ac_fn_c_try_link "$LINENO"; then : | ||
11411 | ac_cv_lib_crypt_crypt=yes | ||
11412 | else | ||
11413 | ac_cv_lib_crypt_crypt=no | ||
11414 | fi | ||
11415 | rm -f core conftest.err conftest.$ac_objext \ | ||
11416 | conftest$ac_exeext conftest.$ac_ext | ||
11417 | LIBS=$ac_check_lib_save_LIBS | ||
11418 | fi | ||
11419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 | ||
11420 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } | ||
11421 | if test "x$ac_cv_lib_crypt_crypt" = xyes; then : | ||
11422 | cat >>confdefs.h <<_ACEOF | ||
11423 | #define HAVE_LIBCRYPT 1 | ||
11424 | _ACEOF | ||
11425 | |||
11426 | LIBS="-lcrypt $LIBS" | ||
11427 | |||
11428 | fi | ||
11429 | |||
11430 | fi | ||
11431 | |||
11432 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
11433 | # version in OpenSSL. | ||
11434 | if test "x$check_for_libcrypt_later" = "x1"; then | ||
11435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 | ||
11436 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } | ||
11437 | if ${ac_cv_lib_crypt_crypt+:} false; then : | ||
11438 | $as_echo_n "(cached) " >&6 | ||
11439 | else | ||
11440 | ac_check_lib_save_LIBS=$LIBS | ||
11441 | LIBS="-lcrypt $LIBS" | ||
11442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11443 | /* end confdefs.h. */ | ||
11444 | |||
11445 | /* Override any GCC internal prototype to avoid an error. | ||
11446 | Use char because int might match the return type of a GCC | ||
11447 | builtin and then its argument prototype would still apply. */ | ||
11448 | #ifdef __cplusplus | ||
11449 | extern "C" | ||
11450 | #endif | ||
11451 | char crypt (); | ||
11452 | int | ||
11453 | main () | ||
11454 | { | ||
11455 | return crypt (); | ||
11456 | ; | ||
11457 | return 0; | ||
11458 | } | ||
11459 | _ACEOF | ||
11460 | if ac_fn_c_try_link "$LINENO"; then : | ||
11461 | ac_cv_lib_crypt_crypt=yes | ||
11462 | else | ||
11463 | ac_cv_lib_crypt_crypt=no | ||
11464 | fi | ||
11465 | rm -f core conftest.err conftest.$ac_objext \ | ||
11466 | conftest$ac_exeext conftest.$ac_ext | ||
11467 | LIBS=$ac_check_lib_save_LIBS | ||
11468 | fi | ||
11469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 | ||
11470 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } | ||
11471 | if test "x$ac_cv_lib_crypt_crypt" = xyes; then : | ||
11472 | LIBS="$LIBS -lcrypt" | ||
11473 | fi | ||
11474 | |||
11475 | fi | ||
11476 | |||
11477 | # Search for SHA256 support in libc and/or OpenSSL | ||
11478 | for ac_func in SHA256_Update EVP_sha256 | ||
11479 | do : | ||
11480 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11481 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
11482 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
11483 | cat >>confdefs.h <<_ACEOF | ||
11484 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11485 | _ACEOF | ||
11486 | TEST_SSH_SHA256=yes | ||
11487 | else | ||
11488 | TEST_SSH_SHA256=no | ||
11489 | fi | ||
11490 | done | ||
11491 | |||
11492 | |||
11493 | |||
11494 | # Check complete ECC support in OpenSSL | ||
11495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has complete ECC support" >&5 | ||
11496 | $as_echo_n "checking whether OpenSSL has complete ECC support... " >&6; } | ||
11497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11498 | /* end confdefs.h. */ | ||
11499 | |||
11500 | #include <openssl/ec.h> | ||
11501 | #include <openssl/ecdh.h> | ||
11502 | #include <openssl/ecdsa.h> | ||
11503 | #include <openssl/evp.h> | ||
11504 | #include <openssl/objects.h> | ||
11505 | #include <openssl/opensslv.h> | ||
11506 | #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ | ||
11507 | # error "OpenSSL < 0.9.8g has unreliable ECC code" | ||
11508 | #endif | ||
11509 | |||
11510 | int | ||
11511 | main () | ||
11512 | { | ||
11513 | |||
11514 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); | ||
11515 | const EVP_MD *m = EVP_sha512(); /* We need this too */ | ||
11516 | |||
11517 | ; | ||
11518 | return 0; | ||
11519 | } | ||
11520 | _ACEOF | ||
11521 | if ac_fn_c_try_link "$LINENO"; then : | ||
11522 | |||
11523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11524 | $as_echo "yes" >&6; } | ||
11525 | |||
11526 | $as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h | ||
11527 | |||
11528 | TEST_SSH_ECC=yes | ||
11529 | COMMENT_OUT_ECC="" | ||
11530 | |||
11531 | else | ||
11532 | |||
11533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11534 | $as_echo "no" >&6; } | ||
11535 | TEST_SSH_ECC=no | ||
11536 | COMMENT_OUT_ECC="#no ecc#" | ||
11537 | |||
11538 | |||
11539 | fi | ||
11540 | rm -f core conftest.err conftest.$ac_objext \ | ||
11541 | conftest$ac_exeext conftest.$ac_ext | ||
11542 | |||
11543 | |||
11544 | |||
11545 | saved_LIBS="$LIBS" | ||
11546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5 | ||
11547 | $as_echo_n "checking for ia_openinfo in -liaf... " >&6; } | ||
11548 | if ${ac_cv_lib_iaf_ia_openinfo+:} false; then : | ||
11549 | $as_echo_n "(cached) " >&6 | ||
11550 | else | ||
11551 | ac_check_lib_save_LIBS=$LIBS | ||
11552 | LIBS="-liaf $LIBS" | ||
11553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11554 | /* end confdefs.h. */ | ||
11555 | |||
11556 | /* Override any GCC internal prototype to avoid an error. | ||
11557 | Use char because int might match the return type of a GCC | ||
11558 | builtin and then its argument prototype would still apply. */ | ||
11559 | #ifdef __cplusplus | ||
11560 | extern "C" | ||
11561 | #endif | ||
11562 | char ia_openinfo (); | ||
11563 | int | ||
11564 | main () | ||
11565 | { | ||
11566 | return ia_openinfo (); | ||
11567 | ; | ||
11568 | return 0; | ||
11569 | } | ||
11570 | _ACEOF | ||
11571 | if ac_fn_c_try_link "$LINENO"; then : | ||
11572 | ac_cv_lib_iaf_ia_openinfo=yes | ||
11573 | else | ||
11574 | ac_cv_lib_iaf_ia_openinfo=no | ||
11575 | fi | ||
11576 | rm -f core conftest.err conftest.$ac_objext \ | ||
11577 | conftest$ac_exeext conftest.$ac_ext | ||
11578 | LIBS=$ac_check_lib_save_LIBS | ||
11579 | fi | ||
11580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5 | ||
11581 | $as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; } | ||
11582 | if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then : | ||
11583 | |||
11584 | LIBS="$LIBS -liaf" | ||
11585 | for ac_func in set_id | ||
11586 | do : | ||
11587 | ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id" | ||
11588 | if test "x$ac_cv_func_set_id" = xyes; then : | ||
11589 | cat >>confdefs.h <<_ACEOF | ||
11590 | #define HAVE_SET_ID 1 | ||
11591 | _ACEOF | ||
11592 | SSHDLIBS="$SSHDLIBS -liaf" | ||
11593 | |||
11594 | $as_echo "#define HAVE_LIBIAF 1" >>confdefs.h | ||
11595 | |||
11596 | |||
11597 | fi | ||
11598 | done | ||
11599 | |||
11600 | |||
11601 | fi | ||
11602 | |||
11603 | LIBS="$saved_LIBS" | ||
11604 | |||
11605 | ### Configure cryptographic random number support | ||
11606 | |||
11607 | # Check wheter OpenSSL seeds itself | ||
11608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
11609 | $as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; } | ||
11610 | if test "$cross_compiling" = yes; then : | ||
11611 | |||
11612 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
11613 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
11614 | # This is safe, since we will fatal() at runtime if | ||
11615 | # OpenSSL is not seeded correctly. | ||
11616 | OPENSSL_SEEDS_ITSELF=yes | ||
11617 | |||
11618 | |||
11619 | else | ||
11620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11621 | /* end confdefs.h. */ | ||
11622 | |||
11623 | #include <string.h> | ||
11624 | #include <openssl/rand.h> | ||
11625 | |||
11626 | int | ||
11627 | main () | ||
11628 | { | ||
11629 | |||
11630 | exit(RAND_status() == 1 ? 0 : 1); | ||
11631 | |||
11632 | ; | ||
11633 | return 0; | ||
11634 | } | ||
11635 | _ACEOF | ||
11636 | if ac_fn_c_try_run "$LINENO"; then : | ||
11637 | |||
11638 | OPENSSL_SEEDS_ITSELF=yes | ||
11639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11640 | $as_echo "yes" >&6; } | ||
11641 | |||
11642 | else | ||
11643 | |||
11644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11645 | $as_echo "no" >&6; } | ||
11646 | |||
11647 | fi | ||
11648 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11649 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11650 | fi | ||
11651 | |||
11652 | |||
11653 | # PRNGD TCP socket | ||
11654 | |||
11655 | # Check whether --with-prngd-port was given. | ||
11656 | if test "${with_prngd_port+set}" = set; then : | ||
11657 | withval=$with_prngd_port; | ||
11658 | case "$withval" in | ||
11659 | no) | ||
11660 | withval="" | ||
11661 | ;; | ||
11662 | [0-9]*) | ||
11663 | ;; | ||
11664 | *) | ||
11665 | as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5 | ||
11666 | ;; | ||
11667 | esac | ||
11668 | if test ! -z "$withval" ; then | ||
11669 | PRNGD_PORT="$withval" | ||
11670 | |||
11671 | cat >>confdefs.h <<_ACEOF | ||
11672 | #define PRNGD_PORT $PRNGD_PORT | ||
11673 | _ACEOF | ||
11674 | |||
11675 | fi | ||
11676 | |||
11677 | |||
11678 | fi | ||
11679 | |||
11680 | |||
11681 | # PRNGD Unix domain socket | ||
11682 | |||
11683 | # Check whether --with-prngd-socket was given. | ||
11684 | if test "${with_prngd_socket+set}" = set; then : | ||
11685 | withval=$with_prngd_socket; | ||
11686 | case "$withval" in | ||
11687 | yes) | ||
11688 | withval="/var/run/egd-pool" | ||
11689 | ;; | ||
11690 | no) | ||
11691 | withval="" | ||
11692 | ;; | ||
11693 | /*) | ||
11694 | ;; | ||
11695 | *) | ||
11696 | as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5 | ||
11697 | ;; | ||
11698 | esac | ||
11699 | |||
11700 | if test ! -z "$withval" ; then | ||
11701 | if test ! -z "$PRNGD_PORT" ; then | ||
11702 | as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5 | ||
11703 | fi | ||
11704 | if test ! -r "$withval" ; then | ||
11705 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5 | ||
11706 | $as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
11707 | fi | ||
11708 | PRNGD_SOCKET="$withval" | ||
11709 | |||
11710 | cat >>confdefs.h <<_ACEOF | ||
11711 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
11712 | _ACEOF | ||
11713 | |||
11714 | fi | ||
11715 | |||
11716 | else | ||
11717 | |||
11718 | # Check for existing socket only if we don't have a random device already | ||
11719 | if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then | ||
11720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5 | ||
11721 | $as_echo_n "checking for PRNGD/EGD socket... " >&6; } | ||
11722 | # Insert other locations here | ||
11723 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
11724 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
11725 | PRNGD_SOCKET="$sock" | ||
11726 | cat >>confdefs.h <<_ACEOF | ||
11727 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
11728 | _ACEOF | ||
11729 | |||
11730 | break; | ||
11731 | fi | ||
11732 | done | ||
11733 | if test ! -z "$PRNGD_SOCKET" ; then | ||
11734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5 | ||
11735 | $as_echo "$PRNGD_SOCKET" >&6; } | ||
11736 | else | ||
11737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
11738 | $as_echo "not found" >&6; } | ||
11739 | fi | ||
11740 | fi | ||
11741 | |||
11742 | |||
11743 | fi | ||
11744 | |||
11745 | |||
11746 | # Which randomness source do we use? | ||
11747 | if test ! -z "$PRNGD_PORT" ; then | ||
11748 | RAND_MSG="PRNGd port $PRNGD_PORT" | ||
11749 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
11750 | RAND_MSG="PRNGd socket $PRNGD_SOCKET" | ||
11751 | elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
11752 | |||
11753 | $as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h | ||
11754 | |||
11755 | RAND_MSG="OpenSSL internal ONLY" | ||
11756 | else | ||
11757 | 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 | ||
11758 | fi | ||
11759 | |||
11760 | # Check for PAM libs | ||
11761 | PAM_MSG="no" | ||
11762 | |||
11763 | # Check whether --with-pam was given. | ||
11764 | if test "${with_pam+set}" = set; then : | ||
11765 | withval=$with_pam; | ||
11766 | if test "x$withval" != "xno" ; then | ||
11767 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ | ||
11768 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then | ||
11769 | as_fn_error $? "PAM headers not found" "$LINENO" 5 | ||
11770 | fi | ||
11771 | |||
11772 | saved_LIBS="$LIBS" | ||
11773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
11774 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
11775 | if ${ac_cv_lib_dl_dlopen+:} false; then : | ||
11776 | $as_echo_n "(cached) " >&6 | ||
11777 | else | ||
11778 | ac_check_lib_save_LIBS=$LIBS | ||
11779 | LIBS="-ldl $LIBS" | ||
11780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11781 | /* end confdefs.h. */ | ||
11782 | |||
11783 | /* Override any GCC internal prototype to avoid an error. | ||
11784 | Use char because int might match the return type of a GCC | ||
11785 | builtin and then its argument prototype would still apply. */ | ||
11786 | #ifdef __cplusplus | ||
11787 | extern "C" | ||
11788 | #endif | ||
11789 | char dlopen (); | ||
11790 | int | ||
11791 | main () | ||
11792 | { | ||
11793 | return dlopen (); | ||
11794 | ; | ||
11795 | return 0; | ||
11796 | } | ||
11797 | _ACEOF | ||
11798 | if ac_fn_c_try_link "$LINENO"; then : | ||
11799 | ac_cv_lib_dl_dlopen=yes | ||
11800 | else | ||
11801 | ac_cv_lib_dl_dlopen=no | ||
11802 | fi | ||
11803 | rm -f core conftest.err conftest.$ac_objext \ | ||
11804 | conftest$ac_exeext conftest.$ac_ext | ||
11805 | LIBS=$ac_check_lib_save_LIBS | ||
11806 | fi | ||
11807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
11808 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
11809 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | ||
11810 | cat >>confdefs.h <<_ACEOF | ||
11811 | #define HAVE_LIBDL 1 | ||
11812 | _ACEOF | ||
11813 | |||
11814 | LIBS="-ldl $LIBS" | ||
11815 | |||
11816 | fi | ||
11817 | |||
11818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5 | ||
11819 | $as_echo_n "checking for pam_set_item in -lpam... " >&6; } | ||
11820 | if ${ac_cv_lib_pam_pam_set_item+:} false; then : | ||
11821 | $as_echo_n "(cached) " >&6 | ||
11822 | else | ||
11823 | ac_check_lib_save_LIBS=$LIBS | ||
11824 | LIBS="-lpam $LIBS" | ||
11825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11826 | /* end confdefs.h. */ | ||
11827 | |||
11828 | /* Override any GCC internal prototype to avoid an error. | ||
11829 | Use char because int might match the return type of a GCC | ||
11830 | builtin and then its argument prototype would still apply. */ | ||
11831 | #ifdef __cplusplus | ||
11832 | extern "C" | ||
11833 | #endif | ||
11834 | char pam_set_item (); | ||
11835 | int | ||
11836 | main () | ||
11837 | { | ||
11838 | return pam_set_item (); | ||
11839 | ; | ||
11840 | return 0; | ||
11841 | } | ||
11842 | _ACEOF | ||
11843 | if ac_fn_c_try_link "$LINENO"; then : | ||
11844 | ac_cv_lib_pam_pam_set_item=yes | ||
11845 | else | ||
11846 | ac_cv_lib_pam_pam_set_item=no | ||
11847 | fi | ||
11848 | rm -f core conftest.err conftest.$ac_objext \ | ||
11849 | conftest$ac_exeext conftest.$ac_ext | ||
11850 | LIBS=$ac_check_lib_save_LIBS | ||
11851 | fi | ||
11852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
11853 | $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; } | ||
11854 | if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then : | ||
11855 | cat >>confdefs.h <<_ACEOF | ||
11856 | #define HAVE_LIBPAM 1 | ||
11857 | _ACEOF | ||
11858 | |||
11859 | LIBS="-lpam $LIBS" | ||
11860 | |||
11861 | else | ||
11862 | as_fn_error $? "*** libpam missing" "$LINENO" 5 | ||
11863 | fi | ||
11864 | |||
11865 | for ac_func in pam_getenvlist | ||
11866 | do : | ||
11867 | ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist" | ||
11868 | if test "x$ac_cv_func_pam_getenvlist" = xyes; then : | ||
11869 | cat >>confdefs.h <<_ACEOF | ||
11870 | #define HAVE_PAM_GETENVLIST 1 | ||
11871 | _ACEOF | ||
11872 | |||
11873 | fi | ||
11874 | done | ||
11875 | |||
11876 | for ac_func in pam_putenv | ||
11877 | do : | ||
11878 | ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv" | ||
11879 | if test "x$ac_cv_func_pam_putenv" = xyes; then : | ||
11880 | cat >>confdefs.h <<_ACEOF | ||
11881 | #define HAVE_PAM_PUTENV 1 | ||
11882 | _ACEOF | ||
11883 | |||
11884 | fi | ||
11885 | done | ||
11886 | |||
11887 | LIBS="$saved_LIBS" | ||
11888 | |||
11889 | PAM_MSG="yes" | ||
11890 | |||
11891 | SSHDLIBS="$SSHDLIBS -lpam" | ||
11892 | |||
11893 | $as_echo "#define USE_PAM 1" >>confdefs.h | ||
11894 | |||
11895 | |||
11896 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
11897 | case "$LIBS" in | ||
11898 | *-ldl*) | ||
11899 | # libdl already in LIBS | ||
11900 | ;; | ||
11901 | *) | ||
11902 | SSHDLIBS="$SSHDLIBS -ldl" | ||
11903 | ;; | ||
11904 | esac | ||
11905 | fi | ||
11906 | fi | ||
11907 | |||
11908 | |||
11909 | fi | ||
11910 | |||
11911 | |||
11912 | # Check for older PAM | ||
11913 | if test "x$PAM_MSG" = "xyes" ; then | ||
11914 | # Check PAM strerror arguments (old PAM) | ||
11915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5 | ||
11916 | $as_echo_n "checking whether pam_strerror takes only one argument... " >&6; } | ||
11917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11918 | /* end confdefs.h. */ | ||
11919 | |||
11920 | #include <stdlib.h> | ||
11921 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
11922 | #include <security/pam_appl.h> | ||
11923 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
11924 | #include <pam/pam_appl.h> | ||
11925 | #endif | ||
11926 | |||
11927 | int | ||
11928 | main () | ||
11929 | { | ||
11930 | |||
11931 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
11932 | |||
11933 | ; | ||
11934 | return 0; | ||
11935 | } | ||
11936 | _ACEOF | ||
11937 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11939 | $as_echo "no" >&6; } | ||
11940 | else | ||
11941 | |||
11942 | |||
11943 | $as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h | ||
11944 | |||
11945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11946 | $as_echo "yes" >&6; } | ||
11947 | PAM_MSG="yes (old library)" | ||
11948 | |||
11949 | |||
11950 | fi | ||
11951 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11952 | fi | ||
11953 | |||
11954 | SSH_PRIVSEP_USER=sshd | ||
11955 | |||
11956 | # Check whether --with-privsep-user was given. | ||
11957 | if test "${with_privsep_user+set}" = set; then : | ||
11958 | withval=$with_privsep_user; | ||
11959 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
11960 | test "x${withval}" != "xyes"; then | ||
11961 | SSH_PRIVSEP_USER=$withval | ||
11962 | fi | ||
11963 | |||
11964 | |||
11965 | fi | ||
11966 | |||
11967 | |||
11968 | cat >>confdefs.h <<_ACEOF | ||
11969 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
11970 | _ACEOF | ||
11971 | |||
11972 | |||
11973 | |||
11974 | if test "x$have_linux_no_new_privs" = "x1" ; then | ||
11975 | ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" " | ||
11976 | #include <sys/types.h> | ||
11977 | #include <linux/seccomp.h> | ||
11978 | |||
11979 | " | ||
11980 | if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then : | ||
11981 | have_seccomp_filter=1 | ||
11982 | fi | ||
11983 | |||
11984 | fi | ||
11985 | if test "x$have_seccomp_filter" = "x1" ; then | ||
11986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5 | ||
11987 | $as_echo_n "checking kernel for seccomp_filter support... " >&6; } | ||
11988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11989 | /* end confdefs.h. */ | ||
11990 | |||
11991 | #include <errno.h> | ||
11992 | #include <elf.h> | ||
11993 | #include <linux/audit.h> | ||
11994 | #include <linux/seccomp.h> | ||
11995 | #include <stdlib.h> | ||
11996 | #include <sys/prctl.h> | ||
11997 | |||
11998 | int | ||
11999 | main () | ||
12000 | { | ||
12001 | int i = $seccomp_audit_arch; | ||
12002 | errno = 0; | ||
12003 | prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0); | ||
12004 | exit(errno == EFAULT ? 0 : 1); | ||
12005 | ; | ||
12006 | return 0; | ||
12007 | } | ||
12008 | _ACEOF | ||
12009 | if ac_fn_c_try_link "$LINENO"; then : | ||
12010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12011 | $as_echo "yes" >&6; } | ||
12012 | else | ||
12013 | |||
12014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12015 | $as_echo "no" >&6; } | ||
12016 | # Disable seccomp filter as a target | ||
12017 | have_seccomp_filter=0 | ||
12018 | |||
12019 | |||
12020 | fi | ||
12021 | rm -f core conftest.err conftest.$ac_objext \ | ||
12022 | conftest$ac_exeext conftest.$ac_ext | ||
12023 | fi | ||
12024 | |||
12025 | # Decide which sandbox style to use | ||
12026 | sandbox_arg="" | ||
12027 | |||
12028 | # Check whether --with-sandbox was given. | ||
12029 | if test "${with_sandbox+set}" = set; then : | ||
12030 | withval=$with_sandbox; | ||
12031 | if test "x$withval" = "xyes" ; then | ||
12032 | sandbox_arg="" | ||
12033 | else | ||
12034 | sandbox_arg="$withval" | ||
12035 | fi | ||
12036 | |||
12037 | |||
12038 | fi | ||
12039 | |||
12040 | |||
12041 | # Some platforms (seems to be the ones that have a kernel poll(2)-type | ||
12042 | # function with which they implement select(2)) use an extra file descriptor | ||
12043 | # when calling select(2), which means we can't use the rlimit sandbox. | ||
12044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select works with descriptor rlimit" >&5 | ||
12045 | $as_echo_n "checking if select works with descriptor rlimit... " >&6; } | ||
12046 | if test "$cross_compiling" = yes; then : | ||
12047 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
12048 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
12049 | |||
12050 | else | ||
12051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12052 | /* end confdefs.h. */ | ||
12053 | |||
12054 | #include <sys/types.h> | ||
12055 | #ifdef HAVE_SYS_TIME_H | ||
12056 | # include <sys/time.h> | ||
12057 | #endif | ||
12058 | #include <sys/resource.h> | ||
12059 | #ifdef HAVE_SYS_SELECT_H | ||
12060 | # include <sys/select.h> | ||
12061 | #endif | ||
12062 | #include <errno.h> | ||
12063 | #include <fcntl.h> | ||
12064 | #include <stdlib.h> | ||
12065 | |||
12066 | int | ||
12067 | main () | ||
12068 | { | ||
12069 | |||
12070 | struct rlimit rl_zero; | ||
12071 | int fd, r; | ||
12072 | fd_set fds; | ||
12073 | struct timeval tv; | ||
12074 | |||
12075 | fd = open("/dev/null", O_RDONLY); | ||
12076 | FD_ZERO(&fds); | ||
12077 | FD_SET(fd, &fds); | ||
12078 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
12079 | setrlimit(RLIMIT_FSIZE, &rl_zero); | ||
12080 | setrlimit(RLIMIT_NOFILE, &rl_zero); | ||
12081 | tv.tv_sec = 1; | ||
12082 | tv.tv_usec = 0; | ||
12083 | r = select(fd+1, &fds, NULL, NULL, &tv); | ||
12084 | exit (r == -1 ? 1 : 0); | ||
12085 | |||
12086 | ; | ||
12087 | return 0; | ||
12088 | } | ||
12089 | _ACEOF | ||
12090 | if ac_fn_c_try_run "$LINENO"; then : | ||
12091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12092 | $as_echo "yes" >&6; } | ||
12093 | select_works_with_rlimit=yes | ||
12094 | else | ||
12095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12096 | $as_echo "no" >&6; } | ||
12097 | select_works_with_rlimit=no | ||
12098 | fi | ||
12099 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12100 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12101 | fi | ||
12102 | |||
12103 | |||
12104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5 | ||
12105 | $as_echo_n "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... " >&6; } | ||
12106 | if test "$cross_compiling" = yes; then : | ||
12107 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
12108 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
12109 | |||
12110 | else | ||
12111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12112 | /* end confdefs.h. */ | ||
12113 | |||
12114 | #include <sys/types.h> | ||
12115 | #ifdef HAVE_SYS_TIME_H | ||
12116 | # include <sys/time.h> | ||
12117 | #endif | ||
12118 | #include <sys/resource.h> | ||
12119 | #include <errno.h> | ||
12120 | #include <stdlib.h> | ||
12121 | |||
12122 | int | ||
12123 | main () | ||
12124 | { | ||
12125 | |||
12126 | struct rlimit rl_zero; | ||
12127 | int fd, r; | ||
12128 | fd_set fds; | ||
12129 | |||
12130 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
12131 | r = setrlimit(RLIMIT_NOFILE, &rl_zero); | ||
12132 | exit (r == -1 ? 1 : 0); | ||
12133 | |||
12134 | ; | ||
12135 | return 0; | ||
12136 | } | ||
12137 | _ACEOF | ||
12138 | if ac_fn_c_try_run "$LINENO"; then : | ||
12139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12140 | $as_echo "yes" >&6; } | ||
12141 | rlimit_nofile_zero_works=yes | ||
12142 | else | ||
12143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12144 | $as_echo "no" >&6; } | ||
12145 | rlimit_nofile_zero_works=no | ||
12146 | fi | ||
12147 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12148 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12149 | fi | ||
12150 | |||
12151 | |||
12152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5 | ||
12153 | $as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; } | ||
12154 | if test "$cross_compiling" = yes; then : | ||
12155 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
12156 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
12157 | |||
12158 | else | ||
12159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12160 | /* end confdefs.h. */ | ||
12161 | |||
12162 | #include <sys/types.h> | ||
12163 | #include <sys/resource.h> | ||
12164 | #include <stdlib.h> | ||
12165 | |||
12166 | int | ||
12167 | main () | ||
12168 | { | ||
12169 | |||
12170 | struct rlimit rl_zero; | ||
12171 | |||
12172 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
12173 | exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0); | ||
12174 | |||
12175 | ; | ||
12176 | return 0; | ||
12177 | } | ||
12178 | _ACEOF | ||
12179 | if ac_fn_c_try_run "$LINENO"; then : | ||
12180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12181 | $as_echo "yes" >&6; } | ||
12182 | else | ||
12183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12184 | $as_echo "no" >&6; } | ||
12185 | |||
12186 | $as_echo "#define SANDBOX_SKIP_RLIMIT_FSIZE 1" >>confdefs.h | ||
12187 | |||
12188 | fi | ||
12189 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12190 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12191 | fi | ||
12192 | |||
12193 | |||
12194 | if test "x$sandbox_arg" = "xsystrace" || \ | ||
12195 | ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then | ||
12196 | test "x$have_systr_policy_kill" != "x1" && \ | ||
12197 | as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5 | ||
12198 | SANDBOX_STYLE="systrace" | ||
12199 | |||
12200 | $as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h | ||
12201 | |||
12202 | elif test "x$sandbox_arg" = "xdarwin" || \ | ||
12203 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \ | ||
12204 | test "x$ac_cv_header_sandbox_h" = "xyes") ; then | ||
12205 | test "x$ac_cv_func_sandbox_init" != "xyes" -o \ | ||
12206 | "x$ac_cv_header_sandbox_h" != "xyes" && \ | ||
12207 | as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5 | ||
12208 | SANDBOX_STYLE="darwin" | ||
12209 | |||
12210 | $as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h | ||
12211 | |||
12212 | elif test "x$sandbox_arg" = "xseccomp_filter" || \ | ||
12213 | ( test -z "$sandbox_arg" && \ | ||
12214 | test "x$have_seccomp_filter" = "x1" && \ | ||
12215 | test "x$ac_cv_header_elf_h" = "xyes" && \ | ||
12216 | test "x$ac_cv_header_linux_audit_h" = "xyes" && \ | ||
12217 | test "x$ac_cv_header_linux_filter_h" = "xyes" && \ | ||
12218 | test "x$seccomp_audit_arch" != "x" && \ | ||
12219 | test "x$have_linux_no_new_privs" = "x1" && \ | ||
12220 | test "x$ac_cv_func_prctl" = "xyes" ) ; then | ||
12221 | test "x$seccomp_audit_arch" = "x" && \ | ||
12222 | as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5 | ||
12223 | test "x$have_linux_no_new_privs" != "x1" && \ | ||
12224 | as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5 | ||
12225 | test "x$have_seccomp_filter" != "x1" && \ | ||
12226 | as_fn_error $? "seccomp_filter sandbox requires seccomp headers" "$LINENO" 5 | ||
12227 | test "x$ac_cv_func_prctl" != "xyes" && \ | ||
12228 | as_fn_error $? "seccomp_filter sandbox requires prctl function" "$LINENO" 5 | ||
12229 | SANDBOX_STYLE="seccomp_filter" | ||
12230 | |||
12231 | $as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h | ||
12232 | |||
12233 | elif test "x$sandbox_arg" = "xrlimit" || \ | ||
12234 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \ | ||
12235 | test "x$select_works_with_rlimit" = "xyes" && \ | ||
12236 | test "x$rlimit_nofile_zero_works" = "xyes" ) ; then | ||
12237 | test "x$ac_cv_func_setrlimit" != "xyes" && \ | ||
12238 | as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5 | ||
12239 | test "x$select_works_with_rlimit" != "xyes" && \ | ||
12240 | as_fn_error $? "rlimit sandbox requires select to work with rlimit" "$LINENO" 5 | ||
12241 | SANDBOX_STYLE="rlimit" | ||
12242 | |||
12243 | $as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h | ||
12244 | |||
12245 | elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \ | ||
12246 | test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then | ||
12247 | SANDBOX_STYLE="none" | ||
12248 | |||
12249 | $as_echo "#define SANDBOX_NULL 1" >>confdefs.h | ||
12250 | |||
12251 | else | ||
12252 | as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5 | ||
12253 | fi | ||
12254 | |||
12255 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
12256 | if test ! -z "$SONY" ; then | ||
12257 | LIBS="$LIBS -liberty"; | ||
12258 | fi | ||
12259 | |||
12260 | # Check for long long datatypes | ||
12261 | ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" | ||
12262 | if test "x$ac_cv_type_long_long" = xyes; then : | ||
12263 | |||
12264 | cat >>confdefs.h <<_ACEOF | ||
12265 | #define HAVE_LONG_LONG 1 | ||
12266 | _ACEOF | ||
12267 | |||
12268 | |||
12269 | fi | ||
12270 | ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default" | ||
12271 | if test "x$ac_cv_type_unsigned_long_long" = xyes; then : | ||
12272 | |||
12273 | cat >>confdefs.h <<_ACEOF | ||
12274 | #define HAVE_UNSIGNED_LONG_LONG 1 | ||
12275 | _ACEOF | ||
12276 | |||
12277 | |||
12278 | fi | ||
12279 | ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default" | ||
12280 | if test "x$ac_cv_type_long_double" = xyes; then : | ||
12281 | |||
12282 | cat >>confdefs.h <<_ACEOF | ||
12283 | #define HAVE_LONG_DOUBLE 1 | ||
12284 | _ACEOF | ||
12285 | |||
12286 | |||
12287 | fi | ||
12288 | |||
12289 | |||
12290 | # Check datatype sizes | ||
12291 | # The cast to long int works around a bug in the HP C Compiler | ||
12292 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
12293 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
12294 | # This bug is HP SR number 8606223364. | ||
12295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5 | ||
12296 | $as_echo_n "checking size of short int... " >&6; } | ||
12297 | if ${ac_cv_sizeof_short_int+:} false; then : | ||
12298 | $as_echo_n "(cached) " >&6 | ||
12299 | else | ||
12300 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then : | ||
12301 | |||
12302 | else | ||
12303 | if test "$ac_cv_type_short_int" = yes; then | ||
12304 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
12305 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
12306 | as_fn_error 77 "cannot compute sizeof (short int) | ||
12307 | See \`config.log' for more details" "$LINENO" 5; } | ||
12308 | else | ||
12309 | ac_cv_sizeof_short_int=0 | ||
12310 | fi | ||
12311 | fi | ||
12312 | |||
12313 | fi | ||
12314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5 | ||
12315 | $as_echo "$ac_cv_sizeof_short_int" >&6; } | ||
12316 | |||
12317 | |||
12318 | |||
12319 | cat >>confdefs.h <<_ACEOF | ||
12320 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
12321 | _ACEOF | ||
12322 | |||
12323 | |||
12324 | # The cast to long int works around a bug in the HP C Compiler | ||
12325 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
12326 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
12327 | # This bug is HP SR number 8606223364. | ||
12328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | ||
12329 | $as_echo_n "checking size of int... " >&6; } | ||
12330 | if ${ac_cv_sizeof_int+:} false; then : | ||
12331 | $as_echo_n "(cached) " >&6 | ||
12332 | else | ||
12333 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | ||
12334 | |||
12335 | else | ||
12336 | if test "$ac_cv_type_int" = yes; then | ||
12337 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
12338 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
12339 | as_fn_error 77 "cannot compute sizeof (int) | ||
12340 | See \`config.log' for more details" "$LINENO" 5; } | ||
12341 | else | ||
12342 | ac_cv_sizeof_int=0 | ||
12343 | fi | ||
12344 | fi | ||
12345 | |||
12346 | fi | ||
12347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | ||
12348 | $as_echo "$ac_cv_sizeof_int" >&6; } | ||
12349 | |||
12350 | |||
12351 | |||
12352 | cat >>confdefs.h <<_ACEOF | ||
12353 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
12354 | _ACEOF | ||
12355 | |||
12356 | |||
12357 | # The cast to long int works around a bug in the HP C Compiler | ||
12358 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
12359 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
12360 | # This bug is HP SR number 8606223364. | ||
12361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 | ||
12362 | $as_echo_n "checking size of long int... " >&6; } | ||
12363 | if ${ac_cv_sizeof_long_int+:} false; then : | ||
12364 | $as_echo_n "(cached) " >&6 | ||
12365 | else | ||
12366 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : | ||
12367 | |||
12368 | else | ||
12369 | if test "$ac_cv_type_long_int" = yes; then | ||
12370 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
12371 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
12372 | as_fn_error 77 "cannot compute sizeof (long int) | ||
12373 | See \`config.log' for more details" "$LINENO" 5; } | ||
12374 | else | ||
12375 | ac_cv_sizeof_long_int=0 | ||
12376 | fi | ||
12377 | fi | ||
12378 | |||
12379 | fi | ||
12380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 | ||
12381 | $as_echo "$ac_cv_sizeof_long_int" >&6; } | ||
12382 | |||
12383 | |||
12384 | |||
12385 | cat >>confdefs.h <<_ACEOF | ||
12386 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
12387 | _ACEOF | ||
12388 | |||
12389 | |||
12390 | # The cast to long int works around a bug in the HP C Compiler | ||
12391 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
12392 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
12393 | # This bug is HP SR number 8606223364. | ||
12394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5 | ||
12395 | $as_echo_n "checking size of long long int... " >&6; } | ||
12396 | if ${ac_cv_sizeof_long_long_int+:} false; then : | ||
12397 | $as_echo_n "(cached) " >&6 | ||
12398 | else | ||
12399 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then : | ||
12400 | |||
12401 | else | ||
12402 | if test "$ac_cv_type_long_long_int" = yes; then | ||
12403 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
12404 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
12405 | as_fn_error 77 "cannot compute sizeof (long long int) | ||
12406 | See \`config.log' for more details" "$LINENO" 5; } | ||
12407 | else | ||
12408 | ac_cv_sizeof_long_long_int=0 | ||
12409 | fi | ||
12410 | fi | ||
12411 | |||
12412 | fi | ||
12413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5 | ||
12414 | $as_echo "$ac_cv_sizeof_long_long_int" >&6; } | ||
12415 | |||
12416 | |||
12417 | |||
12418 | cat >>confdefs.h <<_ACEOF | ||
12419 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
12420 | _ACEOF | ||
12421 | |||
12422 | |||
12423 | |||
12424 | # Sanity check long long for some platforms (AIX) | ||
12425 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
12426 | ac_cv_sizeof_long_long_int=0 | ||
12427 | fi | ||
12428 | |||
12429 | # compute LLONG_MIN and LLONG_MAX if we don't know them. | ||
12430 | if test -z "$have_llong_max"; then | ||
12431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5 | ||
12432 | $as_echo_n "checking for max value of long long... " >&6; } | ||
12433 | if test "$cross_compiling" = yes; then : | ||
12434 | |||
12435 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
12436 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
12437 | |||
12438 | |||
12439 | else | ||
12440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12441 | /* end confdefs.h. */ | ||
12442 | |||
12443 | #include <stdio.h> | ||
12444 | /* Why is this so damn hard? */ | ||
12445 | #ifdef __GNUC__ | ||
12446 | # undef __GNUC__ | ||
12447 | #endif | ||
12448 | #define __USE_ISOC99 | ||
12449 | #include <limits.h> | ||
12450 | #define DATA "conftest.llminmax" | ||
12451 | #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a)) | ||
12452 | |||
12453 | /* | ||
12454 | * printf in libc on some platforms (eg old Tru64) does not understand %lld so | ||
12455 | * we do this the hard way. | ||
12456 | */ | ||
12457 | static int | ||
12458 | fprint_ll(FILE *f, long long n) | ||
12459 | { | ||
12460 | unsigned int i; | ||
12461 | int l[sizeof(long long) * 8]; | ||
12462 | |||
12463 | if (n < 0) | ||
12464 | if (fprintf(f, "-") < 0) | ||
12465 | return -1; | ||
12466 | for (i = 0; n != 0; i++) { | ||
12467 | l[i] = my_abs(n % 10); | ||
12468 | n /= 10; | ||
12469 | } | ||
12470 | do { | ||
12471 | if (fprintf(f, "%d", l[--i]) < 0) | ||
12472 | return -1; | ||
12473 | } while (i != 0); | ||
12474 | if (fprintf(f, " ") < 0) | ||
12475 | return -1; | ||
12476 | return 0; | ||
12477 | } | ||
12478 | |||
12479 | int | ||
12480 | main () | ||
12481 | { | ||
12482 | |||
12483 | FILE *f; | ||
12484 | long long i, llmin, llmax = 0; | ||
12485 | |||
12486 | if((f = fopen(DATA,"w")) == NULL) | ||
12487 | exit(1); | ||
12488 | |||
12489 | #if defined(LLONG_MIN) && defined(LLONG_MAX) | ||
12490 | fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n"); | ||
12491 | llmin = LLONG_MIN; | ||
12492 | llmax = LLONG_MAX; | ||
12493 | #else | ||
12494 | fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n"); | ||
12495 | /* This will work on one's complement and two's complement */ | ||
12496 | for (i = 1; i > llmax; i <<= 1, i++) | ||
12497 | llmax = i; | ||
12498 | llmin = llmax + 1LL; /* wrap */ | ||
12499 | #endif | ||
12500 | |||
12501 | /* Sanity check */ | ||
12502 | if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax | ||
12503 | || llmax - 1 > llmax || llmin == llmax || llmin == 0 | ||
12504 | || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) { | ||
12505 | fprintf(f, "unknown unknown\n"); | ||
12506 | exit(2); | ||
12507 | } | ||
12508 | |||
12509 | if (fprint_ll(f, llmin) < 0) | ||
12510 | exit(3); | ||
12511 | if (fprint_ll(f, llmax) < 0) | ||
12512 | exit(4); | ||
12513 | if (fclose(f) < 0) | ||
12514 | exit(5); | ||
12515 | exit(0); | ||
12516 | |||
12517 | ; | ||
12518 | return 0; | ||
12519 | } | ||
12520 | _ACEOF | ||
12521 | if ac_fn_c_try_run "$LINENO"; then : | ||
12522 | |||
12523 | llong_min=`$AWK '{print $1}' conftest.llminmax` | ||
12524 | llong_max=`$AWK '{print $2}' conftest.llminmax` | ||
12525 | |||
12526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5 | ||
12527 | $as_echo "$llong_max" >&6; } | ||
12528 | |||
12529 | cat >>confdefs.h <<_ACEOF | ||
12530 | #define LLONG_MAX ${llong_max}LL | ||
12531 | _ACEOF | ||
12532 | |||
12533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5 | ||
12534 | $as_echo_n "checking for min value of long long... " >&6; } | ||
12535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5 | ||
12536 | $as_echo "$llong_min" >&6; } | ||
12537 | |||
12538 | cat >>confdefs.h <<_ACEOF | ||
12539 | #define LLONG_MIN ${llong_min}LL | ||
12540 | _ACEOF | ||
12541 | |||
12542 | |||
12543 | else | ||
12544 | |||
12545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
12546 | $as_echo "not found" >&6; } | ||
12547 | |||
12548 | fi | ||
12549 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12550 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12551 | fi | ||
12552 | |||
12553 | fi | ||
12554 | |||
12555 | |||
12556 | # More checks for data types | ||
12557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5 | ||
12558 | $as_echo_n "checking for u_int type... " >&6; } | ||
12559 | if ${ac_cv_have_u_int+:} false; then : | ||
12560 | $as_echo_n "(cached) " >&6 | ||
12561 | else | ||
12562 | |||
12563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12564 | /* end confdefs.h. */ | ||
12565 | #include <sys/types.h> | ||
12566 | int | ||
12567 | main () | ||
12568 | { | ||
12569 | u_int a; a = 1; | ||
12570 | ; | ||
12571 | return 0; | ||
12572 | } | ||
12573 | _ACEOF | ||
12574 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12575 | ac_cv_have_u_int="yes" | ||
12576 | else | ||
12577 | ac_cv_have_u_int="no" | ||
12578 | |||
12579 | fi | ||
12580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12581 | |||
12582 | fi | ||
12583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5 | ||
12584 | $as_echo "$ac_cv_have_u_int" >&6; } | ||
12585 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
12586 | |||
12587 | $as_echo "#define HAVE_U_INT 1" >>confdefs.h | ||
12588 | |||
12589 | have_u_int=1 | ||
12590 | fi | ||
12591 | |||
12592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5 | ||
12593 | $as_echo_n "checking for intXX_t types... " >&6; } | ||
12594 | if ${ac_cv_have_intxx_t+:} false; then : | ||
12595 | $as_echo_n "(cached) " >&6 | ||
12596 | else | ||
12597 | |||
12598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12599 | /* end confdefs.h. */ | ||
12600 | #include <sys/types.h> | ||
12601 | int | ||
12602 | main () | ||
12603 | { | ||
12604 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
12605 | ; | ||
12606 | return 0; | ||
12607 | } | ||
12608 | _ACEOF | ||
12609 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12610 | ac_cv_have_intxx_t="yes" | ||
12611 | else | ||
12612 | ac_cv_have_intxx_t="no" | ||
12613 | |||
12614 | fi | ||
12615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12616 | |||
12617 | fi | ||
12618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5 | ||
12619 | $as_echo "$ac_cv_have_intxx_t" >&6; } | ||
12620 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
12621 | |||
12622 | $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h | ||
12623 | |||
12624 | have_intxx_t=1 | ||
12625 | fi | ||
12626 | |||
12627 | if (test -z "$have_intxx_t" && \ | ||
12628 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
12629 | then | ||
12630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5 | ||
12631 | $as_echo_n "checking for intXX_t types in stdint.h... " >&6; } | ||
12632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12633 | /* end confdefs.h. */ | ||
12634 | #include <stdint.h> | ||
12635 | int | ||
12636 | main () | ||
12637 | { | ||
12638 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
12639 | ; | ||
12640 | return 0; | ||
12641 | } | ||
12642 | _ACEOF | ||
12643 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12644 | |||
12645 | $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h | ||
12646 | |||
12647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12648 | $as_echo "yes" >&6; } | ||
12649 | |||
12650 | else | ||
12651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12652 | $as_echo "no" >&6; } | ||
12653 | |||
12654 | fi | ||
12655 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12656 | fi | ||
12657 | |||
12658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5 | ||
12659 | $as_echo_n "checking for int64_t type... " >&6; } | ||
12660 | if ${ac_cv_have_int64_t+:} false; then : | ||
12661 | $as_echo_n "(cached) " >&6 | ||
12662 | else | ||
12663 | |||
12664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12665 | /* end confdefs.h. */ | ||
12666 | |||
12667 | #include <sys/types.h> | ||
12668 | #ifdef HAVE_STDINT_H | ||
12669 | # include <stdint.h> | ||
12670 | #endif | ||
12671 | #include <sys/socket.h> | ||
12672 | #ifdef HAVE_SYS_BITYPES_H | ||
12673 | # include <sys/bitypes.h> | ||
12674 | #endif | ||
12675 | |||
12676 | int | ||
12677 | main () | ||
12678 | { | ||
12679 | |||
12680 | int64_t a; a = 1; | ||
12681 | |||
12682 | ; | ||
12683 | return 0; | ||
12684 | } | ||
12685 | _ACEOF | ||
12686 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12687 | ac_cv_have_int64_t="yes" | ||
12688 | else | ||
12689 | ac_cv_have_int64_t="no" | ||
12690 | |||
12691 | fi | ||
12692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12693 | |||
12694 | fi | ||
12695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5 | ||
12696 | $as_echo "$ac_cv_have_int64_t" >&6; } | ||
12697 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
12698 | |||
12699 | $as_echo "#define HAVE_INT64_T 1" >>confdefs.h | ||
12700 | |||
12701 | fi | ||
12702 | |||
12703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5 | ||
12704 | $as_echo_n "checking for u_intXX_t types... " >&6; } | ||
12705 | if ${ac_cv_have_u_intxx_t+:} false; then : | ||
12706 | $as_echo_n "(cached) " >&6 | ||
12707 | else | ||
12708 | |||
12709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12710 | /* end confdefs.h. */ | ||
12711 | #include <sys/types.h> | ||
12712 | int | ||
12713 | main () | ||
12714 | { | ||
12715 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
12716 | ; | ||
12717 | return 0; | ||
12718 | } | ||
12719 | _ACEOF | ||
12720 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12721 | ac_cv_have_u_intxx_t="yes" | ||
12722 | else | ||
12723 | ac_cv_have_u_intxx_t="no" | ||
12724 | |||
12725 | fi | ||
12726 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12727 | |||
12728 | fi | ||
12729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5 | ||
12730 | $as_echo "$ac_cv_have_u_intxx_t" >&6; } | ||
12731 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
12732 | |||
12733 | $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h | ||
12734 | |||
12735 | have_u_intxx_t=1 | ||
12736 | fi | ||
12737 | |||
12738 | if test -z "$have_u_intxx_t" ; then | ||
12739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5 | ||
12740 | $as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; } | ||
12741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12742 | /* end confdefs.h. */ | ||
12743 | #include <sys/socket.h> | ||
12744 | int | ||
12745 | main () | ||
12746 | { | ||
12747 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
12748 | ; | ||
12749 | return 0; | ||
12750 | } | ||
12751 | _ACEOF | ||
12752 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12753 | |||
12754 | $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h | ||
12755 | |||
12756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12757 | $as_echo "yes" >&6; } | ||
12758 | |||
12759 | else | ||
12760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12761 | $as_echo "no" >&6; } | ||
12762 | |||
12763 | fi | ||
12764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12765 | fi | ||
12766 | |||
12767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5 | ||
12768 | $as_echo_n "checking for u_int64_t types... " >&6; } | ||
12769 | if ${ac_cv_have_u_int64_t+:} false; then : | ||
12770 | $as_echo_n "(cached) " >&6 | ||
12771 | else | ||
12772 | |||
12773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12774 | /* end confdefs.h. */ | ||
12775 | #include <sys/types.h> | ||
12776 | int | ||
12777 | main () | ||
12778 | { | ||
12779 | u_int64_t a; a = 1; | ||
12780 | ; | ||
12781 | return 0; | ||
12782 | } | ||
12783 | _ACEOF | ||
12784 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12785 | ac_cv_have_u_int64_t="yes" | ||
12786 | else | ||
12787 | ac_cv_have_u_int64_t="no" | ||
12788 | |||
12789 | fi | ||
12790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12791 | |||
12792 | fi | ||
12793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5 | ||
12794 | $as_echo "$ac_cv_have_u_int64_t" >&6; } | ||
12795 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
12796 | |||
12797 | $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h | ||
12798 | |||
12799 | have_u_int64_t=1 | ||
12800 | fi | ||
12801 | |||
12802 | if test -z "$have_u_int64_t" ; then | ||
12803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
12804 | $as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; } | ||
12805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12806 | /* end confdefs.h. */ | ||
12807 | #include <sys/bitypes.h> | ||
12808 | int | ||
12809 | main () | ||
12810 | { | ||
12811 | u_int64_t a; a = 1 | ||
12812 | ; | ||
12813 | return 0; | ||
12814 | } | ||
12815 | _ACEOF | ||
12816 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12817 | |||
12818 | $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h | ||
12819 | |||
12820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12821 | $as_echo "yes" >&6; } | ||
12822 | |||
12823 | else | ||
12824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12825 | $as_echo "no" >&6; } | ||
12826 | |||
12827 | fi | ||
12828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12829 | fi | ||
12830 | |||
12831 | if test -z "$have_u_intxx_t" ; then | ||
12832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5 | ||
12833 | $as_echo_n "checking for uintXX_t types... " >&6; } | ||
12834 | if ${ac_cv_have_uintxx_t+:} false; then : | ||
12835 | $as_echo_n "(cached) " >&6 | ||
12836 | else | ||
12837 | |||
12838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12839 | /* end confdefs.h. */ | ||
12840 | |||
12841 | #include <sys/types.h> | ||
12842 | |||
12843 | int | ||
12844 | main () | ||
12845 | { | ||
12846 | |||
12847 | uint8_t a; | ||
12848 | uint16_t b; | ||
12849 | uint32_t c; | ||
12850 | a = b = c = 1; | ||
12851 | |||
12852 | ; | ||
12853 | return 0; | ||
12854 | } | ||
12855 | _ACEOF | ||
12856 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12857 | ac_cv_have_uintxx_t="yes" | ||
12858 | else | ||
12859 | ac_cv_have_uintxx_t="no" | ||
12860 | |||
12861 | fi | ||
12862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12863 | |||
12864 | fi | ||
12865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5 | ||
12866 | $as_echo "$ac_cv_have_uintxx_t" >&6; } | ||
12867 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
12868 | |||
12869 | $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h | ||
12870 | |||
12871 | fi | ||
12872 | fi | ||
12873 | |||
12874 | if test -z "$have_uintxx_t" ; then | ||
12875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5 | ||
12876 | $as_echo_n "checking for uintXX_t types in stdint.h... " >&6; } | ||
12877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12878 | /* end confdefs.h. */ | ||
12879 | #include <stdint.h> | ||
12880 | int | ||
12881 | main () | ||
12882 | { | ||
12883 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
12884 | ; | ||
12885 | return 0; | ||
12886 | } | ||
12887 | _ACEOF | ||
12888 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12889 | |||
12890 | $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h | ||
12891 | |||
12892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12893 | $as_echo "yes" >&6; } | ||
12894 | |||
12895 | else | ||
12896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12897 | $as_echo "no" >&6; } | ||
12898 | |||
12899 | fi | ||
12900 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12901 | fi | ||
12902 | |||
12903 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
12904 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
12905 | then | ||
12906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
12907 | $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; } | ||
12908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12909 | /* end confdefs.h. */ | ||
12910 | |||
12911 | #include <sys/bitypes.h> | ||
12912 | |||
12913 | int | ||
12914 | main () | ||
12915 | { | ||
12916 | |||
12917 | int8_t a; int16_t b; int32_t c; | ||
12918 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
12919 | a = b = c = e = f = g = 1; | ||
12920 | |||
12921 | ; | ||
12922 | return 0; | ||
12923 | } | ||
12924 | _ACEOF | ||
12925 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12926 | |||
12927 | $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h | ||
12928 | |||
12929 | $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h | ||
12930 | |||
12931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12932 | $as_echo "yes" >&6; } | ||
12933 | |||
12934 | else | ||
12935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12936 | $as_echo "no" >&6; } | ||
12937 | |||
12938 | fi | ||
12939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12940 | fi | ||
12941 | |||
12942 | |||
12943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5 | ||
12944 | $as_echo_n "checking for u_char... " >&6; } | ||
12945 | if ${ac_cv_have_u_char+:} false; then : | ||
12946 | $as_echo_n "(cached) " >&6 | ||
12947 | else | ||
12948 | |||
12949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12950 | /* end confdefs.h. */ | ||
12951 | #include <sys/types.h> | ||
12952 | int | ||
12953 | main () | ||
12954 | { | ||
12955 | u_char foo; foo = 125; | ||
12956 | ; | ||
12957 | return 0; | ||
12958 | } | ||
12959 | _ACEOF | ||
12960 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12961 | ac_cv_have_u_char="yes" | ||
12962 | else | ||
12963 | ac_cv_have_u_char="no" | ||
12964 | |||
12965 | fi | ||
12966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12967 | |||
12968 | fi | ||
12969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5 | ||
12970 | $as_echo "$ac_cv_have_u_char" >&6; } | ||
12971 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
12972 | |||
12973 | $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h | ||
12974 | |||
12975 | fi | ||
12976 | |||
12977 | |||
12978 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> | ||
12979 | #include <sys/socket.h> | ||
12980 | " | ||
12981 | if test "x$ac_cv_type_socklen_t" = xyes; then : | ||
12982 | |||
12983 | else | ||
12984 | |||
12985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 | ||
12986 | $as_echo_n "checking for socklen_t equivalent... " >&6; } | ||
12987 | if ${curl_cv_socklen_t_equiv+:} false; then : | ||
12988 | $as_echo_n "(cached) " >&6 | ||
12989 | else | ||
12990 | |||
12991 | # Systems have either "struct sockaddr *" or | ||
12992 | # "void *" as the second argument to getpeername | ||
12993 | curl_cv_socklen_t_equiv= | ||
12994 | for arg2 in "struct sockaddr" void; do | ||
12995 | for t in int size_t unsigned long "unsigned long"; do | ||
12996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12997 | /* end confdefs.h. */ | ||
12998 | |||
12999 | #include <sys/types.h> | ||
13000 | #include <sys/socket.h> | ||
13001 | |||
13002 | int getpeername (int, $arg2 *, $t *); | ||
13003 | |||
13004 | int | ||
13005 | main () | ||
13006 | { | ||
13007 | |||
13008 | $t len; | ||
13009 | getpeername(0,0,&len); | ||
13010 | |||
13011 | ; | ||
13012 | return 0; | ||
13013 | } | ||
13014 | _ACEOF | ||
13015 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13016 | |||
13017 | curl_cv_socklen_t_equiv="$t" | ||
13018 | break | ||
13019 | |||
13020 | fi | ||
13021 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13022 | done | ||
13023 | done | ||
13024 | |||
13025 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
13026 | as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5 | ||
13027 | fi | ||
13028 | |||
13029 | fi | ||
13030 | |||
13031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5 | ||
13032 | $as_echo "$curl_cv_socklen_t_equiv" >&6; } | ||
13033 | |||
13034 | cat >>confdefs.h <<_ACEOF | ||
13035 | #define socklen_t $curl_cv_socklen_t_equiv | ||
13036 | _ACEOF | ||
13037 | |||
13038 | fi | ||
13039 | |||
13040 | |||
13041 | |||
13042 | ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h> | ||
13043 | " | ||
13044 | if test "x$ac_cv_type_sig_atomic_t" = xyes; then : | ||
13045 | |||
13046 | cat >>confdefs.h <<_ACEOF | ||
13047 | #define HAVE_SIG_ATOMIC_T 1 | ||
13048 | _ACEOF | ||
13049 | |||
13050 | |||
13051 | fi | ||
13052 | |||
13053 | ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" " | ||
13054 | #include <sys/types.h> | ||
13055 | #ifdef HAVE_SYS_BITYPES_H | ||
13056 | #include <sys/bitypes.h> | ||
13057 | #endif | ||
13058 | #ifdef HAVE_SYS_STATFS_H | ||
13059 | #include <sys/statfs.h> | ||
13060 | #endif | ||
13061 | #ifdef HAVE_SYS_STATVFS_H | ||
13062 | #include <sys/statvfs.h> | ||
13063 | #endif | ||
13064 | |||
13065 | " | ||
13066 | if test "x$ac_cv_type_fsblkcnt_t" = xyes; then : | ||
13067 | |||
13068 | cat >>confdefs.h <<_ACEOF | ||
13069 | #define HAVE_FSBLKCNT_T 1 | ||
13070 | _ACEOF | ||
13071 | |||
13072 | |||
13073 | fi | ||
13074 | ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" " | ||
13075 | #include <sys/types.h> | ||
13076 | #ifdef HAVE_SYS_BITYPES_H | ||
13077 | #include <sys/bitypes.h> | ||
13078 | #endif | ||
13079 | #ifdef HAVE_SYS_STATFS_H | ||
13080 | #include <sys/statfs.h> | ||
13081 | #endif | ||
13082 | #ifdef HAVE_SYS_STATVFS_H | ||
13083 | #include <sys/statvfs.h> | ||
13084 | #endif | ||
13085 | |||
13086 | " | ||
13087 | if test "x$ac_cv_type_fsfilcnt_t" = xyes; then : | ||
13088 | |||
13089 | cat >>confdefs.h <<_ACEOF | ||
13090 | #define HAVE_FSFILCNT_T 1 | ||
13091 | _ACEOF | ||
13092 | |||
13093 | |||
13094 | fi | ||
13095 | |||
13096 | |||
13097 | ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h> | ||
13098 | #include <netinet/in.h> | ||
13099 | " | ||
13100 | if test "x$ac_cv_type_in_addr_t" = xyes; then : | ||
13101 | |||
13102 | cat >>confdefs.h <<_ACEOF | ||
13103 | #define HAVE_IN_ADDR_T 1 | ||
13104 | _ACEOF | ||
13105 | |||
13106 | |||
13107 | fi | ||
13108 | ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h> | ||
13109 | #include <netinet/in.h> | ||
13110 | " | ||
13111 | if test "x$ac_cv_type_in_port_t" = xyes; then : | ||
13112 | |||
13113 | cat >>confdefs.h <<_ACEOF | ||
13114 | #define HAVE_IN_PORT_T 1 | ||
13115 | _ACEOF | ||
13116 | |||
13117 | |||
13118 | fi | ||
13119 | |||
13120 | |||
13121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5 | ||
13122 | $as_echo_n "checking for size_t... " >&6; } | ||
13123 | if ${ac_cv_have_size_t+:} false; then : | ||
13124 | $as_echo_n "(cached) " >&6 | ||
13125 | else | ||
13126 | |||
13127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13128 | /* end confdefs.h. */ | ||
13129 | #include <sys/types.h> | ||
13130 | int | ||
13131 | main () | ||
13132 | { | ||
13133 | size_t foo; foo = 1235; | ||
13134 | ; | ||
13135 | return 0; | ||
13136 | } | ||
13137 | _ACEOF | ||
13138 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13139 | ac_cv_have_size_t="yes" | ||
13140 | else | ||
13141 | ac_cv_have_size_t="no" | ||
13142 | |||
13143 | fi | ||
13144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13145 | |||
13146 | fi | ||
13147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5 | ||
13148 | $as_echo "$ac_cv_have_size_t" >&6; } | ||
13149 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
13150 | |||
13151 | $as_echo "#define HAVE_SIZE_T 1" >>confdefs.h | ||
13152 | |||
13153 | fi | ||
13154 | |||
13155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 | ||
13156 | $as_echo_n "checking for ssize_t... " >&6; } | ||
13157 | if ${ac_cv_have_ssize_t+:} false; then : | ||
13158 | $as_echo_n "(cached) " >&6 | ||
13159 | else | ||
13160 | |||
13161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13162 | /* end confdefs.h. */ | ||
13163 | #include <sys/types.h> | ||
13164 | int | ||
13165 | main () | ||
13166 | { | ||
13167 | ssize_t foo; foo = 1235; | ||
13168 | ; | ||
13169 | return 0; | ||
13170 | } | ||
13171 | _ACEOF | ||
13172 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13173 | ac_cv_have_ssize_t="yes" | ||
13174 | else | ||
13175 | ac_cv_have_ssize_t="no" | ||
13176 | |||
13177 | fi | ||
13178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13179 | |||
13180 | fi | ||
13181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5 | ||
13182 | $as_echo "$ac_cv_have_ssize_t" >&6; } | ||
13183 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
13184 | |||
13185 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h | ||
13186 | |||
13187 | fi | ||
13188 | |||
13189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5 | ||
13190 | $as_echo_n "checking for clock_t... " >&6; } | ||
13191 | if ${ac_cv_have_clock_t+:} false; then : | ||
13192 | $as_echo_n "(cached) " >&6 | ||
13193 | else | ||
13194 | |||
13195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13196 | /* end confdefs.h. */ | ||
13197 | #include <time.h> | ||
13198 | int | ||
13199 | main () | ||
13200 | { | ||
13201 | clock_t foo; foo = 1235; | ||
13202 | ; | ||
13203 | return 0; | ||
13204 | } | ||
13205 | _ACEOF | ||
13206 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13207 | ac_cv_have_clock_t="yes" | ||
13208 | else | ||
13209 | ac_cv_have_clock_t="no" | ||
13210 | |||
13211 | fi | ||
13212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13213 | |||
13214 | fi | ||
13215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5 | ||
13216 | $as_echo "$ac_cv_have_clock_t" >&6; } | ||
13217 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
13218 | |||
13219 | $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h | ||
13220 | |||
13221 | fi | ||
13222 | |||
13223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5 | ||
13224 | $as_echo_n "checking for sa_family_t... " >&6; } | ||
13225 | if ${ac_cv_have_sa_family_t+:} false; then : | ||
13226 | $as_echo_n "(cached) " >&6 | ||
13227 | else | ||
13228 | |||
13229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13230 | /* end confdefs.h. */ | ||
13231 | |||
13232 | #include <sys/types.h> | ||
13233 | #include <sys/socket.h> | ||
13234 | |||
13235 | int | ||
13236 | main () | ||
13237 | { | ||
13238 | sa_family_t foo; foo = 1235; | ||
13239 | ; | ||
13240 | return 0; | ||
13241 | } | ||
13242 | _ACEOF | ||
13243 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13244 | ac_cv_have_sa_family_t="yes" | ||
13245 | else | ||
13246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13247 | /* end confdefs.h. */ | ||
13248 | |||
13249 | #include <sys/types.h> | ||
13250 | #include <sys/socket.h> | ||
13251 | #include <netinet/in.h> | ||
13252 | |||
13253 | int | ||
13254 | main () | ||
13255 | { | ||
13256 | sa_family_t foo; foo = 1235; | ||
13257 | ; | ||
13258 | return 0; | ||
13259 | } | ||
13260 | _ACEOF | ||
13261 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13262 | ac_cv_have_sa_family_t="yes" | ||
13263 | else | ||
13264 | ac_cv_have_sa_family_t="no" | ||
13265 | |||
13266 | fi | ||
13267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13268 | |||
13269 | fi | ||
13270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13271 | |||
13272 | fi | ||
13273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5 | ||
13274 | $as_echo "$ac_cv_have_sa_family_t" >&6; } | ||
13275 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
13276 | |||
13277 | $as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h | ||
13278 | |||
13279 | fi | ||
13280 | |||
13281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5 | ||
13282 | $as_echo_n "checking for pid_t... " >&6; } | ||
13283 | if ${ac_cv_have_pid_t+:} false; then : | ||
13284 | $as_echo_n "(cached) " >&6 | ||
13285 | else | ||
13286 | |||
13287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13288 | /* end confdefs.h. */ | ||
13289 | #include <sys/types.h> | ||
13290 | int | ||
13291 | main () | ||
13292 | { | ||
13293 | pid_t foo; foo = 1235; | ||
13294 | ; | ||
13295 | return 0; | ||
13296 | } | ||
13297 | _ACEOF | ||
13298 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13299 | ac_cv_have_pid_t="yes" | ||
13300 | else | ||
13301 | ac_cv_have_pid_t="no" | ||
13302 | |||
13303 | fi | ||
13304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13305 | |||
13306 | fi | ||
13307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5 | ||
13308 | $as_echo "$ac_cv_have_pid_t" >&6; } | ||
13309 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
13310 | |||
13311 | $as_echo "#define HAVE_PID_T 1" >>confdefs.h | ||
13312 | |||
13313 | fi | ||
13314 | |||
13315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5 | ||
13316 | $as_echo_n "checking for mode_t... " >&6; } | ||
13317 | if ${ac_cv_have_mode_t+:} false; then : | ||
13318 | $as_echo_n "(cached) " >&6 | ||
13319 | else | ||
13320 | |||
13321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13322 | /* end confdefs.h. */ | ||
13323 | #include <sys/types.h> | ||
13324 | int | ||
13325 | main () | ||
13326 | { | ||
13327 | mode_t foo; foo = 1235; | ||
13328 | ; | ||
13329 | return 0; | ||
13330 | } | ||
13331 | _ACEOF | ||
13332 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13333 | ac_cv_have_mode_t="yes" | ||
13334 | else | ||
13335 | ac_cv_have_mode_t="no" | ||
13336 | |||
13337 | fi | ||
13338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13339 | |||
13340 | fi | ||
13341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5 | ||
13342 | $as_echo "$ac_cv_have_mode_t" >&6; } | ||
13343 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
13344 | |||
13345 | $as_echo "#define HAVE_MODE_T 1" >>confdefs.h | ||
13346 | |||
13347 | fi | ||
13348 | |||
13349 | |||
13350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 | ||
13351 | $as_echo_n "checking for struct sockaddr_storage... " >&6; } | ||
13352 | if ${ac_cv_have_struct_sockaddr_storage+:} false; then : | ||
13353 | $as_echo_n "(cached) " >&6 | ||
13354 | else | ||
13355 | |||
13356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13357 | /* end confdefs.h. */ | ||
13358 | |||
13359 | #include <sys/types.h> | ||
13360 | #include <sys/socket.h> | ||
13361 | |||
13362 | int | ||
13363 | main () | ||
13364 | { | ||
13365 | struct sockaddr_storage s; | ||
13366 | ; | ||
13367 | return 0; | ||
13368 | } | ||
13369 | _ACEOF | ||
13370 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13371 | ac_cv_have_struct_sockaddr_storage="yes" | ||
13372 | else | ||
13373 | ac_cv_have_struct_sockaddr_storage="no" | ||
13374 | |||
13375 | fi | ||
13376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13377 | |||
13378 | fi | ||
13379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
13380 | $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; } | ||
13381 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
13382 | |||
13383 | $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h | ||
13384 | |||
13385 | fi | ||
13386 | |||
13387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5 | ||
13388 | $as_echo_n "checking for struct sockaddr_in6... " >&6; } | ||
13389 | if ${ac_cv_have_struct_sockaddr_in6+:} false; then : | ||
13390 | $as_echo_n "(cached) " >&6 | ||
13391 | else | ||
13392 | |||
13393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13394 | /* end confdefs.h. */ | ||
13395 | |||
13396 | #include <sys/types.h> | ||
13397 | #include <netinet/in.h> | ||
13398 | |||
13399 | int | ||
13400 | main () | ||
13401 | { | ||
13402 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
13403 | ; | ||
13404 | return 0; | ||
13405 | } | ||
13406 | _ACEOF | ||
13407 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13408 | ac_cv_have_struct_sockaddr_in6="yes" | ||
13409 | else | ||
13410 | ac_cv_have_struct_sockaddr_in6="no" | ||
13411 | |||
13412 | fi | ||
13413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13414 | |||
13415 | fi | ||
13416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
13417 | $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; } | ||
13418 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
13419 | |||
13420 | $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h | ||
13421 | |||
13422 | fi | ||
13423 | |||
13424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5 | ||
13425 | $as_echo_n "checking for struct in6_addr... " >&6; } | ||
13426 | if ${ac_cv_have_struct_in6_addr+:} false; then : | ||
13427 | $as_echo_n "(cached) " >&6 | ||
13428 | else | ||
13429 | |||
13430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13431 | /* end confdefs.h. */ | ||
13432 | |||
13433 | #include <sys/types.h> | ||
13434 | #include <netinet/in.h> | ||
13435 | |||
13436 | int | ||
13437 | main () | ||
13438 | { | ||
13439 | struct in6_addr s; s.s6_addr[0] = 0; | ||
13440 | ; | ||
13441 | return 0; | ||
13442 | } | ||
13443 | _ACEOF | ||
13444 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13445 | ac_cv_have_struct_in6_addr="yes" | ||
13446 | else | ||
13447 | ac_cv_have_struct_in6_addr="no" | ||
13448 | |||
13449 | fi | ||
13450 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13451 | |||
13452 | fi | ||
13453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5 | ||
13454 | $as_echo "$ac_cv_have_struct_in6_addr" >&6; } | ||
13455 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
13456 | |||
13457 | $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h | ||
13458 | |||
13459 | |||
13460 | ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" " | ||
13461 | #ifdef HAVE_SYS_TYPES_H | ||
13462 | #include <sys/types.h> | ||
13463 | #endif | ||
13464 | #include <netinet/in.h> | ||
13465 | |||
13466 | " | ||
13467 | if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then : | ||
13468 | |||
13469 | cat >>confdefs.h <<_ACEOF | ||
13470 | #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 | ||
13471 | _ACEOF | ||
13472 | |||
13473 | |||
13474 | fi | ||
13475 | |||
13476 | fi | ||
13477 | |||
13478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5 | ||
13479 | $as_echo_n "checking for struct addrinfo... " >&6; } | ||
13480 | if ${ac_cv_have_struct_addrinfo+:} false; then : | ||
13481 | $as_echo_n "(cached) " >&6 | ||
13482 | else | ||
13483 | |||
13484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13485 | /* end confdefs.h. */ | ||
13486 | |||
13487 | #include <sys/types.h> | ||
13488 | #include <sys/socket.h> | ||
13489 | #include <netdb.h> | ||
13490 | |||
13491 | int | ||
13492 | main () | ||
13493 | { | ||
13494 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
13495 | ; | ||
13496 | return 0; | ||
13497 | } | ||
13498 | _ACEOF | ||
13499 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13500 | ac_cv_have_struct_addrinfo="yes" | ||
13501 | else | ||
13502 | ac_cv_have_struct_addrinfo="no" | ||
13503 | |||
13504 | fi | ||
13505 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13506 | |||
13507 | fi | ||
13508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5 | ||
13509 | $as_echo "$ac_cv_have_struct_addrinfo" >&6; } | ||
13510 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
13511 | |||
13512 | $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h | ||
13513 | |||
13514 | fi | ||
13515 | |||
13516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 | ||
13517 | $as_echo_n "checking for struct timeval... " >&6; } | ||
13518 | if ${ac_cv_have_struct_timeval+:} false; then : | ||
13519 | $as_echo_n "(cached) " >&6 | ||
13520 | else | ||
13521 | |||
13522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13523 | /* end confdefs.h. */ | ||
13524 | #include <sys/time.h> | ||
13525 | int | ||
13526 | main () | ||
13527 | { | ||
13528 | struct timeval tv; tv.tv_sec = 1; | ||
13529 | ; | ||
13530 | return 0; | ||
13531 | } | ||
13532 | _ACEOF | ||
13533 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13534 | ac_cv_have_struct_timeval="yes" | ||
13535 | else | ||
13536 | ac_cv_have_struct_timeval="no" | ||
13537 | |||
13538 | fi | ||
13539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13540 | |||
13541 | fi | ||
13542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5 | ||
13543 | $as_echo "$ac_cv_have_struct_timeval" >&6; } | ||
13544 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
13545 | |||
13546 | $as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h | ||
13547 | |||
13548 | have_struct_timeval=1 | ||
13549 | fi | ||
13550 | |||
13551 | ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default" | ||
13552 | if test "x$ac_cv_type_struct_timespec" = xyes; then : | ||
13553 | |||
13554 | cat >>confdefs.h <<_ACEOF | ||
13555 | #define HAVE_STRUCT_TIMESPEC 1 | ||
13556 | _ACEOF | ||
13557 | |||
13558 | |||
13559 | fi | ||
13560 | |||
13561 | |||
13562 | # We need int64_t or else certian parts of the compile will fail. | ||
13563 | if test "x$ac_cv_have_int64_t" = "xno" && \ | ||
13564 | test "x$ac_cv_sizeof_long_int" != "x8" && \ | ||
13565 | test "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
13566 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
13567 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
13568 | echo "" | ||
13569 | exit 1; | ||
13570 | else | ||
13571 | if test "$cross_compiling" = yes; then : | ||
13572 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
13573 | $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
13574 | |||
13575 | else | ||
13576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13577 | /* end confdefs.h. */ | ||
13578 | |||
13579 | #include <stdio.h> | ||
13580 | #include <string.h> | ||
13581 | #ifdef HAVE_SNPRINTF | ||
13582 | main() | ||
13583 | { | ||
13584 | char buf[50]; | ||
13585 | char expected_out[50]; | ||
13586 | int mazsize = 50 ; | ||
13587 | #if (SIZEOF_LONG_INT == 8) | ||
13588 | long int num = 0x7fffffffffffffff; | ||
13589 | #else | ||
13590 | long long num = 0x7fffffffffffffffll; | ||
13591 | #endif | ||
13592 | strcpy(expected_out, "9223372036854775807"); | ||
13593 | snprintf(buf, mazsize, "%lld", num); | ||
13594 | if(strcmp(buf, expected_out) != 0) | ||
13595 | exit(1); | ||
13596 | exit(0); | ||
13597 | } | ||
13598 | #else | ||
13599 | main() { exit(0); } | ||
13600 | #endif | ||
13601 | |||
13602 | _ACEOF | ||
13603 | if ac_fn_c_try_run "$LINENO"; then : | ||
13604 | true | ||
13605 | else | ||
13606 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h | ||
13607 | |||
13608 | fi | ||
13609 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
13610 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
13611 | fi | ||
13612 | |||
13613 | fi | ||
13614 | |||
13615 | |||
13616 | # look for field 'ut_host' in header 'utmp.h' | ||
13617 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13618 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
13619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5 | ||
13620 | $as_echo_n "checking for ut_host field in utmp.h... " >&6; } | ||
13621 | if eval \${$ossh_varname+:} false; then : | ||
13622 | $as_echo_n "(cached) " >&6 | ||
13623 | else | ||
13624 | |||
13625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13626 | /* end confdefs.h. */ | ||
13627 | #include <utmp.h> | ||
13628 | |||
13629 | _ACEOF | ||
13630 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13631 | $EGREP "ut_host" >/dev/null 2>&1; then : | ||
13632 | eval "$ossh_varname=yes" | ||
13633 | else | ||
13634 | eval "$ossh_varname=no" | ||
13635 | fi | ||
13636 | rm -f conftest* | ||
13637 | |||
13638 | fi | ||
13639 | |||
13640 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13641 | if test -n "`echo $ossh_varname`"; then | ||
13642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
13643 | $as_echo "$ossh_result" >&6; } | ||
13644 | if test "x$ossh_result" = "xyes"; then | ||
13645 | |||
13646 | $as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h | ||
13647 | |||
13648 | fi | ||
13649 | else | ||
13650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13651 | $as_echo "no" >&6; } | ||
13652 | fi | ||
13653 | |||
13654 | |||
13655 | # look for field 'ut_host' in header 'utmpx.h' | ||
13656 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13657 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
13658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5 | ||
13659 | $as_echo_n "checking for ut_host field in utmpx.h... " >&6; } | ||
13660 | if eval \${$ossh_varname+:} false; then : | ||
13661 | $as_echo_n "(cached) " >&6 | ||
13662 | else | ||
13663 | |||
13664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13665 | /* end confdefs.h. */ | ||
13666 | #include <utmpx.h> | ||
13667 | |||
13668 | _ACEOF | ||
13669 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13670 | $EGREP "ut_host" >/dev/null 2>&1; then : | ||
13671 | eval "$ossh_varname=yes" | ||
13672 | else | ||
13673 | eval "$ossh_varname=no" | ||
13674 | fi | ||
13675 | rm -f conftest* | ||
13676 | |||
13677 | fi | ||
13678 | |||
13679 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13680 | if test -n "`echo $ossh_varname`"; then | ||
13681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
13682 | $as_echo "$ossh_result" >&6; } | ||
13683 | if test "x$ossh_result" = "xyes"; then | ||
13684 | |||
13685 | $as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h | ||
13686 | |||
13687 | fi | ||
13688 | else | ||
13689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13690 | $as_echo "no" >&6; } | ||
13691 | fi | ||
13692 | |||
13693 | |||
13694 | # look for field 'syslen' in header 'utmpx.h' | ||
13695 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13696 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
13697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5 | ||
13698 | $as_echo_n "checking for syslen field in utmpx.h... " >&6; } | ||
13699 | if eval \${$ossh_varname+:} false; then : | ||
13700 | $as_echo_n "(cached) " >&6 | ||
13701 | else | ||
13702 | |||
13703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13704 | /* end confdefs.h. */ | ||
13705 | #include <utmpx.h> | ||
13706 | |||
13707 | _ACEOF | ||
13708 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13709 | $EGREP "syslen" >/dev/null 2>&1; then : | ||
13710 | eval "$ossh_varname=yes" | ||
13711 | else | ||
13712 | eval "$ossh_varname=no" | ||
13713 | fi | ||
13714 | rm -f conftest* | ||
13715 | |||
13716 | fi | ||
13717 | |||
13718 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13719 | if test -n "`echo $ossh_varname`"; then | ||
13720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
13721 | $as_echo "$ossh_result" >&6; } | ||
13722 | if test "x$ossh_result" = "xyes"; then | ||
13723 | |||
13724 | $as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h | ||
13725 | |||
13726 | fi | ||
13727 | else | ||
13728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13729 | $as_echo "no" >&6; } | ||
13730 | fi | ||
13731 | |||
13732 | |||
13733 | # look for field 'ut_pid' in header 'utmp.h' | ||
13734 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13735 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
13736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5 | ||
13737 | $as_echo_n "checking for ut_pid field in utmp.h... " >&6; } | ||
13738 | if eval \${$ossh_varname+:} false; then : | ||
13739 | $as_echo_n "(cached) " >&6 | ||
13740 | else | ||
13741 | |||
13742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13743 | /* end confdefs.h. */ | ||
13744 | #include <utmp.h> | ||
13745 | |||
13746 | _ACEOF | ||
13747 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13748 | $EGREP "ut_pid" >/dev/null 2>&1; then : | ||
13749 | eval "$ossh_varname=yes" | ||
13750 | else | ||
13751 | eval "$ossh_varname=no" | ||
13752 | fi | ||
13753 | rm -f conftest* | ||
13754 | |||
13755 | fi | ||
13756 | |||
13757 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13758 | if test -n "`echo $ossh_varname`"; then | ||
13759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
13760 | $as_echo "$ossh_result" >&6; } | ||
13761 | if test "x$ossh_result" = "xyes"; then | ||
13762 | |||
13763 | $as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h | ||
13764 | |||
13765 | fi | ||
13766 | else | ||
13767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13768 | $as_echo "no" >&6; } | ||
13769 | fi | ||
13770 | |||
13771 | |||
13772 | # look for field 'ut_type' in header 'utmp.h' | ||
13773 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13774 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
13775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5 | ||
13776 | $as_echo_n "checking for ut_type field in utmp.h... " >&6; } | ||
13777 | if eval \${$ossh_varname+:} false; then : | ||
13778 | $as_echo_n "(cached) " >&6 | ||
13779 | else | ||
13780 | |||
13781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13782 | /* end confdefs.h. */ | ||
13783 | #include <utmp.h> | ||
13784 | |||
13785 | _ACEOF | ||
13786 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13787 | $EGREP "ut_type" >/dev/null 2>&1; then : | ||
13788 | eval "$ossh_varname=yes" | ||
13789 | else | ||
13790 | eval "$ossh_varname=no" | ||
13791 | fi | ||
13792 | rm -f conftest* | ||
13793 | |||
13794 | fi | ||
13795 | |||
13796 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13797 | if test -n "`echo $ossh_varname`"; then | ||
13798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
13799 | $as_echo "$ossh_result" >&6; } | ||
13800 | if test "x$ossh_result" = "xyes"; then | ||
13801 | |||
13802 | $as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h | ||
13803 | |||
13804 | fi | ||
13805 | else | ||
13806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13807 | $as_echo "no" >&6; } | ||
13808 | fi | ||
13809 | |||
13810 | |||
13811 | # look for field 'ut_type' in header 'utmpx.h' | ||
13812 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13813 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
13814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5 | ||
13815 | $as_echo_n "checking for ut_type field in utmpx.h... " >&6; } | ||
13816 | if eval \${$ossh_varname+:} false; then : | ||
13817 | $as_echo_n "(cached) " >&6 | ||
13818 | else | ||
13819 | |||
13820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13821 | /* end confdefs.h. */ | ||
13822 | #include <utmpx.h> | ||
13823 | |||
13824 | _ACEOF | ||
13825 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13826 | $EGREP "ut_type" >/dev/null 2>&1; then : | ||
13827 | eval "$ossh_varname=yes" | ||
13828 | else | ||
13829 | eval "$ossh_varname=no" | ||
13830 | fi | ||
13831 | rm -f conftest* | ||
13832 | |||
13833 | fi | ||
13834 | |||
13835 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13836 | if test -n "`echo $ossh_varname`"; then | ||
13837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
13838 | $as_echo "$ossh_result" >&6; } | ||
13839 | if test "x$ossh_result" = "xyes"; then | ||
13840 | |||
13841 | $as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h | ||
13842 | |||
13843 | fi | ||
13844 | else | ||
13845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13846 | $as_echo "no" >&6; } | ||
13847 | fi | ||
13848 | |||
13849 | |||
13850 | # look for field 'ut_tv' in header 'utmp.h' | ||
13851 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13852 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
13853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5 | ||
13854 | $as_echo_n "checking for ut_tv field in utmp.h... " >&6; } | ||
13855 | if eval \${$ossh_varname+:} false; then : | ||
13856 | $as_echo_n "(cached) " >&6 | ||
13857 | else | ||
13858 | |||
13859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13860 | /* end confdefs.h. */ | ||
13861 | #include <utmp.h> | ||
13862 | |||
13863 | _ACEOF | ||
13864 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13865 | $EGREP "ut_tv" >/dev/null 2>&1; then : | ||
13866 | eval "$ossh_varname=yes" | ||
13867 | else | ||
13868 | eval "$ossh_varname=no" | ||
13869 | fi | ||
13870 | rm -f conftest* | ||
13871 | |||
13872 | fi | ||
13873 | |||
13874 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13875 | if test -n "`echo $ossh_varname`"; then | ||
13876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
13877 | $as_echo "$ossh_result" >&6; } | ||
13878 | if test "x$ossh_result" = "xyes"; then | ||
13879 | |||
13880 | $as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h | ||
13881 | |||
13882 | fi | ||
13883 | else | ||
13884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13885 | $as_echo "no" >&6; } | ||
13886 | fi | ||
13887 | |||
13888 | |||
13889 | # look for field 'ut_id' in header 'utmp.h' | ||
13890 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13891 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
13892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5 | ||
13893 | $as_echo_n "checking for ut_id field in utmp.h... " >&6; } | ||
13894 | if eval \${$ossh_varname+:} false; then : | ||
13895 | $as_echo_n "(cached) " >&6 | ||
13896 | else | ||
13897 | |||
13898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13899 | /* end confdefs.h. */ | ||
13900 | #include <utmp.h> | ||
13901 | |||
13902 | _ACEOF | ||
13903 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13904 | $EGREP "ut_id" >/dev/null 2>&1; then : | ||
13905 | eval "$ossh_varname=yes" | ||
13906 | else | ||
13907 | eval "$ossh_varname=no" | ||
13908 | fi | ||
13909 | rm -f conftest* | ||
13910 | |||
13911 | fi | ||
13912 | |||
13913 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13914 | if test -n "`echo $ossh_varname`"; then | ||
13915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
13916 | $as_echo "$ossh_result" >&6; } | ||
13917 | if test "x$ossh_result" = "xyes"; then | ||
13918 | |||
13919 | $as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h | ||
13920 | |||
13921 | fi | ||
13922 | else | ||
13923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13924 | $as_echo "no" >&6; } | ||
13925 | fi | ||
13926 | |||
13927 | |||
13928 | # look for field 'ut_id' in header 'utmpx.h' | ||
13929 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
13930 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
13931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5 | ||
13932 | $as_echo_n "checking for ut_id field in utmpx.h... " >&6; } | ||
13933 | if eval \${$ossh_varname+:} false; then : | ||
13934 | $as_echo_n "(cached) " >&6 | ||
13935 | else | ||
13936 | |||
13937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13938 | /* end confdefs.h. */ | ||
13939 | #include <utmpx.h> | ||
13940 | |||
13941 | _ACEOF | ||
13942 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13943 | $EGREP "ut_id" >/dev/null 2>&1; then : | ||
13944 | eval "$ossh_varname=yes" | ||
13945 | else | ||
13946 | eval "$ossh_varname=no" | ||
13947 | fi | ||
13948 | rm -f conftest* | ||
13949 | |||
13950 | fi | ||
13951 | |||
13952 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13953 | if test -n "`echo $ossh_varname`"; then | ||
13954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
13955 | $as_echo "$ossh_result" >&6; } | ||
13956 | if test "x$ossh_result" = "xyes"; then | ||
13957 | |||
13958 | $as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h | ||
13959 | |||
13960 | fi | ||
13961 | else | ||
13962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13963 | $as_echo "no" >&6; } | ||
13964 | fi | ||
13965 | |||
13966 | |||
13967 | # look for field 'ut_addr' in header 'utmp.h' | ||
13968 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
13969 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
13970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5 | ||
13971 | $as_echo_n "checking for ut_addr field in utmp.h... " >&6; } | ||
13972 | if eval \${$ossh_varname+:} false; then : | ||
13973 | $as_echo_n "(cached) " >&6 | ||
13974 | else | ||
13975 | |||
13976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13977 | /* end confdefs.h. */ | ||
13978 | #include <utmp.h> | ||
13979 | |||
13980 | _ACEOF | ||
13981 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
13982 | $EGREP "ut_addr" >/dev/null 2>&1; then : | ||
13983 | eval "$ossh_varname=yes" | ||
13984 | else | ||
13985 | eval "$ossh_varname=no" | ||
13986 | fi | ||
13987 | rm -f conftest* | ||
13988 | |||
13989 | fi | ||
13990 | |||
13991 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
13992 | if test -n "`echo $ossh_varname`"; then | ||
13993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
13994 | $as_echo "$ossh_result" >&6; } | ||
13995 | if test "x$ossh_result" = "xyes"; then | ||
13996 | |||
13997 | $as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h | ||
13998 | |||
13999 | fi | ||
14000 | else | ||
14001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14002 | $as_echo "no" >&6; } | ||
14003 | fi | ||
14004 | |||
14005 | |||
14006 | # look for field 'ut_addr' in header 'utmpx.h' | ||
14007 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
14008 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
14009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5 | ||
14010 | $as_echo_n "checking for ut_addr field in utmpx.h... " >&6; } | ||
14011 | if eval \${$ossh_varname+:} false; then : | ||
14012 | $as_echo_n "(cached) " >&6 | ||
14013 | else | ||
14014 | |||
14015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14016 | /* end confdefs.h. */ | ||
14017 | #include <utmpx.h> | ||
14018 | |||
14019 | _ACEOF | ||
14020 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14021 | $EGREP "ut_addr" >/dev/null 2>&1; then : | ||
14022 | eval "$ossh_varname=yes" | ||
14023 | else | ||
14024 | eval "$ossh_varname=no" | ||
14025 | fi | ||
14026 | rm -f conftest* | ||
14027 | |||
14028 | fi | ||
14029 | |||
14030 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14031 | if test -n "`echo $ossh_varname`"; then | ||
14032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
14033 | $as_echo "$ossh_result" >&6; } | ||
14034 | if test "x$ossh_result" = "xyes"; then | ||
14035 | |||
14036 | $as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h | ||
14037 | |||
14038 | fi | ||
14039 | else | ||
14040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14041 | $as_echo "no" >&6; } | ||
14042 | fi | ||
14043 | |||
14044 | |||
14045 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
14046 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
14047 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
14048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5 | ||
14049 | $as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; } | ||
14050 | if eval \${$ossh_varname+:} false; then : | ||
14051 | $as_echo_n "(cached) " >&6 | ||
14052 | else | ||
14053 | |||
14054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14055 | /* end confdefs.h. */ | ||
14056 | #include <utmp.h> | ||
14057 | |||
14058 | _ACEOF | ||
14059 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14060 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then : | ||
14061 | eval "$ossh_varname=yes" | ||
14062 | else | ||
14063 | eval "$ossh_varname=no" | ||
14064 | fi | ||
14065 | rm -f conftest* | ||
14066 | |||
14067 | fi | ||
14068 | |||
14069 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14070 | if test -n "`echo $ossh_varname`"; then | ||
14071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
14072 | $as_echo "$ossh_result" >&6; } | ||
14073 | if test "x$ossh_result" = "xyes"; then | ||
14074 | |||
14075 | $as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h | ||
14076 | |||
14077 | fi | ||
14078 | else | ||
14079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14080 | $as_echo "no" >&6; } | ||
14081 | fi | ||
14082 | |||
14083 | |||
14084 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
14085 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
14086 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
14087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
14088 | $as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; } | ||
14089 | if eval \${$ossh_varname+:} false; then : | ||
14090 | $as_echo_n "(cached) " >&6 | ||
14091 | else | ||
14092 | |||
14093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14094 | /* end confdefs.h. */ | ||
14095 | #include <utmpx.h> | ||
14096 | |||
14097 | _ACEOF | ||
14098 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14099 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then : | ||
14100 | eval "$ossh_varname=yes" | ||
14101 | else | ||
14102 | eval "$ossh_varname=no" | ||
14103 | fi | ||
14104 | rm -f conftest* | ||
14105 | |||
14106 | fi | ||
14107 | |||
14108 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14109 | if test -n "`echo $ossh_varname`"; then | ||
14110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
14111 | $as_echo "$ossh_result" >&6; } | ||
14112 | if test "x$ossh_result" = "xyes"; then | ||
14113 | |||
14114 | $as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h | ||
14115 | |||
14116 | fi | ||
14117 | else | ||
14118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14119 | $as_echo "no" >&6; } | ||
14120 | fi | ||
14121 | |||
14122 | |||
14123 | # look for field 'ut_exit' in header 'utmp.h' | ||
14124 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
14125 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
14126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5 | ||
14127 | $as_echo_n "checking for ut_exit field in utmp.h... " >&6; } | ||
14128 | if eval \${$ossh_varname+:} false; then : | ||
14129 | $as_echo_n "(cached) " >&6 | ||
14130 | else | ||
14131 | |||
14132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14133 | /* end confdefs.h. */ | ||
14134 | #include <utmp.h> | ||
14135 | |||
14136 | _ACEOF | ||
14137 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14138 | $EGREP "ut_exit" >/dev/null 2>&1; then : | ||
14139 | eval "$ossh_varname=yes" | ||
14140 | else | ||
14141 | eval "$ossh_varname=no" | ||
14142 | fi | ||
14143 | rm -f conftest* | ||
14144 | |||
14145 | fi | ||
14146 | |||
14147 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14148 | if test -n "`echo $ossh_varname`"; then | ||
14149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
14150 | $as_echo "$ossh_result" >&6; } | ||
14151 | if test "x$ossh_result" = "xyes"; then | ||
14152 | |||
14153 | $as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h | ||
14154 | |||
14155 | fi | ||
14156 | else | ||
14157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14158 | $as_echo "no" >&6; } | ||
14159 | fi | ||
14160 | |||
14161 | |||
14162 | # look for field 'ut_time' in header 'utmp.h' | ||
14163 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
14164 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
14165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5 | ||
14166 | $as_echo_n "checking for ut_time field in utmp.h... " >&6; } | ||
14167 | if eval \${$ossh_varname+:} false; then : | ||
14168 | $as_echo_n "(cached) " >&6 | ||
14169 | else | ||
14170 | |||
14171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14172 | /* end confdefs.h. */ | ||
14173 | #include <utmp.h> | ||
14174 | |||
14175 | _ACEOF | ||
14176 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14177 | $EGREP "ut_time" >/dev/null 2>&1; then : | ||
14178 | eval "$ossh_varname=yes" | ||
14179 | else | ||
14180 | eval "$ossh_varname=no" | ||
14181 | fi | ||
14182 | rm -f conftest* | ||
14183 | |||
14184 | fi | ||
14185 | |||
14186 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14187 | if test -n "`echo $ossh_varname`"; then | ||
14188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
14189 | $as_echo "$ossh_result" >&6; } | ||
14190 | if test "x$ossh_result" = "xyes"; then | ||
14191 | |||
14192 | $as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h | ||
14193 | |||
14194 | fi | ||
14195 | else | ||
14196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14197 | $as_echo "no" >&6; } | ||
14198 | fi | ||
14199 | |||
14200 | |||
14201 | # look for field 'ut_time' in header 'utmpx.h' | ||
14202 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
14203 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
14204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5 | ||
14205 | $as_echo_n "checking for ut_time field in utmpx.h... " >&6; } | ||
14206 | if eval \${$ossh_varname+:} false; then : | ||
14207 | $as_echo_n "(cached) " >&6 | ||
14208 | else | ||
14209 | |||
14210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14211 | /* end confdefs.h. */ | ||
14212 | #include <utmpx.h> | ||
14213 | |||
14214 | _ACEOF | ||
14215 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14216 | $EGREP "ut_time" >/dev/null 2>&1; then : | ||
14217 | eval "$ossh_varname=yes" | ||
14218 | else | ||
14219 | eval "$ossh_varname=no" | ||
14220 | fi | ||
14221 | rm -f conftest* | ||
14222 | |||
14223 | fi | ||
14224 | |||
14225 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14226 | if test -n "`echo $ossh_varname`"; then | ||
14227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
14228 | $as_echo "$ossh_result" >&6; } | ||
14229 | if test "x$ossh_result" = "xyes"; then | ||
14230 | |||
14231 | $as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h | ||
14232 | |||
14233 | fi | ||
14234 | else | ||
14235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14236 | $as_echo "no" >&6; } | ||
14237 | fi | ||
14238 | |||
14239 | |||
14240 | # look for field 'ut_tv' in header 'utmpx.h' | ||
14241 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
14242 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
14243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5 | ||
14244 | $as_echo_n "checking for ut_tv field in utmpx.h... " >&6; } | ||
14245 | if eval \${$ossh_varname+:} false; then : | ||
14246 | $as_echo_n "(cached) " >&6 | ||
14247 | else | ||
14248 | |||
14249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14250 | /* end confdefs.h. */ | ||
14251 | #include <utmpx.h> | ||
14252 | |||
14253 | _ACEOF | ||
14254 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14255 | $EGREP "ut_tv" >/dev/null 2>&1; then : | ||
14256 | eval "$ossh_varname=yes" | ||
14257 | else | ||
14258 | eval "$ossh_varname=no" | ||
14259 | fi | ||
14260 | rm -f conftest* | ||
14261 | |||
14262 | fi | ||
14263 | |||
14264 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14265 | if test -n "`echo $ossh_varname`"; then | ||
14266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
14267 | $as_echo "$ossh_result" >&6; } | ||
14268 | if test "x$ossh_result" = "xyes"; then | ||
14269 | |||
14270 | $as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h | ||
14271 | |||
14272 | fi | ||
14273 | else | ||
14274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14275 | $as_echo "no" >&6; } | ||
14276 | fi | ||
14277 | |||
14278 | |||
14279 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | ||
14280 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | ||
14281 | |||
14282 | cat >>confdefs.h <<_ACEOF | ||
14283 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
14284 | _ACEOF | ||
14285 | |||
14286 | |||
14287 | fi | ||
14288 | |||
14289 | ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" " | ||
14290 | #include <stdio.h> | ||
14291 | #if HAVE_SYS_TYPES_H | ||
14292 | # include <sys/types.h> | ||
14293 | #endif | ||
14294 | #include <netinet/in.h> | ||
14295 | #include <arpa/nameser.h> | ||
14296 | #include <resolv.h> | ||
14297 | |||
14298 | " | ||
14299 | if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then : | ||
14300 | |||
14301 | else | ||
14302 | |||
14303 | $as_echo "#define __res_state state" >>confdefs.h | ||
14304 | |||
14305 | fi | ||
14306 | |||
14307 | |||
14308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5 | ||
14309 | $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; } | ||
14310 | if ${ac_cv_have_ss_family_in_struct_ss+:} false; then : | ||
14311 | $as_echo_n "(cached) " >&6 | ||
14312 | else | ||
14313 | |||
14314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14315 | /* end confdefs.h. */ | ||
14316 | |||
14317 | #include <sys/types.h> | ||
14318 | #include <sys/socket.h> | ||
14319 | |||
14320 | int | ||
14321 | main () | ||
14322 | { | ||
14323 | struct sockaddr_storage s; s.ss_family = 1; | ||
14324 | ; | ||
14325 | return 0; | ||
14326 | } | ||
14327 | _ACEOF | ||
14328 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14329 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
14330 | else | ||
14331 | ac_cv_have_ss_family_in_struct_ss="no" | ||
14332 | fi | ||
14333 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14334 | |||
14335 | fi | ||
14336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
14337 | $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; } | ||
14338 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
14339 | |||
14340 | $as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h | ||
14341 | |||
14342 | fi | ||
14343 | |||
14344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
14345 | $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; } | ||
14346 | if ${ac_cv_have___ss_family_in_struct_ss+:} false; then : | ||
14347 | $as_echo_n "(cached) " >&6 | ||
14348 | else | ||
14349 | |||
14350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14351 | /* end confdefs.h. */ | ||
14352 | |||
14353 | #include <sys/types.h> | ||
14354 | #include <sys/socket.h> | ||
14355 | |||
14356 | int | ||
14357 | main () | ||
14358 | { | ||
14359 | struct sockaddr_storage s; s.__ss_family = 1; | ||
14360 | ; | ||
14361 | return 0; | ||
14362 | } | ||
14363 | _ACEOF | ||
14364 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14365 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
14366 | else | ||
14367 | ac_cv_have___ss_family_in_struct_ss="no" | ||
14368 | |||
14369 | fi | ||
14370 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14371 | |||
14372 | fi | ||
14373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
14374 | $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; } | ||
14375 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
14376 | |||
14377 | $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h | ||
14378 | |||
14379 | fi | ||
14380 | |||
14381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_class field in struct passwd" >&5 | ||
14382 | $as_echo_n "checking for pw_class field in struct passwd... " >&6; } | ||
14383 | if ${ac_cv_have_pw_class_in_struct_passwd+:} false; then : | ||
14384 | $as_echo_n "(cached) " >&6 | ||
14385 | else | ||
14386 | |||
14387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14388 | /* end confdefs.h. */ | ||
14389 | #include <pwd.h> | ||
14390 | int | ||
14391 | main () | ||
14392 | { | ||
14393 | struct passwd p; p.pw_class = 0; | ||
14394 | ; | ||
14395 | return 0; | ||
14396 | } | ||
14397 | _ACEOF | ||
14398 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14399 | ac_cv_have_pw_class_in_struct_passwd="yes" | ||
14400 | else | ||
14401 | ac_cv_have_pw_class_in_struct_passwd="no" | ||
14402 | |||
14403 | fi | ||
14404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14405 | |||
14406 | fi | ||
14407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_class_in_struct_passwd" >&5 | ||
14408 | $as_echo "$ac_cv_have_pw_class_in_struct_passwd" >&6; } | ||
14409 | if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then | ||
14410 | |||
14411 | $as_echo "#define HAVE_PW_CLASS_IN_PASSWD 1" >>confdefs.h | ||
14412 | |||
14413 | fi | ||
14414 | |||
14415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_expire field in struct passwd" >&5 | ||
14416 | $as_echo_n "checking for pw_expire field in struct passwd... " >&6; } | ||
14417 | if ${ac_cv_have_pw_expire_in_struct_passwd+:} false; then : | ||
14418 | $as_echo_n "(cached) " >&6 | ||
14419 | else | ||
14420 | |||
14421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14422 | /* end confdefs.h. */ | ||
14423 | #include <pwd.h> | ||
14424 | int | ||
14425 | main () | ||
14426 | { | ||
14427 | struct passwd p; p.pw_expire = 0; | ||
14428 | ; | ||
14429 | return 0; | ||
14430 | } | ||
14431 | _ACEOF | ||
14432 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14433 | ac_cv_have_pw_expire_in_struct_passwd="yes" | ||
14434 | else | ||
14435 | ac_cv_have_pw_expire_in_struct_passwd="no" | ||
14436 | |||
14437 | fi | ||
14438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14439 | |||
14440 | fi | ||
14441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5 | ||
14442 | $as_echo "$ac_cv_have_pw_expire_in_struct_passwd" >&6; } | ||
14443 | if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then | ||
14444 | |||
14445 | $as_echo "#define HAVE_PW_EXPIRE_IN_PASSWD 1" >>confdefs.h | ||
14446 | |||
14447 | fi | ||
14448 | |||
14449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_change field in struct passwd" >&5 | ||
14450 | $as_echo_n "checking for pw_change field in struct passwd... " >&6; } | ||
14451 | if ${ac_cv_have_pw_change_in_struct_passwd+:} false; then : | ||
14452 | $as_echo_n "(cached) " >&6 | ||
14453 | else | ||
14454 | |||
14455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14456 | /* end confdefs.h. */ | ||
14457 | #include <pwd.h> | ||
14458 | int | ||
14459 | main () | ||
14460 | { | ||
14461 | struct passwd p; p.pw_change = 0; | ||
14462 | ; | ||
14463 | return 0; | ||
14464 | } | ||
14465 | _ACEOF | ||
14466 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14467 | ac_cv_have_pw_change_in_struct_passwd="yes" | ||
14468 | else | ||
14469 | ac_cv_have_pw_change_in_struct_passwd="no" | ||
14470 | |||
14471 | fi | ||
14472 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14473 | |||
14474 | fi | ||
14475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_change_in_struct_passwd" >&5 | ||
14476 | $as_echo "$ac_cv_have_pw_change_in_struct_passwd" >&6; } | ||
14477 | if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then | ||
14478 | |||
14479 | $as_echo "#define HAVE_PW_CHANGE_IN_PASSWD 1" >>confdefs.h | ||
14480 | |||
14481 | fi | ||
14482 | |||
14483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5 | ||
14484 | $as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; } | ||
14485 | if ${ac_cv_have_accrights_in_msghdr+:} false; then : | ||
14486 | $as_echo_n "(cached) " >&6 | ||
14487 | else | ||
14488 | |||
14489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14490 | /* end confdefs.h. */ | ||
14491 | |||
14492 | #include <sys/types.h> | ||
14493 | #include <sys/socket.h> | ||
14494 | #include <sys/uio.h> | ||
14495 | |||
14496 | int | ||
14497 | main () | ||
14498 | { | ||
14499 | |||
14500 | #ifdef msg_accrights | ||
14501 | #error "msg_accrights is a macro" | ||
14502 | exit(1); | ||
14503 | #endif | ||
14504 | struct msghdr m; | ||
14505 | m.msg_accrights = 0; | ||
14506 | exit(0); | ||
14507 | |||
14508 | ; | ||
14509 | return 0; | ||
14510 | } | ||
14511 | _ACEOF | ||
14512 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14513 | ac_cv_have_accrights_in_msghdr="yes" | ||
14514 | else | ||
14515 | ac_cv_have_accrights_in_msghdr="no" | ||
14516 | |||
14517 | fi | ||
14518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14519 | |||
14520 | fi | ||
14521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
14522 | $as_echo "$ac_cv_have_accrights_in_msghdr" >&6; } | ||
14523 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
14524 | |||
14525 | $as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h | ||
14526 | |||
14527 | fi | ||
14528 | |||
14529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5 | ||
14530 | $as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; } | ||
14531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14532 | /* end confdefs.h. */ | ||
14533 | |||
14534 | #include <sys/param.h> | ||
14535 | #include <sys/stat.h> | ||
14536 | #ifdef HAVE_SYS_TIME_H | ||
14537 | # include <sys/time.h> | ||
14538 | #endif | ||
14539 | #ifdef HAVE_SYS_MOUNT_H | ||
14540 | #include <sys/mount.h> | ||
14541 | #endif | ||
14542 | #ifdef HAVE_SYS_STATVFS_H | ||
14543 | #include <sys/statvfs.h> | ||
14544 | #endif | ||
14545 | |||
14546 | int | ||
14547 | main () | ||
14548 | { | ||
14549 | struct statvfs s; s.f_fsid = 0; | ||
14550 | ; | ||
14551 | return 0; | ||
14552 | } | ||
14553 | _ACEOF | ||
14554 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14556 | $as_echo "yes" >&6; } | ||
14557 | else | ||
14558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14559 | $as_echo "no" >&6; } | ||
14560 | |||
14561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5 | ||
14562 | $as_echo_n "checking if fsid_t has member val... " >&6; } | ||
14563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14564 | /* end confdefs.h. */ | ||
14565 | |||
14566 | #include <sys/types.h> | ||
14567 | #include <sys/statvfs.h> | ||
14568 | |||
14569 | int | ||
14570 | main () | ||
14571 | { | ||
14572 | fsid_t t; t.val[0] = 0; | ||
14573 | ; | ||
14574 | return 0; | ||
14575 | } | ||
14576 | _ACEOF | ||
14577 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14579 | $as_echo "yes" >&6; } | ||
14580 | |||
14581 | $as_echo "#define FSID_HAS_VAL 1" >>confdefs.h | ||
14582 | |||
14583 | else | ||
14584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14585 | $as_echo "no" >&6; } | ||
14586 | fi | ||
14587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14588 | |||
14589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5 | ||
14590 | $as_echo_n "checking if f_fsid has member __val... " >&6; } | ||
14591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14592 | /* end confdefs.h. */ | ||
14593 | |||
14594 | #include <sys/types.h> | ||
14595 | #include <sys/statvfs.h> | ||
14596 | |||
14597 | int | ||
14598 | main () | ||
14599 | { | ||
14600 | fsid_t t; t.__val[0] = 0; | ||
14601 | ; | ||
14602 | return 0; | ||
14603 | } | ||
14604 | _ACEOF | ||
14605 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14607 | $as_echo "yes" >&6; } | ||
14608 | |||
14609 | $as_echo "#define FSID_HAS___VAL 1" >>confdefs.h | ||
14610 | |||
14611 | else | ||
14612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14613 | $as_echo "no" >&6; } | ||
14614 | fi | ||
14615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14616 | |||
14617 | fi | ||
14618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14619 | |||
14620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5 | ||
14621 | $as_echo_n "checking for msg_control field in struct msghdr... " >&6; } | ||
14622 | if ${ac_cv_have_control_in_msghdr+:} false; then : | ||
14623 | $as_echo_n "(cached) " >&6 | ||
14624 | else | ||
14625 | |||
14626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14627 | /* end confdefs.h. */ | ||
14628 | |||
14629 | #include <sys/types.h> | ||
14630 | #include <sys/socket.h> | ||
14631 | #include <sys/uio.h> | ||
14632 | |||
14633 | int | ||
14634 | main () | ||
14635 | { | ||
14636 | |||
14637 | #ifdef msg_control | ||
14638 | #error "msg_control is a macro" | ||
14639 | exit(1); | ||
14640 | #endif | ||
14641 | struct msghdr m; | ||
14642 | m.msg_control = 0; | ||
14643 | exit(0); | ||
14644 | |||
14645 | ; | ||
14646 | return 0; | ||
14647 | } | ||
14648 | _ACEOF | ||
14649 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14650 | ac_cv_have_control_in_msghdr="yes" | ||
14651 | else | ||
14652 | ac_cv_have_control_in_msghdr="no" | ||
14653 | |||
14654 | fi | ||
14655 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14656 | |||
14657 | fi | ||
14658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5 | ||
14659 | $as_echo "$ac_cv_have_control_in_msghdr" >&6; } | ||
14660 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
14661 | |||
14662 | $as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h | ||
14663 | |||
14664 | fi | ||
14665 | |||
14666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5 | ||
14667 | $as_echo_n "checking if libc defines __progname... " >&6; } | ||
14668 | if ${ac_cv_libc_defines___progname+:} false; then : | ||
14669 | $as_echo_n "(cached) " >&6 | ||
14670 | else | ||
14671 | |||
14672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14673 | /* end confdefs.h. */ | ||
14674 | |||
14675 | int | ||
14676 | main () | ||
14677 | { | ||
14678 | extern char *__progname; printf("%s", __progname); | ||
14679 | ; | ||
14680 | return 0; | ||
14681 | } | ||
14682 | _ACEOF | ||
14683 | if ac_fn_c_try_link "$LINENO"; then : | ||
14684 | ac_cv_libc_defines___progname="yes" | ||
14685 | else | ||
14686 | ac_cv_libc_defines___progname="no" | ||
14687 | |||
14688 | fi | ||
14689 | rm -f core conftest.err conftest.$ac_objext \ | ||
14690 | conftest$ac_exeext conftest.$ac_ext | ||
14691 | |||
14692 | fi | ||
14693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5 | ||
14694 | $as_echo "$ac_cv_libc_defines___progname" >&6; } | ||
14695 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
14696 | |||
14697 | $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h | ||
14698 | |||
14699 | fi | ||
14700 | |||
14701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5 | ||
14702 | $as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; } | ||
14703 | if ${ac_cv_cc_implements___FUNCTION__+:} false; then : | ||
14704 | $as_echo_n "(cached) " >&6 | ||
14705 | else | ||
14706 | |||
14707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14708 | /* end confdefs.h. */ | ||
14709 | #include <stdio.h> | ||
14710 | int | ||
14711 | main () | ||
14712 | { | ||
14713 | printf("%s", __FUNCTION__); | ||
14714 | ; | ||
14715 | return 0; | ||
14716 | } | ||
14717 | _ACEOF | ||
14718 | if ac_fn_c_try_link "$LINENO"; then : | ||
14719 | ac_cv_cc_implements___FUNCTION__="yes" | ||
14720 | else | ||
14721 | ac_cv_cc_implements___FUNCTION__="no" | ||
14722 | |||
14723 | fi | ||
14724 | rm -f core conftest.err conftest.$ac_objext \ | ||
14725 | conftest$ac_exeext conftest.$ac_ext | ||
14726 | |||
14727 | fi | ||
14728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
14729 | $as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; } | ||
14730 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
14731 | |||
14732 | $as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h | ||
14733 | |||
14734 | fi | ||
14735 | |||
14736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5 | ||
14737 | $as_echo_n "checking whether $CC implements __func__... " >&6; } | ||
14738 | if ${ac_cv_cc_implements___func__+:} false; then : | ||
14739 | $as_echo_n "(cached) " >&6 | ||
14740 | else | ||
14741 | |||
14742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14743 | /* end confdefs.h. */ | ||
14744 | #include <stdio.h> | ||
14745 | int | ||
14746 | main () | ||
14747 | { | ||
14748 | printf("%s", __func__); | ||
14749 | ; | ||
14750 | return 0; | ||
14751 | } | ||
14752 | _ACEOF | ||
14753 | if ac_fn_c_try_link "$LINENO"; then : | ||
14754 | ac_cv_cc_implements___func__="yes" | ||
14755 | else | ||
14756 | ac_cv_cc_implements___func__="no" | ||
14757 | |||
14758 | fi | ||
14759 | rm -f core conftest.err conftest.$ac_objext \ | ||
14760 | conftest$ac_exeext conftest.$ac_ext | ||
14761 | |||
14762 | fi | ||
14763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5 | ||
14764 | $as_echo "$ac_cv_cc_implements___func__" >&6; } | ||
14765 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
14766 | |||
14767 | $as_echo "#define HAVE___func__ 1" >>confdefs.h | ||
14768 | |||
14769 | fi | ||
14770 | |||
14771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5 | ||
14772 | $as_echo_n "checking whether va_copy exists... " >&6; } | ||
14773 | if ${ac_cv_have_va_copy+:} false; then : | ||
14774 | $as_echo_n "(cached) " >&6 | ||
14775 | else | ||
14776 | |||
14777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14778 | /* end confdefs.h. */ | ||
14779 | |||
14780 | #include <stdarg.h> | ||
14781 | va_list x,y; | ||
14782 | |||
14783 | int | ||
14784 | main () | ||
14785 | { | ||
14786 | va_copy(x,y); | ||
14787 | ; | ||
14788 | return 0; | ||
14789 | } | ||
14790 | _ACEOF | ||
14791 | if ac_fn_c_try_link "$LINENO"; then : | ||
14792 | ac_cv_have_va_copy="yes" | ||
14793 | else | ||
14794 | ac_cv_have_va_copy="no" | ||
14795 | |||
14796 | fi | ||
14797 | rm -f core conftest.err conftest.$ac_objext \ | ||
14798 | conftest$ac_exeext conftest.$ac_ext | ||
14799 | |||
14800 | fi | ||
14801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5 | ||
14802 | $as_echo "$ac_cv_have_va_copy" >&6; } | ||
14803 | if test "x$ac_cv_have_va_copy" = "xyes" ; then | ||
14804 | |||
14805 | $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h | ||
14806 | |||
14807 | fi | ||
14808 | |||
14809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5 | ||
14810 | $as_echo_n "checking whether __va_copy exists... " >&6; } | ||
14811 | if ${ac_cv_have___va_copy+:} false; then : | ||
14812 | $as_echo_n "(cached) " >&6 | ||
14813 | else | ||
14814 | |||
14815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14816 | /* end confdefs.h. */ | ||
14817 | |||
14818 | #include <stdarg.h> | ||
14819 | va_list x,y; | ||
14820 | |||
14821 | int | ||
14822 | main () | ||
14823 | { | ||
14824 | __va_copy(x,y); | ||
14825 | ; | ||
14826 | return 0; | ||
14827 | } | ||
14828 | _ACEOF | ||
14829 | if ac_fn_c_try_link "$LINENO"; then : | ||
14830 | ac_cv_have___va_copy="yes" | ||
14831 | else | ||
14832 | ac_cv_have___va_copy="no" | ||
14833 | |||
14834 | fi | ||
14835 | rm -f core conftest.err conftest.$ac_objext \ | ||
14836 | conftest$ac_exeext conftest.$ac_ext | ||
14837 | |||
14838 | fi | ||
14839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5 | ||
14840 | $as_echo "$ac_cv_have___va_copy" >&6; } | ||
14841 | if test "x$ac_cv_have___va_copy" = "xyes" ; then | ||
14842 | |||
14843 | $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h | ||
14844 | |||
14845 | fi | ||
14846 | |||
14847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5 | ||
14848 | $as_echo_n "checking whether getopt has optreset support... " >&6; } | ||
14849 | if ${ac_cv_have_getopt_optreset+:} false; then : | ||
14850 | $as_echo_n "(cached) " >&6 | ||
14851 | else | ||
14852 | |||
14853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14854 | /* end confdefs.h. */ | ||
14855 | #include <getopt.h> | ||
14856 | int | ||
14857 | main () | ||
14858 | { | ||
14859 | extern int optreset; optreset = 0; | ||
14860 | ; | ||
14861 | return 0; | ||
14862 | } | ||
14863 | _ACEOF | ||
14864 | if ac_fn_c_try_link "$LINENO"; then : | ||
14865 | ac_cv_have_getopt_optreset="yes" | ||
14866 | else | ||
14867 | ac_cv_have_getopt_optreset="no" | ||
14868 | |||
14869 | fi | ||
14870 | rm -f core conftest.err conftest.$ac_objext \ | ||
14871 | conftest$ac_exeext conftest.$ac_ext | ||
14872 | |||
14873 | fi | ||
14874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5 | ||
14875 | $as_echo "$ac_cv_have_getopt_optreset" >&6; } | ||
14876 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
14877 | |||
14878 | $as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h | ||
14879 | |||
14880 | fi | ||
14881 | |||
14882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5 | ||
14883 | $as_echo_n "checking if libc defines sys_errlist... " >&6; } | ||
14884 | if ${ac_cv_libc_defines_sys_errlist+:} false; then : | ||
14885 | $as_echo_n "(cached) " >&6 | ||
14886 | else | ||
14887 | |||
14888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14889 | /* end confdefs.h. */ | ||
14890 | |||
14891 | int | ||
14892 | main () | ||
14893 | { | ||
14894 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
14895 | ; | ||
14896 | return 0; | ||
14897 | } | ||
14898 | _ACEOF | ||
14899 | if ac_fn_c_try_link "$LINENO"; then : | ||
14900 | ac_cv_libc_defines_sys_errlist="yes" | ||
14901 | else | ||
14902 | ac_cv_libc_defines_sys_errlist="no" | ||
14903 | |||
14904 | fi | ||
14905 | rm -f core conftest.err conftest.$ac_objext \ | ||
14906 | conftest$ac_exeext conftest.$ac_ext | ||
14907 | |||
14908 | fi | ||
14909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
14910 | $as_echo "$ac_cv_libc_defines_sys_errlist" >&6; } | ||
14911 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
14912 | |||
14913 | $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h | ||
14914 | |||
14915 | fi | ||
14916 | |||
14917 | |||
14918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5 | ||
14919 | $as_echo_n "checking if libc defines sys_nerr... " >&6; } | ||
14920 | if ${ac_cv_libc_defines_sys_nerr+:} false; then : | ||
14921 | $as_echo_n "(cached) " >&6 | ||
14922 | else | ||
14923 | |||
14924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14925 | /* end confdefs.h. */ | ||
14926 | |||
14927 | int | ||
14928 | main () | ||
14929 | { | ||
14930 | extern int sys_nerr; printf("%i", sys_nerr); | ||
14931 | ; | ||
14932 | return 0; | ||
14933 | } | ||
14934 | _ACEOF | ||
14935 | if ac_fn_c_try_link "$LINENO"; then : | ||
14936 | ac_cv_libc_defines_sys_nerr="yes" | ||
14937 | else | ||
14938 | ac_cv_libc_defines_sys_nerr="no" | ||
14939 | |||
14940 | fi | ||
14941 | rm -f core conftest.err conftest.$ac_objext \ | ||
14942 | conftest$ac_exeext conftest.$ac_ext | ||
14943 | |||
14944 | fi | ||
14945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
14946 | $as_echo "$ac_cv_libc_defines_sys_nerr" >&6; } | ||
14947 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
14948 | |||
14949 | $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h | ||
14950 | |||
14951 | fi | ||
14952 | |||
14953 | # Check libraries needed by DNS fingerprint support | ||
14954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5 | ||
14955 | $as_echo_n "checking for library containing getrrsetbyname... " >&6; } | ||
14956 | if ${ac_cv_search_getrrsetbyname+:} false; then : | ||
14957 | $as_echo_n "(cached) " >&6 | ||
14958 | else | ||
14959 | ac_func_search_save_LIBS=$LIBS | ||
14960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14961 | /* end confdefs.h. */ | ||
14962 | |||
14963 | /* Override any GCC internal prototype to avoid an error. | ||
14964 | Use char because int might match the return type of a GCC | ||
14965 | builtin and then its argument prototype would still apply. */ | ||
14966 | #ifdef __cplusplus | ||
14967 | extern "C" | ||
14968 | #endif | ||
14969 | char getrrsetbyname (); | ||
14970 | int | ||
14971 | main () | ||
14972 | { | ||
14973 | return getrrsetbyname (); | ||
14974 | ; | ||
14975 | return 0; | ||
14976 | } | ||
14977 | _ACEOF | ||
14978 | for ac_lib in '' resolv; do | ||
14979 | if test -z "$ac_lib"; then | ||
14980 | ac_res="none required" | ||
14981 | else | ||
14982 | ac_res=-l$ac_lib | ||
14983 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14984 | fi | ||
14985 | if ac_fn_c_try_link "$LINENO"; then : | ||
14986 | ac_cv_search_getrrsetbyname=$ac_res | ||
14987 | fi | ||
14988 | rm -f core conftest.err conftest.$ac_objext \ | ||
14989 | conftest$ac_exeext | ||
14990 | if ${ac_cv_search_getrrsetbyname+:} false; then : | ||
14991 | break | ||
14992 | fi | ||
14993 | done | ||
14994 | if ${ac_cv_search_getrrsetbyname+:} false; then : | ||
14995 | |||
14996 | else | ||
14997 | ac_cv_search_getrrsetbyname=no | ||
14998 | fi | ||
14999 | rm conftest.$ac_ext | ||
15000 | LIBS=$ac_func_search_save_LIBS | ||
15001 | fi | ||
15002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5 | ||
15003 | $as_echo "$ac_cv_search_getrrsetbyname" >&6; } | ||
15004 | ac_res=$ac_cv_search_getrrsetbyname | ||
15005 | if test "$ac_res" != no; then : | ||
15006 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
15007 | |||
15008 | $as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h | ||
15009 | |||
15010 | else | ||
15011 | |||
15012 | # Needed by our getrrsetbyname() | ||
15013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5 | ||
15014 | $as_echo_n "checking for library containing res_query... " >&6; } | ||
15015 | if ${ac_cv_search_res_query+:} false; then : | ||
15016 | $as_echo_n "(cached) " >&6 | ||
15017 | else | ||
15018 | ac_func_search_save_LIBS=$LIBS | ||
15019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15020 | /* end confdefs.h. */ | ||
15021 | |||
15022 | /* Override any GCC internal prototype to avoid an error. | ||
15023 | Use char because int might match the return type of a GCC | ||
15024 | builtin and then its argument prototype would still apply. */ | ||
15025 | #ifdef __cplusplus | ||
15026 | extern "C" | ||
15027 | #endif | ||
15028 | char res_query (); | ||
15029 | int | ||
15030 | main () | ||
15031 | { | ||
15032 | return res_query (); | ||
15033 | ; | ||
15034 | return 0; | ||
15035 | } | ||
15036 | _ACEOF | ||
15037 | for ac_lib in '' resolv; do | ||
15038 | if test -z "$ac_lib"; then | ||
15039 | ac_res="none required" | ||
15040 | else | ||
15041 | ac_res=-l$ac_lib | ||
15042 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
15043 | fi | ||
15044 | if ac_fn_c_try_link "$LINENO"; then : | ||
15045 | ac_cv_search_res_query=$ac_res | ||
15046 | fi | ||
15047 | rm -f core conftest.err conftest.$ac_objext \ | ||
15048 | conftest$ac_exeext | ||
15049 | if ${ac_cv_search_res_query+:} false; then : | ||
15050 | break | ||
15051 | fi | ||
15052 | done | ||
15053 | if ${ac_cv_search_res_query+:} false; then : | ||
15054 | |||
15055 | else | ||
15056 | ac_cv_search_res_query=no | ||
15057 | fi | ||
15058 | rm conftest.$ac_ext | ||
15059 | LIBS=$ac_func_search_save_LIBS | ||
15060 | fi | ||
15061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5 | ||
15062 | $as_echo "$ac_cv_search_res_query" >&6; } | ||
15063 | ac_res=$ac_cv_search_res_query | ||
15064 | if test "$ac_res" != no; then : | ||
15065 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
15066 | |||
15067 | fi | ||
15068 | |||
15069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5 | ||
15070 | $as_echo_n "checking for library containing dn_expand... " >&6; } | ||
15071 | if ${ac_cv_search_dn_expand+:} false; then : | ||
15072 | $as_echo_n "(cached) " >&6 | ||
15073 | else | ||
15074 | ac_func_search_save_LIBS=$LIBS | ||
15075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15076 | /* end confdefs.h. */ | ||
15077 | |||
15078 | /* Override any GCC internal prototype to avoid an error. | ||
15079 | Use char because int might match the return type of a GCC | ||
15080 | builtin and then its argument prototype would still apply. */ | ||
15081 | #ifdef __cplusplus | ||
15082 | extern "C" | ||
15083 | #endif | ||
15084 | char dn_expand (); | ||
15085 | int | ||
15086 | main () | ||
15087 | { | ||
15088 | return dn_expand (); | ||
15089 | ; | ||
15090 | return 0; | ||
15091 | } | ||
15092 | _ACEOF | ||
15093 | for ac_lib in '' resolv; do | ||
15094 | if test -z "$ac_lib"; then | ||
15095 | ac_res="none required" | ||
15096 | else | ||
15097 | ac_res=-l$ac_lib | ||
15098 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
15099 | fi | ||
15100 | if ac_fn_c_try_link "$LINENO"; then : | ||
15101 | ac_cv_search_dn_expand=$ac_res | ||
15102 | fi | ||
15103 | rm -f core conftest.err conftest.$ac_objext \ | ||
15104 | conftest$ac_exeext | ||
15105 | if ${ac_cv_search_dn_expand+:} false; then : | ||
15106 | break | ||
15107 | fi | ||
15108 | done | ||
15109 | if ${ac_cv_search_dn_expand+:} false; then : | ||
15110 | |||
15111 | else | ||
15112 | ac_cv_search_dn_expand=no | ||
15113 | fi | ||
15114 | rm conftest.$ac_ext | ||
15115 | LIBS=$ac_func_search_save_LIBS | ||
15116 | fi | ||
15117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5 | ||
15118 | $as_echo "$ac_cv_search_dn_expand" >&6; } | ||
15119 | ac_res=$ac_cv_search_dn_expand | ||
15120 | if test "$ac_res" != no; then : | ||
15121 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
15122 | |||
15123 | fi | ||
15124 | |||
15125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5 | ||
15126 | $as_echo_n "checking if res_query will link... " >&6; } | ||
15127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15128 | /* end confdefs.h. */ | ||
15129 | |||
15130 | #include <sys/types.h> | ||
15131 | #include <netinet/in.h> | ||
15132 | #include <arpa/nameser.h> | ||
15133 | #include <netdb.h> | ||
15134 | #include <resolv.h> | ||
15135 | |||
15136 | int | ||
15137 | main () | ||
15138 | { | ||
15139 | |||
15140 | res_query (0, 0, 0, 0, 0); | ||
15141 | |||
15142 | ; | ||
15143 | return 0; | ||
15144 | } | ||
15145 | _ACEOF | ||
15146 | if ac_fn_c_try_link "$LINENO"; then : | ||
15147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15148 | $as_echo "yes" >&6; } | ||
15149 | else | ||
15150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15151 | $as_echo "no" >&6; } | ||
15152 | saved_LIBS="$LIBS" | ||
15153 | LIBS="$LIBS -lresolv" | ||
15154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5 | ||
15155 | $as_echo_n "checking for res_query in -lresolv... " >&6; } | ||
15156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15157 | /* end confdefs.h. */ | ||
15158 | |||
15159 | #include <sys/types.h> | ||
15160 | #include <netinet/in.h> | ||
15161 | #include <arpa/nameser.h> | ||
15162 | #include <netdb.h> | ||
15163 | #include <resolv.h> | ||
15164 | |||
15165 | int | ||
15166 | main () | ||
15167 | { | ||
15168 | |||
15169 | res_query (0, 0, 0, 0, 0); | ||
15170 | |||
15171 | ; | ||
15172 | return 0; | ||
15173 | } | ||
15174 | _ACEOF | ||
15175 | if ac_fn_c_try_link "$LINENO"; then : | ||
15176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15177 | $as_echo "yes" >&6; } | ||
15178 | else | ||
15179 | LIBS="$saved_LIBS" | ||
15180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15181 | $as_echo "no" >&6; } | ||
15182 | fi | ||
15183 | rm -f core conftest.err conftest.$ac_objext \ | ||
15184 | conftest$ac_exeext conftest.$ac_ext | ||
15185 | |||
15186 | fi | ||
15187 | rm -f core conftest.err conftest.$ac_objext \ | ||
15188 | conftest$ac_exeext conftest.$ac_ext | ||
15189 | for ac_func in _getshort _getlong | ||
15190 | do : | ||
15191 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15192 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
15193 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
15194 | cat >>confdefs.h <<_ACEOF | ||
15195 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15196 | _ACEOF | ||
15197 | |||
15198 | fi | ||
15199 | done | ||
15200 | |||
15201 | ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h> | ||
15202 | #include <arpa/nameser.h> | ||
15203 | " | ||
15204 | if test "x$ac_cv_have_decl__getshort" = xyes; then : | ||
15205 | ac_have_decl=1 | ||
15206 | else | ||
15207 | ac_have_decl=0 | ||
15208 | fi | ||
15209 | |||
15210 | cat >>confdefs.h <<_ACEOF | ||
15211 | #define HAVE_DECL__GETSHORT $ac_have_decl | ||
15212 | _ACEOF | ||
15213 | ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h> | ||
15214 | #include <arpa/nameser.h> | ||
15215 | " | ||
15216 | if test "x$ac_cv_have_decl__getlong" = xyes; then : | ||
15217 | ac_have_decl=1 | ||
15218 | else | ||
15219 | ac_have_decl=0 | ||
15220 | fi | ||
15221 | |||
15222 | cat >>confdefs.h <<_ACEOF | ||
15223 | #define HAVE_DECL__GETLONG $ac_have_decl | ||
15224 | _ACEOF | ||
15225 | |||
15226 | ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h> | ||
15227 | " | ||
15228 | if test "x$ac_cv_member_HEADER_ad" = xyes; then : | ||
15229 | |||
15230 | $as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h | ||
15231 | |||
15232 | fi | ||
15233 | |||
15234 | |||
15235 | fi | ||
15236 | |||
15237 | |||
15238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5 | ||
15239 | $as_echo_n "checking if struct __res_state _res is an extern... " >&6; } | ||
15240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15241 | /* end confdefs.h. */ | ||
15242 | |||
15243 | #include <stdio.h> | ||
15244 | #if HAVE_SYS_TYPES_H | ||
15245 | # include <sys/types.h> | ||
15246 | #endif | ||
15247 | #include <netinet/in.h> | ||
15248 | #include <arpa/nameser.h> | ||
15249 | #include <resolv.h> | ||
15250 | extern struct __res_state _res; | ||
15251 | |||
15252 | int | ||
15253 | main () | ||
15254 | { | ||
15255 | |||
15256 | ; | ||
15257 | return 0; | ||
15258 | } | ||
15259 | _ACEOF | ||
15260 | if ac_fn_c_try_link "$LINENO"; then : | ||
15261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15262 | $as_echo "yes" >&6; } | ||
15263 | |||
15264 | $as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h | ||
15265 | |||
15266 | |||
15267 | else | ||
15268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15269 | $as_echo "no" >&6; } | ||
15270 | |||
15271 | fi | ||
15272 | rm -f core conftest.err conftest.$ac_objext \ | ||
15273 | conftest$ac_exeext conftest.$ac_ext | ||
15274 | |||
15275 | # Check whether user wants SELinux support | ||
15276 | SELINUX_MSG="no" | ||
15277 | LIBSELINUX="" | ||
15278 | |||
15279 | # Check whether --with-selinux was given. | ||
15280 | if test "${with_selinux+set}" = set; then : | ||
15281 | withval=$with_selinux; if test "x$withval" != "xno" ; then | ||
15282 | save_LIBS="$LIBS" | ||
15283 | |||
15284 | $as_echo "#define WITH_SELINUX 1" >>confdefs.h | ||
15285 | |||
15286 | SELINUX_MSG="yes" | ||
15287 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" | ||
15288 | if test "x$ac_cv_header_selinux_selinux_h" = xyes; then : | ||
15289 | |||
15290 | else | ||
15291 | as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5 | ||
15292 | fi | ||
15293 | |||
15294 | |||
15295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5 | ||
15296 | $as_echo_n "checking for setexeccon in -lselinux... " >&6; } | ||
15297 | if ${ac_cv_lib_selinux_setexeccon+:} false; then : | ||
15298 | $as_echo_n "(cached) " >&6 | ||
15299 | else | ||
15300 | ac_check_lib_save_LIBS=$LIBS | ||
15301 | LIBS="-lselinux $LIBS" | ||
15302 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15303 | /* end confdefs.h. */ | ||
15304 | |||
15305 | /* Override any GCC internal prototype to avoid an error. | ||
15306 | Use char because int might match the return type of a GCC | ||
15307 | builtin and then its argument prototype would still apply. */ | ||
15308 | #ifdef __cplusplus | ||
15309 | extern "C" | ||
15310 | #endif | ||
15311 | char setexeccon (); | ||
15312 | int | ||
15313 | main () | ||
15314 | { | ||
15315 | return setexeccon (); | ||
15316 | ; | ||
15317 | return 0; | ||
15318 | } | ||
15319 | _ACEOF | ||
15320 | if ac_fn_c_try_link "$LINENO"; then : | ||
15321 | ac_cv_lib_selinux_setexeccon=yes | ||
15322 | else | ||
15323 | ac_cv_lib_selinux_setexeccon=no | ||
15324 | fi | ||
15325 | rm -f core conftest.err conftest.$ac_objext \ | ||
15326 | conftest$ac_exeext conftest.$ac_ext | ||
15327 | LIBS=$ac_check_lib_save_LIBS | ||
15328 | fi | ||
15329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5 | ||
15330 | $as_echo "$ac_cv_lib_selinux_setexeccon" >&6; } | ||
15331 | if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then : | ||
15332 | LIBSELINUX="-lselinux" | ||
15333 | LIBS="$LIBS -lselinux" | ||
15334 | |||
15335 | else | ||
15336 | as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5 | ||
15337 | fi | ||
15338 | |||
15339 | SSHLIBS="$SSHLIBS $LIBSELINUX" | ||
15340 | SSHDLIBS="$SSHDLIBS $LIBSELINUX" | ||
15341 | for ac_func in getseuserbyname get_default_context_with_level | ||
15342 | do : | ||
15343 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15344 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
15345 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
15346 | cat >>confdefs.h <<_ACEOF | ||
15347 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15348 | _ACEOF | ||
15349 | |||
15350 | fi | ||
15351 | done | ||
15352 | |||
15353 | LIBS="$save_LIBS" | ||
15354 | fi | ||
15355 | |||
15356 | fi | ||
15357 | |||
15358 | |||
15359 | |||
15360 | |||
15361 | # Check whether user wants Kerberos 5 support | ||
15362 | KRB5_MSG="no" | ||
15363 | |||
15364 | # Check whether --with-kerberos5 was given. | ||
15365 | if test "${with_kerberos5+set}" = set; then : | ||
15366 | withval=$with_kerberos5; if test "x$withval" != "xno" ; then | ||
15367 | if test "x$withval" = "xyes" ; then | ||
15368 | KRB5ROOT="/usr/local" | ||
15369 | else | ||
15370 | KRB5ROOT=${withval} | ||
15371 | fi | ||
15372 | |||
15373 | |||
15374 | $as_echo "#define KRB5 1" >>confdefs.h | ||
15375 | |||
15376 | KRB5_MSG="yes" | ||
15377 | |||
15378 | # Extract the first word of "krb5-config", so it can be a program name with args. | ||
15379 | set dummy krb5-config; ac_word=$2 | ||
15380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
15381 | $as_echo_n "checking for $ac_word... " >&6; } | ||
15382 | if ${ac_cv_path_KRB5CONF+:} false; then : | ||
15383 | $as_echo_n "(cached) " >&6 | ||
15384 | else | ||
15385 | case $KRB5CONF in | ||
15386 | [\\/]* | ?:[\\/]*) | ||
15387 | ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path. | ||
15388 | ;; | ||
15389 | *) | ||
15390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15391 | as_dummy="$KRB5ROOT/bin:$PATH" | ||
15392 | for as_dir in $as_dummy | ||
15393 | do | ||
15394 | IFS=$as_save_IFS | ||
15395 | test -z "$as_dir" && as_dir=. | ||
15396 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15397 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
15398 | ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext" | ||
15399 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
15400 | break 2 | ||
15401 | fi | ||
15402 | done | ||
15403 | done | ||
15404 | IFS=$as_save_IFS | ||
15405 | |||
15406 | test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config" | ||
15407 | ;; | ||
15408 | esac | ||
15409 | fi | ||
15410 | KRB5CONF=$ac_cv_path_KRB5CONF | ||
15411 | if test -n "$KRB5CONF"; then | ||
15412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5 | ||
15413 | $as_echo "$KRB5CONF" >&6; } | ||
15414 | else | ||
15415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15416 | $as_echo "no" >&6; } | ||
15417 | fi | ||
15418 | |||
15419 | |||
15420 | if test -x $KRB5CONF ; then | ||
15421 | K5CFLAGS="`$KRB5CONF --cflags`" | ||
15422 | K5LIBS="`$KRB5CONF --libs`" | ||
15423 | CPPFLAGS="$CPPFLAGS $K5CFLAGS" | ||
15424 | |||
15425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5 | ||
15426 | $as_echo_n "checking for gssapi support... " >&6; } | ||
15427 | if $KRB5CONF | grep gssapi >/dev/null ; then | ||
15428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15429 | $as_echo "yes" >&6; } | ||
15430 | |||
15431 | $as_echo "#define GSSAPI 1" >>confdefs.h | ||
15432 | |||
15433 | GSSCFLAGS="`$KRB5CONF --cflags gssapi`" | ||
15434 | GSSLIBS="`$KRB5CONF --libs gssapi`" | ||
15435 | CPPFLAGS="$CPPFLAGS $GSSCFLAGS" | ||
15436 | else | ||
15437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15438 | $as_echo "no" >&6; } | ||
15439 | fi | ||
15440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 | ||
15441 | $as_echo_n "checking whether we are using Heimdal... " >&6; } | ||
15442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15443 | /* end confdefs.h. */ | ||
15444 | #include <krb5.h> | ||
15445 | |||
15446 | int | ||
15447 | main () | ||
15448 | { | ||
15449 | char *tmp = heimdal_version; | ||
15450 | ; | ||
15451 | return 0; | ||
15452 | } | ||
15453 | _ACEOF | ||
15454 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15456 | $as_echo "yes" >&6; } | ||
15457 | |||
15458 | $as_echo "#define HEIMDAL 1" >>confdefs.h | ||
15459 | |||
15460 | else | ||
15461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15462 | $as_echo "no" >&6; } | ||
15463 | |||
15464 | fi | ||
15465 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15466 | else | ||
15467 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
15468 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
15469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 | ||
15470 | $as_echo_n "checking whether we are using Heimdal... " >&6; } | ||
15471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15472 | /* end confdefs.h. */ | ||
15473 | #include <krb5.h> | ||
15474 | |||
15475 | int | ||
15476 | main () | ||
15477 | { | ||
15478 | char *tmp = heimdal_version; | ||
15479 | ; | ||
15480 | return 0; | ||
15481 | } | ||
15482 | _ACEOF | ||
15483 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15485 | $as_echo "yes" >&6; } | ||
15486 | $as_echo "#define HEIMDAL 1" >>confdefs.h | ||
15487 | |||
15488 | K5LIBS="-lkrb5" | ||
15489 | K5LIBS="$K5LIBS -lcom_err -lasn1" | ||
15490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5 | ||
15491 | $as_echo_n "checking for net_write in -lroken... " >&6; } | ||
15492 | if ${ac_cv_lib_roken_net_write+:} false; then : | ||
15493 | $as_echo_n "(cached) " >&6 | ||
15494 | else | ||
15495 | ac_check_lib_save_LIBS=$LIBS | ||
15496 | LIBS="-lroken $LIBS" | ||
15497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15498 | /* end confdefs.h. */ | ||
15499 | |||
15500 | /* Override any GCC internal prototype to avoid an error. | ||
15501 | Use char because int might match the return type of a GCC | ||
15502 | builtin and then its argument prototype would still apply. */ | ||
15503 | #ifdef __cplusplus | ||
15504 | extern "C" | ||
15505 | #endif | ||
15506 | char net_write (); | ||
15507 | int | ||
15508 | main () | ||
15509 | { | ||
15510 | return net_write (); | ||
15511 | ; | ||
15512 | return 0; | ||
15513 | } | ||
15514 | _ACEOF | ||
15515 | if ac_fn_c_try_link "$LINENO"; then : | ||
15516 | ac_cv_lib_roken_net_write=yes | ||
15517 | else | ||
15518 | ac_cv_lib_roken_net_write=no | ||
15519 | fi | ||
15520 | rm -f core conftest.err conftest.$ac_objext \ | ||
15521 | conftest$ac_exeext conftest.$ac_ext | ||
15522 | LIBS=$ac_check_lib_save_LIBS | ||
15523 | fi | ||
15524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5 | ||
15525 | $as_echo "$ac_cv_lib_roken_net_write" >&6; } | ||
15526 | if test "x$ac_cv_lib_roken_net_write" = xyes; then : | ||
15527 | K5LIBS="$K5LIBS -lroken" | ||
15528 | fi | ||
15529 | |||
15530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5 | ||
15531 | $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } | ||
15532 | if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then : | ||
15533 | $as_echo_n "(cached) " >&6 | ||
15534 | else | ||
15535 | ac_check_lib_save_LIBS=$LIBS | ||
15536 | LIBS="-ldes $LIBS" | ||
15537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15538 | /* end confdefs.h. */ | ||
15539 | |||
15540 | /* Override any GCC internal prototype to avoid an error. | ||
15541 | Use char because int might match the return type of a GCC | ||
15542 | builtin and then its argument prototype would still apply. */ | ||
15543 | #ifdef __cplusplus | ||
15544 | extern "C" | ||
15545 | #endif | ||
15546 | char des_cbc_encrypt (); | ||
15547 | int | ||
15548 | main () | ||
15549 | { | ||
15550 | return des_cbc_encrypt (); | ||
15551 | ; | ||
15552 | return 0; | ||
15553 | } | ||
15554 | _ACEOF | ||
15555 | if ac_fn_c_try_link "$LINENO"; then : | ||
15556 | ac_cv_lib_des_des_cbc_encrypt=yes | ||
15557 | else | ||
15558 | ac_cv_lib_des_des_cbc_encrypt=no | ||
15559 | fi | ||
15560 | rm -f core conftest.err conftest.$ac_objext \ | ||
15561 | conftest$ac_exeext conftest.$ac_ext | ||
15562 | LIBS=$ac_check_lib_save_LIBS | ||
15563 | fi | ||
15564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 | ||
15565 | $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } | ||
15566 | if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then : | ||
15567 | K5LIBS="$K5LIBS -ldes" | ||
15568 | fi | ||
15569 | |||
15570 | |||
15571 | else | ||
15572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15573 | $as_echo "no" >&6; } | ||
15574 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
15575 | |||
15576 | |||
15577 | fi | ||
15578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5 | ||
15580 | $as_echo_n "checking for library containing dn_expand... " >&6; } | ||
15581 | if ${ac_cv_search_dn_expand+:} false; then : | ||
15582 | $as_echo_n "(cached) " >&6 | ||
15583 | else | ||
15584 | ac_func_search_save_LIBS=$LIBS | ||
15585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15586 | /* end confdefs.h. */ | ||
15587 | |||
15588 | /* Override any GCC internal prototype to avoid an error. | ||
15589 | Use char because int might match the return type of a GCC | ||
15590 | builtin and then its argument prototype would still apply. */ | ||
15591 | #ifdef __cplusplus | ||
15592 | extern "C" | ||
15593 | #endif | ||
15594 | char dn_expand (); | ||
15595 | int | ||
15596 | main () | ||
15597 | { | ||
15598 | return dn_expand (); | ||
15599 | ; | ||
15600 | return 0; | ||
15601 | } | ||
15602 | _ACEOF | ||
15603 | for ac_lib in '' resolv; do | ||
15604 | if test -z "$ac_lib"; then | ||
15605 | ac_res="none required" | ||
15606 | else | ||
15607 | ac_res=-l$ac_lib | ||
15608 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
15609 | fi | ||
15610 | if ac_fn_c_try_link "$LINENO"; then : | ||
15611 | ac_cv_search_dn_expand=$ac_res | ||
15612 | fi | ||
15613 | rm -f core conftest.err conftest.$ac_objext \ | ||
15614 | conftest$ac_exeext | ||
15615 | if ${ac_cv_search_dn_expand+:} false; then : | ||
15616 | break | ||
15617 | fi | ||
15618 | done | ||
15619 | if ${ac_cv_search_dn_expand+:} false; then : | ||
15620 | |||
15621 | else | ||
15622 | ac_cv_search_dn_expand=no | ||
15623 | fi | ||
15624 | rm conftest.$ac_ext | ||
15625 | LIBS=$ac_func_search_save_LIBS | ||
15626 | fi | ||
15627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5 | ||
15628 | $as_echo "$ac_cv_search_dn_expand" >&6; } | ||
15629 | ac_res=$ac_cv_search_dn_expand | ||
15630 | if test "$ac_res" != no; then : | ||
15631 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
15632 | |||
15633 | fi | ||
15634 | |||
15635 | |||
15636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5 | ||
15637 | $as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; } | ||
15638 | if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then : | ||
15639 | $as_echo_n "(cached) " >&6 | ||
15640 | else | ||
15641 | ac_check_lib_save_LIBS=$LIBS | ||
15642 | LIBS="-lgssapi_krb5 $LIBS" | ||
15643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15644 | /* end confdefs.h. */ | ||
15645 | |||
15646 | /* Override any GCC internal prototype to avoid an error. | ||
15647 | Use char because int might match the return type of a GCC | ||
15648 | builtin and then its argument prototype would still apply. */ | ||
15649 | #ifdef __cplusplus | ||
15650 | extern "C" | ||
15651 | #endif | ||
15652 | char gss_init_sec_context (); | ||
15653 | int | ||
15654 | main () | ||
15655 | { | ||
15656 | return gss_init_sec_context (); | ||
15657 | ; | ||
15658 | return 0; | ||
15659 | } | ||
15660 | _ACEOF | ||
15661 | if ac_fn_c_try_link "$LINENO"; then : | ||
15662 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes | ||
15663 | else | ||
15664 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no | ||
15665 | fi | ||
15666 | rm -f core conftest.err conftest.$ac_objext \ | ||
15667 | conftest$ac_exeext conftest.$ac_ext | ||
15668 | LIBS=$ac_check_lib_save_LIBS | ||
15669 | fi | ||
15670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 | ||
15671 | $as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } | ||
15672 | if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then : | ||
15673 | $as_echo "#define GSSAPI 1" >>confdefs.h | ||
15674 | |||
15675 | GSSLIBS="-lgssapi_krb5" | ||
15676 | else | ||
15677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5 | ||
15678 | $as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; } | ||
15679 | if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then : | ||
15680 | $as_echo_n "(cached) " >&6 | ||
15681 | else | ||
15682 | ac_check_lib_save_LIBS=$LIBS | ||
15683 | LIBS="-lgssapi $LIBS" | ||
15684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15685 | /* end confdefs.h. */ | ||
15686 | |||
15687 | /* Override any GCC internal prototype to avoid an error. | ||
15688 | Use char because int might match the return type of a GCC | ||
15689 | builtin and then its argument prototype would still apply. */ | ||
15690 | #ifdef __cplusplus | ||
15691 | extern "C" | ||
15692 | #endif | ||
15693 | char gss_init_sec_context (); | ||
15694 | int | ||
15695 | main () | ||
15696 | { | ||
15697 | return gss_init_sec_context (); | ||
15698 | ; | ||
15699 | return 0; | ||
15700 | } | ||
15701 | _ACEOF | ||
15702 | if ac_fn_c_try_link "$LINENO"; then : | ||
15703 | ac_cv_lib_gssapi_gss_init_sec_context=yes | ||
15704 | else | ||
15705 | ac_cv_lib_gssapi_gss_init_sec_context=no | ||
15706 | fi | ||
15707 | rm -f core conftest.err conftest.$ac_objext \ | ||
15708 | conftest$ac_exeext conftest.$ac_ext | ||
15709 | LIBS=$ac_check_lib_save_LIBS | ||
15710 | fi | ||
15711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 | ||
15712 | $as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } | ||
15713 | if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then : | ||
15714 | $as_echo "#define GSSAPI 1" >>confdefs.h | ||
15715 | |||
15716 | GSSLIBS="-lgssapi" | ||
15717 | else | ||
15718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgss" >&5 | ||
15719 | $as_echo_n "checking for gss_init_sec_context in -lgss... " >&6; } | ||
15720 | if ${ac_cv_lib_gss_gss_init_sec_context+:} false; then : | ||
15721 | $as_echo_n "(cached) " >&6 | ||
15722 | else | ||
15723 | ac_check_lib_save_LIBS=$LIBS | ||
15724 | LIBS="-lgss $LIBS" | ||
15725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15726 | /* end confdefs.h. */ | ||
15727 | |||
15728 | /* Override any GCC internal prototype to avoid an error. | ||
15729 | Use char because int might match the return type of a GCC | ||
15730 | builtin and then its argument prototype would still apply. */ | ||
15731 | #ifdef __cplusplus | ||
15732 | extern "C" | ||
15733 | #endif | ||
15734 | char gss_init_sec_context (); | ||
15735 | int | ||
15736 | main () | ||
15737 | { | ||
15738 | return gss_init_sec_context (); | ||
15739 | ; | ||
15740 | return 0; | ||
15741 | } | ||
15742 | _ACEOF | ||
15743 | if ac_fn_c_try_link "$LINENO"; then : | ||
15744 | ac_cv_lib_gss_gss_init_sec_context=yes | ||
15745 | else | ||
15746 | ac_cv_lib_gss_gss_init_sec_context=no | ||
15747 | fi | ||
15748 | rm -f core conftest.err conftest.$ac_objext \ | ||
15749 | conftest$ac_exeext conftest.$ac_ext | ||
15750 | LIBS=$ac_check_lib_save_LIBS | ||
15751 | fi | ||
15752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_init_sec_context" >&5 | ||
15753 | $as_echo "$ac_cv_lib_gss_gss_init_sec_context" >&6; } | ||
15754 | if test "x$ac_cv_lib_gss_gss_init_sec_context" = xyes; then : | ||
15755 | $as_echo "#define GSSAPI 1" >>confdefs.h | ||
15756 | |||
15757 | GSSLIBS="-lgss" | ||
15758 | else | ||
15759 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 | ||
15760 | $as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} | ||
15761 | fi | ||
15762 | |||
15763 | |||
15764 | fi | ||
15765 | |||
15766 | |||
15767 | fi | ||
15768 | |||
15769 | |||
15770 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" | ||
15771 | if test "x$ac_cv_header_gssapi_h" = xyes; then : | ||
15772 | |||
15773 | else | ||
15774 | unset ac_cv_header_gssapi_h | ||
15775 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
15776 | for ac_header in gssapi.h | ||
15777 | do : | ||
15778 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" | ||
15779 | if test "x$ac_cv_header_gssapi_h" = xyes; then : | ||
15780 | cat >>confdefs.h <<_ACEOF | ||
15781 | #define HAVE_GSSAPI_H 1 | ||
15782 | _ACEOF | ||
15783 | |||
15784 | else | ||
15785 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 | ||
15786 | $as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} | ||
15787 | |||
15788 | fi | ||
15789 | |||
15790 | done | ||
15791 | |||
15792 | |||
15793 | |||
15794 | fi | ||
15795 | |||
15796 | |||
15797 | |||
15798 | oldCPP="$CPPFLAGS" | ||
15799 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
15800 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default" | ||
15801 | if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then : | ||
15802 | |||
15803 | else | ||
15804 | CPPFLAGS="$oldCPP" | ||
15805 | fi | ||
15806 | |||
15807 | |||
15808 | |||
15809 | fi | ||
15810 | if test ! -z "$need_dash_r" ; then | ||
15811 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
15812 | fi | ||
15813 | if test ! -z "$blibpath" ; then | ||
15814 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
15815 | fi | ||
15816 | |||
15817 | for ac_header in gssapi.h gssapi/gssapi.h | ||
15818 | do : | ||
15819 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
15820 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
15821 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
15822 | cat >>confdefs.h <<_ACEOF | ||
15823 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
15824 | _ACEOF | ||
15825 | |||
15826 | fi | ||
15827 | |||
15828 | done | ||
15829 | |||
15830 | for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h | ||
15831 | do : | ||
15832 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
15833 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
15834 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
15835 | cat >>confdefs.h <<_ACEOF | ||
15836 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
15837 | _ACEOF | ||
15838 | |||
15839 | fi | ||
15840 | |||
15841 | done | ||
15842 | |||
15843 | for ac_header in gssapi_generic.h gssapi/gssapi_generic.h | ||
15844 | do : | ||
15845 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
15846 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
15847 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
15848 | cat >>confdefs.h <<_ACEOF | ||
15849 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
15850 | _ACEOF | ||
15851 | |||
15852 | fi | ||
15853 | |||
15854 | done | ||
15855 | |||
15856 | |||
15857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5 | ||
15858 | $as_echo_n "checking for library containing k_hasafs... " >&6; } | ||
15859 | if ${ac_cv_search_k_hasafs+:} false; then : | ||
15860 | $as_echo_n "(cached) " >&6 | ||
15861 | else | ||
15862 | ac_func_search_save_LIBS=$LIBS | ||
15863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15864 | /* end confdefs.h. */ | ||
15865 | |||
15866 | /* Override any GCC internal prototype to avoid an error. | ||
15867 | Use char because int might match the return type of a GCC | ||
15868 | builtin and then its argument prototype would still apply. */ | ||
15869 | #ifdef __cplusplus | ||
15870 | extern "C" | ||
15871 | #endif | ||
15872 | char k_hasafs (); | ||
15873 | int | ||
15874 | main () | ||
15875 | { | ||
15876 | return k_hasafs (); | ||
15877 | ; | ||
15878 | return 0; | ||
15879 | } | ||
15880 | _ACEOF | ||
15881 | for ac_lib in '' kafs; do | ||
15882 | if test -z "$ac_lib"; then | ||
15883 | ac_res="none required" | ||
15884 | else | ||
15885 | ac_res=-l$ac_lib | ||
15886 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
15887 | fi | ||
15888 | if ac_fn_c_try_link "$LINENO"; then : | ||
15889 | ac_cv_search_k_hasafs=$ac_res | ||
15890 | fi | ||
15891 | rm -f core conftest.err conftest.$ac_objext \ | ||
15892 | conftest$ac_exeext | ||
15893 | if ${ac_cv_search_k_hasafs+:} false; then : | ||
15894 | break | ||
15895 | fi | ||
15896 | done | ||
15897 | if ${ac_cv_search_k_hasafs+:} false; then : | ||
15898 | |||
15899 | else | ||
15900 | ac_cv_search_k_hasafs=no | ||
15901 | fi | ||
15902 | rm conftest.$ac_ext | ||
15903 | LIBS=$ac_func_search_save_LIBS | ||
15904 | fi | ||
15905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5 | ||
15906 | $as_echo "$ac_cv_search_k_hasafs" >&6; } | ||
15907 | ac_res=$ac_cv_search_k_hasafs | ||
15908 | if test "$ac_res" != no; then : | ||
15909 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
15910 | |||
15911 | $as_echo "#define USE_AFS 1" >>confdefs.h | ||
15912 | |||
15913 | fi | ||
15914 | |||
15915 | |||
15916 | ac_fn_c_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" " | ||
15917 | #ifdef HAVE_GSSAPI_H | ||
15918 | # include <gssapi.h> | ||
15919 | #elif defined(HAVE_GSSAPI_GSSAPI_H) | ||
15920 | # include <gssapi/gssapi.h> | ||
15921 | #endif | ||
15922 | |||
15923 | #ifdef HAVE_GSSAPI_GENERIC_H | ||
15924 | # include <gssapi_generic.h> | ||
15925 | #elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H) | ||
15926 | # include <gssapi/gssapi_generic.h> | ||
15927 | #endif | ||
15928 | |||
15929 | " | ||
15930 | if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then : | ||
15931 | ac_have_decl=1 | ||
15932 | else | ||
15933 | ac_have_decl=0 | ||
15934 | fi | ||
15935 | |||
15936 | cat >>confdefs.h <<_ACEOF | ||
15937 | #define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE $ac_have_decl | ||
15938 | _ACEOF | ||
15939 | |||
15940 | fi | ||
15941 | |||
15942 | |||
15943 | fi | ||
15944 | |||
15945 | |||
15946 | |||
15947 | |||
15948 | # Looking for programs, paths and files | ||
15949 | |||
15950 | PRIVSEP_PATH=/var/empty | ||
15951 | |||
15952 | # Check whether --with-privsep-path was given. | ||
15953 | if test "${with_privsep_path+set}" = set; then : | ||
15954 | withval=$with_privsep_path; | ||
15955 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
15956 | test "x${withval}" != "xyes"; then | ||
15957 | PRIVSEP_PATH=$withval | ||
15958 | fi | ||
15959 | |||
15960 | |||
15961 | fi | ||
15962 | |||
15963 | |||
15964 | |||
15965 | |||
15966 | # Check whether --with-xauth was given. | ||
15967 | if test "${with_xauth+set}" = set; then : | ||
15968 | withval=$with_xauth; | ||
15969 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
15970 | test "x${withval}" != "xyes"; then | ||
15971 | xauth_path=$withval | ||
15972 | fi | ||
15973 | |||
15974 | else | ||
15975 | |||
15976 | TestPath="$PATH" | ||
15977 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
15978 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
15979 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
15980 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
15981 | # Extract the first word of "xauth", so it can be a program name with args. | ||
15982 | set dummy xauth; ac_word=$2 | ||
15983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
15984 | $as_echo_n "checking for $ac_word... " >&6; } | ||
15985 | if ${ac_cv_path_xauth_path+:} false; then : | ||
15986 | $as_echo_n "(cached) " >&6 | ||
15987 | else | ||
15988 | case $xauth_path in | ||
15989 | [\\/]* | ?:[\\/]*) | ||
15990 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
15991 | ;; | ||
15992 | *) | ||
15993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
15994 | for as_dir in $TestPath | ||
15995 | do | ||
15996 | IFS=$as_save_IFS | ||
15997 | test -z "$as_dir" && as_dir=. | ||
15998 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
15999 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
16000 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" | ||
16001 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16002 | break 2 | ||
16003 | fi | ||
16004 | done | ||
16005 | done | ||
16006 | IFS=$as_save_IFS | ||
16007 | |||
16008 | ;; | ||
16009 | esac | ||
16010 | fi | ||
16011 | xauth_path=$ac_cv_path_xauth_path | ||
16012 | if test -n "$xauth_path"; then | ||
16013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5 | ||
16014 | $as_echo "$xauth_path" >&6; } | ||
16015 | else | ||
16016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16017 | $as_echo "no" >&6; } | ||
16018 | fi | ||
16019 | |||
16020 | |||
16021 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
16022 | xauth_path="/usr/openwin/bin/xauth" | ||
16023 | fi | ||
16024 | |||
16025 | |||
16026 | fi | ||
16027 | |||
16028 | |||
16029 | STRIP_OPT=-s | ||
16030 | # Check whether --enable-strip was given. | ||
16031 | if test "${enable_strip+set}" = set; then : | ||
16032 | enableval=$enable_strip; | ||
16033 | if test "x$enableval" = "xno" ; then | ||
16034 | STRIP_OPT= | ||
16035 | fi | ||
16036 | |||
16037 | |||
16038 | fi | ||
16039 | |||
16040 | |||
16041 | |||
16042 | if test -z "$xauth_path" ; then | ||
16043 | XAUTH_PATH="undefined" | ||
16044 | |||
16045 | else | ||
16046 | |||
16047 | cat >>confdefs.h <<_ACEOF | ||
16048 | #define XAUTH_PATH "$xauth_path" | ||
16049 | _ACEOF | ||
16050 | |||
16051 | XAUTH_PATH=$xauth_path | ||
16052 | |||
16053 | fi | ||
16054 | |||
16055 | # Check for mail directory | ||
16056 | |||
16057 | # Check whether --with-maildir was given. | ||
16058 | if test "${with_maildir+set}" = set; then : | ||
16059 | withval=$with_maildir; | ||
16060 | if test "X$withval" != X && test "x$withval" != xno && \ | ||
16061 | test "x${withval}" != xyes; then | ||
16062 | |||
16063 | cat >>confdefs.h <<_ACEOF | ||
16064 | #define MAIL_DIRECTORY "$withval" | ||
16065 | _ACEOF | ||
16066 | |||
16067 | fi | ||
16068 | |||
16069 | else | ||
16070 | |||
16071 | if test "X$maildir" != "X"; then | ||
16072 | cat >>confdefs.h <<_ACEOF | ||
16073 | #define MAIL_DIRECTORY "$maildir" | ||
16074 | _ACEOF | ||
16075 | |||
16076 | else | ||
16077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5 | ||
16078 | $as_echo_n "checking Discovering system mail directory... " >&6; } | ||
16079 | if test "$cross_compiling" = yes; then : | ||
16080 | |||
16081 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5 | ||
16082 | $as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;} | ||
16083 | |||
16084 | |||
16085 | else | ||
16086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16087 | /* end confdefs.h. */ | ||
16088 | |||
16089 | #include <stdio.h> | ||
16090 | #include <string.h> | ||
16091 | #ifdef HAVE_PATHS_H | ||
16092 | #include <paths.h> | ||
16093 | #endif | ||
16094 | #ifdef HAVE_MAILLOCK_H | ||
16095 | #include <maillock.h> | ||
16096 | #endif | ||
16097 | #define DATA "conftest.maildir" | ||
16098 | |||
16099 | int | ||
16100 | main () | ||
16101 | { | ||
16102 | |||
16103 | FILE *fd; | ||
16104 | int rc; | ||
16105 | |||
16106 | fd = fopen(DATA,"w"); | ||
16107 | if(fd == NULL) | ||
16108 | exit(1); | ||
16109 | |||
16110 | #if defined (_PATH_MAILDIR) | ||
16111 | if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0) | ||
16112 | exit(1); | ||
16113 | #elif defined (MAILDIR) | ||
16114 | if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0) | ||
16115 | exit(1); | ||
16116 | #elif defined (_PATH_MAIL) | ||
16117 | if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0) | ||
16118 | exit(1); | ||
16119 | #else | ||
16120 | exit (2); | ||
16121 | #endif | ||
16122 | |||
16123 | exit(0); | ||
16124 | |||
16125 | ; | ||
16126 | return 0; | ||
16127 | } | ||
16128 | _ACEOF | ||
16129 | if ac_fn_c_try_run "$LINENO"; then : | ||
16130 | |||
16131 | maildir_what=`awk -F: '{print $1}' conftest.maildir` | ||
16132 | maildir=`awk -F: '{print $2}' conftest.maildir \ | ||
16133 | | sed 's|/$||'` | ||
16134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5 | ||
16135 | $as_echo "Using: $maildir from $maildir_what" >&6; } | ||
16136 | if test "x$maildir_what" != "x_PATH_MAILDIR"; then | ||
16137 | cat >>confdefs.h <<_ACEOF | ||
16138 | #define MAIL_DIRECTORY "$maildir" | ||
16139 | _ACEOF | ||
16140 | |||
16141 | fi | ||
16142 | |||
16143 | else | ||
16144 | |||
16145 | if test "X$ac_status" = "X2";then | ||
16146 | # our test program didn't find it. Default to /var/spool/mail | ||
16147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5 | ||
16148 | $as_echo "Using: default value of /var/spool/mail" >&6; } | ||
16149 | cat >>confdefs.h <<_ACEOF | ||
16150 | #define MAIL_DIRECTORY "/var/spool/mail" | ||
16151 | _ACEOF | ||
16152 | |||
16153 | else | ||
16154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5 | ||
16155 | $as_echo "*** not found ***" >&6; } | ||
16156 | fi | ||
16157 | |||
16158 | fi | ||
16159 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
16160 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
16161 | fi | ||
16162 | |||
16163 | fi | ||
16164 | |||
16165 | |||
16166 | fi | ||
16167 | # maildir | ||
16168 | |||
16169 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then | ||
16170 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5 | ||
16171 | $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;} | ||
16172 | disable_ptmx_check=yes | ||
16173 | fi | ||
16174 | if test -z "$no_dev_ptmx" ; then | ||
16175 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
16176 | as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh` | ||
16177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5 | ||
16178 | $as_echo_n "checking for \"/dev/ptmx\"... " >&6; } | ||
16179 | if eval \${$as_ac_File+:} false; then : | ||
16180 | $as_echo_n "(cached) " >&6 | ||
16181 | else | ||
16182 | test "$cross_compiling" = yes && | ||
16183 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||
16184 | if test -r ""/dev/ptmx""; then | ||
16185 | eval "$as_ac_File=yes" | ||
16186 | else | ||
16187 | eval "$as_ac_File=no" | ||
16188 | fi | ||
16189 | fi | ||
16190 | eval ac_res=\$$as_ac_File | ||
16191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
16192 | $as_echo "$ac_res" >&6; } | ||
16193 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : | ||
16194 | |||
16195 | |||
16196 | cat >>confdefs.h <<_ACEOF | ||
16197 | #define HAVE_DEV_PTMX 1 | ||
16198 | _ACEOF | ||
16199 | |||
16200 | have_dev_ptmx=1 | ||
16201 | |||
16202 | |||
16203 | fi | ||
16204 | |||
16205 | fi | ||
16206 | fi | ||
16207 | |||
16208 | if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then | ||
16209 | as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh` | ||
16210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5 | ||
16211 | $as_echo_n "checking for \"/dev/ptc\"... " >&6; } | ||
16212 | if eval \${$as_ac_File+:} false; then : | ||
16213 | $as_echo_n "(cached) " >&6 | ||
16214 | else | ||
16215 | test "$cross_compiling" = yes && | ||
16216 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||
16217 | if test -r ""/dev/ptc""; then | ||
16218 | eval "$as_ac_File=yes" | ||
16219 | else | ||
16220 | eval "$as_ac_File=no" | ||
16221 | fi | ||
16222 | fi | ||
16223 | eval ac_res=\$$as_ac_File | ||
16224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
16225 | $as_echo "$ac_res" >&6; } | ||
16226 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : | ||
16227 | |||
16228 | |||
16229 | cat >>confdefs.h <<_ACEOF | ||
16230 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
16231 | _ACEOF | ||
16232 | |||
16233 | have_dev_ptc=1 | ||
16234 | |||
16235 | |||
16236 | fi | ||
16237 | |||
16238 | else | ||
16239 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5 | ||
16240 | $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;} | ||
16241 | fi | ||
16242 | |||
16243 | # Options from here on. Some of these are preset by platform above | ||
16244 | |||
16245 | # Check whether --with-mantype was given. | ||
16246 | if test "${with_mantype+set}" = set; then : | ||
16247 | withval=$with_mantype; | ||
16248 | case "$withval" in | ||
16249 | man|cat|doc) | ||
16250 | MANTYPE=$withval | ||
16251 | ;; | ||
16252 | *) | ||
16253 | as_fn_error $? "invalid man type: $withval" "$LINENO" 5 | ||
16254 | ;; | ||
16255 | esac | ||
16256 | |||
16257 | |||
16258 | fi | ||
16259 | |||
16260 | if test -z "$MANTYPE"; then | ||
16261 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
16262 | for ac_prog in nroff awf | ||
16263 | do | ||
16264 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
16265 | set dummy $ac_prog; ac_word=$2 | ||
16266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
16267 | $as_echo_n "checking for $ac_word... " >&6; } | ||
16268 | if ${ac_cv_path_NROFF+:} false; then : | ||
16269 | $as_echo_n "(cached) " >&6 | ||
16270 | else | ||
16271 | case $NROFF in | ||
16272 | [\\/]* | ?:[\\/]*) | ||
16273 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
16274 | ;; | ||
16275 | *) | ||
16276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16277 | for as_dir in $TestPath | ||
16278 | do | ||
16279 | IFS=$as_save_IFS | ||
16280 | test -z "$as_dir" && as_dir=. | ||
16281 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16282 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
16283 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
16284 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16285 | break 2 | ||
16286 | fi | ||
16287 | done | ||
16288 | done | ||
16289 | IFS=$as_save_IFS | ||
16290 | |||
16291 | ;; | ||
16292 | esac | ||
16293 | fi | ||
16294 | NROFF=$ac_cv_path_NROFF | ||
16295 | if test -n "$NROFF"; then | ||
16296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 | ||
16297 | $as_echo "$NROFF" >&6; } | ||
16298 | else | ||
16299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16300 | $as_echo "no" >&6; } | ||
16301 | fi | ||
16302 | |||
16303 | |||
16304 | test -n "$NROFF" && break | ||
16305 | done | ||
16306 | test -n "$NROFF" || NROFF="/bin/false" | ||
16307 | |||
16308 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
16309 | MANTYPE=doc | ||
16310 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
16311 | MANTYPE=man | ||
16312 | else | ||
16313 | MANTYPE=cat | ||
16314 | fi | ||
16315 | fi | ||
16316 | |||
16317 | if test "$MANTYPE" = "doc"; then | ||
16318 | mansubdir=man; | ||
16319 | else | ||
16320 | mansubdir=$MANTYPE; | ||
16321 | fi | ||
16322 | |||
16323 | |||
16324 | # Check whether to enable MD5 passwords | ||
16325 | MD5_MSG="no" | ||
16326 | |||
16327 | # Check whether --with-md5-passwords was given. | ||
16328 | if test "${with_md5_passwords+set}" = set; then : | ||
16329 | withval=$with_md5_passwords; | ||
16330 | if test "x$withval" != "xno" ; then | ||
16331 | |||
16332 | $as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h | ||
16333 | |||
16334 | MD5_MSG="yes" | ||
16335 | fi | ||
16336 | |||
16337 | |||
16338 | fi | ||
16339 | |||
16340 | |||
16341 | # Whether to disable shadow password support | ||
16342 | |||
16343 | # Check whether --with-shadow was given. | ||
16344 | if test "${with_shadow+set}" = set; then : | ||
16345 | withval=$with_shadow; | ||
16346 | if test "x$withval" = "xno" ; then | ||
16347 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h | ||
16348 | |||
16349 | disable_shadow=yes | ||
16350 | fi | ||
16351 | |||
16352 | |||
16353 | fi | ||
16354 | |||
16355 | |||
16356 | if test -z "$disable_shadow" ; then | ||
16357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5 | ||
16358 | $as_echo_n "checking if the systems has expire shadow information... " >&6; } | ||
16359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16360 | /* end confdefs.h. */ | ||
16361 | |||
16362 | #include <sys/types.h> | ||
16363 | #include <shadow.h> | ||
16364 | struct spwd sp; | ||
16365 | |||
16366 | int | ||
16367 | main () | ||
16368 | { | ||
16369 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
16370 | ; | ||
16371 | return 0; | ||
16372 | } | ||
16373 | _ACEOF | ||
16374 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16375 | sp_expire_available=yes | ||
16376 | fi | ||
16377 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16378 | |||
16379 | if test "x$sp_expire_available" = "xyes" ; then | ||
16380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16381 | $as_echo "yes" >&6; } | ||
16382 | |||
16383 | $as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h | ||
16384 | |||
16385 | else | ||
16386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16387 | $as_echo "no" >&6; } | ||
16388 | fi | ||
16389 | fi | ||
16390 | |||
16391 | # Use ip address instead of hostname in $DISPLAY | ||
16392 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
16393 | DISPLAY_HACK_MSG="yes" | ||
16394 | |||
16395 | $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h | ||
16396 | |||
16397 | else | ||
16398 | DISPLAY_HACK_MSG="no" | ||
16399 | |||
16400 | # Check whether --with-ipaddr-display was given. | ||
16401 | if test "${with_ipaddr_display+set}" = set; then : | ||
16402 | withval=$with_ipaddr_display; | ||
16403 | if test "x$withval" != "xno" ; then | ||
16404 | $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h | ||
16405 | |||
16406 | DISPLAY_HACK_MSG="yes" | ||
16407 | fi | ||
16408 | |||
16409 | |||
16410 | fi | ||
16411 | |||
16412 | fi | ||
16413 | |||
16414 | # check for /etc/default/login and use it if present. | ||
16415 | # Check whether --enable-etc-default-login was given. | ||
16416 | if test "${enable_etc_default_login+set}" = set; then : | ||
16417 | enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then | ||
16418 | { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5 | ||
16419 | $as_echo "$as_me: /etc/default/login handling disabled" >&6;} | ||
16420 | etc_default_login=no | ||
16421 | else | ||
16422 | etc_default_login=yes | ||
16423 | fi | ||
16424 | else | ||
16425 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; | ||
16426 | then | ||
16427 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5 | ||
16428 | $as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;} | ||
16429 | etc_default_login=no | ||
16430 | else | ||
16431 | etc_default_login=yes | ||
16432 | fi | ||
16433 | |||
16434 | fi | ||
16435 | |||
16436 | |||
16437 | if test "x$etc_default_login" != "xno"; then | ||
16438 | as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh` | ||
16439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5 | ||
16440 | $as_echo_n "checking for \"/etc/default/login\"... " >&6; } | ||
16441 | if eval \${$as_ac_File+:} false; then : | ||
16442 | $as_echo_n "(cached) " >&6 | ||
16443 | else | ||
16444 | test "$cross_compiling" = yes && | ||
16445 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||
16446 | if test -r ""/etc/default/login""; then | ||
16447 | eval "$as_ac_File=yes" | ||
16448 | else | ||
16449 | eval "$as_ac_File=no" | ||
16450 | fi | ||
16451 | fi | ||
16452 | eval ac_res=\$$as_ac_File | ||
16453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
16454 | $as_echo "$ac_res" >&6; } | ||
16455 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : | ||
16456 | external_path_file=/etc/default/login | ||
16457 | fi | ||
16458 | |||
16459 | if test "x$external_path_file" = "x/etc/default/login"; then | ||
16460 | |||
16461 | $as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h | ||
16462 | |||
16463 | fi | ||
16464 | fi | ||
16465 | |||
16466 | if test $ac_cv_func_login_getcapbool = "yes" && \ | ||
16467 | test $ac_cv_header_login_cap_h = "yes" ; then | ||
16468 | external_path_file=/etc/login.conf | ||
16469 | fi | ||
16470 | |||
16471 | # Whether to mess with the default path | ||
16472 | SERVER_PATH_MSG="(default)" | ||
16473 | |||
16474 | # Check whether --with-default-path was given. | ||
16475 | if test "${with_default_path+set}" = set; then : | ||
16476 | withval=$with_default_path; | ||
16477 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
16478 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ||
16479 | --with-default-path=PATH has no effect on this system. | ||
16480 | Edit /etc/login.conf instead." >&5 | ||
16481 | $as_echo "$as_me: WARNING: | ||
16482 | --with-default-path=PATH has no effect on this system. | ||
16483 | Edit /etc/login.conf instead." >&2;} | ||
16484 | elif test "x$withval" != "xno" ; then | ||
16485 | if test ! -z "$external_path_file" ; then | ||
16486 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ||
16487 | --with-default-path=PATH will only be used if PATH is not defined in | ||
16488 | $external_path_file ." >&5 | ||
16489 | $as_echo "$as_me: WARNING: | ||
16490 | --with-default-path=PATH will only be used if PATH is not defined in | ||
16491 | $external_path_file ." >&2;} | ||
16492 | fi | ||
16493 | user_path="$withval" | ||
16494 | SERVER_PATH_MSG="$withval" | ||
16495 | fi | ||
16496 | |||
16497 | else | ||
16498 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
16499 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
16500 | $as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
16501 | else | ||
16502 | if test ! -z "$external_path_file" ; then | ||
16503 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ||
16504 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
16505 | otherwise scp will not work." >&5 | ||
16506 | $as_echo "$as_me: WARNING: | ||
16507 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
16508 | otherwise scp will not work." >&2;} | ||
16509 | fi | ||
16510 | if test "$cross_compiling" = yes; then : | ||
16511 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
16512 | |||
16513 | else | ||
16514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16515 | /* end confdefs.h. */ | ||
16516 | |||
16517 | /* find out what STDPATH is */ | ||
16518 | #include <stdio.h> | ||
16519 | #ifdef HAVE_PATHS_H | ||
16520 | # include <paths.h> | ||
16521 | #endif | ||
16522 | #ifndef _PATH_STDPATH | ||
16523 | # ifdef _PATH_USERPATH /* Irix */ | ||
16524 | # define _PATH_STDPATH _PATH_USERPATH | ||
16525 | # else | ||
16526 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
16527 | # endif | ||
16528 | #endif | ||
16529 | #include <sys/types.h> | ||
16530 | #include <sys/stat.h> | ||
16531 | #include <fcntl.h> | ||
16532 | #define DATA "conftest.stdpath" | ||
16533 | |||
16534 | int | ||
16535 | main () | ||
16536 | { | ||
16537 | |||
16538 | FILE *fd; | ||
16539 | int rc; | ||
16540 | |||
16541 | fd = fopen(DATA,"w"); | ||
16542 | if(fd == NULL) | ||
16543 | exit(1); | ||
16544 | |||
16545 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
16546 | exit(1); | ||
16547 | |||
16548 | exit(0); | ||
16549 | |||
16550 | ; | ||
16551 | return 0; | ||
16552 | } | ||
16553 | _ACEOF | ||
16554 | if ac_fn_c_try_run "$LINENO"; then : | ||
16555 | user_path=`cat conftest.stdpath` | ||
16556 | else | ||
16557 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
16558 | fi | ||
16559 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
16560 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
16561 | fi | ||
16562 | |||
16563 | # make sure $bindir is in USER_PATH so scp will work | ||
16564 | t_bindir="${bindir}" | ||
16565 | while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do | ||
16566 | t_bindir=`eval echo ${t_bindir}` | ||
16567 | case $t_bindir in | ||
16568 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
16569 | esac | ||
16570 | case $t_bindir in | ||
16571 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
16572 | esac | ||
16573 | done | ||
16574 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
16575 | if test $? -ne 0 ; then | ||
16576 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
16577 | if test $? -ne 0 ; then | ||
16578 | user_path=$user_path:$t_bindir | ||
16579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
16580 | $as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; } | ||
16581 | fi | ||
16582 | fi | ||
16583 | fi | ||
16584 | |||
16585 | fi | ||
16586 | |||
16587 | if test "x$external_path_file" != "x/etc/login.conf" ; then | ||
16588 | |||
16589 | cat >>confdefs.h <<_ACEOF | ||
16590 | #define USER_PATH "$user_path" | ||
16591 | _ACEOF | ||
16592 | |||
16593 | |||
16594 | fi | ||
16595 | |||
16596 | # Set superuser path separately to user path | ||
16597 | |||
16598 | # Check whether --with-superuser-path was given. | ||
16599 | if test "${with_superuser_path+set}" = set; then : | ||
16600 | withval=$with_superuser_path; | ||
16601 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
16602 | test "x${withval}" != "xyes"; then | ||
16603 | |||
16604 | cat >>confdefs.h <<_ACEOF | ||
16605 | #define SUPERUSER_PATH "$withval" | ||
16606 | _ACEOF | ||
16607 | |||
16608 | superuser_path=$withval | ||
16609 | fi | ||
16610 | |||
16611 | |||
16612 | fi | ||
16613 | |||
16614 | |||
16615 | |||
16616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
16617 | $as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; } | ||
16618 | IPV4_IN6_HACK_MSG="no" | ||
16619 | |||
16620 | # Check whether --with-4in6 was given. | ||
16621 | if test "${with_4in6+set}" = set; then : | ||
16622 | withval=$with_4in6; | ||
16623 | if test "x$withval" != "xno" ; then | ||
16624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16625 | $as_echo "yes" >&6; } | ||
16626 | |||
16627 | $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h | ||
16628 | |||
16629 | IPV4_IN6_HACK_MSG="yes" | ||
16630 | else | ||
16631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16632 | $as_echo "no" >&6; } | ||
16633 | fi | ||
16634 | |||
16635 | else | ||
16636 | |||
16637 | if test "x$inet6_default_4in6" = "xyes"; then | ||
16638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 | ||
16639 | $as_echo "yes (default)" >&6; } | ||
16640 | $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h | ||
16641 | |||
16642 | IPV4_IN6_HACK_MSG="yes" | ||
16643 | else | ||
16644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 | ||
16645 | $as_echo "no (default)" >&6; } | ||
16646 | fi | ||
16647 | |||
16648 | |||
16649 | fi | ||
16650 | |||
16651 | |||
16652 | # Whether to enable BSD auth support | ||
16653 | BSD_AUTH_MSG=no | ||
16654 | |||
16655 | # Check whether --with-bsd-auth was given. | ||
16656 | if test "${with_bsd_auth+set}" = set; then : | ||
16657 | withval=$with_bsd_auth; | ||
16658 | if test "x$withval" != "xno" ; then | ||
16659 | |||
16660 | $as_echo "#define BSD_AUTH 1" >>confdefs.h | ||
16661 | |||
16662 | BSD_AUTH_MSG=yes | ||
16663 | fi | ||
16664 | |||
16665 | |||
16666 | fi | ||
16667 | |||
16668 | |||
16669 | # Where to place sshd.pid | ||
16670 | piddir=/var/run | ||
16671 | # make sure the directory exists | ||
16672 | if test ! -d $piddir ; then | ||
16673 | piddir=`eval echo ${sysconfdir}` | ||
16674 | case $piddir in | ||
16675 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
16676 | esac | ||
16677 | fi | ||
16678 | |||
16679 | |||
16680 | # Check whether --with-pid-dir was given. | ||
16681 | if test "${with_pid_dir+set}" = set; then : | ||
16682 | withval=$with_pid_dir; | ||
16683 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
16684 | test "x${withval}" != "xyes"; then | ||
16685 | piddir=$withval | ||
16686 | if test ! -d $piddir ; then | ||
16687 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5 | ||
16688 | $as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
16689 | fi | ||
16690 | fi | ||
16691 | |||
16692 | |||
16693 | fi | ||
16694 | |||
16695 | |||
16696 | |||
16697 | cat >>confdefs.h <<_ACEOF | ||
16698 | #define _PATH_SSH_PIDDIR "$piddir" | ||
16699 | _ACEOF | ||
16700 | |||
16701 | |||
16702 | |||
16703 | # Check whether --enable-lastlog was given. | ||
16704 | if test "${enable_lastlog+set}" = set; then : | ||
16705 | enableval=$enable_lastlog; | ||
16706 | if test "x$enableval" = "xno" ; then | ||
16707 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
16708 | |||
16709 | fi | ||
16710 | |||
16711 | |||
16712 | fi | ||
16713 | |||
16714 | # Check whether --enable-utmp was given. | ||
16715 | if test "${enable_utmp+set}" = set; then : | ||
16716 | enableval=$enable_utmp; | ||
16717 | if test "x$enableval" = "xno" ; then | ||
16718 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
16719 | |||
16720 | fi | ||
16721 | |||
16722 | |||
16723 | fi | ||
16724 | |||
16725 | # Check whether --enable-utmpx was given. | ||
16726 | if test "${enable_utmpx+set}" = set; then : | ||
16727 | enableval=$enable_utmpx; | ||
16728 | if test "x$enableval" = "xno" ; then | ||
16729 | |||
16730 | $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h | ||
16731 | |||
16732 | fi | ||
16733 | |||
16734 | |||
16735 | fi | ||
16736 | |||
16737 | # Check whether --enable-wtmp was given. | ||
16738 | if test "${enable_wtmp+set}" = set; then : | ||
16739 | enableval=$enable_wtmp; | ||
16740 | if test "x$enableval" = "xno" ; then | ||
16741 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
16742 | |||
16743 | fi | ||
16744 | |||
16745 | |||
16746 | fi | ||
16747 | |||
16748 | # Check whether --enable-wtmpx was given. | ||
16749 | if test "${enable_wtmpx+set}" = set; then : | ||
16750 | enableval=$enable_wtmpx; | ||
16751 | if test "x$enableval" = "xno" ; then | ||
16752 | |||
16753 | $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h | ||
16754 | |||
16755 | fi | ||
16756 | |||
16757 | |||
16758 | fi | ||
16759 | |||
16760 | # Check whether --enable-libutil was given. | ||
16761 | if test "${enable_libutil+set}" = set; then : | ||
16762 | enableval=$enable_libutil; | ||
16763 | if test "x$enableval" = "xno" ; then | ||
16764 | $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h | ||
16765 | |||
16766 | fi | ||
16767 | |||
16768 | |||
16769 | fi | ||
16770 | |||
16771 | # Check whether --enable-pututline was given. | ||
16772 | if test "${enable_pututline+set}" = set; then : | ||
16773 | enableval=$enable_pututline; | ||
16774 | if test "x$enableval" = "xno" ; then | ||
16775 | |||
16776 | $as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h | ||
16777 | |||
16778 | fi | ||
16779 | |||
16780 | |||
16781 | fi | ||
16782 | |||
16783 | # Check whether --enable-pututxline was given. | ||
16784 | if test "${enable_pututxline+set}" = set; then : | ||
16785 | enableval=$enable_pututxline; | ||
16786 | if test "x$enableval" = "xno" ; then | ||
16787 | |||
16788 | $as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h | ||
16789 | |||
16790 | fi | ||
16791 | |||
16792 | |||
16793 | fi | ||
16794 | |||
16795 | |||
16796 | # Check whether --with-lastlog was given. | ||
16797 | if test "${with_lastlog+set}" = set; then : | ||
16798 | withval=$with_lastlog; | ||
16799 | if test "x$withval" = "xno" ; then | ||
16800 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
16801 | |||
16802 | elif test -n "$withval" && test "x${withval}" != "xyes"; then | ||
16803 | conf_lastlog_location=$withval | ||
16804 | fi | ||
16805 | |||
16806 | |||
16807 | fi | ||
16808 | |||
16809 | |||
16810 | |||
16811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5 | ||
16812 | $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; } | ||
16813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16814 | /* end confdefs.h. */ | ||
16815 | |||
16816 | #include <sys/types.h> | ||
16817 | #include <utmp.h> | ||
16818 | #ifdef HAVE_LASTLOG_H | ||
16819 | # include <lastlog.h> | ||
16820 | #endif | ||
16821 | #ifdef HAVE_PATHS_H | ||
16822 | # include <paths.h> | ||
16823 | #endif | ||
16824 | #ifdef HAVE_LOGIN_H | ||
16825 | # include <login.h> | ||
16826 | #endif | ||
16827 | |||
16828 | int | ||
16829 | main () | ||
16830 | { | ||
16831 | char *lastlog = LASTLOG_FILE; | ||
16832 | ; | ||
16833 | return 0; | ||
16834 | } | ||
16835 | _ACEOF | ||
16836 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16838 | $as_echo "yes" >&6; } | ||
16839 | else | ||
16840 | |||
16841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16842 | $as_echo "no" >&6; } | ||
16843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5 | ||
16844 | $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; } | ||
16845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16846 | /* end confdefs.h. */ | ||
16847 | |||
16848 | #include <sys/types.h> | ||
16849 | #include <utmp.h> | ||
16850 | #ifdef HAVE_LASTLOG_H | ||
16851 | # include <lastlog.h> | ||
16852 | #endif | ||
16853 | #ifdef HAVE_PATHS_H | ||
16854 | # include <paths.h> | ||
16855 | #endif | ||
16856 | |||
16857 | int | ||
16858 | main () | ||
16859 | { | ||
16860 | char *lastlog = _PATH_LASTLOG; | ||
16861 | ; | ||
16862 | return 0; | ||
16863 | } | ||
16864 | _ACEOF | ||
16865 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16867 | $as_echo "yes" >&6; } | ||
16868 | else | ||
16869 | |||
16870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16871 | $as_echo "no" >&6; } | ||
16872 | system_lastlog_path=no | ||
16873 | |||
16874 | fi | ||
16875 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16876 | |||
16877 | fi | ||
16878 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16879 | |||
16880 | if test -z "$conf_lastlog_location"; then | ||
16881 | if test x"$system_lastlog_path" = x"no" ; then | ||
16882 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
16883 | if (test -d "$f" || test -f "$f") ; then | ||
16884 | conf_lastlog_location=$f | ||
16885 | fi | ||
16886 | done | ||
16887 | if test -z "$conf_lastlog_location"; then | ||
16888 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5 | ||
16889 | $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
16890 | fi | ||
16891 | fi | ||
16892 | fi | ||
16893 | |||
16894 | if test -n "$conf_lastlog_location"; then | ||
16895 | |||
16896 | cat >>confdefs.h <<_ACEOF | ||
16897 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
16898 | _ACEOF | ||
16899 | |||
16900 | fi | ||
16901 | |||
16902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5 | ||
16903 | $as_echo_n "checking if your system defines UTMP_FILE... " >&6; } | ||
16904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16905 | /* end confdefs.h. */ | ||
16906 | |||
16907 | #include <sys/types.h> | ||
16908 | #include <utmp.h> | ||
16909 | #ifdef HAVE_PATHS_H | ||
16910 | # include <paths.h> | ||
16911 | #endif | ||
16912 | |||
16913 | int | ||
16914 | main () | ||
16915 | { | ||
16916 | char *utmp = UTMP_FILE; | ||
16917 | ; | ||
16918 | return 0; | ||
16919 | } | ||
16920 | _ACEOF | ||
16921 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16923 | $as_echo "yes" >&6; } | ||
16924 | else | ||
16925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16926 | $as_echo "no" >&6; } | ||
16927 | system_utmp_path=no | ||
16928 | |||
16929 | fi | ||
16930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16931 | if test -z "$conf_utmp_location"; then | ||
16932 | if test x"$system_utmp_path" = x"no" ; then | ||
16933 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
16934 | if test -f $f ; then | ||
16935 | conf_utmp_location=$f | ||
16936 | fi | ||
16937 | done | ||
16938 | if test -z "$conf_utmp_location"; then | ||
16939 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
16940 | |||
16941 | fi | ||
16942 | fi | ||
16943 | fi | ||
16944 | if test -n "$conf_utmp_location"; then | ||
16945 | |||
16946 | cat >>confdefs.h <<_ACEOF | ||
16947 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
16948 | _ACEOF | ||
16949 | |||
16950 | fi | ||
16951 | |||
16952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5 | ||
16953 | $as_echo_n "checking if your system defines WTMP_FILE... " >&6; } | ||
16954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16955 | /* end confdefs.h. */ | ||
16956 | |||
16957 | #include <sys/types.h> | ||
16958 | #include <utmp.h> | ||
16959 | #ifdef HAVE_PATHS_H | ||
16960 | # include <paths.h> | ||
16961 | #endif | ||
16962 | |||
16963 | int | ||
16964 | main () | ||
16965 | { | ||
16966 | char *wtmp = WTMP_FILE; | ||
16967 | ; | ||
16968 | return 0; | ||
16969 | } | ||
16970 | _ACEOF | ||
16971 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16973 | $as_echo "yes" >&6; } | ||
16974 | else | ||
16975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16976 | $as_echo "no" >&6; } | ||
16977 | system_wtmp_path=no | ||
16978 | |||
16979 | fi | ||
16980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16981 | if test -z "$conf_wtmp_location"; then | ||
16982 | if test x"$system_wtmp_path" = x"no" ; then | ||
16983 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
16984 | if test -f $f ; then | ||
16985 | conf_wtmp_location=$f | ||
16986 | fi | ||
16987 | done | ||
16988 | if test -z "$conf_wtmp_location"; then | ||
16989 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
16990 | |||
16991 | fi | ||
16992 | fi | ||
16993 | fi | ||
16994 | if test -n "$conf_wtmp_location"; then | ||
16995 | |||
16996 | cat >>confdefs.h <<_ACEOF | ||
16997 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
16998 | _ACEOF | ||
16999 | |||
17000 | fi | ||
17001 | |||
17002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5 | ||
17003 | $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; } | ||
17004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17005 | /* end confdefs.h. */ | ||
17006 | |||
17007 | #include <sys/types.h> | ||
17008 | #include <utmp.h> | ||
17009 | #ifdef HAVE_UTMPX_H | ||
17010 | #include <utmpx.h> | ||
17011 | #endif | ||
17012 | #ifdef HAVE_PATHS_H | ||
17013 | # include <paths.h> | ||
17014 | #endif | ||
17015 | |||
17016 | int | ||
17017 | main () | ||
17018 | { | ||
17019 | char *wtmpx = WTMPX_FILE; | ||
17020 | ; | ||
17021 | return 0; | ||
17022 | } | ||
17023 | _ACEOF | ||
17024 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17026 | $as_echo "yes" >&6; } | ||
17027 | else | ||
17028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17029 | $as_echo "no" >&6; } | ||
17030 | system_wtmpx_path=no | ||
17031 | |||
17032 | fi | ||
17033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17034 | if test -z "$conf_wtmpx_location"; then | ||
17035 | if test x"$system_wtmpx_path" = x"no" ; then | ||
17036 | $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h | ||
17037 | |||
17038 | fi | ||
17039 | else | ||
17040 | |||
17041 | cat >>confdefs.h <<_ACEOF | ||
17042 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
17043 | _ACEOF | ||
17044 | |||
17045 | fi | ||
17046 | |||
17047 | |||
17048 | if test ! -z "$blibpath" ; then | ||
17049 | LDFLAGS="$LDFLAGS $blibflags$blibpath" | ||
17050 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 | ||
17051 | $as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} | ||
17052 | fi | ||
17053 | |||
17054 | ac_fn_c_check_member "$LINENO" "struct lastlog" "ll_line" "ac_cv_member_struct_lastlog_ll_line" " | ||
17055 | #ifdef HAVE_SYS_TYPES_H | ||
17056 | #include <sys/types.h> | ||
17057 | #endif | ||
17058 | #ifdef HAVE_UTMP_H | ||
17059 | #include <utmp.h> | ||
17060 | #endif | ||
17061 | #ifdef HAVE_UTMPX_H | ||
17062 | #include <utmpx.h> | ||
17063 | #endif | ||
17064 | #ifdef HAVE_LASTLOG_H | ||
17065 | #include <lastlog.h> | ||
17066 | #endif | ||
17067 | |||
17068 | " | ||
17069 | if test "x$ac_cv_member_struct_lastlog_ll_line" = xyes; then : | ||
17070 | |||
17071 | else | ||
17072 | |||
17073 | if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then | ||
17074 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
17075 | |||
17076 | fi | ||
17077 | |||
17078 | fi | ||
17079 | |||
17080 | |||
17081 | ac_fn_c_check_member "$LINENO" "struct utmp" "ut_line" "ac_cv_member_struct_utmp_ut_line" " | ||
17082 | #ifdef HAVE_SYS_TYPES_H | ||
17083 | #include <sys/types.h> | ||
17084 | #endif | ||
17085 | #ifdef HAVE_UTMP_H | ||
17086 | #include <utmp.h> | ||
17087 | #endif | ||
17088 | #ifdef HAVE_UTMPX_H | ||
17089 | #include <utmpx.h> | ||
17090 | #endif | ||
17091 | #ifdef HAVE_LASTLOG_H | ||
17092 | #include <lastlog.h> | ||
17093 | #endif | ||
17094 | |||
17095 | " | ||
17096 | if test "x$ac_cv_member_struct_utmp_ut_line" = xyes; then : | ||
17097 | |||
17098 | else | ||
17099 | |||
17100 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
17101 | |||
17102 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
17103 | |||
17104 | |||
17105 | fi | ||
17106 | |||
17107 | |||
17108 | CFLAGS="$CFLAGS $werror_flags" | ||
17109 | |||
17110 | if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then | ||
17111 | TEST_SSH_IPV6=no | ||
17112 | else | ||
17113 | TEST_SSH_IPV6=yes | ||
17114 | fi | ||
17115 | ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default" | ||
17116 | if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then : | ||
17117 | TEST_SSH_IPV6=no | ||
17118 | fi | ||
17119 | |||
17120 | TEST_SSH_IPV6=$TEST_SSH_IPV6 | ||
17121 | |||
17122 | |||
17123 | |||
17124 | ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh" | ||
17125 | |||
17126 | cat >confcache <<\_ACEOF | ||
17127 | # This file is a shell script that caches the results of configure | ||
17128 | # tests run on this system so they can be shared between configure | ||
17129 | # scripts and configure runs, see configure's option --config-cache. | ||
17130 | # It is not useful on other systems. If it contains results you don't | ||
17131 | # want to keep, you may remove or edit it. | ||
17132 | # | ||
17133 | # config.status only pays attention to the cache file if you give it | ||
17134 | # the --recheck option to rerun configure. | ||
17135 | # | ||
17136 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
17137 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
17138 | # following values. | ||
17139 | |||
17140 | _ACEOF | ||
17141 | |||
17142 | # The following way of writing the cache mishandles newlines in values, | ||
17143 | # but we know of no workaround that is simple, portable, and efficient. | ||
17144 | # So, we kill variables containing newlines. | ||
17145 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
17146 | # and sets the high bit in the cache file unless we assign to the vars. | ||
17147 | ( | ||
17148 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
17149 | eval ac_val=\$$ac_var | ||
17150 | case $ac_val in #( | ||
17151 | *${as_nl}*) | ||
17152 | case $ac_var in #( | ||
17153 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
17154 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
17155 | esac | ||
17156 | case $ac_var in #( | ||
17157 | _ | IFS | as_nl) ;; #( | ||
17158 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
17159 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
17160 | esac ;; | ||
17161 | esac | ||
17162 | done | ||
17163 | |||
17164 | (set) 2>&1 | | ||
17165 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
17166 | *${as_nl}ac_space=\ *) | ||
17167 | # `set' does not quote correctly, so add quotes: double-quote | ||
17168 | # substitution turns \\\\ into \\, and sed turns \\ into \. | ||
17169 | sed -n \ | ||
17170 | "s/'/'\\\\''/g; | ||
17171 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
17172 | ;; #( | ||
17173 | *) | ||
17174 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
17175 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
17176 | ;; | ||
17177 | esac | | ||
17178 | sort | ||
17179 | ) | | ||
17180 | sed ' | ||
17181 | /^ac_cv_env_/b end | ||
17182 | t clear | ||
17183 | :clear | ||
17184 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
17185 | t end | ||
17186 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
17187 | :end' >>confcache | ||
17188 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
17189 | if test -w "$cache_file"; then | ||
17190 | if test "x$cache_file" != "x/dev/null"; then | ||
17191 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | ||
17192 | $as_echo "$as_me: updating cache $cache_file" >&6;} | ||
17193 | if test ! -f "$cache_file" || test -h "$cache_file"; then | ||
17194 | cat confcache >"$cache_file" | ||
17195 | else | ||
17196 | case $cache_file in #( | ||
17197 | */* | ?:*) | ||
17198 | mv -f confcache "$cache_file"$$ && | ||
17199 | mv -f "$cache_file"$$ "$cache_file" ;; #( | ||
17200 | *) | ||
17201 | mv -f confcache "$cache_file" ;; | ||
17202 | esac | ||
17203 | fi | ||
17204 | fi | ||
17205 | else | ||
17206 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | ||
17207 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
17208 | fi | ||
17209 | fi | ||
17210 | rm -f confcache | ||
17211 | |||
17212 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
17213 | # Let make expand exec_prefix. | ||
17214 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
17215 | |||
17216 | DEFS=-DHAVE_CONFIG_H | ||
17217 | |||
17218 | ac_libobjs= | ||
17219 | ac_ltlibobjs= | ||
17220 | U= | ||
17221 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
17222 | # 1. Remove the extension, and $U if already installed. | ||
17223 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
17224 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | ||
17225 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
17226 | # will be set to the directory where LIBOBJS objects are built. | ||
17227 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
17228 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | ||
17229 | done | ||
17230 | LIBOBJS=$ac_libobjs | ||
17231 | |||
17232 | LTLIBOBJS=$ac_ltlibobjs | ||
17233 | |||
17234 | |||
17235 | |||
17236 | |||
17237 | : "${CONFIG_STATUS=./config.status}" | ||
17238 | ac_write_fail=0 | ||
17239 | ac_clean_files_save=$ac_clean_files | ||
17240 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
17241 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | ||
17242 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
17243 | as_write_fail=0 | ||
17244 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | ||
17245 | #! $SHELL | ||
17246 | # Generated by $as_me. | ||
17247 | # Run this file to recreate the current configuration. | ||
17248 | # Compiler output produced by configure, useful for debugging | ||
17249 | # configure, is in config.log if it exists. | ||
17250 | |||
17251 | debug=false | ||
17252 | ac_cs_recheck=false | ||
17253 | ac_cs_silent=false | ||
17254 | |||
17255 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
17256 | export SHELL | ||
17257 | _ASEOF | ||
17258 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | ||
17259 | ## -------------------- ## | ||
17260 | ## M4sh Initialization. ## | ||
17261 | ## -------------------- ## | ||
17262 | |||
17263 | # Be more Bourne compatible | ||
17264 | DUALCASE=1; export DUALCASE # for MKS sh | ||
17265 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
17266 | emulate sh | ||
17267 | NULLCMD=: | ||
17268 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
17269 | # is contrary to our usage. Disable this feature. | ||
17270 | alias -g '${1+"$@"}'='"$@"' | ||
17271 | setopt NO_GLOB_SUBST | ||
17272 | else | ||
17273 | case `(set -o) 2>/dev/null` in #( | ||
17274 | *posix*) : | ||
17275 | set -o posix ;; #( | ||
17276 | *) : | ||
17277 | ;; | ||
17278 | esac | ||
17279 | fi | ||
17280 | |||
17281 | |||
17282 | as_nl=' | ||
17283 | ' | ||
17284 | export as_nl | ||
17285 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
17286 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
17287 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
17288 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
17289 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
17290 | # but without wasting forks for bash or zsh. | ||
17291 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
17292 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
17293 | as_echo='print -r --' | ||
17294 | as_echo_n='print -rn --' | ||
17295 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
17296 | as_echo='printf %s\n' | ||
17297 | as_echo_n='printf %s' | ||
17298 | else | ||
17299 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
17300 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
17301 | as_echo_n='/usr/ucb/echo -n' | ||
17302 | else | ||
17303 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
17304 | as_echo_n_body='eval | ||
17305 | arg=$1; | ||
17306 | case $arg in #( | ||
17307 | *"$as_nl"*) | ||
17308 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
17309 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
17310 | esac; | ||
17311 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
17312 | ' | ||
17313 | export as_echo_n_body | ||
17314 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
17315 | fi | ||
17316 | export as_echo_body | ||
17317 | as_echo='sh -c $as_echo_body as_echo' | ||
17318 | fi | ||
17319 | |||
17320 | # The user is always right. | ||
17321 | if test "${PATH_SEPARATOR+set}" != set; then | ||
17322 | PATH_SEPARATOR=: | ||
17323 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
17324 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
17325 | PATH_SEPARATOR=';' | ||
17326 | } | ||
17327 | fi | ||
17328 | |||
17329 | |||
17330 | # IFS | ||
17331 | # We need space, tab and new line, in precisely that order. Quoting is | ||
17332 | # there to prevent editors from complaining about space-tab. | ||
17333 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
17334 | # splitting by setting IFS to empty value.) | ||
17335 | IFS=" "" $as_nl" | ||
17336 | |||
17337 | # Find who we are. Look in the path if we contain no directory separator. | ||
17338 | as_myself= | ||
17339 | case $0 in #(( | ||
17340 | *[\\/]* ) as_myself=$0 ;; | ||
17341 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17342 | for as_dir in $PATH | ||
17343 | do | ||
17344 | IFS=$as_save_IFS | ||
17345 | test -z "$as_dir" && as_dir=. | ||
17346 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
17347 | done | ||
17348 | IFS=$as_save_IFS | ||
17349 | |||
17350 | ;; | ||
17351 | esac | ||
17352 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
17353 | # in which case we are not to be found in the path. | ||
17354 | if test "x$as_myself" = x; then | ||
17355 | as_myself=$0 | ||
17356 | fi | ||
17357 | if test ! -f "$as_myself"; then | ||
17358 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
17359 | exit 1 | ||
17360 | fi | ||
17361 | |||
17362 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
17363 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
17364 | # suppresses any "Segmentation fault" message there. '((' could | ||
17365 | # trigger a bug in pdksh 5.2.14. | ||
17366 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
17367 | do eval test x\${$as_var+set} = xset \ | ||
17368 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
17369 | done | ||
17370 | PS1='$ ' | ||
17371 | PS2='> ' | ||
17372 | PS4='+ ' | ||
17373 | |||
17374 | # NLS nuisances. | ||
17375 | LC_ALL=C | ||
17376 | export LC_ALL | ||
17377 | LANGUAGE=C | ||
17378 | export LANGUAGE | ||
17379 | |||
17380 | # CDPATH. | ||
17381 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
17382 | |||
17383 | |||
17384 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
17385 | # ---------------------------------------- | ||
17386 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
17387 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
17388 | # script with STATUS, using 1 if that was 0. | ||
17389 | as_fn_error () | ||
17390 | { | ||
17391 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
17392 | if test "$4"; then | ||
17393 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
17394 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
17395 | fi | ||
17396 | $as_echo "$as_me: error: $2" >&2 | ||
17397 | as_fn_exit $as_status | ||
17398 | } # as_fn_error | ||
17399 | |||
17400 | |||
17401 | # as_fn_set_status STATUS | ||
17402 | # ----------------------- | ||
17403 | # Set $? to STATUS, without forking. | ||
17404 | as_fn_set_status () | ||
17405 | { | ||
17406 | return $1 | ||
17407 | } # as_fn_set_status | ||
17408 | |||
17409 | # as_fn_exit STATUS | ||
17410 | # ----------------- | ||
17411 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
17412 | as_fn_exit () | ||
17413 | { | ||
17414 | set +e | ||
17415 | as_fn_set_status $1 | ||
17416 | exit $1 | ||
17417 | } # as_fn_exit | ||
17418 | |||
17419 | # as_fn_unset VAR | ||
17420 | # --------------- | ||
17421 | # Portably unset VAR. | ||
17422 | as_fn_unset () | ||
17423 | { | ||
17424 | { eval $1=; unset $1;} | ||
17425 | } | ||
17426 | as_unset=as_fn_unset | ||
17427 | # as_fn_append VAR VALUE | ||
17428 | # ---------------------- | ||
17429 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
17430 | # advantage of any shell optimizations that allow amortized linear growth over | ||
17431 | # repeated appends, instead of the typical quadratic growth present in naive | ||
17432 | # implementations. | ||
17433 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
17434 | eval 'as_fn_append () | ||
17435 | { | ||
17436 | eval $1+=\$2 | ||
17437 | }' | ||
17438 | else | ||
17439 | as_fn_append () | ||
17440 | { | ||
17441 | eval $1=\$$1\$2 | ||
17442 | } | ||
17443 | fi # as_fn_append | ||
17444 | |||
17445 | # as_fn_arith ARG... | ||
17446 | # ------------------ | ||
17447 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
17448 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
17449 | # must be portable across $(()) and expr. | ||
17450 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
17451 | eval 'as_fn_arith () | ||
17452 | { | ||
17453 | as_val=$(( $* )) | ||
17454 | }' | ||
17455 | else | ||
17456 | as_fn_arith () | ||
17457 | { | ||
17458 | as_val=`expr "$@" || test $? -eq 1` | ||
17459 | } | ||
17460 | fi # as_fn_arith | ||
17461 | |||
17462 | |||
17463 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
17464 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
17465 | as_expr=expr | ||
17466 | else | ||
17467 | as_expr=false | ||
17468 | fi | ||
17469 | |||
17470 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
17471 | as_basename=basename | ||
17472 | else | ||
17473 | as_basename=false | ||
17474 | fi | ||
17475 | |||
17476 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
17477 | as_dirname=dirname | ||
17478 | else | ||
17479 | as_dirname=false | ||
17480 | fi | ||
17481 | |||
17482 | as_me=`$as_basename -- "$0" || | ||
17483 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
17484 | X"$0" : 'X\(//\)$' \| \ | ||
17485 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
17486 | $as_echo X/"$0" | | ||
17487 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
17488 | s//\1/ | ||
17489 | q | ||
17490 | } | ||
17491 | /^X\/\(\/\/\)$/{ | ||
17492 | s//\1/ | ||
17493 | q | ||
17494 | } | ||
17495 | /^X\/\(\/\).*/{ | ||
17496 | s//\1/ | ||
17497 | q | ||
17498 | } | ||
17499 | s/.*/./; q'` | ||
17500 | |||
17501 | # Avoid depending upon Character Ranges. | ||
17502 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
17503 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
17504 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
17505 | as_cr_digits='0123456789' | ||
17506 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
17507 | |||
17508 | ECHO_C= ECHO_N= ECHO_T= | ||
17509 | case `echo -n x` in #((((( | ||
17510 | -n*) | ||
17511 | case `echo 'xy\c'` in | ||
17512 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
17513 | xy) ECHO_C='\c';; | ||
17514 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
17515 | ECHO_T=' ';; | ||
17516 | esac;; | ||
17517 | *) | ||
17518 | ECHO_N='-n';; | ||
17519 | esac | ||
17520 | |||
17521 | rm -f conf$$ conf$$.exe conf$$.file | ||
17522 | if test -d conf$$.dir; then | ||
17523 | rm -f conf$$.dir/conf$$.file | ||
17524 | else | ||
17525 | rm -f conf$$.dir | ||
17526 | mkdir conf$$.dir 2>/dev/null | ||
17527 | fi | ||
17528 | if (echo >conf$$.file) 2>/dev/null; then | ||
17529 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
17530 | as_ln_s='ln -s' | ||
17531 | # ... but there are two gotchas: | ||
17532 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
17533 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
17534 | # In both cases, we have to default to `cp -p'. | ||
17535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
17536 | as_ln_s='cp -p' | ||
17537 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
17538 | as_ln_s=ln | ||
17539 | else | ||
17540 | as_ln_s='cp -p' | ||
17541 | fi | ||
17542 | else | ||
17543 | as_ln_s='cp -p' | ||
17544 | fi | ||
17545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
17546 | rmdir conf$$.dir 2>/dev/null | ||
17547 | |||
17548 | |||
17549 | # as_fn_mkdir_p | ||
17550 | # ------------- | ||
17551 | # Create "$as_dir" as a directory, including parents if necessary. | ||
17552 | as_fn_mkdir_p () | ||
17553 | { | ||
17554 | |||
17555 | case $as_dir in #( | ||
17556 | -*) as_dir=./$as_dir;; | ||
17557 | esac | ||
17558 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
17559 | as_dirs= | ||
17560 | while :; do | ||
17561 | case $as_dir in #( | ||
17562 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
17563 | *) as_qdir=$as_dir;; | ||
17564 | esac | ||
17565 | as_dirs="'$as_qdir' $as_dirs" | ||
17566 | as_dir=`$as_dirname -- "$as_dir" || | ||
17567 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
17568 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
17569 | X"$as_dir" : 'X\(//\)$' \| \ | ||
17570 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
17571 | $as_echo X"$as_dir" | | ||
17572 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
17573 | s//\1/ | ||
17574 | q | ||
17575 | } | ||
17576 | /^X\(\/\/\)[^/].*/{ | ||
17577 | s//\1/ | ||
17578 | q | ||
17579 | } | ||
17580 | /^X\(\/\/\)$/{ | ||
17581 | s//\1/ | ||
17582 | q | ||
17583 | } | ||
17584 | /^X\(\/\).*/{ | ||
17585 | s//\1/ | ||
17586 | q | ||
17587 | } | ||
17588 | s/.*/./; q'` | ||
17589 | test -d "$as_dir" && break | ||
17590 | done | ||
17591 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
17592 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
17593 | |||
17594 | |||
17595 | } # as_fn_mkdir_p | ||
17596 | if mkdir -p . 2>/dev/null; then | ||
17597 | as_mkdir_p='mkdir -p "$as_dir"' | ||
17598 | else | ||
17599 | test -d ./-p && rmdir ./-p | ||
17600 | as_mkdir_p=false | ||
17601 | fi | ||
17602 | |||
17603 | if test -x / >/dev/null 2>&1; then | ||
17604 | as_test_x='test -x' | ||
17605 | else | ||
17606 | if ls -dL / >/dev/null 2>&1; then | ||
17607 | as_ls_L_option=L | ||
17608 | else | ||
17609 | as_ls_L_option= | ||
17610 | fi | ||
17611 | as_test_x=' | ||
17612 | eval sh -c '\'' | ||
17613 | if test -d "$1"; then | ||
17614 | test -d "$1/."; | ||
17615 | else | ||
17616 | case $1 in #( | ||
17617 | -*)set "./$1";; | ||
17618 | esac; | ||
17619 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | ||
17620 | ???[sx]*):;;*)false;;esac;fi | ||
17621 | '\'' sh | ||
17622 | ' | ||
17623 | fi | ||
17624 | as_executable_p=$as_test_x | ||
17625 | |||
17626 | # Sed expression to map a string onto a valid CPP name. | ||
17627 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
17628 | |||
17629 | # Sed expression to map a string onto a valid variable name. | ||
17630 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
17631 | |||
17632 | |||
17633 | exec 6>&1 | ||
17634 | ## ----------------------------------- ## | ||
17635 | ## Main body of $CONFIG_STATUS script. ## | ||
17636 | ## ----------------------------------- ## | ||
17637 | _ASEOF | ||
17638 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | ||
17639 | |||
17640 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
17641 | # Save the log message, to keep $0 and so on meaningful, and to | ||
17642 | # report actual input values of CONFIG_FILES etc. instead of their | ||
17643 | # values after options handling. | ||
17644 | ac_log=" | ||
17645 | This file was extended by OpenSSH $as_me Portable, which was | ||
17646 | generated by GNU Autoconf 2.68. Invocation command line was | ||
17647 | |||
17648 | CONFIG_FILES = $CONFIG_FILES | ||
17649 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
17650 | CONFIG_LINKS = $CONFIG_LINKS | ||
17651 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
17652 | $ $0 $@ | ||
17653 | |||
17654 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
17655 | " | ||
17656 | |||
17657 | _ACEOF | ||
17658 | |||
17659 | case $ac_config_files in *" | ||
17660 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | ||
17661 | esac | ||
17662 | |||
17663 | case $ac_config_headers in *" | ||
17664 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | ||
17665 | esac | ||
17666 | |||
17667 | |||
17668 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
17669 | # Files that config.status was made for. | ||
17670 | config_files="$ac_config_files" | ||
17671 | config_headers="$ac_config_headers" | ||
17672 | |||
17673 | _ACEOF | ||
17674 | |||
17675 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
17676 | ac_cs_usage="\ | ||
17677 | \`$as_me' instantiates files and other configuration actions | ||
17678 | from templates according to the current configuration. Unless the files | ||
17679 | and actions are specified as TAGs, all are instantiated by default. | ||
17680 | |||
17681 | Usage: $0 [OPTION]... [TAG]... | ||
17682 | |||
17683 | -h, --help print this help, then exit | ||
17684 | -V, --version print version number and configuration settings, then exit | ||
17685 | --config print configuration, then exit | ||
17686 | -q, --quiet, --silent | ||
17687 | do not print progress messages | ||
17688 | -d, --debug don't remove temporary files | ||
17689 | --recheck update $as_me by reconfiguring in the same conditions | ||
17690 | --file=FILE[:TEMPLATE] | ||
17691 | instantiate the configuration file FILE | ||
17692 | --header=FILE[:TEMPLATE] | ||
17693 | instantiate the configuration header FILE | ||
17694 | |||
17695 | Configuration files: | ||
17696 | $config_files | ||
17697 | |||
17698 | Configuration headers: | ||
17699 | $config_headers | ||
17700 | |||
17701 | Report bugs to <openssh-unix-dev@mindrot.org>." | ||
17702 | |||
17703 | _ACEOF | ||
17704 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
17705 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | ||
17706 | ac_cs_version="\\ | ||
17707 | OpenSSH config.status Portable | ||
17708 | configured by $0, generated by GNU Autoconf 2.68, | ||
17709 | with options \\"\$ac_cs_config\\" | ||
17710 | |||
17711 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
17712 | This config.status script is free software; the Free Software Foundation | ||
17713 | gives unlimited permission to copy, distribute and modify it." | ||
17714 | |||
17715 | ac_pwd='$ac_pwd' | ||
17716 | srcdir='$srcdir' | ||
17717 | INSTALL='$INSTALL' | ||
17718 | AWK='$AWK' | ||
17719 | test -n "\$AWK" || AWK=awk | ||
17720 | _ACEOF | ||
17721 | |||
17722 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
17723 | # The default lists apply if the user does not specify any file. | ||
17724 | ac_need_defaults=: | ||
17725 | while test $# != 0 | ||
17726 | do | ||
17727 | case $1 in | ||
17728 | --*=?*) | ||
17729 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
17730 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
17731 | ac_shift=: | ||
17732 | ;; | ||
17733 | --*=) | ||
17734 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
17735 | ac_optarg= | ||
17736 | ac_shift=: | ||
17737 | ;; | ||
17738 | *) | ||
17739 | ac_option=$1 | ||
17740 | ac_optarg=$2 | ||
17741 | ac_shift=shift | ||
17742 | ;; | ||
17743 | esac | ||
17744 | |||
17745 | case $ac_option in | ||
17746 | # Handling of the options. | ||
17747 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
17748 | ac_cs_recheck=: ;; | ||
17749 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
17750 | $as_echo "$ac_cs_version"; exit ;; | ||
17751 | --config | --confi | --conf | --con | --co | --c ) | ||
17752 | $as_echo "$ac_cs_config"; exit ;; | ||
17753 | --debug | --debu | --deb | --de | --d | -d ) | ||
17754 | debug=: ;; | ||
17755 | --file | --fil | --fi | --f ) | ||
17756 | $ac_shift | ||
17757 | case $ac_optarg in | ||
17758 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
17759 | '') as_fn_error $? "missing file argument" ;; | ||
17760 | esac | ||
17761 | as_fn_append CONFIG_FILES " '$ac_optarg'" | ||
17762 | ac_need_defaults=false;; | ||
17763 | --header | --heade | --head | --hea ) | ||
17764 | $ac_shift | ||
17765 | case $ac_optarg in | ||
17766 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
17767 | esac | ||
17768 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | ||
17769 | ac_need_defaults=false;; | ||
17770 | --he | --h) | ||
17771 | # Conflict between --help and --header | ||
17772 | as_fn_error $? "ambiguous option: \`$1' | ||
17773 | Try \`$0 --help' for more information.";; | ||
17774 | --help | --hel | -h ) | ||
17775 | $as_echo "$ac_cs_usage"; exit ;; | ||
17776 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
17777 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
17778 | ac_cs_silent=: ;; | ||
17779 | |||
17780 | # This is an error. | ||
17781 | -*) as_fn_error $? "unrecognized option: \`$1' | ||
17782 | Try \`$0 --help' for more information." ;; | ||
17783 | |||
17784 | *) as_fn_append ac_config_targets " $1" | ||
17785 | ac_need_defaults=false ;; | ||
17786 | |||
17787 | esac | ||
17788 | shift | ||
17789 | done | ||
17790 | |||
17791 | ac_configure_extra_args= | ||
17792 | |||
17793 | if $ac_cs_silent; then | ||
17794 | exec 6>/dev/null | ||
17795 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
17796 | fi | ||
17797 | |||
17798 | _ACEOF | ||
17799 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
17800 | if \$ac_cs_recheck; then | ||
17801 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
17802 | shift | ||
17803 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | ||
17804 | CONFIG_SHELL='$SHELL' | ||
17805 | export CONFIG_SHELL | ||
17806 | exec "\$@" | ||
17807 | fi | ||
17808 | |||
17809 | _ACEOF | ||
17810 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
17811 | exec 5>>config.log | ||
17812 | { | ||
17813 | echo | ||
17814 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
17815 | ## Running $as_me. ## | ||
17816 | _ASBOX | ||
17817 | $as_echo "$ac_log" | ||
17818 | } >&5 | ||
17819 | |||
17820 | _ACEOF | ||
17821 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
17822 | _ACEOF | ||
17823 | |||
17824 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
17825 | |||
17826 | # Handling of arguments. | ||
17827 | for ac_config_target in $ac_config_targets | ||
17828 | do | ||
17829 | case $ac_config_target in | ||
17830 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
17831 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
17832 | "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; | ||
17833 | "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; | ||
17834 | "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;; | ||
17835 | "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
17836 | "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;; | ||
17837 | "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;; | ||
17838 | |||
17839 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | ||
17840 | esac | ||
17841 | done | ||
17842 | |||
17843 | |||
17844 | # If the user did not use the arguments to specify the items to instantiate, | ||
17845 | # then the envvar interface is used. Set only those that are not. | ||
17846 | # We use the long form for the default assignment because of an extremely | ||
17847 | # bizarre bug on SunOS 4.1.3. | ||
17848 | if $ac_need_defaults; then | ||
17849 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
17850 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
17851 | fi | ||
17852 | |||
17853 | # Have a temporary directory for convenience. Make it in the build tree | ||
17854 | # simply because there is no reason against having it here, and in addition, | ||
17855 | # creating and moving files from /tmp can sometimes cause problems. | ||
17856 | # Hook for its removal unless debugging. | ||
17857 | # Note that there is a small window in which the directory will not be cleaned: | ||
17858 | # after its creation but before its name has been assigned to `$tmp'. | ||
17859 | $debug || | ||
17860 | { | ||
17861 | tmp= ac_tmp= | ||
17862 | trap 'exit_status=$? | ||
17863 | : "${ac_tmp:=$tmp}" | ||
17864 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | ||
17865 | ' 0 | ||
17866 | trap 'as_fn_exit 1' 1 2 13 15 | ||
17867 | } | ||
17868 | # Create a (secure) tmp directory for tmp files. | ||
17869 | |||
17870 | { | ||
17871 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
17872 | test -d "$tmp" | ||
17873 | } || | ||
17874 | { | ||
17875 | tmp=./conf$$-$RANDOM | ||
17876 | (umask 077 && mkdir "$tmp") | ||
17877 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | ||
17878 | ac_tmp=$tmp | ||
17879 | |||
17880 | # Set up the scripts for CONFIG_FILES section. | ||
17881 | # No need to generate them if there are no CONFIG_FILES. | ||
17882 | # This happens for instance with `./config.status config.h'. | ||
17883 | if test -n "$CONFIG_FILES"; then | ||
17884 | |||
17885 | |||
17886 | ac_cr=`echo X | tr X '\015'` | ||
17887 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | ||
17888 | # But we know of no other shell where ac_cr would be empty at this | ||
17889 | # point, so we can use a bashism as a fallback. | ||
17890 | if test "x$ac_cr" = x; then | ||
17891 | eval ac_cr=\$\'\\r\' | ||
17892 | fi | ||
17893 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | ||
17894 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | ||
17895 | ac_cs_awk_cr='\\r' | ||
17896 | else | ||
17897 | ac_cs_awk_cr=$ac_cr | ||
17898 | fi | ||
17899 | |||
17900 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | ||
17901 | _ACEOF | ||
17902 | |||
17903 | |||
17904 | { | ||
17905 | echo "cat >conf$$subs.awk <<_ACEOF" && | ||
17906 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | ||
17907 | echo "_ACEOF" | ||
17908 | } >conf$$subs.sh || | ||
17909 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
17910 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | ||
17911 | ac_delim='%!_!# ' | ||
17912 | for ac_last_try in false false false false false :; do | ||
17913 | . ./conf$$subs.sh || | ||
17914 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
17915 | |||
17916 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | ||
17917 | if test $ac_delim_n = $ac_delim_num; then | ||
17918 | break | ||
17919 | elif $ac_last_try; then | ||
17920 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
17921 | else | ||
17922 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
17923 | fi | ||
17924 | done | ||
17925 | rm -f conf$$subs.sh | ||
17926 | |||
17927 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
17928 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | ||
17929 | _ACEOF | ||
17930 | sed -n ' | ||
17931 | h | ||
17932 | s/^/S["/; s/!.*/"]=/ | ||
17933 | p | ||
17934 | g | ||
17935 | s/^[^!]*!// | ||
17936 | :repl | ||
17937 | t repl | ||
17938 | s/'"$ac_delim"'$// | ||
17939 | t delim | ||
17940 | :nl | ||
17941 | h | ||
17942 | s/\(.\{148\}\)..*/\1/ | ||
17943 | t more1 | ||
17944 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | ||
17945 | p | ||
17946 | n | ||
17947 | b repl | ||
17948 | :more1 | ||
17949 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
17950 | p | ||
17951 | g | ||
17952 | s/.\{148\}// | ||
17953 | t nl | ||
17954 | :delim | ||
17955 | h | ||
17956 | s/\(.\{148\}\)..*/\1/ | ||
17957 | t more2 | ||
17958 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | ||
17959 | p | ||
17960 | b | ||
17961 | :more2 | ||
17962 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
17963 | p | ||
17964 | g | ||
17965 | s/.\{148\}// | ||
17966 | t delim | ||
17967 | ' <conf$$subs.awk | sed ' | ||
17968 | /^[^""]/{ | ||
17969 | N | ||
17970 | s/\n// | ||
17971 | } | ||
17972 | ' >>$CONFIG_STATUS || ac_write_fail=1 | ||
17973 | rm -f conf$$subs.awk | ||
17974 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
17975 | _ACAWK | ||
17976 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | ||
17977 | for (key in S) S_is_set[key] = 1 | ||
17978 | FS = "" | ||
17979 | |||
17980 | } | ||
17981 | { | ||
17982 | line = $ 0 | ||
17983 | nfields = split(line, field, "@") | ||
17984 | substed = 0 | ||
17985 | len = length(field[1]) | ||
17986 | for (i = 2; i < nfields; i++) { | ||
17987 | key = field[i] | ||
17988 | keylen = length(key) | ||
17989 | if (S_is_set[key]) { | ||
17990 | value = S[key] | ||
17991 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | ||
17992 | len += length(value) + length(field[++i]) | ||
17993 | substed = 1 | ||
17994 | } else | ||
17995 | len += 1 + keylen | ||
17996 | } | ||
17997 | |||
17998 | print line | ||
17999 | } | ||
18000 | |||
18001 | _ACAWK | ||
18002 | _ACEOF | ||
18003 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
18004 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | ||
18005 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | ||
18006 | else | ||
18007 | cat | ||
18008 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | ||
18009 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | ||
18010 | _ACEOF | ||
18011 | |||
18012 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | ||
18013 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | ||
18014 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
18015 | # (actually we leave an empty line to preserve line numbers). | ||
18016 | if test "x$srcdir" = x.; then | ||
18017 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | ||
18018 | h | ||
18019 | s/// | ||
18020 | s/^/:/ | ||
18021 | s/[ ]*$/:/ | ||
18022 | s/:\$(srcdir):/:/g | ||
18023 | s/:\${srcdir}:/:/g | ||
18024 | s/:@srcdir@:/:/g | ||
18025 | s/^:*// | ||
18026 | s/:*$// | ||
18027 | x | ||
18028 | s/\(=[ ]*\).*/\1/ | ||
18029 | G | ||
18030 | s/\n// | ||
18031 | s/^[^=]*=[ ]*$// | ||
18032 | }' | ||
18033 | fi | ||
18034 | |||
18035 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
18036 | fi # test -n "$CONFIG_FILES" | ||
18037 | |||
18038 | # Set up the scripts for CONFIG_HEADERS section. | ||
18039 | # No need to generate them if there are no CONFIG_HEADERS. | ||
18040 | # This happens for instance with `./config.status Makefile'. | ||
18041 | if test -n "$CONFIG_HEADERS"; then | ||
18042 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | ||
18043 | BEGIN { | ||
18044 | _ACEOF | ||
18045 | |||
18046 | # Transform confdefs.h into an awk script `defines.awk', embedded as | ||
18047 | # here-document in config.status, that substitutes the proper values into | ||
18048 | # config.h.in to produce config.h. | ||
18049 | |||
18050 | # Create a delimiter string that does not exist in confdefs.h, to ease | ||
18051 | # handling of long lines. | ||
18052 | ac_delim='%!_!# ' | ||
18053 | for ac_last_try in false false :; do | ||
18054 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | ||
18055 | if test -z "$ac_tt"; then | ||
18056 | break | ||
18057 | elif $ac_last_try; then | ||
18058 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | ||
18059 | else | ||
18060 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
18061 | fi | ||
18062 | done | ||
18063 | |||
18064 | # For the awk script, D is an array of macro values keyed by name, | ||
18065 | # likewise P contains macro parameters if any. Preserve backslash | ||
18066 | # newline sequences. | ||
18067 | |||
18068 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
18069 | sed -n ' | ||
18070 | s/.\{148\}/&'"$ac_delim"'/g | ||
18071 | t rset | ||
18072 | :rset | ||
18073 | s/^[ ]*#[ ]*define[ ][ ]*/ / | ||
18074 | t def | ||
18075 | d | ||
18076 | :def | ||
18077 | s/\\$// | ||
18078 | t bsnl | ||
18079 | s/["\\]/\\&/g | ||
18080 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
18081 | D["\1"]=" \3"/p | ||
18082 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | ||
18083 | d | ||
18084 | :bsnl | ||
18085 | s/["\\]/\\&/g | ||
18086 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
18087 | D["\1"]=" \3\\\\\\n"\\/p | ||
18088 | t cont | ||
18089 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | ||
18090 | t cont | ||
18091 | d | ||
18092 | :cont | ||
18093 | n | ||
18094 | s/.\{148\}/&'"$ac_delim"'/g | ||
18095 | t clear | ||
18096 | :clear | ||
18097 | s/\\$// | ||
18098 | t bsnlc | ||
18099 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | ||
18100 | d | ||
18101 | :bsnlc | ||
18102 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | ||
18103 | b cont | ||
18104 | ' <confdefs.h | sed ' | ||
18105 | s/'"$ac_delim"'/"\\\ | ||
18106 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | ||
18107 | |||
18108 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
18109 | for (key in D) D_is_set[key] = 1 | ||
18110 | FS = "" | ||
18111 | } | ||
18112 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | ||
18113 | line = \$ 0 | ||
18114 | split(line, arg, " ") | ||
18115 | if (arg[1] == "#") { | ||
18116 | defundef = arg[2] | ||
18117 | mac1 = arg[3] | ||
18118 | } else { | ||
18119 | defundef = substr(arg[1], 2) | ||
18120 | mac1 = arg[2] | ||
18121 | } | ||
18122 | split(mac1, mac2, "(") #) | ||
18123 | macro = mac2[1] | ||
18124 | prefix = substr(line, 1, index(line, defundef) - 1) | ||
18125 | if (D_is_set[macro]) { | ||
18126 | # Preserve the white space surrounding the "#". | ||
18127 | print prefix "define", macro P[macro] D[macro] | ||
18128 | next | ||
18129 | } else { | ||
18130 | # Replace #undef with comments. This is necessary, for example, | ||
18131 | # in the case of _POSIX_SOURCE, which is predefined and required | ||
18132 | # on some systems where configure will not decide to define it. | ||
18133 | if (defundef == "undef") { | ||
18134 | print "/*", prefix defundef, macro, "*/" | ||
18135 | next | ||
18136 | } | ||
18137 | } | ||
18138 | } | ||
18139 | { print } | ||
18140 | _ACAWK | ||
18141 | _ACEOF | ||
18142 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
18143 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | ||
18144 | fi # test -n "$CONFIG_HEADERS" | ||
18145 | |||
18146 | |||
18147 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | ||
18148 | shift | ||
18149 | for ac_tag | ||
18150 | do | ||
18151 | case $ac_tag in | ||
18152 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
18153 | esac | ||
18154 | case $ac_mode$ac_tag in | ||
18155 | :[FHL]*:*);; | ||
18156 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | ||
18157 | :[FH]-) ac_tag=-:-;; | ||
18158 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
18159 | esac | ||
18160 | ac_save_IFS=$IFS | ||
18161 | IFS=: | ||
18162 | set x $ac_tag | ||
18163 | IFS=$ac_save_IFS | ||
18164 | shift | ||
18165 | ac_file=$1 | ||
18166 | shift | ||
18167 | |||
18168 | case $ac_mode in | ||
18169 | :L) ac_source=$1;; | ||
18170 | :[FH]) | ||
18171 | ac_file_inputs= | ||
18172 | for ac_f | ||
18173 | do | ||
18174 | case $ac_f in | ||
18175 | -) ac_f="$ac_tmp/stdin";; | ||
18176 | *) # Look for the file first in the build tree, then in the source tree | ||
18177 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
18178 | # because $ac_f cannot contain `:'. | ||
18179 | test -f "$ac_f" || | ||
18180 | case $ac_f in | ||
18181 | [\\/$]*) false;; | ||
18182 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
18183 | esac || | ||
18184 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | ||
18185 | esac | ||
18186 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | ||
18187 | as_fn_append ac_file_inputs " '$ac_f'" | ||
18188 | done | ||
18189 | |||
18190 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
18191 | # use $as_me), people would be surprised to read: | ||
18192 | # /* config.h. Generated by config.status. */ | ||
18193 | configure_input='Generated from '` | ||
18194 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | ||
18195 | `' by configure.' | ||
18196 | if test x"$ac_file" != x-; then | ||
18197 | configure_input="$ac_file. $configure_input" | ||
18198 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | ||
18199 | $as_echo "$as_me: creating $ac_file" >&6;} | ||
18200 | fi | ||
18201 | # Neutralize special characters interpreted by sed in replacement strings. | ||
18202 | case $configure_input in #( | ||
18203 | *\&* | *\|* | *\\* ) | ||
18204 | ac_sed_conf_input=`$as_echo "$configure_input" | | ||
18205 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | ||
18206 | *) ac_sed_conf_input=$configure_input;; | ||
18207 | esac | ||
18208 | |||
18209 | case $ac_tag in | ||
18210 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | ||
18211 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | ||
18212 | esac | ||
18213 | ;; | ||
18214 | esac | ||
18215 | |||
18216 | ac_dir=`$as_dirname -- "$ac_file" || | ||
18217 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
18218 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
18219 | X"$ac_file" : 'X\(//\)$' \| \ | ||
18220 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
18221 | $as_echo X"$ac_file" | | ||
18222 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
18223 | s//\1/ | ||
18224 | q | ||
18225 | } | ||
18226 | /^X\(\/\/\)[^/].*/{ | ||
18227 | s//\1/ | ||
18228 | q | ||
18229 | } | ||
18230 | /^X\(\/\/\)$/{ | ||
18231 | s//\1/ | ||
18232 | q | ||
18233 | } | ||
18234 | /^X\(\/\).*/{ | ||
18235 | s//\1/ | ||
18236 | q | ||
18237 | } | ||
18238 | s/.*/./; q'` | ||
18239 | as_dir="$ac_dir"; as_fn_mkdir_p | ||
18240 | ac_builddir=. | ||
18241 | |||
18242 | case "$ac_dir" in | ||
18243 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
18244 | *) | ||
18245 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
18246 | # A ".." for each directory in $ac_dir_suffix. | ||
18247 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
18248 | case $ac_top_builddir_sub in | ||
18249 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
18250 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
18251 | esac ;; | ||
18252 | esac | ||
18253 | ac_abs_top_builddir=$ac_pwd | ||
18254 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
18255 | # for backward compatibility: | ||
18256 | ac_top_builddir=$ac_top_build_prefix | ||
18257 | |||
18258 | case $srcdir in | ||
18259 | .) # We are building in place. | ||
18260 | ac_srcdir=. | ||
18261 | ac_top_srcdir=$ac_top_builddir_sub | ||
18262 | ac_abs_top_srcdir=$ac_pwd ;; | ||
18263 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
18264 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
18265 | ac_top_srcdir=$srcdir | ||
18266 | ac_abs_top_srcdir=$srcdir ;; | ||
18267 | *) # Relative name. | ||
18268 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
18269 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
18270 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
18271 | esac | ||
18272 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
18273 | |||
18274 | |||
18275 | case $ac_mode in | ||
18276 | :F) | ||
18277 | # | ||
18278 | # CONFIG_FILE | ||
18279 | # | ||
18280 | |||
18281 | case $INSTALL in | ||
18282 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
18283 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
18284 | esac | ||
18285 | _ACEOF | ||
18286 | |||
18287 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
18288 | # If the template does not know about datarootdir, expand it. | ||
18289 | # FIXME: This hack should be removed a few years after 2.60. | ||
18290 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
18291 | ac_sed_dataroot=' | ||
18292 | /datarootdir/ { | ||
18293 | p | ||
18294 | q | ||
18295 | } | ||
18296 | /@datadir@/p | ||
18297 | /@docdir@/p | ||
18298 | /@infodir@/p | ||
18299 | /@localedir@/p | ||
18300 | /@mandir@/p' | ||
18301 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | ||
18302 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
18303 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
18304 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
18305 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
18306 | _ACEOF | ||
18307 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
18308 | ac_datarootdir_hack=' | ||
18309 | s&@datadir@&$datadir&g | ||
18310 | s&@docdir@&$docdir&g | ||
18311 | s&@infodir@&$infodir&g | ||
18312 | s&@localedir@&$localedir&g | ||
18313 | s&@mandir@&$mandir&g | ||
18314 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
18315 | esac | ||
18316 | _ACEOF | ||
18317 | |||
18318 | # Neutralize VPATH when `$srcdir' = `.'. | ||
18319 | # Shell code in configure.ac might set extrasub. | ||
18320 | # FIXME: do we really want to maintain this feature? | ||
18321 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
18322 | ac_sed_extra="$ac_vpsub | ||
18323 | $extrasub | ||
18324 | _ACEOF | ||
18325 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
18326 | :t | ||
18327 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
18328 | s|@configure_input@|$ac_sed_conf_input|;t t | ||
18329 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
18330 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | ||
18331 | s&@srcdir@&$ac_srcdir&;t t | ||
18332 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
18333 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
18334 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
18335 | s&@builddir@&$ac_builddir&;t t | ||
18336 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
18337 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
18338 | s&@INSTALL@&$ac_INSTALL&;t t | ||
18339 | $ac_datarootdir_hack | ||
18340 | " | ||
18341 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | ||
18342 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
18343 | |||
18344 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
18345 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | ||
18346 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | ||
18347 | "$ac_tmp/out"`; test -z "$ac_out"; } && | ||
18348 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
18349 | which seems to be undefined. Please make sure it is defined" >&5 | ||
18350 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
18351 | which seems to be undefined. Please make sure it is defined" >&2;} | ||
18352 | |||
18353 | rm -f "$ac_tmp/stdin" | ||
18354 | case $ac_file in | ||
18355 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | ||
18356 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | ||
18357 | esac \ | ||
18358 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
18359 | ;; | ||
18360 | :H) | ||
18361 | # | ||
18362 | # CONFIG_HEADER | ||
18363 | # | ||
18364 | if test x"$ac_file" != x-; then | ||
18365 | { | ||
18366 | $as_echo "/* $configure_input */" \ | ||
18367 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | ||
18368 | } >"$ac_tmp/config.h" \ | ||
18369 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
18370 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | ||
18371 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | ||
18372 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | ||
18373 | else | ||
18374 | rm -f "$ac_file" | ||
18375 | mv "$ac_tmp/config.h" "$ac_file" \ | ||
18376 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
18377 | fi | ||
18378 | else | ||
18379 | $as_echo "/* $configure_input */" \ | ||
18380 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | ||
18381 | || as_fn_error $? "could not create -" "$LINENO" 5 | ||
18382 | fi | ||
18383 | ;; | ||
18384 | |||
18385 | |||
18386 | esac | ||
18387 | |||
18388 | done # for ac_tag | ||
18389 | |||
18390 | |||
18391 | as_fn_exit 0 | ||
18392 | _ACEOF | ||
18393 | ac_clean_files=$ac_clean_files_save | ||
18394 | |||
18395 | test $ac_write_fail = 0 || | ||
18396 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | ||
18397 | |||
18398 | |||
18399 | # configure is writing to config.log, and then calls config.status. | ||
18400 | # config.status does its own redirection, appending to config.log. | ||
18401 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
18402 | # by configure, so config.status won't be able to write to it; its | ||
18403 | # output is simply discarded. So we exec the FD to /dev/null, | ||
18404 | # effectively closing config.log, so it can be properly (re)opened and | ||
18405 | # appended to by config.status. When coming back to configure, we | ||
18406 | # need to make the FD available again. | ||
18407 | if test "$no_create" != yes; then | ||
18408 | ac_cs_success=: | ||
18409 | ac_config_status_args= | ||
18410 | test "$silent" = yes && | ||
18411 | ac_config_status_args="$ac_config_status_args --quiet" | ||
18412 | exec 5>/dev/null | ||
18413 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
18414 | exec 5>>config.log | ||
18415 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
18416 | # would make configure fail if this is the last instruction. | ||
18417 | $ac_cs_success || as_fn_exit 1 | ||
18418 | fi | ||
18419 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | ||
18420 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | ||
18421 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | ||
18422 | fi | ||
18423 | |||
18424 | |||
18425 | # Print summary of options | ||
18426 | |||
18427 | # Someone please show me a better way :) | ||
18428 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
18429 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
18430 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
18431 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
18432 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
18433 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
18434 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
18435 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
18436 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
18437 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
18438 | |||
18439 | echo "" | ||
18440 | echo "OpenSSH has been configured with the following options:" | ||
18441 | echo " User binaries: $B" | ||
18442 | echo " System binaries: $C" | ||
18443 | echo " Configuration files: $D" | ||
18444 | echo " Askpass program: $E" | ||
18445 | echo " Manual pages: $F" | ||
18446 | echo " PID file: $G" | ||
18447 | echo " Privilege separation chroot path: $H" | ||
18448 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
18449 | echo " At runtime, sshd will use the path defined in $external_path_file" | ||
18450 | echo " Make sure the path to scp is present, otherwise scp will not work" | ||
18451 | else | ||
18452 | echo " sshd default user PATH: $I" | ||
18453 | if test ! -z "$external_path_file"; then | ||
18454 | echo " (If PATH is set in $external_path_file it will be used instead. If" | ||
18455 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" | ||
18456 | fi | ||
18457 | fi | ||
18458 | if test ! -z "$superuser_path" ; then | ||
18459 | echo " sshd superuser user PATH: $J" | ||
18460 | fi | ||
18461 | echo " Manpage format: $MANTYPE" | ||
18462 | echo " PAM support: $PAM_MSG" | ||
18463 | echo " OSF SIA support: $SIA_MSG" | ||
18464 | echo " KerberosV support: $KRB5_MSG" | ||
18465 | echo " SELinux support: $SELINUX_MSG" | ||
18466 | echo " Smartcard support: $SCARD_MSG" | ||
18467 | echo " S/KEY support: $SKEY_MSG" | ||
18468 | echo " TCP Wrappers support: $TCPW_MSG" | ||
18469 | echo " MD5 password support: $MD5_MSG" | ||
18470 | echo " libedit support: $LIBEDIT_MSG" | ||
18471 | echo " Solaris process contract support: $SPC_MSG" | ||
18472 | echo " Solaris project support: $SP_MSG" | ||
18473 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
18474 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
18475 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
18476 | echo " Random number source: $RAND_MSG" | ||
18477 | echo " Privsep sandbox style: $SANDBOX_STYLE" | ||
18478 | |||
18479 | echo "" | ||
18480 | |||
18481 | echo " Host: ${host}" | ||
18482 | echo " Compiler: ${CC}" | ||
18483 | echo " Compiler flags: ${CFLAGS}" | ||
18484 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
18485 | echo " Linker flags: ${LDFLAGS}" | ||
18486 | echo " Libraries: ${LIBS}" | ||
18487 | if test ! -z "${SSHDLIBS}"; then | ||
18488 | echo " +for sshd: ${SSHDLIBS}" | ||
18489 | fi | ||
18490 | if test ! -z "${SSHLIBS}"; then | ||
18491 | echo " +for ssh: ${SSHLIBS}" | ||
18492 | fi | ||
18493 | |||
18494 | echo "" | ||
18495 | |||
18496 | if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then | ||
18497 | echo "SVR4 style packages are supported with \"make package\"" | ||
18498 | echo "" | ||
18499 | fi | ||
18500 | |||
18501 | if test "x$PAM_MSG" = "xyes" ; then | ||
18502 | echo "PAM is enabled. You may need to install a PAM control file " | ||
18503 | echo "for sshd, otherwise password authentication may fail. " | ||
18504 | echo "Example PAM control files can be found in the contrib/ " | ||
18505 | echo "subdirectory" | ||
18506 | echo "" | ||
18507 | fi | ||
18508 | |||
18509 | if test ! -z "$NO_PEERCHECK" ; then | ||
18510 | echo "WARNING: the operating system that you are using does not" | ||
18511 | echo "appear to support getpeereid(), getpeerucred() or the" | ||
18512 | echo "SO_PEERCRED getsockopt() option. These facilities are used to" | ||
18513 | echo "enforce security checks to prevent unauthorised connections to" | ||
18514 | echo "ssh-agent. Their absence increases the risk that a malicious" | ||
18515 | echo "user can connect to your agent." | ||
18516 | echo "" | ||
18517 | fi | ||
18518 | |||
18519 | if test "$AUDIT_MODULE" = "bsm" ; then | ||
18520 | echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." | ||
18521 | echo "See the Solaris section in README.platform for details." | ||
18522 | fi | ||