diff options
author | Colin Watson <cjwatson@debian.org> | 2011-01-24 11:34:51 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2011-01-24 11:34:51 +0000 |
commit | 478ff799463ca926a8dfbabf058f4e84aaffc65a (patch) | |
tree | 4c30927dab8fb69f5f7be088387025e151225284 /configure | |
parent | 6f8f04b860765da07938bfe1fef017b00c3a3d55 (diff) | |
parent | 43094ebf14c9b16f1ea398bc5b65a7335e947288 (diff) |
Import 5.7p1 tarball
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 32033 |
1 files changed, 32033 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 000000000..6e05311aa --- /dev/null +++ b/configure | |||
@@ -0,0 +1,32033 @@ | |||
1 | #! /bin/sh | ||
2 | # From configure.ac Revision: 1.469 . | ||
3 | # Guess values for system-dependent variables and create Makefiles. | ||
4 | # Generated by GNU Autoconf 2.61 for OpenSSH Portable. | ||
5 | # | ||
6 | # Report bugs to <openssh-unix-dev@mindrot.org>. | ||
7 | # | ||
8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
9 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | ||
10 | # This configure script is free software; the Free Software Foundation | ||
11 | # gives unlimited permission to copy, distribute and modify it. | ||
12 | ## --------------------- ## | ||
13 | ## M4sh Initialization. ## | ||
14 | ## --------------------- ## | ||
15 | |||
16 | # Be more Bourne compatible | ||
17 | DUALCASE=1; export DUALCASE # for MKS sh | ||
18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
19 | emulate sh | ||
20 | NULLCMD=: | ||
21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
22 | # is contrary to our usage. Disable this feature. | ||
23 | alias -g '${1+"$@"}'='"$@"' | ||
24 | setopt NO_GLOB_SUBST | ||
25 | else | ||
26 | case `(set -o) 2>/dev/null` in | ||
27 | *posix*) set -o posix ;; | ||
28 | esac | ||
29 | |||
30 | fi | ||
31 | |||
32 | |||
33 | |||
34 | |||
35 | # PATH needs CR | ||
36 | # Avoid depending upon Character Ranges. | ||
37 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
38 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
39 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
40 | as_cr_digits='0123456789' | ||
41 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
42 | |||
43 | # The user is always right. | ||
44 | if test "${PATH_SEPARATOR+set}" != set; then | ||
45 | echo "#! /bin/sh" >conf$$.sh | ||
46 | echo "exit 0" >>conf$$.sh | ||
47 | chmod +x conf$$.sh | ||
48 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
49 | PATH_SEPARATOR=';' | ||
50 | else | ||
51 | PATH_SEPARATOR=: | ||
52 | fi | ||
53 | rm -f conf$$.sh | ||
54 | fi | ||
55 | |||
56 | # Support unset when possible. | ||
57 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
58 | as_unset=unset | ||
59 | else | ||
60 | as_unset=false | ||
61 | fi | ||
62 | |||
63 | |||
64 | # IFS | ||
65 | # We need space, tab and new line, in precisely that order. Quoting is | ||
66 | # there to prevent editors from complaining about space-tab. | ||
67 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
68 | # splitting by setting IFS to empty value.) | ||
69 | as_nl=' | ||
70 | ' | ||
71 | IFS=" "" $as_nl" | ||
72 | |||
73 | # Find who we are. Look in the path if we contain no directory separator. | ||
74 | case $0 in | ||
75 | *[\\/]* ) as_myself=$0 ;; | ||
76 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
77 | for as_dir in $PATH | ||
78 | do | ||
79 | IFS=$as_save_IFS | ||
80 | test -z "$as_dir" && as_dir=. | ||
81 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
82 | done | ||
83 | IFS=$as_save_IFS | ||
84 | |||
85 | ;; | ||
86 | esac | ||
87 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
88 | # in which case we are not to be found in the path. | ||
89 | if test "x$as_myself" = x; then | ||
90 | as_myself=$0 | ||
91 | fi | ||
92 | if test ! -f "$as_myself"; then | ||
93 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
94 | { (exit 1); exit 1; } | ||
95 | fi | ||
96 | |||
97 | # Work around bugs in pre-3.0 UWIN ksh. | ||
98 | for as_var in ENV MAIL MAILPATH | ||
99 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
100 | done | ||
101 | PS1='$ ' | ||
102 | PS2='> ' | ||
103 | PS4='+ ' | ||
104 | |||
105 | # NLS nuisances. | ||
106 | for as_var in \ | ||
107 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
108 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
109 | LC_TELEPHONE LC_TIME | ||
110 | do | ||
111 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
112 | eval $as_var=C; export $as_var | ||
113 | else | ||
114 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
115 | fi | ||
116 | done | ||
117 | |||
118 | # Required to use basename. | ||
119 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
120 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
121 | as_expr=expr | ||
122 | else | ||
123 | as_expr=false | ||
124 | fi | ||
125 | |||
126 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
127 | as_basename=basename | ||
128 | else | ||
129 | as_basename=false | ||
130 | fi | ||
131 | |||
132 | |||
133 | # Name of the executable. | ||
134 | as_me=`$as_basename -- "$0" || | ||
135 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
136 | X"$0" : 'X\(//\)$' \| \ | ||
137 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
138 | echo X/"$0" | | ||
139 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
140 | s//\1/ | ||
141 | q | ||
142 | } | ||
143 | /^X\/\(\/\/\)$/{ | ||
144 | s//\1/ | ||
145 | q | ||
146 | } | ||
147 | /^X\/\(\/\).*/{ | ||
148 | s//\1/ | ||
149 | q | ||
150 | } | ||
151 | s/.*/./; q'` | ||
152 | |||
153 | # CDPATH. | ||
154 | $as_unset CDPATH | ||
155 | |||
156 | |||
157 | if test "x$CONFIG_SHELL" = x; then | ||
158 | if (eval ":") 2>/dev/null; then | ||
159 | as_have_required=yes | ||
160 | else | ||
161 | as_have_required=no | ||
162 | fi | ||
163 | |||
164 | if test $as_have_required = yes && (eval ": | ||
165 | (as_func_return () { | ||
166 | (exit \$1) | ||
167 | } | ||
168 | as_func_success () { | ||
169 | as_func_return 0 | ||
170 | } | ||
171 | as_func_failure () { | ||
172 | as_func_return 1 | ||
173 | } | ||
174 | as_func_ret_success () { | ||
175 | return 0 | ||
176 | } | ||
177 | as_func_ret_failure () { | ||
178 | return 1 | ||
179 | } | ||
180 | |||
181 | exitcode=0 | ||
182 | if as_func_success; then | ||
183 | : | ||
184 | else | ||
185 | exitcode=1 | ||
186 | echo as_func_success failed. | ||
187 | fi | ||
188 | |||
189 | if as_func_failure; then | ||
190 | exitcode=1 | ||
191 | echo as_func_failure succeeded. | ||
192 | fi | ||
193 | |||
194 | if as_func_ret_success; then | ||
195 | : | ||
196 | else | ||
197 | exitcode=1 | ||
198 | echo as_func_ret_success failed. | ||
199 | fi | ||
200 | |||
201 | if as_func_ret_failure; then | ||
202 | exitcode=1 | ||
203 | echo as_func_ret_failure succeeded. | ||
204 | fi | ||
205 | |||
206 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | ||
207 | : | ||
208 | else | ||
209 | exitcode=1 | ||
210 | echo positional parameters were not saved. | ||
211 | fi | ||
212 | |||
213 | test \$exitcode = 0) || { (exit 1); exit 1; } | ||
214 | |||
215 | ( | ||
216 | as_lineno_1=\$LINENO | ||
217 | as_lineno_2=\$LINENO | ||
218 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | ||
219 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | ||
220 | ") 2> /dev/null; then | ||
221 | : | ||
222 | else | ||
223 | as_candidate_shells= | ||
224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
225 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
226 | do | ||
227 | IFS=$as_save_IFS | ||
228 | test -z "$as_dir" && as_dir=. | ||
229 | case $as_dir in | ||
230 | /*) | ||
231 | for as_base in sh bash ksh sh5; do | ||
232 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | ||
233 | done;; | ||
234 | esac | ||
235 | done | ||
236 | IFS=$as_save_IFS | ||
237 | |||
238 | |||
239 | for as_shell in $as_candidate_shells $SHELL; do | ||
240 | # Try only shells that exist, to save several forks. | ||
241 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||
242 | { ("$as_shell") 2> /dev/null <<\_ASEOF | ||
243 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
244 | emulate sh | ||
245 | NULLCMD=: | ||
246 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
247 | # is contrary to our usage. Disable this feature. | ||
248 | alias -g '${1+"$@"}'='"$@"' | ||
249 | setopt NO_GLOB_SUBST | ||
250 | else | ||
251 | case `(set -o) 2>/dev/null` in | ||
252 | *posix*) set -o posix ;; | ||
253 | esac | ||
254 | |||
255 | fi | ||
256 | |||
257 | |||
258 | : | ||
259 | _ASEOF | ||
260 | }; then | ||
261 | CONFIG_SHELL=$as_shell | ||
262 | as_have_required=yes | ||
263 | if { "$as_shell" 2> /dev/null <<\_ASEOF | ||
264 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
265 | emulate sh | ||
266 | NULLCMD=: | ||
267 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
268 | # is contrary to our usage. Disable this feature. | ||
269 | alias -g '${1+"$@"}'='"$@"' | ||
270 | setopt NO_GLOB_SUBST | ||
271 | else | ||
272 | case `(set -o) 2>/dev/null` in | ||
273 | *posix*) set -o posix ;; | ||
274 | esac | ||
275 | |||
276 | fi | ||
277 | |||
278 | |||
279 | : | ||
280 | (as_func_return () { | ||
281 | (exit $1) | ||
282 | } | ||
283 | as_func_success () { | ||
284 | as_func_return 0 | ||
285 | } | ||
286 | as_func_failure () { | ||
287 | as_func_return 1 | ||
288 | } | ||
289 | as_func_ret_success () { | ||
290 | return 0 | ||
291 | } | ||
292 | as_func_ret_failure () { | ||
293 | return 1 | ||
294 | } | ||
295 | |||
296 | exitcode=0 | ||
297 | if as_func_success; then | ||
298 | : | ||
299 | else | ||
300 | exitcode=1 | ||
301 | echo as_func_success failed. | ||
302 | fi | ||
303 | |||
304 | if as_func_failure; then | ||
305 | exitcode=1 | ||
306 | echo as_func_failure succeeded. | ||
307 | fi | ||
308 | |||
309 | if as_func_ret_success; then | ||
310 | : | ||
311 | else | ||
312 | exitcode=1 | ||
313 | echo as_func_ret_success failed. | ||
314 | fi | ||
315 | |||
316 | if as_func_ret_failure; then | ||
317 | exitcode=1 | ||
318 | echo as_func_ret_failure succeeded. | ||
319 | fi | ||
320 | |||
321 | if ( set x; as_func_ret_success y && test x = "$1" ); then | ||
322 | : | ||
323 | else | ||
324 | exitcode=1 | ||
325 | echo positional parameters were not saved. | ||
326 | fi | ||
327 | |||
328 | test $exitcode = 0) || { (exit 1); exit 1; } | ||
329 | |||
330 | ( | ||
331 | as_lineno_1=$LINENO | ||
332 | as_lineno_2=$LINENO | ||
333 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
334 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | ||
335 | |||
336 | _ASEOF | ||
337 | }; then | ||
338 | break | ||
339 | fi | ||
340 | |||
341 | fi | ||
342 | |||
343 | done | ||
344 | |||
345 | if test "x$CONFIG_SHELL" != x; then | ||
346 | for as_var in BASH_ENV ENV | ||
347 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
348 | done | ||
349 | export CONFIG_SHELL | ||
350 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | ||
351 | fi | ||
352 | |||
353 | |||
354 | if test $as_have_required = no; then | ||
355 | echo This script requires a shell more modern than all the | ||
356 | echo shells that I found on your system. Please install a | ||
357 | echo modern shell, or manually run the script under such a | ||
358 | echo shell if you do have one. | ||
359 | { (exit 1); exit 1; } | ||
360 | fi | ||
361 | |||
362 | |||
363 | fi | ||
364 | |||
365 | fi | ||
366 | |||
367 | |||
368 | |||
369 | (eval "as_func_return () { | ||
370 | (exit \$1) | ||
371 | } | ||
372 | as_func_success () { | ||
373 | as_func_return 0 | ||
374 | } | ||
375 | as_func_failure () { | ||
376 | as_func_return 1 | ||
377 | } | ||
378 | as_func_ret_success () { | ||
379 | return 0 | ||
380 | } | ||
381 | as_func_ret_failure () { | ||
382 | return 1 | ||
383 | } | ||
384 | |||
385 | exitcode=0 | ||
386 | if as_func_success; then | ||
387 | : | ||
388 | else | ||
389 | exitcode=1 | ||
390 | echo as_func_success failed. | ||
391 | fi | ||
392 | |||
393 | if as_func_failure; then | ||
394 | exitcode=1 | ||
395 | echo as_func_failure succeeded. | ||
396 | fi | ||
397 | |||
398 | if as_func_ret_success; then | ||
399 | : | ||
400 | else | ||
401 | exitcode=1 | ||
402 | echo as_func_ret_success failed. | ||
403 | fi | ||
404 | |||
405 | if as_func_ret_failure; then | ||
406 | exitcode=1 | ||
407 | echo as_func_ret_failure succeeded. | ||
408 | fi | ||
409 | |||
410 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | ||
411 | : | ||
412 | else | ||
413 | exitcode=1 | ||
414 | echo positional parameters were not saved. | ||
415 | fi | ||
416 | |||
417 | test \$exitcode = 0") || { | ||
418 | echo No shell found that supports shell functions. | ||
419 | echo Please tell autoconf@gnu.org about your system, | ||
420 | echo including any error possibly output before this | ||
421 | echo message | ||
422 | } | ||
423 | |||
424 | |||
425 | |||
426 | as_lineno_1=$LINENO | ||
427 | as_lineno_2=$LINENO | ||
428 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
429 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | ||
430 | |||
431 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
432 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
433 | # line-number line after each line using $LINENO; the second 'sed' | ||
434 | # does the real work. The second script uses 'N' to pair each | ||
435 | # line-number line with the line containing $LINENO, and appends | ||
436 | # trailing '-' during substitution so that $LINENO is not a special | ||
437 | # case at line end. | ||
438 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
439 | # scripts with optimization help from Paolo Bonzini. Blame Lee | ||
440 | # E. McMahon (1931-1989) for sed's syntax. :-) | ||
441 | sed -n ' | ||
442 | p | ||
443 | /[$]LINENO/= | ||
444 | ' <$as_myself | | ||
445 | sed ' | ||
446 | s/[$]LINENO.*/&-/ | ||
447 | t lineno | ||
448 | b | ||
449 | :lineno | ||
450 | N | ||
451 | :loop | ||
452 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
453 | t loop | ||
454 | s/-\n.*// | ||
455 | ' >$as_me.lineno && | ||
456 | chmod +x "$as_me.lineno" || | ||
457 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
458 | { (exit 1); exit 1; }; } | ||
459 | |||
460 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
461 | # (the dirname of $[0] is not the place where we might find the | ||
462 | # original and so on. Autoconf is especially sensitive to this). | ||
463 | . "./$as_me.lineno" | ||
464 | # Exit status is that of the last command. | ||
465 | exit | ||
466 | } | ||
467 | |||
468 | |||
469 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
470 | as_dirname=dirname | ||
471 | else | ||
472 | as_dirname=false | ||
473 | fi | ||
474 | |||
475 | ECHO_C= ECHO_N= ECHO_T= | ||
476 | case `echo -n x` in | ||
477 | -n*) | ||
478 | case `echo 'x\c'` in | ||
479 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
480 | *) ECHO_C='\c';; | ||
481 | esac;; | ||
482 | *) | ||
483 | ECHO_N='-n';; | ||
484 | esac | ||
485 | |||
486 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
487 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
488 | as_expr=expr | ||
489 | else | ||
490 | as_expr=false | ||
491 | fi | ||
492 | |||
493 | rm -f conf$$ conf$$.exe conf$$.file | ||
494 | if test -d conf$$.dir; then | ||
495 | rm -f conf$$.dir/conf$$.file | ||
496 | else | ||
497 | rm -f conf$$.dir | ||
498 | mkdir conf$$.dir | ||
499 | fi | ||
500 | echo >conf$$.file | ||
501 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
502 | as_ln_s='ln -s' | ||
503 | # ... but there are two gotchas: | ||
504 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
505 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
506 | # In both cases, we have to default to `cp -p'. | ||
507 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
508 | as_ln_s='cp -p' | ||
509 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
510 | as_ln_s=ln | ||
511 | else | ||
512 | as_ln_s='cp -p' | ||
513 | fi | ||
514 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
515 | rmdir conf$$.dir 2>/dev/null | ||
516 | |||
517 | if mkdir -p . 2>/dev/null; then | ||
518 | as_mkdir_p=: | ||
519 | else | ||
520 | test -d ./-p && rmdir ./-p | ||
521 | as_mkdir_p=false | ||
522 | fi | ||
523 | |||
524 | if test -x / >/dev/null 2>&1; then | ||
525 | as_test_x='test -x' | ||
526 | else | ||
527 | if ls -dL / >/dev/null 2>&1; then | ||
528 | as_ls_L_option=L | ||
529 | else | ||
530 | as_ls_L_option= | ||
531 | fi | ||
532 | as_test_x=' | ||
533 | eval sh -c '\'' | ||
534 | if test -d "$1"; then | ||
535 | test -d "$1/."; | ||
536 | else | ||
537 | case $1 in | ||
538 | -*)set "./$1";; | ||
539 | esac; | ||
540 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | ||
541 | ???[sx]*):;;*)false;;esac;fi | ||
542 | '\'' sh | ||
543 | ' | ||
544 | fi | ||
545 | as_executable_p=$as_test_x | ||
546 | |||
547 | # Sed expression to map a string onto a valid CPP name. | ||
548 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
549 | |||
550 | # Sed expression to map a string onto a valid variable name. | ||
551 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
552 | |||
553 | |||
554 | |||
555 | exec 7<&0 </dev/null 6>&1 | ||
556 | |||
557 | # Name of the host. | ||
558 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | ||
559 | # so uname gets run too. | ||
560 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
561 | |||
562 | # | ||
563 | # Initializations. | ||
564 | # | ||
565 | ac_default_prefix=/usr/local | ||
566 | ac_clean_files= | ||
567 | ac_config_libobj_dir=. | ||
568 | LIBOBJS= | ||
569 | cross_compiling=no | ||
570 | subdirs= | ||
571 | MFLAGS= | ||
572 | MAKEFLAGS= | ||
573 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
574 | |||
575 | # Identity of this package. | ||
576 | PACKAGE_NAME='OpenSSH' | ||
577 | PACKAGE_TARNAME='openssh' | ||
578 | PACKAGE_VERSION='Portable' | ||
579 | PACKAGE_STRING='OpenSSH Portable' | ||
580 | PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org' | ||
581 | |||
582 | ac_unique_file="ssh.c" | ||
583 | # Factoring default headers for most tests. | ||
584 | ac_includes_default="\ | ||
585 | #include <stdio.h> | ||
586 | #ifdef HAVE_SYS_TYPES_H | ||
587 | # include <sys/types.h> | ||
588 | #endif | ||
589 | #ifdef HAVE_SYS_STAT_H | ||
590 | # include <sys/stat.h> | ||
591 | #endif | ||
592 | #ifdef STDC_HEADERS | ||
593 | # include <stdlib.h> | ||
594 | # include <stddef.h> | ||
595 | #else | ||
596 | # ifdef HAVE_STDLIB_H | ||
597 | # include <stdlib.h> | ||
598 | # endif | ||
599 | #endif | ||
600 | #ifdef HAVE_STRING_H | ||
601 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||
602 | # include <memory.h> | ||
603 | # endif | ||
604 | # include <string.h> | ||
605 | #endif | ||
606 | #ifdef HAVE_STRINGS_H | ||
607 | # include <strings.h> | ||
608 | #endif | ||
609 | #ifdef HAVE_INTTYPES_H | ||
610 | # include <inttypes.h> | ||
611 | #endif | ||
612 | #ifdef HAVE_STDINT_H | ||
613 | # include <stdint.h> | ||
614 | #endif | ||
615 | #ifdef HAVE_UNISTD_H | ||
616 | # include <unistd.h> | ||
617 | #endif" | ||
618 | |||
619 | ac_subst_vars='SHELL | ||
620 | PATH_SEPARATOR | ||
621 | PACKAGE_NAME | ||
622 | PACKAGE_TARNAME | ||
623 | PACKAGE_VERSION | ||
624 | PACKAGE_STRING | ||
625 | PACKAGE_BUGREPORT | ||
626 | exec_prefix | ||
627 | prefix | ||
628 | program_transform_name | ||
629 | bindir | ||
630 | sbindir | ||
631 | libexecdir | ||
632 | datarootdir | ||
633 | datadir | ||
634 | sysconfdir | ||
635 | sharedstatedir | ||
636 | localstatedir | ||
637 | includedir | ||
638 | oldincludedir | ||
639 | docdir | ||
640 | infodir | ||
641 | htmldir | ||
642 | dvidir | ||
643 | pdfdir | ||
644 | psdir | ||
645 | libdir | ||
646 | localedir | ||
647 | mandir | ||
648 | DEFS | ||
649 | ECHO_C | ||
650 | ECHO_N | ||
651 | ECHO_T | ||
652 | LIBS | ||
653 | build_alias | ||
654 | host_alias | ||
655 | target_alias | ||
656 | CC | ||
657 | CFLAGS | ||
658 | LDFLAGS | ||
659 | CPPFLAGS | ||
660 | ac_ct_CC | ||
661 | EXEEXT | ||
662 | OBJEXT | ||
663 | build | ||
664 | build_cpu | ||
665 | build_vendor | ||
666 | build_os | ||
667 | host | ||
668 | host_cpu | ||
669 | host_vendor | ||
670 | host_os | ||
671 | CPP | ||
672 | GREP | ||
673 | EGREP | ||
674 | AWK | ||
675 | RANLIB | ||
676 | INSTALL_PROGRAM | ||
677 | INSTALL_SCRIPT | ||
678 | INSTALL_DATA | ||
679 | AR | ||
680 | CAT | ||
681 | KILL | ||
682 | PERL | ||
683 | SED | ||
684 | ENT | ||
685 | TEST_MINUS_S_SH | ||
686 | SH | ||
687 | GROFF | ||
688 | NROFF | ||
689 | MANDOC | ||
690 | TEST_SHELL | ||
691 | MANFMT | ||
692 | PATH_GROUPADD_PROG | ||
693 | PATH_USERADD_PROG | ||
694 | MAKE_PACKAGE_SUPPORTED | ||
695 | STARTUP_SCRIPT_SHELL | ||
696 | LOGIN_PROGRAM_FALLBACK | ||
697 | PATH_PASSWD_PROG | ||
698 | LD | ||
699 | SSHDLIBS | ||
700 | PKGCONFIG | ||
701 | LIBEDIT | ||
702 | TEST_SSH_SHA256 | ||
703 | TEST_SSH_ECC | ||
704 | COMMENT_OUT_ECC | ||
705 | INSTALL_SSH_RAND_HELPER | ||
706 | SSH_PRIVSEP_USER | ||
707 | PROG_LS | ||
708 | PROG_NETSTAT | ||
709 | PROG_ARP | ||
710 | PROG_IFCONFIG | ||
711 | PROG_JSTAT | ||
712 | PROG_PS | ||
713 | PROG_SAR | ||
714 | PROG_W | ||
715 | PROG_WHO | ||
716 | PROG_LAST | ||
717 | PROG_LASTLOG | ||
718 | PROG_DF | ||
719 | PROG_VMSTAT | ||
720 | PROG_UPTIME | ||
721 | PROG_IPCS | ||
722 | PROG_TAIL | ||
723 | INSTALL_SSH_PRNG_CMDS | ||
724 | KRB5CONF | ||
725 | PRIVSEP_PATH | ||
726 | xauth_path | ||
727 | STRIP_OPT | ||
728 | XAUTH_PATH | ||
729 | MANTYPE | ||
730 | mansubdir | ||
731 | user_path | ||
732 | piddir | ||
733 | TEST_SSH_IPV6 | ||
734 | LIBOBJS | ||
735 | LTLIBOBJS' | ||
736 | ac_subst_files='' | ||
737 | ac_precious_vars='build_alias | ||
738 | host_alias | ||
739 | target_alias | ||
740 | CC | ||
741 | CFLAGS | ||
742 | LDFLAGS | ||
743 | LIBS | ||
744 | CPPFLAGS | ||
745 | CPP' | ||
746 | |||
747 | |||
748 | # Initialize some variables set by options. | ||
749 | ac_init_help= | ||
750 | ac_init_version=false | ||
751 | # The variables have the same names as the options, with | ||
752 | # dashes changed to underlines. | ||
753 | cache_file=/dev/null | ||
754 | exec_prefix=NONE | ||
755 | no_create= | ||
756 | no_recursion= | ||
757 | prefix=NONE | ||
758 | program_prefix=NONE | ||
759 | program_suffix=NONE | ||
760 | program_transform_name=s,x,x, | ||
761 | silent= | ||
762 | site= | ||
763 | srcdir= | ||
764 | verbose= | ||
765 | x_includes=NONE | ||
766 | x_libraries=NONE | ||
767 | |||
768 | # Installation directory options. | ||
769 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
770 | # and all the variables that are supposed to be based on exec_prefix | ||
771 | # by default will actually change. | ||
772 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
773 | # (The list follows the same order as the GNU Coding Standards.) | ||
774 | bindir='${exec_prefix}/bin' | ||
775 | sbindir='${exec_prefix}/sbin' | ||
776 | libexecdir='${exec_prefix}/libexec' | ||
777 | datarootdir='${prefix}/share' | ||
778 | datadir='${datarootdir}' | ||
779 | sysconfdir='${prefix}/etc' | ||
780 | sharedstatedir='${prefix}/com' | ||
781 | localstatedir='${prefix}/var' | ||
782 | includedir='${prefix}/include' | ||
783 | oldincludedir='/usr/include' | ||
784 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
785 | infodir='${datarootdir}/info' | ||
786 | htmldir='${docdir}' | ||
787 | dvidir='${docdir}' | ||
788 | pdfdir='${docdir}' | ||
789 | psdir='${docdir}' | ||
790 | libdir='${exec_prefix}/lib' | ||
791 | localedir='${datarootdir}/locale' | ||
792 | mandir='${datarootdir}/man' | ||
793 | |||
794 | ac_prev= | ||
795 | ac_dashdash= | ||
796 | for ac_option | ||
797 | do | ||
798 | # If the previous option needs an argument, assign it. | ||
799 | if test -n "$ac_prev"; then | ||
800 | eval $ac_prev=\$ac_option | ||
801 | ac_prev= | ||
802 | continue | ||
803 | fi | ||
804 | |||
805 | case $ac_option in | ||
806 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
807 | *) ac_optarg=yes ;; | ||
808 | esac | ||
809 | |||
810 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
811 | |||
812 | case $ac_dashdash$ac_option in | ||
813 | --) | ||
814 | ac_dashdash=yes ;; | ||
815 | |||
816 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
817 | ac_prev=bindir ;; | ||
818 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
819 | bindir=$ac_optarg ;; | ||
820 | |||
821 | -build | --build | --buil | --bui | --bu) | ||
822 | ac_prev=build_alias ;; | ||
823 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
824 | build_alias=$ac_optarg ;; | ||
825 | |||
826 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
827 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
828 | ac_prev=cache_file ;; | ||
829 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
830 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
831 | cache_file=$ac_optarg ;; | ||
832 | |||
833 | --config-cache | -C) | ||
834 | cache_file=config.cache ;; | ||
835 | |||
836 | -datadir | --datadir | --datadi | --datad) | ||
837 | ac_prev=datadir ;; | ||
838 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
839 | datadir=$ac_optarg ;; | ||
840 | |||
841 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
842 | | --dataroo | --dataro | --datar) | ||
843 | ac_prev=datarootdir ;; | ||
844 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
845 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
846 | datarootdir=$ac_optarg ;; | ||
847 | |||
848 | -disable-* | --disable-*) | ||
849 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
850 | # Reject names that are not valid shell variable names. | ||
851 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
852 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
853 | { (exit 1); exit 1; }; } | ||
854 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | ||
855 | eval enable_$ac_feature=no ;; | ||
856 | |||
857 | -docdir | --docdir | --docdi | --doc | --do) | ||
858 | ac_prev=docdir ;; | ||
859 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
860 | docdir=$ac_optarg ;; | ||
861 | |||
862 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
863 | ac_prev=dvidir ;; | ||
864 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
865 | dvidir=$ac_optarg ;; | ||
866 | |||
867 | -enable-* | --enable-*) | ||
868 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
869 | # Reject names that are not valid shell variable names. | ||
870 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
871 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
872 | { (exit 1); exit 1; }; } | ||
873 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | ||
874 | eval enable_$ac_feature=\$ac_optarg ;; | ||
875 | |||
876 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
877 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
878 | | --exec | --exe | --ex) | ||
879 | ac_prev=exec_prefix ;; | ||
880 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
881 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
882 | | --exec=* | --exe=* | --ex=*) | ||
883 | exec_prefix=$ac_optarg ;; | ||
884 | |||
885 | -gas | --gas | --ga | --g) | ||
886 | # Obsolete; use --with-gas. | ||
887 | with_gas=yes ;; | ||
888 | |||
889 | -help | --help | --hel | --he | -h) | ||
890 | ac_init_help=long ;; | ||
891 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
892 | ac_init_help=recursive ;; | ||
893 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
894 | ac_init_help=short ;; | ||
895 | |||
896 | -host | --host | --hos | --ho) | ||
897 | ac_prev=host_alias ;; | ||
898 | -host=* | --host=* | --hos=* | --ho=*) | ||
899 | host_alias=$ac_optarg ;; | ||
900 | |||
901 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
902 | ac_prev=htmldir ;; | ||
903 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
904 | | --ht=*) | ||
905 | htmldir=$ac_optarg ;; | ||
906 | |||
907 | -includedir | --includedir | --includedi | --included | --include \ | ||
908 | | --includ | --inclu | --incl | --inc) | ||
909 | ac_prev=includedir ;; | ||
910 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
911 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
912 | includedir=$ac_optarg ;; | ||
913 | |||
914 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
915 | ac_prev=infodir ;; | ||
916 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
917 | infodir=$ac_optarg ;; | ||
918 | |||
919 | -libdir | --libdir | --libdi | --libd) | ||
920 | ac_prev=libdir ;; | ||
921 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
922 | libdir=$ac_optarg ;; | ||
923 | |||
924 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
925 | | --libexe | --libex | --libe) | ||
926 | ac_prev=libexecdir ;; | ||
927 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
928 | | --libexe=* | --libex=* | --libe=*) | ||
929 | libexecdir=$ac_optarg ;; | ||
930 | |||
931 | -localedir | --localedir | --localedi | --localed | --locale) | ||
932 | ac_prev=localedir ;; | ||
933 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
934 | localedir=$ac_optarg ;; | ||
935 | |||
936 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
937 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
938 | ac_prev=localstatedir ;; | ||
939 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
940 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
941 | localstatedir=$ac_optarg ;; | ||
942 | |||
943 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
944 | ac_prev=mandir ;; | ||
945 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
946 | mandir=$ac_optarg ;; | ||
947 | |||
948 | -nfp | --nfp | --nf) | ||
949 | # Obsolete; use --without-fp. | ||
950 | with_fp=no ;; | ||
951 | |||
952 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
953 | | --no-cr | --no-c | -n) | ||
954 | no_create=yes ;; | ||
955 | |||
956 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
957 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
958 | no_recursion=yes ;; | ||
959 | |||
960 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
961 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
962 | | --oldin | --oldi | --old | --ol | --o) | ||
963 | ac_prev=oldincludedir ;; | ||
964 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
965 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
966 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
967 | oldincludedir=$ac_optarg ;; | ||
968 | |||
969 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
970 | ac_prev=prefix ;; | ||
971 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
972 | prefix=$ac_optarg ;; | ||
973 | |||
974 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
975 | | --program-pre | --program-pr | --program-p) | ||
976 | ac_prev=program_prefix ;; | ||
977 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
978 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
979 | program_prefix=$ac_optarg ;; | ||
980 | |||
981 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
982 | | --program-suf | --program-su | --program-s) | ||
983 | ac_prev=program_suffix ;; | ||
984 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
985 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
986 | program_suffix=$ac_optarg ;; | ||
987 | |||
988 | -program-transform-name | --program-transform-name \ | ||
989 | | --program-transform-nam | --program-transform-na \ | ||
990 | | --program-transform-n | --program-transform- \ | ||
991 | | --program-transform | --program-transfor \ | ||
992 | | --program-transfo | --program-transf \ | ||
993 | | --program-trans | --program-tran \ | ||
994 | | --progr-tra | --program-tr | --program-t) | ||
995 | ac_prev=program_transform_name ;; | ||
996 | -program-transform-name=* | --program-transform-name=* \ | ||
997 | | --program-transform-nam=* | --program-transform-na=* \ | ||
998 | | --program-transform-n=* | --program-transform-=* \ | ||
999 | | --program-transform=* | --program-transfor=* \ | ||
1000 | | --program-transfo=* | --program-transf=* \ | ||
1001 | | --program-trans=* | --program-tran=* \ | ||
1002 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
1003 | program_transform_name=$ac_optarg ;; | ||
1004 | |||
1005 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
1006 | ac_prev=pdfdir ;; | ||
1007 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1008 | pdfdir=$ac_optarg ;; | ||
1009 | |||
1010 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1011 | ac_prev=psdir ;; | ||
1012 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1013 | psdir=$ac_optarg ;; | ||
1014 | |||
1015 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1016 | | -silent | --silent | --silen | --sile | --sil) | ||
1017 | silent=yes ;; | ||
1018 | |||
1019 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1020 | ac_prev=sbindir ;; | ||
1021 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1022 | | --sbi=* | --sb=*) | ||
1023 | sbindir=$ac_optarg ;; | ||
1024 | |||
1025 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1026 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1027 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1028 | | --sha | --sh) | ||
1029 | ac_prev=sharedstatedir ;; | ||
1030 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1031 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1032 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1033 | | --sha=* | --sh=*) | ||
1034 | sharedstatedir=$ac_optarg ;; | ||
1035 | |||
1036 | -site | --site | --sit) | ||
1037 | ac_prev=site ;; | ||
1038 | -site=* | --site=* | --sit=*) | ||
1039 | site=$ac_optarg ;; | ||
1040 | |||
1041 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1042 | ac_prev=srcdir ;; | ||
1043 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1044 | srcdir=$ac_optarg ;; | ||
1045 | |||
1046 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1047 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1048 | ac_prev=sysconfdir ;; | ||
1049 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1050 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1051 | sysconfdir=$ac_optarg ;; | ||
1052 | |||
1053 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1054 | ac_prev=target_alias ;; | ||
1055 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1056 | target_alias=$ac_optarg ;; | ||
1057 | |||
1058 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1059 | verbose=yes ;; | ||
1060 | |||
1061 | -version | --version | --versio | --versi | --vers | -V) | ||
1062 | ac_init_version=: ;; | ||
1063 | |||
1064 | -with-* | --with-*) | ||
1065 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1066 | # Reject names that are not valid shell variable names. | ||
1067 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1068 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
1069 | { (exit 1); exit 1; }; } | ||
1070 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | ||
1071 | eval with_$ac_package=\$ac_optarg ;; | ||
1072 | |||
1073 | -without-* | --without-*) | ||
1074 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1075 | # Reject names that are not valid shell variable names. | ||
1076 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1077 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
1078 | { (exit 1); exit 1; }; } | ||
1079 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | ||
1080 | eval with_$ac_package=no ;; | ||
1081 | |||
1082 | --x) | ||
1083 | # Obsolete; use --with-x. | ||
1084 | with_x=yes ;; | ||
1085 | |||
1086 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1087 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1088 | ac_prev=x_includes ;; | ||
1089 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1090 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1091 | x_includes=$ac_optarg ;; | ||
1092 | |||
1093 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1094 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1095 | ac_prev=x_libraries ;; | ||
1096 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1097 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1098 | x_libraries=$ac_optarg ;; | ||
1099 | |||
1100 | -*) { echo "$as_me: error: unrecognized option: $ac_option | ||
1101 | Try \`$0 --help' for more information." >&2 | ||
1102 | { (exit 1); exit 1; }; } | ||
1103 | ;; | ||
1104 | |||
1105 | *=*) | ||
1106 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1107 | # Reject names that are not valid shell variable names. | ||
1108 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
1109 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
1110 | { (exit 1); exit 1; }; } | ||
1111 | eval $ac_envvar=\$ac_optarg | ||
1112 | export $ac_envvar ;; | ||
1113 | |||
1114 | *) | ||
1115 | # FIXME: should be removed in autoconf 3.0. | ||
1116 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1117 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1118 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1119 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
1120 | ;; | ||
1121 | |||
1122 | esac | ||
1123 | done | ||
1124 | |||
1125 | if test -n "$ac_prev"; then | ||
1126 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1127 | { echo "$as_me: error: missing argument to $ac_option" >&2 | ||
1128 | { (exit 1); exit 1; }; } | ||
1129 | fi | ||
1130 | |||
1131 | # Be sure to have absolute directory names. | ||
1132 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1133 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1134 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1135 | libdir localedir mandir | ||
1136 | do | ||
1137 | eval ac_val=\$$ac_var | ||
1138 | case $ac_val in | ||
1139 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1140 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1141 | esac | ||
1142 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
1143 | { (exit 1); exit 1; }; } | ||
1144 | done | ||
1145 | |||
1146 | # There might be people who depend on the old broken behavior: `$host' | ||
1147 | # used to hold the argument of --host etc. | ||
1148 | # FIXME: To remove some day. | ||
1149 | build=$build_alias | ||
1150 | host=$host_alias | ||
1151 | target=$target_alias | ||
1152 | |||
1153 | # FIXME: To remove some day. | ||
1154 | if test "x$host_alias" != x; then | ||
1155 | if test "x$build_alias" = x; then | ||
1156 | cross_compiling=maybe | ||
1157 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
1158 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
1159 | elif test "x$build_alias" != "x$host_alias"; then | ||
1160 | cross_compiling=yes | ||
1161 | fi | ||
1162 | fi | ||
1163 | |||
1164 | ac_tool_prefix= | ||
1165 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1166 | |||
1167 | test "$silent" = yes && exec 6>/dev/null | ||
1168 | |||
1169 | |||
1170 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1171 | ac_ls_di=`ls -di .` && | ||
1172 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1173 | { echo "$as_me: error: Working directory cannot be determined" >&2 | ||
1174 | { (exit 1); exit 1; }; } | ||
1175 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1176 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | ||
1177 | { (exit 1); exit 1; }; } | ||
1178 | |||
1179 | |||
1180 | # Find the source files, if location was not specified. | ||
1181 | if test -z "$srcdir"; then | ||
1182 | ac_srcdir_defaulted=yes | ||
1183 | # Try the directory containing this script, then the parent directory. | ||
1184 | ac_confdir=`$as_dirname -- "$0" || | ||
1185 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1186 | X"$0" : 'X\(//\)[^/]' \| \ | ||
1187 | X"$0" : 'X\(//\)$' \| \ | ||
1188 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
1189 | echo X"$0" | | ||
1190 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1191 | s//\1/ | ||
1192 | q | ||
1193 | } | ||
1194 | /^X\(\/\/\)[^/].*/{ | ||
1195 | s//\1/ | ||
1196 | q | ||
1197 | } | ||
1198 | /^X\(\/\/\)$/{ | ||
1199 | s//\1/ | ||
1200 | q | ||
1201 | } | ||
1202 | /^X\(\/\).*/{ | ||
1203 | s//\1/ | ||
1204 | q | ||
1205 | } | ||
1206 | s/.*/./; q'` | ||
1207 | srcdir=$ac_confdir | ||
1208 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1209 | srcdir=.. | ||
1210 | fi | ||
1211 | else | ||
1212 | ac_srcdir_defaulted=no | ||
1213 | fi | ||
1214 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1215 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1216 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | ||
1217 | { (exit 1); exit 1; }; } | ||
1218 | fi | ||
1219 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1220 | ac_abs_confdir=`( | ||
1221 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | ||
1222 | { (exit 1); exit 1; }; } | ||
1223 | pwd)` | ||
1224 | # When building in place, set srcdir=. | ||
1225 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1226 | srcdir=. | ||
1227 | fi | ||
1228 | # Remove unnecessary trailing slashes from srcdir. | ||
1229 | # Double slashes in file names in object file debugging info | ||
1230 | # mess up M-x gdb in Emacs. | ||
1231 | case $srcdir in | ||
1232 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1233 | esac | ||
1234 | for ac_var in $ac_precious_vars; do | ||
1235 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1236 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1237 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1238 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1239 | done | ||
1240 | |||
1241 | # | ||
1242 | # Report the --help message. | ||
1243 | # | ||
1244 | if test "$ac_init_help" = "long"; then | ||
1245 | # Omit some internal or obsolete options to make the list less imposing. | ||
1246 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1247 | cat <<_ACEOF | ||
1248 | \`configure' configures OpenSSH Portable to adapt to many kinds of systems. | ||
1249 | |||
1250 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1251 | |||
1252 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1253 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1254 | |||
1255 | Defaults for the options are specified in brackets. | ||
1256 | |||
1257 | Configuration: | ||
1258 | -h, --help display this help and exit | ||
1259 | --help=short display options specific to this package | ||
1260 | --help=recursive display the short help of all the included packages | ||
1261 | -V, --version display version information and exit | ||
1262 | -q, --quiet, --silent do not print \`checking...' messages | ||
1263 | --cache-file=FILE cache test results in FILE [disabled] | ||
1264 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1265 | -n, --no-create do not create output files | ||
1266 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1267 | |||
1268 | Installation directories: | ||
1269 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1270 | [$ac_default_prefix] | ||
1271 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1272 | [PREFIX] | ||
1273 | |||
1274 | By default, \`make install' will install all the files in | ||
1275 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1276 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1277 | for instance \`--prefix=\$HOME'. | ||
1278 | |||
1279 | For better control, use the options below. | ||
1280 | |||
1281 | Fine tuning of the installation directories: | ||
1282 | --bindir=DIR user executables [EPREFIX/bin] | ||
1283 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1284 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1285 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1286 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1287 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1288 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1289 | --includedir=DIR C header files [PREFIX/include] | ||
1290 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1291 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1292 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1293 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1294 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1295 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1296 | --docdir=DIR documentation root [DATAROOTDIR/doc/openssh] | ||
1297 | --htmldir=DIR html documentation [DOCDIR] | ||
1298 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1299 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1300 | --psdir=DIR ps documentation [DOCDIR] | ||
1301 | _ACEOF | ||
1302 | |||
1303 | cat <<\_ACEOF | ||
1304 | |||
1305 | System types: | ||
1306 | --build=BUILD configure for building on BUILD [guessed] | ||
1307 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1308 | _ACEOF | ||
1309 | fi | ||
1310 | |||
1311 | if test -n "$ac_init_help"; then | ||
1312 | case $ac_init_help in | ||
1313 | short | recursive ) echo "Configuration of OpenSSH Portable:";; | ||
1314 | esac | ||
1315 | cat <<\_ACEOF | ||
1316 | |||
1317 | Optional Features: | ||
1318 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1319 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1320 | --disable-largefile omit support for large files | ||
1321 | --disable-strip Disable calling strip(1) on install | ||
1322 | --disable-etc-default-login Disable using PATH from /etc/default/login no | ||
1323 | --disable-lastlog disable use of lastlog even if detected no | ||
1324 | --disable-utmp disable use of utmp even if detected no | ||
1325 | --disable-utmpx disable use of utmpx even if detected no | ||
1326 | --disable-wtmp disable use of wtmp even if detected no | ||
1327 | --disable-wtmpx disable use of wtmpx even if detected no | ||
1328 | --disable-libutil disable use of libutil (login() etc.) no | ||
1329 | --disable-pututline disable use of pututline() etc. (uwtmp) no | ||
1330 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | ||
1331 | |||
1332 | Optional Packages: | ||
1333 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1334 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1335 | --without-stackprotect Don't use compiler's stack protection | ||
1336 | --without-rpath Disable auto-added -R linker paths | ||
1337 | --with-cflags Specify additional flags to pass to compiler | ||
1338 | --with-cppflags Specify additional flags to pass to preprocessor | ||
1339 | --with-ldflags Specify additional flags to pass to linker | ||
1340 | --with-libs Specify additional libraries to link with | ||
1341 | --with-Werror Build main code with -Werror | ||
1342 | --with-solaris-contracts Enable Solaris process contracts (experimental) | ||
1343 | --with-solaris-projects Enable Solaris projects (experimental) | ||
1344 | --with-osfsia Enable Digital Unix SIA | ||
1345 | --with-zlib=PATH Use zlib in PATH | ||
1346 | --without-zlib-version-check Disable zlib version check | ||
1347 | --with-skey[=PATH] Enable S/Key support (optionally in PATH) | ||
1348 | --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH) | ||
1349 | --with-libedit[=PATH] Enable libedit support for sftp | ||
1350 | --with-audit=module Enable audit support (modules=debug,bsm,linux) | ||
1351 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
1352 | --without-openssl-header-check Disable OpenSSL version consistency check | ||
1353 | --with-ssl-engine Enable OpenSSL (hardware) ENGINE support | ||
1354 | --with-pam Enable PAM support | ||
1355 | --with-rand-helper Use subprocess to gather strong randomness | ||
1356 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
1357 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
1358 | --with-entropy-timeout Specify entropy gathering command timeout (msec) | ||
1359 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
1360 | --with-selinux Enable SELinux support | ||
1361 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
1362 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | ||
1363 | --with-xauth=PATH Specify path to xauth program | ||
1364 | --with-mantype=man|cat|doc Set man page type | ||
1365 | --with-md5-passwords Enable use of MD5 passwords | ||
1366 | --without-shadow Disable shadow password support | ||
1367 | --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY | ||
1368 | --with-default-path= Specify default \$PATH environment for server | ||
1369 | --with-superuser-path= Specify different path for super-user | ||
1370 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
1371 | --with-bsd-auth Enable BSD auth support | ||
1372 | --with-pid-dir=PATH Specify location of ssh.pid file | ||
1373 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
1374 | |||
1375 | Some influential environment variables: | ||
1376 | CC C compiler command | ||
1377 | CFLAGS C compiler flags | ||
1378 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1379 | nonstandard directory <lib dir> | ||
1380 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
1381 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | ||
1382 | you have headers in a nonstandard directory <include dir> | ||
1383 | CPP C preprocessor | ||
1384 | |||
1385 | Use these variables to override the choices made by `configure' or to help | ||
1386 | it to find libraries and programs with nonstandard names/locations. | ||
1387 | |||
1388 | Report bugs to <openssh-unix-dev@mindrot.org>. | ||
1389 | _ACEOF | ||
1390 | ac_status=$? | ||
1391 | fi | ||
1392 | |||
1393 | if test "$ac_init_help" = "recursive"; then | ||
1394 | # If there are subdirs, report their specific --help. | ||
1395 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1396 | test -d "$ac_dir" || continue | ||
1397 | ac_builddir=. | ||
1398 | |||
1399 | case "$ac_dir" in | ||
1400 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1401 | *) | ||
1402 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
1403 | # A ".." for each directory in $ac_dir_suffix. | ||
1404 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
1405 | case $ac_top_builddir_sub in | ||
1406 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1407 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1408 | esac ;; | ||
1409 | esac | ||
1410 | ac_abs_top_builddir=$ac_pwd | ||
1411 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1412 | # for backward compatibility: | ||
1413 | ac_top_builddir=$ac_top_build_prefix | ||
1414 | |||
1415 | case $srcdir in | ||
1416 | .) # We are building in place. | ||
1417 | ac_srcdir=. | ||
1418 | ac_top_srcdir=$ac_top_builddir_sub | ||
1419 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1420 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1421 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1422 | ac_top_srcdir=$srcdir | ||
1423 | ac_abs_top_srcdir=$srcdir ;; | ||
1424 | *) # Relative name. | ||
1425 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1426 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1427 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1428 | esac | ||
1429 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1430 | |||
1431 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1432 | # Check for guested configure. | ||
1433 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1434 | echo && | ||
1435 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1436 | elif test -f "$ac_srcdir/configure"; then | ||
1437 | echo && | ||
1438 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1439 | else | ||
1440 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1441 | fi || ac_status=$? | ||
1442 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1443 | done | ||
1444 | fi | ||
1445 | |||
1446 | test -n "$ac_init_help" && exit $ac_status | ||
1447 | if $ac_init_version; then | ||
1448 | cat <<\_ACEOF | ||
1449 | OpenSSH configure Portable | ||
1450 | generated by GNU Autoconf 2.61 | ||
1451 | |||
1452 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
1453 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | ||
1454 | This configure script is free software; the Free Software Foundation | ||
1455 | gives unlimited permission to copy, distribute and modify it. | ||
1456 | _ACEOF | ||
1457 | exit | ||
1458 | fi | ||
1459 | cat >config.log <<_ACEOF | ||
1460 | This file contains any messages produced by compilers while | ||
1461 | running configure, to aid debugging if configure makes a mistake. | ||
1462 | |||
1463 | It was created by OpenSSH $as_me Portable, which was | ||
1464 | generated by GNU Autoconf 2.61. Invocation command line was | ||
1465 | |||
1466 | $ $0 $@ | ||
1467 | |||
1468 | _ACEOF | ||
1469 | exec 5>>config.log | ||
1470 | { | ||
1471 | cat <<_ASUNAME | ||
1472 | ## --------- ## | ||
1473 | ## Platform. ## | ||
1474 | ## --------- ## | ||
1475 | |||
1476 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
1477 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
1478 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
1479 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
1480 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
1481 | |||
1482 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
1483 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
1484 | |||
1485 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
1486 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
1487 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
1488 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
1489 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
1490 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
1491 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
1492 | |||
1493 | _ASUNAME | ||
1494 | |||
1495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1496 | for as_dir in $PATH | ||
1497 | do | ||
1498 | IFS=$as_save_IFS | ||
1499 | test -z "$as_dir" && as_dir=. | ||
1500 | echo "PATH: $as_dir" | ||
1501 | done | ||
1502 | IFS=$as_save_IFS | ||
1503 | |||
1504 | } >&5 | ||
1505 | |||
1506 | cat >&5 <<_ACEOF | ||
1507 | |||
1508 | |||
1509 | ## ----------- ## | ||
1510 | ## Core tests. ## | ||
1511 | ## ----------- ## | ||
1512 | |||
1513 | _ACEOF | ||
1514 | |||
1515 | |||
1516 | # Keep a trace of the command line. | ||
1517 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
1518 | # Strip out --silent because we don't want to record it for future runs. | ||
1519 | # Also quote any args containing shell meta-characters. | ||
1520 | # Make two passes to allow for proper duplicate-argument suppression. | ||
1521 | ac_configure_args= | ||
1522 | ac_configure_args0= | ||
1523 | ac_configure_args1= | ||
1524 | ac_must_keep_next=false | ||
1525 | for ac_pass in 1 2 | ||
1526 | do | ||
1527 | for ac_arg | ||
1528 | do | ||
1529 | case $ac_arg in | ||
1530 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
1531 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1532 | | -silent | --silent | --silen | --sile | --sil) | ||
1533 | continue ;; | ||
1534 | *\'*) | ||
1535 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1536 | esac | ||
1537 | case $ac_pass in | ||
1538 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | ||
1539 | 2) | ||
1540 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | ||
1541 | if test $ac_must_keep_next = true; then | ||
1542 | ac_must_keep_next=false # Got value, back to normal. | ||
1543 | else | ||
1544 | case $ac_arg in | ||
1545 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
1546 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
1547 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
1548 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
1549 | case "$ac_configure_args0 " in | ||
1550 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
1551 | esac | ||
1552 | ;; | ||
1553 | -* ) ac_must_keep_next=true ;; | ||
1554 | esac | ||
1555 | fi | ||
1556 | ac_configure_args="$ac_configure_args '$ac_arg'" | ||
1557 | ;; | ||
1558 | esac | ||
1559 | done | ||
1560 | done | ||
1561 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | ||
1562 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | ||
1563 | |||
1564 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
1565 | # config.log. We remove comments because anyway the quotes in there | ||
1566 | # would cause problems or look ugly. | ||
1567 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
1568 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
1569 | trap 'exit_status=$? | ||
1570 | # Save into config.log some information that might help in debugging. | ||
1571 | { | ||
1572 | echo | ||
1573 | |||
1574 | cat <<\_ASBOX | ||
1575 | ## ---------------- ## | ||
1576 | ## Cache variables. ## | ||
1577 | ## ---------------- ## | ||
1578 | _ASBOX | ||
1579 | echo | ||
1580 | # The following way of writing the cache mishandles newlines in values, | ||
1581 | ( | ||
1582 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
1583 | eval ac_val=\$$ac_var | ||
1584 | case $ac_val in #( | ||
1585 | *${as_nl}*) | ||
1586 | case $ac_var in #( | ||
1587 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
1588 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
1589 | esac | ||
1590 | case $ac_var in #( | ||
1591 | _ | IFS | as_nl) ;; #( | ||
1592 | *) $as_unset $ac_var ;; | ||
1593 | esac ;; | ||
1594 | esac | ||
1595 | done | ||
1596 | (set) 2>&1 | | ||
1597 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
1598 | *${as_nl}ac_space=\ *) | ||
1599 | sed -n \ | ||
1600 | "s/'\''/'\''\\\\'\'''\''/g; | ||
1601 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
1602 | ;; #( | ||
1603 | *) | ||
1604 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
1605 | ;; | ||
1606 | esac | | ||
1607 | sort | ||
1608 | ) | ||
1609 | echo | ||
1610 | |||
1611 | cat <<\_ASBOX | ||
1612 | ## ----------------- ## | ||
1613 | ## Output variables. ## | ||
1614 | ## ----------------- ## | ||
1615 | _ASBOX | ||
1616 | echo | ||
1617 | for ac_var in $ac_subst_vars | ||
1618 | do | ||
1619 | eval ac_val=\$$ac_var | ||
1620 | case $ac_val in | ||
1621 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1622 | esac | ||
1623 | echo "$ac_var='\''$ac_val'\''" | ||
1624 | done | sort | ||
1625 | echo | ||
1626 | |||
1627 | if test -n "$ac_subst_files"; then | ||
1628 | cat <<\_ASBOX | ||
1629 | ## ------------------- ## | ||
1630 | ## File substitutions. ## | ||
1631 | ## ------------------- ## | ||
1632 | _ASBOX | ||
1633 | echo | ||
1634 | for ac_var in $ac_subst_files | ||
1635 | do | ||
1636 | eval ac_val=\$$ac_var | ||
1637 | case $ac_val in | ||
1638 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1639 | esac | ||
1640 | echo "$ac_var='\''$ac_val'\''" | ||
1641 | done | sort | ||
1642 | echo | ||
1643 | fi | ||
1644 | |||
1645 | if test -s confdefs.h; then | ||
1646 | cat <<\_ASBOX | ||
1647 | ## ----------- ## | ||
1648 | ## confdefs.h. ## | ||
1649 | ## ----------- ## | ||
1650 | _ASBOX | ||
1651 | echo | ||
1652 | cat confdefs.h | ||
1653 | echo | ||
1654 | fi | ||
1655 | test "$ac_signal" != 0 && | ||
1656 | echo "$as_me: caught signal $ac_signal" | ||
1657 | echo "$as_me: exit $exit_status" | ||
1658 | } >&5 | ||
1659 | rm -f core *.core core.conftest.* && | ||
1660 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
1661 | exit $exit_status | ||
1662 | ' 0 | ||
1663 | for ac_signal in 1 2 13 15; do | ||
1664 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
1665 | done | ||
1666 | ac_signal=0 | ||
1667 | |||
1668 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
1669 | rm -f -r conftest* confdefs.h | ||
1670 | |||
1671 | # Predefined preprocessor variables. | ||
1672 | |||
1673 | cat >>confdefs.h <<_ACEOF | ||
1674 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
1675 | _ACEOF | ||
1676 | |||
1677 | |||
1678 | cat >>confdefs.h <<_ACEOF | ||
1679 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
1680 | _ACEOF | ||
1681 | |||
1682 | |||
1683 | cat >>confdefs.h <<_ACEOF | ||
1684 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
1685 | _ACEOF | ||
1686 | |||
1687 | |||
1688 | cat >>confdefs.h <<_ACEOF | ||
1689 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
1690 | _ACEOF | ||
1691 | |||
1692 | |||
1693 | cat >>confdefs.h <<_ACEOF | ||
1694 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
1695 | _ACEOF | ||
1696 | |||
1697 | |||
1698 | # Let the site file select an alternate cache file if it wants to. | ||
1699 | # Prefer explicitly selected file to automatically selected ones. | ||
1700 | if test -n "$CONFIG_SITE"; then | ||
1701 | set x "$CONFIG_SITE" | ||
1702 | elif test "x$prefix" != xNONE; then | ||
1703 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | ||
1704 | else | ||
1705 | set x "$ac_default_prefix/share/config.site" \ | ||
1706 | "$ac_default_prefix/etc/config.site" | ||
1707 | fi | ||
1708 | shift | ||
1709 | for ac_site_file | ||
1710 | do | ||
1711 | if test -r "$ac_site_file"; then | ||
1712 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | ||
1713 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1714 | sed 's/^/| /' "$ac_site_file" >&5 | ||
1715 | . "$ac_site_file" | ||
1716 | fi | ||
1717 | done | ||
1718 | |||
1719 | if test -r "$cache_file"; then | ||
1720 | # Some versions of bash will fail to source /dev/null (special | ||
1721 | # files actually), so we avoid doing that. | ||
1722 | if test -f "$cache_file"; then | ||
1723 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | ||
1724 | echo "$as_me: loading cache $cache_file" >&6;} | ||
1725 | case $cache_file in | ||
1726 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
1727 | *) . "./$cache_file";; | ||
1728 | esac | ||
1729 | fi | ||
1730 | else | ||
1731 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | ||
1732 | echo "$as_me: creating cache $cache_file" >&6;} | ||
1733 | >$cache_file | ||
1734 | fi | ||
1735 | |||
1736 | # Check that the precious variables saved in the cache have kept the same | ||
1737 | # value. | ||
1738 | ac_cache_corrupted=false | ||
1739 | for ac_var in $ac_precious_vars; do | ||
1740 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
1741 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
1742 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
1743 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
1744 | case $ac_old_set,$ac_new_set in | ||
1745 | set,) | ||
1746 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
1747 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
1748 | ac_cache_corrupted=: ;; | ||
1749 | ,set) | ||
1750 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | ||
1751 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1752 | ac_cache_corrupted=: ;; | ||
1753 | ,);; | ||
1754 | *) | ||
1755 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
1756 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | ||
1757 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
1758 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | ||
1759 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
1760 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | ||
1761 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
1762 | ac_cache_corrupted=: | ||
1763 | fi;; | ||
1764 | esac | ||
1765 | # Pass precious variables to config.status. | ||
1766 | if test "$ac_new_set" = set; then | ||
1767 | case $ac_new_val in | ||
1768 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1769 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
1770 | esac | ||
1771 | case " $ac_configure_args " in | ||
1772 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1773 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
1774 | esac | ||
1775 | fi | ||
1776 | done | ||
1777 | if $ac_cache_corrupted; then | ||
1778 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
1779 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
1780 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
1781 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
1782 | { (exit 1); exit 1; }; } | ||
1783 | fi | ||
1784 | |||
1785 | |||
1786 | |||
1787 | |||
1788 | |||
1789 | |||
1790 | |||
1791 | |||
1792 | |||
1793 | |||
1794 | |||
1795 | |||
1796 | |||
1797 | |||
1798 | |||
1799 | |||
1800 | |||
1801 | |||
1802 | |||
1803 | |||
1804 | |||
1805 | |||
1806 | |||
1807 | |||
1808 | |||
1809 | ac_ext=c | ||
1810 | ac_cpp='$CPP $CPPFLAGS' | ||
1811 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1812 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1813 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1814 | |||
1815 | |||
1816 | |||
1817 | |||
1818 | |||
1819 | # local macros | ||
1820 | |||
1821 | |||
1822 | ac_config_headers="$ac_config_headers config.h" | ||
1823 | |||
1824 | ac_ext=c | ||
1825 | ac_cpp='$CPP $CPPFLAGS' | ||
1826 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1827 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1828 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1829 | if test -n "$ac_tool_prefix"; then | ||
1830 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
1831 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
1832 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1833 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1834 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1835 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1836 | else | ||
1837 | if test -n "$CC"; then | ||
1838 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1839 | else | ||
1840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1841 | for as_dir in $PATH | ||
1842 | do | ||
1843 | IFS=$as_save_IFS | ||
1844 | test -z "$as_dir" && as_dir=. | ||
1845 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1846 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1847 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
1848 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1849 | break 2 | ||
1850 | fi | ||
1851 | done | ||
1852 | done | ||
1853 | IFS=$as_save_IFS | ||
1854 | |||
1855 | fi | ||
1856 | fi | ||
1857 | CC=$ac_cv_prog_CC | ||
1858 | if test -n "$CC"; then | ||
1859 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
1860 | echo "${ECHO_T}$CC" >&6; } | ||
1861 | else | ||
1862 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1863 | echo "${ECHO_T}no" >&6; } | ||
1864 | fi | ||
1865 | |||
1866 | |||
1867 | fi | ||
1868 | if test -z "$ac_cv_prog_CC"; then | ||
1869 | ac_ct_CC=$CC | ||
1870 | # Extract the first word of "gcc", so it can be a program name with args. | ||
1871 | set dummy gcc; ac_word=$2 | ||
1872 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1873 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1874 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1876 | else | ||
1877 | if test -n "$ac_ct_CC"; then | ||
1878 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1879 | else | ||
1880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1881 | for as_dir in $PATH | ||
1882 | do | ||
1883 | IFS=$as_save_IFS | ||
1884 | test -z "$as_dir" && as_dir=. | ||
1885 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1886 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1887 | ac_cv_prog_ac_ct_CC="gcc" | ||
1888 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1889 | break 2 | ||
1890 | fi | ||
1891 | done | ||
1892 | done | ||
1893 | IFS=$as_save_IFS | ||
1894 | |||
1895 | fi | ||
1896 | fi | ||
1897 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1898 | if test -n "$ac_ct_CC"; then | ||
1899 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1900 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
1901 | else | ||
1902 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1903 | echo "${ECHO_T}no" >&6; } | ||
1904 | fi | ||
1905 | |||
1906 | if test "x$ac_ct_CC" = x; then | ||
1907 | CC="" | ||
1908 | else | ||
1909 | case $cross_compiling:$ac_tool_warned in | ||
1910 | yes:) | ||
1911 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
1912 | whose name does not start with the host triplet. If you think this | ||
1913 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
1914 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
1915 | whose name does not start with the host triplet. If you think this | ||
1916 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
1917 | ac_tool_warned=yes ;; | ||
1918 | esac | ||
1919 | CC=$ac_ct_CC | ||
1920 | fi | ||
1921 | else | ||
1922 | CC="$ac_cv_prog_CC" | ||
1923 | fi | ||
1924 | |||
1925 | if test -z "$CC"; then | ||
1926 | if test -n "$ac_tool_prefix"; then | ||
1927 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
1928 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
1929 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1930 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1931 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1933 | else | ||
1934 | if test -n "$CC"; then | ||
1935 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1936 | else | ||
1937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1938 | for as_dir in $PATH | ||
1939 | do | ||
1940 | IFS=$as_save_IFS | ||
1941 | test -z "$as_dir" && as_dir=. | ||
1942 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1943 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1944 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
1945 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1946 | break 2 | ||
1947 | fi | ||
1948 | done | ||
1949 | done | ||
1950 | IFS=$as_save_IFS | ||
1951 | |||
1952 | fi | ||
1953 | fi | ||
1954 | CC=$ac_cv_prog_CC | ||
1955 | if test -n "$CC"; then | ||
1956 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
1957 | echo "${ECHO_T}$CC" >&6; } | ||
1958 | else | ||
1959 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1960 | echo "${ECHO_T}no" >&6; } | ||
1961 | fi | ||
1962 | |||
1963 | |||
1964 | fi | ||
1965 | fi | ||
1966 | if test -z "$CC"; then | ||
1967 | # Extract the first word of "cc", so it can be a program name with args. | ||
1968 | set dummy cc; ac_word=$2 | ||
1969 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1970 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1971 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1973 | else | ||
1974 | if test -n "$CC"; then | ||
1975 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1976 | else | ||
1977 | ac_prog_rejected=no | ||
1978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1979 | for as_dir in $PATH | ||
1980 | do | ||
1981 | IFS=$as_save_IFS | ||
1982 | test -z "$as_dir" && as_dir=. | ||
1983 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1984 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1985 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
1986 | ac_prog_rejected=yes | ||
1987 | continue | ||
1988 | fi | ||
1989 | ac_cv_prog_CC="cc" | ||
1990 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1991 | break 2 | ||
1992 | fi | ||
1993 | done | ||
1994 | done | ||
1995 | IFS=$as_save_IFS | ||
1996 | |||
1997 | if test $ac_prog_rejected = yes; then | ||
1998 | # We found a bogon in the path, so make sure we never use it. | ||
1999 | set dummy $ac_cv_prog_CC | ||
2000 | shift | ||
2001 | if test $# != 0; then | ||
2002 | # We chose a different compiler from the bogus one. | ||
2003 | # However, it has the same basename, so the bogon will be chosen | ||
2004 | # first if we set CC to just the basename; use the full file name. | ||
2005 | shift | ||
2006 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
2007 | fi | ||
2008 | fi | ||
2009 | fi | ||
2010 | fi | ||
2011 | CC=$ac_cv_prog_CC | ||
2012 | if test -n "$CC"; then | ||
2013 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2014 | echo "${ECHO_T}$CC" >&6; } | ||
2015 | else | ||
2016 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2017 | echo "${ECHO_T}no" >&6; } | ||
2018 | fi | ||
2019 | |||
2020 | |||
2021 | fi | ||
2022 | if test -z "$CC"; then | ||
2023 | if test -n "$ac_tool_prefix"; then | ||
2024 | for ac_prog in cl.exe | ||
2025 | do | ||
2026 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
2027 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
2028 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2029 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2030 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2032 | else | ||
2033 | if test -n "$CC"; then | ||
2034 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2035 | else | ||
2036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2037 | for as_dir in $PATH | ||
2038 | do | ||
2039 | IFS=$as_save_IFS | ||
2040 | test -z "$as_dir" && as_dir=. | ||
2041 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2042 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2043 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
2044 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2045 | break 2 | ||
2046 | fi | ||
2047 | done | ||
2048 | done | ||
2049 | IFS=$as_save_IFS | ||
2050 | |||
2051 | fi | ||
2052 | fi | ||
2053 | CC=$ac_cv_prog_CC | ||
2054 | if test -n "$CC"; then | ||
2055 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2056 | echo "${ECHO_T}$CC" >&6; } | ||
2057 | else | ||
2058 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2059 | echo "${ECHO_T}no" >&6; } | ||
2060 | fi | ||
2061 | |||
2062 | |||
2063 | test -n "$CC" && break | ||
2064 | done | ||
2065 | fi | ||
2066 | if test -z "$CC"; then | ||
2067 | ac_ct_CC=$CC | ||
2068 | for ac_prog in cl.exe | ||
2069 | do | ||
2070 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2071 | set dummy $ac_prog; ac_word=$2 | ||
2072 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2073 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2074 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2076 | else | ||
2077 | if test -n "$ac_ct_CC"; then | ||
2078 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2079 | else | ||
2080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2081 | for as_dir in $PATH | ||
2082 | do | ||
2083 | IFS=$as_save_IFS | ||
2084 | test -z "$as_dir" && as_dir=. | ||
2085 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2086 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2087 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
2088 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2089 | break 2 | ||
2090 | fi | ||
2091 | done | ||
2092 | done | ||
2093 | IFS=$as_save_IFS | ||
2094 | |||
2095 | fi | ||
2096 | fi | ||
2097 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2098 | if test -n "$ac_ct_CC"; then | ||
2099 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2100 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
2101 | else | ||
2102 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2103 | echo "${ECHO_T}no" >&6; } | ||
2104 | fi | ||
2105 | |||
2106 | |||
2107 | test -n "$ac_ct_CC" && break | ||
2108 | done | ||
2109 | |||
2110 | if test "x$ac_ct_CC" = x; then | ||
2111 | CC="" | ||
2112 | else | ||
2113 | case $cross_compiling:$ac_tool_warned in | ||
2114 | yes:) | ||
2115 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2116 | whose name does not start with the host triplet. If you think this | ||
2117 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2118 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2119 | whose name does not start with the host triplet. If you think this | ||
2120 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2121 | ac_tool_warned=yes ;; | ||
2122 | esac | ||
2123 | CC=$ac_ct_CC | ||
2124 | fi | ||
2125 | fi | ||
2126 | |||
2127 | fi | ||
2128 | |||
2129 | |||
2130 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | ||
2131 | See \`config.log' for more details." >&5 | ||
2132 | echo "$as_me: error: no acceptable C compiler found in \$PATH | ||
2133 | See \`config.log' for more details." >&2;} | ||
2134 | { (exit 1); exit 1; }; } | ||
2135 | |||
2136 | # Provide some information about the compiler. | ||
2137 | echo "$as_me:$LINENO: checking for C compiler version" >&5 | ||
2138 | ac_compiler=`set X $ac_compile; echo $2` | ||
2139 | { (ac_try="$ac_compiler --version >&5" | ||
2140 | case "(($ac_try" in | ||
2141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2142 | *) ac_try_echo=$ac_try;; | ||
2143 | esac | ||
2144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2145 | (eval "$ac_compiler --version >&5") 2>&5 | ||
2146 | ac_status=$? | ||
2147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2148 | (exit $ac_status); } | ||
2149 | { (ac_try="$ac_compiler -v >&5" | ||
2150 | case "(($ac_try" in | ||
2151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2152 | *) ac_try_echo=$ac_try;; | ||
2153 | esac | ||
2154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2155 | (eval "$ac_compiler -v >&5") 2>&5 | ||
2156 | ac_status=$? | ||
2157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2158 | (exit $ac_status); } | ||
2159 | { (ac_try="$ac_compiler -V >&5" | ||
2160 | case "(($ac_try" in | ||
2161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2162 | *) ac_try_echo=$ac_try;; | ||
2163 | esac | ||
2164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2165 | (eval "$ac_compiler -V >&5") 2>&5 | ||
2166 | ac_status=$? | ||
2167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2168 | (exit $ac_status); } | ||
2169 | |||
2170 | cat >conftest.$ac_ext <<_ACEOF | ||
2171 | /* confdefs.h. */ | ||
2172 | _ACEOF | ||
2173 | cat confdefs.h >>conftest.$ac_ext | ||
2174 | cat >>conftest.$ac_ext <<_ACEOF | ||
2175 | /* end confdefs.h. */ | ||
2176 | |||
2177 | int | ||
2178 | main () | ||
2179 | { | ||
2180 | |||
2181 | ; | ||
2182 | return 0; | ||
2183 | } | ||
2184 | _ACEOF | ||
2185 | ac_clean_files_save=$ac_clean_files | ||
2186 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | ||
2187 | # Try to create an executable without -o first, disregard a.out. | ||
2188 | # It will help us diagnose broken compilers, and finding out an intuition | ||
2189 | # of exeext. | ||
2190 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | ||
2191 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | ||
2192 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
2193 | # | ||
2194 | # List of possible output files, starting from the most likely. | ||
2195 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | ||
2196 | # only as a last resort. b.out is created by i960 compilers. | ||
2197 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | ||
2198 | # | ||
2199 | # The IRIX 6 linker writes into existing files which may not be | ||
2200 | # executable, retaining their permissions. Remove them first so a | ||
2201 | # subsequent execution test works. | ||
2202 | ac_rmfiles= | ||
2203 | for ac_file in $ac_files | ||
2204 | do | ||
2205 | case $ac_file in | ||
2206 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2207 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
2208 | esac | ||
2209 | done | ||
2210 | rm -f $ac_rmfiles | ||
2211 | |||
2212 | if { (ac_try="$ac_link_default" | ||
2213 | case "(($ac_try" in | ||
2214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2215 | *) ac_try_echo=$ac_try;; | ||
2216 | esac | ||
2217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2218 | (eval "$ac_link_default") 2>&5 | ||
2219 | ac_status=$? | ||
2220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2221 | (exit $ac_status); }; then | ||
2222 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
2223 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
2224 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
2225 | # so that the user can short-circuit this test for compilers unknown to | ||
2226 | # Autoconf. | ||
2227 | for ac_file in $ac_files '' | ||
2228 | do | ||
2229 | test -f "$ac_file" || continue | ||
2230 | case $ac_file in | ||
2231 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | ||
2232 | ;; | ||
2233 | [ab].out ) | ||
2234 | # We found the default executable, but exeext='' is most | ||
2235 | # certainly right. | ||
2236 | break;; | ||
2237 | *.* ) | ||
2238 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
2239 | then :; else | ||
2240 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2241 | fi | ||
2242 | # We set ac_cv_exeext here because the later test for it is not | ||
2243 | # safe: cross compilers may not add the suffix if given an `-o' | ||
2244 | # argument, so we may need to know it at that point already. | ||
2245 | # Even if this section looks crufty: it has the advantage of | ||
2246 | # actually working. | ||
2247 | break;; | ||
2248 | * ) | ||
2249 | break;; | ||
2250 | esac | ||
2251 | done | ||
2252 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
2253 | |||
2254 | else | ||
2255 | ac_file='' | ||
2256 | fi | ||
2257 | |||
2258 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
2259 | echo "${ECHO_T}$ac_file" >&6; } | ||
2260 | if test -z "$ac_file"; then | ||
2261 | echo "$as_me: failed program was:" >&5 | ||
2262 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2263 | |||
2264 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | ||
2265 | See \`config.log' for more details." >&5 | ||
2266 | echo "$as_me: error: C compiler cannot create executables | ||
2267 | See \`config.log' for more details." >&2;} | ||
2268 | { (exit 77); exit 77; }; } | ||
2269 | fi | ||
2270 | |||
2271 | ac_exeext=$ac_cv_exeext | ||
2272 | |||
2273 | # Check that the compiler produces executables we can run. If not, either | ||
2274 | # the compiler is broken, or we cross compile. | ||
2275 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
2276 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | ||
2277 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
2278 | # If not cross compiling, check that we can run a simple program. | ||
2279 | if test "$cross_compiling" != yes; then | ||
2280 | if { ac_try='./$ac_file' | ||
2281 | { (case "(($ac_try" in | ||
2282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2283 | *) ac_try_echo=$ac_try;; | ||
2284 | esac | ||
2285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2286 | (eval "$ac_try") 2>&5 | ||
2287 | ac_status=$? | ||
2288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2289 | (exit $ac_status); }; }; then | ||
2290 | cross_compiling=no | ||
2291 | else | ||
2292 | if test "$cross_compiling" = maybe; then | ||
2293 | cross_compiling=yes | ||
2294 | else | ||
2295 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
2296 | If you meant to cross compile, use \`--host'. | ||
2297 | See \`config.log' for more details." >&5 | ||
2298 | echo "$as_me: error: cannot run C compiled programs. | ||
2299 | If you meant to cross compile, use \`--host'. | ||
2300 | See \`config.log' for more details." >&2;} | ||
2301 | { (exit 1); exit 1; }; } | ||
2302 | fi | ||
2303 | fi | ||
2304 | fi | ||
2305 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
2306 | echo "${ECHO_T}yes" >&6; } | ||
2307 | |||
2308 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | ||
2309 | ac_clean_files=$ac_clean_files_save | ||
2310 | # Check that the compiler produces executables we can run. If not, either | ||
2311 | # the compiler is broken, or we cross compile. | ||
2312 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | ||
2313 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | ||
2314 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | ||
2315 | echo "${ECHO_T}$cross_compiling" >&6; } | ||
2316 | |||
2317 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | ||
2318 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | ||
2319 | if { (ac_try="$ac_link" | ||
2320 | case "(($ac_try" in | ||
2321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2322 | *) ac_try_echo=$ac_try;; | ||
2323 | esac | ||
2324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2325 | (eval "$ac_link") 2>&5 | ||
2326 | ac_status=$? | ||
2327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2328 | (exit $ac_status); }; then | ||
2329 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
2330 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
2331 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
2332 | # `rm'. | ||
2333 | for ac_file in conftest.exe conftest conftest.*; do | ||
2334 | test -f "$ac_file" || continue | ||
2335 | case $ac_file in | ||
2336 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2337 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2338 | break;; | ||
2339 | * ) break;; | ||
2340 | esac | ||
2341 | done | ||
2342 | else | ||
2343 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | ||
2344 | See \`config.log' for more details." >&5 | ||
2345 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | ||
2346 | See \`config.log' for more details." >&2;} | ||
2347 | { (exit 1); exit 1; }; } | ||
2348 | fi | ||
2349 | |||
2350 | rm -f conftest$ac_cv_exeext | ||
2351 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
2352 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | ||
2353 | |||
2354 | rm -f conftest.$ac_ext | ||
2355 | EXEEXT=$ac_cv_exeext | ||
2356 | ac_exeext=$EXEEXT | ||
2357 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | ||
2358 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | ||
2359 | if test "${ac_cv_objext+set}" = set; then | ||
2360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2361 | else | ||
2362 | cat >conftest.$ac_ext <<_ACEOF | ||
2363 | /* confdefs.h. */ | ||
2364 | _ACEOF | ||
2365 | cat confdefs.h >>conftest.$ac_ext | ||
2366 | cat >>conftest.$ac_ext <<_ACEOF | ||
2367 | /* end confdefs.h. */ | ||
2368 | |||
2369 | int | ||
2370 | main () | ||
2371 | { | ||
2372 | |||
2373 | ; | ||
2374 | return 0; | ||
2375 | } | ||
2376 | _ACEOF | ||
2377 | rm -f conftest.o conftest.obj | ||
2378 | if { (ac_try="$ac_compile" | ||
2379 | case "(($ac_try" in | ||
2380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2381 | *) ac_try_echo=$ac_try;; | ||
2382 | esac | ||
2383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2384 | (eval "$ac_compile") 2>&5 | ||
2385 | ac_status=$? | ||
2386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2387 | (exit $ac_status); }; then | ||
2388 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
2389 | test -f "$ac_file" || continue; | ||
2390 | case $ac_file in | ||
2391 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | ||
2392 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
2393 | break;; | ||
2394 | esac | ||
2395 | done | ||
2396 | else | ||
2397 | echo "$as_me: failed program was:" >&5 | ||
2398 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2399 | |||
2400 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | ||
2401 | See \`config.log' for more details." >&5 | ||
2402 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | ||
2403 | See \`config.log' for more details." >&2;} | ||
2404 | { (exit 1); exit 1; }; } | ||
2405 | fi | ||
2406 | |||
2407 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
2408 | fi | ||
2409 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | ||
2410 | echo "${ECHO_T}$ac_cv_objext" >&6; } | ||
2411 | OBJEXT=$ac_cv_objext | ||
2412 | ac_objext=$OBJEXT | ||
2413 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | ||
2414 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | ||
2415 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
2416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2417 | else | ||
2418 | cat >conftest.$ac_ext <<_ACEOF | ||
2419 | /* confdefs.h. */ | ||
2420 | _ACEOF | ||
2421 | cat confdefs.h >>conftest.$ac_ext | ||
2422 | cat >>conftest.$ac_ext <<_ACEOF | ||
2423 | /* end confdefs.h. */ | ||
2424 | |||
2425 | int | ||
2426 | main () | ||
2427 | { | ||
2428 | #ifndef __GNUC__ | ||
2429 | choke me | ||
2430 | #endif | ||
2431 | |||
2432 | ; | ||
2433 | return 0; | ||
2434 | } | ||
2435 | _ACEOF | ||
2436 | rm -f conftest.$ac_objext | ||
2437 | if { (ac_try="$ac_compile" | ||
2438 | case "(($ac_try" in | ||
2439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2440 | *) ac_try_echo=$ac_try;; | ||
2441 | esac | ||
2442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2443 | (eval "$ac_compile") 2>conftest.er1 | ||
2444 | ac_status=$? | ||
2445 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2446 | rm -f conftest.er1 | ||
2447 | cat conftest.err >&5 | ||
2448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2449 | (exit $ac_status); } && { | ||
2450 | test -z "$ac_c_werror_flag" || | ||
2451 | test ! -s conftest.err | ||
2452 | } && test -s conftest.$ac_objext; then | ||
2453 | ac_compiler_gnu=yes | ||
2454 | else | ||
2455 | echo "$as_me: failed program was:" >&5 | ||
2456 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2457 | |||
2458 | ac_compiler_gnu=no | ||
2459 | fi | ||
2460 | |||
2461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2462 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
2463 | |||
2464 | fi | ||
2465 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | ||
2466 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | ||
2467 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
2468 | ac_test_CFLAGS=${CFLAGS+set} | ||
2469 | ac_save_CFLAGS=$CFLAGS | ||
2470 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | ||
2471 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | ||
2472 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
2473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2474 | else | ||
2475 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
2476 | ac_c_werror_flag=yes | ||
2477 | ac_cv_prog_cc_g=no | ||
2478 | CFLAGS="-g" | ||
2479 | cat >conftest.$ac_ext <<_ACEOF | ||
2480 | /* confdefs.h. */ | ||
2481 | _ACEOF | ||
2482 | cat confdefs.h >>conftest.$ac_ext | ||
2483 | cat >>conftest.$ac_ext <<_ACEOF | ||
2484 | /* end confdefs.h. */ | ||
2485 | |||
2486 | int | ||
2487 | main () | ||
2488 | { | ||
2489 | |||
2490 | ; | ||
2491 | return 0; | ||
2492 | } | ||
2493 | _ACEOF | ||
2494 | rm -f conftest.$ac_objext | ||
2495 | if { (ac_try="$ac_compile" | ||
2496 | case "(($ac_try" in | ||
2497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2498 | *) ac_try_echo=$ac_try;; | ||
2499 | esac | ||
2500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2501 | (eval "$ac_compile") 2>conftest.er1 | ||
2502 | ac_status=$? | ||
2503 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2504 | rm -f conftest.er1 | ||
2505 | cat conftest.err >&5 | ||
2506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2507 | (exit $ac_status); } && { | ||
2508 | test -z "$ac_c_werror_flag" || | ||
2509 | test ! -s conftest.err | ||
2510 | } && test -s conftest.$ac_objext; then | ||
2511 | ac_cv_prog_cc_g=yes | ||
2512 | else | ||
2513 | echo "$as_me: failed program was:" >&5 | ||
2514 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2515 | |||
2516 | CFLAGS="" | ||
2517 | cat >conftest.$ac_ext <<_ACEOF | ||
2518 | /* confdefs.h. */ | ||
2519 | _ACEOF | ||
2520 | cat confdefs.h >>conftest.$ac_ext | ||
2521 | cat >>conftest.$ac_ext <<_ACEOF | ||
2522 | /* end confdefs.h. */ | ||
2523 | |||
2524 | int | ||
2525 | main () | ||
2526 | { | ||
2527 | |||
2528 | ; | ||
2529 | return 0; | ||
2530 | } | ||
2531 | _ACEOF | ||
2532 | rm -f conftest.$ac_objext | ||
2533 | if { (ac_try="$ac_compile" | ||
2534 | case "(($ac_try" in | ||
2535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2536 | *) ac_try_echo=$ac_try;; | ||
2537 | esac | ||
2538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2539 | (eval "$ac_compile") 2>conftest.er1 | ||
2540 | ac_status=$? | ||
2541 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2542 | rm -f conftest.er1 | ||
2543 | cat conftest.err >&5 | ||
2544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2545 | (exit $ac_status); } && { | ||
2546 | test -z "$ac_c_werror_flag" || | ||
2547 | test ! -s conftest.err | ||
2548 | } && test -s conftest.$ac_objext; then | ||
2549 | : | ||
2550 | else | ||
2551 | echo "$as_me: failed program was:" >&5 | ||
2552 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2553 | |||
2554 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
2555 | CFLAGS="-g" | ||
2556 | cat >conftest.$ac_ext <<_ACEOF | ||
2557 | /* confdefs.h. */ | ||
2558 | _ACEOF | ||
2559 | cat confdefs.h >>conftest.$ac_ext | ||
2560 | cat >>conftest.$ac_ext <<_ACEOF | ||
2561 | /* end confdefs.h. */ | ||
2562 | |||
2563 | int | ||
2564 | main () | ||
2565 | { | ||
2566 | |||
2567 | ; | ||
2568 | return 0; | ||
2569 | } | ||
2570 | _ACEOF | ||
2571 | rm -f conftest.$ac_objext | ||
2572 | if { (ac_try="$ac_compile" | ||
2573 | case "(($ac_try" in | ||
2574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2575 | *) ac_try_echo=$ac_try;; | ||
2576 | esac | ||
2577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2578 | (eval "$ac_compile") 2>conftest.er1 | ||
2579 | ac_status=$? | ||
2580 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2581 | rm -f conftest.er1 | ||
2582 | cat conftest.err >&5 | ||
2583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2584 | (exit $ac_status); } && { | ||
2585 | test -z "$ac_c_werror_flag" || | ||
2586 | test ! -s conftest.err | ||
2587 | } && test -s conftest.$ac_objext; then | ||
2588 | ac_cv_prog_cc_g=yes | ||
2589 | else | ||
2590 | echo "$as_me: failed program was:" >&5 | ||
2591 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2592 | |||
2593 | |||
2594 | fi | ||
2595 | |||
2596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2597 | fi | ||
2598 | |||
2599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2600 | fi | ||
2601 | |||
2602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2603 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
2604 | fi | ||
2605 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
2606 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | ||
2607 | if test "$ac_test_CFLAGS" = set; then | ||
2608 | CFLAGS=$ac_save_CFLAGS | ||
2609 | elif test $ac_cv_prog_cc_g = yes; then | ||
2610 | if test "$GCC" = yes; then | ||
2611 | CFLAGS="-g -O2" | ||
2612 | else | ||
2613 | CFLAGS="-g" | ||
2614 | fi | ||
2615 | else | ||
2616 | if test "$GCC" = yes; then | ||
2617 | CFLAGS="-O2" | ||
2618 | else | ||
2619 | CFLAGS= | ||
2620 | fi | ||
2621 | fi | ||
2622 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | ||
2623 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | ||
2624 | if test "${ac_cv_prog_cc_c89+set}" = set; then | ||
2625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2626 | else | ||
2627 | ac_cv_prog_cc_c89=no | ||
2628 | ac_save_CC=$CC | ||
2629 | cat >conftest.$ac_ext <<_ACEOF | ||
2630 | /* confdefs.h. */ | ||
2631 | _ACEOF | ||
2632 | cat confdefs.h >>conftest.$ac_ext | ||
2633 | cat >>conftest.$ac_ext <<_ACEOF | ||
2634 | /* end confdefs.h. */ | ||
2635 | #include <stdarg.h> | ||
2636 | #include <stdio.h> | ||
2637 | #include <sys/types.h> | ||
2638 | #include <sys/stat.h> | ||
2639 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
2640 | struct buf { int x; }; | ||
2641 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
2642 | static char *e (p, i) | ||
2643 | char **p; | ||
2644 | int i; | ||
2645 | { | ||
2646 | return p[i]; | ||
2647 | } | ||
2648 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
2649 | { | ||
2650 | char *s; | ||
2651 | va_list v; | ||
2652 | va_start (v,p); | ||
2653 | s = g (p, va_arg (v,int)); | ||
2654 | va_end (v); | ||
2655 | return s; | ||
2656 | } | ||
2657 | |||
2658 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
2659 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
2660 | These don't provoke an error unfortunately, instead are silently treated | ||
2661 | as 'x'. The following induces an error, until -std is added to get | ||
2662 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
2663 | array size at least. It's necessary to write '\x00'==0 to get something | ||
2664 | that's true only with -std. */ | ||
2665 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
2666 | |||
2667 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
2668 | inside strings and character constants. */ | ||
2669 | #define FOO(x) 'x' | ||
2670 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
2671 | |||
2672 | int test (int i, double x); | ||
2673 | struct s1 {int (*f) (int a);}; | ||
2674 | struct s2 {int (*f) (double a);}; | ||
2675 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
2676 | int argc; | ||
2677 | char **argv; | ||
2678 | int | ||
2679 | main () | ||
2680 | { | ||
2681 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
2682 | ; | ||
2683 | return 0; | ||
2684 | } | ||
2685 | _ACEOF | ||
2686 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
2687 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
2688 | do | ||
2689 | CC="$ac_save_CC $ac_arg" | ||
2690 | rm -f conftest.$ac_objext | ||
2691 | if { (ac_try="$ac_compile" | ||
2692 | case "(($ac_try" in | ||
2693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2694 | *) ac_try_echo=$ac_try;; | ||
2695 | esac | ||
2696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2697 | (eval "$ac_compile") 2>conftest.er1 | ||
2698 | ac_status=$? | ||
2699 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2700 | rm -f conftest.er1 | ||
2701 | cat conftest.err >&5 | ||
2702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2703 | (exit $ac_status); } && { | ||
2704 | test -z "$ac_c_werror_flag" || | ||
2705 | test ! -s conftest.err | ||
2706 | } && test -s conftest.$ac_objext; then | ||
2707 | ac_cv_prog_cc_c89=$ac_arg | ||
2708 | else | ||
2709 | echo "$as_me: failed program was:" >&5 | ||
2710 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2711 | |||
2712 | |||
2713 | fi | ||
2714 | |||
2715 | rm -f core conftest.err conftest.$ac_objext | ||
2716 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
2717 | done | ||
2718 | rm -f conftest.$ac_ext | ||
2719 | CC=$ac_save_CC | ||
2720 | |||
2721 | fi | ||
2722 | # AC_CACHE_VAL | ||
2723 | case "x$ac_cv_prog_cc_c89" in | ||
2724 | x) | ||
2725 | { echo "$as_me:$LINENO: result: none needed" >&5 | ||
2726 | echo "${ECHO_T}none needed" >&6; } ;; | ||
2727 | xno) | ||
2728 | { echo "$as_me:$LINENO: result: unsupported" >&5 | ||
2729 | echo "${ECHO_T}unsupported" >&6; } ;; | ||
2730 | *) | ||
2731 | CC="$CC $ac_cv_prog_cc_c89" | ||
2732 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | ||
2733 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | ||
2734 | esac | ||
2735 | |||
2736 | |||
2737 | ac_ext=c | ||
2738 | ac_cpp='$CPP $CPPFLAGS' | ||
2739 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2740 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2741 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2742 | |||
2743 | ac_aux_dir= | ||
2744 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
2745 | if test -f "$ac_dir/install-sh"; then | ||
2746 | ac_aux_dir=$ac_dir | ||
2747 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
2748 | break | ||
2749 | elif test -f "$ac_dir/install.sh"; then | ||
2750 | ac_aux_dir=$ac_dir | ||
2751 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
2752 | break | ||
2753 | elif test -f "$ac_dir/shtool"; then | ||
2754 | ac_aux_dir=$ac_dir | ||
2755 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
2756 | break | ||
2757 | fi | ||
2758 | done | ||
2759 | if test -z "$ac_aux_dir"; then | ||
2760 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | ||
2761 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | ||
2762 | { (exit 1); exit 1; }; } | ||
2763 | fi | ||
2764 | |||
2765 | # These three variables are undocumented and unsupported, | ||
2766 | # and are intended to be withdrawn in a future Autoconf release. | ||
2767 | # They can cause serious problems if a builder's source tree is in a directory | ||
2768 | # whose full name contains unusual characters. | ||
2769 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
2770 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
2771 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
2772 | |||
2773 | |||
2774 | # Make sure we can run config.sub. | ||
2775 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
2776 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | ||
2777 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | ||
2778 | { (exit 1); exit 1; }; } | ||
2779 | |||
2780 | { echo "$as_me:$LINENO: checking build system type" >&5 | ||
2781 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | ||
2782 | if test "${ac_cv_build+set}" = set; then | ||
2783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2784 | else | ||
2785 | ac_build_alias=$build_alias | ||
2786 | test "x$ac_build_alias" = x && | ||
2787 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
2788 | test "x$ac_build_alias" = x && | ||
2789 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | ||
2790 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
2791 | { (exit 1); exit 1; }; } | ||
2792 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
2793 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | ||
2794 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | ||
2795 | { (exit 1); exit 1; }; } | ||
2796 | |||
2797 | fi | ||
2798 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | ||
2799 | echo "${ECHO_T}$ac_cv_build" >&6; } | ||
2800 | case $ac_cv_build in | ||
2801 | *-*-*) ;; | ||
2802 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | ||
2803 | echo "$as_me: error: invalid value of canonical build" >&2;} | ||
2804 | { (exit 1); exit 1; }; };; | ||
2805 | esac | ||
2806 | build=$ac_cv_build | ||
2807 | ac_save_IFS=$IFS; IFS='-' | ||
2808 | set x $ac_cv_build | ||
2809 | shift | ||
2810 | build_cpu=$1 | ||
2811 | build_vendor=$2 | ||
2812 | shift; shift | ||
2813 | # Remember, the first character of IFS is used to create $*, | ||
2814 | # except with old shells: | ||
2815 | build_os=$* | ||
2816 | IFS=$ac_save_IFS | ||
2817 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
2818 | |||
2819 | |||
2820 | { echo "$as_me:$LINENO: checking host system type" >&5 | ||
2821 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | ||
2822 | if test "${ac_cv_host+set}" = set; then | ||
2823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2824 | else | ||
2825 | if test "x$host_alias" = x; then | ||
2826 | ac_cv_host=$ac_cv_build | ||
2827 | else | ||
2828 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
2829 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | ||
2830 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | ||
2831 | { (exit 1); exit 1; }; } | ||
2832 | fi | ||
2833 | |||
2834 | fi | ||
2835 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | ||
2836 | echo "${ECHO_T}$ac_cv_host" >&6; } | ||
2837 | case $ac_cv_host in | ||
2838 | *-*-*) ;; | ||
2839 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | ||
2840 | echo "$as_me: error: invalid value of canonical host" >&2;} | ||
2841 | { (exit 1); exit 1; }; };; | ||
2842 | esac | ||
2843 | host=$ac_cv_host | ||
2844 | ac_save_IFS=$IFS; IFS='-' | ||
2845 | set x $ac_cv_host | ||
2846 | shift | ||
2847 | host_cpu=$1 | ||
2848 | host_vendor=$2 | ||
2849 | shift; shift | ||
2850 | # Remember, the first character of IFS is used to create $*, | ||
2851 | # except with old shells: | ||
2852 | host_os=$* | ||
2853 | IFS=$ac_save_IFS | ||
2854 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
2855 | |||
2856 | |||
2857 | |||
2858 | ac_ext=c | ||
2859 | ac_cpp='$CPP $CPPFLAGS' | ||
2860 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2861 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2862 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2863 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
2864 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | ||
2865 | # On Suns, sometimes $CPP names a directory. | ||
2866 | if test -n "$CPP" && test -d "$CPP"; then | ||
2867 | CPP= | ||
2868 | fi | ||
2869 | if test -z "$CPP"; then | ||
2870 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
2871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2872 | else | ||
2873 | # Double quotes because CPP needs to be expanded | ||
2874 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
2875 | do | ||
2876 | ac_preproc_ok=false | ||
2877 | for ac_c_preproc_warn_flag in '' yes | ||
2878 | do | ||
2879 | # Use a header file that comes with gcc, so configuring glibc | ||
2880 | # with a fresh cross-compiler works. | ||
2881 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2882 | # <limits.h> exists even on freestanding compilers. | ||
2883 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2884 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2885 | cat >conftest.$ac_ext <<_ACEOF | ||
2886 | /* confdefs.h. */ | ||
2887 | _ACEOF | ||
2888 | cat confdefs.h >>conftest.$ac_ext | ||
2889 | cat >>conftest.$ac_ext <<_ACEOF | ||
2890 | /* end confdefs.h. */ | ||
2891 | #ifdef __STDC__ | ||
2892 | # include <limits.h> | ||
2893 | #else | ||
2894 | # include <assert.h> | ||
2895 | #endif | ||
2896 | Syntax error | ||
2897 | _ACEOF | ||
2898 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
2899 | case "(($ac_try" in | ||
2900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2901 | *) ac_try_echo=$ac_try;; | ||
2902 | esac | ||
2903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2904 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
2905 | ac_status=$? | ||
2906 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2907 | rm -f conftest.er1 | ||
2908 | cat conftest.err >&5 | ||
2909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2910 | (exit $ac_status); } >/dev/null && { | ||
2911 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
2912 | test ! -s conftest.err | ||
2913 | }; then | ||
2914 | : | ||
2915 | else | ||
2916 | echo "$as_me: failed program was:" >&5 | ||
2917 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2918 | |||
2919 | # Broken: fails on valid input. | ||
2920 | continue | ||
2921 | fi | ||
2922 | |||
2923 | rm -f conftest.err conftest.$ac_ext | ||
2924 | |||
2925 | # OK, works on sane cases. Now check whether nonexistent headers | ||
2926 | # can be detected and how. | ||
2927 | cat >conftest.$ac_ext <<_ACEOF | ||
2928 | /* confdefs.h. */ | ||
2929 | _ACEOF | ||
2930 | cat confdefs.h >>conftest.$ac_ext | ||
2931 | cat >>conftest.$ac_ext <<_ACEOF | ||
2932 | /* end confdefs.h. */ | ||
2933 | #include <ac_nonexistent.h> | ||
2934 | _ACEOF | ||
2935 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
2936 | case "(($ac_try" in | ||
2937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2938 | *) ac_try_echo=$ac_try;; | ||
2939 | esac | ||
2940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2941 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
2942 | ac_status=$? | ||
2943 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2944 | rm -f conftest.er1 | ||
2945 | cat conftest.err >&5 | ||
2946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2947 | (exit $ac_status); } >/dev/null && { | ||
2948 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
2949 | test ! -s conftest.err | ||
2950 | }; then | ||
2951 | # Broken: success on invalid input. | ||
2952 | continue | ||
2953 | else | ||
2954 | echo "$as_me: failed program was:" >&5 | ||
2955 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2956 | |||
2957 | # Passes both tests. | ||
2958 | ac_preproc_ok=: | ||
2959 | break | ||
2960 | fi | ||
2961 | |||
2962 | rm -f conftest.err conftest.$ac_ext | ||
2963 | |||
2964 | done | ||
2965 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2966 | rm -f conftest.err conftest.$ac_ext | ||
2967 | if $ac_preproc_ok; then | ||
2968 | break | ||
2969 | fi | ||
2970 | |||
2971 | done | ||
2972 | ac_cv_prog_CPP=$CPP | ||
2973 | |||
2974 | fi | ||
2975 | CPP=$ac_cv_prog_CPP | ||
2976 | else | ||
2977 | ac_cv_prog_CPP=$CPP | ||
2978 | fi | ||
2979 | { echo "$as_me:$LINENO: result: $CPP" >&5 | ||
2980 | echo "${ECHO_T}$CPP" >&6; } | ||
2981 | ac_preproc_ok=false | ||
2982 | for ac_c_preproc_warn_flag in '' yes | ||
2983 | do | ||
2984 | # Use a header file that comes with gcc, so configuring glibc | ||
2985 | # with a fresh cross-compiler works. | ||
2986 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2987 | # <limits.h> exists even on freestanding compilers. | ||
2988 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2989 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2990 | cat >conftest.$ac_ext <<_ACEOF | ||
2991 | /* confdefs.h. */ | ||
2992 | _ACEOF | ||
2993 | cat confdefs.h >>conftest.$ac_ext | ||
2994 | cat >>conftest.$ac_ext <<_ACEOF | ||
2995 | /* end confdefs.h. */ | ||
2996 | #ifdef __STDC__ | ||
2997 | # include <limits.h> | ||
2998 | #else | ||
2999 | # include <assert.h> | ||
3000 | #endif | ||
3001 | Syntax error | ||
3002 | _ACEOF | ||
3003 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3004 | case "(($ac_try" in | ||
3005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3006 | *) ac_try_echo=$ac_try;; | ||
3007 | esac | ||
3008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3009 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3010 | ac_status=$? | ||
3011 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3012 | rm -f conftest.er1 | ||
3013 | cat conftest.err >&5 | ||
3014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3015 | (exit $ac_status); } >/dev/null && { | ||
3016 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3017 | test ! -s conftest.err | ||
3018 | }; then | ||
3019 | : | ||
3020 | else | ||
3021 | echo "$as_me: failed program was:" >&5 | ||
3022 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3023 | |||
3024 | # Broken: fails on valid input. | ||
3025 | continue | ||
3026 | fi | ||
3027 | |||
3028 | rm -f conftest.err conftest.$ac_ext | ||
3029 | |||
3030 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3031 | # can be detected and how. | ||
3032 | cat >conftest.$ac_ext <<_ACEOF | ||
3033 | /* confdefs.h. */ | ||
3034 | _ACEOF | ||
3035 | cat confdefs.h >>conftest.$ac_ext | ||
3036 | cat >>conftest.$ac_ext <<_ACEOF | ||
3037 | /* end confdefs.h. */ | ||
3038 | #include <ac_nonexistent.h> | ||
3039 | _ACEOF | ||
3040 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3041 | case "(($ac_try" in | ||
3042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3043 | *) ac_try_echo=$ac_try;; | ||
3044 | esac | ||
3045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3046 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3047 | ac_status=$? | ||
3048 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3049 | rm -f conftest.er1 | ||
3050 | cat conftest.err >&5 | ||
3051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3052 | (exit $ac_status); } >/dev/null && { | ||
3053 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3054 | test ! -s conftest.err | ||
3055 | }; then | ||
3056 | # Broken: success on invalid input. | ||
3057 | continue | ||
3058 | else | ||
3059 | echo "$as_me: failed program was:" >&5 | ||
3060 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3061 | |||
3062 | # Passes both tests. | ||
3063 | ac_preproc_ok=: | ||
3064 | break | ||
3065 | fi | ||
3066 | |||
3067 | rm -f conftest.err conftest.$ac_ext | ||
3068 | |||
3069 | done | ||
3070 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3071 | rm -f conftest.err conftest.$ac_ext | ||
3072 | if $ac_preproc_ok; then | ||
3073 | : | ||
3074 | else | ||
3075 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
3076 | See \`config.log' for more details." >&5 | ||
3077 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
3078 | See \`config.log' for more details." >&2;} | ||
3079 | { (exit 1); exit 1; }; } | ||
3080 | fi | ||
3081 | |||
3082 | ac_ext=c | ||
3083 | ac_cpp='$CPP $CPPFLAGS' | ||
3084 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3085 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3086 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3087 | |||
3088 | |||
3089 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | ||
3090 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | ||
3091 | if test "${ac_cv_path_GREP+set}" = set; then | ||
3092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3093 | else | ||
3094 | # Extract the first word of "grep ggrep" to use in msg output | ||
3095 | if test -z "$GREP"; then | ||
3096 | set dummy grep ggrep; ac_prog_name=$2 | ||
3097 | if test "${ac_cv_path_GREP+set}" = set; then | ||
3098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3099 | else | ||
3100 | ac_path_GREP_found=false | ||
3101 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3102 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3103 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3104 | do | ||
3105 | IFS=$as_save_IFS | ||
3106 | test -z "$as_dir" && as_dir=. | ||
3107 | for ac_prog in grep ggrep; do | ||
3108 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3109 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3110 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
3111 | # Check for GNU ac_path_GREP and select it if it is found. | ||
3112 | # Check for GNU $ac_path_GREP | ||
3113 | case `"$ac_path_GREP" --version 2>&1` in | ||
3114 | *GNU*) | ||
3115 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
3116 | *) | ||
3117 | ac_count=0 | ||
3118 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
3119 | while : | ||
3120 | do | ||
3121 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3122 | mv "conftest.tmp" "conftest.in" | ||
3123 | cp "conftest.in" "conftest.nl" | ||
3124 | echo 'GREP' >> "conftest.nl" | ||
3125 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3126 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3127 | ac_count=`expr $ac_count + 1` | ||
3128 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
3129 | # Best one so far, save it but keep looking for a better one | ||
3130 | ac_cv_path_GREP="$ac_path_GREP" | ||
3131 | ac_path_GREP_max=$ac_count | ||
3132 | fi | ||
3133 | # 10*(2^10) chars as input seems more than enough | ||
3134 | test $ac_count -gt 10 && break | ||
3135 | done | ||
3136 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3137 | esac | ||
3138 | |||
3139 | |||
3140 | $ac_path_GREP_found && break 3 | ||
3141 | done | ||
3142 | done | ||
3143 | |||
3144 | done | ||
3145 | IFS=$as_save_IFS | ||
3146 | |||
3147 | |||
3148 | fi | ||
3149 | |||
3150 | GREP="$ac_cv_path_GREP" | ||
3151 | if test -z "$GREP"; then | ||
3152 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
3153 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
3154 | { (exit 1); exit 1; }; } | ||
3155 | fi | ||
3156 | |||
3157 | else | ||
3158 | ac_cv_path_GREP=$GREP | ||
3159 | fi | ||
3160 | |||
3161 | |||
3162 | fi | ||
3163 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | ||
3164 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | ||
3165 | GREP="$ac_cv_path_GREP" | ||
3166 | |||
3167 | |||
3168 | { echo "$as_me:$LINENO: checking for egrep" >&5 | ||
3169 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | ||
3170 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
3171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3172 | else | ||
3173 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
3174 | then ac_cv_path_EGREP="$GREP -E" | ||
3175 | else | ||
3176 | # Extract the first word of "egrep" to use in msg output | ||
3177 | if test -z "$EGREP"; then | ||
3178 | set dummy egrep; ac_prog_name=$2 | ||
3179 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
3180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3181 | else | ||
3182 | ac_path_EGREP_found=false | ||
3183 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3185 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3186 | do | ||
3187 | IFS=$as_save_IFS | ||
3188 | test -z "$as_dir" && as_dir=. | ||
3189 | for ac_prog in egrep; do | ||
3190 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3191 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3192 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
3193 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
3194 | # Check for GNU $ac_path_EGREP | ||
3195 | case `"$ac_path_EGREP" --version 2>&1` in | ||
3196 | *GNU*) | ||
3197 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
3198 | *) | ||
3199 | ac_count=0 | ||
3200 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
3201 | while : | ||
3202 | do | ||
3203 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3204 | mv "conftest.tmp" "conftest.in" | ||
3205 | cp "conftest.in" "conftest.nl" | ||
3206 | echo 'EGREP' >> "conftest.nl" | ||
3207 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3208 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3209 | ac_count=`expr $ac_count + 1` | ||
3210 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
3211 | # Best one so far, save it but keep looking for a better one | ||
3212 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
3213 | ac_path_EGREP_max=$ac_count | ||
3214 | fi | ||
3215 | # 10*(2^10) chars as input seems more than enough | ||
3216 | test $ac_count -gt 10 && break | ||
3217 | done | ||
3218 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3219 | esac | ||
3220 | |||
3221 | |||
3222 | $ac_path_EGREP_found && break 3 | ||
3223 | done | ||
3224 | done | ||
3225 | |||
3226 | done | ||
3227 | IFS=$as_save_IFS | ||
3228 | |||
3229 | |||
3230 | fi | ||
3231 | |||
3232 | EGREP="$ac_cv_path_EGREP" | ||
3233 | if test -z "$EGREP"; then | ||
3234 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
3235 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
3236 | { (exit 1); exit 1; }; } | ||
3237 | fi | ||
3238 | |||
3239 | else | ||
3240 | ac_cv_path_EGREP=$EGREP | ||
3241 | fi | ||
3242 | |||
3243 | |||
3244 | fi | ||
3245 | fi | ||
3246 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||
3247 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | ||
3248 | EGREP="$ac_cv_path_EGREP" | ||
3249 | |||
3250 | |||
3251 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
3252 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | ||
3253 | if test "${ac_cv_header_stdc+set}" = set; then | ||
3254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3255 | else | ||
3256 | cat >conftest.$ac_ext <<_ACEOF | ||
3257 | /* confdefs.h. */ | ||
3258 | _ACEOF | ||
3259 | cat confdefs.h >>conftest.$ac_ext | ||
3260 | cat >>conftest.$ac_ext <<_ACEOF | ||
3261 | /* end confdefs.h. */ | ||
3262 | #include <stdlib.h> | ||
3263 | #include <stdarg.h> | ||
3264 | #include <string.h> | ||
3265 | #include <float.h> | ||
3266 | |||
3267 | int | ||
3268 | main () | ||
3269 | { | ||
3270 | |||
3271 | ; | ||
3272 | return 0; | ||
3273 | } | ||
3274 | _ACEOF | ||
3275 | rm -f conftest.$ac_objext | ||
3276 | if { (ac_try="$ac_compile" | ||
3277 | case "(($ac_try" in | ||
3278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3279 | *) ac_try_echo=$ac_try;; | ||
3280 | esac | ||
3281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3282 | (eval "$ac_compile") 2>conftest.er1 | ||
3283 | ac_status=$? | ||
3284 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3285 | rm -f conftest.er1 | ||
3286 | cat conftest.err >&5 | ||
3287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3288 | (exit $ac_status); } && { | ||
3289 | test -z "$ac_c_werror_flag" || | ||
3290 | test ! -s conftest.err | ||
3291 | } && test -s conftest.$ac_objext; then | ||
3292 | ac_cv_header_stdc=yes | ||
3293 | else | ||
3294 | echo "$as_me: failed program was:" >&5 | ||
3295 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3296 | |||
3297 | ac_cv_header_stdc=no | ||
3298 | fi | ||
3299 | |||
3300 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3301 | |||
3302 | if test $ac_cv_header_stdc = yes; then | ||
3303 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
3304 | cat >conftest.$ac_ext <<_ACEOF | ||
3305 | /* confdefs.h. */ | ||
3306 | _ACEOF | ||
3307 | cat confdefs.h >>conftest.$ac_ext | ||
3308 | cat >>conftest.$ac_ext <<_ACEOF | ||
3309 | /* end confdefs.h. */ | ||
3310 | #include <string.h> | ||
3311 | |||
3312 | _ACEOF | ||
3313 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3314 | $EGREP "memchr" >/dev/null 2>&1; then | ||
3315 | : | ||
3316 | else | ||
3317 | ac_cv_header_stdc=no | ||
3318 | fi | ||
3319 | rm -f conftest* | ||
3320 | |||
3321 | fi | ||
3322 | |||
3323 | if test $ac_cv_header_stdc = yes; then | ||
3324 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
3325 | cat >conftest.$ac_ext <<_ACEOF | ||
3326 | /* confdefs.h. */ | ||
3327 | _ACEOF | ||
3328 | cat confdefs.h >>conftest.$ac_ext | ||
3329 | cat >>conftest.$ac_ext <<_ACEOF | ||
3330 | /* end confdefs.h. */ | ||
3331 | #include <stdlib.h> | ||
3332 | |||
3333 | _ACEOF | ||
3334 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3335 | $EGREP "free" >/dev/null 2>&1; then | ||
3336 | : | ||
3337 | else | ||
3338 | ac_cv_header_stdc=no | ||
3339 | fi | ||
3340 | rm -f conftest* | ||
3341 | |||
3342 | fi | ||
3343 | |||
3344 | if test $ac_cv_header_stdc = yes; then | ||
3345 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
3346 | if test "$cross_compiling" = yes; then | ||
3347 | : | ||
3348 | else | ||
3349 | cat >conftest.$ac_ext <<_ACEOF | ||
3350 | /* confdefs.h. */ | ||
3351 | _ACEOF | ||
3352 | cat confdefs.h >>conftest.$ac_ext | ||
3353 | cat >>conftest.$ac_ext <<_ACEOF | ||
3354 | /* end confdefs.h. */ | ||
3355 | #include <ctype.h> | ||
3356 | #include <stdlib.h> | ||
3357 | #if ((' ' & 0x0FF) == 0x020) | ||
3358 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
3359 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
3360 | #else | ||
3361 | # define ISLOWER(c) \ | ||
3362 | (('a' <= (c) && (c) <= 'i') \ | ||
3363 | || ('j' <= (c) && (c) <= 'r') \ | ||
3364 | || ('s' <= (c) && (c) <= 'z')) | ||
3365 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
3366 | #endif | ||
3367 | |||
3368 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
3369 | int | ||
3370 | main () | ||
3371 | { | ||
3372 | int i; | ||
3373 | for (i = 0; i < 256; i++) | ||
3374 | if (XOR (islower (i), ISLOWER (i)) | ||
3375 | || toupper (i) != TOUPPER (i)) | ||
3376 | return 2; | ||
3377 | return 0; | ||
3378 | } | ||
3379 | _ACEOF | ||
3380 | rm -f conftest$ac_exeext | ||
3381 | if { (ac_try="$ac_link" | ||
3382 | case "(($ac_try" in | ||
3383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3384 | *) ac_try_echo=$ac_try;; | ||
3385 | esac | ||
3386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3387 | (eval "$ac_link") 2>&5 | ||
3388 | ac_status=$? | ||
3389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3390 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
3391 | { (case "(($ac_try" in | ||
3392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3393 | *) ac_try_echo=$ac_try;; | ||
3394 | esac | ||
3395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3396 | (eval "$ac_try") 2>&5 | ||
3397 | ac_status=$? | ||
3398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3399 | (exit $ac_status); }; }; then | ||
3400 | : | ||
3401 | else | ||
3402 | echo "$as_me: program exited with status $ac_status" >&5 | ||
3403 | echo "$as_me: failed program was:" >&5 | ||
3404 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3405 | |||
3406 | ( exit $ac_status ) | ||
3407 | ac_cv_header_stdc=no | ||
3408 | fi | ||
3409 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3410 | fi | ||
3411 | |||
3412 | |||
3413 | fi | ||
3414 | fi | ||
3415 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | ||
3416 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | ||
3417 | if test $ac_cv_header_stdc = yes; then | ||
3418 | |||
3419 | cat >>confdefs.h <<\_ACEOF | ||
3420 | #define STDC_HEADERS 1 | ||
3421 | _ACEOF | ||
3422 | |||
3423 | fi | ||
3424 | |||
3425 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
3426 | |||
3427 | |||
3428 | |||
3429 | |||
3430 | |||
3431 | |||
3432 | |||
3433 | |||
3434 | |||
3435 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
3436 | inttypes.h stdint.h unistd.h | ||
3437 | do | ||
3438 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
3439 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
3440 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
3441 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
3442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3443 | else | ||
3444 | cat >conftest.$ac_ext <<_ACEOF | ||
3445 | /* confdefs.h. */ | ||
3446 | _ACEOF | ||
3447 | cat confdefs.h >>conftest.$ac_ext | ||
3448 | cat >>conftest.$ac_ext <<_ACEOF | ||
3449 | /* end confdefs.h. */ | ||
3450 | $ac_includes_default | ||
3451 | |||
3452 | #include <$ac_header> | ||
3453 | _ACEOF | ||
3454 | rm -f conftest.$ac_objext | ||
3455 | if { (ac_try="$ac_compile" | ||
3456 | case "(($ac_try" in | ||
3457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3458 | *) ac_try_echo=$ac_try;; | ||
3459 | esac | ||
3460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3461 | (eval "$ac_compile") 2>conftest.er1 | ||
3462 | ac_status=$? | ||
3463 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3464 | rm -f conftest.er1 | ||
3465 | cat conftest.err >&5 | ||
3466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3467 | (exit $ac_status); } && { | ||
3468 | test -z "$ac_c_werror_flag" || | ||
3469 | test ! -s conftest.err | ||
3470 | } && test -s conftest.$ac_objext; then | ||
3471 | eval "$as_ac_Header=yes" | ||
3472 | else | ||
3473 | echo "$as_me: failed program was:" >&5 | ||
3474 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3475 | |||
3476 | eval "$as_ac_Header=no" | ||
3477 | fi | ||
3478 | |||
3479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3480 | fi | ||
3481 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
3482 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
3483 | echo "${ECHO_T}$ac_res" >&6; } | ||
3484 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
3485 | cat >>confdefs.h <<_ACEOF | ||
3486 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
3487 | _ACEOF | ||
3488 | |||
3489 | fi | ||
3490 | |||
3491 | done | ||
3492 | |||
3493 | |||
3494 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | ||
3495 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | ||
3496 | if test "${ac_cv_c_bigendian+set}" = set; then | ||
3497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3498 | else | ||
3499 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
3500 | cat >conftest.$ac_ext <<_ACEOF | ||
3501 | /* confdefs.h. */ | ||
3502 | _ACEOF | ||
3503 | cat confdefs.h >>conftest.$ac_ext | ||
3504 | cat >>conftest.$ac_ext <<_ACEOF | ||
3505 | /* end confdefs.h. */ | ||
3506 | #include <sys/types.h> | ||
3507 | #include <sys/param.h> | ||
3508 | |||
3509 | int | ||
3510 | main () | ||
3511 | { | ||
3512 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ | ||
3513 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | ||
3514 | bogus endian macros | ||
3515 | #endif | ||
3516 | |||
3517 | ; | ||
3518 | return 0; | ||
3519 | } | ||
3520 | _ACEOF | ||
3521 | rm -f conftest.$ac_objext | ||
3522 | if { (ac_try="$ac_compile" | ||
3523 | case "(($ac_try" in | ||
3524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3525 | *) ac_try_echo=$ac_try;; | ||
3526 | esac | ||
3527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3528 | (eval "$ac_compile") 2>conftest.er1 | ||
3529 | ac_status=$? | ||
3530 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3531 | rm -f conftest.er1 | ||
3532 | cat conftest.err >&5 | ||
3533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3534 | (exit $ac_status); } && { | ||
3535 | test -z "$ac_c_werror_flag" || | ||
3536 | test ! -s conftest.err | ||
3537 | } && test -s conftest.$ac_objext; then | ||
3538 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
3539 | cat >conftest.$ac_ext <<_ACEOF | ||
3540 | /* confdefs.h. */ | ||
3541 | _ACEOF | ||
3542 | cat confdefs.h >>conftest.$ac_ext | ||
3543 | cat >>conftest.$ac_ext <<_ACEOF | ||
3544 | /* end confdefs.h. */ | ||
3545 | #include <sys/types.h> | ||
3546 | #include <sys/param.h> | ||
3547 | |||
3548 | int | ||
3549 | main () | ||
3550 | { | ||
3551 | #if BYTE_ORDER != BIG_ENDIAN | ||
3552 | not big endian | ||
3553 | #endif | ||
3554 | |||
3555 | ; | ||
3556 | return 0; | ||
3557 | } | ||
3558 | _ACEOF | ||
3559 | rm -f conftest.$ac_objext | ||
3560 | if { (ac_try="$ac_compile" | ||
3561 | case "(($ac_try" in | ||
3562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3563 | *) ac_try_echo=$ac_try;; | ||
3564 | esac | ||
3565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3566 | (eval "$ac_compile") 2>conftest.er1 | ||
3567 | ac_status=$? | ||
3568 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3569 | rm -f conftest.er1 | ||
3570 | cat conftest.err >&5 | ||
3571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3572 | (exit $ac_status); } && { | ||
3573 | test -z "$ac_c_werror_flag" || | ||
3574 | test ! -s conftest.err | ||
3575 | } && test -s conftest.$ac_objext; then | ||
3576 | ac_cv_c_bigendian=yes | ||
3577 | else | ||
3578 | echo "$as_me: failed program was:" >&5 | ||
3579 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3580 | |||
3581 | ac_cv_c_bigendian=no | ||
3582 | fi | ||
3583 | |||
3584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3585 | else | ||
3586 | echo "$as_me: failed program was:" >&5 | ||
3587 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3588 | |||
3589 | # It does not; compile a test program. | ||
3590 | if test "$cross_compiling" = yes; then | ||
3591 | # try to guess the endianness by grepping values into an object file | ||
3592 | ac_cv_c_bigendian=unknown | ||
3593 | cat >conftest.$ac_ext <<_ACEOF | ||
3594 | /* confdefs.h. */ | ||
3595 | _ACEOF | ||
3596 | cat confdefs.h >>conftest.$ac_ext | ||
3597 | cat >>conftest.$ac_ext <<_ACEOF | ||
3598 | /* end confdefs.h. */ | ||
3599 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
3600 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
3601 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | ||
3602 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
3603 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
3604 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | ||
3605 | int | ||
3606 | main () | ||
3607 | { | ||
3608 | _ascii (); _ebcdic (); | ||
3609 | ; | ||
3610 | return 0; | ||
3611 | } | ||
3612 | _ACEOF | ||
3613 | rm -f conftest.$ac_objext | ||
3614 | if { (ac_try="$ac_compile" | ||
3615 | case "(($ac_try" in | ||
3616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3617 | *) ac_try_echo=$ac_try;; | ||
3618 | esac | ||
3619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3620 | (eval "$ac_compile") 2>conftest.er1 | ||
3621 | ac_status=$? | ||
3622 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3623 | rm -f conftest.er1 | ||
3624 | cat conftest.err >&5 | ||
3625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3626 | (exit $ac_status); } && { | ||
3627 | test -z "$ac_c_werror_flag" || | ||
3628 | test ! -s conftest.err | ||
3629 | } && test -s conftest.$ac_objext; then | ||
3630 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | ||
3631 | ac_cv_c_bigendian=yes | ||
3632 | fi | ||
3633 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
3634 | if test "$ac_cv_c_bigendian" = unknown; then | ||
3635 | ac_cv_c_bigendian=no | ||
3636 | else | ||
3637 | # finding both strings is unlikely to happen, but who knows? | ||
3638 | ac_cv_c_bigendian=unknown | ||
3639 | fi | ||
3640 | fi | ||
3641 | else | ||
3642 | echo "$as_me: failed program was:" >&5 | ||
3643 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3644 | |||
3645 | |||
3646 | fi | ||
3647 | |||
3648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3649 | else | ||
3650 | cat >conftest.$ac_ext <<_ACEOF | ||
3651 | /* confdefs.h. */ | ||
3652 | _ACEOF | ||
3653 | cat confdefs.h >>conftest.$ac_ext | ||
3654 | cat >>conftest.$ac_ext <<_ACEOF | ||
3655 | /* end confdefs.h. */ | ||
3656 | $ac_includes_default | ||
3657 | int | ||
3658 | main () | ||
3659 | { | ||
3660 | |||
3661 | /* Are we little or big endian? From Harbison&Steele. */ | ||
3662 | union | ||
3663 | { | ||
3664 | long int l; | ||
3665 | char c[sizeof (long int)]; | ||
3666 | } u; | ||
3667 | u.l = 1; | ||
3668 | return u.c[sizeof (long int) - 1] == 1; | ||
3669 | |||
3670 | ; | ||
3671 | return 0; | ||
3672 | } | ||
3673 | _ACEOF | ||
3674 | rm -f conftest$ac_exeext | ||
3675 | if { (ac_try="$ac_link" | ||
3676 | case "(($ac_try" in | ||
3677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3678 | *) ac_try_echo=$ac_try;; | ||
3679 | esac | ||
3680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3681 | (eval "$ac_link") 2>&5 | ||
3682 | ac_status=$? | ||
3683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3684 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
3685 | { (case "(($ac_try" in | ||
3686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3687 | *) ac_try_echo=$ac_try;; | ||
3688 | esac | ||
3689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3690 | (eval "$ac_try") 2>&5 | ||
3691 | ac_status=$? | ||
3692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3693 | (exit $ac_status); }; }; then | ||
3694 | ac_cv_c_bigendian=no | ||
3695 | else | ||
3696 | echo "$as_me: program exited with status $ac_status" >&5 | ||
3697 | echo "$as_me: failed program was:" >&5 | ||
3698 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3699 | |||
3700 | ( exit $ac_status ) | ||
3701 | ac_cv_c_bigendian=yes | ||
3702 | fi | ||
3703 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3704 | fi | ||
3705 | |||
3706 | |||
3707 | fi | ||
3708 | |||
3709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3710 | fi | ||
3711 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | ||
3712 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | ||
3713 | case $ac_cv_c_bigendian in | ||
3714 | yes) | ||
3715 | |||
3716 | cat >>confdefs.h <<\_ACEOF | ||
3717 | #define WORDS_BIGENDIAN 1 | ||
3718 | _ACEOF | ||
3719 | ;; | ||
3720 | no) | ||
3721 | ;; | ||
3722 | *) | ||
3723 | { { echo "$as_me:$LINENO: error: unknown endianness | ||
3724 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | ||
3725 | echo "$as_me: error: unknown endianness | ||
3726 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | ||
3727 | { (exit 1); exit 1; }; } ;; | ||
3728 | esac | ||
3729 | |||
3730 | |||
3731 | # Checks for programs. | ||
3732 | for ac_prog in gawk mawk nawk awk | ||
3733 | do | ||
3734 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3735 | set dummy $ac_prog; ac_word=$2 | ||
3736 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3737 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
3738 | if test "${ac_cv_prog_AWK+set}" = set; then | ||
3739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3740 | else | ||
3741 | if test -n "$AWK"; then | ||
3742 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
3743 | else | ||
3744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3745 | for as_dir in $PATH | ||
3746 | do | ||
3747 | IFS=$as_save_IFS | ||
3748 | test -z "$as_dir" && as_dir=. | ||
3749 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3750 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3751 | ac_cv_prog_AWK="$ac_prog" | ||
3752 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3753 | break 2 | ||
3754 | fi | ||
3755 | done | ||
3756 | done | ||
3757 | IFS=$as_save_IFS | ||
3758 | |||
3759 | fi | ||
3760 | fi | ||
3761 | AWK=$ac_cv_prog_AWK | ||
3762 | if test -n "$AWK"; then | ||
3763 | { echo "$as_me:$LINENO: result: $AWK" >&5 | ||
3764 | echo "${ECHO_T}$AWK" >&6; } | ||
3765 | else | ||
3766 | { echo "$as_me:$LINENO: result: no" >&5 | ||
3767 | echo "${ECHO_T}no" >&6; } | ||
3768 | fi | ||
3769 | |||
3770 | |||
3771 | test -n "$AWK" && break | ||
3772 | done | ||
3773 | |||
3774 | ac_ext=c | ||
3775 | ac_cpp='$CPP $CPPFLAGS' | ||
3776 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3777 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3778 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3779 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
3780 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | ||
3781 | # On Suns, sometimes $CPP names a directory. | ||
3782 | if test -n "$CPP" && test -d "$CPP"; then | ||
3783 | CPP= | ||
3784 | fi | ||
3785 | if test -z "$CPP"; then | ||
3786 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
3787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3788 | else | ||
3789 | # Double quotes because CPP needs to be expanded | ||
3790 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
3791 | do | ||
3792 | ac_preproc_ok=false | ||
3793 | for ac_c_preproc_warn_flag in '' yes | ||
3794 | do | ||
3795 | # Use a header file that comes with gcc, so configuring glibc | ||
3796 | # with a fresh cross-compiler works. | ||
3797 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3798 | # <limits.h> exists even on freestanding compilers. | ||
3799 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3800 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3801 | cat >conftest.$ac_ext <<_ACEOF | ||
3802 | /* confdefs.h. */ | ||
3803 | _ACEOF | ||
3804 | cat confdefs.h >>conftest.$ac_ext | ||
3805 | cat >>conftest.$ac_ext <<_ACEOF | ||
3806 | /* end confdefs.h. */ | ||
3807 | #ifdef __STDC__ | ||
3808 | # include <limits.h> | ||
3809 | #else | ||
3810 | # include <assert.h> | ||
3811 | #endif | ||
3812 | Syntax error | ||
3813 | _ACEOF | ||
3814 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3815 | case "(($ac_try" in | ||
3816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3817 | *) ac_try_echo=$ac_try;; | ||
3818 | esac | ||
3819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3820 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3821 | ac_status=$? | ||
3822 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3823 | rm -f conftest.er1 | ||
3824 | cat conftest.err >&5 | ||
3825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3826 | (exit $ac_status); } >/dev/null && { | ||
3827 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3828 | test ! -s conftest.err | ||
3829 | }; then | ||
3830 | : | ||
3831 | else | ||
3832 | echo "$as_me: failed program was:" >&5 | ||
3833 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3834 | |||
3835 | # Broken: fails on valid input. | ||
3836 | continue | ||
3837 | fi | ||
3838 | |||
3839 | rm -f conftest.err conftest.$ac_ext | ||
3840 | |||
3841 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3842 | # can be detected and how. | ||
3843 | cat >conftest.$ac_ext <<_ACEOF | ||
3844 | /* confdefs.h. */ | ||
3845 | _ACEOF | ||
3846 | cat confdefs.h >>conftest.$ac_ext | ||
3847 | cat >>conftest.$ac_ext <<_ACEOF | ||
3848 | /* end confdefs.h. */ | ||
3849 | #include <ac_nonexistent.h> | ||
3850 | _ACEOF | ||
3851 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3852 | case "(($ac_try" in | ||
3853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3854 | *) ac_try_echo=$ac_try;; | ||
3855 | esac | ||
3856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3857 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3858 | ac_status=$? | ||
3859 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3860 | rm -f conftest.er1 | ||
3861 | cat conftest.err >&5 | ||
3862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3863 | (exit $ac_status); } >/dev/null && { | ||
3864 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3865 | test ! -s conftest.err | ||
3866 | }; then | ||
3867 | # Broken: success on invalid input. | ||
3868 | continue | ||
3869 | else | ||
3870 | echo "$as_me: failed program was:" >&5 | ||
3871 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3872 | |||
3873 | # Passes both tests. | ||
3874 | ac_preproc_ok=: | ||
3875 | break | ||
3876 | fi | ||
3877 | |||
3878 | rm -f conftest.err conftest.$ac_ext | ||
3879 | |||
3880 | done | ||
3881 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3882 | rm -f conftest.err conftest.$ac_ext | ||
3883 | if $ac_preproc_ok; then | ||
3884 | break | ||
3885 | fi | ||
3886 | |||
3887 | done | ||
3888 | ac_cv_prog_CPP=$CPP | ||
3889 | |||
3890 | fi | ||
3891 | CPP=$ac_cv_prog_CPP | ||
3892 | else | ||
3893 | ac_cv_prog_CPP=$CPP | ||
3894 | fi | ||
3895 | { echo "$as_me:$LINENO: result: $CPP" >&5 | ||
3896 | echo "${ECHO_T}$CPP" >&6; } | ||
3897 | ac_preproc_ok=false | ||
3898 | for ac_c_preproc_warn_flag in '' yes | ||
3899 | do | ||
3900 | # Use a header file that comes with gcc, so configuring glibc | ||
3901 | # with a fresh cross-compiler works. | ||
3902 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3903 | # <limits.h> exists even on freestanding compilers. | ||
3904 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3905 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3906 | cat >conftest.$ac_ext <<_ACEOF | ||
3907 | /* confdefs.h. */ | ||
3908 | _ACEOF | ||
3909 | cat confdefs.h >>conftest.$ac_ext | ||
3910 | cat >>conftest.$ac_ext <<_ACEOF | ||
3911 | /* end confdefs.h. */ | ||
3912 | #ifdef __STDC__ | ||
3913 | # include <limits.h> | ||
3914 | #else | ||
3915 | # include <assert.h> | ||
3916 | #endif | ||
3917 | Syntax error | ||
3918 | _ACEOF | ||
3919 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3920 | case "(($ac_try" in | ||
3921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3922 | *) ac_try_echo=$ac_try;; | ||
3923 | esac | ||
3924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3925 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3926 | ac_status=$? | ||
3927 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3928 | rm -f conftest.er1 | ||
3929 | cat conftest.err >&5 | ||
3930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3931 | (exit $ac_status); } >/dev/null && { | ||
3932 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3933 | test ! -s conftest.err | ||
3934 | }; then | ||
3935 | : | ||
3936 | else | ||
3937 | echo "$as_me: failed program was:" >&5 | ||
3938 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3939 | |||
3940 | # Broken: fails on valid input. | ||
3941 | continue | ||
3942 | fi | ||
3943 | |||
3944 | rm -f conftest.err conftest.$ac_ext | ||
3945 | |||
3946 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3947 | # can be detected and how. | ||
3948 | cat >conftest.$ac_ext <<_ACEOF | ||
3949 | /* confdefs.h. */ | ||
3950 | _ACEOF | ||
3951 | cat confdefs.h >>conftest.$ac_ext | ||
3952 | cat >>conftest.$ac_ext <<_ACEOF | ||
3953 | /* end confdefs.h. */ | ||
3954 | #include <ac_nonexistent.h> | ||
3955 | _ACEOF | ||
3956 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3957 | case "(($ac_try" in | ||
3958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3959 | *) ac_try_echo=$ac_try;; | ||
3960 | esac | ||
3961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3962 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3963 | ac_status=$? | ||
3964 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3965 | rm -f conftest.er1 | ||
3966 | cat conftest.err >&5 | ||
3967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3968 | (exit $ac_status); } >/dev/null && { | ||
3969 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3970 | test ! -s conftest.err | ||
3971 | }; then | ||
3972 | # Broken: success on invalid input. | ||
3973 | continue | ||
3974 | else | ||
3975 | echo "$as_me: failed program was:" >&5 | ||
3976 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3977 | |||
3978 | # Passes both tests. | ||
3979 | ac_preproc_ok=: | ||
3980 | break | ||
3981 | fi | ||
3982 | |||
3983 | rm -f conftest.err conftest.$ac_ext | ||
3984 | |||
3985 | done | ||
3986 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3987 | rm -f conftest.err conftest.$ac_ext | ||
3988 | if $ac_preproc_ok; then | ||
3989 | : | ||
3990 | else | ||
3991 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
3992 | See \`config.log' for more details." >&5 | ||
3993 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
3994 | See \`config.log' for more details." >&2;} | ||
3995 | { (exit 1); exit 1; }; } | ||
3996 | fi | ||
3997 | |||
3998 | ac_ext=c | ||
3999 | ac_cpp='$CPP $CPPFLAGS' | ||
4000 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4001 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4002 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4003 | |||
4004 | if test -n "$ac_tool_prefix"; then | ||
4005 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
4006 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
4007 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4008 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4009 | if test "${ac_cv_prog_RANLIB+set}" = set; then | ||
4010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4011 | else | ||
4012 | if test -n "$RANLIB"; then | ||
4013 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
4014 | else | ||
4015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4016 | for as_dir in $PATH | ||
4017 | do | ||
4018 | IFS=$as_save_IFS | ||
4019 | test -z "$as_dir" && as_dir=. | ||
4020 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4021 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4022 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
4023 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4024 | break 2 | ||
4025 | fi | ||
4026 | done | ||
4027 | done | ||
4028 | IFS=$as_save_IFS | ||
4029 | |||
4030 | fi | ||
4031 | fi | ||
4032 | RANLIB=$ac_cv_prog_RANLIB | ||
4033 | if test -n "$RANLIB"; then | ||
4034 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 | ||
4035 | echo "${ECHO_T}$RANLIB" >&6; } | ||
4036 | else | ||
4037 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4038 | echo "${ECHO_T}no" >&6; } | ||
4039 | fi | ||
4040 | |||
4041 | |||
4042 | fi | ||
4043 | if test -z "$ac_cv_prog_RANLIB"; then | ||
4044 | ac_ct_RANLIB=$RANLIB | ||
4045 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
4046 | set dummy ranlib; ac_word=$2 | ||
4047 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4048 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4049 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | ||
4050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4051 | else | ||
4052 | if test -n "$ac_ct_RANLIB"; then | ||
4053 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
4054 | else | ||
4055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4056 | for as_dir in $PATH | ||
4057 | do | ||
4058 | IFS=$as_save_IFS | ||
4059 | test -z "$as_dir" && as_dir=. | ||
4060 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4061 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4062 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
4063 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4064 | break 2 | ||
4065 | fi | ||
4066 | done | ||
4067 | done | ||
4068 | IFS=$as_save_IFS | ||
4069 | |||
4070 | fi | ||
4071 | fi | ||
4072 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
4073 | if test -n "$ac_ct_RANLIB"; then | ||
4074 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | ||
4075 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | ||
4076 | else | ||
4077 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4078 | echo "${ECHO_T}no" >&6; } | ||
4079 | fi | ||
4080 | |||
4081 | if test "x$ac_ct_RANLIB" = x; then | ||
4082 | RANLIB=":" | ||
4083 | else | ||
4084 | case $cross_compiling:$ac_tool_warned in | ||
4085 | yes:) | ||
4086 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
4087 | whose name does not start with the host triplet. If you think this | ||
4088 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
4089 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
4090 | whose name does not start with the host triplet. If you think this | ||
4091 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
4092 | ac_tool_warned=yes ;; | ||
4093 | esac | ||
4094 | RANLIB=$ac_ct_RANLIB | ||
4095 | fi | ||
4096 | else | ||
4097 | RANLIB="$ac_cv_prog_RANLIB" | ||
4098 | fi | ||
4099 | |||
4100 | # Find a good install program. We prefer a C program (faster), | ||
4101 | # so one script is as good as another. But avoid the broken or | ||
4102 | # incompatible versions: | ||
4103 | # SysV /etc/install, /usr/sbin/install | ||
4104 | # SunOS /usr/etc/install | ||
4105 | # IRIX /sbin/install | ||
4106 | # AIX /bin/install | ||
4107 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
4108 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
4109 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
4110 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
4111 | # OS/2's system install, which has a completely different semantic | ||
4112 | # ./install, which can be erroneously created by make from ./install.sh. | ||
4113 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
4114 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | ||
4115 | if test -z "$INSTALL"; then | ||
4116 | if test "${ac_cv_path_install+set}" = set; then | ||
4117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4118 | else | ||
4119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4120 | for as_dir in $PATH | ||
4121 | do | ||
4122 | IFS=$as_save_IFS | ||
4123 | test -z "$as_dir" && as_dir=. | ||
4124 | # Account for people who put trailing slashes in PATH elements. | ||
4125 | case $as_dir/ in | ||
4126 | ./ | .// | /cC/* | \ | ||
4127 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
4128 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | ||
4129 | /usr/ucb/* ) ;; | ||
4130 | *) | ||
4131 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
4132 | # Don't use installbsd from OSF since it installs stuff as root | ||
4133 | # by default. | ||
4134 | for ac_prog in ginstall scoinst install; do | ||
4135 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4136 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
4137 | if test $ac_prog = install && | ||
4138 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4139 | # AIX install. It has an incompatible calling convention. | ||
4140 | : | ||
4141 | elif test $ac_prog = install && | ||
4142 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4143 | # program-specific install script used by HP pwplus--don't use. | ||
4144 | : | ||
4145 | else | ||
4146 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
4147 | break 3 | ||
4148 | fi | ||
4149 | fi | ||
4150 | done | ||
4151 | done | ||
4152 | ;; | ||
4153 | esac | ||
4154 | done | ||
4155 | IFS=$as_save_IFS | ||
4156 | |||
4157 | |||
4158 | fi | ||
4159 | if test "${ac_cv_path_install+set}" = set; then | ||
4160 | INSTALL=$ac_cv_path_install | ||
4161 | else | ||
4162 | # As a last resort, use the slow shell script. Don't cache a | ||
4163 | # value for INSTALL within a source directory, because that will | ||
4164 | # break other packages using the cache if that directory is | ||
4165 | # removed, or if the value is a relative name. | ||
4166 | INSTALL=$ac_install_sh | ||
4167 | fi | ||
4168 | fi | ||
4169 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
4170 | echo "${ECHO_T}$INSTALL" >&6; } | ||
4171 | |||
4172 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
4173 | # It thinks the first close brace ends the variable substitution. | ||
4174 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
4175 | |||
4176 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
4177 | |||
4178 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
4179 | |||
4180 | { echo "$as_me:$LINENO: checking for egrep" >&5 | ||
4181 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | ||
4182 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
4183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4184 | else | ||
4185 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4186 | then ac_cv_path_EGREP="$GREP -E" | ||
4187 | else | ||
4188 | # Extract the first word of "egrep" to use in msg output | ||
4189 | if test -z "$EGREP"; then | ||
4190 | set dummy egrep; ac_prog_name=$2 | ||
4191 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
4192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4193 | else | ||
4194 | ac_path_EGREP_found=false | ||
4195 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4197 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4198 | do | ||
4199 | IFS=$as_save_IFS | ||
4200 | test -z "$as_dir" && as_dir=. | ||
4201 | for ac_prog in egrep; do | ||
4202 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4203 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4204 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
4205 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4206 | # Check for GNU $ac_path_EGREP | ||
4207 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4208 | *GNU*) | ||
4209 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4210 | *) | ||
4211 | ac_count=0 | ||
4212 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
4213 | while : | ||
4214 | do | ||
4215 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4216 | mv "conftest.tmp" "conftest.in" | ||
4217 | cp "conftest.in" "conftest.nl" | ||
4218 | echo 'EGREP' >> "conftest.nl" | ||
4219 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4220 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4221 | ac_count=`expr $ac_count + 1` | ||
4222 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4223 | # Best one so far, save it but keep looking for a better one | ||
4224 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4225 | ac_path_EGREP_max=$ac_count | ||
4226 | fi | ||
4227 | # 10*(2^10) chars as input seems more than enough | ||
4228 | test $ac_count -gt 10 && break | ||
4229 | done | ||
4230 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4231 | esac | ||
4232 | |||
4233 | |||
4234 | $ac_path_EGREP_found && break 3 | ||
4235 | done | ||
4236 | done | ||
4237 | |||
4238 | done | ||
4239 | IFS=$as_save_IFS | ||
4240 | |||
4241 | |||
4242 | fi | ||
4243 | |||
4244 | EGREP="$ac_cv_path_EGREP" | ||
4245 | if test -z "$EGREP"; then | ||
4246 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
4247 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
4248 | { (exit 1); exit 1; }; } | ||
4249 | fi | ||
4250 | |||
4251 | else | ||
4252 | ac_cv_path_EGREP=$EGREP | ||
4253 | fi | ||
4254 | |||
4255 | |||
4256 | fi | ||
4257 | fi | ||
4258 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||
4259 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | ||
4260 | EGREP="$ac_cv_path_EGREP" | ||
4261 | |||
4262 | |||
4263 | # Extract the first word of "ar", so it can be a program name with args. | ||
4264 | set dummy ar; ac_word=$2 | ||
4265 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4266 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4267 | if test "${ac_cv_path_AR+set}" = set; then | ||
4268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4269 | else | ||
4270 | case $AR in | ||
4271 | [\\/]* | ?:[\\/]*) | ||
4272 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | ||
4273 | ;; | ||
4274 | *) | ||
4275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4276 | for as_dir in $PATH | ||
4277 | do | ||
4278 | IFS=$as_save_IFS | ||
4279 | test -z "$as_dir" && as_dir=. | ||
4280 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4281 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4282 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | ||
4283 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4284 | break 2 | ||
4285 | fi | ||
4286 | done | ||
4287 | done | ||
4288 | IFS=$as_save_IFS | ||
4289 | |||
4290 | ;; | ||
4291 | esac | ||
4292 | fi | ||
4293 | AR=$ac_cv_path_AR | ||
4294 | if test -n "$AR"; then | ||
4295 | { echo "$as_me:$LINENO: result: $AR" >&5 | ||
4296 | echo "${ECHO_T}$AR" >&6; } | ||
4297 | else | ||
4298 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4299 | echo "${ECHO_T}no" >&6; } | ||
4300 | fi | ||
4301 | |||
4302 | |||
4303 | # Extract the first word of "cat", so it can be a program name with args. | ||
4304 | set dummy cat; ac_word=$2 | ||
4305 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4306 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4307 | if test "${ac_cv_path_CAT+set}" = set; then | ||
4308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4309 | else | ||
4310 | case $CAT in | ||
4311 | [\\/]* | ?:[\\/]*) | ||
4312 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. | ||
4313 | ;; | ||
4314 | *) | ||
4315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4316 | for as_dir in $PATH | ||
4317 | do | ||
4318 | IFS=$as_save_IFS | ||
4319 | test -z "$as_dir" && as_dir=. | ||
4320 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4321 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4322 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" | ||
4323 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4324 | break 2 | ||
4325 | fi | ||
4326 | done | ||
4327 | done | ||
4328 | IFS=$as_save_IFS | ||
4329 | |||
4330 | ;; | ||
4331 | esac | ||
4332 | fi | ||
4333 | CAT=$ac_cv_path_CAT | ||
4334 | if test -n "$CAT"; then | ||
4335 | { echo "$as_me:$LINENO: result: $CAT" >&5 | ||
4336 | echo "${ECHO_T}$CAT" >&6; } | ||
4337 | else | ||
4338 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4339 | echo "${ECHO_T}no" >&6; } | ||
4340 | fi | ||
4341 | |||
4342 | |||
4343 | # Extract the first word of "kill", so it can be a program name with args. | ||
4344 | set dummy kill; ac_word=$2 | ||
4345 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4346 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4347 | if test "${ac_cv_path_KILL+set}" = set; then | ||
4348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4349 | else | ||
4350 | case $KILL in | ||
4351 | [\\/]* | ?:[\\/]*) | ||
4352 | ac_cv_path_KILL="$KILL" # Let the user override the test with a path. | ||
4353 | ;; | ||
4354 | *) | ||
4355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4356 | for as_dir in $PATH | ||
4357 | do | ||
4358 | IFS=$as_save_IFS | ||
4359 | test -z "$as_dir" && as_dir=. | ||
4360 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4361 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4362 | ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext" | ||
4363 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4364 | break 2 | ||
4365 | fi | ||
4366 | done | ||
4367 | done | ||
4368 | IFS=$as_save_IFS | ||
4369 | |||
4370 | ;; | ||
4371 | esac | ||
4372 | fi | ||
4373 | KILL=$ac_cv_path_KILL | ||
4374 | if test -n "$KILL"; then | ||
4375 | { echo "$as_me:$LINENO: result: $KILL" >&5 | ||
4376 | echo "${ECHO_T}$KILL" >&6; } | ||
4377 | else | ||
4378 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4379 | echo "${ECHO_T}no" >&6; } | ||
4380 | fi | ||
4381 | |||
4382 | |||
4383 | for ac_prog in perl5 perl | ||
4384 | do | ||
4385 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4386 | set dummy $ac_prog; ac_word=$2 | ||
4387 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4388 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4389 | if test "${ac_cv_path_PERL+set}" = set; then | ||
4390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4391 | else | ||
4392 | case $PERL in | ||
4393 | [\\/]* | ?:[\\/]*) | ||
4394 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
4395 | ;; | ||
4396 | *) | ||
4397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4398 | for as_dir in $PATH | ||
4399 | do | ||
4400 | IFS=$as_save_IFS | ||
4401 | test -z "$as_dir" && as_dir=. | ||
4402 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4403 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4404 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | ||
4405 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4406 | break 2 | ||
4407 | fi | ||
4408 | done | ||
4409 | done | ||
4410 | IFS=$as_save_IFS | ||
4411 | |||
4412 | ;; | ||
4413 | esac | ||
4414 | fi | ||
4415 | PERL=$ac_cv_path_PERL | ||
4416 | if test -n "$PERL"; then | ||
4417 | { echo "$as_me:$LINENO: result: $PERL" >&5 | ||
4418 | echo "${ECHO_T}$PERL" >&6; } | ||
4419 | else | ||
4420 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4421 | echo "${ECHO_T}no" >&6; } | ||
4422 | fi | ||
4423 | |||
4424 | |||
4425 | test -n "$PERL" && break | ||
4426 | done | ||
4427 | |||
4428 | # Extract the first word of "sed", so it can be a program name with args. | ||
4429 | set dummy sed; ac_word=$2 | ||
4430 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4431 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4432 | if test "${ac_cv_path_SED+set}" = set; then | ||
4433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4434 | else | ||
4435 | case $SED in | ||
4436 | [\\/]* | ?:[\\/]*) | ||
4437 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
4438 | ;; | ||
4439 | *) | ||
4440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4441 | for as_dir in $PATH | ||
4442 | do | ||
4443 | IFS=$as_save_IFS | ||
4444 | test -z "$as_dir" && as_dir=. | ||
4445 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4446 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4447 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | ||
4448 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4449 | break 2 | ||
4450 | fi | ||
4451 | done | ||
4452 | done | ||
4453 | IFS=$as_save_IFS | ||
4454 | |||
4455 | ;; | ||
4456 | esac | ||
4457 | fi | ||
4458 | SED=$ac_cv_path_SED | ||
4459 | if test -n "$SED"; then | ||
4460 | { echo "$as_me:$LINENO: result: $SED" >&5 | ||
4461 | echo "${ECHO_T}$SED" >&6; } | ||
4462 | else | ||
4463 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4464 | echo "${ECHO_T}no" >&6; } | ||
4465 | fi | ||
4466 | |||
4467 | |||
4468 | |||
4469 | # Extract the first word of "ent", so it can be a program name with args. | ||
4470 | set dummy ent; ac_word=$2 | ||
4471 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4472 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4473 | if test "${ac_cv_path_ENT+set}" = set; then | ||
4474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4475 | else | ||
4476 | case $ENT in | ||
4477 | [\\/]* | ?:[\\/]*) | ||
4478 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
4479 | ;; | ||
4480 | *) | ||
4481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4482 | for as_dir in $PATH | ||
4483 | do | ||
4484 | IFS=$as_save_IFS | ||
4485 | test -z "$as_dir" && as_dir=. | ||
4486 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4487 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4488 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" | ||
4489 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4490 | break 2 | ||
4491 | fi | ||
4492 | done | ||
4493 | done | ||
4494 | IFS=$as_save_IFS | ||
4495 | |||
4496 | ;; | ||
4497 | esac | ||
4498 | fi | ||
4499 | ENT=$ac_cv_path_ENT | ||
4500 | if test -n "$ENT"; then | ||
4501 | { echo "$as_me:$LINENO: result: $ENT" >&5 | ||
4502 | echo "${ECHO_T}$ENT" >&6; } | ||
4503 | else | ||
4504 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4505 | echo "${ECHO_T}no" >&6; } | ||
4506 | fi | ||
4507 | |||
4508 | |||
4509 | |||
4510 | # Extract the first word of "bash", so it can be a program name with args. | ||
4511 | set dummy bash; ac_word=$2 | ||
4512 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4513 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4514 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4515 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4516 | else | ||
4517 | case $TEST_MINUS_S_SH in | ||
4518 | [\\/]* | ?:[\\/]*) | ||
4519 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4520 | ;; | ||
4521 | *) | ||
4522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4523 | for as_dir in $PATH | ||
4524 | do | ||
4525 | IFS=$as_save_IFS | ||
4526 | test -z "$as_dir" && as_dir=. | ||
4527 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4528 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4529 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4530 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4531 | break 2 | ||
4532 | fi | ||
4533 | done | ||
4534 | done | ||
4535 | IFS=$as_save_IFS | ||
4536 | |||
4537 | ;; | ||
4538 | esac | ||
4539 | fi | ||
4540 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4541 | if test -n "$TEST_MINUS_S_SH"; then | ||
4542 | { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4543 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } | ||
4544 | else | ||
4545 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4546 | echo "${ECHO_T}no" >&6; } | ||
4547 | fi | ||
4548 | |||
4549 | |||
4550 | # Extract the first word of "ksh", so it can be a program name with args. | ||
4551 | set dummy ksh; ac_word=$2 | ||
4552 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4553 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4554 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4556 | else | ||
4557 | case $TEST_MINUS_S_SH in | ||
4558 | [\\/]* | ?:[\\/]*) | ||
4559 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4560 | ;; | ||
4561 | *) | ||
4562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4563 | for as_dir in $PATH | ||
4564 | do | ||
4565 | IFS=$as_save_IFS | ||
4566 | test -z "$as_dir" && as_dir=. | ||
4567 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4568 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4569 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4570 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4571 | break 2 | ||
4572 | fi | ||
4573 | done | ||
4574 | done | ||
4575 | IFS=$as_save_IFS | ||
4576 | |||
4577 | ;; | ||
4578 | esac | ||
4579 | fi | ||
4580 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4581 | if test -n "$TEST_MINUS_S_SH"; then | ||
4582 | { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4583 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } | ||
4584 | else | ||
4585 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4586 | echo "${ECHO_T}no" >&6; } | ||
4587 | fi | ||
4588 | |||
4589 | |||
4590 | # Extract the first word of "sh", so it can be a program name with args. | ||
4591 | set dummy sh; ac_word=$2 | ||
4592 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4593 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4594 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4596 | else | ||
4597 | case $TEST_MINUS_S_SH in | ||
4598 | [\\/]* | ?:[\\/]*) | ||
4599 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4600 | ;; | ||
4601 | *) | ||
4602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4603 | for as_dir in $PATH | ||
4604 | do | ||
4605 | IFS=$as_save_IFS | ||
4606 | test -z "$as_dir" && as_dir=. | ||
4607 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4608 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4609 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4610 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4611 | break 2 | ||
4612 | fi | ||
4613 | done | ||
4614 | done | ||
4615 | IFS=$as_save_IFS | ||
4616 | |||
4617 | ;; | ||
4618 | esac | ||
4619 | fi | ||
4620 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4621 | if test -n "$TEST_MINUS_S_SH"; then | ||
4622 | { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4623 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } | ||
4624 | else | ||
4625 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4626 | echo "${ECHO_T}no" >&6; } | ||
4627 | fi | ||
4628 | |||
4629 | |||
4630 | # Extract the first word of "sh", so it can be a program name with args. | ||
4631 | set dummy sh; ac_word=$2 | ||
4632 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4633 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4634 | if test "${ac_cv_path_SH+set}" = set; then | ||
4635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4636 | else | ||
4637 | case $SH in | ||
4638 | [\\/]* | ?:[\\/]*) | ||
4639 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
4640 | ;; | ||
4641 | *) | ||
4642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4643 | for as_dir in $PATH | ||
4644 | do | ||
4645 | IFS=$as_save_IFS | ||
4646 | test -z "$as_dir" && as_dir=. | ||
4647 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4648 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4649 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4650 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4651 | break 2 | ||
4652 | fi | ||
4653 | done | ||
4654 | done | ||
4655 | IFS=$as_save_IFS | ||
4656 | |||
4657 | ;; | ||
4658 | esac | ||
4659 | fi | ||
4660 | SH=$ac_cv_path_SH | ||
4661 | if test -n "$SH"; then | ||
4662 | { echo "$as_me:$LINENO: result: $SH" >&5 | ||
4663 | echo "${ECHO_T}$SH" >&6; } | ||
4664 | else | ||
4665 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4666 | echo "${ECHO_T}no" >&6; } | ||
4667 | fi | ||
4668 | |||
4669 | |||
4670 | # Extract the first word of "groff", so it can be a program name with args. | ||
4671 | set dummy groff; ac_word=$2 | ||
4672 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4673 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4674 | if test "${ac_cv_path_GROFF+set}" = set; then | ||
4675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4676 | else | ||
4677 | case $GROFF in | ||
4678 | [\\/]* | ?:[\\/]*) | ||
4679 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. | ||
4680 | ;; | ||
4681 | *) | ||
4682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4683 | for as_dir in $PATH | ||
4684 | do | ||
4685 | IFS=$as_save_IFS | ||
4686 | test -z "$as_dir" && as_dir=. | ||
4687 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4688 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4689 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" | ||
4690 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4691 | break 2 | ||
4692 | fi | ||
4693 | done | ||
4694 | done | ||
4695 | IFS=$as_save_IFS | ||
4696 | |||
4697 | ;; | ||
4698 | esac | ||
4699 | fi | ||
4700 | GROFF=$ac_cv_path_GROFF | ||
4701 | if test -n "$GROFF"; then | ||
4702 | { echo "$as_me:$LINENO: result: $GROFF" >&5 | ||
4703 | echo "${ECHO_T}$GROFF" >&6; } | ||
4704 | else | ||
4705 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4706 | echo "${ECHO_T}no" >&6; } | ||
4707 | fi | ||
4708 | |||
4709 | |||
4710 | # Extract the first word of "nroff", so it can be a program name with args. | ||
4711 | set dummy nroff; ac_word=$2 | ||
4712 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4713 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4714 | if test "${ac_cv_path_NROFF+set}" = set; then | ||
4715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4716 | else | ||
4717 | case $NROFF in | ||
4718 | [\\/]* | ?:[\\/]*) | ||
4719 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
4720 | ;; | ||
4721 | *) | ||
4722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4723 | for as_dir in $PATH | ||
4724 | do | ||
4725 | IFS=$as_save_IFS | ||
4726 | test -z "$as_dir" && as_dir=. | ||
4727 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4728 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4729 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
4730 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4731 | break 2 | ||
4732 | fi | ||
4733 | done | ||
4734 | done | ||
4735 | IFS=$as_save_IFS | ||
4736 | |||
4737 | ;; | ||
4738 | esac | ||
4739 | fi | ||
4740 | NROFF=$ac_cv_path_NROFF | ||
4741 | if test -n "$NROFF"; then | ||
4742 | { echo "$as_me:$LINENO: result: $NROFF" >&5 | ||
4743 | echo "${ECHO_T}$NROFF" >&6; } | ||
4744 | else | ||
4745 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4746 | echo "${ECHO_T}no" >&6; } | ||
4747 | fi | ||
4748 | |||
4749 | |||
4750 | # Extract the first word of "mandoc", so it can be a program name with args. | ||
4751 | set dummy mandoc; ac_word=$2 | ||
4752 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4753 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4754 | if test "${ac_cv_path_MANDOC+set}" = set; then | ||
4755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4756 | else | ||
4757 | case $MANDOC in | ||
4758 | [\\/]* | ?:[\\/]*) | ||
4759 | ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path. | ||
4760 | ;; | ||
4761 | *) | ||
4762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4763 | for as_dir in $PATH | ||
4764 | do | ||
4765 | IFS=$as_save_IFS | ||
4766 | test -z "$as_dir" && as_dir=. | ||
4767 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4768 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4769 | ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext" | ||
4770 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4771 | break 2 | ||
4772 | fi | ||
4773 | done | ||
4774 | done | ||
4775 | IFS=$as_save_IFS | ||
4776 | |||
4777 | ;; | ||
4778 | esac | ||
4779 | fi | ||
4780 | MANDOC=$ac_cv_path_MANDOC | ||
4781 | if test -n "$MANDOC"; then | ||
4782 | { echo "$as_me:$LINENO: result: $MANDOC" >&5 | ||
4783 | echo "${ECHO_T}$MANDOC" >&6; } | ||
4784 | else | ||
4785 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4786 | echo "${ECHO_T}no" >&6; } | ||
4787 | fi | ||
4788 | |||
4789 | |||
4790 | TEST_SHELL=sh | ||
4791 | |||
4792 | |||
4793 | if test "x$MANDOC" != "x" ; then | ||
4794 | MANFMT="$MANDOC" | ||
4795 | elif test "x$NROFF" != "x" ; then | ||
4796 | MANFMT="$NROFF -mandoc" | ||
4797 | elif test "x$GROFF" != "x" ; then | ||
4798 | MANFMT="$GROFF -mandoc -Tascii" | ||
4799 | else | ||
4800 | { echo "$as_me:$LINENO: WARNING: no manpage formatted found" >&5 | ||
4801 | echo "$as_me: WARNING: no manpage formatted found" >&2;} | ||
4802 | MANFMT="false" | ||
4803 | fi | ||
4804 | |||
4805 | |||
4806 | # Extract the first word of "groupadd", so it can be a program name with args. | ||
4807 | set dummy groupadd; ac_word=$2 | ||
4808 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4809 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4810 | if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then | ||
4811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4812 | else | ||
4813 | case $PATH_GROUPADD_PROG in | ||
4814 | [\\/]* | ?:[\\/]*) | ||
4815 | ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path. | ||
4816 | ;; | ||
4817 | *) | ||
4818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4819 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
4820 | do | ||
4821 | IFS=$as_save_IFS | ||
4822 | test -z "$as_dir" && as_dir=. | ||
4823 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4824 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4825 | ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
4826 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4827 | break 2 | ||
4828 | fi | ||
4829 | done | ||
4830 | done | ||
4831 | IFS=$as_save_IFS | ||
4832 | |||
4833 | test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" | ||
4834 | ;; | ||
4835 | esac | ||
4836 | fi | ||
4837 | PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG | ||
4838 | if test -n "$PATH_GROUPADD_PROG"; then | ||
4839 | { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5 | ||
4840 | echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; } | ||
4841 | else | ||
4842 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4843 | echo "${ECHO_T}no" >&6; } | ||
4844 | fi | ||
4845 | |||
4846 | |||
4847 | # Extract the first word of "useradd", so it can be a program name with args. | ||
4848 | set dummy useradd; ac_word=$2 | ||
4849 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4850 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4851 | if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then | ||
4852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4853 | else | ||
4854 | case $PATH_USERADD_PROG in | ||
4855 | [\\/]* | ?:[\\/]*) | ||
4856 | ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path. | ||
4857 | ;; | ||
4858 | *) | ||
4859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4860 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
4861 | do | ||
4862 | IFS=$as_save_IFS | ||
4863 | test -z "$as_dir" && as_dir=. | ||
4864 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4865 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4866 | ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
4867 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4868 | break 2 | ||
4869 | fi | ||
4870 | done | ||
4871 | done | ||
4872 | IFS=$as_save_IFS | ||
4873 | |||
4874 | test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" | ||
4875 | ;; | ||
4876 | esac | ||
4877 | fi | ||
4878 | PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG | ||
4879 | if test -n "$PATH_USERADD_PROG"; then | ||
4880 | { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5 | ||
4881 | echo "${ECHO_T}$PATH_USERADD_PROG" >&6; } | ||
4882 | else | ||
4883 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4884 | echo "${ECHO_T}no" >&6; } | ||
4885 | fi | ||
4886 | |||
4887 | |||
4888 | # Extract the first word of "pkgmk", so it can be a program name with args. | ||
4889 | set dummy pkgmk; ac_word=$2 | ||
4890 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4891 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4892 | if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then | ||
4893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4894 | else | ||
4895 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
4896 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. | ||
4897 | else | ||
4898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4899 | for as_dir in $PATH | ||
4900 | do | ||
4901 | IFS=$as_save_IFS | ||
4902 | test -z "$as_dir" && as_dir=. | ||
4903 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4904 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4905 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" | ||
4906 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4907 | break 2 | ||
4908 | fi | ||
4909 | done | ||
4910 | done | ||
4911 | IFS=$as_save_IFS | ||
4912 | |||
4913 | test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" | ||
4914 | fi | ||
4915 | fi | ||
4916 | MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED | ||
4917 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
4918 | { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5 | ||
4919 | echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; } | ||
4920 | else | ||
4921 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4922 | echo "${ECHO_T}no" >&6; } | ||
4923 | fi | ||
4924 | |||
4925 | |||
4926 | if test -x /sbin/sh; then | ||
4927 | STARTUP_SCRIPT_SHELL=/sbin/sh | ||
4928 | |||
4929 | else | ||
4930 | STARTUP_SCRIPT_SHELL=/bin/sh | ||
4931 | |||
4932 | fi | ||
4933 | |||
4934 | # System features | ||
4935 | # Check whether --enable-largefile was given. | ||
4936 | if test "${enable_largefile+set}" = set; then | ||
4937 | enableval=$enable_largefile; | ||
4938 | fi | ||
4939 | |||
4940 | if test "$enable_largefile" != no; then | ||
4941 | |||
4942 | { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | ||
4943 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } | ||
4944 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | ||
4945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4946 | else | ||
4947 | ac_cv_sys_largefile_CC=no | ||
4948 | if test "$GCC" != yes; then | ||
4949 | ac_save_CC=$CC | ||
4950 | while :; do | ||
4951 | # IRIX 6.2 and later do not support large files by default, | ||
4952 | # so use the C compiler's -n32 option if that helps. | ||
4953 | cat >conftest.$ac_ext <<_ACEOF | ||
4954 | /* confdefs.h. */ | ||
4955 | _ACEOF | ||
4956 | cat confdefs.h >>conftest.$ac_ext | ||
4957 | cat >>conftest.$ac_ext <<_ACEOF | ||
4958 | /* end confdefs.h. */ | ||
4959 | #include <sys/types.h> | ||
4960 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
4961 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
4962 | since some C++ compilers masquerading as C compilers | ||
4963 | incorrectly reject 9223372036854775807. */ | ||
4964 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
4965 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
4966 | && LARGE_OFF_T % 2147483647 == 1) | ||
4967 | ? 1 : -1]; | ||
4968 | int | ||
4969 | main () | ||
4970 | { | ||
4971 | |||
4972 | ; | ||
4973 | return 0; | ||
4974 | } | ||
4975 | _ACEOF | ||
4976 | rm -f conftest.$ac_objext | ||
4977 | if { (ac_try="$ac_compile" | ||
4978 | case "(($ac_try" in | ||
4979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4980 | *) ac_try_echo=$ac_try;; | ||
4981 | esac | ||
4982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4983 | (eval "$ac_compile") 2>conftest.er1 | ||
4984 | ac_status=$? | ||
4985 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4986 | rm -f conftest.er1 | ||
4987 | cat conftest.err >&5 | ||
4988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4989 | (exit $ac_status); } && { | ||
4990 | test -z "$ac_c_werror_flag" || | ||
4991 | test ! -s conftest.err | ||
4992 | } && test -s conftest.$ac_objext; then | ||
4993 | break | ||
4994 | else | ||
4995 | echo "$as_me: failed program was:" >&5 | ||
4996 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4997 | |||
4998 | |||
4999 | fi | ||
5000 | |||
5001 | rm -f core conftest.err conftest.$ac_objext | ||
5002 | CC="$CC -n32" | ||
5003 | rm -f conftest.$ac_objext | ||
5004 | if { (ac_try="$ac_compile" | ||
5005 | case "(($ac_try" in | ||
5006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5007 | *) ac_try_echo=$ac_try;; | ||
5008 | esac | ||
5009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5010 | (eval "$ac_compile") 2>conftest.er1 | ||
5011 | ac_status=$? | ||
5012 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5013 | rm -f conftest.er1 | ||
5014 | cat conftest.err >&5 | ||
5015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5016 | (exit $ac_status); } && { | ||
5017 | test -z "$ac_c_werror_flag" || | ||
5018 | test ! -s conftest.err | ||
5019 | } && test -s conftest.$ac_objext; then | ||
5020 | ac_cv_sys_largefile_CC=' -n32'; break | ||
5021 | else | ||
5022 | echo "$as_me: failed program was:" >&5 | ||
5023 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5024 | |||
5025 | |||
5026 | fi | ||
5027 | |||
5028 | rm -f core conftest.err conftest.$ac_objext | ||
5029 | break | ||
5030 | done | ||
5031 | CC=$ac_save_CC | ||
5032 | rm -f conftest.$ac_ext | ||
5033 | fi | ||
5034 | fi | ||
5035 | { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | ||
5036 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } | ||
5037 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
5038 | CC=$CC$ac_cv_sys_largefile_CC | ||
5039 | fi | ||
5040 | |||
5041 | { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
5042 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } | ||
5043 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | ||
5044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5045 | else | ||
5046 | while :; do | ||
5047 | cat >conftest.$ac_ext <<_ACEOF | ||
5048 | /* confdefs.h. */ | ||
5049 | _ACEOF | ||
5050 | cat confdefs.h >>conftest.$ac_ext | ||
5051 | cat >>conftest.$ac_ext <<_ACEOF | ||
5052 | /* end confdefs.h. */ | ||
5053 | #include <sys/types.h> | ||
5054 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5055 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5056 | since some C++ compilers masquerading as C compilers | ||
5057 | incorrectly reject 9223372036854775807. */ | ||
5058 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5059 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5060 | && LARGE_OFF_T % 2147483647 == 1) | ||
5061 | ? 1 : -1]; | ||
5062 | int | ||
5063 | main () | ||
5064 | { | ||
5065 | |||
5066 | ; | ||
5067 | return 0; | ||
5068 | } | ||
5069 | _ACEOF | ||
5070 | rm -f conftest.$ac_objext | ||
5071 | if { (ac_try="$ac_compile" | ||
5072 | case "(($ac_try" in | ||
5073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5074 | *) ac_try_echo=$ac_try;; | ||
5075 | esac | ||
5076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5077 | (eval "$ac_compile") 2>conftest.er1 | ||
5078 | ac_status=$? | ||
5079 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5080 | rm -f conftest.er1 | ||
5081 | cat conftest.err >&5 | ||
5082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5083 | (exit $ac_status); } && { | ||
5084 | test -z "$ac_c_werror_flag" || | ||
5085 | test ! -s conftest.err | ||
5086 | } && test -s conftest.$ac_objext; then | ||
5087 | ac_cv_sys_file_offset_bits=no; break | ||
5088 | else | ||
5089 | echo "$as_me: failed program was:" >&5 | ||
5090 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5091 | |||
5092 | |||
5093 | fi | ||
5094 | |||
5095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5096 | cat >conftest.$ac_ext <<_ACEOF | ||
5097 | /* confdefs.h. */ | ||
5098 | _ACEOF | ||
5099 | cat confdefs.h >>conftest.$ac_ext | ||
5100 | cat >>conftest.$ac_ext <<_ACEOF | ||
5101 | /* end confdefs.h. */ | ||
5102 | #define _FILE_OFFSET_BITS 64 | ||
5103 | #include <sys/types.h> | ||
5104 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5105 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5106 | since some C++ compilers masquerading as C compilers | ||
5107 | incorrectly reject 9223372036854775807. */ | ||
5108 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5109 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5110 | && LARGE_OFF_T % 2147483647 == 1) | ||
5111 | ? 1 : -1]; | ||
5112 | int | ||
5113 | main () | ||
5114 | { | ||
5115 | |||
5116 | ; | ||
5117 | return 0; | ||
5118 | } | ||
5119 | _ACEOF | ||
5120 | rm -f conftest.$ac_objext | ||
5121 | if { (ac_try="$ac_compile" | ||
5122 | case "(($ac_try" in | ||
5123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5124 | *) ac_try_echo=$ac_try;; | ||
5125 | esac | ||
5126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5127 | (eval "$ac_compile") 2>conftest.er1 | ||
5128 | ac_status=$? | ||
5129 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5130 | rm -f conftest.er1 | ||
5131 | cat conftest.err >&5 | ||
5132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5133 | (exit $ac_status); } && { | ||
5134 | test -z "$ac_c_werror_flag" || | ||
5135 | test ! -s conftest.err | ||
5136 | } && test -s conftest.$ac_objext; then | ||
5137 | ac_cv_sys_file_offset_bits=64; break | ||
5138 | else | ||
5139 | echo "$as_me: failed program was:" >&5 | ||
5140 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5141 | |||
5142 | |||
5143 | fi | ||
5144 | |||
5145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5146 | ac_cv_sys_file_offset_bits=unknown | ||
5147 | break | ||
5148 | done | ||
5149 | fi | ||
5150 | { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | ||
5151 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } | ||
5152 | case $ac_cv_sys_file_offset_bits in #( | ||
5153 | no | unknown) ;; | ||
5154 | *) | ||
5155 | cat >>confdefs.h <<_ACEOF | ||
5156 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
5157 | _ACEOF | ||
5158 | ;; | ||
5159 | esac | ||
5160 | rm -f conftest* | ||
5161 | if test $ac_cv_sys_file_offset_bits = unknown; then | ||
5162 | { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | ||
5163 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } | ||
5164 | if test "${ac_cv_sys_large_files+set}" = set; then | ||
5165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5166 | else | ||
5167 | while :; do | ||
5168 | cat >conftest.$ac_ext <<_ACEOF | ||
5169 | /* confdefs.h. */ | ||
5170 | _ACEOF | ||
5171 | cat confdefs.h >>conftest.$ac_ext | ||
5172 | cat >>conftest.$ac_ext <<_ACEOF | ||
5173 | /* end confdefs.h. */ | ||
5174 | #include <sys/types.h> | ||
5175 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5176 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5177 | since some C++ compilers masquerading as C compilers | ||
5178 | incorrectly reject 9223372036854775807. */ | ||
5179 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5180 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5181 | && LARGE_OFF_T % 2147483647 == 1) | ||
5182 | ? 1 : -1]; | ||
5183 | int | ||
5184 | main () | ||
5185 | { | ||
5186 | |||
5187 | ; | ||
5188 | return 0; | ||
5189 | } | ||
5190 | _ACEOF | ||
5191 | rm -f conftest.$ac_objext | ||
5192 | if { (ac_try="$ac_compile" | ||
5193 | case "(($ac_try" in | ||
5194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5195 | *) ac_try_echo=$ac_try;; | ||
5196 | esac | ||
5197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5198 | (eval "$ac_compile") 2>conftest.er1 | ||
5199 | ac_status=$? | ||
5200 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5201 | rm -f conftest.er1 | ||
5202 | cat conftest.err >&5 | ||
5203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5204 | (exit $ac_status); } && { | ||
5205 | test -z "$ac_c_werror_flag" || | ||
5206 | test ! -s conftest.err | ||
5207 | } && test -s conftest.$ac_objext; then | ||
5208 | ac_cv_sys_large_files=no; break | ||
5209 | else | ||
5210 | echo "$as_me: failed program was:" >&5 | ||
5211 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5212 | |||
5213 | |||
5214 | fi | ||
5215 | |||
5216 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5217 | cat >conftest.$ac_ext <<_ACEOF | ||
5218 | /* confdefs.h. */ | ||
5219 | _ACEOF | ||
5220 | cat confdefs.h >>conftest.$ac_ext | ||
5221 | cat >>conftest.$ac_ext <<_ACEOF | ||
5222 | /* end confdefs.h. */ | ||
5223 | #define _LARGE_FILES 1 | ||
5224 | #include <sys/types.h> | ||
5225 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5226 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5227 | since some C++ compilers masquerading as C compilers | ||
5228 | incorrectly reject 9223372036854775807. */ | ||
5229 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5230 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5231 | && LARGE_OFF_T % 2147483647 == 1) | ||
5232 | ? 1 : -1]; | ||
5233 | int | ||
5234 | main () | ||
5235 | { | ||
5236 | |||
5237 | ; | ||
5238 | return 0; | ||
5239 | } | ||
5240 | _ACEOF | ||
5241 | rm -f conftest.$ac_objext | ||
5242 | if { (ac_try="$ac_compile" | ||
5243 | case "(($ac_try" in | ||
5244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5245 | *) ac_try_echo=$ac_try;; | ||
5246 | esac | ||
5247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5248 | (eval "$ac_compile") 2>conftest.er1 | ||
5249 | ac_status=$? | ||
5250 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5251 | rm -f conftest.er1 | ||
5252 | cat conftest.err >&5 | ||
5253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5254 | (exit $ac_status); } && { | ||
5255 | test -z "$ac_c_werror_flag" || | ||
5256 | test ! -s conftest.err | ||
5257 | } && test -s conftest.$ac_objext; then | ||
5258 | ac_cv_sys_large_files=1; break | ||
5259 | else | ||
5260 | echo "$as_me: failed program was:" >&5 | ||
5261 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5262 | |||
5263 | |||
5264 | fi | ||
5265 | |||
5266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5267 | ac_cv_sys_large_files=unknown | ||
5268 | break | ||
5269 | done | ||
5270 | fi | ||
5271 | { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | ||
5272 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } | ||
5273 | case $ac_cv_sys_large_files in #( | ||
5274 | no | unknown) ;; | ||
5275 | *) | ||
5276 | cat >>confdefs.h <<_ACEOF | ||
5277 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
5278 | _ACEOF | ||
5279 | ;; | ||
5280 | esac | ||
5281 | rm -f conftest* | ||
5282 | fi | ||
5283 | fi | ||
5284 | |||
5285 | |||
5286 | if test -z "$AR" ; then | ||
5287 | { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5 | ||
5288 | echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;} | ||
5289 | { (exit 1); exit 1; }; } | ||
5290 | fi | ||
5291 | |||
5292 | # Use LOGIN_PROGRAM from environment if possible | ||
5293 | if test ! -z "$LOGIN_PROGRAM" ; then | ||
5294 | |||
5295 | cat >>confdefs.h <<_ACEOF | ||
5296 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" | ||
5297 | _ACEOF | ||
5298 | |||
5299 | else | ||
5300 | # Search for login | ||
5301 | # Extract the first word of "login", so it can be a program name with args. | ||
5302 | set dummy login; ac_word=$2 | ||
5303 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5304 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5305 | if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then | ||
5306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5307 | else | ||
5308 | case $LOGIN_PROGRAM_FALLBACK in | ||
5309 | [\\/]* | ?:[\\/]*) | ||
5310 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. | ||
5311 | ;; | ||
5312 | *) | ||
5313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5314 | for as_dir in $PATH | ||
5315 | do | ||
5316 | IFS=$as_save_IFS | ||
5317 | test -z "$as_dir" && as_dir=. | ||
5318 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5319 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5320 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext" | ||
5321 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5322 | break 2 | ||
5323 | fi | ||
5324 | done | ||
5325 | done | ||
5326 | IFS=$as_save_IFS | ||
5327 | |||
5328 | ;; | ||
5329 | esac | ||
5330 | fi | ||
5331 | LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK | ||
5332 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then | ||
5333 | { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5 | ||
5334 | echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; } | ||
5335 | else | ||
5336 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5337 | echo "${ECHO_T}no" >&6; } | ||
5338 | fi | ||
5339 | |||
5340 | |||
5341 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | ||
5342 | cat >>confdefs.h <<_ACEOF | ||
5343 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" | ||
5344 | _ACEOF | ||
5345 | |||
5346 | fi | ||
5347 | fi | ||
5348 | |||
5349 | # Extract the first word of "passwd", so it can be a program name with args. | ||
5350 | set dummy passwd; ac_word=$2 | ||
5351 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5352 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5353 | if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then | ||
5354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5355 | else | ||
5356 | case $PATH_PASSWD_PROG in | ||
5357 | [\\/]* | ?:[\\/]*) | ||
5358 | ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. | ||
5359 | ;; | ||
5360 | *) | ||
5361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5362 | for as_dir in $PATH | ||
5363 | do | ||
5364 | IFS=$as_save_IFS | ||
5365 | test -z "$as_dir" && as_dir=. | ||
5366 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5367 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5368 | ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5369 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5370 | break 2 | ||
5371 | fi | ||
5372 | done | ||
5373 | done | ||
5374 | IFS=$as_save_IFS | ||
5375 | |||
5376 | ;; | ||
5377 | esac | ||
5378 | fi | ||
5379 | PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG | ||
5380 | if test -n "$PATH_PASSWD_PROG"; then | ||
5381 | { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5 | ||
5382 | echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; } | ||
5383 | else | ||
5384 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5385 | echo "${ECHO_T}no" >&6; } | ||
5386 | fi | ||
5387 | |||
5388 | |||
5389 | if test ! -z "$PATH_PASSWD_PROG" ; then | ||
5390 | |||
5391 | cat >>confdefs.h <<_ACEOF | ||
5392 | #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" | ||
5393 | _ACEOF | ||
5394 | |||
5395 | fi | ||
5396 | |||
5397 | if test -z "$LD" ; then | ||
5398 | LD=$CC | ||
5399 | fi | ||
5400 | |||
5401 | |||
5402 | { echo "$as_me:$LINENO: checking for inline" >&5 | ||
5403 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | ||
5404 | if test "${ac_cv_c_inline+set}" = set; then | ||
5405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5406 | else | ||
5407 | ac_cv_c_inline=no | ||
5408 | for ac_kw in inline __inline__ __inline; do | ||
5409 | cat >conftest.$ac_ext <<_ACEOF | ||
5410 | /* confdefs.h. */ | ||
5411 | _ACEOF | ||
5412 | cat confdefs.h >>conftest.$ac_ext | ||
5413 | cat >>conftest.$ac_ext <<_ACEOF | ||
5414 | /* end confdefs.h. */ | ||
5415 | #ifndef __cplusplus | ||
5416 | typedef int foo_t; | ||
5417 | static $ac_kw foo_t static_foo () {return 0; } | ||
5418 | $ac_kw foo_t foo () {return 0; } | ||
5419 | #endif | ||
5420 | |||
5421 | _ACEOF | ||
5422 | rm -f conftest.$ac_objext | ||
5423 | if { (ac_try="$ac_compile" | ||
5424 | case "(($ac_try" in | ||
5425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5426 | *) ac_try_echo=$ac_try;; | ||
5427 | esac | ||
5428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5429 | (eval "$ac_compile") 2>conftest.er1 | ||
5430 | ac_status=$? | ||
5431 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5432 | rm -f conftest.er1 | ||
5433 | cat conftest.err >&5 | ||
5434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5435 | (exit $ac_status); } && { | ||
5436 | test -z "$ac_c_werror_flag" || | ||
5437 | test ! -s conftest.err | ||
5438 | } && test -s conftest.$ac_objext; then | ||
5439 | ac_cv_c_inline=$ac_kw | ||
5440 | else | ||
5441 | echo "$as_me: failed program was:" >&5 | ||
5442 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5443 | |||
5444 | |||
5445 | fi | ||
5446 | |||
5447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5448 | test "$ac_cv_c_inline" != no && break | ||
5449 | done | ||
5450 | |||
5451 | fi | ||
5452 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | ||
5453 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | ||
5454 | |||
5455 | |||
5456 | case $ac_cv_c_inline in | ||
5457 | inline | yes) ;; | ||
5458 | *) | ||
5459 | case $ac_cv_c_inline in | ||
5460 | no) ac_val=;; | ||
5461 | *) ac_val=$ac_cv_c_inline;; | ||
5462 | esac | ||
5463 | cat >>confdefs.h <<_ACEOF | ||
5464 | #ifndef __cplusplus | ||
5465 | #define inline $ac_val | ||
5466 | #endif | ||
5467 | _ACEOF | ||
5468 | ;; | ||
5469 | esac | ||
5470 | |||
5471 | |||
5472 | { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5 | ||
5473 | echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; } | ||
5474 | if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then | ||
5475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5476 | else | ||
5477 | cat >conftest.$ac_ext <<_ACEOF | ||
5478 | /* confdefs.h. */ | ||
5479 | _ACEOF | ||
5480 | cat confdefs.h >>conftest.$ac_ext | ||
5481 | cat >>conftest.$ac_ext <<_ACEOF | ||
5482 | /* end confdefs.h. */ | ||
5483 | #include <limits.h> | ||
5484 | |||
5485 | int | ||
5486 | main () | ||
5487 | { | ||
5488 | #ifndef LLONG_MAX | ||
5489 | (void) LLONG_MAX; | ||
5490 | #endif | ||
5491 | |||
5492 | ; | ||
5493 | return 0; | ||
5494 | } | ||
5495 | _ACEOF | ||
5496 | rm -f conftest.$ac_objext | ||
5497 | if { (ac_try="$ac_compile" | ||
5498 | case "(($ac_try" in | ||
5499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5500 | *) ac_try_echo=$ac_try;; | ||
5501 | esac | ||
5502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5503 | (eval "$ac_compile") 2>conftest.er1 | ||
5504 | ac_status=$? | ||
5505 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5506 | rm -f conftest.er1 | ||
5507 | cat conftest.err >&5 | ||
5508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5509 | (exit $ac_status); } && { | ||
5510 | test -z "$ac_c_werror_flag" || | ||
5511 | test ! -s conftest.err | ||
5512 | } && test -s conftest.$ac_objext; then | ||
5513 | ac_cv_have_decl_LLONG_MAX=yes | ||
5514 | else | ||
5515 | echo "$as_me: failed program was:" >&5 | ||
5516 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5517 | |||
5518 | ac_cv_have_decl_LLONG_MAX=no | ||
5519 | fi | ||
5520 | |||
5521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5522 | fi | ||
5523 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5 | ||
5524 | echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; } | ||
5525 | if test $ac_cv_have_decl_LLONG_MAX = yes; then | ||
5526 | have_llong_max=1 | ||
5527 | fi | ||
5528 | |||
5529 | |||
5530 | use_stack_protector=1 | ||
5531 | |||
5532 | # Check whether --with-stackprotect was given. | ||
5533 | if test "${with_stackprotect+set}" = set; then | ||
5534 | withval=$with_stackprotect; | ||
5535 | if test "x$withval" = "xno"; then | ||
5536 | use_stack_protector=0 | ||
5537 | fi | ||
5538 | fi | ||
5539 | |||
5540 | |||
5541 | |||
5542 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
5543 | { | ||
5544 | { echo "$as_me:$LINENO: checking if $CC supports -Wall" >&5 | ||
5545 | echo $ECHO_N "checking if $CC supports -Wall... $ECHO_C" >&6; } | ||
5546 | saved_CFLAGS="$CFLAGS" | ||
5547 | CFLAGS="$CFLAGS -Wall" | ||
5548 | cat >conftest.$ac_ext <<_ACEOF | ||
5549 | void main(void) { return 0; } | ||
5550 | _ACEOF | ||
5551 | rm -f conftest.$ac_objext | ||
5552 | if { (ac_try="$ac_compile" | ||
5553 | case "(($ac_try" in | ||
5554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5555 | *) ac_try_echo=$ac_try;; | ||
5556 | esac | ||
5557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5558 | (eval "$ac_compile") 2>conftest.er1 | ||
5559 | ac_status=$? | ||
5560 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5561 | rm -f conftest.er1 | ||
5562 | cat conftest.err >&5 | ||
5563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5564 | (exit $ac_status); } && { | ||
5565 | test -z "$ac_c_werror_flag" || | ||
5566 | test ! -s conftest.err | ||
5567 | } && test -s conftest.$ac_objext; then | ||
5568 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5569 | echo "${ECHO_T}yes" >&6; } | ||
5570 | else | ||
5571 | echo "$as_me: failed program was:" >&5 | ||
5572 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5573 | |||
5574 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5575 | echo "${ECHO_T}no" >&6; } | ||
5576 | CFLAGS="$saved_CFLAGS" | ||
5577 | |||
5578 | fi | ||
5579 | |||
5580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5581 | } | ||
5582 | { | ||
5583 | { echo "$as_me:$LINENO: checking if $CC supports -Wpointer-arith" >&5 | ||
5584 | echo $ECHO_N "checking if $CC supports -Wpointer-arith... $ECHO_C" >&6; } | ||
5585 | saved_CFLAGS="$CFLAGS" | ||
5586 | CFLAGS="$CFLAGS -Wpointer-arith" | ||
5587 | cat >conftest.$ac_ext <<_ACEOF | ||
5588 | void main(void) { return 0; } | ||
5589 | _ACEOF | ||
5590 | rm -f conftest.$ac_objext | ||
5591 | if { (ac_try="$ac_compile" | ||
5592 | case "(($ac_try" in | ||
5593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5594 | *) ac_try_echo=$ac_try;; | ||
5595 | esac | ||
5596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5597 | (eval "$ac_compile") 2>conftest.er1 | ||
5598 | ac_status=$? | ||
5599 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5600 | rm -f conftest.er1 | ||
5601 | cat conftest.err >&5 | ||
5602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5603 | (exit $ac_status); } && { | ||
5604 | test -z "$ac_c_werror_flag" || | ||
5605 | test ! -s conftest.err | ||
5606 | } && test -s conftest.$ac_objext; then | ||
5607 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5608 | echo "${ECHO_T}yes" >&6; } | ||
5609 | else | ||
5610 | echo "$as_me: failed program was:" >&5 | ||
5611 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5612 | |||
5613 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5614 | echo "${ECHO_T}no" >&6; } | ||
5615 | CFLAGS="$saved_CFLAGS" | ||
5616 | |||
5617 | fi | ||
5618 | |||
5619 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5620 | } | ||
5621 | { | ||
5622 | { echo "$as_me:$LINENO: checking if $CC supports -Wuninitialized" >&5 | ||
5623 | echo $ECHO_N "checking if $CC supports -Wuninitialized... $ECHO_C" >&6; } | ||
5624 | saved_CFLAGS="$CFLAGS" | ||
5625 | CFLAGS="$CFLAGS -Wuninitialized" | ||
5626 | cat >conftest.$ac_ext <<_ACEOF | ||
5627 | void main(void) { return 0; } | ||
5628 | _ACEOF | ||
5629 | rm -f conftest.$ac_objext | ||
5630 | if { (ac_try="$ac_compile" | ||
5631 | case "(($ac_try" in | ||
5632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5633 | *) ac_try_echo=$ac_try;; | ||
5634 | esac | ||
5635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5636 | (eval "$ac_compile") 2>conftest.er1 | ||
5637 | ac_status=$? | ||
5638 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5639 | rm -f conftest.er1 | ||
5640 | cat conftest.err >&5 | ||
5641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5642 | (exit $ac_status); } && { | ||
5643 | test -z "$ac_c_werror_flag" || | ||
5644 | test ! -s conftest.err | ||
5645 | } && test -s conftest.$ac_objext; then | ||
5646 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5647 | echo "${ECHO_T}yes" >&6; } | ||
5648 | else | ||
5649 | echo "$as_me: failed program was:" >&5 | ||
5650 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5651 | |||
5652 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5653 | echo "${ECHO_T}no" >&6; } | ||
5654 | CFLAGS="$saved_CFLAGS" | ||
5655 | |||
5656 | fi | ||
5657 | |||
5658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5659 | } | ||
5660 | { | ||
5661 | { echo "$as_me:$LINENO: checking if $CC supports -Wsign-compare" >&5 | ||
5662 | echo $ECHO_N "checking if $CC supports -Wsign-compare... $ECHO_C" >&6; } | ||
5663 | saved_CFLAGS="$CFLAGS" | ||
5664 | CFLAGS="$CFLAGS -Wsign-compare" | ||
5665 | cat >conftest.$ac_ext <<_ACEOF | ||
5666 | void main(void) { return 0; } | ||
5667 | _ACEOF | ||
5668 | rm -f conftest.$ac_objext | ||
5669 | if { (ac_try="$ac_compile" | ||
5670 | case "(($ac_try" in | ||
5671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5672 | *) ac_try_echo=$ac_try;; | ||
5673 | esac | ||
5674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5675 | (eval "$ac_compile") 2>conftest.er1 | ||
5676 | ac_status=$? | ||
5677 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5678 | rm -f conftest.er1 | ||
5679 | cat conftest.err >&5 | ||
5680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5681 | (exit $ac_status); } && { | ||
5682 | test -z "$ac_c_werror_flag" || | ||
5683 | test ! -s conftest.err | ||
5684 | } && test -s conftest.$ac_objext; then | ||
5685 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5686 | echo "${ECHO_T}yes" >&6; } | ||
5687 | else | ||
5688 | echo "$as_me: failed program was:" >&5 | ||
5689 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5690 | |||
5691 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5692 | echo "${ECHO_T}no" >&6; } | ||
5693 | CFLAGS="$saved_CFLAGS" | ||
5694 | |||
5695 | fi | ||
5696 | |||
5697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5698 | } | ||
5699 | { | ||
5700 | { echo "$as_me:$LINENO: checking if $CC supports -Wformat-security" >&5 | ||
5701 | echo $ECHO_N "checking if $CC supports -Wformat-security... $ECHO_C" >&6; } | ||
5702 | saved_CFLAGS="$CFLAGS" | ||
5703 | CFLAGS="$CFLAGS -Wformat-security" | ||
5704 | cat >conftest.$ac_ext <<_ACEOF | ||
5705 | void main(void) { return 0; } | ||
5706 | _ACEOF | ||
5707 | rm -f conftest.$ac_objext | ||
5708 | if { (ac_try="$ac_compile" | ||
5709 | case "(($ac_try" in | ||
5710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5711 | *) ac_try_echo=$ac_try;; | ||
5712 | esac | ||
5713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5714 | (eval "$ac_compile") 2>conftest.er1 | ||
5715 | ac_status=$? | ||
5716 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5717 | rm -f conftest.er1 | ||
5718 | cat conftest.err >&5 | ||
5719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5720 | (exit $ac_status); } && { | ||
5721 | test -z "$ac_c_werror_flag" || | ||
5722 | test ! -s conftest.err | ||
5723 | } && test -s conftest.$ac_objext; then | ||
5724 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5725 | echo "${ECHO_T}yes" >&6; } | ||
5726 | else | ||
5727 | echo "$as_me: failed program was:" >&5 | ||
5728 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5729 | |||
5730 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5731 | echo "${ECHO_T}no" >&6; } | ||
5732 | CFLAGS="$saved_CFLAGS" | ||
5733 | |||
5734 | fi | ||
5735 | |||
5736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5737 | } | ||
5738 | { | ||
5739 | { echo "$as_me:$LINENO: checking if $CC supports -Wno-pointer-sign" >&5 | ||
5740 | echo $ECHO_N "checking if $CC supports -Wno-pointer-sign... $ECHO_C" >&6; } | ||
5741 | saved_CFLAGS="$CFLAGS" | ||
5742 | CFLAGS="$CFLAGS -Wno-pointer-sign" | ||
5743 | cat >conftest.$ac_ext <<_ACEOF | ||
5744 | void main(void) { return 0; } | ||
5745 | _ACEOF | ||
5746 | rm -f conftest.$ac_objext | ||
5747 | if { (ac_try="$ac_compile" | ||
5748 | case "(($ac_try" in | ||
5749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5750 | *) ac_try_echo=$ac_try;; | ||
5751 | esac | ||
5752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5753 | (eval "$ac_compile") 2>conftest.er1 | ||
5754 | ac_status=$? | ||
5755 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5756 | rm -f conftest.er1 | ||
5757 | cat conftest.err >&5 | ||
5758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5759 | (exit $ac_status); } && { | ||
5760 | test -z "$ac_c_werror_flag" || | ||
5761 | test ! -s conftest.err | ||
5762 | } && test -s conftest.$ac_objext; then | ||
5763 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5764 | echo "${ECHO_T}yes" >&6; } | ||
5765 | else | ||
5766 | echo "$as_me: failed program was:" >&5 | ||
5767 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5768 | |||
5769 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5770 | echo "${ECHO_T}no" >&6; } | ||
5771 | CFLAGS="$saved_CFLAGS" | ||
5772 | |||
5773 | fi | ||
5774 | |||
5775 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5776 | } | ||
5777 | { | ||
5778 | { echo "$as_me:$LINENO: checking if $CC supports -Wno-unused-result" >&5 | ||
5779 | echo $ECHO_N "checking if $CC supports -Wno-unused-result... $ECHO_C" >&6; } | ||
5780 | saved_CFLAGS="$CFLAGS" | ||
5781 | CFLAGS="$CFLAGS -Wno-unused-result" | ||
5782 | cat >conftest.$ac_ext <<_ACEOF | ||
5783 | void main(void) { return 0; } | ||
5784 | _ACEOF | ||
5785 | rm -f conftest.$ac_objext | ||
5786 | if { (ac_try="$ac_compile" | ||
5787 | case "(($ac_try" in | ||
5788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5789 | *) ac_try_echo=$ac_try;; | ||
5790 | esac | ||
5791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5792 | (eval "$ac_compile") 2>conftest.er1 | ||
5793 | ac_status=$? | ||
5794 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5795 | rm -f conftest.er1 | ||
5796 | cat conftest.err >&5 | ||
5797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5798 | (exit $ac_status); } && { | ||
5799 | test -z "$ac_c_werror_flag" || | ||
5800 | test ! -s conftest.err | ||
5801 | } && test -s conftest.$ac_objext; then | ||
5802 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5803 | echo "${ECHO_T}yes" >&6; } | ||
5804 | else | ||
5805 | echo "$as_me: failed program was:" >&5 | ||
5806 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5807 | |||
5808 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5809 | echo "${ECHO_T}no" >&6; } | ||
5810 | CFLAGS="$saved_CFLAGS" | ||
5811 | |||
5812 | fi | ||
5813 | |||
5814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5815 | } | ||
5816 | { | ||
5817 | { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5 | ||
5818 | echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; } | ||
5819 | saved_CFLAGS="$CFLAGS" | ||
5820 | CFLAGS="$CFLAGS -fno-strict-aliasing" | ||
5821 | cat >conftest.$ac_ext <<_ACEOF | ||
5822 | void main(void) { return 0; } | ||
5823 | _ACEOF | ||
5824 | rm -f conftest.$ac_objext | ||
5825 | if { (ac_try="$ac_compile" | ||
5826 | case "(($ac_try" in | ||
5827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5828 | *) ac_try_echo=$ac_try;; | ||
5829 | esac | ||
5830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5831 | (eval "$ac_compile") 2>conftest.er1 | ||
5832 | ac_status=$? | ||
5833 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5834 | rm -f conftest.er1 | ||
5835 | cat conftest.err >&5 | ||
5836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5837 | (exit $ac_status); } && { | ||
5838 | test -z "$ac_c_werror_flag" || | ||
5839 | test ! -s conftest.err | ||
5840 | } && test -s conftest.$ac_objext; then | ||
5841 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5842 | echo "${ECHO_T}yes" >&6; } | ||
5843 | else | ||
5844 | echo "$as_me: failed program was:" >&5 | ||
5845 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5846 | |||
5847 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5848 | echo "${ECHO_T}no" >&6; } | ||
5849 | CFLAGS="$saved_CFLAGS" | ||
5850 | |||
5851 | fi | ||
5852 | |||
5853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5854 | } | ||
5855 | { echo "$as_me:$LINENO: checking gcc version" >&5 | ||
5856 | echo $ECHO_N "checking gcc version... $ECHO_C" >&6; } | ||
5857 | GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` | ||
5858 | case $GCC_VER in | ||
5859 | 1.*) no_attrib_nonnull=1 ;; | ||
5860 | 2.8* | 2.9*) | ||
5861 | no_attrib_nonnull=1 | ||
5862 | ;; | ||
5863 | 2.*) no_attrib_nonnull=1 ;; | ||
5864 | *) ;; | ||
5865 | esac | ||
5866 | { echo "$as_me:$LINENO: result: $GCC_VER" >&5 | ||
5867 | echo "${ECHO_T}$GCC_VER" >&6; } | ||
5868 | |||
5869 | { echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5 | ||
5870 | echo $ECHO_N "checking if $CC accepts -fno-builtin-memset... $ECHO_C" >&6; } | ||
5871 | saved_CFLAGS="$CFLAGS" | ||
5872 | CFLAGS="$CFLAGS -fno-builtin-memset" | ||
5873 | cat >conftest.$ac_ext <<_ACEOF | ||
5874 | /* confdefs.h. */ | ||
5875 | _ACEOF | ||
5876 | cat confdefs.h >>conftest.$ac_ext | ||
5877 | cat >>conftest.$ac_ext <<_ACEOF | ||
5878 | /* end confdefs.h. */ | ||
5879 | |||
5880 | #include <string.h> | ||
5881 | int main(void){char b[10]; memset(b, 0, sizeof(b));} | ||
5882 | |||
5883 | _ACEOF | ||
5884 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5885 | if { (ac_try="$ac_link" | ||
5886 | case "(($ac_try" in | ||
5887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5888 | *) ac_try_echo=$ac_try;; | ||
5889 | esac | ||
5890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5891 | (eval "$ac_link") 2>conftest.er1 | ||
5892 | ac_status=$? | ||
5893 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5894 | rm -f conftest.er1 | ||
5895 | cat conftest.err >&5 | ||
5896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5897 | (exit $ac_status); } && { | ||
5898 | test -z "$ac_c_werror_flag" || | ||
5899 | test ! -s conftest.err | ||
5900 | } && test -s conftest$ac_exeext && | ||
5901 | $as_test_x conftest$ac_exeext; then | ||
5902 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5903 | echo "${ECHO_T}yes" >&6; } | ||
5904 | else | ||
5905 | echo "$as_me: failed program was:" >&5 | ||
5906 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5907 | |||
5908 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5909 | echo "${ECHO_T}no" >&6; } | ||
5910 | CFLAGS="$saved_CFLAGS" | ||
5911 | |||
5912 | fi | ||
5913 | |||
5914 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5915 | conftest$ac_exeext conftest.$ac_ext | ||
5916 | |||
5917 | # -fstack-protector-all doesn't always work for some GCC versions | ||
5918 | # and/or platforms, so we test if we can. If it's not supported | ||
5919 | # on a given platform gcc will emit a warning so we use -Werror. | ||
5920 | if test "x$use_stack_protector" = "x1"; then | ||
5921 | for t in -fstack-protector-all -fstack-protector; do | ||
5922 | { echo "$as_me:$LINENO: checking if $CC supports $t" >&5 | ||
5923 | echo $ECHO_N "checking if $CC supports $t... $ECHO_C" >&6; } | ||
5924 | saved_CFLAGS="$CFLAGS" | ||
5925 | saved_LDFLAGS="$LDFLAGS" | ||
5926 | CFLAGS="$CFLAGS $t -Werror" | ||
5927 | LDFLAGS="$LDFLAGS $t -Werror" | ||
5928 | cat >conftest.$ac_ext <<_ACEOF | ||
5929 | /* confdefs.h. */ | ||
5930 | _ACEOF | ||
5931 | cat confdefs.h >>conftest.$ac_ext | ||
5932 | cat >>conftest.$ac_ext <<_ACEOF | ||
5933 | /* end confdefs.h. */ | ||
5934 | |||
5935 | #include <stdio.h> | ||
5936 | int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;} | ||
5937 | |||
5938 | _ACEOF | ||
5939 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5940 | if { (ac_try="$ac_link" | ||
5941 | case "(($ac_try" in | ||
5942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5943 | *) ac_try_echo=$ac_try;; | ||
5944 | esac | ||
5945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5946 | (eval "$ac_link") 2>conftest.er1 | ||
5947 | ac_status=$? | ||
5948 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5949 | rm -f conftest.er1 | ||
5950 | cat conftest.err >&5 | ||
5951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5952 | (exit $ac_status); } && { | ||
5953 | test -z "$ac_c_werror_flag" || | ||
5954 | test ! -s conftest.err | ||
5955 | } && test -s conftest$ac_exeext && | ||
5956 | $as_test_x conftest$ac_exeext; then | ||
5957 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5958 | echo "${ECHO_T}yes" >&6; } | ||
5959 | CFLAGS="$saved_CFLAGS $t" | ||
5960 | LDFLAGS="$saved_LDFLAGS $t" | ||
5961 | { echo "$as_me:$LINENO: checking if $t works" >&5 | ||
5962 | echo $ECHO_N "checking if $t works... $ECHO_C" >&6; } | ||
5963 | if test "$cross_compiling" = yes; then | ||
5964 | { echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5 | ||
5965 | echo "$as_me: WARNING: cross compiling: cannot test" >&2;} | ||
5966 | break | ||
5967 | |||
5968 | else | ||
5969 | cat >conftest.$ac_ext <<_ACEOF | ||
5970 | /* confdefs.h. */ | ||
5971 | _ACEOF | ||
5972 | cat confdefs.h >>conftest.$ac_ext | ||
5973 | cat >>conftest.$ac_ext <<_ACEOF | ||
5974 | /* end confdefs.h. */ | ||
5975 | |||
5976 | #include <stdio.h> | ||
5977 | int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;} | ||
5978 | |||
5979 | _ACEOF | ||
5980 | rm -f conftest$ac_exeext | ||
5981 | if { (ac_try="$ac_link" | ||
5982 | case "(($ac_try" in | ||
5983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5984 | *) ac_try_echo=$ac_try;; | ||
5985 | esac | ||
5986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5987 | (eval "$ac_link") 2>&5 | ||
5988 | ac_status=$? | ||
5989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5990 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
5991 | { (case "(($ac_try" in | ||
5992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5993 | *) ac_try_echo=$ac_try;; | ||
5994 | esac | ||
5995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5996 | (eval "$ac_try") 2>&5 | ||
5997 | ac_status=$? | ||
5998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5999 | (exit $ac_status); }; }; then | ||
6000 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6001 | echo "${ECHO_T}yes" >&6; } | ||
6002 | break | ||
6003 | else | ||
6004 | echo "$as_me: program exited with status $ac_status" >&5 | ||
6005 | echo "$as_me: failed program was:" >&5 | ||
6006 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6007 | |||
6008 | ( exit $ac_status ) | ||
6009 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6010 | echo "${ECHO_T}no" >&6; } | ||
6011 | fi | ||
6012 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
6013 | fi | ||
6014 | |||
6015 | |||
6016 | |||
6017 | else | ||
6018 | echo "$as_me: failed program was:" >&5 | ||
6019 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6020 | |||
6021 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6022 | echo "${ECHO_T}no" >&6; } | ||
6023 | |||
6024 | fi | ||
6025 | |||
6026 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6027 | conftest$ac_exeext conftest.$ac_ext | ||
6028 | CFLAGS="$saved_CFLAGS" | ||
6029 | LDFLAGS="$saved_LDFLAGS" | ||
6030 | done | ||
6031 | fi | ||
6032 | |||
6033 | if test -z "$have_llong_max"; then | ||
6034 | # retry LLONG_MAX with -std=gnu99, needed on some Linuxes | ||
6035 | unset ac_cv_have_decl_LLONG_MAX | ||
6036 | saved_CFLAGS="$CFLAGS" | ||
6037 | CFLAGS="$CFLAGS -std=gnu99" | ||
6038 | { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5 | ||
6039 | echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; } | ||
6040 | if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then | ||
6041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6042 | else | ||
6043 | cat >conftest.$ac_ext <<_ACEOF | ||
6044 | /* confdefs.h. */ | ||
6045 | _ACEOF | ||
6046 | cat confdefs.h >>conftest.$ac_ext | ||
6047 | cat >>conftest.$ac_ext <<_ACEOF | ||
6048 | /* end confdefs.h. */ | ||
6049 | #include <limits.h> | ||
6050 | |||
6051 | |||
6052 | int | ||
6053 | main () | ||
6054 | { | ||
6055 | #ifndef LLONG_MAX | ||
6056 | (void) LLONG_MAX; | ||
6057 | #endif | ||
6058 | |||
6059 | ; | ||
6060 | return 0; | ||
6061 | } | ||
6062 | _ACEOF | ||
6063 | rm -f conftest.$ac_objext | ||
6064 | if { (ac_try="$ac_compile" | ||
6065 | case "(($ac_try" in | ||
6066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6067 | *) ac_try_echo=$ac_try;; | ||
6068 | esac | ||
6069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6070 | (eval "$ac_compile") 2>conftest.er1 | ||
6071 | ac_status=$? | ||
6072 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6073 | rm -f conftest.er1 | ||
6074 | cat conftest.err >&5 | ||
6075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6076 | (exit $ac_status); } && { | ||
6077 | test -z "$ac_c_werror_flag" || | ||
6078 | test ! -s conftest.err | ||
6079 | } && test -s conftest.$ac_objext; then | ||
6080 | ac_cv_have_decl_LLONG_MAX=yes | ||
6081 | else | ||
6082 | echo "$as_me: failed program was:" >&5 | ||
6083 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6084 | |||
6085 | ac_cv_have_decl_LLONG_MAX=no | ||
6086 | fi | ||
6087 | |||
6088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6089 | fi | ||
6090 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5 | ||
6091 | echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; } | ||
6092 | if test $ac_cv_have_decl_LLONG_MAX = yes; then | ||
6093 | have_llong_max=1 | ||
6094 | else | ||
6095 | CFLAGS="$saved_CFLAGS" | ||
6096 | fi | ||
6097 | |||
6098 | fi | ||
6099 | fi | ||
6100 | |||
6101 | if test "x$no_attrib_nonnull" != "x1" ; then | ||
6102 | |||
6103 | cat >>confdefs.h <<\_ACEOF | ||
6104 | #define HAVE_ATTRIBUTE__NONNULL__ 1 | ||
6105 | _ACEOF | ||
6106 | |||
6107 | fi | ||
6108 | |||
6109 | |||
6110 | # Check whether --with-rpath was given. | ||
6111 | if test "${with_rpath+set}" = set; then | ||
6112 | withval=$with_rpath; | ||
6113 | if test "x$withval" = "xno" ; then | ||
6114 | need_dash_r="" | ||
6115 | fi | ||
6116 | if test "x$withval" = "xyes" ; then | ||
6117 | need_dash_r=1 | ||
6118 | fi | ||
6119 | |||
6120 | |||
6121 | fi | ||
6122 | |||
6123 | |||
6124 | # Allow user to specify flags | ||
6125 | |||
6126 | # Check whether --with-cflags was given. | ||
6127 | if test "${with_cflags+set}" = set; then | ||
6128 | withval=$with_cflags; | ||
6129 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6130 | test "x${withval}" != "xyes"; then | ||
6131 | CFLAGS="$CFLAGS $withval" | ||
6132 | fi | ||
6133 | |||
6134 | |||
6135 | fi | ||
6136 | |||
6137 | |||
6138 | # Check whether --with-cppflags was given. | ||
6139 | if test "${with_cppflags+set}" = set; then | ||
6140 | withval=$with_cppflags; | ||
6141 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6142 | test "x${withval}" != "xyes"; then | ||
6143 | CPPFLAGS="$CPPFLAGS $withval" | ||
6144 | fi | ||
6145 | |||
6146 | |||
6147 | fi | ||
6148 | |||
6149 | |||
6150 | # Check whether --with-ldflags was given. | ||
6151 | if test "${with_ldflags+set}" = set; then | ||
6152 | withval=$with_ldflags; | ||
6153 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6154 | test "x${withval}" != "xyes"; then | ||
6155 | LDFLAGS="$LDFLAGS $withval" | ||
6156 | fi | ||
6157 | |||
6158 | |||
6159 | fi | ||
6160 | |||
6161 | |||
6162 | # Check whether --with-libs was given. | ||
6163 | if test "${with_libs+set}" = set; then | ||
6164 | withval=$with_libs; | ||
6165 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6166 | test "x${withval}" != "xyes"; then | ||
6167 | LIBS="$LIBS $withval" | ||
6168 | fi | ||
6169 | |||
6170 | |||
6171 | fi | ||
6172 | |||
6173 | |||
6174 | # Check whether --with-Werror was given. | ||
6175 | if test "${with_Werror+set}" = set; then | ||
6176 | withval=$with_Werror; | ||
6177 | if test -n "$withval" && test "x$withval" != "xno"; then | ||
6178 | werror_flags="-Werror" | ||
6179 | if test "x${withval}" != "xyes"; then | ||
6180 | werror_flags="$withval" | ||
6181 | fi | ||
6182 | fi | ||
6183 | |||
6184 | |||
6185 | fi | ||
6186 | |||
6187 | |||
6188 | |||
6189 | |||
6190 | |||
6191 | |||
6192 | |||
6193 | |||
6194 | |||
6195 | |||
6196 | |||
6197 | |||
6198 | |||
6199 | |||
6200 | |||
6201 | |||
6202 | |||
6203 | |||
6204 | |||
6205 | |||
6206 | |||
6207 | |||
6208 | |||
6209 | |||
6210 | |||
6211 | |||
6212 | |||
6213 | |||
6214 | |||
6215 | |||
6216 | |||
6217 | |||
6218 | |||
6219 | |||
6220 | |||
6221 | |||
6222 | |||
6223 | |||
6224 | |||
6225 | |||
6226 | |||
6227 | |||
6228 | |||
6229 | |||
6230 | |||
6231 | |||
6232 | |||
6233 | |||
6234 | |||
6235 | |||
6236 | |||
6237 | |||
6238 | |||
6239 | |||
6240 | |||
6241 | |||
6242 | |||
6243 | |||
6244 | |||
6245 | |||
6246 | |||
6247 | |||
6248 | |||
6249 | |||
6250 | |||
6251 | for ac_header in \ | ||
6252 | bstring.h \ | ||
6253 | crypt.h \ | ||
6254 | crypto/sha2.h \ | ||
6255 | dirent.h \ | ||
6256 | endian.h \ | ||
6257 | features.h \ | ||
6258 | fcntl.h \ | ||
6259 | floatingpoint.h \ | ||
6260 | getopt.h \ | ||
6261 | glob.h \ | ||
6262 | ia.h \ | ||
6263 | iaf.h \ | ||
6264 | limits.h \ | ||
6265 | login.h \ | ||
6266 | maillock.h \ | ||
6267 | ndir.h \ | ||
6268 | net/if_tun.h \ | ||
6269 | netdb.h \ | ||
6270 | netgroup.h \ | ||
6271 | pam/pam_appl.h \ | ||
6272 | paths.h \ | ||
6273 | poll.h \ | ||
6274 | pty.h \ | ||
6275 | readpassphrase.h \ | ||
6276 | rpc/types.h \ | ||
6277 | security/pam_appl.h \ | ||
6278 | sha2.h \ | ||
6279 | shadow.h \ | ||
6280 | stddef.h \ | ||
6281 | stdint.h \ | ||
6282 | string.h \ | ||
6283 | strings.h \ | ||
6284 | sys/audit.h \ | ||
6285 | sys/bitypes.h \ | ||
6286 | sys/bsdtty.h \ | ||
6287 | sys/cdefs.h \ | ||
6288 | sys/dir.h \ | ||
6289 | sys/mman.h \ | ||
6290 | sys/ndir.h \ | ||
6291 | sys/poll.h \ | ||
6292 | sys/prctl.h \ | ||
6293 | sys/pstat.h \ | ||
6294 | sys/select.h \ | ||
6295 | sys/stat.h \ | ||
6296 | sys/stream.h \ | ||
6297 | sys/stropts.h \ | ||
6298 | sys/strtio.h \ | ||
6299 | sys/statvfs.h \ | ||
6300 | sys/sysmacros.h \ | ||
6301 | sys/time.h \ | ||
6302 | sys/timers.h \ | ||
6303 | sys/un.h \ | ||
6304 | time.h \ | ||
6305 | tmpdir.h \ | ||
6306 | ttyent.h \ | ||
6307 | ucred.h \ | ||
6308 | unistd.h \ | ||
6309 | usersec.h \ | ||
6310 | util.h \ | ||
6311 | utime.h \ | ||
6312 | utmp.h \ | ||
6313 | utmpx.h \ | ||
6314 | vis.h \ | ||
6315 | |||
6316 | do | ||
6317 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6318 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6319 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6320 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
6321 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6323 | fi | ||
6324 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
6325 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
6326 | echo "${ECHO_T}$ac_res" >&6; } | ||
6327 | else | ||
6328 | # Is the header compilable? | ||
6329 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
6330 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
6331 | cat >conftest.$ac_ext <<_ACEOF | ||
6332 | /* confdefs.h. */ | ||
6333 | _ACEOF | ||
6334 | cat confdefs.h >>conftest.$ac_ext | ||
6335 | cat >>conftest.$ac_ext <<_ACEOF | ||
6336 | /* end confdefs.h. */ | ||
6337 | $ac_includes_default | ||
6338 | #include <$ac_header> | ||
6339 | _ACEOF | ||
6340 | rm -f conftest.$ac_objext | ||
6341 | if { (ac_try="$ac_compile" | ||
6342 | case "(($ac_try" in | ||
6343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6344 | *) ac_try_echo=$ac_try;; | ||
6345 | esac | ||
6346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6347 | (eval "$ac_compile") 2>conftest.er1 | ||
6348 | ac_status=$? | ||
6349 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6350 | rm -f conftest.er1 | ||
6351 | cat conftest.err >&5 | ||
6352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6353 | (exit $ac_status); } && { | ||
6354 | test -z "$ac_c_werror_flag" || | ||
6355 | test ! -s conftest.err | ||
6356 | } && test -s conftest.$ac_objext; then | ||
6357 | ac_header_compiler=yes | ||
6358 | else | ||
6359 | echo "$as_me: failed program was:" >&5 | ||
6360 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6361 | |||
6362 | ac_header_compiler=no | ||
6363 | fi | ||
6364 | |||
6365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6366 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
6367 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
6368 | |||
6369 | # Is the header present? | ||
6370 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
6371 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
6372 | cat >conftest.$ac_ext <<_ACEOF | ||
6373 | /* confdefs.h. */ | ||
6374 | _ACEOF | ||
6375 | cat confdefs.h >>conftest.$ac_ext | ||
6376 | cat >>conftest.$ac_ext <<_ACEOF | ||
6377 | /* end confdefs.h. */ | ||
6378 | #include <$ac_header> | ||
6379 | _ACEOF | ||
6380 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
6381 | case "(($ac_try" in | ||
6382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6383 | *) ac_try_echo=$ac_try;; | ||
6384 | esac | ||
6385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6386 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
6387 | ac_status=$? | ||
6388 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6389 | rm -f conftest.er1 | ||
6390 | cat conftest.err >&5 | ||
6391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6392 | (exit $ac_status); } >/dev/null && { | ||
6393 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
6394 | test ! -s conftest.err | ||
6395 | }; then | ||
6396 | ac_header_preproc=yes | ||
6397 | else | ||
6398 | echo "$as_me: failed program was:" >&5 | ||
6399 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6400 | |||
6401 | ac_header_preproc=no | ||
6402 | fi | ||
6403 | |||
6404 | rm -f conftest.err conftest.$ac_ext | ||
6405 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
6406 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
6407 | |||
6408 | # So? What about this header? | ||
6409 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
6410 | yes:no: ) | ||
6411 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
6412 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
6413 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
6414 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
6415 | ac_header_preproc=yes | ||
6416 | ;; | ||
6417 | no:yes:* ) | ||
6418 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
6419 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
6420 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
6421 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
6422 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
6423 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
6424 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
6425 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
6426 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
6427 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
6428 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
6429 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
6430 | ( cat <<\_ASBOX | ||
6431 | ## ------------------------------------------- ## | ||
6432 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
6433 | ## ------------------------------------------- ## | ||
6434 | _ASBOX | ||
6435 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
6436 | ;; | ||
6437 | esac | ||
6438 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6439 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
6440 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6442 | else | ||
6443 | eval "$as_ac_Header=\$ac_header_preproc" | ||
6444 | fi | ||
6445 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
6446 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
6447 | echo "${ECHO_T}$ac_res" >&6; } | ||
6448 | |||
6449 | fi | ||
6450 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6451 | cat >>confdefs.h <<_ACEOF | ||
6452 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6453 | _ACEOF | ||
6454 | |||
6455 | fi | ||
6456 | |||
6457 | done | ||
6458 | |||
6459 | |||
6460 | # lastlog.h requires sys/time.h to be included first on Solaris | ||
6461 | |||
6462 | for ac_header in lastlog.h | ||
6463 | do | ||
6464 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6465 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6466 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
6467 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6469 | else | ||
6470 | cat >conftest.$ac_ext <<_ACEOF | ||
6471 | /* confdefs.h. */ | ||
6472 | _ACEOF | ||
6473 | cat confdefs.h >>conftest.$ac_ext | ||
6474 | cat >>conftest.$ac_ext <<_ACEOF | ||
6475 | /* end confdefs.h. */ | ||
6476 | |||
6477 | #ifdef HAVE_SYS_TIME_H | ||
6478 | # include <sys/time.h> | ||
6479 | #endif | ||
6480 | |||
6481 | |||
6482 | #include <$ac_header> | ||
6483 | _ACEOF | ||
6484 | rm -f conftest.$ac_objext | ||
6485 | if { (ac_try="$ac_compile" | ||
6486 | case "(($ac_try" in | ||
6487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6488 | *) ac_try_echo=$ac_try;; | ||
6489 | esac | ||
6490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6491 | (eval "$ac_compile") 2>conftest.er1 | ||
6492 | ac_status=$? | ||
6493 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6494 | rm -f conftest.er1 | ||
6495 | cat conftest.err >&5 | ||
6496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6497 | (exit $ac_status); } && { | ||
6498 | test -z "$ac_c_werror_flag" || | ||
6499 | test ! -s conftest.err | ||
6500 | } && test -s conftest.$ac_objext; then | ||
6501 | eval "$as_ac_Header=yes" | ||
6502 | else | ||
6503 | echo "$as_me: failed program was:" >&5 | ||
6504 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6505 | |||
6506 | eval "$as_ac_Header=no" | ||
6507 | fi | ||
6508 | |||
6509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6510 | fi | ||
6511 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
6512 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
6513 | echo "${ECHO_T}$ac_res" >&6; } | ||
6514 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6515 | cat >>confdefs.h <<_ACEOF | ||
6516 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6517 | _ACEOF | ||
6518 | |||
6519 | fi | ||
6520 | |||
6521 | done | ||
6522 | |||
6523 | |||
6524 | # sys/ptms.h requires sys/stream.h to be included first on Solaris | ||
6525 | |||
6526 | for ac_header in sys/ptms.h | ||
6527 | do | ||
6528 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6529 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6530 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
6531 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6533 | else | ||
6534 | cat >conftest.$ac_ext <<_ACEOF | ||
6535 | /* confdefs.h. */ | ||
6536 | _ACEOF | ||
6537 | cat confdefs.h >>conftest.$ac_ext | ||
6538 | cat >>conftest.$ac_ext <<_ACEOF | ||
6539 | /* end confdefs.h. */ | ||
6540 | |||
6541 | #ifdef HAVE_SYS_STREAM_H | ||
6542 | # include <sys/stream.h> | ||
6543 | #endif | ||
6544 | |||
6545 | |||
6546 | #include <$ac_header> | ||
6547 | _ACEOF | ||
6548 | rm -f conftest.$ac_objext | ||
6549 | if { (ac_try="$ac_compile" | ||
6550 | case "(($ac_try" in | ||
6551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6552 | *) ac_try_echo=$ac_try;; | ||
6553 | esac | ||
6554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6555 | (eval "$ac_compile") 2>conftest.er1 | ||
6556 | ac_status=$? | ||
6557 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6558 | rm -f conftest.er1 | ||
6559 | cat conftest.err >&5 | ||
6560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6561 | (exit $ac_status); } && { | ||
6562 | test -z "$ac_c_werror_flag" || | ||
6563 | test ! -s conftest.err | ||
6564 | } && test -s conftest.$ac_objext; then | ||
6565 | eval "$as_ac_Header=yes" | ||
6566 | else | ||
6567 | echo "$as_me: failed program was:" >&5 | ||
6568 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6569 | |||
6570 | eval "$as_ac_Header=no" | ||
6571 | fi | ||
6572 | |||
6573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6574 | fi | ||
6575 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
6576 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
6577 | echo "${ECHO_T}$ac_res" >&6; } | ||
6578 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6579 | cat >>confdefs.h <<_ACEOF | ||
6580 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6581 | _ACEOF | ||
6582 | |||
6583 | fi | ||
6584 | |||
6585 | done | ||
6586 | |||
6587 | |||
6588 | # login_cap.h requires sys/types.h on NetBSD | ||
6589 | |||
6590 | for ac_header in login_cap.h | ||
6591 | do | ||
6592 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6593 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6594 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
6595 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6597 | else | ||
6598 | cat >conftest.$ac_ext <<_ACEOF | ||
6599 | /* confdefs.h. */ | ||
6600 | _ACEOF | ||
6601 | cat confdefs.h >>conftest.$ac_ext | ||
6602 | cat >>conftest.$ac_ext <<_ACEOF | ||
6603 | /* end confdefs.h. */ | ||
6604 | |||
6605 | #include <sys/types.h> | ||
6606 | |||
6607 | |||
6608 | #include <$ac_header> | ||
6609 | _ACEOF | ||
6610 | rm -f conftest.$ac_objext | ||
6611 | if { (ac_try="$ac_compile" | ||
6612 | case "(($ac_try" in | ||
6613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6614 | *) ac_try_echo=$ac_try;; | ||
6615 | esac | ||
6616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6617 | (eval "$ac_compile") 2>conftest.er1 | ||
6618 | ac_status=$? | ||
6619 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6620 | rm -f conftest.er1 | ||
6621 | cat conftest.err >&5 | ||
6622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6623 | (exit $ac_status); } && { | ||
6624 | test -z "$ac_c_werror_flag" || | ||
6625 | test ! -s conftest.err | ||
6626 | } && test -s conftest.$ac_objext; then | ||
6627 | eval "$as_ac_Header=yes" | ||
6628 | else | ||
6629 | echo "$as_me: failed program was:" >&5 | ||
6630 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6631 | |||
6632 | eval "$as_ac_Header=no" | ||
6633 | fi | ||
6634 | |||
6635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6636 | fi | ||
6637 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
6638 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
6639 | echo "${ECHO_T}$ac_res" >&6; } | ||
6640 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6641 | cat >>confdefs.h <<_ACEOF | ||
6642 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6643 | _ACEOF | ||
6644 | |||
6645 | fi | ||
6646 | |||
6647 | done | ||
6648 | |||
6649 | |||
6650 | # older BSDs need sys/param.h before sys/mount.h | ||
6651 | |||
6652 | for ac_header in sys/mount.h | ||
6653 | do | ||
6654 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6655 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6656 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
6657 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6659 | else | ||
6660 | cat >conftest.$ac_ext <<_ACEOF | ||
6661 | /* confdefs.h. */ | ||
6662 | _ACEOF | ||
6663 | cat confdefs.h >>conftest.$ac_ext | ||
6664 | cat >>conftest.$ac_ext <<_ACEOF | ||
6665 | /* end confdefs.h. */ | ||
6666 | |||
6667 | #include <sys/param.h> | ||
6668 | |||
6669 | |||
6670 | #include <$ac_header> | ||
6671 | _ACEOF | ||
6672 | rm -f conftest.$ac_objext | ||
6673 | if { (ac_try="$ac_compile" | ||
6674 | case "(($ac_try" in | ||
6675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6676 | *) ac_try_echo=$ac_try;; | ||
6677 | esac | ||
6678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6679 | (eval "$ac_compile") 2>conftest.er1 | ||
6680 | ac_status=$? | ||
6681 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6682 | rm -f conftest.er1 | ||
6683 | cat conftest.err >&5 | ||
6684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6685 | (exit $ac_status); } && { | ||
6686 | test -z "$ac_c_werror_flag" || | ||
6687 | test ! -s conftest.err | ||
6688 | } && test -s conftest.$ac_objext; then | ||
6689 | eval "$as_ac_Header=yes" | ||
6690 | else | ||
6691 | echo "$as_me: failed program was:" >&5 | ||
6692 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6693 | |||
6694 | eval "$as_ac_Header=no" | ||
6695 | fi | ||
6696 | |||
6697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6698 | fi | ||
6699 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
6700 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
6701 | echo "${ECHO_T}$ac_res" >&6; } | ||
6702 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6703 | cat >>confdefs.h <<_ACEOF | ||
6704 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6705 | _ACEOF | ||
6706 | |||
6707 | fi | ||
6708 | |||
6709 | done | ||
6710 | |||
6711 | |||
6712 | # Messages for features tested for in target-specific section | ||
6713 | SIA_MSG="no" | ||
6714 | SPC_MSG="no" | ||
6715 | SP_MSG="no" | ||
6716 | |||
6717 | # Check for some target-specific stuff | ||
6718 | case "$host" in | ||
6719 | *-*-aix*) | ||
6720 | # Some versions of VAC won't allow macro redefinitions at | ||
6721 | # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that | ||
6722 | # particularly with older versions of vac or xlc. | ||
6723 | # It also throws errors about null macro argments, but these are | ||
6724 | # not fatal. | ||
6725 | { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5 | ||
6726 | echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; } | ||
6727 | cat >conftest.$ac_ext <<_ACEOF | ||
6728 | /* confdefs.h. */ | ||
6729 | _ACEOF | ||
6730 | cat confdefs.h >>conftest.$ac_ext | ||
6731 | cat >>conftest.$ac_ext <<_ACEOF | ||
6732 | /* end confdefs.h. */ | ||
6733 | |||
6734 | #define testmacro foo | ||
6735 | #define testmacro bar | ||
6736 | int main(void) { exit(0); } | ||
6737 | |||
6738 | _ACEOF | ||
6739 | rm -f conftest.$ac_objext | ||
6740 | if { (ac_try="$ac_compile" | ||
6741 | case "(($ac_try" in | ||
6742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6743 | *) ac_try_echo=$ac_try;; | ||
6744 | esac | ||
6745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6746 | (eval "$ac_compile") 2>conftest.er1 | ||
6747 | ac_status=$? | ||
6748 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6749 | rm -f conftest.er1 | ||
6750 | cat conftest.err >&5 | ||
6751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6752 | (exit $ac_status); } && { | ||
6753 | test -z "$ac_c_werror_flag" || | ||
6754 | test ! -s conftest.err | ||
6755 | } && test -s conftest.$ac_objext; then | ||
6756 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6757 | echo "${ECHO_T}yes" >&6; } | ||
6758 | else | ||
6759 | echo "$as_me: failed program was:" >&5 | ||
6760 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6761 | |||
6762 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6763 | echo "${ECHO_T}no" >&6; } | ||
6764 | CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`" | ||
6765 | LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`" | ||
6766 | CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
6767 | CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
6768 | |||
6769 | |||
6770 | fi | ||
6771 | |||
6772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6773 | |||
6774 | { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5 | ||
6775 | echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; } | ||
6776 | if (test -z "$blibpath"); then | ||
6777 | blibpath="/usr/lib:/lib" | ||
6778 | fi | ||
6779 | saved_LDFLAGS="$LDFLAGS" | ||
6780 | if test "$GCC" = "yes"; then | ||
6781 | flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:" | ||
6782 | else | ||
6783 | flags="-blibpath: -Wl,-blibpath: -Wl,-rpath," | ||
6784 | fi | ||
6785 | for tryflags in $flags ;do | ||
6786 | if (test -z "$blibflags"); then | ||
6787 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" | ||
6788 | cat >conftest.$ac_ext <<_ACEOF | ||
6789 | /* confdefs.h. */ | ||
6790 | _ACEOF | ||
6791 | cat confdefs.h >>conftest.$ac_ext | ||
6792 | cat >>conftest.$ac_ext <<_ACEOF | ||
6793 | /* end confdefs.h. */ | ||
6794 | |||
6795 | int | ||
6796 | main () | ||
6797 | { | ||
6798 | |||
6799 | ; | ||
6800 | return 0; | ||
6801 | } | ||
6802 | _ACEOF | ||
6803 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6804 | if { (ac_try="$ac_link" | ||
6805 | case "(($ac_try" in | ||
6806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6807 | *) ac_try_echo=$ac_try;; | ||
6808 | esac | ||
6809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6810 | (eval "$ac_link") 2>conftest.er1 | ||
6811 | ac_status=$? | ||
6812 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6813 | rm -f conftest.er1 | ||
6814 | cat conftest.err >&5 | ||
6815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6816 | (exit $ac_status); } && { | ||
6817 | test -z "$ac_c_werror_flag" || | ||
6818 | test ! -s conftest.err | ||
6819 | } && test -s conftest$ac_exeext && | ||
6820 | $as_test_x conftest$ac_exeext; then | ||
6821 | blibflags=$tryflags | ||
6822 | else | ||
6823 | echo "$as_me: failed program was:" >&5 | ||
6824 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6825 | |||
6826 | |||
6827 | fi | ||
6828 | |||
6829 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6830 | conftest$ac_exeext conftest.$ac_ext | ||
6831 | fi | ||
6832 | done | ||
6833 | if (test -z "$blibflags"); then | ||
6834 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
6835 | echo "${ECHO_T}not found" >&6; } | ||
6836 | { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5 | ||
6837 | echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;} | ||
6838 | { (exit 1); exit 1; }; } | ||
6839 | else | ||
6840 | { echo "$as_me:$LINENO: result: $blibflags" >&5 | ||
6841 | echo "${ECHO_T}$blibflags" >&6; } | ||
6842 | fi | ||
6843 | LDFLAGS="$saved_LDFLAGS" | ||
6844 | { echo "$as_me:$LINENO: checking for authenticate" >&5 | ||
6845 | echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; } | ||
6846 | if test "${ac_cv_func_authenticate+set}" = set; then | ||
6847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6848 | else | ||
6849 | cat >conftest.$ac_ext <<_ACEOF | ||
6850 | /* confdefs.h. */ | ||
6851 | _ACEOF | ||
6852 | cat confdefs.h >>conftest.$ac_ext | ||
6853 | cat >>conftest.$ac_ext <<_ACEOF | ||
6854 | /* end confdefs.h. */ | ||
6855 | /* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate. | ||
6856 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
6857 | #define authenticate innocuous_authenticate | ||
6858 | |||
6859 | /* System header to define __stub macros and hopefully few prototypes, | ||
6860 | which can conflict with char authenticate (); below. | ||
6861 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6862 | <limits.h> exists even on freestanding compilers. */ | ||
6863 | |||
6864 | #ifdef __STDC__ | ||
6865 | # include <limits.h> | ||
6866 | #else | ||
6867 | # include <assert.h> | ||
6868 | #endif | ||
6869 | |||
6870 | #undef authenticate | ||
6871 | |||
6872 | /* Override any GCC internal prototype to avoid an error. | ||
6873 | Use char because int might match the return type of a GCC | ||
6874 | builtin and then its argument prototype would still apply. */ | ||
6875 | #ifdef __cplusplus | ||
6876 | extern "C" | ||
6877 | #endif | ||
6878 | char authenticate (); | ||
6879 | /* The GNU C library defines this for functions which it implements | ||
6880 | to always fail with ENOSYS. Some functions are actually named | ||
6881 | something starting with __ and the normal name is an alias. */ | ||
6882 | #if defined __stub_authenticate || defined __stub___authenticate | ||
6883 | choke me | ||
6884 | #endif | ||
6885 | |||
6886 | int | ||
6887 | main () | ||
6888 | { | ||
6889 | return authenticate (); | ||
6890 | ; | ||
6891 | return 0; | ||
6892 | } | ||
6893 | _ACEOF | ||
6894 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6895 | if { (ac_try="$ac_link" | ||
6896 | case "(($ac_try" in | ||
6897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6898 | *) ac_try_echo=$ac_try;; | ||
6899 | esac | ||
6900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6901 | (eval "$ac_link") 2>conftest.er1 | ||
6902 | ac_status=$? | ||
6903 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6904 | rm -f conftest.er1 | ||
6905 | cat conftest.err >&5 | ||
6906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6907 | (exit $ac_status); } && { | ||
6908 | test -z "$ac_c_werror_flag" || | ||
6909 | test ! -s conftest.err | ||
6910 | } && test -s conftest$ac_exeext && | ||
6911 | $as_test_x conftest$ac_exeext; then | ||
6912 | ac_cv_func_authenticate=yes | ||
6913 | else | ||
6914 | echo "$as_me: failed program was:" >&5 | ||
6915 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6916 | |||
6917 | ac_cv_func_authenticate=no | ||
6918 | fi | ||
6919 | |||
6920 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6921 | conftest$ac_exeext conftest.$ac_ext | ||
6922 | fi | ||
6923 | { echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5 | ||
6924 | echo "${ECHO_T}$ac_cv_func_authenticate" >&6; } | ||
6925 | if test $ac_cv_func_authenticate = yes; then | ||
6926 | |||
6927 | cat >>confdefs.h <<\_ACEOF | ||
6928 | #define WITH_AIXAUTHENTICATE 1 | ||
6929 | _ACEOF | ||
6930 | |||
6931 | else | ||
6932 | { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5 | ||
6933 | echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; } | ||
6934 | if test "${ac_cv_lib_s_authenticate+set}" = set; then | ||
6935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6936 | else | ||
6937 | ac_check_lib_save_LIBS=$LIBS | ||
6938 | LIBS="-ls $LIBS" | ||
6939 | cat >conftest.$ac_ext <<_ACEOF | ||
6940 | /* confdefs.h. */ | ||
6941 | _ACEOF | ||
6942 | cat confdefs.h >>conftest.$ac_ext | ||
6943 | cat >>conftest.$ac_ext <<_ACEOF | ||
6944 | /* end confdefs.h. */ | ||
6945 | |||
6946 | /* Override any GCC internal prototype to avoid an error. | ||
6947 | Use char because int might match the return type of a GCC | ||
6948 | builtin and then its argument prototype would still apply. */ | ||
6949 | #ifdef __cplusplus | ||
6950 | extern "C" | ||
6951 | #endif | ||
6952 | char authenticate (); | ||
6953 | int | ||
6954 | main () | ||
6955 | { | ||
6956 | return authenticate (); | ||
6957 | ; | ||
6958 | return 0; | ||
6959 | } | ||
6960 | _ACEOF | ||
6961 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6962 | if { (ac_try="$ac_link" | ||
6963 | case "(($ac_try" in | ||
6964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6965 | *) ac_try_echo=$ac_try;; | ||
6966 | esac | ||
6967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6968 | (eval "$ac_link") 2>conftest.er1 | ||
6969 | ac_status=$? | ||
6970 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6971 | rm -f conftest.er1 | ||
6972 | cat conftest.err >&5 | ||
6973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6974 | (exit $ac_status); } && { | ||
6975 | test -z "$ac_c_werror_flag" || | ||
6976 | test ! -s conftest.err | ||
6977 | } && test -s conftest$ac_exeext && | ||
6978 | $as_test_x conftest$ac_exeext; then | ||
6979 | ac_cv_lib_s_authenticate=yes | ||
6980 | else | ||
6981 | echo "$as_me: failed program was:" >&5 | ||
6982 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6983 | |||
6984 | ac_cv_lib_s_authenticate=no | ||
6985 | fi | ||
6986 | |||
6987 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6988 | conftest$ac_exeext conftest.$ac_ext | ||
6989 | LIBS=$ac_check_lib_save_LIBS | ||
6990 | fi | ||
6991 | { echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5 | ||
6992 | echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; } | ||
6993 | if test $ac_cv_lib_s_authenticate = yes; then | ||
6994 | cat >>confdefs.h <<\_ACEOF | ||
6995 | #define WITH_AIXAUTHENTICATE 1 | ||
6996 | _ACEOF | ||
6997 | |||
6998 | LIBS="$LIBS -ls" | ||
6999 | |||
7000 | fi | ||
7001 | |||
7002 | |||
7003 | fi | ||
7004 | |||
7005 | { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5 | ||
7006 | echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; } | ||
7007 | if test "${ac_cv_have_decl_authenticate+set}" = set; then | ||
7008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7009 | else | ||
7010 | cat >conftest.$ac_ext <<_ACEOF | ||
7011 | /* confdefs.h. */ | ||
7012 | _ACEOF | ||
7013 | cat confdefs.h >>conftest.$ac_ext | ||
7014 | cat >>conftest.$ac_ext <<_ACEOF | ||
7015 | /* end confdefs.h. */ | ||
7016 | #include <usersec.h> | ||
7017 | |||
7018 | int | ||
7019 | main () | ||
7020 | { | ||
7021 | #ifndef authenticate | ||
7022 | (void) authenticate; | ||
7023 | #endif | ||
7024 | |||
7025 | ; | ||
7026 | return 0; | ||
7027 | } | ||
7028 | _ACEOF | ||
7029 | rm -f conftest.$ac_objext | ||
7030 | if { (ac_try="$ac_compile" | ||
7031 | case "(($ac_try" in | ||
7032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7033 | *) ac_try_echo=$ac_try;; | ||
7034 | esac | ||
7035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7036 | (eval "$ac_compile") 2>conftest.er1 | ||
7037 | ac_status=$? | ||
7038 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7039 | rm -f conftest.er1 | ||
7040 | cat conftest.err >&5 | ||
7041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7042 | (exit $ac_status); } && { | ||
7043 | test -z "$ac_c_werror_flag" || | ||
7044 | test ! -s conftest.err | ||
7045 | } && test -s conftest.$ac_objext; then | ||
7046 | ac_cv_have_decl_authenticate=yes | ||
7047 | else | ||
7048 | echo "$as_me: failed program was:" >&5 | ||
7049 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7050 | |||
7051 | ac_cv_have_decl_authenticate=no | ||
7052 | fi | ||
7053 | |||
7054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7055 | fi | ||
7056 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5 | ||
7057 | echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; } | ||
7058 | if test $ac_cv_have_decl_authenticate = yes; then | ||
7059 | |||
7060 | cat >>confdefs.h <<_ACEOF | ||
7061 | #define HAVE_DECL_AUTHENTICATE 1 | ||
7062 | _ACEOF | ||
7063 | |||
7064 | |||
7065 | else | ||
7066 | cat >>confdefs.h <<_ACEOF | ||
7067 | #define HAVE_DECL_AUTHENTICATE 0 | ||
7068 | _ACEOF | ||
7069 | |||
7070 | |||
7071 | fi | ||
7072 | { echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5 | ||
7073 | echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; } | ||
7074 | if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then | ||
7075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7076 | else | ||
7077 | cat >conftest.$ac_ext <<_ACEOF | ||
7078 | /* confdefs.h. */ | ||
7079 | _ACEOF | ||
7080 | cat confdefs.h >>conftest.$ac_ext | ||
7081 | cat >>conftest.$ac_ext <<_ACEOF | ||
7082 | /* end confdefs.h. */ | ||
7083 | #include <usersec.h> | ||
7084 | |||
7085 | int | ||
7086 | main () | ||
7087 | { | ||
7088 | #ifndef loginrestrictions | ||
7089 | (void) loginrestrictions; | ||
7090 | #endif | ||
7091 | |||
7092 | ; | ||
7093 | return 0; | ||
7094 | } | ||
7095 | _ACEOF | ||
7096 | rm -f conftest.$ac_objext | ||
7097 | if { (ac_try="$ac_compile" | ||
7098 | case "(($ac_try" in | ||
7099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7100 | *) ac_try_echo=$ac_try;; | ||
7101 | esac | ||
7102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7103 | (eval "$ac_compile") 2>conftest.er1 | ||
7104 | ac_status=$? | ||
7105 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7106 | rm -f conftest.er1 | ||
7107 | cat conftest.err >&5 | ||
7108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7109 | (exit $ac_status); } && { | ||
7110 | test -z "$ac_c_werror_flag" || | ||
7111 | test ! -s conftest.err | ||
7112 | } && test -s conftest.$ac_objext; then | ||
7113 | ac_cv_have_decl_loginrestrictions=yes | ||
7114 | else | ||
7115 | echo "$as_me: failed program was:" >&5 | ||
7116 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7117 | |||
7118 | ac_cv_have_decl_loginrestrictions=no | ||
7119 | fi | ||
7120 | |||
7121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7122 | fi | ||
7123 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5 | ||
7124 | echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; } | ||
7125 | if test $ac_cv_have_decl_loginrestrictions = yes; then | ||
7126 | |||
7127 | cat >>confdefs.h <<_ACEOF | ||
7128 | #define HAVE_DECL_LOGINRESTRICTIONS 1 | ||
7129 | _ACEOF | ||
7130 | |||
7131 | |||
7132 | else | ||
7133 | cat >>confdefs.h <<_ACEOF | ||
7134 | #define HAVE_DECL_LOGINRESTRICTIONS 0 | ||
7135 | _ACEOF | ||
7136 | |||
7137 | |||
7138 | fi | ||
7139 | { echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5 | ||
7140 | echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; } | ||
7141 | if test "${ac_cv_have_decl_loginsuccess+set}" = set; then | ||
7142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7143 | else | ||
7144 | cat >conftest.$ac_ext <<_ACEOF | ||
7145 | /* confdefs.h. */ | ||
7146 | _ACEOF | ||
7147 | cat confdefs.h >>conftest.$ac_ext | ||
7148 | cat >>conftest.$ac_ext <<_ACEOF | ||
7149 | /* end confdefs.h. */ | ||
7150 | #include <usersec.h> | ||
7151 | |||
7152 | int | ||
7153 | main () | ||
7154 | { | ||
7155 | #ifndef loginsuccess | ||
7156 | (void) loginsuccess; | ||
7157 | #endif | ||
7158 | |||
7159 | ; | ||
7160 | return 0; | ||
7161 | } | ||
7162 | _ACEOF | ||
7163 | rm -f conftest.$ac_objext | ||
7164 | if { (ac_try="$ac_compile" | ||
7165 | case "(($ac_try" in | ||
7166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7167 | *) ac_try_echo=$ac_try;; | ||
7168 | esac | ||
7169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7170 | (eval "$ac_compile") 2>conftest.er1 | ||
7171 | ac_status=$? | ||
7172 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7173 | rm -f conftest.er1 | ||
7174 | cat conftest.err >&5 | ||
7175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7176 | (exit $ac_status); } && { | ||
7177 | test -z "$ac_c_werror_flag" || | ||
7178 | test ! -s conftest.err | ||
7179 | } && test -s conftest.$ac_objext; then | ||
7180 | ac_cv_have_decl_loginsuccess=yes | ||
7181 | else | ||
7182 | echo "$as_me: failed program was:" >&5 | ||
7183 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7184 | |||
7185 | ac_cv_have_decl_loginsuccess=no | ||
7186 | fi | ||
7187 | |||
7188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7189 | fi | ||
7190 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5 | ||
7191 | echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; } | ||
7192 | if test $ac_cv_have_decl_loginsuccess = yes; then | ||
7193 | |||
7194 | cat >>confdefs.h <<_ACEOF | ||
7195 | #define HAVE_DECL_LOGINSUCCESS 1 | ||
7196 | _ACEOF | ||
7197 | |||
7198 | |||
7199 | else | ||
7200 | cat >>confdefs.h <<_ACEOF | ||
7201 | #define HAVE_DECL_LOGINSUCCESS 0 | ||
7202 | _ACEOF | ||
7203 | |||
7204 | |||
7205 | fi | ||
7206 | { echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5 | ||
7207 | echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; } | ||
7208 | if test "${ac_cv_have_decl_passwdexpired+set}" = set; then | ||
7209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7210 | else | ||
7211 | cat >conftest.$ac_ext <<_ACEOF | ||
7212 | /* confdefs.h. */ | ||
7213 | _ACEOF | ||
7214 | cat confdefs.h >>conftest.$ac_ext | ||
7215 | cat >>conftest.$ac_ext <<_ACEOF | ||
7216 | /* end confdefs.h. */ | ||
7217 | #include <usersec.h> | ||
7218 | |||
7219 | int | ||
7220 | main () | ||
7221 | { | ||
7222 | #ifndef passwdexpired | ||
7223 | (void) passwdexpired; | ||
7224 | #endif | ||
7225 | |||
7226 | ; | ||
7227 | return 0; | ||
7228 | } | ||
7229 | _ACEOF | ||
7230 | rm -f conftest.$ac_objext | ||
7231 | if { (ac_try="$ac_compile" | ||
7232 | case "(($ac_try" in | ||
7233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7234 | *) ac_try_echo=$ac_try;; | ||
7235 | esac | ||
7236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7237 | (eval "$ac_compile") 2>conftest.er1 | ||
7238 | ac_status=$? | ||
7239 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7240 | rm -f conftest.er1 | ||
7241 | cat conftest.err >&5 | ||
7242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7243 | (exit $ac_status); } && { | ||
7244 | test -z "$ac_c_werror_flag" || | ||
7245 | test ! -s conftest.err | ||
7246 | } && test -s conftest.$ac_objext; then | ||
7247 | ac_cv_have_decl_passwdexpired=yes | ||
7248 | else | ||
7249 | echo "$as_me: failed program was:" >&5 | ||
7250 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7251 | |||
7252 | ac_cv_have_decl_passwdexpired=no | ||
7253 | fi | ||
7254 | |||
7255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7256 | fi | ||
7257 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5 | ||
7258 | echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; } | ||
7259 | if test $ac_cv_have_decl_passwdexpired = yes; then | ||
7260 | |||
7261 | cat >>confdefs.h <<_ACEOF | ||
7262 | #define HAVE_DECL_PASSWDEXPIRED 1 | ||
7263 | _ACEOF | ||
7264 | |||
7265 | |||
7266 | else | ||
7267 | cat >>confdefs.h <<_ACEOF | ||
7268 | #define HAVE_DECL_PASSWDEXPIRED 0 | ||
7269 | _ACEOF | ||
7270 | |||
7271 | |||
7272 | fi | ||
7273 | { echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5 | ||
7274 | echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; } | ||
7275 | if test "${ac_cv_have_decl_setauthdb+set}" = set; then | ||
7276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7277 | else | ||
7278 | cat >conftest.$ac_ext <<_ACEOF | ||
7279 | /* confdefs.h. */ | ||
7280 | _ACEOF | ||
7281 | cat confdefs.h >>conftest.$ac_ext | ||
7282 | cat >>conftest.$ac_ext <<_ACEOF | ||
7283 | /* end confdefs.h. */ | ||
7284 | #include <usersec.h> | ||
7285 | |||
7286 | int | ||
7287 | main () | ||
7288 | { | ||
7289 | #ifndef setauthdb | ||
7290 | (void) setauthdb; | ||
7291 | #endif | ||
7292 | |||
7293 | ; | ||
7294 | return 0; | ||
7295 | } | ||
7296 | _ACEOF | ||
7297 | rm -f conftest.$ac_objext | ||
7298 | if { (ac_try="$ac_compile" | ||
7299 | case "(($ac_try" in | ||
7300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7301 | *) ac_try_echo=$ac_try;; | ||
7302 | esac | ||
7303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7304 | (eval "$ac_compile") 2>conftest.er1 | ||
7305 | ac_status=$? | ||
7306 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7307 | rm -f conftest.er1 | ||
7308 | cat conftest.err >&5 | ||
7309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7310 | (exit $ac_status); } && { | ||
7311 | test -z "$ac_c_werror_flag" || | ||
7312 | test ! -s conftest.err | ||
7313 | } && test -s conftest.$ac_objext; then | ||
7314 | ac_cv_have_decl_setauthdb=yes | ||
7315 | else | ||
7316 | echo "$as_me: failed program was:" >&5 | ||
7317 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7318 | |||
7319 | ac_cv_have_decl_setauthdb=no | ||
7320 | fi | ||
7321 | |||
7322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7323 | fi | ||
7324 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5 | ||
7325 | echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; } | ||
7326 | if test $ac_cv_have_decl_setauthdb = yes; then | ||
7327 | |||
7328 | cat >>confdefs.h <<_ACEOF | ||
7329 | #define HAVE_DECL_SETAUTHDB 1 | ||
7330 | _ACEOF | ||
7331 | |||
7332 | |||
7333 | else | ||
7334 | cat >>confdefs.h <<_ACEOF | ||
7335 | #define HAVE_DECL_SETAUTHDB 0 | ||
7336 | _ACEOF | ||
7337 | |||
7338 | |||
7339 | fi | ||
7340 | |||
7341 | |||
7342 | { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5 | ||
7343 | echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; } | ||
7344 | if test "${ac_cv_have_decl_loginfailed+set}" = set; then | ||
7345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7346 | else | ||
7347 | cat >conftest.$ac_ext <<_ACEOF | ||
7348 | /* confdefs.h. */ | ||
7349 | _ACEOF | ||
7350 | cat confdefs.h >>conftest.$ac_ext | ||
7351 | cat >>conftest.$ac_ext <<_ACEOF | ||
7352 | /* end confdefs.h. */ | ||
7353 | #include <usersec.h> | ||
7354 | |||
7355 | |||
7356 | int | ||
7357 | main () | ||
7358 | { | ||
7359 | #ifndef loginfailed | ||
7360 | (void) loginfailed; | ||
7361 | #endif | ||
7362 | |||
7363 | ; | ||
7364 | return 0; | ||
7365 | } | ||
7366 | _ACEOF | ||
7367 | rm -f conftest.$ac_objext | ||
7368 | if { (ac_try="$ac_compile" | ||
7369 | case "(($ac_try" in | ||
7370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7371 | *) ac_try_echo=$ac_try;; | ||
7372 | esac | ||
7373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7374 | (eval "$ac_compile") 2>conftest.er1 | ||
7375 | ac_status=$? | ||
7376 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7377 | rm -f conftest.er1 | ||
7378 | cat conftest.err >&5 | ||
7379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7380 | (exit $ac_status); } && { | ||
7381 | test -z "$ac_c_werror_flag" || | ||
7382 | test ! -s conftest.err | ||
7383 | } && test -s conftest.$ac_objext; then | ||
7384 | ac_cv_have_decl_loginfailed=yes | ||
7385 | else | ||
7386 | echo "$as_me: failed program was:" >&5 | ||
7387 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7388 | |||
7389 | ac_cv_have_decl_loginfailed=no | ||
7390 | fi | ||
7391 | |||
7392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7393 | fi | ||
7394 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5 | ||
7395 | echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; } | ||
7396 | if test $ac_cv_have_decl_loginfailed = yes; then | ||
7397 | |||
7398 | cat >>confdefs.h <<_ACEOF | ||
7399 | #define HAVE_DECL_LOGINFAILED 1 | ||
7400 | _ACEOF | ||
7401 | |||
7402 | { echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5 | ||
7403 | echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; } | ||
7404 | cat >conftest.$ac_ext <<_ACEOF | ||
7405 | /* confdefs.h. */ | ||
7406 | _ACEOF | ||
7407 | cat confdefs.h >>conftest.$ac_ext | ||
7408 | cat >>conftest.$ac_ext <<_ACEOF | ||
7409 | /* end confdefs.h. */ | ||
7410 | #include <usersec.h> | ||
7411 | int | ||
7412 | main () | ||
7413 | { | ||
7414 | (void)loginfailed("user","host","tty",0); | ||
7415 | ; | ||
7416 | return 0; | ||
7417 | } | ||
7418 | _ACEOF | ||
7419 | rm -f conftest.$ac_objext | ||
7420 | if { (ac_try="$ac_compile" | ||
7421 | case "(($ac_try" in | ||
7422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7423 | *) ac_try_echo=$ac_try;; | ||
7424 | esac | ||
7425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7426 | (eval "$ac_compile") 2>conftest.er1 | ||
7427 | ac_status=$? | ||
7428 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7429 | rm -f conftest.er1 | ||
7430 | cat conftest.err >&5 | ||
7431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7432 | (exit $ac_status); } && { | ||
7433 | test -z "$ac_c_werror_flag" || | ||
7434 | test ! -s conftest.err | ||
7435 | } && test -s conftest.$ac_objext; then | ||
7436 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
7437 | echo "${ECHO_T}yes" >&6; } | ||
7438 | |||
7439 | cat >>confdefs.h <<\_ACEOF | ||
7440 | #define AIX_LOGINFAILED_4ARG 1 | ||
7441 | _ACEOF | ||
7442 | |||
7443 | else | ||
7444 | echo "$as_me: failed program was:" >&5 | ||
7445 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7446 | |||
7447 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7448 | echo "${ECHO_T}no" >&6; } | ||
7449 | |||
7450 | fi | ||
7451 | |||
7452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7453 | else | ||
7454 | cat >>confdefs.h <<_ACEOF | ||
7455 | #define HAVE_DECL_LOGINFAILED 0 | ||
7456 | _ACEOF | ||
7457 | |||
7458 | |||
7459 | fi | ||
7460 | |||
7461 | |||
7462 | |||
7463 | |||
7464 | for ac_func in getgrset setauthdb | ||
7465 | do | ||
7466 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7467 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7468 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
7469 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7471 | else | ||
7472 | cat >conftest.$ac_ext <<_ACEOF | ||
7473 | /* confdefs.h. */ | ||
7474 | _ACEOF | ||
7475 | cat confdefs.h >>conftest.$ac_ext | ||
7476 | cat >>conftest.$ac_ext <<_ACEOF | ||
7477 | /* end confdefs.h. */ | ||
7478 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
7479 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
7480 | #define $ac_func innocuous_$ac_func | ||
7481 | |||
7482 | /* System header to define __stub macros and hopefully few prototypes, | ||
7483 | which can conflict with char $ac_func (); below. | ||
7484 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
7485 | <limits.h> exists even on freestanding compilers. */ | ||
7486 | |||
7487 | #ifdef __STDC__ | ||
7488 | # include <limits.h> | ||
7489 | #else | ||
7490 | # include <assert.h> | ||
7491 | #endif | ||
7492 | |||
7493 | #undef $ac_func | ||
7494 | |||
7495 | /* Override any GCC internal prototype to avoid an error. | ||
7496 | Use char because int might match the return type of a GCC | ||
7497 | builtin and then its argument prototype would still apply. */ | ||
7498 | #ifdef __cplusplus | ||
7499 | extern "C" | ||
7500 | #endif | ||
7501 | char $ac_func (); | ||
7502 | /* The GNU C library defines this for functions which it implements | ||
7503 | to always fail with ENOSYS. Some functions are actually named | ||
7504 | something starting with __ and the normal name is an alias. */ | ||
7505 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
7506 | choke me | ||
7507 | #endif | ||
7508 | |||
7509 | int | ||
7510 | main () | ||
7511 | { | ||
7512 | return $ac_func (); | ||
7513 | ; | ||
7514 | return 0; | ||
7515 | } | ||
7516 | _ACEOF | ||
7517 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7518 | if { (ac_try="$ac_link" | ||
7519 | case "(($ac_try" in | ||
7520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7521 | *) ac_try_echo=$ac_try;; | ||
7522 | esac | ||
7523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7524 | (eval "$ac_link") 2>conftest.er1 | ||
7525 | ac_status=$? | ||
7526 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7527 | rm -f conftest.er1 | ||
7528 | cat conftest.err >&5 | ||
7529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7530 | (exit $ac_status); } && { | ||
7531 | test -z "$ac_c_werror_flag" || | ||
7532 | test ! -s conftest.err | ||
7533 | } && test -s conftest$ac_exeext && | ||
7534 | $as_test_x conftest$ac_exeext; then | ||
7535 | eval "$as_ac_var=yes" | ||
7536 | else | ||
7537 | echo "$as_me: failed program was:" >&5 | ||
7538 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7539 | |||
7540 | eval "$as_ac_var=no" | ||
7541 | fi | ||
7542 | |||
7543 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7544 | conftest$ac_exeext conftest.$ac_ext | ||
7545 | fi | ||
7546 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
7547 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7548 | echo "${ECHO_T}$ac_res" >&6; } | ||
7549 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7550 | cat >>confdefs.h <<_ACEOF | ||
7551 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7552 | _ACEOF | ||
7553 | |||
7554 | fi | ||
7555 | done | ||
7556 | |||
7557 | { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5 | ||
7558 | echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; } | ||
7559 | if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then | ||
7560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7561 | else | ||
7562 | cat >conftest.$ac_ext <<_ACEOF | ||
7563 | /* confdefs.h. */ | ||
7564 | _ACEOF | ||
7565 | cat confdefs.h >>conftest.$ac_ext | ||
7566 | cat >>conftest.$ac_ext <<_ACEOF | ||
7567 | /* end confdefs.h. */ | ||
7568 | #include <limits.h> | ||
7569 | #include <fcntl.h> | ||
7570 | |||
7571 | |||
7572 | int | ||
7573 | main () | ||
7574 | { | ||
7575 | #ifndef F_CLOSEM | ||
7576 | (void) F_CLOSEM; | ||
7577 | #endif | ||
7578 | |||
7579 | ; | ||
7580 | return 0; | ||
7581 | } | ||
7582 | _ACEOF | ||
7583 | rm -f conftest.$ac_objext | ||
7584 | if { (ac_try="$ac_compile" | ||
7585 | case "(($ac_try" in | ||
7586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7587 | *) ac_try_echo=$ac_try;; | ||
7588 | esac | ||
7589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7590 | (eval "$ac_compile") 2>conftest.er1 | ||
7591 | ac_status=$? | ||
7592 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7593 | rm -f conftest.er1 | ||
7594 | cat conftest.err >&5 | ||
7595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7596 | (exit $ac_status); } && { | ||
7597 | test -z "$ac_c_werror_flag" || | ||
7598 | test ! -s conftest.err | ||
7599 | } && test -s conftest.$ac_objext; then | ||
7600 | ac_cv_have_decl_F_CLOSEM=yes | ||
7601 | else | ||
7602 | echo "$as_me: failed program was:" >&5 | ||
7603 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7604 | |||
7605 | ac_cv_have_decl_F_CLOSEM=no | ||
7606 | fi | ||
7607 | |||
7608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7609 | fi | ||
7610 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5 | ||
7611 | echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; } | ||
7612 | if test $ac_cv_have_decl_F_CLOSEM = yes; then | ||
7613 | |||
7614 | cat >>confdefs.h <<\_ACEOF | ||
7615 | #define HAVE_FCNTL_CLOSEM 1 | ||
7616 | _ACEOF | ||
7617 | |||
7618 | fi | ||
7619 | |||
7620 | check_for_aix_broken_getaddrinfo=1 | ||
7621 | |||
7622 | cat >>confdefs.h <<\_ACEOF | ||
7623 | #define BROKEN_REALPATH 1 | ||
7624 | _ACEOF | ||
7625 | |||
7626 | |||
7627 | cat >>confdefs.h <<\_ACEOF | ||
7628 | #define SETEUID_BREAKS_SETUID 1 | ||
7629 | _ACEOF | ||
7630 | |||
7631 | |||
7632 | cat >>confdefs.h <<\_ACEOF | ||
7633 | #define BROKEN_SETREUID 1 | ||
7634 | _ACEOF | ||
7635 | |||
7636 | |||
7637 | cat >>confdefs.h <<\_ACEOF | ||
7638 | #define BROKEN_SETREGID 1 | ||
7639 | _ACEOF | ||
7640 | |||
7641 | |||
7642 | cat >>confdefs.h <<\_ACEOF | ||
7643 | #define DISABLE_LASTLOG 1 | ||
7644 | _ACEOF | ||
7645 | |||
7646 | |||
7647 | cat >>confdefs.h <<\_ACEOF | ||
7648 | #define LOGIN_NEEDS_UTMPX 1 | ||
7649 | _ACEOF | ||
7650 | |||
7651 | |||
7652 | cat >>confdefs.h <<\_ACEOF | ||
7653 | #define SPT_TYPE SPT_REUSEARGV | ||
7654 | _ACEOF | ||
7655 | |||
7656 | |||
7657 | cat >>confdefs.h <<\_ACEOF | ||
7658 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 | ||
7659 | _ACEOF | ||
7660 | |||
7661 | |||
7662 | cat >>confdefs.h <<\_ACEOF | ||
7663 | #define PTY_ZEROREAD 1 | ||
7664 | _ACEOF | ||
7665 | |||
7666 | ;; | ||
7667 | *-*-cygwin*) | ||
7668 | check_for_libcrypt_later=1 | ||
7669 | LIBS="$LIBS /usr/lib/textreadmode.o" | ||
7670 | |||
7671 | cat >>confdefs.h <<\_ACEOF | ||
7672 | #define HAVE_CYGWIN 1 | ||
7673 | _ACEOF | ||
7674 | |||
7675 | |||
7676 | cat >>confdefs.h <<\_ACEOF | ||
7677 | #define USE_PIPES 1 | ||
7678 | _ACEOF | ||
7679 | |||
7680 | |||
7681 | cat >>confdefs.h <<\_ACEOF | ||
7682 | #define DISABLE_SHADOW 1 | ||
7683 | _ACEOF | ||
7684 | |||
7685 | |||
7686 | cat >>confdefs.h <<\_ACEOF | ||
7687 | #define NO_X11_UNIX_SOCKETS 1 | ||
7688 | _ACEOF | ||
7689 | |||
7690 | |||
7691 | cat >>confdefs.h <<\_ACEOF | ||
7692 | #define NO_IPPORT_RESERVED_CONCEPT 1 | ||
7693 | _ACEOF | ||
7694 | |||
7695 | |||
7696 | cat >>confdefs.h <<\_ACEOF | ||
7697 | #define DISABLE_FD_PASSING 1 | ||
7698 | _ACEOF | ||
7699 | |||
7700 | |||
7701 | cat >>confdefs.h <<\_ACEOF | ||
7702 | #define SSH_IOBUFSZ 65535 | ||
7703 | _ACEOF | ||
7704 | |||
7705 | |||
7706 | cat >>confdefs.h <<\_ACEOF | ||
7707 | #define FILESYSTEM_NO_BACKSLASH 1 | ||
7708 | _ACEOF | ||
7709 | |||
7710 | ;; | ||
7711 | *-*-dgux*) | ||
7712 | |||
7713 | cat >>confdefs.h <<\_ACEOF | ||
7714 | #define IP_TOS_IS_BROKEN 1 | ||
7715 | _ACEOF | ||
7716 | |||
7717 | cat >>confdefs.h <<\_ACEOF | ||
7718 | #define SETEUID_BREAKS_SETUID 1 | ||
7719 | _ACEOF | ||
7720 | |||
7721 | cat >>confdefs.h <<\_ACEOF | ||
7722 | #define BROKEN_SETREUID 1 | ||
7723 | _ACEOF | ||
7724 | |||
7725 | cat >>confdefs.h <<\_ACEOF | ||
7726 | #define BROKEN_SETREGID 1 | ||
7727 | _ACEOF | ||
7728 | |||
7729 | ;; | ||
7730 | *-*-darwin*) | ||
7731 | { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5 | ||
7732 | echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; } | ||
7733 | if test "$cross_compiling" = yes; then | ||
7734 | { echo "$as_me:$LINENO: result: assume it is working" >&5 | ||
7735 | echo "${ECHO_T}assume it is working" >&6; } | ||
7736 | else | ||
7737 | cat >conftest.$ac_ext <<_ACEOF | ||
7738 | /* confdefs.h. */ | ||
7739 | _ACEOF | ||
7740 | cat confdefs.h >>conftest.$ac_ext | ||
7741 | cat >>conftest.$ac_ext <<_ACEOF | ||
7742 | /* end confdefs.h. */ | ||
7743 | #include <mach-o/dyld.h> | ||
7744 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
7745 | exit(0); | ||
7746 | else | ||
7747 | exit(1); | ||
7748 | } | ||
7749 | _ACEOF | ||
7750 | rm -f conftest$ac_exeext | ||
7751 | if { (ac_try="$ac_link" | ||
7752 | case "(($ac_try" in | ||
7753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7754 | *) ac_try_echo=$ac_try;; | ||
7755 | esac | ||
7756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7757 | (eval "$ac_link") 2>&5 | ||
7758 | ac_status=$? | ||
7759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7760 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7761 | { (case "(($ac_try" in | ||
7762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7763 | *) ac_try_echo=$ac_try;; | ||
7764 | esac | ||
7765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7766 | (eval "$ac_try") 2>&5 | ||
7767 | ac_status=$? | ||
7768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7769 | (exit $ac_status); }; }; then | ||
7770 | { echo "$as_me:$LINENO: result: working" >&5 | ||
7771 | echo "${ECHO_T}working" >&6; } | ||
7772 | else | ||
7773 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7774 | echo "$as_me: failed program was:" >&5 | ||
7775 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7776 | |||
7777 | ( exit $ac_status ) | ||
7778 | { echo "$as_me:$LINENO: result: buggy" >&5 | ||
7779 | echo "${ECHO_T}buggy" >&6; } | ||
7780 | |||
7781 | cat >>confdefs.h <<\_ACEOF | ||
7782 | #define BROKEN_GETADDRINFO 1 | ||
7783 | _ACEOF | ||
7784 | |||
7785 | fi | ||
7786 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7787 | fi | ||
7788 | |||
7789 | |||
7790 | cat >>confdefs.h <<\_ACEOF | ||
7791 | #define SETEUID_BREAKS_SETUID 1 | ||
7792 | _ACEOF | ||
7793 | |||
7794 | cat >>confdefs.h <<\_ACEOF | ||
7795 | #define BROKEN_SETREUID 1 | ||
7796 | _ACEOF | ||
7797 | |||
7798 | cat >>confdefs.h <<\_ACEOF | ||
7799 | #define BROKEN_SETREGID 1 | ||
7800 | _ACEOF | ||
7801 | |||
7802 | |||
7803 | cat >>confdefs.h <<\_ACEOF | ||
7804 | #define BROKEN_GLOB 1 | ||
7805 | _ACEOF | ||
7806 | |||
7807 | |||
7808 | cat >>confdefs.h <<_ACEOF | ||
7809 | #define BIND_8_COMPAT 1 | ||
7810 | _ACEOF | ||
7811 | |||
7812 | |||
7813 | cat >>confdefs.h <<\_ACEOF | ||
7814 | #define SSH_TUN_FREEBSD 1 | ||
7815 | _ACEOF | ||
7816 | |||
7817 | |||
7818 | cat >>confdefs.h <<\_ACEOF | ||
7819 | #define SSH_TUN_COMPAT_AF 1 | ||
7820 | _ACEOF | ||
7821 | |||
7822 | |||
7823 | cat >>confdefs.h <<\_ACEOF | ||
7824 | #define SSH_TUN_PREPEND_AF 1 | ||
7825 | _ACEOF | ||
7826 | |||
7827 | |||
7828 | { echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5 | ||
7829 | echo $ECHO_N "checking whether AU_IPv4 is declared... $ECHO_C" >&6; } | ||
7830 | if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then | ||
7831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7832 | else | ||
7833 | cat >conftest.$ac_ext <<_ACEOF | ||
7834 | /* confdefs.h. */ | ||
7835 | _ACEOF | ||
7836 | cat confdefs.h >>conftest.$ac_ext | ||
7837 | cat >>conftest.$ac_ext <<_ACEOF | ||
7838 | /* end confdefs.h. */ | ||
7839 | $ac_includes_default | ||
7840 | int | ||
7841 | main () | ||
7842 | { | ||
7843 | #ifndef AU_IPv4 | ||
7844 | (void) AU_IPv4; | ||
7845 | #endif | ||
7846 | |||
7847 | ; | ||
7848 | return 0; | ||
7849 | } | ||
7850 | _ACEOF | ||
7851 | rm -f conftest.$ac_objext | ||
7852 | if { (ac_try="$ac_compile" | ||
7853 | case "(($ac_try" in | ||
7854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7855 | *) ac_try_echo=$ac_try;; | ||
7856 | esac | ||
7857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7858 | (eval "$ac_compile") 2>conftest.er1 | ||
7859 | ac_status=$? | ||
7860 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7861 | rm -f conftest.er1 | ||
7862 | cat conftest.err >&5 | ||
7863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7864 | (exit $ac_status); } && { | ||
7865 | test -z "$ac_c_werror_flag" || | ||
7866 | test ! -s conftest.err | ||
7867 | } && test -s conftest.$ac_objext; then | ||
7868 | ac_cv_have_decl_AU_IPv4=yes | ||
7869 | else | ||
7870 | echo "$as_me: failed program was:" >&5 | ||
7871 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7872 | |||
7873 | ac_cv_have_decl_AU_IPv4=no | ||
7874 | fi | ||
7875 | |||
7876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7877 | fi | ||
7878 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5 | ||
7879 | echo "${ECHO_T}$ac_cv_have_decl_AU_IPv4" >&6; } | ||
7880 | if test $ac_cv_have_decl_AU_IPv4 = yes; then | ||
7881 | : | ||
7882 | else | ||
7883 | |||
7884 | cat >>confdefs.h <<\_ACEOF | ||
7885 | #define AU_IPv4 0 | ||
7886 | _ACEOF | ||
7887 | |||
7888 | #include <bsm/audit.h> | ||
7889 | |||
7890 | cat >>confdefs.h <<\_ACEOF | ||
7891 | #define LASTLOG_WRITE_PUTUTXLINE 1 | ||
7892 | _ACEOF | ||
7893 | |||
7894 | |||
7895 | fi | ||
7896 | |||
7897 | ;; | ||
7898 | *-*-dragonfly*) | ||
7899 | SSHDLIBS="$SSHDLIBS -lcrypt" | ||
7900 | ;; | ||
7901 | *-*-haiku*) | ||
7902 | LIBS="$LIBS -lbsd " | ||
7903 | |||
7904 | { echo "$as_me:$LINENO: checking for socket in -lnetwork" >&5 | ||
7905 | echo $ECHO_N "checking for socket in -lnetwork... $ECHO_C" >&6; } | ||
7906 | if test "${ac_cv_lib_network_socket+set}" = set; then | ||
7907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7908 | else | ||
7909 | ac_check_lib_save_LIBS=$LIBS | ||
7910 | LIBS="-lnetwork $LIBS" | ||
7911 | cat >conftest.$ac_ext <<_ACEOF | ||
7912 | /* confdefs.h. */ | ||
7913 | _ACEOF | ||
7914 | cat confdefs.h >>conftest.$ac_ext | ||
7915 | cat >>conftest.$ac_ext <<_ACEOF | ||
7916 | /* end confdefs.h. */ | ||
7917 | |||
7918 | /* Override any GCC internal prototype to avoid an error. | ||
7919 | Use char because int might match the return type of a GCC | ||
7920 | builtin and then its argument prototype would still apply. */ | ||
7921 | #ifdef __cplusplus | ||
7922 | extern "C" | ||
7923 | #endif | ||
7924 | char socket (); | ||
7925 | int | ||
7926 | main () | ||
7927 | { | ||
7928 | return socket (); | ||
7929 | ; | ||
7930 | return 0; | ||
7931 | } | ||
7932 | _ACEOF | ||
7933 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7934 | if { (ac_try="$ac_link" | ||
7935 | case "(($ac_try" in | ||
7936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7937 | *) ac_try_echo=$ac_try;; | ||
7938 | esac | ||
7939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7940 | (eval "$ac_link") 2>conftest.er1 | ||
7941 | ac_status=$? | ||
7942 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7943 | rm -f conftest.er1 | ||
7944 | cat conftest.err >&5 | ||
7945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7946 | (exit $ac_status); } && { | ||
7947 | test -z "$ac_c_werror_flag" || | ||
7948 | test ! -s conftest.err | ||
7949 | } && test -s conftest$ac_exeext && | ||
7950 | $as_test_x conftest$ac_exeext; then | ||
7951 | ac_cv_lib_network_socket=yes | ||
7952 | else | ||
7953 | echo "$as_me: failed program was:" >&5 | ||
7954 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7955 | |||
7956 | ac_cv_lib_network_socket=no | ||
7957 | fi | ||
7958 | |||
7959 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7960 | conftest$ac_exeext conftest.$ac_ext | ||
7961 | LIBS=$ac_check_lib_save_LIBS | ||
7962 | fi | ||
7963 | { echo "$as_me:$LINENO: result: $ac_cv_lib_network_socket" >&5 | ||
7964 | echo "${ECHO_T}$ac_cv_lib_network_socket" >&6; } | ||
7965 | if test $ac_cv_lib_network_socket = yes; then | ||
7966 | cat >>confdefs.h <<_ACEOF | ||
7967 | #define HAVE_LIBNETWORK 1 | ||
7968 | _ACEOF | ||
7969 | |||
7970 | LIBS="-lnetwork $LIBS" | ||
7971 | |||
7972 | fi | ||
7973 | |||
7974 | cat >>confdefs.h <<\_ACEOF | ||
7975 | #define HAVE_U_INT64_T 1 | ||
7976 | _ACEOF | ||
7977 | |||
7978 | MANTYPE=man | ||
7979 | ;; | ||
7980 | *-*-hpux*) | ||
7981 | # first we define all of the options common to all HP-UX releases | ||
7982 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
7983 | IPADDR_IN_DISPLAY=yes | ||
7984 | cat >>confdefs.h <<\_ACEOF | ||
7985 | #define USE_PIPES 1 | ||
7986 | _ACEOF | ||
7987 | |||
7988 | |||
7989 | cat >>confdefs.h <<\_ACEOF | ||
7990 | #define LOGIN_NO_ENDOPT 1 | ||
7991 | _ACEOF | ||
7992 | |||
7993 | cat >>confdefs.h <<\_ACEOF | ||
7994 | #define LOGIN_NEEDS_UTMPX 1 | ||
7995 | _ACEOF | ||
7996 | |||
7997 | |||
7998 | cat >>confdefs.h <<\_ACEOF | ||
7999 | #define LOCKED_PASSWD_STRING "*" | ||
8000 | _ACEOF | ||
8001 | |||
8002 | cat >>confdefs.h <<\_ACEOF | ||
8003 | #define SPT_TYPE SPT_PSTAT | ||
8004 | _ACEOF | ||
8005 | |||
8006 | MAIL="/var/mail/username" | ||
8007 | LIBS="$LIBS -lsec" | ||
8008 | |||
8009 | { echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
8010 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; } | ||
8011 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
8012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8013 | else | ||
8014 | ac_check_lib_save_LIBS=$LIBS | ||
8015 | LIBS="-lxnet $LIBS" | ||
8016 | cat >conftest.$ac_ext <<_ACEOF | ||
8017 | /* confdefs.h. */ | ||
8018 | _ACEOF | ||
8019 | cat confdefs.h >>conftest.$ac_ext | ||
8020 | cat >>conftest.$ac_ext <<_ACEOF | ||
8021 | /* end confdefs.h. */ | ||
8022 | |||
8023 | /* Override any GCC internal prototype to avoid an error. | ||
8024 | Use char because int might match the return type of a GCC | ||
8025 | builtin and then its argument prototype would still apply. */ | ||
8026 | #ifdef __cplusplus | ||
8027 | extern "C" | ||
8028 | #endif | ||
8029 | char t_error (); | ||
8030 | int | ||
8031 | main () | ||
8032 | { | ||
8033 | return t_error (); | ||
8034 | ; | ||
8035 | return 0; | ||
8036 | } | ||
8037 | _ACEOF | ||
8038 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8039 | if { (ac_try="$ac_link" | ||
8040 | case "(($ac_try" in | ||
8041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8042 | *) ac_try_echo=$ac_try;; | ||
8043 | esac | ||
8044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8045 | (eval "$ac_link") 2>conftest.er1 | ||
8046 | ac_status=$? | ||
8047 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8048 | rm -f conftest.er1 | ||
8049 | cat conftest.err >&5 | ||
8050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8051 | (exit $ac_status); } && { | ||
8052 | test -z "$ac_c_werror_flag" || | ||
8053 | test ! -s conftest.err | ||
8054 | } && test -s conftest$ac_exeext && | ||
8055 | $as_test_x conftest$ac_exeext; then | ||
8056 | ac_cv_lib_xnet_t_error=yes | ||
8057 | else | ||
8058 | echo "$as_me: failed program was:" >&5 | ||
8059 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8060 | |||
8061 | ac_cv_lib_xnet_t_error=no | ||
8062 | fi | ||
8063 | |||
8064 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8065 | conftest$ac_exeext conftest.$ac_ext | ||
8066 | LIBS=$ac_check_lib_save_LIBS | ||
8067 | fi | ||
8068 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
8069 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; } | ||
8070 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
8071 | cat >>confdefs.h <<_ACEOF | ||
8072 | #define HAVE_LIBXNET 1 | ||
8073 | _ACEOF | ||
8074 | |||
8075 | LIBS="-lxnet $LIBS" | ||
8076 | |||
8077 | else | ||
8078 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
8079 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
8080 | { (exit 1); exit 1; }; } | ||
8081 | fi | ||
8082 | |||
8083 | |||
8084 | # next, we define all of the options specific to major releases | ||
8085 | case "$host" in | ||
8086 | *-*-hpux10*) | ||
8087 | if test -z "$GCC"; then | ||
8088 | CFLAGS="$CFLAGS -Ae" | ||
8089 | fi | ||
8090 | ;; | ||
8091 | *-*-hpux11*) | ||
8092 | |||
8093 | cat >>confdefs.h <<\_ACEOF | ||
8094 | #define PAM_SUN_CODEBASE 1 | ||
8095 | _ACEOF | ||
8096 | |||
8097 | |||
8098 | cat >>confdefs.h <<\_ACEOF | ||
8099 | #define DISABLE_UTMP 1 | ||
8100 | _ACEOF | ||
8101 | |||
8102 | |||
8103 | cat >>confdefs.h <<\_ACEOF | ||
8104 | #define USE_BTMP 1 | ||
8105 | _ACEOF | ||
8106 | |||
8107 | check_for_hpux_broken_getaddrinfo=1 | ||
8108 | check_for_conflicting_getspnam=1 | ||
8109 | ;; | ||
8110 | esac | ||
8111 | |||
8112 | # lastly, we define options specific to minor releases | ||
8113 | case "$host" in | ||
8114 | *-*-hpux10.26) | ||
8115 | |||
8116 | cat >>confdefs.h <<\_ACEOF | ||
8117 | #define HAVE_SECUREWARE 1 | ||
8118 | _ACEOF | ||
8119 | |||
8120 | disable_ptmx_check=yes | ||
8121 | LIBS="$LIBS -lsecpw" | ||
8122 | ;; | ||
8123 | esac | ||
8124 | ;; | ||
8125 | *-*-irix5*) | ||
8126 | PATH="$PATH:/usr/etc" | ||
8127 | |||
8128 | cat >>confdefs.h <<\_ACEOF | ||
8129 | #define BROKEN_INET_NTOA 1 | ||
8130 | _ACEOF | ||
8131 | |||
8132 | cat >>confdefs.h <<\_ACEOF | ||
8133 | #define SETEUID_BREAKS_SETUID 1 | ||
8134 | _ACEOF | ||
8135 | |||
8136 | cat >>confdefs.h <<\_ACEOF | ||
8137 | #define BROKEN_SETREUID 1 | ||
8138 | _ACEOF | ||
8139 | |||
8140 | cat >>confdefs.h <<\_ACEOF | ||
8141 | #define BROKEN_SETREGID 1 | ||
8142 | _ACEOF | ||
8143 | |||
8144 | |||
8145 | cat >>confdefs.h <<\_ACEOF | ||
8146 | #define WITH_ABBREV_NO_TTY 1 | ||
8147 | _ACEOF | ||
8148 | |||
8149 | cat >>confdefs.h <<\_ACEOF | ||
8150 | #define LOCKED_PASSWD_STRING "*LK*" | ||
8151 | _ACEOF | ||
8152 | |||
8153 | ;; | ||
8154 | *-*-irix6*) | ||
8155 | PATH="$PATH:/usr/etc" | ||
8156 | |||
8157 | cat >>confdefs.h <<\_ACEOF | ||
8158 | #define WITH_IRIX_ARRAY 1 | ||
8159 | _ACEOF | ||
8160 | |||
8161 | |||
8162 | cat >>confdefs.h <<\_ACEOF | ||
8163 | #define WITH_IRIX_PROJECT 1 | ||
8164 | _ACEOF | ||
8165 | |||
8166 | |||
8167 | cat >>confdefs.h <<\_ACEOF | ||
8168 | #define WITH_IRIX_AUDIT 1 | ||
8169 | _ACEOF | ||
8170 | |||
8171 | { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5 | ||
8172 | echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; } | ||
8173 | if test "${ac_cv_func_jlimit_startjob+set}" = set; then | ||
8174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8175 | else | ||
8176 | cat >conftest.$ac_ext <<_ACEOF | ||
8177 | /* confdefs.h. */ | ||
8178 | _ACEOF | ||
8179 | cat confdefs.h >>conftest.$ac_ext | ||
8180 | cat >>conftest.$ac_ext <<_ACEOF | ||
8181 | /* end confdefs.h. */ | ||
8182 | /* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob. | ||
8183 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8184 | #define jlimit_startjob innocuous_jlimit_startjob | ||
8185 | |||
8186 | /* System header to define __stub macros and hopefully few prototypes, | ||
8187 | which can conflict with char jlimit_startjob (); below. | ||
8188 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8189 | <limits.h> exists even on freestanding compilers. */ | ||
8190 | |||
8191 | #ifdef __STDC__ | ||
8192 | # include <limits.h> | ||
8193 | #else | ||
8194 | # include <assert.h> | ||
8195 | #endif | ||
8196 | |||
8197 | #undef jlimit_startjob | ||
8198 | |||
8199 | /* Override any GCC internal prototype to avoid an error. | ||
8200 | Use char because int might match the return type of a GCC | ||
8201 | builtin and then its argument prototype would still apply. */ | ||
8202 | #ifdef __cplusplus | ||
8203 | extern "C" | ||
8204 | #endif | ||
8205 | char jlimit_startjob (); | ||
8206 | /* The GNU C library defines this for functions which it implements | ||
8207 | to always fail with ENOSYS. Some functions are actually named | ||
8208 | something starting with __ and the normal name is an alias. */ | ||
8209 | #if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob | ||
8210 | choke me | ||
8211 | #endif | ||
8212 | |||
8213 | int | ||
8214 | main () | ||
8215 | { | ||
8216 | return jlimit_startjob (); | ||
8217 | ; | ||
8218 | return 0; | ||
8219 | } | ||
8220 | _ACEOF | ||
8221 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8222 | if { (ac_try="$ac_link" | ||
8223 | case "(($ac_try" in | ||
8224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8225 | *) ac_try_echo=$ac_try;; | ||
8226 | esac | ||
8227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8228 | (eval "$ac_link") 2>conftest.er1 | ||
8229 | ac_status=$? | ||
8230 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8231 | rm -f conftest.er1 | ||
8232 | cat conftest.err >&5 | ||
8233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8234 | (exit $ac_status); } && { | ||
8235 | test -z "$ac_c_werror_flag" || | ||
8236 | test ! -s conftest.err | ||
8237 | } && test -s conftest$ac_exeext && | ||
8238 | $as_test_x conftest$ac_exeext; then | ||
8239 | ac_cv_func_jlimit_startjob=yes | ||
8240 | else | ||
8241 | echo "$as_me: failed program was:" >&5 | ||
8242 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8243 | |||
8244 | ac_cv_func_jlimit_startjob=no | ||
8245 | fi | ||
8246 | |||
8247 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8248 | conftest$ac_exeext conftest.$ac_ext | ||
8249 | fi | ||
8250 | { echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5 | ||
8251 | echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; } | ||
8252 | if test $ac_cv_func_jlimit_startjob = yes; then | ||
8253 | |||
8254 | cat >>confdefs.h <<\_ACEOF | ||
8255 | #define WITH_IRIX_JOBS 1 | ||
8256 | _ACEOF | ||
8257 | |||
8258 | fi | ||
8259 | |||
8260 | cat >>confdefs.h <<\_ACEOF | ||
8261 | #define BROKEN_INET_NTOA 1 | ||
8262 | _ACEOF | ||
8263 | |||
8264 | cat >>confdefs.h <<\_ACEOF | ||
8265 | #define SETEUID_BREAKS_SETUID 1 | ||
8266 | _ACEOF | ||
8267 | |||
8268 | cat >>confdefs.h <<\_ACEOF | ||
8269 | #define BROKEN_SETREUID 1 | ||
8270 | _ACEOF | ||
8271 | |||
8272 | cat >>confdefs.h <<\_ACEOF | ||
8273 | #define BROKEN_SETREGID 1 | ||
8274 | _ACEOF | ||
8275 | |||
8276 | |||
8277 | cat >>confdefs.h <<\_ACEOF | ||
8278 | #define BROKEN_UPDWTMPX 1 | ||
8279 | _ACEOF | ||
8280 | |||
8281 | cat >>confdefs.h <<\_ACEOF | ||
8282 | #define WITH_ABBREV_NO_TTY 1 | ||
8283 | _ACEOF | ||
8284 | |||
8285 | cat >>confdefs.h <<\_ACEOF | ||
8286 | #define LOCKED_PASSWD_STRING "*LK*" | ||
8287 | _ACEOF | ||
8288 | |||
8289 | ;; | ||
8290 | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | ||
8291 | check_for_libcrypt_later=1 | ||
8292 | cat >>confdefs.h <<\_ACEOF | ||
8293 | #define PAM_TTY_KLUDGE 1 | ||
8294 | _ACEOF | ||
8295 | |||
8296 | cat >>confdefs.h <<\_ACEOF | ||
8297 | #define LOCKED_PASSWD_PREFIX "!" | ||
8298 | _ACEOF | ||
8299 | |||
8300 | cat >>confdefs.h <<\_ACEOF | ||
8301 | #define SPT_TYPE SPT_REUSEARGV | ||
8302 | _ACEOF | ||
8303 | |||
8304 | |||
8305 | cat >>confdefs.h <<\_ACEOF | ||
8306 | #define _PATH_BTMP "/var/log/btmp" | ||
8307 | _ACEOF | ||
8308 | |||
8309 | |||
8310 | cat >>confdefs.h <<\_ACEOF | ||
8311 | #define USE_BTMP 1 | ||
8312 | _ACEOF | ||
8313 | |||
8314 | ;; | ||
8315 | *-*-linux*) | ||
8316 | no_dev_ptmx=1 | ||
8317 | check_for_libcrypt_later=1 | ||
8318 | check_for_openpty_ctty_bug=1 | ||
8319 | |||
8320 | cat >>confdefs.h <<\_ACEOF | ||
8321 | #define PAM_TTY_KLUDGE 1 | ||
8322 | _ACEOF | ||
8323 | |||
8324 | |||
8325 | cat >>confdefs.h <<\_ACEOF | ||
8326 | #define LOCKED_PASSWD_PREFIX "!" | ||
8327 | _ACEOF | ||
8328 | |||
8329 | cat >>confdefs.h <<\_ACEOF | ||
8330 | #define SPT_TYPE SPT_REUSEARGV | ||
8331 | _ACEOF | ||
8332 | |||
8333 | |||
8334 | cat >>confdefs.h <<\_ACEOF | ||
8335 | #define LINK_OPNOTSUPP_ERRNO EPERM | ||
8336 | _ACEOF | ||
8337 | |||
8338 | |||
8339 | cat >>confdefs.h <<\_ACEOF | ||
8340 | #define _PATH_BTMP "/var/log/btmp" | ||
8341 | _ACEOF | ||
8342 | |||
8343 | cat >>confdefs.h <<\_ACEOF | ||
8344 | #define USE_BTMP 1 | ||
8345 | _ACEOF | ||
8346 | |||
8347 | |||
8348 | cat >>confdefs.h <<\_ACEOF | ||
8349 | #define LINUX_OOM_ADJUST 1 | ||
8350 | _ACEOF | ||
8351 | |||
8352 | inet6_default_4in6=yes | ||
8353 | case `uname -r` in | ||
8354 | 1.*|2.0.*) | ||
8355 | |||
8356 | cat >>confdefs.h <<\_ACEOF | ||
8357 | #define BROKEN_CMSG_TYPE 1 | ||
8358 | _ACEOF | ||
8359 | |||
8360 | ;; | ||
8361 | esac | ||
8362 | # tun(4) forwarding compat code | ||
8363 | |||
8364 | for ac_header in linux/if_tun.h | ||
8365 | do | ||
8366 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
8367 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8368 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
8369 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
8370 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8372 | fi | ||
8373 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
8374 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
8375 | echo "${ECHO_T}$ac_res" >&6; } | ||
8376 | else | ||
8377 | # Is the header compilable? | ||
8378 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
8379 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
8380 | cat >conftest.$ac_ext <<_ACEOF | ||
8381 | /* confdefs.h. */ | ||
8382 | _ACEOF | ||
8383 | cat confdefs.h >>conftest.$ac_ext | ||
8384 | cat >>conftest.$ac_ext <<_ACEOF | ||
8385 | /* end confdefs.h. */ | ||
8386 | $ac_includes_default | ||
8387 | #include <$ac_header> | ||
8388 | _ACEOF | ||
8389 | rm -f conftest.$ac_objext | ||
8390 | if { (ac_try="$ac_compile" | ||
8391 | case "(($ac_try" in | ||
8392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8393 | *) ac_try_echo=$ac_try;; | ||
8394 | esac | ||
8395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8396 | (eval "$ac_compile") 2>conftest.er1 | ||
8397 | ac_status=$? | ||
8398 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8399 | rm -f conftest.er1 | ||
8400 | cat conftest.err >&5 | ||
8401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8402 | (exit $ac_status); } && { | ||
8403 | test -z "$ac_c_werror_flag" || | ||
8404 | test ! -s conftest.err | ||
8405 | } && test -s conftest.$ac_objext; then | ||
8406 | ac_header_compiler=yes | ||
8407 | else | ||
8408 | echo "$as_me: failed program was:" >&5 | ||
8409 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8410 | |||
8411 | ac_header_compiler=no | ||
8412 | fi | ||
8413 | |||
8414 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8415 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
8416 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
8417 | |||
8418 | # Is the header present? | ||
8419 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
8420 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
8421 | cat >conftest.$ac_ext <<_ACEOF | ||
8422 | /* confdefs.h. */ | ||
8423 | _ACEOF | ||
8424 | cat confdefs.h >>conftest.$ac_ext | ||
8425 | cat >>conftest.$ac_ext <<_ACEOF | ||
8426 | /* end confdefs.h. */ | ||
8427 | #include <$ac_header> | ||
8428 | _ACEOF | ||
8429 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
8430 | case "(($ac_try" in | ||
8431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8432 | *) ac_try_echo=$ac_try;; | ||
8433 | esac | ||
8434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8435 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
8436 | ac_status=$? | ||
8437 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8438 | rm -f conftest.er1 | ||
8439 | cat conftest.err >&5 | ||
8440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8441 | (exit $ac_status); } >/dev/null && { | ||
8442 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
8443 | test ! -s conftest.err | ||
8444 | }; then | ||
8445 | ac_header_preproc=yes | ||
8446 | else | ||
8447 | echo "$as_me: failed program was:" >&5 | ||
8448 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8449 | |||
8450 | ac_header_preproc=no | ||
8451 | fi | ||
8452 | |||
8453 | rm -f conftest.err conftest.$ac_ext | ||
8454 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
8455 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
8456 | |||
8457 | # So? What about this header? | ||
8458 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
8459 | yes:no: ) | ||
8460 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
8461 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
8462 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
8463 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
8464 | ac_header_preproc=yes | ||
8465 | ;; | ||
8466 | no:yes:* ) | ||
8467 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
8468 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
8469 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
8470 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
8471 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
8472 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
8473 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
8474 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
8475 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
8476 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
8477 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
8478 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
8479 | ( cat <<\_ASBOX | ||
8480 | ## ------------------------------------------- ## | ||
8481 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
8482 | ## ------------------------------------------- ## | ||
8483 | _ASBOX | ||
8484 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
8485 | ;; | ||
8486 | esac | ||
8487 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
8488 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
8489 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8491 | else | ||
8492 | eval "$as_ac_Header=\$ac_header_preproc" | ||
8493 | fi | ||
8494 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
8495 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
8496 | echo "${ECHO_T}$ac_res" >&6; } | ||
8497 | |||
8498 | fi | ||
8499 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
8500 | cat >>confdefs.h <<_ACEOF | ||
8501 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
8502 | _ACEOF | ||
8503 | |||
8504 | fi | ||
8505 | |||
8506 | done | ||
8507 | |||
8508 | if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then | ||
8509 | |||
8510 | cat >>confdefs.h <<\_ACEOF | ||
8511 | #define SSH_TUN_LINUX 1 | ||
8512 | _ACEOF | ||
8513 | |||
8514 | |||
8515 | cat >>confdefs.h <<\_ACEOF | ||
8516 | #define SSH_TUN_COMPAT_AF 1 | ||
8517 | _ACEOF | ||
8518 | |||
8519 | |||
8520 | cat >>confdefs.h <<\_ACEOF | ||
8521 | #define SSH_TUN_PREPEND_AF 1 | ||
8522 | _ACEOF | ||
8523 | |||
8524 | fi | ||
8525 | ;; | ||
8526 | mips-sony-bsd|mips-sony-newsos4) | ||
8527 | |||
8528 | cat >>confdefs.h <<\_ACEOF | ||
8529 | #define NEED_SETPGRP 1 | ||
8530 | _ACEOF | ||
8531 | |||
8532 | SONY=1 | ||
8533 | ;; | ||
8534 | *-*-netbsd*) | ||
8535 | check_for_libcrypt_before=1 | ||
8536 | if test "x$withval" != "xno" ; then | ||
8537 | need_dash_r=1 | ||
8538 | fi | ||
8539 | |||
8540 | cat >>confdefs.h <<\_ACEOF | ||
8541 | #define SSH_TUN_FREEBSD 1 | ||
8542 | _ACEOF | ||
8543 | |||
8544 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8545 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
8546 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
8547 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8549 | fi | ||
8550 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
8551 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
8552 | else | ||
8553 | # Is the header compilable? | ||
8554 | { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5 | ||
8555 | echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; } | ||
8556 | cat >conftest.$ac_ext <<_ACEOF | ||
8557 | /* confdefs.h. */ | ||
8558 | _ACEOF | ||
8559 | cat confdefs.h >>conftest.$ac_ext | ||
8560 | cat >>conftest.$ac_ext <<_ACEOF | ||
8561 | /* end confdefs.h. */ | ||
8562 | $ac_includes_default | ||
8563 | #include <net/if_tap.h> | ||
8564 | _ACEOF | ||
8565 | rm -f conftest.$ac_objext | ||
8566 | if { (ac_try="$ac_compile" | ||
8567 | case "(($ac_try" in | ||
8568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8569 | *) ac_try_echo=$ac_try;; | ||
8570 | esac | ||
8571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8572 | (eval "$ac_compile") 2>conftest.er1 | ||
8573 | ac_status=$? | ||
8574 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8575 | rm -f conftest.er1 | ||
8576 | cat conftest.err >&5 | ||
8577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8578 | (exit $ac_status); } && { | ||
8579 | test -z "$ac_c_werror_flag" || | ||
8580 | test ! -s conftest.err | ||
8581 | } && test -s conftest.$ac_objext; then | ||
8582 | ac_header_compiler=yes | ||
8583 | else | ||
8584 | echo "$as_me: failed program was:" >&5 | ||
8585 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8586 | |||
8587 | ac_header_compiler=no | ||
8588 | fi | ||
8589 | |||
8590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8591 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
8592 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
8593 | |||
8594 | # Is the header present? | ||
8595 | { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5 | ||
8596 | echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; } | ||
8597 | cat >conftest.$ac_ext <<_ACEOF | ||
8598 | /* confdefs.h. */ | ||
8599 | _ACEOF | ||
8600 | cat confdefs.h >>conftest.$ac_ext | ||
8601 | cat >>conftest.$ac_ext <<_ACEOF | ||
8602 | /* end confdefs.h. */ | ||
8603 | #include <net/if_tap.h> | ||
8604 | _ACEOF | ||
8605 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
8606 | case "(($ac_try" in | ||
8607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8608 | *) ac_try_echo=$ac_try;; | ||
8609 | esac | ||
8610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8611 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
8612 | ac_status=$? | ||
8613 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8614 | rm -f conftest.er1 | ||
8615 | cat conftest.err >&5 | ||
8616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8617 | (exit $ac_status); } >/dev/null && { | ||
8618 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
8619 | test ! -s conftest.err | ||
8620 | }; then | ||
8621 | ac_header_preproc=yes | ||
8622 | else | ||
8623 | echo "$as_me: failed program was:" >&5 | ||
8624 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8625 | |||
8626 | ac_header_preproc=no | ||
8627 | fi | ||
8628 | |||
8629 | rm -f conftest.err conftest.$ac_ext | ||
8630 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
8631 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
8632 | |||
8633 | # So? What about this header? | ||
8634 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
8635 | yes:no: ) | ||
8636 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
8637 | echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
8638 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5 | ||
8639 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;} | ||
8640 | ac_header_preproc=yes | ||
8641 | ;; | ||
8642 | no:yes:* ) | ||
8643 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5 | ||
8644 | echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;} | ||
8645 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5 | ||
8646 | echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;} | ||
8647 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5 | ||
8648 | echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;} | ||
8649 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
8650 | echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
8651 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5 | ||
8652 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;} | ||
8653 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5 | ||
8654 | echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;} | ||
8655 | ( cat <<\_ASBOX | ||
8656 | ## ------------------------------------------- ## | ||
8657 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
8658 | ## ------------------------------------------- ## | ||
8659 | _ASBOX | ||
8660 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
8661 | ;; | ||
8662 | esac | ||
8663 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
8664 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
8665 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8667 | else | ||
8668 | ac_cv_header_net_if_tap_h=$ac_header_preproc | ||
8669 | fi | ||
8670 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
8671 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
8672 | |||
8673 | fi | ||
8674 | if test $ac_cv_header_net_if_tap_h = yes; then | ||
8675 | : | ||
8676 | else | ||
8677 | |||
8678 | cat >>confdefs.h <<\_ACEOF | ||
8679 | #define SSH_TUN_NO_L2 1 | ||
8680 | _ACEOF | ||
8681 | |||
8682 | fi | ||
8683 | |||
8684 | |||
8685 | |||
8686 | cat >>confdefs.h <<\_ACEOF | ||
8687 | #define SSH_TUN_PREPEND_AF 1 | ||
8688 | _ACEOF | ||
8689 | |||
8690 | ;; | ||
8691 | *-*-freebsd*) | ||
8692 | check_for_libcrypt_later=1 | ||
8693 | |||
8694 | cat >>confdefs.h <<\_ACEOF | ||
8695 | #define LOCKED_PASSWD_PREFIX "*LOCKED*" | ||
8696 | _ACEOF | ||
8697 | |||
8698 | |||
8699 | cat >>confdefs.h <<\_ACEOF | ||
8700 | #define SSH_TUN_FREEBSD 1 | ||
8701 | _ACEOF | ||
8702 | |||
8703 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8704 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
8705 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
8706 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8708 | fi | ||
8709 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
8710 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
8711 | else | ||
8712 | # Is the header compilable? | ||
8713 | { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5 | ||
8714 | echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; } | ||
8715 | cat >conftest.$ac_ext <<_ACEOF | ||
8716 | /* confdefs.h. */ | ||
8717 | _ACEOF | ||
8718 | cat confdefs.h >>conftest.$ac_ext | ||
8719 | cat >>conftest.$ac_ext <<_ACEOF | ||
8720 | /* end confdefs.h. */ | ||
8721 | $ac_includes_default | ||
8722 | #include <net/if_tap.h> | ||
8723 | _ACEOF | ||
8724 | rm -f conftest.$ac_objext | ||
8725 | if { (ac_try="$ac_compile" | ||
8726 | case "(($ac_try" in | ||
8727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8728 | *) ac_try_echo=$ac_try;; | ||
8729 | esac | ||
8730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8731 | (eval "$ac_compile") 2>conftest.er1 | ||
8732 | ac_status=$? | ||
8733 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8734 | rm -f conftest.er1 | ||
8735 | cat conftest.err >&5 | ||
8736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8737 | (exit $ac_status); } && { | ||
8738 | test -z "$ac_c_werror_flag" || | ||
8739 | test ! -s conftest.err | ||
8740 | } && test -s conftest.$ac_objext; then | ||
8741 | ac_header_compiler=yes | ||
8742 | else | ||
8743 | echo "$as_me: failed program was:" >&5 | ||
8744 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8745 | |||
8746 | ac_header_compiler=no | ||
8747 | fi | ||
8748 | |||
8749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8750 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
8751 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
8752 | |||
8753 | # Is the header present? | ||
8754 | { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5 | ||
8755 | echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; } | ||
8756 | cat >conftest.$ac_ext <<_ACEOF | ||
8757 | /* confdefs.h. */ | ||
8758 | _ACEOF | ||
8759 | cat confdefs.h >>conftest.$ac_ext | ||
8760 | cat >>conftest.$ac_ext <<_ACEOF | ||
8761 | /* end confdefs.h. */ | ||
8762 | #include <net/if_tap.h> | ||
8763 | _ACEOF | ||
8764 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
8765 | case "(($ac_try" in | ||
8766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8767 | *) ac_try_echo=$ac_try;; | ||
8768 | esac | ||
8769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8770 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
8771 | ac_status=$? | ||
8772 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8773 | rm -f conftest.er1 | ||
8774 | cat conftest.err >&5 | ||
8775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8776 | (exit $ac_status); } >/dev/null && { | ||
8777 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
8778 | test ! -s conftest.err | ||
8779 | }; then | ||
8780 | ac_header_preproc=yes | ||
8781 | else | ||
8782 | echo "$as_me: failed program was:" >&5 | ||
8783 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8784 | |||
8785 | ac_header_preproc=no | ||
8786 | fi | ||
8787 | |||
8788 | rm -f conftest.err conftest.$ac_ext | ||
8789 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
8790 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
8791 | |||
8792 | # So? What about this header? | ||
8793 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
8794 | yes:no: ) | ||
8795 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
8796 | echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
8797 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5 | ||
8798 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;} | ||
8799 | ac_header_preproc=yes | ||
8800 | ;; | ||
8801 | no:yes:* ) | ||
8802 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5 | ||
8803 | echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;} | ||
8804 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5 | ||
8805 | echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;} | ||
8806 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5 | ||
8807 | echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;} | ||
8808 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
8809 | echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
8810 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5 | ||
8811 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;} | ||
8812 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5 | ||
8813 | echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;} | ||
8814 | ( cat <<\_ASBOX | ||
8815 | ## ------------------------------------------- ## | ||
8816 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
8817 | ## ------------------------------------------- ## | ||
8818 | _ASBOX | ||
8819 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
8820 | ;; | ||
8821 | esac | ||
8822 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
8823 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
8824 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8826 | else | ||
8827 | ac_cv_header_net_if_tap_h=$ac_header_preproc | ||
8828 | fi | ||
8829 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
8830 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
8831 | |||
8832 | fi | ||
8833 | if test $ac_cv_header_net_if_tap_h = yes; then | ||
8834 | : | ||
8835 | else | ||
8836 | |||
8837 | cat >>confdefs.h <<\_ACEOF | ||
8838 | #define SSH_TUN_NO_L2 1 | ||
8839 | _ACEOF | ||
8840 | |||
8841 | fi | ||
8842 | |||
8843 | |||
8844 | |||
8845 | cat >>confdefs.h <<\_ACEOF | ||
8846 | #define BROKEN_GLOB 1 | ||
8847 | _ACEOF | ||
8848 | |||
8849 | ;; | ||
8850 | *-*-bsdi*) | ||
8851 | cat >>confdefs.h <<\_ACEOF | ||
8852 | #define SETEUID_BREAKS_SETUID 1 | ||
8853 | _ACEOF | ||
8854 | |||
8855 | cat >>confdefs.h <<\_ACEOF | ||
8856 | #define BROKEN_SETREUID 1 | ||
8857 | _ACEOF | ||
8858 | |||
8859 | cat >>confdefs.h <<\_ACEOF | ||
8860 | #define BROKEN_SETREGID 1 | ||
8861 | _ACEOF | ||
8862 | |||
8863 | ;; | ||
8864 | *-next-*) | ||
8865 | conf_lastlog_location="/usr/adm/lastlog" | ||
8866 | conf_utmp_location=/etc/utmp | ||
8867 | conf_wtmp_location=/usr/adm/wtmp | ||
8868 | MAIL=/usr/spool/mail | ||
8869 | |||
8870 | cat >>confdefs.h <<\_ACEOF | ||
8871 | #define HAVE_NEXT 1 | ||
8872 | _ACEOF | ||
8873 | |||
8874 | cat >>confdefs.h <<\_ACEOF | ||
8875 | #define BROKEN_REALPATH 1 | ||
8876 | _ACEOF | ||
8877 | |||
8878 | cat >>confdefs.h <<\_ACEOF | ||
8879 | #define USE_PIPES 1 | ||
8880 | _ACEOF | ||
8881 | |||
8882 | |||
8883 | cat >>confdefs.h <<\_ACEOF | ||
8884 | #define BROKEN_SAVED_UIDS 1 | ||
8885 | _ACEOF | ||
8886 | |||
8887 | ;; | ||
8888 | *-*-openbsd*) | ||
8889 | |||
8890 | cat >>confdefs.h <<\_ACEOF | ||
8891 | #define HAVE_ATTRIBUTE__SENTINEL__ 1 | ||
8892 | _ACEOF | ||
8893 | |||
8894 | |||
8895 | cat >>confdefs.h <<\_ACEOF | ||
8896 | #define HAVE_ATTRIBUTE__BOUNDED__ 1 | ||
8897 | _ACEOF | ||
8898 | |||
8899 | |||
8900 | cat >>confdefs.h <<\_ACEOF | ||
8901 | #define SSH_TUN_OPENBSD 1 | ||
8902 | _ACEOF | ||
8903 | |||
8904 | |||
8905 | cat >>confdefs.h <<\_ACEOF | ||
8906 | #define SYSLOG_R_SAFE_IN_SIGHAND 1 | ||
8907 | _ACEOF | ||
8908 | |||
8909 | ;; | ||
8910 | *-*-solaris*) | ||
8911 | if test "x$withval" != "xno" ; then | ||
8912 | need_dash_r=1 | ||
8913 | fi | ||
8914 | cat >>confdefs.h <<\_ACEOF | ||
8915 | #define PAM_SUN_CODEBASE 1 | ||
8916 | _ACEOF | ||
8917 | |||
8918 | cat >>confdefs.h <<\_ACEOF | ||
8919 | #define LOGIN_NEEDS_UTMPX 1 | ||
8920 | _ACEOF | ||
8921 | |||
8922 | |||
8923 | cat >>confdefs.h <<\_ACEOF | ||
8924 | #define LOGIN_NEEDS_TERM 1 | ||
8925 | _ACEOF | ||
8926 | |||
8927 | cat >>confdefs.h <<\_ACEOF | ||
8928 | #define PAM_TTY_KLUDGE 1 | ||
8929 | _ACEOF | ||
8930 | |||
8931 | |||
8932 | cat >>confdefs.h <<\_ACEOF | ||
8933 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 | ||
8934 | _ACEOF | ||
8935 | |||
8936 | cat >>confdefs.h <<\_ACEOF | ||
8937 | #define LOCKED_PASSWD_STRING "*LK*" | ||
8938 | _ACEOF | ||
8939 | |||
8940 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. | ||
8941 | |||
8942 | cat >>confdefs.h <<\_ACEOF | ||
8943 | #define SSHD_ACQUIRES_CTTY 1 | ||
8944 | _ACEOF | ||
8945 | |||
8946 | |||
8947 | cat >>confdefs.h <<\_ACEOF | ||
8948 | #define PASSWD_NEEDS_USERNAME 1 | ||
8949 | _ACEOF | ||
8950 | |||
8951 | |||
8952 | cat >>confdefs.h <<\_ACEOF | ||
8953 | #define BROKEN_TCGETATTR_ICANON 1 | ||
8954 | _ACEOF | ||
8955 | |||
8956 | external_path_file=/etc/default/login | ||
8957 | # hardwire lastlog location (can't detect it on some versions) | ||
8958 | conf_lastlog_location="/var/adm/lastlog" | ||
8959 | { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
8960 | echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; } | ||
8961 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
8962 | if test "$sol2ver" -ge 8; then | ||
8963 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
8964 | echo "${ECHO_T}yes" >&6; } | ||
8965 | cat >>confdefs.h <<\_ACEOF | ||
8966 | #define DISABLE_UTMP 1 | ||
8967 | _ACEOF | ||
8968 | |||
8969 | |||
8970 | cat >>confdefs.h <<\_ACEOF | ||
8971 | #define DISABLE_WTMP 1 | ||
8972 | _ACEOF | ||
8973 | |||
8974 | else | ||
8975 | { echo "$as_me:$LINENO: result: no" >&5 | ||
8976 | echo "${ECHO_T}no" >&6; } | ||
8977 | fi | ||
8978 | |||
8979 | # Check whether --with-solaris-contracts was given. | ||
8980 | if test "${with_solaris_contracts+set}" = set; then | ||
8981 | withval=$with_solaris_contracts; | ||
8982 | { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5 | ||
8983 | echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; } | ||
8984 | if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then | ||
8985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8986 | else | ||
8987 | ac_check_lib_save_LIBS=$LIBS | ||
8988 | LIBS="-lcontract $LIBS" | ||
8989 | cat >conftest.$ac_ext <<_ACEOF | ||
8990 | /* confdefs.h. */ | ||
8991 | _ACEOF | ||
8992 | cat confdefs.h >>conftest.$ac_ext | ||
8993 | cat >>conftest.$ac_ext <<_ACEOF | ||
8994 | /* end confdefs.h. */ | ||
8995 | |||
8996 | /* Override any GCC internal prototype to avoid an error. | ||
8997 | Use char because int might match the return type of a GCC | ||
8998 | builtin and then its argument prototype would still apply. */ | ||
8999 | #ifdef __cplusplus | ||
9000 | extern "C" | ||
9001 | #endif | ||
9002 | char ct_tmpl_activate (); | ||
9003 | int | ||
9004 | main () | ||
9005 | { | ||
9006 | return ct_tmpl_activate (); | ||
9007 | ; | ||
9008 | return 0; | ||
9009 | } | ||
9010 | _ACEOF | ||
9011 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9012 | if { (ac_try="$ac_link" | ||
9013 | case "(($ac_try" in | ||
9014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9015 | *) ac_try_echo=$ac_try;; | ||
9016 | esac | ||
9017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9018 | (eval "$ac_link") 2>conftest.er1 | ||
9019 | ac_status=$? | ||
9020 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9021 | rm -f conftest.er1 | ||
9022 | cat conftest.err >&5 | ||
9023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9024 | (exit $ac_status); } && { | ||
9025 | test -z "$ac_c_werror_flag" || | ||
9026 | test ! -s conftest.err | ||
9027 | } && test -s conftest$ac_exeext && | ||
9028 | $as_test_x conftest$ac_exeext; then | ||
9029 | ac_cv_lib_contract_ct_tmpl_activate=yes | ||
9030 | else | ||
9031 | echo "$as_me: failed program was:" >&5 | ||
9032 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9033 | |||
9034 | ac_cv_lib_contract_ct_tmpl_activate=no | ||
9035 | fi | ||
9036 | |||
9037 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9038 | conftest$ac_exeext conftest.$ac_ext | ||
9039 | LIBS=$ac_check_lib_save_LIBS | ||
9040 | fi | ||
9041 | { echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5 | ||
9042 | echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; } | ||
9043 | if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then | ||
9044 | |||
9045 | cat >>confdefs.h <<\_ACEOF | ||
9046 | #define USE_SOLARIS_PROCESS_CONTRACTS 1 | ||
9047 | _ACEOF | ||
9048 | |||
9049 | SSHDLIBS="$SSHDLIBS -lcontract" | ||
9050 | |||
9051 | SPC_MSG="yes" | ||
9052 | fi | ||
9053 | |||
9054 | |||
9055 | fi | ||
9056 | |||
9057 | |||
9058 | # Check whether --with-solaris-projects was given. | ||
9059 | if test "${with_solaris_projects+set}" = set; then | ||
9060 | withval=$with_solaris_projects; | ||
9061 | { echo "$as_me:$LINENO: checking for setproject in -lproject" >&5 | ||
9062 | echo $ECHO_N "checking for setproject in -lproject... $ECHO_C" >&6; } | ||
9063 | if test "${ac_cv_lib_project_setproject+set}" = set; then | ||
9064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9065 | else | ||
9066 | ac_check_lib_save_LIBS=$LIBS | ||
9067 | LIBS="-lproject $LIBS" | ||
9068 | cat >conftest.$ac_ext <<_ACEOF | ||
9069 | /* confdefs.h. */ | ||
9070 | _ACEOF | ||
9071 | cat confdefs.h >>conftest.$ac_ext | ||
9072 | cat >>conftest.$ac_ext <<_ACEOF | ||
9073 | /* end confdefs.h. */ | ||
9074 | |||
9075 | /* Override any GCC internal prototype to avoid an error. | ||
9076 | Use char because int might match the return type of a GCC | ||
9077 | builtin and then its argument prototype would still apply. */ | ||
9078 | #ifdef __cplusplus | ||
9079 | extern "C" | ||
9080 | #endif | ||
9081 | char setproject (); | ||
9082 | int | ||
9083 | main () | ||
9084 | { | ||
9085 | return setproject (); | ||
9086 | ; | ||
9087 | return 0; | ||
9088 | } | ||
9089 | _ACEOF | ||
9090 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9091 | if { (ac_try="$ac_link" | ||
9092 | case "(($ac_try" in | ||
9093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9094 | *) ac_try_echo=$ac_try;; | ||
9095 | esac | ||
9096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9097 | (eval "$ac_link") 2>conftest.er1 | ||
9098 | ac_status=$? | ||
9099 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9100 | rm -f conftest.er1 | ||
9101 | cat conftest.err >&5 | ||
9102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9103 | (exit $ac_status); } && { | ||
9104 | test -z "$ac_c_werror_flag" || | ||
9105 | test ! -s conftest.err | ||
9106 | } && test -s conftest$ac_exeext && | ||
9107 | $as_test_x conftest$ac_exeext; then | ||
9108 | ac_cv_lib_project_setproject=yes | ||
9109 | else | ||
9110 | echo "$as_me: failed program was:" >&5 | ||
9111 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9112 | |||
9113 | ac_cv_lib_project_setproject=no | ||
9114 | fi | ||
9115 | |||
9116 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9117 | conftest$ac_exeext conftest.$ac_ext | ||
9118 | LIBS=$ac_check_lib_save_LIBS | ||
9119 | fi | ||
9120 | { echo "$as_me:$LINENO: result: $ac_cv_lib_project_setproject" >&5 | ||
9121 | echo "${ECHO_T}$ac_cv_lib_project_setproject" >&6; } | ||
9122 | if test $ac_cv_lib_project_setproject = yes; then | ||
9123 | |||
9124 | cat >>confdefs.h <<\_ACEOF | ||
9125 | #define USE_SOLARIS_PROJECTS 1 | ||
9126 | _ACEOF | ||
9127 | |||
9128 | SSHDLIBS="$SSHDLIBS -lproject" | ||
9129 | |||
9130 | SP_MSG="yes" | ||
9131 | fi | ||
9132 | |||
9133 | |||
9134 | fi | ||
9135 | |||
9136 | ;; | ||
9137 | *-*-sunos4*) | ||
9138 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
9139 | |||
9140 | for ac_func in getpwanam | ||
9141 | do | ||
9142 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9143 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
9144 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
9145 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9147 | else | ||
9148 | cat >conftest.$ac_ext <<_ACEOF | ||
9149 | /* confdefs.h. */ | ||
9150 | _ACEOF | ||
9151 | cat confdefs.h >>conftest.$ac_ext | ||
9152 | cat >>conftest.$ac_ext <<_ACEOF | ||
9153 | /* end confdefs.h. */ | ||
9154 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
9155 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9156 | #define $ac_func innocuous_$ac_func | ||
9157 | |||
9158 | /* System header to define __stub macros and hopefully few prototypes, | ||
9159 | which can conflict with char $ac_func (); below. | ||
9160 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9161 | <limits.h> exists even on freestanding compilers. */ | ||
9162 | |||
9163 | #ifdef __STDC__ | ||
9164 | # include <limits.h> | ||
9165 | #else | ||
9166 | # include <assert.h> | ||
9167 | #endif | ||
9168 | |||
9169 | #undef $ac_func | ||
9170 | |||
9171 | /* Override any GCC internal prototype to avoid an error. | ||
9172 | Use char because int might match the return type of a GCC | ||
9173 | builtin and then its argument prototype would still apply. */ | ||
9174 | #ifdef __cplusplus | ||
9175 | extern "C" | ||
9176 | #endif | ||
9177 | char $ac_func (); | ||
9178 | /* The GNU C library defines this for functions which it implements | ||
9179 | to always fail with ENOSYS. Some functions are actually named | ||
9180 | something starting with __ and the normal name is an alias. */ | ||
9181 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
9182 | choke me | ||
9183 | #endif | ||
9184 | |||
9185 | int | ||
9186 | main () | ||
9187 | { | ||
9188 | return $ac_func (); | ||
9189 | ; | ||
9190 | return 0; | ||
9191 | } | ||
9192 | _ACEOF | ||
9193 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9194 | if { (ac_try="$ac_link" | ||
9195 | case "(($ac_try" in | ||
9196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9197 | *) ac_try_echo=$ac_try;; | ||
9198 | esac | ||
9199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9200 | (eval "$ac_link") 2>conftest.er1 | ||
9201 | ac_status=$? | ||
9202 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9203 | rm -f conftest.er1 | ||
9204 | cat conftest.err >&5 | ||
9205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9206 | (exit $ac_status); } && { | ||
9207 | test -z "$ac_c_werror_flag" || | ||
9208 | test ! -s conftest.err | ||
9209 | } && test -s conftest$ac_exeext && | ||
9210 | $as_test_x conftest$ac_exeext; then | ||
9211 | eval "$as_ac_var=yes" | ||
9212 | else | ||
9213 | echo "$as_me: failed program was:" >&5 | ||
9214 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9215 | |||
9216 | eval "$as_ac_var=no" | ||
9217 | fi | ||
9218 | |||
9219 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9220 | conftest$ac_exeext conftest.$ac_ext | ||
9221 | fi | ||
9222 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
9223 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9224 | echo "${ECHO_T}$ac_res" >&6; } | ||
9225 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9226 | cat >>confdefs.h <<_ACEOF | ||
9227 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9228 | _ACEOF | ||
9229 | |||
9230 | fi | ||
9231 | done | ||
9232 | |||
9233 | cat >>confdefs.h <<\_ACEOF | ||
9234 | #define PAM_SUN_CODEBASE 1 | ||
9235 | _ACEOF | ||
9236 | |||
9237 | conf_utmp_location=/etc/utmp | ||
9238 | conf_wtmp_location=/var/adm/wtmp | ||
9239 | conf_lastlog_location=/var/adm/lastlog | ||
9240 | cat >>confdefs.h <<\_ACEOF | ||
9241 | #define USE_PIPES 1 | ||
9242 | _ACEOF | ||
9243 | |||
9244 | ;; | ||
9245 | *-ncr-sysv*) | ||
9246 | LIBS="$LIBS -lc89" | ||
9247 | cat >>confdefs.h <<\_ACEOF | ||
9248 | #define USE_PIPES 1 | ||
9249 | _ACEOF | ||
9250 | |||
9251 | cat >>confdefs.h <<\_ACEOF | ||
9252 | #define SSHD_ACQUIRES_CTTY 1 | ||
9253 | _ACEOF | ||
9254 | |||
9255 | cat >>confdefs.h <<\_ACEOF | ||
9256 | #define SETEUID_BREAKS_SETUID 1 | ||
9257 | _ACEOF | ||
9258 | |||
9259 | cat >>confdefs.h <<\_ACEOF | ||
9260 | #define BROKEN_SETREUID 1 | ||
9261 | _ACEOF | ||
9262 | |||
9263 | cat >>confdefs.h <<\_ACEOF | ||
9264 | #define BROKEN_SETREGID 1 | ||
9265 | _ACEOF | ||
9266 | |||
9267 | ;; | ||
9268 | *-sni-sysv*) | ||
9269 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
9270 | |||
9271 | { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 | ||
9272 | echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; } | ||
9273 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then | ||
9274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9275 | else | ||
9276 | ac_check_lib_save_LIBS=$LIBS | ||
9277 | LIBS="-ldl $LIBS" | ||
9278 | cat >conftest.$ac_ext <<_ACEOF | ||
9279 | /* confdefs.h. */ | ||
9280 | _ACEOF | ||
9281 | cat confdefs.h >>conftest.$ac_ext | ||
9282 | cat >>conftest.$ac_ext <<_ACEOF | ||
9283 | /* end confdefs.h. */ | ||
9284 | |||
9285 | /* Override any GCC internal prototype to avoid an error. | ||
9286 | Use char because int might match the return type of a GCC | ||
9287 | builtin and then its argument prototype would still apply. */ | ||
9288 | #ifdef __cplusplus | ||
9289 | extern "C" | ||
9290 | #endif | ||
9291 | char dlsym (); | ||
9292 | int | ||
9293 | main () | ||
9294 | { | ||
9295 | return dlsym (); | ||
9296 | ; | ||
9297 | return 0; | ||
9298 | } | ||
9299 | _ACEOF | ||
9300 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9301 | if { (ac_try="$ac_link" | ||
9302 | case "(($ac_try" in | ||
9303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9304 | *) ac_try_echo=$ac_try;; | ||
9305 | esac | ||
9306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9307 | (eval "$ac_link") 2>conftest.er1 | ||
9308 | ac_status=$? | ||
9309 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9310 | rm -f conftest.er1 | ||
9311 | cat conftest.err >&5 | ||
9312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9313 | (exit $ac_status); } && { | ||
9314 | test -z "$ac_c_werror_flag" || | ||
9315 | test ! -s conftest.err | ||
9316 | } && test -s conftest$ac_exeext && | ||
9317 | $as_test_x conftest$ac_exeext; then | ||
9318 | ac_cv_lib_dl_dlsym=yes | ||
9319 | else | ||
9320 | echo "$as_me: failed program was:" >&5 | ||
9321 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9322 | |||
9323 | ac_cv_lib_dl_dlsym=no | ||
9324 | fi | ||
9325 | |||
9326 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9327 | conftest$ac_exeext conftest.$ac_ext | ||
9328 | LIBS=$ac_check_lib_save_LIBS | ||
9329 | fi | ||
9330 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 | ||
9331 | echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; } | ||
9332 | if test $ac_cv_lib_dl_dlsym = yes; then | ||
9333 | cat >>confdefs.h <<_ACEOF | ||
9334 | #define HAVE_LIBDL 1 | ||
9335 | _ACEOF | ||
9336 | |||
9337 | LIBS="-ldl $LIBS" | ||
9338 | |||
9339 | fi | ||
9340 | |||
9341 | # -lresolv needs to be at the end of LIBS or DNS lookups break | ||
9342 | { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 | ||
9343 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; } | ||
9344 | if test "${ac_cv_lib_resolv_res_query+set}" = set; then | ||
9345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9346 | else | ||
9347 | ac_check_lib_save_LIBS=$LIBS | ||
9348 | LIBS="-lresolv $LIBS" | ||
9349 | cat >conftest.$ac_ext <<_ACEOF | ||
9350 | /* confdefs.h. */ | ||
9351 | _ACEOF | ||
9352 | cat confdefs.h >>conftest.$ac_ext | ||
9353 | cat >>conftest.$ac_ext <<_ACEOF | ||
9354 | /* end confdefs.h. */ | ||
9355 | |||
9356 | /* Override any GCC internal prototype to avoid an error. | ||
9357 | Use char because int might match the return type of a GCC | ||
9358 | builtin and then its argument prototype would still apply. */ | ||
9359 | #ifdef __cplusplus | ||
9360 | extern "C" | ||
9361 | #endif | ||
9362 | char res_query (); | ||
9363 | int | ||
9364 | main () | ||
9365 | { | ||
9366 | return res_query (); | ||
9367 | ; | ||
9368 | return 0; | ||
9369 | } | ||
9370 | _ACEOF | ||
9371 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9372 | if { (ac_try="$ac_link" | ||
9373 | case "(($ac_try" in | ||
9374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9375 | *) ac_try_echo=$ac_try;; | ||
9376 | esac | ||
9377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9378 | (eval "$ac_link") 2>conftest.er1 | ||
9379 | ac_status=$? | ||
9380 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9381 | rm -f conftest.er1 | ||
9382 | cat conftest.err >&5 | ||
9383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9384 | (exit $ac_status); } && { | ||
9385 | test -z "$ac_c_werror_flag" || | ||
9386 | test ! -s conftest.err | ||
9387 | } && test -s conftest$ac_exeext && | ||
9388 | $as_test_x conftest$ac_exeext; then | ||
9389 | ac_cv_lib_resolv_res_query=yes | ||
9390 | else | ||
9391 | echo "$as_me: failed program was:" >&5 | ||
9392 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9393 | |||
9394 | ac_cv_lib_resolv_res_query=no | ||
9395 | fi | ||
9396 | |||
9397 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9398 | conftest$ac_exeext conftest.$ac_ext | ||
9399 | LIBS=$ac_check_lib_save_LIBS | ||
9400 | fi | ||
9401 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5 | ||
9402 | echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; } | ||
9403 | if test $ac_cv_lib_resolv_res_query = yes; then | ||
9404 | LIBS="$LIBS -lresolv" | ||
9405 | fi | ||
9406 | |||
9407 | IPADDR_IN_DISPLAY=yes | ||
9408 | cat >>confdefs.h <<\_ACEOF | ||
9409 | #define USE_PIPES 1 | ||
9410 | _ACEOF | ||
9411 | |||
9412 | cat >>confdefs.h <<\_ACEOF | ||
9413 | #define IP_TOS_IS_BROKEN 1 | ||
9414 | _ACEOF | ||
9415 | |||
9416 | cat >>confdefs.h <<\_ACEOF | ||
9417 | #define SETEUID_BREAKS_SETUID 1 | ||
9418 | _ACEOF | ||
9419 | |||
9420 | cat >>confdefs.h <<\_ACEOF | ||
9421 | #define BROKEN_SETREUID 1 | ||
9422 | _ACEOF | ||
9423 | |||
9424 | cat >>confdefs.h <<\_ACEOF | ||
9425 | #define BROKEN_SETREGID 1 | ||
9426 | _ACEOF | ||
9427 | |||
9428 | cat >>confdefs.h <<\_ACEOF | ||
9429 | #define SSHD_ACQUIRES_CTTY 1 | ||
9430 | _ACEOF | ||
9431 | |||
9432 | external_path_file=/etc/default/login | ||
9433 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
9434 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
9435 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
9436 | ;; | ||
9437 | # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. | ||
9438 | *-*-sysv4.2*) | ||
9439 | cat >>confdefs.h <<\_ACEOF | ||
9440 | #define USE_PIPES 1 | ||
9441 | _ACEOF | ||
9442 | |||
9443 | cat >>confdefs.h <<\_ACEOF | ||
9444 | #define SETEUID_BREAKS_SETUID 1 | ||
9445 | _ACEOF | ||
9446 | |||
9447 | cat >>confdefs.h <<\_ACEOF | ||
9448 | #define BROKEN_SETREUID 1 | ||
9449 | _ACEOF | ||
9450 | |||
9451 | cat >>confdefs.h <<\_ACEOF | ||
9452 | #define BROKEN_SETREGID 1 | ||
9453 | _ACEOF | ||
9454 | |||
9455 | |||
9456 | cat >>confdefs.h <<\_ACEOF | ||
9457 | #define PASSWD_NEEDS_USERNAME 1 | ||
9458 | _ACEOF | ||
9459 | |||
9460 | cat >>confdefs.h <<\_ACEOF | ||
9461 | #define LOCKED_PASSWD_STRING "*LK*" | ||
9462 | _ACEOF | ||
9463 | |||
9464 | ;; | ||
9465 | # UnixWare 7.x, OpenUNIX 8 | ||
9466 | *-*-sysv5*) | ||
9467 | CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf" | ||
9468 | |||
9469 | cat >>confdefs.h <<\_ACEOF | ||
9470 | #define UNIXWARE_LONG_PASSWORDS 1 | ||
9471 | _ACEOF | ||
9472 | |||
9473 | cat >>confdefs.h <<\_ACEOF | ||
9474 | #define USE_PIPES 1 | ||
9475 | _ACEOF | ||
9476 | |||
9477 | cat >>confdefs.h <<\_ACEOF | ||
9478 | #define SETEUID_BREAKS_SETUID 1 | ||
9479 | _ACEOF | ||
9480 | |||
9481 | cat >>confdefs.h <<\_ACEOF | ||
9482 | #define BROKEN_GETADDRINFO 1 | ||
9483 | _ACEOF | ||
9484 | |||
9485 | cat >>confdefs.h <<\_ACEOF | ||
9486 | #define BROKEN_SETREUID 1 | ||
9487 | _ACEOF | ||
9488 | |||
9489 | cat >>confdefs.h <<\_ACEOF | ||
9490 | #define BROKEN_SETREGID 1 | ||
9491 | _ACEOF | ||
9492 | |||
9493 | cat >>confdefs.h <<\_ACEOF | ||
9494 | #define PASSWD_NEEDS_USERNAME 1 | ||
9495 | _ACEOF | ||
9496 | |||
9497 | case "$host" in | ||
9498 | *-*-sysv5SCO_SV*) # SCO OpenServer 6.x | ||
9499 | TEST_SHELL=/u95/bin/sh | ||
9500 | |||
9501 | cat >>confdefs.h <<\_ACEOF | ||
9502 | #define BROKEN_LIBIAF 1 | ||
9503 | _ACEOF | ||
9504 | |||
9505 | cat >>confdefs.h <<\_ACEOF | ||
9506 | #define BROKEN_UPDWTMPX 1 | ||
9507 | _ACEOF | ||
9508 | |||
9509 | { echo "$as_me:$LINENO: checking for getluid in -lprot" >&5 | ||
9510 | echo $ECHO_N "checking for getluid in -lprot... $ECHO_C" >&6; } | ||
9511 | if test "${ac_cv_lib_prot_getluid+set}" = set; then | ||
9512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9513 | else | ||
9514 | ac_check_lib_save_LIBS=$LIBS | ||
9515 | LIBS="-lprot $LIBS" | ||
9516 | cat >conftest.$ac_ext <<_ACEOF | ||
9517 | /* confdefs.h. */ | ||
9518 | _ACEOF | ||
9519 | cat confdefs.h >>conftest.$ac_ext | ||
9520 | cat >>conftest.$ac_ext <<_ACEOF | ||
9521 | /* end confdefs.h. */ | ||
9522 | |||
9523 | /* Override any GCC internal prototype to avoid an error. | ||
9524 | Use char because int might match the return type of a GCC | ||
9525 | builtin and then its argument prototype would still apply. */ | ||
9526 | #ifdef __cplusplus | ||
9527 | extern "C" | ||
9528 | #endif | ||
9529 | char getluid (); | ||
9530 | int | ||
9531 | main () | ||
9532 | { | ||
9533 | return getluid (); | ||
9534 | ; | ||
9535 | return 0; | ||
9536 | } | ||
9537 | _ACEOF | ||
9538 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9539 | if { (ac_try="$ac_link" | ||
9540 | case "(($ac_try" in | ||
9541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9542 | *) ac_try_echo=$ac_try;; | ||
9543 | esac | ||
9544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9545 | (eval "$ac_link") 2>conftest.er1 | ||
9546 | ac_status=$? | ||
9547 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9548 | rm -f conftest.er1 | ||
9549 | cat conftest.err >&5 | ||
9550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9551 | (exit $ac_status); } && { | ||
9552 | test -z "$ac_c_werror_flag" || | ||
9553 | test ! -s conftest.err | ||
9554 | } && test -s conftest$ac_exeext && | ||
9555 | $as_test_x conftest$ac_exeext; then | ||
9556 | ac_cv_lib_prot_getluid=yes | ||
9557 | else | ||
9558 | echo "$as_me: failed program was:" >&5 | ||
9559 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9560 | |||
9561 | ac_cv_lib_prot_getluid=no | ||
9562 | fi | ||
9563 | |||
9564 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9565 | conftest$ac_exeext conftest.$ac_ext | ||
9566 | LIBS=$ac_check_lib_save_LIBS | ||
9567 | fi | ||
9568 | { echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getluid" >&5 | ||
9569 | echo "${ECHO_T}$ac_cv_lib_prot_getluid" >&6; } | ||
9570 | if test $ac_cv_lib_prot_getluid = yes; then | ||
9571 | LIBS="$LIBS -lprot" | ||
9572 | |||
9573 | |||
9574 | for ac_func in getluid setluid | ||
9575 | do | ||
9576 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9577 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
9578 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
9579 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9581 | else | ||
9582 | cat >conftest.$ac_ext <<_ACEOF | ||
9583 | /* confdefs.h. */ | ||
9584 | _ACEOF | ||
9585 | cat confdefs.h >>conftest.$ac_ext | ||
9586 | cat >>conftest.$ac_ext <<_ACEOF | ||
9587 | /* end confdefs.h. */ | ||
9588 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
9589 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9590 | #define $ac_func innocuous_$ac_func | ||
9591 | |||
9592 | /* System header to define __stub macros and hopefully few prototypes, | ||
9593 | which can conflict with char $ac_func (); below. | ||
9594 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9595 | <limits.h> exists even on freestanding compilers. */ | ||
9596 | |||
9597 | #ifdef __STDC__ | ||
9598 | # include <limits.h> | ||
9599 | #else | ||
9600 | # include <assert.h> | ||
9601 | #endif | ||
9602 | |||
9603 | #undef $ac_func | ||
9604 | |||
9605 | /* Override any GCC internal prototype to avoid an error. | ||
9606 | Use char because int might match the return type of a GCC | ||
9607 | builtin and then its argument prototype would still apply. */ | ||
9608 | #ifdef __cplusplus | ||
9609 | extern "C" | ||
9610 | #endif | ||
9611 | char $ac_func (); | ||
9612 | /* The GNU C library defines this for functions which it implements | ||
9613 | to always fail with ENOSYS. Some functions are actually named | ||
9614 | something starting with __ and the normal name is an alias. */ | ||
9615 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
9616 | choke me | ||
9617 | #endif | ||
9618 | |||
9619 | int | ||
9620 | main () | ||
9621 | { | ||
9622 | return $ac_func (); | ||
9623 | ; | ||
9624 | return 0; | ||
9625 | } | ||
9626 | _ACEOF | ||
9627 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9628 | if { (ac_try="$ac_link" | ||
9629 | case "(($ac_try" in | ||
9630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9631 | *) ac_try_echo=$ac_try;; | ||
9632 | esac | ||
9633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9634 | (eval "$ac_link") 2>conftest.er1 | ||
9635 | ac_status=$? | ||
9636 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9637 | rm -f conftest.er1 | ||
9638 | cat conftest.err >&5 | ||
9639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9640 | (exit $ac_status); } && { | ||
9641 | test -z "$ac_c_werror_flag" || | ||
9642 | test ! -s conftest.err | ||
9643 | } && test -s conftest$ac_exeext && | ||
9644 | $as_test_x conftest$ac_exeext; then | ||
9645 | eval "$as_ac_var=yes" | ||
9646 | else | ||
9647 | echo "$as_me: failed program was:" >&5 | ||
9648 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9649 | |||
9650 | eval "$as_ac_var=no" | ||
9651 | fi | ||
9652 | |||
9653 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9654 | conftest$ac_exeext conftest.$ac_ext | ||
9655 | fi | ||
9656 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
9657 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9658 | echo "${ECHO_T}$ac_res" >&6; } | ||
9659 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9660 | cat >>confdefs.h <<_ACEOF | ||
9661 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9662 | _ACEOF | ||
9663 | |||
9664 | fi | ||
9665 | done | ||
9666 | |||
9667 | cat >>confdefs.h <<\_ACEOF | ||
9668 | #define HAVE_SECUREWARE 1 | ||
9669 | _ACEOF | ||
9670 | |||
9671 | cat >>confdefs.h <<\_ACEOF | ||
9672 | #define DISABLE_SHADOW 1 | ||
9673 | _ACEOF | ||
9674 | |||
9675 | |||
9676 | fi | ||
9677 | |||
9678 | ;; | ||
9679 | *) cat >>confdefs.h <<\_ACEOF | ||
9680 | #define LOCKED_PASSWD_STRING "*LK*" | ||
9681 | _ACEOF | ||
9682 | |||
9683 | check_for_libcrypt_later=1 | ||
9684 | ;; | ||
9685 | esac | ||
9686 | ;; | ||
9687 | *-*-sysv*) | ||
9688 | ;; | ||
9689 | # SCO UNIX and OEM versions of SCO UNIX | ||
9690 | *-*-sco3.2v4*) | ||
9691 | { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5 | ||
9692 | echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;} | ||
9693 | { (exit 1); exit 1; }; } | ||
9694 | ;; | ||
9695 | # SCO OpenServer 5.x | ||
9696 | *-*-sco3.2v5*) | ||
9697 | if test -z "$GCC"; then | ||
9698 | CFLAGS="$CFLAGS -belf" | ||
9699 | fi | ||
9700 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
9701 | no_dev_ptmx=1 | ||
9702 | cat >>confdefs.h <<\_ACEOF | ||
9703 | #define USE_PIPES 1 | ||
9704 | _ACEOF | ||
9705 | |||
9706 | cat >>confdefs.h <<\_ACEOF | ||
9707 | #define HAVE_SECUREWARE 1 | ||
9708 | _ACEOF | ||
9709 | |||
9710 | cat >>confdefs.h <<\_ACEOF | ||
9711 | #define DISABLE_SHADOW 1 | ||
9712 | _ACEOF | ||
9713 | |||
9714 | cat >>confdefs.h <<\_ACEOF | ||
9715 | #define DISABLE_FD_PASSING 1 | ||
9716 | _ACEOF | ||
9717 | |||
9718 | cat >>confdefs.h <<\_ACEOF | ||
9719 | #define SETEUID_BREAKS_SETUID 1 | ||
9720 | _ACEOF | ||
9721 | |||
9722 | cat >>confdefs.h <<\_ACEOF | ||
9723 | #define BROKEN_GETADDRINFO 1 | ||
9724 | _ACEOF | ||
9725 | |||
9726 | cat >>confdefs.h <<\_ACEOF | ||
9727 | #define BROKEN_SETREUID 1 | ||
9728 | _ACEOF | ||
9729 | |||
9730 | cat >>confdefs.h <<\_ACEOF | ||
9731 | #define BROKEN_SETREGID 1 | ||
9732 | _ACEOF | ||
9733 | |||
9734 | cat >>confdefs.h <<\_ACEOF | ||
9735 | #define WITH_ABBREV_NO_TTY 1 | ||
9736 | _ACEOF | ||
9737 | |||
9738 | cat >>confdefs.h <<\_ACEOF | ||
9739 | #define BROKEN_UPDWTMPX 1 | ||
9740 | _ACEOF | ||
9741 | |||
9742 | cat >>confdefs.h <<\_ACEOF | ||
9743 | #define PASSWD_NEEDS_USERNAME 1 | ||
9744 | _ACEOF | ||
9745 | |||
9746 | |||
9747 | |||
9748 | for ac_func in getluid setluid | ||
9749 | do | ||
9750 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9751 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
9752 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
9753 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9755 | else | ||
9756 | cat >conftest.$ac_ext <<_ACEOF | ||
9757 | /* confdefs.h. */ | ||
9758 | _ACEOF | ||
9759 | cat confdefs.h >>conftest.$ac_ext | ||
9760 | cat >>conftest.$ac_ext <<_ACEOF | ||
9761 | /* end confdefs.h. */ | ||
9762 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
9763 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9764 | #define $ac_func innocuous_$ac_func | ||
9765 | |||
9766 | /* System header to define __stub macros and hopefully few prototypes, | ||
9767 | which can conflict with char $ac_func (); below. | ||
9768 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9769 | <limits.h> exists even on freestanding compilers. */ | ||
9770 | |||
9771 | #ifdef __STDC__ | ||
9772 | # include <limits.h> | ||
9773 | #else | ||
9774 | # include <assert.h> | ||
9775 | #endif | ||
9776 | |||
9777 | #undef $ac_func | ||
9778 | |||
9779 | /* Override any GCC internal prototype to avoid an error. | ||
9780 | Use char because int might match the return type of a GCC | ||
9781 | builtin and then its argument prototype would still apply. */ | ||
9782 | #ifdef __cplusplus | ||
9783 | extern "C" | ||
9784 | #endif | ||
9785 | char $ac_func (); | ||
9786 | /* The GNU C library defines this for functions which it implements | ||
9787 | to always fail with ENOSYS. Some functions are actually named | ||
9788 | something starting with __ and the normal name is an alias. */ | ||
9789 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
9790 | choke me | ||
9791 | #endif | ||
9792 | |||
9793 | int | ||
9794 | main () | ||
9795 | { | ||
9796 | return $ac_func (); | ||
9797 | ; | ||
9798 | return 0; | ||
9799 | } | ||
9800 | _ACEOF | ||
9801 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9802 | if { (ac_try="$ac_link" | ||
9803 | case "(($ac_try" in | ||
9804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9805 | *) ac_try_echo=$ac_try;; | ||
9806 | esac | ||
9807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9808 | (eval "$ac_link") 2>conftest.er1 | ||
9809 | ac_status=$? | ||
9810 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9811 | rm -f conftest.er1 | ||
9812 | cat conftest.err >&5 | ||
9813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9814 | (exit $ac_status); } && { | ||
9815 | test -z "$ac_c_werror_flag" || | ||
9816 | test ! -s conftest.err | ||
9817 | } && test -s conftest$ac_exeext && | ||
9818 | $as_test_x conftest$ac_exeext; then | ||
9819 | eval "$as_ac_var=yes" | ||
9820 | else | ||
9821 | echo "$as_me: failed program was:" >&5 | ||
9822 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9823 | |||
9824 | eval "$as_ac_var=no" | ||
9825 | fi | ||
9826 | |||
9827 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9828 | conftest$ac_exeext conftest.$ac_ext | ||
9829 | fi | ||
9830 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
9831 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9832 | echo "${ECHO_T}$ac_res" >&6; } | ||
9833 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9834 | cat >>confdefs.h <<_ACEOF | ||
9835 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9836 | _ACEOF | ||
9837 | |||
9838 | fi | ||
9839 | done | ||
9840 | |||
9841 | MANTYPE=man | ||
9842 | TEST_SHELL=ksh | ||
9843 | ;; | ||
9844 | *-*-unicosmk*) | ||
9845 | |||
9846 | cat >>confdefs.h <<\_ACEOF | ||
9847 | #define NO_SSH_LASTLOG 1 | ||
9848 | _ACEOF | ||
9849 | |||
9850 | cat >>confdefs.h <<\_ACEOF | ||
9851 | #define SETEUID_BREAKS_SETUID 1 | ||
9852 | _ACEOF | ||
9853 | |||
9854 | cat >>confdefs.h <<\_ACEOF | ||
9855 | #define BROKEN_SETREUID 1 | ||
9856 | _ACEOF | ||
9857 | |||
9858 | cat >>confdefs.h <<\_ACEOF | ||
9859 | #define BROKEN_SETREGID 1 | ||
9860 | _ACEOF | ||
9861 | |||
9862 | cat >>confdefs.h <<\_ACEOF | ||
9863 | #define USE_PIPES 1 | ||
9864 | _ACEOF | ||
9865 | |||
9866 | cat >>confdefs.h <<\_ACEOF | ||
9867 | #define DISABLE_FD_PASSING 1 | ||
9868 | _ACEOF | ||
9869 | |||
9870 | LDFLAGS="$LDFLAGS" | ||
9871 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
9872 | MANTYPE=cat | ||
9873 | ;; | ||
9874 | *-*-unicosmp*) | ||
9875 | cat >>confdefs.h <<\_ACEOF | ||
9876 | #define SETEUID_BREAKS_SETUID 1 | ||
9877 | _ACEOF | ||
9878 | |||
9879 | cat >>confdefs.h <<\_ACEOF | ||
9880 | #define BROKEN_SETREUID 1 | ||
9881 | _ACEOF | ||
9882 | |||
9883 | cat >>confdefs.h <<\_ACEOF | ||
9884 | #define BROKEN_SETREGID 1 | ||
9885 | _ACEOF | ||
9886 | |||
9887 | cat >>confdefs.h <<\_ACEOF | ||
9888 | #define WITH_ABBREV_NO_TTY 1 | ||
9889 | _ACEOF | ||
9890 | |||
9891 | cat >>confdefs.h <<\_ACEOF | ||
9892 | #define USE_PIPES 1 | ||
9893 | _ACEOF | ||
9894 | |||
9895 | cat >>confdefs.h <<\_ACEOF | ||
9896 | #define DISABLE_FD_PASSING 1 | ||
9897 | _ACEOF | ||
9898 | |||
9899 | LDFLAGS="$LDFLAGS" | ||
9900 | LIBS="$LIBS -lgen -lacid -ldb" | ||
9901 | MANTYPE=cat | ||
9902 | ;; | ||
9903 | *-*-unicos*) | ||
9904 | cat >>confdefs.h <<\_ACEOF | ||
9905 | #define SETEUID_BREAKS_SETUID 1 | ||
9906 | _ACEOF | ||
9907 | |||
9908 | cat >>confdefs.h <<\_ACEOF | ||
9909 | #define BROKEN_SETREUID 1 | ||
9910 | _ACEOF | ||
9911 | |||
9912 | cat >>confdefs.h <<\_ACEOF | ||
9913 | #define BROKEN_SETREGID 1 | ||
9914 | _ACEOF | ||
9915 | |||
9916 | cat >>confdefs.h <<\_ACEOF | ||
9917 | #define USE_PIPES 1 | ||
9918 | _ACEOF | ||
9919 | |||
9920 | cat >>confdefs.h <<\_ACEOF | ||
9921 | #define DISABLE_FD_PASSING 1 | ||
9922 | _ACEOF | ||
9923 | |||
9924 | cat >>confdefs.h <<\_ACEOF | ||
9925 | #define NO_SSH_LASTLOG 1 | ||
9926 | _ACEOF | ||
9927 | |||
9928 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
9929 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
9930 | MANTYPE=cat | ||
9931 | ;; | ||
9932 | *-dec-osf*) | ||
9933 | { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5 | ||
9934 | echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; } | ||
9935 | no_osfsia="" | ||
9936 | |||
9937 | # Check whether --with-osfsia was given. | ||
9938 | if test "${with_osfsia+set}" = set; then | ||
9939 | withval=$with_osfsia; | ||
9940 | if test "x$withval" = "xno" ; then | ||
9941 | { echo "$as_me:$LINENO: result: disabled" >&5 | ||
9942 | echo "${ECHO_T}disabled" >&6; } | ||
9943 | no_osfsia=1 | ||
9944 | fi | ||
9945 | |||
9946 | fi | ||
9947 | |||
9948 | if test -z "$no_osfsia" ; then | ||
9949 | if test -f /etc/sia/matrix.conf; then | ||
9950 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
9951 | echo "${ECHO_T}yes" >&6; } | ||
9952 | |||
9953 | cat >>confdefs.h <<\_ACEOF | ||
9954 | #define HAVE_OSF_SIA 1 | ||
9955 | _ACEOF | ||
9956 | |||
9957 | |||
9958 | cat >>confdefs.h <<\_ACEOF | ||
9959 | #define DISABLE_LOGIN 1 | ||
9960 | _ACEOF | ||
9961 | |||
9962 | cat >>confdefs.h <<\_ACEOF | ||
9963 | #define DISABLE_FD_PASSING 1 | ||
9964 | _ACEOF | ||
9965 | |||
9966 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
9967 | SIA_MSG="yes" | ||
9968 | else | ||
9969 | { echo "$as_me:$LINENO: result: no" >&5 | ||
9970 | echo "${ECHO_T}no" >&6; } | ||
9971 | |||
9972 | cat >>confdefs.h <<\_ACEOF | ||
9973 | #define LOCKED_PASSWD_SUBSTR "Nologin" | ||
9974 | _ACEOF | ||
9975 | |||
9976 | fi | ||
9977 | fi | ||
9978 | cat >>confdefs.h <<\_ACEOF | ||
9979 | #define BROKEN_GETADDRINFO 1 | ||
9980 | _ACEOF | ||
9981 | |||
9982 | cat >>confdefs.h <<\_ACEOF | ||
9983 | #define SETEUID_BREAKS_SETUID 1 | ||
9984 | _ACEOF | ||
9985 | |||
9986 | cat >>confdefs.h <<\_ACEOF | ||
9987 | #define BROKEN_SETREUID 1 | ||
9988 | _ACEOF | ||
9989 | |||
9990 | cat >>confdefs.h <<\_ACEOF | ||
9991 | #define BROKEN_SETREGID 1 | ||
9992 | _ACEOF | ||
9993 | |||
9994 | |||
9995 | cat >>confdefs.h <<\_ACEOF | ||
9996 | #define BROKEN_READV_COMPARISON 1 | ||
9997 | _ACEOF | ||
9998 | |||
9999 | ;; | ||
10000 | |||
10001 | *-*-nto-qnx*) | ||
10002 | cat >>confdefs.h <<\_ACEOF | ||
10003 | #define USE_PIPES 1 | ||
10004 | _ACEOF | ||
10005 | |||
10006 | cat >>confdefs.h <<\_ACEOF | ||
10007 | #define NO_X11_UNIX_SOCKETS 1 | ||
10008 | _ACEOF | ||
10009 | |||
10010 | |||
10011 | cat >>confdefs.h <<\_ACEOF | ||
10012 | #define MISSING_NFDBITS 1 | ||
10013 | _ACEOF | ||
10014 | |||
10015 | |||
10016 | cat >>confdefs.h <<\_ACEOF | ||
10017 | #define MISSING_HOWMANY 1 | ||
10018 | _ACEOF | ||
10019 | |||
10020 | |||
10021 | cat >>confdefs.h <<\_ACEOF | ||
10022 | #define MISSING_FD_MASK 1 | ||
10023 | _ACEOF | ||
10024 | |||
10025 | cat >>confdefs.h <<\_ACEOF | ||
10026 | #define DISABLE_LASTLOG 1 | ||
10027 | _ACEOF | ||
10028 | |||
10029 | cat >>confdefs.h <<\_ACEOF | ||
10030 | #define SSHD_ACQUIRES_CTTY 1 | ||
10031 | _ACEOF | ||
10032 | |||
10033 | |||
10034 | cat >>confdefs.h <<\_ACEOF | ||
10035 | #define BROKEN_SHADOW_EXPIRE 1 | ||
10036 | _ACEOF | ||
10037 | |||
10038 | enable_etc_default_login=no # has incompatible /etc/default/login | ||
10039 | case "$host" in | ||
10040 | *-*-nto-qnx6*) | ||
10041 | cat >>confdefs.h <<\_ACEOF | ||
10042 | #define DISABLE_FD_PASSING 1 | ||
10043 | _ACEOF | ||
10044 | |||
10045 | ;; | ||
10046 | esac | ||
10047 | ;; | ||
10048 | |||
10049 | *-*-ultrix*) | ||
10050 | |||
10051 | cat >>confdefs.h <<\_ACEOF | ||
10052 | #define BROKEN_GETGROUPS 1 | ||
10053 | _ACEOF | ||
10054 | |||
10055 | |||
10056 | cat >>confdefs.h <<\_ACEOF | ||
10057 | #define BROKEN_MMAP 1 | ||
10058 | _ACEOF | ||
10059 | |||
10060 | cat >>confdefs.h <<\_ACEOF | ||
10061 | #define NEED_SETPGRP 1 | ||
10062 | _ACEOF | ||
10063 | |||
10064 | |||
10065 | cat >>confdefs.h <<\_ACEOF | ||
10066 | #define HAVE_SYS_SYSLOG_H 1 | ||
10067 | _ACEOF | ||
10068 | |||
10069 | ;; | ||
10070 | |||
10071 | *-*-lynxos) | ||
10072 | CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" | ||
10073 | cat >>confdefs.h <<\_ACEOF | ||
10074 | #define MISSING_HOWMANY 1 | ||
10075 | _ACEOF | ||
10076 | |||
10077 | |||
10078 | cat >>confdefs.h <<\_ACEOF | ||
10079 | #define BROKEN_SETVBUF 1 | ||
10080 | _ACEOF | ||
10081 | |||
10082 | ;; | ||
10083 | esac | ||
10084 | |||
10085 | { echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5 | ||
10086 | echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; } | ||
10087 | if test "$cross_compiling" = yes; then | ||
10088 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5 | ||
10089 | echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} | ||
10090 | |||
10091 | else | ||
10092 | cat >conftest.$ac_ext <<_ACEOF | ||
10093 | /* confdefs.h. */ | ||
10094 | _ACEOF | ||
10095 | cat confdefs.h >>conftest.$ac_ext | ||
10096 | cat >>conftest.$ac_ext <<_ACEOF | ||
10097 | /* end confdefs.h. */ | ||
10098 | |||
10099 | #include <stdio.h> | ||
10100 | int main(){exit(0);} | ||
10101 | |||
10102 | _ACEOF | ||
10103 | rm -f conftest$ac_exeext | ||
10104 | if { (ac_try="$ac_link" | ||
10105 | case "(($ac_try" in | ||
10106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10107 | *) ac_try_echo=$ac_try;; | ||
10108 | esac | ||
10109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10110 | (eval "$ac_link") 2>&5 | ||
10111 | ac_status=$? | ||
10112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10113 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10114 | { (case "(($ac_try" in | ||
10115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10116 | *) ac_try_echo=$ac_try;; | ||
10117 | esac | ||
10118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10119 | (eval "$ac_try") 2>&5 | ||
10120 | ac_status=$? | ||
10121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10122 | (exit $ac_status); }; }; then | ||
10123 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
10124 | echo "${ECHO_T}yes" >&6; } | ||
10125 | else | ||
10126 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10127 | echo "$as_me: failed program was:" >&5 | ||
10128 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10129 | |||
10130 | ( exit $ac_status ) | ||
10131 | |||
10132 | { echo "$as_me:$LINENO: result: no" >&5 | ||
10133 | echo "${ECHO_T}no" >&6; } | ||
10134 | { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5 | ||
10135 | echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;} | ||
10136 | { (exit 1); exit 1; }; } | ||
10137 | |||
10138 | fi | ||
10139 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10140 | fi | ||
10141 | |||
10142 | |||
10143 | |||
10144 | # Checks for libraries. | ||
10145 | { echo "$as_me:$LINENO: checking for yp_match" >&5 | ||
10146 | echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; } | ||
10147 | if test "${ac_cv_func_yp_match+set}" = set; then | ||
10148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10149 | else | ||
10150 | cat >conftest.$ac_ext <<_ACEOF | ||
10151 | /* confdefs.h. */ | ||
10152 | _ACEOF | ||
10153 | cat confdefs.h >>conftest.$ac_ext | ||
10154 | cat >>conftest.$ac_ext <<_ACEOF | ||
10155 | /* end confdefs.h. */ | ||
10156 | /* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match. | ||
10157 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10158 | #define yp_match innocuous_yp_match | ||
10159 | |||
10160 | /* System header to define __stub macros and hopefully few prototypes, | ||
10161 | which can conflict with char yp_match (); below. | ||
10162 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10163 | <limits.h> exists even on freestanding compilers. */ | ||
10164 | |||
10165 | #ifdef __STDC__ | ||
10166 | # include <limits.h> | ||
10167 | #else | ||
10168 | # include <assert.h> | ||
10169 | #endif | ||
10170 | |||
10171 | #undef yp_match | ||
10172 | |||
10173 | /* Override any GCC internal prototype to avoid an error. | ||
10174 | Use char because int might match the return type of a GCC | ||
10175 | builtin and then its argument prototype would still apply. */ | ||
10176 | #ifdef __cplusplus | ||
10177 | extern "C" | ||
10178 | #endif | ||
10179 | char yp_match (); | ||
10180 | /* The GNU C library defines this for functions which it implements | ||
10181 | to always fail with ENOSYS. Some functions are actually named | ||
10182 | something starting with __ and the normal name is an alias. */ | ||
10183 | #if defined __stub_yp_match || defined __stub___yp_match | ||
10184 | choke me | ||
10185 | #endif | ||
10186 | |||
10187 | int | ||
10188 | main () | ||
10189 | { | ||
10190 | return yp_match (); | ||
10191 | ; | ||
10192 | return 0; | ||
10193 | } | ||
10194 | _ACEOF | ||
10195 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10196 | if { (ac_try="$ac_link" | ||
10197 | case "(($ac_try" in | ||
10198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10199 | *) ac_try_echo=$ac_try;; | ||
10200 | esac | ||
10201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10202 | (eval "$ac_link") 2>conftest.er1 | ||
10203 | ac_status=$? | ||
10204 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10205 | rm -f conftest.er1 | ||
10206 | cat conftest.err >&5 | ||
10207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10208 | (exit $ac_status); } && { | ||
10209 | test -z "$ac_c_werror_flag" || | ||
10210 | test ! -s conftest.err | ||
10211 | } && test -s conftest$ac_exeext && | ||
10212 | $as_test_x conftest$ac_exeext; then | ||
10213 | ac_cv_func_yp_match=yes | ||
10214 | else | ||
10215 | echo "$as_me: failed program was:" >&5 | ||
10216 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10217 | |||
10218 | ac_cv_func_yp_match=no | ||
10219 | fi | ||
10220 | |||
10221 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10222 | conftest$ac_exeext conftest.$ac_ext | ||
10223 | fi | ||
10224 | { echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5 | ||
10225 | echo "${ECHO_T}$ac_cv_func_yp_match" >&6; } | ||
10226 | if test $ac_cv_func_yp_match = yes; then | ||
10227 | : | ||
10228 | else | ||
10229 | |||
10230 | { echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5 | ||
10231 | echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; } | ||
10232 | if test "${ac_cv_lib_nsl_yp_match+set}" = set; then | ||
10233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10234 | else | ||
10235 | ac_check_lib_save_LIBS=$LIBS | ||
10236 | LIBS="-lnsl $LIBS" | ||
10237 | cat >conftest.$ac_ext <<_ACEOF | ||
10238 | /* confdefs.h. */ | ||
10239 | _ACEOF | ||
10240 | cat confdefs.h >>conftest.$ac_ext | ||
10241 | cat >>conftest.$ac_ext <<_ACEOF | ||
10242 | /* end confdefs.h. */ | ||
10243 | |||
10244 | /* Override any GCC internal prototype to avoid an error. | ||
10245 | Use char because int might match the return type of a GCC | ||
10246 | builtin and then its argument prototype would still apply. */ | ||
10247 | #ifdef __cplusplus | ||
10248 | extern "C" | ||
10249 | #endif | ||
10250 | char yp_match (); | ||
10251 | int | ||
10252 | main () | ||
10253 | { | ||
10254 | return yp_match (); | ||
10255 | ; | ||
10256 | return 0; | ||
10257 | } | ||
10258 | _ACEOF | ||
10259 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10260 | if { (ac_try="$ac_link" | ||
10261 | case "(($ac_try" in | ||
10262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10263 | *) ac_try_echo=$ac_try;; | ||
10264 | esac | ||
10265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10266 | (eval "$ac_link") 2>conftest.er1 | ||
10267 | ac_status=$? | ||
10268 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10269 | rm -f conftest.er1 | ||
10270 | cat conftest.err >&5 | ||
10271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10272 | (exit $ac_status); } && { | ||
10273 | test -z "$ac_c_werror_flag" || | ||
10274 | test ! -s conftest.err | ||
10275 | } && test -s conftest$ac_exeext && | ||
10276 | $as_test_x conftest$ac_exeext; then | ||
10277 | ac_cv_lib_nsl_yp_match=yes | ||
10278 | else | ||
10279 | echo "$as_me: failed program was:" >&5 | ||
10280 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10281 | |||
10282 | ac_cv_lib_nsl_yp_match=no | ||
10283 | fi | ||
10284 | |||
10285 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10286 | conftest$ac_exeext conftest.$ac_ext | ||
10287 | LIBS=$ac_check_lib_save_LIBS | ||
10288 | fi | ||
10289 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5 | ||
10290 | echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; } | ||
10291 | if test $ac_cv_lib_nsl_yp_match = yes; then | ||
10292 | cat >>confdefs.h <<_ACEOF | ||
10293 | #define HAVE_LIBNSL 1 | ||
10294 | _ACEOF | ||
10295 | |||
10296 | LIBS="-lnsl $LIBS" | ||
10297 | |||
10298 | fi | ||
10299 | |||
10300 | fi | ||
10301 | |||
10302 | { echo "$as_me:$LINENO: checking for setsockopt" >&5 | ||
10303 | echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } | ||
10304 | if test "${ac_cv_func_setsockopt+set}" = set; then | ||
10305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10306 | else | ||
10307 | cat >conftest.$ac_ext <<_ACEOF | ||
10308 | /* confdefs.h. */ | ||
10309 | _ACEOF | ||
10310 | cat confdefs.h >>conftest.$ac_ext | ||
10311 | cat >>conftest.$ac_ext <<_ACEOF | ||
10312 | /* end confdefs.h. */ | ||
10313 | /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. | ||
10314 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10315 | #define setsockopt innocuous_setsockopt | ||
10316 | |||
10317 | /* System header to define __stub macros and hopefully few prototypes, | ||
10318 | which can conflict with char setsockopt (); below. | ||
10319 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10320 | <limits.h> exists even on freestanding compilers. */ | ||
10321 | |||
10322 | #ifdef __STDC__ | ||
10323 | # include <limits.h> | ||
10324 | #else | ||
10325 | # include <assert.h> | ||
10326 | #endif | ||
10327 | |||
10328 | #undef setsockopt | ||
10329 | |||
10330 | /* Override any GCC internal prototype to avoid an error. | ||
10331 | Use char because int might match the return type of a GCC | ||
10332 | builtin and then its argument prototype would still apply. */ | ||
10333 | #ifdef __cplusplus | ||
10334 | extern "C" | ||
10335 | #endif | ||
10336 | char setsockopt (); | ||
10337 | /* The GNU C library defines this for functions which it implements | ||
10338 | to always fail with ENOSYS. Some functions are actually named | ||
10339 | something starting with __ and the normal name is an alias. */ | ||
10340 | #if defined __stub_setsockopt || defined __stub___setsockopt | ||
10341 | choke me | ||
10342 | #endif | ||
10343 | |||
10344 | int | ||
10345 | main () | ||
10346 | { | ||
10347 | return setsockopt (); | ||
10348 | ; | ||
10349 | return 0; | ||
10350 | } | ||
10351 | _ACEOF | ||
10352 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10353 | if { (ac_try="$ac_link" | ||
10354 | case "(($ac_try" in | ||
10355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10356 | *) ac_try_echo=$ac_try;; | ||
10357 | esac | ||
10358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10359 | (eval "$ac_link") 2>conftest.er1 | ||
10360 | ac_status=$? | ||
10361 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10362 | rm -f conftest.er1 | ||
10363 | cat conftest.err >&5 | ||
10364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10365 | (exit $ac_status); } && { | ||
10366 | test -z "$ac_c_werror_flag" || | ||
10367 | test ! -s conftest.err | ||
10368 | } && test -s conftest$ac_exeext && | ||
10369 | $as_test_x conftest$ac_exeext; then | ||
10370 | ac_cv_func_setsockopt=yes | ||
10371 | else | ||
10372 | echo "$as_me: failed program was:" >&5 | ||
10373 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10374 | |||
10375 | ac_cv_func_setsockopt=no | ||
10376 | fi | ||
10377 | |||
10378 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10379 | conftest$ac_exeext conftest.$ac_ext | ||
10380 | fi | ||
10381 | { echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 | ||
10382 | echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } | ||
10383 | if test $ac_cv_func_setsockopt = yes; then | ||
10384 | : | ||
10385 | else | ||
10386 | |||
10387 | { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 | ||
10388 | echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } | ||
10389 | if test "${ac_cv_lib_socket_setsockopt+set}" = set; then | ||
10390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10391 | else | ||
10392 | ac_check_lib_save_LIBS=$LIBS | ||
10393 | LIBS="-lsocket $LIBS" | ||
10394 | cat >conftest.$ac_ext <<_ACEOF | ||
10395 | /* confdefs.h. */ | ||
10396 | _ACEOF | ||
10397 | cat confdefs.h >>conftest.$ac_ext | ||
10398 | cat >>conftest.$ac_ext <<_ACEOF | ||
10399 | /* end confdefs.h. */ | ||
10400 | |||
10401 | /* Override any GCC internal prototype to avoid an error. | ||
10402 | Use char because int might match the return type of a GCC | ||
10403 | builtin and then its argument prototype would still apply. */ | ||
10404 | #ifdef __cplusplus | ||
10405 | extern "C" | ||
10406 | #endif | ||
10407 | char setsockopt (); | ||
10408 | int | ||
10409 | main () | ||
10410 | { | ||
10411 | return setsockopt (); | ||
10412 | ; | ||
10413 | return 0; | ||
10414 | } | ||
10415 | _ACEOF | ||
10416 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10417 | if { (ac_try="$ac_link" | ||
10418 | case "(($ac_try" in | ||
10419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10420 | *) ac_try_echo=$ac_try;; | ||
10421 | esac | ||
10422 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10423 | (eval "$ac_link") 2>conftest.er1 | ||
10424 | ac_status=$? | ||
10425 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10426 | rm -f conftest.er1 | ||
10427 | cat conftest.err >&5 | ||
10428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10429 | (exit $ac_status); } && { | ||
10430 | test -z "$ac_c_werror_flag" || | ||
10431 | test ! -s conftest.err | ||
10432 | } && test -s conftest$ac_exeext && | ||
10433 | $as_test_x conftest$ac_exeext; then | ||
10434 | ac_cv_lib_socket_setsockopt=yes | ||
10435 | else | ||
10436 | echo "$as_me: failed program was:" >&5 | ||
10437 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10438 | |||
10439 | ac_cv_lib_socket_setsockopt=no | ||
10440 | fi | ||
10441 | |||
10442 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10443 | conftest$ac_exeext conftest.$ac_ext | ||
10444 | LIBS=$ac_check_lib_save_LIBS | ||
10445 | fi | ||
10446 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
10447 | echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } | ||
10448 | if test $ac_cv_lib_socket_setsockopt = yes; then | ||
10449 | cat >>confdefs.h <<_ACEOF | ||
10450 | #define HAVE_LIBSOCKET 1 | ||
10451 | _ACEOF | ||
10452 | |||
10453 | LIBS="-lsocket $LIBS" | ||
10454 | |||
10455 | fi | ||
10456 | |||
10457 | fi | ||
10458 | |||
10459 | |||
10460 | |||
10461 | for ac_func in dirname | ||
10462 | do | ||
10463 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10464 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10465 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
10466 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10468 | else | ||
10469 | cat >conftest.$ac_ext <<_ACEOF | ||
10470 | /* confdefs.h. */ | ||
10471 | _ACEOF | ||
10472 | cat confdefs.h >>conftest.$ac_ext | ||
10473 | cat >>conftest.$ac_ext <<_ACEOF | ||
10474 | /* end confdefs.h. */ | ||
10475 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10476 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10477 | #define $ac_func innocuous_$ac_func | ||
10478 | |||
10479 | /* System header to define __stub macros and hopefully few prototypes, | ||
10480 | which can conflict with char $ac_func (); below. | ||
10481 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10482 | <limits.h> exists even on freestanding compilers. */ | ||
10483 | |||
10484 | #ifdef __STDC__ | ||
10485 | # include <limits.h> | ||
10486 | #else | ||
10487 | # include <assert.h> | ||
10488 | #endif | ||
10489 | |||
10490 | #undef $ac_func | ||
10491 | |||
10492 | /* Override any GCC internal prototype to avoid an error. | ||
10493 | Use char because int might match the return type of a GCC | ||
10494 | builtin and then its argument prototype would still apply. */ | ||
10495 | #ifdef __cplusplus | ||
10496 | extern "C" | ||
10497 | #endif | ||
10498 | char $ac_func (); | ||
10499 | /* The GNU C library defines this for functions which it implements | ||
10500 | to always fail with ENOSYS. Some functions are actually named | ||
10501 | something starting with __ and the normal name is an alias. */ | ||
10502 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
10503 | choke me | ||
10504 | #endif | ||
10505 | |||
10506 | int | ||
10507 | main () | ||
10508 | { | ||
10509 | return $ac_func (); | ||
10510 | ; | ||
10511 | return 0; | ||
10512 | } | ||
10513 | _ACEOF | ||
10514 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10515 | if { (ac_try="$ac_link" | ||
10516 | case "(($ac_try" in | ||
10517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10518 | *) ac_try_echo=$ac_try;; | ||
10519 | esac | ||
10520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10521 | (eval "$ac_link") 2>conftest.er1 | ||
10522 | ac_status=$? | ||
10523 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10524 | rm -f conftest.er1 | ||
10525 | cat conftest.err >&5 | ||
10526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10527 | (exit $ac_status); } && { | ||
10528 | test -z "$ac_c_werror_flag" || | ||
10529 | test ! -s conftest.err | ||
10530 | } && test -s conftest$ac_exeext && | ||
10531 | $as_test_x conftest$ac_exeext; then | ||
10532 | eval "$as_ac_var=yes" | ||
10533 | else | ||
10534 | echo "$as_me: failed program was:" >&5 | ||
10535 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10536 | |||
10537 | eval "$as_ac_var=no" | ||
10538 | fi | ||
10539 | |||
10540 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10541 | conftest$ac_exeext conftest.$ac_ext | ||
10542 | fi | ||
10543 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
10544 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10545 | echo "${ECHO_T}$ac_res" >&6; } | ||
10546 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
10547 | cat >>confdefs.h <<_ACEOF | ||
10548 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10549 | _ACEOF | ||
10550 | |||
10551 | for ac_header in libgen.h | ||
10552 | do | ||
10553 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
10554 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10555 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10556 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
10557 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10559 | fi | ||
10560 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
10561 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10562 | echo "${ECHO_T}$ac_res" >&6; } | ||
10563 | else | ||
10564 | # Is the header compilable? | ||
10565 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
10566 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
10567 | cat >conftest.$ac_ext <<_ACEOF | ||
10568 | /* confdefs.h. */ | ||
10569 | _ACEOF | ||
10570 | cat confdefs.h >>conftest.$ac_ext | ||
10571 | cat >>conftest.$ac_ext <<_ACEOF | ||
10572 | /* end confdefs.h. */ | ||
10573 | $ac_includes_default | ||
10574 | #include <$ac_header> | ||
10575 | _ACEOF | ||
10576 | rm -f conftest.$ac_objext | ||
10577 | if { (ac_try="$ac_compile" | ||
10578 | case "(($ac_try" in | ||
10579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10580 | *) ac_try_echo=$ac_try;; | ||
10581 | esac | ||
10582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10583 | (eval "$ac_compile") 2>conftest.er1 | ||
10584 | ac_status=$? | ||
10585 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10586 | rm -f conftest.er1 | ||
10587 | cat conftest.err >&5 | ||
10588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10589 | (exit $ac_status); } && { | ||
10590 | test -z "$ac_c_werror_flag" || | ||
10591 | test ! -s conftest.err | ||
10592 | } && test -s conftest.$ac_objext; then | ||
10593 | ac_header_compiler=yes | ||
10594 | else | ||
10595 | echo "$as_me: failed program was:" >&5 | ||
10596 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10597 | |||
10598 | ac_header_compiler=no | ||
10599 | fi | ||
10600 | |||
10601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10602 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10603 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
10604 | |||
10605 | # Is the header present? | ||
10606 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
10607 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
10608 | cat >conftest.$ac_ext <<_ACEOF | ||
10609 | /* confdefs.h. */ | ||
10610 | _ACEOF | ||
10611 | cat confdefs.h >>conftest.$ac_ext | ||
10612 | cat >>conftest.$ac_ext <<_ACEOF | ||
10613 | /* end confdefs.h. */ | ||
10614 | #include <$ac_header> | ||
10615 | _ACEOF | ||
10616 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
10617 | case "(($ac_try" in | ||
10618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10619 | *) ac_try_echo=$ac_try;; | ||
10620 | esac | ||
10621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10622 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
10623 | ac_status=$? | ||
10624 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10625 | rm -f conftest.er1 | ||
10626 | cat conftest.err >&5 | ||
10627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10628 | (exit $ac_status); } >/dev/null && { | ||
10629 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
10630 | test ! -s conftest.err | ||
10631 | }; then | ||
10632 | ac_header_preproc=yes | ||
10633 | else | ||
10634 | echo "$as_me: failed program was:" >&5 | ||
10635 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10636 | |||
10637 | ac_header_preproc=no | ||
10638 | fi | ||
10639 | |||
10640 | rm -f conftest.err conftest.$ac_ext | ||
10641 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10642 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
10643 | |||
10644 | # So? What about this header? | ||
10645 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10646 | yes:no: ) | ||
10647 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10648 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10649 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
10650 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
10651 | ac_header_preproc=yes | ||
10652 | ;; | ||
10653 | no:yes:* ) | ||
10654 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
10655 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
10656 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
10657 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
10658 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
10659 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
10660 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
10661 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10662 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
10663 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
10664 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
10665 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
10666 | ( cat <<\_ASBOX | ||
10667 | ## ------------------------------------------- ## | ||
10668 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
10669 | ## ------------------------------------------- ## | ||
10670 | _ASBOX | ||
10671 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
10672 | ;; | ||
10673 | esac | ||
10674 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10675 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
10676 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10678 | else | ||
10679 | eval "$as_ac_Header=\$ac_header_preproc" | ||
10680 | fi | ||
10681 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
10682 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10683 | echo "${ECHO_T}$ac_res" >&6; } | ||
10684 | |||
10685 | fi | ||
10686 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
10687 | cat >>confdefs.h <<_ACEOF | ||
10688 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
10689 | _ACEOF | ||
10690 | |||
10691 | fi | ||
10692 | |||
10693 | done | ||
10694 | |||
10695 | else | ||
10696 | |||
10697 | { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5 | ||
10698 | echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; } | ||
10699 | if test "${ac_cv_lib_gen_dirname+set}" = set; then | ||
10700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10701 | else | ||
10702 | ac_check_lib_save_LIBS=$LIBS | ||
10703 | LIBS="-lgen $LIBS" | ||
10704 | cat >conftest.$ac_ext <<_ACEOF | ||
10705 | /* confdefs.h. */ | ||
10706 | _ACEOF | ||
10707 | cat confdefs.h >>conftest.$ac_ext | ||
10708 | cat >>conftest.$ac_ext <<_ACEOF | ||
10709 | /* end confdefs.h. */ | ||
10710 | |||
10711 | /* Override any GCC internal prototype to avoid an error. | ||
10712 | Use char because int might match the return type of a GCC | ||
10713 | builtin and then its argument prototype would still apply. */ | ||
10714 | #ifdef __cplusplus | ||
10715 | extern "C" | ||
10716 | #endif | ||
10717 | char dirname (); | ||
10718 | int | ||
10719 | main () | ||
10720 | { | ||
10721 | return dirname (); | ||
10722 | ; | ||
10723 | return 0; | ||
10724 | } | ||
10725 | _ACEOF | ||
10726 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10727 | if { (ac_try="$ac_link" | ||
10728 | case "(($ac_try" in | ||
10729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10730 | *) ac_try_echo=$ac_try;; | ||
10731 | esac | ||
10732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10733 | (eval "$ac_link") 2>conftest.er1 | ||
10734 | ac_status=$? | ||
10735 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10736 | rm -f conftest.er1 | ||
10737 | cat conftest.err >&5 | ||
10738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10739 | (exit $ac_status); } && { | ||
10740 | test -z "$ac_c_werror_flag" || | ||
10741 | test ! -s conftest.err | ||
10742 | } && test -s conftest$ac_exeext && | ||
10743 | $as_test_x conftest$ac_exeext; then | ||
10744 | ac_cv_lib_gen_dirname=yes | ||
10745 | else | ||
10746 | echo "$as_me: failed program was:" >&5 | ||
10747 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10748 | |||
10749 | ac_cv_lib_gen_dirname=no | ||
10750 | fi | ||
10751 | |||
10752 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10753 | conftest$ac_exeext conftest.$ac_ext | ||
10754 | LIBS=$ac_check_lib_save_LIBS | ||
10755 | fi | ||
10756 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5 | ||
10757 | echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; } | ||
10758 | if test $ac_cv_lib_gen_dirname = yes; then | ||
10759 | |||
10760 | { echo "$as_me:$LINENO: checking for broken dirname" >&5 | ||
10761 | echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; } | ||
10762 | if test "${ac_cv_have_broken_dirname+set}" = set; then | ||
10763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10764 | else | ||
10765 | |||
10766 | save_LIBS="$LIBS" | ||
10767 | LIBS="$LIBS -lgen" | ||
10768 | if test "$cross_compiling" = yes; then | ||
10769 | ac_cv_have_broken_dirname="no" | ||
10770 | else | ||
10771 | cat >conftest.$ac_ext <<_ACEOF | ||
10772 | /* confdefs.h. */ | ||
10773 | _ACEOF | ||
10774 | cat confdefs.h >>conftest.$ac_ext | ||
10775 | cat >>conftest.$ac_ext <<_ACEOF | ||
10776 | /* end confdefs.h. */ | ||
10777 | |||
10778 | #include <libgen.h> | ||
10779 | #include <string.h> | ||
10780 | |||
10781 | int main(int argc, char **argv) { | ||
10782 | char *s, buf[32]; | ||
10783 | |||
10784 | strncpy(buf,"/etc", 32); | ||
10785 | s = dirname(buf); | ||
10786 | if (!s || strncmp(s, "/", 32) != 0) { | ||
10787 | exit(1); | ||
10788 | } else { | ||
10789 | exit(0); | ||
10790 | } | ||
10791 | } | ||
10792 | |||
10793 | _ACEOF | ||
10794 | rm -f conftest$ac_exeext | ||
10795 | if { (ac_try="$ac_link" | ||
10796 | case "(($ac_try" in | ||
10797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10798 | *) ac_try_echo=$ac_try;; | ||
10799 | esac | ||
10800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10801 | (eval "$ac_link") 2>&5 | ||
10802 | ac_status=$? | ||
10803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10804 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10805 | { (case "(($ac_try" in | ||
10806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10807 | *) ac_try_echo=$ac_try;; | ||
10808 | esac | ||
10809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10810 | (eval "$ac_try") 2>&5 | ||
10811 | ac_status=$? | ||
10812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10813 | (exit $ac_status); }; }; then | ||
10814 | ac_cv_have_broken_dirname="no" | ||
10815 | else | ||
10816 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10817 | echo "$as_me: failed program was:" >&5 | ||
10818 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10819 | |||
10820 | ( exit $ac_status ) | ||
10821 | ac_cv_have_broken_dirname="yes" | ||
10822 | fi | ||
10823 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10824 | fi | ||
10825 | |||
10826 | |||
10827 | LIBS="$save_LIBS" | ||
10828 | |||
10829 | fi | ||
10830 | { echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5 | ||
10831 | echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; } | ||
10832 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
10833 | LIBS="$LIBS -lgen" | ||
10834 | cat >>confdefs.h <<\_ACEOF | ||
10835 | #define HAVE_DIRNAME 1 | ||
10836 | _ACEOF | ||
10837 | |||
10838 | |||
10839 | for ac_header in libgen.h | ||
10840 | do | ||
10841 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
10842 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10843 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10844 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
10845 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10847 | fi | ||
10848 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
10849 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10850 | echo "${ECHO_T}$ac_res" >&6; } | ||
10851 | else | ||
10852 | # Is the header compilable? | ||
10853 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
10854 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
10855 | cat >conftest.$ac_ext <<_ACEOF | ||
10856 | /* confdefs.h. */ | ||
10857 | _ACEOF | ||
10858 | cat confdefs.h >>conftest.$ac_ext | ||
10859 | cat >>conftest.$ac_ext <<_ACEOF | ||
10860 | /* end confdefs.h. */ | ||
10861 | $ac_includes_default | ||
10862 | #include <$ac_header> | ||
10863 | _ACEOF | ||
10864 | rm -f conftest.$ac_objext | ||
10865 | if { (ac_try="$ac_compile" | ||
10866 | case "(($ac_try" in | ||
10867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10868 | *) ac_try_echo=$ac_try;; | ||
10869 | esac | ||
10870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10871 | (eval "$ac_compile") 2>conftest.er1 | ||
10872 | ac_status=$? | ||
10873 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10874 | rm -f conftest.er1 | ||
10875 | cat conftest.err >&5 | ||
10876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10877 | (exit $ac_status); } && { | ||
10878 | test -z "$ac_c_werror_flag" || | ||
10879 | test ! -s conftest.err | ||
10880 | } && test -s conftest.$ac_objext; then | ||
10881 | ac_header_compiler=yes | ||
10882 | else | ||
10883 | echo "$as_me: failed program was:" >&5 | ||
10884 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10885 | |||
10886 | ac_header_compiler=no | ||
10887 | fi | ||
10888 | |||
10889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10890 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10891 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
10892 | |||
10893 | # Is the header present? | ||
10894 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
10895 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
10896 | cat >conftest.$ac_ext <<_ACEOF | ||
10897 | /* confdefs.h. */ | ||
10898 | _ACEOF | ||
10899 | cat confdefs.h >>conftest.$ac_ext | ||
10900 | cat >>conftest.$ac_ext <<_ACEOF | ||
10901 | /* end confdefs.h. */ | ||
10902 | #include <$ac_header> | ||
10903 | _ACEOF | ||
10904 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
10905 | case "(($ac_try" in | ||
10906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10907 | *) ac_try_echo=$ac_try;; | ||
10908 | esac | ||
10909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10910 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
10911 | ac_status=$? | ||
10912 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10913 | rm -f conftest.er1 | ||
10914 | cat conftest.err >&5 | ||
10915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10916 | (exit $ac_status); } >/dev/null && { | ||
10917 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
10918 | test ! -s conftest.err | ||
10919 | }; then | ||
10920 | ac_header_preproc=yes | ||
10921 | else | ||
10922 | echo "$as_me: failed program was:" >&5 | ||
10923 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10924 | |||
10925 | ac_header_preproc=no | ||
10926 | fi | ||
10927 | |||
10928 | rm -f conftest.err conftest.$ac_ext | ||
10929 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10930 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
10931 | |||
10932 | # So? What about this header? | ||
10933 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10934 | yes:no: ) | ||
10935 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10936 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10937 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
10938 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
10939 | ac_header_preproc=yes | ||
10940 | ;; | ||
10941 | no:yes:* ) | ||
10942 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
10943 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
10944 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
10945 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
10946 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
10947 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
10948 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
10949 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10950 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
10951 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
10952 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
10953 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
10954 | ( cat <<\_ASBOX | ||
10955 | ## ------------------------------------------- ## | ||
10956 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
10957 | ## ------------------------------------------- ## | ||
10958 | _ASBOX | ||
10959 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
10960 | ;; | ||
10961 | esac | ||
10962 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10963 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
10964 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10966 | else | ||
10967 | eval "$as_ac_Header=\$ac_header_preproc" | ||
10968 | fi | ||
10969 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
10970 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10971 | echo "${ECHO_T}$ac_res" >&6; } | ||
10972 | |||
10973 | fi | ||
10974 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
10975 | cat >>confdefs.h <<_ACEOF | ||
10976 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
10977 | _ACEOF | ||
10978 | |||
10979 | fi | ||
10980 | |||
10981 | done | ||
10982 | |||
10983 | fi | ||
10984 | |||
10985 | fi | ||
10986 | |||
10987 | |||
10988 | fi | ||
10989 | done | ||
10990 | |||
10991 | |||
10992 | { echo "$as_me:$LINENO: checking for getspnam" >&5 | ||
10993 | echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; } | ||
10994 | if test "${ac_cv_func_getspnam+set}" = set; then | ||
10995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10996 | else | ||
10997 | cat >conftest.$ac_ext <<_ACEOF | ||
10998 | /* confdefs.h. */ | ||
10999 | _ACEOF | ||
11000 | cat confdefs.h >>conftest.$ac_ext | ||
11001 | cat >>conftest.$ac_ext <<_ACEOF | ||
11002 | /* end confdefs.h. */ | ||
11003 | /* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam. | ||
11004 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11005 | #define getspnam innocuous_getspnam | ||
11006 | |||
11007 | /* System header to define __stub macros and hopefully few prototypes, | ||
11008 | which can conflict with char getspnam (); below. | ||
11009 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11010 | <limits.h> exists even on freestanding compilers. */ | ||
11011 | |||
11012 | #ifdef __STDC__ | ||
11013 | # include <limits.h> | ||
11014 | #else | ||
11015 | # include <assert.h> | ||
11016 | #endif | ||
11017 | |||
11018 | #undef getspnam | ||
11019 | |||
11020 | /* Override any GCC internal prototype to avoid an error. | ||
11021 | Use char because int might match the return type of a GCC | ||
11022 | builtin and then its argument prototype would still apply. */ | ||
11023 | #ifdef __cplusplus | ||
11024 | extern "C" | ||
11025 | #endif | ||
11026 | char getspnam (); | ||
11027 | /* The GNU C library defines this for functions which it implements | ||
11028 | to always fail with ENOSYS. Some functions are actually named | ||
11029 | something starting with __ and the normal name is an alias. */ | ||
11030 | #if defined __stub_getspnam || defined __stub___getspnam | ||
11031 | choke me | ||
11032 | #endif | ||
11033 | |||
11034 | int | ||
11035 | main () | ||
11036 | { | ||
11037 | return getspnam (); | ||
11038 | ; | ||
11039 | return 0; | ||
11040 | } | ||
11041 | _ACEOF | ||
11042 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11043 | if { (ac_try="$ac_link" | ||
11044 | case "(($ac_try" in | ||
11045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11046 | *) ac_try_echo=$ac_try;; | ||
11047 | esac | ||
11048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11049 | (eval "$ac_link") 2>conftest.er1 | ||
11050 | ac_status=$? | ||
11051 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11052 | rm -f conftest.er1 | ||
11053 | cat conftest.err >&5 | ||
11054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11055 | (exit $ac_status); } && { | ||
11056 | test -z "$ac_c_werror_flag" || | ||
11057 | test ! -s conftest.err | ||
11058 | } && test -s conftest$ac_exeext && | ||
11059 | $as_test_x conftest$ac_exeext; then | ||
11060 | ac_cv_func_getspnam=yes | ||
11061 | else | ||
11062 | echo "$as_me: failed program was:" >&5 | ||
11063 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11064 | |||
11065 | ac_cv_func_getspnam=no | ||
11066 | fi | ||
11067 | |||
11068 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11069 | conftest$ac_exeext conftest.$ac_ext | ||
11070 | fi | ||
11071 | { echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5 | ||
11072 | echo "${ECHO_T}$ac_cv_func_getspnam" >&6; } | ||
11073 | if test $ac_cv_func_getspnam = yes; then | ||
11074 | : | ||
11075 | else | ||
11076 | { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5 | ||
11077 | echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; } | ||
11078 | if test "${ac_cv_lib_gen_getspnam+set}" = set; then | ||
11079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11080 | else | ||
11081 | ac_check_lib_save_LIBS=$LIBS | ||
11082 | LIBS="-lgen $LIBS" | ||
11083 | cat >conftest.$ac_ext <<_ACEOF | ||
11084 | /* confdefs.h. */ | ||
11085 | _ACEOF | ||
11086 | cat confdefs.h >>conftest.$ac_ext | ||
11087 | cat >>conftest.$ac_ext <<_ACEOF | ||
11088 | /* end confdefs.h. */ | ||
11089 | |||
11090 | /* Override any GCC internal prototype to avoid an error. | ||
11091 | Use char because int might match the return type of a GCC | ||
11092 | builtin and then its argument prototype would still apply. */ | ||
11093 | #ifdef __cplusplus | ||
11094 | extern "C" | ||
11095 | #endif | ||
11096 | char getspnam (); | ||
11097 | int | ||
11098 | main () | ||
11099 | { | ||
11100 | return getspnam (); | ||
11101 | ; | ||
11102 | return 0; | ||
11103 | } | ||
11104 | _ACEOF | ||
11105 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11106 | if { (ac_try="$ac_link" | ||
11107 | case "(($ac_try" in | ||
11108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11109 | *) ac_try_echo=$ac_try;; | ||
11110 | esac | ||
11111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11112 | (eval "$ac_link") 2>conftest.er1 | ||
11113 | ac_status=$? | ||
11114 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11115 | rm -f conftest.er1 | ||
11116 | cat conftest.err >&5 | ||
11117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11118 | (exit $ac_status); } && { | ||
11119 | test -z "$ac_c_werror_flag" || | ||
11120 | test ! -s conftest.err | ||
11121 | } && test -s conftest$ac_exeext && | ||
11122 | $as_test_x conftest$ac_exeext; then | ||
11123 | ac_cv_lib_gen_getspnam=yes | ||
11124 | else | ||
11125 | echo "$as_me: failed program was:" >&5 | ||
11126 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11127 | |||
11128 | ac_cv_lib_gen_getspnam=no | ||
11129 | fi | ||
11130 | |||
11131 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11132 | conftest$ac_exeext conftest.$ac_ext | ||
11133 | LIBS=$ac_check_lib_save_LIBS | ||
11134 | fi | ||
11135 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5 | ||
11136 | echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; } | ||
11137 | if test $ac_cv_lib_gen_getspnam = yes; then | ||
11138 | LIBS="$LIBS -lgen" | ||
11139 | fi | ||
11140 | |||
11141 | fi | ||
11142 | |||
11143 | { echo "$as_me:$LINENO: checking for library containing basename" >&5 | ||
11144 | echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; } | ||
11145 | if test "${ac_cv_search_basename+set}" = set; then | ||
11146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11147 | else | ||
11148 | ac_func_search_save_LIBS=$LIBS | ||
11149 | cat >conftest.$ac_ext <<_ACEOF | ||
11150 | /* confdefs.h. */ | ||
11151 | _ACEOF | ||
11152 | cat confdefs.h >>conftest.$ac_ext | ||
11153 | cat >>conftest.$ac_ext <<_ACEOF | ||
11154 | /* end confdefs.h. */ | ||
11155 | |||
11156 | /* Override any GCC internal prototype to avoid an error. | ||
11157 | Use char because int might match the return type of a GCC | ||
11158 | builtin and then its argument prototype would still apply. */ | ||
11159 | #ifdef __cplusplus | ||
11160 | extern "C" | ||
11161 | #endif | ||
11162 | char basename (); | ||
11163 | int | ||
11164 | main () | ||
11165 | { | ||
11166 | return basename (); | ||
11167 | ; | ||
11168 | return 0; | ||
11169 | } | ||
11170 | _ACEOF | ||
11171 | for ac_lib in '' gen; do | ||
11172 | if test -z "$ac_lib"; then | ||
11173 | ac_res="none required" | ||
11174 | else | ||
11175 | ac_res=-l$ac_lib | ||
11176 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
11177 | fi | ||
11178 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11179 | if { (ac_try="$ac_link" | ||
11180 | case "(($ac_try" in | ||
11181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11182 | *) ac_try_echo=$ac_try;; | ||
11183 | esac | ||
11184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11185 | (eval "$ac_link") 2>conftest.er1 | ||
11186 | ac_status=$? | ||
11187 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11188 | rm -f conftest.er1 | ||
11189 | cat conftest.err >&5 | ||
11190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11191 | (exit $ac_status); } && { | ||
11192 | test -z "$ac_c_werror_flag" || | ||
11193 | test ! -s conftest.err | ||
11194 | } && test -s conftest$ac_exeext && | ||
11195 | $as_test_x conftest$ac_exeext; then | ||
11196 | ac_cv_search_basename=$ac_res | ||
11197 | else | ||
11198 | echo "$as_me: failed program was:" >&5 | ||
11199 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11200 | |||
11201 | |||
11202 | fi | ||
11203 | |||
11204 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11205 | conftest$ac_exeext | ||
11206 | if test "${ac_cv_search_basename+set}" = set; then | ||
11207 | break | ||
11208 | fi | ||
11209 | done | ||
11210 | if test "${ac_cv_search_basename+set}" = set; then | ||
11211 | : | ||
11212 | else | ||
11213 | ac_cv_search_basename=no | ||
11214 | fi | ||
11215 | rm conftest.$ac_ext | ||
11216 | LIBS=$ac_func_search_save_LIBS | ||
11217 | fi | ||
11218 | { echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5 | ||
11219 | echo "${ECHO_T}$ac_cv_search_basename" >&6; } | ||
11220 | ac_res=$ac_cv_search_basename | ||
11221 | if test "$ac_res" != no; then | ||
11222 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
11223 | |||
11224 | cat >>confdefs.h <<\_ACEOF | ||
11225 | #define HAVE_BASENAME 1 | ||
11226 | _ACEOF | ||
11227 | |||
11228 | fi | ||
11229 | |||
11230 | |||
11231 | |||
11232 | # Check whether --with-zlib was given. | ||
11233 | if test "${with_zlib+set}" = set; then | ||
11234 | withval=$with_zlib; if test "x$withval" = "xno" ; then | ||
11235 | { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5 | ||
11236 | echo "$as_me: error: *** zlib is required ***" >&2;} | ||
11237 | { (exit 1); exit 1; }; } | ||
11238 | elif test "x$withval" != "xyes"; then | ||
11239 | if test -d "$withval/lib"; then | ||
11240 | if test -n "${need_dash_r}"; then | ||
11241 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
11242 | else | ||
11243 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
11244 | fi | ||
11245 | else | ||
11246 | if test -n "${need_dash_r}"; then | ||
11247 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
11248 | else | ||
11249 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
11250 | fi | ||
11251 | fi | ||
11252 | if test -d "$withval/include"; then | ||
11253 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
11254 | else | ||
11255 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
11256 | fi | ||
11257 | fi | ||
11258 | |||
11259 | fi | ||
11260 | |||
11261 | |||
11262 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
11263 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
11264 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | ||
11265 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
11266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11267 | fi | ||
11268 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
11269 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | ||
11270 | else | ||
11271 | # Is the header compilable? | ||
11272 | { echo "$as_me:$LINENO: checking zlib.h usability" >&5 | ||
11273 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } | ||
11274 | cat >conftest.$ac_ext <<_ACEOF | ||
11275 | /* confdefs.h. */ | ||
11276 | _ACEOF | ||
11277 | cat confdefs.h >>conftest.$ac_ext | ||
11278 | cat >>conftest.$ac_ext <<_ACEOF | ||
11279 | /* end confdefs.h. */ | ||
11280 | $ac_includes_default | ||
11281 | #include <zlib.h> | ||
11282 | _ACEOF | ||
11283 | rm -f conftest.$ac_objext | ||
11284 | if { (ac_try="$ac_compile" | ||
11285 | case "(($ac_try" in | ||
11286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11287 | *) ac_try_echo=$ac_try;; | ||
11288 | esac | ||
11289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11290 | (eval "$ac_compile") 2>conftest.er1 | ||
11291 | ac_status=$? | ||
11292 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11293 | rm -f conftest.er1 | ||
11294 | cat conftest.err >&5 | ||
11295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11296 | (exit $ac_status); } && { | ||
11297 | test -z "$ac_c_werror_flag" || | ||
11298 | test ! -s conftest.err | ||
11299 | } && test -s conftest.$ac_objext; then | ||
11300 | ac_header_compiler=yes | ||
11301 | else | ||
11302 | echo "$as_me: failed program was:" >&5 | ||
11303 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11304 | |||
11305 | ac_header_compiler=no | ||
11306 | fi | ||
11307 | |||
11308 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11309 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
11310 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
11311 | |||
11312 | # Is the header present? | ||
11313 | { echo "$as_me:$LINENO: checking zlib.h presence" >&5 | ||
11314 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } | ||
11315 | cat >conftest.$ac_ext <<_ACEOF | ||
11316 | /* confdefs.h. */ | ||
11317 | _ACEOF | ||
11318 | cat confdefs.h >>conftest.$ac_ext | ||
11319 | cat >>conftest.$ac_ext <<_ACEOF | ||
11320 | /* end confdefs.h. */ | ||
11321 | #include <zlib.h> | ||
11322 | _ACEOF | ||
11323 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
11324 | case "(($ac_try" in | ||
11325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11326 | *) ac_try_echo=$ac_try;; | ||
11327 | esac | ||
11328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11329 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
11330 | ac_status=$? | ||
11331 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11332 | rm -f conftest.er1 | ||
11333 | cat conftest.err >&5 | ||
11334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11335 | (exit $ac_status); } >/dev/null && { | ||
11336 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
11337 | test ! -s conftest.err | ||
11338 | }; then | ||
11339 | ac_header_preproc=yes | ||
11340 | else | ||
11341 | echo "$as_me: failed program was:" >&5 | ||
11342 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11343 | |||
11344 | ac_header_preproc=no | ||
11345 | fi | ||
11346 | |||
11347 | rm -f conftest.err conftest.$ac_ext | ||
11348 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
11349 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
11350 | |||
11351 | # So? What about this header? | ||
11352 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
11353 | yes:no: ) | ||
11354 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
11355 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
11356 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | ||
11357 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | ||
11358 | ac_header_preproc=yes | ||
11359 | ;; | ||
11360 | no:yes:* ) | ||
11361 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | ||
11362 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | ||
11363 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | ||
11364 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | ||
11365 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | ||
11366 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | ||
11367 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
11368 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
11369 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | ||
11370 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | ||
11371 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | ||
11372 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | ||
11373 | ( cat <<\_ASBOX | ||
11374 | ## ------------------------------------------- ## | ||
11375 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
11376 | ## ------------------------------------------- ## | ||
11377 | _ASBOX | ||
11378 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
11379 | ;; | ||
11380 | esac | ||
11381 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
11382 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | ||
11383 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
11384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11385 | else | ||
11386 | ac_cv_header_zlib_h=$ac_header_preproc | ||
11387 | fi | ||
11388 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
11389 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | ||
11390 | |||
11391 | fi | ||
11392 | if test $ac_cv_header_zlib_h = yes; then | ||
11393 | : | ||
11394 | else | ||
11395 | { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5 | ||
11396 | echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;} | ||
11397 | { (exit 1); exit 1; }; } | ||
11398 | fi | ||
11399 | |||
11400 | |||
11401 | |||
11402 | { echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | ||
11403 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; } | ||
11404 | if test "${ac_cv_lib_z_deflate+set}" = set; then | ||
11405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11406 | else | ||
11407 | ac_check_lib_save_LIBS=$LIBS | ||
11408 | LIBS="-lz $LIBS" | ||
11409 | cat >conftest.$ac_ext <<_ACEOF | ||
11410 | /* confdefs.h. */ | ||
11411 | _ACEOF | ||
11412 | cat confdefs.h >>conftest.$ac_ext | ||
11413 | cat >>conftest.$ac_ext <<_ACEOF | ||
11414 | /* end confdefs.h. */ | ||
11415 | |||
11416 | /* Override any GCC internal prototype to avoid an error. | ||
11417 | Use char because int might match the return type of a GCC | ||
11418 | builtin and then its argument prototype would still apply. */ | ||
11419 | #ifdef __cplusplus | ||
11420 | extern "C" | ||
11421 | #endif | ||
11422 | char deflate (); | ||
11423 | int | ||
11424 | main () | ||
11425 | { | ||
11426 | return deflate (); | ||
11427 | ; | ||
11428 | return 0; | ||
11429 | } | ||
11430 | _ACEOF | ||
11431 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11432 | if { (ac_try="$ac_link" | ||
11433 | case "(($ac_try" in | ||
11434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11435 | *) ac_try_echo=$ac_try;; | ||
11436 | esac | ||
11437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11438 | (eval "$ac_link") 2>conftest.er1 | ||
11439 | ac_status=$? | ||
11440 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11441 | rm -f conftest.er1 | ||
11442 | cat conftest.err >&5 | ||
11443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11444 | (exit $ac_status); } && { | ||
11445 | test -z "$ac_c_werror_flag" || | ||
11446 | test ! -s conftest.err | ||
11447 | } && test -s conftest$ac_exeext && | ||
11448 | $as_test_x conftest$ac_exeext; then | ||
11449 | ac_cv_lib_z_deflate=yes | ||
11450 | else | ||
11451 | echo "$as_me: failed program was:" >&5 | ||
11452 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11453 | |||
11454 | ac_cv_lib_z_deflate=no | ||
11455 | fi | ||
11456 | |||
11457 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11458 | conftest$ac_exeext conftest.$ac_ext | ||
11459 | LIBS=$ac_check_lib_save_LIBS | ||
11460 | fi | ||
11461 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | ||
11462 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; } | ||
11463 | if test $ac_cv_lib_z_deflate = yes; then | ||
11464 | cat >>confdefs.h <<_ACEOF | ||
11465 | #define HAVE_LIBZ 1 | ||
11466 | _ACEOF | ||
11467 | |||
11468 | LIBS="-lz $LIBS" | ||
11469 | |||
11470 | else | ||
11471 | |||
11472 | saved_CPPFLAGS="$CPPFLAGS" | ||
11473 | saved_LDFLAGS="$LDFLAGS" | ||
11474 | save_LIBS="$LIBS" | ||
11475 | if test -n "${need_dash_r}"; then | ||
11476 | LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" | ||
11477 | else | ||
11478 | LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" | ||
11479 | fi | ||
11480 | CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" | ||
11481 | LIBS="$LIBS -lz" | ||
11482 | cat >conftest.$ac_ext <<_ACEOF | ||
11483 | /* confdefs.h. */ | ||
11484 | _ACEOF | ||
11485 | cat confdefs.h >>conftest.$ac_ext | ||
11486 | cat >>conftest.$ac_ext <<_ACEOF | ||
11487 | /* end confdefs.h. */ | ||
11488 | |||
11489 | /* Override any GCC internal prototype to avoid an error. | ||
11490 | Use char because int might match the return type of a GCC | ||
11491 | builtin and then its argument prototype would still apply. */ | ||
11492 | #ifdef __cplusplus | ||
11493 | extern "C" | ||
11494 | #endif | ||
11495 | char deflate (); | ||
11496 | int | ||
11497 | main () | ||
11498 | { | ||
11499 | return deflate (); | ||
11500 | ; | ||
11501 | return 0; | ||
11502 | } | ||
11503 | _ACEOF | ||
11504 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11505 | if { (ac_try="$ac_link" | ||
11506 | case "(($ac_try" in | ||
11507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11508 | *) ac_try_echo=$ac_try;; | ||
11509 | esac | ||
11510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11511 | (eval "$ac_link") 2>conftest.er1 | ||
11512 | ac_status=$? | ||
11513 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11514 | rm -f conftest.er1 | ||
11515 | cat conftest.err >&5 | ||
11516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11517 | (exit $ac_status); } && { | ||
11518 | test -z "$ac_c_werror_flag" || | ||
11519 | test ! -s conftest.err | ||
11520 | } && test -s conftest$ac_exeext && | ||
11521 | $as_test_x conftest$ac_exeext; then | ||
11522 | cat >>confdefs.h <<\_ACEOF | ||
11523 | #define HAVE_LIBZ 1 | ||
11524 | _ACEOF | ||
11525 | |||
11526 | else | ||
11527 | echo "$as_me: failed program was:" >&5 | ||
11528 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11529 | |||
11530 | |||
11531 | { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5 | ||
11532 | echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;} | ||
11533 | { (exit 1); exit 1; }; } | ||
11534 | |||
11535 | |||
11536 | fi | ||
11537 | |||
11538 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11539 | conftest$ac_exeext conftest.$ac_ext | ||
11540 | |||
11541 | |||
11542 | fi | ||
11543 | |||
11544 | |||
11545 | |||
11546 | # Check whether --with-zlib-version-check was given. | ||
11547 | if test "${with_zlib_version_check+set}" = set; then | ||
11548 | withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then | ||
11549 | zlib_check_nonfatal=1 | ||
11550 | fi | ||
11551 | |||
11552 | |||
11553 | fi | ||
11554 | |||
11555 | |||
11556 | { echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5 | ||
11557 | echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; } | ||
11558 | if test "$cross_compiling" = yes; then | ||
11559 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5 | ||
11560 | echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} | ||
11561 | |||
11562 | else | ||
11563 | cat >conftest.$ac_ext <<_ACEOF | ||
11564 | /* confdefs.h. */ | ||
11565 | _ACEOF | ||
11566 | cat confdefs.h >>conftest.$ac_ext | ||
11567 | cat >>conftest.$ac_ext <<_ACEOF | ||
11568 | /* end confdefs.h. */ | ||
11569 | |||
11570 | #include <stdio.h> | ||
11571 | #include <zlib.h> | ||
11572 | int main() | ||
11573 | { | ||
11574 | int a=0, b=0, c=0, d=0, n, v; | ||
11575 | n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d); | ||
11576 | if (n != 3 && n != 4) | ||
11577 | exit(1); | ||
11578 | v = a*1000000 + b*10000 + c*100 + d; | ||
11579 | fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v); | ||
11580 | |||
11581 | /* 1.1.4 is OK */ | ||
11582 | if (a == 1 && b == 1 && c >= 4) | ||
11583 | exit(0); | ||
11584 | |||
11585 | /* 1.2.3 and up are OK */ | ||
11586 | if (v >= 1020300) | ||
11587 | exit(0); | ||
11588 | |||
11589 | exit(2); | ||
11590 | } | ||
11591 | |||
11592 | _ACEOF | ||
11593 | rm -f conftest$ac_exeext | ||
11594 | if { (ac_try="$ac_link" | ||
11595 | case "(($ac_try" in | ||
11596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11597 | *) ac_try_echo=$ac_try;; | ||
11598 | esac | ||
11599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11600 | (eval "$ac_link") 2>&5 | ||
11601 | ac_status=$? | ||
11602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11603 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11604 | { (case "(($ac_try" in | ||
11605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11606 | *) ac_try_echo=$ac_try;; | ||
11607 | esac | ||
11608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11609 | (eval "$ac_try") 2>&5 | ||
11610 | ac_status=$? | ||
11611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11612 | (exit $ac_status); }; }; then | ||
11613 | { echo "$as_me:$LINENO: result: no" >&5 | ||
11614 | echo "${ECHO_T}no" >&6; } | ||
11615 | else | ||
11616 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11617 | echo "$as_me: failed program was:" >&5 | ||
11618 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11619 | |||
11620 | ( exit $ac_status ) | ||
11621 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
11622 | echo "${ECHO_T}yes" >&6; } | ||
11623 | if test -z "$zlib_check_nonfatal" ; then | ||
11624 | { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log *** | ||
11625 | Your reported zlib version has known security problems. It's possible your | ||
11626 | vendor has fixed these problems without changing the version number. If you | ||
11627 | are sure this is the case, you can disable the check by running | ||
11628 | \"./configure --without-zlib-version-check\". | ||
11629 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
11630 | See http://www.gzip.org/zlib/ for details." >&5 | ||
11631 | echo "$as_me: error: *** zlib too old - check config.log *** | ||
11632 | Your reported zlib version has known security problems. It's possible your | ||
11633 | vendor has fixed these problems without changing the version number. If you | ||
11634 | are sure this is the case, you can disable the check by running | ||
11635 | \"./configure --without-zlib-version-check\". | ||
11636 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
11637 | See http://www.gzip.org/zlib/ for details." >&2;} | ||
11638 | { (exit 1); exit 1; }; } | ||
11639 | else | ||
11640 | { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5 | ||
11641 | echo "$as_me: WARNING: zlib version may have security problems" >&2;} | ||
11642 | fi | ||
11643 | |||
11644 | fi | ||
11645 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11646 | fi | ||
11647 | |||
11648 | |||
11649 | |||
11650 | { echo "$as_me:$LINENO: checking for strcasecmp" >&5 | ||
11651 | echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; } | ||
11652 | if test "${ac_cv_func_strcasecmp+set}" = set; then | ||
11653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11654 | else | ||
11655 | cat >conftest.$ac_ext <<_ACEOF | ||
11656 | /* confdefs.h. */ | ||
11657 | _ACEOF | ||
11658 | cat confdefs.h >>conftest.$ac_ext | ||
11659 | cat >>conftest.$ac_ext <<_ACEOF | ||
11660 | /* end confdefs.h. */ | ||
11661 | /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp. | ||
11662 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11663 | #define strcasecmp innocuous_strcasecmp | ||
11664 | |||
11665 | /* System header to define __stub macros and hopefully few prototypes, | ||
11666 | which can conflict with char strcasecmp (); below. | ||
11667 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11668 | <limits.h> exists even on freestanding compilers. */ | ||
11669 | |||
11670 | #ifdef __STDC__ | ||
11671 | # include <limits.h> | ||
11672 | #else | ||
11673 | # include <assert.h> | ||
11674 | #endif | ||
11675 | |||
11676 | #undef strcasecmp | ||
11677 | |||
11678 | /* Override any GCC internal prototype to avoid an error. | ||
11679 | Use char because int might match the return type of a GCC | ||
11680 | builtin and then its argument prototype would still apply. */ | ||
11681 | #ifdef __cplusplus | ||
11682 | extern "C" | ||
11683 | #endif | ||
11684 | char strcasecmp (); | ||
11685 | /* The GNU C library defines this for functions which it implements | ||
11686 | to always fail with ENOSYS. Some functions are actually named | ||
11687 | something starting with __ and the normal name is an alias. */ | ||
11688 | #if defined __stub_strcasecmp || defined __stub___strcasecmp | ||
11689 | choke me | ||
11690 | #endif | ||
11691 | |||
11692 | int | ||
11693 | main () | ||
11694 | { | ||
11695 | return strcasecmp (); | ||
11696 | ; | ||
11697 | return 0; | ||
11698 | } | ||
11699 | _ACEOF | ||
11700 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11701 | if { (ac_try="$ac_link" | ||
11702 | case "(($ac_try" in | ||
11703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11704 | *) ac_try_echo=$ac_try;; | ||
11705 | esac | ||
11706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11707 | (eval "$ac_link") 2>conftest.er1 | ||
11708 | ac_status=$? | ||
11709 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11710 | rm -f conftest.er1 | ||
11711 | cat conftest.err >&5 | ||
11712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11713 | (exit $ac_status); } && { | ||
11714 | test -z "$ac_c_werror_flag" || | ||
11715 | test ! -s conftest.err | ||
11716 | } && test -s conftest$ac_exeext && | ||
11717 | $as_test_x conftest$ac_exeext; then | ||
11718 | ac_cv_func_strcasecmp=yes | ||
11719 | else | ||
11720 | echo "$as_me: failed program was:" >&5 | ||
11721 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11722 | |||
11723 | ac_cv_func_strcasecmp=no | ||
11724 | fi | ||
11725 | |||
11726 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11727 | conftest$ac_exeext conftest.$ac_ext | ||
11728 | fi | ||
11729 | { echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5 | ||
11730 | echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; } | ||
11731 | if test $ac_cv_func_strcasecmp = yes; then | ||
11732 | : | ||
11733 | else | ||
11734 | { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5 | ||
11735 | echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; } | ||
11736 | if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then | ||
11737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11738 | else | ||
11739 | ac_check_lib_save_LIBS=$LIBS | ||
11740 | LIBS="-lresolv $LIBS" | ||
11741 | cat >conftest.$ac_ext <<_ACEOF | ||
11742 | /* confdefs.h. */ | ||
11743 | _ACEOF | ||
11744 | cat confdefs.h >>conftest.$ac_ext | ||
11745 | cat >>conftest.$ac_ext <<_ACEOF | ||
11746 | /* end confdefs.h. */ | ||
11747 | |||
11748 | /* Override any GCC internal prototype to avoid an error. | ||
11749 | Use char because int might match the return type of a GCC | ||
11750 | builtin and then its argument prototype would still apply. */ | ||
11751 | #ifdef __cplusplus | ||
11752 | extern "C" | ||
11753 | #endif | ||
11754 | char strcasecmp (); | ||
11755 | int | ||
11756 | main () | ||
11757 | { | ||
11758 | return strcasecmp (); | ||
11759 | ; | ||
11760 | return 0; | ||
11761 | } | ||
11762 | _ACEOF | ||
11763 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11764 | if { (ac_try="$ac_link" | ||
11765 | case "(($ac_try" in | ||
11766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11767 | *) ac_try_echo=$ac_try;; | ||
11768 | esac | ||
11769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11770 | (eval "$ac_link") 2>conftest.er1 | ||
11771 | ac_status=$? | ||
11772 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11773 | rm -f conftest.er1 | ||
11774 | cat conftest.err >&5 | ||
11775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11776 | (exit $ac_status); } && { | ||
11777 | test -z "$ac_c_werror_flag" || | ||
11778 | test ! -s conftest.err | ||
11779 | } && test -s conftest$ac_exeext && | ||
11780 | $as_test_x conftest$ac_exeext; then | ||
11781 | ac_cv_lib_resolv_strcasecmp=yes | ||
11782 | else | ||
11783 | echo "$as_me: failed program was:" >&5 | ||
11784 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11785 | |||
11786 | ac_cv_lib_resolv_strcasecmp=no | ||
11787 | fi | ||
11788 | |||
11789 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11790 | conftest$ac_exeext conftest.$ac_ext | ||
11791 | LIBS=$ac_check_lib_save_LIBS | ||
11792 | fi | ||
11793 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
11794 | echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; } | ||
11795 | if test $ac_cv_lib_resolv_strcasecmp = yes; then | ||
11796 | LIBS="$LIBS -lresolv" | ||
11797 | fi | ||
11798 | |||
11799 | |||
11800 | fi | ||
11801 | |||
11802 | |||
11803 | for ac_func in utimes | ||
11804 | do | ||
11805 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11806 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11807 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
11808 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11810 | else | ||
11811 | cat >conftest.$ac_ext <<_ACEOF | ||
11812 | /* confdefs.h. */ | ||
11813 | _ACEOF | ||
11814 | cat confdefs.h >>conftest.$ac_ext | ||
11815 | cat >>conftest.$ac_ext <<_ACEOF | ||
11816 | /* end confdefs.h. */ | ||
11817 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11818 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11819 | #define $ac_func innocuous_$ac_func | ||
11820 | |||
11821 | /* System header to define __stub macros and hopefully few prototypes, | ||
11822 | which can conflict with char $ac_func (); below. | ||
11823 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11824 | <limits.h> exists even on freestanding compilers. */ | ||
11825 | |||
11826 | #ifdef __STDC__ | ||
11827 | # include <limits.h> | ||
11828 | #else | ||
11829 | # include <assert.h> | ||
11830 | #endif | ||
11831 | |||
11832 | #undef $ac_func | ||
11833 | |||
11834 | /* Override any GCC internal prototype to avoid an error. | ||
11835 | Use char because int might match the return type of a GCC | ||
11836 | builtin and then its argument prototype would still apply. */ | ||
11837 | #ifdef __cplusplus | ||
11838 | extern "C" | ||
11839 | #endif | ||
11840 | char $ac_func (); | ||
11841 | /* The GNU C library defines this for functions which it implements | ||
11842 | to always fail with ENOSYS. Some functions are actually named | ||
11843 | something starting with __ and the normal name is an alias. */ | ||
11844 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
11845 | choke me | ||
11846 | #endif | ||
11847 | |||
11848 | int | ||
11849 | main () | ||
11850 | { | ||
11851 | return $ac_func (); | ||
11852 | ; | ||
11853 | return 0; | ||
11854 | } | ||
11855 | _ACEOF | ||
11856 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11857 | if { (ac_try="$ac_link" | ||
11858 | case "(($ac_try" in | ||
11859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11860 | *) ac_try_echo=$ac_try;; | ||
11861 | esac | ||
11862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11863 | (eval "$ac_link") 2>conftest.er1 | ||
11864 | ac_status=$? | ||
11865 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11866 | rm -f conftest.er1 | ||
11867 | cat conftest.err >&5 | ||
11868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11869 | (exit $ac_status); } && { | ||
11870 | test -z "$ac_c_werror_flag" || | ||
11871 | test ! -s conftest.err | ||
11872 | } && test -s conftest$ac_exeext && | ||
11873 | $as_test_x conftest$ac_exeext; then | ||
11874 | eval "$as_ac_var=yes" | ||
11875 | else | ||
11876 | echo "$as_me: failed program was:" >&5 | ||
11877 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11878 | |||
11879 | eval "$as_ac_var=no" | ||
11880 | fi | ||
11881 | |||
11882 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11883 | conftest$ac_exeext conftest.$ac_ext | ||
11884 | fi | ||
11885 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
11886 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11887 | echo "${ECHO_T}$ac_res" >&6; } | ||
11888 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11889 | cat >>confdefs.h <<_ACEOF | ||
11890 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11891 | _ACEOF | ||
11892 | |||
11893 | else | ||
11894 | { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5 | ||
11895 | echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; } | ||
11896 | if test "${ac_cv_lib_c89_utimes+set}" = set; then | ||
11897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11898 | else | ||
11899 | ac_check_lib_save_LIBS=$LIBS | ||
11900 | LIBS="-lc89 $LIBS" | ||
11901 | cat >conftest.$ac_ext <<_ACEOF | ||
11902 | /* confdefs.h. */ | ||
11903 | _ACEOF | ||
11904 | cat confdefs.h >>conftest.$ac_ext | ||
11905 | cat >>conftest.$ac_ext <<_ACEOF | ||
11906 | /* end confdefs.h. */ | ||
11907 | |||
11908 | /* Override any GCC internal prototype to avoid an error. | ||
11909 | Use char because int might match the return type of a GCC | ||
11910 | builtin and then its argument prototype would still apply. */ | ||
11911 | #ifdef __cplusplus | ||
11912 | extern "C" | ||
11913 | #endif | ||
11914 | char utimes (); | ||
11915 | int | ||
11916 | main () | ||
11917 | { | ||
11918 | return utimes (); | ||
11919 | ; | ||
11920 | return 0; | ||
11921 | } | ||
11922 | _ACEOF | ||
11923 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11924 | if { (ac_try="$ac_link" | ||
11925 | case "(($ac_try" in | ||
11926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11927 | *) ac_try_echo=$ac_try;; | ||
11928 | esac | ||
11929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11930 | (eval "$ac_link") 2>conftest.er1 | ||
11931 | ac_status=$? | ||
11932 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11933 | rm -f conftest.er1 | ||
11934 | cat conftest.err >&5 | ||
11935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11936 | (exit $ac_status); } && { | ||
11937 | test -z "$ac_c_werror_flag" || | ||
11938 | test ! -s conftest.err | ||
11939 | } && test -s conftest$ac_exeext && | ||
11940 | $as_test_x conftest$ac_exeext; then | ||
11941 | ac_cv_lib_c89_utimes=yes | ||
11942 | else | ||
11943 | echo "$as_me: failed program was:" >&5 | ||
11944 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11945 | |||
11946 | ac_cv_lib_c89_utimes=no | ||
11947 | fi | ||
11948 | |||
11949 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11950 | conftest$ac_exeext conftest.$ac_ext | ||
11951 | LIBS=$ac_check_lib_save_LIBS | ||
11952 | fi | ||
11953 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5 | ||
11954 | echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; } | ||
11955 | if test $ac_cv_lib_c89_utimes = yes; then | ||
11956 | cat >>confdefs.h <<\_ACEOF | ||
11957 | #define HAVE_UTIMES 1 | ||
11958 | _ACEOF | ||
11959 | |||
11960 | LIBS="$LIBS -lc89" | ||
11961 | fi | ||
11962 | |||
11963 | |||
11964 | fi | ||
11965 | done | ||
11966 | |||
11967 | |||
11968 | |||
11969 | for ac_header in libutil.h | ||
11970 | do | ||
11971 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
11972 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11973 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
11974 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
11975 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11977 | fi | ||
11978 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
11979 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11980 | echo "${ECHO_T}$ac_res" >&6; } | ||
11981 | else | ||
11982 | # Is the header compilable? | ||
11983 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
11984 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
11985 | cat >conftest.$ac_ext <<_ACEOF | ||
11986 | /* confdefs.h. */ | ||
11987 | _ACEOF | ||
11988 | cat confdefs.h >>conftest.$ac_ext | ||
11989 | cat >>conftest.$ac_ext <<_ACEOF | ||
11990 | /* end confdefs.h. */ | ||
11991 | $ac_includes_default | ||
11992 | #include <$ac_header> | ||
11993 | _ACEOF | ||
11994 | rm -f conftest.$ac_objext | ||
11995 | if { (ac_try="$ac_compile" | ||
11996 | case "(($ac_try" in | ||
11997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11998 | *) ac_try_echo=$ac_try;; | ||
11999 | esac | ||
12000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12001 | (eval "$ac_compile") 2>conftest.er1 | ||
12002 | ac_status=$? | ||
12003 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12004 | rm -f conftest.er1 | ||
12005 | cat conftest.err >&5 | ||
12006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12007 | (exit $ac_status); } && { | ||
12008 | test -z "$ac_c_werror_flag" || | ||
12009 | test ! -s conftest.err | ||
12010 | } && test -s conftest.$ac_objext; then | ||
12011 | ac_header_compiler=yes | ||
12012 | else | ||
12013 | echo "$as_me: failed program was:" >&5 | ||
12014 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12015 | |||
12016 | ac_header_compiler=no | ||
12017 | fi | ||
12018 | |||
12019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12020 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
12021 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
12022 | |||
12023 | # Is the header present? | ||
12024 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
12025 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
12026 | cat >conftest.$ac_ext <<_ACEOF | ||
12027 | /* confdefs.h. */ | ||
12028 | _ACEOF | ||
12029 | cat confdefs.h >>conftest.$ac_ext | ||
12030 | cat >>conftest.$ac_ext <<_ACEOF | ||
12031 | /* end confdefs.h. */ | ||
12032 | #include <$ac_header> | ||
12033 | _ACEOF | ||
12034 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
12035 | case "(($ac_try" in | ||
12036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12037 | *) ac_try_echo=$ac_try;; | ||
12038 | esac | ||
12039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12040 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
12041 | ac_status=$? | ||
12042 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12043 | rm -f conftest.er1 | ||
12044 | cat conftest.err >&5 | ||
12045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12046 | (exit $ac_status); } >/dev/null && { | ||
12047 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
12048 | test ! -s conftest.err | ||
12049 | }; then | ||
12050 | ac_header_preproc=yes | ||
12051 | else | ||
12052 | echo "$as_me: failed program was:" >&5 | ||
12053 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12054 | |||
12055 | ac_header_preproc=no | ||
12056 | fi | ||
12057 | |||
12058 | rm -f conftest.err conftest.$ac_ext | ||
12059 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
12060 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
12061 | |||
12062 | # So? What about this header? | ||
12063 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
12064 | yes:no: ) | ||
12065 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
12066 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
12067 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
12068 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
12069 | ac_header_preproc=yes | ||
12070 | ;; | ||
12071 | no:yes:* ) | ||
12072 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
12073 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
12074 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
12075 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
12076 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
12077 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
12078 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
12079 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
12080 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
12081 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
12082 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
12083 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
12084 | ( cat <<\_ASBOX | ||
12085 | ## ------------------------------------------- ## | ||
12086 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
12087 | ## ------------------------------------------- ## | ||
12088 | _ASBOX | ||
12089 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
12090 | ;; | ||
12091 | esac | ||
12092 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
12093 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
12094 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12096 | else | ||
12097 | eval "$as_ac_Header=\$ac_header_preproc" | ||
12098 | fi | ||
12099 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
12100 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12101 | echo "${ECHO_T}$ac_res" >&6; } | ||
12102 | |||
12103 | fi | ||
12104 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
12105 | cat >>confdefs.h <<_ACEOF | ||
12106 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
12107 | _ACEOF | ||
12108 | |||
12109 | fi | ||
12110 | |||
12111 | done | ||
12112 | |||
12113 | { echo "$as_me:$LINENO: checking for library containing login" >&5 | ||
12114 | echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; } | ||
12115 | if test "${ac_cv_search_login+set}" = set; then | ||
12116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12117 | else | ||
12118 | ac_func_search_save_LIBS=$LIBS | ||
12119 | cat >conftest.$ac_ext <<_ACEOF | ||
12120 | /* confdefs.h. */ | ||
12121 | _ACEOF | ||
12122 | cat confdefs.h >>conftest.$ac_ext | ||
12123 | cat >>conftest.$ac_ext <<_ACEOF | ||
12124 | /* end confdefs.h. */ | ||
12125 | |||
12126 | /* Override any GCC internal prototype to avoid an error. | ||
12127 | Use char because int might match the return type of a GCC | ||
12128 | builtin and then its argument prototype would still apply. */ | ||
12129 | #ifdef __cplusplus | ||
12130 | extern "C" | ||
12131 | #endif | ||
12132 | char login (); | ||
12133 | int | ||
12134 | main () | ||
12135 | { | ||
12136 | return login (); | ||
12137 | ; | ||
12138 | return 0; | ||
12139 | } | ||
12140 | _ACEOF | ||
12141 | for ac_lib in '' util bsd; do | ||
12142 | if test -z "$ac_lib"; then | ||
12143 | ac_res="none required" | ||
12144 | else | ||
12145 | ac_res=-l$ac_lib | ||
12146 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
12147 | fi | ||
12148 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12149 | if { (ac_try="$ac_link" | ||
12150 | case "(($ac_try" in | ||
12151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12152 | *) ac_try_echo=$ac_try;; | ||
12153 | esac | ||
12154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12155 | (eval "$ac_link") 2>conftest.er1 | ||
12156 | ac_status=$? | ||
12157 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12158 | rm -f conftest.er1 | ||
12159 | cat conftest.err >&5 | ||
12160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12161 | (exit $ac_status); } && { | ||
12162 | test -z "$ac_c_werror_flag" || | ||
12163 | test ! -s conftest.err | ||
12164 | } && test -s conftest$ac_exeext && | ||
12165 | $as_test_x conftest$ac_exeext; then | ||
12166 | ac_cv_search_login=$ac_res | ||
12167 | else | ||
12168 | echo "$as_me: failed program was:" >&5 | ||
12169 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12170 | |||
12171 | |||
12172 | fi | ||
12173 | |||
12174 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12175 | conftest$ac_exeext | ||
12176 | if test "${ac_cv_search_login+set}" = set; then | ||
12177 | break | ||
12178 | fi | ||
12179 | done | ||
12180 | if test "${ac_cv_search_login+set}" = set; then | ||
12181 | : | ||
12182 | else | ||
12183 | ac_cv_search_login=no | ||
12184 | fi | ||
12185 | rm conftest.$ac_ext | ||
12186 | LIBS=$ac_func_search_save_LIBS | ||
12187 | fi | ||
12188 | { echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5 | ||
12189 | echo "${ECHO_T}$ac_cv_search_login" >&6; } | ||
12190 | ac_res=$ac_cv_search_login | ||
12191 | if test "$ac_res" != no; then | ||
12192 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
12193 | |||
12194 | cat >>confdefs.h <<\_ACEOF | ||
12195 | #define HAVE_LOGIN 1 | ||
12196 | _ACEOF | ||
12197 | |||
12198 | fi | ||
12199 | |||
12200 | |||
12201 | |||
12202 | |||
12203 | |||
12204 | for ac_func in fmt_scaled logout updwtmp logwtmp | ||
12205 | do | ||
12206 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12207 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12208 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
12209 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12210 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12211 | else | ||
12212 | cat >conftest.$ac_ext <<_ACEOF | ||
12213 | /* confdefs.h. */ | ||
12214 | _ACEOF | ||
12215 | cat confdefs.h >>conftest.$ac_ext | ||
12216 | cat >>conftest.$ac_ext <<_ACEOF | ||
12217 | /* end confdefs.h. */ | ||
12218 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12219 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12220 | #define $ac_func innocuous_$ac_func | ||
12221 | |||
12222 | /* System header to define __stub macros and hopefully few prototypes, | ||
12223 | which can conflict with char $ac_func (); below. | ||
12224 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12225 | <limits.h> exists even on freestanding compilers. */ | ||
12226 | |||
12227 | #ifdef __STDC__ | ||
12228 | # include <limits.h> | ||
12229 | #else | ||
12230 | # include <assert.h> | ||
12231 | #endif | ||
12232 | |||
12233 | #undef $ac_func | ||
12234 | |||
12235 | /* Override any GCC internal prototype to avoid an error. | ||
12236 | Use char because int might match the return type of a GCC | ||
12237 | builtin and then its argument prototype would still apply. */ | ||
12238 | #ifdef __cplusplus | ||
12239 | extern "C" | ||
12240 | #endif | ||
12241 | char $ac_func (); | ||
12242 | /* The GNU C library defines this for functions which it implements | ||
12243 | to always fail with ENOSYS. Some functions are actually named | ||
12244 | something starting with __ and the normal name is an alias. */ | ||
12245 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
12246 | choke me | ||
12247 | #endif | ||
12248 | |||
12249 | int | ||
12250 | main () | ||
12251 | { | ||
12252 | return $ac_func (); | ||
12253 | ; | ||
12254 | return 0; | ||
12255 | } | ||
12256 | _ACEOF | ||
12257 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12258 | if { (ac_try="$ac_link" | ||
12259 | case "(($ac_try" in | ||
12260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12261 | *) ac_try_echo=$ac_try;; | ||
12262 | esac | ||
12263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12264 | (eval "$ac_link") 2>conftest.er1 | ||
12265 | ac_status=$? | ||
12266 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12267 | rm -f conftest.er1 | ||
12268 | cat conftest.err >&5 | ||
12269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12270 | (exit $ac_status); } && { | ||
12271 | test -z "$ac_c_werror_flag" || | ||
12272 | test ! -s conftest.err | ||
12273 | } && test -s conftest$ac_exeext && | ||
12274 | $as_test_x conftest$ac_exeext; then | ||
12275 | eval "$as_ac_var=yes" | ||
12276 | else | ||
12277 | echo "$as_me: failed program was:" >&5 | ||
12278 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12279 | |||
12280 | eval "$as_ac_var=no" | ||
12281 | fi | ||
12282 | |||
12283 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12284 | conftest$ac_exeext conftest.$ac_ext | ||
12285 | fi | ||
12286 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
12287 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12288 | echo "${ECHO_T}$ac_res" >&6; } | ||
12289 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12290 | cat >>confdefs.h <<_ACEOF | ||
12291 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12292 | _ACEOF | ||
12293 | |||
12294 | fi | ||
12295 | done | ||
12296 | |||
12297 | |||
12298 | |||
12299 | for ac_func in strftime | ||
12300 | do | ||
12301 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12302 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12303 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
12304 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12306 | else | ||
12307 | cat >conftest.$ac_ext <<_ACEOF | ||
12308 | /* confdefs.h. */ | ||
12309 | _ACEOF | ||
12310 | cat confdefs.h >>conftest.$ac_ext | ||
12311 | cat >>conftest.$ac_ext <<_ACEOF | ||
12312 | /* end confdefs.h. */ | ||
12313 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12314 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12315 | #define $ac_func innocuous_$ac_func | ||
12316 | |||
12317 | /* System header to define __stub macros and hopefully few prototypes, | ||
12318 | which can conflict with char $ac_func (); below. | ||
12319 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12320 | <limits.h> exists even on freestanding compilers. */ | ||
12321 | |||
12322 | #ifdef __STDC__ | ||
12323 | # include <limits.h> | ||
12324 | #else | ||
12325 | # include <assert.h> | ||
12326 | #endif | ||
12327 | |||
12328 | #undef $ac_func | ||
12329 | |||
12330 | /* Override any GCC internal prototype to avoid an error. | ||
12331 | Use char because int might match the return type of a GCC | ||
12332 | builtin and then its argument prototype would still apply. */ | ||
12333 | #ifdef __cplusplus | ||
12334 | extern "C" | ||
12335 | #endif | ||
12336 | char $ac_func (); | ||
12337 | /* The GNU C library defines this for functions which it implements | ||
12338 | to always fail with ENOSYS. Some functions are actually named | ||
12339 | something starting with __ and the normal name is an alias. */ | ||
12340 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
12341 | choke me | ||
12342 | #endif | ||
12343 | |||
12344 | int | ||
12345 | main () | ||
12346 | { | ||
12347 | return $ac_func (); | ||
12348 | ; | ||
12349 | return 0; | ||
12350 | } | ||
12351 | _ACEOF | ||
12352 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12353 | if { (ac_try="$ac_link" | ||
12354 | case "(($ac_try" in | ||
12355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12356 | *) ac_try_echo=$ac_try;; | ||
12357 | esac | ||
12358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12359 | (eval "$ac_link") 2>conftest.er1 | ||
12360 | ac_status=$? | ||
12361 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12362 | rm -f conftest.er1 | ||
12363 | cat conftest.err >&5 | ||
12364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12365 | (exit $ac_status); } && { | ||
12366 | test -z "$ac_c_werror_flag" || | ||
12367 | test ! -s conftest.err | ||
12368 | } && test -s conftest$ac_exeext && | ||
12369 | $as_test_x conftest$ac_exeext; then | ||
12370 | eval "$as_ac_var=yes" | ||
12371 | else | ||
12372 | echo "$as_me: failed program was:" >&5 | ||
12373 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12374 | |||
12375 | eval "$as_ac_var=no" | ||
12376 | fi | ||
12377 | |||
12378 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12379 | conftest$ac_exeext conftest.$ac_ext | ||
12380 | fi | ||
12381 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
12382 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12383 | echo "${ECHO_T}$ac_res" >&6; } | ||
12384 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12385 | cat >>confdefs.h <<_ACEOF | ||
12386 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12387 | _ACEOF | ||
12388 | |||
12389 | else | ||
12390 | # strftime is in -lintl on SCO UNIX. | ||
12391 | { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | ||
12392 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; } | ||
12393 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | ||
12394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12395 | else | ||
12396 | ac_check_lib_save_LIBS=$LIBS | ||
12397 | LIBS="-lintl $LIBS" | ||
12398 | cat >conftest.$ac_ext <<_ACEOF | ||
12399 | /* confdefs.h. */ | ||
12400 | _ACEOF | ||
12401 | cat confdefs.h >>conftest.$ac_ext | ||
12402 | cat >>conftest.$ac_ext <<_ACEOF | ||
12403 | /* end confdefs.h. */ | ||
12404 | |||
12405 | /* Override any GCC internal prototype to avoid an error. | ||
12406 | Use char because int might match the return type of a GCC | ||
12407 | builtin and then its argument prototype would still apply. */ | ||
12408 | #ifdef __cplusplus | ||
12409 | extern "C" | ||
12410 | #endif | ||
12411 | char strftime (); | ||
12412 | int | ||
12413 | main () | ||
12414 | { | ||
12415 | return strftime (); | ||
12416 | ; | ||
12417 | return 0; | ||
12418 | } | ||
12419 | _ACEOF | ||
12420 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12421 | if { (ac_try="$ac_link" | ||
12422 | case "(($ac_try" in | ||
12423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12424 | *) ac_try_echo=$ac_try;; | ||
12425 | esac | ||
12426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12427 | (eval "$ac_link") 2>conftest.er1 | ||
12428 | ac_status=$? | ||
12429 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12430 | rm -f conftest.er1 | ||
12431 | cat conftest.err >&5 | ||
12432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12433 | (exit $ac_status); } && { | ||
12434 | test -z "$ac_c_werror_flag" || | ||
12435 | test ! -s conftest.err | ||
12436 | } && test -s conftest$ac_exeext && | ||
12437 | $as_test_x conftest$ac_exeext; then | ||
12438 | ac_cv_lib_intl_strftime=yes | ||
12439 | else | ||
12440 | echo "$as_me: failed program was:" >&5 | ||
12441 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12442 | |||
12443 | ac_cv_lib_intl_strftime=no | ||
12444 | fi | ||
12445 | |||
12446 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12447 | conftest$ac_exeext conftest.$ac_ext | ||
12448 | LIBS=$ac_check_lib_save_LIBS | ||
12449 | fi | ||
12450 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | ||
12451 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; } | ||
12452 | if test $ac_cv_lib_intl_strftime = yes; then | ||
12453 | cat >>confdefs.h <<\_ACEOF | ||
12454 | #define HAVE_STRFTIME 1 | ||
12455 | _ACEOF | ||
12456 | |||
12457 | LIBS="-lintl $LIBS" | ||
12458 | fi | ||
12459 | |||
12460 | fi | ||
12461 | done | ||
12462 | |||
12463 | |||
12464 | # Check for ALTDIRFUNC glob() extension | ||
12465 | { echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5 | ||
12466 | echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; } | ||
12467 | cat >conftest.$ac_ext <<_ACEOF | ||
12468 | /* confdefs.h. */ | ||
12469 | _ACEOF | ||
12470 | cat confdefs.h >>conftest.$ac_ext | ||
12471 | cat >>conftest.$ac_ext <<_ACEOF | ||
12472 | /* end confdefs.h. */ | ||
12473 | |||
12474 | #include <glob.h> | ||
12475 | #ifdef GLOB_ALTDIRFUNC | ||
12476 | FOUNDIT | ||
12477 | #endif | ||
12478 | |||
12479 | _ACEOF | ||
12480 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12481 | $EGREP "FOUNDIT" >/dev/null 2>&1; then | ||
12482 | |||
12483 | |||
12484 | cat >>confdefs.h <<\_ACEOF | ||
12485 | #define GLOB_HAS_ALTDIRFUNC 1 | ||
12486 | _ACEOF | ||
12487 | |||
12488 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12489 | echo "${ECHO_T}yes" >&6; } | ||
12490 | |||
12491 | else | ||
12492 | |||
12493 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12494 | echo "${ECHO_T}no" >&6; } | ||
12495 | |||
12496 | |||
12497 | fi | ||
12498 | rm -f conftest* | ||
12499 | |||
12500 | |||
12501 | # Check for g.gl_matchc glob() extension | ||
12502 | { echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5 | ||
12503 | echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; } | ||
12504 | cat >conftest.$ac_ext <<_ACEOF | ||
12505 | /* confdefs.h. */ | ||
12506 | _ACEOF | ||
12507 | cat confdefs.h >>conftest.$ac_ext | ||
12508 | cat >>conftest.$ac_ext <<_ACEOF | ||
12509 | /* end confdefs.h. */ | ||
12510 | #include <glob.h> | ||
12511 | int | ||
12512 | main () | ||
12513 | { | ||
12514 | glob_t g; g.gl_matchc = 1; | ||
12515 | ; | ||
12516 | return 0; | ||
12517 | } | ||
12518 | _ACEOF | ||
12519 | rm -f conftest.$ac_objext | ||
12520 | if { (ac_try="$ac_compile" | ||
12521 | case "(($ac_try" in | ||
12522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12523 | *) ac_try_echo=$ac_try;; | ||
12524 | esac | ||
12525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12526 | (eval "$ac_compile") 2>conftest.er1 | ||
12527 | ac_status=$? | ||
12528 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12529 | rm -f conftest.er1 | ||
12530 | cat conftest.err >&5 | ||
12531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12532 | (exit $ac_status); } && { | ||
12533 | test -z "$ac_c_werror_flag" || | ||
12534 | test ! -s conftest.err | ||
12535 | } && test -s conftest.$ac_objext; then | ||
12536 | |||
12537 | |||
12538 | cat >>confdefs.h <<\_ACEOF | ||
12539 | #define GLOB_HAS_GL_MATCHC 1 | ||
12540 | _ACEOF | ||
12541 | |||
12542 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12543 | echo "${ECHO_T}yes" >&6; } | ||
12544 | |||
12545 | else | ||
12546 | echo "$as_me: failed program was:" >&5 | ||
12547 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12548 | |||
12549 | |||
12550 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12551 | echo "${ECHO_T}no" >&6; } | ||
12552 | |||
12553 | |||
12554 | fi | ||
12555 | |||
12556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12557 | |||
12558 | # Check for g.gl_statv glob() extension | ||
12559 | { echo "$as_me:$LINENO: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5 | ||
12560 | echo $ECHO_N "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... $ECHO_C" >&6; } | ||
12561 | cat >conftest.$ac_ext <<_ACEOF | ||
12562 | /* confdefs.h. */ | ||
12563 | _ACEOF | ||
12564 | cat confdefs.h >>conftest.$ac_ext | ||
12565 | cat >>conftest.$ac_ext <<_ACEOF | ||
12566 | /* end confdefs.h. */ | ||
12567 | #include <glob.h> | ||
12568 | int | ||
12569 | main () | ||
12570 | { | ||
12571 | |||
12572 | #ifndef GLOB_KEEPSTAT | ||
12573 | #error "glob does not support GLOB_KEEPSTAT extension" | ||
12574 | #endif | ||
12575 | glob_t g; | ||
12576 | g.gl_statv = NULL; | ||
12577 | |||
12578 | ; | ||
12579 | return 0; | ||
12580 | } | ||
12581 | _ACEOF | ||
12582 | rm -f conftest.$ac_objext | ||
12583 | if { (ac_try="$ac_compile" | ||
12584 | case "(($ac_try" in | ||
12585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12586 | *) ac_try_echo=$ac_try;; | ||
12587 | esac | ||
12588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12589 | (eval "$ac_compile") 2>conftest.er1 | ||
12590 | ac_status=$? | ||
12591 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12592 | rm -f conftest.er1 | ||
12593 | cat conftest.err >&5 | ||
12594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12595 | (exit $ac_status); } && { | ||
12596 | test -z "$ac_c_werror_flag" || | ||
12597 | test ! -s conftest.err | ||
12598 | } && test -s conftest.$ac_objext; then | ||
12599 | |||
12600 | |||
12601 | cat >>confdefs.h <<\_ACEOF | ||
12602 | #define GLOB_HAS_GL_STATV 1 | ||
12603 | _ACEOF | ||
12604 | |||
12605 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12606 | echo "${ECHO_T}yes" >&6; } | ||
12607 | |||
12608 | else | ||
12609 | echo "$as_me: failed program was:" >&5 | ||
12610 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12611 | |||
12612 | |||
12613 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12614 | echo "${ECHO_T}no" >&6; } | ||
12615 | |||
12616 | |||
12617 | fi | ||
12618 | |||
12619 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12620 | |||
12621 | { echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5 | ||
12622 | echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; } | ||
12623 | if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then | ||
12624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12625 | else | ||
12626 | cat >conftest.$ac_ext <<_ACEOF | ||
12627 | /* confdefs.h. */ | ||
12628 | _ACEOF | ||
12629 | cat confdefs.h >>conftest.$ac_ext | ||
12630 | cat >>conftest.$ac_ext <<_ACEOF | ||
12631 | /* end confdefs.h. */ | ||
12632 | #include <glob.h> | ||
12633 | |||
12634 | int | ||
12635 | main () | ||
12636 | { | ||
12637 | #ifndef GLOB_NOMATCH | ||
12638 | (void) GLOB_NOMATCH; | ||
12639 | #endif | ||
12640 | |||
12641 | ; | ||
12642 | return 0; | ||
12643 | } | ||
12644 | _ACEOF | ||
12645 | rm -f conftest.$ac_objext | ||
12646 | if { (ac_try="$ac_compile" | ||
12647 | case "(($ac_try" in | ||
12648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12649 | *) ac_try_echo=$ac_try;; | ||
12650 | esac | ||
12651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12652 | (eval "$ac_compile") 2>conftest.er1 | ||
12653 | ac_status=$? | ||
12654 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12655 | rm -f conftest.er1 | ||
12656 | cat conftest.err >&5 | ||
12657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12658 | (exit $ac_status); } && { | ||
12659 | test -z "$ac_c_werror_flag" || | ||
12660 | test ! -s conftest.err | ||
12661 | } && test -s conftest.$ac_objext; then | ||
12662 | ac_cv_have_decl_GLOB_NOMATCH=yes | ||
12663 | else | ||
12664 | echo "$as_me: failed program was:" >&5 | ||
12665 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12666 | |||
12667 | ac_cv_have_decl_GLOB_NOMATCH=no | ||
12668 | fi | ||
12669 | |||
12670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12671 | fi | ||
12672 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5 | ||
12673 | echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; } | ||
12674 | if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then | ||
12675 | |||
12676 | cat >>confdefs.h <<_ACEOF | ||
12677 | #define HAVE_DECL_GLOB_NOMATCH 1 | ||
12678 | _ACEOF | ||
12679 | |||
12680 | |||
12681 | else | ||
12682 | cat >>confdefs.h <<_ACEOF | ||
12683 | #define HAVE_DECL_GLOB_NOMATCH 0 | ||
12684 | _ACEOF | ||
12685 | |||
12686 | |||
12687 | fi | ||
12688 | |||
12689 | |||
12690 | |||
12691 | { echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5 | ||
12692 | echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; } | ||
12693 | if test "$cross_compiling" = yes; then | ||
12694 | |||
12695 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5 | ||
12696 | echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;} | ||
12697 | cat >>confdefs.h <<\_ACEOF | ||
12698 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
12699 | _ACEOF | ||
12700 | |||
12701 | |||
12702 | |||
12703 | else | ||
12704 | cat >conftest.$ac_ext <<_ACEOF | ||
12705 | /* confdefs.h. */ | ||
12706 | _ACEOF | ||
12707 | cat confdefs.h >>conftest.$ac_ext | ||
12708 | cat >>conftest.$ac_ext <<_ACEOF | ||
12709 | /* end confdefs.h. */ | ||
12710 | |||
12711 | #include <sys/types.h> | ||
12712 | #include <dirent.h> | ||
12713 | int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));} | ||
12714 | |||
12715 | _ACEOF | ||
12716 | rm -f conftest$ac_exeext | ||
12717 | if { (ac_try="$ac_link" | ||
12718 | case "(($ac_try" in | ||
12719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12720 | *) ac_try_echo=$ac_try;; | ||
12721 | esac | ||
12722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12723 | (eval "$ac_link") 2>&5 | ||
12724 | ac_status=$? | ||
12725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12726 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
12727 | { (case "(($ac_try" in | ||
12728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12729 | *) ac_try_echo=$ac_try;; | ||
12730 | esac | ||
12731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12732 | (eval "$ac_try") 2>&5 | ||
12733 | ac_status=$? | ||
12734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12735 | (exit $ac_status); }; }; then | ||
12736 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12737 | echo "${ECHO_T}yes" >&6; } | ||
12738 | else | ||
12739 | echo "$as_me: program exited with status $ac_status" >&5 | ||
12740 | echo "$as_me: failed program was:" >&5 | ||
12741 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12742 | |||
12743 | ( exit $ac_status ) | ||
12744 | |||
12745 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12746 | echo "${ECHO_T}no" >&6; } | ||
12747 | |||
12748 | cat >>confdefs.h <<\_ACEOF | ||
12749 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
12750 | _ACEOF | ||
12751 | |||
12752 | |||
12753 | fi | ||
12754 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
12755 | fi | ||
12756 | |||
12757 | |||
12758 | |||
12759 | { echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5 | ||
12760 | echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; } | ||
12761 | if test -d "/proc/$$/fd" ; then | ||
12762 | |||
12763 | cat >>confdefs.h <<\_ACEOF | ||
12764 | #define HAVE_PROC_PID 1 | ||
12765 | _ACEOF | ||
12766 | |||
12767 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12768 | echo "${ECHO_T}yes" >&6; } | ||
12769 | else | ||
12770 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12771 | echo "${ECHO_T}no" >&6; } | ||
12772 | fi | ||
12773 | |||
12774 | # Check whether user wants S/Key support | ||
12775 | SKEY_MSG="no" | ||
12776 | |||
12777 | # Check whether --with-skey was given. | ||
12778 | if test "${with_skey+set}" = set; then | ||
12779 | withval=$with_skey; | ||
12780 | if test "x$withval" != "xno" ; then | ||
12781 | |||
12782 | if test "x$withval" != "xyes" ; then | ||
12783 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
12784 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
12785 | fi | ||
12786 | |||
12787 | |||
12788 | cat >>confdefs.h <<\_ACEOF | ||
12789 | #define SKEY 1 | ||
12790 | _ACEOF | ||
12791 | |||
12792 | LIBS="-lskey $LIBS" | ||
12793 | SKEY_MSG="yes" | ||
12794 | |||
12795 | { echo "$as_me:$LINENO: checking for s/key support" >&5 | ||
12796 | echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; } | ||
12797 | cat >conftest.$ac_ext <<_ACEOF | ||
12798 | /* confdefs.h. */ | ||
12799 | _ACEOF | ||
12800 | cat confdefs.h >>conftest.$ac_ext | ||
12801 | cat >>conftest.$ac_ext <<_ACEOF | ||
12802 | /* end confdefs.h. */ | ||
12803 | |||
12804 | #include <stdio.h> | ||
12805 | #include <skey.h> | ||
12806 | int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); } | ||
12807 | |||
12808 | _ACEOF | ||
12809 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12810 | if { (ac_try="$ac_link" | ||
12811 | case "(($ac_try" in | ||
12812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12813 | *) ac_try_echo=$ac_try;; | ||
12814 | esac | ||
12815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12816 | (eval "$ac_link") 2>conftest.er1 | ||
12817 | ac_status=$? | ||
12818 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12819 | rm -f conftest.er1 | ||
12820 | cat conftest.err >&5 | ||
12821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12822 | (exit $ac_status); } && { | ||
12823 | test -z "$ac_c_werror_flag" || | ||
12824 | test ! -s conftest.err | ||
12825 | } && test -s conftest$ac_exeext && | ||
12826 | $as_test_x conftest$ac_exeext; then | ||
12827 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12828 | echo "${ECHO_T}yes" >&6; } | ||
12829 | else | ||
12830 | echo "$as_me: failed program was:" >&5 | ||
12831 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12832 | |||
12833 | |||
12834 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12835 | echo "${ECHO_T}no" >&6; } | ||
12836 | { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5 | ||
12837 | echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;} | ||
12838 | { (exit 1); exit 1; }; } | ||
12839 | |||
12840 | fi | ||
12841 | |||
12842 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12843 | conftest$ac_exeext conftest.$ac_ext | ||
12844 | { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5 | ||
12845 | echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; } | ||
12846 | cat >conftest.$ac_ext <<_ACEOF | ||
12847 | /* confdefs.h. */ | ||
12848 | _ACEOF | ||
12849 | cat confdefs.h >>conftest.$ac_ext | ||
12850 | cat >>conftest.$ac_ext <<_ACEOF | ||
12851 | /* end confdefs.h. */ | ||
12852 | #include <stdio.h> | ||
12853 | #include <skey.h> | ||
12854 | int | ||
12855 | main () | ||
12856 | { | ||
12857 | (void)skeychallenge(NULL,"name","",0); | ||
12858 | ; | ||
12859 | return 0; | ||
12860 | } | ||
12861 | _ACEOF | ||
12862 | rm -f conftest.$ac_objext | ||
12863 | if { (ac_try="$ac_compile" | ||
12864 | case "(($ac_try" in | ||
12865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12866 | *) ac_try_echo=$ac_try;; | ||
12867 | esac | ||
12868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12869 | (eval "$ac_compile") 2>conftest.er1 | ||
12870 | ac_status=$? | ||
12871 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12872 | rm -f conftest.er1 | ||
12873 | cat conftest.err >&5 | ||
12874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12875 | (exit $ac_status); } && { | ||
12876 | test -z "$ac_c_werror_flag" || | ||
12877 | test ! -s conftest.err | ||
12878 | } && test -s conftest.$ac_objext; then | ||
12879 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12880 | echo "${ECHO_T}yes" >&6; } | ||
12881 | |||
12882 | cat >>confdefs.h <<\_ACEOF | ||
12883 | #define SKEYCHALLENGE_4ARG 1 | ||
12884 | _ACEOF | ||
12885 | |||
12886 | else | ||
12887 | echo "$as_me: failed program was:" >&5 | ||
12888 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12889 | |||
12890 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12891 | echo "${ECHO_T}no" >&6; } | ||
12892 | |||
12893 | fi | ||
12894 | |||
12895 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12896 | fi | ||
12897 | |||
12898 | |||
12899 | fi | ||
12900 | |||
12901 | |||
12902 | # Check whether user wants TCP wrappers support | ||
12903 | TCPW_MSG="no" | ||
12904 | |||
12905 | # Check whether --with-tcp-wrappers was given. | ||
12906 | if test "${with_tcp_wrappers+set}" = set; then | ||
12907 | withval=$with_tcp_wrappers; | ||
12908 | if test "x$withval" != "xno" ; then | ||
12909 | saved_LIBS="$LIBS" | ||
12910 | saved_LDFLAGS="$LDFLAGS" | ||
12911 | saved_CPPFLAGS="$CPPFLAGS" | ||
12912 | if test -n "${withval}" && \ | ||
12913 | test "x${withval}" != "xyes"; then | ||
12914 | if test -d "${withval}/lib"; then | ||
12915 | if test -n "${need_dash_r}"; then | ||
12916 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
12917 | else | ||
12918 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
12919 | fi | ||
12920 | else | ||
12921 | if test -n "${need_dash_r}"; then | ||
12922 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
12923 | else | ||
12924 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
12925 | fi | ||
12926 | fi | ||
12927 | if test -d "${withval}/include"; then | ||
12928 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
12929 | else | ||
12930 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
12931 | fi | ||
12932 | fi | ||
12933 | LIBS="-lwrap $LIBS" | ||
12934 | { echo "$as_me:$LINENO: checking for libwrap" >&5 | ||
12935 | echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; } | ||
12936 | cat >conftest.$ac_ext <<_ACEOF | ||
12937 | /* confdefs.h. */ | ||
12938 | _ACEOF | ||
12939 | cat confdefs.h >>conftest.$ac_ext | ||
12940 | cat >>conftest.$ac_ext <<_ACEOF | ||
12941 | /* end confdefs.h. */ | ||
12942 | |||
12943 | #include <sys/types.h> | ||
12944 | #include <sys/socket.h> | ||
12945 | #include <netinet/in.h> | ||
12946 | #include <tcpd.h> | ||
12947 | int deny_severity = 0, allow_severity = 0; | ||
12948 | |||
12949 | int | ||
12950 | main () | ||
12951 | { | ||
12952 | hosts_access(0); | ||
12953 | ; | ||
12954 | return 0; | ||
12955 | } | ||
12956 | _ACEOF | ||
12957 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12958 | if { (ac_try="$ac_link" | ||
12959 | case "(($ac_try" in | ||
12960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12961 | *) ac_try_echo=$ac_try;; | ||
12962 | esac | ||
12963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12964 | (eval "$ac_link") 2>conftest.er1 | ||
12965 | ac_status=$? | ||
12966 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12967 | rm -f conftest.er1 | ||
12968 | cat conftest.err >&5 | ||
12969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12970 | (exit $ac_status); } && { | ||
12971 | test -z "$ac_c_werror_flag" || | ||
12972 | test ! -s conftest.err | ||
12973 | } && test -s conftest$ac_exeext && | ||
12974 | $as_test_x conftest$ac_exeext; then | ||
12975 | |||
12976 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12977 | echo "${ECHO_T}yes" >&6; } | ||
12978 | |||
12979 | cat >>confdefs.h <<\_ACEOF | ||
12980 | #define LIBWRAP 1 | ||
12981 | _ACEOF | ||
12982 | |||
12983 | SSHDLIBS="$SSHDLIBS -lwrap" | ||
12984 | TCPW_MSG="yes" | ||
12985 | |||
12986 | else | ||
12987 | echo "$as_me: failed program was:" >&5 | ||
12988 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12989 | |||
12990 | |||
12991 | { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5 | ||
12992 | echo "$as_me: error: *** libwrap missing" >&2;} | ||
12993 | { (exit 1); exit 1; }; } | ||
12994 | |||
12995 | |||
12996 | fi | ||
12997 | |||
12998 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12999 | conftest$ac_exeext conftest.$ac_ext | ||
13000 | LIBS="$saved_LIBS" | ||
13001 | fi | ||
13002 | |||
13003 | |||
13004 | fi | ||
13005 | |||
13006 | |||
13007 | # Check whether user wants libedit support | ||
13008 | LIBEDIT_MSG="no" | ||
13009 | |||
13010 | # Check whether --with-libedit was given. | ||
13011 | if test "${with_libedit+set}" = set; then | ||
13012 | withval=$with_libedit; if test "x$withval" != "xno" ; then | ||
13013 | if test "x$withval" = "xyes" ; then | ||
13014 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
13015 | set dummy pkg-config; ac_word=$2 | ||
13016 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
13017 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
13018 | if test "${ac_cv_path_PKGCONFIG+set}" = set; then | ||
13019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13020 | else | ||
13021 | case $PKGCONFIG in | ||
13022 | [\\/]* | ?:[\\/]*) | ||
13023 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. | ||
13024 | ;; | ||
13025 | *) | ||
13026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13027 | for as_dir in $PATH | ||
13028 | do | ||
13029 | IFS=$as_save_IFS | ||
13030 | test -z "$as_dir" && as_dir=. | ||
13031 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
13032 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
13033 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
13034 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
13035 | break 2 | ||
13036 | fi | ||
13037 | done | ||
13038 | done | ||
13039 | IFS=$as_save_IFS | ||
13040 | |||
13041 | test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no" | ||
13042 | ;; | ||
13043 | esac | ||
13044 | fi | ||
13045 | PKGCONFIG=$ac_cv_path_PKGCONFIG | ||
13046 | if test -n "$PKGCONFIG"; then | ||
13047 | { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5 | ||
13048 | echo "${ECHO_T}$PKGCONFIG" >&6; } | ||
13049 | else | ||
13050 | { echo "$as_me:$LINENO: result: no" >&5 | ||
13051 | echo "${ECHO_T}no" >&6; } | ||
13052 | fi | ||
13053 | |||
13054 | |||
13055 | if test "x$PKGCONFIG" != "xno"; then | ||
13056 | { echo "$as_me:$LINENO: checking if $PKGCONFIG knows about libedit" >&5 | ||
13057 | echo $ECHO_N "checking if $PKGCONFIG knows about libedit... $ECHO_C" >&6; } | ||
13058 | if "$PKGCONFIG" libedit; then | ||
13059 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
13060 | echo "${ECHO_T}yes" >&6; } | ||
13061 | use_pkgconfig_for_libedit=yes | ||
13062 | else | ||
13063 | { echo "$as_me:$LINENO: result: no" >&5 | ||
13064 | echo "${ECHO_T}no" >&6; } | ||
13065 | fi | ||
13066 | fi | ||
13067 | else | ||
13068 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
13069 | if test -n "${need_dash_r}"; then | ||
13070 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
13071 | else | ||
13072 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
13073 | fi | ||
13074 | fi | ||
13075 | if test "x$use_pkgconfig_for_libedit" = "xyes"; then | ||
13076 | LIBEDIT=`$PKGCONFIG --libs-only-l libedit` | ||
13077 | CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`" | ||
13078 | else | ||
13079 | LIBEDIT="-ledit -lcurses" | ||
13080 | fi | ||
13081 | OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'` | ||
13082 | { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5 | ||
13083 | echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; } | ||
13084 | if test "${ac_cv_lib_edit_el_init+set}" = set; then | ||
13085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13086 | else | ||
13087 | ac_check_lib_save_LIBS=$LIBS | ||
13088 | LIBS="-ledit $OTHERLIBS | ||
13089 | $LIBS" | ||
13090 | cat >conftest.$ac_ext <<_ACEOF | ||
13091 | /* confdefs.h. */ | ||
13092 | _ACEOF | ||
13093 | cat confdefs.h >>conftest.$ac_ext | ||
13094 | cat >>conftest.$ac_ext <<_ACEOF | ||
13095 | /* end confdefs.h. */ | ||
13096 | |||
13097 | /* Override any GCC internal prototype to avoid an error. | ||
13098 | Use char because int might match the return type of a GCC | ||
13099 | builtin and then its argument prototype would still apply. */ | ||
13100 | #ifdef __cplusplus | ||
13101 | extern "C" | ||
13102 | #endif | ||
13103 | char el_init (); | ||
13104 | int | ||
13105 | main () | ||
13106 | { | ||
13107 | return el_init (); | ||
13108 | ; | ||
13109 | return 0; | ||
13110 | } | ||
13111 | _ACEOF | ||
13112 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13113 | if { (ac_try="$ac_link" | ||
13114 | case "(($ac_try" in | ||
13115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13116 | *) ac_try_echo=$ac_try;; | ||
13117 | esac | ||
13118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13119 | (eval "$ac_link") 2>conftest.er1 | ||
13120 | ac_status=$? | ||
13121 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13122 | rm -f conftest.er1 | ||
13123 | cat conftest.err >&5 | ||
13124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13125 | (exit $ac_status); } && { | ||
13126 | test -z "$ac_c_werror_flag" || | ||
13127 | test ! -s conftest.err | ||
13128 | } && test -s conftest$ac_exeext && | ||
13129 | $as_test_x conftest$ac_exeext; then | ||
13130 | ac_cv_lib_edit_el_init=yes | ||
13131 | else | ||
13132 | echo "$as_me: failed program was:" >&5 | ||
13133 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13134 | |||
13135 | ac_cv_lib_edit_el_init=no | ||
13136 | fi | ||
13137 | |||
13138 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13139 | conftest$ac_exeext conftest.$ac_ext | ||
13140 | LIBS=$ac_check_lib_save_LIBS | ||
13141 | fi | ||
13142 | { echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5 | ||
13143 | echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; } | ||
13144 | if test $ac_cv_lib_edit_el_init = yes; then | ||
13145 | |||
13146 | cat >>confdefs.h <<\_ACEOF | ||
13147 | #define USE_LIBEDIT 1 | ||
13148 | _ACEOF | ||
13149 | |||
13150 | LIBEDIT_MSG="yes" | ||
13151 | |||
13152 | |||
13153 | else | ||
13154 | { { echo "$as_me:$LINENO: error: libedit not found" >&5 | ||
13155 | echo "$as_me: error: libedit not found" >&2;} | ||
13156 | { (exit 1); exit 1; }; } | ||
13157 | fi | ||
13158 | |||
13159 | { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5 | ||
13160 | echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; } | ||
13161 | cat >conftest.$ac_ext <<_ACEOF | ||
13162 | /* confdefs.h. */ | ||
13163 | _ACEOF | ||
13164 | cat confdefs.h >>conftest.$ac_ext | ||
13165 | cat >>conftest.$ac_ext <<_ACEOF | ||
13166 | /* end confdefs.h. */ | ||
13167 | |||
13168 | #include <histedit.h> | ||
13169 | int main(void) | ||
13170 | { | ||
13171 | int i = H_SETSIZE; | ||
13172 | el_init("", NULL, NULL, NULL); | ||
13173 | exit(0); | ||
13174 | } | ||
13175 | |||
13176 | _ACEOF | ||
13177 | rm -f conftest.$ac_objext | ||
13178 | if { (ac_try="$ac_compile" | ||
13179 | case "(($ac_try" in | ||
13180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13181 | *) ac_try_echo=$ac_try;; | ||
13182 | esac | ||
13183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13184 | (eval "$ac_compile") 2>conftest.er1 | ||
13185 | ac_status=$? | ||
13186 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13187 | rm -f conftest.er1 | ||
13188 | cat conftest.err >&5 | ||
13189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13190 | (exit $ac_status); } && { | ||
13191 | test -z "$ac_c_werror_flag" || | ||
13192 | test ! -s conftest.err | ||
13193 | } && test -s conftest.$ac_objext; then | ||
13194 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
13195 | echo "${ECHO_T}yes" >&6; } | ||
13196 | else | ||
13197 | echo "$as_me: failed program was:" >&5 | ||
13198 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13199 | |||
13200 | { echo "$as_me:$LINENO: result: no" >&5 | ||
13201 | echo "${ECHO_T}no" >&6; } | ||
13202 | { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5 | ||
13203 | echo "$as_me: error: libedit version is not compatible" >&2;} | ||
13204 | { (exit 1); exit 1; }; } | ||
13205 | |||
13206 | fi | ||
13207 | |||
13208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13209 | fi | ||
13210 | |||
13211 | fi | ||
13212 | |||
13213 | |||
13214 | AUDIT_MODULE=none | ||
13215 | |||
13216 | # Check whether --with-audit was given. | ||
13217 | if test "${with_audit+set}" = set; then | ||
13218 | withval=$with_audit; | ||
13219 | { echo "$as_me:$LINENO: checking for supported audit module" >&5 | ||
13220 | echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; } | ||
13221 | case "$withval" in | ||
13222 | bsm) | ||
13223 | { echo "$as_me:$LINENO: result: bsm" >&5 | ||
13224 | echo "${ECHO_T}bsm" >&6; } | ||
13225 | AUDIT_MODULE=bsm | ||
13226 | |||
13227 | for ac_header in bsm/audit.h | ||
13228 | do | ||
13229 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
13230 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
13231 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
13232 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13234 | else | ||
13235 | cat >conftest.$ac_ext <<_ACEOF | ||
13236 | /* confdefs.h. */ | ||
13237 | _ACEOF | ||
13238 | cat confdefs.h >>conftest.$ac_ext | ||
13239 | cat >>conftest.$ac_ext <<_ACEOF | ||
13240 | /* end confdefs.h. */ | ||
13241 | |||
13242 | #ifdef HAVE_TIME_H | ||
13243 | # include <time.h> | ||
13244 | #endif | ||
13245 | |||
13246 | |||
13247 | |||
13248 | #include <$ac_header> | ||
13249 | _ACEOF | ||
13250 | rm -f conftest.$ac_objext | ||
13251 | if { (ac_try="$ac_compile" | ||
13252 | case "(($ac_try" in | ||
13253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13254 | *) ac_try_echo=$ac_try;; | ||
13255 | esac | ||
13256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13257 | (eval "$ac_compile") 2>conftest.er1 | ||
13258 | ac_status=$? | ||
13259 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13260 | rm -f conftest.er1 | ||
13261 | cat conftest.err >&5 | ||
13262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13263 | (exit $ac_status); } && { | ||
13264 | test -z "$ac_c_werror_flag" || | ||
13265 | test ! -s conftest.err | ||
13266 | } && test -s conftest.$ac_objext; then | ||
13267 | eval "$as_ac_Header=yes" | ||
13268 | else | ||
13269 | echo "$as_me: failed program was:" >&5 | ||
13270 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13271 | |||
13272 | eval "$as_ac_Header=no" | ||
13273 | fi | ||
13274 | |||
13275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13276 | fi | ||
13277 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
13278 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13279 | echo "${ECHO_T}$ac_res" >&6; } | ||
13280 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
13281 | cat >>confdefs.h <<_ACEOF | ||
13282 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
13283 | _ACEOF | ||
13284 | |||
13285 | else | ||
13286 | { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5 | ||
13287 | echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;} | ||
13288 | { (exit 1); exit 1; }; } | ||
13289 | fi | ||
13290 | |||
13291 | done | ||
13292 | |||
13293 | |||
13294 | { echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5 | ||
13295 | echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; } | ||
13296 | if test "${ac_cv_lib_bsm_getaudit+set}" = set; then | ||
13297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13298 | else | ||
13299 | ac_check_lib_save_LIBS=$LIBS | ||
13300 | LIBS="-lbsm $LIBS" | ||
13301 | cat >conftest.$ac_ext <<_ACEOF | ||
13302 | /* confdefs.h. */ | ||
13303 | _ACEOF | ||
13304 | cat confdefs.h >>conftest.$ac_ext | ||
13305 | cat >>conftest.$ac_ext <<_ACEOF | ||
13306 | /* end confdefs.h. */ | ||
13307 | |||
13308 | /* Override any GCC internal prototype to avoid an error. | ||
13309 | Use char because int might match the return type of a GCC | ||
13310 | builtin and then its argument prototype would still apply. */ | ||
13311 | #ifdef __cplusplus | ||
13312 | extern "C" | ||
13313 | #endif | ||
13314 | char getaudit (); | ||
13315 | int | ||
13316 | main () | ||
13317 | { | ||
13318 | return getaudit (); | ||
13319 | ; | ||
13320 | return 0; | ||
13321 | } | ||
13322 | _ACEOF | ||
13323 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13324 | if { (ac_try="$ac_link" | ||
13325 | case "(($ac_try" in | ||
13326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13327 | *) ac_try_echo=$ac_try;; | ||
13328 | esac | ||
13329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13330 | (eval "$ac_link") 2>conftest.er1 | ||
13331 | ac_status=$? | ||
13332 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13333 | rm -f conftest.er1 | ||
13334 | cat conftest.err >&5 | ||
13335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13336 | (exit $ac_status); } && { | ||
13337 | test -z "$ac_c_werror_flag" || | ||
13338 | test ! -s conftest.err | ||
13339 | } && test -s conftest$ac_exeext && | ||
13340 | $as_test_x conftest$ac_exeext; then | ||
13341 | ac_cv_lib_bsm_getaudit=yes | ||
13342 | else | ||
13343 | echo "$as_me: failed program was:" >&5 | ||
13344 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13345 | |||
13346 | ac_cv_lib_bsm_getaudit=no | ||
13347 | fi | ||
13348 | |||
13349 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13350 | conftest$ac_exeext conftest.$ac_ext | ||
13351 | LIBS=$ac_check_lib_save_LIBS | ||
13352 | fi | ||
13353 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5 | ||
13354 | echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; } | ||
13355 | if test $ac_cv_lib_bsm_getaudit = yes; then | ||
13356 | cat >>confdefs.h <<_ACEOF | ||
13357 | #define HAVE_LIBBSM 1 | ||
13358 | _ACEOF | ||
13359 | |||
13360 | LIBS="-lbsm $LIBS" | ||
13361 | |||
13362 | else | ||
13363 | { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5 | ||
13364 | echo "$as_me: error: BSM enabled and required library not found" >&2;} | ||
13365 | { (exit 1); exit 1; }; } | ||
13366 | fi | ||
13367 | |||
13368 | |||
13369 | for ac_func in getaudit | ||
13370 | do | ||
13371 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13372 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13373 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13374 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13376 | else | ||
13377 | cat >conftest.$ac_ext <<_ACEOF | ||
13378 | /* confdefs.h. */ | ||
13379 | _ACEOF | ||
13380 | cat confdefs.h >>conftest.$ac_ext | ||
13381 | cat >>conftest.$ac_ext <<_ACEOF | ||
13382 | /* end confdefs.h. */ | ||
13383 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13384 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13385 | #define $ac_func innocuous_$ac_func | ||
13386 | |||
13387 | /* System header to define __stub macros and hopefully few prototypes, | ||
13388 | which can conflict with char $ac_func (); below. | ||
13389 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13390 | <limits.h> exists even on freestanding compilers. */ | ||
13391 | |||
13392 | #ifdef __STDC__ | ||
13393 | # include <limits.h> | ||
13394 | #else | ||
13395 | # include <assert.h> | ||
13396 | #endif | ||
13397 | |||
13398 | #undef $ac_func | ||
13399 | |||
13400 | /* Override any GCC internal prototype to avoid an error. | ||
13401 | Use char because int might match the return type of a GCC | ||
13402 | builtin and then its argument prototype would still apply. */ | ||
13403 | #ifdef __cplusplus | ||
13404 | extern "C" | ||
13405 | #endif | ||
13406 | char $ac_func (); | ||
13407 | /* The GNU C library defines this for functions which it implements | ||
13408 | to always fail with ENOSYS. Some functions are actually named | ||
13409 | something starting with __ and the normal name is an alias. */ | ||
13410 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13411 | choke me | ||
13412 | #endif | ||
13413 | |||
13414 | int | ||
13415 | main () | ||
13416 | { | ||
13417 | return $ac_func (); | ||
13418 | ; | ||
13419 | return 0; | ||
13420 | } | ||
13421 | _ACEOF | ||
13422 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13423 | if { (ac_try="$ac_link" | ||
13424 | case "(($ac_try" in | ||
13425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13426 | *) ac_try_echo=$ac_try;; | ||
13427 | esac | ||
13428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13429 | (eval "$ac_link") 2>conftest.er1 | ||
13430 | ac_status=$? | ||
13431 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13432 | rm -f conftest.er1 | ||
13433 | cat conftest.err >&5 | ||
13434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13435 | (exit $ac_status); } && { | ||
13436 | test -z "$ac_c_werror_flag" || | ||
13437 | test ! -s conftest.err | ||
13438 | } && test -s conftest$ac_exeext && | ||
13439 | $as_test_x conftest$ac_exeext; then | ||
13440 | eval "$as_ac_var=yes" | ||
13441 | else | ||
13442 | echo "$as_me: failed program was:" >&5 | ||
13443 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13444 | |||
13445 | eval "$as_ac_var=no" | ||
13446 | fi | ||
13447 | |||
13448 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13449 | conftest$ac_exeext conftest.$ac_ext | ||
13450 | fi | ||
13451 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
13452 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13453 | echo "${ECHO_T}$ac_res" >&6; } | ||
13454 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13455 | cat >>confdefs.h <<_ACEOF | ||
13456 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13457 | _ACEOF | ||
13458 | |||
13459 | else | ||
13460 | { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5 | ||
13461 | echo "$as_me: error: BSM enabled and required function not found" >&2;} | ||
13462 | { (exit 1); exit 1; }; } | ||
13463 | fi | ||
13464 | done | ||
13465 | |||
13466 | # These are optional | ||
13467 | |||
13468 | |||
13469 | for ac_func in getaudit_addr aug_get_machine | ||
13470 | do | ||
13471 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13472 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13473 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13474 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13476 | else | ||
13477 | cat >conftest.$ac_ext <<_ACEOF | ||
13478 | /* confdefs.h. */ | ||
13479 | _ACEOF | ||
13480 | cat confdefs.h >>conftest.$ac_ext | ||
13481 | cat >>conftest.$ac_ext <<_ACEOF | ||
13482 | /* end confdefs.h. */ | ||
13483 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13484 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13485 | #define $ac_func innocuous_$ac_func | ||
13486 | |||
13487 | /* System header to define __stub macros and hopefully few prototypes, | ||
13488 | which can conflict with char $ac_func (); below. | ||
13489 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13490 | <limits.h> exists even on freestanding compilers. */ | ||
13491 | |||
13492 | #ifdef __STDC__ | ||
13493 | # include <limits.h> | ||
13494 | #else | ||
13495 | # include <assert.h> | ||
13496 | #endif | ||
13497 | |||
13498 | #undef $ac_func | ||
13499 | |||
13500 | /* Override any GCC internal prototype to avoid an error. | ||
13501 | Use char because int might match the return type of a GCC | ||
13502 | builtin and then its argument prototype would still apply. */ | ||
13503 | #ifdef __cplusplus | ||
13504 | extern "C" | ||
13505 | #endif | ||
13506 | char $ac_func (); | ||
13507 | /* The GNU C library defines this for functions which it implements | ||
13508 | to always fail with ENOSYS. Some functions are actually named | ||
13509 | something starting with __ and the normal name is an alias. */ | ||
13510 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13511 | choke me | ||
13512 | #endif | ||
13513 | |||
13514 | int | ||
13515 | main () | ||
13516 | { | ||
13517 | return $ac_func (); | ||
13518 | ; | ||
13519 | return 0; | ||
13520 | } | ||
13521 | _ACEOF | ||
13522 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13523 | if { (ac_try="$ac_link" | ||
13524 | case "(($ac_try" in | ||
13525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13526 | *) ac_try_echo=$ac_try;; | ||
13527 | esac | ||
13528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13529 | (eval "$ac_link") 2>conftest.er1 | ||
13530 | ac_status=$? | ||
13531 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13532 | rm -f conftest.er1 | ||
13533 | cat conftest.err >&5 | ||
13534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13535 | (exit $ac_status); } && { | ||
13536 | test -z "$ac_c_werror_flag" || | ||
13537 | test ! -s conftest.err | ||
13538 | } && test -s conftest$ac_exeext && | ||
13539 | $as_test_x conftest$ac_exeext; then | ||
13540 | eval "$as_ac_var=yes" | ||
13541 | else | ||
13542 | echo "$as_me: failed program was:" >&5 | ||
13543 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13544 | |||
13545 | eval "$as_ac_var=no" | ||
13546 | fi | ||
13547 | |||
13548 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13549 | conftest$ac_exeext conftest.$ac_ext | ||
13550 | fi | ||
13551 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
13552 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13553 | echo "${ECHO_T}$ac_res" >&6; } | ||
13554 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13555 | cat >>confdefs.h <<_ACEOF | ||
13556 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13557 | _ACEOF | ||
13558 | |||
13559 | fi | ||
13560 | done | ||
13561 | |||
13562 | |||
13563 | cat >>confdefs.h <<\_ACEOF | ||
13564 | #define USE_BSM_AUDIT 1 | ||
13565 | _ACEOF | ||
13566 | |||
13567 | ;; | ||
13568 | linux) | ||
13569 | { echo "$as_me:$LINENO: result: linux" >&5 | ||
13570 | echo "${ECHO_T}linux" >&6; } | ||
13571 | AUDIT_MODULE=linux | ||
13572 | |||
13573 | for ac_header in libaudit.h | ||
13574 | do | ||
13575 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
13576 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13577 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
13578 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
13579 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13581 | fi | ||
13582 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
13583 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13584 | echo "${ECHO_T}$ac_res" >&6; } | ||
13585 | else | ||
13586 | # Is the header compilable? | ||
13587 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
13588 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
13589 | cat >conftest.$ac_ext <<_ACEOF | ||
13590 | /* confdefs.h. */ | ||
13591 | _ACEOF | ||
13592 | cat confdefs.h >>conftest.$ac_ext | ||
13593 | cat >>conftest.$ac_ext <<_ACEOF | ||
13594 | /* end confdefs.h. */ | ||
13595 | $ac_includes_default | ||
13596 | #include <$ac_header> | ||
13597 | _ACEOF | ||
13598 | rm -f conftest.$ac_objext | ||
13599 | if { (ac_try="$ac_compile" | ||
13600 | case "(($ac_try" in | ||
13601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13602 | *) ac_try_echo=$ac_try;; | ||
13603 | esac | ||
13604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13605 | (eval "$ac_compile") 2>conftest.er1 | ||
13606 | ac_status=$? | ||
13607 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13608 | rm -f conftest.er1 | ||
13609 | cat conftest.err >&5 | ||
13610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13611 | (exit $ac_status); } && { | ||
13612 | test -z "$ac_c_werror_flag" || | ||
13613 | test ! -s conftest.err | ||
13614 | } && test -s conftest.$ac_objext; then | ||
13615 | ac_header_compiler=yes | ||
13616 | else | ||
13617 | echo "$as_me: failed program was:" >&5 | ||
13618 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13619 | |||
13620 | ac_header_compiler=no | ||
13621 | fi | ||
13622 | |||
13623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13624 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
13625 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
13626 | |||
13627 | # Is the header present? | ||
13628 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
13629 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
13630 | cat >conftest.$ac_ext <<_ACEOF | ||
13631 | /* confdefs.h. */ | ||
13632 | _ACEOF | ||
13633 | cat confdefs.h >>conftest.$ac_ext | ||
13634 | cat >>conftest.$ac_ext <<_ACEOF | ||
13635 | /* end confdefs.h. */ | ||
13636 | #include <$ac_header> | ||
13637 | _ACEOF | ||
13638 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
13639 | case "(($ac_try" in | ||
13640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13641 | *) ac_try_echo=$ac_try;; | ||
13642 | esac | ||
13643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13644 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
13645 | ac_status=$? | ||
13646 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13647 | rm -f conftest.er1 | ||
13648 | cat conftest.err >&5 | ||
13649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13650 | (exit $ac_status); } >/dev/null && { | ||
13651 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
13652 | test ! -s conftest.err | ||
13653 | }; then | ||
13654 | ac_header_preproc=yes | ||
13655 | else | ||
13656 | echo "$as_me: failed program was:" >&5 | ||
13657 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13658 | |||
13659 | ac_header_preproc=no | ||
13660 | fi | ||
13661 | |||
13662 | rm -f conftest.err conftest.$ac_ext | ||
13663 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
13664 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
13665 | |||
13666 | # So? What about this header? | ||
13667 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
13668 | yes:no: ) | ||
13669 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
13670 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
13671 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
13672 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
13673 | ac_header_preproc=yes | ||
13674 | ;; | ||
13675 | no:yes:* ) | ||
13676 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
13677 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
13678 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
13679 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
13680 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
13681 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
13682 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
13683 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
13684 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
13685 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
13686 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
13687 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
13688 | ( cat <<\_ASBOX | ||
13689 | ## ------------------------------------------- ## | ||
13690 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
13691 | ## ------------------------------------------- ## | ||
13692 | _ASBOX | ||
13693 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
13694 | ;; | ||
13695 | esac | ||
13696 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
13697 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
13698 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13700 | else | ||
13701 | eval "$as_ac_Header=\$ac_header_preproc" | ||
13702 | fi | ||
13703 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
13704 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13705 | echo "${ECHO_T}$ac_res" >&6; } | ||
13706 | |||
13707 | fi | ||
13708 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
13709 | cat >>confdefs.h <<_ACEOF | ||
13710 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
13711 | _ACEOF | ||
13712 | |||
13713 | fi | ||
13714 | |||
13715 | done | ||
13716 | |||
13717 | SSHDLIBS="$SSHDLIBS -laudit" | ||
13718 | |||
13719 | cat >>confdefs.h <<\_ACEOF | ||
13720 | #define USE_LINUX_AUDIT 1 | ||
13721 | _ACEOF | ||
13722 | |||
13723 | ;; | ||
13724 | debug) | ||
13725 | AUDIT_MODULE=debug | ||
13726 | { echo "$as_me:$LINENO: result: debug" >&5 | ||
13727 | echo "${ECHO_T}debug" >&6; } | ||
13728 | |||
13729 | cat >>confdefs.h <<\_ACEOF | ||
13730 | #define SSH_AUDIT_EVENTS 1 | ||
13731 | _ACEOF | ||
13732 | |||
13733 | ;; | ||
13734 | no) | ||
13735 | { echo "$as_me:$LINENO: result: no" >&5 | ||
13736 | echo "${ECHO_T}no" >&6; } | ||
13737 | ;; | ||
13738 | *) | ||
13739 | { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5 | ||
13740 | echo "$as_me: error: Unknown audit module $withval" >&2;} | ||
13741 | { (exit 1); exit 1; }; } | ||
13742 | ;; | ||
13743 | esac | ||
13744 | |||
13745 | fi | ||
13746 | |||
13747 | |||
13748 | |||
13749 | |||
13750 | |||
13751 | |||
13752 | |||
13753 | |||
13754 | |||
13755 | |||
13756 | |||
13757 | |||
13758 | |||
13759 | |||
13760 | |||
13761 | |||
13762 | |||
13763 | |||
13764 | |||
13765 | |||
13766 | |||
13767 | |||
13768 | |||
13769 | |||
13770 | |||
13771 | |||
13772 | |||
13773 | |||
13774 | |||
13775 | |||
13776 | |||
13777 | |||
13778 | |||
13779 | |||
13780 | |||
13781 | |||
13782 | |||
13783 | |||
13784 | |||
13785 | |||
13786 | |||
13787 | |||
13788 | |||
13789 | |||
13790 | |||
13791 | |||
13792 | |||
13793 | |||
13794 | |||
13795 | |||
13796 | |||
13797 | |||
13798 | |||
13799 | |||
13800 | |||
13801 | |||
13802 | |||
13803 | |||
13804 | |||
13805 | |||
13806 | |||
13807 | |||
13808 | |||
13809 | |||
13810 | |||
13811 | |||
13812 | |||
13813 | |||
13814 | |||
13815 | |||
13816 | |||
13817 | |||
13818 | |||
13819 | |||
13820 | |||
13821 | |||
13822 | |||
13823 | |||
13824 | |||
13825 | |||
13826 | |||
13827 | |||
13828 | |||
13829 | |||
13830 | |||
13831 | |||
13832 | |||
13833 | |||
13834 | |||
13835 | |||
13836 | |||
13837 | |||
13838 | |||
13839 | |||
13840 | |||
13841 | |||
13842 | |||
13843 | for ac_func in \ | ||
13844 | arc4random \ | ||
13845 | arc4random_buf \ | ||
13846 | arc4random_uniform \ | ||
13847 | asprintf \ | ||
13848 | b64_ntop \ | ||
13849 | __b64_ntop \ | ||
13850 | b64_pton \ | ||
13851 | __b64_pton \ | ||
13852 | bcopy \ | ||
13853 | bindresvport_sa \ | ||
13854 | clock \ | ||
13855 | closefrom \ | ||
13856 | dirfd \ | ||
13857 | fchmod \ | ||
13858 | fchown \ | ||
13859 | freeaddrinfo \ | ||
13860 | fstatvfs \ | ||
13861 | futimes \ | ||
13862 | getaddrinfo \ | ||
13863 | getcwd \ | ||
13864 | getgrouplist \ | ||
13865 | getnameinfo \ | ||
13866 | getopt \ | ||
13867 | getpeereid \ | ||
13868 | getpeerucred \ | ||
13869 | _getpty \ | ||
13870 | getrlimit \ | ||
13871 | getttyent \ | ||
13872 | glob \ | ||
13873 | group_from_gid \ | ||
13874 | inet_aton \ | ||
13875 | inet_ntoa \ | ||
13876 | inet_ntop \ | ||
13877 | innetgr \ | ||
13878 | login_getcapbool \ | ||
13879 | md5_crypt \ | ||
13880 | memmove \ | ||
13881 | mkdtemp \ | ||
13882 | mmap \ | ||
13883 | ngetaddrinfo \ | ||
13884 | nsleep \ | ||
13885 | ogetaddrinfo \ | ||
13886 | openlog_r \ | ||
13887 | openpty \ | ||
13888 | poll \ | ||
13889 | prctl \ | ||
13890 | pstat \ | ||
13891 | readpassphrase \ | ||
13892 | realpath \ | ||
13893 | recvmsg \ | ||
13894 | rresvport_af \ | ||
13895 | sendmsg \ | ||
13896 | setdtablesize \ | ||
13897 | setegid \ | ||
13898 | setenv \ | ||
13899 | seteuid \ | ||
13900 | setgroupent \ | ||
13901 | setgroups \ | ||
13902 | setlogin \ | ||
13903 | setpassent\ | ||
13904 | setpcred \ | ||
13905 | setproctitle \ | ||
13906 | setregid \ | ||
13907 | setreuid \ | ||
13908 | setrlimit \ | ||
13909 | setsid \ | ||
13910 | setvbuf \ | ||
13911 | sigaction \ | ||
13912 | sigvec \ | ||
13913 | snprintf \ | ||
13914 | socketpair \ | ||
13915 | statfs \ | ||
13916 | statvfs \ | ||
13917 | strdup \ | ||
13918 | strerror \ | ||
13919 | strlcat \ | ||
13920 | strlcpy \ | ||
13921 | strmode \ | ||
13922 | strnvis \ | ||
13923 | strptime \ | ||
13924 | strtonum \ | ||
13925 | strtoll \ | ||
13926 | strtoul \ | ||
13927 | swap32 \ | ||
13928 | sysconf \ | ||
13929 | tcgetpgrp \ | ||
13930 | timingsafe_bcmp \ | ||
13931 | truncate \ | ||
13932 | unsetenv \ | ||
13933 | updwtmpx \ | ||
13934 | user_from_uid \ | ||
13935 | vasprintf \ | ||
13936 | vhangup \ | ||
13937 | vsnprintf \ | ||
13938 | waitpid \ | ||
13939 | |||
13940 | do | ||
13941 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13942 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13943 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13944 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13946 | else | ||
13947 | cat >conftest.$ac_ext <<_ACEOF | ||
13948 | /* confdefs.h. */ | ||
13949 | _ACEOF | ||
13950 | cat confdefs.h >>conftest.$ac_ext | ||
13951 | cat >>conftest.$ac_ext <<_ACEOF | ||
13952 | /* end confdefs.h. */ | ||
13953 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13954 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13955 | #define $ac_func innocuous_$ac_func | ||
13956 | |||
13957 | /* System header to define __stub macros and hopefully few prototypes, | ||
13958 | which can conflict with char $ac_func (); below. | ||
13959 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13960 | <limits.h> exists even on freestanding compilers. */ | ||
13961 | |||
13962 | #ifdef __STDC__ | ||
13963 | # include <limits.h> | ||
13964 | #else | ||
13965 | # include <assert.h> | ||
13966 | #endif | ||
13967 | |||
13968 | #undef $ac_func | ||
13969 | |||
13970 | /* Override any GCC internal prototype to avoid an error. | ||
13971 | Use char because int might match the return type of a GCC | ||
13972 | builtin and then its argument prototype would still apply. */ | ||
13973 | #ifdef __cplusplus | ||
13974 | extern "C" | ||
13975 | #endif | ||
13976 | char $ac_func (); | ||
13977 | /* The GNU C library defines this for functions which it implements | ||
13978 | to always fail with ENOSYS. Some functions are actually named | ||
13979 | something starting with __ and the normal name is an alias. */ | ||
13980 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13981 | choke me | ||
13982 | #endif | ||
13983 | |||
13984 | int | ||
13985 | main () | ||
13986 | { | ||
13987 | return $ac_func (); | ||
13988 | ; | ||
13989 | return 0; | ||
13990 | } | ||
13991 | _ACEOF | ||
13992 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13993 | if { (ac_try="$ac_link" | ||
13994 | case "(($ac_try" in | ||
13995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13996 | *) ac_try_echo=$ac_try;; | ||
13997 | esac | ||
13998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13999 | (eval "$ac_link") 2>conftest.er1 | ||
14000 | ac_status=$? | ||
14001 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14002 | rm -f conftest.er1 | ||
14003 | cat conftest.err >&5 | ||
14004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14005 | (exit $ac_status); } && { | ||
14006 | test -z "$ac_c_werror_flag" || | ||
14007 | test ! -s conftest.err | ||
14008 | } && test -s conftest$ac_exeext && | ||
14009 | $as_test_x conftest$ac_exeext; then | ||
14010 | eval "$as_ac_var=yes" | ||
14011 | else | ||
14012 | echo "$as_me: failed program was:" >&5 | ||
14013 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14014 | |||
14015 | eval "$as_ac_var=no" | ||
14016 | fi | ||
14017 | |||
14018 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14019 | conftest$ac_exeext conftest.$ac_ext | ||
14020 | fi | ||
14021 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14022 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14023 | echo "${ECHO_T}$ac_res" >&6; } | ||
14024 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14025 | cat >>confdefs.h <<_ACEOF | ||
14026 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14027 | _ACEOF | ||
14028 | |||
14029 | fi | ||
14030 | done | ||
14031 | |||
14032 | |||
14033 | cat >conftest.$ac_ext <<_ACEOF | ||
14034 | |||
14035 | #include <ctype.h> | ||
14036 | int main(void) | ||
14037 | { | ||
14038 | return (isblank('a')); | ||
14039 | } | ||
14040 | |||
14041 | _ACEOF | ||
14042 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14043 | if { (ac_try="$ac_link" | ||
14044 | case "(($ac_try" in | ||
14045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14046 | *) ac_try_echo=$ac_try;; | ||
14047 | esac | ||
14048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14049 | (eval "$ac_link") 2>conftest.er1 | ||
14050 | ac_status=$? | ||
14051 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14052 | rm -f conftest.er1 | ||
14053 | cat conftest.err >&5 | ||
14054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14055 | (exit $ac_status); } && { | ||
14056 | test -z "$ac_c_werror_flag" || | ||
14057 | test ! -s conftest.err | ||
14058 | } && test -s conftest$ac_exeext && | ||
14059 | $as_test_x conftest$ac_exeext; then | ||
14060 | |||
14061 | cat >>confdefs.h <<\_ACEOF | ||
14062 | #define HAVE_ISBLANK 1 | ||
14063 | _ACEOF | ||
14064 | |||
14065 | |||
14066 | else | ||
14067 | echo "$as_me: failed program was:" >&5 | ||
14068 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14069 | |||
14070 | |||
14071 | fi | ||
14072 | |||
14073 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14074 | conftest$ac_exeext conftest.$ac_ext | ||
14075 | |||
14076 | # PKCS#11 support requires dlopen() and co | ||
14077 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 | ||
14078 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } | ||
14079 | if test "${ac_cv_search_dlopen+set}" = set; then | ||
14080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14081 | else | ||
14082 | ac_func_search_save_LIBS=$LIBS | ||
14083 | cat >conftest.$ac_ext <<_ACEOF | ||
14084 | /* confdefs.h. */ | ||
14085 | _ACEOF | ||
14086 | cat confdefs.h >>conftest.$ac_ext | ||
14087 | cat >>conftest.$ac_ext <<_ACEOF | ||
14088 | /* end confdefs.h. */ | ||
14089 | |||
14090 | /* Override any GCC internal prototype to avoid an error. | ||
14091 | Use char because int might match the return type of a GCC | ||
14092 | builtin and then its argument prototype would still apply. */ | ||
14093 | #ifdef __cplusplus | ||
14094 | extern "C" | ||
14095 | #endif | ||
14096 | char dlopen (); | ||
14097 | int | ||
14098 | main () | ||
14099 | { | ||
14100 | return dlopen (); | ||
14101 | ; | ||
14102 | return 0; | ||
14103 | } | ||
14104 | _ACEOF | ||
14105 | for ac_lib in '' dl; do | ||
14106 | if test -z "$ac_lib"; then | ||
14107 | ac_res="none required" | ||
14108 | else | ||
14109 | ac_res=-l$ac_lib | ||
14110 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14111 | fi | ||
14112 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14113 | if { (ac_try="$ac_link" | ||
14114 | case "(($ac_try" in | ||
14115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14116 | *) ac_try_echo=$ac_try;; | ||
14117 | esac | ||
14118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14119 | (eval "$ac_link") 2>conftest.er1 | ||
14120 | ac_status=$? | ||
14121 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14122 | rm -f conftest.er1 | ||
14123 | cat conftest.err >&5 | ||
14124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14125 | (exit $ac_status); } && { | ||
14126 | test -z "$ac_c_werror_flag" || | ||
14127 | test ! -s conftest.err | ||
14128 | } && test -s conftest$ac_exeext && | ||
14129 | $as_test_x conftest$ac_exeext; then | ||
14130 | ac_cv_search_dlopen=$ac_res | ||
14131 | else | ||
14132 | echo "$as_me: failed program was:" >&5 | ||
14133 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14134 | |||
14135 | |||
14136 | fi | ||
14137 | |||
14138 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14139 | conftest$ac_exeext | ||
14140 | if test "${ac_cv_search_dlopen+set}" = set; then | ||
14141 | break | ||
14142 | fi | ||
14143 | done | ||
14144 | if test "${ac_cv_search_dlopen+set}" = set; then | ||
14145 | : | ||
14146 | else | ||
14147 | ac_cv_search_dlopen=no | ||
14148 | fi | ||
14149 | rm conftest.$ac_ext | ||
14150 | LIBS=$ac_func_search_save_LIBS | ||
14151 | fi | ||
14152 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 | ||
14153 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } | ||
14154 | ac_res=$ac_cv_search_dlopen | ||
14155 | if test "$ac_res" != no; then | ||
14156 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14157 | |||
14158 | cat >>confdefs.h <<\_ACEOF | ||
14159 | #define ENABLE_PKCS11 | ||
14160 | _ACEOF | ||
14161 | |||
14162 | |||
14163 | fi | ||
14164 | |||
14165 | |||
14166 | # IRIX has a const char return value for gai_strerror() | ||
14167 | |||
14168 | for ac_func in gai_strerror | ||
14169 | do | ||
14170 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14171 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14172 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14173 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14175 | else | ||
14176 | cat >conftest.$ac_ext <<_ACEOF | ||
14177 | /* confdefs.h. */ | ||
14178 | _ACEOF | ||
14179 | cat confdefs.h >>conftest.$ac_ext | ||
14180 | cat >>conftest.$ac_ext <<_ACEOF | ||
14181 | /* end confdefs.h. */ | ||
14182 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14183 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14184 | #define $ac_func innocuous_$ac_func | ||
14185 | |||
14186 | /* System header to define __stub macros and hopefully few prototypes, | ||
14187 | which can conflict with char $ac_func (); below. | ||
14188 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14189 | <limits.h> exists even on freestanding compilers. */ | ||
14190 | |||
14191 | #ifdef __STDC__ | ||
14192 | # include <limits.h> | ||
14193 | #else | ||
14194 | # include <assert.h> | ||
14195 | #endif | ||
14196 | |||
14197 | #undef $ac_func | ||
14198 | |||
14199 | /* Override any GCC internal prototype to avoid an error. | ||
14200 | Use char because int might match the return type of a GCC | ||
14201 | builtin and then its argument prototype would still apply. */ | ||
14202 | #ifdef __cplusplus | ||
14203 | extern "C" | ||
14204 | #endif | ||
14205 | char $ac_func (); | ||
14206 | /* The GNU C library defines this for functions which it implements | ||
14207 | to always fail with ENOSYS. Some functions are actually named | ||
14208 | something starting with __ and the normal name is an alias. */ | ||
14209 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14210 | choke me | ||
14211 | #endif | ||
14212 | |||
14213 | int | ||
14214 | main () | ||
14215 | { | ||
14216 | return $ac_func (); | ||
14217 | ; | ||
14218 | return 0; | ||
14219 | } | ||
14220 | _ACEOF | ||
14221 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14222 | if { (ac_try="$ac_link" | ||
14223 | case "(($ac_try" in | ||
14224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14225 | *) ac_try_echo=$ac_try;; | ||
14226 | esac | ||
14227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14228 | (eval "$ac_link") 2>conftest.er1 | ||
14229 | ac_status=$? | ||
14230 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14231 | rm -f conftest.er1 | ||
14232 | cat conftest.err >&5 | ||
14233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14234 | (exit $ac_status); } && { | ||
14235 | test -z "$ac_c_werror_flag" || | ||
14236 | test ! -s conftest.err | ||
14237 | } && test -s conftest$ac_exeext && | ||
14238 | $as_test_x conftest$ac_exeext; then | ||
14239 | eval "$as_ac_var=yes" | ||
14240 | else | ||
14241 | echo "$as_me: failed program was:" >&5 | ||
14242 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14243 | |||
14244 | eval "$as_ac_var=no" | ||
14245 | fi | ||
14246 | |||
14247 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14248 | conftest$ac_exeext conftest.$ac_ext | ||
14249 | fi | ||
14250 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14251 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14252 | echo "${ECHO_T}$ac_res" >&6; } | ||
14253 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14254 | cat >>confdefs.h <<_ACEOF | ||
14255 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14256 | _ACEOF | ||
14257 | |||
14258 | cat >>confdefs.h <<\_ACEOF | ||
14259 | #define HAVE_GAI_STRERROR 1 | ||
14260 | _ACEOF | ||
14261 | |||
14262 | cat >conftest.$ac_ext <<_ACEOF | ||
14263 | /* confdefs.h. */ | ||
14264 | _ACEOF | ||
14265 | cat confdefs.h >>conftest.$ac_ext | ||
14266 | cat >>conftest.$ac_ext <<_ACEOF | ||
14267 | /* end confdefs.h. */ | ||
14268 | |||
14269 | #include <sys/types.h> | ||
14270 | #include <sys/socket.h> | ||
14271 | #include <netdb.h> | ||
14272 | |||
14273 | const char *gai_strerror(int); | ||
14274 | int | ||
14275 | main () | ||
14276 | { | ||
14277 | |||
14278 | char *str; | ||
14279 | |||
14280 | str = gai_strerror(0); | ||
14281 | ; | ||
14282 | return 0; | ||
14283 | } | ||
14284 | _ACEOF | ||
14285 | rm -f conftest.$ac_objext | ||
14286 | if { (ac_try="$ac_compile" | ||
14287 | case "(($ac_try" in | ||
14288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14289 | *) ac_try_echo=$ac_try;; | ||
14290 | esac | ||
14291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14292 | (eval "$ac_compile") 2>conftest.er1 | ||
14293 | ac_status=$? | ||
14294 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14295 | rm -f conftest.er1 | ||
14296 | cat conftest.err >&5 | ||
14297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14298 | (exit $ac_status); } && { | ||
14299 | test -z "$ac_c_werror_flag" || | ||
14300 | test ! -s conftest.err | ||
14301 | } && test -s conftest.$ac_objext; then | ||
14302 | |||
14303 | |||
14304 | cat >>confdefs.h <<\_ACEOF | ||
14305 | #define HAVE_CONST_GAI_STRERROR_PROTO 1 | ||
14306 | _ACEOF | ||
14307 | |||
14308 | else | ||
14309 | echo "$as_me: failed program was:" >&5 | ||
14310 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14311 | |||
14312 | |||
14313 | fi | ||
14314 | |||
14315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14316 | fi | ||
14317 | done | ||
14318 | |||
14319 | |||
14320 | { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 | ||
14321 | echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; } | ||
14322 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
14323 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14324 | else | ||
14325 | ac_func_search_save_LIBS=$LIBS | ||
14326 | cat >conftest.$ac_ext <<_ACEOF | ||
14327 | /* confdefs.h. */ | ||
14328 | _ACEOF | ||
14329 | cat confdefs.h >>conftest.$ac_ext | ||
14330 | cat >>conftest.$ac_ext <<_ACEOF | ||
14331 | /* end confdefs.h. */ | ||
14332 | |||
14333 | /* Override any GCC internal prototype to avoid an error. | ||
14334 | Use char because int might match the return type of a GCC | ||
14335 | builtin and then its argument prototype would still apply. */ | ||
14336 | #ifdef __cplusplus | ||
14337 | extern "C" | ||
14338 | #endif | ||
14339 | char nanosleep (); | ||
14340 | int | ||
14341 | main () | ||
14342 | { | ||
14343 | return nanosleep (); | ||
14344 | ; | ||
14345 | return 0; | ||
14346 | } | ||
14347 | _ACEOF | ||
14348 | for ac_lib in '' rt posix4; do | ||
14349 | if test -z "$ac_lib"; then | ||
14350 | ac_res="none required" | ||
14351 | else | ||
14352 | ac_res=-l$ac_lib | ||
14353 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
14354 | fi | ||
14355 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14356 | if { (ac_try="$ac_link" | ||
14357 | case "(($ac_try" in | ||
14358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14359 | *) ac_try_echo=$ac_try;; | ||
14360 | esac | ||
14361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14362 | (eval "$ac_link") 2>conftest.er1 | ||
14363 | ac_status=$? | ||
14364 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14365 | rm -f conftest.er1 | ||
14366 | cat conftest.err >&5 | ||
14367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14368 | (exit $ac_status); } && { | ||
14369 | test -z "$ac_c_werror_flag" || | ||
14370 | test ! -s conftest.err | ||
14371 | } && test -s conftest$ac_exeext && | ||
14372 | $as_test_x conftest$ac_exeext; then | ||
14373 | ac_cv_search_nanosleep=$ac_res | ||
14374 | else | ||
14375 | echo "$as_me: failed program was:" >&5 | ||
14376 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14377 | |||
14378 | |||
14379 | fi | ||
14380 | |||
14381 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14382 | conftest$ac_exeext | ||
14383 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
14384 | break | ||
14385 | fi | ||
14386 | done | ||
14387 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
14388 | : | ||
14389 | else | ||
14390 | ac_cv_search_nanosleep=no | ||
14391 | fi | ||
14392 | rm conftest.$ac_ext | ||
14393 | LIBS=$ac_func_search_save_LIBS | ||
14394 | fi | ||
14395 | { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5 | ||
14396 | echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; } | ||
14397 | ac_res=$ac_cv_search_nanosleep | ||
14398 | if test "$ac_res" != no; then | ||
14399 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
14400 | |||
14401 | cat >>confdefs.h <<\_ACEOF | ||
14402 | #define HAVE_NANOSLEEP 1 | ||
14403 | _ACEOF | ||
14404 | |||
14405 | fi | ||
14406 | |||
14407 | |||
14408 | { echo "$as_me:$LINENO: checking whether getrusage is declared" >&5 | ||
14409 | echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; } | ||
14410 | if test "${ac_cv_have_decl_getrusage+set}" = set; then | ||
14411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14412 | else | ||
14413 | cat >conftest.$ac_ext <<_ACEOF | ||
14414 | /* confdefs.h. */ | ||
14415 | _ACEOF | ||
14416 | cat confdefs.h >>conftest.$ac_ext | ||
14417 | cat >>conftest.$ac_ext <<_ACEOF | ||
14418 | /* end confdefs.h. */ | ||
14419 | $ac_includes_default | ||
14420 | int | ||
14421 | main () | ||
14422 | { | ||
14423 | #ifndef getrusage | ||
14424 | (void) getrusage; | ||
14425 | #endif | ||
14426 | |||
14427 | ; | ||
14428 | return 0; | ||
14429 | } | ||
14430 | _ACEOF | ||
14431 | rm -f conftest.$ac_objext | ||
14432 | if { (ac_try="$ac_compile" | ||
14433 | case "(($ac_try" in | ||
14434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14435 | *) ac_try_echo=$ac_try;; | ||
14436 | esac | ||
14437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14438 | (eval "$ac_compile") 2>conftest.er1 | ||
14439 | ac_status=$? | ||
14440 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14441 | rm -f conftest.er1 | ||
14442 | cat conftest.err >&5 | ||
14443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14444 | (exit $ac_status); } && { | ||
14445 | test -z "$ac_c_werror_flag" || | ||
14446 | test ! -s conftest.err | ||
14447 | } && test -s conftest.$ac_objext; then | ||
14448 | ac_cv_have_decl_getrusage=yes | ||
14449 | else | ||
14450 | echo "$as_me: failed program was:" >&5 | ||
14451 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14452 | |||
14453 | ac_cv_have_decl_getrusage=no | ||
14454 | fi | ||
14455 | |||
14456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14457 | fi | ||
14458 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5 | ||
14459 | echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; } | ||
14460 | if test $ac_cv_have_decl_getrusage = yes; then | ||
14461 | |||
14462 | for ac_func in getrusage | ||
14463 | do | ||
14464 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14465 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14466 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14467 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14469 | else | ||
14470 | cat >conftest.$ac_ext <<_ACEOF | ||
14471 | /* confdefs.h. */ | ||
14472 | _ACEOF | ||
14473 | cat confdefs.h >>conftest.$ac_ext | ||
14474 | cat >>conftest.$ac_ext <<_ACEOF | ||
14475 | /* end confdefs.h. */ | ||
14476 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14477 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14478 | #define $ac_func innocuous_$ac_func | ||
14479 | |||
14480 | /* System header to define __stub macros and hopefully few prototypes, | ||
14481 | which can conflict with char $ac_func (); below. | ||
14482 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14483 | <limits.h> exists even on freestanding compilers. */ | ||
14484 | |||
14485 | #ifdef __STDC__ | ||
14486 | # include <limits.h> | ||
14487 | #else | ||
14488 | # include <assert.h> | ||
14489 | #endif | ||
14490 | |||
14491 | #undef $ac_func | ||
14492 | |||
14493 | /* Override any GCC internal prototype to avoid an error. | ||
14494 | Use char because int might match the return type of a GCC | ||
14495 | builtin and then its argument prototype would still apply. */ | ||
14496 | #ifdef __cplusplus | ||
14497 | extern "C" | ||
14498 | #endif | ||
14499 | char $ac_func (); | ||
14500 | /* The GNU C library defines this for functions which it implements | ||
14501 | to always fail with ENOSYS. Some functions are actually named | ||
14502 | something starting with __ and the normal name is an alias. */ | ||
14503 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14504 | choke me | ||
14505 | #endif | ||
14506 | |||
14507 | int | ||
14508 | main () | ||
14509 | { | ||
14510 | return $ac_func (); | ||
14511 | ; | ||
14512 | return 0; | ||
14513 | } | ||
14514 | _ACEOF | ||
14515 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14516 | if { (ac_try="$ac_link" | ||
14517 | case "(($ac_try" in | ||
14518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14519 | *) ac_try_echo=$ac_try;; | ||
14520 | esac | ||
14521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14522 | (eval "$ac_link") 2>conftest.er1 | ||
14523 | ac_status=$? | ||
14524 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14525 | rm -f conftest.er1 | ||
14526 | cat conftest.err >&5 | ||
14527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14528 | (exit $ac_status); } && { | ||
14529 | test -z "$ac_c_werror_flag" || | ||
14530 | test ! -s conftest.err | ||
14531 | } && test -s conftest$ac_exeext && | ||
14532 | $as_test_x conftest$ac_exeext; then | ||
14533 | eval "$as_ac_var=yes" | ||
14534 | else | ||
14535 | echo "$as_me: failed program was:" >&5 | ||
14536 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14537 | |||
14538 | eval "$as_ac_var=no" | ||
14539 | fi | ||
14540 | |||
14541 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14542 | conftest$ac_exeext conftest.$ac_ext | ||
14543 | fi | ||
14544 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14545 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14546 | echo "${ECHO_T}$ac_res" >&6; } | ||
14547 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14548 | cat >>confdefs.h <<_ACEOF | ||
14549 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14550 | _ACEOF | ||
14551 | |||
14552 | fi | ||
14553 | done | ||
14554 | |||
14555 | fi | ||
14556 | |||
14557 | { echo "$as_me:$LINENO: checking whether strsep is declared" >&5 | ||
14558 | echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; } | ||
14559 | if test "${ac_cv_have_decl_strsep+set}" = set; then | ||
14560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14561 | else | ||
14562 | cat >conftest.$ac_ext <<_ACEOF | ||
14563 | /* confdefs.h. */ | ||
14564 | _ACEOF | ||
14565 | cat confdefs.h >>conftest.$ac_ext | ||
14566 | cat >>conftest.$ac_ext <<_ACEOF | ||
14567 | /* end confdefs.h. */ | ||
14568 | |||
14569 | #ifdef HAVE_STRING_H | ||
14570 | # include <string.h> | ||
14571 | #endif | ||
14572 | |||
14573 | |||
14574 | int | ||
14575 | main () | ||
14576 | { | ||
14577 | #ifndef strsep | ||
14578 | (void) strsep; | ||
14579 | #endif | ||
14580 | |||
14581 | ; | ||
14582 | return 0; | ||
14583 | } | ||
14584 | _ACEOF | ||
14585 | rm -f conftest.$ac_objext | ||
14586 | if { (ac_try="$ac_compile" | ||
14587 | case "(($ac_try" in | ||
14588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14589 | *) ac_try_echo=$ac_try;; | ||
14590 | esac | ||
14591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14592 | (eval "$ac_compile") 2>conftest.er1 | ||
14593 | ac_status=$? | ||
14594 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14595 | rm -f conftest.er1 | ||
14596 | cat conftest.err >&5 | ||
14597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14598 | (exit $ac_status); } && { | ||
14599 | test -z "$ac_c_werror_flag" || | ||
14600 | test ! -s conftest.err | ||
14601 | } && test -s conftest.$ac_objext; then | ||
14602 | ac_cv_have_decl_strsep=yes | ||
14603 | else | ||
14604 | echo "$as_me: failed program was:" >&5 | ||
14605 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14606 | |||
14607 | ac_cv_have_decl_strsep=no | ||
14608 | fi | ||
14609 | |||
14610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14611 | fi | ||
14612 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5 | ||
14613 | echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; } | ||
14614 | if test $ac_cv_have_decl_strsep = yes; then | ||
14615 | |||
14616 | for ac_func in strsep | ||
14617 | do | ||
14618 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14619 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14620 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14621 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14623 | else | ||
14624 | cat >conftest.$ac_ext <<_ACEOF | ||
14625 | /* confdefs.h. */ | ||
14626 | _ACEOF | ||
14627 | cat confdefs.h >>conftest.$ac_ext | ||
14628 | cat >>conftest.$ac_ext <<_ACEOF | ||
14629 | /* end confdefs.h. */ | ||
14630 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14631 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14632 | #define $ac_func innocuous_$ac_func | ||
14633 | |||
14634 | /* System header to define __stub macros and hopefully few prototypes, | ||
14635 | which can conflict with char $ac_func (); below. | ||
14636 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14637 | <limits.h> exists even on freestanding compilers. */ | ||
14638 | |||
14639 | #ifdef __STDC__ | ||
14640 | # include <limits.h> | ||
14641 | #else | ||
14642 | # include <assert.h> | ||
14643 | #endif | ||
14644 | |||
14645 | #undef $ac_func | ||
14646 | |||
14647 | /* Override any GCC internal prototype to avoid an error. | ||
14648 | Use char because int might match the return type of a GCC | ||
14649 | builtin and then its argument prototype would still apply. */ | ||
14650 | #ifdef __cplusplus | ||
14651 | extern "C" | ||
14652 | #endif | ||
14653 | char $ac_func (); | ||
14654 | /* The GNU C library defines this for functions which it implements | ||
14655 | to always fail with ENOSYS. Some functions are actually named | ||
14656 | something starting with __ and the normal name is an alias. */ | ||
14657 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14658 | choke me | ||
14659 | #endif | ||
14660 | |||
14661 | int | ||
14662 | main () | ||
14663 | { | ||
14664 | return $ac_func (); | ||
14665 | ; | ||
14666 | return 0; | ||
14667 | } | ||
14668 | _ACEOF | ||
14669 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14670 | if { (ac_try="$ac_link" | ||
14671 | case "(($ac_try" in | ||
14672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14673 | *) ac_try_echo=$ac_try;; | ||
14674 | esac | ||
14675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14676 | (eval "$ac_link") 2>conftest.er1 | ||
14677 | ac_status=$? | ||
14678 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14679 | rm -f conftest.er1 | ||
14680 | cat conftest.err >&5 | ||
14681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14682 | (exit $ac_status); } && { | ||
14683 | test -z "$ac_c_werror_flag" || | ||
14684 | test ! -s conftest.err | ||
14685 | } && test -s conftest$ac_exeext && | ||
14686 | $as_test_x conftest$ac_exeext; then | ||
14687 | eval "$as_ac_var=yes" | ||
14688 | else | ||
14689 | echo "$as_me: failed program was:" >&5 | ||
14690 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14691 | |||
14692 | eval "$as_ac_var=no" | ||
14693 | fi | ||
14694 | |||
14695 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14696 | conftest$ac_exeext conftest.$ac_ext | ||
14697 | fi | ||
14698 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14699 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14700 | echo "${ECHO_T}$ac_res" >&6; } | ||
14701 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14702 | cat >>confdefs.h <<_ACEOF | ||
14703 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14704 | _ACEOF | ||
14705 | |||
14706 | fi | ||
14707 | done | ||
14708 | |||
14709 | fi | ||
14710 | |||
14711 | |||
14712 | { echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5 | ||
14713 | echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; } | ||
14714 | if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then | ||
14715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14716 | else | ||
14717 | cat >conftest.$ac_ext <<_ACEOF | ||
14718 | /* confdefs.h. */ | ||
14719 | _ACEOF | ||
14720 | cat confdefs.h >>conftest.$ac_ext | ||
14721 | cat >>conftest.$ac_ext <<_ACEOF | ||
14722 | /* end confdefs.h. */ | ||
14723 | #include <termios.h> | ||
14724 | |||
14725 | |||
14726 | int | ||
14727 | main () | ||
14728 | { | ||
14729 | #ifndef tcsendbreak | ||
14730 | (void) tcsendbreak; | ||
14731 | #endif | ||
14732 | |||
14733 | ; | ||
14734 | return 0; | ||
14735 | } | ||
14736 | _ACEOF | ||
14737 | rm -f conftest.$ac_objext | ||
14738 | if { (ac_try="$ac_compile" | ||
14739 | case "(($ac_try" in | ||
14740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14741 | *) ac_try_echo=$ac_try;; | ||
14742 | esac | ||
14743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14744 | (eval "$ac_compile") 2>conftest.er1 | ||
14745 | ac_status=$? | ||
14746 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14747 | rm -f conftest.er1 | ||
14748 | cat conftest.err >&5 | ||
14749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14750 | (exit $ac_status); } && { | ||
14751 | test -z "$ac_c_werror_flag" || | ||
14752 | test ! -s conftest.err | ||
14753 | } && test -s conftest.$ac_objext; then | ||
14754 | ac_cv_have_decl_tcsendbreak=yes | ||
14755 | else | ||
14756 | echo "$as_me: failed program was:" >&5 | ||
14757 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14758 | |||
14759 | ac_cv_have_decl_tcsendbreak=no | ||
14760 | fi | ||
14761 | |||
14762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14763 | fi | ||
14764 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5 | ||
14765 | echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; } | ||
14766 | if test $ac_cv_have_decl_tcsendbreak = yes; then | ||
14767 | cat >>confdefs.h <<\_ACEOF | ||
14768 | #define HAVE_TCSENDBREAK 1 | ||
14769 | _ACEOF | ||
14770 | |||
14771 | else | ||
14772 | |||
14773 | for ac_func in tcsendbreak | ||
14774 | do | ||
14775 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14776 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14777 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14778 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14780 | else | ||
14781 | cat >conftest.$ac_ext <<_ACEOF | ||
14782 | /* confdefs.h. */ | ||
14783 | _ACEOF | ||
14784 | cat confdefs.h >>conftest.$ac_ext | ||
14785 | cat >>conftest.$ac_ext <<_ACEOF | ||
14786 | /* end confdefs.h. */ | ||
14787 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14788 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14789 | #define $ac_func innocuous_$ac_func | ||
14790 | |||
14791 | /* System header to define __stub macros and hopefully few prototypes, | ||
14792 | which can conflict with char $ac_func (); below. | ||
14793 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14794 | <limits.h> exists even on freestanding compilers. */ | ||
14795 | |||
14796 | #ifdef __STDC__ | ||
14797 | # include <limits.h> | ||
14798 | #else | ||
14799 | # include <assert.h> | ||
14800 | #endif | ||
14801 | |||
14802 | #undef $ac_func | ||
14803 | |||
14804 | /* Override any GCC internal prototype to avoid an error. | ||
14805 | Use char because int might match the return type of a GCC | ||
14806 | builtin and then its argument prototype would still apply. */ | ||
14807 | #ifdef __cplusplus | ||
14808 | extern "C" | ||
14809 | #endif | ||
14810 | char $ac_func (); | ||
14811 | /* The GNU C library defines this for functions which it implements | ||
14812 | to always fail with ENOSYS. Some functions are actually named | ||
14813 | something starting with __ and the normal name is an alias. */ | ||
14814 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14815 | choke me | ||
14816 | #endif | ||
14817 | |||
14818 | int | ||
14819 | main () | ||
14820 | { | ||
14821 | return $ac_func (); | ||
14822 | ; | ||
14823 | return 0; | ||
14824 | } | ||
14825 | _ACEOF | ||
14826 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14827 | if { (ac_try="$ac_link" | ||
14828 | case "(($ac_try" in | ||
14829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14830 | *) ac_try_echo=$ac_try;; | ||
14831 | esac | ||
14832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14833 | (eval "$ac_link") 2>conftest.er1 | ||
14834 | ac_status=$? | ||
14835 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14836 | rm -f conftest.er1 | ||
14837 | cat conftest.err >&5 | ||
14838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14839 | (exit $ac_status); } && { | ||
14840 | test -z "$ac_c_werror_flag" || | ||
14841 | test ! -s conftest.err | ||
14842 | } && test -s conftest$ac_exeext && | ||
14843 | $as_test_x conftest$ac_exeext; then | ||
14844 | eval "$as_ac_var=yes" | ||
14845 | else | ||
14846 | echo "$as_me: failed program was:" >&5 | ||
14847 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14848 | |||
14849 | eval "$as_ac_var=no" | ||
14850 | fi | ||
14851 | |||
14852 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14853 | conftest$ac_exeext conftest.$ac_ext | ||
14854 | fi | ||
14855 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14856 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14857 | echo "${ECHO_T}$ac_res" >&6; } | ||
14858 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14859 | cat >>confdefs.h <<_ACEOF | ||
14860 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14861 | _ACEOF | ||
14862 | |||
14863 | fi | ||
14864 | done | ||
14865 | |||
14866 | fi | ||
14867 | |||
14868 | |||
14869 | { echo "$as_me:$LINENO: checking whether h_errno is declared" >&5 | ||
14870 | echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; } | ||
14871 | if test "${ac_cv_have_decl_h_errno+set}" = set; then | ||
14872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14873 | else | ||
14874 | cat >conftest.$ac_ext <<_ACEOF | ||
14875 | /* confdefs.h. */ | ||
14876 | _ACEOF | ||
14877 | cat confdefs.h >>conftest.$ac_ext | ||
14878 | cat >>conftest.$ac_ext <<_ACEOF | ||
14879 | /* end confdefs.h. */ | ||
14880 | #include <netdb.h> | ||
14881 | |||
14882 | int | ||
14883 | main () | ||
14884 | { | ||
14885 | #ifndef h_errno | ||
14886 | (void) h_errno; | ||
14887 | #endif | ||
14888 | |||
14889 | ; | ||
14890 | return 0; | ||
14891 | } | ||
14892 | _ACEOF | ||
14893 | rm -f conftest.$ac_objext | ||
14894 | if { (ac_try="$ac_compile" | ||
14895 | case "(($ac_try" in | ||
14896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14897 | *) ac_try_echo=$ac_try;; | ||
14898 | esac | ||
14899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14900 | (eval "$ac_compile") 2>conftest.er1 | ||
14901 | ac_status=$? | ||
14902 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14903 | rm -f conftest.er1 | ||
14904 | cat conftest.err >&5 | ||
14905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14906 | (exit $ac_status); } && { | ||
14907 | test -z "$ac_c_werror_flag" || | ||
14908 | test ! -s conftest.err | ||
14909 | } && test -s conftest.$ac_objext; then | ||
14910 | ac_cv_have_decl_h_errno=yes | ||
14911 | else | ||
14912 | echo "$as_me: failed program was:" >&5 | ||
14913 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14914 | |||
14915 | ac_cv_have_decl_h_errno=no | ||
14916 | fi | ||
14917 | |||
14918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14919 | fi | ||
14920 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5 | ||
14921 | echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; } | ||
14922 | if test $ac_cv_have_decl_h_errno = yes; then | ||
14923 | |||
14924 | cat >>confdefs.h <<_ACEOF | ||
14925 | #define HAVE_DECL_H_ERRNO 1 | ||
14926 | _ACEOF | ||
14927 | |||
14928 | |||
14929 | else | ||
14930 | cat >>confdefs.h <<_ACEOF | ||
14931 | #define HAVE_DECL_H_ERRNO 0 | ||
14932 | _ACEOF | ||
14933 | |||
14934 | |||
14935 | fi | ||
14936 | |||
14937 | |||
14938 | |||
14939 | { echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5 | ||
14940 | echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; } | ||
14941 | if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then | ||
14942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14943 | else | ||
14944 | cat >conftest.$ac_ext <<_ACEOF | ||
14945 | /* confdefs.h. */ | ||
14946 | _ACEOF | ||
14947 | cat confdefs.h >>conftest.$ac_ext | ||
14948 | cat >>conftest.$ac_ext <<_ACEOF | ||
14949 | /* end confdefs.h. */ | ||
14950 | |||
14951 | #include <sys/types.h> | ||
14952 | #include <sys/socket.h> | ||
14953 | |||
14954 | |||
14955 | int | ||
14956 | main () | ||
14957 | { | ||
14958 | #ifndef SHUT_RD | ||
14959 | (void) SHUT_RD; | ||
14960 | #endif | ||
14961 | |||
14962 | ; | ||
14963 | return 0; | ||
14964 | } | ||
14965 | _ACEOF | ||
14966 | rm -f conftest.$ac_objext | ||
14967 | if { (ac_try="$ac_compile" | ||
14968 | case "(($ac_try" in | ||
14969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14970 | *) ac_try_echo=$ac_try;; | ||
14971 | esac | ||
14972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14973 | (eval "$ac_compile") 2>conftest.er1 | ||
14974 | ac_status=$? | ||
14975 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14976 | rm -f conftest.er1 | ||
14977 | cat conftest.err >&5 | ||
14978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14979 | (exit $ac_status); } && { | ||
14980 | test -z "$ac_c_werror_flag" || | ||
14981 | test ! -s conftest.err | ||
14982 | } && test -s conftest.$ac_objext; then | ||
14983 | ac_cv_have_decl_SHUT_RD=yes | ||
14984 | else | ||
14985 | echo "$as_me: failed program was:" >&5 | ||
14986 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14987 | |||
14988 | ac_cv_have_decl_SHUT_RD=no | ||
14989 | fi | ||
14990 | |||
14991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14992 | fi | ||
14993 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5 | ||
14994 | echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; } | ||
14995 | if test $ac_cv_have_decl_SHUT_RD = yes; then | ||
14996 | |||
14997 | cat >>confdefs.h <<_ACEOF | ||
14998 | #define HAVE_DECL_SHUT_RD 1 | ||
14999 | _ACEOF | ||
15000 | |||
15001 | |||
15002 | else | ||
15003 | cat >>confdefs.h <<_ACEOF | ||
15004 | #define HAVE_DECL_SHUT_RD 0 | ||
15005 | _ACEOF | ||
15006 | |||
15007 | |||
15008 | fi | ||
15009 | |||
15010 | |||
15011 | |||
15012 | { echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5 | ||
15013 | echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; } | ||
15014 | if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then | ||
15015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15016 | else | ||
15017 | cat >conftest.$ac_ext <<_ACEOF | ||
15018 | /* confdefs.h. */ | ||
15019 | _ACEOF | ||
15020 | cat confdefs.h >>conftest.$ac_ext | ||
15021 | cat >>conftest.$ac_ext <<_ACEOF | ||
15022 | /* end confdefs.h. */ | ||
15023 | |||
15024 | #include <sys/types.h> | ||
15025 | #ifdef HAVE_SYS_STAT_H | ||
15026 | # include <sys/stat.h> | ||
15027 | #endif | ||
15028 | #ifdef HAVE_FCNTL_H | ||
15029 | # include <fcntl.h> | ||
15030 | #endif | ||
15031 | |||
15032 | |||
15033 | int | ||
15034 | main () | ||
15035 | { | ||
15036 | #ifndef O_NONBLOCK | ||
15037 | (void) O_NONBLOCK; | ||
15038 | #endif | ||
15039 | |||
15040 | ; | ||
15041 | return 0; | ||
15042 | } | ||
15043 | _ACEOF | ||
15044 | rm -f conftest.$ac_objext | ||
15045 | if { (ac_try="$ac_compile" | ||
15046 | case "(($ac_try" in | ||
15047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15048 | *) ac_try_echo=$ac_try;; | ||
15049 | esac | ||
15050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15051 | (eval "$ac_compile") 2>conftest.er1 | ||
15052 | ac_status=$? | ||
15053 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15054 | rm -f conftest.er1 | ||
15055 | cat conftest.err >&5 | ||
15056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15057 | (exit $ac_status); } && { | ||
15058 | test -z "$ac_c_werror_flag" || | ||
15059 | test ! -s conftest.err | ||
15060 | } && test -s conftest.$ac_objext; then | ||
15061 | ac_cv_have_decl_O_NONBLOCK=yes | ||
15062 | else | ||
15063 | echo "$as_me: failed program was:" >&5 | ||
15064 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15065 | |||
15066 | ac_cv_have_decl_O_NONBLOCK=no | ||
15067 | fi | ||
15068 | |||
15069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15070 | fi | ||
15071 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5 | ||
15072 | echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; } | ||
15073 | if test $ac_cv_have_decl_O_NONBLOCK = yes; then | ||
15074 | |||
15075 | cat >>confdefs.h <<_ACEOF | ||
15076 | #define HAVE_DECL_O_NONBLOCK 1 | ||
15077 | _ACEOF | ||
15078 | |||
15079 | |||
15080 | else | ||
15081 | cat >>confdefs.h <<_ACEOF | ||
15082 | #define HAVE_DECL_O_NONBLOCK 0 | ||
15083 | _ACEOF | ||
15084 | |||
15085 | |||
15086 | fi | ||
15087 | |||
15088 | |||
15089 | |||
15090 | { echo "$as_me:$LINENO: checking whether writev is declared" >&5 | ||
15091 | echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; } | ||
15092 | if test "${ac_cv_have_decl_writev+set}" = set; then | ||
15093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15094 | else | ||
15095 | cat >conftest.$ac_ext <<_ACEOF | ||
15096 | /* confdefs.h. */ | ||
15097 | _ACEOF | ||
15098 | cat confdefs.h >>conftest.$ac_ext | ||
15099 | cat >>conftest.$ac_ext <<_ACEOF | ||
15100 | /* end confdefs.h. */ | ||
15101 | |||
15102 | #include <sys/types.h> | ||
15103 | #include <sys/uio.h> | ||
15104 | #include <unistd.h> | ||
15105 | |||
15106 | |||
15107 | int | ||
15108 | main () | ||
15109 | { | ||
15110 | #ifndef writev | ||
15111 | (void) writev; | ||
15112 | #endif | ||
15113 | |||
15114 | ; | ||
15115 | return 0; | ||
15116 | } | ||
15117 | _ACEOF | ||
15118 | rm -f conftest.$ac_objext | ||
15119 | if { (ac_try="$ac_compile" | ||
15120 | case "(($ac_try" in | ||
15121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15122 | *) ac_try_echo=$ac_try;; | ||
15123 | esac | ||
15124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15125 | (eval "$ac_compile") 2>conftest.er1 | ||
15126 | ac_status=$? | ||
15127 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15128 | rm -f conftest.er1 | ||
15129 | cat conftest.err >&5 | ||
15130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15131 | (exit $ac_status); } && { | ||
15132 | test -z "$ac_c_werror_flag" || | ||
15133 | test ! -s conftest.err | ||
15134 | } && test -s conftest.$ac_objext; then | ||
15135 | ac_cv_have_decl_writev=yes | ||
15136 | else | ||
15137 | echo "$as_me: failed program was:" >&5 | ||
15138 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15139 | |||
15140 | ac_cv_have_decl_writev=no | ||
15141 | fi | ||
15142 | |||
15143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15144 | fi | ||
15145 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5 | ||
15146 | echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; } | ||
15147 | if test $ac_cv_have_decl_writev = yes; then | ||
15148 | |||
15149 | cat >>confdefs.h <<_ACEOF | ||
15150 | #define HAVE_DECL_WRITEV 1 | ||
15151 | _ACEOF | ||
15152 | |||
15153 | |||
15154 | else | ||
15155 | cat >>confdefs.h <<_ACEOF | ||
15156 | #define HAVE_DECL_WRITEV 0 | ||
15157 | _ACEOF | ||
15158 | |||
15159 | |||
15160 | fi | ||
15161 | |||
15162 | |||
15163 | |||
15164 | { echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5 | ||
15165 | echo $ECHO_N "checking whether MAXSYMLINKS is declared... $ECHO_C" >&6; } | ||
15166 | if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then | ||
15167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15168 | else | ||
15169 | cat >conftest.$ac_ext <<_ACEOF | ||
15170 | /* confdefs.h. */ | ||
15171 | _ACEOF | ||
15172 | cat confdefs.h >>conftest.$ac_ext | ||
15173 | cat >>conftest.$ac_ext <<_ACEOF | ||
15174 | /* end confdefs.h. */ | ||
15175 | |||
15176 | #include <sys/param.h> | ||
15177 | |||
15178 | |||
15179 | int | ||
15180 | main () | ||
15181 | { | ||
15182 | #ifndef MAXSYMLINKS | ||
15183 | (void) MAXSYMLINKS; | ||
15184 | #endif | ||
15185 | |||
15186 | ; | ||
15187 | return 0; | ||
15188 | } | ||
15189 | _ACEOF | ||
15190 | rm -f conftest.$ac_objext | ||
15191 | if { (ac_try="$ac_compile" | ||
15192 | case "(($ac_try" in | ||
15193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15194 | *) ac_try_echo=$ac_try;; | ||
15195 | esac | ||
15196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15197 | (eval "$ac_compile") 2>conftest.er1 | ||
15198 | ac_status=$? | ||
15199 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15200 | rm -f conftest.er1 | ||
15201 | cat conftest.err >&5 | ||
15202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15203 | (exit $ac_status); } && { | ||
15204 | test -z "$ac_c_werror_flag" || | ||
15205 | test ! -s conftest.err | ||
15206 | } && test -s conftest.$ac_objext; then | ||
15207 | ac_cv_have_decl_MAXSYMLINKS=yes | ||
15208 | else | ||
15209 | echo "$as_me: failed program was:" >&5 | ||
15210 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15211 | |||
15212 | ac_cv_have_decl_MAXSYMLINKS=no | ||
15213 | fi | ||
15214 | |||
15215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15216 | fi | ||
15217 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5 | ||
15218 | echo "${ECHO_T}$ac_cv_have_decl_MAXSYMLINKS" >&6; } | ||
15219 | if test $ac_cv_have_decl_MAXSYMLINKS = yes; then | ||
15220 | |||
15221 | cat >>confdefs.h <<_ACEOF | ||
15222 | #define HAVE_DECL_MAXSYMLINKS 1 | ||
15223 | _ACEOF | ||
15224 | |||
15225 | |||
15226 | else | ||
15227 | cat >>confdefs.h <<_ACEOF | ||
15228 | #define HAVE_DECL_MAXSYMLINKS 0 | ||
15229 | _ACEOF | ||
15230 | |||
15231 | |||
15232 | fi | ||
15233 | |||
15234 | |||
15235 | |||
15236 | { echo "$as_me:$LINENO: checking whether offsetof is declared" >&5 | ||
15237 | echo $ECHO_N "checking whether offsetof is declared... $ECHO_C" >&6; } | ||
15238 | if test "${ac_cv_have_decl_offsetof+set}" = set; then | ||
15239 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15240 | else | ||
15241 | cat >conftest.$ac_ext <<_ACEOF | ||
15242 | /* confdefs.h. */ | ||
15243 | _ACEOF | ||
15244 | cat confdefs.h >>conftest.$ac_ext | ||
15245 | cat >>conftest.$ac_ext <<_ACEOF | ||
15246 | /* end confdefs.h. */ | ||
15247 | |||
15248 | #include <stddef.h> | ||
15249 | |||
15250 | |||
15251 | int | ||
15252 | main () | ||
15253 | { | ||
15254 | #ifndef offsetof | ||
15255 | (void) offsetof; | ||
15256 | #endif | ||
15257 | |||
15258 | ; | ||
15259 | return 0; | ||
15260 | } | ||
15261 | _ACEOF | ||
15262 | rm -f conftest.$ac_objext | ||
15263 | if { (ac_try="$ac_compile" | ||
15264 | case "(($ac_try" in | ||
15265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15266 | *) ac_try_echo=$ac_try;; | ||
15267 | esac | ||
15268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15269 | (eval "$ac_compile") 2>conftest.er1 | ||
15270 | ac_status=$? | ||
15271 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15272 | rm -f conftest.er1 | ||
15273 | cat conftest.err >&5 | ||
15274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15275 | (exit $ac_status); } && { | ||
15276 | test -z "$ac_c_werror_flag" || | ||
15277 | test ! -s conftest.err | ||
15278 | } && test -s conftest.$ac_objext; then | ||
15279 | ac_cv_have_decl_offsetof=yes | ||
15280 | else | ||
15281 | echo "$as_me: failed program was:" >&5 | ||
15282 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15283 | |||
15284 | ac_cv_have_decl_offsetof=no | ||
15285 | fi | ||
15286 | |||
15287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15288 | fi | ||
15289 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5 | ||
15290 | echo "${ECHO_T}$ac_cv_have_decl_offsetof" >&6; } | ||
15291 | if test $ac_cv_have_decl_offsetof = yes; then | ||
15292 | |||
15293 | cat >>confdefs.h <<_ACEOF | ||
15294 | #define HAVE_DECL_OFFSETOF 1 | ||
15295 | _ACEOF | ||
15296 | |||
15297 | |||
15298 | else | ||
15299 | cat >>confdefs.h <<_ACEOF | ||
15300 | #define HAVE_DECL_OFFSETOF 0 | ||
15301 | _ACEOF | ||
15302 | |||
15303 | |||
15304 | fi | ||
15305 | |||
15306 | |||
15307 | |||
15308 | |||
15309 | for ac_func in setresuid | ||
15310 | do | ||
15311 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15312 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
15313 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
15314 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15316 | else | ||
15317 | cat >conftest.$ac_ext <<_ACEOF | ||
15318 | /* confdefs.h. */ | ||
15319 | _ACEOF | ||
15320 | cat confdefs.h >>conftest.$ac_ext | ||
15321 | cat >>conftest.$ac_ext <<_ACEOF | ||
15322 | /* end confdefs.h. */ | ||
15323 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
15324 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15325 | #define $ac_func innocuous_$ac_func | ||
15326 | |||
15327 | /* System header to define __stub macros and hopefully few prototypes, | ||
15328 | which can conflict with char $ac_func (); below. | ||
15329 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15330 | <limits.h> exists even on freestanding compilers. */ | ||
15331 | |||
15332 | #ifdef __STDC__ | ||
15333 | # include <limits.h> | ||
15334 | #else | ||
15335 | # include <assert.h> | ||
15336 | #endif | ||
15337 | |||
15338 | #undef $ac_func | ||
15339 | |||
15340 | /* Override any GCC internal prototype to avoid an error. | ||
15341 | Use char because int might match the return type of a GCC | ||
15342 | builtin and then its argument prototype would still apply. */ | ||
15343 | #ifdef __cplusplus | ||
15344 | extern "C" | ||
15345 | #endif | ||
15346 | char $ac_func (); | ||
15347 | /* The GNU C library defines this for functions which it implements | ||
15348 | to always fail with ENOSYS. Some functions are actually named | ||
15349 | something starting with __ and the normal name is an alias. */ | ||
15350 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15351 | choke me | ||
15352 | #endif | ||
15353 | |||
15354 | int | ||
15355 | main () | ||
15356 | { | ||
15357 | return $ac_func (); | ||
15358 | ; | ||
15359 | return 0; | ||
15360 | } | ||
15361 | _ACEOF | ||
15362 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15363 | if { (ac_try="$ac_link" | ||
15364 | case "(($ac_try" in | ||
15365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15366 | *) ac_try_echo=$ac_try;; | ||
15367 | esac | ||
15368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15369 | (eval "$ac_link") 2>conftest.er1 | ||
15370 | ac_status=$? | ||
15371 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15372 | rm -f conftest.er1 | ||
15373 | cat conftest.err >&5 | ||
15374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15375 | (exit $ac_status); } && { | ||
15376 | test -z "$ac_c_werror_flag" || | ||
15377 | test ! -s conftest.err | ||
15378 | } && test -s conftest$ac_exeext && | ||
15379 | $as_test_x conftest$ac_exeext; then | ||
15380 | eval "$as_ac_var=yes" | ||
15381 | else | ||
15382 | echo "$as_me: failed program was:" >&5 | ||
15383 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15384 | |||
15385 | eval "$as_ac_var=no" | ||
15386 | fi | ||
15387 | |||
15388 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15389 | conftest$ac_exeext conftest.$ac_ext | ||
15390 | fi | ||
15391 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
15392 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15393 | echo "${ECHO_T}$ac_res" >&6; } | ||
15394 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
15395 | cat >>confdefs.h <<_ACEOF | ||
15396 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15397 | _ACEOF | ||
15398 | |||
15399 | { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5 | ||
15400 | echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; } | ||
15401 | if test "$cross_compiling" = yes; then | ||
15402 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
15403 | echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
15404 | |||
15405 | else | ||
15406 | cat >conftest.$ac_ext <<_ACEOF | ||
15407 | /* confdefs.h. */ | ||
15408 | _ACEOF | ||
15409 | cat confdefs.h >>conftest.$ac_ext | ||
15410 | cat >>conftest.$ac_ext <<_ACEOF | ||
15411 | /* end confdefs.h. */ | ||
15412 | |||
15413 | #include <stdlib.h> | ||
15414 | #include <errno.h> | ||
15415 | int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
15416 | |||
15417 | _ACEOF | ||
15418 | rm -f conftest$ac_exeext | ||
15419 | if { (ac_try="$ac_link" | ||
15420 | case "(($ac_try" in | ||
15421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15422 | *) ac_try_echo=$ac_try;; | ||
15423 | esac | ||
15424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15425 | (eval "$ac_link") 2>&5 | ||
15426 | ac_status=$? | ||
15427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15428 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15429 | { (case "(($ac_try" in | ||
15430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15431 | *) ac_try_echo=$ac_try;; | ||
15432 | esac | ||
15433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15434 | (eval "$ac_try") 2>&5 | ||
15435 | ac_status=$? | ||
15436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15437 | (exit $ac_status); }; }; then | ||
15438 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15439 | echo "${ECHO_T}yes" >&6; } | ||
15440 | else | ||
15441 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15442 | echo "$as_me: failed program was:" >&5 | ||
15443 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15444 | |||
15445 | ( exit $ac_status ) | ||
15446 | |||
15447 | cat >>confdefs.h <<\_ACEOF | ||
15448 | #define BROKEN_SETRESUID 1 | ||
15449 | _ACEOF | ||
15450 | |||
15451 | { echo "$as_me:$LINENO: result: not implemented" >&5 | ||
15452 | echo "${ECHO_T}not implemented" >&6; } | ||
15453 | fi | ||
15454 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15455 | fi | ||
15456 | |||
15457 | |||
15458 | |||
15459 | fi | ||
15460 | done | ||
15461 | |||
15462 | |||
15463 | |||
15464 | for ac_func in setresgid | ||
15465 | do | ||
15466 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15467 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
15468 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
15469 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15471 | else | ||
15472 | cat >conftest.$ac_ext <<_ACEOF | ||
15473 | /* confdefs.h. */ | ||
15474 | _ACEOF | ||
15475 | cat confdefs.h >>conftest.$ac_ext | ||
15476 | cat >>conftest.$ac_ext <<_ACEOF | ||
15477 | /* end confdefs.h. */ | ||
15478 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
15479 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15480 | #define $ac_func innocuous_$ac_func | ||
15481 | |||
15482 | /* System header to define __stub macros and hopefully few prototypes, | ||
15483 | which can conflict with char $ac_func (); below. | ||
15484 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15485 | <limits.h> exists even on freestanding compilers. */ | ||
15486 | |||
15487 | #ifdef __STDC__ | ||
15488 | # include <limits.h> | ||
15489 | #else | ||
15490 | # include <assert.h> | ||
15491 | #endif | ||
15492 | |||
15493 | #undef $ac_func | ||
15494 | |||
15495 | /* Override any GCC internal prototype to avoid an error. | ||
15496 | Use char because int might match the return type of a GCC | ||
15497 | builtin and then its argument prototype would still apply. */ | ||
15498 | #ifdef __cplusplus | ||
15499 | extern "C" | ||
15500 | #endif | ||
15501 | char $ac_func (); | ||
15502 | /* The GNU C library defines this for functions which it implements | ||
15503 | to always fail with ENOSYS. Some functions are actually named | ||
15504 | something starting with __ and the normal name is an alias. */ | ||
15505 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15506 | choke me | ||
15507 | #endif | ||
15508 | |||
15509 | int | ||
15510 | main () | ||
15511 | { | ||
15512 | return $ac_func (); | ||
15513 | ; | ||
15514 | return 0; | ||
15515 | } | ||
15516 | _ACEOF | ||
15517 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15518 | if { (ac_try="$ac_link" | ||
15519 | case "(($ac_try" in | ||
15520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15521 | *) ac_try_echo=$ac_try;; | ||
15522 | esac | ||
15523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15524 | (eval "$ac_link") 2>conftest.er1 | ||
15525 | ac_status=$? | ||
15526 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15527 | rm -f conftest.er1 | ||
15528 | cat conftest.err >&5 | ||
15529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15530 | (exit $ac_status); } && { | ||
15531 | test -z "$ac_c_werror_flag" || | ||
15532 | test ! -s conftest.err | ||
15533 | } && test -s conftest$ac_exeext && | ||
15534 | $as_test_x conftest$ac_exeext; then | ||
15535 | eval "$as_ac_var=yes" | ||
15536 | else | ||
15537 | echo "$as_me: failed program was:" >&5 | ||
15538 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15539 | |||
15540 | eval "$as_ac_var=no" | ||
15541 | fi | ||
15542 | |||
15543 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15544 | conftest$ac_exeext conftest.$ac_ext | ||
15545 | fi | ||
15546 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
15547 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15548 | echo "${ECHO_T}$ac_res" >&6; } | ||
15549 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
15550 | cat >>confdefs.h <<_ACEOF | ||
15551 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15552 | _ACEOF | ||
15553 | |||
15554 | { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5 | ||
15555 | echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; } | ||
15556 | if test "$cross_compiling" = yes; then | ||
15557 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
15558 | echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
15559 | |||
15560 | else | ||
15561 | cat >conftest.$ac_ext <<_ACEOF | ||
15562 | /* confdefs.h. */ | ||
15563 | _ACEOF | ||
15564 | cat confdefs.h >>conftest.$ac_ext | ||
15565 | cat >>conftest.$ac_ext <<_ACEOF | ||
15566 | /* end confdefs.h. */ | ||
15567 | |||
15568 | #include <stdlib.h> | ||
15569 | #include <errno.h> | ||
15570 | int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
15571 | |||
15572 | _ACEOF | ||
15573 | rm -f conftest$ac_exeext | ||
15574 | if { (ac_try="$ac_link" | ||
15575 | case "(($ac_try" in | ||
15576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15577 | *) ac_try_echo=$ac_try;; | ||
15578 | esac | ||
15579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15580 | (eval "$ac_link") 2>&5 | ||
15581 | ac_status=$? | ||
15582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15583 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15584 | { (case "(($ac_try" in | ||
15585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15586 | *) ac_try_echo=$ac_try;; | ||
15587 | esac | ||
15588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15589 | (eval "$ac_try") 2>&5 | ||
15590 | ac_status=$? | ||
15591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15592 | (exit $ac_status); }; }; then | ||
15593 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15594 | echo "${ECHO_T}yes" >&6; } | ||
15595 | else | ||
15596 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15597 | echo "$as_me: failed program was:" >&5 | ||
15598 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15599 | |||
15600 | ( exit $ac_status ) | ||
15601 | |||
15602 | cat >>confdefs.h <<\_ACEOF | ||
15603 | #define BROKEN_SETRESGID 1 | ||
15604 | _ACEOF | ||
15605 | |||
15606 | { echo "$as_me:$LINENO: result: not implemented" >&5 | ||
15607 | echo "${ECHO_T}not implemented" >&6; } | ||
15608 | fi | ||
15609 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15610 | fi | ||
15611 | |||
15612 | |||
15613 | |||
15614 | fi | ||
15615 | done | ||
15616 | |||
15617 | |||
15618 | |||
15619 | |||
15620 | for ac_func in gettimeofday time | ||
15621 | do | ||
15622 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15623 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
15624 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
15625 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15627 | else | ||
15628 | cat >conftest.$ac_ext <<_ACEOF | ||
15629 | /* confdefs.h. */ | ||
15630 | _ACEOF | ||
15631 | cat confdefs.h >>conftest.$ac_ext | ||
15632 | cat >>conftest.$ac_ext <<_ACEOF | ||
15633 | /* end confdefs.h. */ | ||
15634 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
15635 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15636 | #define $ac_func innocuous_$ac_func | ||
15637 | |||
15638 | /* System header to define __stub macros and hopefully few prototypes, | ||
15639 | which can conflict with char $ac_func (); below. | ||
15640 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15641 | <limits.h> exists even on freestanding compilers. */ | ||
15642 | |||
15643 | #ifdef __STDC__ | ||
15644 | # include <limits.h> | ||
15645 | #else | ||
15646 | # include <assert.h> | ||
15647 | #endif | ||
15648 | |||
15649 | #undef $ac_func | ||
15650 | |||
15651 | /* Override any GCC internal prototype to avoid an error. | ||
15652 | Use char because int might match the return type of a GCC | ||
15653 | builtin and then its argument prototype would still apply. */ | ||
15654 | #ifdef __cplusplus | ||
15655 | extern "C" | ||
15656 | #endif | ||
15657 | char $ac_func (); | ||
15658 | /* The GNU C library defines this for functions which it implements | ||
15659 | to always fail with ENOSYS. Some functions are actually named | ||
15660 | something starting with __ and the normal name is an alias. */ | ||
15661 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15662 | choke me | ||
15663 | #endif | ||
15664 | |||
15665 | int | ||
15666 | main () | ||
15667 | { | ||
15668 | return $ac_func (); | ||
15669 | ; | ||
15670 | return 0; | ||
15671 | } | ||
15672 | _ACEOF | ||
15673 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15674 | if { (ac_try="$ac_link" | ||
15675 | case "(($ac_try" in | ||
15676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15677 | *) ac_try_echo=$ac_try;; | ||
15678 | esac | ||
15679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15680 | (eval "$ac_link") 2>conftest.er1 | ||
15681 | ac_status=$? | ||
15682 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15683 | rm -f conftest.er1 | ||
15684 | cat conftest.err >&5 | ||
15685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15686 | (exit $ac_status); } && { | ||
15687 | test -z "$ac_c_werror_flag" || | ||
15688 | test ! -s conftest.err | ||
15689 | } && test -s conftest$ac_exeext && | ||
15690 | $as_test_x conftest$ac_exeext; then | ||
15691 | eval "$as_ac_var=yes" | ||
15692 | else | ||
15693 | echo "$as_me: failed program was:" >&5 | ||
15694 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15695 | |||
15696 | eval "$as_ac_var=no" | ||
15697 | fi | ||
15698 | |||
15699 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15700 | conftest$ac_exeext conftest.$ac_ext | ||
15701 | fi | ||
15702 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
15703 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15704 | echo "${ECHO_T}$ac_res" >&6; } | ||
15705 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
15706 | cat >>confdefs.h <<_ACEOF | ||
15707 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15708 | _ACEOF | ||
15709 | |||
15710 | fi | ||
15711 | done | ||
15712 | |||
15713 | |||
15714 | |||
15715 | |||
15716 | |||
15717 | |||
15718 | |||
15719 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
15720 | do | ||
15721 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15722 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
15723 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
15724 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15726 | else | ||
15727 | cat >conftest.$ac_ext <<_ACEOF | ||
15728 | /* confdefs.h. */ | ||
15729 | _ACEOF | ||
15730 | cat confdefs.h >>conftest.$ac_ext | ||
15731 | cat >>conftest.$ac_ext <<_ACEOF | ||
15732 | /* end confdefs.h. */ | ||
15733 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
15734 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15735 | #define $ac_func innocuous_$ac_func | ||
15736 | |||
15737 | /* System header to define __stub macros and hopefully few prototypes, | ||
15738 | which can conflict with char $ac_func (); below. | ||
15739 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15740 | <limits.h> exists even on freestanding compilers. */ | ||
15741 | |||
15742 | #ifdef __STDC__ | ||
15743 | # include <limits.h> | ||
15744 | #else | ||
15745 | # include <assert.h> | ||
15746 | #endif | ||
15747 | |||
15748 | #undef $ac_func | ||
15749 | |||
15750 | /* Override any GCC internal prototype to avoid an error. | ||
15751 | Use char because int might match the return type of a GCC | ||
15752 | builtin and then its argument prototype would still apply. */ | ||
15753 | #ifdef __cplusplus | ||
15754 | extern "C" | ||
15755 | #endif | ||
15756 | char $ac_func (); | ||
15757 | /* The GNU C library defines this for functions which it implements | ||
15758 | to always fail with ENOSYS. Some functions are actually named | ||
15759 | something starting with __ and the normal name is an alias. */ | ||
15760 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15761 | choke me | ||
15762 | #endif | ||
15763 | |||
15764 | int | ||
15765 | main () | ||
15766 | { | ||
15767 | return $ac_func (); | ||
15768 | ; | ||
15769 | return 0; | ||
15770 | } | ||
15771 | _ACEOF | ||
15772 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15773 | if { (ac_try="$ac_link" | ||
15774 | case "(($ac_try" in | ||
15775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15776 | *) ac_try_echo=$ac_try;; | ||
15777 | esac | ||
15778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15779 | (eval "$ac_link") 2>conftest.er1 | ||
15780 | ac_status=$? | ||
15781 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15782 | rm -f conftest.er1 | ||
15783 | cat conftest.err >&5 | ||
15784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15785 | (exit $ac_status); } && { | ||
15786 | test -z "$ac_c_werror_flag" || | ||
15787 | test ! -s conftest.err | ||
15788 | } && test -s conftest$ac_exeext && | ||
15789 | $as_test_x conftest$ac_exeext; then | ||
15790 | eval "$as_ac_var=yes" | ||
15791 | else | ||
15792 | echo "$as_me: failed program was:" >&5 | ||
15793 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15794 | |||
15795 | eval "$as_ac_var=no" | ||
15796 | fi | ||
15797 | |||
15798 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15799 | conftest$ac_exeext conftest.$ac_ext | ||
15800 | fi | ||
15801 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
15802 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15803 | echo "${ECHO_T}$ac_res" >&6; } | ||
15804 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
15805 | cat >>confdefs.h <<_ACEOF | ||
15806 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15807 | _ACEOF | ||
15808 | |||
15809 | fi | ||
15810 | done | ||
15811 | |||
15812 | |||
15813 | for ac_func in utmpname | ||
15814 | do | ||
15815 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15816 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
15817 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
15818 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15820 | else | ||
15821 | cat >conftest.$ac_ext <<_ACEOF | ||
15822 | /* confdefs.h. */ | ||
15823 | _ACEOF | ||
15824 | cat confdefs.h >>conftest.$ac_ext | ||
15825 | cat >>conftest.$ac_ext <<_ACEOF | ||
15826 | /* end confdefs.h. */ | ||
15827 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
15828 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15829 | #define $ac_func innocuous_$ac_func | ||
15830 | |||
15831 | /* System header to define __stub macros and hopefully few prototypes, | ||
15832 | which can conflict with char $ac_func (); below. | ||
15833 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15834 | <limits.h> exists even on freestanding compilers. */ | ||
15835 | |||
15836 | #ifdef __STDC__ | ||
15837 | # include <limits.h> | ||
15838 | #else | ||
15839 | # include <assert.h> | ||
15840 | #endif | ||
15841 | |||
15842 | #undef $ac_func | ||
15843 | |||
15844 | /* Override any GCC internal prototype to avoid an error. | ||
15845 | Use char because int might match the return type of a GCC | ||
15846 | builtin and then its argument prototype would still apply. */ | ||
15847 | #ifdef __cplusplus | ||
15848 | extern "C" | ||
15849 | #endif | ||
15850 | char $ac_func (); | ||
15851 | /* The GNU C library defines this for functions which it implements | ||
15852 | to always fail with ENOSYS. Some functions are actually named | ||
15853 | something starting with __ and the normal name is an alias. */ | ||
15854 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15855 | choke me | ||
15856 | #endif | ||
15857 | |||
15858 | int | ||
15859 | main () | ||
15860 | { | ||
15861 | return $ac_func (); | ||
15862 | ; | ||
15863 | return 0; | ||
15864 | } | ||
15865 | _ACEOF | ||
15866 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15867 | if { (ac_try="$ac_link" | ||
15868 | case "(($ac_try" in | ||
15869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15870 | *) ac_try_echo=$ac_try;; | ||
15871 | esac | ||
15872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15873 | (eval "$ac_link") 2>conftest.er1 | ||
15874 | ac_status=$? | ||
15875 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15876 | rm -f conftest.er1 | ||
15877 | cat conftest.err >&5 | ||
15878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15879 | (exit $ac_status); } && { | ||
15880 | test -z "$ac_c_werror_flag" || | ||
15881 | test ! -s conftest.err | ||
15882 | } && test -s conftest$ac_exeext && | ||
15883 | $as_test_x conftest$ac_exeext; then | ||
15884 | eval "$as_ac_var=yes" | ||
15885 | else | ||
15886 | echo "$as_me: failed program was:" >&5 | ||
15887 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15888 | |||
15889 | eval "$as_ac_var=no" | ||
15890 | fi | ||
15891 | |||
15892 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15893 | conftest$ac_exeext conftest.$ac_ext | ||
15894 | fi | ||
15895 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
15896 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15897 | echo "${ECHO_T}$ac_res" >&6; } | ||
15898 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
15899 | cat >>confdefs.h <<_ACEOF | ||
15900 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15901 | _ACEOF | ||
15902 | |||
15903 | fi | ||
15904 | done | ||
15905 | |||
15906 | |||
15907 | |||
15908 | |||
15909 | |||
15910 | |||
15911 | |||
15912 | for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline | ||
15913 | do | ||
15914 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15915 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
15916 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
15917 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15919 | else | ||
15920 | cat >conftest.$ac_ext <<_ACEOF | ||
15921 | /* confdefs.h. */ | ||
15922 | _ACEOF | ||
15923 | cat confdefs.h >>conftest.$ac_ext | ||
15924 | cat >>conftest.$ac_ext <<_ACEOF | ||
15925 | /* end confdefs.h. */ | ||
15926 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
15927 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15928 | #define $ac_func innocuous_$ac_func | ||
15929 | |||
15930 | /* System header to define __stub macros and hopefully few prototypes, | ||
15931 | which can conflict with char $ac_func (); below. | ||
15932 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15933 | <limits.h> exists even on freestanding compilers. */ | ||
15934 | |||
15935 | #ifdef __STDC__ | ||
15936 | # include <limits.h> | ||
15937 | #else | ||
15938 | # include <assert.h> | ||
15939 | #endif | ||
15940 | |||
15941 | #undef $ac_func | ||
15942 | |||
15943 | /* Override any GCC internal prototype to avoid an error. | ||
15944 | Use char because int might match the return type of a GCC | ||
15945 | builtin and then its argument prototype would still apply. */ | ||
15946 | #ifdef __cplusplus | ||
15947 | extern "C" | ||
15948 | #endif | ||
15949 | char $ac_func (); | ||
15950 | /* The GNU C library defines this for functions which it implements | ||
15951 | to always fail with ENOSYS. Some functions are actually named | ||
15952 | something starting with __ and the normal name is an alias. */ | ||
15953 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15954 | choke me | ||
15955 | #endif | ||
15956 | |||
15957 | int | ||
15958 | main () | ||
15959 | { | ||
15960 | return $ac_func (); | ||
15961 | ; | ||
15962 | return 0; | ||
15963 | } | ||
15964 | _ACEOF | ||
15965 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15966 | if { (ac_try="$ac_link" | ||
15967 | case "(($ac_try" in | ||
15968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15969 | *) ac_try_echo=$ac_try;; | ||
15970 | esac | ||
15971 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15972 | (eval "$ac_link") 2>conftest.er1 | ||
15973 | ac_status=$? | ||
15974 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15975 | rm -f conftest.er1 | ||
15976 | cat conftest.err >&5 | ||
15977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15978 | (exit $ac_status); } && { | ||
15979 | test -z "$ac_c_werror_flag" || | ||
15980 | test ! -s conftest.err | ||
15981 | } && test -s conftest$ac_exeext && | ||
15982 | $as_test_x conftest$ac_exeext; then | ||
15983 | eval "$as_ac_var=yes" | ||
15984 | else | ||
15985 | echo "$as_me: failed program was:" >&5 | ||
15986 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15987 | |||
15988 | eval "$as_ac_var=no" | ||
15989 | fi | ||
15990 | |||
15991 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15992 | conftest$ac_exeext conftest.$ac_ext | ||
15993 | fi | ||
15994 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
15995 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15996 | echo "${ECHO_T}$ac_res" >&6; } | ||
15997 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
15998 | cat >>confdefs.h <<_ACEOF | ||
15999 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
16000 | _ACEOF | ||
16001 | |||
16002 | fi | ||
16003 | done | ||
16004 | |||
16005 | |||
16006 | |||
16007 | |||
16008 | for ac_func in setutxdb setutxent utmpxname | ||
16009 | do | ||
16010 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
16011 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
16012 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
16013 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
16014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16015 | else | ||
16016 | cat >conftest.$ac_ext <<_ACEOF | ||
16017 | /* confdefs.h. */ | ||
16018 | _ACEOF | ||
16019 | cat confdefs.h >>conftest.$ac_ext | ||
16020 | cat >>conftest.$ac_ext <<_ACEOF | ||
16021 | /* end confdefs.h. */ | ||
16022 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
16023 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
16024 | #define $ac_func innocuous_$ac_func | ||
16025 | |||
16026 | /* System header to define __stub macros and hopefully few prototypes, | ||
16027 | which can conflict with char $ac_func (); below. | ||
16028 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
16029 | <limits.h> exists even on freestanding compilers. */ | ||
16030 | |||
16031 | #ifdef __STDC__ | ||
16032 | # include <limits.h> | ||
16033 | #else | ||
16034 | # include <assert.h> | ||
16035 | #endif | ||
16036 | |||
16037 | #undef $ac_func | ||
16038 | |||
16039 | /* Override any GCC internal prototype to avoid an error. | ||
16040 | Use char because int might match the return type of a GCC | ||
16041 | builtin and then its argument prototype would still apply. */ | ||
16042 | #ifdef __cplusplus | ||
16043 | extern "C" | ||
16044 | #endif | ||
16045 | char $ac_func (); | ||
16046 | /* The GNU C library defines this for functions which it implements | ||
16047 | to always fail with ENOSYS. Some functions are actually named | ||
16048 | something starting with __ and the normal name is an alias. */ | ||
16049 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
16050 | choke me | ||
16051 | #endif | ||
16052 | |||
16053 | int | ||
16054 | main () | ||
16055 | { | ||
16056 | return $ac_func (); | ||
16057 | ; | ||
16058 | return 0; | ||
16059 | } | ||
16060 | _ACEOF | ||
16061 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16062 | if { (ac_try="$ac_link" | ||
16063 | case "(($ac_try" in | ||
16064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16065 | *) ac_try_echo=$ac_try;; | ||
16066 | esac | ||
16067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16068 | (eval "$ac_link") 2>conftest.er1 | ||
16069 | ac_status=$? | ||
16070 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16071 | rm -f conftest.er1 | ||
16072 | cat conftest.err >&5 | ||
16073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16074 | (exit $ac_status); } && { | ||
16075 | test -z "$ac_c_werror_flag" || | ||
16076 | test ! -s conftest.err | ||
16077 | } && test -s conftest$ac_exeext && | ||
16078 | $as_test_x conftest$ac_exeext; then | ||
16079 | eval "$as_ac_var=yes" | ||
16080 | else | ||
16081 | echo "$as_me: failed program was:" >&5 | ||
16082 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16083 | |||
16084 | eval "$as_ac_var=no" | ||
16085 | fi | ||
16086 | |||
16087 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16088 | conftest$ac_exeext conftest.$ac_ext | ||
16089 | fi | ||
16090 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
16091 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
16092 | echo "${ECHO_T}$ac_res" >&6; } | ||
16093 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
16094 | cat >>confdefs.h <<_ACEOF | ||
16095 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
16096 | _ACEOF | ||
16097 | |||
16098 | fi | ||
16099 | done | ||
16100 | |||
16101 | |||
16102 | for ac_func in getlastlogxbyname | ||
16103 | do | ||
16104 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
16105 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
16106 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
16107 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
16108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16109 | else | ||
16110 | cat >conftest.$ac_ext <<_ACEOF | ||
16111 | /* confdefs.h. */ | ||
16112 | _ACEOF | ||
16113 | cat confdefs.h >>conftest.$ac_ext | ||
16114 | cat >>conftest.$ac_ext <<_ACEOF | ||
16115 | /* end confdefs.h. */ | ||
16116 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
16117 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
16118 | #define $ac_func innocuous_$ac_func | ||
16119 | |||
16120 | /* System header to define __stub macros and hopefully few prototypes, | ||
16121 | which can conflict with char $ac_func (); below. | ||
16122 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
16123 | <limits.h> exists even on freestanding compilers. */ | ||
16124 | |||
16125 | #ifdef __STDC__ | ||
16126 | # include <limits.h> | ||
16127 | #else | ||
16128 | # include <assert.h> | ||
16129 | #endif | ||
16130 | |||
16131 | #undef $ac_func | ||
16132 | |||
16133 | /* Override any GCC internal prototype to avoid an error. | ||
16134 | Use char because int might match the return type of a GCC | ||
16135 | builtin and then its argument prototype would still apply. */ | ||
16136 | #ifdef __cplusplus | ||
16137 | extern "C" | ||
16138 | #endif | ||
16139 | char $ac_func (); | ||
16140 | /* The GNU C library defines this for functions which it implements | ||
16141 | to always fail with ENOSYS. Some functions are actually named | ||
16142 | something starting with __ and the normal name is an alias. */ | ||
16143 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
16144 | choke me | ||
16145 | #endif | ||
16146 | |||
16147 | int | ||
16148 | main () | ||
16149 | { | ||
16150 | return $ac_func (); | ||
16151 | ; | ||
16152 | return 0; | ||
16153 | } | ||
16154 | _ACEOF | ||
16155 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16156 | if { (ac_try="$ac_link" | ||
16157 | case "(($ac_try" in | ||
16158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16159 | *) ac_try_echo=$ac_try;; | ||
16160 | esac | ||
16161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16162 | (eval "$ac_link") 2>conftest.er1 | ||
16163 | ac_status=$? | ||
16164 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16165 | rm -f conftest.er1 | ||
16166 | cat conftest.err >&5 | ||
16167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16168 | (exit $ac_status); } && { | ||
16169 | test -z "$ac_c_werror_flag" || | ||
16170 | test ! -s conftest.err | ||
16171 | } && test -s conftest$ac_exeext && | ||
16172 | $as_test_x conftest$ac_exeext; then | ||
16173 | eval "$as_ac_var=yes" | ||
16174 | else | ||
16175 | echo "$as_me: failed program was:" >&5 | ||
16176 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16177 | |||
16178 | eval "$as_ac_var=no" | ||
16179 | fi | ||
16180 | |||
16181 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16182 | conftest$ac_exeext conftest.$ac_ext | ||
16183 | fi | ||
16184 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
16185 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
16186 | echo "${ECHO_T}$ac_res" >&6; } | ||
16187 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
16188 | cat >>confdefs.h <<_ACEOF | ||
16189 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
16190 | _ACEOF | ||
16191 | |||
16192 | fi | ||
16193 | done | ||
16194 | |||
16195 | |||
16196 | { echo "$as_me:$LINENO: checking for daemon" >&5 | ||
16197 | echo $ECHO_N "checking for daemon... $ECHO_C" >&6; } | ||
16198 | if test "${ac_cv_func_daemon+set}" = set; then | ||
16199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16200 | else | ||
16201 | cat >conftest.$ac_ext <<_ACEOF | ||
16202 | /* confdefs.h. */ | ||
16203 | _ACEOF | ||
16204 | cat confdefs.h >>conftest.$ac_ext | ||
16205 | cat >>conftest.$ac_ext <<_ACEOF | ||
16206 | /* end confdefs.h. */ | ||
16207 | /* Define daemon to an innocuous variant, in case <limits.h> declares daemon. | ||
16208 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
16209 | #define daemon innocuous_daemon | ||
16210 | |||
16211 | /* System header to define __stub macros and hopefully few prototypes, | ||
16212 | which can conflict with char daemon (); below. | ||
16213 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
16214 | <limits.h> exists even on freestanding compilers. */ | ||
16215 | |||
16216 | #ifdef __STDC__ | ||
16217 | # include <limits.h> | ||
16218 | #else | ||
16219 | # include <assert.h> | ||
16220 | #endif | ||
16221 | |||
16222 | #undef daemon | ||
16223 | |||
16224 | /* Override any GCC internal prototype to avoid an error. | ||
16225 | Use char because int might match the return type of a GCC | ||
16226 | builtin and then its argument prototype would still apply. */ | ||
16227 | #ifdef __cplusplus | ||
16228 | extern "C" | ||
16229 | #endif | ||
16230 | char daemon (); | ||
16231 | /* The GNU C library defines this for functions which it implements | ||
16232 | to always fail with ENOSYS. Some functions are actually named | ||
16233 | something starting with __ and the normal name is an alias. */ | ||
16234 | #if defined __stub_daemon || defined __stub___daemon | ||
16235 | choke me | ||
16236 | #endif | ||
16237 | |||
16238 | int | ||
16239 | main () | ||
16240 | { | ||
16241 | return daemon (); | ||
16242 | ; | ||
16243 | return 0; | ||
16244 | } | ||
16245 | _ACEOF | ||
16246 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16247 | if { (ac_try="$ac_link" | ||
16248 | case "(($ac_try" in | ||
16249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16250 | *) ac_try_echo=$ac_try;; | ||
16251 | esac | ||
16252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16253 | (eval "$ac_link") 2>conftest.er1 | ||
16254 | ac_status=$? | ||
16255 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16256 | rm -f conftest.er1 | ||
16257 | cat conftest.err >&5 | ||
16258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16259 | (exit $ac_status); } && { | ||
16260 | test -z "$ac_c_werror_flag" || | ||
16261 | test ! -s conftest.err | ||
16262 | } && test -s conftest$ac_exeext && | ||
16263 | $as_test_x conftest$ac_exeext; then | ||
16264 | ac_cv_func_daemon=yes | ||
16265 | else | ||
16266 | echo "$as_me: failed program was:" >&5 | ||
16267 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16268 | |||
16269 | ac_cv_func_daemon=no | ||
16270 | fi | ||
16271 | |||
16272 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16273 | conftest$ac_exeext conftest.$ac_ext | ||
16274 | fi | ||
16275 | { echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5 | ||
16276 | echo "${ECHO_T}$ac_cv_func_daemon" >&6; } | ||
16277 | if test $ac_cv_func_daemon = yes; then | ||
16278 | |||
16279 | cat >>confdefs.h <<\_ACEOF | ||
16280 | #define HAVE_DAEMON 1 | ||
16281 | _ACEOF | ||
16282 | |||
16283 | else | ||
16284 | { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5 | ||
16285 | echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; } | ||
16286 | if test "${ac_cv_lib_bsd_daemon+set}" = set; then | ||
16287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16288 | else | ||
16289 | ac_check_lib_save_LIBS=$LIBS | ||
16290 | LIBS="-lbsd $LIBS" | ||
16291 | cat >conftest.$ac_ext <<_ACEOF | ||
16292 | /* confdefs.h. */ | ||
16293 | _ACEOF | ||
16294 | cat confdefs.h >>conftest.$ac_ext | ||
16295 | cat >>conftest.$ac_ext <<_ACEOF | ||
16296 | /* end confdefs.h. */ | ||
16297 | |||
16298 | /* Override any GCC internal prototype to avoid an error. | ||
16299 | Use char because int might match the return type of a GCC | ||
16300 | builtin and then its argument prototype would still apply. */ | ||
16301 | #ifdef __cplusplus | ||
16302 | extern "C" | ||
16303 | #endif | ||
16304 | char daemon (); | ||
16305 | int | ||
16306 | main () | ||
16307 | { | ||
16308 | return daemon (); | ||
16309 | ; | ||
16310 | return 0; | ||
16311 | } | ||
16312 | _ACEOF | ||
16313 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16314 | if { (ac_try="$ac_link" | ||
16315 | case "(($ac_try" in | ||
16316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16317 | *) ac_try_echo=$ac_try;; | ||
16318 | esac | ||
16319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16320 | (eval "$ac_link") 2>conftest.er1 | ||
16321 | ac_status=$? | ||
16322 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16323 | rm -f conftest.er1 | ||
16324 | cat conftest.err >&5 | ||
16325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16326 | (exit $ac_status); } && { | ||
16327 | test -z "$ac_c_werror_flag" || | ||
16328 | test ! -s conftest.err | ||
16329 | } && test -s conftest$ac_exeext && | ||
16330 | $as_test_x conftest$ac_exeext; then | ||
16331 | ac_cv_lib_bsd_daemon=yes | ||
16332 | else | ||
16333 | echo "$as_me: failed program was:" >&5 | ||
16334 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16335 | |||
16336 | ac_cv_lib_bsd_daemon=no | ||
16337 | fi | ||
16338 | |||
16339 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16340 | conftest$ac_exeext conftest.$ac_ext | ||
16341 | LIBS=$ac_check_lib_save_LIBS | ||
16342 | fi | ||
16343 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5 | ||
16344 | echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; } | ||
16345 | if test $ac_cv_lib_bsd_daemon = yes; then | ||
16346 | LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF | ||
16347 | #define HAVE_DAEMON 1 | ||
16348 | _ACEOF | ||
16349 | |||
16350 | fi | ||
16351 | |||
16352 | |||
16353 | fi | ||
16354 | |||
16355 | |||
16356 | { echo "$as_me:$LINENO: checking for getpagesize" >&5 | ||
16357 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } | ||
16358 | if test "${ac_cv_func_getpagesize+set}" = set; then | ||
16359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16360 | else | ||
16361 | cat >conftest.$ac_ext <<_ACEOF | ||
16362 | /* confdefs.h. */ | ||
16363 | _ACEOF | ||
16364 | cat confdefs.h >>conftest.$ac_ext | ||
16365 | cat >>conftest.$ac_ext <<_ACEOF | ||
16366 | /* end confdefs.h. */ | ||
16367 | /* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize. | ||
16368 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
16369 | #define getpagesize innocuous_getpagesize | ||
16370 | |||
16371 | /* System header to define __stub macros and hopefully few prototypes, | ||
16372 | which can conflict with char getpagesize (); below. | ||
16373 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
16374 | <limits.h> exists even on freestanding compilers. */ | ||
16375 | |||
16376 | #ifdef __STDC__ | ||
16377 | # include <limits.h> | ||
16378 | #else | ||
16379 | # include <assert.h> | ||
16380 | #endif | ||
16381 | |||
16382 | #undef getpagesize | ||
16383 | |||
16384 | /* Override any GCC internal prototype to avoid an error. | ||
16385 | Use char because int might match the return type of a GCC | ||
16386 | builtin and then its argument prototype would still apply. */ | ||
16387 | #ifdef __cplusplus | ||
16388 | extern "C" | ||
16389 | #endif | ||
16390 | char getpagesize (); | ||
16391 | /* The GNU C library defines this for functions which it implements | ||
16392 | to always fail with ENOSYS. Some functions are actually named | ||
16393 | something starting with __ and the normal name is an alias. */ | ||
16394 | #if defined __stub_getpagesize || defined __stub___getpagesize | ||
16395 | choke me | ||
16396 | #endif | ||
16397 | |||
16398 | int | ||
16399 | main () | ||
16400 | { | ||
16401 | return getpagesize (); | ||
16402 | ; | ||
16403 | return 0; | ||
16404 | } | ||
16405 | _ACEOF | ||
16406 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16407 | if { (ac_try="$ac_link" | ||
16408 | case "(($ac_try" in | ||
16409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16410 | *) ac_try_echo=$ac_try;; | ||
16411 | esac | ||
16412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16413 | (eval "$ac_link") 2>conftest.er1 | ||
16414 | ac_status=$? | ||
16415 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16416 | rm -f conftest.er1 | ||
16417 | cat conftest.err >&5 | ||
16418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16419 | (exit $ac_status); } && { | ||
16420 | test -z "$ac_c_werror_flag" || | ||
16421 | test ! -s conftest.err | ||
16422 | } && test -s conftest$ac_exeext && | ||
16423 | $as_test_x conftest$ac_exeext; then | ||
16424 | ac_cv_func_getpagesize=yes | ||
16425 | else | ||
16426 | echo "$as_me: failed program was:" >&5 | ||
16427 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16428 | |||
16429 | ac_cv_func_getpagesize=no | ||
16430 | fi | ||
16431 | |||
16432 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16433 | conftest$ac_exeext conftest.$ac_ext | ||
16434 | fi | ||
16435 | { echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5 | ||
16436 | echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; } | ||
16437 | if test $ac_cv_func_getpagesize = yes; then | ||
16438 | |||
16439 | cat >>confdefs.h <<\_ACEOF | ||
16440 | #define HAVE_GETPAGESIZE 1 | ||
16441 | _ACEOF | ||
16442 | |||
16443 | else | ||
16444 | { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5 | ||
16445 | echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; } | ||
16446 | if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then | ||
16447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16448 | else | ||
16449 | ac_check_lib_save_LIBS=$LIBS | ||
16450 | LIBS="-lucb $LIBS" | ||
16451 | cat >conftest.$ac_ext <<_ACEOF | ||
16452 | /* confdefs.h. */ | ||
16453 | _ACEOF | ||
16454 | cat confdefs.h >>conftest.$ac_ext | ||
16455 | cat >>conftest.$ac_ext <<_ACEOF | ||
16456 | /* end confdefs.h. */ | ||
16457 | |||
16458 | /* Override any GCC internal prototype to avoid an error. | ||
16459 | Use char because int might match the return type of a GCC | ||
16460 | builtin and then its argument prototype would still apply. */ | ||
16461 | #ifdef __cplusplus | ||
16462 | extern "C" | ||
16463 | #endif | ||
16464 | char getpagesize (); | ||
16465 | int | ||
16466 | main () | ||
16467 | { | ||
16468 | return getpagesize (); | ||
16469 | ; | ||
16470 | return 0; | ||
16471 | } | ||
16472 | _ACEOF | ||
16473 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16474 | if { (ac_try="$ac_link" | ||
16475 | case "(($ac_try" in | ||
16476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16477 | *) ac_try_echo=$ac_try;; | ||
16478 | esac | ||
16479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16480 | (eval "$ac_link") 2>conftest.er1 | ||
16481 | ac_status=$? | ||
16482 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16483 | rm -f conftest.er1 | ||
16484 | cat conftest.err >&5 | ||
16485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16486 | (exit $ac_status); } && { | ||
16487 | test -z "$ac_c_werror_flag" || | ||
16488 | test ! -s conftest.err | ||
16489 | } && test -s conftest$ac_exeext && | ||
16490 | $as_test_x conftest$ac_exeext; then | ||
16491 | ac_cv_lib_ucb_getpagesize=yes | ||
16492 | else | ||
16493 | echo "$as_me: failed program was:" >&5 | ||
16494 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16495 | |||
16496 | ac_cv_lib_ucb_getpagesize=no | ||
16497 | fi | ||
16498 | |||
16499 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16500 | conftest$ac_exeext conftest.$ac_ext | ||
16501 | LIBS=$ac_check_lib_save_LIBS | ||
16502 | fi | ||
16503 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
16504 | echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; } | ||
16505 | if test $ac_cv_lib_ucb_getpagesize = yes; then | ||
16506 | LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF | ||
16507 | #define HAVE_GETPAGESIZE 1 | ||
16508 | _ACEOF | ||
16509 | |||
16510 | fi | ||
16511 | |||
16512 | |||
16513 | fi | ||
16514 | |||
16515 | |||
16516 | # Check for broken snprintf | ||
16517 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
16518 | { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5 | ||
16519 | echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; } | ||
16520 | if test "$cross_compiling" = yes; then | ||
16521 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
16522 | echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
16523 | |||
16524 | else | ||
16525 | cat >conftest.$ac_ext <<_ACEOF | ||
16526 | /* confdefs.h. */ | ||
16527 | _ACEOF | ||
16528 | cat confdefs.h >>conftest.$ac_ext | ||
16529 | cat >>conftest.$ac_ext <<_ACEOF | ||
16530 | /* end confdefs.h. */ | ||
16531 | |||
16532 | #include <stdio.h> | ||
16533 | int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');} | ||
16534 | |||
16535 | _ACEOF | ||
16536 | rm -f conftest$ac_exeext | ||
16537 | if { (ac_try="$ac_link" | ||
16538 | case "(($ac_try" in | ||
16539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16540 | *) ac_try_echo=$ac_try;; | ||
16541 | esac | ||
16542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16543 | (eval "$ac_link") 2>&5 | ||
16544 | ac_status=$? | ||
16545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16546 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16547 | { (case "(($ac_try" in | ||
16548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16549 | *) ac_try_echo=$ac_try;; | ||
16550 | esac | ||
16551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16552 | (eval "$ac_try") 2>&5 | ||
16553 | ac_status=$? | ||
16554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16555 | (exit $ac_status); }; }; then | ||
16556 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16557 | echo "${ECHO_T}yes" >&6; } | ||
16558 | else | ||
16559 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16560 | echo "$as_me: failed program was:" >&5 | ||
16561 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16562 | |||
16563 | ( exit $ac_status ) | ||
16564 | |||
16565 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16566 | echo "${ECHO_T}no" >&6; } | ||
16567 | |||
16568 | cat >>confdefs.h <<\_ACEOF | ||
16569 | #define BROKEN_SNPRINTF 1 | ||
16570 | _ACEOF | ||
16571 | |||
16572 | { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
16573 | echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
16574 | |||
16575 | fi | ||
16576 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16577 | fi | ||
16578 | |||
16579 | |||
16580 | fi | ||
16581 | |||
16582 | # If we don't have a working asprintf, then we strongly depend on vsnprintf | ||
16583 | # returning the right thing on overflow: the number of characters it tried to | ||
16584 | # create (as per SUSv3) | ||
16585 | if test "x$ac_cv_func_asprintf" != "xyes" && \ | ||
16586 | test "x$ac_cv_func_vsnprintf" = "xyes" ; then | ||
16587 | { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5 | ||
16588 | echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; } | ||
16589 | if test "$cross_compiling" = yes; then | ||
16590 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5 | ||
16591 | echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;} | ||
16592 | |||
16593 | else | ||
16594 | cat >conftest.$ac_ext <<_ACEOF | ||
16595 | /* confdefs.h. */ | ||
16596 | _ACEOF | ||
16597 | cat confdefs.h >>conftest.$ac_ext | ||
16598 | cat >>conftest.$ac_ext <<_ACEOF | ||
16599 | /* end confdefs.h. */ | ||
16600 | |||
16601 | #include <sys/types.h> | ||
16602 | #include <stdio.h> | ||
16603 | #include <stdarg.h> | ||
16604 | |||
16605 | int x_snprintf(char *str,size_t count,const char *fmt,...) | ||
16606 | { | ||
16607 | size_t ret; va_list ap; | ||
16608 | va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap); | ||
16609 | return ret; | ||
16610 | } | ||
16611 | int main(void) | ||
16612 | { | ||
16613 | char x[1]; | ||
16614 | exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1); | ||
16615 | } | ||
16616 | _ACEOF | ||
16617 | rm -f conftest$ac_exeext | ||
16618 | if { (ac_try="$ac_link" | ||
16619 | case "(($ac_try" in | ||
16620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16621 | *) ac_try_echo=$ac_try;; | ||
16622 | esac | ||
16623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16624 | (eval "$ac_link") 2>&5 | ||
16625 | ac_status=$? | ||
16626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16627 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16628 | { (case "(($ac_try" in | ||
16629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16630 | *) ac_try_echo=$ac_try;; | ||
16631 | esac | ||
16632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16633 | (eval "$ac_try") 2>&5 | ||
16634 | ac_status=$? | ||
16635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16636 | (exit $ac_status); }; }; then | ||
16637 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16638 | echo "${ECHO_T}yes" >&6; } | ||
16639 | else | ||
16640 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16641 | echo "$as_me: failed program was:" >&5 | ||
16642 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16643 | |||
16644 | ( exit $ac_status ) | ||
16645 | |||
16646 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16647 | echo "${ECHO_T}no" >&6; } | ||
16648 | |||
16649 | cat >>confdefs.h <<\_ACEOF | ||
16650 | #define BROKEN_SNPRINTF 1 | ||
16651 | _ACEOF | ||
16652 | |||
16653 | { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5 | ||
16654 | echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;} | ||
16655 | |||
16656 | fi | ||
16657 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16658 | fi | ||
16659 | |||
16660 | |||
16661 | fi | ||
16662 | |||
16663 | # On systems where [v]snprintf is broken, but is declared in stdio, | ||
16664 | # check that the fmt argument is const char * or just char *. | ||
16665 | # This is only useful for when BROKEN_SNPRINTF | ||
16666 | { echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5 | ||
16667 | echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; } | ||
16668 | cat >conftest.$ac_ext <<_ACEOF | ||
16669 | /* confdefs.h. */ | ||
16670 | _ACEOF | ||
16671 | cat confdefs.h >>conftest.$ac_ext | ||
16672 | cat >>conftest.$ac_ext <<_ACEOF | ||
16673 | /* end confdefs.h. */ | ||
16674 | #include <stdio.h> | ||
16675 | int snprintf(char *a, size_t b, const char *c, ...) { return 0; } | ||
16676 | int main(void) { snprintf(0, 0, 0); } | ||
16677 | |||
16678 | _ACEOF | ||
16679 | rm -f conftest.$ac_objext | ||
16680 | if { (ac_try="$ac_compile" | ||
16681 | case "(($ac_try" in | ||
16682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16683 | *) ac_try_echo=$ac_try;; | ||
16684 | esac | ||
16685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16686 | (eval "$ac_compile") 2>conftest.er1 | ||
16687 | ac_status=$? | ||
16688 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16689 | rm -f conftest.er1 | ||
16690 | cat conftest.err >&5 | ||
16691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16692 | (exit $ac_status); } && { | ||
16693 | test -z "$ac_c_werror_flag" || | ||
16694 | test ! -s conftest.err | ||
16695 | } && test -s conftest.$ac_objext; then | ||
16696 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16697 | echo "${ECHO_T}yes" >&6; } | ||
16698 | |||
16699 | cat >>confdefs.h <<\_ACEOF | ||
16700 | #define SNPRINTF_CONST const | ||
16701 | _ACEOF | ||
16702 | |||
16703 | else | ||
16704 | echo "$as_me: failed program was:" >&5 | ||
16705 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16706 | |||
16707 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16708 | echo "${ECHO_T}no" >&6; } | ||
16709 | cat >>confdefs.h <<\_ACEOF | ||
16710 | #define SNPRINTF_CONST /* not const */ | ||
16711 | _ACEOF | ||
16712 | |||
16713 | fi | ||
16714 | |||
16715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16716 | |||
16717 | # Check for missing getpeereid (or equiv) support | ||
16718 | NO_PEERCHECK="" | ||
16719 | if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then | ||
16720 | { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5 | ||
16721 | echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; } | ||
16722 | cat >conftest.$ac_ext <<_ACEOF | ||
16723 | /* confdefs.h. */ | ||
16724 | _ACEOF | ||
16725 | cat confdefs.h >>conftest.$ac_ext | ||
16726 | cat >>conftest.$ac_ext <<_ACEOF | ||
16727 | /* end confdefs.h. */ | ||
16728 | #include <sys/types.h> | ||
16729 | #include <sys/socket.h> | ||
16730 | int | ||
16731 | main () | ||
16732 | { | ||
16733 | int i = SO_PEERCRED; | ||
16734 | ; | ||
16735 | return 0; | ||
16736 | } | ||
16737 | _ACEOF | ||
16738 | rm -f conftest.$ac_objext | ||
16739 | if { (ac_try="$ac_compile" | ||
16740 | case "(($ac_try" in | ||
16741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16742 | *) ac_try_echo=$ac_try;; | ||
16743 | esac | ||
16744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16745 | (eval "$ac_compile") 2>conftest.er1 | ||
16746 | ac_status=$? | ||
16747 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16748 | rm -f conftest.er1 | ||
16749 | cat conftest.err >&5 | ||
16750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16751 | (exit $ac_status); } && { | ||
16752 | test -z "$ac_c_werror_flag" || | ||
16753 | test ! -s conftest.err | ||
16754 | } && test -s conftest.$ac_objext; then | ||
16755 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16756 | echo "${ECHO_T}yes" >&6; } | ||
16757 | |||
16758 | cat >>confdefs.h <<\_ACEOF | ||
16759 | #define HAVE_SO_PEERCRED 1 | ||
16760 | _ACEOF | ||
16761 | |||
16762 | |||
16763 | else | ||
16764 | echo "$as_me: failed program was:" >&5 | ||
16765 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16766 | |||
16767 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16768 | echo "${ECHO_T}no" >&6; } | ||
16769 | NO_PEERCHECK=1 | ||
16770 | |||
16771 | fi | ||
16772 | |||
16773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16774 | fi | ||
16775 | |||
16776 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
16777 | { echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5 | ||
16778 | echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; } | ||
16779 | if test "$cross_compiling" = yes; then | ||
16780 | |||
16781 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16782 | echo "${ECHO_T}yes" >&6; } | ||
16783 | cat >>confdefs.h <<\_ACEOF | ||
16784 | #define HAVE_STRICT_MKSTEMP 1 | ||
16785 | _ACEOF | ||
16786 | |||
16787 | |||
16788 | |||
16789 | else | ||
16790 | cat >conftest.$ac_ext <<_ACEOF | ||
16791 | /* confdefs.h. */ | ||
16792 | _ACEOF | ||
16793 | cat confdefs.h >>conftest.$ac_ext | ||
16794 | cat >>conftest.$ac_ext <<_ACEOF | ||
16795 | /* end confdefs.h. */ | ||
16796 | |||
16797 | #include <stdlib.h> | ||
16798 | main() { char template[]="conftest.mkstemp-test"; | ||
16799 | if (mkstemp(template) == -1) | ||
16800 | exit(1); | ||
16801 | unlink(template); exit(0); | ||
16802 | } | ||
16803 | |||
16804 | _ACEOF | ||
16805 | rm -f conftest$ac_exeext | ||
16806 | if { (ac_try="$ac_link" | ||
16807 | case "(($ac_try" in | ||
16808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16809 | *) ac_try_echo=$ac_try;; | ||
16810 | esac | ||
16811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16812 | (eval "$ac_link") 2>&5 | ||
16813 | ac_status=$? | ||
16814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16815 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16816 | { (case "(($ac_try" in | ||
16817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16818 | *) ac_try_echo=$ac_try;; | ||
16819 | esac | ||
16820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16821 | (eval "$ac_try") 2>&5 | ||
16822 | ac_status=$? | ||
16823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16824 | (exit $ac_status); }; }; then | ||
16825 | |||
16826 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16827 | echo "${ECHO_T}no" >&6; } | ||
16828 | |||
16829 | else | ||
16830 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16831 | echo "$as_me: failed program was:" >&5 | ||
16832 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16833 | |||
16834 | ( exit $ac_status ) | ||
16835 | |||
16836 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16837 | echo "${ECHO_T}yes" >&6; } | ||
16838 | |||
16839 | cat >>confdefs.h <<\_ACEOF | ||
16840 | #define HAVE_STRICT_MKSTEMP 1 | ||
16841 | _ACEOF | ||
16842 | |||
16843 | |||
16844 | fi | ||
16845 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16846 | fi | ||
16847 | |||
16848 | |||
16849 | fi | ||
16850 | |||
16851 | if test ! -z "$check_for_openpty_ctty_bug"; then | ||
16852 | { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5 | ||
16853 | echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; } | ||
16854 | if test "$cross_compiling" = yes; then | ||
16855 | |||
16856 | { echo "$as_me:$LINENO: result: cross-compiling" >&5 | ||
16857 | echo "${ECHO_T}cross-compiling" >&6; } | ||
16858 | |||
16859 | |||
16860 | else | ||
16861 | cat >conftest.$ac_ext <<_ACEOF | ||
16862 | /* confdefs.h. */ | ||
16863 | _ACEOF | ||
16864 | cat confdefs.h >>conftest.$ac_ext | ||
16865 | cat >>conftest.$ac_ext <<_ACEOF | ||
16866 | /* end confdefs.h. */ | ||
16867 | |||
16868 | #include <stdio.h> | ||
16869 | #include <sys/fcntl.h> | ||
16870 | #include <sys/types.h> | ||
16871 | #include <sys/wait.h> | ||
16872 | |||
16873 | int | ||
16874 | main() | ||
16875 | { | ||
16876 | pid_t pid; | ||
16877 | int fd, ptyfd, ttyfd, status; | ||
16878 | |||
16879 | pid = fork(); | ||
16880 | if (pid < 0) { /* failed */ | ||
16881 | exit(1); | ||
16882 | } else if (pid > 0) { /* parent */ | ||
16883 | waitpid(pid, &status, 0); | ||
16884 | if (WIFEXITED(status)) | ||
16885 | exit(WEXITSTATUS(status)); | ||
16886 | else | ||
16887 | exit(2); | ||
16888 | } else { /* child */ | ||
16889 | close(0); close(1); close(2); | ||
16890 | setsid(); | ||
16891 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); | ||
16892 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); | ||
16893 | if (fd >= 0) | ||
16894 | exit(3); /* Acquired ctty: broken */ | ||
16895 | else | ||
16896 | exit(0); /* Did not acquire ctty: OK */ | ||
16897 | } | ||
16898 | } | ||
16899 | |||
16900 | _ACEOF | ||
16901 | rm -f conftest$ac_exeext | ||
16902 | if { (ac_try="$ac_link" | ||
16903 | case "(($ac_try" in | ||
16904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16905 | *) ac_try_echo=$ac_try;; | ||
16906 | esac | ||
16907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16908 | (eval "$ac_link") 2>&5 | ||
16909 | ac_status=$? | ||
16910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16911 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16912 | { (case "(($ac_try" in | ||
16913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16914 | *) ac_try_echo=$ac_try;; | ||
16915 | esac | ||
16916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16917 | (eval "$ac_try") 2>&5 | ||
16918 | ac_status=$? | ||
16919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16920 | (exit $ac_status); }; }; then | ||
16921 | |||
16922 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16923 | echo "${ECHO_T}yes" >&6; } | ||
16924 | |||
16925 | else | ||
16926 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16927 | echo "$as_me: failed program was:" >&5 | ||
16928 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16929 | |||
16930 | ( exit $ac_status ) | ||
16931 | |||
16932 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16933 | echo "${ECHO_T}no" >&6; } | ||
16934 | cat >>confdefs.h <<\_ACEOF | ||
16935 | #define SSHD_ACQUIRES_CTTY 1 | ||
16936 | _ACEOF | ||
16937 | |||
16938 | |||
16939 | fi | ||
16940 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16941 | fi | ||
16942 | |||
16943 | |||
16944 | fi | ||
16945 | |||
16946 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
16947 | test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then | ||
16948 | { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
16949 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; } | ||
16950 | if test "$cross_compiling" = yes; then | ||
16951 | |||
16952 | { echo "$as_me:$LINENO: result: cross-compiling" >&5 | ||
16953 | echo "${ECHO_T}cross-compiling" >&6; } | ||
16954 | |||
16955 | |||
16956 | else | ||
16957 | cat >conftest.$ac_ext <<_ACEOF | ||
16958 | /* confdefs.h. */ | ||
16959 | _ACEOF | ||
16960 | cat confdefs.h >>conftest.$ac_ext | ||
16961 | cat >>conftest.$ac_ext <<_ACEOF | ||
16962 | /* end confdefs.h. */ | ||
16963 | |||
16964 | #include <stdio.h> | ||
16965 | #include <sys/socket.h> | ||
16966 | #include <netdb.h> | ||
16967 | #include <errno.h> | ||
16968 | #include <netinet/in.h> | ||
16969 | |||
16970 | #define TEST_PORT "2222" | ||
16971 | |||
16972 | int | ||
16973 | main(void) | ||
16974 | { | ||
16975 | int err, sock; | ||
16976 | struct addrinfo *gai_ai, *ai, hints; | ||
16977 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
16978 | |||
16979 | memset(&hints, 0, sizeof(hints)); | ||
16980 | hints.ai_family = PF_UNSPEC; | ||
16981 | hints.ai_socktype = SOCK_STREAM; | ||
16982 | hints.ai_flags = AI_PASSIVE; | ||
16983 | |||
16984 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
16985 | if (err != 0) { | ||
16986 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
16987 | exit(1); | ||
16988 | } | ||
16989 | |||
16990 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
16991 | if (ai->ai_family != AF_INET6) | ||
16992 | continue; | ||
16993 | |||
16994 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
16995 | sizeof(ntop), strport, sizeof(strport), | ||
16996 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
16997 | |||
16998 | if (err != 0) { | ||
16999 | if (err == EAI_SYSTEM) | ||
17000 | perror("getnameinfo EAI_SYSTEM"); | ||
17001 | else | ||
17002 | fprintf(stderr, "getnameinfo failed: %s\n", | ||
17003 | gai_strerror(err)); | ||
17004 | exit(2); | ||
17005 | } | ||
17006 | |||
17007 | sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); | ||
17008 | if (sock < 0) | ||
17009 | perror("socket"); | ||
17010 | if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { | ||
17011 | if (errno == EBADF) | ||
17012 | exit(3); | ||
17013 | } | ||
17014 | } | ||
17015 | exit(0); | ||
17016 | } | ||
17017 | |||
17018 | _ACEOF | ||
17019 | rm -f conftest$ac_exeext | ||
17020 | if { (ac_try="$ac_link" | ||
17021 | case "(($ac_try" in | ||
17022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17023 | *) ac_try_echo=$ac_try;; | ||
17024 | esac | ||
17025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17026 | (eval "$ac_link") 2>&5 | ||
17027 | ac_status=$? | ||
17028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17029 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
17030 | { (case "(($ac_try" in | ||
17031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17032 | *) ac_try_echo=$ac_try;; | ||
17033 | esac | ||
17034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17035 | (eval "$ac_try") 2>&5 | ||
17036 | ac_status=$? | ||
17037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17038 | (exit $ac_status); }; }; then | ||
17039 | |||
17040 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
17041 | echo "${ECHO_T}yes" >&6; } | ||
17042 | |||
17043 | else | ||
17044 | echo "$as_me: program exited with status $ac_status" >&5 | ||
17045 | echo "$as_me: failed program was:" >&5 | ||
17046 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17047 | |||
17048 | ( exit $ac_status ) | ||
17049 | |||
17050 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17051 | echo "${ECHO_T}no" >&6; } | ||
17052 | cat >>confdefs.h <<\_ACEOF | ||
17053 | #define BROKEN_GETADDRINFO 1 | ||
17054 | _ACEOF | ||
17055 | |||
17056 | |||
17057 | fi | ||
17058 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
17059 | fi | ||
17060 | |||
17061 | |||
17062 | fi | ||
17063 | |||
17064 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
17065 | test "x$check_for_aix_broken_getaddrinfo" = "x1"; then | ||
17066 | { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
17067 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; } | ||
17068 | if test "$cross_compiling" = yes; then | ||
17069 | |||
17070 | { echo "$as_me:$LINENO: result: cross-compiling" >&5 | ||
17071 | echo "${ECHO_T}cross-compiling" >&6; } | ||
17072 | |||
17073 | |||
17074 | else | ||
17075 | cat >conftest.$ac_ext <<_ACEOF | ||
17076 | /* confdefs.h. */ | ||
17077 | _ACEOF | ||
17078 | cat confdefs.h >>conftest.$ac_ext | ||
17079 | cat >>conftest.$ac_ext <<_ACEOF | ||
17080 | /* end confdefs.h. */ | ||
17081 | |||
17082 | #include <stdio.h> | ||
17083 | #include <sys/socket.h> | ||
17084 | #include <netdb.h> | ||
17085 | #include <errno.h> | ||
17086 | #include <netinet/in.h> | ||
17087 | |||
17088 | #define TEST_PORT "2222" | ||
17089 | |||
17090 | int | ||
17091 | main(void) | ||
17092 | { | ||
17093 | int err, sock; | ||
17094 | struct addrinfo *gai_ai, *ai, hints; | ||
17095 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
17096 | |||
17097 | memset(&hints, 0, sizeof(hints)); | ||
17098 | hints.ai_family = PF_UNSPEC; | ||
17099 | hints.ai_socktype = SOCK_STREAM; | ||
17100 | hints.ai_flags = AI_PASSIVE; | ||
17101 | |||
17102 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
17103 | if (err != 0) { | ||
17104 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
17105 | exit(1); | ||
17106 | } | ||
17107 | |||
17108 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
17109 | if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) | ||
17110 | continue; | ||
17111 | |||
17112 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
17113 | sizeof(ntop), strport, sizeof(strport), | ||
17114 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
17115 | |||
17116 | if (ai->ai_family == AF_INET && err != 0) { | ||
17117 | perror("getnameinfo"); | ||
17118 | exit(2); | ||
17119 | } | ||
17120 | } | ||
17121 | exit(0); | ||
17122 | } | ||
17123 | |||
17124 | _ACEOF | ||
17125 | rm -f conftest$ac_exeext | ||
17126 | if { (ac_try="$ac_link" | ||
17127 | case "(($ac_try" in | ||
17128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17129 | *) ac_try_echo=$ac_try;; | ||
17130 | esac | ||
17131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17132 | (eval "$ac_link") 2>&5 | ||
17133 | ac_status=$? | ||
17134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17135 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
17136 | { (case "(($ac_try" in | ||
17137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17138 | *) ac_try_echo=$ac_try;; | ||
17139 | esac | ||
17140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17141 | (eval "$ac_try") 2>&5 | ||
17142 | ac_status=$? | ||
17143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17144 | (exit $ac_status); }; }; then | ||
17145 | |||
17146 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
17147 | echo "${ECHO_T}yes" >&6; } | ||
17148 | |||
17149 | cat >>confdefs.h <<\_ACEOF | ||
17150 | #define AIX_GETNAMEINFO_HACK 1 | ||
17151 | _ACEOF | ||
17152 | |||
17153 | |||
17154 | else | ||
17155 | echo "$as_me: program exited with status $ac_status" >&5 | ||
17156 | echo "$as_me: failed program was:" >&5 | ||
17157 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17158 | |||
17159 | ( exit $ac_status ) | ||
17160 | |||
17161 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17162 | echo "${ECHO_T}no" >&6; } | ||
17163 | cat >>confdefs.h <<\_ACEOF | ||
17164 | #define BROKEN_GETADDRINFO 1 | ||
17165 | _ACEOF | ||
17166 | |||
17167 | |||
17168 | fi | ||
17169 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
17170 | fi | ||
17171 | |||
17172 | |||
17173 | fi | ||
17174 | |||
17175 | if test "x$check_for_conflicting_getspnam" = "x1"; then | ||
17176 | { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5 | ||
17177 | echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; } | ||
17178 | cat >conftest.$ac_ext <<_ACEOF | ||
17179 | |||
17180 | #include <shadow.h> | ||
17181 | int main(void) {exit(0);} | ||
17182 | |||
17183 | _ACEOF | ||
17184 | rm -f conftest.$ac_objext | ||
17185 | if { (ac_try="$ac_compile" | ||
17186 | case "(($ac_try" in | ||
17187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17188 | *) ac_try_echo=$ac_try;; | ||
17189 | esac | ||
17190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17191 | (eval "$ac_compile") 2>conftest.er1 | ||
17192 | ac_status=$? | ||
17193 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17194 | rm -f conftest.er1 | ||
17195 | cat conftest.err >&5 | ||
17196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17197 | (exit $ac_status); } && { | ||
17198 | test -z "$ac_c_werror_flag" || | ||
17199 | test ! -s conftest.err | ||
17200 | } && test -s conftest.$ac_objext; then | ||
17201 | |||
17202 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17203 | echo "${ECHO_T}no" >&6; } | ||
17204 | |||
17205 | else | ||
17206 | echo "$as_me: failed program was:" >&5 | ||
17207 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17208 | |||
17209 | |||
17210 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
17211 | echo "${ECHO_T}yes" >&6; } | ||
17212 | |||
17213 | cat >>confdefs.h <<\_ACEOF | ||
17214 | #define GETSPNAM_CONFLICTING_DEFS 1 | ||
17215 | _ACEOF | ||
17216 | |||
17217 | |||
17218 | |||
17219 | fi | ||
17220 | |||
17221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17222 | fi | ||
17223 | |||
17224 | { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 | ||
17225 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; } | ||
17226 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | ||
17227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17228 | else | ||
17229 | # Use it with a single arg. | ||
17230 | cat >conftest.$ac_ext <<_ACEOF | ||
17231 | /* confdefs.h. */ | ||
17232 | _ACEOF | ||
17233 | cat confdefs.h >>conftest.$ac_ext | ||
17234 | cat >>conftest.$ac_ext <<_ACEOF | ||
17235 | /* end confdefs.h. */ | ||
17236 | $ac_includes_default | ||
17237 | int | ||
17238 | main () | ||
17239 | { | ||
17240 | getpgrp (0); | ||
17241 | ; | ||
17242 | return 0; | ||
17243 | } | ||
17244 | _ACEOF | ||
17245 | rm -f conftest.$ac_objext | ||
17246 | if { (ac_try="$ac_compile" | ||
17247 | case "(($ac_try" in | ||
17248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17249 | *) ac_try_echo=$ac_try;; | ||
17250 | esac | ||
17251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17252 | (eval "$ac_compile") 2>conftest.er1 | ||
17253 | ac_status=$? | ||
17254 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17255 | rm -f conftest.er1 | ||
17256 | cat conftest.err >&5 | ||
17257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17258 | (exit $ac_status); } && { | ||
17259 | test -z "$ac_c_werror_flag" || | ||
17260 | test ! -s conftest.err | ||
17261 | } && test -s conftest.$ac_objext; then | ||
17262 | ac_cv_func_getpgrp_void=no | ||
17263 | else | ||
17264 | echo "$as_me: failed program was:" >&5 | ||
17265 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17266 | |||
17267 | ac_cv_func_getpgrp_void=yes | ||
17268 | fi | ||
17269 | |||
17270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17271 | |||
17272 | fi | ||
17273 | { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | ||
17274 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; } | ||
17275 | if test $ac_cv_func_getpgrp_void = yes; then | ||
17276 | |||
17277 | cat >>confdefs.h <<\_ACEOF | ||
17278 | #define GETPGRP_VOID 1 | ||
17279 | _ACEOF | ||
17280 | |||
17281 | fi | ||
17282 | |||
17283 | |||
17284 | # Search for OpenSSL | ||
17285 | saved_CPPFLAGS="$CPPFLAGS" | ||
17286 | saved_LDFLAGS="$LDFLAGS" | ||
17287 | |||
17288 | # Check whether --with-ssl-dir was given. | ||
17289 | if test "${with_ssl_dir+set}" = set; then | ||
17290 | withval=$with_ssl_dir; | ||
17291 | if test "x$withval" != "xno" ; then | ||
17292 | case "$withval" in | ||
17293 | # Relative paths | ||
17294 | ./*|../*) withval="`pwd`/$withval" | ||
17295 | esac | ||
17296 | if test -d "$withval/lib"; then | ||
17297 | if test -n "${need_dash_r}"; then | ||
17298 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
17299 | else | ||
17300 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
17301 | fi | ||
17302 | elif test -d "$withval/lib64"; then | ||
17303 | if test -n "${need_dash_r}"; then | ||
17304 | LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}" | ||
17305 | else | ||
17306 | LDFLAGS="-L${withval}/lib64 ${LDFLAGS}" | ||
17307 | fi | ||
17308 | else | ||
17309 | if test -n "${need_dash_r}"; then | ||
17310 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
17311 | else | ||
17312 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
17313 | fi | ||
17314 | fi | ||
17315 | if test -d "$withval/include"; then | ||
17316 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
17317 | else | ||
17318 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
17319 | fi | ||
17320 | fi | ||
17321 | |||
17322 | |||
17323 | fi | ||
17324 | |||
17325 | LIBS="-lcrypto $LIBS" | ||
17326 | cat >conftest.$ac_ext <<_ACEOF | ||
17327 | /* confdefs.h. */ | ||
17328 | _ACEOF | ||
17329 | cat confdefs.h >>conftest.$ac_ext | ||
17330 | cat >>conftest.$ac_ext <<_ACEOF | ||
17331 | /* end confdefs.h. */ | ||
17332 | |||
17333 | /* Override any GCC internal prototype to avoid an error. | ||
17334 | Use char because int might match the return type of a GCC | ||
17335 | builtin and then its argument prototype would still apply. */ | ||
17336 | #ifdef __cplusplus | ||
17337 | extern "C" | ||
17338 | #endif | ||
17339 | char RAND_add (); | ||
17340 | int | ||
17341 | main () | ||
17342 | { | ||
17343 | return RAND_add (); | ||
17344 | ; | ||
17345 | return 0; | ||
17346 | } | ||
17347 | _ACEOF | ||
17348 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17349 | if { (ac_try="$ac_link" | ||
17350 | case "(($ac_try" in | ||
17351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17352 | *) ac_try_echo=$ac_try;; | ||
17353 | esac | ||
17354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17355 | (eval "$ac_link") 2>conftest.er1 | ||
17356 | ac_status=$? | ||
17357 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17358 | rm -f conftest.er1 | ||
17359 | cat conftest.err >&5 | ||
17360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17361 | (exit $ac_status); } && { | ||
17362 | test -z "$ac_c_werror_flag" || | ||
17363 | test ! -s conftest.err | ||
17364 | } && test -s conftest$ac_exeext && | ||
17365 | $as_test_x conftest$ac_exeext; then | ||
17366 | |||
17367 | cat >>confdefs.h <<\_ACEOF | ||
17368 | #define HAVE_OPENSSL 1 | ||
17369 | _ACEOF | ||
17370 | |||
17371 | else | ||
17372 | echo "$as_me: failed program was:" >&5 | ||
17373 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17374 | |||
17375 | |||
17376 | if test -n "${need_dash_r}"; then | ||
17377 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
17378 | else | ||
17379 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
17380 | fi | ||
17381 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
17382 | if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then | ||
17383 | { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5 | ||
17384 | echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; } | ||
17385 | if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then | ||
17386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17387 | fi | ||
17388 | { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5 | ||
17389 | echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; } | ||
17390 | else | ||
17391 | # Is the header compilable? | ||
17392 | { echo "$as_me:$LINENO: checking openssl/opensslv.h usability" >&5 | ||
17393 | echo $ECHO_N "checking openssl/opensslv.h usability... $ECHO_C" >&6; } | ||
17394 | cat >conftest.$ac_ext <<_ACEOF | ||
17395 | /* confdefs.h. */ | ||
17396 | _ACEOF | ||
17397 | cat confdefs.h >>conftest.$ac_ext | ||
17398 | cat >>conftest.$ac_ext <<_ACEOF | ||
17399 | /* end confdefs.h. */ | ||
17400 | $ac_includes_default | ||
17401 | #include <openssl/opensslv.h> | ||
17402 | _ACEOF | ||
17403 | rm -f conftest.$ac_objext | ||
17404 | if { (ac_try="$ac_compile" | ||
17405 | case "(($ac_try" in | ||
17406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17407 | *) ac_try_echo=$ac_try;; | ||
17408 | esac | ||
17409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17410 | (eval "$ac_compile") 2>conftest.er1 | ||
17411 | ac_status=$? | ||
17412 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17413 | rm -f conftest.er1 | ||
17414 | cat conftest.err >&5 | ||
17415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17416 | (exit $ac_status); } && { | ||
17417 | test -z "$ac_c_werror_flag" || | ||
17418 | test ! -s conftest.err | ||
17419 | } && test -s conftest.$ac_objext; then | ||
17420 | ac_header_compiler=yes | ||
17421 | else | ||
17422 | echo "$as_me: failed program was:" >&5 | ||
17423 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17424 | |||
17425 | ac_header_compiler=no | ||
17426 | fi | ||
17427 | |||
17428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17429 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
17430 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
17431 | |||
17432 | # Is the header present? | ||
17433 | { echo "$as_me:$LINENO: checking openssl/opensslv.h presence" >&5 | ||
17434 | echo $ECHO_N "checking openssl/opensslv.h presence... $ECHO_C" >&6; } | ||
17435 | cat >conftest.$ac_ext <<_ACEOF | ||
17436 | /* confdefs.h. */ | ||
17437 | _ACEOF | ||
17438 | cat confdefs.h >>conftest.$ac_ext | ||
17439 | cat >>conftest.$ac_ext <<_ACEOF | ||
17440 | /* end confdefs.h. */ | ||
17441 | #include <openssl/opensslv.h> | ||
17442 | _ACEOF | ||
17443 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
17444 | case "(($ac_try" in | ||
17445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17446 | *) ac_try_echo=$ac_try;; | ||
17447 | esac | ||
17448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17449 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
17450 | ac_status=$? | ||
17451 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17452 | rm -f conftest.er1 | ||
17453 | cat conftest.err >&5 | ||
17454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17455 | (exit $ac_status); } >/dev/null && { | ||
17456 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
17457 | test ! -s conftest.err | ||
17458 | }; then | ||
17459 | ac_header_preproc=yes | ||
17460 | else | ||
17461 | echo "$as_me: failed program was:" >&5 | ||
17462 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17463 | |||
17464 | ac_header_preproc=no | ||
17465 | fi | ||
17466 | |||
17467 | rm -f conftest.err conftest.$ac_ext | ||
17468 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
17469 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
17470 | |||
17471 | # So? What about this header? | ||
17472 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
17473 | yes:no: ) | ||
17474 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
17475 | echo "$as_me: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
17476 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&5 | ||
17477 | echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&2;} | ||
17478 | ac_header_preproc=yes | ||
17479 | ;; | ||
17480 | no:yes:* ) | ||
17481 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: present but cannot be compiled" >&5 | ||
17482 | echo "$as_me: WARNING: openssl/opensslv.h: present but cannot be compiled" >&2;} | ||
17483 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&5 | ||
17484 | echo "$as_me: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&2;} | ||
17485 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&5 | ||
17486 | echo "$as_me: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&2;} | ||
17487 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
17488 | echo "$as_me: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
17489 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&5 | ||
17490 | echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&2;} | ||
17491 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&5 | ||
17492 | echo "$as_me: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&2;} | ||
17493 | ( cat <<\_ASBOX | ||
17494 | ## ------------------------------------------- ## | ||
17495 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
17496 | ## ------------------------------------------- ## | ||
17497 | _ASBOX | ||
17498 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
17499 | ;; | ||
17500 | esac | ||
17501 | { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5 | ||
17502 | echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; } | ||
17503 | if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then | ||
17504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17505 | else | ||
17506 | ac_cv_header_openssl_opensslv_h=$ac_header_preproc | ||
17507 | fi | ||
17508 | { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5 | ||
17509 | echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; } | ||
17510 | |||
17511 | fi | ||
17512 | if test $ac_cv_header_openssl_opensslv_h = yes; then | ||
17513 | : | ||
17514 | else | ||
17515 | { { echo "$as_me:$LINENO: error: *** OpenSSL headers missing - please install first or check config.log ***" >&5 | ||
17516 | echo "$as_me: error: *** OpenSSL headers missing - please install first or check config.log ***" >&2;} | ||
17517 | { (exit 1); exit 1; }; } | ||
17518 | fi | ||
17519 | |||
17520 | |||
17521 | cat >conftest.$ac_ext <<_ACEOF | ||
17522 | /* confdefs.h. */ | ||
17523 | _ACEOF | ||
17524 | cat confdefs.h >>conftest.$ac_ext | ||
17525 | cat >>conftest.$ac_ext <<_ACEOF | ||
17526 | /* end confdefs.h. */ | ||
17527 | |||
17528 | /* Override any GCC internal prototype to avoid an error. | ||
17529 | Use char because int might match the return type of a GCC | ||
17530 | builtin and then its argument prototype would still apply. */ | ||
17531 | #ifdef __cplusplus | ||
17532 | extern "C" | ||
17533 | #endif | ||
17534 | char RAND_add (); | ||
17535 | int | ||
17536 | main () | ||
17537 | { | ||
17538 | return RAND_add (); | ||
17539 | ; | ||
17540 | return 0; | ||
17541 | } | ||
17542 | _ACEOF | ||
17543 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17544 | if { (ac_try="$ac_link" | ||
17545 | case "(($ac_try" in | ||
17546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17547 | *) ac_try_echo=$ac_try;; | ||
17548 | esac | ||
17549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17550 | (eval "$ac_link") 2>conftest.er1 | ||
17551 | ac_status=$? | ||
17552 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17553 | rm -f conftest.er1 | ||
17554 | cat conftest.err >&5 | ||
17555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17556 | (exit $ac_status); } && { | ||
17557 | test -z "$ac_c_werror_flag" || | ||
17558 | test ! -s conftest.err | ||
17559 | } && test -s conftest$ac_exeext && | ||
17560 | $as_test_x conftest$ac_exeext; then | ||
17561 | cat >>confdefs.h <<\_ACEOF | ||
17562 | #define HAVE_OPENSSL 1 | ||
17563 | _ACEOF | ||
17564 | |||
17565 | else | ||
17566 | echo "$as_me: failed program was:" >&5 | ||
17567 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17568 | |||
17569 | |||
17570 | { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5 | ||
17571 | echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;} | ||
17572 | { (exit 1); exit 1; }; } | ||
17573 | |||
17574 | |||
17575 | fi | ||
17576 | |||
17577 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17578 | conftest$ac_exeext conftest.$ac_ext | ||
17579 | |||
17580 | |||
17581 | fi | ||
17582 | |||
17583 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17584 | conftest$ac_exeext conftest.$ac_ext | ||
17585 | |||
17586 | # Determine OpenSSL header version | ||
17587 | { echo "$as_me:$LINENO: checking OpenSSL header version" >&5 | ||
17588 | echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; } | ||
17589 | if test "$cross_compiling" = yes; then | ||
17590 | |||
17591 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
17592 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
17593 | |||
17594 | |||
17595 | else | ||
17596 | cat >conftest.$ac_ext <<_ACEOF | ||
17597 | /* confdefs.h. */ | ||
17598 | _ACEOF | ||
17599 | cat confdefs.h >>conftest.$ac_ext | ||
17600 | cat >>conftest.$ac_ext <<_ACEOF | ||
17601 | /* end confdefs.h. */ | ||
17602 | |||
17603 | #include <stdio.h> | ||
17604 | #include <string.h> | ||
17605 | #include <openssl/opensslv.h> | ||
17606 | #define DATA "conftest.sslincver" | ||
17607 | int main(void) { | ||
17608 | FILE *fd; | ||
17609 | int rc; | ||
17610 | |||
17611 | fd = fopen(DATA,"w"); | ||
17612 | if(fd == NULL) | ||
17613 | exit(1); | ||
17614 | |||
17615 | if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) | ||
17616 | exit(1); | ||
17617 | |||
17618 | exit(0); | ||
17619 | } | ||
17620 | |||
17621 | _ACEOF | ||
17622 | rm -f conftest$ac_exeext | ||
17623 | if { (ac_try="$ac_link" | ||
17624 | case "(($ac_try" in | ||
17625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17626 | *) ac_try_echo=$ac_try;; | ||
17627 | esac | ||
17628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17629 | (eval "$ac_link") 2>&5 | ||
17630 | ac_status=$? | ||
17631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17632 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
17633 | { (case "(($ac_try" in | ||
17634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17635 | *) ac_try_echo=$ac_try;; | ||
17636 | esac | ||
17637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17638 | (eval "$ac_try") 2>&5 | ||
17639 | ac_status=$? | ||
17640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17641 | (exit $ac_status); }; }; then | ||
17642 | |||
17643 | ssl_header_ver=`cat conftest.sslincver` | ||
17644 | { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5 | ||
17645 | echo "${ECHO_T}$ssl_header_ver" >&6; } | ||
17646 | |||
17647 | else | ||
17648 | echo "$as_me: program exited with status $ac_status" >&5 | ||
17649 | echo "$as_me: failed program was:" >&5 | ||
17650 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17651 | |||
17652 | ( exit $ac_status ) | ||
17653 | |||
17654 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
17655 | echo "${ECHO_T}not found" >&6; } | ||
17656 | { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5 | ||
17657 | echo "$as_me: error: OpenSSL version header not found." >&2;} | ||
17658 | { (exit 1); exit 1; }; } | ||
17659 | |||
17660 | fi | ||
17661 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
17662 | fi | ||
17663 | |||
17664 | |||
17665 | |||
17666 | # Determine OpenSSL library version | ||
17667 | { echo "$as_me:$LINENO: checking OpenSSL library version" >&5 | ||
17668 | echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; } | ||
17669 | if test "$cross_compiling" = yes; then | ||
17670 | |||
17671 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
17672 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
17673 | |||
17674 | |||
17675 | else | ||
17676 | cat >conftest.$ac_ext <<_ACEOF | ||
17677 | /* confdefs.h. */ | ||
17678 | _ACEOF | ||
17679 | cat confdefs.h >>conftest.$ac_ext | ||
17680 | cat >>conftest.$ac_ext <<_ACEOF | ||
17681 | /* end confdefs.h. */ | ||
17682 | |||
17683 | #include <stdio.h> | ||
17684 | #include <string.h> | ||
17685 | #include <openssl/opensslv.h> | ||
17686 | #include <openssl/crypto.h> | ||
17687 | #define DATA "conftest.ssllibver" | ||
17688 | int main(void) { | ||
17689 | FILE *fd; | ||
17690 | int rc; | ||
17691 | |||
17692 | fd = fopen(DATA,"w"); | ||
17693 | if(fd == NULL) | ||
17694 | exit(1); | ||
17695 | |||
17696 | if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0) | ||
17697 | exit(1); | ||
17698 | |||
17699 | exit(0); | ||
17700 | } | ||
17701 | |||
17702 | _ACEOF | ||
17703 | rm -f conftest$ac_exeext | ||
17704 | if { (ac_try="$ac_link" | ||
17705 | case "(($ac_try" in | ||
17706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17707 | *) ac_try_echo=$ac_try;; | ||
17708 | esac | ||
17709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17710 | (eval "$ac_link") 2>&5 | ||
17711 | ac_status=$? | ||
17712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17713 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
17714 | { (case "(($ac_try" in | ||
17715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17716 | *) ac_try_echo=$ac_try;; | ||
17717 | esac | ||
17718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17719 | (eval "$ac_try") 2>&5 | ||
17720 | ac_status=$? | ||
17721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17722 | (exit $ac_status); }; }; then | ||
17723 | |||
17724 | ssl_library_ver=`cat conftest.ssllibver` | ||
17725 | { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5 | ||
17726 | echo "${ECHO_T}$ssl_library_ver" >&6; } | ||
17727 | |||
17728 | else | ||
17729 | echo "$as_me: program exited with status $ac_status" >&5 | ||
17730 | echo "$as_me: failed program was:" >&5 | ||
17731 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17732 | |||
17733 | ( exit $ac_status ) | ||
17734 | |||
17735 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
17736 | echo "${ECHO_T}not found" >&6; } | ||
17737 | { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5 | ||
17738 | echo "$as_me: error: OpenSSL library not found." >&2;} | ||
17739 | { (exit 1); exit 1; }; } | ||
17740 | |||
17741 | fi | ||
17742 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
17743 | fi | ||
17744 | |||
17745 | |||
17746 | |||
17747 | |||
17748 | # Check whether --with-openssl-header-check was given. | ||
17749 | if test "${with_openssl_header_check+set}" = set; then | ||
17750 | withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then | ||
17751 | openssl_check_nonfatal=1 | ||
17752 | fi | ||
17753 | |||
17754 | |||
17755 | fi | ||
17756 | |||
17757 | |||
17758 | # Sanity check OpenSSL headers | ||
17759 | { echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5 | ||
17760 | echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; } | ||
17761 | if test "$cross_compiling" = yes; then | ||
17762 | |||
17763 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
17764 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
17765 | |||
17766 | |||
17767 | else | ||
17768 | cat >conftest.$ac_ext <<_ACEOF | ||
17769 | /* confdefs.h. */ | ||
17770 | _ACEOF | ||
17771 | cat confdefs.h >>conftest.$ac_ext | ||
17772 | cat >>conftest.$ac_ext <<_ACEOF | ||
17773 | /* end confdefs.h. */ | ||
17774 | |||
17775 | #include <string.h> | ||
17776 | #include <openssl/opensslv.h> | ||
17777 | int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); } | ||
17778 | |||
17779 | _ACEOF | ||
17780 | rm -f conftest$ac_exeext | ||
17781 | if { (ac_try="$ac_link" | ||
17782 | case "(($ac_try" in | ||
17783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17784 | *) ac_try_echo=$ac_try;; | ||
17785 | esac | ||
17786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17787 | (eval "$ac_link") 2>&5 | ||
17788 | ac_status=$? | ||
17789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17790 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
17791 | { (case "(($ac_try" in | ||
17792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17793 | *) ac_try_echo=$ac_try;; | ||
17794 | esac | ||
17795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17796 | (eval "$ac_try") 2>&5 | ||
17797 | ac_status=$? | ||
17798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17799 | (exit $ac_status); }; }; then | ||
17800 | |||
17801 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
17802 | echo "${ECHO_T}yes" >&6; } | ||
17803 | |||
17804 | else | ||
17805 | echo "$as_me: program exited with status $ac_status" >&5 | ||
17806 | echo "$as_me: failed program was:" >&5 | ||
17807 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17808 | |||
17809 | ( exit $ac_status ) | ||
17810 | |||
17811 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17812 | echo "${ECHO_T}no" >&6; } | ||
17813 | if test "x$openssl_check_nonfatal" = "x"; then | ||
17814 | { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your | ||
17815 | library. Check config.log for details. | ||
17816 | If you are sure your installation is consistent, you can disable the check | ||
17817 | by running \"./configure --without-openssl-header-check\". | ||
17818 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
17819 | " >&5 | ||
17820 | echo "$as_me: error: Your OpenSSL headers do not match your | ||
17821 | library. Check config.log for details. | ||
17822 | If you are sure your installation is consistent, you can disable the check | ||
17823 | by running \"./configure --without-openssl-header-check\". | ||
17824 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
17825 | " >&2;} | ||
17826 | { (exit 1); exit 1; }; } | ||
17827 | else | ||
17828 | { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your | ||
17829 | library. Check config.log for details. | ||
17830 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 | ||
17831 | echo "$as_me: WARNING: Your OpenSSL headers do not match your | ||
17832 | library. Check config.log for details. | ||
17833 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} | ||
17834 | fi | ||
17835 | |||
17836 | fi | ||
17837 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
17838 | fi | ||
17839 | |||
17840 | |||
17841 | |||
17842 | { echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5 | ||
17843 | echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; } | ||
17844 | cat >conftest.$ac_ext <<_ACEOF | ||
17845 | /* confdefs.h. */ | ||
17846 | _ACEOF | ||
17847 | cat confdefs.h >>conftest.$ac_ext | ||
17848 | cat >>conftest.$ac_ext <<_ACEOF | ||
17849 | /* end confdefs.h. */ | ||
17850 | |||
17851 | #include <openssl/evp.h> | ||
17852 | int main(void) { SSLeay_add_all_algorithms(); } | ||
17853 | |||
17854 | _ACEOF | ||
17855 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17856 | if { (ac_try="$ac_link" | ||
17857 | case "(($ac_try" in | ||
17858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17859 | *) ac_try_echo=$ac_try;; | ||
17860 | esac | ||
17861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17862 | (eval "$ac_link") 2>conftest.er1 | ||
17863 | ac_status=$? | ||
17864 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17865 | rm -f conftest.er1 | ||
17866 | cat conftest.err >&5 | ||
17867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17868 | (exit $ac_status); } && { | ||
17869 | test -z "$ac_c_werror_flag" || | ||
17870 | test ! -s conftest.err | ||
17871 | } && test -s conftest$ac_exeext && | ||
17872 | $as_test_x conftest$ac_exeext; then | ||
17873 | |||
17874 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
17875 | echo "${ECHO_T}yes" >&6; } | ||
17876 | |||
17877 | else | ||
17878 | echo "$as_me: failed program was:" >&5 | ||
17879 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17880 | |||
17881 | |||
17882 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17883 | echo "${ECHO_T}no" >&6; } | ||
17884 | saved_LIBS="$LIBS" | ||
17885 | LIBS="$LIBS -ldl" | ||
17886 | { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5 | ||
17887 | echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; } | ||
17888 | cat >conftest.$ac_ext <<_ACEOF | ||
17889 | /* confdefs.h. */ | ||
17890 | _ACEOF | ||
17891 | cat confdefs.h >>conftest.$ac_ext | ||
17892 | cat >>conftest.$ac_ext <<_ACEOF | ||
17893 | /* end confdefs.h. */ | ||
17894 | |||
17895 | #include <openssl/evp.h> | ||
17896 | int main(void) { SSLeay_add_all_algorithms(); } | ||
17897 | |||
17898 | _ACEOF | ||
17899 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17900 | if { (ac_try="$ac_link" | ||
17901 | case "(($ac_try" in | ||
17902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17903 | *) ac_try_echo=$ac_try;; | ||
17904 | esac | ||
17905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17906 | (eval "$ac_link") 2>conftest.er1 | ||
17907 | ac_status=$? | ||
17908 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17909 | rm -f conftest.er1 | ||
17910 | cat conftest.err >&5 | ||
17911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17912 | (exit $ac_status); } && { | ||
17913 | test -z "$ac_c_werror_flag" || | ||
17914 | test ! -s conftest.err | ||
17915 | } && test -s conftest$ac_exeext && | ||
17916 | $as_test_x conftest$ac_exeext; then | ||
17917 | |||
17918 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
17919 | echo "${ECHO_T}yes" >&6; } | ||
17920 | |||
17921 | else | ||
17922 | echo "$as_me: failed program was:" >&5 | ||
17923 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17924 | |||
17925 | |||
17926 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17927 | echo "${ECHO_T}no" >&6; } | ||
17928 | LIBS="$saved_LIBS" | ||
17929 | |||
17930 | |||
17931 | fi | ||
17932 | |||
17933 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17934 | conftest$ac_exeext conftest.$ac_ext | ||
17935 | |||
17936 | |||
17937 | fi | ||
17938 | |||
17939 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17940 | conftest$ac_exeext conftest.$ac_ext | ||
17941 | |||
17942 | |||
17943 | |||
17944 | |||
17945 | |||
17946 | for ac_func in RSA_generate_key_ex DSA_generate_parameters_ex BN_is_prime_ex RSA_get_default_method | ||
17947 | do | ||
17948 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17949 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
17950 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
17951 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
17952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17953 | else | ||
17954 | cat >conftest.$ac_ext <<_ACEOF | ||
17955 | /* confdefs.h. */ | ||
17956 | _ACEOF | ||
17957 | cat confdefs.h >>conftest.$ac_ext | ||
17958 | cat >>conftest.$ac_ext <<_ACEOF | ||
17959 | /* end confdefs.h. */ | ||
17960 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
17961 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
17962 | #define $ac_func innocuous_$ac_func | ||
17963 | |||
17964 | /* System header to define __stub macros and hopefully few prototypes, | ||
17965 | which can conflict with char $ac_func (); below. | ||
17966 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
17967 | <limits.h> exists even on freestanding compilers. */ | ||
17968 | |||
17969 | #ifdef __STDC__ | ||
17970 | # include <limits.h> | ||
17971 | #else | ||
17972 | # include <assert.h> | ||
17973 | #endif | ||
17974 | |||
17975 | #undef $ac_func | ||
17976 | |||
17977 | /* Override any GCC internal prototype to avoid an error. | ||
17978 | Use char because int might match the return type of a GCC | ||
17979 | builtin and then its argument prototype would still apply. */ | ||
17980 | #ifdef __cplusplus | ||
17981 | extern "C" | ||
17982 | #endif | ||
17983 | char $ac_func (); | ||
17984 | /* The GNU C library defines this for functions which it implements | ||
17985 | to always fail with ENOSYS. Some functions are actually named | ||
17986 | something starting with __ and the normal name is an alias. */ | ||
17987 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
17988 | choke me | ||
17989 | #endif | ||
17990 | |||
17991 | int | ||
17992 | main () | ||
17993 | { | ||
17994 | return $ac_func (); | ||
17995 | ; | ||
17996 | return 0; | ||
17997 | } | ||
17998 | _ACEOF | ||
17999 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18000 | if { (ac_try="$ac_link" | ||
18001 | case "(($ac_try" in | ||
18002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18003 | *) ac_try_echo=$ac_try;; | ||
18004 | esac | ||
18005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18006 | (eval "$ac_link") 2>conftest.er1 | ||
18007 | ac_status=$? | ||
18008 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18009 | rm -f conftest.er1 | ||
18010 | cat conftest.err >&5 | ||
18011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18012 | (exit $ac_status); } && { | ||
18013 | test -z "$ac_c_werror_flag" || | ||
18014 | test ! -s conftest.err | ||
18015 | } && test -s conftest$ac_exeext && | ||
18016 | $as_test_x conftest$ac_exeext; then | ||
18017 | eval "$as_ac_var=yes" | ||
18018 | else | ||
18019 | echo "$as_me: failed program was:" >&5 | ||
18020 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18021 | |||
18022 | eval "$as_ac_var=no" | ||
18023 | fi | ||
18024 | |||
18025 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18026 | conftest$ac_exeext conftest.$ac_ext | ||
18027 | fi | ||
18028 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
18029 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
18030 | echo "${ECHO_T}$ac_res" >&6; } | ||
18031 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
18032 | cat >>confdefs.h <<_ACEOF | ||
18033 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
18034 | _ACEOF | ||
18035 | |||
18036 | fi | ||
18037 | done | ||
18038 | |||
18039 | |||
18040 | |||
18041 | # Check whether --with-ssl-engine was given. | ||
18042 | if test "${with_ssl_engine+set}" = set; then | ||
18043 | withval=$with_ssl_engine; if test "x$withval" != "xno" ; then | ||
18044 | { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5 | ||
18045 | echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; } | ||
18046 | cat >conftest.$ac_ext <<_ACEOF | ||
18047 | /* confdefs.h. */ | ||
18048 | _ACEOF | ||
18049 | cat confdefs.h >>conftest.$ac_ext | ||
18050 | cat >>conftest.$ac_ext <<_ACEOF | ||
18051 | /* end confdefs.h. */ | ||
18052 | #include <openssl/engine.h> | ||
18053 | int | ||
18054 | main () | ||
18055 | { | ||
18056 | |||
18057 | ENGINE_load_builtin_engines();ENGINE_register_all_complete(); | ||
18058 | |||
18059 | ; | ||
18060 | return 0; | ||
18061 | } | ||
18062 | _ACEOF | ||
18063 | rm -f conftest.$ac_objext | ||
18064 | if { (ac_try="$ac_compile" | ||
18065 | case "(($ac_try" in | ||
18066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18067 | *) ac_try_echo=$ac_try;; | ||
18068 | esac | ||
18069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18070 | (eval "$ac_compile") 2>conftest.er1 | ||
18071 | ac_status=$? | ||
18072 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18073 | rm -f conftest.er1 | ||
18074 | cat conftest.err >&5 | ||
18075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18076 | (exit $ac_status); } && { | ||
18077 | test -z "$ac_c_werror_flag" || | ||
18078 | test ! -s conftest.err | ||
18079 | } && test -s conftest.$ac_objext; then | ||
18080 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
18081 | echo "${ECHO_T}yes" >&6; } | ||
18082 | |||
18083 | cat >>confdefs.h <<\_ACEOF | ||
18084 | #define USE_OPENSSL_ENGINE 1 | ||
18085 | _ACEOF | ||
18086 | |||
18087 | |||
18088 | else | ||
18089 | echo "$as_me: failed program was:" >&5 | ||
18090 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18091 | |||
18092 | { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5 | ||
18093 | echo "$as_me: error: OpenSSL ENGINE support not found" >&2;} | ||
18094 | { (exit 1); exit 1; }; } | ||
18095 | |||
18096 | fi | ||
18097 | |||
18098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18099 | fi | ||
18100 | |||
18101 | fi | ||
18102 | |||
18103 | |||
18104 | # Check for OpenSSL without EVP_aes_{192,256}_cbc | ||
18105 | { echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5 | ||
18106 | echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; } | ||
18107 | cat >conftest.$ac_ext <<_ACEOF | ||
18108 | /* confdefs.h. */ | ||
18109 | _ACEOF | ||
18110 | cat confdefs.h >>conftest.$ac_ext | ||
18111 | cat >>conftest.$ac_ext <<_ACEOF | ||
18112 | /* end confdefs.h. */ | ||
18113 | |||
18114 | #include <string.h> | ||
18115 | #include <openssl/evp.h> | ||
18116 | int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);} | ||
18117 | |||
18118 | _ACEOF | ||
18119 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18120 | if { (ac_try="$ac_link" | ||
18121 | case "(($ac_try" in | ||
18122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18123 | *) ac_try_echo=$ac_try;; | ||
18124 | esac | ||
18125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18126 | (eval "$ac_link") 2>conftest.er1 | ||
18127 | ac_status=$? | ||
18128 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18129 | rm -f conftest.er1 | ||
18130 | cat conftest.err >&5 | ||
18131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18132 | (exit $ac_status); } && { | ||
18133 | test -z "$ac_c_werror_flag" || | ||
18134 | test ! -s conftest.err | ||
18135 | } && test -s conftest$ac_exeext && | ||
18136 | $as_test_x conftest$ac_exeext; then | ||
18137 | |||
18138 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18139 | echo "${ECHO_T}no" >&6; } | ||
18140 | |||
18141 | else | ||
18142 | echo "$as_me: failed program was:" >&5 | ||
18143 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18144 | |||
18145 | |||
18146 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
18147 | echo "${ECHO_T}yes" >&6; } | ||
18148 | |||
18149 | cat >>confdefs.h <<\_ACEOF | ||
18150 | #define OPENSSL_LOBOTOMISED_AES 1 | ||
18151 | _ACEOF | ||
18152 | |||
18153 | |||
18154 | |||
18155 | fi | ||
18156 | |||
18157 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18158 | conftest$ac_exeext conftest.$ac_ext | ||
18159 | |||
18160 | { echo "$as_me:$LINENO: checking if EVP_DigestUpdate returns an int" >&5 | ||
18161 | echo $ECHO_N "checking if EVP_DigestUpdate returns an int... $ECHO_C" >&6; } | ||
18162 | cat >conftest.$ac_ext <<_ACEOF | ||
18163 | /* confdefs.h. */ | ||
18164 | _ACEOF | ||
18165 | cat confdefs.h >>conftest.$ac_ext | ||
18166 | cat >>conftest.$ac_ext <<_ACEOF | ||
18167 | /* end confdefs.h. */ | ||
18168 | |||
18169 | #include <string.h> | ||
18170 | #include <openssl/evp.h> | ||
18171 | int main(void) { if(EVP_DigestUpdate(NULL, NULL,0)) exit(0); } | ||
18172 | |||
18173 | _ACEOF | ||
18174 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18175 | if { (ac_try="$ac_link" | ||
18176 | case "(($ac_try" in | ||
18177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18178 | *) ac_try_echo=$ac_try;; | ||
18179 | esac | ||
18180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18181 | (eval "$ac_link") 2>conftest.er1 | ||
18182 | ac_status=$? | ||
18183 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18184 | rm -f conftest.er1 | ||
18185 | cat conftest.err >&5 | ||
18186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18187 | (exit $ac_status); } && { | ||
18188 | test -z "$ac_c_werror_flag" || | ||
18189 | test ! -s conftest.err | ||
18190 | } && test -s conftest$ac_exeext && | ||
18191 | $as_test_x conftest$ac_exeext; then | ||
18192 | |||
18193 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
18194 | echo "${ECHO_T}yes" >&6; } | ||
18195 | |||
18196 | else | ||
18197 | echo "$as_me: failed program was:" >&5 | ||
18198 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18199 | |||
18200 | |||
18201 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18202 | echo "${ECHO_T}no" >&6; } | ||
18203 | |||
18204 | cat >>confdefs.h <<\_ACEOF | ||
18205 | #define OPENSSL_EVP_DIGESTUPDATE_VOID 1 | ||
18206 | _ACEOF | ||
18207 | |||
18208 | |||
18209 | |||
18210 | fi | ||
18211 | |||
18212 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18213 | conftest$ac_exeext conftest.$ac_ext | ||
18214 | |||
18215 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
18216 | # because the system crypt() is more featureful. | ||
18217 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
18218 | |||
18219 | { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
18220 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } | ||
18221 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
18222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18223 | else | ||
18224 | ac_check_lib_save_LIBS=$LIBS | ||
18225 | LIBS="-lcrypt $LIBS" | ||
18226 | cat >conftest.$ac_ext <<_ACEOF | ||
18227 | /* confdefs.h. */ | ||
18228 | _ACEOF | ||
18229 | cat confdefs.h >>conftest.$ac_ext | ||
18230 | cat >>conftest.$ac_ext <<_ACEOF | ||
18231 | /* end confdefs.h. */ | ||
18232 | |||
18233 | /* Override any GCC internal prototype to avoid an error. | ||
18234 | Use char because int might match the return type of a GCC | ||
18235 | builtin and then its argument prototype would still apply. */ | ||
18236 | #ifdef __cplusplus | ||
18237 | extern "C" | ||
18238 | #endif | ||
18239 | char crypt (); | ||
18240 | int | ||
18241 | main () | ||
18242 | { | ||
18243 | return crypt (); | ||
18244 | ; | ||
18245 | return 0; | ||
18246 | } | ||
18247 | _ACEOF | ||
18248 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18249 | if { (ac_try="$ac_link" | ||
18250 | case "(($ac_try" in | ||
18251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18252 | *) ac_try_echo=$ac_try;; | ||
18253 | esac | ||
18254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18255 | (eval "$ac_link") 2>conftest.er1 | ||
18256 | ac_status=$? | ||
18257 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18258 | rm -f conftest.er1 | ||
18259 | cat conftest.err >&5 | ||
18260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18261 | (exit $ac_status); } && { | ||
18262 | test -z "$ac_c_werror_flag" || | ||
18263 | test ! -s conftest.err | ||
18264 | } && test -s conftest$ac_exeext && | ||
18265 | $as_test_x conftest$ac_exeext; then | ||
18266 | ac_cv_lib_crypt_crypt=yes | ||
18267 | else | ||
18268 | echo "$as_me: failed program was:" >&5 | ||
18269 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18270 | |||
18271 | ac_cv_lib_crypt_crypt=no | ||
18272 | fi | ||
18273 | |||
18274 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18275 | conftest$ac_exeext conftest.$ac_ext | ||
18276 | LIBS=$ac_check_lib_save_LIBS | ||
18277 | fi | ||
18278 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
18279 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; } | ||
18280 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
18281 | cat >>confdefs.h <<_ACEOF | ||
18282 | #define HAVE_LIBCRYPT 1 | ||
18283 | _ACEOF | ||
18284 | |||
18285 | LIBS="-lcrypt $LIBS" | ||
18286 | |||
18287 | fi | ||
18288 | |||
18289 | fi | ||
18290 | |||
18291 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
18292 | # version in OpenSSL. | ||
18293 | if test "x$check_for_libcrypt_later" = "x1"; then | ||
18294 | { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
18295 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } | ||
18296 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
18297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18298 | else | ||
18299 | ac_check_lib_save_LIBS=$LIBS | ||
18300 | LIBS="-lcrypt $LIBS" | ||
18301 | cat >conftest.$ac_ext <<_ACEOF | ||
18302 | /* confdefs.h. */ | ||
18303 | _ACEOF | ||
18304 | cat confdefs.h >>conftest.$ac_ext | ||
18305 | cat >>conftest.$ac_ext <<_ACEOF | ||
18306 | /* end confdefs.h. */ | ||
18307 | |||
18308 | /* Override any GCC internal prototype to avoid an error. | ||
18309 | Use char because int might match the return type of a GCC | ||
18310 | builtin and then its argument prototype would still apply. */ | ||
18311 | #ifdef __cplusplus | ||
18312 | extern "C" | ||
18313 | #endif | ||
18314 | char crypt (); | ||
18315 | int | ||
18316 | main () | ||
18317 | { | ||
18318 | return crypt (); | ||
18319 | ; | ||
18320 | return 0; | ||
18321 | } | ||
18322 | _ACEOF | ||
18323 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18324 | if { (ac_try="$ac_link" | ||
18325 | case "(($ac_try" in | ||
18326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18327 | *) ac_try_echo=$ac_try;; | ||
18328 | esac | ||
18329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18330 | (eval "$ac_link") 2>conftest.er1 | ||
18331 | ac_status=$? | ||
18332 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18333 | rm -f conftest.er1 | ||
18334 | cat conftest.err >&5 | ||
18335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18336 | (exit $ac_status); } && { | ||
18337 | test -z "$ac_c_werror_flag" || | ||
18338 | test ! -s conftest.err | ||
18339 | } && test -s conftest$ac_exeext && | ||
18340 | $as_test_x conftest$ac_exeext; then | ||
18341 | ac_cv_lib_crypt_crypt=yes | ||
18342 | else | ||
18343 | echo "$as_me: failed program was:" >&5 | ||
18344 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18345 | |||
18346 | ac_cv_lib_crypt_crypt=no | ||
18347 | fi | ||
18348 | |||
18349 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18350 | conftest$ac_exeext conftest.$ac_ext | ||
18351 | LIBS=$ac_check_lib_save_LIBS | ||
18352 | fi | ||
18353 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
18354 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; } | ||
18355 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
18356 | LIBS="$LIBS -lcrypt" | ||
18357 | fi | ||
18358 | |||
18359 | fi | ||
18360 | |||
18361 | # Search for SHA256 support in libc and/or OpenSSL | ||
18362 | |||
18363 | |||
18364 | for ac_func in SHA256_Update EVP_sha256 | ||
18365 | do | ||
18366 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
18367 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
18368 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
18369 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
18370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18371 | else | ||
18372 | cat >conftest.$ac_ext <<_ACEOF | ||
18373 | /* confdefs.h. */ | ||
18374 | _ACEOF | ||
18375 | cat confdefs.h >>conftest.$ac_ext | ||
18376 | cat >>conftest.$ac_ext <<_ACEOF | ||
18377 | /* end confdefs.h. */ | ||
18378 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
18379 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
18380 | #define $ac_func innocuous_$ac_func | ||
18381 | |||
18382 | /* System header to define __stub macros and hopefully few prototypes, | ||
18383 | which can conflict with char $ac_func (); below. | ||
18384 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
18385 | <limits.h> exists even on freestanding compilers. */ | ||
18386 | |||
18387 | #ifdef __STDC__ | ||
18388 | # include <limits.h> | ||
18389 | #else | ||
18390 | # include <assert.h> | ||
18391 | #endif | ||
18392 | |||
18393 | #undef $ac_func | ||
18394 | |||
18395 | /* Override any GCC internal prototype to avoid an error. | ||
18396 | Use char because int might match the return type of a GCC | ||
18397 | builtin and then its argument prototype would still apply. */ | ||
18398 | #ifdef __cplusplus | ||
18399 | extern "C" | ||
18400 | #endif | ||
18401 | char $ac_func (); | ||
18402 | /* The GNU C library defines this for functions which it implements | ||
18403 | to always fail with ENOSYS. Some functions are actually named | ||
18404 | something starting with __ and the normal name is an alias. */ | ||
18405 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
18406 | choke me | ||
18407 | #endif | ||
18408 | |||
18409 | int | ||
18410 | main () | ||
18411 | { | ||
18412 | return $ac_func (); | ||
18413 | ; | ||
18414 | return 0; | ||
18415 | } | ||
18416 | _ACEOF | ||
18417 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18418 | if { (ac_try="$ac_link" | ||
18419 | case "(($ac_try" in | ||
18420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18421 | *) ac_try_echo=$ac_try;; | ||
18422 | esac | ||
18423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18424 | (eval "$ac_link") 2>conftest.er1 | ||
18425 | ac_status=$? | ||
18426 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18427 | rm -f conftest.er1 | ||
18428 | cat conftest.err >&5 | ||
18429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18430 | (exit $ac_status); } && { | ||
18431 | test -z "$ac_c_werror_flag" || | ||
18432 | test ! -s conftest.err | ||
18433 | } && test -s conftest$ac_exeext && | ||
18434 | $as_test_x conftest$ac_exeext; then | ||
18435 | eval "$as_ac_var=yes" | ||
18436 | else | ||
18437 | echo "$as_me: failed program was:" >&5 | ||
18438 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18439 | |||
18440 | eval "$as_ac_var=no" | ||
18441 | fi | ||
18442 | |||
18443 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18444 | conftest$ac_exeext conftest.$ac_ext | ||
18445 | fi | ||
18446 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
18447 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
18448 | echo "${ECHO_T}$ac_res" >&6; } | ||
18449 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
18450 | cat >>confdefs.h <<_ACEOF | ||
18451 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
18452 | _ACEOF | ||
18453 | TEST_SSH_SHA256=yes | ||
18454 | else | ||
18455 | TEST_SSH_SHA256=no | ||
18456 | fi | ||
18457 | done | ||
18458 | |||
18459 | |||
18460 | |||
18461 | # Check complete ECC support in OpenSSL | ||
18462 | { echo "$as_me:$LINENO: checking whether OpenSSL has complete ECC support" >&5 | ||
18463 | echo $ECHO_N "checking whether OpenSSL has complete ECC support... $ECHO_C" >&6; } | ||
18464 | cat >conftest.$ac_ext <<_ACEOF | ||
18465 | /* confdefs.h. */ | ||
18466 | _ACEOF | ||
18467 | cat confdefs.h >>conftest.$ac_ext | ||
18468 | cat >>conftest.$ac_ext <<_ACEOF | ||
18469 | /* end confdefs.h. */ | ||
18470 | |||
18471 | #include <openssl/ec.h> | ||
18472 | #include <openssl/ecdh.h> | ||
18473 | #include <openssl/ecdsa.h> | ||
18474 | #include <openssl/evp.h> | ||
18475 | #include <openssl/objects.h> | ||
18476 | #include <openssl/opensslv.h> | ||
18477 | #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ | ||
18478 | # error "OpenSSL < 0.9.8g has unreliable ECC code" | ||
18479 | #endif | ||
18480 | int main(void) { | ||
18481 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); | ||
18482 | const EVP_MD *m = EVP_sha512(); /* We need this too */ | ||
18483 | } | ||
18484 | |||
18485 | _ACEOF | ||
18486 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18487 | if { (ac_try="$ac_link" | ||
18488 | case "(($ac_try" in | ||
18489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18490 | *) ac_try_echo=$ac_try;; | ||
18491 | esac | ||
18492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18493 | (eval "$ac_link") 2>conftest.er1 | ||
18494 | ac_status=$? | ||
18495 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18496 | rm -f conftest.er1 | ||
18497 | cat conftest.err >&5 | ||
18498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18499 | (exit $ac_status); } && { | ||
18500 | test -z "$ac_c_werror_flag" || | ||
18501 | test ! -s conftest.err | ||
18502 | } && test -s conftest$ac_exeext && | ||
18503 | $as_test_x conftest$ac_exeext; then | ||
18504 | |||
18505 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
18506 | echo "${ECHO_T}yes" >&6; } | ||
18507 | |||
18508 | cat >>confdefs.h <<\_ACEOF | ||
18509 | #define OPENSSL_HAS_ECC 1 | ||
18510 | _ACEOF | ||
18511 | |||
18512 | TEST_SSH_ECC=yes | ||
18513 | COMMENT_OUT_ECC="" | ||
18514 | |||
18515 | else | ||
18516 | echo "$as_me: failed program was:" >&5 | ||
18517 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18518 | |||
18519 | |||
18520 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18521 | echo "${ECHO_T}no" >&6; } | ||
18522 | TEST_SSH_ECC=no | ||
18523 | COMMENT_OUT_ECC="#no ecc#" | ||
18524 | |||
18525 | |||
18526 | fi | ||
18527 | |||
18528 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18529 | conftest$ac_exeext conftest.$ac_ext | ||
18530 | |||
18531 | |||
18532 | |||
18533 | saved_LIBS="$LIBS" | ||
18534 | { echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5 | ||
18535 | echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; } | ||
18536 | if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then | ||
18537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18538 | else | ||
18539 | ac_check_lib_save_LIBS=$LIBS | ||
18540 | LIBS="-liaf $LIBS" | ||
18541 | cat >conftest.$ac_ext <<_ACEOF | ||
18542 | /* confdefs.h. */ | ||
18543 | _ACEOF | ||
18544 | cat confdefs.h >>conftest.$ac_ext | ||
18545 | cat >>conftest.$ac_ext <<_ACEOF | ||
18546 | /* end confdefs.h. */ | ||
18547 | |||
18548 | /* Override any GCC internal prototype to avoid an error. | ||
18549 | Use char because int might match the return type of a GCC | ||
18550 | builtin and then its argument prototype would still apply. */ | ||
18551 | #ifdef __cplusplus | ||
18552 | extern "C" | ||
18553 | #endif | ||
18554 | char ia_openinfo (); | ||
18555 | int | ||
18556 | main () | ||
18557 | { | ||
18558 | return ia_openinfo (); | ||
18559 | ; | ||
18560 | return 0; | ||
18561 | } | ||
18562 | _ACEOF | ||
18563 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18564 | if { (ac_try="$ac_link" | ||
18565 | case "(($ac_try" in | ||
18566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18567 | *) ac_try_echo=$ac_try;; | ||
18568 | esac | ||
18569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18570 | (eval "$ac_link") 2>conftest.er1 | ||
18571 | ac_status=$? | ||
18572 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18573 | rm -f conftest.er1 | ||
18574 | cat conftest.err >&5 | ||
18575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18576 | (exit $ac_status); } && { | ||
18577 | test -z "$ac_c_werror_flag" || | ||
18578 | test ! -s conftest.err | ||
18579 | } && test -s conftest$ac_exeext && | ||
18580 | $as_test_x conftest$ac_exeext; then | ||
18581 | ac_cv_lib_iaf_ia_openinfo=yes | ||
18582 | else | ||
18583 | echo "$as_me: failed program was:" >&5 | ||
18584 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18585 | |||
18586 | ac_cv_lib_iaf_ia_openinfo=no | ||
18587 | fi | ||
18588 | |||
18589 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18590 | conftest$ac_exeext conftest.$ac_ext | ||
18591 | LIBS=$ac_check_lib_save_LIBS | ||
18592 | fi | ||
18593 | { echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5 | ||
18594 | echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; } | ||
18595 | if test $ac_cv_lib_iaf_ia_openinfo = yes; then | ||
18596 | |||
18597 | LIBS="$LIBS -liaf" | ||
18598 | |||
18599 | for ac_func in set_id | ||
18600 | do | ||
18601 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
18602 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
18603 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
18604 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
18605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18606 | else | ||
18607 | cat >conftest.$ac_ext <<_ACEOF | ||
18608 | /* confdefs.h. */ | ||
18609 | _ACEOF | ||
18610 | cat confdefs.h >>conftest.$ac_ext | ||
18611 | cat >>conftest.$ac_ext <<_ACEOF | ||
18612 | /* end confdefs.h. */ | ||
18613 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
18614 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
18615 | #define $ac_func innocuous_$ac_func | ||
18616 | |||
18617 | /* System header to define __stub macros and hopefully few prototypes, | ||
18618 | which can conflict with char $ac_func (); below. | ||
18619 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
18620 | <limits.h> exists even on freestanding compilers. */ | ||
18621 | |||
18622 | #ifdef __STDC__ | ||
18623 | # include <limits.h> | ||
18624 | #else | ||
18625 | # include <assert.h> | ||
18626 | #endif | ||
18627 | |||
18628 | #undef $ac_func | ||
18629 | |||
18630 | /* Override any GCC internal prototype to avoid an error. | ||
18631 | Use char because int might match the return type of a GCC | ||
18632 | builtin and then its argument prototype would still apply. */ | ||
18633 | #ifdef __cplusplus | ||
18634 | extern "C" | ||
18635 | #endif | ||
18636 | char $ac_func (); | ||
18637 | /* The GNU C library defines this for functions which it implements | ||
18638 | to always fail with ENOSYS. Some functions are actually named | ||
18639 | something starting with __ and the normal name is an alias. */ | ||
18640 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
18641 | choke me | ||
18642 | #endif | ||
18643 | |||
18644 | int | ||
18645 | main () | ||
18646 | { | ||
18647 | return $ac_func (); | ||
18648 | ; | ||
18649 | return 0; | ||
18650 | } | ||
18651 | _ACEOF | ||
18652 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18653 | if { (ac_try="$ac_link" | ||
18654 | case "(($ac_try" in | ||
18655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18656 | *) ac_try_echo=$ac_try;; | ||
18657 | esac | ||
18658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18659 | (eval "$ac_link") 2>conftest.er1 | ||
18660 | ac_status=$? | ||
18661 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18662 | rm -f conftest.er1 | ||
18663 | cat conftest.err >&5 | ||
18664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18665 | (exit $ac_status); } && { | ||
18666 | test -z "$ac_c_werror_flag" || | ||
18667 | test ! -s conftest.err | ||
18668 | } && test -s conftest$ac_exeext && | ||
18669 | $as_test_x conftest$ac_exeext; then | ||
18670 | eval "$as_ac_var=yes" | ||
18671 | else | ||
18672 | echo "$as_me: failed program was:" >&5 | ||
18673 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18674 | |||
18675 | eval "$as_ac_var=no" | ||
18676 | fi | ||
18677 | |||
18678 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18679 | conftest$ac_exeext conftest.$ac_ext | ||
18680 | fi | ||
18681 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
18682 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
18683 | echo "${ECHO_T}$ac_res" >&6; } | ||
18684 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
18685 | cat >>confdefs.h <<_ACEOF | ||
18686 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
18687 | _ACEOF | ||
18688 | SSHDLIBS="$SSHDLIBS -liaf" | ||
18689 | |||
18690 | cat >>confdefs.h <<\_ACEOF | ||
18691 | #define HAVE_LIBIAF 1 | ||
18692 | _ACEOF | ||
18693 | |||
18694 | |||
18695 | fi | ||
18696 | done | ||
18697 | |||
18698 | |||
18699 | fi | ||
18700 | |||
18701 | LIBS="$saved_LIBS" | ||
18702 | |||
18703 | ### Configure cryptographic random number support | ||
18704 | |||
18705 | # Check wheter OpenSSL seeds itself | ||
18706 | { echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
18707 | echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; } | ||
18708 | if test "$cross_compiling" = yes; then | ||
18709 | |||
18710 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5 | ||
18711 | echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
18712 | # This is safe, since all recent OpenSSL versions will | ||
18713 | # complain at runtime if not seeded correctly. | ||
18714 | OPENSSL_SEEDS_ITSELF=yes | ||
18715 | |||
18716 | |||
18717 | else | ||
18718 | cat >conftest.$ac_ext <<_ACEOF | ||
18719 | /* confdefs.h. */ | ||
18720 | _ACEOF | ||
18721 | cat confdefs.h >>conftest.$ac_ext | ||
18722 | cat >>conftest.$ac_ext <<_ACEOF | ||
18723 | /* end confdefs.h. */ | ||
18724 | |||
18725 | #include <string.h> | ||
18726 | #include <openssl/rand.h> | ||
18727 | int main(void) { exit(RAND_status() == 1 ? 0 : 1); } | ||
18728 | |||
18729 | _ACEOF | ||
18730 | rm -f conftest$ac_exeext | ||
18731 | if { (ac_try="$ac_link" | ||
18732 | case "(($ac_try" in | ||
18733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18734 | *) ac_try_echo=$ac_try;; | ||
18735 | esac | ||
18736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18737 | (eval "$ac_link") 2>&5 | ||
18738 | ac_status=$? | ||
18739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18740 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
18741 | { (case "(($ac_try" in | ||
18742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18743 | *) ac_try_echo=$ac_try;; | ||
18744 | esac | ||
18745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18746 | (eval "$ac_try") 2>&5 | ||
18747 | ac_status=$? | ||
18748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18749 | (exit $ac_status); }; }; then | ||
18750 | |||
18751 | OPENSSL_SEEDS_ITSELF=yes | ||
18752 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
18753 | echo "${ECHO_T}yes" >&6; } | ||
18754 | |||
18755 | else | ||
18756 | echo "$as_me: program exited with status $ac_status" >&5 | ||
18757 | echo "$as_me: failed program was:" >&5 | ||
18758 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18759 | |||
18760 | ( exit $ac_status ) | ||
18761 | |||
18762 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18763 | echo "${ECHO_T}no" >&6; } | ||
18764 | # Default to use of the rand helper if OpenSSL doesn't | ||
18765 | # seed itself | ||
18766 | USE_RAND_HELPER=yes | ||
18767 | |||
18768 | fi | ||
18769 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
18770 | fi | ||
18771 | |||
18772 | |||
18773 | |||
18774 | # Check for PAM libs | ||
18775 | PAM_MSG="no" | ||
18776 | |||
18777 | # Check whether --with-pam was given. | ||
18778 | if test "${with_pam+set}" = set; then | ||
18779 | withval=$with_pam; | ||
18780 | if test "x$withval" != "xno" ; then | ||
18781 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ | ||
18782 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then | ||
18783 | { { echo "$as_me:$LINENO: error: PAM headers not found" >&5 | ||
18784 | echo "$as_me: error: PAM headers not found" >&2;} | ||
18785 | { (exit 1); exit 1; }; } | ||
18786 | fi | ||
18787 | |||
18788 | saved_LIBS="$LIBS" | ||
18789 | |||
18790 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
18791 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | ||
18792 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
18793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18794 | else | ||
18795 | ac_check_lib_save_LIBS=$LIBS | ||
18796 | LIBS="-ldl $LIBS" | ||
18797 | cat >conftest.$ac_ext <<_ACEOF | ||
18798 | /* confdefs.h. */ | ||
18799 | _ACEOF | ||
18800 | cat confdefs.h >>conftest.$ac_ext | ||
18801 | cat >>conftest.$ac_ext <<_ACEOF | ||
18802 | /* end confdefs.h. */ | ||
18803 | |||
18804 | /* Override any GCC internal prototype to avoid an error. | ||
18805 | Use char because int might match the return type of a GCC | ||
18806 | builtin and then its argument prototype would still apply. */ | ||
18807 | #ifdef __cplusplus | ||
18808 | extern "C" | ||
18809 | #endif | ||
18810 | char dlopen (); | ||
18811 | int | ||
18812 | main () | ||
18813 | { | ||
18814 | return dlopen (); | ||
18815 | ; | ||
18816 | return 0; | ||
18817 | } | ||
18818 | _ACEOF | ||
18819 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18820 | if { (ac_try="$ac_link" | ||
18821 | case "(($ac_try" in | ||
18822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18823 | *) ac_try_echo=$ac_try;; | ||
18824 | esac | ||
18825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18826 | (eval "$ac_link") 2>conftest.er1 | ||
18827 | ac_status=$? | ||
18828 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18829 | rm -f conftest.er1 | ||
18830 | cat conftest.err >&5 | ||
18831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18832 | (exit $ac_status); } && { | ||
18833 | test -z "$ac_c_werror_flag" || | ||
18834 | test ! -s conftest.err | ||
18835 | } && test -s conftest$ac_exeext && | ||
18836 | $as_test_x conftest$ac_exeext; then | ||
18837 | ac_cv_lib_dl_dlopen=yes | ||
18838 | else | ||
18839 | echo "$as_me: failed program was:" >&5 | ||
18840 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18841 | |||
18842 | ac_cv_lib_dl_dlopen=no | ||
18843 | fi | ||
18844 | |||
18845 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18846 | conftest$ac_exeext conftest.$ac_ext | ||
18847 | LIBS=$ac_check_lib_save_LIBS | ||
18848 | fi | ||
18849 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
18850 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | ||
18851 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
18852 | cat >>confdefs.h <<_ACEOF | ||
18853 | #define HAVE_LIBDL 1 | ||
18854 | _ACEOF | ||
18855 | |||
18856 | LIBS="-ldl $LIBS" | ||
18857 | |||
18858 | fi | ||
18859 | |||
18860 | |||
18861 | { echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5 | ||
18862 | echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; } | ||
18863 | if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then | ||
18864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18865 | else | ||
18866 | ac_check_lib_save_LIBS=$LIBS | ||
18867 | LIBS="-lpam $LIBS" | ||
18868 | cat >conftest.$ac_ext <<_ACEOF | ||
18869 | /* confdefs.h. */ | ||
18870 | _ACEOF | ||
18871 | cat confdefs.h >>conftest.$ac_ext | ||
18872 | cat >>conftest.$ac_ext <<_ACEOF | ||
18873 | /* end confdefs.h. */ | ||
18874 | |||
18875 | /* Override any GCC internal prototype to avoid an error. | ||
18876 | Use char because int might match the return type of a GCC | ||
18877 | builtin and then its argument prototype would still apply. */ | ||
18878 | #ifdef __cplusplus | ||
18879 | extern "C" | ||
18880 | #endif | ||
18881 | char pam_set_item (); | ||
18882 | int | ||
18883 | main () | ||
18884 | { | ||
18885 | return pam_set_item (); | ||
18886 | ; | ||
18887 | return 0; | ||
18888 | } | ||
18889 | _ACEOF | ||
18890 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18891 | if { (ac_try="$ac_link" | ||
18892 | case "(($ac_try" in | ||
18893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18894 | *) ac_try_echo=$ac_try;; | ||
18895 | esac | ||
18896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18897 | (eval "$ac_link") 2>conftest.er1 | ||
18898 | ac_status=$? | ||
18899 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18900 | rm -f conftest.er1 | ||
18901 | cat conftest.err >&5 | ||
18902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18903 | (exit $ac_status); } && { | ||
18904 | test -z "$ac_c_werror_flag" || | ||
18905 | test ! -s conftest.err | ||
18906 | } && test -s conftest$ac_exeext && | ||
18907 | $as_test_x conftest$ac_exeext; then | ||
18908 | ac_cv_lib_pam_pam_set_item=yes | ||
18909 | else | ||
18910 | echo "$as_me: failed program was:" >&5 | ||
18911 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18912 | |||
18913 | ac_cv_lib_pam_pam_set_item=no | ||
18914 | fi | ||
18915 | |||
18916 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18917 | conftest$ac_exeext conftest.$ac_ext | ||
18918 | LIBS=$ac_check_lib_save_LIBS | ||
18919 | fi | ||
18920 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
18921 | echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; } | ||
18922 | if test $ac_cv_lib_pam_pam_set_item = yes; then | ||
18923 | cat >>confdefs.h <<_ACEOF | ||
18924 | #define HAVE_LIBPAM 1 | ||
18925 | _ACEOF | ||
18926 | |||
18927 | LIBS="-lpam $LIBS" | ||
18928 | |||
18929 | else | ||
18930 | { { echo "$as_me:$LINENO: error: *** libpam missing" >&5 | ||
18931 | echo "$as_me: error: *** libpam missing" >&2;} | ||
18932 | { (exit 1); exit 1; }; } | ||
18933 | fi | ||
18934 | |||
18935 | |||
18936 | for ac_func in pam_getenvlist | ||
18937 | do | ||
18938 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
18939 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
18940 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
18941 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
18942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18943 | else | ||
18944 | cat >conftest.$ac_ext <<_ACEOF | ||
18945 | /* confdefs.h. */ | ||
18946 | _ACEOF | ||
18947 | cat confdefs.h >>conftest.$ac_ext | ||
18948 | cat >>conftest.$ac_ext <<_ACEOF | ||
18949 | /* end confdefs.h. */ | ||
18950 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
18951 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
18952 | #define $ac_func innocuous_$ac_func | ||
18953 | |||
18954 | /* System header to define __stub macros and hopefully few prototypes, | ||
18955 | which can conflict with char $ac_func (); below. | ||
18956 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
18957 | <limits.h> exists even on freestanding compilers. */ | ||
18958 | |||
18959 | #ifdef __STDC__ | ||
18960 | # include <limits.h> | ||
18961 | #else | ||
18962 | # include <assert.h> | ||
18963 | #endif | ||
18964 | |||
18965 | #undef $ac_func | ||
18966 | |||
18967 | /* Override any GCC internal prototype to avoid an error. | ||
18968 | Use char because int might match the return type of a GCC | ||
18969 | builtin and then its argument prototype would still apply. */ | ||
18970 | #ifdef __cplusplus | ||
18971 | extern "C" | ||
18972 | #endif | ||
18973 | char $ac_func (); | ||
18974 | /* The GNU C library defines this for functions which it implements | ||
18975 | to always fail with ENOSYS. Some functions are actually named | ||
18976 | something starting with __ and the normal name is an alias. */ | ||
18977 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
18978 | choke me | ||
18979 | #endif | ||
18980 | |||
18981 | int | ||
18982 | main () | ||
18983 | { | ||
18984 | return $ac_func (); | ||
18985 | ; | ||
18986 | return 0; | ||
18987 | } | ||
18988 | _ACEOF | ||
18989 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18990 | if { (ac_try="$ac_link" | ||
18991 | case "(($ac_try" in | ||
18992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18993 | *) ac_try_echo=$ac_try;; | ||
18994 | esac | ||
18995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18996 | (eval "$ac_link") 2>conftest.er1 | ||
18997 | ac_status=$? | ||
18998 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18999 | rm -f conftest.er1 | ||
19000 | cat conftest.err >&5 | ||
19001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19002 | (exit $ac_status); } && { | ||
19003 | test -z "$ac_c_werror_flag" || | ||
19004 | test ! -s conftest.err | ||
19005 | } && test -s conftest$ac_exeext && | ||
19006 | $as_test_x conftest$ac_exeext; then | ||
19007 | eval "$as_ac_var=yes" | ||
19008 | else | ||
19009 | echo "$as_me: failed program was:" >&5 | ||
19010 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19011 | |||
19012 | eval "$as_ac_var=no" | ||
19013 | fi | ||
19014 | |||
19015 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19016 | conftest$ac_exeext conftest.$ac_ext | ||
19017 | fi | ||
19018 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
19019 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
19020 | echo "${ECHO_T}$ac_res" >&6; } | ||
19021 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
19022 | cat >>confdefs.h <<_ACEOF | ||
19023 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
19024 | _ACEOF | ||
19025 | |||
19026 | fi | ||
19027 | done | ||
19028 | |||
19029 | |||
19030 | for ac_func in pam_putenv | ||
19031 | do | ||
19032 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
19033 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
19034 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
19035 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
19036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19037 | else | ||
19038 | cat >conftest.$ac_ext <<_ACEOF | ||
19039 | /* confdefs.h. */ | ||
19040 | _ACEOF | ||
19041 | cat confdefs.h >>conftest.$ac_ext | ||
19042 | cat >>conftest.$ac_ext <<_ACEOF | ||
19043 | /* end confdefs.h. */ | ||
19044 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
19045 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
19046 | #define $ac_func innocuous_$ac_func | ||
19047 | |||
19048 | /* System header to define __stub macros and hopefully few prototypes, | ||
19049 | which can conflict with char $ac_func (); below. | ||
19050 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
19051 | <limits.h> exists even on freestanding compilers. */ | ||
19052 | |||
19053 | #ifdef __STDC__ | ||
19054 | # include <limits.h> | ||
19055 | #else | ||
19056 | # include <assert.h> | ||
19057 | #endif | ||
19058 | |||
19059 | #undef $ac_func | ||
19060 | |||
19061 | /* Override any GCC internal prototype to avoid an error. | ||
19062 | Use char because int might match the return type of a GCC | ||
19063 | builtin and then its argument prototype would still apply. */ | ||
19064 | #ifdef __cplusplus | ||
19065 | extern "C" | ||
19066 | #endif | ||
19067 | char $ac_func (); | ||
19068 | /* The GNU C library defines this for functions which it implements | ||
19069 | to always fail with ENOSYS. Some functions are actually named | ||
19070 | something starting with __ and the normal name is an alias. */ | ||
19071 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
19072 | choke me | ||
19073 | #endif | ||
19074 | |||
19075 | int | ||
19076 | main () | ||
19077 | { | ||
19078 | return $ac_func (); | ||
19079 | ; | ||
19080 | return 0; | ||
19081 | } | ||
19082 | _ACEOF | ||
19083 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19084 | if { (ac_try="$ac_link" | ||
19085 | case "(($ac_try" in | ||
19086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19087 | *) ac_try_echo=$ac_try;; | ||
19088 | esac | ||
19089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19090 | (eval "$ac_link") 2>conftest.er1 | ||
19091 | ac_status=$? | ||
19092 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19093 | rm -f conftest.er1 | ||
19094 | cat conftest.err >&5 | ||
19095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19096 | (exit $ac_status); } && { | ||
19097 | test -z "$ac_c_werror_flag" || | ||
19098 | test ! -s conftest.err | ||
19099 | } && test -s conftest$ac_exeext && | ||
19100 | $as_test_x conftest$ac_exeext; then | ||
19101 | eval "$as_ac_var=yes" | ||
19102 | else | ||
19103 | echo "$as_me: failed program was:" >&5 | ||
19104 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19105 | |||
19106 | eval "$as_ac_var=no" | ||
19107 | fi | ||
19108 | |||
19109 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19110 | conftest$ac_exeext conftest.$ac_ext | ||
19111 | fi | ||
19112 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
19113 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
19114 | echo "${ECHO_T}$ac_res" >&6; } | ||
19115 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
19116 | cat >>confdefs.h <<_ACEOF | ||
19117 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
19118 | _ACEOF | ||
19119 | |||
19120 | fi | ||
19121 | done | ||
19122 | |||
19123 | LIBS="$saved_LIBS" | ||
19124 | |||
19125 | PAM_MSG="yes" | ||
19126 | |||
19127 | SSHDLIBS="$SSHDLIBS -lpam" | ||
19128 | |||
19129 | cat >>confdefs.h <<\_ACEOF | ||
19130 | #define USE_PAM 1 | ||
19131 | _ACEOF | ||
19132 | |||
19133 | |||
19134 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
19135 | case "$LIBS" in | ||
19136 | *-ldl*) | ||
19137 | # libdl already in LIBS | ||
19138 | ;; | ||
19139 | *) | ||
19140 | SSHDLIBS="$SSHDLIBS -ldl" | ||
19141 | ;; | ||
19142 | esac | ||
19143 | fi | ||
19144 | fi | ||
19145 | |||
19146 | |||
19147 | fi | ||
19148 | |||
19149 | |||
19150 | # Check for older PAM | ||
19151 | if test "x$PAM_MSG" = "xyes" ; then | ||
19152 | # Check PAM strerror arguments (old PAM) | ||
19153 | { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5 | ||
19154 | echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; } | ||
19155 | cat >conftest.$ac_ext <<_ACEOF | ||
19156 | /* confdefs.h. */ | ||
19157 | _ACEOF | ||
19158 | cat confdefs.h >>conftest.$ac_ext | ||
19159 | cat >>conftest.$ac_ext <<_ACEOF | ||
19160 | /* end confdefs.h. */ | ||
19161 | |||
19162 | #include <stdlib.h> | ||
19163 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
19164 | #include <security/pam_appl.h> | ||
19165 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
19166 | #include <pam/pam_appl.h> | ||
19167 | #endif | ||
19168 | |||
19169 | int | ||
19170 | main () | ||
19171 | { | ||
19172 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
19173 | ; | ||
19174 | return 0; | ||
19175 | } | ||
19176 | _ACEOF | ||
19177 | rm -f conftest.$ac_objext | ||
19178 | if { (ac_try="$ac_compile" | ||
19179 | case "(($ac_try" in | ||
19180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19181 | *) ac_try_echo=$ac_try;; | ||
19182 | esac | ||
19183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19184 | (eval "$ac_compile") 2>conftest.er1 | ||
19185 | ac_status=$? | ||
19186 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19187 | rm -f conftest.er1 | ||
19188 | cat conftest.err >&5 | ||
19189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19190 | (exit $ac_status); } && { | ||
19191 | test -z "$ac_c_werror_flag" || | ||
19192 | test ! -s conftest.err | ||
19193 | } && test -s conftest.$ac_objext; then | ||
19194 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19195 | echo "${ECHO_T}no" >&6; } | ||
19196 | else | ||
19197 | echo "$as_me: failed program was:" >&5 | ||
19198 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19199 | |||
19200 | |||
19201 | |||
19202 | cat >>confdefs.h <<\_ACEOF | ||
19203 | #define HAVE_OLD_PAM 1 | ||
19204 | _ACEOF | ||
19205 | |||
19206 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
19207 | echo "${ECHO_T}yes" >&6; } | ||
19208 | PAM_MSG="yes (old library)" | ||
19209 | |||
19210 | |||
19211 | fi | ||
19212 | |||
19213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19214 | fi | ||
19215 | |||
19216 | # Do we want to force the use of the rand helper? | ||
19217 | |||
19218 | # Check whether --with-rand-helper was given. | ||
19219 | if test "${with_rand_helper+set}" = set; then | ||
19220 | withval=$with_rand_helper; | ||
19221 | if test "x$withval" = "xno" ; then | ||
19222 | # Force use of OpenSSL's internal RNG, even if | ||
19223 | # the previous test showed it to be unseeded. | ||
19224 | if test -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
19225 | { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5 | ||
19226 | echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;} | ||
19227 | OPENSSL_SEEDS_ITSELF=yes | ||
19228 | USE_RAND_HELPER="" | ||
19229 | fi | ||
19230 | else | ||
19231 | USE_RAND_HELPER=yes | ||
19232 | fi | ||
19233 | |||
19234 | fi | ||
19235 | |||
19236 | |||
19237 | # Which randomness source do we use? | ||
19238 | if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then | ||
19239 | # OpenSSL only | ||
19240 | |||
19241 | cat >>confdefs.h <<\_ACEOF | ||
19242 | #define OPENSSL_PRNG_ONLY 1 | ||
19243 | _ACEOF | ||
19244 | |||
19245 | RAND_MSG="OpenSSL internal ONLY" | ||
19246 | INSTALL_SSH_RAND_HELPER="" | ||
19247 | elif test ! -z "$USE_RAND_HELPER" ; then | ||
19248 | # install rand helper | ||
19249 | RAND_MSG="ssh-rand-helper" | ||
19250 | INSTALL_SSH_RAND_HELPER="yes" | ||
19251 | fi | ||
19252 | |||
19253 | |||
19254 | ### Configuration of ssh-rand-helper | ||
19255 | |||
19256 | # PRNGD TCP socket | ||
19257 | |||
19258 | # Check whether --with-prngd-port was given. | ||
19259 | if test "${with_prngd_port+set}" = set; then | ||
19260 | withval=$with_prngd_port; | ||
19261 | case "$withval" in | ||
19262 | no) | ||
19263 | withval="" | ||
19264 | ;; | ||
19265 | [0-9]*) | ||
19266 | ;; | ||
19267 | *) | ||
19268 | { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5 | ||
19269 | echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;} | ||
19270 | { (exit 1); exit 1; }; } | ||
19271 | ;; | ||
19272 | esac | ||
19273 | if test ! -z "$withval" ; then | ||
19274 | PRNGD_PORT="$withval" | ||
19275 | |||
19276 | cat >>confdefs.h <<_ACEOF | ||
19277 | #define PRNGD_PORT $PRNGD_PORT | ||
19278 | _ACEOF | ||
19279 | |||
19280 | fi | ||
19281 | |||
19282 | |||
19283 | fi | ||
19284 | |||
19285 | |||
19286 | # PRNGD Unix domain socket | ||
19287 | |||
19288 | # Check whether --with-prngd-socket was given. | ||
19289 | if test "${with_prngd_socket+set}" = set; then | ||
19290 | withval=$with_prngd_socket; | ||
19291 | case "$withval" in | ||
19292 | yes) | ||
19293 | withval="/var/run/egd-pool" | ||
19294 | ;; | ||
19295 | no) | ||
19296 | withval="" | ||
19297 | ;; | ||
19298 | /*) | ||
19299 | ;; | ||
19300 | *) | ||
19301 | { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5 | ||
19302 | echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;} | ||
19303 | { (exit 1); exit 1; }; } | ||
19304 | ;; | ||
19305 | esac | ||
19306 | |||
19307 | if test ! -z "$withval" ; then | ||
19308 | if test ! -z "$PRNGD_PORT" ; then | ||
19309 | { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5 | ||
19310 | echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;} | ||
19311 | { (exit 1); exit 1; }; } | ||
19312 | fi | ||
19313 | if test ! -r "$withval" ; then | ||
19314 | { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5 | ||
19315 | echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
19316 | fi | ||
19317 | PRNGD_SOCKET="$withval" | ||
19318 | |||
19319 | cat >>confdefs.h <<_ACEOF | ||
19320 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
19321 | _ACEOF | ||
19322 | |||
19323 | fi | ||
19324 | |||
19325 | else | ||
19326 | |||
19327 | # Check for existing socket only if we don't have a random device already | ||
19328 | if test "$USE_RAND_HELPER" = yes ; then | ||
19329 | { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5 | ||
19330 | echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; } | ||
19331 | # Insert other locations here | ||
19332 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
19333 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
19334 | PRNGD_SOCKET="$sock" | ||
19335 | cat >>confdefs.h <<_ACEOF | ||
19336 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
19337 | _ACEOF | ||
19338 | |||
19339 | break; | ||
19340 | fi | ||
19341 | done | ||
19342 | if test ! -z "$PRNGD_SOCKET" ; then | ||
19343 | { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5 | ||
19344 | echo "${ECHO_T}$PRNGD_SOCKET" >&6; } | ||
19345 | else | ||
19346 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
19347 | echo "${ECHO_T}not found" >&6; } | ||
19348 | fi | ||
19349 | fi | ||
19350 | |||
19351 | |||
19352 | fi | ||
19353 | |||
19354 | |||
19355 | # Change default command timeout for hashing entropy source | ||
19356 | entropy_timeout=200 | ||
19357 | |||
19358 | # Check whether --with-entropy-timeout was given. | ||
19359 | if test "${with_entropy_timeout+set}" = set; then | ||
19360 | withval=$with_entropy_timeout; | ||
19361 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
19362 | test "x${withval}" != "xyes"; then | ||
19363 | entropy_timeout=$withval | ||
19364 | fi | ||
19365 | |||
19366 | |||
19367 | fi | ||
19368 | |||
19369 | |||
19370 | cat >>confdefs.h <<_ACEOF | ||
19371 | #define ENTROPY_TIMEOUT_MSEC $entropy_timeout | ||
19372 | _ACEOF | ||
19373 | |||
19374 | |||
19375 | SSH_PRIVSEP_USER=sshd | ||
19376 | |||
19377 | # Check whether --with-privsep-user was given. | ||
19378 | if test "${with_privsep_user+set}" = set; then | ||
19379 | withval=$with_privsep_user; | ||
19380 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
19381 | test "x${withval}" != "xyes"; then | ||
19382 | SSH_PRIVSEP_USER=$withval | ||
19383 | fi | ||
19384 | |||
19385 | |||
19386 | fi | ||
19387 | |||
19388 | |||
19389 | cat >>confdefs.h <<_ACEOF | ||
19390 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
19391 | _ACEOF | ||
19392 | |||
19393 | |||
19394 | |||
19395 | # We do this little dance with the search path to insure | ||
19396 | # that programs that we select for use by installed programs | ||
19397 | # (which may be run by the super-user) come from trusted | ||
19398 | # locations before they come from the user's private area. | ||
19399 | # This should help avoid accidentally configuring some | ||
19400 | # random version of a program in someone's personal bin. | ||
19401 | |||
19402 | OPATH=$PATH | ||
19403 | PATH=/bin:/usr/bin | ||
19404 | test -h /bin 2> /dev/null && PATH=/usr/bin | ||
19405 | test -d /sbin && PATH=$PATH:/sbin | ||
19406 | test -d /usr/sbin && PATH=$PATH:/usr/sbin | ||
19407 | PATH=$PATH:/etc:$OPATH | ||
19408 | |||
19409 | # These programs are used by the command hashing source to gather entropy | ||
19410 | |||
19411 | # Extract the first word of "ls", so it can be a program name with args. | ||
19412 | set dummy ls; ac_word=$2 | ||
19413 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19414 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
19415 | if test "${ac_cv_path_PROG_LS+set}" = set; then | ||
19416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19417 | else | ||
19418 | case $PROG_LS in | ||
19419 | [\\/]* | ?:[\\/]*) | ||
19420 | ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path. | ||
19421 | ;; | ||
19422 | *) | ||
19423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19424 | for as_dir in $PATH | ||
19425 | do | ||
19426 | IFS=$as_save_IFS | ||
19427 | test -z "$as_dir" && as_dir=. | ||
19428 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19429 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19430 | ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext" | ||
19431 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19432 | break 2 | ||
19433 | fi | ||
19434 | done | ||
19435 | done | ||
19436 | IFS=$as_save_IFS | ||
19437 | |||
19438 | ;; | ||
19439 | esac | ||
19440 | fi | ||
19441 | PROG_LS=$ac_cv_path_PROG_LS | ||
19442 | if test -n "$PROG_LS"; then | ||
19443 | { echo "$as_me:$LINENO: result: $PROG_LS" >&5 | ||
19444 | echo "${ECHO_T}$PROG_LS" >&6; } | ||
19445 | else | ||
19446 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19447 | echo "${ECHO_T}no" >&6; } | ||
19448 | fi | ||
19449 | |||
19450 | |||
19451 | if test -z "$PROG_LS" ; then | ||
19452 | PROG_LS="undef" | ||
19453 | fi | ||
19454 | |||
19455 | |||
19456 | |||
19457 | # Extract the first word of "netstat", so it can be a program name with args. | ||
19458 | set dummy netstat; ac_word=$2 | ||
19459 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19460 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
19461 | if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then | ||
19462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19463 | else | ||
19464 | case $PROG_NETSTAT in | ||
19465 | [\\/]* | ?:[\\/]*) | ||
19466 | ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path. | ||
19467 | ;; | ||
19468 | *) | ||
19469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19470 | for as_dir in $PATH | ||
19471 | do | ||
19472 | IFS=$as_save_IFS | ||
19473 | test -z "$as_dir" && as_dir=. | ||
19474 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19475 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19476 | ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
19477 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19478 | break 2 | ||
19479 | fi | ||
19480 | done | ||
19481 | done | ||
19482 | IFS=$as_save_IFS | ||
19483 | |||
19484 | ;; | ||
19485 | esac | ||
19486 | fi | ||
19487 | PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT | ||
19488 | if test -n "$PROG_NETSTAT"; then | ||
19489 | { echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5 | ||
19490 | echo "${ECHO_T}$PROG_NETSTAT" >&6; } | ||
19491 | else | ||
19492 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19493 | echo "${ECHO_T}no" >&6; } | ||
19494 | fi | ||
19495 | |||
19496 | |||
19497 | if test -z "$PROG_NETSTAT" ; then | ||
19498 | PROG_NETSTAT="undef" | ||
19499 | fi | ||
19500 | |||
19501 | |||
19502 | |||
19503 | # Extract the first word of "arp", so it can be a program name with args. | ||
19504 | set dummy arp; ac_word=$2 | ||
19505 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19506 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
19507 | if test "${ac_cv_path_PROG_ARP+set}" = set; then | ||
19508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19509 | else | ||
19510 | case $PROG_ARP in | ||
19511 | [\\/]* | ?:[\\/]*) | ||
19512 | ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path. | ||
19513 | ;; | ||
19514 | *) | ||
19515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19516 | for as_dir in $PATH | ||
19517 | do | ||
19518 | IFS=$as_save_IFS | ||
19519 | test -z "$as_dir" && as_dir=. | ||
19520 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19521 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19522 | ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext" | ||
19523 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19524 | break 2 | ||
19525 | fi | ||
19526 | done | ||
19527 | done | ||
19528 | IFS=$as_save_IFS | ||
19529 | |||
19530 | ;; | ||
19531 | esac | ||
19532 | fi | ||
19533 | PROG_ARP=$ac_cv_path_PROG_ARP | ||
19534 | if test -n "$PROG_ARP"; then | ||
19535 | { echo "$as_me:$LINENO: result: $PROG_ARP" >&5 | ||
19536 | echo "${ECHO_T}$PROG_ARP" >&6; } | ||
19537 | else | ||
19538 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19539 | echo "${ECHO_T}no" >&6; } | ||
19540 | fi | ||
19541 | |||
19542 | |||
19543 | if test -z "$PROG_ARP" ; then | ||
19544 | PROG_ARP="undef" | ||
19545 | fi | ||
19546 | |||
19547 | |||
19548 | |||
19549 | # Extract the first word of "ifconfig", so it can be a program name with args. | ||
19550 | set dummy ifconfig; ac_word=$2 | ||
19551 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19552 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
19553 | if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then | ||
19554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19555 | else | ||
19556 | case $PROG_IFCONFIG in | ||
19557 | [\\/]* | ?:[\\/]*) | ||
19558 | ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path. | ||
19559 | ;; | ||
19560 | *) | ||
19561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19562 | for as_dir in $PATH | ||
19563 | do | ||
19564 | IFS=$as_save_IFS | ||
19565 | test -z "$as_dir" && as_dir=. | ||
19566 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19567 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19568 | ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
19569 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19570 | break 2 | ||
19571 | fi | ||
19572 | done | ||
19573 | done | ||
19574 | IFS=$as_save_IFS | ||
19575 | |||
19576 | ;; | ||
19577 | esac | ||
19578 | fi | ||
19579 | PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG | ||
19580 | if test -n "$PROG_IFCONFIG"; then | ||
19581 | { echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5 | ||
19582 | echo "${ECHO_T}$PROG_IFCONFIG" >&6; } | ||
19583 | else | ||
19584 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19585 | echo "${ECHO_T}no" >&6; } | ||
19586 | fi | ||
19587 | |||
19588 | |||
19589 | if test -z "$PROG_IFCONFIG" ; then | ||
19590 | PROG_IFCONFIG="undef" | ||
19591 | fi | ||
19592 | |||
19593 | |||
19594 | |||
19595 | # Extract the first word of "jstat", so it can be a program name with args. | ||
19596 | set dummy jstat; ac_word=$2 | ||
19597 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19598 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
19599 | if test "${ac_cv_path_PROG_JSTAT+set}" = set; then | ||
19600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19601 | else | ||
19602 | case $PROG_JSTAT in | ||
19603 | [\\/]* | ?:[\\/]*) | ||
19604 | ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path. | ||
19605 | ;; | ||
19606 | *) | ||
19607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19608 | for as_dir in $PATH | ||
19609 | do | ||
19610 | IFS=$as_save_IFS | ||
19611 | test -z "$as_dir" && as_dir=. | ||
19612 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19613 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19614 | ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
19615 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19616 | break 2 | ||
19617 | fi | ||
19618 | done | ||
19619 | done | ||
19620 | IFS=$as_save_IFS | ||
19621 | |||
19622 | ;; | ||
19623 | esac | ||
19624 | fi | ||
19625 | PROG_JSTAT=$ac_cv_path_PROG_JSTAT | ||
19626 | if test -n "$PROG_JSTAT"; then | ||
19627 | { echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5 | ||
19628 | echo "${ECHO_T}$PROG_JSTAT" >&6; } | ||
19629 | else | ||
19630 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19631 | echo "${ECHO_T}no" >&6; } | ||
19632 | fi | ||
19633 | |||
19634 | |||
19635 | if test -z "$PROG_JSTAT" ; then | ||
19636 | PROG_JSTAT="undef" | ||
19637 | fi | ||
19638 | |||
19639 | |||
19640 | |||
19641 | # Extract the first word of "ps", so it can be a program name with args. | ||
19642 | set dummy ps; ac_word=$2 | ||
19643 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19644 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
19645 | if test "${ac_cv_path_PROG_PS+set}" = set; then | ||
19646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19647 | else | ||
19648 | case $PROG_PS in | ||
19649 | [\\/]* | ?:[\\/]*) | ||
19650 | ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path. | ||
19651 | ;; | ||
19652 | *) | ||
19653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19654 | for as_dir in $PATH | ||
19655 | do | ||
19656 | IFS=$as_save_IFS | ||
19657 | test -z "$as_dir" && as_dir=. | ||
19658 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19659 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19660 | ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext" | ||
19661 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19662 | break 2 | ||
19663 | fi | ||
19664 | done | ||
19665 | done | ||
19666 | IFS=$as_save_IFS | ||
19667 | |||
19668 | ;; | ||
19669 | esac | ||
19670 | fi | ||
19671 | PROG_PS=$ac_cv_path_PROG_PS | ||
19672 | if test -n "$PROG_PS"; then | ||
19673 | { echo "$as_me:$LINENO: result: $PROG_PS" >&5 | ||
19674 | echo "${ECHO_T}$PROG_PS" >&6; } | ||
19675 | else | ||
19676 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19677 | echo "${ECHO_T}no" >&6; } | ||
19678 | fi | ||
19679 | |||
19680 | |||
19681 | if test -z "$PROG_PS" ; then | ||
19682 | PROG_PS="undef" | ||
19683 | fi | ||
19684 | |||
19685 | |||
19686 | |||
19687 | # Extract the first word of "sar", so it can be a program name with args. | ||
19688 | set dummy sar; ac_word=$2 | ||
19689 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19690 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
19691 | if test "${ac_cv_path_PROG_SAR+set}" = set; then | ||
19692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19693 | else | ||
19694 | case $PROG_SAR in | ||
19695 | [\\/]* | ?:[\\/]*) | ||
19696 | ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path. | ||
19697 | ;; | ||
19698 | *) | ||
19699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19700 | for as_dir in $PATH | ||
19701 | do | ||
19702 | IFS=$as_save_IFS | ||
19703 | test -z "$as_dir" && as_dir=. | ||
19704 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19705 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19706 | ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext" | ||
19707 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19708 | break 2 | ||
19709 | fi | ||
19710 | done | ||
19711 | done | ||
19712 | IFS=$as_save_IFS | ||
19713 | |||
19714 | ;; | ||
19715 | esac | ||
19716 | fi | ||
19717 | PROG_SAR=$ac_cv_path_PROG_SAR | ||
19718 | if test -n "$PROG_SAR"; then | ||
19719 | { echo "$as_me:$LINENO: result: $PROG_SAR" >&5 | ||
19720 | echo "${ECHO_T}$PROG_SAR" >&6; } | ||
19721 | else | ||
19722 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19723 | echo "${ECHO_T}no" >&6; } | ||
19724 | fi | ||
19725 | |||
19726 | |||
19727 | if test -z "$PROG_SAR" ; then | ||
19728 | PROG_SAR="undef" | ||
19729 | fi | ||
19730 | |||
19731 | |||
19732 | |||
19733 | # Extract the first word of "w", so it can be a program name with args. | ||
19734 | set dummy w; ac_word=$2 | ||
19735 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19736 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
19737 | if test "${ac_cv_path_PROG_W+set}" = set; then | ||
19738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19739 | else | ||
19740 | case $PROG_W in | ||
19741 | [\\/]* | ?:[\\/]*) | ||
19742 | ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path. | ||
19743 | ;; | ||
19744 | *) | ||
19745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19746 | for as_dir in $PATH | ||
19747 | do | ||
19748 | IFS=$as_save_IFS | ||
19749 | test -z "$as_dir" && as_dir=. | ||
19750 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19751 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19752 | ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext" | ||
19753 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19754 | break 2 | ||
19755 | fi | ||
19756 | done | ||
19757 | done | ||
19758 | IFS=$as_save_IFS | ||
19759 | |||
19760 | ;; | ||
19761 | esac | ||
19762 | fi | ||
19763 | PROG_W=$ac_cv_path_PROG_W | ||
19764 | if test -n "$PROG_W"; then | ||
19765 | { echo "$as_me:$LINENO: result: $PROG_W" >&5 | ||
19766 | echo "${ECHO_T}$PROG_W" >&6; } | ||
19767 | else | ||
19768 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19769 | echo "${ECHO_T}no" >&6; } | ||
19770 | fi | ||
19771 | |||
19772 | |||
19773 | if test -z "$PROG_W" ; then | ||
19774 | PROG_W="undef" | ||
19775 | fi | ||
19776 | |||
19777 | |||
19778 | |||
19779 | # Extract the first word of "who", so it can be a program name with args. | ||
19780 | set dummy who; ac_word=$2 | ||
19781 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19782 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
19783 | if test "${ac_cv_path_PROG_WHO+set}" = set; then | ||
19784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19785 | else | ||
19786 | case $PROG_WHO in | ||
19787 | [\\/]* | ?:[\\/]*) | ||
19788 | ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path. | ||
19789 | ;; | ||
19790 | *) | ||
19791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19792 | for as_dir in $PATH | ||
19793 | do | ||
19794 | IFS=$as_save_IFS | ||
19795 | test -z "$as_dir" && as_dir=. | ||
19796 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19797 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19798 | ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext" | ||
19799 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19800 | break 2 | ||
19801 | fi | ||
19802 | done | ||
19803 | done | ||
19804 | IFS=$as_save_IFS | ||
19805 | |||
19806 | ;; | ||
19807 | esac | ||
19808 | fi | ||
19809 | PROG_WHO=$ac_cv_path_PROG_WHO | ||
19810 | if test -n "$PROG_WHO"; then | ||
19811 | { echo "$as_me:$LINENO: result: $PROG_WHO" >&5 | ||
19812 | echo "${ECHO_T}$PROG_WHO" >&6; } | ||
19813 | else | ||
19814 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19815 | echo "${ECHO_T}no" >&6; } | ||
19816 | fi | ||
19817 | |||
19818 | |||
19819 | if test -z "$PROG_WHO" ; then | ||
19820 | PROG_WHO="undef" | ||
19821 | fi | ||
19822 | |||
19823 | |||
19824 | |||
19825 | # Extract the first word of "last", so it can be a program name with args. | ||
19826 | set dummy last; ac_word=$2 | ||
19827 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19828 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
19829 | if test "${ac_cv_path_PROG_LAST+set}" = set; then | ||
19830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19831 | else | ||
19832 | case $PROG_LAST in | ||
19833 | [\\/]* | ?:[\\/]*) | ||
19834 | ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path. | ||
19835 | ;; | ||
19836 | *) | ||
19837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19838 | for as_dir in $PATH | ||
19839 | do | ||
19840 | IFS=$as_save_IFS | ||
19841 | test -z "$as_dir" && as_dir=. | ||
19842 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19843 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19844 | ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext" | ||
19845 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19846 | break 2 | ||
19847 | fi | ||
19848 | done | ||
19849 | done | ||
19850 | IFS=$as_save_IFS | ||
19851 | |||
19852 | ;; | ||
19853 | esac | ||
19854 | fi | ||
19855 | PROG_LAST=$ac_cv_path_PROG_LAST | ||
19856 | if test -n "$PROG_LAST"; then | ||
19857 | { echo "$as_me:$LINENO: result: $PROG_LAST" >&5 | ||
19858 | echo "${ECHO_T}$PROG_LAST" >&6; } | ||
19859 | else | ||
19860 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19861 | echo "${ECHO_T}no" >&6; } | ||
19862 | fi | ||
19863 | |||
19864 | |||
19865 | if test -z "$PROG_LAST" ; then | ||
19866 | PROG_LAST="undef" | ||
19867 | fi | ||
19868 | |||
19869 | |||
19870 | |||
19871 | # Extract the first word of "lastlog", so it can be a program name with args. | ||
19872 | set dummy lastlog; ac_word=$2 | ||
19873 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19874 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
19875 | if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then | ||
19876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19877 | else | ||
19878 | case $PROG_LASTLOG in | ||
19879 | [\\/]* | ?:[\\/]*) | ||
19880 | ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path. | ||
19881 | ;; | ||
19882 | *) | ||
19883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19884 | for as_dir in $PATH | ||
19885 | do | ||
19886 | IFS=$as_save_IFS | ||
19887 | test -z "$as_dir" && as_dir=. | ||
19888 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19889 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19890 | ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext" | ||
19891 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19892 | break 2 | ||
19893 | fi | ||
19894 | done | ||
19895 | done | ||
19896 | IFS=$as_save_IFS | ||
19897 | |||
19898 | ;; | ||
19899 | esac | ||
19900 | fi | ||
19901 | PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG | ||
19902 | if test -n "$PROG_LASTLOG"; then | ||
19903 | { echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5 | ||
19904 | echo "${ECHO_T}$PROG_LASTLOG" >&6; } | ||
19905 | else | ||
19906 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19907 | echo "${ECHO_T}no" >&6; } | ||
19908 | fi | ||
19909 | |||
19910 | |||
19911 | if test -z "$PROG_LASTLOG" ; then | ||
19912 | PROG_LASTLOG="undef" | ||
19913 | fi | ||
19914 | |||
19915 | |||
19916 | |||
19917 | # Extract the first word of "df", so it can be a program name with args. | ||
19918 | set dummy df; ac_word=$2 | ||
19919 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19920 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
19921 | if test "${ac_cv_path_PROG_DF+set}" = set; then | ||
19922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19923 | else | ||
19924 | case $PROG_DF in | ||
19925 | [\\/]* | ?:[\\/]*) | ||
19926 | ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path. | ||
19927 | ;; | ||
19928 | *) | ||
19929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19930 | for as_dir in $PATH | ||
19931 | do | ||
19932 | IFS=$as_save_IFS | ||
19933 | test -z "$as_dir" && as_dir=. | ||
19934 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19935 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19936 | ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext" | ||
19937 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19938 | break 2 | ||
19939 | fi | ||
19940 | done | ||
19941 | done | ||
19942 | IFS=$as_save_IFS | ||
19943 | |||
19944 | ;; | ||
19945 | esac | ||
19946 | fi | ||
19947 | PROG_DF=$ac_cv_path_PROG_DF | ||
19948 | if test -n "$PROG_DF"; then | ||
19949 | { echo "$as_me:$LINENO: result: $PROG_DF" >&5 | ||
19950 | echo "${ECHO_T}$PROG_DF" >&6; } | ||
19951 | else | ||
19952 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19953 | echo "${ECHO_T}no" >&6; } | ||
19954 | fi | ||
19955 | |||
19956 | |||
19957 | if test -z "$PROG_DF" ; then | ||
19958 | PROG_DF="undef" | ||
19959 | fi | ||
19960 | |||
19961 | |||
19962 | |||
19963 | # Extract the first word of "vmstat", so it can be a program name with args. | ||
19964 | set dummy vmstat; ac_word=$2 | ||
19965 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19966 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
19967 | if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then | ||
19968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19969 | else | ||
19970 | case $PROG_VMSTAT in | ||
19971 | [\\/]* | ?:[\\/]*) | ||
19972 | ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path. | ||
19973 | ;; | ||
19974 | *) | ||
19975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19976 | for as_dir in $PATH | ||
19977 | do | ||
19978 | IFS=$as_save_IFS | ||
19979 | test -z "$as_dir" && as_dir=. | ||
19980 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19981 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19982 | ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
19983 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19984 | break 2 | ||
19985 | fi | ||
19986 | done | ||
19987 | done | ||
19988 | IFS=$as_save_IFS | ||
19989 | |||
19990 | ;; | ||
19991 | esac | ||
19992 | fi | ||
19993 | PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT | ||
19994 | if test -n "$PROG_VMSTAT"; then | ||
19995 | { echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5 | ||
19996 | echo "${ECHO_T}$PROG_VMSTAT" >&6; } | ||
19997 | else | ||
19998 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19999 | echo "${ECHO_T}no" >&6; } | ||
20000 | fi | ||
20001 | |||
20002 | |||
20003 | if test -z "$PROG_VMSTAT" ; then | ||
20004 | PROG_VMSTAT="undef" | ||
20005 | fi | ||
20006 | |||
20007 | |||
20008 | |||
20009 | # Extract the first word of "uptime", so it can be a program name with args. | ||
20010 | set dummy uptime; ac_word=$2 | ||
20011 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
20012 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
20013 | if test "${ac_cv_path_PROG_UPTIME+set}" = set; then | ||
20014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20015 | else | ||
20016 | case $PROG_UPTIME in | ||
20017 | [\\/]* | ?:[\\/]*) | ||
20018 | ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path. | ||
20019 | ;; | ||
20020 | *) | ||
20021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
20022 | for as_dir in $PATH | ||
20023 | do | ||
20024 | IFS=$as_save_IFS | ||
20025 | test -z "$as_dir" && as_dir=. | ||
20026 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
20027 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
20028 | ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext" | ||
20029 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
20030 | break 2 | ||
20031 | fi | ||
20032 | done | ||
20033 | done | ||
20034 | IFS=$as_save_IFS | ||
20035 | |||
20036 | ;; | ||
20037 | esac | ||
20038 | fi | ||
20039 | PROG_UPTIME=$ac_cv_path_PROG_UPTIME | ||
20040 | if test -n "$PROG_UPTIME"; then | ||
20041 | { echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5 | ||
20042 | echo "${ECHO_T}$PROG_UPTIME" >&6; } | ||
20043 | else | ||
20044 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20045 | echo "${ECHO_T}no" >&6; } | ||
20046 | fi | ||
20047 | |||
20048 | |||
20049 | if test -z "$PROG_UPTIME" ; then | ||
20050 | PROG_UPTIME="undef" | ||
20051 | fi | ||
20052 | |||
20053 | |||
20054 | |||
20055 | # Extract the first word of "ipcs", so it can be a program name with args. | ||
20056 | set dummy ipcs; ac_word=$2 | ||
20057 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
20058 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
20059 | if test "${ac_cv_path_PROG_IPCS+set}" = set; then | ||
20060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20061 | else | ||
20062 | case $PROG_IPCS in | ||
20063 | [\\/]* | ?:[\\/]*) | ||
20064 | ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path. | ||
20065 | ;; | ||
20066 | *) | ||
20067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
20068 | for as_dir in $PATH | ||
20069 | do | ||
20070 | IFS=$as_save_IFS | ||
20071 | test -z "$as_dir" && as_dir=. | ||
20072 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
20073 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
20074 | ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext" | ||
20075 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
20076 | break 2 | ||
20077 | fi | ||
20078 | done | ||
20079 | done | ||
20080 | IFS=$as_save_IFS | ||
20081 | |||
20082 | ;; | ||
20083 | esac | ||
20084 | fi | ||
20085 | PROG_IPCS=$ac_cv_path_PROG_IPCS | ||
20086 | if test -n "$PROG_IPCS"; then | ||
20087 | { echo "$as_me:$LINENO: result: $PROG_IPCS" >&5 | ||
20088 | echo "${ECHO_T}$PROG_IPCS" >&6; } | ||
20089 | else | ||
20090 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20091 | echo "${ECHO_T}no" >&6; } | ||
20092 | fi | ||
20093 | |||
20094 | |||
20095 | if test -z "$PROG_IPCS" ; then | ||
20096 | PROG_IPCS="undef" | ||
20097 | fi | ||
20098 | |||
20099 | |||
20100 | |||
20101 | # Extract the first word of "tail", so it can be a program name with args. | ||
20102 | set dummy tail; ac_word=$2 | ||
20103 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
20104 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
20105 | if test "${ac_cv_path_PROG_TAIL+set}" = set; then | ||
20106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20107 | else | ||
20108 | case $PROG_TAIL in | ||
20109 | [\\/]* | ?:[\\/]*) | ||
20110 | ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path. | ||
20111 | ;; | ||
20112 | *) | ||
20113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
20114 | for as_dir in $PATH | ||
20115 | do | ||
20116 | IFS=$as_save_IFS | ||
20117 | test -z "$as_dir" && as_dir=. | ||
20118 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
20119 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
20120 | ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext" | ||
20121 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
20122 | break 2 | ||
20123 | fi | ||
20124 | done | ||
20125 | done | ||
20126 | IFS=$as_save_IFS | ||
20127 | |||
20128 | ;; | ||
20129 | esac | ||
20130 | fi | ||
20131 | PROG_TAIL=$ac_cv_path_PROG_TAIL | ||
20132 | if test -n "$PROG_TAIL"; then | ||
20133 | { echo "$as_me:$LINENO: result: $PROG_TAIL" >&5 | ||
20134 | echo "${ECHO_T}$PROG_TAIL" >&6; } | ||
20135 | else | ||
20136 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20137 | echo "${ECHO_T}no" >&6; } | ||
20138 | fi | ||
20139 | |||
20140 | |||
20141 | if test -z "$PROG_TAIL" ; then | ||
20142 | PROG_TAIL="undef" | ||
20143 | fi | ||
20144 | |||
20145 | |||
20146 | # restore PATH | ||
20147 | PATH=$OPATH | ||
20148 | |||
20149 | # Where does ssh-rand-helper get its randomness from? | ||
20150 | INSTALL_SSH_PRNG_CMDS="" | ||
20151 | if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then | ||
20152 | if test ! -z "$PRNGD_PORT" ; then | ||
20153 | RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT" | ||
20154 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
20155 | RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\"" | ||
20156 | else | ||
20157 | RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)" | ||
20158 | RAND_HELPER_CMDHASH=yes | ||
20159 | INSTALL_SSH_PRNG_CMDS="yes" | ||
20160 | fi | ||
20161 | fi | ||
20162 | |||
20163 | |||
20164 | |||
20165 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
20166 | if test ! -z "$SONY" ; then | ||
20167 | LIBS="$LIBS -liberty"; | ||
20168 | fi | ||
20169 | |||
20170 | # Check for long long datatypes | ||
20171 | { echo "$as_me:$LINENO: checking for long long" >&5 | ||
20172 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } | ||
20173 | if test "${ac_cv_type_long_long+set}" = set; then | ||
20174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20175 | else | ||
20176 | cat >conftest.$ac_ext <<_ACEOF | ||
20177 | /* confdefs.h. */ | ||
20178 | _ACEOF | ||
20179 | cat confdefs.h >>conftest.$ac_ext | ||
20180 | cat >>conftest.$ac_ext <<_ACEOF | ||
20181 | /* end confdefs.h. */ | ||
20182 | $ac_includes_default | ||
20183 | typedef long long ac__type_new_; | ||
20184 | int | ||
20185 | main () | ||
20186 | { | ||
20187 | if ((ac__type_new_ *) 0) | ||
20188 | return 0; | ||
20189 | if (sizeof (ac__type_new_)) | ||
20190 | return 0; | ||
20191 | ; | ||
20192 | return 0; | ||
20193 | } | ||
20194 | _ACEOF | ||
20195 | rm -f conftest.$ac_objext | ||
20196 | if { (ac_try="$ac_compile" | ||
20197 | case "(($ac_try" in | ||
20198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20199 | *) ac_try_echo=$ac_try;; | ||
20200 | esac | ||
20201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20202 | (eval "$ac_compile") 2>conftest.er1 | ||
20203 | ac_status=$? | ||
20204 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20205 | rm -f conftest.er1 | ||
20206 | cat conftest.err >&5 | ||
20207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20208 | (exit $ac_status); } && { | ||
20209 | test -z "$ac_c_werror_flag" || | ||
20210 | test ! -s conftest.err | ||
20211 | } && test -s conftest.$ac_objext; then | ||
20212 | ac_cv_type_long_long=yes | ||
20213 | else | ||
20214 | echo "$as_me: failed program was:" >&5 | ||
20215 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20216 | |||
20217 | ac_cv_type_long_long=no | ||
20218 | fi | ||
20219 | |||
20220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20221 | fi | ||
20222 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | ||
20223 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } | ||
20224 | if test $ac_cv_type_long_long = yes; then | ||
20225 | |||
20226 | cat >>confdefs.h <<_ACEOF | ||
20227 | #define HAVE_LONG_LONG 1 | ||
20228 | _ACEOF | ||
20229 | |||
20230 | |||
20231 | fi | ||
20232 | { echo "$as_me:$LINENO: checking for unsigned long long" >&5 | ||
20233 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } | ||
20234 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then | ||
20235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20236 | else | ||
20237 | cat >conftest.$ac_ext <<_ACEOF | ||
20238 | /* confdefs.h. */ | ||
20239 | _ACEOF | ||
20240 | cat confdefs.h >>conftest.$ac_ext | ||
20241 | cat >>conftest.$ac_ext <<_ACEOF | ||
20242 | /* end confdefs.h. */ | ||
20243 | $ac_includes_default | ||
20244 | typedef unsigned long long ac__type_new_; | ||
20245 | int | ||
20246 | main () | ||
20247 | { | ||
20248 | if ((ac__type_new_ *) 0) | ||
20249 | return 0; | ||
20250 | if (sizeof (ac__type_new_)) | ||
20251 | return 0; | ||
20252 | ; | ||
20253 | return 0; | ||
20254 | } | ||
20255 | _ACEOF | ||
20256 | rm -f conftest.$ac_objext | ||
20257 | if { (ac_try="$ac_compile" | ||
20258 | case "(($ac_try" in | ||
20259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20260 | *) ac_try_echo=$ac_try;; | ||
20261 | esac | ||
20262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20263 | (eval "$ac_compile") 2>conftest.er1 | ||
20264 | ac_status=$? | ||
20265 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20266 | rm -f conftest.er1 | ||
20267 | cat conftest.err >&5 | ||
20268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20269 | (exit $ac_status); } && { | ||
20270 | test -z "$ac_c_werror_flag" || | ||
20271 | test ! -s conftest.err | ||
20272 | } && test -s conftest.$ac_objext; then | ||
20273 | ac_cv_type_unsigned_long_long=yes | ||
20274 | else | ||
20275 | echo "$as_me: failed program was:" >&5 | ||
20276 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20277 | |||
20278 | ac_cv_type_unsigned_long_long=no | ||
20279 | fi | ||
20280 | |||
20281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20282 | fi | ||
20283 | { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 | ||
20284 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } | ||
20285 | if test $ac_cv_type_unsigned_long_long = yes; then | ||
20286 | |||
20287 | cat >>confdefs.h <<_ACEOF | ||
20288 | #define HAVE_UNSIGNED_LONG_LONG 1 | ||
20289 | _ACEOF | ||
20290 | |||
20291 | |||
20292 | fi | ||
20293 | { echo "$as_me:$LINENO: checking for long double" >&5 | ||
20294 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } | ||
20295 | if test "${ac_cv_type_long_double+set}" = set; then | ||
20296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20297 | else | ||
20298 | cat >conftest.$ac_ext <<_ACEOF | ||
20299 | /* confdefs.h. */ | ||
20300 | _ACEOF | ||
20301 | cat confdefs.h >>conftest.$ac_ext | ||
20302 | cat >>conftest.$ac_ext <<_ACEOF | ||
20303 | /* end confdefs.h. */ | ||
20304 | $ac_includes_default | ||
20305 | typedef long double ac__type_new_; | ||
20306 | int | ||
20307 | main () | ||
20308 | { | ||
20309 | if ((ac__type_new_ *) 0) | ||
20310 | return 0; | ||
20311 | if (sizeof (ac__type_new_)) | ||
20312 | return 0; | ||
20313 | ; | ||
20314 | return 0; | ||
20315 | } | ||
20316 | _ACEOF | ||
20317 | rm -f conftest.$ac_objext | ||
20318 | if { (ac_try="$ac_compile" | ||
20319 | case "(($ac_try" in | ||
20320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20321 | *) ac_try_echo=$ac_try;; | ||
20322 | esac | ||
20323 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20324 | (eval "$ac_compile") 2>conftest.er1 | ||
20325 | ac_status=$? | ||
20326 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20327 | rm -f conftest.er1 | ||
20328 | cat conftest.err >&5 | ||
20329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20330 | (exit $ac_status); } && { | ||
20331 | test -z "$ac_c_werror_flag" || | ||
20332 | test ! -s conftest.err | ||
20333 | } && test -s conftest.$ac_objext; then | ||
20334 | ac_cv_type_long_double=yes | ||
20335 | else | ||
20336 | echo "$as_me: failed program was:" >&5 | ||
20337 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20338 | |||
20339 | ac_cv_type_long_double=no | ||
20340 | fi | ||
20341 | |||
20342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20343 | fi | ||
20344 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 | ||
20345 | echo "${ECHO_T}$ac_cv_type_long_double" >&6; } | ||
20346 | if test $ac_cv_type_long_double = yes; then | ||
20347 | |||
20348 | cat >>confdefs.h <<_ACEOF | ||
20349 | #define HAVE_LONG_DOUBLE 1 | ||
20350 | _ACEOF | ||
20351 | |||
20352 | |||
20353 | fi | ||
20354 | |||
20355 | |||
20356 | # Check datatype sizes | ||
20357 | { echo "$as_me:$LINENO: checking for char" >&5 | ||
20358 | echo $ECHO_N "checking for char... $ECHO_C" >&6; } | ||
20359 | if test "${ac_cv_type_char+set}" = set; then | ||
20360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20361 | else | ||
20362 | cat >conftest.$ac_ext <<_ACEOF | ||
20363 | /* confdefs.h. */ | ||
20364 | _ACEOF | ||
20365 | cat confdefs.h >>conftest.$ac_ext | ||
20366 | cat >>conftest.$ac_ext <<_ACEOF | ||
20367 | /* end confdefs.h. */ | ||
20368 | $ac_includes_default | ||
20369 | typedef char ac__type_new_; | ||
20370 | int | ||
20371 | main () | ||
20372 | { | ||
20373 | if ((ac__type_new_ *) 0) | ||
20374 | return 0; | ||
20375 | if (sizeof (ac__type_new_)) | ||
20376 | return 0; | ||
20377 | ; | ||
20378 | return 0; | ||
20379 | } | ||
20380 | _ACEOF | ||
20381 | rm -f conftest.$ac_objext | ||
20382 | if { (ac_try="$ac_compile" | ||
20383 | case "(($ac_try" in | ||
20384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20385 | *) ac_try_echo=$ac_try;; | ||
20386 | esac | ||
20387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20388 | (eval "$ac_compile") 2>conftest.er1 | ||
20389 | ac_status=$? | ||
20390 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20391 | rm -f conftest.er1 | ||
20392 | cat conftest.err >&5 | ||
20393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20394 | (exit $ac_status); } && { | ||
20395 | test -z "$ac_c_werror_flag" || | ||
20396 | test ! -s conftest.err | ||
20397 | } && test -s conftest.$ac_objext; then | ||
20398 | ac_cv_type_char=yes | ||
20399 | else | ||
20400 | echo "$as_me: failed program was:" >&5 | ||
20401 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20402 | |||
20403 | ac_cv_type_char=no | ||
20404 | fi | ||
20405 | |||
20406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20407 | fi | ||
20408 | { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | ||
20409 | echo "${ECHO_T}$ac_cv_type_char" >&6; } | ||
20410 | |||
20411 | # The cast to long int works around a bug in the HP C Compiler | ||
20412 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
20413 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
20414 | # This bug is HP SR number 8606223364. | ||
20415 | { echo "$as_me:$LINENO: checking size of char" >&5 | ||
20416 | echo $ECHO_N "checking size of char... $ECHO_C" >&6; } | ||
20417 | if test "${ac_cv_sizeof_char+set}" = set; then | ||
20418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20419 | else | ||
20420 | if test "$cross_compiling" = yes; then | ||
20421 | # Depending upon the size, compute the lo and hi bounds. | ||
20422 | cat >conftest.$ac_ext <<_ACEOF | ||
20423 | /* confdefs.h. */ | ||
20424 | _ACEOF | ||
20425 | cat confdefs.h >>conftest.$ac_ext | ||
20426 | cat >>conftest.$ac_ext <<_ACEOF | ||
20427 | /* end confdefs.h. */ | ||
20428 | $ac_includes_default | ||
20429 | typedef char ac__type_sizeof_; | ||
20430 | int | ||
20431 | main () | ||
20432 | { | ||
20433 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
20434 | test_array [0] = 0 | ||
20435 | |||
20436 | ; | ||
20437 | return 0; | ||
20438 | } | ||
20439 | _ACEOF | ||
20440 | rm -f conftest.$ac_objext | ||
20441 | if { (ac_try="$ac_compile" | ||
20442 | case "(($ac_try" in | ||
20443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20444 | *) ac_try_echo=$ac_try;; | ||
20445 | esac | ||
20446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20447 | (eval "$ac_compile") 2>conftest.er1 | ||
20448 | ac_status=$? | ||
20449 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20450 | rm -f conftest.er1 | ||
20451 | cat conftest.err >&5 | ||
20452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20453 | (exit $ac_status); } && { | ||
20454 | test -z "$ac_c_werror_flag" || | ||
20455 | test ! -s conftest.err | ||
20456 | } && test -s conftest.$ac_objext; then | ||
20457 | ac_lo=0 ac_mid=0 | ||
20458 | while :; do | ||
20459 | cat >conftest.$ac_ext <<_ACEOF | ||
20460 | /* confdefs.h. */ | ||
20461 | _ACEOF | ||
20462 | cat confdefs.h >>conftest.$ac_ext | ||
20463 | cat >>conftest.$ac_ext <<_ACEOF | ||
20464 | /* end confdefs.h. */ | ||
20465 | $ac_includes_default | ||
20466 | typedef char ac__type_sizeof_; | ||
20467 | int | ||
20468 | main () | ||
20469 | { | ||
20470 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
20471 | test_array [0] = 0 | ||
20472 | |||
20473 | ; | ||
20474 | return 0; | ||
20475 | } | ||
20476 | _ACEOF | ||
20477 | rm -f conftest.$ac_objext | ||
20478 | if { (ac_try="$ac_compile" | ||
20479 | case "(($ac_try" in | ||
20480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20481 | *) ac_try_echo=$ac_try;; | ||
20482 | esac | ||
20483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20484 | (eval "$ac_compile") 2>conftest.er1 | ||
20485 | ac_status=$? | ||
20486 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20487 | rm -f conftest.er1 | ||
20488 | cat conftest.err >&5 | ||
20489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20490 | (exit $ac_status); } && { | ||
20491 | test -z "$ac_c_werror_flag" || | ||
20492 | test ! -s conftest.err | ||
20493 | } && test -s conftest.$ac_objext; then | ||
20494 | ac_hi=$ac_mid; break | ||
20495 | else | ||
20496 | echo "$as_me: failed program was:" >&5 | ||
20497 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20498 | |||
20499 | ac_lo=`expr $ac_mid + 1` | ||
20500 | if test $ac_lo -le $ac_mid; then | ||
20501 | ac_lo= ac_hi= | ||
20502 | break | ||
20503 | fi | ||
20504 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
20505 | fi | ||
20506 | |||
20507 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20508 | done | ||
20509 | else | ||
20510 | echo "$as_me: failed program was:" >&5 | ||
20511 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20512 | |||
20513 | cat >conftest.$ac_ext <<_ACEOF | ||
20514 | /* confdefs.h. */ | ||
20515 | _ACEOF | ||
20516 | cat confdefs.h >>conftest.$ac_ext | ||
20517 | cat >>conftest.$ac_ext <<_ACEOF | ||
20518 | /* end confdefs.h. */ | ||
20519 | $ac_includes_default | ||
20520 | typedef char ac__type_sizeof_; | ||
20521 | int | ||
20522 | main () | ||
20523 | { | ||
20524 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
20525 | test_array [0] = 0 | ||
20526 | |||
20527 | ; | ||
20528 | return 0; | ||
20529 | } | ||
20530 | _ACEOF | ||
20531 | rm -f conftest.$ac_objext | ||
20532 | if { (ac_try="$ac_compile" | ||
20533 | case "(($ac_try" in | ||
20534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20535 | *) ac_try_echo=$ac_try;; | ||
20536 | esac | ||
20537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20538 | (eval "$ac_compile") 2>conftest.er1 | ||
20539 | ac_status=$? | ||
20540 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20541 | rm -f conftest.er1 | ||
20542 | cat conftest.err >&5 | ||
20543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20544 | (exit $ac_status); } && { | ||
20545 | test -z "$ac_c_werror_flag" || | ||
20546 | test ! -s conftest.err | ||
20547 | } && test -s conftest.$ac_objext; then | ||
20548 | ac_hi=-1 ac_mid=-1 | ||
20549 | while :; do | ||
20550 | cat >conftest.$ac_ext <<_ACEOF | ||
20551 | /* confdefs.h. */ | ||
20552 | _ACEOF | ||
20553 | cat confdefs.h >>conftest.$ac_ext | ||
20554 | cat >>conftest.$ac_ext <<_ACEOF | ||
20555 | /* end confdefs.h. */ | ||
20556 | $ac_includes_default | ||
20557 | typedef char ac__type_sizeof_; | ||
20558 | int | ||
20559 | main () | ||
20560 | { | ||
20561 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
20562 | test_array [0] = 0 | ||
20563 | |||
20564 | ; | ||
20565 | return 0; | ||
20566 | } | ||
20567 | _ACEOF | ||
20568 | rm -f conftest.$ac_objext | ||
20569 | if { (ac_try="$ac_compile" | ||
20570 | case "(($ac_try" in | ||
20571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20572 | *) ac_try_echo=$ac_try;; | ||
20573 | esac | ||
20574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20575 | (eval "$ac_compile") 2>conftest.er1 | ||
20576 | ac_status=$? | ||
20577 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20578 | rm -f conftest.er1 | ||
20579 | cat conftest.err >&5 | ||
20580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20581 | (exit $ac_status); } && { | ||
20582 | test -z "$ac_c_werror_flag" || | ||
20583 | test ! -s conftest.err | ||
20584 | } && test -s conftest.$ac_objext; then | ||
20585 | ac_lo=$ac_mid; break | ||
20586 | else | ||
20587 | echo "$as_me: failed program was:" >&5 | ||
20588 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20589 | |||
20590 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
20591 | if test $ac_mid -le $ac_hi; then | ||
20592 | ac_lo= ac_hi= | ||
20593 | break | ||
20594 | fi | ||
20595 | ac_mid=`expr 2 '*' $ac_mid` | ||
20596 | fi | ||
20597 | |||
20598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20599 | done | ||
20600 | else | ||
20601 | echo "$as_me: failed program was:" >&5 | ||
20602 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20603 | |||
20604 | ac_lo= ac_hi= | ||
20605 | fi | ||
20606 | |||
20607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20608 | fi | ||
20609 | |||
20610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20611 | # Binary search between lo and hi bounds. | ||
20612 | while test "x$ac_lo" != "x$ac_hi"; do | ||
20613 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
20614 | cat >conftest.$ac_ext <<_ACEOF | ||
20615 | /* confdefs.h. */ | ||
20616 | _ACEOF | ||
20617 | cat confdefs.h >>conftest.$ac_ext | ||
20618 | cat >>conftest.$ac_ext <<_ACEOF | ||
20619 | /* end confdefs.h. */ | ||
20620 | $ac_includes_default | ||
20621 | typedef char ac__type_sizeof_; | ||
20622 | int | ||
20623 | main () | ||
20624 | { | ||
20625 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
20626 | test_array [0] = 0 | ||
20627 | |||
20628 | ; | ||
20629 | return 0; | ||
20630 | } | ||
20631 | _ACEOF | ||
20632 | rm -f conftest.$ac_objext | ||
20633 | if { (ac_try="$ac_compile" | ||
20634 | case "(($ac_try" in | ||
20635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20636 | *) ac_try_echo=$ac_try;; | ||
20637 | esac | ||
20638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20639 | (eval "$ac_compile") 2>conftest.er1 | ||
20640 | ac_status=$? | ||
20641 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20642 | rm -f conftest.er1 | ||
20643 | cat conftest.err >&5 | ||
20644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20645 | (exit $ac_status); } && { | ||
20646 | test -z "$ac_c_werror_flag" || | ||
20647 | test ! -s conftest.err | ||
20648 | } && test -s conftest.$ac_objext; then | ||
20649 | ac_hi=$ac_mid | ||
20650 | else | ||
20651 | echo "$as_me: failed program was:" >&5 | ||
20652 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20653 | |||
20654 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
20655 | fi | ||
20656 | |||
20657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20658 | done | ||
20659 | case $ac_lo in | ||
20660 | ?*) ac_cv_sizeof_char=$ac_lo;; | ||
20661 | '') if test "$ac_cv_type_char" = yes; then | ||
20662 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) | ||
20663 | See \`config.log' for more details." >&5 | ||
20664 | echo "$as_me: error: cannot compute sizeof (char) | ||
20665 | See \`config.log' for more details." >&2;} | ||
20666 | { (exit 77); exit 77; }; } | ||
20667 | else | ||
20668 | ac_cv_sizeof_char=0 | ||
20669 | fi ;; | ||
20670 | esac | ||
20671 | else | ||
20672 | cat >conftest.$ac_ext <<_ACEOF | ||
20673 | /* confdefs.h. */ | ||
20674 | _ACEOF | ||
20675 | cat confdefs.h >>conftest.$ac_ext | ||
20676 | cat >>conftest.$ac_ext <<_ACEOF | ||
20677 | /* end confdefs.h. */ | ||
20678 | $ac_includes_default | ||
20679 | typedef char ac__type_sizeof_; | ||
20680 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
20681 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
20682 | #include <stdio.h> | ||
20683 | #include <stdlib.h> | ||
20684 | int | ||
20685 | main () | ||
20686 | { | ||
20687 | |||
20688 | FILE *f = fopen ("conftest.val", "w"); | ||
20689 | if (! f) | ||
20690 | return 1; | ||
20691 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
20692 | { | ||
20693 | long int i = longval (); | ||
20694 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
20695 | return 1; | ||
20696 | fprintf (f, "%ld\n", i); | ||
20697 | } | ||
20698 | else | ||
20699 | { | ||
20700 | unsigned long int i = ulongval (); | ||
20701 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
20702 | return 1; | ||
20703 | fprintf (f, "%lu\n", i); | ||
20704 | } | ||
20705 | return ferror (f) || fclose (f) != 0; | ||
20706 | |||
20707 | ; | ||
20708 | return 0; | ||
20709 | } | ||
20710 | _ACEOF | ||
20711 | rm -f conftest$ac_exeext | ||
20712 | if { (ac_try="$ac_link" | ||
20713 | case "(($ac_try" in | ||
20714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20715 | *) ac_try_echo=$ac_try;; | ||
20716 | esac | ||
20717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20718 | (eval "$ac_link") 2>&5 | ||
20719 | ac_status=$? | ||
20720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20721 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20722 | { (case "(($ac_try" in | ||
20723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20724 | *) ac_try_echo=$ac_try;; | ||
20725 | esac | ||
20726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20727 | (eval "$ac_try") 2>&5 | ||
20728 | ac_status=$? | ||
20729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20730 | (exit $ac_status); }; }; then | ||
20731 | ac_cv_sizeof_char=`cat conftest.val` | ||
20732 | else | ||
20733 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20734 | echo "$as_me: failed program was:" >&5 | ||
20735 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20736 | |||
20737 | ( exit $ac_status ) | ||
20738 | if test "$ac_cv_type_char" = yes; then | ||
20739 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) | ||
20740 | See \`config.log' for more details." >&5 | ||
20741 | echo "$as_me: error: cannot compute sizeof (char) | ||
20742 | See \`config.log' for more details." >&2;} | ||
20743 | { (exit 77); exit 77; }; } | ||
20744 | else | ||
20745 | ac_cv_sizeof_char=0 | ||
20746 | fi | ||
20747 | fi | ||
20748 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20749 | fi | ||
20750 | rm -f conftest.val | ||
20751 | fi | ||
20752 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | ||
20753 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6; } | ||
20754 | |||
20755 | |||
20756 | |||
20757 | cat >>confdefs.h <<_ACEOF | ||
20758 | #define SIZEOF_CHAR $ac_cv_sizeof_char | ||
20759 | _ACEOF | ||
20760 | |||
20761 | |||
20762 | { echo "$as_me:$LINENO: checking for short int" >&5 | ||
20763 | echo $ECHO_N "checking for short int... $ECHO_C" >&6; } | ||
20764 | if test "${ac_cv_type_short_int+set}" = set; then | ||
20765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20766 | else | ||
20767 | cat >conftest.$ac_ext <<_ACEOF | ||
20768 | /* confdefs.h. */ | ||
20769 | _ACEOF | ||
20770 | cat confdefs.h >>conftest.$ac_ext | ||
20771 | cat >>conftest.$ac_ext <<_ACEOF | ||
20772 | /* end confdefs.h. */ | ||
20773 | $ac_includes_default | ||
20774 | typedef short int ac__type_new_; | ||
20775 | int | ||
20776 | main () | ||
20777 | { | ||
20778 | if ((ac__type_new_ *) 0) | ||
20779 | return 0; | ||
20780 | if (sizeof (ac__type_new_)) | ||
20781 | return 0; | ||
20782 | ; | ||
20783 | return 0; | ||
20784 | } | ||
20785 | _ACEOF | ||
20786 | rm -f conftest.$ac_objext | ||
20787 | if { (ac_try="$ac_compile" | ||
20788 | case "(($ac_try" in | ||
20789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20790 | *) ac_try_echo=$ac_try;; | ||
20791 | esac | ||
20792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20793 | (eval "$ac_compile") 2>conftest.er1 | ||
20794 | ac_status=$? | ||
20795 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20796 | rm -f conftest.er1 | ||
20797 | cat conftest.err >&5 | ||
20798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20799 | (exit $ac_status); } && { | ||
20800 | test -z "$ac_c_werror_flag" || | ||
20801 | test ! -s conftest.err | ||
20802 | } && test -s conftest.$ac_objext; then | ||
20803 | ac_cv_type_short_int=yes | ||
20804 | else | ||
20805 | echo "$as_me: failed program was:" >&5 | ||
20806 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20807 | |||
20808 | ac_cv_type_short_int=no | ||
20809 | fi | ||
20810 | |||
20811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20812 | fi | ||
20813 | { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5 | ||
20814 | echo "${ECHO_T}$ac_cv_type_short_int" >&6; } | ||
20815 | |||
20816 | # The cast to long int works around a bug in the HP C Compiler | ||
20817 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
20818 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
20819 | # This bug is HP SR number 8606223364. | ||
20820 | { echo "$as_me:$LINENO: checking size of short int" >&5 | ||
20821 | echo $ECHO_N "checking size of short int... $ECHO_C" >&6; } | ||
20822 | if test "${ac_cv_sizeof_short_int+set}" = set; then | ||
20823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20824 | else | ||
20825 | if test "$cross_compiling" = yes; then | ||
20826 | # Depending upon the size, compute the lo and hi bounds. | ||
20827 | cat >conftest.$ac_ext <<_ACEOF | ||
20828 | /* confdefs.h. */ | ||
20829 | _ACEOF | ||
20830 | cat confdefs.h >>conftest.$ac_ext | ||
20831 | cat >>conftest.$ac_ext <<_ACEOF | ||
20832 | /* end confdefs.h. */ | ||
20833 | $ac_includes_default | ||
20834 | typedef short int ac__type_sizeof_; | ||
20835 | int | ||
20836 | main () | ||
20837 | { | ||
20838 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
20839 | test_array [0] = 0 | ||
20840 | |||
20841 | ; | ||
20842 | return 0; | ||
20843 | } | ||
20844 | _ACEOF | ||
20845 | rm -f conftest.$ac_objext | ||
20846 | if { (ac_try="$ac_compile" | ||
20847 | case "(($ac_try" in | ||
20848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20849 | *) ac_try_echo=$ac_try;; | ||
20850 | esac | ||
20851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20852 | (eval "$ac_compile") 2>conftest.er1 | ||
20853 | ac_status=$? | ||
20854 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20855 | rm -f conftest.er1 | ||
20856 | cat conftest.err >&5 | ||
20857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20858 | (exit $ac_status); } && { | ||
20859 | test -z "$ac_c_werror_flag" || | ||
20860 | test ! -s conftest.err | ||
20861 | } && test -s conftest.$ac_objext; then | ||
20862 | ac_lo=0 ac_mid=0 | ||
20863 | while :; do | ||
20864 | cat >conftest.$ac_ext <<_ACEOF | ||
20865 | /* confdefs.h. */ | ||
20866 | _ACEOF | ||
20867 | cat confdefs.h >>conftest.$ac_ext | ||
20868 | cat >>conftest.$ac_ext <<_ACEOF | ||
20869 | /* end confdefs.h. */ | ||
20870 | $ac_includes_default | ||
20871 | typedef short int ac__type_sizeof_; | ||
20872 | int | ||
20873 | main () | ||
20874 | { | ||
20875 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
20876 | test_array [0] = 0 | ||
20877 | |||
20878 | ; | ||
20879 | return 0; | ||
20880 | } | ||
20881 | _ACEOF | ||
20882 | rm -f conftest.$ac_objext | ||
20883 | if { (ac_try="$ac_compile" | ||
20884 | case "(($ac_try" in | ||
20885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20886 | *) ac_try_echo=$ac_try;; | ||
20887 | esac | ||
20888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20889 | (eval "$ac_compile") 2>conftest.er1 | ||
20890 | ac_status=$? | ||
20891 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20892 | rm -f conftest.er1 | ||
20893 | cat conftest.err >&5 | ||
20894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20895 | (exit $ac_status); } && { | ||
20896 | test -z "$ac_c_werror_flag" || | ||
20897 | test ! -s conftest.err | ||
20898 | } && test -s conftest.$ac_objext; then | ||
20899 | ac_hi=$ac_mid; break | ||
20900 | else | ||
20901 | echo "$as_me: failed program was:" >&5 | ||
20902 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20903 | |||
20904 | ac_lo=`expr $ac_mid + 1` | ||
20905 | if test $ac_lo -le $ac_mid; then | ||
20906 | ac_lo= ac_hi= | ||
20907 | break | ||
20908 | fi | ||
20909 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
20910 | fi | ||
20911 | |||
20912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20913 | done | ||
20914 | else | ||
20915 | echo "$as_me: failed program was:" >&5 | ||
20916 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20917 | |||
20918 | cat >conftest.$ac_ext <<_ACEOF | ||
20919 | /* confdefs.h. */ | ||
20920 | _ACEOF | ||
20921 | cat confdefs.h >>conftest.$ac_ext | ||
20922 | cat >>conftest.$ac_ext <<_ACEOF | ||
20923 | /* end confdefs.h. */ | ||
20924 | $ac_includes_default | ||
20925 | typedef short int ac__type_sizeof_; | ||
20926 | int | ||
20927 | main () | ||
20928 | { | ||
20929 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
20930 | test_array [0] = 0 | ||
20931 | |||
20932 | ; | ||
20933 | return 0; | ||
20934 | } | ||
20935 | _ACEOF | ||
20936 | rm -f conftest.$ac_objext | ||
20937 | if { (ac_try="$ac_compile" | ||
20938 | case "(($ac_try" in | ||
20939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20940 | *) ac_try_echo=$ac_try;; | ||
20941 | esac | ||
20942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20943 | (eval "$ac_compile") 2>conftest.er1 | ||
20944 | ac_status=$? | ||
20945 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20946 | rm -f conftest.er1 | ||
20947 | cat conftest.err >&5 | ||
20948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20949 | (exit $ac_status); } && { | ||
20950 | test -z "$ac_c_werror_flag" || | ||
20951 | test ! -s conftest.err | ||
20952 | } && test -s conftest.$ac_objext; then | ||
20953 | ac_hi=-1 ac_mid=-1 | ||
20954 | while :; do | ||
20955 | cat >conftest.$ac_ext <<_ACEOF | ||
20956 | /* confdefs.h. */ | ||
20957 | _ACEOF | ||
20958 | cat confdefs.h >>conftest.$ac_ext | ||
20959 | cat >>conftest.$ac_ext <<_ACEOF | ||
20960 | /* end confdefs.h. */ | ||
20961 | $ac_includes_default | ||
20962 | typedef short int ac__type_sizeof_; | ||
20963 | int | ||
20964 | main () | ||
20965 | { | ||
20966 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
20967 | test_array [0] = 0 | ||
20968 | |||
20969 | ; | ||
20970 | return 0; | ||
20971 | } | ||
20972 | _ACEOF | ||
20973 | rm -f conftest.$ac_objext | ||
20974 | if { (ac_try="$ac_compile" | ||
20975 | case "(($ac_try" in | ||
20976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20977 | *) ac_try_echo=$ac_try;; | ||
20978 | esac | ||
20979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20980 | (eval "$ac_compile") 2>conftest.er1 | ||
20981 | ac_status=$? | ||
20982 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20983 | rm -f conftest.er1 | ||
20984 | cat conftest.err >&5 | ||
20985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20986 | (exit $ac_status); } && { | ||
20987 | test -z "$ac_c_werror_flag" || | ||
20988 | test ! -s conftest.err | ||
20989 | } && test -s conftest.$ac_objext; then | ||
20990 | ac_lo=$ac_mid; break | ||
20991 | else | ||
20992 | echo "$as_me: failed program was:" >&5 | ||
20993 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20994 | |||
20995 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
20996 | if test $ac_mid -le $ac_hi; then | ||
20997 | ac_lo= ac_hi= | ||
20998 | break | ||
20999 | fi | ||
21000 | ac_mid=`expr 2 '*' $ac_mid` | ||
21001 | fi | ||
21002 | |||
21003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21004 | done | ||
21005 | else | ||
21006 | echo "$as_me: failed program was:" >&5 | ||
21007 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21008 | |||
21009 | ac_lo= ac_hi= | ||
21010 | fi | ||
21011 | |||
21012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21013 | fi | ||
21014 | |||
21015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21016 | # Binary search between lo and hi bounds. | ||
21017 | while test "x$ac_lo" != "x$ac_hi"; do | ||
21018 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
21019 | cat >conftest.$ac_ext <<_ACEOF | ||
21020 | /* confdefs.h. */ | ||
21021 | _ACEOF | ||
21022 | cat confdefs.h >>conftest.$ac_ext | ||
21023 | cat >>conftest.$ac_ext <<_ACEOF | ||
21024 | /* end confdefs.h. */ | ||
21025 | $ac_includes_default | ||
21026 | typedef short int ac__type_sizeof_; | ||
21027 | int | ||
21028 | main () | ||
21029 | { | ||
21030 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
21031 | test_array [0] = 0 | ||
21032 | |||
21033 | ; | ||
21034 | return 0; | ||
21035 | } | ||
21036 | _ACEOF | ||
21037 | rm -f conftest.$ac_objext | ||
21038 | if { (ac_try="$ac_compile" | ||
21039 | case "(($ac_try" in | ||
21040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21041 | *) ac_try_echo=$ac_try;; | ||
21042 | esac | ||
21043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21044 | (eval "$ac_compile") 2>conftest.er1 | ||
21045 | ac_status=$? | ||
21046 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21047 | rm -f conftest.er1 | ||
21048 | cat conftest.err >&5 | ||
21049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21050 | (exit $ac_status); } && { | ||
21051 | test -z "$ac_c_werror_flag" || | ||
21052 | test ! -s conftest.err | ||
21053 | } && test -s conftest.$ac_objext; then | ||
21054 | ac_hi=$ac_mid | ||
21055 | else | ||
21056 | echo "$as_me: failed program was:" >&5 | ||
21057 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21058 | |||
21059 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
21060 | fi | ||
21061 | |||
21062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21063 | done | ||
21064 | case $ac_lo in | ||
21065 | ?*) ac_cv_sizeof_short_int=$ac_lo;; | ||
21066 | '') if test "$ac_cv_type_short_int" = yes; then | ||
21067 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int) | ||
21068 | See \`config.log' for more details." >&5 | ||
21069 | echo "$as_me: error: cannot compute sizeof (short int) | ||
21070 | See \`config.log' for more details." >&2;} | ||
21071 | { (exit 77); exit 77; }; } | ||
21072 | else | ||
21073 | ac_cv_sizeof_short_int=0 | ||
21074 | fi ;; | ||
21075 | esac | ||
21076 | else | ||
21077 | cat >conftest.$ac_ext <<_ACEOF | ||
21078 | /* confdefs.h. */ | ||
21079 | _ACEOF | ||
21080 | cat confdefs.h >>conftest.$ac_ext | ||
21081 | cat >>conftest.$ac_ext <<_ACEOF | ||
21082 | /* end confdefs.h. */ | ||
21083 | $ac_includes_default | ||
21084 | typedef short int ac__type_sizeof_; | ||
21085 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
21086 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
21087 | #include <stdio.h> | ||
21088 | #include <stdlib.h> | ||
21089 | int | ||
21090 | main () | ||
21091 | { | ||
21092 | |||
21093 | FILE *f = fopen ("conftest.val", "w"); | ||
21094 | if (! f) | ||
21095 | return 1; | ||
21096 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
21097 | { | ||
21098 | long int i = longval (); | ||
21099 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
21100 | return 1; | ||
21101 | fprintf (f, "%ld\n", i); | ||
21102 | } | ||
21103 | else | ||
21104 | { | ||
21105 | unsigned long int i = ulongval (); | ||
21106 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
21107 | return 1; | ||
21108 | fprintf (f, "%lu\n", i); | ||
21109 | } | ||
21110 | return ferror (f) || fclose (f) != 0; | ||
21111 | |||
21112 | ; | ||
21113 | return 0; | ||
21114 | } | ||
21115 | _ACEOF | ||
21116 | rm -f conftest$ac_exeext | ||
21117 | if { (ac_try="$ac_link" | ||
21118 | case "(($ac_try" in | ||
21119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21120 | *) ac_try_echo=$ac_try;; | ||
21121 | esac | ||
21122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21123 | (eval "$ac_link") 2>&5 | ||
21124 | ac_status=$? | ||
21125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21126 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
21127 | { (case "(($ac_try" in | ||
21128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21129 | *) ac_try_echo=$ac_try;; | ||
21130 | esac | ||
21131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21132 | (eval "$ac_try") 2>&5 | ||
21133 | ac_status=$? | ||
21134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21135 | (exit $ac_status); }; }; then | ||
21136 | ac_cv_sizeof_short_int=`cat conftest.val` | ||
21137 | else | ||
21138 | echo "$as_me: program exited with status $ac_status" >&5 | ||
21139 | echo "$as_me: failed program was:" >&5 | ||
21140 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21141 | |||
21142 | ( exit $ac_status ) | ||
21143 | if test "$ac_cv_type_short_int" = yes; then | ||
21144 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int) | ||
21145 | See \`config.log' for more details." >&5 | ||
21146 | echo "$as_me: error: cannot compute sizeof (short int) | ||
21147 | See \`config.log' for more details." >&2;} | ||
21148 | { (exit 77); exit 77; }; } | ||
21149 | else | ||
21150 | ac_cv_sizeof_short_int=0 | ||
21151 | fi | ||
21152 | fi | ||
21153 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
21154 | fi | ||
21155 | rm -f conftest.val | ||
21156 | fi | ||
21157 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5 | ||
21158 | echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; } | ||
21159 | |||
21160 | |||
21161 | |||
21162 | cat >>confdefs.h <<_ACEOF | ||
21163 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
21164 | _ACEOF | ||
21165 | |||
21166 | |||
21167 | { echo "$as_me:$LINENO: checking for int" >&5 | ||
21168 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } | ||
21169 | if test "${ac_cv_type_int+set}" = set; then | ||
21170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21171 | else | ||
21172 | cat >conftest.$ac_ext <<_ACEOF | ||
21173 | /* confdefs.h. */ | ||
21174 | _ACEOF | ||
21175 | cat confdefs.h >>conftest.$ac_ext | ||
21176 | cat >>conftest.$ac_ext <<_ACEOF | ||
21177 | /* end confdefs.h. */ | ||
21178 | $ac_includes_default | ||
21179 | typedef int ac__type_new_; | ||
21180 | int | ||
21181 | main () | ||
21182 | { | ||
21183 | if ((ac__type_new_ *) 0) | ||
21184 | return 0; | ||
21185 | if (sizeof (ac__type_new_)) | ||
21186 | return 0; | ||
21187 | ; | ||
21188 | return 0; | ||
21189 | } | ||
21190 | _ACEOF | ||
21191 | rm -f conftest.$ac_objext | ||
21192 | if { (ac_try="$ac_compile" | ||
21193 | case "(($ac_try" in | ||
21194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21195 | *) ac_try_echo=$ac_try;; | ||
21196 | esac | ||
21197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21198 | (eval "$ac_compile") 2>conftest.er1 | ||
21199 | ac_status=$? | ||
21200 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21201 | rm -f conftest.er1 | ||
21202 | cat conftest.err >&5 | ||
21203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21204 | (exit $ac_status); } && { | ||
21205 | test -z "$ac_c_werror_flag" || | ||
21206 | test ! -s conftest.err | ||
21207 | } && test -s conftest.$ac_objext; then | ||
21208 | ac_cv_type_int=yes | ||
21209 | else | ||
21210 | echo "$as_me: failed program was:" >&5 | ||
21211 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21212 | |||
21213 | ac_cv_type_int=no | ||
21214 | fi | ||
21215 | |||
21216 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21217 | fi | ||
21218 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | ||
21219 | echo "${ECHO_T}$ac_cv_type_int" >&6; } | ||
21220 | |||
21221 | # The cast to long int works around a bug in the HP C Compiler | ||
21222 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
21223 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
21224 | # This bug is HP SR number 8606223364. | ||
21225 | { echo "$as_me:$LINENO: checking size of int" >&5 | ||
21226 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } | ||
21227 | if test "${ac_cv_sizeof_int+set}" = set; then | ||
21228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21229 | else | ||
21230 | if test "$cross_compiling" = yes; then | ||
21231 | # Depending upon the size, compute the lo and hi bounds. | ||
21232 | cat >conftest.$ac_ext <<_ACEOF | ||
21233 | /* confdefs.h. */ | ||
21234 | _ACEOF | ||
21235 | cat confdefs.h >>conftest.$ac_ext | ||
21236 | cat >>conftest.$ac_ext <<_ACEOF | ||
21237 | /* end confdefs.h. */ | ||
21238 | $ac_includes_default | ||
21239 | typedef int ac__type_sizeof_; | ||
21240 | int | ||
21241 | main () | ||
21242 | { | ||
21243 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
21244 | test_array [0] = 0 | ||
21245 | |||
21246 | ; | ||
21247 | return 0; | ||
21248 | } | ||
21249 | _ACEOF | ||
21250 | rm -f conftest.$ac_objext | ||
21251 | if { (ac_try="$ac_compile" | ||
21252 | case "(($ac_try" in | ||
21253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21254 | *) ac_try_echo=$ac_try;; | ||
21255 | esac | ||
21256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21257 | (eval "$ac_compile") 2>conftest.er1 | ||
21258 | ac_status=$? | ||
21259 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21260 | rm -f conftest.er1 | ||
21261 | cat conftest.err >&5 | ||
21262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21263 | (exit $ac_status); } && { | ||
21264 | test -z "$ac_c_werror_flag" || | ||
21265 | test ! -s conftest.err | ||
21266 | } && test -s conftest.$ac_objext; then | ||
21267 | ac_lo=0 ac_mid=0 | ||
21268 | while :; do | ||
21269 | cat >conftest.$ac_ext <<_ACEOF | ||
21270 | /* confdefs.h. */ | ||
21271 | _ACEOF | ||
21272 | cat confdefs.h >>conftest.$ac_ext | ||
21273 | cat >>conftest.$ac_ext <<_ACEOF | ||
21274 | /* end confdefs.h. */ | ||
21275 | $ac_includes_default | ||
21276 | typedef int ac__type_sizeof_; | ||
21277 | int | ||
21278 | main () | ||
21279 | { | ||
21280 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
21281 | test_array [0] = 0 | ||
21282 | |||
21283 | ; | ||
21284 | return 0; | ||
21285 | } | ||
21286 | _ACEOF | ||
21287 | rm -f conftest.$ac_objext | ||
21288 | if { (ac_try="$ac_compile" | ||
21289 | case "(($ac_try" in | ||
21290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21291 | *) ac_try_echo=$ac_try;; | ||
21292 | esac | ||
21293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21294 | (eval "$ac_compile") 2>conftest.er1 | ||
21295 | ac_status=$? | ||
21296 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21297 | rm -f conftest.er1 | ||
21298 | cat conftest.err >&5 | ||
21299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21300 | (exit $ac_status); } && { | ||
21301 | test -z "$ac_c_werror_flag" || | ||
21302 | test ! -s conftest.err | ||
21303 | } && test -s conftest.$ac_objext; then | ||
21304 | ac_hi=$ac_mid; break | ||
21305 | else | ||
21306 | echo "$as_me: failed program was:" >&5 | ||
21307 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21308 | |||
21309 | ac_lo=`expr $ac_mid + 1` | ||
21310 | if test $ac_lo -le $ac_mid; then | ||
21311 | ac_lo= ac_hi= | ||
21312 | break | ||
21313 | fi | ||
21314 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
21315 | fi | ||
21316 | |||
21317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21318 | done | ||
21319 | else | ||
21320 | echo "$as_me: failed program was:" >&5 | ||
21321 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21322 | |||
21323 | cat >conftest.$ac_ext <<_ACEOF | ||
21324 | /* confdefs.h. */ | ||
21325 | _ACEOF | ||
21326 | cat confdefs.h >>conftest.$ac_ext | ||
21327 | cat >>conftest.$ac_ext <<_ACEOF | ||
21328 | /* end confdefs.h. */ | ||
21329 | $ac_includes_default | ||
21330 | typedef int ac__type_sizeof_; | ||
21331 | int | ||
21332 | main () | ||
21333 | { | ||
21334 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
21335 | test_array [0] = 0 | ||
21336 | |||
21337 | ; | ||
21338 | return 0; | ||
21339 | } | ||
21340 | _ACEOF | ||
21341 | rm -f conftest.$ac_objext | ||
21342 | if { (ac_try="$ac_compile" | ||
21343 | case "(($ac_try" in | ||
21344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21345 | *) ac_try_echo=$ac_try;; | ||
21346 | esac | ||
21347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21348 | (eval "$ac_compile") 2>conftest.er1 | ||
21349 | ac_status=$? | ||
21350 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21351 | rm -f conftest.er1 | ||
21352 | cat conftest.err >&5 | ||
21353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21354 | (exit $ac_status); } && { | ||
21355 | test -z "$ac_c_werror_flag" || | ||
21356 | test ! -s conftest.err | ||
21357 | } && test -s conftest.$ac_objext; then | ||
21358 | ac_hi=-1 ac_mid=-1 | ||
21359 | while :; do | ||
21360 | cat >conftest.$ac_ext <<_ACEOF | ||
21361 | /* confdefs.h. */ | ||
21362 | _ACEOF | ||
21363 | cat confdefs.h >>conftest.$ac_ext | ||
21364 | cat >>conftest.$ac_ext <<_ACEOF | ||
21365 | /* end confdefs.h. */ | ||
21366 | $ac_includes_default | ||
21367 | typedef int ac__type_sizeof_; | ||
21368 | int | ||
21369 | main () | ||
21370 | { | ||
21371 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
21372 | test_array [0] = 0 | ||
21373 | |||
21374 | ; | ||
21375 | return 0; | ||
21376 | } | ||
21377 | _ACEOF | ||
21378 | rm -f conftest.$ac_objext | ||
21379 | if { (ac_try="$ac_compile" | ||
21380 | case "(($ac_try" in | ||
21381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21382 | *) ac_try_echo=$ac_try;; | ||
21383 | esac | ||
21384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21385 | (eval "$ac_compile") 2>conftest.er1 | ||
21386 | ac_status=$? | ||
21387 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21388 | rm -f conftest.er1 | ||
21389 | cat conftest.err >&5 | ||
21390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21391 | (exit $ac_status); } && { | ||
21392 | test -z "$ac_c_werror_flag" || | ||
21393 | test ! -s conftest.err | ||
21394 | } && test -s conftest.$ac_objext; then | ||
21395 | ac_lo=$ac_mid; break | ||
21396 | else | ||
21397 | echo "$as_me: failed program was:" >&5 | ||
21398 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21399 | |||
21400 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
21401 | if test $ac_mid -le $ac_hi; then | ||
21402 | ac_lo= ac_hi= | ||
21403 | break | ||
21404 | fi | ||
21405 | ac_mid=`expr 2 '*' $ac_mid` | ||
21406 | fi | ||
21407 | |||
21408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21409 | done | ||
21410 | else | ||
21411 | echo "$as_me: failed program was:" >&5 | ||
21412 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21413 | |||
21414 | ac_lo= ac_hi= | ||
21415 | fi | ||
21416 | |||
21417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21418 | fi | ||
21419 | |||
21420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21421 | # Binary search between lo and hi bounds. | ||
21422 | while test "x$ac_lo" != "x$ac_hi"; do | ||
21423 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
21424 | cat >conftest.$ac_ext <<_ACEOF | ||
21425 | /* confdefs.h. */ | ||
21426 | _ACEOF | ||
21427 | cat confdefs.h >>conftest.$ac_ext | ||
21428 | cat >>conftest.$ac_ext <<_ACEOF | ||
21429 | /* end confdefs.h. */ | ||
21430 | $ac_includes_default | ||
21431 | typedef int ac__type_sizeof_; | ||
21432 | int | ||
21433 | main () | ||
21434 | { | ||
21435 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
21436 | test_array [0] = 0 | ||
21437 | |||
21438 | ; | ||
21439 | return 0; | ||
21440 | } | ||
21441 | _ACEOF | ||
21442 | rm -f conftest.$ac_objext | ||
21443 | if { (ac_try="$ac_compile" | ||
21444 | case "(($ac_try" in | ||
21445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21446 | *) ac_try_echo=$ac_try;; | ||
21447 | esac | ||
21448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21449 | (eval "$ac_compile") 2>conftest.er1 | ||
21450 | ac_status=$? | ||
21451 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21452 | rm -f conftest.er1 | ||
21453 | cat conftest.err >&5 | ||
21454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21455 | (exit $ac_status); } && { | ||
21456 | test -z "$ac_c_werror_flag" || | ||
21457 | test ! -s conftest.err | ||
21458 | } && test -s conftest.$ac_objext; then | ||
21459 | ac_hi=$ac_mid | ||
21460 | else | ||
21461 | echo "$as_me: failed program was:" >&5 | ||
21462 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21463 | |||
21464 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
21465 | fi | ||
21466 | |||
21467 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21468 | done | ||
21469 | case $ac_lo in | ||
21470 | ?*) ac_cv_sizeof_int=$ac_lo;; | ||
21471 | '') if test "$ac_cv_type_int" = yes; then | ||
21472 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | ||
21473 | See \`config.log' for more details." >&5 | ||
21474 | echo "$as_me: error: cannot compute sizeof (int) | ||
21475 | See \`config.log' for more details." >&2;} | ||
21476 | { (exit 77); exit 77; }; } | ||
21477 | else | ||
21478 | ac_cv_sizeof_int=0 | ||
21479 | fi ;; | ||
21480 | esac | ||
21481 | else | ||
21482 | cat >conftest.$ac_ext <<_ACEOF | ||
21483 | /* confdefs.h. */ | ||
21484 | _ACEOF | ||
21485 | cat confdefs.h >>conftest.$ac_ext | ||
21486 | cat >>conftest.$ac_ext <<_ACEOF | ||
21487 | /* end confdefs.h. */ | ||
21488 | $ac_includes_default | ||
21489 | typedef int ac__type_sizeof_; | ||
21490 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
21491 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
21492 | #include <stdio.h> | ||
21493 | #include <stdlib.h> | ||
21494 | int | ||
21495 | main () | ||
21496 | { | ||
21497 | |||
21498 | FILE *f = fopen ("conftest.val", "w"); | ||
21499 | if (! f) | ||
21500 | return 1; | ||
21501 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
21502 | { | ||
21503 | long int i = longval (); | ||
21504 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
21505 | return 1; | ||
21506 | fprintf (f, "%ld\n", i); | ||
21507 | } | ||
21508 | else | ||
21509 | { | ||
21510 | unsigned long int i = ulongval (); | ||
21511 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
21512 | return 1; | ||
21513 | fprintf (f, "%lu\n", i); | ||
21514 | } | ||
21515 | return ferror (f) || fclose (f) != 0; | ||
21516 | |||
21517 | ; | ||
21518 | return 0; | ||
21519 | } | ||
21520 | _ACEOF | ||
21521 | rm -f conftest$ac_exeext | ||
21522 | if { (ac_try="$ac_link" | ||
21523 | case "(($ac_try" in | ||
21524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21525 | *) ac_try_echo=$ac_try;; | ||
21526 | esac | ||
21527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21528 | (eval "$ac_link") 2>&5 | ||
21529 | ac_status=$? | ||
21530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21531 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
21532 | { (case "(($ac_try" in | ||
21533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21534 | *) ac_try_echo=$ac_try;; | ||
21535 | esac | ||
21536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21537 | (eval "$ac_try") 2>&5 | ||
21538 | ac_status=$? | ||
21539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21540 | (exit $ac_status); }; }; then | ||
21541 | ac_cv_sizeof_int=`cat conftest.val` | ||
21542 | else | ||
21543 | echo "$as_me: program exited with status $ac_status" >&5 | ||
21544 | echo "$as_me: failed program was:" >&5 | ||
21545 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21546 | |||
21547 | ( exit $ac_status ) | ||
21548 | if test "$ac_cv_type_int" = yes; then | ||
21549 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | ||
21550 | See \`config.log' for more details." >&5 | ||
21551 | echo "$as_me: error: cannot compute sizeof (int) | ||
21552 | See \`config.log' for more details." >&2;} | ||
21553 | { (exit 77); exit 77; }; } | ||
21554 | else | ||
21555 | ac_cv_sizeof_int=0 | ||
21556 | fi | ||
21557 | fi | ||
21558 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
21559 | fi | ||
21560 | rm -f conftest.val | ||
21561 | fi | ||
21562 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | ||
21563 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } | ||
21564 | |||
21565 | |||
21566 | |||
21567 | cat >>confdefs.h <<_ACEOF | ||
21568 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
21569 | _ACEOF | ||
21570 | |||
21571 | |||
21572 | { echo "$as_me:$LINENO: checking for long int" >&5 | ||
21573 | echo $ECHO_N "checking for long int... $ECHO_C" >&6; } | ||
21574 | if test "${ac_cv_type_long_int+set}" = set; then | ||
21575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21576 | else | ||
21577 | cat >conftest.$ac_ext <<_ACEOF | ||
21578 | /* confdefs.h. */ | ||
21579 | _ACEOF | ||
21580 | cat confdefs.h >>conftest.$ac_ext | ||
21581 | cat >>conftest.$ac_ext <<_ACEOF | ||
21582 | /* end confdefs.h. */ | ||
21583 | $ac_includes_default | ||
21584 | typedef long int ac__type_new_; | ||
21585 | int | ||
21586 | main () | ||
21587 | { | ||
21588 | if ((ac__type_new_ *) 0) | ||
21589 | return 0; | ||
21590 | if (sizeof (ac__type_new_)) | ||
21591 | return 0; | ||
21592 | ; | ||
21593 | return 0; | ||
21594 | } | ||
21595 | _ACEOF | ||
21596 | rm -f conftest.$ac_objext | ||
21597 | if { (ac_try="$ac_compile" | ||
21598 | case "(($ac_try" in | ||
21599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21600 | *) ac_try_echo=$ac_try;; | ||
21601 | esac | ||
21602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21603 | (eval "$ac_compile") 2>conftest.er1 | ||
21604 | ac_status=$? | ||
21605 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21606 | rm -f conftest.er1 | ||
21607 | cat conftest.err >&5 | ||
21608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21609 | (exit $ac_status); } && { | ||
21610 | test -z "$ac_c_werror_flag" || | ||
21611 | test ! -s conftest.err | ||
21612 | } && test -s conftest.$ac_objext; then | ||
21613 | ac_cv_type_long_int=yes | ||
21614 | else | ||
21615 | echo "$as_me: failed program was:" >&5 | ||
21616 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21617 | |||
21618 | ac_cv_type_long_int=no | ||
21619 | fi | ||
21620 | |||
21621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21622 | fi | ||
21623 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5 | ||
21624 | echo "${ECHO_T}$ac_cv_type_long_int" >&6; } | ||
21625 | |||
21626 | # The cast to long int works around a bug in the HP C Compiler | ||
21627 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
21628 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
21629 | # This bug is HP SR number 8606223364. | ||
21630 | { echo "$as_me:$LINENO: checking size of long int" >&5 | ||
21631 | echo $ECHO_N "checking size of long int... $ECHO_C" >&6; } | ||
21632 | if test "${ac_cv_sizeof_long_int+set}" = set; then | ||
21633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21634 | else | ||
21635 | if test "$cross_compiling" = yes; then | ||
21636 | # Depending upon the size, compute the lo and hi bounds. | ||
21637 | cat >conftest.$ac_ext <<_ACEOF | ||
21638 | /* confdefs.h. */ | ||
21639 | _ACEOF | ||
21640 | cat confdefs.h >>conftest.$ac_ext | ||
21641 | cat >>conftest.$ac_ext <<_ACEOF | ||
21642 | /* end confdefs.h. */ | ||
21643 | $ac_includes_default | ||
21644 | typedef long int ac__type_sizeof_; | ||
21645 | int | ||
21646 | main () | ||
21647 | { | ||
21648 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
21649 | test_array [0] = 0 | ||
21650 | |||
21651 | ; | ||
21652 | return 0; | ||
21653 | } | ||
21654 | _ACEOF | ||
21655 | rm -f conftest.$ac_objext | ||
21656 | if { (ac_try="$ac_compile" | ||
21657 | case "(($ac_try" in | ||
21658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21659 | *) ac_try_echo=$ac_try;; | ||
21660 | esac | ||
21661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21662 | (eval "$ac_compile") 2>conftest.er1 | ||
21663 | ac_status=$? | ||
21664 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21665 | rm -f conftest.er1 | ||
21666 | cat conftest.err >&5 | ||
21667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21668 | (exit $ac_status); } && { | ||
21669 | test -z "$ac_c_werror_flag" || | ||
21670 | test ! -s conftest.err | ||
21671 | } && test -s conftest.$ac_objext; then | ||
21672 | ac_lo=0 ac_mid=0 | ||
21673 | while :; do | ||
21674 | cat >conftest.$ac_ext <<_ACEOF | ||
21675 | /* confdefs.h. */ | ||
21676 | _ACEOF | ||
21677 | cat confdefs.h >>conftest.$ac_ext | ||
21678 | cat >>conftest.$ac_ext <<_ACEOF | ||
21679 | /* end confdefs.h. */ | ||
21680 | $ac_includes_default | ||
21681 | typedef long int ac__type_sizeof_; | ||
21682 | int | ||
21683 | main () | ||
21684 | { | ||
21685 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
21686 | test_array [0] = 0 | ||
21687 | |||
21688 | ; | ||
21689 | return 0; | ||
21690 | } | ||
21691 | _ACEOF | ||
21692 | rm -f conftest.$ac_objext | ||
21693 | if { (ac_try="$ac_compile" | ||
21694 | case "(($ac_try" in | ||
21695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21696 | *) ac_try_echo=$ac_try;; | ||
21697 | esac | ||
21698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21699 | (eval "$ac_compile") 2>conftest.er1 | ||
21700 | ac_status=$? | ||
21701 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21702 | rm -f conftest.er1 | ||
21703 | cat conftest.err >&5 | ||
21704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21705 | (exit $ac_status); } && { | ||
21706 | test -z "$ac_c_werror_flag" || | ||
21707 | test ! -s conftest.err | ||
21708 | } && test -s conftest.$ac_objext; then | ||
21709 | ac_hi=$ac_mid; break | ||
21710 | else | ||
21711 | echo "$as_me: failed program was:" >&5 | ||
21712 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21713 | |||
21714 | ac_lo=`expr $ac_mid + 1` | ||
21715 | if test $ac_lo -le $ac_mid; then | ||
21716 | ac_lo= ac_hi= | ||
21717 | break | ||
21718 | fi | ||
21719 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
21720 | fi | ||
21721 | |||
21722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21723 | done | ||
21724 | else | ||
21725 | echo "$as_me: failed program was:" >&5 | ||
21726 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21727 | |||
21728 | cat >conftest.$ac_ext <<_ACEOF | ||
21729 | /* confdefs.h. */ | ||
21730 | _ACEOF | ||
21731 | cat confdefs.h >>conftest.$ac_ext | ||
21732 | cat >>conftest.$ac_ext <<_ACEOF | ||
21733 | /* end confdefs.h. */ | ||
21734 | $ac_includes_default | ||
21735 | typedef long int ac__type_sizeof_; | ||
21736 | int | ||
21737 | main () | ||
21738 | { | ||
21739 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
21740 | test_array [0] = 0 | ||
21741 | |||
21742 | ; | ||
21743 | return 0; | ||
21744 | } | ||
21745 | _ACEOF | ||
21746 | rm -f conftest.$ac_objext | ||
21747 | if { (ac_try="$ac_compile" | ||
21748 | case "(($ac_try" in | ||
21749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21750 | *) ac_try_echo=$ac_try;; | ||
21751 | esac | ||
21752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21753 | (eval "$ac_compile") 2>conftest.er1 | ||
21754 | ac_status=$? | ||
21755 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21756 | rm -f conftest.er1 | ||
21757 | cat conftest.err >&5 | ||
21758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21759 | (exit $ac_status); } && { | ||
21760 | test -z "$ac_c_werror_flag" || | ||
21761 | test ! -s conftest.err | ||
21762 | } && test -s conftest.$ac_objext; then | ||
21763 | ac_hi=-1 ac_mid=-1 | ||
21764 | while :; do | ||
21765 | cat >conftest.$ac_ext <<_ACEOF | ||
21766 | /* confdefs.h. */ | ||
21767 | _ACEOF | ||
21768 | cat confdefs.h >>conftest.$ac_ext | ||
21769 | cat >>conftest.$ac_ext <<_ACEOF | ||
21770 | /* end confdefs.h. */ | ||
21771 | $ac_includes_default | ||
21772 | typedef long int ac__type_sizeof_; | ||
21773 | int | ||
21774 | main () | ||
21775 | { | ||
21776 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
21777 | test_array [0] = 0 | ||
21778 | |||
21779 | ; | ||
21780 | return 0; | ||
21781 | } | ||
21782 | _ACEOF | ||
21783 | rm -f conftest.$ac_objext | ||
21784 | if { (ac_try="$ac_compile" | ||
21785 | case "(($ac_try" in | ||
21786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21787 | *) ac_try_echo=$ac_try;; | ||
21788 | esac | ||
21789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21790 | (eval "$ac_compile") 2>conftest.er1 | ||
21791 | ac_status=$? | ||
21792 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21793 | rm -f conftest.er1 | ||
21794 | cat conftest.err >&5 | ||
21795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21796 | (exit $ac_status); } && { | ||
21797 | test -z "$ac_c_werror_flag" || | ||
21798 | test ! -s conftest.err | ||
21799 | } && test -s conftest.$ac_objext; then | ||
21800 | ac_lo=$ac_mid; break | ||
21801 | else | ||
21802 | echo "$as_me: failed program was:" >&5 | ||
21803 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21804 | |||
21805 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
21806 | if test $ac_mid -le $ac_hi; then | ||
21807 | ac_lo= ac_hi= | ||
21808 | break | ||
21809 | fi | ||
21810 | ac_mid=`expr 2 '*' $ac_mid` | ||
21811 | fi | ||
21812 | |||
21813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21814 | done | ||
21815 | else | ||
21816 | echo "$as_me: failed program was:" >&5 | ||
21817 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21818 | |||
21819 | ac_lo= ac_hi= | ||
21820 | fi | ||
21821 | |||
21822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21823 | fi | ||
21824 | |||
21825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21826 | # Binary search between lo and hi bounds. | ||
21827 | while test "x$ac_lo" != "x$ac_hi"; do | ||
21828 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
21829 | cat >conftest.$ac_ext <<_ACEOF | ||
21830 | /* confdefs.h. */ | ||
21831 | _ACEOF | ||
21832 | cat confdefs.h >>conftest.$ac_ext | ||
21833 | cat >>conftest.$ac_ext <<_ACEOF | ||
21834 | /* end confdefs.h. */ | ||
21835 | $ac_includes_default | ||
21836 | typedef long int ac__type_sizeof_; | ||
21837 | int | ||
21838 | main () | ||
21839 | { | ||
21840 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
21841 | test_array [0] = 0 | ||
21842 | |||
21843 | ; | ||
21844 | return 0; | ||
21845 | } | ||
21846 | _ACEOF | ||
21847 | rm -f conftest.$ac_objext | ||
21848 | if { (ac_try="$ac_compile" | ||
21849 | case "(($ac_try" in | ||
21850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21851 | *) ac_try_echo=$ac_try;; | ||
21852 | esac | ||
21853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21854 | (eval "$ac_compile") 2>conftest.er1 | ||
21855 | ac_status=$? | ||
21856 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21857 | rm -f conftest.er1 | ||
21858 | cat conftest.err >&5 | ||
21859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21860 | (exit $ac_status); } && { | ||
21861 | test -z "$ac_c_werror_flag" || | ||
21862 | test ! -s conftest.err | ||
21863 | } && test -s conftest.$ac_objext; then | ||
21864 | ac_hi=$ac_mid | ||
21865 | else | ||
21866 | echo "$as_me: failed program was:" >&5 | ||
21867 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21868 | |||
21869 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
21870 | fi | ||
21871 | |||
21872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21873 | done | ||
21874 | case $ac_lo in | ||
21875 | ?*) ac_cv_sizeof_long_int=$ac_lo;; | ||
21876 | '') if test "$ac_cv_type_long_int" = yes; then | ||
21877 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) | ||
21878 | See \`config.log' for more details." >&5 | ||
21879 | echo "$as_me: error: cannot compute sizeof (long int) | ||
21880 | See \`config.log' for more details." >&2;} | ||
21881 | { (exit 77); exit 77; }; } | ||
21882 | else | ||
21883 | ac_cv_sizeof_long_int=0 | ||
21884 | fi ;; | ||
21885 | esac | ||
21886 | else | ||
21887 | cat >conftest.$ac_ext <<_ACEOF | ||
21888 | /* confdefs.h. */ | ||
21889 | _ACEOF | ||
21890 | cat confdefs.h >>conftest.$ac_ext | ||
21891 | cat >>conftest.$ac_ext <<_ACEOF | ||
21892 | /* end confdefs.h. */ | ||
21893 | $ac_includes_default | ||
21894 | typedef long int ac__type_sizeof_; | ||
21895 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
21896 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
21897 | #include <stdio.h> | ||
21898 | #include <stdlib.h> | ||
21899 | int | ||
21900 | main () | ||
21901 | { | ||
21902 | |||
21903 | FILE *f = fopen ("conftest.val", "w"); | ||
21904 | if (! f) | ||
21905 | return 1; | ||
21906 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
21907 | { | ||
21908 | long int i = longval (); | ||
21909 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
21910 | return 1; | ||
21911 | fprintf (f, "%ld\n", i); | ||
21912 | } | ||
21913 | else | ||
21914 | { | ||
21915 | unsigned long int i = ulongval (); | ||
21916 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
21917 | return 1; | ||
21918 | fprintf (f, "%lu\n", i); | ||
21919 | } | ||
21920 | return ferror (f) || fclose (f) != 0; | ||
21921 | |||
21922 | ; | ||
21923 | return 0; | ||
21924 | } | ||
21925 | _ACEOF | ||
21926 | rm -f conftest$ac_exeext | ||
21927 | if { (ac_try="$ac_link" | ||
21928 | case "(($ac_try" in | ||
21929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21930 | *) ac_try_echo=$ac_try;; | ||
21931 | esac | ||
21932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21933 | (eval "$ac_link") 2>&5 | ||
21934 | ac_status=$? | ||
21935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21936 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
21937 | { (case "(($ac_try" in | ||
21938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21939 | *) ac_try_echo=$ac_try;; | ||
21940 | esac | ||
21941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21942 | (eval "$ac_try") 2>&5 | ||
21943 | ac_status=$? | ||
21944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21945 | (exit $ac_status); }; }; then | ||
21946 | ac_cv_sizeof_long_int=`cat conftest.val` | ||
21947 | else | ||
21948 | echo "$as_me: program exited with status $ac_status" >&5 | ||
21949 | echo "$as_me: failed program was:" >&5 | ||
21950 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21951 | |||
21952 | ( exit $ac_status ) | ||
21953 | if test "$ac_cv_type_long_int" = yes; then | ||
21954 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) | ||
21955 | See \`config.log' for more details." >&5 | ||
21956 | echo "$as_me: error: cannot compute sizeof (long int) | ||
21957 | See \`config.log' for more details." >&2;} | ||
21958 | { (exit 77); exit 77; }; } | ||
21959 | else | ||
21960 | ac_cv_sizeof_long_int=0 | ||
21961 | fi | ||
21962 | fi | ||
21963 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
21964 | fi | ||
21965 | rm -f conftest.val | ||
21966 | fi | ||
21967 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5 | ||
21968 | echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; } | ||
21969 | |||
21970 | |||
21971 | |||
21972 | cat >>confdefs.h <<_ACEOF | ||
21973 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
21974 | _ACEOF | ||
21975 | |||
21976 | |||
21977 | { echo "$as_me:$LINENO: checking for long long int" >&5 | ||
21978 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6; } | ||
21979 | if test "${ac_cv_type_long_long_int+set}" = set; then | ||
21980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21981 | else | ||
21982 | cat >conftest.$ac_ext <<_ACEOF | ||
21983 | /* confdefs.h. */ | ||
21984 | _ACEOF | ||
21985 | cat confdefs.h >>conftest.$ac_ext | ||
21986 | cat >>conftest.$ac_ext <<_ACEOF | ||
21987 | /* end confdefs.h. */ | ||
21988 | $ac_includes_default | ||
21989 | typedef long long int ac__type_new_; | ||
21990 | int | ||
21991 | main () | ||
21992 | { | ||
21993 | if ((ac__type_new_ *) 0) | ||
21994 | return 0; | ||
21995 | if (sizeof (ac__type_new_)) | ||
21996 | return 0; | ||
21997 | ; | ||
21998 | return 0; | ||
21999 | } | ||
22000 | _ACEOF | ||
22001 | rm -f conftest.$ac_objext | ||
22002 | if { (ac_try="$ac_compile" | ||
22003 | case "(($ac_try" in | ||
22004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22005 | *) ac_try_echo=$ac_try;; | ||
22006 | esac | ||
22007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22008 | (eval "$ac_compile") 2>conftest.er1 | ||
22009 | ac_status=$? | ||
22010 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22011 | rm -f conftest.er1 | ||
22012 | cat conftest.err >&5 | ||
22013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22014 | (exit $ac_status); } && { | ||
22015 | test -z "$ac_c_werror_flag" || | ||
22016 | test ! -s conftest.err | ||
22017 | } && test -s conftest.$ac_objext; then | ||
22018 | ac_cv_type_long_long_int=yes | ||
22019 | else | ||
22020 | echo "$as_me: failed program was:" >&5 | ||
22021 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22022 | |||
22023 | ac_cv_type_long_long_int=no | ||
22024 | fi | ||
22025 | |||
22026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22027 | fi | ||
22028 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 | ||
22029 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; } | ||
22030 | |||
22031 | # The cast to long int works around a bug in the HP C Compiler | ||
22032 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
22033 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
22034 | # This bug is HP SR number 8606223364. | ||
22035 | { echo "$as_me:$LINENO: checking size of long long int" >&5 | ||
22036 | echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; } | ||
22037 | if test "${ac_cv_sizeof_long_long_int+set}" = set; then | ||
22038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22039 | else | ||
22040 | if test "$cross_compiling" = yes; then | ||
22041 | # Depending upon the size, compute the lo and hi bounds. | ||
22042 | cat >conftest.$ac_ext <<_ACEOF | ||
22043 | /* confdefs.h. */ | ||
22044 | _ACEOF | ||
22045 | cat confdefs.h >>conftest.$ac_ext | ||
22046 | cat >>conftest.$ac_ext <<_ACEOF | ||
22047 | /* end confdefs.h. */ | ||
22048 | $ac_includes_default | ||
22049 | typedef long long int ac__type_sizeof_; | ||
22050 | int | ||
22051 | main () | ||
22052 | { | ||
22053 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
22054 | test_array [0] = 0 | ||
22055 | |||
22056 | ; | ||
22057 | return 0; | ||
22058 | } | ||
22059 | _ACEOF | ||
22060 | rm -f conftest.$ac_objext | ||
22061 | if { (ac_try="$ac_compile" | ||
22062 | case "(($ac_try" in | ||
22063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22064 | *) ac_try_echo=$ac_try;; | ||
22065 | esac | ||
22066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22067 | (eval "$ac_compile") 2>conftest.er1 | ||
22068 | ac_status=$? | ||
22069 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22070 | rm -f conftest.er1 | ||
22071 | cat conftest.err >&5 | ||
22072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22073 | (exit $ac_status); } && { | ||
22074 | test -z "$ac_c_werror_flag" || | ||
22075 | test ! -s conftest.err | ||
22076 | } && test -s conftest.$ac_objext; then | ||
22077 | ac_lo=0 ac_mid=0 | ||
22078 | while :; do | ||
22079 | cat >conftest.$ac_ext <<_ACEOF | ||
22080 | /* confdefs.h. */ | ||
22081 | _ACEOF | ||
22082 | cat confdefs.h >>conftest.$ac_ext | ||
22083 | cat >>conftest.$ac_ext <<_ACEOF | ||
22084 | /* end confdefs.h. */ | ||
22085 | $ac_includes_default | ||
22086 | typedef long long int ac__type_sizeof_; | ||
22087 | int | ||
22088 | main () | ||
22089 | { | ||
22090 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
22091 | test_array [0] = 0 | ||
22092 | |||
22093 | ; | ||
22094 | return 0; | ||
22095 | } | ||
22096 | _ACEOF | ||
22097 | rm -f conftest.$ac_objext | ||
22098 | if { (ac_try="$ac_compile" | ||
22099 | case "(($ac_try" in | ||
22100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22101 | *) ac_try_echo=$ac_try;; | ||
22102 | esac | ||
22103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22104 | (eval "$ac_compile") 2>conftest.er1 | ||
22105 | ac_status=$? | ||
22106 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22107 | rm -f conftest.er1 | ||
22108 | cat conftest.err >&5 | ||
22109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22110 | (exit $ac_status); } && { | ||
22111 | test -z "$ac_c_werror_flag" || | ||
22112 | test ! -s conftest.err | ||
22113 | } && test -s conftest.$ac_objext; then | ||
22114 | ac_hi=$ac_mid; break | ||
22115 | else | ||
22116 | echo "$as_me: failed program was:" >&5 | ||
22117 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22118 | |||
22119 | ac_lo=`expr $ac_mid + 1` | ||
22120 | if test $ac_lo -le $ac_mid; then | ||
22121 | ac_lo= ac_hi= | ||
22122 | break | ||
22123 | fi | ||
22124 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
22125 | fi | ||
22126 | |||
22127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22128 | done | ||
22129 | else | ||
22130 | echo "$as_me: failed program was:" >&5 | ||
22131 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22132 | |||
22133 | cat >conftest.$ac_ext <<_ACEOF | ||
22134 | /* confdefs.h. */ | ||
22135 | _ACEOF | ||
22136 | cat confdefs.h >>conftest.$ac_ext | ||
22137 | cat >>conftest.$ac_ext <<_ACEOF | ||
22138 | /* end confdefs.h. */ | ||
22139 | $ac_includes_default | ||
22140 | typedef long long int ac__type_sizeof_; | ||
22141 | int | ||
22142 | main () | ||
22143 | { | ||
22144 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
22145 | test_array [0] = 0 | ||
22146 | |||
22147 | ; | ||
22148 | return 0; | ||
22149 | } | ||
22150 | _ACEOF | ||
22151 | rm -f conftest.$ac_objext | ||
22152 | if { (ac_try="$ac_compile" | ||
22153 | case "(($ac_try" in | ||
22154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22155 | *) ac_try_echo=$ac_try;; | ||
22156 | esac | ||
22157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22158 | (eval "$ac_compile") 2>conftest.er1 | ||
22159 | ac_status=$? | ||
22160 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22161 | rm -f conftest.er1 | ||
22162 | cat conftest.err >&5 | ||
22163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22164 | (exit $ac_status); } && { | ||
22165 | test -z "$ac_c_werror_flag" || | ||
22166 | test ! -s conftest.err | ||
22167 | } && test -s conftest.$ac_objext; then | ||
22168 | ac_hi=-1 ac_mid=-1 | ||
22169 | while :; do | ||
22170 | cat >conftest.$ac_ext <<_ACEOF | ||
22171 | /* confdefs.h. */ | ||
22172 | _ACEOF | ||
22173 | cat confdefs.h >>conftest.$ac_ext | ||
22174 | cat >>conftest.$ac_ext <<_ACEOF | ||
22175 | /* end confdefs.h. */ | ||
22176 | $ac_includes_default | ||
22177 | typedef long long int ac__type_sizeof_; | ||
22178 | int | ||
22179 | main () | ||
22180 | { | ||
22181 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
22182 | test_array [0] = 0 | ||
22183 | |||
22184 | ; | ||
22185 | return 0; | ||
22186 | } | ||
22187 | _ACEOF | ||
22188 | rm -f conftest.$ac_objext | ||
22189 | if { (ac_try="$ac_compile" | ||
22190 | case "(($ac_try" in | ||
22191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22192 | *) ac_try_echo=$ac_try;; | ||
22193 | esac | ||
22194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22195 | (eval "$ac_compile") 2>conftest.er1 | ||
22196 | ac_status=$? | ||
22197 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22198 | rm -f conftest.er1 | ||
22199 | cat conftest.err >&5 | ||
22200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22201 | (exit $ac_status); } && { | ||
22202 | test -z "$ac_c_werror_flag" || | ||
22203 | test ! -s conftest.err | ||
22204 | } && test -s conftest.$ac_objext; then | ||
22205 | ac_lo=$ac_mid; break | ||
22206 | else | ||
22207 | echo "$as_me: failed program was:" >&5 | ||
22208 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22209 | |||
22210 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
22211 | if test $ac_mid -le $ac_hi; then | ||
22212 | ac_lo= ac_hi= | ||
22213 | break | ||
22214 | fi | ||
22215 | ac_mid=`expr 2 '*' $ac_mid` | ||
22216 | fi | ||
22217 | |||
22218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22219 | done | ||
22220 | else | ||
22221 | echo "$as_me: failed program was:" >&5 | ||
22222 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22223 | |||
22224 | ac_lo= ac_hi= | ||
22225 | fi | ||
22226 | |||
22227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22228 | fi | ||
22229 | |||
22230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22231 | # Binary search between lo and hi bounds. | ||
22232 | while test "x$ac_lo" != "x$ac_hi"; do | ||
22233 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
22234 | cat >conftest.$ac_ext <<_ACEOF | ||
22235 | /* confdefs.h. */ | ||
22236 | _ACEOF | ||
22237 | cat confdefs.h >>conftest.$ac_ext | ||
22238 | cat >>conftest.$ac_ext <<_ACEOF | ||
22239 | /* end confdefs.h. */ | ||
22240 | $ac_includes_default | ||
22241 | typedef long long int ac__type_sizeof_; | ||
22242 | int | ||
22243 | main () | ||
22244 | { | ||
22245 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
22246 | test_array [0] = 0 | ||
22247 | |||
22248 | ; | ||
22249 | return 0; | ||
22250 | } | ||
22251 | _ACEOF | ||
22252 | rm -f conftest.$ac_objext | ||
22253 | if { (ac_try="$ac_compile" | ||
22254 | case "(($ac_try" in | ||
22255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22256 | *) ac_try_echo=$ac_try;; | ||
22257 | esac | ||
22258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22259 | (eval "$ac_compile") 2>conftest.er1 | ||
22260 | ac_status=$? | ||
22261 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22262 | rm -f conftest.er1 | ||
22263 | cat conftest.err >&5 | ||
22264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22265 | (exit $ac_status); } && { | ||
22266 | test -z "$ac_c_werror_flag" || | ||
22267 | test ! -s conftest.err | ||
22268 | } && test -s conftest.$ac_objext; then | ||
22269 | ac_hi=$ac_mid | ||
22270 | else | ||
22271 | echo "$as_me: failed program was:" >&5 | ||
22272 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22273 | |||
22274 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
22275 | fi | ||
22276 | |||
22277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22278 | done | ||
22279 | case $ac_lo in | ||
22280 | ?*) ac_cv_sizeof_long_long_int=$ac_lo;; | ||
22281 | '') if test "$ac_cv_type_long_long_int" = yes; then | ||
22282 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int) | ||
22283 | See \`config.log' for more details." >&5 | ||
22284 | echo "$as_me: error: cannot compute sizeof (long long int) | ||
22285 | See \`config.log' for more details." >&2;} | ||
22286 | { (exit 77); exit 77; }; } | ||
22287 | else | ||
22288 | ac_cv_sizeof_long_long_int=0 | ||
22289 | fi ;; | ||
22290 | esac | ||
22291 | else | ||
22292 | cat >conftest.$ac_ext <<_ACEOF | ||
22293 | /* confdefs.h. */ | ||
22294 | _ACEOF | ||
22295 | cat confdefs.h >>conftest.$ac_ext | ||
22296 | cat >>conftest.$ac_ext <<_ACEOF | ||
22297 | /* end confdefs.h. */ | ||
22298 | $ac_includes_default | ||
22299 | typedef long long int ac__type_sizeof_; | ||
22300 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
22301 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
22302 | #include <stdio.h> | ||
22303 | #include <stdlib.h> | ||
22304 | int | ||
22305 | main () | ||
22306 | { | ||
22307 | |||
22308 | FILE *f = fopen ("conftest.val", "w"); | ||
22309 | if (! f) | ||
22310 | return 1; | ||
22311 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
22312 | { | ||
22313 | long int i = longval (); | ||
22314 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
22315 | return 1; | ||
22316 | fprintf (f, "%ld\n", i); | ||
22317 | } | ||
22318 | else | ||
22319 | { | ||
22320 | unsigned long int i = ulongval (); | ||
22321 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
22322 | return 1; | ||
22323 | fprintf (f, "%lu\n", i); | ||
22324 | } | ||
22325 | return ferror (f) || fclose (f) != 0; | ||
22326 | |||
22327 | ; | ||
22328 | return 0; | ||
22329 | } | ||
22330 | _ACEOF | ||
22331 | rm -f conftest$ac_exeext | ||
22332 | if { (ac_try="$ac_link" | ||
22333 | case "(($ac_try" in | ||
22334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22335 | *) ac_try_echo=$ac_try;; | ||
22336 | esac | ||
22337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22338 | (eval "$ac_link") 2>&5 | ||
22339 | ac_status=$? | ||
22340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22341 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
22342 | { (case "(($ac_try" in | ||
22343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22344 | *) ac_try_echo=$ac_try;; | ||
22345 | esac | ||
22346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22347 | (eval "$ac_try") 2>&5 | ||
22348 | ac_status=$? | ||
22349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22350 | (exit $ac_status); }; }; then | ||
22351 | ac_cv_sizeof_long_long_int=`cat conftest.val` | ||
22352 | else | ||
22353 | echo "$as_me: program exited with status $ac_status" >&5 | ||
22354 | echo "$as_me: failed program was:" >&5 | ||
22355 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22356 | |||
22357 | ( exit $ac_status ) | ||
22358 | if test "$ac_cv_type_long_long_int" = yes; then | ||
22359 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int) | ||
22360 | See \`config.log' for more details." >&5 | ||
22361 | echo "$as_me: error: cannot compute sizeof (long long int) | ||
22362 | See \`config.log' for more details." >&2;} | ||
22363 | { (exit 77); exit 77; }; } | ||
22364 | else | ||
22365 | ac_cv_sizeof_long_long_int=0 | ||
22366 | fi | ||
22367 | fi | ||
22368 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
22369 | fi | ||
22370 | rm -f conftest.val | ||
22371 | fi | ||
22372 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5 | ||
22373 | echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; } | ||
22374 | |||
22375 | |||
22376 | |||
22377 | cat >>confdefs.h <<_ACEOF | ||
22378 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
22379 | _ACEOF | ||
22380 | |||
22381 | |||
22382 | |||
22383 | # Sanity check long long for some platforms (AIX) | ||
22384 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
22385 | ac_cv_sizeof_long_long_int=0 | ||
22386 | fi | ||
22387 | |||
22388 | # compute LLONG_MIN and LLONG_MAX if we don't know them. | ||
22389 | if test -z "$have_llong_max"; then | ||
22390 | { echo "$as_me:$LINENO: checking for max value of long long" >&5 | ||
22391 | echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; } | ||
22392 | if test "$cross_compiling" = yes; then | ||
22393 | |||
22394 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
22395 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
22396 | |||
22397 | |||
22398 | else | ||
22399 | cat >conftest.$ac_ext <<_ACEOF | ||
22400 | /* confdefs.h. */ | ||
22401 | _ACEOF | ||
22402 | cat confdefs.h >>conftest.$ac_ext | ||
22403 | cat >>conftest.$ac_ext <<_ACEOF | ||
22404 | /* end confdefs.h. */ | ||
22405 | |||
22406 | #include <stdio.h> | ||
22407 | /* Why is this so damn hard? */ | ||
22408 | #ifdef __GNUC__ | ||
22409 | # undef __GNUC__ | ||
22410 | #endif | ||
22411 | #define __USE_ISOC99 | ||
22412 | #include <limits.h> | ||
22413 | #define DATA "conftest.llminmax" | ||
22414 | #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a)) | ||
22415 | |||
22416 | /* | ||
22417 | * printf in libc on some platforms (eg old Tru64) does not understand %lld so | ||
22418 | * we do this the hard way. | ||
22419 | */ | ||
22420 | static int | ||
22421 | fprint_ll(FILE *f, long long n) | ||
22422 | { | ||
22423 | unsigned int i; | ||
22424 | int l[sizeof(long long) * 8]; | ||
22425 | |||
22426 | if (n < 0) | ||
22427 | if (fprintf(f, "-") < 0) | ||
22428 | return -1; | ||
22429 | for (i = 0; n != 0; i++) { | ||
22430 | l[i] = my_abs(n % 10); | ||
22431 | n /= 10; | ||
22432 | } | ||
22433 | do { | ||
22434 | if (fprintf(f, "%d", l[--i]) < 0) | ||
22435 | return -1; | ||
22436 | } while (i != 0); | ||
22437 | if (fprintf(f, " ") < 0) | ||
22438 | return -1; | ||
22439 | return 0; | ||
22440 | } | ||
22441 | |||
22442 | int main(void) { | ||
22443 | FILE *f; | ||
22444 | long long i, llmin, llmax = 0; | ||
22445 | |||
22446 | if((f = fopen(DATA,"w")) == NULL) | ||
22447 | exit(1); | ||
22448 | |||
22449 | #if defined(LLONG_MIN) && defined(LLONG_MAX) | ||
22450 | fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n"); | ||
22451 | llmin = LLONG_MIN; | ||
22452 | llmax = LLONG_MAX; | ||
22453 | #else | ||
22454 | fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n"); | ||
22455 | /* This will work on one's complement and two's complement */ | ||
22456 | for (i = 1; i > llmax; i <<= 1, i++) | ||
22457 | llmax = i; | ||
22458 | llmin = llmax + 1LL; /* wrap */ | ||
22459 | #endif | ||
22460 | |||
22461 | /* Sanity check */ | ||
22462 | if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax | ||
22463 | || llmax - 1 > llmax || llmin == llmax || llmin == 0 | ||
22464 | || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) { | ||
22465 | fprintf(f, "unknown unknown\n"); | ||
22466 | exit(2); | ||
22467 | } | ||
22468 | |||
22469 | if (fprint_ll(f, llmin) < 0) | ||
22470 | exit(3); | ||
22471 | if (fprint_ll(f, llmax) < 0) | ||
22472 | exit(4); | ||
22473 | if (fclose(f) < 0) | ||
22474 | exit(5); | ||
22475 | exit(0); | ||
22476 | } | ||
22477 | |||
22478 | _ACEOF | ||
22479 | rm -f conftest$ac_exeext | ||
22480 | if { (ac_try="$ac_link" | ||
22481 | case "(($ac_try" in | ||
22482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22483 | *) ac_try_echo=$ac_try;; | ||
22484 | esac | ||
22485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22486 | (eval "$ac_link") 2>&5 | ||
22487 | ac_status=$? | ||
22488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22489 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
22490 | { (case "(($ac_try" in | ||
22491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22492 | *) ac_try_echo=$ac_try;; | ||
22493 | esac | ||
22494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22495 | (eval "$ac_try") 2>&5 | ||
22496 | ac_status=$? | ||
22497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22498 | (exit $ac_status); }; }; then | ||
22499 | |||
22500 | llong_min=`$AWK '{print $1}' conftest.llminmax` | ||
22501 | llong_max=`$AWK '{print $2}' conftest.llminmax` | ||
22502 | |||
22503 | { echo "$as_me:$LINENO: result: $llong_max" >&5 | ||
22504 | echo "${ECHO_T}$llong_max" >&6; } | ||
22505 | |||
22506 | cat >>confdefs.h <<_ACEOF | ||
22507 | #define LLONG_MAX ${llong_max}LL | ||
22508 | _ACEOF | ||
22509 | |||
22510 | { echo "$as_me:$LINENO: checking for min value of long long" >&5 | ||
22511 | echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; } | ||
22512 | { echo "$as_me:$LINENO: result: $llong_min" >&5 | ||
22513 | echo "${ECHO_T}$llong_min" >&6; } | ||
22514 | |||
22515 | cat >>confdefs.h <<_ACEOF | ||
22516 | #define LLONG_MIN ${llong_min}LL | ||
22517 | _ACEOF | ||
22518 | |||
22519 | |||
22520 | else | ||
22521 | echo "$as_me: program exited with status $ac_status" >&5 | ||
22522 | echo "$as_me: failed program was:" >&5 | ||
22523 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22524 | |||
22525 | ( exit $ac_status ) | ||
22526 | |||
22527 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
22528 | echo "${ECHO_T}not found" >&6; } | ||
22529 | |||
22530 | fi | ||
22531 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
22532 | fi | ||
22533 | |||
22534 | |||
22535 | fi | ||
22536 | |||
22537 | |||
22538 | # More checks for data types | ||
22539 | { echo "$as_me:$LINENO: checking for u_int type" >&5 | ||
22540 | echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; } | ||
22541 | if test "${ac_cv_have_u_int+set}" = set; then | ||
22542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22543 | else | ||
22544 | |||
22545 | cat >conftest.$ac_ext <<_ACEOF | ||
22546 | /* confdefs.h. */ | ||
22547 | _ACEOF | ||
22548 | cat confdefs.h >>conftest.$ac_ext | ||
22549 | cat >>conftest.$ac_ext <<_ACEOF | ||
22550 | /* end confdefs.h. */ | ||
22551 | #include <sys/types.h> | ||
22552 | int | ||
22553 | main () | ||
22554 | { | ||
22555 | u_int a; a = 1; | ||
22556 | ; | ||
22557 | return 0; | ||
22558 | } | ||
22559 | _ACEOF | ||
22560 | rm -f conftest.$ac_objext | ||
22561 | if { (ac_try="$ac_compile" | ||
22562 | case "(($ac_try" in | ||
22563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22564 | *) ac_try_echo=$ac_try;; | ||
22565 | esac | ||
22566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22567 | (eval "$ac_compile") 2>conftest.er1 | ||
22568 | ac_status=$? | ||
22569 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22570 | rm -f conftest.er1 | ||
22571 | cat conftest.err >&5 | ||
22572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22573 | (exit $ac_status); } && { | ||
22574 | test -z "$ac_c_werror_flag" || | ||
22575 | test ! -s conftest.err | ||
22576 | } && test -s conftest.$ac_objext; then | ||
22577 | ac_cv_have_u_int="yes" | ||
22578 | else | ||
22579 | echo "$as_me: failed program was:" >&5 | ||
22580 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22581 | |||
22582 | ac_cv_have_u_int="no" | ||
22583 | |||
22584 | fi | ||
22585 | |||
22586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22587 | |||
22588 | fi | ||
22589 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5 | ||
22590 | echo "${ECHO_T}$ac_cv_have_u_int" >&6; } | ||
22591 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
22592 | |||
22593 | cat >>confdefs.h <<\_ACEOF | ||
22594 | #define HAVE_U_INT 1 | ||
22595 | _ACEOF | ||
22596 | |||
22597 | have_u_int=1 | ||
22598 | fi | ||
22599 | |||
22600 | { echo "$as_me:$LINENO: checking for intXX_t types" >&5 | ||
22601 | echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; } | ||
22602 | if test "${ac_cv_have_intxx_t+set}" = set; then | ||
22603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22604 | else | ||
22605 | |||
22606 | cat >conftest.$ac_ext <<_ACEOF | ||
22607 | /* confdefs.h. */ | ||
22608 | _ACEOF | ||
22609 | cat confdefs.h >>conftest.$ac_ext | ||
22610 | cat >>conftest.$ac_ext <<_ACEOF | ||
22611 | /* end confdefs.h. */ | ||
22612 | #include <sys/types.h> | ||
22613 | int | ||
22614 | main () | ||
22615 | { | ||
22616 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
22617 | ; | ||
22618 | return 0; | ||
22619 | } | ||
22620 | _ACEOF | ||
22621 | rm -f conftest.$ac_objext | ||
22622 | if { (ac_try="$ac_compile" | ||
22623 | case "(($ac_try" in | ||
22624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22625 | *) ac_try_echo=$ac_try;; | ||
22626 | esac | ||
22627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22628 | (eval "$ac_compile") 2>conftest.er1 | ||
22629 | ac_status=$? | ||
22630 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22631 | rm -f conftest.er1 | ||
22632 | cat conftest.err >&5 | ||
22633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22634 | (exit $ac_status); } && { | ||
22635 | test -z "$ac_c_werror_flag" || | ||
22636 | test ! -s conftest.err | ||
22637 | } && test -s conftest.$ac_objext; then | ||
22638 | ac_cv_have_intxx_t="yes" | ||
22639 | else | ||
22640 | echo "$as_me: failed program was:" >&5 | ||
22641 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22642 | |||
22643 | ac_cv_have_intxx_t="no" | ||
22644 | |||
22645 | fi | ||
22646 | |||
22647 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22648 | |||
22649 | fi | ||
22650 | { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5 | ||
22651 | echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; } | ||
22652 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
22653 | |||
22654 | cat >>confdefs.h <<\_ACEOF | ||
22655 | #define HAVE_INTXX_T 1 | ||
22656 | _ACEOF | ||
22657 | |||
22658 | have_intxx_t=1 | ||
22659 | fi | ||
22660 | |||
22661 | if (test -z "$have_intxx_t" && \ | ||
22662 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
22663 | then | ||
22664 | { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5 | ||
22665 | echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; } | ||
22666 | cat >conftest.$ac_ext <<_ACEOF | ||
22667 | /* confdefs.h. */ | ||
22668 | _ACEOF | ||
22669 | cat confdefs.h >>conftest.$ac_ext | ||
22670 | cat >>conftest.$ac_ext <<_ACEOF | ||
22671 | /* end confdefs.h. */ | ||
22672 | #include <stdint.h> | ||
22673 | int | ||
22674 | main () | ||
22675 | { | ||
22676 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
22677 | ; | ||
22678 | return 0; | ||
22679 | } | ||
22680 | _ACEOF | ||
22681 | rm -f conftest.$ac_objext | ||
22682 | if { (ac_try="$ac_compile" | ||
22683 | case "(($ac_try" in | ||
22684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22685 | *) ac_try_echo=$ac_try;; | ||
22686 | esac | ||
22687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22688 | (eval "$ac_compile") 2>conftest.er1 | ||
22689 | ac_status=$? | ||
22690 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22691 | rm -f conftest.er1 | ||
22692 | cat conftest.err >&5 | ||
22693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22694 | (exit $ac_status); } && { | ||
22695 | test -z "$ac_c_werror_flag" || | ||
22696 | test ! -s conftest.err | ||
22697 | } && test -s conftest.$ac_objext; then | ||
22698 | |||
22699 | cat >>confdefs.h <<\_ACEOF | ||
22700 | #define HAVE_INTXX_T 1 | ||
22701 | _ACEOF | ||
22702 | |||
22703 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
22704 | echo "${ECHO_T}yes" >&6; } | ||
22705 | |||
22706 | else | ||
22707 | echo "$as_me: failed program was:" >&5 | ||
22708 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22709 | |||
22710 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22711 | echo "${ECHO_T}no" >&6; } | ||
22712 | |||
22713 | fi | ||
22714 | |||
22715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22716 | fi | ||
22717 | |||
22718 | { echo "$as_me:$LINENO: checking for int64_t type" >&5 | ||
22719 | echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; } | ||
22720 | if test "${ac_cv_have_int64_t+set}" = set; then | ||
22721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22722 | else | ||
22723 | |||
22724 | cat >conftest.$ac_ext <<_ACEOF | ||
22725 | /* confdefs.h. */ | ||
22726 | _ACEOF | ||
22727 | cat confdefs.h >>conftest.$ac_ext | ||
22728 | cat >>conftest.$ac_ext <<_ACEOF | ||
22729 | /* end confdefs.h. */ | ||
22730 | |||
22731 | #include <sys/types.h> | ||
22732 | #ifdef HAVE_STDINT_H | ||
22733 | # include <stdint.h> | ||
22734 | #endif | ||
22735 | #include <sys/socket.h> | ||
22736 | #ifdef HAVE_SYS_BITYPES_H | ||
22737 | # include <sys/bitypes.h> | ||
22738 | #endif | ||
22739 | |||
22740 | int | ||
22741 | main () | ||
22742 | { | ||
22743 | int64_t a; a = 1; | ||
22744 | ; | ||
22745 | return 0; | ||
22746 | } | ||
22747 | _ACEOF | ||
22748 | rm -f conftest.$ac_objext | ||
22749 | if { (ac_try="$ac_compile" | ||
22750 | case "(($ac_try" in | ||
22751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22752 | *) ac_try_echo=$ac_try;; | ||
22753 | esac | ||
22754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22755 | (eval "$ac_compile") 2>conftest.er1 | ||
22756 | ac_status=$? | ||
22757 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22758 | rm -f conftest.er1 | ||
22759 | cat conftest.err >&5 | ||
22760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22761 | (exit $ac_status); } && { | ||
22762 | test -z "$ac_c_werror_flag" || | ||
22763 | test ! -s conftest.err | ||
22764 | } && test -s conftest.$ac_objext; then | ||
22765 | ac_cv_have_int64_t="yes" | ||
22766 | else | ||
22767 | echo "$as_me: failed program was:" >&5 | ||
22768 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22769 | |||
22770 | ac_cv_have_int64_t="no" | ||
22771 | |||
22772 | fi | ||
22773 | |||
22774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22775 | |||
22776 | fi | ||
22777 | { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5 | ||
22778 | echo "${ECHO_T}$ac_cv_have_int64_t" >&6; } | ||
22779 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
22780 | |||
22781 | cat >>confdefs.h <<\_ACEOF | ||
22782 | #define HAVE_INT64_T 1 | ||
22783 | _ACEOF | ||
22784 | |||
22785 | fi | ||
22786 | |||
22787 | { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5 | ||
22788 | echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; } | ||
22789 | if test "${ac_cv_have_u_intxx_t+set}" = set; then | ||
22790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22791 | else | ||
22792 | |||
22793 | cat >conftest.$ac_ext <<_ACEOF | ||
22794 | /* confdefs.h. */ | ||
22795 | _ACEOF | ||
22796 | cat confdefs.h >>conftest.$ac_ext | ||
22797 | cat >>conftest.$ac_ext <<_ACEOF | ||
22798 | /* end confdefs.h. */ | ||
22799 | #include <sys/types.h> | ||
22800 | int | ||
22801 | main () | ||
22802 | { | ||
22803 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
22804 | ; | ||
22805 | return 0; | ||
22806 | } | ||
22807 | _ACEOF | ||
22808 | rm -f conftest.$ac_objext | ||
22809 | if { (ac_try="$ac_compile" | ||
22810 | case "(($ac_try" in | ||
22811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22812 | *) ac_try_echo=$ac_try;; | ||
22813 | esac | ||
22814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22815 | (eval "$ac_compile") 2>conftest.er1 | ||
22816 | ac_status=$? | ||
22817 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22818 | rm -f conftest.er1 | ||
22819 | cat conftest.err >&5 | ||
22820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22821 | (exit $ac_status); } && { | ||
22822 | test -z "$ac_c_werror_flag" || | ||
22823 | test ! -s conftest.err | ||
22824 | } && test -s conftest.$ac_objext; then | ||
22825 | ac_cv_have_u_intxx_t="yes" | ||
22826 | else | ||
22827 | echo "$as_me: failed program was:" >&5 | ||
22828 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22829 | |||
22830 | ac_cv_have_u_intxx_t="no" | ||
22831 | |||
22832 | fi | ||
22833 | |||
22834 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22835 | |||
22836 | fi | ||
22837 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5 | ||
22838 | echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; } | ||
22839 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
22840 | |||
22841 | cat >>confdefs.h <<\_ACEOF | ||
22842 | #define HAVE_U_INTXX_T 1 | ||
22843 | _ACEOF | ||
22844 | |||
22845 | have_u_intxx_t=1 | ||
22846 | fi | ||
22847 | |||
22848 | if test -z "$have_u_intxx_t" ; then | ||
22849 | { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5 | ||
22850 | echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; } | ||
22851 | cat >conftest.$ac_ext <<_ACEOF | ||
22852 | /* confdefs.h. */ | ||
22853 | _ACEOF | ||
22854 | cat confdefs.h >>conftest.$ac_ext | ||
22855 | cat >>conftest.$ac_ext <<_ACEOF | ||
22856 | /* end confdefs.h. */ | ||
22857 | #include <sys/socket.h> | ||
22858 | int | ||
22859 | main () | ||
22860 | { | ||
22861 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
22862 | ; | ||
22863 | return 0; | ||
22864 | } | ||
22865 | _ACEOF | ||
22866 | rm -f conftest.$ac_objext | ||
22867 | if { (ac_try="$ac_compile" | ||
22868 | case "(($ac_try" in | ||
22869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22870 | *) ac_try_echo=$ac_try;; | ||
22871 | esac | ||
22872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22873 | (eval "$ac_compile") 2>conftest.er1 | ||
22874 | ac_status=$? | ||
22875 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22876 | rm -f conftest.er1 | ||
22877 | cat conftest.err >&5 | ||
22878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22879 | (exit $ac_status); } && { | ||
22880 | test -z "$ac_c_werror_flag" || | ||
22881 | test ! -s conftest.err | ||
22882 | } && test -s conftest.$ac_objext; then | ||
22883 | |||
22884 | cat >>confdefs.h <<\_ACEOF | ||
22885 | #define HAVE_U_INTXX_T 1 | ||
22886 | _ACEOF | ||
22887 | |||
22888 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
22889 | echo "${ECHO_T}yes" >&6; } | ||
22890 | |||
22891 | else | ||
22892 | echo "$as_me: failed program was:" >&5 | ||
22893 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22894 | |||
22895 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22896 | echo "${ECHO_T}no" >&6; } | ||
22897 | |||
22898 | fi | ||
22899 | |||
22900 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22901 | fi | ||
22902 | |||
22903 | { echo "$as_me:$LINENO: checking for u_int64_t types" >&5 | ||
22904 | echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; } | ||
22905 | if test "${ac_cv_have_u_int64_t+set}" = set; then | ||
22906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22907 | else | ||
22908 | |||
22909 | cat >conftest.$ac_ext <<_ACEOF | ||
22910 | /* confdefs.h. */ | ||
22911 | _ACEOF | ||
22912 | cat confdefs.h >>conftest.$ac_ext | ||
22913 | cat >>conftest.$ac_ext <<_ACEOF | ||
22914 | /* end confdefs.h. */ | ||
22915 | #include <sys/types.h> | ||
22916 | int | ||
22917 | main () | ||
22918 | { | ||
22919 | u_int64_t a; a = 1; | ||
22920 | ; | ||
22921 | return 0; | ||
22922 | } | ||
22923 | _ACEOF | ||
22924 | rm -f conftest.$ac_objext | ||
22925 | if { (ac_try="$ac_compile" | ||
22926 | case "(($ac_try" in | ||
22927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22928 | *) ac_try_echo=$ac_try;; | ||
22929 | esac | ||
22930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22931 | (eval "$ac_compile") 2>conftest.er1 | ||
22932 | ac_status=$? | ||
22933 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22934 | rm -f conftest.er1 | ||
22935 | cat conftest.err >&5 | ||
22936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22937 | (exit $ac_status); } && { | ||
22938 | test -z "$ac_c_werror_flag" || | ||
22939 | test ! -s conftest.err | ||
22940 | } && test -s conftest.$ac_objext; then | ||
22941 | ac_cv_have_u_int64_t="yes" | ||
22942 | else | ||
22943 | echo "$as_me: failed program was:" >&5 | ||
22944 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22945 | |||
22946 | ac_cv_have_u_int64_t="no" | ||
22947 | |||
22948 | fi | ||
22949 | |||
22950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22951 | |||
22952 | fi | ||
22953 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5 | ||
22954 | echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; } | ||
22955 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
22956 | |||
22957 | cat >>confdefs.h <<\_ACEOF | ||
22958 | #define HAVE_U_INT64_T 1 | ||
22959 | _ACEOF | ||
22960 | |||
22961 | have_u_int64_t=1 | ||
22962 | fi | ||
22963 | |||
22964 | if test -z "$have_u_int64_t" ; then | ||
22965 | { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
22966 | echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; } | ||
22967 | cat >conftest.$ac_ext <<_ACEOF | ||
22968 | /* confdefs.h. */ | ||
22969 | _ACEOF | ||
22970 | cat confdefs.h >>conftest.$ac_ext | ||
22971 | cat >>conftest.$ac_ext <<_ACEOF | ||
22972 | /* end confdefs.h. */ | ||
22973 | #include <sys/bitypes.h> | ||
22974 | int | ||
22975 | main () | ||
22976 | { | ||
22977 | u_int64_t a; a = 1 | ||
22978 | ; | ||
22979 | return 0; | ||
22980 | } | ||
22981 | _ACEOF | ||
22982 | rm -f conftest.$ac_objext | ||
22983 | if { (ac_try="$ac_compile" | ||
22984 | case "(($ac_try" in | ||
22985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22986 | *) ac_try_echo=$ac_try;; | ||
22987 | esac | ||
22988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22989 | (eval "$ac_compile") 2>conftest.er1 | ||
22990 | ac_status=$? | ||
22991 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22992 | rm -f conftest.er1 | ||
22993 | cat conftest.err >&5 | ||
22994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22995 | (exit $ac_status); } && { | ||
22996 | test -z "$ac_c_werror_flag" || | ||
22997 | test ! -s conftest.err | ||
22998 | } && test -s conftest.$ac_objext; then | ||
22999 | |||
23000 | cat >>confdefs.h <<\_ACEOF | ||
23001 | #define HAVE_U_INT64_T 1 | ||
23002 | _ACEOF | ||
23003 | |||
23004 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
23005 | echo "${ECHO_T}yes" >&6; } | ||
23006 | |||
23007 | else | ||
23008 | echo "$as_me: failed program was:" >&5 | ||
23009 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23010 | |||
23011 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23012 | echo "${ECHO_T}no" >&6; } | ||
23013 | |||
23014 | fi | ||
23015 | |||
23016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23017 | fi | ||
23018 | |||
23019 | if test -z "$have_u_intxx_t" ; then | ||
23020 | { echo "$as_me:$LINENO: checking for uintXX_t types" >&5 | ||
23021 | echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; } | ||
23022 | if test "${ac_cv_have_uintxx_t+set}" = set; then | ||
23023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23024 | else | ||
23025 | |||
23026 | cat >conftest.$ac_ext <<_ACEOF | ||
23027 | /* confdefs.h. */ | ||
23028 | _ACEOF | ||
23029 | cat confdefs.h >>conftest.$ac_ext | ||
23030 | cat >>conftest.$ac_ext <<_ACEOF | ||
23031 | /* end confdefs.h. */ | ||
23032 | |||
23033 | #include <sys/types.h> | ||
23034 | |||
23035 | int | ||
23036 | main () | ||
23037 | { | ||
23038 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
23039 | ; | ||
23040 | return 0; | ||
23041 | } | ||
23042 | _ACEOF | ||
23043 | rm -f conftest.$ac_objext | ||
23044 | if { (ac_try="$ac_compile" | ||
23045 | case "(($ac_try" in | ||
23046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23047 | *) ac_try_echo=$ac_try;; | ||
23048 | esac | ||
23049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23050 | (eval "$ac_compile") 2>conftest.er1 | ||
23051 | ac_status=$? | ||
23052 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23053 | rm -f conftest.er1 | ||
23054 | cat conftest.err >&5 | ||
23055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23056 | (exit $ac_status); } && { | ||
23057 | test -z "$ac_c_werror_flag" || | ||
23058 | test ! -s conftest.err | ||
23059 | } && test -s conftest.$ac_objext; then | ||
23060 | ac_cv_have_uintxx_t="yes" | ||
23061 | else | ||
23062 | echo "$as_me: failed program was:" >&5 | ||
23063 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23064 | |||
23065 | ac_cv_have_uintxx_t="no" | ||
23066 | |||
23067 | fi | ||
23068 | |||
23069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23070 | |||
23071 | fi | ||
23072 | { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5 | ||
23073 | echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; } | ||
23074 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
23075 | |||
23076 | cat >>confdefs.h <<\_ACEOF | ||
23077 | #define HAVE_UINTXX_T 1 | ||
23078 | _ACEOF | ||
23079 | |||
23080 | fi | ||
23081 | fi | ||
23082 | |||
23083 | if test -z "$have_uintxx_t" ; then | ||
23084 | { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5 | ||
23085 | echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; } | ||
23086 | cat >conftest.$ac_ext <<_ACEOF | ||
23087 | /* confdefs.h. */ | ||
23088 | _ACEOF | ||
23089 | cat confdefs.h >>conftest.$ac_ext | ||
23090 | cat >>conftest.$ac_ext <<_ACEOF | ||
23091 | /* end confdefs.h. */ | ||
23092 | #include <stdint.h> | ||
23093 | int | ||
23094 | main () | ||
23095 | { | ||
23096 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
23097 | ; | ||
23098 | return 0; | ||
23099 | } | ||
23100 | _ACEOF | ||
23101 | rm -f conftest.$ac_objext | ||
23102 | if { (ac_try="$ac_compile" | ||
23103 | case "(($ac_try" in | ||
23104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23105 | *) ac_try_echo=$ac_try;; | ||
23106 | esac | ||
23107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23108 | (eval "$ac_compile") 2>conftest.er1 | ||
23109 | ac_status=$? | ||
23110 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23111 | rm -f conftest.er1 | ||
23112 | cat conftest.err >&5 | ||
23113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23114 | (exit $ac_status); } && { | ||
23115 | test -z "$ac_c_werror_flag" || | ||
23116 | test ! -s conftest.err | ||
23117 | } && test -s conftest.$ac_objext; then | ||
23118 | |||
23119 | cat >>confdefs.h <<\_ACEOF | ||
23120 | #define HAVE_UINTXX_T 1 | ||
23121 | _ACEOF | ||
23122 | |||
23123 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
23124 | echo "${ECHO_T}yes" >&6; } | ||
23125 | |||
23126 | else | ||
23127 | echo "$as_me: failed program was:" >&5 | ||
23128 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23129 | |||
23130 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23131 | echo "${ECHO_T}no" >&6; } | ||
23132 | |||
23133 | fi | ||
23134 | |||
23135 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23136 | fi | ||
23137 | |||
23138 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
23139 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
23140 | then | ||
23141 | { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
23142 | echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; } | ||
23143 | cat >conftest.$ac_ext <<_ACEOF | ||
23144 | /* confdefs.h. */ | ||
23145 | _ACEOF | ||
23146 | cat confdefs.h >>conftest.$ac_ext | ||
23147 | cat >>conftest.$ac_ext <<_ACEOF | ||
23148 | /* end confdefs.h. */ | ||
23149 | |||
23150 | #include <sys/bitypes.h> | ||
23151 | |||
23152 | int | ||
23153 | main () | ||
23154 | { | ||
23155 | |||
23156 | int8_t a; int16_t b; int32_t c; | ||
23157 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
23158 | a = b = c = e = f = g = 1; | ||
23159 | |||
23160 | ; | ||
23161 | return 0; | ||
23162 | } | ||
23163 | _ACEOF | ||
23164 | rm -f conftest.$ac_objext | ||
23165 | if { (ac_try="$ac_compile" | ||
23166 | case "(($ac_try" in | ||
23167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23168 | *) ac_try_echo=$ac_try;; | ||
23169 | esac | ||
23170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23171 | (eval "$ac_compile") 2>conftest.er1 | ||
23172 | ac_status=$? | ||
23173 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23174 | rm -f conftest.er1 | ||
23175 | cat conftest.err >&5 | ||
23176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23177 | (exit $ac_status); } && { | ||
23178 | test -z "$ac_c_werror_flag" || | ||
23179 | test ! -s conftest.err | ||
23180 | } && test -s conftest.$ac_objext; then | ||
23181 | |||
23182 | cat >>confdefs.h <<\_ACEOF | ||
23183 | #define HAVE_U_INTXX_T 1 | ||
23184 | _ACEOF | ||
23185 | |||
23186 | cat >>confdefs.h <<\_ACEOF | ||
23187 | #define HAVE_INTXX_T 1 | ||
23188 | _ACEOF | ||
23189 | |||
23190 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
23191 | echo "${ECHO_T}yes" >&6; } | ||
23192 | |||
23193 | else | ||
23194 | echo "$as_me: failed program was:" >&5 | ||
23195 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23196 | |||
23197 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23198 | echo "${ECHO_T}no" >&6; } | ||
23199 | |||
23200 | fi | ||
23201 | |||
23202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23203 | fi | ||
23204 | |||
23205 | |||
23206 | { echo "$as_me:$LINENO: checking for u_char" >&5 | ||
23207 | echo $ECHO_N "checking for u_char... $ECHO_C" >&6; } | ||
23208 | if test "${ac_cv_have_u_char+set}" = set; then | ||
23209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23210 | else | ||
23211 | |||
23212 | cat >conftest.$ac_ext <<_ACEOF | ||
23213 | /* confdefs.h. */ | ||
23214 | _ACEOF | ||
23215 | cat confdefs.h >>conftest.$ac_ext | ||
23216 | cat >>conftest.$ac_ext <<_ACEOF | ||
23217 | /* end confdefs.h. */ | ||
23218 | |||
23219 | #include <sys/types.h> | ||
23220 | |||
23221 | int | ||
23222 | main () | ||
23223 | { | ||
23224 | u_char foo; foo = 125; | ||
23225 | ; | ||
23226 | return 0; | ||
23227 | } | ||
23228 | _ACEOF | ||
23229 | rm -f conftest.$ac_objext | ||
23230 | if { (ac_try="$ac_compile" | ||
23231 | case "(($ac_try" in | ||
23232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23233 | *) ac_try_echo=$ac_try;; | ||
23234 | esac | ||
23235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23236 | (eval "$ac_compile") 2>conftest.er1 | ||
23237 | ac_status=$? | ||
23238 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23239 | rm -f conftest.er1 | ||
23240 | cat conftest.err >&5 | ||
23241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23242 | (exit $ac_status); } && { | ||
23243 | test -z "$ac_c_werror_flag" || | ||
23244 | test ! -s conftest.err | ||
23245 | } && test -s conftest.$ac_objext; then | ||
23246 | ac_cv_have_u_char="yes" | ||
23247 | else | ||
23248 | echo "$as_me: failed program was:" >&5 | ||
23249 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23250 | |||
23251 | ac_cv_have_u_char="no" | ||
23252 | |||
23253 | fi | ||
23254 | |||
23255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23256 | |||
23257 | fi | ||
23258 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5 | ||
23259 | echo "${ECHO_T}$ac_cv_have_u_char" >&6; } | ||
23260 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
23261 | |||
23262 | cat >>confdefs.h <<\_ACEOF | ||
23263 | #define HAVE_U_CHAR 1 | ||
23264 | _ACEOF | ||
23265 | |||
23266 | fi | ||
23267 | |||
23268 | |||
23269 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 | ||
23270 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } | ||
23271 | if test "${ac_cv_type_socklen_t+set}" = set; then | ||
23272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23273 | else | ||
23274 | cat >conftest.$ac_ext <<_ACEOF | ||
23275 | /* confdefs.h. */ | ||
23276 | _ACEOF | ||
23277 | cat confdefs.h >>conftest.$ac_ext | ||
23278 | cat >>conftest.$ac_ext <<_ACEOF | ||
23279 | /* end confdefs.h. */ | ||
23280 | #include <sys/types.h> | ||
23281 | #include <sys/socket.h> | ||
23282 | |||
23283 | typedef socklen_t ac__type_new_; | ||
23284 | int | ||
23285 | main () | ||
23286 | { | ||
23287 | if ((ac__type_new_ *) 0) | ||
23288 | return 0; | ||
23289 | if (sizeof (ac__type_new_)) | ||
23290 | return 0; | ||
23291 | ; | ||
23292 | return 0; | ||
23293 | } | ||
23294 | _ACEOF | ||
23295 | rm -f conftest.$ac_objext | ||
23296 | if { (ac_try="$ac_compile" | ||
23297 | case "(($ac_try" in | ||
23298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23299 | *) ac_try_echo=$ac_try;; | ||
23300 | esac | ||
23301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23302 | (eval "$ac_compile") 2>conftest.er1 | ||
23303 | ac_status=$? | ||
23304 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23305 | rm -f conftest.er1 | ||
23306 | cat conftest.err >&5 | ||
23307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23308 | (exit $ac_status); } && { | ||
23309 | test -z "$ac_c_werror_flag" || | ||
23310 | test ! -s conftest.err | ||
23311 | } && test -s conftest.$ac_objext; then | ||
23312 | ac_cv_type_socklen_t=yes | ||
23313 | else | ||
23314 | echo "$as_me: failed program was:" >&5 | ||
23315 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23316 | |||
23317 | ac_cv_type_socklen_t=no | ||
23318 | fi | ||
23319 | |||
23320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23321 | fi | ||
23322 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | ||
23323 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } | ||
23324 | if test $ac_cv_type_socklen_t = yes; then | ||
23325 | : | ||
23326 | else | ||
23327 | |||
23328 | { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 | ||
23329 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; } | ||
23330 | if test "${curl_cv_socklen_t_equiv+set}" = set; then | ||
23331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23332 | else | ||
23333 | |||
23334 | # Systems have either "struct sockaddr *" or | ||
23335 | # "void *" as the second argument to getpeername | ||
23336 | curl_cv_socklen_t_equiv= | ||
23337 | for arg2 in "struct sockaddr" void; do | ||
23338 | for t in int size_t unsigned long "unsigned long"; do | ||
23339 | cat >conftest.$ac_ext <<_ACEOF | ||
23340 | /* confdefs.h. */ | ||
23341 | _ACEOF | ||
23342 | cat confdefs.h >>conftest.$ac_ext | ||
23343 | cat >>conftest.$ac_ext <<_ACEOF | ||
23344 | /* end confdefs.h. */ | ||
23345 | |||
23346 | #include <sys/types.h> | ||
23347 | #include <sys/socket.h> | ||
23348 | |||
23349 | int getpeername (int, $arg2 *, $t *); | ||
23350 | |||
23351 | int | ||
23352 | main () | ||
23353 | { | ||
23354 | |||
23355 | $t len; | ||
23356 | getpeername(0,0,&len); | ||
23357 | |||
23358 | ; | ||
23359 | return 0; | ||
23360 | } | ||
23361 | _ACEOF | ||
23362 | rm -f conftest.$ac_objext | ||
23363 | if { (ac_try="$ac_compile" | ||
23364 | case "(($ac_try" in | ||
23365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23366 | *) ac_try_echo=$ac_try;; | ||
23367 | esac | ||
23368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23369 | (eval "$ac_compile") 2>conftest.er1 | ||
23370 | ac_status=$? | ||
23371 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23372 | rm -f conftest.er1 | ||
23373 | cat conftest.err >&5 | ||
23374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23375 | (exit $ac_status); } && { | ||
23376 | test -z "$ac_c_werror_flag" || | ||
23377 | test ! -s conftest.err | ||
23378 | } && test -s conftest.$ac_objext; then | ||
23379 | |||
23380 | curl_cv_socklen_t_equiv="$t" | ||
23381 | break | ||
23382 | |||
23383 | else | ||
23384 | echo "$as_me: failed program was:" >&5 | ||
23385 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23386 | |||
23387 | |||
23388 | fi | ||
23389 | |||
23390 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23391 | done | ||
23392 | done | ||
23393 | |||
23394 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
23395 | { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5 | ||
23396 | echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;} | ||
23397 | { (exit 1); exit 1; }; } | ||
23398 | fi | ||
23399 | |||
23400 | fi | ||
23401 | |||
23402 | { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5 | ||
23403 | echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; } | ||
23404 | |||
23405 | cat >>confdefs.h <<_ACEOF | ||
23406 | #define socklen_t $curl_cv_socklen_t_equiv | ||
23407 | _ACEOF | ||
23408 | |||
23409 | fi | ||
23410 | |||
23411 | |||
23412 | |||
23413 | { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 | ||
23414 | echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; } | ||
23415 | if test "${ac_cv_type_sig_atomic_t+set}" = set; then | ||
23416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23417 | else | ||
23418 | cat >conftest.$ac_ext <<_ACEOF | ||
23419 | /* confdefs.h. */ | ||
23420 | _ACEOF | ||
23421 | cat confdefs.h >>conftest.$ac_ext | ||
23422 | cat >>conftest.$ac_ext <<_ACEOF | ||
23423 | /* end confdefs.h. */ | ||
23424 | #include <signal.h> | ||
23425 | |||
23426 | typedef sig_atomic_t ac__type_new_; | ||
23427 | int | ||
23428 | main () | ||
23429 | { | ||
23430 | if ((ac__type_new_ *) 0) | ||
23431 | return 0; | ||
23432 | if (sizeof (ac__type_new_)) | ||
23433 | return 0; | ||
23434 | ; | ||
23435 | return 0; | ||
23436 | } | ||
23437 | _ACEOF | ||
23438 | rm -f conftest.$ac_objext | ||
23439 | if { (ac_try="$ac_compile" | ||
23440 | case "(($ac_try" in | ||
23441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23442 | *) ac_try_echo=$ac_try;; | ||
23443 | esac | ||
23444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23445 | (eval "$ac_compile") 2>conftest.er1 | ||
23446 | ac_status=$? | ||
23447 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23448 | rm -f conftest.er1 | ||
23449 | cat conftest.err >&5 | ||
23450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23451 | (exit $ac_status); } && { | ||
23452 | test -z "$ac_c_werror_flag" || | ||
23453 | test ! -s conftest.err | ||
23454 | } && test -s conftest.$ac_objext; then | ||
23455 | ac_cv_type_sig_atomic_t=yes | ||
23456 | else | ||
23457 | echo "$as_me: failed program was:" >&5 | ||
23458 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23459 | |||
23460 | ac_cv_type_sig_atomic_t=no | ||
23461 | fi | ||
23462 | |||
23463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23464 | fi | ||
23465 | { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 | ||
23466 | echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; } | ||
23467 | if test $ac_cv_type_sig_atomic_t = yes; then | ||
23468 | |||
23469 | cat >>confdefs.h <<_ACEOF | ||
23470 | #define HAVE_SIG_ATOMIC_T 1 | ||
23471 | _ACEOF | ||
23472 | |||
23473 | |||
23474 | fi | ||
23475 | |||
23476 | { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5 | ||
23477 | echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; } | ||
23478 | if test "${ac_cv_type_fsblkcnt_t+set}" = set; then | ||
23479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23480 | else | ||
23481 | cat >conftest.$ac_ext <<_ACEOF | ||
23482 | /* confdefs.h. */ | ||
23483 | _ACEOF | ||
23484 | cat confdefs.h >>conftest.$ac_ext | ||
23485 | cat >>conftest.$ac_ext <<_ACEOF | ||
23486 | /* end confdefs.h. */ | ||
23487 | |||
23488 | #include <sys/types.h> | ||
23489 | #ifdef HAVE_SYS_BITYPES_H | ||
23490 | #include <sys/bitypes.h> | ||
23491 | #endif | ||
23492 | #ifdef HAVE_SYS_STATFS_H | ||
23493 | #include <sys/statfs.h> | ||
23494 | #endif | ||
23495 | #ifdef HAVE_SYS_STATVFS_H | ||
23496 | #include <sys/statvfs.h> | ||
23497 | #endif | ||
23498 | |||
23499 | |||
23500 | typedef fsblkcnt_t ac__type_new_; | ||
23501 | int | ||
23502 | main () | ||
23503 | { | ||
23504 | if ((ac__type_new_ *) 0) | ||
23505 | return 0; | ||
23506 | if (sizeof (ac__type_new_)) | ||
23507 | return 0; | ||
23508 | ; | ||
23509 | return 0; | ||
23510 | } | ||
23511 | _ACEOF | ||
23512 | rm -f conftest.$ac_objext | ||
23513 | if { (ac_try="$ac_compile" | ||
23514 | case "(($ac_try" in | ||
23515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23516 | *) ac_try_echo=$ac_try;; | ||
23517 | esac | ||
23518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23519 | (eval "$ac_compile") 2>conftest.er1 | ||
23520 | ac_status=$? | ||
23521 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23522 | rm -f conftest.er1 | ||
23523 | cat conftest.err >&5 | ||
23524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23525 | (exit $ac_status); } && { | ||
23526 | test -z "$ac_c_werror_flag" || | ||
23527 | test ! -s conftest.err | ||
23528 | } && test -s conftest.$ac_objext; then | ||
23529 | ac_cv_type_fsblkcnt_t=yes | ||
23530 | else | ||
23531 | echo "$as_me: failed program was:" >&5 | ||
23532 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23533 | |||
23534 | ac_cv_type_fsblkcnt_t=no | ||
23535 | fi | ||
23536 | |||
23537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23538 | fi | ||
23539 | { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5 | ||
23540 | echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; } | ||
23541 | if test $ac_cv_type_fsblkcnt_t = yes; then | ||
23542 | |||
23543 | cat >>confdefs.h <<_ACEOF | ||
23544 | #define HAVE_FSBLKCNT_T 1 | ||
23545 | _ACEOF | ||
23546 | |||
23547 | |||
23548 | fi | ||
23549 | { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5 | ||
23550 | echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; } | ||
23551 | if test "${ac_cv_type_fsfilcnt_t+set}" = set; then | ||
23552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23553 | else | ||
23554 | cat >conftest.$ac_ext <<_ACEOF | ||
23555 | /* confdefs.h. */ | ||
23556 | _ACEOF | ||
23557 | cat confdefs.h >>conftest.$ac_ext | ||
23558 | cat >>conftest.$ac_ext <<_ACEOF | ||
23559 | /* end confdefs.h. */ | ||
23560 | |||
23561 | #include <sys/types.h> | ||
23562 | #ifdef HAVE_SYS_BITYPES_H | ||
23563 | #include <sys/bitypes.h> | ||
23564 | #endif | ||
23565 | #ifdef HAVE_SYS_STATFS_H | ||
23566 | #include <sys/statfs.h> | ||
23567 | #endif | ||
23568 | #ifdef HAVE_SYS_STATVFS_H | ||
23569 | #include <sys/statvfs.h> | ||
23570 | #endif | ||
23571 | |||
23572 | |||
23573 | typedef fsfilcnt_t ac__type_new_; | ||
23574 | int | ||
23575 | main () | ||
23576 | { | ||
23577 | if ((ac__type_new_ *) 0) | ||
23578 | return 0; | ||
23579 | if (sizeof (ac__type_new_)) | ||
23580 | return 0; | ||
23581 | ; | ||
23582 | return 0; | ||
23583 | } | ||
23584 | _ACEOF | ||
23585 | rm -f conftest.$ac_objext | ||
23586 | if { (ac_try="$ac_compile" | ||
23587 | case "(($ac_try" in | ||
23588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23589 | *) ac_try_echo=$ac_try;; | ||
23590 | esac | ||
23591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23592 | (eval "$ac_compile") 2>conftest.er1 | ||
23593 | ac_status=$? | ||
23594 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23595 | rm -f conftest.er1 | ||
23596 | cat conftest.err >&5 | ||
23597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23598 | (exit $ac_status); } && { | ||
23599 | test -z "$ac_c_werror_flag" || | ||
23600 | test ! -s conftest.err | ||
23601 | } && test -s conftest.$ac_objext; then | ||
23602 | ac_cv_type_fsfilcnt_t=yes | ||
23603 | else | ||
23604 | echo "$as_me: failed program was:" >&5 | ||
23605 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23606 | |||
23607 | ac_cv_type_fsfilcnt_t=no | ||
23608 | fi | ||
23609 | |||
23610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23611 | fi | ||
23612 | { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5 | ||
23613 | echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; } | ||
23614 | if test $ac_cv_type_fsfilcnt_t = yes; then | ||
23615 | |||
23616 | cat >>confdefs.h <<_ACEOF | ||
23617 | #define HAVE_FSFILCNT_T 1 | ||
23618 | _ACEOF | ||
23619 | |||
23620 | |||
23621 | fi | ||
23622 | |||
23623 | |||
23624 | { echo "$as_me:$LINENO: checking for in_addr_t" >&5 | ||
23625 | echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; } | ||
23626 | if test "${ac_cv_type_in_addr_t+set}" = set; then | ||
23627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23628 | else | ||
23629 | cat >conftest.$ac_ext <<_ACEOF | ||
23630 | /* confdefs.h. */ | ||
23631 | _ACEOF | ||
23632 | cat confdefs.h >>conftest.$ac_ext | ||
23633 | cat >>conftest.$ac_ext <<_ACEOF | ||
23634 | /* end confdefs.h. */ | ||
23635 | #include <sys/types.h> | ||
23636 | #include <netinet/in.h> | ||
23637 | |||
23638 | typedef in_addr_t ac__type_new_; | ||
23639 | int | ||
23640 | main () | ||
23641 | { | ||
23642 | if ((ac__type_new_ *) 0) | ||
23643 | return 0; | ||
23644 | if (sizeof (ac__type_new_)) | ||
23645 | return 0; | ||
23646 | ; | ||
23647 | return 0; | ||
23648 | } | ||
23649 | _ACEOF | ||
23650 | rm -f conftest.$ac_objext | ||
23651 | if { (ac_try="$ac_compile" | ||
23652 | case "(($ac_try" in | ||
23653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23654 | *) ac_try_echo=$ac_try;; | ||
23655 | esac | ||
23656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23657 | (eval "$ac_compile") 2>conftest.er1 | ||
23658 | ac_status=$? | ||
23659 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23660 | rm -f conftest.er1 | ||
23661 | cat conftest.err >&5 | ||
23662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23663 | (exit $ac_status); } && { | ||
23664 | test -z "$ac_c_werror_flag" || | ||
23665 | test ! -s conftest.err | ||
23666 | } && test -s conftest.$ac_objext; then | ||
23667 | ac_cv_type_in_addr_t=yes | ||
23668 | else | ||
23669 | echo "$as_me: failed program was:" >&5 | ||
23670 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23671 | |||
23672 | ac_cv_type_in_addr_t=no | ||
23673 | fi | ||
23674 | |||
23675 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23676 | fi | ||
23677 | { echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5 | ||
23678 | echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; } | ||
23679 | if test $ac_cv_type_in_addr_t = yes; then | ||
23680 | |||
23681 | cat >>confdefs.h <<_ACEOF | ||
23682 | #define HAVE_IN_ADDR_T 1 | ||
23683 | _ACEOF | ||
23684 | |||
23685 | |||
23686 | fi | ||
23687 | { echo "$as_me:$LINENO: checking for in_port_t" >&5 | ||
23688 | echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; } | ||
23689 | if test "${ac_cv_type_in_port_t+set}" = set; then | ||
23690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23691 | else | ||
23692 | cat >conftest.$ac_ext <<_ACEOF | ||
23693 | /* confdefs.h. */ | ||
23694 | _ACEOF | ||
23695 | cat confdefs.h >>conftest.$ac_ext | ||
23696 | cat >>conftest.$ac_ext <<_ACEOF | ||
23697 | /* end confdefs.h. */ | ||
23698 | #include <sys/types.h> | ||
23699 | #include <netinet/in.h> | ||
23700 | |||
23701 | typedef in_port_t ac__type_new_; | ||
23702 | int | ||
23703 | main () | ||
23704 | { | ||
23705 | if ((ac__type_new_ *) 0) | ||
23706 | return 0; | ||
23707 | if (sizeof (ac__type_new_)) | ||
23708 | return 0; | ||
23709 | ; | ||
23710 | return 0; | ||
23711 | } | ||
23712 | _ACEOF | ||
23713 | rm -f conftest.$ac_objext | ||
23714 | if { (ac_try="$ac_compile" | ||
23715 | case "(($ac_try" in | ||
23716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23717 | *) ac_try_echo=$ac_try;; | ||
23718 | esac | ||
23719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23720 | (eval "$ac_compile") 2>conftest.er1 | ||
23721 | ac_status=$? | ||
23722 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23723 | rm -f conftest.er1 | ||
23724 | cat conftest.err >&5 | ||
23725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23726 | (exit $ac_status); } && { | ||
23727 | test -z "$ac_c_werror_flag" || | ||
23728 | test ! -s conftest.err | ||
23729 | } && test -s conftest.$ac_objext; then | ||
23730 | ac_cv_type_in_port_t=yes | ||
23731 | else | ||
23732 | echo "$as_me: failed program was:" >&5 | ||
23733 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23734 | |||
23735 | ac_cv_type_in_port_t=no | ||
23736 | fi | ||
23737 | |||
23738 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23739 | fi | ||
23740 | { echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5 | ||
23741 | echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; } | ||
23742 | if test $ac_cv_type_in_port_t = yes; then | ||
23743 | |||
23744 | cat >>confdefs.h <<_ACEOF | ||
23745 | #define HAVE_IN_PORT_T 1 | ||
23746 | _ACEOF | ||
23747 | |||
23748 | |||
23749 | fi | ||
23750 | |||
23751 | |||
23752 | { echo "$as_me:$LINENO: checking for size_t" >&5 | ||
23753 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | ||
23754 | if test "${ac_cv_have_size_t+set}" = set; then | ||
23755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23756 | else | ||
23757 | |||
23758 | cat >conftest.$ac_ext <<_ACEOF | ||
23759 | /* confdefs.h. */ | ||
23760 | _ACEOF | ||
23761 | cat confdefs.h >>conftest.$ac_ext | ||
23762 | cat >>conftest.$ac_ext <<_ACEOF | ||
23763 | /* end confdefs.h. */ | ||
23764 | |||
23765 | #include <sys/types.h> | ||
23766 | |||
23767 | int | ||
23768 | main () | ||
23769 | { | ||
23770 | size_t foo; foo = 1235; | ||
23771 | ; | ||
23772 | return 0; | ||
23773 | } | ||
23774 | _ACEOF | ||
23775 | rm -f conftest.$ac_objext | ||
23776 | if { (ac_try="$ac_compile" | ||
23777 | case "(($ac_try" in | ||
23778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23779 | *) ac_try_echo=$ac_try;; | ||
23780 | esac | ||
23781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23782 | (eval "$ac_compile") 2>conftest.er1 | ||
23783 | ac_status=$? | ||
23784 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23785 | rm -f conftest.er1 | ||
23786 | cat conftest.err >&5 | ||
23787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23788 | (exit $ac_status); } && { | ||
23789 | test -z "$ac_c_werror_flag" || | ||
23790 | test ! -s conftest.err | ||
23791 | } && test -s conftest.$ac_objext; then | ||
23792 | ac_cv_have_size_t="yes" | ||
23793 | else | ||
23794 | echo "$as_me: failed program was:" >&5 | ||
23795 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23796 | |||
23797 | ac_cv_have_size_t="no" | ||
23798 | |||
23799 | fi | ||
23800 | |||
23801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23802 | |||
23803 | fi | ||
23804 | { echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5 | ||
23805 | echo "${ECHO_T}$ac_cv_have_size_t" >&6; } | ||
23806 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
23807 | |||
23808 | cat >>confdefs.h <<\_ACEOF | ||
23809 | #define HAVE_SIZE_T 1 | ||
23810 | _ACEOF | ||
23811 | |||
23812 | fi | ||
23813 | |||
23814 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 | ||
23815 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } | ||
23816 | if test "${ac_cv_have_ssize_t+set}" = set; then | ||
23817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23818 | else | ||
23819 | |||
23820 | cat >conftest.$ac_ext <<_ACEOF | ||
23821 | /* confdefs.h. */ | ||
23822 | _ACEOF | ||
23823 | cat confdefs.h >>conftest.$ac_ext | ||
23824 | cat >>conftest.$ac_ext <<_ACEOF | ||
23825 | /* end confdefs.h. */ | ||
23826 | |||
23827 | #include <sys/types.h> | ||
23828 | |||
23829 | int | ||
23830 | main () | ||
23831 | { | ||
23832 | ssize_t foo; foo = 1235; | ||
23833 | ; | ||
23834 | return 0; | ||
23835 | } | ||
23836 | _ACEOF | ||
23837 | rm -f conftest.$ac_objext | ||
23838 | if { (ac_try="$ac_compile" | ||
23839 | case "(($ac_try" in | ||
23840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23841 | *) ac_try_echo=$ac_try;; | ||
23842 | esac | ||
23843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23844 | (eval "$ac_compile") 2>conftest.er1 | ||
23845 | ac_status=$? | ||
23846 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23847 | rm -f conftest.er1 | ||
23848 | cat conftest.err >&5 | ||
23849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23850 | (exit $ac_status); } && { | ||
23851 | test -z "$ac_c_werror_flag" || | ||
23852 | test ! -s conftest.err | ||
23853 | } && test -s conftest.$ac_objext; then | ||
23854 | ac_cv_have_ssize_t="yes" | ||
23855 | else | ||
23856 | echo "$as_me: failed program was:" >&5 | ||
23857 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23858 | |||
23859 | ac_cv_have_ssize_t="no" | ||
23860 | |||
23861 | fi | ||
23862 | |||
23863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23864 | |||
23865 | fi | ||
23866 | { echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5 | ||
23867 | echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; } | ||
23868 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
23869 | |||
23870 | cat >>confdefs.h <<\_ACEOF | ||
23871 | #define HAVE_SSIZE_T 1 | ||
23872 | _ACEOF | ||
23873 | |||
23874 | fi | ||
23875 | |||
23876 | { echo "$as_me:$LINENO: checking for clock_t" >&5 | ||
23877 | echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; } | ||
23878 | if test "${ac_cv_have_clock_t+set}" = set; then | ||
23879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23880 | else | ||
23881 | |||
23882 | cat >conftest.$ac_ext <<_ACEOF | ||
23883 | /* confdefs.h. */ | ||
23884 | _ACEOF | ||
23885 | cat confdefs.h >>conftest.$ac_ext | ||
23886 | cat >>conftest.$ac_ext <<_ACEOF | ||
23887 | /* end confdefs.h. */ | ||
23888 | |||
23889 | #include <time.h> | ||
23890 | |||
23891 | int | ||
23892 | main () | ||
23893 | { | ||
23894 | clock_t foo; foo = 1235; | ||
23895 | ; | ||
23896 | return 0; | ||
23897 | } | ||
23898 | _ACEOF | ||
23899 | rm -f conftest.$ac_objext | ||
23900 | if { (ac_try="$ac_compile" | ||
23901 | case "(($ac_try" in | ||
23902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23903 | *) ac_try_echo=$ac_try;; | ||
23904 | esac | ||
23905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23906 | (eval "$ac_compile") 2>conftest.er1 | ||
23907 | ac_status=$? | ||
23908 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23909 | rm -f conftest.er1 | ||
23910 | cat conftest.err >&5 | ||
23911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23912 | (exit $ac_status); } && { | ||
23913 | test -z "$ac_c_werror_flag" || | ||
23914 | test ! -s conftest.err | ||
23915 | } && test -s conftest.$ac_objext; then | ||
23916 | ac_cv_have_clock_t="yes" | ||
23917 | else | ||
23918 | echo "$as_me: failed program was:" >&5 | ||
23919 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23920 | |||
23921 | ac_cv_have_clock_t="no" | ||
23922 | |||
23923 | fi | ||
23924 | |||
23925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23926 | |||
23927 | fi | ||
23928 | { echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5 | ||
23929 | echo "${ECHO_T}$ac_cv_have_clock_t" >&6; } | ||
23930 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
23931 | |||
23932 | cat >>confdefs.h <<\_ACEOF | ||
23933 | #define HAVE_CLOCK_T 1 | ||
23934 | _ACEOF | ||
23935 | |||
23936 | fi | ||
23937 | |||
23938 | { echo "$as_me:$LINENO: checking for sa_family_t" >&5 | ||
23939 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; } | ||
23940 | if test "${ac_cv_have_sa_family_t+set}" = set; then | ||
23941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23942 | else | ||
23943 | |||
23944 | cat >conftest.$ac_ext <<_ACEOF | ||
23945 | /* confdefs.h. */ | ||
23946 | _ACEOF | ||
23947 | cat confdefs.h >>conftest.$ac_ext | ||
23948 | cat >>conftest.$ac_ext <<_ACEOF | ||
23949 | /* end confdefs.h. */ | ||
23950 | |||
23951 | #include <sys/types.h> | ||
23952 | #include <sys/socket.h> | ||
23953 | |||
23954 | int | ||
23955 | main () | ||
23956 | { | ||
23957 | sa_family_t foo; foo = 1235; | ||
23958 | ; | ||
23959 | return 0; | ||
23960 | } | ||
23961 | _ACEOF | ||
23962 | rm -f conftest.$ac_objext | ||
23963 | if { (ac_try="$ac_compile" | ||
23964 | case "(($ac_try" in | ||
23965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23966 | *) ac_try_echo=$ac_try;; | ||
23967 | esac | ||
23968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23969 | (eval "$ac_compile") 2>conftest.er1 | ||
23970 | ac_status=$? | ||
23971 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23972 | rm -f conftest.er1 | ||
23973 | cat conftest.err >&5 | ||
23974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23975 | (exit $ac_status); } && { | ||
23976 | test -z "$ac_c_werror_flag" || | ||
23977 | test ! -s conftest.err | ||
23978 | } && test -s conftest.$ac_objext; then | ||
23979 | ac_cv_have_sa_family_t="yes" | ||
23980 | else | ||
23981 | echo "$as_me: failed program was:" >&5 | ||
23982 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23983 | |||
23984 | cat >conftest.$ac_ext <<_ACEOF | ||
23985 | /* confdefs.h. */ | ||
23986 | _ACEOF | ||
23987 | cat confdefs.h >>conftest.$ac_ext | ||
23988 | cat >>conftest.$ac_ext <<_ACEOF | ||
23989 | /* end confdefs.h. */ | ||
23990 | |||
23991 | #include <sys/types.h> | ||
23992 | #include <sys/socket.h> | ||
23993 | #include <netinet/in.h> | ||
23994 | |||
23995 | int | ||
23996 | main () | ||
23997 | { | ||
23998 | sa_family_t foo; foo = 1235; | ||
23999 | ; | ||
24000 | return 0; | ||
24001 | } | ||
24002 | _ACEOF | ||
24003 | rm -f conftest.$ac_objext | ||
24004 | if { (ac_try="$ac_compile" | ||
24005 | case "(($ac_try" in | ||
24006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24007 | *) ac_try_echo=$ac_try;; | ||
24008 | esac | ||
24009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24010 | (eval "$ac_compile") 2>conftest.er1 | ||
24011 | ac_status=$? | ||
24012 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24013 | rm -f conftest.er1 | ||
24014 | cat conftest.err >&5 | ||
24015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24016 | (exit $ac_status); } && { | ||
24017 | test -z "$ac_c_werror_flag" || | ||
24018 | test ! -s conftest.err | ||
24019 | } && test -s conftest.$ac_objext; then | ||
24020 | ac_cv_have_sa_family_t="yes" | ||
24021 | else | ||
24022 | echo "$as_me: failed program was:" >&5 | ||
24023 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24024 | |||
24025 | ac_cv_have_sa_family_t="no" | ||
24026 | |||
24027 | fi | ||
24028 | |||
24029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24030 | |||
24031 | fi | ||
24032 | |||
24033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24034 | |||
24035 | fi | ||
24036 | { echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5 | ||
24037 | echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; } | ||
24038 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
24039 | |||
24040 | cat >>confdefs.h <<\_ACEOF | ||
24041 | #define HAVE_SA_FAMILY_T 1 | ||
24042 | _ACEOF | ||
24043 | |||
24044 | fi | ||
24045 | |||
24046 | { echo "$as_me:$LINENO: checking for pid_t" >&5 | ||
24047 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | ||
24048 | if test "${ac_cv_have_pid_t+set}" = set; then | ||
24049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24050 | else | ||
24051 | |||
24052 | cat >conftest.$ac_ext <<_ACEOF | ||
24053 | /* confdefs.h. */ | ||
24054 | _ACEOF | ||
24055 | cat confdefs.h >>conftest.$ac_ext | ||
24056 | cat >>conftest.$ac_ext <<_ACEOF | ||
24057 | /* end confdefs.h. */ | ||
24058 | |||
24059 | #include <sys/types.h> | ||
24060 | |||
24061 | int | ||
24062 | main () | ||
24063 | { | ||
24064 | pid_t foo; foo = 1235; | ||
24065 | ; | ||
24066 | return 0; | ||
24067 | } | ||
24068 | _ACEOF | ||
24069 | rm -f conftest.$ac_objext | ||
24070 | if { (ac_try="$ac_compile" | ||
24071 | case "(($ac_try" in | ||
24072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24073 | *) ac_try_echo=$ac_try;; | ||
24074 | esac | ||
24075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24076 | (eval "$ac_compile") 2>conftest.er1 | ||
24077 | ac_status=$? | ||
24078 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24079 | rm -f conftest.er1 | ||
24080 | cat conftest.err >&5 | ||
24081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24082 | (exit $ac_status); } && { | ||
24083 | test -z "$ac_c_werror_flag" || | ||
24084 | test ! -s conftest.err | ||
24085 | } && test -s conftest.$ac_objext; then | ||
24086 | ac_cv_have_pid_t="yes" | ||
24087 | else | ||
24088 | echo "$as_me: failed program was:" >&5 | ||
24089 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24090 | |||
24091 | ac_cv_have_pid_t="no" | ||
24092 | |||
24093 | fi | ||
24094 | |||
24095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24096 | |||
24097 | fi | ||
24098 | { echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5 | ||
24099 | echo "${ECHO_T}$ac_cv_have_pid_t" >&6; } | ||
24100 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
24101 | |||
24102 | cat >>confdefs.h <<\_ACEOF | ||
24103 | #define HAVE_PID_T 1 | ||
24104 | _ACEOF | ||
24105 | |||
24106 | fi | ||
24107 | |||
24108 | { echo "$as_me:$LINENO: checking for mode_t" >&5 | ||
24109 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } | ||
24110 | if test "${ac_cv_have_mode_t+set}" = set; then | ||
24111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24112 | else | ||
24113 | |||
24114 | cat >conftest.$ac_ext <<_ACEOF | ||
24115 | /* confdefs.h. */ | ||
24116 | _ACEOF | ||
24117 | cat confdefs.h >>conftest.$ac_ext | ||
24118 | cat >>conftest.$ac_ext <<_ACEOF | ||
24119 | /* end confdefs.h. */ | ||
24120 | |||
24121 | #include <sys/types.h> | ||
24122 | |||
24123 | int | ||
24124 | main () | ||
24125 | { | ||
24126 | mode_t foo; foo = 1235; | ||
24127 | ; | ||
24128 | return 0; | ||
24129 | } | ||
24130 | _ACEOF | ||
24131 | rm -f conftest.$ac_objext | ||
24132 | if { (ac_try="$ac_compile" | ||
24133 | case "(($ac_try" in | ||
24134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24135 | *) ac_try_echo=$ac_try;; | ||
24136 | esac | ||
24137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24138 | (eval "$ac_compile") 2>conftest.er1 | ||
24139 | ac_status=$? | ||
24140 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24141 | rm -f conftest.er1 | ||
24142 | cat conftest.err >&5 | ||
24143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24144 | (exit $ac_status); } && { | ||
24145 | test -z "$ac_c_werror_flag" || | ||
24146 | test ! -s conftest.err | ||
24147 | } && test -s conftest.$ac_objext; then | ||
24148 | ac_cv_have_mode_t="yes" | ||
24149 | else | ||
24150 | echo "$as_me: failed program was:" >&5 | ||
24151 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24152 | |||
24153 | ac_cv_have_mode_t="no" | ||
24154 | |||
24155 | fi | ||
24156 | |||
24157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24158 | |||
24159 | fi | ||
24160 | { echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5 | ||
24161 | echo "${ECHO_T}$ac_cv_have_mode_t" >&6; } | ||
24162 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
24163 | |||
24164 | cat >>confdefs.h <<\_ACEOF | ||
24165 | #define HAVE_MODE_T 1 | ||
24166 | _ACEOF | ||
24167 | |||
24168 | fi | ||
24169 | |||
24170 | |||
24171 | { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 | ||
24172 | echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; } | ||
24173 | if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then | ||
24174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24175 | else | ||
24176 | |||
24177 | cat >conftest.$ac_ext <<_ACEOF | ||
24178 | /* confdefs.h. */ | ||
24179 | _ACEOF | ||
24180 | cat confdefs.h >>conftest.$ac_ext | ||
24181 | cat >>conftest.$ac_ext <<_ACEOF | ||
24182 | /* end confdefs.h. */ | ||
24183 | |||
24184 | #include <sys/types.h> | ||
24185 | #include <sys/socket.h> | ||
24186 | |||
24187 | int | ||
24188 | main () | ||
24189 | { | ||
24190 | struct sockaddr_storage s; | ||
24191 | ; | ||
24192 | return 0; | ||
24193 | } | ||
24194 | _ACEOF | ||
24195 | rm -f conftest.$ac_objext | ||
24196 | if { (ac_try="$ac_compile" | ||
24197 | case "(($ac_try" in | ||
24198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24199 | *) ac_try_echo=$ac_try;; | ||
24200 | esac | ||
24201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24202 | (eval "$ac_compile") 2>conftest.er1 | ||
24203 | ac_status=$? | ||
24204 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24205 | rm -f conftest.er1 | ||
24206 | cat conftest.err >&5 | ||
24207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24208 | (exit $ac_status); } && { | ||
24209 | test -z "$ac_c_werror_flag" || | ||
24210 | test ! -s conftest.err | ||
24211 | } && test -s conftest.$ac_objext; then | ||
24212 | ac_cv_have_struct_sockaddr_storage="yes" | ||
24213 | else | ||
24214 | echo "$as_me: failed program was:" >&5 | ||
24215 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24216 | |||
24217 | ac_cv_have_struct_sockaddr_storage="no" | ||
24218 | |||
24219 | fi | ||
24220 | |||
24221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24222 | |||
24223 | fi | ||
24224 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
24225 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; } | ||
24226 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
24227 | |||
24228 | cat >>confdefs.h <<\_ACEOF | ||
24229 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | ||
24230 | _ACEOF | ||
24231 | |||
24232 | fi | ||
24233 | |||
24234 | { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 | ||
24235 | echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; } | ||
24236 | if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then | ||
24237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24238 | else | ||
24239 | |||
24240 | cat >conftest.$ac_ext <<_ACEOF | ||
24241 | /* confdefs.h. */ | ||
24242 | _ACEOF | ||
24243 | cat confdefs.h >>conftest.$ac_ext | ||
24244 | cat >>conftest.$ac_ext <<_ACEOF | ||
24245 | /* end confdefs.h. */ | ||
24246 | |||
24247 | #include <sys/types.h> | ||
24248 | #include <netinet/in.h> | ||
24249 | |||
24250 | int | ||
24251 | main () | ||
24252 | { | ||
24253 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
24254 | ; | ||
24255 | return 0; | ||
24256 | } | ||
24257 | _ACEOF | ||
24258 | rm -f conftest.$ac_objext | ||
24259 | if { (ac_try="$ac_compile" | ||
24260 | case "(($ac_try" in | ||
24261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24262 | *) ac_try_echo=$ac_try;; | ||
24263 | esac | ||
24264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24265 | (eval "$ac_compile") 2>conftest.er1 | ||
24266 | ac_status=$? | ||
24267 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24268 | rm -f conftest.er1 | ||
24269 | cat conftest.err >&5 | ||
24270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24271 | (exit $ac_status); } && { | ||
24272 | test -z "$ac_c_werror_flag" || | ||
24273 | test ! -s conftest.err | ||
24274 | } && test -s conftest.$ac_objext; then | ||
24275 | ac_cv_have_struct_sockaddr_in6="yes" | ||
24276 | else | ||
24277 | echo "$as_me: failed program was:" >&5 | ||
24278 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24279 | |||
24280 | ac_cv_have_struct_sockaddr_in6="no" | ||
24281 | |||
24282 | fi | ||
24283 | |||
24284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24285 | |||
24286 | fi | ||
24287 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
24288 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; } | ||
24289 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
24290 | |||
24291 | cat >>confdefs.h <<\_ACEOF | ||
24292 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | ||
24293 | _ACEOF | ||
24294 | |||
24295 | fi | ||
24296 | |||
24297 | { echo "$as_me:$LINENO: checking for struct in6_addr" >&5 | ||
24298 | echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; } | ||
24299 | if test "${ac_cv_have_struct_in6_addr+set}" = set; then | ||
24300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24301 | else | ||
24302 | |||
24303 | cat >conftest.$ac_ext <<_ACEOF | ||
24304 | /* confdefs.h. */ | ||
24305 | _ACEOF | ||
24306 | cat confdefs.h >>conftest.$ac_ext | ||
24307 | cat >>conftest.$ac_ext <<_ACEOF | ||
24308 | /* end confdefs.h. */ | ||
24309 | |||
24310 | #include <sys/types.h> | ||
24311 | #include <netinet/in.h> | ||
24312 | |||
24313 | int | ||
24314 | main () | ||
24315 | { | ||
24316 | struct in6_addr s; s.s6_addr[0] = 0; | ||
24317 | ; | ||
24318 | return 0; | ||
24319 | } | ||
24320 | _ACEOF | ||
24321 | rm -f conftest.$ac_objext | ||
24322 | if { (ac_try="$ac_compile" | ||
24323 | case "(($ac_try" in | ||
24324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24325 | *) ac_try_echo=$ac_try;; | ||
24326 | esac | ||
24327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24328 | (eval "$ac_compile") 2>conftest.er1 | ||
24329 | ac_status=$? | ||
24330 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24331 | rm -f conftest.er1 | ||
24332 | cat conftest.err >&5 | ||
24333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24334 | (exit $ac_status); } && { | ||
24335 | test -z "$ac_c_werror_flag" || | ||
24336 | test ! -s conftest.err | ||
24337 | } && test -s conftest.$ac_objext; then | ||
24338 | ac_cv_have_struct_in6_addr="yes" | ||
24339 | else | ||
24340 | echo "$as_me: failed program was:" >&5 | ||
24341 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24342 | |||
24343 | ac_cv_have_struct_in6_addr="no" | ||
24344 | |||
24345 | fi | ||
24346 | |||
24347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24348 | |||
24349 | fi | ||
24350 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5 | ||
24351 | echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; } | ||
24352 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
24353 | |||
24354 | cat >>confdefs.h <<\_ACEOF | ||
24355 | #define HAVE_STRUCT_IN6_ADDR 1 | ||
24356 | _ACEOF | ||
24357 | |||
24358 | |||
24359 | { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5 | ||
24360 | echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; } | ||
24361 | if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then | ||
24362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24363 | else | ||
24364 | cat >conftest.$ac_ext <<_ACEOF | ||
24365 | /* confdefs.h. */ | ||
24366 | _ACEOF | ||
24367 | cat confdefs.h >>conftest.$ac_ext | ||
24368 | cat >>conftest.$ac_ext <<_ACEOF | ||
24369 | /* end confdefs.h. */ | ||
24370 | |||
24371 | #ifdef HAVE_SYS_TYPES_H | ||
24372 | #include <sys/types.h> | ||
24373 | #endif | ||
24374 | #include <netinet/in.h> | ||
24375 | |||
24376 | |||
24377 | int | ||
24378 | main () | ||
24379 | { | ||
24380 | static struct sockaddr_in6 ac_aggr; | ||
24381 | if (ac_aggr.sin6_scope_id) | ||
24382 | return 0; | ||
24383 | ; | ||
24384 | return 0; | ||
24385 | } | ||
24386 | _ACEOF | ||
24387 | rm -f conftest.$ac_objext | ||
24388 | if { (ac_try="$ac_compile" | ||
24389 | case "(($ac_try" in | ||
24390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24391 | *) ac_try_echo=$ac_try;; | ||
24392 | esac | ||
24393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24394 | (eval "$ac_compile") 2>conftest.er1 | ||
24395 | ac_status=$? | ||
24396 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24397 | rm -f conftest.er1 | ||
24398 | cat conftest.err >&5 | ||
24399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24400 | (exit $ac_status); } && { | ||
24401 | test -z "$ac_c_werror_flag" || | ||
24402 | test ! -s conftest.err | ||
24403 | } && test -s conftest.$ac_objext; then | ||
24404 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes | ||
24405 | else | ||
24406 | echo "$as_me: failed program was:" >&5 | ||
24407 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24408 | |||
24409 | cat >conftest.$ac_ext <<_ACEOF | ||
24410 | /* confdefs.h. */ | ||
24411 | _ACEOF | ||
24412 | cat confdefs.h >>conftest.$ac_ext | ||
24413 | cat >>conftest.$ac_ext <<_ACEOF | ||
24414 | /* end confdefs.h. */ | ||
24415 | |||
24416 | #ifdef HAVE_SYS_TYPES_H | ||
24417 | #include <sys/types.h> | ||
24418 | #endif | ||
24419 | #include <netinet/in.h> | ||
24420 | |||
24421 | |||
24422 | int | ||
24423 | main () | ||
24424 | { | ||
24425 | static struct sockaddr_in6 ac_aggr; | ||
24426 | if (sizeof ac_aggr.sin6_scope_id) | ||
24427 | return 0; | ||
24428 | ; | ||
24429 | return 0; | ||
24430 | } | ||
24431 | _ACEOF | ||
24432 | rm -f conftest.$ac_objext | ||
24433 | if { (ac_try="$ac_compile" | ||
24434 | case "(($ac_try" in | ||
24435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24436 | *) ac_try_echo=$ac_try;; | ||
24437 | esac | ||
24438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24439 | (eval "$ac_compile") 2>conftest.er1 | ||
24440 | ac_status=$? | ||
24441 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24442 | rm -f conftest.er1 | ||
24443 | cat conftest.err >&5 | ||
24444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24445 | (exit $ac_status); } && { | ||
24446 | test -z "$ac_c_werror_flag" || | ||
24447 | test ! -s conftest.err | ||
24448 | } && test -s conftest.$ac_objext; then | ||
24449 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes | ||
24450 | else | ||
24451 | echo "$as_me: failed program was:" >&5 | ||
24452 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24453 | |||
24454 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no | ||
24455 | fi | ||
24456 | |||
24457 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24458 | fi | ||
24459 | |||
24460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24461 | fi | ||
24462 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5 | ||
24463 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; } | ||
24464 | if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then | ||
24465 | |||
24466 | cat >>confdefs.h <<_ACEOF | ||
24467 | #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 | ||
24468 | _ACEOF | ||
24469 | |||
24470 | |||
24471 | fi | ||
24472 | |||
24473 | fi | ||
24474 | |||
24475 | { echo "$as_me:$LINENO: checking for struct addrinfo" >&5 | ||
24476 | echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; } | ||
24477 | if test "${ac_cv_have_struct_addrinfo+set}" = set; then | ||
24478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24479 | else | ||
24480 | |||
24481 | cat >conftest.$ac_ext <<_ACEOF | ||
24482 | /* confdefs.h. */ | ||
24483 | _ACEOF | ||
24484 | cat confdefs.h >>conftest.$ac_ext | ||
24485 | cat >>conftest.$ac_ext <<_ACEOF | ||
24486 | /* end confdefs.h. */ | ||
24487 | |||
24488 | #include <sys/types.h> | ||
24489 | #include <sys/socket.h> | ||
24490 | #include <netdb.h> | ||
24491 | |||
24492 | int | ||
24493 | main () | ||
24494 | { | ||
24495 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
24496 | ; | ||
24497 | return 0; | ||
24498 | } | ||
24499 | _ACEOF | ||
24500 | rm -f conftest.$ac_objext | ||
24501 | if { (ac_try="$ac_compile" | ||
24502 | case "(($ac_try" in | ||
24503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24504 | *) ac_try_echo=$ac_try;; | ||
24505 | esac | ||
24506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24507 | (eval "$ac_compile") 2>conftest.er1 | ||
24508 | ac_status=$? | ||
24509 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24510 | rm -f conftest.er1 | ||
24511 | cat conftest.err >&5 | ||
24512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24513 | (exit $ac_status); } && { | ||
24514 | test -z "$ac_c_werror_flag" || | ||
24515 | test ! -s conftest.err | ||
24516 | } && test -s conftest.$ac_objext; then | ||
24517 | ac_cv_have_struct_addrinfo="yes" | ||
24518 | else | ||
24519 | echo "$as_me: failed program was:" >&5 | ||
24520 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24521 | |||
24522 | ac_cv_have_struct_addrinfo="no" | ||
24523 | |||
24524 | fi | ||
24525 | |||
24526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24527 | |||
24528 | fi | ||
24529 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5 | ||
24530 | echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; } | ||
24531 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
24532 | |||
24533 | cat >>confdefs.h <<\_ACEOF | ||
24534 | #define HAVE_STRUCT_ADDRINFO 1 | ||
24535 | _ACEOF | ||
24536 | |||
24537 | fi | ||
24538 | |||
24539 | { echo "$as_me:$LINENO: checking for struct timeval" >&5 | ||
24540 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; } | ||
24541 | if test "${ac_cv_have_struct_timeval+set}" = set; then | ||
24542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24543 | else | ||
24544 | |||
24545 | cat >conftest.$ac_ext <<_ACEOF | ||
24546 | /* confdefs.h. */ | ||
24547 | _ACEOF | ||
24548 | cat confdefs.h >>conftest.$ac_ext | ||
24549 | cat >>conftest.$ac_ext <<_ACEOF | ||
24550 | /* end confdefs.h. */ | ||
24551 | #include <sys/time.h> | ||
24552 | int | ||
24553 | main () | ||
24554 | { | ||
24555 | struct timeval tv; tv.tv_sec = 1; | ||
24556 | ; | ||
24557 | return 0; | ||
24558 | } | ||
24559 | _ACEOF | ||
24560 | rm -f conftest.$ac_objext | ||
24561 | if { (ac_try="$ac_compile" | ||
24562 | case "(($ac_try" in | ||
24563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24564 | *) ac_try_echo=$ac_try;; | ||
24565 | esac | ||
24566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24567 | (eval "$ac_compile") 2>conftest.er1 | ||
24568 | ac_status=$? | ||
24569 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24570 | rm -f conftest.er1 | ||
24571 | cat conftest.err >&5 | ||
24572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24573 | (exit $ac_status); } && { | ||
24574 | test -z "$ac_c_werror_flag" || | ||
24575 | test ! -s conftest.err | ||
24576 | } && test -s conftest.$ac_objext; then | ||
24577 | ac_cv_have_struct_timeval="yes" | ||
24578 | else | ||
24579 | echo "$as_me: failed program was:" >&5 | ||
24580 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24581 | |||
24582 | ac_cv_have_struct_timeval="no" | ||
24583 | |||
24584 | fi | ||
24585 | |||
24586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24587 | |||
24588 | fi | ||
24589 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5 | ||
24590 | echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; } | ||
24591 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
24592 | |||
24593 | cat >>confdefs.h <<\_ACEOF | ||
24594 | #define HAVE_STRUCT_TIMEVAL 1 | ||
24595 | _ACEOF | ||
24596 | |||
24597 | have_struct_timeval=1 | ||
24598 | fi | ||
24599 | |||
24600 | { echo "$as_me:$LINENO: checking for struct timespec" >&5 | ||
24601 | echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; } | ||
24602 | if test "${ac_cv_type_struct_timespec+set}" = set; then | ||
24603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24604 | else | ||
24605 | cat >conftest.$ac_ext <<_ACEOF | ||
24606 | /* confdefs.h. */ | ||
24607 | _ACEOF | ||
24608 | cat confdefs.h >>conftest.$ac_ext | ||
24609 | cat >>conftest.$ac_ext <<_ACEOF | ||
24610 | /* end confdefs.h. */ | ||
24611 | $ac_includes_default | ||
24612 | typedef struct timespec ac__type_new_; | ||
24613 | int | ||
24614 | main () | ||
24615 | { | ||
24616 | if ((ac__type_new_ *) 0) | ||
24617 | return 0; | ||
24618 | if (sizeof (ac__type_new_)) | ||
24619 | return 0; | ||
24620 | ; | ||
24621 | return 0; | ||
24622 | } | ||
24623 | _ACEOF | ||
24624 | rm -f conftest.$ac_objext | ||
24625 | if { (ac_try="$ac_compile" | ||
24626 | case "(($ac_try" in | ||
24627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24628 | *) ac_try_echo=$ac_try;; | ||
24629 | esac | ||
24630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24631 | (eval "$ac_compile") 2>conftest.er1 | ||
24632 | ac_status=$? | ||
24633 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24634 | rm -f conftest.er1 | ||
24635 | cat conftest.err >&5 | ||
24636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24637 | (exit $ac_status); } && { | ||
24638 | test -z "$ac_c_werror_flag" || | ||
24639 | test ! -s conftest.err | ||
24640 | } && test -s conftest.$ac_objext; then | ||
24641 | ac_cv_type_struct_timespec=yes | ||
24642 | else | ||
24643 | echo "$as_me: failed program was:" >&5 | ||
24644 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24645 | |||
24646 | ac_cv_type_struct_timespec=no | ||
24647 | fi | ||
24648 | |||
24649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24650 | fi | ||
24651 | { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5 | ||
24652 | echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; } | ||
24653 | if test $ac_cv_type_struct_timespec = yes; then | ||
24654 | |||
24655 | cat >>confdefs.h <<_ACEOF | ||
24656 | #define HAVE_STRUCT_TIMESPEC 1 | ||
24657 | _ACEOF | ||
24658 | |||
24659 | |||
24660 | fi | ||
24661 | |||
24662 | |||
24663 | # We need int64_t or else certian parts of the compile will fail. | ||
24664 | if test "x$ac_cv_have_int64_t" = "xno" && \ | ||
24665 | test "x$ac_cv_sizeof_long_int" != "x8" && \ | ||
24666 | test "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
24667 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
24668 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
24669 | echo "" | ||
24670 | exit 1; | ||
24671 | else | ||
24672 | if test "$cross_compiling" = yes; then | ||
24673 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
24674 | echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
24675 | |||
24676 | else | ||
24677 | cat >conftest.$ac_ext <<_ACEOF | ||
24678 | /* confdefs.h. */ | ||
24679 | _ACEOF | ||
24680 | cat confdefs.h >>conftest.$ac_ext | ||
24681 | cat >>conftest.$ac_ext <<_ACEOF | ||
24682 | /* end confdefs.h. */ | ||
24683 | |||
24684 | #include <stdio.h> | ||
24685 | #include <string.h> | ||
24686 | #ifdef HAVE_SNPRINTF | ||
24687 | main() | ||
24688 | { | ||
24689 | char buf[50]; | ||
24690 | char expected_out[50]; | ||
24691 | int mazsize = 50 ; | ||
24692 | #if (SIZEOF_LONG_INT == 8) | ||
24693 | long int num = 0x7fffffffffffffff; | ||
24694 | #else | ||
24695 | long long num = 0x7fffffffffffffffll; | ||
24696 | #endif | ||
24697 | strcpy(expected_out, "9223372036854775807"); | ||
24698 | snprintf(buf, mazsize, "%lld", num); | ||
24699 | if(strcmp(buf, expected_out) != 0) | ||
24700 | exit(1); | ||
24701 | exit(0); | ||
24702 | } | ||
24703 | #else | ||
24704 | main() { exit(0); } | ||
24705 | #endif | ||
24706 | |||
24707 | _ACEOF | ||
24708 | rm -f conftest$ac_exeext | ||
24709 | if { (ac_try="$ac_link" | ||
24710 | case "(($ac_try" in | ||
24711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24712 | *) ac_try_echo=$ac_try;; | ||
24713 | esac | ||
24714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24715 | (eval "$ac_link") 2>&5 | ||
24716 | ac_status=$? | ||
24717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24718 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
24719 | { (case "(($ac_try" in | ||
24720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24721 | *) ac_try_echo=$ac_try;; | ||
24722 | esac | ||
24723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24724 | (eval "$ac_try") 2>&5 | ||
24725 | ac_status=$? | ||
24726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24727 | (exit $ac_status); }; }; then | ||
24728 | true | ||
24729 | else | ||
24730 | echo "$as_me: program exited with status $ac_status" >&5 | ||
24731 | echo "$as_me: failed program was:" >&5 | ||
24732 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24733 | |||
24734 | ( exit $ac_status ) | ||
24735 | cat >>confdefs.h <<\_ACEOF | ||
24736 | #define BROKEN_SNPRINTF 1 | ||
24737 | _ACEOF | ||
24738 | |||
24739 | fi | ||
24740 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
24741 | fi | ||
24742 | |||
24743 | |||
24744 | fi | ||
24745 | |||
24746 | |||
24747 | # look for field 'ut_host' in header 'utmp.h' | ||
24748 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
24749 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
24750 | { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5 | ||
24751 | echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; } | ||
24752 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24754 | else | ||
24755 | |||
24756 | cat >conftest.$ac_ext <<_ACEOF | ||
24757 | /* confdefs.h. */ | ||
24758 | _ACEOF | ||
24759 | cat confdefs.h >>conftest.$ac_ext | ||
24760 | cat >>conftest.$ac_ext <<_ACEOF | ||
24761 | /* end confdefs.h. */ | ||
24762 | #include <utmp.h> | ||
24763 | |||
24764 | _ACEOF | ||
24765 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24766 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
24767 | eval "$ossh_varname=yes" | ||
24768 | else | ||
24769 | eval "$ossh_varname=no" | ||
24770 | fi | ||
24771 | rm -f conftest* | ||
24772 | |||
24773 | fi | ||
24774 | |||
24775 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24776 | if test -n "`echo $ossh_varname`"; then | ||
24777 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24778 | echo "${ECHO_T}$ossh_result" >&6; } | ||
24779 | if test "x$ossh_result" = "xyes"; then | ||
24780 | |||
24781 | cat >>confdefs.h <<\_ACEOF | ||
24782 | #define HAVE_HOST_IN_UTMP 1 | ||
24783 | _ACEOF | ||
24784 | |||
24785 | fi | ||
24786 | else | ||
24787 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24788 | echo "${ECHO_T}no" >&6; } | ||
24789 | fi | ||
24790 | |||
24791 | |||
24792 | # look for field 'ut_host' in header 'utmpx.h' | ||
24793 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
24794 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
24795 | { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5 | ||
24796 | echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; } | ||
24797 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24799 | else | ||
24800 | |||
24801 | cat >conftest.$ac_ext <<_ACEOF | ||
24802 | /* confdefs.h. */ | ||
24803 | _ACEOF | ||
24804 | cat confdefs.h >>conftest.$ac_ext | ||
24805 | cat >>conftest.$ac_ext <<_ACEOF | ||
24806 | /* end confdefs.h. */ | ||
24807 | #include <utmpx.h> | ||
24808 | |||
24809 | _ACEOF | ||
24810 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24811 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
24812 | eval "$ossh_varname=yes" | ||
24813 | else | ||
24814 | eval "$ossh_varname=no" | ||
24815 | fi | ||
24816 | rm -f conftest* | ||
24817 | |||
24818 | fi | ||
24819 | |||
24820 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24821 | if test -n "`echo $ossh_varname`"; then | ||
24822 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24823 | echo "${ECHO_T}$ossh_result" >&6; } | ||
24824 | if test "x$ossh_result" = "xyes"; then | ||
24825 | |||
24826 | cat >>confdefs.h <<\_ACEOF | ||
24827 | #define HAVE_HOST_IN_UTMPX 1 | ||
24828 | _ACEOF | ||
24829 | |||
24830 | fi | ||
24831 | else | ||
24832 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24833 | echo "${ECHO_T}no" >&6; } | ||
24834 | fi | ||
24835 | |||
24836 | |||
24837 | # look for field 'syslen' in header 'utmpx.h' | ||
24838 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
24839 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
24840 | { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5 | ||
24841 | echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; } | ||
24842 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24844 | else | ||
24845 | |||
24846 | cat >conftest.$ac_ext <<_ACEOF | ||
24847 | /* confdefs.h. */ | ||
24848 | _ACEOF | ||
24849 | cat confdefs.h >>conftest.$ac_ext | ||
24850 | cat >>conftest.$ac_ext <<_ACEOF | ||
24851 | /* end confdefs.h. */ | ||
24852 | #include <utmpx.h> | ||
24853 | |||
24854 | _ACEOF | ||
24855 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24856 | $EGREP "syslen" >/dev/null 2>&1; then | ||
24857 | eval "$ossh_varname=yes" | ||
24858 | else | ||
24859 | eval "$ossh_varname=no" | ||
24860 | fi | ||
24861 | rm -f conftest* | ||
24862 | |||
24863 | fi | ||
24864 | |||
24865 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24866 | if test -n "`echo $ossh_varname`"; then | ||
24867 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24868 | echo "${ECHO_T}$ossh_result" >&6; } | ||
24869 | if test "x$ossh_result" = "xyes"; then | ||
24870 | |||
24871 | cat >>confdefs.h <<\_ACEOF | ||
24872 | #define HAVE_SYSLEN_IN_UTMPX 1 | ||
24873 | _ACEOF | ||
24874 | |||
24875 | fi | ||
24876 | else | ||
24877 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24878 | echo "${ECHO_T}no" >&6; } | ||
24879 | fi | ||
24880 | |||
24881 | |||
24882 | # look for field 'ut_pid' in header 'utmp.h' | ||
24883 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
24884 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
24885 | { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5 | ||
24886 | echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; } | ||
24887 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24889 | else | ||
24890 | |||
24891 | cat >conftest.$ac_ext <<_ACEOF | ||
24892 | /* confdefs.h. */ | ||
24893 | _ACEOF | ||
24894 | cat confdefs.h >>conftest.$ac_ext | ||
24895 | cat >>conftest.$ac_ext <<_ACEOF | ||
24896 | /* end confdefs.h. */ | ||
24897 | #include <utmp.h> | ||
24898 | |||
24899 | _ACEOF | ||
24900 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24901 | $EGREP "ut_pid" >/dev/null 2>&1; then | ||
24902 | eval "$ossh_varname=yes" | ||
24903 | else | ||
24904 | eval "$ossh_varname=no" | ||
24905 | fi | ||
24906 | rm -f conftest* | ||
24907 | |||
24908 | fi | ||
24909 | |||
24910 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24911 | if test -n "`echo $ossh_varname`"; then | ||
24912 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24913 | echo "${ECHO_T}$ossh_result" >&6; } | ||
24914 | if test "x$ossh_result" = "xyes"; then | ||
24915 | |||
24916 | cat >>confdefs.h <<\_ACEOF | ||
24917 | #define HAVE_PID_IN_UTMP 1 | ||
24918 | _ACEOF | ||
24919 | |||
24920 | fi | ||
24921 | else | ||
24922 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24923 | echo "${ECHO_T}no" >&6; } | ||
24924 | fi | ||
24925 | |||
24926 | |||
24927 | # look for field 'ut_type' in header 'utmp.h' | ||
24928 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
24929 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
24930 | { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5 | ||
24931 | echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; } | ||
24932 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24934 | else | ||
24935 | |||
24936 | cat >conftest.$ac_ext <<_ACEOF | ||
24937 | /* confdefs.h. */ | ||
24938 | _ACEOF | ||
24939 | cat confdefs.h >>conftest.$ac_ext | ||
24940 | cat >>conftest.$ac_ext <<_ACEOF | ||
24941 | /* end confdefs.h. */ | ||
24942 | #include <utmp.h> | ||
24943 | |||
24944 | _ACEOF | ||
24945 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24946 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
24947 | eval "$ossh_varname=yes" | ||
24948 | else | ||
24949 | eval "$ossh_varname=no" | ||
24950 | fi | ||
24951 | rm -f conftest* | ||
24952 | |||
24953 | fi | ||
24954 | |||
24955 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24956 | if test -n "`echo $ossh_varname`"; then | ||
24957 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24958 | echo "${ECHO_T}$ossh_result" >&6; } | ||
24959 | if test "x$ossh_result" = "xyes"; then | ||
24960 | |||
24961 | cat >>confdefs.h <<\_ACEOF | ||
24962 | #define HAVE_TYPE_IN_UTMP 1 | ||
24963 | _ACEOF | ||
24964 | |||
24965 | fi | ||
24966 | else | ||
24967 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24968 | echo "${ECHO_T}no" >&6; } | ||
24969 | fi | ||
24970 | |||
24971 | |||
24972 | # look for field 'ut_type' in header 'utmpx.h' | ||
24973 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
24974 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
24975 | { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5 | ||
24976 | echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; } | ||
24977 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24979 | else | ||
24980 | |||
24981 | cat >conftest.$ac_ext <<_ACEOF | ||
24982 | /* confdefs.h. */ | ||
24983 | _ACEOF | ||
24984 | cat confdefs.h >>conftest.$ac_ext | ||
24985 | cat >>conftest.$ac_ext <<_ACEOF | ||
24986 | /* end confdefs.h. */ | ||
24987 | #include <utmpx.h> | ||
24988 | |||
24989 | _ACEOF | ||
24990 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24991 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
24992 | eval "$ossh_varname=yes" | ||
24993 | else | ||
24994 | eval "$ossh_varname=no" | ||
24995 | fi | ||
24996 | rm -f conftest* | ||
24997 | |||
24998 | fi | ||
24999 | |||
25000 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
25001 | if test -n "`echo $ossh_varname`"; then | ||
25002 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
25003 | echo "${ECHO_T}$ossh_result" >&6; } | ||
25004 | if test "x$ossh_result" = "xyes"; then | ||
25005 | |||
25006 | cat >>confdefs.h <<\_ACEOF | ||
25007 | #define HAVE_TYPE_IN_UTMPX 1 | ||
25008 | _ACEOF | ||
25009 | |||
25010 | fi | ||
25011 | else | ||
25012 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25013 | echo "${ECHO_T}no" >&6; } | ||
25014 | fi | ||
25015 | |||
25016 | |||
25017 | # look for field 'ut_tv' in header 'utmp.h' | ||
25018 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
25019 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
25020 | { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5 | ||
25021 | echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; } | ||
25022 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
25023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25024 | else | ||
25025 | |||
25026 | cat >conftest.$ac_ext <<_ACEOF | ||
25027 | /* confdefs.h. */ | ||
25028 | _ACEOF | ||
25029 | cat confdefs.h >>conftest.$ac_ext | ||
25030 | cat >>conftest.$ac_ext <<_ACEOF | ||
25031 | /* end confdefs.h. */ | ||
25032 | #include <utmp.h> | ||
25033 | |||
25034 | _ACEOF | ||
25035 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
25036 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
25037 | eval "$ossh_varname=yes" | ||
25038 | else | ||
25039 | eval "$ossh_varname=no" | ||
25040 | fi | ||
25041 | rm -f conftest* | ||
25042 | |||
25043 | fi | ||
25044 | |||
25045 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
25046 | if test -n "`echo $ossh_varname`"; then | ||
25047 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
25048 | echo "${ECHO_T}$ossh_result" >&6; } | ||
25049 | if test "x$ossh_result" = "xyes"; then | ||
25050 | |||
25051 | cat >>confdefs.h <<\_ACEOF | ||
25052 | #define HAVE_TV_IN_UTMP 1 | ||
25053 | _ACEOF | ||
25054 | |||
25055 | fi | ||
25056 | else | ||
25057 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25058 | echo "${ECHO_T}no" >&6; } | ||
25059 | fi | ||
25060 | |||
25061 | |||
25062 | # look for field 'ut_id' in header 'utmp.h' | ||
25063 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
25064 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
25065 | { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5 | ||
25066 | echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; } | ||
25067 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
25068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25069 | else | ||
25070 | |||
25071 | cat >conftest.$ac_ext <<_ACEOF | ||
25072 | /* confdefs.h. */ | ||
25073 | _ACEOF | ||
25074 | cat confdefs.h >>conftest.$ac_ext | ||
25075 | cat >>conftest.$ac_ext <<_ACEOF | ||
25076 | /* end confdefs.h. */ | ||
25077 | #include <utmp.h> | ||
25078 | |||
25079 | _ACEOF | ||
25080 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
25081 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
25082 | eval "$ossh_varname=yes" | ||
25083 | else | ||
25084 | eval "$ossh_varname=no" | ||
25085 | fi | ||
25086 | rm -f conftest* | ||
25087 | |||
25088 | fi | ||
25089 | |||
25090 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
25091 | if test -n "`echo $ossh_varname`"; then | ||
25092 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
25093 | echo "${ECHO_T}$ossh_result" >&6; } | ||
25094 | if test "x$ossh_result" = "xyes"; then | ||
25095 | |||
25096 | cat >>confdefs.h <<\_ACEOF | ||
25097 | #define HAVE_ID_IN_UTMP 1 | ||
25098 | _ACEOF | ||
25099 | |||
25100 | fi | ||
25101 | else | ||
25102 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25103 | echo "${ECHO_T}no" >&6; } | ||
25104 | fi | ||
25105 | |||
25106 | |||
25107 | # look for field 'ut_id' in header 'utmpx.h' | ||
25108 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
25109 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
25110 | { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5 | ||
25111 | echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; } | ||
25112 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
25113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25114 | else | ||
25115 | |||
25116 | cat >conftest.$ac_ext <<_ACEOF | ||
25117 | /* confdefs.h. */ | ||
25118 | _ACEOF | ||
25119 | cat confdefs.h >>conftest.$ac_ext | ||
25120 | cat >>conftest.$ac_ext <<_ACEOF | ||
25121 | /* end confdefs.h. */ | ||
25122 | #include <utmpx.h> | ||
25123 | |||
25124 | _ACEOF | ||
25125 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
25126 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
25127 | eval "$ossh_varname=yes" | ||
25128 | else | ||
25129 | eval "$ossh_varname=no" | ||
25130 | fi | ||
25131 | rm -f conftest* | ||
25132 | |||
25133 | fi | ||
25134 | |||
25135 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
25136 | if test -n "`echo $ossh_varname`"; then | ||
25137 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
25138 | echo "${ECHO_T}$ossh_result" >&6; } | ||
25139 | if test "x$ossh_result" = "xyes"; then | ||
25140 | |||
25141 | cat >>confdefs.h <<\_ACEOF | ||
25142 | #define HAVE_ID_IN_UTMPX 1 | ||
25143 | _ACEOF | ||
25144 | |||
25145 | fi | ||
25146 | else | ||
25147 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25148 | echo "${ECHO_T}no" >&6; } | ||
25149 | fi | ||
25150 | |||
25151 | |||
25152 | # look for field 'ut_addr' in header 'utmp.h' | ||
25153 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
25154 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
25155 | { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5 | ||
25156 | echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; } | ||
25157 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
25158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25159 | else | ||
25160 | |||
25161 | cat >conftest.$ac_ext <<_ACEOF | ||
25162 | /* confdefs.h. */ | ||
25163 | _ACEOF | ||
25164 | cat confdefs.h >>conftest.$ac_ext | ||
25165 | cat >>conftest.$ac_ext <<_ACEOF | ||
25166 | /* end confdefs.h. */ | ||
25167 | #include <utmp.h> | ||
25168 | |||
25169 | _ACEOF | ||
25170 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
25171 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
25172 | eval "$ossh_varname=yes" | ||
25173 | else | ||
25174 | eval "$ossh_varname=no" | ||
25175 | fi | ||
25176 | rm -f conftest* | ||
25177 | |||
25178 | fi | ||
25179 | |||
25180 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
25181 | if test -n "`echo $ossh_varname`"; then | ||
25182 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
25183 | echo "${ECHO_T}$ossh_result" >&6; } | ||
25184 | if test "x$ossh_result" = "xyes"; then | ||
25185 | |||
25186 | cat >>confdefs.h <<\_ACEOF | ||
25187 | #define HAVE_ADDR_IN_UTMP 1 | ||
25188 | _ACEOF | ||
25189 | |||
25190 | fi | ||
25191 | else | ||
25192 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25193 | echo "${ECHO_T}no" >&6; } | ||
25194 | fi | ||
25195 | |||
25196 | |||
25197 | # look for field 'ut_addr' in header 'utmpx.h' | ||
25198 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
25199 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
25200 | { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5 | ||
25201 | echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; } | ||
25202 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
25203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25204 | else | ||
25205 | |||
25206 | cat >conftest.$ac_ext <<_ACEOF | ||
25207 | /* confdefs.h. */ | ||
25208 | _ACEOF | ||
25209 | cat confdefs.h >>conftest.$ac_ext | ||
25210 | cat >>conftest.$ac_ext <<_ACEOF | ||
25211 | /* end confdefs.h. */ | ||
25212 | #include <utmpx.h> | ||
25213 | |||
25214 | _ACEOF | ||
25215 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
25216 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
25217 | eval "$ossh_varname=yes" | ||
25218 | else | ||
25219 | eval "$ossh_varname=no" | ||
25220 | fi | ||
25221 | rm -f conftest* | ||
25222 | |||
25223 | fi | ||
25224 | |||
25225 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
25226 | if test -n "`echo $ossh_varname`"; then | ||
25227 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
25228 | echo "${ECHO_T}$ossh_result" >&6; } | ||
25229 | if test "x$ossh_result" = "xyes"; then | ||
25230 | |||
25231 | cat >>confdefs.h <<\_ACEOF | ||
25232 | #define HAVE_ADDR_IN_UTMPX 1 | ||
25233 | _ACEOF | ||
25234 | |||
25235 | fi | ||
25236 | else | ||
25237 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25238 | echo "${ECHO_T}no" >&6; } | ||
25239 | fi | ||
25240 | |||
25241 | |||
25242 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
25243 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
25244 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
25245 | { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5 | ||
25246 | echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; } | ||
25247 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
25248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25249 | else | ||
25250 | |||
25251 | cat >conftest.$ac_ext <<_ACEOF | ||
25252 | /* confdefs.h. */ | ||
25253 | _ACEOF | ||
25254 | cat confdefs.h >>conftest.$ac_ext | ||
25255 | cat >>conftest.$ac_ext <<_ACEOF | ||
25256 | /* end confdefs.h. */ | ||
25257 | #include <utmp.h> | ||
25258 | |||
25259 | _ACEOF | ||
25260 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
25261 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
25262 | eval "$ossh_varname=yes" | ||
25263 | else | ||
25264 | eval "$ossh_varname=no" | ||
25265 | fi | ||
25266 | rm -f conftest* | ||
25267 | |||
25268 | fi | ||
25269 | |||
25270 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
25271 | if test -n "`echo $ossh_varname`"; then | ||
25272 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
25273 | echo "${ECHO_T}$ossh_result" >&6; } | ||
25274 | if test "x$ossh_result" = "xyes"; then | ||
25275 | |||
25276 | cat >>confdefs.h <<\_ACEOF | ||
25277 | #define HAVE_ADDR_V6_IN_UTMP 1 | ||
25278 | _ACEOF | ||
25279 | |||
25280 | fi | ||
25281 | else | ||
25282 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25283 | echo "${ECHO_T}no" >&6; } | ||
25284 | fi | ||
25285 | |||
25286 | |||
25287 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
25288 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
25289 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
25290 | { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
25291 | echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; } | ||
25292 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
25293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25294 | else | ||
25295 | |||
25296 | cat >conftest.$ac_ext <<_ACEOF | ||
25297 | /* confdefs.h. */ | ||
25298 | _ACEOF | ||
25299 | cat confdefs.h >>conftest.$ac_ext | ||
25300 | cat >>conftest.$ac_ext <<_ACEOF | ||
25301 | /* end confdefs.h. */ | ||
25302 | #include <utmpx.h> | ||
25303 | |||
25304 | _ACEOF | ||
25305 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
25306 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
25307 | eval "$ossh_varname=yes" | ||
25308 | else | ||
25309 | eval "$ossh_varname=no" | ||
25310 | fi | ||
25311 | rm -f conftest* | ||
25312 | |||
25313 | fi | ||
25314 | |||
25315 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
25316 | if test -n "`echo $ossh_varname`"; then | ||
25317 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
25318 | echo "${ECHO_T}$ossh_result" >&6; } | ||
25319 | if test "x$ossh_result" = "xyes"; then | ||
25320 | |||
25321 | cat >>confdefs.h <<\_ACEOF | ||
25322 | #define HAVE_ADDR_V6_IN_UTMPX 1 | ||
25323 | _ACEOF | ||
25324 | |||
25325 | fi | ||
25326 | else | ||
25327 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25328 | echo "${ECHO_T}no" >&6; } | ||
25329 | fi | ||
25330 | |||
25331 | |||
25332 | # look for field 'ut_exit' in header 'utmp.h' | ||
25333 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
25334 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
25335 | { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5 | ||
25336 | echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; } | ||
25337 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
25338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25339 | else | ||
25340 | |||
25341 | cat >conftest.$ac_ext <<_ACEOF | ||
25342 | /* confdefs.h. */ | ||
25343 | _ACEOF | ||
25344 | cat confdefs.h >>conftest.$ac_ext | ||
25345 | cat >>conftest.$ac_ext <<_ACEOF | ||
25346 | /* end confdefs.h. */ | ||
25347 | #include <utmp.h> | ||
25348 | |||
25349 | _ACEOF | ||
25350 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
25351 | $EGREP "ut_exit" >/dev/null 2>&1; then | ||
25352 | eval "$ossh_varname=yes" | ||
25353 | else | ||
25354 | eval "$ossh_varname=no" | ||
25355 | fi | ||
25356 | rm -f conftest* | ||
25357 | |||
25358 | fi | ||
25359 | |||
25360 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
25361 | if test -n "`echo $ossh_varname`"; then | ||
25362 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
25363 | echo "${ECHO_T}$ossh_result" >&6; } | ||
25364 | if test "x$ossh_result" = "xyes"; then | ||
25365 | |||
25366 | cat >>confdefs.h <<\_ACEOF | ||
25367 | #define HAVE_EXIT_IN_UTMP 1 | ||
25368 | _ACEOF | ||
25369 | |||
25370 | fi | ||
25371 | else | ||
25372 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25373 | echo "${ECHO_T}no" >&6; } | ||
25374 | fi | ||
25375 | |||
25376 | |||
25377 | # look for field 'ut_time' in header 'utmp.h' | ||
25378 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
25379 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
25380 | { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5 | ||
25381 | echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; } | ||
25382 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
25383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25384 | else | ||
25385 | |||
25386 | cat >conftest.$ac_ext <<_ACEOF | ||
25387 | /* confdefs.h. */ | ||
25388 | _ACEOF | ||
25389 | cat confdefs.h >>conftest.$ac_ext | ||
25390 | cat >>conftest.$ac_ext <<_ACEOF | ||
25391 | /* end confdefs.h. */ | ||
25392 | #include <utmp.h> | ||
25393 | |||
25394 | _ACEOF | ||
25395 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
25396 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
25397 | eval "$ossh_varname=yes" | ||
25398 | else | ||
25399 | eval "$ossh_varname=no" | ||
25400 | fi | ||
25401 | rm -f conftest* | ||
25402 | |||
25403 | fi | ||
25404 | |||
25405 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
25406 | if test -n "`echo $ossh_varname`"; then | ||
25407 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
25408 | echo "${ECHO_T}$ossh_result" >&6; } | ||
25409 | if test "x$ossh_result" = "xyes"; then | ||
25410 | |||
25411 | cat >>confdefs.h <<\_ACEOF | ||
25412 | #define HAVE_TIME_IN_UTMP 1 | ||
25413 | _ACEOF | ||
25414 | |||
25415 | fi | ||
25416 | else | ||
25417 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25418 | echo "${ECHO_T}no" >&6; } | ||
25419 | fi | ||
25420 | |||
25421 | |||
25422 | # look for field 'ut_time' in header 'utmpx.h' | ||
25423 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
25424 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
25425 | { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5 | ||
25426 | echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; } | ||
25427 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
25428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25429 | else | ||
25430 | |||
25431 | cat >conftest.$ac_ext <<_ACEOF | ||
25432 | /* confdefs.h. */ | ||
25433 | _ACEOF | ||
25434 | cat confdefs.h >>conftest.$ac_ext | ||
25435 | cat >>conftest.$ac_ext <<_ACEOF | ||
25436 | /* end confdefs.h. */ | ||
25437 | #include <utmpx.h> | ||
25438 | |||
25439 | _ACEOF | ||
25440 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
25441 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
25442 | eval "$ossh_varname=yes" | ||
25443 | else | ||
25444 | eval "$ossh_varname=no" | ||
25445 | fi | ||
25446 | rm -f conftest* | ||
25447 | |||
25448 | fi | ||
25449 | |||
25450 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
25451 | if test -n "`echo $ossh_varname`"; then | ||
25452 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
25453 | echo "${ECHO_T}$ossh_result" >&6; } | ||
25454 | if test "x$ossh_result" = "xyes"; then | ||
25455 | |||
25456 | cat >>confdefs.h <<\_ACEOF | ||
25457 | #define HAVE_TIME_IN_UTMPX 1 | ||
25458 | _ACEOF | ||
25459 | |||
25460 | fi | ||
25461 | else | ||
25462 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25463 | echo "${ECHO_T}no" >&6; } | ||
25464 | fi | ||
25465 | |||
25466 | |||
25467 | # look for field 'ut_tv' in header 'utmpx.h' | ||
25468 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
25469 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
25470 | { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5 | ||
25471 | echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; } | ||
25472 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
25473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25474 | else | ||
25475 | |||
25476 | cat >conftest.$ac_ext <<_ACEOF | ||
25477 | /* confdefs.h. */ | ||
25478 | _ACEOF | ||
25479 | cat confdefs.h >>conftest.$ac_ext | ||
25480 | cat >>conftest.$ac_ext <<_ACEOF | ||
25481 | /* end confdefs.h. */ | ||
25482 | #include <utmpx.h> | ||
25483 | |||
25484 | _ACEOF | ||
25485 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
25486 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
25487 | eval "$ossh_varname=yes" | ||
25488 | else | ||
25489 | eval "$ossh_varname=no" | ||
25490 | fi | ||
25491 | rm -f conftest* | ||
25492 | |||
25493 | fi | ||
25494 | |||
25495 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
25496 | if test -n "`echo $ossh_varname`"; then | ||
25497 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
25498 | echo "${ECHO_T}$ossh_result" >&6; } | ||
25499 | if test "x$ossh_result" = "xyes"; then | ||
25500 | |||
25501 | cat >>confdefs.h <<\_ACEOF | ||
25502 | #define HAVE_TV_IN_UTMPX 1 | ||
25503 | _ACEOF | ||
25504 | |||
25505 | fi | ||
25506 | else | ||
25507 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25508 | echo "${ECHO_T}no" >&6; } | ||
25509 | fi | ||
25510 | |||
25511 | |||
25512 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 | ||
25513 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; } | ||
25514 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | ||
25515 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25516 | else | ||
25517 | cat >conftest.$ac_ext <<_ACEOF | ||
25518 | /* confdefs.h. */ | ||
25519 | _ACEOF | ||
25520 | cat confdefs.h >>conftest.$ac_ext | ||
25521 | cat >>conftest.$ac_ext <<_ACEOF | ||
25522 | /* end confdefs.h. */ | ||
25523 | $ac_includes_default | ||
25524 | int | ||
25525 | main () | ||
25526 | { | ||
25527 | static struct stat ac_aggr; | ||
25528 | if (ac_aggr.st_blksize) | ||
25529 | return 0; | ||
25530 | ; | ||
25531 | return 0; | ||
25532 | } | ||
25533 | _ACEOF | ||
25534 | rm -f conftest.$ac_objext | ||
25535 | if { (ac_try="$ac_compile" | ||
25536 | case "(($ac_try" in | ||
25537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25538 | *) ac_try_echo=$ac_try;; | ||
25539 | esac | ||
25540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25541 | (eval "$ac_compile") 2>conftest.er1 | ||
25542 | ac_status=$? | ||
25543 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25544 | rm -f conftest.er1 | ||
25545 | cat conftest.err >&5 | ||
25546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25547 | (exit $ac_status); } && { | ||
25548 | test -z "$ac_c_werror_flag" || | ||
25549 | test ! -s conftest.err | ||
25550 | } && test -s conftest.$ac_objext; then | ||
25551 | ac_cv_member_struct_stat_st_blksize=yes | ||
25552 | else | ||
25553 | echo "$as_me: failed program was:" >&5 | ||
25554 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25555 | |||
25556 | cat >conftest.$ac_ext <<_ACEOF | ||
25557 | /* confdefs.h. */ | ||
25558 | _ACEOF | ||
25559 | cat confdefs.h >>conftest.$ac_ext | ||
25560 | cat >>conftest.$ac_ext <<_ACEOF | ||
25561 | /* end confdefs.h. */ | ||
25562 | $ac_includes_default | ||
25563 | int | ||
25564 | main () | ||
25565 | { | ||
25566 | static struct stat ac_aggr; | ||
25567 | if (sizeof ac_aggr.st_blksize) | ||
25568 | return 0; | ||
25569 | ; | ||
25570 | return 0; | ||
25571 | } | ||
25572 | _ACEOF | ||
25573 | rm -f conftest.$ac_objext | ||
25574 | if { (ac_try="$ac_compile" | ||
25575 | case "(($ac_try" in | ||
25576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25577 | *) ac_try_echo=$ac_try;; | ||
25578 | esac | ||
25579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25580 | (eval "$ac_compile") 2>conftest.er1 | ||
25581 | ac_status=$? | ||
25582 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25583 | rm -f conftest.er1 | ||
25584 | cat conftest.err >&5 | ||
25585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25586 | (exit $ac_status); } && { | ||
25587 | test -z "$ac_c_werror_flag" || | ||
25588 | test ! -s conftest.err | ||
25589 | } && test -s conftest.$ac_objext; then | ||
25590 | ac_cv_member_struct_stat_st_blksize=yes | ||
25591 | else | ||
25592 | echo "$as_me: failed program was:" >&5 | ||
25593 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25594 | |||
25595 | ac_cv_member_struct_stat_st_blksize=no | ||
25596 | fi | ||
25597 | |||
25598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25599 | fi | ||
25600 | |||
25601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25602 | fi | ||
25603 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | ||
25604 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } | ||
25605 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | ||
25606 | |||
25607 | cat >>confdefs.h <<_ACEOF | ||
25608 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
25609 | _ACEOF | ||
25610 | |||
25611 | |||
25612 | fi | ||
25613 | |||
25614 | { echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5 | ||
25615 | echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; } | ||
25616 | if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then | ||
25617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25618 | else | ||
25619 | cat >conftest.$ac_ext <<_ACEOF | ||
25620 | /* confdefs.h. */ | ||
25621 | _ACEOF | ||
25622 | cat confdefs.h >>conftest.$ac_ext | ||
25623 | cat >>conftest.$ac_ext <<_ACEOF | ||
25624 | /* end confdefs.h. */ | ||
25625 | |||
25626 | #include <stdio.h> | ||
25627 | #if HAVE_SYS_TYPES_H | ||
25628 | # include <sys/types.h> | ||
25629 | #endif | ||
25630 | #include <netinet/in.h> | ||
25631 | #include <arpa/nameser.h> | ||
25632 | #include <resolv.h> | ||
25633 | |||
25634 | |||
25635 | int | ||
25636 | main () | ||
25637 | { | ||
25638 | static struct __res_state ac_aggr; | ||
25639 | if (ac_aggr.retrans) | ||
25640 | return 0; | ||
25641 | ; | ||
25642 | return 0; | ||
25643 | } | ||
25644 | _ACEOF | ||
25645 | rm -f conftest.$ac_objext | ||
25646 | if { (ac_try="$ac_compile" | ||
25647 | case "(($ac_try" in | ||
25648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25649 | *) ac_try_echo=$ac_try;; | ||
25650 | esac | ||
25651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25652 | (eval "$ac_compile") 2>conftest.er1 | ||
25653 | ac_status=$? | ||
25654 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25655 | rm -f conftest.er1 | ||
25656 | cat conftest.err >&5 | ||
25657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25658 | (exit $ac_status); } && { | ||
25659 | test -z "$ac_c_werror_flag" || | ||
25660 | test ! -s conftest.err | ||
25661 | } && test -s conftest.$ac_objext; then | ||
25662 | ac_cv_member_struct___res_state_retrans=yes | ||
25663 | else | ||
25664 | echo "$as_me: failed program was:" >&5 | ||
25665 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25666 | |||
25667 | cat >conftest.$ac_ext <<_ACEOF | ||
25668 | /* confdefs.h. */ | ||
25669 | _ACEOF | ||
25670 | cat confdefs.h >>conftest.$ac_ext | ||
25671 | cat >>conftest.$ac_ext <<_ACEOF | ||
25672 | /* end confdefs.h. */ | ||
25673 | |||
25674 | #include <stdio.h> | ||
25675 | #if HAVE_SYS_TYPES_H | ||
25676 | # include <sys/types.h> | ||
25677 | #endif | ||
25678 | #include <netinet/in.h> | ||
25679 | #include <arpa/nameser.h> | ||
25680 | #include <resolv.h> | ||
25681 | |||
25682 | |||
25683 | int | ||
25684 | main () | ||
25685 | { | ||
25686 | static struct __res_state ac_aggr; | ||
25687 | if (sizeof ac_aggr.retrans) | ||
25688 | return 0; | ||
25689 | ; | ||
25690 | return 0; | ||
25691 | } | ||
25692 | _ACEOF | ||
25693 | rm -f conftest.$ac_objext | ||
25694 | if { (ac_try="$ac_compile" | ||
25695 | case "(($ac_try" in | ||
25696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25697 | *) ac_try_echo=$ac_try;; | ||
25698 | esac | ||
25699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25700 | (eval "$ac_compile") 2>conftest.er1 | ||
25701 | ac_status=$? | ||
25702 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25703 | rm -f conftest.er1 | ||
25704 | cat conftest.err >&5 | ||
25705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25706 | (exit $ac_status); } && { | ||
25707 | test -z "$ac_c_werror_flag" || | ||
25708 | test ! -s conftest.err | ||
25709 | } && test -s conftest.$ac_objext; then | ||
25710 | ac_cv_member_struct___res_state_retrans=yes | ||
25711 | else | ||
25712 | echo "$as_me: failed program was:" >&5 | ||
25713 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25714 | |||
25715 | ac_cv_member_struct___res_state_retrans=no | ||
25716 | fi | ||
25717 | |||
25718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25719 | fi | ||
25720 | |||
25721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25722 | fi | ||
25723 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5 | ||
25724 | echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; } | ||
25725 | if test $ac_cv_member_struct___res_state_retrans = yes; then | ||
25726 | : | ||
25727 | else | ||
25728 | |||
25729 | cat >>confdefs.h <<\_ACEOF | ||
25730 | #define __res_state state | ||
25731 | _ACEOF | ||
25732 | |||
25733 | fi | ||
25734 | |||
25735 | |||
25736 | { echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5 | ||
25737 | echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; } | ||
25738 | if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then | ||
25739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25740 | else | ||
25741 | |||
25742 | cat >conftest.$ac_ext <<_ACEOF | ||
25743 | /* confdefs.h. */ | ||
25744 | _ACEOF | ||
25745 | cat confdefs.h >>conftest.$ac_ext | ||
25746 | cat >>conftest.$ac_ext <<_ACEOF | ||
25747 | /* end confdefs.h. */ | ||
25748 | |||
25749 | #include <sys/types.h> | ||
25750 | #include <sys/socket.h> | ||
25751 | |||
25752 | int | ||
25753 | main () | ||
25754 | { | ||
25755 | struct sockaddr_storage s; s.ss_family = 1; | ||
25756 | ; | ||
25757 | return 0; | ||
25758 | } | ||
25759 | _ACEOF | ||
25760 | rm -f conftest.$ac_objext | ||
25761 | if { (ac_try="$ac_compile" | ||
25762 | case "(($ac_try" in | ||
25763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25764 | *) ac_try_echo=$ac_try;; | ||
25765 | esac | ||
25766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25767 | (eval "$ac_compile") 2>conftest.er1 | ||
25768 | ac_status=$? | ||
25769 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25770 | rm -f conftest.er1 | ||
25771 | cat conftest.err >&5 | ||
25772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25773 | (exit $ac_status); } && { | ||
25774 | test -z "$ac_c_werror_flag" || | ||
25775 | test ! -s conftest.err | ||
25776 | } && test -s conftest.$ac_objext; then | ||
25777 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
25778 | else | ||
25779 | echo "$as_me: failed program was:" >&5 | ||
25780 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25781 | |||
25782 | ac_cv_have_ss_family_in_struct_ss="no" | ||
25783 | fi | ||
25784 | |||
25785 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25786 | |||
25787 | fi | ||
25788 | { echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
25789 | echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; } | ||
25790 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
25791 | |||
25792 | cat >>confdefs.h <<\_ACEOF | ||
25793 | #define HAVE_SS_FAMILY_IN_SS 1 | ||
25794 | _ACEOF | ||
25795 | |||
25796 | fi | ||
25797 | |||
25798 | { echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
25799 | echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; } | ||
25800 | if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then | ||
25801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25802 | else | ||
25803 | |||
25804 | cat >conftest.$ac_ext <<_ACEOF | ||
25805 | /* confdefs.h. */ | ||
25806 | _ACEOF | ||
25807 | cat confdefs.h >>conftest.$ac_ext | ||
25808 | cat >>conftest.$ac_ext <<_ACEOF | ||
25809 | /* end confdefs.h. */ | ||
25810 | |||
25811 | #include <sys/types.h> | ||
25812 | #include <sys/socket.h> | ||
25813 | |||
25814 | int | ||
25815 | main () | ||
25816 | { | ||
25817 | struct sockaddr_storage s; s.__ss_family = 1; | ||
25818 | ; | ||
25819 | return 0; | ||
25820 | } | ||
25821 | _ACEOF | ||
25822 | rm -f conftest.$ac_objext | ||
25823 | if { (ac_try="$ac_compile" | ||
25824 | case "(($ac_try" in | ||
25825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25826 | *) ac_try_echo=$ac_try;; | ||
25827 | esac | ||
25828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25829 | (eval "$ac_compile") 2>conftest.er1 | ||
25830 | ac_status=$? | ||
25831 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25832 | rm -f conftest.er1 | ||
25833 | cat conftest.err >&5 | ||
25834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25835 | (exit $ac_status); } && { | ||
25836 | test -z "$ac_c_werror_flag" || | ||
25837 | test ! -s conftest.err | ||
25838 | } && test -s conftest.$ac_objext; then | ||
25839 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
25840 | else | ||
25841 | echo "$as_me: failed program was:" >&5 | ||
25842 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25843 | |||
25844 | ac_cv_have___ss_family_in_struct_ss="no" | ||
25845 | |||
25846 | fi | ||
25847 | |||
25848 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25849 | |||
25850 | fi | ||
25851 | { echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
25852 | echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; } | ||
25853 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
25854 | |||
25855 | cat >>confdefs.h <<\_ACEOF | ||
25856 | #define HAVE___SS_FAMILY_IN_SS 1 | ||
25857 | _ACEOF | ||
25858 | |||
25859 | fi | ||
25860 | |||
25861 | { echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5 | ||
25862 | echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6; } | ||
25863 | if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then | ||
25864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25865 | else | ||
25866 | |||
25867 | cat >conftest.$ac_ext <<_ACEOF | ||
25868 | /* confdefs.h. */ | ||
25869 | _ACEOF | ||
25870 | cat confdefs.h >>conftest.$ac_ext | ||
25871 | cat >>conftest.$ac_ext <<_ACEOF | ||
25872 | /* end confdefs.h. */ | ||
25873 | |||
25874 | #include <pwd.h> | ||
25875 | |||
25876 | int | ||
25877 | main () | ||
25878 | { | ||
25879 | struct passwd p; p.pw_class = 0; | ||
25880 | ; | ||
25881 | return 0; | ||
25882 | } | ||
25883 | _ACEOF | ||
25884 | rm -f conftest.$ac_objext | ||
25885 | if { (ac_try="$ac_compile" | ||
25886 | case "(($ac_try" in | ||
25887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25888 | *) ac_try_echo=$ac_try;; | ||
25889 | esac | ||
25890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25891 | (eval "$ac_compile") 2>conftest.er1 | ||
25892 | ac_status=$? | ||
25893 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25894 | rm -f conftest.er1 | ||
25895 | cat conftest.err >&5 | ||
25896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25897 | (exit $ac_status); } && { | ||
25898 | test -z "$ac_c_werror_flag" || | ||
25899 | test ! -s conftest.err | ||
25900 | } && test -s conftest.$ac_objext; then | ||
25901 | ac_cv_have_pw_class_in_struct_passwd="yes" | ||
25902 | else | ||
25903 | echo "$as_me: failed program was:" >&5 | ||
25904 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25905 | |||
25906 | ac_cv_have_pw_class_in_struct_passwd="no" | ||
25907 | |||
25908 | fi | ||
25909 | |||
25910 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25911 | |||
25912 | fi | ||
25913 | { echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5 | ||
25914 | echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6; } | ||
25915 | if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then | ||
25916 | |||
25917 | cat >>confdefs.h <<\_ACEOF | ||
25918 | #define HAVE_PW_CLASS_IN_PASSWD 1 | ||
25919 | _ACEOF | ||
25920 | |||
25921 | fi | ||
25922 | |||
25923 | { echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5 | ||
25924 | echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6; } | ||
25925 | if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then | ||
25926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25927 | else | ||
25928 | |||
25929 | cat >conftest.$ac_ext <<_ACEOF | ||
25930 | /* confdefs.h. */ | ||
25931 | _ACEOF | ||
25932 | cat confdefs.h >>conftest.$ac_ext | ||
25933 | cat >>conftest.$ac_ext <<_ACEOF | ||
25934 | /* end confdefs.h. */ | ||
25935 | |||
25936 | #include <pwd.h> | ||
25937 | |||
25938 | int | ||
25939 | main () | ||
25940 | { | ||
25941 | struct passwd p; p.pw_expire = 0; | ||
25942 | ; | ||
25943 | return 0; | ||
25944 | } | ||
25945 | _ACEOF | ||
25946 | rm -f conftest.$ac_objext | ||
25947 | if { (ac_try="$ac_compile" | ||
25948 | case "(($ac_try" in | ||
25949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25950 | *) ac_try_echo=$ac_try;; | ||
25951 | esac | ||
25952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25953 | (eval "$ac_compile") 2>conftest.er1 | ||
25954 | ac_status=$? | ||
25955 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25956 | rm -f conftest.er1 | ||
25957 | cat conftest.err >&5 | ||
25958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25959 | (exit $ac_status); } && { | ||
25960 | test -z "$ac_c_werror_flag" || | ||
25961 | test ! -s conftest.err | ||
25962 | } && test -s conftest.$ac_objext; then | ||
25963 | ac_cv_have_pw_expire_in_struct_passwd="yes" | ||
25964 | else | ||
25965 | echo "$as_me: failed program was:" >&5 | ||
25966 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25967 | |||
25968 | ac_cv_have_pw_expire_in_struct_passwd="no" | ||
25969 | |||
25970 | fi | ||
25971 | |||
25972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25973 | |||
25974 | fi | ||
25975 | { echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5 | ||
25976 | echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6; } | ||
25977 | if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then | ||
25978 | |||
25979 | cat >>confdefs.h <<\_ACEOF | ||
25980 | #define HAVE_PW_EXPIRE_IN_PASSWD 1 | ||
25981 | _ACEOF | ||
25982 | |||
25983 | fi | ||
25984 | |||
25985 | { echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5 | ||
25986 | echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6; } | ||
25987 | if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then | ||
25988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25989 | else | ||
25990 | |||
25991 | cat >conftest.$ac_ext <<_ACEOF | ||
25992 | /* confdefs.h. */ | ||
25993 | _ACEOF | ||
25994 | cat confdefs.h >>conftest.$ac_ext | ||
25995 | cat >>conftest.$ac_ext <<_ACEOF | ||
25996 | /* end confdefs.h. */ | ||
25997 | |||
25998 | #include <pwd.h> | ||
25999 | |||
26000 | int | ||
26001 | main () | ||
26002 | { | ||
26003 | struct passwd p; p.pw_change = 0; | ||
26004 | ; | ||
26005 | return 0; | ||
26006 | } | ||
26007 | _ACEOF | ||
26008 | rm -f conftest.$ac_objext | ||
26009 | if { (ac_try="$ac_compile" | ||
26010 | case "(($ac_try" in | ||
26011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26012 | *) ac_try_echo=$ac_try;; | ||
26013 | esac | ||
26014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26015 | (eval "$ac_compile") 2>conftest.er1 | ||
26016 | ac_status=$? | ||
26017 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26018 | rm -f conftest.er1 | ||
26019 | cat conftest.err >&5 | ||
26020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26021 | (exit $ac_status); } && { | ||
26022 | test -z "$ac_c_werror_flag" || | ||
26023 | test ! -s conftest.err | ||
26024 | } && test -s conftest.$ac_objext; then | ||
26025 | ac_cv_have_pw_change_in_struct_passwd="yes" | ||
26026 | else | ||
26027 | echo "$as_me: failed program was:" >&5 | ||
26028 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26029 | |||
26030 | ac_cv_have_pw_change_in_struct_passwd="no" | ||
26031 | |||
26032 | fi | ||
26033 | |||
26034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26035 | |||
26036 | fi | ||
26037 | { echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5 | ||
26038 | echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6; } | ||
26039 | if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then | ||
26040 | |||
26041 | cat >>confdefs.h <<\_ACEOF | ||
26042 | #define HAVE_PW_CHANGE_IN_PASSWD 1 | ||
26043 | _ACEOF | ||
26044 | |||
26045 | fi | ||
26046 | |||
26047 | { echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5 | ||
26048 | echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; } | ||
26049 | if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then | ||
26050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26051 | else | ||
26052 | |||
26053 | cat >conftest.$ac_ext <<_ACEOF | ||
26054 | |||
26055 | #include <sys/types.h> | ||
26056 | #include <sys/socket.h> | ||
26057 | #include <sys/uio.h> | ||
26058 | int main() { | ||
26059 | #ifdef msg_accrights | ||
26060 | #error "msg_accrights is a macro" | ||
26061 | exit(1); | ||
26062 | #endif | ||
26063 | struct msghdr m; | ||
26064 | m.msg_accrights = 0; | ||
26065 | exit(0); | ||
26066 | } | ||
26067 | |||
26068 | _ACEOF | ||
26069 | rm -f conftest.$ac_objext | ||
26070 | if { (ac_try="$ac_compile" | ||
26071 | case "(($ac_try" in | ||
26072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26073 | *) ac_try_echo=$ac_try;; | ||
26074 | esac | ||
26075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26076 | (eval "$ac_compile") 2>conftest.er1 | ||
26077 | ac_status=$? | ||
26078 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26079 | rm -f conftest.er1 | ||
26080 | cat conftest.err >&5 | ||
26081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26082 | (exit $ac_status); } && { | ||
26083 | test -z "$ac_c_werror_flag" || | ||
26084 | test ! -s conftest.err | ||
26085 | } && test -s conftest.$ac_objext; then | ||
26086 | ac_cv_have_accrights_in_msghdr="yes" | ||
26087 | else | ||
26088 | echo "$as_me: failed program was:" >&5 | ||
26089 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26090 | |||
26091 | ac_cv_have_accrights_in_msghdr="no" | ||
26092 | |||
26093 | fi | ||
26094 | |||
26095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26096 | |||
26097 | fi | ||
26098 | { echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
26099 | echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; } | ||
26100 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
26101 | |||
26102 | cat >>confdefs.h <<\_ACEOF | ||
26103 | #define HAVE_ACCRIGHTS_IN_MSGHDR 1 | ||
26104 | _ACEOF | ||
26105 | |||
26106 | fi | ||
26107 | |||
26108 | { echo "$as_me:$LINENO: checking if struct statvfs.f_fsid is integral type" >&5 | ||
26109 | echo $ECHO_N "checking if struct statvfs.f_fsid is integral type... $ECHO_C" >&6; } | ||
26110 | cat >conftest.$ac_ext <<_ACEOF | ||
26111 | /* confdefs.h. */ | ||
26112 | _ACEOF | ||
26113 | cat confdefs.h >>conftest.$ac_ext | ||
26114 | cat >>conftest.$ac_ext <<_ACEOF | ||
26115 | /* end confdefs.h. */ | ||
26116 | |||
26117 | #include <sys/types.h> | ||
26118 | #include <sys/stat.h> | ||
26119 | #ifdef HAVE_SYS_TIME_H | ||
26120 | # include <sys/time.h> | ||
26121 | #endif | ||
26122 | #ifdef HAVE_SYS_MOUNT_H | ||
26123 | #include <sys/mount.h> | ||
26124 | #endif | ||
26125 | #ifdef HAVE_SYS_STATVFS_H | ||
26126 | #include <sys/statvfs.h> | ||
26127 | #endif | ||
26128 | |||
26129 | int | ||
26130 | main () | ||
26131 | { | ||
26132 | struct statvfs s; s.f_fsid = 0; | ||
26133 | ; | ||
26134 | return 0; | ||
26135 | } | ||
26136 | _ACEOF | ||
26137 | rm -f conftest.$ac_objext | ||
26138 | if { (ac_try="$ac_compile" | ||
26139 | case "(($ac_try" in | ||
26140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26141 | *) ac_try_echo=$ac_try;; | ||
26142 | esac | ||
26143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26144 | (eval "$ac_compile") 2>conftest.er1 | ||
26145 | ac_status=$? | ||
26146 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26147 | rm -f conftest.er1 | ||
26148 | cat conftest.err >&5 | ||
26149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26150 | (exit $ac_status); } && { | ||
26151 | test -z "$ac_c_werror_flag" || | ||
26152 | test ! -s conftest.err | ||
26153 | } && test -s conftest.$ac_objext; then | ||
26154 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26155 | echo "${ECHO_T}yes" >&6; } | ||
26156 | else | ||
26157 | echo "$as_me: failed program was:" >&5 | ||
26158 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26159 | |||
26160 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26161 | echo "${ECHO_T}no" >&6; } | ||
26162 | |||
26163 | { echo "$as_me:$LINENO: checking if fsid_t has member val" >&5 | ||
26164 | echo $ECHO_N "checking if fsid_t has member val... $ECHO_C" >&6; } | ||
26165 | cat >conftest.$ac_ext <<_ACEOF | ||
26166 | /* confdefs.h. */ | ||
26167 | _ACEOF | ||
26168 | cat confdefs.h >>conftest.$ac_ext | ||
26169 | cat >>conftest.$ac_ext <<_ACEOF | ||
26170 | /* end confdefs.h. */ | ||
26171 | |||
26172 | #include <sys/types.h> | ||
26173 | #include <sys/statvfs.h> | ||
26174 | int | ||
26175 | main () | ||
26176 | { | ||
26177 | fsid_t t; t.val[0] = 0; | ||
26178 | ; | ||
26179 | return 0; | ||
26180 | } | ||
26181 | _ACEOF | ||
26182 | rm -f conftest.$ac_objext | ||
26183 | if { (ac_try="$ac_compile" | ||
26184 | case "(($ac_try" in | ||
26185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26186 | *) ac_try_echo=$ac_try;; | ||
26187 | esac | ||
26188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26189 | (eval "$ac_compile") 2>conftest.er1 | ||
26190 | ac_status=$? | ||
26191 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26192 | rm -f conftest.er1 | ||
26193 | cat conftest.err >&5 | ||
26194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26195 | (exit $ac_status); } && { | ||
26196 | test -z "$ac_c_werror_flag" || | ||
26197 | test ! -s conftest.err | ||
26198 | } && test -s conftest.$ac_objext; then | ||
26199 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26200 | echo "${ECHO_T}yes" >&6; } | ||
26201 | |||
26202 | cat >>confdefs.h <<\_ACEOF | ||
26203 | #define FSID_HAS_VAL 1 | ||
26204 | _ACEOF | ||
26205 | |||
26206 | else | ||
26207 | echo "$as_me: failed program was:" >&5 | ||
26208 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26209 | |||
26210 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26211 | echo "${ECHO_T}no" >&6; } | ||
26212 | fi | ||
26213 | |||
26214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26215 | |||
26216 | { echo "$as_me:$LINENO: checking if f_fsid has member __val" >&5 | ||
26217 | echo $ECHO_N "checking if f_fsid has member __val... $ECHO_C" >&6; } | ||
26218 | cat >conftest.$ac_ext <<_ACEOF | ||
26219 | /* confdefs.h. */ | ||
26220 | _ACEOF | ||
26221 | cat confdefs.h >>conftest.$ac_ext | ||
26222 | cat >>conftest.$ac_ext <<_ACEOF | ||
26223 | /* end confdefs.h. */ | ||
26224 | |||
26225 | #include <sys/types.h> | ||
26226 | #include <sys/statvfs.h> | ||
26227 | int | ||
26228 | main () | ||
26229 | { | ||
26230 | fsid_t t; t.__val[0] = 0; | ||
26231 | ; | ||
26232 | return 0; | ||
26233 | } | ||
26234 | _ACEOF | ||
26235 | rm -f conftest.$ac_objext | ||
26236 | if { (ac_try="$ac_compile" | ||
26237 | case "(($ac_try" in | ||
26238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26239 | *) ac_try_echo=$ac_try;; | ||
26240 | esac | ||
26241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26242 | (eval "$ac_compile") 2>conftest.er1 | ||
26243 | ac_status=$? | ||
26244 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26245 | rm -f conftest.er1 | ||
26246 | cat conftest.err >&5 | ||
26247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26248 | (exit $ac_status); } && { | ||
26249 | test -z "$ac_c_werror_flag" || | ||
26250 | test ! -s conftest.err | ||
26251 | } && test -s conftest.$ac_objext; then | ||
26252 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26253 | echo "${ECHO_T}yes" >&6; } | ||
26254 | |||
26255 | cat >>confdefs.h <<\_ACEOF | ||
26256 | #define FSID_HAS___VAL 1 | ||
26257 | _ACEOF | ||
26258 | |||
26259 | else | ||
26260 | echo "$as_me: failed program was:" >&5 | ||
26261 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26262 | |||
26263 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26264 | echo "${ECHO_T}no" >&6; } | ||
26265 | fi | ||
26266 | |||
26267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26268 | |||
26269 | fi | ||
26270 | |||
26271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26272 | |||
26273 | { echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5 | ||
26274 | echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; } | ||
26275 | if test "${ac_cv_have_control_in_msghdr+set}" = set; then | ||
26276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26277 | else | ||
26278 | |||
26279 | cat >conftest.$ac_ext <<_ACEOF | ||
26280 | |||
26281 | #include <sys/types.h> | ||
26282 | #include <sys/socket.h> | ||
26283 | #include <sys/uio.h> | ||
26284 | int main() { | ||
26285 | #ifdef msg_control | ||
26286 | #error "msg_control is a macro" | ||
26287 | exit(1); | ||
26288 | #endif | ||
26289 | struct msghdr m; | ||
26290 | m.msg_control = 0; | ||
26291 | exit(0); | ||
26292 | } | ||
26293 | |||
26294 | _ACEOF | ||
26295 | rm -f conftest.$ac_objext | ||
26296 | if { (ac_try="$ac_compile" | ||
26297 | case "(($ac_try" in | ||
26298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26299 | *) ac_try_echo=$ac_try;; | ||
26300 | esac | ||
26301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26302 | (eval "$ac_compile") 2>conftest.er1 | ||
26303 | ac_status=$? | ||
26304 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26305 | rm -f conftest.er1 | ||
26306 | cat conftest.err >&5 | ||
26307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26308 | (exit $ac_status); } && { | ||
26309 | test -z "$ac_c_werror_flag" || | ||
26310 | test ! -s conftest.err | ||
26311 | } && test -s conftest.$ac_objext; then | ||
26312 | ac_cv_have_control_in_msghdr="yes" | ||
26313 | else | ||
26314 | echo "$as_me: failed program was:" >&5 | ||
26315 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26316 | |||
26317 | ac_cv_have_control_in_msghdr="no" | ||
26318 | |||
26319 | fi | ||
26320 | |||
26321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26322 | |||
26323 | fi | ||
26324 | { echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5 | ||
26325 | echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; } | ||
26326 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
26327 | |||
26328 | cat >>confdefs.h <<\_ACEOF | ||
26329 | #define HAVE_CONTROL_IN_MSGHDR 1 | ||
26330 | _ACEOF | ||
26331 | |||
26332 | fi | ||
26333 | |||
26334 | { echo "$as_me:$LINENO: checking if libc defines __progname" >&5 | ||
26335 | echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; } | ||
26336 | if test "${ac_cv_libc_defines___progname+set}" = set; then | ||
26337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26338 | else | ||
26339 | |||
26340 | cat >conftest.$ac_ext <<_ACEOF | ||
26341 | /* confdefs.h. */ | ||
26342 | _ACEOF | ||
26343 | cat confdefs.h >>conftest.$ac_ext | ||
26344 | cat >>conftest.$ac_ext <<_ACEOF | ||
26345 | /* end confdefs.h. */ | ||
26346 | |||
26347 | int | ||
26348 | main () | ||
26349 | { | ||
26350 | extern char *__progname; printf("%s", __progname); | ||
26351 | ; | ||
26352 | return 0; | ||
26353 | } | ||
26354 | _ACEOF | ||
26355 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26356 | if { (ac_try="$ac_link" | ||
26357 | case "(($ac_try" in | ||
26358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26359 | *) ac_try_echo=$ac_try;; | ||
26360 | esac | ||
26361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26362 | (eval "$ac_link") 2>conftest.er1 | ||
26363 | ac_status=$? | ||
26364 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26365 | rm -f conftest.er1 | ||
26366 | cat conftest.err >&5 | ||
26367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26368 | (exit $ac_status); } && { | ||
26369 | test -z "$ac_c_werror_flag" || | ||
26370 | test ! -s conftest.err | ||
26371 | } && test -s conftest$ac_exeext && | ||
26372 | $as_test_x conftest$ac_exeext; then | ||
26373 | ac_cv_libc_defines___progname="yes" | ||
26374 | else | ||
26375 | echo "$as_me: failed program was:" >&5 | ||
26376 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26377 | |||
26378 | ac_cv_libc_defines___progname="no" | ||
26379 | |||
26380 | fi | ||
26381 | |||
26382 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26383 | conftest$ac_exeext conftest.$ac_ext | ||
26384 | |||
26385 | fi | ||
26386 | { echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5 | ||
26387 | echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; } | ||
26388 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
26389 | |||
26390 | cat >>confdefs.h <<\_ACEOF | ||
26391 | #define HAVE___PROGNAME 1 | ||
26392 | _ACEOF | ||
26393 | |||
26394 | fi | ||
26395 | |||
26396 | { echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5 | ||
26397 | echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; } | ||
26398 | if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then | ||
26399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26400 | else | ||
26401 | |||
26402 | cat >conftest.$ac_ext <<_ACEOF | ||
26403 | /* confdefs.h. */ | ||
26404 | _ACEOF | ||
26405 | cat confdefs.h >>conftest.$ac_ext | ||
26406 | cat >>conftest.$ac_ext <<_ACEOF | ||
26407 | /* end confdefs.h. */ | ||
26408 | |||
26409 | #include <stdio.h> | ||
26410 | |||
26411 | int | ||
26412 | main () | ||
26413 | { | ||
26414 | printf("%s", __FUNCTION__); | ||
26415 | ; | ||
26416 | return 0; | ||
26417 | } | ||
26418 | _ACEOF | ||
26419 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26420 | if { (ac_try="$ac_link" | ||
26421 | case "(($ac_try" in | ||
26422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26423 | *) ac_try_echo=$ac_try;; | ||
26424 | esac | ||
26425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26426 | (eval "$ac_link") 2>conftest.er1 | ||
26427 | ac_status=$? | ||
26428 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26429 | rm -f conftest.er1 | ||
26430 | cat conftest.err >&5 | ||
26431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26432 | (exit $ac_status); } && { | ||
26433 | test -z "$ac_c_werror_flag" || | ||
26434 | test ! -s conftest.err | ||
26435 | } && test -s conftest$ac_exeext && | ||
26436 | $as_test_x conftest$ac_exeext; then | ||
26437 | ac_cv_cc_implements___FUNCTION__="yes" | ||
26438 | else | ||
26439 | echo "$as_me: failed program was:" >&5 | ||
26440 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26441 | |||
26442 | ac_cv_cc_implements___FUNCTION__="no" | ||
26443 | |||
26444 | fi | ||
26445 | |||
26446 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26447 | conftest$ac_exeext conftest.$ac_ext | ||
26448 | |||
26449 | fi | ||
26450 | { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
26451 | echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; } | ||
26452 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
26453 | |||
26454 | cat >>confdefs.h <<\_ACEOF | ||
26455 | #define HAVE___FUNCTION__ 1 | ||
26456 | _ACEOF | ||
26457 | |||
26458 | fi | ||
26459 | |||
26460 | { echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5 | ||
26461 | echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; } | ||
26462 | if test "${ac_cv_cc_implements___func__+set}" = set; then | ||
26463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26464 | else | ||
26465 | |||
26466 | cat >conftest.$ac_ext <<_ACEOF | ||
26467 | /* confdefs.h. */ | ||
26468 | _ACEOF | ||
26469 | cat confdefs.h >>conftest.$ac_ext | ||
26470 | cat >>conftest.$ac_ext <<_ACEOF | ||
26471 | /* end confdefs.h. */ | ||
26472 | |||
26473 | #include <stdio.h> | ||
26474 | |||
26475 | int | ||
26476 | main () | ||
26477 | { | ||
26478 | printf("%s", __func__); | ||
26479 | ; | ||
26480 | return 0; | ||
26481 | } | ||
26482 | _ACEOF | ||
26483 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26484 | if { (ac_try="$ac_link" | ||
26485 | case "(($ac_try" in | ||
26486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26487 | *) ac_try_echo=$ac_try;; | ||
26488 | esac | ||
26489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26490 | (eval "$ac_link") 2>conftest.er1 | ||
26491 | ac_status=$? | ||
26492 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26493 | rm -f conftest.er1 | ||
26494 | cat conftest.err >&5 | ||
26495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26496 | (exit $ac_status); } && { | ||
26497 | test -z "$ac_c_werror_flag" || | ||
26498 | test ! -s conftest.err | ||
26499 | } && test -s conftest$ac_exeext && | ||
26500 | $as_test_x conftest$ac_exeext; then | ||
26501 | ac_cv_cc_implements___func__="yes" | ||
26502 | else | ||
26503 | echo "$as_me: failed program was:" >&5 | ||
26504 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26505 | |||
26506 | ac_cv_cc_implements___func__="no" | ||
26507 | |||
26508 | fi | ||
26509 | |||
26510 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26511 | conftest$ac_exeext conftest.$ac_ext | ||
26512 | |||
26513 | fi | ||
26514 | { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5 | ||
26515 | echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; } | ||
26516 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
26517 | |||
26518 | cat >>confdefs.h <<\_ACEOF | ||
26519 | #define HAVE___func__ 1 | ||
26520 | _ACEOF | ||
26521 | |||
26522 | fi | ||
26523 | |||
26524 | { echo "$as_me:$LINENO: checking whether va_copy exists" >&5 | ||
26525 | echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; } | ||
26526 | if test "${ac_cv_have_va_copy+set}" = set; then | ||
26527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26528 | else | ||
26529 | |||
26530 | cat >conftest.$ac_ext <<_ACEOF | ||
26531 | /* confdefs.h. */ | ||
26532 | _ACEOF | ||
26533 | cat confdefs.h >>conftest.$ac_ext | ||
26534 | cat >>conftest.$ac_ext <<_ACEOF | ||
26535 | /* end confdefs.h. */ | ||
26536 | #include <stdarg.h> | ||
26537 | va_list x,y; | ||
26538 | int | ||
26539 | main () | ||
26540 | { | ||
26541 | va_copy(x,y); | ||
26542 | ; | ||
26543 | return 0; | ||
26544 | } | ||
26545 | _ACEOF | ||
26546 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26547 | if { (ac_try="$ac_link" | ||
26548 | case "(($ac_try" in | ||
26549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26550 | *) ac_try_echo=$ac_try;; | ||
26551 | esac | ||
26552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26553 | (eval "$ac_link") 2>conftest.er1 | ||
26554 | ac_status=$? | ||
26555 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26556 | rm -f conftest.er1 | ||
26557 | cat conftest.err >&5 | ||
26558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26559 | (exit $ac_status); } && { | ||
26560 | test -z "$ac_c_werror_flag" || | ||
26561 | test ! -s conftest.err | ||
26562 | } && test -s conftest$ac_exeext && | ||
26563 | $as_test_x conftest$ac_exeext; then | ||
26564 | ac_cv_have_va_copy="yes" | ||
26565 | else | ||
26566 | echo "$as_me: failed program was:" >&5 | ||
26567 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26568 | |||
26569 | ac_cv_have_va_copy="no" | ||
26570 | |||
26571 | fi | ||
26572 | |||
26573 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26574 | conftest$ac_exeext conftest.$ac_ext | ||
26575 | |||
26576 | fi | ||
26577 | { echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5 | ||
26578 | echo "${ECHO_T}$ac_cv_have_va_copy" >&6; } | ||
26579 | if test "x$ac_cv_have_va_copy" = "xyes" ; then | ||
26580 | |||
26581 | cat >>confdefs.h <<\_ACEOF | ||
26582 | #define HAVE_VA_COPY 1 | ||
26583 | _ACEOF | ||
26584 | |||
26585 | fi | ||
26586 | |||
26587 | { echo "$as_me:$LINENO: checking whether __va_copy exists" >&5 | ||
26588 | echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; } | ||
26589 | if test "${ac_cv_have___va_copy+set}" = set; then | ||
26590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26591 | else | ||
26592 | |||
26593 | cat >conftest.$ac_ext <<_ACEOF | ||
26594 | /* confdefs.h. */ | ||
26595 | _ACEOF | ||
26596 | cat confdefs.h >>conftest.$ac_ext | ||
26597 | cat >>conftest.$ac_ext <<_ACEOF | ||
26598 | /* end confdefs.h. */ | ||
26599 | #include <stdarg.h> | ||
26600 | va_list x,y; | ||
26601 | int | ||
26602 | main () | ||
26603 | { | ||
26604 | __va_copy(x,y); | ||
26605 | ; | ||
26606 | return 0; | ||
26607 | } | ||
26608 | _ACEOF | ||
26609 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26610 | if { (ac_try="$ac_link" | ||
26611 | case "(($ac_try" in | ||
26612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26613 | *) ac_try_echo=$ac_try;; | ||
26614 | esac | ||
26615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26616 | (eval "$ac_link") 2>conftest.er1 | ||
26617 | ac_status=$? | ||
26618 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26619 | rm -f conftest.er1 | ||
26620 | cat conftest.err >&5 | ||
26621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26622 | (exit $ac_status); } && { | ||
26623 | test -z "$ac_c_werror_flag" || | ||
26624 | test ! -s conftest.err | ||
26625 | } && test -s conftest$ac_exeext && | ||
26626 | $as_test_x conftest$ac_exeext; then | ||
26627 | ac_cv_have___va_copy="yes" | ||
26628 | else | ||
26629 | echo "$as_me: failed program was:" >&5 | ||
26630 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26631 | |||
26632 | ac_cv_have___va_copy="no" | ||
26633 | |||
26634 | fi | ||
26635 | |||
26636 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26637 | conftest$ac_exeext conftest.$ac_ext | ||
26638 | |||
26639 | fi | ||
26640 | { echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5 | ||
26641 | echo "${ECHO_T}$ac_cv_have___va_copy" >&6; } | ||
26642 | if test "x$ac_cv_have___va_copy" = "xyes" ; then | ||
26643 | |||
26644 | cat >>confdefs.h <<\_ACEOF | ||
26645 | #define HAVE___VA_COPY 1 | ||
26646 | _ACEOF | ||
26647 | |||
26648 | fi | ||
26649 | |||
26650 | { echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5 | ||
26651 | echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; } | ||
26652 | if test "${ac_cv_have_getopt_optreset+set}" = set; then | ||
26653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26654 | else | ||
26655 | |||
26656 | cat >conftest.$ac_ext <<_ACEOF | ||
26657 | /* confdefs.h. */ | ||
26658 | _ACEOF | ||
26659 | cat confdefs.h >>conftest.$ac_ext | ||
26660 | cat >>conftest.$ac_ext <<_ACEOF | ||
26661 | /* end confdefs.h. */ | ||
26662 | |||
26663 | #include <getopt.h> | ||
26664 | |||
26665 | int | ||
26666 | main () | ||
26667 | { | ||
26668 | extern int optreset; optreset = 0; | ||
26669 | ; | ||
26670 | return 0; | ||
26671 | } | ||
26672 | _ACEOF | ||
26673 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26674 | if { (ac_try="$ac_link" | ||
26675 | case "(($ac_try" in | ||
26676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26677 | *) ac_try_echo=$ac_try;; | ||
26678 | esac | ||
26679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26680 | (eval "$ac_link") 2>conftest.er1 | ||
26681 | ac_status=$? | ||
26682 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26683 | rm -f conftest.er1 | ||
26684 | cat conftest.err >&5 | ||
26685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26686 | (exit $ac_status); } && { | ||
26687 | test -z "$ac_c_werror_flag" || | ||
26688 | test ! -s conftest.err | ||
26689 | } && test -s conftest$ac_exeext && | ||
26690 | $as_test_x conftest$ac_exeext; then | ||
26691 | ac_cv_have_getopt_optreset="yes" | ||
26692 | else | ||
26693 | echo "$as_me: failed program was:" >&5 | ||
26694 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26695 | |||
26696 | ac_cv_have_getopt_optreset="no" | ||
26697 | |||
26698 | fi | ||
26699 | |||
26700 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26701 | conftest$ac_exeext conftest.$ac_ext | ||
26702 | |||
26703 | fi | ||
26704 | { echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5 | ||
26705 | echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; } | ||
26706 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
26707 | |||
26708 | cat >>confdefs.h <<\_ACEOF | ||
26709 | #define HAVE_GETOPT_OPTRESET 1 | ||
26710 | _ACEOF | ||
26711 | |||
26712 | fi | ||
26713 | |||
26714 | { echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5 | ||
26715 | echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; } | ||
26716 | if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then | ||
26717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26718 | else | ||
26719 | |||
26720 | cat >conftest.$ac_ext <<_ACEOF | ||
26721 | /* confdefs.h. */ | ||
26722 | _ACEOF | ||
26723 | cat confdefs.h >>conftest.$ac_ext | ||
26724 | cat >>conftest.$ac_ext <<_ACEOF | ||
26725 | /* end confdefs.h. */ | ||
26726 | |||
26727 | int | ||
26728 | main () | ||
26729 | { | ||
26730 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
26731 | ; | ||
26732 | return 0; | ||
26733 | } | ||
26734 | _ACEOF | ||
26735 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26736 | if { (ac_try="$ac_link" | ||
26737 | case "(($ac_try" in | ||
26738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26739 | *) ac_try_echo=$ac_try;; | ||
26740 | esac | ||
26741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26742 | (eval "$ac_link") 2>conftest.er1 | ||
26743 | ac_status=$? | ||
26744 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26745 | rm -f conftest.er1 | ||
26746 | cat conftest.err >&5 | ||
26747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26748 | (exit $ac_status); } && { | ||
26749 | test -z "$ac_c_werror_flag" || | ||
26750 | test ! -s conftest.err | ||
26751 | } && test -s conftest$ac_exeext && | ||
26752 | $as_test_x conftest$ac_exeext; then | ||
26753 | ac_cv_libc_defines_sys_errlist="yes" | ||
26754 | else | ||
26755 | echo "$as_me: failed program was:" >&5 | ||
26756 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26757 | |||
26758 | ac_cv_libc_defines_sys_errlist="no" | ||
26759 | |||
26760 | fi | ||
26761 | |||
26762 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26763 | conftest$ac_exeext conftest.$ac_ext | ||
26764 | |||
26765 | fi | ||
26766 | { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
26767 | echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; } | ||
26768 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
26769 | |||
26770 | cat >>confdefs.h <<\_ACEOF | ||
26771 | #define HAVE_SYS_ERRLIST 1 | ||
26772 | _ACEOF | ||
26773 | |||
26774 | fi | ||
26775 | |||
26776 | |||
26777 | { echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5 | ||
26778 | echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; } | ||
26779 | if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then | ||
26780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26781 | else | ||
26782 | |||
26783 | cat >conftest.$ac_ext <<_ACEOF | ||
26784 | /* confdefs.h. */ | ||
26785 | _ACEOF | ||
26786 | cat confdefs.h >>conftest.$ac_ext | ||
26787 | cat >>conftest.$ac_ext <<_ACEOF | ||
26788 | /* end confdefs.h. */ | ||
26789 | |||
26790 | int | ||
26791 | main () | ||
26792 | { | ||
26793 | extern int sys_nerr; printf("%i", sys_nerr); | ||
26794 | ; | ||
26795 | return 0; | ||
26796 | } | ||
26797 | _ACEOF | ||
26798 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26799 | if { (ac_try="$ac_link" | ||
26800 | case "(($ac_try" in | ||
26801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26802 | *) ac_try_echo=$ac_try;; | ||
26803 | esac | ||
26804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26805 | (eval "$ac_link") 2>conftest.er1 | ||
26806 | ac_status=$? | ||
26807 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26808 | rm -f conftest.er1 | ||
26809 | cat conftest.err >&5 | ||
26810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26811 | (exit $ac_status); } && { | ||
26812 | test -z "$ac_c_werror_flag" || | ||
26813 | test ! -s conftest.err | ||
26814 | } && test -s conftest$ac_exeext && | ||
26815 | $as_test_x conftest$ac_exeext; then | ||
26816 | ac_cv_libc_defines_sys_nerr="yes" | ||
26817 | else | ||
26818 | echo "$as_me: failed program was:" >&5 | ||
26819 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26820 | |||
26821 | ac_cv_libc_defines_sys_nerr="no" | ||
26822 | |||
26823 | fi | ||
26824 | |||
26825 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26826 | conftest$ac_exeext conftest.$ac_ext | ||
26827 | |||
26828 | fi | ||
26829 | { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
26830 | echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; } | ||
26831 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
26832 | |||
26833 | cat >>confdefs.h <<\_ACEOF | ||
26834 | #define HAVE_SYS_NERR 1 | ||
26835 | _ACEOF | ||
26836 | |||
26837 | fi | ||
26838 | |||
26839 | # Check libraries needed by DNS fingerprint support | ||
26840 | { echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5 | ||
26841 | echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; } | ||
26842 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
26843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26844 | else | ||
26845 | ac_func_search_save_LIBS=$LIBS | ||
26846 | cat >conftest.$ac_ext <<_ACEOF | ||
26847 | /* confdefs.h. */ | ||
26848 | _ACEOF | ||
26849 | cat confdefs.h >>conftest.$ac_ext | ||
26850 | cat >>conftest.$ac_ext <<_ACEOF | ||
26851 | /* end confdefs.h. */ | ||
26852 | |||
26853 | /* Override any GCC internal prototype to avoid an error. | ||
26854 | Use char because int might match the return type of a GCC | ||
26855 | builtin and then its argument prototype would still apply. */ | ||
26856 | #ifdef __cplusplus | ||
26857 | extern "C" | ||
26858 | #endif | ||
26859 | char getrrsetbyname (); | ||
26860 | int | ||
26861 | main () | ||
26862 | { | ||
26863 | return getrrsetbyname (); | ||
26864 | ; | ||
26865 | return 0; | ||
26866 | } | ||
26867 | _ACEOF | ||
26868 | for ac_lib in '' resolv; do | ||
26869 | if test -z "$ac_lib"; then | ||
26870 | ac_res="none required" | ||
26871 | else | ||
26872 | ac_res=-l$ac_lib | ||
26873 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
26874 | fi | ||
26875 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26876 | if { (ac_try="$ac_link" | ||
26877 | case "(($ac_try" in | ||
26878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26879 | *) ac_try_echo=$ac_try;; | ||
26880 | esac | ||
26881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26882 | (eval "$ac_link") 2>conftest.er1 | ||
26883 | ac_status=$? | ||
26884 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26885 | rm -f conftest.er1 | ||
26886 | cat conftest.err >&5 | ||
26887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26888 | (exit $ac_status); } && { | ||
26889 | test -z "$ac_c_werror_flag" || | ||
26890 | test ! -s conftest.err | ||
26891 | } && test -s conftest$ac_exeext && | ||
26892 | $as_test_x conftest$ac_exeext; then | ||
26893 | ac_cv_search_getrrsetbyname=$ac_res | ||
26894 | else | ||
26895 | echo "$as_me: failed program was:" >&5 | ||
26896 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26897 | |||
26898 | |||
26899 | fi | ||
26900 | |||
26901 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26902 | conftest$ac_exeext | ||
26903 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
26904 | break | ||
26905 | fi | ||
26906 | done | ||
26907 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
26908 | : | ||
26909 | else | ||
26910 | ac_cv_search_getrrsetbyname=no | ||
26911 | fi | ||
26912 | rm conftest.$ac_ext | ||
26913 | LIBS=$ac_func_search_save_LIBS | ||
26914 | fi | ||
26915 | { echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5 | ||
26916 | echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; } | ||
26917 | ac_res=$ac_cv_search_getrrsetbyname | ||
26918 | if test "$ac_res" != no; then | ||
26919 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
26920 | |||
26921 | cat >>confdefs.h <<\_ACEOF | ||
26922 | #define HAVE_GETRRSETBYNAME 1 | ||
26923 | _ACEOF | ||
26924 | |||
26925 | else | ||
26926 | |||
26927 | # Needed by our getrrsetbyname() | ||
26928 | { echo "$as_me:$LINENO: checking for library containing res_query" >&5 | ||
26929 | echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; } | ||
26930 | if test "${ac_cv_search_res_query+set}" = set; then | ||
26931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26932 | else | ||
26933 | ac_func_search_save_LIBS=$LIBS | ||
26934 | cat >conftest.$ac_ext <<_ACEOF | ||
26935 | /* confdefs.h. */ | ||
26936 | _ACEOF | ||
26937 | cat confdefs.h >>conftest.$ac_ext | ||
26938 | cat >>conftest.$ac_ext <<_ACEOF | ||
26939 | /* end confdefs.h. */ | ||
26940 | |||
26941 | /* Override any GCC internal prototype to avoid an error. | ||
26942 | Use char because int might match the return type of a GCC | ||
26943 | builtin and then its argument prototype would still apply. */ | ||
26944 | #ifdef __cplusplus | ||
26945 | extern "C" | ||
26946 | #endif | ||
26947 | char res_query (); | ||
26948 | int | ||
26949 | main () | ||
26950 | { | ||
26951 | return res_query (); | ||
26952 | ; | ||
26953 | return 0; | ||
26954 | } | ||
26955 | _ACEOF | ||
26956 | for ac_lib in '' resolv; do | ||
26957 | if test -z "$ac_lib"; then | ||
26958 | ac_res="none required" | ||
26959 | else | ||
26960 | ac_res=-l$ac_lib | ||
26961 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
26962 | fi | ||
26963 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26964 | if { (ac_try="$ac_link" | ||
26965 | case "(($ac_try" in | ||
26966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26967 | *) ac_try_echo=$ac_try;; | ||
26968 | esac | ||
26969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26970 | (eval "$ac_link") 2>conftest.er1 | ||
26971 | ac_status=$? | ||
26972 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26973 | rm -f conftest.er1 | ||
26974 | cat conftest.err >&5 | ||
26975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26976 | (exit $ac_status); } && { | ||
26977 | test -z "$ac_c_werror_flag" || | ||
26978 | test ! -s conftest.err | ||
26979 | } && test -s conftest$ac_exeext && | ||
26980 | $as_test_x conftest$ac_exeext; then | ||
26981 | ac_cv_search_res_query=$ac_res | ||
26982 | else | ||
26983 | echo "$as_me: failed program was:" >&5 | ||
26984 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26985 | |||
26986 | |||
26987 | fi | ||
26988 | |||
26989 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26990 | conftest$ac_exeext | ||
26991 | if test "${ac_cv_search_res_query+set}" = set; then | ||
26992 | break | ||
26993 | fi | ||
26994 | done | ||
26995 | if test "${ac_cv_search_res_query+set}" = set; then | ||
26996 | : | ||
26997 | else | ||
26998 | ac_cv_search_res_query=no | ||
26999 | fi | ||
27000 | rm conftest.$ac_ext | ||
27001 | LIBS=$ac_func_search_save_LIBS | ||
27002 | fi | ||
27003 | { echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5 | ||
27004 | echo "${ECHO_T}$ac_cv_search_res_query" >&6; } | ||
27005 | ac_res=$ac_cv_search_res_query | ||
27006 | if test "$ac_res" != no; then | ||
27007 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
27008 | |||
27009 | fi | ||
27010 | |||
27011 | { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
27012 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; } | ||
27013 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
27014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27015 | else | ||
27016 | ac_func_search_save_LIBS=$LIBS | ||
27017 | cat >conftest.$ac_ext <<_ACEOF | ||
27018 | /* confdefs.h. */ | ||
27019 | _ACEOF | ||
27020 | cat confdefs.h >>conftest.$ac_ext | ||
27021 | cat >>conftest.$ac_ext <<_ACEOF | ||
27022 | /* end confdefs.h. */ | ||
27023 | |||
27024 | /* Override any GCC internal prototype to avoid an error. | ||
27025 | Use char because int might match the return type of a GCC | ||
27026 | builtin and then its argument prototype would still apply. */ | ||
27027 | #ifdef __cplusplus | ||
27028 | extern "C" | ||
27029 | #endif | ||
27030 | char dn_expand (); | ||
27031 | int | ||
27032 | main () | ||
27033 | { | ||
27034 | return dn_expand (); | ||
27035 | ; | ||
27036 | return 0; | ||
27037 | } | ||
27038 | _ACEOF | ||
27039 | for ac_lib in '' resolv; do | ||
27040 | if test -z "$ac_lib"; then | ||
27041 | ac_res="none required" | ||
27042 | else | ||
27043 | ac_res=-l$ac_lib | ||
27044 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
27045 | fi | ||
27046 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
27047 | if { (ac_try="$ac_link" | ||
27048 | case "(($ac_try" in | ||
27049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27050 | *) ac_try_echo=$ac_try;; | ||
27051 | esac | ||
27052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27053 | (eval "$ac_link") 2>conftest.er1 | ||
27054 | ac_status=$? | ||
27055 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27056 | rm -f conftest.er1 | ||
27057 | cat conftest.err >&5 | ||
27058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27059 | (exit $ac_status); } && { | ||
27060 | test -z "$ac_c_werror_flag" || | ||
27061 | test ! -s conftest.err | ||
27062 | } && test -s conftest$ac_exeext && | ||
27063 | $as_test_x conftest$ac_exeext; then | ||
27064 | ac_cv_search_dn_expand=$ac_res | ||
27065 | else | ||
27066 | echo "$as_me: failed program was:" >&5 | ||
27067 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27068 | |||
27069 | |||
27070 | fi | ||
27071 | |||
27072 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
27073 | conftest$ac_exeext | ||
27074 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
27075 | break | ||
27076 | fi | ||
27077 | done | ||
27078 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
27079 | : | ||
27080 | else | ||
27081 | ac_cv_search_dn_expand=no | ||
27082 | fi | ||
27083 | rm conftest.$ac_ext | ||
27084 | LIBS=$ac_func_search_save_LIBS | ||
27085 | fi | ||
27086 | { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
27087 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; } | ||
27088 | ac_res=$ac_cv_search_dn_expand | ||
27089 | if test "$ac_res" != no; then | ||
27090 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
27091 | |||
27092 | fi | ||
27093 | |||
27094 | { echo "$as_me:$LINENO: checking if res_query will link" >&5 | ||
27095 | echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; } | ||
27096 | cat >conftest.$ac_ext <<_ACEOF | ||
27097 | |||
27098 | #include "confdefs.h" | ||
27099 | #include <sys/types.h> | ||
27100 | #include <netinet/in.h> | ||
27101 | #include <arpa/nameser.h> | ||
27102 | #include <netdb.h> | ||
27103 | #include <resolv.h> | ||
27104 | int main() | ||
27105 | { | ||
27106 | res_query (0, 0, 0, 0, 0); | ||
27107 | return 0; | ||
27108 | } | ||
27109 | |||
27110 | _ACEOF | ||
27111 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
27112 | if { (ac_try="$ac_link" | ||
27113 | case "(($ac_try" in | ||
27114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27115 | *) ac_try_echo=$ac_try;; | ||
27116 | esac | ||
27117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27118 | (eval "$ac_link") 2>conftest.er1 | ||
27119 | ac_status=$? | ||
27120 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27121 | rm -f conftest.er1 | ||
27122 | cat conftest.err >&5 | ||
27123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27124 | (exit $ac_status); } && { | ||
27125 | test -z "$ac_c_werror_flag" || | ||
27126 | test ! -s conftest.err | ||
27127 | } && test -s conftest$ac_exeext && | ||
27128 | $as_test_x conftest$ac_exeext; then | ||
27129 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
27130 | echo "${ECHO_T}yes" >&6; } | ||
27131 | else | ||
27132 | echo "$as_me: failed program was:" >&5 | ||
27133 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27134 | |||
27135 | { echo "$as_me:$LINENO: result: no" >&5 | ||
27136 | echo "${ECHO_T}no" >&6; } | ||
27137 | saved_LIBS="$LIBS" | ||
27138 | LIBS="$LIBS -lresolv" | ||
27139 | { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 | ||
27140 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; } | ||
27141 | cat >conftest.$ac_ext <<_ACEOF | ||
27142 | |||
27143 | #include "confdefs.h" | ||
27144 | #include <sys/types.h> | ||
27145 | #include <netinet/in.h> | ||
27146 | #include <arpa/nameser.h> | ||
27147 | #include <netdb.h> | ||
27148 | #include <resolv.h> | ||
27149 | int main() | ||
27150 | { | ||
27151 | res_query (0, 0, 0, 0, 0); | ||
27152 | return 0; | ||
27153 | } | ||
27154 | |||
27155 | _ACEOF | ||
27156 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
27157 | if { (ac_try="$ac_link" | ||
27158 | case "(($ac_try" in | ||
27159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27160 | *) ac_try_echo=$ac_try;; | ||
27161 | esac | ||
27162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27163 | (eval "$ac_link") 2>conftest.er1 | ||
27164 | ac_status=$? | ||
27165 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27166 | rm -f conftest.er1 | ||
27167 | cat conftest.err >&5 | ||
27168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27169 | (exit $ac_status); } && { | ||
27170 | test -z "$ac_c_werror_flag" || | ||
27171 | test ! -s conftest.err | ||
27172 | } && test -s conftest$ac_exeext && | ||
27173 | $as_test_x conftest$ac_exeext; then | ||
27174 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
27175 | echo "${ECHO_T}yes" >&6; } | ||
27176 | else | ||
27177 | echo "$as_me: failed program was:" >&5 | ||
27178 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27179 | |||
27180 | LIBS="$saved_LIBS" | ||
27181 | { echo "$as_me:$LINENO: result: no" >&5 | ||
27182 | echo "${ECHO_T}no" >&6; } | ||
27183 | fi | ||
27184 | |||
27185 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
27186 | conftest$ac_exeext conftest.$ac_ext | ||
27187 | |||
27188 | fi | ||
27189 | |||
27190 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
27191 | conftest$ac_exeext conftest.$ac_ext | ||
27192 | |||
27193 | |||
27194 | for ac_func in _getshort _getlong | ||
27195 | do | ||
27196 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
27197 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
27198 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
27199 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27201 | else | ||
27202 | cat >conftest.$ac_ext <<_ACEOF | ||
27203 | /* confdefs.h. */ | ||
27204 | _ACEOF | ||
27205 | cat confdefs.h >>conftest.$ac_ext | ||
27206 | cat >>conftest.$ac_ext <<_ACEOF | ||
27207 | /* end confdefs.h. */ | ||
27208 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
27209 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
27210 | #define $ac_func innocuous_$ac_func | ||
27211 | |||
27212 | /* System header to define __stub macros and hopefully few prototypes, | ||
27213 | which can conflict with char $ac_func (); below. | ||
27214 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
27215 | <limits.h> exists even on freestanding compilers. */ | ||
27216 | |||
27217 | #ifdef __STDC__ | ||
27218 | # include <limits.h> | ||
27219 | #else | ||
27220 | # include <assert.h> | ||
27221 | #endif | ||
27222 | |||
27223 | #undef $ac_func | ||
27224 | |||
27225 | /* Override any GCC internal prototype to avoid an error. | ||
27226 | Use char because int might match the return type of a GCC | ||
27227 | builtin and then its argument prototype would still apply. */ | ||
27228 | #ifdef __cplusplus | ||
27229 | extern "C" | ||
27230 | #endif | ||
27231 | char $ac_func (); | ||
27232 | /* The GNU C library defines this for functions which it implements | ||
27233 | to always fail with ENOSYS. Some functions are actually named | ||
27234 | something starting with __ and the normal name is an alias. */ | ||
27235 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
27236 | choke me | ||
27237 | #endif | ||
27238 | |||
27239 | int | ||
27240 | main () | ||
27241 | { | ||
27242 | return $ac_func (); | ||
27243 | ; | ||
27244 | return 0; | ||
27245 | } | ||
27246 | _ACEOF | ||
27247 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
27248 | if { (ac_try="$ac_link" | ||
27249 | case "(($ac_try" in | ||
27250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27251 | *) ac_try_echo=$ac_try;; | ||
27252 | esac | ||
27253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27254 | (eval "$ac_link") 2>conftest.er1 | ||
27255 | ac_status=$? | ||
27256 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27257 | rm -f conftest.er1 | ||
27258 | cat conftest.err >&5 | ||
27259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27260 | (exit $ac_status); } && { | ||
27261 | test -z "$ac_c_werror_flag" || | ||
27262 | test ! -s conftest.err | ||
27263 | } && test -s conftest$ac_exeext && | ||
27264 | $as_test_x conftest$ac_exeext; then | ||
27265 | eval "$as_ac_var=yes" | ||
27266 | else | ||
27267 | echo "$as_me: failed program was:" >&5 | ||
27268 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27269 | |||
27270 | eval "$as_ac_var=no" | ||
27271 | fi | ||
27272 | |||
27273 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
27274 | conftest$ac_exeext conftest.$ac_ext | ||
27275 | fi | ||
27276 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
27277 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
27278 | echo "${ECHO_T}$ac_res" >&6; } | ||
27279 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
27280 | cat >>confdefs.h <<_ACEOF | ||
27281 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
27282 | _ACEOF | ||
27283 | |||
27284 | fi | ||
27285 | done | ||
27286 | |||
27287 | { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5 | ||
27288 | echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; } | ||
27289 | if test "${ac_cv_have_decl__getshort+set}" = set; then | ||
27290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27291 | else | ||
27292 | cat >conftest.$ac_ext <<_ACEOF | ||
27293 | /* confdefs.h. */ | ||
27294 | _ACEOF | ||
27295 | cat confdefs.h >>conftest.$ac_ext | ||
27296 | cat >>conftest.$ac_ext <<_ACEOF | ||
27297 | /* end confdefs.h. */ | ||
27298 | #include <sys/types.h> | ||
27299 | #include <arpa/nameser.h> | ||
27300 | |||
27301 | int | ||
27302 | main () | ||
27303 | { | ||
27304 | #ifndef _getshort | ||
27305 | (void) _getshort; | ||
27306 | #endif | ||
27307 | |||
27308 | ; | ||
27309 | return 0; | ||
27310 | } | ||
27311 | _ACEOF | ||
27312 | rm -f conftest.$ac_objext | ||
27313 | if { (ac_try="$ac_compile" | ||
27314 | case "(($ac_try" in | ||
27315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27316 | *) ac_try_echo=$ac_try;; | ||
27317 | esac | ||
27318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27319 | (eval "$ac_compile") 2>conftest.er1 | ||
27320 | ac_status=$? | ||
27321 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27322 | rm -f conftest.er1 | ||
27323 | cat conftest.err >&5 | ||
27324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27325 | (exit $ac_status); } && { | ||
27326 | test -z "$ac_c_werror_flag" || | ||
27327 | test ! -s conftest.err | ||
27328 | } && test -s conftest.$ac_objext; then | ||
27329 | ac_cv_have_decl__getshort=yes | ||
27330 | else | ||
27331 | echo "$as_me: failed program was:" >&5 | ||
27332 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27333 | |||
27334 | ac_cv_have_decl__getshort=no | ||
27335 | fi | ||
27336 | |||
27337 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27338 | fi | ||
27339 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5 | ||
27340 | echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; } | ||
27341 | if test $ac_cv_have_decl__getshort = yes; then | ||
27342 | |||
27343 | cat >>confdefs.h <<_ACEOF | ||
27344 | #define HAVE_DECL__GETSHORT 1 | ||
27345 | _ACEOF | ||
27346 | |||
27347 | |||
27348 | else | ||
27349 | cat >>confdefs.h <<_ACEOF | ||
27350 | #define HAVE_DECL__GETSHORT 0 | ||
27351 | _ACEOF | ||
27352 | |||
27353 | |||
27354 | fi | ||
27355 | { echo "$as_me:$LINENO: checking whether _getlong is declared" >&5 | ||
27356 | echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; } | ||
27357 | if test "${ac_cv_have_decl__getlong+set}" = set; then | ||
27358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27359 | else | ||
27360 | cat >conftest.$ac_ext <<_ACEOF | ||
27361 | /* confdefs.h. */ | ||
27362 | _ACEOF | ||
27363 | cat confdefs.h >>conftest.$ac_ext | ||
27364 | cat >>conftest.$ac_ext <<_ACEOF | ||
27365 | /* end confdefs.h. */ | ||
27366 | #include <sys/types.h> | ||
27367 | #include <arpa/nameser.h> | ||
27368 | |||
27369 | int | ||
27370 | main () | ||
27371 | { | ||
27372 | #ifndef _getlong | ||
27373 | (void) _getlong; | ||
27374 | #endif | ||
27375 | |||
27376 | ; | ||
27377 | return 0; | ||
27378 | } | ||
27379 | _ACEOF | ||
27380 | rm -f conftest.$ac_objext | ||
27381 | if { (ac_try="$ac_compile" | ||
27382 | case "(($ac_try" in | ||
27383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27384 | *) ac_try_echo=$ac_try;; | ||
27385 | esac | ||
27386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27387 | (eval "$ac_compile") 2>conftest.er1 | ||
27388 | ac_status=$? | ||
27389 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27390 | rm -f conftest.er1 | ||
27391 | cat conftest.err >&5 | ||
27392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27393 | (exit $ac_status); } && { | ||
27394 | test -z "$ac_c_werror_flag" || | ||
27395 | test ! -s conftest.err | ||
27396 | } && test -s conftest.$ac_objext; then | ||
27397 | ac_cv_have_decl__getlong=yes | ||
27398 | else | ||
27399 | echo "$as_me: failed program was:" >&5 | ||
27400 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27401 | |||
27402 | ac_cv_have_decl__getlong=no | ||
27403 | fi | ||
27404 | |||
27405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27406 | fi | ||
27407 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5 | ||
27408 | echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; } | ||
27409 | if test $ac_cv_have_decl__getlong = yes; then | ||
27410 | |||
27411 | cat >>confdefs.h <<_ACEOF | ||
27412 | #define HAVE_DECL__GETLONG 1 | ||
27413 | _ACEOF | ||
27414 | |||
27415 | |||
27416 | else | ||
27417 | cat >>confdefs.h <<_ACEOF | ||
27418 | #define HAVE_DECL__GETLONG 0 | ||
27419 | _ACEOF | ||
27420 | |||
27421 | |||
27422 | fi | ||
27423 | |||
27424 | |||
27425 | { echo "$as_me:$LINENO: checking for HEADER.ad" >&5 | ||
27426 | echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; } | ||
27427 | if test "${ac_cv_member_HEADER_ad+set}" = set; then | ||
27428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27429 | else | ||
27430 | cat >conftest.$ac_ext <<_ACEOF | ||
27431 | /* confdefs.h. */ | ||
27432 | _ACEOF | ||
27433 | cat confdefs.h >>conftest.$ac_ext | ||
27434 | cat >>conftest.$ac_ext <<_ACEOF | ||
27435 | /* end confdefs.h. */ | ||
27436 | #include <arpa/nameser.h> | ||
27437 | |||
27438 | int | ||
27439 | main () | ||
27440 | { | ||
27441 | static HEADER ac_aggr; | ||
27442 | if (ac_aggr.ad) | ||
27443 | return 0; | ||
27444 | ; | ||
27445 | return 0; | ||
27446 | } | ||
27447 | _ACEOF | ||
27448 | rm -f conftest.$ac_objext | ||
27449 | if { (ac_try="$ac_compile" | ||
27450 | case "(($ac_try" in | ||
27451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27452 | *) ac_try_echo=$ac_try;; | ||
27453 | esac | ||
27454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27455 | (eval "$ac_compile") 2>conftest.er1 | ||
27456 | ac_status=$? | ||
27457 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27458 | rm -f conftest.er1 | ||
27459 | cat conftest.err >&5 | ||
27460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27461 | (exit $ac_status); } && { | ||
27462 | test -z "$ac_c_werror_flag" || | ||
27463 | test ! -s conftest.err | ||
27464 | } && test -s conftest.$ac_objext; then | ||
27465 | ac_cv_member_HEADER_ad=yes | ||
27466 | else | ||
27467 | echo "$as_me: failed program was:" >&5 | ||
27468 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27469 | |||
27470 | cat >conftest.$ac_ext <<_ACEOF | ||
27471 | /* confdefs.h. */ | ||
27472 | _ACEOF | ||
27473 | cat confdefs.h >>conftest.$ac_ext | ||
27474 | cat >>conftest.$ac_ext <<_ACEOF | ||
27475 | /* end confdefs.h. */ | ||
27476 | #include <arpa/nameser.h> | ||
27477 | |||
27478 | int | ||
27479 | main () | ||
27480 | { | ||
27481 | static HEADER ac_aggr; | ||
27482 | if (sizeof ac_aggr.ad) | ||
27483 | return 0; | ||
27484 | ; | ||
27485 | return 0; | ||
27486 | } | ||
27487 | _ACEOF | ||
27488 | rm -f conftest.$ac_objext | ||
27489 | if { (ac_try="$ac_compile" | ||
27490 | case "(($ac_try" in | ||
27491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27492 | *) ac_try_echo=$ac_try;; | ||
27493 | esac | ||
27494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27495 | (eval "$ac_compile") 2>conftest.er1 | ||
27496 | ac_status=$? | ||
27497 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27498 | rm -f conftest.er1 | ||
27499 | cat conftest.err >&5 | ||
27500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27501 | (exit $ac_status); } && { | ||
27502 | test -z "$ac_c_werror_flag" || | ||
27503 | test ! -s conftest.err | ||
27504 | } && test -s conftest.$ac_objext; then | ||
27505 | ac_cv_member_HEADER_ad=yes | ||
27506 | else | ||
27507 | echo "$as_me: failed program was:" >&5 | ||
27508 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27509 | |||
27510 | ac_cv_member_HEADER_ad=no | ||
27511 | fi | ||
27512 | |||
27513 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27514 | fi | ||
27515 | |||
27516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27517 | fi | ||
27518 | { echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5 | ||
27519 | echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; } | ||
27520 | if test $ac_cv_member_HEADER_ad = yes; then | ||
27521 | |||
27522 | cat >>confdefs.h <<\_ACEOF | ||
27523 | #define HAVE_HEADER_AD 1 | ||
27524 | _ACEOF | ||
27525 | |||
27526 | fi | ||
27527 | |||
27528 | |||
27529 | fi | ||
27530 | |||
27531 | |||
27532 | { echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5 | ||
27533 | echo $ECHO_N "checking if struct __res_state _res is an extern... $ECHO_C" >&6; } | ||
27534 | cat >conftest.$ac_ext <<_ACEOF | ||
27535 | |||
27536 | #include <stdio.h> | ||
27537 | #if HAVE_SYS_TYPES_H | ||
27538 | # include <sys/types.h> | ||
27539 | #endif | ||
27540 | #include <netinet/in.h> | ||
27541 | #include <arpa/nameser.h> | ||
27542 | #include <resolv.h> | ||
27543 | extern struct __res_state _res; | ||
27544 | int main() { return 0; } | ||
27545 | |||
27546 | _ACEOF | ||
27547 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
27548 | if { (ac_try="$ac_link" | ||
27549 | case "(($ac_try" in | ||
27550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27551 | *) ac_try_echo=$ac_try;; | ||
27552 | esac | ||
27553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27554 | (eval "$ac_link") 2>conftest.er1 | ||
27555 | ac_status=$? | ||
27556 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27557 | rm -f conftest.er1 | ||
27558 | cat conftest.err >&5 | ||
27559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27560 | (exit $ac_status); } && { | ||
27561 | test -z "$ac_c_werror_flag" || | ||
27562 | test ! -s conftest.err | ||
27563 | } && test -s conftest$ac_exeext && | ||
27564 | $as_test_x conftest$ac_exeext; then | ||
27565 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
27566 | echo "${ECHO_T}yes" >&6; } | ||
27567 | |||
27568 | cat >>confdefs.h <<\_ACEOF | ||
27569 | #define HAVE__RES_EXTERN 1 | ||
27570 | _ACEOF | ||
27571 | |||
27572 | |||
27573 | else | ||
27574 | echo "$as_me: failed program was:" >&5 | ||
27575 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27576 | |||
27577 | { echo "$as_me:$LINENO: result: no" >&5 | ||
27578 | echo "${ECHO_T}no" >&6; } | ||
27579 | |||
27580 | fi | ||
27581 | |||
27582 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
27583 | conftest$ac_exeext conftest.$ac_ext | ||
27584 | |||
27585 | # Check whether user wants SELinux support | ||
27586 | SELINUX_MSG="no" | ||
27587 | LIBSELINUX="" | ||
27588 | |||
27589 | # Check whether --with-selinux was given. | ||
27590 | if test "${with_selinux+set}" = set; then | ||
27591 | withval=$with_selinux; if test "x$withval" != "xno" ; then | ||
27592 | save_LIBS="$LIBS" | ||
27593 | |||
27594 | cat >>confdefs.h <<\_ACEOF | ||
27595 | #define WITH_SELINUX 1 | ||
27596 | _ACEOF | ||
27597 | |||
27598 | SELINUX_MSG="yes" | ||
27599 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
27600 | { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 | ||
27601 | echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; } | ||
27602 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
27603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27604 | fi | ||
27605 | { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 | ||
27606 | echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; } | ||
27607 | else | ||
27608 | # Is the header compilable? | ||
27609 | { echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5 | ||
27610 | echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; } | ||
27611 | cat >conftest.$ac_ext <<_ACEOF | ||
27612 | /* confdefs.h. */ | ||
27613 | _ACEOF | ||
27614 | cat confdefs.h >>conftest.$ac_ext | ||
27615 | cat >>conftest.$ac_ext <<_ACEOF | ||
27616 | /* end confdefs.h. */ | ||
27617 | $ac_includes_default | ||
27618 | #include <selinux/selinux.h> | ||
27619 | _ACEOF | ||
27620 | rm -f conftest.$ac_objext | ||
27621 | if { (ac_try="$ac_compile" | ||
27622 | case "(($ac_try" in | ||
27623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27624 | *) ac_try_echo=$ac_try;; | ||
27625 | esac | ||
27626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27627 | (eval "$ac_compile") 2>conftest.er1 | ||
27628 | ac_status=$? | ||
27629 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27630 | rm -f conftest.er1 | ||
27631 | cat conftest.err >&5 | ||
27632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27633 | (exit $ac_status); } && { | ||
27634 | test -z "$ac_c_werror_flag" || | ||
27635 | test ! -s conftest.err | ||
27636 | } && test -s conftest.$ac_objext; then | ||
27637 | ac_header_compiler=yes | ||
27638 | else | ||
27639 | echo "$as_me: failed program was:" >&5 | ||
27640 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27641 | |||
27642 | ac_header_compiler=no | ||
27643 | fi | ||
27644 | |||
27645 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27646 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
27647 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
27648 | |||
27649 | # Is the header present? | ||
27650 | { echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5 | ||
27651 | echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; } | ||
27652 | cat >conftest.$ac_ext <<_ACEOF | ||
27653 | /* confdefs.h. */ | ||
27654 | _ACEOF | ||
27655 | cat confdefs.h >>conftest.$ac_ext | ||
27656 | cat >>conftest.$ac_ext <<_ACEOF | ||
27657 | /* end confdefs.h. */ | ||
27658 | #include <selinux/selinux.h> | ||
27659 | _ACEOF | ||
27660 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
27661 | case "(($ac_try" in | ||
27662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27663 | *) ac_try_echo=$ac_try;; | ||
27664 | esac | ||
27665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27666 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
27667 | ac_status=$? | ||
27668 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27669 | rm -f conftest.er1 | ||
27670 | cat conftest.err >&5 | ||
27671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27672 | (exit $ac_status); } >/dev/null && { | ||
27673 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
27674 | test ! -s conftest.err | ||
27675 | }; then | ||
27676 | ac_header_preproc=yes | ||
27677 | else | ||
27678 | echo "$as_me: failed program was:" >&5 | ||
27679 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27680 | |||
27681 | ac_header_preproc=no | ||
27682 | fi | ||
27683 | |||
27684 | rm -f conftest.err conftest.$ac_ext | ||
27685 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
27686 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
27687 | |||
27688 | # So? What about this header? | ||
27689 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
27690 | yes:no: ) | ||
27691 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
27692 | echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
27693 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5 | ||
27694 | echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;} | ||
27695 | ac_header_preproc=yes | ||
27696 | ;; | ||
27697 | no:yes:* ) | ||
27698 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5 | ||
27699 | echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;} | ||
27700 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5 | ||
27701 | echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;} | ||
27702 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5 | ||
27703 | echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;} | ||
27704 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
27705 | echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
27706 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5 | ||
27707 | echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;} | ||
27708 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5 | ||
27709 | echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;} | ||
27710 | ( cat <<\_ASBOX | ||
27711 | ## ------------------------------------------- ## | ||
27712 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
27713 | ## ------------------------------------------- ## | ||
27714 | _ASBOX | ||
27715 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
27716 | ;; | ||
27717 | esac | ||
27718 | { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 | ||
27719 | echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; } | ||
27720 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
27721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27722 | else | ||
27723 | ac_cv_header_selinux_selinux_h=$ac_header_preproc | ||
27724 | fi | ||
27725 | { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 | ||
27726 | echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; } | ||
27727 | |||
27728 | fi | ||
27729 | if test $ac_cv_header_selinux_selinux_h = yes; then | ||
27730 | : | ||
27731 | else | ||
27732 | { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5 | ||
27733 | echo "$as_me: error: SELinux support requires selinux.h header" >&2;} | ||
27734 | { (exit 1); exit 1; }; } | ||
27735 | fi | ||
27736 | |||
27737 | |||
27738 | { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5 | ||
27739 | echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; } | ||
27740 | if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then | ||
27741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27742 | else | ||
27743 | ac_check_lib_save_LIBS=$LIBS | ||
27744 | LIBS="-lselinux $LIBS" | ||
27745 | cat >conftest.$ac_ext <<_ACEOF | ||
27746 | /* confdefs.h. */ | ||
27747 | _ACEOF | ||
27748 | cat confdefs.h >>conftest.$ac_ext | ||
27749 | cat >>conftest.$ac_ext <<_ACEOF | ||
27750 | /* end confdefs.h. */ | ||
27751 | |||
27752 | /* Override any GCC internal prototype to avoid an error. | ||
27753 | Use char because int might match the return type of a GCC | ||
27754 | builtin and then its argument prototype would still apply. */ | ||
27755 | #ifdef __cplusplus | ||
27756 | extern "C" | ||
27757 | #endif | ||
27758 | char setexeccon (); | ||
27759 | int | ||
27760 | main () | ||
27761 | { | ||
27762 | return setexeccon (); | ||
27763 | ; | ||
27764 | return 0; | ||
27765 | } | ||
27766 | _ACEOF | ||
27767 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
27768 | if { (ac_try="$ac_link" | ||
27769 | case "(($ac_try" in | ||
27770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27771 | *) ac_try_echo=$ac_try;; | ||
27772 | esac | ||
27773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27774 | (eval "$ac_link") 2>conftest.er1 | ||
27775 | ac_status=$? | ||
27776 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27777 | rm -f conftest.er1 | ||
27778 | cat conftest.err >&5 | ||
27779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27780 | (exit $ac_status); } && { | ||
27781 | test -z "$ac_c_werror_flag" || | ||
27782 | test ! -s conftest.err | ||
27783 | } && test -s conftest$ac_exeext && | ||
27784 | $as_test_x conftest$ac_exeext; then | ||
27785 | ac_cv_lib_selinux_setexeccon=yes | ||
27786 | else | ||
27787 | echo "$as_me: failed program was:" >&5 | ||
27788 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27789 | |||
27790 | ac_cv_lib_selinux_setexeccon=no | ||
27791 | fi | ||
27792 | |||
27793 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
27794 | conftest$ac_exeext conftest.$ac_ext | ||
27795 | LIBS=$ac_check_lib_save_LIBS | ||
27796 | fi | ||
27797 | { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5 | ||
27798 | echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; } | ||
27799 | if test $ac_cv_lib_selinux_setexeccon = yes; then | ||
27800 | LIBSELINUX="-lselinux" | ||
27801 | LIBS="$LIBS -lselinux" | ||
27802 | |||
27803 | else | ||
27804 | { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5 | ||
27805 | echo "$as_me: error: SELinux support requires libselinux library" >&2;} | ||
27806 | { (exit 1); exit 1; }; } | ||
27807 | fi | ||
27808 | |||
27809 | SSHDLIBS="$SSHDLIBS $LIBSELINUX" | ||
27810 | |||
27811 | |||
27812 | for ac_func in getseuserbyname get_default_context_with_level | ||
27813 | do | ||
27814 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
27815 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
27816 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
27817 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27819 | else | ||
27820 | cat >conftest.$ac_ext <<_ACEOF | ||
27821 | /* confdefs.h. */ | ||
27822 | _ACEOF | ||
27823 | cat confdefs.h >>conftest.$ac_ext | ||
27824 | cat >>conftest.$ac_ext <<_ACEOF | ||
27825 | /* end confdefs.h. */ | ||
27826 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
27827 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
27828 | #define $ac_func innocuous_$ac_func | ||
27829 | |||
27830 | /* System header to define __stub macros and hopefully few prototypes, | ||
27831 | which can conflict with char $ac_func (); below. | ||
27832 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
27833 | <limits.h> exists even on freestanding compilers. */ | ||
27834 | |||
27835 | #ifdef __STDC__ | ||
27836 | # include <limits.h> | ||
27837 | #else | ||
27838 | # include <assert.h> | ||
27839 | #endif | ||
27840 | |||
27841 | #undef $ac_func | ||
27842 | |||
27843 | /* Override any GCC internal prototype to avoid an error. | ||
27844 | Use char because int might match the return type of a GCC | ||
27845 | builtin and then its argument prototype would still apply. */ | ||
27846 | #ifdef __cplusplus | ||
27847 | extern "C" | ||
27848 | #endif | ||
27849 | char $ac_func (); | ||
27850 | /* The GNU C library defines this for functions which it implements | ||
27851 | to always fail with ENOSYS. Some functions are actually named | ||
27852 | something starting with __ and the normal name is an alias. */ | ||
27853 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
27854 | choke me | ||
27855 | #endif | ||
27856 | |||
27857 | int | ||
27858 | main () | ||
27859 | { | ||
27860 | return $ac_func (); | ||
27861 | ; | ||
27862 | return 0; | ||
27863 | } | ||
27864 | _ACEOF | ||
27865 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
27866 | if { (ac_try="$ac_link" | ||
27867 | case "(($ac_try" in | ||
27868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27869 | *) ac_try_echo=$ac_try;; | ||
27870 | esac | ||
27871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27872 | (eval "$ac_link") 2>conftest.er1 | ||
27873 | ac_status=$? | ||
27874 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27875 | rm -f conftest.er1 | ||
27876 | cat conftest.err >&5 | ||
27877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27878 | (exit $ac_status); } && { | ||
27879 | test -z "$ac_c_werror_flag" || | ||
27880 | test ! -s conftest.err | ||
27881 | } && test -s conftest$ac_exeext && | ||
27882 | $as_test_x conftest$ac_exeext; then | ||
27883 | eval "$as_ac_var=yes" | ||
27884 | else | ||
27885 | echo "$as_me: failed program was:" >&5 | ||
27886 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27887 | |||
27888 | eval "$as_ac_var=no" | ||
27889 | fi | ||
27890 | |||
27891 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
27892 | conftest$ac_exeext conftest.$ac_ext | ||
27893 | fi | ||
27894 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
27895 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
27896 | echo "${ECHO_T}$ac_res" >&6; } | ||
27897 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
27898 | cat >>confdefs.h <<_ACEOF | ||
27899 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
27900 | _ACEOF | ||
27901 | |||
27902 | fi | ||
27903 | done | ||
27904 | |||
27905 | LIBS="$save_LIBS" | ||
27906 | fi | ||
27907 | |||
27908 | fi | ||
27909 | |||
27910 | |||
27911 | # Check whether user wants Kerberos 5 support | ||
27912 | KRB5_MSG="no" | ||
27913 | |||
27914 | # Check whether --with-kerberos5 was given. | ||
27915 | if test "${with_kerberos5+set}" = set; then | ||
27916 | withval=$with_kerberos5; if test "x$withval" != "xno" ; then | ||
27917 | if test "x$withval" = "xyes" ; then | ||
27918 | KRB5ROOT="/usr/local" | ||
27919 | else | ||
27920 | KRB5ROOT=${withval} | ||
27921 | fi | ||
27922 | |||
27923 | |||
27924 | cat >>confdefs.h <<\_ACEOF | ||
27925 | #define KRB5 1 | ||
27926 | _ACEOF | ||
27927 | |||
27928 | KRB5_MSG="yes" | ||
27929 | |||
27930 | # Extract the first word of "krb5-config", so it can be a program name with args. | ||
27931 | set dummy krb5-config; ac_word=$2 | ||
27932 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
27933 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
27934 | if test "${ac_cv_path_KRB5CONF+set}" = set; then | ||
27935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27936 | else | ||
27937 | case $KRB5CONF in | ||
27938 | [\\/]* | ?:[\\/]*) | ||
27939 | ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path. | ||
27940 | ;; | ||
27941 | *) | ||
27942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
27943 | as_dummy="$KRB5ROOT/bin:$PATH" | ||
27944 | for as_dir in $as_dummy | ||
27945 | do | ||
27946 | IFS=$as_save_IFS | ||
27947 | test -z "$as_dir" && as_dir=. | ||
27948 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
27949 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
27950 | ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext" | ||
27951 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
27952 | break 2 | ||
27953 | fi | ||
27954 | done | ||
27955 | done | ||
27956 | IFS=$as_save_IFS | ||
27957 | |||
27958 | test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config" | ||
27959 | ;; | ||
27960 | esac | ||
27961 | fi | ||
27962 | KRB5CONF=$ac_cv_path_KRB5CONF | ||
27963 | if test -n "$KRB5CONF"; then | ||
27964 | { echo "$as_me:$LINENO: result: $KRB5CONF" >&5 | ||
27965 | echo "${ECHO_T}$KRB5CONF" >&6; } | ||
27966 | else | ||
27967 | { echo "$as_me:$LINENO: result: no" >&5 | ||
27968 | echo "${ECHO_T}no" >&6; } | ||
27969 | fi | ||
27970 | |||
27971 | |||
27972 | if test -x $KRB5CONF ; then | ||
27973 | |||
27974 | { echo "$as_me:$LINENO: checking for gssapi support" >&5 | ||
27975 | echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; } | ||
27976 | if $KRB5CONF | grep gssapi >/dev/null ; then | ||
27977 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
27978 | echo "${ECHO_T}yes" >&6; } | ||
27979 | |||
27980 | cat >>confdefs.h <<\_ACEOF | ||
27981 | #define GSSAPI 1 | ||
27982 | _ACEOF | ||
27983 | |||
27984 | k5confopts=gssapi | ||
27985 | else | ||
27986 | { echo "$as_me:$LINENO: result: no" >&5 | ||
27987 | echo "${ECHO_T}no" >&6; } | ||
27988 | k5confopts="" | ||
27989 | fi | ||
27990 | K5CFLAGS="`$KRB5CONF --cflags $k5confopts`" | ||
27991 | K5LIBS="`$KRB5CONF --libs $k5confopts`" | ||
27992 | CPPFLAGS="$CPPFLAGS $K5CFLAGS" | ||
27993 | { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
27994 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; } | ||
27995 | cat >conftest.$ac_ext <<_ACEOF | ||
27996 | /* confdefs.h. */ | ||
27997 | _ACEOF | ||
27998 | cat confdefs.h >>conftest.$ac_ext | ||
27999 | cat >>conftest.$ac_ext <<_ACEOF | ||
28000 | /* end confdefs.h. */ | ||
28001 | #include <krb5.h> | ||
28002 | int | ||
28003 | main () | ||
28004 | { | ||
28005 | char *tmp = heimdal_version; | ||
28006 | ; | ||
28007 | return 0; | ||
28008 | } | ||
28009 | _ACEOF | ||
28010 | rm -f conftest.$ac_objext | ||
28011 | if { (ac_try="$ac_compile" | ||
28012 | case "(($ac_try" in | ||
28013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28014 | *) ac_try_echo=$ac_try;; | ||
28015 | esac | ||
28016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28017 | (eval "$ac_compile") 2>conftest.er1 | ||
28018 | ac_status=$? | ||
28019 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28020 | rm -f conftest.er1 | ||
28021 | cat conftest.err >&5 | ||
28022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28023 | (exit $ac_status); } && { | ||
28024 | test -z "$ac_c_werror_flag" || | ||
28025 | test ! -s conftest.err | ||
28026 | } && test -s conftest.$ac_objext; then | ||
28027 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
28028 | echo "${ECHO_T}yes" >&6; } | ||
28029 | |||
28030 | cat >>confdefs.h <<\_ACEOF | ||
28031 | #define HEIMDAL 1 | ||
28032 | _ACEOF | ||
28033 | |||
28034 | else | ||
28035 | echo "$as_me: failed program was:" >&5 | ||
28036 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28037 | |||
28038 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28039 | echo "${ECHO_T}no" >&6; } | ||
28040 | |||
28041 | fi | ||
28042 | |||
28043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28044 | else | ||
28045 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
28046 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
28047 | { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
28048 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; } | ||
28049 | cat >conftest.$ac_ext <<_ACEOF | ||
28050 | /* confdefs.h. */ | ||
28051 | _ACEOF | ||
28052 | cat confdefs.h >>conftest.$ac_ext | ||
28053 | cat >>conftest.$ac_ext <<_ACEOF | ||
28054 | /* end confdefs.h. */ | ||
28055 | #include <krb5.h> | ||
28056 | int | ||
28057 | main () | ||
28058 | { | ||
28059 | char *tmp = heimdal_version; | ||
28060 | ; | ||
28061 | return 0; | ||
28062 | } | ||
28063 | _ACEOF | ||
28064 | rm -f conftest.$ac_objext | ||
28065 | if { (ac_try="$ac_compile" | ||
28066 | case "(($ac_try" in | ||
28067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28068 | *) ac_try_echo=$ac_try;; | ||
28069 | esac | ||
28070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28071 | (eval "$ac_compile") 2>conftest.er1 | ||
28072 | ac_status=$? | ||
28073 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28074 | rm -f conftest.er1 | ||
28075 | cat conftest.err >&5 | ||
28076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28077 | (exit $ac_status); } && { | ||
28078 | test -z "$ac_c_werror_flag" || | ||
28079 | test ! -s conftest.err | ||
28080 | } && test -s conftest.$ac_objext; then | ||
28081 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
28082 | echo "${ECHO_T}yes" >&6; } | ||
28083 | cat >>confdefs.h <<\_ACEOF | ||
28084 | #define HEIMDAL 1 | ||
28085 | _ACEOF | ||
28086 | |||
28087 | K5LIBS="-lkrb5" | ||
28088 | K5LIBS="$K5LIBS -lcom_err -lasn1" | ||
28089 | { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5 | ||
28090 | echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; } | ||
28091 | if test "${ac_cv_lib_roken_net_write+set}" = set; then | ||
28092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28093 | else | ||
28094 | ac_check_lib_save_LIBS=$LIBS | ||
28095 | LIBS="-lroken $LIBS" | ||
28096 | cat >conftest.$ac_ext <<_ACEOF | ||
28097 | /* confdefs.h. */ | ||
28098 | _ACEOF | ||
28099 | cat confdefs.h >>conftest.$ac_ext | ||
28100 | cat >>conftest.$ac_ext <<_ACEOF | ||
28101 | /* end confdefs.h. */ | ||
28102 | |||
28103 | /* Override any GCC internal prototype to avoid an error. | ||
28104 | Use char because int might match the return type of a GCC | ||
28105 | builtin and then its argument prototype would still apply. */ | ||
28106 | #ifdef __cplusplus | ||
28107 | extern "C" | ||
28108 | #endif | ||
28109 | char net_write (); | ||
28110 | int | ||
28111 | main () | ||
28112 | { | ||
28113 | return net_write (); | ||
28114 | ; | ||
28115 | return 0; | ||
28116 | } | ||
28117 | _ACEOF | ||
28118 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
28119 | if { (ac_try="$ac_link" | ||
28120 | case "(($ac_try" in | ||
28121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28122 | *) ac_try_echo=$ac_try;; | ||
28123 | esac | ||
28124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28125 | (eval "$ac_link") 2>conftest.er1 | ||
28126 | ac_status=$? | ||
28127 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28128 | rm -f conftest.er1 | ||
28129 | cat conftest.err >&5 | ||
28130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28131 | (exit $ac_status); } && { | ||
28132 | test -z "$ac_c_werror_flag" || | ||
28133 | test ! -s conftest.err | ||
28134 | } && test -s conftest$ac_exeext && | ||
28135 | $as_test_x conftest$ac_exeext; then | ||
28136 | ac_cv_lib_roken_net_write=yes | ||
28137 | else | ||
28138 | echo "$as_me: failed program was:" >&5 | ||
28139 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28140 | |||
28141 | ac_cv_lib_roken_net_write=no | ||
28142 | fi | ||
28143 | |||
28144 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
28145 | conftest$ac_exeext conftest.$ac_ext | ||
28146 | LIBS=$ac_check_lib_save_LIBS | ||
28147 | fi | ||
28148 | { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5 | ||
28149 | echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; } | ||
28150 | if test $ac_cv_lib_roken_net_write = yes; then | ||
28151 | K5LIBS="$K5LIBS -lroken" | ||
28152 | fi | ||
28153 | |||
28154 | { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 | ||
28155 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; } | ||
28156 | if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then | ||
28157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28158 | else | ||
28159 | ac_check_lib_save_LIBS=$LIBS | ||
28160 | LIBS="-ldes $LIBS" | ||
28161 | cat >conftest.$ac_ext <<_ACEOF | ||
28162 | /* confdefs.h. */ | ||
28163 | _ACEOF | ||
28164 | cat confdefs.h >>conftest.$ac_ext | ||
28165 | cat >>conftest.$ac_ext <<_ACEOF | ||
28166 | /* end confdefs.h. */ | ||
28167 | |||
28168 | /* Override any GCC internal prototype to avoid an error. | ||
28169 | Use char because int might match the return type of a GCC | ||
28170 | builtin and then its argument prototype would still apply. */ | ||
28171 | #ifdef __cplusplus | ||
28172 | extern "C" | ||
28173 | #endif | ||
28174 | char des_cbc_encrypt (); | ||
28175 | int | ||
28176 | main () | ||
28177 | { | ||
28178 | return des_cbc_encrypt (); | ||
28179 | ; | ||
28180 | return 0; | ||
28181 | } | ||
28182 | _ACEOF | ||
28183 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
28184 | if { (ac_try="$ac_link" | ||
28185 | case "(($ac_try" in | ||
28186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28187 | *) ac_try_echo=$ac_try;; | ||
28188 | esac | ||
28189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28190 | (eval "$ac_link") 2>conftest.er1 | ||
28191 | ac_status=$? | ||
28192 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28193 | rm -f conftest.er1 | ||
28194 | cat conftest.err >&5 | ||
28195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28196 | (exit $ac_status); } && { | ||
28197 | test -z "$ac_c_werror_flag" || | ||
28198 | test ! -s conftest.err | ||
28199 | } && test -s conftest$ac_exeext && | ||
28200 | $as_test_x conftest$ac_exeext; then | ||
28201 | ac_cv_lib_des_des_cbc_encrypt=yes | ||
28202 | else | ||
28203 | echo "$as_me: failed program was:" >&5 | ||
28204 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28205 | |||
28206 | ac_cv_lib_des_des_cbc_encrypt=no | ||
28207 | fi | ||
28208 | |||
28209 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
28210 | conftest$ac_exeext conftest.$ac_ext | ||
28211 | LIBS=$ac_check_lib_save_LIBS | ||
28212 | fi | ||
28213 | { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 | ||
28214 | echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; } | ||
28215 | if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | ||
28216 | K5LIBS="$K5LIBS -ldes" | ||
28217 | fi | ||
28218 | |||
28219 | |||
28220 | else | ||
28221 | echo "$as_me: failed program was:" >&5 | ||
28222 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28223 | |||
28224 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28225 | echo "${ECHO_T}no" >&6; } | ||
28226 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
28227 | |||
28228 | |||
28229 | fi | ||
28230 | |||
28231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28232 | { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
28233 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; } | ||
28234 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
28235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28236 | else | ||
28237 | ac_func_search_save_LIBS=$LIBS | ||
28238 | cat >conftest.$ac_ext <<_ACEOF | ||
28239 | /* confdefs.h. */ | ||
28240 | _ACEOF | ||
28241 | cat confdefs.h >>conftest.$ac_ext | ||
28242 | cat >>conftest.$ac_ext <<_ACEOF | ||
28243 | /* end confdefs.h. */ | ||
28244 | |||
28245 | /* Override any GCC internal prototype to avoid an error. | ||
28246 | Use char because int might match the return type of a GCC | ||
28247 | builtin and then its argument prototype would still apply. */ | ||
28248 | #ifdef __cplusplus | ||
28249 | extern "C" | ||
28250 | #endif | ||
28251 | char dn_expand (); | ||
28252 | int | ||
28253 | main () | ||
28254 | { | ||
28255 | return dn_expand (); | ||
28256 | ; | ||
28257 | return 0; | ||
28258 | } | ||
28259 | _ACEOF | ||
28260 | for ac_lib in '' resolv; do | ||
28261 | if test -z "$ac_lib"; then | ||
28262 | ac_res="none required" | ||
28263 | else | ||
28264 | ac_res=-l$ac_lib | ||
28265 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
28266 | fi | ||
28267 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
28268 | if { (ac_try="$ac_link" | ||
28269 | case "(($ac_try" in | ||
28270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28271 | *) ac_try_echo=$ac_try;; | ||
28272 | esac | ||
28273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28274 | (eval "$ac_link") 2>conftest.er1 | ||
28275 | ac_status=$? | ||
28276 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28277 | rm -f conftest.er1 | ||
28278 | cat conftest.err >&5 | ||
28279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28280 | (exit $ac_status); } && { | ||
28281 | test -z "$ac_c_werror_flag" || | ||
28282 | test ! -s conftest.err | ||
28283 | } && test -s conftest$ac_exeext && | ||
28284 | $as_test_x conftest$ac_exeext; then | ||
28285 | ac_cv_search_dn_expand=$ac_res | ||
28286 | else | ||
28287 | echo "$as_me: failed program was:" >&5 | ||
28288 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28289 | |||
28290 | |||
28291 | fi | ||
28292 | |||
28293 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
28294 | conftest$ac_exeext | ||
28295 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
28296 | break | ||
28297 | fi | ||
28298 | done | ||
28299 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
28300 | : | ||
28301 | else | ||
28302 | ac_cv_search_dn_expand=no | ||
28303 | fi | ||
28304 | rm conftest.$ac_ext | ||
28305 | LIBS=$ac_func_search_save_LIBS | ||
28306 | fi | ||
28307 | { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
28308 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; } | ||
28309 | ac_res=$ac_cv_search_dn_expand | ||
28310 | if test "$ac_res" != no; then | ||
28311 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
28312 | |||
28313 | fi | ||
28314 | |||
28315 | |||
28316 | { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5 | ||
28317 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; } | ||
28318 | if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then | ||
28319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28320 | else | ||
28321 | ac_check_lib_save_LIBS=$LIBS | ||
28322 | LIBS="-lgssapi_krb5 $K5LIBS $LIBS" | ||
28323 | cat >conftest.$ac_ext <<_ACEOF | ||
28324 | /* confdefs.h. */ | ||
28325 | _ACEOF | ||
28326 | cat confdefs.h >>conftest.$ac_ext | ||
28327 | cat >>conftest.$ac_ext <<_ACEOF | ||
28328 | /* end confdefs.h. */ | ||
28329 | |||
28330 | /* Override any GCC internal prototype to avoid an error. | ||
28331 | Use char because int might match the return type of a GCC | ||
28332 | builtin and then its argument prototype would still apply. */ | ||
28333 | #ifdef __cplusplus | ||
28334 | extern "C" | ||
28335 | #endif | ||
28336 | char gss_init_sec_context (); | ||
28337 | int | ||
28338 | main () | ||
28339 | { | ||
28340 | return gss_init_sec_context (); | ||
28341 | ; | ||
28342 | return 0; | ||
28343 | } | ||
28344 | _ACEOF | ||
28345 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
28346 | if { (ac_try="$ac_link" | ||
28347 | case "(($ac_try" in | ||
28348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28349 | *) ac_try_echo=$ac_try;; | ||
28350 | esac | ||
28351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28352 | (eval "$ac_link") 2>conftest.er1 | ||
28353 | ac_status=$? | ||
28354 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28355 | rm -f conftest.er1 | ||
28356 | cat conftest.err >&5 | ||
28357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28358 | (exit $ac_status); } && { | ||
28359 | test -z "$ac_c_werror_flag" || | ||
28360 | test ! -s conftest.err | ||
28361 | } && test -s conftest$ac_exeext && | ||
28362 | $as_test_x conftest$ac_exeext; then | ||
28363 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes | ||
28364 | else | ||
28365 | echo "$as_me: failed program was:" >&5 | ||
28366 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28367 | |||
28368 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no | ||
28369 | fi | ||
28370 | |||
28371 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
28372 | conftest$ac_exeext conftest.$ac_ext | ||
28373 | LIBS=$ac_check_lib_save_LIBS | ||
28374 | fi | ||
28375 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 | ||
28376 | echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } | ||
28377 | if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then | ||
28378 | cat >>confdefs.h <<\_ACEOF | ||
28379 | #define GSSAPI 1 | ||
28380 | _ACEOF | ||
28381 | |||
28382 | K5LIBS="-lgssapi_krb5 $K5LIBS" | ||
28383 | else | ||
28384 | { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5 | ||
28385 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; } | ||
28386 | if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then | ||
28387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28388 | else | ||
28389 | ac_check_lib_save_LIBS=$LIBS | ||
28390 | LIBS="-lgssapi $K5LIBS $LIBS" | ||
28391 | cat >conftest.$ac_ext <<_ACEOF | ||
28392 | /* confdefs.h. */ | ||
28393 | _ACEOF | ||
28394 | cat confdefs.h >>conftest.$ac_ext | ||
28395 | cat >>conftest.$ac_ext <<_ACEOF | ||
28396 | /* end confdefs.h. */ | ||
28397 | |||
28398 | /* Override any GCC internal prototype to avoid an error. | ||
28399 | Use char because int might match the return type of a GCC | ||
28400 | builtin and then its argument prototype would still apply. */ | ||
28401 | #ifdef __cplusplus | ||
28402 | extern "C" | ||
28403 | #endif | ||
28404 | char gss_init_sec_context (); | ||
28405 | int | ||
28406 | main () | ||
28407 | { | ||
28408 | return gss_init_sec_context (); | ||
28409 | ; | ||
28410 | return 0; | ||
28411 | } | ||
28412 | _ACEOF | ||
28413 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
28414 | if { (ac_try="$ac_link" | ||
28415 | case "(($ac_try" in | ||
28416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28417 | *) ac_try_echo=$ac_try;; | ||
28418 | esac | ||
28419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28420 | (eval "$ac_link") 2>conftest.er1 | ||
28421 | ac_status=$? | ||
28422 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28423 | rm -f conftest.er1 | ||
28424 | cat conftest.err >&5 | ||
28425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28426 | (exit $ac_status); } && { | ||
28427 | test -z "$ac_c_werror_flag" || | ||
28428 | test ! -s conftest.err | ||
28429 | } && test -s conftest$ac_exeext && | ||
28430 | $as_test_x conftest$ac_exeext; then | ||
28431 | ac_cv_lib_gssapi_gss_init_sec_context=yes | ||
28432 | else | ||
28433 | echo "$as_me: failed program was:" >&5 | ||
28434 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28435 | |||
28436 | ac_cv_lib_gssapi_gss_init_sec_context=no | ||
28437 | fi | ||
28438 | |||
28439 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
28440 | conftest$ac_exeext conftest.$ac_ext | ||
28441 | LIBS=$ac_check_lib_save_LIBS | ||
28442 | fi | ||
28443 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 | ||
28444 | echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } | ||
28445 | if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then | ||
28446 | cat >>confdefs.h <<\_ACEOF | ||
28447 | #define GSSAPI 1 | ||
28448 | _ACEOF | ||
28449 | |||
28450 | K5LIBS="-lgssapi $K5LIBS" | ||
28451 | else | ||
28452 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 | ||
28453 | echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} | ||
28454 | fi | ||
28455 | |||
28456 | |||
28457 | fi | ||
28458 | |||
28459 | |||
28460 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
28461 | { echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
28462 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; } | ||
28463 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
28464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28465 | fi | ||
28466 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
28467 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; } | ||
28468 | else | ||
28469 | # Is the header compilable? | ||
28470 | { echo "$as_me:$LINENO: checking gssapi.h usability" >&5 | ||
28471 | echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; } | ||
28472 | cat >conftest.$ac_ext <<_ACEOF | ||
28473 | /* confdefs.h. */ | ||
28474 | _ACEOF | ||
28475 | cat confdefs.h >>conftest.$ac_ext | ||
28476 | cat >>conftest.$ac_ext <<_ACEOF | ||
28477 | /* end confdefs.h. */ | ||
28478 | $ac_includes_default | ||
28479 | #include <gssapi.h> | ||
28480 | _ACEOF | ||
28481 | rm -f conftest.$ac_objext | ||
28482 | if { (ac_try="$ac_compile" | ||
28483 | case "(($ac_try" in | ||
28484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28485 | *) ac_try_echo=$ac_try;; | ||
28486 | esac | ||
28487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28488 | (eval "$ac_compile") 2>conftest.er1 | ||
28489 | ac_status=$? | ||
28490 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28491 | rm -f conftest.er1 | ||
28492 | cat conftest.err >&5 | ||
28493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28494 | (exit $ac_status); } && { | ||
28495 | test -z "$ac_c_werror_flag" || | ||
28496 | test ! -s conftest.err | ||
28497 | } && test -s conftest.$ac_objext; then | ||
28498 | ac_header_compiler=yes | ||
28499 | else | ||
28500 | echo "$as_me: failed program was:" >&5 | ||
28501 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28502 | |||
28503 | ac_header_compiler=no | ||
28504 | fi | ||
28505 | |||
28506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28507 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
28508 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
28509 | |||
28510 | # Is the header present? | ||
28511 | { echo "$as_me:$LINENO: checking gssapi.h presence" >&5 | ||
28512 | echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; } | ||
28513 | cat >conftest.$ac_ext <<_ACEOF | ||
28514 | /* confdefs.h. */ | ||
28515 | _ACEOF | ||
28516 | cat confdefs.h >>conftest.$ac_ext | ||
28517 | cat >>conftest.$ac_ext <<_ACEOF | ||
28518 | /* end confdefs.h. */ | ||
28519 | #include <gssapi.h> | ||
28520 | _ACEOF | ||
28521 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
28522 | case "(($ac_try" in | ||
28523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28524 | *) ac_try_echo=$ac_try;; | ||
28525 | esac | ||
28526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28527 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
28528 | ac_status=$? | ||
28529 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28530 | rm -f conftest.er1 | ||
28531 | cat conftest.err >&5 | ||
28532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28533 | (exit $ac_status); } >/dev/null && { | ||
28534 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
28535 | test ! -s conftest.err | ||
28536 | }; then | ||
28537 | ac_header_preproc=yes | ||
28538 | else | ||
28539 | echo "$as_me: failed program was:" >&5 | ||
28540 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28541 | |||
28542 | ac_header_preproc=no | ||
28543 | fi | ||
28544 | |||
28545 | rm -f conftest.err conftest.$ac_ext | ||
28546 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
28547 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
28548 | |||
28549 | # So? What about this header? | ||
28550 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
28551 | yes:no: ) | ||
28552 | { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
28553 | echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
28554 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5 | ||
28555 | echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;} | ||
28556 | ac_header_preproc=yes | ||
28557 | ;; | ||
28558 | no:yes:* ) | ||
28559 | { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5 | ||
28560 | echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;} | ||
28561 | { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5 | ||
28562 | echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;} | ||
28563 | { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5 | ||
28564 | echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;} | ||
28565 | { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
28566 | echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
28567 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5 | ||
28568 | echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;} | ||
28569 | { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5 | ||
28570 | echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;} | ||
28571 | ( cat <<\_ASBOX | ||
28572 | ## ------------------------------------------- ## | ||
28573 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
28574 | ## ------------------------------------------- ## | ||
28575 | _ASBOX | ||
28576 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
28577 | ;; | ||
28578 | esac | ||
28579 | { echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
28580 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; } | ||
28581 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
28582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28583 | else | ||
28584 | ac_cv_header_gssapi_h=$ac_header_preproc | ||
28585 | fi | ||
28586 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
28587 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; } | ||
28588 | |||
28589 | fi | ||
28590 | if test $ac_cv_header_gssapi_h = yes; then | ||
28591 | : | ||
28592 | else | ||
28593 | unset ac_cv_header_gssapi_h | ||
28594 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
28595 | |||
28596 | for ac_header in gssapi.h | ||
28597 | do | ||
28598 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
28599 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28600 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
28601 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
28602 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28604 | fi | ||
28605 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
28606 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
28607 | echo "${ECHO_T}$ac_res" >&6; } | ||
28608 | else | ||
28609 | # Is the header compilable? | ||
28610 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
28611 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
28612 | cat >conftest.$ac_ext <<_ACEOF | ||
28613 | /* confdefs.h. */ | ||
28614 | _ACEOF | ||
28615 | cat confdefs.h >>conftest.$ac_ext | ||
28616 | cat >>conftest.$ac_ext <<_ACEOF | ||
28617 | /* end confdefs.h. */ | ||
28618 | $ac_includes_default | ||
28619 | #include <$ac_header> | ||
28620 | _ACEOF | ||
28621 | rm -f conftest.$ac_objext | ||
28622 | if { (ac_try="$ac_compile" | ||
28623 | case "(($ac_try" in | ||
28624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28625 | *) ac_try_echo=$ac_try;; | ||
28626 | esac | ||
28627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28628 | (eval "$ac_compile") 2>conftest.er1 | ||
28629 | ac_status=$? | ||
28630 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28631 | rm -f conftest.er1 | ||
28632 | cat conftest.err >&5 | ||
28633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28634 | (exit $ac_status); } && { | ||
28635 | test -z "$ac_c_werror_flag" || | ||
28636 | test ! -s conftest.err | ||
28637 | } && test -s conftest.$ac_objext; then | ||
28638 | ac_header_compiler=yes | ||
28639 | else | ||
28640 | echo "$as_me: failed program was:" >&5 | ||
28641 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28642 | |||
28643 | ac_header_compiler=no | ||
28644 | fi | ||
28645 | |||
28646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28647 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
28648 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
28649 | |||
28650 | # Is the header present? | ||
28651 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
28652 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
28653 | cat >conftest.$ac_ext <<_ACEOF | ||
28654 | /* confdefs.h. */ | ||
28655 | _ACEOF | ||
28656 | cat confdefs.h >>conftest.$ac_ext | ||
28657 | cat >>conftest.$ac_ext <<_ACEOF | ||
28658 | /* end confdefs.h. */ | ||
28659 | #include <$ac_header> | ||
28660 | _ACEOF | ||
28661 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
28662 | case "(($ac_try" in | ||
28663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28664 | *) ac_try_echo=$ac_try;; | ||
28665 | esac | ||
28666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28667 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
28668 | ac_status=$? | ||
28669 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28670 | rm -f conftest.er1 | ||
28671 | cat conftest.err >&5 | ||
28672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28673 | (exit $ac_status); } >/dev/null && { | ||
28674 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
28675 | test ! -s conftest.err | ||
28676 | }; then | ||
28677 | ac_header_preproc=yes | ||
28678 | else | ||
28679 | echo "$as_me: failed program was:" >&5 | ||
28680 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28681 | |||
28682 | ac_header_preproc=no | ||
28683 | fi | ||
28684 | |||
28685 | rm -f conftest.err conftest.$ac_ext | ||
28686 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
28687 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
28688 | |||
28689 | # So? What about this header? | ||
28690 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
28691 | yes:no: ) | ||
28692 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
28693 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
28694 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
28695 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
28696 | ac_header_preproc=yes | ||
28697 | ;; | ||
28698 | no:yes:* ) | ||
28699 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
28700 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
28701 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
28702 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
28703 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
28704 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
28705 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
28706 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
28707 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
28708 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
28709 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
28710 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
28711 | ( cat <<\_ASBOX | ||
28712 | ## ------------------------------------------- ## | ||
28713 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
28714 | ## ------------------------------------------- ## | ||
28715 | _ASBOX | ||
28716 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
28717 | ;; | ||
28718 | esac | ||
28719 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
28720 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
28721 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28723 | else | ||
28724 | eval "$as_ac_Header=\$ac_header_preproc" | ||
28725 | fi | ||
28726 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
28727 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
28728 | echo "${ECHO_T}$ac_res" >&6; } | ||
28729 | |||
28730 | fi | ||
28731 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
28732 | cat >>confdefs.h <<_ACEOF | ||
28733 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
28734 | _ACEOF | ||
28735 | |||
28736 | else | ||
28737 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 | ||
28738 | echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} | ||
28739 | |||
28740 | fi | ||
28741 | |||
28742 | done | ||
28743 | |||
28744 | |||
28745 | |||
28746 | fi | ||
28747 | |||
28748 | |||
28749 | |||
28750 | oldCPP="$CPPFLAGS" | ||
28751 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
28752 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
28753 | { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
28754 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; } | ||
28755 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
28756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28757 | fi | ||
28758 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
28759 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; } | ||
28760 | else | ||
28761 | # Is the header compilable? | ||
28762 | { echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5 | ||
28763 | echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; } | ||
28764 | cat >conftest.$ac_ext <<_ACEOF | ||
28765 | /* confdefs.h. */ | ||
28766 | _ACEOF | ||
28767 | cat confdefs.h >>conftest.$ac_ext | ||
28768 | cat >>conftest.$ac_ext <<_ACEOF | ||
28769 | /* end confdefs.h. */ | ||
28770 | $ac_includes_default | ||
28771 | #include <gssapi_krb5.h> | ||
28772 | _ACEOF | ||
28773 | rm -f conftest.$ac_objext | ||
28774 | if { (ac_try="$ac_compile" | ||
28775 | case "(($ac_try" in | ||
28776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28777 | *) ac_try_echo=$ac_try;; | ||
28778 | esac | ||
28779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28780 | (eval "$ac_compile") 2>conftest.er1 | ||
28781 | ac_status=$? | ||
28782 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28783 | rm -f conftest.er1 | ||
28784 | cat conftest.err >&5 | ||
28785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28786 | (exit $ac_status); } && { | ||
28787 | test -z "$ac_c_werror_flag" || | ||
28788 | test ! -s conftest.err | ||
28789 | } && test -s conftest.$ac_objext; then | ||
28790 | ac_header_compiler=yes | ||
28791 | else | ||
28792 | echo "$as_me: failed program was:" >&5 | ||
28793 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28794 | |||
28795 | ac_header_compiler=no | ||
28796 | fi | ||
28797 | |||
28798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28799 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
28800 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
28801 | |||
28802 | # Is the header present? | ||
28803 | { echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5 | ||
28804 | echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; } | ||
28805 | cat >conftest.$ac_ext <<_ACEOF | ||
28806 | /* confdefs.h. */ | ||
28807 | _ACEOF | ||
28808 | cat confdefs.h >>conftest.$ac_ext | ||
28809 | cat >>conftest.$ac_ext <<_ACEOF | ||
28810 | /* end confdefs.h. */ | ||
28811 | #include <gssapi_krb5.h> | ||
28812 | _ACEOF | ||
28813 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
28814 | case "(($ac_try" in | ||
28815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28816 | *) ac_try_echo=$ac_try;; | ||
28817 | esac | ||
28818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28819 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
28820 | ac_status=$? | ||
28821 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28822 | rm -f conftest.er1 | ||
28823 | cat conftest.err >&5 | ||
28824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28825 | (exit $ac_status); } >/dev/null && { | ||
28826 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
28827 | test ! -s conftest.err | ||
28828 | }; then | ||
28829 | ac_header_preproc=yes | ||
28830 | else | ||
28831 | echo "$as_me: failed program was:" >&5 | ||
28832 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28833 | |||
28834 | ac_header_preproc=no | ||
28835 | fi | ||
28836 | |||
28837 | rm -f conftest.err conftest.$ac_ext | ||
28838 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
28839 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
28840 | |||
28841 | # So? What about this header? | ||
28842 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
28843 | yes:no: ) | ||
28844 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
28845 | echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
28846 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5 | ||
28847 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;} | ||
28848 | ac_header_preproc=yes | ||
28849 | ;; | ||
28850 | no:yes:* ) | ||
28851 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5 | ||
28852 | echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;} | ||
28853 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5 | ||
28854 | echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;} | ||
28855 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5 | ||
28856 | echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;} | ||
28857 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
28858 | echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
28859 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5 | ||
28860 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;} | ||
28861 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5 | ||
28862 | echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;} | ||
28863 | ( cat <<\_ASBOX | ||
28864 | ## ------------------------------------------- ## | ||
28865 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
28866 | ## ------------------------------------------- ## | ||
28867 | _ASBOX | ||
28868 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
28869 | ;; | ||
28870 | esac | ||
28871 | { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
28872 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; } | ||
28873 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
28874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28875 | else | ||
28876 | ac_cv_header_gssapi_krb5_h=$ac_header_preproc | ||
28877 | fi | ||
28878 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
28879 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; } | ||
28880 | |||
28881 | fi | ||
28882 | if test $ac_cv_header_gssapi_krb5_h = yes; then | ||
28883 | : | ||
28884 | else | ||
28885 | CPPFLAGS="$oldCPP" | ||
28886 | fi | ||
28887 | |||
28888 | |||
28889 | |||
28890 | fi | ||
28891 | if test ! -z "$need_dash_r" ; then | ||
28892 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
28893 | fi | ||
28894 | if test ! -z "$blibpath" ; then | ||
28895 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
28896 | fi | ||
28897 | |||
28898 | |||
28899 | |||
28900 | for ac_header in gssapi.h gssapi/gssapi.h | ||
28901 | do | ||
28902 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
28903 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28904 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
28905 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
28906 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28908 | fi | ||
28909 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
28910 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
28911 | echo "${ECHO_T}$ac_res" >&6; } | ||
28912 | else | ||
28913 | # Is the header compilable? | ||
28914 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
28915 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
28916 | cat >conftest.$ac_ext <<_ACEOF | ||
28917 | /* confdefs.h. */ | ||
28918 | _ACEOF | ||
28919 | cat confdefs.h >>conftest.$ac_ext | ||
28920 | cat >>conftest.$ac_ext <<_ACEOF | ||
28921 | /* end confdefs.h. */ | ||
28922 | $ac_includes_default | ||
28923 | #include <$ac_header> | ||
28924 | _ACEOF | ||
28925 | rm -f conftest.$ac_objext | ||
28926 | if { (ac_try="$ac_compile" | ||
28927 | case "(($ac_try" in | ||
28928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28929 | *) ac_try_echo=$ac_try;; | ||
28930 | esac | ||
28931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28932 | (eval "$ac_compile") 2>conftest.er1 | ||
28933 | ac_status=$? | ||
28934 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28935 | rm -f conftest.er1 | ||
28936 | cat conftest.err >&5 | ||
28937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28938 | (exit $ac_status); } && { | ||
28939 | test -z "$ac_c_werror_flag" || | ||
28940 | test ! -s conftest.err | ||
28941 | } && test -s conftest.$ac_objext; then | ||
28942 | ac_header_compiler=yes | ||
28943 | else | ||
28944 | echo "$as_me: failed program was:" >&5 | ||
28945 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28946 | |||
28947 | ac_header_compiler=no | ||
28948 | fi | ||
28949 | |||
28950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28951 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
28952 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
28953 | |||
28954 | # Is the header present? | ||
28955 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
28956 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
28957 | cat >conftest.$ac_ext <<_ACEOF | ||
28958 | /* confdefs.h. */ | ||
28959 | _ACEOF | ||
28960 | cat confdefs.h >>conftest.$ac_ext | ||
28961 | cat >>conftest.$ac_ext <<_ACEOF | ||
28962 | /* end confdefs.h. */ | ||
28963 | #include <$ac_header> | ||
28964 | _ACEOF | ||
28965 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
28966 | case "(($ac_try" in | ||
28967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28968 | *) ac_try_echo=$ac_try;; | ||
28969 | esac | ||
28970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28971 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
28972 | ac_status=$? | ||
28973 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28974 | rm -f conftest.er1 | ||
28975 | cat conftest.err >&5 | ||
28976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28977 | (exit $ac_status); } >/dev/null && { | ||
28978 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
28979 | test ! -s conftest.err | ||
28980 | }; then | ||
28981 | ac_header_preproc=yes | ||
28982 | else | ||
28983 | echo "$as_me: failed program was:" >&5 | ||
28984 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28985 | |||
28986 | ac_header_preproc=no | ||
28987 | fi | ||
28988 | |||
28989 | rm -f conftest.err conftest.$ac_ext | ||
28990 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
28991 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
28992 | |||
28993 | # So? What about this header? | ||
28994 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
28995 | yes:no: ) | ||
28996 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
28997 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
28998 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
28999 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
29000 | ac_header_preproc=yes | ||
29001 | ;; | ||
29002 | no:yes:* ) | ||
29003 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
29004 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
29005 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
29006 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
29007 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
29008 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
29009 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
29010 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
29011 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
29012 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
29013 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
29014 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
29015 | ( cat <<\_ASBOX | ||
29016 | ## ------------------------------------------- ## | ||
29017 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
29018 | ## ------------------------------------------- ## | ||
29019 | _ASBOX | ||
29020 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
29021 | ;; | ||
29022 | esac | ||
29023 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
29024 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
29025 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29027 | else | ||
29028 | eval "$as_ac_Header=\$ac_header_preproc" | ||
29029 | fi | ||
29030 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
29031 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
29032 | echo "${ECHO_T}$ac_res" >&6; } | ||
29033 | |||
29034 | fi | ||
29035 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
29036 | cat >>confdefs.h <<_ACEOF | ||
29037 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
29038 | _ACEOF | ||
29039 | |||
29040 | fi | ||
29041 | |||
29042 | done | ||
29043 | |||
29044 | |||
29045 | |||
29046 | for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h | ||
29047 | do | ||
29048 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
29049 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29050 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
29051 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
29052 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29053 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29054 | fi | ||
29055 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
29056 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
29057 | echo "${ECHO_T}$ac_res" >&6; } | ||
29058 | else | ||
29059 | # Is the header compilable? | ||
29060 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
29061 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
29062 | cat >conftest.$ac_ext <<_ACEOF | ||
29063 | /* confdefs.h. */ | ||
29064 | _ACEOF | ||
29065 | cat confdefs.h >>conftest.$ac_ext | ||
29066 | cat >>conftest.$ac_ext <<_ACEOF | ||
29067 | /* end confdefs.h. */ | ||
29068 | $ac_includes_default | ||
29069 | #include <$ac_header> | ||
29070 | _ACEOF | ||
29071 | rm -f conftest.$ac_objext | ||
29072 | if { (ac_try="$ac_compile" | ||
29073 | case "(($ac_try" in | ||
29074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29075 | *) ac_try_echo=$ac_try;; | ||
29076 | esac | ||
29077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29078 | (eval "$ac_compile") 2>conftest.er1 | ||
29079 | ac_status=$? | ||
29080 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29081 | rm -f conftest.er1 | ||
29082 | cat conftest.err >&5 | ||
29083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29084 | (exit $ac_status); } && { | ||
29085 | test -z "$ac_c_werror_flag" || | ||
29086 | test ! -s conftest.err | ||
29087 | } && test -s conftest.$ac_objext; then | ||
29088 | ac_header_compiler=yes | ||
29089 | else | ||
29090 | echo "$as_me: failed program was:" >&5 | ||
29091 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29092 | |||
29093 | ac_header_compiler=no | ||
29094 | fi | ||
29095 | |||
29096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29097 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
29098 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
29099 | |||
29100 | # Is the header present? | ||
29101 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
29102 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
29103 | cat >conftest.$ac_ext <<_ACEOF | ||
29104 | /* confdefs.h. */ | ||
29105 | _ACEOF | ||
29106 | cat confdefs.h >>conftest.$ac_ext | ||
29107 | cat >>conftest.$ac_ext <<_ACEOF | ||
29108 | /* end confdefs.h. */ | ||
29109 | #include <$ac_header> | ||
29110 | _ACEOF | ||
29111 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
29112 | case "(($ac_try" in | ||
29113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29114 | *) ac_try_echo=$ac_try;; | ||
29115 | esac | ||
29116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29117 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
29118 | ac_status=$? | ||
29119 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29120 | rm -f conftest.er1 | ||
29121 | cat conftest.err >&5 | ||
29122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29123 | (exit $ac_status); } >/dev/null && { | ||
29124 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
29125 | test ! -s conftest.err | ||
29126 | }; then | ||
29127 | ac_header_preproc=yes | ||
29128 | else | ||
29129 | echo "$as_me: failed program was:" >&5 | ||
29130 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29131 | |||
29132 | ac_header_preproc=no | ||
29133 | fi | ||
29134 | |||
29135 | rm -f conftest.err conftest.$ac_ext | ||
29136 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
29137 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
29138 | |||
29139 | # So? What about this header? | ||
29140 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
29141 | yes:no: ) | ||
29142 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
29143 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
29144 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
29145 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
29146 | ac_header_preproc=yes | ||
29147 | ;; | ||
29148 | no:yes:* ) | ||
29149 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
29150 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
29151 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
29152 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
29153 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
29154 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
29155 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
29156 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
29157 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
29158 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
29159 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
29160 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
29161 | ( cat <<\_ASBOX | ||
29162 | ## ------------------------------------------- ## | ||
29163 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
29164 | ## ------------------------------------------- ## | ||
29165 | _ASBOX | ||
29166 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
29167 | ;; | ||
29168 | esac | ||
29169 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
29170 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
29171 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29173 | else | ||
29174 | eval "$as_ac_Header=\$ac_header_preproc" | ||
29175 | fi | ||
29176 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
29177 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
29178 | echo "${ECHO_T}$ac_res" >&6; } | ||
29179 | |||
29180 | fi | ||
29181 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
29182 | cat >>confdefs.h <<_ACEOF | ||
29183 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
29184 | _ACEOF | ||
29185 | |||
29186 | fi | ||
29187 | |||
29188 | done | ||
29189 | |||
29190 | |||
29191 | |||
29192 | for ac_header in gssapi_generic.h gssapi/gssapi_generic.h | ||
29193 | do | ||
29194 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
29195 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29196 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
29197 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
29198 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29200 | fi | ||
29201 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
29202 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
29203 | echo "${ECHO_T}$ac_res" >&6; } | ||
29204 | else | ||
29205 | # Is the header compilable? | ||
29206 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
29207 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
29208 | cat >conftest.$ac_ext <<_ACEOF | ||
29209 | /* confdefs.h. */ | ||
29210 | _ACEOF | ||
29211 | cat confdefs.h >>conftest.$ac_ext | ||
29212 | cat >>conftest.$ac_ext <<_ACEOF | ||
29213 | /* end confdefs.h. */ | ||
29214 | $ac_includes_default | ||
29215 | #include <$ac_header> | ||
29216 | _ACEOF | ||
29217 | rm -f conftest.$ac_objext | ||
29218 | if { (ac_try="$ac_compile" | ||
29219 | case "(($ac_try" in | ||
29220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29221 | *) ac_try_echo=$ac_try;; | ||
29222 | esac | ||
29223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29224 | (eval "$ac_compile") 2>conftest.er1 | ||
29225 | ac_status=$? | ||
29226 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29227 | rm -f conftest.er1 | ||
29228 | cat conftest.err >&5 | ||
29229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29230 | (exit $ac_status); } && { | ||
29231 | test -z "$ac_c_werror_flag" || | ||
29232 | test ! -s conftest.err | ||
29233 | } && test -s conftest.$ac_objext; then | ||
29234 | ac_header_compiler=yes | ||
29235 | else | ||
29236 | echo "$as_me: failed program was:" >&5 | ||
29237 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29238 | |||
29239 | ac_header_compiler=no | ||
29240 | fi | ||
29241 | |||
29242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29243 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
29244 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
29245 | |||
29246 | # Is the header present? | ||
29247 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
29248 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
29249 | cat >conftest.$ac_ext <<_ACEOF | ||
29250 | /* confdefs.h. */ | ||
29251 | _ACEOF | ||
29252 | cat confdefs.h >>conftest.$ac_ext | ||
29253 | cat >>conftest.$ac_ext <<_ACEOF | ||
29254 | /* end confdefs.h. */ | ||
29255 | #include <$ac_header> | ||
29256 | _ACEOF | ||
29257 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
29258 | case "(($ac_try" in | ||
29259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29260 | *) ac_try_echo=$ac_try;; | ||
29261 | esac | ||
29262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29263 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
29264 | ac_status=$? | ||
29265 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29266 | rm -f conftest.er1 | ||
29267 | cat conftest.err >&5 | ||
29268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29269 | (exit $ac_status); } >/dev/null && { | ||
29270 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
29271 | test ! -s conftest.err | ||
29272 | }; then | ||
29273 | ac_header_preproc=yes | ||
29274 | else | ||
29275 | echo "$as_me: failed program was:" >&5 | ||
29276 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29277 | |||
29278 | ac_header_preproc=no | ||
29279 | fi | ||
29280 | |||
29281 | rm -f conftest.err conftest.$ac_ext | ||
29282 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
29283 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
29284 | |||
29285 | # So? What about this header? | ||
29286 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
29287 | yes:no: ) | ||
29288 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
29289 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
29290 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
29291 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
29292 | ac_header_preproc=yes | ||
29293 | ;; | ||
29294 | no:yes:* ) | ||
29295 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
29296 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
29297 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
29298 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
29299 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
29300 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
29301 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
29302 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
29303 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
29304 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
29305 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
29306 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
29307 | ( cat <<\_ASBOX | ||
29308 | ## ------------------------------------------- ## | ||
29309 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
29310 | ## ------------------------------------------- ## | ||
29311 | _ASBOX | ||
29312 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
29313 | ;; | ||
29314 | esac | ||
29315 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
29316 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
29317 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29319 | else | ||
29320 | eval "$as_ac_Header=\$ac_header_preproc" | ||
29321 | fi | ||
29322 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
29323 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
29324 | echo "${ECHO_T}$ac_res" >&6; } | ||
29325 | |||
29326 | fi | ||
29327 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
29328 | cat >>confdefs.h <<_ACEOF | ||
29329 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
29330 | _ACEOF | ||
29331 | |||
29332 | fi | ||
29333 | |||
29334 | done | ||
29335 | |||
29336 | |||
29337 | LIBS="$LIBS $K5LIBS" | ||
29338 | { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5 | ||
29339 | echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; } | ||
29340 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
29341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29342 | else | ||
29343 | ac_func_search_save_LIBS=$LIBS | ||
29344 | cat >conftest.$ac_ext <<_ACEOF | ||
29345 | /* confdefs.h. */ | ||
29346 | _ACEOF | ||
29347 | cat confdefs.h >>conftest.$ac_ext | ||
29348 | cat >>conftest.$ac_ext <<_ACEOF | ||
29349 | /* end confdefs.h. */ | ||
29350 | |||
29351 | /* Override any GCC internal prototype to avoid an error. | ||
29352 | Use char because int might match the return type of a GCC | ||
29353 | builtin and then its argument prototype would still apply. */ | ||
29354 | #ifdef __cplusplus | ||
29355 | extern "C" | ||
29356 | #endif | ||
29357 | char k_hasafs (); | ||
29358 | int | ||
29359 | main () | ||
29360 | { | ||
29361 | return k_hasafs (); | ||
29362 | ; | ||
29363 | return 0; | ||
29364 | } | ||
29365 | _ACEOF | ||
29366 | for ac_lib in '' kafs; do | ||
29367 | if test -z "$ac_lib"; then | ||
29368 | ac_res="none required" | ||
29369 | else | ||
29370 | ac_res=-l$ac_lib | ||
29371 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
29372 | fi | ||
29373 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
29374 | if { (ac_try="$ac_link" | ||
29375 | case "(($ac_try" in | ||
29376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29377 | *) ac_try_echo=$ac_try;; | ||
29378 | esac | ||
29379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29380 | (eval "$ac_link") 2>conftest.er1 | ||
29381 | ac_status=$? | ||
29382 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29383 | rm -f conftest.er1 | ||
29384 | cat conftest.err >&5 | ||
29385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29386 | (exit $ac_status); } && { | ||
29387 | test -z "$ac_c_werror_flag" || | ||
29388 | test ! -s conftest.err | ||
29389 | } && test -s conftest$ac_exeext && | ||
29390 | $as_test_x conftest$ac_exeext; then | ||
29391 | ac_cv_search_k_hasafs=$ac_res | ||
29392 | else | ||
29393 | echo "$as_me: failed program was:" >&5 | ||
29394 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29395 | |||
29396 | |||
29397 | fi | ||
29398 | |||
29399 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
29400 | conftest$ac_exeext | ||
29401 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
29402 | break | ||
29403 | fi | ||
29404 | done | ||
29405 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
29406 | : | ||
29407 | else | ||
29408 | ac_cv_search_k_hasafs=no | ||
29409 | fi | ||
29410 | rm conftest.$ac_ext | ||
29411 | LIBS=$ac_func_search_save_LIBS | ||
29412 | fi | ||
29413 | { echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5 | ||
29414 | echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; } | ||
29415 | ac_res=$ac_cv_search_k_hasafs | ||
29416 | if test "$ac_res" != no; then | ||
29417 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
29418 | |||
29419 | cat >>confdefs.h <<\_ACEOF | ||
29420 | #define USE_AFS 1 | ||
29421 | _ACEOF | ||
29422 | |||
29423 | fi | ||
29424 | |||
29425 | fi | ||
29426 | |||
29427 | |||
29428 | fi | ||
29429 | |||
29430 | |||
29431 | # Looking for programs, paths and files | ||
29432 | |||
29433 | PRIVSEP_PATH=/var/empty | ||
29434 | |||
29435 | # Check whether --with-privsep-path was given. | ||
29436 | if test "${with_privsep_path+set}" = set; then | ||
29437 | withval=$with_privsep_path; | ||
29438 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
29439 | test "x${withval}" != "xyes"; then | ||
29440 | PRIVSEP_PATH=$withval | ||
29441 | fi | ||
29442 | |||
29443 | |||
29444 | fi | ||
29445 | |||
29446 | |||
29447 | |||
29448 | |||
29449 | # Check whether --with-xauth was given. | ||
29450 | if test "${with_xauth+set}" = set; then | ||
29451 | withval=$with_xauth; | ||
29452 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
29453 | test "x${withval}" != "xyes"; then | ||
29454 | xauth_path=$withval | ||
29455 | fi | ||
29456 | |||
29457 | else | ||
29458 | |||
29459 | TestPath="$PATH" | ||
29460 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
29461 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
29462 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
29463 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
29464 | # Extract the first word of "xauth", so it can be a program name with args. | ||
29465 | set dummy xauth; ac_word=$2 | ||
29466 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
29467 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
29468 | if test "${ac_cv_path_xauth_path+set}" = set; then | ||
29469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29470 | else | ||
29471 | case $xauth_path in | ||
29472 | [\\/]* | ?:[\\/]*) | ||
29473 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
29474 | ;; | ||
29475 | *) | ||
29476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
29477 | for as_dir in $TestPath | ||
29478 | do | ||
29479 | IFS=$as_save_IFS | ||
29480 | test -z "$as_dir" && as_dir=. | ||
29481 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
29482 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
29483 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" | ||
29484 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
29485 | break 2 | ||
29486 | fi | ||
29487 | done | ||
29488 | done | ||
29489 | IFS=$as_save_IFS | ||
29490 | |||
29491 | ;; | ||
29492 | esac | ||
29493 | fi | ||
29494 | xauth_path=$ac_cv_path_xauth_path | ||
29495 | if test -n "$xauth_path"; then | ||
29496 | { echo "$as_me:$LINENO: result: $xauth_path" >&5 | ||
29497 | echo "${ECHO_T}$xauth_path" >&6; } | ||
29498 | else | ||
29499 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29500 | echo "${ECHO_T}no" >&6; } | ||
29501 | fi | ||
29502 | |||
29503 | |||
29504 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
29505 | xauth_path="/usr/openwin/bin/xauth" | ||
29506 | fi | ||
29507 | |||
29508 | |||
29509 | fi | ||
29510 | |||
29511 | |||
29512 | STRIP_OPT=-s | ||
29513 | # Check whether --enable-strip was given. | ||
29514 | if test "${enable_strip+set}" = set; then | ||
29515 | enableval=$enable_strip; | ||
29516 | if test "x$enableval" = "xno" ; then | ||
29517 | STRIP_OPT= | ||
29518 | fi | ||
29519 | |||
29520 | |||
29521 | fi | ||
29522 | |||
29523 | |||
29524 | |||
29525 | if test -z "$xauth_path" ; then | ||
29526 | XAUTH_PATH="undefined" | ||
29527 | |||
29528 | else | ||
29529 | |||
29530 | cat >>confdefs.h <<_ACEOF | ||
29531 | #define XAUTH_PATH "$xauth_path" | ||
29532 | _ACEOF | ||
29533 | |||
29534 | XAUTH_PATH=$xauth_path | ||
29535 | |||
29536 | fi | ||
29537 | |||
29538 | # Check for mail directory (last resort if we cannot get it from headers) | ||
29539 | if test ! -z "$MAIL" ; then | ||
29540 | maildir=`dirname $MAIL` | ||
29541 | |||
29542 | cat >>confdefs.h <<_ACEOF | ||
29543 | #define MAIL_DIRECTORY "$maildir" | ||
29544 | _ACEOF | ||
29545 | |||
29546 | fi | ||
29547 | |||
29548 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then | ||
29549 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5 | ||
29550 | echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;} | ||
29551 | disable_ptmx_check=yes | ||
29552 | fi | ||
29553 | if test -z "$no_dev_ptmx" ; then | ||
29554 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
29555 | { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5 | ||
29556 | echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; } | ||
29557 | if test "${ac_cv_file___dev_ptmx_+set}" = set; then | ||
29558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29559 | else | ||
29560 | test "$cross_compiling" = yes && | ||
29561 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
29562 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
29563 | { (exit 1); exit 1; }; } | ||
29564 | if test -r ""/dev/ptmx""; then | ||
29565 | ac_cv_file___dev_ptmx_=yes | ||
29566 | else | ||
29567 | ac_cv_file___dev_ptmx_=no | ||
29568 | fi | ||
29569 | fi | ||
29570 | { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5 | ||
29571 | echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; } | ||
29572 | if test $ac_cv_file___dev_ptmx_ = yes; then | ||
29573 | |||
29574 | |||
29575 | cat >>confdefs.h <<_ACEOF | ||
29576 | #define HAVE_DEV_PTMX 1 | ||
29577 | _ACEOF | ||
29578 | |||
29579 | have_dev_ptmx=1 | ||
29580 | |||
29581 | |||
29582 | fi | ||
29583 | |||
29584 | fi | ||
29585 | fi | ||
29586 | |||
29587 | if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then | ||
29588 | { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5 | ||
29589 | echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; } | ||
29590 | if test "${ac_cv_file___dev_ptc_+set}" = set; then | ||
29591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29592 | else | ||
29593 | test "$cross_compiling" = yes && | ||
29594 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
29595 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
29596 | { (exit 1); exit 1; }; } | ||
29597 | if test -r ""/dev/ptc""; then | ||
29598 | ac_cv_file___dev_ptc_=yes | ||
29599 | else | ||
29600 | ac_cv_file___dev_ptc_=no | ||
29601 | fi | ||
29602 | fi | ||
29603 | { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5 | ||
29604 | echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; } | ||
29605 | if test $ac_cv_file___dev_ptc_ = yes; then | ||
29606 | |||
29607 | |||
29608 | cat >>confdefs.h <<_ACEOF | ||
29609 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
29610 | _ACEOF | ||
29611 | |||
29612 | have_dev_ptc=1 | ||
29613 | |||
29614 | |||
29615 | fi | ||
29616 | |||
29617 | else | ||
29618 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5 | ||
29619 | echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;} | ||
29620 | fi | ||
29621 | |||
29622 | # Options from here on. Some of these are preset by platform above | ||
29623 | |||
29624 | # Check whether --with-mantype was given. | ||
29625 | if test "${with_mantype+set}" = set; then | ||
29626 | withval=$with_mantype; | ||
29627 | case "$withval" in | ||
29628 | man|cat|doc) | ||
29629 | MANTYPE=$withval | ||
29630 | ;; | ||
29631 | *) | ||
29632 | { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5 | ||
29633 | echo "$as_me: error: invalid man type: $withval" >&2;} | ||
29634 | { (exit 1); exit 1; }; } | ||
29635 | ;; | ||
29636 | esac | ||
29637 | |||
29638 | |||
29639 | fi | ||
29640 | |||
29641 | if test -z "$MANTYPE"; then | ||
29642 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
29643 | for ac_prog in nroff awf | ||
29644 | do | ||
29645 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
29646 | set dummy $ac_prog; ac_word=$2 | ||
29647 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
29648 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
29649 | if test "${ac_cv_path_NROFF+set}" = set; then | ||
29650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29651 | else | ||
29652 | case $NROFF in | ||
29653 | [\\/]* | ?:[\\/]*) | ||
29654 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
29655 | ;; | ||
29656 | *) | ||
29657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
29658 | for as_dir in $TestPath | ||
29659 | do | ||
29660 | IFS=$as_save_IFS | ||
29661 | test -z "$as_dir" && as_dir=. | ||
29662 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
29663 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
29664 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
29665 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
29666 | break 2 | ||
29667 | fi | ||
29668 | done | ||
29669 | done | ||
29670 | IFS=$as_save_IFS | ||
29671 | |||
29672 | ;; | ||
29673 | esac | ||
29674 | fi | ||
29675 | NROFF=$ac_cv_path_NROFF | ||
29676 | if test -n "$NROFF"; then | ||
29677 | { echo "$as_me:$LINENO: result: $NROFF" >&5 | ||
29678 | echo "${ECHO_T}$NROFF" >&6; } | ||
29679 | else | ||
29680 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29681 | echo "${ECHO_T}no" >&6; } | ||
29682 | fi | ||
29683 | |||
29684 | |||
29685 | test -n "$NROFF" && break | ||
29686 | done | ||
29687 | test -n "$NROFF" || NROFF="/bin/false" | ||
29688 | |||
29689 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
29690 | MANTYPE=doc | ||
29691 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
29692 | MANTYPE=man | ||
29693 | else | ||
29694 | MANTYPE=cat | ||
29695 | fi | ||
29696 | fi | ||
29697 | |||
29698 | if test "$MANTYPE" = "doc"; then | ||
29699 | mansubdir=man; | ||
29700 | else | ||
29701 | mansubdir=$MANTYPE; | ||
29702 | fi | ||
29703 | |||
29704 | |||
29705 | # Check whether to enable MD5 passwords | ||
29706 | MD5_MSG="no" | ||
29707 | |||
29708 | # Check whether --with-md5-passwords was given. | ||
29709 | if test "${with_md5_passwords+set}" = set; then | ||
29710 | withval=$with_md5_passwords; | ||
29711 | if test "x$withval" != "xno" ; then | ||
29712 | |||
29713 | cat >>confdefs.h <<\_ACEOF | ||
29714 | #define HAVE_MD5_PASSWORDS 1 | ||
29715 | _ACEOF | ||
29716 | |||
29717 | MD5_MSG="yes" | ||
29718 | fi | ||
29719 | |||
29720 | |||
29721 | fi | ||
29722 | |||
29723 | |||
29724 | # Whether to disable shadow password support | ||
29725 | |||
29726 | # Check whether --with-shadow was given. | ||
29727 | if test "${with_shadow+set}" = set; then | ||
29728 | withval=$with_shadow; | ||
29729 | if test "x$withval" = "xno" ; then | ||
29730 | cat >>confdefs.h <<\_ACEOF | ||
29731 | #define DISABLE_SHADOW 1 | ||
29732 | _ACEOF | ||
29733 | |||
29734 | disable_shadow=yes | ||
29735 | fi | ||
29736 | |||
29737 | |||
29738 | fi | ||
29739 | |||
29740 | |||
29741 | if test -z "$disable_shadow" ; then | ||
29742 | { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5 | ||
29743 | echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; } | ||
29744 | cat >conftest.$ac_ext <<_ACEOF | ||
29745 | /* confdefs.h. */ | ||
29746 | _ACEOF | ||
29747 | cat confdefs.h >>conftest.$ac_ext | ||
29748 | cat >>conftest.$ac_ext <<_ACEOF | ||
29749 | /* end confdefs.h. */ | ||
29750 | |||
29751 | #include <sys/types.h> | ||
29752 | #include <shadow.h> | ||
29753 | struct spwd sp; | ||
29754 | |||
29755 | int | ||
29756 | main () | ||
29757 | { | ||
29758 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
29759 | ; | ||
29760 | return 0; | ||
29761 | } | ||
29762 | _ACEOF | ||
29763 | rm -f conftest.$ac_objext | ||
29764 | if { (ac_try="$ac_compile" | ||
29765 | case "(($ac_try" in | ||
29766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29767 | *) ac_try_echo=$ac_try;; | ||
29768 | esac | ||
29769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29770 | (eval "$ac_compile") 2>conftest.er1 | ||
29771 | ac_status=$? | ||
29772 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29773 | rm -f conftest.er1 | ||
29774 | cat conftest.err >&5 | ||
29775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29776 | (exit $ac_status); } && { | ||
29777 | test -z "$ac_c_werror_flag" || | ||
29778 | test ! -s conftest.err | ||
29779 | } && test -s conftest.$ac_objext; then | ||
29780 | sp_expire_available=yes | ||
29781 | else | ||
29782 | echo "$as_me: failed program was:" >&5 | ||
29783 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29784 | |||
29785 | |||
29786 | |||
29787 | fi | ||
29788 | |||
29789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29790 | |||
29791 | if test "x$sp_expire_available" = "xyes" ; then | ||
29792 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
29793 | echo "${ECHO_T}yes" >&6; } | ||
29794 | |||
29795 | cat >>confdefs.h <<\_ACEOF | ||
29796 | #define HAS_SHADOW_EXPIRE 1 | ||
29797 | _ACEOF | ||
29798 | |||
29799 | else | ||
29800 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29801 | echo "${ECHO_T}no" >&6; } | ||
29802 | fi | ||
29803 | fi | ||
29804 | |||
29805 | # Use ip address instead of hostname in $DISPLAY | ||
29806 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
29807 | DISPLAY_HACK_MSG="yes" | ||
29808 | |||
29809 | cat >>confdefs.h <<\_ACEOF | ||
29810 | #define IPADDR_IN_DISPLAY 1 | ||
29811 | _ACEOF | ||
29812 | |||
29813 | else | ||
29814 | DISPLAY_HACK_MSG="no" | ||
29815 | |||
29816 | # Check whether --with-ipaddr-display was given. | ||
29817 | if test "${with_ipaddr_display+set}" = set; then | ||
29818 | withval=$with_ipaddr_display; | ||
29819 | if test "x$withval" != "xno" ; then | ||
29820 | cat >>confdefs.h <<\_ACEOF | ||
29821 | #define IPADDR_IN_DISPLAY 1 | ||
29822 | _ACEOF | ||
29823 | |||
29824 | DISPLAY_HACK_MSG="yes" | ||
29825 | fi | ||
29826 | |||
29827 | |||
29828 | fi | ||
29829 | |||
29830 | fi | ||
29831 | |||
29832 | # check for /etc/default/login and use it if present. | ||
29833 | # Check whether --enable-etc-default-login was given. | ||
29834 | if test "${enable_etc_default_login+set}" = set; then | ||
29835 | enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then | ||
29836 | { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5 | ||
29837 | echo "$as_me: /etc/default/login handling disabled" >&6;} | ||
29838 | etc_default_login=no | ||
29839 | else | ||
29840 | etc_default_login=yes | ||
29841 | fi | ||
29842 | else | ||
29843 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; | ||
29844 | then | ||
29845 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5 | ||
29846 | echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;} | ||
29847 | etc_default_login=no | ||
29848 | else | ||
29849 | etc_default_login=yes | ||
29850 | fi | ||
29851 | |||
29852 | fi | ||
29853 | |||
29854 | |||
29855 | if test "x$etc_default_login" != "xno"; then | ||
29856 | { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5 | ||
29857 | echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; } | ||
29858 | if test "${ac_cv_file___etc_default_login_+set}" = set; then | ||
29859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
29860 | else | ||
29861 | test "$cross_compiling" = yes && | ||
29862 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
29863 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
29864 | { (exit 1); exit 1; }; } | ||
29865 | if test -r ""/etc/default/login""; then | ||
29866 | ac_cv_file___etc_default_login_=yes | ||
29867 | else | ||
29868 | ac_cv_file___etc_default_login_=no | ||
29869 | fi | ||
29870 | fi | ||
29871 | { echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5 | ||
29872 | echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; } | ||
29873 | if test $ac_cv_file___etc_default_login_ = yes; then | ||
29874 | external_path_file=/etc/default/login | ||
29875 | fi | ||
29876 | |||
29877 | if test "x$external_path_file" = "x/etc/default/login"; then | ||
29878 | |||
29879 | cat >>confdefs.h <<\_ACEOF | ||
29880 | #define HAVE_ETC_DEFAULT_LOGIN 1 | ||
29881 | _ACEOF | ||
29882 | |||
29883 | fi | ||
29884 | fi | ||
29885 | |||
29886 | if test $ac_cv_func_login_getcapbool = "yes" && \ | ||
29887 | test $ac_cv_header_login_cap_h = "yes" ; then | ||
29888 | external_path_file=/etc/login.conf | ||
29889 | fi | ||
29890 | |||
29891 | # Whether to mess with the default path | ||
29892 | SERVER_PATH_MSG="(default)" | ||
29893 | |||
29894 | # Check whether --with-default-path was given. | ||
29895 | if test "${with_default_path+set}" = set; then | ||
29896 | withval=$with_default_path; | ||
29897 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
29898 | { echo "$as_me:$LINENO: WARNING: | ||
29899 | --with-default-path=PATH has no effect on this system. | ||
29900 | Edit /etc/login.conf instead." >&5 | ||
29901 | echo "$as_me: WARNING: | ||
29902 | --with-default-path=PATH has no effect on this system. | ||
29903 | Edit /etc/login.conf instead." >&2;} | ||
29904 | elif test "x$withval" != "xno" ; then | ||
29905 | if test ! -z "$external_path_file" ; then | ||
29906 | { echo "$as_me:$LINENO: WARNING: | ||
29907 | --with-default-path=PATH will only be used if PATH is not defined in | ||
29908 | $external_path_file ." >&5 | ||
29909 | echo "$as_me: WARNING: | ||
29910 | --with-default-path=PATH will only be used if PATH is not defined in | ||
29911 | $external_path_file ." >&2;} | ||
29912 | fi | ||
29913 | user_path="$withval" | ||
29914 | SERVER_PATH_MSG="$withval" | ||
29915 | fi | ||
29916 | |||
29917 | else | ||
29918 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
29919 | { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
29920 | echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
29921 | else | ||
29922 | if test ! -z "$external_path_file" ; then | ||
29923 | { echo "$as_me:$LINENO: WARNING: | ||
29924 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
29925 | otherwise scp will not work." >&5 | ||
29926 | echo "$as_me: WARNING: | ||
29927 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
29928 | otherwise scp will not work." >&2;} | ||
29929 | fi | ||
29930 | if test "$cross_compiling" = yes; then | ||
29931 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
29932 | |||
29933 | else | ||
29934 | cat >conftest.$ac_ext <<_ACEOF | ||
29935 | /* confdefs.h. */ | ||
29936 | _ACEOF | ||
29937 | cat confdefs.h >>conftest.$ac_ext | ||
29938 | cat >>conftest.$ac_ext <<_ACEOF | ||
29939 | /* end confdefs.h. */ | ||
29940 | |||
29941 | /* find out what STDPATH is */ | ||
29942 | #include <stdio.h> | ||
29943 | #ifdef HAVE_PATHS_H | ||
29944 | # include <paths.h> | ||
29945 | #endif | ||
29946 | #ifndef _PATH_STDPATH | ||
29947 | # ifdef _PATH_USERPATH /* Irix */ | ||
29948 | # define _PATH_STDPATH _PATH_USERPATH | ||
29949 | # else | ||
29950 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
29951 | # endif | ||
29952 | #endif | ||
29953 | #include <sys/types.h> | ||
29954 | #include <sys/stat.h> | ||
29955 | #include <fcntl.h> | ||
29956 | #define DATA "conftest.stdpath" | ||
29957 | |||
29958 | main() | ||
29959 | { | ||
29960 | FILE *fd; | ||
29961 | int rc; | ||
29962 | |||
29963 | fd = fopen(DATA,"w"); | ||
29964 | if(fd == NULL) | ||
29965 | exit(1); | ||
29966 | |||
29967 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
29968 | exit(1); | ||
29969 | |||
29970 | exit(0); | ||
29971 | } | ||
29972 | |||
29973 | _ACEOF | ||
29974 | rm -f conftest$ac_exeext | ||
29975 | if { (ac_try="$ac_link" | ||
29976 | case "(($ac_try" in | ||
29977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29978 | *) ac_try_echo=$ac_try;; | ||
29979 | esac | ||
29980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29981 | (eval "$ac_link") 2>&5 | ||
29982 | ac_status=$? | ||
29983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29984 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
29985 | { (case "(($ac_try" in | ||
29986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29987 | *) ac_try_echo=$ac_try;; | ||
29988 | esac | ||
29989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29990 | (eval "$ac_try") 2>&5 | ||
29991 | ac_status=$? | ||
29992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29993 | (exit $ac_status); }; }; then | ||
29994 | user_path=`cat conftest.stdpath` | ||
29995 | else | ||
29996 | echo "$as_me: program exited with status $ac_status" >&5 | ||
29997 | echo "$as_me: failed program was:" >&5 | ||
29998 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29999 | |||
30000 | ( exit $ac_status ) | ||
30001 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
30002 | fi | ||
30003 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
30004 | fi | ||
30005 | |||
30006 | |||
30007 | # make sure $bindir is in USER_PATH so scp will work | ||
30008 | t_bindir=`eval echo ${bindir}` | ||
30009 | case $t_bindir in | ||
30010 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
30011 | esac | ||
30012 | case $t_bindir in | ||
30013 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
30014 | esac | ||
30015 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
30016 | if test $? -ne 0 ; then | ||
30017 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
30018 | if test $? -ne 0 ; then | ||
30019 | user_path=$user_path:$t_bindir | ||
30020 | { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
30021 | echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; } | ||
30022 | fi | ||
30023 | fi | ||
30024 | fi | ||
30025 | |||
30026 | fi | ||
30027 | |||
30028 | if test "x$external_path_file" != "x/etc/login.conf" ; then | ||
30029 | |||
30030 | cat >>confdefs.h <<_ACEOF | ||
30031 | #define USER_PATH "$user_path" | ||
30032 | _ACEOF | ||
30033 | |||
30034 | |||
30035 | fi | ||
30036 | |||
30037 | # Set superuser path separately to user path | ||
30038 | |||
30039 | # Check whether --with-superuser-path was given. | ||
30040 | if test "${with_superuser_path+set}" = set; then | ||
30041 | withval=$with_superuser_path; | ||
30042 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
30043 | test "x${withval}" != "xyes"; then | ||
30044 | |||
30045 | cat >>confdefs.h <<_ACEOF | ||
30046 | #define SUPERUSER_PATH "$withval" | ||
30047 | _ACEOF | ||
30048 | |||
30049 | superuser_path=$withval | ||
30050 | fi | ||
30051 | |||
30052 | |||
30053 | fi | ||
30054 | |||
30055 | |||
30056 | |||
30057 | { echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
30058 | echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; } | ||
30059 | IPV4_IN6_HACK_MSG="no" | ||
30060 | |||
30061 | # Check whether --with-4in6 was given. | ||
30062 | if test "${with_4in6+set}" = set; then | ||
30063 | withval=$with_4in6; | ||
30064 | if test "x$withval" != "xno" ; then | ||
30065 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
30066 | echo "${ECHO_T}yes" >&6; } | ||
30067 | |||
30068 | cat >>confdefs.h <<\_ACEOF | ||
30069 | #define IPV4_IN_IPV6 1 | ||
30070 | _ACEOF | ||
30071 | |||
30072 | IPV4_IN6_HACK_MSG="yes" | ||
30073 | else | ||
30074 | { echo "$as_me:$LINENO: result: no" >&5 | ||
30075 | echo "${ECHO_T}no" >&6; } | ||
30076 | fi | ||
30077 | |||
30078 | else | ||
30079 | |||
30080 | if test "x$inet6_default_4in6" = "xyes"; then | ||
30081 | { echo "$as_me:$LINENO: result: yes (default)" >&5 | ||
30082 | echo "${ECHO_T}yes (default)" >&6; } | ||
30083 | cat >>confdefs.h <<\_ACEOF | ||
30084 | #define IPV4_IN_IPV6 1 | ||
30085 | _ACEOF | ||
30086 | |||
30087 | IPV4_IN6_HACK_MSG="yes" | ||
30088 | else | ||
30089 | { echo "$as_me:$LINENO: result: no (default)" >&5 | ||
30090 | echo "${ECHO_T}no (default)" >&6; } | ||
30091 | fi | ||
30092 | |||
30093 | |||
30094 | fi | ||
30095 | |||
30096 | |||
30097 | # Whether to enable BSD auth support | ||
30098 | BSD_AUTH_MSG=no | ||
30099 | |||
30100 | # Check whether --with-bsd-auth was given. | ||
30101 | if test "${with_bsd_auth+set}" = set; then | ||
30102 | withval=$with_bsd_auth; | ||
30103 | if test "x$withval" != "xno" ; then | ||
30104 | |||
30105 | cat >>confdefs.h <<\_ACEOF | ||
30106 | #define BSD_AUTH 1 | ||
30107 | _ACEOF | ||
30108 | |||
30109 | BSD_AUTH_MSG=yes | ||
30110 | fi | ||
30111 | |||
30112 | |||
30113 | fi | ||
30114 | |||
30115 | |||
30116 | # Where to place sshd.pid | ||
30117 | piddir=/var/run | ||
30118 | # make sure the directory exists | ||
30119 | if test ! -d $piddir ; then | ||
30120 | piddir=`eval echo ${sysconfdir}` | ||
30121 | case $piddir in | ||
30122 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
30123 | esac | ||
30124 | fi | ||
30125 | |||
30126 | |||
30127 | # Check whether --with-pid-dir was given. | ||
30128 | if test "${with_pid_dir+set}" = set; then | ||
30129 | withval=$with_pid_dir; | ||
30130 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
30131 | test "x${withval}" != "xyes"; then | ||
30132 | piddir=$withval | ||
30133 | if test ! -d $piddir ; then | ||
30134 | { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5 | ||
30135 | echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
30136 | fi | ||
30137 | fi | ||
30138 | |||
30139 | |||
30140 | fi | ||
30141 | |||
30142 | |||
30143 | |||
30144 | cat >>confdefs.h <<_ACEOF | ||
30145 | #define _PATH_SSH_PIDDIR "$piddir" | ||
30146 | _ACEOF | ||
30147 | |||
30148 | |||
30149 | |||
30150 | # Check whether --enable-lastlog was given. | ||
30151 | if test "${enable_lastlog+set}" = set; then | ||
30152 | enableval=$enable_lastlog; | ||
30153 | if test "x$enableval" = "xno" ; then | ||
30154 | cat >>confdefs.h <<\_ACEOF | ||
30155 | #define DISABLE_LASTLOG 1 | ||
30156 | _ACEOF | ||
30157 | |||
30158 | fi | ||
30159 | |||
30160 | |||
30161 | fi | ||
30162 | |||
30163 | # Check whether --enable-utmp was given. | ||
30164 | if test "${enable_utmp+set}" = set; then | ||
30165 | enableval=$enable_utmp; | ||
30166 | if test "x$enableval" = "xno" ; then | ||
30167 | cat >>confdefs.h <<\_ACEOF | ||
30168 | #define DISABLE_UTMP 1 | ||
30169 | _ACEOF | ||
30170 | |||
30171 | fi | ||
30172 | |||
30173 | |||
30174 | fi | ||
30175 | |||
30176 | # Check whether --enable-utmpx was given. | ||
30177 | if test "${enable_utmpx+set}" = set; then | ||
30178 | enableval=$enable_utmpx; | ||
30179 | if test "x$enableval" = "xno" ; then | ||
30180 | |||
30181 | cat >>confdefs.h <<\_ACEOF | ||
30182 | #define DISABLE_UTMPX 1 | ||
30183 | _ACEOF | ||
30184 | |||
30185 | fi | ||
30186 | |||
30187 | |||
30188 | fi | ||
30189 | |||
30190 | # Check whether --enable-wtmp was given. | ||
30191 | if test "${enable_wtmp+set}" = set; then | ||
30192 | enableval=$enable_wtmp; | ||
30193 | if test "x$enableval" = "xno" ; then | ||
30194 | cat >>confdefs.h <<\_ACEOF | ||
30195 | #define DISABLE_WTMP 1 | ||
30196 | _ACEOF | ||
30197 | |||
30198 | fi | ||
30199 | |||
30200 | |||
30201 | fi | ||
30202 | |||
30203 | # Check whether --enable-wtmpx was given. | ||
30204 | if test "${enable_wtmpx+set}" = set; then | ||
30205 | enableval=$enable_wtmpx; | ||
30206 | if test "x$enableval" = "xno" ; then | ||
30207 | |||
30208 | cat >>confdefs.h <<\_ACEOF | ||
30209 | #define DISABLE_WTMPX 1 | ||
30210 | _ACEOF | ||
30211 | |||
30212 | fi | ||
30213 | |||
30214 | |||
30215 | fi | ||
30216 | |||
30217 | # Check whether --enable-libutil was given. | ||
30218 | if test "${enable_libutil+set}" = set; then | ||
30219 | enableval=$enable_libutil; | ||
30220 | if test "x$enableval" = "xno" ; then | ||
30221 | cat >>confdefs.h <<\_ACEOF | ||
30222 | #define DISABLE_LOGIN 1 | ||
30223 | _ACEOF | ||
30224 | |||
30225 | fi | ||
30226 | |||
30227 | |||
30228 | fi | ||
30229 | |||
30230 | # Check whether --enable-pututline was given. | ||
30231 | if test "${enable_pututline+set}" = set; then | ||
30232 | enableval=$enable_pututline; | ||
30233 | if test "x$enableval" = "xno" ; then | ||
30234 | |||
30235 | cat >>confdefs.h <<\_ACEOF | ||
30236 | #define DISABLE_PUTUTLINE 1 | ||
30237 | _ACEOF | ||
30238 | |||
30239 | fi | ||
30240 | |||
30241 | |||
30242 | fi | ||
30243 | |||
30244 | # Check whether --enable-pututxline was given. | ||
30245 | if test "${enable_pututxline+set}" = set; then | ||
30246 | enableval=$enable_pututxline; | ||
30247 | if test "x$enableval" = "xno" ; then | ||
30248 | |||
30249 | cat >>confdefs.h <<\_ACEOF | ||
30250 | #define DISABLE_PUTUTXLINE 1 | ||
30251 | _ACEOF | ||
30252 | |||
30253 | fi | ||
30254 | |||
30255 | |||
30256 | fi | ||
30257 | |||
30258 | |||
30259 | # Check whether --with-lastlog was given. | ||
30260 | if test "${with_lastlog+set}" = set; then | ||
30261 | withval=$with_lastlog; | ||
30262 | if test "x$withval" = "xno" ; then | ||
30263 | cat >>confdefs.h <<\_ACEOF | ||
30264 | #define DISABLE_LASTLOG 1 | ||
30265 | _ACEOF | ||
30266 | |||
30267 | elif test -n "$withval" && test "x${withval}" != "xyes"; then | ||
30268 | conf_lastlog_location=$withval | ||
30269 | fi | ||
30270 | |||
30271 | |||
30272 | fi | ||
30273 | |||
30274 | |||
30275 | |||
30276 | { echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5 | ||
30277 | echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; } | ||
30278 | cat >conftest.$ac_ext <<_ACEOF | ||
30279 | /* confdefs.h. */ | ||
30280 | _ACEOF | ||
30281 | cat confdefs.h >>conftest.$ac_ext | ||
30282 | cat >>conftest.$ac_ext <<_ACEOF | ||
30283 | /* end confdefs.h. */ | ||
30284 | |||
30285 | #include <sys/types.h> | ||
30286 | #include <utmp.h> | ||
30287 | #ifdef HAVE_LASTLOG_H | ||
30288 | # include <lastlog.h> | ||
30289 | #endif | ||
30290 | #ifdef HAVE_PATHS_H | ||
30291 | # include <paths.h> | ||
30292 | #endif | ||
30293 | #ifdef HAVE_LOGIN_H | ||
30294 | # include <login.h> | ||
30295 | #endif | ||
30296 | |||
30297 | int | ||
30298 | main () | ||
30299 | { | ||
30300 | char *lastlog = LASTLOG_FILE; | ||
30301 | ; | ||
30302 | return 0; | ||
30303 | } | ||
30304 | _ACEOF | ||
30305 | rm -f conftest.$ac_objext | ||
30306 | if { (ac_try="$ac_compile" | ||
30307 | case "(($ac_try" in | ||
30308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30309 | *) ac_try_echo=$ac_try;; | ||
30310 | esac | ||
30311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30312 | (eval "$ac_compile") 2>conftest.er1 | ||
30313 | ac_status=$? | ||
30314 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30315 | rm -f conftest.er1 | ||
30316 | cat conftest.err >&5 | ||
30317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30318 | (exit $ac_status); } && { | ||
30319 | test -z "$ac_c_werror_flag" || | ||
30320 | test ! -s conftest.err | ||
30321 | } && test -s conftest.$ac_objext; then | ||
30322 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
30323 | echo "${ECHO_T}yes" >&6; } | ||
30324 | else | ||
30325 | echo "$as_me: failed program was:" >&5 | ||
30326 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30327 | |||
30328 | |||
30329 | { echo "$as_me:$LINENO: result: no" >&5 | ||
30330 | echo "${ECHO_T}no" >&6; } | ||
30331 | { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5 | ||
30332 | echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; } | ||
30333 | cat >conftest.$ac_ext <<_ACEOF | ||
30334 | /* confdefs.h. */ | ||
30335 | _ACEOF | ||
30336 | cat confdefs.h >>conftest.$ac_ext | ||
30337 | cat >>conftest.$ac_ext <<_ACEOF | ||
30338 | /* end confdefs.h. */ | ||
30339 | |||
30340 | #include <sys/types.h> | ||
30341 | #include <utmp.h> | ||
30342 | #ifdef HAVE_LASTLOG_H | ||
30343 | # include <lastlog.h> | ||
30344 | #endif | ||
30345 | #ifdef HAVE_PATHS_H | ||
30346 | # include <paths.h> | ||
30347 | #endif | ||
30348 | |||
30349 | int | ||
30350 | main () | ||
30351 | { | ||
30352 | char *lastlog = _PATH_LASTLOG; | ||
30353 | ; | ||
30354 | return 0; | ||
30355 | } | ||
30356 | _ACEOF | ||
30357 | rm -f conftest.$ac_objext | ||
30358 | if { (ac_try="$ac_compile" | ||
30359 | case "(($ac_try" in | ||
30360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30361 | *) ac_try_echo=$ac_try;; | ||
30362 | esac | ||
30363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30364 | (eval "$ac_compile") 2>conftest.er1 | ||
30365 | ac_status=$? | ||
30366 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30367 | rm -f conftest.er1 | ||
30368 | cat conftest.err >&5 | ||
30369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30370 | (exit $ac_status); } && { | ||
30371 | test -z "$ac_c_werror_flag" || | ||
30372 | test ! -s conftest.err | ||
30373 | } && test -s conftest.$ac_objext; then | ||
30374 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
30375 | echo "${ECHO_T}yes" >&6; } | ||
30376 | else | ||
30377 | echo "$as_me: failed program was:" >&5 | ||
30378 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30379 | |||
30380 | |||
30381 | { echo "$as_me:$LINENO: result: no" >&5 | ||
30382 | echo "${ECHO_T}no" >&6; } | ||
30383 | system_lastlog_path=no | ||
30384 | |||
30385 | fi | ||
30386 | |||
30387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30388 | |||
30389 | |||
30390 | fi | ||
30391 | |||
30392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30393 | |||
30394 | if test -z "$conf_lastlog_location"; then | ||
30395 | if test x"$system_lastlog_path" = x"no" ; then | ||
30396 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
30397 | if (test -d "$f" || test -f "$f") ; then | ||
30398 | conf_lastlog_location=$f | ||
30399 | fi | ||
30400 | done | ||
30401 | if test -z "$conf_lastlog_location"; then | ||
30402 | { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5 | ||
30403 | echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
30404 | fi | ||
30405 | fi | ||
30406 | fi | ||
30407 | |||
30408 | if test -n "$conf_lastlog_location"; then | ||
30409 | |||
30410 | cat >>confdefs.h <<_ACEOF | ||
30411 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
30412 | _ACEOF | ||
30413 | |||
30414 | fi | ||
30415 | |||
30416 | { echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5 | ||
30417 | echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; } | ||
30418 | cat >conftest.$ac_ext <<_ACEOF | ||
30419 | /* confdefs.h. */ | ||
30420 | _ACEOF | ||
30421 | cat confdefs.h >>conftest.$ac_ext | ||
30422 | cat >>conftest.$ac_ext <<_ACEOF | ||
30423 | /* end confdefs.h. */ | ||
30424 | |||
30425 | #include <sys/types.h> | ||
30426 | #include <utmp.h> | ||
30427 | #ifdef HAVE_PATHS_H | ||
30428 | # include <paths.h> | ||
30429 | #endif | ||
30430 | |||
30431 | int | ||
30432 | main () | ||
30433 | { | ||
30434 | char *utmp = UTMP_FILE; | ||
30435 | ; | ||
30436 | return 0; | ||
30437 | } | ||
30438 | _ACEOF | ||
30439 | rm -f conftest.$ac_objext | ||
30440 | if { (ac_try="$ac_compile" | ||
30441 | case "(($ac_try" in | ||
30442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30443 | *) ac_try_echo=$ac_try;; | ||
30444 | esac | ||
30445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30446 | (eval "$ac_compile") 2>conftest.er1 | ||
30447 | ac_status=$? | ||
30448 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30449 | rm -f conftest.er1 | ||
30450 | cat conftest.err >&5 | ||
30451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30452 | (exit $ac_status); } && { | ||
30453 | test -z "$ac_c_werror_flag" || | ||
30454 | test ! -s conftest.err | ||
30455 | } && test -s conftest.$ac_objext; then | ||
30456 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
30457 | echo "${ECHO_T}yes" >&6; } | ||
30458 | else | ||
30459 | echo "$as_me: failed program was:" >&5 | ||
30460 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30461 | |||
30462 | { echo "$as_me:$LINENO: result: no" >&5 | ||
30463 | echo "${ECHO_T}no" >&6; } | ||
30464 | system_utmp_path=no | ||
30465 | |||
30466 | fi | ||
30467 | |||
30468 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30469 | if test -z "$conf_utmp_location"; then | ||
30470 | if test x"$system_utmp_path" = x"no" ; then | ||
30471 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
30472 | if test -f $f ; then | ||
30473 | conf_utmp_location=$f | ||
30474 | fi | ||
30475 | done | ||
30476 | if test -z "$conf_utmp_location"; then | ||
30477 | cat >>confdefs.h <<\_ACEOF | ||
30478 | #define DISABLE_UTMP 1 | ||
30479 | _ACEOF | ||
30480 | |||
30481 | fi | ||
30482 | fi | ||
30483 | fi | ||
30484 | if test -n "$conf_utmp_location"; then | ||
30485 | |||
30486 | cat >>confdefs.h <<_ACEOF | ||
30487 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
30488 | _ACEOF | ||
30489 | |||
30490 | fi | ||
30491 | |||
30492 | { echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5 | ||
30493 | echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; } | ||
30494 | cat >conftest.$ac_ext <<_ACEOF | ||
30495 | /* confdefs.h. */ | ||
30496 | _ACEOF | ||
30497 | cat confdefs.h >>conftest.$ac_ext | ||
30498 | cat >>conftest.$ac_ext <<_ACEOF | ||
30499 | /* end confdefs.h. */ | ||
30500 | |||
30501 | #include <sys/types.h> | ||
30502 | #include <utmp.h> | ||
30503 | #ifdef HAVE_PATHS_H | ||
30504 | # include <paths.h> | ||
30505 | #endif | ||
30506 | |||
30507 | int | ||
30508 | main () | ||
30509 | { | ||
30510 | char *wtmp = WTMP_FILE; | ||
30511 | ; | ||
30512 | return 0; | ||
30513 | } | ||
30514 | _ACEOF | ||
30515 | rm -f conftest.$ac_objext | ||
30516 | if { (ac_try="$ac_compile" | ||
30517 | case "(($ac_try" in | ||
30518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30519 | *) ac_try_echo=$ac_try;; | ||
30520 | esac | ||
30521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30522 | (eval "$ac_compile") 2>conftest.er1 | ||
30523 | ac_status=$? | ||
30524 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30525 | rm -f conftest.er1 | ||
30526 | cat conftest.err >&5 | ||
30527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30528 | (exit $ac_status); } && { | ||
30529 | test -z "$ac_c_werror_flag" || | ||
30530 | test ! -s conftest.err | ||
30531 | } && test -s conftest.$ac_objext; then | ||
30532 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
30533 | echo "${ECHO_T}yes" >&6; } | ||
30534 | else | ||
30535 | echo "$as_me: failed program was:" >&5 | ||
30536 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30537 | |||
30538 | { echo "$as_me:$LINENO: result: no" >&5 | ||
30539 | echo "${ECHO_T}no" >&6; } | ||
30540 | system_wtmp_path=no | ||
30541 | |||
30542 | fi | ||
30543 | |||
30544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30545 | if test -z "$conf_wtmp_location"; then | ||
30546 | if test x"$system_wtmp_path" = x"no" ; then | ||
30547 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
30548 | if test -f $f ; then | ||
30549 | conf_wtmp_location=$f | ||
30550 | fi | ||
30551 | done | ||
30552 | if test -z "$conf_wtmp_location"; then | ||
30553 | cat >>confdefs.h <<\_ACEOF | ||
30554 | #define DISABLE_WTMP 1 | ||
30555 | _ACEOF | ||
30556 | |||
30557 | fi | ||
30558 | fi | ||
30559 | fi | ||
30560 | if test -n "$conf_wtmp_location"; then | ||
30561 | |||
30562 | cat >>confdefs.h <<_ACEOF | ||
30563 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
30564 | _ACEOF | ||
30565 | |||
30566 | fi | ||
30567 | |||
30568 | |||
30569 | { echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5 | ||
30570 | echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; } | ||
30571 | cat >conftest.$ac_ext <<_ACEOF | ||
30572 | /* confdefs.h. */ | ||
30573 | _ACEOF | ||
30574 | cat confdefs.h >>conftest.$ac_ext | ||
30575 | cat >>conftest.$ac_ext <<_ACEOF | ||
30576 | /* end confdefs.h. */ | ||
30577 | |||
30578 | #include <sys/types.h> | ||
30579 | #include <utmp.h> | ||
30580 | #ifdef HAVE_UTMPX_H | ||
30581 | #include <utmpx.h> | ||
30582 | #endif | ||
30583 | #ifdef HAVE_PATHS_H | ||
30584 | # include <paths.h> | ||
30585 | #endif | ||
30586 | |||
30587 | int | ||
30588 | main () | ||
30589 | { | ||
30590 | char *wtmpx = WTMPX_FILE; | ||
30591 | ; | ||
30592 | return 0; | ||
30593 | } | ||
30594 | _ACEOF | ||
30595 | rm -f conftest.$ac_objext | ||
30596 | if { (ac_try="$ac_compile" | ||
30597 | case "(($ac_try" in | ||
30598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30599 | *) ac_try_echo=$ac_try;; | ||
30600 | esac | ||
30601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30602 | (eval "$ac_compile") 2>conftest.er1 | ||
30603 | ac_status=$? | ||
30604 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30605 | rm -f conftest.er1 | ||
30606 | cat conftest.err >&5 | ||
30607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30608 | (exit $ac_status); } && { | ||
30609 | test -z "$ac_c_werror_flag" || | ||
30610 | test ! -s conftest.err | ||
30611 | } && test -s conftest.$ac_objext; then | ||
30612 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
30613 | echo "${ECHO_T}yes" >&6; } | ||
30614 | else | ||
30615 | echo "$as_me: failed program was:" >&5 | ||
30616 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30617 | |||
30618 | { echo "$as_me:$LINENO: result: no" >&5 | ||
30619 | echo "${ECHO_T}no" >&6; } | ||
30620 | system_wtmpx_path=no | ||
30621 | |||
30622 | fi | ||
30623 | |||
30624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30625 | if test -z "$conf_wtmpx_location"; then | ||
30626 | if test x"$system_wtmpx_path" = x"no" ; then | ||
30627 | cat >>confdefs.h <<\_ACEOF | ||
30628 | #define DISABLE_WTMPX 1 | ||
30629 | _ACEOF | ||
30630 | |||
30631 | fi | ||
30632 | else | ||
30633 | |||
30634 | cat >>confdefs.h <<_ACEOF | ||
30635 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
30636 | _ACEOF | ||
30637 | |||
30638 | fi | ||
30639 | |||
30640 | |||
30641 | if test ! -z "$blibpath" ; then | ||
30642 | LDFLAGS="$LDFLAGS $blibflags$blibpath" | ||
30643 | { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 | ||
30644 | echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} | ||
30645 | fi | ||
30646 | |||
30647 | CFLAGS="$CFLAGS $werror_flags" | ||
30648 | |||
30649 | if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then | ||
30650 | TEST_SSH_IPV6=no | ||
30651 | else | ||
30652 | TEST_SSH_IPV6=yes | ||
30653 | fi | ||
30654 | { echo "$as_me:$LINENO: checking whether BROKEN_GETADDRINFO is declared" >&5 | ||
30655 | echo $ECHO_N "checking whether BROKEN_GETADDRINFO is declared... $ECHO_C" >&6; } | ||
30656 | if test "${ac_cv_have_decl_BROKEN_GETADDRINFO+set}" = set; then | ||
30657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
30658 | else | ||
30659 | cat >conftest.$ac_ext <<_ACEOF | ||
30660 | /* confdefs.h. */ | ||
30661 | _ACEOF | ||
30662 | cat confdefs.h >>conftest.$ac_ext | ||
30663 | cat >>conftest.$ac_ext <<_ACEOF | ||
30664 | /* end confdefs.h. */ | ||
30665 | $ac_includes_default | ||
30666 | int | ||
30667 | main () | ||
30668 | { | ||
30669 | #ifndef BROKEN_GETADDRINFO | ||
30670 | (void) BROKEN_GETADDRINFO; | ||
30671 | #endif | ||
30672 | |||
30673 | ; | ||
30674 | return 0; | ||
30675 | } | ||
30676 | _ACEOF | ||
30677 | rm -f conftest.$ac_objext | ||
30678 | if { (ac_try="$ac_compile" | ||
30679 | case "(($ac_try" in | ||
30680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30681 | *) ac_try_echo=$ac_try;; | ||
30682 | esac | ||
30683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
30684 | (eval "$ac_compile") 2>conftest.er1 | ||
30685 | ac_status=$? | ||
30686 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30687 | rm -f conftest.er1 | ||
30688 | cat conftest.err >&5 | ||
30689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30690 | (exit $ac_status); } && { | ||
30691 | test -z "$ac_c_werror_flag" || | ||
30692 | test ! -s conftest.err | ||
30693 | } && test -s conftest.$ac_objext; then | ||
30694 | ac_cv_have_decl_BROKEN_GETADDRINFO=yes | ||
30695 | else | ||
30696 | echo "$as_me: failed program was:" >&5 | ||
30697 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30698 | |||
30699 | ac_cv_have_decl_BROKEN_GETADDRINFO=no | ||
30700 | fi | ||
30701 | |||
30702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30703 | fi | ||
30704 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_BROKEN_GETADDRINFO" >&5 | ||
30705 | echo "${ECHO_T}$ac_cv_have_decl_BROKEN_GETADDRINFO" >&6; } | ||
30706 | if test $ac_cv_have_decl_BROKEN_GETADDRINFO = yes; then | ||
30707 | TEST_SSH_IPV6=no | ||
30708 | fi | ||
30709 | |||
30710 | TEST_SSH_IPV6=$TEST_SSH_IPV6 | ||
30711 | |||
30712 | |||
30713 | |||
30714 | ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile ssh_prng_cmds survey.sh" | ||
30715 | |||
30716 | cat >confcache <<\_ACEOF | ||
30717 | # This file is a shell script that caches the results of configure | ||
30718 | # tests run on this system so they can be shared between configure | ||
30719 | # scripts and configure runs, see configure's option --config-cache. | ||
30720 | # It is not useful on other systems. If it contains results you don't | ||
30721 | # want to keep, you may remove or edit it. | ||
30722 | # | ||
30723 | # config.status only pays attention to the cache file if you give it | ||
30724 | # the --recheck option to rerun configure. | ||
30725 | # | ||
30726 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
30727 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
30728 | # following values. | ||
30729 | |||
30730 | _ACEOF | ||
30731 | |||
30732 | # The following way of writing the cache mishandles newlines in values, | ||
30733 | # but we know of no workaround that is simple, portable, and efficient. | ||
30734 | # So, we kill variables containing newlines. | ||
30735 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
30736 | # and sets the high bit in the cache file unless we assign to the vars. | ||
30737 | ( | ||
30738 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
30739 | eval ac_val=\$$ac_var | ||
30740 | case $ac_val in #( | ||
30741 | *${as_nl}*) | ||
30742 | case $ac_var in #( | ||
30743 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
30744 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
30745 | esac | ||
30746 | case $ac_var in #( | ||
30747 | _ | IFS | as_nl) ;; #( | ||
30748 | *) $as_unset $ac_var ;; | ||
30749 | esac ;; | ||
30750 | esac | ||
30751 | done | ||
30752 | |||
30753 | (set) 2>&1 | | ||
30754 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
30755 | *${as_nl}ac_space=\ *) | ||
30756 | # `set' does not quote correctly, so add quotes (double-quote | ||
30757 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
30758 | sed -n \ | ||
30759 | "s/'/'\\\\''/g; | ||
30760 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
30761 | ;; #( | ||
30762 | *) | ||
30763 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
30764 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
30765 | ;; | ||
30766 | esac | | ||
30767 | sort | ||
30768 | ) | | ||
30769 | sed ' | ||
30770 | /^ac_cv_env_/b end | ||
30771 | t clear | ||
30772 | :clear | ||
30773 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
30774 | t end | ||
30775 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
30776 | :end' >>confcache | ||
30777 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
30778 | if test -w "$cache_file"; then | ||
30779 | test "x$cache_file" != "x/dev/null" && | ||
30780 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | ||
30781 | echo "$as_me: updating cache $cache_file" >&6;} | ||
30782 | cat confcache >$cache_file | ||
30783 | else | ||
30784 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | ||
30785 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
30786 | fi | ||
30787 | fi | ||
30788 | rm -f confcache | ||
30789 | |||
30790 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
30791 | # Let make expand exec_prefix. | ||
30792 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
30793 | |||
30794 | DEFS=-DHAVE_CONFIG_H | ||
30795 | |||
30796 | ac_libobjs= | ||
30797 | ac_ltlibobjs= | ||
30798 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
30799 | # 1. Remove the extension, and $U if already installed. | ||
30800 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
30801 | ac_i=`echo "$ac_i" | sed "$ac_script"` | ||
30802 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
30803 | # will be set to the directory where LIBOBJS objects are built. | ||
30804 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
30805 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | ||
30806 | done | ||
30807 | LIBOBJS=$ac_libobjs | ||
30808 | |||
30809 | LTLIBOBJS=$ac_ltlibobjs | ||
30810 | |||
30811 | |||
30812 | |||
30813 | : ${CONFIG_STATUS=./config.status} | ||
30814 | ac_clean_files_save=$ac_clean_files | ||
30815 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
30816 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | ||
30817 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
30818 | cat >$CONFIG_STATUS <<_ACEOF | ||
30819 | #! $SHELL | ||
30820 | # Generated by $as_me. | ||
30821 | # Run this file to recreate the current configuration. | ||
30822 | # Compiler output produced by configure, useful for debugging | ||
30823 | # configure, is in config.log if it exists. | ||
30824 | |||
30825 | debug=false | ||
30826 | ac_cs_recheck=false | ||
30827 | ac_cs_silent=false | ||
30828 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
30829 | _ACEOF | ||
30830 | |||
30831 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
30832 | ## --------------------- ## | ||
30833 | ## M4sh Initialization. ## | ||
30834 | ## --------------------- ## | ||
30835 | |||
30836 | # Be more Bourne compatible | ||
30837 | DUALCASE=1; export DUALCASE # for MKS sh | ||
30838 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
30839 | emulate sh | ||
30840 | NULLCMD=: | ||
30841 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
30842 | # is contrary to our usage. Disable this feature. | ||
30843 | alias -g '${1+"$@"}'='"$@"' | ||
30844 | setopt NO_GLOB_SUBST | ||
30845 | else | ||
30846 | case `(set -o) 2>/dev/null` in | ||
30847 | *posix*) set -o posix ;; | ||
30848 | esac | ||
30849 | |||
30850 | fi | ||
30851 | |||
30852 | |||
30853 | |||
30854 | |||
30855 | # PATH needs CR | ||
30856 | # Avoid depending upon Character Ranges. | ||
30857 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
30858 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
30859 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
30860 | as_cr_digits='0123456789' | ||
30861 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
30862 | |||
30863 | # The user is always right. | ||
30864 | if test "${PATH_SEPARATOR+set}" != set; then | ||
30865 | echo "#! /bin/sh" >conf$$.sh | ||
30866 | echo "exit 0" >>conf$$.sh | ||
30867 | chmod +x conf$$.sh | ||
30868 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
30869 | PATH_SEPARATOR=';' | ||
30870 | else | ||
30871 | PATH_SEPARATOR=: | ||
30872 | fi | ||
30873 | rm -f conf$$.sh | ||
30874 | fi | ||
30875 | |||
30876 | # Support unset when possible. | ||
30877 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
30878 | as_unset=unset | ||
30879 | else | ||
30880 | as_unset=false | ||
30881 | fi | ||
30882 | |||
30883 | |||
30884 | # IFS | ||
30885 | # We need space, tab and new line, in precisely that order. Quoting is | ||
30886 | # there to prevent editors from complaining about space-tab. | ||
30887 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
30888 | # splitting by setting IFS to empty value.) | ||
30889 | as_nl=' | ||
30890 | ' | ||
30891 | IFS=" "" $as_nl" | ||
30892 | |||
30893 | # Find who we are. Look in the path if we contain no directory separator. | ||
30894 | case $0 in | ||
30895 | *[\\/]* ) as_myself=$0 ;; | ||
30896 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
30897 | for as_dir in $PATH | ||
30898 | do | ||
30899 | IFS=$as_save_IFS | ||
30900 | test -z "$as_dir" && as_dir=. | ||
30901 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
30902 | done | ||
30903 | IFS=$as_save_IFS | ||
30904 | |||
30905 | ;; | ||
30906 | esac | ||
30907 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
30908 | # in which case we are not to be found in the path. | ||
30909 | if test "x$as_myself" = x; then | ||
30910 | as_myself=$0 | ||
30911 | fi | ||
30912 | if test ! -f "$as_myself"; then | ||
30913 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
30914 | { (exit 1); exit 1; } | ||
30915 | fi | ||
30916 | |||
30917 | # Work around bugs in pre-3.0 UWIN ksh. | ||
30918 | for as_var in ENV MAIL MAILPATH | ||
30919 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
30920 | done | ||
30921 | PS1='$ ' | ||
30922 | PS2='> ' | ||
30923 | PS4='+ ' | ||
30924 | |||
30925 | # NLS nuisances. | ||
30926 | for as_var in \ | ||
30927 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
30928 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
30929 | LC_TELEPHONE LC_TIME | ||
30930 | do | ||
30931 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
30932 | eval $as_var=C; export $as_var | ||
30933 | else | ||
30934 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
30935 | fi | ||
30936 | done | ||
30937 | |||
30938 | # Required to use basename. | ||
30939 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
30940 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
30941 | as_expr=expr | ||
30942 | else | ||
30943 | as_expr=false | ||
30944 | fi | ||
30945 | |||
30946 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
30947 | as_basename=basename | ||
30948 | else | ||
30949 | as_basename=false | ||
30950 | fi | ||
30951 | |||
30952 | |||
30953 | # Name of the executable. | ||
30954 | as_me=`$as_basename -- "$0" || | ||
30955 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
30956 | X"$0" : 'X\(//\)$' \| \ | ||
30957 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
30958 | echo X/"$0" | | ||
30959 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
30960 | s//\1/ | ||
30961 | q | ||
30962 | } | ||
30963 | /^X\/\(\/\/\)$/{ | ||
30964 | s//\1/ | ||
30965 | q | ||
30966 | } | ||
30967 | /^X\/\(\/\).*/{ | ||
30968 | s//\1/ | ||
30969 | q | ||
30970 | } | ||
30971 | s/.*/./; q'` | ||
30972 | |||
30973 | # CDPATH. | ||
30974 | $as_unset CDPATH | ||
30975 | |||
30976 | |||
30977 | |||
30978 | as_lineno_1=$LINENO | ||
30979 | as_lineno_2=$LINENO | ||
30980 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
30981 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | ||
30982 | |||
30983 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
30984 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
30985 | # line-number line after each line using $LINENO; the second 'sed' | ||
30986 | # does the real work. The second script uses 'N' to pair each | ||
30987 | # line-number line with the line containing $LINENO, and appends | ||
30988 | # trailing '-' during substitution so that $LINENO is not a special | ||
30989 | # case at line end. | ||
30990 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
30991 | # scripts with optimization help from Paolo Bonzini. Blame Lee | ||
30992 | # E. McMahon (1931-1989) for sed's syntax. :-) | ||
30993 | sed -n ' | ||
30994 | p | ||
30995 | /[$]LINENO/= | ||
30996 | ' <$as_myself | | ||
30997 | sed ' | ||
30998 | s/[$]LINENO.*/&-/ | ||
30999 | t lineno | ||
31000 | b | ||
31001 | :lineno | ||
31002 | N | ||
31003 | :loop | ||
31004 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
31005 | t loop | ||
31006 | s/-\n.*// | ||
31007 | ' >$as_me.lineno && | ||
31008 | chmod +x "$as_me.lineno" || | ||
31009 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
31010 | { (exit 1); exit 1; }; } | ||
31011 | |||
31012 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
31013 | # (the dirname of $[0] is not the place where we might find the | ||
31014 | # original and so on. Autoconf is especially sensitive to this). | ||
31015 | . "./$as_me.lineno" | ||
31016 | # Exit status is that of the last command. | ||
31017 | exit | ||
31018 | } | ||
31019 | |||
31020 | |||
31021 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
31022 | as_dirname=dirname | ||
31023 | else | ||
31024 | as_dirname=false | ||
31025 | fi | ||
31026 | |||
31027 | ECHO_C= ECHO_N= ECHO_T= | ||
31028 | case `echo -n x` in | ||
31029 | -n*) | ||
31030 | case `echo 'x\c'` in | ||
31031 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
31032 | *) ECHO_C='\c';; | ||
31033 | esac;; | ||
31034 | *) | ||
31035 | ECHO_N='-n';; | ||
31036 | esac | ||
31037 | |||
31038 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
31039 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
31040 | as_expr=expr | ||
31041 | else | ||
31042 | as_expr=false | ||
31043 | fi | ||
31044 | |||
31045 | rm -f conf$$ conf$$.exe conf$$.file | ||
31046 | if test -d conf$$.dir; then | ||
31047 | rm -f conf$$.dir/conf$$.file | ||
31048 | else | ||
31049 | rm -f conf$$.dir | ||
31050 | mkdir conf$$.dir | ||
31051 | fi | ||
31052 | echo >conf$$.file | ||
31053 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
31054 | as_ln_s='ln -s' | ||
31055 | # ... but there are two gotchas: | ||
31056 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
31057 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
31058 | # In both cases, we have to default to `cp -p'. | ||
31059 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
31060 | as_ln_s='cp -p' | ||
31061 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
31062 | as_ln_s=ln | ||
31063 | else | ||
31064 | as_ln_s='cp -p' | ||
31065 | fi | ||
31066 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
31067 | rmdir conf$$.dir 2>/dev/null | ||
31068 | |||
31069 | if mkdir -p . 2>/dev/null; then | ||
31070 | as_mkdir_p=: | ||
31071 | else | ||
31072 | test -d ./-p && rmdir ./-p | ||
31073 | as_mkdir_p=false | ||
31074 | fi | ||
31075 | |||
31076 | if test -x / >/dev/null 2>&1; then | ||
31077 | as_test_x='test -x' | ||
31078 | else | ||
31079 | if ls -dL / >/dev/null 2>&1; then | ||
31080 | as_ls_L_option=L | ||
31081 | else | ||
31082 | as_ls_L_option= | ||
31083 | fi | ||
31084 | as_test_x=' | ||
31085 | eval sh -c '\'' | ||
31086 | if test -d "$1"; then | ||
31087 | test -d "$1/."; | ||
31088 | else | ||
31089 | case $1 in | ||
31090 | -*)set "./$1";; | ||
31091 | esac; | ||
31092 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | ||
31093 | ???[sx]*):;;*)false;;esac;fi | ||
31094 | '\'' sh | ||
31095 | ' | ||
31096 | fi | ||
31097 | as_executable_p=$as_test_x | ||
31098 | |||
31099 | # Sed expression to map a string onto a valid CPP name. | ||
31100 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
31101 | |||
31102 | # Sed expression to map a string onto a valid variable name. | ||
31103 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
31104 | |||
31105 | |||
31106 | exec 6>&1 | ||
31107 | |||
31108 | # Save the log message, to keep $[0] and so on meaningful, and to | ||
31109 | # report actual input values of CONFIG_FILES etc. instead of their | ||
31110 | # values after options handling. | ||
31111 | ac_log=" | ||
31112 | This file was extended by OpenSSH $as_me Portable, which was | ||
31113 | generated by GNU Autoconf 2.61. Invocation command line was | ||
31114 | |||
31115 | CONFIG_FILES = $CONFIG_FILES | ||
31116 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
31117 | CONFIG_LINKS = $CONFIG_LINKS | ||
31118 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
31119 | $ $0 $@ | ||
31120 | |||
31121 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
31122 | " | ||
31123 | |||
31124 | _ACEOF | ||
31125 | |||
31126 | cat >>$CONFIG_STATUS <<_ACEOF | ||
31127 | # Files that config.status was made for. | ||
31128 | config_files="$ac_config_files" | ||
31129 | config_headers="$ac_config_headers" | ||
31130 | |||
31131 | _ACEOF | ||
31132 | |||
31133 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
31134 | ac_cs_usage="\ | ||
31135 | \`$as_me' instantiates files from templates according to the | ||
31136 | current configuration. | ||
31137 | |||
31138 | Usage: $0 [OPTIONS] [FILE]... | ||
31139 | |||
31140 | -h, --help print this help, then exit | ||
31141 | -V, --version print version number and configuration settings, then exit | ||
31142 | -q, --quiet do not print progress messages | ||
31143 | -d, --debug don't remove temporary files | ||
31144 | --recheck update $as_me by reconfiguring in the same conditions | ||
31145 | --file=FILE[:TEMPLATE] | ||
31146 | instantiate the configuration file FILE | ||
31147 | --header=FILE[:TEMPLATE] | ||
31148 | instantiate the configuration header FILE | ||
31149 | |||
31150 | Configuration files: | ||
31151 | $config_files | ||
31152 | |||
31153 | Configuration headers: | ||
31154 | $config_headers | ||
31155 | |||
31156 | Report bugs to <bug-autoconf@gnu.org>." | ||
31157 | |||
31158 | _ACEOF | ||
31159 | cat >>$CONFIG_STATUS <<_ACEOF | ||
31160 | ac_cs_version="\\ | ||
31161 | OpenSSH config.status Portable | ||
31162 | configured by $0, generated by GNU Autoconf 2.61, | ||
31163 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | ||
31164 | |||
31165 | Copyright (C) 2006 Free Software Foundation, Inc. | ||
31166 | This config.status script is free software; the Free Software Foundation | ||
31167 | gives unlimited permission to copy, distribute and modify it." | ||
31168 | |||
31169 | ac_pwd='$ac_pwd' | ||
31170 | srcdir='$srcdir' | ||
31171 | INSTALL='$INSTALL' | ||
31172 | _ACEOF | ||
31173 | |||
31174 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
31175 | # If no file are specified by the user, then we need to provide default | ||
31176 | # value. By we need to know if files were specified by the user. | ||
31177 | ac_need_defaults=: | ||
31178 | while test $# != 0 | ||
31179 | do | ||
31180 | case $1 in | ||
31181 | --*=*) | ||
31182 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
31183 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
31184 | ac_shift=: | ||
31185 | ;; | ||
31186 | *) | ||
31187 | ac_option=$1 | ||
31188 | ac_optarg=$2 | ||
31189 | ac_shift=shift | ||
31190 | ;; | ||
31191 | esac | ||
31192 | |||
31193 | case $ac_option in | ||
31194 | # Handling of the options. | ||
31195 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
31196 | ac_cs_recheck=: ;; | ||
31197 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
31198 | echo "$ac_cs_version"; exit ;; | ||
31199 | --debug | --debu | --deb | --de | --d | -d ) | ||
31200 | debug=: ;; | ||
31201 | --file | --fil | --fi | --f ) | ||
31202 | $ac_shift | ||
31203 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | ||
31204 | ac_need_defaults=false;; | ||
31205 | --header | --heade | --head | --hea ) | ||
31206 | $ac_shift | ||
31207 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | ||
31208 | ac_need_defaults=false;; | ||
31209 | --he | --h) | ||
31210 | # Conflict between --help and --header | ||
31211 | { echo "$as_me: error: ambiguous option: $1 | ||
31212 | Try \`$0 --help' for more information." >&2 | ||
31213 | { (exit 1); exit 1; }; };; | ||
31214 | --help | --hel | -h ) | ||
31215 | echo "$ac_cs_usage"; exit ;; | ||
31216 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
31217 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
31218 | ac_cs_silent=: ;; | ||
31219 | |||
31220 | # This is an error. | ||
31221 | -*) { echo "$as_me: error: unrecognized option: $1 | ||
31222 | Try \`$0 --help' for more information." >&2 | ||
31223 | { (exit 1); exit 1; }; } ;; | ||
31224 | |||
31225 | *) ac_config_targets="$ac_config_targets $1" | ||
31226 | ac_need_defaults=false ;; | ||
31227 | |||
31228 | esac | ||
31229 | shift | ||
31230 | done | ||
31231 | |||
31232 | ac_configure_extra_args= | ||
31233 | |||
31234 | if $ac_cs_silent; then | ||
31235 | exec 6>/dev/null | ||
31236 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
31237 | fi | ||
31238 | |||
31239 | _ACEOF | ||
31240 | cat >>$CONFIG_STATUS <<_ACEOF | ||
31241 | if \$ac_cs_recheck; then | ||
31242 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | ||
31243 | CONFIG_SHELL=$SHELL | ||
31244 | export CONFIG_SHELL | ||
31245 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
31246 | fi | ||
31247 | |||
31248 | _ACEOF | ||
31249 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
31250 | exec 5>>config.log | ||
31251 | { | ||
31252 | echo | ||
31253 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
31254 | ## Running $as_me. ## | ||
31255 | _ASBOX | ||
31256 | echo "$ac_log" | ||
31257 | } >&5 | ||
31258 | |||
31259 | _ACEOF | ||
31260 | cat >>$CONFIG_STATUS <<_ACEOF | ||
31261 | _ACEOF | ||
31262 | |||
31263 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
31264 | |||
31265 | # Handling of arguments. | ||
31266 | for ac_config_target in $ac_config_targets | ||
31267 | do | ||
31268 | case $ac_config_target in | ||
31269 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
31270 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
31271 | "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; | ||
31272 | "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; | ||
31273 | "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;; | ||
31274 | "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
31275 | "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;; | ||
31276 | "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;; | ||
31277 | "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;; | ||
31278 | |||
31279 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | ||
31280 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
31281 | { (exit 1); exit 1; }; };; | ||
31282 | esac | ||
31283 | done | ||
31284 | |||
31285 | |||
31286 | # If the user did not use the arguments to specify the items to instantiate, | ||
31287 | # then the envvar interface is used. Set only those that are not. | ||
31288 | # We use the long form for the default assignment because of an extremely | ||
31289 | # bizarre bug on SunOS 4.1.3. | ||
31290 | if $ac_need_defaults; then | ||
31291 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
31292 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
31293 | fi | ||
31294 | |||
31295 | # Have a temporary directory for convenience. Make it in the build tree | ||
31296 | # simply because there is no reason against having it here, and in addition, | ||
31297 | # creating and moving files from /tmp can sometimes cause problems. | ||
31298 | # Hook for its removal unless debugging. | ||
31299 | # Note that there is a small window in which the directory will not be cleaned: | ||
31300 | # after its creation but before its name has been assigned to `$tmp'. | ||
31301 | $debug || | ||
31302 | { | ||
31303 | tmp= | ||
31304 | trap 'exit_status=$? | ||
31305 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | ||
31306 | ' 0 | ||
31307 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
31308 | } | ||
31309 | # Create a (secure) tmp directory for tmp files. | ||
31310 | |||
31311 | { | ||
31312 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
31313 | test -n "$tmp" && test -d "$tmp" | ||
31314 | } || | ||
31315 | { | ||
31316 | tmp=./conf$$-$RANDOM | ||
31317 | (umask 077 && mkdir "$tmp") | ||
31318 | } || | ||
31319 | { | ||
31320 | echo "$me: cannot create a temporary directory in ." >&2 | ||
31321 | { (exit 1); exit 1; } | ||
31322 | } | ||
31323 | |||
31324 | # | ||
31325 | # Set up the sed scripts for CONFIG_FILES section. | ||
31326 | # | ||
31327 | |||
31328 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
31329 | # This happens for instance when ./config.status config.h | ||
31330 | if test -n "$CONFIG_FILES"; then | ||
31331 | |||
31332 | _ACEOF | ||
31333 | |||
31334 | |||
31335 | |||
31336 | ac_delim='%!_!# ' | ||
31337 | for ac_last_try in false false false false false :; do | ||
31338 | cat >conf$$subs.sed <<_ACEOF | ||
31339 | SHELL!$SHELL$ac_delim | ||
31340 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | ||
31341 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | ||
31342 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | ||
31343 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | ||
31344 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | ||
31345 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | ||
31346 | exec_prefix!$exec_prefix$ac_delim | ||
31347 | prefix!$prefix$ac_delim | ||
31348 | program_transform_name!$program_transform_name$ac_delim | ||
31349 | bindir!$bindir$ac_delim | ||
31350 | sbindir!$sbindir$ac_delim | ||
31351 | libexecdir!$libexecdir$ac_delim | ||
31352 | datarootdir!$datarootdir$ac_delim | ||
31353 | datadir!$datadir$ac_delim | ||
31354 | sysconfdir!$sysconfdir$ac_delim | ||
31355 | sharedstatedir!$sharedstatedir$ac_delim | ||
31356 | localstatedir!$localstatedir$ac_delim | ||
31357 | includedir!$includedir$ac_delim | ||
31358 | oldincludedir!$oldincludedir$ac_delim | ||
31359 | docdir!$docdir$ac_delim | ||
31360 | infodir!$infodir$ac_delim | ||
31361 | htmldir!$htmldir$ac_delim | ||
31362 | dvidir!$dvidir$ac_delim | ||
31363 | pdfdir!$pdfdir$ac_delim | ||
31364 | psdir!$psdir$ac_delim | ||
31365 | libdir!$libdir$ac_delim | ||
31366 | localedir!$localedir$ac_delim | ||
31367 | mandir!$mandir$ac_delim | ||
31368 | DEFS!$DEFS$ac_delim | ||
31369 | ECHO_C!$ECHO_C$ac_delim | ||
31370 | ECHO_N!$ECHO_N$ac_delim | ||
31371 | ECHO_T!$ECHO_T$ac_delim | ||
31372 | LIBS!$LIBS$ac_delim | ||
31373 | build_alias!$build_alias$ac_delim | ||
31374 | host_alias!$host_alias$ac_delim | ||
31375 | target_alias!$target_alias$ac_delim | ||
31376 | CC!$CC$ac_delim | ||
31377 | CFLAGS!$CFLAGS$ac_delim | ||
31378 | LDFLAGS!$LDFLAGS$ac_delim | ||
31379 | CPPFLAGS!$CPPFLAGS$ac_delim | ||
31380 | ac_ct_CC!$ac_ct_CC$ac_delim | ||
31381 | EXEEXT!$EXEEXT$ac_delim | ||
31382 | OBJEXT!$OBJEXT$ac_delim | ||
31383 | build!$build$ac_delim | ||
31384 | build_cpu!$build_cpu$ac_delim | ||
31385 | build_vendor!$build_vendor$ac_delim | ||
31386 | build_os!$build_os$ac_delim | ||
31387 | host!$host$ac_delim | ||
31388 | host_cpu!$host_cpu$ac_delim | ||
31389 | host_vendor!$host_vendor$ac_delim | ||
31390 | host_os!$host_os$ac_delim | ||
31391 | CPP!$CPP$ac_delim | ||
31392 | GREP!$GREP$ac_delim | ||
31393 | EGREP!$EGREP$ac_delim | ||
31394 | AWK!$AWK$ac_delim | ||
31395 | RANLIB!$RANLIB$ac_delim | ||
31396 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | ||
31397 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | ||
31398 | INSTALL_DATA!$INSTALL_DATA$ac_delim | ||
31399 | AR!$AR$ac_delim | ||
31400 | CAT!$CAT$ac_delim | ||
31401 | KILL!$KILL$ac_delim | ||
31402 | PERL!$PERL$ac_delim | ||
31403 | SED!$SED$ac_delim | ||
31404 | ENT!$ENT$ac_delim | ||
31405 | TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim | ||
31406 | SH!$SH$ac_delim | ||
31407 | GROFF!$GROFF$ac_delim | ||
31408 | NROFF!$NROFF$ac_delim | ||
31409 | MANDOC!$MANDOC$ac_delim | ||
31410 | TEST_SHELL!$TEST_SHELL$ac_delim | ||
31411 | MANFMT!$MANFMT$ac_delim | ||
31412 | PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim | ||
31413 | PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim | ||
31414 | MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim | ||
31415 | STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim | ||
31416 | LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim | ||
31417 | PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim | ||
31418 | LD!$LD$ac_delim | ||
31419 | SSHDLIBS!$SSHDLIBS$ac_delim | ||
31420 | PKGCONFIG!$PKGCONFIG$ac_delim | ||
31421 | LIBEDIT!$LIBEDIT$ac_delim | ||
31422 | TEST_SSH_SHA256!$TEST_SSH_SHA256$ac_delim | ||
31423 | TEST_SSH_ECC!$TEST_SSH_ECC$ac_delim | ||
31424 | COMMENT_OUT_ECC!$COMMENT_OUT_ECC$ac_delim | ||
31425 | INSTALL_SSH_RAND_HELPER!$INSTALL_SSH_RAND_HELPER$ac_delim | ||
31426 | SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim | ||
31427 | PROG_LS!$PROG_LS$ac_delim | ||
31428 | PROG_NETSTAT!$PROG_NETSTAT$ac_delim | ||
31429 | PROG_ARP!$PROG_ARP$ac_delim | ||
31430 | PROG_IFCONFIG!$PROG_IFCONFIG$ac_delim | ||
31431 | PROG_JSTAT!$PROG_JSTAT$ac_delim | ||
31432 | PROG_PS!$PROG_PS$ac_delim | ||
31433 | PROG_SAR!$PROG_SAR$ac_delim | ||
31434 | PROG_W!$PROG_W$ac_delim | ||
31435 | PROG_WHO!$PROG_WHO$ac_delim | ||
31436 | _ACEOF | ||
31437 | |||
31438 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | ||
31439 | break | ||
31440 | elif $ac_last_try; then | ||
31441 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
31442 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
31443 | { (exit 1); exit 1; }; } | ||
31444 | else | ||
31445 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
31446 | fi | ||
31447 | done | ||
31448 | |||
31449 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
31450 | if test -n "$ac_eof"; then | ||
31451 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
31452 | ac_eof=`expr $ac_eof + 1` | ||
31453 | fi | ||
31454 | |||
31455 | cat >>$CONFIG_STATUS <<_ACEOF | ||
31456 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | ||
31457 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
31458 | _ACEOF | ||
31459 | sed ' | ||
31460 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
31461 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
31462 | :n | ||
31463 | t n | ||
31464 | s/'"$ac_delim"'$/,g/; t | ||
31465 | s/$/\\/; p | ||
31466 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
31467 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
31468 | rm -f conf$$subs.sed | ||
31469 | cat >>$CONFIG_STATUS <<_ACEOF | ||
31470 | CEOF$ac_eof | ||
31471 | _ACEOF | ||
31472 | |||
31473 | |||
31474 | ac_delim='%!_!# ' | ||
31475 | for ac_last_try in false false false false false :; do | ||
31476 | cat >conf$$subs.sed <<_ACEOF | ||
31477 | PROG_LAST!$PROG_LAST$ac_delim | ||
31478 | PROG_LASTLOG!$PROG_LASTLOG$ac_delim | ||
31479 | PROG_DF!$PROG_DF$ac_delim | ||
31480 | PROG_VMSTAT!$PROG_VMSTAT$ac_delim | ||
31481 | PROG_UPTIME!$PROG_UPTIME$ac_delim | ||
31482 | PROG_IPCS!$PROG_IPCS$ac_delim | ||
31483 | PROG_TAIL!$PROG_TAIL$ac_delim | ||
31484 | INSTALL_SSH_PRNG_CMDS!$INSTALL_SSH_PRNG_CMDS$ac_delim | ||
31485 | KRB5CONF!$KRB5CONF$ac_delim | ||
31486 | PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim | ||
31487 | xauth_path!$xauth_path$ac_delim | ||
31488 | STRIP_OPT!$STRIP_OPT$ac_delim | ||
31489 | XAUTH_PATH!$XAUTH_PATH$ac_delim | ||
31490 | MANTYPE!$MANTYPE$ac_delim | ||
31491 | mansubdir!$mansubdir$ac_delim | ||
31492 | user_path!$user_path$ac_delim | ||
31493 | piddir!$piddir$ac_delim | ||
31494 | TEST_SSH_IPV6!$TEST_SSH_IPV6$ac_delim | ||
31495 | LIBOBJS!$LIBOBJS$ac_delim | ||
31496 | LTLIBOBJS!$LTLIBOBJS$ac_delim | ||
31497 | _ACEOF | ||
31498 | |||
31499 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 20; then | ||
31500 | break | ||
31501 | elif $ac_last_try; then | ||
31502 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
31503 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
31504 | { (exit 1); exit 1; }; } | ||
31505 | else | ||
31506 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
31507 | fi | ||
31508 | done | ||
31509 | |||
31510 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
31511 | if test -n "$ac_eof"; then | ||
31512 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
31513 | ac_eof=`expr $ac_eof + 1` | ||
31514 | fi | ||
31515 | |||
31516 | cat >>$CONFIG_STATUS <<_ACEOF | ||
31517 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | ||
31518 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | ||
31519 | _ACEOF | ||
31520 | sed ' | ||
31521 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
31522 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
31523 | :n | ||
31524 | t n | ||
31525 | s/'"$ac_delim"'$/,g/; t | ||
31526 | s/$/\\/; p | ||
31527 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
31528 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
31529 | rm -f conf$$subs.sed | ||
31530 | cat >>$CONFIG_STATUS <<_ACEOF | ||
31531 | :end | ||
31532 | s/|#_!!_#|//g | ||
31533 | CEOF$ac_eof | ||
31534 | _ACEOF | ||
31535 | |||
31536 | |||
31537 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
31538 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
31539 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
31540 | # (actually we leave an empty line to preserve line numbers). | ||
31541 | if test "x$srcdir" = x.; then | ||
31542 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
31543 | s/:*\$(srcdir):*/:/ | ||
31544 | s/:*\${srcdir}:*/:/ | ||
31545 | s/:*@srcdir@:*/:/ | ||
31546 | s/^\([^=]*=[ ]*\):*/\1/ | ||
31547 | s/:*$// | ||
31548 | s/^[^=]*=[ ]*$// | ||
31549 | }' | ||
31550 | fi | ||
31551 | |||
31552 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
31553 | fi # test -n "$CONFIG_FILES" | ||
31554 | |||
31555 | |||
31556 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS | ||
31557 | do | ||
31558 | case $ac_tag in | ||
31559 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
31560 | esac | ||
31561 | case $ac_mode$ac_tag in | ||
31562 | :[FHL]*:*);; | ||
31563 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | ||
31564 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | ||
31565 | { (exit 1); exit 1; }; };; | ||
31566 | :[FH]-) ac_tag=-:-;; | ||
31567 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
31568 | esac | ||
31569 | ac_save_IFS=$IFS | ||
31570 | IFS=: | ||
31571 | set x $ac_tag | ||
31572 | IFS=$ac_save_IFS | ||
31573 | shift | ||
31574 | ac_file=$1 | ||
31575 | shift | ||
31576 | |||
31577 | case $ac_mode in | ||
31578 | :L) ac_source=$1;; | ||
31579 | :[FH]) | ||
31580 | ac_file_inputs= | ||
31581 | for ac_f | ||
31582 | do | ||
31583 | case $ac_f in | ||
31584 | -) ac_f="$tmp/stdin";; | ||
31585 | *) # Look for the file first in the build tree, then in the source tree | ||
31586 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
31587 | # because $ac_f cannot contain `:'. | ||
31588 | test -f "$ac_f" || | ||
31589 | case $ac_f in | ||
31590 | [\\/$]*) false;; | ||
31591 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
31592 | esac || | ||
31593 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | ||
31594 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | ||
31595 | { (exit 1); exit 1; }; };; | ||
31596 | esac | ||
31597 | ac_file_inputs="$ac_file_inputs $ac_f" | ||
31598 | done | ||
31599 | |||
31600 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
31601 | # use $as_me), people would be surprised to read: | ||
31602 | # /* config.h. Generated by config.status. */ | ||
31603 | configure_input="Generated from "`IFS=: | ||
31604 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | ||
31605 | if test x"$ac_file" != x-; then | ||
31606 | configure_input="$ac_file. $configure_input" | ||
31607 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
31608 | echo "$as_me: creating $ac_file" >&6;} | ||
31609 | fi | ||
31610 | |||
31611 | case $ac_tag in | ||
31612 | *:-:* | *:-) cat >"$tmp/stdin";; | ||
31613 | esac | ||
31614 | ;; | ||
31615 | esac | ||
31616 | |||
31617 | ac_dir=`$as_dirname -- "$ac_file" || | ||
31618 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
31619 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
31620 | X"$ac_file" : 'X\(//\)$' \| \ | ||
31621 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
31622 | echo X"$ac_file" | | ||
31623 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
31624 | s//\1/ | ||
31625 | q | ||
31626 | } | ||
31627 | /^X\(\/\/\)[^/].*/{ | ||
31628 | s//\1/ | ||
31629 | q | ||
31630 | } | ||
31631 | /^X\(\/\/\)$/{ | ||
31632 | s//\1/ | ||
31633 | q | ||
31634 | } | ||
31635 | /^X\(\/\).*/{ | ||
31636 | s//\1/ | ||
31637 | q | ||
31638 | } | ||
31639 | s/.*/./; q'` | ||
31640 | { as_dir="$ac_dir" | ||
31641 | case $as_dir in #( | ||
31642 | -*) as_dir=./$as_dir;; | ||
31643 | esac | ||
31644 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | ||
31645 | as_dirs= | ||
31646 | while :; do | ||
31647 | case $as_dir in #( | ||
31648 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | ||
31649 | *) as_qdir=$as_dir;; | ||
31650 | esac | ||
31651 | as_dirs="'$as_qdir' $as_dirs" | ||
31652 | as_dir=`$as_dirname -- "$as_dir" || | ||
31653 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
31654 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
31655 | X"$as_dir" : 'X\(//\)$' \| \ | ||
31656 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
31657 | echo X"$as_dir" | | ||
31658 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
31659 | s//\1/ | ||
31660 | q | ||
31661 | } | ||
31662 | /^X\(\/\/\)[^/].*/{ | ||
31663 | s//\1/ | ||
31664 | q | ||
31665 | } | ||
31666 | /^X\(\/\/\)$/{ | ||
31667 | s//\1/ | ||
31668 | q | ||
31669 | } | ||
31670 | /^X\(\/\).*/{ | ||
31671 | s//\1/ | ||
31672 | q | ||
31673 | } | ||
31674 | s/.*/./; q'` | ||
31675 | test -d "$as_dir" && break | ||
31676 | done | ||
31677 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
31678 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | ||
31679 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | ||
31680 | { (exit 1); exit 1; }; }; } | ||
31681 | ac_builddir=. | ||
31682 | |||
31683 | case "$ac_dir" in | ||
31684 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
31685 | *) | ||
31686 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
31687 | # A ".." for each directory in $ac_dir_suffix. | ||
31688 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
31689 | case $ac_top_builddir_sub in | ||
31690 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
31691 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
31692 | esac ;; | ||
31693 | esac | ||
31694 | ac_abs_top_builddir=$ac_pwd | ||
31695 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
31696 | # for backward compatibility: | ||
31697 | ac_top_builddir=$ac_top_build_prefix | ||
31698 | |||
31699 | case $srcdir in | ||
31700 | .) # We are building in place. | ||
31701 | ac_srcdir=. | ||
31702 | ac_top_srcdir=$ac_top_builddir_sub | ||
31703 | ac_abs_top_srcdir=$ac_pwd ;; | ||
31704 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
31705 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
31706 | ac_top_srcdir=$srcdir | ||
31707 | ac_abs_top_srcdir=$srcdir ;; | ||
31708 | *) # Relative name. | ||
31709 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
31710 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
31711 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
31712 | esac | ||
31713 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
31714 | |||
31715 | |||
31716 | case $ac_mode in | ||
31717 | :F) | ||
31718 | # | ||
31719 | # CONFIG_FILE | ||
31720 | # | ||
31721 | |||
31722 | case $INSTALL in | ||
31723 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
31724 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
31725 | esac | ||
31726 | _ACEOF | ||
31727 | |||
31728 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
31729 | # If the template does not know about datarootdir, expand it. | ||
31730 | # FIXME: This hack should be removed a few years after 2.60. | ||
31731 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
31732 | |||
31733 | case `sed -n '/datarootdir/ { | ||
31734 | p | ||
31735 | q | ||
31736 | } | ||
31737 | /@datadir@/p | ||
31738 | /@docdir@/p | ||
31739 | /@infodir@/p | ||
31740 | /@localedir@/p | ||
31741 | /@mandir@/p | ||
31742 | ' $ac_file_inputs` in | ||
31743 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
31744 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
31745 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
31746 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
31747 | _ACEOF | ||
31748 | cat >>$CONFIG_STATUS <<_ACEOF | ||
31749 | ac_datarootdir_hack=' | ||
31750 | s&@datadir@&$datadir&g | ||
31751 | s&@docdir@&$docdir&g | ||
31752 | s&@infodir@&$infodir&g | ||
31753 | s&@localedir@&$localedir&g | ||
31754 | s&@mandir@&$mandir&g | ||
31755 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
31756 | esac | ||
31757 | _ACEOF | ||
31758 | |||
31759 | # Neutralize VPATH when `$srcdir' = `.'. | ||
31760 | # Shell code in configure.ac might set extrasub. | ||
31761 | # FIXME: do we really want to maintain this feature? | ||
31762 | cat >>$CONFIG_STATUS <<_ACEOF | ||
31763 | sed "$ac_vpsub | ||
31764 | $extrasub | ||
31765 | _ACEOF | ||
31766 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
31767 | :t | ||
31768 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
31769 | s&@configure_input@&$configure_input&;t t | ||
31770 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
31771 | s&@srcdir@&$ac_srcdir&;t t | ||
31772 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
31773 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
31774 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
31775 | s&@builddir@&$ac_builddir&;t t | ||
31776 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
31777 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
31778 | s&@INSTALL@&$ac_INSTALL&;t t | ||
31779 | $ac_datarootdir_hack | ||
31780 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | ||
31781 | |||
31782 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
31783 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | ||
31784 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | ||
31785 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
31786 | which seems to be undefined. Please make sure it is defined." >&5 | ||
31787 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
31788 | which seems to be undefined. Please make sure it is defined." >&2;} | ||
31789 | |||
31790 | rm -f "$tmp/stdin" | ||
31791 | case $ac_file in | ||
31792 | -) cat "$tmp/out"; rm -f "$tmp/out";; | ||
31793 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | ||
31794 | esac | ||
31795 | ;; | ||
31796 | :H) | ||
31797 | # | ||
31798 | # CONFIG_HEADER | ||
31799 | # | ||
31800 | _ACEOF | ||
31801 | |||
31802 | # Transform confdefs.h into a sed script `conftest.defines', that | ||
31803 | # substitutes the proper values into config.h.in to produce config.h. | ||
31804 | rm -f conftest.defines conftest.tail | ||
31805 | # First, append a space to every undef/define line, to ease matching. | ||
31806 | echo 's/$/ /' >conftest.defines | ||
31807 | # Then, protect against being on the right side of a sed subst, or in | ||
31808 | # an unquoted here document, in config.status. If some macros were | ||
31809 | # called several times there might be several #defines for the same | ||
31810 | # symbol, which is useless. But do not sort them, since the last | ||
31811 | # AC_DEFINE must be honored. | ||
31812 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
31813 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | ||
31814 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | ||
31815 | # PARAMS is the parameter list in the macro definition--in most cases, it's | ||
31816 | # just an empty string. | ||
31817 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | ||
31818 | ac_dB='\\)[ (].*,\\1define\\2' | ||
31819 | ac_dC=' ' | ||
31820 | ac_dD=' ,' | ||
31821 | |||
31822 | uniq confdefs.h | | ||
31823 | sed -n ' | ||
31824 | t rset | ||
31825 | :rset | ||
31826 | s/^[ ]*#[ ]*define[ ][ ]*// | ||
31827 | t ok | ||
31828 | d | ||
31829 | :ok | ||
31830 | s/[\\&,]/\\&/g | ||
31831 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | ||
31832 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | ||
31833 | ' >>conftest.defines | ||
31834 | |||
31835 | # Remove the space that was appended to ease matching. | ||
31836 | # Then replace #undef with comments. This is necessary, for | ||
31837 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
31838 | # on some systems where configure will not decide to define it. | ||
31839 | # (The regexp can be short, since the line contains either #define or #undef.) | ||
31840 | echo 's/ $// | ||
31841 | s,^[ #]*u.*,/* & */,' >>conftest.defines | ||
31842 | |||
31843 | # Break up conftest.defines: | ||
31844 | ac_max_sed_lines=50 | ||
31845 | |||
31846 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | ||
31847 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | ||
31848 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | ||
31849 | # et cetera. | ||
31850 | ac_in='$ac_file_inputs' | ||
31851 | ac_out='"$tmp/out1"' | ||
31852 | ac_nxt='"$tmp/out2"' | ||
31853 | |||
31854 | while : | ||
31855 | do | ||
31856 | # Write a here document: | ||
31857 | cat >>$CONFIG_STATUS <<_ACEOF | ||
31858 | # First, check the format of the line: | ||
31859 | cat >"\$tmp/defines.sed" <<\\CEOF | ||
31860 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | ||
31861 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | ||
31862 | b | ||
31863 | :def | ||
31864 | _ACEOF | ||
31865 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | ||
31866 | echo 'CEOF | ||
31867 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | ||
31868 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | ||
31869 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | ||
31870 | grep . conftest.tail >/dev/null || break | ||
31871 | rm -f conftest.defines | ||
31872 | mv conftest.tail conftest.defines | ||
31873 | done | ||
31874 | rm -f conftest.defines conftest.tail | ||
31875 | |||
31876 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | ||
31877 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
31878 | if test x"$ac_file" != x-; then | ||
31879 | echo "/* $configure_input */" >"$tmp/config.h" | ||
31880 | cat "$ac_result" >>"$tmp/config.h" | ||
31881 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | ||
31882 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | ||
31883 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
31884 | else | ||
31885 | rm -f $ac_file | ||
31886 | mv "$tmp/config.h" $ac_file | ||
31887 | fi | ||
31888 | else | ||
31889 | echo "/* $configure_input */" | ||
31890 | cat "$ac_result" | ||
31891 | fi | ||
31892 | rm -f "$tmp/out12" | ||
31893 | ;; | ||
31894 | |||
31895 | |||
31896 | esac | ||
31897 | |||
31898 | done # for ac_tag | ||
31899 | |||
31900 | |||
31901 | { (exit 0); exit 0; } | ||
31902 | _ACEOF | ||
31903 | chmod +x $CONFIG_STATUS | ||
31904 | ac_clean_files=$ac_clean_files_save | ||
31905 | |||
31906 | |||
31907 | # configure is writing to config.log, and then calls config.status. | ||
31908 | # config.status does its own redirection, appending to config.log. | ||
31909 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
31910 | # by configure, so config.status won't be able to write to it; its | ||
31911 | # output is simply discarded. So we exec the FD to /dev/null, | ||
31912 | # effectively closing config.log, so it can be properly (re)opened and | ||
31913 | # appended to by config.status. When coming back to configure, we | ||
31914 | # need to make the FD available again. | ||
31915 | if test "$no_create" != yes; then | ||
31916 | ac_cs_success=: | ||
31917 | ac_config_status_args= | ||
31918 | test "$silent" = yes && | ||
31919 | ac_config_status_args="$ac_config_status_args --quiet" | ||
31920 | exec 5>/dev/null | ||
31921 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
31922 | exec 5>>config.log | ||
31923 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
31924 | # would make configure fail if this is the last instruction. | ||
31925 | $ac_cs_success || { (exit 1); exit 1; } | ||
31926 | fi | ||
31927 | |||
31928 | |||
31929 | # Print summary of options | ||
31930 | |||
31931 | # Someone please show me a better way :) | ||
31932 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
31933 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
31934 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
31935 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
31936 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
31937 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
31938 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
31939 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
31940 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
31941 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
31942 | |||
31943 | echo "" | ||
31944 | echo "OpenSSH has been configured with the following options:" | ||
31945 | echo " User binaries: $B" | ||
31946 | echo " System binaries: $C" | ||
31947 | echo " Configuration files: $D" | ||
31948 | echo " Askpass program: $E" | ||
31949 | echo " Manual pages: $F" | ||
31950 | echo " PID file: $G" | ||
31951 | echo " Privilege separation chroot path: $H" | ||
31952 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
31953 | echo " At runtime, sshd will use the path defined in $external_path_file" | ||
31954 | echo " Make sure the path to scp is present, otherwise scp will not work" | ||
31955 | else | ||
31956 | echo " sshd default user PATH: $I" | ||
31957 | if test ! -z "$external_path_file"; then | ||
31958 | echo " (If PATH is set in $external_path_file it will be used instead. If" | ||
31959 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" | ||
31960 | fi | ||
31961 | fi | ||
31962 | if test ! -z "$superuser_path" ; then | ||
31963 | echo " sshd superuser user PATH: $J" | ||
31964 | fi | ||
31965 | echo " Manpage format: $MANTYPE" | ||
31966 | echo " PAM support: $PAM_MSG" | ||
31967 | echo " OSF SIA support: $SIA_MSG" | ||
31968 | echo " KerberosV support: $KRB5_MSG" | ||
31969 | echo " SELinux support: $SELINUX_MSG" | ||
31970 | echo " Smartcard support: $SCARD_MSG" | ||
31971 | echo " S/KEY support: $SKEY_MSG" | ||
31972 | echo " TCP Wrappers support: $TCPW_MSG" | ||
31973 | echo " MD5 password support: $MD5_MSG" | ||
31974 | echo " libedit support: $LIBEDIT_MSG" | ||
31975 | echo " Solaris process contract support: $SPC_MSG" | ||
31976 | echo " Solaris project support: $SP_MSG" | ||
31977 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
31978 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
31979 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
31980 | echo " Random number source: $RAND_MSG" | ||
31981 | if test ! -z "$USE_RAND_HELPER" ; then | ||
31982 | echo " ssh-rand-helper collects from: $RAND_HELPER_MSG" | ||
31983 | fi | ||
31984 | |||
31985 | echo "" | ||
31986 | |||
31987 | echo " Host: ${host}" | ||
31988 | echo " Compiler: ${CC}" | ||
31989 | echo " Compiler flags: ${CFLAGS}" | ||
31990 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
31991 | echo " Linker flags: ${LDFLAGS}" | ||
31992 | echo " Libraries: ${LIBS}" | ||
31993 | if test ! -z "${SSHDLIBS}"; then | ||
31994 | echo " +for sshd: ${SSHDLIBS}" | ||
31995 | fi | ||
31996 | |||
31997 | echo "" | ||
31998 | |||
31999 | if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then | ||
32000 | echo "SVR4 style packages are supported with \"make package\"" | ||
32001 | echo "" | ||
32002 | fi | ||
32003 | |||
32004 | if test "x$PAM_MSG" = "xyes" ; then | ||
32005 | echo "PAM is enabled. You may need to install a PAM control file " | ||
32006 | echo "for sshd, otherwise password authentication may fail. " | ||
32007 | echo "Example PAM control files can be found in the contrib/ " | ||
32008 | echo "subdirectory" | ||
32009 | echo "" | ||
32010 | fi | ||
32011 | |||
32012 | if test ! -z "$RAND_HELPER_CMDHASH" ; then | ||
32013 | echo "WARNING: you are using the builtin random number collection " | ||
32014 | echo "service. Please read WARNING.RNG and request that your OS " | ||
32015 | echo "vendor includes kernel-based random number collection in " | ||
32016 | echo "future versions of your OS." | ||
32017 | echo "" | ||
32018 | fi | ||
32019 | |||
32020 | if test ! -z "$NO_PEERCHECK" ; then | ||
32021 | echo "WARNING: the operating system that you are using does not" | ||
32022 | echo "appear to support getpeereid(), getpeerucred() or the" | ||
32023 | echo "SO_PEERCRED getsockopt() option. These facilities are used to" | ||
32024 | echo "enforce security checks to prevent unauthorised connections to" | ||
32025 | echo "ssh-agent. Their absence increases the risk that a malicious" | ||
32026 | echo "user can connect to your agent." | ||
32027 | echo "" | ||
32028 | fi | ||
32029 | |||
32030 | if test "$AUDIT_MODULE" = "bsm" ; then | ||
32031 | echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." | ||
32032 | echo "See the Solaris section in README.platform for details." | ||
32033 | fi | ||