diff options
author | Colin Watson <cjwatson@debian.org> | 2008-07-22 14:59:59 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2008-07-22 14:59:59 +0000 |
commit | ef94e5613d37bcbf880f21ee6094e4b1c7683a4c (patch) | |
tree | eebe1697910d248823033b5d14354c7f5ee8b471 /configure | |
parent | 8f42e9b75a55401fa9dfdf14d49fbe5396c6ce92 (diff) | |
parent | 70847d299887abb96f8703ca99db6d817b78960e (diff) |
Import OpenSSH 5.1p1.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 30197 |
1 files changed, 30197 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 000000000..19cc20c84 --- /dev/null +++ b/configure | |||
@@ -0,0 +1,30197 @@ | |||
1 | #! /bin/sh | ||
2 | # From configure.ac Revision: 1.409 . | ||
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 | TEST_SHELL | ||
688 | PATH_GROUPADD_PROG | ||
689 | PATH_USERADD_PROG | ||
690 | MAKE_PACKAGE_SUPPORTED | ||
691 | STARTUP_SCRIPT_SHELL | ||
692 | LOGIN_PROGRAM_FALLBACK | ||
693 | PATH_PASSWD_PROG | ||
694 | LD | ||
695 | SSHDLIBS | ||
696 | LIBEDIT | ||
697 | INSTALL_SSH_RAND_HELPER | ||
698 | SSH_PRIVSEP_USER | ||
699 | PROG_LS | ||
700 | PROG_NETSTAT | ||
701 | PROG_ARP | ||
702 | PROG_IFCONFIG | ||
703 | PROG_JSTAT | ||
704 | PROG_PS | ||
705 | PROG_SAR | ||
706 | PROG_W | ||
707 | PROG_WHO | ||
708 | PROG_LAST | ||
709 | PROG_LASTLOG | ||
710 | PROG_DF | ||
711 | PROG_VMSTAT | ||
712 | PROG_UPTIME | ||
713 | PROG_IPCS | ||
714 | PROG_TAIL | ||
715 | INSTALL_SSH_PRNG_CMDS | ||
716 | OPENSC_CONFIG | ||
717 | PRIVSEP_PATH | ||
718 | xauth_path | ||
719 | STRIP_OPT | ||
720 | XAUTH_PATH | ||
721 | NROFF | ||
722 | MANTYPE | ||
723 | mansubdir | ||
724 | user_path | ||
725 | piddir | ||
726 | TEST_SSH_IPV6 | ||
727 | LIBOBJS | ||
728 | LTLIBOBJS' | ||
729 | ac_subst_files='' | ||
730 | ac_precious_vars='build_alias | ||
731 | host_alias | ||
732 | target_alias | ||
733 | CC | ||
734 | CFLAGS | ||
735 | LDFLAGS | ||
736 | LIBS | ||
737 | CPPFLAGS | ||
738 | CPP' | ||
739 | |||
740 | |||
741 | # Initialize some variables set by options. | ||
742 | ac_init_help= | ||
743 | ac_init_version=false | ||
744 | # The variables have the same names as the options, with | ||
745 | # dashes changed to underlines. | ||
746 | cache_file=/dev/null | ||
747 | exec_prefix=NONE | ||
748 | no_create= | ||
749 | no_recursion= | ||
750 | prefix=NONE | ||
751 | program_prefix=NONE | ||
752 | program_suffix=NONE | ||
753 | program_transform_name=s,x,x, | ||
754 | silent= | ||
755 | site= | ||
756 | srcdir= | ||
757 | verbose= | ||
758 | x_includes=NONE | ||
759 | x_libraries=NONE | ||
760 | |||
761 | # Installation directory options. | ||
762 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
763 | # and all the variables that are supposed to be based on exec_prefix | ||
764 | # by default will actually change. | ||
765 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
766 | # (The list follows the same order as the GNU Coding Standards.) | ||
767 | bindir='${exec_prefix}/bin' | ||
768 | sbindir='${exec_prefix}/sbin' | ||
769 | libexecdir='${exec_prefix}/libexec' | ||
770 | datarootdir='${prefix}/share' | ||
771 | datadir='${datarootdir}' | ||
772 | sysconfdir='${prefix}/etc' | ||
773 | sharedstatedir='${prefix}/com' | ||
774 | localstatedir='${prefix}/var' | ||
775 | includedir='${prefix}/include' | ||
776 | oldincludedir='/usr/include' | ||
777 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
778 | infodir='${datarootdir}/info' | ||
779 | htmldir='${docdir}' | ||
780 | dvidir='${docdir}' | ||
781 | pdfdir='${docdir}' | ||
782 | psdir='${docdir}' | ||
783 | libdir='${exec_prefix}/lib' | ||
784 | localedir='${datarootdir}/locale' | ||
785 | mandir='${datarootdir}/man' | ||
786 | |||
787 | ac_prev= | ||
788 | ac_dashdash= | ||
789 | for ac_option | ||
790 | do | ||
791 | # If the previous option needs an argument, assign it. | ||
792 | if test -n "$ac_prev"; then | ||
793 | eval $ac_prev=\$ac_option | ||
794 | ac_prev= | ||
795 | continue | ||
796 | fi | ||
797 | |||
798 | case $ac_option in | ||
799 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
800 | *) ac_optarg=yes ;; | ||
801 | esac | ||
802 | |||
803 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
804 | |||
805 | case $ac_dashdash$ac_option in | ||
806 | --) | ||
807 | ac_dashdash=yes ;; | ||
808 | |||
809 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
810 | ac_prev=bindir ;; | ||
811 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
812 | bindir=$ac_optarg ;; | ||
813 | |||
814 | -build | --build | --buil | --bui | --bu) | ||
815 | ac_prev=build_alias ;; | ||
816 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
817 | build_alias=$ac_optarg ;; | ||
818 | |||
819 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
820 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
821 | ac_prev=cache_file ;; | ||
822 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
823 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
824 | cache_file=$ac_optarg ;; | ||
825 | |||
826 | --config-cache | -C) | ||
827 | cache_file=config.cache ;; | ||
828 | |||
829 | -datadir | --datadir | --datadi | --datad) | ||
830 | ac_prev=datadir ;; | ||
831 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
832 | datadir=$ac_optarg ;; | ||
833 | |||
834 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
835 | | --dataroo | --dataro | --datar) | ||
836 | ac_prev=datarootdir ;; | ||
837 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
838 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
839 | datarootdir=$ac_optarg ;; | ||
840 | |||
841 | -disable-* | --disable-*) | ||
842 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
843 | # Reject names that are not valid shell variable names. | ||
844 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
845 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
846 | { (exit 1); exit 1; }; } | ||
847 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | ||
848 | eval enable_$ac_feature=no ;; | ||
849 | |||
850 | -docdir | --docdir | --docdi | --doc | --do) | ||
851 | ac_prev=docdir ;; | ||
852 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
853 | docdir=$ac_optarg ;; | ||
854 | |||
855 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
856 | ac_prev=dvidir ;; | ||
857 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
858 | dvidir=$ac_optarg ;; | ||
859 | |||
860 | -enable-* | --enable-*) | ||
861 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
862 | # Reject names that are not valid shell variable names. | ||
863 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
864 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
865 | { (exit 1); exit 1; }; } | ||
866 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | ||
867 | eval enable_$ac_feature=\$ac_optarg ;; | ||
868 | |||
869 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
870 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
871 | | --exec | --exe | --ex) | ||
872 | ac_prev=exec_prefix ;; | ||
873 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
874 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
875 | | --exec=* | --exe=* | --ex=*) | ||
876 | exec_prefix=$ac_optarg ;; | ||
877 | |||
878 | -gas | --gas | --ga | --g) | ||
879 | # Obsolete; use --with-gas. | ||
880 | with_gas=yes ;; | ||
881 | |||
882 | -help | --help | --hel | --he | -h) | ||
883 | ac_init_help=long ;; | ||
884 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
885 | ac_init_help=recursive ;; | ||
886 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
887 | ac_init_help=short ;; | ||
888 | |||
889 | -host | --host | --hos | --ho) | ||
890 | ac_prev=host_alias ;; | ||
891 | -host=* | --host=* | --hos=* | --ho=*) | ||
892 | host_alias=$ac_optarg ;; | ||
893 | |||
894 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
895 | ac_prev=htmldir ;; | ||
896 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
897 | | --ht=*) | ||
898 | htmldir=$ac_optarg ;; | ||
899 | |||
900 | -includedir | --includedir | --includedi | --included | --include \ | ||
901 | | --includ | --inclu | --incl | --inc) | ||
902 | ac_prev=includedir ;; | ||
903 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
904 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
905 | includedir=$ac_optarg ;; | ||
906 | |||
907 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
908 | ac_prev=infodir ;; | ||
909 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
910 | infodir=$ac_optarg ;; | ||
911 | |||
912 | -libdir | --libdir | --libdi | --libd) | ||
913 | ac_prev=libdir ;; | ||
914 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
915 | libdir=$ac_optarg ;; | ||
916 | |||
917 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
918 | | --libexe | --libex | --libe) | ||
919 | ac_prev=libexecdir ;; | ||
920 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
921 | | --libexe=* | --libex=* | --libe=*) | ||
922 | libexecdir=$ac_optarg ;; | ||
923 | |||
924 | -localedir | --localedir | --localedi | --localed | --locale) | ||
925 | ac_prev=localedir ;; | ||
926 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
927 | localedir=$ac_optarg ;; | ||
928 | |||
929 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
930 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
931 | ac_prev=localstatedir ;; | ||
932 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
933 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
934 | localstatedir=$ac_optarg ;; | ||
935 | |||
936 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
937 | ac_prev=mandir ;; | ||
938 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
939 | mandir=$ac_optarg ;; | ||
940 | |||
941 | -nfp | --nfp | --nf) | ||
942 | # Obsolete; use --without-fp. | ||
943 | with_fp=no ;; | ||
944 | |||
945 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
946 | | --no-cr | --no-c | -n) | ||
947 | no_create=yes ;; | ||
948 | |||
949 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
950 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
951 | no_recursion=yes ;; | ||
952 | |||
953 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
954 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
955 | | --oldin | --oldi | --old | --ol | --o) | ||
956 | ac_prev=oldincludedir ;; | ||
957 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
958 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
959 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
960 | oldincludedir=$ac_optarg ;; | ||
961 | |||
962 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
963 | ac_prev=prefix ;; | ||
964 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
965 | prefix=$ac_optarg ;; | ||
966 | |||
967 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
968 | | --program-pre | --program-pr | --program-p) | ||
969 | ac_prev=program_prefix ;; | ||
970 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
971 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
972 | program_prefix=$ac_optarg ;; | ||
973 | |||
974 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
975 | | --program-suf | --program-su | --program-s) | ||
976 | ac_prev=program_suffix ;; | ||
977 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
978 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
979 | program_suffix=$ac_optarg ;; | ||
980 | |||
981 | -program-transform-name | --program-transform-name \ | ||
982 | | --program-transform-nam | --program-transform-na \ | ||
983 | | --program-transform-n | --program-transform- \ | ||
984 | | --program-transform | --program-transfor \ | ||
985 | | --program-transfo | --program-transf \ | ||
986 | | --program-trans | --program-tran \ | ||
987 | | --progr-tra | --program-tr | --program-t) | ||
988 | ac_prev=program_transform_name ;; | ||
989 | -program-transform-name=* | --program-transform-name=* \ | ||
990 | | --program-transform-nam=* | --program-transform-na=* \ | ||
991 | | --program-transform-n=* | --program-transform-=* \ | ||
992 | | --program-transform=* | --program-transfor=* \ | ||
993 | | --program-transfo=* | --program-transf=* \ | ||
994 | | --program-trans=* | --program-tran=* \ | ||
995 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
996 | program_transform_name=$ac_optarg ;; | ||
997 | |||
998 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
999 | ac_prev=pdfdir ;; | ||
1000 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1001 | pdfdir=$ac_optarg ;; | ||
1002 | |||
1003 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1004 | ac_prev=psdir ;; | ||
1005 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1006 | psdir=$ac_optarg ;; | ||
1007 | |||
1008 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1009 | | -silent | --silent | --silen | --sile | --sil) | ||
1010 | silent=yes ;; | ||
1011 | |||
1012 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1013 | ac_prev=sbindir ;; | ||
1014 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1015 | | --sbi=* | --sb=*) | ||
1016 | sbindir=$ac_optarg ;; | ||
1017 | |||
1018 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1019 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1020 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1021 | | --sha | --sh) | ||
1022 | ac_prev=sharedstatedir ;; | ||
1023 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1024 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1025 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1026 | | --sha=* | --sh=*) | ||
1027 | sharedstatedir=$ac_optarg ;; | ||
1028 | |||
1029 | -site | --site | --sit) | ||
1030 | ac_prev=site ;; | ||
1031 | -site=* | --site=* | --sit=*) | ||
1032 | site=$ac_optarg ;; | ||
1033 | |||
1034 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1035 | ac_prev=srcdir ;; | ||
1036 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1037 | srcdir=$ac_optarg ;; | ||
1038 | |||
1039 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1040 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1041 | ac_prev=sysconfdir ;; | ||
1042 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1043 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1044 | sysconfdir=$ac_optarg ;; | ||
1045 | |||
1046 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1047 | ac_prev=target_alias ;; | ||
1048 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1049 | target_alias=$ac_optarg ;; | ||
1050 | |||
1051 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1052 | verbose=yes ;; | ||
1053 | |||
1054 | -version | --version | --versio | --versi | --vers | -V) | ||
1055 | ac_init_version=: ;; | ||
1056 | |||
1057 | -with-* | --with-*) | ||
1058 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1059 | # Reject names that are not valid shell variable names. | ||
1060 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1061 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
1062 | { (exit 1); exit 1; }; } | ||
1063 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | ||
1064 | eval with_$ac_package=\$ac_optarg ;; | ||
1065 | |||
1066 | -without-* | --without-*) | ||
1067 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1068 | # Reject names that are not valid shell variable names. | ||
1069 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1070 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
1071 | { (exit 1); exit 1; }; } | ||
1072 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | ||
1073 | eval with_$ac_package=no ;; | ||
1074 | |||
1075 | --x) | ||
1076 | # Obsolete; use --with-x. | ||
1077 | with_x=yes ;; | ||
1078 | |||
1079 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1080 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1081 | ac_prev=x_includes ;; | ||
1082 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1083 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1084 | x_includes=$ac_optarg ;; | ||
1085 | |||
1086 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1087 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1088 | ac_prev=x_libraries ;; | ||
1089 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1090 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1091 | x_libraries=$ac_optarg ;; | ||
1092 | |||
1093 | -*) { echo "$as_me: error: unrecognized option: $ac_option | ||
1094 | Try \`$0 --help' for more information." >&2 | ||
1095 | { (exit 1); exit 1; }; } | ||
1096 | ;; | ||
1097 | |||
1098 | *=*) | ||
1099 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1100 | # Reject names that are not valid shell variable names. | ||
1101 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
1102 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
1103 | { (exit 1); exit 1; }; } | ||
1104 | eval $ac_envvar=\$ac_optarg | ||
1105 | export $ac_envvar ;; | ||
1106 | |||
1107 | *) | ||
1108 | # FIXME: should be removed in autoconf 3.0. | ||
1109 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1110 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1111 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1112 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
1113 | ;; | ||
1114 | |||
1115 | esac | ||
1116 | done | ||
1117 | |||
1118 | if test -n "$ac_prev"; then | ||
1119 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1120 | { echo "$as_me: error: missing argument to $ac_option" >&2 | ||
1121 | { (exit 1); exit 1; }; } | ||
1122 | fi | ||
1123 | |||
1124 | # Be sure to have absolute directory names. | ||
1125 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1126 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1127 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1128 | libdir localedir mandir | ||
1129 | do | ||
1130 | eval ac_val=\$$ac_var | ||
1131 | case $ac_val in | ||
1132 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1133 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1134 | esac | ||
1135 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
1136 | { (exit 1); exit 1; }; } | ||
1137 | done | ||
1138 | |||
1139 | # There might be people who depend on the old broken behavior: `$host' | ||
1140 | # used to hold the argument of --host etc. | ||
1141 | # FIXME: To remove some day. | ||
1142 | build=$build_alias | ||
1143 | host=$host_alias | ||
1144 | target=$target_alias | ||
1145 | |||
1146 | # FIXME: To remove some day. | ||
1147 | if test "x$host_alias" != x; then | ||
1148 | if test "x$build_alias" = x; then | ||
1149 | cross_compiling=maybe | ||
1150 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
1151 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
1152 | elif test "x$build_alias" != "x$host_alias"; then | ||
1153 | cross_compiling=yes | ||
1154 | fi | ||
1155 | fi | ||
1156 | |||
1157 | ac_tool_prefix= | ||
1158 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1159 | |||
1160 | test "$silent" = yes && exec 6>/dev/null | ||
1161 | |||
1162 | |||
1163 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1164 | ac_ls_di=`ls -di .` && | ||
1165 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1166 | { echo "$as_me: error: Working directory cannot be determined" >&2 | ||
1167 | { (exit 1); exit 1; }; } | ||
1168 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1169 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | ||
1170 | { (exit 1); exit 1; }; } | ||
1171 | |||
1172 | |||
1173 | # Find the source files, if location was not specified. | ||
1174 | if test -z "$srcdir"; then | ||
1175 | ac_srcdir_defaulted=yes | ||
1176 | # Try the directory containing this script, then the parent directory. | ||
1177 | ac_confdir=`$as_dirname -- "$0" || | ||
1178 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1179 | X"$0" : 'X\(//\)[^/]' \| \ | ||
1180 | X"$0" : 'X\(//\)$' \| \ | ||
1181 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
1182 | echo X"$0" | | ||
1183 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1184 | s//\1/ | ||
1185 | q | ||
1186 | } | ||
1187 | /^X\(\/\/\)[^/].*/{ | ||
1188 | s//\1/ | ||
1189 | q | ||
1190 | } | ||
1191 | /^X\(\/\/\)$/{ | ||
1192 | s//\1/ | ||
1193 | q | ||
1194 | } | ||
1195 | /^X\(\/\).*/{ | ||
1196 | s//\1/ | ||
1197 | q | ||
1198 | } | ||
1199 | s/.*/./; q'` | ||
1200 | srcdir=$ac_confdir | ||
1201 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1202 | srcdir=.. | ||
1203 | fi | ||
1204 | else | ||
1205 | ac_srcdir_defaulted=no | ||
1206 | fi | ||
1207 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1208 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1209 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | ||
1210 | { (exit 1); exit 1; }; } | ||
1211 | fi | ||
1212 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1213 | ac_abs_confdir=`( | ||
1214 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | ||
1215 | { (exit 1); exit 1; }; } | ||
1216 | pwd)` | ||
1217 | # When building in place, set srcdir=. | ||
1218 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1219 | srcdir=. | ||
1220 | fi | ||
1221 | # Remove unnecessary trailing slashes from srcdir. | ||
1222 | # Double slashes in file names in object file debugging info | ||
1223 | # mess up M-x gdb in Emacs. | ||
1224 | case $srcdir in | ||
1225 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1226 | esac | ||
1227 | for ac_var in $ac_precious_vars; do | ||
1228 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1229 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1230 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1231 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1232 | done | ||
1233 | |||
1234 | # | ||
1235 | # Report the --help message. | ||
1236 | # | ||
1237 | if test "$ac_init_help" = "long"; then | ||
1238 | # Omit some internal or obsolete options to make the list less imposing. | ||
1239 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1240 | cat <<_ACEOF | ||
1241 | \`configure' configures OpenSSH Portable to adapt to many kinds of systems. | ||
1242 | |||
1243 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1244 | |||
1245 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1246 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1247 | |||
1248 | Defaults for the options are specified in brackets. | ||
1249 | |||
1250 | Configuration: | ||
1251 | -h, --help display this help and exit | ||
1252 | --help=short display options specific to this package | ||
1253 | --help=recursive display the short help of all the included packages | ||
1254 | -V, --version display version information and exit | ||
1255 | -q, --quiet, --silent do not print \`checking...' messages | ||
1256 | --cache-file=FILE cache test results in FILE [disabled] | ||
1257 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1258 | -n, --no-create do not create output files | ||
1259 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1260 | |||
1261 | Installation directories: | ||
1262 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1263 | [$ac_default_prefix] | ||
1264 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1265 | [PREFIX] | ||
1266 | |||
1267 | By default, \`make install' will install all the files in | ||
1268 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1269 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1270 | for instance \`--prefix=\$HOME'. | ||
1271 | |||
1272 | For better control, use the options below. | ||
1273 | |||
1274 | Fine tuning of the installation directories: | ||
1275 | --bindir=DIR user executables [EPREFIX/bin] | ||
1276 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1277 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1278 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1279 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1280 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1281 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1282 | --includedir=DIR C header files [PREFIX/include] | ||
1283 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1284 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1285 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1286 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1287 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1288 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1289 | --docdir=DIR documentation root [DATAROOTDIR/doc/openssh] | ||
1290 | --htmldir=DIR html documentation [DOCDIR] | ||
1291 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1292 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1293 | --psdir=DIR ps documentation [DOCDIR] | ||
1294 | _ACEOF | ||
1295 | |||
1296 | cat <<\_ACEOF | ||
1297 | |||
1298 | System types: | ||
1299 | --build=BUILD configure for building on BUILD [guessed] | ||
1300 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1301 | _ACEOF | ||
1302 | fi | ||
1303 | |||
1304 | if test -n "$ac_init_help"; then | ||
1305 | case $ac_init_help in | ||
1306 | short | recursive ) echo "Configuration of OpenSSH Portable:";; | ||
1307 | esac | ||
1308 | cat <<\_ACEOF | ||
1309 | |||
1310 | Optional Features: | ||
1311 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1312 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1313 | --disable-largefile omit support for large files | ||
1314 | --disable-strip Disable calling strip(1) on install | ||
1315 | --disable-etc-default-login Disable using PATH from /etc/default/login no | ||
1316 | --disable-lastlog disable use of lastlog even if detected no | ||
1317 | --disable-utmp disable use of utmp even if detected no | ||
1318 | --disable-utmpx disable use of utmpx even if detected no | ||
1319 | --disable-wtmp disable use of wtmp even if detected no | ||
1320 | --disable-wtmpx disable use of wtmpx even if detected no | ||
1321 | --disable-libutil disable use of libutil (login() etc.) no | ||
1322 | --disable-pututline disable use of pututline() etc. (uwtmp) no | ||
1323 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | ||
1324 | |||
1325 | Optional Packages: | ||
1326 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1327 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1328 | --without-stackprotect Don't use compiler's stack protection | ||
1329 | --without-rpath Disable auto-added -R linker paths | ||
1330 | --with-cflags Specify additional flags to pass to compiler | ||
1331 | --with-cppflags Specify additional flags to pass to preprocessor | ||
1332 | --with-ldflags Specify additional flags to pass to linker | ||
1333 | --with-libs Specify additional libraries to link with | ||
1334 | --with-Werror Build main code with -Werror | ||
1335 | --with-solaris-contracts Enable Solaris process contracts (experimental) | ||
1336 | --with-osfsia Enable Digital Unix SIA | ||
1337 | --with-zlib=PATH Use zlib in PATH | ||
1338 | --without-zlib-version-check Disable zlib version check | ||
1339 | --with-skey[=PATH] Enable S/Key support (optionally in PATH) | ||
1340 | --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH) | ||
1341 | --with-libedit[=PATH] Enable libedit support for sftp | ||
1342 | --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm) | ||
1343 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
1344 | --without-openssl-header-check Disable OpenSSL version consistency check | ||
1345 | --with-ssl-engine Enable OpenSSL (hardware) ENGINE support | ||
1346 | --with-pam Enable PAM support | ||
1347 | --with-rand-helper Use subprocess to gather strong randomness | ||
1348 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
1349 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
1350 | --with-entropy-timeout Specify entropy gathering command timeout (msec) | ||
1351 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
1352 | --with-sectok Enable smartcard support using libsectok | ||
1353 | --with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH) | ||
1354 | --with-selinux Enable SELinux support | ||
1355 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
1356 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | ||
1357 | --with-xauth=PATH Specify path to xauth program | ||
1358 | --with-mantype=man|cat|doc Set man page type | ||
1359 | --with-md5-passwords Enable use of MD5 passwords | ||
1360 | --without-shadow Disable shadow password support | ||
1361 | --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY | ||
1362 | --with-default-path= Specify default \$PATH environment for server | ||
1363 | --with-superuser-path= Specify different path for super-user | ||
1364 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
1365 | --with-bsd-auth Enable BSD auth support | ||
1366 | --with-pid-dir=PATH Specify location of ssh.pid file | ||
1367 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
1368 | |||
1369 | Some influential environment variables: | ||
1370 | CC C compiler command | ||
1371 | CFLAGS C compiler flags | ||
1372 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1373 | nonstandard directory <lib dir> | ||
1374 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
1375 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | ||
1376 | you have headers in a nonstandard directory <include dir> | ||
1377 | CPP C preprocessor | ||
1378 | |||
1379 | Use these variables to override the choices made by `configure' or to help | ||
1380 | it to find libraries and programs with nonstandard names/locations. | ||
1381 | |||
1382 | Report bugs to <openssh-unix-dev@mindrot.org>. | ||
1383 | _ACEOF | ||
1384 | ac_status=$? | ||
1385 | fi | ||
1386 | |||
1387 | if test "$ac_init_help" = "recursive"; then | ||
1388 | # If there are subdirs, report their specific --help. | ||
1389 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1390 | test -d "$ac_dir" || continue | ||
1391 | ac_builddir=. | ||
1392 | |||
1393 | case "$ac_dir" in | ||
1394 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1395 | *) | ||
1396 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
1397 | # A ".." for each directory in $ac_dir_suffix. | ||
1398 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
1399 | case $ac_top_builddir_sub in | ||
1400 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1401 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1402 | esac ;; | ||
1403 | esac | ||
1404 | ac_abs_top_builddir=$ac_pwd | ||
1405 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1406 | # for backward compatibility: | ||
1407 | ac_top_builddir=$ac_top_build_prefix | ||
1408 | |||
1409 | case $srcdir in | ||
1410 | .) # We are building in place. | ||
1411 | ac_srcdir=. | ||
1412 | ac_top_srcdir=$ac_top_builddir_sub | ||
1413 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1414 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1415 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1416 | ac_top_srcdir=$srcdir | ||
1417 | ac_abs_top_srcdir=$srcdir ;; | ||
1418 | *) # Relative name. | ||
1419 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1420 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1421 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1422 | esac | ||
1423 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1424 | |||
1425 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1426 | # Check for guested configure. | ||
1427 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1428 | echo && | ||
1429 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1430 | elif test -f "$ac_srcdir/configure"; then | ||
1431 | echo && | ||
1432 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1433 | else | ||
1434 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1435 | fi || ac_status=$? | ||
1436 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1437 | done | ||
1438 | fi | ||
1439 | |||
1440 | test -n "$ac_init_help" && exit $ac_status | ||
1441 | if $ac_init_version; then | ||
1442 | cat <<\_ACEOF | ||
1443 | OpenSSH configure Portable | ||
1444 | generated by GNU Autoconf 2.61 | ||
1445 | |||
1446 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
1447 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | ||
1448 | This configure script is free software; the Free Software Foundation | ||
1449 | gives unlimited permission to copy, distribute and modify it. | ||
1450 | _ACEOF | ||
1451 | exit | ||
1452 | fi | ||
1453 | cat >config.log <<_ACEOF | ||
1454 | This file contains any messages produced by compilers while | ||
1455 | running configure, to aid debugging if configure makes a mistake. | ||
1456 | |||
1457 | It was created by OpenSSH $as_me Portable, which was | ||
1458 | generated by GNU Autoconf 2.61. Invocation command line was | ||
1459 | |||
1460 | $ $0 $@ | ||
1461 | |||
1462 | _ACEOF | ||
1463 | exec 5>>config.log | ||
1464 | { | ||
1465 | cat <<_ASUNAME | ||
1466 | ## --------- ## | ||
1467 | ## Platform. ## | ||
1468 | ## --------- ## | ||
1469 | |||
1470 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
1471 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
1472 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
1473 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
1474 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
1475 | |||
1476 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
1477 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
1478 | |||
1479 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
1480 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
1481 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
1482 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
1483 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
1484 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
1485 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
1486 | |||
1487 | _ASUNAME | ||
1488 | |||
1489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1490 | for as_dir in $PATH | ||
1491 | do | ||
1492 | IFS=$as_save_IFS | ||
1493 | test -z "$as_dir" && as_dir=. | ||
1494 | echo "PATH: $as_dir" | ||
1495 | done | ||
1496 | IFS=$as_save_IFS | ||
1497 | |||
1498 | } >&5 | ||
1499 | |||
1500 | cat >&5 <<_ACEOF | ||
1501 | |||
1502 | |||
1503 | ## ----------- ## | ||
1504 | ## Core tests. ## | ||
1505 | ## ----------- ## | ||
1506 | |||
1507 | _ACEOF | ||
1508 | |||
1509 | |||
1510 | # Keep a trace of the command line. | ||
1511 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
1512 | # Strip out --silent because we don't want to record it for future runs. | ||
1513 | # Also quote any args containing shell meta-characters. | ||
1514 | # Make two passes to allow for proper duplicate-argument suppression. | ||
1515 | ac_configure_args= | ||
1516 | ac_configure_args0= | ||
1517 | ac_configure_args1= | ||
1518 | ac_must_keep_next=false | ||
1519 | for ac_pass in 1 2 | ||
1520 | do | ||
1521 | for ac_arg | ||
1522 | do | ||
1523 | case $ac_arg in | ||
1524 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
1525 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1526 | | -silent | --silent | --silen | --sile | --sil) | ||
1527 | continue ;; | ||
1528 | *\'*) | ||
1529 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1530 | esac | ||
1531 | case $ac_pass in | ||
1532 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | ||
1533 | 2) | ||
1534 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | ||
1535 | if test $ac_must_keep_next = true; then | ||
1536 | ac_must_keep_next=false # Got value, back to normal. | ||
1537 | else | ||
1538 | case $ac_arg in | ||
1539 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
1540 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
1541 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
1542 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
1543 | case "$ac_configure_args0 " in | ||
1544 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
1545 | esac | ||
1546 | ;; | ||
1547 | -* ) ac_must_keep_next=true ;; | ||
1548 | esac | ||
1549 | fi | ||
1550 | ac_configure_args="$ac_configure_args '$ac_arg'" | ||
1551 | ;; | ||
1552 | esac | ||
1553 | done | ||
1554 | done | ||
1555 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | ||
1556 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | ||
1557 | |||
1558 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
1559 | # config.log. We remove comments because anyway the quotes in there | ||
1560 | # would cause problems or look ugly. | ||
1561 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
1562 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
1563 | trap 'exit_status=$? | ||
1564 | # Save into config.log some information that might help in debugging. | ||
1565 | { | ||
1566 | echo | ||
1567 | |||
1568 | cat <<\_ASBOX | ||
1569 | ## ---------------- ## | ||
1570 | ## Cache variables. ## | ||
1571 | ## ---------------- ## | ||
1572 | _ASBOX | ||
1573 | echo | ||
1574 | # The following way of writing the cache mishandles newlines in values, | ||
1575 | ( | ||
1576 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
1577 | eval ac_val=\$$ac_var | ||
1578 | case $ac_val in #( | ||
1579 | *${as_nl}*) | ||
1580 | case $ac_var in #( | ||
1581 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
1582 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
1583 | esac | ||
1584 | case $ac_var in #( | ||
1585 | _ | IFS | as_nl) ;; #( | ||
1586 | *) $as_unset $ac_var ;; | ||
1587 | esac ;; | ||
1588 | esac | ||
1589 | done | ||
1590 | (set) 2>&1 | | ||
1591 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
1592 | *${as_nl}ac_space=\ *) | ||
1593 | sed -n \ | ||
1594 | "s/'\''/'\''\\\\'\'''\''/g; | ||
1595 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
1596 | ;; #( | ||
1597 | *) | ||
1598 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
1599 | ;; | ||
1600 | esac | | ||
1601 | sort | ||
1602 | ) | ||
1603 | echo | ||
1604 | |||
1605 | cat <<\_ASBOX | ||
1606 | ## ----------------- ## | ||
1607 | ## Output variables. ## | ||
1608 | ## ----------------- ## | ||
1609 | _ASBOX | ||
1610 | echo | ||
1611 | for ac_var in $ac_subst_vars | ||
1612 | do | ||
1613 | eval ac_val=\$$ac_var | ||
1614 | case $ac_val in | ||
1615 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1616 | esac | ||
1617 | echo "$ac_var='\''$ac_val'\''" | ||
1618 | done | sort | ||
1619 | echo | ||
1620 | |||
1621 | if test -n "$ac_subst_files"; then | ||
1622 | cat <<\_ASBOX | ||
1623 | ## ------------------- ## | ||
1624 | ## File substitutions. ## | ||
1625 | ## ------------------- ## | ||
1626 | _ASBOX | ||
1627 | echo | ||
1628 | for ac_var in $ac_subst_files | ||
1629 | do | ||
1630 | eval ac_val=\$$ac_var | ||
1631 | case $ac_val in | ||
1632 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1633 | esac | ||
1634 | echo "$ac_var='\''$ac_val'\''" | ||
1635 | done | sort | ||
1636 | echo | ||
1637 | fi | ||
1638 | |||
1639 | if test -s confdefs.h; then | ||
1640 | cat <<\_ASBOX | ||
1641 | ## ----------- ## | ||
1642 | ## confdefs.h. ## | ||
1643 | ## ----------- ## | ||
1644 | _ASBOX | ||
1645 | echo | ||
1646 | cat confdefs.h | ||
1647 | echo | ||
1648 | fi | ||
1649 | test "$ac_signal" != 0 && | ||
1650 | echo "$as_me: caught signal $ac_signal" | ||
1651 | echo "$as_me: exit $exit_status" | ||
1652 | } >&5 | ||
1653 | rm -f core *.core core.conftest.* && | ||
1654 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
1655 | exit $exit_status | ||
1656 | ' 0 | ||
1657 | for ac_signal in 1 2 13 15; do | ||
1658 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
1659 | done | ||
1660 | ac_signal=0 | ||
1661 | |||
1662 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
1663 | rm -f -r conftest* confdefs.h | ||
1664 | |||
1665 | # Predefined preprocessor variables. | ||
1666 | |||
1667 | cat >>confdefs.h <<_ACEOF | ||
1668 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
1669 | _ACEOF | ||
1670 | |||
1671 | |||
1672 | cat >>confdefs.h <<_ACEOF | ||
1673 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
1674 | _ACEOF | ||
1675 | |||
1676 | |||
1677 | cat >>confdefs.h <<_ACEOF | ||
1678 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
1679 | _ACEOF | ||
1680 | |||
1681 | |||
1682 | cat >>confdefs.h <<_ACEOF | ||
1683 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
1684 | _ACEOF | ||
1685 | |||
1686 | |||
1687 | cat >>confdefs.h <<_ACEOF | ||
1688 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
1689 | _ACEOF | ||
1690 | |||
1691 | |||
1692 | # Let the site file select an alternate cache file if it wants to. | ||
1693 | # Prefer explicitly selected file to automatically selected ones. | ||
1694 | if test -n "$CONFIG_SITE"; then | ||
1695 | set x "$CONFIG_SITE" | ||
1696 | elif test "x$prefix" != xNONE; then | ||
1697 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | ||
1698 | else | ||
1699 | set x "$ac_default_prefix/share/config.site" \ | ||
1700 | "$ac_default_prefix/etc/config.site" | ||
1701 | fi | ||
1702 | shift | ||
1703 | for ac_site_file | ||
1704 | do | ||
1705 | if test -r "$ac_site_file"; then | ||
1706 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | ||
1707 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1708 | sed 's/^/| /' "$ac_site_file" >&5 | ||
1709 | . "$ac_site_file" | ||
1710 | fi | ||
1711 | done | ||
1712 | |||
1713 | if test -r "$cache_file"; then | ||
1714 | # Some versions of bash will fail to source /dev/null (special | ||
1715 | # files actually), so we avoid doing that. | ||
1716 | if test -f "$cache_file"; then | ||
1717 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | ||
1718 | echo "$as_me: loading cache $cache_file" >&6;} | ||
1719 | case $cache_file in | ||
1720 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
1721 | *) . "./$cache_file";; | ||
1722 | esac | ||
1723 | fi | ||
1724 | else | ||
1725 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | ||
1726 | echo "$as_me: creating cache $cache_file" >&6;} | ||
1727 | >$cache_file | ||
1728 | fi | ||
1729 | |||
1730 | # Check that the precious variables saved in the cache have kept the same | ||
1731 | # value. | ||
1732 | ac_cache_corrupted=false | ||
1733 | for ac_var in $ac_precious_vars; do | ||
1734 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
1735 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
1736 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
1737 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
1738 | case $ac_old_set,$ac_new_set in | ||
1739 | set,) | ||
1740 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
1741 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
1742 | ac_cache_corrupted=: ;; | ||
1743 | ,set) | ||
1744 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | ||
1745 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1746 | ac_cache_corrupted=: ;; | ||
1747 | ,);; | ||
1748 | *) | ||
1749 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
1750 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | ||
1751 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
1752 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | ||
1753 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
1754 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | ||
1755 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
1756 | ac_cache_corrupted=: | ||
1757 | fi;; | ||
1758 | esac | ||
1759 | # Pass precious variables to config.status. | ||
1760 | if test "$ac_new_set" = set; then | ||
1761 | case $ac_new_val in | ||
1762 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1763 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
1764 | esac | ||
1765 | case " $ac_configure_args " in | ||
1766 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1767 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
1768 | esac | ||
1769 | fi | ||
1770 | done | ||
1771 | if $ac_cache_corrupted; then | ||
1772 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
1773 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
1774 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
1775 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
1776 | { (exit 1); exit 1; }; } | ||
1777 | fi | ||
1778 | |||
1779 | |||
1780 | |||
1781 | |||
1782 | |||
1783 | |||
1784 | |||
1785 | |||
1786 | |||
1787 | |||
1788 | |||
1789 | |||
1790 | |||
1791 | |||
1792 | |||
1793 | |||
1794 | |||
1795 | |||
1796 | |||
1797 | |||
1798 | |||
1799 | |||
1800 | |||
1801 | |||
1802 | |||
1803 | ac_ext=c | ||
1804 | ac_cpp='$CPP $CPPFLAGS' | ||
1805 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1806 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1807 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1808 | |||
1809 | |||
1810 | |||
1811 | |||
1812 | |||
1813 | ac_config_headers="$ac_config_headers config.h" | ||
1814 | |||
1815 | ac_ext=c | ||
1816 | ac_cpp='$CPP $CPPFLAGS' | ||
1817 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1818 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1819 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1820 | if test -n "$ac_tool_prefix"; then | ||
1821 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
1822 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
1823 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1824 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1825 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1827 | else | ||
1828 | if test -n "$CC"; then | ||
1829 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1830 | else | ||
1831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1832 | for as_dir in $PATH | ||
1833 | do | ||
1834 | IFS=$as_save_IFS | ||
1835 | test -z "$as_dir" && as_dir=. | ||
1836 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1837 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1838 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
1839 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1840 | break 2 | ||
1841 | fi | ||
1842 | done | ||
1843 | done | ||
1844 | IFS=$as_save_IFS | ||
1845 | |||
1846 | fi | ||
1847 | fi | ||
1848 | CC=$ac_cv_prog_CC | ||
1849 | if test -n "$CC"; then | ||
1850 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
1851 | echo "${ECHO_T}$CC" >&6; } | ||
1852 | else | ||
1853 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1854 | echo "${ECHO_T}no" >&6; } | ||
1855 | fi | ||
1856 | |||
1857 | |||
1858 | fi | ||
1859 | if test -z "$ac_cv_prog_CC"; then | ||
1860 | ac_ct_CC=$CC | ||
1861 | # Extract the first word of "gcc", so it can be a program name with args. | ||
1862 | set dummy gcc; ac_word=$2 | ||
1863 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1864 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1865 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1867 | else | ||
1868 | if test -n "$ac_ct_CC"; then | ||
1869 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1870 | else | ||
1871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1872 | for as_dir in $PATH | ||
1873 | do | ||
1874 | IFS=$as_save_IFS | ||
1875 | test -z "$as_dir" && as_dir=. | ||
1876 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1877 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1878 | ac_cv_prog_ac_ct_CC="gcc" | ||
1879 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1880 | break 2 | ||
1881 | fi | ||
1882 | done | ||
1883 | done | ||
1884 | IFS=$as_save_IFS | ||
1885 | |||
1886 | fi | ||
1887 | fi | ||
1888 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1889 | if test -n "$ac_ct_CC"; then | ||
1890 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1891 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
1892 | else | ||
1893 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1894 | echo "${ECHO_T}no" >&6; } | ||
1895 | fi | ||
1896 | |||
1897 | if test "x$ac_ct_CC" = x; then | ||
1898 | CC="" | ||
1899 | else | ||
1900 | case $cross_compiling:$ac_tool_warned in | ||
1901 | yes:) | ||
1902 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
1903 | whose name does not start with the host triplet. If you think this | ||
1904 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
1905 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
1906 | whose name does not start with the host triplet. If you think this | ||
1907 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
1908 | ac_tool_warned=yes ;; | ||
1909 | esac | ||
1910 | CC=$ac_ct_CC | ||
1911 | fi | ||
1912 | else | ||
1913 | CC="$ac_cv_prog_CC" | ||
1914 | fi | ||
1915 | |||
1916 | if test -z "$CC"; then | ||
1917 | if test -n "$ac_tool_prefix"; then | ||
1918 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
1919 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
1920 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1921 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1922 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1924 | else | ||
1925 | if test -n "$CC"; then | ||
1926 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1927 | else | ||
1928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1929 | for as_dir in $PATH | ||
1930 | do | ||
1931 | IFS=$as_save_IFS | ||
1932 | test -z "$as_dir" && as_dir=. | ||
1933 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1934 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1935 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
1936 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1937 | break 2 | ||
1938 | fi | ||
1939 | done | ||
1940 | done | ||
1941 | IFS=$as_save_IFS | ||
1942 | |||
1943 | fi | ||
1944 | fi | ||
1945 | CC=$ac_cv_prog_CC | ||
1946 | if test -n "$CC"; then | ||
1947 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
1948 | echo "${ECHO_T}$CC" >&6; } | ||
1949 | else | ||
1950 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1951 | echo "${ECHO_T}no" >&6; } | ||
1952 | fi | ||
1953 | |||
1954 | |||
1955 | fi | ||
1956 | fi | ||
1957 | if test -z "$CC"; then | ||
1958 | # Extract the first word of "cc", so it can be a program name with args. | ||
1959 | set dummy cc; ac_word=$2 | ||
1960 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1961 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1962 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1964 | else | ||
1965 | if test -n "$CC"; then | ||
1966 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1967 | else | ||
1968 | ac_prog_rejected=no | ||
1969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1970 | for as_dir in $PATH | ||
1971 | do | ||
1972 | IFS=$as_save_IFS | ||
1973 | test -z "$as_dir" && as_dir=. | ||
1974 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1975 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1976 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
1977 | ac_prog_rejected=yes | ||
1978 | continue | ||
1979 | fi | ||
1980 | ac_cv_prog_CC="cc" | ||
1981 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1982 | break 2 | ||
1983 | fi | ||
1984 | done | ||
1985 | done | ||
1986 | IFS=$as_save_IFS | ||
1987 | |||
1988 | if test $ac_prog_rejected = yes; then | ||
1989 | # We found a bogon in the path, so make sure we never use it. | ||
1990 | set dummy $ac_cv_prog_CC | ||
1991 | shift | ||
1992 | if test $# != 0; then | ||
1993 | # We chose a different compiler from the bogus one. | ||
1994 | # However, it has the same basename, so the bogon will be chosen | ||
1995 | # first if we set CC to just the basename; use the full file name. | ||
1996 | shift | ||
1997 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
1998 | fi | ||
1999 | fi | ||
2000 | fi | ||
2001 | fi | ||
2002 | CC=$ac_cv_prog_CC | ||
2003 | if test -n "$CC"; then | ||
2004 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2005 | echo "${ECHO_T}$CC" >&6; } | ||
2006 | else | ||
2007 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2008 | echo "${ECHO_T}no" >&6; } | ||
2009 | fi | ||
2010 | |||
2011 | |||
2012 | fi | ||
2013 | if test -z "$CC"; then | ||
2014 | if test -n "$ac_tool_prefix"; then | ||
2015 | for ac_prog in cl.exe | ||
2016 | do | ||
2017 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
2018 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
2019 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2020 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2021 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2023 | else | ||
2024 | if test -n "$CC"; then | ||
2025 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2026 | else | ||
2027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2028 | for as_dir in $PATH | ||
2029 | do | ||
2030 | IFS=$as_save_IFS | ||
2031 | test -z "$as_dir" && as_dir=. | ||
2032 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2033 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2034 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
2035 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2036 | break 2 | ||
2037 | fi | ||
2038 | done | ||
2039 | done | ||
2040 | IFS=$as_save_IFS | ||
2041 | |||
2042 | fi | ||
2043 | fi | ||
2044 | CC=$ac_cv_prog_CC | ||
2045 | if test -n "$CC"; then | ||
2046 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2047 | echo "${ECHO_T}$CC" >&6; } | ||
2048 | else | ||
2049 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2050 | echo "${ECHO_T}no" >&6; } | ||
2051 | fi | ||
2052 | |||
2053 | |||
2054 | test -n "$CC" && break | ||
2055 | done | ||
2056 | fi | ||
2057 | if test -z "$CC"; then | ||
2058 | ac_ct_CC=$CC | ||
2059 | for ac_prog in cl.exe | ||
2060 | do | ||
2061 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2062 | set dummy $ac_prog; ac_word=$2 | ||
2063 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2064 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2065 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2067 | else | ||
2068 | if test -n "$ac_ct_CC"; then | ||
2069 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2070 | else | ||
2071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2072 | for as_dir in $PATH | ||
2073 | do | ||
2074 | IFS=$as_save_IFS | ||
2075 | test -z "$as_dir" && as_dir=. | ||
2076 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2077 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2078 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
2079 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2080 | break 2 | ||
2081 | fi | ||
2082 | done | ||
2083 | done | ||
2084 | IFS=$as_save_IFS | ||
2085 | |||
2086 | fi | ||
2087 | fi | ||
2088 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2089 | if test -n "$ac_ct_CC"; then | ||
2090 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2091 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
2092 | else | ||
2093 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2094 | echo "${ECHO_T}no" >&6; } | ||
2095 | fi | ||
2096 | |||
2097 | |||
2098 | test -n "$ac_ct_CC" && break | ||
2099 | done | ||
2100 | |||
2101 | if test "x$ac_ct_CC" = x; then | ||
2102 | CC="" | ||
2103 | else | ||
2104 | case $cross_compiling:$ac_tool_warned in | ||
2105 | yes:) | ||
2106 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2107 | whose name does not start with the host triplet. If you think this | ||
2108 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2109 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2110 | whose name does not start with the host triplet. If you think this | ||
2111 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2112 | ac_tool_warned=yes ;; | ||
2113 | esac | ||
2114 | CC=$ac_ct_CC | ||
2115 | fi | ||
2116 | fi | ||
2117 | |||
2118 | fi | ||
2119 | |||
2120 | |||
2121 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | ||
2122 | See \`config.log' for more details." >&5 | ||
2123 | echo "$as_me: error: no acceptable C compiler found in \$PATH | ||
2124 | See \`config.log' for more details." >&2;} | ||
2125 | { (exit 1); exit 1; }; } | ||
2126 | |||
2127 | # Provide some information about the compiler. | ||
2128 | echo "$as_me:$LINENO: checking for C compiler version" >&5 | ||
2129 | ac_compiler=`set X $ac_compile; echo $2` | ||
2130 | { (ac_try="$ac_compiler --version >&5" | ||
2131 | case "(($ac_try" in | ||
2132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2133 | *) ac_try_echo=$ac_try;; | ||
2134 | esac | ||
2135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2136 | (eval "$ac_compiler --version >&5") 2>&5 | ||
2137 | ac_status=$? | ||
2138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2139 | (exit $ac_status); } | ||
2140 | { (ac_try="$ac_compiler -v >&5" | ||
2141 | case "(($ac_try" in | ||
2142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2143 | *) ac_try_echo=$ac_try;; | ||
2144 | esac | ||
2145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2146 | (eval "$ac_compiler -v >&5") 2>&5 | ||
2147 | ac_status=$? | ||
2148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2149 | (exit $ac_status); } | ||
2150 | { (ac_try="$ac_compiler -V >&5" | ||
2151 | case "(($ac_try" in | ||
2152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2153 | *) ac_try_echo=$ac_try;; | ||
2154 | esac | ||
2155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2156 | (eval "$ac_compiler -V >&5") 2>&5 | ||
2157 | ac_status=$? | ||
2158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2159 | (exit $ac_status); } | ||
2160 | |||
2161 | cat >conftest.$ac_ext <<_ACEOF | ||
2162 | /* confdefs.h. */ | ||
2163 | _ACEOF | ||
2164 | cat confdefs.h >>conftest.$ac_ext | ||
2165 | cat >>conftest.$ac_ext <<_ACEOF | ||
2166 | /* end confdefs.h. */ | ||
2167 | |||
2168 | int | ||
2169 | main () | ||
2170 | { | ||
2171 | |||
2172 | ; | ||
2173 | return 0; | ||
2174 | } | ||
2175 | _ACEOF | ||
2176 | ac_clean_files_save=$ac_clean_files | ||
2177 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | ||
2178 | # Try to create an executable without -o first, disregard a.out. | ||
2179 | # It will help us diagnose broken compilers, and finding out an intuition | ||
2180 | # of exeext. | ||
2181 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | ||
2182 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | ||
2183 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
2184 | # | ||
2185 | # List of possible output files, starting from the most likely. | ||
2186 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | ||
2187 | # only as a last resort. b.out is created by i960 compilers. | ||
2188 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | ||
2189 | # | ||
2190 | # The IRIX 6 linker writes into existing files which may not be | ||
2191 | # executable, retaining their permissions. Remove them first so a | ||
2192 | # subsequent execution test works. | ||
2193 | ac_rmfiles= | ||
2194 | for ac_file in $ac_files | ||
2195 | do | ||
2196 | case $ac_file in | ||
2197 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2198 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
2199 | esac | ||
2200 | done | ||
2201 | rm -f $ac_rmfiles | ||
2202 | |||
2203 | if { (ac_try="$ac_link_default" | ||
2204 | case "(($ac_try" in | ||
2205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2206 | *) ac_try_echo=$ac_try;; | ||
2207 | esac | ||
2208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2209 | (eval "$ac_link_default") 2>&5 | ||
2210 | ac_status=$? | ||
2211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2212 | (exit $ac_status); }; then | ||
2213 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
2214 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
2215 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
2216 | # so that the user can short-circuit this test for compilers unknown to | ||
2217 | # Autoconf. | ||
2218 | for ac_file in $ac_files '' | ||
2219 | do | ||
2220 | test -f "$ac_file" || continue | ||
2221 | case $ac_file in | ||
2222 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | ||
2223 | ;; | ||
2224 | [ab].out ) | ||
2225 | # We found the default executable, but exeext='' is most | ||
2226 | # certainly right. | ||
2227 | break;; | ||
2228 | *.* ) | ||
2229 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
2230 | then :; else | ||
2231 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2232 | fi | ||
2233 | # We set ac_cv_exeext here because the later test for it is not | ||
2234 | # safe: cross compilers may not add the suffix if given an `-o' | ||
2235 | # argument, so we may need to know it at that point already. | ||
2236 | # Even if this section looks crufty: it has the advantage of | ||
2237 | # actually working. | ||
2238 | break;; | ||
2239 | * ) | ||
2240 | break;; | ||
2241 | esac | ||
2242 | done | ||
2243 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
2244 | |||
2245 | else | ||
2246 | ac_file='' | ||
2247 | fi | ||
2248 | |||
2249 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
2250 | echo "${ECHO_T}$ac_file" >&6; } | ||
2251 | if test -z "$ac_file"; then | ||
2252 | echo "$as_me: failed program was:" >&5 | ||
2253 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2254 | |||
2255 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | ||
2256 | See \`config.log' for more details." >&5 | ||
2257 | echo "$as_me: error: C compiler cannot create executables | ||
2258 | See \`config.log' for more details." >&2;} | ||
2259 | { (exit 77); exit 77; }; } | ||
2260 | fi | ||
2261 | |||
2262 | ac_exeext=$ac_cv_exeext | ||
2263 | |||
2264 | # Check that the compiler produces executables we can run. If not, either | ||
2265 | # the compiler is broken, or we cross compile. | ||
2266 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
2267 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | ||
2268 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
2269 | # If not cross compiling, check that we can run a simple program. | ||
2270 | if test "$cross_compiling" != yes; then | ||
2271 | if { ac_try='./$ac_file' | ||
2272 | { (case "(($ac_try" in | ||
2273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2274 | *) ac_try_echo=$ac_try;; | ||
2275 | esac | ||
2276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2277 | (eval "$ac_try") 2>&5 | ||
2278 | ac_status=$? | ||
2279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2280 | (exit $ac_status); }; }; then | ||
2281 | cross_compiling=no | ||
2282 | else | ||
2283 | if test "$cross_compiling" = maybe; then | ||
2284 | cross_compiling=yes | ||
2285 | else | ||
2286 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
2287 | If you meant to cross compile, use \`--host'. | ||
2288 | See \`config.log' for more details." >&5 | ||
2289 | echo "$as_me: error: cannot run C compiled programs. | ||
2290 | If you meant to cross compile, use \`--host'. | ||
2291 | See \`config.log' for more details." >&2;} | ||
2292 | { (exit 1); exit 1; }; } | ||
2293 | fi | ||
2294 | fi | ||
2295 | fi | ||
2296 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
2297 | echo "${ECHO_T}yes" >&6; } | ||
2298 | |||
2299 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | ||
2300 | ac_clean_files=$ac_clean_files_save | ||
2301 | # Check that the compiler produces executables we can run. If not, either | ||
2302 | # the compiler is broken, or we cross compile. | ||
2303 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | ||
2304 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | ||
2305 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | ||
2306 | echo "${ECHO_T}$cross_compiling" >&6; } | ||
2307 | |||
2308 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | ||
2309 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | ||
2310 | if { (ac_try="$ac_link" | ||
2311 | case "(($ac_try" in | ||
2312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2313 | *) ac_try_echo=$ac_try;; | ||
2314 | esac | ||
2315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2316 | (eval "$ac_link") 2>&5 | ||
2317 | ac_status=$? | ||
2318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2319 | (exit $ac_status); }; then | ||
2320 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
2321 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
2322 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
2323 | # `rm'. | ||
2324 | for ac_file in conftest.exe conftest conftest.*; do | ||
2325 | test -f "$ac_file" || continue | ||
2326 | case $ac_file in | ||
2327 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2328 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2329 | break;; | ||
2330 | * ) break;; | ||
2331 | esac | ||
2332 | done | ||
2333 | else | ||
2334 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | ||
2335 | See \`config.log' for more details." >&5 | ||
2336 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | ||
2337 | See \`config.log' for more details." >&2;} | ||
2338 | { (exit 1); exit 1; }; } | ||
2339 | fi | ||
2340 | |||
2341 | rm -f conftest$ac_cv_exeext | ||
2342 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
2343 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | ||
2344 | |||
2345 | rm -f conftest.$ac_ext | ||
2346 | EXEEXT=$ac_cv_exeext | ||
2347 | ac_exeext=$EXEEXT | ||
2348 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | ||
2349 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | ||
2350 | if test "${ac_cv_objext+set}" = set; then | ||
2351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2352 | else | ||
2353 | cat >conftest.$ac_ext <<_ACEOF | ||
2354 | /* confdefs.h. */ | ||
2355 | _ACEOF | ||
2356 | cat confdefs.h >>conftest.$ac_ext | ||
2357 | cat >>conftest.$ac_ext <<_ACEOF | ||
2358 | /* end confdefs.h. */ | ||
2359 | |||
2360 | int | ||
2361 | main () | ||
2362 | { | ||
2363 | |||
2364 | ; | ||
2365 | return 0; | ||
2366 | } | ||
2367 | _ACEOF | ||
2368 | rm -f conftest.o conftest.obj | ||
2369 | if { (ac_try="$ac_compile" | ||
2370 | case "(($ac_try" in | ||
2371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2372 | *) ac_try_echo=$ac_try;; | ||
2373 | esac | ||
2374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2375 | (eval "$ac_compile") 2>&5 | ||
2376 | ac_status=$? | ||
2377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2378 | (exit $ac_status); }; then | ||
2379 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
2380 | test -f "$ac_file" || continue; | ||
2381 | case $ac_file in | ||
2382 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | ||
2383 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
2384 | break;; | ||
2385 | esac | ||
2386 | done | ||
2387 | else | ||
2388 | echo "$as_me: failed program was:" >&5 | ||
2389 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2390 | |||
2391 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | ||
2392 | See \`config.log' for more details." >&5 | ||
2393 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | ||
2394 | See \`config.log' for more details." >&2;} | ||
2395 | { (exit 1); exit 1; }; } | ||
2396 | fi | ||
2397 | |||
2398 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
2399 | fi | ||
2400 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | ||
2401 | echo "${ECHO_T}$ac_cv_objext" >&6; } | ||
2402 | OBJEXT=$ac_cv_objext | ||
2403 | ac_objext=$OBJEXT | ||
2404 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | ||
2405 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | ||
2406 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
2407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2408 | else | ||
2409 | cat >conftest.$ac_ext <<_ACEOF | ||
2410 | /* confdefs.h. */ | ||
2411 | _ACEOF | ||
2412 | cat confdefs.h >>conftest.$ac_ext | ||
2413 | cat >>conftest.$ac_ext <<_ACEOF | ||
2414 | /* end confdefs.h. */ | ||
2415 | |||
2416 | int | ||
2417 | main () | ||
2418 | { | ||
2419 | #ifndef __GNUC__ | ||
2420 | choke me | ||
2421 | #endif | ||
2422 | |||
2423 | ; | ||
2424 | return 0; | ||
2425 | } | ||
2426 | _ACEOF | ||
2427 | rm -f conftest.$ac_objext | ||
2428 | if { (ac_try="$ac_compile" | ||
2429 | case "(($ac_try" in | ||
2430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2431 | *) ac_try_echo=$ac_try;; | ||
2432 | esac | ||
2433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2434 | (eval "$ac_compile") 2>conftest.er1 | ||
2435 | ac_status=$? | ||
2436 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2437 | rm -f conftest.er1 | ||
2438 | cat conftest.err >&5 | ||
2439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2440 | (exit $ac_status); } && { | ||
2441 | test -z "$ac_c_werror_flag" || | ||
2442 | test ! -s conftest.err | ||
2443 | } && test -s conftest.$ac_objext; then | ||
2444 | ac_compiler_gnu=yes | ||
2445 | else | ||
2446 | echo "$as_me: failed program was:" >&5 | ||
2447 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2448 | |||
2449 | ac_compiler_gnu=no | ||
2450 | fi | ||
2451 | |||
2452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2453 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
2454 | |||
2455 | fi | ||
2456 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | ||
2457 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | ||
2458 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
2459 | ac_test_CFLAGS=${CFLAGS+set} | ||
2460 | ac_save_CFLAGS=$CFLAGS | ||
2461 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | ||
2462 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | ||
2463 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
2464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2465 | else | ||
2466 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
2467 | ac_c_werror_flag=yes | ||
2468 | ac_cv_prog_cc_g=no | ||
2469 | CFLAGS="-g" | ||
2470 | cat >conftest.$ac_ext <<_ACEOF | ||
2471 | /* confdefs.h. */ | ||
2472 | _ACEOF | ||
2473 | cat confdefs.h >>conftest.$ac_ext | ||
2474 | cat >>conftest.$ac_ext <<_ACEOF | ||
2475 | /* end confdefs.h. */ | ||
2476 | |||
2477 | int | ||
2478 | main () | ||
2479 | { | ||
2480 | |||
2481 | ; | ||
2482 | return 0; | ||
2483 | } | ||
2484 | _ACEOF | ||
2485 | rm -f conftest.$ac_objext | ||
2486 | if { (ac_try="$ac_compile" | ||
2487 | case "(($ac_try" in | ||
2488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2489 | *) ac_try_echo=$ac_try;; | ||
2490 | esac | ||
2491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2492 | (eval "$ac_compile") 2>conftest.er1 | ||
2493 | ac_status=$? | ||
2494 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2495 | rm -f conftest.er1 | ||
2496 | cat conftest.err >&5 | ||
2497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2498 | (exit $ac_status); } && { | ||
2499 | test -z "$ac_c_werror_flag" || | ||
2500 | test ! -s conftest.err | ||
2501 | } && test -s conftest.$ac_objext; then | ||
2502 | ac_cv_prog_cc_g=yes | ||
2503 | else | ||
2504 | echo "$as_me: failed program was:" >&5 | ||
2505 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2506 | |||
2507 | CFLAGS="" | ||
2508 | cat >conftest.$ac_ext <<_ACEOF | ||
2509 | /* confdefs.h. */ | ||
2510 | _ACEOF | ||
2511 | cat confdefs.h >>conftest.$ac_ext | ||
2512 | cat >>conftest.$ac_ext <<_ACEOF | ||
2513 | /* end confdefs.h. */ | ||
2514 | |||
2515 | int | ||
2516 | main () | ||
2517 | { | ||
2518 | |||
2519 | ; | ||
2520 | return 0; | ||
2521 | } | ||
2522 | _ACEOF | ||
2523 | rm -f conftest.$ac_objext | ||
2524 | if { (ac_try="$ac_compile" | ||
2525 | case "(($ac_try" in | ||
2526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2527 | *) ac_try_echo=$ac_try;; | ||
2528 | esac | ||
2529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2530 | (eval "$ac_compile") 2>conftest.er1 | ||
2531 | ac_status=$? | ||
2532 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2533 | rm -f conftest.er1 | ||
2534 | cat conftest.err >&5 | ||
2535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2536 | (exit $ac_status); } && { | ||
2537 | test -z "$ac_c_werror_flag" || | ||
2538 | test ! -s conftest.err | ||
2539 | } && test -s conftest.$ac_objext; then | ||
2540 | : | ||
2541 | else | ||
2542 | echo "$as_me: failed program was:" >&5 | ||
2543 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2544 | |||
2545 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
2546 | CFLAGS="-g" | ||
2547 | cat >conftest.$ac_ext <<_ACEOF | ||
2548 | /* confdefs.h. */ | ||
2549 | _ACEOF | ||
2550 | cat confdefs.h >>conftest.$ac_ext | ||
2551 | cat >>conftest.$ac_ext <<_ACEOF | ||
2552 | /* end confdefs.h. */ | ||
2553 | |||
2554 | int | ||
2555 | main () | ||
2556 | { | ||
2557 | |||
2558 | ; | ||
2559 | return 0; | ||
2560 | } | ||
2561 | _ACEOF | ||
2562 | rm -f conftest.$ac_objext | ||
2563 | if { (ac_try="$ac_compile" | ||
2564 | case "(($ac_try" in | ||
2565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2566 | *) ac_try_echo=$ac_try;; | ||
2567 | esac | ||
2568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2569 | (eval "$ac_compile") 2>conftest.er1 | ||
2570 | ac_status=$? | ||
2571 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2572 | rm -f conftest.er1 | ||
2573 | cat conftest.err >&5 | ||
2574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2575 | (exit $ac_status); } && { | ||
2576 | test -z "$ac_c_werror_flag" || | ||
2577 | test ! -s conftest.err | ||
2578 | } && test -s conftest.$ac_objext; then | ||
2579 | ac_cv_prog_cc_g=yes | ||
2580 | else | ||
2581 | echo "$as_me: failed program was:" >&5 | ||
2582 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2583 | |||
2584 | |||
2585 | fi | ||
2586 | |||
2587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2588 | fi | ||
2589 | |||
2590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2591 | fi | ||
2592 | |||
2593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2594 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
2595 | fi | ||
2596 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
2597 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | ||
2598 | if test "$ac_test_CFLAGS" = set; then | ||
2599 | CFLAGS=$ac_save_CFLAGS | ||
2600 | elif test $ac_cv_prog_cc_g = yes; then | ||
2601 | if test "$GCC" = yes; then | ||
2602 | CFLAGS="-g -O2" | ||
2603 | else | ||
2604 | CFLAGS="-g" | ||
2605 | fi | ||
2606 | else | ||
2607 | if test "$GCC" = yes; then | ||
2608 | CFLAGS="-O2" | ||
2609 | else | ||
2610 | CFLAGS= | ||
2611 | fi | ||
2612 | fi | ||
2613 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | ||
2614 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | ||
2615 | if test "${ac_cv_prog_cc_c89+set}" = set; then | ||
2616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2617 | else | ||
2618 | ac_cv_prog_cc_c89=no | ||
2619 | ac_save_CC=$CC | ||
2620 | cat >conftest.$ac_ext <<_ACEOF | ||
2621 | /* confdefs.h. */ | ||
2622 | _ACEOF | ||
2623 | cat confdefs.h >>conftest.$ac_ext | ||
2624 | cat >>conftest.$ac_ext <<_ACEOF | ||
2625 | /* end confdefs.h. */ | ||
2626 | #include <stdarg.h> | ||
2627 | #include <stdio.h> | ||
2628 | #include <sys/types.h> | ||
2629 | #include <sys/stat.h> | ||
2630 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
2631 | struct buf { int x; }; | ||
2632 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
2633 | static char *e (p, i) | ||
2634 | char **p; | ||
2635 | int i; | ||
2636 | { | ||
2637 | return p[i]; | ||
2638 | } | ||
2639 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
2640 | { | ||
2641 | char *s; | ||
2642 | va_list v; | ||
2643 | va_start (v,p); | ||
2644 | s = g (p, va_arg (v,int)); | ||
2645 | va_end (v); | ||
2646 | return s; | ||
2647 | } | ||
2648 | |||
2649 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
2650 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
2651 | These don't provoke an error unfortunately, instead are silently treated | ||
2652 | as 'x'. The following induces an error, until -std is added to get | ||
2653 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
2654 | array size at least. It's necessary to write '\x00'==0 to get something | ||
2655 | that's true only with -std. */ | ||
2656 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
2657 | |||
2658 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
2659 | inside strings and character constants. */ | ||
2660 | #define FOO(x) 'x' | ||
2661 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
2662 | |||
2663 | int test (int i, double x); | ||
2664 | struct s1 {int (*f) (int a);}; | ||
2665 | struct s2 {int (*f) (double a);}; | ||
2666 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
2667 | int argc; | ||
2668 | char **argv; | ||
2669 | int | ||
2670 | main () | ||
2671 | { | ||
2672 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
2673 | ; | ||
2674 | return 0; | ||
2675 | } | ||
2676 | _ACEOF | ||
2677 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
2678 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
2679 | do | ||
2680 | CC="$ac_save_CC $ac_arg" | ||
2681 | rm -f conftest.$ac_objext | ||
2682 | if { (ac_try="$ac_compile" | ||
2683 | case "(($ac_try" in | ||
2684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2685 | *) ac_try_echo=$ac_try;; | ||
2686 | esac | ||
2687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2688 | (eval "$ac_compile") 2>conftest.er1 | ||
2689 | ac_status=$? | ||
2690 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2691 | rm -f conftest.er1 | ||
2692 | cat conftest.err >&5 | ||
2693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2694 | (exit $ac_status); } && { | ||
2695 | test -z "$ac_c_werror_flag" || | ||
2696 | test ! -s conftest.err | ||
2697 | } && test -s conftest.$ac_objext; then | ||
2698 | ac_cv_prog_cc_c89=$ac_arg | ||
2699 | else | ||
2700 | echo "$as_me: failed program was:" >&5 | ||
2701 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2702 | |||
2703 | |||
2704 | fi | ||
2705 | |||
2706 | rm -f core conftest.err conftest.$ac_objext | ||
2707 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
2708 | done | ||
2709 | rm -f conftest.$ac_ext | ||
2710 | CC=$ac_save_CC | ||
2711 | |||
2712 | fi | ||
2713 | # AC_CACHE_VAL | ||
2714 | case "x$ac_cv_prog_cc_c89" in | ||
2715 | x) | ||
2716 | { echo "$as_me:$LINENO: result: none needed" >&5 | ||
2717 | echo "${ECHO_T}none needed" >&6; } ;; | ||
2718 | xno) | ||
2719 | { echo "$as_me:$LINENO: result: unsupported" >&5 | ||
2720 | echo "${ECHO_T}unsupported" >&6; } ;; | ||
2721 | *) | ||
2722 | CC="$CC $ac_cv_prog_cc_c89" | ||
2723 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | ||
2724 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | ||
2725 | esac | ||
2726 | |||
2727 | |||
2728 | ac_ext=c | ||
2729 | ac_cpp='$CPP $CPPFLAGS' | ||
2730 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2731 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2732 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2733 | |||
2734 | ac_aux_dir= | ||
2735 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
2736 | if test -f "$ac_dir/install-sh"; then | ||
2737 | ac_aux_dir=$ac_dir | ||
2738 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
2739 | break | ||
2740 | elif test -f "$ac_dir/install.sh"; then | ||
2741 | ac_aux_dir=$ac_dir | ||
2742 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
2743 | break | ||
2744 | elif test -f "$ac_dir/shtool"; then | ||
2745 | ac_aux_dir=$ac_dir | ||
2746 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
2747 | break | ||
2748 | fi | ||
2749 | done | ||
2750 | if test -z "$ac_aux_dir"; then | ||
2751 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | ||
2752 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | ||
2753 | { (exit 1); exit 1; }; } | ||
2754 | fi | ||
2755 | |||
2756 | # These three variables are undocumented and unsupported, | ||
2757 | # and are intended to be withdrawn in a future Autoconf release. | ||
2758 | # They can cause serious problems if a builder's source tree is in a directory | ||
2759 | # whose full name contains unusual characters. | ||
2760 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
2761 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
2762 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
2763 | |||
2764 | |||
2765 | # Make sure we can run config.sub. | ||
2766 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
2767 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | ||
2768 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | ||
2769 | { (exit 1); exit 1; }; } | ||
2770 | |||
2771 | { echo "$as_me:$LINENO: checking build system type" >&5 | ||
2772 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | ||
2773 | if test "${ac_cv_build+set}" = set; then | ||
2774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2775 | else | ||
2776 | ac_build_alias=$build_alias | ||
2777 | test "x$ac_build_alias" = x && | ||
2778 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
2779 | test "x$ac_build_alias" = x && | ||
2780 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | ||
2781 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
2782 | { (exit 1); exit 1; }; } | ||
2783 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
2784 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | ||
2785 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | ||
2786 | { (exit 1); exit 1; }; } | ||
2787 | |||
2788 | fi | ||
2789 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | ||
2790 | echo "${ECHO_T}$ac_cv_build" >&6; } | ||
2791 | case $ac_cv_build in | ||
2792 | *-*-*) ;; | ||
2793 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | ||
2794 | echo "$as_me: error: invalid value of canonical build" >&2;} | ||
2795 | { (exit 1); exit 1; }; };; | ||
2796 | esac | ||
2797 | build=$ac_cv_build | ||
2798 | ac_save_IFS=$IFS; IFS='-' | ||
2799 | set x $ac_cv_build | ||
2800 | shift | ||
2801 | build_cpu=$1 | ||
2802 | build_vendor=$2 | ||
2803 | shift; shift | ||
2804 | # Remember, the first character of IFS is used to create $*, | ||
2805 | # except with old shells: | ||
2806 | build_os=$* | ||
2807 | IFS=$ac_save_IFS | ||
2808 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
2809 | |||
2810 | |||
2811 | { echo "$as_me:$LINENO: checking host system type" >&5 | ||
2812 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | ||
2813 | if test "${ac_cv_host+set}" = set; then | ||
2814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2815 | else | ||
2816 | if test "x$host_alias" = x; then | ||
2817 | ac_cv_host=$ac_cv_build | ||
2818 | else | ||
2819 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
2820 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | ||
2821 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | ||
2822 | { (exit 1); exit 1; }; } | ||
2823 | fi | ||
2824 | |||
2825 | fi | ||
2826 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | ||
2827 | echo "${ECHO_T}$ac_cv_host" >&6; } | ||
2828 | case $ac_cv_host in | ||
2829 | *-*-*) ;; | ||
2830 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | ||
2831 | echo "$as_me: error: invalid value of canonical host" >&2;} | ||
2832 | { (exit 1); exit 1; }; };; | ||
2833 | esac | ||
2834 | host=$ac_cv_host | ||
2835 | ac_save_IFS=$IFS; IFS='-' | ||
2836 | set x $ac_cv_host | ||
2837 | shift | ||
2838 | host_cpu=$1 | ||
2839 | host_vendor=$2 | ||
2840 | shift; shift | ||
2841 | # Remember, the first character of IFS is used to create $*, | ||
2842 | # except with old shells: | ||
2843 | host_os=$* | ||
2844 | IFS=$ac_save_IFS | ||
2845 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
2846 | |||
2847 | |||
2848 | |||
2849 | ac_ext=c | ||
2850 | ac_cpp='$CPP $CPPFLAGS' | ||
2851 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2852 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2853 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2854 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
2855 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | ||
2856 | # On Suns, sometimes $CPP names a directory. | ||
2857 | if test -n "$CPP" && test -d "$CPP"; then | ||
2858 | CPP= | ||
2859 | fi | ||
2860 | if test -z "$CPP"; then | ||
2861 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
2862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2863 | else | ||
2864 | # Double quotes because CPP needs to be expanded | ||
2865 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
2866 | do | ||
2867 | ac_preproc_ok=false | ||
2868 | for ac_c_preproc_warn_flag in '' yes | ||
2869 | do | ||
2870 | # Use a header file that comes with gcc, so configuring glibc | ||
2871 | # with a fresh cross-compiler works. | ||
2872 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2873 | # <limits.h> exists even on freestanding compilers. | ||
2874 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2875 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2876 | cat >conftest.$ac_ext <<_ACEOF | ||
2877 | /* confdefs.h. */ | ||
2878 | _ACEOF | ||
2879 | cat confdefs.h >>conftest.$ac_ext | ||
2880 | cat >>conftest.$ac_ext <<_ACEOF | ||
2881 | /* end confdefs.h. */ | ||
2882 | #ifdef __STDC__ | ||
2883 | # include <limits.h> | ||
2884 | #else | ||
2885 | # include <assert.h> | ||
2886 | #endif | ||
2887 | Syntax error | ||
2888 | _ACEOF | ||
2889 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
2890 | case "(($ac_try" in | ||
2891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2892 | *) ac_try_echo=$ac_try;; | ||
2893 | esac | ||
2894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2895 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
2896 | ac_status=$? | ||
2897 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2898 | rm -f conftest.er1 | ||
2899 | cat conftest.err >&5 | ||
2900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2901 | (exit $ac_status); } >/dev/null && { | ||
2902 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
2903 | test ! -s conftest.err | ||
2904 | }; then | ||
2905 | : | ||
2906 | else | ||
2907 | echo "$as_me: failed program was:" >&5 | ||
2908 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2909 | |||
2910 | # Broken: fails on valid input. | ||
2911 | continue | ||
2912 | fi | ||
2913 | |||
2914 | rm -f conftest.err conftest.$ac_ext | ||
2915 | |||
2916 | # OK, works on sane cases. Now check whether nonexistent headers | ||
2917 | # can be detected and how. | ||
2918 | cat >conftest.$ac_ext <<_ACEOF | ||
2919 | /* confdefs.h. */ | ||
2920 | _ACEOF | ||
2921 | cat confdefs.h >>conftest.$ac_ext | ||
2922 | cat >>conftest.$ac_ext <<_ACEOF | ||
2923 | /* end confdefs.h. */ | ||
2924 | #include <ac_nonexistent.h> | ||
2925 | _ACEOF | ||
2926 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
2927 | case "(($ac_try" in | ||
2928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2929 | *) ac_try_echo=$ac_try;; | ||
2930 | esac | ||
2931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2932 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
2933 | ac_status=$? | ||
2934 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2935 | rm -f conftest.er1 | ||
2936 | cat conftest.err >&5 | ||
2937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2938 | (exit $ac_status); } >/dev/null && { | ||
2939 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
2940 | test ! -s conftest.err | ||
2941 | }; then | ||
2942 | # Broken: success on invalid input. | ||
2943 | continue | ||
2944 | else | ||
2945 | echo "$as_me: failed program was:" >&5 | ||
2946 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2947 | |||
2948 | # Passes both tests. | ||
2949 | ac_preproc_ok=: | ||
2950 | break | ||
2951 | fi | ||
2952 | |||
2953 | rm -f conftest.err conftest.$ac_ext | ||
2954 | |||
2955 | done | ||
2956 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2957 | rm -f conftest.err conftest.$ac_ext | ||
2958 | if $ac_preproc_ok; then | ||
2959 | break | ||
2960 | fi | ||
2961 | |||
2962 | done | ||
2963 | ac_cv_prog_CPP=$CPP | ||
2964 | |||
2965 | fi | ||
2966 | CPP=$ac_cv_prog_CPP | ||
2967 | else | ||
2968 | ac_cv_prog_CPP=$CPP | ||
2969 | fi | ||
2970 | { echo "$as_me:$LINENO: result: $CPP" >&5 | ||
2971 | echo "${ECHO_T}$CPP" >&6; } | ||
2972 | ac_preproc_ok=false | ||
2973 | for ac_c_preproc_warn_flag in '' yes | ||
2974 | do | ||
2975 | # Use a header file that comes with gcc, so configuring glibc | ||
2976 | # with a fresh cross-compiler works. | ||
2977 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2978 | # <limits.h> exists even on freestanding compilers. | ||
2979 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2980 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2981 | cat >conftest.$ac_ext <<_ACEOF | ||
2982 | /* confdefs.h. */ | ||
2983 | _ACEOF | ||
2984 | cat confdefs.h >>conftest.$ac_ext | ||
2985 | cat >>conftest.$ac_ext <<_ACEOF | ||
2986 | /* end confdefs.h. */ | ||
2987 | #ifdef __STDC__ | ||
2988 | # include <limits.h> | ||
2989 | #else | ||
2990 | # include <assert.h> | ||
2991 | #endif | ||
2992 | Syntax error | ||
2993 | _ACEOF | ||
2994 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
2995 | case "(($ac_try" in | ||
2996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2997 | *) ac_try_echo=$ac_try;; | ||
2998 | esac | ||
2999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3000 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3001 | ac_status=$? | ||
3002 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3003 | rm -f conftest.er1 | ||
3004 | cat conftest.err >&5 | ||
3005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3006 | (exit $ac_status); } >/dev/null && { | ||
3007 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3008 | test ! -s conftest.err | ||
3009 | }; then | ||
3010 | : | ||
3011 | else | ||
3012 | echo "$as_me: failed program was:" >&5 | ||
3013 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3014 | |||
3015 | # Broken: fails on valid input. | ||
3016 | continue | ||
3017 | fi | ||
3018 | |||
3019 | rm -f conftest.err conftest.$ac_ext | ||
3020 | |||
3021 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3022 | # can be detected and how. | ||
3023 | cat >conftest.$ac_ext <<_ACEOF | ||
3024 | /* confdefs.h. */ | ||
3025 | _ACEOF | ||
3026 | cat confdefs.h >>conftest.$ac_ext | ||
3027 | cat >>conftest.$ac_ext <<_ACEOF | ||
3028 | /* end confdefs.h. */ | ||
3029 | #include <ac_nonexistent.h> | ||
3030 | _ACEOF | ||
3031 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3032 | case "(($ac_try" in | ||
3033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3034 | *) ac_try_echo=$ac_try;; | ||
3035 | esac | ||
3036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3037 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3038 | ac_status=$? | ||
3039 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3040 | rm -f conftest.er1 | ||
3041 | cat conftest.err >&5 | ||
3042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3043 | (exit $ac_status); } >/dev/null && { | ||
3044 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3045 | test ! -s conftest.err | ||
3046 | }; then | ||
3047 | # Broken: success on invalid input. | ||
3048 | continue | ||
3049 | else | ||
3050 | echo "$as_me: failed program was:" >&5 | ||
3051 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3052 | |||
3053 | # Passes both tests. | ||
3054 | ac_preproc_ok=: | ||
3055 | break | ||
3056 | fi | ||
3057 | |||
3058 | rm -f conftest.err conftest.$ac_ext | ||
3059 | |||
3060 | done | ||
3061 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3062 | rm -f conftest.err conftest.$ac_ext | ||
3063 | if $ac_preproc_ok; then | ||
3064 | : | ||
3065 | else | ||
3066 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
3067 | See \`config.log' for more details." >&5 | ||
3068 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
3069 | See \`config.log' for more details." >&2;} | ||
3070 | { (exit 1); exit 1; }; } | ||
3071 | fi | ||
3072 | |||
3073 | ac_ext=c | ||
3074 | ac_cpp='$CPP $CPPFLAGS' | ||
3075 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3076 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3077 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3078 | |||
3079 | |||
3080 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | ||
3081 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | ||
3082 | if test "${ac_cv_path_GREP+set}" = set; then | ||
3083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3084 | else | ||
3085 | # Extract the first word of "grep ggrep" to use in msg output | ||
3086 | if test -z "$GREP"; then | ||
3087 | set dummy grep ggrep; ac_prog_name=$2 | ||
3088 | if test "${ac_cv_path_GREP+set}" = set; then | ||
3089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3090 | else | ||
3091 | ac_path_GREP_found=false | ||
3092 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3094 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3095 | do | ||
3096 | IFS=$as_save_IFS | ||
3097 | test -z "$as_dir" && as_dir=. | ||
3098 | for ac_prog in grep ggrep; do | ||
3099 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3100 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3101 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
3102 | # Check for GNU ac_path_GREP and select it if it is found. | ||
3103 | # Check for GNU $ac_path_GREP | ||
3104 | case `"$ac_path_GREP" --version 2>&1` in | ||
3105 | *GNU*) | ||
3106 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
3107 | *) | ||
3108 | ac_count=0 | ||
3109 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
3110 | while : | ||
3111 | do | ||
3112 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3113 | mv "conftest.tmp" "conftest.in" | ||
3114 | cp "conftest.in" "conftest.nl" | ||
3115 | echo 'GREP' >> "conftest.nl" | ||
3116 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3117 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3118 | ac_count=`expr $ac_count + 1` | ||
3119 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
3120 | # Best one so far, save it but keep looking for a better one | ||
3121 | ac_cv_path_GREP="$ac_path_GREP" | ||
3122 | ac_path_GREP_max=$ac_count | ||
3123 | fi | ||
3124 | # 10*(2^10) chars as input seems more than enough | ||
3125 | test $ac_count -gt 10 && break | ||
3126 | done | ||
3127 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3128 | esac | ||
3129 | |||
3130 | |||
3131 | $ac_path_GREP_found && break 3 | ||
3132 | done | ||
3133 | done | ||
3134 | |||
3135 | done | ||
3136 | IFS=$as_save_IFS | ||
3137 | |||
3138 | |||
3139 | fi | ||
3140 | |||
3141 | GREP="$ac_cv_path_GREP" | ||
3142 | if test -z "$GREP"; then | ||
3143 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
3144 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
3145 | { (exit 1); exit 1; }; } | ||
3146 | fi | ||
3147 | |||
3148 | else | ||
3149 | ac_cv_path_GREP=$GREP | ||
3150 | fi | ||
3151 | |||
3152 | |||
3153 | fi | ||
3154 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | ||
3155 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | ||
3156 | GREP="$ac_cv_path_GREP" | ||
3157 | |||
3158 | |||
3159 | { echo "$as_me:$LINENO: checking for egrep" >&5 | ||
3160 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | ||
3161 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
3162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3163 | else | ||
3164 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
3165 | then ac_cv_path_EGREP="$GREP -E" | ||
3166 | else | ||
3167 | # Extract the first word of "egrep" to use in msg output | ||
3168 | if test -z "$EGREP"; then | ||
3169 | set dummy egrep; ac_prog_name=$2 | ||
3170 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
3171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3172 | else | ||
3173 | ac_path_EGREP_found=false | ||
3174 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3176 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3177 | do | ||
3178 | IFS=$as_save_IFS | ||
3179 | test -z "$as_dir" && as_dir=. | ||
3180 | for ac_prog in egrep; do | ||
3181 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3182 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3183 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
3184 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
3185 | # Check for GNU $ac_path_EGREP | ||
3186 | case `"$ac_path_EGREP" --version 2>&1` in | ||
3187 | *GNU*) | ||
3188 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
3189 | *) | ||
3190 | ac_count=0 | ||
3191 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
3192 | while : | ||
3193 | do | ||
3194 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3195 | mv "conftest.tmp" "conftest.in" | ||
3196 | cp "conftest.in" "conftest.nl" | ||
3197 | echo 'EGREP' >> "conftest.nl" | ||
3198 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3199 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3200 | ac_count=`expr $ac_count + 1` | ||
3201 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
3202 | # Best one so far, save it but keep looking for a better one | ||
3203 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
3204 | ac_path_EGREP_max=$ac_count | ||
3205 | fi | ||
3206 | # 10*(2^10) chars as input seems more than enough | ||
3207 | test $ac_count -gt 10 && break | ||
3208 | done | ||
3209 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3210 | esac | ||
3211 | |||
3212 | |||
3213 | $ac_path_EGREP_found && break 3 | ||
3214 | done | ||
3215 | done | ||
3216 | |||
3217 | done | ||
3218 | IFS=$as_save_IFS | ||
3219 | |||
3220 | |||
3221 | fi | ||
3222 | |||
3223 | EGREP="$ac_cv_path_EGREP" | ||
3224 | if test -z "$EGREP"; then | ||
3225 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
3226 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
3227 | { (exit 1); exit 1; }; } | ||
3228 | fi | ||
3229 | |||
3230 | else | ||
3231 | ac_cv_path_EGREP=$EGREP | ||
3232 | fi | ||
3233 | |||
3234 | |||
3235 | fi | ||
3236 | fi | ||
3237 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||
3238 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | ||
3239 | EGREP="$ac_cv_path_EGREP" | ||
3240 | |||
3241 | |||
3242 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
3243 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | ||
3244 | if test "${ac_cv_header_stdc+set}" = set; then | ||
3245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3246 | else | ||
3247 | cat >conftest.$ac_ext <<_ACEOF | ||
3248 | /* confdefs.h. */ | ||
3249 | _ACEOF | ||
3250 | cat confdefs.h >>conftest.$ac_ext | ||
3251 | cat >>conftest.$ac_ext <<_ACEOF | ||
3252 | /* end confdefs.h. */ | ||
3253 | #include <stdlib.h> | ||
3254 | #include <stdarg.h> | ||
3255 | #include <string.h> | ||
3256 | #include <float.h> | ||
3257 | |||
3258 | int | ||
3259 | main () | ||
3260 | { | ||
3261 | |||
3262 | ; | ||
3263 | return 0; | ||
3264 | } | ||
3265 | _ACEOF | ||
3266 | rm -f conftest.$ac_objext | ||
3267 | if { (ac_try="$ac_compile" | ||
3268 | case "(($ac_try" in | ||
3269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3270 | *) ac_try_echo=$ac_try;; | ||
3271 | esac | ||
3272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3273 | (eval "$ac_compile") 2>conftest.er1 | ||
3274 | ac_status=$? | ||
3275 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3276 | rm -f conftest.er1 | ||
3277 | cat conftest.err >&5 | ||
3278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3279 | (exit $ac_status); } && { | ||
3280 | test -z "$ac_c_werror_flag" || | ||
3281 | test ! -s conftest.err | ||
3282 | } && test -s conftest.$ac_objext; then | ||
3283 | ac_cv_header_stdc=yes | ||
3284 | else | ||
3285 | echo "$as_me: failed program was:" >&5 | ||
3286 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3287 | |||
3288 | ac_cv_header_stdc=no | ||
3289 | fi | ||
3290 | |||
3291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3292 | |||
3293 | if test $ac_cv_header_stdc = yes; then | ||
3294 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
3295 | cat >conftest.$ac_ext <<_ACEOF | ||
3296 | /* confdefs.h. */ | ||
3297 | _ACEOF | ||
3298 | cat confdefs.h >>conftest.$ac_ext | ||
3299 | cat >>conftest.$ac_ext <<_ACEOF | ||
3300 | /* end confdefs.h. */ | ||
3301 | #include <string.h> | ||
3302 | |||
3303 | _ACEOF | ||
3304 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3305 | $EGREP "memchr" >/dev/null 2>&1; then | ||
3306 | : | ||
3307 | else | ||
3308 | ac_cv_header_stdc=no | ||
3309 | fi | ||
3310 | rm -f conftest* | ||
3311 | |||
3312 | fi | ||
3313 | |||
3314 | if test $ac_cv_header_stdc = yes; then | ||
3315 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
3316 | cat >conftest.$ac_ext <<_ACEOF | ||
3317 | /* confdefs.h. */ | ||
3318 | _ACEOF | ||
3319 | cat confdefs.h >>conftest.$ac_ext | ||
3320 | cat >>conftest.$ac_ext <<_ACEOF | ||
3321 | /* end confdefs.h. */ | ||
3322 | #include <stdlib.h> | ||
3323 | |||
3324 | _ACEOF | ||
3325 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3326 | $EGREP "free" >/dev/null 2>&1; then | ||
3327 | : | ||
3328 | else | ||
3329 | ac_cv_header_stdc=no | ||
3330 | fi | ||
3331 | rm -f conftest* | ||
3332 | |||
3333 | fi | ||
3334 | |||
3335 | if test $ac_cv_header_stdc = yes; then | ||
3336 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
3337 | if test "$cross_compiling" = yes; then | ||
3338 | : | ||
3339 | else | ||
3340 | cat >conftest.$ac_ext <<_ACEOF | ||
3341 | /* confdefs.h. */ | ||
3342 | _ACEOF | ||
3343 | cat confdefs.h >>conftest.$ac_ext | ||
3344 | cat >>conftest.$ac_ext <<_ACEOF | ||
3345 | /* end confdefs.h. */ | ||
3346 | #include <ctype.h> | ||
3347 | #include <stdlib.h> | ||
3348 | #if ((' ' & 0x0FF) == 0x020) | ||
3349 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
3350 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
3351 | #else | ||
3352 | # define ISLOWER(c) \ | ||
3353 | (('a' <= (c) && (c) <= 'i') \ | ||
3354 | || ('j' <= (c) && (c) <= 'r') \ | ||
3355 | || ('s' <= (c) && (c) <= 'z')) | ||
3356 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
3357 | #endif | ||
3358 | |||
3359 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
3360 | int | ||
3361 | main () | ||
3362 | { | ||
3363 | int i; | ||
3364 | for (i = 0; i < 256; i++) | ||
3365 | if (XOR (islower (i), ISLOWER (i)) | ||
3366 | || toupper (i) != TOUPPER (i)) | ||
3367 | return 2; | ||
3368 | return 0; | ||
3369 | } | ||
3370 | _ACEOF | ||
3371 | rm -f conftest$ac_exeext | ||
3372 | if { (ac_try="$ac_link" | ||
3373 | case "(($ac_try" in | ||
3374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3375 | *) ac_try_echo=$ac_try;; | ||
3376 | esac | ||
3377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3378 | (eval "$ac_link") 2>&5 | ||
3379 | ac_status=$? | ||
3380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3381 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
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_try") 2>&5 | ||
3388 | ac_status=$? | ||
3389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3390 | (exit $ac_status); }; }; then | ||
3391 | : | ||
3392 | else | ||
3393 | echo "$as_me: program exited with status $ac_status" >&5 | ||
3394 | echo "$as_me: failed program was:" >&5 | ||
3395 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3396 | |||
3397 | ( exit $ac_status ) | ||
3398 | ac_cv_header_stdc=no | ||
3399 | fi | ||
3400 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3401 | fi | ||
3402 | |||
3403 | |||
3404 | fi | ||
3405 | fi | ||
3406 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | ||
3407 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | ||
3408 | if test $ac_cv_header_stdc = yes; then | ||
3409 | |||
3410 | cat >>confdefs.h <<\_ACEOF | ||
3411 | #define STDC_HEADERS 1 | ||
3412 | _ACEOF | ||
3413 | |||
3414 | fi | ||
3415 | |||
3416 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
3417 | |||
3418 | |||
3419 | |||
3420 | |||
3421 | |||
3422 | |||
3423 | |||
3424 | |||
3425 | |||
3426 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
3427 | inttypes.h stdint.h unistd.h | ||
3428 | do | ||
3429 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
3430 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
3431 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
3432 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
3433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3434 | else | ||
3435 | cat >conftest.$ac_ext <<_ACEOF | ||
3436 | /* confdefs.h. */ | ||
3437 | _ACEOF | ||
3438 | cat confdefs.h >>conftest.$ac_ext | ||
3439 | cat >>conftest.$ac_ext <<_ACEOF | ||
3440 | /* end confdefs.h. */ | ||
3441 | $ac_includes_default | ||
3442 | |||
3443 | #include <$ac_header> | ||
3444 | _ACEOF | ||
3445 | rm -f conftest.$ac_objext | ||
3446 | if { (ac_try="$ac_compile" | ||
3447 | case "(($ac_try" in | ||
3448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3449 | *) ac_try_echo=$ac_try;; | ||
3450 | esac | ||
3451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3452 | (eval "$ac_compile") 2>conftest.er1 | ||
3453 | ac_status=$? | ||
3454 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3455 | rm -f conftest.er1 | ||
3456 | cat conftest.err >&5 | ||
3457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3458 | (exit $ac_status); } && { | ||
3459 | test -z "$ac_c_werror_flag" || | ||
3460 | test ! -s conftest.err | ||
3461 | } && test -s conftest.$ac_objext; then | ||
3462 | eval "$as_ac_Header=yes" | ||
3463 | else | ||
3464 | echo "$as_me: failed program was:" >&5 | ||
3465 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3466 | |||
3467 | eval "$as_ac_Header=no" | ||
3468 | fi | ||
3469 | |||
3470 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3471 | fi | ||
3472 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
3473 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
3474 | echo "${ECHO_T}$ac_res" >&6; } | ||
3475 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
3476 | cat >>confdefs.h <<_ACEOF | ||
3477 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
3478 | _ACEOF | ||
3479 | |||
3480 | fi | ||
3481 | |||
3482 | done | ||
3483 | |||
3484 | |||
3485 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | ||
3486 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | ||
3487 | if test "${ac_cv_c_bigendian+set}" = set; then | ||
3488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3489 | else | ||
3490 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
3491 | cat >conftest.$ac_ext <<_ACEOF | ||
3492 | /* confdefs.h. */ | ||
3493 | _ACEOF | ||
3494 | cat confdefs.h >>conftest.$ac_ext | ||
3495 | cat >>conftest.$ac_ext <<_ACEOF | ||
3496 | /* end confdefs.h. */ | ||
3497 | #include <sys/types.h> | ||
3498 | #include <sys/param.h> | ||
3499 | |||
3500 | int | ||
3501 | main () | ||
3502 | { | ||
3503 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ | ||
3504 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | ||
3505 | bogus endian macros | ||
3506 | #endif | ||
3507 | |||
3508 | ; | ||
3509 | return 0; | ||
3510 | } | ||
3511 | _ACEOF | ||
3512 | rm -f conftest.$ac_objext | ||
3513 | if { (ac_try="$ac_compile" | ||
3514 | case "(($ac_try" in | ||
3515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3516 | *) ac_try_echo=$ac_try;; | ||
3517 | esac | ||
3518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3519 | (eval "$ac_compile") 2>conftest.er1 | ||
3520 | ac_status=$? | ||
3521 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3522 | rm -f conftest.er1 | ||
3523 | cat conftest.err >&5 | ||
3524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3525 | (exit $ac_status); } && { | ||
3526 | test -z "$ac_c_werror_flag" || | ||
3527 | test ! -s conftest.err | ||
3528 | } && test -s conftest.$ac_objext; then | ||
3529 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
3530 | cat >conftest.$ac_ext <<_ACEOF | ||
3531 | /* confdefs.h. */ | ||
3532 | _ACEOF | ||
3533 | cat confdefs.h >>conftest.$ac_ext | ||
3534 | cat >>conftest.$ac_ext <<_ACEOF | ||
3535 | /* end confdefs.h. */ | ||
3536 | #include <sys/types.h> | ||
3537 | #include <sys/param.h> | ||
3538 | |||
3539 | int | ||
3540 | main () | ||
3541 | { | ||
3542 | #if BYTE_ORDER != BIG_ENDIAN | ||
3543 | not big endian | ||
3544 | #endif | ||
3545 | |||
3546 | ; | ||
3547 | return 0; | ||
3548 | } | ||
3549 | _ACEOF | ||
3550 | rm -f conftest.$ac_objext | ||
3551 | if { (ac_try="$ac_compile" | ||
3552 | case "(($ac_try" in | ||
3553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3554 | *) ac_try_echo=$ac_try;; | ||
3555 | esac | ||
3556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3557 | (eval "$ac_compile") 2>conftest.er1 | ||
3558 | ac_status=$? | ||
3559 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3560 | rm -f conftest.er1 | ||
3561 | cat conftest.err >&5 | ||
3562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3563 | (exit $ac_status); } && { | ||
3564 | test -z "$ac_c_werror_flag" || | ||
3565 | test ! -s conftest.err | ||
3566 | } && test -s conftest.$ac_objext; then | ||
3567 | ac_cv_c_bigendian=yes | ||
3568 | else | ||
3569 | echo "$as_me: failed program was:" >&5 | ||
3570 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3571 | |||
3572 | ac_cv_c_bigendian=no | ||
3573 | fi | ||
3574 | |||
3575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3576 | else | ||
3577 | echo "$as_me: failed program was:" >&5 | ||
3578 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3579 | |||
3580 | # It does not; compile a test program. | ||
3581 | if test "$cross_compiling" = yes; then | ||
3582 | # try to guess the endianness by grepping values into an object file | ||
3583 | ac_cv_c_bigendian=unknown | ||
3584 | cat >conftest.$ac_ext <<_ACEOF | ||
3585 | /* confdefs.h. */ | ||
3586 | _ACEOF | ||
3587 | cat confdefs.h >>conftest.$ac_ext | ||
3588 | cat >>conftest.$ac_ext <<_ACEOF | ||
3589 | /* end confdefs.h. */ | ||
3590 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
3591 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
3592 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | ||
3593 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
3594 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
3595 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | ||
3596 | int | ||
3597 | main () | ||
3598 | { | ||
3599 | _ascii (); _ebcdic (); | ||
3600 | ; | ||
3601 | return 0; | ||
3602 | } | ||
3603 | _ACEOF | ||
3604 | rm -f conftest.$ac_objext | ||
3605 | if { (ac_try="$ac_compile" | ||
3606 | case "(($ac_try" in | ||
3607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3608 | *) ac_try_echo=$ac_try;; | ||
3609 | esac | ||
3610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3611 | (eval "$ac_compile") 2>conftest.er1 | ||
3612 | ac_status=$? | ||
3613 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3614 | rm -f conftest.er1 | ||
3615 | cat conftest.err >&5 | ||
3616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3617 | (exit $ac_status); } && { | ||
3618 | test -z "$ac_c_werror_flag" || | ||
3619 | test ! -s conftest.err | ||
3620 | } && test -s conftest.$ac_objext; then | ||
3621 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | ||
3622 | ac_cv_c_bigendian=yes | ||
3623 | fi | ||
3624 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
3625 | if test "$ac_cv_c_bigendian" = unknown; then | ||
3626 | ac_cv_c_bigendian=no | ||
3627 | else | ||
3628 | # finding both strings is unlikely to happen, but who knows? | ||
3629 | ac_cv_c_bigendian=unknown | ||
3630 | fi | ||
3631 | fi | ||
3632 | else | ||
3633 | echo "$as_me: failed program was:" >&5 | ||
3634 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3635 | |||
3636 | |||
3637 | fi | ||
3638 | |||
3639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3640 | else | ||
3641 | cat >conftest.$ac_ext <<_ACEOF | ||
3642 | /* confdefs.h. */ | ||
3643 | _ACEOF | ||
3644 | cat confdefs.h >>conftest.$ac_ext | ||
3645 | cat >>conftest.$ac_ext <<_ACEOF | ||
3646 | /* end confdefs.h. */ | ||
3647 | $ac_includes_default | ||
3648 | int | ||
3649 | main () | ||
3650 | { | ||
3651 | |||
3652 | /* Are we little or big endian? From Harbison&Steele. */ | ||
3653 | union | ||
3654 | { | ||
3655 | long int l; | ||
3656 | char c[sizeof (long int)]; | ||
3657 | } u; | ||
3658 | u.l = 1; | ||
3659 | return u.c[sizeof (long int) - 1] == 1; | ||
3660 | |||
3661 | ; | ||
3662 | return 0; | ||
3663 | } | ||
3664 | _ACEOF | ||
3665 | rm -f conftest$ac_exeext | ||
3666 | if { (ac_try="$ac_link" | ||
3667 | case "(($ac_try" in | ||
3668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3669 | *) ac_try_echo=$ac_try;; | ||
3670 | esac | ||
3671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3672 | (eval "$ac_link") 2>&5 | ||
3673 | ac_status=$? | ||
3674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3675 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
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_try") 2>&5 | ||
3682 | ac_status=$? | ||
3683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3684 | (exit $ac_status); }; }; then | ||
3685 | ac_cv_c_bigendian=no | ||
3686 | else | ||
3687 | echo "$as_me: program exited with status $ac_status" >&5 | ||
3688 | echo "$as_me: failed program was:" >&5 | ||
3689 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3690 | |||
3691 | ( exit $ac_status ) | ||
3692 | ac_cv_c_bigendian=yes | ||
3693 | fi | ||
3694 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3695 | fi | ||
3696 | |||
3697 | |||
3698 | fi | ||
3699 | |||
3700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3701 | fi | ||
3702 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | ||
3703 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | ||
3704 | case $ac_cv_c_bigendian in | ||
3705 | yes) | ||
3706 | |||
3707 | cat >>confdefs.h <<\_ACEOF | ||
3708 | #define WORDS_BIGENDIAN 1 | ||
3709 | _ACEOF | ||
3710 | ;; | ||
3711 | no) | ||
3712 | ;; | ||
3713 | *) | ||
3714 | { { echo "$as_me:$LINENO: error: unknown endianness | ||
3715 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | ||
3716 | echo "$as_me: error: unknown endianness | ||
3717 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | ||
3718 | { (exit 1); exit 1; }; } ;; | ||
3719 | esac | ||
3720 | |||
3721 | |||
3722 | # Checks for programs. | ||
3723 | for ac_prog in gawk mawk nawk awk | ||
3724 | do | ||
3725 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3726 | set dummy $ac_prog; ac_word=$2 | ||
3727 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3728 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
3729 | if test "${ac_cv_prog_AWK+set}" = set; then | ||
3730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3731 | else | ||
3732 | if test -n "$AWK"; then | ||
3733 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
3734 | else | ||
3735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3736 | for as_dir in $PATH | ||
3737 | do | ||
3738 | IFS=$as_save_IFS | ||
3739 | test -z "$as_dir" && as_dir=. | ||
3740 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3741 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3742 | ac_cv_prog_AWK="$ac_prog" | ||
3743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3744 | break 2 | ||
3745 | fi | ||
3746 | done | ||
3747 | done | ||
3748 | IFS=$as_save_IFS | ||
3749 | |||
3750 | fi | ||
3751 | fi | ||
3752 | AWK=$ac_cv_prog_AWK | ||
3753 | if test -n "$AWK"; then | ||
3754 | { echo "$as_me:$LINENO: result: $AWK" >&5 | ||
3755 | echo "${ECHO_T}$AWK" >&6; } | ||
3756 | else | ||
3757 | { echo "$as_me:$LINENO: result: no" >&5 | ||
3758 | echo "${ECHO_T}no" >&6; } | ||
3759 | fi | ||
3760 | |||
3761 | |||
3762 | test -n "$AWK" && break | ||
3763 | done | ||
3764 | |||
3765 | ac_ext=c | ||
3766 | ac_cpp='$CPP $CPPFLAGS' | ||
3767 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3768 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3769 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3770 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
3771 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | ||
3772 | # On Suns, sometimes $CPP names a directory. | ||
3773 | if test -n "$CPP" && test -d "$CPP"; then | ||
3774 | CPP= | ||
3775 | fi | ||
3776 | if test -z "$CPP"; then | ||
3777 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
3778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3779 | else | ||
3780 | # Double quotes because CPP needs to be expanded | ||
3781 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
3782 | do | ||
3783 | ac_preproc_ok=false | ||
3784 | for ac_c_preproc_warn_flag in '' yes | ||
3785 | do | ||
3786 | # Use a header file that comes with gcc, so configuring glibc | ||
3787 | # with a fresh cross-compiler works. | ||
3788 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3789 | # <limits.h> exists even on freestanding compilers. | ||
3790 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3791 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3792 | cat >conftest.$ac_ext <<_ACEOF | ||
3793 | /* confdefs.h. */ | ||
3794 | _ACEOF | ||
3795 | cat confdefs.h >>conftest.$ac_ext | ||
3796 | cat >>conftest.$ac_ext <<_ACEOF | ||
3797 | /* end confdefs.h. */ | ||
3798 | #ifdef __STDC__ | ||
3799 | # include <limits.h> | ||
3800 | #else | ||
3801 | # include <assert.h> | ||
3802 | #endif | ||
3803 | Syntax error | ||
3804 | _ACEOF | ||
3805 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3806 | case "(($ac_try" in | ||
3807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3808 | *) ac_try_echo=$ac_try;; | ||
3809 | esac | ||
3810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3811 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3812 | ac_status=$? | ||
3813 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3814 | rm -f conftest.er1 | ||
3815 | cat conftest.err >&5 | ||
3816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3817 | (exit $ac_status); } >/dev/null && { | ||
3818 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3819 | test ! -s conftest.err | ||
3820 | }; then | ||
3821 | : | ||
3822 | else | ||
3823 | echo "$as_me: failed program was:" >&5 | ||
3824 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3825 | |||
3826 | # Broken: fails on valid input. | ||
3827 | continue | ||
3828 | fi | ||
3829 | |||
3830 | rm -f conftest.err conftest.$ac_ext | ||
3831 | |||
3832 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3833 | # can be detected and how. | ||
3834 | cat >conftest.$ac_ext <<_ACEOF | ||
3835 | /* confdefs.h. */ | ||
3836 | _ACEOF | ||
3837 | cat confdefs.h >>conftest.$ac_ext | ||
3838 | cat >>conftest.$ac_ext <<_ACEOF | ||
3839 | /* end confdefs.h. */ | ||
3840 | #include <ac_nonexistent.h> | ||
3841 | _ACEOF | ||
3842 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3843 | case "(($ac_try" in | ||
3844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3845 | *) ac_try_echo=$ac_try;; | ||
3846 | esac | ||
3847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3848 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3849 | ac_status=$? | ||
3850 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3851 | rm -f conftest.er1 | ||
3852 | cat conftest.err >&5 | ||
3853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3854 | (exit $ac_status); } >/dev/null && { | ||
3855 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3856 | test ! -s conftest.err | ||
3857 | }; then | ||
3858 | # Broken: success on invalid input. | ||
3859 | continue | ||
3860 | else | ||
3861 | echo "$as_me: failed program was:" >&5 | ||
3862 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3863 | |||
3864 | # Passes both tests. | ||
3865 | ac_preproc_ok=: | ||
3866 | break | ||
3867 | fi | ||
3868 | |||
3869 | rm -f conftest.err conftest.$ac_ext | ||
3870 | |||
3871 | done | ||
3872 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3873 | rm -f conftest.err conftest.$ac_ext | ||
3874 | if $ac_preproc_ok; then | ||
3875 | break | ||
3876 | fi | ||
3877 | |||
3878 | done | ||
3879 | ac_cv_prog_CPP=$CPP | ||
3880 | |||
3881 | fi | ||
3882 | CPP=$ac_cv_prog_CPP | ||
3883 | else | ||
3884 | ac_cv_prog_CPP=$CPP | ||
3885 | fi | ||
3886 | { echo "$as_me:$LINENO: result: $CPP" >&5 | ||
3887 | echo "${ECHO_T}$CPP" >&6; } | ||
3888 | ac_preproc_ok=false | ||
3889 | for ac_c_preproc_warn_flag in '' yes | ||
3890 | do | ||
3891 | # Use a header file that comes with gcc, so configuring glibc | ||
3892 | # with a fresh cross-compiler works. | ||
3893 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3894 | # <limits.h> exists even on freestanding compilers. | ||
3895 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3896 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3897 | cat >conftest.$ac_ext <<_ACEOF | ||
3898 | /* confdefs.h. */ | ||
3899 | _ACEOF | ||
3900 | cat confdefs.h >>conftest.$ac_ext | ||
3901 | cat >>conftest.$ac_ext <<_ACEOF | ||
3902 | /* end confdefs.h. */ | ||
3903 | #ifdef __STDC__ | ||
3904 | # include <limits.h> | ||
3905 | #else | ||
3906 | # include <assert.h> | ||
3907 | #endif | ||
3908 | Syntax error | ||
3909 | _ACEOF | ||
3910 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3911 | case "(($ac_try" in | ||
3912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3913 | *) ac_try_echo=$ac_try;; | ||
3914 | esac | ||
3915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3916 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3917 | ac_status=$? | ||
3918 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3919 | rm -f conftest.er1 | ||
3920 | cat conftest.err >&5 | ||
3921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3922 | (exit $ac_status); } >/dev/null && { | ||
3923 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3924 | test ! -s conftest.err | ||
3925 | }; then | ||
3926 | : | ||
3927 | else | ||
3928 | echo "$as_me: failed program was:" >&5 | ||
3929 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3930 | |||
3931 | # Broken: fails on valid input. | ||
3932 | continue | ||
3933 | fi | ||
3934 | |||
3935 | rm -f conftest.err conftest.$ac_ext | ||
3936 | |||
3937 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3938 | # can be detected and how. | ||
3939 | cat >conftest.$ac_ext <<_ACEOF | ||
3940 | /* confdefs.h. */ | ||
3941 | _ACEOF | ||
3942 | cat confdefs.h >>conftest.$ac_ext | ||
3943 | cat >>conftest.$ac_ext <<_ACEOF | ||
3944 | /* end confdefs.h. */ | ||
3945 | #include <ac_nonexistent.h> | ||
3946 | _ACEOF | ||
3947 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3948 | case "(($ac_try" in | ||
3949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3950 | *) ac_try_echo=$ac_try;; | ||
3951 | esac | ||
3952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3953 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3954 | ac_status=$? | ||
3955 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3956 | rm -f conftest.er1 | ||
3957 | cat conftest.err >&5 | ||
3958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3959 | (exit $ac_status); } >/dev/null && { | ||
3960 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3961 | test ! -s conftest.err | ||
3962 | }; then | ||
3963 | # Broken: success on invalid input. | ||
3964 | continue | ||
3965 | else | ||
3966 | echo "$as_me: failed program was:" >&5 | ||
3967 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3968 | |||
3969 | # Passes both tests. | ||
3970 | ac_preproc_ok=: | ||
3971 | break | ||
3972 | fi | ||
3973 | |||
3974 | rm -f conftest.err conftest.$ac_ext | ||
3975 | |||
3976 | done | ||
3977 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3978 | rm -f conftest.err conftest.$ac_ext | ||
3979 | if $ac_preproc_ok; then | ||
3980 | : | ||
3981 | else | ||
3982 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
3983 | See \`config.log' for more details." >&5 | ||
3984 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
3985 | See \`config.log' for more details." >&2;} | ||
3986 | { (exit 1); exit 1; }; } | ||
3987 | fi | ||
3988 | |||
3989 | ac_ext=c | ||
3990 | ac_cpp='$CPP $CPPFLAGS' | ||
3991 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3992 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3993 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3994 | |||
3995 | if test -n "$ac_tool_prefix"; then | ||
3996 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
3997 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
3998 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3999 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4000 | if test "${ac_cv_prog_RANLIB+set}" = set; then | ||
4001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4002 | else | ||
4003 | if test -n "$RANLIB"; then | ||
4004 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
4005 | else | ||
4006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4007 | for as_dir in $PATH | ||
4008 | do | ||
4009 | IFS=$as_save_IFS | ||
4010 | test -z "$as_dir" && as_dir=. | ||
4011 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4012 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4013 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
4014 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4015 | break 2 | ||
4016 | fi | ||
4017 | done | ||
4018 | done | ||
4019 | IFS=$as_save_IFS | ||
4020 | |||
4021 | fi | ||
4022 | fi | ||
4023 | RANLIB=$ac_cv_prog_RANLIB | ||
4024 | if test -n "$RANLIB"; then | ||
4025 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 | ||
4026 | echo "${ECHO_T}$RANLIB" >&6; } | ||
4027 | else | ||
4028 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4029 | echo "${ECHO_T}no" >&6; } | ||
4030 | fi | ||
4031 | |||
4032 | |||
4033 | fi | ||
4034 | if test -z "$ac_cv_prog_RANLIB"; then | ||
4035 | ac_ct_RANLIB=$RANLIB | ||
4036 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
4037 | set dummy ranlib; ac_word=$2 | ||
4038 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4039 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4040 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | ||
4041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4042 | else | ||
4043 | if test -n "$ac_ct_RANLIB"; then | ||
4044 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
4045 | else | ||
4046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4047 | for as_dir in $PATH | ||
4048 | do | ||
4049 | IFS=$as_save_IFS | ||
4050 | test -z "$as_dir" && as_dir=. | ||
4051 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4052 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4053 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
4054 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4055 | break 2 | ||
4056 | fi | ||
4057 | done | ||
4058 | done | ||
4059 | IFS=$as_save_IFS | ||
4060 | |||
4061 | fi | ||
4062 | fi | ||
4063 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
4064 | if test -n "$ac_ct_RANLIB"; then | ||
4065 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | ||
4066 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | ||
4067 | else | ||
4068 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4069 | echo "${ECHO_T}no" >&6; } | ||
4070 | fi | ||
4071 | |||
4072 | if test "x$ac_ct_RANLIB" = x; then | ||
4073 | RANLIB=":" | ||
4074 | else | ||
4075 | case $cross_compiling:$ac_tool_warned in | ||
4076 | yes:) | ||
4077 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
4078 | whose name does not start with the host triplet. If you think this | ||
4079 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
4080 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
4081 | whose name does not start with the host triplet. If you think this | ||
4082 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
4083 | ac_tool_warned=yes ;; | ||
4084 | esac | ||
4085 | RANLIB=$ac_ct_RANLIB | ||
4086 | fi | ||
4087 | else | ||
4088 | RANLIB="$ac_cv_prog_RANLIB" | ||
4089 | fi | ||
4090 | |||
4091 | # Find a good install program. We prefer a C program (faster), | ||
4092 | # so one script is as good as another. But avoid the broken or | ||
4093 | # incompatible versions: | ||
4094 | # SysV /etc/install, /usr/sbin/install | ||
4095 | # SunOS /usr/etc/install | ||
4096 | # IRIX /sbin/install | ||
4097 | # AIX /bin/install | ||
4098 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
4099 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
4100 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
4101 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
4102 | # OS/2's system install, which has a completely different semantic | ||
4103 | # ./install, which can be erroneously created by make from ./install.sh. | ||
4104 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
4105 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | ||
4106 | if test -z "$INSTALL"; then | ||
4107 | if test "${ac_cv_path_install+set}" = set; then | ||
4108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4109 | else | ||
4110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4111 | for as_dir in $PATH | ||
4112 | do | ||
4113 | IFS=$as_save_IFS | ||
4114 | test -z "$as_dir" && as_dir=. | ||
4115 | # Account for people who put trailing slashes in PATH elements. | ||
4116 | case $as_dir/ in | ||
4117 | ./ | .// | /cC/* | \ | ||
4118 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
4119 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | ||
4120 | /usr/ucb/* ) ;; | ||
4121 | *) | ||
4122 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
4123 | # Don't use installbsd from OSF since it installs stuff as root | ||
4124 | # by default. | ||
4125 | for ac_prog in ginstall scoinst install; do | ||
4126 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4127 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
4128 | if test $ac_prog = install && | ||
4129 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4130 | # AIX install. It has an incompatible calling convention. | ||
4131 | : | ||
4132 | elif test $ac_prog = install && | ||
4133 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4134 | # program-specific install script used by HP pwplus--don't use. | ||
4135 | : | ||
4136 | else | ||
4137 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
4138 | break 3 | ||
4139 | fi | ||
4140 | fi | ||
4141 | done | ||
4142 | done | ||
4143 | ;; | ||
4144 | esac | ||
4145 | done | ||
4146 | IFS=$as_save_IFS | ||
4147 | |||
4148 | |||
4149 | fi | ||
4150 | if test "${ac_cv_path_install+set}" = set; then | ||
4151 | INSTALL=$ac_cv_path_install | ||
4152 | else | ||
4153 | # As a last resort, use the slow shell script. Don't cache a | ||
4154 | # value for INSTALL within a source directory, because that will | ||
4155 | # break other packages using the cache if that directory is | ||
4156 | # removed, or if the value is a relative name. | ||
4157 | INSTALL=$ac_install_sh | ||
4158 | fi | ||
4159 | fi | ||
4160 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
4161 | echo "${ECHO_T}$INSTALL" >&6; } | ||
4162 | |||
4163 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
4164 | # It thinks the first close brace ends the variable substitution. | ||
4165 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
4166 | |||
4167 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
4168 | |||
4169 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
4170 | |||
4171 | { echo "$as_me:$LINENO: checking for egrep" >&5 | ||
4172 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | ||
4173 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
4174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4175 | else | ||
4176 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4177 | then ac_cv_path_EGREP="$GREP -E" | ||
4178 | else | ||
4179 | # Extract the first word of "egrep" to use in msg output | ||
4180 | if test -z "$EGREP"; then | ||
4181 | set dummy egrep; ac_prog_name=$2 | ||
4182 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
4183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4184 | else | ||
4185 | ac_path_EGREP_found=false | ||
4186 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4188 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4189 | do | ||
4190 | IFS=$as_save_IFS | ||
4191 | test -z "$as_dir" && as_dir=. | ||
4192 | for ac_prog in egrep; do | ||
4193 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4194 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4195 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
4196 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4197 | # Check for GNU $ac_path_EGREP | ||
4198 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4199 | *GNU*) | ||
4200 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4201 | *) | ||
4202 | ac_count=0 | ||
4203 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
4204 | while : | ||
4205 | do | ||
4206 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4207 | mv "conftest.tmp" "conftest.in" | ||
4208 | cp "conftest.in" "conftest.nl" | ||
4209 | echo 'EGREP' >> "conftest.nl" | ||
4210 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4211 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4212 | ac_count=`expr $ac_count + 1` | ||
4213 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4214 | # Best one so far, save it but keep looking for a better one | ||
4215 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4216 | ac_path_EGREP_max=$ac_count | ||
4217 | fi | ||
4218 | # 10*(2^10) chars as input seems more than enough | ||
4219 | test $ac_count -gt 10 && break | ||
4220 | done | ||
4221 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4222 | esac | ||
4223 | |||
4224 | |||
4225 | $ac_path_EGREP_found && break 3 | ||
4226 | done | ||
4227 | done | ||
4228 | |||
4229 | done | ||
4230 | IFS=$as_save_IFS | ||
4231 | |||
4232 | |||
4233 | fi | ||
4234 | |||
4235 | EGREP="$ac_cv_path_EGREP" | ||
4236 | if test -z "$EGREP"; then | ||
4237 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
4238 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
4239 | { (exit 1); exit 1; }; } | ||
4240 | fi | ||
4241 | |||
4242 | else | ||
4243 | ac_cv_path_EGREP=$EGREP | ||
4244 | fi | ||
4245 | |||
4246 | |||
4247 | fi | ||
4248 | fi | ||
4249 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||
4250 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | ||
4251 | EGREP="$ac_cv_path_EGREP" | ||
4252 | |||
4253 | |||
4254 | # Extract the first word of "ar", so it can be a program name with args. | ||
4255 | set dummy ar; ac_word=$2 | ||
4256 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4257 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4258 | if test "${ac_cv_path_AR+set}" = set; then | ||
4259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4260 | else | ||
4261 | case $AR in | ||
4262 | [\\/]* | ?:[\\/]*) | ||
4263 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | ||
4264 | ;; | ||
4265 | *) | ||
4266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4267 | for as_dir in $PATH | ||
4268 | do | ||
4269 | IFS=$as_save_IFS | ||
4270 | test -z "$as_dir" && as_dir=. | ||
4271 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4272 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4273 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | ||
4274 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4275 | break 2 | ||
4276 | fi | ||
4277 | done | ||
4278 | done | ||
4279 | IFS=$as_save_IFS | ||
4280 | |||
4281 | ;; | ||
4282 | esac | ||
4283 | fi | ||
4284 | AR=$ac_cv_path_AR | ||
4285 | if test -n "$AR"; then | ||
4286 | { echo "$as_me:$LINENO: result: $AR" >&5 | ||
4287 | echo "${ECHO_T}$AR" >&6; } | ||
4288 | else | ||
4289 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4290 | echo "${ECHO_T}no" >&6; } | ||
4291 | fi | ||
4292 | |||
4293 | |||
4294 | # Extract the first word of "cat", so it can be a program name with args. | ||
4295 | set dummy cat; ac_word=$2 | ||
4296 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4297 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4298 | if test "${ac_cv_path_CAT+set}" = set; then | ||
4299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4300 | else | ||
4301 | case $CAT in | ||
4302 | [\\/]* | ?:[\\/]*) | ||
4303 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. | ||
4304 | ;; | ||
4305 | *) | ||
4306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4307 | for as_dir in $PATH | ||
4308 | do | ||
4309 | IFS=$as_save_IFS | ||
4310 | test -z "$as_dir" && as_dir=. | ||
4311 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4312 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4313 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" | ||
4314 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4315 | break 2 | ||
4316 | fi | ||
4317 | done | ||
4318 | done | ||
4319 | IFS=$as_save_IFS | ||
4320 | |||
4321 | ;; | ||
4322 | esac | ||
4323 | fi | ||
4324 | CAT=$ac_cv_path_CAT | ||
4325 | if test -n "$CAT"; then | ||
4326 | { echo "$as_me:$LINENO: result: $CAT" >&5 | ||
4327 | echo "${ECHO_T}$CAT" >&6; } | ||
4328 | else | ||
4329 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4330 | echo "${ECHO_T}no" >&6; } | ||
4331 | fi | ||
4332 | |||
4333 | |||
4334 | # Extract the first word of "kill", so it can be a program name with args. | ||
4335 | set dummy kill; ac_word=$2 | ||
4336 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4337 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4338 | if test "${ac_cv_path_KILL+set}" = set; then | ||
4339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4340 | else | ||
4341 | case $KILL in | ||
4342 | [\\/]* | ?:[\\/]*) | ||
4343 | ac_cv_path_KILL="$KILL" # Let the user override the test with a path. | ||
4344 | ;; | ||
4345 | *) | ||
4346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4347 | for as_dir in $PATH | ||
4348 | do | ||
4349 | IFS=$as_save_IFS | ||
4350 | test -z "$as_dir" && as_dir=. | ||
4351 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4352 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4353 | ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext" | ||
4354 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4355 | break 2 | ||
4356 | fi | ||
4357 | done | ||
4358 | done | ||
4359 | IFS=$as_save_IFS | ||
4360 | |||
4361 | ;; | ||
4362 | esac | ||
4363 | fi | ||
4364 | KILL=$ac_cv_path_KILL | ||
4365 | if test -n "$KILL"; then | ||
4366 | { echo "$as_me:$LINENO: result: $KILL" >&5 | ||
4367 | echo "${ECHO_T}$KILL" >&6; } | ||
4368 | else | ||
4369 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4370 | echo "${ECHO_T}no" >&6; } | ||
4371 | fi | ||
4372 | |||
4373 | |||
4374 | for ac_prog in perl5 perl | ||
4375 | do | ||
4376 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4377 | set dummy $ac_prog; ac_word=$2 | ||
4378 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4379 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4380 | if test "${ac_cv_path_PERL+set}" = set; then | ||
4381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4382 | else | ||
4383 | case $PERL in | ||
4384 | [\\/]* | ?:[\\/]*) | ||
4385 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
4386 | ;; | ||
4387 | *) | ||
4388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4389 | for as_dir in $PATH | ||
4390 | do | ||
4391 | IFS=$as_save_IFS | ||
4392 | test -z "$as_dir" && as_dir=. | ||
4393 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4394 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4395 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | ||
4396 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4397 | break 2 | ||
4398 | fi | ||
4399 | done | ||
4400 | done | ||
4401 | IFS=$as_save_IFS | ||
4402 | |||
4403 | ;; | ||
4404 | esac | ||
4405 | fi | ||
4406 | PERL=$ac_cv_path_PERL | ||
4407 | if test -n "$PERL"; then | ||
4408 | { echo "$as_me:$LINENO: result: $PERL" >&5 | ||
4409 | echo "${ECHO_T}$PERL" >&6; } | ||
4410 | else | ||
4411 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4412 | echo "${ECHO_T}no" >&6; } | ||
4413 | fi | ||
4414 | |||
4415 | |||
4416 | test -n "$PERL" && break | ||
4417 | done | ||
4418 | |||
4419 | # Extract the first word of "sed", so it can be a program name with args. | ||
4420 | set dummy sed; ac_word=$2 | ||
4421 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4422 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4423 | if test "${ac_cv_path_SED+set}" = set; then | ||
4424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4425 | else | ||
4426 | case $SED in | ||
4427 | [\\/]* | ?:[\\/]*) | ||
4428 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
4429 | ;; | ||
4430 | *) | ||
4431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4432 | for as_dir in $PATH | ||
4433 | do | ||
4434 | IFS=$as_save_IFS | ||
4435 | test -z "$as_dir" && as_dir=. | ||
4436 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4437 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4438 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | ||
4439 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4440 | break 2 | ||
4441 | fi | ||
4442 | done | ||
4443 | done | ||
4444 | IFS=$as_save_IFS | ||
4445 | |||
4446 | ;; | ||
4447 | esac | ||
4448 | fi | ||
4449 | SED=$ac_cv_path_SED | ||
4450 | if test -n "$SED"; then | ||
4451 | { echo "$as_me:$LINENO: result: $SED" >&5 | ||
4452 | echo "${ECHO_T}$SED" >&6; } | ||
4453 | else | ||
4454 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4455 | echo "${ECHO_T}no" >&6; } | ||
4456 | fi | ||
4457 | |||
4458 | |||
4459 | |||
4460 | # Extract the first word of "ent", so it can be a program name with args. | ||
4461 | set dummy ent; ac_word=$2 | ||
4462 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4463 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4464 | if test "${ac_cv_path_ENT+set}" = set; then | ||
4465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4466 | else | ||
4467 | case $ENT in | ||
4468 | [\\/]* | ?:[\\/]*) | ||
4469 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
4470 | ;; | ||
4471 | *) | ||
4472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4473 | for as_dir in $PATH | ||
4474 | do | ||
4475 | IFS=$as_save_IFS | ||
4476 | test -z "$as_dir" && as_dir=. | ||
4477 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4478 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4479 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" | ||
4480 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4481 | break 2 | ||
4482 | fi | ||
4483 | done | ||
4484 | done | ||
4485 | IFS=$as_save_IFS | ||
4486 | |||
4487 | ;; | ||
4488 | esac | ||
4489 | fi | ||
4490 | ENT=$ac_cv_path_ENT | ||
4491 | if test -n "$ENT"; then | ||
4492 | { echo "$as_me:$LINENO: result: $ENT" >&5 | ||
4493 | echo "${ECHO_T}$ENT" >&6; } | ||
4494 | else | ||
4495 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4496 | echo "${ECHO_T}no" >&6; } | ||
4497 | fi | ||
4498 | |||
4499 | |||
4500 | |||
4501 | # Extract the first word of "bash", so it can be a program name with args. | ||
4502 | set dummy bash; ac_word=$2 | ||
4503 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4504 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4505 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4507 | else | ||
4508 | case $TEST_MINUS_S_SH in | ||
4509 | [\\/]* | ?:[\\/]*) | ||
4510 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4511 | ;; | ||
4512 | *) | ||
4513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4514 | for as_dir in $PATH | ||
4515 | do | ||
4516 | IFS=$as_save_IFS | ||
4517 | test -z "$as_dir" && as_dir=. | ||
4518 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4519 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4520 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4521 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4522 | break 2 | ||
4523 | fi | ||
4524 | done | ||
4525 | done | ||
4526 | IFS=$as_save_IFS | ||
4527 | |||
4528 | ;; | ||
4529 | esac | ||
4530 | fi | ||
4531 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4532 | if test -n "$TEST_MINUS_S_SH"; then | ||
4533 | { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4534 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } | ||
4535 | else | ||
4536 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4537 | echo "${ECHO_T}no" >&6; } | ||
4538 | fi | ||
4539 | |||
4540 | |||
4541 | # Extract the first word of "ksh", so it can be a program name with args. | ||
4542 | set dummy ksh; ac_word=$2 | ||
4543 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4544 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4545 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4547 | else | ||
4548 | case $TEST_MINUS_S_SH in | ||
4549 | [\\/]* | ?:[\\/]*) | ||
4550 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4551 | ;; | ||
4552 | *) | ||
4553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4554 | for as_dir in $PATH | ||
4555 | do | ||
4556 | IFS=$as_save_IFS | ||
4557 | test -z "$as_dir" && as_dir=. | ||
4558 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4559 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4560 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4561 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4562 | break 2 | ||
4563 | fi | ||
4564 | done | ||
4565 | done | ||
4566 | IFS=$as_save_IFS | ||
4567 | |||
4568 | ;; | ||
4569 | esac | ||
4570 | fi | ||
4571 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4572 | if test -n "$TEST_MINUS_S_SH"; then | ||
4573 | { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4574 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } | ||
4575 | else | ||
4576 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4577 | echo "${ECHO_T}no" >&6; } | ||
4578 | fi | ||
4579 | |||
4580 | |||
4581 | # Extract the first word of "sh", so it can be a program name with args. | ||
4582 | set dummy sh; ac_word=$2 | ||
4583 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4584 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4585 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4587 | else | ||
4588 | case $TEST_MINUS_S_SH in | ||
4589 | [\\/]* | ?:[\\/]*) | ||
4590 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4591 | ;; | ||
4592 | *) | ||
4593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4594 | for as_dir in $PATH | ||
4595 | do | ||
4596 | IFS=$as_save_IFS | ||
4597 | test -z "$as_dir" && as_dir=. | ||
4598 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4599 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4600 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4601 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4602 | break 2 | ||
4603 | fi | ||
4604 | done | ||
4605 | done | ||
4606 | IFS=$as_save_IFS | ||
4607 | |||
4608 | ;; | ||
4609 | esac | ||
4610 | fi | ||
4611 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4612 | if test -n "$TEST_MINUS_S_SH"; then | ||
4613 | { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4614 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } | ||
4615 | else | ||
4616 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4617 | echo "${ECHO_T}no" >&6; } | ||
4618 | fi | ||
4619 | |||
4620 | |||
4621 | # Extract the first word of "sh", so it can be a program name with args. | ||
4622 | set dummy sh; ac_word=$2 | ||
4623 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4624 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4625 | if test "${ac_cv_path_SH+set}" = set; then | ||
4626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4627 | else | ||
4628 | case $SH in | ||
4629 | [\\/]* | ?:[\\/]*) | ||
4630 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
4631 | ;; | ||
4632 | *) | ||
4633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4634 | for as_dir in $PATH | ||
4635 | do | ||
4636 | IFS=$as_save_IFS | ||
4637 | test -z "$as_dir" && as_dir=. | ||
4638 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4639 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4640 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4641 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4642 | break 2 | ||
4643 | fi | ||
4644 | done | ||
4645 | done | ||
4646 | IFS=$as_save_IFS | ||
4647 | |||
4648 | ;; | ||
4649 | esac | ||
4650 | fi | ||
4651 | SH=$ac_cv_path_SH | ||
4652 | if test -n "$SH"; then | ||
4653 | { echo "$as_me:$LINENO: result: $SH" >&5 | ||
4654 | echo "${ECHO_T}$SH" >&6; } | ||
4655 | else | ||
4656 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4657 | echo "${ECHO_T}no" >&6; } | ||
4658 | fi | ||
4659 | |||
4660 | |||
4661 | TEST_SHELL=sh | ||
4662 | |||
4663 | |||
4664 | # Extract the first word of "groupadd", so it can be a program name with args. | ||
4665 | set dummy groupadd; ac_word=$2 | ||
4666 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4667 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4668 | if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then | ||
4669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4670 | else | ||
4671 | case $PATH_GROUPADD_PROG in | ||
4672 | [\\/]* | ?:[\\/]*) | ||
4673 | ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path. | ||
4674 | ;; | ||
4675 | *) | ||
4676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4677 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
4678 | do | ||
4679 | IFS=$as_save_IFS | ||
4680 | test -z "$as_dir" && as_dir=. | ||
4681 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4682 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4683 | ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
4684 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4685 | break 2 | ||
4686 | fi | ||
4687 | done | ||
4688 | done | ||
4689 | IFS=$as_save_IFS | ||
4690 | |||
4691 | test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" | ||
4692 | ;; | ||
4693 | esac | ||
4694 | fi | ||
4695 | PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG | ||
4696 | if test -n "$PATH_GROUPADD_PROG"; then | ||
4697 | { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5 | ||
4698 | echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; } | ||
4699 | else | ||
4700 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4701 | echo "${ECHO_T}no" >&6; } | ||
4702 | fi | ||
4703 | |||
4704 | |||
4705 | # Extract the first word of "useradd", so it can be a program name with args. | ||
4706 | set dummy useradd; ac_word=$2 | ||
4707 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4708 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4709 | if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then | ||
4710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4711 | else | ||
4712 | case $PATH_USERADD_PROG in | ||
4713 | [\\/]* | ?:[\\/]*) | ||
4714 | ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path. | ||
4715 | ;; | ||
4716 | *) | ||
4717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4718 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
4719 | do | ||
4720 | IFS=$as_save_IFS | ||
4721 | test -z "$as_dir" && as_dir=. | ||
4722 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4723 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4724 | ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
4725 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4726 | break 2 | ||
4727 | fi | ||
4728 | done | ||
4729 | done | ||
4730 | IFS=$as_save_IFS | ||
4731 | |||
4732 | test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" | ||
4733 | ;; | ||
4734 | esac | ||
4735 | fi | ||
4736 | PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG | ||
4737 | if test -n "$PATH_USERADD_PROG"; then | ||
4738 | { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5 | ||
4739 | echo "${ECHO_T}$PATH_USERADD_PROG" >&6; } | ||
4740 | else | ||
4741 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4742 | echo "${ECHO_T}no" >&6; } | ||
4743 | fi | ||
4744 | |||
4745 | |||
4746 | # Extract the first word of "pkgmk", so it can be a program name with args. | ||
4747 | set dummy pkgmk; ac_word=$2 | ||
4748 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4749 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4750 | if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then | ||
4751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4752 | else | ||
4753 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
4754 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. | ||
4755 | else | ||
4756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4757 | for as_dir in $PATH | ||
4758 | do | ||
4759 | IFS=$as_save_IFS | ||
4760 | test -z "$as_dir" && as_dir=. | ||
4761 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4762 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4763 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" | ||
4764 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4765 | break 2 | ||
4766 | fi | ||
4767 | done | ||
4768 | done | ||
4769 | IFS=$as_save_IFS | ||
4770 | |||
4771 | test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" | ||
4772 | fi | ||
4773 | fi | ||
4774 | MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED | ||
4775 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
4776 | { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5 | ||
4777 | echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; } | ||
4778 | else | ||
4779 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4780 | echo "${ECHO_T}no" >&6; } | ||
4781 | fi | ||
4782 | |||
4783 | |||
4784 | if test -x /sbin/sh; then | ||
4785 | STARTUP_SCRIPT_SHELL=/sbin/sh | ||
4786 | |||
4787 | else | ||
4788 | STARTUP_SCRIPT_SHELL=/bin/sh | ||
4789 | |||
4790 | fi | ||
4791 | |||
4792 | # System features | ||
4793 | # Check whether --enable-largefile was given. | ||
4794 | if test "${enable_largefile+set}" = set; then | ||
4795 | enableval=$enable_largefile; | ||
4796 | fi | ||
4797 | |||
4798 | if test "$enable_largefile" != no; then | ||
4799 | |||
4800 | { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | ||
4801 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } | ||
4802 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | ||
4803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4804 | else | ||
4805 | ac_cv_sys_largefile_CC=no | ||
4806 | if test "$GCC" != yes; then | ||
4807 | ac_save_CC=$CC | ||
4808 | while :; do | ||
4809 | # IRIX 6.2 and later do not support large files by default, | ||
4810 | # so use the C compiler's -n32 option if that helps. | ||
4811 | cat >conftest.$ac_ext <<_ACEOF | ||
4812 | /* confdefs.h. */ | ||
4813 | _ACEOF | ||
4814 | cat confdefs.h >>conftest.$ac_ext | ||
4815 | cat >>conftest.$ac_ext <<_ACEOF | ||
4816 | /* end confdefs.h. */ | ||
4817 | #include <sys/types.h> | ||
4818 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
4819 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
4820 | since some C++ compilers masquerading as C compilers | ||
4821 | incorrectly reject 9223372036854775807. */ | ||
4822 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
4823 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
4824 | && LARGE_OFF_T % 2147483647 == 1) | ||
4825 | ? 1 : -1]; | ||
4826 | int | ||
4827 | main () | ||
4828 | { | ||
4829 | |||
4830 | ; | ||
4831 | return 0; | ||
4832 | } | ||
4833 | _ACEOF | ||
4834 | rm -f conftest.$ac_objext | ||
4835 | if { (ac_try="$ac_compile" | ||
4836 | case "(($ac_try" in | ||
4837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4838 | *) ac_try_echo=$ac_try;; | ||
4839 | esac | ||
4840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4841 | (eval "$ac_compile") 2>conftest.er1 | ||
4842 | ac_status=$? | ||
4843 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4844 | rm -f conftest.er1 | ||
4845 | cat conftest.err >&5 | ||
4846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4847 | (exit $ac_status); } && { | ||
4848 | test -z "$ac_c_werror_flag" || | ||
4849 | test ! -s conftest.err | ||
4850 | } && test -s conftest.$ac_objext; then | ||
4851 | break | ||
4852 | else | ||
4853 | echo "$as_me: failed program was:" >&5 | ||
4854 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4855 | |||
4856 | |||
4857 | fi | ||
4858 | |||
4859 | rm -f core conftest.err conftest.$ac_objext | ||
4860 | CC="$CC -n32" | ||
4861 | rm -f conftest.$ac_objext | ||
4862 | if { (ac_try="$ac_compile" | ||
4863 | case "(($ac_try" in | ||
4864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4865 | *) ac_try_echo=$ac_try;; | ||
4866 | esac | ||
4867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4868 | (eval "$ac_compile") 2>conftest.er1 | ||
4869 | ac_status=$? | ||
4870 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4871 | rm -f conftest.er1 | ||
4872 | cat conftest.err >&5 | ||
4873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4874 | (exit $ac_status); } && { | ||
4875 | test -z "$ac_c_werror_flag" || | ||
4876 | test ! -s conftest.err | ||
4877 | } && test -s conftest.$ac_objext; then | ||
4878 | ac_cv_sys_largefile_CC=' -n32'; break | ||
4879 | else | ||
4880 | echo "$as_me: failed program was:" >&5 | ||
4881 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4882 | |||
4883 | |||
4884 | fi | ||
4885 | |||
4886 | rm -f core conftest.err conftest.$ac_objext | ||
4887 | break | ||
4888 | done | ||
4889 | CC=$ac_save_CC | ||
4890 | rm -f conftest.$ac_ext | ||
4891 | fi | ||
4892 | fi | ||
4893 | { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | ||
4894 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } | ||
4895 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
4896 | CC=$CC$ac_cv_sys_largefile_CC | ||
4897 | fi | ||
4898 | |||
4899 | { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
4900 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } | ||
4901 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | ||
4902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4903 | else | ||
4904 | while :; do | ||
4905 | cat >conftest.$ac_ext <<_ACEOF | ||
4906 | /* confdefs.h. */ | ||
4907 | _ACEOF | ||
4908 | cat confdefs.h >>conftest.$ac_ext | ||
4909 | cat >>conftest.$ac_ext <<_ACEOF | ||
4910 | /* end confdefs.h. */ | ||
4911 | #include <sys/types.h> | ||
4912 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
4913 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
4914 | since some C++ compilers masquerading as C compilers | ||
4915 | incorrectly reject 9223372036854775807. */ | ||
4916 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
4917 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
4918 | && LARGE_OFF_T % 2147483647 == 1) | ||
4919 | ? 1 : -1]; | ||
4920 | int | ||
4921 | main () | ||
4922 | { | ||
4923 | |||
4924 | ; | ||
4925 | return 0; | ||
4926 | } | ||
4927 | _ACEOF | ||
4928 | rm -f conftest.$ac_objext | ||
4929 | if { (ac_try="$ac_compile" | ||
4930 | case "(($ac_try" in | ||
4931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4932 | *) ac_try_echo=$ac_try;; | ||
4933 | esac | ||
4934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4935 | (eval "$ac_compile") 2>conftest.er1 | ||
4936 | ac_status=$? | ||
4937 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4938 | rm -f conftest.er1 | ||
4939 | cat conftest.err >&5 | ||
4940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4941 | (exit $ac_status); } && { | ||
4942 | test -z "$ac_c_werror_flag" || | ||
4943 | test ! -s conftest.err | ||
4944 | } && test -s conftest.$ac_objext; then | ||
4945 | ac_cv_sys_file_offset_bits=no; break | ||
4946 | else | ||
4947 | echo "$as_me: failed program was:" >&5 | ||
4948 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4949 | |||
4950 | |||
4951 | fi | ||
4952 | |||
4953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4954 | cat >conftest.$ac_ext <<_ACEOF | ||
4955 | /* confdefs.h. */ | ||
4956 | _ACEOF | ||
4957 | cat confdefs.h >>conftest.$ac_ext | ||
4958 | cat >>conftest.$ac_ext <<_ACEOF | ||
4959 | /* end confdefs.h. */ | ||
4960 | #define _FILE_OFFSET_BITS 64 | ||
4961 | #include <sys/types.h> | ||
4962 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
4963 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
4964 | since some C++ compilers masquerading as C compilers | ||
4965 | incorrectly reject 9223372036854775807. */ | ||
4966 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
4967 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
4968 | && LARGE_OFF_T % 2147483647 == 1) | ||
4969 | ? 1 : -1]; | ||
4970 | int | ||
4971 | main () | ||
4972 | { | ||
4973 | |||
4974 | ; | ||
4975 | return 0; | ||
4976 | } | ||
4977 | _ACEOF | ||
4978 | rm -f conftest.$ac_objext | ||
4979 | if { (ac_try="$ac_compile" | ||
4980 | case "(($ac_try" in | ||
4981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4982 | *) ac_try_echo=$ac_try;; | ||
4983 | esac | ||
4984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4985 | (eval "$ac_compile") 2>conftest.er1 | ||
4986 | ac_status=$? | ||
4987 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4988 | rm -f conftest.er1 | ||
4989 | cat conftest.err >&5 | ||
4990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4991 | (exit $ac_status); } && { | ||
4992 | test -z "$ac_c_werror_flag" || | ||
4993 | test ! -s conftest.err | ||
4994 | } && test -s conftest.$ac_objext; then | ||
4995 | ac_cv_sys_file_offset_bits=64; break | ||
4996 | else | ||
4997 | echo "$as_me: failed program was:" >&5 | ||
4998 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4999 | |||
5000 | |||
5001 | fi | ||
5002 | |||
5003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5004 | ac_cv_sys_file_offset_bits=unknown | ||
5005 | break | ||
5006 | done | ||
5007 | fi | ||
5008 | { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | ||
5009 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } | ||
5010 | case $ac_cv_sys_file_offset_bits in #( | ||
5011 | no | unknown) ;; | ||
5012 | *) | ||
5013 | cat >>confdefs.h <<_ACEOF | ||
5014 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
5015 | _ACEOF | ||
5016 | ;; | ||
5017 | esac | ||
5018 | rm -f conftest* | ||
5019 | if test $ac_cv_sys_file_offset_bits = unknown; then | ||
5020 | { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | ||
5021 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } | ||
5022 | if test "${ac_cv_sys_large_files+set}" = set; then | ||
5023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5024 | else | ||
5025 | while :; do | ||
5026 | cat >conftest.$ac_ext <<_ACEOF | ||
5027 | /* confdefs.h. */ | ||
5028 | _ACEOF | ||
5029 | cat confdefs.h >>conftest.$ac_ext | ||
5030 | cat >>conftest.$ac_ext <<_ACEOF | ||
5031 | /* end confdefs.h. */ | ||
5032 | #include <sys/types.h> | ||
5033 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5034 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5035 | since some C++ compilers masquerading as C compilers | ||
5036 | incorrectly reject 9223372036854775807. */ | ||
5037 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5038 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5039 | && LARGE_OFF_T % 2147483647 == 1) | ||
5040 | ? 1 : -1]; | ||
5041 | int | ||
5042 | main () | ||
5043 | { | ||
5044 | |||
5045 | ; | ||
5046 | return 0; | ||
5047 | } | ||
5048 | _ACEOF | ||
5049 | rm -f conftest.$ac_objext | ||
5050 | if { (ac_try="$ac_compile" | ||
5051 | case "(($ac_try" in | ||
5052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5053 | *) ac_try_echo=$ac_try;; | ||
5054 | esac | ||
5055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5056 | (eval "$ac_compile") 2>conftest.er1 | ||
5057 | ac_status=$? | ||
5058 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5059 | rm -f conftest.er1 | ||
5060 | cat conftest.err >&5 | ||
5061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5062 | (exit $ac_status); } && { | ||
5063 | test -z "$ac_c_werror_flag" || | ||
5064 | test ! -s conftest.err | ||
5065 | } && test -s conftest.$ac_objext; then | ||
5066 | ac_cv_sys_large_files=no; break | ||
5067 | else | ||
5068 | echo "$as_me: failed program was:" >&5 | ||
5069 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5070 | |||
5071 | |||
5072 | fi | ||
5073 | |||
5074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5075 | cat >conftest.$ac_ext <<_ACEOF | ||
5076 | /* confdefs.h. */ | ||
5077 | _ACEOF | ||
5078 | cat confdefs.h >>conftest.$ac_ext | ||
5079 | cat >>conftest.$ac_ext <<_ACEOF | ||
5080 | /* end confdefs.h. */ | ||
5081 | #define _LARGE_FILES 1 | ||
5082 | #include <sys/types.h> | ||
5083 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5084 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5085 | since some C++ compilers masquerading as C compilers | ||
5086 | incorrectly reject 9223372036854775807. */ | ||
5087 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5088 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5089 | && LARGE_OFF_T % 2147483647 == 1) | ||
5090 | ? 1 : -1]; | ||
5091 | int | ||
5092 | main () | ||
5093 | { | ||
5094 | |||
5095 | ; | ||
5096 | return 0; | ||
5097 | } | ||
5098 | _ACEOF | ||
5099 | rm -f conftest.$ac_objext | ||
5100 | if { (ac_try="$ac_compile" | ||
5101 | case "(($ac_try" in | ||
5102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5103 | *) ac_try_echo=$ac_try;; | ||
5104 | esac | ||
5105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5106 | (eval "$ac_compile") 2>conftest.er1 | ||
5107 | ac_status=$? | ||
5108 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5109 | rm -f conftest.er1 | ||
5110 | cat conftest.err >&5 | ||
5111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5112 | (exit $ac_status); } && { | ||
5113 | test -z "$ac_c_werror_flag" || | ||
5114 | test ! -s conftest.err | ||
5115 | } && test -s conftest.$ac_objext; then | ||
5116 | ac_cv_sys_large_files=1; break | ||
5117 | else | ||
5118 | echo "$as_me: failed program was:" >&5 | ||
5119 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5120 | |||
5121 | |||
5122 | fi | ||
5123 | |||
5124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5125 | ac_cv_sys_large_files=unknown | ||
5126 | break | ||
5127 | done | ||
5128 | fi | ||
5129 | { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | ||
5130 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } | ||
5131 | case $ac_cv_sys_large_files in #( | ||
5132 | no | unknown) ;; | ||
5133 | *) | ||
5134 | cat >>confdefs.h <<_ACEOF | ||
5135 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
5136 | _ACEOF | ||
5137 | ;; | ||
5138 | esac | ||
5139 | rm -f conftest* | ||
5140 | fi | ||
5141 | fi | ||
5142 | |||
5143 | |||
5144 | if test -z "$AR" ; then | ||
5145 | { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5 | ||
5146 | echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;} | ||
5147 | { (exit 1); exit 1; }; } | ||
5148 | fi | ||
5149 | |||
5150 | # Use LOGIN_PROGRAM from environment if possible | ||
5151 | if test ! -z "$LOGIN_PROGRAM" ; then | ||
5152 | |||
5153 | cat >>confdefs.h <<_ACEOF | ||
5154 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" | ||
5155 | _ACEOF | ||
5156 | |||
5157 | else | ||
5158 | # Search for login | ||
5159 | # Extract the first word of "login", so it can be a program name with args. | ||
5160 | set dummy login; ac_word=$2 | ||
5161 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5162 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5163 | if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then | ||
5164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5165 | else | ||
5166 | case $LOGIN_PROGRAM_FALLBACK in | ||
5167 | [\\/]* | ?:[\\/]*) | ||
5168 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. | ||
5169 | ;; | ||
5170 | *) | ||
5171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5172 | for as_dir in $PATH | ||
5173 | do | ||
5174 | IFS=$as_save_IFS | ||
5175 | test -z "$as_dir" && as_dir=. | ||
5176 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5177 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5178 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext" | ||
5179 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5180 | break 2 | ||
5181 | fi | ||
5182 | done | ||
5183 | done | ||
5184 | IFS=$as_save_IFS | ||
5185 | |||
5186 | ;; | ||
5187 | esac | ||
5188 | fi | ||
5189 | LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK | ||
5190 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then | ||
5191 | { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5 | ||
5192 | echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; } | ||
5193 | else | ||
5194 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5195 | echo "${ECHO_T}no" >&6; } | ||
5196 | fi | ||
5197 | |||
5198 | |||
5199 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | ||
5200 | cat >>confdefs.h <<_ACEOF | ||
5201 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" | ||
5202 | _ACEOF | ||
5203 | |||
5204 | fi | ||
5205 | fi | ||
5206 | |||
5207 | # Extract the first word of "passwd", so it can be a program name with args. | ||
5208 | set dummy passwd; ac_word=$2 | ||
5209 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5210 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5211 | if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then | ||
5212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5213 | else | ||
5214 | case $PATH_PASSWD_PROG in | ||
5215 | [\\/]* | ?:[\\/]*) | ||
5216 | ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. | ||
5217 | ;; | ||
5218 | *) | ||
5219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5220 | for as_dir in $PATH | ||
5221 | do | ||
5222 | IFS=$as_save_IFS | ||
5223 | test -z "$as_dir" && as_dir=. | ||
5224 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5225 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5226 | ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5227 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5228 | break 2 | ||
5229 | fi | ||
5230 | done | ||
5231 | done | ||
5232 | IFS=$as_save_IFS | ||
5233 | |||
5234 | ;; | ||
5235 | esac | ||
5236 | fi | ||
5237 | PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG | ||
5238 | if test -n "$PATH_PASSWD_PROG"; then | ||
5239 | { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5 | ||
5240 | echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; } | ||
5241 | else | ||
5242 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5243 | echo "${ECHO_T}no" >&6; } | ||
5244 | fi | ||
5245 | |||
5246 | |||
5247 | if test ! -z "$PATH_PASSWD_PROG" ; then | ||
5248 | |||
5249 | cat >>confdefs.h <<_ACEOF | ||
5250 | #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" | ||
5251 | _ACEOF | ||
5252 | |||
5253 | fi | ||
5254 | |||
5255 | if test -z "$LD" ; then | ||
5256 | LD=$CC | ||
5257 | fi | ||
5258 | |||
5259 | |||
5260 | { echo "$as_me:$LINENO: checking for inline" >&5 | ||
5261 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | ||
5262 | if test "${ac_cv_c_inline+set}" = set; then | ||
5263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5264 | else | ||
5265 | ac_cv_c_inline=no | ||
5266 | for ac_kw in inline __inline__ __inline; do | ||
5267 | cat >conftest.$ac_ext <<_ACEOF | ||
5268 | /* confdefs.h. */ | ||
5269 | _ACEOF | ||
5270 | cat confdefs.h >>conftest.$ac_ext | ||
5271 | cat >>conftest.$ac_ext <<_ACEOF | ||
5272 | /* end confdefs.h. */ | ||
5273 | #ifndef __cplusplus | ||
5274 | typedef int foo_t; | ||
5275 | static $ac_kw foo_t static_foo () {return 0; } | ||
5276 | $ac_kw foo_t foo () {return 0; } | ||
5277 | #endif | ||
5278 | |||
5279 | _ACEOF | ||
5280 | rm -f conftest.$ac_objext | ||
5281 | if { (ac_try="$ac_compile" | ||
5282 | case "(($ac_try" in | ||
5283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5284 | *) ac_try_echo=$ac_try;; | ||
5285 | esac | ||
5286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5287 | (eval "$ac_compile") 2>conftest.er1 | ||
5288 | ac_status=$? | ||
5289 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5290 | rm -f conftest.er1 | ||
5291 | cat conftest.err >&5 | ||
5292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5293 | (exit $ac_status); } && { | ||
5294 | test -z "$ac_c_werror_flag" || | ||
5295 | test ! -s conftest.err | ||
5296 | } && test -s conftest.$ac_objext; then | ||
5297 | ac_cv_c_inline=$ac_kw | ||
5298 | else | ||
5299 | echo "$as_me: failed program was:" >&5 | ||
5300 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5301 | |||
5302 | |||
5303 | fi | ||
5304 | |||
5305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5306 | test "$ac_cv_c_inline" != no && break | ||
5307 | done | ||
5308 | |||
5309 | fi | ||
5310 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | ||
5311 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | ||
5312 | |||
5313 | |||
5314 | case $ac_cv_c_inline in | ||
5315 | inline | yes) ;; | ||
5316 | *) | ||
5317 | case $ac_cv_c_inline in | ||
5318 | no) ac_val=;; | ||
5319 | *) ac_val=$ac_cv_c_inline;; | ||
5320 | esac | ||
5321 | cat >>confdefs.h <<_ACEOF | ||
5322 | #ifndef __cplusplus | ||
5323 | #define inline $ac_val | ||
5324 | #endif | ||
5325 | _ACEOF | ||
5326 | ;; | ||
5327 | esac | ||
5328 | |||
5329 | |||
5330 | { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5 | ||
5331 | echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; } | ||
5332 | if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then | ||
5333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5334 | else | ||
5335 | cat >conftest.$ac_ext <<_ACEOF | ||
5336 | /* confdefs.h. */ | ||
5337 | _ACEOF | ||
5338 | cat confdefs.h >>conftest.$ac_ext | ||
5339 | cat >>conftest.$ac_ext <<_ACEOF | ||
5340 | /* end confdefs.h. */ | ||
5341 | #include <limits.h> | ||
5342 | |||
5343 | int | ||
5344 | main () | ||
5345 | { | ||
5346 | #ifndef LLONG_MAX | ||
5347 | (void) LLONG_MAX; | ||
5348 | #endif | ||
5349 | |||
5350 | ; | ||
5351 | return 0; | ||
5352 | } | ||
5353 | _ACEOF | ||
5354 | rm -f conftest.$ac_objext | ||
5355 | if { (ac_try="$ac_compile" | ||
5356 | case "(($ac_try" in | ||
5357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5358 | *) ac_try_echo=$ac_try;; | ||
5359 | esac | ||
5360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5361 | (eval "$ac_compile") 2>conftest.er1 | ||
5362 | ac_status=$? | ||
5363 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5364 | rm -f conftest.er1 | ||
5365 | cat conftest.err >&5 | ||
5366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5367 | (exit $ac_status); } && { | ||
5368 | test -z "$ac_c_werror_flag" || | ||
5369 | test ! -s conftest.err | ||
5370 | } && test -s conftest.$ac_objext; then | ||
5371 | ac_cv_have_decl_LLONG_MAX=yes | ||
5372 | else | ||
5373 | echo "$as_me: failed program was:" >&5 | ||
5374 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5375 | |||
5376 | ac_cv_have_decl_LLONG_MAX=no | ||
5377 | fi | ||
5378 | |||
5379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5380 | fi | ||
5381 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5 | ||
5382 | echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; } | ||
5383 | if test $ac_cv_have_decl_LLONG_MAX = yes; then | ||
5384 | have_llong_max=1 | ||
5385 | fi | ||
5386 | |||
5387 | |||
5388 | use_stack_protector=1 | ||
5389 | |||
5390 | # Check whether --with-stackprotect was given. | ||
5391 | if test "${with_stackprotect+set}" = set; then | ||
5392 | withval=$with_stackprotect; | ||
5393 | if test "x$withval" = "xno"; then | ||
5394 | use_stack_protector=0 | ||
5395 | fi | ||
5396 | fi | ||
5397 | |||
5398 | |||
5399 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
5400 | CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized" | ||
5401 | GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` | ||
5402 | case $GCC_VER in | ||
5403 | 1.*) no_attrib_nonnull=1 ;; | ||
5404 | 2.8* | 2.9*) | ||
5405 | CFLAGS="$CFLAGS -Wsign-compare" | ||
5406 | no_attrib_nonnull=1 | ||
5407 | ;; | ||
5408 | 2.*) no_attrib_nonnull=1 ;; | ||
5409 | 3.*) CFLAGS="$CFLAGS -Wsign-compare -Wformat-security" ;; | ||
5410 | 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign -Wformat-security" ;; | ||
5411 | *) ;; | ||
5412 | esac | ||
5413 | |||
5414 | { echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5 | ||
5415 | echo $ECHO_N "checking if $CC accepts -fno-builtin-memset... $ECHO_C" >&6; } | ||
5416 | saved_CFLAGS="$CFLAGS" | ||
5417 | CFLAGS="$CFLAGS -fno-builtin-memset" | ||
5418 | cat >conftest.$ac_ext <<_ACEOF | ||
5419 | /* confdefs.h. */ | ||
5420 | _ACEOF | ||
5421 | cat confdefs.h >>conftest.$ac_ext | ||
5422 | cat >>conftest.$ac_ext <<_ACEOF | ||
5423 | /* end confdefs.h. */ | ||
5424 | |||
5425 | #include <string.h> | ||
5426 | int main(void){char b[10]; memset(b, 0, sizeof(b));} | ||
5427 | |||
5428 | _ACEOF | ||
5429 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5430 | if { (ac_try="$ac_link" | ||
5431 | case "(($ac_try" in | ||
5432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5433 | *) ac_try_echo=$ac_try;; | ||
5434 | esac | ||
5435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5436 | (eval "$ac_link") 2>conftest.er1 | ||
5437 | ac_status=$? | ||
5438 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5439 | rm -f conftest.er1 | ||
5440 | cat conftest.err >&5 | ||
5441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5442 | (exit $ac_status); } && { | ||
5443 | test -z "$ac_c_werror_flag" || | ||
5444 | test ! -s conftest.err | ||
5445 | } && test -s conftest$ac_exeext && | ||
5446 | $as_test_x conftest$ac_exeext; then | ||
5447 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5448 | echo "${ECHO_T}yes" >&6; } | ||
5449 | else | ||
5450 | echo "$as_me: failed program was:" >&5 | ||
5451 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5452 | |||
5453 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5454 | echo "${ECHO_T}no" >&6; } | ||
5455 | CFLAGS="$saved_CFLAGS" | ||
5456 | |||
5457 | fi | ||
5458 | |||
5459 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5460 | conftest$ac_exeext conftest.$ac_ext | ||
5461 | |||
5462 | # -fstack-protector-all doesn't always work for some GCC versions | ||
5463 | # and/or platforms, so we test if we can. If it's not supported | ||
5464 | # on a give platform gcc will emit a warning so we use -Werror. | ||
5465 | if test "x$use_stack_protector" = "x1"; then | ||
5466 | for t in -fstack-protector-all -fstack-protector; do | ||
5467 | { echo "$as_me:$LINENO: checking if $CC supports $t" >&5 | ||
5468 | echo $ECHO_N "checking if $CC supports $t... $ECHO_C" >&6; } | ||
5469 | saved_CFLAGS="$CFLAGS" | ||
5470 | saved_LDFLAGS="$LDFLAGS" | ||
5471 | CFLAGS="$CFLAGS $t -Werror" | ||
5472 | LDFLAGS="$LDFLAGS $t -Werror" | ||
5473 | cat >conftest.$ac_ext <<_ACEOF | ||
5474 | /* confdefs.h. */ | ||
5475 | _ACEOF | ||
5476 | cat confdefs.h >>conftest.$ac_ext | ||
5477 | cat >>conftest.$ac_ext <<_ACEOF | ||
5478 | /* end confdefs.h. */ | ||
5479 | |||
5480 | #include <stdlib.h> | ||
5481 | int main(void){return 0;} | ||
5482 | |||
5483 | _ACEOF | ||
5484 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5485 | if { (ac_try="$ac_link" | ||
5486 | case "(($ac_try" in | ||
5487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5488 | *) ac_try_echo=$ac_try;; | ||
5489 | esac | ||
5490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5491 | (eval "$ac_link") 2>conftest.er1 | ||
5492 | ac_status=$? | ||
5493 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5494 | rm -f conftest.er1 | ||
5495 | cat conftest.err >&5 | ||
5496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5497 | (exit $ac_status); } && { | ||
5498 | test -z "$ac_c_werror_flag" || | ||
5499 | test ! -s conftest.err | ||
5500 | } && test -s conftest$ac_exeext && | ||
5501 | $as_test_x conftest$ac_exeext; then | ||
5502 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5503 | echo "${ECHO_T}yes" >&6; } | ||
5504 | CFLAGS="$saved_CFLAGS $t" | ||
5505 | LDFLAGS="$saved_LDFLAGS $t" | ||
5506 | { echo "$as_me:$LINENO: checking if $t works" >&5 | ||
5507 | echo $ECHO_N "checking if $t works... $ECHO_C" >&6; } | ||
5508 | if test "$cross_compiling" = yes; then | ||
5509 | { echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5 | ||
5510 | echo "$as_me: WARNING: cross compiling: cannot test" >&2;} | ||
5511 | break | ||
5512 | |||
5513 | else | ||
5514 | cat >conftest.$ac_ext <<_ACEOF | ||
5515 | /* confdefs.h. */ | ||
5516 | _ACEOF | ||
5517 | cat confdefs.h >>conftest.$ac_ext | ||
5518 | cat >>conftest.$ac_ext <<_ACEOF | ||
5519 | /* end confdefs.h. */ | ||
5520 | |||
5521 | #include <stdlib.h> | ||
5522 | int main(void){exit(0);} | ||
5523 | |||
5524 | _ACEOF | ||
5525 | rm -f conftest$ac_exeext | ||
5526 | if { (ac_try="$ac_link" | ||
5527 | case "(($ac_try" in | ||
5528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5529 | *) ac_try_echo=$ac_try;; | ||
5530 | esac | ||
5531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5532 | (eval "$ac_link") 2>&5 | ||
5533 | ac_status=$? | ||
5534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5535 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
5536 | { (case "(($ac_try" in | ||
5537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5538 | *) ac_try_echo=$ac_try;; | ||
5539 | esac | ||
5540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5541 | (eval "$ac_try") 2>&5 | ||
5542 | ac_status=$? | ||
5543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5544 | (exit $ac_status); }; }; then | ||
5545 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5546 | echo "${ECHO_T}yes" >&6; } | ||
5547 | break | ||
5548 | else | ||
5549 | echo "$as_me: program exited with status $ac_status" >&5 | ||
5550 | echo "$as_me: failed program was:" >&5 | ||
5551 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5552 | |||
5553 | ( exit $ac_status ) | ||
5554 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5555 | echo "${ECHO_T}no" >&6; } | ||
5556 | fi | ||
5557 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
5558 | fi | ||
5559 | |||
5560 | |||
5561 | |||
5562 | else | ||
5563 | echo "$as_me: failed program was:" >&5 | ||
5564 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5565 | |||
5566 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5567 | echo "${ECHO_T}no" >&6; } | ||
5568 | |||
5569 | fi | ||
5570 | |||
5571 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5572 | conftest$ac_exeext conftest.$ac_ext | ||
5573 | CFLAGS="$saved_CFLAGS" | ||
5574 | LDFLAGS="$saved_LDFLAGS" | ||
5575 | done | ||
5576 | fi | ||
5577 | |||
5578 | if test -z "$have_llong_max"; then | ||
5579 | # retry LLONG_MAX with -std=gnu99, needed on some Linuxes | ||
5580 | unset ac_cv_have_decl_LLONG_MAX | ||
5581 | saved_CFLAGS="$CFLAGS" | ||
5582 | CFLAGS="$CFLAGS -std=gnu99" | ||
5583 | { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5 | ||
5584 | echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; } | ||
5585 | if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then | ||
5586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5587 | else | ||
5588 | cat >conftest.$ac_ext <<_ACEOF | ||
5589 | /* confdefs.h. */ | ||
5590 | _ACEOF | ||
5591 | cat confdefs.h >>conftest.$ac_ext | ||
5592 | cat >>conftest.$ac_ext <<_ACEOF | ||
5593 | /* end confdefs.h. */ | ||
5594 | #include <limits.h> | ||
5595 | |||
5596 | |||
5597 | int | ||
5598 | main () | ||
5599 | { | ||
5600 | #ifndef LLONG_MAX | ||
5601 | (void) LLONG_MAX; | ||
5602 | #endif | ||
5603 | |||
5604 | ; | ||
5605 | return 0; | ||
5606 | } | ||
5607 | _ACEOF | ||
5608 | rm -f conftest.$ac_objext | ||
5609 | if { (ac_try="$ac_compile" | ||
5610 | case "(($ac_try" in | ||
5611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5612 | *) ac_try_echo=$ac_try;; | ||
5613 | esac | ||
5614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5615 | (eval "$ac_compile") 2>conftest.er1 | ||
5616 | ac_status=$? | ||
5617 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5618 | rm -f conftest.er1 | ||
5619 | cat conftest.err >&5 | ||
5620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5621 | (exit $ac_status); } && { | ||
5622 | test -z "$ac_c_werror_flag" || | ||
5623 | test ! -s conftest.err | ||
5624 | } && test -s conftest.$ac_objext; then | ||
5625 | ac_cv_have_decl_LLONG_MAX=yes | ||
5626 | else | ||
5627 | echo "$as_me: failed program was:" >&5 | ||
5628 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5629 | |||
5630 | ac_cv_have_decl_LLONG_MAX=no | ||
5631 | fi | ||
5632 | |||
5633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5634 | fi | ||
5635 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5 | ||
5636 | echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; } | ||
5637 | if test $ac_cv_have_decl_LLONG_MAX = yes; then | ||
5638 | have_llong_max=1 | ||
5639 | else | ||
5640 | CFLAGS="$saved_CFLAGS" | ||
5641 | fi | ||
5642 | |||
5643 | fi | ||
5644 | fi | ||
5645 | |||
5646 | if test "x$no_attrib_nonnull" != "x1" ; then | ||
5647 | |||
5648 | cat >>confdefs.h <<\_ACEOF | ||
5649 | #define HAVE_ATTRIBUTE__NONNULL__ 1 | ||
5650 | _ACEOF | ||
5651 | |||
5652 | fi | ||
5653 | |||
5654 | |||
5655 | # Check whether --with-rpath was given. | ||
5656 | if test "${with_rpath+set}" = set; then | ||
5657 | withval=$with_rpath; | ||
5658 | if test "x$withval" = "xno" ; then | ||
5659 | need_dash_r="" | ||
5660 | fi | ||
5661 | if test "x$withval" = "xyes" ; then | ||
5662 | need_dash_r=1 | ||
5663 | fi | ||
5664 | |||
5665 | |||
5666 | fi | ||
5667 | |||
5668 | |||
5669 | # Allow user to specify flags | ||
5670 | |||
5671 | # Check whether --with-cflags was given. | ||
5672 | if test "${with_cflags+set}" = set; then | ||
5673 | withval=$with_cflags; | ||
5674 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
5675 | test "x${withval}" != "xyes"; then | ||
5676 | CFLAGS="$CFLAGS $withval" | ||
5677 | fi | ||
5678 | |||
5679 | |||
5680 | fi | ||
5681 | |||
5682 | |||
5683 | # Check whether --with-cppflags was given. | ||
5684 | if test "${with_cppflags+set}" = set; then | ||
5685 | withval=$with_cppflags; | ||
5686 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
5687 | test "x${withval}" != "xyes"; then | ||
5688 | CPPFLAGS="$CPPFLAGS $withval" | ||
5689 | fi | ||
5690 | |||
5691 | |||
5692 | fi | ||
5693 | |||
5694 | |||
5695 | # Check whether --with-ldflags was given. | ||
5696 | if test "${with_ldflags+set}" = set; then | ||
5697 | withval=$with_ldflags; | ||
5698 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
5699 | test "x${withval}" != "xyes"; then | ||
5700 | LDFLAGS="$LDFLAGS $withval" | ||
5701 | fi | ||
5702 | |||
5703 | |||
5704 | fi | ||
5705 | |||
5706 | |||
5707 | # Check whether --with-libs was given. | ||
5708 | if test "${with_libs+set}" = set; then | ||
5709 | withval=$with_libs; | ||
5710 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
5711 | test "x${withval}" != "xyes"; then | ||
5712 | LIBS="$LIBS $withval" | ||
5713 | fi | ||
5714 | |||
5715 | |||
5716 | fi | ||
5717 | |||
5718 | |||
5719 | # Check whether --with-Werror was given. | ||
5720 | if test "${with_Werror+set}" = set; then | ||
5721 | withval=$with_Werror; | ||
5722 | if test -n "$withval" && test "x$withval" != "xno"; then | ||
5723 | werror_flags="-Werror" | ||
5724 | if test "x${withval}" != "xyes"; then | ||
5725 | werror_flags="$withval" | ||
5726 | fi | ||
5727 | fi | ||
5728 | |||
5729 | |||
5730 | fi | ||
5731 | |||
5732 | |||
5733 | |||
5734 | |||
5735 | |||
5736 | |||
5737 | |||
5738 | |||
5739 | |||
5740 | |||
5741 | |||
5742 | |||
5743 | |||
5744 | |||
5745 | |||
5746 | |||
5747 | |||
5748 | |||
5749 | |||
5750 | |||
5751 | |||
5752 | |||
5753 | |||
5754 | |||
5755 | |||
5756 | |||
5757 | |||
5758 | |||
5759 | |||
5760 | |||
5761 | |||
5762 | |||
5763 | |||
5764 | |||
5765 | |||
5766 | |||
5767 | |||
5768 | |||
5769 | |||
5770 | |||
5771 | |||
5772 | |||
5773 | |||
5774 | |||
5775 | |||
5776 | |||
5777 | |||
5778 | |||
5779 | |||
5780 | |||
5781 | |||
5782 | |||
5783 | |||
5784 | |||
5785 | |||
5786 | |||
5787 | |||
5788 | |||
5789 | |||
5790 | |||
5791 | |||
5792 | |||
5793 | |||
5794 | |||
5795 | |||
5796 | |||
5797 | for ac_header in \ | ||
5798 | bstring.h \ | ||
5799 | crypt.h \ | ||
5800 | crypto/sha2.h \ | ||
5801 | dirent.h \ | ||
5802 | endian.h \ | ||
5803 | features.h \ | ||
5804 | fcntl.h \ | ||
5805 | floatingpoint.h \ | ||
5806 | getopt.h \ | ||
5807 | glob.h \ | ||
5808 | ia.h \ | ||
5809 | iaf.h \ | ||
5810 | limits.h \ | ||
5811 | login.h \ | ||
5812 | maillock.h \ | ||
5813 | ndir.h \ | ||
5814 | net/if_tun.h \ | ||
5815 | netdb.h \ | ||
5816 | netgroup.h \ | ||
5817 | pam/pam_appl.h \ | ||
5818 | paths.h \ | ||
5819 | poll.h \ | ||
5820 | pty.h \ | ||
5821 | readpassphrase.h \ | ||
5822 | rpc/types.h \ | ||
5823 | security/pam_appl.h \ | ||
5824 | sha2.h \ | ||
5825 | shadow.h \ | ||
5826 | stddef.h \ | ||
5827 | stdint.h \ | ||
5828 | string.h \ | ||
5829 | strings.h \ | ||
5830 | sys/audit.h \ | ||
5831 | sys/bitypes.h \ | ||
5832 | sys/bsdtty.h \ | ||
5833 | sys/cdefs.h \ | ||
5834 | sys/dir.h \ | ||
5835 | sys/mman.h \ | ||
5836 | sys/mount.h \ | ||
5837 | sys/ndir.h \ | ||
5838 | sys/poll.h \ | ||
5839 | sys/prctl.h \ | ||
5840 | sys/pstat.h \ | ||
5841 | sys/select.h \ | ||
5842 | sys/stat.h \ | ||
5843 | sys/stream.h \ | ||
5844 | sys/stropts.h \ | ||
5845 | sys/strtio.h \ | ||
5846 | sys/statvfs.h \ | ||
5847 | sys/sysmacros.h \ | ||
5848 | sys/time.h \ | ||
5849 | sys/timers.h \ | ||
5850 | sys/un.h \ | ||
5851 | time.h \ | ||
5852 | tmpdir.h \ | ||
5853 | ttyent.h \ | ||
5854 | ucred.h \ | ||
5855 | unistd.h \ | ||
5856 | usersec.h \ | ||
5857 | util.h \ | ||
5858 | utime.h \ | ||
5859 | utmp.h \ | ||
5860 | utmpx.h \ | ||
5861 | vis.h \ | ||
5862 | |||
5863 | do | ||
5864 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5865 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5866 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5867 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
5868 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5870 | fi | ||
5871 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
5872 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5873 | echo "${ECHO_T}$ac_res" >&6; } | ||
5874 | else | ||
5875 | # Is the header compilable? | ||
5876 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
5877 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
5878 | cat >conftest.$ac_ext <<_ACEOF | ||
5879 | /* confdefs.h. */ | ||
5880 | _ACEOF | ||
5881 | cat confdefs.h >>conftest.$ac_ext | ||
5882 | cat >>conftest.$ac_ext <<_ACEOF | ||
5883 | /* end confdefs.h. */ | ||
5884 | $ac_includes_default | ||
5885 | #include <$ac_header> | ||
5886 | _ACEOF | ||
5887 | rm -f conftest.$ac_objext | ||
5888 | if { (ac_try="$ac_compile" | ||
5889 | case "(($ac_try" in | ||
5890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5891 | *) ac_try_echo=$ac_try;; | ||
5892 | esac | ||
5893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5894 | (eval "$ac_compile") 2>conftest.er1 | ||
5895 | ac_status=$? | ||
5896 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5897 | rm -f conftest.er1 | ||
5898 | cat conftest.err >&5 | ||
5899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5900 | (exit $ac_status); } && { | ||
5901 | test -z "$ac_c_werror_flag" || | ||
5902 | test ! -s conftest.err | ||
5903 | } && test -s conftest.$ac_objext; then | ||
5904 | ac_header_compiler=yes | ||
5905 | else | ||
5906 | echo "$as_me: failed program was:" >&5 | ||
5907 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5908 | |||
5909 | ac_header_compiler=no | ||
5910 | fi | ||
5911 | |||
5912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5913 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
5914 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
5915 | |||
5916 | # Is the header present? | ||
5917 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
5918 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
5919 | cat >conftest.$ac_ext <<_ACEOF | ||
5920 | /* confdefs.h. */ | ||
5921 | _ACEOF | ||
5922 | cat confdefs.h >>conftest.$ac_ext | ||
5923 | cat >>conftest.$ac_ext <<_ACEOF | ||
5924 | /* end confdefs.h. */ | ||
5925 | #include <$ac_header> | ||
5926 | _ACEOF | ||
5927 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
5928 | case "(($ac_try" in | ||
5929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5930 | *) ac_try_echo=$ac_try;; | ||
5931 | esac | ||
5932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5933 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
5934 | ac_status=$? | ||
5935 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5936 | rm -f conftest.er1 | ||
5937 | cat conftest.err >&5 | ||
5938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5939 | (exit $ac_status); } >/dev/null && { | ||
5940 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
5941 | test ! -s conftest.err | ||
5942 | }; then | ||
5943 | ac_header_preproc=yes | ||
5944 | else | ||
5945 | echo "$as_me: failed program was:" >&5 | ||
5946 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5947 | |||
5948 | ac_header_preproc=no | ||
5949 | fi | ||
5950 | |||
5951 | rm -f conftest.err conftest.$ac_ext | ||
5952 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
5953 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
5954 | |||
5955 | # So? What about this header? | ||
5956 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
5957 | yes:no: ) | ||
5958 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
5959 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
5960 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
5961 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
5962 | ac_header_preproc=yes | ||
5963 | ;; | ||
5964 | no:yes:* ) | ||
5965 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
5966 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
5967 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
5968 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
5969 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
5970 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
5971 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
5972 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
5973 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
5974 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
5975 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
5976 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
5977 | ( cat <<\_ASBOX | ||
5978 | ## ------------------------------------------- ## | ||
5979 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
5980 | ## ------------------------------------------- ## | ||
5981 | _ASBOX | ||
5982 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
5983 | ;; | ||
5984 | esac | ||
5985 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5986 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
5987 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5989 | else | ||
5990 | eval "$as_ac_Header=\$ac_header_preproc" | ||
5991 | fi | ||
5992 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
5993 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5994 | echo "${ECHO_T}$ac_res" >&6; } | ||
5995 | |||
5996 | fi | ||
5997 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5998 | cat >>confdefs.h <<_ACEOF | ||
5999 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6000 | _ACEOF | ||
6001 | |||
6002 | fi | ||
6003 | |||
6004 | done | ||
6005 | |||
6006 | |||
6007 | # lastlog.h requires sys/time.h to be included first on Solaris | ||
6008 | |||
6009 | for ac_header in lastlog.h | ||
6010 | do | ||
6011 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6012 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6013 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
6014 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6016 | else | ||
6017 | cat >conftest.$ac_ext <<_ACEOF | ||
6018 | /* confdefs.h. */ | ||
6019 | _ACEOF | ||
6020 | cat confdefs.h >>conftest.$ac_ext | ||
6021 | cat >>conftest.$ac_ext <<_ACEOF | ||
6022 | /* end confdefs.h. */ | ||
6023 | |||
6024 | #ifdef HAVE_SYS_TIME_H | ||
6025 | # include <sys/time.h> | ||
6026 | #endif | ||
6027 | |||
6028 | |||
6029 | #include <$ac_header> | ||
6030 | _ACEOF | ||
6031 | rm -f conftest.$ac_objext | ||
6032 | if { (ac_try="$ac_compile" | ||
6033 | case "(($ac_try" in | ||
6034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6035 | *) ac_try_echo=$ac_try;; | ||
6036 | esac | ||
6037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6038 | (eval "$ac_compile") 2>conftest.er1 | ||
6039 | ac_status=$? | ||
6040 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6041 | rm -f conftest.er1 | ||
6042 | cat conftest.err >&5 | ||
6043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6044 | (exit $ac_status); } && { | ||
6045 | test -z "$ac_c_werror_flag" || | ||
6046 | test ! -s conftest.err | ||
6047 | } && test -s conftest.$ac_objext; then | ||
6048 | eval "$as_ac_Header=yes" | ||
6049 | else | ||
6050 | echo "$as_me: failed program was:" >&5 | ||
6051 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6052 | |||
6053 | eval "$as_ac_Header=no" | ||
6054 | fi | ||
6055 | |||
6056 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6057 | fi | ||
6058 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
6059 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
6060 | echo "${ECHO_T}$ac_res" >&6; } | ||
6061 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6062 | cat >>confdefs.h <<_ACEOF | ||
6063 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6064 | _ACEOF | ||
6065 | |||
6066 | fi | ||
6067 | |||
6068 | done | ||
6069 | |||
6070 | |||
6071 | # sys/ptms.h requires sys/stream.h to be included first on Solaris | ||
6072 | |||
6073 | for ac_header in sys/ptms.h | ||
6074 | do | ||
6075 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6076 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6077 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
6078 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6080 | else | ||
6081 | cat >conftest.$ac_ext <<_ACEOF | ||
6082 | /* confdefs.h. */ | ||
6083 | _ACEOF | ||
6084 | cat confdefs.h >>conftest.$ac_ext | ||
6085 | cat >>conftest.$ac_ext <<_ACEOF | ||
6086 | /* end confdefs.h. */ | ||
6087 | |||
6088 | #ifdef HAVE_SYS_STREAM_H | ||
6089 | # include <sys/stream.h> | ||
6090 | #endif | ||
6091 | |||
6092 | |||
6093 | #include <$ac_header> | ||
6094 | _ACEOF | ||
6095 | rm -f conftest.$ac_objext | ||
6096 | if { (ac_try="$ac_compile" | ||
6097 | case "(($ac_try" in | ||
6098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6099 | *) ac_try_echo=$ac_try;; | ||
6100 | esac | ||
6101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6102 | (eval "$ac_compile") 2>conftest.er1 | ||
6103 | ac_status=$? | ||
6104 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6105 | rm -f conftest.er1 | ||
6106 | cat conftest.err >&5 | ||
6107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6108 | (exit $ac_status); } && { | ||
6109 | test -z "$ac_c_werror_flag" || | ||
6110 | test ! -s conftest.err | ||
6111 | } && test -s conftest.$ac_objext; then | ||
6112 | eval "$as_ac_Header=yes" | ||
6113 | else | ||
6114 | echo "$as_me: failed program was:" >&5 | ||
6115 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6116 | |||
6117 | eval "$as_ac_Header=no" | ||
6118 | fi | ||
6119 | |||
6120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6121 | fi | ||
6122 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
6123 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
6124 | echo "${ECHO_T}$ac_res" >&6; } | ||
6125 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6126 | cat >>confdefs.h <<_ACEOF | ||
6127 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6128 | _ACEOF | ||
6129 | |||
6130 | fi | ||
6131 | |||
6132 | done | ||
6133 | |||
6134 | |||
6135 | # login_cap.h requires sys/types.h on NetBSD | ||
6136 | |||
6137 | for ac_header in login_cap.h | ||
6138 | do | ||
6139 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6140 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6141 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
6142 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6144 | else | ||
6145 | cat >conftest.$ac_ext <<_ACEOF | ||
6146 | /* confdefs.h. */ | ||
6147 | _ACEOF | ||
6148 | cat confdefs.h >>conftest.$ac_ext | ||
6149 | cat >>conftest.$ac_ext <<_ACEOF | ||
6150 | /* end confdefs.h. */ | ||
6151 | |||
6152 | #include <sys/types.h> | ||
6153 | |||
6154 | |||
6155 | #include <$ac_header> | ||
6156 | _ACEOF | ||
6157 | rm -f conftest.$ac_objext | ||
6158 | if { (ac_try="$ac_compile" | ||
6159 | case "(($ac_try" in | ||
6160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6161 | *) ac_try_echo=$ac_try;; | ||
6162 | esac | ||
6163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6164 | (eval "$ac_compile") 2>conftest.er1 | ||
6165 | ac_status=$? | ||
6166 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6167 | rm -f conftest.er1 | ||
6168 | cat conftest.err >&5 | ||
6169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6170 | (exit $ac_status); } && { | ||
6171 | test -z "$ac_c_werror_flag" || | ||
6172 | test ! -s conftest.err | ||
6173 | } && test -s conftest.$ac_objext; then | ||
6174 | eval "$as_ac_Header=yes" | ||
6175 | else | ||
6176 | echo "$as_me: failed program was:" >&5 | ||
6177 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6178 | |||
6179 | eval "$as_ac_Header=no" | ||
6180 | fi | ||
6181 | |||
6182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6183 | fi | ||
6184 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
6185 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
6186 | echo "${ECHO_T}$ac_res" >&6; } | ||
6187 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6188 | cat >>confdefs.h <<_ACEOF | ||
6189 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6190 | _ACEOF | ||
6191 | |||
6192 | fi | ||
6193 | |||
6194 | done | ||
6195 | |||
6196 | |||
6197 | # Messages for features tested for in target-specific section | ||
6198 | SIA_MSG="no" | ||
6199 | SPC_MSG="no" | ||
6200 | |||
6201 | # Check for some target-specific stuff | ||
6202 | case "$host" in | ||
6203 | *-*-aix*) | ||
6204 | # Some versions of VAC won't allow macro redefinitions at | ||
6205 | # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that | ||
6206 | # particularly with older versions of vac or xlc. | ||
6207 | # It also throws errors about null macro argments, but these are | ||
6208 | # not fatal. | ||
6209 | { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5 | ||
6210 | echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; } | ||
6211 | cat >conftest.$ac_ext <<_ACEOF | ||
6212 | /* confdefs.h. */ | ||
6213 | _ACEOF | ||
6214 | cat confdefs.h >>conftest.$ac_ext | ||
6215 | cat >>conftest.$ac_ext <<_ACEOF | ||
6216 | /* end confdefs.h. */ | ||
6217 | |||
6218 | #define testmacro foo | ||
6219 | #define testmacro bar | ||
6220 | int main(void) { exit(0); } | ||
6221 | |||
6222 | _ACEOF | ||
6223 | rm -f conftest.$ac_objext | ||
6224 | if { (ac_try="$ac_compile" | ||
6225 | case "(($ac_try" in | ||
6226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6227 | *) ac_try_echo=$ac_try;; | ||
6228 | esac | ||
6229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6230 | (eval "$ac_compile") 2>conftest.er1 | ||
6231 | ac_status=$? | ||
6232 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6233 | rm -f conftest.er1 | ||
6234 | cat conftest.err >&5 | ||
6235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6236 | (exit $ac_status); } && { | ||
6237 | test -z "$ac_c_werror_flag" || | ||
6238 | test ! -s conftest.err | ||
6239 | } && test -s conftest.$ac_objext; then | ||
6240 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6241 | echo "${ECHO_T}yes" >&6; } | ||
6242 | else | ||
6243 | echo "$as_me: failed program was:" >&5 | ||
6244 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6245 | |||
6246 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6247 | echo "${ECHO_T}no" >&6; } | ||
6248 | CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`" | ||
6249 | LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`" | ||
6250 | CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
6251 | CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
6252 | |||
6253 | |||
6254 | fi | ||
6255 | |||
6256 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6257 | |||
6258 | { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5 | ||
6259 | echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; } | ||
6260 | if (test -z "$blibpath"); then | ||
6261 | blibpath="/usr/lib:/lib" | ||
6262 | fi | ||
6263 | saved_LDFLAGS="$LDFLAGS" | ||
6264 | if test "$GCC" = "yes"; then | ||
6265 | flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:" | ||
6266 | else | ||
6267 | flags="-blibpath: -Wl,-blibpath: -Wl,-rpath," | ||
6268 | fi | ||
6269 | for tryflags in $flags ;do | ||
6270 | if (test -z "$blibflags"); then | ||
6271 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" | ||
6272 | cat >conftest.$ac_ext <<_ACEOF | ||
6273 | /* confdefs.h. */ | ||
6274 | _ACEOF | ||
6275 | cat confdefs.h >>conftest.$ac_ext | ||
6276 | cat >>conftest.$ac_ext <<_ACEOF | ||
6277 | /* end confdefs.h. */ | ||
6278 | |||
6279 | int | ||
6280 | main () | ||
6281 | { | ||
6282 | |||
6283 | ; | ||
6284 | return 0; | ||
6285 | } | ||
6286 | _ACEOF | ||
6287 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6288 | if { (ac_try="$ac_link" | ||
6289 | case "(($ac_try" in | ||
6290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6291 | *) ac_try_echo=$ac_try;; | ||
6292 | esac | ||
6293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6294 | (eval "$ac_link") 2>conftest.er1 | ||
6295 | ac_status=$? | ||
6296 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6297 | rm -f conftest.er1 | ||
6298 | cat conftest.err >&5 | ||
6299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6300 | (exit $ac_status); } && { | ||
6301 | test -z "$ac_c_werror_flag" || | ||
6302 | test ! -s conftest.err | ||
6303 | } && test -s conftest$ac_exeext && | ||
6304 | $as_test_x conftest$ac_exeext; then | ||
6305 | blibflags=$tryflags | ||
6306 | else | ||
6307 | echo "$as_me: failed program was:" >&5 | ||
6308 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6309 | |||
6310 | |||
6311 | fi | ||
6312 | |||
6313 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6314 | conftest$ac_exeext conftest.$ac_ext | ||
6315 | fi | ||
6316 | done | ||
6317 | if (test -z "$blibflags"); then | ||
6318 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
6319 | echo "${ECHO_T}not found" >&6; } | ||
6320 | { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5 | ||
6321 | echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;} | ||
6322 | { (exit 1); exit 1; }; } | ||
6323 | else | ||
6324 | { echo "$as_me:$LINENO: result: $blibflags" >&5 | ||
6325 | echo "${ECHO_T}$blibflags" >&6; } | ||
6326 | fi | ||
6327 | LDFLAGS="$saved_LDFLAGS" | ||
6328 | { echo "$as_me:$LINENO: checking for authenticate" >&5 | ||
6329 | echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; } | ||
6330 | if test "${ac_cv_func_authenticate+set}" = set; then | ||
6331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6332 | else | ||
6333 | cat >conftest.$ac_ext <<_ACEOF | ||
6334 | /* confdefs.h. */ | ||
6335 | _ACEOF | ||
6336 | cat confdefs.h >>conftest.$ac_ext | ||
6337 | cat >>conftest.$ac_ext <<_ACEOF | ||
6338 | /* end confdefs.h. */ | ||
6339 | /* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate. | ||
6340 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
6341 | #define authenticate innocuous_authenticate | ||
6342 | |||
6343 | /* System header to define __stub macros and hopefully few prototypes, | ||
6344 | which can conflict with char authenticate (); below. | ||
6345 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6346 | <limits.h> exists even on freestanding compilers. */ | ||
6347 | |||
6348 | #ifdef __STDC__ | ||
6349 | # include <limits.h> | ||
6350 | #else | ||
6351 | # include <assert.h> | ||
6352 | #endif | ||
6353 | |||
6354 | #undef authenticate | ||
6355 | |||
6356 | /* Override any GCC internal prototype to avoid an error. | ||
6357 | Use char because int might match the return type of a GCC | ||
6358 | builtin and then its argument prototype would still apply. */ | ||
6359 | #ifdef __cplusplus | ||
6360 | extern "C" | ||
6361 | #endif | ||
6362 | char authenticate (); | ||
6363 | /* The GNU C library defines this for functions which it implements | ||
6364 | to always fail with ENOSYS. Some functions are actually named | ||
6365 | something starting with __ and the normal name is an alias. */ | ||
6366 | #if defined __stub_authenticate || defined __stub___authenticate | ||
6367 | choke me | ||
6368 | #endif | ||
6369 | |||
6370 | int | ||
6371 | main () | ||
6372 | { | ||
6373 | return authenticate (); | ||
6374 | ; | ||
6375 | return 0; | ||
6376 | } | ||
6377 | _ACEOF | ||
6378 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6379 | if { (ac_try="$ac_link" | ||
6380 | case "(($ac_try" in | ||
6381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6382 | *) ac_try_echo=$ac_try;; | ||
6383 | esac | ||
6384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6385 | (eval "$ac_link") 2>conftest.er1 | ||
6386 | ac_status=$? | ||
6387 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6388 | rm -f conftest.er1 | ||
6389 | cat conftest.err >&5 | ||
6390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6391 | (exit $ac_status); } && { | ||
6392 | test -z "$ac_c_werror_flag" || | ||
6393 | test ! -s conftest.err | ||
6394 | } && test -s conftest$ac_exeext && | ||
6395 | $as_test_x conftest$ac_exeext; then | ||
6396 | ac_cv_func_authenticate=yes | ||
6397 | else | ||
6398 | echo "$as_me: failed program was:" >&5 | ||
6399 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6400 | |||
6401 | ac_cv_func_authenticate=no | ||
6402 | fi | ||
6403 | |||
6404 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6405 | conftest$ac_exeext conftest.$ac_ext | ||
6406 | fi | ||
6407 | { echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5 | ||
6408 | echo "${ECHO_T}$ac_cv_func_authenticate" >&6; } | ||
6409 | if test $ac_cv_func_authenticate = yes; then | ||
6410 | |||
6411 | cat >>confdefs.h <<\_ACEOF | ||
6412 | #define WITH_AIXAUTHENTICATE 1 | ||
6413 | _ACEOF | ||
6414 | |||
6415 | else | ||
6416 | { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5 | ||
6417 | echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; } | ||
6418 | if test "${ac_cv_lib_s_authenticate+set}" = set; then | ||
6419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6420 | else | ||
6421 | ac_check_lib_save_LIBS=$LIBS | ||
6422 | LIBS="-ls $LIBS" | ||
6423 | cat >conftest.$ac_ext <<_ACEOF | ||
6424 | /* confdefs.h. */ | ||
6425 | _ACEOF | ||
6426 | cat confdefs.h >>conftest.$ac_ext | ||
6427 | cat >>conftest.$ac_ext <<_ACEOF | ||
6428 | /* end confdefs.h. */ | ||
6429 | |||
6430 | /* Override any GCC internal prototype to avoid an error. | ||
6431 | Use char because int might match the return type of a GCC | ||
6432 | builtin and then its argument prototype would still apply. */ | ||
6433 | #ifdef __cplusplus | ||
6434 | extern "C" | ||
6435 | #endif | ||
6436 | char authenticate (); | ||
6437 | int | ||
6438 | main () | ||
6439 | { | ||
6440 | return authenticate (); | ||
6441 | ; | ||
6442 | return 0; | ||
6443 | } | ||
6444 | _ACEOF | ||
6445 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6446 | if { (ac_try="$ac_link" | ||
6447 | case "(($ac_try" in | ||
6448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6449 | *) ac_try_echo=$ac_try;; | ||
6450 | esac | ||
6451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6452 | (eval "$ac_link") 2>conftest.er1 | ||
6453 | ac_status=$? | ||
6454 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6455 | rm -f conftest.er1 | ||
6456 | cat conftest.err >&5 | ||
6457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6458 | (exit $ac_status); } && { | ||
6459 | test -z "$ac_c_werror_flag" || | ||
6460 | test ! -s conftest.err | ||
6461 | } && test -s conftest$ac_exeext && | ||
6462 | $as_test_x conftest$ac_exeext; then | ||
6463 | ac_cv_lib_s_authenticate=yes | ||
6464 | else | ||
6465 | echo "$as_me: failed program was:" >&5 | ||
6466 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6467 | |||
6468 | ac_cv_lib_s_authenticate=no | ||
6469 | fi | ||
6470 | |||
6471 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6472 | conftest$ac_exeext conftest.$ac_ext | ||
6473 | LIBS=$ac_check_lib_save_LIBS | ||
6474 | fi | ||
6475 | { echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5 | ||
6476 | echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; } | ||
6477 | if test $ac_cv_lib_s_authenticate = yes; then | ||
6478 | cat >>confdefs.h <<\_ACEOF | ||
6479 | #define WITH_AIXAUTHENTICATE 1 | ||
6480 | _ACEOF | ||
6481 | |||
6482 | LIBS="$LIBS -ls" | ||
6483 | |||
6484 | fi | ||
6485 | |||
6486 | |||
6487 | fi | ||
6488 | |||
6489 | { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5 | ||
6490 | echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; } | ||
6491 | if test "${ac_cv_have_decl_authenticate+set}" = set; then | ||
6492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6493 | else | ||
6494 | cat >conftest.$ac_ext <<_ACEOF | ||
6495 | /* confdefs.h. */ | ||
6496 | _ACEOF | ||
6497 | cat confdefs.h >>conftest.$ac_ext | ||
6498 | cat >>conftest.$ac_ext <<_ACEOF | ||
6499 | /* end confdefs.h. */ | ||
6500 | #include <usersec.h> | ||
6501 | |||
6502 | int | ||
6503 | main () | ||
6504 | { | ||
6505 | #ifndef authenticate | ||
6506 | (void) authenticate; | ||
6507 | #endif | ||
6508 | |||
6509 | ; | ||
6510 | return 0; | ||
6511 | } | ||
6512 | _ACEOF | ||
6513 | rm -f conftest.$ac_objext | ||
6514 | if { (ac_try="$ac_compile" | ||
6515 | case "(($ac_try" in | ||
6516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6517 | *) ac_try_echo=$ac_try;; | ||
6518 | esac | ||
6519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6520 | (eval "$ac_compile") 2>conftest.er1 | ||
6521 | ac_status=$? | ||
6522 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6523 | rm -f conftest.er1 | ||
6524 | cat conftest.err >&5 | ||
6525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6526 | (exit $ac_status); } && { | ||
6527 | test -z "$ac_c_werror_flag" || | ||
6528 | test ! -s conftest.err | ||
6529 | } && test -s conftest.$ac_objext; then | ||
6530 | ac_cv_have_decl_authenticate=yes | ||
6531 | else | ||
6532 | echo "$as_me: failed program was:" >&5 | ||
6533 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6534 | |||
6535 | ac_cv_have_decl_authenticate=no | ||
6536 | fi | ||
6537 | |||
6538 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6539 | fi | ||
6540 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5 | ||
6541 | echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; } | ||
6542 | if test $ac_cv_have_decl_authenticate = yes; then | ||
6543 | |||
6544 | cat >>confdefs.h <<_ACEOF | ||
6545 | #define HAVE_DECL_AUTHENTICATE 1 | ||
6546 | _ACEOF | ||
6547 | |||
6548 | |||
6549 | else | ||
6550 | cat >>confdefs.h <<_ACEOF | ||
6551 | #define HAVE_DECL_AUTHENTICATE 0 | ||
6552 | _ACEOF | ||
6553 | |||
6554 | |||
6555 | fi | ||
6556 | { echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5 | ||
6557 | echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; } | ||
6558 | if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then | ||
6559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6560 | else | ||
6561 | cat >conftest.$ac_ext <<_ACEOF | ||
6562 | /* confdefs.h. */ | ||
6563 | _ACEOF | ||
6564 | cat confdefs.h >>conftest.$ac_ext | ||
6565 | cat >>conftest.$ac_ext <<_ACEOF | ||
6566 | /* end confdefs.h. */ | ||
6567 | #include <usersec.h> | ||
6568 | |||
6569 | int | ||
6570 | main () | ||
6571 | { | ||
6572 | #ifndef loginrestrictions | ||
6573 | (void) loginrestrictions; | ||
6574 | #endif | ||
6575 | |||
6576 | ; | ||
6577 | return 0; | ||
6578 | } | ||
6579 | _ACEOF | ||
6580 | rm -f conftest.$ac_objext | ||
6581 | if { (ac_try="$ac_compile" | ||
6582 | case "(($ac_try" in | ||
6583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6584 | *) ac_try_echo=$ac_try;; | ||
6585 | esac | ||
6586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6587 | (eval "$ac_compile") 2>conftest.er1 | ||
6588 | ac_status=$? | ||
6589 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6590 | rm -f conftest.er1 | ||
6591 | cat conftest.err >&5 | ||
6592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6593 | (exit $ac_status); } && { | ||
6594 | test -z "$ac_c_werror_flag" || | ||
6595 | test ! -s conftest.err | ||
6596 | } && test -s conftest.$ac_objext; then | ||
6597 | ac_cv_have_decl_loginrestrictions=yes | ||
6598 | else | ||
6599 | echo "$as_me: failed program was:" >&5 | ||
6600 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6601 | |||
6602 | ac_cv_have_decl_loginrestrictions=no | ||
6603 | fi | ||
6604 | |||
6605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6606 | fi | ||
6607 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5 | ||
6608 | echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; } | ||
6609 | if test $ac_cv_have_decl_loginrestrictions = yes; then | ||
6610 | |||
6611 | cat >>confdefs.h <<_ACEOF | ||
6612 | #define HAVE_DECL_LOGINRESTRICTIONS 1 | ||
6613 | _ACEOF | ||
6614 | |||
6615 | |||
6616 | else | ||
6617 | cat >>confdefs.h <<_ACEOF | ||
6618 | #define HAVE_DECL_LOGINRESTRICTIONS 0 | ||
6619 | _ACEOF | ||
6620 | |||
6621 | |||
6622 | fi | ||
6623 | { echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5 | ||
6624 | echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; } | ||
6625 | if test "${ac_cv_have_decl_loginsuccess+set}" = set; then | ||
6626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6627 | else | ||
6628 | cat >conftest.$ac_ext <<_ACEOF | ||
6629 | /* confdefs.h. */ | ||
6630 | _ACEOF | ||
6631 | cat confdefs.h >>conftest.$ac_ext | ||
6632 | cat >>conftest.$ac_ext <<_ACEOF | ||
6633 | /* end confdefs.h. */ | ||
6634 | #include <usersec.h> | ||
6635 | |||
6636 | int | ||
6637 | main () | ||
6638 | { | ||
6639 | #ifndef loginsuccess | ||
6640 | (void) loginsuccess; | ||
6641 | #endif | ||
6642 | |||
6643 | ; | ||
6644 | return 0; | ||
6645 | } | ||
6646 | _ACEOF | ||
6647 | rm -f conftest.$ac_objext | ||
6648 | if { (ac_try="$ac_compile" | ||
6649 | case "(($ac_try" in | ||
6650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6651 | *) ac_try_echo=$ac_try;; | ||
6652 | esac | ||
6653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6654 | (eval "$ac_compile") 2>conftest.er1 | ||
6655 | ac_status=$? | ||
6656 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6657 | rm -f conftest.er1 | ||
6658 | cat conftest.err >&5 | ||
6659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6660 | (exit $ac_status); } && { | ||
6661 | test -z "$ac_c_werror_flag" || | ||
6662 | test ! -s conftest.err | ||
6663 | } && test -s conftest.$ac_objext; then | ||
6664 | ac_cv_have_decl_loginsuccess=yes | ||
6665 | else | ||
6666 | echo "$as_me: failed program was:" >&5 | ||
6667 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6668 | |||
6669 | ac_cv_have_decl_loginsuccess=no | ||
6670 | fi | ||
6671 | |||
6672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6673 | fi | ||
6674 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5 | ||
6675 | echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; } | ||
6676 | if test $ac_cv_have_decl_loginsuccess = yes; then | ||
6677 | |||
6678 | cat >>confdefs.h <<_ACEOF | ||
6679 | #define HAVE_DECL_LOGINSUCCESS 1 | ||
6680 | _ACEOF | ||
6681 | |||
6682 | |||
6683 | else | ||
6684 | cat >>confdefs.h <<_ACEOF | ||
6685 | #define HAVE_DECL_LOGINSUCCESS 0 | ||
6686 | _ACEOF | ||
6687 | |||
6688 | |||
6689 | fi | ||
6690 | { echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5 | ||
6691 | echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; } | ||
6692 | if test "${ac_cv_have_decl_passwdexpired+set}" = set; then | ||
6693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6694 | else | ||
6695 | cat >conftest.$ac_ext <<_ACEOF | ||
6696 | /* confdefs.h. */ | ||
6697 | _ACEOF | ||
6698 | cat confdefs.h >>conftest.$ac_ext | ||
6699 | cat >>conftest.$ac_ext <<_ACEOF | ||
6700 | /* end confdefs.h. */ | ||
6701 | #include <usersec.h> | ||
6702 | |||
6703 | int | ||
6704 | main () | ||
6705 | { | ||
6706 | #ifndef passwdexpired | ||
6707 | (void) passwdexpired; | ||
6708 | #endif | ||
6709 | |||
6710 | ; | ||
6711 | return 0; | ||
6712 | } | ||
6713 | _ACEOF | ||
6714 | rm -f conftest.$ac_objext | ||
6715 | if { (ac_try="$ac_compile" | ||
6716 | case "(($ac_try" in | ||
6717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6718 | *) ac_try_echo=$ac_try;; | ||
6719 | esac | ||
6720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6721 | (eval "$ac_compile") 2>conftest.er1 | ||
6722 | ac_status=$? | ||
6723 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6724 | rm -f conftest.er1 | ||
6725 | cat conftest.err >&5 | ||
6726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6727 | (exit $ac_status); } && { | ||
6728 | test -z "$ac_c_werror_flag" || | ||
6729 | test ! -s conftest.err | ||
6730 | } && test -s conftest.$ac_objext; then | ||
6731 | ac_cv_have_decl_passwdexpired=yes | ||
6732 | else | ||
6733 | echo "$as_me: failed program was:" >&5 | ||
6734 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6735 | |||
6736 | ac_cv_have_decl_passwdexpired=no | ||
6737 | fi | ||
6738 | |||
6739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6740 | fi | ||
6741 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5 | ||
6742 | echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; } | ||
6743 | if test $ac_cv_have_decl_passwdexpired = yes; then | ||
6744 | |||
6745 | cat >>confdefs.h <<_ACEOF | ||
6746 | #define HAVE_DECL_PASSWDEXPIRED 1 | ||
6747 | _ACEOF | ||
6748 | |||
6749 | |||
6750 | else | ||
6751 | cat >>confdefs.h <<_ACEOF | ||
6752 | #define HAVE_DECL_PASSWDEXPIRED 0 | ||
6753 | _ACEOF | ||
6754 | |||
6755 | |||
6756 | fi | ||
6757 | { echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5 | ||
6758 | echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; } | ||
6759 | if test "${ac_cv_have_decl_setauthdb+set}" = set; then | ||
6760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6761 | else | ||
6762 | cat >conftest.$ac_ext <<_ACEOF | ||
6763 | /* confdefs.h. */ | ||
6764 | _ACEOF | ||
6765 | cat confdefs.h >>conftest.$ac_ext | ||
6766 | cat >>conftest.$ac_ext <<_ACEOF | ||
6767 | /* end confdefs.h. */ | ||
6768 | #include <usersec.h> | ||
6769 | |||
6770 | int | ||
6771 | main () | ||
6772 | { | ||
6773 | #ifndef setauthdb | ||
6774 | (void) setauthdb; | ||
6775 | #endif | ||
6776 | |||
6777 | ; | ||
6778 | return 0; | ||
6779 | } | ||
6780 | _ACEOF | ||
6781 | rm -f conftest.$ac_objext | ||
6782 | if { (ac_try="$ac_compile" | ||
6783 | case "(($ac_try" in | ||
6784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6785 | *) ac_try_echo=$ac_try;; | ||
6786 | esac | ||
6787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6788 | (eval "$ac_compile") 2>conftest.er1 | ||
6789 | ac_status=$? | ||
6790 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6791 | rm -f conftest.er1 | ||
6792 | cat conftest.err >&5 | ||
6793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6794 | (exit $ac_status); } && { | ||
6795 | test -z "$ac_c_werror_flag" || | ||
6796 | test ! -s conftest.err | ||
6797 | } && test -s conftest.$ac_objext; then | ||
6798 | ac_cv_have_decl_setauthdb=yes | ||
6799 | else | ||
6800 | echo "$as_me: failed program was:" >&5 | ||
6801 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6802 | |||
6803 | ac_cv_have_decl_setauthdb=no | ||
6804 | fi | ||
6805 | |||
6806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6807 | fi | ||
6808 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5 | ||
6809 | echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; } | ||
6810 | if test $ac_cv_have_decl_setauthdb = yes; then | ||
6811 | |||
6812 | cat >>confdefs.h <<_ACEOF | ||
6813 | #define HAVE_DECL_SETAUTHDB 1 | ||
6814 | _ACEOF | ||
6815 | |||
6816 | |||
6817 | else | ||
6818 | cat >>confdefs.h <<_ACEOF | ||
6819 | #define HAVE_DECL_SETAUTHDB 0 | ||
6820 | _ACEOF | ||
6821 | |||
6822 | |||
6823 | fi | ||
6824 | |||
6825 | |||
6826 | { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5 | ||
6827 | echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; } | ||
6828 | if test "${ac_cv_have_decl_loginfailed+set}" = set; then | ||
6829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6830 | else | ||
6831 | cat >conftest.$ac_ext <<_ACEOF | ||
6832 | /* confdefs.h. */ | ||
6833 | _ACEOF | ||
6834 | cat confdefs.h >>conftest.$ac_ext | ||
6835 | cat >>conftest.$ac_ext <<_ACEOF | ||
6836 | /* end confdefs.h. */ | ||
6837 | #include <usersec.h> | ||
6838 | |||
6839 | |||
6840 | int | ||
6841 | main () | ||
6842 | { | ||
6843 | #ifndef loginfailed | ||
6844 | (void) loginfailed; | ||
6845 | #endif | ||
6846 | |||
6847 | ; | ||
6848 | return 0; | ||
6849 | } | ||
6850 | _ACEOF | ||
6851 | rm -f conftest.$ac_objext | ||
6852 | if { (ac_try="$ac_compile" | ||
6853 | case "(($ac_try" in | ||
6854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6855 | *) ac_try_echo=$ac_try;; | ||
6856 | esac | ||
6857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6858 | (eval "$ac_compile") 2>conftest.er1 | ||
6859 | ac_status=$? | ||
6860 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6861 | rm -f conftest.er1 | ||
6862 | cat conftest.err >&5 | ||
6863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6864 | (exit $ac_status); } && { | ||
6865 | test -z "$ac_c_werror_flag" || | ||
6866 | test ! -s conftest.err | ||
6867 | } && test -s conftest.$ac_objext; then | ||
6868 | ac_cv_have_decl_loginfailed=yes | ||
6869 | else | ||
6870 | echo "$as_me: failed program was:" >&5 | ||
6871 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6872 | |||
6873 | ac_cv_have_decl_loginfailed=no | ||
6874 | fi | ||
6875 | |||
6876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6877 | fi | ||
6878 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5 | ||
6879 | echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; } | ||
6880 | if test $ac_cv_have_decl_loginfailed = yes; then | ||
6881 | |||
6882 | cat >>confdefs.h <<_ACEOF | ||
6883 | #define HAVE_DECL_LOGINFAILED 1 | ||
6884 | _ACEOF | ||
6885 | |||
6886 | { echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5 | ||
6887 | echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; } | ||
6888 | cat >conftest.$ac_ext <<_ACEOF | ||
6889 | /* confdefs.h. */ | ||
6890 | _ACEOF | ||
6891 | cat confdefs.h >>conftest.$ac_ext | ||
6892 | cat >>conftest.$ac_ext <<_ACEOF | ||
6893 | /* end confdefs.h. */ | ||
6894 | #include <usersec.h> | ||
6895 | int | ||
6896 | main () | ||
6897 | { | ||
6898 | (void)loginfailed("user","host","tty",0); | ||
6899 | ; | ||
6900 | return 0; | ||
6901 | } | ||
6902 | _ACEOF | ||
6903 | rm -f conftest.$ac_objext | ||
6904 | if { (ac_try="$ac_compile" | ||
6905 | case "(($ac_try" in | ||
6906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6907 | *) ac_try_echo=$ac_try;; | ||
6908 | esac | ||
6909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6910 | (eval "$ac_compile") 2>conftest.er1 | ||
6911 | ac_status=$? | ||
6912 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6913 | rm -f conftest.er1 | ||
6914 | cat conftest.err >&5 | ||
6915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6916 | (exit $ac_status); } && { | ||
6917 | test -z "$ac_c_werror_flag" || | ||
6918 | test ! -s conftest.err | ||
6919 | } && test -s conftest.$ac_objext; then | ||
6920 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6921 | echo "${ECHO_T}yes" >&6; } | ||
6922 | |||
6923 | cat >>confdefs.h <<\_ACEOF | ||
6924 | #define AIX_LOGINFAILED_4ARG 1 | ||
6925 | _ACEOF | ||
6926 | |||
6927 | else | ||
6928 | echo "$as_me: failed program was:" >&5 | ||
6929 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6930 | |||
6931 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6932 | echo "${ECHO_T}no" >&6; } | ||
6933 | |||
6934 | fi | ||
6935 | |||
6936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6937 | else | ||
6938 | cat >>confdefs.h <<_ACEOF | ||
6939 | #define HAVE_DECL_LOGINFAILED 0 | ||
6940 | _ACEOF | ||
6941 | |||
6942 | |||
6943 | fi | ||
6944 | |||
6945 | |||
6946 | |||
6947 | |||
6948 | for ac_func in getgrset setauthdb | ||
6949 | do | ||
6950 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6951 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
6952 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
6953 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6955 | else | ||
6956 | cat >conftest.$ac_ext <<_ACEOF | ||
6957 | /* confdefs.h. */ | ||
6958 | _ACEOF | ||
6959 | cat confdefs.h >>conftest.$ac_ext | ||
6960 | cat >>conftest.$ac_ext <<_ACEOF | ||
6961 | /* end confdefs.h. */ | ||
6962 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
6963 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
6964 | #define $ac_func innocuous_$ac_func | ||
6965 | |||
6966 | /* System header to define __stub macros and hopefully few prototypes, | ||
6967 | which can conflict with char $ac_func (); below. | ||
6968 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6969 | <limits.h> exists even on freestanding compilers. */ | ||
6970 | |||
6971 | #ifdef __STDC__ | ||
6972 | # include <limits.h> | ||
6973 | #else | ||
6974 | # include <assert.h> | ||
6975 | #endif | ||
6976 | |||
6977 | #undef $ac_func | ||
6978 | |||
6979 | /* Override any GCC internal prototype to avoid an error. | ||
6980 | Use char because int might match the return type of a GCC | ||
6981 | builtin and then its argument prototype would still apply. */ | ||
6982 | #ifdef __cplusplus | ||
6983 | extern "C" | ||
6984 | #endif | ||
6985 | char $ac_func (); | ||
6986 | /* The GNU C library defines this for functions which it implements | ||
6987 | to always fail with ENOSYS. Some functions are actually named | ||
6988 | something starting with __ and the normal name is an alias. */ | ||
6989 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
6990 | choke me | ||
6991 | #endif | ||
6992 | |||
6993 | int | ||
6994 | main () | ||
6995 | { | ||
6996 | return $ac_func (); | ||
6997 | ; | ||
6998 | return 0; | ||
6999 | } | ||
7000 | _ACEOF | ||
7001 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7002 | if { (ac_try="$ac_link" | ||
7003 | case "(($ac_try" in | ||
7004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7005 | *) ac_try_echo=$ac_try;; | ||
7006 | esac | ||
7007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7008 | (eval "$ac_link") 2>conftest.er1 | ||
7009 | ac_status=$? | ||
7010 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7011 | rm -f conftest.er1 | ||
7012 | cat conftest.err >&5 | ||
7013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7014 | (exit $ac_status); } && { | ||
7015 | test -z "$ac_c_werror_flag" || | ||
7016 | test ! -s conftest.err | ||
7017 | } && test -s conftest$ac_exeext && | ||
7018 | $as_test_x conftest$ac_exeext; then | ||
7019 | eval "$as_ac_var=yes" | ||
7020 | else | ||
7021 | echo "$as_me: failed program was:" >&5 | ||
7022 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7023 | |||
7024 | eval "$as_ac_var=no" | ||
7025 | fi | ||
7026 | |||
7027 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7028 | conftest$ac_exeext conftest.$ac_ext | ||
7029 | fi | ||
7030 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
7031 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7032 | echo "${ECHO_T}$ac_res" >&6; } | ||
7033 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7034 | cat >>confdefs.h <<_ACEOF | ||
7035 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7036 | _ACEOF | ||
7037 | |||
7038 | fi | ||
7039 | done | ||
7040 | |||
7041 | { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5 | ||
7042 | echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; } | ||
7043 | if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then | ||
7044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7045 | else | ||
7046 | cat >conftest.$ac_ext <<_ACEOF | ||
7047 | /* confdefs.h. */ | ||
7048 | _ACEOF | ||
7049 | cat confdefs.h >>conftest.$ac_ext | ||
7050 | cat >>conftest.$ac_ext <<_ACEOF | ||
7051 | /* end confdefs.h. */ | ||
7052 | #include <limits.h> | ||
7053 | #include <fcntl.h> | ||
7054 | |||
7055 | |||
7056 | int | ||
7057 | main () | ||
7058 | { | ||
7059 | #ifndef F_CLOSEM | ||
7060 | (void) F_CLOSEM; | ||
7061 | #endif | ||
7062 | |||
7063 | ; | ||
7064 | return 0; | ||
7065 | } | ||
7066 | _ACEOF | ||
7067 | rm -f conftest.$ac_objext | ||
7068 | if { (ac_try="$ac_compile" | ||
7069 | case "(($ac_try" in | ||
7070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7071 | *) ac_try_echo=$ac_try;; | ||
7072 | esac | ||
7073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7074 | (eval "$ac_compile") 2>conftest.er1 | ||
7075 | ac_status=$? | ||
7076 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7077 | rm -f conftest.er1 | ||
7078 | cat conftest.err >&5 | ||
7079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7080 | (exit $ac_status); } && { | ||
7081 | test -z "$ac_c_werror_flag" || | ||
7082 | test ! -s conftest.err | ||
7083 | } && test -s conftest.$ac_objext; then | ||
7084 | ac_cv_have_decl_F_CLOSEM=yes | ||
7085 | else | ||
7086 | echo "$as_me: failed program was:" >&5 | ||
7087 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7088 | |||
7089 | ac_cv_have_decl_F_CLOSEM=no | ||
7090 | fi | ||
7091 | |||
7092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7093 | fi | ||
7094 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5 | ||
7095 | echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; } | ||
7096 | if test $ac_cv_have_decl_F_CLOSEM = yes; then | ||
7097 | |||
7098 | cat >>confdefs.h <<\_ACEOF | ||
7099 | #define HAVE_FCNTL_CLOSEM 1 | ||
7100 | _ACEOF | ||
7101 | |||
7102 | fi | ||
7103 | |||
7104 | check_for_aix_broken_getaddrinfo=1 | ||
7105 | |||
7106 | cat >>confdefs.h <<\_ACEOF | ||
7107 | #define BROKEN_REALPATH 1 | ||
7108 | _ACEOF | ||
7109 | |||
7110 | |||
7111 | cat >>confdefs.h <<\_ACEOF | ||
7112 | #define SETEUID_BREAKS_SETUID 1 | ||
7113 | _ACEOF | ||
7114 | |||
7115 | |||
7116 | cat >>confdefs.h <<\_ACEOF | ||
7117 | #define BROKEN_SETREUID 1 | ||
7118 | _ACEOF | ||
7119 | |||
7120 | |||
7121 | cat >>confdefs.h <<\_ACEOF | ||
7122 | #define BROKEN_SETREGID 1 | ||
7123 | _ACEOF | ||
7124 | |||
7125 | |||
7126 | cat >>confdefs.h <<\_ACEOF | ||
7127 | #define DISABLE_LASTLOG 1 | ||
7128 | _ACEOF | ||
7129 | |||
7130 | |||
7131 | cat >>confdefs.h <<\_ACEOF | ||
7132 | #define LOGIN_NEEDS_UTMPX 1 | ||
7133 | _ACEOF | ||
7134 | |||
7135 | |||
7136 | cat >>confdefs.h <<\_ACEOF | ||
7137 | #define SPT_TYPE SPT_REUSEARGV | ||
7138 | _ACEOF | ||
7139 | |||
7140 | |||
7141 | cat >>confdefs.h <<\_ACEOF | ||
7142 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 | ||
7143 | _ACEOF | ||
7144 | |||
7145 | |||
7146 | cat >>confdefs.h <<\_ACEOF | ||
7147 | #define PTY_ZEROREAD 1 | ||
7148 | _ACEOF | ||
7149 | |||
7150 | ;; | ||
7151 | *-*-cygwin*) | ||
7152 | check_for_libcrypt_later=1 | ||
7153 | LIBS="$LIBS /usr/lib/textreadmode.o" | ||
7154 | |||
7155 | cat >>confdefs.h <<\_ACEOF | ||
7156 | #define HAVE_CYGWIN 1 | ||
7157 | _ACEOF | ||
7158 | |||
7159 | |||
7160 | cat >>confdefs.h <<\_ACEOF | ||
7161 | #define USE_PIPES 1 | ||
7162 | _ACEOF | ||
7163 | |||
7164 | |||
7165 | cat >>confdefs.h <<\_ACEOF | ||
7166 | #define DISABLE_SHADOW 1 | ||
7167 | _ACEOF | ||
7168 | |||
7169 | |||
7170 | cat >>confdefs.h <<\_ACEOF | ||
7171 | #define IP_TOS_IS_BROKEN 1 | ||
7172 | _ACEOF | ||
7173 | |||
7174 | |||
7175 | cat >>confdefs.h <<\_ACEOF | ||
7176 | #define NO_X11_UNIX_SOCKETS 1 | ||
7177 | _ACEOF | ||
7178 | |||
7179 | |||
7180 | cat >>confdefs.h <<\_ACEOF | ||
7181 | #define NO_IPPORT_RESERVED_CONCEPT 1 | ||
7182 | _ACEOF | ||
7183 | |||
7184 | |||
7185 | cat >>confdefs.h <<\_ACEOF | ||
7186 | #define DISABLE_FD_PASSING 1 | ||
7187 | _ACEOF | ||
7188 | |||
7189 | ;; | ||
7190 | *-*-dgux*) | ||
7191 | cat >>confdefs.h <<\_ACEOF | ||
7192 | #define IP_TOS_IS_BROKEN 1 | ||
7193 | _ACEOF | ||
7194 | |||
7195 | cat >>confdefs.h <<\_ACEOF | ||
7196 | #define SETEUID_BREAKS_SETUID 1 | ||
7197 | _ACEOF | ||
7198 | |||
7199 | cat >>confdefs.h <<\_ACEOF | ||
7200 | #define BROKEN_SETREUID 1 | ||
7201 | _ACEOF | ||
7202 | |||
7203 | cat >>confdefs.h <<\_ACEOF | ||
7204 | #define BROKEN_SETREGID 1 | ||
7205 | _ACEOF | ||
7206 | |||
7207 | ;; | ||
7208 | *-*-darwin*) | ||
7209 | { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5 | ||
7210 | echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; } | ||
7211 | if test "$cross_compiling" = yes; then | ||
7212 | { echo "$as_me:$LINENO: result: assume it is working" >&5 | ||
7213 | echo "${ECHO_T}assume it is working" >&6; } | ||
7214 | else | ||
7215 | cat >conftest.$ac_ext <<_ACEOF | ||
7216 | /* confdefs.h. */ | ||
7217 | _ACEOF | ||
7218 | cat confdefs.h >>conftest.$ac_ext | ||
7219 | cat >>conftest.$ac_ext <<_ACEOF | ||
7220 | /* end confdefs.h. */ | ||
7221 | #include <mach-o/dyld.h> | ||
7222 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
7223 | exit(0); | ||
7224 | else | ||
7225 | exit(1); | ||
7226 | } | ||
7227 | _ACEOF | ||
7228 | rm -f conftest$ac_exeext | ||
7229 | if { (ac_try="$ac_link" | ||
7230 | case "(($ac_try" in | ||
7231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7232 | *) ac_try_echo=$ac_try;; | ||
7233 | esac | ||
7234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7235 | (eval "$ac_link") 2>&5 | ||
7236 | ac_status=$? | ||
7237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7238 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7239 | { (case "(($ac_try" in | ||
7240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7241 | *) ac_try_echo=$ac_try;; | ||
7242 | esac | ||
7243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7244 | (eval "$ac_try") 2>&5 | ||
7245 | ac_status=$? | ||
7246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7247 | (exit $ac_status); }; }; then | ||
7248 | { echo "$as_me:$LINENO: result: working" >&5 | ||
7249 | echo "${ECHO_T}working" >&6; } | ||
7250 | else | ||
7251 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7252 | echo "$as_me: failed program was:" >&5 | ||
7253 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7254 | |||
7255 | ( exit $ac_status ) | ||
7256 | { echo "$as_me:$LINENO: result: buggy" >&5 | ||
7257 | echo "${ECHO_T}buggy" >&6; } | ||
7258 | |||
7259 | cat >>confdefs.h <<\_ACEOF | ||
7260 | #define BROKEN_GETADDRINFO 1 | ||
7261 | _ACEOF | ||
7262 | |||
7263 | fi | ||
7264 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7265 | fi | ||
7266 | |||
7267 | |||
7268 | cat >>confdefs.h <<\_ACEOF | ||
7269 | #define SETEUID_BREAKS_SETUID 1 | ||
7270 | _ACEOF | ||
7271 | |||
7272 | cat >>confdefs.h <<\_ACEOF | ||
7273 | #define BROKEN_SETREUID 1 | ||
7274 | _ACEOF | ||
7275 | |||
7276 | cat >>confdefs.h <<\_ACEOF | ||
7277 | #define BROKEN_SETREGID 1 | ||
7278 | _ACEOF | ||
7279 | |||
7280 | |||
7281 | cat >>confdefs.h <<\_ACEOF | ||
7282 | #define BROKEN_GLOB 1 | ||
7283 | _ACEOF | ||
7284 | |||
7285 | |||
7286 | cat >>confdefs.h <<_ACEOF | ||
7287 | #define BIND_8_COMPAT 1 | ||
7288 | _ACEOF | ||
7289 | |||
7290 | |||
7291 | cat >>confdefs.h <<\_ACEOF | ||
7292 | #define SSH_TUN_FREEBSD 1 | ||
7293 | _ACEOF | ||
7294 | |||
7295 | |||
7296 | cat >>confdefs.h <<\_ACEOF | ||
7297 | #define SSH_TUN_COMPAT_AF 1 | ||
7298 | _ACEOF | ||
7299 | |||
7300 | |||
7301 | cat >>confdefs.h <<\_ACEOF | ||
7302 | #define SSH_TUN_PREPEND_AF 1 | ||
7303 | _ACEOF | ||
7304 | |||
7305 | |||
7306 | { echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5 | ||
7307 | echo $ECHO_N "checking whether AU_IPv4 is declared... $ECHO_C" >&6; } | ||
7308 | if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then | ||
7309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7310 | else | ||
7311 | cat >conftest.$ac_ext <<_ACEOF | ||
7312 | /* confdefs.h. */ | ||
7313 | _ACEOF | ||
7314 | cat confdefs.h >>conftest.$ac_ext | ||
7315 | cat >>conftest.$ac_ext <<_ACEOF | ||
7316 | /* end confdefs.h. */ | ||
7317 | $ac_includes_default | ||
7318 | int | ||
7319 | main () | ||
7320 | { | ||
7321 | #ifndef AU_IPv4 | ||
7322 | (void) AU_IPv4; | ||
7323 | #endif | ||
7324 | |||
7325 | ; | ||
7326 | return 0; | ||
7327 | } | ||
7328 | _ACEOF | ||
7329 | rm -f conftest.$ac_objext | ||
7330 | if { (ac_try="$ac_compile" | ||
7331 | case "(($ac_try" in | ||
7332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7333 | *) ac_try_echo=$ac_try;; | ||
7334 | esac | ||
7335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7336 | (eval "$ac_compile") 2>conftest.er1 | ||
7337 | ac_status=$? | ||
7338 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7339 | rm -f conftest.er1 | ||
7340 | cat conftest.err >&5 | ||
7341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7342 | (exit $ac_status); } && { | ||
7343 | test -z "$ac_c_werror_flag" || | ||
7344 | test ! -s conftest.err | ||
7345 | } && test -s conftest.$ac_objext; then | ||
7346 | ac_cv_have_decl_AU_IPv4=yes | ||
7347 | else | ||
7348 | echo "$as_me: failed program was:" >&5 | ||
7349 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7350 | |||
7351 | ac_cv_have_decl_AU_IPv4=no | ||
7352 | fi | ||
7353 | |||
7354 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7355 | fi | ||
7356 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5 | ||
7357 | echo "${ECHO_T}$ac_cv_have_decl_AU_IPv4" >&6; } | ||
7358 | if test $ac_cv_have_decl_AU_IPv4 = yes; then | ||
7359 | : | ||
7360 | else | ||
7361 | |||
7362 | cat >>confdefs.h <<\_ACEOF | ||
7363 | #define AU_IPv4 0 | ||
7364 | _ACEOF | ||
7365 | |||
7366 | #include <bsm/audit.h> | ||
7367 | |||
7368 | fi | ||
7369 | |||
7370 | ;; | ||
7371 | *-*-dragonfly*) | ||
7372 | SSHDLIBS="$SSHDLIBS -lcrypt" | ||
7373 | ;; | ||
7374 | *-*-hpux*) | ||
7375 | # first we define all of the options common to all HP-UX releases | ||
7376 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
7377 | IPADDR_IN_DISPLAY=yes | ||
7378 | cat >>confdefs.h <<\_ACEOF | ||
7379 | #define USE_PIPES 1 | ||
7380 | _ACEOF | ||
7381 | |||
7382 | |||
7383 | cat >>confdefs.h <<\_ACEOF | ||
7384 | #define LOGIN_NO_ENDOPT 1 | ||
7385 | _ACEOF | ||
7386 | |||
7387 | cat >>confdefs.h <<\_ACEOF | ||
7388 | #define LOGIN_NEEDS_UTMPX 1 | ||
7389 | _ACEOF | ||
7390 | |||
7391 | |||
7392 | cat >>confdefs.h <<\_ACEOF | ||
7393 | #define LOCKED_PASSWD_STRING "*" | ||
7394 | _ACEOF | ||
7395 | |||
7396 | cat >>confdefs.h <<\_ACEOF | ||
7397 | #define SPT_TYPE SPT_PSTAT | ||
7398 | _ACEOF | ||
7399 | |||
7400 | MAIL="/var/mail/username" | ||
7401 | LIBS="$LIBS -lsec" | ||
7402 | |||
7403 | { echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
7404 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; } | ||
7405 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
7406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7407 | else | ||
7408 | ac_check_lib_save_LIBS=$LIBS | ||
7409 | LIBS="-lxnet $LIBS" | ||
7410 | cat >conftest.$ac_ext <<_ACEOF | ||
7411 | /* confdefs.h. */ | ||
7412 | _ACEOF | ||
7413 | cat confdefs.h >>conftest.$ac_ext | ||
7414 | cat >>conftest.$ac_ext <<_ACEOF | ||
7415 | /* end confdefs.h. */ | ||
7416 | |||
7417 | /* Override any GCC internal prototype to avoid an error. | ||
7418 | Use char because int might match the return type of a GCC | ||
7419 | builtin and then its argument prototype would still apply. */ | ||
7420 | #ifdef __cplusplus | ||
7421 | extern "C" | ||
7422 | #endif | ||
7423 | char t_error (); | ||
7424 | int | ||
7425 | main () | ||
7426 | { | ||
7427 | return t_error (); | ||
7428 | ; | ||
7429 | return 0; | ||
7430 | } | ||
7431 | _ACEOF | ||
7432 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7433 | if { (ac_try="$ac_link" | ||
7434 | case "(($ac_try" in | ||
7435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7436 | *) ac_try_echo=$ac_try;; | ||
7437 | esac | ||
7438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7439 | (eval "$ac_link") 2>conftest.er1 | ||
7440 | ac_status=$? | ||
7441 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7442 | rm -f conftest.er1 | ||
7443 | cat conftest.err >&5 | ||
7444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7445 | (exit $ac_status); } && { | ||
7446 | test -z "$ac_c_werror_flag" || | ||
7447 | test ! -s conftest.err | ||
7448 | } && test -s conftest$ac_exeext && | ||
7449 | $as_test_x conftest$ac_exeext; then | ||
7450 | ac_cv_lib_xnet_t_error=yes | ||
7451 | else | ||
7452 | echo "$as_me: failed program was:" >&5 | ||
7453 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7454 | |||
7455 | ac_cv_lib_xnet_t_error=no | ||
7456 | fi | ||
7457 | |||
7458 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7459 | conftest$ac_exeext conftest.$ac_ext | ||
7460 | LIBS=$ac_check_lib_save_LIBS | ||
7461 | fi | ||
7462 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
7463 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; } | ||
7464 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
7465 | cat >>confdefs.h <<_ACEOF | ||
7466 | #define HAVE_LIBXNET 1 | ||
7467 | _ACEOF | ||
7468 | |||
7469 | LIBS="-lxnet $LIBS" | ||
7470 | |||
7471 | else | ||
7472 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
7473 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
7474 | { (exit 1); exit 1; }; } | ||
7475 | fi | ||
7476 | |||
7477 | |||
7478 | # next, we define all of the options specific to major releases | ||
7479 | case "$host" in | ||
7480 | *-*-hpux10*) | ||
7481 | if test -z "$GCC"; then | ||
7482 | CFLAGS="$CFLAGS -Ae" | ||
7483 | fi | ||
7484 | ;; | ||
7485 | *-*-hpux11*) | ||
7486 | |||
7487 | cat >>confdefs.h <<\_ACEOF | ||
7488 | #define PAM_SUN_CODEBASE 1 | ||
7489 | _ACEOF | ||
7490 | |||
7491 | |||
7492 | cat >>confdefs.h <<\_ACEOF | ||
7493 | #define DISABLE_UTMP 1 | ||
7494 | _ACEOF | ||
7495 | |||
7496 | |||
7497 | cat >>confdefs.h <<\_ACEOF | ||
7498 | #define USE_BTMP 1 | ||
7499 | _ACEOF | ||
7500 | |||
7501 | check_for_hpux_broken_getaddrinfo=1 | ||
7502 | check_for_conflicting_getspnam=1 | ||
7503 | ;; | ||
7504 | esac | ||
7505 | |||
7506 | # lastly, we define options specific to minor releases | ||
7507 | case "$host" in | ||
7508 | *-*-hpux10.26) | ||
7509 | |||
7510 | cat >>confdefs.h <<\_ACEOF | ||
7511 | #define HAVE_SECUREWARE 1 | ||
7512 | _ACEOF | ||
7513 | |||
7514 | disable_ptmx_check=yes | ||
7515 | LIBS="$LIBS -lsecpw" | ||
7516 | ;; | ||
7517 | esac | ||
7518 | ;; | ||
7519 | *-*-irix5*) | ||
7520 | PATH="$PATH:/usr/etc" | ||
7521 | |||
7522 | cat >>confdefs.h <<\_ACEOF | ||
7523 | #define BROKEN_INET_NTOA 1 | ||
7524 | _ACEOF | ||
7525 | |||
7526 | cat >>confdefs.h <<\_ACEOF | ||
7527 | #define SETEUID_BREAKS_SETUID 1 | ||
7528 | _ACEOF | ||
7529 | |||
7530 | cat >>confdefs.h <<\_ACEOF | ||
7531 | #define BROKEN_SETREUID 1 | ||
7532 | _ACEOF | ||
7533 | |||
7534 | cat >>confdefs.h <<\_ACEOF | ||
7535 | #define BROKEN_SETREGID 1 | ||
7536 | _ACEOF | ||
7537 | |||
7538 | |||
7539 | cat >>confdefs.h <<\_ACEOF | ||
7540 | #define WITH_ABBREV_NO_TTY 1 | ||
7541 | _ACEOF | ||
7542 | |||
7543 | cat >>confdefs.h <<\_ACEOF | ||
7544 | #define LOCKED_PASSWD_STRING "*LK*" | ||
7545 | _ACEOF | ||
7546 | |||
7547 | ;; | ||
7548 | *-*-irix6*) | ||
7549 | PATH="$PATH:/usr/etc" | ||
7550 | |||
7551 | cat >>confdefs.h <<\_ACEOF | ||
7552 | #define WITH_IRIX_ARRAY 1 | ||
7553 | _ACEOF | ||
7554 | |||
7555 | |||
7556 | cat >>confdefs.h <<\_ACEOF | ||
7557 | #define WITH_IRIX_PROJECT 1 | ||
7558 | _ACEOF | ||
7559 | |||
7560 | |||
7561 | cat >>confdefs.h <<\_ACEOF | ||
7562 | #define WITH_IRIX_AUDIT 1 | ||
7563 | _ACEOF | ||
7564 | |||
7565 | { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5 | ||
7566 | echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; } | ||
7567 | if test "${ac_cv_func_jlimit_startjob+set}" = set; then | ||
7568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7569 | else | ||
7570 | cat >conftest.$ac_ext <<_ACEOF | ||
7571 | /* confdefs.h. */ | ||
7572 | _ACEOF | ||
7573 | cat confdefs.h >>conftest.$ac_ext | ||
7574 | cat >>conftest.$ac_ext <<_ACEOF | ||
7575 | /* end confdefs.h. */ | ||
7576 | /* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob. | ||
7577 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
7578 | #define jlimit_startjob innocuous_jlimit_startjob | ||
7579 | |||
7580 | /* System header to define __stub macros and hopefully few prototypes, | ||
7581 | which can conflict with char jlimit_startjob (); below. | ||
7582 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
7583 | <limits.h> exists even on freestanding compilers. */ | ||
7584 | |||
7585 | #ifdef __STDC__ | ||
7586 | # include <limits.h> | ||
7587 | #else | ||
7588 | # include <assert.h> | ||
7589 | #endif | ||
7590 | |||
7591 | #undef jlimit_startjob | ||
7592 | |||
7593 | /* Override any GCC internal prototype to avoid an error. | ||
7594 | Use char because int might match the return type of a GCC | ||
7595 | builtin and then its argument prototype would still apply. */ | ||
7596 | #ifdef __cplusplus | ||
7597 | extern "C" | ||
7598 | #endif | ||
7599 | char jlimit_startjob (); | ||
7600 | /* The GNU C library defines this for functions which it implements | ||
7601 | to always fail with ENOSYS. Some functions are actually named | ||
7602 | something starting with __ and the normal name is an alias. */ | ||
7603 | #if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob | ||
7604 | choke me | ||
7605 | #endif | ||
7606 | |||
7607 | int | ||
7608 | main () | ||
7609 | { | ||
7610 | return jlimit_startjob (); | ||
7611 | ; | ||
7612 | return 0; | ||
7613 | } | ||
7614 | _ACEOF | ||
7615 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7616 | if { (ac_try="$ac_link" | ||
7617 | case "(($ac_try" in | ||
7618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7619 | *) ac_try_echo=$ac_try;; | ||
7620 | esac | ||
7621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7622 | (eval "$ac_link") 2>conftest.er1 | ||
7623 | ac_status=$? | ||
7624 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7625 | rm -f conftest.er1 | ||
7626 | cat conftest.err >&5 | ||
7627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7628 | (exit $ac_status); } && { | ||
7629 | test -z "$ac_c_werror_flag" || | ||
7630 | test ! -s conftest.err | ||
7631 | } && test -s conftest$ac_exeext && | ||
7632 | $as_test_x conftest$ac_exeext; then | ||
7633 | ac_cv_func_jlimit_startjob=yes | ||
7634 | else | ||
7635 | echo "$as_me: failed program was:" >&5 | ||
7636 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7637 | |||
7638 | ac_cv_func_jlimit_startjob=no | ||
7639 | fi | ||
7640 | |||
7641 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7642 | conftest$ac_exeext conftest.$ac_ext | ||
7643 | fi | ||
7644 | { echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5 | ||
7645 | echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; } | ||
7646 | if test $ac_cv_func_jlimit_startjob = yes; then | ||
7647 | |||
7648 | cat >>confdefs.h <<\_ACEOF | ||
7649 | #define WITH_IRIX_JOBS 1 | ||
7650 | _ACEOF | ||
7651 | |||
7652 | fi | ||
7653 | |||
7654 | cat >>confdefs.h <<\_ACEOF | ||
7655 | #define BROKEN_INET_NTOA 1 | ||
7656 | _ACEOF | ||
7657 | |||
7658 | cat >>confdefs.h <<\_ACEOF | ||
7659 | #define SETEUID_BREAKS_SETUID 1 | ||
7660 | _ACEOF | ||
7661 | |||
7662 | cat >>confdefs.h <<\_ACEOF | ||
7663 | #define BROKEN_SETREUID 1 | ||
7664 | _ACEOF | ||
7665 | |||
7666 | cat >>confdefs.h <<\_ACEOF | ||
7667 | #define BROKEN_SETREGID 1 | ||
7668 | _ACEOF | ||
7669 | |||
7670 | |||
7671 | cat >>confdefs.h <<\_ACEOF | ||
7672 | #define BROKEN_UPDWTMPX 1 | ||
7673 | _ACEOF | ||
7674 | |||
7675 | cat >>confdefs.h <<\_ACEOF | ||
7676 | #define WITH_ABBREV_NO_TTY 1 | ||
7677 | _ACEOF | ||
7678 | |||
7679 | cat >>confdefs.h <<\_ACEOF | ||
7680 | #define LOCKED_PASSWD_STRING "*LK*" | ||
7681 | _ACEOF | ||
7682 | |||
7683 | ;; | ||
7684 | *-*-linux*) | ||
7685 | no_dev_ptmx=1 | ||
7686 | check_for_libcrypt_later=1 | ||
7687 | check_for_openpty_ctty_bug=1 | ||
7688 | |||
7689 | cat >>confdefs.h <<\_ACEOF | ||
7690 | #define PAM_TTY_KLUDGE 1 | ||
7691 | _ACEOF | ||
7692 | |||
7693 | |||
7694 | cat >>confdefs.h <<\_ACEOF | ||
7695 | #define LOCKED_PASSWD_PREFIX "!" | ||
7696 | _ACEOF | ||
7697 | |||
7698 | cat >>confdefs.h <<\_ACEOF | ||
7699 | #define SPT_TYPE SPT_REUSEARGV | ||
7700 | _ACEOF | ||
7701 | |||
7702 | |||
7703 | cat >>confdefs.h <<\_ACEOF | ||
7704 | #define LINK_OPNOTSUPP_ERRNO EPERM | ||
7705 | _ACEOF | ||
7706 | |||
7707 | |||
7708 | cat >>confdefs.h <<\_ACEOF | ||
7709 | #define _PATH_BTMP "/var/log/btmp" | ||
7710 | _ACEOF | ||
7711 | |||
7712 | cat >>confdefs.h <<\_ACEOF | ||
7713 | #define USE_BTMP 1 | ||
7714 | _ACEOF | ||
7715 | |||
7716 | inet6_default_4in6=yes | ||
7717 | case `uname -r` in | ||
7718 | 1.*|2.0.*) | ||
7719 | |||
7720 | cat >>confdefs.h <<\_ACEOF | ||
7721 | #define BROKEN_CMSG_TYPE 1 | ||
7722 | _ACEOF | ||
7723 | |||
7724 | ;; | ||
7725 | esac | ||
7726 | # tun(4) forwarding compat code | ||
7727 | |||
7728 | for ac_header in linux/if_tun.h | ||
7729 | do | ||
7730 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7731 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7732 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7733 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7734 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7736 | fi | ||
7737 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7738 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7739 | echo "${ECHO_T}$ac_res" >&6; } | ||
7740 | else | ||
7741 | # Is the header compilable? | ||
7742 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
7743 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
7744 | cat >conftest.$ac_ext <<_ACEOF | ||
7745 | /* confdefs.h. */ | ||
7746 | _ACEOF | ||
7747 | cat confdefs.h >>conftest.$ac_ext | ||
7748 | cat >>conftest.$ac_ext <<_ACEOF | ||
7749 | /* end confdefs.h. */ | ||
7750 | $ac_includes_default | ||
7751 | #include <$ac_header> | ||
7752 | _ACEOF | ||
7753 | rm -f conftest.$ac_objext | ||
7754 | if { (ac_try="$ac_compile" | ||
7755 | case "(($ac_try" in | ||
7756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7757 | *) ac_try_echo=$ac_try;; | ||
7758 | esac | ||
7759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7760 | (eval "$ac_compile") 2>conftest.er1 | ||
7761 | ac_status=$? | ||
7762 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7763 | rm -f conftest.er1 | ||
7764 | cat conftest.err >&5 | ||
7765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7766 | (exit $ac_status); } && { | ||
7767 | test -z "$ac_c_werror_flag" || | ||
7768 | test ! -s conftest.err | ||
7769 | } && test -s conftest.$ac_objext; then | ||
7770 | ac_header_compiler=yes | ||
7771 | else | ||
7772 | echo "$as_me: failed program was:" >&5 | ||
7773 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7774 | |||
7775 | ac_header_compiler=no | ||
7776 | fi | ||
7777 | |||
7778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7779 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7780 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
7781 | |||
7782 | # Is the header present? | ||
7783 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
7784 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
7785 | cat >conftest.$ac_ext <<_ACEOF | ||
7786 | /* confdefs.h. */ | ||
7787 | _ACEOF | ||
7788 | cat confdefs.h >>conftest.$ac_ext | ||
7789 | cat >>conftest.$ac_ext <<_ACEOF | ||
7790 | /* end confdefs.h. */ | ||
7791 | #include <$ac_header> | ||
7792 | _ACEOF | ||
7793 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
7794 | case "(($ac_try" in | ||
7795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7796 | *) ac_try_echo=$ac_try;; | ||
7797 | esac | ||
7798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7799 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
7800 | ac_status=$? | ||
7801 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7802 | rm -f conftest.er1 | ||
7803 | cat conftest.err >&5 | ||
7804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7805 | (exit $ac_status); } >/dev/null && { | ||
7806 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
7807 | test ! -s conftest.err | ||
7808 | }; then | ||
7809 | ac_header_preproc=yes | ||
7810 | else | ||
7811 | echo "$as_me: failed program was:" >&5 | ||
7812 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7813 | |||
7814 | ac_header_preproc=no | ||
7815 | fi | ||
7816 | |||
7817 | rm -f conftest.err conftest.$ac_ext | ||
7818 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
7819 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
7820 | |||
7821 | # So? What about this header? | ||
7822 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
7823 | yes:no: ) | ||
7824 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
7825 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
7826 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
7827 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
7828 | ac_header_preproc=yes | ||
7829 | ;; | ||
7830 | no:yes:* ) | ||
7831 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
7832 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
7833 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
7834 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
7835 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
7836 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
7837 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
7838 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
7839 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
7840 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
7841 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
7842 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
7843 | ( cat <<\_ASBOX | ||
7844 | ## ------------------------------------------- ## | ||
7845 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
7846 | ## ------------------------------------------- ## | ||
7847 | _ASBOX | ||
7848 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
7849 | ;; | ||
7850 | esac | ||
7851 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7852 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7853 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7855 | else | ||
7856 | eval "$as_ac_Header=\$ac_header_preproc" | ||
7857 | fi | ||
7858 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7859 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7860 | echo "${ECHO_T}$ac_res" >&6; } | ||
7861 | |||
7862 | fi | ||
7863 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7864 | cat >>confdefs.h <<_ACEOF | ||
7865 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7866 | _ACEOF | ||
7867 | |||
7868 | fi | ||
7869 | |||
7870 | done | ||
7871 | |||
7872 | if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then | ||
7873 | |||
7874 | cat >>confdefs.h <<\_ACEOF | ||
7875 | #define SSH_TUN_LINUX 1 | ||
7876 | _ACEOF | ||
7877 | |||
7878 | |||
7879 | cat >>confdefs.h <<\_ACEOF | ||
7880 | #define SSH_TUN_COMPAT_AF 1 | ||
7881 | _ACEOF | ||
7882 | |||
7883 | |||
7884 | cat >>confdefs.h <<\_ACEOF | ||
7885 | #define SSH_TUN_PREPEND_AF 1 | ||
7886 | _ACEOF | ||
7887 | |||
7888 | fi | ||
7889 | ;; | ||
7890 | mips-sony-bsd|mips-sony-newsos4) | ||
7891 | |||
7892 | cat >>confdefs.h <<\_ACEOF | ||
7893 | #define NEED_SETPGRP 1 | ||
7894 | _ACEOF | ||
7895 | |||
7896 | SONY=1 | ||
7897 | ;; | ||
7898 | *-*-netbsd*) | ||
7899 | check_for_libcrypt_before=1 | ||
7900 | if test "x$withval" != "xno" ; then | ||
7901 | need_dash_r=1 | ||
7902 | fi | ||
7903 | |||
7904 | cat >>confdefs.h <<\_ACEOF | ||
7905 | #define SSH_TUN_FREEBSD 1 | ||
7906 | _ACEOF | ||
7907 | |||
7908 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
7909 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
7910 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
7911 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
7912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7913 | fi | ||
7914 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
7915 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
7916 | else | ||
7917 | # Is the header compilable? | ||
7918 | { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5 | ||
7919 | echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; } | ||
7920 | cat >conftest.$ac_ext <<_ACEOF | ||
7921 | /* confdefs.h. */ | ||
7922 | _ACEOF | ||
7923 | cat confdefs.h >>conftest.$ac_ext | ||
7924 | cat >>conftest.$ac_ext <<_ACEOF | ||
7925 | /* end confdefs.h. */ | ||
7926 | $ac_includes_default | ||
7927 | #include <net/if_tap.h> | ||
7928 | _ACEOF | ||
7929 | rm -f conftest.$ac_objext | ||
7930 | if { (ac_try="$ac_compile" | ||
7931 | case "(($ac_try" in | ||
7932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7933 | *) ac_try_echo=$ac_try;; | ||
7934 | esac | ||
7935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7936 | (eval "$ac_compile") 2>conftest.er1 | ||
7937 | ac_status=$? | ||
7938 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7939 | rm -f conftest.er1 | ||
7940 | cat conftest.err >&5 | ||
7941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7942 | (exit $ac_status); } && { | ||
7943 | test -z "$ac_c_werror_flag" || | ||
7944 | test ! -s conftest.err | ||
7945 | } && test -s conftest.$ac_objext; then | ||
7946 | ac_header_compiler=yes | ||
7947 | else | ||
7948 | echo "$as_me: failed program was:" >&5 | ||
7949 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7950 | |||
7951 | ac_header_compiler=no | ||
7952 | fi | ||
7953 | |||
7954 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7955 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7956 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
7957 | |||
7958 | # Is the header present? | ||
7959 | { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5 | ||
7960 | echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; } | ||
7961 | cat >conftest.$ac_ext <<_ACEOF | ||
7962 | /* confdefs.h. */ | ||
7963 | _ACEOF | ||
7964 | cat confdefs.h >>conftest.$ac_ext | ||
7965 | cat >>conftest.$ac_ext <<_ACEOF | ||
7966 | /* end confdefs.h. */ | ||
7967 | #include <net/if_tap.h> | ||
7968 | _ACEOF | ||
7969 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
7970 | case "(($ac_try" in | ||
7971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7972 | *) ac_try_echo=$ac_try;; | ||
7973 | esac | ||
7974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7975 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
7976 | ac_status=$? | ||
7977 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7978 | rm -f conftest.er1 | ||
7979 | cat conftest.err >&5 | ||
7980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7981 | (exit $ac_status); } >/dev/null && { | ||
7982 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
7983 | test ! -s conftest.err | ||
7984 | }; then | ||
7985 | ac_header_preproc=yes | ||
7986 | else | ||
7987 | echo "$as_me: failed program was:" >&5 | ||
7988 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7989 | |||
7990 | ac_header_preproc=no | ||
7991 | fi | ||
7992 | |||
7993 | rm -f conftest.err conftest.$ac_ext | ||
7994 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
7995 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
7996 | |||
7997 | # So? What about this header? | ||
7998 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
7999 | yes:no: ) | ||
8000 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
8001 | echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
8002 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5 | ||
8003 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;} | ||
8004 | ac_header_preproc=yes | ||
8005 | ;; | ||
8006 | no:yes:* ) | ||
8007 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5 | ||
8008 | echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;} | ||
8009 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5 | ||
8010 | echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;} | ||
8011 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5 | ||
8012 | echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;} | ||
8013 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
8014 | echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
8015 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5 | ||
8016 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;} | ||
8017 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5 | ||
8018 | echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;} | ||
8019 | ( cat <<\_ASBOX | ||
8020 | ## ------------------------------------------- ## | ||
8021 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
8022 | ## ------------------------------------------- ## | ||
8023 | _ASBOX | ||
8024 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
8025 | ;; | ||
8026 | esac | ||
8027 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
8028 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
8029 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8031 | else | ||
8032 | ac_cv_header_net_if_tap_h=$ac_header_preproc | ||
8033 | fi | ||
8034 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
8035 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
8036 | |||
8037 | fi | ||
8038 | if test $ac_cv_header_net_if_tap_h = yes; then | ||
8039 | : | ||
8040 | else | ||
8041 | |||
8042 | cat >>confdefs.h <<\_ACEOF | ||
8043 | #define SSH_TUN_NO_L2 1 | ||
8044 | _ACEOF | ||
8045 | |||
8046 | fi | ||
8047 | |||
8048 | |||
8049 | |||
8050 | cat >>confdefs.h <<\_ACEOF | ||
8051 | #define SSH_TUN_PREPEND_AF 1 | ||
8052 | _ACEOF | ||
8053 | |||
8054 | ;; | ||
8055 | *-*-freebsd*) | ||
8056 | check_for_libcrypt_later=1 | ||
8057 | |||
8058 | cat >>confdefs.h <<\_ACEOF | ||
8059 | #define LOCKED_PASSWD_PREFIX "*LOCKED*" | ||
8060 | _ACEOF | ||
8061 | |||
8062 | |||
8063 | cat >>confdefs.h <<\_ACEOF | ||
8064 | #define SSH_TUN_FREEBSD 1 | ||
8065 | _ACEOF | ||
8066 | |||
8067 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8068 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
8069 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
8070 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8072 | fi | ||
8073 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
8074 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
8075 | else | ||
8076 | # Is the header compilable? | ||
8077 | { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5 | ||
8078 | echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; } | ||
8079 | cat >conftest.$ac_ext <<_ACEOF | ||
8080 | /* confdefs.h. */ | ||
8081 | _ACEOF | ||
8082 | cat confdefs.h >>conftest.$ac_ext | ||
8083 | cat >>conftest.$ac_ext <<_ACEOF | ||
8084 | /* end confdefs.h. */ | ||
8085 | $ac_includes_default | ||
8086 | #include <net/if_tap.h> | ||
8087 | _ACEOF | ||
8088 | rm -f conftest.$ac_objext | ||
8089 | if { (ac_try="$ac_compile" | ||
8090 | case "(($ac_try" in | ||
8091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8092 | *) ac_try_echo=$ac_try;; | ||
8093 | esac | ||
8094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8095 | (eval "$ac_compile") 2>conftest.er1 | ||
8096 | ac_status=$? | ||
8097 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8098 | rm -f conftest.er1 | ||
8099 | cat conftest.err >&5 | ||
8100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8101 | (exit $ac_status); } && { | ||
8102 | test -z "$ac_c_werror_flag" || | ||
8103 | test ! -s conftest.err | ||
8104 | } && test -s conftest.$ac_objext; then | ||
8105 | ac_header_compiler=yes | ||
8106 | else | ||
8107 | echo "$as_me: failed program was:" >&5 | ||
8108 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8109 | |||
8110 | ac_header_compiler=no | ||
8111 | fi | ||
8112 | |||
8113 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8114 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
8115 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
8116 | |||
8117 | # Is the header present? | ||
8118 | { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5 | ||
8119 | echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; } | ||
8120 | cat >conftest.$ac_ext <<_ACEOF | ||
8121 | /* confdefs.h. */ | ||
8122 | _ACEOF | ||
8123 | cat confdefs.h >>conftest.$ac_ext | ||
8124 | cat >>conftest.$ac_ext <<_ACEOF | ||
8125 | /* end confdefs.h. */ | ||
8126 | #include <net/if_tap.h> | ||
8127 | _ACEOF | ||
8128 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
8129 | case "(($ac_try" in | ||
8130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8131 | *) ac_try_echo=$ac_try;; | ||
8132 | esac | ||
8133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8134 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
8135 | ac_status=$? | ||
8136 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8137 | rm -f conftest.er1 | ||
8138 | cat conftest.err >&5 | ||
8139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8140 | (exit $ac_status); } >/dev/null && { | ||
8141 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
8142 | test ! -s conftest.err | ||
8143 | }; then | ||
8144 | ac_header_preproc=yes | ||
8145 | else | ||
8146 | echo "$as_me: failed program was:" >&5 | ||
8147 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8148 | |||
8149 | ac_header_preproc=no | ||
8150 | fi | ||
8151 | |||
8152 | rm -f conftest.err conftest.$ac_ext | ||
8153 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
8154 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
8155 | |||
8156 | # So? What about this header? | ||
8157 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
8158 | yes:no: ) | ||
8159 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
8160 | echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
8161 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5 | ||
8162 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;} | ||
8163 | ac_header_preproc=yes | ||
8164 | ;; | ||
8165 | no:yes:* ) | ||
8166 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5 | ||
8167 | echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;} | ||
8168 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5 | ||
8169 | echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;} | ||
8170 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5 | ||
8171 | echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;} | ||
8172 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
8173 | echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
8174 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5 | ||
8175 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;} | ||
8176 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5 | ||
8177 | echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;} | ||
8178 | ( cat <<\_ASBOX | ||
8179 | ## ------------------------------------------- ## | ||
8180 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
8181 | ## ------------------------------------------- ## | ||
8182 | _ASBOX | ||
8183 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
8184 | ;; | ||
8185 | esac | ||
8186 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
8187 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
8188 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8190 | else | ||
8191 | ac_cv_header_net_if_tap_h=$ac_header_preproc | ||
8192 | fi | ||
8193 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
8194 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
8195 | |||
8196 | fi | ||
8197 | if test $ac_cv_header_net_if_tap_h = yes; then | ||
8198 | : | ||
8199 | else | ||
8200 | |||
8201 | cat >>confdefs.h <<\_ACEOF | ||
8202 | #define SSH_TUN_NO_L2 1 | ||
8203 | _ACEOF | ||
8204 | |||
8205 | fi | ||
8206 | |||
8207 | |||
8208 | |||
8209 | cat >>confdefs.h <<\_ACEOF | ||
8210 | #define BROKEN_GLOB 1 | ||
8211 | _ACEOF | ||
8212 | |||
8213 | ;; | ||
8214 | *-*-bsdi*) | ||
8215 | cat >>confdefs.h <<\_ACEOF | ||
8216 | #define SETEUID_BREAKS_SETUID 1 | ||
8217 | _ACEOF | ||
8218 | |||
8219 | cat >>confdefs.h <<\_ACEOF | ||
8220 | #define BROKEN_SETREUID 1 | ||
8221 | _ACEOF | ||
8222 | |||
8223 | cat >>confdefs.h <<\_ACEOF | ||
8224 | #define BROKEN_SETREGID 1 | ||
8225 | _ACEOF | ||
8226 | |||
8227 | ;; | ||
8228 | *-next-*) | ||
8229 | conf_lastlog_location="/usr/adm/lastlog" | ||
8230 | conf_utmp_location=/etc/utmp | ||
8231 | conf_wtmp_location=/usr/adm/wtmp | ||
8232 | MAIL=/usr/spool/mail | ||
8233 | |||
8234 | cat >>confdefs.h <<\_ACEOF | ||
8235 | #define HAVE_NEXT 1 | ||
8236 | _ACEOF | ||
8237 | |||
8238 | cat >>confdefs.h <<\_ACEOF | ||
8239 | #define BROKEN_REALPATH 1 | ||
8240 | _ACEOF | ||
8241 | |||
8242 | cat >>confdefs.h <<\_ACEOF | ||
8243 | #define USE_PIPES 1 | ||
8244 | _ACEOF | ||
8245 | |||
8246 | |||
8247 | cat >>confdefs.h <<\_ACEOF | ||
8248 | #define BROKEN_SAVED_UIDS 1 | ||
8249 | _ACEOF | ||
8250 | |||
8251 | ;; | ||
8252 | *-*-openbsd*) | ||
8253 | |||
8254 | cat >>confdefs.h <<\_ACEOF | ||
8255 | #define HAVE_ATTRIBUTE__SENTINEL__ 1 | ||
8256 | _ACEOF | ||
8257 | |||
8258 | |||
8259 | cat >>confdefs.h <<\_ACEOF | ||
8260 | #define HAVE_ATTRIBUTE__BOUNDED__ 1 | ||
8261 | _ACEOF | ||
8262 | |||
8263 | |||
8264 | cat >>confdefs.h <<\_ACEOF | ||
8265 | #define SSH_TUN_OPENBSD 1 | ||
8266 | _ACEOF | ||
8267 | |||
8268 | |||
8269 | cat >>confdefs.h <<\_ACEOF | ||
8270 | #define SYSLOG_R_SAFE_IN_SIGHAND 1 | ||
8271 | _ACEOF | ||
8272 | |||
8273 | ;; | ||
8274 | *-*-solaris*) | ||
8275 | if test "x$withval" != "xno" ; then | ||
8276 | need_dash_r=1 | ||
8277 | fi | ||
8278 | cat >>confdefs.h <<\_ACEOF | ||
8279 | #define PAM_SUN_CODEBASE 1 | ||
8280 | _ACEOF | ||
8281 | |||
8282 | cat >>confdefs.h <<\_ACEOF | ||
8283 | #define LOGIN_NEEDS_UTMPX 1 | ||
8284 | _ACEOF | ||
8285 | |||
8286 | |||
8287 | cat >>confdefs.h <<\_ACEOF | ||
8288 | #define LOGIN_NEEDS_TERM 1 | ||
8289 | _ACEOF | ||
8290 | |||
8291 | cat >>confdefs.h <<\_ACEOF | ||
8292 | #define PAM_TTY_KLUDGE 1 | ||
8293 | _ACEOF | ||
8294 | |||
8295 | |||
8296 | cat >>confdefs.h <<\_ACEOF | ||
8297 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 | ||
8298 | _ACEOF | ||
8299 | |||
8300 | cat >>confdefs.h <<\_ACEOF | ||
8301 | #define LOCKED_PASSWD_STRING "*LK*" | ||
8302 | _ACEOF | ||
8303 | |||
8304 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. | ||
8305 | |||
8306 | cat >>confdefs.h <<\_ACEOF | ||
8307 | #define SSHD_ACQUIRES_CTTY 1 | ||
8308 | _ACEOF | ||
8309 | |||
8310 | |||
8311 | cat >>confdefs.h <<\_ACEOF | ||
8312 | #define PASSWD_NEEDS_USERNAME 1 | ||
8313 | _ACEOF | ||
8314 | |||
8315 | external_path_file=/etc/default/login | ||
8316 | # hardwire lastlog location (can't detect it on some versions) | ||
8317 | conf_lastlog_location="/var/adm/lastlog" | ||
8318 | { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
8319 | echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; } | ||
8320 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
8321 | if test "$sol2ver" -ge 8; then | ||
8322 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
8323 | echo "${ECHO_T}yes" >&6; } | ||
8324 | cat >>confdefs.h <<\_ACEOF | ||
8325 | #define DISABLE_UTMP 1 | ||
8326 | _ACEOF | ||
8327 | |||
8328 | |||
8329 | cat >>confdefs.h <<\_ACEOF | ||
8330 | #define DISABLE_WTMP 1 | ||
8331 | _ACEOF | ||
8332 | |||
8333 | else | ||
8334 | { echo "$as_me:$LINENO: result: no" >&5 | ||
8335 | echo "${ECHO_T}no" >&6; } | ||
8336 | fi | ||
8337 | |||
8338 | # Check whether --with-solaris-contracts was given. | ||
8339 | if test "${with_solaris_contracts+set}" = set; then | ||
8340 | withval=$with_solaris_contracts; | ||
8341 | { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5 | ||
8342 | echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; } | ||
8343 | if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then | ||
8344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8345 | else | ||
8346 | ac_check_lib_save_LIBS=$LIBS | ||
8347 | LIBS="-lcontract $LIBS" | ||
8348 | cat >conftest.$ac_ext <<_ACEOF | ||
8349 | /* confdefs.h. */ | ||
8350 | _ACEOF | ||
8351 | cat confdefs.h >>conftest.$ac_ext | ||
8352 | cat >>conftest.$ac_ext <<_ACEOF | ||
8353 | /* end confdefs.h. */ | ||
8354 | |||
8355 | /* Override any GCC internal prototype to avoid an error. | ||
8356 | Use char because int might match the return type of a GCC | ||
8357 | builtin and then its argument prototype would still apply. */ | ||
8358 | #ifdef __cplusplus | ||
8359 | extern "C" | ||
8360 | #endif | ||
8361 | char ct_tmpl_activate (); | ||
8362 | int | ||
8363 | main () | ||
8364 | { | ||
8365 | return ct_tmpl_activate (); | ||
8366 | ; | ||
8367 | return 0; | ||
8368 | } | ||
8369 | _ACEOF | ||
8370 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8371 | if { (ac_try="$ac_link" | ||
8372 | case "(($ac_try" in | ||
8373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8374 | *) ac_try_echo=$ac_try;; | ||
8375 | esac | ||
8376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8377 | (eval "$ac_link") 2>conftest.er1 | ||
8378 | ac_status=$? | ||
8379 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8380 | rm -f conftest.er1 | ||
8381 | cat conftest.err >&5 | ||
8382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8383 | (exit $ac_status); } && { | ||
8384 | test -z "$ac_c_werror_flag" || | ||
8385 | test ! -s conftest.err | ||
8386 | } && test -s conftest$ac_exeext && | ||
8387 | $as_test_x conftest$ac_exeext; then | ||
8388 | ac_cv_lib_contract_ct_tmpl_activate=yes | ||
8389 | else | ||
8390 | echo "$as_me: failed program was:" >&5 | ||
8391 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8392 | |||
8393 | ac_cv_lib_contract_ct_tmpl_activate=no | ||
8394 | fi | ||
8395 | |||
8396 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8397 | conftest$ac_exeext conftest.$ac_ext | ||
8398 | LIBS=$ac_check_lib_save_LIBS | ||
8399 | fi | ||
8400 | { echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5 | ||
8401 | echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; } | ||
8402 | if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then | ||
8403 | |||
8404 | cat >>confdefs.h <<\_ACEOF | ||
8405 | #define USE_SOLARIS_PROCESS_CONTRACTS 1 | ||
8406 | _ACEOF | ||
8407 | |||
8408 | SSHDLIBS="$SSHDLIBS -lcontract" | ||
8409 | |||
8410 | SPC_MSG="yes" | ||
8411 | fi | ||
8412 | |||
8413 | |||
8414 | fi | ||
8415 | |||
8416 | ;; | ||
8417 | *-*-sunos4*) | ||
8418 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
8419 | |||
8420 | for ac_func in getpwanam | ||
8421 | do | ||
8422 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8423 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
8424 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
8425 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8427 | else | ||
8428 | cat >conftest.$ac_ext <<_ACEOF | ||
8429 | /* confdefs.h. */ | ||
8430 | _ACEOF | ||
8431 | cat confdefs.h >>conftest.$ac_ext | ||
8432 | cat >>conftest.$ac_ext <<_ACEOF | ||
8433 | /* end confdefs.h. */ | ||
8434 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
8435 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8436 | #define $ac_func innocuous_$ac_func | ||
8437 | |||
8438 | /* System header to define __stub macros and hopefully few prototypes, | ||
8439 | which can conflict with char $ac_func (); below. | ||
8440 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8441 | <limits.h> exists even on freestanding compilers. */ | ||
8442 | |||
8443 | #ifdef __STDC__ | ||
8444 | # include <limits.h> | ||
8445 | #else | ||
8446 | # include <assert.h> | ||
8447 | #endif | ||
8448 | |||
8449 | #undef $ac_func | ||
8450 | |||
8451 | /* Override any GCC internal prototype to avoid an error. | ||
8452 | Use char because int might match the return type of a GCC | ||
8453 | builtin and then its argument prototype would still apply. */ | ||
8454 | #ifdef __cplusplus | ||
8455 | extern "C" | ||
8456 | #endif | ||
8457 | char $ac_func (); | ||
8458 | /* The GNU C library defines this for functions which it implements | ||
8459 | to always fail with ENOSYS. Some functions are actually named | ||
8460 | something starting with __ and the normal name is an alias. */ | ||
8461 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
8462 | choke me | ||
8463 | #endif | ||
8464 | |||
8465 | int | ||
8466 | main () | ||
8467 | { | ||
8468 | return $ac_func (); | ||
8469 | ; | ||
8470 | return 0; | ||
8471 | } | ||
8472 | _ACEOF | ||
8473 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8474 | if { (ac_try="$ac_link" | ||
8475 | case "(($ac_try" in | ||
8476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8477 | *) ac_try_echo=$ac_try;; | ||
8478 | esac | ||
8479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8480 | (eval "$ac_link") 2>conftest.er1 | ||
8481 | ac_status=$? | ||
8482 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8483 | rm -f conftest.er1 | ||
8484 | cat conftest.err >&5 | ||
8485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8486 | (exit $ac_status); } && { | ||
8487 | test -z "$ac_c_werror_flag" || | ||
8488 | test ! -s conftest.err | ||
8489 | } && test -s conftest$ac_exeext && | ||
8490 | $as_test_x conftest$ac_exeext; then | ||
8491 | eval "$as_ac_var=yes" | ||
8492 | else | ||
8493 | echo "$as_me: failed program was:" >&5 | ||
8494 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8495 | |||
8496 | eval "$as_ac_var=no" | ||
8497 | fi | ||
8498 | |||
8499 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8500 | conftest$ac_exeext conftest.$ac_ext | ||
8501 | fi | ||
8502 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
8503 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
8504 | echo "${ECHO_T}$ac_res" >&6; } | ||
8505 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8506 | cat >>confdefs.h <<_ACEOF | ||
8507 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8508 | _ACEOF | ||
8509 | |||
8510 | fi | ||
8511 | done | ||
8512 | |||
8513 | cat >>confdefs.h <<\_ACEOF | ||
8514 | #define PAM_SUN_CODEBASE 1 | ||
8515 | _ACEOF | ||
8516 | |||
8517 | conf_utmp_location=/etc/utmp | ||
8518 | conf_wtmp_location=/var/adm/wtmp | ||
8519 | conf_lastlog_location=/var/adm/lastlog | ||
8520 | cat >>confdefs.h <<\_ACEOF | ||
8521 | #define USE_PIPES 1 | ||
8522 | _ACEOF | ||
8523 | |||
8524 | ;; | ||
8525 | *-ncr-sysv*) | ||
8526 | LIBS="$LIBS -lc89" | ||
8527 | cat >>confdefs.h <<\_ACEOF | ||
8528 | #define USE_PIPES 1 | ||
8529 | _ACEOF | ||
8530 | |||
8531 | cat >>confdefs.h <<\_ACEOF | ||
8532 | #define SSHD_ACQUIRES_CTTY 1 | ||
8533 | _ACEOF | ||
8534 | |||
8535 | cat >>confdefs.h <<\_ACEOF | ||
8536 | #define SETEUID_BREAKS_SETUID 1 | ||
8537 | _ACEOF | ||
8538 | |||
8539 | cat >>confdefs.h <<\_ACEOF | ||
8540 | #define BROKEN_SETREUID 1 | ||
8541 | _ACEOF | ||
8542 | |||
8543 | cat >>confdefs.h <<\_ACEOF | ||
8544 | #define BROKEN_SETREGID 1 | ||
8545 | _ACEOF | ||
8546 | |||
8547 | ;; | ||
8548 | *-sni-sysv*) | ||
8549 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
8550 | |||
8551 | { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 | ||
8552 | echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; } | ||
8553 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then | ||
8554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8555 | else | ||
8556 | ac_check_lib_save_LIBS=$LIBS | ||
8557 | LIBS="-ldl $LIBS" | ||
8558 | cat >conftest.$ac_ext <<_ACEOF | ||
8559 | /* confdefs.h. */ | ||
8560 | _ACEOF | ||
8561 | cat confdefs.h >>conftest.$ac_ext | ||
8562 | cat >>conftest.$ac_ext <<_ACEOF | ||
8563 | /* end confdefs.h. */ | ||
8564 | |||
8565 | /* Override any GCC internal prototype to avoid an error. | ||
8566 | Use char because int might match the return type of a GCC | ||
8567 | builtin and then its argument prototype would still apply. */ | ||
8568 | #ifdef __cplusplus | ||
8569 | extern "C" | ||
8570 | #endif | ||
8571 | char dlsym (); | ||
8572 | int | ||
8573 | main () | ||
8574 | { | ||
8575 | return dlsym (); | ||
8576 | ; | ||
8577 | return 0; | ||
8578 | } | ||
8579 | _ACEOF | ||
8580 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8581 | if { (ac_try="$ac_link" | ||
8582 | case "(($ac_try" in | ||
8583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8584 | *) ac_try_echo=$ac_try;; | ||
8585 | esac | ||
8586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8587 | (eval "$ac_link") 2>conftest.er1 | ||
8588 | ac_status=$? | ||
8589 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8590 | rm -f conftest.er1 | ||
8591 | cat conftest.err >&5 | ||
8592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8593 | (exit $ac_status); } && { | ||
8594 | test -z "$ac_c_werror_flag" || | ||
8595 | test ! -s conftest.err | ||
8596 | } && test -s conftest$ac_exeext && | ||
8597 | $as_test_x conftest$ac_exeext; then | ||
8598 | ac_cv_lib_dl_dlsym=yes | ||
8599 | else | ||
8600 | echo "$as_me: failed program was:" >&5 | ||
8601 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8602 | |||
8603 | ac_cv_lib_dl_dlsym=no | ||
8604 | fi | ||
8605 | |||
8606 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8607 | conftest$ac_exeext conftest.$ac_ext | ||
8608 | LIBS=$ac_check_lib_save_LIBS | ||
8609 | fi | ||
8610 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 | ||
8611 | echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; } | ||
8612 | if test $ac_cv_lib_dl_dlsym = yes; then | ||
8613 | cat >>confdefs.h <<_ACEOF | ||
8614 | #define HAVE_LIBDL 1 | ||
8615 | _ACEOF | ||
8616 | |||
8617 | LIBS="-ldl $LIBS" | ||
8618 | |||
8619 | fi | ||
8620 | |||
8621 | # -lresolv needs to be at the end of LIBS or DNS lookups break | ||
8622 | { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 | ||
8623 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; } | ||
8624 | if test "${ac_cv_lib_resolv_res_query+set}" = set; then | ||
8625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8626 | else | ||
8627 | ac_check_lib_save_LIBS=$LIBS | ||
8628 | LIBS="-lresolv $LIBS" | ||
8629 | cat >conftest.$ac_ext <<_ACEOF | ||
8630 | /* confdefs.h. */ | ||
8631 | _ACEOF | ||
8632 | cat confdefs.h >>conftest.$ac_ext | ||
8633 | cat >>conftest.$ac_ext <<_ACEOF | ||
8634 | /* end confdefs.h. */ | ||
8635 | |||
8636 | /* Override any GCC internal prototype to avoid an error. | ||
8637 | Use char because int might match the return type of a GCC | ||
8638 | builtin and then its argument prototype would still apply. */ | ||
8639 | #ifdef __cplusplus | ||
8640 | extern "C" | ||
8641 | #endif | ||
8642 | char res_query (); | ||
8643 | int | ||
8644 | main () | ||
8645 | { | ||
8646 | return res_query (); | ||
8647 | ; | ||
8648 | return 0; | ||
8649 | } | ||
8650 | _ACEOF | ||
8651 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8652 | if { (ac_try="$ac_link" | ||
8653 | case "(($ac_try" in | ||
8654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8655 | *) ac_try_echo=$ac_try;; | ||
8656 | esac | ||
8657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8658 | (eval "$ac_link") 2>conftest.er1 | ||
8659 | ac_status=$? | ||
8660 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8661 | rm -f conftest.er1 | ||
8662 | cat conftest.err >&5 | ||
8663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8664 | (exit $ac_status); } && { | ||
8665 | test -z "$ac_c_werror_flag" || | ||
8666 | test ! -s conftest.err | ||
8667 | } && test -s conftest$ac_exeext && | ||
8668 | $as_test_x conftest$ac_exeext; then | ||
8669 | ac_cv_lib_resolv_res_query=yes | ||
8670 | else | ||
8671 | echo "$as_me: failed program was:" >&5 | ||
8672 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8673 | |||
8674 | ac_cv_lib_resolv_res_query=no | ||
8675 | fi | ||
8676 | |||
8677 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8678 | conftest$ac_exeext conftest.$ac_ext | ||
8679 | LIBS=$ac_check_lib_save_LIBS | ||
8680 | fi | ||
8681 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5 | ||
8682 | echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; } | ||
8683 | if test $ac_cv_lib_resolv_res_query = yes; then | ||
8684 | LIBS="$LIBS -lresolv" | ||
8685 | fi | ||
8686 | |||
8687 | IPADDR_IN_DISPLAY=yes | ||
8688 | cat >>confdefs.h <<\_ACEOF | ||
8689 | #define USE_PIPES 1 | ||
8690 | _ACEOF | ||
8691 | |||
8692 | cat >>confdefs.h <<\_ACEOF | ||
8693 | #define IP_TOS_IS_BROKEN 1 | ||
8694 | _ACEOF | ||
8695 | |||
8696 | cat >>confdefs.h <<\_ACEOF | ||
8697 | #define SETEUID_BREAKS_SETUID 1 | ||
8698 | _ACEOF | ||
8699 | |||
8700 | cat >>confdefs.h <<\_ACEOF | ||
8701 | #define BROKEN_SETREUID 1 | ||
8702 | _ACEOF | ||
8703 | |||
8704 | cat >>confdefs.h <<\_ACEOF | ||
8705 | #define BROKEN_SETREGID 1 | ||
8706 | _ACEOF | ||
8707 | |||
8708 | cat >>confdefs.h <<\_ACEOF | ||
8709 | #define SSHD_ACQUIRES_CTTY 1 | ||
8710 | _ACEOF | ||
8711 | |||
8712 | external_path_file=/etc/default/login | ||
8713 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
8714 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
8715 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
8716 | ;; | ||
8717 | # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. | ||
8718 | *-*-sysv4.2*) | ||
8719 | cat >>confdefs.h <<\_ACEOF | ||
8720 | #define USE_PIPES 1 | ||
8721 | _ACEOF | ||
8722 | |||
8723 | cat >>confdefs.h <<\_ACEOF | ||
8724 | #define SETEUID_BREAKS_SETUID 1 | ||
8725 | _ACEOF | ||
8726 | |||
8727 | cat >>confdefs.h <<\_ACEOF | ||
8728 | #define BROKEN_SETREUID 1 | ||
8729 | _ACEOF | ||
8730 | |||
8731 | cat >>confdefs.h <<\_ACEOF | ||
8732 | #define BROKEN_SETREGID 1 | ||
8733 | _ACEOF | ||
8734 | |||
8735 | |||
8736 | cat >>confdefs.h <<\_ACEOF | ||
8737 | #define PASSWD_NEEDS_USERNAME 1 | ||
8738 | _ACEOF | ||
8739 | |||
8740 | cat >>confdefs.h <<\_ACEOF | ||
8741 | #define LOCKED_PASSWD_STRING "*LK*" | ||
8742 | _ACEOF | ||
8743 | |||
8744 | ;; | ||
8745 | # UnixWare 7.x, OpenUNIX 8 | ||
8746 | *-*-sysv5*) | ||
8747 | check_for_libcrypt_later=1 | ||
8748 | |||
8749 | cat >>confdefs.h <<\_ACEOF | ||
8750 | #define UNIXWARE_LONG_PASSWORDS 1 | ||
8751 | _ACEOF | ||
8752 | |||
8753 | cat >>confdefs.h <<\_ACEOF | ||
8754 | #define USE_PIPES 1 | ||
8755 | _ACEOF | ||
8756 | |||
8757 | cat >>confdefs.h <<\_ACEOF | ||
8758 | #define SETEUID_BREAKS_SETUID 1 | ||
8759 | _ACEOF | ||
8760 | |||
8761 | cat >>confdefs.h <<\_ACEOF | ||
8762 | #define BROKEN_SETREUID 1 | ||
8763 | _ACEOF | ||
8764 | |||
8765 | cat >>confdefs.h <<\_ACEOF | ||
8766 | #define BROKEN_SETREGID 1 | ||
8767 | _ACEOF | ||
8768 | |||
8769 | cat >>confdefs.h <<\_ACEOF | ||
8770 | #define PASSWD_NEEDS_USERNAME 1 | ||
8771 | _ACEOF | ||
8772 | |||
8773 | case "$host" in | ||
8774 | *-*-sysv5SCO_SV*) # SCO OpenServer 6.x | ||
8775 | TEST_SHELL=/u95/bin/sh | ||
8776 | |||
8777 | cat >>confdefs.h <<\_ACEOF | ||
8778 | #define BROKEN_LIBIAF 1 | ||
8779 | _ACEOF | ||
8780 | |||
8781 | cat >>confdefs.h <<\_ACEOF | ||
8782 | #define BROKEN_UPDWTMPX 1 | ||
8783 | _ACEOF | ||
8784 | |||
8785 | ;; | ||
8786 | *) cat >>confdefs.h <<\_ACEOF | ||
8787 | #define LOCKED_PASSWD_STRING "*LK*" | ||
8788 | _ACEOF | ||
8789 | |||
8790 | ;; | ||
8791 | esac | ||
8792 | ;; | ||
8793 | *-*-sysv*) | ||
8794 | ;; | ||
8795 | # SCO UNIX and OEM versions of SCO UNIX | ||
8796 | *-*-sco3.2v4*) | ||
8797 | { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5 | ||
8798 | echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;} | ||
8799 | { (exit 1); exit 1; }; } | ||
8800 | ;; | ||
8801 | # SCO OpenServer 5.x | ||
8802 | *-*-sco3.2v5*) | ||
8803 | if test -z "$GCC"; then | ||
8804 | CFLAGS="$CFLAGS -belf" | ||
8805 | fi | ||
8806 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
8807 | no_dev_ptmx=1 | ||
8808 | cat >>confdefs.h <<\_ACEOF | ||
8809 | #define USE_PIPES 1 | ||
8810 | _ACEOF | ||
8811 | |||
8812 | cat >>confdefs.h <<\_ACEOF | ||
8813 | #define HAVE_SECUREWARE 1 | ||
8814 | _ACEOF | ||
8815 | |||
8816 | cat >>confdefs.h <<\_ACEOF | ||
8817 | #define DISABLE_SHADOW 1 | ||
8818 | _ACEOF | ||
8819 | |||
8820 | cat >>confdefs.h <<\_ACEOF | ||
8821 | #define DISABLE_FD_PASSING 1 | ||
8822 | _ACEOF | ||
8823 | |||
8824 | cat >>confdefs.h <<\_ACEOF | ||
8825 | #define SETEUID_BREAKS_SETUID 1 | ||
8826 | _ACEOF | ||
8827 | |||
8828 | cat >>confdefs.h <<\_ACEOF | ||
8829 | #define BROKEN_SETREUID 1 | ||
8830 | _ACEOF | ||
8831 | |||
8832 | cat >>confdefs.h <<\_ACEOF | ||
8833 | #define BROKEN_SETREGID 1 | ||
8834 | _ACEOF | ||
8835 | |||
8836 | cat >>confdefs.h <<\_ACEOF | ||
8837 | #define WITH_ABBREV_NO_TTY 1 | ||
8838 | _ACEOF | ||
8839 | |||
8840 | cat >>confdefs.h <<\_ACEOF | ||
8841 | #define BROKEN_UPDWTMPX 1 | ||
8842 | _ACEOF | ||
8843 | |||
8844 | cat >>confdefs.h <<\_ACEOF | ||
8845 | #define PASSWD_NEEDS_USERNAME 1 | ||
8846 | _ACEOF | ||
8847 | |||
8848 | |||
8849 | |||
8850 | for ac_func in getluid setluid | ||
8851 | do | ||
8852 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8853 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
8854 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
8855 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8857 | else | ||
8858 | cat >conftest.$ac_ext <<_ACEOF | ||
8859 | /* confdefs.h. */ | ||
8860 | _ACEOF | ||
8861 | cat confdefs.h >>conftest.$ac_ext | ||
8862 | cat >>conftest.$ac_ext <<_ACEOF | ||
8863 | /* end confdefs.h. */ | ||
8864 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
8865 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8866 | #define $ac_func innocuous_$ac_func | ||
8867 | |||
8868 | /* System header to define __stub macros and hopefully few prototypes, | ||
8869 | which can conflict with char $ac_func (); below. | ||
8870 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8871 | <limits.h> exists even on freestanding compilers. */ | ||
8872 | |||
8873 | #ifdef __STDC__ | ||
8874 | # include <limits.h> | ||
8875 | #else | ||
8876 | # include <assert.h> | ||
8877 | #endif | ||
8878 | |||
8879 | #undef $ac_func | ||
8880 | |||
8881 | /* Override any GCC internal prototype to avoid an error. | ||
8882 | Use char because int might match the return type of a GCC | ||
8883 | builtin and then its argument prototype would still apply. */ | ||
8884 | #ifdef __cplusplus | ||
8885 | extern "C" | ||
8886 | #endif | ||
8887 | char $ac_func (); | ||
8888 | /* The GNU C library defines this for functions which it implements | ||
8889 | to always fail with ENOSYS. Some functions are actually named | ||
8890 | something starting with __ and the normal name is an alias. */ | ||
8891 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
8892 | choke me | ||
8893 | #endif | ||
8894 | |||
8895 | int | ||
8896 | main () | ||
8897 | { | ||
8898 | return $ac_func (); | ||
8899 | ; | ||
8900 | return 0; | ||
8901 | } | ||
8902 | _ACEOF | ||
8903 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8904 | if { (ac_try="$ac_link" | ||
8905 | case "(($ac_try" in | ||
8906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8907 | *) ac_try_echo=$ac_try;; | ||
8908 | esac | ||
8909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8910 | (eval "$ac_link") 2>conftest.er1 | ||
8911 | ac_status=$? | ||
8912 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8913 | rm -f conftest.er1 | ||
8914 | cat conftest.err >&5 | ||
8915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8916 | (exit $ac_status); } && { | ||
8917 | test -z "$ac_c_werror_flag" || | ||
8918 | test ! -s conftest.err | ||
8919 | } && test -s conftest$ac_exeext && | ||
8920 | $as_test_x conftest$ac_exeext; then | ||
8921 | eval "$as_ac_var=yes" | ||
8922 | else | ||
8923 | echo "$as_me: failed program was:" >&5 | ||
8924 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8925 | |||
8926 | eval "$as_ac_var=no" | ||
8927 | fi | ||
8928 | |||
8929 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8930 | conftest$ac_exeext conftest.$ac_ext | ||
8931 | fi | ||
8932 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
8933 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
8934 | echo "${ECHO_T}$ac_res" >&6; } | ||
8935 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8936 | cat >>confdefs.h <<_ACEOF | ||
8937 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8938 | _ACEOF | ||
8939 | |||
8940 | fi | ||
8941 | done | ||
8942 | |||
8943 | MANTYPE=man | ||
8944 | TEST_SHELL=ksh | ||
8945 | ;; | ||
8946 | *-*-unicosmk*) | ||
8947 | |||
8948 | cat >>confdefs.h <<\_ACEOF | ||
8949 | #define NO_SSH_LASTLOG 1 | ||
8950 | _ACEOF | ||
8951 | |||
8952 | cat >>confdefs.h <<\_ACEOF | ||
8953 | #define SETEUID_BREAKS_SETUID 1 | ||
8954 | _ACEOF | ||
8955 | |||
8956 | cat >>confdefs.h <<\_ACEOF | ||
8957 | #define BROKEN_SETREUID 1 | ||
8958 | _ACEOF | ||
8959 | |||
8960 | cat >>confdefs.h <<\_ACEOF | ||
8961 | #define BROKEN_SETREGID 1 | ||
8962 | _ACEOF | ||
8963 | |||
8964 | cat >>confdefs.h <<\_ACEOF | ||
8965 | #define USE_PIPES 1 | ||
8966 | _ACEOF | ||
8967 | |||
8968 | cat >>confdefs.h <<\_ACEOF | ||
8969 | #define DISABLE_FD_PASSING 1 | ||
8970 | _ACEOF | ||
8971 | |||
8972 | LDFLAGS="$LDFLAGS" | ||
8973 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
8974 | MANTYPE=cat | ||
8975 | ;; | ||
8976 | *-*-unicosmp*) | ||
8977 | cat >>confdefs.h <<\_ACEOF | ||
8978 | #define SETEUID_BREAKS_SETUID 1 | ||
8979 | _ACEOF | ||
8980 | |||
8981 | cat >>confdefs.h <<\_ACEOF | ||
8982 | #define BROKEN_SETREUID 1 | ||
8983 | _ACEOF | ||
8984 | |||
8985 | cat >>confdefs.h <<\_ACEOF | ||
8986 | #define BROKEN_SETREGID 1 | ||
8987 | _ACEOF | ||
8988 | |||
8989 | cat >>confdefs.h <<\_ACEOF | ||
8990 | #define WITH_ABBREV_NO_TTY 1 | ||
8991 | _ACEOF | ||
8992 | |||
8993 | cat >>confdefs.h <<\_ACEOF | ||
8994 | #define USE_PIPES 1 | ||
8995 | _ACEOF | ||
8996 | |||
8997 | cat >>confdefs.h <<\_ACEOF | ||
8998 | #define DISABLE_FD_PASSING 1 | ||
8999 | _ACEOF | ||
9000 | |||
9001 | LDFLAGS="$LDFLAGS" | ||
9002 | LIBS="$LIBS -lgen -lacid -ldb" | ||
9003 | MANTYPE=cat | ||
9004 | ;; | ||
9005 | *-*-unicos*) | ||
9006 | cat >>confdefs.h <<\_ACEOF | ||
9007 | #define SETEUID_BREAKS_SETUID 1 | ||
9008 | _ACEOF | ||
9009 | |||
9010 | cat >>confdefs.h <<\_ACEOF | ||
9011 | #define BROKEN_SETREUID 1 | ||
9012 | _ACEOF | ||
9013 | |||
9014 | cat >>confdefs.h <<\_ACEOF | ||
9015 | #define BROKEN_SETREGID 1 | ||
9016 | _ACEOF | ||
9017 | |||
9018 | cat >>confdefs.h <<\_ACEOF | ||
9019 | #define USE_PIPES 1 | ||
9020 | _ACEOF | ||
9021 | |||
9022 | cat >>confdefs.h <<\_ACEOF | ||
9023 | #define DISABLE_FD_PASSING 1 | ||
9024 | _ACEOF | ||
9025 | |||
9026 | cat >>confdefs.h <<\_ACEOF | ||
9027 | #define NO_SSH_LASTLOG 1 | ||
9028 | _ACEOF | ||
9029 | |||
9030 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
9031 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
9032 | MANTYPE=cat | ||
9033 | ;; | ||
9034 | *-dec-osf*) | ||
9035 | { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5 | ||
9036 | echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; } | ||
9037 | no_osfsia="" | ||
9038 | |||
9039 | # Check whether --with-osfsia was given. | ||
9040 | if test "${with_osfsia+set}" = set; then | ||
9041 | withval=$with_osfsia; | ||
9042 | if test "x$withval" = "xno" ; then | ||
9043 | { echo "$as_me:$LINENO: result: disabled" >&5 | ||
9044 | echo "${ECHO_T}disabled" >&6; } | ||
9045 | no_osfsia=1 | ||
9046 | fi | ||
9047 | |||
9048 | fi | ||
9049 | |||
9050 | if test -z "$no_osfsia" ; then | ||
9051 | if test -f /etc/sia/matrix.conf; then | ||
9052 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
9053 | echo "${ECHO_T}yes" >&6; } | ||
9054 | |||
9055 | cat >>confdefs.h <<\_ACEOF | ||
9056 | #define HAVE_OSF_SIA 1 | ||
9057 | _ACEOF | ||
9058 | |||
9059 | |||
9060 | cat >>confdefs.h <<\_ACEOF | ||
9061 | #define DISABLE_LOGIN 1 | ||
9062 | _ACEOF | ||
9063 | |||
9064 | cat >>confdefs.h <<\_ACEOF | ||
9065 | #define DISABLE_FD_PASSING 1 | ||
9066 | _ACEOF | ||
9067 | |||
9068 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
9069 | SIA_MSG="yes" | ||
9070 | else | ||
9071 | { echo "$as_me:$LINENO: result: no" >&5 | ||
9072 | echo "${ECHO_T}no" >&6; } | ||
9073 | |||
9074 | cat >>confdefs.h <<\_ACEOF | ||
9075 | #define LOCKED_PASSWD_SUBSTR "Nologin" | ||
9076 | _ACEOF | ||
9077 | |||
9078 | fi | ||
9079 | fi | ||
9080 | cat >>confdefs.h <<\_ACEOF | ||
9081 | #define BROKEN_GETADDRINFO 1 | ||
9082 | _ACEOF | ||
9083 | |||
9084 | cat >>confdefs.h <<\_ACEOF | ||
9085 | #define SETEUID_BREAKS_SETUID 1 | ||
9086 | _ACEOF | ||
9087 | |||
9088 | cat >>confdefs.h <<\_ACEOF | ||
9089 | #define BROKEN_SETREUID 1 | ||
9090 | _ACEOF | ||
9091 | |||
9092 | cat >>confdefs.h <<\_ACEOF | ||
9093 | #define BROKEN_SETREGID 1 | ||
9094 | _ACEOF | ||
9095 | |||
9096 | |||
9097 | cat >>confdefs.h <<\_ACEOF | ||
9098 | #define BROKEN_READV_COMPARISON 1 | ||
9099 | _ACEOF | ||
9100 | |||
9101 | ;; | ||
9102 | |||
9103 | *-*-nto-qnx*) | ||
9104 | cat >>confdefs.h <<\_ACEOF | ||
9105 | #define USE_PIPES 1 | ||
9106 | _ACEOF | ||
9107 | |||
9108 | cat >>confdefs.h <<\_ACEOF | ||
9109 | #define NO_X11_UNIX_SOCKETS 1 | ||
9110 | _ACEOF | ||
9111 | |||
9112 | |||
9113 | cat >>confdefs.h <<\_ACEOF | ||
9114 | #define MISSING_NFDBITS 1 | ||
9115 | _ACEOF | ||
9116 | |||
9117 | |||
9118 | cat >>confdefs.h <<\_ACEOF | ||
9119 | #define MISSING_HOWMANY 1 | ||
9120 | _ACEOF | ||
9121 | |||
9122 | |||
9123 | cat >>confdefs.h <<\_ACEOF | ||
9124 | #define MISSING_FD_MASK 1 | ||
9125 | _ACEOF | ||
9126 | |||
9127 | cat >>confdefs.h <<\_ACEOF | ||
9128 | #define DISABLE_LASTLOG 1 | ||
9129 | _ACEOF | ||
9130 | |||
9131 | cat >>confdefs.h <<\_ACEOF | ||
9132 | #define SSHD_ACQUIRES_CTTY 1 | ||
9133 | _ACEOF | ||
9134 | |||
9135 | |||
9136 | cat >>confdefs.h <<\_ACEOF | ||
9137 | #define BROKEN_SHADOW_EXPIRE 1 | ||
9138 | _ACEOF | ||
9139 | |||
9140 | enable_etc_default_login=no # has incompatible /etc/default/login | ||
9141 | case "$host" in | ||
9142 | *-*-nto-qnx6*) | ||
9143 | cat >>confdefs.h <<\_ACEOF | ||
9144 | #define DISABLE_FD_PASSING 1 | ||
9145 | _ACEOF | ||
9146 | |||
9147 | ;; | ||
9148 | esac | ||
9149 | ;; | ||
9150 | |||
9151 | *-*-ultrix*) | ||
9152 | |||
9153 | cat >>confdefs.h <<\_ACEOF | ||
9154 | #define BROKEN_GETGROUPS 1 | ||
9155 | _ACEOF | ||
9156 | |||
9157 | |||
9158 | cat >>confdefs.h <<\_ACEOF | ||
9159 | #define BROKEN_MMAP 1 | ||
9160 | _ACEOF | ||
9161 | |||
9162 | cat >>confdefs.h <<\_ACEOF | ||
9163 | #define NEED_SETPGRP 1 | ||
9164 | _ACEOF | ||
9165 | |||
9166 | |||
9167 | cat >>confdefs.h <<\_ACEOF | ||
9168 | #define HAVE_SYS_SYSLOG_H 1 | ||
9169 | _ACEOF | ||
9170 | |||
9171 | ;; | ||
9172 | |||
9173 | *-*-lynxos) | ||
9174 | CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" | ||
9175 | cat >>confdefs.h <<\_ACEOF | ||
9176 | #define MISSING_HOWMANY 1 | ||
9177 | _ACEOF | ||
9178 | |||
9179 | |||
9180 | cat >>confdefs.h <<\_ACEOF | ||
9181 | #define BROKEN_SETVBUF 1 | ||
9182 | _ACEOF | ||
9183 | |||
9184 | ;; | ||
9185 | esac | ||
9186 | |||
9187 | { echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5 | ||
9188 | echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; } | ||
9189 | if test "$cross_compiling" = yes; then | ||
9190 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5 | ||
9191 | echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} | ||
9192 | |||
9193 | else | ||
9194 | cat >conftest.$ac_ext <<_ACEOF | ||
9195 | /* confdefs.h. */ | ||
9196 | _ACEOF | ||
9197 | cat confdefs.h >>conftest.$ac_ext | ||
9198 | cat >>conftest.$ac_ext <<_ACEOF | ||
9199 | /* end confdefs.h. */ | ||
9200 | |||
9201 | #include <stdio.h> | ||
9202 | int main(){exit(0);} | ||
9203 | |||
9204 | _ACEOF | ||
9205 | rm -f conftest$ac_exeext | ||
9206 | if { (ac_try="$ac_link" | ||
9207 | case "(($ac_try" in | ||
9208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9209 | *) ac_try_echo=$ac_try;; | ||
9210 | esac | ||
9211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9212 | (eval "$ac_link") 2>&5 | ||
9213 | ac_status=$? | ||
9214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9215 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9216 | { (case "(($ac_try" in | ||
9217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9218 | *) ac_try_echo=$ac_try;; | ||
9219 | esac | ||
9220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9221 | (eval "$ac_try") 2>&5 | ||
9222 | ac_status=$? | ||
9223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9224 | (exit $ac_status); }; }; then | ||
9225 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
9226 | echo "${ECHO_T}yes" >&6; } | ||
9227 | else | ||
9228 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9229 | echo "$as_me: failed program was:" >&5 | ||
9230 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9231 | |||
9232 | ( exit $ac_status ) | ||
9233 | |||
9234 | { echo "$as_me:$LINENO: result: no" >&5 | ||
9235 | echo "${ECHO_T}no" >&6; } | ||
9236 | { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5 | ||
9237 | echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;} | ||
9238 | { (exit 1); exit 1; }; } | ||
9239 | |||
9240 | fi | ||
9241 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9242 | fi | ||
9243 | |||
9244 | |||
9245 | |||
9246 | # Checks for libraries. | ||
9247 | { echo "$as_me:$LINENO: checking for yp_match" >&5 | ||
9248 | echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; } | ||
9249 | if test "${ac_cv_func_yp_match+set}" = set; then | ||
9250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9251 | else | ||
9252 | cat >conftest.$ac_ext <<_ACEOF | ||
9253 | /* confdefs.h. */ | ||
9254 | _ACEOF | ||
9255 | cat confdefs.h >>conftest.$ac_ext | ||
9256 | cat >>conftest.$ac_ext <<_ACEOF | ||
9257 | /* end confdefs.h. */ | ||
9258 | /* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match. | ||
9259 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9260 | #define yp_match innocuous_yp_match | ||
9261 | |||
9262 | /* System header to define __stub macros and hopefully few prototypes, | ||
9263 | which can conflict with char yp_match (); below. | ||
9264 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9265 | <limits.h> exists even on freestanding compilers. */ | ||
9266 | |||
9267 | #ifdef __STDC__ | ||
9268 | # include <limits.h> | ||
9269 | #else | ||
9270 | # include <assert.h> | ||
9271 | #endif | ||
9272 | |||
9273 | #undef yp_match | ||
9274 | |||
9275 | /* Override any GCC internal prototype to avoid an error. | ||
9276 | Use char because int might match the return type of a GCC | ||
9277 | builtin and then its argument prototype would still apply. */ | ||
9278 | #ifdef __cplusplus | ||
9279 | extern "C" | ||
9280 | #endif | ||
9281 | char yp_match (); | ||
9282 | /* The GNU C library defines this for functions which it implements | ||
9283 | to always fail with ENOSYS. Some functions are actually named | ||
9284 | something starting with __ and the normal name is an alias. */ | ||
9285 | #if defined __stub_yp_match || defined __stub___yp_match | ||
9286 | choke me | ||
9287 | #endif | ||
9288 | |||
9289 | int | ||
9290 | main () | ||
9291 | { | ||
9292 | return yp_match (); | ||
9293 | ; | ||
9294 | return 0; | ||
9295 | } | ||
9296 | _ACEOF | ||
9297 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9298 | if { (ac_try="$ac_link" | ||
9299 | case "(($ac_try" in | ||
9300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9301 | *) ac_try_echo=$ac_try;; | ||
9302 | esac | ||
9303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9304 | (eval "$ac_link") 2>conftest.er1 | ||
9305 | ac_status=$? | ||
9306 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9307 | rm -f conftest.er1 | ||
9308 | cat conftest.err >&5 | ||
9309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9310 | (exit $ac_status); } && { | ||
9311 | test -z "$ac_c_werror_flag" || | ||
9312 | test ! -s conftest.err | ||
9313 | } && test -s conftest$ac_exeext && | ||
9314 | $as_test_x conftest$ac_exeext; then | ||
9315 | ac_cv_func_yp_match=yes | ||
9316 | else | ||
9317 | echo "$as_me: failed program was:" >&5 | ||
9318 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9319 | |||
9320 | ac_cv_func_yp_match=no | ||
9321 | fi | ||
9322 | |||
9323 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9324 | conftest$ac_exeext conftest.$ac_ext | ||
9325 | fi | ||
9326 | { echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5 | ||
9327 | echo "${ECHO_T}$ac_cv_func_yp_match" >&6; } | ||
9328 | if test $ac_cv_func_yp_match = yes; then | ||
9329 | : | ||
9330 | else | ||
9331 | |||
9332 | { echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5 | ||
9333 | echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; } | ||
9334 | if test "${ac_cv_lib_nsl_yp_match+set}" = set; then | ||
9335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9336 | else | ||
9337 | ac_check_lib_save_LIBS=$LIBS | ||
9338 | LIBS="-lnsl $LIBS" | ||
9339 | cat >conftest.$ac_ext <<_ACEOF | ||
9340 | /* confdefs.h. */ | ||
9341 | _ACEOF | ||
9342 | cat confdefs.h >>conftest.$ac_ext | ||
9343 | cat >>conftest.$ac_ext <<_ACEOF | ||
9344 | /* end confdefs.h. */ | ||
9345 | |||
9346 | /* Override any GCC internal prototype to avoid an error. | ||
9347 | Use char because int might match the return type of a GCC | ||
9348 | builtin and then its argument prototype would still apply. */ | ||
9349 | #ifdef __cplusplus | ||
9350 | extern "C" | ||
9351 | #endif | ||
9352 | char yp_match (); | ||
9353 | int | ||
9354 | main () | ||
9355 | { | ||
9356 | return yp_match (); | ||
9357 | ; | ||
9358 | return 0; | ||
9359 | } | ||
9360 | _ACEOF | ||
9361 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9362 | if { (ac_try="$ac_link" | ||
9363 | case "(($ac_try" in | ||
9364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9365 | *) ac_try_echo=$ac_try;; | ||
9366 | esac | ||
9367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9368 | (eval "$ac_link") 2>conftest.er1 | ||
9369 | ac_status=$? | ||
9370 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9371 | rm -f conftest.er1 | ||
9372 | cat conftest.err >&5 | ||
9373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9374 | (exit $ac_status); } && { | ||
9375 | test -z "$ac_c_werror_flag" || | ||
9376 | test ! -s conftest.err | ||
9377 | } && test -s conftest$ac_exeext && | ||
9378 | $as_test_x conftest$ac_exeext; then | ||
9379 | ac_cv_lib_nsl_yp_match=yes | ||
9380 | else | ||
9381 | echo "$as_me: failed program was:" >&5 | ||
9382 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9383 | |||
9384 | ac_cv_lib_nsl_yp_match=no | ||
9385 | fi | ||
9386 | |||
9387 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9388 | conftest$ac_exeext conftest.$ac_ext | ||
9389 | LIBS=$ac_check_lib_save_LIBS | ||
9390 | fi | ||
9391 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5 | ||
9392 | echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; } | ||
9393 | if test $ac_cv_lib_nsl_yp_match = yes; then | ||
9394 | cat >>confdefs.h <<_ACEOF | ||
9395 | #define HAVE_LIBNSL 1 | ||
9396 | _ACEOF | ||
9397 | |||
9398 | LIBS="-lnsl $LIBS" | ||
9399 | |||
9400 | fi | ||
9401 | |||
9402 | fi | ||
9403 | |||
9404 | { echo "$as_me:$LINENO: checking for setsockopt" >&5 | ||
9405 | echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } | ||
9406 | if test "${ac_cv_func_setsockopt+set}" = set; then | ||
9407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9408 | else | ||
9409 | cat >conftest.$ac_ext <<_ACEOF | ||
9410 | /* confdefs.h. */ | ||
9411 | _ACEOF | ||
9412 | cat confdefs.h >>conftest.$ac_ext | ||
9413 | cat >>conftest.$ac_ext <<_ACEOF | ||
9414 | /* end confdefs.h. */ | ||
9415 | /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. | ||
9416 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9417 | #define setsockopt innocuous_setsockopt | ||
9418 | |||
9419 | /* System header to define __stub macros and hopefully few prototypes, | ||
9420 | which can conflict with char setsockopt (); below. | ||
9421 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9422 | <limits.h> exists even on freestanding compilers. */ | ||
9423 | |||
9424 | #ifdef __STDC__ | ||
9425 | # include <limits.h> | ||
9426 | #else | ||
9427 | # include <assert.h> | ||
9428 | #endif | ||
9429 | |||
9430 | #undef setsockopt | ||
9431 | |||
9432 | /* Override any GCC internal prototype to avoid an error. | ||
9433 | Use char because int might match the return type of a GCC | ||
9434 | builtin and then its argument prototype would still apply. */ | ||
9435 | #ifdef __cplusplus | ||
9436 | extern "C" | ||
9437 | #endif | ||
9438 | char setsockopt (); | ||
9439 | /* The GNU C library defines this for functions which it implements | ||
9440 | to always fail with ENOSYS. Some functions are actually named | ||
9441 | something starting with __ and the normal name is an alias. */ | ||
9442 | #if defined __stub_setsockopt || defined __stub___setsockopt | ||
9443 | choke me | ||
9444 | #endif | ||
9445 | |||
9446 | int | ||
9447 | main () | ||
9448 | { | ||
9449 | return setsockopt (); | ||
9450 | ; | ||
9451 | return 0; | ||
9452 | } | ||
9453 | _ACEOF | ||
9454 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9455 | if { (ac_try="$ac_link" | ||
9456 | case "(($ac_try" in | ||
9457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9458 | *) ac_try_echo=$ac_try;; | ||
9459 | esac | ||
9460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9461 | (eval "$ac_link") 2>conftest.er1 | ||
9462 | ac_status=$? | ||
9463 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9464 | rm -f conftest.er1 | ||
9465 | cat conftest.err >&5 | ||
9466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9467 | (exit $ac_status); } && { | ||
9468 | test -z "$ac_c_werror_flag" || | ||
9469 | test ! -s conftest.err | ||
9470 | } && test -s conftest$ac_exeext && | ||
9471 | $as_test_x conftest$ac_exeext; then | ||
9472 | ac_cv_func_setsockopt=yes | ||
9473 | else | ||
9474 | echo "$as_me: failed program was:" >&5 | ||
9475 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9476 | |||
9477 | ac_cv_func_setsockopt=no | ||
9478 | fi | ||
9479 | |||
9480 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9481 | conftest$ac_exeext conftest.$ac_ext | ||
9482 | fi | ||
9483 | { echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 | ||
9484 | echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } | ||
9485 | if test $ac_cv_func_setsockopt = yes; then | ||
9486 | : | ||
9487 | else | ||
9488 | |||
9489 | { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 | ||
9490 | echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } | ||
9491 | if test "${ac_cv_lib_socket_setsockopt+set}" = set; then | ||
9492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9493 | else | ||
9494 | ac_check_lib_save_LIBS=$LIBS | ||
9495 | LIBS="-lsocket $LIBS" | ||
9496 | cat >conftest.$ac_ext <<_ACEOF | ||
9497 | /* confdefs.h. */ | ||
9498 | _ACEOF | ||
9499 | cat confdefs.h >>conftest.$ac_ext | ||
9500 | cat >>conftest.$ac_ext <<_ACEOF | ||
9501 | /* end confdefs.h. */ | ||
9502 | |||
9503 | /* Override any GCC internal prototype to avoid an error. | ||
9504 | Use char because int might match the return type of a GCC | ||
9505 | builtin and then its argument prototype would still apply. */ | ||
9506 | #ifdef __cplusplus | ||
9507 | extern "C" | ||
9508 | #endif | ||
9509 | char setsockopt (); | ||
9510 | int | ||
9511 | main () | ||
9512 | { | ||
9513 | return setsockopt (); | ||
9514 | ; | ||
9515 | return 0; | ||
9516 | } | ||
9517 | _ACEOF | ||
9518 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9519 | if { (ac_try="$ac_link" | ||
9520 | case "(($ac_try" in | ||
9521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9522 | *) ac_try_echo=$ac_try;; | ||
9523 | esac | ||
9524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9525 | (eval "$ac_link") 2>conftest.er1 | ||
9526 | ac_status=$? | ||
9527 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9528 | rm -f conftest.er1 | ||
9529 | cat conftest.err >&5 | ||
9530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9531 | (exit $ac_status); } && { | ||
9532 | test -z "$ac_c_werror_flag" || | ||
9533 | test ! -s conftest.err | ||
9534 | } && test -s conftest$ac_exeext && | ||
9535 | $as_test_x conftest$ac_exeext; then | ||
9536 | ac_cv_lib_socket_setsockopt=yes | ||
9537 | else | ||
9538 | echo "$as_me: failed program was:" >&5 | ||
9539 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9540 | |||
9541 | ac_cv_lib_socket_setsockopt=no | ||
9542 | fi | ||
9543 | |||
9544 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9545 | conftest$ac_exeext conftest.$ac_ext | ||
9546 | LIBS=$ac_check_lib_save_LIBS | ||
9547 | fi | ||
9548 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
9549 | echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } | ||
9550 | if test $ac_cv_lib_socket_setsockopt = yes; then | ||
9551 | cat >>confdefs.h <<_ACEOF | ||
9552 | #define HAVE_LIBSOCKET 1 | ||
9553 | _ACEOF | ||
9554 | |||
9555 | LIBS="-lsocket $LIBS" | ||
9556 | |||
9557 | fi | ||
9558 | |||
9559 | fi | ||
9560 | |||
9561 | |||
9562 | |||
9563 | for ac_func in dirname | ||
9564 | do | ||
9565 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9566 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
9567 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
9568 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9570 | else | ||
9571 | cat >conftest.$ac_ext <<_ACEOF | ||
9572 | /* confdefs.h. */ | ||
9573 | _ACEOF | ||
9574 | cat confdefs.h >>conftest.$ac_ext | ||
9575 | cat >>conftest.$ac_ext <<_ACEOF | ||
9576 | /* end confdefs.h. */ | ||
9577 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
9578 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9579 | #define $ac_func innocuous_$ac_func | ||
9580 | |||
9581 | /* System header to define __stub macros and hopefully few prototypes, | ||
9582 | which can conflict with char $ac_func (); below. | ||
9583 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9584 | <limits.h> exists even on freestanding compilers. */ | ||
9585 | |||
9586 | #ifdef __STDC__ | ||
9587 | # include <limits.h> | ||
9588 | #else | ||
9589 | # include <assert.h> | ||
9590 | #endif | ||
9591 | |||
9592 | #undef $ac_func | ||
9593 | |||
9594 | /* Override any GCC internal prototype to avoid an error. | ||
9595 | Use char because int might match the return type of a GCC | ||
9596 | builtin and then its argument prototype would still apply. */ | ||
9597 | #ifdef __cplusplus | ||
9598 | extern "C" | ||
9599 | #endif | ||
9600 | char $ac_func (); | ||
9601 | /* The GNU C library defines this for functions which it implements | ||
9602 | to always fail with ENOSYS. Some functions are actually named | ||
9603 | something starting with __ and the normal name is an alias. */ | ||
9604 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
9605 | choke me | ||
9606 | #endif | ||
9607 | |||
9608 | int | ||
9609 | main () | ||
9610 | { | ||
9611 | return $ac_func (); | ||
9612 | ; | ||
9613 | return 0; | ||
9614 | } | ||
9615 | _ACEOF | ||
9616 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9617 | if { (ac_try="$ac_link" | ||
9618 | case "(($ac_try" in | ||
9619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9620 | *) ac_try_echo=$ac_try;; | ||
9621 | esac | ||
9622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9623 | (eval "$ac_link") 2>conftest.er1 | ||
9624 | ac_status=$? | ||
9625 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9626 | rm -f conftest.er1 | ||
9627 | cat conftest.err >&5 | ||
9628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9629 | (exit $ac_status); } && { | ||
9630 | test -z "$ac_c_werror_flag" || | ||
9631 | test ! -s conftest.err | ||
9632 | } && test -s conftest$ac_exeext && | ||
9633 | $as_test_x conftest$ac_exeext; then | ||
9634 | eval "$as_ac_var=yes" | ||
9635 | else | ||
9636 | echo "$as_me: failed program was:" >&5 | ||
9637 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9638 | |||
9639 | eval "$as_ac_var=no" | ||
9640 | fi | ||
9641 | |||
9642 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9643 | conftest$ac_exeext conftest.$ac_ext | ||
9644 | fi | ||
9645 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
9646 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9647 | echo "${ECHO_T}$ac_res" >&6; } | ||
9648 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9649 | cat >>confdefs.h <<_ACEOF | ||
9650 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9651 | _ACEOF | ||
9652 | |||
9653 | for ac_header in libgen.h | ||
9654 | do | ||
9655 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
9656 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9657 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
9658 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
9659 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9661 | fi | ||
9662 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
9663 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9664 | echo "${ECHO_T}$ac_res" >&6; } | ||
9665 | else | ||
9666 | # Is the header compilable? | ||
9667 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
9668 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
9669 | cat >conftest.$ac_ext <<_ACEOF | ||
9670 | /* confdefs.h. */ | ||
9671 | _ACEOF | ||
9672 | cat confdefs.h >>conftest.$ac_ext | ||
9673 | cat >>conftest.$ac_ext <<_ACEOF | ||
9674 | /* end confdefs.h. */ | ||
9675 | $ac_includes_default | ||
9676 | #include <$ac_header> | ||
9677 | _ACEOF | ||
9678 | rm -f conftest.$ac_objext | ||
9679 | if { (ac_try="$ac_compile" | ||
9680 | case "(($ac_try" in | ||
9681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9682 | *) ac_try_echo=$ac_try;; | ||
9683 | esac | ||
9684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9685 | (eval "$ac_compile") 2>conftest.er1 | ||
9686 | ac_status=$? | ||
9687 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9688 | rm -f conftest.er1 | ||
9689 | cat conftest.err >&5 | ||
9690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9691 | (exit $ac_status); } && { | ||
9692 | test -z "$ac_c_werror_flag" || | ||
9693 | test ! -s conftest.err | ||
9694 | } && test -s conftest.$ac_objext; then | ||
9695 | ac_header_compiler=yes | ||
9696 | else | ||
9697 | echo "$as_me: failed program was:" >&5 | ||
9698 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9699 | |||
9700 | ac_header_compiler=no | ||
9701 | fi | ||
9702 | |||
9703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9704 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
9705 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
9706 | |||
9707 | # Is the header present? | ||
9708 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
9709 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
9710 | cat >conftest.$ac_ext <<_ACEOF | ||
9711 | /* confdefs.h. */ | ||
9712 | _ACEOF | ||
9713 | cat confdefs.h >>conftest.$ac_ext | ||
9714 | cat >>conftest.$ac_ext <<_ACEOF | ||
9715 | /* end confdefs.h. */ | ||
9716 | #include <$ac_header> | ||
9717 | _ACEOF | ||
9718 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
9719 | case "(($ac_try" in | ||
9720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9721 | *) ac_try_echo=$ac_try;; | ||
9722 | esac | ||
9723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9724 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
9725 | ac_status=$? | ||
9726 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9727 | rm -f conftest.er1 | ||
9728 | cat conftest.err >&5 | ||
9729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9730 | (exit $ac_status); } >/dev/null && { | ||
9731 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
9732 | test ! -s conftest.err | ||
9733 | }; then | ||
9734 | ac_header_preproc=yes | ||
9735 | else | ||
9736 | echo "$as_me: failed program was:" >&5 | ||
9737 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9738 | |||
9739 | ac_header_preproc=no | ||
9740 | fi | ||
9741 | |||
9742 | rm -f conftest.err conftest.$ac_ext | ||
9743 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
9744 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
9745 | |||
9746 | # So? What about this header? | ||
9747 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
9748 | yes:no: ) | ||
9749 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
9750 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
9751 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
9752 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
9753 | ac_header_preproc=yes | ||
9754 | ;; | ||
9755 | no:yes:* ) | ||
9756 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
9757 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
9758 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
9759 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
9760 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
9761 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
9762 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
9763 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
9764 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
9765 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
9766 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
9767 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
9768 | ( cat <<\_ASBOX | ||
9769 | ## ------------------------------------------- ## | ||
9770 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
9771 | ## ------------------------------------------- ## | ||
9772 | _ASBOX | ||
9773 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
9774 | ;; | ||
9775 | esac | ||
9776 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
9777 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
9778 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9780 | else | ||
9781 | eval "$as_ac_Header=\$ac_header_preproc" | ||
9782 | fi | ||
9783 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
9784 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9785 | echo "${ECHO_T}$ac_res" >&6; } | ||
9786 | |||
9787 | fi | ||
9788 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
9789 | cat >>confdefs.h <<_ACEOF | ||
9790 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
9791 | _ACEOF | ||
9792 | |||
9793 | fi | ||
9794 | |||
9795 | done | ||
9796 | |||
9797 | else | ||
9798 | |||
9799 | { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5 | ||
9800 | echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; } | ||
9801 | if test "${ac_cv_lib_gen_dirname+set}" = set; then | ||
9802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9803 | else | ||
9804 | ac_check_lib_save_LIBS=$LIBS | ||
9805 | LIBS="-lgen $LIBS" | ||
9806 | cat >conftest.$ac_ext <<_ACEOF | ||
9807 | /* confdefs.h. */ | ||
9808 | _ACEOF | ||
9809 | cat confdefs.h >>conftest.$ac_ext | ||
9810 | cat >>conftest.$ac_ext <<_ACEOF | ||
9811 | /* end confdefs.h. */ | ||
9812 | |||
9813 | /* Override any GCC internal prototype to avoid an error. | ||
9814 | Use char because int might match the return type of a GCC | ||
9815 | builtin and then its argument prototype would still apply. */ | ||
9816 | #ifdef __cplusplus | ||
9817 | extern "C" | ||
9818 | #endif | ||
9819 | char dirname (); | ||
9820 | int | ||
9821 | main () | ||
9822 | { | ||
9823 | return dirname (); | ||
9824 | ; | ||
9825 | return 0; | ||
9826 | } | ||
9827 | _ACEOF | ||
9828 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9829 | if { (ac_try="$ac_link" | ||
9830 | case "(($ac_try" in | ||
9831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9832 | *) ac_try_echo=$ac_try;; | ||
9833 | esac | ||
9834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9835 | (eval "$ac_link") 2>conftest.er1 | ||
9836 | ac_status=$? | ||
9837 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9838 | rm -f conftest.er1 | ||
9839 | cat conftest.err >&5 | ||
9840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9841 | (exit $ac_status); } && { | ||
9842 | test -z "$ac_c_werror_flag" || | ||
9843 | test ! -s conftest.err | ||
9844 | } && test -s conftest$ac_exeext && | ||
9845 | $as_test_x conftest$ac_exeext; then | ||
9846 | ac_cv_lib_gen_dirname=yes | ||
9847 | else | ||
9848 | echo "$as_me: failed program was:" >&5 | ||
9849 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9850 | |||
9851 | ac_cv_lib_gen_dirname=no | ||
9852 | fi | ||
9853 | |||
9854 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9855 | conftest$ac_exeext conftest.$ac_ext | ||
9856 | LIBS=$ac_check_lib_save_LIBS | ||
9857 | fi | ||
9858 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5 | ||
9859 | echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; } | ||
9860 | if test $ac_cv_lib_gen_dirname = yes; then | ||
9861 | |||
9862 | { echo "$as_me:$LINENO: checking for broken dirname" >&5 | ||
9863 | echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; } | ||
9864 | if test "${ac_cv_have_broken_dirname+set}" = set; then | ||
9865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9866 | else | ||
9867 | |||
9868 | save_LIBS="$LIBS" | ||
9869 | LIBS="$LIBS -lgen" | ||
9870 | if test "$cross_compiling" = yes; then | ||
9871 | ac_cv_have_broken_dirname="no" | ||
9872 | else | ||
9873 | cat >conftest.$ac_ext <<_ACEOF | ||
9874 | /* confdefs.h. */ | ||
9875 | _ACEOF | ||
9876 | cat confdefs.h >>conftest.$ac_ext | ||
9877 | cat >>conftest.$ac_ext <<_ACEOF | ||
9878 | /* end confdefs.h. */ | ||
9879 | |||
9880 | #include <libgen.h> | ||
9881 | #include <string.h> | ||
9882 | |||
9883 | int main(int argc, char **argv) { | ||
9884 | char *s, buf[32]; | ||
9885 | |||
9886 | strncpy(buf,"/etc", 32); | ||
9887 | s = dirname(buf); | ||
9888 | if (!s || strncmp(s, "/", 32) != 0) { | ||
9889 | exit(1); | ||
9890 | } else { | ||
9891 | exit(0); | ||
9892 | } | ||
9893 | } | ||
9894 | |||
9895 | _ACEOF | ||
9896 | rm -f conftest$ac_exeext | ||
9897 | if { (ac_try="$ac_link" | ||
9898 | case "(($ac_try" in | ||
9899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9900 | *) ac_try_echo=$ac_try;; | ||
9901 | esac | ||
9902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9903 | (eval "$ac_link") 2>&5 | ||
9904 | ac_status=$? | ||
9905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9906 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9907 | { (case "(($ac_try" in | ||
9908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9909 | *) ac_try_echo=$ac_try;; | ||
9910 | esac | ||
9911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9912 | (eval "$ac_try") 2>&5 | ||
9913 | ac_status=$? | ||
9914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9915 | (exit $ac_status); }; }; then | ||
9916 | ac_cv_have_broken_dirname="no" | ||
9917 | else | ||
9918 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9919 | echo "$as_me: failed program was:" >&5 | ||
9920 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9921 | |||
9922 | ( exit $ac_status ) | ||
9923 | ac_cv_have_broken_dirname="yes" | ||
9924 | fi | ||
9925 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9926 | fi | ||
9927 | |||
9928 | |||
9929 | LIBS="$save_LIBS" | ||
9930 | |||
9931 | fi | ||
9932 | { echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5 | ||
9933 | echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; } | ||
9934 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
9935 | LIBS="$LIBS -lgen" | ||
9936 | cat >>confdefs.h <<\_ACEOF | ||
9937 | #define HAVE_DIRNAME 1 | ||
9938 | _ACEOF | ||
9939 | |||
9940 | |||
9941 | for ac_header in libgen.h | ||
9942 | do | ||
9943 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
9944 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9945 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
9946 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
9947 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9949 | fi | ||
9950 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
9951 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9952 | echo "${ECHO_T}$ac_res" >&6; } | ||
9953 | else | ||
9954 | # Is the header compilable? | ||
9955 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
9956 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
9957 | cat >conftest.$ac_ext <<_ACEOF | ||
9958 | /* confdefs.h. */ | ||
9959 | _ACEOF | ||
9960 | cat confdefs.h >>conftest.$ac_ext | ||
9961 | cat >>conftest.$ac_ext <<_ACEOF | ||
9962 | /* end confdefs.h. */ | ||
9963 | $ac_includes_default | ||
9964 | #include <$ac_header> | ||
9965 | _ACEOF | ||
9966 | rm -f conftest.$ac_objext | ||
9967 | if { (ac_try="$ac_compile" | ||
9968 | case "(($ac_try" in | ||
9969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9970 | *) ac_try_echo=$ac_try;; | ||
9971 | esac | ||
9972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9973 | (eval "$ac_compile") 2>conftest.er1 | ||
9974 | ac_status=$? | ||
9975 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9976 | rm -f conftest.er1 | ||
9977 | cat conftest.err >&5 | ||
9978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9979 | (exit $ac_status); } && { | ||
9980 | test -z "$ac_c_werror_flag" || | ||
9981 | test ! -s conftest.err | ||
9982 | } && test -s conftest.$ac_objext; then | ||
9983 | ac_header_compiler=yes | ||
9984 | else | ||
9985 | echo "$as_me: failed program was:" >&5 | ||
9986 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9987 | |||
9988 | ac_header_compiler=no | ||
9989 | fi | ||
9990 | |||
9991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9992 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
9993 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
9994 | |||
9995 | # Is the header present? | ||
9996 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
9997 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
9998 | cat >conftest.$ac_ext <<_ACEOF | ||
9999 | /* confdefs.h. */ | ||
10000 | _ACEOF | ||
10001 | cat confdefs.h >>conftest.$ac_ext | ||
10002 | cat >>conftest.$ac_ext <<_ACEOF | ||
10003 | /* end confdefs.h. */ | ||
10004 | #include <$ac_header> | ||
10005 | _ACEOF | ||
10006 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
10007 | case "(($ac_try" in | ||
10008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10009 | *) ac_try_echo=$ac_try;; | ||
10010 | esac | ||
10011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10012 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
10013 | ac_status=$? | ||
10014 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10015 | rm -f conftest.er1 | ||
10016 | cat conftest.err >&5 | ||
10017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10018 | (exit $ac_status); } >/dev/null && { | ||
10019 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
10020 | test ! -s conftest.err | ||
10021 | }; then | ||
10022 | ac_header_preproc=yes | ||
10023 | else | ||
10024 | echo "$as_me: failed program was:" >&5 | ||
10025 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10026 | |||
10027 | ac_header_preproc=no | ||
10028 | fi | ||
10029 | |||
10030 | rm -f conftest.err conftest.$ac_ext | ||
10031 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10032 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
10033 | |||
10034 | # So? What about this header? | ||
10035 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10036 | yes:no: ) | ||
10037 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10038 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10039 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
10040 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
10041 | ac_header_preproc=yes | ||
10042 | ;; | ||
10043 | no:yes:* ) | ||
10044 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
10045 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
10046 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
10047 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
10048 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
10049 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
10050 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
10051 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10052 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
10053 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
10054 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
10055 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
10056 | ( cat <<\_ASBOX | ||
10057 | ## ------------------------------------------- ## | ||
10058 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
10059 | ## ------------------------------------------- ## | ||
10060 | _ASBOX | ||
10061 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
10062 | ;; | ||
10063 | esac | ||
10064 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10065 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
10066 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10068 | else | ||
10069 | eval "$as_ac_Header=\$ac_header_preproc" | ||
10070 | fi | ||
10071 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
10072 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10073 | echo "${ECHO_T}$ac_res" >&6; } | ||
10074 | |||
10075 | fi | ||
10076 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
10077 | cat >>confdefs.h <<_ACEOF | ||
10078 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
10079 | _ACEOF | ||
10080 | |||
10081 | fi | ||
10082 | |||
10083 | done | ||
10084 | |||
10085 | fi | ||
10086 | |||
10087 | fi | ||
10088 | |||
10089 | |||
10090 | fi | ||
10091 | done | ||
10092 | |||
10093 | |||
10094 | { echo "$as_me:$LINENO: checking for getspnam" >&5 | ||
10095 | echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; } | ||
10096 | if test "${ac_cv_func_getspnam+set}" = set; then | ||
10097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10098 | else | ||
10099 | cat >conftest.$ac_ext <<_ACEOF | ||
10100 | /* confdefs.h. */ | ||
10101 | _ACEOF | ||
10102 | cat confdefs.h >>conftest.$ac_ext | ||
10103 | cat >>conftest.$ac_ext <<_ACEOF | ||
10104 | /* end confdefs.h. */ | ||
10105 | /* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam. | ||
10106 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10107 | #define getspnam innocuous_getspnam | ||
10108 | |||
10109 | /* System header to define __stub macros and hopefully few prototypes, | ||
10110 | which can conflict with char getspnam (); below. | ||
10111 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10112 | <limits.h> exists even on freestanding compilers. */ | ||
10113 | |||
10114 | #ifdef __STDC__ | ||
10115 | # include <limits.h> | ||
10116 | #else | ||
10117 | # include <assert.h> | ||
10118 | #endif | ||
10119 | |||
10120 | #undef getspnam | ||
10121 | |||
10122 | /* Override any GCC internal prototype to avoid an error. | ||
10123 | Use char because int might match the return type of a GCC | ||
10124 | builtin and then its argument prototype would still apply. */ | ||
10125 | #ifdef __cplusplus | ||
10126 | extern "C" | ||
10127 | #endif | ||
10128 | char getspnam (); | ||
10129 | /* The GNU C library defines this for functions which it implements | ||
10130 | to always fail with ENOSYS. Some functions are actually named | ||
10131 | something starting with __ and the normal name is an alias. */ | ||
10132 | #if defined __stub_getspnam || defined __stub___getspnam | ||
10133 | choke me | ||
10134 | #endif | ||
10135 | |||
10136 | int | ||
10137 | main () | ||
10138 | { | ||
10139 | return getspnam (); | ||
10140 | ; | ||
10141 | return 0; | ||
10142 | } | ||
10143 | _ACEOF | ||
10144 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10145 | if { (ac_try="$ac_link" | ||
10146 | case "(($ac_try" in | ||
10147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10148 | *) ac_try_echo=$ac_try;; | ||
10149 | esac | ||
10150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10151 | (eval "$ac_link") 2>conftest.er1 | ||
10152 | ac_status=$? | ||
10153 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10154 | rm -f conftest.er1 | ||
10155 | cat conftest.err >&5 | ||
10156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10157 | (exit $ac_status); } && { | ||
10158 | test -z "$ac_c_werror_flag" || | ||
10159 | test ! -s conftest.err | ||
10160 | } && test -s conftest$ac_exeext && | ||
10161 | $as_test_x conftest$ac_exeext; then | ||
10162 | ac_cv_func_getspnam=yes | ||
10163 | else | ||
10164 | echo "$as_me: failed program was:" >&5 | ||
10165 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10166 | |||
10167 | ac_cv_func_getspnam=no | ||
10168 | fi | ||
10169 | |||
10170 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10171 | conftest$ac_exeext conftest.$ac_ext | ||
10172 | fi | ||
10173 | { echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5 | ||
10174 | echo "${ECHO_T}$ac_cv_func_getspnam" >&6; } | ||
10175 | if test $ac_cv_func_getspnam = yes; then | ||
10176 | : | ||
10177 | else | ||
10178 | { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5 | ||
10179 | echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; } | ||
10180 | if test "${ac_cv_lib_gen_getspnam+set}" = set; then | ||
10181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10182 | else | ||
10183 | ac_check_lib_save_LIBS=$LIBS | ||
10184 | LIBS="-lgen $LIBS" | ||
10185 | cat >conftest.$ac_ext <<_ACEOF | ||
10186 | /* confdefs.h. */ | ||
10187 | _ACEOF | ||
10188 | cat confdefs.h >>conftest.$ac_ext | ||
10189 | cat >>conftest.$ac_ext <<_ACEOF | ||
10190 | /* end confdefs.h. */ | ||
10191 | |||
10192 | /* Override any GCC internal prototype to avoid an error. | ||
10193 | Use char because int might match the return type of a GCC | ||
10194 | builtin and then its argument prototype would still apply. */ | ||
10195 | #ifdef __cplusplus | ||
10196 | extern "C" | ||
10197 | #endif | ||
10198 | char getspnam (); | ||
10199 | int | ||
10200 | main () | ||
10201 | { | ||
10202 | return getspnam (); | ||
10203 | ; | ||
10204 | return 0; | ||
10205 | } | ||
10206 | _ACEOF | ||
10207 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10208 | if { (ac_try="$ac_link" | ||
10209 | case "(($ac_try" in | ||
10210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10211 | *) ac_try_echo=$ac_try;; | ||
10212 | esac | ||
10213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10214 | (eval "$ac_link") 2>conftest.er1 | ||
10215 | ac_status=$? | ||
10216 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10217 | rm -f conftest.er1 | ||
10218 | cat conftest.err >&5 | ||
10219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10220 | (exit $ac_status); } && { | ||
10221 | test -z "$ac_c_werror_flag" || | ||
10222 | test ! -s conftest.err | ||
10223 | } && test -s conftest$ac_exeext && | ||
10224 | $as_test_x conftest$ac_exeext; then | ||
10225 | ac_cv_lib_gen_getspnam=yes | ||
10226 | else | ||
10227 | echo "$as_me: failed program was:" >&5 | ||
10228 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10229 | |||
10230 | ac_cv_lib_gen_getspnam=no | ||
10231 | fi | ||
10232 | |||
10233 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10234 | conftest$ac_exeext conftest.$ac_ext | ||
10235 | LIBS=$ac_check_lib_save_LIBS | ||
10236 | fi | ||
10237 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5 | ||
10238 | echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; } | ||
10239 | if test $ac_cv_lib_gen_getspnam = yes; then | ||
10240 | LIBS="$LIBS -lgen" | ||
10241 | fi | ||
10242 | |||
10243 | fi | ||
10244 | |||
10245 | { echo "$as_me:$LINENO: checking for library containing basename" >&5 | ||
10246 | echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; } | ||
10247 | if test "${ac_cv_search_basename+set}" = set; then | ||
10248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10249 | else | ||
10250 | ac_func_search_save_LIBS=$LIBS | ||
10251 | cat >conftest.$ac_ext <<_ACEOF | ||
10252 | /* confdefs.h. */ | ||
10253 | _ACEOF | ||
10254 | cat confdefs.h >>conftest.$ac_ext | ||
10255 | cat >>conftest.$ac_ext <<_ACEOF | ||
10256 | /* end confdefs.h. */ | ||
10257 | |||
10258 | /* Override any GCC internal prototype to avoid an error. | ||
10259 | Use char because int might match the return type of a GCC | ||
10260 | builtin and then its argument prototype would still apply. */ | ||
10261 | #ifdef __cplusplus | ||
10262 | extern "C" | ||
10263 | #endif | ||
10264 | char basename (); | ||
10265 | int | ||
10266 | main () | ||
10267 | { | ||
10268 | return basename (); | ||
10269 | ; | ||
10270 | return 0; | ||
10271 | } | ||
10272 | _ACEOF | ||
10273 | for ac_lib in '' gen; do | ||
10274 | if test -z "$ac_lib"; then | ||
10275 | ac_res="none required" | ||
10276 | else | ||
10277 | ac_res=-l$ac_lib | ||
10278 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
10279 | fi | ||
10280 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10281 | if { (ac_try="$ac_link" | ||
10282 | case "(($ac_try" in | ||
10283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10284 | *) ac_try_echo=$ac_try;; | ||
10285 | esac | ||
10286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10287 | (eval "$ac_link") 2>conftest.er1 | ||
10288 | ac_status=$? | ||
10289 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10290 | rm -f conftest.er1 | ||
10291 | cat conftest.err >&5 | ||
10292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10293 | (exit $ac_status); } && { | ||
10294 | test -z "$ac_c_werror_flag" || | ||
10295 | test ! -s conftest.err | ||
10296 | } && test -s conftest$ac_exeext && | ||
10297 | $as_test_x conftest$ac_exeext; then | ||
10298 | ac_cv_search_basename=$ac_res | ||
10299 | else | ||
10300 | echo "$as_me: failed program was:" >&5 | ||
10301 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10302 | |||
10303 | |||
10304 | fi | ||
10305 | |||
10306 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10307 | conftest$ac_exeext | ||
10308 | if test "${ac_cv_search_basename+set}" = set; then | ||
10309 | break | ||
10310 | fi | ||
10311 | done | ||
10312 | if test "${ac_cv_search_basename+set}" = set; then | ||
10313 | : | ||
10314 | else | ||
10315 | ac_cv_search_basename=no | ||
10316 | fi | ||
10317 | rm conftest.$ac_ext | ||
10318 | LIBS=$ac_func_search_save_LIBS | ||
10319 | fi | ||
10320 | { echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5 | ||
10321 | echo "${ECHO_T}$ac_cv_search_basename" >&6; } | ||
10322 | ac_res=$ac_cv_search_basename | ||
10323 | if test "$ac_res" != no; then | ||
10324 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
10325 | |||
10326 | cat >>confdefs.h <<\_ACEOF | ||
10327 | #define HAVE_BASENAME 1 | ||
10328 | _ACEOF | ||
10329 | |||
10330 | fi | ||
10331 | |||
10332 | |||
10333 | |||
10334 | # Check whether --with-zlib was given. | ||
10335 | if test "${with_zlib+set}" = set; then | ||
10336 | withval=$with_zlib; if test "x$withval" = "xno" ; then | ||
10337 | { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5 | ||
10338 | echo "$as_me: error: *** zlib is required ***" >&2;} | ||
10339 | { (exit 1); exit 1; }; } | ||
10340 | elif test "x$withval" != "xyes"; then | ||
10341 | if test -d "$withval/lib"; then | ||
10342 | if test -n "${need_dash_r}"; then | ||
10343 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
10344 | else | ||
10345 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
10346 | fi | ||
10347 | else | ||
10348 | if test -n "${need_dash_r}"; then | ||
10349 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
10350 | else | ||
10351 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
10352 | fi | ||
10353 | fi | ||
10354 | if test -d "$withval/include"; then | ||
10355 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
10356 | else | ||
10357 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
10358 | fi | ||
10359 | fi | ||
10360 | |||
10361 | fi | ||
10362 | |||
10363 | |||
10364 | |||
10365 | { echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | ||
10366 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; } | ||
10367 | if test "${ac_cv_lib_z_deflate+set}" = set; then | ||
10368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10369 | else | ||
10370 | ac_check_lib_save_LIBS=$LIBS | ||
10371 | LIBS="-lz $LIBS" | ||
10372 | cat >conftest.$ac_ext <<_ACEOF | ||
10373 | /* confdefs.h. */ | ||
10374 | _ACEOF | ||
10375 | cat confdefs.h >>conftest.$ac_ext | ||
10376 | cat >>conftest.$ac_ext <<_ACEOF | ||
10377 | /* end confdefs.h. */ | ||
10378 | |||
10379 | /* Override any GCC internal prototype to avoid an error. | ||
10380 | Use char because int might match the return type of a GCC | ||
10381 | builtin and then its argument prototype would still apply. */ | ||
10382 | #ifdef __cplusplus | ||
10383 | extern "C" | ||
10384 | #endif | ||
10385 | char deflate (); | ||
10386 | int | ||
10387 | main () | ||
10388 | { | ||
10389 | return deflate (); | ||
10390 | ; | ||
10391 | return 0; | ||
10392 | } | ||
10393 | _ACEOF | ||
10394 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10395 | if { (ac_try="$ac_link" | ||
10396 | case "(($ac_try" in | ||
10397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10398 | *) ac_try_echo=$ac_try;; | ||
10399 | esac | ||
10400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10401 | (eval "$ac_link") 2>conftest.er1 | ||
10402 | ac_status=$? | ||
10403 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10404 | rm -f conftest.er1 | ||
10405 | cat conftest.err >&5 | ||
10406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10407 | (exit $ac_status); } && { | ||
10408 | test -z "$ac_c_werror_flag" || | ||
10409 | test ! -s conftest.err | ||
10410 | } && test -s conftest$ac_exeext && | ||
10411 | $as_test_x conftest$ac_exeext; then | ||
10412 | ac_cv_lib_z_deflate=yes | ||
10413 | else | ||
10414 | echo "$as_me: failed program was:" >&5 | ||
10415 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10416 | |||
10417 | ac_cv_lib_z_deflate=no | ||
10418 | fi | ||
10419 | |||
10420 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10421 | conftest$ac_exeext conftest.$ac_ext | ||
10422 | LIBS=$ac_check_lib_save_LIBS | ||
10423 | fi | ||
10424 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | ||
10425 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; } | ||
10426 | if test $ac_cv_lib_z_deflate = yes; then | ||
10427 | cat >>confdefs.h <<_ACEOF | ||
10428 | #define HAVE_LIBZ 1 | ||
10429 | _ACEOF | ||
10430 | |||
10431 | LIBS="-lz $LIBS" | ||
10432 | |||
10433 | else | ||
10434 | |||
10435 | saved_CPPFLAGS="$CPPFLAGS" | ||
10436 | saved_LDFLAGS="$LDFLAGS" | ||
10437 | save_LIBS="$LIBS" | ||
10438 | if test -n "${need_dash_r}"; then | ||
10439 | LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" | ||
10440 | else | ||
10441 | LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" | ||
10442 | fi | ||
10443 | CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" | ||
10444 | LIBS="$LIBS -lz" | ||
10445 | cat >conftest.$ac_ext <<_ACEOF | ||
10446 | /* confdefs.h. */ | ||
10447 | _ACEOF | ||
10448 | cat confdefs.h >>conftest.$ac_ext | ||
10449 | cat >>conftest.$ac_ext <<_ACEOF | ||
10450 | /* end confdefs.h. */ | ||
10451 | |||
10452 | /* Override any GCC internal prototype to avoid an error. | ||
10453 | Use char because int might match the return type of a GCC | ||
10454 | builtin and then its argument prototype would still apply. */ | ||
10455 | #ifdef __cplusplus | ||
10456 | extern "C" | ||
10457 | #endif | ||
10458 | char deflate (); | ||
10459 | int | ||
10460 | main () | ||
10461 | { | ||
10462 | return deflate (); | ||
10463 | ; | ||
10464 | return 0; | ||
10465 | } | ||
10466 | _ACEOF | ||
10467 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10468 | if { (ac_try="$ac_link" | ||
10469 | case "(($ac_try" in | ||
10470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10471 | *) ac_try_echo=$ac_try;; | ||
10472 | esac | ||
10473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10474 | (eval "$ac_link") 2>conftest.er1 | ||
10475 | ac_status=$? | ||
10476 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10477 | rm -f conftest.er1 | ||
10478 | cat conftest.err >&5 | ||
10479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10480 | (exit $ac_status); } && { | ||
10481 | test -z "$ac_c_werror_flag" || | ||
10482 | test ! -s conftest.err | ||
10483 | } && test -s conftest$ac_exeext && | ||
10484 | $as_test_x conftest$ac_exeext; then | ||
10485 | cat >>confdefs.h <<\_ACEOF | ||
10486 | #define HAVE_LIBZ 1 | ||
10487 | _ACEOF | ||
10488 | |||
10489 | else | ||
10490 | echo "$as_me: failed program was:" >&5 | ||
10491 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10492 | |||
10493 | |||
10494 | { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5 | ||
10495 | echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;} | ||
10496 | { (exit 1); exit 1; }; } | ||
10497 | |||
10498 | |||
10499 | fi | ||
10500 | |||
10501 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10502 | conftest$ac_exeext conftest.$ac_ext | ||
10503 | |||
10504 | |||
10505 | fi | ||
10506 | |||
10507 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
10508 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
10509 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | ||
10510 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
10511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10512 | fi | ||
10513 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
10514 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | ||
10515 | else | ||
10516 | # Is the header compilable? | ||
10517 | { echo "$as_me:$LINENO: checking zlib.h usability" >&5 | ||
10518 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } | ||
10519 | cat >conftest.$ac_ext <<_ACEOF | ||
10520 | /* confdefs.h. */ | ||
10521 | _ACEOF | ||
10522 | cat confdefs.h >>conftest.$ac_ext | ||
10523 | cat >>conftest.$ac_ext <<_ACEOF | ||
10524 | /* end confdefs.h. */ | ||
10525 | $ac_includes_default | ||
10526 | #include <zlib.h> | ||
10527 | _ACEOF | ||
10528 | rm -f conftest.$ac_objext | ||
10529 | if { (ac_try="$ac_compile" | ||
10530 | case "(($ac_try" in | ||
10531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10532 | *) ac_try_echo=$ac_try;; | ||
10533 | esac | ||
10534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10535 | (eval "$ac_compile") 2>conftest.er1 | ||
10536 | ac_status=$? | ||
10537 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10538 | rm -f conftest.er1 | ||
10539 | cat conftest.err >&5 | ||
10540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10541 | (exit $ac_status); } && { | ||
10542 | test -z "$ac_c_werror_flag" || | ||
10543 | test ! -s conftest.err | ||
10544 | } && test -s conftest.$ac_objext; then | ||
10545 | ac_header_compiler=yes | ||
10546 | else | ||
10547 | echo "$as_me: failed program was:" >&5 | ||
10548 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10549 | |||
10550 | ac_header_compiler=no | ||
10551 | fi | ||
10552 | |||
10553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10554 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10555 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
10556 | |||
10557 | # Is the header present? | ||
10558 | { echo "$as_me:$LINENO: checking zlib.h presence" >&5 | ||
10559 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } | ||
10560 | cat >conftest.$ac_ext <<_ACEOF | ||
10561 | /* confdefs.h. */ | ||
10562 | _ACEOF | ||
10563 | cat confdefs.h >>conftest.$ac_ext | ||
10564 | cat >>conftest.$ac_ext <<_ACEOF | ||
10565 | /* end confdefs.h. */ | ||
10566 | #include <zlib.h> | ||
10567 | _ACEOF | ||
10568 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
10569 | case "(($ac_try" in | ||
10570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10571 | *) ac_try_echo=$ac_try;; | ||
10572 | esac | ||
10573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10574 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
10575 | ac_status=$? | ||
10576 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10577 | rm -f conftest.er1 | ||
10578 | cat conftest.err >&5 | ||
10579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10580 | (exit $ac_status); } >/dev/null && { | ||
10581 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
10582 | test ! -s conftest.err | ||
10583 | }; then | ||
10584 | ac_header_preproc=yes | ||
10585 | else | ||
10586 | echo "$as_me: failed program was:" >&5 | ||
10587 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10588 | |||
10589 | ac_header_preproc=no | ||
10590 | fi | ||
10591 | |||
10592 | rm -f conftest.err conftest.$ac_ext | ||
10593 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10594 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
10595 | |||
10596 | # So? What about this header? | ||
10597 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10598 | yes:no: ) | ||
10599 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10600 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10601 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | ||
10602 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | ||
10603 | ac_header_preproc=yes | ||
10604 | ;; | ||
10605 | no:yes:* ) | ||
10606 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | ||
10607 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | ||
10608 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | ||
10609 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | ||
10610 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | ||
10611 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | ||
10612 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
10613 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10614 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | ||
10615 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | ||
10616 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | ||
10617 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | ||
10618 | ( cat <<\_ASBOX | ||
10619 | ## ------------------------------------------- ## | ||
10620 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
10621 | ## ------------------------------------------- ## | ||
10622 | _ASBOX | ||
10623 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
10624 | ;; | ||
10625 | esac | ||
10626 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
10627 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | ||
10628 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
10629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10630 | else | ||
10631 | ac_cv_header_zlib_h=$ac_header_preproc | ||
10632 | fi | ||
10633 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
10634 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | ||
10635 | |||
10636 | fi | ||
10637 | if test $ac_cv_header_zlib_h = yes; then | ||
10638 | : | ||
10639 | else | ||
10640 | { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5 | ||
10641 | echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;} | ||
10642 | { (exit 1); exit 1; }; } | ||
10643 | fi | ||
10644 | |||
10645 | |||
10646 | |||
10647 | |||
10648 | # Check whether --with-zlib-version-check was given. | ||
10649 | if test "${with_zlib_version_check+set}" = set; then | ||
10650 | withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then | ||
10651 | zlib_check_nonfatal=1 | ||
10652 | fi | ||
10653 | |||
10654 | |||
10655 | fi | ||
10656 | |||
10657 | |||
10658 | { echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5 | ||
10659 | echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; } | ||
10660 | if test "$cross_compiling" = yes; then | ||
10661 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5 | ||
10662 | echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} | ||
10663 | |||
10664 | else | ||
10665 | cat >conftest.$ac_ext <<_ACEOF | ||
10666 | /* confdefs.h. */ | ||
10667 | _ACEOF | ||
10668 | cat confdefs.h >>conftest.$ac_ext | ||
10669 | cat >>conftest.$ac_ext <<_ACEOF | ||
10670 | /* end confdefs.h. */ | ||
10671 | |||
10672 | #include <stdio.h> | ||
10673 | #include <zlib.h> | ||
10674 | int main() | ||
10675 | { | ||
10676 | int a=0, b=0, c=0, d=0, n, v; | ||
10677 | n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d); | ||
10678 | if (n != 3 && n != 4) | ||
10679 | exit(1); | ||
10680 | v = a*1000000 + b*10000 + c*100 + d; | ||
10681 | fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v); | ||
10682 | |||
10683 | /* 1.1.4 is OK */ | ||
10684 | if (a == 1 && b == 1 && c >= 4) | ||
10685 | exit(0); | ||
10686 | |||
10687 | /* 1.2.3 and up are OK */ | ||
10688 | if (v >= 1020300) | ||
10689 | exit(0); | ||
10690 | |||
10691 | exit(2); | ||
10692 | } | ||
10693 | |||
10694 | _ACEOF | ||
10695 | rm -f conftest$ac_exeext | ||
10696 | if { (ac_try="$ac_link" | ||
10697 | case "(($ac_try" in | ||
10698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10699 | *) ac_try_echo=$ac_try;; | ||
10700 | esac | ||
10701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10702 | (eval "$ac_link") 2>&5 | ||
10703 | ac_status=$? | ||
10704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10705 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10706 | { (case "(($ac_try" in | ||
10707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10708 | *) ac_try_echo=$ac_try;; | ||
10709 | esac | ||
10710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10711 | (eval "$ac_try") 2>&5 | ||
10712 | ac_status=$? | ||
10713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10714 | (exit $ac_status); }; }; then | ||
10715 | { echo "$as_me:$LINENO: result: no" >&5 | ||
10716 | echo "${ECHO_T}no" >&6; } | ||
10717 | else | ||
10718 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10719 | echo "$as_me: failed program was:" >&5 | ||
10720 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10721 | |||
10722 | ( exit $ac_status ) | ||
10723 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
10724 | echo "${ECHO_T}yes" >&6; } | ||
10725 | if test -z "$zlib_check_nonfatal" ; then | ||
10726 | { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log *** | ||
10727 | Your reported zlib version has known security problems. It's possible your | ||
10728 | vendor has fixed these problems without changing the version number. If you | ||
10729 | are sure this is the case, you can disable the check by running | ||
10730 | \"./configure --without-zlib-version-check\". | ||
10731 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
10732 | See http://www.gzip.org/zlib/ for details." >&5 | ||
10733 | echo "$as_me: error: *** zlib too old - check config.log *** | ||
10734 | Your reported zlib version has known security problems. It's possible your | ||
10735 | vendor has fixed these problems without changing the version number. If you | ||
10736 | are sure this is the case, you can disable the check by running | ||
10737 | \"./configure --without-zlib-version-check\". | ||
10738 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
10739 | See http://www.gzip.org/zlib/ for details." >&2;} | ||
10740 | { (exit 1); exit 1; }; } | ||
10741 | else | ||
10742 | { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5 | ||
10743 | echo "$as_me: WARNING: zlib version may have security problems" >&2;} | ||
10744 | fi | ||
10745 | |||
10746 | fi | ||
10747 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10748 | fi | ||
10749 | |||
10750 | |||
10751 | |||
10752 | { echo "$as_me:$LINENO: checking for strcasecmp" >&5 | ||
10753 | echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; } | ||
10754 | if test "${ac_cv_func_strcasecmp+set}" = set; then | ||
10755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10756 | else | ||
10757 | cat >conftest.$ac_ext <<_ACEOF | ||
10758 | /* confdefs.h. */ | ||
10759 | _ACEOF | ||
10760 | cat confdefs.h >>conftest.$ac_ext | ||
10761 | cat >>conftest.$ac_ext <<_ACEOF | ||
10762 | /* end confdefs.h. */ | ||
10763 | /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp. | ||
10764 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10765 | #define strcasecmp innocuous_strcasecmp | ||
10766 | |||
10767 | /* System header to define __stub macros and hopefully few prototypes, | ||
10768 | which can conflict with char strcasecmp (); below. | ||
10769 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10770 | <limits.h> exists even on freestanding compilers. */ | ||
10771 | |||
10772 | #ifdef __STDC__ | ||
10773 | # include <limits.h> | ||
10774 | #else | ||
10775 | # include <assert.h> | ||
10776 | #endif | ||
10777 | |||
10778 | #undef strcasecmp | ||
10779 | |||
10780 | /* Override any GCC internal prototype to avoid an error. | ||
10781 | Use char because int might match the return type of a GCC | ||
10782 | builtin and then its argument prototype would still apply. */ | ||
10783 | #ifdef __cplusplus | ||
10784 | extern "C" | ||
10785 | #endif | ||
10786 | char strcasecmp (); | ||
10787 | /* The GNU C library defines this for functions which it implements | ||
10788 | to always fail with ENOSYS. Some functions are actually named | ||
10789 | something starting with __ and the normal name is an alias. */ | ||
10790 | #if defined __stub_strcasecmp || defined __stub___strcasecmp | ||
10791 | choke me | ||
10792 | #endif | ||
10793 | |||
10794 | int | ||
10795 | main () | ||
10796 | { | ||
10797 | return strcasecmp (); | ||
10798 | ; | ||
10799 | return 0; | ||
10800 | } | ||
10801 | _ACEOF | ||
10802 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10803 | if { (ac_try="$ac_link" | ||
10804 | case "(($ac_try" in | ||
10805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10806 | *) ac_try_echo=$ac_try;; | ||
10807 | esac | ||
10808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10809 | (eval "$ac_link") 2>conftest.er1 | ||
10810 | ac_status=$? | ||
10811 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10812 | rm -f conftest.er1 | ||
10813 | cat conftest.err >&5 | ||
10814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10815 | (exit $ac_status); } && { | ||
10816 | test -z "$ac_c_werror_flag" || | ||
10817 | test ! -s conftest.err | ||
10818 | } && test -s conftest$ac_exeext && | ||
10819 | $as_test_x conftest$ac_exeext; then | ||
10820 | ac_cv_func_strcasecmp=yes | ||
10821 | else | ||
10822 | echo "$as_me: failed program was:" >&5 | ||
10823 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10824 | |||
10825 | ac_cv_func_strcasecmp=no | ||
10826 | fi | ||
10827 | |||
10828 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10829 | conftest$ac_exeext conftest.$ac_ext | ||
10830 | fi | ||
10831 | { echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5 | ||
10832 | echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; } | ||
10833 | if test $ac_cv_func_strcasecmp = yes; then | ||
10834 | : | ||
10835 | else | ||
10836 | { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5 | ||
10837 | echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; } | ||
10838 | if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then | ||
10839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10840 | else | ||
10841 | ac_check_lib_save_LIBS=$LIBS | ||
10842 | LIBS="-lresolv $LIBS" | ||
10843 | cat >conftest.$ac_ext <<_ACEOF | ||
10844 | /* confdefs.h. */ | ||
10845 | _ACEOF | ||
10846 | cat confdefs.h >>conftest.$ac_ext | ||
10847 | cat >>conftest.$ac_ext <<_ACEOF | ||
10848 | /* end confdefs.h. */ | ||
10849 | |||
10850 | /* Override any GCC internal prototype to avoid an error. | ||
10851 | Use char because int might match the return type of a GCC | ||
10852 | builtin and then its argument prototype would still apply. */ | ||
10853 | #ifdef __cplusplus | ||
10854 | extern "C" | ||
10855 | #endif | ||
10856 | char strcasecmp (); | ||
10857 | int | ||
10858 | main () | ||
10859 | { | ||
10860 | return strcasecmp (); | ||
10861 | ; | ||
10862 | return 0; | ||
10863 | } | ||
10864 | _ACEOF | ||
10865 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10866 | if { (ac_try="$ac_link" | ||
10867 | case "(($ac_try" in | ||
10868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10869 | *) ac_try_echo=$ac_try;; | ||
10870 | esac | ||
10871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10872 | (eval "$ac_link") 2>conftest.er1 | ||
10873 | ac_status=$? | ||
10874 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10875 | rm -f conftest.er1 | ||
10876 | cat conftest.err >&5 | ||
10877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10878 | (exit $ac_status); } && { | ||
10879 | test -z "$ac_c_werror_flag" || | ||
10880 | test ! -s conftest.err | ||
10881 | } && test -s conftest$ac_exeext && | ||
10882 | $as_test_x conftest$ac_exeext; then | ||
10883 | ac_cv_lib_resolv_strcasecmp=yes | ||
10884 | else | ||
10885 | echo "$as_me: failed program was:" >&5 | ||
10886 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10887 | |||
10888 | ac_cv_lib_resolv_strcasecmp=no | ||
10889 | fi | ||
10890 | |||
10891 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10892 | conftest$ac_exeext conftest.$ac_ext | ||
10893 | LIBS=$ac_check_lib_save_LIBS | ||
10894 | fi | ||
10895 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
10896 | echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; } | ||
10897 | if test $ac_cv_lib_resolv_strcasecmp = yes; then | ||
10898 | LIBS="$LIBS -lresolv" | ||
10899 | fi | ||
10900 | |||
10901 | |||
10902 | fi | ||
10903 | |||
10904 | |||
10905 | for ac_func in utimes | ||
10906 | do | ||
10907 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10908 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10909 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
10910 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10912 | else | ||
10913 | cat >conftest.$ac_ext <<_ACEOF | ||
10914 | /* confdefs.h. */ | ||
10915 | _ACEOF | ||
10916 | cat confdefs.h >>conftest.$ac_ext | ||
10917 | cat >>conftest.$ac_ext <<_ACEOF | ||
10918 | /* end confdefs.h. */ | ||
10919 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10920 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10921 | #define $ac_func innocuous_$ac_func | ||
10922 | |||
10923 | /* System header to define __stub macros and hopefully few prototypes, | ||
10924 | which can conflict with char $ac_func (); below. | ||
10925 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10926 | <limits.h> exists even on freestanding compilers. */ | ||
10927 | |||
10928 | #ifdef __STDC__ | ||
10929 | # include <limits.h> | ||
10930 | #else | ||
10931 | # include <assert.h> | ||
10932 | #endif | ||
10933 | |||
10934 | #undef $ac_func | ||
10935 | |||
10936 | /* Override any GCC internal prototype to avoid an error. | ||
10937 | Use char because int might match the return type of a GCC | ||
10938 | builtin and then its argument prototype would still apply. */ | ||
10939 | #ifdef __cplusplus | ||
10940 | extern "C" | ||
10941 | #endif | ||
10942 | char $ac_func (); | ||
10943 | /* The GNU C library defines this for functions which it implements | ||
10944 | to always fail with ENOSYS. Some functions are actually named | ||
10945 | something starting with __ and the normal name is an alias. */ | ||
10946 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
10947 | choke me | ||
10948 | #endif | ||
10949 | |||
10950 | int | ||
10951 | main () | ||
10952 | { | ||
10953 | return $ac_func (); | ||
10954 | ; | ||
10955 | return 0; | ||
10956 | } | ||
10957 | _ACEOF | ||
10958 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10959 | if { (ac_try="$ac_link" | ||
10960 | case "(($ac_try" in | ||
10961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10962 | *) ac_try_echo=$ac_try;; | ||
10963 | esac | ||
10964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10965 | (eval "$ac_link") 2>conftest.er1 | ||
10966 | ac_status=$? | ||
10967 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10968 | rm -f conftest.er1 | ||
10969 | cat conftest.err >&5 | ||
10970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10971 | (exit $ac_status); } && { | ||
10972 | test -z "$ac_c_werror_flag" || | ||
10973 | test ! -s conftest.err | ||
10974 | } && test -s conftest$ac_exeext && | ||
10975 | $as_test_x conftest$ac_exeext; then | ||
10976 | eval "$as_ac_var=yes" | ||
10977 | else | ||
10978 | echo "$as_me: failed program was:" >&5 | ||
10979 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10980 | |||
10981 | eval "$as_ac_var=no" | ||
10982 | fi | ||
10983 | |||
10984 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10985 | conftest$ac_exeext conftest.$ac_ext | ||
10986 | fi | ||
10987 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
10988 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10989 | echo "${ECHO_T}$ac_res" >&6; } | ||
10990 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
10991 | cat >>confdefs.h <<_ACEOF | ||
10992 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10993 | _ACEOF | ||
10994 | |||
10995 | else | ||
10996 | { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5 | ||
10997 | echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; } | ||
10998 | if test "${ac_cv_lib_c89_utimes+set}" = set; then | ||
10999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11000 | else | ||
11001 | ac_check_lib_save_LIBS=$LIBS | ||
11002 | LIBS="-lc89 $LIBS" | ||
11003 | cat >conftest.$ac_ext <<_ACEOF | ||
11004 | /* confdefs.h. */ | ||
11005 | _ACEOF | ||
11006 | cat confdefs.h >>conftest.$ac_ext | ||
11007 | cat >>conftest.$ac_ext <<_ACEOF | ||
11008 | /* end confdefs.h. */ | ||
11009 | |||
11010 | /* Override any GCC internal prototype to avoid an error. | ||
11011 | Use char because int might match the return type of a GCC | ||
11012 | builtin and then its argument prototype would still apply. */ | ||
11013 | #ifdef __cplusplus | ||
11014 | extern "C" | ||
11015 | #endif | ||
11016 | char utimes (); | ||
11017 | int | ||
11018 | main () | ||
11019 | { | ||
11020 | return utimes (); | ||
11021 | ; | ||
11022 | return 0; | ||
11023 | } | ||
11024 | _ACEOF | ||
11025 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11026 | if { (ac_try="$ac_link" | ||
11027 | case "(($ac_try" in | ||
11028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11029 | *) ac_try_echo=$ac_try;; | ||
11030 | esac | ||
11031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11032 | (eval "$ac_link") 2>conftest.er1 | ||
11033 | ac_status=$? | ||
11034 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11035 | rm -f conftest.er1 | ||
11036 | cat conftest.err >&5 | ||
11037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11038 | (exit $ac_status); } && { | ||
11039 | test -z "$ac_c_werror_flag" || | ||
11040 | test ! -s conftest.err | ||
11041 | } && test -s conftest$ac_exeext && | ||
11042 | $as_test_x conftest$ac_exeext; then | ||
11043 | ac_cv_lib_c89_utimes=yes | ||
11044 | else | ||
11045 | echo "$as_me: failed program was:" >&5 | ||
11046 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11047 | |||
11048 | ac_cv_lib_c89_utimes=no | ||
11049 | fi | ||
11050 | |||
11051 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11052 | conftest$ac_exeext conftest.$ac_ext | ||
11053 | LIBS=$ac_check_lib_save_LIBS | ||
11054 | fi | ||
11055 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5 | ||
11056 | echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; } | ||
11057 | if test $ac_cv_lib_c89_utimes = yes; then | ||
11058 | cat >>confdefs.h <<\_ACEOF | ||
11059 | #define HAVE_UTIMES 1 | ||
11060 | _ACEOF | ||
11061 | |||
11062 | LIBS="$LIBS -lc89" | ||
11063 | fi | ||
11064 | |||
11065 | |||
11066 | fi | ||
11067 | done | ||
11068 | |||
11069 | |||
11070 | |||
11071 | for ac_header in libutil.h | ||
11072 | do | ||
11073 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
11074 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11075 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
11076 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
11077 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11079 | fi | ||
11080 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
11081 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11082 | echo "${ECHO_T}$ac_res" >&6; } | ||
11083 | else | ||
11084 | # Is the header compilable? | ||
11085 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
11086 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
11087 | cat >conftest.$ac_ext <<_ACEOF | ||
11088 | /* confdefs.h. */ | ||
11089 | _ACEOF | ||
11090 | cat confdefs.h >>conftest.$ac_ext | ||
11091 | cat >>conftest.$ac_ext <<_ACEOF | ||
11092 | /* end confdefs.h. */ | ||
11093 | $ac_includes_default | ||
11094 | #include <$ac_header> | ||
11095 | _ACEOF | ||
11096 | rm -f conftest.$ac_objext | ||
11097 | if { (ac_try="$ac_compile" | ||
11098 | case "(($ac_try" in | ||
11099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11100 | *) ac_try_echo=$ac_try;; | ||
11101 | esac | ||
11102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11103 | (eval "$ac_compile") 2>conftest.er1 | ||
11104 | ac_status=$? | ||
11105 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11106 | rm -f conftest.er1 | ||
11107 | cat conftest.err >&5 | ||
11108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11109 | (exit $ac_status); } && { | ||
11110 | test -z "$ac_c_werror_flag" || | ||
11111 | test ! -s conftest.err | ||
11112 | } && test -s conftest.$ac_objext; then | ||
11113 | ac_header_compiler=yes | ||
11114 | else | ||
11115 | echo "$as_me: failed program was:" >&5 | ||
11116 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11117 | |||
11118 | ac_header_compiler=no | ||
11119 | fi | ||
11120 | |||
11121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11122 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
11123 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
11124 | |||
11125 | # Is the header present? | ||
11126 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
11127 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
11128 | cat >conftest.$ac_ext <<_ACEOF | ||
11129 | /* confdefs.h. */ | ||
11130 | _ACEOF | ||
11131 | cat confdefs.h >>conftest.$ac_ext | ||
11132 | cat >>conftest.$ac_ext <<_ACEOF | ||
11133 | /* end confdefs.h. */ | ||
11134 | #include <$ac_header> | ||
11135 | _ACEOF | ||
11136 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
11137 | case "(($ac_try" in | ||
11138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11139 | *) ac_try_echo=$ac_try;; | ||
11140 | esac | ||
11141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11142 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
11143 | ac_status=$? | ||
11144 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11145 | rm -f conftest.er1 | ||
11146 | cat conftest.err >&5 | ||
11147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11148 | (exit $ac_status); } >/dev/null && { | ||
11149 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
11150 | test ! -s conftest.err | ||
11151 | }; then | ||
11152 | ac_header_preproc=yes | ||
11153 | else | ||
11154 | echo "$as_me: failed program was:" >&5 | ||
11155 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11156 | |||
11157 | ac_header_preproc=no | ||
11158 | fi | ||
11159 | |||
11160 | rm -f conftest.err conftest.$ac_ext | ||
11161 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
11162 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
11163 | |||
11164 | # So? What about this header? | ||
11165 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
11166 | yes:no: ) | ||
11167 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
11168 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
11169 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
11170 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
11171 | ac_header_preproc=yes | ||
11172 | ;; | ||
11173 | no:yes:* ) | ||
11174 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
11175 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
11176 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
11177 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
11178 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
11179 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
11180 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
11181 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
11182 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
11183 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
11184 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
11185 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
11186 | ( cat <<\_ASBOX | ||
11187 | ## ------------------------------------------- ## | ||
11188 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
11189 | ## ------------------------------------------- ## | ||
11190 | _ASBOX | ||
11191 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
11192 | ;; | ||
11193 | esac | ||
11194 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
11195 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
11196 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11198 | else | ||
11199 | eval "$as_ac_Header=\$ac_header_preproc" | ||
11200 | fi | ||
11201 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
11202 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11203 | echo "${ECHO_T}$ac_res" >&6; } | ||
11204 | |||
11205 | fi | ||
11206 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
11207 | cat >>confdefs.h <<_ACEOF | ||
11208 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
11209 | _ACEOF | ||
11210 | |||
11211 | fi | ||
11212 | |||
11213 | done | ||
11214 | |||
11215 | { echo "$as_me:$LINENO: checking for library containing login" >&5 | ||
11216 | echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; } | ||
11217 | if test "${ac_cv_search_login+set}" = set; then | ||
11218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11219 | else | ||
11220 | ac_func_search_save_LIBS=$LIBS | ||
11221 | cat >conftest.$ac_ext <<_ACEOF | ||
11222 | /* confdefs.h. */ | ||
11223 | _ACEOF | ||
11224 | cat confdefs.h >>conftest.$ac_ext | ||
11225 | cat >>conftest.$ac_ext <<_ACEOF | ||
11226 | /* end confdefs.h. */ | ||
11227 | |||
11228 | /* Override any GCC internal prototype to avoid an error. | ||
11229 | Use char because int might match the return type of a GCC | ||
11230 | builtin and then its argument prototype would still apply. */ | ||
11231 | #ifdef __cplusplus | ||
11232 | extern "C" | ||
11233 | #endif | ||
11234 | char login (); | ||
11235 | int | ||
11236 | main () | ||
11237 | { | ||
11238 | return login (); | ||
11239 | ; | ||
11240 | return 0; | ||
11241 | } | ||
11242 | _ACEOF | ||
11243 | for ac_lib in '' util bsd; do | ||
11244 | if test -z "$ac_lib"; then | ||
11245 | ac_res="none required" | ||
11246 | else | ||
11247 | ac_res=-l$ac_lib | ||
11248 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
11249 | fi | ||
11250 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11251 | if { (ac_try="$ac_link" | ||
11252 | case "(($ac_try" in | ||
11253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11254 | *) ac_try_echo=$ac_try;; | ||
11255 | esac | ||
11256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11257 | (eval "$ac_link") 2>conftest.er1 | ||
11258 | ac_status=$? | ||
11259 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11260 | rm -f conftest.er1 | ||
11261 | cat conftest.err >&5 | ||
11262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11263 | (exit $ac_status); } && { | ||
11264 | test -z "$ac_c_werror_flag" || | ||
11265 | test ! -s conftest.err | ||
11266 | } && test -s conftest$ac_exeext && | ||
11267 | $as_test_x conftest$ac_exeext; then | ||
11268 | ac_cv_search_login=$ac_res | ||
11269 | else | ||
11270 | echo "$as_me: failed program was:" >&5 | ||
11271 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11272 | |||
11273 | |||
11274 | fi | ||
11275 | |||
11276 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11277 | conftest$ac_exeext | ||
11278 | if test "${ac_cv_search_login+set}" = set; then | ||
11279 | break | ||
11280 | fi | ||
11281 | done | ||
11282 | if test "${ac_cv_search_login+set}" = set; then | ||
11283 | : | ||
11284 | else | ||
11285 | ac_cv_search_login=no | ||
11286 | fi | ||
11287 | rm conftest.$ac_ext | ||
11288 | LIBS=$ac_func_search_save_LIBS | ||
11289 | fi | ||
11290 | { echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5 | ||
11291 | echo "${ECHO_T}$ac_cv_search_login" >&6; } | ||
11292 | ac_res=$ac_cv_search_login | ||
11293 | if test "$ac_res" != no; then | ||
11294 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
11295 | |||
11296 | cat >>confdefs.h <<\_ACEOF | ||
11297 | #define HAVE_LOGIN 1 | ||
11298 | _ACEOF | ||
11299 | |||
11300 | fi | ||
11301 | |||
11302 | |||
11303 | |||
11304 | |||
11305 | |||
11306 | for ac_func in fmt_scaled logout updwtmp logwtmp | ||
11307 | do | ||
11308 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11309 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11310 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
11311 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11313 | else | ||
11314 | cat >conftest.$ac_ext <<_ACEOF | ||
11315 | /* confdefs.h. */ | ||
11316 | _ACEOF | ||
11317 | cat confdefs.h >>conftest.$ac_ext | ||
11318 | cat >>conftest.$ac_ext <<_ACEOF | ||
11319 | /* end confdefs.h. */ | ||
11320 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11321 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11322 | #define $ac_func innocuous_$ac_func | ||
11323 | |||
11324 | /* System header to define __stub macros and hopefully few prototypes, | ||
11325 | which can conflict with char $ac_func (); below. | ||
11326 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11327 | <limits.h> exists even on freestanding compilers. */ | ||
11328 | |||
11329 | #ifdef __STDC__ | ||
11330 | # include <limits.h> | ||
11331 | #else | ||
11332 | # include <assert.h> | ||
11333 | #endif | ||
11334 | |||
11335 | #undef $ac_func | ||
11336 | |||
11337 | /* Override any GCC internal prototype to avoid an error. | ||
11338 | Use char because int might match the return type of a GCC | ||
11339 | builtin and then its argument prototype would still apply. */ | ||
11340 | #ifdef __cplusplus | ||
11341 | extern "C" | ||
11342 | #endif | ||
11343 | char $ac_func (); | ||
11344 | /* The GNU C library defines this for functions which it implements | ||
11345 | to always fail with ENOSYS. Some functions are actually named | ||
11346 | something starting with __ and the normal name is an alias. */ | ||
11347 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
11348 | choke me | ||
11349 | #endif | ||
11350 | |||
11351 | int | ||
11352 | main () | ||
11353 | { | ||
11354 | return $ac_func (); | ||
11355 | ; | ||
11356 | return 0; | ||
11357 | } | ||
11358 | _ACEOF | ||
11359 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11360 | if { (ac_try="$ac_link" | ||
11361 | case "(($ac_try" in | ||
11362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11363 | *) ac_try_echo=$ac_try;; | ||
11364 | esac | ||
11365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11366 | (eval "$ac_link") 2>conftest.er1 | ||
11367 | ac_status=$? | ||
11368 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11369 | rm -f conftest.er1 | ||
11370 | cat conftest.err >&5 | ||
11371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11372 | (exit $ac_status); } && { | ||
11373 | test -z "$ac_c_werror_flag" || | ||
11374 | test ! -s conftest.err | ||
11375 | } && test -s conftest$ac_exeext && | ||
11376 | $as_test_x conftest$ac_exeext; then | ||
11377 | eval "$as_ac_var=yes" | ||
11378 | else | ||
11379 | echo "$as_me: failed program was:" >&5 | ||
11380 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11381 | |||
11382 | eval "$as_ac_var=no" | ||
11383 | fi | ||
11384 | |||
11385 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11386 | conftest$ac_exeext conftest.$ac_ext | ||
11387 | fi | ||
11388 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
11389 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11390 | echo "${ECHO_T}$ac_res" >&6; } | ||
11391 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11392 | cat >>confdefs.h <<_ACEOF | ||
11393 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11394 | _ACEOF | ||
11395 | |||
11396 | fi | ||
11397 | done | ||
11398 | |||
11399 | |||
11400 | |||
11401 | for ac_func in strftime | ||
11402 | do | ||
11403 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11404 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11405 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
11406 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11408 | else | ||
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 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11416 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11417 | #define $ac_func innocuous_$ac_func | ||
11418 | |||
11419 | /* System header to define __stub macros and hopefully few prototypes, | ||
11420 | which can conflict with char $ac_func (); below. | ||
11421 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11422 | <limits.h> exists even on freestanding compilers. */ | ||
11423 | |||
11424 | #ifdef __STDC__ | ||
11425 | # include <limits.h> | ||
11426 | #else | ||
11427 | # include <assert.h> | ||
11428 | #endif | ||
11429 | |||
11430 | #undef $ac_func | ||
11431 | |||
11432 | /* Override any GCC internal prototype to avoid an error. | ||
11433 | Use char because int might match the return type of a GCC | ||
11434 | builtin and then its argument prototype would still apply. */ | ||
11435 | #ifdef __cplusplus | ||
11436 | extern "C" | ||
11437 | #endif | ||
11438 | char $ac_func (); | ||
11439 | /* The GNU C library defines this for functions which it implements | ||
11440 | to always fail with ENOSYS. Some functions are actually named | ||
11441 | something starting with __ and the normal name is an alias. */ | ||
11442 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
11443 | choke me | ||
11444 | #endif | ||
11445 | |||
11446 | int | ||
11447 | main () | ||
11448 | { | ||
11449 | return $ac_func (); | ||
11450 | ; | ||
11451 | return 0; | ||
11452 | } | ||
11453 | _ACEOF | ||
11454 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11455 | if { (ac_try="$ac_link" | ||
11456 | case "(($ac_try" in | ||
11457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11458 | *) ac_try_echo=$ac_try;; | ||
11459 | esac | ||
11460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11461 | (eval "$ac_link") 2>conftest.er1 | ||
11462 | ac_status=$? | ||
11463 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11464 | rm -f conftest.er1 | ||
11465 | cat conftest.err >&5 | ||
11466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11467 | (exit $ac_status); } && { | ||
11468 | test -z "$ac_c_werror_flag" || | ||
11469 | test ! -s conftest.err | ||
11470 | } && test -s conftest$ac_exeext && | ||
11471 | $as_test_x conftest$ac_exeext; then | ||
11472 | eval "$as_ac_var=yes" | ||
11473 | else | ||
11474 | echo "$as_me: failed program was:" >&5 | ||
11475 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11476 | |||
11477 | eval "$as_ac_var=no" | ||
11478 | fi | ||
11479 | |||
11480 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11481 | conftest$ac_exeext conftest.$ac_ext | ||
11482 | fi | ||
11483 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
11484 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11485 | echo "${ECHO_T}$ac_res" >&6; } | ||
11486 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11487 | cat >>confdefs.h <<_ACEOF | ||
11488 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11489 | _ACEOF | ||
11490 | |||
11491 | else | ||
11492 | # strftime is in -lintl on SCO UNIX. | ||
11493 | { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | ||
11494 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; } | ||
11495 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | ||
11496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11497 | else | ||
11498 | ac_check_lib_save_LIBS=$LIBS | ||
11499 | LIBS="-lintl $LIBS" | ||
11500 | cat >conftest.$ac_ext <<_ACEOF | ||
11501 | /* confdefs.h. */ | ||
11502 | _ACEOF | ||
11503 | cat confdefs.h >>conftest.$ac_ext | ||
11504 | cat >>conftest.$ac_ext <<_ACEOF | ||
11505 | /* end confdefs.h. */ | ||
11506 | |||
11507 | /* Override any GCC internal prototype to avoid an error. | ||
11508 | Use char because int might match the return type of a GCC | ||
11509 | builtin and then its argument prototype would still apply. */ | ||
11510 | #ifdef __cplusplus | ||
11511 | extern "C" | ||
11512 | #endif | ||
11513 | char strftime (); | ||
11514 | int | ||
11515 | main () | ||
11516 | { | ||
11517 | return strftime (); | ||
11518 | ; | ||
11519 | return 0; | ||
11520 | } | ||
11521 | _ACEOF | ||
11522 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11523 | if { (ac_try="$ac_link" | ||
11524 | case "(($ac_try" in | ||
11525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11526 | *) ac_try_echo=$ac_try;; | ||
11527 | esac | ||
11528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11529 | (eval "$ac_link") 2>conftest.er1 | ||
11530 | ac_status=$? | ||
11531 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11532 | rm -f conftest.er1 | ||
11533 | cat conftest.err >&5 | ||
11534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11535 | (exit $ac_status); } && { | ||
11536 | test -z "$ac_c_werror_flag" || | ||
11537 | test ! -s conftest.err | ||
11538 | } && test -s conftest$ac_exeext && | ||
11539 | $as_test_x conftest$ac_exeext; then | ||
11540 | ac_cv_lib_intl_strftime=yes | ||
11541 | else | ||
11542 | echo "$as_me: failed program was:" >&5 | ||
11543 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11544 | |||
11545 | ac_cv_lib_intl_strftime=no | ||
11546 | fi | ||
11547 | |||
11548 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11549 | conftest$ac_exeext conftest.$ac_ext | ||
11550 | LIBS=$ac_check_lib_save_LIBS | ||
11551 | fi | ||
11552 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | ||
11553 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; } | ||
11554 | if test $ac_cv_lib_intl_strftime = yes; then | ||
11555 | cat >>confdefs.h <<\_ACEOF | ||
11556 | #define HAVE_STRFTIME 1 | ||
11557 | _ACEOF | ||
11558 | |||
11559 | LIBS="-lintl $LIBS" | ||
11560 | fi | ||
11561 | |||
11562 | fi | ||
11563 | done | ||
11564 | |||
11565 | |||
11566 | # Check for ALTDIRFUNC glob() extension | ||
11567 | { echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5 | ||
11568 | echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; } | ||
11569 | cat >conftest.$ac_ext <<_ACEOF | ||
11570 | /* confdefs.h. */ | ||
11571 | _ACEOF | ||
11572 | cat confdefs.h >>conftest.$ac_ext | ||
11573 | cat >>conftest.$ac_ext <<_ACEOF | ||
11574 | /* end confdefs.h. */ | ||
11575 | |||
11576 | #include <glob.h> | ||
11577 | #ifdef GLOB_ALTDIRFUNC | ||
11578 | FOUNDIT | ||
11579 | #endif | ||
11580 | |||
11581 | _ACEOF | ||
11582 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
11583 | $EGREP "FOUNDIT" >/dev/null 2>&1; then | ||
11584 | |||
11585 | |||
11586 | cat >>confdefs.h <<\_ACEOF | ||
11587 | #define GLOB_HAS_ALTDIRFUNC 1 | ||
11588 | _ACEOF | ||
11589 | |||
11590 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
11591 | echo "${ECHO_T}yes" >&6; } | ||
11592 | |||
11593 | else | ||
11594 | |||
11595 | { echo "$as_me:$LINENO: result: no" >&5 | ||
11596 | echo "${ECHO_T}no" >&6; } | ||
11597 | |||
11598 | |||
11599 | fi | ||
11600 | rm -f conftest* | ||
11601 | |||
11602 | |||
11603 | # Check for g.gl_matchc glob() extension | ||
11604 | { echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5 | ||
11605 | echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; } | ||
11606 | cat >conftest.$ac_ext <<_ACEOF | ||
11607 | /* confdefs.h. */ | ||
11608 | _ACEOF | ||
11609 | cat confdefs.h >>conftest.$ac_ext | ||
11610 | cat >>conftest.$ac_ext <<_ACEOF | ||
11611 | /* end confdefs.h. */ | ||
11612 | #include <glob.h> | ||
11613 | int | ||
11614 | main () | ||
11615 | { | ||
11616 | glob_t g; g.gl_matchc = 1; | ||
11617 | ; | ||
11618 | return 0; | ||
11619 | } | ||
11620 | _ACEOF | ||
11621 | rm -f conftest.$ac_objext | ||
11622 | if { (ac_try="$ac_compile" | ||
11623 | case "(($ac_try" in | ||
11624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11625 | *) ac_try_echo=$ac_try;; | ||
11626 | esac | ||
11627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11628 | (eval "$ac_compile") 2>conftest.er1 | ||
11629 | ac_status=$? | ||
11630 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11631 | rm -f conftest.er1 | ||
11632 | cat conftest.err >&5 | ||
11633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11634 | (exit $ac_status); } && { | ||
11635 | test -z "$ac_c_werror_flag" || | ||
11636 | test ! -s conftest.err | ||
11637 | } && test -s conftest.$ac_objext; then | ||
11638 | |||
11639 | |||
11640 | cat >>confdefs.h <<\_ACEOF | ||
11641 | #define GLOB_HAS_GL_MATCHC 1 | ||
11642 | _ACEOF | ||
11643 | |||
11644 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
11645 | echo "${ECHO_T}yes" >&6; } | ||
11646 | |||
11647 | else | ||
11648 | echo "$as_me: failed program was:" >&5 | ||
11649 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11650 | |||
11651 | |||
11652 | { echo "$as_me:$LINENO: result: no" >&5 | ||
11653 | echo "${ECHO_T}no" >&6; } | ||
11654 | |||
11655 | |||
11656 | fi | ||
11657 | |||
11658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11659 | |||
11660 | { echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5 | ||
11661 | echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; } | ||
11662 | if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then | ||
11663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11664 | else | ||
11665 | cat >conftest.$ac_ext <<_ACEOF | ||
11666 | /* confdefs.h. */ | ||
11667 | _ACEOF | ||
11668 | cat confdefs.h >>conftest.$ac_ext | ||
11669 | cat >>conftest.$ac_ext <<_ACEOF | ||
11670 | /* end confdefs.h. */ | ||
11671 | #include <glob.h> | ||
11672 | |||
11673 | int | ||
11674 | main () | ||
11675 | { | ||
11676 | #ifndef GLOB_NOMATCH | ||
11677 | (void) GLOB_NOMATCH; | ||
11678 | #endif | ||
11679 | |||
11680 | ; | ||
11681 | return 0; | ||
11682 | } | ||
11683 | _ACEOF | ||
11684 | rm -f conftest.$ac_objext | ||
11685 | if { (ac_try="$ac_compile" | ||
11686 | case "(($ac_try" in | ||
11687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11688 | *) ac_try_echo=$ac_try;; | ||
11689 | esac | ||
11690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11691 | (eval "$ac_compile") 2>conftest.er1 | ||
11692 | ac_status=$? | ||
11693 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11694 | rm -f conftest.er1 | ||
11695 | cat conftest.err >&5 | ||
11696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11697 | (exit $ac_status); } && { | ||
11698 | test -z "$ac_c_werror_flag" || | ||
11699 | test ! -s conftest.err | ||
11700 | } && test -s conftest.$ac_objext; then | ||
11701 | ac_cv_have_decl_GLOB_NOMATCH=yes | ||
11702 | else | ||
11703 | echo "$as_me: failed program was:" >&5 | ||
11704 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11705 | |||
11706 | ac_cv_have_decl_GLOB_NOMATCH=no | ||
11707 | fi | ||
11708 | |||
11709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11710 | fi | ||
11711 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5 | ||
11712 | echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; } | ||
11713 | if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then | ||
11714 | |||
11715 | cat >>confdefs.h <<_ACEOF | ||
11716 | #define HAVE_DECL_GLOB_NOMATCH 1 | ||
11717 | _ACEOF | ||
11718 | |||
11719 | |||
11720 | else | ||
11721 | cat >>confdefs.h <<_ACEOF | ||
11722 | #define HAVE_DECL_GLOB_NOMATCH 0 | ||
11723 | _ACEOF | ||
11724 | |||
11725 | |||
11726 | fi | ||
11727 | |||
11728 | |||
11729 | |||
11730 | { echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5 | ||
11731 | echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; } | ||
11732 | if test "$cross_compiling" = yes; then | ||
11733 | |||
11734 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5 | ||
11735 | echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;} | ||
11736 | cat >>confdefs.h <<\_ACEOF | ||
11737 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
11738 | _ACEOF | ||
11739 | |||
11740 | |||
11741 | |||
11742 | else | ||
11743 | cat >conftest.$ac_ext <<_ACEOF | ||
11744 | /* confdefs.h. */ | ||
11745 | _ACEOF | ||
11746 | cat confdefs.h >>conftest.$ac_ext | ||
11747 | cat >>conftest.$ac_ext <<_ACEOF | ||
11748 | /* end confdefs.h. */ | ||
11749 | |||
11750 | #include <sys/types.h> | ||
11751 | #include <dirent.h> | ||
11752 | int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));} | ||
11753 | |||
11754 | _ACEOF | ||
11755 | rm -f conftest$ac_exeext | ||
11756 | if { (ac_try="$ac_link" | ||
11757 | case "(($ac_try" in | ||
11758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11759 | *) ac_try_echo=$ac_try;; | ||
11760 | esac | ||
11761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11762 | (eval "$ac_link") 2>&5 | ||
11763 | ac_status=$? | ||
11764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11765 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11766 | { (case "(($ac_try" in | ||
11767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11768 | *) ac_try_echo=$ac_try;; | ||
11769 | esac | ||
11770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11771 | (eval "$ac_try") 2>&5 | ||
11772 | ac_status=$? | ||
11773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11774 | (exit $ac_status); }; }; then | ||
11775 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
11776 | echo "${ECHO_T}yes" >&6; } | ||
11777 | else | ||
11778 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11779 | echo "$as_me: failed program was:" >&5 | ||
11780 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11781 | |||
11782 | ( exit $ac_status ) | ||
11783 | |||
11784 | { echo "$as_me:$LINENO: result: no" >&5 | ||
11785 | echo "${ECHO_T}no" >&6; } | ||
11786 | |||
11787 | cat >>confdefs.h <<\_ACEOF | ||
11788 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
11789 | _ACEOF | ||
11790 | |||
11791 | |||
11792 | fi | ||
11793 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11794 | fi | ||
11795 | |||
11796 | |||
11797 | |||
11798 | { echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5 | ||
11799 | echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; } | ||
11800 | if test -d "/proc/$$/fd" ; then | ||
11801 | |||
11802 | cat >>confdefs.h <<\_ACEOF | ||
11803 | #define HAVE_PROC_PID 1 | ||
11804 | _ACEOF | ||
11805 | |||
11806 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
11807 | echo "${ECHO_T}yes" >&6; } | ||
11808 | else | ||
11809 | { echo "$as_me:$LINENO: result: no" >&5 | ||
11810 | echo "${ECHO_T}no" >&6; } | ||
11811 | fi | ||
11812 | |||
11813 | # Check whether user wants S/Key support | ||
11814 | SKEY_MSG="no" | ||
11815 | |||
11816 | # Check whether --with-skey was given. | ||
11817 | if test "${with_skey+set}" = set; then | ||
11818 | withval=$with_skey; | ||
11819 | if test "x$withval" != "xno" ; then | ||
11820 | |||
11821 | if test "x$withval" != "xyes" ; then | ||
11822 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
11823 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
11824 | fi | ||
11825 | |||
11826 | |||
11827 | cat >>confdefs.h <<\_ACEOF | ||
11828 | #define SKEY 1 | ||
11829 | _ACEOF | ||
11830 | |||
11831 | LIBS="-lskey $LIBS" | ||
11832 | SKEY_MSG="yes" | ||
11833 | |||
11834 | { echo "$as_me:$LINENO: checking for s/key support" >&5 | ||
11835 | echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; } | ||
11836 | cat >conftest.$ac_ext <<_ACEOF | ||
11837 | /* confdefs.h. */ | ||
11838 | _ACEOF | ||
11839 | cat confdefs.h >>conftest.$ac_ext | ||
11840 | cat >>conftest.$ac_ext <<_ACEOF | ||
11841 | /* end confdefs.h. */ | ||
11842 | |||
11843 | #include <stdio.h> | ||
11844 | #include <skey.h> | ||
11845 | int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); } | ||
11846 | |||
11847 | _ACEOF | ||
11848 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11849 | if { (ac_try="$ac_link" | ||
11850 | case "(($ac_try" in | ||
11851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11852 | *) ac_try_echo=$ac_try;; | ||
11853 | esac | ||
11854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11855 | (eval "$ac_link") 2>conftest.er1 | ||
11856 | ac_status=$? | ||
11857 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11858 | rm -f conftest.er1 | ||
11859 | cat conftest.err >&5 | ||
11860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11861 | (exit $ac_status); } && { | ||
11862 | test -z "$ac_c_werror_flag" || | ||
11863 | test ! -s conftest.err | ||
11864 | } && test -s conftest$ac_exeext && | ||
11865 | $as_test_x conftest$ac_exeext; then | ||
11866 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
11867 | echo "${ECHO_T}yes" >&6; } | ||
11868 | else | ||
11869 | echo "$as_me: failed program was:" >&5 | ||
11870 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11871 | |||
11872 | |||
11873 | { echo "$as_me:$LINENO: result: no" >&5 | ||
11874 | echo "${ECHO_T}no" >&6; } | ||
11875 | { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5 | ||
11876 | echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;} | ||
11877 | { (exit 1); exit 1; }; } | ||
11878 | |||
11879 | fi | ||
11880 | |||
11881 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11882 | conftest$ac_exeext conftest.$ac_ext | ||
11883 | { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5 | ||
11884 | echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; } | ||
11885 | cat >conftest.$ac_ext <<_ACEOF | ||
11886 | /* confdefs.h. */ | ||
11887 | _ACEOF | ||
11888 | cat confdefs.h >>conftest.$ac_ext | ||
11889 | cat >>conftest.$ac_ext <<_ACEOF | ||
11890 | /* end confdefs.h. */ | ||
11891 | #include <stdio.h> | ||
11892 | #include <skey.h> | ||
11893 | int | ||
11894 | main () | ||
11895 | { | ||
11896 | (void)skeychallenge(NULL,"name","",0); | ||
11897 | ; | ||
11898 | return 0; | ||
11899 | } | ||
11900 | _ACEOF | ||
11901 | rm -f conftest.$ac_objext | ||
11902 | if { (ac_try="$ac_compile" | ||
11903 | case "(($ac_try" in | ||
11904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11905 | *) ac_try_echo=$ac_try;; | ||
11906 | esac | ||
11907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11908 | (eval "$ac_compile") 2>conftest.er1 | ||
11909 | ac_status=$? | ||
11910 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11911 | rm -f conftest.er1 | ||
11912 | cat conftest.err >&5 | ||
11913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11914 | (exit $ac_status); } && { | ||
11915 | test -z "$ac_c_werror_flag" || | ||
11916 | test ! -s conftest.err | ||
11917 | } && test -s conftest.$ac_objext; then | ||
11918 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
11919 | echo "${ECHO_T}yes" >&6; } | ||
11920 | |||
11921 | cat >>confdefs.h <<\_ACEOF | ||
11922 | #define SKEYCHALLENGE_4ARG 1 | ||
11923 | _ACEOF | ||
11924 | |||
11925 | else | ||
11926 | echo "$as_me: failed program was:" >&5 | ||
11927 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11928 | |||
11929 | { echo "$as_me:$LINENO: result: no" >&5 | ||
11930 | echo "${ECHO_T}no" >&6; } | ||
11931 | |||
11932 | fi | ||
11933 | |||
11934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11935 | fi | ||
11936 | |||
11937 | |||
11938 | fi | ||
11939 | |||
11940 | |||
11941 | # Check whether user wants TCP wrappers support | ||
11942 | TCPW_MSG="no" | ||
11943 | |||
11944 | # Check whether --with-tcp-wrappers was given. | ||
11945 | if test "${with_tcp_wrappers+set}" = set; then | ||
11946 | withval=$with_tcp_wrappers; | ||
11947 | if test "x$withval" != "xno" ; then | ||
11948 | saved_LIBS="$LIBS" | ||
11949 | saved_LDFLAGS="$LDFLAGS" | ||
11950 | saved_CPPFLAGS="$CPPFLAGS" | ||
11951 | if test -n "${withval}" && \ | ||
11952 | test "x${withval}" != "xyes"; then | ||
11953 | if test -d "${withval}/lib"; then | ||
11954 | if test -n "${need_dash_r}"; then | ||
11955 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
11956 | else | ||
11957 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
11958 | fi | ||
11959 | else | ||
11960 | if test -n "${need_dash_r}"; then | ||
11961 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
11962 | else | ||
11963 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
11964 | fi | ||
11965 | fi | ||
11966 | if test -d "${withval}/include"; then | ||
11967 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
11968 | else | ||
11969 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
11970 | fi | ||
11971 | fi | ||
11972 | LIBS="-lwrap $LIBS" | ||
11973 | { echo "$as_me:$LINENO: checking for libwrap" >&5 | ||
11974 | echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; } | ||
11975 | cat >conftest.$ac_ext <<_ACEOF | ||
11976 | /* confdefs.h. */ | ||
11977 | _ACEOF | ||
11978 | cat confdefs.h >>conftest.$ac_ext | ||
11979 | cat >>conftest.$ac_ext <<_ACEOF | ||
11980 | /* end confdefs.h. */ | ||
11981 | |||
11982 | #include <sys/types.h> | ||
11983 | #include <sys/socket.h> | ||
11984 | #include <netinet/in.h> | ||
11985 | #include <tcpd.h> | ||
11986 | int deny_severity = 0, allow_severity = 0; | ||
11987 | |||
11988 | int | ||
11989 | main () | ||
11990 | { | ||
11991 | hosts_access(0); | ||
11992 | ; | ||
11993 | return 0; | ||
11994 | } | ||
11995 | _ACEOF | ||
11996 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11997 | if { (ac_try="$ac_link" | ||
11998 | case "(($ac_try" in | ||
11999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12000 | *) ac_try_echo=$ac_try;; | ||
12001 | esac | ||
12002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12003 | (eval "$ac_link") 2>conftest.er1 | ||
12004 | ac_status=$? | ||
12005 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12006 | rm -f conftest.er1 | ||
12007 | cat conftest.err >&5 | ||
12008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12009 | (exit $ac_status); } && { | ||
12010 | test -z "$ac_c_werror_flag" || | ||
12011 | test ! -s conftest.err | ||
12012 | } && test -s conftest$ac_exeext && | ||
12013 | $as_test_x conftest$ac_exeext; then | ||
12014 | |||
12015 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12016 | echo "${ECHO_T}yes" >&6; } | ||
12017 | |||
12018 | cat >>confdefs.h <<\_ACEOF | ||
12019 | #define LIBWRAP 1 | ||
12020 | _ACEOF | ||
12021 | |||
12022 | SSHDLIBS="$SSHDLIBS -lwrap" | ||
12023 | TCPW_MSG="yes" | ||
12024 | |||
12025 | else | ||
12026 | echo "$as_me: failed program was:" >&5 | ||
12027 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12028 | |||
12029 | |||
12030 | { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5 | ||
12031 | echo "$as_me: error: *** libwrap missing" >&2;} | ||
12032 | { (exit 1); exit 1; }; } | ||
12033 | |||
12034 | |||
12035 | fi | ||
12036 | |||
12037 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12038 | conftest$ac_exeext conftest.$ac_ext | ||
12039 | LIBS="$saved_LIBS" | ||
12040 | fi | ||
12041 | |||
12042 | |||
12043 | fi | ||
12044 | |||
12045 | |||
12046 | # Check whether user wants libedit support | ||
12047 | LIBEDIT_MSG="no" | ||
12048 | |||
12049 | # Check whether --with-libedit was given. | ||
12050 | if test "${with_libedit+set}" = set; then | ||
12051 | withval=$with_libedit; if test "x$withval" != "xno" ; then | ||
12052 | if test "x$withval" != "xyes"; then | ||
12053 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
12054 | if test -n "${need_dash_r}"; then | ||
12055 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
12056 | else | ||
12057 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
12058 | fi | ||
12059 | fi | ||
12060 | { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5 | ||
12061 | echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; } | ||
12062 | if test "${ac_cv_lib_edit_el_init+set}" = set; then | ||
12063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12064 | else | ||
12065 | ac_check_lib_save_LIBS=$LIBS | ||
12066 | LIBS="-ledit -lcurses | ||
12067 | $LIBS" | ||
12068 | cat >conftest.$ac_ext <<_ACEOF | ||
12069 | /* confdefs.h. */ | ||
12070 | _ACEOF | ||
12071 | cat confdefs.h >>conftest.$ac_ext | ||
12072 | cat >>conftest.$ac_ext <<_ACEOF | ||
12073 | /* end confdefs.h. */ | ||
12074 | |||
12075 | /* Override any GCC internal prototype to avoid an error. | ||
12076 | Use char because int might match the return type of a GCC | ||
12077 | builtin and then its argument prototype would still apply. */ | ||
12078 | #ifdef __cplusplus | ||
12079 | extern "C" | ||
12080 | #endif | ||
12081 | char el_init (); | ||
12082 | int | ||
12083 | main () | ||
12084 | { | ||
12085 | return el_init (); | ||
12086 | ; | ||
12087 | return 0; | ||
12088 | } | ||
12089 | _ACEOF | ||
12090 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12091 | if { (ac_try="$ac_link" | ||
12092 | case "(($ac_try" in | ||
12093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12094 | *) ac_try_echo=$ac_try;; | ||
12095 | esac | ||
12096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12097 | (eval "$ac_link") 2>conftest.er1 | ||
12098 | ac_status=$? | ||
12099 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12100 | rm -f conftest.er1 | ||
12101 | cat conftest.err >&5 | ||
12102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12103 | (exit $ac_status); } && { | ||
12104 | test -z "$ac_c_werror_flag" || | ||
12105 | test ! -s conftest.err | ||
12106 | } && test -s conftest$ac_exeext && | ||
12107 | $as_test_x conftest$ac_exeext; then | ||
12108 | ac_cv_lib_edit_el_init=yes | ||
12109 | else | ||
12110 | echo "$as_me: failed program was:" >&5 | ||
12111 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12112 | |||
12113 | ac_cv_lib_edit_el_init=no | ||
12114 | fi | ||
12115 | |||
12116 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12117 | conftest$ac_exeext conftest.$ac_ext | ||
12118 | LIBS=$ac_check_lib_save_LIBS | ||
12119 | fi | ||
12120 | { echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5 | ||
12121 | echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; } | ||
12122 | if test $ac_cv_lib_edit_el_init = yes; then | ||
12123 | |||
12124 | cat >>confdefs.h <<\_ACEOF | ||
12125 | #define USE_LIBEDIT 1 | ||
12126 | _ACEOF | ||
12127 | |||
12128 | LIBEDIT="-ledit -lcurses" | ||
12129 | LIBEDIT_MSG="yes" | ||
12130 | |||
12131 | |||
12132 | else | ||
12133 | { { echo "$as_me:$LINENO: error: libedit not found" >&5 | ||
12134 | echo "$as_me: error: libedit not found" >&2;} | ||
12135 | { (exit 1); exit 1; }; } | ||
12136 | fi | ||
12137 | |||
12138 | { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5 | ||
12139 | echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; } | ||
12140 | cat >conftest.$ac_ext <<_ACEOF | ||
12141 | /* confdefs.h. */ | ||
12142 | _ACEOF | ||
12143 | cat confdefs.h >>conftest.$ac_ext | ||
12144 | cat >>conftest.$ac_ext <<_ACEOF | ||
12145 | /* end confdefs.h. */ | ||
12146 | |||
12147 | #include <histedit.h> | ||
12148 | int main(void) | ||
12149 | { | ||
12150 | int i = H_SETSIZE; | ||
12151 | el_init("", NULL, NULL, NULL); | ||
12152 | exit(0); | ||
12153 | } | ||
12154 | |||
12155 | _ACEOF | ||
12156 | rm -f conftest.$ac_objext | ||
12157 | if { (ac_try="$ac_compile" | ||
12158 | case "(($ac_try" in | ||
12159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12160 | *) ac_try_echo=$ac_try;; | ||
12161 | esac | ||
12162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12163 | (eval "$ac_compile") 2>conftest.er1 | ||
12164 | ac_status=$? | ||
12165 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12166 | rm -f conftest.er1 | ||
12167 | cat conftest.err >&5 | ||
12168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12169 | (exit $ac_status); } && { | ||
12170 | test -z "$ac_c_werror_flag" || | ||
12171 | test ! -s conftest.err | ||
12172 | } && test -s conftest.$ac_objext; then | ||
12173 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12174 | echo "${ECHO_T}yes" >&6; } | ||
12175 | else | ||
12176 | echo "$as_me: failed program was:" >&5 | ||
12177 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12178 | |||
12179 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12180 | echo "${ECHO_T}no" >&6; } | ||
12181 | { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5 | ||
12182 | echo "$as_me: error: libedit version is not compatible" >&2;} | ||
12183 | { (exit 1); exit 1; }; } | ||
12184 | |||
12185 | fi | ||
12186 | |||
12187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12188 | fi | ||
12189 | |||
12190 | fi | ||
12191 | |||
12192 | |||
12193 | AUDIT_MODULE=none | ||
12194 | |||
12195 | # Check whether --with-audit was given. | ||
12196 | if test "${with_audit+set}" = set; then | ||
12197 | withval=$with_audit; | ||
12198 | { echo "$as_me:$LINENO: checking for supported audit module" >&5 | ||
12199 | echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; } | ||
12200 | case "$withval" in | ||
12201 | bsm) | ||
12202 | { echo "$as_me:$LINENO: result: bsm" >&5 | ||
12203 | echo "${ECHO_T}bsm" >&6; } | ||
12204 | AUDIT_MODULE=bsm | ||
12205 | |||
12206 | for ac_header in bsm/audit.h | ||
12207 | do | ||
12208 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
12209 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
12210 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
12211 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12213 | else | ||
12214 | cat >conftest.$ac_ext <<_ACEOF | ||
12215 | /* confdefs.h. */ | ||
12216 | _ACEOF | ||
12217 | cat confdefs.h >>conftest.$ac_ext | ||
12218 | cat >>conftest.$ac_ext <<_ACEOF | ||
12219 | /* end confdefs.h. */ | ||
12220 | |||
12221 | #ifdef HAVE_TIME_H | ||
12222 | # include <time.h> | ||
12223 | #endif | ||
12224 | |||
12225 | |||
12226 | |||
12227 | #include <$ac_header> | ||
12228 | _ACEOF | ||
12229 | rm -f conftest.$ac_objext | ||
12230 | if { (ac_try="$ac_compile" | ||
12231 | case "(($ac_try" in | ||
12232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12233 | *) ac_try_echo=$ac_try;; | ||
12234 | esac | ||
12235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12236 | (eval "$ac_compile") 2>conftest.er1 | ||
12237 | ac_status=$? | ||
12238 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12239 | rm -f conftest.er1 | ||
12240 | cat conftest.err >&5 | ||
12241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12242 | (exit $ac_status); } && { | ||
12243 | test -z "$ac_c_werror_flag" || | ||
12244 | test ! -s conftest.err | ||
12245 | } && test -s conftest.$ac_objext; then | ||
12246 | eval "$as_ac_Header=yes" | ||
12247 | else | ||
12248 | echo "$as_me: failed program was:" >&5 | ||
12249 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12250 | |||
12251 | eval "$as_ac_Header=no" | ||
12252 | fi | ||
12253 | |||
12254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12255 | fi | ||
12256 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
12257 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12258 | echo "${ECHO_T}$ac_res" >&6; } | ||
12259 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
12260 | cat >>confdefs.h <<_ACEOF | ||
12261 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
12262 | _ACEOF | ||
12263 | |||
12264 | else | ||
12265 | { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5 | ||
12266 | echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;} | ||
12267 | { (exit 1); exit 1; }; } | ||
12268 | fi | ||
12269 | |||
12270 | done | ||
12271 | |||
12272 | |||
12273 | { echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5 | ||
12274 | echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; } | ||
12275 | if test "${ac_cv_lib_bsm_getaudit+set}" = set; then | ||
12276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12277 | else | ||
12278 | ac_check_lib_save_LIBS=$LIBS | ||
12279 | LIBS="-lbsm $LIBS" | ||
12280 | cat >conftest.$ac_ext <<_ACEOF | ||
12281 | /* confdefs.h. */ | ||
12282 | _ACEOF | ||
12283 | cat confdefs.h >>conftest.$ac_ext | ||
12284 | cat >>conftest.$ac_ext <<_ACEOF | ||
12285 | /* end confdefs.h. */ | ||
12286 | |||
12287 | /* Override any GCC internal prototype to avoid an error. | ||
12288 | Use char because int might match the return type of a GCC | ||
12289 | builtin and then its argument prototype would still apply. */ | ||
12290 | #ifdef __cplusplus | ||
12291 | extern "C" | ||
12292 | #endif | ||
12293 | char getaudit (); | ||
12294 | int | ||
12295 | main () | ||
12296 | { | ||
12297 | return getaudit (); | ||
12298 | ; | ||
12299 | return 0; | ||
12300 | } | ||
12301 | _ACEOF | ||
12302 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12303 | if { (ac_try="$ac_link" | ||
12304 | case "(($ac_try" in | ||
12305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12306 | *) ac_try_echo=$ac_try;; | ||
12307 | esac | ||
12308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12309 | (eval "$ac_link") 2>conftest.er1 | ||
12310 | ac_status=$? | ||
12311 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12312 | rm -f conftest.er1 | ||
12313 | cat conftest.err >&5 | ||
12314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12315 | (exit $ac_status); } && { | ||
12316 | test -z "$ac_c_werror_flag" || | ||
12317 | test ! -s conftest.err | ||
12318 | } && test -s conftest$ac_exeext && | ||
12319 | $as_test_x conftest$ac_exeext; then | ||
12320 | ac_cv_lib_bsm_getaudit=yes | ||
12321 | else | ||
12322 | echo "$as_me: failed program was:" >&5 | ||
12323 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12324 | |||
12325 | ac_cv_lib_bsm_getaudit=no | ||
12326 | fi | ||
12327 | |||
12328 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12329 | conftest$ac_exeext conftest.$ac_ext | ||
12330 | LIBS=$ac_check_lib_save_LIBS | ||
12331 | fi | ||
12332 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5 | ||
12333 | echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; } | ||
12334 | if test $ac_cv_lib_bsm_getaudit = yes; then | ||
12335 | cat >>confdefs.h <<_ACEOF | ||
12336 | #define HAVE_LIBBSM 1 | ||
12337 | _ACEOF | ||
12338 | |||
12339 | LIBS="-lbsm $LIBS" | ||
12340 | |||
12341 | else | ||
12342 | { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5 | ||
12343 | echo "$as_me: error: BSM enabled and required library not found" >&2;} | ||
12344 | { (exit 1); exit 1; }; } | ||
12345 | fi | ||
12346 | |||
12347 | |||
12348 | for ac_func in getaudit | ||
12349 | do | ||
12350 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12351 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12352 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
12353 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12355 | else | ||
12356 | cat >conftest.$ac_ext <<_ACEOF | ||
12357 | /* confdefs.h. */ | ||
12358 | _ACEOF | ||
12359 | cat confdefs.h >>conftest.$ac_ext | ||
12360 | cat >>conftest.$ac_ext <<_ACEOF | ||
12361 | /* end confdefs.h. */ | ||
12362 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12363 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12364 | #define $ac_func innocuous_$ac_func | ||
12365 | |||
12366 | /* System header to define __stub macros and hopefully few prototypes, | ||
12367 | which can conflict with char $ac_func (); below. | ||
12368 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12369 | <limits.h> exists even on freestanding compilers. */ | ||
12370 | |||
12371 | #ifdef __STDC__ | ||
12372 | # include <limits.h> | ||
12373 | #else | ||
12374 | # include <assert.h> | ||
12375 | #endif | ||
12376 | |||
12377 | #undef $ac_func | ||
12378 | |||
12379 | /* Override any GCC internal prototype to avoid an error. | ||
12380 | Use char because int might match the return type of a GCC | ||
12381 | builtin and then its argument prototype would still apply. */ | ||
12382 | #ifdef __cplusplus | ||
12383 | extern "C" | ||
12384 | #endif | ||
12385 | char $ac_func (); | ||
12386 | /* The GNU C library defines this for functions which it implements | ||
12387 | to always fail with ENOSYS. Some functions are actually named | ||
12388 | something starting with __ and the normal name is an alias. */ | ||
12389 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
12390 | choke me | ||
12391 | #endif | ||
12392 | |||
12393 | int | ||
12394 | main () | ||
12395 | { | ||
12396 | return $ac_func (); | ||
12397 | ; | ||
12398 | return 0; | ||
12399 | } | ||
12400 | _ACEOF | ||
12401 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12402 | if { (ac_try="$ac_link" | ||
12403 | case "(($ac_try" in | ||
12404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12405 | *) ac_try_echo=$ac_try;; | ||
12406 | esac | ||
12407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12408 | (eval "$ac_link") 2>conftest.er1 | ||
12409 | ac_status=$? | ||
12410 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12411 | rm -f conftest.er1 | ||
12412 | cat conftest.err >&5 | ||
12413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12414 | (exit $ac_status); } && { | ||
12415 | test -z "$ac_c_werror_flag" || | ||
12416 | test ! -s conftest.err | ||
12417 | } && test -s conftest$ac_exeext && | ||
12418 | $as_test_x conftest$ac_exeext; then | ||
12419 | eval "$as_ac_var=yes" | ||
12420 | else | ||
12421 | echo "$as_me: failed program was:" >&5 | ||
12422 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12423 | |||
12424 | eval "$as_ac_var=no" | ||
12425 | fi | ||
12426 | |||
12427 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12428 | conftest$ac_exeext conftest.$ac_ext | ||
12429 | fi | ||
12430 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
12431 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12432 | echo "${ECHO_T}$ac_res" >&6; } | ||
12433 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12434 | cat >>confdefs.h <<_ACEOF | ||
12435 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12436 | _ACEOF | ||
12437 | |||
12438 | else | ||
12439 | { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5 | ||
12440 | echo "$as_me: error: BSM enabled and required function not found" >&2;} | ||
12441 | { (exit 1); exit 1; }; } | ||
12442 | fi | ||
12443 | done | ||
12444 | |||
12445 | # These are optional | ||
12446 | |||
12447 | |||
12448 | for ac_func in getaudit_addr aug_get_machine | ||
12449 | do | ||
12450 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12451 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12452 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
12453 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12455 | else | ||
12456 | cat >conftest.$ac_ext <<_ACEOF | ||
12457 | /* confdefs.h. */ | ||
12458 | _ACEOF | ||
12459 | cat confdefs.h >>conftest.$ac_ext | ||
12460 | cat >>conftest.$ac_ext <<_ACEOF | ||
12461 | /* end confdefs.h. */ | ||
12462 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12463 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12464 | #define $ac_func innocuous_$ac_func | ||
12465 | |||
12466 | /* System header to define __stub macros and hopefully few prototypes, | ||
12467 | which can conflict with char $ac_func (); below. | ||
12468 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12469 | <limits.h> exists even on freestanding compilers. */ | ||
12470 | |||
12471 | #ifdef __STDC__ | ||
12472 | # include <limits.h> | ||
12473 | #else | ||
12474 | # include <assert.h> | ||
12475 | #endif | ||
12476 | |||
12477 | #undef $ac_func | ||
12478 | |||
12479 | /* Override any GCC internal prototype to avoid an error. | ||
12480 | Use char because int might match the return type of a GCC | ||
12481 | builtin and then its argument prototype would still apply. */ | ||
12482 | #ifdef __cplusplus | ||
12483 | extern "C" | ||
12484 | #endif | ||
12485 | char $ac_func (); | ||
12486 | /* The GNU C library defines this for functions which it implements | ||
12487 | to always fail with ENOSYS. Some functions are actually named | ||
12488 | something starting with __ and the normal name is an alias. */ | ||
12489 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
12490 | choke me | ||
12491 | #endif | ||
12492 | |||
12493 | int | ||
12494 | main () | ||
12495 | { | ||
12496 | return $ac_func (); | ||
12497 | ; | ||
12498 | return 0; | ||
12499 | } | ||
12500 | _ACEOF | ||
12501 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12502 | if { (ac_try="$ac_link" | ||
12503 | case "(($ac_try" in | ||
12504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12505 | *) ac_try_echo=$ac_try;; | ||
12506 | esac | ||
12507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12508 | (eval "$ac_link") 2>conftest.er1 | ||
12509 | ac_status=$? | ||
12510 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12511 | rm -f conftest.er1 | ||
12512 | cat conftest.err >&5 | ||
12513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12514 | (exit $ac_status); } && { | ||
12515 | test -z "$ac_c_werror_flag" || | ||
12516 | test ! -s conftest.err | ||
12517 | } && test -s conftest$ac_exeext && | ||
12518 | $as_test_x conftest$ac_exeext; then | ||
12519 | eval "$as_ac_var=yes" | ||
12520 | else | ||
12521 | echo "$as_me: failed program was:" >&5 | ||
12522 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12523 | |||
12524 | eval "$as_ac_var=no" | ||
12525 | fi | ||
12526 | |||
12527 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12528 | conftest$ac_exeext conftest.$ac_ext | ||
12529 | fi | ||
12530 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
12531 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12532 | echo "${ECHO_T}$ac_res" >&6; } | ||
12533 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12534 | cat >>confdefs.h <<_ACEOF | ||
12535 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12536 | _ACEOF | ||
12537 | |||
12538 | fi | ||
12539 | done | ||
12540 | |||
12541 | |||
12542 | cat >>confdefs.h <<\_ACEOF | ||
12543 | #define USE_BSM_AUDIT 1 | ||
12544 | _ACEOF | ||
12545 | |||
12546 | ;; | ||
12547 | debug) | ||
12548 | AUDIT_MODULE=debug | ||
12549 | { echo "$as_me:$LINENO: result: debug" >&5 | ||
12550 | echo "${ECHO_T}debug" >&6; } | ||
12551 | |||
12552 | cat >>confdefs.h <<\_ACEOF | ||
12553 | #define SSH_AUDIT_EVENTS 1 | ||
12554 | _ACEOF | ||
12555 | |||
12556 | ;; | ||
12557 | no) | ||
12558 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12559 | echo "${ECHO_T}no" >&6; } | ||
12560 | ;; | ||
12561 | *) | ||
12562 | { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5 | ||
12563 | echo "$as_me: error: Unknown audit module $withval" >&2;} | ||
12564 | { (exit 1); exit 1; }; } | ||
12565 | ;; | ||
12566 | esac | ||
12567 | |||
12568 | fi | ||
12569 | |||
12570 | |||
12571 | |||
12572 | |||
12573 | |||
12574 | |||
12575 | |||
12576 | |||
12577 | |||
12578 | |||
12579 | |||
12580 | |||
12581 | |||
12582 | |||
12583 | |||
12584 | |||
12585 | |||
12586 | |||
12587 | |||
12588 | |||
12589 | |||
12590 | |||
12591 | |||
12592 | |||
12593 | |||
12594 | |||
12595 | |||
12596 | |||
12597 | |||
12598 | |||
12599 | |||
12600 | |||
12601 | |||
12602 | |||
12603 | |||
12604 | |||
12605 | |||
12606 | |||
12607 | |||
12608 | |||
12609 | |||
12610 | |||
12611 | |||
12612 | |||
12613 | |||
12614 | |||
12615 | |||
12616 | |||
12617 | |||
12618 | |||
12619 | |||
12620 | |||
12621 | |||
12622 | |||
12623 | |||
12624 | |||
12625 | |||
12626 | |||
12627 | |||
12628 | |||
12629 | |||
12630 | |||
12631 | |||
12632 | |||
12633 | |||
12634 | |||
12635 | |||
12636 | |||
12637 | |||
12638 | |||
12639 | |||
12640 | |||
12641 | |||
12642 | |||
12643 | |||
12644 | |||
12645 | |||
12646 | |||
12647 | |||
12648 | |||
12649 | |||
12650 | |||
12651 | |||
12652 | |||
12653 | |||
12654 | |||
12655 | |||
12656 | |||
12657 | |||
12658 | |||
12659 | |||
12660 | for ac_func in \ | ||
12661 | arc4random \ | ||
12662 | arc4random_buf \ | ||
12663 | arc4random_uniform \ | ||
12664 | asprintf \ | ||
12665 | b64_ntop \ | ||
12666 | __b64_ntop \ | ||
12667 | b64_pton \ | ||
12668 | __b64_pton \ | ||
12669 | bcopy \ | ||
12670 | bindresvport_sa \ | ||
12671 | clock \ | ||
12672 | closefrom \ | ||
12673 | dirfd \ | ||
12674 | fchmod \ | ||
12675 | fchown \ | ||
12676 | freeaddrinfo \ | ||
12677 | fstatvfs \ | ||
12678 | futimes \ | ||
12679 | getaddrinfo \ | ||
12680 | getcwd \ | ||
12681 | getgrouplist \ | ||
12682 | getnameinfo \ | ||
12683 | getopt \ | ||
12684 | getpeereid \ | ||
12685 | getpeerucred \ | ||
12686 | _getpty \ | ||
12687 | getrlimit \ | ||
12688 | getttyent \ | ||
12689 | glob \ | ||
12690 | inet_aton \ | ||
12691 | inet_ntoa \ | ||
12692 | inet_ntop \ | ||
12693 | innetgr \ | ||
12694 | login_getcapbool \ | ||
12695 | md5_crypt \ | ||
12696 | memmove \ | ||
12697 | mkdtemp \ | ||
12698 | mmap \ | ||
12699 | ngetaddrinfo \ | ||
12700 | nsleep \ | ||
12701 | ogetaddrinfo \ | ||
12702 | openlog_r \ | ||
12703 | openpty \ | ||
12704 | poll \ | ||
12705 | prctl \ | ||
12706 | pstat \ | ||
12707 | readpassphrase \ | ||
12708 | realpath \ | ||
12709 | recvmsg \ | ||
12710 | rresvport_af \ | ||
12711 | sendmsg \ | ||
12712 | setdtablesize \ | ||
12713 | setegid \ | ||
12714 | setenv \ | ||
12715 | seteuid \ | ||
12716 | setgroups \ | ||
12717 | setlogin \ | ||
12718 | setpcred \ | ||
12719 | setproctitle \ | ||
12720 | setregid \ | ||
12721 | setreuid \ | ||
12722 | setrlimit \ | ||
12723 | setsid \ | ||
12724 | setvbuf \ | ||
12725 | sigaction \ | ||
12726 | sigvec \ | ||
12727 | snprintf \ | ||
12728 | socketpair \ | ||
12729 | statfs \ | ||
12730 | statvfs \ | ||
12731 | strdup \ | ||
12732 | strerror \ | ||
12733 | strlcat \ | ||
12734 | strlcpy \ | ||
12735 | strmode \ | ||
12736 | strnvis \ | ||
12737 | strtonum \ | ||
12738 | strtoll \ | ||
12739 | strtoul \ | ||
12740 | swap32 \ | ||
12741 | sysconf \ | ||
12742 | tcgetpgrp \ | ||
12743 | truncate \ | ||
12744 | unsetenv \ | ||
12745 | updwtmpx \ | ||
12746 | vasprintf \ | ||
12747 | vhangup \ | ||
12748 | vsnprintf \ | ||
12749 | waitpid \ | ||
12750 | |||
12751 | do | ||
12752 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12753 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12754 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
12755 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12757 | else | ||
12758 | cat >conftest.$ac_ext <<_ACEOF | ||
12759 | /* confdefs.h. */ | ||
12760 | _ACEOF | ||
12761 | cat confdefs.h >>conftest.$ac_ext | ||
12762 | cat >>conftest.$ac_ext <<_ACEOF | ||
12763 | /* end confdefs.h. */ | ||
12764 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12765 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12766 | #define $ac_func innocuous_$ac_func | ||
12767 | |||
12768 | /* System header to define __stub macros and hopefully few prototypes, | ||
12769 | which can conflict with char $ac_func (); below. | ||
12770 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12771 | <limits.h> exists even on freestanding compilers. */ | ||
12772 | |||
12773 | #ifdef __STDC__ | ||
12774 | # include <limits.h> | ||
12775 | #else | ||
12776 | # include <assert.h> | ||
12777 | #endif | ||
12778 | |||
12779 | #undef $ac_func | ||
12780 | |||
12781 | /* Override any GCC internal prototype to avoid an error. | ||
12782 | Use char because int might match the return type of a GCC | ||
12783 | builtin and then its argument prototype would still apply. */ | ||
12784 | #ifdef __cplusplus | ||
12785 | extern "C" | ||
12786 | #endif | ||
12787 | char $ac_func (); | ||
12788 | /* The GNU C library defines this for functions which it implements | ||
12789 | to always fail with ENOSYS. Some functions are actually named | ||
12790 | something starting with __ and the normal name is an alias. */ | ||
12791 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
12792 | choke me | ||
12793 | #endif | ||
12794 | |||
12795 | int | ||
12796 | main () | ||
12797 | { | ||
12798 | return $ac_func (); | ||
12799 | ; | ||
12800 | return 0; | ||
12801 | } | ||
12802 | _ACEOF | ||
12803 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12804 | if { (ac_try="$ac_link" | ||
12805 | case "(($ac_try" in | ||
12806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12807 | *) ac_try_echo=$ac_try;; | ||
12808 | esac | ||
12809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12810 | (eval "$ac_link") 2>conftest.er1 | ||
12811 | ac_status=$? | ||
12812 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12813 | rm -f conftest.er1 | ||
12814 | cat conftest.err >&5 | ||
12815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12816 | (exit $ac_status); } && { | ||
12817 | test -z "$ac_c_werror_flag" || | ||
12818 | test ! -s conftest.err | ||
12819 | } && test -s conftest$ac_exeext && | ||
12820 | $as_test_x conftest$ac_exeext; then | ||
12821 | eval "$as_ac_var=yes" | ||
12822 | else | ||
12823 | echo "$as_me: failed program was:" >&5 | ||
12824 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12825 | |||
12826 | eval "$as_ac_var=no" | ||
12827 | fi | ||
12828 | |||
12829 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12830 | conftest$ac_exeext conftest.$ac_ext | ||
12831 | fi | ||
12832 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
12833 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12834 | echo "${ECHO_T}$ac_res" >&6; } | ||
12835 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12836 | cat >>confdefs.h <<_ACEOF | ||
12837 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12838 | _ACEOF | ||
12839 | |||
12840 | fi | ||
12841 | done | ||
12842 | |||
12843 | |||
12844 | # IRIX has a const char return value for gai_strerror() | ||
12845 | |||
12846 | for ac_func in gai_strerror | ||
12847 | do | ||
12848 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12849 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12850 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
12851 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12853 | else | ||
12854 | cat >conftest.$ac_ext <<_ACEOF | ||
12855 | /* confdefs.h. */ | ||
12856 | _ACEOF | ||
12857 | cat confdefs.h >>conftest.$ac_ext | ||
12858 | cat >>conftest.$ac_ext <<_ACEOF | ||
12859 | /* end confdefs.h. */ | ||
12860 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12861 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12862 | #define $ac_func innocuous_$ac_func | ||
12863 | |||
12864 | /* System header to define __stub macros and hopefully few prototypes, | ||
12865 | which can conflict with char $ac_func (); below. | ||
12866 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12867 | <limits.h> exists even on freestanding compilers. */ | ||
12868 | |||
12869 | #ifdef __STDC__ | ||
12870 | # include <limits.h> | ||
12871 | #else | ||
12872 | # include <assert.h> | ||
12873 | #endif | ||
12874 | |||
12875 | #undef $ac_func | ||
12876 | |||
12877 | /* Override any GCC internal prototype to avoid an error. | ||
12878 | Use char because int might match the return type of a GCC | ||
12879 | builtin and then its argument prototype would still apply. */ | ||
12880 | #ifdef __cplusplus | ||
12881 | extern "C" | ||
12882 | #endif | ||
12883 | char $ac_func (); | ||
12884 | /* The GNU C library defines this for functions which it implements | ||
12885 | to always fail with ENOSYS. Some functions are actually named | ||
12886 | something starting with __ and the normal name is an alias. */ | ||
12887 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
12888 | choke me | ||
12889 | #endif | ||
12890 | |||
12891 | int | ||
12892 | main () | ||
12893 | { | ||
12894 | return $ac_func (); | ||
12895 | ; | ||
12896 | return 0; | ||
12897 | } | ||
12898 | _ACEOF | ||
12899 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12900 | if { (ac_try="$ac_link" | ||
12901 | case "(($ac_try" in | ||
12902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12903 | *) ac_try_echo=$ac_try;; | ||
12904 | esac | ||
12905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12906 | (eval "$ac_link") 2>conftest.er1 | ||
12907 | ac_status=$? | ||
12908 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12909 | rm -f conftest.er1 | ||
12910 | cat conftest.err >&5 | ||
12911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12912 | (exit $ac_status); } && { | ||
12913 | test -z "$ac_c_werror_flag" || | ||
12914 | test ! -s conftest.err | ||
12915 | } && test -s conftest$ac_exeext && | ||
12916 | $as_test_x conftest$ac_exeext; then | ||
12917 | eval "$as_ac_var=yes" | ||
12918 | else | ||
12919 | echo "$as_me: failed program was:" >&5 | ||
12920 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12921 | |||
12922 | eval "$as_ac_var=no" | ||
12923 | fi | ||
12924 | |||
12925 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12926 | conftest$ac_exeext conftest.$ac_ext | ||
12927 | fi | ||
12928 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
12929 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12930 | echo "${ECHO_T}$ac_res" >&6; } | ||
12931 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12932 | cat >>confdefs.h <<_ACEOF | ||
12933 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12934 | _ACEOF | ||
12935 | |||
12936 | cat >>confdefs.h <<\_ACEOF | ||
12937 | #define HAVE_GAI_STRERROR 1 | ||
12938 | _ACEOF | ||
12939 | |||
12940 | cat >conftest.$ac_ext <<_ACEOF | ||
12941 | /* confdefs.h. */ | ||
12942 | _ACEOF | ||
12943 | cat confdefs.h >>conftest.$ac_ext | ||
12944 | cat >>conftest.$ac_ext <<_ACEOF | ||
12945 | /* end confdefs.h. */ | ||
12946 | |||
12947 | #include <sys/types.h> | ||
12948 | #include <sys/socket.h> | ||
12949 | #include <netdb.h> | ||
12950 | |||
12951 | const char *gai_strerror(int); | ||
12952 | int | ||
12953 | main () | ||
12954 | { | ||
12955 | |||
12956 | char *str; | ||
12957 | |||
12958 | str = gai_strerror(0); | ||
12959 | ; | ||
12960 | return 0; | ||
12961 | } | ||
12962 | _ACEOF | ||
12963 | rm -f conftest.$ac_objext | ||
12964 | if { (ac_try="$ac_compile" | ||
12965 | case "(($ac_try" in | ||
12966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12967 | *) ac_try_echo=$ac_try;; | ||
12968 | esac | ||
12969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12970 | (eval "$ac_compile") 2>conftest.er1 | ||
12971 | ac_status=$? | ||
12972 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12973 | rm -f conftest.er1 | ||
12974 | cat conftest.err >&5 | ||
12975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12976 | (exit $ac_status); } && { | ||
12977 | test -z "$ac_c_werror_flag" || | ||
12978 | test ! -s conftest.err | ||
12979 | } && test -s conftest.$ac_objext; then | ||
12980 | |||
12981 | |||
12982 | cat >>confdefs.h <<\_ACEOF | ||
12983 | #define HAVE_CONST_GAI_STRERROR_PROTO 1 | ||
12984 | _ACEOF | ||
12985 | |||
12986 | else | ||
12987 | echo "$as_me: failed program was:" >&5 | ||
12988 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12989 | |||
12990 | |||
12991 | fi | ||
12992 | |||
12993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12994 | fi | ||
12995 | done | ||
12996 | |||
12997 | |||
12998 | { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 | ||
12999 | echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; } | ||
13000 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
13001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13002 | else | ||
13003 | ac_func_search_save_LIBS=$LIBS | ||
13004 | cat >conftest.$ac_ext <<_ACEOF | ||
13005 | /* confdefs.h. */ | ||
13006 | _ACEOF | ||
13007 | cat confdefs.h >>conftest.$ac_ext | ||
13008 | cat >>conftest.$ac_ext <<_ACEOF | ||
13009 | /* end confdefs.h. */ | ||
13010 | |||
13011 | /* Override any GCC internal prototype to avoid an error. | ||
13012 | Use char because int might match the return type of a GCC | ||
13013 | builtin and then its argument prototype would still apply. */ | ||
13014 | #ifdef __cplusplus | ||
13015 | extern "C" | ||
13016 | #endif | ||
13017 | char nanosleep (); | ||
13018 | int | ||
13019 | main () | ||
13020 | { | ||
13021 | return nanosleep (); | ||
13022 | ; | ||
13023 | return 0; | ||
13024 | } | ||
13025 | _ACEOF | ||
13026 | for ac_lib in '' rt posix4; do | ||
13027 | if test -z "$ac_lib"; then | ||
13028 | ac_res="none required" | ||
13029 | else | ||
13030 | ac_res=-l$ac_lib | ||
13031 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
13032 | fi | ||
13033 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13034 | if { (ac_try="$ac_link" | ||
13035 | case "(($ac_try" in | ||
13036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13037 | *) ac_try_echo=$ac_try;; | ||
13038 | esac | ||
13039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13040 | (eval "$ac_link") 2>conftest.er1 | ||
13041 | ac_status=$? | ||
13042 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13043 | rm -f conftest.er1 | ||
13044 | cat conftest.err >&5 | ||
13045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13046 | (exit $ac_status); } && { | ||
13047 | test -z "$ac_c_werror_flag" || | ||
13048 | test ! -s conftest.err | ||
13049 | } && test -s conftest$ac_exeext && | ||
13050 | $as_test_x conftest$ac_exeext; then | ||
13051 | ac_cv_search_nanosleep=$ac_res | ||
13052 | else | ||
13053 | echo "$as_me: failed program was:" >&5 | ||
13054 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13055 | |||
13056 | |||
13057 | fi | ||
13058 | |||
13059 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13060 | conftest$ac_exeext | ||
13061 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
13062 | break | ||
13063 | fi | ||
13064 | done | ||
13065 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
13066 | : | ||
13067 | else | ||
13068 | ac_cv_search_nanosleep=no | ||
13069 | fi | ||
13070 | rm conftest.$ac_ext | ||
13071 | LIBS=$ac_func_search_save_LIBS | ||
13072 | fi | ||
13073 | { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5 | ||
13074 | echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; } | ||
13075 | ac_res=$ac_cv_search_nanosleep | ||
13076 | if test "$ac_res" != no; then | ||
13077 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
13078 | |||
13079 | cat >>confdefs.h <<\_ACEOF | ||
13080 | #define HAVE_NANOSLEEP 1 | ||
13081 | _ACEOF | ||
13082 | |||
13083 | fi | ||
13084 | |||
13085 | |||
13086 | { echo "$as_me:$LINENO: checking whether getrusage is declared" >&5 | ||
13087 | echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; } | ||
13088 | if test "${ac_cv_have_decl_getrusage+set}" = set; then | ||
13089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13090 | else | ||
13091 | cat >conftest.$ac_ext <<_ACEOF | ||
13092 | /* confdefs.h. */ | ||
13093 | _ACEOF | ||
13094 | cat confdefs.h >>conftest.$ac_ext | ||
13095 | cat >>conftest.$ac_ext <<_ACEOF | ||
13096 | /* end confdefs.h. */ | ||
13097 | $ac_includes_default | ||
13098 | int | ||
13099 | main () | ||
13100 | { | ||
13101 | #ifndef getrusage | ||
13102 | (void) getrusage; | ||
13103 | #endif | ||
13104 | |||
13105 | ; | ||
13106 | return 0; | ||
13107 | } | ||
13108 | _ACEOF | ||
13109 | rm -f conftest.$ac_objext | ||
13110 | if { (ac_try="$ac_compile" | ||
13111 | case "(($ac_try" in | ||
13112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13113 | *) ac_try_echo=$ac_try;; | ||
13114 | esac | ||
13115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13116 | (eval "$ac_compile") 2>conftest.er1 | ||
13117 | ac_status=$? | ||
13118 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13119 | rm -f conftest.er1 | ||
13120 | cat conftest.err >&5 | ||
13121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13122 | (exit $ac_status); } && { | ||
13123 | test -z "$ac_c_werror_flag" || | ||
13124 | test ! -s conftest.err | ||
13125 | } && test -s conftest.$ac_objext; then | ||
13126 | ac_cv_have_decl_getrusage=yes | ||
13127 | else | ||
13128 | echo "$as_me: failed program was:" >&5 | ||
13129 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13130 | |||
13131 | ac_cv_have_decl_getrusage=no | ||
13132 | fi | ||
13133 | |||
13134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13135 | fi | ||
13136 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5 | ||
13137 | echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; } | ||
13138 | if test $ac_cv_have_decl_getrusage = yes; then | ||
13139 | |||
13140 | for ac_func in getrusage | ||
13141 | do | ||
13142 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13143 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13144 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13145 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13147 | else | ||
13148 | cat >conftest.$ac_ext <<_ACEOF | ||
13149 | /* confdefs.h. */ | ||
13150 | _ACEOF | ||
13151 | cat confdefs.h >>conftest.$ac_ext | ||
13152 | cat >>conftest.$ac_ext <<_ACEOF | ||
13153 | /* end confdefs.h. */ | ||
13154 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13155 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13156 | #define $ac_func innocuous_$ac_func | ||
13157 | |||
13158 | /* System header to define __stub macros and hopefully few prototypes, | ||
13159 | which can conflict with char $ac_func (); below. | ||
13160 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13161 | <limits.h> exists even on freestanding compilers. */ | ||
13162 | |||
13163 | #ifdef __STDC__ | ||
13164 | # include <limits.h> | ||
13165 | #else | ||
13166 | # include <assert.h> | ||
13167 | #endif | ||
13168 | |||
13169 | #undef $ac_func | ||
13170 | |||
13171 | /* Override any GCC internal prototype to avoid an error. | ||
13172 | Use char because int might match the return type of a GCC | ||
13173 | builtin and then its argument prototype would still apply. */ | ||
13174 | #ifdef __cplusplus | ||
13175 | extern "C" | ||
13176 | #endif | ||
13177 | char $ac_func (); | ||
13178 | /* The GNU C library defines this for functions which it implements | ||
13179 | to always fail with ENOSYS. Some functions are actually named | ||
13180 | something starting with __ and the normal name is an alias. */ | ||
13181 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13182 | choke me | ||
13183 | #endif | ||
13184 | |||
13185 | int | ||
13186 | main () | ||
13187 | { | ||
13188 | return $ac_func (); | ||
13189 | ; | ||
13190 | return 0; | ||
13191 | } | ||
13192 | _ACEOF | ||
13193 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13194 | if { (ac_try="$ac_link" | ||
13195 | case "(($ac_try" in | ||
13196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13197 | *) ac_try_echo=$ac_try;; | ||
13198 | esac | ||
13199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13200 | (eval "$ac_link") 2>conftest.er1 | ||
13201 | ac_status=$? | ||
13202 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13203 | rm -f conftest.er1 | ||
13204 | cat conftest.err >&5 | ||
13205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13206 | (exit $ac_status); } && { | ||
13207 | test -z "$ac_c_werror_flag" || | ||
13208 | test ! -s conftest.err | ||
13209 | } && test -s conftest$ac_exeext && | ||
13210 | $as_test_x conftest$ac_exeext; then | ||
13211 | eval "$as_ac_var=yes" | ||
13212 | else | ||
13213 | echo "$as_me: failed program was:" >&5 | ||
13214 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13215 | |||
13216 | eval "$as_ac_var=no" | ||
13217 | fi | ||
13218 | |||
13219 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13220 | conftest$ac_exeext conftest.$ac_ext | ||
13221 | fi | ||
13222 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
13223 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13224 | echo "${ECHO_T}$ac_res" >&6; } | ||
13225 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13226 | cat >>confdefs.h <<_ACEOF | ||
13227 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13228 | _ACEOF | ||
13229 | |||
13230 | fi | ||
13231 | done | ||
13232 | |||
13233 | fi | ||
13234 | |||
13235 | { echo "$as_me:$LINENO: checking whether strsep is declared" >&5 | ||
13236 | echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; } | ||
13237 | if test "${ac_cv_have_decl_strsep+set}" = set; then | ||
13238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13239 | else | ||
13240 | cat >conftest.$ac_ext <<_ACEOF | ||
13241 | /* confdefs.h. */ | ||
13242 | _ACEOF | ||
13243 | cat confdefs.h >>conftest.$ac_ext | ||
13244 | cat >>conftest.$ac_ext <<_ACEOF | ||
13245 | /* end confdefs.h. */ | ||
13246 | |||
13247 | #ifdef HAVE_STRING_H | ||
13248 | # include <string.h> | ||
13249 | #endif | ||
13250 | |||
13251 | |||
13252 | int | ||
13253 | main () | ||
13254 | { | ||
13255 | #ifndef strsep | ||
13256 | (void) strsep; | ||
13257 | #endif | ||
13258 | |||
13259 | ; | ||
13260 | return 0; | ||
13261 | } | ||
13262 | _ACEOF | ||
13263 | rm -f conftest.$ac_objext | ||
13264 | if { (ac_try="$ac_compile" | ||
13265 | case "(($ac_try" in | ||
13266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13267 | *) ac_try_echo=$ac_try;; | ||
13268 | esac | ||
13269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13270 | (eval "$ac_compile") 2>conftest.er1 | ||
13271 | ac_status=$? | ||
13272 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13273 | rm -f conftest.er1 | ||
13274 | cat conftest.err >&5 | ||
13275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13276 | (exit $ac_status); } && { | ||
13277 | test -z "$ac_c_werror_flag" || | ||
13278 | test ! -s conftest.err | ||
13279 | } && test -s conftest.$ac_objext; then | ||
13280 | ac_cv_have_decl_strsep=yes | ||
13281 | else | ||
13282 | echo "$as_me: failed program was:" >&5 | ||
13283 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13284 | |||
13285 | ac_cv_have_decl_strsep=no | ||
13286 | fi | ||
13287 | |||
13288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13289 | fi | ||
13290 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5 | ||
13291 | echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; } | ||
13292 | if test $ac_cv_have_decl_strsep = yes; then | ||
13293 | |||
13294 | for ac_func in strsep | ||
13295 | do | ||
13296 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13297 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13298 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13299 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13301 | else | ||
13302 | cat >conftest.$ac_ext <<_ACEOF | ||
13303 | /* confdefs.h. */ | ||
13304 | _ACEOF | ||
13305 | cat confdefs.h >>conftest.$ac_ext | ||
13306 | cat >>conftest.$ac_ext <<_ACEOF | ||
13307 | /* end confdefs.h. */ | ||
13308 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13309 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13310 | #define $ac_func innocuous_$ac_func | ||
13311 | |||
13312 | /* System header to define __stub macros and hopefully few prototypes, | ||
13313 | which can conflict with char $ac_func (); below. | ||
13314 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13315 | <limits.h> exists even on freestanding compilers. */ | ||
13316 | |||
13317 | #ifdef __STDC__ | ||
13318 | # include <limits.h> | ||
13319 | #else | ||
13320 | # include <assert.h> | ||
13321 | #endif | ||
13322 | |||
13323 | #undef $ac_func | ||
13324 | |||
13325 | /* Override any GCC internal prototype to avoid an error. | ||
13326 | Use char because int might match the return type of a GCC | ||
13327 | builtin and then its argument prototype would still apply. */ | ||
13328 | #ifdef __cplusplus | ||
13329 | extern "C" | ||
13330 | #endif | ||
13331 | char $ac_func (); | ||
13332 | /* The GNU C library defines this for functions which it implements | ||
13333 | to always fail with ENOSYS. Some functions are actually named | ||
13334 | something starting with __ and the normal name is an alias. */ | ||
13335 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13336 | choke me | ||
13337 | #endif | ||
13338 | |||
13339 | int | ||
13340 | main () | ||
13341 | { | ||
13342 | return $ac_func (); | ||
13343 | ; | ||
13344 | return 0; | ||
13345 | } | ||
13346 | _ACEOF | ||
13347 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13348 | if { (ac_try="$ac_link" | ||
13349 | case "(($ac_try" in | ||
13350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13351 | *) ac_try_echo=$ac_try;; | ||
13352 | esac | ||
13353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13354 | (eval "$ac_link") 2>conftest.er1 | ||
13355 | ac_status=$? | ||
13356 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13357 | rm -f conftest.er1 | ||
13358 | cat conftest.err >&5 | ||
13359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13360 | (exit $ac_status); } && { | ||
13361 | test -z "$ac_c_werror_flag" || | ||
13362 | test ! -s conftest.err | ||
13363 | } && test -s conftest$ac_exeext && | ||
13364 | $as_test_x conftest$ac_exeext; then | ||
13365 | eval "$as_ac_var=yes" | ||
13366 | else | ||
13367 | echo "$as_me: failed program was:" >&5 | ||
13368 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13369 | |||
13370 | eval "$as_ac_var=no" | ||
13371 | fi | ||
13372 | |||
13373 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13374 | conftest$ac_exeext conftest.$ac_ext | ||
13375 | fi | ||
13376 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
13377 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13378 | echo "${ECHO_T}$ac_res" >&6; } | ||
13379 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13380 | cat >>confdefs.h <<_ACEOF | ||
13381 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13382 | _ACEOF | ||
13383 | |||
13384 | fi | ||
13385 | done | ||
13386 | |||
13387 | fi | ||
13388 | |||
13389 | |||
13390 | { echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5 | ||
13391 | echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; } | ||
13392 | if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then | ||
13393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13394 | else | ||
13395 | cat >conftest.$ac_ext <<_ACEOF | ||
13396 | /* confdefs.h. */ | ||
13397 | _ACEOF | ||
13398 | cat confdefs.h >>conftest.$ac_ext | ||
13399 | cat >>conftest.$ac_ext <<_ACEOF | ||
13400 | /* end confdefs.h. */ | ||
13401 | #include <termios.h> | ||
13402 | |||
13403 | |||
13404 | int | ||
13405 | main () | ||
13406 | { | ||
13407 | #ifndef tcsendbreak | ||
13408 | (void) tcsendbreak; | ||
13409 | #endif | ||
13410 | |||
13411 | ; | ||
13412 | return 0; | ||
13413 | } | ||
13414 | _ACEOF | ||
13415 | rm -f conftest.$ac_objext | ||
13416 | if { (ac_try="$ac_compile" | ||
13417 | case "(($ac_try" in | ||
13418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13419 | *) ac_try_echo=$ac_try;; | ||
13420 | esac | ||
13421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13422 | (eval "$ac_compile") 2>conftest.er1 | ||
13423 | ac_status=$? | ||
13424 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13425 | rm -f conftest.er1 | ||
13426 | cat conftest.err >&5 | ||
13427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13428 | (exit $ac_status); } && { | ||
13429 | test -z "$ac_c_werror_flag" || | ||
13430 | test ! -s conftest.err | ||
13431 | } && test -s conftest.$ac_objext; then | ||
13432 | ac_cv_have_decl_tcsendbreak=yes | ||
13433 | else | ||
13434 | echo "$as_me: failed program was:" >&5 | ||
13435 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13436 | |||
13437 | ac_cv_have_decl_tcsendbreak=no | ||
13438 | fi | ||
13439 | |||
13440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13441 | fi | ||
13442 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5 | ||
13443 | echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; } | ||
13444 | if test $ac_cv_have_decl_tcsendbreak = yes; then | ||
13445 | cat >>confdefs.h <<\_ACEOF | ||
13446 | #define HAVE_TCSENDBREAK 1 | ||
13447 | _ACEOF | ||
13448 | |||
13449 | else | ||
13450 | |||
13451 | for ac_func in tcsendbreak | ||
13452 | do | ||
13453 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13454 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13455 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13456 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13458 | else | ||
13459 | cat >conftest.$ac_ext <<_ACEOF | ||
13460 | /* confdefs.h. */ | ||
13461 | _ACEOF | ||
13462 | cat confdefs.h >>conftest.$ac_ext | ||
13463 | cat >>conftest.$ac_ext <<_ACEOF | ||
13464 | /* end confdefs.h. */ | ||
13465 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13466 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13467 | #define $ac_func innocuous_$ac_func | ||
13468 | |||
13469 | /* System header to define __stub macros and hopefully few prototypes, | ||
13470 | which can conflict with char $ac_func (); below. | ||
13471 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13472 | <limits.h> exists even on freestanding compilers. */ | ||
13473 | |||
13474 | #ifdef __STDC__ | ||
13475 | # include <limits.h> | ||
13476 | #else | ||
13477 | # include <assert.h> | ||
13478 | #endif | ||
13479 | |||
13480 | #undef $ac_func | ||
13481 | |||
13482 | /* Override any GCC internal prototype to avoid an error. | ||
13483 | Use char because int might match the return type of a GCC | ||
13484 | builtin and then its argument prototype would still apply. */ | ||
13485 | #ifdef __cplusplus | ||
13486 | extern "C" | ||
13487 | #endif | ||
13488 | char $ac_func (); | ||
13489 | /* The GNU C library defines this for functions which it implements | ||
13490 | to always fail with ENOSYS. Some functions are actually named | ||
13491 | something starting with __ and the normal name is an alias. */ | ||
13492 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13493 | choke me | ||
13494 | #endif | ||
13495 | |||
13496 | int | ||
13497 | main () | ||
13498 | { | ||
13499 | return $ac_func (); | ||
13500 | ; | ||
13501 | return 0; | ||
13502 | } | ||
13503 | _ACEOF | ||
13504 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13505 | if { (ac_try="$ac_link" | ||
13506 | case "(($ac_try" in | ||
13507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13508 | *) ac_try_echo=$ac_try;; | ||
13509 | esac | ||
13510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13511 | (eval "$ac_link") 2>conftest.er1 | ||
13512 | ac_status=$? | ||
13513 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13514 | rm -f conftest.er1 | ||
13515 | cat conftest.err >&5 | ||
13516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13517 | (exit $ac_status); } && { | ||
13518 | test -z "$ac_c_werror_flag" || | ||
13519 | test ! -s conftest.err | ||
13520 | } && test -s conftest$ac_exeext && | ||
13521 | $as_test_x conftest$ac_exeext; then | ||
13522 | eval "$as_ac_var=yes" | ||
13523 | else | ||
13524 | echo "$as_me: failed program was:" >&5 | ||
13525 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13526 | |||
13527 | eval "$as_ac_var=no" | ||
13528 | fi | ||
13529 | |||
13530 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13531 | conftest$ac_exeext conftest.$ac_ext | ||
13532 | fi | ||
13533 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
13534 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13535 | echo "${ECHO_T}$ac_res" >&6; } | ||
13536 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13537 | cat >>confdefs.h <<_ACEOF | ||
13538 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13539 | _ACEOF | ||
13540 | |||
13541 | fi | ||
13542 | done | ||
13543 | |||
13544 | fi | ||
13545 | |||
13546 | |||
13547 | { echo "$as_me:$LINENO: checking whether h_errno is declared" >&5 | ||
13548 | echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; } | ||
13549 | if test "${ac_cv_have_decl_h_errno+set}" = set; then | ||
13550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13551 | else | ||
13552 | cat >conftest.$ac_ext <<_ACEOF | ||
13553 | /* confdefs.h. */ | ||
13554 | _ACEOF | ||
13555 | cat confdefs.h >>conftest.$ac_ext | ||
13556 | cat >>conftest.$ac_ext <<_ACEOF | ||
13557 | /* end confdefs.h. */ | ||
13558 | #include <netdb.h> | ||
13559 | |||
13560 | int | ||
13561 | main () | ||
13562 | { | ||
13563 | #ifndef h_errno | ||
13564 | (void) h_errno; | ||
13565 | #endif | ||
13566 | |||
13567 | ; | ||
13568 | return 0; | ||
13569 | } | ||
13570 | _ACEOF | ||
13571 | rm -f conftest.$ac_objext | ||
13572 | if { (ac_try="$ac_compile" | ||
13573 | case "(($ac_try" in | ||
13574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13575 | *) ac_try_echo=$ac_try;; | ||
13576 | esac | ||
13577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13578 | (eval "$ac_compile") 2>conftest.er1 | ||
13579 | ac_status=$? | ||
13580 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13581 | rm -f conftest.er1 | ||
13582 | cat conftest.err >&5 | ||
13583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13584 | (exit $ac_status); } && { | ||
13585 | test -z "$ac_c_werror_flag" || | ||
13586 | test ! -s conftest.err | ||
13587 | } && test -s conftest.$ac_objext; then | ||
13588 | ac_cv_have_decl_h_errno=yes | ||
13589 | else | ||
13590 | echo "$as_me: failed program was:" >&5 | ||
13591 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13592 | |||
13593 | ac_cv_have_decl_h_errno=no | ||
13594 | fi | ||
13595 | |||
13596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13597 | fi | ||
13598 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5 | ||
13599 | echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; } | ||
13600 | if test $ac_cv_have_decl_h_errno = yes; then | ||
13601 | |||
13602 | cat >>confdefs.h <<_ACEOF | ||
13603 | #define HAVE_DECL_H_ERRNO 1 | ||
13604 | _ACEOF | ||
13605 | |||
13606 | |||
13607 | else | ||
13608 | cat >>confdefs.h <<_ACEOF | ||
13609 | #define HAVE_DECL_H_ERRNO 0 | ||
13610 | _ACEOF | ||
13611 | |||
13612 | |||
13613 | fi | ||
13614 | |||
13615 | |||
13616 | |||
13617 | { echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5 | ||
13618 | echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; } | ||
13619 | if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then | ||
13620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13621 | else | ||
13622 | cat >conftest.$ac_ext <<_ACEOF | ||
13623 | /* confdefs.h. */ | ||
13624 | _ACEOF | ||
13625 | cat confdefs.h >>conftest.$ac_ext | ||
13626 | cat >>conftest.$ac_ext <<_ACEOF | ||
13627 | /* end confdefs.h. */ | ||
13628 | |||
13629 | #include <sys/types.h> | ||
13630 | #include <sys/socket.h> | ||
13631 | |||
13632 | |||
13633 | int | ||
13634 | main () | ||
13635 | { | ||
13636 | #ifndef SHUT_RD | ||
13637 | (void) SHUT_RD; | ||
13638 | #endif | ||
13639 | |||
13640 | ; | ||
13641 | return 0; | ||
13642 | } | ||
13643 | _ACEOF | ||
13644 | rm -f conftest.$ac_objext | ||
13645 | if { (ac_try="$ac_compile" | ||
13646 | case "(($ac_try" in | ||
13647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13648 | *) ac_try_echo=$ac_try;; | ||
13649 | esac | ||
13650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13651 | (eval "$ac_compile") 2>conftest.er1 | ||
13652 | ac_status=$? | ||
13653 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13654 | rm -f conftest.er1 | ||
13655 | cat conftest.err >&5 | ||
13656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13657 | (exit $ac_status); } && { | ||
13658 | test -z "$ac_c_werror_flag" || | ||
13659 | test ! -s conftest.err | ||
13660 | } && test -s conftest.$ac_objext; then | ||
13661 | ac_cv_have_decl_SHUT_RD=yes | ||
13662 | else | ||
13663 | echo "$as_me: failed program was:" >&5 | ||
13664 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13665 | |||
13666 | ac_cv_have_decl_SHUT_RD=no | ||
13667 | fi | ||
13668 | |||
13669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13670 | fi | ||
13671 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5 | ||
13672 | echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; } | ||
13673 | if test $ac_cv_have_decl_SHUT_RD = yes; then | ||
13674 | |||
13675 | cat >>confdefs.h <<_ACEOF | ||
13676 | #define HAVE_DECL_SHUT_RD 1 | ||
13677 | _ACEOF | ||
13678 | |||
13679 | |||
13680 | else | ||
13681 | cat >>confdefs.h <<_ACEOF | ||
13682 | #define HAVE_DECL_SHUT_RD 0 | ||
13683 | _ACEOF | ||
13684 | |||
13685 | |||
13686 | fi | ||
13687 | |||
13688 | |||
13689 | |||
13690 | { echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5 | ||
13691 | echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; } | ||
13692 | if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then | ||
13693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13694 | else | ||
13695 | cat >conftest.$ac_ext <<_ACEOF | ||
13696 | /* confdefs.h. */ | ||
13697 | _ACEOF | ||
13698 | cat confdefs.h >>conftest.$ac_ext | ||
13699 | cat >>conftest.$ac_ext <<_ACEOF | ||
13700 | /* end confdefs.h. */ | ||
13701 | |||
13702 | #include <sys/types.h> | ||
13703 | #ifdef HAVE_SYS_STAT_H | ||
13704 | # include <sys/stat.h> | ||
13705 | #endif | ||
13706 | #ifdef HAVE_FCNTL_H | ||
13707 | # include <fcntl.h> | ||
13708 | #endif | ||
13709 | |||
13710 | |||
13711 | int | ||
13712 | main () | ||
13713 | { | ||
13714 | #ifndef O_NONBLOCK | ||
13715 | (void) O_NONBLOCK; | ||
13716 | #endif | ||
13717 | |||
13718 | ; | ||
13719 | return 0; | ||
13720 | } | ||
13721 | _ACEOF | ||
13722 | rm -f conftest.$ac_objext | ||
13723 | if { (ac_try="$ac_compile" | ||
13724 | case "(($ac_try" in | ||
13725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13726 | *) ac_try_echo=$ac_try;; | ||
13727 | esac | ||
13728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13729 | (eval "$ac_compile") 2>conftest.er1 | ||
13730 | ac_status=$? | ||
13731 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13732 | rm -f conftest.er1 | ||
13733 | cat conftest.err >&5 | ||
13734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13735 | (exit $ac_status); } && { | ||
13736 | test -z "$ac_c_werror_flag" || | ||
13737 | test ! -s conftest.err | ||
13738 | } && test -s conftest.$ac_objext; then | ||
13739 | ac_cv_have_decl_O_NONBLOCK=yes | ||
13740 | else | ||
13741 | echo "$as_me: failed program was:" >&5 | ||
13742 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13743 | |||
13744 | ac_cv_have_decl_O_NONBLOCK=no | ||
13745 | fi | ||
13746 | |||
13747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13748 | fi | ||
13749 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5 | ||
13750 | echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; } | ||
13751 | if test $ac_cv_have_decl_O_NONBLOCK = yes; then | ||
13752 | |||
13753 | cat >>confdefs.h <<_ACEOF | ||
13754 | #define HAVE_DECL_O_NONBLOCK 1 | ||
13755 | _ACEOF | ||
13756 | |||
13757 | |||
13758 | else | ||
13759 | cat >>confdefs.h <<_ACEOF | ||
13760 | #define HAVE_DECL_O_NONBLOCK 0 | ||
13761 | _ACEOF | ||
13762 | |||
13763 | |||
13764 | fi | ||
13765 | |||
13766 | |||
13767 | |||
13768 | { echo "$as_me:$LINENO: checking whether writev is declared" >&5 | ||
13769 | echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; } | ||
13770 | if test "${ac_cv_have_decl_writev+set}" = set; then | ||
13771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13772 | else | ||
13773 | cat >conftest.$ac_ext <<_ACEOF | ||
13774 | /* confdefs.h. */ | ||
13775 | _ACEOF | ||
13776 | cat confdefs.h >>conftest.$ac_ext | ||
13777 | cat >>conftest.$ac_ext <<_ACEOF | ||
13778 | /* end confdefs.h. */ | ||
13779 | |||
13780 | #include <sys/types.h> | ||
13781 | #include <sys/uio.h> | ||
13782 | #include <unistd.h> | ||
13783 | |||
13784 | |||
13785 | int | ||
13786 | main () | ||
13787 | { | ||
13788 | #ifndef writev | ||
13789 | (void) writev; | ||
13790 | #endif | ||
13791 | |||
13792 | ; | ||
13793 | return 0; | ||
13794 | } | ||
13795 | _ACEOF | ||
13796 | rm -f conftest.$ac_objext | ||
13797 | if { (ac_try="$ac_compile" | ||
13798 | case "(($ac_try" in | ||
13799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13800 | *) ac_try_echo=$ac_try;; | ||
13801 | esac | ||
13802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13803 | (eval "$ac_compile") 2>conftest.er1 | ||
13804 | ac_status=$? | ||
13805 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13806 | rm -f conftest.er1 | ||
13807 | cat conftest.err >&5 | ||
13808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13809 | (exit $ac_status); } && { | ||
13810 | test -z "$ac_c_werror_flag" || | ||
13811 | test ! -s conftest.err | ||
13812 | } && test -s conftest.$ac_objext; then | ||
13813 | ac_cv_have_decl_writev=yes | ||
13814 | else | ||
13815 | echo "$as_me: failed program was:" >&5 | ||
13816 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13817 | |||
13818 | ac_cv_have_decl_writev=no | ||
13819 | fi | ||
13820 | |||
13821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13822 | fi | ||
13823 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5 | ||
13824 | echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; } | ||
13825 | if test $ac_cv_have_decl_writev = yes; then | ||
13826 | |||
13827 | cat >>confdefs.h <<_ACEOF | ||
13828 | #define HAVE_DECL_WRITEV 1 | ||
13829 | _ACEOF | ||
13830 | |||
13831 | |||
13832 | else | ||
13833 | cat >>confdefs.h <<_ACEOF | ||
13834 | #define HAVE_DECL_WRITEV 0 | ||
13835 | _ACEOF | ||
13836 | |||
13837 | |||
13838 | fi | ||
13839 | |||
13840 | |||
13841 | |||
13842 | { echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5 | ||
13843 | echo $ECHO_N "checking whether MAXSYMLINKS is declared... $ECHO_C" >&6; } | ||
13844 | if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then | ||
13845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13846 | else | ||
13847 | cat >conftest.$ac_ext <<_ACEOF | ||
13848 | /* confdefs.h. */ | ||
13849 | _ACEOF | ||
13850 | cat confdefs.h >>conftest.$ac_ext | ||
13851 | cat >>conftest.$ac_ext <<_ACEOF | ||
13852 | /* end confdefs.h. */ | ||
13853 | |||
13854 | #include <sys/param.h> | ||
13855 | |||
13856 | |||
13857 | int | ||
13858 | main () | ||
13859 | { | ||
13860 | #ifndef MAXSYMLINKS | ||
13861 | (void) MAXSYMLINKS; | ||
13862 | #endif | ||
13863 | |||
13864 | ; | ||
13865 | return 0; | ||
13866 | } | ||
13867 | _ACEOF | ||
13868 | rm -f conftest.$ac_objext | ||
13869 | if { (ac_try="$ac_compile" | ||
13870 | case "(($ac_try" in | ||
13871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13872 | *) ac_try_echo=$ac_try;; | ||
13873 | esac | ||
13874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13875 | (eval "$ac_compile") 2>conftest.er1 | ||
13876 | ac_status=$? | ||
13877 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13878 | rm -f conftest.er1 | ||
13879 | cat conftest.err >&5 | ||
13880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13881 | (exit $ac_status); } && { | ||
13882 | test -z "$ac_c_werror_flag" || | ||
13883 | test ! -s conftest.err | ||
13884 | } && test -s conftest.$ac_objext; then | ||
13885 | ac_cv_have_decl_MAXSYMLINKS=yes | ||
13886 | else | ||
13887 | echo "$as_me: failed program was:" >&5 | ||
13888 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13889 | |||
13890 | ac_cv_have_decl_MAXSYMLINKS=no | ||
13891 | fi | ||
13892 | |||
13893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13894 | fi | ||
13895 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5 | ||
13896 | echo "${ECHO_T}$ac_cv_have_decl_MAXSYMLINKS" >&6; } | ||
13897 | if test $ac_cv_have_decl_MAXSYMLINKS = yes; then | ||
13898 | |||
13899 | cat >>confdefs.h <<_ACEOF | ||
13900 | #define HAVE_DECL_MAXSYMLINKS 1 | ||
13901 | _ACEOF | ||
13902 | |||
13903 | |||
13904 | else | ||
13905 | cat >>confdefs.h <<_ACEOF | ||
13906 | #define HAVE_DECL_MAXSYMLINKS 0 | ||
13907 | _ACEOF | ||
13908 | |||
13909 | |||
13910 | fi | ||
13911 | |||
13912 | |||
13913 | |||
13914 | { echo "$as_me:$LINENO: checking whether offsetof is declared" >&5 | ||
13915 | echo $ECHO_N "checking whether offsetof is declared... $ECHO_C" >&6; } | ||
13916 | if test "${ac_cv_have_decl_offsetof+set}" = set; then | ||
13917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13918 | else | ||
13919 | cat >conftest.$ac_ext <<_ACEOF | ||
13920 | /* confdefs.h. */ | ||
13921 | _ACEOF | ||
13922 | cat confdefs.h >>conftest.$ac_ext | ||
13923 | cat >>conftest.$ac_ext <<_ACEOF | ||
13924 | /* end confdefs.h. */ | ||
13925 | |||
13926 | #include <stddef.h> | ||
13927 | |||
13928 | |||
13929 | int | ||
13930 | main () | ||
13931 | { | ||
13932 | #ifndef offsetof | ||
13933 | (void) offsetof; | ||
13934 | #endif | ||
13935 | |||
13936 | ; | ||
13937 | return 0; | ||
13938 | } | ||
13939 | _ACEOF | ||
13940 | rm -f conftest.$ac_objext | ||
13941 | if { (ac_try="$ac_compile" | ||
13942 | case "(($ac_try" in | ||
13943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13944 | *) ac_try_echo=$ac_try;; | ||
13945 | esac | ||
13946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13947 | (eval "$ac_compile") 2>conftest.er1 | ||
13948 | ac_status=$? | ||
13949 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13950 | rm -f conftest.er1 | ||
13951 | cat conftest.err >&5 | ||
13952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13953 | (exit $ac_status); } && { | ||
13954 | test -z "$ac_c_werror_flag" || | ||
13955 | test ! -s conftest.err | ||
13956 | } && test -s conftest.$ac_objext; then | ||
13957 | ac_cv_have_decl_offsetof=yes | ||
13958 | else | ||
13959 | echo "$as_me: failed program was:" >&5 | ||
13960 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13961 | |||
13962 | ac_cv_have_decl_offsetof=no | ||
13963 | fi | ||
13964 | |||
13965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13966 | fi | ||
13967 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5 | ||
13968 | echo "${ECHO_T}$ac_cv_have_decl_offsetof" >&6; } | ||
13969 | if test $ac_cv_have_decl_offsetof = yes; then | ||
13970 | |||
13971 | cat >>confdefs.h <<_ACEOF | ||
13972 | #define HAVE_DECL_OFFSETOF 1 | ||
13973 | _ACEOF | ||
13974 | |||
13975 | |||
13976 | else | ||
13977 | cat >>confdefs.h <<_ACEOF | ||
13978 | #define HAVE_DECL_OFFSETOF 0 | ||
13979 | _ACEOF | ||
13980 | |||
13981 | |||
13982 | fi | ||
13983 | |||
13984 | |||
13985 | |||
13986 | |||
13987 | for ac_func in setresuid | ||
13988 | do | ||
13989 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13990 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13991 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13992 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13994 | else | ||
13995 | cat >conftest.$ac_ext <<_ACEOF | ||
13996 | /* confdefs.h. */ | ||
13997 | _ACEOF | ||
13998 | cat confdefs.h >>conftest.$ac_ext | ||
13999 | cat >>conftest.$ac_ext <<_ACEOF | ||
14000 | /* end confdefs.h. */ | ||
14001 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14002 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14003 | #define $ac_func innocuous_$ac_func | ||
14004 | |||
14005 | /* System header to define __stub macros and hopefully few prototypes, | ||
14006 | which can conflict with char $ac_func (); below. | ||
14007 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14008 | <limits.h> exists even on freestanding compilers. */ | ||
14009 | |||
14010 | #ifdef __STDC__ | ||
14011 | # include <limits.h> | ||
14012 | #else | ||
14013 | # include <assert.h> | ||
14014 | #endif | ||
14015 | |||
14016 | #undef $ac_func | ||
14017 | |||
14018 | /* Override any GCC internal prototype to avoid an error. | ||
14019 | Use char because int might match the return type of a GCC | ||
14020 | builtin and then its argument prototype would still apply. */ | ||
14021 | #ifdef __cplusplus | ||
14022 | extern "C" | ||
14023 | #endif | ||
14024 | char $ac_func (); | ||
14025 | /* The GNU C library defines this for functions which it implements | ||
14026 | to always fail with ENOSYS. Some functions are actually named | ||
14027 | something starting with __ and the normal name is an alias. */ | ||
14028 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14029 | choke me | ||
14030 | #endif | ||
14031 | |||
14032 | int | ||
14033 | main () | ||
14034 | { | ||
14035 | return $ac_func (); | ||
14036 | ; | ||
14037 | return 0; | ||
14038 | } | ||
14039 | _ACEOF | ||
14040 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14041 | if { (ac_try="$ac_link" | ||
14042 | case "(($ac_try" in | ||
14043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14044 | *) ac_try_echo=$ac_try;; | ||
14045 | esac | ||
14046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14047 | (eval "$ac_link") 2>conftest.er1 | ||
14048 | ac_status=$? | ||
14049 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14050 | rm -f conftest.er1 | ||
14051 | cat conftest.err >&5 | ||
14052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14053 | (exit $ac_status); } && { | ||
14054 | test -z "$ac_c_werror_flag" || | ||
14055 | test ! -s conftest.err | ||
14056 | } && test -s conftest$ac_exeext && | ||
14057 | $as_test_x conftest$ac_exeext; then | ||
14058 | eval "$as_ac_var=yes" | ||
14059 | else | ||
14060 | echo "$as_me: failed program was:" >&5 | ||
14061 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14062 | |||
14063 | eval "$as_ac_var=no" | ||
14064 | fi | ||
14065 | |||
14066 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14067 | conftest$ac_exeext conftest.$ac_ext | ||
14068 | fi | ||
14069 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14070 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14071 | echo "${ECHO_T}$ac_res" >&6; } | ||
14072 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14073 | cat >>confdefs.h <<_ACEOF | ||
14074 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14075 | _ACEOF | ||
14076 | |||
14077 | { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5 | ||
14078 | echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; } | ||
14079 | if test "$cross_compiling" = yes; then | ||
14080 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
14081 | echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
14082 | |||
14083 | else | ||
14084 | cat >conftest.$ac_ext <<_ACEOF | ||
14085 | /* confdefs.h. */ | ||
14086 | _ACEOF | ||
14087 | cat confdefs.h >>conftest.$ac_ext | ||
14088 | cat >>conftest.$ac_ext <<_ACEOF | ||
14089 | /* end confdefs.h. */ | ||
14090 | |||
14091 | #include <stdlib.h> | ||
14092 | #include <errno.h> | ||
14093 | int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
14094 | |||
14095 | _ACEOF | ||
14096 | rm -f conftest$ac_exeext | ||
14097 | if { (ac_try="$ac_link" | ||
14098 | case "(($ac_try" in | ||
14099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14100 | *) ac_try_echo=$ac_try;; | ||
14101 | esac | ||
14102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14103 | (eval "$ac_link") 2>&5 | ||
14104 | ac_status=$? | ||
14105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14106 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14107 | { (case "(($ac_try" in | ||
14108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14109 | *) ac_try_echo=$ac_try;; | ||
14110 | esac | ||
14111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14112 | (eval "$ac_try") 2>&5 | ||
14113 | ac_status=$? | ||
14114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14115 | (exit $ac_status); }; }; then | ||
14116 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
14117 | echo "${ECHO_T}yes" >&6; } | ||
14118 | else | ||
14119 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14120 | echo "$as_me: failed program was:" >&5 | ||
14121 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14122 | |||
14123 | ( exit $ac_status ) | ||
14124 | |||
14125 | cat >>confdefs.h <<\_ACEOF | ||
14126 | #define BROKEN_SETRESUID 1 | ||
14127 | _ACEOF | ||
14128 | |||
14129 | { echo "$as_me:$LINENO: result: not implemented" >&5 | ||
14130 | echo "${ECHO_T}not implemented" >&6; } | ||
14131 | fi | ||
14132 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14133 | fi | ||
14134 | |||
14135 | |||
14136 | |||
14137 | fi | ||
14138 | done | ||
14139 | |||
14140 | |||
14141 | |||
14142 | for ac_func in setresgid | ||
14143 | do | ||
14144 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14145 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14146 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14147 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14149 | else | ||
14150 | cat >conftest.$ac_ext <<_ACEOF | ||
14151 | /* confdefs.h. */ | ||
14152 | _ACEOF | ||
14153 | cat confdefs.h >>conftest.$ac_ext | ||
14154 | cat >>conftest.$ac_ext <<_ACEOF | ||
14155 | /* end confdefs.h. */ | ||
14156 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14157 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14158 | #define $ac_func innocuous_$ac_func | ||
14159 | |||
14160 | /* System header to define __stub macros and hopefully few prototypes, | ||
14161 | which can conflict with char $ac_func (); below. | ||
14162 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14163 | <limits.h> exists even on freestanding compilers. */ | ||
14164 | |||
14165 | #ifdef __STDC__ | ||
14166 | # include <limits.h> | ||
14167 | #else | ||
14168 | # include <assert.h> | ||
14169 | #endif | ||
14170 | |||
14171 | #undef $ac_func | ||
14172 | |||
14173 | /* Override any GCC internal prototype to avoid an error. | ||
14174 | Use char because int might match the return type of a GCC | ||
14175 | builtin and then its argument prototype would still apply. */ | ||
14176 | #ifdef __cplusplus | ||
14177 | extern "C" | ||
14178 | #endif | ||
14179 | char $ac_func (); | ||
14180 | /* The GNU C library defines this for functions which it implements | ||
14181 | to always fail with ENOSYS. Some functions are actually named | ||
14182 | something starting with __ and the normal name is an alias. */ | ||
14183 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14184 | choke me | ||
14185 | #endif | ||
14186 | |||
14187 | int | ||
14188 | main () | ||
14189 | { | ||
14190 | return $ac_func (); | ||
14191 | ; | ||
14192 | return 0; | ||
14193 | } | ||
14194 | _ACEOF | ||
14195 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14196 | if { (ac_try="$ac_link" | ||
14197 | case "(($ac_try" in | ||
14198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14199 | *) ac_try_echo=$ac_try;; | ||
14200 | esac | ||
14201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14202 | (eval "$ac_link") 2>conftest.er1 | ||
14203 | ac_status=$? | ||
14204 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14205 | rm -f conftest.er1 | ||
14206 | cat conftest.err >&5 | ||
14207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14208 | (exit $ac_status); } && { | ||
14209 | test -z "$ac_c_werror_flag" || | ||
14210 | test ! -s conftest.err | ||
14211 | } && test -s conftest$ac_exeext && | ||
14212 | $as_test_x conftest$ac_exeext; then | ||
14213 | eval "$as_ac_var=yes" | ||
14214 | else | ||
14215 | echo "$as_me: failed program was:" >&5 | ||
14216 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14217 | |||
14218 | eval "$as_ac_var=no" | ||
14219 | fi | ||
14220 | |||
14221 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14222 | conftest$ac_exeext conftest.$ac_ext | ||
14223 | fi | ||
14224 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14225 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14226 | echo "${ECHO_T}$ac_res" >&6; } | ||
14227 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14228 | cat >>confdefs.h <<_ACEOF | ||
14229 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14230 | _ACEOF | ||
14231 | |||
14232 | { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5 | ||
14233 | echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; } | ||
14234 | if test "$cross_compiling" = yes; then | ||
14235 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
14236 | echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
14237 | |||
14238 | else | ||
14239 | cat >conftest.$ac_ext <<_ACEOF | ||
14240 | /* confdefs.h. */ | ||
14241 | _ACEOF | ||
14242 | cat confdefs.h >>conftest.$ac_ext | ||
14243 | cat >>conftest.$ac_ext <<_ACEOF | ||
14244 | /* end confdefs.h. */ | ||
14245 | |||
14246 | #include <stdlib.h> | ||
14247 | #include <errno.h> | ||
14248 | int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
14249 | |||
14250 | _ACEOF | ||
14251 | rm -f conftest$ac_exeext | ||
14252 | if { (ac_try="$ac_link" | ||
14253 | case "(($ac_try" in | ||
14254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14255 | *) ac_try_echo=$ac_try;; | ||
14256 | esac | ||
14257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14258 | (eval "$ac_link") 2>&5 | ||
14259 | ac_status=$? | ||
14260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14261 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14262 | { (case "(($ac_try" in | ||
14263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14264 | *) ac_try_echo=$ac_try;; | ||
14265 | esac | ||
14266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14267 | (eval "$ac_try") 2>&5 | ||
14268 | ac_status=$? | ||
14269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14270 | (exit $ac_status); }; }; then | ||
14271 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
14272 | echo "${ECHO_T}yes" >&6; } | ||
14273 | else | ||
14274 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14275 | echo "$as_me: failed program was:" >&5 | ||
14276 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14277 | |||
14278 | ( exit $ac_status ) | ||
14279 | |||
14280 | cat >>confdefs.h <<\_ACEOF | ||
14281 | #define BROKEN_SETRESGID 1 | ||
14282 | _ACEOF | ||
14283 | |||
14284 | { echo "$as_me:$LINENO: result: not implemented" >&5 | ||
14285 | echo "${ECHO_T}not implemented" >&6; } | ||
14286 | fi | ||
14287 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14288 | fi | ||
14289 | |||
14290 | |||
14291 | |||
14292 | fi | ||
14293 | done | ||
14294 | |||
14295 | |||
14296 | |||
14297 | |||
14298 | for ac_func in gettimeofday time | ||
14299 | do | ||
14300 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14301 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14302 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14303 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14305 | else | ||
14306 | cat >conftest.$ac_ext <<_ACEOF | ||
14307 | /* confdefs.h. */ | ||
14308 | _ACEOF | ||
14309 | cat confdefs.h >>conftest.$ac_ext | ||
14310 | cat >>conftest.$ac_ext <<_ACEOF | ||
14311 | /* end confdefs.h. */ | ||
14312 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14313 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14314 | #define $ac_func innocuous_$ac_func | ||
14315 | |||
14316 | /* System header to define __stub macros and hopefully few prototypes, | ||
14317 | which can conflict with char $ac_func (); below. | ||
14318 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14319 | <limits.h> exists even on freestanding compilers. */ | ||
14320 | |||
14321 | #ifdef __STDC__ | ||
14322 | # include <limits.h> | ||
14323 | #else | ||
14324 | # include <assert.h> | ||
14325 | #endif | ||
14326 | |||
14327 | #undef $ac_func | ||
14328 | |||
14329 | /* Override any GCC internal prototype to avoid an error. | ||
14330 | Use char because int might match the return type of a GCC | ||
14331 | builtin and then its argument prototype would still apply. */ | ||
14332 | #ifdef __cplusplus | ||
14333 | extern "C" | ||
14334 | #endif | ||
14335 | char $ac_func (); | ||
14336 | /* The GNU C library defines this for functions which it implements | ||
14337 | to always fail with ENOSYS. Some functions are actually named | ||
14338 | something starting with __ and the normal name is an alias. */ | ||
14339 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14340 | choke me | ||
14341 | #endif | ||
14342 | |||
14343 | int | ||
14344 | main () | ||
14345 | { | ||
14346 | return $ac_func (); | ||
14347 | ; | ||
14348 | return 0; | ||
14349 | } | ||
14350 | _ACEOF | ||
14351 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14352 | if { (ac_try="$ac_link" | ||
14353 | case "(($ac_try" in | ||
14354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14355 | *) ac_try_echo=$ac_try;; | ||
14356 | esac | ||
14357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14358 | (eval "$ac_link") 2>conftest.er1 | ||
14359 | ac_status=$? | ||
14360 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14361 | rm -f conftest.er1 | ||
14362 | cat conftest.err >&5 | ||
14363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14364 | (exit $ac_status); } && { | ||
14365 | test -z "$ac_c_werror_flag" || | ||
14366 | test ! -s conftest.err | ||
14367 | } && test -s conftest$ac_exeext && | ||
14368 | $as_test_x conftest$ac_exeext; then | ||
14369 | eval "$as_ac_var=yes" | ||
14370 | else | ||
14371 | echo "$as_me: failed program was:" >&5 | ||
14372 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14373 | |||
14374 | eval "$as_ac_var=no" | ||
14375 | fi | ||
14376 | |||
14377 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14378 | conftest$ac_exeext conftest.$ac_ext | ||
14379 | fi | ||
14380 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14381 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14382 | echo "${ECHO_T}$ac_res" >&6; } | ||
14383 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14384 | cat >>confdefs.h <<_ACEOF | ||
14385 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14386 | _ACEOF | ||
14387 | |||
14388 | fi | ||
14389 | done | ||
14390 | |||
14391 | |||
14392 | |||
14393 | |||
14394 | |||
14395 | |||
14396 | |||
14397 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
14398 | do | ||
14399 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14400 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14401 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14402 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14404 | else | ||
14405 | cat >conftest.$ac_ext <<_ACEOF | ||
14406 | /* confdefs.h. */ | ||
14407 | _ACEOF | ||
14408 | cat confdefs.h >>conftest.$ac_ext | ||
14409 | cat >>conftest.$ac_ext <<_ACEOF | ||
14410 | /* end confdefs.h. */ | ||
14411 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14412 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14413 | #define $ac_func innocuous_$ac_func | ||
14414 | |||
14415 | /* System header to define __stub macros and hopefully few prototypes, | ||
14416 | which can conflict with char $ac_func (); below. | ||
14417 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14418 | <limits.h> exists even on freestanding compilers. */ | ||
14419 | |||
14420 | #ifdef __STDC__ | ||
14421 | # include <limits.h> | ||
14422 | #else | ||
14423 | # include <assert.h> | ||
14424 | #endif | ||
14425 | |||
14426 | #undef $ac_func | ||
14427 | |||
14428 | /* Override any GCC internal prototype to avoid an error. | ||
14429 | Use char because int might match the return type of a GCC | ||
14430 | builtin and then its argument prototype would still apply. */ | ||
14431 | #ifdef __cplusplus | ||
14432 | extern "C" | ||
14433 | #endif | ||
14434 | char $ac_func (); | ||
14435 | /* The GNU C library defines this for functions which it implements | ||
14436 | to always fail with ENOSYS. Some functions are actually named | ||
14437 | something starting with __ and the normal name is an alias. */ | ||
14438 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14439 | choke me | ||
14440 | #endif | ||
14441 | |||
14442 | int | ||
14443 | main () | ||
14444 | { | ||
14445 | return $ac_func (); | ||
14446 | ; | ||
14447 | return 0; | ||
14448 | } | ||
14449 | _ACEOF | ||
14450 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14451 | if { (ac_try="$ac_link" | ||
14452 | case "(($ac_try" in | ||
14453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14454 | *) ac_try_echo=$ac_try;; | ||
14455 | esac | ||
14456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14457 | (eval "$ac_link") 2>conftest.er1 | ||
14458 | ac_status=$? | ||
14459 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14460 | rm -f conftest.er1 | ||
14461 | cat conftest.err >&5 | ||
14462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14463 | (exit $ac_status); } && { | ||
14464 | test -z "$ac_c_werror_flag" || | ||
14465 | test ! -s conftest.err | ||
14466 | } && test -s conftest$ac_exeext && | ||
14467 | $as_test_x conftest$ac_exeext; then | ||
14468 | eval "$as_ac_var=yes" | ||
14469 | else | ||
14470 | echo "$as_me: failed program was:" >&5 | ||
14471 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14472 | |||
14473 | eval "$as_ac_var=no" | ||
14474 | fi | ||
14475 | |||
14476 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14477 | conftest$ac_exeext conftest.$ac_ext | ||
14478 | fi | ||
14479 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14480 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14481 | echo "${ECHO_T}$ac_res" >&6; } | ||
14482 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14483 | cat >>confdefs.h <<_ACEOF | ||
14484 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14485 | _ACEOF | ||
14486 | |||
14487 | fi | ||
14488 | done | ||
14489 | |||
14490 | |||
14491 | for ac_func in utmpname | ||
14492 | do | ||
14493 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14494 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14495 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14496 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14498 | else | ||
14499 | cat >conftest.$ac_ext <<_ACEOF | ||
14500 | /* confdefs.h. */ | ||
14501 | _ACEOF | ||
14502 | cat confdefs.h >>conftest.$ac_ext | ||
14503 | cat >>conftest.$ac_ext <<_ACEOF | ||
14504 | /* end confdefs.h. */ | ||
14505 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14506 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14507 | #define $ac_func innocuous_$ac_func | ||
14508 | |||
14509 | /* System header to define __stub macros and hopefully few prototypes, | ||
14510 | which can conflict with char $ac_func (); below. | ||
14511 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14512 | <limits.h> exists even on freestanding compilers. */ | ||
14513 | |||
14514 | #ifdef __STDC__ | ||
14515 | # include <limits.h> | ||
14516 | #else | ||
14517 | # include <assert.h> | ||
14518 | #endif | ||
14519 | |||
14520 | #undef $ac_func | ||
14521 | |||
14522 | /* Override any GCC internal prototype to avoid an error. | ||
14523 | Use char because int might match the return type of a GCC | ||
14524 | builtin and then its argument prototype would still apply. */ | ||
14525 | #ifdef __cplusplus | ||
14526 | extern "C" | ||
14527 | #endif | ||
14528 | char $ac_func (); | ||
14529 | /* The GNU C library defines this for functions which it implements | ||
14530 | to always fail with ENOSYS. Some functions are actually named | ||
14531 | something starting with __ and the normal name is an alias. */ | ||
14532 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14533 | choke me | ||
14534 | #endif | ||
14535 | |||
14536 | int | ||
14537 | main () | ||
14538 | { | ||
14539 | return $ac_func (); | ||
14540 | ; | ||
14541 | return 0; | ||
14542 | } | ||
14543 | _ACEOF | ||
14544 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14545 | if { (ac_try="$ac_link" | ||
14546 | case "(($ac_try" in | ||
14547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14548 | *) ac_try_echo=$ac_try;; | ||
14549 | esac | ||
14550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14551 | (eval "$ac_link") 2>conftest.er1 | ||
14552 | ac_status=$? | ||
14553 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14554 | rm -f conftest.er1 | ||
14555 | cat conftest.err >&5 | ||
14556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14557 | (exit $ac_status); } && { | ||
14558 | test -z "$ac_c_werror_flag" || | ||
14559 | test ! -s conftest.err | ||
14560 | } && test -s conftest$ac_exeext && | ||
14561 | $as_test_x conftest$ac_exeext; then | ||
14562 | eval "$as_ac_var=yes" | ||
14563 | else | ||
14564 | echo "$as_me: failed program was:" >&5 | ||
14565 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14566 | |||
14567 | eval "$as_ac_var=no" | ||
14568 | fi | ||
14569 | |||
14570 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14571 | conftest$ac_exeext conftest.$ac_ext | ||
14572 | fi | ||
14573 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14574 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14575 | echo "${ECHO_T}$ac_res" >&6; } | ||
14576 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14577 | cat >>confdefs.h <<_ACEOF | ||
14578 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14579 | _ACEOF | ||
14580 | |||
14581 | fi | ||
14582 | done | ||
14583 | |||
14584 | |||
14585 | |||
14586 | |||
14587 | |||
14588 | |||
14589 | for ac_func in endutxent getutxent getutxid getutxline pututxline | ||
14590 | do | ||
14591 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14592 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14593 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14594 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14596 | else | ||
14597 | cat >conftest.$ac_ext <<_ACEOF | ||
14598 | /* confdefs.h. */ | ||
14599 | _ACEOF | ||
14600 | cat confdefs.h >>conftest.$ac_ext | ||
14601 | cat >>conftest.$ac_ext <<_ACEOF | ||
14602 | /* end confdefs.h. */ | ||
14603 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14604 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14605 | #define $ac_func innocuous_$ac_func | ||
14606 | |||
14607 | /* System header to define __stub macros and hopefully few prototypes, | ||
14608 | which can conflict with char $ac_func (); below. | ||
14609 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14610 | <limits.h> exists even on freestanding compilers. */ | ||
14611 | |||
14612 | #ifdef __STDC__ | ||
14613 | # include <limits.h> | ||
14614 | #else | ||
14615 | # include <assert.h> | ||
14616 | #endif | ||
14617 | |||
14618 | #undef $ac_func | ||
14619 | |||
14620 | /* Override any GCC internal prototype to avoid an error. | ||
14621 | Use char because int might match the return type of a GCC | ||
14622 | builtin and then its argument prototype would still apply. */ | ||
14623 | #ifdef __cplusplus | ||
14624 | extern "C" | ||
14625 | #endif | ||
14626 | char $ac_func (); | ||
14627 | /* The GNU C library defines this for functions which it implements | ||
14628 | to always fail with ENOSYS. Some functions are actually named | ||
14629 | something starting with __ and the normal name is an alias. */ | ||
14630 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14631 | choke me | ||
14632 | #endif | ||
14633 | |||
14634 | int | ||
14635 | main () | ||
14636 | { | ||
14637 | return $ac_func (); | ||
14638 | ; | ||
14639 | return 0; | ||
14640 | } | ||
14641 | _ACEOF | ||
14642 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14643 | if { (ac_try="$ac_link" | ||
14644 | case "(($ac_try" in | ||
14645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14646 | *) ac_try_echo=$ac_try;; | ||
14647 | esac | ||
14648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14649 | (eval "$ac_link") 2>conftest.er1 | ||
14650 | ac_status=$? | ||
14651 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14652 | rm -f conftest.er1 | ||
14653 | cat conftest.err >&5 | ||
14654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14655 | (exit $ac_status); } && { | ||
14656 | test -z "$ac_c_werror_flag" || | ||
14657 | test ! -s conftest.err | ||
14658 | } && test -s conftest$ac_exeext && | ||
14659 | $as_test_x conftest$ac_exeext; then | ||
14660 | eval "$as_ac_var=yes" | ||
14661 | else | ||
14662 | echo "$as_me: failed program was:" >&5 | ||
14663 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14664 | |||
14665 | eval "$as_ac_var=no" | ||
14666 | fi | ||
14667 | |||
14668 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14669 | conftest$ac_exeext conftest.$ac_ext | ||
14670 | fi | ||
14671 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14672 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14673 | echo "${ECHO_T}$ac_res" >&6; } | ||
14674 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14675 | cat >>confdefs.h <<_ACEOF | ||
14676 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14677 | _ACEOF | ||
14678 | |||
14679 | fi | ||
14680 | done | ||
14681 | |||
14682 | |||
14683 | |||
14684 | for ac_func in setutxent utmpxname | ||
14685 | do | ||
14686 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14687 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14688 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14689 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14691 | else | ||
14692 | cat >conftest.$ac_ext <<_ACEOF | ||
14693 | /* confdefs.h. */ | ||
14694 | _ACEOF | ||
14695 | cat confdefs.h >>conftest.$ac_ext | ||
14696 | cat >>conftest.$ac_ext <<_ACEOF | ||
14697 | /* end confdefs.h. */ | ||
14698 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14699 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14700 | #define $ac_func innocuous_$ac_func | ||
14701 | |||
14702 | /* System header to define __stub macros and hopefully few prototypes, | ||
14703 | which can conflict with char $ac_func (); below. | ||
14704 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14705 | <limits.h> exists even on freestanding compilers. */ | ||
14706 | |||
14707 | #ifdef __STDC__ | ||
14708 | # include <limits.h> | ||
14709 | #else | ||
14710 | # include <assert.h> | ||
14711 | #endif | ||
14712 | |||
14713 | #undef $ac_func | ||
14714 | |||
14715 | /* Override any GCC internal prototype to avoid an error. | ||
14716 | Use char because int might match the return type of a GCC | ||
14717 | builtin and then its argument prototype would still apply. */ | ||
14718 | #ifdef __cplusplus | ||
14719 | extern "C" | ||
14720 | #endif | ||
14721 | char $ac_func (); | ||
14722 | /* The GNU C library defines this for functions which it implements | ||
14723 | to always fail with ENOSYS. Some functions are actually named | ||
14724 | something starting with __ and the normal name is an alias. */ | ||
14725 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14726 | choke me | ||
14727 | #endif | ||
14728 | |||
14729 | int | ||
14730 | main () | ||
14731 | { | ||
14732 | return $ac_func (); | ||
14733 | ; | ||
14734 | return 0; | ||
14735 | } | ||
14736 | _ACEOF | ||
14737 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14738 | if { (ac_try="$ac_link" | ||
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_link") 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_exeext && | ||
14754 | $as_test_x conftest$ac_exeext; then | ||
14755 | eval "$as_ac_var=yes" | ||
14756 | else | ||
14757 | echo "$as_me: failed program was:" >&5 | ||
14758 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14759 | |||
14760 | eval "$as_ac_var=no" | ||
14761 | fi | ||
14762 | |||
14763 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14764 | conftest$ac_exeext conftest.$ac_ext | ||
14765 | fi | ||
14766 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14767 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14768 | echo "${ECHO_T}$ac_res" >&6; } | ||
14769 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14770 | cat >>confdefs.h <<_ACEOF | ||
14771 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14772 | _ACEOF | ||
14773 | |||
14774 | fi | ||
14775 | done | ||
14776 | |||
14777 | |||
14778 | { echo "$as_me:$LINENO: checking for daemon" >&5 | ||
14779 | echo $ECHO_N "checking for daemon... $ECHO_C" >&6; } | ||
14780 | if test "${ac_cv_func_daemon+set}" = set; then | ||
14781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14782 | else | ||
14783 | cat >conftest.$ac_ext <<_ACEOF | ||
14784 | /* confdefs.h. */ | ||
14785 | _ACEOF | ||
14786 | cat confdefs.h >>conftest.$ac_ext | ||
14787 | cat >>conftest.$ac_ext <<_ACEOF | ||
14788 | /* end confdefs.h. */ | ||
14789 | /* Define daemon to an innocuous variant, in case <limits.h> declares daemon. | ||
14790 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14791 | #define daemon innocuous_daemon | ||
14792 | |||
14793 | /* System header to define __stub macros and hopefully few prototypes, | ||
14794 | which can conflict with char daemon (); below. | ||
14795 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14796 | <limits.h> exists even on freestanding compilers. */ | ||
14797 | |||
14798 | #ifdef __STDC__ | ||
14799 | # include <limits.h> | ||
14800 | #else | ||
14801 | # include <assert.h> | ||
14802 | #endif | ||
14803 | |||
14804 | #undef daemon | ||
14805 | |||
14806 | /* Override any GCC internal prototype to avoid an error. | ||
14807 | Use char because int might match the return type of a GCC | ||
14808 | builtin and then its argument prototype would still apply. */ | ||
14809 | #ifdef __cplusplus | ||
14810 | extern "C" | ||
14811 | #endif | ||
14812 | char daemon (); | ||
14813 | /* The GNU C library defines this for functions which it implements | ||
14814 | to always fail with ENOSYS. Some functions are actually named | ||
14815 | something starting with __ and the normal name is an alias. */ | ||
14816 | #if defined __stub_daemon || defined __stub___daemon | ||
14817 | choke me | ||
14818 | #endif | ||
14819 | |||
14820 | int | ||
14821 | main () | ||
14822 | { | ||
14823 | return daemon (); | ||
14824 | ; | ||
14825 | return 0; | ||
14826 | } | ||
14827 | _ACEOF | ||
14828 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14829 | if { (ac_try="$ac_link" | ||
14830 | case "(($ac_try" in | ||
14831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14832 | *) ac_try_echo=$ac_try;; | ||
14833 | esac | ||
14834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14835 | (eval "$ac_link") 2>conftest.er1 | ||
14836 | ac_status=$? | ||
14837 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14838 | rm -f conftest.er1 | ||
14839 | cat conftest.err >&5 | ||
14840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14841 | (exit $ac_status); } && { | ||
14842 | test -z "$ac_c_werror_flag" || | ||
14843 | test ! -s conftest.err | ||
14844 | } && test -s conftest$ac_exeext && | ||
14845 | $as_test_x conftest$ac_exeext; then | ||
14846 | ac_cv_func_daemon=yes | ||
14847 | else | ||
14848 | echo "$as_me: failed program was:" >&5 | ||
14849 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14850 | |||
14851 | ac_cv_func_daemon=no | ||
14852 | fi | ||
14853 | |||
14854 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14855 | conftest$ac_exeext conftest.$ac_ext | ||
14856 | fi | ||
14857 | { echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5 | ||
14858 | echo "${ECHO_T}$ac_cv_func_daemon" >&6; } | ||
14859 | if test $ac_cv_func_daemon = yes; then | ||
14860 | |||
14861 | cat >>confdefs.h <<\_ACEOF | ||
14862 | #define HAVE_DAEMON 1 | ||
14863 | _ACEOF | ||
14864 | |||
14865 | else | ||
14866 | { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5 | ||
14867 | echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; } | ||
14868 | if test "${ac_cv_lib_bsd_daemon+set}" = set; then | ||
14869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14870 | else | ||
14871 | ac_check_lib_save_LIBS=$LIBS | ||
14872 | LIBS="-lbsd $LIBS" | ||
14873 | cat >conftest.$ac_ext <<_ACEOF | ||
14874 | /* confdefs.h. */ | ||
14875 | _ACEOF | ||
14876 | cat confdefs.h >>conftest.$ac_ext | ||
14877 | cat >>conftest.$ac_ext <<_ACEOF | ||
14878 | /* end confdefs.h. */ | ||
14879 | |||
14880 | /* Override any GCC internal prototype to avoid an error. | ||
14881 | Use char because int might match the return type of a GCC | ||
14882 | builtin and then its argument prototype would still apply. */ | ||
14883 | #ifdef __cplusplus | ||
14884 | extern "C" | ||
14885 | #endif | ||
14886 | char daemon (); | ||
14887 | int | ||
14888 | main () | ||
14889 | { | ||
14890 | return daemon (); | ||
14891 | ; | ||
14892 | return 0; | ||
14893 | } | ||
14894 | _ACEOF | ||
14895 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14896 | if { (ac_try="$ac_link" | ||
14897 | case "(($ac_try" in | ||
14898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14899 | *) ac_try_echo=$ac_try;; | ||
14900 | esac | ||
14901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14902 | (eval "$ac_link") 2>conftest.er1 | ||
14903 | ac_status=$? | ||
14904 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14905 | rm -f conftest.er1 | ||
14906 | cat conftest.err >&5 | ||
14907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14908 | (exit $ac_status); } && { | ||
14909 | test -z "$ac_c_werror_flag" || | ||
14910 | test ! -s conftest.err | ||
14911 | } && test -s conftest$ac_exeext && | ||
14912 | $as_test_x conftest$ac_exeext; then | ||
14913 | ac_cv_lib_bsd_daemon=yes | ||
14914 | else | ||
14915 | echo "$as_me: failed program was:" >&5 | ||
14916 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14917 | |||
14918 | ac_cv_lib_bsd_daemon=no | ||
14919 | fi | ||
14920 | |||
14921 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14922 | conftest$ac_exeext conftest.$ac_ext | ||
14923 | LIBS=$ac_check_lib_save_LIBS | ||
14924 | fi | ||
14925 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5 | ||
14926 | echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; } | ||
14927 | if test $ac_cv_lib_bsd_daemon = yes; then | ||
14928 | LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF | ||
14929 | #define HAVE_DAEMON 1 | ||
14930 | _ACEOF | ||
14931 | |||
14932 | fi | ||
14933 | |||
14934 | |||
14935 | fi | ||
14936 | |||
14937 | |||
14938 | { echo "$as_me:$LINENO: checking for getpagesize" >&5 | ||
14939 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } | ||
14940 | if test "${ac_cv_func_getpagesize+set}" = set; then | ||
14941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14942 | else | ||
14943 | cat >conftest.$ac_ext <<_ACEOF | ||
14944 | /* confdefs.h. */ | ||
14945 | _ACEOF | ||
14946 | cat confdefs.h >>conftest.$ac_ext | ||
14947 | cat >>conftest.$ac_ext <<_ACEOF | ||
14948 | /* end confdefs.h. */ | ||
14949 | /* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize. | ||
14950 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14951 | #define getpagesize innocuous_getpagesize | ||
14952 | |||
14953 | /* System header to define __stub macros and hopefully few prototypes, | ||
14954 | which can conflict with char getpagesize (); below. | ||
14955 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14956 | <limits.h> exists even on freestanding compilers. */ | ||
14957 | |||
14958 | #ifdef __STDC__ | ||
14959 | # include <limits.h> | ||
14960 | #else | ||
14961 | # include <assert.h> | ||
14962 | #endif | ||
14963 | |||
14964 | #undef getpagesize | ||
14965 | |||
14966 | /* Override any GCC internal prototype to avoid an error. | ||
14967 | Use char because int might match the return type of a GCC | ||
14968 | builtin and then its argument prototype would still apply. */ | ||
14969 | #ifdef __cplusplus | ||
14970 | extern "C" | ||
14971 | #endif | ||
14972 | char getpagesize (); | ||
14973 | /* The GNU C library defines this for functions which it implements | ||
14974 | to always fail with ENOSYS. Some functions are actually named | ||
14975 | something starting with __ and the normal name is an alias. */ | ||
14976 | #if defined __stub_getpagesize || defined __stub___getpagesize | ||
14977 | choke me | ||
14978 | #endif | ||
14979 | |||
14980 | int | ||
14981 | main () | ||
14982 | { | ||
14983 | return getpagesize (); | ||
14984 | ; | ||
14985 | return 0; | ||
14986 | } | ||
14987 | _ACEOF | ||
14988 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14989 | if { (ac_try="$ac_link" | ||
14990 | case "(($ac_try" in | ||
14991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14992 | *) ac_try_echo=$ac_try;; | ||
14993 | esac | ||
14994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14995 | (eval "$ac_link") 2>conftest.er1 | ||
14996 | ac_status=$? | ||
14997 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14998 | rm -f conftest.er1 | ||
14999 | cat conftest.err >&5 | ||
15000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15001 | (exit $ac_status); } && { | ||
15002 | test -z "$ac_c_werror_flag" || | ||
15003 | test ! -s conftest.err | ||
15004 | } && test -s conftest$ac_exeext && | ||
15005 | $as_test_x conftest$ac_exeext; then | ||
15006 | ac_cv_func_getpagesize=yes | ||
15007 | else | ||
15008 | echo "$as_me: failed program was:" >&5 | ||
15009 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15010 | |||
15011 | ac_cv_func_getpagesize=no | ||
15012 | fi | ||
15013 | |||
15014 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15015 | conftest$ac_exeext conftest.$ac_ext | ||
15016 | fi | ||
15017 | { echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5 | ||
15018 | echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; } | ||
15019 | if test $ac_cv_func_getpagesize = yes; then | ||
15020 | |||
15021 | cat >>confdefs.h <<\_ACEOF | ||
15022 | #define HAVE_GETPAGESIZE 1 | ||
15023 | _ACEOF | ||
15024 | |||
15025 | else | ||
15026 | { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5 | ||
15027 | echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; } | ||
15028 | if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then | ||
15029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15030 | else | ||
15031 | ac_check_lib_save_LIBS=$LIBS | ||
15032 | LIBS="-lucb $LIBS" | ||
15033 | cat >conftest.$ac_ext <<_ACEOF | ||
15034 | /* confdefs.h. */ | ||
15035 | _ACEOF | ||
15036 | cat confdefs.h >>conftest.$ac_ext | ||
15037 | cat >>conftest.$ac_ext <<_ACEOF | ||
15038 | /* end confdefs.h. */ | ||
15039 | |||
15040 | /* Override any GCC internal prototype to avoid an error. | ||
15041 | Use char because int might match the return type of a GCC | ||
15042 | builtin and then its argument prototype would still apply. */ | ||
15043 | #ifdef __cplusplus | ||
15044 | extern "C" | ||
15045 | #endif | ||
15046 | char getpagesize (); | ||
15047 | int | ||
15048 | main () | ||
15049 | { | ||
15050 | return getpagesize (); | ||
15051 | ; | ||
15052 | return 0; | ||
15053 | } | ||
15054 | _ACEOF | ||
15055 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15056 | if { (ac_try="$ac_link" | ||
15057 | case "(($ac_try" in | ||
15058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15059 | *) ac_try_echo=$ac_try;; | ||
15060 | esac | ||
15061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15062 | (eval "$ac_link") 2>conftest.er1 | ||
15063 | ac_status=$? | ||
15064 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15065 | rm -f conftest.er1 | ||
15066 | cat conftest.err >&5 | ||
15067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15068 | (exit $ac_status); } && { | ||
15069 | test -z "$ac_c_werror_flag" || | ||
15070 | test ! -s conftest.err | ||
15071 | } && test -s conftest$ac_exeext && | ||
15072 | $as_test_x conftest$ac_exeext; then | ||
15073 | ac_cv_lib_ucb_getpagesize=yes | ||
15074 | else | ||
15075 | echo "$as_me: failed program was:" >&5 | ||
15076 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15077 | |||
15078 | ac_cv_lib_ucb_getpagesize=no | ||
15079 | fi | ||
15080 | |||
15081 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15082 | conftest$ac_exeext conftest.$ac_ext | ||
15083 | LIBS=$ac_check_lib_save_LIBS | ||
15084 | fi | ||
15085 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
15086 | echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; } | ||
15087 | if test $ac_cv_lib_ucb_getpagesize = yes; then | ||
15088 | LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF | ||
15089 | #define HAVE_GETPAGESIZE 1 | ||
15090 | _ACEOF | ||
15091 | |||
15092 | fi | ||
15093 | |||
15094 | |||
15095 | fi | ||
15096 | |||
15097 | |||
15098 | # Check for broken snprintf | ||
15099 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
15100 | { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5 | ||
15101 | echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; } | ||
15102 | if test "$cross_compiling" = yes; then | ||
15103 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
15104 | echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
15105 | |||
15106 | else | ||
15107 | cat >conftest.$ac_ext <<_ACEOF | ||
15108 | /* confdefs.h. */ | ||
15109 | _ACEOF | ||
15110 | cat confdefs.h >>conftest.$ac_ext | ||
15111 | cat >>conftest.$ac_ext <<_ACEOF | ||
15112 | /* end confdefs.h. */ | ||
15113 | |||
15114 | #include <stdio.h> | ||
15115 | int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');} | ||
15116 | |||
15117 | _ACEOF | ||
15118 | rm -f conftest$ac_exeext | ||
15119 | if { (ac_try="$ac_link" | ||
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_link") 2>&5 | ||
15126 | ac_status=$? | ||
15127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15128 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15129 | { (case "(($ac_try" in | ||
15130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15131 | *) ac_try_echo=$ac_try;; | ||
15132 | esac | ||
15133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15134 | (eval "$ac_try") 2>&5 | ||
15135 | ac_status=$? | ||
15136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15137 | (exit $ac_status); }; }; then | ||
15138 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15139 | echo "${ECHO_T}yes" >&6; } | ||
15140 | else | ||
15141 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15142 | echo "$as_me: failed program was:" >&5 | ||
15143 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15144 | |||
15145 | ( exit $ac_status ) | ||
15146 | |||
15147 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15148 | echo "${ECHO_T}no" >&6; } | ||
15149 | |||
15150 | cat >>confdefs.h <<\_ACEOF | ||
15151 | #define BROKEN_SNPRINTF 1 | ||
15152 | _ACEOF | ||
15153 | |||
15154 | { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
15155 | echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
15156 | |||
15157 | fi | ||
15158 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15159 | fi | ||
15160 | |||
15161 | |||
15162 | fi | ||
15163 | |||
15164 | # If we don't have a working asprintf, then we strongly depend on vsnprintf | ||
15165 | # returning the right thing on overflow: the number of characters it tried to | ||
15166 | # create (as per SUSv3) | ||
15167 | if test "x$ac_cv_func_asprintf" != "xyes" && \ | ||
15168 | test "x$ac_cv_func_vsnprintf" = "xyes" ; then | ||
15169 | { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5 | ||
15170 | echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; } | ||
15171 | if test "$cross_compiling" = yes; then | ||
15172 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5 | ||
15173 | echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;} | ||
15174 | |||
15175 | else | ||
15176 | cat >conftest.$ac_ext <<_ACEOF | ||
15177 | /* confdefs.h. */ | ||
15178 | _ACEOF | ||
15179 | cat confdefs.h >>conftest.$ac_ext | ||
15180 | cat >>conftest.$ac_ext <<_ACEOF | ||
15181 | /* end confdefs.h. */ | ||
15182 | |||
15183 | #include <sys/types.h> | ||
15184 | #include <stdio.h> | ||
15185 | #include <stdarg.h> | ||
15186 | |||
15187 | int x_snprintf(char *str,size_t count,const char *fmt,...) | ||
15188 | { | ||
15189 | size_t ret; va_list ap; | ||
15190 | va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap); | ||
15191 | return ret; | ||
15192 | } | ||
15193 | int main(void) | ||
15194 | { | ||
15195 | char x[1]; | ||
15196 | exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1); | ||
15197 | } | ||
15198 | _ACEOF | ||
15199 | rm -f conftest$ac_exeext | ||
15200 | if { (ac_try="$ac_link" | ||
15201 | case "(($ac_try" in | ||
15202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15203 | *) ac_try_echo=$ac_try;; | ||
15204 | esac | ||
15205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15206 | (eval "$ac_link") 2>&5 | ||
15207 | ac_status=$? | ||
15208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15209 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15210 | { (case "(($ac_try" in | ||
15211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15212 | *) ac_try_echo=$ac_try;; | ||
15213 | esac | ||
15214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15215 | (eval "$ac_try") 2>&5 | ||
15216 | ac_status=$? | ||
15217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15218 | (exit $ac_status); }; }; then | ||
15219 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15220 | echo "${ECHO_T}yes" >&6; } | ||
15221 | else | ||
15222 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15223 | echo "$as_me: failed program was:" >&5 | ||
15224 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15225 | |||
15226 | ( exit $ac_status ) | ||
15227 | |||
15228 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15229 | echo "${ECHO_T}no" >&6; } | ||
15230 | |||
15231 | cat >>confdefs.h <<\_ACEOF | ||
15232 | #define BROKEN_SNPRINTF 1 | ||
15233 | _ACEOF | ||
15234 | |||
15235 | { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5 | ||
15236 | echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;} | ||
15237 | |||
15238 | fi | ||
15239 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15240 | fi | ||
15241 | |||
15242 | |||
15243 | fi | ||
15244 | |||
15245 | # On systems where [v]snprintf is broken, but is declared in stdio, | ||
15246 | # check that the fmt argument is const char * or just char *. | ||
15247 | # This is only useful for when BROKEN_SNPRINTF | ||
15248 | { echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5 | ||
15249 | echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; } | ||
15250 | cat >conftest.$ac_ext <<_ACEOF | ||
15251 | /* confdefs.h. */ | ||
15252 | _ACEOF | ||
15253 | cat confdefs.h >>conftest.$ac_ext | ||
15254 | cat >>conftest.$ac_ext <<_ACEOF | ||
15255 | /* end confdefs.h. */ | ||
15256 | #include <stdio.h> | ||
15257 | int snprintf(char *a, size_t b, const char *c, ...) { return 0; } | ||
15258 | int main(void) { snprintf(0, 0, 0); } | ||
15259 | |||
15260 | _ACEOF | ||
15261 | rm -f conftest.$ac_objext | ||
15262 | if { (ac_try="$ac_compile" | ||
15263 | case "(($ac_try" in | ||
15264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15265 | *) ac_try_echo=$ac_try;; | ||
15266 | esac | ||
15267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15268 | (eval "$ac_compile") 2>conftest.er1 | ||
15269 | ac_status=$? | ||
15270 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15271 | rm -f conftest.er1 | ||
15272 | cat conftest.err >&5 | ||
15273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15274 | (exit $ac_status); } && { | ||
15275 | test -z "$ac_c_werror_flag" || | ||
15276 | test ! -s conftest.err | ||
15277 | } && test -s conftest.$ac_objext; then | ||
15278 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15279 | echo "${ECHO_T}yes" >&6; } | ||
15280 | |||
15281 | cat >>confdefs.h <<\_ACEOF | ||
15282 | #define SNPRINTF_CONST const | ||
15283 | _ACEOF | ||
15284 | |||
15285 | else | ||
15286 | echo "$as_me: failed program was:" >&5 | ||
15287 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15288 | |||
15289 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15290 | echo "${ECHO_T}no" >&6; } | ||
15291 | cat >>confdefs.h <<\_ACEOF | ||
15292 | #define SNPRINTF_CONST /* not const */ | ||
15293 | _ACEOF | ||
15294 | |||
15295 | fi | ||
15296 | |||
15297 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15298 | |||
15299 | # Check for missing getpeereid (or equiv) support | ||
15300 | NO_PEERCHECK="" | ||
15301 | if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then | ||
15302 | { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5 | ||
15303 | echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; } | ||
15304 | cat >conftest.$ac_ext <<_ACEOF | ||
15305 | /* confdefs.h. */ | ||
15306 | _ACEOF | ||
15307 | cat confdefs.h >>conftest.$ac_ext | ||
15308 | cat >>conftest.$ac_ext <<_ACEOF | ||
15309 | /* end confdefs.h. */ | ||
15310 | #include <sys/types.h> | ||
15311 | #include <sys/socket.h> | ||
15312 | int | ||
15313 | main () | ||
15314 | { | ||
15315 | int i = SO_PEERCRED; | ||
15316 | ; | ||
15317 | return 0; | ||
15318 | } | ||
15319 | _ACEOF | ||
15320 | rm -f conftest.$ac_objext | ||
15321 | if { (ac_try="$ac_compile" | ||
15322 | case "(($ac_try" in | ||
15323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15324 | *) ac_try_echo=$ac_try;; | ||
15325 | esac | ||
15326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15327 | (eval "$ac_compile") 2>conftest.er1 | ||
15328 | ac_status=$? | ||
15329 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15330 | rm -f conftest.er1 | ||
15331 | cat conftest.err >&5 | ||
15332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15333 | (exit $ac_status); } && { | ||
15334 | test -z "$ac_c_werror_flag" || | ||
15335 | test ! -s conftest.err | ||
15336 | } && test -s conftest.$ac_objext; then | ||
15337 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15338 | echo "${ECHO_T}yes" >&6; } | ||
15339 | |||
15340 | cat >>confdefs.h <<\_ACEOF | ||
15341 | #define HAVE_SO_PEERCRED 1 | ||
15342 | _ACEOF | ||
15343 | |||
15344 | |||
15345 | else | ||
15346 | echo "$as_me: failed program was:" >&5 | ||
15347 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15348 | |||
15349 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15350 | echo "${ECHO_T}no" >&6; } | ||
15351 | NO_PEERCHECK=1 | ||
15352 | |||
15353 | fi | ||
15354 | |||
15355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15356 | fi | ||
15357 | |||
15358 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
15359 | { echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5 | ||
15360 | echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; } | ||
15361 | if test "$cross_compiling" = yes; then | ||
15362 | |||
15363 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15364 | echo "${ECHO_T}yes" >&6; } | ||
15365 | cat >>confdefs.h <<\_ACEOF | ||
15366 | #define HAVE_STRICT_MKSTEMP 1 | ||
15367 | _ACEOF | ||
15368 | |||
15369 | |||
15370 | |||
15371 | else | ||
15372 | cat >conftest.$ac_ext <<_ACEOF | ||
15373 | /* confdefs.h. */ | ||
15374 | _ACEOF | ||
15375 | cat confdefs.h >>conftest.$ac_ext | ||
15376 | cat >>conftest.$ac_ext <<_ACEOF | ||
15377 | /* end confdefs.h. */ | ||
15378 | |||
15379 | #include <stdlib.h> | ||
15380 | main() { char template[]="conftest.mkstemp-test"; | ||
15381 | if (mkstemp(template) == -1) | ||
15382 | exit(1); | ||
15383 | unlink(template); exit(0); | ||
15384 | } | ||
15385 | |||
15386 | _ACEOF | ||
15387 | rm -f conftest$ac_exeext | ||
15388 | if { (ac_try="$ac_link" | ||
15389 | case "(($ac_try" in | ||
15390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15391 | *) ac_try_echo=$ac_try;; | ||
15392 | esac | ||
15393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15394 | (eval "$ac_link") 2>&5 | ||
15395 | ac_status=$? | ||
15396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15397 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15398 | { (case "(($ac_try" in | ||
15399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15400 | *) ac_try_echo=$ac_try;; | ||
15401 | esac | ||
15402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15403 | (eval "$ac_try") 2>&5 | ||
15404 | ac_status=$? | ||
15405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15406 | (exit $ac_status); }; }; then | ||
15407 | |||
15408 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15409 | echo "${ECHO_T}no" >&6; } | ||
15410 | |||
15411 | else | ||
15412 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15413 | echo "$as_me: failed program was:" >&5 | ||
15414 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15415 | |||
15416 | ( exit $ac_status ) | ||
15417 | |||
15418 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15419 | echo "${ECHO_T}yes" >&6; } | ||
15420 | |||
15421 | cat >>confdefs.h <<\_ACEOF | ||
15422 | #define HAVE_STRICT_MKSTEMP 1 | ||
15423 | _ACEOF | ||
15424 | |||
15425 | |||
15426 | fi | ||
15427 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15428 | fi | ||
15429 | |||
15430 | |||
15431 | fi | ||
15432 | |||
15433 | if test ! -z "$check_for_openpty_ctty_bug"; then | ||
15434 | { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5 | ||
15435 | echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; } | ||
15436 | if test "$cross_compiling" = yes; then | ||
15437 | |||
15438 | { echo "$as_me:$LINENO: result: cross-compiling" >&5 | ||
15439 | echo "${ECHO_T}cross-compiling" >&6; } | ||
15440 | |||
15441 | |||
15442 | else | ||
15443 | cat >conftest.$ac_ext <<_ACEOF | ||
15444 | /* confdefs.h. */ | ||
15445 | _ACEOF | ||
15446 | cat confdefs.h >>conftest.$ac_ext | ||
15447 | cat >>conftest.$ac_ext <<_ACEOF | ||
15448 | /* end confdefs.h. */ | ||
15449 | |||
15450 | #include <stdio.h> | ||
15451 | #include <sys/fcntl.h> | ||
15452 | #include <sys/types.h> | ||
15453 | #include <sys/wait.h> | ||
15454 | |||
15455 | int | ||
15456 | main() | ||
15457 | { | ||
15458 | pid_t pid; | ||
15459 | int fd, ptyfd, ttyfd, status; | ||
15460 | |||
15461 | pid = fork(); | ||
15462 | if (pid < 0) { /* failed */ | ||
15463 | exit(1); | ||
15464 | } else if (pid > 0) { /* parent */ | ||
15465 | waitpid(pid, &status, 0); | ||
15466 | if (WIFEXITED(status)) | ||
15467 | exit(WEXITSTATUS(status)); | ||
15468 | else | ||
15469 | exit(2); | ||
15470 | } else { /* child */ | ||
15471 | close(0); close(1); close(2); | ||
15472 | setsid(); | ||
15473 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); | ||
15474 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); | ||
15475 | if (fd >= 0) | ||
15476 | exit(3); /* Acquired ctty: broken */ | ||
15477 | else | ||
15478 | exit(0); /* Did not acquire ctty: OK */ | ||
15479 | } | ||
15480 | } | ||
15481 | |||
15482 | _ACEOF | ||
15483 | rm -f conftest$ac_exeext | ||
15484 | if { (ac_try="$ac_link" | ||
15485 | case "(($ac_try" in | ||
15486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15487 | *) ac_try_echo=$ac_try;; | ||
15488 | esac | ||
15489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15490 | (eval "$ac_link") 2>&5 | ||
15491 | ac_status=$? | ||
15492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15493 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15494 | { (case "(($ac_try" in | ||
15495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15496 | *) ac_try_echo=$ac_try;; | ||
15497 | esac | ||
15498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15499 | (eval "$ac_try") 2>&5 | ||
15500 | ac_status=$? | ||
15501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15502 | (exit $ac_status); }; }; then | ||
15503 | |||
15504 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15505 | echo "${ECHO_T}yes" >&6; } | ||
15506 | |||
15507 | else | ||
15508 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15509 | echo "$as_me: failed program was:" >&5 | ||
15510 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15511 | |||
15512 | ( exit $ac_status ) | ||
15513 | |||
15514 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15515 | echo "${ECHO_T}no" >&6; } | ||
15516 | cat >>confdefs.h <<\_ACEOF | ||
15517 | #define SSHD_ACQUIRES_CTTY 1 | ||
15518 | _ACEOF | ||
15519 | |||
15520 | |||
15521 | fi | ||
15522 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15523 | fi | ||
15524 | |||
15525 | |||
15526 | fi | ||
15527 | |||
15528 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
15529 | test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then | ||
15530 | { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
15531 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; } | ||
15532 | if test "$cross_compiling" = yes; then | ||
15533 | |||
15534 | { echo "$as_me:$LINENO: result: cross-compiling" >&5 | ||
15535 | echo "${ECHO_T}cross-compiling" >&6; } | ||
15536 | |||
15537 | |||
15538 | else | ||
15539 | cat >conftest.$ac_ext <<_ACEOF | ||
15540 | /* confdefs.h. */ | ||
15541 | _ACEOF | ||
15542 | cat confdefs.h >>conftest.$ac_ext | ||
15543 | cat >>conftest.$ac_ext <<_ACEOF | ||
15544 | /* end confdefs.h. */ | ||
15545 | |||
15546 | #include <stdio.h> | ||
15547 | #include <sys/socket.h> | ||
15548 | #include <netdb.h> | ||
15549 | #include <errno.h> | ||
15550 | #include <netinet/in.h> | ||
15551 | |||
15552 | #define TEST_PORT "2222" | ||
15553 | |||
15554 | int | ||
15555 | main(void) | ||
15556 | { | ||
15557 | int err, sock; | ||
15558 | struct addrinfo *gai_ai, *ai, hints; | ||
15559 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
15560 | |||
15561 | memset(&hints, 0, sizeof(hints)); | ||
15562 | hints.ai_family = PF_UNSPEC; | ||
15563 | hints.ai_socktype = SOCK_STREAM; | ||
15564 | hints.ai_flags = AI_PASSIVE; | ||
15565 | |||
15566 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
15567 | if (err != 0) { | ||
15568 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
15569 | exit(1); | ||
15570 | } | ||
15571 | |||
15572 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
15573 | if (ai->ai_family != AF_INET6) | ||
15574 | continue; | ||
15575 | |||
15576 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
15577 | sizeof(ntop), strport, sizeof(strport), | ||
15578 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
15579 | |||
15580 | if (err != 0) { | ||
15581 | if (err == EAI_SYSTEM) | ||
15582 | perror("getnameinfo EAI_SYSTEM"); | ||
15583 | else | ||
15584 | fprintf(stderr, "getnameinfo failed: %s\n", | ||
15585 | gai_strerror(err)); | ||
15586 | exit(2); | ||
15587 | } | ||
15588 | |||
15589 | sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); | ||
15590 | if (sock < 0) | ||
15591 | perror("socket"); | ||
15592 | if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { | ||
15593 | if (errno == EBADF) | ||
15594 | exit(3); | ||
15595 | } | ||
15596 | } | ||
15597 | exit(0); | ||
15598 | } | ||
15599 | |||
15600 | _ACEOF | ||
15601 | rm -f conftest$ac_exeext | ||
15602 | if { (ac_try="$ac_link" | ||
15603 | case "(($ac_try" in | ||
15604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15605 | *) ac_try_echo=$ac_try;; | ||
15606 | esac | ||
15607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15608 | (eval "$ac_link") 2>&5 | ||
15609 | ac_status=$? | ||
15610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15611 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15612 | { (case "(($ac_try" in | ||
15613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15614 | *) ac_try_echo=$ac_try;; | ||
15615 | esac | ||
15616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15617 | (eval "$ac_try") 2>&5 | ||
15618 | ac_status=$? | ||
15619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15620 | (exit $ac_status); }; }; then | ||
15621 | |||
15622 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15623 | echo "${ECHO_T}yes" >&6; } | ||
15624 | |||
15625 | else | ||
15626 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15627 | echo "$as_me: failed program was:" >&5 | ||
15628 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15629 | |||
15630 | ( exit $ac_status ) | ||
15631 | |||
15632 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15633 | echo "${ECHO_T}no" >&6; } | ||
15634 | cat >>confdefs.h <<\_ACEOF | ||
15635 | #define BROKEN_GETADDRINFO 1 | ||
15636 | _ACEOF | ||
15637 | |||
15638 | |||
15639 | fi | ||
15640 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15641 | fi | ||
15642 | |||
15643 | |||
15644 | fi | ||
15645 | |||
15646 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
15647 | test "x$check_for_aix_broken_getaddrinfo" = "x1"; then | ||
15648 | { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
15649 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; } | ||
15650 | if test "$cross_compiling" = yes; then | ||
15651 | |||
15652 | { echo "$as_me:$LINENO: result: cross-compiling" >&5 | ||
15653 | echo "${ECHO_T}cross-compiling" >&6; } | ||
15654 | |||
15655 | |||
15656 | else | ||
15657 | cat >conftest.$ac_ext <<_ACEOF | ||
15658 | /* confdefs.h. */ | ||
15659 | _ACEOF | ||
15660 | cat confdefs.h >>conftest.$ac_ext | ||
15661 | cat >>conftest.$ac_ext <<_ACEOF | ||
15662 | /* end confdefs.h. */ | ||
15663 | |||
15664 | #include <stdio.h> | ||
15665 | #include <sys/socket.h> | ||
15666 | #include <netdb.h> | ||
15667 | #include <errno.h> | ||
15668 | #include <netinet/in.h> | ||
15669 | |||
15670 | #define TEST_PORT "2222" | ||
15671 | |||
15672 | int | ||
15673 | main(void) | ||
15674 | { | ||
15675 | int err, sock; | ||
15676 | struct addrinfo *gai_ai, *ai, hints; | ||
15677 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
15678 | |||
15679 | memset(&hints, 0, sizeof(hints)); | ||
15680 | hints.ai_family = PF_UNSPEC; | ||
15681 | hints.ai_socktype = SOCK_STREAM; | ||
15682 | hints.ai_flags = AI_PASSIVE; | ||
15683 | |||
15684 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
15685 | if (err != 0) { | ||
15686 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
15687 | exit(1); | ||
15688 | } | ||
15689 | |||
15690 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
15691 | if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) | ||
15692 | continue; | ||
15693 | |||
15694 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
15695 | sizeof(ntop), strport, sizeof(strport), | ||
15696 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
15697 | |||
15698 | if (ai->ai_family == AF_INET && err != 0) { | ||
15699 | perror("getnameinfo"); | ||
15700 | exit(2); | ||
15701 | } | ||
15702 | } | ||
15703 | exit(0); | ||
15704 | } | ||
15705 | |||
15706 | _ACEOF | ||
15707 | rm -f conftest$ac_exeext | ||
15708 | if { (ac_try="$ac_link" | ||
15709 | case "(($ac_try" in | ||
15710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15711 | *) ac_try_echo=$ac_try;; | ||
15712 | esac | ||
15713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15714 | (eval "$ac_link") 2>&5 | ||
15715 | ac_status=$? | ||
15716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15717 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15718 | { (case "(($ac_try" in | ||
15719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15720 | *) ac_try_echo=$ac_try;; | ||
15721 | esac | ||
15722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15723 | (eval "$ac_try") 2>&5 | ||
15724 | ac_status=$? | ||
15725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15726 | (exit $ac_status); }; }; then | ||
15727 | |||
15728 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15729 | echo "${ECHO_T}yes" >&6; } | ||
15730 | |||
15731 | cat >>confdefs.h <<\_ACEOF | ||
15732 | #define AIX_GETNAMEINFO_HACK 1 | ||
15733 | _ACEOF | ||
15734 | |||
15735 | |||
15736 | else | ||
15737 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15738 | echo "$as_me: failed program was:" >&5 | ||
15739 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15740 | |||
15741 | ( exit $ac_status ) | ||
15742 | |||
15743 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15744 | echo "${ECHO_T}no" >&6; } | ||
15745 | cat >>confdefs.h <<\_ACEOF | ||
15746 | #define BROKEN_GETADDRINFO 1 | ||
15747 | _ACEOF | ||
15748 | |||
15749 | |||
15750 | fi | ||
15751 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15752 | fi | ||
15753 | |||
15754 | |||
15755 | fi | ||
15756 | |||
15757 | if test "x$check_for_conflicting_getspnam" = "x1"; then | ||
15758 | { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5 | ||
15759 | echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; } | ||
15760 | cat >conftest.$ac_ext <<_ACEOF | ||
15761 | |||
15762 | #include <shadow.h> | ||
15763 | int main(void) {exit(0);} | ||
15764 | |||
15765 | _ACEOF | ||
15766 | rm -f conftest.$ac_objext | ||
15767 | if { (ac_try="$ac_compile" | ||
15768 | case "(($ac_try" in | ||
15769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15770 | *) ac_try_echo=$ac_try;; | ||
15771 | esac | ||
15772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15773 | (eval "$ac_compile") 2>conftest.er1 | ||
15774 | ac_status=$? | ||
15775 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15776 | rm -f conftest.er1 | ||
15777 | cat conftest.err >&5 | ||
15778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15779 | (exit $ac_status); } && { | ||
15780 | test -z "$ac_c_werror_flag" || | ||
15781 | test ! -s conftest.err | ||
15782 | } && test -s conftest.$ac_objext; then | ||
15783 | |||
15784 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15785 | echo "${ECHO_T}no" >&6; } | ||
15786 | |||
15787 | else | ||
15788 | echo "$as_me: failed program was:" >&5 | ||
15789 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15790 | |||
15791 | |||
15792 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15793 | echo "${ECHO_T}yes" >&6; } | ||
15794 | |||
15795 | cat >>confdefs.h <<\_ACEOF | ||
15796 | #define GETSPNAM_CONFLICTING_DEFS 1 | ||
15797 | _ACEOF | ||
15798 | |||
15799 | |||
15800 | |||
15801 | fi | ||
15802 | |||
15803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15804 | fi | ||
15805 | |||
15806 | { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 | ||
15807 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; } | ||
15808 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | ||
15809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15810 | else | ||
15811 | # Use it with a single arg. | ||
15812 | cat >conftest.$ac_ext <<_ACEOF | ||
15813 | /* confdefs.h. */ | ||
15814 | _ACEOF | ||
15815 | cat confdefs.h >>conftest.$ac_ext | ||
15816 | cat >>conftest.$ac_ext <<_ACEOF | ||
15817 | /* end confdefs.h. */ | ||
15818 | $ac_includes_default | ||
15819 | int | ||
15820 | main () | ||
15821 | { | ||
15822 | getpgrp (0); | ||
15823 | ; | ||
15824 | return 0; | ||
15825 | } | ||
15826 | _ACEOF | ||
15827 | rm -f conftest.$ac_objext | ||
15828 | if { (ac_try="$ac_compile" | ||
15829 | case "(($ac_try" in | ||
15830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15831 | *) ac_try_echo=$ac_try;; | ||
15832 | esac | ||
15833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15834 | (eval "$ac_compile") 2>conftest.er1 | ||
15835 | ac_status=$? | ||
15836 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15837 | rm -f conftest.er1 | ||
15838 | cat conftest.err >&5 | ||
15839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15840 | (exit $ac_status); } && { | ||
15841 | test -z "$ac_c_werror_flag" || | ||
15842 | test ! -s conftest.err | ||
15843 | } && test -s conftest.$ac_objext; then | ||
15844 | ac_cv_func_getpgrp_void=no | ||
15845 | else | ||
15846 | echo "$as_me: failed program was:" >&5 | ||
15847 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15848 | |||
15849 | ac_cv_func_getpgrp_void=yes | ||
15850 | fi | ||
15851 | |||
15852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15853 | |||
15854 | fi | ||
15855 | { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | ||
15856 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; } | ||
15857 | if test $ac_cv_func_getpgrp_void = yes; then | ||
15858 | |||
15859 | cat >>confdefs.h <<\_ACEOF | ||
15860 | #define GETPGRP_VOID 1 | ||
15861 | _ACEOF | ||
15862 | |||
15863 | fi | ||
15864 | |||
15865 | |||
15866 | # Search for OpenSSL | ||
15867 | saved_CPPFLAGS="$CPPFLAGS" | ||
15868 | saved_LDFLAGS="$LDFLAGS" | ||
15869 | |||
15870 | # Check whether --with-ssl-dir was given. | ||
15871 | if test "${with_ssl_dir+set}" = set; then | ||
15872 | withval=$with_ssl_dir; | ||
15873 | if test "x$withval" != "xno" ; then | ||
15874 | case "$withval" in | ||
15875 | # Relative paths | ||
15876 | ./*|../*) withval="`pwd`/$withval" | ||
15877 | esac | ||
15878 | if test -d "$withval/lib"; then | ||
15879 | if test -n "${need_dash_r}"; then | ||
15880 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
15881 | else | ||
15882 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
15883 | fi | ||
15884 | else | ||
15885 | if test -n "${need_dash_r}"; then | ||
15886 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
15887 | else | ||
15888 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
15889 | fi | ||
15890 | fi | ||
15891 | if test -d "$withval/include"; then | ||
15892 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
15893 | else | ||
15894 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
15895 | fi | ||
15896 | fi | ||
15897 | |||
15898 | |||
15899 | fi | ||
15900 | |||
15901 | LIBS="-lcrypto $LIBS" | ||
15902 | cat >conftest.$ac_ext <<_ACEOF | ||
15903 | /* confdefs.h. */ | ||
15904 | _ACEOF | ||
15905 | cat confdefs.h >>conftest.$ac_ext | ||
15906 | cat >>conftest.$ac_ext <<_ACEOF | ||
15907 | /* end confdefs.h. */ | ||
15908 | |||
15909 | /* Override any GCC internal prototype to avoid an error. | ||
15910 | Use char because int might match the return type of a GCC | ||
15911 | builtin and then its argument prototype would still apply. */ | ||
15912 | #ifdef __cplusplus | ||
15913 | extern "C" | ||
15914 | #endif | ||
15915 | char RAND_add (); | ||
15916 | int | ||
15917 | main () | ||
15918 | { | ||
15919 | return RAND_add (); | ||
15920 | ; | ||
15921 | return 0; | ||
15922 | } | ||
15923 | _ACEOF | ||
15924 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15925 | if { (ac_try="$ac_link" | ||
15926 | case "(($ac_try" in | ||
15927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15928 | *) ac_try_echo=$ac_try;; | ||
15929 | esac | ||
15930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15931 | (eval "$ac_link") 2>conftest.er1 | ||
15932 | ac_status=$? | ||
15933 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15934 | rm -f conftest.er1 | ||
15935 | cat conftest.err >&5 | ||
15936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15937 | (exit $ac_status); } && { | ||
15938 | test -z "$ac_c_werror_flag" || | ||
15939 | test ! -s conftest.err | ||
15940 | } && test -s conftest$ac_exeext && | ||
15941 | $as_test_x conftest$ac_exeext; then | ||
15942 | |||
15943 | cat >>confdefs.h <<\_ACEOF | ||
15944 | #define HAVE_OPENSSL 1 | ||
15945 | _ACEOF | ||
15946 | |||
15947 | else | ||
15948 | echo "$as_me: failed program was:" >&5 | ||
15949 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15950 | |||
15951 | |||
15952 | if test -n "${need_dash_r}"; then | ||
15953 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
15954 | else | ||
15955 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
15956 | fi | ||
15957 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
15958 | cat >conftest.$ac_ext <<_ACEOF | ||
15959 | /* confdefs.h. */ | ||
15960 | _ACEOF | ||
15961 | cat confdefs.h >>conftest.$ac_ext | ||
15962 | cat >>conftest.$ac_ext <<_ACEOF | ||
15963 | /* end confdefs.h. */ | ||
15964 | |||
15965 | /* Override any GCC internal prototype to avoid an error. | ||
15966 | Use char because int might match the return type of a GCC | ||
15967 | builtin and then its argument prototype would still apply. */ | ||
15968 | #ifdef __cplusplus | ||
15969 | extern "C" | ||
15970 | #endif | ||
15971 | char RAND_add (); | ||
15972 | int | ||
15973 | main () | ||
15974 | { | ||
15975 | return RAND_add (); | ||
15976 | ; | ||
15977 | return 0; | ||
15978 | } | ||
15979 | _ACEOF | ||
15980 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15981 | if { (ac_try="$ac_link" | ||
15982 | case "(($ac_try" in | ||
15983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15984 | *) ac_try_echo=$ac_try;; | ||
15985 | esac | ||
15986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15987 | (eval "$ac_link") 2>conftest.er1 | ||
15988 | ac_status=$? | ||
15989 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15990 | rm -f conftest.er1 | ||
15991 | cat conftest.err >&5 | ||
15992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15993 | (exit $ac_status); } && { | ||
15994 | test -z "$ac_c_werror_flag" || | ||
15995 | test ! -s conftest.err | ||
15996 | } && test -s conftest$ac_exeext && | ||
15997 | $as_test_x conftest$ac_exeext; then | ||
15998 | cat >>confdefs.h <<\_ACEOF | ||
15999 | #define HAVE_OPENSSL 1 | ||
16000 | _ACEOF | ||
16001 | |||
16002 | else | ||
16003 | echo "$as_me: failed program was:" >&5 | ||
16004 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16005 | |||
16006 | |||
16007 | { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5 | ||
16008 | echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;} | ||
16009 | { (exit 1); exit 1; }; } | ||
16010 | |||
16011 | |||
16012 | fi | ||
16013 | |||
16014 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16015 | conftest$ac_exeext conftest.$ac_ext | ||
16016 | |||
16017 | |||
16018 | fi | ||
16019 | |||
16020 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16021 | conftest$ac_exeext conftest.$ac_ext | ||
16022 | |||
16023 | # Determine OpenSSL header version | ||
16024 | { echo "$as_me:$LINENO: checking OpenSSL header version" >&5 | ||
16025 | echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; } | ||
16026 | if test "$cross_compiling" = yes; then | ||
16027 | |||
16028 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
16029 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
16030 | |||
16031 | |||
16032 | else | ||
16033 | cat >conftest.$ac_ext <<_ACEOF | ||
16034 | /* confdefs.h. */ | ||
16035 | _ACEOF | ||
16036 | cat confdefs.h >>conftest.$ac_ext | ||
16037 | cat >>conftest.$ac_ext <<_ACEOF | ||
16038 | /* end confdefs.h. */ | ||
16039 | |||
16040 | #include <stdio.h> | ||
16041 | #include <string.h> | ||
16042 | #include <openssl/opensslv.h> | ||
16043 | #define DATA "conftest.sslincver" | ||
16044 | int main(void) { | ||
16045 | FILE *fd; | ||
16046 | int rc; | ||
16047 | |||
16048 | fd = fopen(DATA,"w"); | ||
16049 | if(fd == NULL) | ||
16050 | exit(1); | ||
16051 | |||
16052 | if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) | ||
16053 | exit(1); | ||
16054 | |||
16055 | exit(0); | ||
16056 | } | ||
16057 | |||
16058 | _ACEOF | ||
16059 | rm -f conftest$ac_exeext | ||
16060 | if { (ac_try="$ac_link" | ||
16061 | case "(($ac_try" in | ||
16062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16063 | *) ac_try_echo=$ac_try;; | ||
16064 | esac | ||
16065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16066 | (eval "$ac_link") 2>&5 | ||
16067 | ac_status=$? | ||
16068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16069 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16070 | { (case "(($ac_try" in | ||
16071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16072 | *) ac_try_echo=$ac_try;; | ||
16073 | esac | ||
16074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16075 | (eval "$ac_try") 2>&5 | ||
16076 | ac_status=$? | ||
16077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16078 | (exit $ac_status); }; }; then | ||
16079 | |||
16080 | ssl_header_ver=`cat conftest.sslincver` | ||
16081 | { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5 | ||
16082 | echo "${ECHO_T}$ssl_header_ver" >&6; } | ||
16083 | |||
16084 | else | ||
16085 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16086 | echo "$as_me: failed program was:" >&5 | ||
16087 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16088 | |||
16089 | ( exit $ac_status ) | ||
16090 | |||
16091 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
16092 | echo "${ECHO_T}not found" >&6; } | ||
16093 | { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5 | ||
16094 | echo "$as_me: error: OpenSSL version header not found." >&2;} | ||
16095 | { (exit 1); exit 1; }; } | ||
16096 | |||
16097 | fi | ||
16098 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16099 | fi | ||
16100 | |||
16101 | |||
16102 | |||
16103 | # Determine OpenSSL library version | ||
16104 | { echo "$as_me:$LINENO: checking OpenSSL library version" >&5 | ||
16105 | echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; } | ||
16106 | if test "$cross_compiling" = yes; then | ||
16107 | |||
16108 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
16109 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
16110 | |||
16111 | |||
16112 | else | ||
16113 | cat >conftest.$ac_ext <<_ACEOF | ||
16114 | /* confdefs.h. */ | ||
16115 | _ACEOF | ||
16116 | cat confdefs.h >>conftest.$ac_ext | ||
16117 | cat >>conftest.$ac_ext <<_ACEOF | ||
16118 | /* end confdefs.h. */ | ||
16119 | |||
16120 | #include <stdio.h> | ||
16121 | #include <string.h> | ||
16122 | #include <openssl/opensslv.h> | ||
16123 | #include <openssl/crypto.h> | ||
16124 | #define DATA "conftest.ssllibver" | ||
16125 | int main(void) { | ||
16126 | FILE *fd; | ||
16127 | int rc; | ||
16128 | |||
16129 | fd = fopen(DATA,"w"); | ||
16130 | if(fd == NULL) | ||
16131 | exit(1); | ||
16132 | |||
16133 | if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0) | ||
16134 | exit(1); | ||
16135 | |||
16136 | exit(0); | ||
16137 | } | ||
16138 | |||
16139 | _ACEOF | ||
16140 | rm -f conftest$ac_exeext | ||
16141 | if { (ac_try="$ac_link" | ||
16142 | case "(($ac_try" in | ||
16143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16144 | *) ac_try_echo=$ac_try;; | ||
16145 | esac | ||
16146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16147 | (eval "$ac_link") 2>&5 | ||
16148 | ac_status=$? | ||
16149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16150 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16151 | { (case "(($ac_try" in | ||
16152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16153 | *) ac_try_echo=$ac_try;; | ||
16154 | esac | ||
16155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16156 | (eval "$ac_try") 2>&5 | ||
16157 | ac_status=$? | ||
16158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16159 | (exit $ac_status); }; }; then | ||
16160 | |||
16161 | ssl_library_ver=`cat conftest.ssllibver` | ||
16162 | { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5 | ||
16163 | echo "${ECHO_T}$ssl_library_ver" >&6; } | ||
16164 | |||
16165 | else | ||
16166 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16167 | echo "$as_me: failed program was:" >&5 | ||
16168 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16169 | |||
16170 | ( exit $ac_status ) | ||
16171 | |||
16172 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
16173 | echo "${ECHO_T}not found" >&6; } | ||
16174 | { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5 | ||
16175 | echo "$as_me: error: OpenSSL library not found." >&2;} | ||
16176 | { (exit 1); exit 1; }; } | ||
16177 | |||
16178 | fi | ||
16179 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16180 | fi | ||
16181 | |||
16182 | |||
16183 | |||
16184 | |||
16185 | # Check whether --with-openssl-header-check was given. | ||
16186 | if test "${with_openssl_header_check+set}" = set; then | ||
16187 | withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then | ||
16188 | openssl_check_nonfatal=1 | ||
16189 | fi | ||
16190 | |||
16191 | |||
16192 | fi | ||
16193 | |||
16194 | |||
16195 | # Sanity check OpenSSL headers | ||
16196 | { echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5 | ||
16197 | echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; } | ||
16198 | if test "$cross_compiling" = yes; then | ||
16199 | |||
16200 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
16201 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
16202 | |||
16203 | |||
16204 | else | ||
16205 | cat >conftest.$ac_ext <<_ACEOF | ||
16206 | /* confdefs.h. */ | ||
16207 | _ACEOF | ||
16208 | cat confdefs.h >>conftest.$ac_ext | ||
16209 | cat >>conftest.$ac_ext <<_ACEOF | ||
16210 | /* end confdefs.h. */ | ||
16211 | |||
16212 | #include <string.h> | ||
16213 | #include <openssl/opensslv.h> | ||
16214 | int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); } | ||
16215 | |||
16216 | _ACEOF | ||
16217 | rm -f conftest$ac_exeext | ||
16218 | if { (ac_try="$ac_link" | ||
16219 | case "(($ac_try" in | ||
16220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16221 | *) ac_try_echo=$ac_try;; | ||
16222 | esac | ||
16223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16224 | (eval "$ac_link") 2>&5 | ||
16225 | ac_status=$? | ||
16226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16227 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16228 | { (case "(($ac_try" in | ||
16229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16230 | *) ac_try_echo=$ac_try;; | ||
16231 | esac | ||
16232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16233 | (eval "$ac_try") 2>&5 | ||
16234 | ac_status=$? | ||
16235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16236 | (exit $ac_status); }; }; then | ||
16237 | |||
16238 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16239 | echo "${ECHO_T}yes" >&6; } | ||
16240 | |||
16241 | else | ||
16242 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16243 | echo "$as_me: failed program was:" >&5 | ||
16244 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16245 | |||
16246 | ( exit $ac_status ) | ||
16247 | |||
16248 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16249 | echo "${ECHO_T}no" >&6; } | ||
16250 | if test "x$openssl_check_nonfatal" = "x"; then | ||
16251 | { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your | ||
16252 | library. Check config.log for details. | ||
16253 | If you are sure your installation is consistent, you can disable the check | ||
16254 | by running \"./configure --without-openssl-header-check\". | ||
16255 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
16256 | " >&5 | ||
16257 | echo "$as_me: error: Your OpenSSL headers do not match your | ||
16258 | library. Check config.log for details. | ||
16259 | If you are sure your installation is consistent, you can disable the check | ||
16260 | by running \"./configure --without-openssl-header-check\". | ||
16261 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
16262 | " >&2;} | ||
16263 | { (exit 1); exit 1; }; } | ||
16264 | else | ||
16265 | { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your | ||
16266 | library. Check config.log for details. | ||
16267 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 | ||
16268 | echo "$as_me: WARNING: Your OpenSSL headers do not match your | ||
16269 | library. Check config.log for details. | ||
16270 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} | ||
16271 | fi | ||
16272 | |||
16273 | fi | ||
16274 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16275 | fi | ||
16276 | |||
16277 | |||
16278 | |||
16279 | { echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5 | ||
16280 | echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; } | ||
16281 | cat >conftest.$ac_ext <<_ACEOF | ||
16282 | /* confdefs.h. */ | ||
16283 | _ACEOF | ||
16284 | cat confdefs.h >>conftest.$ac_ext | ||
16285 | cat >>conftest.$ac_ext <<_ACEOF | ||
16286 | /* end confdefs.h. */ | ||
16287 | |||
16288 | #include <openssl/evp.h> | ||
16289 | int main(void) { SSLeay_add_all_algorithms(); } | ||
16290 | |||
16291 | _ACEOF | ||
16292 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16293 | if { (ac_try="$ac_link" | ||
16294 | case "(($ac_try" in | ||
16295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16296 | *) ac_try_echo=$ac_try;; | ||
16297 | esac | ||
16298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16299 | (eval "$ac_link") 2>conftest.er1 | ||
16300 | ac_status=$? | ||
16301 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16302 | rm -f conftest.er1 | ||
16303 | cat conftest.err >&5 | ||
16304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16305 | (exit $ac_status); } && { | ||
16306 | test -z "$ac_c_werror_flag" || | ||
16307 | test ! -s conftest.err | ||
16308 | } && test -s conftest$ac_exeext && | ||
16309 | $as_test_x conftest$ac_exeext; then | ||
16310 | |||
16311 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16312 | echo "${ECHO_T}yes" >&6; } | ||
16313 | |||
16314 | else | ||
16315 | echo "$as_me: failed program was:" >&5 | ||
16316 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16317 | |||
16318 | |||
16319 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16320 | echo "${ECHO_T}no" >&6; } | ||
16321 | saved_LIBS="$LIBS" | ||
16322 | LIBS="$LIBS -ldl" | ||
16323 | { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5 | ||
16324 | echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; } | ||
16325 | cat >conftest.$ac_ext <<_ACEOF | ||
16326 | /* confdefs.h. */ | ||
16327 | _ACEOF | ||
16328 | cat confdefs.h >>conftest.$ac_ext | ||
16329 | cat >>conftest.$ac_ext <<_ACEOF | ||
16330 | /* end confdefs.h. */ | ||
16331 | |||
16332 | #include <openssl/evp.h> | ||
16333 | int main(void) { SSLeay_add_all_algorithms(); } | ||
16334 | |||
16335 | _ACEOF | ||
16336 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16337 | if { (ac_try="$ac_link" | ||
16338 | case "(($ac_try" in | ||
16339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16340 | *) ac_try_echo=$ac_try;; | ||
16341 | esac | ||
16342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16343 | (eval "$ac_link") 2>conftest.er1 | ||
16344 | ac_status=$? | ||
16345 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16346 | rm -f conftest.er1 | ||
16347 | cat conftest.err >&5 | ||
16348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16349 | (exit $ac_status); } && { | ||
16350 | test -z "$ac_c_werror_flag" || | ||
16351 | test ! -s conftest.err | ||
16352 | } && test -s conftest$ac_exeext && | ||
16353 | $as_test_x conftest$ac_exeext; then | ||
16354 | |||
16355 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16356 | echo "${ECHO_T}yes" >&6; } | ||
16357 | |||
16358 | else | ||
16359 | echo "$as_me: failed program was:" >&5 | ||
16360 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16361 | |||
16362 | |||
16363 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16364 | echo "${ECHO_T}no" >&6; } | ||
16365 | LIBS="$saved_LIBS" | ||
16366 | |||
16367 | |||
16368 | fi | ||
16369 | |||
16370 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16371 | conftest$ac_exeext conftest.$ac_ext | ||
16372 | |||
16373 | |||
16374 | fi | ||
16375 | |||
16376 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16377 | conftest$ac_exeext conftest.$ac_ext | ||
16378 | |||
16379 | |||
16380 | # Check whether --with-ssl-engine was given. | ||
16381 | if test "${with_ssl_engine+set}" = set; then | ||
16382 | withval=$with_ssl_engine; if test "x$withval" != "xno" ; then | ||
16383 | { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5 | ||
16384 | echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; } | ||
16385 | cat >conftest.$ac_ext <<_ACEOF | ||
16386 | /* confdefs.h. */ | ||
16387 | _ACEOF | ||
16388 | cat confdefs.h >>conftest.$ac_ext | ||
16389 | cat >>conftest.$ac_ext <<_ACEOF | ||
16390 | /* end confdefs.h. */ | ||
16391 | #include <openssl/engine.h> | ||
16392 | int | ||
16393 | main () | ||
16394 | { | ||
16395 | |||
16396 | ENGINE_load_builtin_engines();ENGINE_register_all_complete(); | ||
16397 | |||
16398 | ; | ||
16399 | return 0; | ||
16400 | } | ||
16401 | _ACEOF | ||
16402 | rm -f conftest.$ac_objext | ||
16403 | if { (ac_try="$ac_compile" | ||
16404 | case "(($ac_try" in | ||
16405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16406 | *) ac_try_echo=$ac_try;; | ||
16407 | esac | ||
16408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16409 | (eval "$ac_compile") 2>conftest.er1 | ||
16410 | ac_status=$? | ||
16411 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16412 | rm -f conftest.er1 | ||
16413 | cat conftest.err >&5 | ||
16414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16415 | (exit $ac_status); } && { | ||
16416 | test -z "$ac_c_werror_flag" || | ||
16417 | test ! -s conftest.err | ||
16418 | } && test -s conftest.$ac_objext; then | ||
16419 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16420 | echo "${ECHO_T}yes" >&6; } | ||
16421 | |||
16422 | cat >>confdefs.h <<\_ACEOF | ||
16423 | #define USE_OPENSSL_ENGINE 1 | ||
16424 | _ACEOF | ||
16425 | |||
16426 | |||
16427 | else | ||
16428 | echo "$as_me: failed program was:" >&5 | ||
16429 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16430 | |||
16431 | { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5 | ||
16432 | echo "$as_me: error: OpenSSL ENGINE support not found" >&2;} | ||
16433 | { (exit 1); exit 1; }; } | ||
16434 | |||
16435 | fi | ||
16436 | |||
16437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16438 | fi | ||
16439 | |||
16440 | fi | ||
16441 | |||
16442 | |||
16443 | # Check for OpenSSL without EVP_aes_{192,256}_cbc | ||
16444 | { echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5 | ||
16445 | echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; } | ||
16446 | cat >conftest.$ac_ext <<_ACEOF | ||
16447 | /* confdefs.h. */ | ||
16448 | _ACEOF | ||
16449 | cat confdefs.h >>conftest.$ac_ext | ||
16450 | cat >>conftest.$ac_ext <<_ACEOF | ||
16451 | /* end confdefs.h. */ | ||
16452 | |||
16453 | #include <string.h> | ||
16454 | #include <openssl/evp.h> | ||
16455 | int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);} | ||
16456 | |||
16457 | _ACEOF | ||
16458 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16459 | if { (ac_try="$ac_link" | ||
16460 | case "(($ac_try" in | ||
16461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16462 | *) ac_try_echo=$ac_try;; | ||
16463 | esac | ||
16464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16465 | (eval "$ac_link") 2>conftest.er1 | ||
16466 | ac_status=$? | ||
16467 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16468 | rm -f conftest.er1 | ||
16469 | cat conftest.err >&5 | ||
16470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16471 | (exit $ac_status); } && { | ||
16472 | test -z "$ac_c_werror_flag" || | ||
16473 | test ! -s conftest.err | ||
16474 | } && test -s conftest$ac_exeext && | ||
16475 | $as_test_x conftest$ac_exeext; then | ||
16476 | |||
16477 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16478 | echo "${ECHO_T}no" >&6; } | ||
16479 | |||
16480 | else | ||
16481 | echo "$as_me: failed program was:" >&5 | ||
16482 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16483 | |||
16484 | |||
16485 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16486 | echo "${ECHO_T}yes" >&6; } | ||
16487 | |||
16488 | cat >>confdefs.h <<\_ACEOF | ||
16489 | #define OPENSSL_LOBOTOMISED_AES 1 | ||
16490 | _ACEOF | ||
16491 | |||
16492 | |||
16493 | |||
16494 | fi | ||
16495 | |||
16496 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16497 | conftest$ac_exeext conftest.$ac_ext | ||
16498 | |||
16499 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
16500 | # because the system crypt() is more featureful. | ||
16501 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
16502 | |||
16503 | { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
16504 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } | ||
16505 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
16506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16507 | else | ||
16508 | ac_check_lib_save_LIBS=$LIBS | ||
16509 | LIBS="-lcrypt $LIBS" | ||
16510 | cat >conftest.$ac_ext <<_ACEOF | ||
16511 | /* confdefs.h. */ | ||
16512 | _ACEOF | ||
16513 | cat confdefs.h >>conftest.$ac_ext | ||
16514 | cat >>conftest.$ac_ext <<_ACEOF | ||
16515 | /* end confdefs.h. */ | ||
16516 | |||
16517 | /* Override any GCC internal prototype to avoid an error. | ||
16518 | Use char because int might match the return type of a GCC | ||
16519 | builtin and then its argument prototype would still apply. */ | ||
16520 | #ifdef __cplusplus | ||
16521 | extern "C" | ||
16522 | #endif | ||
16523 | char crypt (); | ||
16524 | int | ||
16525 | main () | ||
16526 | { | ||
16527 | return crypt (); | ||
16528 | ; | ||
16529 | return 0; | ||
16530 | } | ||
16531 | _ACEOF | ||
16532 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16533 | if { (ac_try="$ac_link" | ||
16534 | case "(($ac_try" in | ||
16535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16536 | *) ac_try_echo=$ac_try;; | ||
16537 | esac | ||
16538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16539 | (eval "$ac_link") 2>conftest.er1 | ||
16540 | ac_status=$? | ||
16541 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16542 | rm -f conftest.er1 | ||
16543 | cat conftest.err >&5 | ||
16544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16545 | (exit $ac_status); } && { | ||
16546 | test -z "$ac_c_werror_flag" || | ||
16547 | test ! -s conftest.err | ||
16548 | } && test -s conftest$ac_exeext && | ||
16549 | $as_test_x conftest$ac_exeext; then | ||
16550 | ac_cv_lib_crypt_crypt=yes | ||
16551 | else | ||
16552 | echo "$as_me: failed program was:" >&5 | ||
16553 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16554 | |||
16555 | ac_cv_lib_crypt_crypt=no | ||
16556 | fi | ||
16557 | |||
16558 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16559 | conftest$ac_exeext conftest.$ac_ext | ||
16560 | LIBS=$ac_check_lib_save_LIBS | ||
16561 | fi | ||
16562 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
16563 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; } | ||
16564 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
16565 | cat >>confdefs.h <<_ACEOF | ||
16566 | #define HAVE_LIBCRYPT 1 | ||
16567 | _ACEOF | ||
16568 | |||
16569 | LIBS="-lcrypt $LIBS" | ||
16570 | |||
16571 | fi | ||
16572 | |||
16573 | fi | ||
16574 | |||
16575 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
16576 | # version in OpenSSL. | ||
16577 | if test "x$check_for_libcrypt_later" = "x1"; then | ||
16578 | { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
16579 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } | ||
16580 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
16581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16582 | else | ||
16583 | ac_check_lib_save_LIBS=$LIBS | ||
16584 | LIBS="-lcrypt $LIBS" | ||
16585 | cat >conftest.$ac_ext <<_ACEOF | ||
16586 | /* confdefs.h. */ | ||
16587 | _ACEOF | ||
16588 | cat confdefs.h >>conftest.$ac_ext | ||
16589 | cat >>conftest.$ac_ext <<_ACEOF | ||
16590 | /* end confdefs.h. */ | ||
16591 | |||
16592 | /* Override any GCC internal prototype to avoid an error. | ||
16593 | Use char because int might match the return type of a GCC | ||
16594 | builtin and then its argument prototype would still apply. */ | ||
16595 | #ifdef __cplusplus | ||
16596 | extern "C" | ||
16597 | #endif | ||
16598 | char crypt (); | ||
16599 | int | ||
16600 | main () | ||
16601 | { | ||
16602 | return crypt (); | ||
16603 | ; | ||
16604 | return 0; | ||
16605 | } | ||
16606 | _ACEOF | ||
16607 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16608 | if { (ac_try="$ac_link" | ||
16609 | case "(($ac_try" in | ||
16610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16611 | *) ac_try_echo=$ac_try;; | ||
16612 | esac | ||
16613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16614 | (eval "$ac_link") 2>conftest.er1 | ||
16615 | ac_status=$? | ||
16616 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16617 | rm -f conftest.er1 | ||
16618 | cat conftest.err >&5 | ||
16619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16620 | (exit $ac_status); } && { | ||
16621 | test -z "$ac_c_werror_flag" || | ||
16622 | test ! -s conftest.err | ||
16623 | } && test -s conftest$ac_exeext && | ||
16624 | $as_test_x conftest$ac_exeext; then | ||
16625 | ac_cv_lib_crypt_crypt=yes | ||
16626 | else | ||
16627 | echo "$as_me: failed program was:" >&5 | ||
16628 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16629 | |||
16630 | ac_cv_lib_crypt_crypt=no | ||
16631 | fi | ||
16632 | |||
16633 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16634 | conftest$ac_exeext conftest.$ac_ext | ||
16635 | LIBS=$ac_check_lib_save_LIBS | ||
16636 | fi | ||
16637 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
16638 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; } | ||
16639 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
16640 | LIBS="$LIBS -lcrypt" | ||
16641 | fi | ||
16642 | |||
16643 | fi | ||
16644 | |||
16645 | # Search for SHA256 support in libc and/or OpenSSL | ||
16646 | |||
16647 | |||
16648 | for ac_func in SHA256_Update EVP_sha256 | ||
16649 | do | ||
16650 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
16651 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
16652 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
16653 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
16654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16655 | else | ||
16656 | cat >conftest.$ac_ext <<_ACEOF | ||
16657 | /* confdefs.h. */ | ||
16658 | _ACEOF | ||
16659 | cat confdefs.h >>conftest.$ac_ext | ||
16660 | cat >>conftest.$ac_ext <<_ACEOF | ||
16661 | /* end confdefs.h. */ | ||
16662 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
16663 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
16664 | #define $ac_func innocuous_$ac_func | ||
16665 | |||
16666 | /* System header to define __stub macros and hopefully few prototypes, | ||
16667 | which can conflict with char $ac_func (); below. | ||
16668 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
16669 | <limits.h> exists even on freestanding compilers. */ | ||
16670 | |||
16671 | #ifdef __STDC__ | ||
16672 | # include <limits.h> | ||
16673 | #else | ||
16674 | # include <assert.h> | ||
16675 | #endif | ||
16676 | |||
16677 | #undef $ac_func | ||
16678 | |||
16679 | /* Override any GCC internal prototype to avoid an error. | ||
16680 | Use char because int might match the return type of a GCC | ||
16681 | builtin and then its argument prototype would still apply. */ | ||
16682 | #ifdef __cplusplus | ||
16683 | extern "C" | ||
16684 | #endif | ||
16685 | char $ac_func (); | ||
16686 | /* The GNU C library defines this for functions which it implements | ||
16687 | to always fail with ENOSYS. Some functions are actually named | ||
16688 | something starting with __ and the normal name is an alias. */ | ||
16689 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
16690 | choke me | ||
16691 | #endif | ||
16692 | |||
16693 | int | ||
16694 | main () | ||
16695 | { | ||
16696 | return $ac_func (); | ||
16697 | ; | ||
16698 | return 0; | ||
16699 | } | ||
16700 | _ACEOF | ||
16701 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16702 | if { (ac_try="$ac_link" | ||
16703 | case "(($ac_try" in | ||
16704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16705 | *) ac_try_echo=$ac_try;; | ||
16706 | esac | ||
16707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16708 | (eval "$ac_link") 2>conftest.er1 | ||
16709 | ac_status=$? | ||
16710 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16711 | rm -f conftest.er1 | ||
16712 | cat conftest.err >&5 | ||
16713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16714 | (exit $ac_status); } && { | ||
16715 | test -z "$ac_c_werror_flag" || | ||
16716 | test ! -s conftest.err | ||
16717 | } && test -s conftest$ac_exeext && | ||
16718 | $as_test_x conftest$ac_exeext; then | ||
16719 | eval "$as_ac_var=yes" | ||
16720 | else | ||
16721 | echo "$as_me: failed program was:" >&5 | ||
16722 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16723 | |||
16724 | eval "$as_ac_var=no" | ||
16725 | fi | ||
16726 | |||
16727 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16728 | conftest$ac_exeext conftest.$ac_ext | ||
16729 | fi | ||
16730 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
16731 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
16732 | echo "${ECHO_T}$ac_res" >&6; } | ||
16733 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
16734 | cat >>confdefs.h <<_ACEOF | ||
16735 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
16736 | _ACEOF | ||
16737 | |||
16738 | fi | ||
16739 | done | ||
16740 | |||
16741 | |||
16742 | saved_LIBS="$LIBS" | ||
16743 | { echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5 | ||
16744 | echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; } | ||
16745 | if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then | ||
16746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16747 | else | ||
16748 | ac_check_lib_save_LIBS=$LIBS | ||
16749 | LIBS="-liaf $LIBS" | ||
16750 | cat >conftest.$ac_ext <<_ACEOF | ||
16751 | /* confdefs.h. */ | ||
16752 | _ACEOF | ||
16753 | cat confdefs.h >>conftest.$ac_ext | ||
16754 | cat >>conftest.$ac_ext <<_ACEOF | ||
16755 | /* end confdefs.h. */ | ||
16756 | |||
16757 | /* Override any GCC internal prototype to avoid an error. | ||
16758 | Use char because int might match the return type of a GCC | ||
16759 | builtin and then its argument prototype would still apply. */ | ||
16760 | #ifdef __cplusplus | ||
16761 | extern "C" | ||
16762 | #endif | ||
16763 | char ia_openinfo (); | ||
16764 | int | ||
16765 | main () | ||
16766 | { | ||
16767 | return ia_openinfo (); | ||
16768 | ; | ||
16769 | return 0; | ||
16770 | } | ||
16771 | _ACEOF | ||
16772 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16773 | if { (ac_try="$ac_link" | ||
16774 | case "(($ac_try" in | ||
16775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16776 | *) ac_try_echo=$ac_try;; | ||
16777 | esac | ||
16778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16779 | (eval "$ac_link") 2>conftest.er1 | ||
16780 | ac_status=$? | ||
16781 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16782 | rm -f conftest.er1 | ||
16783 | cat conftest.err >&5 | ||
16784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16785 | (exit $ac_status); } && { | ||
16786 | test -z "$ac_c_werror_flag" || | ||
16787 | test ! -s conftest.err | ||
16788 | } && test -s conftest$ac_exeext && | ||
16789 | $as_test_x conftest$ac_exeext; then | ||
16790 | ac_cv_lib_iaf_ia_openinfo=yes | ||
16791 | else | ||
16792 | echo "$as_me: failed program was:" >&5 | ||
16793 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16794 | |||
16795 | ac_cv_lib_iaf_ia_openinfo=no | ||
16796 | fi | ||
16797 | |||
16798 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16799 | conftest$ac_exeext conftest.$ac_ext | ||
16800 | LIBS=$ac_check_lib_save_LIBS | ||
16801 | fi | ||
16802 | { echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5 | ||
16803 | echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; } | ||
16804 | if test $ac_cv_lib_iaf_ia_openinfo = yes; then | ||
16805 | |||
16806 | LIBS="$LIBS -liaf" | ||
16807 | |||
16808 | for ac_func in set_id | ||
16809 | do | ||
16810 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
16811 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
16812 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
16813 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
16814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16815 | else | ||
16816 | cat >conftest.$ac_ext <<_ACEOF | ||
16817 | /* confdefs.h. */ | ||
16818 | _ACEOF | ||
16819 | cat confdefs.h >>conftest.$ac_ext | ||
16820 | cat >>conftest.$ac_ext <<_ACEOF | ||
16821 | /* end confdefs.h. */ | ||
16822 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
16823 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
16824 | #define $ac_func innocuous_$ac_func | ||
16825 | |||
16826 | /* System header to define __stub macros and hopefully few prototypes, | ||
16827 | which can conflict with char $ac_func (); below. | ||
16828 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
16829 | <limits.h> exists even on freestanding compilers. */ | ||
16830 | |||
16831 | #ifdef __STDC__ | ||
16832 | # include <limits.h> | ||
16833 | #else | ||
16834 | # include <assert.h> | ||
16835 | #endif | ||
16836 | |||
16837 | #undef $ac_func | ||
16838 | |||
16839 | /* Override any GCC internal prototype to avoid an error. | ||
16840 | Use char because int might match the return type of a GCC | ||
16841 | builtin and then its argument prototype would still apply. */ | ||
16842 | #ifdef __cplusplus | ||
16843 | extern "C" | ||
16844 | #endif | ||
16845 | char $ac_func (); | ||
16846 | /* The GNU C library defines this for functions which it implements | ||
16847 | to always fail with ENOSYS. Some functions are actually named | ||
16848 | something starting with __ and the normal name is an alias. */ | ||
16849 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
16850 | choke me | ||
16851 | #endif | ||
16852 | |||
16853 | int | ||
16854 | main () | ||
16855 | { | ||
16856 | return $ac_func (); | ||
16857 | ; | ||
16858 | return 0; | ||
16859 | } | ||
16860 | _ACEOF | ||
16861 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16862 | if { (ac_try="$ac_link" | ||
16863 | case "(($ac_try" in | ||
16864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16865 | *) ac_try_echo=$ac_try;; | ||
16866 | esac | ||
16867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16868 | (eval "$ac_link") 2>conftest.er1 | ||
16869 | ac_status=$? | ||
16870 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16871 | rm -f conftest.er1 | ||
16872 | cat conftest.err >&5 | ||
16873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16874 | (exit $ac_status); } && { | ||
16875 | test -z "$ac_c_werror_flag" || | ||
16876 | test ! -s conftest.err | ||
16877 | } && test -s conftest$ac_exeext && | ||
16878 | $as_test_x conftest$ac_exeext; then | ||
16879 | eval "$as_ac_var=yes" | ||
16880 | else | ||
16881 | echo "$as_me: failed program was:" >&5 | ||
16882 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16883 | |||
16884 | eval "$as_ac_var=no" | ||
16885 | fi | ||
16886 | |||
16887 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16888 | conftest$ac_exeext conftest.$ac_ext | ||
16889 | fi | ||
16890 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
16891 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
16892 | echo "${ECHO_T}$ac_res" >&6; } | ||
16893 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
16894 | cat >>confdefs.h <<_ACEOF | ||
16895 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
16896 | _ACEOF | ||
16897 | SSHDLIBS="$SSHDLIBS -liaf" | ||
16898 | |||
16899 | cat >>confdefs.h <<\_ACEOF | ||
16900 | #define HAVE_LIBIAF 1 | ||
16901 | _ACEOF | ||
16902 | |||
16903 | |||
16904 | fi | ||
16905 | done | ||
16906 | |||
16907 | |||
16908 | fi | ||
16909 | |||
16910 | LIBS="$saved_LIBS" | ||
16911 | |||
16912 | ### Configure cryptographic random number support | ||
16913 | |||
16914 | # Check wheter OpenSSL seeds itself | ||
16915 | { echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
16916 | echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; } | ||
16917 | if test "$cross_compiling" = yes; then | ||
16918 | |||
16919 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5 | ||
16920 | echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
16921 | # This is safe, since all recent OpenSSL versions will | ||
16922 | # complain at runtime if not seeded correctly. | ||
16923 | OPENSSL_SEEDS_ITSELF=yes | ||
16924 | |||
16925 | |||
16926 | else | ||
16927 | cat >conftest.$ac_ext <<_ACEOF | ||
16928 | /* confdefs.h. */ | ||
16929 | _ACEOF | ||
16930 | cat confdefs.h >>conftest.$ac_ext | ||
16931 | cat >>conftest.$ac_ext <<_ACEOF | ||
16932 | /* end confdefs.h. */ | ||
16933 | |||
16934 | #include <string.h> | ||
16935 | #include <openssl/rand.h> | ||
16936 | int main(void) { exit(RAND_status() == 1 ? 0 : 1); } | ||
16937 | |||
16938 | _ACEOF | ||
16939 | rm -f conftest$ac_exeext | ||
16940 | if { (ac_try="$ac_link" | ||
16941 | case "(($ac_try" in | ||
16942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16943 | *) ac_try_echo=$ac_try;; | ||
16944 | esac | ||
16945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16946 | (eval "$ac_link") 2>&5 | ||
16947 | ac_status=$? | ||
16948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16949 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16950 | { (case "(($ac_try" in | ||
16951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16952 | *) ac_try_echo=$ac_try;; | ||
16953 | esac | ||
16954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16955 | (eval "$ac_try") 2>&5 | ||
16956 | ac_status=$? | ||
16957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16958 | (exit $ac_status); }; }; then | ||
16959 | |||
16960 | OPENSSL_SEEDS_ITSELF=yes | ||
16961 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16962 | echo "${ECHO_T}yes" >&6; } | ||
16963 | |||
16964 | else | ||
16965 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16966 | echo "$as_me: failed program was:" >&5 | ||
16967 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16968 | |||
16969 | ( exit $ac_status ) | ||
16970 | |||
16971 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16972 | echo "${ECHO_T}no" >&6; } | ||
16973 | # Default to use of the rand helper if OpenSSL doesn't | ||
16974 | # seed itself | ||
16975 | USE_RAND_HELPER=yes | ||
16976 | |||
16977 | fi | ||
16978 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16979 | fi | ||
16980 | |||
16981 | |||
16982 | |||
16983 | # Check for PAM libs | ||
16984 | PAM_MSG="no" | ||
16985 | |||
16986 | # Check whether --with-pam was given. | ||
16987 | if test "${with_pam+set}" = set; then | ||
16988 | withval=$with_pam; | ||
16989 | if test "x$withval" != "xno" ; then | ||
16990 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ | ||
16991 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then | ||
16992 | { { echo "$as_me:$LINENO: error: PAM headers not found" >&5 | ||
16993 | echo "$as_me: error: PAM headers not found" >&2;} | ||
16994 | { (exit 1); exit 1; }; } | ||
16995 | fi | ||
16996 | |||
16997 | saved_LIBS="$LIBS" | ||
16998 | |||
16999 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
17000 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | ||
17001 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
17002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17003 | else | ||
17004 | ac_check_lib_save_LIBS=$LIBS | ||
17005 | LIBS="-ldl $LIBS" | ||
17006 | cat >conftest.$ac_ext <<_ACEOF | ||
17007 | /* confdefs.h. */ | ||
17008 | _ACEOF | ||
17009 | cat confdefs.h >>conftest.$ac_ext | ||
17010 | cat >>conftest.$ac_ext <<_ACEOF | ||
17011 | /* end confdefs.h. */ | ||
17012 | |||
17013 | /* Override any GCC internal prototype to avoid an error. | ||
17014 | Use char because int might match the return type of a GCC | ||
17015 | builtin and then its argument prototype would still apply. */ | ||
17016 | #ifdef __cplusplus | ||
17017 | extern "C" | ||
17018 | #endif | ||
17019 | char dlopen (); | ||
17020 | int | ||
17021 | main () | ||
17022 | { | ||
17023 | return dlopen (); | ||
17024 | ; | ||
17025 | return 0; | ||
17026 | } | ||
17027 | _ACEOF | ||
17028 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17029 | if { (ac_try="$ac_link" | ||
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_link") 2>conftest.er1 | ||
17036 | ac_status=$? | ||
17037 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17038 | rm -f conftest.er1 | ||
17039 | cat conftest.err >&5 | ||
17040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17041 | (exit $ac_status); } && { | ||
17042 | test -z "$ac_c_werror_flag" || | ||
17043 | test ! -s conftest.err | ||
17044 | } && test -s conftest$ac_exeext && | ||
17045 | $as_test_x conftest$ac_exeext; then | ||
17046 | ac_cv_lib_dl_dlopen=yes | ||
17047 | else | ||
17048 | echo "$as_me: failed program was:" >&5 | ||
17049 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17050 | |||
17051 | ac_cv_lib_dl_dlopen=no | ||
17052 | fi | ||
17053 | |||
17054 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17055 | conftest$ac_exeext conftest.$ac_ext | ||
17056 | LIBS=$ac_check_lib_save_LIBS | ||
17057 | fi | ||
17058 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
17059 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | ||
17060 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
17061 | cat >>confdefs.h <<_ACEOF | ||
17062 | #define HAVE_LIBDL 1 | ||
17063 | _ACEOF | ||
17064 | |||
17065 | LIBS="-ldl $LIBS" | ||
17066 | |||
17067 | fi | ||
17068 | |||
17069 | |||
17070 | { echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5 | ||
17071 | echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; } | ||
17072 | if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then | ||
17073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17074 | else | ||
17075 | ac_check_lib_save_LIBS=$LIBS | ||
17076 | LIBS="-lpam $LIBS" | ||
17077 | cat >conftest.$ac_ext <<_ACEOF | ||
17078 | /* confdefs.h. */ | ||
17079 | _ACEOF | ||
17080 | cat confdefs.h >>conftest.$ac_ext | ||
17081 | cat >>conftest.$ac_ext <<_ACEOF | ||
17082 | /* end confdefs.h. */ | ||
17083 | |||
17084 | /* Override any GCC internal prototype to avoid an error. | ||
17085 | Use char because int might match the return type of a GCC | ||
17086 | builtin and then its argument prototype would still apply. */ | ||
17087 | #ifdef __cplusplus | ||
17088 | extern "C" | ||
17089 | #endif | ||
17090 | char pam_set_item (); | ||
17091 | int | ||
17092 | main () | ||
17093 | { | ||
17094 | return pam_set_item (); | ||
17095 | ; | ||
17096 | return 0; | ||
17097 | } | ||
17098 | _ACEOF | ||
17099 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17100 | if { (ac_try="$ac_link" | ||
17101 | case "(($ac_try" in | ||
17102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17103 | *) ac_try_echo=$ac_try;; | ||
17104 | esac | ||
17105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17106 | (eval "$ac_link") 2>conftest.er1 | ||
17107 | ac_status=$? | ||
17108 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17109 | rm -f conftest.er1 | ||
17110 | cat conftest.err >&5 | ||
17111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17112 | (exit $ac_status); } && { | ||
17113 | test -z "$ac_c_werror_flag" || | ||
17114 | test ! -s conftest.err | ||
17115 | } && test -s conftest$ac_exeext && | ||
17116 | $as_test_x conftest$ac_exeext; then | ||
17117 | ac_cv_lib_pam_pam_set_item=yes | ||
17118 | else | ||
17119 | echo "$as_me: failed program was:" >&5 | ||
17120 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17121 | |||
17122 | ac_cv_lib_pam_pam_set_item=no | ||
17123 | fi | ||
17124 | |||
17125 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17126 | conftest$ac_exeext conftest.$ac_ext | ||
17127 | LIBS=$ac_check_lib_save_LIBS | ||
17128 | fi | ||
17129 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
17130 | echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; } | ||
17131 | if test $ac_cv_lib_pam_pam_set_item = yes; then | ||
17132 | cat >>confdefs.h <<_ACEOF | ||
17133 | #define HAVE_LIBPAM 1 | ||
17134 | _ACEOF | ||
17135 | |||
17136 | LIBS="-lpam $LIBS" | ||
17137 | |||
17138 | else | ||
17139 | { { echo "$as_me:$LINENO: error: *** libpam missing" >&5 | ||
17140 | echo "$as_me: error: *** libpam missing" >&2;} | ||
17141 | { (exit 1); exit 1; }; } | ||
17142 | fi | ||
17143 | |||
17144 | |||
17145 | for ac_func in pam_getenvlist | ||
17146 | do | ||
17147 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17148 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
17149 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
17150 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
17151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17152 | else | ||
17153 | cat >conftest.$ac_ext <<_ACEOF | ||
17154 | /* confdefs.h. */ | ||
17155 | _ACEOF | ||
17156 | cat confdefs.h >>conftest.$ac_ext | ||
17157 | cat >>conftest.$ac_ext <<_ACEOF | ||
17158 | /* end confdefs.h. */ | ||
17159 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
17160 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
17161 | #define $ac_func innocuous_$ac_func | ||
17162 | |||
17163 | /* System header to define __stub macros and hopefully few prototypes, | ||
17164 | which can conflict with char $ac_func (); below. | ||
17165 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
17166 | <limits.h> exists even on freestanding compilers. */ | ||
17167 | |||
17168 | #ifdef __STDC__ | ||
17169 | # include <limits.h> | ||
17170 | #else | ||
17171 | # include <assert.h> | ||
17172 | #endif | ||
17173 | |||
17174 | #undef $ac_func | ||
17175 | |||
17176 | /* Override any GCC internal prototype to avoid an error. | ||
17177 | Use char because int might match the return type of a GCC | ||
17178 | builtin and then its argument prototype would still apply. */ | ||
17179 | #ifdef __cplusplus | ||
17180 | extern "C" | ||
17181 | #endif | ||
17182 | char $ac_func (); | ||
17183 | /* The GNU C library defines this for functions which it implements | ||
17184 | to always fail with ENOSYS. Some functions are actually named | ||
17185 | something starting with __ and the normal name is an alias. */ | ||
17186 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
17187 | choke me | ||
17188 | #endif | ||
17189 | |||
17190 | int | ||
17191 | main () | ||
17192 | { | ||
17193 | return $ac_func (); | ||
17194 | ; | ||
17195 | return 0; | ||
17196 | } | ||
17197 | _ACEOF | ||
17198 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17199 | if { (ac_try="$ac_link" | ||
17200 | case "(($ac_try" in | ||
17201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17202 | *) ac_try_echo=$ac_try;; | ||
17203 | esac | ||
17204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17205 | (eval "$ac_link") 2>conftest.er1 | ||
17206 | ac_status=$? | ||
17207 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17208 | rm -f conftest.er1 | ||
17209 | cat conftest.err >&5 | ||
17210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17211 | (exit $ac_status); } && { | ||
17212 | test -z "$ac_c_werror_flag" || | ||
17213 | test ! -s conftest.err | ||
17214 | } && test -s conftest$ac_exeext && | ||
17215 | $as_test_x conftest$ac_exeext; then | ||
17216 | eval "$as_ac_var=yes" | ||
17217 | else | ||
17218 | echo "$as_me: failed program was:" >&5 | ||
17219 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17220 | |||
17221 | eval "$as_ac_var=no" | ||
17222 | fi | ||
17223 | |||
17224 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17225 | conftest$ac_exeext conftest.$ac_ext | ||
17226 | fi | ||
17227 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
17228 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
17229 | echo "${ECHO_T}$ac_res" >&6; } | ||
17230 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
17231 | cat >>confdefs.h <<_ACEOF | ||
17232 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17233 | _ACEOF | ||
17234 | |||
17235 | fi | ||
17236 | done | ||
17237 | |||
17238 | |||
17239 | for ac_func in pam_putenv | ||
17240 | do | ||
17241 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17242 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
17243 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
17244 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
17245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17246 | else | ||
17247 | cat >conftest.$ac_ext <<_ACEOF | ||
17248 | /* confdefs.h. */ | ||
17249 | _ACEOF | ||
17250 | cat confdefs.h >>conftest.$ac_ext | ||
17251 | cat >>conftest.$ac_ext <<_ACEOF | ||
17252 | /* end confdefs.h. */ | ||
17253 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
17254 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
17255 | #define $ac_func innocuous_$ac_func | ||
17256 | |||
17257 | /* System header to define __stub macros and hopefully few prototypes, | ||
17258 | which can conflict with char $ac_func (); below. | ||
17259 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
17260 | <limits.h> exists even on freestanding compilers. */ | ||
17261 | |||
17262 | #ifdef __STDC__ | ||
17263 | # include <limits.h> | ||
17264 | #else | ||
17265 | # include <assert.h> | ||
17266 | #endif | ||
17267 | |||
17268 | #undef $ac_func | ||
17269 | |||
17270 | /* Override any GCC internal prototype to avoid an error. | ||
17271 | Use char because int might match the return type of a GCC | ||
17272 | builtin and then its argument prototype would still apply. */ | ||
17273 | #ifdef __cplusplus | ||
17274 | extern "C" | ||
17275 | #endif | ||
17276 | char $ac_func (); | ||
17277 | /* The GNU C library defines this for functions which it implements | ||
17278 | to always fail with ENOSYS. Some functions are actually named | ||
17279 | something starting with __ and the normal name is an alias. */ | ||
17280 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
17281 | choke me | ||
17282 | #endif | ||
17283 | |||
17284 | int | ||
17285 | main () | ||
17286 | { | ||
17287 | return $ac_func (); | ||
17288 | ; | ||
17289 | return 0; | ||
17290 | } | ||
17291 | _ACEOF | ||
17292 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17293 | if { (ac_try="$ac_link" | ||
17294 | case "(($ac_try" in | ||
17295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17296 | *) ac_try_echo=$ac_try;; | ||
17297 | esac | ||
17298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17299 | (eval "$ac_link") 2>conftest.er1 | ||
17300 | ac_status=$? | ||
17301 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17302 | rm -f conftest.er1 | ||
17303 | cat conftest.err >&5 | ||
17304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17305 | (exit $ac_status); } && { | ||
17306 | test -z "$ac_c_werror_flag" || | ||
17307 | test ! -s conftest.err | ||
17308 | } && test -s conftest$ac_exeext && | ||
17309 | $as_test_x conftest$ac_exeext; then | ||
17310 | eval "$as_ac_var=yes" | ||
17311 | else | ||
17312 | echo "$as_me: failed program was:" >&5 | ||
17313 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17314 | |||
17315 | eval "$as_ac_var=no" | ||
17316 | fi | ||
17317 | |||
17318 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17319 | conftest$ac_exeext conftest.$ac_ext | ||
17320 | fi | ||
17321 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
17322 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
17323 | echo "${ECHO_T}$ac_res" >&6; } | ||
17324 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
17325 | cat >>confdefs.h <<_ACEOF | ||
17326 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17327 | _ACEOF | ||
17328 | |||
17329 | fi | ||
17330 | done | ||
17331 | |||
17332 | LIBS="$saved_LIBS" | ||
17333 | |||
17334 | PAM_MSG="yes" | ||
17335 | |||
17336 | SSHDLIBS="$SSHDLIBS -lpam" | ||
17337 | |||
17338 | cat >>confdefs.h <<\_ACEOF | ||
17339 | #define USE_PAM 1 | ||
17340 | _ACEOF | ||
17341 | |||
17342 | |||
17343 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
17344 | case "$LIBS" in | ||
17345 | *-ldl*) | ||
17346 | # libdl already in LIBS | ||
17347 | ;; | ||
17348 | *) | ||
17349 | SSHDLIBS="$SSHDLIBS -ldl" | ||
17350 | ;; | ||
17351 | esac | ||
17352 | fi | ||
17353 | fi | ||
17354 | |||
17355 | |||
17356 | fi | ||
17357 | |||
17358 | |||
17359 | # Check for older PAM | ||
17360 | if test "x$PAM_MSG" = "xyes" ; then | ||
17361 | # Check PAM strerror arguments (old PAM) | ||
17362 | { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5 | ||
17363 | echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; } | ||
17364 | cat >conftest.$ac_ext <<_ACEOF | ||
17365 | /* confdefs.h. */ | ||
17366 | _ACEOF | ||
17367 | cat confdefs.h >>conftest.$ac_ext | ||
17368 | cat >>conftest.$ac_ext <<_ACEOF | ||
17369 | /* end confdefs.h. */ | ||
17370 | |||
17371 | #include <stdlib.h> | ||
17372 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
17373 | #include <security/pam_appl.h> | ||
17374 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
17375 | #include <pam/pam_appl.h> | ||
17376 | #endif | ||
17377 | |||
17378 | int | ||
17379 | main () | ||
17380 | { | ||
17381 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
17382 | ; | ||
17383 | return 0; | ||
17384 | } | ||
17385 | _ACEOF | ||
17386 | rm -f conftest.$ac_objext | ||
17387 | if { (ac_try="$ac_compile" | ||
17388 | case "(($ac_try" in | ||
17389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17390 | *) ac_try_echo=$ac_try;; | ||
17391 | esac | ||
17392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17393 | (eval "$ac_compile") 2>conftest.er1 | ||
17394 | ac_status=$? | ||
17395 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17396 | rm -f conftest.er1 | ||
17397 | cat conftest.err >&5 | ||
17398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17399 | (exit $ac_status); } && { | ||
17400 | test -z "$ac_c_werror_flag" || | ||
17401 | test ! -s conftest.err | ||
17402 | } && test -s conftest.$ac_objext; then | ||
17403 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17404 | echo "${ECHO_T}no" >&6; } | ||
17405 | else | ||
17406 | echo "$as_me: failed program was:" >&5 | ||
17407 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17408 | |||
17409 | |||
17410 | |||
17411 | cat >>confdefs.h <<\_ACEOF | ||
17412 | #define HAVE_OLD_PAM 1 | ||
17413 | _ACEOF | ||
17414 | |||
17415 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
17416 | echo "${ECHO_T}yes" >&6; } | ||
17417 | PAM_MSG="yes (old library)" | ||
17418 | |||
17419 | |||
17420 | fi | ||
17421 | |||
17422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17423 | fi | ||
17424 | |||
17425 | # Do we want to force the use of the rand helper? | ||
17426 | |||
17427 | # Check whether --with-rand-helper was given. | ||
17428 | if test "${with_rand_helper+set}" = set; then | ||
17429 | withval=$with_rand_helper; | ||
17430 | if test "x$withval" = "xno" ; then | ||
17431 | # Force use of OpenSSL's internal RNG, even if | ||
17432 | # the previous test showed it to be unseeded. | ||
17433 | if test -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
17434 | { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5 | ||
17435 | echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;} | ||
17436 | OPENSSL_SEEDS_ITSELF=yes | ||
17437 | USE_RAND_HELPER="" | ||
17438 | fi | ||
17439 | else | ||
17440 | USE_RAND_HELPER=yes | ||
17441 | fi | ||
17442 | |||
17443 | fi | ||
17444 | |||
17445 | |||
17446 | # Which randomness source do we use? | ||
17447 | if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then | ||
17448 | # OpenSSL only | ||
17449 | |||
17450 | cat >>confdefs.h <<\_ACEOF | ||
17451 | #define OPENSSL_PRNG_ONLY 1 | ||
17452 | _ACEOF | ||
17453 | |||
17454 | RAND_MSG="OpenSSL internal ONLY" | ||
17455 | INSTALL_SSH_RAND_HELPER="" | ||
17456 | elif test ! -z "$USE_RAND_HELPER" ; then | ||
17457 | # install rand helper | ||
17458 | RAND_MSG="ssh-rand-helper" | ||
17459 | INSTALL_SSH_RAND_HELPER="yes" | ||
17460 | fi | ||
17461 | |||
17462 | |||
17463 | ### Configuration of ssh-rand-helper | ||
17464 | |||
17465 | # PRNGD TCP socket | ||
17466 | |||
17467 | # Check whether --with-prngd-port was given. | ||
17468 | if test "${with_prngd_port+set}" = set; then | ||
17469 | withval=$with_prngd_port; | ||
17470 | case "$withval" in | ||
17471 | no) | ||
17472 | withval="" | ||
17473 | ;; | ||
17474 | [0-9]*) | ||
17475 | ;; | ||
17476 | *) | ||
17477 | { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5 | ||
17478 | echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;} | ||
17479 | { (exit 1); exit 1; }; } | ||
17480 | ;; | ||
17481 | esac | ||
17482 | if test ! -z "$withval" ; then | ||
17483 | PRNGD_PORT="$withval" | ||
17484 | |||
17485 | cat >>confdefs.h <<_ACEOF | ||
17486 | #define PRNGD_PORT $PRNGD_PORT | ||
17487 | _ACEOF | ||
17488 | |||
17489 | fi | ||
17490 | |||
17491 | |||
17492 | fi | ||
17493 | |||
17494 | |||
17495 | # PRNGD Unix domain socket | ||
17496 | |||
17497 | # Check whether --with-prngd-socket was given. | ||
17498 | if test "${with_prngd_socket+set}" = set; then | ||
17499 | withval=$with_prngd_socket; | ||
17500 | case "$withval" in | ||
17501 | yes) | ||
17502 | withval="/var/run/egd-pool" | ||
17503 | ;; | ||
17504 | no) | ||
17505 | withval="" | ||
17506 | ;; | ||
17507 | /*) | ||
17508 | ;; | ||
17509 | *) | ||
17510 | { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5 | ||
17511 | echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;} | ||
17512 | { (exit 1); exit 1; }; } | ||
17513 | ;; | ||
17514 | esac | ||
17515 | |||
17516 | if test ! -z "$withval" ; then | ||
17517 | if test ! -z "$PRNGD_PORT" ; then | ||
17518 | { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5 | ||
17519 | echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;} | ||
17520 | { (exit 1); exit 1; }; } | ||
17521 | fi | ||
17522 | if test ! -r "$withval" ; then | ||
17523 | { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5 | ||
17524 | echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
17525 | fi | ||
17526 | PRNGD_SOCKET="$withval" | ||
17527 | |||
17528 | cat >>confdefs.h <<_ACEOF | ||
17529 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
17530 | _ACEOF | ||
17531 | |||
17532 | fi | ||
17533 | |||
17534 | else | ||
17535 | |||
17536 | # Check for existing socket only if we don't have a random device already | ||
17537 | if test "$USE_RAND_HELPER" = yes ; then | ||
17538 | { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5 | ||
17539 | echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; } | ||
17540 | # Insert other locations here | ||
17541 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
17542 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
17543 | PRNGD_SOCKET="$sock" | ||
17544 | cat >>confdefs.h <<_ACEOF | ||
17545 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
17546 | _ACEOF | ||
17547 | |||
17548 | break; | ||
17549 | fi | ||
17550 | done | ||
17551 | if test ! -z "$PRNGD_SOCKET" ; then | ||
17552 | { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5 | ||
17553 | echo "${ECHO_T}$PRNGD_SOCKET" >&6; } | ||
17554 | else | ||
17555 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
17556 | echo "${ECHO_T}not found" >&6; } | ||
17557 | fi | ||
17558 | fi | ||
17559 | |||
17560 | |||
17561 | fi | ||
17562 | |||
17563 | |||
17564 | # Change default command timeout for hashing entropy source | ||
17565 | entropy_timeout=200 | ||
17566 | |||
17567 | # Check whether --with-entropy-timeout was given. | ||
17568 | if test "${with_entropy_timeout+set}" = set; then | ||
17569 | withval=$with_entropy_timeout; | ||
17570 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
17571 | test "x${withval}" != "xyes"; then | ||
17572 | entropy_timeout=$withval | ||
17573 | fi | ||
17574 | |||
17575 | |||
17576 | fi | ||
17577 | |||
17578 | |||
17579 | cat >>confdefs.h <<_ACEOF | ||
17580 | #define ENTROPY_TIMEOUT_MSEC $entropy_timeout | ||
17581 | _ACEOF | ||
17582 | |||
17583 | |||
17584 | SSH_PRIVSEP_USER=sshd | ||
17585 | |||
17586 | # Check whether --with-privsep-user was given. | ||
17587 | if test "${with_privsep_user+set}" = set; then | ||
17588 | withval=$with_privsep_user; | ||
17589 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
17590 | test "x${withval}" != "xyes"; then | ||
17591 | SSH_PRIVSEP_USER=$withval | ||
17592 | fi | ||
17593 | |||
17594 | |||
17595 | fi | ||
17596 | |||
17597 | |||
17598 | cat >>confdefs.h <<_ACEOF | ||
17599 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
17600 | _ACEOF | ||
17601 | |||
17602 | |||
17603 | |||
17604 | # We do this little dance with the search path to insure | ||
17605 | # that programs that we select for use by installed programs | ||
17606 | # (which may be run by the super-user) come from trusted | ||
17607 | # locations before they come from the user's private area. | ||
17608 | # This should help avoid accidentally configuring some | ||
17609 | # random version of a program in someone's personal bin. | ||
17610 | |||
17611 | OPATH=$PATH | ||
17612 | PATH=/bin:/usr/bin | ||
17613 | test -h /bin 2> /dev/null && PATH=/usr/bin | ||
17614 | test -d /sbin && PATH=$PATH:/sbin | ||
17615 | test -d /usr/sbin && PATH=$PATH:/usr/sbin | ||
17616 | PATH=$PATH:/etc:$OPATH | ||
17617 | |||
17618 | # These programs are used by the command hashing source to gather entropy | ||
17619 | |||
17620 | # Extract the first word of "ls", so it can be a program name with args. | ||
17621 | set dummy ls; ac_word=$2 | ||
17622 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
17623 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
17624 | if test "${ac_cv_path_PROG_LS+set}" = set; then | ||
17625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17626 | else | ||
17627 | case $PROG_LS in | ||
17628 | [\\/]* | ?:[\\/]*) | ||
17629 | ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path. | ||
17630 | ;; | ||
17631 | *) | ||
17632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17633 | for as_dir in $PATH | ||
17634 | do | ||
17635 | IFS=$as_save_IFS | ||
17636 | test -z "$as_dir" && as_dir=. | ||
17637 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17638 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17639 | ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext" | ||
17640 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17641 | break 2 | ||
17642 | fi | ||
17643 | done | ||
17644 | done | ||
17645 | IFS=$as_save_IFS | ||
17646 | |||
17647 | ;; | ||
17648 | esac | ||
17649 | fi | ||
17650 | PROG_LS=$ac_cv_path_PROG_LS | ||
17651 | if test -n "$PROG_LS"; then | ||
17652 | { echo "$as_me:$LINENO: result: $PROG_LS" >&5 | ||
17653 | echo "${ECHO_T}$PROG_LS" >&6; } | ||
17654 | else | ||
17655 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17656 | echo "${ECHO_T}no" >&6; } | ||
17657 | fi | ||
17658 | |||
17659 | |||
17660 | if test -z "$PROG_LS" ; then | ||
17661 | PROG_LS="undef" | ||
17662 | fi | ||
17663 | |||
17664 | |||
17665 | |||
17666 | # Extract the first word of "netstat", so it can be a program name with args. | ||
17667 | set dummy netstat; ac_word=$2 | ||
17668 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
17669 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
17670 | if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then | ||
17671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17672 | else | ||
17673 | case $PROG_NETSTAT in | ||
17674 | [\\/]* | ?:[\\/]*) | ||
17675 | ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path. | ||
17676 | ;; | ||
17677 | *) | ||
17678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17679 | for as_dir in $PATH | ||
17680 | do | ||
17681 | IFS=$as_save_IFS | ||
17682 | test -z "$as_dir" && as_dir=. | ||
17683 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17684 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17685 | ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
17686 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17687 | break 2 | ||
17688 | fi | ||
17689 | done | ||
17690 | done | ||
17691 | IFS=$as_save_IFS | ||
17692 | |||
17693 | ;; | ||
17694 | esac | ||
17695 | fi | ||
17696 | PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT | ||
17697 | if test -n "$PROG_NETSTAT"; then | ||
17698 | { echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5 | ||
17699 | echo "${ECHO_T}$PROG_NETSTAT" >&6; } | ||
17700 | else | ||
17701 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17702 | echo "${ECHO_T}no" >&6; } | ||
17703 | fi | ||
17704 | |||
17705 | |||
17706 | if test -z "$PROG_NETSTAT" ; then | ||
17707 | PROG_NETSTAT="undef" | ||
17708 | fi | ||
17709 | |||
17710 | |||
17711 | |||
17712 | # Extract the first word of "arp", so it can be a program name with args. | ||
17713 | set dummy arp; ac_word=$2 | ||
17714 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
17715 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
17716 | if test "${ac_cv_path_PROG_ARP+set}" = set; then | ||
17717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17718 | else | ||
17719 | case $PROG_ARP in | ||
17720 | [\\/]* | ?:[\\/]*) | ||
17721 | ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path. | ||
17722 | ;; | ||
17723 | *) | ||
17724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17725 | for as_dir in $PATH | ||
17726 | do | ||
17727 | IFS=$as_save_IFS | ||
17728 | test -z "$as_dir" && as_dir=. | ||
17729 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17730 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17731 | ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext" | ||
17732 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17733 | break 2 | ||
17734 | fi | ||
17735 | done | ||
17736 | done | ||
17737 | IFS=$as_save_IFS | ||
17738 | |||
17739 | ;; | ||
17740 | esac | ||
17741 | fi | ||
17742 | PROG_ARP=$ac_cv_path_PROG_ARP | ||
17743 | if test -n "$PROG_ARP"; then | ||
17744 | { echo "$as_me:$LINENO: result: $PROG_ARP" >&5 | ||
17745 | echo "${ECHO_T}$PROG_ARP" >&6; } | ||
17746 | else | ||
17747 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17748 | echo "${ECHO_T}no" >&6; } | ||
17749 | fi | ||
17750 | |||
17751 | |||
17752 | if test -z "$PROG_ARP" ; then | ||
17753 | PROG_ARP="undef" | ||
17754 | fi | ||
17755 | |||
17756 | |||
17757 | |||
17758 | # Extract the first word of "ifconfig", so it can be a program name with args. | ||
17759 | set dummy ifconfig; ac_word=$2 | ||
17760 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
17761 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
17762 | if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then | ||
17763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17764 | else | ||
17765 | case $PROG_IFCONFIG in | ||
17766 | [\\/]* | ?:[\\/]*) | ||
17767 | ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path. | ||
17768 | ;; | ||
17769 | *) | ||
17770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17771 | for as_dir in $PATH | ||
17772 | do | ||
17773 | IFS=$as_save_IFS | ||
17774 | test -z "$as_dir" && as_dir=. | ||
17775 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17776 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17777 | ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
17778 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17779 | break 2 | ||
17780 | fi | ||
17781 | done | ||
17782 | done | ||
17783 | IFS=$as_save_IFS | ||
17784 | |||
17785 | ;; | ||
17786 | esac | ||
17787 | fi | ||
17788 | PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG | ||
17789 | if test -n "$PROG_IFCONFIG"; then | ||
17790 | { echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5 | ||
17791 | echo "${ECHO_T}$PROG_IFCONFIG" >&6; } | ||
17792 | else | ||
17793 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17794 | echo "${ECHO_T}no" >&6; } | ||
17795 | fi | ||
17796 | |||
17797 | |||
17798 | if test -z "$PROG_IFCONFIG" ; then | ||
17799 | PROG_IFCONFIG="undef" | ||
17800 | fi | ||
17801 | |||
17802 | |||
17803 | |||
17804 | # Extract the first word of "jstat", so it can be a program name with args. | ||
17805 | set dummy jstat; ac_word=$2 | ||
17806 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
17807 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
17808 | if test "${ac_cv_path_PROG_JSTAT+set}" = set; then | ||
17809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17810 | else | ||
17811 | case $PROG_JSTAT in | ||
17812 | [\\/]* | ?:[\\/]*) | ||
17813 | ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path. | ||
17814 | ;; | ||
17815 | *) | ||
17816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17817 | for as_dir in $PATH | ||
17818 | do | ||
17819 | IFS=$as_save_IFS | ||
17820 | test -z "$as_dir" && as_dir=. | ||
17821 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17822 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17823 | ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
17824 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17825 | break 2 | ||
17826 | fi | ||
17827 | done | ||
17828 | done | ||
17829 | IFS=$as_save_IFS | ||
17830 | |||
17831 | ;; | ||
17832 | esac | ||
17833 | fi | ||
17834 | PROG_JSTAT=$ac_cv_path_PROG_JSTAT | ||
17835 | if test -n "$PROG_JSTAT"; then | ||
17836 | { echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5 | ||
17837 | echo "${ECHO_T}$PROG_JSTAT" >&6; } | ||
17838 | else | ||
17839 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17840 | echo "${ECHO_T}no" >&6; } | ||
17841 | fi | ||
17842 | |||
17843 | |||
17844 | if test -z "$PROG_JSTAT" ; then | ||
17845 | PROG_JSTAT="undef" | ||
17846 | fi | ||
17847 | |||
17848 | |||
17849 | |||
17850 | # Extract the first word of "ps", so it can be a program name with args. | ||
17851 | set dummy ps; ac_word=$2 | ||
17852 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
17853 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
17854 | if test "${ac_cv_path_PROG_PS+set}" = set; then | ||
17855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17856 | else | ||
17857 | case $PROG_PS in | ||
17858 | [\\/]* | ?:[\\/]*) | ||
17859 | ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path. | ||
17860 | ;; | ||
17861 | *) | ||
17862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17863 | for as_dir in $PATH | ||
17864 | do | ||
17865 | IFS=$as_save_IFS | ||
17866 | test -z "$as_dir" && as_dir=. | ||
17867 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17868 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17869 | ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext" | ||
17870 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17871 | break 2 | ||
17872 | fi | ||
17873 | done | ||
17874 | done | ||
17875 | IFS=$as_save_IFS | ||
17876 | |||
17877 | ;; | ||
17878 | esac | ||
17879 | fi | ||
17880 | PROG_PS=$ac_cv_path_PROG_PS | ||
17881 | if test -n "$PROG_PS"; then | ||
17882 | { echo "$as_me:$LINENO: result: $PROG_PS" >&5 | ||
17883 | echo "${ECHO_T}$PROG_PS" >&6; } | ||
17884 | else | ||
17885 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17886 | echo "${ECHO_T}no" >&6; } | ||
17887 | fi | ||
17888 | |||
17889 | |||
17890 | if test -z "$PROG_PS" ; then | ||
17891 | PROG_PS="undef" | ||
17892 | fi | ||
17893 | |||
17894 | |||
17895 | |||
17896 | # Extract the first word of "sar", so it can be a program name with args. | ||
17897 | set dummy sar; ac_word=$2 | ||
17898 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
17899 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
17900 | if test "${ac_cv_path_PROG_SAR+set}" = set; then | ||
17901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17902 | else | ||
17903 | case $PROG_SAR in | ||
17904 | [\\/]* | ?:[\\/]*) | ||
17905 | ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path. | ||
17906 | ;; | ||
17907 | *) | ||
17908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17909 | for as_dir in $PATH | ||
17910 | do | ||
17911 | IFS=$as_save_IFS | ||
17912 | test -z "$as_dir" && as_dir=. | ||
17913 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17914 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17915 | ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext" | ||
17916 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17917 | break 2 | ||
17918 | fi | ||
17919 | done | ||
17920 | done | ||
17921 | IFS=$as_save_IFS | ||
17922 | |||
17923 | ;; | ||
17924 | esac | ||
17925 | fi | ||
17926 | PROG_SAR=$ac_cv_path_PROG_SAR | ||
17927 | if test -n "$PROG_SAR"; then | ||
17928 | { echo "$as_me:$LINENO: result: $PROG_SAR" >&5 | ||
17929 | echo "${ECHO_T}$PROG_SAR" >&6; } | ||
17930 | else | ||
17931 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17932 | echo "${ECHO_T}no" >&6; } | ||
17933 | fi | ||
17934 | |||
17935 | |||
17936 | if test -z "$PROG_SAR" ; then | ||
17937 | PROG_SAR="undef" | ||
17938 | fi | ||
17939 | |||
17940 | |||
17941 | |||
17942 | # Extract the first word of "w", so it can be a program name with args. | ||
17943 | set dummy w; ac_word=$2 | ||
17944 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
17945 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
17946 | if test "${ac_cv_path_PROG_W+set}" = set; then | ||
17947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17948 | else | ||
17949 | case $PROG_W in | ||
17950 | [\\/]* | ?:[\\/]*) | ||
17951 | ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path. | ||
17952 | ;; | ||
17953 | *) | ||
17954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17955 | for as_dir in $PATH | ||
17956 | do | ||
17957 | IFS=$as_save_IFS | ||
17958 | test -z "$as_dir" && as_dir=. | ||
17959 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17960 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17961 | ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext" | ||
17962 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17963 | break 2 | ||
17964 | fi | ||
17965 | done | ||
17966 | done | ||
17967 | IFS=$as_save_IFS | ||
17968 | |||
17969 | ;; | ||
17970 | esac | ||
17971 | fi | ||
17972 | PROG_W=$ac_cv_path_PROG_W | ||
17973 | if test -n "$PROG_W"; then | ||
17974 | { echo "$as_me:$LINENO: result: $PROG_W" >&5 | ||
17975 | echo "${ECHO_T}$PROG_W" >&6; } | ||
17976 | else | ||
17977 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17978 | echo "${ECHO_T}no" >&6; } | ||
17979 | fi | ||
17980 | |||
17981 | |||
17982 | if test -z "$PROG_W" ; then | ||
17983 | PROG_W="undef" | ||
17984 | fi | ||
17985 | |||
17986 | |||
17987 | |||
17988 | # Extract the first word of "who", so it can be a program name with args. | ||
17989 | set dummy who; ac_word=$2 | ||
17990 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
17991 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
17992 | if test "${ac_cv_path_PROG_WHO+set}" = set; then | ||
17993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17994 | else | ||
17995 | case $PROG_WHO in | ||
17996 | [\\/]* | ?:[\\/]*) | ||
17997 | ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path. | ||
17998 | ;; | ||
17999 | *) | ||
18000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18001 | for as_dir in $PATH | ||
18002 | do | ||
18003 | IFS=$as_save_IFS | ||
18004 | test -z "$as_dir" && as_dir=. | ||
18005 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18006 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18007 | ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext" | ||
18008 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18009 | break 2 | ||
18010 | fi | ||
18011 | done | ||
18012 | done | ||
18013 | IFS=$as_save_IFS | ||
18014 | |||
18015 | ;; | ||
18016 | esac | ||
18017 | fi | ||
18018 | PROG_WHO=$ac_cv_path_PROG_WHO | ||
18019 | if test -n "$PROG_WHO"; then | ||
18020 | { echo "$as_me:$LINENO: result: $PROG_WHO" >&5 | ||
18021 | echo "${ECHO_T}$PROG_WHO" >&6; } | ||
18022 | else | ||
18023 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18024 | echo "${ECHO_T}no" >&6; } | ||
18025 | fi | ||
18026 | |||
18027 | |||
18028 | if test -z "$PROG_WHO" ; then | ||
18029 | PROG_WHO="undef" | ||
18030 | fi | ||
18031 | |||
18032 | |||
18033 | |||
18034 | # Extract the first word of "last", so it can be a program name with args. | ||
18035 | set dummy last; ac_word=$2 | ||
18036 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18037 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18038 | if test "${ac_cv_path_PROG_LAST+set}" = set; then | ||
18039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18040 | else | ||
18041 | case $PROG_LAST in | ||
18042 | [\\/]* | ?:[\\/]*) | ||
18043 | ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path. | ||
18044 | ;; | ||
18045 | *) | ||
18046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18047 | for as_dir in $PATH | ||
18048 | do | ||
18049 | IFS=$as_save_IFS | ||
18050 | test -z "$as_dir" && as_dir=. | ||
18051 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18052 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18053 | ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext" | ||
18054 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18055 | break 2 | ||
18056 | fi | ||
18057 | done | ||
18058 | done | ||
18059 | IFS=$as_save_IFS | ||
18060 | |||
18061 | ;; | ||
18062 | esac | ||
18063 | fi | ||
18064 | PROG_LAST=$ac_cv_path_PROG_LAST | ||
18065 | if test -n "$PROG_LAST"; then | ||
18066 | { echo "$as_me:$LINENO: result: $PROG_LAST" >&5 | ||
18067 | echo "${ECHO_T}$PROG_LAST" >&6; } | ||
18068 | else | ||
18069 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18070 | echo "${ECHO_T}no" >&6; } | ||
18071 | fi | ||
18072 | |||
18073 | |||
18074 | if test -z "$PROG_LAST" ; then | ||
18075 | PROG_LAST="undef" | ||
18076 | fi | ||
18077 | |||
18078 | |||
18079 | |||
18080 | # Extract the first word of "lastlog", so it can be a program name with args. | ||
18081 | set dummy lastlog; ac_word=$2 | ||
18082 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18083 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18084 | if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then | ||
18085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18086 | else | ||
18087 | case $PROG_LASTLOG in | ||
18088 | [\\/]* | ?:[\\/]*) | ||
18089 | ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path. | ||
18090 | ;; | ||
18091 | *) | ||
18092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18093 | for as_dir in $PATH | ||
18094 | do | ||
18095 | IFS=$as_save_IFS | ||
18096 | test -z "$as_dir" && as_dir=. | ||
18097 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18098 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18099 | ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext" | ||
18100 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18101 | break 2 | ||
18102 | fi | ||
18103 | done | ||
18104 | done | ||
18105 | IFS=$as_save_IFS | ||
18106 | |||
18107 | ;; | ||
18108 | esac | ||
18109 | fi | ||
18110 | PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG | ||
18111 | if test -n "$PROG_LASTLOG"; then | ||
18112 | { echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5 | ||
18113 | echo "${ECHO_T}$PROG_LASTLOG" >&6; } | ||
18114 | else | ||
18115 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18116 | echo "${ECHO_T}no" >&6; } | ||
18117 | fi | ||
18118 | |||
18119 | |||
18120 | if test -z "$PROG_LASTLOG" ; then | ||
18121 | PROG_LASTLOG="undef" | ||
18122 | fi | ||
18123 | |||
18124 | |||
18125 | |||
18126 | # Extract the first word of "df", so it can be a program name with args. | ||
18127 | set dummy df; ac_word=$2 | ||
18128 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18129 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18130 | if test "${ac_cv_path_PROG_DF+set}" = set; then | ||
18131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18132 | else | ||
18133 | case $PROG_DF in | ||
18134 | [\\/]* | ?:[\\/]*) | ||
18135 | ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path. | ||
18136 | ;; | ||
18137 | *) | ||
18138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18139 | for as_dir in $PATH | ||
18140 | do | ||
18141 | IFS=$as_save_IFS | ||
18142 | test -z "$as_dir" && as_dir=. | ||
18143 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18144 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18145 | ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext" | ||
18146 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18147 | break 2 | ||
18148 | fi | ||
18149 | done | ||
18150 | done | ||
18151 | IFS=$as_save_IFS | ||
18152 | |||
18153 | ;; | ||
18154 | esac | ||
18155 | fi | ||
18156 | PROG_DF=$ac_cv_path_PROG_DF | ||
18157 | if test -n "$PROG_DF"; then | ||
18158 | { echo "$as_me:$LINENO: result: $PROG_DF" >&5 | ||
18159 | echo "${ECHO_T}$PROG_DF" >&6; } | ||
18160 | else | ||
18161 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18162 | echo "${ECHO_T}no" >&6; } | ||
18163 | fi | ||
18164 | |||
18165 | |||
18166 | if test -z "$PROG_DF" ; then | ||
18167 | PROG_DF="undef" | ||
18168 | fi | ||
18169 | |||
18170 | |||
18171 | |||
18172 | # Extract the first word of "vmstat", so it can be a program name with args. | ||
18173 | set dummy vmstat; ac_word=$2 | ||
18174 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18175 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18176 | if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then | ||
18177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18178 | else | ||
18179 | case $PROG_VMSTAT in | ||
18180 | [\\/]* | ?:[\\/]*) | ||
18181 | ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path. | ||
18182 | ;; | ||
18183 | *) | ||
18184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18185 | for as_dir in $PATH | ||
18186 | do | ||
18187 | IFS=$as_save_IFS | ||
18188 | test -z "$as_dir" && as_dir=. | ||
18189 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18190 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18191 | ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
18192 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18193 | break 2 | ||
18194 | fi | ||
18195 | done | ||
18196 | done | ||
18197 | IFS=$as_save_IFS | ||
18198 | |||
18199 | ;; | ||
18200 | esac | ||
18201 | fi | ||
18202 | PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT | ||
18203 | if test -n "$PROG_VMSTAT"; then | ||
18204 | { echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5 | ||
18205 | echo "${ECHO_T}$PROG_VMSTAT" >&6; } | ||
18206 | else | ||
18207 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18208 | echo "${ECHO_T}no" >&6; } | ||
18209 | fi | ||
18210 | |||
18211 | |||
18212 | if test -z "$PROG_VMSTAT" ; then | ||
18213 | PROG_VMSTAT="undef" | ||
18214 | fi | ||
18215 | |||
18216 | |||
18217 | |||
18218 | # Extract the first word of "uptime", so it can be a program name with args. | ||
18219 | set dummy uptime; ac_word=$2 | ||
18220 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18221 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18222 | if test "${ac_cv_path_PROG_UPTIME+set}" = set; then | ||
18223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18224 | else | ||
18225 | case $PROG_UPTIME in | ||
18226 | [\\/]* | ?:[\\/]*) | ||
18227 | ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path. | ||
18228 | ;; | ||
18229 | *) | ||
18230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18231 | for as_dir in $PATH | ||
18232 | do | ||
18233 | IFS=$as_save_IFS | ||
18234 | test -z "$as_dir" && as_dir=. | ||
18235 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18236 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18237 | ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext" | ||
18238 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18239 | break 2 | ||
18240 | fi | ||
18241 | done | ||
18242 | done | ||
18243 | IFS=$as_save_IFS | ||
18244 | |||
18245 | ;; | ||
18246 | esac | ||
18247 | fi | ||
18248 | PROG_UPTIME=$ac_cv_path_PROG_UPTIME | ||
18249 | if test -n "$PROG_UPTIME"; then | ||
18250 | { echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5 | ||
18251 | echo "${ECHO_T}$PROG_UPTIME" >&6; } | ||
18252 | else | ||
18253 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18254 | echo "${ECHO_T}no" >&6; } | ||
18255 | fi | ||
18256 | |||
18257 | |||
18258 | if test -z "$PROG_UPTIME" ; then | ||
18259 | PROG_UPTIME="undef" | ||
18260 | fi | ||
18261 | |||
18262 | |||
18263 | |||
18264 | # Extract the first word of "ipcs", so it can be a program name with args. | ||
18265 | set dummy ipcs; ac_word=$2 | ||
18266 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18267 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18268 | if test "${ac_cv_path_PROG_IPCS+set}" = set; then | ||
18269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18270 | else | ||
18271 | case $PROG_IPCS in | ||
18272 | [\\/]* | ?:[\\/]*) | ||
18273 | ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path. | ||
18274 | ;; | ||
18275 | *) | ||
18276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18277 | for as_dir in $PATH | ||
18278 | do | ||
18279 | IFS=$as_save_IFS | ||
18280 | test -z "$as_dir" && as_dir=. | ||
18281 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18282 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18283 | ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext" | ||
18284 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18285 | break 2 | ||
18286 | fi | ||
18287 | done | ||
18288 | done | ||
18289 | IFS=$as_save_IFS | ||
18290 | |||
18291 | ;; | ||
18292 | esac | ||
18293 | fi | ||
18294 | PROG_IPCS=$ac_cv_path_PROG_IPCS | ||
18295 | if test -n "$PROG_IPCS"; then | ||
18296 | { echo "$as_me:$LINENO: result: $PROG_IPCS" >&5 | ||
18297 | echo "${ECHO_T}$PROG_IPCS" >&6; } | ||
18298 | else | ||
18299 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18300 | echo "${ECHO_T}no" >&6; } | ||
18301 | fi | ||
18302 | |||
18303 | |||
18304 | if test -z "$PROG_IPCS" ; then | ||
18305 | PROG_IPCS="undef" | ||
18306 | fi | ||
18307 | |||
18308 | |||
18309 | |||
18310 | # Extract the first word of "tail", so it can be a program name with args. | ||
18311 | set dummy tail; ac_word=$2 | ||
18312 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18313 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18314 | if test "${ac_cv_path_PROG_TAIL+set}" = set; then | ||
18315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18316 | else | ||
18317 | case $PROG_TAIL in | ||
18318 | [\\/]* | ?:[\\/]*) | ||
18319 | ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path. | ||
18320 | ;; | ||
18321 | *) | ||
18322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18323 | for as_dir in $PATH | ||
18324 | do | ||
18325 | IFS=$as_save_IFS | ||
18326 | test -z "$as_dir" && as_dir=. | ||
18327 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18328 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18329 | ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext" | ||
18330 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18331 | break 2 | ||
18332 | fi | ||
18333 | done | ||
18334 | done | ||
18335 | IFS=$as_save_IFS | ||
18336 | |||
18337 | ;; | ||
18338 | esac | ||
18339 | fi | ||
18340 | PROG_TAIL=$ac_cv_path_PROG_TAIL | ||
18341 | if test -n "$PROG_TAIL"; then | ||
18342 | { echo "$as_me:$LINENO: result: $PROG_TAIL" >&5 | ||
18343 | echo "${ECHO_T}$PROG_TAIL" >&6; } | ||
18344 | else | ||
18345 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18346 | echo "${ECHO_T}no" >&6; } | ||
18347 | fi | ||
18348 | |||
18349 | |||
18350 | if test -z "$PROG_TAIL" ; then | ||
18351 | PROG_TAIL="undef" | ||
18352 | fi | ||
18353 | |||
18354 | |||
18355 | # restore PATH | ||
18356 | PATH=$OPATH | ||
18357 | |||
18358 | # Where does ssh-rand-helper get its randomness from? | ||
18359 | INSTALL_SSH_PRNG_CMDS="" | ||
18360 | if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then | ||
18361 | if test ! -z "$PRNGD_PORT" ; then | ||
18362 | RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT" | ||
18363 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
18364 | RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\"" | ||
18365 | else | ||
18366 | RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)" | ||
18367 | RAND_HELPER_CMDHASH=yes | ||
18368 | INSTALL_SSH_PRNG_CMDS="yes" | ||
18369 | fi | ||
18370 | fi | ||
18371 | |||
18372 | |||
18373 | |||
18374 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
18375 | if test ! -z "$SONY" ; then | ||
18376 | LIBS="$LIBS -liberty"; | ||
18377 | fi | ||
18378 | |||
18379 | # Check for long long datatypes | ||
18380 | { echo "$as_me:$LINENO: checking for long long" >&5 | ||
18381 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } | ||
18382 | if test "${ac_cv_type_long_long+set}" = set; then | ||
18383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18384 | else | ||
18385 | cat >conftest.$ac_ext <<_ACEOF | ||
18386 | /* confdefs.h. */ | ||
18387 | _ACEOF | ||
18388 | cat confdefs.h >>conftest.$ac_ext | ||
18389 | cat >>conftest.$ac_ext <<_ACEOF | ||
18390 | /* end confdefs.h. */ | ||
18391 | $ac_includes_default | ||
18392 | typedef long long ac__type_new_; | ||
18393 | int | ||
18394 | main () | ||
18395 | { | ||
18396 | if ((ac__type_new_ *) 0) | ||
18397 | return 0; | ||
18398 | if (sizeof (ac__type_new_)) | ||
18399 | return 0; | ||
18400 | ; | ||
18401 | return 0; | ||
18402 | } | ||
18403 | _ACEOF | ||
18404 | rm -f conftest.$ac_objext | ||
18405 | if { (ac_try="$ac_compile" | ||
18406 | case "(($ac_try" in | ||
18407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18408 | *) ac_try_echo=$ac_try;; | ||
18409 | esac | ||
18410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18411 | (eval "$ac_compile") 2>conftest.er1 | ||
18412 | ac_status=$? | ||
18413 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18414 | rm -f conftest.er1 | ||
18415 | cat conftest.err >&5 | ||
18416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18417 | (exit $ac_status); } && { | ||
18418 | test -z "$ac_c_werror_flag" || | ||
18419 | test ! -s conftest.err | ||
18420 | } && test -s conftest.$ac_objext; then | ||
18421 | ac_cv_type_long_long=yes | ||
18422 | else | ||
18423 | echo "$as_me: failed program was:" >&5 | ||
18424 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18425 | |||
18426 | ac_cv_type_long_long=no | ||
18427 | fi | ||
18428 | |||
18429 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18430 | fi | ||
18431 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | ||
18432 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } | ||
18433 | if test $ac_cv_type_long_long = yes; then | ||
18434 | |||
18435 | cat >>confdefs.h <<_ACEOF | ||
18436 | #define HAVE_LONG_LONG 1 | ||
18437 | _ACEOF | ||
18438 | |||
18439 | |||
18440 | fi | ||
18441 | { echo "$as_me:$LINENO: checking for unsigned long long" >&5 | ||
18442 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } | ||
18443 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then | ||
18444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18445 | else | ||
18446 | cat >conftest.$ac_ext <<_ACEOF | ||
18447 | /* confdefs.h. */ | ||
18448 | _ACEOF | ||
18449 | cat confdefs.h >>conftest.$ac_ext | ||
18450 | cat >>conftest.$ac_ext <<_ACEOF | ||
18451 | /* end confdefs.h. */ | ||
18452 | $ac_includes_default | ||
18453 | typedef unsigned long long ac__type_new_; | ||
18454 | int | ||
18455 | main () | ||
18456 | { | ||
18457 | if ((ac__type_new_ *) 0) | ||
18458 | return 0; | ||
18459 | if (sizeof (ac__type_new_)) | ||
18460 | return 0; | ||
18461 | ; | ||
18462 | return 0; | ||
18463 | } | ||
18464 | _ACEOF | ||
18465 | rm -f conftest.$ac_objext | ||
18466 | if { (ac_try="$ac_compile" | ||
18467 | case "(($ac_try" in | ||
18468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18469 | *) ac_try_echo=$ac_try;; | ||
18470 | esac | ||
18471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18472 | (eval "$ac_compile") 2>conftest.er1 | ||
18473 | ac_status=$? | ||
18474 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18475 | rm -f conftest.er1 | ||
18476 | cat conftest.err >&5 | ||
18477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18478 | (exit $ac_status); } && { | ||
18479 | test -z "$ac_c_werror_flag" || | ||
18480 | test ! -s conftest.err | ||
18481 | } && test -s conftest.$ac_objext; then | ||
18482 | ac_cv_type_unsigned_long_long=yes | ||
18483 | else | ||
18484 | echo "$as_me: failed program was:" >&5 | ||
18485 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18486 | |||
18487 | ac_cv_type_unsigned_long_long=no | ||
18488 | fi | ||
18489 | |||
18490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18491 | fi | ||
18492 | { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 | ||
18493 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } | ||
18494 | if test $ac_cv_type_unsigned_long_long = yes; then | ||
18495 | |||
18496 | cat >>confdefs.h <<_ACEOF | ||
18497 | #define HAVE_UNSIGNED_LONG_LONG 1 | ||
18498 | _ACEOF | ||
18499 | |||
18500 | |||
18501 | fi | ||
18502 | { echo "$as_me:$LINENO: checking for long double" >&5 | ||
18503 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } | ||
18504 | if test "${ac_cv_type_long_double+set}" = set; then | ||
18505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18506 | else | ||
18507 | cat >conftest.$ac_ext <<_ACEOF | ||
18508 | /* confdefs.h. */ | ||
18509 | _ACEOF | ||
18510 | cat confdefs.h >>conftest.$ac_ext | ||
18511 | cat >>conftest.$ac_ext <<_ACEOF | ||
18512 | /* end confdefs.h. */ | ||
18513 | $ac_includes_default | ||
18514 | typedef long double ac__type_new_; | ||
18515 | int | ||
18516 | main () | ||
18517 | { | ||
18518 | if ((ac__type_new_ *) 0) | ||
18519 | return 0; | ||
18520 | if (sizeof (ac__type_new_)) | ||
18521 | return 0; | ||
18522 | ; | ||
18523 | return 0; | ||
18524 | } | ||
18525 | _ACEOF | ||
18526 | rm -f conftest.$ac_objext | ||
18527 | if { (ac_try="$ac_compile" | ||
18528 | case "(($ac_try" in | ||
18529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18530 | *) ac_try_echo=$ac_try;; | ||
18531 | esac | ||
18532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18533 | (eval "$ac_compile") 2>conftest.er1 | ||
18534 | ac_status=$? | ||
18535 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18536 | rm -f conftest.er1 | ||
18537 | cat conftest.err >&5 | ||
18538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18539 | (exit $ac_status); } && { | ||
18540 | test -z "$ac_c_werror_flag" || | ||
18541 | test ! -s conftest.err | ||
18542 | } && test -s conftest.$ac_objext; then | ||
18543 | ac_cv_type_long_double=yes | ||
18544 | else | ||
18545 | echo "$as_me: failed program was:" >&5 | ||
18546 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18547 | |||
18548 | ac_cv_type_long_double=no | ||
18549 | fi | ||
18550 | |||
18551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18552 | fi | ||
18553 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 | ||
18554 | echo "${ECHO_T}$ac_cv_type_long_double" >&6; } | ||
18555 | if test $ac_cv_type_long_double = yes; then | ||
18556 | |||
18557 | cat >>confdefs.h <<_ACEOF | ||
18558 | #define HAVE_LONG_DOUBLE 1 | ||
18559 | _ACEOF | ||
18560 | |||
18561 | |||
18562 | fi | ||
18563 | |||
18564 | |||
18565 | # Check datatype sizes | ||
18566 | { echo "$as_me:$LINENO: checking for char" >&5 | ||
18567 | echo $ECHO_N "checking for char... $ECHO_C" >&6; } | ||
18568 | if test "${ac_cv_type_char+set}" = set; then | ||
18569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18570 | else | ||
18571 | cat >conftest.$ac_ext <<_ACEOF | ||
18572 | /* confdefs.h. */ | ||
18573 | _ACEOF | ||
18574 | cat confdefs.h >>conftest.$ac_ext | ||
18575 | cat >>conftest.$ac_ext <<_ACEOF | ||
18576 | /* end confdefs.h. */ | ||
18577 | $ac_includes_default | ||
18578 | typedef char ac__type_new_; | ||
18579 | int | ||
18580 | main () | ||
18581 | { | ||
18582 | if ((ac__type_new_ *) 0) | ||
18583 | return 0; | ||
18584 | if (sizeof (ac__type_new_)) | ||
18585 | return 0; | ||
18586 | ; | ||
18587 | return 0; | ||
18588 | } | ||
18589 | _ACEOF | ||
18590 | rm -f conftest.$ac_objext | ||
18591 | if { (ac_try="$ac_compile" | ||
18592 | case "(($ac_try" in | ||
18593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18594 | *) ac_try_echo=$ac_try;; | ||
18595 | esac | ||
18596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18597 | (eval "$ac_compile") 2>conftest.er1 | ||
18598 | ac_status=$? | ||
18599 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18600 | rm -f conftest.er1 | ||
18601 | cat conftest.err >&5 | ||
18602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18603 | (exit $ac_status); } && { | ||
18604 | test -z "$ac_c_werror_flag" || | ||
18605 | test ! -s conftest.err | ||
18606 | } && test -s conftest.$ac_objext; then | ||
18607 | ac_cv_type_char=yes | ||
18608 | else | ||
18609 | echo "$as_me: failed program was:" >&5 | ||
18610 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18611 | |||
18612 | ac_cv_type_char=no | ||
18613 | fi | ||
18614 | |||
18615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18616 | fi | ||
18617 | { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | ||
18618 | echo "${ECHO_T}$ac_cv_type_char" >&6; } | ||
18619 | |||
18620 | # The cast to long int works around a bug in the HP C Compiler | ||
18621 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
18622 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
18623 | # This bug is HP SR number 8606223364. | ||
18624 | { echo "$as_me:$LINENO: checking size of char" >&5 | ||
18625 | echo $ECHO_N "checking size of char... $ECHO_C" >&6; } | ||
18626 | if test "${ac_cv_sizeof_char+set}" = set; then | ||
18627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18628 | else | ||
18629 | if test "$cross_compiling" = yes; then | ||
18630 | # Depending upon the size, compute the lo and hi bounds. | ||
18631 | cat >conftest.$ac_ext <<_ACEOF | ||
18632 | /* confdefs.h. */ | ||
18633 | _ACEOF | ||
18634 | cat confdefs.h >>conftest.$ac_ext | ||
18635 | cat >>conftest.$ac_ext <<_ACEOF | ||
18636 | /* end confdefs.h. */ | ||
18637 | $ac_includes_default | ||
18638 | typedef char ac__type_sizeof_; | ||
18639 | int | ||
18640 | main () | ||
18641 | { | ||
18642 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
18643 | test_array [0] = 0 | ||
18644 | |||
18645 | ; | ||
18646 | return 0; | ||
18647 | } | ||
18648 | _ACEOF | ||
18649 | rm -f conftest.$ac_objext | ||
18650 | if { (ac_try="$ac_compile" | ||
18651 | case "(($ac_try" in | ||
18652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18653 | *) ac_try_echo=$ac_try;; | ||
18654 | esac | ||
18655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18656 | (eval "$ac_compile") 2>conftest.er1 | ||
18657 | ac_status=$? | ||
18658 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18659 | rm -f conftest.er1 | ||
18660 | cat conftest.err >&5 | ||
18661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18662 | (exit $ac_status); } && { | ||
18663 | test -z "$ac_c_werror_flag" || | ||
18664 | test ! -s conftest.err | ||
18665 | } && test -s conftest.$ac_objext; then | ||
18666 | ac_lo=0 ac_mid=0 | ||
18667 | while :; do | ||
18668 | cat >conftest.$ac_ext <<_ACEOF | ||
18669 | /* confdefs.h. */ | ||
18670 | _ACEOF | ||
18671 | cat confdefs.h >>conftest.$ac_ext | ||
18672 | cat >>conftest.$ac_ext <<_ACEOF | ||
18673 | /* end confdefs.h. */ | ||
18674 | $ac_includes_default | ||
18675 | typedef char ac__type_sizeof_; | ||
18676 | int | ||
18677 | main () | ||
18678 | { | ||
18679 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
18680 | test_array [0] = 0 | ||
18681 | |||
18682 | ; | ||
18683 | return 0; | ||
18684 | } | ||
18685 | _ACEOF | ||
18686 | rm -f conftest.$ac_objext | ||
18687 | if { (ac_try="$ac_compile" | ||
18688 | case "(($ac_try" in | ||
18689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18690 | *) ac_try_echo=$ac_try;; | ||
18691 | esac | ||
18692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18693 | (eval "$ac_compile") 2>conftest.er1 | ||
18694 | ac_status=$? | ||
18695 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18696 | rm -f conftest.er1 | ||
18697 | cat conftest.err >&5 | ||
18698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18699 | (exit $ac_status); } && { | ||
18700 | test -z "$ac_c_werror_flag" || | ||
18701 | test ! -s conftest.err | ||
18702 | } && test -s conftest.$ac_objext; then | ||
18703 | ac_hi=$ac_mid; break | ||
18704 | else | ||
18705 | echo "$as_me: failed program was:" >&5 | ||
18706 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18707 | |||
18708 | ac_lo=`expr $ac_mid + 1` | ||
18709 | if test $ac_lo -le $ac_mid; then | ||
18710 | ac_lo= ac_hi= | ||
18711 | break | ||
18712 | fi | ||
18713 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
18714 | fi | ||
18715 | |||
18716 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18717 | done | ||
18718 | else | ||
18719 | echo "$as_me: failed program was:" >&5 | ||
18720 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18721 | |||
18722 | cat >conftest.$ac_ext <<_ACEOF | ||
18723 | /* confdefs.h. */ | ||
18724 | _ACEOF | ||
18725 | cat confdefs.h >>conftest.$ac_ext | ||
18726 | cat >>conftest.$ac_ext <<_ACEOF | ||
18727 | /* end confdefs.h. */ | ||
18728 | $ac_includes_default | ||
18729 | typedef char ac__type_sizeof_; | ||
18730 | int | ||
18731 | main () | ||
18732 | { | ||
18733 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
18734 | test_array [0] = 0 | ||
18735 | |||
18736 | ; | ||
18737 | return 0; | ||
18738 | } | ||
18739 | _ACEOF | ||
18740 | rm -f conftest.$ac_objext | ||
18741 | if { (ac_try="$ac_compile" | ||
18742 | case "(($ac_try" in | ||
18743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18744 | *) ac_try_echo=$ac_try;; | ||
18745 | esac | ||
18746 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18747 | (eval "$ac_compile") 2>conftest.er1 | ||
18748 | ac_status=$? | ||
18749 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18750 | rm -f conftest.er1 | ||
18751 | cat conftest.err >&5 | ||
18752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18753 | (exit $ac_status); } && { | ||
18754 | test -z "$ac_c_werror_flag" || | ||
18755 | test ! -s conftest.err | ||
18756 | } && test -s conftest.$ac_objext; then | ||
18757 | ac_hi=-1 ac_mid=-1 | ||
18758 | while :; do | ||
18759 | cat >conftest.$ac_ext <<_ACEOF | ||
18760 | /* confdefs.h. */ | ||
18761 | _ACEOF | ||
18762 | cat confdefs.h >>conftest.$ac_ext | ||
18763 | cat >>conftest.$ac_ext <<_ACEOF | ||
18764 | /* end confdefs.h. */ | ||
18765 | $ac_includes_default | ||
18766 | typedef char ac__type_sizeof_; | ||
18767 | int | ||
18768 | main () | ||
18769 | { | ||
18770 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
18771 | test_array [0] = 0 | ||
18772 | |||
18773 | ; | ||
18774 | return 0; | ||
18775 | } | ||
18776 | _ACEOF | ||
18777 | rm -f conftest.$ac_objext | ||
18778 | if { (ac_try="$ac_compile" | ||
18779 | case "(($ac_try" in | ||
18780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18781 | *) ac_try_echo=$ac_try;; | ||
18782 | esac | ||
18783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18784 | (eval "$ac_compile") 2>conftest.er1 | ||
18785 | ac_status=$? | ||
18786 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18787 | rm -f conftest.er1 | ||
18788 | cat conftest.err >&5 | ||
18789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18790 | (exit $ac_status); } && { | ||
18791 | test -z "$ac_c_werror_flag" || | ||
18792 | test ! -s conftest.err | ||
18793 | } && test -s conftest.$ac_objext; then | ||
18794 | ac_lo=$ac_mid; break | ||
18795 | else | ||
18796 | echo "$as_me: failed program was:" >&5 | ||
18797 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18798 | |||
18799 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
18800 | if test $ac_mid -le $ac_hi; then | ||
18801 | ac_lo= ac_hi= | ||
18802 | break | ||
18803 | fi | ||
18804 | ac_mid=`expr 2 '*' $ac_mid` | ||
18805 | fi | ||
18806 | |||
18807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18808 | done | ||
18809 | else | ||
18810 | echo "$as_me: failed program was:" >&5 | ||
18811 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18812 | |||
18813 | ac_lo= ac_hi= | ||
18814 | fi | ||
18815 | |||
18816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18817 | fi | ||
18818 | |||
18819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18820 | # Binary search between lo and hi bounds. | ||
18821 | while test "x$ac_lo" != "x$ac_hi"; do | ||
18822 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
18823 | cat >conftest.$ac_ext <<_ACEOF | ||
18824 | /* confdefs.h. */ | ||
18825 | _ACEOF | ||
18826 | cat confdefs.h >>conftest.$ac_ext | ||
18827 | cat >>conftest.$ac_ext <<_ACEOF | ||
18828 | /* end confdefs.h. */ | ||
18829 | $ac_includes_default | ||
18830 | typedef char ac__type_sizeof_; | ||
18831 | int | ||
18832 | main () | ||
18833 | { | ||
18834 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
18835 | test_array [0] = 0 | ||
18836 | |||
18837 | ; | ||
18838 | return 0; | ||
18839 | } | ||
18840 | _ACEOF | ||
18841 | rm -f conftest.$ac_objext | ||
18842 | if { (ac_try="$ac_compile" | ||
18843 | case "(($ac_try" in | ||
18844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18845 | *) ac_try_echo=$ac_try;; | ||
18846 | esac | ||
18847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18848 | (eval "$ac_compile") 2>conftest.er1 | ||
18849 | ac_status=$? | ||
18850 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18851 | rm -f conftest.er1 | ||
18852 | cat conftest.err >&5 | ||
18853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18854 | (exit $ac_status); } && { | ||
18855 | test -z "$ac_c_werror_flag" || | ||
18856 | test ! -s conftest.err | ||
18857 | } && test -s conftest.$ac_objext; then | ||
18858 | ac_hi=$ac_mid | ||
18859 | else | ||
18860 | echo "$as_me: failed program was:" >&5 | ||
18861 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18862 | |||
18863 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
18864 | fi | ||
18865 | |||
18866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18867 | done | ||
18868 | case $ac_lo in | ||
18869 | ?*) ac_cv_sizeof_char=$ac_lo;; | ||
18870 | '') if test "$ac_cv_type_char" = yes; then | ||
18871 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) | ||
18872 | See \`config.log' for more details." >&5 | ||
18873 | echo "$as_me: error: cannot compute sizeof (char) | ||
18874 | See \`config.log' for more details." >&2;} | ||
18875 | { (exit 77); exit 77; }; } | ||
18876 | else | ||
18877 | ac_cv_sizeof_char=0 | ||
18878 | fi ;; | ||
18879 | esac | ||
18880 | else | ||
18881 | cat >conftest.$ac_ext <<_ACEOF | ||
18882 | /* confdefs.h. */ | ||
18883 | _ACEOF | ||
18884 | cat confdefs.h >>conftest.$ac_ext | ||
18885 | cat >>conftest.$ac_ext <<_ACEOF | ||
18886 | /* end confdefs.h. */ | ||
18887 | $ac_includes_default | ||
18888 | typedef char ac__type_sizeof_; | ||
18889 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
18890 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
18891 | #include <stdio.h> | ||
18892 | #include <stdlib.h> | ||
18893 | int | ||
18894 | main () | ||
18895 | { | ||
18896 | |||
18897 | FILE *f = fopen ("conftest.val", "w"); | ||
18898 | if (! f) | ||
18899 | return 1; | ||
18900 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
18901 | { | ||
18902 | long int i = longval (); | ||
18903 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
18904 | return 1; | ||
18905 | fprintf (f, "%ld\n", i); | ||
18906 | } | ||
18907 | else | ||
18908 | { | ||
18909 | unsigned long int i = ulongval (); | ||
18910 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
18911 | return 1; | ||
18912 | fprintf (f, "%lu\n", i); | ||
18913 | } | ||
18914 | return ferror (f) || fclose (f) != 0; | ||
18915 | |||
18916 | ; | ||
18917 | return 0; | ||
18918 | } | ||
18919 | _ACEOF | ||
18920 | rm -f conftest$ac_exeext | ||
18921 | if { (ac_try="$ac_link" | ||
18922 | case "(($ac_try" in | ||
18923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18924 | *) ac_try_echo=$ac_try;; | ||
18925 | esac | ||
18926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18927 | (eval "$ac_link") 2>&5 | ||
18928 | ac_status=$? | ||
18929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18930 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
18931 | { (case "(($ac_try" in | ||
18932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18933 | *) ac_try_echo=$ac_try;; | ||
18934 | esac | ||
18935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18936 | (eval "$ac_try") 2>&5 | ||
18937 | ac_status=$? | ||
18938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18939 | (exit $ac_status); }; }; then | ||
18940 | ac_cv_sizeof_char=`cat conftest.val` | ||
18941 | else | ||
18942 | echo "$as_me: program exited with status $ac_status" >&5 | ||
18943 | echo "$as_me: failed program was:" >&5 | ||
18944 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18945 | |||
18946 | ( exit $ac_status ) | ||
18947 | if test "$ac_cv_type_char" = yes; then | ||
18948 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) | ||
18949 | See \`config.log' for more details." >&5 | ||
18950 | echo "$as_me: error: cannot compute sizeof (char) | ||
18951 | See \`config.log' for more details." >&2;} | ||
18952 | { (exit 77); exit 77; }; } | ||
18953 | else | ||
18954 | ac_cv_sizeof_char=0 | ||
18955 | fi | ||
18956 | fi | ||
18957 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
18958 | fi | ||
18959 | rm -f conftest.val | ||
18960 | fi | ||
18961 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | ||
18962 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6; } | ||
18963 | |||
18964 | |||
18965 | |||
18966 | cat >>confdefs.h <<_ACEOF | ||
18967 | #define SIZEOF_CHAR $ac_cv_sizeof_char | ||
18968 | _ACEOF | ||
18969 | |||
18970 | |||
18971 | { echo "$as_me:$LINENO: checking for short int" >&5 | ||
18972 | echo $ECHO_N "checking for short int... $ECHO_C" >&6; } | ||
18973 | if test "${ac_cv_type_short_int+set}" = set; then | ||
18974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18975 | else | ||
18976 | cat >conftest.$ac_ext <<_ACEOF | ||
18977 | /* confdefs.h. */ | ||
18978 | _ACEOF | ||
18979 | cat confdefs.h >>conftest.$ac_ext | ||
18980 | cat >>conftest.$ac_ext <<_ACEOF | ||
18981 | /* end confdefs.h. */ | ||
18982 | $ac_includes_default | ||
18983 | typedef short int ac__type_new_; | ||
18984 | int | ||
18985 | main () | ||
18986 | { | ||
18987 | if ((ac__type_new_ *) 0) | ||
18988 | return 0; | ||
18989 | if (sizeof (ac__type_new_)) | ||
18990 | return 0; | ||
18991 | ; | ||
18992 | return 0; | ||
18993 | } | ||
18994 | _ACEOF | ||
18995 | rm -f conftest.$ac_objext | ||
18996 | if { (ac_try="$ac_compile" | ||
18997 | case "(($ac_try" in | ||
18998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18999 | *) ac_try_echo=$ac_try;; | ||
19000 | esac | ||
19001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19002 | (eval "$ac_compile") 2>conftest.er1 | ||
19003 | ac_status=$? | ||
19004 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19005 | rm -f conftest.er1 | ||
19006 | cat conftest.err >&5 | ||
19007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19008 | (exit $ac_status); } && { | ||
19009 | test -z "$ac_c_werror_flag" || | ||
19010 | test ! -s conftest.err | ||
19011 | } && test -s conftest.$ac_objext; then | ||
19012 | ac_cv_type_short_int=yes | ||
19013 | else | ||
19014 | echo "$as_me: failed program was:" >&5 | ||
19015 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19016 | |||
19017 | ac_cv_type_short_int=no | ||
19018 | fi | ||
19019 | |||
19020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19021 | fi | ||
19022 | { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5 | ||
19023 | echo "${ECHO_T}$ac_cv_type_short_int" >&6; } | ||
19024 | |||
19025 | # The cast to long int works around a bug in the HP C Compiler | ||
19026 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
19027 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
19028 | # This bug is HP SR number 8606223364. | ||
19029 | { echo "$as_me:$LINENO: checking size of short int" >&5 | ||
19030 | echo $ECHO_N "checking size of short int... $ECHO_C" >&6; } | ||
19031 | if test "${ac_cv_sizeof_short_int+set}" = set; then | ||
19032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19033 | else | ||
19034 | if test "$cross_compiling" = yes; then | ||
19035 | # Depending upon the size, compute the lo and hi bounds. | ||
19036 | cat >conftest.$ac_ext <<_ACEOF | ||
19037 | /* confdefs.h. */ | ||
19038 | _ACEOF | ||
19039 | cat confdefs.h >>conftest.$ac_ext | ||
19040 | cat >>conftest.$ac_ext <<_ACEOF | ||
19041 | /* end confdefs.h. */ | ||
19042 | $ac_includes_default | ||
19043 | typedef short int ac__type_sizeof_; | ||
19044 | int | ||
19045 | main () | ||
19046 | { | ||
19047 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
19048 | test_array [0] = 0 | ||
19049 | |||
19050 | ; | ||
19051 | return 0; | ||
19052 | } | ||
19053 | _ACEOF | ||
19054 | rm -f conftest.$ac_objext | ||
19055 | if { (ac_try="$ac_compile" | ||
19056 | case "(($ac_try" in | ||
19057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19058 | *) ac_try_echo=$ac_try;; | ||
19059 | esac | ||
19060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19061 | (eval "$ac_compile") 2>conftest.er1 | ||
19062 | ac_status=$? | ||
19063 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19064 | rm -f conftest.er1 | ||
19065 | cat conftest.err >&5 | ||
19066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19067 | (exit $ac_status); } && { | ||
19068 | test -z "$ac_c_werror_flag" || | ||
19069 | test ! -s conftest.err | ||
19070 | } && test -s conftest.$ac_objext; then | ||
19071 | ac_lo=0 ac_mid=0 | ||
19072 | while :; do | ||
19073 | cat >conftest.$ac_ext <<_ACEOF | ||
19074 | /* confdefs.h. */ | ||
19075 | _ACEOF | ||
19076 | cat confdefs.h >>conftest.$ac_ext | ||
19077 | cat >>conftest.$ac_ext <<_ACEOF | ||
19078 | /* end confdefs.h. */ | ||
19079 | $ac_includes_default | ||
19080 | typedef short int ac__type_sizeof_; | ||
19081 | int | ||
19082 | main () | ||
19083 | { | ||
19084 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
19085 | test_array [0] = 0 | ||
19086 | |||
19087 | ; | ||
19088 | return 0; | ||
19089 | } | ||
19090 | _ACEOF | ||
19091 | rm -f conftest.$ac_objext | ||
19092 | if { (ac_try="$ac_compile" | ||
19093 | case "(($ac_try" in | ||
19094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19095 | *) ac_try_echo=$ac_try;; | ||
19096 | esac | ||
19097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19098 | (eval "$ac_compile") 2>conftest.er1 | ||
19099 | ac_status=$? | ||
19100 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19101 | rm -f conftest.er1 | ||
19102 | cat conftest.err >&5 | ||
19103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19104 | (exit $ac_status); } && { | ||
19105 | test -z "$ac_c_werror_flag" || | ||
19106 | test ! -s conftest.err | ||
19107 | } && test -s conftest.$ac_objext; then | ||
19108 | ac_hi=$ac_mid; break | ||
19109 | else | ||
19110 | echo "$as_me: failed program was:" >&5 | ||
19111 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19112 | |||
19113 | ac_lo=`expr $ac_mid + 1` | ||
19114 | if test $ac_lo -le $ac_mid; then | ||
19115 | ac_lo= ac_hi= | ||
19116 | break | ||
19117 | fi | ||
19118 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
19119 | fi | ||
19120 | |||
19121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19122 | done | ||
19123 | else | ||
19124 | echo "$as_me: failed program was:" >&5 | ||
19125 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19126 | |||
19127 | cat >conftest.$ac_ext <<_ACEOF | ||
19128 | /* confdefs.h. */ | ||
19129 | _ACEOF | ||
19130 | cat confdefs.h >>conftest.$ac_ext | ||
19131 | cat >>conftest.$ac_ext <<_ACEOF | ||
19132 | /* end confdefs.h. */ | ||
19133 | $ac_includes_default | ||
19134 | typedef short int ac__type_sizeof_; | ||
19135 | int | ||
19136 | main () | ||
19137 | { | ||
19138 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
19139 | test_array [0] = 0 | ||
19140 | |||
19141 | ; | ||
19142 | return 0; | ||
19143 | } | ||
19144 | _ACEOF | ||
19145 | rm -f conftest.$ac_objext | ||
19146 | if { (ac_try="$ac_compile" | ||
19147 | case "(($ac_try" in | ||
19148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19149 | *) ac_try_echo=$ac_try;; | ||
19150 | esac | ||
19151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19152 | (eval "$ac_compile") 2>conftest.er1 | ||
19153 | ac_status=$? | ||
19154 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19155 | rm -f conftest.er1 | ||
19156 | cat conftest.err >&5 | ||
19157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19158 | (exit $ac_status); } && { | ||
19159 | test -z "$ac_c_werror_flag" || | ||
19160 | test ! -s conftest.err | ||
19161 | } && test -s conftest.$ac_objext; then | ||
19162 | ac_hi=-1 ac_mid=-1 | ||
19163 | while :; do | ||
19164 | cat >conftest.$ac_ext <<_ACEOF | ||
19165 | /* confdefs.h. */ | ||
19166 | _ACEOF | ||
19167 | cat confdefs.h >>conftest.$ac_ext | ||
19168 | cat >>conftest.$ac_ext <<_ACEOF | ||
19169 | /* end confdefs.h. */ | ||
19170 | $ac_includes_default | ||
19171 | typedef short int ac__type_sizeof_; | ||
19172 | int | ||
19173 | main () | ||
19174 | { | ||
19175 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
19176 | test_array [0] = 0 | ||
19177 | |||
19178 | ; | ||
19179 | return 0; | ||
19180 | } | ||
19181 | _ACEOF | ||
19182 | rm -f conftest.$ac_objext | ||
19183 | if { (ac_try="$ac_compile" | ||
19184 | case "(($ac_try" in | ||
19185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19186 | *) ac_try_echo=$ac_try;; | ||
19187 | esac | ||
19188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19189 | (eval "$ac_compile") 2>conftest.er1 | ||
19190 | ac_status=$? | ||
19191 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19192 | rm -f conftest.er1 | ||
19193 | cat conftest.err >&5 | ||
19194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19195 | (exit $ac_status); } && { | ||
19196 | test -z "$ac_c_werror_flag" || | ||
19197 | test ! -s conftest.err | ||
19198 | } && test -s conftest.$ac_objext; then | ||
19199 | ac_lo=$ac_mid; break | ||
19200 | else | ||
19201 | echo "$as_me: failed program was:" >&5 | ||
19202 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19203 | |||
19204 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
19205 | if test $ac_mid -le $ac_hi; then | ||
19206 | ac_lo= ac_hi= | ||
19207 | break | ||
19208 | fi | ||
19209 | ac_mid=`expr 2 '*' $ac_mid` | ||
19210 | fi | ||
19211 | |||
19212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19213 | done | ||
19214 | else | ||
19215 | echo "$as_me: failed program was:" >&5 | ||
19216 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19217 | |||
19218 | ac_lo= ac_hi= | ||
19219 | fi | ||
19220 | |||
19221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19222 | fi | ||
19223 | |||
19224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19225 | # Binary search between lo and hi bounds. | ||
19226 | while test "x$ac_lo" != "x$ac_hi"; do | ||
19227 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
19228 | cat >conftest.$ac_ext <<_ACEOF | ||
19229 | /* confdefs.h. */ | ||
19230 | _ACEOF | ||
19231 | cat confdefs.h >>conftest.$ac_ext | ||
19232 | cat >>conftest.$ac_ext <<_ACEOF | ||
19233 | /* end confdefs.h. */ | ||
19234 | $ac_includes_default | ||
19235 | typedef short int ac__type_sizeof_; | ||
19236 | int | ||
19237 | main () | ||
19238 | { | ||
19239 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
19240 | test_array [0] = 0 | ||
19241 | |||
19242 | ; | ||
19243 | return 0; | ||
19244 | } | ||
19245 | _ACEOF | ||
19246 | rm -f conftest.$ac_objext | ||
19247 | if { (ac_try="$ac_compile" | ||
19248 | case "(($ac_try" in | ||
19249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19250 | *) ac_try_echo=$ac_try;; | ||
19251 | esac | ||
19252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19253 | (eval "$ac_compile") 2>conftest.er1 | ||
19254 | ac_status=$? | ||
19255 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19256 | rm -f conftest.er1 | ||
19257 | cat conftest.err >&5 | ||
19258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19259 | (exit $ac_status); } && { | ||
19260 | test -z "$ac_c_werror_flag" || | ||
19261 | test ! -s conftest.err | ||
19262 | } && test -s conftest.$ac_objext; then | ||
19263 | ac_hi=$ac_mid | ||
19264 | else | ||
19265 | echo "$as_me: failed program was:" >&5 | ||
19266 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19267 | |||
19268 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
19269 | fi | ||
19270 | |||
19271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19272 | done | ||
19273 | case $ac_lo in | ||
19274 | ?*) ac_cv_sizeof_short_int=$ac_lo;; | ||
19275 | '') if test "$ac_cv_type_short_int" = yes; then | ||
19276 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int) | ||
19277 | See \`config.log' for more details." >&5 | ||
19278 | echo "$as_me: error: cannot compute sizeof (short int) | ||
19279 | See \`config.log' for more details." >&2;} | ||
19280 | { (exit 77); exit 77; }; } | ||
19281 | else | ||
19282 | ac_cv_sizeof_short_int=0 | ||
19283 | fi ;; | ||
19284 | esac | ||
19285 | else | ||
19286 | cat >conftest.$ac_ext <<_ACEOF | ||
19287 | /* confdefs.h. */ | ||
19288 | _ACEOF | ||
19289 | cat confdefs.h >>conftest.$ac_ext | ||
19290 | cat >>conftest.$ac_ext <<_ACEOF | ||
19291 | /* end confdefs.h. */ | ||
19292 | $ac_includes_default | ||
19293 | typedef short int ac__type_sizeof_; | ||
19294 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
19295 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
19296 | #include <stdio.h> | ||
19297 | #include <stdlib.h> | ||
19298 | int | ||
19299 | main () | ||
19300 | { | ||
19301 | |||
19302 | FILE *f = fopen ("conftest.val", "w"); | ||
19303 | if (! f) | ||
19304 | return 1; | ||
19305 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
19306 | { | ||
19307 | long int i = longval (); | ||
19308 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
19309 | return 1; | ||
19310 | fprintf (f, "%ld\n", i); | ||
19311 | } | ||
19312 | else | ||
19313 | { | ||
19314 | unsigned long int i = ulongval (); | ||
19315 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
19316 | return 1; | ||
19317 | fprintf (f, "%lu\n", i); | ||
19318 | } | ||
19319 | return ferror (f) || fclose (f) != 0; | ||
19320 | |||
19321 | ; | ||
19322 | return 0; | ||
19323 | } | ||
19324 | _ACEOF | ||
19325 | rm -f conftest$ac_exeext | ||
19326 | if { (ac_try="$ac_link" | ||
19327 | case "(($ac_try" in | ||
19328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19329 | *) ac_try_echo=$ac_try;; | ||
19330 | esac | ||
19331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19332 | (eval "$ac_link") 2>&5 | ||
19333 | ac_status=$? | ||
19334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19335 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
19336 | { (case "(($ac_try" in | ||
19337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19338 | *) ac_try_echo=$ac_try;; | ||
19339 | esac | ||
19340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19341 | (eval "$ac_try") 2>&5 | ||
19342 | ac_status=$? | ||
19343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19344 | (exit $ac_status); }; }; then | ||
19345 | ac_cv_sizeof_short_int=`cat conftest.val` | ||
19346 | else | ||
19347 | echo "$as_me: program exited with status $ac_status" >&5 | ||
19348 | echo "$as_me: failed program was:" >&5 | ||
19349 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19350 | |||
19351 | ( exit $ac_status ) | ||
19352 | if test "$ac_cv_type_short_int" = yes; then | ||
19353 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int) | ||
19354 | See \`config.log' for more details." >&5 | ||
19355 | echo "$as_me: error: cannot compute sizeof (short int) | ||
19356 | See \`config.log' for more details." >&2;} | ||
19357 | { (exit 77); exit 77; }; } | ||
19358 | else | ||
19359 | ac_cv_sizeof_short_int=0 | ||
19360 | fi | ||
19361 | fi | ||
19362 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
19363 | fi | ||
19364 | rm -f conftest.val | ||
19365 | fi | ||
19366 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5 | ||
19367 | echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; } | ||
19368 | |||
19369 | |||
19370 | |||
19371 | cat >>confdefs.h <<_ACEOF | ||
19372 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
19373 | _ACEOF | ||
19374 | |||
19375 | |||
19376 | { echo "$as_me:$LINENO: checking for int" >&5 | ||
19377 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } | ||
19378 | if test "${ac_cv_type_int+set}" = set; then | ||
19379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19380 | else | ||
19381 | cat >conftest.$ac_ext <<_ACEOF | ||
19382 | /* confdefs.h. */ | ||
19383 | _ACEOF | ||
19384 | cat confdefs.h >>conftest.$ac_ext | ||
19385 | cat >>conftest.$ac_ext <<_ACEOF | ||
19386 | /* end confdefs.h. */ | ||
19387 | $ac_includes_default | ||
19388 | typedef int ac__type_new_; | ||
19389 | int | ||
19390 | main () | ||
19391 | { | ||
19392 | if ((ac__type_new_ *) 0) | ||
19393 | return 0; | ||
19394 | if (sizeof (ac__type_new_)) | ||
19395 | return 0; | ||
19396 | ; | ||
19397 | return 0; | ||
19398 | } | ||
19399 | _ACEOF | ||
19400 | rm -f conftest.$ac_objext | ||
19401 | if { (ac_try="$ac_compile" | ||
19402 | case "(($ac_try" in | ||
19403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19404 | *) ac_try_echo=$ac_try;; | ||
19405 | esac | ||
19406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19407 | (eval "$ac_compile") 2>conftest.er1 | ||
19408 | ac_status=$? | ||
19409 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19410 | rm -f conftest.er1 | ||
19411 | cat conftest.err >&5 | ||
19412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19413 | (exit $ac_status); } && { | ||
19414 | test -z "$ac_c_werror_flag" || | ||
19415 | test ! -s conftest.err | ||
19416 | } && test -s conftest.$ac_objext; then | ||
19417 | ac_cv_type_int=yes | ||
19418 | else | ||
19419 | echo "$as_me: failed program was:" >&5 | ||
19420 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19421 | |||
19422 | ac_cv_type_int=no | ||
19423 | fi | ||
19424 | |||
19425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19426 | fi | ||
19427 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | ||
19428 | echo "${ECHO_T}$ac_cv_type_int" >&6; } | ||
19429 | |||
19430 | # The cast to long int works around a bug in the HP C Compiler | ||
19431 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
19432 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
19433 | # This bug is HP SR number 8606223364. | ||
19434 | { echo "$as_me:$LINENO: checking size of int" >&5 | ||
19435 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } | ||
19436 | if test "${ac_cv_sizeof_int+set}" = set; then | ||
19437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19438 | else | ||
19439 | if test "$cross_compiling" = yes; then | ||
19440 | # Depending upon the size, compute the lo and hi bounds. | ||
19441 | cat >conftest.$ac_ext <<_ACEOF | ||
19442 | /* confdefs.h. */ | ||
19443 | _ACEOF | ||
19444 | cat confdefs.h >>conftest.$ac_ext | ||
19445 | cat >>conftest.$ac_ext <<_ACEOF | ||
19446 | /* end confdefs.h. */ | ||
19447 | $ac_includes_default | ||
19448 | typedef int ac__type_sizeof_; | ||
19449 | int | ||
19450 | main () | ||
19451 | { | ||
19452 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
19453 | test_array [0] = 0 | ||
19454 | |||
19455 | ; | ||
19456 | return 0; | ||
19457 | } | ||
19458 | _ACEOF | ||
19459 | rm -f conftest.$ac_objext | ||
19460 | if { (ac_try="$ac_compile" | ||
19461 | case "(($ac_try" in | ||
19462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19463 | *) ac_try_echo=$ac_try;; | ||
19464 | esac | ||
19465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19466 | (eval "$ac_compile") 2>conftest.er1 | ||
19467 | ac_status=$? | ||
19468 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19469 | rm -f conftest.er1 | ||
19470 | cat conftest.err >&5 | ||
19471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19472 | (exit $ac_status); } && { | ||
19473 | test -z "$ac_c_werror_flag" || | ||
19474 | test ! -s conftest.err | ||
19475 | } && test -s conftest.$ac_objext; then | ||
19476 | ac_lo=0 ac_mid=0 | ||
19477 | while :; do | ||
19478 | cat >conftest.$ac_ext <<_ACEOF | ||
19479 | /* confdefs.h. */ | ||
19480 | _ACEOF | ||
19481 | cat confdefs.h >>conftest.$ac_ext | ||
19482 | cat >>conftest.$ac_ext <<_ACEOF | ||
19483 | /* end confdefs.h. */ | ||
19484 | $ac_includes_default | ||
19485 | typedef int ac__type_sizeof_; | ||
19486 | int | ||
19487 | main () | ||
19488 | { | ||
19489 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
19490 | test_array [0] = 0 | ||
19491 | |||
19492 | ; | ||
19493 | return 0; | ||
19494 | } | ||
19495 | _ACEOF | ||
19496 | rm -f conftest.$ac_objext | ||
19497 | if { (ac_try="$ac_compile" | ||
19498 | case "(($ac_try" in | ||
19499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19500 | *) ac_try_echo=$ac_try;; | ||
19501 | esac | ||
19502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19503 | (eval "$ac_compile") 2>conftest.er1 | ||
19504 | ac_status=$? | ||
19505 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19506 | rm -f conftest.er1 | ||
19507 | cat conftest.err >&5 | ||
19508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19509 | (exit $ac_status); } && { | ||
19510 | test -z "$ac_c_werror_flag" || | ||
19511 | test ! -s conftest.err | ||
19512 | } && test -s conftest.$ac_objext; then | ||
19513 | ac_hi=$ac_mid; break | ||
19514 | else | ||
19515 | echo "$as_me: failed program was:" >&5 | ||
19516 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19517 | |||
19518 | ac_lo=`expr $ac_mid + 1` | ||
19519 | if test $ac_lo -le $ac_mid; then | ||
19520 | ac_lo= ac_hi= | ||
19521 | break | ||
19522 | fi | ||
19523 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
19524 | fi | ||
19525 | |||
19526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19527 | done | ||
19528 | else | ||
19529 | echo "$as_me: failed program was:" >&5 | ||
19530 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19531 | |||
19532 | cat >conftest.$ac_ext <<_ACEOF | ||
19533 | /* confdefs.h. */ | ||
19534 | _ACEOF | ||
19535 | cat confdefs.h >>conftest.$ac_ext | ||
19536 | cat >>conftest.$ac_ext <<_ACEOF | ||
19537 | /* end confdefs.h. */ | ||
19538 | $ac_includes_default | ||
19539 | typedef int ac__type_sizeof_; | ||
19540 | int | ||
19541 | main () | ||
19542 | { | ||
19543 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
19544 | test_array [0] = 0 | ||
19545 | |||
19546 | ; | ||
19547 | return 0; | ||
19548 | } | ||
19549 | _ACEOF | ||
19550 | rm -f conftest.$ac_objext | ||
19551 | if { (ac_try="$ac_compile" | ||
19552 | case "(($ac_try" in | ||
19553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19554 | *) ac_try_echo=$ac_try;; | ||
19555 | esac | ||
19556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19557 | (eval "$ac_compile") 2>conftest.er1 | ||
19558 | ac_status=$? | ||
19559 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19560 | rm -f conftest.er1 | ||
19561 | cat conftest.err >&5 | ||
19562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19563 | (exit $ac_status); } && { | ||
19564 | test -z "$ac_c_werror_flag" || | ||
19565 | test ! -s conftest.err | ||
19566 | } && test -s conftest.$ac_objext; then | ||
19567 | ac_hi=-1 ac_mid=-1 | ||
19568 | while :; do | ||
19569 | cat >conftest.$ac_ext <<_ACEOF | ||
19570 | /* confdefs.h. */ | ||
19571 | _ACEOF | ||
19572 | cat confdefs.h >>conftest.$ac_ext | ||
19573 | cat >>conftest.$ac_ext <<_ACEOF | ||
19574 | /* end confdefs.h. */ | ||
19575 | $ac_includes_default | ||
19576 | typedef int ac__type_sizeof_; | ||
19577 | int | ||
19578 | main () | ||
19579 | { | ||
19580 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
19581 | test_array [0] = 0 | ||
19582 | |||
19583 | ; | ||
19584 | return 0; | ||
19585 | } | ||
19586 | _ACEOF | ||
19587 | rm -f conftest.$ac_objext | ||
19588 | if { (ac_try="$ac_compile" | ||
19589 | case "(($ac_try" in | ||
19590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19591 | *) ac_try_echo=$ac_try;; | ||
19592 | esac | ||
19593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19594 | (eval "$ac_compile") 2>conftest.er1 | ||
19595 | ac_status=$? | ||
19596 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19597 | rm -f conftest.er1 | ||
19598 | cat conftest.err >&5 | ||
19599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19600 | (exit $ac_status); } && { | ||
19601 | test -z "$ac_c_werror_flag" || | ||
19602 | test ! -s conftest.err | ||
19603 | } && test -s conftest.$ac_objext; then | ||
19604 | ac_lo=$ac_mid; break | ||
19605 | else | ||
19606 | echo "$as_me: failed program was:" >&5 | ||
19607 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19608 | |||
19609 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
19610 | if test $ac_mid -le $ac_hi; then | ||
19611 | ac_lo= ac_hi= | ||
19612 | break | ||
19613 | fi | ||
19614 | ac_mid=`expr 2 '*' $ac_mid` | ||
19615 | fi | ||
19616 | |||
19617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19618 | done | ||
19619 | else | ||
19620 | echo "$as_me: failed program was:" >&5 | ||
19621 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19622 | |||
19623 | ac_lo= ac_hi= | ||
19624 | fi | ||
19625 | |||
19626 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19627 | fi | ||
19628 | |||
19629 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19630 | # Binary search between lo and hi bounds. | ||
19631 | while test "x$ac_lo" != "x$ac_hi"; do | ||
19632 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
19633 | cat >conftest.$ac_ext <<_ACEOF | ||
19634 | /* confdefs.h. */ | ||
19635 | _ACEOF | ||
19636 | cat confdefs.h >>conftest.$ac_ext | ||
19637 | cat >>conftest.$ac_ext <<_ACEOF | ||
19638 | /* end confdefs.h. */ | ||
19639 | $ac_includes_default | ||
19640 | typedef int ac__type_sizeof_; | ||
19641 | int | ||
19642 | main () | ||
19643 | { | ||
19644 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
19645 | test_array [0] = 0 | ||
19646 | |||
19647 | ; | ||
19648 | return 0; | ||
19649 | } | ||
19650 | _ACEOF | ||
19651 | rm -f conftest.$ac_objext | ||
19652 | if { (ac_try="$ac_compile" | ||
19653 | case "(($ac_try" in | ||
19654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19655 | *) ac_try_echo=$ac_try;; | ||
19656 | esac | ||
19657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19658 | (eval "$ac_compile") 2>conftest.er1 | ||
19659 | ac_status=$? | ||
19660 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19661 | rm -f conftest.er1 | ||
19662 | cat conftest.err >&5 | ||
19663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19664 | (exit $ac_status); } && { | ||
19665 | test -z "$ac_c_werror_flag" || | ||
19666 | test ! -s conftest.err | ||
19667 | } && test -s conftest.$ac_objext; then | ||
19668 | ac_hi=$ac_mid | ||
19669 | else | ||
19670 | echo "$as_me: failed program was:" >&5 | ||
19671 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19672 | |||
19673 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
19674 | fi | ||
19675 | |||
19676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19677 | done | ||
19678 | case $ac_lo in | ||
19679 | ?*) ac_cv_sizeof_int=$ac_lo;; | ||
19680 | '') if test "$ac_cv_type_int" = yes; then | ||
19681 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | ||
19682 | See \`config.log' for more details." >&5 | ||
19683 | echo "$as_me: error: cannot compute sizeof (int) | ||
19684 | See \`config.log' for more details." >&2;} | ||
19685 | { (exit 77); exit 77; }; } | ||
19686 | else | ||
19687 | ac_cv_sizeof_int=0 | ||
19688 | fi ;; | ||
19689 | esac | ||
19690 | else | ||
19691 | cat >conftest.$ac_ext <<_ACEOF | ||
19692 | /* confdefs.h. */ | ||
19693 | _ACEOF | ||
19694 | cat confdefs.h >>conftest.$ac_ext | ||
19695 | cat >>conftest.$ac_ext <<_ACEOF | ||
19696 | /* end confdefs.h. */ | ||
19697 | $ac_includes_default | ||
19698 | typedef int ac__type_sizeof_; | ||
19699 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
19700 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
19701 | #include <stdio.h> | ||
19702 | #include <stdlib.h> | ||
19703 | int | ||
19704 | main () | ||
19705 | { | ||
19706 | |||
19707 | FILE *f = fopen ("conftest.val", "w"); | ||
19708 | if (! f) | ||
19709 | return 1; | ||
19710 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
19711 | { | ||
19712 | long int i = longval (); | ||
19713 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
19714 | return 1; | ||
19715 | fprintf (f, "%ld\n", i); | ||
19716 | } | ||
19717 | else | ||
19718 | { | ||
19719 | unsigned long int i = ulongval (); | ||
19720 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
19721 | return 1; | ||
19722 | fprintf (f, "%lu\n", i); | ||
19723 | } | ||
19724 | return ferror (f) || fclose (f) != 0; | ||
19725 | |||
19726 | ; | ||
19727 | return 0; | ||
19728 | } | ||
19729 | _ACEOF | ||
19730 | rm -f conftest$ac_exeext | ||
19731 | if { (ac_try="$ac_link" | ||
19732 | case "(($ac_try" in | ||
19733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19734 | *) ac_try_echo=$ac_try;; | ||
19735 | esac | ||
19736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19737 | (eval "$ac_link") 2>&5 | ||
19738 | ac_status=$? | ||
19739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19740 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
19741 | { (case "(($ac_try" in | ||
19742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19743 | *) ac_try_echo=$ac_try;; | ||
19744 | esac | ||
19745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19746 | (eval "$ac_try") 2>&5 | ||
19747 | ac_status=$? | ||
19748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19749 | (exit $ac_status); }; }; then | ||
19750 | ac_cv_sizeof_int=`cat conftest.val` | ||
19751 | else | ||
19752 | echo "$as_me: program exited with status $ac_status" >&5 | ||
19753 | echo "$as_me: failed program was:" >&5 | ||
19754 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19755 | |||
19756 | ( exit $ac_status ) | ||
19757 | if test "$ac_cv_type_int" = yes; then | ||
19758 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | ||
19759 | See \`config.log' for more details." >&5 | ||
19760 | echo "$as_me: error: cannot compute sizeof (int) | ||
19761 | See \`config.log' for more details." >&2;} | ||
19762 | { (exit 77); exit 77; }; } | ||
19763 | else | ||
19764 | ac_cv_sizeof_int=0 | ||
19765 | fi | ||
19766 | fi | ||
19767 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
19768 | fi | ||
19769 | rm -f conftest.val | ||
19770 | fi | ||
19771 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | ||
19772 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } | ||
19773 | |||
19774 | |||
19775 | |||
19776 | cat >>confdefs.h <<_ACEOF | ||
19777 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
19778 | _ACEOF | ||
19779 | |||
19780 | |||
19781 | { echo "$as_me:$LINENO: checking for long int" >&5 | ||
19782 | echo $ECHO_N "checking for long int... $ECHO_C" >&6; } | ||
19783 | if test "${ac_cv_type_long_int+set}" = set; then | ||
19784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19785 | else | ||
19786 | cat >conftest.$ac_ext <<_ACEOF | ||
19787 | /* confdefs.h. */ | ||
19788 | _ACEOF | ||
19789 | cat confdefs.h >>conftest.$ac_ext | ||
19790 | cat >>conftest.$ac_ext <<_ACEOF | ||
19791 | /* end confdefs.h. */ | ||
19792 | $ac_includes_default | ||
19793 | typedef long int ac__type_new_; | ||
19794 | int | ||
19795 | main () | ||
19796 | { | ||
19797 | if ((ac__type_new_ *) 0) | ||
19798 | return 0; | ||
19799 | if (sizeof (ac__type_new_)) | ||
19800 | return 0; | ||
19801 | ; | ||
19802 | return 0; | ||
19803 | } | ||
19804 | _ACEOF | ||
19805 | rm -f conftest.$ac_objext | ||
19806 | if { (ac_try="$ac_compile" | ||
19807 | case "(($ac_try" in | ||
19808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19809 | *) ac_try_echo=$ac_try;; | ||
19810 | esac | ||
19811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19812 | (eval "$ac_compile") 2>conftest.er1 | ||
19813 | ac_status=$? | ||
19814 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19815 | rm -f conftest.er1 | ||
19816 | cat conftest.err >&5 | ||
19817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19818 | (exit $ac_status); } && { | ||
19819 | test -z "$ac_c_werror_flag" || | ||
19820 | test ! -s conftest.err | ||
19821 | } && test -s conftest.$ac_objext; then | ||
19822 | ac_cv_type_long_int=yes | ||
19823 | else | ||
19824 | echo "$as_me: failed program was:" >&5 | ||
19825 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19826 | |||
19827 | ac_cv_type_long_int=no | ||
19828 | fi | ||
19829 | |||
19830 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19831 | fi | ||
19832 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5 | ||
19833 | echo "${ECHO_T}$ac_cv_type_long_int" >&6; } | ||
19834 | |||
19835 | # The cast to long int works around a bug in the HP C Compiler | ||
19836 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
19837 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
19838 | # This bug is HP SR number 8606223364. | ||
19839 | { echo "$as_me:$LINENO: checking size of long int" >&5 | ||
19840 | echo $ECHO_N "checking size of long int... $ECHO_C" >&6; } | ||
19841 | if test "${ac_cv_sizeof_long_int+set}" = set; then | ||
19842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19843 | else | ||
19844 | if test "$cross_compiling" = yes; then | ||
19845 | # Depending upon the size, compute the lo and hi bounds. | ||
19846 | cat >conftest.$ac_ext <<_ACEOF | ||
19847 | /* confdefs.h. */ | ||
19848 | _ACEOF | ||
19849 | cat confdefs.h >>conftest.$ac_ext | ||
19850 | cat >>conftest.$ac_ext <<_ACEOF | ||
19851 | /* end confdefs.h. */ | ||
19852 | $ac_includes_default | ||
19853 | typedef long int ac__type_sizeof_; | ||
19854 | int | ||
19855 | main () | ||
19856 | { | ||
19857 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
19858 | test_array [0] = 0 | ||
19859 | |||
19860 | ; | ||
19861 | return 0; | ||
19862 | } | ||
19863 | _ACEOF | ||
19864 | rm -f conftest.$ac_objext | ||
19865 | if { (ac_try="$ac_compile" | ||
19866 | case "(($ac_try" in | ||
19867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19868 | *) ac_try_echo=$ac_try;; | ||
19869 | esac | ||
19870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19871 | (eval "$ac_compile") 2>conftest.er1 | ||
19872 | ac_status=$? | ||
19873 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19874 | rm -f conftest.er1 | ||
19875 | cat conftest.err >&5 | ||
19876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19877 | (exit $ac_status); } && { | ||
19878 | test -z "$ac_c_werror_flag" || | ||
19879 | test ! -s conftest.err | ||
19880 | } && test -s conftest.$ac_objext; then | ||
19881 | ac_lo=0 ac_mid=0 | ||
19882 | while :; do | ||
19883 | cat >conftest.$ac_ext <<_ACEOF | ||
19884 | /* confdefs.h. */ | ||
19885 | _ACEOF | ||
19886 | cat confdefs.h >>conftest.$ac_ext | ||
19887 | cat >>conftest.$ac_ext <<_ACEOF | ||
19888 | /* end confdefs.h. */ | ||
19889 | $ac_includes_default | ||
19890 | typedef long int ac__type_sizeof_; | ||
19891 | int | ||
19892 | main () | ||
19893 | { | ||
19894 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
19895 | test_array [0] = 0 | ||
19896 | |||
19897 | ; | ||
19898 | return 0; | ||
19899 | } | ||
19900 | _ACEOF | ||
19901 | rm -f conftest.$ac_objext | ||
19902 | if { (ac_try="$ac_compile" | ||
19903 | case "(($ac_try" in | ||
19904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19905 | *) ac_try_echo=$ac_try;; | ||
19906 | esac | ||
19907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19908 | (eval "$ac_compile") 2>conftest.er1 | ||
19909 | ac_status=$? | ||
19910 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19911 | rm -f conftest.er1 | ||
19912 | cat conftest.err >&5 | ||
19913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19914 | (exit $ac_status); } && { | ||
19915 | test -z "$ac_c_werror_flag" || | ||
19916 | test ! -s conftest.err | ||
19917 | } && test -s conftest.$ac_objext; then | ||
19918 | ac_hi=$ac_mid; break | ||
19919 | else | ||
19920 | echo "$as_me: failed program was:" >&5 | ||
19921 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19922 | |||
19923 | ac_lo=`expr $ac_mid + 1` | ||
19924 | if test $ac_lo -le $ac_mid; then | ||
19925 | ac_lo= ac_hi= | ||
19926 | break | ||
19927 | fi | ||
19928 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
19929 | fi | ||
19930 | |||
19931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19932 | done | ||
19933 | else | ||
19934 | echo "$as_me: failed program was:" >&5 | ||
19935 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19936 | |||
19937 | cat >conftest.$ac_ext <<_ACEOF | ||
19938 | /* confdefs.h. */ | ||
19939 | _ACEOF | ||
19940 | cat confdefs.h >>conftest.$ac_ext | ||
19941 | cat >>conftest.$ac_ext <<_ACEOF | ||
19942 | /* end confdefs.h. */ | ||
19943 | $ac_includes_default | ||
19944 | typedef long int ac__type_sizeof_; | ||
19945 | int | ||
19946 | main () | ||
19947 | { | ||
19948 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
19949 | test_array [0] = 0 | ||
19950 | |||
19951 | ; | ||
19952 | return 0; | ||
19953 | } | ||
19954 | _ACEOF | ||
19955 | rm -f conftest.$ac_objext | ||
19956 | if { (ac_try="$ac_compile" | ||
19957 | case "(($ac_try" in | ||
19958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19959 | *) ac_try_echo=$ac_try;; | ||
19960 | esac | ||
19961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19962 | (eval "$ac_compile") 2>conftest.er1 | ||
19963 | ac_status=$? | ||
19964 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19965 | rm -f conftest.er1 | ||
19966 | cat conftest.err >&5 | ||
19967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19968 | (exit $ac_status); } && { | ||
19969 | test -z "$ac_c_werror_flag" || | ||
19970 | test ! -s conftest.err | ||
19971 | } && test -s conftest.$ac_objext; then | ||
19972 | ac_hi=-1 ac_mid=-1 | ||
19973 | while :; do | ||
19974 | cat >conftest.$ac_ext <<_ACEOF | ||
19975 | /* confdefs.h. */ | ||
19976 | _ACEOF | ||
19977 | cat confdefs.h >>conftest.$ac_ext | ||
19978 | cat >>conftest.$ac_ext <<_ACEOF | ||
19979 | /* end confdefs.h. */ | ||
19980 | $ac_includes_default | ||
19981 | typedef long int ac__type_sizeof_; | ||
19982 | int | ||
19983 | main () | ||
19984 | { | ||
19985 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
19986 | test_array [0] = 0 | ||
19987 | |||
19988 | ; | ||
19989 | return 0; | ||
19990 | } | ||
19991 | _ACEOF | ||
19992 | rm -f conftest.$ac_objext | ||
19993 | if { (ac_try="$ac_compile" | ||
19994 | case "(($ac_try" in | ||
19995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19996 | *) ac_try_echo=$ac_try;; | ||
19997 | esac | ||
19998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19999 | (eval "$ac_compile") 2>conftest.er1 | ||
20000 | ac_status=$? | ||
20001 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20002 | rm -f conftest.er1 | ||
20003 | cat conftest.err >&5 | ||
20004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20005 | (exit $ac_status); } && { | ||
20006 | test -z "$ac_c_werror_flag" || | ||
20007 | test ! -s conftest.err | ||
20008 | } && test -s conftest.$ac_objext; then | ||
20009 | ac_lo=$ac_mid; break | ||
20010 | else | ||
20011 | echo "$as_me: failed program was:" >&5 | ||
20012 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20013 | |||
20014 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
20015 | if test $ac_mid -le $ac_hi; then | ||
20016 | ac_lo= ac_hi= | ||
20017 | break | ||
20018 | fi | ||
20019 | ac_mid=`expr 2 '*' $ac_mid` | ||
20020 | fi | ||
20021 | |||
20022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20023 | done | ||
20024 | else | ||
20025 | echo "$as_me: failed program was:" >&5 | ||
20026 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20027 | |||
20028 | ac_lo= ac_hi= | ||
20029 | fi | ||
20030 | |||
20031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20032 | fi | ||
20033 | |||
20034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20035 | # Binary search between lo and hi bounds. | ||
20036 | while test "x$ac_lo" != "x$ac_hi"; do | ||
20037 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
20038 | cat >conftest.$ac_ext <<_ACEOF | ||
20039 | /* confdefs.h. */ | ||
20040 | _ACEOF | ||
20041 | cat confdefs.h >>conftest.$ac_ext | ||
20042 | cat >>conftest.$ac_ext <<_ACEOF | ||
20043 | /* end confdefs.h. */ | ||
20044 | $ac_includes_default | ||
20045 | typedef long int ac__type_sizeof_; | ||
20046 | int | ||
20047 | main () | ||
20048 | { | ||
20049 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
20050 | test_array [0] = 0 | ||
20051 | |||
20052 | ; | ||
20053 | return 0; | ||
20054 | } | ||
20055 | _ACEOF | ||
20056 | rm -f conftest.$ac_objext | ||
20057 | if { (ac_try="$ac_compile" | ||
20058 | case "(($ac_try" in | ||
20059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20060 | *) ac_try_echo=$ac_try;; | ||
20061 | esac | ||
20062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20063 | (eval "$ac_compile") 2>conftest.er1 | ||
20064 | ac_status=$? | ||
20065 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20066 | rm -f conftest.er1 | ||
20067 | cat conftest.err >&5 | ||
20068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20069 | (exit $ac_status); } && { | ||
20070 | test -z "$ac_c_werror_flag" || | ||
20071 | test ! -s conftest.err | ||
20072 | } && test -s conftest.$ac_objext; then | ||
20073 | ac_hi=$ac_mid | ||
20074 | else | ||
20075 | echo "$as_me: failed program was:" >&5 | ||
20076 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20077 | |||
20078 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
20079 | fi | ||
20080 | |||
20081 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20082 | done | ||
20083 | case $ac_lo in | ||
20084 | ?*) ac_cv_sizeof_long_int=$ac_lo;; | ||
20085 | '') if test "$ac_cv_type_long_int" = yes; then | ||
20086 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) | ||
20087 | See \`config.log' for more details." >&5 | ||
20088 | echo "$as_me: error: cannot compute sizeof (long int) | ||
20089 | See \`config.log' for more details." >&2;} | ||
20090 | { (exit 77); exit 77; }; } | ||
20091 | else | ||
20092 | ac_cv_sizeof_long_int=0 | ||
20093 | fi ;; | ||
20094 | esac | ||
20095 | else | ||
20096 | cat >conftest.$ac_ext <<_ACEOF | ||
20097 | /* confdefs.h. */ | ||
20098 | _ACEOF | ||
20099 | cat confdefs.h >>conftest.$ac_ext | ||
20100 | cat >>conftest.$ac_ext <<_ACEOF | ||
20101 | /* end confdefs.h. */ | ||
20102 | $ac_includes_default | ||
20103 | typedef long int ac__type_sizeof_; | ||
20104 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
20105 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
20106 | #include <stdio.h> | ||
20107 | #include <stdlib.h> | ||
20108 | int | ||
20109 | main () | ||
20110 | { | ||
20111 | |||
20112 | FILE *f = fopen ("conftest.val", "w"); | ||
20113 | if (! f) | ||
20114 | return 1; | ||
20115 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
20116 | { | ||
20117 | long int i = longval (); | ||
20118 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
20119 | return 1; | ||
20120 | fprintf (f, "%ld\n", i); | ||
20121 | } | ||
20122 | else | ||
20123 | { | ||
20124 | unsigned long int i = ulongval (); | ||
20125 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
20126 | return 1; | ||
20127 | fprintf (f, "%lu\n", i); | ||
20128 | } | ||
20129 | return ferror (f) || fclose (f) != 0; | ||
20130 | |||
20131 | ; | ||
20132 | return 0; | ||
20133 | } | ||
20134 | _ACEOF | ||
20135 | rm -f conftest$ac_exeext | ||
20136 | if { (ac_try="$ac_link" | ||
20137 | case "(($ac_try" in | ||
20138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20139 | *) ac_try_echo=$ac_try;; | ||
20140 | esac | ||
20141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20142 | (eval "$ac_link") 2>&5 | ||
20143 | ac_status=$? | ||
20144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20145 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20146 | { (case "(($ac_try" in | ||
20147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20148 | *) ac_try_echo=$ac_try;; | ||
20149 | esac | ||
20150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20151 | (eval "$ac_try") 2>&5 | ||
20152 | ac_status=$? | ||
20153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20154 | (exit $ac_status); }; }; then | ||
20155 | ac_cv_sizeof_long_int=`cat conftest.val` | ||
20156 | else | ||
20157 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20158 | echo "$as_me: failed program was:" >&5 | ||
20159 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20160 | |||
20161 | ( exit $ac_status ) | ||
20162 | if test "$ac_cv_type_long_int" = yes; then | ||
20163 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) | ||
20164 | See \`config.log' for more details." >&5 | ||
20165 | echo "$as_me: error: cannot compute sizeof (long int) | ||
20166 | See \`config.log' for more details." >&2;} | ||
20167 | { (exit 77); exit 77; }; } | ||
20168 | else | ||
20169 | ac_cv_sizeof_long_int=0 | ||
20170 | fi | ||
20171 | fi | ||
20172 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20173 | fi | ||
20174 | rm -f conftest.val | ||
20175 | fi | ||
20176 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5 | ||
20177 | echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; } | ||
20178 | |||
20179 | |||
20180 | |||
20181 | cat >>confdefs.h <<_ACEOF | ||
20182 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
20183 | _ACEOF | ||
20184 | |||
20185 | |||
20186 | { echo "$as_me:$LINENO: checking for long long int" >&5 | ||
20187 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6; } | ||
20188 | if test "${ac_cv_type_long_long_int+set}" = set; then | ||
20189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20190 | else | ||
20191 | cat >conftest.$ac_ext <<_ACEOF | ||
20192 | /* confdefs.h. */ | ||
20193 | _ACEOF | ||
20194 | cat confdefs.h >>conftest.$ac_ext | ||
20195 | cat >>conftest.$ac_ext <<_ACEOF | ||
20196 | /* end confdefs.h. */ | ||
20197 | $ac_includes_default | ||
20198 | typedef long long int ac__type_new_; | ||
20199 | int | ||
20200 | main () | ||
20201 | { | ||
20202 | if ((ac__type_new_ *) 0) | ||
20203 | return 0; | ||
20204 | if (sizeof (ac__type_new_)) | ||
20205 | return 0; | ||
20206 | ; | ||
20207 | return 0; | ||
20208 | } | ||
20209 | _ACEOF | ||
20210 | rm -f conftest.$ac_objext | ||
20211 | if { (ac_try="$ac_compile" | ||
20212 | case "(($ac_try" in | ||
20213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20214 | *) ac_try_echo=$ac_try;; | ||
20215 | esac | ||
20216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20217 | (eval "$ac_compile") 2>conftest.er1 | ||
20218 | ac_status=$? | ||
20219 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20220 | rm -f conftest.er1 | ||
20221 | cat conftest.err >&5 | ||
20222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20223 | (exit $ac_status); } && { | ||
20224 | test -z "$ac_c_werror_flag" || | ||
20225 | test ! -s conftest.err | ||
20226 | } && test -s conftest.$ac_objext; then | ||
20227 | ac_cv_type_long_long_int=yes | ||
20228 | else | ||
20229 | echo "$as_me: failed program was:" >&5 | ||
20230 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20231 | |||
20232 | ac_cv_type_long_long_int=no | ||
20233 | fi | ||
20234 | |||
20235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20236 | fi | ||
20237 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 | ||
20238 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; } | ||
20239 | |||
20240 | # The cast to long int works around a bug in the HP C Compiler | ||
20241 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
20242 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
20243 | # This bug is HP SR number 8606223364. | ||
20244 | { echo "$as_me:$LINENO: checking size of long long int" >&5 | ||
20245 | echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; } | ||
20246 | if test "${ac_cv_sizeof_long_long_int+set}" = set; then | ||
20247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20248 | else | ||
20249 | if test "$cross_compiling" = yes; then | ||
20250 | # Depending upon the size, compute the lo and hi bounds. | ||
20251 | cat >conftest.$ac_ext <<_ACEOF | ||
20252 | /* confdefs.h. */ | ||
20253 | _ACEOF | ||
20254 | cat confdefs.h >>conftest.$ac_ext | ||
20255 | cat >>conftest.$ac_ext <<_ACEOF | ||
20256 | /* end confdefs.h. */ | ||
20257 | $ac_includes_default | ||
20258 | typedef long long int ac__type_sizeof_; | ||
20259 | int | ||
20260 | main () | ||
20261 | { | ||
20262 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
20263 | test_array [0] = 0 | ||
20264 | |||
20265 | ; | ||
20266 | return 0; | ||
20267 | } | ||
20268 | _ACEOF | ||
20269 | rm -f conftest.$ac_objext | ||
20270 | if { (ac_try="$ac_compile" | ||
20271 | case "(($ac_try" in | ||
20272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20273 | *) ac_try_echo=$ac_try;; | ||
20274 | esac | ||
20275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20276 | (eval "$ac_compile") 2>conftest.er1 | ||
20277 | ac_status=$? | ||
20278 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20279 | rm -f conftest.er1 | ||
20280 | cat conftest.err >&5 | ||
20281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20282 | (exit $ac_status); } && { | ||
20283 | test -z "$ac_c_werror_flag" || | ||
20284 | test ! -s conftest.err | ||
20285 | } && test -s conftest.$ac_objext; then | ||
20286 | ac_lo=0 ac_mid=0 | ||
20287 | while :; do | ||
20288 | cat >conftest.$ac_ext <<_ACEOF | ||
20289 | /* confdefs.h. */ | ||
20290 | _ACEOF | ||
20291 | cat confdefs.h >>conftest.$ac_ext | ||
20292 | cat >>conftest.$ac_ext <<_ACEOF | ||
20293 | /* end confdefs.h. */ | ||
20294 | $ac_includes_default | ||
20295 | typedef long long int ac__type_sizeof_; | ||
20296 | int | ||
20297 | main () | ||
20298 | { | ||
20299 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
20300 | test_array [0] = 0 | ||
20301 | |||
20302 | ; | ||
20303 | return 0; | ||
20304 | } | ||
20305 | _ACEOF | ||
20306 | rm -f conftest.$ac_objext | ||
20307 | if { (ac_try="$ac_compile" | ||
20308 | case "(($ac_try" in | ||
20309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20310 | *) ac_try_echo=$ac_try;; | ||
20311 | esac | ||
20312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20313 | (eval "$ac_compile") 2>conftest.er1 | ||
20314 | ac_status=$? | ||
20315 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20316 | rm -f conftest.er1 | ||
20317 | cat conftest.err >&5 | ||
20318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20319 | (exit $ac_status); } && { | ||
20320 | test -z "$ac_c_werror_flag" || | ||
20321 | test ! -s conftest.err | ||
20322 | } && test -s conftest.$ac_objext; then | ||
20323 | ac_hi=$ac_mid; break | ||
20324 | else | ||
20325 | echo "$as_me: failed program was:" >&5 | ||
20326 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20327 | |||
20328 | ac_lo=`expr $ac_mid + 1` | ||
20329 | if test $ac_lo -le $ac_mid; then | ||
20330 | ac_lo= ac_hi= | ||
20331 | break | ||
20332 | fi | ||
20333 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
20334 | fi | ||
20335 | |||
20336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20337 | done | ||
20338 | else | ||
20339 | echo "$as_me: failed program was:" >&5 | ||
20340 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20341 | |||
20342 | cat >conftest.$ac_ext <<_ACEOF | ||
20343 | /* confdefs.h. */ | ||
20344 | _ACEOF | ||
20345 | cat confdefs.h >>conftest.$ac_ext | ||
20346 | cat >>conftest.$ac_ext <<_ACEOF | ||
20347 | /* end confdefs.h. */ | ||
20348 | $ac_includes_default | ||
20349 | typedef long long int ac__type_sizeof_; | ||
20350 | int | ||
20351 | main () | ||
20352 | { | ||
20353 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
20354 | test_array [0] = 0 | ||
20355 | |||
20356 | ; | ||
20357 | return 0; | ||
20358 | } | ||
20359 | _ACEOF | ||
20360 | rm -f conftest.$ac_objext | ||
20361 | if { (ac_try="$ac_compile" | ||
20362 | case "(($ac_try" in | ||
20363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20364 | *) ac_try_echo=$ac_try;; | ||
20365 | esac | ||
20366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20367 | (eval "$ac_compile") 2>conftest.er1 | ||
20368 | ac_status=$? | ||
20369 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20370 | rm -f conftest.er1 | ||
20371 | cat conftest.err >&5 | ||
20372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20373 | (exit $ac_status); } && { | ||
20374 | test -z "$ac_c_werror_flag" || | ||
20375 | test ! -s conftest.err | ||
20376 | } && test -s conftest.$ac_objext; then | ||
20377 | ac_hi=-1 ac_mid=-1 | ||
20378 | while :; do | ||
20379 | cat >conftest.$ac_ext <<_ACEOF | ||
20380 | /* confdefs.h. */ | ||
20381 | _ACEOF | ||
20382 | cat confdefs.h >>conftest.$ac_ext | ||
20383 | cat >>conftest.$ac_ext <<_ACEOF | ||
20384 | /* end confdefs.h. */ | ||
20385 | $ac_includes_default | ||
20386 | typedef long long int ac__type_sizeof_; | ||
20387 | int | ||
20388 | main () | ||
20389 | { | ||
20390 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
20391 | test_array [0] = 0 | ||
20392 | |||
20393 | ; | ||
20394 | return 0; | ||
20395 | } | ||
20396 | _ACEOF | ||
20397 | rm -f conftest.$ac_objext | ||
20398 | if { (ac_try="$ac_compile" | ||
20399 | case "(($ac_try" in | ||
20400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20401 | *) ac_try_echo=$ac_try;; | ||
20402 | esac | ||
20403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20404 | (eval "$ac_compile") 2>conftest.er1 | ||
20405 | ac_status=$? | ||
20406 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20407 | rm -f conftest.er1 | ||
20408 | cat conftest.err >&5 | ||
20409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20410 | (exit $ac_status); } && { | ||
20411 | test -z "$ac_c_werror_flag" || | ||
20412 | test ! -s conftest.err | ||
20413 | } && test -s conftest.$ac_objext; then | ||
20414 | ac_lo=$ac_mid; break | ||
20415 | else | ||
20416 | echo "$as_me: failed program was:" >&5 | ||
20417 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20418 | |||
20419 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
20420 | if test $ac_mid -le $ac_hi; then | ||
20421 | ac_lo= ac_hi= | ||
20422 | break | ||
20423 | fi | ||
20424 | ac_mid=`expr 2 '*' $ac_mid` | ||
20425 | fi | ||
20426 | |||
20427 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20428 | done | ||
20429 | else | ||
20430 | echo "$as_me: failed program was:" >&5 | ||
20431 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20432 | |||
20433 | ac_lo= ac_hi= | ||
20434 | fi | ||
20435 | |||
20436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20437 | fi | ||
20438 | |||
20439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20440 | # Binary search between lo and hi bounds. | ||
20441 | while test "x$ac_lo" != "x$ac_hi"; do | ||
20442 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
20443 | cat >conftest.$ac_ext <<_ACEOF | ||
20444 | /* confdefs.h. */ | ||
20445 | _ACEOF | ||
20446 | cat confdefs.h >>conftest.$ac_ext | ||
20447 | cat >>conftest.$ac_ext <<_ACEOF | ||
20448 | /* end confdefs.h. */ | ||
20449 | $ac_includes_default | ||
20450 | typedef long long int ac__type_sizeof_; | ||
20451 | int | ||
20452 | main () | ||
20453 | { | ||
20454 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
20455 | test_array [0] = 0 | ||
20456 | |||
20457 | ; | ||
20458 | return 0; | ||
20459 | } | ||
20460 | _ACEOF | ||
20461 | rm -f conftest.$ac_objext | ||
20462 | if { (ac_try="$ac_compile" | ||
20463 | case "(($ac_try" in | ||
20464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20465 | *) ac_try_echo=$ac_try;; | ||
20466 | esac | ||
20467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20468 | (eval "$ac_compile") 2>conftest.er1 | ||
20469 | ac_status=$? | ||
20470 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20471 | rm -f conftest.er1 | ||
20472 | cat conftest.err >&5 | ||
20473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20474 | (exit $ac_status); } && { | ||
20475 | test -z "$ac_c_werror_flag" || | ||
20476 | test ! -s conftest.err | ||
20477 | } && test -s conftest.$ac_objext; then | ||
20478 | ac_hi=$ac_mid | ||
20479 | else | ||
20480 | echo "$as_me: failed program was:" >&5 | ||
20481 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20482 | |||
20483 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
20484 | fi | ||
20485 | |||
20486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20487 | done | ||
20488 | case $ac_lo in | ||
20489 | ?*) ac_cv_sizeof_long_long_int=$ac_lo;; | ||
20490 | '') if test "$ac_cv_type_long_long_int" = yes; then | ||
20491 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int) | ||
20492 | See \`config.log' for more details." >&5 | ||
20493 | echo "$as_me: error: cannot compute sizeof (long long int) | ||
20494 | See \`config.log' for more details." >&2;} | ||
20495 | { (exit 77); exit 77; }; } | ||
20496 | else | ||
20497 | ac_cv_sizeof_long_long_int=0 | ||
20498 | fi ;; | ||
20499 | esac | ||
20500 | else | ||
20501 | cat >conftest.$ac_ext <<_ACEOF | ||
20502 | /* confdefs.h. */ | ||
20503 | _ACEOF | ||
20504 | cat confdefs.h >>conftest.$ac_ext | ||
20505 | cat >>conftest.$ac_ext <<_ACEOF | ||
20506 | /* end confdefs.h. */ | ||
20507 | $ac_includes_default | ||
20508 | typedef long long int ac__type_sizeof_; | ||
20509 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
20510 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
20511 | #include <stdio.h> | ||
20512 | #include <stdlib.h> | ||
20513 | int | ||
20514 | main () | ||
20515 | { | ||
20516 | |||
20517 | FILE *f = fopen ("conftest.val", "w"); | ||
20518 | if (! f) | ||
20519 | return 1; | ||
20520 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
20521 | { | ||
20522 | long int i = longval (); | ||
20523 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
20524 | return 1; | ||
20525 | fprintf (f, "%ld\n", i); | ||
20526 | } | ||
20527 | else | ||
20528 | { | ||
20529 | unsigned long int i = ulongval (); | ||
20530 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
20531 | return 1; | ||
20532 | fprintf (f, "%lu\n", i); | ||
20533 | } | ||
20534 | return ferror (f) || fclose (f) != 0; | ||
20535 | |||
20536 | ; | ||
20537 | return 0; | ||
20538 | } | ||
20539 | _ACEOF | ||
20540 | rm -f conftest$ac_exeext | ||
20541 | if { (ac_try="$ac_link" | ||
20542 | case "(($ac_try" in | ||
20543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20544 | *) ac_try_echo=$ac_try;; | ||
20545 | esac | ||
20546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20547 | (eval "$ac_link") 2>&5 | ||
20548 | ac_status=$? | ||
20549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20550 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20551 | { (case "(($ac_try" in | ||
20552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20553 | *) ac_try_echo=$ac_try;; | ||
20554 | esac | ||
20555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20556 | (eval "$ac_try") 2>&5 | ||
20557 | ac_status=$? | ||
20558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20559 | (exit $ac_status); }; }; then | ||
20560 | ac_cv_sizeof_long_long_int=`cat conftest.val` | ||
20561 | else | ||
20562 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20563 | echo "$as_me: failed program was:" >&5 | ||
20564 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20565 | |||
20566 | ( exit $ac_status ) | ||
20567 | if test "$ac_cv_type_long_long_int" = yes; then | ||
20568 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int) | ||
20569 | See \`config.log' for more details." >&5 | ||
20570 | echo "$as_me: error: cannot compute sizeof (long long int) | ||
20571 | See \`config.log' for more details." >&2;} | ||
20572 | { (exit 77); exit 77; }; } | ||
20573 | else | ||
20574 | ac_cv_sizeof_long_long_int=0 | ||
20575 | fi | ||
20576 | fi | ||
20577 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20578 | fi | ||
20579 | rm -f conftest.val | ||
20580 | fi | ||
20581 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5 | ||
20582 | echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; } | ||
20583 | |||
20584 | |||
20585 | |||
20586 | cat >>confdefs.h <<_ACEOF | ||
20587 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
20588 | _ACEOF | ||
20589 | |||
20590 | |||
20591 | |||
20592 | # Sanity check long long for some platforms (AIX) | ||
20593 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
20594 | ac_cv_sizeof_long_long_int=0 | ||
20595 | fi | ||
20596 | |||
20597 | # compute LLONG_MIN and LLONG_MAX if we don't know them. | ||
20598 | if test -z "$have_llong_max"; then | ||
20599 | { echo "$as_me:$LINENO: checking for max value of long long" >&5 | ||
20600 | echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; } | ||
20601 | if test "$cross_compiling" = yes; then | ||
20602 | |||
20603 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
20604 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
20605 | |||
20606 | |||
20607 | else | ||
20608 | cat >conftest.$ac_ext <<_ACEOF | ||
20609 | /* confdefs.h. */ | ||
20610 | _ACEOF | ||
20611 | cat confdefs.h >>conftest.$ac_ext | ||
20612 | cat >>conftest.$ac_ext <<_ACEOF | ||
20613 | /* end confdefs.h. */ | ||
20614 | |||
20615 | #include <stdio.h> | ||
20616 | /* Why is this so damn hard? */ | ||
20617 | #ifdef __GNUC__ | ||
20618 | # undef __GNUC__ | ||
20619 | #endif | ||
20620 | #define __USE_ISOC99 | ||
20621 | #include <limits.h> | ||
20622 | #define DATA "conftest.llminmax" | ||
20623 | #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a)) | ||
20624 | |||
20625 | /* | ||
20626 | * printf in libc on some platforms (eg old Tru64) does not understand %lld so | ||
20627 | * we do this the hard way. | ||
20628 | */ | ||
20629 | static int | ||
20630 | fprint_ll(FILE *f, long long n) | ||
20631 | { | ||
20632 | unsigned int i; | ||
20633 | int l[sizeof(long long) * 8]; | ||
20634 | |||
20635 | if (n < 0) | ||
20636 | if (fprintf(f, "-") < 0) | ||
20637 | return -1; | ||
20638 | for (i = 0; n != 0; i++) { | ||
20639 | l[i] = my_abs(n % 10); | ||
20640 | n /= 10; | ||
20641 | } | ||
20642 | do { | ||
20643 | if (fprintf(f, "%d", l[--i]) < 0) | ||
20644 | return -1; | ||
20645 | } while (i != 0); | ||
20646 | if (fprintf(f, " ") < 0) | ||
20647 | return -1; | ||
20648 | return 0; | ||
20649 | } | ||
20650 | |||
20651 | int main(void) { | ||
20652 | FILE *f; | ||
20653 | long long i, llmin, llmax = 0; | ||
20654 | |||
20655 | if((f = fopen(DATA,"w")) == NULL) | ||
20656 | exit(1); | ||
20657 | |||
20658 | #if defined(LLONG_MIN) && defined(LLONG_MAX) | ||
20659 | fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n"); | ||
20660 | llmin = LLONG_MIN; | ||
20661 | llmax = LLONG_MAX; | ||
20662 | #else | ||
20663 | fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n"); | ||
20664 | /* This will work on one's complement and two's complement */ | ||
20665 | for (i = 1; i > llmax; i <<= 1, i++) | ||
20666 | llmax = i; | ||
20667 | llmin = llmax + 1LL; /* wrap */ | ||
20668 | #endif | ||
20669 | |||
20670 | /* Sanity check */ | ||
20671 | if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax | ||
20672 | || llmax - 1 > llmax || llmin == llmax || llmin == 0 | ||
20673 | || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) { | ||
20674 | fprintf(f, "unknown unknown\n"); | ||
20675 | exit(2); | ||
20676 | } | ||
20677 | |||
20678 | if (fprint_ll(f, llmin) < 0) | ||
20679 | exit(3); | ||
20680 | if (fprint_ll(f, llmax) < 0) | ||
20681 | exit(4); | ||
20682 | if (fclose(f) < 0) | ||
20683 | exit(5); | ||
20684 | exit(0); | ||
20685 | } | ||
20686 | |||
20687 | _ACEOF | ||
20688 | rm -f conftest$ac_exeext | ||
20689 | if { (ac_try="$ac_link" | ||
20690 | case "(($ac_try" in | ||
20691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20692 | *) ac_try_echo=$ac_try;; | ||
20693 | esac | ||
20694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20695 | (eval "$ac_link") 2>&5 | ||
20696 | ac_status=$? | ||
20697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20698 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20699 | { (case "(($ac_try" in | ||
20700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20701 | *) ac_try_echo=$ac_try;; | ||
20702 | esac | ||
20703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20704 | (eval "$ac_try") 2>&5 | ||
20705 | ac_status=$? | ||
20706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20707 | (exit $ac_status); }; }; then | ||
20708 | |||
20709 | llong_min=`$AWK '{print $1}' conftest.llminmax` | ||
20710 | llong_max=`$AWK '{print $2}' conftest.llminmax` | ||
20711 | |||
20712 | { echo "$as_me:$LINENO: result: $llong_max" >&5 | ||
20713 | echo "${ECHO_T}$llong_max" >&6; } | ||
20714 | |||
20715 | cat >>confdefs.h <<_ACEOF | ||
20716 | #define LLONG_MAX ${llong_max}LL | ||
20717 | _ACEOF | ||
20718 | |||
20719 | { echo "$as_me:$LINENO: checking for min value of long long" >&5 | ||
20720 | echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; } | ||
20721 | { echo "$as_me:$LINENO: result: $llong_min" >&5 | ||
20722 | echo "${ECHO_T}$llong_min" >&6; } | ||
20723 | |||
20724 | cat >>confdefs.h <<_ACEOF | ||
20725 | #define LLONG_MIN ${llong_min}LL | ||
20726 | _ACEOF | ||
20727 | |||
20728 | |||
20729 | else | ||
20730 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20731 | echo "$as_me: failed program was:" >&5 | ||
20732 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20733 | |||
20734 | ( exit $ac_status ) | ||
20735 | |||
20736 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
20737 | echo "${ECHO_T}not found" >&6; } | ||
20738 | |||
20739 | fi | ||
20740 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20741 | fi | ||
20742 | |||
20743 | |||
20744 | fi | ||
20745 | |||
20746 | |||
20747 | # More checks for data types | ||
20748 | { echo "$as_me:$LINENO: checking for u_int type" >&5 | ||
20749 | echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; } | ||
20750 | if test "${ac_cv_have_u_int+set}" = set; then | ||
20751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20752 | else | ||
20753 | |||
20754 | cat >conftest.$ac_ext <<_ACEOF | ||
20755 | /* confdefs.h. */ | ||
20756 | _ACEOF | ||
20757 | cat confdefs.h >>conftest.$ac_ext | ||
20758 | cat >>conftest.$ac_ext <<_ACEOF | ||
20759 | /* end confdefs.h. */ | ||
20760 | #include <sys/types.h> | ||
20761 | int | ||
20762 | main () | ||
20763 | { | ||
20764 | u_int a; a = 1; | ||
20765 | ; | ||
20766 | return 0; | ||
20767 | } | ||
20768 | _ACEOF | ||
20769 | rm -f conftest.$ac_objext | ||
20770 | if { (ac_try="$ac_compile" | ||
20771 | case "(($ac_try" in | ||
20772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20773 | *) ac_try_echo=$ac_try;; | ||
20774 | esac | ||
20775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20776 | (eval "$ac_compile") 2>conftest.er1 | ||
20777 | ac_status=$? | ||
20778 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20779 | rm -f conftest.er1 | ||
20780 | cat conftest.err >&5 | ||
20781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20782 | (exit $ac_status); } && { | ||
20783 | test -z "$ac_c_werror_flag" || | ||
20784 | test ! -s conftest.err | ||
20785 | } && test -s conftest.$ac_objext; then | ||
20786 | ac_cv_have_u_int="yes" | ||
20787 | else | ||
20788 | echo "$as_me: failed program was:" >&5 | ||
20789 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20790 | |||
20791 | ac_cv_have_u_int="no" | ||
20792 | |||
20793 | fi | ||
20794 | |||
20795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20796 | |||
20797 | fi | ||
20798 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5 | ||
20799 | echo "${ECHO_T}$ac_cv_have_u_int" >&6; } | ||
20800 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
20801 | |||
20802 | cat >>confdefs.h <<\_ACEOF | ||
20803 | #define HAVE_U_INT 1 | ||
20804 | _ACEOF | ||
20805 | |||
20806 | have_u_int=1 | ||
20807 | fi | ||
20808 | |||
20809 | { echo "$as_me:$LINENO: checking for intXX_t types" >&5 | ||
20810 | echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; } | ||
20811 | if test "${ac_cv_have_intxx_t+set}" = set; then | ||
20812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20813 | else | ||
20814 | |||
20815 | cat >conftest.$ac_ext <<_ACEOF | ||
20816 | /* confdefs.h. */ | ||
20817 | _ACEOF | ||
20818 | cat confdefs.h >>conftest.$ac_ext | ||
20819 | cat >>conftest.$ac_ext <<_ACEOF | ||
20820 | /* end confdefs.h. */ | ||
20821 | #include <sys/types.h> | ||
20822 | int | ||
20823 | main () | ||
20824 | { | ||
20825 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
20826 | ; | ||
20827 | return 0; | ||
20828 | } | ||
20829 | _ACEOF | ||
20830 | rm -f conftest.$ac_objext | ||
20831 | if { (ac_try="$ac_compile" | ||
20832 | case "(($ac_try" in | ||
20833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20834 | *) ac_try_echo=$ac_try;; | ||
20835 | esac | ||
20836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20837 | (eval "$ac_compile") 2>conftest.er1 | ||
20838 | ac_status=$? | ||
20839 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20840 | rm -f conftest.er1 | ||
20841 | cat conftest.err >&5 | ||
20842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20843 | (exit $ac_status); } && { | ||
20844 | test -z "$ac_c_werror_flag" || | ||
20845 | test ! -s conftest.err | ||
20846 | } && test -s conftest.$ac_objext; then | ||
20847 | ac_cv_have_intxx_t="yes" | ||
20848 | else | ||
20849 | echo "$as_me: failed program was:" >&5 | ||
20850 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20851 | |||
20852 | ac_cv_have_intxx_t="no" | ||
20853 | |||
20854 | fi | ||
20855 | |||
20856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20857 | |||
20858 | fi | ||
20859 | { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5 | ||
20860 | echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; } | ||
20861 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
20862 | |||
20863 | cat >>confdefs.h <<\_ACEOF | ||
20864 | #define HAVE_INTXX_T 1 | ||
20865 | _ACEOF | ||
20866 | |||
20867 | have_intxx_t=1 | ||
20868 | fi | ||
20869 | |||
20870 | if (test -z "$have_intxx_t" && \ | ||
20871 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
20872 | then | ||
20873 | { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5 | ||
20874 | echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; } | ||
20875 | cat >conftest.$ac_ext <<_ACEOF | ||
20876 | /* confdefs.h. */ | ||
20877 | _ACEOF | ||
20878 | cat confdefs.h >>conftest.$ac_ext | ||
20879 | cat >>conftest.$ac_ext <<_ACEOF | ||
20880 | /* end confdefs.h. */ | ||
20881 | #include <stdint.h> | ||
20882 | int | ||
20883 | main () | ||
20884 | { | ||
20885 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
20886 | ; | ||
20887 | return 0; | ||
20888 | } | ||
20889 | _ACEOF | ||
20890 | rm -f conftest.$ac_objext | ||
20891 | if { (ac_try="$ac_compile" | ||
20892 | case "(($ac_try" in | ||
20893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20894 | *) ac_try_echo=$ac_try;; | ||
20895 | esac | ||
20896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20897 | (eval "$ac_compile") 2>conftest.er1 | ||
20898 | ac_status=$? | ||
20899 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20900 | rm -f conftest.er1 | ||
20901 | cat conftest.err >&5 | ||
20902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20903 | (exit $ac_status); } && { | ||
20904 | test -z "$ac_c_werror_flag" || | ||
20905 | test ! -s conftest.err | ||
20906 | } && test -s conftest.$ac_objext; then | ||
20907 | |||
20908 | cat >>confdefs.h <<\_ACEOF | ||
20909 | #define HAVE_INTXX_T 1 | ||
20910 | _ACEOF | ||
20911 | |||
20912 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
20913 | echo "${ECHO_T}yes" >&6; } | ||
20914 | |||
20915 | else | ||
20916 | echo "$as_me: failed program was:" >&5 | ||
20917 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20918 | |||
20919 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20920 | echo "${ECHO_T}no" >&6; } | ||
20921 | |||
20922 | fi | ||
20923 | |||
20924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20925 | fi | ||
20926 | |||
20927 | { echo "$as_me:$LINENO: checking for int64_t type" >&5 | ||
20928 | echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; } | ||
20929 | if test "${ac_cv_have_int64_t+set}" = set; then | ||
20930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20931 | else | ||
20932 | |||
20933 | cat >conftest.$ac_ext <<_ACEOF | ||
20934 | /* confdefs.h. */ | ||
20935 | _ACEOF | ||
20936 | cat confdefs.h >>conftest.$ac_ext | ||
20937 | cat >>conftest.$ac_ext <<_ACEOF | ||
20938 | /* end confdefs.h. */ | ||
20939 | |||
20940 | #include <sys/types.h> | ||
20941 | #ifdef HAVE_STDINT_H | ||
20942 | # include <stdint.h> | ||
20943 | #endif | ||
20944 | #include <sys/socket.h> | ||
20945 | #ifdef HAVE_SYS_BITYPES_H | ||
20946 | # include <sys/bitypes.h> | ||
20947 | #endif | ||
20948 | |||
20949 | int | ||
20950 | main () | ||
20951 | { | ||
20952 | int64_t a; a = 1; | ||
20953 | ; | ||
20954 | return 0; | ||
20955 | } | ||
20956 | _ACEOF | ||
20957 | rm -f conftest.$ac_objext | ||
20958 | if { (ac_try="$ac_compile" | ||
20959 | case "(($ac_try" in | ||
20960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20961 | *) ac_try_echo=$ac_try;; | ||
20962 | esac | ||
20963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20964 | (eval "$ac_compile") 2>conftest.er1 | ||
20965 | ac_status=$? | ||
20966 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20967 | rm -f conftest.er1 | ||
20968 | cat conftest.err >&5 | ||
20969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20970 | (exit $ac_status); } && { | ||
20971 | test -z "$ac_c_werror_flag" || | ||
20972 | test ! -s conftest.err | ||
20973 | } && test -s conftest.$ac_objext; then | ||
20974 | ac_cv_have_int64_t="yes" | ||
20975 | else | ||
20976 | echo "$as_me: failed program was:" >&5 | ||
20977 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20978 | |||
20979 | ac_cv_have_int64_t="no" | ||
20980 | |||
20981 | fi | ||
20982 | |||
20983 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20984 | |||
20985 | fi | ||
20986 | { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5 | ||
20987 | echo "${ECHO_T}$ac_cv_have_int64_t" >&6; } | ||
20988 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
20989 | |||
20990 | cat >>confdefs.h <<\_ACEOF | ||
20991 | #define HAVE_INT64_T 1 | ||
20992 | _ACEOF | ||
20993 | |||
20994 | fi | ||
20995 | |||
20996 | { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5 | ||
20997 | echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; } | ||
20998 | if test "${ac_cv_have_u_intxx_t+set}" = set; then | ||
20999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21000 | else | ||
21001 | |||
21002 | cat >conftest.$ac_ext <<_ACEOF | ||
21003 | /* confdefs.h. */ | ||
21004 | _ACEOF | ||
21005 | cat confdefs.h >>conftest.$ac_ext | ||
21006 | cat >>conftest.$ac_ext <<_ACEOF | ||
21007 | /* end confdefs.h. */ | ||
21008 | #include <sys/types.h> | ||
21009 | int | ||
21010 | main () | ||
21011 | { | ||
21012 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
21013 | ; | ||
21014 | return 0; | ||
21015 | } | ||
21016 | _ACEOF | ||
21017 | rm -f conftest.$ac_objext | ||
21018 | if { (ac_try="$ac_compile" | ||
21019 | case "(($ac_try" in | ||
21020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21021 | *) ac_try_echo=$ac_try;; | ||
21022 | esac | ||
21023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21024 | (eval "$ac_compile") 2>conftest.er1 | ||
21025 | ac_status=$? | ||
21026 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21027 | rm -f conftest.er1 | ||
21028 | cat conftest.err >&5 | ||
21029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21030 | (exit $ac_status); } && { | ||
21031 | test -z "$ac_c_werror_flag" || | ||
21032 | test ! -s conftest.err | ||
21033 | } && test -s conftest.$ac_objext; then | ||
21034 | ac_cv_have_u_intxx_t="yes" | ||
21035 | else | ||
21036 | echo "$as_me: failed program was:" >&5 | ||
21037 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21038 | |||
21039 | ac_cv_have_u_intxx_t="no" | ||
21040 | |||
21041 | fi | ||
21042 | |||
21043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21044 | |||
21045 | fi | ||
21046 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5 | ||
21047 | echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; } | ||
21048 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
21049 | |||
21050 | cat >>confdefs.h <<\_ACEOF | ||
21051 | #define HAVE_U_INTXX_T 1 | ||
21052 | _ACEOF | ||
21053 | |||
21054 | have_u_intxx_t=1 | ||
21055 | fi | ||
21056 | |||
21057 | if test -z "$have_u_intxx_t" ; then | ||
21058 | { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5 | ||
21059 | echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; } | ||
21060 | cat >conftest.$ac_ext <<_ACEOF | ||
21061 | /* confdefs.h. */ | ||
21062 | _ACEOF | ||
21063 | cat confdefs.h >>conftest.$ac_ext | ||
21064 | cat >>conftest.$ac_ext <<_ACEOF | ||
21065 | /* end confdefs.h. */ | ||
21066 | #include <sys/socket.h> | ||
21067 | int | ||
21068 | main () | ||
21069 | { | ||
21070 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
21071 | ; | ||
21072 | return 0; | ||
21073 | } | ||
21074 | _ACEOF | ||
21075 | rm -f conftest.$ac_objext | ||
21076 | if { (ac_try="$ac_compile" | ||
21077 | case "(($ac_try" in | ||
21078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21079 | *) ac_try_echo=$ac_try;; | ||
21080 | esac | ||
21081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21082 | (eval "$ac_compile") 2>conftest.er1 | ||
21083 | ac_status=$? | ||
21084 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21085 | rm -f conftest.er1 | ||
21086 | cat conftest.err >&5 | ||
21087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21088 | (exit $ac_status); } && { | ||
21089 | test -z "$ac_c_werror_flag" || | ||
21090 | test ! -s conftest.err | ||
21091 | } && test -s conftest.$ac_objext; then | ||
21092 | |||
21093 | cat >>confdefs.h <<\_ACEOF | ||
21094 | #define HAVE_U_INTXX_T 1 | ||
21095 | _ACEOF | ||
21096 | |||
21097 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21098 | echo "${ECHO_T}yes" >&6; } | ||
21099 | |||
21100 | else | ||
21101 | echo "$as_me: failed program was:" >&5 | ||
21102 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21103 | |||
21104 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21105 | echo "${ECHO_T}no" >&6; } | ||
21106 | |||
21107 | fi | ||
21108 | |||
21109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21110 | fi | ||
21111 | |||
21112 | { echo "$as_me:$LINENO: checking for u_int64_t types" >&5 | ||
21113 | echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; } | ||
21114 | if test "${ac_cv_have_u_int64_t+set}" = set; then | ||
21115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21116 | else | ||
21117 | |||
21118 | cat >conftest.$ac_ext <<_ACEOF | ||
21119 | /* confdefs.h. */ | ||
21120 | _ACEOF | ||
21121 | cat confdefs.h >>conftest.$ac_ext | ||
21122 | cat >>conftest.$ac_ext <<_ACEOF | ||
21123 | /* end confdefs.h. */ | ||
21124 | #include <sys/types.h> | ||
21125 | int | ||
21126 | main () | ||
21127 | { | ||
21128 | u_int64_t a; a = 1; | ||
21129 | ; | ||
21130 | return 0; | ||
21131 | } | ||
21132 | _ACEOF | ||
21133 | rm -f conftest.$ac_objext | ||
21134 | if { (ac_try="$ac_compile" | ||
21135 | case "(($ac_try" in | ||
21136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21137 | *) ac_try_echo=$ac_try;; | ||
21138 | esac | ||
21139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21140 | (eval "$ac_compile") 2>conftest.er1 | ||
21141 | ac_status=$? | ||
21142 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21143 | rm -f conftest.er1 | ||
21144 | cat conftest.err >&5 | ||
21145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21146 | (exit $ac_status); } && { | ||
21147 | test -z "$ac_c_werror_flag" || | ||
21148 | test ! -s conftest.err | ||
21149 | } && test -s conftest.$ac_objext; then | ||
21150 | ac_cv_have_u_int64_t="yes" | ||
21151 | else | ||
21152 | echo "$as_me: failed program was:" >&5 | ||
21153 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21154 | |||
21155 | ac_cv_have_u_int64_t="no" | ||
21156 | |||
21157 | fi | ||
21158 | |||
21159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21160 | |||
21161 | fi | ||
21162 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5 | ||
21163 | echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; } | ||
21164 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
21165 | |||
21166 | cat >>confdefs.h <<\_ACEOF | ||
21167 | #define HAVE_U_INT64_T 1 | ||
21168 | _ACEOF | ||
21169 | |||
21170 | have_u_int64_t=1 | ||
21171 | fi | ||
21172 | |||
21173 | if test -z "$have_u_int64_t" ; then | ||
21174 | { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
21175 | echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; } | ||
21176 | cat >conftest.$ac_ext <<_ACEOF | ||
21177 | /* confdefs.h. */ | ||
21178 | _ACEOF | ||
21179 | cat confdefs.h >>conftest.$ac_ext | ||
21180 | cat >>conftest.$ac_ext <<_ACEOF | ||
21181 | /* end confdefs.h. */ | ||
21182 | #include <sys/bitypes.h> | ||
21183 | int | ||
21184 | main () | ||
21185 | { | ||
21186 | u_int64_t a; a = 1 | ||
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 | |||
21209 | cat >>confdefs.h <<\_ACEOF | ||
21210 | #define HAVE_U_INT64_T 1 | ||
21211 | _ACEOF | ||
21212 | |||
21213 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21214 | echo "${ECHO_T}yes" >&6; } | ||
21215 | |||
21216 | else | ||
21217 | echo "$as_me: failed program was:" >&5 | ||
21218 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21219 | |||
21220 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21221 | echo "${ECHO_T}no" >&6; } | ||
21222 | |||
21223 | fi | ||
21224 | |||
21225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21226 | fi | ||
21227 | |||
21228 | if test -z "$have_u_intxx_t" ; then | ||
21229 | { echo "$as_me:$LINENO: checking for uintXX_t types" >&5 | ||
21230 | echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; } | ||
21231 | if test "${ac_cv_have_uintxx_t+set}" = set; then | ||
21232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21233 | else | ||
21234 | |||
21235 | cat >conftest.$ac_ext <<_ACEOF | ||
21236 | /* confdefs.h. */ | ||
21237 | _ACEOF | ||
21238 | cat confdefs.h >>conftest.$ac_ext | ||
21239 | cat >>conftest.$ac_ext <<_ACEOF | ||
21240 | /* end confdefs.h. */ | ||
21241 | |||
21242 | #include <sys/types.h> | ||
21243 | |||
21244 | int | ||
21245 | main () | ||
21246 | { | ||
21247 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
21248 | ; | ||
21249 | return 0; | ||
21250 | } | ||
21251 | _ACEOF | ||
21252 | rm -f conftest.$ac_objext | ||
21253 | if { (ac_try="$ac_compile" | ||
21254 | case "(($ac_try" in | ||
21255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21256 | *) ac_try_echo=$ac_try;; | ||
21257 | esac | ||
21258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21259 | (eval "$ac_compile") 2>conftest.er1 | ||
21260 | ac_status=$? | ||
21261 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21262 | rm -f conftest.er1 | ||
21263 | cat conftest.err >&5 | ||
21264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21265 | (exit $ac_status); } && { | ||
21266 | test -z "$ac_c_werror_flag" || | ||
21267 | test ! -s conftest.err | ||
21268 | } && test -s conftest.$ac_objext; then | ||
21269 | ac_cv_have_uintxx_t="yes" | ||
21270 | else | ||
21271 | echo "$as_me: failed program was:" >&5 | ||
21272 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21273 | |||
21274 | ac_cv_have_uintxx_t="no" | ||
21275 | |||
21276 | fi | ||
21277 | |||
21278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21279 | |||
21280 | fi | ||
21281 | { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5 | ||
21282 | echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; } | ||
21283 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
21284 | |||
21285 | cat >>confdefs.h <<\_ACEOF | ||
21286 | #define HAVE_UINTXX_T 1 | ||
21287 | _ACEOF | ||
21288 | |||
21289 | fi | ||
21290 | fi | ||
21291 | |||
21292 | if test -z "$have_uintxx_t" ; then | ||
21293 | { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5 | ||
21294 | echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; } | ||
21295 | cat >conftest.$ac_ext <<_ACEOF | ||
21296 | /* confdefs.h. */ | ||
21297 | _ACEOF | ||
21298 | cat confdefs.h >>conftest.$ac_ext | ||
21299 | cat >>conftest.$ac_ext <<_ACEOF | ||
21300 | /* end confdefs.h. */ | ||
21301 | #include <stdint.h> | ||
21302 | int | ||
21303 | main () | ||
21304 | { | ||
21305 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
21306 | ; | ||
21307 | return 0; | ||
21308 | } | ||
21309 | _ACEOF | ||
21310 | rm -f conftest.$ac_objext | ||
21311 | if { (ac_try="$ac_compile" | ||
21312 | case "(($ac_try" in | ||
21313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21314 | *) ac_try_echo=$ac_try;; | ||
21315 | esac | ||
21316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21317 | (eval "$ac_compile") 2>conftest.er1 | ||
21318 | ac_status=$? | ||
21319 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21320 | rm -f conftest.er1 | ||
21321 | cat conftest.err >&5 | ||
21322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21323 | (exit $ac_status); } && { | ||
21324 | test -z "$ac_c_werror_flag" || | ||
21325 | test ! -s conftest.err | ||
21326 | } && test -s conftest.$ac_objext; then | ||
21327 | |||
21328 | cat >>confdefs.h <<\_ACEOF | ||
21329 | #define HAVE_UINTXX_T 1 | ||
21330 | _ACEOF | ||
21331 | |||
21332 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21333 | echo "${ECHO_T}yes" >&6; } | ||
21334 | |||
21335 | else | ||
21336 | echo "$as_me: failed program was:" >&5 | ||
21337 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21338 | |||
21339 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21340 | echo "${ECHO_T}no" >&6; } | ||
21341 | |||
21342 | fi | ||
21343 | |||
21344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21345 | fi | ||
21346 | |||
21347 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
21348 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
21349 | then | ||
21350 | { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
21351 | echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; } | ||
21352 | cat >conftest.$ac_ext <<_ACEOF | ||
21353 | /* confdefs.h. */ | ||
21354 | _ACEOF | ||
21355 | cat confdefs.h >>conftest.$ac_ext | ||
21356 | cat >>conftest.$ac_ext <<_ACEOF | ||
21357 | /* end confdefs.h. */ | ||
21358 | |||
21359 | #include <sys/bitypes.h> | ||
21360 | |||
21361 | int | ||
21362 | main () | ||
21363 | { | ||
21364 | |||
21365 | int8_t a; int16_t b; int32_t c; | ||
21366 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
21367 | a = b = c = e = f = g = 1; | ||
21368 | |||
21369 | ; | ||
21370 | return 0; | ||
21371 | } | ||
21372 | _ACEOF | ||
21373 | rm -f conftest.$ac_objext | ||
21374 | if { (ac_try="$ac_compile" | ||
21375 | case "(($ac_try" in | ||
21376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21377 | *) ac_try_echo=$ac_try;; | ||
21378 | esac | ||
21379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21380 | (eval "$ac_compile") 2>conftest.er1 | ||
21381 | ac_status=$? | ||
21382 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21383 | rm -f conftest.er1 | ||
21384 | cat conftest.err >&5 | ||
21385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21386 | (exit $ac_status); } && { | ||
21387 | test -z "$ac_c_werror_flag" || | ||
21388 | test ! -s conftest.err | ||
21389 | } && test -s conftest.$ac_objext; then | ||
21390 | |||
21391 | cat >>confdefs.h <<\_ACEOF | ||
21392 | #define HAVE_U_INTXX_T 1 | ||
21393 | _ACEOF | ||
21394 | |||
21395 | cat >>confdefs.h <<\_ACEOF | ||
21396 | #define HAVE_INTXX_T 1 | ||
21397 | _ACEOF | ||
21398 | |||
21399 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21400 | echo "${ECHO_T}yes" >&6; } | ||
21401 | |||
21402 | else | ||
21403 | echo "$as_me: failed program was:" >&5 | ||
21404 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21405 | |||
21406 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21407 | echo "${ECHO_T}no" >&6; } | ||
21408 | |||
21409 | fi | ||
21410 | |||
21411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21412 | fi | ||
21413 | |||
21414 | |||
21415 | { echo "$as_me:$LINENO: checking for u_char" >&5 | ||
21416 | echo $ECHO_N "checking for u_char... $ECHO_C" >&6; } | ||
21417 | if test "${ac_cv_have_u_char+set}" = set; then | ||
21418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21419 | else | ||
21420 | |||
21421 | cat >conftest.$ac_ext <<_ACEOF | ||
21422 | /* confdefs.h. */ | ||
21423 | _ACEOF | ||
21424 | cat confdefs.h >>conftest.$ac_ext | ||
21425 | cat >>conftest.$ac_ext <<_ACEOF | ||
21426 | /* end confdefs.h. */ | ||
21427 | |||
21428 | #include <sys/types.h> | ||
21429 | |||
21430 | int | ||
21431 | main () | ||
21432 | { | ||
21433 | u_char foo; foo = 125; | ||
21434 | ; | ||
21435 | return 0; | ||
21436 | } | ||
21437 | _ACEOF | ||
21438 | rm -f conftest.$ac_objext | ||
21439 | if { (ac_try="$ac_compile" | ||
21440 | case "(($ac_try" in | ||
21441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21442 | *) ac_try_echo=$ac_try;; | ||
21443 | esac | ||
21444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21445 | (eval "$ac_compile") 2>conftest.er1 | ||
21446 | ac_status=$? | ||
21447 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21448 | rm -f conftest.er1 | ||
21449 | cat conftest.err >&5 | ||
21450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21451 | (exit $ac_status); } && { | ||
21452 | test -z "$ac_c_werror_flag" || | ||
21453 | test ! -s conftest.err | ||
21454 | } && test -s conftest.$ac_objext; then | ||
21455 | ac_cv_have_u_char="yes" | ||
21456 | else | ||
21457 | echo "$as_me: failed program was:" >&5 | ||
21458 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21459 | |||
21460 | ac_cv_have_u_char="no" | ||
21461 | |||
21462 | fi | ||
21463 | |||
21464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21465 | |||
21466 | fi | ||
21467 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5 | ||
21468 | echo "${ECHO_T}$ac_cv_have_u_char" >&6; } | ||
21469 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
21470 | |||
21471 | cat >>confdefs.h <<\_ACEOF | ||
21472 | #define HAVE_U_CHAR 1 | ||
21473 | _ACEOF | ||
21474 | |||
21475 | fi | ||
21476 | |||
21477 | |||
21478 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 | ||
21479 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } | ||
21480 | if test "${ac_cv_type_socklen_t+set}" = set; then | ||
21481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21482 | else | ||
21483 | cat >conftest.$ac_ext <<_ACEOF | ||
21484 | /* confdefs.h. */ | ||
21485 | _ACEOF | ||
21486 | cat confdefs.h >>conftest.$ac_ext | ||
21487 | cat >>conftest.$ac_ext <<_ACEOF | ||
21488 | /* end confdefs.h. */ | ||
21489 | #include <sys/types.h> | ||
21490 | #include <sys/socket.h> | ||
21491 | |||
21492 | typedef socklen_t ac__type_new_; | ||
21493 | int | ||
21494 | main () | ||
21495 | { | ||
21496 | if ((ac__type_new_ *) 0) | ||
21497 | return 0; | ||
21498 | if (sizeof (ac__type_new_)) | ||
21499 | return 0; | ||
21500 | ; | ||
21501 | return 0; | ||
21502 | } | ||
21503 | _ACEOF | ||
21504 | rm -f conftest.$ac_objext | ||
21505 | if { (ac_try="$ac_compile" | ||
21506 | case "(($ac_try" in | ||
21507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21508 | *) ac_try_echo=$ac_try;; | ||
21509 | esac | ||
21510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21511 | (eval "$ac_compile") 2>conftest.er1 | ||
21512 | ac_status=$? | ||
21513 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21514 | rm -f conftest.er1 | ||
21515 | cat conftest.err >&5 | ||
21516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21517 | (exit $ac_status); } && { | ||
21518 | test -z "$ac_c_werror_flag" || | ||
21519 | test ! -s conftest.err | ||
21520 | } && test -s conftest.$ac_objext; then | ||
21521 | ac_cv_type_socklen_t=yes | ||
21522 | else | ||
21523 | echo "$as_me: failed program was:" >&5 | ||
21524 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21525 | |||
21526 | ac_cv_type_socklen_t=no | ||
21527 | fi | ||
21528 | |||
21529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21530 | fi | ||
21531 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | ||
21532 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } | ||
21533 | if test $ac_cv_type_socklen_t = yes; then | ||
21534 | : | ||
21535 | else | ||
21536 | |||
21537 | { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 | ||
21538 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; } | ||
21539 | if test "${curl_cv_socklen_t_equiv+set}" = set; then | ||
21540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21541 | else | ||
21542 | |||
21543 | # Systems have either "struct sockaddr *" or | ||
21544 | # "void *" as the second argument to getpeername | ||
21545 | curl_cv_socklen_t_equiv= | ||
21546 | for arg2 in "struct sockaddr" void; do | ||
21547 | for t in int size_t unsigned long "unsigned long"; do | ||
21548 | cat >conftest.$ac_ext <<_ACEOF | ||
21549 | /* confdefs.h. */ | ||
21550 | _ACEOF | ||
21551 | cat confdefs.h >>conftest.$ac_ext | ||
21552 | cat >>conftest.$ac_ext <<_ACEOF | ||
21553 | /* end confdefs.h. */ | ||
21554 | |||
21555 | #include <sys/types.h> | ||
21556 | #include <sys/socket.h> | ||
21557 | |||
21558 | int getpeername (int, $arg2 *, $t *); | ||
21559 | |||
21560 | int | ||
21561 | main () | ||
21562 | { | ||
21563 | |||
21564 | $t len; | ||
21565 | getpeername(0,0,&len); | ||
21566 | |||
21567 | ; | ||
21568 | return 0; | ||
21569 | } | ||
21570 | _ACEOF | ||
21571 | rm -f conftest.$ac_objext | ||
21572 | if { (ac_try="$ac_compile" | ||
21573 | case "(($ac_try" in | ||
21574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21575 | *) ac_try_echo=$ac_try;; | ||
21576 | esac | ||
21577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21578 | (eval "$ac_compile") 2>conftest.er1 | ||
21579 | ac_status=$? | ||
21580 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21581 | rm -f conftest.er1 | ||
21582 | cat conftest.err >&5 | ||
21583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21584 | (exit $ac_status); } && { | ||
21585 | test -z "$ac_c_werror_flag" || | ||
21586 | test ! -s conftest.err | ||
21587 | } && test -s conftest.$ac_objext; then | ||
21588 | |||
21589 | curl_cv_socklen_t_equiv="$t" | ||
21590 | break | ||
21591 | |||
21592 | else | ||
21593 | echo "$as_me: failed program was:" >&5 | ||
21594 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21595 | |||
21596 | |||
21597 | fi | ||
21598 | |||
21599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21600 | done | ||
21601 | done | ||
21602 | |||
21603 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
21604 | { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5 | ||
21605 | echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;} | ||
21606 | { (exit 1); exit 1; }; } | ||
21607 | fi | ||
21608 | |||
21609 | fi | ||
21610 | |||
21611 | { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5 | ||
21612 | echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; } | ||
21613 | |||
21614 | cat >>confdefs.h <<_ACEOF | ||
21615 | #define socklen_t $curl_cv_socklen_t_equiv | ||
21616 | _ACEOF | ||
21617 | |||
21618 | fi | ||
21619 | |||
21620 | |||
21621 | |||
21622 | { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 | ||
21623 | echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; } | ||
21624 | if test "${ac_cv_type_sig_atomic_t+set}" = set; then | ||
21625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21626 | else | ||
21627 | cat >conftest.$ac_ext <<_ACEOF | ||
21628 | /* confdefs.h. */ | ||
21629 | _ACEOF | ||
21630 | cat confdefs.h >>conftest.$ac_ext | ||
21631 | cat >>conftest.$ac_ext <<_ACEOF | ||
21632 | /* end confdefs.h. */ | ||
21633 | #include <signal.h> | ||
21634 | |||
21635 | typedef sig_atomic_t ac__type_new_; | ||
21636 | int | ||
21637 | main () | ||
21638 | { | ||
21639 | if ((ac__type_new_ *) 0) | ||
21640 | return 0; | ||
21641 | if (sizeof (ac__type_new_)) | ||
21642 | return 0; | ||
21643 | ; | ||
21644 | return 0; | ||
21645 | } | ||
21646 | _ACEOF | ||
21647 | rm -f conftest.$ac_objext | ||
21648 | if { (ac_try="$ac_compile" | ||
21649 | case "(($ac_try" in | ||
21650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21651 | *) ac_try_echo=$ac_try;; | ||
21652 | esac | ||
21653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21654 | (eval "$ac_compile") 2>conftest.er1 | ||
21655 | ac_status=$? | ||
21656 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21657 | rm -f conftest.er1 | ||
21658 | cat conftest.err >&5 | ||
21659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21660 | (exit $ac_status); } && { | ||
21661 | test -z "$ac_c_werror_flag" || | ||
21662 | test ! -s conftest.err | ||
21663 | } && test -s conftest.$ac_objext; then | ||
21664 | ac_cv_type_sig_atomic_t=yes | ||
21665 | else | ||
21666 | echo "$as_me: failed program was:" >&5 | ||
21667 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21668 | |||
21669 | ac_cv_type_sig_atomic_t=no | ||
21670 | fi | ||
21671 | |||
21672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21673 | fi | ||
21674 | { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 | ||
21675 | echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; } | ||
21676 | if test $ac_cv_type_sig_atomic_t = yes; then | ||
21677 | |||
21678 | cat >>confdefs.h <<_ACEOF | ||
21679 | #define HAVE_SIG_ATOMIC_T 1 | ||
21680 | _ACEOF | ||
21681 | |||
21682 | |||
21683 | fi | ||
21684 | |||
21685 | { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5 | ||
21686 | echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; } | ||
21687 | if test "${ac_cv_type_fsblkcnt_t+set}" = set; then | ||
21688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21689 | else | ||
21690 | cat >conftest.$ac_ext <<_ACEOF | ||
21691 | /* confdefs.h. */ | ||
21692 | _ACEOF | ||
21693 | cat confdefs.h >>conftest.$ac_ext | ||
21694 | cat >>conftest.$ac_ext <<_ACEOF | ||
21695 | /* end confdefs.h. */ | ||
21696 | |||
21697 | #include <sys/types.h> | ||
21698 | #ifdef HAVE_SYS_BITYPES_H | ||
21699 | #include <sys/bitypes.h> | ||
21700 | #endif | ||
21701 | #ifdef HAVE_SYS_STATFS_H | ||
21702 | #include <sys/statfs.h> | ||
21703 | #endif | ||
21704 | #ifdef HAVE_SYS_STATVFS_H | ||
21705 | #include <sys/statvfs.h> | ||
21706 | #endif | ||
21707 | |||
21708 | |||
21709 | typedef fsblkcnt_t ac__type_new_; | ||
21710 | int | ||
21711 | main () | ||
21712 | { | ||
21713 | if ((ac__type_new_ *) 0) | ||
21714 | return 0; | ||
21715 | if (sizeof (ac__type_new_)) | ||
21716 | return 0; | ||
21717 | ; | ||
21718 | return 0; | ||
21719 | } | ||
21720 | _ACEOF | ||
21721 | rm -f conftest.$ac_objext | ||
21722 | if { (ac_try="$ac_compile" | ||
21723 | case "(($ac_try" in | ||
21724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21725 | *) ac_try_echo=$ac_try;; | ||
21726 | esac | ||
21727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21728 | (eval "$ac_compile") 2>conftest.er1 | ||
21729 | ac_status=$? | ||
21730 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21731 | rm -f conftest.er1 | ||
21732 | cat conftest.err >&5 | ||
21733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21734 | (exit $ac_status); } && { | ||
21735 | test -z "$ac_c_werror_flag" || | ||
21736 | test ! -s conftest.err | ||
21737 | } && test -s conftest.$ac_objext; then | ||
21738 | ac_cv_type_fsblkcnt_t=yes | ||
21739 | else | ||
21740 | echo "$as_me: failed program was:" >&5 | ||
21741 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21742 | |||
21743 | ac_cv_type_fsblkcnt_t=no | ||
21744 | fi | ||
21745 | |||
21746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21747 | fi | ||
21748 | { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5 | ||
21749 | echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; } | ||
21750 | if test $ac_cv_type_fsblkcnt_t = yes; then | ||
21751 | |||
21752 | cat >>confdefs.h <<_ACEOF | ||
21753 | #define HAVE_FSBLKCNT_T 1 | ||
21754 | _ACEOF | ||
21755 | |||
21756 | |||
21757 | fi | ||
21758 | { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5 | ||
21759 | echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; } | ||
21760 | if test "${ac_cv_type_fsfilcnt_t+set}" = set; then | ||
21761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21762 | else | ||
21763 | cat >conftest.$ac_ext <<_ACEOF | ||
21764 | /* confdefs.h. */ | ||
21765 | _ACEOF | ||
21766 | cat confdefs.h >>conftest.$ac_ext | ||
21767 | cat >>conftest.$ac_ext <<_ACEOF | ||
21768 | /* end confdefs.h. */ | ||
21769 | |||
21770 | #include <sys/types.h> | ||
21771 | #ifdef HAVE_SYS_BITYPES_H | ||
21772 | #include <sys/bitypes.h> | ||
21773 | #endif | ||
21774 | #ifdef HAVE_SYS_STATFS_H | ||
21775 | #include <sys/statfs.h> | ||
21776 | #endif | ||
21777 | #ifdef HAVE_SYS_STATVFS_H | ||
21778 | #include <sys/statvfs.h> | ||
21779 | #endif | ||
21780 | |||
21781 | |||
21782 | typedef fsfilcnt_t ac__type_new_; | ||
21783 | int | ||
21784 | main () | ||
21785 | { | ||
21786 | if ((ac__type_new_ *) 0) | ||
21787 | return 0; | ||
21788 | if (sizeof (ac__type_new_)) | ||
21789 | return 0; | ||
21790 | ; | ||
21791 | return 0; | ||
21792 | } | ||
21793 | _ACEOF | ||
21794 | rm -f conftest.$ac_objext | ||
21795 | if { (ac_try="$ac_compile" | ||
21796 | case "(($ac_try" in | ||
21797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21798 | *) ac_try_echo=$ac_try;; | ||
21799 | esac | ||
21800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21801 | (eval "$ac_compile") 2>conftest.er1 | ||
21802 | ac_status=$? | ||
21803 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21804 | rm -f conftest.er1 | ||
21805 | cat conftest.err >&5 | ||
21806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21807 | (exit $ac_status); } && { | ||
21808 | test -z "$ac_c_werror_flag" || | ||
21809 | test ! -s conftest.err | ||
21810 | } && test -s conftest.$ac_objext; then | ||
21811 | ac_cv_type_fsfilcnt_t=yes | ||
21812 | else | ||
21813 | echo "$as_me: failed program was:" >&5 | ||
21814 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21815 | |||
21816 | ac_cv_type_fsfilcnt_t=no | ||
21817 | fi | ||
21818 | |||
21819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21820 | fi | ||
21821 | { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5 | ||
21822 | echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; } | ||
21823 | if test $ac_cv_type_fsfilcnt_t = yes; then | ||
21824 | |||
21825 | cat >>confdefs.h <<_ACEOF | ||
21826 | #define HAVE_FSFILCNT_T 1 | ||
21827 | _ACEOF | ||
21828 | |||
21829 | |||
21830 | fi | ||
21831 | |||
21832 | |||
21833 | { echo "$as_me:$LINENO: checking for in_addr_t" >&5 | ||
21834 | echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; } | ||
21835 | if test "${ac_cv_type_in_addr_t+set}" = set; then | ||
21836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21837 | else | ||
21838 | cat >conftest.$ac_ext <<_ACEOF | ||
21839 | /* confdefs.h. */ | ||
21840 | _ACEOF | ||
21841 | cat confdefs.h >>conftest.$ac_ext | ||
21842 | cat >>conftest.$ac_ext <<_ACEOF | ||
21843 | /* end confdefs.h. */ | ||
21844 | #include <sys/types.h> | ||
21845 | #include <netinet/in.h> | ||
21846 | |||
21847 | typedef in_addr_t ac__type_new_; | ||
21848 | int | ||
21849 | main () | ||
21850 | { | ||
21851 | if ((ac__type_new_ *) 0) | ||
21852 | return 0; | ||
21853 | if (sizeof (ac__type_new_)) | ||
21854 | return 0; | ||
21855 | ; | ||
21856 | return 0; | ||
21857 | } | ||
21858 | _ACEOF | ||
21859 | rm -f conftest.$ac_objext | ||
21860 | if { (ac_try="$ac_compile" | ||
21861 | case "(($ac_try" in | ||
21862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21863 | *) ac_try_echo=$ac_try;; | ||
21864 | esac | ||
21865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21866 | (eval "$ac_compile") 2>conftest.er1 | ||
21867 | ac_status=$? | ||
21868 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21869 | rm -f conftest.er1 | ||
21870 | cat conftest.err >&5 | ||
21871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21872 | (exit $ac_status); } && { | ||
21873 | test -z "$ac_c_werror_flag" || | ||
21874 | test ! -s conftest.err | ||
21875 | } && test -s conftest.$ac_objext; then | ||
21876 | ac_cv_type_in_addr_t=yes | ||
21877 | else | ||
21878 | echo "$as_me: failed program was:" >&5 | ||
21879 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21880 | |||
21881 | ac_cv_type_in_addr_t=no | ||
21882 | fi | ||
21883 | |||
21884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21885 | fi | ||
21886 | { echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5 | ||
21887 | echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; } | ||
21888 | if test $ac_cv_type_in_addr_t = yes; then | ||
21889 | |||
21890 | cat >>confdefs.h <<_ACEOF | ||
21891 | #define HAVE_IN_ADDR_T 1 | ||
21892 | _ACEOF | ||
21893 | |||
21894 | |||
21895 | fi | ||
21896 | |||
21897 | |||
21898 | { echo "$as_me:$LINENO: checking for size_t" >&5 | ||
21899 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | ||
21900 | if test "${ac_cv_have_size_t+set}" = set; then | ||
21901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21902 | else | ||
21903 | |||
21904 | cat >conftest.$ac_ext <<_ACEOF | ||
21905 | /* confdefs.h. */ | ||
21906 | _ACEOF | ||
21907 | cat confdefs.h >>conftest.$ac_ext | ||
21908 | cat >>conftest.$ac_ext <<_ACEOF | ||
21909 | /* end confdefs.h. */ | ||
21910 | |||
21911 | #include <sys/types.h> | ||
21912 | |||
21913 | int | ||
21914 | main () | ||
21915 | { | ||
21916 | size_t foo; foo = 1235; | ||
21917 | ; | ||
21918 | return 0; | ||
21919 | } | ||
21920 | _ACEOF | ||
21921 | rm -f conftest.$ac_objext | ||
21922 | if { (ac_try="$ac_compile" | ||
21923 | case "(($ac_try" in | ||
21924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21925 | *) ac_try_echo=$ac_try;; | ||
21926 | esac | ||
21927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21928 | (eval "$ac_compile") 2>conftest.er1 | ||
21929 | ac_status=$? | ||
21930 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21931 | rm -f conftest.er1 | ||
21932 | cat conftest.err >&5 | ||
21933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21934 | (exit $ac_status); } && { | ||
21935 | test -z "$ac_c_werror_flag" || | ||
21936 | test ! -s conftest.err | ||
21937 | } && test -s conftest.$ac_objext; then | ||
21938 | ac_cv_have_size_t="yes" | ||
21939 | else | ||
21940 | echo "$as_me: failed program was:" >&5 | ||
21941 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21942 | |||
21943 | ac_cv_have_size_t="no" | ||
21944 | |||
21945 | fi | ||
21946 | |||
21947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21948 | |||
21949 | fi | ||
21950 | { echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5 | ||
21951 | echo "${ECHO_T}$ac_cv_have_size_t" >&6; } | ||
21952 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
21953 | |||
21954 | cat >>confdefs.h <<\_ACEOF | ||
21955 | #define HAVE_SIZE_T 1 | ||
21956 | _ACEOF | ||
21957 | |||
21958 | fi | ||
21959 | |||
21960 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 | ||
21961 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } | ||
21962 | if test "${ac_cv_have_ssize_t+set}" = set; then | ||
21963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21964 | else | ||
21965 | |||
21966 | cat >conftest.$ac_ext <<_ACEOF | ||
21967 | /* confdefs.h. */ | ||
21968 | _ACEOF | ||
21969 | cat confdefs.h >>conftest.$ac_ext | ||
21970 | cat >>conftest.$ac_ext <<_ACEOF | ||
21971 | /* end confdefs.h. */ | ||
21972 | |||
21973 | #include <sys/types.h> | ||
21974 | |||
21975 | int | ||
21976 | main () | ||
21977 | { | ||
21978 | ssize_t foo; foo = 1235; | ||
21979 | ; | ||
21980 | return 0; | ||
21981 | } | ||
21982 | _ACEOF | ||
21983 | rm -f conftest.$ac_objext | ||
21984 | if { (ac_try="$ac_compile" | ||
21985 | case "(($ac_try" in | ||
21986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21987 | *) ac_try_echo=$ac_try;; | ||
21988 | esac | ||
21989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21990 | (eval "$ac_compile") 2>conftest.er1 | ||
21991 | ac_status=$? | ||
21992 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21993 | rm -f conftest.er1 | ||
21994 | cat conftest.err >&5 | ||
21995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21996 | (exit $ac_status); } && { | ||
21997 | test -z "$ac_c_werror_flag" || | ||
21998 | test ! -s conftest.err | ||
21999 | } && test -s conftest.$ac_objext; then | ||
22000 | ac_cv_have_ssize_t="yes" | ||
22001 | else | ||
22002 | echo "$as_me: failed program was:" >&5 | ||
22003 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22004 | |||
22005 | ac_cv_have_ssize_t="no" | ||
22006 | |||
22007 | fi | ||
22008 | |||
22009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22010 | |||
22011 | fi | ||
22012 | { echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5 | ||
22013 | echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; } | ||
22014 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
22015 | |||
22016 | cat >>confdefs.h <<\_ACEOF | ||
22017 | #define HAVE_SSIZE_T 1 | ||
22018 | _ACEOF | ||
22019 | |||
22020 | fi | ||
22021 | |||
22022 | { echo "$as_me:$LINENO: checking for clock_t" >&5 | ||
22023 | echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; } | ||
22024 | if test "${ac_cv_have_clock_t+set}" = set; then | ||
22025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22026 | else | ||
22027 | |||
22028 | cat >conftest.$ac_ext <<_ACEOF | ||
22029 | /* confdefs.h. */ | ||
22030 | _ACEOF | ||
22031 | cat confdefs.h >>conftest.$ac_ext | ||
22032 | cat >>conftest.$ac_ext <<_ACEOF | ||
22033 | /* end confdefs.h. */ | ||
22034 | |||
22035 | #include <time.h> | ||
22036 | |||
22037 | int | ||
22038 | main () | ||
22039 | { | ||
22040 | clock_t foo; foo = 1235; | ||
22041 | ; | ||
22042 | return 0; | ||
22043 | } | ||
22044 | _ACEOF | ||
22045 | rm -f conftest.$ac_objext | ||
22046 | if { (ac_try="$ac_compile" | ||
22047 | case "(($ac_try" in | ||
22048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22049 | *) ac_try_echo=$ac_try;; | ||
22050 | esac | ||
22051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22052 | (eval "$ac_compile") 2>conftest.er1 | ||
22053 | ac_status=$? | ||
22054 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22055 | rm -f conftest.er1 | ||
22056 | cat conftest.err >&5 | ||
22057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22058 | (exit $ac_status); } && { | ||
22059 | test -z "$ac_c_werror_flag" || | ||
22060 | test ! -s conftest.err | ||
22061 | } && test -s conftest.$ac_objext; then | ||
22062 | ac_cv_have_clock_t="yes" | ||
22063 | else | ||
22064 | echo "$as_me: failed program was:" >&5 | ||
22065 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22066 | |||
22067 | ac_cv_have_clock_t="no" | ||
22068 | |||
22069 | fi | ||
22070 | |||
22071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22072 | |||
22073 | fi | ||
22074 | { echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5 | ||
22075 | echo "${ECHO_T}$ac_cv_have_clock_t" >&6; } | ||
22076 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
22077 | |||
22078 | cat >>confdefs.h <<\_ACEOF | ||
22079 | #define HAVE_CLOCK_T 1 | ||
22080 | _ACEOF | ||
22081 | |||
22082 | fi | ||
22083 | |||
22084 | { echo "$as_me:$LINENO: checking for sa_family_t" >&5 | ||
22085 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; } | ||
22086 | if test "${ac_cv_have_sa_family_t+set}" = set; then | ||
22087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22088 | else | ||
22089 | |||
22090 | cat >conftest.$ac_ext <<_ACEOF | ||
22091 | /* confdefs.h. */ | ||
22092 | _ACEOF | ||
22093 | cat confdefs.h >>conftest.$ac_ext | ||
22094 | cat >>conftest.$ac_ext <<_ACEOF | ||
22095 | /* end confdefs.h. */ | ||
22096 | |||
22097 | #include <sys/types.h> | ||
22098 | #include <sys/socket.h> | ||
22099 | |||
22100 | int | ||
22101 | main () | ||
22102 | { | ||
22103 | sa_family_t foo; foo = 1235; | ||
22104 | ; | ||
22105 | return 0; | ||
22106 | } | ||
22107 | _ACEOF | ||
22108 | rm -f conftest.$ac_objext | ||
22109 | if { (ac_try="$ac_compile" | ||
22110 | case "(($ac_try" in | ||
22111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22112 | *) ac_try_echo=$ac_try;; | ||
22113 | esac | ||
22114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22115 | (eval "$ac_compile") 2>conftest.er1 | ||
22116 | ac_status=$? | ||
22117 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22118 | rm -f conftest.er1 | ||
22119 | cat conftest.err >&5 | ||
22120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22121 | (exit $ac_status); } && { | ||
22122 | test -z "$ac_c_werror_flag" || | ||
22123 | test ! -s conftest.err | ||
22124 | } && test -s conftest.$ac_objext; then | ||
22125 | ac_cv_have_sa_family_t="yes" | ||
22126 | else | ||
22127 | echo "$as_me: failed program was:" >&5 | ||
22128 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22129 | |||
22130 | cat >conftest.$ac_ext <<_ACEOF | ||
22131 | /* confdefs.h. */ | ||
22132 | _ACEOF | ||
22133 | cat confdefs.h >>conftest.$ac_ext | ||
22134 | cat >>conftest.$ac_ext <<_ACEOF | ||
22135 | /* end confdefs.h. */ | ||
22136 | |||
22137 | #include <sys/types.h> | ||
22138 | #include <sys/socket.h> | ||
22139 | #include <netinet/in.h> | ||
22140 | |||
22141 | int | ||
22142 | main () | ||
22143 | { | ||
22144 | sa_family_t foo; foo = 1235; | ||
22145 | ; | ||
22146 | return 0; | ||
22147 | } | ||
22148 | _ACEOF | ||
22149 | rm -f conftest.$ac_objext | ||
22150 | if { (ac_try="$ac_compile" | ||
22151 | case "(($ac_try" in | ||
22152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22153 | *) ac_try_echo=$ac_try;; | ||
22154 | esac | ||
22155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22156 | (eval "$ac_compile") 2>conftest.er1 | ||
22157 | ac_status=$? | ||
22158 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22159 | rm -f conftest.er1 | ||
22160 | cat conftest.err >&5 | ||
22161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22162 | (exit $ac_status); } && { | ||
22163 | test -z "$ac_c_werror_flag" || | ||
22164 | test ! -s conftest.err | ||
22165 | } && test -s conftest.$ac_objext; then | ||
22166 | ac_cv_have_sa_family_t="yes" | ||
22167 | else | ||
22168 | echo "$as_me: failed program was:" >&5 | ||
22169 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22170 | |||
22171 | ac_cv_have_sa_family_t="no" | ||
22172 | |||
22173 | fi | ||
22174 | |||
22175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22176 | |||
22177 | fi | ||
22178 | |||
22179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22180 | |||
22181 | fi | ||
22182 | { echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5 | ||
22183 | echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; } | ||
22184 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
22185 | |||
22186 | cat >>confdefs.h <<\_ACEOF | ||
22187 | #define HAVE_SA_FAMILY_T 1 | ||
22188 | _ACEOF | ||
22189 | |||
22190 | fi | ||
22191 | |||
22192 | { echo "$as_me:$LINENO: checking for pid_t" >&5 | ||
22193 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | ||
22194 | if test "${ac_cv_have_pid_t+set}" = set; then | ||
22195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22196 | else | ||
22197 | |||
22198 | cat >conftest.$ac_ext <<_ACEOF | ||
22199 | /* confdefs.h. */ | ||
22200 | _ACEOF | ||
22201 | cat confdefs.h >>conftest.$ac_ext | ||
22202 | cat >>conftest.$ac_ext <<_ACEOF | ||
22203 | /* end confdefs.h. */ | ||
22204 | |||
22205 | #include <sys/types.h> | ||
22206 | |||
22207 | int | ||
22208 | main () | ||
22209 | { | ||
22210 | pid_t foo; foo = 1235; | ||
22211 | ; | ||
22212 | return 0; | ||
22213 | } | ||
22214 | _ACEOF | ||
22215 | rm -f conftest.$ac_objext | ||
22216 | if { (ac_try="$ac_compile" | ||
22217 | case "(($ac_try" in | ||
22218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22219 | *) ac_try_echo=$ac_try;; | ||
22220 | esac | ||
22221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22222 | (eval "$ac_compile") 2>conftest.er1 | ||
22223 | ac_status=$? | ||
22224 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22225 | rm -f conftest.er1 | ||
22226 | cat conftest.err >&5 | ||
22227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22228 | (exit $ac_status); } && { | ||
22229 | test -z "$ac_c_werror_flag" || | ||
22230 | test ! -s conftest.err | ||
22231 | } && test -s conftest.$ac_objext; then | ||
22232 | ac_cv_have_pid_t="yes" | ||
22233 | else | ||
22234 | echo "$as_me: failed program was:" >&5 | ||
22235 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22236 | |||
22237 | ac_cv_have_pid_t="no" | ||
22238 | |||
22239 | fi | ||
22240 | |||
22241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22242 | |||
22243 | fi | ||
22244 | { echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5 | ||
22245 | echo "${ECHO_T}$ac_cv_have_pid_t" >&6; } | ||
22246 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
22247 | |||
22248 | cat >>confdefs.h <<\_ACEOF | ||
22249 | #define HAVE_PID_T 1 | ||
22250 | _ACEOF | ||
22251 | |||
22252 | fi | ||
22253 | |||
22254 | { echo "$as_me:$LINENO: checking for mode_t" >&5 | ||
22255 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } | ||
22256 | if test "${ac_cv_have_mode_t+set}" = set; then | ||
22257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22258 | else | ||
22259 | |||
22260 | cat >conftest.$ac_ext <<_ACEOF | ||
22261 | /* confdefs.h. */ | ||
22262 | _ACEOF | ||
22263 | cat confdefs.h >>conftest.$ac_ext | ||
22264 | cat >>conftest.$ac_ext <<_ACEOF | ||
22265 | /* end confdefs.h. */ | ||
22266 | |||
22267 | #include <sys/types.h> | ||
22268 | |||
22269 | int | ||
22270 | main () | ||
22271 | { | ||
22272 | mode_t foo; foo = 1235; | ||
22273 | ; | ||
22274 | return 0; | ||
22275 | } | ||
22276 | _ACEOF | ||
22277 | rm -f conftest.$ac_objext | ||
22278 | if { (ac_try="$ac_compile" | ||
22279 | case "(($ac_try" in | ||
22280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22281 | *) ac_try_echo=$ac_try;; | ||
22282 | esac | ||
22283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22284 | (eval "$ac_compile") 2>conftest.er1 | ||
22285 | ac_status=$? | ||
22286 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22287 | rm -f conftest.er1 | ||
22288 | cat conftest.err >&5 | ||
22289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22290 | (exit $ac_status); } && { | ||
22291 | test -z "$ac_c_werror_flag" || | ||
22292 | test ! -s conftest.err | ||
22293 | } && test -s conftest.$ac_objext; then | ||
22294 | ac_cv_have_mode_t="yes" | ||
22295 | else | ||
22296 | echo "$as_me: failed program was:" >&5 | ||
22297 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22298 | |||
22299 | ac_cv_have_mode_t="no" | ||
22300 | |||
22301 | fi | ||
22302 | |||
22303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22304 | |||
22305 | fi | ||
22306 | { echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5 | ||
22307 | echo "${ECHO_T}$ac_cv_have_mode_t" >&6; } | ||
22308 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
22309 | |||
22310 | cat >>confdefs.h <<\_ACEOF | ||
22311 | #define HAVE_MODE_T 1 | ||
22312 | _ACEOF | ||
22313 | |||
22314 | fi | ||
22315 | |||
22316 | |||
22317 | { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 | ||
22318 | echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; } | ||
22319 | if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then | ||
22320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22321 | else | ||
22322 | |||
22323 | cat >conftest.$ac_ext <<_ACEOF | ||
22324 | /* confdefs.h. */ | ||
22325 | _ACEOF | ||
22326 | cat confdefs.h >>conftest.$ac_ext | ||
22327 | cat >>conftest.$ac_ext <<_ACEOF | ||
22328 | /* end confdefs.h. */ | ||
22329 | |||
22330 | #include <sys/types.h> | ||
22331 | #include <sys/socket.h> | ||
22332 | |||
22333 | int | ||
22334 | main () | ||
22335 | { | ||
22336 | struct sockaddr_storage s; | ||
22337 | ; | ||
22338 | return 0; | ||
22339 | } | ||
22340 | _ACEOF | ||
22341 | rm -f conftest.$ac_objext | ||
22342 | if { (ac_try="$ac_compile" | ||
22343 | case "(($ac_try" in | ||
22344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22345 | *) ac_try_echo=$ac_try;; | ||
22346 | esac | ||
22347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22348 | (eval "$ac_compile") 2>conftest.er1 | ||
22349 | ac_status=$? | ||
22350 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22351 | rm -f conftest.er1 | ||
22352 | cat conftest.err >&5 | ||
22353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22354 | (exit $ac_status); } && { | ||
22355 | test -z "$ac_c_werror_flag" || | ||
22356 | test ! -s conftest.err | ||
22357 | } && test -s conftest.$ac_objext; then | ||
22358 | ac_cv_have_struct_sockaddr_storage="yes" | ||
22359 | else | ||
22360 | echo "$as_me: failed program was:" >&5 | ||
22361 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22362 | |||
22363 | ac_cv_have_struct_sockaddr_storage="no" | ||
22364 | |||
22365 | fi | ||
22366 | |||
22367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22368 | |||
22369 | fi | ||
22370 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
22371 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; } | ||
22372 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
22373 | |||
22374 | cat >>confdefs.h <<\_ACEOF | ||
22375 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | ||
22376 | _ACEOF | ||
22377 | |||
22378 | fi | ||
22379 | |||
22380 | { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 | ||
22381 | echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; } | ||
22382 | if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then | ||
22383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22384 | else | ||
22385 | |||
22386 | cat >conftest.$ac_ext <<_ACEOF | ||
22387 | /* confdefs.h. */ | ||
22388 | _ACEOF | ||
22389 | cat confdefs.h >>conftest.$ac_ext | ||
22390 | cat >>conftest.$ac_ext <<_ACEOF | ||
22391 | /* end confdefs.h. */ | ||
22392 | |||
22393 | #include <sys/types.h> | ||
22394 | #include <netinet/in.h> | ||
22395 | |||
22396 | int | ||
22397 | main () | ||
22398 | { | ||
22399 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
22400 | ; | ||
22401 | return 0; | ||
22402 | } | ||
22403 | _ACEOF | ||
22404 | rm -f conftest.$ac_objext | ||
22405 | if { (ac_try="$ac_compile" | ||
22406 | case "(($ac_try" in | ||
22407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22408 | *) ac_try_echo=$ac_try;; | ||
22409 | esac | ||
22410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22411 | (eval "$ac_compile") 2>conftest.er1 | ||
22412 | ac_status=$? | ||
22413 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22414 | rm -f conftest.er1 | ||
22415 | cat conftest.err >&5 | ||
22416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22417 | (exit $ac_status); } && { | ||
22418 | test -z "$ac_c_werror_flag" || | ||
22419 | test ! -s conftest.err | ||
22420 | } && test -s conftest.$ac_objext; then | ||
22421 | ac_cv_have_struct_sockaddr_in6="yes" | ||
22422 | else | ||
22423 | echo "$as_me: failed program was:" >&5 | ||
22424 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22425 | |||
22426 | ac_cv_have_struct_sockaddr_in6="no" | ||
22427 | |||
22428 | fi | ||
22429 | |||
22430 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22431 | |||
22432 | fi | ||
22433 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
22434 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; } | ||
22435 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
22436 | |||
22437 | cat >>confdefs.h <<\_ACEOF | ||
22438 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | ||
22439 | _ACEOF | ||
22440 | |||
22441 | fi | ||
22442 | |||
22443 | { echo "$as_me:$LINENO: checking for struct in6_addr" >&5 | ||
22444 | echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; } | ||
22445 | if test "${ac_cv_have_struct_in6_addr+set}" = set; then | ||
22446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22447 | else | ||
22448 | |||
22449 | cat >conftest.$ac_ext <<_ACEOF | ||
22450 | /* confdefs.h. */ | ||
22451 | _ACEOF | ||
22452 | cat confdefs.h >>conftest.$ac_ext | ||
22453 | cat >>conftest.$ac_ext <<_ACEOF | ||
22454 | /* end confdefs.h. */ | ||
22455 | |||
22456 | #include <sys/types.h> | ||
22457 | #include <netinet/in.h> | ||
22458 | |||
22459 | int | ||
22460 | main () | ||
22461 | { | ||
22462 | struct in6_addr s; s.s6_addr[0] = 0; | ||
22463 | ; | ||
22464 | return 0; | ||
22465 | } | ||
22466 | _ACEOF | ||
22467 | rm -f conftest.$ac_objext | ||
22468 | if { (ac_try="$ac_compile" | ||
22469 | case "(($ac_try" in | ||
22470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22471 | *) ac_try_echo=$ac_try;; | ||
22472 | esac | ||
22473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22474 | (eval "$ac_compile") 2>conftest.er1 | ||
22475 | ac_status=$? | ||
22476 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22477 | rm -f conftest.er1 | ||
22478 | cat conftest.err >&5 | ||
22479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22480 | (exit $ac_status); } && { | ||
22481 | test -z "$ac_c_werror_flag" || | ||
22482 | test ! -s conftest.err | ||
22483 | } && test -s conftest.$ac_objext; then | ||
22484 | ac_cv_have_struct_in6_addr="yes" | ||
22485 | else | ||
22486 | echo "$as_me: failed program was:" >&5 | ||
22487 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22488 | |||
22489 | ac_cv_have_struct_in6_addr="no" | ||
22490 | |||
22491 | fi | ||
22492 | |||
22493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22494 | |||
22495 | fi | ||
22496 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5 | ||
22497 | echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; } | ||
22498 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
22499 | |||
22500 | cat >>confdefs.h <<\_ACEOF | ||
22501 | #define HAVE_STRUCT_IN6_ADDR 1 | ||
22502 | _ACEOF | ||
22503 | |||
22504 | fi | ||
22505 | |||
22506 | { echo "$as_me:$LINENO: checking for struct addrinfo" >&5 | ||
22507 | echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; } | ||
22508 | if test "${ac_cv_have_struct_addrinfo+set}" = set; then | ||
22509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22510 | else | ||
22511 | |||
22512 | cat >conftest.$ac_ext <<_ACEOF | ||
22513 | /* confdefs.h. */ | ||
22514 | _ACEOF | ||
22515 | cat confdefs.h >>conftest.$ac_ext | ||
22516 | cat >>conftest.$ac_ext <<_ACEOF | ||
22517 | /* end confdefs.h. */ | ||
22518 | |||
22519 | #include <sys/types.h> | ||
22520 | #include <sys/socket.h> | ||
22521 | #include <netdb.h> | ||
22522 | |||
22523 | int | ||
22524 | main () | ||
22525 | { | ||
22526 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
22527 | ; | ||
22528 | return 0; | ||
22529 | } | ||
22530 | _ACEOF | ||
22531 | rm -f conftest.$ac_objext | ||
22532 | if { (ac_try="$ac_compile" | ||
22533 | case "(($ac_try" in | ||
22534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22535 | *) ac_try_echo=$ac_try;; | ||
22536 | esac | ||
22537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22538 | (eval "$ac_compile") 2>conftest.er1 | ||
22539 | ac_status=$? | ||
22540 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22541 | rm -f conftest.er1 | ||
22542 | cat conftest.err >&5 | ||
22543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22544 | (exit $ac_status); } && { | ||
22545 | test -z "$ac_c_werror_flag" || | ||
22546 | test ! -s conftest.err | ||
22547 | } && test -s conftest.$ac_objext; then | ||
22548 | ac_cv_have_struct_addrinfo="yes" | ||
22549 | else | ||
22550 | echo "$as_me: failed program was:" >&5 | ||
22551 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22552 | |||
22553 | ac_cv_have_struct_addrinfo="no" | ||
22554 | |||
22555 | fi | ||
22556 | |||
22557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22558 | |||
22559 | fi | ||
22560 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5 | ||
22561 | echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; } | ||
22562 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
22563 | |||
22564 | cat >>confdefs.h <<\_ACEOF | ||
22565 | #define HAVE_STRUCT_ADDRINFO 1 | ||
22566 | _ACEOF | ||
22567 | |||
22568 | fi | ||
22569 | |||
22570 | { echo "$as_me:$LINENO: checking for struct timeval" >&5 | ||
22571 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; } | ||
22572 | if test "${ac_cv_have_struct_timeval+set}" = set; then | ||
22573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22574 | else | ||
22575 | |||
22576 | cat >conftest.$ac_ext <<_ACEOF | ||
22577 | /* confdefs.h. */ | ||
22578 | _ACEOF | ||
22579 | cat confdefs.h >>conftest.$ac_ext | ||
22580 | cat >>conftest.$ac_ext <<_ACEOF | ||
22581 | /* end confdefs.h. */ | ||
22582 | #include <sys/time.h> | ||
22583 | int | ||
22584 | main () | ||
22585 | { | ||
22586 | struct timeval tv; tv.tv_sec = 1; | ||
22587 | ; | ||
22588 | return 0; | ||
22589 | } | ||
22590 | _ACEOF | ||
22591 | rm -f conftest.$ac_objext | ||
22592 | if { (ac_try="$ac_compile" | ||
22593 | case "(($ac_try" in | ||
22594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22595 | *) ac_try_echo=$ac_try;; | ||
22596 | esac | ||
22597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22598 | (eval "$ac_compile") 2>conftest.er1 | ||
22599 | ac_status=$? | ||
22600 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22601 | rm -f conftest.er1 | ||
22602 | cat conftest.err >&5 | ||
22603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22604 | (exit $ac_status); } && { | ||
22605 | test -z "$ac_c_werror_flag" || | ||
22606 | test ! -s conftest.err | ||
22607 | } && test -s conftest.$ac_objext; then | ||
22608 | ac_cv_have_struct_timeval="yes" | ||
22609 | else | ||
22610 | echo "$as_me: failed program was:" >&5 | ||
22611 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22612 | |||
22613 | ac_cv_have_struct_timeval="no" | ||
22614 | |||
22615 | fi | ||
22616 | |||
22617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22618 | |||
22619 | fi | ||
22620 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5 | ||
22621 | echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; } | ||
22622 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
22623 | |||
22624 | cat >>confdefs.h <<\_ACEOF | ||
22625 | #define HAVE_STRUCT_TIMEVAL 1 | ||
22626 | _ACEOF | ||
22627 | |||
22628 | have_struct_timeval=1 | ||
22629 | fi | ||
22630 | |||
22631 | { echo "$as_me:$LINENO: checking for struct timespec" >&5 | ||
22632 | echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; } | ||
22633 | if test "${ac_cv_type_struct_timespec+set}" = set; then | ||
22634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22635 | else | ||
22636 | cat >conftest.$ac_ext <<_ACEOF | ||
22637 | /* confdefs.h. */ | ||
22638 | _ACEOF | ||
22639 | cat confdefs.h >>conftest.$ac_ext | ||
22640 | cat >>conftest.$ac_ext <<_ACEOF | ||
22641 | /* end confdefs.h. */ | ||
22642 | $ac_includes_default | ||
22643 | typedef struct timespec ac__type_new_; | ||
22644 | int | ||
22645 | main () | ||
22646 | { | ||
22647 | if ((ac__type_new_ *) 0) | ||
22648 | return 0; | ||
22649 | if (sizeof (ac__type_new_)) | ||
22650 | return 0; | ||
22651 | ; | ||
22652 | return 0; | ||
22653 | } | ||
22654 | _ACEOF | ||
22655 | rm -f conftest.$ac_objext | ||
22656 | if { (ac_try="$ac_compile" | ||
22657 | case "(($ac_try" in | ||
22658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22659 | *) ac_try_echo=$ac_try;; | ||
22660 | esac | ||
22661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22662 | (eval "$ac_compile") 2>conftest.er1 | ||
22663 | ac_status=$? | ||
22664 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22665 | rm -f conftest.er1 | ||
22666 | cat conftest.err >&5 | ||
22667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22668 | (exit $ac_status); } && { | ||
22669 | test -z "$ac_c_werror_flag" || | ||
22670 | test ! -s conftest.err | ||
22671 | } && test -s conftest.$ac_objext; then | ||
22672 | ac_cv_type_struct_timespec=yes | ||
22673 | else | ||
22674 | echo "$as_me: failed program was:" >&5 | ||
22675 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22676 | |||
22677 | ac_cv_type_struct_timespec=no | ||
22678 | fi | ||
22679 | |||
22680 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22681 | fi | ||
22682 | { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5 | ||
22683 | echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; } | ||
22684 | if test $ac_cv_type_struct_timespec = yes; then | ||
22685 | |||
22686 | cat >>confdefs.h <<_ACEOF | ||
22687 | #define HAVE_STRUCT_TIMESPEC 1 | ||
22688 | _ACEOF | ||
22689 | |||
22690 | |||
22691 | fi | ||
22692 | |||
22693 | |||
22694 | # We need int64_t or else certian parts of the compile will fail. | ||
22695 | if test "x$ac_cv_have_int64_t" = "xno" && \ | ||
22696 | test "x$ac_cv_sizeof_long_int" != "x8" && \ | ||
22697 | test "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
22698 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
22699 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
22700 | echo "" | ||
22701 | exit 1; | ||
22702 | else | ||
22703 | if test "$cross_compiling" = yes; then | ||
22704 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
22705 | echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
22706 | |||
22707 | else | ||
22708 | cat >conftest.$ac_ext <<_ACEOF | ||
22709 | /* confdefs.h. */ | ||
22710 | _ACEOF | ||
22711 | cat confdefs.h >>conftest.$ac_ext | ||
22712 | cat >>conftest.$ac_ext <<_ACEOF | ||
22713 | /* end confdefs.h. */ | ||
22714 | |||
22715 | #include <stdio.h> | ||
22716 | #include <string.h> | ||
22717 | #ifdef HAVE_SNPRINTF | ||
22718 | main() | ||
22719 | { | ||
22720 | char buf[50]; | ||
22721 | char expected_out[50]; | ||
22722 | int mazsize = 50 ; | ||
22723 | #if (SIZEOF_LONG_INT == 8) | ||
22724 | long int num = 0x7fffffffffffffff; | ||
22725 | #else | ||
22726 | long long num = 0x7fffffffffffffffll; | ||
22727 | #endif | ||
22728 | strcpy(expected_out, "9223372036854775807"); | ||
22729 | snprintf(buf, mazsize, "%lld", num); | ||
22730 | if(strcmp(buf, expected_out) != 0) | ||
22731 | exit(1); | ||
22732 | exit(0); | ||
22733 | } | ||
22734 | #else | ||
22735 | main() { exit(0); } | ||
22736 | #endif | ||
22737 | |||
22738 | _ACEOF | ||
22739 | rm -f conftest$ac_exeext | ||
22740 | if { (ac_try="$ac_link" | ||
22741 | case "(($ac_try" in | ||
22742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22743 | *) ac_try_echo=$ac_try;; | ||
22744 | esac | ||
22745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22746 | (eval "$ac_link") 2>&5 | ||
22747 | ac_status=$? | ||
22748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22749 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
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_try") 2>&5 | ||
22756 | ac_status=$? | ||
22757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22758 | (exit $ac_status); }; }; then | ||
22759 | true | ||
22760 | else | ||
22761 | echo "$as_me: program exited with status $ac_status" >&5 | ||
22762 | echo "$as_me: failed program was:" >&5 | ||
22763 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22764 | |||
22765 | ( exit $ac_status ) | ||
22766 | cat >>confdefs.h <<\_ACEOF | ||
22767 | #define BROKEN_SNPRINTF 1 | ||
22768 | _ACEOF | ||
22769 | |||
22770 | fi | ||
22771 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
22772 | fi | ||
22773 | |||
22774 | |||
22775 | fi | ||
22776 | |||
22777 | |||
22778 | # look for field 'ut_host' in header 'utmp.h' | ||
22779 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
22780 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
22781 | { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5 | ||
22782 | echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; } | ||
22783 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22785 | else | ||
22786 | |||
22787 | cat >conftest.$ac_ext <<_ACEOF | ||
22788 | /* confdefs.h. */ | ||
22789 | _ACEOF | ||
22790 | cat confdefs.h >>conftest.$ac_ext | ||
22791 | cat >>conftest.$ac_ext <<_ACEOF | ||
22792 | /* end confdefs.h. */ | ||
22793 | #include <utmp.h> | ||
22794 | |||
22795 | _ACEOF | ||
22796 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
22797 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
22798 | eval "$ossh_varname=yes" | ||
22799 | else | ||
22800 | eval "$ossh_varname=no" | ||
22801 | fi | ||
22802 | rm -f conftest* | ||
22803 | |||
22804 | fi | ||
22805 | |||
22806 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
22807 | if test -n "`echo $ossh_varname`"; then | ||
22808 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
22809 | echo "${ECHO_T}$ossh_result" >&6; } | ||
22810 | if test "x$ossh_result" = "xyes"; then | ||
22811 | |||
22812 | cat >>confdefs.h <<\_ACEOF | ||
22813 | #define HAVE_HOST_IN_UTMP 1 | ||
22814 | _ACEOF | ||
22815 | |||
22816 | fi | ||
22817 | else | ||
22818 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22819 | echo "${ECHO_T}no" >&6; } | ||
22820 | fi | ||
22821 | |||
22822 | |||
22823 | # look for field 'ut_host' in header 'utmpx.h' | ||
22824 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
22825 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
22826 | { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5 | ||
22827 | echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; } | ||
22828 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22830 | else | ||
22831 | |||
22832 | cat >conftest.$ac_ext <<_ACEOF | ||
22833 | /* confdefs.h. */ | ||
22834 | _ACEOF | ||
22835 | cat confdefs.h >>conftest.$ac_ext | ||
22836 | cat >>conftest.$ac_ext <<_ACEOF | ||
22837 | /* end confdefs.h. */ | ||
22838 | #include <utmpx.h> | ||
22839 | |||
22840 | _ACEOF | ||
22841 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
22842 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
22843 | eval "$ossh_varname=yes" | ||
22844 | else | ||
22845 | eval "$ossh_varname=no" | ||
22846 | fi | ||
22847 | rm -f conftest* | ||
22848 | |||
22849 | fi | ||
22850 | |||
22851 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
22852 | if test -n "`echo $ossh_varname`"; then | ||
22853 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
22854 | echo "${ECHO_T}$ossh_result" >&6; } | ||
22855 | if test "x$ossh_result" = "xyes"; then | ||
22856 | |||
22857 | cat >>confdefs.h <<\_ACEOF | ||
22858 | #define HAVE_HOST_IN_UTMPX 1 | ||
22859 | _ACEOF | ||
22860 | |||
22861 | fi | ||
22862 | else | ||
22863 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22864 | echo "${ECHO_T}no" >&6; } | ||
22865 | fi | ||
22866 | |||
22867 | |||
22868 | # look for field 'syslen' in header 'utmpx.h' | ||
22869 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
22870 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
22871 | { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5 | ||
22872 | echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; } | ||
22873 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22875 | else | ||
22876 | |||
22877 | cat >conftest.$ac_ext <<_ACEOF | ||
22878 | /* confdefs.h. */ | ||
22879 | _ACEOF | ||
22880 | cat confdefs.h >>conftest.$ac_ext | ||
22881 | cat >>conftest.$ac_ext <<_ACEOF | ||
22882 | /* end confdefs.h. */ | ||
22883 | #include <utmpx.h> | ||
22884 | |||
22885 | _ACEOF | ||
22886 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
22887 | $EGREP "syslen" >/dev/null 2>&1; then | ||
22888 | eval "$ossh_varname=yes" | ||
22889 | else | ||
22890 | eval "$ossh_varname=no" | ||
22891 | fi | ||
22892 | rm -f conftest* | ||
22893 | |||
22894 | fi | ||
22895 | |||
22896 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
22897 | if test -n "`echo $ossh_varname`"; then | ||
22898 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
22899 | echo "${ECHO_T}$ossh_result" >&6; } | ||
22900 | if test "x$ossh_result" = "xyes"; then | ||
22901 | |||
22902 | cat >>confdefs.h <<\_ACEOF | ||
22903 | #define HAVE_SYSLEN_IN_UTMPX 1 | ||
22904 | _ACEOF | ||
22905 | |||
22906 | fi | ||
22907 | else | ||
22908 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22909 | echo "${ECHO_T}no" >&6; } | ||
22910 | fi | ||
22911 | |||
22912 | |||
22913 | # look for field 'ut_pid' in header 'utmp.h' | ||
22914 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
22915 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
22916 | { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5 | ||
22917 | echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; } | ||
22918 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22920 | else | ||
22921 | |||
22922 | cat >conftest.$ac_ext <<_ACEOF | ||
22923 | /* confdefs.h. */ | ||
22924 | _ACEOF | ||
22925 | cat confdefs.h >>conftest.$ac_ext | ||
22926 | cat >>conftest.$ac_ext <<_ACEOF | ||
22927 | /* end confdefs.h. */ | ||
22928 | #include <utmp.h> | ||
22929 | |||
22930 | _ACEOF | ||
22931 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
22932 | $EGREP "ut_pid" >/dev/null 2>&1; then | ||
22933 | eval "$ossh_varname=yes" | ||
22934 | else | ||
22935 | eval "$ossh_varname=no" | ||
22936 | fi | ||
22937 | rm -f conftest* | ||
22938 | |||
22939 | fi | ||
22940 | |||
22941 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
22942 | if test -n "`echo $ossh_varname`"; then | ||
22943 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
22944 | echo "${ECHO_T}$ossh_result" >&6; } | ||
22945 | if test "x$ossh_result" = "xyes"; then | ||
22946 | |||
22947 | cat >>confdefs.h <<\_ACEOF | ||
22948 | #define HAVE_PID_IN_UTMP 1 | ||
22949 | _ACEOF | ||
22950 | |||
22951 | fi | ||
22952 | else | ||
22953 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22954 | echo "${ECHO_T}no" >&6; } | ||
22955 | fi | ||
22956 | |||
22957 | |||
22958 | # look for field 'ut_type' in header 'utmp.h' | ||
22959 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
22960 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
22961 | { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5 | ||
22962 | echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; } | ||
22963 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
22964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22965 | else | ||
22966 | |||
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 <utmp.h> | ||
22974 | |||
22975 | _ACEOF | ||
22976 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
22977 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
22978 | eval "$ossh_varname=yes" | ||
22979 | else | ||
22980 | eval "$ossh_varname=no" | ||
22981 | fi | ||
22982 | rm -f conftest* | ||
22983 | |||
22984 | fi | ||
22985 | |||
22986 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
22987 | if test -n "`echo $ossh_varname`"; then | ||
22988 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
22989 | echo "${ECHO_T}$ossh_result" >&6; } | ||
22990 | if test "x$ossh_result" = "xyes"; then | ||
22991 | |||
22992 | cat >>confdefs.h <<\_ACEOF | ||
22993 | #define HAVE_TYPE_IN_UTMP 1 | ||
22994 | _ACEOF | ||
22995 | |||
22996 | fi | ||
22997 | else | ||
22998 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22999 | echo "${ECHO_T}no" >&6; } | ||
23000 | fi | ||
23001 | |||
23002 | |||
23003 | # look for field 'ut_type' in header 'utmpx.h' | ||
23004 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
23005 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
23006 | { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5 | ||
23007 | echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; } | ||
23008 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23010 | else | ||
23011 | |||
23012 | cat >conftest.$ac_ext <<_ACEOF | ||
23013 | /* confdefs.h. */ | ||
23014 | _ACEOF | ||
23015 | cat confdefs.h >>conftest.$ac_ext | ||
23016 | cat >>conftest.$ac_ext <<_ACEOF | ||
23017 | /* end confdefs.h. */ | ||
23018 | #include <utmpx.h> | ||
23019 | |||
23020 | _ACEOF | ||
23021 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23022 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
23023 | eval "$ossh_varname=yes" | ||
23024 | else | ||
23025 | eval "$ossh_varname=no" | ||
23026 | fi | ||
23027 | rm -f conftest* | ||
23028 | |||
23029 | fi | ||
23030 | |||
23031 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23032 | if test -n "`echo $ossh_varname`"; then | ||
23033 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23034 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23035 | if test "x$ossh_result" = "xyes"; then | ||
23036 | |||
23037 | cat >>confdefs.h <<\_ACEOF | ||
23038 | #define HAVE_TYPE_IN_UTMPX 1 | ||
23039 | _ACEOF | ||
23040 | |||
23041 | fi | ||
23042 | else | ||
23043 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23044 | echo "${ECHO_T}no" >&6; } | ||
23045 | fi | ||
23046 | |||
23047 | |||
23048 | # look for field 'ut_tv' in header 'utmp.h' | ||
23049 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
23050 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
23051 | { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5 | ||
23052 | echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; } | ||
23053 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23055 | else | ||
23056 | |||
23057 | cat >conftest.$ac_ext <<_ACEOF | ||
23058 | /* confdefs.h. */ | ||
23059 | _ACEOF | ||
23060 | cat confdefs.h >>conftest.$ac_ext | ||
23061 | cat >>conftest.$ac_ext <<_ACEOF | ||
23062 | /* end confdefs.h. */ | ||
23063 | #include <utmp.h> | ||
23064 | |||
23065 | _ACEOF | ||
23066 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23067 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
23068 | eval "$ossh_varname=yes" | ||
23069 | else | ||
23070 | eval "$ossh_varname=no" | ||
23071 | fi | ||
23072 | rm -f conftest* | ||
23073 | |||
23074 | fi | ||
23075 | |||
23076 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23077 | if test -n "`echo $ossh_varname`"; then | ||
23078 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23079 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23080 | if test "x$ossh_result" = "xyes"; then | ||
23081 | |||
23082 | cat >>confdefs.h <<\_ACEOF | ||
23083 | #define HAVE_TV_IN_UTMP 1 | ||
23084 | _ACEOF | ||
23085 | |||
23086 | fi | ||
23087 | else | ||
23088 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23089 | echo "${ECHO_T}no" >&6; } | ||
23090 | fi | ||
23091 | |||
23092 | |||
23093 | # look for field 'ut_id' in header 'utmp.h' | ||
23094 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
23095 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
23096 | { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5 | ||
23097 | echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; } | ||
23098 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23100 | else | ||
23101 | |||
23102 | cat >conftest.$ac_ext <<_ACEOF | ||
23103 | /* confdefs.h. */ | ||
23104 | _ACEOF | ||
23105 | cat confdefs.h >>conftest.$ac_ext | ||
23106 | cat >>conftest.$ac_ext <<_ACEOF | ||
23107 | /* end confdefs.h. */ | ||
23108 | #include <utmp.h> | ||
23109 | |||
23110 | _ACEOF | ||
23111 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23112 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
23113 | eval "$ossh_varname=yes" | ||
23114 | else | ||
23115 | eval "$ossh_varname=no" | ||
23116 | fi | ||
23117 | rm -f conftest* | ||
23118 | |||
23119 | fi | ||
23120 | |||
23121 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23122 | if test -n "`echo $ossh_varname`"; then | ||
23123 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23124 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23125 | if test "x$ossh_result" = "xyes"; then | ||
23126 | |||
23127 | cat >>confdefs.h <<\_ACEOF | ||
23128 | #define HAVE_ID_IN_UTMP 1 | ||
23129 | _ACEOF | ||
23130 | |||
23131 | fi | ||
23132 | else | ||
23133 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23134 | echo "${ECHO_T}no" >&6; } | ||
23135 | fi | ||
23136 | |||
23137 | |||
23138 | # look for field 'ut_id' in header 'utmpx.h' | ||
23139 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
23140 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
23141 | { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5 | ||
23142 | echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; } | ||
23143 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23145 | else | ||
23146 | |||
23147 | cat >conftest.$ac_ext <<_ACEOF | ||
23148 | /* confdefs.h. */ | ||
23149 | _ACEOF | ||
23150 | cat confdefs.h >>conftest.$ac_ext | ||
23151 | cat >>conftest.$ac_ext <<_ACEOF | ||
23152 | /* end confdefs.h. */ | ||
23153 | #include <utmpx.h> | ||
23154 | |||
23155 | _ACEOF | ||
23156 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23157 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
23158 | eval "$ossh_varname=yes" | ||
23159 | else | ||
23160 | eval "$ossh_varname=no" | ||
23161 | fi | ||
23162 | rm -f conftest* | ||
23163 | |||
23164 | fi | ||
23165 | |||
23166 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23167 | if test -n "`echo $ossh_varname`"; then | ||
23168 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23169 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23170 | if test "x$ossh_result" = "xyes"; then | ||
23171 | |||
23172 | cat >>confdefs.h <<\_ACEOF | ||
23173 | #define HAVE_ID_IN_UTMPX 1 | ||
23174 | _ACEOF | ||
23175 | |||
23176 | fi | ||
23177 | else | ||
23178 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23179 | echo "${ECHO_T}no" >&6; } | ||
23180 | fi | ||
23181 | |||
23182 | |||
23183 | # look for field 'ut_addr' in header 'utmp.h' | ||
23184 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
23185 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
23186 | { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5 | ||
23187 | echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; } | ||
23188 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23190 | else | ||
23191 | |||
23192 | cat >conftest.$ac_ext <<_ACEOF | ||
23193 | /* confdefs.h. */ | ||
23194 | _ACEOF | ||
23195 | cat confdefs.h >>conftest.$ac_ext | ||
23196 | cat >>conftest.$ac_ext <<_ACEOF | ||
23197 | /* end confdefs.h. */ | ||
23198 | #include <utmp.h> | ||
23199 | |||
23200 | _ACEOF | ||
23201 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23202 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
23203 | eval "$ossh_varname=yes" | ||
23204 | else | ||
23205 | eval "$ossh_varname=no" | ||
23206 | fi | ||
23207 | rm -f conftest* | ||
23208 | |||
23209 | fi | ||
23210 | |||
23211 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23212 | if test -n "`echo $ossh_varname`"; then | ||
23213 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23214 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23215 | if test "x$ossh_result" = "xyes"; then | ||
23216 | |||
23217 | cat >>confdefs.h <<\_ACEOF | ||
23218 | #define HAVE_ADDR_IN_UTMP 1 | ||
23219 | _ACEOF | ||
23220 | |||
23221 | fi | ||
23222 | else | ||
23223 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23224 | echo "${ECHO_T}no" >&6; } | ||
23225 | fi | ||
23226 | |||
23227 | |||
23228 | # look for field 'ut_addr' in header 'utmpx.h' | ||
23229 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
23230 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
23231 | { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5 | ||
23232 | echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; } | ||
23233 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23235 | else | ||
23236 | |||
23237 | cat >conftest.$ac_ext <<_ACEOF | ||
23238 | /* confdefs.h. */ | ||
23239 | _ACEOF | ||
23240 | cat confdefs.h >>conftest.$ac_ext | ||
23241 | cat >>conftest.$ac_ext <<_ACEOF | ||
23242 | /* end confdefs.h. */ | ||
23243 | #include <utmpx.h> | ||
23244 | |||
23245 | _ACEOF | ||
23246 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23247 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
23248 | eval "$ossh_varname=yes" | ||
23249 | else | ||
23250 | eval "$ossh_varname=no" | ||
23251 | fi | ||
23252 | rm -f conftest* | ||
23253 | |||
23254 | fi | ||
23255 | |||
23256 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23257 | if test -n "`echo $ossh_varname`"; then | ||
23258 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23259 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23260 | if test "x$ossh_result" = "xyes"; then | ||
23261 | |||
23262 | cat >>confdefs.h <<\_ACEOF | ||
23263 | #define HAVE_ADDR_IN_UTMPX 1 | ||
23264 | _ACEOF | ||
23265 | |||
23266 | fi | ||
23267 | else | ||
23268 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23269 | echo "${ECHO_T}no" >&6; } | ||
23270 | fi | ||
23271 | |||
23272 | |||
23273 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
23274 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
23275 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
23276 | { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5 | ||
23277 | echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; } | ||
23278 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23280 | else | ||
23281 | |||
23282 | cat >conftest.$ac_ext <<_ACEOF | ||
23283 | /* confdefs.h. */ | ||
23284 | _ACEOF | ||
23285 | cat confdefs.h >>conftest.$ac_ext | ||
23286 | cat >>conftest.$ac_ext <<_ACEOF | ||
23287 | /* end confdefs.h. */ | ||
23288 | #include <utmp.h> | ||
23289 | |||
23290 | _ACEOF | ||
23291 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23292 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
23293 | eval "$ossh_varname=yes" | ||
23294 | else | ||
23295 | eval "$ossh_varname=no" | ||
23296 | fi | ||
23297 | rm -f conftest* | ||
23298 | |||
23299 | fi | ||
23300 | |||
23301 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23302 | if test -n "`echo $ossh_varname`"; then | ||
23303 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23304 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23305 | if test "x$ossh_result" = "xyes"; then | ||
23306 | |||
23307 | cat >>confdefs.h <<\_ACEOF | ||
23308 | #define HAVE_ADDR_V6_IN_UTMP 1 | ||
23309 | _ACEOF | ||
23310 | |||
23311 | fi | ||
23312 | else | ||
23313 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23314 | echo "${ECHO_T}no" >&6; } | ||
23315 | fi | ||
23316 | |||
23317 | |||
23318 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
23319 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
23320 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
23321 | { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
23322 | echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; } | ||
23323 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23325 | else | ||
23326 | |||
23327 | cat >conftest.$ac_ext <<_ACEOF | ||
23328 | /* confdefs.h. */ | ||
23329 | _ACEOF | ||
23330 | cat confdefs.h >>conftest.$ac_ext | ||
23331 | cat >>conftest.$ac_ext <<_ACEOF | ||
23332 | /* end confdefs.h. */ | ||
23333 | #include <utmpx.h> | ||
23334 | |||
23335 | _ACEOF | ||
23336 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23337 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
23338 | eval "$ossh_varname=yes" | ||
23339 | else | ||
23340 | eval "$ossh_varname=no" | ||
23341 | fi | ||
23342 | rm -f conftest* | ||
23343 | |||
23344 | fi | ||
23345 | |||
23346 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23347 | if test -n "`echo $ossh_varname`"; then | ||
23348 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23349 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23350 | if test "x$ossh_result" = "xyes"; then | ||
23351 | |||
23352 | cat >>confdefs.h <<\_ACEOF | ||
23353 | #define HAVE_ADDR_V6_IN_UTMPX 1 | ||
23354 | _ACEOF | ||
23355 | |||
23356 | fi | ||
23357 | else | ||
23358 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23359 | echo "${ECHO_T}no" >&6; } | ||
23360 | fi | ||
23361 | |||
23362 | |||
23363 | # look for field 'ut_exit' in header 'utmp.h' | ||
23364 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
23365 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
23366 | { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5 | ||
23367 | echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; } | ||
23368 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23370 | else | ||
23371 | |||
23372 | cat >conftest.$ac_ext <<_ACEOF | ||
23373 | /* confdefs.h. */ | ||
23374 | _ACEOF | ||
23375 | cat confdefs.h >>conftest.$ac_ext | ||
23376 | cat >>conftest.$ac_ext <<_ACEOF | ||
23377 | /* end confdefs.h. */ | ||
23378 | #include <utmp.h> | ||
23379 | |||
23380 | _ACEOF | ||
23381 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23382 | $EGREP "ut_exit" >/dev/null 2>&1; then | ||
23383 | eval "$ossh_varname=yes" | ||
23384 | else | ||
23385 | eval "$ossh_varname=no" | ||
23386 | fi | ||
23387 | rm -f conftest* | ||
23388 | |||
23389 | fi | ||
23390 | |||
23391 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23392 | if test -n "`echo $ossh_varname`"; then | ||
23393 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23394 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23395 | if test "x$ossh_result" = "xyes"; then | ||
23396 | |||
23397 | cat >>confdefs.h <<\_ACEOF | ||
23398 | #define HAVE_EXIT_IN_UTMP 1 | ||
23399 | _ACEOF | ||
23400 | |||
23401 | fi | ||
23402 | else | ||
23403 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23404 | echo "${ECHO_T}no" >&6; } | ||
23405 | fi | ||
23406 | |||
23407 | |||
23408 | # look for field 'ut_time' in header 'utmp.h' | ||
23409 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
23410 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
23411 | { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5 | ||
23412 | echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; } | ||
23413 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23415 | else | ||
23416 | |||
23417 | cat >conftest.$ac_ext <<_ACEOF | ||
23418 | /* confdefs.h. */ | ||
23419 | _ACEOF | ||
23420 | cat confdefs.h >>conftest.$ac_ext | ||
23421 | cat >>conftest.$ac_ext <<_ACEOF | ||
23422 | /* end confdefs.h. */ | ||
23423 | #include <utmp.h> | ||
23424 | |||
23425 | _ACEOF | ||
23426 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23427 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
23428 | eval "$ossh_varname=yes" | ||
23429 | else | ||
23430 | eval "$ossh_varname=no" | ||
23431 | fi | ||
23432 | rm -f conftest* | ||
23433 | |||
23434 | fi | ||
23435 | |||
23436 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23437 | if test -n "`echo $ossh_varname`"; then | ||
23438 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23439 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23440 | if test "x$ossh_result" = "xyes"; then | ||
23441 | |||
23442 | cat >>confdefs.h <<\_ACEOF | ||
23443 | #define HAVE_TIME_IN_UTMP 1 | ||
23444 | _ACEOF | ||
23445 | |||
23446 | fi | ||
23447 | else | ||
23448 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23449 | echo "${ECHO_T}no" >&6; } | ||
23450 | fi | ||
23451 | |||
23452 | |||
23453 | # look for field 'ut_time' in header 'utmpx.h' | ||
23454 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
23455 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
23456 | { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5 | ||
23457 | echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; } | ||
23458 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23460 | else | ||
23461 | |||
23462 | cat >conftest.$ac_ext <<_ACEOF | ||
23463 | /* confdefs.h. */ | ||
23464 | _ACEOF | ||
23465 | cat confdefs.h >>conftest.$ac_ext | ||
23466 | cat >>conftest.$ac_ext <<_ACEOF | ||
23467 | /* end confdefs.h. */ | ||
23468 | #include <utmpx.h> | ||
23469 | |||
23470 | _ACEOF | ||
23471 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23472 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
23473 | eval "$ossh_varname=yes" | ||
23474 | else | ||
23475 | eval "$ossh_varname=no" | ||
23476 | fi | ||
23477 | rm -f conftest* | ||
23478 | |||
23479 | fi | ||
23480 | |||
23481 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23482 | if test -n "`echo $ossh_varname`"; then | ||
23483 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23484 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23485 | if test "x$ossh_result" = "xyes"; then | ||
23486 | |||
23487 | cat >>confdefs.h <<\_ACEOF | ||
23488 | #define HAVE_TIME_IN_UTMPX 1 | ||
23489 | _ACEOF | ||
23490 | |||
23491 | fi | ||
23492 | else | ||
23493 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23494 | echo "${ECHO_T}no" >&6; } | ||
23495 | fi | ||
23496 | |||
23497 | |||
23498 | # look for field 'ut_tv' in header 'utmpx.h' | ||
23499 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
23500 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
23501 | { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5 | ||
23502 | echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; } | ||
23503 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23505 | else | ||
23506 | |||
23507 | cat >conftest.$ac_ext <<_ACEOF | ||
23508 | /* confdefs.h. */ | ||
23509 | _ACEOF | ||
23510 | cat confdefs.h >>conftest.$ac_ext | ||
23511 | cat >>conftest.$ac_ext <<_ACEOF | ||
23512 | /* end confdefs.h. */ | ||
23513 | #include <utmpx.h> | ||
23514 | |||
23515 | _ACEOF | ||
23516 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23517 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
23518 | eval "$ossh_varname=yes" | ||
23519 | else | ||
23520 | eval "$ossh_varname=no" | ||
23521 | fi | ||
23522 | rm -f conftest* | ||
23523 | |||
23524 | fi | ||
23525 | |||
23526 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23527 | if test -n "`echo $ossh_varname`"; then | ||
23528 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23529 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23530 | if test "x$ossh_result" = "xyes"; then | ||
23531 | |||
23532 | cat >>confdefs.h <<\_ACEOF | ||
23533 | #define HAVE_TV_IN_UTMPX 1 | ||
23534 | _ACEOF | ||
23535 | |||
23536 | fi | ||
23537 | else | ||
23538 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23539 | echo "${ECHO_T}no" >&6; } | ||
23540 | fi | ||
23541 | |||
23542 | |||
23543 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 | ||
23544 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; } | ||
23545 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | ||
23546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23547 | else | ||
23548 | cat >conftest.$ac_ext <<_ACEOF | ||
23549 | /* confdefs.h. */ | ||
23550 | _ACEOF | ||
23551 | cat confdefs.h >>conftest.$ac_ext | ||
23552 | cat >>conftest.$ac_ext <<_ACEOF | ||
23553 | /* end confdefs.h. */ | ||
23554 | $ac_includes_default | ||
23555 | int | ||
23556 | main () | ||
23557 | { | ||
23558 | static struct stat ac_aggr; | ||
23559 | if (ac_aggr.st_blksize) | ||
23560 | return 0; | ||
23561 | ; | ||
23562 | return 0; | ||
23563 | } | ||
23564 | _ACEOF | ||
23565 | rm -f conftest.$ac_objext | ||
23566 | if { (ac_try="$ac_compile" | ||
23567 | case "(($ac_try" in | ||
23568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23569 | *) ac_try_echo=$ac_try;; | ||
23570 | esac | ||
23571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23572 | (eval "$ac_compile") 2>conftest.er1 | ||
23573 | ac_status=$? | ||
23574 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23575 | rm -f conftest.er1 | ||
23576 | cat conftest.err >&5 | ||
23577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23578 | (exit $ac_status); } && { | ||
23579 | test -z "$ac_c_werror_flag" || | ||
23580 | test ! -s conftest.err | ||
23581 | } && test -s conftest.$ac_objext; then | ||
23582 | ac_cv_member_struct_stat_st_blksize=yes | ||
23583 | else | ||
23584 | echo "$as_me: failed program was:" >&5 | ||
23585 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23586 | |||
23587 | cat >conftest.$ac_ext <<_ACEOF | ||
23588 | /* confdefs.h. */ | ||
23589 | _ACEOF | ||
23590 | cat confdefs.h >>conftest.$ac_ext | ||
23591 | cat >>conftest.$ac_ext <<_ACEOF | ||
23592 | /* end confdefs.h. */ | ||
23593 | $ac_includes_default | ||
23594 | int | ||
23595 | main () | ||
23596 | { | ||
23597 | static struct stat ac_aggr; | ||
23598 | if (sizeof ac_aggr.st_blksize) | ||
23599 | return 0; | ||
23600 | ; | ||
23601 | return 0; | ||
23602 | } | ||
23603 | _ACEOF | ||
23604 | rm -f conftest.$ac_objext | ||
23605 | if { (ac_try="$ac_compile" | ||
23606 | case "(($ac_try" in | ||
23607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23608 | *) ac_try_echo=$ac_try;; | ||
23609 | esac | ||
23610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23611 | (eval "$ac_compile") 2>conftest.er1 | ||
23612 | ac_status=$? | ||
23613 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23614 | rm -f conftest.er1 | ||
23615 | cat conftest.err >&5 | ||
23616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23617 | (exit $ac_status); } && { | ||
23618 | test -z "$ac_c_werror_flag" || | ||
23619 | test ! -s conftest.err | ||
23620 | } && test -s conftest.$ac_objext; then | ||
23621 | ac_cv_member_struct_stat_st_blksize=yes | ||
23622 | else | ||
23623 | echo "$as_me: failed program was:" >&5 | ||
23624 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23625 | |||
23626 | ac_cv_member_struct_stat_st_blksize=no | ||
23627 | fi | ||
23628 | |||
23629 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23630 | fi | ||
23631 | |||
23632 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23633 | fi | ||
23634 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | ||
23635 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } | ||
23636 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | ||
23637 | |||
23638 | cat >>confdefs.h <<_ACEOF | ||
23639 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
23640 | _ACEOF | ||
23641 | |||
23642 | |||
23643 | fi | ||
23644 | |||
23645 | { echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5 | ||
23646 | echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; } | ||
23647 | if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then | ||
23648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23649 | else | ||
23650 | cat >conftest.$ac_ext <<_ACEOF | ||
23651 | /* confdefs.h. */ | ||
23652 | _ACEOF | ||
23653 | cat confdefs.h >>conftest.$ac_ext | ||
23654 | cat >>conftest.$ac_ext <<_ACEOF | ||
23655 | /* end confdefs.h. */ | ||
23656 | |||
23657 | #include <stdio.h> | ||
23658 | #if HAVE_SYS_TYPES_H | ||
23659 | # include <sys/types.h> | ||
23660 | #endif | ||
23661 | #include <netinet/in.h> | ||
23662 | #include <arpa/nameser.h> | ||
23663 | #include <resolv.h> | ||
23664 | |||
23665 | |||
23666 | int | ||
23667 | main () | ||
23668 | { | ||
23669 | static struct __res_state ac_aggr; | ||
23670 | if (ac_aggr.retrans) | ||
23671 | return 0; | ||
23672 | ; | ||
23673 | return 0; | ||
23674 | } | ||
23675 | _ACEOF | ||
23676 | rm -f conftest.$ac_objext | ||
23677 | if { (ac_try="$ac_compile" | ||
23678 | case "(($ac_try" in | ||
23679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23680 | *) ac_try_echo=$ac_try;; | ||
23681 | esac | ||
23682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23683 | (eval "$ac_compile") 2>conftest.er1 | ||
23684 | ac_status=$? | ||
23685 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23686 | rm -f conftest.er1 | ||
23687 | cat conftest.err >&5 | ||
23688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23689 | (exit $ac_status); } && { | ||
23690 | test -z "$ac_c_werror_flag" || | ||
23691 | test ! -s conftest.err | ||
23692 | } && test -s conftest.$ac_objext; then | ||
23693 | ac_cv_member_struct___res_state_retrans=yes | ||
23694 | else | ||
23695 | echo "$as_me: failed program was:" >&5 | ||
23696 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23697 | |||
23698 | cat >conftest.$ac_ext <<_ACEOF | ||
23699 | /* confdefs.h. */ | ||
23700 | _ACEOF | ||
23701 | cat confdefs.h >>conftest.$ac_ext | ||
23702 | cat >>conftest.$ac_ext <<_ACEOF | ||
23703 | /* end confdefs.h. */ | ||
23704 | |||
23705 | #include <stdio.h> | ||
23706 | #if HAVE_SYS_TYPES_H | ||
23707 | # include <sys/types.h> | ||
23708 | #endif | ||
23709 | #include <netinet/in.h> | ||
23710 | #include <arpa/nameser.h> | ||
23711 | #include <resolv.h> | ||
23712 | |||
23713 | |||
23714 | int | ||
23715 | main () | ||
23716 | { | ||
23717 | static struct __res_state ac_aggr; | ||
23718 | if (sizeof ac_aggr.retrans) | ||
23719 | return 0; | ||
23720 | ; | ||
23721 | return 0; | ||
23722 | } | ||
23723 | _ACEOF | ||
23724 | rm -f conftest.$ac_objext | ||
23725 | if { (ac_try="$ac_compile" | ||
23726 | case "(($ac_try" in | ||
23727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23728 | *) ac_try_echo=$ac_try;; | ||
23729 | esac | ||
23730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23731 | (eval "$ac_compile") 2>conftest.er1 | ||
23732 | ac_status=$? | ||
23733 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23734 | rm -f conftest.er1 | ||
23735 | cat conftest.err >&5 | ||
23736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23737 | (exit $ac_status); } && { | ||
23738 | test -z "$ac_c_werror_flag" || | ||
23739 | test ! -s conftest.err | ||
23740 | } && test -s conftest.$ac_objext; then | ||
23741 | ac_cv_member_struct___res_state_retrans=yes | ||
23742 | else | ||
23743 | echo "$as_me: failed program was:" >&5 | ||
23744 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23745 | |||
23746 | ac_cv_member_struct___res_state_retrans=no | ||
23747 | fi | ||
23748 | |||
23749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23750 | fi | ||
23751 | |||
23752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23753 | fi | ||
23754 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5 | ||
23755 | echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; } | ||
23756 | if test $ac_cv_member_struct___res_state_retrans = yes; then | ||
23757 | : | ||
23758 | else | ||
23759 | |||
23760 | cat >>confdefs.h <<\_ACEOF | ||
23761 | #define __res_state state | ||
23762 | _ACEOF | ||
23763 | |||
23764 | fi | ||
23765 | |||
23766 | |||
23767 | { echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5 | ||
23768 | echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; } | ||
23769 | if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then | ||
23770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23771 | else | ||
23772 | |||
23773 | cat >conftest.$ac_ext <<_ACEOF | ||
23774 | /* confdefs.h. */ | ||
23775 | _ACEOF | ||
23776 | cat confdefs.h >>conftest.$ac_ext | ||
23777 | cat >>conftest.$ac_ext <<_ACEOF | ||
23778 | /* end confdefs.h. */ | ||
23779 | |||
23780 | #include <sys/types.h> | ||
23781 | #include <sys/socket.h> | ||
23782 | |||
23783 | int | ||
23784 | main () | ||
23785 | { | ||
23786 | struct sockaddr_storage s; s.ss_family = 1; | ||
23787 | ; | ||
23788 | return 0; | ||
23789 | } | ||
23790 | _ACEOF | ||
23791 | rm -f conftest.$ac_objext | ||
23792 | if { (ac_try="$ac_compile" | ||
23793 | case "(($ac_try" in | ||
23794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23795 | *) ac_try_echo=$ac_try;; | ||
23796 | esac | ||
23797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23798 | (eval "$ac_compile") 2>conftest.er1 | ||
23799 | ac_status=$? | ||
23800 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23801 | rm -f conftest.er1 | ||
23802 | cat conftest.err >&5 | ||
23803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23804 | (exit $ac_status); } && { | ||
23805 | test -z "$ac_c_werror_flag" || | ||
23806 | test ! -s conftest.err | ||
23807 | } && test -s conftest.$ac_objext; then | ||
23808 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
23809 | else | ||
23810 | echo "$as_me: failed program was:" >&5 | ||
23811 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23812 | |||
23813 | ac_cv_have_ss_family_in_struct_ss="no" | ||
23814 | fi | ||
23815 | |||
23816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23817 | |||
23818 | fi | ||
23819 | { echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
23820 | echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; } | ||
23821 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
23822 | |||
23823 | cat >>confdefs.h <<\_ACEOF | ||
23824 | #define HAVE_SS_FAMILY_IN_SS 1 | ||
23825 | _ACEOF | ||
23826 | |||
23827 | fi | ||
23828 | |||
23829 | { echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
23830 | echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; } | ||
23831 | if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then | ||
23832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23833 | else | ||
23834 | |||
23835 | cat >conftest.$ac_ext <<_ACEOF | ||
23836 | /* confdefs.h. */ | ||
23837 | _ACEOF | ||
23838 | cat confdefs.h >>conftest.$ac_ext | ||
23839 | cat >>conftest.$ac_ext <<_ACEOF | ||
23840 | /* end confdefs.h. */ | ||
23841 | |||
23842 | #include <sys/types.h> | ||
23843 | #include <sys/socket.h> | ||
23844 | |||
23845 | int | ||
23846 | main () | ||
23847 | { | ||
23848 | struct sockaddr_storage s; s.__ss_family = 1; | ||
23849 | ; | ||
23850 | return 0; | ||
23851 | } | ||
23852 | _ACEOF | ||
23853 | rm -f conftest.$ac_objext | ||
23854 | if { (ac_try="$ac_compile" | ||
23855 | case "(($ac_try" in | ||
23856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23857 | *) ac_try_echo=$ac_try;; | ||
23858 | esac | ||
23859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23860 | (eval "$ac_compile") 2>conftest.er1 | ||
23861 | ac_status=$? | ||
23862 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23863 | rm -f conftest.er1 | ||
23864 | cat conftest.err >&5 | ||
23865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23866 | (exit $ac_status); } && { | ||
23867 | test -z "$ac_c_werror_flag" || | ||
23868 | test ! -s conftest.err | ||
23869 | } && test -s conftest.$ac_objext; then | ||
23870 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
23871 | else | ||
23872 | echo "$as_me: failed program was:" >&5 | ||
23873 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23874 | |||
23875 | ac_cv_have___ss_family_in_struct_ss="no" | ||
23876 | |||
23877 | fi | ||
23878 | |||
23879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23880 | |||
23881 | fi | ||
23882 | { echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
23883 | echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; } | ||
23884 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
23885 | |||
23886 | cat >>confdefs.h <<\_ACEOF | ||
23887 | #define HAVE___SS_FAMILY_IN_SS 1 | ||
23888 | _ACEOF | ||
23889 | |||
23890 | fi | ||
23891 | |||
23892 | { echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5 | ||
23893 | echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6; } | ||
23894 | if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then | ||
23895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23896 | else | ||
23897 | |||
23898 | cat >conftest.$ac_ext <<_ACEOF | ||
23899 | /* confdefs.h. */ | ||
23900 | _ACEOF | ||
23901 | cat confdefs.h >>conftest.$ac_ext | ||
23902 | cat >>conftest.$ac_ext <<_ACEOF | ||
23903 | /* end confdefs.h. */ | ||
23904 | |||
23905 | #include <pwd.h> | ||
23906 | |||
23907 | int | ||
23908 | main () | ||
23909 | { | ||
23910 | struct passwd p; p.pw_class = 0; | ||
23911 | ; | ||
23912 | return 0; | ||
23913 | } | ||
23914 | _ACEOF | ||
23915 | rm -f conftest.$ac_objext | ||
23916 | if { (ac_try="$ac_compile" | ||
23917 | case "(($ac_try" in | ||
23918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23919 | *) ac_try_echo=$ac_try;; | ||
23920 | esac | ||
23921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23922 | (eval "$ac_compile") 2>conftest.er1 | ||
23923 | ac_status=$? | ||
23924 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23925 | rm -f conftest.er1 | ||
23926 | cat conftest.err >&5 | ||
23927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23928 | (exit $ac_status); } && { | ||
23929 | test -z "$ac_c_werror_flag" || | ||
23930 | test ! -s conftest.err | ||
23931 | } && test -s conftest.$ac_objext; then | ||
23932 | ac_cv_have_pw_class_in_struct_passwd="yes" | ||
23933 | else | ||
23934 | echo "$as_me: failed program was:" >&5 | ||
23935 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23936 | |||
23937 | ac_cv_have_pw_class_in_struct_passwd="no" | ||
23938 | |||
23939 | fi | ||
23940 | |||
23941 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23942 | |||
23943 | fi | ||
23944 | { echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5 | ||
23945 | echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6; } | ||
23946 | if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then | ||
23947 | |||
23948 | cat >>confdefs.h <<\_ACEOF | ||
23949 | #define HAVE_PW_CLASS_IN_PASSWD 1 | ||
23950 | _ACEOF | ||
23951 | |||
23952 | fi | ||
23953 | |||
23954 | { echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5 | ||
23955 | echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6; } | ||
23956 | if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then | ||
23957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23958 | else | ||
23959 | |||
23960 | cat >conftest.$ac_ext <<_ACEOF | ||
23961 | /* confdefs.h. */ | ||
23962 | _ACEOF | ||
23963 | cat confdefs.h >>conftest.$ac_ext | ||
23964 | cat >>conftest.$ac_ext <<_ACEOF | ||
23965 | /* end confdefs.h. */ | ||
23966 | |||
23967 | #include <pwd.h> | ||
23968 | |||
23969 | int | ||
23970 | main () | ||
23971 | { | ||
23972 | struct passwd p; p.pw_expire = 0; | ||
23973 | ; | ||
23974 | return 0; | ||
23975 | } | ||
23976 | _ACEOF | ||
23977 | rm -f conftest.$ac_objext | ||
23978 | if { (ac_try="$ac_compile" | ||
23979 | case "(($ac_try" in | ||
23980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23981 | *) ac_try_echo=$ac_try;; | ||
23982 | esac | ||
23983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23984 | (eval "$ac_compile") 2>conftest.er1 | ||
23985 | ac_status=$? | ||
23986 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23987 | rm -f conftest.er1 | ||
23988 | cat conftest.err >&5 | ||
23989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23990 | (exit $ac_status); } && { | ||
23991 | test -z "$ac_c_werror_flag" || | ||
23992 | test ! -s conftest.err | ||
23993 | } && test -s conftest.$ac_objext; then | ||
23994 | ac_cv_have_pw_expire_in_struct_passwd="yes" | ||
23995 | else | ||
23996 | echo "$as_me: failed program was:" >&5 | ||
23997 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23998 | |||
23999 | ac_cv_have_pw_expire_in_struct_passwd="no" | ||
24000 | |||
24001 | fi | ||
24002 | |||
24003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24004 | |||
24005 | fi | ||
24006 | { echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5 | ||
24007 | echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6; } | ||
24008 | if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then | ||
24009 | |||
24010 | cat >>confdefs.h <<\_ACEOF | ||
24011 | #define HAVE_PW_EXPIRE_IN_PASSWD 1 | ||
24012 | _ACEOF | ||
24013 | |||
24014 | fi | ||
24015 | |||
24016 | { echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5 | ||
24017 | echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6; } | ||
24018 | if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then | ||
24019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24020 | else | ||
24021 | |||
24022 | cat >conftest.$ac_ext <<_ACEOF | ||
24023 | /* confdefs.h. */ | ||
24024 | _ACEOF | ||
24025 | cat confdefs.h >>conftest.$ac_ext | ||
24026 | cat >>conftest.$ac_ext <<_ACEOF | ||
24027 | /* end confdefs.h. */ | ||
24028 | |||
24029 | #include <pwd.h> | ||
24030 | |||
24031 | int | ||
24032 | main () | ||
24033 | { | ||
24034 | struct passwd p; p.pw_change = 0; | ||
24035 | ; | ||
24036 | return 0; | ||
24037 | } | ||
24038 | _ACEOF | ||
24039 | rm -f conftest.$ac_objext | ||
24040 | if { (ac_try="$ac_compile" | ||
24041 | case "(($ac_try" in | ||
24042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24043 | *) ac_try_echo=$ac_try;; | ||
24044 | esac | ||
24045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24046 | (eval "$ac_compile") 2>conftest.er1 | ||
24047 | ac_status=$? | ||
24048 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24049 | rm -f conftest.er1 | ||
24050 | cat conftest.err >&5 | ||
24051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24052 | (exit $ac_status); } && { | ||
24053 | test -z "$ac_c_werror_flag" || | ||
24054 | test ! -s conftest.err | ||
24055 | } && test -s conftest.$ac_objext; then | ||
24056 | ac_cv_have_pw_change_in_struct_passwd="yes" | ||
24057 | else | ||
24058 | echo "$as_me: failed program was:" >&5 | ||
24059 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24060 | |||
24061 | ac_cv_have_pw_change_in_struct_passwd="no" | ||
24062 | |||
24063 | fi | ||
24064 | |||
24065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24066 | |||
24067 | fi | ||
24068 | { echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5 | ||
24069 | echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6; } | ||
24070 | if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then | ||
24071 | |||
24072 | cat >>confdefs.h <<\_ACEOF | ||
24073 | #define HAVE_PW_CHANGE_IN_PASSWD 1 | ||
24074 | _ACEOF | ||
24075 | |||
24076 | fi | ||
24077 | |||
24078 | { echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5 | ||
24079 | echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; } | ||
24080 | if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then | ||
24081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24082 | else | ||
24083 | |||
24084 | cat >conftest.$ac_ext <<_ACEOF | ||
24085 | |||
24086 | #include <sys/types.h> | ||
24087 | #include <sys/socket.h> | ||
24088 | #include <sys/uio.h> | ||
24089 | int main() { | ||
24090 | #ifdef msg_accrights | ||
24091 | #error "msg_accrights is a macro" | ||
24092 | exit(1); | ||
24093 | #endif | ||
24094 | struct msghdr m; | ||
24095 | m.msg_accrights = 0; | ||
24096 | exit(0); | ||
24097 | } | ||
24098 | |||
24099 | _ACEOF | ||
24100 | rm -f conftest.$ac_objext | ||
24101 | if { (ac_try="$ac_compile" | ||
24102 | case "(($ac_try" in | ||
24103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24104 | *) ac_try_echo=$ac_try;; | ||
24105 | esac | ||
24106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24107 | (eval "$ac_compile") 2>conftest.er1 | ||
24108 | ac_status=$? | ||
24109 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24110 | rm -f conftest.er1 | ||
24111 | cat conftest.err >&5 | ||
24112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24113 | (exit $ac_status); } && { | ||
24114 | test -z "$ac_c_werror_flag" || | ||
24115 | test ! -s conftest.err | ||
24116 | } && test -s conftest.$ac_objext; then | ||
24117 | ac_cv_have_accrights_in_msghdr="yes" | ||
24118 | else | ||
24119 | echo "$as_me: failed program was:" >&5 | ||
24120 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24121 | |||
24122 | ac_cv_have_accrights_in_msghdr="no" | ||
24123 | |||
24124 | fi | ||
24125 | |||
24126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24127 | |||
24128 | fi | ||
24129 | { echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
24130 | echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; } | ||
24131 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
24132 | |||
24133 | cat >>confdefs.h <<\_ACEOF | ||
24134 | #define HAVE_ACCRIGHTS_IN_MSGHDR 1 | ||
24135 | _ACEOF | ||
24136 | |||
24137 | fi | ||
24138 | |||
24139 | { echo "$as_me:$LINENO: checking if f_fsid has val members" >&5 | ||
24140 | echo $ECHO_N "checking if f_fsid has val members... $ECHO_C" >&6; } | ||
24141 | cat >conftest.$ac_ext <<_ACEOF | ||
24142 | /* confdefs.h. */ | ||
24143 | _ACEOF | ||
24144 | cat confdefs.h >>conftest.$ac_ext | ||
24145 | cat >>conftest.$ac_ext <<_ACEOF | ||
24146 | /* end confdefs.h. */ | ||
24147 | |||
24148 | #include <sys/types.h> | ||
24149 | #include <sys/statvfs.h> | ||
24150 | int | ||
24151 | main () | ||
24152 | { | ||
24153 | struct fsid_t t; t.val[0] = 0; | ||
24154 | ; | ||
24155 | return 0; | ||
24156 | } | ||
24157 | _ACEOF | ||
24158 | rm -f conftest.$ac_objext | ||
24159 | if { (ac_try="$ac_compile" | ||
24160 | case "(($ac_try" in | ||
24161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24162 | *) ac_try_echo=$ac_try;; | ||
24163 | esac | ||
24164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24165 | (eval "$ac_compile") 2>conftest.er1 | ||
24166 | ac_status=$? | ||
24167 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24168 | rm -f conftest.er1 | ||
24169 | cat conftest.err >&5 | ||
24170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24171 | (exit $ac_status); } && { | ||
24172 | test -z "$ac_c_werror_flag" || | ||
24173 | test ! -s conftest.err | ||
24174 | } && test -s conftest.$ac_objext; then | ||
24175 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
24176 | echo "${ECHO_T}yes" >&6; } | ||
24177 | |||
24178 | cat >>confdefs.h <<\_ACEOF | ||
24179 | #define FSID_HAS_VAL 1 | ||
24180 | _ACEOF | ||
24181 | |||
24182 | else | ||
24183 | echo "$as_me: failed program was:" >&5 | ||
24184 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24185 | |||
24186 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24187 | echo "${ECHO_T}no" >&6; } | ||
24188 | |||
24189 | fi | ||
24190 | |||
24191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24192 | |||
24193 | { echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5 | ||
24194 | echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; } | ||
24195 | if test "${ac_cv_have_control_in_msghdr+set}" = set; then | ||
24196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24197 | else | ||
24198 | |||
24199 | cat >conftest.$ac_ext <<_ACEOF | ||
24200 | |||
24201 | #include <sys/types.h> | ||
24202 | #include <sys/socket.h> | ||
24203 | #include <sys/uio.h> | ||
24204 | int main() { | ||
24205 | #ifdef msg_control | ||
24206 | #error "msg_control is a macro" | ||
24207 | exit(1); | ||
24208 | #endif | ||
24209 | struct msghdr m; | ||
24210 | m.msg_control = 0; | ||
24211 | exit(0); | ||
24212 | } | ||
24213 | |||
24214 | _ACEOF | ||
24215 | rm -f conftest.$ac_objext | ||
24216 | if { (ac_try="$ac_compile" | ||
24217 | case "(($ac_try" in | ||
24218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24219 | *) ac_try_echo=$ac_try;; | ||
24220 | esac | ||
24221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24222 | (eval "$ac_compile") 2>conftest.er1 | ||
24223 | ac_status=$? | ||
24224 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24225 | rm -f conftest.er1 | ||
24226 | cat conftest.err >&5 | ||
24227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24228 | (exit $ac_status); } && { | ||
24229 | test -z "$ac_c_werror_flag" || | ||
24230 | test ! -s conftest.err | ||
24231 | } && test -s conftest.$ac_objext; then | ||
24232 | ac_cv_have_control_in_msghdr="yes" | ||
24233 | else | ||
24234 | echo "$as_me: failed program was:" >&5 | ||
24235 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24236 | |||
24237 | ac_cv_have_control_in_msghdr="no" | ||
24238 | |||
24239 | fi | ||
24240 | |||
24241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24242 | |||
24243 | fi | ||
24244 | { echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5 | ||
24245 | echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; } | ||
24246 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
24247 | |||
24248 | cat >>confdefs.h <<\_ACEOF | ||
24249 | #define HAVE_CONTROL_IN_MSGHDR 1 | ||
24250 | _ACEOF | ||
24251 | |||
24252 | fi | ||
24253 | |||
24254 | { echo "$as_me:$LINENO: checking if libc defines __progname" >&5 | ||
24255 | echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; } | ||
24256 | if test "${ac_cv_libc_defines___progname+set}" = set; then | ||
24257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24258 | else | ||
24259 | |||
24260 | cat >conftest.$ac_ext <<_ACEOF | ||
24261 | /* confdefs.h. */ | ||
24262 | _ACEOF | ||
24263 | cat confdefs.h >>conftest.$ac_ext | ||
24264 | cat >>conftest.$ac_ext <<_ACEOF | ||
24265 | /* end confdefs.h. */ | ||
24266 | |||
24267 | int | ||
24268 | main () | ||
24269 | { | ||
24270 | extern char *__progname; printf("%s", __progname); | ||
24271 | ; | ||
24272 | return 0; | ||
24273 | } | ||
24274 | _ACEOF | ||
24275 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24276 | if { (ac_try="$ac_link" | ||
24277 | case "(($ac_try" in | ||
24278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24279 | *) ac_try_echo=$ac_try;; | ||
24280 | esac | ||
24281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24282 | (eval "$ac_link") 2>conftest.er1 | ||
24283 | ac_status=$? | ||
24284 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24285 | rm -f conftest.er1 | ||
24286 | cat conftest.err >&5 | ||
24287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24288 | (exit $ac_status); } && { | ||
24289 | test -z "$ac_c_werror_flag" || | ||
24290 | test ! -s conftest.err | ||
24291 | } && test -s conftest$ac_exeext && | ||
24292 | $as_test_x conftest$ac_exeext; then | ||
24293 | ac_cv_libc_defines___progname="yes" | ||
24294 | else | ||
24295 | echo "$as_me: failed program was:" >&5 | ||
24296 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24297 | |||
24298 | ac_cv_libc_defines___progname="no" | ||
24299 | |||
24300 | fi | ||
24301 | |||
24302 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
24303 | conftest$ac_exeext conftest.$ac_ext | ||
24304 | |||
24305 | fi | ||
24306 | { echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5 | ||
24307 | echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; } | ||
24308 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
24309 | |||
24310 | cat >>confdefs.h <<\_ACEOF | ||
24311 | #define HAVE___PROGNAME 1 | ||
24312 | _ACEOF | ||
24313 | |||
24314 | fi | ||
24315 | |||
24316 | { echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5 | ||
24317 | echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; } | ||
24318 | if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then | ||
24319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24320 | else | ||
24321 | |||
24322 | cat >conftest.$ac_ext <<_ACEOF | ||
24323 | /* confdefs.h. */ | ||
24324 | _ACEOF | ||
24325 | cat confdefs.h >>conftest.$ac_ext | ||
24326 | cat >>conftest.$ac_ext <<_ACEOF | ||
24327 | /* end confdefs.h. */ | ||
24328 | |||
24329 | #include <stdio.h> | ||
24330 | |||
24331 | int | ||
24332 | main () | ||
24333 | { | ||
24334 | printf("%s", __FUNCTION__); | ||
24335 | ; | ||
24336 | return 0; | ||
24337 | } | ||
24338 | _ACEOF | ||
24339 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24340 | if { (ac_try="$ac_link" | ||
24341 | case "(($ac_try" in | ||
24342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24343 | *) ac_try_echo=$ac_try;; | ||
24344 | esac | ||
24345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24346 | (eval "$ac_link") 2>conftest.er1 | ||
24347 | ac_status=$? | ||
24348 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24349 | rm -f conftest.er1 | ||
24350 | cat conftest.err >&5 | ||
24351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24352 | (exit $ac_status); } && { | ||
24353 | test -z "$ac_c_werror_flag" || | ||
24354 | test ! -s conftest.err | ||
24355 | } && test -s conftest$ac_exeext && | ||
24356 | $as_test_x conftest$ac_exeext; then | ||
24357 | ac_cv_cc_implements___FUNCTION__="yes" | ||
24358 | else | ||
24359 | echo "$as_me: failed program was:" >&5 | ||
24360 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24361 | |||
24362 | ac_cv_cc_implements___FUNCTION__="no" | ||
24363 | |||
24364 | fi | ||
24365 | |||
24366 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
24367 | conftest$ac_exeext conftest.$ac_ext | ||
24368 | |||
24369 | fi | ||
24370 | { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
24371 | echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; } | ||
24372 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
24373 | |||
24374 | cat >>confdefs.h <<\_ACEOF | ||
24375 | #define HAVE___FUNCTION__ 1 | ||
24376 | _ACEOF | ||
24377 | |||
24378 | fi | ||
24379 | |||
24380 | { echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5 | ||
24381 | echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; } | ||
24382 | if test "${ac_cv_cc_implements___func__+set}" = set; then | ||
24383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24384 | else | ||
24385 | |||
24386 | cat >conftest.$ac_ext <<_ACEOF | ||
24387 | /* confdefs.h. */ | ||
24388 | _ACEOF | ||
24389 | cat confdefs.h >>conftest.$ac_ext | ||
24390 | cat >>conftest.$ac_ext <<_ACEOF | ||
24391 | /* end confdefs.h. */ | ||
24392 | |||
24393 | #include <stdio.h> | ||
24394 | |||
24395 | int | ||
24396 | main () | ||
24397 | { | ||
24398 | printf("%s", __func__); | ||
24399 | ; | ||
24400 | return 0; | ||
24401 | } | ||
24402 | _ACEOF | ||
24403 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24404 | if { (ac_try="$ac_link" | ||
24405 | case "(($ac_try" in | ||
24406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24407 | *) ac_try_echo=$ac_try;; | ||
24408 | esac | ||
24409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24410 | (eval "$ac_link") 2>conftest.er1 | ||
24411 | ac_status=$? | ||
24412 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24413 | rm -f conftest.er1 | ||
24414 | cat conftest.err >&5 | ||
24415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24416 | (exit $ac_status); } && { | ||
24417 | test -z "$ac_c_werror_flag" || | ||
24418 | test ! -s conftest.err | ||
24419 | } && test -s conftest$ac_exeext && | ||
24420 | $as_test_x conftest$ac_exeext; then | ||
24421 | ac_cv_cc_implements___func__="yes" | ||
24422 | else | ||
24423 | echo "$as_me: failed program was:" >&5 | ||
24424 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24425 | |||
24426 | ac_cv_cc_implements___func__="no" | ||
24427 | |||
24428 | fi | ||
24429 | |||
24430 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
24431 | conftest$ac_exeext conftest.$ac_ext | ||
24432 | |||
24433 | fi | ||
24434 | { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5 | ||
24435 | echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; } | ||
24436 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
24437 | |||
24438 | cat >>confdefs.h <<\_ACEOF | ||
24439 | #define HAVE___func__ 1 | ||
24440 | _ACEOF | ||
24441 | |||
24442 | fi | ||
24443 | |||
24444 | { echo "$as_me:$LINENO: checking whether va_copy exists" >&5 | ||
24445 | echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; } | ||
24446 | if test "${ac_cv_have_va_copy+set}" = set; then | ||
24447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24448 | else | ||
24449 | |||
24450 | cat >conftest.$ac_ext <<_ACEOF | ||
24451 | /* confdefs.h. */ | ||
24452 | _ACEOF | ||
24453 | cat confdefs.h >>conftest.$ac_ext | ||
24454 | cat >>conftest.$ac_ext <<_ACEOF | ||
24455 | /* end confdefs.h. */ | ||
24456 | #include <stdarg.h> | ||
24457 | va_list x,y; | ||
24458 | int | ||
24459 | main () | ||
24460 | { | ||
24461 | va_copy(x,y); | ||
24462 | ; | ||
24463 | return 0; | ||
24464 | } | ||
24465 | _ACEOF | ||
24466 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24467 | if { (ac_try="$ac_link" | ||
24468 | case "(($ac_try" in | ||
24469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24470 | *) ac_try_echo=$ac_try;; | ||
24471 | esac | ||
24472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24473 | (eval "$ac_link") 2>conftest.er1 | ||
24474 | ac_status=$? | ||
24475 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24476 | rm -f conftest.er1 | ||
24477 | cat conftest.err >&5 | ||
24478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24479 | (exit $ac_status); } && { | ||
24480 | test -z "$ac_c_werror_flag" || | ||
24481 | test ! -s conftest.err | ||
24482 | } && test -s conftest$ac_exeext && | ||
24483 | $as_test_x conftest$ac_exeext; then | ||
24484 | ac_cv_have_va_copy="yes" | ||
24485 | else | ||
24486 | echo "$as_me: failed program was:" >&5 | ||
24487 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24488 | |||
24489 | ac_cv_have_va_copy="no" | ||
24490 | |||
24491 | fi | ||
24492 | |||
24493 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
24494 | conftest$ac_exeext conftest.$ac_ext | ||
24495 | |||
24496 | fi | ||
24497 | { echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5 | ||
24498 | echo "${ECHO_T}$ac_cv_have_va_copy" >&6; } | ||
24499 | if test "x$ac_cv_have_va_copy" = "xyes" ; then | ||
24500 | |||
24501 | cat >>confdefs.h <<\_ACEOF | ||
24502 | #define HAVE_VA_COPY 1 | ||
24503 | _ACEOF | ||
24504 | |||
24505 | fi | ||
24506 | |||
24507 | { echo "$as_me:$LINENO: checking whether __va_copy exists" >&5 | ||
24508 | echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; } | ||
24509 | if test "${ac_cv_have___va_copy+set}" = set; then | ||
24510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24511 | else | ||
24512 | |||
24513 | cat >conftest.$ac_ext <<_ACEOF | ||
24514 | /* confdefs.h. */ | ||
24515 | _ACEOF | ||
24516 | cat confdefs.h >>conftest.$ac_ext | ||
24517 | cat >>conftest.$ac_ext <<_ACEOF | ||
24518 | /* end confdefs.h. */ | ||
24519 | #include <stdarg.h> | ||
24520 | va_list x,y; | ||
24521 | int | ||
24522 | main () | ||
24523 | { | ||
24524 | __va_copy(x,y); | ||
24525 | ; | ||
24526 | return 0; | ||
24527 | } | ||
24528 | _ACEOF | ||
24529 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24530 | if { (ac_try="$ac_link" | ||
24531 | case "(($ac_try" in | ||
24532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24533 | *) ac_try_echo=$ac_try;; | ||
24534 | esac | ||
24535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24536 | (eval "$ac_link") 2>conftest.er1 | ||
24537 | ac_status=$? | ||
24538 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24539 | rm -f conftest.er1 | ||
24540 | cat conftest.err >&5 | ||
24541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24542 | (exit $ac_status); } && { | ||
24543 | test -z "$ac_c_werror_flag" || | ||
24544 | test ! -s conftest.err | ||
24545 | } && test -s conftest$ac_exeext && | ||
24546 | $as_test_x conftest$ac_exeext; then | ||
24547 | ac_cv_have___va_copy="yes" | ||
24548 | else | ||
24549 | echo "$as_me: failed program was:" >&5 | ||
24550 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24551 | |||
24552 | ac_cv_have___va_copy="no" | ||
24553 | |||
24554 | fi | ||
24555 | |||
24556 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
24557 | conftest$ac_exeext conftest.$ac_ext | ||
24558 | |||
24559 | fi | ||
24560 | { echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5 | ||
24561 | echo "${ECHO_T}$ac_cv_have___va_copy" >&6; } | ||
24562 | if test "x$ac_cv_have___va_copy" = "xyes" ; then | ||
24563 | |||
24564 | cat >>confdefs.h <<\_ACEOF | ||
24565 | #define HAVE___VA_COPY 1 | ||
24566 | _ACEOF | ||
24567 | |||
24568 | fi | ||
24569 | |||
24570 | { echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5 | ||
24571 | echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; } | ||
24572 | if test "${ac_cv_have_getopt_optreset+set}" = set; then | ||
24573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24574 | else | ||
24575 | |||
24576 | cat >conftest.$ac_ext <<_ACEOF | ||
24577 | /* confdefs.h. */ | ||
24578 | _ACEOF | ||
24579 | cat confdefs.h >>conftest.$ac_ext | ||
24580 | cat >>conftest.$ac_ext <<_ACEOF | ||
24581 | /* end confdefs.h. */ | ||
24582 | |||
24583 | #include <getopt.h> | ||
24584 | |||
24585 | int | ||
24586 | main () | ||
24587 | { | ||
24588 | extern int optreset; optreset = 0; | ||
24589 | ; | ||
24590 | return 0; | ||
24591 | } | ||
24592 | _ACEOF | ||
24593 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24594 | if { (ac_try="$ac_link" | ||
24595 | case "(($ac_try" in | ||
24596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24597 | *) ac_try_echo=$ac_try;; | ||
24598 | esac | ||
24599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24600 | (eval "$ac_link") 2>conftest.er1 | ||
24601 | ac_status=$? | ||
24602 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24603 | rm -f conftest.er1 | ||
24604 | cat conftest.err >&5 | ||
24605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24606 | (exit $ac_status); } && { | ||
24607 | test -z "$ac_c_werror_flag" || | ||
24608 | test ! -s conftest.err | ||
24609 | } && test -s conftest$ac_exeext && | ||
24610 | $as_test_x conftest$ac_exeext; then | ||
24611 | ac_cv_have_getopt_optreset="yes" | ||
24612 | else | ||
24613 | echo "$as_me: failed program was:" >&5 | ||
24614 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24615 | |||
24616 | ac_cv_have_getopt_optreset="no" | ||
24617 | |||
24618 | fi | ||
24619 | |||
24620 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
24621 | conftest$ac_exeext conftest.$ac_ext | ||
24622 | |||
24623 | fi | ||
24624 | { echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5 | ||
24625 | echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; } | ||
24626 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
24627 | |||
24628 | cat >>confdefs.h <<\_ACEOF | ||
24629 | #define HAVE_GETOPT_OPTRESET 1 | ||
24630 | _ACEOF | ||
24631 | |||
24632 | fi | ||
24633 | |||
24634 | { echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5 | ||
24635 | echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; } | ||
24636 | if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then | ||
24637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24638 | else | ||
24639 | |||
24640 | cat >conftest.$ac_ext <<_ACEOF | ||
24641 | /* confdefs.h. */ | ||
24642 | _ACEOF | ||
24643 | cat confdefs.h >>conftest.$ac_ext | ||
24644 | cat >>conftest.$ac_ext <<_ACEOF | ||
24645 | /* end confdefs.h. */ | ||
24646 | |||
24647 | int | ||
24648 | main () | ||
24649 | { | ||
24650 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
24651 | ; | ||
24652 | return 0; | ||
24653 | } | ||
24654 | _ACEOF | ||
24655 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24656 | if { (ac_try="$ac_link" | ||
24657 | case "(($ac_try" in | ||
24658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24659 | *) ac_try_echo=$ac_try;; | ||
24660 | esac | ||
24661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24662 | (eval "$ac_link") 2>conftest.er1 | ||
24663 | ac_status=$? | ||
24664 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24665 | rm -f conftest.er1 | ||
24666 | cat conftest.err >&5 | ||
24667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24668 | (exit $ac_status); } && { | ||
24669 | test -z "$ac_c_werror_flag" || | ||
24670 | test ! -s conftest.err | ||
24671 | } && test -s conftest$ac_exeext && | ||
24672 | $as_test_x conftest$ac_exeext; then | ||
24673 | ac_cv_libc_defines_sys_errlist="yes" | ||
24674 | else | ||
24675 | echo "$as_me: failed program was:" >&5 | ||
24676 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24677 | |||
24678 | ac_cv_libc_defines_sys_errlist="no" | ||
24679 | |||
24680 | fi | ||
24681 | |||
24682 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
24683 | conftest$ac_exeext conftest.$ac_ext | ||
24684 | |||
24685 | fi | ||
24686 | { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
24687 | echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; } | ||
24688 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
24689 | |||
24690 | cat >>confdefs.h <<\_ACEOF | ||
24691 | #define HAVE_SYS_ERRLIST 1 | ||
24692 | _ACEOF | ||
24693 | |||
24694 | fi | ||
24695 | |||
24696 | |||
24697 | { echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5 | ||
24698 | echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; } | ||
24699 | if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then | ||
24700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24701 | else | ||
24702 | |||
24703 | cat >conftest.$ac_ext <<_ACEOF | ||
24704 | /* confdefs.h. */ | ||
24705 | _ACEOF | ||
24706 | cat confdefs.h >>conftest.$ac_ext | ||
24707 | cat >>conftest.$ac_ext <<_ACEOF | ||
24708 | /* end confdefs.h. */ | ||
24709 | |||
24710 | int | ||
24711 | main () | ||
24712 | { | ||
24713 | extern int sys_nerr; printf("%i", sys_nerr); | ||
24714 | ; | ||
24715 | return 0; | ||
24716 | } | ||
24717 | _ACEOF | ||
24718 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24719 | if { (ac_try="$ac_link" | ||
24720 | case "(($ac_try" in | ||
24721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24722 | *) ac_try_echo=$ac_try;; | ||
24723 | esac | ||
24724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24725 | (eval "$ac_link") 2>conftest.er1 | ||
24726 | ac_status=$? | ||
24727 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24728 | rm -f conftest.er1 | ||
24729 | cat conftest.err >&5 | ||
24730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24731 | (exit $ac_status); } && { | ||
24732 | test -z "$ac_c_werror_flag" || | ||
24733 | test ! -s conftest.err | ||
24734 | } && test -s conftest$ac_exeext && | ||
24735 | $as_test_x conftest$ac_exeext; then | ||
24736 | ac_cv_libc_defines_sys_nerr="yes" | ||
24737 | else | ||
24738 | echo "$as_me: failed program was:" >&5 | ||
24739 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24740 | |||
24741 | ac_cv_libc_defines_sys_nerr="no" | ||
24742 | |||
24743 | fi | ||
24744 | |||
24745 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
24746 | conftest$ac_exeext conftest.$ac_ext | ||
24747 | |||
24748 | fi | ||
24749 | { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
24750 | echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; } | ||
24751 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
24752 | |||
24753 | cat >>confdefs.h <<\_ACEOF | ||
24754 | #define HAVE_SYS_NERR 1 | ||
24755 | _ACEOF | ||
24756 | |||
24757 | fi | ||
24758 | |||
24759 | SCARD_MSG="no" | ||
24760 | # Check whether user wants sectok support | ||
24761 | |||
24762 | # Check whether --with-sectok was given. | ||
24763 | if test "${with_sectok+set}" = set; then | ||
24764 | withval=$with_sectok; | ||
24765 | if test "x$withval" != "xno" ; then | ||
24766 | if test "x$withval" != "xyes" ; then | ||
24767 | CPPFLAGS="$CPPFLAGS -I${withval}" | ||
24768 | LDFLAGS="$LDFLAGS -L${withval}" | ||
24769 | if test ! -z "$need_dash_r" ; then | ||
24770 | LDFLAGS="$LDFLAGS -R${withval}" | ||
24771 | fi | ||
24772 | if test ! -z "$blibpath" ; then | ||
24773 | blibpath="$blibpath:${withval}" | ||
24774 | fi | ||
24775 | fi | ||
24776 | |||
24777 | for ac_header in sectok.h | ||
24778 | do | ||
24779 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
24780 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24781 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
24782 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
24783 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24785 | fi | ||
24786 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
24787 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
24788 | echo "${ECHO_T}$ac_res" >&6; } | ||
24789 | else | ||
24790 | # Is the header compilable? | ||
24791 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
24792 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
24793 | cat >conftest.$ac_ext <<_ACEOF | ||
24794 | /* confdefs.h. */ | ||
24795 | _ACEOF | ||
24796 | cat confdefs.h >>conftest.$ac_ext | ||
24797 | cat >>conftest.$ac_ext <<_ACEOF | ||
24798 | /* end confdefs.h. */ | ||
24799 | $ac_includes_default | ||
24800 | #include <$ac_header> | ||
24801 | _ACEOF | ||
24802 | rm -f conftest.$ac_objext | ||
24803 | if { (ac_try="$ac_compile" | ||
24804 | case "(($ac_try" in | ||
24805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24806 | *) ac_try_echo=$ac_try;; | ||
24807 | esac | ||
24808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24809 | (eval "$ac_compile") 2>conftest.er1 | ||
24810 | ac_status=$? | ||
24811 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24812 | rm -f conftest.er1 | ||
24813 | cat conftest.err >&5 | ||
24814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24815 | (exit $ac_status); } && { | ||
24816 | test -z "$ac_c_werror_flag" || | ||
24817 | test ! -s conftest.err | ||
24818 | } && test -s conftest.$ac_objext; then | ||
24819 | ac_header_compiler=yes | ||
24820 | else | ||
24821 | echo "$as_me: failed program was:" >&5 | ||
24822 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24823 | |||
24824 | ac_header_compiler=no | ||
24825 | fi | ||
24826 | |||
24827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24828 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
24829 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
24830 | |||
24831 | # Is the header present? | ||
24832 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
24833 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
24834 | cat >conftest.$ac_ext <<_ACEOF | ||
24835 | /* confdefs.h. */ | ||
24836 | _ACEOF | ||
24837 | cat confdefs.h >>conftest.$ac_ext | ||
24838 | cat >>conftest.$ac_ext <<_ACEOF | ||
24839 | /* end confdefs.h. */ | ||
24840 | #include <$ac_header> | ||
24841 | _ACEOF | ||
24842 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
24843 | case "(($ac_try" in | ||
24844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24845 | *) ac_try_echo=$ac_try;; | ||
24846 | esac | ||
24847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24848 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
24849 | ac_status=$? | ||
24850 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24851 | rm -f conftest.er1 | ||
24852 | cat conftest.err >&5 | ||
24853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24854 | (exit $ac_status); } >/dev/null && { | ||
24855 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
24856 | test ! -s conftest.err | ||
24857 | }; then | ||
24858 | ac_header_preproc=yes | ||
24859 | else | ||
24860 | echo "$as_me: failed program was:" >&5 | ||
24861 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24862 | |||
24863 | ac_header_preproc=no | ||
24864 | fi | ||
24865 | |||
24866 | rm -f conftest.err conftest.$ac_ext | ||
24867 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
24868 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
24869 | |||
24870 | # So? What about this header? | ||
24871 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
24872 | yes:no: ) | ||
24873 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
24874 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
24875 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
24876 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
24877 | ac_header_preproc=yes | ||
24878 | ;; | ||
24879 | no:yes:* ) | ||
24880 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
24881 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
24882 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
24883 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
24884 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
24885 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
24886 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
24887 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
24888 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
24889 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
24890 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
24891 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
24892 | ( cat <<\_ASBOX | ||
24893 | ## ------------------------------------------- ## | ||
24894 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
24895 | ## ------------------------------------------- ## | ||
24896 | _ASBOX | ||
24897 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
24898 | ;; | ||
24899 | esac | ||
24900 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
24901 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
24902 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24904 | else | ||
24905 | eval "$as_ac_Header=\$ac_header_preproc" | ||
24906 | fi | ||
24907 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
24908 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
24909 | echo "${ECHO_T}$ac_res" >&6; } | ||
24910 | |||
24911 | fi | ||
24912 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
24913 | cat >>confdefs.h <<_ACEOF | ||
24914 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
24915 | _ACEOF | ||
24916 | |||
24917 | fi | ||
24918 | |||
24919 | done | ||
24920 | |||
24921 | if test "$ac_cv_header_sectok_h" != yes; then | ||
24922 | { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5 | ||
24923 | echo "$as_me: error: Can't find sectok.h" >&2;} | ||
24924 | { (exit 1); exit 1; }; } | ||
24925 | fi | ||
24926 | |||
24927 | { echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5 | ||
24928 | echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6; } | ||
24929 | if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then | ||
24930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24931 | else | ||
24932 | ac_check_lib_save_LIBS=$LIBS | ||
24933 | LIBS="-lsectok $LIBS" | ||
24934 | cat >conftest.$ac_ext <<_ACEOF | ||
24935 | /* confdefs.h. */ | ||
24936 | _ACEOF | ||
24937 | cat confdefs.h >>conftest.$ac_ext | ||
24938 | cat >>conftest.$ac_ext <<_ACEOF | ||
24939 | /* end confdefs.h. */ | ||
24940 | |||
24941 | /* Override any GCC internal prototype to avoid an error. | ||
24942 | Use char because int might match the return type of a GCC | ||
24943 | builtin and then its argument prototype would still apply. */ | ||
24944 | #ifdef __cplusplus | ||
24945 | extern "C" | ||
24946 | #endif | ||
24947 | char sectok_open (); | ||
24948 | int | ||
24949 | main () | ||
24950 | { | ||
24951 | return sectok_open (); | ||
24952 | ; | ||
24953 | return 0; | ||
24954 | } | ||
24955 | _ACEOF | ||
24956 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
24957 | if { (ac_try="$ac_link" | ||
24958 | case "(($ac_try" in | ||
24959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24960 | *) ac_try_echo=$ac_try;; | ||
24961 | esac | ||
24962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24963 | (eval "$ac_link") 2>conftest.er1 | ||
24964 | ac_status=$? | ||
24965 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24966 | rm -f conftest.er1 | ||
24967 | cat conftest.err >&5 | ||
24968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24969 | (exit $ac_status); } && { | ||
24970 | test -z "$ac_c_werror_flag" || | ||
24971 | test ! -s conftest.err | ||
24972 | } && test -s conftest$ac_exeext && | ||
24973 | $as_test_x conftest$ac_exeext; then | ||
24974 | ac_cv_lib_sectok_sectok_open=yes | ||
24975 | else | ||
24976 | echo "$as_me: failed program was:" >&5 | ||
24977 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24978 | |||
24979 | ac_cv_lib_sectok_sectok_open=no | ||
24980 | fi | ||
24981 | |||
24982 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
24983 | conftest$ac_exeext conftest.$ac_ext | ||
24984 | LIBS=$ac_check_lib_save_LIBS | ||
24985 | fi | ||
24986 | { echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5 | ||
24987 | echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6; } | ||
24988 | if test $ac_cv_lib_sectok_sectok_open = yes; then | ||
24989 | cat >>confdefs.h <<_ACEOF | ||
24990 | #define HAVE_LIBSECTOK 1 | ||
24991 | _ACEOF | ||
24992 | |||
24993 | LIBS="-lsectok $LIBS" | ||
24994 | |||
24995 | fi | ||
24996 | |||
24997 | if test "$ac_cv_lib_sectok_sectok_open" != yes; then | ||
24998 | { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5 | ||
24999 | echo "$as_me: error: Can't find libsectok" >&2;} | ||
25000 | { (exit 1); exit 1; }; } | ||
25001 | fi | ||
25002 | |||
25003 | cat >>confdefs.h <<\_ACEOF | ||
25004 | #define SMARTCARD 1 | ||
25005 | _ACEOF | ||
25006 | |||
25007 | |||
25008 | cat >>confdefs.h <<\_ACEOF | ||
25009 | #define USE_SECTOK 1 | ||
25010 | _ACEOF | ||
25011 | |||
25012 | SCARD_MSG="yes, using sectok" | ||
25013 | fi | ||
25014 | |||
25015 | |||
25016 | fi | ||
25017 | |||
25018 | |||
25019 | # Check whether user wants OpenSC support | ||
25020 | OPENSC_CONFIG="no" | ||
25021 | |||
25022 | # Check whether --with-opensc was given. | ||
25023 | if test "${with_opensc+set}" = set; then | ||
25024 | withval=$with_opensc; | ||
25025 | if test "x$withval" != "xno" ; then | ||
25026 | if test "x$withval" != "xyes" ; then | ||
25027 | OPENSC_CONFIG=$withval/bin/opensc-config | ||
25028 | else | ||
25029 | # Extract the first word of "opensc-config", so it can be a program name with args. | ||
25030 | set dummy opensc-config; ac_word=$2 | ||
25031 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
25032 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
25033 | if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then | ||
25034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25035 | else | ||
25036 | case $OPENSC_CONFIG in | ||
25037 | [\\/]* | ?:[\\/]*) | ||
25038 | ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path. | ||
25039 | ;; | ||
25040 | *) | ||
25041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
25042 | for as_dir in $PATH | ||
25043 | do | ||
25044 | IFS=$as_save_IFS | ||
25045 | test -z "$as_dir" && as_dir=. | ||
25046 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
25047 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
25048 | ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
25049 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
25050 | break 2 | ||
25051 | fi | ||
25052 | done | ||
25053 | done | ||
25054 | IFS=$as_save_IFS | ||
25055 | |||
25056 | test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no" | ||
25057 | ;; | ||
25058 | esac | ||
25059 | fi | ||
25060 | OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG | ||
25061 | if test -n "$OPENSC_CONFIG"; then | ||
25062 | { echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5 | ||
25063 | echo "${ECHO_T}$OPENSC_CONFIG" >&6; } | ||
25064 | else | ||
25065 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25066 | echo "${ECHO_T}no" >&6; } | ||
25067 | fi | ||
25068 | |||
25069 | |||
25070 | fi | ||
25071 | if test "$OPENSC_CONFIG" != "no"; then | ||
25072 | LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags` | ||
25073 | LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs` | ||
25074 | CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS" | ||
25075 | LIBS="$LIBS $LIBOPENSC_LIBS" | ||
25076 | cat >>confdefs.h <<\_ACEOF | ||
25077 | #define SMARTCARD 1 | ||
25078 | _ACEOF | ||
25079 | |||
25080 | |||
25081 | cat >>confdefs.h <<\_ACEOF | ||
25082 | #define USE_OPENSC 1 | ||
25083 | _ACEOF | ||
25084 | |||
25085 | SCARD_MSG="yes, using OpenSC" | ||
25086 | fi | ||
25087 | fi | ||
25088 | |||
25089 | |||
25090 | fi | ||
25091 | |||
25092 | |||
25093 | # Check libraries needed by DNS fingerprint support | ||
25094 | { echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5 | ||
25095 | echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; } | ||
25096 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
25097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25098 | else | ||
25099 | ac_func_search_save_LIBS=$LIBS | ||
25100 | cat >conftest.$ac_ext <<_ACEOF | ||
25101 | /* confdefs.h. */ | ||
25102 | _ACEOF | ||
25103 | cat confdefs.h >>conftest.$ac_ext | ||
25104 | cat >>conftest.$ac_ext <<_ACEOF | ||
25105 | /* end confdefs.h. */ | ||
25106 | |||
25107 | /* Override any GCC internal prototype to avoid an error. | ||
25108 | Use char because int might match the return type of a GCC | ||
25109 | builtin and then its argument prototype would still apply. */ | ||
25110 | #ifdef __cplusplus | ||
25111 | extern "C" | ||
25112 | #endif | ||
25113 | char getrrsetbyname (); | ||
25114 | int | ||
25115 | main () | ||
25116 | { | ||
25117 | return getrrsetbyname (); | ||
25118 | ; | ||
25119 | return 0; | ||
25120 | } | ||
25121 | _ACEOF | ||
25122 | for ac_lib in '' resolv; do | ||
25123 | if test -z "$ac_lib"; then | ||
25124 | ac_res="none required" | ||
25125 | else | ||
25126 | ac_res=-l$ac_lib | ||
25127 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
25128 | fi | ||
25129 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25130 | if { (ac_try="$ac_link" | ||
25131 | case "(($ac_try" in | ||
25132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25133 | *) ac_try_echo=$ac_try;; | ||
25134 | esac | ||
25135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25136 | (eval "$ac_link") 2>conftest.er1 | ||
25137 | ac_status=$? | ||
25138 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25139 | rm -f conftest.er1 | ||
25140 | cat conftest.err >&5 | ||
25141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25142 | (exit $ac_status); } && { | ||
25143 | test -z "$ac_c_werror_flag" || | ||
25144 | test ! -s conftest.err | ||
25145 | } && test -s conftest$ac_exeext && | ||
25146 | $as_test_x conftest$ac_exeext; then | ||
25147 | ac_cv_search_getrrsetbyname=$ac_res | ||
25148 | else | ||
25149 | echo "$as_me: failed program was:" >&5 | ||
25150 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25151 | |||
25152 | |||
25153 | fi | ||
25154 | |||
25155 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25156 | conftest$ac_exeext | ||
25157 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
25158 | break | ||
25159 | fi | ||
25160 | done | ||
25161 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
25162 | : | ||
25163 | else | ||
25164 | ac_cv_search_getrrsetbyname=no | ||
25165 | fi | ||
25166 | rm conftest.$ac_ext | ||
25167 | LIBS=$ac_func_search_save_LIBS | ||
25168 | fi | ||
25169 | { echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5 | ||
25170 | echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; } | ||
25171 | ac_res=$ac_cv_search_getrrsetbyname | ||
25172 | if test "$ac_res" != no; then | ||
25173 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
25174 | |||
25175 | cat >>confdefs.h <<\_ACEOF | ||
25176 | #define HAVE_GETRRSETBYNAME 1 | ||
25177 | _ACEOF | ||
25178 | |||
25179 | else | ||
25180 | |||
25181 | # Needed by our getrrsetbyname() | ||
25182 | { echo "$as_me:$LINENO: checking for library containing res_query" >&5 | ||
25183 | echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; } | ||
25184 | if test "${ac_cv_search_res_query+set}" = set; then | ||
25185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25186 | else | ||
25187 | ac_func_search_save_LIBS=$LIBS | ||
25188 | cat >conftest.$ac_ext <<_ACEOF | ||
25189 | /* confdefs.h. */ | ||
25190 | _ACEOF | ||
25191 | cat confdefs.h >>conftest.$ac_ext | ||
25192 | cat >>conftest.$ac_ext <<_ACEOF | ||
25193 | /* end confdefs.h. */ | ||
25194 | |||
25195 | /* Override any GCC internal prototype to avoid an error. | ||
25196 | Use char because int might match the return type of a GCC | ||
25197 | builtin and then its argument prototype would still apply. */ | ||
25198 | #ifdef __cplusplus | ||
25199 | extern "C" | ||
25200 | #endif | ||
25201 | char res_query (); | ||
25202 | int | ||
25203 | main () | ||
25204 | { | ||
25205 | return res_query (); | ||
25206 | ; | ||
25207 | return 0; | ||
25208 | } | ||
25209 | _ACEOF | ||
25210 | for ac_lib in '' resolv; do | ||
25211 | if test -z "$ac_lib"; then | ||
25212 | ac_res="none required" | ||
25213 | else | ||
25214 | ac_res=-l$ac_lib | ||
25215 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
25216 | fi | ||
25217 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25218 | if { (ac_try="$ac_link" | ||
25219 | case "(($ac_try" in | ||
25220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25221 | *) ac_try_echo=$ac_try;; | ||
25222 | esac | ||
25223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25224 | (eval "$ac_link") 2>conftest.er1 | ||
25225 | ac_status=$? | ||
25226 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25227 | rm -f conftest.er1 | ||
25228 | cat conftest.err >&5 | ||
25229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25230 | (exit $ac_status); } && { | ||
25231 | test -z "$ac_c_werror_flag" || | ||
25232 | test ! -s conftest.err | ||
25233 | } && test -s conftest$ac_exeext && | ||
25234 | $as_test_x conftest$ac_exeext; then | ||
25235 | ac_cv_search_res_query=$ac_res | ||
25236 | else | ||
25237 | echo "$as_me: failed program was:" >&5 | ||
25238 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25239 | |||
25240 | |||
25241 | fi | ||
25242 | |||
25243 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25244 | conftest$ac_exeext | ||
25245 | if test "${ac_cv_search_res_query+set}" = set; then | ||
25246 | break | ||
25247 | fi | ||
25248 | done | ||
25249 | if test "${ac_cv_search_res_query+set}" = set; then | ||
25250 | : | ||
25251 | else | ||
25252 | ac_cv_search_res_query=no | ||
25253 | fi | ||
25254 | rm conftest.$ac_ext | ||
25255 | LIBS=$ac_func_search_save_LIBS | ||
25256 | fi | ||
25257 | { echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5 | ||
25258 | echo "${ECHO_T}$ac_cv_search_res_query" >&6; } | ||
25259 | ac_res=$ac_cv_search_res_query | ||
25260 | if test "$ac_res" != no; then | ||
25261 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
25262 | |||
25263 | fi | ||
25264 | |||
25265 | { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
25266 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; } | ||
25267 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
25268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25269 | else | ||
25270 | ac_func_search_save_LIBS=$LIBS | ||
25271 | cat >conftest.$ac_ext <<_ACEOF | ||
25272 | /* confdefs.h. */ | ||
25273 | _ACEOF | ||
25274 | cat confdefs.h >>conftest.$ac_ext | ||
25275 | cat >>conftest.$ac_ext <<_ACEOF | ||
25276 | /* end confdefs.h. */ | ||
25277 | |||
25278 | /* Override any GCC internal prototype to avoid an error. | ||
25279 | Use char because int might match the return type of a GCC | ||
25280 | builtin and then its argument prototype would still apply. */ | ||
25281 | #ifdef __cplusplus | ||
25282 | extern "C" | ||
25283 | #endif | ||
25284 | char dn_expand (); | ||
25285 | int | ||
25286 | main () | ||
25287 | { | ||
25288 | return dn_expand (); | ||
25289 | ; | ||
25290 | return 0; | ||
25291 | } | ||
25292 | _ACEOF | ||
25293 | for ac_lib in '' resolv; do | ||
25294 | if test -z "$ac_lib"; then | ||
25295 | ac_res="none required" | ||
25296 | else | ||
25297 | ac_res=-l$ac_lib | ||
25298 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
25299 | fi | ||
25300 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25301 | if { (ac_try="$ac_link" | ||
25302 | case "(($ac_try" in | ||
25303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25304 | *) ac_try_echo=$ac_try;; | ||
25305 | esac | ||
25306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25307 | (eval "$ac_link") 2>conftest.er1 | ||
25308 | ac_status=$? | ||
25309 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25310 | rm -f conftest.er1 | ||
25311 | cat conftest.err >&5 | ||
25312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25313 | (exit $ac_status); } && { | ||
25314 | test -z "$ac_c_werror_flag" || | ||
25315 | test ! -s conftest.err | ||
25316 | } && test -s conftest$ac_exeext && | ||
25317 | $as_test_x conftest$ac_exeext; then | ||
25318 | ac_cv_search_dn_expand=$ac_res | ||
25319 | else | ||
25320 | echo "$as_me: failed program was:" >&5 | ||
25321 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25322 | |||
25323 | |||
25324 | fi | ||
25325 | |||
25326 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25327 | conftest$ac_exeext | ||
25328 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
25329 | break | ||
25330 | fi | ||
25331 | done | ||
25332 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
25333 | : | ||
25334 | else | ||
25335 | ac_cv_search_dn_expand=no | ||
25336 | fi | ||
25337 | rm conftest.$ac_ext | ||
25338 | LIBS=$ac_func_search_save_LIBS | ||
25339 | fi | ||
25340 | { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
25341 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; } | ||
25342 | ac_res=$ac_cv_search_dn_expand | ||
25343 | if test "$ac_res" != no; then | ||
25344 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
25345 | |||
25346 | fi | ||
25347 | |||
25348 | { echo "$as_me:$LINENO: checking if res_query will link" >&5 | ||
25349 | echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; } | ||
25350 | cat >conftest.$ac_ext <<_ACEOF | ||
25351 | /* confdefs.h. */ | ||
25352 | _ACEOF | ||
25353 | cat confdefs.h >>conftest.$ac_ext | ||
25354 | cat >>conftest.$ac_ext <<_ACEOF | ||
25355 | /* end confdefs.h. */ | ||
25356 | |||
25357 | /* Override any GCC internal prototype to avoid an error. | ||
25358 | Use char because int might match the return type of a GCC | ||
25359 | builtin and then its argument prototype would still apply. */ | ||
25360 | #ifdef __cplusplus | ||
25361 | extern "C" | ||
25362 | #endif | ||
25363 | char res_query (); | ||
25364 | int | ||
25365 | main () | ||
25366 | { | ||
25367 | return res_query (); | ||
25368 | ; | ||
25369 | return 0; | ||
25370 | } | ||
25371 | _ACEOF | ||
25372 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25373 | if { (ac_try="$ac_link" | ||
25374 | case "(($ac_try" in | ||
25375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25376 | *) ac_try_echo=$ac_try;; | ||
25377 | esac | ||
25378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25379 | (eval "$ac_link") 2>conftest.er1 | ||
25380 | ac_status=$? | ||
25381 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25382 | rm -f conftest.er1 | ||
25383 | cat conftest.err >&5 | ||
25384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25385 | (exit $ac_status); } && { | ||
25386 | test -z "$ac_c_werror_flag" || | ||
25387 | test ! -s conftest.err | ||
25388 | } && test -s conftest$ac_exeext && | ||
25389 | $as_test_x conftest$ac_exeext; then | ||
25390 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
25391 | echo "${ECHO_T}yes" >&6; } | ||
25392 | else | ||
25393 | echo "$as_me: failed program was:" >&5 | ||
25394 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25395 | |||
25396 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25397 | echo "${ECHO_T}no" >&6; } | ||
25398 | saved_LIBS="$LIBS" | ||
25399 | LIBS="$LIBS -lresolv" | ||
25400 | { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 | ||
25401 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; } | ||
25402 | cat >conftest.$ac_ext <<_ACEOF | ||
25403 | |||
25404 | #include <resolv.h> | ||
25405 | int main() | ||
25406 | { | ||
25407 | res_query (0, 0, 0, 0, 0); | ||
25408 | return 0; | ||
25409 | } | ||
25410 | |||
25411 | _ACEOF | ||
25412 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25413 | if { (ac_try="$ac_link" | ||
25414 | case "(($ac_try" in | ||
25415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25416 | *) ac_try_echo=$ac_try;; | ||
25417 | esac | ||
25418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25419 | (eval "$ac_link") 2>conftest.er1 | ||
25420 | ac_status=$? | ||
25421 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25422 | rm -f conftest.er1 | ||
25423 | cat conftest.err >&5 | ||
25424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25425 | (exit $ac_status); } && { | ||
25426 | test -z "$ac_c_werror_flag" || | ||
25427 | test ! -s conftest.err | ||
25428 | } && test -s conftest$ac_exeext && | ||
25429 | $as_test_x conftest$ac_exeext; then | ||
25430 | LIBS="$LIBS -lresolv" | ||
25431 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
25432 | echo "${ECHO_T}yes" >&6; } | ||
25433 | else | ||
25434 | echo "$as_me: failed program was:" >&5 | ||
25435 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25436 | |||
25437 | LIBS="$saved_LIBS" | ||
25438 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25439 | echo "${ECHO_T}no" >&6; } | ||
25440 | fi | ||
25441 | |||
25442 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25443 | conftest$ac_exeext conftest.$ac_ext | ||
25444 | |||
25445 | fi | ||
25446 | |||
25447 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25448 | conftest$ac_exeext conftest.$ac_ext | ||
25449 | |||
25450 | |||
25451 | for ac_func in _getshort _getlong | ||
25452 | do | ||
25453 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
25454 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
25455 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
25456 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
25457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25458 | else | ||
25459 | cat >conftest.$ac_ext <<_ACEOF | ||
25460 | /* confdefs.h. */ | ||
25461 | _ACEOF | ||
25462 | cat confdefs.h >>conftest.$ac_ext | ||
25463 | cat >>conftest.$ac_ext <<_ACEOF | ||
25464 | /* end confdefs.h. */ | ||
25465 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
25466 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
25467 | #define $ac_func innocuous_$ac_func | ||
25468 | |||
25469 | /* System header to define __stub macros and hopefully few prototypes, | ||
25470 | which can conflict with char $ac_func (); below. | ||
25471 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
25472 | <limits.h> exists even on freestanding compilers. */ | ||
25473 | |||
25474 | #ifdef __STDC__ | ||
25475 | # include <limits.h> | ||
25476 | #else | ||
25477 | # include <assert.h> | ||
25478 | #endif | ||
25479 | |||
25480 | #undef $ac_func | ||
25481 | |||
25482 | /* Override any GCC internal prototype to avoid an error. | ||
25483 | Use char because int might match the return type of a GCC | ||
25484 | builtin and then its argument prototype would still apply. */ | ||
25485 | #ifdef __cplusplus | ||
25486 | extern "C" | ||
25487 | #endif | ||
25488 | char $ac_func (); | ||
25489 | /* The GNU C library defines this for functions which it implements | ||
25490 | to always fail with ENOSYS. Some functions are actually named | ||
25491 | something starting with __ and the normal name is an alias. */ | ||
25492 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
25493 | choke me | ||
25494 | #endif | ||
25495 | |||
25496 | int | ||
25497 | main () | ||
25498 | { | ||
25499 | return $ac_func (); | ||
25500 | ; | ||
25501 | return 0; | ||
25502 | } | ||
25503 | _ACEOF | ||
25504 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25505 | if { (ac_try="$ac_link" | ||
25506 | case "(($ac_try" in | ||
25507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25508 | *) ac_try_echo=$ac_try;; | ||
25509 | esac | ||
25510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25511 | (eval "$ac_link") 2>conftest.er1 | ||
25512 | ac_status=$? | ||
25513 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25514 | rm -f conftest.er1 | ||
25515 | cat conftest.err >&5 | ||
25516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25517 | (exit $ac_status); } && { | ||
25518 | test -z "$ac_c_werror_flag" || | ||
25519 | test ! -s conftest.err | ||
25520 | } && test -s conftest$ac_exeext && | ||
25521 | $as_test_x conftest$ac_exeext; then | ||
25522 | eval "$as_ac_var=yes" | ||
25523 | else | ||
25524 | echo "$as_me: failed program was:" >&5 | ||
25525 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25526 | |||
25527 | eval "$as_ac_var=no" | ||
25528 | fi | ||
25529 | |||
25530 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25531 | conftest$ac_exeext conftest.$ac_ext | ||
25532 | fi | ||
25533 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
25534 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
25535 | echo "${ECHO_T}$ac_res" >&6; } | ||
25536 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
25537 | cat >>confdefs.h <<_ACEOF | ||
25538 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
25539 | _ACEOF | ||
25540 | |||
25541 | fi | ||
25542 | done | ||
25543 | |||
25544 | { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5 | ||
25545 | echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; } | ||
25546 | if test "${ac_cv_have_decl__getshort+set}" = set; then | ||
25547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25548 | else | ||
25549 | cat >conftest.$ac_ext <<_ACEOF | ||
25550 | /* confdefs.h. */ | ||
25551 | _ACEOF | ||
25552 | cat confdefs.h >>conftest.$ac_ext | ||
25553 | cat >>conftest.$ac_ext <<_ACEOF | ||
25554 | /* end confdefs.h. */ | ||
25555 | #include <sys/types.h> | ||
25556 | #include <arpa/nameser.h> | ||
25557 | |||
25558 | int | ||
25559 | main () | ||
25560 | { | ||
25561 | #ifndef _getshort | ||
25562 | (void) _getshort; | ||
25563 | #endif | ||
25564 | |||
25565 | ; | ||
25566 | return 0; | ||
25567 | } | ||
25568 | _ACEOF | ||
25569 | rm -f conftest.$ac_objext | ||
25570 | if { (ac_try="$ac_compile" | ||
25571 | case "(($ac_try" in | ||
25572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25573 | *) ac_try_echo=$ac_try;; | ||
25574 | esac | ||
25575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25576 | (eval "$ac_compile") 2>conftest.er1 | ||
25577 | ac_status=$? | ||
25578 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25579 | rm -f conftest.er1 | ||
25580 | cat conftest.err >&5 | ||
25581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25582 | (exit $ac_status); } && { | ||
25583 | test -z "$ac_c_werror_flag" || | ||
25584 | test ! -s conftest.err | ||
25585 | } && test -s conftest.$ac_objext; then | ||
25586 | ac_cv_have_decl__getshort=yes | ||
25587 | else | ||
25588 | echo "$as_me: failed program was:" >&5 | ||
25589 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25590 | |||
25591 | ac_cv_have_decl__getshort=no | ||
25592 | fi | ||
25593 | |||
25594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25595 | fi | ||
25596 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5 | ||
25597 | echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; } | ||
25598 | if test $ac_cv_have_decl__getshort = yes; then | ||
25599 | |||
25600 | cat >>confdefs.h <<_ACEOF | ||
25601 | #define HAVE_DECL__GETSHORT 1 | ||
25602 | _ACEOF | ||
25603 | |||
25604 | |||
25605 | else | ||
25606 | cat >>confdefs.h <<_ACEOF | ||
25607 | #define HAVE_DECL__GETSHORT 0 | ||
25608 | _ACEOF | ||
25609 | |||
25610 | |||
25611 | fi | ||
25612 | { echo "$as_me:$LINENO: checking whether _getlong is declared" >&5 | ||
25613 | echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; } | ||
25614 | if test "${ac_cv_have_decl__getlong+set}" = set; then | ||
25615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25616 | else | ||
25617 | cat >conftest.$ac_ext <<_ACEOF | ||
25618 | /* confdefs.h. */ | ||
25619 | _ACEOF | ||
25620 | cat confdefs.h >>conftest.$ac_ext | ||
25621 | cat >>conftest.$ac_ext <<_ACEOF | ||
25622 | /* end confdefs.h. */ | ||
25623 | #include <sys/types.h> | ||
25624 | #include <arpa/nameser.h> | ||
25625 | |||
25626 | int | ||
25627 | main () | ||
25628 | { | ||
25629 | #ifndef _getlong | ||
25630 | (void) _getlong; | ||
25631 | #endif | ||
25632 | |||
25633 | ; | ||
25634 | return 0; | ||
25635 | } | ||
25636 | _ACEOF | ||
25637 | rm -f conftest.$ac_objext | ||
25638 | if { (ac_try="$ac_compile" | ||
25639 | case "(($ac_try" in | ||
25640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25641 | *) ac_try_echo=$ac_try;; | ||
25642 | esac | ||
25643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25644 | (eval "$ac_compile") 2>conftest.er1 | ||
25645 | ac_status=$? | ||
25646 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25647 | rm -f conftest.er1 | ||
25648 | cat conftest.err >&5 | ||
25649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25650 | (exit $ac_status); } && { | ||
25651 | test -z "$ac_c_werror_flag" || | ||
25652 | test ! -s conftest.err | ||
25653 | } && test -s conftest.$ac_objext; then | ||
25654 | ac_cv_have_decl__getlong=yes | ||
25655 | else | ||
25656 | echo "$as_me: failed program was:" >&5 | ||
25657 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25658 | |||
25659 | ac_cv_have_decl__getlong=no | ||
25660 | fi | ||
25661 | |||
25662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25663 | fi | ||
25664 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5 | ||
25665 | echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; } | ||
25666 | if test $ac_cv_have_decl__getlong = yes; then | ||
25667 | |||
25668 | cat >>confdefs.h <<_ACEOF | ||
25669 | #define HAVE_DECL__GETLONG 1 | ||
25670 | _ACEOF | ||
25671 | |||
25672 | |||
25673 | else | ||
25674 | cat >>confdefs.h <<_ACEOF | ||
25675 | #define HAVE_DECL__GETLONG 0 | ||
25676 | _ACEOF | ||
25677 | |||
25678 | |||
25679 | fi | ||
25680 | |||
25681 | |||
25682 | { echo "$as_me:$LINENO: checking for HEADER.ad" >&5 | ||
25683 | echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; } | ||
25684 | if test "${ac_cv_member_HEADER_ad+set}" = set; then | ||
25685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25686 | else | ||
25687 | cat >conftest.$ac_ext <<_ACEOF | ||
25688 | /* confdefs.h. */ | ||
25689 | _ACEOF | ||
25690 | cat confdefs.h >>conftest.$ac_ext | ||
25691 | cat >>conftest.$ac_ext <<_ACEOF | ||
25692 | /* end confdefs.h. */ | ||
25693 | #include <arpa/nameser.h> | ||
25694 | |||
25695 | int | ||
25696 | main () | ||
25697 | { | ||
25698 | static HEADER ac_aggr; | ||
25699 | if (ac_aggr.ad) | ||
25700 | return 0; | ||
25701 | ; | ||
25702 | return 0; | ||
25703 | } | ||
25704 | _ACEOF | ||
25705 | rm -f conftest.$ac_objext | ||
25706 | if { (ac_try="$ac_compile" | ||
25707 | case "(($ac_try" in | ||
25708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25709 | *) ac_try_echo=$ac_try;; | ||
25710 | esac | ||
25711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25712 | (eval "$ac_compile") 2>conftest.er1 | ||
25713 | ac_status=$? | ||
25714 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25715 | rm -f conftest.er1 | ||
25716 | cat conftest.err >&5 | ||
25717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25718 | (exit $ac_status); } && { | ||
25719 | test -z "$ac_c_werror_flag" || | ||
25720 | test ! -s conftest.err | ||
25721 | } && test -s conftest.$ac_objext; then | ||
25722 | ac_cv_member_HEADER_ad=yes | ||
25723 | else | ||
25724 | echo "$as_me: failed program was:" >&5 | ||
25725 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25726 | |||
25727 | cat >conftest.$ac_ext <<_ACEOF | ||
25728 | /* confdefs.h. */ | ||
25729 | _ACEOF | ||
25730 | cat confdefs.h >>conftest.$ac_ext | ||
25731 | cat >>conftest.$ac_ext <<_ACEOF | ||
25732 | /* end confdefs.h. */ | ||
25733 | #include <arpa/nameser.h> | ||
25734 | |||
25735 | int | ||
25736 | main () | ||
25737 | { | ||
25738 | static HEADER ac_aggr; | ||
25739 | if (sizeof ac_aggr.ad) | ||
25740 | return 0; | ||
25741 | ; | ||
25742 | return 0; | ||
25743 | } | ||
25744 | _ACEOF | ||
25745 | rm -f conftest.$ac_objext | ||
25746 | if { (ac_try="$ac_compile" | ||
25747 | case "(($ac_try" in | ||
25748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25749 | *) ac_try_echo=$ac_try;; | ||
25750 | esac | ||
25751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25752 | (eval "$ac_compile") 2>conftest.er1 | ||
25753 | ac_status=$? | ||
25754 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25755 | rm -f conftest.er1 | ||
25756 | cat conftest.err >&5 | ||
25757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25758 | (exit $ac_status); } && { | ||
25759 | test -z "$ac_c_werror_flag" || | ||
25760 | test ! -s conftest.err | ||
25761 | } && test -s conftest.$ac_objext; then | ||
25762 | ac_cv_member_HEADER_ad=yes | ||
25763 | else | ||
25764 | echo "$as_me: failed program was:" >&5 | ||
25765 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25766 | |||
25767 | ac_cv_member_HEADER_ad=no | ||
25768 | fi | ||
25769 | |||
25770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25771 | fi | ||
25772 | |||
25773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25774 | fi | ||
25775 | { echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5 | ||
25776 | echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; } | ||
25777 | if test $ac_cv_member_HEADER_ad = yes; then | ||
25778 | |||
25779 | cat >>confdefs.h <<\_ACEOF | ||
25780 | #define HAVE_HEADER_AD 1 | ||
25781 | _ACEOF | ||
25782 | |||
25783 | fi | ||
25784 | |||
25785 | |||
25786 | fi | ||
25787 | |||
25788 | |||
25789 | { echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5 | ||
25790 | echo $ECHO_N "checking if struct __res_state _res is an extern... $ECHO_C" >&6; } | ||
25791 | cat >conftest.$ac_ext <<_ACEOF | ||
25792 | |||
25793 | #include <stdio.h> | ||
25794 | #if HAVE_SYS_TYPES_H | ||
25795 | # include <sys/types.h> | ||
25796 | #endif | ||
25797 | #include <netinet/in.h> | ||
25798 | #include <arpa/nameser.h> | ||
25799 | #include <resolv.h> | ||
25800 | extern struct __res_state _res; | ||
25801 | int main() { return 0; } | ||
25802 | |||
25803 | _ACEOF | ||
25804 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25805 | if { (ac_try="$ac_link" | ||
25806 | case "(($ac_try" in | ||
25807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25808 | *) ac_try_echo=$ac_try;; | ||
25809 | esac | ||
25810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25811 | (eval "$ac_link") 2>conftest.er1 | ||
25812 | ac_status=$? | ||
25813 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25814 | rm -f conftest.er1 | ||
25815 | cat conftest.err >&5 | ||
25816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25817 | (exit $ac_status); } && { | ||
25818 | test -z "$ac_c_werror_flag" || | ||
25819 | test ! -s conftest.err | ||
25820 | } && test -s conftest$ac_exeext && | ||
25821 | $as_test_x conftest$ac_exeext; then | ||
25822 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
25823 | echo "${ECHO_T}yes" >&6; } | ||
25824 | |||
25825 | cat >>confdefs.h <<\_ACEOF | ||
25826 | #define HAVE__RES_EXTERN 1 | ||
25827 | _ACEOF | ||
25828 | |||
25829 | |||
25830 | else | ||
25831 | echo "$as_me: failed program was:" >&5 | ||
25832 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25833 | |||
25834 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25835 | echo "${ECHO_T}no" >&6; } | ||
25836 | |||
25837 | fi | ||
25838 | |||
25839 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25840 | conftest$ac_exeext conftest.$ac_ext | ||
25841 | |||
25842 | # Check whether user wants SELinux support | ||
25843 | SELINUX_MSG="no" | ||
25844 | LIBSELINUX="" | ||
25845 | |||
25846 | # Check whether --with-selinux was given. | ||
25847 | if test "${with_selinux+set}" = set; then | ||
25848 | withval=$with_selinux; if test "x$withval" != "xno" ; then | ||
25849 | save_LIBS="$LIBS" | ||
25850 | |||
25851 | cat >>confdefs.h <<\_ACEOF | ||
25852 | #define WITH_SELINUX 1 | ||
25853 | _ACEOF | ||
25854 | |||
25855 | SELINUX_MSG="yes" | ||
25856 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
25857 | { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 | ||
25858 | echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; } | ||
25859 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
25860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25861 | fi | ||
25862 | { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 | ||
25863 | echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; } | ||
25864 | else | ||
25865 | # Is the header compilable? | ||
25866 | { echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5 | ||
25867 | echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; } | ||
25868 | cat >conftest.$ac_ext <<_ACEOF | ||
25869 | /* confdefs.h. */ | ||
25870 | _ACEOF | ||
25871 | cat confdefs.h >>conftest.$ac_ext | ||
25872 | cat >>conftest.$ac_ext <<_ACEOF | ||
25873 | /* end confdefs.h. */ | ||
25874 | $ac_includes_default | ||
25875 | #include <selinux/selinux.h> | ||
25876 | _ACEOF | ||
25877 | rm -f conftest.$ac_objext | ||
25878 | if { (ac_try="$ac_compile" | ||
25879 | case "(($ac_try" in | ||
25880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25881 | *) ac_try_echo=$ac_try;; | ||
25882 | esac | ||
25883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25884 | (eval "$ac_compile") 2>conftest.er1 | ||
25885 | ac_status=$? | ||
25886 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25887 | rm -f conftest.er1 | ||
25888 | cat conftest.err >&5 | ||
25889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25890 | (exit $ac_status); } && { | ||
25891 | test -z "$ac_c_werror_flag" || | ||
25892 | test ! -s conftest.err | ||
25893 | } && test -s conftest.$ac_objext; then | ||
25894 | ac_header_compiler=yes | ||
25895 | else | ||
25896 | echo "$as_me: failed program was:" >&5 | ||
25897 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25898 | |||
25899 | ac_header_compiler=no | ||
25900 | fi | ||
25901 | |||
25902 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25903 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
25904 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
25905 | |||
25906 | # Is the header present? | ||
25907 | { echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5 | ||
25908 | echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; } | ||
25909 | cat >conftest.$ac_ext <<_ACEOF | ||
25910 | /* confdefs.h. */ | ||
25911 | _ACEOF | ||
25912 | cat confdefs.h >>conftest.$ac_ext | ||
25913 | cat >>conftest.$ac_ext <<_ACEOF | ||
25914 | /* end confdefs.h. */ | ||
25915 | #include <selinux/selinux.h> | ||
25916 | _ACEOF | ||
25917 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
25918 | case "(($ac_try" in | ||
25919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25920 | *) ac_try_echo=$ac_try;; | ||
25921 | esac | ||
25922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25923 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
25924 | ac_status=$? | ||
25925 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25926 | rm -f conftest.er1 | ||
25927 | cat conftest.err >&5 | ||
25928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25929 | (exit $ac_status); } >/dev/null && { | ||
25930 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
25931 | test ! -s conftest.err | ||
25932 | }; then | ||
25933 | ac_header_preproc=yes | ||
25934 | else | ||
25935 | echo "$as_me: failed program was:" >&5 | ||
25936 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25937 | |||
25938 | ac_header_preproc=no | ||
25939 | fi | ||
25940 | |||
25941 | rm -f conftest.err conftest.$ac_ext | ||
25942 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
25943 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
25944 | |||
25945 | # So? What about this header? | ||
25946 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
25947 | yes:no: ) | ||
25948 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
25949 | echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
25950 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5 | ||
25951 | echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;} | ||
25952 | ac_header_preproc=yes | ||
25953 | ;; | ||
25954 | no:yes:* ) | ||
25955 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5 | ||
25956 | echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;} | ||
25957 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5 | ||
25958 | echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;} | ||
25959 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5 | ||
25960 | echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;} | ||
25961 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
25962 | echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
25963 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5 | ||
25964 | echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;} | ||
25965 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5 | ||
25966 | echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;} | ||
25967 | ( cat <<\_ASBOX | ||
25968 | ## ------------------------------------------- ## | ||
25969 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
25970 | ## ------------------------------------------- ## | ||
25971 | _ASBOX | ||
25972 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
25973 | ;; | ||
25974 | esac | ||
25975 | { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 | ||
25976 | echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; } | ||
25977 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
25978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25979 | else | ||
25980 | ac_cv_header_selinux_selinux_h=$ac_header_preproc | ||
25981 | fi | ||
25982 | { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 | ||
25983 | echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; } | ||
25984 | |||
25985 | fi | ||
25986 | if test $ac_cv_header_selinux_selinux_h = yes; then | ||
25987 | : | ||
25988 | else | ||
25989 | { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5 | ||
25990 | echo "$as_me: error: SELinux support requires selinux.h header" >&2;} | ||
25991 | { (exit 1); exit 1; }; } | ||
25992 | fi | ||
25993 | |||
25994 | |||
25995 | { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5 | ||
25996 | echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; } | ||
25997 | if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then | ||
25998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25999 | else | ||
26000 | ac_check_lib_save_LIBS=$LIBS | ||
26001 | LIBS="-lselinux $LIBS" | ||
26002 | cat >conftest.$ac_ext <<_ACEOF | ||
26003 | /* confdefs.h. */ | ||
26004 | _ACEOF | ||
26005 | cat confdefs.h >>conftest.$ac_ext | ||
26006 | cat >>conftest.$ac_ext <<_ACEOF | ||
26007 | /* end confdefs.h. */ | ||
26008 | |||
26009 | /* Override any GCC internal prototype to avoid an error. | ||
26010 | Use char because int might match the return type of a GCC | ||
26011 | builtin and then its argument prototype would still apply. */ | ||
26012 | #ifdef __cplusplus | ||
26013 | extern "C" | ||
26014 | #endif | ||
26015 | char setexeccon (); | ||
26016 | int | ||
26017 | main () | ||
26018 | { | ||
26019 | return setexeccon (); | ||
26020 | ; | ||
26021 | return 0; | ||
26022 | } | ||
26023 | _ACEOF | ||
26024 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26025 | if { (ac_try="$ac_link" | ||
26026 | case "(($ac_try" in | ||
26027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26028 | *) ac_try_echo=$ac_try;; | ||
26029 | esac | ||
26030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26031 | (eval "$ac_link") 2>conftest.er1 | ||
26032 | ac_status=$? | ||
26033 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26034 | rm -f conftest.er1 | ||
26035 | cat conftest.err >&5 | ||
26036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26037 | (exit $ac_status); } && { | ||
26038 | test -z "$ac_c_werror_flag" || | ||
26039 | test ! -s conftest.err | ||
26040 | } && test -s conftest$ac_exeext && | ||
26041 | $as_test_x conftest$ac_exeext; then | ||
26042 | ac_cv_lib_selinux_setexeccon=yes | ||
26043 | else | ||
26044 | echo "$as_me: failed program was:" >&5 | ||
26045 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26046 | |||
26047 | ac_cv_lib_selinux_setexeccon=no | ||
26048 | fi | ||
26049 | |||
26050 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26051 | conftest$ac_exeext conftest.$ac_ext | ||
26052 | LIBS=$ac_check_lib_save_LIBS | ||
26053 | fi | ||
26054 | { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5 | ||
26055 | echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; } | ||
26056 | if test $ac_cv_lib_selinux_setexeccon = yes; then | ||
26057 | LIBSELINUX="-lselinux" | ||
26058 | else | ||
26059 | { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5 | ||
26060 | echo "$as_me: error: SELinux support requires libselinux library" >&2;} | ||
26061 | { (exit 1); exit 1; }; } | ||
26062 | fi | ||
26063 | |||
26064 | SSHDLIBS="$SSHDLIBS $LIBSELINUX" | ||
26065 | |||
26066 | |||
26067 | for ac_func in getseuserbyname get_default_context_with_level | ||
26068 | do | ||
26069 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
26070 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
26071 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
26072 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
26073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26074 | else | ||
26075 | cat >conftest.$ac_ext <<_ACEOF | ||
26076 | /* confdefs.h. */ | ||
26077 | _ACEOF | ||
26078 | cat confdefs.h >>conftest.$ac_ext | ||
26079 | cat >>conftest.$ac_ext <<_ACEOF | ||
26080 | /* end confdefs.h. */ | ||
26081 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
26082 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
26083 | #define $ac_func innocuous_$ac_func | ||
26084 | |||
26085 | /* System header to define __stub macros and hopefully few prototypes, | ||
26086 | which can conflict with char $ac_func (); below. | ||
26087 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
26088 | <limits.h> exists even on freestanding compilers. */ | ||
26089 | |||
26090 | #ifdef __STDC__ | ||
26091 | # include <limits.h> | ||
26092 | #else | ||
26093 | # include <assert.h> | ||
26094 | #endif | ||
26095 | |||
26096 | #undef $ac_func | ||
26097 | |||
26098 | /* Override any GCC internal prototype to avoid an error. | ||
26099 | Use char because int might match the return type of a GCC | ||
26100 | builtin and then its argument prototype would still apply. */ | ||
26101 | #ifdef __cplusplus | ||
26102 | extern "C" | ||
26103 | #endif | ||
26104 | char $ac_func (); | ||
26105 | /* The GNU C library defines this for functions which it implements | ||
26106 | to always fail with ENOSYS. Some functions are actually named | ||
26107 | something starting with __ and the normal name is an alias. */ | ||
26108 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
26109 | choke me | ||
26110 | #endif | ||
26111 | |||
26112 | int | ||
26113 | main () | ||
26114 | { | ||
26115 | return $ac_func (); | ||
26116 | ; | ||
26117 | return 0; | ||
26118 | } | ||
26119 | _ACEOF | ||
26120 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26121 | if { (ac_try="$ac_link" | ||
26122 | case "(($ac_try" in | ||
26123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26124 | *) ac_try_echo=$ac_try;; | ||
26125 | esac | ||
26126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26127 | (eval "$ac_link") 2>conftest.er1 | ||
26128 | ac_status=$? | ||
26129 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26130 | rm -f conftest.er1 | ||
26131 | cat conftest.err >&5 | ||
26132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26133 | (exit $ac_status); } && { | ||
26134 | test -z "$ac_c_werror_flag" || | ||
26135 | test ! -s conftest.err | ||
26136 | } && test -s conftest$ac_exeext && | ||
26137 | $as_test_x conftest$ac_exeext; then | ||
26138 | eval "$as_ac_var=yes" | ||
26139 | else | ||
26140 | echo "$as_me: failed program was:" >&5 | ||
26141 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26142 | |||
26143 | eval "$as_ac_var=no" | ||
26144 | fi | ||
26145 | |||
26146 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26147 | conftest$ac_exeext conftest.$ac_ext | ||
26148 | fi | ||
26149 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
26150 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
26151 | echo "${ECHO_T}$ac_res" >&6; } | ||
26152 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
26153 | cat >>confdefs.h <<_ACEOF | ||
26154 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
26155 | _ACEOF | ||
26156 | |||
26157 | fi | ||
26158 | done | ||
26159 | |||
26160 | LIBS="$save_LIBS" | ||
26161 | fi | ||
26162 | |||
26163 | fi | ||
26164 | |||
26165 | |||
26166 | # Check whether user wants Kerberos 5 support | ||
26167 | KRB5_MSG="no" | ||
26168 | |||
26169 | # Check whether --with-kerberos5 was given. | ||
26170 | if test "${with_kerberos5+set}" = set; then | ||
26171 | withval=$with_kerberos5; if test "x$withval" != "xno" ; then | ||
26172 | if test "x$withval" = "xyes" ; then | ||
26173 | KRB5ROOT="/usr/local" | ||
26174 | else | ||
26175 | KRB5ROOT=${withval} | ||
26176 | fi | ||
26177 | |||
26178 | |||
26179 | cat >>confdefs.h <<\_ACEOF | ||
26180 | #define KRB5 1 | ||
26181 | _ACEOF | ||
26182 | |||
26183 | KRB5_MSG="yes" | ||
26184 | |||
26185 | { echo "$as_me:$LINENO: checking for krb5-config" >&5 | ||
26186 | echo $ECHO_N "checking for krb5-config... $ECHO_C" >&6; } | ||
26187 | if test -x $KRB5ROOT/bin/krb5-config ; then | ||
26188 | KRB5CONF=$KRB5ROOT/bin/krb5-config | ||
26189 | { echo "$as_me:$LINENO: result: $KRB5CONF" >&5 | ||
26190 | echo "${ECHO_T}$KRB5CONF" >&6; } | ||
26191 | |||
26192 | { echo "$as_me:$LINENO: checking for gssapi support" >&5 | ||
26193 | echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; } | ||
26194 | if $KRB5CONF | grep gssapi >/dev/null ; then | ||
26195 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26196 | echo "${ECHO_T}yes" >&6; } | ||
26197 | |||
26198 | cat >>confdefs.h <<\_ACEOF | ||
26199 | #define GSSAPI 1 | ||
26200 | _ACEOF | ||
26201 | |||
26202 | k5confopts=gssapi | ||
26203 | else | ||
26204 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26205 | echo "${ECHO_T}no" >&6; } | ||
26206 | k5confopts="" | ||
26207 | fi | ||
26208 | K5CFLAGS="`$KRB5CONF --cflags $k5confopts`" | ||
26209 | K5LIBS="`$KRB5CONF --libs $k5confopts`" | ||
26210 | CPPFLAGS="$CPPFLAGS $K5CFLAGS" | ||
26211 | { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
26212 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; } | ||
26213 | cat >conftest.$ac_ext <<_ACEOF | ||
26214 | /* confdefs.h. */ | ||
26215 | _ACEOF | ||
26216 | cat confdefs.h >>conftest.$ac_ext | ||
26217 | cat >>conftest.$ac_ext <<_ACEOF | ||
26218 | /* end confdefs.h. */ | ||
26219 | #include <krb5.h> | ||
26220 | int | ||
26221 | main () | ||
26222 | { | ||
26223 | char *tmp = heimdal_version; | ||
26224 | ; | ||
26225 | return 0; | ||
26226 | } | ||
26227 | _ACEOF | ||
26228 | rm -f conftest.$ac_objext | ||
26229 | if { (ac_try="$ac_compile" | ||
26230 | case "(($ac_try" in | ||
26231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26232 | *) ac_try_echo=$ac_try;; | ||
26233 | esac | ||
26234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26235 | (eval "$ac_compile") 2>conftest.er1 | ||
26236 | ac_status=$? | ||
26237 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26238 | rm -f conftest.er1 | ||
26239 | cat conftest.err >&5 | ||
26240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26241 | (exit $ac_status); } && { | ||
26242 | test -z "$ac_c_werror_flag" || | ||
26243 | test ! -s conftest.err | ||
26244 | } && test -s conftest.$ac_objext; then | ||
26245 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26246 | echo "${ECHO_T}yes" >&6; } | ||
26247 | |||
26248 | cat >>confdefs.h <<\_ACEOF | ||
26249 | #define HEIMDAL 1 | ||
26250 | _ACEOF | ||
26251 | |||
26252 | else | ||
26253 | echo "$as_me: failed program was:" >&5 | ||
26254 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26255 | |||
26256 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26257 | echo "${ECHO_T}no" >&6; } | ||
26258 | |||
26259 | fi | ||
26260 | |||
26261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26262 | else | ||
26263 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26264 | echo "${ECHO_T}no" >&6; } | ||
26265 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
26266 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
26267 | { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
26268 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; } | ||
26269 | cat >conftest.$ac_ext <<_ACEOF | ||
26270 | /* confdefs.h. */ | ||
26271 | _ACEOF | ||
26272 | cat confdefs.h >>conftest.$ac_ext | ||
26273 | cat >>conftest.$ac_ext <<_ACEOF | ||
26274 | /* end confdefs.h. */ | ||
26275 | #include <krb5.h> | ||
26276 | int | ||
26277 | main () | ||
26278 | { | ||
26279 | char *tmp = heimdal_version; | ||
26280 | ; | ||
26281 | return 0; | ||
26282 | } | ||
26283 | _ACEOF | ||
26284 | rm -f conftest.$ac_objext | ||
26285 | if { (ac_try="$ac_compile" | ||
26286 | case "(($ac_try" in | ||
26287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26288 | *) ac_try_echo=$ac_try;; | ||
26289 | esac | ||
26290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26291 | (eval "$ac_compile") 2>conftest.er1 | ||
26292 | ac_status=$? | ||
26293 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26294 | rm -f conftest.er1 | ||
26295 | cat conftest.err >&5 | ||
26296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26297 | (exit $ac_status); } && { | ||
26298 | test -z "$ac_c_werror_flag" || | ||
26299 | test ! -s conftest.err | ||
26300 | } && test -s conftest.$ac_objext; then | ||
26301 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26302 | echo "${ECHO_T}yes" >&6; } | ||
26303 | cat >>confdefs.h <<\_ACEOF | ||
26304 | #define HEIMDAL 1 | ||
26305 | _ACEOF | ||
26306 | |||
26307 | K5LIBS="-lkrb5 -ldes" | ||
26308 | K5LIBS="$K5LIBS -lcom_err -lasn1" | ||
26309 | { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5 | ||
26310 | echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; } | ||
26311 | if test "${ac_cv_lib_roken_net_write+set}" = set; then | ||
26312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26313 | else | ||
26314 | ac_check_lib_save_LIBS=$LIBS | ||
26315 | LIBS="-lroken $LIBS" | ||
26316 | cat >conftest.$ac_ext <<_ACEOF | ||
26317 | /* confdefs.h. */ | ||
26318 | _ACEOF | ||
26319 | cat confdefs.h >>conftest.$ac_ext | ||
26320 | cat >>conftest.$ac_ext <<_ACEOF | ||
26321 | /* end confdefs.h. */ | ||
26322 | |||
26323 | /* Override any GCC internal prototype to avoid an error. | ||
26324 | Use char because int might match the return type of a GCC | ||
26325 | builtin and then its argument prototype would still apply. */ | ||
26326 | #ifdef __cplusplus | ||
26327 | extern "C" | ||
26328 | #endif | ||
26329 | char net_write (); | ||
26330 | int | ||
26331 | main () | ||
26332 | { | ||
26333 | return net_write (); | ||
26334 | ; | ||
26335 | return 0; | ||
26336 | } | ||
26337 | _ACEOF | ||
26338 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26339 | if { (ac_try="$ac_link" | ||
26340 | case "(($ac_try" in | ||
26341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26342 | *) ac_try_echo=$ac_try;; | ||
26343 | esac | ||
26344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26345 | (eval "$ac_link") 2>conftest.er1 | ||
26346 | ac_status=$? | ||
26347 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26348 | rm -f conftest.er1 | ||
26349 | cat conftest.err >&5 | ||
26350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26351 | (exit $ac_status); } && { | ||
26352 | test -z "$ac_c_werror_flag" || | ||
26353 | test ! -s conftest.err | ||
26354 | } && test -s conftest$ac_exeext && | ||
26355 | $as_test_x conftest$ac_exeext; then | ||
26356 | ac_cv_lib_roken_net_write=yes | ||
26357 | else | ||
26358 | echo "$as_me: failed program was:" >&5 | ||
26359 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26360 | |||
26361 | ac_cv_lib_roken_net_write=no | ||
26362 | fi | ||
26363 | |||
26364 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26365 | conftest$ac_exeext conftest.$ac_ext | ||
26366 | LIBS=$ac_check_lib_save_LIBS | ||
26367 | fi | ||
26368 | { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5 | ||
26369 | echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; } | ||
26370 | if test $ac_cv_lib_roken_net_write = yes; then | ||
26371 | K5LIBS="$K5LIBS -lroken" | ||
26372 | fi | ||
26373 | |||
26374 | |||
26375 | else | ||
26376 | echo "$as_me: failed program was:" >&5 | ||
26377 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26378 | |||
26379 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26380 | echo "${ECHO_T}no" >&6; } | ||
26381 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
26382 | |||
26383 | |||
26384 | fi | ||
26385 | |||
26386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26387 | { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
26388 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; } | ||
26389 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
26390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26391 | else | ||
26392 | ac_func_search_save_LIBS=$LIBS | ||
26393 | cat >conftest.$ac_ext <<_ACEOF | ||
26394 | /* confdefs.h. */ | ||
26395 | _ACEOF | ||
26396 | cat confdefs.h >>conftest.$ac_ext | ||
26397 | cat >>conftest.$ac_ext <<_ACEOF | ||
26398 | /* end confdefs.h. */ | ||
26399 | |||
26400 | /* Override any GCC internal prototype to avoid an error. | ||
26401 | Use char because int might match the return type of a GCC | ||
26402 | builtin and then its argument prototype would still apply. */ | ||
26403 | #ifdef __cplusplus | ||
26404 | extern "C" | ||
26405 | #endif | ||
26406 | char dn_expand (); | ||
26407 | int | ||
26408 | main () | ||
26409 | { | ||
26410 | return dn_expand (); | ||
26411 | ; | ||
26412 | return 0; | ||
26413 | } | ||
26414 | _ACEOF | ||
26415 | for ac_lib in '' resolv; do | ||
26416 | if test -z "$ac_lib"; then | ||
26417 | ac_res="none required" | ||
26418 | else | ||
26419 | ac_res=-l$ac_lib | ||
26420 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
26421 | fi | ||
26422 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26423 | if { (ac_try="$ac_link" | ||
26424 | case "(($ac_try" in | ||
26425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26426 | *) ac_try_echo=$ac_try;; | ||
26427 | esac | ||
26428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26429 | (eval "$ac_link") 2>conftest.er1 | ||
26430 | ac_status=$? | ||
26431 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26432 | rm -f conftest.er1 | ||
26433 | cat conftest.err >&5 | ||
26434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26435 | (exit $ac_status); } && { | ||
26436 | test -z "$ac_c_werror_flag" || | ||
26437 | test ! -s conftest.err | ||
26438 | } && test -s conftest$ac_exeext && | ||
26439 | $as_test_x conftest$ac_exeext; then | ||
26440 | ac_cv_search_dn_expand=$ac_res | ||
26441 | else | ||
26442 | echo "$as_me: failed program was:" >&5 | ||
26443 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26444 | |||
26445 | |||
26446 | fi | ||
26447 | |||
26448 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26449 | conftest$ac_exeext | ||
26450 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
26451 | break | ||
26452 | fi | ||
26453 | done | ||
26454 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
26455 | : | ||
26456 | else | ||
26457 | ac_cv_search_dn_expand=no | ||
26458 | fi | ||
26459 | rm conftest.$ac_ext | ||
26460 | LIBS=$ac_func_search_save_LIBS | ||
26461 | fi | ||
26462 | { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
26463 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; } | ||
26464 | ac_res=$ac_cv_search_dn_expand | ||
26465 | if test "$ac_res" != no; then | ||
26466 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
26467 | |||
26468 | fi | ||
26469 | |||
26470 | |||
26471 | { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5 | ||
26472 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; } | ||
26473 | if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then | ||
26474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26475 | else | ||
26476 | ac_check_lib_save_LIBS=$LIBS | ||
26477 | LIBS="-lgssapi_krb5 $K5LIBS $LIBS" | ||
26478 | cat >conftest.$ac_ext <<_ACEOF | ||
26479 | /* confdefs.h. */ | ||
26480 | _ACEOF | ||
26481 | cat confdefs.h >>conftest.$ac_ext | ||
26482 | cat >>conftest.$ac_ext <<_ACEOF | ||
26483 | /* end confdefs.h. */ | ||
26484 | |||
26485 | /* Override any GCC internal prototype to avoid an error. | ||
26486 | Use char because int might match the return type of a GCC | ||
26487 | builtin and then its argument prototype would still apply. */ | ||
26488 | #ifdef __cplusplus | ||
26489 | extern "C" | ||
26490 | #endif | ||
26491 | char gss_init_sec_context (); | ||
26492 | int | ||
26493 | main () | ||
26494 | { | ||
26495 | return gss_init_sec_context (); | ||
26496 | ; | ||
26497 | return 0; | ||
26498 | } | ||
26499 | _ACEOF | ||
26500 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26501 | if { (ac_try="$ac_link" | ||
26502 | case "(($ac_try" in | ||
26503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26504 | *) ac_try_echo=$ac_try;; | ||
26505 | esac | ||
26506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26507 | (eval "$ac_link") 2>conftest.er1 | ||
26508 | ac_status=$? | ||
26509 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26510 | rm -f conftest.er1 | ||
26511 | cat conftest.err >&5 | ||
26512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26513 | (exit $ac_status); } && { | ||
26514 | test -z "$ac_c_werror_flag" || | ||
26515 | test ! -s conftest.err | ||
26516 | } && test -s conftest$ac_exeext && | ||
26517 | $as_test_x conftest$ac_exeext; then | ||
26518 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes | ||
26519 | else | ||
26520 | echo "$as_me: failed program was:" >&5 | ||
26521 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26522 | |||
26523 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no | ||
26524 | fi | ||
26525 | |||
26526 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26527 | conftest$ac_exeext conftest.$ac_ext | ||
26528 | LIBS=$ac_check_lib_save_LIBS | ||
26529 | fi | ||
26530 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 | ||
26531 | echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } | ||
26532 | if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then | ||
26533 | cat >>confdefs.h <<\_ACEOF | ||
26534 | #define GSSAPI 1 | ||
26535 | _ACEOF | ||
26536 | |||
26537 | K5LIBS="-lgssapi_krb5 $K5LIBS" | ||
26538 | else | ||
26539 | { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5 | ||
26540 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; } | ||
26541 | if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then | ||
26542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26543 | else | ||
26544 | ac_check_lib_save_LIBS=$LIBS | ||
26545 | LIBS="-lgssapi $K5LIBS $LIBS" | ||
26546 | cat >conftest.$ac_ext <<_ACEOF | ||
26547 | /* confdefs.h. */ | ||
26548 | _ACEOF | ||
26549 | cat confdefs.h >>conftest.$ac_ext | ||
26550 | cat >>conftest.$ac_ext <<_ACEOF | ||
26551 | /* end confdefs.h. */ | ||
26552 | |||
26553 | /* Override any GCC internal prototype to avoid an error. | ||
26554 | Use char because int might match the return type of a GCC | ||
26555 | builtin and then its argument prototype would still apply. */ | ||
26556 | #ifdef __cplusplus | ||
26557 | extern "C" | ||
26558 | #endif | ||
26559 | char gss_init_sec_context (); | ||
26560 | int | ||
26561 | main () | ||
26562 | { | ||
26563 | return gss_init_sec_context (); | ||
26564 | ; | ||
26565 | return 0; | ||
26566 | } | ||
26567 | _ACEOF | ||
26568 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26569 | if { (ac_try="$ac_link" | ||
26570 | case "(($ac_try" in | ||
26571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26572 | *) ac_try_echo=$ac_try;; | ||
26573 | esac | ||
26574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26575 | (eval "$ac_link") 2>conftest.er1 | ||
26576 | ac_status=$? | ||
26577 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26578 | rm -f conftest.er1 | ||
26579 | cat conftest.err >&5 | ||
26580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26581 | (exit $ac_status); } && { | ||
26582 | test -z "$ac_c_werror_flag" || | ||
26583 | test ! -s conftest.err | ||
26584 | } && test -s conftest$ac_exeext && | ||
26585 | $as_test_x conftest$ac_exeext; then | ||
26586 | ac_cv_lib_gssapi_gss_init_sec_context=yes | ||
26587 | else | ||
26588 | echo "$as_me: failed program was:" >&5 | ||
26589 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26590 | |||
26591 | ac_cv_lib_gssapi_gss_init_sec_context=no | ||
26592 | fi | ||
26593 | |||
26594 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26595 | conftest$ac_exeext conftest.$ac_ext | ||
26596 | LIBS=$ac_check_lib_save_LIBS | ||
26597 | fi | ||
26598 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 | ||
26599 | echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } | ||
26600 | if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then | ||
26601 | cat >>confdefs.h <<\_ACEOF | ||
26602 | #define GSSAPI 1 | ||
26603 | _ACEOF | ||
26604 | |||
26605 | K5LIBS="-lgssapi $K5LIBS" | ||
26606 | else | ||
26607 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 | ||
26608 | echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} | ||
26609 | fi | ||
26610 | |||
26611 | |||
26612 | fi | ||
26613 | |||
26614 | |||
26615 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
26616 | { echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
26617 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; } | ||
26618 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
26619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26620 | fi | ||
26621 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
26622 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; } | ||
26623 | else | ||
26624 | # Is the header compilable? | ||
26625 | { echo "$as_me:$LINENO: checking gssapi.h usability" >&5 | ||
26626 | echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; } | ||
26627 | cat >conftest.$ac_ext <<_ACEOF | ||
26628 | /* confdefs.h. */ | ||
26629 | _ACEOF | ||
26630 | cat confdefs.h >>conftest.$ac_ext | ||
26631 | cat >>conftest.$ac_ext <<_ACEOF | ||
26632 | /* end confdefs.h. */ | ||
26633 | $ac_includes_default | ||
26634 | #include <gssapi.h> | ||
26635 | _ACEOF | ||
26636 | rm -f conftest.$ac_objext | ||
26637 | if { (ac_try="$ac_compile" | ||
26638 | case "(($ac_try" in | ||
26639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26640 | *) ac_try_echo=$ac_try;; | ||
26641 | esac | ||
26642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26643 | (eval "$ac_compile") 2>conftest.er1 | ||
26644 | ac_status=$? | ||
26645 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26646 | rm -f conftest.er1 | ||
26647 | cat conftest.err >&5 | ||
26648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26649 | (exit $ac_status); } && { | ||
26650 | test -z "$ac_c_werror_flag" || | ||
26651 | test ! -s conftest.err | ||
26652 | } && test -s conftest.$ac_objext; then | ||
26653 | ac_header_compiler=yes | ||
26654 | else | ||
26655 | echo "$as_me: failed program was:" >&5 | ||
26656 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26657 | |||
26658 | ac_header_compiler=no | ||
26659 | fi | ||
26660 | |||
26661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26662 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
26663 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
26664 | |||
26665 | # Is the header present? | ||
26666 | { echo "$as_me:$LINENO: checking gssapi.h presence" >&5 | ||
26667 | echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; } | ||
26668 | cat >conftest.$ac_ext <<_ACEOF | ||
26669 | /* confdefs.h. */ | ||
26670 | _ACEOF | ||
26671 | cat confdefs.h >>conftest.$ac_ext | ||
26672 | cat >>conftest.$ac_ext <<_ACEOF | ||
26673 | /* end confdefs.h. */ | ||
26674 | #include <gssapi.h> | ||
26675 | _ACEOF | ||
26676 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
26677 | case "(($ac_try" in | ||
26678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26679 | *) ac_try_echo=$ac_try;; | ||
26680 | esac | ||
26681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26682 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
26683 | ac_status=$? | ||
26684 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26685 | rm -f conftest.er1 | ||
26686 | cat conftest.err >&5 | ||
26687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26688 | (exit $ac_status); } >/dev/null && { | ||
26689 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
26690 | test ! -s conftest.err | ||
26691 | }; then | ||
26692 | ac_header_preproc=yes | ||
26693 | else | ||
26694 | echo "$as_me: failed program was:" >&5 | ||
26695 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26696 | |||
26697 | ac_header_preproc=no | ||
26698 | fi | ||
26699 | |||
26700 | rm -f conftest.err conftest.$ac_ext | ||
26701 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
26702 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
26703 | |||
26704 | # So? What about this header? | ||
26705 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
26706 | yes:no: ) | ||
26707 | { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
26708 | echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
26709 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5 | ||
26710 | echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;} | ||
26711 | ac_header_preproc=yes | ||
26712 | ;; | ||
26713 | no:yes:* ) | ||
26714 | { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5 | ||
26715 | echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;} | ||
26716 | { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5 | ||
26717 | echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;} | ||
26718 | { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5 | ||
26719 | echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;} | ||
26720 | { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
26721 | echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
26722 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5 | ||
26723 | echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;} | ||
26724 | { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5 | ||
26725 | echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;} | ||
26726 | ( cat <<\_ASBOX | ||
26727 | ## ------------------------------------------- ## | ||
26728 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
26729 | ## ------------------------------------------- ## | ||
26730 | _ASBOX | ||
26731 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
26732 | ;; | ||
26733 | esac | ||
26734 | { echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
26735 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; } | ||
26736 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
26737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26738 | else | ||
26739 | ac_cv_header_gssapi_h=$ac_header_preproc | ||
26740 | fi | ||
26741 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
26742 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; } | ||
26743 | |||
26744 | fi | ||
26745 | if test $ac_cv_header_gssapi_h = yes; then | ||
26746 | : | ||
26747 | else | ||
26748 | unset ac_cv_header_gssapi_h | ||
26749 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
26750 | |||
26751 | for ac_header in gssapi.h | ||
26752 | do | ||
26753 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
26754 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
26755 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
26756 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
26757 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
26758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26759 | fi | ||
26760 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
26761 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
26762 | echo "${ECHO_T}$ac_res" >&6; } | ||
26763 | else | ||
26764 | # Is the header compilable? | ||
26765 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
26766 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
26767 | cat >conftest.$ac_ext <<_ACEOF | ||
26768 | /* confdefs.h. */ | ||
26769 | _ACEOF | ||
26770 | cat confdefs.h >>conftest.$ac_ext | ||
26771 | cat >>conftest.$ac_ext <<_ACEOF | ||
26772 | /* end confdefs.h. */ | ||
26773 | $ac_includes_default | ||
26774 | #include <$ac_header> | ||
26775 | _ACEOF | ||
26776 | rm -f conftest.$ac_objext | ||
26777 | if { (ac_try="$ac_compile" | ||
26778 | case "(($ac_try" in | ||
26779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26780 | *) ac_try_echo=$ac_try;; | ||
26781 | esac | ||
26782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26783 | (eval "$ac_compile") 2>conftest.er1 | ||
26784 | ac_status=$? | ||
26785 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26786 | rm -f conftest.er1 | ||
26787 | cat conftest.err >&5 | ||
26788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26789 | (exit $ac_status); } && { | ||
26790 | test -z "$ac_c_werror_flag" || | ||
26791 | test ! -s conftest.err | ||
26792 | } && test -s conftest.$ac_objext; then | ||
26793 | ac_header_compiler=yes | ||
26794 | else | ||
26795 | echo "$as_me: failed program was:" >&5 | ||
26796 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26797 | |||
26798 | ac_header_compiler=no | ||
26799 | fi | ||
26800 | |||
26801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26802 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
26803 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
26804 | |||
26805 | # Is the header present? | ||
26806 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
26807 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
26808 | cat >conftest.$ac_ext <<_ACEOF | ||
26809 | /* confdefs.h. */ | ||
26810 | _ACEOF | ||
26811 | cat confdefs.h >>conftest.$ac_ext | ||
26812 | cat >>conftest.$ac_ext <<_ACEOF | ||
26813 | /* end confdefs.h. */ | ||
26814 | #include <$ac_header> | ||
26815 | _ACEOF | ||
26816 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
26817 | case "(($ac_try" in | ||
26818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26819 | *) ac_try_echo=$ac_try;; | ||
26820 | esac | ||
26821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26822 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
26823 | ac_status=$? | ||
26824 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26825 | rm -f conftest.er1 | ||
26826 | cat conftest.err >&5 | ||
26827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26828 | (exit $ac_status); } >/dev/null && { | ||
26829 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
26830 | test ! -s conftest.err | ||
26831 | }; then | ||
26832 | ac_header_preproc=yes | ||
26833 | else | ||
26834 | echo "$as_me: failed program was:" >&5 | ||
26835 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26836 | |||
26837 | ac_header_preproc=no | ||
26838 | fi | ||
26839 | |||
26840 | rm -f conftest.err conftest.$ac_ext | ||
26841 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
26842 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
26843 | |||
26844 | # So? What about this header? | ||
26845 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
26846 | yes:no: ) | ||
26847 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
26848 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
26849 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
26850 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
26851 | ac_header_preproc=yes | ||
26852 | ;; | ||
26853 | no:yes:* ) | ||
26854 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
26855 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
26856 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
26857 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
26858 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
26859 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
26860 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
26861 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
26862 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
26863 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
26864 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
26865 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
26866 | ( cat <<\_ASBOX | ||
26867 | ## ------------------------------------------- ## | ||
26868 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
26869 | ## ------------------------------------------- ## | ||
26870 | _ASBOX | ||
26871 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
26872 | ;; | ||
26873 | esac | ||
26874 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
26875 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
26876 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
26877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26878 | else | ||
26879 | eval "$as_ac_Header=\$ac_header_preproc" | ||
26880 | fi | ||
26881 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
26882 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
26883 | echo "${ECHO_T}$ac_res" >&6; } | ||
26884 | |||
26885 | fi | ||
26886 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
26887 | cat >>confdefs.h <<_ACEOF | ||
26888 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
26889 | _ACEOF | ||
26890 | |||
26891 | else | ||
26892 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 | ||
26893 | echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} | ||
26894 | |||
26895 | fi | ||
26896 | |||
26897 | done | ||
26898 | |||
26899 | |||
26900 | |||
26901 | fi | ||
26902 | |||
26903 | |||
26904 | |||
26905 | oldCPP="$CPPFLAGS" | ||
26906 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
26907 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
26908 | { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
26909 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; } | ||
26910 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
26911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26912 | fi | ||
26913 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
26914 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; } | ||
26915 | else | ||
26916 | # Is the header compilable? | ||
26917 | { echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5 | ||
26918 | echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; } | ||
26919 | cat >conftest.$ac_ext <<_ACEOF | ||
26920 | /* confdefs.h. */ | ||
26921 | _ACEOF | ||
26922 | cat confdefs.h >>conftest.$ac_ext | ||
26923 | cat >>conftest.$ac_ext <<_ACEOF | ||
26924 | /* end confdefs.h. */ | ||
26925 | $ac_includes_default | ||
26926 | #include <gssapi_krb5.h> | ||
26927 | _ACEOF | ||
26928 | rm -f conftest.$ac_objext | ||
26929 | if { (ac_try="$ac_compile" | ||
26930 | case "(($ac_try" in | ||
26931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26932 | *) ac_try_echo=$ac_try;; | ||
26933 | esac | ||
26934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26935 | (eval "$ac_compile") 2>conftest.er1 | ||
26936 | ac_status=$? | ||
26937 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26938 | rm -f conftest.er1 | ||
26939 | cat conftest.err >&5 | ||
26940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26941 | (exit $ac_status); } && { | ||
26942 | test -z "$ac_c_werror_flag" || | ||
26943 | test ! -s conftest.err | ||
26944 | } && test -s conftest.$ac_objext; then | ||
26945 | ac_header_compiler=yes | ||
26946 | else | ||
26947 | echo "$as_me: failed program was:" >&5 | ||
26948 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26949 | |||
26950 | ac_header_compiler=no | ||
26951 | fi | ||
26952 | |||
26953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26954 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
26955 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
26956 | |||
26957 | # Is the header present? | ||
26958 | { echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5 | ||
26959 | echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; } | ||
26960 | cat >conftest.$ac_ext <<_ACEOF | ||
26961 | /* confdefs.h. */ | ||
26962 | _ACEOF | ||
26963 | cat confdefs.h >>conftest.$ac_ext | ||
26964 | cat >>conftest.$ac_ext <<_ACEOF | ||
26965 | /* end confdefs.h. */ | ||
26966 | #include <gssapi_krb5.h> | ||
26967 | _ACEOF | ||
26968 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
26969 | case "(($ac_try" in | ||
26970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26971 | *) ac_try_echo=$ac_try;; | ||
26972 | esac | ||
26973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26974 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
26975 | ac_status=$? | ||
26976 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26977 | rm -f conftest.er1 | ||
26978 | cat conftest.err >&5 | ||
26979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26980 | (exit $ac_status); } >/dev/null && { | ||
26981 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
26982 | test ! -s conftest.err | ||
26983 | }; then | ||
26984 | ac_header_preproc=yes | ||
26985 | else | ||
26986 | echo "$as_me: failed program was:" >&5 | ||
26987 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26988 | |||
26989 | ac_header_preproc=no | ||
26990 | fi | ||
26991 | |||
26992 | rm -f conftest.err conftest.$ac_ext | ||
26993 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
26994 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
26995 | |||
26996 | # So? What about this header? | ||
26997 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
26998 | yes:no: ) | ||
26999 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
27000 | echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
27001 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5 | ||
27002 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;} | ||
27003 | ac_header_preproc=yes | ||
27004 | ;; | ||
27005 | no:yes:* ) | ||
27006 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5 | ||
27007 | echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;} | ||
27008 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5 | ||
27009 | echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;} | ||
27010 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5 | ||
27011 | echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;} | ||
27012 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
27013 | echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
27014 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5 | ||
27015 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;} | ||
27016 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5 | ||
27017 | echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;} | ||
27018 | ( cat <<\_ASBOX | ||
27019 | ## ------------------------------------------- ## | ||
27020 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
27021 | ## ------------------------------------------- ## | ||
27022 | _ASBOX | ||
27023 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
27024 | ;; | ||
27025 | esac | ||
27026 | { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
27027 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; } | ||
27028 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
27029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27030 | else | ||
27031 | ac_cv_header_gssapi_krb5_h=$ac_header_preproc | ||
27032 | fi | ||
27033 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
27034 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; } | ||
27035 | |||
27036 | fi | ||
27037 | if test $ac_cv_header_gssapi_krb5_h = yes; then | ||
27038 | : | ||
27039 | else | ||
27040 | CPPFLAGS="$oldCPP" | ||
27041 | fi | ||
27042 | |||
27043 | |||
27044 | |||
27045 | fi | ||
27046 | if test ! -z "$need_dash_r" ; then | ||
27047 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
27048 | fi | ||
27049 | if test ! -z "$blibpath" ; then | ||
27050 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
27051 | fi | ||
27052 | |||
27053 | |||
27054 | |||
27055 | for ac_header in gssapi.h gssapi/gssapi.h | ||
27056 | do | ||
27057 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
27058 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27059 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
27060 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
27061 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27063 | fi | ||
27064 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
27065 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
27066 | echo "${ECHO_T}$ac_res" >&6; } | ||
27067 | else | ||
27068 | # Is the header compilable? | ||
27069 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
27070 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
27071 | cat >conftest.$ac_ext <<_ACEOF | ||
27072 | /* confdefs.h. */ | ||
27073 | _ACEOF | ||
27074 | cat confdefs.h >>conftest.$ac_ext | ||
27075 | cat >>conftest.$ac_ext <<_ACEOF | ||
27076 | /* end confdefs.h. */ | ||
27077 | $ac_includes_default | ||
27078 | #include <$ac_header> | ||
27079 | _ACEOF | ||
27080 | rm -f conftest.$ac_objext | ||
27081 | if { (ac_try="$ac_compile" | ||
27082 | case "(($ac_try" in | ||
27083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27084 | *) ac_try_echo=$ac_try;; | ||
27085 | esac | ||
27086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27087 | (eval "$ac_compile") 2>conftest.er1 | ||
27088 | ac_status=$? | ||
27089 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27090 | rm -f conftest.er1 | ||
27091 | cat conftest.err >&5 | ||
27092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27093 | (exit $ac_status); } && { | ||
27094 | test -z "$ac_c_werror_flag" || | ||
27095 | test ! -s conftest.err | ||
27096 | } && test -s conftest.$ac_objext; then | ||
27097 | ac_header_compiler=yes | ||
27098 | else | ||
27099 | echo "$as_me: failed program was:" >&5 | ||
27100 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27101 | |||
27102 | ac_header_compiler=no | ||
27103 | fi | ||
27104 | |||
27105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27106 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
27107 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
27108 | |||
27109 | # Is the header present? | ||
27110 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
27111 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
27112 | cat >conftest.$ac_ext <<_ACEOF | ||
27113 | /* confdefs.h. */ | ||
27114 | _ACEOF | ||
27115 | cat confdefs.h >>conftest.$ac_ext | ||
27116 | cat >>conftest.$ac_ext <<_ACEOF | ||
27117 | /* end confdefs.h. */ | ||
27118 | #include <$ac_header> | ||
27119 | _ACEOF | ||
27120 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
27121 | case "(($ac_try" in | ||
27122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27123 | *) ac_try_echo=$ac_try;; | ||
27124 | esac | ||
27125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27126 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
27127 | ac_status=$? | ||
27128 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27129 | rm -f conftest.er1 | ||
27130 | cat conftest.err >&5 | ||
27131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27132 | (exit $ac_status); } >/dev/null && { | ||
27133 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
27134 | test ! -s conftest.err | ||
27135 | }; then | ||
27136 | ac_header_preproc=yes | ||
27137 | else | ||
27138 | echo "$as_me: failed program was:" >&5 | ||
27139 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27140 | |||
27141 | ac_header_preproc=no | ||
27142 | fi | ||
27143 | |||
27144 | rm -f conftest.err conftest.$ac_ext | ||
27145 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
27146 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
27147 | |||
27148 | # So? What about this header? | ||
27149 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
27150 | yes:no: ) | ||
27151 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
27152 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
27153 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
27154 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
27155 | ac_header_preproc=yes | ||
27156 | ;; | ||
27157 | no:yes:* ) | ||
27158 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
27159 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
27160 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
27161 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
27162 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
27163 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
27164 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
27165 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
27166 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
27167 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
27168 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
27169 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
27170 | ( cat <<\_ASBOX | ||
27171 | ## ------------------------------------------- ## | ||
27172 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
27173 | ## ------------------------------------------- ## | ||
27174 | _ASBOX | ||
27175 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
27176 | ;; | ||
27177 | esac | ||
27178 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
27179 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
27180 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27182 | else | ||
27183 | eval "$as_ac_Header=\$ac_header_preproc" | ||
27184 | fi | ||
27185 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
27186 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
27187 | echo "${ECHO_T}$ac_res" >&6; } | ||
27188 | |||
27189 | fi | ||
27190 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
27191 | cat >>confdefs.h <<_ACEOF | ||
27192 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
27193 | _ACEOF | ||
27194 | |||
27195 | fi | ||
27196 | |||
27197 | done | ||
27198 | |||
27199 | |||
27200 | |||
27201 | for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h | ||
27202 | do | ||
27203 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
27204 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27205 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
27206 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
27207 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27209 | fi | ||
27210 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
27211 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
27212 | echo "${ECHO_T}$ac_res" >&6; } | ||
27213 | else | ||
27214 | # Is the header compilable? | ||
27215 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
27216 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
27217 | cat >conftest.$ac_ext <<_ACEOF | ||
27218 | /* confdefs.h. */ | ||
27219 | _ACEOF | ||
27220 | cat confdefs.h >>conftest.$ac_ext | ||
27221 | cat >>conftest.$ac_ext <<_ACEOF | ||
27222 | /* end confdefs.h. */ | ||
27223 | $ac_includes_default | ||
27224 | #include <$ac_header> | ||
27225 | _ACEOF | ||
27226 | rm -f conftest.$ac_objext | ||
27227 | if { (ac_try="$ac_compile" | ||
27228 | case "(($ac_try" in | ||
27229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27230 | *) ac_try_echo=$ac_try;; | ||
27231 | esac | ||
27232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27233 | (eval "$ac_compile") 2>conftest.er1 | ||
27234 | ac_status=$? | ||
27235 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27236 | rm -f conftest.er1 | ||
27237 | cat conftest.err >&5 | ||
27238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27239 | (exit $ac_status); } && { | ||
27240 | test -z "$ac_c_werror_flag" || | ||
27241 | test ! -s conftest.err | ||
27242 | } && test -s conftest.$ac_objext; then | ||
27243 | ac_header_compiler=yes | ||
27244 | else | ||
27245 | echo "$as_me: failed program was:" >&5 | ||
27246 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27247 | |||
27248 | ac_header_compiler=no | ||
27249 | fi | ||
27250 | |||
27251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27252 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
27253 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
27254 | |||
27255 | # Is the header present? | ||
27256 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
27257 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
27258 | cat >conftest.$ac_ext <<_ACEOF | ||
27259 | /* confdefs.h. */ | ||
27260 | _ACEOF | ||
27261 | cat confdefs.h >>conftest.$ac_ext | ||
27262 | cat >>conftest.$ac_ext <<_ACEOF | ||
27263 | /* end confdefs.h. */ | ||
27264 | #include <$ac_header> | ||
27265 | _ACEOF | ||
27266 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
27267 | case "(($ac_try" in | ||
27268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27269 | *) ac_try_echo=$ac_try;; | ||
27270 | esac | ||
27271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27272 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
27273 | ac_status=$? | ||
27274 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27275 | rm -f conftest.er1 | ||
27276 | cat conftest.err >&5 | ||
27277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27278 | (exit $ac_status); } >/dev/null && { | ||
27279 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
27280 | test ! -s conftest.err | ||
27281 | }; then | ||
27282 | ac_header_preproc=yes | ||
27283 | else | ||
27284 | echo "$as_me: failed program was:" >&5 | ||
27285 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27286 | |||
27287 | ac_header_preproc=no | ||
27288 | fi | ||
27289 | |||
27290 | rm -f conftest.err conftest.$ac_ext | ||
27291 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
27292 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
27293 | |||
27294 | # So? What about this header? | ||
27295 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
27296 | yes:no: ) | ||
27297 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
27298 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
27299 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
27300 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
27301 | ac_header_preproc=yes | ||
27302 | ;; | ||
27303 | no:yes:* ) | ||
27304 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
27305 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
27306 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
27307 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
27308 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
27309 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
27310 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
27311 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
27312 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
27313 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
27314 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
27315 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
27316 | ( cat <<\_ASBOX | ||
27317 | ## ------------------------------------------- ## | ||
27318 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
27319 | ## ------------------------------------------- ## | ||
27320 | _ASBOX | ||
27321 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
27322 | ;; | ||
27323 | esac | ||
27324 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
27325 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
27326 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27328 | else | ||
27329 | eval "$as_ac_Header=\$ac_header_preproc" | ||
27330 | fi | ||
27331 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
27332 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
27333 | echo "${ECHO_T}$ac_res" >&6; } | ||
27334 | |||
27335 | fi | ||
27336 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
27337 | cat >>confdefs.h <<_ACEOF | ||
27338 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
27339 | _ACEOF | ||
27340 | |||
27341 | fi | ||
27342 | |||
27343 | done | ||
27344 | |||
27345 | |||
27346 | |||
27347 | for ac_header in gssapi_generic.h gssapi/gssapi_generic.h | ||
27348 | do | ||
27349 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
27350 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27351 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
27352 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
27353 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27355 | fi | ||
27356 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
27357 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
27358 | echo "${ECHO_T}$ac_res" >&6; } | ||
27359 | else | ||
27360 | # Is the header compilable? | ||
27361 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
27362 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
27363 | cat >conftest.$ac_ext <<_ACEOF | ||
27364 | /* confdefs.h. */ | ||
27365 | _ACEOF | ||
27366 | cat confdefs.h >>conftest.$ac_ext | ||
27367 | cat >>conftest.$ac_ext <<_ACEOF | ||
27368 | /* end confdefs.h. */ | ||
27369 | $ac_includes_default | ||
27370 | #include <$ac_header> | ||
27371 | _ACEOF | ||
27372 | rm -f conftest.$ac_objext | ||
27373 | if { (ac_try="$ac_compile" | ||
27374 | case "(($ac_try" in | ||
27375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27376 | *) ac_try_echo=$ac_try;; | ||
27377 | esac | ||
27378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27379 | (eval "$ac_compile") 2>conftest.er1 | ||
27380 | ac_status=$? | ||
27381 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27382 | rm -f conftest.er1 | ||
27383 | cat conftest.err >&5 | ||
27384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27385 | (exit $ac_status); } && { | ||
27386 | test -z "$ac_c_werror_flag" || | ||
27387 | test ! -s conftest.err | ||
27388 | } && test -s conftest.$ac_objext; then | ||
27389 | ac_header_compiler=yes | ||
27390 | else | ||
27391 | echo "$as_me: failed program was:" >&5 | ||
27392 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27393 | |||
27394 | ac_header_compiler=no | ||
27395 | fi | ||
27396 | |||
27397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27398 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
27399 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
27400 | |||
27401 | # Is the header present? | ||
27402 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
27403 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
27404 | cat >conftest.$ac_ext <<_ACEOF | ||
27405 | /* confdefs.h. */ | ||
27406 | _ACEOF | ||
27407 | cat confdefs.h >>conftest.$ac_ext | ||
27408 | cat >>conftest.$ac_ext <<_ACEOF | ||
27409 | /* end confdefs.h. */ | ||
27410 | #include <$ac_header> | ||
27411 | _ACEOF | ||
27412 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
27413 | case "(($ac_try" in | ||
27414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27415 | *) ac_try_echo=$ac_try;; | ||
27416 | esac | ||
27417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27418 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
27419 | ac_status=$? | ||
27420 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27421 | rm -f conftest.er1 | ||
27422 | cat conftest.err >&5 | ||
27423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27424 | (exit $ac_status); } >/dev/null && { | ||
27425 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
27426 | test ! -s conftest.err | ||
27427 | }; then | ||
27428 | ac_header_preproc=yes | ||
27429 | else | ||
27430 | echo "$as_me: failed program was:" >&5 | ||
27431 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27432 | |||
27433 | ac_header_preproc=no | ||
27434 | fi | ||
27435 | |||
27436 | rm -f conftest.err conftest.$ac_ext | ||
27437 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
27438 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
27439 | |||
27440 | # So? What about this header? | ||
27441 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
27442 | yes:no: ) | ||
27443 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
27444 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
27445 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
27446 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
27447 | ac_header_preproc=yes | ||
27448 | ;; | ||
27449 | no:yes:* ) | ||
27450 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
27451 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
27452 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
27453 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
27454 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
27455 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
27456 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
27457 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
27458 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
27459 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
27460 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
27461 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
27462 | ( cat <<\_ASBOX | ||
27463 | ## ------------------------------------------- ## | ||
27464 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
27465 | ## ------------------------------------------- ## | ||
27466 | _ASBOX | ||
27467 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
27468 | ;; | ||
27469 | esac | ||
27470 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
27471 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
27472 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27474 | else | ||
27475 | eval "$as_ac_Header=\$ac_header_preproc" | ||
27476 | fi | ||
27477 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
27478 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
27479 | echo "${ECHO_T}$ac_res" >&6; } | ||
27480 | |||
27481 | fi | ||
27482 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
27483 | cat >>confdefs.h <<_ACEOF | ||
27484 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
27485 | _ACEOF | ||
27486 | |||
27487 | fi | ||
27488 | |||
27489 | done | ||
27490 | |||
27491 | |||
27492 | LIBS="$LIBS $K5LIBS" | ||
27493 | { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5 | ||
27494 | echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; } | ||
27495 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
27496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27497 | else | ||
27498 | ac_func_search_save_LIBS=$LIBS | ||
27499 | cat >conftest.$ac_ext <<_ACEOF | ||
27500 | /* confdefs.h. */ | ||
27501 | _ACEOF | ||
27502 | cat confdefs.h >>conftest.$ac_ext | ||
27503 | cat >>conftest.$ac_ext <<_ACEOF | ||
27504 | /* end confdefs.h. */ | ||
27505 | |||
27506 | /* Override any GCC internal prototype to avoid an error. | ||
27507 | Use char because int might match the return type of a GCC | ||
27508 | builtin and then its argument prototype would still apply. */ | ||
27509 | #ifdef __cplusplus | ||
27510 | extern "C" | ||
27511 | #endif | ||
27512 | char k_hasafs (); | ||
27513 | int | ||
27514 | main () | ||
27515 | { | ||
27516 | return k_hasafs (); | ||
27517 | ; | ||
27518 | return 0; | ||
27519 | } | ||
27520 | _ACEOF | ||
27521 | for ac_lib in '' kafs; do | ||
27522 | if test -z "$ac_lib"; then | ||
27523 | ac_res="none required" | ||
27524 | else | ||
27525 | ac_res=-l$ac_lib | ||
27526 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
27527 | fi | ||
27528 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
27529 | if { (ac_try="$ac_link" | ||
27530 | case "(($ac_try" in | ||
27531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27532 | *) ac_try_echo=$ac_try;; | ||
27533 | esac | ||
27534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27535 | (eval "$ac_link") 2>conftest.er1 | ||
27536 | ac_status=$? | ||
27537 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27538 | rm -f conftest.er1 | ||
27539 | cat conftest.err >&5 | ||
27540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27541 | (exit $ac_status); } && { | ||
27542 | test -z "$ac_c_werror_flag" || | ||
27543 | test ! -s conftest.err | ||
27544 | } && test -s conftest$ac_exeext && | ||
27545 | $as_test_x conftest$ac_exeext; then | ||
27546 | ac_cv_search_k_hasafs=$ac_res | ||
27547 | else | ||
27548 | echo "$as_me: failed program was:" >&5 | ||
27549 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27550 | |||
27551 | |||
27552 | fi | ||
27553 | |||
27554 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
27555 | conftest$ac_exeext | ||
27556 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
27557 | break | ||
27558 | fi | ||
27559 | done | ||
27560 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
27561 | : | ||
27562 | else | ||
27563 | ac_cv_search_k_hasafs=no | ||
27564 | fi | ||
27565 | rm conftest.$ac_ext | ||
27566 | LIBS=$ac_func_search_save_LIBS | ||
27567 | fi | ||
27568 | { echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5 | ||
27569 | echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; } | ||
27570 | ac_res=$ac_cv_search_k_hasafs | ||
27571 | if test "$ac_res" != no; then | ||
27572 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
27573 | |||
27574 | cat >>confdefs.h <<\_ACEOF | ||
27575 | #define USE_AFS 1 | ||
27576 | _ACEOF | ||
27577 | |||
27578 | fi | ||
27579 | |||
27580 | fi | ||
27581 | |||
27582 | |||
27583 | fi | ||
27584 | |||
27585 | |||
27586 | # Looking for programs, paths and files | ||
27587 | |||
27588 | PRIVSEP_PATH=/var/empty | ||
27589 | |||
27590 | # Check whether --with-privsep-path was given. | ||
27591 | if test "${with_privsep_path+set}" = set; then | ||
27592 | withval=$with_privsep_path; | ||
27593 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
27594 | test "x${withval}" != "xyes"; then | ||
27595 | PRIVSEP_PATH=$withval | ||
27596 | fi | ||
27597 | |||
27598 | |||
27599 | fi | ||
27600 | |||
27601 | |||
27602 | |||
27603 | |||
27604 | # Check whether --with-xauth was given. | ||
27605 | if test "${with_xauth+set}" = set; then | ||
27606 | withval=$with_xauth; | ||
27607 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
27608 | test "x${withval}" != "xyes"; then | ||
27609 | xauth_path=$withval | ||
27610 | fi | ||
27611 | |||
27612 | else | ||
27613 | |||
27614 | TestPath="$PATH" | ||
27615 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
27616 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
27617 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
27618 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
27619 | # Extract the first word of "xauth", so it can be a program name with args. | ||
27620 | set dummy xauth; ac_word=$2 | ||
27621 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
27622 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
27623 | if test "${ac_cv_path_xauth_path+set}" = set; then | ||
27624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27625 | else | ||
27626 | case $xauth_path in | ||
27627 | [\\/]* | ?:[\\/]*) | ||
27628 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
27629 | ;; | ||
27630 | *) | ||
27631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
27632 | for as_dir in $TestPath | ||
27633 | do | ||
27634 | IFS=$as_save_IFS | ||
27635 | test -z "$as_dir" && as_dir=. | ||
27636 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
27637 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
27638 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" | ||
27639 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
27640 | break 2 | ||
27641 | fi | ||
27642 | done | ||
27643 | done | ||
27644 | IFS=$as_save_IFS | ||
27645 | |||
27646 | ;; | ||
27647 | esac | ||
27648 | fi | ||
27649 | xauth_path=$ac_cv_path_xauth_path | ||
27650 | if test -n "$xauth_path"; then | ||
27651 | { echo "$as_me:$LINENO: result: $xauth_path" >&5 | ||
27652 | echo "${ECHO_T}$xauth_path" >&6; } | ||
27653 | else | ||
27654 | { echo "$as_me:$LINENO: result: no" >&5 | ||
27655 | echo "${ECHO_T}no" >&6; } | ||
27656 | fi | ||
27657 | |||
27658 | |||
27659 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
27660 | xauth_path="/usr/openwin/bin/xauth" | ||
27661 | fi | ||
27662 | |||
27663 | |||
27664 | fi | ||
27665 | |||
27666 | |||
27667 | STRIP_OPT=-s | ||
27668 | # Check whether --enable-strip was given. | ||
27669 | if test "${enable_strip+set}" = set; then | ||
27670 | enableval=$enable_strip; | ||
27671 | if test "x$enableval" = "xno" ; then | ||
27672 | STRIP_OPT= | ||
27673 | fi | ||
27674 | |||
27675 | |||
27676 | fi | ||
27677 | |||
27678 | |||
27679 | |||
27680 | if test -z "$xauth_path" ; then | ||
27681 | XAUTH_PATH="undefined" | ||
27682 | |||
27683 | else | ||
27684 | |||
27685 | cat >>confdefs.h <<_ACEOF | ||
27686 | #define XAUTH_PATH "$xauth_path" | ||
27687 | _ACEOF | ||
27688 | |||
27689 | XAUTH_PATH=$xauth_path | ||
27690 | |||
27691 | fi | ||
27692 | |||
27693 | # Check for mail directory (last resort if we cannot get it from headers) | ||
27694 | if test ! -z "$MAIL" ; then | ||
27695 | maildir=`dirname $MAIL` | ||
27696 | |||
27697 | cat >>confdefs.h <<_ACEOF | ||
27698 | #define MAIL_DIRECTORY "$maildir" | ||
27699 | _ACEOF | ||
27700 | |||
27701 | fi | ||
27702 | |||
27703 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then | ||
27704 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5 | ||
27705 | echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;} | ||
27706 | disable_ptmx_check=yes | ||
27707 | fi | ||
27708 | if test -z "$no_dev_ptmx" ; then | ||
27709 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
27710 | { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5 | ||
27711 | echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; } | ||
27712 | if test "${ac_cv_file___dev_ptmx_+set}" = set; then | ||
27713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27714 | else | ||
27715 | test "$cross_compiling" = yes && | ||
27716 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
27717 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
27718 | { (exit 1); exit 1; }; } | ||
27719 | if test -r ""/dev/ptmx""; then | ||
27720 | ac_cv_file___dev_ptmx_=yes | ||
27721 | else | ||
27722 | ac_cv_file___dev_ptmx_=no | ||
27723 | fi | ||
27724 | fi | ||
27725 | { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5 | ||
27726 | echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; } | ||
27727 | if test $ac_cv_file___dev_ptmx_ = yes; then | ||
27728 | |||
27729 | |||
27730 | cat >>confdefs.h <<_ACEOF | ||
27731 | #define HAVE_DEV_PTMX 1 | ||
27732 | _ACEOF | ||
27733 | |||
27734 | have_dev_ptmx=1 | ||
27735 | |||
27736 | |||
27737 | fi | ||
27738 | |||
27739 | fi | ||
27740 | fi | ||
27741 | |||
27742 | if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then | ||
27743 | { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5 | ||
27744 | echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; } | ||
27745 | if test "${ac_cv_file___dev_ptc_+set}" = set; then | ||
27746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27747 | else | ||
27748 | test "$cross_compiling" = yes && | ||
27749 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
27750 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
27751 | { (exit 1); exit 1; }; } | ||
27752 | if test -r ""/dev/ptc""; then | ||
27753 | ac_cv_file___dev_ptc_=yes | ||
27754 | else | ||
27755 | ac_cv_file___dev_ptc_=no | ||
27756 | fi | ||
27757 | fi | ||
27758 | { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5 | ||
27759 | echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; } | ||
27760 | if test $ac_cv_file___dev_ptc_ = yes; then | ||
27761 | |||
27762 | |||
27763 | cat >>confdefs.h <<_ACEOF | ||
27764 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
27765 | _ACEOF | ||
27766 | |||
27767 | have_dev_ptc=1 | ||
27768 | |||
27769 | |||
27770 | fi | ||
27771 | |||
27772 | else | ||
27773 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5 | ||
27774 | echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;} | ||
27775 | fi | ||
27776 | |||
27777 | # Options from here on. Some of these are preset by platform above | ||
27778 | |||
27779 | # Check whether --with-mantype was given. | ||
27780 | if test "${with_mantype+set}" = set; then | ||
27781 | withval=$with_mantype; | ||
27782 | case "$withval" in | ||
27783 | man|cat|doc) | ||
27784 | MANTYPE=$withval | ||
27785 | ;; | ||
27786 | *) | ||
27787 | { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5 | ||
27788 | echo "$as_me: error: invalid man type: $withval" >&2;} | ||
27789 | { (exit 1); exit 1; }; } | ||
27790 | ;; | ||
27791 | esac | ||
27792 | |||
27793 | |||
27794 | fi | ||
27795 | |||
27796 | if test -z "$MANTYPE"; then | ||
27797 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
27798 | for ac_prog in nroff awf | ||
27799 | do | ||
27800 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
27801 | set dummy $ac_prog; ac_word=$2 | ||
27802 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
27803 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
27804 | if test "${ac_cv_path_NROFF+set}" = set; then | ||
27805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27806 | else | ||
27807 | case $NROFF in | ||
27808 | [\\/]* | ?:[\\/]*) | ||
27809 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
27810 | ;; | ||
27811 | *) | ||
27812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
27813 | for as_dir in $TestPath | ||
27814 | do | ||
27815 | IFS=$as_save_IFS | ||
27816 | test -z "$as_dir" && as_dir=. | ||
27817 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
27818 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
27819 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
27820 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
27821 | break 2 | ||
27822 | fi | ||
27823 | done | ||
27824 | done | ||
27825 | IFS=$as_save_IFS | ||
27826 | |||
27827 | ;; | ||
27828 | esac | ||
27829 | fi | ||
27830 | NROFF=$ac_cv_path_NROFF | ||
27831 | if test -n "$NROFF"; then | ||
27832 | { echo "$as_me:$LINENO: result: $NROFF" >&5 | ||
27833 | echo "${ECHO_T}$NROFF" >&6; } | ||
27834 | else | ||
27835 | { echo "$as_me:$LINENO: result: no" >&5 | ||
27836 | echo "${ECHO_T}no" >&6; } | ||
27837 | fi | ||
27838 | |||
27839 | |||
27840 | test -n "$NROFF" && break | ||
27841 | done | ||
27842 | test -n "$NROFF" || NROFF="/bin/false" | ||
27843 | |||
27844 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
27845 | MANTYPE=doc | ||
27846 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
27847 | MANTYPE=man | ||
27848 | else | ||
27849 | MANTYPE=cat | ||
27850 | fi | ||
27851 | fi | ||
27852 | |||
27853 | if test "$MANTYPE" = "doc"; then | ||
27854 | mansubdir=man; | ||
27855 | else | ||
27856 | mansubdir=$MANTYPE; | ||
27857 | fi | ||
27858 | |||
27859 | |||
27860 | # Check whether to enable MD5 passwords | ||
27861 | MD5_MSG="no" | ||
27862 | |||
27863 | # Check whether --with-md5-passwords was given. | ||
27864 | if test "${with_md5_passwords+set}" = set; then | ||
27865 | withval=$with_md5_passwords; | ||
27866 | if test "x$withval" != "xno" ; then | ||
27867 | |||
27868 | cat >>confdefs.h <<\_ACEOF | ||
27869 | #define HAVE_MD5_PASSWORDS 1 | ||
27870 | _ACEOF | ||
27871 | |||
27872 | MD5_MSG="yes" | ||
27873 | fi | ||
27874 | |||
27875 | |||
27876 | fi | ||
27877 | |||
27878 | |||
27879 | # Whether to disable shadow password support | ||
27880 | |||
27881 | # Check whether --with-shadow was given. | ||
27882 | if test "${with_shadow+set}" = set; then | ||
27883 | withval=$with_shadow; | ||
27884 | if test "x$withval" = "xno" ; then | ||
27885 | cat >>confdefs.h <<\_ACEOF | ||
27886 | #define DISABLE_SHADOW 1 | ||
27887 | _ACEOF | ||
27888 | |||
27889 | disable_shadow=yes | ||
27890 | fi | ||
27891 | |||
27892 | |||
27893 | fi | ||
27894 | |||
27895 | |||
27896 | if test -z "$disable_shadow" ; then | ||
27897 | { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5 | ||
27898 | echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; } | ||
27899 | cat >conftest.$ac_ext <<_ACEOF | ||
27900 | /* confdefs.h. */ | ||
27901 | _ACEOF | ||
27902 | cat confdefs.h >>conftest.$ac_ext | ||
27903 | cat >>conftest.$ac_ext <<_ACEOF | ||
27904 | /* end confdefs.h. */ | ||
27905 | |||
27906 | #include <sys/types.h> | ||
27907 | #include <shadow.h> | ||
27908 | struct spwd sp; | ||
27909 | |||
27910 | int | ||
27911 | main () | ||
27912 | { | ||
27913 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
27914 | ; | ||
27915 | return 0; | ||
27916 | } | ||
27917 | _ACEOF | ||
27918 | rm -f conftest.$ac_objext | ||
27919 | if { (ac_try="$ac_compile" | ||
27920 | case "(($ac_try" in | ||
27921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27922 | *) ac_try_echo=$ac_try;; | ||
27923 | esac | ||
27924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27925 | (eval "$ac_compile") 2>conftest.er1 | ||
27926 | ac_status=$? | ||
27927 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27928 | rm -f conftest.er1 | ||
27929 | cat conftest.err >&5 | ||
27930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27931 | (exit $ac_status); } && { | ||
27932 | test -z "$ac_c_werror_flag" || | ||
27933 | test ! -s conftest.err | ||
27934 | } && test -s conftest.$ac_objext; then | ||
27935 | sp_expire_available=yes | ||
27936 | else | ||
27937 | echo "$as_me: failed program was:" >&5 | ||
27938 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27939 | |||
27940 | |||
27941 | |||
27942 | fi | ||
27943 | |||
27944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27945 | |||
27946 | if test "x$sp_expire_available" = "xyes" ; then | ||
27947 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
27948 | echo "${ECHO_T}yes" >&6; } | ||
27949 | |||
27950 | cat >>confdefs.h <<\_ACEOF | ||
27951 | #define HAS_SHADOW_EXPIRE 1 | ||
27952 | _ACEOF | ||
27953 | |||
27954 | else | ||
27955 | { echo "$as_me:$LINENO: result: no" >&5 | ||
27956 | echo "${ECHO_T}no" >&6; } | ||
27957 | fi | ||
27958 | fi | ||
27959 | |||
27960 | # Use ip address instead of hostname in $DISPLAY | ||
27961 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
27962 | DISPLAY_HACK_MSG="yes" | ||
27963 | |||
27964 | cat >>confdefs.h <<\_ACEOF | ||
27965 | #define IPADDR_IN_DISPLAY 1 | ||
27966 | _ACEOF | ||
27967 | |||
27968 | else | ||
27969 | DISPLAY_HACK_MSG="no" | ||
27970 | |||
27971 | # Check whether --with-ipaddr-display was given. | ||
27972 | if test "${with_ipaddr_display+set}" = set; then | ||
27973 | withval=$with_ipaddr_display; | ||
27974 | if test "x$withval" != "xno" ; then | ||
27975 | cat >>confdefs.h <<\_ACEOF | ||
27976 | #define IPADDR_IN_DISPLAY 1 | ||
27977 | _ACEOF | ||
27978 | |||
27979 | DISPLAY_HACK_MSG="yes" | ||
27980 | fi | ||
27981 | |||
27982 | |||
27983 | fi | ||
27984 | |||
27985 | fi | ||
27986 | |||
27987 | # check for /etc/default/login and use it if present. | ||
27988 | # Check whether --enable-etc-default-login was given. | ||
27989 | if test "${enable_etc_default_login+set}" = set; then | ||
27990 | enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then | ||
27991 | { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5 | ||
27992 | echo "$as_me: /etc/default/login handling disabled" >&6;} | ||
27993 | etc_default_login=no | ||
27994 | else | ||
27995 | etc_default_login=yes | ||
27996 | fi | ||
27997 | else | ||
27998 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; | ||
27999 | then | ||
28000 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5 | ||
28001 | echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;} | ||
28002 | etc_default_login=no | ||
28003 | else | ||
28004 | etc_default_login=yes | ||
28005 | fi | ||
28006 | |||
28007 | fi | ||
28008 | |||
28009 | |||
28010 | if test "x$etc_default_login" != "xno"; then | ||
28011 | { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5 | ||
28012 | echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; } | ||
28013 | if test "${ac_cv_file___etc_default_login_+set}" = set; then | ||
28014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28015 | else | ||
28016 | test "$cross_compiling" = yes && | ||
28017 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
28018 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
28019 | { (exit 1); exit 1; }; } | ||
28020 | if test -r ""/etc/default/login""; then | ||
28021 | ac_cv_file___etc_default_login_=yes | ||
28022 | else | ||
28023 | ac_cv_file___etc_default_login_=no | ||
28024 | fi | ||
28025 | fi | ||
28026 | { echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5 | ||
28027 | echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; } | ||
28028 | if test $ac_cv_file___etc_default_login_ = yes; then | ||
28029 | external_path_file=/etc/default/login | ||
28030 | fi | ||
28031 | |||
28032 | if test "x$external_path_file" = "x/etc/default/login"; then | ||
28033 | |||
28034 | cat >>confdefs.h <<\_ACEOF | ||
28035 | #define HAVE_ETC_DEFAULT_LOGIN 1 | ||
28036 | _ACEOF | ||
28037 | |||
28038 | fi | ||
28039 | fi | ||
28040 | |||
28041 | if test $ac_cv_func_login_getcapbool = "yes" && \ | ||
28042 | test $ac_cv_header_login_cap_h = "yes" ; then | ||
28043 | external_path_file=/etc/login.conf | ||
28044 | fi | ||
28045 | |||
28046 | # Whether to mess with the default path | ||
28047 | SERVER_PATH_MSG="(default)" | ||
28048 | |||
28049 | # Check whether --with-default-path was given. | ||
28050 | if test "${with_default_path+set}" = set; then | ||
28051 | withval=$with_default_path; | ||
28052 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
28053 | { echo "$as_me:$LINENO: WARNING: | ||
28054 | --with-default-path=PATH has no effect on this system. | ||
28055 | Edit /etc/login.conf instead." >&5 | ||
28056 | echo "$as_me: WARNING: | ||
28057 | --with-default-path=PATH has no effect on this system. | ||
28058 | Edit /etc/login.conf instead." >&2;} | ||
28059 | elif test "x$withval" != "xno" ; then | ||
28060 | if test ! -z "$external_path_file" ; then | ||
28061 | { echo "$as_me:$LINENO: WARNING: | ||
28062 | --with-default-path=PATH will only be used if PATH is not defined in | ||
28063 | $external_path_file ." >&5 | ||
28064 | echo "$as_me: WARNING: | ||
28065 | --with-default-path=PATH will only be used if PATH is not defined in | ||
28066 | $external_path_file ." >&2;} | ||
28067 | fi | ||
28068 | user_path="$withval" | ||
28069 | SERVER_PATH_MSG="$withval" | ||
28070 | fi | ||
28071 | |||
28072 | else | ||
28073 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
28074 | { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
28075 | echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
28076 | else | ||
28077 | if test ! -z "$external_path_file" ; then | ||
28078 | { echo "$as_me:$LINENO: WARNING: | ||
28079 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
28080 | otherwise scp will not work." >&5 | ||
28081 | echo "$as_me: WARNING: | ||
28082 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
28083 | otherwise scp will not work." >&2;} | ||
28084 | fi | ||
28085 | if test "$cross_compiling" = yes; then | ||
28086 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
28087 | |||
28088 | else | ||
28089 | cat >conftest.$ac_ext <<_ACEOF | ||
28090 | /* confdefs.h. */ | ||
28091 | _ACEOF | ||
28092 | cat confdefs.h >>conftest.$ac_ext | ||
28093 | cat >>conftest.$ac_ext <<_ACEOF | ||
28094 | /* end confdefs.h. */ | ||
28095 | |||
28096 | /* find out what STDPATH is */ | ||
28097 | #include <stdio.h> | ||
28098 | #ifdef HAVE_PATHS_H | ||
28099 | # include <paths.h> | ||
28100 | #endif | ||
28101 | #ifndef _PATH_STDPATH | ||
28102 | # ifdef _PATH_USERPATH /* Irix */ | ||
28103 | # define _PATH_STDPATH _PATH_USERPATH | ||
28104 | # else | ||
28105 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
28106 | # endif | ||
28107 | #endif | ||
28108 | #include <sys/types.h> | ||
28109 | #include <sys/stat.h> | ||
28110 | #include <fcntl.h> | ||
28111 | #define DATA "conftest.stdpath" | ||
28112 | |||
28113 | main() | ||
28114 | { | ||
28115 | FILE *fd; | ||
28116 | int rc; | ||
28117 | |||
28118 | fd = fopen(DATA,"w"); | ||
28119 | if(fd == NULL) | ||
28120 | exit(1); | ||
28121 | |||
28122 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
28123 | exit(1); | ||
28124 | |||
28125 | exit(0); | ||
28126 | } | ||
28127 | |||
28128 | _ACEOF | ||
28129 | rm -f conftest$ac_exeext | ||
28130 | if { (ac_try="$ac_link" | ||
28131 | case "(($ac_try" in | ||
28132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28133 | *) ac_try_echo=$ac_try;; | ||
28134 | esac | ||
28135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28136 | (eval "$ac_link") 2>&5 | ||
28137 | ac_status=$? | ||
28138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28139 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
28140 | { (case "(($ac_try" in | ||
28141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28142 | *) ac_try_echo=$ac_try;; | ||
28143 | esac | ||
28144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28145 | (eval "$ac_try") 2>&5 | ||
28146 | ac_status=$? | ||
28147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28148 | (exit $ac_status); }; }; then | ||
28149 | user_path=`cat conftest.stdpath` | ||
28150 | else | ||
28151 | echo "$as_me: program exited with status $ac_status" >&5 | ||
28152 | echo "$as_me: failed program was:" >&5 | ||
28153 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28154 | |||
28155 | ( exit $ac_status ) | ||
28156 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
28157 | fi | ||
28158 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
28159 | fi | ||
28160 | |||
28161 | |||
28162 | # make sure $bindir is in USER_PATH so scp will work | ||
28163 | t_bindir=`eval echo ${bindir}` | ||
28164 | case $t_bindir in | ||
28165 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
28166 | esac | ||
28167 | case $t_bindir in | ||
28168 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
28169 | esac | ||
28170 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
28171 | if test $? -ne 0 ; then | ||
28172 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
28173 | if test $? -ne 0 ; then | ||
28174 | user_path=$user_path:$t_bindir | ||
28175 | { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
28176 | echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; } | ||
28177 | fi | ||
28178 | fi | ||
28179 | fi | ||
28180 | |||
28181 | fi | ||
28182 | |||
28183 | if test "x$external_path_file" != "x/etc/login.conf" ; then | ||
28184 | |||
28185 | cat >>confdefs.h <<_ACEOF | ||
28186 | #define USER_PATH "$user_path" | ||
28187 | _ACEOF | ||
28188 | |||
28189 | |||
28190 | fi | ||
28191 | |||
28192 | # Set superuser path separately to user path | ||
28193 | |||
28194 | # Check whether --with-superuser-path was given. | ||
28195 | if test "${with_superuser_path+set}" = set; then | ||
28196 | withval=$with_superuser_path; | ||
28197 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
28198 | test "x${withval}" != "xyes"; then | ||
28199 | |||
28200 | cat >>confdefs.h <<_ACEOF | ||
28201 | #define SUPERUSER_PATH "$withval" | ||
28202 | _ACEOF | ||
28203 | |||
28204 | superuser_path=$withval | ||
28205 | fi | ||
28206 | |||
28207 | |||
28208 | fi | ||
28209 | |||
28210 | |||
28211 | |||
28212 | { echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
28213 | echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; } | ||
28214 | IPV4_IN6_HACK_MSG="no" | ||
28215 | |||
28216 | # Check whether --with-4in6 was given. | ||
28217 | if test "${with_4in6+set}" = set; then | ||
28218 | withval=$with_4in6; | ||
28219 | if test "x$withval" != "xno" ; then | ||
28220 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
28221 | echo "${ECHO_T}yes" >&6; } | ||
28222 | |||
28223 | cat >>confdefs.h <<\_ACEOF | ||
28224 | #define IPV4_IN_IPV6 1 | ||
28225 | _ACEOF | ||
28226 | |||
28227 | IPV4_IN6_HACK_MSG="yes" | ||
28228 | else | ||
28229 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28230 | echo "${ECHO_T}no" >&6; } | ||
28231 | fi | ||
28232 | |||
28233 | else | ||
28234 | |||
28235 | if test "x$inet6_default_4in6" = "xyes"; then | ||
28236 | { echo "$as_me:$LINENO: result: yes (default)" >&5 | ||
28237 | echo "${ECHO_T}yes (default)" >&6; } | ||
28238 | cat >>confdefs.h <<\_ACEOF | ||
28239 | #define IPV4_IN_IPV6 1 | ||
28240 | _ACEOF | ||
28241 | |||
28242 | IPV4_IN6_HACK_MSG="yes" | ||
28243 | else | ||
28244 | { echo "$as_me:$LINENO: result: no (default)" >&5 | ||
28245 | echo "${ECHO_T}no (default)" >&6; } | ||
28246 | fi | ||
28247 | |||
28248 | |||
28249 | fi | ||
28250 | |||
28251 | |||
28252 | # Whether to enable BSD auth support | ||
28253 | BSD_AUTH_MSG=no | ||
28254 | |||
28255 | # Check whether --with-bsd-auth was given. | ||
28256 | if test "${with_bsd_auth+set}" = set; then | ||
28257 | withval=$with_bsd_auth; | ||
28258 | if test "x$withval" != "xno" ; then | ||
28259 | |||
28260 | cat >>confdefs.h <<\_ACEOF | ||
28261 | #define BSD_AUTH 1 | ||
28262 | _ACEOF | ||
28263 | |||
28264 | BSD_AUTH_MSG=yes | ||
28265 | fi | ||
28266 | |||
28267 | |||
28268 | fi | ||
28269 | |||
28270 | |||
28271 | # Where to place sshd.pid | ||
28272 | piddir=/var/run | ||
28273 | # make sure the directory exists | ||
28274 | if test ! -d $piddir ; then | ||
28275 | piddir=`eval echo ${sysconfdir}` | ||
28276 | case $piddir in | ||
28277 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
28278 | esac | ||
28279 | fi | ||
28280 | |||
28281 | |||
28282 | # Check whether --with-pid-dir was given. | ||
28283 | if test "${with_pid_dir+set}" = set; then | ||
28284 | withval=$with_pid_dir; | ||
28285 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
28286 | test "x${withval}" != "xyes"; then | ||
28287 | piddir=$withval | ||
28288 | if test ! -d $piddir ; then | ||
28289 | { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5 | ||
28290 | echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
28291 | fi | ||
28292 | fi | ||
28293 | |||
28294 | |||
28295 | fi | ||
28296 | |||
28297 | |||
28298 | |||
28299 | cat >>confdefs.h <<_ACEOF | ||
28300 | #define _PATH_SSH_PIDDIR "$piddir" | ||
28301 | _ACEOF | ||
28302 | |||
28303 | |||
28304 | |||
28305 | # Check whether --enable-lastlog was given. | ||
28306 | if test "${enable_lastlog+set}" = set; then | ||
28307 | enableval=$enable_lastlog; | ||
28308 | if test "x$enableval" = "xno" ; then | ||
28309 | cat >>confdefs.h <<\_ACEOF | ||
28310 | #define DISABLE_LASTLOG 1 | ||
28311 | _ACEOF | ||
28312 | |||
28313 | fi | ||
28314 | |||
28315 | |||
28316 | fi | ||
28317 | |||
28318 | # Check whether --enable-utmp was given. | ||
28319 | if test "${enable_utmp+set}" = set; then | ||
28320 | enableval=$enable_utmp; | ||
28321 | if test "x$enableval" = "xno" ; then | ||
28322 | cat >>confdefs.h <<\_ACEOF | ||
28323 | #define DISABLE_UTMP 1 | ||
28324 | _ACEOF | ||
28325 | |||
28326 | fi | ||
28327 | |||
28328 | |||
28329 | fi | ||
28330 | |||
28331 | # Check whether --enable-utmpx was given. | ||
28332 | if test "${enable_utmpx+set}" = set; then | ||
28333 | enableval=$enable_utmpx; | ||
28334 | if test "x$enableval" = "xno" ; then | ||
28335 | |||
28336 | cat >>confdefs.h <<\_ACEOF | ||
28337 | #define DISABLE_UTMPX 1 | ||
28338 | _ACEOF | ||
28339 | |||
28340 | fi | ||
28341 | |||
28342 | |||
28343 | fi | ||
28344 | |||
28345 | # Check whether --enable-wtmp was given. | ||
28346 | if test "${enable_wtmp+set}" = set; then | ||
28347 | enableval=$enable_wtmp; | ||
28348 | if test "x$enableval" = "xno" ; then | ||
28349 | cat >>confdefs.h <<\_ACEOF | ||
28350 | #define DISABLE_WTMP 1 | ||
28351 | _ACEOF | ||
28352 | |||
28353 | fi | ||
28354 | |||
28355 | |||
28356 | fi | ||
28357 | |||
28358 | # Check whether --enable-wtmpx was given. | ||
28359 | if test "${enable_wtmpx+set}" = set; then | ||
28360 | enableval=$enable_wtmpx; | ||
28361 | if test "x$enableval" = "xno" ; then | ||
28362 | |||
28363 | cat >>confdefs.h <<\_ACEOF | ||
28364 | #define DISABLE_WTMPX 1 | ||
28365 | _ACEOF | ||
28366 | |||
28367 | fi | ||
28368 | |||
28369 | |||
28370 | fi | ||
28371 | |||
28372 | # Check whether --enable-libutil was given. | ||
28373 | if test "${enable_libutil+set}" = set; then | ||
28374 | enableval=$enable_libutil; | ||
28375 | if test "x$enableval" = "xno" ; then | ||
28376 | cat >>confdefs.h <<\_ACEOF | ||
28377 | #define DISABLE_LOGIN 1 | ||
28378 | _ACEOF | ||
28379 | |||
28380 | fi | ||
28381 | |||
28382 | |||
28383 | fi | ||
28384 | |||
28385 | # Check whether --enable-pututline was given. | ||
28386 | if test "${enable_pututline+set}" = set; then | ||
28387 | enableval=$enable_pututline; | ||
28388 | if test "x$enableval" = "xno" ; then | ||
28389 | |||
28390 | cat >>confdefs.h <<\_ACEOF | ||
28391 | #define DISABLE_PUTUTLINE 1 | ||
28392 | _ACEOF | ||
28393 | |||
28394 | fi | ||
28395 | |||
28396 | |||
28397 | fi | ||
28398 | |||
28399 | # Check whether --enable-pututxline was given. | ||
28400 | if test "${enable_pututxline+set}" = set; then | ||
28401 | enableval=$enable_pututxline; | ||
28402 | if test "x$enableval" = "xno" ; then | ||
28403 | |||
28404 | cat >>confdefs.h <<\_ACEOF | ||
28405 | #define DISABLE_PUTUTXLINE 1 | ||
28406 | _ACEOF | ||
28407 | |||
28408 | fi | ||
28409 | |||
28410 | |||
28411 | fi | ||
28412 | |||
28413 | |||
28414 | # Check whether --with-lastlog was given. | ||
28415 | if test "${with_lastlog+set}" = set; then | ||
28416 | withval=$with_lastlog; | ||
28417 | if test "x$withval" = "xno" ; then | ||
28418 | cat >>confdefs.h <<\_ACEOF | ||
28419 | #define DISABLE_LASTLOG 1 | ||
28420 | _ACEOF | ||
28421 | |||
28422 | elif test -n "$withval" && test "x${withval}" != "xyes"; then | ||
28423 | conf_lastlog_location=$withval | ||
28424 | fi | ||
28425 | |||
28426 | |||
28427 | fi | ||
28428 | |||
28429 | |||
28430 | |||
28431 | { echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5 | ||
28432 | echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; } | ||
28433 | cat >conftest.$ac_ext <<_ACEOF | ||
28434 | /* confdefs.h. */ | ||
28435 | _ACEOF | ||
28436 | cat confdefs.h >>conftest.$ac_ext | ||
28437 | cat >>conftest.$ac_ext <<_ACEOF | ||
28438 | /* end confdefs.h. */ | ||
28439 | |||
28440 | #include <sys/types.h> | ||
28441 | #include <utmp.h> | ||
28442 | #ifdef HAVE_LASTLOG_H | ||
28443 | # include <lastlog.h> | ||
28444 | #endif | ||
28445 | #ifdef HAVE_PATHS_H | ||
28446 | # include <paths.h> | ||
28447 | #endif | ||
28448 | #ifdef HAVE_LOGIN_H | ||
28449 | # include <login.h> | ||
28450 | #endif | ||
28451 | |||
28452 | int | ||
28453 | main () | ||
28454 | { | ||
28455 | char *lastlog = LASTLOG_FILE; | ||
28456 | ; | ||
28457 | return 0; | ||
28458 | } | ||
28459 | _ACEOF | ||
28460 | rm -f conftest.$ac_objext | ||
28461 | if { (ac_try="$ac_compile" | ||
28462 | case "(($ac_try" in | ||
28463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28464 | *) ac_try_echo=$ac_try;; | ||
28465 | esac | ||
28466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28467 | (eval "$ac_compile") 2>conftest.er1 | ||
28468 | ac_status=$? | ||
28469 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28470 | rm -f conftest.er1 | ||
28471 | cat conftest.err >&5 | ||
28472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28473 | (exit $ac_status); } && { | ||
28474 | test -z "$ac_c_werror_flag" || | ||
28475 | test ! -s conftest.err | ||
28476 | } && test -s conftest.$ac_objext; then | ||
28477 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
28478 | echo "${ECHO_T}yes" >&6; } | ||
28479 | else | ||
28480 | echo "$as_me: failed program was:" >&5 | ||
28481 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28482 | |||
28483 | |||
28484 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28485 | echo "${ECHO_T}no" >&6; } | ||
28486 | { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5 | ||
28487 | echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; } | ||
28488 | cat >conftest.$ac_ext <<_ACEOF | ||
28489 | /* confdefs.h. */ | ||
28490 | _ACEOF | ||
28491 | cat confdefs.h >>conftest.$ac_ext | ||
28492 | cat >>conftest.$ac_ext <<_ACEOF | ||
28493 | /* end confdefs.h. */ | ||
28494 | |||
28495 | #include <sys/types.h> | ||
28496 | #include <utmp.h> | ||
28497 | #ifdef HAVE_LASTLOG_H | ||
28498 | # include <lastlog.h> | ||
28499 | #endif | ||
28500 | #ifdef HAVE_PATHS_H | ||
28501 | # include <paths.h> | ||
28502 | #endif | ||
28503 | |||
28504 | int | ||
28505 | main () | ||
28506 | { | ||
28507 | char *lastlog = _PATH_LASTLOG; | ||
28508 | ; | ||
28509 | return 0; | ||
28510 | } | ||
28511 | _ACEOF | ||
28512 | rm -f conftest.$ac_objext | ||
28513 | if { (ac_try="$ac_compile" | ||
28514 | case "(($ac_try" in | ||
28515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28516 | *) ac_try_echo=$ac_try;; | ||
28517 | esac | ||
28518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28519 | (eval "$ac_compile") 2>conftest.er1 | ||
28520 | ac_status=$? | ||
28521 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28522 | rm -f conftest.er1 | ||
28523 | cat conftest.err >&5 | ||
28524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28525 | (exit $ac_status); } && { | ||
28526 | test -z "$ac_c_werror_flag" || | ||
28527 | test ! -s conftest.err | ||
28528 | } && test -s conftest.$ac_objext; then | ||
28529 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
28530 | echo "${ECHO_T}yes" >&6; } | ||
28531 | else | ||
28532 | echo "$as_me: failed program was:" >&5 | ||
28533 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28534 | |||
28535 | |||
28536 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28537 | echo "${ECHO_T}no" >&6; } | ||
28538 | system_lastlog_path=no | ||
28539 | |||
28540 | fi | ||
28541 | |||
28542 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28543 | |||
28544 | |||
28545 | fi | ||
28546 | |||
28547 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28548 | |||
28549 | if test -z "$conf_lastlog_location"; then | ||
28550 | if test x"$system_lastlog_path" = x"no" ; then | ||
28551 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
28552 | if (test -d "$f" || test -f "$f") ; then | ||
28553 | conf_lastlog_location=$f | ||
28554 | fi | ||
28555 | done | ||
28556 | if test -z "$conf_lastlog_location"; then | ||
28557 | { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5 | ||
28558 | echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
28559 | fi | ||
28560 | fi | ||
28561 | fi | ||
28562 | |||
28563 | if test -n "$conf_lastlog_location"; then | ||
28564 | |||
28565 | cat >>confdefs.h <<_ACEOF | ||
28566 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
28567 | _ACEOF | ||
28568 | |||
28569 | fi | ||
28570 | |||
28571 | { echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5 | ||
28572 | echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; } | ||
28573 | cat >conftest.$ac_ext <<_ACEOF | ||
28574 | /* confdefs.h. */ | ||
28575 | _ACEOF | ||
28576 | cat confdefs.h >>conftest.$ac_ext | ||
28577 | cat >>conftest.$ac_ext <<_ACEOF | ||
28578 | /* end confdefs.h. */ | ||
28579 | |||
28580 | #include <sys/types.h> | ||
28581 | #include <utmp.h> | ||
28582 | #ifdef HAVE_PATHS_H | ||
28583 | # include <paths.h> | ||
28584 | #endif | ||
28585 | |||
28586 | int | ||
28587 | main () | ||
28588 | { | ||
28589 | char *utmp = UTMP_FILE; | ||
28590 | ; | ||
28591 | return 0; | ||
28592 | } | ||
28593 | _ACEOF | ||
28594 | rm -f conftest.$ac_objext | ||
28595 | if { (ac_try="$ac_compile" | ||
28596 | case "(($ac_try" in | ||
28597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28598 | *) ac_try_echo=$ac_try;; | ||
28599 | esac | ||
28600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28601 | (eval "$ac_compile") 2>conftest.er1 | ||
28602 | ac_status=$? | ||
28603 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28604 | rm -f conftest.er1 | ||
28605 | cat conftest.err >&5 | ||
28606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28607 | (exit $ac_status); } && { | ||
28608 | test -z "$ac_c_werror_flag" || | ||
28609 | test ! -s conftest.err | ||
28610 | } && test -s conftest.$ac_objext; then | ||
28611 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
28612 | echo "${ECHO_T}yes" >&6; } | ||
28613 | else | ||
28614 | echo "$as_me: failed program was:" >&5 | ||
28615 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28616 | |||
28617 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28618 | echo "${ECHO_T}no" >&6; } | ||
28619 | system_utmp_path=no | ||
28620 | |||
28621 | fi | ||
28622 | |||
28623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28624 | if test -z "$conf_utmp_location"; then | ||
28625 | if test x"$system_utmp_path" = x"no" ; then | ||
28626 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
28627 | if test -f $f ; then | ||
28628 | conf_utmp_location=$f | ||
28629 | fi | ||
28630 | done | ||
28631 | if test -z "$conf_utmp_location"; then | ||
28632 | cat >>confdefs.h <<\_ACEOF | ||
28633 | #define DISABLE_UTMP 1 | ||
28634 | _ACEOF | ||
28635 | |||
28636 | fi | ||
28637 | fi | ||
28638 | fi | ||
28639 | if test -n "$conf_utmp_location"; then | ||
28640 | |||
28641 | cat >>confdefs.h <<_ACEOF | ||
28642 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
28643 | _ACEOF | ||
28644 | |||
28645 | fi | ||
28646 | |||
28647 | { echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5 | ||
28648 | echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; } | ||
28649 | cat >conftest.$ac_ext <<_ACEOF | ||
28650 | /* confdefs.h. */ | ||
28651 | _ACEOF | ||
28652 | cat confdefs.h >>conftest.$ac_ext | ||
28653 | cat >>conftest.$ac_ext <<_ACEOF | ||
28654 | /* end confdefs.h. */ | ||
28655 | |||
28656 | #include <sys/types.h> | ||
28657 | #include <utmp.h> | ||
28658 | #ifdef HAVE_PATHS_H | ||
28659 | # include <paths.h> | ||
28660 | #endif | ||
28661 | |||
28662 | int | ||
28663 | main () | ||
28664 | { | ||
28665 | char *wtmp = WTMP_FILE; | ||
28666 | ; | ||
28667 | return 0; | ||
28668 | } | ||
28669 | _ACEOF | ||
28670 | rm -f conftest.$ac_objext | ||
28671 | if { (ac_try="$ac_compile" | ||
28672 | case "(($ac_try" in | ||
28673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28674 | *) ac_try_echo=$ac_try;; | ||
28675 | esac | ||
28676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28677 | (eval "$ac_compile") 2>conftest.er1 | ||
28678 | ac_status=$? | ||
28679 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28680 | rm -f conftest.er1 | ||
28681 | cat conftest.err >&5 | ||
28682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28683 | (exit $ac_status); } && { | ||
28684 | test -z "$ac_c_werror_flag" || | ||
28685 | test ! -s conftest.err | ||
28686 | } && test -s conftest.$ac_objext; then | ||
28687 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
28688 | echo "${ECHO_T}yes" >&6; } | ||
28689 | else | ||
28690 | echo "$as_me: failed program was:" >&5 | ||
28691 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28692 | |||
28693 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28694 | echo "${ECHO_T}no" >&6; } | ||
28695 | system_wtmp_path=no | ||
28696 | |||
28697 | fi | ||
28698 | |||
28699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28700 | if test -z "$conf_wtmp_location"; then | ||
28701 | if test x"$system_wtmp_path" = x"no" ; then | ||
28702 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
28703 | if test -f $f ; then | ||
28704 | conf_wtmp_location=$f | ||
28705 | fi | ||
28706 | done | ||
28707 | if test -z "$conf_wtmp_location"; then | ||
28708 | cat >>confdefs.h <<\_ACEOF | ||
28709 | #define DISABLE_WTMP 1 | ||
28710 | _ACEOF | ||
28711 | |||
28712 | fi | ||
28713 | fi | ||
28714 | fi | ||
28715 | if test -n "$conf_wtmp_location"; then | ||
28716 | |||
28717 | cat >>confdefs.h <<_ACEOF | ||
28718 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
28719 | _ACEOF | ||
28720 | |||
28721 | fi | ||
28722 | |||
28723 | |||
28724 | { echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5 | ||
28725 | echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6; } | ||
28726 | cat >conftest.$ac_ext <<_ACEOF | ||
28727 | /* confdefs.h. */ | ||
28728 | _ACEOF | ||
28729 | cat confdefs.h >>conftest.$ac_ext | ||
28730 | cat >>conftest.$ac_ext <<_ACEOF | ||
28731 | /* end confdefs.h. */ | ||
28732 | |||
28733 | #include <sys/types.h> | ||
28734 | #include <utmp.h> | ||
28735 | #ifdef HAVE_UTMPX_H | ||
28736 | #include <utmpx.h> | ||
28737 | #endif | ||
28738 | #ifdef HAVE_PATHS_H | ||
28739 | # include <paths.h> | ||
28740 | #endif | ||
28741 | |||
28742 | int | ||
28743 | main () | ||
28744 | { | ||
28745 | char *utmpx = UTMPX_FILE; | ||
28746 | ; | ||
28747 | return 0; | ||
28748 | } | ||
28749 | _ACEOF | ||
28750 | rm -f conftest.$ac_objext | ||
28751 | if { (ac_try="$ac_compile" | ||
28752 | case "(($ac_try" in | ||
28753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28754 | *) ac_try_echo=$ac_try;; | ||
28755 | esac | ||
28756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28757 | (eval "$ac_compile") 2>conftest.er1 | ||
28758 | ac_status=$? | ||
28759 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28760 | rm -f conftest.er1 | ||
28761 | cat conftest.err >&5 | ||
28762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28763 | (exit $ac_status); } && { | ||
28764 | test -z "$ac_c_werror_flag" || | ||
28765 | test ! -s conftest.err | ||
28766 | } && test -s conftest.$ac_objext; then | ||
28767 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
28768 | echo "${ECHO_T}yes" >&6; } | ||
28769 | else | ||
28770 | echo "$as_me: failed program was:" >&5 | ||
28771 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28772 | |||
28773 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28774 | echo "${ECHO_T}no" >&6; } | ||
28775 | system_utmpx_path=no | ||
28776 | |||
28777 | fi | ||
28778 | |||
28779 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28780 | if test -z "$conf_utmpx_location"; then | ||
28781 | if test x"$system_utmpx_path" = x"no" ; then | ||
28782 | cat >>confdefs.h <<\_ACEOF | ||
28783 | #define DISABLE_UTMPX 1 | ||
28784 | _ACEOF | ||
28785 | |||
28786 | fi | ||
28787 | else | ||
28788 | |||
28789 | cat >>confdefs.h <<_ACEOF | ||
28790 | #define CONF_UTMPX_FILE "$conf_utmpx_location" | ||
28791 | _ACEOF | ||
28792 | |||
28793 | fi | ||
28794 | |||
28795 | { echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5 | ||
28796 | echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; } | ||
28797 | cat >conftest.$ac_ext <<_ACEOF | ||
28798 | /* confdefs.h. */ | ||
28799 | _ACEOF | ||
28800 | cat confdefs.h >>conftest.$ac_ext | ||
28801 | cat >>conftest.$ac_ext <<_ACEOF | ||
28802 | /* end confdefs.h. */ | ||
28803 | |||
28804 | #include <sys/types.h> | ||
28805 | #include <utmp.h> | ||
28806 | #ifdef HAVE_UTMPX_H | ||
28807 | #include <utmpx.h> | ||
28808 | #endif | ||
28809 | #ifdef HAVE_PATHS_H | ||
28810 | # include <paths.h> | ||
28811 | #endif | ||
28812 | |||
28813 | int | ||
28814 | main () | ||
28815 | { | ||
28816 | char *wtmpx = WTMPX_FILE; | ||
28817 | ; | ||
28818 | return 0; | ||
28819 | } | ||
28820 | _ACEOF | ||
28821 | rm -f conftest.$ac_objext | ||
28822 | if { (ac_try="$ac_compile" | ||
28823 | case "(($ac_try" in | ||
28824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28825 | *) ac_try_echo=$ac_try;; | ||
28826 | esac | ||
28827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28828 | (eval "$ac_compile") 2>conftest.er1 | ||
28829 | ac_status=$? | ||
28830 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28831 | rm -f conftest.er1 | ||
28832 | cat conftest.err >&5 | ||
28833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28834 | (exit $ac_status); } && { | ||
28835 | test -z "$ac_c_werror_flag" || | ||
28836 | test ! -s conftest.err | ||
28837 | } && test -s conftest.$ac_objext; then | ||
28838 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
28839 | echo "${ECHO_T}yes" >&6; } | ||
28840 | else | ||
28841 | echo "$as_me: failed program was:" >&5 | ||
28842 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28843 | |||
28844 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28845 | echo "${ECHO_T}no" >&6; } | ||
28846 | system_wtmpx_path=no | ||
28847 | |||
28848 | fi | ||
28849 | |||
28850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28851 | if test -z "$conf_wtmpx_location"; then | ||
28852 | if test x"$system_wtmpx_path" = x"no" ; then | ||
28853 | cat >>confdefs.h <<\_ACEOF | ||
28854 | #define DISABLE_WTMPX 1 | ||
28855 | _ACEOF | ||
28856 | |||
28857 | fi | ||
28858 | else | ||
28859 | |||
28860 | cat >>confdefs.h <<_ACEOF | ||
28861 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
28862 | _ACEOF | ||
28863 | |||
28864 | fi | ||
28865 | |||
28866 | |||
28867 | if test ! -z "$blibpath" ; then | ||
28868 | LDFLAGS="$LDFLAGS $blibflags$blibpath" | ||
28869 | { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 | ||
28870 | echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} | ||
28871 | fi | ||
28872 | |||
28873 | CFLAGS="$CFLAGS $werror_flags" | ||
28874 | |||
28875 | if grep "#define BROKEN_GETADDRINFO 1" confdefs.h >/dev/null || \ | ||
28876 | test "x$ac_cv_func_getaddrinfo" != "xyes" ; then | ||
28877 | TEST_SSH_IPV6=no | ||
28878 | |||
28879 | else | ||
28880 | TEST_SSH_IPV6=yes | ||
28881 | |||
28882 | fi | ||
28883 | |||
28884 | |||
28885 | ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile scard/Makefile ssh_prng_cmds survey.sh" | ||
28886 | |||
28887 | cat >confcache <<\_ACEOF | ||
28888 | # This file is a shell script that caches the results of configure | ||
28889 | # tests run on this system so they can be shared between configure | ||
28890 | # scripts and configure runs, see configure's option --config-cache. | ||
28891 | # It is not useful on other systems. If it contains results you don't | ||
28892 | # want to keep, you may remove or edit it. | ||
28893 | # | ||
28894 | # config.status only pays attention to the cache file if you give it | ||
28895 | # the --recheck option to rerun configure. | ||
28896 | # | ||
28897 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
28898 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
28899 | # following values. | ||
28900 | |||
28901 | _ACEOF | ||
28902 | |||
28903 | # The following way of writing the cache mishandles newlines in values, | ||
28904 | # but we know of no workaround that is simple, portable, and efficient. | ||
28905 | # So, we kill variables containing newlines. | ||
28906 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
28907 | # and sets the high bit in the cache file unless we assign to the vars. | ||
28908 | ( | ||
28909 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
28910 | eval ac_val=\$$ac_var | ||
28911 | case $ac_val in #( | ||
28912 | *${as_nl}*) | ||
28913 | case $ac_var in #( | ||
28914 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
28915 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
28916 | esac | ||
28917 | case $ac_var in #( | ||
28918 | _ | IFS | as_nl) ;; #( | ||
28919 | *) $as_unset $ac_var ;; | ||
28920 | esac ;; | ||
28921 | esac | ||
28922 | done | ||
28923 | |||
28924 | (set) 2>&1 | | ||
28925 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
28926 | *${as_nl}ac_space=\ *) | ||
28927 | # `set' does not quote correctly, so add quotes (double-quote | ||
28928 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
28929 | sed -n \ | ||
28930 | "s/'/'\\\\''/g; | ||
28931 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
28932 | ;; #( | ||
28933 | *) | ||
28934 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
28935 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
28936 | ;; | ||
28937 | esac | | ||
28938 | sort | ||
28939 | ) | | ||
28940 | sed ' | ||
28941 | /^ac_cv_env_/b end | ||
28942 | t clear | ||
28943 | :clear | ||
28944 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
28945 | t end | ||
28946 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
28947 | :end' >>confcache | ||
28948 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
28949 | if test -w "$cache_file"; then | ||
28950 | test "x$cache_file" != "x/dev/null" && | ||
28951 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | ||
28952 | echo "$as_me: updating cache $cache_file" >&6;} | ||
28953 | cat confcache >$cache_file | ||
28954 | else | ||
28955 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | ||
28956 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
28957 | fi | ||
28958 | fi | ||
28959 | rm -f confcache | ||
28960 | |||
28961 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
28962 | # Let make expand exec_prefix. | ||
28963 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
28964 | |||
28965 | DEFS=-DHAVE_CONFIG_H | ||
28966 | |||
28967 | ac_libobjs= | ||
28968 | ac_ltlibobjs= | ||
28969 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
28970 | # 1. Remove the extension, and $U if already installed. | ||
28971 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
28972 | ac_i=`echo "$ac_i" | sed "$ac_script"` | ||
28973 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
28974 | # will be set to the directory where LIBOBJS objects are built. | ||
28975 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
28976 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | ||
28977 | done | ||
28978 | LIBOBJS=$ac_libobjs | ||
28979 | |||
28980 | LTLIBOBJS=$ac_ltlibobjs | ||
28981 | |||
28982 | |||
28983 | |||
28984 | : ${CONFIG_STATUS=./config.status} | ||
28985 | ac_clean_files_save=$ac_clean_files | ||
28986 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
28987 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | ||
28988 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
28989 | cat >$CONFIG_STATUS <<_ACEOF | ||
28990 | #! $SHELL | ||
28991 | # Generated by $as_me. | ||
28992 | # Run this file to recreate the current configuration. | ||
28993 | # Compiler output produced by configure, useful for debugging | ||
28994 | # configure, is in config.log if it exists. | ||
28995 | |||
28996 | debug=false | ||
28997 | ac_cs_recheck=false | ||
28998 | ac_cs_silent=false | ||
28999 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
29000 | _ACEOF | ||
29001 | |||
29002 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
29003 | ## --------------------- ## | ||
29004 | ## M4sh Initialization. ## | ||
29005 | ## --------------------- ## | ||
29006 | |||
29007 | # Be more Bourne compatible | ||
29008 | DUALCASE=1; export DUALCASE # for MKS sh | ||
29009 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
29010 | emulate sh | ||
29011 | NULLCMD=: | ||
29012 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
29013 | # is contrary to our usage. Disable this feature. | ||
29014 | alias -g '${1+"$@"}'='"$@"' | ||
29015 | setopt NO_GLOB_SUBST | ||
29016 | else | ||
29017 | case `(set -o) 2>/dev/null` in | ||
29018 | *posix*) set -o posix ;; | ||
29019 | esac | ||
29020 | |||
29021 | fi | ||
29022 | |||
29023 | |||
29024 | |||
29025 | |||
29026 | # PATH needs CR | ||
29027 | # Avoid depending upon Character Ranges. | ||
29028 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
29029 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
29030 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
29031 | as_cr_digits='0123456789' | ||
29032 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
29033 | |||
29034 | # The user is always right. | ||
29035 | if test "${PATH_SEPARATOR+set}" != set; then | ||
29036 | echo "#! /bin/sh" >conf$$.sh | ||
29037 | echo "exit 0" >>conf$$.sh | ||
29038 | chmod +x conf$$.sh | ||
29039 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
29040 | PATH_SEPARATOR=';' | ||
29041 | else | ||
29042 | PATH_SEPARATOR=: | ||
29043 | fi | ||
29044 | rm -f conf$$.sh | ||
29045 | fi | ||
29046 | |||
29047 | # Support unset when possible. | ||
29048 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
29049 | as_unset=unset | ||
29050 | else | ||
29051 | as_unset=false | ||
29052 | fi | ||
29053 | |||
29054 | |||
29055 | # IFS | ||
29056 | # We need space, tab and new line, in precisely that order. Quoting is | ||
29057 | # there to prevent editors from complaining about space-tab. | ||
29058 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
29059 | # splitting by setting IFS to empty value.) | ||
29060 | as_nl=' | ||
29061 | ' | ||
29062 | IFS=" "" $as_nl" | ||
29063 | |||
29064 | # Find who we are. Look in the path if we contain no directory separator. | ||
29065 | case $0 in | ||
29066 | *[\\/]* ) as_myself=$0 ;; | ||
29067 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
29068 | for as_dir in $PATH | ||
29069 | do | ||
29070 | IFS=$as_save_IFS | ||
29071 | test -z "$as_dir" && as_dir=. | ||
29072 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
29073 | done | ||
29074 | IFS=$as_save_IFS | ||
29075 | |||
29076 | ;; | ||
29077 | esac | ||
29078 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
29079 | # in which case we are not to be found in the path. | ||
29080 | if test "x$as_myself" = x; then | ||
29081 | as_myself=$0 | ||
29082 | fi | ||
29083 | if test ! -f "$as_myself"; then | ||
29084 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
29085 | { (exit 1); exit 1; } | ||
29086 | fi | ||
29087 | |||
29088 | # Work around bugs in pre-3.0 UWIN ksh. | ||
29089 | for as_var in ENV MAIL MAILPATH | ||
29090 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
29091 | done | ||
29092 | PS1='$ ' | ||
29093 | PS2='> ' | ||
29094 | PS4='+ ' | ||
29095 | |||
29096 | # NLS nuisances. | ||
29097 | for as_var in \ | ||
29098 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
29099 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
29100 | LC_TELEPHONE LC_TIME | ||
29101 | do | ||
29102 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
29103 | eval $as_var=C; export $as_var | ||
29104 | else | ||
29105 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
29106 | fi | ||
29107 | done | ||
29108 | |||
29109 | # Required to use basename. | ||
29110 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
29111 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
29112 | as_expr=expr | ||
29113 | else | ||
29114 | as_expr=false | ||
29115 | fi | ||
29116 | |||
29117 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
29118 | as_basename=basename | ||
29119 | else | ||
29120 | as_basename=false | ||
29121 | fi | ||
29122 | |||
29123 | |||
29124 | # Name of the executable. | ||
29125 | as_me=`$as_basename -- "$0" || | ||
29126 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
29127 | X"$0" : 'X\(//\)$' \| \ | ||
29128 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
29129 | echo X/"$0" | | ||
29130 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
29131 | s//\1/ | ||
29132 | q | ||
29133 | } | ||
29134 | /^X\/\(\/\/\)$/{ | ||
29135 | s//\1/ | ||
29136 | q | ||
29137 | } | ||
29138 | /^X\/\(\/\).*/{ | ||
29139 | s//\1/ | ||
29140 | q | ||
29141 | } | ||
29142 | s/.*/./; q'` | ||
29143 | |||
29144 | # CDPATH. | ||
29145 | $as_unset CDPATH | ||
29146 | |||
29147 | |||
29148 | |||
29149 | as_lineno_1=$LINENO | ||
29150 | as_lineno_2=$LINENO | ||
29151 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
29152 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | ||
29153 | |||
29154 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
29155 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
29156 | # line-number line after each line using $LINENO; the second 'sed' | ||
29157 | # does the real work. The second script uses 'N' to pair each | ||
29158 | # line-number line with the line containing $LINENO, and appends | ||
29159 | # trailing '-' during substitution so that $LINENO is not a special | ||
29160 | # case at line end. | ||
29161 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
29162 | # scripts with optimization help from Paolo Bonzini. Blame Lee | ||
29163 | # E. McMahon (1931-1989) for sed's syntax. :-) | ||
29164 | sed -n ' | ||
29165 | p | ||
29166 | /[$]LINENO/= | ||
29167 | ' <$as_myself | | ||
29168 | sed ' | ||
29169 | s/[$]LINENO.*/&-/ | ||
29170 | t lineno | ||
29171 | b | ||
29172 | :lineno | ||
29173 | N | ||
29174 | :loop | ||
29175 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
29176 | t loop | ||
29177 | s/-\n.*// | ||
29178 | ' >$as_me.lineno && | ||
29179 | chmod +x "$as_me.lineno" || | ||
29180 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
29181 | { (exit 1); exit 1; }; } | ||
29182 | |||
29183 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
29184 | # (the dirname of $[0] is not the place where we might find the | ||
29185 | # original and so on. Autoconf is especially sensitive to this). | ||
29186 | . "./$as_me.lineno" | ||
29187 | # Exit status is that of the last command. | ||
29188 | exit | ||
29189 | } | ||
29190 | |||
29191 | |||
29192 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
29193 | as_dirname=dirname | ||
29194 | else | ||
29195 | as_dirname=false | ||
29196 | fi | ||
29197 | |||
29198 | ECHO_C= ECHO_N= ECHO_T= | ||
29199 | case `echo -n x` in | ||
29200 | -n*) | ||
29201 | case `echo 'x\c'` in | ||
29202 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
29203 | *) ECHO_C='\c';; | ||
29204 | esac;; | ||
29205 | *) | ||
29206 | ECHO_N='-n';; | ||
29207 | esac | ||
29208 | |||
29209 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
29210 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
29211 | as_expr=expr | ||
29212 | else | ||
29213 | as_expr=false | ||
29214 | fi | ||
29215 | |||
29216 | rm -f conf$$ conf$$.exe conf$$.file | ||
29217 | if test -d conf$$.dir; then | ||
29218 | rm -f conf$$.dir/conf$$.file | ||
29219 | else | ||
29220 | rm -f conf$$.dir | ||
29221 | mkdir conf$$.dir | ||
29222 | fi | ||
29223 | echo >conf$$.file | ||
29224 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
29225 | as_ln_s='ln -s' | ||
29226 | # ... but there are two gotchas: | ||
29227 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
29228 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
29229 | # In both cases, we have to default to `cp -p'. | ||
29230 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
29231 | as_ln_s='cp -p' | ||
29232 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
29233 | as_ln_s=ln | ||
29234 | else | ||
29235 | as_ln_s='cp -p' | ||
29236 | fi | ||
29237 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
29238 | rmdir conf$$.dir 2>/dev/null | ||
29239 | |||
29240 | if mkdir -p . 2>/dev/null; then | ||
29241 | as_mkdir_p=: | ||
29242 | else | ||
29243 | test -d ./-p && rmdir ./-p | ||
29244 | as_mkdir_p=false | ||
29245 | fi | ||
29246 | |||
29247 | if test -x / >/dev/null 2>&1; then | ||
29248 | as_test_x='test -x' | ||
29249 | else | ||
29250 | if ls -dL / >/dev/null 2>&1; then | ||
29251 | as_ls_L_option=L | ||
29252 | else | ||
29253 | as_ls_L_option= | ||
29254 | fi | ||
29255 | as_test_x=' | ||
29256 | eval sh -c '\'' | ||
29257 | if test -d "$1"; then | ||
29258 | test -d "$1/."; | ||
29259 | else | ||
29260 | case $1 in | ||
29261 | -*)set "./$1";; | ||
29262 | esac; | ||
29263 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | ||
29264 | ???[sx]*):;;*)false;;esac;fi | ||
29265 | '\'' sh | ||
29266 | ' | ||
29267 | fi | ||
29268 | as_executable_p=$as_test_x | ||
29269 | |||
29270 | # Sed expression to map a string onto a valid CPP name. | ||
29271 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
29272 | |||
29273 | # Sed expression to map a string onto a valid variable name. | ||
29274 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
29275 | |||
29276 | |||
29277 | exec 6>&1 | ||
29278 | |||
29279 | # Save the log message, to keep $[0] and so on meaningful, and to | ||
29280 | # report actual input values of CONFIG_FILES etc. instead of their | ||
29281 | # values after options handling. | ||
29282 | ac_log=" | ||
29283 | This file was extended by OpenSSH $as_me Portable, which was | ||
29284 | generated by GNU Autoconf 2.61. Invocation command line was | ||
29285 | |||
29286 | CONFIG_FILES = $CONFIG_FILES | ||
29287 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
29288 | CONFIG_LINKS = $CONFIG_LINKS | ||
29289 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
29290 | $ $0 $@ | ||
29291 | |||
29292 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
29293 | " | ||
29294 | |||
29295 | _ACEOF | ||
29296 | |||
29297 | cat >>$CONFIG_STATUS <<_ACEOF | ||
29298 | # Files that config.status was made for. | ||
29299 | config_files="$ac_config_files" | ||
29300 | config_headers="$ac_config_headers" | ||
29301 | |||
29302 | _ACEOF | ||
29303 | |||
29304 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
29305 | ac_cs_usage="\ | ||
29306 | \`$as_me' instantiates files from templates according to the | ||
29307 | current configuration. | ||
29308 | |||
29309 | Usage: $0 [OPTIONS] [FILE]... | ||
29310 | |||
29311 | -h, --help print this help, then exit | ||
29312 | -V, --version print version number and configuration settings, then exit | ||
29313 | -q, --quiet do not print progress messages | ||
29314 | -d, --debug don't remove temporary files | ||
29315 | --recheck update $as_me by reconfiguring in the same conditions | ||
29316 | --file=FILE[:TEMPLATE] | ||
29317 | instantiate the configuration file FILE | ||
29318 | --header=FILE[:TEMPLATE] | ||
29319 | instantiate the configuration header FILE | ||
29320 | |||
29321 | Configuration files: | ||
29322 | $config_files | ||
29323 | |||
29324 | Configuration headers: | ||
29325 | $config_headers | ||
29326 | |||
29327 | Report bugs to <bug-autoconf@gnu.org>." | ||
29328 | |||
29329 | _ACEOF | ||
29330 | cat >>$CONFIG_STATUS <<_ACEOF | ||
29331 | ac_cs_version="\\ | ||
29332 | OpenSSH config.status Portable | ||
29333 | configured by $0, generated by GNU Autoconf 2.61, | ||
29334 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | ||
29335 | |||
29336 | Copyright (C) 2006 Free Software Foundation, Inc. | ||
29337 | This config.status script is free software; the Free Software Foundation | ||
29338 | gives unlimited permission to copy, distribute and modify it." | ||
29339 | |||
29340 | ac_pwd='$ac_pwd' | ||
29341 | srcdir='$srcdir' | ||
29342 | INSTALL='$INSTALL' | ||
29343 | _ACEOF | ||
29344 | |||
29345 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
29346 | # If no file are specified by the user, then we need to provide default | ||
29347 | # value. By we need to know if files were specified by the user. | ||
29348 | ac_need_defaults=: | ||
29349 | while test $# != 0 | ||
29350 | do | ||
29351 | case $1 in | ||
29352 | --*=*) | ||
29353 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
29354 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
29355 | ac_shift=: | ||
29356 | ;; | ||
29357 | *) | ||
29358 | ac_option=$1 | ||
29359 | ac_optarg=$2 | ||
29360 | ac_shift=shift | ||
29361 | ;; | ||
29362 | esac | ||
29363 | |||
29364 | case $ac_option in | ||
29365 | # Handling of the options. | ||
29366 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
29367 | ac_cs_recheck=: ;; | ||
29368 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
29369 | echo "$ac_cs_version"; exit ;; | ||
29370 | --debug | --debu | --deb | --de | --d | -d ) | ||
29371 | debug=: ;; | ||
29372 | --file | --fil | --fi | --f ) | ||
29373 | $ac_shift | ||
29374 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | ||
29375 | ac_need_defaults=false;; | ||
29376 | --header | --heade | --head | --hea ) | ||
29377 | $ac_shift | ||
29378 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | ||
29379 | ac_need_defaults=false;; | ||
29380 | --he | --h) | ||
29381 | # Conflict between --help and --header | ||
29382 | { echo "$as_me: error: ambiguous option: $1 | ||
29383 | Try \`$0 --help' for more information." >&2 | ||
29384 | { (exit 1); exit 1; }; };; | ||
29385 | --help | --hel | -h ) | ||
29386 | echo "$ac_cs_usage"; exit ;; | ||
29387 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
29388 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
29389 | ac_cs_silent=: ;; | ||
29390 | |||
29391 | # This is an error. | ||
29392 | -*) { echo "$as_me: error: unrecognized option: $1 | ||
29393 | Try \`$0 --help' for more information." >&2 | ||
29394 | { (exit 1); exit 1; }; } ;; | ||
29395 | |||
29396 | *) ac_config_targets="$ac_config_targets $1" | ||
29397 | ac_need_defaults=false ;; | ||
29398 | |||
29399 | esac | ||
29400 | shift | ||
29401 | done | ||
29402 | |||
29403 | ac_configure_extra_args= | ||
29404 | |||
29405 | if $ac_cs_silent; then | ||
29406 | exec 6>/dev/null | ||
29407 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
29408 | fi | ||
29409 | |||
29410 | _ACEOF | ||
29411 | cat >>$CONFIG_STATUS <<_ACEOF | ||
29412 | if \$ac_cs_recheck; then | ||
29413 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | ||
29414 | CONFIG_SHELL=$SHELL | ||
29415 | export CONFIG_SHELL | ||
29416 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
29417 | fi | ||
29418 | |||
29419 | _ACEOF | ||
29420 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
29421 | exec 5>>config.log | ||
29422 | { | ||
29423 | echo | ||
29424 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
29425 | ## Running $as_me. ## | ||
29426 | _ASBOX | ||
29427 | echo "$ac_log" | ||
29428 | } >&5 | ||
29429 | |||
29430 | _ACEOF | ||
29431 | cat >>$CONFIG_STATUS <<_ACEOF | ||
29432 | _ACEOF | ||
29433 | |||
29434 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
29435 | |||
29436 | # Handling of arguments. | ||
29437 | for ac_config_target in $ac_config_targets | ||
29438 | do | ||
29439 | case $ac_config_target in | ||
29440 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
29441 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
29442 | "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; | ||
29443 | "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; | ||
29444 | "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;; | ||
29445 | "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
29446 | "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;; | ||
29447 | "scard/Makefile") CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;; | ||
29448 | "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;; | ||
29449 | "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;; | ||
29450 | |||
29451 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | ||
29452 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
29453 | { (exit 1); exit 1; }; };; | ||
29454 | esac | ||
29455 | done | ||
29456 | |||
29457 | |||
29458 | # If the user did not use the arguments to specify the items to instantiate, | ||
29459 | # then the envvar interface is used. Set only those that are not. | ||
29460 | # We use the long form for the default assignment because of an extremely | ||
29461 | # bizarre bug on SunOS 4.1.3. | ||
29462 | if $ac_need_defaults; then | ||
29463 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
29464 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
29465 | fi | ||
29466 | |||
29467 | # Have a temporary directory for convenience. Make it in the build tree | ||
29468 | # simply because there is no reason against having it here, and in addition, | ||
29469 | # creating and moving files from /tmp can sometimes cause problems. | ||
29470 | # Hook for its removal unless debugging. | ||
29471 | # Note that there is a small window in which the directory will not be cleaned: | ||
29472 | # after its creation but before its name has been assigned to `$tmp'. | ||
29473 | $debug || | ||
29474 | { | ||
29475 | tmp= | ||
29476 | trap 'exit_status=$? | ||
29477 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | ||
29478 | ' 0 | ||
29479 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
29480 | } | ||
29481 | # Create a (secure) tmp directory for tmp files. | ||
29482 | |||
29483 | { | ||
29484 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
29485 | test -n "$tmp" && test -d "$tmp" | ||
29486 | } || | ||
29487 | { | ||
29488 | tmp=./conf$$-$RANDOM | ||
29489 | (umask 077 && mkdir "$tmp") | ||
29490 | } || | ||
29491 | { | ||
29492 | echo "$me: cannot create a temporary directory in ." >&2 | ||
29493 | { (exit 1); exit 1; } | ||
29494 | } | ||
29495 | |||
29496 | # | ||
29497 | # Set up the sed scripts for CONFIG_FILES section. | ||
29498 | # | ||
29499 | |||
29500 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
29501 | # This happens for instance when ./config.status config.h | ||
29502 | if test -n "$CONFIG_FILES"; then | ||
29503 | |||
29504 | _ACEOF | ||
29505 | |||
29506 | |||
29507 | |||
29508 | ac_delim='%!_!# ' | ||
29509 | for ac_last_try in false false false false false :; do | ||
29510 | cat >conf$$subs.sed <<_ACEOF | ||
29511 | SHELL!$SHELL$ac_delim | ||
29512 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | ||
29513 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | ||
29514 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | ||
29515 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | ||
29516 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | ||
29517 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | ||
29518 | exec_prefix!$exec_prefix$ac_delim | ||
29519 | prefix!$prefix$ac_delim | ||
29520 | program_transform_name!$program_transform_name$ac_delim | ||
29521 | bindir!$bindir$ac_delim | ||
29522 | sbindir!$sbindir$ac_delim | ||
29523 | libexecdir!$libexecdir$ac_delim | ||
29524 | datarootdir!$datarootdir$ac_delim | ||
29525 | datadir!$datadir$ac_delim | ||
29526 | sysconfdir!$sysconfdir$ac_delim | ||
29527 | sharedstatedir!$sharedstatedir$ac_delim | ||
29528 | localstatedir!$localstatedir$ac_delim | ||
29529 | includedir!$includedir$ac_delim | ||
29530 | oldincludedir!$oldincludedir$ac_delim | ||
29531 | docdir!$docdir$ac_delim | ||
29532 | infodir!$infodir$ac_delim | ||
29533 | htmldir!$htmldir$ac_delim | ||
29534 | dvidir!$dvidir$ac_delim | ||
29535 | pdfdir!$pdfdir$ac_delim | ||
29536 | psdir!$psdir$ac_delim | ||
29537 | libdir!$libdir$ac_delim | ||
29538 | localedir!$localedir$ac_delim | ||
29539 | mandir!$mandir$ac_delim | ||
29540 | DEFS!$DEFS$ac_delim | ||
29541 | ECHO_C!$ECHO_C$ac_delim | ||
29542 | ECHO_N!$ECHO_N$ac_delim | ||
29543 | ECHO_T!$ECHO_T$ac_delim | ||
29544 | LIBS!$LIBS$ac_delim | ||
29545 | build_alias!$build_alias$ac_delim | ||
29546 | host_alias!$host_alias$ac_delim | ||
29547 | target_alias!$target_alias$ac_delim | ||
29548 | CC!$CC$ac_delim | ||
29549 | CFLAGS!$CFLAGS$ac_delim | ||
29550 | LDFLAGS!$LDFLAGS$ac_delim | ||
29551 | CPPFLAGS!$CPPFLAGS$ac_delim | ||
29552 | ac_ct_CC!$ac_ct_CC$ac_delim | ||
29553 | EXEEXT!$EXEEXT$ac_delim | ||
29554 | OBJEXT!$OBJEXT$ac_delim | ||
29555 | build!$build$ac_delim | ||
29556 | build_cpu!$build_cpu$ac_delim | ||
29557 | build_vendor!$build_vendor$ac_delim | ||
29558 | build_os!$build_os$ac_delim | ||
29559 | host!$host$ac_delim | ||
29560 | host_cpu!$host_cpu$ac_delim | ||
29561 | host_vendor!$host_vendor$ac_delim | ||
29562 | host_os!$host_os$ac_delim | ||
29563 | CPP!$CPP$ac_delim | ||
29564 | GREP!$GREP$ac_delim | ||
29565 | EGREP!$EGREP$ac_delim | ||
29566 | AWK!$AWK$ac_delim | ||
29567 | RANLIB!$RANLIB$ac_delim | ||
29568 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | ||
29569 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | ||
29570 | INSTALL_DATA!$INSTALL_DATA$ac_delim | ||
29571 | AR!$AR$ac_delim | ||
29572 | CAT!$CAT$ac_delim | ||
29573 | KILL!$KILL$ac_delim | ||
29574 | PERL!$PERL$ac_delim | ||
29575 | SED!$SED$ac_delim | ||
29576 | ENT!$ENT$ac_delim | ||
29577 | TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim | ||
29578 | SH!$SH$ac_delim | ||
29579 | TEST_SHELL!$TEST_SHELL$ac_delim | ||
29580 | PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim | ||
29581 | PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim | ||
29582 | MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim | ||
29583 | STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim | ||
29584 | LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim | ||
29585 | PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim | ||
29586 | LD!$LD$ac_delim | ||
29587 | SSHDLIBS!$SSHDLIBS$ac_delim | ||
29588 | LIBEDIT!$LIBEDIT$ac_delim | ||
29589 | INSTALL_SSH_RAND_HELPER!$INSTALL_SSH_RAND_HELPER$ac_delim | ||
29590 | SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim | ||
29591 | PROG_LS!$PROG_LS$ac_delim | ||
29592 | PROG_NETSTAT!$PROG_NETSTAT$ac_delim | ||
29593 | PROG_ARP!$PROG_ARP$ac_delim | ||
29594 | PROG_IFCONFIG!$PROG_IFCONFIG$ac_delim | ||
29595 | PROG_JSTAT!$PROG_JSTAT$ac_delim | ||
29596 | PROG_PS!$PROG_PS$ac_delim | ||
29597 | PROG_SAR!$PROG_SAR$ac_delim | ||
29598 | PROG_W!$PROG_W$ac_delim | ||
29599 | PROG_WHO!$PROG_WHO$ac_delim | ||
29600 | PROG_LAST!$PROG_LAST$ac_delim | ||
29601 | PROG_LASTLOG!$PROG_LASTLOG$ac_delim | ||
29602 | PROG_DF!$PROG_DF$ac_delim | ||
29603 | PROG_VMSTAT!$PROG_VMSTAT$ac_delim | ||
29604 | PROG_UPTIME!$PROG_UPTIME$ac_delim | ||
29605 | PROG_IPCS!$PROG_IPCS$ac_delim | ||
29606 | PROG_TAIL!$PROG_TAIL$ac_delim | ||
29607 | INSTALL_SSH_PRNG_CMDS!$INSTALL_SSH_PRNG_CMDS$ac_delim | ||
29608 | _ACEOF | ||
29609 | |||
29610 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | ||
29611 | break | ||
29612 | elif $ac_last_try; then | ||
29613 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
29614 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
29615 | { (exit 1); exit 1; }; } | ||
29616 | else | ||
29617 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
29618 | fi | ||
29619 | done | ||
29620 | |||
29621 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
29622 | if test -n "$ac_eof"; then | ||
29623 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
29624 | ac_eof=`expr $ac_eof + 1` | ||
29625 | fi | ||
29626 | |||
29627 | cat >>$CONFIG_STATUS <<_ACEOF | ||
29628 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | ||
29629 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
29630 | _ACEOF | ||
29631 | sed ' | ||
29632 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
29633 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
29634 | :n | ||
29635 | t n | ||
29636 | s/'"$ac_delim"'$/,g/; t | ||
29637 | s/$/\\/; p | ||
29638 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
29639 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
29640 | rm -f conf$$subs.sed | ||
29641 | cat >>$CONFIG_STATUS <<_ACEOF | ||
29642 | CEOF$ac_eof | ||
29643 | _ACEOF | ||
29644 | |||
29645 | |||
29646 | ac_delim='%!_!# ' | ||
29647 | for ac_last_try in false false false false false :; do | ||
29648 | cat >conf$$subs.sed <<_ACEOF | ||
29649 | OPENSC_CONFIG!$OPENSC_CONFIG$ac_delim | ||
29650 | PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim | ||
29651 | xauth_path!$xauth_path$ac_delim | ||
29652 | STRIP_OPT!$STRIP_OPT$ac_delim | ||
29653 | XAUTH_PATH!$XAUTH_PATH$ac_delim | ||
29654 | NROFF!$NROFF$ac_delim | ||
29655 | MANTYPE!$MANTYPE$ac_delim | ||
29656 | mansubdir!$mansubdir$ac_delim | ||
29657 | user_path!$user_path$ac_delim | ||
29658 | piddir!$piddir$ac_delim | ||
29659 | TEST_SSH_IPV6!$TEST_SSH_IPV6$ac_delim | ||
29660 | LIBOBJS!$LIBOBJS$ac_delim | ||
29661 | LTLIBOBJS!$LTLIBOBJS$ac_delim | ||
29662 | _ACEOF | ||
29663 | |||
29664 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then | ||
29665 | break | ||
29666 | elif $ac_last_try; then | ||
29667 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
29668 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
29669 | { (exit 1); exit 1; }; } | ||
29670 | else | ||
29671 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
29672 | fi | ||
29673 | done | ||
29674 | |||
29675 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
29676 | if test -n "$ac_eof"; then | ||
29677 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
29678 | ac_eof=`expr $ac_eof + 1` | ||
29679 | fi | ||
29680 | |||
29681 | cat >>$CONFIG_STATUS <<_ACEOF | ||
29682 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | ||
29683 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | ||
29684 | _ACEOF | ||
29685 | sed ' | ||
29686 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
29687 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
29688 | :n | ||
29689 | t n | ||
29690 | s/'"$ac_delim"'$/,g/; t | ||
29691 | s/$/\\/; p | ||
29692 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
29693 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
29694 | rm -f conf$$subs.sed | ||
29695 | cat >>$CONFIG_STATUS <<_ACEOF | ||
29696 | :end | ||
29697 | s/|#_!!_#|//g | ||
29698 | CEOF$ac_eof | ||
29699 | _ACEOF | ||
29700 | |||
29701 | |||
29702 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
29703 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
29704 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
29705 | # (actually we leave an empty line to preserve line numbers). | ||
29706 | if test "x$srcdir" = x.; then | ||
29707 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
29708 | s/:*\$(srcdir):*/:/ | ||
29709 | s/:*\${srcdir}:*/:/ | ||
29710 | s/:*@srcdir@:*/:/ | ||
29711 | s/^\([^=]*=[ ]*\):*/\1/ | ||
29712 | s/:*$// | ||
29713 | s/^[^=]*=[ ]*$// | ||
29714 | }' | ||
29715 | fi | ||
29716 | |||
29717 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
29718 | fi # test -n "$CONFIG_FILES" | ||
29719 | |||
29720 | |||
29721 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS | ||
29722 | do | ||
29723 | case $ac_tag in | ||
29724 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
29725 | esac | ||
29726 | case $ac_mode$ac_tag in | ||
29727 | :[FHL]*:*);; | ||
29728 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | ||
29729 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | ||
29730 | { (exit 1); exit 1; }; };; | ||
29731 | :[FH]-) ac_tag=-:-;; | ||
29732 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
29733 | esac | ||
29734 | ac_save_IFS=$IFS | ||
29735 | IFS=: | ||
29736 | set x $ac_tag | ||
29737 | IFS=$ac_save_IFS | ||
29738 | shift | ||
29739 | ac_file=$1 | ||
29740 | shift | ||
29741 | |||
29742 | case $ac_mode in | ||
29743 | :L) ac_source=$1;; | ||
29744 | :[FH]) | ||
29745 | ac_file_inputs= | ||
29746 | for ac_f | ||
29747 | do | ||
29748 | case $ac_f in | ||
29749 | -) ac_f="$tmp/stdin";; | ||
29750 | *) # Look for the file first in the build tree, then in the source tree | ||
29751 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
29752 | # because $ac_f cannot contain `:'. | ||
29753 | test -f "$ac_f" || | ||
29754 | case $ac_f in | ||
29755 | [\\/$]*) false;; | ||
29756 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
29757 | esac || | ||
29758 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | ||
29759 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | ||
29760 | { (exit 1); exit 1; }; };; | ||
29761 | esac | ||
29762 | ac_file_inputs="$ac_file_inputs $ac_f" | ||
29763 | done | ||
29764 | |||
29765 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
29766 | # use $as_me), people would be surprised to read: | ||
29767 | # /* config.h. Generated by config.status. */ | ||
29768 | configure_input="Generated from "`IFS=: | ||
29769 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | ||
29770 | if test x"$ac_file" != x-; then | ||
29771 | configure_input="$ac_file. $configure_input" | ||
29772 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
29773 | echo "$as_me: creating $ac_file" >&6;} | ||
29774 | fi | ||
29775 | |||
29776 | case $ac_tag in | ||
29777 | *:-:* | *:-) cat >"$tmp/stdin";; | ||
29778 | esac | ||
29779 | ;; | ||
29780 | esac | ||
29781 | |||
29782 | ac_dir=`$as_dirname -- "$ac_file" || | ||
29783 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
29784 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
29785 | X"$ac_file" : 'X\(//\)$' \| \ | ||
29786 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
29787 | echo X"$ac_file" | | ||
29788 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
29789 | s//\1/ | ||
29790 | q | ||
29791 | } | ||
29792 | /^X\(\/\/\)[^/].*/{ | ||
29793 | s//\1/ | ||
29794 | q | ||
29795 | } | ||
29796 | /^X\(\/\/\)$/{ | ||
29797 | s//\1/ | ||
29798 | q | ||
29799 | } | ||
29800 | /^X\(\/\).*/{ | ||
29801 | s//\1/ | ||
29802 | q | ||
29803 | } | ||
29804 | s/.*/./; q'` | ||
29805 | { as_dir="$ac_dir" | ||
29806 | case $as_dir in #( | ||
29807 | -*) as_dir=./$as_dir;; | ||
29808 | esac | ||
29809 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | ||
29810 | as_dirs= | ||
29811 | while :; do | ||
29812 | case $as_dir in #( | ||
29813 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | ||
29814 | *) as_qdir=$as_dir;; | ||
29815 | esac | ||
29816 | as_dirs="'$as_qdir' $as_dirs" | ||
29817 | as_dir=`$as_dirname -- "$as_dir" || | ||
29818 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
29819 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
29820 | X"$as_dir" : 'X\(//\)$' \| \ | ||
29821 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
29822 | echo X"$as_dir" | | ||
29823 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
29824 | s//\1/ | ||
29825 | q | ||
29826 | } | ||
29827 | /^X\(\/\/\)[^/].*/{ | ||
29828 | s//\1/ | ||
29829 | q | ||
29830 | } | ||
29831 | /^X\(\/\/\)$/{ | ||
29832 | s//\1/ | ||
29833 | q | ||
29834 | } | ||
29835 | /^X\(\/\).*/{ | ||
29836 | s//\1/ | ||
29837 | q | ||
29838 | } | ||
29839 | s/.*/./; q'` | ||
29840 | test -d "$as_dir" && break | ||
29841 | done | ||
29842 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
29843 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | ||
29844 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | ||
29845 | { (exit 1); exit 1; }; }; } | ||
29846 | ac_builddir=. | ||
29847 | |||
29848 | case "$ac_dir" in | ||
29849 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
29850 | *) | ||
29851 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
29852 | # A ".." for each directory in $ac_dir_suffix. | ||
29853 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
29854 | case $ac_top_builddir_sub in | ||
29855 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
29856 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
29857 | esac ;; | ||
29858 | esac | ||
29859 | ac_abs_top_builddir=$ac_pwd | ||
29860 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
29861 | # for backward compatibility: | ||
29862 | ac_top_builddir=$ac_top_build_prefix | ||
29863 | |||
29864 | case $srcdir in | ||
29865 | .) # We are building in place. | ||
29866 | ac_srcdir=. | ||
29867 | ac_top_srcdir=$ac_top_builddir_sub | ||
29868 | ac_abs_top_srcdir=$ac_pwd ;; | ||
29869 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
29870 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
29871 | ac_top_srcdir=$srcdir | ||
29872 | ac_abs_top_srcdir=$srcdir ;; | ||
29873 | *) # Relative name. | ||
29874 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
29875 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
29876 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
29877 | esac | ||
29878 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
29879 | |||
29880 | |||
29881 | case $ac_mode in | ||
29882 | :F) | ||
29883 | # | ||
29884 | # CONFIG_FILE | ||
29885 | # | ||
29886 | |||
29887 | case $INSTALL in | ||
29888 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
29889 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
29890 | esac | ||
29891 | _ACEOF | ||
29892 | |||
29893 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
29894 | # If the template does not know about datarootdir, expand it. | ||
29895 | # FIXME: This hack should be removed a few years after 2.60. | ||
29896 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
29897 | |||
29898 | case `sed -n '/datarootdir/ { | ||
29899 | p | ||
29900 | q | ||
29901 | } | ||
29902 | /@datadir@/p | ||
29903 | /@docdir@/p | ||
29904 | /@infodir@/p | ||
29905 | /@localedir@/p | ||
29906 | /@mandir@/p | ||
29907 | ' $ac_file_inputs` in | ||
29908 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
29909 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
29910 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
29911 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
29912 | _ACEOF | ||
29913 | cat >>$CONFIG_STATUS <<_ACEOF | ||
29914 | ac_datarootdir_hack=' | ||
29915 | s&@datadir@&$datadir&g | ||
29916 | s&@docdir@&$docdir&g | ||
29917 | s&@infodir@&$infodir&g | ||
29918 | s&@localedir@&$localedir&g | ||
29919 | s&@mandir@&$mandir&g | ||
29920 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
29921 | esac | ||
29922 | _ACEOF | ||
29923 | |||
29924 | # Neutralize VPATH when `$srcdir' = `.'. | ||
29925 | # Shell code in configure.ac might set extrasub. | ||
29926 | # FIXME: do we really want to maintain this feature? | ||
29927 | cat >>$CONFIG_STATUS <<_ACEOF | ||
29928 | sed "$ac_vpsub | ||
29929 | $extrasub | ||
29930 | _ACEOF | ||
29931 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
29932 | :t | ||
29933 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
29934 | s&@configure_input@&$configure_input&;t t | ||
29935 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
29936 | s&@srcdir@&$ac_srcdir&;t t | ||
29937 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
29938 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
29939 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
29940 | s&@builddir@&$ac_builddir&;t t | ||
29941 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
29942 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
29943 | s&@INSTALL@&$ac_INSTALL&;t t | ||
29944 | $ac_datarootdir_hack | ||
29945 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | ||
29946 | |||
29947 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
29948 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | ||
29949 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | ||
29950 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
29951 | which seems to be undefined. Please make sure it is defined." >&5 | ||
29952 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
29953 | which seems to be undefined. Please make sure it is defined." >&2;} | ||
29954 | |||
29955 | rm -f "$tmp/stdin" | ||
29956 | case $ac_file in | ||
29957 | -) cat "$tmp/out"; rm -f "$tmp/out";; | ||
29958 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | ||
29959 | esac | ||
29960 | ;; | ||
29961 | :H) | ||
29962 | # | ||
29963 | # CONFIG_HEADER | ||
29964 | # | ||
29965 | _ACEOF | ||
29966 | |||
29967 | # Transform confdefs.h into a sed script `conftest.defines', that | ||
29968 | # substitutes the proper values into config.h.in to produce config.h. | ||
29969 | rm -f conftest.defines conftest.tail | ||
29970 | # First, append a space to every undef/define line, to ease matching. | ||
29971 | echo 's/$/ /' >conftest.defines | ||
29972 | # Then, protect against being on the right side of a sed subst, or in | ||
29973 | # an unquoted here document, in config.status. If some macros were | ||
29974 | # called several times there might be several #defines for the same | ||
29975 | # symbol, which is useless. But do not sort them, since the last | ||
29976 | # AC_DEFINE must be honored. | ||
29977 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
29978 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | ||
29979 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | ||
29980 | # PARAMS is the parameter list in the macro definition--in most cases, it's | ||
29981 | # just an empty string. | ||
29982 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | ||
29983 | ac_dB='\\)[ (].*,\\1define\\2' | ||
29984 | ac_dC=' ' | ||
29985 | ac_dD=' ,' | ||
29986 | |||
29987 | uniq confdefs.h | | ||
29988 | sed -n ' | ||
29989 | t rset | ||
29990 | :rset | ||
29991 | s/^[ ]*#[ ]*define[ ][ ]*// | ||
29992 | t ok | ||
29993 | d | ||
29994 | :ok | ||
29995 | s/[\\&,]/\\&/g | ||
29996 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | ||
29997 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | ||
29998 | ' >>conftest.defines | ||
29999 | |||
30000 | # Remove the space that was appended to ease matching. | ||
30001 | # Then replace #undef with comments. This is necessary, for | ||
30002 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
30003 | # on some systems where configure will not decide to define it. | ||
30004 | # (The regexp can be short, since the line contains either #define or #undef.) | ||
30005 | echo 's/ $// | ||
30006 | s,^[ #]*u.*,/* & */,' >>conftest.defines | ||
30007 | |||
30008 | # Break up conftest.defines: | ||
30009 | ac_max_sed_lines=50 | ||
30010 | |||
30011 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | ||
30012 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | ||
30013 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | ||
30014 | # et cetera. | ||
30015 | ac_in='$ac_file_inputs' | ||
30016 | ac_out='"$tmp/out1"' | ||
30017 | ac_nxt='"$tmp/out2"' | ||
30018 | |||
30019 | while : | ||
30020 | do | ||
30021 | # Write a here document: | ||
30022 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30023 | # First, check the format of the line: | ||
30024 | cat >"\$tmp/defines.sed" <<\\CEOF | ||
30025 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | ||
30026 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | ||
30027 | b | ||
30028 | :def | ||
30029 | _ACEOF | ||
30030 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | ||
30031 | echo 'CEOF | ||
30032 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | ||
30033 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | ||
30034 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | ||
30035 | grep . conftest.tail >/dev/null || break | ||
30036 | rm -f conftest.defines | ||
30037 | mv conftest.tail conftest.defines | ||
30038 | done | ||
30039 | rm -f conftest.defines conftest.tail | ||
30040 | |||
30041 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | ||
30042 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
30043 | if test x"$ac_file" != x-; then | ||
30044 | echo "/* $configure_input */" >"$tmp/config.h" | ||
30045 | cat "$ac_result" >>"$tmp/config.h" | ||
30046 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | ||
30047 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | ||
30048 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
30049 | else | ||
30050 | rm -f $ac_file | ||
30051 | mv "$tmp/config.h" $ac_file | ||
30052 | fi | ||
30053 | else | ||
30054 | echo "/* $configure_input */" | ||
30055 | cat "$ac_result" | ||
30056 | fi | ||
30057 | rm -f "$tmp/out12" | ||
30058 | ;; | ||
30059 | |||
30060 | |||
30061 | esac | ||
30062 | |||
30063 | done # for ac_tag | ||
30064 | |||
30065 | |||
30066 | { (exit 0); exit 0; } | ||
30067 | _ACEOF | ||
30068 | chmod +x $CONFIG_STATUS | ||
30069 | ac_clean_files=$ac_clean_files_save | ||
30070 | |||
30071 | |||
30072 | # configure is writing to config.log, and then calls config.status. | ||
30073 | # config.status does its own redirection, appending to config.log. | ||
30074 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
30075 | # by configure, so config.status won't be able to write to it; its | ||
30076 | # output is simply discarded. So we exec the FD to /dev/null, | ||
30077 | # effectively closing config.log, so it can be properly (re)opened and | ||
30078 | # appended to by config.status. When coming back to configure, we | ||
30079 | # need to make the FD available again. | ||
30080 | if test "$no_create" != yes; then | ||
30081 | ac_cs_success=: | ||
30082 | ac_config_status_args= | ||
30083 | test "$silent" = yes && | ||
30084 | ac_config_status_args="$ac_config_status_args --quiet" | ||
30085 | exec 5>/dev/null | ||
30086 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
30087 | exec 5>>config.log | ||
30088 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
30089 | # would make configure fail if this is the last instruction. | ||
30090 | $ac_cs_success || { (exit 1); exit 1; } | ||
30091 | fi | ||
30092 | |||
30093 | |||
30094 | # Print summary of options | ||
30095 | |||
30096 | # Someone please show me a better way :) | ||
30097 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
30098 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
30099 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
30100 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
30101 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
30102 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
30103 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
30104 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
30105 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
30106 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
30107 | |||
30108 | echo "" | ||
30109 | echo "OpenSSH has been configured with the following options:" | ||
30110 | echo " User binaries: $B" | ||
30111 | echo " System binaries: $C" | ||
30112 | echo " Configuration files: $D" | ||
30113 | echo " Askpass program: $E" | ||
30114 | echo " Manual pages: $F" | ||
30115 | echo " PID file: $G" | ||
30116 | echo " Privilege separation chroot path: $H" | ||
30117 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
30118 | echo " At runtime, sshd will use the path defined in $external_path_file" | ||
30119 | echo " Make sure the path to scp is present, otherwise scp will not work" | ||
30120 | else | ||
30121 | echo " sshd default user PATH: $I" | ||
30122 | if test ! -z "$external_path_file"; then | ||
30123 | echo " (If PATH is set in $external_path_file it will be used instead. If" | ||
30124 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" | ||
30125 | fi | ||
30126 | fi | ||
30127 | if test ! -z "$superuser_path" ; then | ||
30128 | echo " sshd superuser user PATH: $J" | ||
30129 | fi | ||
30130 | echo " Manpage format: $MANTYPE" | ||
30131 | echo " PAM support: $PAM_MSG" | ||
30132 | echo " OSF SIA support: $SIA_MSG" | ||
30133 | echo " KerberosV support: $KRB5_MSG" | ||
30134 | echo " SELinux support: $SELINUX_MSG" | ||
30135 | echo " Smartcard support: $SCARD_MSG" | ||
30136 | echo " S/KEY support: $SKEY_MSG" | ||
30137 | echo " TCP Wrappers support: $TCPW_MSG" | ||
30138 | echo " MD5 password support: $MD5_MSG" | ||
30139 | echo " libedit support: $LIBEDIT_MSG" | ||
30140 | echo " Solaris process contract support: $SPC_MSG" | ||
30141 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
30142 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
30143 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
30144 | echo " Random number source: $RAND_MSG" | ||
30145 | if test ! -z "$USE_RAND_HELPER" ; then | ||
30146 | echo " ssh-rand-helper collects from: $RAND_HELPER_MSG" | ||
30147 | fi | ||
30148 | |||
30149 | echo "" | ||
30150 | |||
30151 | echo " Host: ${host}" | ||
30152 | echo " Compiler: ${CC}" | ||
30153 | echo " Compiler flags: ${CFLAGS}" | ||
30154 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
30155 | echo " Linker flags: ${LDFLAGS}" | ||
30156 | echo " Libraries: ${LIBS}" | ||
30157 | if test ! -z "${SSHDLIBS}"; then | ||
30158 | echo " +for sshd: ${SSHDLIBS}" | ||
30159 | fi | ||
30160 | |||
30161 | echo "" | ||
30162 | |||
30163 | if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then | ||
30164 | echo "SVR4 style packages are supported with \"make package\"" | ||
30165 | echo "" | ||
30166 | fi | ||
30167 | |||
30168 | if test "x$PAM_MSG" = "xyes" ; then | ||
30169 | echo "PAM is enabled. You may need to install a PAM control file " | ||
30170 | echo "for sshd, otherwise password authentication may fail. " | ||
30171 | echo "Example PAM control files can be found in the contrib/ " | ||
30172 | echo "subdirectory" | ||
30173 | echo "" | ||
30174 | fi | ||
30175 | |||
30176 | if test ! -z "$RAND_HELPER_CMDHASH" ; then | ||
30177 | echo "WARNING: you are using the builtin random number collection " | ||
30178 | echo "service. Please read WARNING.RNG and request that your OS " | ||
30179 | echo "vendor includes kernel-based random number collection in " | ||
30180 | echo "future versions of your OS." | ||
30181 | echo "" | ||
30182 | fi | ||
30183 | |||
30184 | if test ! -z "$NO_PEERCHECK" ; then | ||
30185 | echo "WARNING: the operating system that you are using does not" | ||
30186 | echo "appear to support getpeereid(), getpeerucred() or the" | ||
30187 | echo "SO_PEERCRED getsockopt() option. These facilities are used to" | ||
30188 | echo "enforce security checks to prevent unauthorised connections to" | ||
30189 | echo "ssh-agent. Their absence increases the risk that a malicious" | ||
30190 | echo "user can connect to your agent." | ||
30191 | echo "" | ||
30192 | fi | ||
30193 | |||
30194 | if test "$AUDIT_MODULE" = "bsm" ; then | ||
30195 | echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." | ||
30196 | echo "See the Solaris section in README.platform for details." | ||
30197 | fi | ||