diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 30848 |
1 files changed, 30848 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 000000000..7c19fc204 --- /dev/null +++ b/configure | |||
@@ -0,0 +1,30848 @@ | |||
1 | #! /bin/sh | ||
2 | # From configure.ac Revision: 1.444 . | ||
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 | KRB5CONF | ||
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-selinux Enable SELinux support | ||
1353 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
1354 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | ||
1355 | --with-xauth=PATH Specify path to xauth program | ||
1356 | --with-mantype=man|cat|doc Set man page type | ||
1357 | --with-md5-passwords Enable use of MD5 passwords | ||
1358 | --without-shadow Disable shadow password support | ||
1359 | --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY | ||
1360 | --with-default-path= Specify default \$PATH environment for server | ||
1361 | --with-superuser-path= Specify different path for super-user | ||
1362 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
1363 | --with-bsd-auth Enable BSD auth support | ||
1364 | --with-pid-dir=PATH Specify location of ssh.pid file | ||
1365 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
1366 | |||
1367 | Some influential environment variables: | ||
1368 | CC C compiler command | ||
1369 | CFLAGS C compiler flags | ||
1370 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1371 | nonstandard directory <lib dir> | ||
1372 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
1373 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | ||
1374 | you have headers in a nonstandard directory <include dir> | ||
1375 | CPP C preprocessor | ||
1376 | |||
1377 | Use these variables to override the choices made by `configure' or to help | ||
1378 | it to find libraries and programs with nonstandard names/locations. | ||
1379 | |||
1380 | Report bugs to <openssh-unix-dev@mindrot.org>. | ||
1381 | _ACEOF | ||
1382 | ac_status=$? | ||
1383 | fi | ||
1384 | |||
1385 | if test "$ac_init_help" = "recursive"; then | ||
1386 | # If there are subdirs, report their specific --help. | ||
1387 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1388 | test -d "$ac_dir" || continue | ||
1389 | ac_builddir=. | ||
1390 | |||
1391 | case "$ac_dir" in | ||
1392 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1393 | *) | ||
1394 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
1395 | # A ".." for each directory in $ac_dir_suffix. | ||
1396 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
1397 | case $ac_top_builddir_sub in | ||
1398 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1399 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1400 | esac ;; | ||
1401 | esac | ||
1402 | ac_abs_top_builddir=$ac_pwd | ||
1403 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1404 | # for backward compatibility: | ||
1405 | ac_top_builddir=$ac_top_build_prefix | ||
1406 | |||
1407 | case $srcdir in | ||
1408 | .) # We are building in place. | ||
1409 | ac_srcdir=. | ||
1410 | ac_top_srcdir=$ac_top_builddir_sub | ||
1411 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1412 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1413 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1414 | ac_top_srcdir=$srcdir | ||
1415 | ac_abs_top_srcdir=$srcdir ;; | ||
1416 | *) # Relative name. | ||
1417 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1418 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1419 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1420 | esac | ||
1421 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1422 | |||
1423 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1424 | # Check for guested configure. | ||
1425 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1426 | echo && | ||
1427 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1428 | elif test -f "$ac_srcdir/configure"; then | ||
1429 | echo && | ||
1430 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1431 | else | ||
1432 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1433 | fi || ac_status=$? | ||
1434 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1435 | done | ||
1436 | fi | ||
1437 | |||
1438 | test -n "$ac_init_help" && exit $ac_status | ||
1439 | if $ac_init_version; then | ||
1440 | cat <<\_ACEOF | ||
1441 | OpenSSH configure Portable | ||
1442 | generated by GNU Autoconf 2.61 | ||
1443 | |||
1444 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
1445 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | ||
1446 | This configure script is free software; the Free Software Foundation | ||
1447 | gives unlimited permission to copy, distribute and modify it. | ||
1448 | _ACEOF | ||
1449 | exit | ||
1450 | fi | ||
1451 | cat >config.log <<_ACEOF | ||
1452 | This file contains any messages produced by compilers while | ||
1453 | running configure, to aid debugging if configure makes a mistake. | ||
1454 | |||
1455 | It was created by OpenSSH $as_me Portable, which was | ||
1456 | generated by GNU Autoconf 2.61. Invocation command line was | ||
1457 | |||
1458 | $ $0 $@ | ||
1459 | |||
1460 | _ACEOF | ||
1461 | exec 5>>config.log | ||
1462 | { | ||
1463 | cat <<_ASUNAME | ||
1464 | ## --------- ## | ||
1465 | ## Platform. ## | ||
1466 | ## --------- ## | ||
1467 | |||
1468 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
1469 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
1470 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
1471 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
1472 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
1473 | |||
1474 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
1475 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
1476 | |||
1477 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
1478 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
1479 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
1480 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
1481 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
1482 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
1483 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
1484 | |||
1485 | _ASUNAME | ||
1486 | |||
1487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1488 | for as_dir in $PATH | ||
1489 | do | ||
1490 | IFS=$as_save_IFS | ||
1491 | test -z "$as_dir" && as_dir=. | ||
1492 | echo "PATH: $as_dir" | ||
1493 | done | ||
1494 | IFS=$as_save_IFS | ||
1495 | |||
1496 | } >&5 | ||
1497 | |||
1498 | cat >&5 <<_ACEOF | ||
1499 | |||
1500 | |||
1501 | ## ----------- ## | ||
1502 | ## Core tests. ## | ||
1503 | ## ----------- ## | ||
1504 | |||
1505 | _ACEOF | ||
1506 | |||
1507 | |||
1508 | # Keep a trace of the command line. | ||
1509 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
1510 | # Strip out --silent because we don't want to record it for future runs. | ||
1511 | # Also quote any args containing shell meta-characters. | ||
1512 | # Make two passes to allow for proper duplicate-argument suppression. | ||
1513 | ac_configure_args= | ||
1514 | ac_configure_args0= | ||
1515 | ac_configure_args1= | ||
1516 | ac_must_keep_next=false | ||
1517 | for ac_pass in 1 2 | ||
1518 | do | ||
1519 | for ac_arg | ||
1520 | do | ||
1521 | case $ac_arg in | ||
1522 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
1523 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1524 | | -silent | --silent | --silen | --sile | --sil) | ||
1525 | continue ;; | ||
1526 | *\'*) | ||
1527 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1528 | esac | ||
1529 | case $ac_pass in | ||
1530 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | ||
1531 | 2) | ||
1532 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | ||
1533 | if test $ac_must_keep_next = true; then | ||
1534 | ac_must_keep_next=false # Got value, back to normal. | ||
1535 | else | ||
1536 | case $ac_arg in | ||
1537 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
1538 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
1539 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
1540 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
1541 | case "$ac_configure_args0 " in | ||
1542 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
1543 | esac | ||
1544 | ;; | ||
1545 | -* ) ac_must_keep_next=true ;; | ||
1546 | esac | ||
1547 | fi | ||
1548 | ac_configure_args="$ac_configure_args '$ac_arg'" | ||
1549 | ;; | ||
1550 | esac | ||
1551 | done | ||
1552 | done | ||
1553 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | ||
1554 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | ||
1555 | |||
1556 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
1557 | # config.log. We remove comments because anyway the quotes in there | ||
1558 | # would cause problems or look ugly. | ||
1559 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
1560 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
1561 | trap 'exit_status=$? | ||
1562 | # Save into config.log some information that might help in debugging. | ||
1563 | { | ||
1564 | echo | ||
1565 | |||
1566 | cat <<\_ASBOX | ||
1567 | ## ---------------- ## | ||
1568 | ## Cache variables. ## | ||
1569 | ## ---------------- ## | ||
1570 | _ASBOX | ||
1571 | echo | ||
1572 | # The following way of writing the cache mishandles newlines in values, | ||
1573 | ( | ||
1574 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
1575 | eval ac_val=\$$ac_var | ||
1576 | case $ac_val in #( | ||
1577 | *${as_nl}*) | ||
1578 | case $ac_var in #( | ||
1579 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
1580 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
1581 | esac | ||
1582 | case $ac_var in #( | ||
1583 | _ | IFS | as_nl) ;; #( | ||
1584 | *) $as_unset $ac_var ;; | ||
1585 | esac ;; | ||
1586 | esac | ||
1587 | done | ||
1588 | (set) 2>&1 | | ||
1589 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
1590 | *${as_nl}ac_space=\ *) | ||
1591 | sed -n \ | ||
1592 | "s/'\''/'\''\\\\'\'''\''/g; | ||
1593 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
1594 | ;; #( | ||
1595 | *) | ||
1596 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
1597 | ;; | ||
1598 | esac | | ||
1599 | sort | ||
1600 | ) | ||
1601 | echo | ||
1602 | |||
1603 | cat <<\_ASBOX | ||
1604 | ## ----------------- ## | ||
1605 | ## Output variables. ## | ||
1606 | ## ----------------- ## | ||
1607 | _ASBOX | ||
1608 | echo | ||
1609 | for ac_var in $ac_subst_vars | ||
1610 | do | ||
1611 | eval ac_val=\$$ac_var | ||
1612 | case $ac_val in | ||
1613 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1614 | esac | ||
1615 | echo "$ac_var='\''$ac_val'\''" | ||
1616 | done | sort | ||
1617 | echo | ||
1618 | |||
1619 | if test -n "$ac_subst_files"; then | ||
1620 | cat <<\_ASBOX | ||
1621 | ## ------------------- ## | ||
1622 | ## File substitutions. ## | ||
1623 | ## ------------------- ## | ||
1624 | _ASBOX | ||
1625 | echo | ||
1626 | for ac_var in $ac_subst_files | ||
1627 | do | ||
1628 | eval ac_val=\$$ac_var | ||
1629 | case $ac_val in | ||
1630 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1631 | esac | ||
1632 | echo "$ac_var='\''$ac_val'\''" | ||
1633 | done | sort | ||
1634 | echo | ||
1635 | fi | ||
1636 | |||
1637 | if test -s confdefs.h; then | ||
1638 | cat <<\_ASBOX | ||
1639 | ## ----------- ## | ||
1640 | ## confdefs.h. ## | ||
1641 | ## ----------- ## | ||
1642 | _ASBOX | ||
1643 | echo | ||
1644 | cat confdefs.h | ||
1645 | echo | ||
1646 | fi | ||
1647 | test "$ac_signal" != 0 && | ||
1648 | echo "$as_me: caught signal $ac_signal" | ||
1649 | echo "$as_me: exit $exit_status" | ||
1650 | } >&5 | ||
1651 | rm -f core *.core core.conftest.* && | ||
1652 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
1653 | exit $exit_status | ||
1654 | ' 0 | ||
1655 | for ac_signal in 1 2 13 15; do | ||
1656 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
1657 | done | ||
1658 | ac_signal=0 | ||
1659 | |||
1660 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
1661 | rm -f -r conftest* confdefs.h | ||
1662 | |||
1663 | # Predefined preprocessor variables. | ||
1664 | |||
1665 | cat >>confdefs.h <<_ACEOF | ||
1666 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
1667 | _ACEOF | ||
1668 | |||
1669 | |||
1670 | cat >>confdefs.h <<_ACEOF | ||
1671 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
1672 | _ACEOF | ||
1673 | |||
1674 | |||
1675 | cat >>confdefs.h <<_ACEOF | ||
1676 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
1677 | _ACEOF | ||
1678 | |||
1679 | |||
1680 | cat >>confdefs.h <<_ACEOF | ||
1681 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
1682 | _ACEOF | ||
1683 | |||
1684 | |||
1685 | cat >>confdefs.h <<_ACEOF | ||
1686 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
1687 | _ACEOF | ||
1688 | |||
1689 | |||
1690 | # Let the site file select an alternate cache file if it wants to. | ||
1691 | # Prefer explicitly selected file to automatically selected ones. | ||
1692 | if test -n "$CONFIG_SITE"; then | ||
1693 | set x "$CONFIG_SITE" | ||
1694 | elif test "x$prefix" != xNONE; then | ||
1695 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | ||
1696 | else | ||
1697 | set x "$ac_default_prefix/share/config.site" \ | ||
1698 | "$ac_default_prefix/etc/config.site" | ||
1699 | fi | ||
1700 | shift | ||
1701 | for ac_site_file | ||
1702 | do | ||
1703 | if test -r "$ac_site_file"; then | ||
1704 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | ||
1705 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1706 | sed 's/^/| /' "$ac_site_file" >&5 | ||
1707 | . "$ac_site_file" | ||
1708 | fi | ||
1709 | done | ||
1710 | |||
1711 | if test -r "$cache_file"; then | ||
1712 | # Some versions of bash will fail to source /dev/null (special | ||
1713 | # files actually), so we avoid doing that. | ||
1714 | if test -f "$cache_file"; then | ||
1715 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | ||
1716 | echo "$as_me: loading cache $cache_file" >&6;} | ||
1717 | case $cache_file in | ||
1718 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
1719 | *) . "./$cache_file";; | ||
1720 | esac | ||
1721 | fi | ||
1722 | else | ||
1723 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | ||
1724 | echo "$as_me: creating cache $cache_file" >&6;} | ||
1725 | >$cache_file | ||
1726 | fi | ||
1727 | |||
1728 | # Check that the precious variables saved in the cache have kept the same | ||
1729 | # value. | ||
1730 | ac_cache_corrupted=false | ||
1731 | for ac_var in $ac_precious_vars; do | ||
1732 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
1733 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
1734 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
1735 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
1736 | case $ac_old_set,$ac_new_set in | ||
1737 | set,) | ||
1738 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
1739 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
1740 | ac_cache_corrupted=: ;; | ||
1741 | ,set) | ||
1742 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | ||
1743 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1744 | ac_cache_corrupted=: ;; | ||
1745 | ,);; | ||
1746 | *) | ||
1747 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
1748 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | ||
1749 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
1750 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | ||
1751 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
1752 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | ||
1753 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
1754 | ac_cache_corrupted=: | ||
1755 | fi;; | ||
1756 | esac | ||
1757 | # Pass precious variables to config.status. | ||
1758 | if test "$ac_new_set" = set; then | ||
1759 | case $ac_new_val in | ||
1760 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1761 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
1762 | esac | ||
1763 | case " $ac_configure_args " in | ||
1764 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1765 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
1766 | esac | ||
1767 | fi | ||
1768 | done | ||
1769 | if $ac_cache_corrupted; then | ||
1770 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
1771 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
1772 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
1773 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
1774 | { (exit 1); exit 1; }; } | ||
1775 | fi | ||
1776 | |||
1777 | |||
1778 | |||
1779 | |||
1780 | |||
1781 | |||
1782 | |||
1783 | |||
1784 | |||
1785 | |||
1786 | |||
1787 | |||
1788 | |||
1789 | |||
1790 | |||
1791 | |||
1792 | |||
1793 | |||
1794 | |||
1795 | |||
1796 | |||
1797 | |||
1798 | |||
1799 | |||
1800 | |||
1801 | ac_ext=c | ||
1802 | ac_cpp='$CPP $CPPFLAGS' | ||
1803 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1804 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1805 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1806 | |||
1807 | |||
1808 | |||
1809 | |||
1810 | |||
1811 | ac_config_headers="$ac_config_headers config.h" | ||
1812 | |||
1813 | ac_ext=c | ||
1814 | ac_cpp='$CPP $CPPFLAGS' | ||
1815 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1816 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1817 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1818 | if test -n "$ac_tool_prefix"; then | ||
1819 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
1820 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
1821 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1822 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1823 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1825 | else | ||
1826 | if test -n "$CC"; then | ||
1827 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1828 | else | ||
1829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1830 | for as_dir in $PATH | ||
1831 | do | ||
1832 | IFS=$as_save_IFS | ||
1833 | test -z "$as_dir" && as_dir=. | ||
1834 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1835 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1836 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
1837 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1838 | break 2 | ||
1839 | fi | ||
1840 | done | ||
1841 | done | ||
1842 | IFS=$as_save_IFS | ||
1843 | |||
1844 | fi | ||
1845 | fi | ||
1846 | CC=$ac_cv_prog_CC | ||
1847 | if test -n "$CC"; then | ||
1848 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
1849 | echo "${ECHO_T}$CC" >&6; } | ||
1850 | else | ||
1851 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1852 | echo "${ECHO_T}no" >&6; } | ||
1853 | fi | ||
1854 | |||
1855 | |||
1856 | fi | ||
1857 | if test -z "$ac_cv_prog_CC"; then | ||
1858 | ac_ct_CC=$CC | ||
1859 | # Extract the first word of "gcc", so it can be a program name with args. | ||
1860 | set dummy gcc; ac_word=$2 | ||
1861 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1862 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1863 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
1864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1865 | else | ||
1866 | if test -n "$ac_ct_CC"; then | ||
1867 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
1868 | else | ||
1869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1870 | for as_dir in $PATH | ||
1871 | do | ||
1872 | IFS=$as_save_IFS | ||
1873 | test -z "$as_dir" && as_dir=. | ||
1874 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1875 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1876 | ac_cv_prog_ac_ct_CC="gcc" | ||
1877 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1878 | break 2 | ||
1879 | fi | ||
1880 | done | ||
1881 | done | ||
1882 | IFS=$as_save_IFS | ||
1883 | |||
1884 | fi | ||
1885 | fi | ||
1886 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
1887 | if test -n "$ac_ct_CC"; then | ||
1888 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
1889 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
1890 | else | ||
1891 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1892 | echo "${ECHO_T}no" >&6; } | ||
1893 | fi | ||
1894 | |||
1895 | if test "x$ac_ct_CC" = x; then | ||
1896 | CC="" | ||
1897 | else | ||
1898 | case $cross_compiling:$ac_tool_warned in | ||
1899 | yes:) | ||
1900 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
1901 | whose name does not start with the host triplet. If you think this | ||
1902 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
1903 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
1904 | whose name does not start with the host triplet. If you think this | ||
1905 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
1906 | ac_tool_warned=yes ;; | ||
1907 | esac | ||
1908 | CC=$ac_ct_CC | ||
1909 | fi | ||
1910 | else | ||
1911 | CC="$ac_cv_prog_CC" | ||
1912 | fi | ||
1913 | |||
1914 | if test -z "$CC"; then | ||
1915 | if test -n "$ac_tool_prefix"; then | ||
1916 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
1917 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
1918 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1919 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1920 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1922 | else | ||
1923 | if test -n "$CC"; then | ||
1924 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1925 | else | ||
1926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1927 | for as_dir in $PATH | ||
1928 | do | ||
1929 | IFS=$as_save_IFS | ||
1930 | test -z "$as_dir" && as_dir=. | ||
1931 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1932 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1933 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
1934 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1935 | break 2 | ||
1936 | fi | ||
1937 | done | ||
1938 | done | ||
1939 | IFS=$as_save_IFS | ||
1940 | |||
1941 | fi | ||
1942 | fi | ||
1943 | CC=$ac_cv_prog_CC | ||
1944 | if test -n "$CC"; then | ||
1945 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
1946 | echo "${ECHO_T}$CC" >&6; } | ||
1947 | else | ||
1948 | { echo "$as_me:$LINENO: result: no" >&5 | ||
1949 | echo "${ECHO_T}no" >&6; } | ||
1950 | fi | ||
1951 | |||
1952 | |||
1953 | fi | ||
1954 | fi | ||
1955 | if test -z "$CC"; then | ||
1956 | # Extract the first word of "cc", so it can be a program name with args. | ||
1957 | set dummy cc; ac_word=$2 | ||
1958 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1959 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
1960 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1962 | else | ||
1963 | if test -n "$CC"; then | ||
1964 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1965 | else | ||
1966 | ac_prog_rejected=no | ||
1967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1968 | for as_dir in $PATH | ||
1969 | do | ||
1970 | IFS=$as_save_IFS | ||
1971 | test -z "$as_dir" && as_dir=. | ||
1972 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1973 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1974 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
1975 | ac_prog_rejected=yes | ||
1976 | continue | ||
1977 | fi | ||
1978 | ac_cv_prog_CC="cc" | ||
1979 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1980 | break 2 | ||
1981 | fi | ||
1982 | done | ||
1983 | done | ||
1984 | IFS=$as_save_IFS | ||
1985 | |||
1986 | if test $ac_prog_rejected = yes; then | ||
1987 | # We found a bogon in the path, so make sure we never use it. | ||
1988 | set dummy $ac_cv_prog_CC | ||
1989 | shift | ||
1990 | if test $# != 0; then | ||
1991 | # We chose a different compiler from the bogus one. | ||
1992 | # However, it has the same basename, so the bogon will be chosen | ||
1993 | # first if we set CC to just the basename; use the full file name. | ||
1994 | shift | ||
1995 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
1996 | fi | ||
1997 | fi | ||
1998 | fi | ||
1999 | fi | ||
2000 | CC=$ac_cv_prog_CC | ||
2001 | if test -n "$CC"; then | ||
2002 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2003 | echo "${ECHO_T}$CC" >&6; } | ||
2004 | else | ||
2005 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2006 | echo "${ECHO_T}no" >&6; } | ||
2007 | fi | ||
2008 | |||
2009 | |||
2010 | fi | ||
2011 | if test -z "$CC"; then | ||
2012 | if test -n "$ac_tool_prefix"; then | ||
2013 | for ac_prog in cl.exe | ||
2014 | do | ||
2015 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
2016 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
2017 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2018 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2019 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2021 | else | ||
2022 | if test -n "$CC"; then | ||
2023 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2024 | else | ||
2025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2026 | for as_dir in $PATH | ||
2027 | do | ||
2028 | IFS=$as_save_IFS | ||
2029 | test -z "$as_dir" && as_dir=. | ||
2030 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2031 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2032 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
2033 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2034 | break 2 | ||
2035 | fi | ||
2036 | done | ||
2037 | done | ||
2038 | IFS=$as_save_IFS | ||
2039 | |||
2040 | fi | ||
2041 | fi | ||
2042 | CC=$ac_cv_prog_CC | ||
2043 | if test -n "$CC"; then | ||
2044 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2045 | echo "${ECHO_T}$CC" >&6; } | ||
2046 | else | ||
2047 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2048 | echo "${ECHO_T}no" >&6; } | ||
2049 | fi | ||
2050 | |||
2051 | |||
2052 | test -n "$CC" && break | ||
2053 | done | ||
2054 | fi | ||
2055 | if test -z "$CC"; then | ||
2056 | ac_ct_CC=$CC | ||
2057 | for ac_prog in cl.exe | ||
2058 | do | ||
2059 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2060 | set dummy $ac_prog; ac_word=$2 | ||
2061 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2062 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2063 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2065 | else | ||
2066 | if test -n "$ac_ct_CC"; then | ||
2067 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2068 | else | ||
2069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2070 | for as_dir in $PATH | ||
2071 | do | ||
2072 | IFS=$as_save_IFS | ||
2073 | test -z "$as_dir" && as_dir=. | ||
2074 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2075 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2076 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
2077 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2078 | break 2 | ||
2079 | fi | ||
2080 | done | ||
2081 | done | ||
2082 | IFS=$as_save_IFS | ||
2083 | |||
2084 | fi | ||
2085 | fi | ||
2086 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2087 | if test -n "$ac_ct_CC"; then | ||
2088 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2089 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
2090 | else | ||
2091 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2092 | echo "${ECHO_T}no" >&6; } | ||
2093 | fi | ||
2094 | |||
2095 | |||
2096 | test -n "$ac_ct_CC" && break | ||
2097 | done | ||
2098 | |||
2099 | if test "x$ac_ct_CC" = x; then | ||
2100 | CC="" | ||
2101 | else | ||
2102 | case $cross_compiling:$ac_tool_warned in | ||
2103 | yes:) | ||
2104 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2105 | whose name does not start with the host triplet. If you think this | ||
2106 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2107 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2108 | whose name does not start with the host triplet. If you think this | ||
2109 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2110 | ac_tool_warned=yes ;; | ||
2111 | esac | ||
2112 | CC=$ac_ct_CC | ||
2113 | fi | ||
2114 | fi | ||
2115 | |||
2116 | fi | ||
2117 | |||
2118 | |||
2119 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | ||
2120 | See \`config.log' for more details." >&5 | ||
2121 | echo "$as_me: error: no acceptable C compiler found in \$PATH | ||
2122 | See \`config.log' for more details." >&2;} | ||
2123 | { (exit 1); exit 1; }; } | ||
2124 | |||
2125 | # Provide some information about the compiler. | ||
2126 | echo "$as_me:$LINENO: checking for C compiler version" >&5 | ||
2127 | ac_compiler=`set X $ac_compile; echo $2` | ||
2128 | { (ac_try="$ac_compiler --version >&5" | ||
2129 | case "(($ac_try" in | ||
2130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2131 | *) ac_try_echo=$ac_try;; | ||
2132 | esac | ||
2133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2134 | (eval "$ac_compiler --version >&5") 2>&5 | ||
2135 | ac_status=$? | ||
2136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2137 | (exit $ac_status); } | ||
2138 | { (ac_try="$ac_compiler -v >&5" | ||
2139 | case "(($ac_try" in | ||
2140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2141 | *) ac_try_echo=$ac_try;; | ||
2142 | esac | ||
2143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2144 | (eval "$ac_compiler -v >&5") 2>&5 | ||
2145 | ac_status=$? | ||
2146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2147 | (exit $ac_status); } | ||
2148 | { (ac_try="$ac_compiler -V >&5" | ||
2149 | case "(($ac_try" in | ||
2150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2151 | *) ac_try_echo=$ac_try;; | ||
2152 | esac | ||
2153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2154 | (eval "$ac_compiler -V >&5") 2>&5 | ||
2155 | ac_status=$? | ||
2156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2157 | (exit $ac_status); } | ||
2158 | |||
2159 | cat >conftest.$ac_ext <<_ACEOF | ||
2160 | /* confdefs.h. */ | ||
2161 | _ACEOF | ||
2162 | cat confdefs.h >>conftest.$ac_ext | ||
2163 | cat >>conftest.$ac_ext <<_ACEOF | ||
2164 | /* end confdefs.h. */ | ||
2165 | |||
2166 | int | ||
2167 | main () | ||
2168 | { | ||
2169 | |||
2170 | ; | ||
2171 | return 0; | ||
2172 | } | ||
2173 | _ACEOF | ||
2174 | ac_clean_files_save=$ac_clean_files | ||
2175 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | ||
2176 | # Try to create an executable without -o first, disregard a.out. | ||
2177 | # It will help us diagnose broken compilers, and finding out an intuition | ||
2178 | # of exeext. | ||
2179 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | ||
2180 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | ||
2181 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
2182 | # | ||
2183 | # List of possible output files, starting from the most likely. | ||
2184 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | ||
2185 | # only as a last resort. b.out is created by i960 compilers. | ||
2186 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | ||
2187 | # | ||
2188 | # The IRIX 6 linker writes into existing files which may not be | ||
2189 | # executable, retaining their permissions. Remove them first so a | ||
2190 | # subsequent execution test works. | ||
2191 | ac_rmfiles= | ||
2192 | for ac_file in $ac_files | ||
2193 | do | ||
2194 | case $ac_file in | ||
2195 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2196 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
2197 | esac | ||
2198 | done | ||
2199 | rm -f $ac_rmfiles | ||
2200 | |||
2201 | if { (ac_try="$ac_link_default" | ||
2202 | case "(($ac_try" in | ||
2203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2204 | *) ac_try_echo=$ac_try;; | ||
2205 | esac | ||
2206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2207 | (eval "$ac_link_default") 2>&5 | ||
2208 | ac_status=$? | ||
2209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2210 | (exit $ac_status); }; then | ||
2211 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
2212 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
2213 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
2214 | # so that the user can short-circuit this test for compilers unknown to | ||
2215 | # Autoconf. | ||
2216 | for ac_file in $ac_files '' | ||
2217 | do | ||
2218 | test -f "$ac_file" || continue | ||
2219 | case $ac_file in | ||
2220 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | ||
2221 | ;; | ||
2222 | [ab].out ) | ||
2223 | # We found the default executable, but exeext='' is most | ||
2224 | # certainly right. | ||
2225 | break;; | ||
2226 | *.* ) | ||
2227 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
2228 | then :; else | ||
2229 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2230 | fi | ||
2231 | # We set ac_cv_exeext here because the later test for it is not | ||
2232 | # safe: cross compilers may not add the suffix if given an `-o' | ||
2233 | # argument, so we may need to know it at that point already. | ||
2234 | # Even if this section looks crufty: it has the advantage of | ||
2235 | # actually working. | ||
2236 | break;; | ||
2237 | * ) | ||
2238 | break;; | ||
2239 | esac | ||
2240 | done | ||
2241 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
2242 | |||
2243 | else | ||
2244 | ac_file='' | ||
2245 | fi | ||
2246 | |||
2247 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
2248 | echo "${ECHO_T}$ac_file" >&6; } | ||
2249 | if test -z "$ac_file"; then | ||
2250 | echo "$as_me: failed program was:" >&5 | ||
2251 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2252 | |||
2253 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | ||
2254 | See \`config.log' for more details." >&5 | ||
2255 | echo "$as_me: error: C compiler cannot create executables | ||
2256 | See \`config.log' for more details." >&2;} | ||
2257 | { (exit 77); exit 77; }; } | ||
2258 | fi | ||
2259 | |||
2260 | ac_exeext=$ac_cv_exeext | ||
2261 | |||
2262 | # Check that the compiler produces executables we can run. If not, either | ||
2263 | # the compiler is broken, or we cross compile. | ||
2264 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
2265 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | ||
2266 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
2267 | # If not cross compiling, check that we can run a simple program. | ||
2268 | if test "$cross_compiling" != yes; then | ||
2269 | if { ac_try='./$ac_file' | ||
2270 | { (case "(($ac_try" in | ||
2271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2272 | *) ac_try_echo=$ac_try;; | ||
2273 | esac | ||
2274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2275 | (eval "$ac_try") 2>&5 | ||
2276 | ac_status=$? | ||
2277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2278 | (exit $ac_status); }; }; then | ||
2279 | cross_compiling=no | ||
2280 | else | ||
2281 | if test "$cross_compiling" = maybe; then | ||
2282 | cross_compiling=yes | ||
2283 | else | ||
2284 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
2285 | If you meant to cross compile, use \`--host'. | ||
2286 | See \`config.log' for more details." >&5 | ||
2287 | echo "$as_me: error: cannot run C compiled programs. | ||
2288 | If you meant to cross compile, use \`--host'. | ||
2289 | See \`config.log' for more details." >&2;} | ||
2290 | { (exit 1); exit 1; }; } | ||
2291 | fi | ||
2292 | fi | ||
2293 | fi | ||
2294 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
2295 | echo "${ECHO_T}yes" >&6; } | ||
2296 | |||
2297 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | ||
2298 | ac_clean_files=$ac_clean_files_save | ||
2299 | # Check that the compiler produces executables we can run. If not, either | ||
2300 | # the compiler is broken, or we cross compile. | ||
2301 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | ||
2302 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | ||
2303 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | ||
2304 | echo "${ECHO_T}$cross_compiling" >&6; } | ||
2305 | |||
2306 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | ||
2307 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | ||
2308 | if { (ac_try="$ac_link" | ||
2309 | case "(($ac_try" in | ||
2310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2311 | *) ac_try_echo=$ac_try;; | ||
2312 | esac | ||
2313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2314 | (eval "$ac_link") 2>&5 | ||
2315 | ac_status=$? | ||
2316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2317 | (exit $ac_status); }; then | ||
2318 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
2319 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
2320 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
2321 | # `rm'. | ||
2322 | for ac_file in conftest.exe conftest conftest.*; do | ||
2323 | test -f "$ac_file" || continue | ||
2324 | case $ac_file in | ||
2325 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2326 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2327 | break;; | ||
2328 | * ) break;; | ||
2329 | esac | ||
2330 | done | ||
2331 | else | ||
2332 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | ||
2333 | See \`config.log' for more details." >&5 | ||
2334 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | ||
2335 | See \`config.log' for more details." >&2;} | ||
2336 | { (exit 1); exit 1; }; } | ||
2337 | fi | ||
2338 | |||
2339 | rm -f conftest$ac_cv_exeext | ||
2340 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
2341 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | ||
2342 | |||
2343 | rm -f conftest.$ac_ext | ||
2344 | EXEEXT=$ac_cv_exeext | ||
2345 | ac_exeext=$EXEEXT | ||
2346 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | ||
2347 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | ||
2348 | if test "${ac_cv_objext+set}" = set; then | ||
2349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2350 | else | ||
2351 | cat >conftest.$ac_ext <<_ACEOF | ||
2352 | /* confdefs.h. */ | ||
2353 | _ACEOF | ||
2354 | cat confdefs.h >>conftest.$ac_ext | ||
2355 | cat >>conftest.$ac_ext <<_ACEOF | ||
2356 | /* end confdefs.h. */ | ||
2357 | |||
2358 | int | ||
2359 | main () | ||
2360 | { | ||
2361 | |||
2362 | ; | ||
2363 | return 0; | ||
2364 | } | ||
2365 | _ACEOF | ||
2366 | rm -f conftest.o conftest.obj | ||
2367 | if { (ac_try="$ac_compile" | ||
2368 | case "(($ac_try" in | ||
2369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2370 | *) ac_try_echo=$ac_try;; | ||
2371 | esac | ||
2372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2373 | (eval "$ac_compile") 2>&5 | ||
2374 | ac_status=$? | ||
2375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2376 | (exit $ac_status); }; then | ||
2377 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
2378 | test -f "$ac_file" || continue; | ||
2379 | case $ac_file in | ||
2380 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | ||
2381 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
2382 | break;; | ||
2383 | esac | ||
2384 | done | ||
2385 | else | ||
2386 | echo "$as_me: failed program was:" >&5 | ||
2387 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2388 | |||
2389 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | ||
2390 | See \`config.log' for more details." >&5 | ||
2391 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | ||
2392 | See \`config.log' for more details." >&2;} | ||
2393 | { (exit 1); exit 1; }; } | ||
2394 | fi | ||
2395 | |||
2396 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
2397 | fi | ||
2398 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | ||
2399 | echo "${ECHO_T}$ac_cv_objext" >&6; } | ||
2400 | OBJEXT=$ac_cv_objext | ||
2401 | ac_objext=$OBJEXT | ||
2402 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | ||
2403 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | ||
2404 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
2405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2406 | else | ||
2407 | cat >conftest.$ac_ext <<_ACEOF | ||
2408 | /* confdefs.h. */ | ||
2409 | _ACEOF | ||
2410 | cat confdefs.h >>conftest.$ac_ext | ||
2411 | cat >>conftest.$ac_ext <<_ACEOF | ||
2412 | /* end confdefs.h. */ | ||
2413 | |||
2414 | int | ||
2415 | main () | ||
2416 | { | ||
2417 | #ifndef __GNUC__ | ||
2418 | choke me | ||
2419 | #endif | ||
2420 | |||
2421 | ; | ||
2422 | return 0; | ||
2423 | } | ||
2424 | _ACEOF | ||
2425 | rm -f conftest.$ac_objext | ||
2426 | if { (ac_try="$ac_compile" | ||
2427 | case "(($ac_try" in | ||
2428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2429 | *) ac_try_echo=$ac_try;; | ||
2430 | esac | ||
2431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2432 | (eval "$ac_compile") 2>conftest.er1 | ||
2433 | ac_status=$? | ||
2434 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2435 | rm -f conftest.er1 | ||
2436 | cat conftest.err >&5 | ||
2437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2438 | (exit $ac_status); } && { | ||
2439 | test -z "$ac_c_werror_flag" || | ||
2440 | test ! -s conftest.err | ||
2441 | } && test -s conftest.$ac_objext; then | ||
2442 | ac_compiler_gnu=yes | ||
2443 | else | ||
2444 | echo "$as_me: failed program was:" >&5 | ||
2445 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2446 | |||
2447 | ac_compiler_gnu=no | ||
2448 | fi | ||
2449 | |||
2450 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2451 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
2452 | |||
2453 | fi | ||
2454 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | ||
2455 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | ||
2456 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
2457 | ac_test_CFLAGS=${CFLAGS+set} | ||
2458 | ac_save_CFLAGS=$CFLAGS | ||
2459 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | ||
2460 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | ||
2461 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
2462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2463 | else | ||
2464 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
2465 | ac_c_werror_flag=yes | ||
2466 | ac_cv_prog_cc_g=no | ||
2467 | CFLAGS="-g" | ||
2468 | cat >conftest.$ac_ext <<_ACEOF | ||
2469 | /* confdefs.h. */ | ||
2470 | _ACEOF | ||
2471 | cat confdefs.h >>conftest.$ac_ext | ||
2472 | cat >>conftest.$ac_ext <<_ACEOF | ||
2473 | /* end confdefs.h. */ | ||
2474 | |||
2475 | int | ||
2476 | main () | ||
2477 | { | ||
2478 | |||
2479 | ; | ||
2480 | return 0; | ||
2481 | } | ||
2482 | _ACEOF | ||
2483 | rm -f conftest.$ac_objext | ||
2484 | if { (ac_try="$ac_compile" | ||
2485 | case "(($ac_try" in | ||
2486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2487 | *) ac_try_echo=$ac_try;; | ||
2488 | esac | ||
2489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2490 | (eval "$ac_compile") 2>conftest.er1 | ||
2491 | ac_status=$? | ||
2492 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2493 | rm -f conftest.er1 | ||
2494 | cat conftest.err >&5 | ||
2495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2496 | (exit $ac_status); } && { | ||
2497 | test -z "$ac_c_werror_flag" || | ||
2498 | test ! -s conftest.err | ||
2499 | } && test -s conftest.$ac_objext; then | ||
2500 | ac_cv_prog_cc_g=yes | ||
2501 | else | ||
2502 | echo "$as_me: failed program was:" >&5 | ||
2503 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2504 | |||
2505 | CFLAGS="" | ||
2506 | cat >conftest.$ac_ext <<_ACEOF | ||
2507 | /* confdefs.h. */ | ||
2508 | _ACEOF | ||
2509 | cat confdefs.h >>conftest.$ac_ext | ||
2510 | cat >>conftest.$ac_ext <<_ACEOF | ||
2511 | /* end confdefs.h. */ | ||
2512 | |||
2513 | int | ||
2514 | main () | ||
2515 | { | ||
2516 | |||
2517 | ; | ||
2518 | return 0; | ||
2519 | } | ||
2520 | _ACEOF | ||
2521 | rm -f conftest.$ac_objext | ||
2522 | if { (ac_try="$ac_compile" | ||
2523 | case "(($ac_try" in | ||
2524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2525 | *) ac_try_echo=$ac_try;; | ||
2526 | esac | ||
2527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2528 | (eval "$ac_compile") 2>conftest.er1 | ||
2529 | ac_status=$? | ||
2530 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2531 | rm -f conftest.er1 | ||
2532 | cat conftest.err >&5 | ||
2533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2534 | (exit $ac_status); } && { | ||
2535 | test -z "$ac_c_werror_flag" || | ||
2536 | test ! -s conftest.err | ||
2537 | } && test -s conftest.$ac_objext; then | ||
2538 | : | ||
2539 | else | ||
2540 | echo "$as_me: failed program was:" >&5 | ||
2541 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2542 | |||
2543 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
2544 | CFLAGS="-g" | ||
2545 | cat >conftest.$ac_ext <<_ACEOF | ||
2546 | /* confdefs.h. */ | ||
2547 | _ACEOF | ||
2548 | cat confdefs.h >>conftest.$ac_ext | ||
2549 | cat >>conftest.$ac_ext <<_ACEOF | ||
2550 | /* end confdefs.h. */ | ||
2551 | |||
2552 | int | ||
2553 | main () | ||
2554 | { | ||
2555 | |||
2556 | ; | ||
2557 | return 0; | ||
2558 | } | ||
2559 | _ACEOF | ||
2560 | rm -f conftest.$ac_objext | ||
2561 | if { (ac_try="$ac_compile" | ||
2562 | case "(($ac_try" in | ||
2563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2564 | *) ac_try_echo=$ac_try;; | ||
2565 | esac | ||
2566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2567 | (eval "$ac_compile") 2>conftest.er1 | ||
2568 | ac_status=$? | ||
2569 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2570 | rm -f conftest.er1 | ||
2571 | cat conftest.err >&5 | ||
2572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2573 | (exit $ac_status); } && { | ||
2574 | test -z "$ac_c_werror_flag" || | ||
2575 | test ! -s conftest.err | ||
2576 | } && test -s conftest.$ac_objext; then | ||
2577 | ac_cv_prog_cc_g=yes | ||
2578 | else | ||
2579 | echo "$as_me: failed program was:" >&5 | ||
2580 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2581 | |||
2582 | |||
2583 | fi | ||
2584 | |||
2585 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2586 | fi | ||
2587 | |||
2588 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2589 | fi | ||
2590 | |||
2591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2592 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
2593 | fi | ||
2594 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
2595 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | ||
2596 | if test "$ac_test_CFLAGS" = set; then | ||
2597 | CFLAGS=$ac_save_CFLAGS | ||
2598 | elif test $ac_cv_prog_cc_g = yes; then | ||
2599 | if test "$GCC" = yes; then | ||
2600 | CFLAGS="-g -O2" | ||
2601 | else | ||
2602 | CFLAGS="-g" | ||
2603 | fi | ||
2604 | else | ||
2605 | if test "$GCC" = yes; then | ||
2606 | CFLAGS="-O2" | ||
2607 | else | ||
2608 | CFLAGS= | ||
2609 | fi | ||
2610 | fi | ||
2611 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | ||
2612 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | ||
2613 | if test "${ac_cv_prog_cc_c89+set}" = set; then | ||
2614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2615 | else | ||
2616 | ac_cv_prog_cc_c89=no | ||
2617 | ac_save_CC=$CC | ||
2618 | cat >conftest.$ac_ext <<_ACEOF | ||
2619 | /* confdefs.h. */ | ||
2620 | _ACEOF | ||
2621 | cat confdefs.h >>conftest.$ac_ext | ||
2622 | cat >>conftest.$ac_ext <<_ACEOF | ||
2623 | /* end confdefs.h. */ | ||
2624 | #include <stdarg.h> | ||
2625 | #include <stdio.h> | ||
2626 | #include <sys/types.h> | ||
2627 | #include <sys/stat.h> | ||
2628 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
2629 | struct buf { int x; }; | ||
2630 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
2631 | static char *e (p, i) | ||
2632 | char **p; | ||
2633 | int i; | ||
2634 | { | ||
2635 | return p[i]; | ||
2636 | } | ||
2637 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
2638 | { | ||
2639 | char *s; | ||
2640 | va_list v; | ||
2641 | va_start (v,p); | ||
2642 | s = g (p, va_arg (v,int)); | ||
2643 | va_end (v); | ||
2644 | return s; | ||
2645 | } | ||
2646 | |||
2647 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
2648 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
2649 | These don't provoke an error unfortunately, instead are silently treated | ||
2650 | as 'x'. The following induces an error, until -std is added to get | ||
2651 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
2652 | array size at least. It's necessary to write '\x00'==0 to get something | ||
2653 | that's true only with -std. */ | ||
2654 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
2655 | |||
2656 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
2657 | inside strings and character constants. */ | ||
2658 | #define FOO(x) 'x' | ||
2659 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
2660 | |||
2661 | int test (int i, double x); | ||
2662 | struct s1 {int (*f) (int a);}; | ||
2663 | struct s2 {int (*f) (double a);}; | ||
2664 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
2665 | int argc; | ||
2666 | char **argv; | ||
2667 | int | ||
2668 | main () | ||
2669 | { | ||
2670 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
2671 | ; | ||
2672 | return 0; | ||
2673 | } | ||
2674 | _ACEOF | ||
2675 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
2676 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
2677 | do | ||
2678 | CC="$ac_save_CC $ac_arg" | ||
2679 | rm -f conftest.$ac_objext | ||
2680 | if { (ac_try="$ac_compile" | ||
2681 | case "(($ac_try" in | ||
2682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2683 | *) ac_try_echo=$ac_try;; | ||
2684 | esac | ||
2685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2686 | (eval "$ac_compile") 2>conftest.er1 | ||
2687 | ac_status=$? | ||
2688 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2689 | rm -f conftest.er1 | ||
2690 | cat conftest.err >&5 | ||
2691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2692 | (exit $ac_status); } && { | ||
2693 | test -z "$ac_c_werror_flag" || | ||
2694 | test ! -s conftest.err | ||
2695 | } && test -s conftest.$ac_objext; then | ||
2696 | ac_cv_prog_cc_c89=$ac_arg | ||
2697 | else | ||
2698 | echo "$as_me: failed program was:" >&5 | ||
2699 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2700 | |||
2701 | |||
2702 | fi | ||
2703 | |||
2704 | rm -f core conftest.err conftest.$ac_objext | ||
2705 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
2706 | done | ||
2707 | rm -f conftest.$ac_ext | ||
2708 | CC=$ac_save_CC | ||
2709 | |||
2710 | fi | ||
2711 | # AC_CACHE_VAL | ||
2712 | case "x$ac_cv_prog_cc_c89" in | ||
2713 | x) | ||
2714 | { echo "$as_me:$LINENO: result: none needed" >&5 | ||
2715 | echo "${ECHO_T}none needed" >&6; } ;; | ||
2716 | xno) | ||
2717 | { echo "$as_me:$LINENO: result: unsupported" >&5 | ||
2718 | echo "${ECHO_T}unsupported" >&6; } ;; | ||
2719 | *) | ||
2720 | CC="$CC $ac_cv_prog_cc_c89" | ||
2721 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | ||
2722 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | ||
2723 | esac | ||
2724 | |||
2725 | |||
2726 | ac_ext=c | ||
2727 | ac_cpp='$CPP $CPPFLAGS' | ||
2728 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2729 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2730 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2731 | |||
2732 | ac_aux_dir= | ||
2733 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
2734 | if test -f "$ac_dir/install-sh"; then | ||
2735 | ac_aux_dir=$ac_dir | ||
2736 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
2737 | break | ||
2738 | elif test -f "$ac_dir/install.sh"; then | ||
2739 | ac_aux_dir=$ac_dir | ||
2740 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
2741 | break | ||
2742 | elif test -f "$ac_dir/shtool"; then | ||
2743 | ac_aux_dir=$ac_dir | ||
2744 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
2745 | break | ||
2746 | fi | ||
2747 | done | ||
2748 | if test -z "$ac_aux_dir"; then | ||
2749 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | ||
2750 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | ||
2751 | { (exit 1); exit 1; }; } | ||
2752 | fi | ||
2753 | |||
2754 | # These three variables are undocumented and unsupported, | ||
2755 | # and are intended to be withdrawn in a future Autoconf release. | ||
2756 | # They can cause serious problems if a builder's source tree is in a directory | ||
2757 | # whose full name contains unusual characters. | ||
2758 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
2759 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
2760 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
2761 | |||
2762 | |||
2763 | # Make sure we can run config.sub. | ||
2764 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
2765 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | ||
2766 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | ||
2767 | { (exit 1); exit 1; }; } | ||
2768 | |||
2769 | { echo "$as_me:$LINENO: checking build system type" >&5 | ||
2770 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | ||
2771 | if test "${ac_cv_build+set}" = set; then | ||
2772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2773 | else | ||
2774 | ac_build_alias=$build_alias | ||
2775 | test "x$ac_build_alias" = x && | ||
2776 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
2777 | test "x$ac_build_alias" = x && | ||
2778 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | ||
2779 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
2780 | { (exit 1); exit 1; }; } | ||
2781 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
2782 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | ||
2783 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | ||
2784 | { (exit 1); exit 1; }; } | ||
2785 | |||
2786 | fi | ||
2787 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | ||
2788 | echo "${ECHO_T}$ac_cv_build" >&6; } | ||
2789 | case $ac_cv_build in | ||
2790 | *-*-*) ;; | ||
2791 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | ||
2792 | echo "$as_me: error: invalid value of canonical build" >&2;} | ||
2793 | { (exit 1); exit 1; }; };; | ||
2794 | esac | ||
2795 | build=$ac_cv_build | ||
2796 | ac_save_IFS=$IFS; IFS='-' | ||
2797 | set x $ac_cv_build | ||
2798 | shift | ||
2799 | build_cpu=$1 | ||
2800 | build_vendor=$2 | ||
2801 | shift; shift | ||
2802 | # Remember, the first character of IFS is used to create $*, | ||
2803 | # except with old shells: | ||
2804 | build_os=$* | ||
2805 | IFS=$ac_save_IFS | ||
2806 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
2807 | |||
2808 | |||
2809 | { echo "$as_me:$LINENO: checking host system type" >&5 | ||
2810 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | ||
2811 | if test "${ac_cv_host+set}" = set; then | ||
2812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2813 | else | ||
2814 | if test "x$host_alias" = x; then | ||
2815 | ac_cv_host=$ac_cv_build | ||
2816 | else | ||
2817 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
2818 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | ||
2819 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | ||
2820 | { (exit 1); exit 1; }; } | ||
2821 | fi | ||
2822 | |||
2823 | fi | ||
2824 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | ||
2825 | echo "${ECHO_T}$ac_cv_host" >&6; } | ||
2826 | case $ac_cv_host in | ||
2827 | *-*-*) ;; | ||
2828 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | ||
2829 | echo "$as_me: error: invalid value of canonical host" >&2;} | ||
2830 | { (exit 1); exit 1; }; };; | ||
2831 | esac | ||
2832 | host=$ac_cv_host | ||
2833 | ac_save_IFS=$IFS; IFS='-' | ||
2834 | set x $ac_cv_host | ||
2835 | shift | ||
2836 | host_cpu=$1 | ||
2837 | host_vendor=$2 | ||
2838 | shift; shift | ||
2839 | # Remember, the first character of IFS is used to create $*, | ||
2840 | # except with old shells: | ||
2841 | host_os=$* | ||
2842 | IFS=$ac_save_IFS | ||
2843 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
2844 | |||
2845 | |||
2846 | |||
2847 | ac_ext=c | ||
2848 | ac_cpp='$CPP $CPPFLAGS' | ||
2849 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2850 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2851 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2852 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
2853 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | ||
2854 | # On Suns, sometimes $CPP names a directory. | ||
2855 | if test -n "$CPP" && test -d "$CPP"; then | ||
2856 | CPP= | ||
2857 | fi | ||
2858 | if test -z "$CPP"; then | ||
2859 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
2860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2861 | else | ||
2862 | # Double quotes because CPP needs to be expanded | ||
2863 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
2864 | do | ||
2865 | ac_preproc_ok=false | ||
2866 | for ac_c_preproc_warn_flag in '' yes | ||
2867 | do | ||
2868 | # Use a header file that comes with gcc, so configuring glibc | ||
2869 | # with a fresh cross-compiler works. | ||
2870 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2871 | # <limits.h> exists even on freestanding compilers. | ||
2872 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2873 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2874 | cat >conftest.$ac_ext <<_ACEOF | ||
2875 | /* confdefs.h. */ | ||
2876 | _ACEOF | ||
2877 | cat confdefs.h >>conftest.$ac_ext | ||
2878 | cat >>conftest.$ac_ext <<_ACEOF | ||
2879 | /* end confdefs.h. */ | ||
2880 | #ifdef __STDC__ | ||
2881 | # include <limits.h> | ||
2882 | #else | ||
2883 | # include <assert.h> | ||
2884 | #endif | ||
2885 | Syntax error | ||
2886 | _ACEOF | ||
2887 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
2888 | case "(($ac_try" in | ||
2889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2890 | *) ac_try_echo=$ac_try;; | ||
2891 | esac | ||
2892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2893 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
2894 | ac_status=$? | ||
2895 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2896 | rm -f conftest.er1 | ||
2897 | cat conftest.err >&5 | ||
2898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2899 | (exit $ac_status); } >/dev/null && { | ||
2900 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
2901 | test ! -s conftest.err | ||
2902 | }; then | ||
2903 | : | ||
2904 | else | ||
2905 | echo "$as_me: failed program was:" >&5 | ||
2906 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2907 | |||
2908 | # Broken: fails on valid input. | ||
2909 | continue | ||
2910 | fi | ||
2911 | |||
2912 | rm -f conftest.err conftest.$ac_ext | ||
2913 | |||
2914 | # OK, works on sane cases. Now check whether nonexistent headers | ||
2915 | # can be detected and how. | ||
2916 | cat >conftest.$ac_ext <<_ACEOF | ||
2917 | /* confdefs.h. */ | ||
2918 | _ACEOF | ||
2919 | cat confdefs.h >>conftest.$ac_ext | ||
2920 | cat >>conftest.$ac_ext <<_ACEOF | ||
2921 | /* end confdefs.h. */ | ||
2922 | #include <ac_nonexistent.h> | ||
2923 | _ACEOF | ||
2924 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
2925 | case "(($ac_try" in | ||
2926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2927 | *) ac_try_echo=$ac_try;; | ||
2928 | esac | ||
2929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2930 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
2931 | ac_status=$? | ||
2932 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2933 | rm -f conftest.er1 | ||
2934 | cat conftest.err >&5 | ||
2935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2936 | (exit $ac_status); } >/dev/null && { | ||
2937 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
2938 | test ! -s conftest.err | ||
2939 | }; then | ||
2940 | # Broken: success on invalid input. | ||
2941 | continue | ||
2942 | else | ||
2943 | echo "$as_me: failed program was:" >&5 | ||
2944 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2945 | |||
2946 | # Passes both tests. | ||
2947 | ac_preproc_ok=: | ||
2948 | break | ||
2949 | fi | ||
2950 | |||
2951 | rm -f conftest.err conftest.$ac_ext | ||
2952 | |||
2953 | done | ||
2954 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
2955 | rm -f conftest.err conftest.$ac_ext | ||
2956 | if $ac_preproc_ok; then | ||
2957 | break | ||
2958 | fi | ||
2959 | |||
2960 | done | ||
2961 | ac_cv_prog_CPP=$CPP | ||
2962 | |||
2963 | fi | ||
2964 | CPP=$ac_cv_prog_CPP | ||
2965 | else | ||
2966 | ac_cv_prog_CPP=$CPP | ||
2967 | fi | ||
2968 | { echo "$as_me:$LINENO: result: $CPP" >&5 | ||
2969 | echo "${ECHO_T}$CPP" >&6; } | ||
2970 | ac_preproc_ok=false | ||
2971 | for ac_c_preproc_warn_flag in '' yes | ||
2972 | do | ||
2973 | # Use a header file that comes with gcc, so configuring glibc | ||
2974 | # with a fresh cross-compiler works. | ||
2975 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
2976 | # <limits.h> exists even on freestanding compilers. | ||
2977 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
2978 | # not just through cpp. "Syntax error" is here to catch this case. | ||
2979 | cat >conftest.$ac_ext <<_ACEOF | ||
2980 | /* confdefs.h. */ | ||
2981 | _ACEOF | ||
2982 | cat confdefs.h >>conftest.$ac_ext | ||
2983 | cat >>conftest.$ac_ext <<_ACEOF | ||
2984 | /* end confdefs.h. */ | ||
2985 | #ifdef __STDC__ | ||
2986 | # include <limits.h> | ||
2987 | #else | ||
2988 | # include <assert.h> | ||
2989 | #endif | ||
2990 | Syntax error | ||
2991 | _ACEOF | ||
2992 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
2993 | case "(($ac_try" in | ||
2994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2995 | *) ac_try_echo=$ac_try;; | ||
2996 | esac | ||
2997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2998 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
2999 | ac_status=$? | ||
3000 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3001 | rm -f conftest.er1 | ||
3002 | cat conftest.err >&5 | ||
3003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3004 | (exit $ac_status); } >/dev/null && { | ||
3005 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3006 | test ! -s conftest.err | ||
3007 | }; then | ||
3008 | : | ||
3009 | else | ||
3010 | echo "$as_me: failed program was:" >&5 | ||
3011 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3012 | |||
3013 | # Broken: fails on valid input. | ||
3014 | continue | ||
3015 | fi | ||
3016 | |||
3017 | rm -f conftest.err conftest.$ac_ext | ||
3018 | |||
3019 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3020 | # can be detected and how. | ||
3021 | cat >conftest.$ac_ext <<_ACEOF | ||
3022 | /* confdefs.h. */ | ||
3023 | _ACEOF | ||
3024 | cat confdefs.h >>conftest.$ac_ext | ||
3025 | cat >>conftest.$ac_ext <<_ACEOF | ||
3026 | /* end confdefs.h. */ | ||
3027 | #include <ac_nonexistent.h> | ||
3028 | _ACEOF | ||
3029 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3030 | case "(($ac_try" in | ||
3031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3032 | *) ac_try_echo=$ac_try;; | ||
3033 | esac | ||
3034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3035 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3036 | ac_status=$? | ||
3037 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3038 | rm -f conftest.er1 | ||
3039 | cat conftest.err >&5 | ||
3040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3041 | (exit $ac_status); } >/dev/null && { | ||
3042 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3043 | test ! -s conftest.err | ||
3044 | }; then | ||
3045 | # Broken: success on invalid input. | ||
3046 | continue | ||
3047 | else | ||
3048 | echo "$as_me: failed program was:" >&5 | ||
3049 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3050 | |||
3051 | # Passes both tests. | ||
3052 | ac_preproc_ok=: | ||
3053 | break | ||
3054 | fi | ||
3055 | |||
3056 | rm -f conftest.err conftest.$ac_ext | ||
3057 | |||
3058 | done | ||
3059 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3060 | rm -f conftest.err conftest.$ac_ext | ||
3061 | if $ac_preproc_ok; then | ||
3062 | : | ||
3063 | else | ||
3064 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
3065 | See \`config.log' for more details." >&5 | ||
3066 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
3067 | See \`config.log' for more details." >&2;} | ||
3068 | { (exit 1); exit 1; }; } | ||
3069 | fi | ||
3070 | |||
3071 | ac_ext=c | ||
3072 | ac_cpp='$CPP $CPPFLAGS' | ||
3073 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3074 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3075 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3076 | |||
3077 | |||
3078 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | ||
3079 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | ||
3080 | if test "${ac_cv_path_GREP+set}" = set; then | ||
3081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3082 | else | ||
3083 | # Extract the first word of "grep ggrep" to use in msg output | ||
3084 | if test -z "$GREP"; then | ||
3085 | set dummy grep ggrep; ac_prog_name=$2 | ||
3086 | if test "${ac_cv_path_GREP+set}" = set; then | ||
3087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3088 | else | ||
3089 | ac_path_GREP_found=false | ||
3090 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3092 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3093 | do | ||
3094 | IFS=$as_save_IFS | ||
3095 | test -z "$as_dir" && as_dir=. | ||
3096 | for ac_prog in grep ggrep; do | ||
3097 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3098 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3099 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
3100 | # Check for GNU ac_path_GREP and select it if it is found. | ||
3101 | # Check for GNU $ac_path_GREP | ||
3102 | case `"$ac_path_GREP" --version 2>&1` in | ||
3103 | *GNU*) | ||
3104 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
3105 | *) | ||
3106 | ac_count=0 | ||
3107 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
3108 | while : | ||
3109 | do | ||
3110 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3111 | mv "conftest.tmp" "conftest.in" | ||
3112 | cp "conftest.in" "conftest.nl" | ||
3113 | echo 'GREP' >> "conftest.nl" | ||
3114 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3115 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3116 | ac_count=`expr $ac_count + 1` | ||
3117 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
3118 | # Best one so far, save it but keep looking for a better one | ||
3119 | ac_cv_path_GREP="$ac_path_GREP" | ||
3120 | ac_path_GREP_max=$ac_count | ||
3121 | fi | ||
3122 | # 10*(2^10) chars as input seems more than enough | ||
3123 | test $ac_count -gt 10 && break | ||
3124 | done | ||
3125 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3126 | esac | ||
3127 | |||
3128 | |||
3129 | $ac_path_GREP_found && break 3 | ||
3130 | done | ||
3131 | done | ||
3132 | |||
3133 | done | ||
3134 | IFS=$as_save_IFS | ||
3135 | |||
3136 | |||
3137 | fi | ||
3138 | |||
3139 | GREP="$ac_cv_path_GREP" | ||
3140 | if test -z "$GREP"; then | ||
3141 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
3142 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
3143 | { (exit 1); exit 1; }; } | ||
3144 | fi | ||
3145 | |||
3146 | else | ||
3147 | ac_cv_path_GREP=$GREP | ||
3148 | fi | ||
3149 | |||
3150 | |||
3151 | fi | ||
3152 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | ||
3153 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | ||
3154 | GREP="$ac_cv_path_GREP" | ||
3155 | |||
3156 | |||
3157 | { echo "$as_me:$LINENO: checking for egrep" >&5 | ||
3158 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | ||
3159 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
3160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3161 | else | ||
3162 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
3163 | then ac_cv_path_EGREP="$GREP -E" | ||
3164 | else | ||
3165 | # Extract the first word of "egrep" to use in msg output | ||
3166 | if test -z "$EGREP"; then | ||
3167 | set dummy egrep; ac_prog_name=$2 | ||
3168 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
3169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3170 | else | ||
3171 | ac_path_EGREP_found=false | ||
3172 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3174 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3175 | do | ||
3176 | IFS=$as_save_IFS | ||
3177 | test -z "$as_dir" && as_dir=. | ||
3178 | for ac_prog in egrep; do | ||
3179 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3180 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3181 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
3182 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
3183 | # Check for GNU $ac_path_EGREP | ||
3184 | case `"$ac_path_EGREP" --version 2>&1` in | ||
3185 | *GNU*) | ||
3186 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
3187 | *) | ||
3188 | ac_count=0 | ||
3189 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
3190 | while : | ||
3191 | do | ||
3192 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3193 | mv "conftest.tmp" "conftest.in" | ||
3194 | cp "conftest.in" "conftest.nl" | ||
3195 | echo 'EGREP' >> "conftest.nl" | ||
3196 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3197 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3198 | ac_count=`expr $ac_count + 1` | ||
3199 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
3200 | # Best one so far, save it but keep looking for a better one | ||
3201 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
3202 | ac_path_EGREP_max=$ac_count | ||
3203 | fi | ||
3204 | # 10*(2^10) chars as input seems more than enough | ||
3205 | test $ac_count -gt 10 && break | ||
3206 | done | ||
3207 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3208 | esac | ||
3209 | |||
3210 | |||
3211 | $ac_path_EGREP_found && break 3 | ||
3212 | done | ||
3213 | done | ||
3214 | |||
3215 | done | ||
3216 | IFS=$as_save_IFS | ||
3217 | |||
3218 | |||
3219 | fi | ||
3220 | |||
3221 | EGREP="$ac_cv_path_EGREP" | ||
3222 | if test -z "$EGREP"; then | ||
3223 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
3224 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
3225 | { (exit 1); exit 1; }; } | ||
3226 | fi | ||
3227 | |||
3228 | else | ||
3229 | ac_cv_path_EGREP=$EGREP | ||
3230 | fi | ||
3231 | |||
3232 | |||
3233 | fi | ||
3234 | fi | ||
3235 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||
3236 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | ||
3237 | EGREP="$ac_cv_path_EGREP" | ||
3238 | |||
3239 | |||
3240 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
3241 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | ||
3242 | if test "${ac_cv_header_stdc+set}" = set; then | ||
3243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3244 | else | ||
3245 | cat >conftest.$ac_ext <<_ACEOF | ||
3246 | /* confdefs.h. */ | ||
3247 | _ACEOF | ||
3248 | cat confdefs.h >>conftest.$ac_ext | ||
3249 | cat >>conftest.$ac_ext <<_ACEOF | ||
3250 | /* end confdefs.h. */ | ||
3251 | #include <stdlib.h> | ||
3252 | #include <stdarg.h> | ||
3253 | #include <string.h> | ||
3254 | #include <float.h> | ||
3255 | |||
3256 | int | ||
3257 | main () | ||
3258 | { | ||
3259 | |||
3260 | ; | ||
3261 | return 0; | ||
3262 | } | ||
3263 | _ACEOF | ||
3264 | rm -f conftest.$ac_objext | ||
3265 | if { (ac_try="$ac_compile" | ||
3266 | case "(($ac_try" in | ||
3267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3268 | *) ac_try_echo=$ac_try;; | ||
3269 | esac | ||
3270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3271 | (eval "$ac_compile") 2>conftest.er1 | ||
3272 | ac_status=$? | ||
3273 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3274 | rm -f conftest.er1 | ||
3275 | cat conftest.err >&5 | ||
3276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3277 | (exit $ac_status); } && { | ||
3278 | test -z "$ac_c_werror_flag" || | ||
3279 | test ! -s conftest.err | ||
3280 | } && test -s conftest.$ac_objext; then | ||
3281 | ac_cv_header_stdc=yes | ||
3282 | else | ||
3283 | echo "$as_me: failed program was:" >&5 | ||
3284 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3285 | |||
3286 | ac_cv_header_stdc=no | ||
3287 | fi | ||
3288 | |||
3289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3290 | |||
3291 | if test $ac_cv_header_stdc = yes; then | ||
3292 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
3293 | cat >conftest.$ac_ext <<_ACEOF | ||
3294 | /* confdefs.h. */ | ||
3295 | _ACEOF | ||
3296 | cat confdefs.h >>conftest.$ac_ext | ||
3297 | cat >>conftest.$ac_ext <<_ACEOF | ||
3298 | /* end confdefs.h. */ | ||
3299 | #include <string.h> | ||
3300 | |||
3301 | _ACEOF | ||
3302 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3303 | $EGREP "memchr" >/dev/null 2>&1; then | ||
3304 | : | ||
3305 | else | ||
3306 | ac_cv_header_stdc=no | ||
3307 | fi | ||
3308 | rm -f conftest* | ||
3309 | |||
3310 | fi | ||
3311 | |||
3312 | if test $ac_cv_header_stdc = yes; then | ||
3313 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
3314 | cat >conftest.$ac_ext <<_ACEOF | ||
3315 | /* confdefs.h. */ | ||
3316 | _ACEOF | ||
3317 | cat confdefs.h >>conftest.$ac_ext | ||
3318 | cat >>conftest.$ac_ext <<_ACEOF | ||
3319 | /* end confdefs.h. */ | ||
3320 | #include <stdlib.h> | ||
3321 | |||
3322 | _ACEOF | ||
3323 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3324 | $EGREP "free" >/dev/null 2>&1; then | ||
3325 | : | ||
3326 | else | ||
3327 | ac_cv_header_stdc=no | ||
3328 | fi | ||
3329 | rm -f conftest* | ||
3330 | |||
3331 | fi | ||
3332 | |||
3333 | if test $ac_cv_header_stdc = yes; then | ||
3334 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
3335 | if test "$cross_compiling" = yes; then | ||
3336 | : | ||
3337 | else | ||
3338 | cat >conftest.$ac_ext <<_ACEOF | ||
3339 | /* confdefs.h. */ | ||
3340 | _ACEOF | ||
3341 | cat confdefs.h >>conftest.$ac_ext | ||
3342 | cat >>conftest.$ac_ext <<_ACEOF | ||
3343 | /* end confdefs.h. */ | ||
3344 | #include <ctype.h> | ||
3345 | #include <stdlib.h> | ||
3346 | #if ((' ' & 0x0FF) == 0x020) | ||
3347 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
3348 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
3349 | #else | ||
3350 | # define ISLOWER(c) \ | ||
3351 | (('a' <= (c) && (c) <= 'i') \ | ||
3352 | || ('j' <= (c) && (c) <= 'r') \ | ||
3353 | || ('s' <= (c) && (c) <= 'z')) | ||
3354 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
3355 | #endif | ||
3356 | |||
3357 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
3358 | int | ||
3359 | main () | ||
3360 | { | ||
3361 | int i; | ||
3362 | for (i = 0; i < 256; i++) | ||
3363 | if (XOR (islower (i), ISLOWER (i)) | ||
3364 | || toupper (i) != TOUPPER (i)) | ||
3365 | return 2; | ||
3366 | return 0; | ||
3367 | } | ||
3368 | _ACEOF | ||
3369 | rm -f conftest$ac_exeext | ||
3370 | if { (ac_try="$ac_link" | ||
3371 | case "(($ac_try" in | ||
3372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3373 | *) ac_try_echo=$ac_try;; | ||
3374 | esac | ||
3375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3376 | (eval "$ac_link") 2>&5 | ||
3377 | ac_status=$? | ||
3378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3379 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
3380 | { (case "(($ac_try" in | ||
3381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3382 | *) ac_try_echo=$ac_try;; | ||
3383 | esac | ||
3384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3385 | (eval "$ac_try") 2>&5 | ||
3386 | ac_status=$? | ||
3387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3388 | (exit $ac_status); }; }; then | ||
3389 | : | ||
3390 | else | ||
3391 | echo "$as_me: program exited with status $ac_status" >&5 | ||
3392 | echo "$as_me: failed program was:" >&5 | ||
3393 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3394 | |||
3395 | ( exit $ac_status ) | ||
3396 | ac_cv_header_stdc=no | ||
3397 | fi | ||
3398 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3399 | fi | ||
3400 | |||
3401 | |||
3402 | fi | ||
3403 | fi | ||
3404 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | ||
3405 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | ||
3406 | if test $ac_cv_header_stdc = yes; then | ||
3407 | |||
3408 | cat >>confdefs.h <<\_ACEOF | ||
3409 | #define STDC_HEADERS 1 | ||
3410 | _ACEOF | ||
3411 | |||
3412 | fi | ||
3413 | |||
3414 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
3415 | |||
3416 | |||
3417 | |||
3418 | |||
3419 | |||
3420 | |||
3421 | |||
3422 | |||
3423 | |||
3424 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
3425 | inttypes.h stdint.h unistd.h | ||
3426 | do | ||
3427 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
3428 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
3429 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
3430 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
3431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3432 | else | ||
3433 | cat >conftest.$ac_ext <<_ACEOF | ||
3434 | /* confdefs.h. */ | ||
3435 | _ACEOF | ||
3436 | cat confdefs.h >>conftest.$ac_ext | ||
3437 | cat >>conftest.$ac_ext <<_ACEOF | ||
3438 | /* end confdefs.h. */ | ||
3439 | $ac_includes_default | ||
3440 | |||
3441 | #include <$ac_header> | ||
3442 | _ACEOF | ||
3443 | rm -f conftest.$ac_objext | ||
3444 | if { (ac_try="$ac_compile" | ||
3445 | case "(($ac_try" in | ||
3446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3447 | *) ac_try_echo=$ac_try;; | ||
3448 | esac | ||
3449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3450 | (eval "$ac_compile") 2>conftest.er1 | ||
3451 | ac_status=$? | ||
3452 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3453 | rm -f conftest.er1 | ||
3454 | cat conftest.err >&5 | ||
3455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3456 | (exit $ac_status); } && { | ||
3457 | test -z "$ac_c_werror_flag" || | ||
3458 | test ! -s conftest.err | ||
3459 | } && test -s conftest.$ac_objext; then | ||
3460 | eval "$as_ac_Header=yes" | ||
3461 | else | ||
3462 | echo "$as_me: failed program was:" >&5 | ||
3463 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3464 | |||
3465 | eval "$as_ac_Header=no" | ||
3466 | fi | ||
3467 | |||
3468 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3469 | fi | ||
3470 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
3471 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
3472 | echo "${ECHO_T}$ac_res" >&6; } | ||
3473 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
3474 | cat >>confdefs.h <<_ACEOF | ||
3475 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
3476 | _ACEOF | ||
3477 | |||
3478 | fi | ||
3479 | |||
3480 | done | ||
3481 | |||
3482 | |||
3483 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | ||
3484 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | ||
3485 | if test "${ac_cv_c_bigendian+set}" = set; then | ||
3486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3487 | else | ||
3488 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
3489 | cat >conftest.$ac_ext <<_ACEOF | ||
3490 | /* confdefs.h. */ | ||
3491 | _ACEOF | ||
3492 | cat confdefs.h >>conftest.$ac_ext | ||
3493 | cat >>conftest.$ac_ext <<_ACEOF | ||
3494 | /* end confdefs.h. */ | ||
3495 | #include <sys/types.h> | ||
3496 | #include <sys/param.h> | ||
3497 | |||
3498 | int | ||
3499 | main () | ||
3500 | { | ||
3501 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ | ||
3502 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | ||
3503 | bogus endian macros | ||
3504 | #endif | ||
3505 | |||
3506 | ; | ||
3507 | return 0; | ||
3508 | } | ||
3509 | _ACEOF | ||
3510 | rm -f conftest.$ac_objext | ||
3511 | if { (ac_try="$ac_compile" | ||
3512 | case "(($ac_try" in | ||
3513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3514 | *) ac_try_echo=$ac_try;; | ||
3515 | esac | ||
3516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3517 | (eval "$ac_compile") 2>conftest.er1 | ||
3518 | ac_status=$? | ||
3519 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3520 | rm -f conftest.er1 | ||
3521 | cat conftest.err >&5 | ||
3522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3523 | (exit $ac_status); } && { | ||
3524 | test -z "$ac_c_werror_flag" || | ||
3525 | test ! -s conftest.err | ||
3526 | } && test -s conftest.$ac_objext; then | ||
3527 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
3528 | cat >conftest.$ac_ext <<_ACEOF | ||
3529 | /* confdefs.h. */ | ||
3530 | _ACEOF | ||
3531 | cat confdefs.h >>conftest.$ac_ext | ||
3532 | cat >>conftest.$ac_ext <<_ACEOF | ||
3533 | /* end confdefs.h. */ | ||
3534 | #include <sys/types.h> | ||
3535 | #include <sys/param.h> | ||
3536 | |||
3537 | int | ||
3538 | main () | ||
3539 | { | ||
3540 | #if BYTE_ORDER != BIG_ENDIAN | ||
3541 | not big endian | ||
3542 | #endif | ||
3543 | |||
3544 | ; | ||
3545 | return 0; | ||
3546 | } | ||
3547 | _ACEOF | ||
3548 | rm -f conftest.$ac_objext | ||
3549 | if { (ac_try="$ac_compile" | ||
3550 | case "(($ac_try" in | ||
3551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3552 | *) ac_try_echo=$ac_try;; | ||
3553 | esac | ||
3554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3555 | (eval "$ac_compile") 2>conftest.er1 | ||
3556 | ac_status=$? | ||
3557 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3558 | rm -f conftest.er1 | ||
3559 | cat conftest.err >&5 | ||
3560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3561 | (exit $ac_status); } && { | ||
3562 | test -z "$ac_c_werror_flag" || | ||
3563 | test ! -s conftest.err | ||
3564 | } && test -s conftest.$ac_objext; then | ||
3565 | ac_cv_c_bigendian=yes | ||
3566 | else | ||
3567 | echo "$as_me: failed program was:" >&5 | ||
3568 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3569 | |||
3570 | ac_cv_c_bigendian=no | ||
3571 | fi | ||
3572 | |||
3573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3574 | else | ||
3575 | echo "$as_me: failed program was:" >&5 | ||
3576 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3577 | |||
3578 | # It does not; compile a test program. | ||
3579 | if test "$cross_compiling" = yes; then | ||
3580 | # try to guess the endianness by grepping values into an object file | ||
3581 | ac_cv_c_bigendian=unknown | ||
3582 | cat >conftest.$ac_ext <<_ACEOF | ||
3583 | /* confdefs.h. */ | ||
3584 | _ACEOF | ||
3585 | cat confdefs.h >>conftest.$ac_ext | ||
3586 | cat >>conftest.$ac_ext <<_ACEOF | ||
3587 | /* end confdefs.h. */ | ||
3588 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
3589 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
3590 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | ||
3591 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
3592 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
3593 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | ||
3594 | int | ||
3595 | main () | ||
3596 | { | ||
3597 | _ascii (); _ebcdic (); | ||
3598 | ; | ||
3599 | return 0; | ||
3600 | } | ||
3601 | _ACEOF | ||
3602 | rm -f conftest.$ac_objext | ||
3603 | if { (ac_try="$ac_compile" | ||
3604 | case "(($ac_try" in | ||
3605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3606 | *) ac_try_echo=$ac_try;; | ||
3607 | esac | ||
3608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3609 | (eval "$ac_compile") 2>conftest.er1 | ||
3610 | ac_status=$? | ||
3611 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3612 | rm -f conftest.er1 | ||
3613 | cat conftest.err >&5 | ||
3614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3615 | (exit $ac_status); } && { | ||
3616 | test -z "$ac_c_werror_flag" || | ||
3617 | test ! -s conftest.err | ||
3618 | } && test -s conftest.$ac_objext; then | ||
3619 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | ||
3620 | ac_cv_c_bigendian=yes | ||
3621 | fi | ||
3622 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
3623 | if test "$ac_cv_c_bigendian" = unknown; then | ||
3624 | ac_cv_c_bigendian=no | ||
3625 | else | ||
3626 | # finding both strings is unlikely to happen, but who knows? | ||
3627 | ac_cv_c_bigendian=unknown | ||
3628 | fi | ||
3629 | fi | ||
3630 | else | ||
3631 | echo "$as_me: failed program was:" >&5 | ||
3632 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3633 | |||
3634 | |||
3635 | fi | ||
3636 | |||
3637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3638 | else | ||
3639 | cat >conftest.$ac_ext <<_ACEOF | ||
3640 | /* confdefs.h. */ | ||
3641 | _ACEOF | ||
3642 | cat confdefs.h >>conftest.$ac_ext | ||
3643 | cat >>conftest.$ac_ext <<_ACEOF | ||
3644 | /* end confdefs.h. */ | ||
3645 | $ac_includes_default | ||
3646 | int | ||
3647 | main () | ||
3648 | { | ||
3649 | |||
3650 | /* Are we little or big endian? From Harbison&Steele. */ | ||
3651 | union | ||
3652 | { | ||
3653 | long int l; | ||
3654 | char c[sizeof (long int)]; | ||
3655 | } u; | ||
3656 | u.l = 1; | ||
3657 | return u.c[sizeof (long int) - 1] == 1; | ||
3658 | |||
3659 | ; | ||
3660 | return 0; | ||
3661 | } | ||
3662 | _ACEOF | ||
3663 | rm -f conftest$ac_exeext | ||
3664 | if { (ac_try="$ac_link" | ||
3665 | case "(($ac_try" in | ||
3666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3667 | *) ac_try_echo=$ac_try;; | ||
3668 | esac | ||
3669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3670 | (eval "$ac_link") 2>&5 | ||
3671 | ac_status=$? | ||
3672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3673 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
3674 | { (case "(($ac_try" in | ||
3675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3676 | *) ac_try_echo=$ac_try;; | ||
3677 | esac | ||
3678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3679 | (eval "$ac_try") 2>&5 | ||
3680 | ac_status=$? | ||
3681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3682 | (exit $ac_status); }; }; then | ||
3683 | ac_cv_c_bigendian=no | ||
3684 | else | ||
3685 | echo "$as_me: program exited with status $ac_status" >&5 | ||
3686 | echo "$as_me: failed program was:" >&5 | ||
3687 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3688 | |||
3689 | ( exit $ac_status ) | ||
3690 | ac_cv_c_bigendian=yes | ||
3691 | fi | ||
3692 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3693 | fi | ||
3694 | |||
3695 | |||
3696 | fi | ||
3697 | |||
3698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3699 | fi | ||
3700 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | ||
3701 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | ||
3702 | case $ac_cv_c_bigendian in | ||
3703 | yes) | ||
3704 | |||
3705 | cat >>confdefs.h <<\_ACEOF | ||
3706 | #define WORDS_BIGENDIAN 1 | ||
3707 | _ACEOF | ||
3708 | ;; | ||
3709 | no) | ||
3710 | ;; | ||
3711 | *) | ||
3712 | { { echo "$as_me:$LINENO: error: unknown endianness | ||
3713 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | ||
3714 | echo "$as_me: error: unknown endianness | ||
3715 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | ||
3716 | { (exit 1); exit 1; }; } ;; | ||
3717 | esac | ||
3718 | |||
3719 | |||
3720 | # Checks for programs. | ||
3721 | for ac_prog in gawk mawk nawk awk | ||
3722 | do | ||
3723 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3724 | set dummy $ac_prog; ac_word=$2 | ||
3725 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3726 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
3727 | if test "${ac_cv_prog_AWK+set}" = set; then | ||
3728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3729 | else | ||
3730 | if test -n "$AWK"; then | ||
3731 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
3732 | else | ||
3733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3734 | for as_dir in $PATH | ||
3735 | do | ||
3736 | IFS=$as_save_IFS | ||
3737 | test -z "$as_dir" && as_dir=. | ||
3738 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3739 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3740 | ac_cv_prog_AWK="$ac_prog" | ||
3741 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3742 | break 2 | ||
3743 | fi | ||
3744 | done | ||
3745 | done | ||
3746 | IFS=$as_save_IFS | ||
3747 | |||
3748 | fi | ||
3749 | fi | ||
3750 | AWK=$ac_cv_prog_AWK | ||
3751 | if test -n "$AWK"; then | ||
3752 | { echo "$as_me:$LINENO: result: $AWK" >&5 | ||
3753 | echo "${ECHO_T}$AWK" >&6; } | ||
3754 | else | ||
3755 | { echo "$as_me:$LINENO: result: no" >&5 | ||
3756 | echo "${ECHO_T}no" >&6; } | ||
3757 | fi | ||
3758 | |||
3759 | |||
3760 | test -n "$AWK" && break | ||
3761 | done | ||
3762 | |||
3763 | ac_ext=c | ||
3764 | ac_cpp='$CPP $CPPFLAGS' | ||
3765 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3766 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3767 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3768 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
3769 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | ||
3770 | # On Suns, sometimes $CPP names a directory. | ||
3771 | if test -n "$CPP" && test -d "$CPP"; then | ||
3772 | CPP= | ||
3773 | fi | ||
3774 | if test -z "$CPP"; then | ||
3775 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
3776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3777 | else | ||
3778 | # Double quotes because CPP needs to be expanded | ||
3779 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
3780 | do | ||
3781 | ac_preproc_ok=false | ||
3782 | for ac_c_preproc_warn_flag in '' yes | ||
3783 | do | ||
3784 | # Use a header file that comes with gcc, so configuring glibc | ||
3785 | # with a fresh cross-compiler works. | ||
3786 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3787 | # <limits.h> exists even on freestanding compilers. | ||
3788 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3789 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3790 | cat >conftest.$ac_ext <<_ACEOF | ||
3791 | /* confdefs.h. */ | ||
3792 | _ACEOF | ||
3793 | cat confdefs.h >>conftest.$ac_ext | ||
3794 | cat >>conftest.$ac_ext <<_ACEOF | ||
3795 | /* end confdefs.h. */ | ||
3796 | #ifdef __STDC__ | ||
3797 | # include <limits.h> | ||
3798 | #else | ||
3799 | # include <assert.h> | ||
3800 | #endif | ||
3801 | Syntax error | ||
3802 | _ACEOF | ||
3803 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3804 | case "(($ac_try" in | ||
3805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3806 | *) ac_try_echo=$ac_try;; | ||
3807 | esac | ||
3808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3809 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3810 | ac_status=$? | ||
3811 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3812 | rm -f conftest.er1 | ||
3813 | cat conftest.err >&5 | ||
3814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3815 | (exit $ac_status); } >/dev/null && { | ||
3816 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3817 | test ! -s conftest.err | ||
3818 | }; then | ||
3819 | : | ||
3820 | else | ||
3821 | echo "$as_me: failed program was:" >&5 | ||
3822 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3823 | |||
3824 | # Broken: fails on valid input. | ||
3825 | continue | ||
3826 | fi | ||
3827 | |||
3828 | rm -f conftest.err conftest.$ac_ext | ||
3829 | |||
3830 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3831 | # can be detected and how. | ||
3832 | cat >conftest.$ac_ext <<_ACEOF | ||
3833 | /* confdefs.h. */ | ||
3834 | _ACEOF | ||
3835 | cat confdefs.h >>conftest.$ac_ext | ||
3836 | cat >>conftest.$ac_ext <<_ACEOF | ||
3837 | /* end confdefs.h. */ | ||
3838 | #include <ac_nonexistent.h> | ||
3839 | _ACEOF | ||
3840 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3841 | case "(($ac_try" in | ||
3842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3843 | *) ac_try_echo=$ac_try;; | ||
3844 | esac | ||
3845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3846 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3847 | ac_status=$? | ||
3848 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3849 | rm -f conftest.er1 | ||
3850 | cat conftest.err >&5 | ||
3851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3852 | (exit $ac_status); } >/dev/null && { | ||
3853 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3854 | test ! -s conftest.err | ||
3855 | }; then | ||
3856 | # Broken: success on invalid input. | ||
3857 | continue | ||
3858 | else | ||
3859 | echo "$as_me: failed program was:" >&5 | ||
3860 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3861 | |||
3862 | # Passes both tests. | ||
3863 | ac_preproc_ok=: | ||
3864 | break | ||
3865 | fi | ||
3866 | |||
3867 | rm -f conftest.err conftest.$ac_ext | ||
3868 | |||
3869 | done | ||
3870 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3871 | rm -f conftest.err conftest.$ac_ext | ||
3872 | if $ac_preproc_ok; then | ||
3873 | break | ||
3874 | fi | ||
3875 | |||
3876 | done | ||
3877 | ac_cv_prog_CPP=$CPP | ||
3878 | |||
3879 | fi | ||
3880 | CPP=$ac_cv_prog_CPP | ||
3881 | else | ||
3882 | ac_cv_prog_CPP=$CPP | ||
3883 | fi | ||
3884 | { echo "$as_me:$LINENO: result: $CPP" >&5 | ||
3885 | echo "${ECHO_T}$CPP" >&6; } | ||
3886 | ac_preproc_ok=false | ||
3887 | for ac_c_preproc_warn_flag in '' yes | ||
3888 | do | ||
3889 | # Use a header file that comes with gcc, so configuring glibc | ||
3890 | # with a fresh cross-compiler works. | ||
3891 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3892 | # <limits.h> exists even on freestanding compilers. | ||
3893 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3894 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3895 | cat >conftest.$ac_ext <<_ACEOF | ||
3896 | /* confdefs.h. */ | ||
3897 | _ACEOF | ||
3898 | cat confdefs.h >>conftest.$ac_ext | ||
3899 | cat >>conftest.$ac_ext <<_ACEOF | ||
3900 | /* end confdefs.h. */ | ||
3901 | #ifdef __STDC__ | ||
3902 | # include <limits.h> | ||
3903 | #else | ||
3904 | # include <assert.h> | ||
3905 | #endif | ||
3906 | Syntax error | ||
3907 | _ACEOF | ||
3908 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3909 | case "(($ac_try" in | ||
3910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3911 | *) ac_try_echo=$ac_try;; | ||
3912 | esac | ||
3913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3914 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3915 | ac_status=$? | ||
3916 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3917 | rm -f conftest.er1 | ||
3918 | cat conftest.err >&5 | ||
3919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3920 | (exit $ac_status); } >/dev/null && { | ||
3921 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3922 | test ! -s conftest.err | ||
3923 | }; then | ||
3924 | : | ||
3925 | else | ||
3926 | echo "$as_me: failed program was:" >&5 | ||
3927 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3928 | |||
3929 | # Broken: fails on valid input. | ||
3930 | continue | ||
3931 | fi | ||
3932 | |||
3933 | rm -f conftest.err conftest.$ac_ext | ||
3934 | |||
3935 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3936 | # can be detected and how. | ||
3937 | cat >conftest.$ac_ext <<_ACEOF | ||
3938 | /* confdefs.h. */ | ||
3939 | _ACEOF | ||
3940 | cat confdefs.h >>conftest.$ac_ext | ||
3941 | cat >>conftest.$ac_ext <<_ACEOF | ||
3942 | /* end confdefs.h. */ | ||
3943 | #include <ac_nonexistent.h> | ||
3944 | _ACEOF | ||
3945 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3946 | case "(($ac_try" in | ||
3947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3948 | *) ac_try_echo=$ac_try;; | ||
3949 | esac | ||
3950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3951 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3952 | ac_status=$? | ||
3953 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3954 | rm -f conftest.er1 | ||
3955 | cat conftest.err >&5 | ||
3956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3957 | (exit $ac_status); } >/dev/null && { | ||
3958 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3959 | test ! -s conftest.err | ||
3960 | }; then | ||
3961 | # Broken: success on invalid input. | ||
3962 | continue | ||
3963 | else | ||
3964 | echo "$as_me: failed program was:" >&5 | ||
3965 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3966 | |||
3967 | # Passes both tests. | ||
3968 | ac_preproc_ok=: | ||
3969 | break | ||
3970 | fi | ||
3971 | |||
3972 | rm -f conftest.err conftest.$ac_ext | ||
3973 | |||
3974 | done | ||
3975 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3976 | rm -f conftest.err conftest.$ac_ext | ||
3977 | if $ac_preproc_ok; then | ||
3978 | : | ||
3979 | else | ||
3980 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
3981 | See \`config.log' for more details." >&5 | ||
3982 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
3983 | See \`config.log' for more details." >&2;} | ||
3984 | { (exit 1); exit 1; }; } | ||
3985 | fi | ||
3986 | |||
3987 | ac_ext=c | ||
3988 | ac_cpp='$CPP $CPPFLAGS' | ||
3989 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3990 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3991 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3992 | |||
3993 | if test -n "$ac_tool_prefix"; then | ||
3994 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
3995 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
3996 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3997 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
3998 | if test "${ac_cv_prog_RANLIB+set}" = set; then | ||
3999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4000 | else | ||
4001 | if test -n "$RANLIB"; then | ||
4002 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
4003 | else | ||
4004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4005 | for as_dir in $PATH | ||
4006 | do | ||
4007 | IFS=$as_save_IFS | ||
4008 | test -z "$as_dir" && as_dir=. | ||
4009 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4010 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4011 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
4012 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4013 | break 2 | ||
4014 | fi | ||
4015 | done | ||
4016 | done | ||
4017 | IFS=$as_save_IFS | ||
4018 | |||
4019 | fi | ||
4020 | fi | ||
4021 | RANLIB=$ac_cv_prog_RANLIB | ||
4022 | if test -n "$RANLIB"; then | ||
4023 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 | ||
4024 | echo "${ECHO_T}$RANLIB" >&6; } | ||
4025 | else | ||
4026 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4027 | echo "${ECHO_T}no" >&6; } | ||
4028 | fi | ||
4029 | |||
4030 | |||
4031 | fi | ||
4032 | if test -z "$ac_cv_prog_RANLIB"; then | ||
4033 | ac_ct_RANLIB=$RANLIB | ||
4034 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
4035 | set dummy ranlib; ac_word=$2 | ||
4036 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4037 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4038 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | ||
4039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4040 | else | ||
4041 | if test -n "$ac_ct_RANLIB"; then | ||
4042 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
4043 | else | ||
4044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4045 | for as_dir in $PATH | ||
4046 | do | ||
4047 | IFS=$as_save_IFS | ||
4048 | test -z "$as_dir" && as_dir=. | ||
4049 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4050 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4051 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
4052 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4053 | break 2 | ||
4054 | fi | ||
4055 | done | ||
4056 | done | ||
4057 | IFS=$as_save_IFS | ||
4058 | |||
4059 | fi | ||
4060 | fi | ||
4061 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
4062 | if test -n "$ac_ct_RANLIB"; then | ||
4063 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | ||
4064 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | ||
4065 | else | ||
4066 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4067 | echo "${ECHO_T}no" >&6; } | ||
4068 | fi | ||
4069 | |||
4070 | if test "x$ac_ct_RANLIB" = x; then | ||
4071 | RANLIB=":" | ||
4072 | else | ||
4073 | case $cross_compiling:$ac_tool_warned in | ||
4074 | yes:) | ||
4075 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
4076 | whose name does not start with the host triplet. If you think this | ||
4077 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
4078 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
4079 | whose name does not start with the host triplet. If you think this | ||
4080 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
4081 | ac_tool_warned=yes ;; | ||
4082 | esac | ||
4083 | RANLIB=$ac_ct_RANLIB | ||
4084 | fi | ||
4085 | else | ||
4086 | RANLIB="$ac_cv_prog_RANLIB" | ||
4087 | fi | ||
4088 | |||
4089 | # Find a good install program. We prefer a C program (faster), | ||
4090 | # so one script is as good as another. But avoid the broken or | ||
4091 | # incompatible versions: | ||
4092 | # SysV /etc/install, /usr/sbin/install | ||
4093 | # SunOS /usr/etc/install | ||
4094 | # IRIX /sbin/install | ||
4095 | # AIX /bin/install | ||
4096 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
4097 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
4098 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
4099 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
4100 | # OS/2's system install, which has a completely different semantic | ||
4101 | # ./install, which can be erroneously created by make from ./install.sh. | ||
4102 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
4103 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | ||
4104 | if test -z "$INSTALL"; then | ||
4105 | if test "${ac_cv_path_install+set}" = set; then | ||
4106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4107 | else | ||
4108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4109 | for as_dir in $PATH | ||
4110 | do | ||
4111 | IFS=$as_save_IFS | ||
4112 | test -z "$as_dir" && as_dir=. | ||
4113 | # Account for people who put trailing slashes in PATH elements. | ||
4114 | case $as_dir/ in | ||
4115 | ./ | .// | /cC/* | \ | ||
4116 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
4117 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | ||
4118 | /usr/ucb/* ) ;; | ||
4119 | *) | ||
4120 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
4121 | # Don't use installbsd from OSF since it installs stuff as root | ||
4122 | # by default. | ||
4123 | for ac_prog in ginstall scoinst install; do | ||
4124 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4125 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
4126 | if test $ac_prog = install && | ||
4127 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4128 | # AIX install. It has an incompatible calling convention. | ||
4129 | : | ||
4130 | elif test $ac_prog = install && | ||
4131 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4132 | # program-specific install script used by HP pwplus--don't use. | ||
4133 | : | ||
4134 | else | ||
4135 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
4136 | break 3 | ||
4137 | fi | ||
4138 | fi | ||
4139 | done | ||
4140 | done | ||
4141 | ;; | ||
4142 | esac | ||
4143 | done | ||
4144 | IFS=$as_save_IFS | ||
4145 | |||
4146 | |||
4147 | fi | ||
4148 | if test "${ac_cv_path_install+set}" = set; then | ||
4149 | INSTALL=$ac_cv_path_install | ||
4150 | else | ||
4151 | # As a last resort, use the slow shell script. Don't cache a | ||
4152 | # value for INSTALL within a source directory, because that will | ||
4153 | # break other packages using the cache if that directory is | ||
4154 | # removed, or if the value is a relative name. | ||
4155 | INSTALL=$ac_install_sh | ||
4156 | fi | ||
4157 | fi | ||
4158 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
4159 | echo "${ECHO_T}$INSTALL" >&6; } | ||
4160 | |||
4161 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
4162 | # It thinks the first close brace ends the variable substitution. | ||
4163 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
4164 | |||
4165 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
4166 | |||
4167 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
4168 | |||
4169 | { echo "$as_me:$LINENO: checking for egrep" >&5 | ||
4170 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | ||
4171 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
4172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4173 | else | ||
4174 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4175 | then ac_cv_path_EGREP="$GREP -E" | ||
4176 | else | ||
4177 | # Extract the first word of "egrep" to use in msg output | ||
4178 | if test -z "$EGREP"; then | ||
4179 | set dummy egrep; ac_prog_name=$2 | ||
4180 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
4181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4182 | else | ||
4183 | ac_path_EGREP_found=false | ||
4184 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4186 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4187 | do | ||
4188 | IFS=$as_save_IFS | ||
4189 | test -z "$as_dir" && as_dir=. | ||
4190 | for ac_prog in egrep; do | ||
4191 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4192 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4193 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
4194 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4195 | # Check for GNU $ac_path_EGREP | ||
4196 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4197 | *GNU*) | ||
4198 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4199 | *) | ||
4200 | ac_count=0 | ||
4201 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
4202 | while : | ||
4203 | do | ||
4204 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4205 | mv "conftest.tmp" "conftest.in" | ||
4206 | cp "conftest.in" "conftest.nl" | ||
4207 | echo 'EGREP' >> "conftest.nl" | ||
4208 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4209 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4210 | ac_count=`expr $ac_count + 1` | ||
4211 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4212 | # Best one so far, save it but keep looking for a better one | ||
4213 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4214 | ac_path_EGREP_max=$ac_count | ||
4215 | fi | ||
4216 | # 10*(2^10) chars as input seems more than enough | ||
4217 | test $ac_count -gt 10 && break | ||
4218 | done | ||
4219 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4220 | esac | ||
4221 | |||
4222 | |||
4223 | $ac_path_EGREP_found && break 3 | ||
4224 | done | ||
4225 | done | ||
4226 | |||
4227 | done | ||
4228 | IFS=$as_save_IFS | ||
4229 | |||
4230 | |||
4231 | fi | ||
4232 | |||
4233 | EGREP="$ac_cv_path_EGREP" | ||
4234 | if test -z "$EGREP"; then | ||
4235 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
4236 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
4237 | { (exit 1); exit 1; }; } | ||
4238 | fi | ||
4239 | |||
4240 | else | ||
4241 | ac_cv_path_EGREP=$EGREP | ||
4242 | fi | ||
4243 | |||
4244 | |||
4245 | fi | ||
4246 | fi | ||
4247 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||
4248 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | ||
4249 | EGREP="$ac_cv_path_EGREP" | ||
4250 | |||
4251 | |||
4252 | # Extract the first word of "ar", so it can be a program name with args. | ||
4253 | set dummy ar; ac_word=$2 | ||
4254 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4255 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4256 | if test "${ac_cv_path_AR+set}" = set; then | ||
4257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4258 | else | ||
4259 | case $AR in | ||
4260 | [\\/]* | ?:[\\/]*) | ||
4261 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | ||
4262 | ;; | ||
4263 | *) | ||
4264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4265 | for as_dir in $PATH | ||
4266 | do | ||
4267 | IFS=$as_save_IFS | ||
4268 | test -z "$as_dir" && as_dir=. | ||
4269 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4270 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4271 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | ||
4272 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4273 | break 2 | ||
4274 | fi | ||
4275 | done | ||
4276 | done | ||
4277 | IFS=$as_save_IFS | ||
4278 | |||
4279 | ;; | ||
4280 | esac | ||
4281 | fi | ||
4282 | AR=$ac_cv_path_AR | ||
4283 | if test -n "$AR"; then | ||
4284 | { echo "$as_me:$LINENO: result: $AR" >&5 | ||
4285 | echo "${ECHO_T}$AR" >&6; } | ||
4286 | else | ||
4287 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4288 | echo "${ECHO_T}no" >&6; } | ||
4289 | fi | ||
4290 | |||
4291 | |||
4292 | # Extract the first word of "cat", so it can be a program name with args. | ||
4293 | set dummy cat; ac_word=$2 | ||
4294 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4295 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4296 | if test "${ac_cv_path_CAT+set}" = set; then | ||
4297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4298 | else | ||
4299 | case $CAT in | ||
4300 | [\\/]* | ?:[\\/]*) | ||
4301 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. | ||
4302 | ;; | ||
4303 | *) | ||
4304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4305 | for as_dir in $PATH | ||
4306 | do | ||
4307 | IFS=$as_save_IFS | ||
4308 | test -z "$as_dir" && as_dir=. | ||
4309 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4310 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4311 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" | ||
4312 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4313 | break 2 | ||
4314 | fi | ||
4315 | done | ||
4316 | done | ||
4317 | IFS=$as_save_IFS | ||
4318 | |||
4319 | ;; | ||
4320 | esac | ||
4321 | fi | ||
4322 | CAT=$ac_cv_path_CAT | ||
4323 | if test -n "$CAT"; then | ||
4324 | { echo "$as_me:$LINENO: result: $CAT" >&5 | ||
4325 | echo "${ECHO_T}$CAT" >&6; } | ||
4326 | else | ||
4327 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4328 | echo "${ECHO_T}no" >&6; } | ||
4329 | fi | ||
4330 | |||
4331 | |||
4332 | # Extract the first word of "kill", so it can be a program name with args. | ||
4333 | set dummy kill; ac_word=$2 | ||
4334 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4335 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4336 | if test "${ac_cv_path_KILL+set}" = set; then | ||
4337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4338 | else | ||
4339 | case $KILL in | ||
4340 | [\\/]* | ?:[\\/]*) | ||
4341 | ac_cv_path_KILL="$KILL" # Let the user override the test with a path. | ||
4342 | ;; | ||
4343 | *) | ||
4344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4345 | for as_dir in $PATH | ||
4346 | do | ||
4347 | IFS=$as_save_IFS | ||
4348 | test -z "$as_dir" && as_dir=. | ||
4349 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4350 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4351 | ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext" | ||
4352 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4353 | break 2 | ||
4354 | fi | ||
4355 | done | ||
4356 | done | ||
4357 | IFS=$as_save_IFS | ||
4358 | |||
4359 | ;; | ||
4360 | esac | ||
4361 | fi | ||
4362 | KILL=$ac_cv_path_KILL | ||
4363 | if test -n "$KILL"; then | ||
4364 | { echo "$as_me:$LINENO: result: $KILL" >&5 | ||
4365 | echo "${ECHO_T}$KILL" >&6; } | ||
4366 | else | ||
4367 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4368 | echo "${ECHO_T}no" >&6; } | ||
4369 | fi | ||
4370 | |||
4371 | |||
4372 | for ac_prog in perl5 perl | ||
4373 | do | ||
4374 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4375 | set dummy $ac_prog; ac_word=$2 | ||
4376 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4377 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4378 | if test "${ac_cv_path_PERL+set}" = set; then | ||
4379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4380 | else | ||
4381 | case $PERL in | ||
4382 | [\\/]* | ?:[\\/]*) | ||
4383 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
4384 | ;; | ||
4385 | *) | ||
4386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4387 | for as_dir in $PATH | ||
4388 | do | ||
4389 | IFS=$as_save_IFS | ||
4390 | test -z "$as_dir" && as_dir=. | ||
4391 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4392 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4393 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | ||
4394 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4395 | break 2 | ||
4396 | fi | ||
4397 | done | ||
4398 | done | ||
4399 | IFS=$as_save_IFS | ||
4400 | |||
4401 | ;; | ||
4402 | esac | ||
4403 | fi | ||
4404 | PERL=$ac_cv_path_PERL | ||
4405 | if test -n "$PERL"; then | ||
4406 | { echo "$as_me:$LINENO: result: $PERL" >&5 | ||
4407 | echo "${ECHO_T}$PERL" >&6; } | ||
4408 | else | ||
4409 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4410 | echo "${ECHO_T}no" >&6; } | ||
4411 | fi | ||
4412 | |||
4413 | |||
4414 | test -n "$PERL" && break | ||
4415 | done | ||
4416 | |||
4417 | # Extract the first word of "sed", so it can be a program name with args. | ||
4418 | set dummy sed; ac_word=$2 | ||
4419 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4420 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4421 | if test "${ac_cv_path_SED+set}" = set; then | ||
4422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4423 | else | ||
4424 | case $SED in | ||
4425 | [\\/]* | ?:[\\/]*) | ||
4426 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
4427 | ;; | ||
4428 | *) | ||
4429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4430 | for as_dir in $PATH | ||
4431 | do | ||
4432 | IFS=$as_save_IFS | ||
4433 | test -z "$as_dir" && as_dir=. | ||
4434 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4435 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4436 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | ||
4437 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4438 | break 2 | ||
4439 | fi | ||
4440 | done | ||
4441 | done | ||
4442 | IFS=$as_save_IFS | ||
4443 | |||
4444 | ;; | ||
4445 | esac | ||
4446 | fi | ||
4447 | SED=$ac_cv_path_SED | ||
4448 | if test -n "$SED"; then | ||
4449 | { echo "$as_me:$LINENO: result: $SED" >&5 | ||
4450 | echo "${ECHO_T}$SED" >&6; } | ||
4451 | else | ||
4452 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4453 | echo "${ECHO_T}no" >&6; } | ||
4454 | fi | ||
4455 | |||
4456 | |||
4457 | |||
4458 | # Extract the first word of "ent", so it can be a program name with args. | ||
4459 | set dummy ent; ac_word=$2 | ||
4460 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4461 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4462 | if test "${ac_cv_path_ENT+set}" = set; then | ||
4463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4464 | else | ||
4465 | case $ENT in | ||
4466 | [\\/]* | ?:[\\/]*) | ||
4467 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
4468 | ;; | ||
4469 | *) | ||
4470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4471 | for as_dir in $PATH | ||
4472 | do | ||
4473 | IFS=$as_save_IFS | ||
4474 | test -z "$as_dir" && as_dir=. | ||
4475 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4476 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4477 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" | ||
4478 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4479 | break 2 | ||
4480 | fi | ||
4481 | done | ||
4482 | done | ||
4483 | IFS=$as_save_IFS | ||
4484 | |||
4485 | ;; | ||
4486 | esac | ||
4487 | fi | ||
4488 | ENT=$ac_cv_path_ENT | ||
4489 | if test -n "$ENT"; then | ||
4490 | { echo "$as_me:$LINENO: result: $ENT" >&5 | ||
4491 | echo "${ECHO_T}$ENT" >&6; } | ||
4492 | else | ||
4493 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4494 | echo "${ECHO_T}no" >&6; } | ||
4495 | fi | ||
4496 | |||
4497 | |||
4498 | |||
4499 | # Extract the first word of "bash", so it can be a program name with args. | ||
4500 | set dummy bash; ac_word=$2 | ||
4501 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4502 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4503 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4505 | else | ||
4506 | case $TEST_MINUS_S_SH in | ||
4507 | [\\/]* | ?:[\\/]*) | ||
4508 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4509 | ;; | ||
4510 | *) | ||
4511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4512 | for as_dir in $PATH | ||
4513 | do | ||
4514 | IFS=$as_save_IFS | ||
4515 | test -z "$as_dir" && as_dir=. | ||
4516 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4517 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4518 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4519 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4520 | break 2 | ||
4521 | fi | ||
4522 | done | ||
4523 | done | ||
4524 | IFS=$as_save_IFS | ||
4525 | |||
4526 | ;; | ||
4527 | esac | ||
4528 | fi | ||
4529 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4530 | if test -n "$TEST_MINUS_S_SH"; then | ||
4531 | { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4532 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } | ||
4533 | else | ||
4534 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4535 | echo "${ECHO_T}no" >&6; } | ||
4536 | fi | ||
4537 | |||
4538 | |||
4539 | # Extract the first word of "ksh", so it can be a program name with args. | ||
4540 | set dummy ksh; ac_word=$2 | ||
4541 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4542 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4543 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4545 | else | ||
4546 | case $TEST_MINUS_S_SH in | ||
4547 | [\\/]* | ?:[\\/]*) | ||
4548 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4549 | ;; | ||
4550 | *) | ||
4551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4552 | for as_dir in $PATH | ||
4553 | do | ||
4554 | IFS=$as_save_IFS | ||
4555 | test -z "$as_dir" && as_dir=. | ||
4556 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4557 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4558 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4559 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4560 | break 2 | ||
4561 | fi | ||
4562 | done | ||
4563 | done | ||
4564 | IFS=$as_save_IFS | ||
4565 | |||
4566 | ;; | ||
4567 | esac | ||
4568 | fi | ||
4569 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4570 | if test -n "$TEST_MINUS_S_SH"; then | ||
4571 | { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4572 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } | ||
4573 | else | ||
4574 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4575 | echo "${ECHO_T}no" >&6; } | ||
4576 | fi | ||
4577 | |||
4578 | |||
4579 | # Extract the first word of "sh", so it can be a program name with args. | ||
4580 | set dummy sh; ac_word=$2 | ||
4581 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4582 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4583 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4585 | else | ||
4586 | case $TEST_MINUS_S_SH in | ||
4587 | [\\/]* | ?:[\\/]*) | ||
4588 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4589 | ;; | ||
4590 | *) | ||
4591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4592 | for as_dir in $PATH | ||
4593 | do | ||
4594 | IFS=$as_save_IFS | ||
4595 | test -z "$as_dir" && as_dir=. | ||
4596 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4597 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4598 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4599 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4600 | break 2 | ||
4601 | fi | ||
4602 | done | ||
4603 | done | ||
4604 | IFS=$as_save_IFS | ||
4605 | |||
4606 | ;; | ||
4607 | esac | ||
4608 | fi | ||
4609 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4610 | if test -n "$TEST_MINUS_S_SH"; then | ||
4611 | { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4612 | echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } | ||
4613 | else | ||
4614 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4615 | echo "${ECHO_T}no" >&6; } | ||
4616 | fi | ||
4617 | |||
4618 | |||
4619 | # Extract the first word of "sh", so it can be a program name with args. | ||
4620 | set dummy sh; ac_word=$2 | ||
4621 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4622 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4623 | if test "${ac_cv_path_SH+set}" = set; then | ||
4624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4625 | else | ||
4626 | case $SH in | ||
4627 | [\\/]* | ?:[\\/]*) | ||
4628 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
4629 | ;; | ||
4630 | *) | ||
4631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4632 | for as_dir in $PATH | ||
4633 | do | ||
4634 | IFS=$as_save_IFS | ||
4635 | test -z "$as_dir" && as_dir=. | ||
4636 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4637 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4638 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4639 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4640 | break 2 | ||
4641 | fi | ||
4642 | done | ||
4643 | done | ||
4644 | IFS=$as_save_IFS | ||
4645 | |||
4646 | ;; | ||
4647 | esac | ||
4648 | fi | ||
4649 | SH=$ac_cv_path_SH | ||
4650 | if test -n "$SH"; then | ||
4651 | { echo "$as_me:$LINENO: result: $SH" >&5 | ||
4652 | echo "${ECHO_T}$SH" >&6; } | ||
4653 | else | ||
4654 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4655 | echo "${ECHO_T}no" >&6; } | ||
4656 | fi | ||
4657 | |||
4658 | |||
4659 | TEST_SHELL=sh | ||
4660 | |||
4661 | |||
4662 | # Extract the first word of "groupadd", so it can be a program name with args. | ||
4663 | set dummy groupadd; ac_word=$2 | ||
4664 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4665 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4666 | if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then | ||
4667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4668 | else | ||
4669 | case $PATH_GROUPADD_PROG in | ||
4670 | [\\/]* | ?:[\\/]*) | ||
4671 | ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path. | ||
4672 | ;; | ||
4673 | *) | ||
4674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4675 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
4676 | do | ||
4677 | IFS=$as_save_IFS | ||
4678 | test -z "$as_dir" && as_dir=. | ||
4679 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4680 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4681 | ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
4682 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4683 | break 2 | ||
4684 | fi | ||
4685 | done | ||
4686 | done | ||
4687 | IFS=$as_save_IFS | ||
4688 | |||
4689 | test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" | ||
4690 | ;; | ||
4691 | esac | ||
4692 | fi | ||
4693 | PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG | ||
4694 | if test -n "$PATH_GROUPADD_PROG"; then | ||
4695 | { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5 | ||
4696 | echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; } | ||
4697 | else | ||
4698 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4699 | echo "${ECHO_T}no" >&6; } | ||
4700 | fi | ||
4701 | |||
4702 | |||
4703 | # Extract the first word of "useradd", so it can be a program name with args. | ||
4704 | set dummy useradd; ac_word=$2 | ||
4705 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4706 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4707 | if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then | ||
4708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4709 | else | ||
4710 | case $PATH_USERADD_PROG in | ||
4711 | [\\/]* | ?:[\\/]*) | ||
4712 | ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path. | ||
4713 | ;; | ||
4714 | *) | ||
4715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4716 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
4717 | do | ||
4718 | IFS=$as_save_IFS | ||
4719 | test -z "$as_dir" && as_dir=. | ||
4720 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4721 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4722 | ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
4723 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4724 | break 2 | ||
4725 | fi | ||
4726 | done | ||
4727 | done | ||
4728 | IFS=$as_save_IFS | ||
4729 | |||
4730 | test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" | ||
4731 | ;; | ||
4732 | esac | ||
4733 | fi | ||
4734 | PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG | ||
4735 | if test -n "$PATH_USERADD_PROG"; then | ||
4736 | { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5 | ||
4737 | echo "${ECHO_T}$PATH_USERADD_PROG" >&6; } | ||
4738 | else | ||
4739 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4740 | echo "${ECHO_T}no" >&6; } | ||
4741 | fi | ||
4742 | |||
4743 | |||
4744 | # Extract the first word of "pkgmk", so it can be a program name with args. | ||
4745 | set dummy pkgmk; ac_word=$2 | ||
4746 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4747 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
4748 | if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then | ||
4749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4750 | else | ||
4751 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
4752 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. | ||
4753 | else | ||
4754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4755 | for as_dir in $PATH | ||
4756 | do | ||
4757 | IFS=$as_save_IFS | ||
4758 | test -z "$as_dir" && as_dir=. | ||
4759 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4760 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4761 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" | ||
4762 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4763 | break 2 | ||
4764 | fi | ||
4765 | done | ||
4766 | done | ||
4767 | IFS=$as_save_IFS | ||
4768 | |||
4769 | test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" | ||
4770 | fi | ||
4771 | fi | ||
4772 | MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED | ||
4773 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
4774 | { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5 | ||
4775 | echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; } | ||
4776 | else | ||
4777 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4778 | echo "${ECHO_T}no" >&6; } | ||
4779 | fi | ||
4780 | |||
4781 | |||
4782 | if test -x /sbin/sh; then | ||
4783 | STARTUP_SCRIPT_SHELL=/sbin/sh | ||
4784 | |||
4785 | else | ||
4786 | STARTUP_SCRIPT_SHELL=/bin/sh | ||
4787 | |||
4788 | fi | ||
4789 | |||
4790 | # System features | ||
4791 | # Check whether --enable-largefile was given. | ||
4792 | if test "${enable_largefile+set}" = set; then | ||
4793 | enableval=$enable_largefile; | ||
4794 | fi | ||
4795 | |||
4796 | if test "$enable_largefile" != no; then | ||
4797 | |||
4798 | { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | ||
4799 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } | ||
4800 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | ||
4801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4802 | else | ||
4803 | ac_cv_sys_largefile_CC=no | ||
4804 | if test "$GCC" != yes; then | ||
4805 | ac_save_CC=$CC | ||
4806 | while :; do | ||
4807 | # IRIX 6.2 and later do not support large files by default, | ||
4808 | # so use the C compiler's -n32 option if that helps. | ||
4809 | cat >conftest.$ac_ext <<_ACEOF | ||
4810 | /* confdefs.h. */ | ||
4811 | _ACEOF | ||
4812 | cat confdefs.h >>conftest.$ac_ext | ||
4813 | cat >>conftest.$ac_ext <<_ACEOF | ||
4814 | /* end confdefs.h. */ | ||
4815 | #include <sys/types.h> | ||
4816 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
4817 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
4818 | since some C++ compilers masquerading as C compilers | ||
4819 | incorrectly reject 9223372036854775807. */ | ||
4820 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
4821 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
4822 | && LARGE_OFF_T % 2147483647 == 1) | ||
4823 | ? 1 : -1]; | ||
4824 | int | ||
4825 | main () | ||
4826 | { | ||
4827 | |||
4828 | ; | ||
4829 | return 0; | ||
4830 | } | ||
4831 | _ACEOF | ||
4832 | rm -f conftest.$ac_objext | ||
4833 | if { (ac_try="$ac_compile" | ||
4834 | case "(($ac_try" in | ||
4835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4836 | *) ac_try_echo=$ac_try;; | ||
4837 | esac | ||
4838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4839 | (eval "$ac_compile") 2>conftest.er1 | ||
4840 | ac_status=$? | ||
4841 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4842 | rm -f conftest.er1 | ||
4843 | cat conftest.err >&5 | ||
4844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4845 | (exit $ac_status); } && { | ||
4846 | test -z "$ac_c_werror_flag" || | ||
4847 | test ! -s conftest.err | ||
4848 | } && test -s conftest.$ac_objext; then | ||
4849 | break | ||
4850 | else | ||
4851 | echo "$as_me: failed program was:" >&5 | ||
4852 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4853 | |||
4854 | |||
4855 | fi | ||
4856 | |||
4857 | rm -f core conftest.err conftest.$ac_objext | ||
4858 | CC="$CC -n32" | ||
4859 | rm -f conftest.$ac_objext | ||
4860 | if { (ac_try="$ac_compile" | ||
4861 | case "(($ac_try" in | ||
4862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4863 | *) ac_try_echo=$ac_try;; | ||
4864 | esac | ||
4865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4866 | (eval "$ac_compile") 2>conftest.er1 | ||
4867 | ac_status=$? | ||
4868 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4869 | rm -f conftest.er1 | ||
4870 | cat conftest.err >&5 | ||
4871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4872 | (exit $ac_status); } && { | ||
4873 | test -z "$ac_c_werror_flag" || | ||
4874 | test ! -s conftest.err | ||
4875 | } && test -s conftest.$ac_objext; then | ||
4876 | ac_cv_sys_largefile_CC=' -n32'; break | ||
4877 | else | ||
4878 | echo "$as_me: failed program was:" >&5 | ||
4879 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4880 | |||
4881 | |||
4882 | fi | ||
4883 | |||
4884 | rm -f core conftest.err conftest.$ac_objext | ||
4885 | break | ||
4886 | done | ||
4887 | CC=$ac_save_CC | ||
4888 | rm -f conftest.$ac_ext | ||
4889 | fi | ||
4890 | fi | ||
4891 | { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | ||
4892 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } | ||
4893 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
4894 | CC=$CC$ac_cv_sys_largefile_CC | ||
4895 | fi | ||
4896 | |||
4897 | { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
4898 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } | ||
4899 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | ||
4900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4901 | else | ||
4902 | while :; do | ||
4903 | cat >conftest.$ac_ext <<_ACEOF | ||
4904 | /* confdefs.h. */ | ||
4905 | _ACEOF | ||
4906 | cat confdefs.h >>conftest.$ac_ext | ||
4907 | cat >>conftest.$ac_ext <<_ACEOF | ||
4908 | /* end confdefs.h. */ | ||
4909 | #include <sys/types.h> | ||
4910 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
4911 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
4912 | since some C++ compilers masquerading as C compilers | ||
4913 | incorrectly reject 9223372036854775807. */ | ||
4914 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
4915 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
4916 | && LARGE_OFF_T % 2147483647 == 1) | ||
4917 | ? 1 : -1]; | ||
4918 | int | ||
4919 | main () | ||
4920 | { | ||
4921 | |||
4922 | ; | ||
4923 | return 0; | ||
4924 | } | ||
4925 | _ACEOF | ||
4926 | rm -f conftest.$ac_objext | ||
4927 | if { (ac_try="$ac_compile" | ||
4928 | case "(($ac_try" in | ||
4929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4930 | *) ac_try_echo=$ac_try;; | ||
4931 | esac | ||
4932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4933 | (eval "$ac_compile") 2>conftest.er1 | ||
4934 | ac_status=$? | ||
4935 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4936 | rm -f conftest.er1 | ||
4937 | cat conftest.err >&5 | ||
4938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4939 | (exit $ac_status); } && { | ||
4940 | test -z "$ac_c_werror_flag" || | ||
4941 | test ! -s conftest.err | ||
4942 | } && test -s conftest.$ac_objext; then | ||
4943 | ac_cv_sys_file_offset_bits=no; break | ||
4944 | else | ||
4945 | echo "$as_me: failed program was:" >&5 | ||
4946 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4947 | |||
4948 | |||
4949 | fi | ||
4950 | |||
4951 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4952 | cat >conftest.$ac_ext <<_ACEOF | ||
4953 | /* confdefs.h. */ | ||
4954 | _ACEOF | ||
4955 | cat confdefs.h >>conftest.$ac_ext | ||
4956 | cat >>conftest.$ac_ext <<_ACEOF | ||
4957 | /* end confdefs.h. */ | ||
4958 | #define _FILE_OFFSET_BITS 64 | ||
4959 | #include <sys/types.h> | ||
4960 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
4961 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
4962 | since some C++ compilers masquerading as C compilers | ||
4963 | incorrectly reject 9223372036854775807. */ | ||
4964 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
4965 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
4966 | && LARGE_OFF_T % 2147483647 == 1) | ||
4967 | ? 1 : -1]; | ||
4968 | int | ||
4969 | main () | ||
4970 | { | ||
4971 | |||
4972 | ; | ||
4973 | return 0; | ||
4974 | } | ||
4975 | _ACEOF | ||
4976 | rm -f conftest.$ac_objext | ||
4977 | if { (ac_try="$ac_compile" | ||
4978 | case "(($ac_try" in | ||
4979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4980 | *) ac_try_echo=$ac_try;; | ||
4981 | esac | ||
4982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4983 | (eval "$ac_compile") 2>conftest.er1 | ||
4984 | ac_status=$? | ||
4985 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4986 | rm -f conftest.er1 | ||
4987 | cat conftest.err >&5 | ||
4988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4989 | (exit $ac_status); } && { | ||
4990 | test -z "$ac_c_werror_flag" || | ||
4991 | test ! -s conftest.err | ||
4992 | } && test -s conftest.$ac_objext; then | ||
4993 | ac_cv_sys_file_offset_bits=64; break | ||
4994 | else | ||
4995 | echo "$as_me: failed program was:" >&5 | ||
4996 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4997 | |||
4998 | |||
4999 | fi | ||
5000 | |||
5001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5002 | ac_cv_sys_file_offset_bits=unknown | ||
5003 | break | ||
5004 | done | ||
5005 | fi | ||
5006 | { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | ||
5007 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } | ||
5008 | case $ac_cv_sys_file_offset_bits in #( | ||
5009 | no | unknown) ;; | ||
5010 | *) | ||
5011 | cat >>confdefs.h <<_ACEOF | ||
5012 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
5013 | _ACEOF | ||
5014 | ;; | ||
5015 | esac | ||
5016 | rm -f conftest* | ||
5017 | if test $ac_cv_sys_file_offset_bits = unknown; then | ||
5018 | { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | ||
5019 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } | ||
5020 | if test "${ac_cv_sys_large_files+set}" = set; then | ||
5021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5022 | else | ||
5023 | while :; do | ||
5024 | cat >conftest.$ac_ext <<_ACEOF | ||
5025 | /* confdefs.h. */ | ||
5026 | _ACEOF | ||
5027 | cat confdefs.h >>conftest.$ac_ext | ||
5028 | cat >>conftest.$ac_ext <<_ACEOF | ||
5029 | /* end confdefs.h. */ | ||
5030 | #include <sys/types.h> | ||
5031 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5032 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5033 | since some C++ compilers masquerading as C compilers | ||
5034 | incorrectly reject 9223372036854775807. */ | ||
5035 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5036 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5037 | && LARGE_OFF_T % 2147483647 == 1) | ||
5038 | ? 1 : -1]; | ||
5039 | int | ||
5040 | main () | ||
5041 | { | ||
5042 | |||
5043 | ; | ||
5044 | return 0; | ||
5045 | } | ||
5046 | _ACEOF | ||
5047 | rm -f conftest.$ac_objext | ||
5048 | if { (ac_try="$ac_compile" | ||
5049 | case "(($ac_try" in | ||
5050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5051 | *) ac_try_echo=$ac_try;; | ||
5052 | esac | ||
5053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5054 | (eval "$ac_compile") 2>conftest.er1 | ||
5055 | ac_status=$? | ||
5056 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5057 | rm -f conftest.er1 | ||
5058 | cat conftest.err >&5 | ||
5059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5060 | (exit $ac_status); } && { | ||
5061 | test -z "$ac_c_werror_flag" || | ||
5062 | test ! -s conftest.err | ||
5063 | } && test -s conftest.$ac_objext; then | ||
5064 | ac_cv_sys_large_files=no; break | ||
5065 | else | ||
5066 | echo "$as_me: failed program was:" >&5 | ||
5067 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5068 | |||
5069 | |||
5070 | fi | ||
5071 | |||
5072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5073 | cat >conftest.$ac_ext <<_ACEOF | ||
5074 | /* confdefs.h. */ | ||
5075 | _ACEOF | ||
5076 | cat confdefs.h >>conftest.$ac_ext | ||
5077 | cat >>conftest.$ac_ext <<_ACEOF | ||
5078 | /* end confdefs.h. */ | ||
5079 | #define _LARGE_FILES 1 | ||
5080 | #include <sys/types.h> | ||
5081 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5082 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5083 | since some C++ compilers masquerading as C compilers | ||
5084 | incorrectly reject 9223372036854775807. */ | ||
5085 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5086 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5087 | && LARGE_OFF_T % 2147483647 == 1) | ||
5088 | ? 1 : -1]; | ||
5089 | int | ||
5090 | main () | ||
5091 | { | ||
5092 | |||
5093 | ; | ||
5094 | return 0; | ||
5095 | } | ||
5096 | _ACEOF | ||
5097 | rm -f conftest.$ac_objext | ||
5098 | if { (ac_try="$ac_compile" | ||
5099 | case "(($ac_try" in | ||
5100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5101 | *) ac_try_echo=$ac_try;; | ||
5102 | esac | ||
5103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5104 | (eval "$ac_compile") 2>conftest.er1 | ||
5105 | ac_status=$? | ||
5106 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5107 | rm -f conftest.er1 | ||
5108 | cat conftest.err >&5 | ||
5109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5110 | (exit $ac_status); } && { | ||
5111 | test -z "$ac_c_werror_flag" || | ||
5112 | test ! -s conftest.err | ||
5113 | } && test -s conftest.$ac_objext; then | ||
5114 | ac_cv_sys_large_files=1; break | ||
5115 | else | ||
5116 | echo "$as_me: failed program was:" >&5 | ||
5117 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5118 | |||
5119 | |||
5120 | fi | ||
5121 | |||
5122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5123 | ac_cv_sys_large_files=unknown | ||
5124 | break | ||
5125 | done | ||
5126 | fi | ||
5127 | { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | ||
5128 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } | ||
5129 | case $ac_cv_sys_large_files in #( | ||
5130 | no | unknown) ;; | ||
5131 | *) | ||
5132 | cat >>confdefs.h <<_ACEOF | ||
5133 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
5134 | _ACEOF | ||
5135 | ;; | ||
5136 | esac | ||
5137 | rm -f conftest* | ||
5138 | fi | ||
5139 | fi | ||
5140 | |||
5141 | |||
5142 | if test -z "$AR" ; then | ||
5143 | { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5 | ||
5144 | echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;} | ||
5145 | { (exit 1); exit 1; }; } | ||
5146 | fi | ||
5147 | |||
5148 | # Use LOGIN_PROGRAM from environment if possible | ||
5149 | if test ! -z "$LOGIN_PROGRAM" ; then | ||
5150 | |||
5151 | cat >>confdefs.h <<_ACEOF | ||
5152 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" | ||
5153 | _ACEOF | ||
5154 | |||
5155 | else | ||
5156 | # Search for login | ||
5157 | # Extract the first word of "login", so it can be a program name with args. | ||
5158 | set dummy login; ac_word=$2 | ||
5159 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5160 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5161 | if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then | ||
5162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5163 | else | ||
5164 | case $LOGIN_PROGRAM_FALLBACK in | ||
5165 | [\\/]* | ?:[\\/]*) | ||
5166 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. | ||
5167 | ;; | ||
5168 | *) | ||
5169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5170 | for as_dir in $PATH | ||
5171 | do | ||
5172 | IFS=$as_save_IFS | ||
5173 | test -z "$as_dir" && as_dir=. | ||
5174 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5175 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5176 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext" | ||
5177 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5178 | break 2 | ||
5179 | fi | ||
5180 | done | ||
5181 | done | ||
5182 | IFS=$as_save_IFS | ||
5183 | |||
5184 | ;; | ||
5185 | esac | ||
5186 | fi | ||
5187 | LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK | ||
5188 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then | ||
5189 | { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5 | ||
5190 | echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; } | ||
5191 | else | ||
5192 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5193 | echo "${ECHO_T}no" >&6; } | ||
5194 | fi | ||
5195 | |||
5196 | |||
5197 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | ||
5198 | cat >>confdefs.h <<_ACEOF | ||
5199 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" | ||
5200 | _ACEOF | ||
5201 | |||
5202 | fi | ||
5203 | fi | ||
5204 | |||
5205 | # Extract the first word of "passwd", so it can be a program name with args. | ||
5206 | set dummy passwd; ac_word=$2 | ||
5207 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5208 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5209 | if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then | ||
5210 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5211 | else | ||
5212 | case $PATH_PASSWD_PROG in | ||
5213 | [\\/]* | ?:[\\/]*) | ||
5214 | ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. | ||
5215 | ;; | ||
5216 | *) | ||
5217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5218 | for as_dir in $PATH | ||
5219 | do | ||
5220 | IFS=$as_save_IFS | ||
5221 | test -z "$as_dir" && as_dir=. | ||
5222 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5223 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5224 | ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5225 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5226 | break 2 | ||
5227 | fi | ||
5228 | done | ||
5229 | done | ||
5230 | IFS=$as_save_IFS | ||
5231 | |||
5232 | ;; | ||
5233 | esac | ||
5234 | fi | ||
5235 | PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG | ||
5236 | if test -n "$PATH_PASSWD_PROG"; then | ||
5237 | { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5 | ||
5238 | echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; } | ||
5239 | else | ||
5240 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5241 | echo "${ECHO_T}no" >&6; } | ||
5242 | fi | ||
5243 | |||
5244 | |||
5245 | if test ! -z "$PATH_PASSWD_PROG" ; then | ||
5246 | |||
5247 | cat >>confdefs.h <<_ACEOF | ||
5248 | #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" | ||
5249 | _ACEOF | ||
5250 | |||
5251 | fi | ||
5252 | |||
5253 | if test -z "$LD" ; then | ||
5254 | LD=$CC | ||
5255 | fi | ||
5256 | |||
5257 | |||
5258 | { echo "$as_me:$LINENO: checking for inline" >&5 | ||
5259 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | ||
5260 | if test "${ac_cv_c_inline+set}" = set; then | ||
5261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5262 | else | ||
5263 | ac_cv_c_inline=no | ||
5264 | for ac_kw in inline __inline__ __inline; do | ||
5265 | cat >conftest.$ac_ext <<_ACEOF | ||
5266 | /* confdefs.h. */ | ||
5267 | _ACEOF | ||
5268 | cat confdefs.h >>conftest.$ac_ext | ||
5269 | cat >>conftest.$ac_ext <<_ACEOF | ||
5270 | /* end confdefs.h. */ | ||
5271 | #ifndef __cplusplus | ||
5272 | typedef int foo_t; | ||
5273 | static $ac_kw foo_t static_foo () {return 0; } | ||
5274 | $ac_kw foo_t foo () {return 0; } | ||
5275 | #endif | ||
5276 | |||
5277 | _ACEOF | ||
5278 | rm -f conftest.$ac_objext | ||
5279 | if { (ac_try="$ac_compile" | ||
5280 | case "(($ac_try" in | ||
5281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5282 | *) ac_try_echo=$ac_try;; | ||
5283 | esac | ||
5284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5285 | (eval "$ac_compile") 2>conftest.er1 | ||
5286 | ac_status=$? | ||
5287 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5288 | rm -f conftest.er1 | ||
5289 | cat conftest.err >&5 | ||
5290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5291 | (exit $ac_status); } && { | ||
5292 | test -z "$ac_c_werror_flag" || | ||
5293 | test ! -s conftest.err | ||
5294 | } && test -s conftest.$ac_objext; then | ||
5295 | ac_cv_c_inline=$ac_kw | ||
5296 | else | ||
5297 | echo "$as_me: failed program was:" >&5 | ||
5298 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5299 | |||
5300 | |||
5301 | fi | ||
5302 | |||
5303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5304 | test "$ac_cv_c_inline" != no && break | ||
5305 | done | ||
5306 | |||
5307 | fi | ||
5308 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | ||
5309 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | ||
5310 | |||
5311 | |||
5312 | case $ac_cv_c_inline in | ||
5313 | inline | yes) ;; | ||
5314 | *) | ||
5315 | case $ac_cv_c_inline in | ||
5316 | no) ac_val=;; | ||
5317 | *) ac_val=$ac_cv_c_inline;; | ||
5318 | esac | ||
5319 | cat >>confdefs.h <<_ACEOF | ||
5320 | #ifndef __cplusplus | ||
5321 | #define inline $ac_val | ||
5322 | #endif | ||
5323 | _ACEOF | ||
5324 | ;; | ||
5325 | esac | ||
5326 | |||
5327 | |||
5328 | { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5 | ||
5329 | echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; } | ||
5330 | if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then | ||
5331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5332 | else | ||
5333 | cat >conftest.$ac_ext <<_ACEOF | ||
5334 | /* confdefs.h. */ | ||
5335 | _ACEOF | ||
5336 | cat confdefs.h >>conftest.$ac_ext | ||
5337 | cat >>conftest.$ac_ext <<_ACEOF | ||
5338 | /* end confdefs.h. */ | ||
5339 | #include <limits.h> | ||
5340 | |||
5341 | int | ||
5342 | main () | ||
5343 | { | ||
5344 | #ifndef LLONG_MAX | ||
5345 | (void) LLONG_MAX; | ||
5346 | #endif | ||
5347 | |||
5348 | ; | ||
5349 | return 0; | ||
5350 | } | ||
5351 | _ACEOF | ||
5352 | rm -f conftest.$ac_objext | ||
5353 | if { (ac_try="$ac_compile" | ||
5354 | case "(($ac_try" in | ||
5355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5356 | *) ac_try_echo=$ac_try;; | ||
5357 | esac | ||
5358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5359 | (eval "$ac_compile") 2>conftest.er1 | ||
5360 | ac_status=$? | ||
5361 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5362 | rm -f conftest.er1 | ||
5363 | cat conftest.err >&5 | ||
5364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5365 | (exit $ac_status); } && { | ||
5366 | test -z "$ac_c_werror_flag" || | ||
5367 | test ! -s conftest.err | ||
5368 | } && test -s conftest.$ac_objext; then | ||
5369 | ac_cv_have_decl_LLONG_MAX=yes | ||
5370 | else | ||
5371 | echo "$as_me: failed program was:" >&5 | ||
5372 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5373 | |||
5374 | ac_cv_have_decl_LLONG_MAX=no | ||
5375 | fi | ||
5376 | |||
5377 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5378 | fi | ||
5379 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5 | ||
5380 | echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; } | ||
5381 | if test $ac_cv_have_decl_LLONG_MAX = yes; then | ||
5382 | have_llong_max=1 | ||
5383 | fi | ||
5384 | |||
5385 | |||
5386 | use_stack_protector=1 | ||
5387 | |||
5388 | # Check whether --with-stackprotect was given. | ||
5389 | if test "${with_stackprotect+set}" = set; then | ||
5390 | withval=$with_stackprotect; | ||
5391 | if test "x$withval" = "xno"; then | ||
5392 | use_stack_protector=0 | ||
5393 | fi | ||
5394 | fi | ||
5395 | |||
5396 | |||
5397 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
5398 | CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized" | ||
5399 | GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` | ||
5400 | case $GCC_VER in | ||
5401 | 1.*) no_attrib_nonnull=1 ;; | ||
5402 | 2.8* | 2.9*) | ||
5403 | CFLAGS="$CFLAGS -Wsign-compare" | ||
5404 | no_attrib_nonnull=1 | ||
5405 | ;; | ||
5406 | 2.*) no_attrib_nonnull=1 ;; | ||
5407 | 3.*) CFLAGS="$CFLAGS -Wsign-compare -Wformat-security" ;; | ||
5408 | 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign -Wformat-security -fno-strict-aliasing" ;; | ||
5409 | *) ;; | ||
5410 | esac | ||
5411 | |||
5412 | { echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5 | ||
5413 | echo $ECHO_N "checking if $CC accepts -fno-builtin-memset... $ECHO_C" >&6; } | ||
5414 | saved_CFLAGS="$CFLAGS" | ||
5415 | CFLAGS="$CFLAGS -fno-builtin-memset" | ||
5416 | cat >conftest.$ac_ext <<_ACEOF | ||
5417 | /* confdefs.h. */ | ||
5418 | _ACEOF | ||
5419 | cat confdefs.h >>conftest.$ac_ext | ||
5420 | cat >>conftest.$ac_ext <<_ACEOF | ||
5421 | /* end confdefs.h. */ | ||
5422 | |||
5423 | #include <string.h> | ||
5424 | int main(void){char b[10]; memset(b, 0, sizeof(b));} | ||
5425 | |||
5426 | _ACEOF | ||
5427 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5428 | if { (ac_try="$ac_link" | ||
5429 | case "(($ac_try" in | ||
5430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5431 | *) ac_try_echo=$ac_try;; | ||
5432 | esac | ||
5433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5434 | (eval "$ac_link") 2>conftest.er1 | ||
5435 | ac_status=$? | ||
5436 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5437 | rm -f conftest.er1 | ||
5438 | cat conftest.err >&5 | ||
5439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5440 | (exit $ac_status); } && { | ||
5441 | test -z "$ac_c_werror_flag" || | ||
5442 | test ! -s conftest.err | ||
5443 | } && test -s conftest$ac_exeext && | ||
5444 | $as_test_x conftest$ac_exeext; then | ||
5445 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5446 | echo "${ECHO_T}yes" >&6; } | ||
5447 | else | ||
5448 | echo "$as_me: failed program was:" >&5 | ||
5449 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5450 | |||
5451 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5452 | echo "${ECHO_T}no" >&6; } | ||
5453 | CFLAGS="$saved_CFLAGS" | ||
5454 | |||
5455 | fi | ||
5456 | |||
5457 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5458 | conftest$ac_exeext conftest.$ac_ext | ||
5459 | |||
5460 | # -fstack-protector-all doesn't always work for some GCC versions | ||
5461 | # and/or platforms, so we test if we can. If it's not supported | ||
5462 | # on a given platform gcc will emit a warning so we use -Werror. | ||
5463 | if test "x$use_stack_protector" = "x1"; then | ||
5464 | for t in -fstack-protector-all -fstack-protector; do | ||
5465 | { echo "$as_me:$LINENO: checking if $CC supports $t" >&5 | ||
5466 | echo $ECHO_N "checking if $CC supports $t... $ECHO_C" >&6; } | ||
5467 | saved_CFLAGS="$CFLAGS" | ||
5468 | saved_LDFLAGS="$LDFLAGS" | ||
5469 | CFLAGS="$CFLAGS $t -Werror" | ||
5470 | LDFLAGS="$LDFLAGS $t -Werror" | ||
5471 | cat >conftest.$ac_ext <<_ACEOF | ||
5472 | /* confdefs.h. */ | ||
5473 | _ACEOF | ||
5474 | cat confdefs.h >>conftest.$ac_ext | ||
5475 | cat >>conftest.$ac_ext <<_ACEOF | ||
5476 | /* end confdefs.h. */ | ||
5477 | |||
5478 | #include <stdio.h> | ||
5479 | int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;} | ||
5480 | |||
5481 | _ACEOF | ||
5482 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5483 | if { (ac_try="$ac_link" | ||
5484 | case "(($ac_try" in | ||
5485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5486 | *) ac_try_echo=$ac_try;; | ||
5487 | esac | ||
5488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5489 | (eval "$ac_link") 2>conftest.er1 | ||
5490 | ac_status=$? | ||
5491 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5492 | rm -f conftest.er1 | ||
5493 | cat conftest.err >&5 | ||
5494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5495 | (exit $ac_status); } && { | ||
5496 | test -z "$ac_c_werror_flag" || | ||
5497 | test ! -s conftest.err | ||
5498 | } && test -s conftest$ac_exeext && | ||
5499 | $as_test_x conftest$ac_exeext; then | ||
5500 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5501 | echo "${ECHO_T}yes" >&6; } | ||
5502 | CFLAGS="$saved_CFLAGS $t" | ||
5503 | LDFLAGS="$saved_LDFLAGS $t" | ||
5504 | { echo "$as_me:$LINENO: checking if $t works" >&5 | ||
5505 | echo $ECHO_N "checking if $t works... $ECHO_C" >&6; } | ||
5506 | if test "$cross_compiling" = yes; then | ||
5507 | { echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5 | ||
5508 | echo "$as_me: WARNING: cross compiling: cannot test" >&2;} | ||
5509 | break | ||
5510 | |||
5511 | else | ||
5512 | cat >conftest.$ac_ext <<_ACEOF | ||
5513 | /* confdefs.h. */ | ||
5514 | _ACEOF | ||
5515 | cat confdefs.h >>conftest.$ac_ext | ||
5516 | cat >>conftest.$ac_ext <<_ACEOF | ||
5517 | /* end confdefs.h. */ | ||
5518 | |||
5519 | #include <stdio.h> | ||
5520 | int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;} | ||
5521 | |||
5522 | _ACEOF | ||
5523 | rm -f conftest$ac_exeext | ||
5524 | if { (ac_try="$ac_link" | ||
5525 | case "(($ac_try" in | ||
5526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5527 | *) ac_try_echo=$ac_try;; | ||
5528 | esac | ||
5529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5530 | (eval "$ac_link") 2>&5 | ||
5531 | ac_status=$? | ||
5532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5533 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
5534 | { (case "(($ac_try" in | ||
5535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5536 | *) ac_try_echo=$ac_try;; | ||
5537 | esac | ||
5538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5539 | (eval "$ac_try") 2>&5 | ||
5540 | ac_status=$? | ||
5541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5542 | (exit $ac_status); }; }; then | ||
5543 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5544 | echo "${ECHO_T}yes" >&6; } | ||
5545 | break | ||
5546 | else | ||
5547 | echo "$as_me: program exited with status $ac_status" >&5 | ||
5548 | echo "$as_me: failed program was:" >&5 | ||
5549 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5550 | |||
5551 | ( exit $ac_status ) | ||
5552 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5553 | echo "${ECHO_T}no" >&6; } | ||
5554 | fi | ||
5555 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
5556 | fi | ||
5557 | |||
5558 | |||
5559 | |||
5560 | else | ||
5561 | echo "$as_me: failed program was:" >&5 | ||
5562 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5563 | |||
5564 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5565 | echo "${ECHO_T}no" >&6; } | ||
5566 | |||
5567 | fi | ||
5568 | |||
5569 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5570 | conftest$ac_exeext conftest.$ac_ext | ||
5571 | CFLAGS="$saved_CFLAGS" | ||
5572 | LDFLAGS="$saved_LDFLAGS" | ||
5573 | done | ||
5574 | fi | ||
5575 | |||
5576 | if test -z "$have_llong_max"; then | ||
5577 | # retry LLONG_MAX with -std=gnu99, needed on some Linuxes | ||
5578 | unset ac_cv_have_decl_LLONG_MAX | ||
5579 | saved_CFLAGS="$CFLAGS" | ||
5580 | CFLAGS="$CFLAGS -std=gnu99" | ||
5581 | { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5 | ||
5582 | echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; } | ||
5583 | if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then | ||
5584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5585 | else | ||
5586 | cat >conftest.$ac_ext <<_ACEOF | ||
5587 | /* confdefs.h. */ | ||
5588 | _ACEOF | ||
5589 | cat confdefs.h >>conftest.$ac_ext | ||
5590 | cat >>conftest.$ac_ext <<_ACEOF | ||
5591 | /* end confdefs.h. */ | ||
5592 | #include <limits.h> | ||
5593 | |||
5594 | |||
5595 | int | ||
5596 | main () | ||
5597 | { | ||
5598 | #ifndef LLONG_MAX | ||
5599 | (void) LLONG_MAX; | ||
5600 | #endif | ||
5601 | |||
5602 | ; | ||
5603 | return 0; | ||
5604 | } | ||
5605 | _ACEOF | ||
5606 | rm -f conftest.$ac_objext | ||
5607 | if { (ac_try="$ac_compile" | ||
5608 | case "(($ac_try" in | ||
5609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5610 | *) ac_try_echo=$ac_try;; | ||
5611 | esac | ||
5612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5613 | (eval "$ac_compile") 2>conftest.er1 | ||
5614 | ac_status=$? | ||
5615 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5616 | rm -f conftest.er1 | ||
5617 | cat conftest.err >&5 | ||
5618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5619 | (exit $ac_status); } && { | ||
5620 | test -z "$ac_c_werror_flag" || | ||
5621 | test ! -s conftest.err | ||
5622 | } && test -s conftest.$ac_objext; then | ||
5623 | ac_cv_have_decl_LLONG_MAX=yes | ||
5624 | else | ||
5625 | echo "$as_me: failed program was:" >&5 | ||
5626 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5627 | |||
5628 | ac_cv_have_decl_LLONG_MAX=no | ||
5629 | fi | ||
5630 | |||
5631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5632 | fi | ||
5633 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5 | ||
5634 | echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; } | ||
5635 | if test $ac_cv_have_decl_LLONG_MAX = yes; then | ||
5636 | have_llong_max=1 | ||
5637 | else | ||
5638 | CFLAGS="$saved_CFLAGS" | ||
5639 | fi | ||
5640 | |||
5641 | fi | ||
5642 | fi | ||
5643 | |||
5644 | if test "x$no_attrib_nonnull" != "x1" ; then | ||
5645 | |||
5646 | cat >>confdefs.h <<\_ACEOF | ||
5647 | #define HAVE_ATTRIBUTE__NONNULL__ 1 | ||
5648 | _ACEOF | ||
5649 | |||
5650 | fi | ||
5651 | |||
5652 | |||
5653 | # Check whether --with-rpath was given. | ||
5654 | if test "${with_rpath+set}" = set; then | ||
5655 | withval=$with_rpath; | ||
5656 | if test "x$withval" = "xno" ; then | ||
5657 | need_dash_r="" | ||
5658 | fi | ||
5659 | if test "x$withval" = "xyes" ; then | ||
5660 | need_dash_r=1 | ||
5661 | fi | ||
5662 | |||
5663 | |||
5664 | fi | ||
5665 | |||
5666 | |||
5667 | # Allow user to specify flags | ||
5668 | |||
5669 | # Check whether --with-cflags was given. | ||
5670 | if test "${with_cflags+set}" = set; then | ||
5671 | withval=$with_cflags; | ||
5672 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
5673 | test "x${withval}" != "xyes"; then | ||
5674 | CFLAGS="$CFLAGS $withval" | ||
5675 | fi | ||
5676 | |||
5677 | |||
5678 | fi | ||
5679 | |||
5680 | |||
5681 | # Check whether --with-cppflags was given. | ||
5682 | if test "${with_cppflags+set}" = set; then | ||
5683 | withval=$with_cppflags; | ||
5684 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
5685 | test "x${withval}" != "xyes"; then | ||
5686 | CPPFLAGS="$CPPFLAGS $withval" | ||
5687 | fi | ||
5688 | |||
5689 | |||
5690 | fi | ||
5691 | |||
5692 | |||
5693 | # Check whether --with-ldflags was given. | ||
5694 | if test "${with_ldflags+set}" = set; then | ||
5695 | withval=$with_ldflags; | ||
5696 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
5697 | test "x${withval}" != "xyes"; then | ||
5698 | LDFLAGS="$LDFLAGS $withval" | ||
5699 | fi | ||
5700 | |||
5701 | |||
5702 | fi | ||
5703 | |||
5704 | |||
5705 | # Check whether --with-libs was given. | ||
5706 | if test "${with_libs+set}" = set; then | ||
5707 | withval=$with_libs; | ||
5708 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
5709 | test "x${withval}" != "xyes"; then | ||
5710 | LIBS="$LIBS $withval" | ||
5711 | fi | ||
5712 | |||
5713 | |||
5714 | fi | ||
5715 | |||
5716 | |||
5717 | # Check whether --with-Werror was given. | ||
5718 | if test "${with_Werror+set}" = set; then | ||
5719 | withval=$with_Werror; | ||
5720 | if test -n "$withval" && test "x$withval" != "xno"; then | ||
5721 | werror_flags="-Werror" | ||
5722 | if test "x${withval}" != "xyes"; then | ||
5723 | werror_flags="$withval" | ||
5724 | fi | ||
5725 | fi | ||
5726 | |||
5727 | |||
5728 | fi | ||
5729 | |||
5730 | |||
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 | for ac_header in \ | ||
5795 | bstring.h \ | ||
5796 | crypt.h \ | ||
5797 | crypto/sha2.h \ | ||
5798 | dirent.h \ | ||
5799 | endian.h \ | ||
5800 | features.h \ | ||
5801 | fcntl.h \ | ||
5802 | floatingpoint.h \ | ||
5803 | getopt.h \ | ||
5804 | glob.h \ | ||
5805 | ia.h \ | ||
5806 | iaf.h \ | ||
5807 | limits.h \ | ||
5808 | login.h \ | ||
5809 | maillock.h \ | ||
5810 | ndir.h \ | ||
5811 | net/if_tun.h \ | ||
5812 | netdb.h \ | ||
5813 | netgroup.h \ | ||
5814 | pam/pam_appl.h \ | ||
5815 | paths.h \ | ||
5816 | poll.h \ | ||
5817 | pty.h \ | ||
5818 | readpassphrase.h \ | ||
5819 | rpc/types.h \ | ||
5820 | security/pam_appl.h \ | ||
5821 | sha2.h \ | ||
5822 | shadow.h \ | ||
5823 | stddef.h \ | ||
5824 | stdint.h \ | ||
5825 | string.h \ | ||
5826 | strings.h \ | ||
5827 | sys/audit.h \ | ||
5828 | sys/bitypes.h \ | ||
5829 | sys/bsdtty.h \ | ||
5830 | sys/cdefs.h \ | ||
5831 | sys/dir.h \ | ||
5832 | sys/mman.h \ | ||
5833 | sys/ndir.h \ | ||
5834 | sys/poll.h \ | ||
5835 | sys/prctl.h \ | ||
5836 | sys/pstat.h \ | ||
5837 | sys/select.h \ | ||
5838 | sys/stat.h \ | ||
5839 | sys/stream.h \ | ||
5840 | sys/stropts.h \ | ||
5841 | sys/strtio.h \ | ||
5842 | sys/statvfs.h \ | ||
5843 | sys/sysmacros.h \ | ||
5844 | sys/time.h \ | ||
5845 | sys/timers.h \ | ||
5846 | sys/un.h \ | ||
5847 | time.h \ | ||
5848 | tmpdir.h \ | ||
5849 | ttyent.h \ | ||
5850 | ucred.h \ | ||
5851 | unistd.h \ | ||
5852 | usersec.h \ | ||
5853 | util.h \ | ||
5854 | utime.h \ | ||
5855 | utmp.h \ | ||
5856 | utmpx.h \ | ||
5857 | vis.h \ | ||
5858 | |||
5859 | do | ||
5860 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5861 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5862 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5863 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
5864 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5866 | fi | ||
5867 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
5868 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5869 | echo "${ECHO_T}$ac_res" >&6; } | ||
5870 | else | ||
5871 | # Is the header compilable? | ||
5872 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
5873 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
5874 | cat >conftest.$ac_ext <<_ACEOF | ||
5875 | /* confdefs.h. */ | ||
5876 | _ACEOF | ||
5877 | cat confdefs.h >>conftest.$ac_ext | ||
5878 | cat >>conftest.$ac_ext <<_ACEOF | ||
5879 | /* end confdefs.h. */ | ||
5880 | $ac_includes_default | ||
5881 | #include <$ac_header> | ||
5882 | _ACEOF | ||
5883 | rm -f conftest.$ac_objext | ||
5884 | if { (ac_try="$ac_compile" | ||
5885 | case "(($ac_try" in | ||
5886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5887 | *) ac_try_echo=$ac_try;; | ||
5888 | esac | ||
5889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5890 | (eval "$ac_compile") 2>conftest.er1 | ||
5891 | ac_status=$? | ||
5892 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5893 | rm -f conftest.er1 | ||
5894 | cat conftest.err >&5 | ||
5895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5896 | (exit $ac_status); } && { | ||
5897 | test -z "$ac_c_werror_flag" || | ||
5898 | test ! -s conftest.err | ||
5899 | } && test -s conftest.$ac_objext; then | ||
5900 | ac_header_compiler=yes | ||
5901 | else | ||
5902 | echo "$as_me: failed program was:" >&5 | ||
5903 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5904 | |||
5905 | ac_header_compiler=no | ||
5906 | fi | ||
5907 | |||
5908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5909 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
5910 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
5911 | |||
5912 | # Is the header present? | ||
5913 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
5914 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
5915 | cat >conftest.$ac_ext <<_ACEOF | ||
5916 | /* confdefs.h. */ | ||
5917 | _ACEOF | ||
5918 | cat confdefs.h >>conftest.$ac_ext | ||
5919 | cat >>conftest.$ac_ext <<_ACEOF | ||
5920 | /* end confdefs.h. */ | ||
5921 | #include <$ac_header> | ||
5922 | _ACEOF | ||
5923 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
5924 | case "(($ac_try" in | ||
5925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5926 | *) ac_try_echo=$ac_try;; | ||
5927 | esac | ||
5928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5929 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
5930 | ac_status=$? | ||
5931 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5932 | rm -f conftest.er1 | ||
5933 | cat conftest.err >&5 | ||
5934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5935 | (exit $ac_status); } >/dev/null && { | ||
5936 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
5937 | test ! -s conftest.err | ||
5938 | }; then | ||
5939 | ac_header_preproc=yes | ||
5940 | else | ||
5941 | echo "$as_me: failed program was:" >&5 | ||
5942 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5943 | |||
5944 | ac_header_preproc=no | ||
5945 | fi | ||
5946 | |||
5947 | rm -f conftest.err conftest.$ac_ext | ||
5948 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
5949 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
5950 | |||
5951 | # So? What about this header? | ||
5952 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
5953 | yes:no: ) | ||
5954 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
5955 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
5956 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
5957 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
5958 | ac_header_preproc=yes | ||
5959 | ;; | ||
5960 | no:yes:* ) | ||
5961 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
5962 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
5963 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
5964 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
5965 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
5966 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
5967 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
5968 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
5969 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
5970 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
5971 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
5972 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
5973 | ( cat <<\_ASBOX | ||
5974 | ## ------------------------------------------- ## | ||
5975 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
5976 | ## ------------------------------------------- ## | ||
5977 | _ASBOX | ||
5978 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
5979 | ;; | ||
5980 | esac | ||
5981 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5982 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
5983 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5985 | else | ||
5986 | eval "$as_ac_Header=\$ac_header_preproc" | ||
5987 | fi | ||
5988 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
5989 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5990 | echo "${ECHO_T}$ac_res" >&6; } | ||
5991 | |||
5992 | fi | ||
5993 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5994 | cat >>confdefs.h <<_ACEOF | ||
5995 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5996 | _ACEOF | ||
5997 | |||
5998 | fi | ||
5999 | |||
6000 | done | ||
6001 | |||
6002 | |||
6003 | # lastlog.h requires sys/time.h to be included first on Solaris | ||
6004 | |||
6005 | for ac_header in lastlog.h | ||
6006 | do | ||
6007 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6008 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6009 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
6010 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6012 | else | ||
6013 | cat >conftest.$ac_ext <<_ACEOF | ||
6014 | /* confdefs.h. */ | ||
6015 | _ACEOF | ||
6016 | cat confdefs.h >>conftest.$ac_ext | ||
6017 | cat >>conftest.$ac_ext <<_ACEOF | ||
6018 | /* end confdefs.h. */ | ||
6019 | |||
6020 | #ifdef HAVE_SYS_TIME_H | ||
6021 | # include <sys/time.h> | ||
6022 | #endif | ||
6023 | |||
6024 | |||
6025 | #include <$ac_header> | ||
6026 | _ACEOF | ||
6027 | rm -f conftest.$ac_objext | ||
6028 | if { (ac_try="$ac_compile" | ||
6029 | case "(($ac_try" in | ||
6030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6031 | *) ac_try_echo=$ac_try;; | ||
6032 | esac | ||
6033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6034 | (eval "$ac_compile") 2>conftest.er1 | ||
6035 | ac_status=$? | ||
6036 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6037 | rm -f conftest.er1 | ||
6038 | cat conftest.err >&5 | ||
6039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6040 | (exit $ac_status); } && { | ||
6041 | test -z "$ac_c_werror_flag" || | ||
6042 | test ! -s conftest.err | ||
6043 | } && test -s conftest.$ac_objext; then | ||
6044 | eval "$as_ac_Header=yes" | ||
6045 | else | ||
6046 | echo "$as_me: failed program was:" >&5 | ||
6047 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6048 | |||
6049 | eval "$as_ac_Header=no" | ||
6050 | fi | ||
6051 | |||
6052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6053 | fi | ||
6054 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
6055 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
6056 | echo "${ECHO_T}$ac_res" >&6; } | ||
6057 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6058 | cat >>confdefs.h <<_ACEOF | ||
6059 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6060 | _ACEOF | ||
6061 | |||
6062 | fi | ||
6063 | |||
6064 | done | ||
6065 | |||
6066 | |||
6067 | # sys/ptms.h requires sys/stream.h to be included first on Solaris | ||
6068 | |||
6069 | for ac_header in sys/ptms.h | ||
6070 | do | ||
6071 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6072 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6073 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
6074 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6076 | else | ||
6077 | cat >conftest.$ac_ext <<_ACEOF | ||
6078 | /* confdefs.h. */ | ||
6079 | _ACEOF | ||
6080 | cat confdefs.h >>conftest.$ac_ext | ||
6081 | cat >>conftest.$ac_ext <<_ACEOF | ||
6082 | /* end confdefs.h. */ | ||
6083 | |||
6084 | #ifdef HAVE_SYS_STREAM_H | ||
6085 | # include <sys/stream.h> | ||
6086 | #endif | ||
6087 | |||
6088 | |||
6089 | #include <$ac_header> | ||
6090 | _ACEOF | ||
6091 | rm -f conftest.$ac_objext | ||
6092 | if { (ac_try="$ac_compile" | ||
6093 | case "(($ac_try" in | ||
6094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6095 | *) ac_try_echo=$ac_try;; | ||
6096 | esac | ||
6097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6098 | (eval "$ac_compile") 2>conftest.er1 | ||
6099 | ac_status=$? | ||
6100 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6101 | rm -f conftest.er1 | ||
6102 | cat conftest.err >&5 | ||
6103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6104 | (exit $ac_status); } && { | ||
6105 | test -z "$ac_c_werror_flag" || | ||
6106 | test ! -s conftest.err | ||
6107 | } && test -s conftest.$ac_objext; then | ||
6108 | eval "$as_ac_Header=yes" | ||
6109 | else | ||
6110 | echo "$as_me: failed program was:" >&5 | ||
6111 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6112 | |||
6113 | eval "$as_ac_Header=no" | ||
6114 | fi | ||
6115 | |||
6116 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6117 | fi | ||
6118 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
6119 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
6120 | echo "${ECHO_T}$ac_res" >&6; } | ||
6121 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6122 | cat >>confdefs.h <<_ACEOF | ||
6123 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6124 | _ACEOF | ||
6125 | |||
6126 | fi | ||
6127 | |||
6128 | done | ||
6129 | |||
6130 | |||
6131 | # login_cap.h requires sys/types.h on NetBSD | ||
6132 | |||
6133 | for ac_header in login_cap.h | ||
6134 | do | ||
6135 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6136 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6137 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
6138 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6140 | else | ||
6141 | cat >conftest.$ac_ext <<_ACEOF | ||
6142 | /* confdefs.h. */ | ||
6143 | _ACEOF | ||
6144 | cat confdefs.h >>conftest.$ac_ext | ||
6145 | cat >>conftest.$ac_ext <<_ACEOF | ||
6146 | /* end confdefs.h. */ | ||
6147 | |||
6148 | #include <sys/types.h> | ||
6149 | |||
6150 | |||
6151 | #include <$ac_header> | ||
6152 | _ACEOF | ||
6153 | rm -f conftest.$ac_objext | ||
6154 | if { (ac_try="$ac_compile" | ||
6155 | case "(($ac_try" in | ||
6156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6157 | *) ac_try_echo=$ac_try;; | ||
6158 | esac | ||
6159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6160 | (eval "$ac_compile") 2>conftest.er1 | ||
6161 | ac_status=$? | ||
6162 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6163 | rm -f conftest.er1 | ||
6164 | cat conftest.err >&5 | ||
6165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6166 | (exit $ac_status); } && { | ||
6167 | test -z "$ac_c_werror_flag" || | ||
6168 | test ! -s conftest.err | ||
6169 | } && test -s conftest.$ac_objext; then | ||
6170 | eval "$as_ac_Header=yes" | ||
6171 | else | ||
6172 | echo "$as_me: failed program was:" >&5 | ||
6173 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6174 | |||
6175 | eval "$as_ac_Header=no" | ||
6176 | fi | ||
6177 | |||
6178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6179 | fi | ||
6180 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
6181 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
6182 | echo "${ECHO_T}$ac_res" >&6; } | ||
6183 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6184 | cat >>confdefs.h <<_ACEOF | ||
6185 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6186 | _ACEOF | ||
6187 | |||
6188 | fi | ||
6189 | |||
6190 | done | ||
6191 | |||
6192 | |||
6193 | # older BSDs need sys/param.h before sys/mount.h | ||
6194 | |||
6195 | for ac_header in sys/mount.h | ||
6196 | do | ||
6197 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6198 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6199 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
6200 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6202 | else | ||
6203 | cat >conftest.$ac_ext <<_ACEOF | ||
6204 | /* confdefs.h. */ | ||
6205 | _ACEOF | ||
6206 | cat confdefs.h >>conftest.$ac_ext | ||
6207 | cat >>conftest.$ac_ext <<_ACEOF | ||
6208 | /* end confdefs.h. */ | ||
6209 | |||
6210 | #include <sys/param.h> | ||
6211 | |||
6212 | |||
6213 | #include <$ac_header> | ||
6214 | _ACEOF | ||
6215 | rm -f conftest.$ac_objext | ||
6216 | if { (ac_try="$ac_compile" | ||
6217 | case "(($ac_try" in | ||
6218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6219 | *) ac_try_echo=$ac_try;; | ||
6220 | esac | ||
6221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6222 | (eval "$ac_compile") 2>conftest.er1 | ||
6223 | ac_status=$? | ||
6224 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6225 | rm -f conftest.er1 | ||
6226 | cat conftest.err >&5 | ||
6227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6228 | (exit $ac_status); } && { | ||
6229 | test -z "$ac_c_werror_flag" || | ||
6230 | test ! -s conftest.err | ||
6231 | } && test -s conftest.$ac_objext; then | ||
6232 | eval "$as_ac_Header=yes" | ||
6233 | else | ||
6234 | echo "$as_me: failed program was:" >&5 | ||
6235 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6236 | |||
6237 | eval "$as_ac_Header=no" | ||
6238 | fi | ||
6239 | |||
6240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6241 | fi | ||
6242 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
6243 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
6244 | echo "${ECHO_T}$ac_res" >&6; } | ||
6245 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
6246 | cat >>confdefs.h <<_ACEOF | ||
6247 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6248 | _ACEOF | ||
6249 | |||
6250 | fi | ||
6251 | |||
6252 | done | ||
6253 | |||
6254 | |||
6255 | # Messages for features tested for in target-specific section | ||
6256 | SIA_MSG="no" | ||
6257 | SPC_MSG="no" | ||
6258 | |||
6259 | # Check for some target-specific stuff | ||
6260 | case "$host" in | ||
6261 | *-*-aix*) | ||
6262 | # Some versions of VAC won't allow macro redefinitions at | ||
6263 | # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that | ||
6264 | # particularly with older versions of vac or xlc. | ||
6265 | # It also throws errors about null macro argments, but these are | ||
6266 | # not fatal. | ||
6267 | { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5 | ||
6268 | echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; } | ||
6269 | cat >conftest.$ac_ext <<_ACEOF | ||
6270 | /* confdefs.h. */ | ||
6271 | _ACEOF | ||
6272 | cat confdefs.h >>conftest.$ac_ext | ||
6273 | cat >>conftest.$ac_ext <<_ACEOF | ||
6274 | /* end confdefs.h. */ | ||
6275 | |||
6276 | #define testmacro foo | ||
6277 | #define testmacro bar | ||
6278 | int main(void) { exit(0); } | ||
6279 | |||
6280 | _ACEOF | ||
6281 | rm -f conftest.$ac_objext | ||
6282 | if { (ac_try="$ac_compile" | ||
6283 | case "(($ac_try" in | ||
6284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6285 | *) ac_try_echo=$ac_try;; | ||
6286 | esac | ||
6287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6288 | (eval "$ac_compile") 2>conftest.er1 | ||
6289 | ac_status=$? | ||
6290 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6291 | rm -f conftest.er1 | ||
6292 | cat conftest.err >&5 | ||
6293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6294 | (exit $ac_status); } && { | ||
6295 | test -z "$ac_c_werror_flag" || | ||
6296 | test ! -s conftest.err | ||
6297 | } && test -s conftest.$ac_objext; then | ||
6298 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6299 | echo "${ECHO_T}yes" >&6; } | ||
6300 | else | ||
6301 | echo "$as_me: failed program was:" >&5 | ||
6302 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6303 | |||
6304 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6305 | echo "${ECHO_T}no" >&6; } | ||
6306 | CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`" | ||
6307 | LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`" | ||
6308 | CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
6309 | CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
6310 | |||
6311 | |||
6312 | fi | ||
6313 | |||
6314 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6315 | |||
6316 | { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5 | ||
6317 | echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; } | ||
6318 | if (test -z "$blibpath"); then | ||
6319 | blibpath="/usr/lib:/lib" | ||
6320 | fi | ||
6321 | saved_LDFLAGS="$LDFLAGS" | ||
6322 | if test "$GCC" = "yes"; then | ||
6323 | flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:" | ||
6324 | else | ||
6325 | flags="-blibpath: -Wl,-blibpath: -Wl,-rpath," | ||
6326 | fi | ||
6327 | for tryflags in $flags ;do | ||
6328 | if (test -z "$blibflags"); then | ||
6329 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" | ||
6330 | cat >conftest.$ac_ext <<_ACEOF | ||
6331 | /* confdefs.h. */ | ||
6332 | _ACEOF | ||
6333 | cat confdefs.h >>conftest.$ac_ext | ||
6334 | cat >>conftest.$ac_ext <<_ACEOF | ||
6335 | /* end confdefs.h. */ | ||
6336 | |||
6337 | int | ||
6338 | main () | ||
6339 | { | ||
6340 | |||
6341 | ; | ||
6342 | return 0; | ||
6343 | } | ||
6344 | _ACEOF | ||
6345 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6346 | if { (ac_try="$ac_link" | ||
6347 | case "(($ac_try" in | ||
6348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6349 | *) ac_try_echo=$ac_try;; | ||
6350 | esac | ||
6351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6352 | (eval "$ac_link") 2>conftest.er1 | ||
6353 | ac_status=$? | ||
6354 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6355 | rm -f conftest.er1 | ||
6356 | cat conftest.err >&5 | ||
6357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6358 | (exit $ac_status); } && { | ||
6359 | test -z "$ac_c_werror_flag" || | ||
6360 | test ! -s conftest.err | ||
6361 | } && test -s conftest$ac_exeext && | ||
6362 | $as_test_x conftest$ac_exeext; then | ||
6363 | blibflags=$tryflags | ||
6364 | else | ||
6365 | echo "$as_me: failed program was:" >&5 | ||
6366 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6367 | |||
6368 | |||
6369 | fi | ||
6370 | |||
6371 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6372 | conftest$ac_exeext conftest.$ac_ext | ||
6373 | fi | ||
6374 | done | ||
6375 | if (test -z "$blibflags"); then | ||
6376 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
6377 | echo "${ECHO_T}not found" >&6; } | ||
6378 | { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5 | ||
6379 | echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;} | ||
6380 | { (exit 1); exit 1; }; } | ||
6381 | else | ||
6382 | { echo "$as_me:$LINENO: result: $blibflags" >&5 | ||
6383 | echo "${ECHO_T}$blibflags" >&6; } | ||
6384 | fi | ||
6385 | LDFLAGS="$saved_LDFLAGS" | ||
6386 | { echo "$as_me:$LINENO: checking for authenticate" >&5 | ||
6387 | echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; } | ||
6388 | if test "${ac_cv_func_authenticate+set}" = set; then | ||
6389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6390 | else | ||
6391 | cat >conftest.$ac_ext <<_ACEOF | ||
6392 | /* confdefs.h. */ | ||
6393 | _ACEOF | ||
6394 | cat confdefs.h >>conftest.$ac_ext | ||
6395 | cat >>conftest.$ac_ext <<_ACEOF | ||
6396 | /* end confdefs.h. */ | ||
6397 | /* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate. | ||
6398 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
6399 | #define authenticate innocuous_authenticate | ||
6400 | |||
6401 | /* System header to define __stub macros and hopefully few prototypes, | ||
6402 | which can conflict with char authenticate (); below. | ||
6403 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6404 | <limits.h> exists even on freestanding compilers. */ | ||
6405 | |||
6406 | #ifdef __STDC__ | ||
6407 | # include <limits.h> | ||
6408 | #else | ||
6409 | # include <assert.h> | ||
6410 | #endif | ||
6411 | |||
6412 | #undef authenticate | ||
6413 | |||
6414 | /* Override any GCC internal prototype to avoid an error. | ||
6415 | Use char because int might match the return type of a GCC | ||
6416 | builtin and then its argument prototype would still apply. */ | ||
6417 | #ifdef __cplusplus | ||
6418 | extern "C" | ||
6419 | #endif | ||
6420 | char authenticate (); | ||
6421 | /* The GNU C library defines this for functions which it implements | ||
6422 | to always fail with ENOSYS. Some functions are actually named | ||
6423 | something starting with __ and the normal name is an alias. */ | ||
6424 | #if defined __stub_authenticate || defined __stub___authenticate | ||
6425 | choke me | ||
6426 | #endif | ||
6427 | |||
6428 | int | ||
6429 | main () | ||
6430 | { | ||
6431 | return authenticate (); | ||
6432 | ; | ||
6433 | return 0; | ||
6434 | } | ||
6435 | _ACEOF | ||
6436 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6437 | if { (ac_try="$ac_link" | ||
6438 | case "(($ac_try" in | ||
6439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6440 | *) ac_try_echo=$ac_try;; | ||
6441 | esac | ||
6442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6443 | (eval "$ac_link") 2>conftest.er1 | ||
6444 | ac_status=$? | ||
6445 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6446 | rm -f conftest.er1 | ||
6447 | cat conftest.err >&5 | ||
6448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6449 | (exit $ac_status); } && { | ||
6450 | test -z "$ac_c_werror_flag" || | ||
6451 | test ! -s conftest.err | ||
6452 | } && test -s conftest$ac_exeext && | ||
6453 | $as_test_x conftest$ac_exeext; then | ||
6454 | ac_cv_func_authenticate=yes | ||
6455 | else | ||
6456 | echo "$as_me: failed program was:" >&5 | ||
6457 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6458 | |||
6459 | ac_cv_func_authenticate=no | ||
6460 | fi | ||
6461 | |||
6462 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6463 | conftest$ac_exeext conftest.$ac_ext | ||
6464 | fi | ||
6465 | { echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5 | ||
6466 | echo "${ECHO_T}$ac_cv_func_authenticate" >&6; } | ||
6467 | if test $ac_cv_func_authenticate = yes; then | ||
6468 | |||
6469 | cat >>confdefs.h <<\_ACEOF | ||
6470 | #define WITH_AIXAUTHENTICATE 1 | ||
6471 | _ACEOF | ||
6472 | |||
6473 | else | ||
6474 | { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5 | ||
6475 | echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; } | ||
6476 | if test "${ac_cv_lib_s_authenticate+set}" = set; then | ||
6477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6478 | else | ||
6479 | ac_check_lib_save_LIBS=$LIBS | ||
6480 | LIBS="-ls $LIBS" | ||
6481 | cat >conftest.$ac_ext <<_ACEOF | ||
6482 | /* confdefs.h. */ | ||
6483 | _ACEOF | ||
6484 | cat confdefs.h >>conftest.$ac_ext | ||
6485 | cat >>conftest.$ac_ext <<_ACEOF | ||
6486 | /* end confdefs.h. */ | ||
6487 | |||
6488 | /* Override any GCC internal prototype to avoid an error. | ||
6489 | Use char because int might match the return type of a GCC | ||
6490 | builtin and then its argument prototype would still apply. */ | ||
6491 | #ifdef __cplusplus | ||
6492 | extern "C" | ||
6493 | #endif | ||
6494 | char authenticate (); | ||
6495 | int | ||
6496 | main () | ||
6497 | { | ||
6498 | return authenticate (); | ||
6499 | ; | ||
6500 | return 0; | ||
6501 | } | ||
6502 | _ACEOF | ||
6503 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6504 | if { (ac_try="$ac_link" | ||
6505 | case "(($ac_try" in | ||
6506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6507 | *) ac_try_echo=$ac_try;; | ||
6508 | esac | ||
6509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6510 | (eval "$ac_link") 2>conftest.er1 | ||
6511 | ac_status=$? | ||
6512 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6513 | rm -f conftest.er1 | ||
6514 | cat conftest.err >&5 | ||
6515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6516 | (exit $ac_status); } && { | ||
6517 | test -z "$ac_c_werror_flag" || | ||
6518 | test ! -s conftest.err | ||
6519 | } && test -s conftest$ac_exeext && | ||
6520 | $as_test_x conftest$ac_exeext; then | ||
6521 | ac_cv_lib_s_authenticate=yes | ||
6522 | else | ||
6523 | echo "$as_me: failed program was:" >&5 | ||
6524 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6525 | |||
6526 | ac_cv_lib_s_authenticate=no | ||
6527 | fi | ||
6528 | |||
6529 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6530 | conftest$ac_exeext conftest.$ac_ext | ||
6531 | LIBS=$ac_check_lib_save_LIBS | ||
6532 | fi | ||
6533 | { echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5 | ||
6534 | echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; } | ||
6535 | if test $ac_cv_lib_s_authenticate = yes; then | ||
6536 | cat >>confdefs.h <<\_ACEOF | ||
6537 | #define WITH_AIXAUTHENTICATE 1 | ||
6538 | _ACEOF | ||
6539 | |||
6540 | LIBS="$LIBS -ls" | ||
6541 | |||
6542 | fi | ||
6543 | |||
6544 | |||
6545 | fi | ||
6546 | |||
6547 | { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5 | ||
6548 | echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; } | ||
6549 | if test "${ac_cv_have_decl_authenticate+set}" = set; then | ||
6550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6551 | else | ||
6552 | cat >conftest.$ac_ext <<_ACEOF | ||
6553 | /* confdefs.h. */ | ||
6554 | _ACEOF | ||
6555 | cat confdefs.h >>conftest.$ac_ext | ||
6556 | cat >>conftest.$ac_ext <<_ACEOF | ||
6557 | /* end confdefs.h. */ | ||
6558 | #include <usersec.h> | ||
6559 | |||
6560 | int | ||
6561 | main () | ||
6562 | { | ||
6563 | #ifndef authenticate | ||
6564 | (void) authenticate; | ||
6565 | #endif | ||
6566 | |||
6567 | ; | ||
6568 | return 0; | ||
6569 | } | ||
6570 | _ACEOF | ||
6571 | rm -f conftest.$ac_objext | ||
6572 | if { (ac_try="$ac_compile" | ||
6573 | case "(($ac_try" in | ||
6574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6575 | *) ac_try_echo=$ac_try;; | ||
6576 | esac | ||
6577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6578 | (eval "$ac_compile") 2>conftest.er1 | ||
6579 | ac_status=$? | ||
6580 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6581 | rm -f conftest.er1 | ||
6582 | cat conftest.err >&5 | ||
6583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6584 | (exit $ac_status); } && { | ||
6585 | test -z "$ac_c_werror_flag" || | ||
6586 | test ! -s conftest.err | ||
6587 | } && test -s conftest.$ac_objext; then | ||
6588 | ac_cv_have_decl_authenticate=yes | ||
6589 | else | ||
6590 | echo "$as_me: failed program was:" >&5 | ||
6591 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6592 | |||
6593 | ac_cv_have_decl_authenticate=no | ||
6594 | fi | ||
6595 | |||
6596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6597 | fi | ||
6598 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5 | ||
6599 | echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; } | ||
6600 | if test $ac_cv_have_decl_authenticate = yes; then | ||
6601 | |||
6602 | cat >>confdefs.h <<_ACEOF | ||
6603 | #define HAVE_DECL_AUTHENTICATE 1 | ||
6604 | _ACEOF | ||
6605 | |||
6606 | |||
6607 | else | ||
6608 | cat >>confdefs.h <<_ACEOF | ||
6609 | #define HAVE_DECL_AUTHENTICATE 0 | ||
6610 | _ACEOF | ||
6611 | |||
6612 | |||
6613 | fi | ||
6614 | { echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5 | ||
6615 | echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; } | ||
6616 | if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then | ||
6617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6618 | else | ||
6619 | cat >conftest.$ac_ext <<_ACEOF | ||
6620 | /* confdefs.h. */ | ||
6621 | _ACEOF | ||
6622 | cat confdefs.h >>conftest.$ac_ext | ||
6623 | cat >>conftest.$ac_ext <<_ACEOF | ||
6624 | /* end confdefs.h. */ | ||
6625 | #include <usersec.h> | ||
6626 | |||
6627 | int | ||
6628 | main () | ||
6629 | { | ||
6630 | #ifndef loginrestrictions | ||
6631 | (void) loginrestrictions; | ||
6632 | #endif | ||
6633 | |||
6634 | ; | ||
6635 | return 0; | ||
6636 | } | ||
6637 | _ACEOF | ||
6638 | rm -f conftest.$ac_objext | ||
6639 | if { (ac_try="$ac_compile" | ||
6640 | case "(($ac_try" in | ||
6641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6642 | *) ac_try_echo=$ac_try;; | ||
6643 | esac | ||
6644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6645 | (eval "$ac_compile") 2>conftest.er1 | ||
6646 | ac_status=$? | ||
6647 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6648 | rm -f conftest.er1 | ||
6649 | cat conftest.err >&5 | ||
6650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6651 | (exit $ac_status); } && { | ||
6652 | test -z "$ac_c_werror_flag" || | ||
6653 | test ! -s conftest.err | ||
6654 | } && test -s conftest.$ac_objext; then | ||
6655 | ac_cv_have_decl_loginrestrictions=yes | ||
6656 | else | ||
6657 | echo "$as_me: failed program was:" >&5 | ||
6658 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6659 | |||
6660 | ac_cv_have_decl_loginrestrictions=no | ||
6661 | fi | ||
6662 | |||
6663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6664 | fi | ||
6665 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5 | ||
6666 | echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; } | ||
6667 | if test $ac_cv_have_decl_loginrestrictions = yes; then | ||
6668 | |||
6669 | cat >>confdefs.h <<_ACEOF | ||
6670 | #define HAVE_DECL_LOGINRESTRICTIONS 1 | ||
6671 | _ACEOF | ||
6672 | |||
6673 | |||
6674 | else | ||
6675 | cat >>confdefs.h <<_ACEOF | ||
6676 | #define HAVE_DECL_LOGINRESTRICTIONS 0 | ||
6677 | _ACEOF | ||
6678 | |||
6679 | |||
6680 | fi | ||
6681 | { echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5 | ||
6682 | echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; } | ||
6683 | if test "${ac_cv_have_decl_loginsuccess+set}" = set; then | ||
6684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6685 | else | ||
6686 | cat >conftest.$ac_ext <<_ACEOF | ||
6687 | /* confdefs.h. */ | ||
6688 | _ACEOF | ||
6689 | cat confdefs.h >>conftest.$ac_ext | ||
6690 | cat >>conftest.$ac_ext <<_ACEOF | ||
6691 | /* end confdefs.h. */ | ||
6692 | #include <usersec.h> | ||
6693 | |||
6694 | int | ||
6695 | main () | ||
6696 | { | ||
6697 | #ifndef loginsuccess | ||
6698 | (void) loginsuccess; | ||
6699 | #endif | ||
6700 | |||
6701 | ; | ||
6702 | return 0; | ||
6703 | } | ||
6704 | _ACEOF | ||
6705 | rm -f conftest.$ac_objext | ||
6706 | if { (ac_try="$ac_compile" | ||
6707 | case "(($ac_try" in | ||
6708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6709 | *) ac_try_echo=$ac_try;; | ||
6710 | esac | ||
6711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6712 | (eval "$ac_compile") 2>conftest.er1 | ||
6713 | ac_status=$? | ||
6714 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6715 | rm -f conftest.er1 | ||
6716 | cat conftest.err >&5 | ||
6717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6718 | (exit $ac_status); } && { | ||
6719 | test -z "$ac_c_werror_flag" || | ||
6720 | test ! -s conftest.err | ||
6721 | } && test -s conftest.$ac_objext; then | ||
6722 | ac_cv_have_decl_loginsuccess=yes | ||
6723 | else | ||
6724 | echo "$as_me: failed program was:" >&5 | ||
6725 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6726 | |||
6727 | ac_cv_have_decl_loginsuccess=no | ||
6728 | fi | ||
6729 | |||
6730 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6731 | fi | ||
6732 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5 | ||
6733 | echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; } | ||
6734 | if test $ac_cv_have_decl_loginsuccess = yes; then | ||
6735 | |||
6736 | cat >>confdefs.h <<_ACEOF | ||
6737 | #define HAVE_DECL_LOGINSUCCESS 1 | ||
6738 | _ACEOF | ||
6739 | |||
6740 | |||
6741 | else | ||
6742 | cat >>confdefs.h <<_ACEOF | ||
6743 | #define HAVE_DECL_LOGINSUCCESS 0 | ||
6744 | _ACEOF | ||
6745 | |||
6746 | |||
6747 | fi | ||
6748 | { echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5 | ||
6749 | echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; } | ||
6750 | if test "${ac_cv_have_decl_passwdexpired+set}" = set; then | ||
6751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6752 | else | ||
6753 | cat >conftest.$ac_ext <<_ACEOF | ||
6754 | /* confdefs.h. */ | ||
6755 | _ACEOF | ||
6756 | cat confdefs.h >>conftest.$ac_ext | ||
6757 | cat >>conftest.$ac_ext <<_ACEOF | ||
6758 | /* end confdefs.h. */ | ||
6759 | #include <usersec.h> | ||
6760 | |||
6761 | int | ||
6762 | main () | ||
6763 | { | ||
6764 | #ifndef passwdexpired | ||
6765 | (void) passwdexpired; | ||
6766 | #endif | ||
6767 | |||
6768 | ; | ||
6769 | return 0; | ||
6770 | } | ||
6771 | _ACEOF | ||
6772 | rm -f conftest.$ac_objext | ||
6773 | if { (ac_try="$ac_compile" | ||
6774 | case "(($ac_try" in | ||
6775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6776 | *) ac_try_echo=$ac_try;; | ||
6777 | esac | ||
6778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6779 | (eval "$ac_compile") 2>conftest.er1 | ||
6780 | ac_status=$? | ||
6781 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6782 | rm -f conftest.er1 | ||
6783 | cat conftest.err >&5 | ||
6784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6785 | (exit $ac_status); } && { | ||
6786 | test -z "$ac_c_werror_flag" || | ||
6787 | test ! -s conftest.err | ||
6788 | } && test -s conftest.$ac_objext; then | ||
6789 | ac_cv_have_decl_passwdexpired=yes | ||
6790 | else | ||
6791 | echo "$as_me: failed program was:" >&5 | ||
6792 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6793 | |||
6794 | ac_cv_have_decl_passwdexpired=no | ||
6795 | fi | ||
6796 | |||
6797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6798 | fi | ||
6799 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5 | ||
6800 | echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; } | ||
6801 | if test $ac_cv_have_decl_passwdexpired = yes; then | ||
6802 | |||
6803 | cat >>confdefs.h <<_ACEOF | ||
6804 | #define HAVE_DECL_PASSWDEXPIRED 1 | ||
6805 | _ACEOF | ||
6806 | |||
6807 | |||
6808 | else | ||
6809 | cat >>confdefs.h <<_ACEOF | ||
6810 | #define HAVE_DECL_PASSWDEXPIRED 0 | ||
6811 | _ACEOF | ||
6812 | |||
6813 | |||
6814 | fi | ||
6815 | { echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5 | ||
6816 | echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; } | ||
6817 | if test "${ac_cv_have_decl_setauthdb+set}" = set; then | ||
6818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6819 | else | ||
6820 | cat >conftest.$ac_ext <<_ACEOF | ||
6821 | /* confdefs.h. */ | ||
6822 | _ACEOF | ||
6823 | cat confdefs.h >>conftest.$ac_ext | ||
6824 | cat >>conftest.$ac_ext <<_ACEOF | ||
6825 | /* end confdefs.h. */ | ||
6826 | #include <usersec.h> | ||
6827 | |||
6828 | int | ||
6829 | main () | ||
6830 | { | ||
6831 | #ifndef setauthdb | ||
6832 | (void) setauthdb; | ||
6833 | #endif | ||
6834 | |||
6835 | ; | ||
6836 | return 0; | ||
6837 | } | ||
6838 | _ACEOF | ||
6839 | rm -f conftest.$ac_objext | ||
6840 | if { (ac_try="$ac_compile" | ||
6841 | case "(($ac_try" in | ||
6842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6843 | *) ac_try_echo=$ac_try;; | ||
6844 | esac | ||
6845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6846 | (eval "$ac_compile") 2>conftest.er1 | ||
6847 | ac_status=$? | ||
6848 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6849 | rm -f conftest.er1 | ||
6850 | cat conftest.err >&5 | ||
6851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6852 | (exit $ac_status); } && { | ||
6853 | test -z "$ac_c_werror_flag" || | ||
6854 | test ! -s conftest.err | ||
6855 | } && test -s conftest.$ac_objext; then | ||
6856 | ac_cv_have_decl_setauthdb=yes | ||
6857 | else | ||
6858 | echo "$as_me: failed program was:" >&5 | ||
6859 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6860 | |||
6861 | ac_cv_have_decl_setauthdb=no | ||
6862 | fi | ||
6863 | |||
6864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6865 | fi | ||
6866 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5 | ||
6867 | echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; } | ||
6868 | if test $ac_cv_have_decl_setauthdb = yes; then | ||
6869 | |||
6870 | cat >>confdefs.h <<_ACEOF | ||
6871 | #define HAVE_DECL_SETAUTHDB 1 | ||
6872 | _ACEOF | ||
6873 | |||
6874 | |||
6875 | else | ||
6876 | cat >>confdefs.h <<_ACEOF | ||
6877 | #define HAVE_DECL_SETAUTHDB 0 | ||
6878 | _ACEOF | ||
6879 | |||
6880 | |||
6881 | fi | ||
6882 | |||
6883 | |||
6884 | { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5 | ||
6885 | echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; } | ||
6886 | if test "${ac_cv_have_decl_loginfailed+set}" = set; then | ||
6887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6888 | else | ||
6889 | cat >conftest.$ac_ext <<_ACEOF | ||
6890 | /* confdefs.h. */ | ||
6891 | _ACEOF | ||
6892 | cat confdefs.h >>conftest.$ac_ext | ||
6893 | cat >>conftest.$ac_ext <<_ACEOF | ||
6894 | /* end confdefs.h. */ | ||
6895 | #include <usersec.h> | ||
6896 | |||
6897 | |||
6898 | int | ||
6899 | main () | ||
6900 | { | ||
6901 | #ifndef loginfailed | ||
6902 | (void) loginfailed; | ||
6903 | #endif | ||
6904 | |||
6905 | ; | ||
6906 | return 0; | ||
6907 | } | ||
6908 | _ACEOF | ||
6909 | rm -f conftest.$ac_objext | ||
6910 | if { (ac_try="$ac_compile" | ||
6911 | case "(($ac_try" in | ||
6912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6913 | *) ac_try_echo=$ac_try;; | ||
6914 | esac | ||
6915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6916 | (eval "$ac_compile") 2>conftest.er1 | ||
6917 | ac_status=$? | ||
6918 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6919 | rm -f conftest.er1 | ||
6920 | cat conftest.err >&5 | ||
6921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6922 | (exit $ac_status); } && { | ||
6923 | test -z "$ac_c_werror_flag" || | ||
6924 | test ! -s conftest.err | ||
6925 | } && test -s conftest.$ac_objext; then | ||
6926 | ac_cv_have_decl_loginfailed=yes | ||
6927 | else | ||
6928 | echo "$as_me: failed program was:" >&5 | ||
6929 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6930 | |||
6931 | ac_cv_have_decl_loginfailed=no | ||
6932 | fi | ||
6933 | |||
6934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6935 | fi | ||
6936 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5 | ||
6937 | echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; } | ||
6938 | if test $ac_cv_have_decl_loginfailed = yes; then | ||
6939 | |||
6940 | cat >>confdefs.h <<_ACEOF | ||
6941 | #define HAVE_DECL_LOGINFAILED 1 | ||
6942 | _ACEOF | ||
6943 | |||
6944 | { echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5 | ||
6945 | echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; } | ||
6946 | cat >conftest.$ac_ext <<_ACEOF | ||
6947 | /* confdefs.h. */ | ||
6948 | _ACEOF | ||
6949 | cat confdefs.h >>conftest.$ac_ext | ||
6950 | cat >>conftest.$ac_ext <<_ACEOF | ||
6951 | /* end confdefs.h. */ | ||
6952 | #include <usersec.h> | ||
6953 | int | ||
6954 | main () | ||
6955 | { | ||
6956 | (void)loginfailed("user","host","tty",0); | ||
6957 | ; | ||
6958 | return 0; | ||
6959 | } | ||
6960 | _ACEOF | ||
6961 | rm -f conftest.$ac_objext | ||
6962 | if { (ac_try="$ac_compile" | ||
6963 | case "(($ac_try" in | ||
6964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6965 | *) ac_try_echo=$ac_try;; | ||
6966 | esac | ||
6967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6968 | (eval "$ac_compile") 2>conftest.er1 | ||
6969 | ac_status=$? | ||
6970 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6971 | rm -f conftest.er1 | ||
6972 | cat conftest.err >&5 | ||
6973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6974 | (exit $ac_status); } && { | ||
6975 | test -z "$ac_c_werror_flag" || | ||
6976 | test ! -s conftest.err | ||
6977 | } && test -s conftest.$ac_objext; then | ||
6978 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
6979 | echo "${ECHO_T}yes" >&6; } | ||
6980 | |||
6981 | cat >>confdefs.h <<\_ACEOF | ||
6982 | #define AIX_LOGINFAILED_4ARG 1 | ||
6983 | _ACEOF | ||
6984 | |||
6985 | else | ||
6986 | echo "$as_me: failed program was:" >&5 | ||
6987 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6988 | |||
6989 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6990 | echo "${ECHO_T}no" >&6; } | ||
6991 | |||
6992 | fi | ||
6993 | |||
6994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6995 | else | ||
6996 | cat >>confdefs.h <<_ACEOF | ||
6997 | #define HAVE_DECL_LOGINFAILED 0 | ||
6998 | _ACEOF | ||
6999 | |||
7000 | |||
7001 | fi | ||
7002 | |||
7003 | |||
7004 | |||
7005 | |||
7006 | for ac_func in getgrset setauthdb | ||
7007 | do | ||
7008 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7009 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7010 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
7011 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7013 | else | ||
7014 | cat >conftest.$ac_ext <<_ACEOF | ||
7015 | /* confdefs.h. */ | ||
7016 | _ACEOF | ||
7017 | cat confdefs.h >>conftest.$ac_ext | ||
7018 | cat >>conftest.$ac_ext <<_ACEOF | ||
7019 | /* end confdefs.h. */ | ||
7020 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
7021 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
7022 | #define $ac_func innocuous_$ac_func | ||
7023 | |||
7024 | /* System header to define __stub macros and hopefully few prototypes, | ||
7025 | which can conflict with char $ac_func (); below. | ||
7026 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
7027 | <limits.h> exists even on freestanding compilers. */ | ||
7028 | |||
7029 | #ifdef __STDC__ | ||
7030 | # include <limits.h> | ||
7031 | #else | ||
7032 | # include <assert.h> | ||
7033 | #endif | ||
7034 | |||
7035 | #undef $ac_func | ||
7036 | |||
7037 | /* Override any GCC internal prototype to avoid an error. | ||
7038 | Use char because int might match the return type of a GCC | ||
7039 | builtin and then its argument prototype would still apply. */ | ||
7040 | #ifdef __cplusplus | ||
7041 | extern "C" | ||
7042 | #endif | ||
7043 | char $ac_func (); | ||
7044 | /* The GNU C library defines this for functions which it implements | ||
7045 | to always fail with ENOSYS. Some functions are actually named | ||
7046 | something starting with __ and the normal name is an alias. */ | ||
7047 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
7048 | choke me | ||
7049 | #endif | ||
7050 | |||
7051 | int | ||
7052 | main () | ||
7053 | { | ||
7054 | return $ac_func (); | ||
7055 | ; | ||
7056 | return 0; | ||
7057 | } | ||
7058 | _ACEOF | ||
7059 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7060 | if { (ac_try="$ac_link" | ||
7061 | case "(($ac_try" in | ||
7062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7063 | *) ac_try_echo=$ac_try;; | ||
7064 | esac | ||
7065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7066 | (eval "$ac_link") 2>conftest.er1 | ||
7067 | ac_status=$? | ||
7068 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7069 | rm -f conftest.er1 | ||
7070 | cat conftest.err >&5 | ||
7071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7072 | (exit $ac_status); } && { | ||
7073 | test -z "$ac_c_werror_flag" || | ||
7074 | test ! -s conftest.err | ||
7075 | } && test -s conftest$ac_exeext && | ||
7076 | $as_test_x conftest$ac_exeext; then | ||
7077 | eval "$as_ac_var=yes" | ||
7078 | else | ||
7079 | echo "$as_me: failed program was:" >&5 | ||
7080 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7081 | |||
7082 | eval "$as_ac_var=no" | ||
7083 | fi | ||
7084 | |||
7085 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7086 | conftest$ac_exeext conftest.$ac_ext | ||
7087 | fi | ||
7088 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
7089 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7090 | echo "${ECHO_T}$ac_res" >&6; } | ||
7091 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
7092 | cat >>confdefs.h <<_ACEOF | ||
7093 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7094 | _ACEOF | ||
7095 | |||
7096 | fi | ||
7097 | done | ||
7098 | |||
7099 | { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5 | ||
7100 | echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; } | ||
7101 | if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then | ||
7102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7103 | else | ||
7104 | cat >conftest.$ac_ext <<_ACEOF | ||
7105 | /* confdefs.h. */ | ||
7106 | _ACEOF | ||
7107 | cat confdefs.h >>conftest.$ac_ext | ||
7108 | cat >>conftest.$ac_ext <<_ACEOF | ||
7109 | /* end confdefs.h. */ | ||
7110 | #include <limits.h> | ||
7111 | #include <fcntl.h> | ||
7112 | |||
7113 | |||
7114 | int | ||
7115 | main () | ||
7116 | { | ||
7117 | #ifndef F_CLOSEM | ||
7118 | (void) F_CLOSEM; | ||
7119 | #endif | ||
7120 | |||
7121 | ; | ||
7122 | return 0; | ||
7123 | } | ||
7124 | _ACEOF | ||
7125 | rm -f conftest.$ac_objext | ||
7126 | if { (ac_try="$ac_compile" | ||
7127 | case "(($ac_try" in | ||
7128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7129 | *) ac_try_echo=$ac_try;; | ||
7130 | esac | ||
7131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7132 | (eval "$ac_compile") 2>conftest.er1 | ||
7133 | ac_status=$? | ||
7134 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7135 | rm -f conftest.er1 | ||
7136 | cat conftest.err >&5 | ||
7137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7138 | (exit $ac_status); } && { | ||
7139 | test -z "$ac_c_werror_flag" || | ||
7140 | test ! -s conftest.err | ||
7141 | } && test -s conftest.$ac_objext; then | ||
7142 | ac_cv_have_decl_F_CLOSEM=yes | ||
7143 | else | ||
7144 | echo "$as_me: failed program was:" >&5 | ||
7145 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7146 | |||
7147 | ac_cv_have_decl_F_CLOSEM=no | ||
7148 | fi | ||
7149 | |||
7150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7151 | fi | ||
7152 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5 | ||
7153 | echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; } | ||
7154 | if test $ac_cv_have_decl_F_CLOSEM = yes; then | ||
7155 | |||
7156 | cat >>confdefs.h <<\_ACEOF | ||
7157 | #define HAVE_FCNTL_CLOSEM 1 | ||
7158 | _ACEOF | ||
7159 | |||
7160 | fi | ||
7161 | |||
7162 | check_for_aix_broken_getaddrinfo=1 | ||
7163 | |||
7164 | cat >>confdefs.h <<\_ACEOF | ||
7165 | #define BROKEN_REALPATH 1 | ||
7166 | _ACEOF | ||
7167 | |||
7168 | |||
7169 | cat >>confdefs.h <<\_ACEOF | ||
7170 | #define SETEUID_BREAKS_SETUID 1 | ||
7171 | _ACEOF | ||
7172 | |||
7173 | |||
7174 | cat >>confdefs.h <<\_ACEOF | ||
7175 | #define BROKEN_SETREUID 1 | ||
7176 | _ACEOF | ||
7177 | |||
7178 | |||
7179 | cat >>confdefs.h <<\_ACEOF | ||
7180 | #define BROKEN_SETREGID 1 | ||
7181 | _ACEOF | ||
7182 | |||
7183 | |||
7184 | cat >>confdefs.h <<\_ACEOF | ||
7185 | #define DISABLE_LASTLOG 1 | ||
7186 | _ACEOF | ||
7187 | |||
7188 | |||
7189 | cat >>confdefs.h <<\_ACEOF | ||
7190 | #define LOGIN_NEEDS_UTMPX 1 | ||
7191 | _ACEOF | ||
7192 | |||
7193 | |||
7194 | cat >>confdefs.h <<\_ACEOF | ||
7195 | #define SPT_TYPE SPT_REUSEARGV | ||
7196 | _ACEOF | ||
7197 | |||
7198 | |||
7199 | cat >>confdefs.h <<\_ACEOF | ||
7200 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 | ||
7201 | _ACEOF | ||
7202 | |||
7203 | |||
7204 | cat >>confdefs.h <<\_ACEOF | ||
7205 | #define PTY_ZEROREAD 1 | ||
7206 | _ACEOF | ||
7207 | |||
7208 | ;; | ||
7209 | *-*-cygwin*) | ||
7210 | check_for_libcrypt_later=1 | ||
7211 | LIBS="$LIBS /usr/lib/textreadmode.o" | ||
7212 | |||
7213 | cat >>confdefs.h <<\_ACEOF | ||
7214 | #define HAVE_CYGWIN 1 | ||
7215 | _ACEOF | ||
7216 | |||
7217 | |||
7218 | cat >>confdefs.h <<\_ACEOF | ||
7219 | #define USE_PIPES 1 | ||
7220 | _ACEOF | ||
7221 | |||
7222 | |||
7223 | cat >>confdefs.h <<\_ACEOF | ||
7224 | #define DISABLE_SHADOW 1 | ||
7225 | _ACEOF | ||
7226 | |||
7227 | |||
7228 | cat >>confdefs.h <<\_ACEOF | ||
7229 | #define NO_X11_UNIX_SOCKETS 1 | ||
7230 | _ACEOF | ||
7231 | |||
7232 | |||
7233 | cat >>confdefs.h <<\_ACEOF | ||
7234 | #define NO_IPPORT_RESERVED_CONCEPT 1 | ||
7235 | _ACEOF | ||
7236 | |||
7237 | |||
7238 | cat >>confdefs.h <<\_ACEOF | ||
7239 | #define DISABLE_FD_PASSING 1 | ||
7240 | _ACEOF | ||
7241 | |||
7242 | |||
7243 | cat >>confdefs.h <<\_ACEOF | ||
7244 | #define SSH_IOBUFSZ 65535 | ||
7245 | _ACEOF | ||
7246 | |||
7247 | ;; | ||
7248 | *-*-dgux*) | ||
7249 | |||
7250 | cat >>confdefs.h <<\_ACEOF | ||
7251 | #define IP_TOS_IS_BROKEN 1 | ||
7252 | _ACEOF | ||
7253 | |||
7254 | cat >>confdefs.h <<\_ACEOF | ||
7255 | #define SETEUID_BREAKS_SETUID 1 | ||
7256 | _ACEOF | ||
7257 | |||
7258 | cat >>confdefs.h <<\_ACEOF | ||
7259 | #define BROKEN_SETREUID 1 | ||
7260 | _ACEOF | ||
7261 | |||
7262 | cat >>confdefs.h <<\_ACEOF | ||
7263 | #define BROKEN_SETREGID 1 | ||
7264 | _ACEOF | ||
7265 | |||
7266 | ;; | ||
7267 | *-*-darwin*) | ||
7268 | { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5 | ||
7269 | echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; } | ||
7270 | if test "$cross_compiling" = yes; then | ||
7271 | { echo "$as_me:$LINENO: result: assume it is working" >&5 | ||
7272 | echo "${ECHO_T}assume it is working" >&6; } | ||
7273 | else | ||
7274 | cat >conftest.$ac_ext <<_ACEOF | ||
7275 | /* confdefs.h. */ | ||
7276 | _ACEOF | ||
7277 | cat confdefs.h >>conftest.$ac_ext | ||
7278 | cat >>conftest.$ac_ext <<_ACEOF | ||
7279 | /* end confdefs.h. */ | ||
7280 | #include <mach-o/dyld.h> | ||
7281 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
7282 | exit(0); | ||
7283 | else | ||
7284 | exit(1); | ||
7285 | } | ||
7286 | _ACEOF | ||
7287 | rm -f conftest$ac_exeext | ||
7288 | if { (ac_try="$ac_link" | ||
7289 | case "(($ac_try" in | ||
7290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7291 | *) ac_try_echo=$ac_try;; | ||
7292 | esac | ||
7293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7294 | (eval "$ac_link") 2>&5 | ||
7295 | ac_status=$? | ||
7296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7297 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7298 | { (case "(($ac_try" in | ||
7299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7300 | *) ac_try_echo=$ac_try;; | ||
7301 | esac | ||
7302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7303 | (eval "$ac_try") 2>&5 | ||
7304 | ac_status=$? | ||
7305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7306 | (exit $ac_status); }; }; then | ||
7307 | { echo "$as_me:$LINENO: result: working" >&5 | ||
7308 | echo "${ECHO_T}working" >&6; } | ||
7309 | else | ||
7310 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7311 | echo "$as_me: failed program was:" >&5 | ||
7312 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7313 | |||
7314 | ( exit $ac_status ) | ||
7315 | { echo "$as_me:$LINENO: result: buggy" >&5 | ||
7316 | echo "${ECHO_T}buggy" >&6; } | ||
7317 | |||
7318 | cat >>confdefs.h <<\_ACEOF | ||
7319 | #define BROKEN_GETADDRINFO 1 | ||
7320 | _ACEOF | ||
7321 | |||
7322 | fi | ||
7323 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7324 | fi | ||
7325 | |||
7326 | |||
7327 | cat >>confdefs.h <<\_ACEOF | ||
7328 | #define SETEUID_BREAKS_SETUID 1 | ||
7329 | _ACEOF | ||
7330 | |||
7331 | cat >>confdefs.h <<\_ACEOF | ||
7332 | #define BROKEN_SETREUID 1 | ||
7333 | _ACEOF | ||
7334 | |||
7335 | cat >>confdefs.h <<\_ACEOF | ||
7336 | #define BROKEN_SETREGID 1 | ||
7337 | _ACEOF | ||
7338 | |||
7339 | |||
7340 | cat >>confdefs.h <<\_ACEOF | ||
7341 | #define BROKEN_GLOB 1 | ||
7342 | _ACEOF | ||
7343 | |||
7344 | |||
7345 | cat >>confdefs.h <<_ACEOF | ||
7346 | #define BIND_8_COMPAT 1 | ||
7347 | _ACEOF | ||
7348 | |||
7349 | |||
7350 | cat >>confdefs.h <<\_ACEOF | ||
7351 | #define SSH_TUN_FREEBSD 1 | ||
7352 | _ACEOF | ||
7353 | |||
7354 | |||
7355 | cat >>confdefs.h <<\_ACEOF | ||
7356 | #define SSH_TUN_COMPAT_AF 1 | ||
7357 | _ACEOF | ||
7358 | |||
7359 | |||
7360 | cat >>confdefs.h <<\_ACEOF | ||
7361 | #define SSH_TUN_PREPEND_AF 1 | ||
7362 | _ACEOF | ||
7363 | |||
7364 | |||
7365 | { echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5 | ||
7366 | echo $ECHO_N "checking whether AU_IPv4 is declared... $ECHO_C" >&6; } | ||
7367 | if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then | ||
7368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7369 | else | ||
7370 | cat >conftest.$ac_ext <<_ACEOF | ||
7371 | /* confdefs.h. */ | ||
7372 | _ACEOF | ||
7373 | cat confdefs.h >>conftest.$ac_ext | ||
7374 | cat >>conftest.$ac_ext <<_ACEOF | ||
7375 | /* end confdefs.h. */ | ||
7376 | $ac_includes_default | ||
7377 | int | ||
7378 | main () | ||
7379 | { | ||
7380 | #ifndef AU_IPv4 | ||
7381 | (void) AU_IPv4; | ||
7382 | #endif | ||
7383 | |||
7384 | ; | ||
7385 | return 0; | ||
7386 | } | ||
7387 | _ACEOF | ||
7388 | rm -f conftest.$ac_objext | ||
7389 | if { (ac_try="$ac_compile" | ||
7390 | case "(($ac_try" in | ||
7391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7392 | *) ac_try_echo=$ac_try;; | ||
7393 | esac | ||
7394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7395 | (eval "$ac_compile") 2>conftest.er1 | ||
7396 | ac_status=$? | ||
7397 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7398 | rm -f conftest.er1 | ||
7399 | cat conftest.err >&5 | ||
7400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7401 | (exit $ac_status); } && { | ||
7402 | test -z "$ac_c_werror_flag" || | ||
7403 | test ! -s conftest.err | ||
7404 | } && test -s conftest.$ac_objext; then | ||
7405 | ac_cv_have_decl_AU_IPv4=yes | ||
7406 | else | ||
7407 | echo "$as_me: failed program was:" >&5 | ||
7408 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7409 | |||
7410 | ac_cv_have_decl_AU_IPv4=no | ||
7411 | fi | ||
7412 | |||
7413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7414 | fi | ||
7415 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5 | ||
7416 | echo "${ECHO_T}$ac_cv_have_decl_AU_IPv4" >&6; } | ||
7417 | if test $ac_cv_have_decl_AU_IPv4 = yes; then | ||
7418 | : | ||
7419 | else | ||
7420 | |||
7421 | cat >>confdefs.h <<\_ACEOF | ||
7422 | #define AU_IPv4 0 | ||
7423 | _ACEOF | ||
7424 | |||
7425 | #include <bsm/audit.h> | ||
7426 | |||
7427 | cat >>confdefs.h <<\_ACEOF | ||
7428 | #define LASTLOG_WRITE_PUTUTXLINE 1 | ||
7429 | _ACEOF | ||
7430 | |||
7431 | |||
7432 | fi | ||
7433 | |||
7434 | ;; | ||
7435 | *-*-dragonfly*) | ||
7436 | SSHDLIBS="$SSHDLIBS -lcrypt" | ||
7437 | ;; | ||
7438 | *-*-hpux*) | ||
7439 | # first we define all of the options common to all HP-UX releases | ||
7440 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
7441 | IPADDR_IN_DISPLAY=yes | ||
7442 | cat >>confdefs.h <<\_ACEOF | ||
7443 | #define USE_PIPES 1 | ||
7444 | _ACEOF | ||
7445 | |||
7446 | |||
7447 | cat >>confdefs.h <<\_ACEOF | ||
7448 | #define LOGIN_NO_ENDOPT 1 | ||
7449 | _ACEOF | ||
7450 | |||
7451 | cat >>confdefs.h <<\_ACEOF | ||
7452 | #define LOGIN_NEEDS_UTMPX 1 | ||
7453 | _ACEOF | ||
7454 | |||
7455 | |||
7456 | cat >>confdefs.h <<\_ACEOF | ||
7457 | #define LOCKED_PASSWD_STRING "*" | ||
7458 | _ACEOF | ||
7459 | |||
7460 | cat >>confdefs.h <<\_ACEOF | ||
7461 | #define SPT_TYPE SPT_PSTAT | ||
7462 | _ACEOF | ||
7463 | |||
7464 | MAIL="/var/mail/username" | ||
7465 | LIBS="$LIBS -lsec" | ||
7466 | |||
7467 | { echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
7468 | echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; } | ||
7469 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
7470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7471 | else | ||
7472 | ac_check_lib_save_LIBS=$LIBS | ||
7473 | LIBS="-lxnet $LIBS" | ||
7474 | cat >conftest.$ac_ext <<_ACEOF | ||
7475 | /* confdefs.h. */ | ||
7476 | _ACEOF | ||
7477 | cat confdefs.h >>conftest.$ac_ext | ||
7478 | cat >>conftest.$ac_ext <<_ACEOF | ||
7479 | /* end confdefs.h. */ | ||
7480 | |||
7481 | /* Override any GCC internal prototype to avoid an error. | ||
7482 | Use char because int might match the return type of a GCC | ||
7483 | builtin and then its argument prototype would still apply. */ | ||
7484 | #ifdef __cplusplus | ||
7485 | extern "C" | ||
7486 | #endif | ||
7487 | char t_error (); | ||
7488 | int | ||
7489 | main () | ||
7490 | { | ||
7491 | return t_error (); | ||
7492 | ; | ||
7493 | return 0; | ||
7494 | } | ||
7495 | _ACEOF | ||
7496 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7497 | if { (ac_try="$ac_link" | ||
7498 | case "(($ac_try" in | ||
7499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7500 | *) ac_try_echo=$ac_try;; | ||
7501 | esac | ||
7502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7503 | (eval "$ac_link") 2>conftest.er1 | ||
7504 | ac_status=$? | ||
7505 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7506 | rm -f conftest.er1 | ||
7507 | cat conftest.err >&5 | ||
7508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7509 | (exit $ac_status); } && { | ||
7510 | test -z "$ac_c_werror_flag" || | ||
7511 | test ! -s conftest.err | ||
7512 | } && test -s conftest$ac_exeext && | ||
7513 | $as_test_x conftest$ac_exeext; then | ||
7514 | ac_cv_lib_xnet_t_error=yes | ||
7515 | else | ||
7516 | echo "$as_me: failed program was:" >&5 | ||
7517 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7518 | |||
7519 | ac_cv_lib_xnet_t_error=no | ||
7520 | fi | ||
7521 | |||
7522 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7523 | conftest$ac_exeext conftest.$ac_ext | ||
7524 | LIBS=$ac_check_lib_save_LIBS | ||
7525 | fi | ||
7526 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
7527 | echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; } | ||
7528 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
7529 | cat >>confdefs.h <<_ACEOF | ||
7530 | #define HAVE_LIBXNET 1 | ||
7531 | _ACEOF | ||
7532 | |||
7533 | LIBS="-lxnet $LIBS" | ||
7534 | |||
7535 | else | ||
7536 | { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
7537 | echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
7538 | { (exit 1); exit 1; }; } | ||
7539 | fi | ||
7540 | |||
7541 | |||
7542 | # next, we define all of the options specific to major releases | ||
7543 | case "$host" in | ||
7544 | *-*-hpux10*) | ||
7545 | if test -z "$GCC"; then | ||
7546 | CFLAGS="$CFLAGS -Ae" | ||
7547 | fi | ||
7548 | ;; | ||
7549 | *-*-hpux11*) | ||
7550 | |||
7551 | cat >>confdefs.h <<\_ACEOF | ||
7552 | #define PAM_SUN_CODEBASE 1 | ||
7553 | _ACEOF | ||
7554 | |||
7555 | |||
7556 | cat >>confdefs.h <<\_ACEOF | ||
7557 | #define DISABLE_UTMP 1 | ||
7558 | _ACEOF | ||
7559 | |||
7560 | |||
7561 | cat >>confdefs.h <<\_ACEOF | ||
7562 | #define USE_BTMP 1 | ||
7563 | _ACEOF | ||
7564 | |||
7565 | check_for_hpux_broken_getaddrinfo=1 | ||
7566 | check_for_conflicting_getspnam=1 | ||
7567 | ;; | ||
7568 | esac | ||
7569 | |||
7570 | # lastly, we define options specific to minor releases | ||
7571 | case "$host" in | ||
7572 | *-*-hpux10.26) | ||
7573 | |||
7574 | cat >>confdefs.h <<\_ACEOF | ||
7575 | #define HAVE_SECUREWARE 1 | ||
7576 | _ACEOF | ||
7577 | |||
7578 | disable_ptmx_check=yes | ||
7579 | LIBS="$LIBS -lsecpw" | ||
7580 | ;; | ||
7581 | esac | ||
7582 | ;; | ||
7583 | *-*-irix5*) | ||
7584 | PATH="$PATH:/usr/etc" | ||
7585 | |||
7586 | cat >>confdefs.h <<\_ACEOF | ||
7587 | #define BROKEN_INET_NTOA 1 | ||
7588 | _ACEOF | ||
7589 | |||
7590 | cat >>confdefs.h <<\_ACEOF | ||
7591 | #define SETEUID_BREAKS_SETUID 1 | ||
7592 | _ACEOF | ||
7593 | |||
7594 | cat >>confdefs.h <<\_ACEOF | ||
7595 | #define BROKEN_SETREUID 1 | ||
7596 | _ACEOF | ||
7597 | |||
7598 | cat >>confdefs.h <<\_ACEOF | ||
7599 | #define BROKEN_SETREGID 1 | ||
7600 | _ACEOF | ||
7601 | |||
7602 | |||
7603 | cat >>confdefs.h <<\_ACEOF | ||
7604 | #define WITH_ABBREV_NO_TTY 1 | ||
7605 | _ACEOF | ||
7606 | |||
7607 | cat >>confdefs.h <<\_ACEOF | ||
7608 | #define LOCKED_PASSWD_STRING "*LK*" | ||
7609 | _ACEOF | ||
7610 | |||
7611 | ;; | ||
7612 | *-*-irix6*) | ||
7613 | PATH="$PATH:/usr/etc" | ||
7614 | |||
7615 | cat >>confdefs.h <<\_ACEOF | ||
7616 | #define WITH_IRIX_ARRAY 1 | ||
7617 | _ACEOF | ||
7618 | |||
7619 | |||
7620 | cat >>confdefs.h <<\_ACEOF | ||
7621 | #define WITH_IRIX_PROJECT 1 | ||
7622 | _ACEOF | ||
7623 | |||
7624 | |||
7625 | cat >>confdefs.h <<\_ACEOF | ||
7626 | #define WITH_IRIX_AUDIT 1 | ||
7627 | _ACEOF | ||
7628 | |||
7629 | { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5 | ||
7630 | echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; } | ||
7631 | if test "${ac_cv_func_jlimit_startjob+set}" = set; then | ||
7632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7633 | else | ||
7634 | cat >conftest.$ac_ext <<_ACEOF | ||
7635 | /* confdefs.h. */ | ||
7636 | _ACEOF | ||
7637 | cat confdefs.h >>conftest.$ac_ext | ||
7638 | cat >>conftest.$ac_ext <<_ACEOF | ||
7639 | /* end confdefs.h. */ | ||
7640 | /* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob. | ||
7641 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
7642 | #define jlimit_startjob innocuous_jlimit_startjob | ||
7643 | |||
7644 | /* System header to define __stub macros and hopefully few prototypes, | ||
7645 | which can conflict with char jlimit_startjob (); below. | ||
7646 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
7647 | <limits.h> exists even on freestanding compilers. */ | ||
7648 | |||
7649 | #ifdef __STDC__ | ||
7650 | # include <limits.h> | ||
7651 | #else | ||
7652 | # include <assert.h> | ||
7653 | #endif | ||
7654 | |||
7655 | #undef jlimit_startjob | ||
7656 | |||
7657 | /* Override any GCC internal prototype to avoid an error. | ||
7658 | Use char because int might match the return type of a GCC | ||
7659 | builtin and then its argument prototype would still apply. */ | ||
7660 | #ifdef __cplusplus | ||
7661 | extern "C" | ||
7662 | #endif | ||
7663 | char jlimit_startjob (); | ||
7664 | /* The GNU C library defines this for functions which it implements | ||
7665 | to always fail with ENOSYS. Some functions are actually named | ||
7666 | something starting with __ and the normal name is an alias. */ | ||
7667 | #if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob | ||
7668 | choke me | ||
7669 | #endif | ||
7670 | |||
7671 | int | ||
7672 | main () | ||
7673 | { | ||
7674 | return jlimit_startjob (); | ||
7675 | ; | ||
7676 | return 0; | ||
7677 | } | ||
7678 | _ACEOF | ||
7679 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7680 | if { (ac_try="$ac_link" | ||
7681 | case "(($ac_try" in | ||
7682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7683 | *) ac_try_echo=$ac_try;; | ||
7684 | esac | ||
7685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7686 | (eval "$ac_link") 2>conftest.er1 | ||
7687 | ac_status=$? | ||
7688 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7689 | rm -f conftest.er1 | ||
7690 | cat conftest.err >&5 | ||
7691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7692 | (exit $ac_status); } && { | ||
7693 | test -z "$ac_c_werror_flag" || | ||
7694 | test ! -s conftest.err | ||
7695 | } && test -s conftest$ac_exeext && | ||
7696 | $as_test_x conftest$ac_exeext; then | ||
7697 | ac_cv_func_jlimit_startjob=yes | ||
7698 | else | ||
7699 | echo "$as_me: failed program was:" >&5 | ||
7700 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7701 | |||
7702 | ac_cv_func_jlimit_startjob=no | ||
7703 | fi | ||
7704 | |||
7705 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7706 | conftest$ac_exeext conftest.$ac_ext | ||
7707 | fi | ||
7708 | { echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5 | ||
7709 | echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; } | ||
7710 | if test $ac_cv_func_jlimit_startjob = yes; then | ||
7711 | |||
7712 | cat >>confdefs.h <<\_ACEOF | ||
7713 | #define WITH_IRIX_JOBS 1 | ||
7714 | _ACEOF | ||
7715 | |||
7716 | fi | ||
7717 | |||
7718 | cat >>confdefs.h <<\_ACEOF | ||
7719 | #define BROKEN_INET_NTOA 1 | ||
7720 | _ACEOF | ||
7721 | |||
7722 | cat >>confdefs.h <<\_ACEOF | ||
7723 | #define SETEUID_BREAKS_SETUID 1 | ||
7724 | _ACEOF | ||
7725 | |||
7726 | cat >>confdefs.h <<\_ACEOF | ||
7727 | #define BROKEN_SETREUID 1 | ||
7728 | _ACEOF | ||
7729 | |||
7730 | cat >>confdefs.h <<\_ACEOF | ||
7731 | #define BROKEN_SETREGID 1 | ||
7732 | _ACEOF | ||
7733 | |||
7734 | |||
7735 | cat >>confdefs.h <<\_ACEOF | ||
7736 | #define BROKEN_UPDWTMPX 1 | ||
7737 | _ACEOF | ||
7738 | |||
7739 | cat >>confdefs.h <<\_ACEOF | ||
7740 | #define WITH_ABBREV_NO_TTY 1 | ||
7741 | _ACEOF | ||
7742 | |||
7743 | cat >>confdefs.h <<\_ACEOF | ||
7744 | #define LOCKED_PASSWD_STRING "*LK*" | ||
7745 | _ACEOF | ||
7746 | |||
7747 | ;; | ||
7748 | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | ||
7749 | check_for_libcrypt_later=1 | ||
7750 | cat >>confdefs.h <<\_ACEOF | ||
7751 | #define PAM_TTY_KLUDGE 1 | ||
7752 | _ACEOF | ||
7753 | |||
7754 | cat >>confdefs.h <<\_ACEOF | ||
7755 | #define LOCKED_PASSWD_PREFIX "!" | ||
7756 | _ACEOF | ||
7757 | |||
7758 | cat >>confdefs.h <<\_ACEOF | ||
7759 | #define SPT_TYPE SPT_REUSEARGV | ||
7760 | _ACEOF | ||
7761 | |||
7762 | |||
7763 | cat >>confdefs.h <<\_ACEOF | ||
7764 | #define _PATH_BTMP "/var/log/btmp" | ||
7765 | _ACEOF | ||
7766 | |||
7767 | |||
7768 | cat >>confdefs.h <<\_ACEOF | ||
7769 | #define USE_BTMP 1 | ||
7770 | _ACEOF | ||
7771 | |||
7772 | ;; | ||
7773 | *-*-linux*) | ||
7774 | no_dev_ptmx=1 | ||
7775 | check_for_libcrypt_later=1 | ||
7776 | check_for_openpty_ctty_bug=1 | ||
7777 | |||
7778 | cat >>confdefs.h <<\_ACEOF | ||
7779 | #define PAM_TTY_KLUDGE 1 | ||
7780 | _ACEOF | ||
7781 | |||
7782 | |||
7783 | cat >>confdefs.h <<\_ACEOF | ||
7784 | #define LOCKED_PASSWD_PREFIX "!" | ||
7785 | _ACEOF | ||
7786 | |||
7787 | cat >>confdefs.h <<\_ACEOF | ||
7788 | #define SPT_TYPE SPT_REUSEARGV | ||
7789 | _ACEOF | ||
7790 | |||
7791 | |||
7792 | cat >>confdefs.h <<\_ACEOF | ||
7793 | #define LINK_OPNOTSUPP_ERRNO EPERM | ||
7794 | _ACEOF | ||
7795 | |||
7796 | |||
7797 | cat >>confdefs.h <<\_ACEOF | ||
7798 | #define _PATH_BTMP "/var/log/btmp" | ||
7799 | _ACEOF | ||
7800 | |||
7801 | cat >>confdefs.h <<\_ACEOF | ||
7802 | #define USE_BTMP 1 | ||
7803 | _ACEOF | ||
7804 | |||
7805 | |||
7806 | cat >>confdefs.h <<\_ACEOF | ||
7807 | #define LINUX_OOM_ADJUST 1 | ||
7808 | _ACEOF | ||
7809 | |||
7810 | inet6_default_4in6=yes | ||
7811 | case `uname -r` in | ||
7812 | 1.*|2.0.*) | ||
7813 | |||
7814 | cat >>confdefs.h <<\_ACEOF | ||
7815 | #define BROKEN_CMSG_TYPE 1 | ||
7816 | _ACEOF | ||
7817 | |||
7818 | ;; | ||
7819 | esac | ||
7820 | # tun(4) forwarding compat code | ||
7821 | |||
7822 | for ac_header in linux/if_tun.h | ||
7823 | do | ||
7824 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7825 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7826 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7827 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7828 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7830 | fi | ||
7831 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7832 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7833 | echo "${ECHO_T}$ac_res" >&6; } | ||
7834 | else | ||
7835 | # Is the header compilable? | ||
7836 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
7837 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
7838 | cat >conftest.$ac_ext <<_ACEOF | ||
7839 | /* confdefs.h. */ | ||
7840 | _ACEOF | ||
7841 | cat confdefs.h >>conftest.$ac_ext | ||
7842 | cat >>conftest.$ac_ext <<_ACEOF | ||
7843 | /* end confdefs.h. */ | ||
7844 | $ac_includes_default | ||
7845 | #include <$ac_header> | ||
7846 | _ACEOF | ||
7847 | rm -f conftest.$ac_objext | ||
7848 | if { (ac_try="$ac_compile" | ||
7849 | case "(($ac_try" in | ||
7850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7851 | *) ac_try_echo=$ac_try;; | ||
7852 | esac | ||
7853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7854 | (eval "$ac_compile") 2>conftest.er1 | ||
7855 | ac_status=$? | ||
7856 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7857 | rm -f conftest.er1 | ||
7858 | cat conftest.err >&5 | ||
7859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7860 | (exit $ac_status); } && { | ||
7861 | test -z "$ac_c_werror_flag" || | ||
7862 | test ! -s conftest.err | ||
7863 | } && test -s conftest.$ac_objext; then | ||
7864 | ac_header_compiler=yes | ||
7865 | else | ||
7866 | echo "$as_me: failed program was:" >&5 | ||
7867 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7868 | |||
7869 | ac_header_compiler=no | ||
7870 | fi | ||
7871 | |||
7872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7873 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7874 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
7875 | |||
7876 | # Is the header present? | ||
7877 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
7878 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
7879 | cat >conftest.$ac_ext <<_ACEOF | ||
7880 | /* confdefs.h. */ | ||
7881 | _ACEOF | ||
7882 | cat confdefs.h >>conftest.$ac_ext | ||
7883 | cat >>conftest.$ac_ext <<_ACEOF | ||
7884 | /* end confdefs.h. */ | ||
7885 | #include <$ac_header> | ||
7886 | _ACEOF | ||
7887 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
7888 | case "(($ac_try" in | ||
7889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7890 | *) ac_try_echo=$ac_try;; | ||
7891 | esac | ||
7892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7893 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
7894 | ac_status=$? | ||
7895 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7896 | rm -f conftest.er1 | ||
7897 | cat conftest.err >&5 | ||
7898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7899 | (exit $ac_status); } >/dev/null && { | ||
7900 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
7901 | test ! -s conftest.err | ||
7902 | }; then | ||
7903 | ac_header_preproc=yes | ||
7904 | else | ||
7905 | echo "$as_me: failed program was:" >&5 | ||
7906 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7907 | |||
7908 | ac_header_preproc=no | ||
7909 | fi | ||
7910 | |||
7911 | rm -f conftest.err conftest.$ac_ext | ||
7912 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
7913 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
7914 | |||
7915 | # So? What about this header? | ||
7916 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
7917 | yes:no: ) | ||
7918 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
7919 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
7920 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
7921 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
7922 | ac_header_preproc=yes | ||
7923 | ;; | ||
7924 | no:yes:* ) | ||
7925 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
7926 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
7927 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
7928 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
7929 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
7930 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
7931 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
7932 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
7933 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
7934 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
7935 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
7936 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
7937 | ( cat <<\_ASBOX | ||
7938 | ## ------------------------------------------- ## | ||
7939 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
7940 | ## ------------------------------------------- ## | ||
7941 | _ASBOX | ||
7942 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
7943 | ;; | ||
7944 | esac | ||
7945 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7946 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7947 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7949 | else | ||
7950 | eval "$as_ac_Header=\$ac_header_preproc" | ||
7951 | fi | ||
7952 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7953 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7954 | echo "${ECHO_T}$ac_res" >&6; } | ||
7955 | |||
7956 | fi | ||
7957 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7958 | cat >>confdefs.h <<_ACEOF | ||
7959 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7960 | _ACEOF | ||
7961 | |||
7962 | fi | ||
7963 | |||
7964 | done | ||
7965 | |||
7966 | if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then | ||
7967 | |||
7968 | cat >>confdefs.h <<\_ACEOF | ||
7969 | #define SSH_TUN_LINUX 1 | ||
7970 | _ACEOF | ||
7971 | |||
7972 | |||
7973 | cat >>confdefs.h <<\_ACEOF | ||
7974 | #define SSH_TUN_COMPAT_AF 1 | ||
7975 | _ACEOF | ||
7976 | |||
7977 | |||
7978 | cat >>confdefs.h <<\_ACEOF | ||
7979 | #define SSH_TUN_PREPEND_AF 1 | ||
7980 | _ACEOF | ||
7981 | |||
7982 | fi | ||
7983 | ;; | ||
7984 | mips-sony-bsd|mips-sony-newsos4) | ||
7985 | |||
7986 | cat >>confdefs.h <<\_ACEOF | ||
7987 | #define NEED_SETPGRP 1 | ||
7988 | _ACEOF | ||
7989 | |||
7990 | SONY=1 | ||
7991 | ;; | ||
7992 | *-*-netbsd*) | ||
7993 | check_for_libcrypt_before=1 | ||
7994 | if test "x$withval" != "xno" ; then | ||
7995 | need_dash_r=1 | ||
7996 | fi | ||
7997 | |||
7998 | cat >>confdefs.h <<\_ACEOF | ||
7999 | #define SSH_TUN_FREEBSD 1 | ||
8000 | _ACEOF | ||
8001 | |||
8002 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8003 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
8004 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
8005 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8007 | fi | ||
8008 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
8009 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
8010 | else | ||
8011 | # Is the header compilable? | ||
8012 | { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5 | ||
8013 | echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; } | ||
8014 | cat >conftest.$ac_ext <<_ACEOF | ||
8015 | /* confdefs.h. */ | ||
8016 | _ACEOF | ||
8017 | cat confdefs.h >>conftest.$ac_ext | ||
8018 | cat >>conftest.$ac_ext <<_ACEOF | ||
8019 | /* end confdefs.h. */ | ||
8020 | $ac_includes_default | ||
8021 | #include <net/if_tap.h> | ||
8022 | _ACEOF | ||
8023 | rm -f conftest.$ac_objext | ||
8024 | if { (ac_try="$ac_compile" | ||
8025 | case "(($ac_try" in | ||
8026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8027 | *) ac_try_echo=$ac_try;; | ||
8028 | esac | ||
8029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8030 | (eval "$ac_compile") 2>conftest.er1 | ||
8031 | ac_status=$? | ||
8032 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8033 | rm -f conftest.er1 | ||
8034 | cat conftest.err >&5 | ||
8035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8036 | (exit $ac_status); } && { | ||
8037 | test -z "$ac_c_werror_flag" || | ||
8038 | test ! -s conftest.err | ||
8039 | } && test -s conftest.$ac_objext; then | ||
8040 | ac_header_compiler=yes | ||
8041 | else | ||
8042 | echo "$as_me: failed program was:" >&5 | ||
8043 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8044 | |||
8045 | ac_header_compiler=no | ||
8046 | fi | ||
8047 | |||
8048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8049 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
8050 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
8051 | |||
8052 | # Is the header present? | ||
8053 | { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5 | ||
8054 | echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; } | ||
8055 | cat >conftest.$ac_ext <<_ACEOF | ||
8056 | /* confdefs.h. */ | ||
8057 | _ACEOF | ||
8058 | cat confdefs.h >>conftest.$ac_ext | ||
8059 | cat >>conftest.$ac_ext <<_ACEOF | ||
8060 | /* end confdefs.h. */ | ||
8061 | #include <net/if_tap.h> | ||
8062 | _ACEOF | ||
8063 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
8064 | case "(($ac_try" in | ||
8065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8066 | *) ac_try_echo=$ac_try;; | ||
8067 | esac | ||
8068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8069 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
8070 | ac_status=$? | ||
8071 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8072 | rm -f conftest.er1 | ||
8073 | cat conftest.err >&5 | ||
8074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8075 | (exit $ac_status); } >/dev/null && { | ||
8076 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
8077 | test ! -s conftest.err | ||
8078 | }; then | ||
8079 | ac_header_preproc=yes | ||
8080 | else | ||
8081 | echo "$as_me: failed program was:" >&5 | ||
8082 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8083 | |||
8084 | ac_header_preproc=no | ||
8085 | fi | ||
8086 | |||
8087 | rm -f conftest.err conftest.$ac_ext | ||
8088 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
8089 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
8090 | |||
8091 | # So? What about this header? | ||
8092 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
8093 | yes:no: ) | ||
8094 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
8095 | echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
8096 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5 | ||
8097 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;} | ||
8098 | ac_header_preproc=yes | ||
8099 | ;; | ||
8100 | no:yes:* ) | ||
8101 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5 | ||
8102 | echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;} | ||
8103 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5 | ||
8104 | echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;} | ||
8105 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5 | ||
8106 | echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;} | ||
8107 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
8108 | echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
8109 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5 | ||
8110 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;} | ||
8111 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5 | ||
8112 | echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;} | ||
8113 | ( cat <<\_ASBOX | ||
8114 | ## ------------------------------------------- ## | ||
8115 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
8116 | ## ------------------------------------------- ## | ||
8117 | _ASBOX | ||
8118 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
8119 | ;; | ||
8120 | esac | ||
8121 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
8122 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
8123 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8125 | else | ||
8126 | ac_cv_header_net_if_tap_h=$ac_header_preproc | ||
8127 | fi | ||
8128 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
8129 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
8130 | |||
8131 | fi | ||
8132 | if test $ac_cv_header_net_if_tap_h = yes; then | ||
8133 | : | ||
8134 | else | ||
8135 | |||
8136 | cat >>confdefs.h <<\_ACEOF | ||
8137 | #define SSH_TUN_NO_L2 1 | ||
8138 | _ACEOF | ||
8139 | |||
8140 | fi | ||
8141 | |||
8142 | |||
8143 | |||
8144 | cat >>confdefs.h <<\_ACEOF | ||
8145 | #define SSH_TUN_PREPEND_AF 1 | ||
8146 | _ACEOF | ||
8147 | |||
8148 | ;; | ||
8149 | *-*-freebsd*) | ||
8150 | check_for_libcrypt_later=1 | ||
8151 | |||
8152 | cat >>confdefs.h <<\_ACEOF | ||
8153 | #define LOCKED_PASSWD_PREFIX "*LOCKED*" | ||
8154 | _ACEOF | ||
8155 | |||
8156 | |||
8157 | cat >>confdefs.h <<\_ACEOF | ||
8158 | #define SSH_TUN_FREEBSD 1 | ||
8159 | _ACEOF | ||
8160 | |||
8161 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8162 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
8163 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
8164 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8166 | fi | ||
8167 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
8168 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
8169 | else | ||
8170 | # Is the header compilable? | ||
8171 | { echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5 | ||
8172 | echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; } | ||
8173 | cat >conftest.$ac_ext <<_ACEOF | ||
8174 | /* confdefs.h. */ | ||
8175 | _ACEOF | ||
8176 | cat confdefs.h >>conftest.$ac_ext | ||
8177 | cat >>conftest.$ac_ext <<_ACEOF | ||
8178 | /* end confdefs.h. */ | ||
8179 | $ac_includes_default | ||
8180 | #include <net/if_tap.h> | ||
8181 | _ACEOF | ||
8182 | rm -f conftest.$ac_objext | ||
8183 | if { (ac_try="$ac_compile" | ||
8184 | case "(($ac_try" in | ||
8185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8186 | *) ac_try_echo=$ac_try;; | ||
8187 | esac | ||
8188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8189 | (eval "$ac_compile") 2>conftest.er1 | ||
8190 | ac_status=$? | ||
8191 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8192 | rm -f conftest.er1 | ||
8193 | cat conftest.err >&5 | ||
8194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8195 | (exit $ac_status); } && { | ||
8196 | test -z "$ac_c_werror_flag" || | ||
8197 | test ! -s conftest.err | ||
8198 | } && test -s conftest.$ac_objext; then | ||
8199 | ac_header_compiler=yes | ||
8200 | else | ||
8201 | echo "$as_me: failed program was:" >&5 | ||
8202 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8203 | |||
8204 | ac_header_compiler=no | ||
8205 | fi | ||
8206 | |||
8207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8208 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
8209 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
8210 | |||
8211 | # Is the header present? | ||
8212 | { echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5 | ||
8213 | echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; } | ||
8214 | cat >conftest.$ac_ext <<_ACEOF | ||
8215 | /* confdefs.h. */ | ||
8216 | _ACEOF | ||
8217 | cat confdefs.h >>conftest.$ac_ext | ||
8218 | cat >>conftest.$ac_ext <<_ACEOF | ||
8219 | /* end confdefs.h. */ | ||
8220 | #include <net/if_tap.h> | ||
8221 | _ACEOF | ||
8222 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
8223 | case "(($ac_try" in | ||
8224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8225 | *) ac_try_echo=$ac_try;; | ||
8226 | esac | ||
8227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8228 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
8229 | ac_status=$? | ||
8230 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8231 | rm -f conftest.er1 | ||
8232 | cat conftest.err >&5 | ||
8233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8234 | (exit $ac_status); } >/dev/null && { | ||
8235 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
8236 | test ! -s conftest.err | ||
8237 | }; then | ||
8238 | ac_header_preproc=yes | ||
8239 | else | ||
8240 | echo "$as_me: failed program was:" >&5 | ||
8241 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8242 | |||
8243 | ac_header_preproc=no | ||
8244 | fi | ||
8245 | |||
8246 | rm -f conftest.err conftest.$ac_ext | ||
8247 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
8248 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
8249 | |||
8250 | # So? What about this header? | ||
8251 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
8252 | yes:no: ) | ||
8253 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
8254 | echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
8255 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5 | ||
8256 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;} | ||
8257 | ac_header_preproc=yes | ||
8258 | ;; | ||
8259 | no:yes:* ) | ||
8260 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5 | ||
8261 | echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;} | ||
8262 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5 | ||
8263 | echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;} | ||
8264 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5 | ||
8265 | echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;} | ||
8266 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
8267 | echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
8268 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5 | ||
8269 | echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;} | ||
8270 | { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5 | ||
8271 | echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;} | ||
8272 | ( cat <<\_ASBOX | ||
8273 | ## ------------------------------------------- ## | ||
8274 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
8275 | ## ------------------------------------------- ## | ||
8276 | _ASBOX | ||
8277 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
8278 | ;; | ||
8279 | esac | ||
8280 | { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
8281 | echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } | ||
8282 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8284 | else | ||
8285 | ac_cv_header_net_if_tap_h=$ac_header_preproc | ||
8286 | fi | ||
8287 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
8288 | echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } | ||
8289 | |||
8290 | fi | ||
8291 | if test $ac_cv_header_net_if_tap_h = yes; then | ||
8292 | : | ||
8293 | else | ||
8294 | |||
8295 | cat >>confdefs.h <<\_ACEOF | ||
8296 | #define SSH_TUN_NO_L2 1 | ||
8297 | _ACEOF | ||
8298 | |||
8299 | fi | ||
8300 | |||
8301 | |||
8302 | |||
8303 | cat >>confdefs.h <<\_ACEOF | ||
8304 | #define BROKEN_GLOB 1 | ||
8305 | _ACEOF | ||
8306 | |||
8307 | ;; | ||
8308 | *-*-bsdi*) | ||
8309 | cat >>confdefs.h <<\_ACEOF | ||
8310 | #define SETEUID_BREAKS_SETUID 1 | ||
8311 | _ACEOF | ||
8312 | |||
8313 | cat >>confdefs.h <<\_ACEOF | ||
8314 | #define BROKEN_SETREUID 1 | ||
8315 | _ACEOF | ||
8316 | |||
8317 | cat >>confdefs.h <<\_ACEOF | ||
8318 | #define BROKEN_SETREGID 1 | ||
8319 | _ACEOF | ||
8320 | |||
8321 | ;; | ||
8322 | *-next-*) | ||
8323 | conf_lastlog_location="/usr/adm/lastlog" | ||
8324 | conf_utmp_location=/etc/utmp | ||
8325 | conf_wtmp_location=/usr/adm/wtmp | ||
8326 | MAIL=/usr/spool/mail | ||
8327 | |||
8328 | cat >>confdefs.h <<\_ACEOF | ||
8329 | #define HAVE_NEXT 1 | ||
8330 | _ACEOF | ||
8331 | |||
8332 | cat >>confdefs.h <<\_ACEOF | ||
8333 | #define BROKEN_REALPATH 1 | ||
8334 | _ACEOF | ||
8335 | |||
8336 | cat >>confdefs.h <<\_ACEOF | ||
8337 | #define USE_PIPES 1 | ||
8338 | _ACEOF | ||
8339 | |||
8340 | |||
8341 | cat >>confdefs.h <<\_ACEOF | ||
8342 | #define BROKEN_SAVED_UIDS 1 | ||
8343 | _ACEOF | ||
8344 | |||
8345 | ;; | ||
8346 | *-*-openbsd*) | ||
8347 | |||
8348 | cat >>confdefs.h <<\_ACEOF | ||
8349 | #define HAVE_ATTRIBUTE__SENTINEL__ 1 | ||
8350 | _ACEOF | ||
8351 | |||
8352 | |||
8353 | cat >>confdefs.h <<\_ACEOF | ||
8354 | #define HAVE_ATTRIBUTE__BOUNDED__ 1 | ||
8355 | _ACEOF | ||
8356 | |||
8357 | |||
8358 | cat >>confdefs.h <<\_ACEOF | ||
8359 | #define SSH_TUN_OPENBSD 1 | ||
8360 | _ACEOF | ||
8361 | |||
8362 | |||
8363 | cat >>confdefs.h <<\_ACEOF | ||
8364 | #define SYSLOG_R_SAFE_IN_SIGHAND 1 | ||
8365 | _ACEOF | ||
8366 | |||
8367 | ;; | ||
8368 | *-*-solaris*) | ||
8369 | if test "x$withval" != "xno" ; then | ||
8370 | need_dash_r=1 | ||
8371 | fi | ||
8372 | cat >>confdefs.h <<\_ACEOF | ||
8373 | #define PAM_SUN_CODEBASE 1 | ||
8374 | _ACEOF | ||
8375 | |||
8376 | cat >>confdefs.h <<\_ACEOF | ||
8377 | #define LOGIN_NEEDS_UTMPX 1 | ||
8378 | _ACEOF | ||
8379 | |||
8380 | |||
8381 | cat >>confdefs.h <<\_ACEOF | ||
8382 | #define LOGIN_NEEDS_TERM 1 | ||
8383 | _ACEOF | ||
8384 | |||
8385 | cat >>confdefs.h <<\_ACEOF | ||
8386 | #define PAM_TTY_KLUDGE 1 | ||
8387 | _ACEOF | ||
8388 | |||
8389 | |||
8390 | cat >>confdefs.h <<\_ACEOF | ||
8391 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 | ||
8392 | _ACEOF | ||
8393 | |||
8394 | cat >>confdefs.h <<\_ACEOF | ||
8395 | #define LOCKED_PASSWD_STRING "*LK*" | ||
8396 | _ACEOF | ||
8397 | |||
8398 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. | ||
8399 | |||
8400 | cat >>confdefs.h <<\_ACEOF | ||
8401 | #define SSHD_ACQUIRES_CTTY 1 | ||
8402 | _ACEOF | ||
8403 | |||
8404 | |||
8405 | cat >>confdefs.h <<\_ACEOF | ||
8406 | #define PASSWD_NEEDS_USERNAME 1 | ||
8407 | _ACEOF | ||
8408 | |||
8409 | |||
8410 | cat >>confdefs.h <<\_ACEOF | ||
8411 | #define BROKEN_TCGETATTR_ICANON 1 | ||
8412 | _ACEOF | ||
8413 | |||
8414 | external_path_file=/etc/default/login | ||
8415 | # hardwire lastlog location (can't detect it on some versions) | ||
8416 | conf_lastlog_location="/var/adm/lastlog" | ||
8417 | { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
8418 | echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; } | ||
8419 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
8420 | if test "$sol2ver" -ge 8; then | ||
8421 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
8422 | echo "${ECHO_T}yes" >&6; } | ||
8423 | cat >>confdefs.h <<\_ACEOF | ||
8424 | #define DISABLE_UTMP 1 | ||
8425 | _ACEOF | ||
8426 | |||
8427 | |||
8428 | cat >>confdefs.h <<\_ACEOF | ||
8429 | #define DISABLE_WTMP 1 | ||
8430 | _ACEOF | ||
8431 | |||
8432 | else | ||
8433 | { echo "$as_me:$LINENO: result: no" >&5 | ||
8434 | echo "${ECHO_T}no" >&6; } | ||
8435 | fi | ||
8436 | |||
8437 | # Check whether --with-solaris-contracts was given. | ||
8438 | if test "${with_solaris_contracts+set}" = set; then | ||
8439 | withval=$with_solaris_contracts; | ||
8440 | { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5 | ||
8441 | echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; } | ||
8442 | if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then | ||
8443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8444 | else | ||
8445 | ac_check_lib_save_LIBS=$LIBS | ||
8446 | LIBS="-lcontract $LIBS" | ||
8447 | cat >conftest.$ac_ext <<_ACEOF | ||
8448 | /* confdefs.h. */ | ||
8449 | _ACEOF | ||
8450 | cat confdefs.h >>conftest.$ac_ext | ||
8451 | cat >>conftest.$ac_ext <<_ACEOF | ||
8452 | /* end confdefs.h. */ | ||
8453 | |||
8454 | /* Override any GCC internal prototype to avoid an error. | ||
8455 | Use char because int might match the return type of a GCC | ||
8456 | builtin and then its argument prototype would still apply. */ | ||
8457 | #ifdef __cplusplus | ||
8458 | extern "C" | ||
8459 | #endif | ||
8460 | char ct_tmpl_activate (); | ||
8461 | int | ||
8462 | main () | ||
8463 | { | ||
8464 | return ct_tmpl_activate (); | ||
8465 | ; | ||
8466 | return 0; | ||
8467 | } | ||
8468 | _ACEOF | ||
8469 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8470 | if { (ac_try="$ac_link" | ||
8471 | case "(($ac_try" in | ||
8472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8473 | *) ac_try_echo=$ac_try;; | ||
8474 | esac | ||
8475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8476 | (eval "$ac_link") 2>conftest.er1 | ||
8477 | ac_status=$? | ||
8478 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8479 | rm -f conftest.er1 | ||
8480 | cat conftest.err >&5 | ||
8481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8482 | (exit $ac_status); } && { | ||
8483 | test -z "$ac_c_werror_flag" || | ||
8484 | test ! -s conftest.err | ||
8485 | } && test -s conftest$ac_exeext && | ||
8486 | $as_test_x conftest$ac_exeext; then | ||
8487 | ac_cv_lib_contract_ct_tmpl_activate=yes | ||
8488 | else | ||
8489 | echo "$as_me: failed program was:" >&5 | ||
8490 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8491 | |||
8492 | ac_cv_lib_contract_ct_tmpl_activate=no | ||
8493 | fi | ||
8494 | |||
8495 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8496 | conftest$ac_exeext conftest.$ac_ext | ||
8497 | LIBS=$ac_check_lib_save_LIBS | ||
8498 | fi | ||
8499 | { echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5 | ||
8500 | echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; } | ||
8501 | if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then | ||
8502 | |||
8503 | cat >>confdefs.h <<\_ACEOF | ||
8504 | #define USE_SOLARIS_PROCESS_CONTRACTS 1 | ||
8505 | _ACEOF | ||
8506 | |||
8507 | SSHDLIBS="$SSHDLIBS -lcontract" | ||
8508 | |||
8509 | SPC_MSG="yes" | ||
8510 | fi | ||
8511 | |||
8512 | |||
8513 | fi | ||
8514 | |||
8515 | ;; | ||
8516 | *-*-sunos4*) | ||
8517 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
8518 | |||
8519 | for ac_func in getpwanam | ||
8520 | do | ||
8521 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8522 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
8523 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
8524 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8526 | else | ||
8527 | cat >conftest.$ac_ext <<_ACEOF | ||
8528 | /* confdefs.h. */ | ||
8529 | _ACEOF | ||
8530 | cat confdefs.h >>conftest.$ac_ext | ||
8531 | cat >>conftest.$ac_ext <<_ACEOF | ||
8532 | /* end confdefs.h. */ | ||
8533 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
8534 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8535 | #define $ac_func innocuous_$ac_func | ||
8536 | |||
8537 | /* System header to define __stub macros and hopefully few prototypes, | ||
8538 | which can conflict with char $ac_func (); below. | ||
8539 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8540 | <limits.h> exists even on freestanding compilers. */ | ||
8541 | |||
8542 | #ifdef __STDC__ | ||
8543 | # include <limits.h> | ||
8544 | #else | ||
8545 | # include <assert.h> | ||
8546 | #endif | ||
8547 | |||
8548 | #undef $ac_func | ||
8549 | |||
8550 | /* Override any GCC internal prototype to avoid an error. | ||
8551 | Use char because int might match the return type of a GCC | ||
8552 | builtin and then its argument prototype would still apply. */ | ||
8553 | #ifdef __cplusplus | ||
8554 | extern "C" | ||
8555 | #endif | ||
8556 | char $ac_func (); | ||
8557 | /* The GNU C library defines this for functions which it implements | ||
8558 | to always fail with ENOSYS. Some functions are actually named | ||
8559 | something starting with __ and the normal name is an alias. */ | ||
8560 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
8561 | choke me | ||
8562 | #endif | ||
8563 | |||
8564 | int | ||
8565 | main () | ||
8566 | { | ||
8567 | return $ac_func (); | ||
8568 | ; | ||
8569 | return 0; | ||
8570 | } | ||
8571 | _ACEOF | ||
8572 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8573 | if { (ac_try="$ac_link" | ||
8574 | case "(($ac_try" in | ||
8575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8576 | *) ac_try_echo=$ac_try;; | ||
8577 | esac | ||
8578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8579 | (eval "$ac_link") 2>conftest.er1 | ||
8580 | ac_status=$? | ||
8581 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8582 | rm -f conftest.er1 | ||
8583 | cat conftest.err >&5 | ||
8584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8585 | (exit $ac_status); } && { | ||
8586 | test -z "$ac_c_werror_flag" || | ||
8587 | test ! -s conftest.err | ||
8588 | } && test -s conftest$ac_exeext && | ||
8589 | $as_test_x conftest$ac_exeext; then | ||
8590 | eval "$as_ac_var=yes" | ||
8591 | else | ||
8592 | echo "$as_me: failed program was:" >&5 | ||
8593 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8594 | |||
8595 | eval "$as_ac_var=no" | ||
8596 | fi | ||
8597 | |||
8598 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8599 | conftest$ac_exeext conftest.$ac_ext | ||
8600 | fi | ||
8601 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
8602 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
8603 | echo "${ECHO_T}$ac_res" >&6; } | ||
8604 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
8605 | cat >>confdefs.h <<_ACEOF | ||
8606 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8607 | _ACEOF | ||
8608 | |||
8609 | fi | ||
8610 | done | ||
8611 | |||
8612 | cat >>confdefs.h <<\_ACEOF | ||
8613 | #define PAM_SUN_CODEBASE 1 | ||
8614 | _ACEOF | ||
8615 | |||
8616 | conf_utmp_location=/etc/utmp | ||
8617 | conf_wtmp_location=/var/adm/wtmp | ||
8618 | conf_lastlog_location=/var/adm/lastlog | ||
8619 | cat >>confdefs.h <<\_ACEOF | ||
8620 | #define USE_PIPES 1 | ||
8621 | _ACEOF | ||
8622 | |||
8623 | ;; | ||
8624 | *-ncr-sysv*) | ||
8625 | LIBS="$LIBS -lc89" | ||
8626 | cat >>confdefs.h <<\_ACEOF | ||
8627 | #define USE_PIPES 1 | ||
8628 | _ACEOF | ||
8629 | |||
8630 | cat >>confdefs.h <<\_ACEOF | ||
8631 | #define SSHD_ACQUIRES_CTTY 1 | ||
8632 | _ACEOF | ||
8633 | |||
8634 | cat >>confdefs.h <<\_ACEOF | ||
8635 | #define SETEUID_BREAKS_SETUID 1 | ||
8636 | _ACEOF | ||
8637 | |||
8638 | cat >>confdefs.h <<\_ACEOF | ||
8639 | #define BROKEN_SETREUID 1 | ||
8640 | _ACEOF | ||
8641 | |||
8642 | cat >>confdefs.h <<\_ACEOF | ||
8643 | #define BROKEN_SETREGID 1 | ||
8644 | _ACEOF | ||
8645 | |||
8646 | ;; | ||
8647 | *-sni-sysv*) | ||
8648 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
8649 | |||
8650 | { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 | ||
8651 | echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; } | ||
8652 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then | ||
8653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8654 | else | ||
8655 | ac_check_lib_save_LIBS=$LIBS | ||
8656 | LIBS="-ldl $LIBS" | ||
8657 | cat >conftest.$ac_ext <<_ACEOF | ||
8658 | /* confdefs.h. */ | ||
8659 | _ACEOF | ||
8660 | cat confdefs.h >>conftest.$ac_ext | ||
8661 | cat >>conftest.$ac_ext <<_ACEOF | ||
8662 | /* end confdefs.h. */ | ||
8663 | |||
8664 | /* Override any GCC internal prototype to avoid an error. | ||
8665 | Use char because int might match the return type of a GCC | ||
8666 | builtin and then its argument prototype would still apply. */ | ||
8667 | #ifdef __cplusplus | ||
8668 | extern "C" | ||
8669 | #endif | ||
8670 | char dlsym (); | ||
8671 | int | ||
8672 | main () | ||
8673 | { | ||
8674 | return dlsym (); | ||
8675 | ; | ||
8676 | return 0; | ||
8677 | } | ||
8678 | _ACEOF | ||
8679 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8680 | if { (ac_try="$ac_link" | ||
8681 | case "(($ac_try" in | ||
8682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8683 | *) ac_try_echo=$ac_try;; | ||
8684 | esac | ||
8685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8686 | (eval "$ac_link") 2>conftest.er1 | ||
8687 | ac_status=$? | ||
8688 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8689 | rm -f conftest.er1 | ||
8690 | cat conftest.err >&5 | ||
8691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8692 | (exit $ac_status); } && { | ||
8693 | test -z "$ac_c_werror_flag" || | ||
8694 | test ! -s conftest.err | ||
8695 | } && test -s conftest$ac_exeext && | ||
8696 | $as_test_x conftest$ac_exeext; then | ||
8697 | ac_cv_lib_dl_dlsym=yes | ||
8698 | else | ||
8699 | echo "$as_me: failed program was:" >&5 | ||
8700 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8701 | |||
8702 | ac_cv_lib_dl_dlsym=no | ||
8703 | fi | ||
8704 | |||
8705 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8706 | conftest$ac_exeext conftest.$ac_ext | ||
8707 | LIBS=$ac_check_lib_save_LIBS | ||
8708 | fi | ||
8709 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 | ||
8710 | echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; } | ||
8711 | if test $ac_cv_lib_dl_dlsym = yes; then | ||
8712 | cat >>confdefs.h <<_ACEOF | ||
8713 | #define HAVE_LIBDL 1 | ||
8714 | _ACEOF | ||
8715 | |||
8716 | LIBS="-ldl $LIBS" | ||
8717 | |||
8718 | fi | ||
8719 | |||
8720 | # -lresolv needs to be at the end of LIBS or DNS lookups break | ||
8721 | { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 | ||
8722 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; } | ||
8723 | if test "${ac_cv_lib_resolv_res_query+set}" = set; then | ||
8724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8725 | else | ||
8726 | ac_check_lib_save_LIBS=$LIBS | ||
8727 | LIBS="-lresolv $LIBS" | ||
8728 | cat >conftest.$ac_ext <<_ACEOF | ||
8729 | /* confdefs.h. */ | ||
8730 | _ACEOF | ||
8731 | cat confdefs.h >>conftest.$ac_ext | ||
8732 | cat >>conftest.$ac_ext <<_ACEOF | ||
8733 | /* end confdefs.h. */ | ||
8734 | |||
8735 | /* Override any GCC internal prototype to avoid an error. | ||
8736 | Use char because int might match the return type of a GCC | ||
8737 | builtin and then its argument prototype would still apply. */ | ||
8738 | #ifdef __cplusplus | ||
8739 | extern "C" | ||
8740 | #endif | ||
8741 | char res_query (); | ||
8742 | int | ||
8743 | main () | ||
8744 | { | ||
8745 | return res_query (); | ||
8746 | ; | ||
8747 | return 0; | ||
8748 | } | ||
8749 | _ACEOF | ||
8750 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8751 | if { (ac_try="$ac_link" | ||
8752 | case "(($ac_try" in | ||
8753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8754 | *) ac_try_echo=$ac_try;; | ||
8755 | esac | ||
8756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8757 | (eval "$ac_link") 2>conftest.er1 | ||
8758 | ac_status=$? | ||
8759 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8760 | rm -f conftest.er1 | ||
8761 | cat conftest.err >&5 | ||
8762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8763 | (exit $ac_status); } && { | ||
8764 | test -z "$ac_c_werror_flag" || | ||
8765 | test ! -s conftest.err | ||
8766 | } && test -s conftest$ac_exeext && | ||
8767 | $as_test_x conftest$ac_exeext; then | ||
8768 | ac_cv_lib_resolv_res_query=yes | ||
8769 | else | ||
8770 | echo "$as_me: failed program was:" >&5 | ||
8771 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8772 | |||
8773 | ac_cv_lib_resolv_res_query=no | ||
8774 | fi | ||
8775 | |||
8776 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8777 | conftest$ac_exeext conftest.$ac_ext | ||
8778 | LIBS=$ac_check_lib_save_LIBS | ||
8779 | fi | ||
8780 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5 | ||
8781 | echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; } | ||
8782 | if test $ac_cv_lib_resolv_res_query = yes; then | ||
8783 | LIBS="$LIBS -lresolv" | ||
8784 | fi | ||
8785 | |||
8786 | IPADDR_IN_DISPLAY=yes | ||
8787 | cat >>confdefs.h <<\_ACEOF | ||
8788 | #define USE_PIPES 1 | ||
8789 | _ACEOF | ||
8790 | |||
8791 | cat >>confdefs.h <<\_ACEOF | ||
8792 | #define IP_TOS_IS_BROKEN 1 | ||
8793 | _ACEOF | ||
8794 | |||
8795 | cat >>confdefs.h <<\_ACEOF | ||
8796 | #define SETEUID_BREAKS_SETUID 1 | ||
8797 | _ACEOF | ||
8798 | |||
8799 | cat >>confdefs.h <<\_ACEOF | ||
8800 | #define BROKEN_SETREUID 1 | ||
8801 | _ACEOF | ||
8802 | |||
8803 | cat >>confdefs.h <<\_ACEOF | ||
8804 | #define BROKEN_SETREGID 1 | ||
8805 | _ACEOF | ||
8806 | |||
8807 | cat >>confdefs.h <<\_ACEOF | ||
8808 | #define SSHD_ACQUIRES_CTTY 1 | ||
8809 | _ACEOF | ||
8810 | |||
8811 | external_path_file=/etc/default/login | ||
8812 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
8813 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
8814 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
8815 | ;; | ||
8816 | # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. | ||
8817 | *-*-sysv4.2*) | ||
8818 | cat >>confdefs.h <<\_ACEOF | ||
8819 | #define USE_PIPES 1 | ||
8820 | _ACEOF | ||
8821 | |||
8822 | cat >>confdefs.h <<\_ACEOF | ||
8823 | #define SETEUID_BREAKS_SETUID 1 | ||
8824 | _ACEOF | ||
8825 | |||
8826 | cat >>confdefs.h <<\_ACEOF | ||
8827 | #define BROKEN_SETREUID 1 | ||
8828 | _ACEOF | ||
8829 | |||
8830 | cat >>confdefs.h <<\_ACEOF | ||
8831 | #define BROKEN_SETREGID 1 | ||
8832 | _ACEOF | ||
8833 | |||
8834 | |||
8835 | cat >>confdefs.h <<\_ACEOF | ||
8836 | #define PASSWD_NEEDS_USERNAME 1 | ||
8837 | _ACEOF | ||
8838 | |||
8839 | cat >>confdefs.h <<\_ACEOF | ||
8840 | #define LOCKED_PASSWD_STRING "*LK*" | ||
8841 | _ACEOF | ||
8842 | |||
8843 | ;; | ||
8844 | # UnixWare 7.x, OpenUNIX 8 | ||
8845 | *-*-sysv5*) | ||
8846 | CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf" | ||
8847 | |||
8848 | cat >>confdefs.h <<\_ACEOF | ||
8849 | #define UNIXWARE_LONG_PASSWORDS 1 | ||
8850 | _ACEOF | ||
8851 | |||
8852 | cat >>confdefs.h <<\_ACEOF | ||
8853 | #define USE_PIPES 1 | ||
8854 | _ACEOF | ||
8855 | |||
8856 | cat >>confdefs.h <<\_ACEOF | ||
8857 | #define SETEUID_BREAKS_SETUID 1 | ||
8858 | _ACEOF | ||
8859 | |||
8860 | cat >>confdefs.h <<\_ACEOF | ||
8861 | #define BROKEN_GETADDRINFO 1 | ||
8862 | _ACEOF | ||
8863 | |||
8864 | cat >>confdefs.h <<\_ACEOF | ||
8865 | #define BROKEN_SETREUID 1 | ||
8866 | _ACEOF | ||
8867 | |||
8868 | cat >>confdefs.h <<\_ACEOF | ||
8869 | #define BROKEN_SETREGID 1 | ||
8870 | _ACEOF | ||
8871 | |||
8872 | cat >>confdefs.h <<\_ACEOF | ||
8873 | #define PASSWD_NEEDS_USERNAME 1 | ||
8874 | _ACEOF | ||
8875 | |||
8876 | case "$host" in | ||
8877 | *-*-sysv5SCO_SV*) # SCO OpenServer 6.x | ||
8878 | TEST_SHELL=/u95/bin/sh | ||
8879 | |||
8880 | cat >>confdefs.h <<\_ACEOF | ||
8881 | #define BROKEN_LIBIAF 1 | ||
8882 | _ACEOF | ||
8883 | |||
8884 | cat >>confdefs.h <<\_ACEOF | ||
8885 | #define BROKEN_UPDWTMPX 1 | ||
8886 | _ACEOF | ||
8887 | |||
8888 | { echo "$as_me:$LINENO: checking for getluid in -lprot" >&5 | ||
8889 | echo $ECHO_N "checking for getluid in -lprot... $ECHO_C" >&6; } | ||
8890 | if test "${ac_cv_lib_prot_getluid+set}" = set; then | ||
8891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8892 | else | ||
8893 | ac_check_lib_save_LIBS=$LIBS | ||
8894 | LIBS="-lprot $LIBS" | ||
8895 | cat >conftest.$ac_ext <<_ACEOF | ||
8896 | /* confdefs.h. */ | ||
8897 | _ACEOF | ||
8898 | cat confdefs.h >>conftest.$ac_ext | ||
8899 | cat >>conftest.$ac_ext <<_ACEOF | ||
8900 | /* end confdefs.h. */ | ||
8901 | |||
8902 | /* Override any GCC internal prototype to avoid an error. | ||
8903 | Use char because int might match the return type of a GCC | ||
8904 | builtin and then its argument prototype would still apply. */ | ||
8905 | #ifdef __cplusplus | ||
8906 | extern "C" | ||
8907 | #endif | ||
8908 | char getluid (); | ||
8909 | int | ||
8910 | main () | ||
8911 | { | ||
8912 | return getluid (); | ||
8913 | ; | ||
8914 | return 0; | ||
8915 | } | ||
8916 | _ACEOF | ||
8917 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8918 | if { (ac_try="$ac_link" | ||
8919 | case "(($ac_try" in | ||
8920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8921 | *) ac_try_echo=$ac_try;; | ||
8922 | esac | ||
8923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8924 | (eval "$ac_link") 2>conftest.er1 | ||
8925 | ac_status=$? | ||
8926 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8927 | rm -f conftest.er1 | ||
8928 | cat conftest.err >&5 | ||
8929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8930 | (exit $ac_status); } && { | ||
8931 | test -z "$ac_c_werror_flag" || | ||
8932 | test ! -s conftest.err | ||
8933 | } && test -s conftest$ac_exeext && | ||
8934 | $as_test_x conftest$ac_exeext; then | ||
8935 | ac_cv_lib_prot_getluid=yes | ||
8936 | else | ||
8937 | echo "$as_me: failed program was:" >&5 | ||
8938 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8939 | |||
8940 | ac_cv_lib_prot_getluid=no | ||
8941 | fi | ||
8942 | |||
8943 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8944 | conftest$ac_exeext conftest.$ac_ext | ||
8945 | LIBS=$ac_check_lib_save_LIBS | ||
8946 | fi | ||
8947 | { echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getluid" >&5 | ||
8948 | echo "${ECHO_T}$ac_cv_lib_prot_getluid" >&6; } | ||
8949 | if test $ac_cv_lib_prot_getluid = yes; then | ||
8950 | LIBS="$LIBS -lprot" | ||
8951 | |||
8952 | |||
8953 | for ac_func in getluid setluid | ||
8954 | do | ||
8955 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8956 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
8957 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
8958 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8960 | else | ||
8961 | cat >conftest.$ac_ext <<_ACEOF | ||
8962 | /* confdefs.h. */ | ||
8963 | _ACEOF | ||
8964 | cat confdefs.h >>conftest.$ac_ext | ||
8965 | cat >>conftest.$ac_ext <<_ACEOF | ||
8966 | /* end confdefs.h. */ | ||
8967 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
8968 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8969 | #define $ac_func innocuous_$ac_func | ||
8970 | |||
8971 | /* System header to define __stub macros and hopefully few prototypes, | ||
8972 | which can conflict with char $ac_func (); below. | ||
8973 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8974 | <limits.h> exists even on freestanding compilers. */ | ||
8975 | |||
8976 | #ifdef __STDC__ | ||
8977 | # include <limits.h> | ||
8978 | #else | ||
8979 | # include <assert.h> | ||
8980 | #endif | ||
8981 | |||
8982 | #undef $ac_func | ||
8983 | |||
8984 | /* Override any GCC internal prototype to avoid an error. | ||
8985 | Use char because int might match the return type of a GCC | ||
8986 | builtin and then its argument prototype would still apply. */ | ||
8987 | #ifdef __cplusplus | ||
8988 | extern "C" | ||
8989 | #endif | ||
8990 | char $ac_func (); | ||
8991 | /* The GNU C library defines this for functions which it implements | ||
8992 | to always fail with ENOSYS. Some functions are actually named | ||
8993 | something starting with __ and the normal name is an alias. */ | ||
8994 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
8995 | choke me | ||
8996 | #endif | ||
8997 | |||
8998 | int | ||
8999 | main () | ||
9000 | { | ||
9001 | return $ac_func (); | ||
9002 | ; | ||
9003 | return 0; | ||
9004 | } | ||
9005 | _ACEOF | ||
9006 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9007 | if { (ac_try="$ac_link" | ||
9008 | case "(($ac_try" in | ||
9009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9010 | *) ac_try_echo=$ac_try;; | ||
9011 | esac | ||
9012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9013 | (eval "$ac_link") 2>conftest.er1 | ||
9014 | ac_status=$? | ||
9015 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9016 | rm -f conftest.er1 | ||
9017 | cat conftest.err >&5 | ||
9018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9019 | (exit $ac_status); } && { | ||
9020 | test -z "$ac_c_werror_flag" || | ||
9021 | test ! -s conftest.err | ||
9022 | } && test -s conftest$ac_exeext && | ||
9023 | $as_test_x conftest$ac_exeext; then | ||
9024 | eval "$as_ac_var=yes" | ||
9025 | else | ||
9026 | echo "$as_me: failed program was:" >&5 | ||
9027 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9028 | |||
9029 | eval "$as_ac_var=no" | ||
9030 | fi | ||
9031 | |||
9032 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9033 | conftest$ac_exeext conftest.$ac_ext | ||
9034 | fi | ||
9035 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
9036 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9037 | echo "${ECHO_T}$ac_res" >&6; } | ||
9038 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9039 | cat >>confdefs.h <<_ACEOF | ||
9040 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9041 | _ACEOF | ||
9042 | |||
9043 | fi | ||
9044 | done | ||
9045 | |||
9046 | cat >>confdefs.h <<\_ACEOF | ||
9047 | #define HAVE_SECUREWARE 1 | ||
9048 | _ACEOF | ||
9049 | |||
9050 | cat >>confdefs.h <<\_ACEOF | ||
9051 | #define DISABLE_SHADOW 1 | ||
9052 | _ACEOF | ||
9053 | |||
9054 | |||
9055 | fi | ||
9056 | |||
9057 | ;; | ||
9058 | *) cat >>confdefs.h <<\_ACEOF | ||
9059 | #define LOCKED_PASSWD_STRING "*LK*" | ||
9060 | _ACEOF | ||
9061 | |||
9062 | check_for_libcrypt_later=1 | ||
9063 | ;; | ||
9064 | esac | ||
9065 | ;; | ||
9066 | *-*-sysv*) | ||
9067 | ;; | ||
9068 | # SCO UNIX and OEM versions of SCO UNIX | ||
9069 | *-*-sco3.2v4*) | ||
9070 | { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5 | ||
9071 | echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;} | ||
9072 | { (exit 1); exit 1; }; } | ||
9073 | ;; | ||
9074 | # SCO OpenServer 5.x | ||
9075 | *-*-sco3.2v5*) | ||
9076 | if test -z "$GCC"; then | ||
9077 | CFLAGS="$CFLAGS -belf" | ||
9078 | fi | ||
9079 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
9080 | no_dev_ptmx=1 | ||
9081 | cat >>confdefs.h <<\_ACEOF | ||
9082 | #define USE_PIPES 1 | ||
9083 | _ACEOF | ||
9084 | |||
9085 | cat >>confdefs.h <<\_ACEOF | ||
9086 | #define HAVE_SECUREWARE 1 | ||
9087 | _ACEOF | ||
9088 | |||
9089 | cat >>confdefs.h <<\_ACEOF | ||
9090 | #define DISABLE_SHADOW 1 | ||
9091 | _ACEOF | ||
9092 | |||
9093 | cat >>confdefs.h <<\_ACEOF | ||
9094 | #define DISABLE_FD_PASSING 1 | ||
9095 | _ACEOF | ||
9096 | |||
9097 | cat >>confdefs.h <<\_ACEOF | ||
9098 | #define SETEUID_BREAKS_SETUID 1 | ||
9099 | _ACEOF | ||
9100 | |||
9101 | cat >>confdefs.h <<\_ACEOF | ||
9102 | #define BROKEN_GETADDRINFO 1 | ||
9103 | _ACEOF | ||
9104 | |||
9105 | cat >>confdefs.h <<\_ACEOF | ||
9106 | #define BROKEN_SETREUID 1 | ||
9107 | _ACEOF | ||
9108 | |||
9109 | cat >>confdefs.h <<\_ACEOF | ||
9110 | #define BROKEN_SETREGID 1 | ||
9111 | _ACEOF | ||
9112 | |||
9113 | cat >>confdefs.h <<\_ACEOF | ||
9114 | #define WITH_ABBREV_NO_TTY 1 | ||
9115 | _ACEOF | ||
9116 | |||
9117 | cat >>confdefs.h <<\_ACEOF | ||
9118 | #define BROKEN_UPDWTMPX 1 | ||
9119 | _ACEOF | ||
9120 | |||
9121 | cat >>confdefs.h <<\_ACEOF | ||
9122 | #define PASSWD_NEEDS_USERNAME 1 | ||
9123 | _ACEOF | ||
9124 | |||
9125 | |||
9126 | |||
9127 | for ac_func in getluid setluid | ||
9128 | do | ||
9129 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9130 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
9131 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
9132 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9133 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9134 | else | ||
9135 | cat >conftest.$ac_ext <<_ACEOF | ||
9136 | /* confdefs.h. */ | ||
9137 | _ACEOF | ||
9138 | cat confdefs.h >>conftest.$ac_ext | ||
9139 | cat >>conftest.$ac_ext <<_ACEOF | ||
9140 | /* end confdefs.h. */ | ||
9141 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
9142 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9143 | #define $ac_func innocuous_$ac_func | ||
9144 | |||
9145 | /* System header to define __stub macros and hopefully few prototypes, | ||
9146 | which can conflict with char $ac_func (); below. | ||
9147 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9148 | <limits.h> exists even on freestanding compilers. */ | ||
9149 | |||
9150 | #ifdef __STDC__ | ||
9151 | # include <limits.h> | ||
9152 | #else | ||
9153 | # include <assert.h> | ||
9154 | #endif | ||
9155 | |||
9156 | #undef $ac_func | ||
9157 | |||
9158 | /* Override any GCC internal prototype to avoid an error. | ||
9159 | Use char because int might match the return type of a GCC | ||
9160 | builtin and then its argument prototype would still apply. */ | ||
9161 | #ifdef __cplusplus | ||
9162 | extern "C" | ||
9163 | #endif | ||
9164 | char $ac_func (); | ||
9165 | /* The GNU C library defines this for functions which it implements | ||
9166 | to always fail with ENOSYS. Some functions are actually named | ||
9167 | something starting with __ and the normal name is an alias. */ | ||
9168 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
9169 | choke me | ||
9170 | #endif | ||
9171 | |||
9172 | int | ||
9173 | main () | ||
9174 | { | ||
9175 | return $ac_func (); | ||
9176 | ; | ||
9177 | return 0; | ||
9178 | } | ||
9179 | _ACEOF | ||
9180 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9181 | if { (ac_try="$ac_link" | ||
9182 | case "(($ac_try" in | ||
9183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9184 | *) ac_try_echo=$ac_try;; | ||
9185 | esac | ||
9186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9187 | (eval "$ac_link") 2>conftest.er1 | ||
9188 | ac_status=$? | ||
9189 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9190 | rm -f conftest.er1 | ||
9191 | cat conftest.err >&5 | ||
9192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9193 | (exit $ac_status); } && { | ||
9194 | test -z "$ac_c_werror_flag" || | ||
9195 | test ! -s conftest.err | ||
9196 | } && test -s conftest$ac_exeext && | ||
9197 | $as_test_x conftest$ac_exeext; then | ||
9198 | eval "$as_ac_var=yes" | ||
9199 | else | ||
9200 | echo "$as_me: failed program was:" >&5 | ||
9201 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9202 | |||
9203 | eval "$as_ac_var=no" | ||
9204 | fi | ||
9205 | |||
9206 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9207 | conftest$ac_exeext conftest.$ac_ext | ||
9208 | fi | ||
9209 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
9210 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9211 | echo "${ECHO_T}$ac_res" >&6; } | ||
9212 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9213 | cat >>confdefs.h <<_ACEOF | ||
9214 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9215 | _ACEOF | ||
9216 | |||
9217 | fi | ||
9218 | done | ||
9219 | |||
9220 | MANTYPE=man | ||
9221 | TEST_SHELL=ksh | ||
9222 | ;; | ||
9223 | *-*-unicosmk*) | ||
9224 | |||
9225 | cat >>confdefs.h <<\_ACEOF | ||
9226 | #define NO_SSH_LASTLOG 1 | ||
9227 | _ACEOF | ||
9228 | |||
9229 | cat >>confdefs.h <<\_ACEOF | ||
9230 | #define SETEUID_BREAKS_SETUID 1 | ||
9231 | _ACEOF | ||
9232 | |||
9233 | cat >>confdefs.h <<\_ACEOF | ||
9234 | #define BROKEN_SETREUID 1 | ||
9235 | _ACEOF | ||
9236 | |||
9237 | cat >>confdefs.h <<\_ACEOF | ||
9238 | #define BROKEN_SETREGID 1 | ||
9239 | _ACEOF | ||
9240 | |||
9241 | cat >>confdefs.h <<\_ACEOF | ||
9242 | #define USE_PIPES 1 | ||
9243 | _ACEOF | ||
9244 | |||
9245 | cat >>confdefs.h <<\_ACEOF | ||
9246 | #define DISABLE_FD_PASSING 1 | ||
9247 | _ACEOF | ||
9248 | |||
9249 | LDFLAGS="$LDFLAGS" | ||
9250 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
9251 | MANTYPE=cat | ||
9252 | ;; | ||
9253 | *-*-unicosmp*) | ||
9254 | cat >>confdefs.h <<\_ACEOF | ||
9255 | #define SETEUID_BREAKS_SETUID 1 | ||
9256 | _ACEOF | ||
9257 | |||
9258 | cat >>confdefs.h <<\_ACEOF | ||
9259 | #define BROKEN_SETREUID 1 | ||
9260 | _ACEOF | ||
9261 | |||
9262 | cat >>confdefs.h <<\_ACEOF | ||
9263 | #define BROKEN_SETREGID 1 | ||
9264 | _ACEOF | ||
9265 | |||
9266 | cat >>confdefs.h <<\_ACEOF | ||
9267 | #define WITH_ABBREV_NO_TTY 1 | ||
9268 | _ACEOF | ||
9269 | |||
9270 | cat >>confdefs.h <<\_ACEOF | ||
9271 | #define USE_PIPES 1 | ||
9272 | _ACEOF | ||
9273 | |||
9274 | cat >>confdefs.h <<\_ACEOF | ||
9275 | #define DISABLE_FD_PASSING 1 | ||
9276 | _ACEOF | ||
9277 | |||
9278 | LDFLAGS="$LDFLAGS" | ||
9279 | LIBS="$LIBS -lgen -lacid -ldb" | ||
9280 | MANTYPE=cat | ||
9281 | ;; | ||
9282 | *-*-unicos*) | ||
9283 | cat >>confdefs.h <<\_ACEOF | ||
9284 | #define SETEUID_BREAKS_SETUID 1 | ||
9285 | _ACEOF | ||
9286 | |||
9287 | cat >>confdefs.h <<\_ACEOF | ||
9288 | #define BROKEN_SETREUID 1 | ||
9289 | _ACEOF | ||
9290 | |||
9291 | cat >>confdefs.h <<\_ACEOF | ||
9292 | #define BROKEN_SETREGID 1 | ||
9293 | _ACEOF | ||
9294 | |||
9295 | cat >>confdefs.h <<\_ACEOF | ||
9296 | #define USE_PIPES 1 | ||
9297 | _ACEOF | ||
9298 | |||
9299 | cat >>confdefs.h <<\_ACEOF | ||
9300 | #define DISABLE_FD_PASSING 1 | ||
9301 | _ACEOF | ||
9302 | |||
9303 | cat >>confdefs.h <<\_ACEOF | ||
9304 | #define NO_SSH_LASTLOG 1 | ||
9305 | _ACEOF | ||
9306 | |||
9307 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
9308 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
9309 | MANTYPE=cat | ||
9310 | ;; | ||
9311 | *-dec-osf*) | ||
9312 | { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5 | ||
9313 | echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; } | ||
9314 | no_osfsia="" | ||
9315 | |||
9316 | # Check whether --with-osfsia was given. | ||
9317 | if test "${with_osfsia+set}" = set; then | ||
9318 | withval=$with_osfsia; | ||
9319 | if test "x$withval" = "xno" ; then | ||
9320 | { echo "$as_me:$LINENO: result: disabled" >&5 | ||
9321 | echo "${ECHO_T}disabled" >&6; } | ||
9322 | no_osfsia=1 | ||
9323 | fi | ||
9324 | |||
9325 | fi | ||
9326 | |||
9327 | if test -z "$no_osfsia" ; then | ||
9328 | if test -f /etc/sia/matrix.conf; then | ||
9329 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
9330 | echo "${ECHO_T}yes" >&6; } | ||
9331 | |||
9332 | cat >>confdefs.h <<\_ACEOF | ||
9333 | #define HAVE_OSF_SIA 1 | ||
9334 | _ACEOF | ||
9335 | |||
9336 | |||
9337 | cat >>confdefs.h <<\_ACEOF | ||
9338 | #define DISABLE_LOGIN 1 | ||
9339 | _ACEOF | ||
9340 | |||
9341 | cat >>confdefs.h <<\_ACEOF | ||
9342 | #define DISABLE_FD_PASSING 1 | ||
9343 | _ACEOF | ||
9344 | |||
9345 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
9346 | SIA_MSG="yes" | ||
9347 | else | ||
9348 | { echo "$as_me:$LINENO: result: no" >&5 | ||
9349 | echo "${ECHO_T}no" >&6; } | ||
9350 | |||
9351 | cat >>confdefs.h <<\_ACEOF | ||
9352 | #define LOCKED_PASSWD_SUBSTR "Nologin" | ||
9353 | _ACEOF | ||
9354 | |||
9355 | fi | ||
9356 | fi | ||
9357 | cat >>confdefs.h <<\_ACEOF | ||
9358 | #define BROKEN_GETADDRINFO 1 | ||
9359 | _ACEOF | ||
9360 | |||
9361 | cat >>confdefs.h <<\_ACEOF | ||
9362 | #define SETEUID_BREAKS_SETUID 1 | ||
9363 | _ACEOF | ||
9364 | |||
9365 | cat >>confdefs.h <<\_ACEOF | ||
9366 | #define BROKEN_SETREUID 1 | ||
9367 | _ACEOF | ||
9368 | |||
9369 | cat >>confdefs.h <<\_ACEOF | ||
9370 | #define BROKEN_SETREGID 1 | ||
9371 | _ACEOF | ||
9372 | |||
9373 | |||
9374 | cat >>confdefs.h <<\_ACEOF | ||
9375 | #define BROKEN_READV_COMPARISON 1 | ||
9376 | _ACEOF | ||
9377 | |||
9378 | ;; | ||
9379 | |||
9380 | *-*-nto-qnx*) | ||
9381 | cat >>confdefs.h <<\_ACEOF | ||
9382 | #define USE_PIPES 1 | ||
9383 | _ACEOF | ||
9384 | |||
9385 | cat >>confdefs.h <<\_ACEOF | ||
9386 | #define NO_X11_UNIX_SOCKETS 1 | ||
9387 | _ACEOF | ||
9388 | |||
9389 | |||
9390 | cat >>confdefs.h <<\_ACEOF | ||
9391 | #define MISSING_NFDBITS 1 | ||
9392 | _ACEOF | ||
9393 | |||
9394 | |||
9395 | cat >>confdefs.h <<\_ACEOF | ||
9396 | #define MISSING_HOWMANY 1 | ||
9397 | _ACEOF | ||
9398 | |||
9399 | |||
9400 | cat >>confdefs.h <<\_ACEOF | ||
9401 | #define MISSING_FD_MASK 1 | ||
9402 | _ACEOF | ||
9403 | |||
9404 | cat >>confdefs.h <<\_ACEOF | ||
9405 | #define DISABLE_LASTLOG 1 | ||
9406 | _ACEOF | ||
9407 | |||
9408 | cat >>confdefs.h <<\_ACEOF | ||
9409 | #define SSHD_ACQUIRES_CTTY 1 | ||
9410 | _ACEOF | ||
9411 | |||
9412 | |||
9413 | cat >>confdefs.h <<\_ACEOF | ||
9414 | #define BROKEN_SHADOW_EXPIRE 1 | ||
9415 | _ACEOF | ||
9416 | |||
9417 | enable_etc_default_login=no # has incompatible /etc/default/login | ||
9418 | case "$host" in | ||
9419 | *-*-nto-qnx6*) | ||
9420 | cat >>confdefs.h <<\_ACEOF | ||
9421 | #define DISABLE_FD_PASSING 1 | ||
9422 | _ACEOF | ||
9423 | |||
9424 | ;; | ||
9425 | esac | ||
9426 | ;; | ||
9427 | |||
9428 | *-*-ultrix*) | ||
9429 | |||
9430 | cat >>confdefs.h <<\_ACEOF | ||
9431 | #define BROKEN_GETGROUPS 1 | ||
9432 | _ACEOF | ||
9433 | |||
9434 | |||
9435 | cat >>confdefs.h <<\_ACEOF | ||
9436 | #define BROKEN_MMAP 1 | ||
9437 | _ACEOF | ||
9438 | |||
9439 | cat >>confdefs.h <<\_ACEOF | ||
9440 | #define NEED_SETPGRP 1 | ||
9441 | _ACEOF | ||
9442 | |||
9443 | |||
9444 | cat >>confdefs.h <<\_ACEOF | ||
9445 | #define HAVE_SYS_SYSLOG_H 1 | ||
9446 | _ACEOF | ||
9447 | |||
9448 | ;; | ||
9449 | |||
9450 | *-*-lynxos) | ||
9451 | CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" | ||
9452 | cat >>confdefs.h <<\_ACEOF | ||
9453 | #define MISSING_HOWMANY 1 | ||
9454 | _ACEOF | ||
9455 | |||
9456 | |||
9457 | cat >>confdefs.h <<\_ACEOF | ||
9458 | #define BROKEN_SETVBUF 1 | ||
9459 | _ACEOF | ||
9460 | |||
9461 | ;; | ||
9462 | esac | ||
9463 | |||
9464 | { echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5 | ||
9465 | echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; } | ||
9466 | if test "$cross_compiling" = yes; then | ||
9467 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5 | ||
9468 | echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} | ||
9469 | |||
9470 | else | ||
9471 | cat >conftest.$ac_ext <<_ACEOF | ||
9472 | /* confdefs.h. */ | ||
9473 | _ACEOF | ||
9474 | cat confdefs.h >>conftest.$ac_ext | ||
9475 | cat >>conftest.$ac_ext <<_ACEOF | ||
9476 | /* end confdefs.h. */ | ||
9477 | |||
9478 | #include <stdio.h> | ||
9479 | int main(){exit(0);} | ||
9480 | |||
9481 | _ACEOF | ||
9482 | rm -f conftest$ac_exeext | ||
9483 | if { (ac_try="$ac_link" | ||
9484 | case "(($ac_try" in | ||
9485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9486 | *) ac_try_echo=$ac_try;; | ||
9487 | esac | ||
9488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9489 | (eval "$ac_link") 2>&5 | ||
9490 | ac_status=$? | ||
9491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9492 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9493 | { (case "(($ac_try" in | ||
9494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9495 | *) ac_try_echo=$ac_try;; | ||
9496 | esac | ||
9497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9498 | (eval "$ac_try") 2>&5 | ||
9499 | ac_status=$? | ||
9500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9501 | (exit $ac_status); }; }; then | ||
9502 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
9503 | echo "${ECHO_T}yes" >&6; } | ||
9504 | else | ||
9505 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9506 | echo "$as_me: failed program was:" >&5 | ||
9507 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9508 | |||
9509 | ( exit $ac_status ) | ||
9510 | |||
9511 | { echo "$as_me:$LINENO: result: no" >&5 | ||
9512 | echo "${ECHO_T}no" >&6; } | ||
9513 | { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5 | ||
9514 | echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;} | ||
9515 | { (exit 1); exit 1; }; } | ||
9516 | |||
9517 | fi | ||
9518 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9519 | fi | ||
9520 | |||
9521 | |||
9522 | |||
9523 | # Checks for libraries. | ||
9524 | { echo "$as_me:$LINENO: checking for yp_match" >&5 | ||
9525 | echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; } | ||
9526 | if test "${ac_cv_func_yp_match+set}" = set; then | ||
9527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9528 | else | ||
9529 | cat >conftest.$ac_ext <<_ACEOF | ||
9530 | /* confdefs.h. */ | ||
9531 | _ACEOF | ||
9532 | cat confdefs.h >>conftest.$ac_ext | ||
9533 | cat >>conftest.$ac_ext <<_ACEOF | ||
9534 | /* end confdefs.h. */ | ||
9535 | /* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match. | ||
9536 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9537 | #define yp_match innocuous_yp_match | ||
9538 | |||
9539 | /* System header to define __stub macros and hopefully few prototypes, | ||
9540 | which can conflict with char yp_match (); below. | ||
9541 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9542 | <limits.h> exists even on freestanding compilers. */ | ||
9543 | |||
9544 | #ifdef __STDC__ | ||
9545 | # include <limits.h> | ||
9546 | #else | ||
9547 | # include <assert.h> | ||
9548 | #endif | ||
9549 | |||
9550 | #undef yp_match | ||
9551 | |||
9552 | /* Override any GCC internal prototype to avoid an error. | ||
9553 | Use char because int might match the return type of a GCC | ||
9554 | builtin and then its argument prototype would still apply. */ | ||
9555 | #ifdef __cplusplus | ||
9556 | extern "C" | ||
9557 | #endif | ||
9558 | char yp_match (); | ||
9559 | /* The GNU C library defines this for functions which it implements | ||
9560 | to always fail with ENOSYS. Some functions are actually named | ||
9561 | something starting with __ and the normal name is an alias. */ | ||
9562 | #if defined __stub_yp_match || defined __stub___yp_match | ||
9563 | choke me | ||
9564 | #endif | ||
9565 | |||
9566 | int | ||
9567 | main () | ||
9568 | { | ||
9569 | return yp_match (); | ||
9570 | ; | ||
9571 | return 0; | ||
9572 | } | ||
9573 | _ACEOF | ||
9574 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9575 | if { (ac_try="$ac_link" | ||
9576 | case "(($ac_try" in | ||
9577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9578 | *) ac_try_echo=$ac_try;; | ||
9579 | esac | ||
9580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9581 | (eval "$ac_link") 2>conftest.er1 | ||
9582 | ac_status=$? | ||
9583 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9584 | rm -f conftest.er1 | ||
9585 | cat conftest.err >&5 | ||
9586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9587 | (exit $ac_status); } && { | ||
9588 | test -z "$ac_c_werror_flag" || | ||
9589 | test ! -s conftest.err | ||
9590 | } && test -s conftest$ac_exeext && | ||
9591 | $as_test_x conftest$ac_exeext; then | ||
9592 | ac_cv_func_yp_match=yes | ||
9593 | else | ||
9594 | echo "$as_me: failed program was:" >&5 | ||
9595 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9596 | |||
9597 | ac_cv_func_yp_match=no | ||
9598 | fi | ||
9599 | |||
9600 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9601 | conftest$ac_exeext conftest.$ac_ext | ||
9602 | fi | ||
9603 | { echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5 | ||
9604 | echo "${ECHO_T}$ac_cv_func_yp_match" >&6; } | ||
9605 | if test $ac_cv_func_yp_match = yes; then | ||
9606 | : | ||
9607 | else | ||
9608 | |||
9609 | { echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5 | ||
9610 | echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; } | ||
9611 | if test "${ac_cv_lib_nsl_yp_match+set}" = set; then | ||
9612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9613 | else | ||
9614 | ac_check_lib_save_LIBS=$LIBS | ||
9615 | LIBS="-lnsl $LIBS" | ||
9616 | cat >conftest.$ac_ext <<_ACEOF | ||
9617 | /* confdefs.h. */ | ||
9618 | _ACEOF | ||
9619 | cat confdefs.h >>conftest.$ac_ext | ||
9620 | cat >>conftest.$ac_ext <<_ACEOF | ||
9621 | /* end confdefs.h. */ | ||
9622 | |||
9623 | /* Override any GCC internal prototype to avoid an error. | ||
9624 | Use char because int might match the return type of a GCC | ||
9625 | builtin and then its argument prototype would still apply. */ | ||
9626 | #ifdef __cplusplus | ||
9627 | extern "C" | ||
9628 | #endif | ||
9629 | char yp_match (); | ||
9630 | int | ||
9631 | main () | ||
9632 | { | ||
9633 | return yp_match (); | ||
9634 | ; | ||
9635 | return 0; | ||
9636 | } | ||
9637 | _ACEOF | ||
9638 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9639 | if { (ac_try="$ac_link" | ||
9640 | case "(($ac_try" in | ||
9641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9642 | *) ac_try_echo=$ac_try;; | ||
9643 | esac | ||
9644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9645 | (eval "$ac_link") 2>conftest.er1 | ||
9646 | ac_status=$? | ||
9647 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9648 | rm -f conftest.er1 | ||
9649 | cat conftest.err >&5 | ||
9650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9651 | (exit $ac_status); } && { | ||
9652 | test -z "$ac_c_werror_flag" || | ||
9653 | test ! -s conftest.err | ||
9654 | } && test -s conftest$ac_exeext && | ||
9655 | $as_test_x conftest$ac_exeext; then | ||
9656 | ac_cv_lib_nsl_yp_match=yes | ||
9657 | else | ||
9658 | echo "$as_me: failed program was:" >&5 | ||
9659 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9660 | |||
9661 | ac_cv_lib_nsl_yp_match=no | ||
9662 | fi | ||
9663 | |||
9664 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9665 | conftest$ac_exeext conftest.$ac_ext | ||
9666 | LIBS=$ac_check_lib_save_LIBS | ||
9667 | fi | ||
9668 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5 | ||
9669 | echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; } | ||
9670 | if test $ac_cv_lib_nsl_yp_match = yes; then | ||
9671 | cat >>confdefs.h <<_ACEOF | ||
9672 | #define HAVE_LIBNSL 1 | ||
9673 | _ACEOF | ||
9674 | |||
9675 | LIBS="-lnsl $LIBS" | ||
9676 | |||
9677 | fi | ||
9678 | |||
9679 | fi | ||
9680 | |||
9681 | { echo "$as_me:$LINENO: checking for setsockopt" >&5 | ||
9682 | echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } | ||
9683 | if test "${ac_cv_func_setsockopt+set}" = set; then | ||
9684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9685 | else | ||
9686 | cat >conftest.$ac_ext <<_ACEOF | ||
9687 | /* confdefs.h. */ | ||
9688 | _ACEOF | ||
9689 | cat confdefs.h >>conftest.$ac_ext | ||
9690 | cat >>conftest.$ac_ext <<_ACEOF | ||
9691 | /* end confdefs.h. */ | ||
9692 | /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. | ||
9693 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9694 | #define setsockopt innocuous_setsockopt | ||
9695 | |||
9696 | /* System header to define __stub macros and hopefully few prototypes, | ||
9697 | which can conflict with char setsockopt (); below. | ||
9698 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9699 | <limits.h> exists even on freestanding compilers. */ | ||
9700 | |||
9701 | #ifdef __STDC__ | ||
9702 | # include <limits.h> | ||
9703 | #else | ||
9704 | # include <assert.h> | ||
9705 | #endif | ||
9706 | |||
9707 | #undef setsockopt | ||
9708 | |||
9709 | /* Override any GCC internal prototype to avoid an error. | ||
9710 | Use char because int might match the return type of a GCC | ||
9711 | builtin and then its argument prototype would still apply. */ | ||
9712 | #ifdef __cplusplus | ||
9713 | extern "C" | ||
9714 | #endif | ||
9715 | char setsockopt (); | ||
9716 | /* The GNU C library defines this for functions which it implements | ||
9717 | to always fail with ENOSYS. Some functions are actually named | ||
9718 | something starting with __ and the normal name is an alias. */ | ||
9719 | #if defined __stub_setsockopt || defined __stub___setsockopt | ||
9720 | choke me | ||
9721 | #endif | ||
9722 | |||
9723 | int | ||
9724 | main () | ||
9725 | { | ||
9726 | return setsockopt (); | ||
9727 | ; | ||
9728 | return 0; | ||
9729 | } | ||
9730 | _ACEOF | ||
9731 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9732 | if { (ac_try="$ac_link" | ||
9733 | case "(($ac_try" in | ||
9734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9735 | *) ac_try_echo=$ac_try;; | ||
9736 | esac | ||
9737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9738 | (eval "$ac_link") 2>conftest.er1 | ||
9739 | ac_status=$? | ||
9740 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9741 | rm -f conftest.er1 | ||
9742 | cat conftest.err >&5 | ||
9743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9744 | (exit $ac_status); } && { | ||
9745 | test -z "$ac_c_werror_flag" || | ||
9746 | test ! -s conftest.err | ||
9747 | } && test -s conftest$ac_exeext && | ||
9748 | $as_test_x conftest$ac_exeext; then | ||
9749 | ac_cv_func_setsockopt=yes | ||
9750 | else | ||
9751 | echo "$as_me: failed program was:" >&5 | ||
9752 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9753 | |||
9754 | ac_cv_func_setsockopt=no | ||
9755 | fi | ||
9756 | |||
9757 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9758 | conftest$ac_exeext conftest.$ac_ext | ||
9759 | fi | ||
9760 | { echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 | ||
9761 | echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } | ||
9762 | if test $ac_cv_func_setsockopt = yes; then | ||
9763 | : | ||
9764 | else | ||
9765 | |||
9766 | { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 | ||
9767 | echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } | ||
9768 | if test "${ac_cv_lib_socket_setsockopt+set}" = set; then | ||
9769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9770 | else | ||
9771 | ac_check_lib_save_LIBS=$LIBS | ||
9772 | LIBS="-lsocket $LIBS" | ||
9773 | cat >conftest.$ac_ext <<_ACEOF | ||
9774 | /* confdefs.h. */ | ||
9775 | _ACEOF | ||
9776 | cat confdefs.h >>conftest.$ac_ext | ||
9777 | cat >>conftest.$ac_ext <<_ACEOF | ||
9778 | /* end confdefs.h. */ | ||
9779 | |||
9780 | /* Override any GCC internal prototype to avoid an error. | ||
9781 | Use char because int might match the return type of a GCC | ||
9782 | builtin and then its argument prototype would still apply. */ | ||
9783 | #ifdef __cplusplus | ||
9784 | extern "C" | ||
9785 | #endif | ||
9786 | char setsockopt (); | ||
9787 | int | ||
9788 | main () | ||
9789 | { | ||
9790 | return setsockopt (); | ||
9791 | ; | ||
9792 | return 0; | ||
9793 | } | ||
9794 | _ACEOF | ||
9795 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9796 | if { (ac_try="$ac_link" | ||
9797 | case "(($ac_try" in | ||
9798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9799 | *) ac_try_echo=$ac_try;; | ||
9800 | esac | ||
9801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9802 | (eval "$ac_link") 2>conftest.er1 | ||
9803 | ac_status=$? | ||
9804 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9805 | rm -f conftest.er1 | ||
9806 | cat conftest.err >&5 | ||
9807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9808 | (exit $ac_status); } && { | ||
9809 | test -z "$ac_c_werror_flag" || | ||
9810 | test ! -s conftest.err | ||
9811 | } && test -s conftest$ac_exeext && | ||
9812 | $as_test_x conftest$ac_exeext; then | ||
9813 | ac_cv_lib_socket_setsockopt=yes | ||
9814 | else | ||
9815 | echo "$as_me: failed program was:" >&5 | ||
9816 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9817 | |||
9818 | ac_cv_lib_socket_setsockopt=no | ||
9819 | fi | ||
9820 | |||
9821 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9822 | conftest$ac_exeext conftest.$ac_ext | ||
9823 | LIBS=$ac_check_lib_save_LIBS | ||
9824 | fi | ||
9825 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
9826 | echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } | ||
9827 | if test $ac_cv_lib_socket_setsockopt = yes; then | ||
9828 | cat >>confdefs.h <<_ACEOF | ||
9829 | #define HAVE_LIBSOCKET 1 | ||
9830 | _ACEOF | ||
9831 | |||
9832 | LIBS="-lsocket $LIBS" | ||
9833 | |||
9834 | fi | ||
9835 | |||
9836 | fi | ||
9837 | |||
9838 | |||
9839 | |||
9840 | for ac_func in dirname | ||
9841 | do | ||
9842 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9843 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
9844 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
9845 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9847 | else | ||
9848 | cat >conftest.$ac_ext <<_ACEOF | ||
9849 | /* confdefs.h. */ | ||
9850 | _ACEOF | ||
9851 | cat confdefs.h >>conftest.$ac_ext | ||
9852 | cat >>conftest.$ac_ext <<_ACEOF | ||
9853 | /* end confdefs.h. */ | ||
9854 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
9855 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9856 | #define $ac_func innocuous_$ac_func | ||
9857 | |||
9858 | /* System header to define __stub macros and hopefully few prototypes, | ||
9859 | which can conflict with char $ac_func (); below. | ||
9860 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9861 | <limits.h> exists even on freestanding compilers. */ | ||
9862 | |||
9863 | #ifdef __STDC__ | ||
9864 | # include <limits.h> | ||
9865 | #else | ||
9866 | # include <assert.h> | ||
9867 | #endif | ||
9868 | |||
9869 | #undef $ac_func | ||
9870 | |||
9871 | /* Override any GCC internal prototype to avoid an error. | ||
9872 | Use char because int might match the return type of a GCC | ||
9873 | builtin and then its argument prototype would still apply. */ | ||
9874 | #ifdef __cplusplus | ||
9875 | extern "C" | ||
9876 | #endif | ||
9877 | char $ac_func (); | ||
9878 | /* The GNU C library defines this for functions which it implements | ||
9879 | to always fail with ENOSYS. Some functions are actually named | ||
9880 | something starting with __ and the normal name is an alias. */ | ||
9881 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
9882 | choke me | ||
9883 | #endif | ||
9884 | |||
9885 | int | ||
9886 | main () | ||
9887 | { | ||
9888 | return $ac_func (); | ||
9889 | ; | ||
9890 | return 0; | ||
9891 | } | ||
9892 | _ACEOF | ||
9893 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9894 | if { (ac_try="$ac_link" | ||
9895 | case "(($ac_try" in | ||
9896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9897 | *) ac_try_echo=$ac_try;; | ||
9898 | esac | ||
9899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9900 | (eval "$ac_link") 2>conftest.er1 | ||
9901 | ac_status=$? | ||
9902 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9903 | rm -f conftest.er1 | ||
9904 | cat conftest.err >&5 | ||
9905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9906 | (exit $ac_status); } && { | ||
9907 | test -z "$ac_c_werror_flag" || | ||
9908 | test ! -s conftest.err | ||
9909 | } && test -s conftest$ac_exeext && | ||
9910 | $as_test_x conftest$ac_exeext; then | ||
9911 | eval "$as_ac_var=yes" | ||
9912 | else | ||
9913 | echo "$as_me: failed program was:" >&5 | ||
9914 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9915 | |||
9916 | eval "$as_ac_var=no" | ||
9917 | fi | ||
9918 | |||
9919 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9920 | conftest$ac_exeext conftest.$ac_ext | ||
9921 | fi | ||
9922 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
9923 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9924 | echo "${ECHO_T}$ac_res" >&6; } | ||
9925 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
9926 | cat >>confdefs.h <<_ACEOF | ||
9927 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9928 | _ACEOF | ||
9929 | |||
9930 | for ac_header in libgen.h | ||
9931 | do | ||
9932 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
9933 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9934 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
9935 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
9936 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9938 | fi | ||
9939 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
9940 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9941 | echo "${ECHO_T}$ac_res" >&6; } | ||
9942 | else | ||
9943 | # Is the header compilable? | ||
9944 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
9945 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
9946 | cat >conftest.$ac_ext <<_ACEOF | ||
9947 | /* confdefs.h. */ | ||
9948 | _ACEOF | ||
9949 | cat confdefs.h >>conftest.$ac_ext | ||
9950 | cat >>conftest.$ac_ext <<_ACEOF | ||
9951 | /* end confdefs.h. */ | ||
9952 | $ac_includes_default | ||
9953 | #include <$ac_header> | ||
9954 | _ACEOF | ||
9955 | rm -f conftest.$ac_objext | ||
9956 | if { (ac_try="$ac_compile" | ||
9957 | case "(($ac_try" in | ||
9958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9959 | *) ac_try_echo=$ac_try;; | ||
9960 | esac | ||
9961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9962 | (eval "$ac_compile") 2>conftest.er1 | ||
9963 | ac_status=$? | ||
9964 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9965 | rm -f conftest.er1 | ||
9966 | cat conftest.err >&5 | ||
9967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9968 | (exit $ac_status); } && { | ||
9969 | test -z "$ac_c_werror_flag" || | ||
9970 | test ! -s conftest.err | ||
9971 | } && test -s conftest.$ac_objext; then | ||
9972 | ac_header_compiler=yes | ||
9973 | else | ||
9974 | echo "$as_me: failed program was:" >&5 | ||
9975 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9976 | |||
9977 | ac_header_compiler=no | ||
9978 | fi | ||
9979 | |||
9980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9981 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
9982 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
9983 | |||
9984 | # Is the header present? | ||
9985 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
9986 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
9987 | cat >conftest.$ac_ext <<_ACEOF | ||
9988 | /* confdefs.h. */ | ||
9989 | _ACEOF | ||
9990 | cat confdefs.h >>conftest.$ac_ext | ||
9991 | cat >>conftest.$ac_ext <<_ACEOF | ||
9992 | /* end confdefs.h. */ | ||
9993 | #include <$ac_header> | ||
9994 | _ACEOF | ||
9995 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
9996 | case "(($ac_try" in | ||
9997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9998 | *) ac_try_echo=$ac_try;; | ||
9999 | esac | ||
10000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10001 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
10002 | ac_status=$? | ||
10003 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10004 | rm -f conftest.er1 | ||
10005 | cat conftest.err >&5 | ||
10006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10007 | (exit $ac_status); } >/dev/null && { | ||
10008 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
10009 | test ! -s conftest.err | ||
10010 | }; then | ||
10011 | ac_header_preproc=yes | ||
10012 | else | ||
10013 | echo "$as_me: failed program was:" >&5 | ||
10014 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10015 | |||
10016 | ac_header_preproc=no | ||
10017 | fi | ||
10018 | |||
10019 | rm -f conftest.err conftest.$ac_ext | ||
10020 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10021 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
10022 | |||
10023 | # So? What about this header? | ||
10024 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10025 | yes:no: ) | ||
10026 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10027 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10028 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
10029 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
10030 | ac_header_preproc=yes | ||
10031 | ;; | ||
10032 | no:yes:* ) | ||
10033 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
10034 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
10035 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
10036 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
10037 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
10038 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
10039 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
10040 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10041 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
10042 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
10043 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
10044 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
10045 | ( cat <<\_ASBOX | ||
10046 | ## ------------------------------------------- ## | ||
10047 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
10048 | ## ------------------------------------------- ## | ||
10049 | _ASBOX | ||
10050 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
10051 | ;; | ||
10052 | esac | ||
10053 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10054 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
10055 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10057 | else | ||
10058 | eval "$as_ac_Header=\$ac_header_preproc" | ||
10059 | fi | ||
10060 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
10061 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10062 | echo "${ECHO_T}$ac_res" >&6; } | ||
10063 | |||
10064 | fi | ||
10065 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
10066 | cat >>confdefs.h <<_ACEOF | ||
10067 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
10068 | _ACEOF | ||
10069 | |||
10070 | fi | ||
10071 | |||
10072 | done | ||
10073 | |||
10074 | else | ||
10075 | |||
10076 | { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5 | ||
10077 | echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; } | ||
10078 | if test "${ac_cv_lib_gen_dirname+set}" = set; then | ||
10079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10080 | else | ||
10081 | ac_check_lib_save_LIBS=$LIBS | ||
10082 | LIBS="-lgen $LIBS" | ||
10083 | cat >conftest.$ac_ext <<_ACEOF | ||
10084 | /* confdefs.h. */ | ||
10085 | _ACEOF | ||
10086 | cat confdefs.h >>conftest.$ac_ext | ||
10087 | cat >>conftest.$ac_ext <<_ACEOF | ||
10088 | /* end confdefs.h. */ | ||
10089 | |||
10090 | /* Override any GCC internal prototype to avoid an error. | ||
10091 | Use char because int might match the return type of a GCC | ||
10092 | builtin and then its argument prototype would still apply. */ | ||
10093 | #ifdef __cplusplus | ||
10094 | extern "C" | ||
10095 | #endif | ||
10096 | char dirname (); | ||
10097 | int | ||
10098 | main () | ||
10099 | { | ||
10100 | return dirname (); | ||
10101 | ; | ||
10102 | return 0; | ||
10103 | } | ||
10104 | _ACEOF | ||
10105 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10106 | if { (ac_try="$ac_link" | ||
10107 | case "(($ac_try" in | ||
10108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10109 | *) ac_try_echo=$ac_try;; | ||
10110 | esac | ||
10111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10112 | (eval "$ac_link") 2>conftest.er1 | ||
10113 | ac_status=$? | ||
10114 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10115 | rm -f conftest.er1 | ||
10116 | cat conftest.err >&5 | ||
10117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10118 | (exit $ac_status); } && { | ||
10119 | test -z "$ac_c_werror_flag" || | ||
10120 | test ! -s conftest.err | ||
10121 | } && test -s conftest$ac_exeext && | ||
10122 | $as_test_x conftest$ac_exeext; then | ||
10123 | ac_cv_lib_gen_dirname=yes | ||
10124 | else | ||
10125 | echo "$as_me: failed program was:" >&5 | ||
10126 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10127 | |||
10128 | ac_cv_lib_gen_dirname=no | ||
10129 | fi | ||
10130 | |||
10131 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10132 | conftest$ac_exeext conftest.$ac_ext | ||
10133 | LIBS=$ac_check_lib_save_LIBS | ||
10134 | fi | ||
10135 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5 | ||
10136 | echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; } | ||
10137 | if test $ac_cv_lib_gen_dirname = yes; then | ||
10138 | |||
10139 | { echo "$as_me:$LINENO: checking for broken dirname" >&5 | ||
10140 | echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; } | ||
10141 | if test "${ac_cv_have_broken_dirname+set}" = set; then | ||
10142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10143 | else | ||
10144 | |||
10145 | save_LIBS="$LIBS" | ||
10146 | LIBS="$LIBS -lgen" | ||
10147 | if test "$cross_compiling" = yes; then | ||
10148 | ac_cv_have_broken_dirname="no" | ||
10149 | else | ||
10150 | cat >conftest.$ac_ext <<_ACEOF | ||
10151 | /* confdefs.h. */ | ||
10152 | _ACEOF | ||
10153 | cat confdefs.h >>conftest.$ac_ext | ||
10154 | cat >>conftest.$ac_ext <<_ACEOF | ||
10155 | /* end confdefs.h. */ | ||
10156 | |||
10157 | #include <libgen.h> | ||
10158 | #include <string.h> | ||
10159 | |||
10160 | int main(int argc, char **argv) { | ||
10161 | char *s, buf[32]; | ||
10162 | |||
10163 | strncpy(buf,"/etc", 32); | ||
10164 | s = dirname(buf); | ||
10165 | if (!s || strncmp(s, "/", 32) != 0) { | ||
10166 | exit(1); | ||
10167 | } else { | ||
10168 | exit(0); | ||
10169 | } | ||
10170 | } | ||
10171 | |||
10172 | _ACEOF | ||
10173 | rm -f conftest$ac_exeext | ||
10174 | if { (ac_try="$ac_link" | ||
10175 | case "(($ac_try" in | ||
10176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10177 | *) ac_try_echo=$ac_try;; | ||
10178 | esac | ||
10179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10180 | (eval "$ac_link") 2>&5 | ||
10181 | ac_status=$? | ||
10182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10183 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10184 | { (case "(($ac_try" in | ||
10185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10186 | *) ac_try_echo=$ac_try;; | ||
10187 | esac | ||
10188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10189 | (eval "$ac_try") 2>&5 | ||
10190 | ac_status=$? | ||
10191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10192 | (exit $ac_status); }; }; then | ||
10193 | ac_cv_have_broken_dirname="no" | ||
10194 | else | ||
10195 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10196 | echo "$as_me: failed program was:" >&5 | ||
10197 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10198 | |||
10199 | ( exit $ac_status ) | ||
10200 | ac_cv_have_broken_dirname="yes" | ||
10201 | fi | ||
10202 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10203 | fi | ||
10204 | |||
10205 | |||
10206 | LIBS="$save_LIBS" | ||
10207 | |||
10208 | fi | ||
10209 | { echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5 | ||
10210 | echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; } | ||
10211 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
10212 | LIBS="$LIBS -lgen" | ||
10213 | cat >>confdefs.h <<\_ACEOF | ||
10214 | #define HAVE_DIRNAME 1 | ||
10215 | _ACEOF | ||
10216 | |||
10217 | |||
10218 | for ac_header in libgen.h | ||
10219 | do | ||
10220 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
10221 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10222 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10223 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
10224 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10226 | fi | ||
10227 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
10228 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10229 | echo "${ECHO_T}$ac_res" >&6; } | ||
10230 | else | ||
10231 | # Is the header compilable? | ||
10232 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
10233 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
10234 | cat >conftest.$ac_ext <<_ACEOF | ||
10235 | /* confdefs.h. */ | ||
10236 | _ACEOF | ||
10237 | cat confdefs.h >>conftest.$ac_ext | ||
10238 | cat >>conftest.$ac_ext <<_ACEOF | ||
10239 | /* end confdefs.h. */ | ||
10240 | $ac_includes_default | ||
10241 | #include <$ac_header> | ||
10242 | _ACEOF | ||
10243 | rm -f conftest.$ac_objext | ||
10244 | if { (ac_try="$ac_compile" | ||
10245 | case "(($ac_try" in | ||
10246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10247 | *) ac_try_echo=$ac_try;; | ||
10248 | esac | ||
10249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10250 | (eval "$ac_compile") 2>conftest.er1 | ||
10251 | ac_status=$? | ||
10252 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10253 | rm -f conftest.er1 | ||
10254 | cat conftest.err >&5 | ||
10255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10256 | (exit $ac_status); } && { | ||
10257 | test -z "$ac_c_werror_flag" || | ||
10258 | test ! -s conftest.err | ||
10259 | } && test -s conftest.$ac_objext; then | ||
10260 | ac_header_compiler=yes | ||
10261 | else | ||
10262 | echo "$as_me: failed program was:" >&5 | ||
10263 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10264 | |||
10265 | ac_header_compiler=no | ||
10266 | fi | ||
10267 | |||
10268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10269 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10270 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
10271 | |||
10272 | # Is the header present? | ||
10273 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
10274 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
10275 | cat >conftest.$ac_ext <<_ACEOF | ||
10276 | /* confdefs.h. */ | ||
10277 | _ACEOF | ||
10278 | cat confdefs.h >>conftest.$ac_ext | ||
10279 | cat >>conftest.$ac_ext <<_ACEOF | ||
10280 | /* end confdefs.h. */ | ||
10281 | #include <$ac_header> | ||
10282 | _ACEOF | ||
10283 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
10284 | case "(($ac_try" in | ||
10285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10286 | *) ac_try_echo=$ac_try;; | ||
10287 | esac | ||
10288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10289 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
10290 | ac_status=$? | ||
10291 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10292 | rm -f conftest.er1 | ||
10293 | cat conftest.err >&5 | ||
10294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10295 | (exit $ac_status); } >/dev/null && { | ||
10296 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
10297 | test ! -s conftest.err | ||
10298 | }; then | ||
10299 | ac_header_preproc=yes | ||
10300 | else | ||
10301 | echo "$as_me: failed program was:" >&5 | ||
10302 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10303 | |||
10304 | ac_header_preproc=no | ||
10305 | fi | ||
10306 | |||
10307 | rm -f conftest.err conftest.$ac_ext | ||
10308 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10309 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
10310 | |||
10311 | # So? What about this header? | ||
10312 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10313 | yes:no: ) | ||
10314 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10315 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10316 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
10317 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
10318 | ac_header_preproc=yes | ||
10319 | ;; | ||
10320 | no:yes:* ) | ||
10321 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
10322 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
10323 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
10324 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
10325 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
10326 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
10327 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
10328 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10329 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
10330 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
10331 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
10332 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
10333 | ( cat <<\_ASBOX | ||
10334 | ## ------------------------------------------- ## | ||
10335 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
10336 | ## ------------------------------------------- ## | ||
10337 | _ASBOX | ||
10338 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
10339 | ;; | ||
10340 | esac | ||
10341 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10342 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
10343 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10345 | else | ||
10346 | eval "$as_ac_Header=\$ac_header_preproc" | ||
10347 | fi | ||
10348 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
10349 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10350 | echo "${ECHO_T}$ac_res" >&6; } | ||
10351 | |||
10352 | fi | ||
10353 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
10354 | cat >>confdefs.h <<_ACEOF | ||
10355 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
10356 | _ACEOF | ||
10357 | |||
10358 | fi | ||
10359 | |||
10360 | done | ||
10361 | |||
10362 | fi | ||
10363 | |||
10364 | fi | ||
10365 | |||
10366 | |||
10367 | fi | ||
10368 | done | ||
10369 | |||
10370 | |||
10371 | { echo "$as_me:$LINENO: checking for getspnam" >&5 | ||
10372 | echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; } | ||
10373 | if test "${ac_cv_func_getspnam+set}" = set; then | ||
10374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10375 | else | ||
10376 | cat >conftest.$ac_ext <<_ACEOF | ||
10377 | /* confdefs.h. */ | ||
10378 | _ACEOF | ||
10379 | cat confdefs.h >>conftest.$ac_ext | ||
10380 | cat >>conftest.$ac_ext <<_ACEOF | ||
10381 | /* end confdefs.h. */ | ||
10382 | /* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam. | ||
10383 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10384 | #define getspnam innocuous_getspnam | ||
10385 | |||
10386 | /* System header to define __stub macros and hopefully few prototypes, | ||
10387 | which can conflict with char getspnam (); below. | ||
10388 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10389 | <limits.h> exists even on freestanding compilers. */ | ||
10390 | |||
10391 | #ifdef __STDC__ | ||
10392 | # include <limits.h> | ||
10393 | #else | ||
10394 | # include <assert.h> | ||
10395 | #endif | ||
10396 | |||
10397 | #undef getspnam | ||
10398 | |||
10399 | /* Override any GCC internal prototype to avoid an error. | ||
10400 | Use char because int might match the return type of a GCC | ||
10401 | builtin and then its argument prototype would still apply. */ | ||
10402 | #ifdef __cplusplus | ||
10403 | extern "C" | ||
10404 | #endif | ||
10405 | char getspnam (); | ||
10406 | /* The GNU C library defines this for functions which it implements | ||
10407 | to always fail with ENOSYS. Some functions are actually named | ||
10408 | something starting with __ and the normal name is an alias. */ | ||
10409 | #if defined __stub_getspnam || defined __stub___getspnam | ||
10410 | choke me | ||
10411 | #endif | ||
10412 | |||
10413 | int | ||
10414 | main () | ||
10415 | { | ||
10416 | return getspnam (); | ||
10417 | ; | ||
10418 | return 0; | ||
10419 | } | ||
10420 | _ACEOF | ||
10421 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10422 | if { (ac_try="$ac_link" | ||
10423 | case "(($ac_try" in | ||
10424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10425 | *) ac_try_echo=$ac_try;; | ||
10426 | esac | ||
10427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10428 | (eval "$ac_link") 2>conftest.er1 | ||
10429 | ac_status=$? | ||
10430 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10431 | rm -f conftest.er1 | ||
10432 | cat conftest.err >&5 | ||
10433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10434 | (exit $ac_status); } && { | ||
10435 | test -z "$ac_c_werror_flag" || | ||
10436 | test ! -s conftest.err | ||
10437 | } && test -s conftest$ac_exeext && | ||
10438 | $as_test_x conftest$ac_exeext; then | ||
10439 | ac_cv_func_getspnam=yes | ||
10440 | else | ||
10441 | echo "$as_me: failed program was:" >&5 | ||
10442 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10443 | |||
10444 | ac_cv_func_getspnam=no | ||
10445 | fi | ||
10446 | |||
10447 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10448 | conftest$ac_exeext conftest.$ac_ext | ||
10449 | fi | ||
10450 | { echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5 | ||
10451 | echo "${ECHO_T}$ac_cv_func_getspnam" >&6; } | ||
10452 | if test $ac_cv_func_getspnam = yes; then | ||
10453 | : | ||
10454 | else | ||
10455 | { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5 | ||
10456 | echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; } | ||
10457 | if test "${ac_cv_lib_gen_getspnam+set}" = set; then | ||
10458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10459 | else | ||
10460 | ac_check_lib_save_LIBS=$LIBS | ||
10461 | LIBS="-lgen $LIBS" | ||
10462 | cat >conftest.$ac_ext <<_ACEOF | ||
10463 | /* confdefs.h. */ | ||
10464 | _ACEOF | ||
10465 | cat confdefs.h >>conftest.$ac_ext | ||
10466 | cat >>conftest.$ac_ext <<_ACEOF | ||
10467 | /* end confdefs.h. */ | ||
10468 | |||
10469 | /* Override any GCC internal prototype to avoid an error. | ||
10470 | Use char because int might match the return type of a GCC | ||
10471 | builtin and then its argument prototype would still apply. */ | ||
10472 | #ifdef __cplusplus | ||
10473 | extern "C" | ||
10474 | #endif | ||
10475 | char getspnam (); | ||
10476 | int | ||
10477 | main () | ||
10478 | { | ||
10479 | return getspnam (); | ||
10480 | ; | ||
10481 | return 0; | ||
10482 | } | ||
10483 | _ACEOF | ||
10484 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10485 | if { (ac_try="$ac_link" | ||
10486 | case "(($ac_try" in | ||
10487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10488 | *) ac_try_echo=$ac_try;; | ||
10489 | esac | ||
10490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10491 | (eval "$ac_link") 2>conftest.er1 | ||
10492 | ac_status=$? | ||
10493 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10494 | rm -f conftest.er1 | ||
10495 | cat conftest.err >&5 | ||
10496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10497 | (exit $ac_status); } && { | ||
10498 | test -z "$ac_c_werror_flag" || | ||
10499 | test ! -s conftest.err | ||
10500 | } && test -s conftest$ac_exeext && | ||
10501 | $as_test_x conftest$ac_exeext; then | ||
10502 | ac_cv_lib_gen_getspnam=yes | ||
10503 | else | ||
10504 | echo "$as_me: failed program was:" >&5 | ||
10505 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10506 | |||
10507 | ac_cv_lib_gen_getspnam=no | ||
10508 | fi | ||
10509 | |||
10510 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10511 | conftest$ac_exeext conftest.$ac_ext | ||
10512 | LIBS=$ac_check_lib_save_LIBS | ||
10513 | fi | ||
10514 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5 | ||
10515 | echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; } | ||
10516 | if test $ac_cv_lib_gen_getspnam = yes; then | ||
10517 | LIBS="$LIBS -lgen" | ||
10518 | fi | ||
10519 | |||
10520 | fi | ||
10521 | |||
10522 | { echo "$as_me:$LINENO: checking for library containing basename" >&5 | ||
10523 | echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; } | ||
10524 | if test "${ac_cv_search_basename+set}" = set; then | ||
10525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10526 | else | ||
10527 | ac_func_search_save_LIBS=$LIBS | ||
10528 | cat >conftest.$ac_ext <<_ACEOF | ||
10529 | /* confdefs.h. */ | ||
10530 | _ACEOF | ||
10531 | cat confdefs.h >>conftest.$ac_ext | ||
10532 | cat >>conftest.$ac_ext <<_ACEOF | ||
10533 | /* end confdefs.h. */ | ||
10534 | |||
10535 | /* Override any GCC internal prototype to avoid an error. | ||
10536 | Use char because int might match the return type of a GCC | ||
10537 | builtin and then its argument prototype would still apply. */ | ||
10538 | #ifdef __cplusplus | ||
10539 | extern "C" | ||
10540 | #endif | ||
10541 | char basename (); | ||
10542 | int | ||
10543 | main () | ||
10544 | { | ||
10545 | return basename (); | ||
10546 | ; | ||
10547 | return 0; | ||
10548 | } | ||
10549 | _ACEOF | ||
10550 | for ac_lib in '' gen; do | ||
10551 | if test -z "$ac_lib"; then | ||
10552 | ac_res="none required" | ||
10553 | else | ||
10554 | ac_res=-l$ac_lib | ||
10555 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
10556 | fi | ||
10557 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10558 | if { (ac_try="$ac_link" | ||
10559 | case "(($ac_try" in | ||
10560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10561 | *) ac_try_echo=$ac_try;; | ||
10562 | esac | ||
10563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10564 | (eval "$ac_link") 2>conftest.er1 | ||
10565 | ac_status=$? | ||
10566 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10567 | rm -f conftest.er1 | ||
10568 | cat conftest.err >&5 | ||
10569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10570 | (exit $ac_status); } && { | ||
10571 | test -z "$ac_c_werror_flag" || | ||
10572 | test ! -s conftest.err | ||
10573 | } && test -s conftest$ac_exeext && | ||
10574 | $as_test_x conftest$ac_exeext; then | ||
10575 | ac_cv_search_basename=$ac_res | ||
10576 | else | ||
10577 | echo "$as_me: failed program was:" >&5 | ||
10578 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10579 | |||
10580 | |||
10581 | fi | ||
10582 | |||
10583 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10584 | conftest$ac_exeext | ||
10585 | if test "${ac_cv_search_basename+set}" = set; then | ||
10586 | break | ||
10587 | fi | ||
10588 | done | ||
10589 | if test "${ac_cv_search_basename+set}" = set; then | ||
10590 | : | ||
10591 | else | ||
10592 | ac_cv_search_basename=no | ||
10593 | fi | ||
10594 | rm conftest.$ac_ext | ||
10595 | LIBS=$ac_func_search_save_LIBS | ||
10596 | fi | ||
10597 | { echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5 | ||
10598 | echo "${ECHO_T}$ac_cv_search_basename" >&6; } | ||
10599 | ac_res=$ac_cv_search_basename | ||
10600 | if test "$ac_res" != no; then | ||
10601 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
10602 | |||
10603 | cat >>confdefs.h <<\_ACEOF | ||
10604 | #define HAVE_BASENAME 1 | ||
10605 | _ACEOF | ||
10606 | |||
10607 | fi | ||
10608 | |||
10609 | |||
10610 | |||
10611 | # Check whether --with-zlib was given. | ||
10612 | if test "${with_zlib+set}" = set; then | ||
10613 | withval=$with_zlib; if test "x$withval" = "xno" ; then | ||
10614 | { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5 | ||
10615 | echo "$as_me: error: *** zlib is required ***" >&2;} | ||
10616 | { (exit 1); exit 1; }; } | ||
10617 | elif test "x$withval" != "xyes"; then | ||
10618 | if test -d "$withval/lib"; then | ||
10619 | if test -n "${need_dash_r}"; then | ||
10620 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
10621 | else | ||
10622 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
10623 | fi | ||
10624 | else | ||
10625 | if test -n "${need_dash_r}"; then | ||
10626 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
10627 | else | ||
10628 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
10629 | fi | ||
10630 | fi | ||
10631 | if test -d "$withval/include"; then | ||
10632 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
10633 | else | ||
10634 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
10635 | fi | ||
10636 | fi | ||
10637 | |||
10638 | fi | ||
10639 | |||
10640 | |||
10641 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
10642 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
10643 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | ||
10644 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
10645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10646 | fi | ||
10647 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
10648 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | ||
10649 | else | ||
10650 | # Is the header compilable? | ||
10651 | { echo "$as_me:$LINENO: checking zlib.h usability" >&5 | ||
10652 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } | ||
10653 | cat >conftest.$ac_ext <<_ACEOF | ||
10654 | /* confdefs.h. */ | ||
10655 | _ACEOF | ||
10656 | cat confdefs.h >>conftest.$ac_ext | ||
10657 | cat >>conftest.$ac_ext <<_ACEOF | ||
10658 | /* end confdefs.h. */ | ||
10659 | $ac_includes_default | ||
10660 | #include <zlib.h> | ||
10661 | _ACEOF | ||
10662 | rm -f conftest.$ac_objext | ||
10663 | if { (ac_try="$ac_compile" | ||
10664 | case "(($ac_try" in | ||
10665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10666 | *) ac_try_echo=$ac_try;; | ||
10667 | esac | ||
10668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10669 | (eval "$ac_compile") 2>conftest.er1 | ||
10670 | ac_status=$? | ||
10671 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10672 | rm -f conftest.er1 | ||
10673 | cat conftest.err >&5 | ||
10674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10675 | (exit $ac_status); } && { | ||
10676 | test -z "$ac_c_werror_flag" || | ||
10677 | test ! -s conftest.err | ||
10678 | } && test -s conftest.$ac_objext; then | ||
10679 | ac_header_compiler=yes | ||
10680 | else | ||
10681 | echo "$as_me: failed program was:" >&5 | ||
10682 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10683 | |||
10684 | ac_header_compiler=no | ||
10685 | fi | ||
10686 | |||
10687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10688 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10689 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
10690 | |||
10691 | # Is the header present? | ||
10692 | { echo "$as_me:$LINENO: checking zlib.h presence" >&5 | ||
10693 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } | ||
10694 | cat >conftest.$ac_ext <<_ACEOF | ||
10695 | /* confdefs.h. */ | ||
10696 | _ACEOF | ||
10697 | cat confdefs.h >>conftest.$ac_ext | ||
10698 | cat >>conftest.$ac_ext <<_ACEOF | ||
10699 | /* end confdefs.h. */ | ||
10700 | #include <zlib.h> | ||
10701 | _ACEOF | ||
10702 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
10703 | case "(($ac_try" in | ||
10704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10705 | *) ac_try_echo=$ac_try;; | ||
10706 | esac | ||
10707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10708 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
10709 | ac_status=$? | ||
10710 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10711 | rm -f conftest.er1 | ||
10712 | cat conftest.err >&5 | ||
10713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10714 | (exit $ac_status); } >/dev/null && { | ||
10715 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
10716 | test ! -s conftest.err | ||
10717 | }; then | ||
10718 | ac_header_preproc=yes | ||
10719 | else | ||
10720 | echo "$as_me: failed program was:" >&5 | ||
10721 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10722 | |||
10723 | ac_header_preproc=no | ||
10724 | fi | ||
10725 | |||
10726 | rm -f conftest.err conftest.$ac_ext | ||
10727 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10728 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
10729 | |||
10730 | # So? What about this header? | ||
10731 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10732 | yes:no: ) | ||
10733 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10734 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10735 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | ||
10736 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | ||
10737 | ac_header_preproc=yes | ||
10738 | ;; | ||
10739 | no:yes:* ) | ||
10740 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | ||
10741 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | ||
10742 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | ||
10743 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | ||
10744 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | ||
10745 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | ||
10746 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
10747 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10748 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | ||
10749 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | ||
10750 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | ||
10751 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | ||
10752 | ( cat <<\_ASBOX | ||
10753 | ## ------------------------------------------- ## | ||
10754 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
10755 | ## ------------------------------------------- ## | ||
10756 | _ASBOX | ||
10757 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
10758 | ;; | ||
10759 | esac | ||
10760 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
10761 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | ||
10762 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
10763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10764 | else | ||
10765 | ac_cv_header_zlib_h=$ac_header_preproc | ||
10766 | fi | ||
10767 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
10768 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | ||
10769 | |||
10770 | fi | ||
10771 | if test $ac_cv_header_zlib_h = yes; then | ||
10772 | : | ||
10773 | else | ||
10774 | { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5 | ||
10775 | echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;} | ||
10776 | { (exit 1); exit 1; }; } | ||
10777 | fi | ||
10778 | |||
10779 | |||
10780 | |||
10781 | { echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | ||
10782 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; } | ||
10783 | if test "${ac_cv_lib_z_deflate+set}" = set; then | ||
10784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10785 | else | ||
10786 | ac_check_lib_save_LIBS=$LIBS | ||
10787 | LIBS="-lz $LIBS" | ||
10788 | cat >conftest.$ac_ext <<_ACEOF | ||
10789 | /* confdefs.h. */ | ||
10790 | _ACEOF | ||
10791 | cat confdefs.h >>conftest.$ac_ext | ||
10792 | cat >>conftest.$ac_ext <<_ACEOF | ||
10793 | /* end confdefs.h. */ | ||
10794 | |||
10795 | /* Override any GCC internal prototype to avoid an error. | ||
10796 | Use char because int might match the return type of a GCC | ||
10797 | builtin and then its argument prototype would still apply. */ | ||
10798 | #ifdef __cplusplus | ||
10799 | extern "C" | ||
10800 | #endif | ||
10801 | char deflate (); | ||
10802 | int | ||
10803 | main () | ||
10804 | { | ||
10805 | return deflate (); | ||
10806 | ; | ||
10807 | return 0; | ||
10808 | } | ||
10809 | _ACEOF | ||
10810 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10811 | if { (ac_try="$ac_link" | ||
10812 | case "(($ac_try" in | ||
10813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10814 | *) ac_try_echo=$ac_try;; | ||
10815 | esac | ||
10816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10817 | (eval "$ac_link") 2>conftest.er1 | ||
10818 | ac_status=$? | ||
10819 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10820 | rm -f conftest.er1 | ||
10821 | cat conftest.err >&5 | ||
10822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10823 | (exit $ac_status); } && { | ||
10824 | test -z "$ac_c_werror_flag" || | ||
10825 | test ! -s conftest.err | ||
10826 | } && test -s conftest$ac_exeext && | ||
10827 | $as_test_x conftest$ac_exeext; then | ||
10828 | ac_cv_lib_z_deflate=yes | ||
10829 | else | ||
10830 | echo "$as_me: failed program was:" >&5 | ||
10831 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10832 | |||
10833 | ac_cv_lib_z_deflate=no | ||
10834 | fi | ||
10835 | |||
10836 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10837 | conftest$ac_exeext conftest.$ac_ext | ||
10838 | LIBS=$ac_check_lib_save_LIBS | ||
10839 | fi | ||
10840 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | ||
10841 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; } | ||
10842 | if test $ac_cv_lib_z_deflate = yes; then | ||
10843 | cat >>confdefs.h <<_ACEOF | ||
10844 | #define HAVE_LIBZ 1 | ||
10845 | _ACEOF | ||
10846 | |||
10847 | LIBS="-lz $LIBS" | ||
10848 | |||
10849 | else | ||
10850 | |||
10851 | saved_CPPFLAGS="$CPPFLAGS" | ||
10852 | saved_LDFLAGS="$LDFLAGS" | ||
10853 | save_LIBS="$LIBS" | ||
10854 | if test -n "${need_dash_r}"; then | ||
10855 | LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" | ||
10856 | else | ||
10857 | LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" | ||
10858 | fi | ||
10859 | CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" | ||
10860 | LIBS="$LIBS -lz" | ||
10861 | cat >conftest.$ac_ext <<_ACEOF | ||
10862 | /* confdefs.h. */ | ||
10863 | _ACEOF | ||
10864 | cat confdefs.h >>conftest.$ac_ext | ||
10865 | cat >>conftest.$ac_ext <<_ACEOF | ||
10866 | /* end confdefs.h. */ | ||
10867 | |||
10868 | /* Override any GCC internal prototype to avoid an error. | ||
10869 | Use char because int might match the return type of a GCC | ||
10870 | builtin and then its argument prototype would still apply. */ | ||
10871 | #ifdef __cplusplus | ||
10872 | extern "C" | ||
10873 | #endif | ||
10874 | char deflate (); | ||
10875 | int | ||
10876 | main () | ||
10877 | { | ||
10878 | return deflate (); | ||
10879 | ; | ||
10880 | return 0; | ||
10881 | } | ||
10882 | _ACEOF | ||
10883 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10884 | if { (ac_try="$ac_link" | ||
10885 | case "(($ac_try" in | ||
10886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10887 | *) ac_try_echo=$ac_try;; | ||
10888 | esac | ||
10889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10890 | (eval "$ac_link") 2>conftest.er1 | ||
10891 | ac_status=$? | ||
10892 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10893 | rm -f conftest.er1 | ||
10894 | cat conftest.err >&5 | ||
10895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10896 | (exit $ac_status); } && { | ||
10897 | test -z "$ac_c_werror_flag" || | ||
10898 | test ! -s conftest.err | ||
10899 | } && test -s conftest$ac_exeext && | ||
10900 | $as_test_x conftest$ac_exeext; then | ||
10901 | cat >>confdefs.h <<\_ACEOF | ||
10902 | #define HAVE_LIBZ 1 | ||
10903 | _ACEOF | ||
10904 | |||
10905 | else | ||
10906 | echo "$as_me: failed program was:" >&5 | ||
10907 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10908 | |||
10909 | |||
10910 | { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5 | ||
10911 | echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;} | ||
10912 | { (exit 1); exit 1; }; } | ||
10913 | |||
10914 | |||
10915 | fi | ||
10916 | |||
10917 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10918 | conftest$ac_exeext conftest.$ac_ext | ||
10919 | |||
10920 | |||
10921 | fi | ||
10922 | |||
10923 | |||
10924 | |||
10925 | # Check whether --with-zlib-version-check was given. | ||
10926 | if test "${with_zlib_version_check+set}" = set; then | ||
10927 | withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then | ||
10928 | zlib_check_nonfatal=1 | ||
10929 | fi | ||
10930 | |||
10931 | |||
10932 | fi | ||
10933 | |||
10934 | |||
10935 | { echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5 | ||
10936 | echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; } | ||
10937 | if test "$cross_compiling" = yes; then | ||
10938 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5 | ||
10939 | echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} | ||
10940 | |||
10941 | else | ||
10942 | cat >conftest.$ac_ext <<_ACEOF | ||
10943 | /* confdefs.h. */ | ||
10944 | _ACEOF | ||
10945 | cat confdefs.h >>conftest.$ac_ext | ||
10946 | cat >>conftest.$ac_ext <<_ACEOF | ||
10947 | /* end confdefs.h. */ | ||
10948 | |||
10949 | #include <stdio.h> | ||
10950 | #include <zlib.h> | ||
10951 | int main() | ||
10952 | { | ||
10953 | int a=0, b=0, c=0, d=0, n, v; | ||
10954 | n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d); | ||
10955 | if (n != 3 && n != 4) | ||
10956 | exit(1); | ||
10957 | v = a*1000000 + b*10000 + c*100 + d; | ||
10958 | fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v); | ||
10959 | |||
10960 | /* 1.1.4 is OK */ | ||
10961 | if (a == 1 && b == 1 && c >= 4) | ||
10962 | exit(0); | ||
10963 | |||
10964 | /* 1.2.3 and up are OK */ | ||
10965 | if (v >= 1020300) | ||
10966 | exit(0); | ||
10967 | |||
10968 | exit(2); | ||
10969 | } | ||
10970 | |||
10971 | _ACEOF | ||
10972 | rm -f conftest$ac_exeext | ||
10973 | if { (ac_try="$ac_link" | ||
10974 | case "(($ac_try" in | ||
10975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10976 | *) ac_try_echo=$ac_try;; | ||
10977 | esac | ||
10978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10979 | (eval "$ac_link") 2>&5 | ||
10980 | ac_status=$? | ||
10981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10982 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10983 | { (case "(($ac_try" in | ||
10984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10985 | *) ac_try_echo=$ac_try;; | ||
10986 | esac | ||
10987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10988 | (eval "$ac_try") 2>&5 | ||
10989 | ac_status=$? | ||
10990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10991 | (exit $ac_status); }; }; then | ||
10992 | { echo "$as_me:$LINENO: result: no" >&5 | ||
10993 | echo "${ECHO_T}no" >&6; } | ||
10994 | else | ||
10995 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10996 | echo "$as_me: failed program was:" >&5 | ||
10997 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10998 | |||
10999 | ( exit $ac_status ) | ||
11000 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
11001 | echo "${ECHO_T}yes" >&6; } | ||
11002 | if test -z "$zlib_check_nonfatal" ; then | ||
11003 | { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log *** | ||
11004 | Your reported zlib version has known security problems. It's possible your | ||
11005 | vendor has fixed these problems without changing the version number. If you | ||
11006 | are sure this is the case, you can disable the check by running | ||
11007 | \"./configure --without-zlib-version-check\". | ||
11008 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
11009 | See http://www.gzip.org/zlib/ for details." >&5 | ||
11010 | echo "$as_me: error: *** zlib too old - check config.log *** | ||
11011 | Your reported zlib version has known security problems. It's possible your | ||
11012 | vendor has fixed these problems without changing the version number. If you | ||
11013 | are sure this is the case, you can disable the check by running | ||
11014 | \"./configure --without-zlib-version-check\". | ||
11015 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
11016 | See http://www.gzip.org/zlib/ for details." >&2;} | ||
11017 | { (exit 1); exit 1; }; } | ||
11018 | else | ||
11019 | { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5 | ||
11020 | echo "$as_me: WARNING: zlib version may have security problems" >&2;} | ||
11021 | fi | ||
11022 | |||
11023 | fi | ||
11024 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11025 | fi | ||
11026 | |||
11027 | |||
11028 | |||
11029 | { echo "$as_me:$LINENO: checking for strcasecmp" >&5 | ||
11030 | echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; } | ||
11031 | if test "${ac_cv_func_strcasecmp+set}" = set; then | ||
11032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11033 | else | ||
11034 | cat >conftest.$ac_ext <<_ACEOF | ||
11035 | /* confdefs.h. */ | ||
11036 | _ACEOF | ||
11037 | cat confdefs.h >>conftest.$ac_ext | ||
11038 | cat >>conftest.$ac_ext <<_ACEOF | ||
11039 | /* end confdefs.h. */ | ||
11040 | /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp. | ||
11041 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11042 | #define strcasecmp innocuous_strcasecmp | ||
11043 | |||
11044 | /* System header to define __stub macros and hopefully few prototypes, | ||
11045 | which can conflict with char strcasecmp (); below. | ||
11046 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11047 | <limits.h> exists even on freestanding compilers. */ | ||
11048 | |||
11049 | #ifdef __STDC__ | ||
11050 | # include <limits.h> | ||
11051 | #else | ||
11052 | # include <assert.h> | ||
11053 | #endif | ||
11054 | |||
11055 | #undef strcasecmp | ||
11056 | |||
11057 | /* Override any GCC internal prototype to avoid an error. | ||
11058 | Use char because int might match the return type of a GCC | ||
11059 | builtin and then its argument prototype would still apply. */ | ||
11060 | #ifdef __cplusplus | ||
11061 | extern "C" | ||
11062 | #endif | ||
11063 | char strcasecmp (); | ||
11064 | /* The GNU C library defines this for functions which it implements | ||
11065 | to always fail with ENOSYS. Some functions are actually named | ||
11066 | something starting with __ and the normal name is an alias. */ | ||
11067 | #if defined __stub_strcasecmp || defined __stub___strcasecmp | ||
11068 | choke me | ||
11069 | #endif | ||
11070 | |||
11071 | int | ||
11072 | main () | ||
11073 | { | ||
11074 | return strcasecmp (); | ||
11075 | ; | ||
11076 | return 0; | ||
11077 | } | ||
11078 | _ACEOF | ||
11079 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11080 | if { (ac_try="$ac_link" | ||
11081 | case "(($ac_try" in | ||
11082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11083 | *) ac_try_echo=$ac_try;; | ||
11084 | esac | ||
11085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11086 | (eval "$ac_link") 2>conftest.er1 | ||
11087 | ac_status=$? | ||
11088 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11089 | rm -f conftest.er1 | ||
11090 | cat conftest.err >&5 | ||
11091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11092 | (exit $ac_status); } && { | ||
11093 | test -z "$ac_c_werror_flag" || | ||
11094 | test ! -s conftest.err | ||
11095 | } && test -s conftest$ac_exeext && | ||
11096 | $as_test_x conftest$ac_exeext; then | ||
11097 | ac_cv_func_strcasecmp=yes | ||
11098 | else | ||
11099 | echo "$as_me: failed program was:" >&5 | ||
11100 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11101 | |||
11102 | ac_cv_func_strcasecmp=no | ||
11103 | fi | ||
11104 | |||
11105 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11106 | conftest$ac_exeext conftest.$ac_ext | ||
11107 | fi | ||
11108 | { echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5 | ||
11109 | echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; } | ||
11110 | if test $ac_cv_func_strcasecmp = yes; then | ||
11111 | : | ||
11112 | else | ||
11113 | { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5 | ||
11114 | echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; } | ||
11115 | if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then | ||
11116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11117 | else | ||
11118 | ac_check_lib_save_LIBS=$LIBS | ||
11119 | LIBS="-lresolv $LIBS" | ||
11120 | cat >conftest.$ac_ext <<_ACEOF | ||
11121 | /* confdefs.h. */ | ||
11122 | _ACEOF | ||
11123 | cat confdefs.h >>conftest.$ac_ext | ||
11124 | cat >>conftest.$ac_ext <<_ACEOF | ||
11125 | /* end confdefs.h. */ | ||
11126 | |||
11127 | /* Override any GCC internal prototype to avoid an error. | ||
11128 | Use char because int might match the return type of a GCC | ||
11129 | builtin and then its argument prototype would still apply. */ | ||
11130 | #ifdef __cplusplus | ||
11131 | extern "C" | ||
11132 | #endif | ||
11133 | char strcasecmp (); | ||
11134 | int | ||
11135 | main () | ||
11136 | { | ||
11137 | return strcasecmp (); | ||
11138 | ; | ||
11139 | return 0; | ||
11140 | } | ||
11141 | _ACEOF | ||
11142 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11143 | if { (ac_try="$ac_link" | ||
11144 | case "(($ac_try" in | ||
11145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11146 | *) ac_try_echo=$ac_try;; | ||
11147 | esac | ||
11148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11149 | (eval "$ac_link") 2>conftest.er1 | ||
11150 | ac_status=$? | ||
11151 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11152 | rm -f conftest.er1 | ||
11153 | cat conftest.err >&5 | ||
11154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11155 | (exit $ac_status); } && { | ||
11156 | test -z "$ac_c_werror_flag" || | ||
11157 | test ! -s conftest.err | ||
11158 | } && test -s conftest$ac_exeext && | ||
11159 | $as_test_x conftest$ac_exeext; then | ||
11160 | ac_cv_lib_resolv_strcasecmp=yes | ||
11161 | else | ||
11162 | echo "$as_me: failed program was:" >&5 | ||
11163 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11164 | |||
11165 | ac_cv_lib_resolv_strcasecmp=no | ||
11166 | fi | ||
11167 | |||
11168 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11169 | conftest$ac_exeext conftest.$ac_ext | ||
11170 | LIBS=$ac_check_lib_save_LIBS | ||
11171 | fi | ||
11172 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
11173 | echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; } | ||
11174 | if test $ac_cv_lib_resolv_strcasecmp = yes; then | ||
11175 | LIBS="$LIBS -lresolv" | ||
11176 | fi | ||
11177 | |||
11178 | |||
11179 | fi | ||
11180 | |||
11181 | |||
11182 | for ac_func in utimes | ||
11183 | do | ||
11184 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11185 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11186 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
11187 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11189 | else | ||
11190 | cat >conftest.$ac_ext <<_ACEOF | ||
11191 | /* confdefs.h. */ | ||
11192 | _ACEOF | ||
11193 | cat confdefs.h >>conftest.$ac_ext | ||
11194 | cat >>conftest.$ac_ext <<_ACEOF | ||
11195 | /* end confdefs.h. */ | ||
11196 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11197 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11198 | #define $ac_func innocuous_$ac_func | ||
11199 | |||
11200 | /* System header to define __stub macros and hopefully few prototypes, | ||
11201 | which can conflict with char $ac_func (); below. | ||
11202 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11203 | <limits.h> exists even on freestanding compilers. */ | ||
11204 | |||
11205 | #ifdef __STDC__ | ||
11206 | # include <limits.h> | ||
11207 | #else | ||
11208 | # include <assert.h> | ||
11209 | #endif | ||
11210 | |||
11211 | #undef $ac_func | ||
11212 | |||
11213 | /* Override any GCC internal prototype to avoid an error. | ||
11214 | Use char because int might match the return type of a GCC | ||
11215 | builtin and then its argument prototype would still apply. */ | ||
11216 | #ifdef __cplusplus | ||
11217 | extern "C" | ||
11218 | #endif | ||
11219 | char $ac_func (); | ||
11220 | /* The GNU C library defines this for functions which it implements | ||
11221 | to always fail with ENOSYS. Some functions are actually named | ||
11222 | something starting with __ and the normal name is an alias. */ | ||
11223 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
11224 | choke me | ||
11225 | #endif | ||
11226 | |||
11227 | int | ||
11228 | main () | ||
11229 | { | ||
11230 | return $ac_func (); | ||
11231 | ; | ||
11232 | return 0; | ||
11233 | } | ||
11234 | _ACEOF | ||
11235 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11236 | if { (ac_try="$ac_link" | ||
11237 | case "(($ac_try" in | ||
11238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11239 | *) ac_try_echo=$ac_try;; | ||
11240 | esac | ||
11241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11242 | (eval "$ac_link") 2>conftest.er1 | ||
11243 | ac_status=$? | ||
11244 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11245 | rm -f conftest.er1 | ||
11246 | cat conftest.err >&5 | ||
11247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11248 | (exit $ac_status); } && { | ||
11249 | test -z "$ac_c_werror_flag" || | ||
11250 | test ! -s conftest.err | ||
11251 | } && test -s conftest$ac_exeext && | ||
11252 | $as_test_x conftest$ac_exeext; then | ||
11253 | eval "$as_ac_var=yes" | ||
11254 | else | ||
11255 | echo "$as_me: failed program was:" >&5 | ||
11256 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11257 | |||
11258 | eval "$as_ac_var=no" | ||
11259 | fi | ||
11260 | |||
11261 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11262 | conftest$ac_exeext conftest.$ac_ext | ||
11263 | fi | ||
11264 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
11265 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11266 | echo "${ECHO_T}$ac_res" >&6; } | ||
11267 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11268 | cat >>confdefs.h <<_ACEOF | ||
11269 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11270 | _ACEOF | ||
11271 | |||
11272 | else | ||
11273 | { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5 | ||
11274 | echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; } | ||
11275 | if test "${ac_cv_lib_c89_utimes+set}" = set; then | ||
11276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11277 | else | ||
11278 | ac_check_lib_save_LIBS=$LIBS | ||
11279 | LIBS="-lc89 $LIBS" | ||
11280 | cat >conftest.$ac_ext <<_ACEOF | ||
11281 | /* confdefs.h. */ | ||
11282 | _ACEOF | ||
11283 | cat confdefs.h >>conftest.$ac_ext | ||
11284 | cat >>conftest.$ac_ext <<_ACEOF | ||
11285 | /* end confdefs.h. */ | ||
11286 | |||
11287 | /* Override any GCC internal prototype to avoid an error. | ||
11288 | Use char because int might match the return type of a GCC | ||
11289 | builtin and then its argument prototype would still apply. */ | ||
11290 | #ifdef __cplusplus | ||
11291 | extern "C" | ||
11292 | #endif | ||
11293 | char utimes (); | ||
11294 | int | ||
11295 | main () | ||
11296 | { | ||
11297 | return utimes (); | ||
11298 | ; | ||
11299 | return 0; | ||
11300 | } | ||
11301 | _ACEOF | ||
11302 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11303 | if { (ac_try="$ac_link" | ||
11304 | case "(($ac_try" in | ||
11305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11306 | *) ac_try_echo=$ac_try;; | ||
11307 | esac | ||
11308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11309 | (eval "$ac_link") 2>conftest.er1 | ||
11310 | ac_status=$? | ||
11311 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11312 | rm -f conftest.er1 | ||
11313 | cat conftest.err >&5 | ||
11314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11315 | (exit $ac_status); } && { | ||
11316 | test -z "$ac_c_werror_flag" || | ||
11317 | test ! -s conftest.err | ||
11318 | } && test -s conftest$ac_exeext && | ||
11319 | $as_test_x conftest$ac_exeext; then | ||
11320 | ac_cv_lib_c89_utimes=yes | ||
11321 | else | ||
11322 | echo "$as_me: failed program was:" >&5 | ||
11323 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11324 | |||
11325 | ac_cv_lib_c89_utimes=no | ||
11326 | fi | ||
11327 | |||
11328 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11329 | conftest$ac_exeext conftest.$ac_ext | ||
11330 | LIBS=$ac_check_lib_save_LIBS | ||
11331 | fi | ||
11332 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5 | ||
11333 | echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; } | ||
11334 | if test $ac_cv_lib_c89_utimes = yes; then | ||
11335 | cat >>confdefs.h <<\_ACEOF | ||
11336 | #define HAVE_UTIMES 1 | ||
11337 | _ACEOF | ||
11338 | |||
11339 | LIBS="$LIBS -lc89" | ||
11340 | fi | ||
11341 | |||
11342 | |||
11343 | fi | ||
11344 | done | ||
11345 | |||
11346 | |||
11347 | |||
11348 | for ac_header in libutil.h | ||
11349 | do | ||
11350 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
11351 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11352 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
11353 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
11354 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11356 | fi | ||
11357 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
11358 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11359 | echo "${ECHO_T}$ac_res" >&6; } | ||
11360 | else | ||
11361 | # Is the header compilable? | ||
11362 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
11363 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
11364 | cat >conftest.$ac_ext <<_ACEOF | ||
11365 | /* confdefs.h. */ | ||
11366 | _ACEOF | ||
11367 | cat confdefs.h >>conftest.$ac_ext | ||
11368 | cat >>conftest.$ac_ext <<_ACEOF | ||
11369 | /* end confdefs.h. */ | ||
11370 | $ac_includes_default | ||
11371 | #include <$ac_header> | ||
11372 | _ACEOF | ||
11373 | rm -f conftest.$ac_objext | ||
11374 | if { (ac_try="$ac_compile" | ||
11375 | case "(($ac_try" in | ||
11376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11377 | *) ac_try_echo=$ac_try;; | ||
11378 | esac | ||
11379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11380 | (eval "$ac_compile") 2>conftest.er1 | ||
11381 | ac_status=$? | ||
11382 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11383 | rm -f conftest.er1 | ||
11384 | cat conftest.err >&5 | ||
11385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11386 | (exit $ac_status); } && { | ||
11387 | test -z "$ac_c_werror_flag" || | ||
11388 | test ! -s conftest.err | ||
11389 | } && test -s conftest.$ac_objext; then | ||
11390 | ac_header_compiler=yes | ||
11391 | else | ||
11392 | echo "$as_me: failed program was:" >&5 | ||
11393 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11394 | |||
11395 | ac_header_compiler=no | ||
11396 | fi | ||
11397 | |||
11398 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11399 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
11400 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
11401 | |||
11402 | # Is the header present? | ||
11403 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
11404 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
11405 | cat >conftest.$ac_ext <<_ACEOF | ||
11406 | /* confdefs.h. */ | ||
11407 | _ACEOF | ||
11408 | cat confdefs.h >>conftest.$ac_ext | ||
11409 | cat >>conftest.$ac_ext <<_ACEOF | ||
11410 | /* end confdefs.h. */ | ||
11411 | #include <$ac_header> | ||
11412 | _ACEOF | ||
11413 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
11414 | case "(($ac_try" in | ||
11415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11416 | *) ac_try_echo=$ac_try;; | ||
11417 | esac | ||
11418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11419 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
11420 | ac_status=$? | ||
11421 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11422 | rm -f conftest.er1 | ||
11423 | cat conftest.err >&5 | ||
11424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11425 | (exit $ac_status); } >/dev/null && { | ||
11426 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
11427 | test ! -s conftest.err | ||
11428 | }; then | ||
11429 | ac_header_preproc=yes | ||
11430 | else | ||
11431 | echo "$as_me: failed program was:" >&5 | ||
11432 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11433 | |||
11434 | ac_header_preproc=no | ||
11435 | fi | ||
11436 | |||
11437 | rm -f conftest.err conftest.$ac_ext | ||
11438 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
11439 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
11440 | |||
11441 | # So? What about this header? | ||
11442 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
11443 | yes:no: ) | ||
11444 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
11445 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
11446 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
11447 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
11448 | ac_header_preproc=yes | ||
11449 | ;; | ||
11450 | no:yes:* ) | ||
11451 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
11452 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
11453 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
11454 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
11455 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
11456 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
11457 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
11458 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
11459 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
11460 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
11461 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
11462 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
11463 | ( cat <<\_ASBOX | ||
11464 | ## ------------------------------------------- ## | ||
11465 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
11466 | ## ------------------------------------------- ## | ||
11467 | _ASBOX | ||
11468 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
11469 | ;; | ||
11470 | esac | ||
11471 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
11472 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
11473 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11475 | else | ||
11476 | eval "$as_ac_Header=\$ac_header_preproc" | ||
11477 | fi | ||
11478 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
11479 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11480 | echo "${ECHO_T}$ac_res" >&6; } | ||
11481 | |||
11482 | fi | ||
11483 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
11484 | cat >>confdefs.h <<_ACEOF | ||
11485 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
11486 | _ACEOF | ||
11487 | |||
11488 | fi | ||
11489 | |||
11490 | done | ||
11491 | |||
11492 | { echo "$as_me:$LINENO: checking for library containing login" >&5 | ||
11493 | echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; } | ||
11494 | if test "${ac_cv_search_login+set}" = set; then | ||
11495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11496 | else | ||
11497 | ac_func_search_save_LIBS=$LIBS | ||
11498 | cat >conftest.$ac_ext <<_ACEOF | ||
11499 | /* confdefs.h. */ | ||
11500 | _ACEOF | ||
11501 | cat confdefs.h >>conftest.$ac_ext | ||
11502 | cat >>conftest.$ac_ext <<_ACEOF | ||
11503 | /* end confdefs.h. */ | ||
11504 | |||
11505 | /* Override any GCC internal prototype to avoid an error. | ||
11506 | Use char because int might match the return type of a GCC | ||
11507 | builtin and then its argument prototype would still apply. */ | ||
11508 | #ifdef __cplusplus | ||
11509 | extern "C" | ||
11510 | #endif | ||
11511 | char login (); | ||
11512 | int | ||
11513 | main () | ||
11514 | { | ||
11515 | return login (); | ||
11516 | ; | ||
11517 | return 0; | ||
11518 | } | ||
11519 | _ACEOF | ||
11520 | for ac_lib in '' util bsd; do | ||
11521 | if test -z "$ac_lib"; then | ||
11522 | ac_res="none required" | ||
11523 | else | ||
11524 | ac_res=-l$ac_lib | ||
11525 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
11526 | fi | ||
11527 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11528 | if { (ac_try="$ac_link" | ||
11529 | case "(($ac_try" in | ||
11530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11531 | *) ac_try_echo=$ac_try;; | ||
11532 | esac | ||
11533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11534 | (eval "$ac_link") 2>conftest.er1 | ||
11535 | ac_status=$? | ||
11536 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11537 | rm -f conftest.er1 | ||
11538 | cat conftest.err >&5 | ||
11539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11540 | (exit $ac_status); } && { | ||
11541 | test -z "$ac_c_werror_flag" || | ||
11542 | test ! -s conftest.err | ||
11543 | } && test -s conftest$ac_exeext && | ||
11544 | $as_test_x conftest$ac_exeext; then | ||
11545 | ac_cv_search_login=$ac_res | ||
11546 | else | ||
11547 | echo "$as_me: failed program was:" >&5 | ||
11548 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11549 | |||
11550 | |||
11551 | fi | ||
11552 | |||
11553 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11554 | conftest$ac_exeext | ||
11555 | if test "${ac_cv_search_login+set}" = set; then | ||
11556 | break | ||
11557 | fi | ||
11558 | done | ||
11559 | if test "${ac_cv_search_login+set}" = set; then | ||
11560 | : | ||
11561 | else | ||
11562 | ac_cv_search_login=no | ||
11563 | fi | ||
11564 | rm conftest.$ac_ext | ||
11565 | LIBS=$ac_func_search_save_LIBS | ||
11566 | fi | ||
11567 | { echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5 | ||
11568 | echo "${ECHO_T}$ac_cv_search_login" >&6; } | ||
11569 | ac_res=$ac_cv_search_login | ||
11570 | if test "$ac_res" != no; then | ||
11571 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
11572 | |||
11573 | cat >>confdefs.h <<\_ACEOF | ||
11574 | #define HAVE_LOGIN 1 | ||
11575 | _ACEOF | ||
11576 | |||
11577 | fi | ||
11578 | |||
11579 | |||
11580 | |||
11581 | |||
11582 | |||
11583 | for ac_func in fmt_scaled logout updwtmp logwtmp | ||
11584 | do | ||
11585 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11586 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11587 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
11588 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11590 | else | ||
11591 | cat >conftest.$ac_ext <<_ACEOF | ||
11592 | /* confdefs.h. */ | ||
11593 | _ACEOF | ||
11594 | cat confdefs.h >>conftest.$ac_ext | ||
11595 | cat >>conftest.$ac_ext <<_ACEOF | ||
11596 | /* end confdefs.h. */ | ||
11597 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11598 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11599 | #define $ac_func innocuous_$ac_func | ||
11600 | |||
11601 | /* System header to define __stub macros and hopefully few prototypes, | ||
11602 | which can conflict with char $ac_func (); below. | ||
11603 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11604 | <limits.h> exists even on freestanding compilers. */ | ||
11605 | |||
11606 | #ifdef __STDC__ | ||
11607 | # include <limits.h> | ||
11608 | #else | ||
11609 | # include <assert.h> | ||
11610 | #endif | ||
11611 | |||
11612 | #undef $ac_func | ||
11613 | |||
11614 | /* Override any GCC internal prototype to avoid an error. | ||
11615 | Use char because int might match the return type of a GCC | ||
11616 | builtin and then its argument prototype would still apply. */ | ||
11617 | #ifdef __cplusplus | ||
11618 | extern "C" | ||
11619 | #endif | ||
11620 | char $ac_func (); | ||
11621 | /* The GNU C library defines this for functions which it implements | ||
11622 | to always fail with ENOSYS. Some functions are actually named | ||
11623 | something starting with __ and the normal name is an alias. */ | ||
11624 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
11625 | choke me | ||
11626 | #endif | ||
11627 | |||
11628 | int | ||
11629 | main () | ||
11630 | { | ||
11631 | return $ac_func (); | ||
11632 | ; | ||
11633 | return 0; | ||
11634 | } | ||
11635 | _ACEOF | ||
11636 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11637 | if { (ac_try="$ac_link" | ||
11638 | case "(($ac_try" in | ||
11639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11640 | *) ac_try_echo=$ac_try;; | ||
11641 | esac | ||
11642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11643 | (eval "$ac_link") 2>conftest.er1 | ||
11644 | ac_status=$? | ||
11645 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11646 | rm -f conftest.er1 | ||
11647 | cat conftest.err >&5 | ||
11648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11649 | (exit $ac_status); } && { | ||
11650 | test -z "$ac_c_werror_flag" || | ||
11651 | test ! -s conftest.err | ||
11652 | } && test -s conftest$ac_exeext && | ||
11653 | $as_test_x conftest$ac_exeext; then | ||
11654 | eval "$as_ac_var=yes" | ||
11655 | else | ||
11656 | echo "$as_me: failed program was:" >&5 | ||
11657 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11658 | |||
11659 | eval "$as_ac_var=no" | ||
11660 | fi | ||
11661 | |||
11662 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11663 | conftest$ac_exeext conftest.$ac_ext | ||
11664 | fi | ||
11665 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
11666 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11667 | echo "${ECHO_T}$ac_res" >&6; } | ||
11668 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11669 | cat >>confdefs.h <<_ACEOF | ||
11670 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11671 | _ACEOF | ||
11672 | |||
11673 | fi | ||
11674 | done | ||
11675 | |||
11676 | |||
11677 | |||
11678 | for ac_func in strftime | ||
11679 | do | ||
11680 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11681 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11682 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
11683 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11685 | else | ||
11686 | cat >conftest.$ac_ext <<_ACEOF | ||
11687 | /* confdefs.h. */ | ||
11688 | _ACEOF | ||
11689 | cat confdefs.h >>conftest.$ac_ext | ||
11690 | cat >>conftest.$ac_ext <<_ACEOF | ||
11691 | /* end confdefs.h. */ | ||
11692 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11693 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11694 | #define $ac_func innocuous_$ac_func | ||
11695 | |||
11696 | /* System header to define __stub macros and hopefully few prototypes, | ||
11697 | which can conflict with char $ac_func (); below. | ||
11698 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11699 | <limits.h> exists even on freestanding compilers. */ | ||
11700 | |||
11701 | #ifdef __STDC__ | ||
11702 | # include <limits.h> | ||
11703 | #else | ||
11704 | # include <assert.h> | ||
11705 | #endif | ||
11706 | |||
11707 | #undef $ac_func | ||
11708 | |||
11709 | /* Override any GCC internal prototype to avoid an error. | ||
11710 | Use char because int might match the return type of a GCC | ||
11711 | builtin and then its argument prototype would still apply. */ | ||
11712 | #ifdef __cplusplus | ||
11713 | extern "C" | ||
11714 | #endif | ||
11715 | char $ac_func (); | ||
11716 | /* The GNU C library defines this for functions which it implements | ||
11717 | to always fail with ENOSYS. Some functions are actually named | ||
11718 | something starting with __ and the normal name is an alias. */ | ||
11719 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
11720 | choke me | ||
11721 | #endif | ||
11722 | |||
11723 | int | ||
11724 | main () | ||
11725 | { | ||
11726 | return $ac_func (); | ||
11727 | ; | ||
11728 | return 0; | ||
11729 | } | ||
11730 | _ACEOF | ||
11731 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11732 | if { (ac_try="$ac_link" | ||
11733 | case "(($ac_try" in | ||
11734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11735 | *) ac_try_echo=$ac_try;; | ||
11736 | esac | ||
11737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11738 | (eval "$ac_link") 2>conftest.er1 | ||
11739 | ac_status=$? | ||
11740 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11741 | rm -f conftest.er1 | ||
11742 | cat conftest.err >&5 | ||
11743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11744 | (exit $ac_status); } && { | ||
11745 | test -z "$ac_c_werror_flag" || | ||
11746 | test ! -s conftest.err | ||
11747 | } && test -s conftest$ac_exeext && | ||
11748 | $as_test_x conftest$ac_exeext; then | ||
11749 | eval "$as_ac_var=yes" | ||
11750 | else | ||
11751 | echo "$as_me: failed program was:" >&5 | ||
11752 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11753 | |||
11754 | eval "$as_ac_var=no" | ||
11755 | fi | ||
11756 | |||
11757 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11758 | conftest$ac_exeext conftest.$ac_ext | ||
11759 | fi | ||
11760 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
11761 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11762 | echo "${ECHO_T}$ac_res" >&6; } | ||
11763 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11764 | cat >>confdefs.h <<_ACEOF | ||
11765 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11766 | _ACEOF | ||
11767 | |||
11768 | else | ||
11769 | # strftime is in -lintl on SCO UNIX. | ||
11770 | { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | ||
11771 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; } | ||
11772 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | ||
11773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11774 | else | ||
11775 | ac_check_lib_save_LIBS=$LIBS | ||
11776 | LIBS="-lintl $LIBS" | ||
11777 | cat >conftest.$ac_ext <<_ACEOF | ||
11778 | /* confdefs.h. */ | ||
11779 | _ACEOF | ||
11780 | cat confdefs.h >>conftest.$ac_ext | ||
11781 | cat >>conftest.$ac_ext <<_ACEOF | ||
11782 | /* end confdefs.h. */ | ||
11783 | |||
11784 | /* Override any GCC internal prototype to avoid an error. | ||
11785 | Use char because int might match the return type of a GCC | ||
11786 | builtin and then its argument prototype would still apply. */ | ||
11787 | #ifdef __cplusplus | ||
11788 | extern "C" | ||
11789 | #endif | ||
11790 | char strftime (); | ||
11791 | int | ||
11792 | main () | ||
11793 | { | ||
11794 | return strftime (); | ||
11795 | ; | ||
11796 | return 0; | ||
11797 | } | ||
11798 | _ACEOF | ||
11799 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11800 | if { (ac_try="$ac_link" | ||
11801 | case "(($ac_try" in | ||
11802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11803 | *) ac_try_echo=$ac_try;; | ||
11804 | esac | ||
11805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11806 | (eval "$ac_link") 2>conftest.er1 | ||
11807 | ac_status=$? | ||
11808 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11809 | rm -f conftest.er1 | ||
11810 | cat conftest.err >&5 | ||
11811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11812 | (exit $ac_status); } && { | ||
11813 | test -z "$ac_c_werror_flag" || | ||
11814 | test ! -s conftest.err | ||
11815 | } && test -s conftest$ac_exeext && | ||
11816 | $as_test_x conftest$ac_exeext; then | ||
11817 | ac_cv_lib_intl_strftime=yes | ||
11818 | else | ||
11819 | echo "$as_me: failed program was:" >&5 | ||
11820 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11821 | |||
11822 | ac_cv_lib_intl_strftime=no | ||
11823 | fi | ||
11824 | |||
11825 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11826 | conftest$ac_exeext conftest.$ac_ext | ||
11827 | LIBS=$ac_check_lib_save_LIBS | ||
11828 | fi | ||
11829 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | ||
11830 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; } | ||
11831 | if test $ac_cv_lib_intl_strftime = yes; then | ||
11832 | cat >>confdefs.h <<\_ACEOF | ||
11833 | #define HAVE_STRFTIME 1 | ||
11834 | _ACEOF | ||
11835 | |||
11836 | LIBS="-lintl $LIBS" | ||
11837 | fi | ||
11838 | |||
11839 | fi | ||
11840 | done | ||
11841 | |||
11842 | |||
11843 | # Check for ALTDIRFUNC glob() extension | ||
11844 | { echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5 | ||
11845 | echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; } | ||
11846 | cat >conftest.$ac_ext <<_ACEOF | ||
11847 | /* confdefs.h. */ | ||
11848 | _ACEOF | ||
11849 | cat confdefs.h >>conftest.$ac_ext | ||
11850 | cat >>conftest.$ac_ext <<_ACEOF | ||
11851 | /* end confdefs.h. */ | ||
11852 | |||
11853 | #include <glob.h> | ||
11854 | #ifdef GLOB_ALTDIRFUNC | ||
11855 | FOUNDIT | ||
11856 | #endif | ||
11857 | |||
11858 | _ACEOF | ||
11859 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
11860 | $EGREP "FOUNDIT" >/dev/null 2>&1; then | ||
11861 | |||
11862 | |||
11863 | cat >>confdefs.h <<\_ACEOF | ||
11864 | #define GLOB_HAS_ALTDIRFUNC 1 | ||
11865 | _ACEOF | ||
11866 | |||
11867 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
11868 | echo "${ECHO_T}yes" >&6; } | ||
11869 | |||
11870 | else | ||
11871 | |||
11872 | { echo "$as_me:$LINENO: result: no" >&5 | ||
11873 | echo "${ECHO_T}no" >&6; } | ||
11874 | |||
11875 | |||
11876 | fi | ||
11877 | rm -f conftest* | ||
11878 | |||
11879 | |||
11880 | # Check for g.gl_matchc glob() extension | ||
11881 | { echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5 | ||
11882 | echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; } | ||
11883 | cat >conftest.$ac_ext <<_ACEOF | ||
11884 | /* confdefs.h. */ | ||
11885 | _ACEOF | ||
11886 | cat confdefs.h >>conftest.$ac_ext | ||
11887 | cat >>conftest.$ac_ext <<_ACEOF | ||
11888 | /* end confdefs.h. */ | ||
11889 | #include <glob.h> | ||
11890 | int | ||
11891 | main () | ||
11892 | { | ||
11893 | glob_t g; g.gl_matchc = 1; | ||
11894 | ; | ||
11895 | return 0; | ||
11896 | } | ||
11897 | _ACEOF | ||
11898 | rm -f conftest.$ac_objext | ||
11899 | if { (ac_try="$ac_compile" | ||
11900 | case "(($ac_try" in | ||
11901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11902 | *) ac_try_echo=$ac_try;; | ||
11903 | esac | ||
11904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11905 | (eval "$ac_compile") 2>conftest.er1 | ||
11906 | ac_status=$? | ||
11907 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11908 | rm -f conftest.er1 | ||
11909 | cat conftest.err >&5 | ||
11910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11911 | (exit $ac_status); } && { | ||
11912 | test -z "$ac_c_werror_flag" || | ||
11913 | test ! -s conftest.err | ||
11914 | } && test -s conftest.$ac_objext; then | ||
11915 | |||
11916 | |||
11917 | cat >>confdefs.h <<\_ACEOF | ||
11918 | #define GLOB_HAS_GL_MATCHC 1 | ||
11919 | _ACEOF | ||
11920 | |||
11921 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
11922 | echo "${ECHO_T}yes" >&6; } | ||
11923 | |||
11924 | else | ||
11925 | echo "$as_me: failed program was:" >&5 | ||
11926 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11927 | |||
11928 | |||
11929 | { echo "$as_me:$LINENO: result: no" >&5 | ||
11930 | echo "${ECHO_T}no" >&6; } | ||
11931 | |||
11932 | |||
11933 | fi | ||
11934 | |||
11935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11936 | |||
11937 | { echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5 | ||
11938 | echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; } | ||
11939 | if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then | ||
11940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11941 | else | ||
11942 | cat >conftest.$ac_ext <<_ACEOF | ||
11943 | /* confdefs.h. */ | ||
11944 | _ACEOF | ||
11945 | cat confdefs.h >>conftest.$ac_ext | ||
11946 | cat >>conftest.$ac_ext <<_ACEOF | ||
11947 | /* end confdefs.h. */ | ||
11948 | #include <glob.h> | ||
11949 | |||
11950 | int | ||
11951 | main () | ||
11952 | { | ||
11953 | #ifndef GLOB_NOMATCH | ||
11954 | (void) GLOB_NOMATCH; | ||
11955 | #endif | ||
11956 | |||
11957 | ; | ||
11958 | return 0; | ||
11959 | } | ||
11960 | _ACEOF | ||
11961 | rm -f conftest.$ac_objext | ||
11962 | if { (ac_try="$ac_compile" | ||
11963 | case "(($ac_try" in | ||
11964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11965 | *) ac_try_echo=$ac_try;; | ||
11966 | esac | ||
11967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11968 | (eval "$ac_compile") 2>conftest.er1 | ||
11969 | ac_status=$? | ||
11970 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11971 | rm -f conftest.er1 | ||
11972 | cat conftest.err >&5 | ||
11973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11974 | (exit $ac_status); } && { | ||
11975 | test -z "$ac_c_werror_flag" || | ||
11976 | test ! -s conftest.err | ||
11977 | } && test -s conftest.$ac_objext; then | ||
11978 | ac_cv_have_decl_GLOB_NOMATCH=yes | ||
11979 | else | ||
11980 | echo "$as_me: failed program was:" >&5 | ||
11981 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11982 | |||
11983 | ac_cv_have_decl_GLOB_NOMATCH=no | ||
11984 | fi | ||
11985 | |||
11986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11987 | fi | ||
11988 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5 | ||
11989 | echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; } | ||
11990 | if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then | ||
11991 | |||
11992 | cat >>confdefs.h <<_ACEOF | ||
11993 | #define HAVE_DECL_GLOB_NOMATCH 1 | ||
11994 | _ACEOF | ||
11995 | |||
11996 | |||
11997 | else | ||
11998 | cat >>confdefs.h <<_ACEOF | ||
11999 | #define HAVE_DECL_GLOB_NOMATCH 0 | ||
12000 | _ACEOF | ||
12001 | |||
12002 | |||
12003 | fi | ||
12004 | |||
12005 | |||
12006 | |||
12007 | { echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5 | ||
12008 | echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; } | ||
12009 | if test "$cross_compiling" = yes; then | ||
12010 | |||
12011 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5 | ||
12012 | echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;} | ||
12013 | cat >>confdefs.h <<\_ACEOF | ||
12014 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
12015 | _ACEOF | ||
12016 | |||
12017 | |||
12018 | |||
12019 | else | ||
12020 | cat >conftest.$ac_ext <<_ACEOF | ||
12021 | /* confdefs.h. */ | ||
12022 | _ACEOF | ||
12023 | cat confdefs.h >>conftest.$ac_ext | ||
12024 | cat >>conftest.$ac_ext <<_ACEOF | ||
12025 | /* end confdefs.h. */ | ||
12026 | |||
12027 | #include <sys/types.h> | ||
12028 | #include <dirent.h> | ||
12029 | int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));} | ||
12030 | |||
12031 | _ACEOF | ||
12032 | rm -f conftest$ac_exeext | ||
12033 | if { (ac_try="$ac_link" | ||
12034 | case "(($ac_try" in | ||
12035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12036 | *) ac_try_echo=$ac_try;; | ||
12037 | esac | ||
12038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12039 | (eval "$ac_link") 2>&5 | ||
12040 | ac_status=$? | ||
12041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12042 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
12043 | { (case "(($ac_try" in | ||
12044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12045 | *) ac_try_echo=$ac_try;; | ||
12046 | esac | ||
12047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12048 | (eval "$ac_try") 2>&5 | ||
12049 | ac_status=$? | ||
12050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12051 | (exit $ac_status); }; }; then | ||
12052 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12053 | echo "${ECHO_T}yes" >&6; } | ||
12054 | else | ||
12055 | echo "$as_me: program exited with status $ac_status" >&5 | ||
12056 | echo "$as_me: failed program was:" >&5 | ||
12057 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12058 | |||
12059 | ( exit $ac_status ) | ||
12060 | |||
12061 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12062 | echo "${ECHO_T}no" >&6; } | ||
12063 | |||
12064 | cat >>confdefs.h <<\_ACEOF | ||
12065 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
12066 | _ACEOF | ||
12067 | |||
12068 | |||
12069 | fi | ||
12070 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
12071 | fi | ||
12072 | |||
12073 | |||
12074 | |||
12075 | { echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5 | ||
12076 | echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; } | ||
12077 | if test -d "/proc/$$/fd" ; then | ||
12078 | |||
12079 | cat >>confdefs.h <<\_ACEOF | ||
12080 | #define HAVE_PROC_PID 1 | ||
12081 | _ACEOF | ||
12082 | |||
12083 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12084 | echo "${ECHO_T}yes" >&6; } | ||
12085 | else | ||
12086 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12087 | echo "${ECHO_T}no" >&6; } | ||
12088 | fi | ||
12089 | |||
12090 | # Check whether user wants S/Key support | ||
12091 | SKEY_MSG="no" | ||
12092 | |||
12093 | # Check whether --with-skey was given. | ||
12094 | if test "${with_skey+set}" = set; then | ||
12095 | withval=$with_skey; | ||
12096 | if test "x$withval" != "xno" ; then | ||
12097 | |||
12098 | if test "x$withval" != "xyes" ; then | ||
12099 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
12100 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
12101 | fi | ||
12102 | |||
12103 | |||
12104 | cat >>confdefs.h <<\_ACEOF | ||
12105 | #define SKEY 1 | ||
12106 | _ACEOF | ||
12107 | |||
12108 | LIBS="-lskey $LIBS" | ||
12109 | SKEY_MSG="yes" | ||
12110 | |||
12111 | { echo "$as_me:$LINENO: checking for s/key support" >&5 | ||
12112 | echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; } | ||
12113 | cat >conftest.$ac_ext <<_ACEOF | ||
12114 | /* confdefs.h. */ | ||
12115 | _ACEOF | ||
12116 | cat confdefs.h >>conftest.$ac_ext | ||
12117 | cat >>conftest.$ac_ext <<_ACEOF | ||
12118 | /* end confdefs.h. */ | ||
12119 | |||
12120 | #include <stdio.h> | ||
12121 | #include <skey.h> | ||
12122 | int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); } | ||
12123 | |||
12124 | _ACEOF | ||
12125 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12126 | if { (ac_try="$ac_link" | ||
12127 | case "(($ac_try" in | ||
12128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12129 | *) ac_try_echo=$ac_try;; | ||
12130 | esac | ||
12131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12132 | (eval "$ac_link") 2>conftest.er1 | ||
12133 | ac_status=$? | ||
12134 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12135 | rm -f conftest.er1 | ||
12136 | cat conftest.err >&5 | ||
12137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12138 | (exit $ac_status); } && { | ||
12139 | test -z "$ac_c_werror_flag" || | ||
12140 | test ! -s conftest.err | ||
12141 | } && test -s conftest$ac_exeext && | ||
12142 | $as_test_x conftest$ac_exeext; then | ||
12143 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12144 | echo "${ECHO_T}yes" >&6; } | ||
12145 | else | ||
12146 | echo "$as_me: failed program was:" >&5 | ||
12147 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12148 | |||
12149 | |||
12150 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12151 | echo "${ECHO_T}no" >&6; } | ||
12152 | { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5 | ||
12153 | echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;} | ||
12154 | { (exit 1); exit 1; }; } | ||
12155 | |||
12156 | fi | ||
12157 | |||
12158 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12159 | conftest$ac_exeext conftest.$ac_ext | ||
12160 | { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5 | ||
12161 | echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; } | ||
12162 | cat >conftest.$ac_ext <<_ACEOF | ||
12163 | /* confdefs.h. */ | ||
12164 | _ACEOF | ||
12165 | cat confdefs.h >>conftest.$ac_ext | ||
12166 | cat >>conftest.$ac_ext <<_ACEOF | ||
12167 | /* end confdefs.h. */ | ||
12168 | #include <stdio.h> | ||
12169 | #include <skey.h> | ||
12170 | int | ||
12171 | main () | ||
12172 | { | ||
12173 | (void)skeychallenge(NULL,"name","",0); | ||
12174 | ; | ||
12175 | return 0; | ||
12176 | } | ||
12177 | _ACEOF | ||
12178 | rm -f conftest.$ac_objext | ||
12179 | if { (ac_try="$ac_compile" | ||
12180 | case "(($ac_try" in | ||
12181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12182 | *) ac_try_echo=$ac_try;; | ||
12183 | esac | ||
12184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12185 | (eval "$ac_compile") 2>conftest.er1 | ||
12186 | ac_status=$? | ||
12187 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12188 | rm -f conftest.er1 | ||
12189 | cat conftest.err >&5 | ||
12190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12191 | (exit $ac_status); } && { | ||
12192 | test -z "$ac_c_werror_flag" || | ||
12193 | test ! -s conftest.err | ||
12194 | } && test -s conftest.$ac_objext; then | ||
12195 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12196 | echo "${ECHO_T}yes" >&6; } | ||
12197 | |||
12198 | cat >>confdefs.h <<\_ACEOF | ||
12199 | #define SKEYCHALLENGE_4ARG 1 | ||
12200 | _ACEOF | ||
12201 | |||
12202 | else | ||
12203 | echo "$as_me: failed program was:" >&5 | ||
12204 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12205 | |||
12206 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12207 | echo "${ECHO_T}no" >&6; } | ||
12208 | |||
12209 | fi | ||
12210 | |||
12211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12212 | fi | ||
12213 | |||
12214 | |||
12215 | fi | ||
12216 | |||
12217 | |||
12218 | # Check whether user wants TCP wrappers support | ||
12219 | TCPW_MSG="no" | ||
12220 | |||
12221 | # Check whether --with-tcp-wrappers was given. | ||
12222 | if test "${with_tcp_wrappers+set}" = set; then | ||
12223 | withval=$with_tcp_wrappers; | ||
12224 | if test "x$withval" != "xno" ; then | ||
12225 | saved_LIBS="$LIBS" | ||
12226 | saved_LDFLAGS="$LDFLAGS" | ||
12227 | saved_CPPFLAGS="$CPPFLAGS" | ||
12228 | if test -n "${withval}" && \ | ||
12229 | test "x${withval}" != "xyes"; then | ||
12230 | if test -d "${withval}/lib"; then | ||
12231 | if test -n "${need_dash_r}"; then | ||
12232 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
12233 | else | ||
12234 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
12235 | fi | ||
12236 | else | ||
12237 | if test -n "${need_dash_r}"; then | ||
12238 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
12239 | else | ||
12240 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
12241 | fi | ||
12242 | fi | ||
12243 | if test -d "${withval}/include"; then | ||
12244 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
12245 | else | ||
12246 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
12247 | fi | ||
12248 | fi | ||
12249 | LIBS="-lwrap $LIBS" | ||
12250 | { echo "$as_me:$LINENO: checking for libwrap" >&5 | ||
12251 | echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; } | ||
12252 | cat >conftest.$ac_ext <<_ACEOF | ||
12253 | /* confdefs.h. */ | ||
12254 | _ACEOF | ||
12255 | cat confdefs.h >>conftest.$ac_ext | ||
12256 | cat >>conftest.$ac_ext <<_ACEOF | ||
12257 | /* end confdefs.h. */ | ||
12258 | |||
12259 | #include <sys/types.h> | ||
12260 | #include <sys/socket.h> | ||
12261 | #include <netinet/in.h> | ||
12262 | #include <tcpd.h> | ||
12263 | int deny_severity = 0, allow_severity = 0; | ||
12264 | |||
12265 | int | ||
12266 | main () | ||
12267 | { | ||
12268 | hosts_access(0); | ||
12269 | ; | ||
12270 | return 0; | ||
12271 | } | ||
12272 | _ACEOF | ||
12273 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12274 | if { (ac_try="$ac_link" | ||
12275 | case "(($ac_try" in | ||
12276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12277 | *) ac_try_echo=$ac_try;; | ||
12278 | esac | ||
12279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12280 | (eval "$ac_link") 2>conftest.er1 | ||
12281 | ac_status=$? | ||
12282 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12283 | rm -f conftest.er1 | ||
12284 | cat conftest.err >&5 | ||
12285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12286 | (exit $ac_status); } && { | ||
12287 | test -z "$ac_c_werror_flag" || | ||
12288 | test ! -s conftest.err | ||
12289 | } && test -s conftest$ac_exeext && | ||
12290 | $as_test_x conftest$ac_exeext; then | ||
12291 | |||
12292 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12293 | echo "${ECHO_T}yes" >&6; } | ||
12294 | |||
12295 | cat >>confdefs.h <<\_ACEOF | ||
12296 | #define LIBWRAP 1 | ||
12297 | _ACEOF | ||
12298 | |||
12299 | SSHDLIBS="$SSHDLIBS -lwrap" | ||
12300 | TCPW_MSG="yes" | ||
12301 | |||
12302 | else | ||
12303 | echo "$as_me: failed program was:" >&5 | ||
12304 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12305 | |||
12306 | |||
12307 | { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5 | ||
12308 | echo "$as_me: error: *** libwrap missing" >&2;} | ||
12309 | { (exit 1); exit 1; }; } | ||
12310 | |||
12311 | |||
12312 | fi | ||
12313 | |||
12314 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12315 | conftest$ac_exeext conftest.$ac_ext | ||
12316 | LIBS="$saved_LIBS" | ||
12317 | fi | ||
12318 | |||
12319 | |||
12320 | fi | ||
12321 | |||
12322 | |||
12323 | # Check whether user wants libedit support | ||
12324 | LIBEDIT_MSG="no" | ||
12325 | |||
12326 | # Check whether --with-libedit was given. | ||
12327 | if test "${with_libedit+set}" = set; then | ||
12328 | withval=$with_libedit; if test "x$withval" != "xno" ; then | ||
12329 | if test "x$withval" != "xyes"; then | ||
12330 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
12331 | if test -n "${need_dash_r}"; then | ||
12332 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
12333 | else | ||
12334 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
12335 | fi | ||
12336 | fi | ||
12337 | { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5 | ||
12338 | echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; } | ||
12339 | if test "${ac_cv_lib_edit_el_init+set}" = set; then | ||
12340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12341 | else | ||
12342 | ac_check_lib_save_LIBS=$LIBS | ||
12343 | LIBS="-ledit -lcurses | ||
12344 | $LIBS" | ||
12345 | cat >conftest.$ac_ext <<_ACEOF | ||
12346 | /* confdefs.h. */ | ||
12347 | _ACEOF | ||
12348 | cat confdefs.h >>conftest.$ac_ext | ||
12349 | cat >>conftest.$ac_ext <<_ACEOF | ||
12350 | /* end confdefs.h. */ | ||
12351 | |||
12352 | /* Override any GCC internal prototype to avoid an error. | ||
12353 | Use char because int might match the return type of a GCC | ||
12354 | builtin and then its argument prototype would still apply. */ | ||
12355 | #ifdef __cplusplus | ||
12356 | extern "C" | ||
12357 | #endif | ||
12358 | char el_init (); | ||
12359 | int | ||
12360 | main () | ||
12361 | { | ||
12362 | return el_init (); | ||
12363 | ; | ||
12364 | return 0; | ||
12365 | } | ||
12366 | _ACEOF | ||
12367 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12368 | if { (ac_try="$ac_link" | ||
12369 | case "(($ac_try" in | ||
12370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12371 | *) ac_try_echo=$ac_try;; | ||
12372 | esac | ||
12373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12374 | (eval "$ac_link") 2>conftest.er1 | ||
12375 | ac_status=$? | ||
12376 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12377 | rm -f conftest.er1 | ||
12378 | cat conftest.err >&5 | ||
12379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12380 | (exit $ac_status); } && { | ||
12381 | test -z "$ac_c_werror_flag" || | ||
12382 | test ! -s conftest.err | ||
12383 | } && test -s conftest$ac_exeext && | ||
12384 | $as_test_x conftest$ac_exeext; then | ||
12385 | ac_cv_lib_edit_el_init=yes | ||
12386 | else | ||
12387 | echo "$as_me: failed program was:" >&5 | ||
12388 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12389 | |||
12390 | ac_cv_lib_edit_el_init=no | ||
12391 | fi | ||
12392 | |||
12393 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12394 | conftest$ac_exeext conftest.$ac_ext | ||
12395 | LIBS=$ac_check_lib_save_LIBS | ||
12396 | fi | ||
12397 | { echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5 | ||
12398 | echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; } | ||
12399 | if test $ac_cv_lib_edit_el_init = yes; then | ||
12400 | |||
12401 | cat >>confdefs.h <<\_ACEOF | ||
12402 | #define USE_LIBEDIT 1 | ||
12403 | _ACEOF | ||
12404 | |||
12405 | LIBEDIT="-ledit -lcurses" | ||
12406 | LIBEDIT_MSG="yes" | ||
12407 | |||
12408 | |||
12409 | else | ||
12410 | { { echo "$as_me:$LINENO: error: libedit not found" >&5 | ||
12411 | echo "$as_me: error: libedit not found" >&2;} | ||
12412 | { (exit 1); exit 1; }; } | ||
12413 | fi | ||
12414 | |||
12415 | { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5 | ||
12416 | echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; } | ||
12417 | cat >conftest.$ac_ext <<_ACEOF | ||
12418 | /* confdefs.h. */ | ||
12419 | _ACEOF | ||
12420 | cat confdefs.h >>conftest.$ac_ext | ||
12421 | cat >>conftest.$ac_ext <<_ACEOF | ||
12422 | /* end confdefs.h. */ | ||
12423 | |||
12424 | #include <histedit.h> | ||
12425 | int main(void) | ||
12426 | { | ||
12427 | int i = H_SETSIZE; | ||
12428 | el_init("", NULL, NULL, NULL); | ||
12429 | exit(0); | ||
12430 | } | ||
12431 | |||
12432 | _ACEOF | ||
12433 | rm -f conftest.$ac_objext | ||
12434 | if { (ac_try="$ac_compile" | ||
12435 | case "(($ac_try" in | ||
12436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12437 | *) ac_try_echo=$ac_try;; | ||
12438 | esac | ||
12439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12440 | (eval "$ac_compile") 2>conftest.er1 | ||
12441 | ac_status=$? | ||
12442 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12443 | rm -f conftest.er1 | ||
12444 | cat conftest.err >&5 | ||
12445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12446 | (exit $ac_status); } && { | ||
12447 | test -z "$ac_c_werror_flag" || | ||
12448 | test ! -s conftest.err | ||
12449 | } && test -s conftest.$ac_objext; then | ||
12450 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
12451 | echo "${ECHO_T}yes" >&6; } | ||
12452 | else | ||
12453 | echo "$as_me: failed program was:" >&5 | ||
12454 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12455 | |||
12456 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12457 | echo "${ECHO_T}no" >&6; } | ||
12458 | { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5 | ||
12459 | echo "$as_me: error: libedit version is not compatible" >&2;} | ||
12460 | { (exit 1); exit 1; }; } | ||
12461 | |||
12462 | fi | ||
12463 | |||
12464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12465 | fi | ||
12466 | |||
12467 | fi | ||
12468 | |||
12469 | |||
12470 | AUDIT_MODULE=none | ||
12471 | |||
12472 | # Check whether --with-audit was given. | ||
12473 | if test "${with_audit+set}" = set; then | ||
12474 | withval=$with_audit; | ||
12475 | { echo "$as_me:$LINENO: checking for supported audit module" >&5 | ||
12476 | echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; } | ||
12477 | case "$withval" in | ||
12478 | bsm) | ||
12479 | { echo "$as_me:$LINENO: result: bsm" >&5 | ||
12480 | echo "${ECHO_T}bsm" >&6; } | ||
12481 | AUDIT_MODULE=bsm | ||
12482 | |||
12483 | for ac_header in bsm/audit.h | ||
12484 | do | ||
12485 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
12486 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
12487 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
12488 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12490 | else | ||
12491 | cat >conftest.$ac_ext <<_ACEOF | ||
12492 | /* confdefs.h. */ | ||
12493 | _ACEOF | ||
12494 | cat confdefs.h >>conftest.$ac_ext | ||
12495 | cat >>conftest.$ac_ext <<_ACEOF | ||
12496 | /* end confdefs.h. */ | ||
12497 | |||
12498 | #ifdef HAVE_TIME_H | ||
12499 | # include <time.h> | ||
12500 | #endif | ||
12501 | |||
12502 | |||
12503 | |||
12504 | #include <$ac_header> | ||
12505 | _ACEOF | ||
12506 | rm -f conftest.$ac_objext | ||
12507 | if { (ac_try="$ac_compile" | ||
12508 | case "(($ac_try" in | ||
12509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12510 | *) ac_try_echo=$ac_try;; | ||
12511 | esac | ||
12512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12513 | (eval "$ac_compile") 2>conftest.er1 | ||
12514 | ac_status=$? | ||
12515 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12516 | rm -f conftest.er1 | ||
12517 | cat conftest.err >&5 | ||
12518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12519 | (exit $ac_status); } && { | ||
12520 | test -z "$ac_c_werror_flag" || | ||
12521 | test ! -s conftest.err | ||
12522 | } && test -s conftest.$ac_objext; then | ||
12523 | eval "$as_ac_Header=yes" | ||
12524 | else | ||
12525 | echo "$as_me: failed program was:" >&5 | ||
12526 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12527 | |||
12528 | eval "$as_ac_Header=no" | ||
12529 | fi | ||
12530 | |||
12531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12532 | fi | ||
12533 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
12534 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12535 | echo "${ECHO_T}$ac_res" >&6; } | ||
12536 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
12537 | cat >>confdefs.h <<_ACEOF | ||
12538 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
12539 | _ACEOF | ||
12540 | |||
12541 | else | ||
12542 | { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5 | ||
12543 | echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;} | ||
12544 | { (exit 1); exit 1; }; } | ||
12545 | fi | ||
12546 | |||
12547 | done | ||
12548 | |||
12549 | |||
12550 | { echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5 | ||
12551 | echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; } | ||
12552 | if test "${ac_cv_lib_bsm_getaudit+set}" = set; then | ||
12553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12554 | else | ||
12555 | ac_check_lib_save_LIBS=$LIBS | ||
12556 | LIBS="-lbsm $LIBS" | ||
12557 | cat >conftest.$ac_ext <<_ACEOF | ||
12558 | /* confdefs.h. */ | ||
12559 | _ACEOF | ||
12560 | cat confdefs.h >>conftest.$ac_ext | ||
12561 | cat >>conftest.$ac_ext <<_ACEOF | ||
12562 | /* end confdefs.h. */ | ||
12563 | |||
12564 | /* Override any GCC internal prototype to avoid an error. | ||
12565 | Use char because int might match the return type of a GCC | ||
12566 | builtin and then its argument prototype would still apply. */ | ||
12567 | #ifdef __cplusplus | ||
12568 | extern "C" | ||
12569 | #endif | ||
12570 | char getaudit (); | ||
12571 | int | ||
12572 | main () | ||
12573 | { | ||
12574 | return getaudit (); | ||
12575 | ; | ||
12576 | return 0; | ||
12577 | } | ||
12578 | _ACEOF | ||
12579 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12580 | if { (ac_try="$ac_link" | ||
12581 | case "(($ac_try" in | ||
12582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12583 | *) ac_try_echo=$ac_try;; | ||
12584 | esac | ||
12585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12586 | (eval "$ac_link") 2>conftest.er1 | ||
12587 | ac_status=$? | ||
12588 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12589 | rm -f conftest.er1 | ||
12590 | cat conftest.err >&5 | ||
12591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12592 | (exit $ac_status); } && { | ||
12593 | test -z "$ac_c_werror_flag" || | ||
12594 | test ! -s conftest.err | ||
12595 | } && test -s conftest$ac_exeext && | ||
12596 | $as_test_x conftest$ac_exeext; then | ||
12597 | ac_cv_lib_bsm_getaudit=yes | ||
12598 | else | ||
12599 | echo "$as_me: failed program was:" >&5 | ||
12600 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12601 | |||
12602 | ac_cv_lib_bsm_getaudit=no | ||
12603 | fi | ||
12604 | |||
12605 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12606 | conftest$ac_exeext conftest.$ac_ext | ||
12607 | LIBS=$ac_check_lib_save_LIBS | ||
12608 | fi | ||
12609 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5 | ||
12610 | echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; } | ||
12611 | if test $ac_cv_lib_bsm_getaudit = yes; then | ||
12612 | cat >>confdefs.h <<_ACEOF | ||
12613 | #define HAVE_LIBBSM 1 | ||
12614 | _ACEOF | ||
12615 | |||
12616 | LIBS="-lbsm $LIBS" | ||
12617 | |||
12618 | else | ||
12619 | { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5 | ||
12620 | echo "$as_me: error: BSM enabled and required library not found" >&2;} | ||
12621 | { (exit 1); exit 1; }; } | ||
12622 | fi | ||
12623 | |||
12624 | |||
12625 | for ac_func in getaudit | ||
12626 | do | ||
12627 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12628 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12629 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
12630 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12632 | else | ||
12633 | cat >conftest.$ac_ext <<_ACEOF | ||
12634 | /* confdefs.h. */ | ||
12635 | _ACEOF | ||
12636 | cat confdefs.h >>conftest.$ac_ext | ||
12637 | cat >>conftest.$ac_ext <<_ACEOF | ||
12638 | /* end confdefs.h. */ | ||
12639 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12640 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12641 | #define $ac_func innocuous_$ac_func | ||
12642 | |||
12643 | /* System header to define __stub macros and hopefully few prototypes, | ||
12644 | which can conflict with char $ac_func (); below. | ||
12645 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12646 | <limits.h> exists even on freestanding compilers. */ | ||
12647 | |||
12648 | #ifdef __STDC__ | ||
12649 | # include <limits.h> | ||
12650 | #else | ||
12651 | # include <assert.h> | ||
12652 | #endif | ||
12653 | |||
12654 | #undef $ac_func | ||
12655 | |||
12656 | /* Override any GCC internal prototype to avoid an error. | ||
12657 | Use char because int might match the return type of a GCC | ||
12658 | builtin and then its argument prototype would still apply. */ | ||
12659 | #ifdef __cplusplus | ||
12660 | extern "C" | ||
12661 | #endif | ||
12662 | char $ac_func (); | ||
12663 | /* The GNU C library defines this for functions which it implements | ||
12664 | to always fail with ENOSYS. Some functions are actually named | ||
12665 | something starting with __ and the normal name is an alias. */ | ||
12666 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
12667 | choke me | ||
12668 | #endif | ||
12669 | |||
12670 | int | ||
12671 | main () | ||
12672 | { | ||
12673 | return $ac_func (); | ||
12674 | ; | ||
12675 | return 0; | ||
12676 | } | ||
12677 | _ACEOF | ||
12678 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12679 | if { (ac_try="$ac_link" | ||
12680 | case "(($ac_try" in | ||
12681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12682 | *) ac_try_echo=$ac_try;; | ||
12683 | esac | ||
12684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12685 | (eval "$ac_link") 2>conftest.er1 | ||
12686 | ac_status=$? | ||
12687 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12688 | rm -f conftest.er1 | ||
12689 | cat conftest.err >&5 | ||
12690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12691 | (exit $ac_status); } && { | ||
12692 | test -z "$ac_c_werror_flag" || | ||
12693 | test ! -s conftest.err | ||
12694 | } && test -s conftest$ac_exeext && | ||
12695 | $as_test_x conftest$ac_exeext; then | ||
12696 | eval "$as_ac_var=yes" | ||
12697 | else | ||
12698 | echo "$as_me: failed program was:" >&5 | ||
12699 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12700 | |||
12701 | eval "$as_ac_var=no" | ||
12702 | fi | ||
12703 | |||
12704 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12705 | conftest$ac_exeext conftest.$ac_ext | ||
12706 | fi | ||
12707 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
12708 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12709 | echo "${ECHO_T}$ac_res" >&6; } | ||
12710 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12711 | cat >>confdefs.h <<_ACEOF | ||
12712 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12713 | _ACEOF | ||
12714 | |||
12715 | else | ||
12716 | { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5 | ||
12717 | echo "$as_me: error: BSM enabled and required function not found" >&2;} | ||
12718 | { (exit 1); exit 1; }; } | ||
12719 | fi | ||
12720 | done | ||
12721 | |||
12722 | # These are optional | ||
12723 | |||
12724 | |||
12725 | for ac_func in getaudit_addr aug_get_machine | ||
12726 | do | ||
12727 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12728 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12729 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
12730 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12732 | else | ||
12733 | cat >conftest.$ac_ext <<_ACEOF | ||
12734 | /* confdefs.h. */ | ||
12735 | _ACEOF | ||
12736 | cat confdefs.h >>conftest.$ac_ext | ||
12737 | cat >>conftest.$ac_ext <<_ACEOF | ||
12738 | /* end confdefs.h. */ | ||
12739 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12740 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12741 | #define $ac_func innocuous_$ac_func | ||
12742 | |||
12743 | /* System header to define __stub macros and hopefully few prototypes, | ||
12744 | which can conflict with char $ac_func (); below. | ||
12745 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12746 | <limits.h> exists even on freestanding compilers. */ | ||
12747 | |||
12748 | #ifdef __STDC__ | ||
12749 | # include <limits.h> | ||
12750 | #else | ||
12751 | # include <assert.h> | ||
12752 | #endif | ||
12753 | |||
12754 | #undef $ac_func | ||
12755 | |||
12756 | /* Override any GCC internal prototype to avoid an error. | ||
12757 | Use char because int might match the return type of a GCC | ||
12758 | builtin and then its argument prototype would still apply. */ | ||
12759 | #ifdef __cplusplus | ||
12760 | extern "C" | ||
12761 | #endif | ||
12762 | char $ac_func (); | ||
12763 | /* The GNU C library defines this for functions which it implements | ||
12764 | to always fail with ENOSYS. Some functions are actually named | ||
12765 | something starting with __ and the normal name is an alias. */ | ||
12766 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
12767 | choke me | ||
12768 | #endif | ||
12769 | |||
12770 | int | ||
12771 | main () | ||
12772 | { | ||
12773 | return $ac_func (); | ||
12774 | ; | ||
12775 | return 0; | ||
12776 | } | ||
12777 | _ACEOF | ||
12778 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12779 | if { (ac_try="$ac_link" | ||
12780 | case "(($ac_try" in | ||
12781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12782 | *) ac_try_echo=$ac_try;; | ||
12783 | esac | ||
12784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12785 | (eval "$ac_link") 2>conftest.er1 | ||
12786 | ac_status=$? | ||
12787 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12788 | rm -f conftest.er1 | ||
12789 | cat conftest.err >&5 | ||
12790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12791 | (exit $ac_status); } && { | ||
12792 | test -z "$ac_c_werror_flag" || | ||
12793 | test ! -s conftest.err | ||
12794 | } && test -s conftest$ac_exeext && | ||
12795 | $as_test_x conftest$ac_exeext; then | ||
12796 | eval "$as_ac_var=yes" | ||
12797 | else | ||
12798 | echo "$as_me: failed program was:" >&5 | ||
12799 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12800 | |||
12801 | eval "$as_ac_var=no" | ||
12802 | fi | ||
12803 | |||
12804 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12805 | conftest$ac_exeext conftest.$ac_ext | ||
12806 | fi | ||
12807 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
12808 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12809 | echo "${ECHO_T}$ac_res" >&6; } | ||
12810 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12811 | cat >>confdefs.h <<_ACEOF | ||
12812 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12813 | _ACEOF | ||
12814 | |||
12815 | fi | ||
12816 | done | ||
12817 | |||
12818 | |||
12819 | cat >>confdefs.h <<\_ACEOF | ||
12820 | #define USE_BSM_AUDIT 1 | ||
12821 | _ACEOF | ||
12822 | |||
12823 | ;; | ||
12824 | debug) | ||
12825 | AUDIT_MODULE=debug | ||
12826 | { echo "$as_me:$LINENO: result: debug" >&5 | ||
12827 | echo "${ECHO_T}debug" >&6; } | ||
12828 | |||
12829 | cat >>confdefs.h <<\_ACEOF | ||
12830 | #define SSH_AUDIT_EVENTS 1 | ||
12831 | _ACEOF | ||
12832 | |||
12833 | ;; | ||
12834 | no) | ||
12835 | { echo "$as_me:$LINENO: result: no" >&5 | ||
12836 | echo "${ECHO_T}no" >&6; } | ||
12837 | ;; | ||
12838 | *) | ||
12839 | { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5 | ||
12840 | echo "$as_me: error: Unknown audit module $withval" >&2;} | ||
12841 | { (exit 1); exit 1; }; } | ||
12842 | ;; | ||
12843 | esac | ||
12844 | |||
12845 | fi | ||
12846 | |||
12847 | |||
12848 | |||
12849 | |||
12850 | |||
12851 | |||
12852 | |||
12853 | |||
12854 | |||
12855 | |||
12856 | |||
12857 | |||
12858 | |||
12859 | |||
12860 | |||
12861 | |||
12862 | |||
12863 | |||
12864 | |||
12865 | |||
12866 | |||
12867 | |||
12868 | |||
12869 | |||
12870 | |||
12871 | |||
12872 | |||
12873 | |||
12874 | |||
12875 | |||
12876 | |||
12877 | |||
12878 | |||
12879 | |||
12880 | |||
12881 | |||
12882 | |||
12883 | |||
12884 | |||
12885 | |||
12886 | |||
12887 | |||
12888 | |||
12889 | |||
12890 | |||
12891 | |||
12892 | |||
12893 | |||
12894 | |||
12895 | |||
12896 | |||
12897 | |||
12898 | |||
12899 | |||
12900 | |||
12901 | |||
12902 | |||
12903 | |||
12904 | |||
12905 | |||
12906 | |||
12907 | |||
12908 | |||
12909 | |||
12910 | |||
12911 | |||
12912 | |||
12913 | |||
12914 | |||
12915 | |||
12916 | |||
12917 | |||
12918 | |||
12919 | |||
12920 | |||
12921 | |||
12922 | |||
12923 | |||
12924 | |||
12925 | |||
12926 | |||
12927 | |||
12928 | |||
12929 | |||
12930 | |||
12931 | |||
12932 | |||
12933 | |||
12934 | |||
12935 | |||
12936 | |||
12937 | |||
12938 | |||
12939 | |||
12940 | |||
12941 | for ac_func in \ | ||
12942 | arc4random \ | ||
12943 | arc4random_buf \ | ||
12944 | arc4random_uniform \ | ||
12945 | asprintf \ | ||
12946 | b64_ntop \ | ||
12947 | __b64_ntop \ | ||
12948 | b64_pton \ | ||
12949 | __b64_pton \ | ||
12950 | bcopy \ | ||
12951 | bindresvport_sa \ | ||
12952 | clock \ | ||
12953 | closefrom \ | ||
12954 | dirfd \ | ||
12955 | fchmod \ | ||
12956 | fchown \ | ||
12957 | freeaddrinfo \ | ||
12958 | fstatvfs \ | ||
12959 | futimes \ | ||
12960 | getaddrinfo \ | ||
12961 | getcwd \ | ||
12962 | getgrouplist \ | ||
12963 | getnameinfo \ | ||
12964 | getopt \ | ||
12965 | getpeereid \ | ||
12966 | getpeerucred \ | ||
12967 | _getpty \ | ||
12968 | getrlimit \ | ||
12969 | getttyent \ | ||
12970 | glob \ | ||
12971 | group_from_gid \ | ||
12972 | inet_aton \ | ||
12973 | inet_ntoa \ | ||
12974 | inet_ntop \ | ||
12975 | innetgr \ | ||
12976 | login_getcapbool \ | ||
12977 | md5_crypt \ | ||
12978 | memmove \ | ||
12979 | mkdtemp \ | ||
12980 | mmap \ | ||
12981 | ngetaddrinfo \ | ||
12982 | nsleep \ | ||
12983 | ogetaddrinfo \ | ||
12984 | openlog_r \ | ||
12985 | openpty \ | ||
12986 | poll \ | ||
12987 | prctl \ | ||
12988 | pstat \ | ||
12989 | readpassphrase \ | ||
12990 | realpath \ | ||
12991 | recvmsg \ | ||
12992 | rresvport_af \ | ||
12993 | sendmsg \ | ||
12994 | setdtablesize \ | ||
12995 | setegid \ | ||
12996 | setenv \ | ||
12997 | seteuid \ | ||
12998 | setgroupent \ | ||
12999 | setgroups \ | ||
13000 | setlogin \ | ||
13001 | setpassent\ | ||
13002 | setpcred \ | ||
13003 | setproctitle \ | ||
13004 | setregid \ | ||
13005 | setreuid \ | ||
13006 | setrlimit \ | ||
13007 | setsid \ | ||
13008 | setvbuf \ | ||
13009 | sigaction \ | ||
13010 | sigvec \ | ||
13011 | snprintf \ | ||
13012 | socketpair \ | ||
13013 | statfs \ | ||
13014 | statvfs \ | ||
13015 | strdup \ | ||
13016 | strerror \ | ||
13017 | strlcat \ | ||
13018 | strlcpy \ | ||
13019 | strmode \ | ||
13020 | strnvis \ | ||
13021 | strtonum \ | ||
13022 | strtoll \ | ||
13023 | strtoul \ | ||
13024 | swap32 \ | ||
13025 | sysconf \ | ||
13026 | tcgetpgrp \ | ||
13027 | truncate \ | ||
13028 | unsetenv \ | ||
13029 | updwtmpx \ | ||
13030 | user_from_uid \ | ||
13031 | vasprintf \ | ||
13032 | vhangup \ | ||
13033 | vsnprintf \ | ||
13034 | waitpid \ | ||
13035 | |||
13036 | do | ||
13037 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13038 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13039 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13040 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13042 | else | ||
13043 | cat >conftest.$ac_ext <<_ACEOF | ||
13044 | /* confdefs.h. */ | ||
13045 | _ACEOF | ||
13046 | cat confdefs.h >>conftest.$ac_ext | ||
13047 | cat >>conftest.$ac_ext <<_ACEOF | ||
13048 | /* end confdefs.h. */ | ||
13049 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13050 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13051 | #define $ac_func innocuous_$ac_func | ||
13052 | |||
13053 | /* System header to define __stub macros and hopefully few prototypes, | ||
13054 | which can conflict with char $ac_func (); below. | ||
13055 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13056 | <limits.h> exists even on freestanding compilers. */ | ||
13057 | |||
13058 | #ifdef __STDC__ | ||
13059 | # include <limits.h> | ||
13060 | #else | ||
13061 | # include <assert.h> | ||
13062 | #endif | ||
13063 | |||
13064 | #undef $ac_func | ||
13065 | |||
13066 | /* Override any GCC internal prototype to avoid an error. | ||
13067 | Use char because int might match the return type of a GCC | ||
13068 | builtin and then its argument prototype would still apply. */ | ||
13069 | #ifdef __cplusplus | ||
13070 | extern "C" | ||
13071 | #endif | ||
13072 | char $ac_func (); | ||
13073 | /* The GNU C library defines this for functions which it implements | ||
13074 | to always fail with ENOSYS. Some functions are actually named | ||
13075 | something starting with __ and the normal name is an alias. */ | ||
13076 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13077 | choke me | ||
13078 | #endif | ||
13079 | |||
13080 | int | ||
13081 | main () | ||
13082 | { | ||
13083 | return $ac_func (); | ||
13084 | ; | ||
13085 | return 0; | ||
13086 | } | ||
13087 | _ACEOF | ||
13088 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13089 | if { (ac_try="$ac_link" | ||
13090 | case "(($ac_try" in | ||
13091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13092 | *) ac_try_echo=$ac_try;; | ||
13093 | esac | ||
13094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13095 | (eval "$ac_link") 2>conftest.er1 | ||
13096 | ac_status=$? | ||
13097 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13098 | rm -f conftest.er1 | ||
13099 | cat conftest.err >&5 | ||
13100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13101 | (exit $ac_status); } && { | ||
13102 | test -z "$ac_c_werror_flag" || | ||
13103 | test ! -s conftest.err | ||
13104 | } && test -s conftest$ac_exeext && | ||
13105 | $as_test_x conftest$ac_exeext; then | ||
13106 | eval "$as_ac_var=yes" | ||
13107 | else | ||
13108 | echo "$as_me: failed program was:" >&5 | ||
13109 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13110 | |||
13111 | eval "$as_ac_var=no" | ||
13112 | fi | ||
13113 | |||
13114 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13115 | conftest$ac_exeext conftest.$ac_ext | ||
13116 | fi | ||
13117 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
13118 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13119 | echo "${ECHO_T}$ac_res" >&6; } | ||
13120 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13121 | cat >>confdefs.h <<_ACEOF | ||
13122 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13123 | _ACEOF | ||
13124 | |||
13125 | fi | ||
13126 | done | ||
13127 | |||
13128 | |||
13129 | # PKCS#11 support requires dlopen() and co | ||
13130 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 | ||
13131 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } | ||
13132 | if test "${ac_cv_search_dlopen+set}" = set; then | ||
13133 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13134 | else | ||
13135 | ac_func_search_save_LIBS=$LIBS | ||
13136 | cat >conftest.$ac_ext <<_ACEOF | ||
13137 | /* confdefs.h. */ | ||
13138 | _ACEOF | ||
13139 | cat confdefs.h >>conftest.$ac_ext | ||
13140 | cat >>conftest.$ac_ext <<_ACEOF | ||
13141 | /* end confdefs.h. */ | ||
13142 | |||
13143 | /* Override any GCC internal prototype to avoid an error. | ||
13144 | Use char because int might match the return type of a GCC | ||
13145 | builtin and then its argument prototype would still apply. */ | ||
13146 | #ifdef __cplusplus | ||
13147 | extern "C" | ||
13148 | #endif | ||
13149 | char dlopen (); | ||
13150 | int | ||
13151 | main () | ||
13152 | { | ||
13153 | return dlopen (); | ||
13154 | ; | ||
13155 | return 0; | ||
13156 | } | ||
13157 | _ACEOF | ||
13158 | for ac_lib in '' dl; do | ||
13159 | if test -z "$ac_lib"; then | ||
13160 | ac_res="none required" | ||
13161 | else | ||
13162 | ac_res=-l$ac_lib | ||
13163 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
13164 | fi | ||
13165 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13166 | if { (ac_try="$ac_link" | ||
13167 | case "(($ac_try" in | ||
13168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13169 | *) ac_try_echo=$ac_try;; | ||
13170 | esac | ||
13171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13172 | (eval "$ac_link") 2>conftest.er1 | ||
13173 | ac_status=$? | ||
13174 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13175 | rm -f conftest.er1 | ||
13176 | cat conftest.err >&5 | ||
13177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13178 | (exit $ac_status); } && { | ||
13179 | test -z "$ac_c_werror_flag" || | ||
13180 | test ! -s conftest.err | ||
13181 | } && test -s conftest$ac_exeext && | ||
13182 | $as_test_x conftest$ac_exeext; then | ||
13183 | ac_cv_search_dlopen=$ac_res | ||
13184 | else | ||
13185 | echo "$as_me: failed program was:" >&5 | ||
13186 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13187 | |||
13188 | |||
13189 | fi | ||
13190 | |||
13191 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13192 | conftest$ac_exeext | ||
13193 | if test "${ac_cv_search_dlopen+set}" = set; then | ||
13194 | break | ||
13195 | fi | ||
13196 | done | ||
13197 | if test "${ac_cv_search_dlopen+set}" = set; then | ||
13198 | : | ||
13199 | else | ||
13200 | ac_cv_search_dlopen=no | ||
13201 | fi | ||
13202 | rm conftest.$ac_ext | ||
13203 | LIBS=$ac_func_search_save_LIBS | ||
13204 | fi | ||
13205 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 | ||
13206 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } | ||
13207 | ac_res=$ac_cv_search_dlopen | ||
13208 | if test "$ac_res" != no; then | ||
13209 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
13210 | |||
13211 | cat >>confdefs.h <<\_ACEOF | ||
13212 | #define ENABLE_PKCS11 | ||
13213 | _ACEOF | ||
13214 | |||
13215 | |||
13216 | fi | ||
13217 | |||
13218 | |||
13219 | # IRIX has a const char return value for gai_strerror() | ||
13220 | |||
13221 | for ac_func in gai_strerror | ||
13222 | do | ||
13223 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13224 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13225 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13226 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13228 | else | ||
13229 | cat >conftest.$ac_ext <<_ACEOF | ||
13230 | /* confdefs.h. */ | ||
13231 | _ACEOF | ||
13232 | cat confdefs.h >>conftest.$ac_ext | ||
13233 | cat >>conftest.$ac_ext <<_ACEOF | ||
13234 | /* end confdefs.h. */ | ||
13235 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13236 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13237 | #define $ac_func innocuous_$ac_func | ||
13238 | |||
13239 | /* System header to define __stub macros and hopefully few prototypes, | ||
13240 | which can conflict with char $ac_func (); below. | ||
13241 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13242 | <limits.h> exists even on freestanding compilers. */ | ||
13243 | |||
13244 | #ifdef __STDC__ | ||
13245 | # include <limits.h> | ||
13246 | #else | ||
13247 | # include <assert.h> | ||
13248 | #endif | ||
13249 | |||
13250 | #undef $ac_func | ||
13251 | |||
13252 | /* Override any GCC internal prototype to avoid an error. | ||
13253 | Use char because int might match the return type of a GCC | ||
13254 | builtin and then its argument prototype would still apply. */ | ||
13255 | #ifdef __cplusplus | ||
13256 | extern "C" | ||
13257 | #endif | ||
13258 | char $ac_func (); | ||
13259 | /* The GNU C library defines this for functions which it implements | ||
13260 | to always fail with ENOSYS. Some functions are actually named | ||
13261 | something starting with __ and the normal name is an alias. */ | ||
13262 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13263 | choke me | ||
13264 | #endif | ||
13265 | |||
13266 | int | ||
13267 | main () | ||
13268 | { | ||
13269 | return $ac_func (); | ||
13270 | ; | ||
13271 | return 0; | ||
13272 | } | ||
13273 | _ACEOF | ||
13274 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13275 | if { (ac_try="$ac_link" | ||
13276 | case "(($ac_try" in | ||
13277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13278 | *) ac_try_echo=$ac_try;; | ||
13279 | esac | ||
13280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13281 | (eval "$ac_link") 2>conftest.er1 | ||
13282 | ac_status=$? | ||
13283 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13284 | rm -f conftest.er1 | ||
13285 | cat conftest.err >&5 | ||
13286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13287 | (exit $ac_status); } && { | ||
13288 | test -z "$ac_c_werror_flag" || | ||
13289 | test ! -s conftest.err | ||
13290 | } && test -s conftest$ac_exeext && | ||
13291 | $as_test_x conftest$ac_exeext; then | ||
13292 | eval "$as_ac_var=yes" | ||
13293 | else | ||
13294 | echo "$as_me: failed program was:" >&5 | ||
13295 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13296 | |||
13297 | eval "$as_ac_var=no" | ||
13298 | fi | ||
13299 | |||
13300 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13301 | conftest$ac_exeext conftest.$ac_ext | ||
13302 | fi | ||
13303 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
13304 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13305 | echo "${ECHO_T}$ac_res" >&6; } | ||
13306 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13307 | cat >>confdefs.h <<_ACEOF | ||
13308 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13309 | _ACEOF | ||
13310 | |||
13311 | cat >>confdefs.h <<\_ACEOF | ||
13312 | #define HAVE_GAI_STRERROR 1 | ||
13313 | _ACEOF | ||
13314 | |||
13315 | cat >conftest.$ac_ext <<_ACEOF | ||
13316 | /* confdefs.h. */ | ||
13317 | _ACEOF | ||
13318 | cat confdefs.h >>conftest.$ac_ext | ||
13319 | cat >>conftest.$ac_ext <<_ACEOF | ||
13320 | /* end confdefs.h. */ | ||
13321 | |||
13322 | #include <sys/types.h> | ||
13323 | #include <sys/socket.h> | ||
13324 | #include <netdb.h> | ||
13325 | |||
13326 | const char *gai_strerror(int); | ||
13327 | int | ||
13328 | main () | ||
13329 | { | ||
13330 | |||
13331 | char *str; | ||
13332 | |||
13333 | str = gai_strerror(0); | ||
13334 | ; | ||
13335 | return 0; | ||
13336 | } | ||
13337 | _ACEOF | ||
13338 | rm -f conftest.$ac_objext | ||
13339 | if { (ac_try="$ac_compile" | ||
13340 | case "(($ac_try" in | ||
13341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13342 | *) ac_try_echo=$ac_try;; | ||
13343 | esac | ||
13344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13345 | (eval "$ac_compile") 2>conftest.er1 | ||
13346 | ac_status=$? | ||
13347 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13348 | rm -f conftest.er1 | ||
13349 | cat conftest.err >&5 | ||
13350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13351 | (exit $ac_status); } && { | ||
13352 | test -z "$ac_c_werror_flag" || | ||
13353 | test ! -s conftest.err | ||
13354 | } && test -s conftest.$ac_objext; then | ||
13355 | |||
13356 | |||
13357 | cat >>confdefs.h <<\_ACEOF | ||
13358 | #define HAVE_CONST_GAI_STRERROR_PROTO 1 | ||
13359 | _ACEOF | ||
13360 | |||
13361 | else | ||
13362 | echo "$as_me: failed program was:" >&5 | ||
13363 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13364 | |||
13365 | |||
13366 | fi | ||
13367 | |||
13368 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13369 | fi | ||
13370 | done | ||
13371 | |||
13372 | |||
13373 | { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 | ||
13374 | echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; } | ||
13375 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
13376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13377 | else | ||
13378 | ac_func_search_save_LIBS=$LIBS | ||
13379 | cat >conftest.$ac_ext <<_ACEOF | ||
13380 | /* confdefs.h. */ | ||
13381 | _ACEOF | ||
13382 | cat confdefs.h >>conftest.$ac_ext | ||
13383 | cat >>conftest.$ac_ext <<_ACEOF | ||
13384 | /* end confdefs.h. */ | ||
13385 | |||
13386 | /* Override any GCC internal prototype to avoid an error. | ||
13387 | Use char because int might match the return type of a GCC | ||
13388 | builtin and then its argument prototype would still apply. */ | ||
13389 | #ifdef __cplusplus | ||
13390 | extern "C" | ||
13391 | #endif | ||
13392 | char nanosleep (); | ||
13393 | int | ||
13394 | main () | ||
13395 | { | ||
13396 | return nanosleep (); | ||
13397 | ; | ||
13398 | return 0; | ||
13399 | } | ||
13400 | _ACEOF | ||
13401 | for ac_lib in '' rt posix4; do | ||
13402 | if test -z "$ac_lib"; then | ||
13403 | ac_res="none required" | ||
13404 | else | ||
13405 | ac_res=-l$ac_lib | ||
13406 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
13407 | fi | ||
13408 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13409 | if { (ac_try="$ac_link" | ||
13410 | case "(($ac_try" in | ||
13411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13412 | *) ac_try_echo=$ac_try;; | ||
13413 | esac | ||
13414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13415 | (eval "$ac_link") 2>conftest.er1 | ||
13416 | ac_status=$? | ||
13417 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13418 | rm -f conftest.er1 | ||
13419 | cat conftest.err >&5 | ||
13420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13421 | (exit $ac_status); } && { | ||
13422 | test -z "$ac_c_werror_flag" || | ||
13423 | test ! -s conftest.err | ||
13424 | } && test -s conftest$ac_exeext && | ||
13425 | $as_test_x conftest$ac_exeext; then | ||
13426 | ac_cv_search_nanosleep=$ac_res | ||
13427 | else | ||
13428 | echo "$as_me: failed program was:" >&5 | ||
13429 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13430 | |||
13431 | |||
13432 | fi | ||
13433 | |||
13434 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13435 | conftest$ac_exeext | ||
13436 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
13437 | break | ||
13438 | fi | ||
13439 | done | ||
13440 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
13441 | : | ||
13442 | else | ||
13443 | ac_cv_search_nanosleep=no | ||
13444 | fi | ||
13445 | rm conftest.$ac_ext | ||
13446 | LIBS=$ac_func_search_save_LIBS | ||
13447 | fi | ||
13448 | { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5 | ||
13449 | echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; } | ||
13450 | ac_res=$ac_cv_search_nanosleep | ||
13451 | if test "$ac_res" != no; then | ||
13452 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
13453 | |||
13454 | cat >>confdefs.h <<\_ACEOF | ||
13455 | #define HAVE_NANOSLEEP 1 | ||
13456 | _ACEOF | ||
13457 | |||
13458 | fi | ||
13459 | |||
13460 | |||
13461 | { echo "$as_me:$LINENO: checking whether getrusage is declared" >&5 | ||
13462 | echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; } | ||
13463 | if test "${ac_cv_have_decl_getrusage+set}" = set; then | ||
13464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13465 | else | ||
13466 | cat >conftest.$ac_ext <<_ACEOF | ||
13467 | /* confdefs.h. */ | ||
13468 | _ACEOF | ||
13469 | cat confdefs.h >>conftest.$ac_ext | ||
13470 | cat >>conftest.$ac_ext <<_ACEOF | ||
13471 | /* end confdefs.h. */ | ||
13472 | $ac_includes_default | ||
13473 | int | ||
13474 | main () | ||
13475 | { | ||
13476 | #ifndef getrusage | ||
13477 | (void) getrusage; | ||
13478 | #endif | ||
13479 | |||
13480 | ; | ||
13481 | return 0; | ||
13482 | } | ||
13483 | _ACEOF | ||
13484 | rm -f conftest.$ac_objext | ||
13485 | if { (ac_try="$ac_compile" | ||
13486 | case "(($ac_try" in | ||
13487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13488 | *) ac_try_echo=$ac_try;; | ||
13489 | esac | ||
13490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13491 | (eval "$ac_compile") 2>conftest.er1 | ||
13492 | ac_status=$? | ||
13493 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13494 | rm -f conftest.er1 | ||
13495 | cat conftest.err >&5 | ||
13496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13497 | (exit $ac_status); } && { | ||
13498 | test -z "$ac_c_werror_flag" || | ||
13499 | test ! -s conftest.err | ||
13500 | } && test -s conftest.$ac_objext; then | ||
13501 | ac_cv_have_decl_getrusage=yes | ||
13502 | else | ||
13503 | echo "$as_me: failed program was:" >&5 | ||
13504 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13505 | |||
13506 | ac_cv_have_decl_getrusage=no | ||
13507 | fi | ||
13508 | |||
13509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13510 | fi | ||
13511 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5 | ||
13512 | echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; } | ||
13513 | if test $ac_cv_have_decl_getrusage = yes; then | ||
13514 | |||
13515 | for ac_func in getrusage | ||
13516 | do | ||
13517 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13518 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13519 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13520 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13522 | else | ||
13523 | cat >conftest.$ac_ext <<_ACEOF | ||
13524 | /* confdefs.h. */ | ||
13525 | _ACEOF | ||
13526 | cat confdefs.h >>conftest.$ac_ext | ||
13527 | cat >>conftest.$ac_ext <<_ACEOF | ||
13528 | /* end confdefs.h. */ | ||
13529 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13530 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13531 | #define $ac_func innocuous_$ac_func | ||
13532 | |||
13533 | /* System header to define __stub macros and hopefully few prototypes, | ||
13534 | which can conflict with char $ac_func (); below. | ||
13535 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13536 | <limits.h> exists even on freestanding compilers. */ | ||
13537 | |||
13538 | #ifdef __STDC__ | ||
13539 | # include <limits.h> | ||
13540 | #else | ||
13541 | # include <assert.h> | ||
13542 | #endif | ||
13543 | |||
13544 | #undef $ac_func | ||
13545 | |||
13546 | /* Override any GCC internal prototype to avoid an error. | ||
13547 | Use char because int might match the return type of a GCC | ||
13548 | builtin and then its argument prototype would still apply. */ | ||
13549 | #ifdef __cplusplus | ||
13550 | extern "C" | ||
13551 | #endif | ||
13552 | char $ac_func (); | ||
13553 | /* The GNU C library defines this for functions which it implements | ||
13554 | to always fail with ENOSYS. Some functions are actually named | ||
13555 | something starting with __ and the normal name is an alias. */ | ||
13556 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13557 | choke me | ||
13558 | #endif | ||
13559 | |||
13560 | int | ||
13561 | main () | ||
13562 | { | ||
13563 | return $ac_func (); | ||
13564 | ; | ||
13565 | return 0; | ||
13566 | } | ||
13567 | _ACEOF | ||
13568 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13569 | if { (ac_try="$ac_link" | ||
13570 | case "(($ac_try" in | ||
13571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13572 | *) ac_try_echo=$ac_try;; | ||
13573 | esac | ||
13574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13575 | (eval "$ac_link") 2>conftest.er1 | ||
13576 | ac_status=$? | ||
13577 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13578 | rm -f conftest.er1 | ||
13579 | cat conftest.err >&5 | ||
13580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13581 | (exit $ac_status); } && { | ||
13582 | test -z "$ac_c_werror_flag" || | ||
13583 | test ! -s conftest.err | ||
13584 | } && test -s conftest$ac_exeext && | ||
13585 | $as_test_x conftest$ac_exeext; then | ||
13586 | eval "$as_ac_var=yes" | ||
13587 | else | ||
13588 | echo "$as_me: failed program was:" >&5 | ||
13589 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13590 | |||
13591 | eval "$as_ac_var=no" | ||
13592 | fi | ||
13593 | |||
13594 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13595 | conftest$ac_exeext conftest.$ac_ext | ||
13596 | fi | ||
13597 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
13598 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13599 | echo "${ECHO_T}$ac_res" >&6; } | ||
13600 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13601 | cat >>confdefs.h <<_ACEOF | ||
13602 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13603 | _ACEOF | ||
13604 | |||
13605 | fi | ||
13606 | done | ||
13607 | |||
13608 | fi | ||
13609 | |||
13610 | { echo "$as_me:$LINENO: checking whether strsep is declared" >&5 | ||
13611 | echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; } | ||
13612 | if test "${ac_cv_have_decl_strsep+set}" = set; then | ||
13613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13614 | else | ||
13615 | cat >conftest.$ac_ext <<_ACEOF | ||
13616 | /* confdefs.h. */ | ||
13617 | _ACEOF | ||
13618 | cat confdefs.h >>conftest.$ac_ext | ||
13619 | cat >>conftest.$ac_ext <<_ACEOF | ||
13620 | /* end confdefs.h. */ | ||
13621 | |||
13622 | #ifdef HAVE_STRING_H | ||
13623 | # include <string.h> | ||
13624 | #endif | ||
13625 | |||
13626 | |||
13627 | int | ||
13628 | main () | ||
13629 | { | ||
13630 | #ifndef strsep | ||
13631 | (void) strsep; | ||
13632 | #endif | ||
13633 | |||
13634 | ; | ||
13635 | return 0; | ||
13636 | } | ||
13637 | _ACEOF | ||
13638 | rm -f conftest.$ac_objext | ||
13639 | if { (ac_try="$ac_compile" | ||
13640 | case "(($ac_try" in | ||
13641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13642 | *) ac_try_echo=$ac_try;; | ||
13643 | esac | ||
13644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13645 | (eval "$ac_compile") 2>conftest.er1 | ||
13646 | ac_status=$? | ||
13647 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13648 | rm -f conftest.er1 | ||
13649 | cat conftest.err >&5 | ||
13650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13651 | (exit $ac_status); } && { | ||
13652 | test -z "$ac_c_werror_flag" || | ||
13653 | test ! -s conftest.err | ||
13654 | } && test -s conftest.$ac_objext; then | ||
13655 | ac_cv_have_decl_strsep=yes | ||
13656 | else | ||
13657 | echo "$as_me: failed program was:" >&5 | ||
13658 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13659 | |||
13660 | ac_cv_have_decl_strsep=no | ||
13661 | fi | ||
13662 | |||
13663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13664 | fi | ||
13665 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5 | ||
13666 | echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; } | ||
13667 | if test $ac_cv_have_decl_strsep = yes; then | ||
13668 | |||
13669 | for ac_func in strsep | ||
13670 | do | ||
13671 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13672 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13673 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13674 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13676 | else | ||
13677 | cat >conftest.$ac_ext <<_ACEOF | ||
13678 | /* confdefs.h. */ | ||
13679 | _ACEOF | ||
13680 | cat confdefs.h >>conftest.$ac_ext | ||
13681 | cat >>conftest.$ac_ext <<_ACEOF | ||
13682 | /* end confdefs.h. */ | ||
13683 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13684 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13685 | #define $ac_func innocuous_$ac_func | ||
13686 | |||
13687 | /* System header to define __stub macros and hopefully few prototypes, | ||
13688 | which can conflict with char $ac_func (); below. | ||
13689 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13690 | <limits.h> exists even on freestanding compilers. */ | ||
13691 | |||
13692 | #ifdef __STDC__ | ||
13693 | # include <limits.h> | ||
13694 | #else | ||
13695 | # include <assert.h> | ||
13696 | #endif | ||
13697 | |||
13698 | #undef $ac_func | ||
13699 | |||
13700 | /* Override any GCC internal prototype to avoid an error. | ||
13701 | Use char because int might match the return type of a GCC | ||
13702 | builtin and then its argument prototype would still apply. */ | ||
13703 | #ifdef __cplusplus | ||
13704 | extern "C" | ||
13705 | #endif | ||
13706 | char $ac_func (); | ||
13707 | /* The GNU C library defines this for functions which it implements | ||
13708 | to always fail with ENOSYS. Some functions are actually named | ||
13709 | something starting with __ and the normal name is an alias. */ | ||
13710 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13711 | choke me | ||
13712 | #endif | ||
13713 | |||
13714 | int | ||
13715 | main () | ||
13716 | { | ||
13717 | return $ac_func (); | ||
13718 | ; | ||
13719 | return 0; | ||
13720 | } | ||
13721 | _ACEOF | ||
13722 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13723 | if { (ac_try="$ac_link" | ||
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_link") 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_exeext && | ||
13739 | $as_test_x conftest$ac_exeext; then | ||
13740 | eval "$as_ac_var=yes" | ||
13741 | else | ||
13742 | echo "$as_me: failed program was:" >&5 | ||
13743 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13744 | |||
13745 | eval "$as_ac_var=no" | ||
13746 | fi | ||
13747 | |||
13748 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13749 | conftest$ac_exeext conftest.$ac_ext | ||
13750 | fi | ||
13751 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
13752 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13753 | echo "${ECHO_T}$ac_res" >&6; } | ||
13754 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13755 | cat >>confdefs.h <<_ACEOF | ||
13756 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13757 | _ACEOF | ||
13758 | |||
13759 | fi | ||
13760 | done | ||
13761 | |||
13762 | fi | ||
13763 | |||
13764 | |||
13765 | { echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5 | ||
13766 | echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; } | ||
13767 | if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then | ||
13768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13769 | else | ||
13770 | cat >conftest.$ac_ext <<_ACEOF | ||
13771 | /* confdefs.h. */ | ||
13772 | _ACEOF | ||
13773 | cat confdefs.h >>conftest.$ac_ext | ||
13774 | cat >>conftest.$ac_ext <<_ACEOF | ||
13775 | /* end confdefs.h. */ | ||
13776 | #include <termios.h> | ||
13777 | |||
13778 | |||
13779 | int | ||
13780 | main () | ||
13781 | { | ||
13782 | #ifndef tcsendbreak | ||
13783 | (void) tcsendbreak; | ||
13784 | #endif | ||
13785 | |||
13786 | ; | ||
13787 | return 0; | ||
13788 | } | ||
13789 | _ACEOF | ||
13790 | rm -f conftest.$ac_objext | ||
13791 | if { (ac_try="$ac_compile" | ||
13792 | case "(($ac_try" in | ||
13793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13794 | *) ac_try_echo=$ac_try;; | ||
13795 | esac | ||
13796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13797 | (eval "$ac_compile") 2>conftest.er1 | ||
13798 | ac_status=$? | ||
13799 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13800 | rm -f conftest.er1 | ||
13801 | cat conftest.err >&5 | ||
13802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13803 | (exit $ac_status); } && { | ||
13804 | test -z "$ac_c_werror_flag" || | ||
13805 | test ! -s conftest.err | ||
13806 | } && test -s conftest.$ac_objext; then | ||
13807 | ac_cv_have_decl_tcsendbreak=yes | ||
13808 | else | ||
13809 | echo "$as_me: failed program was:" >&5 | ||
13810 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13811 | |||
13812 | ac_cv_have_decl_tcsendbreak=no | ||
13813 | fi | ||
13814 | |||
13815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13816 | fi | ||
13817 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5 | ||
13818 | echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; } | ||
13819 | if test $ac_cv_have_decl_tcsendbreak = yes; then | ||
13820 | cat >>confdefs.h <<\_ACEOF | ||
13821 | #define HAVE_TCSENDBREAK 1 | ||
13822 | _ACEOF | ||
13823 | |||
13824 | else | ||
13825 | |||
13826 | for ac_func in tcsendbreak | ||
13827 | do | ||
13828 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13829 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13830 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
13831 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13833 | else | ||
13834 | cat >conftest.$ac_ext <<_ACEOF | ||
13835 | /* confdefs.h. */ | ||
13836 | _ACEOF | ||
13837 | cat confdefs.h >>conftest.$ac_ext | ||
13838 | cat >>conftest.$ac_ext <<_ACEOF | ||
13839 | /* end confdefs.h. */ | ||
13840 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13841 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13842 | #define $ac_func innocuous_$ac_func | ||
13843 | |||
13844 | /* System header to define __stub macros and hopefully few prototypes, | ||
13845 | which can conflict with char $ac_func (); below. | ||
13846 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13847 | <limits.h> exists even on freestanding compilers. */ | ||
13848 | |||
13849 | #ifdef __STDC__ | ||
13850 | # include <limits.h> | ||
13851 | #else | ||
13852 | # include <assert.h> | ||
13853 | #endif | ||
13854 | |||
13855 | #undef $ac_func | ||
13856 | |||
13857 | /* Override any GCC internal prototype to avoid an error. | ||
13858 | Use char because int might match the return type of a GCC | ||
13859 | builtin and then its argument prototype would still apply. */ | ||
13860 | #ifdef __cplusplus | ||
13861 | extern "C" | ||
13862 | #endif | ||
13863 | char $ac_func (); | ||
13864 | /* The GNU C library defines this for functions which it implements | ||
13865 | to always fail with ENOSYS. Some functions are actually named | ||
13866 | something starting with __ and the normal name is an alias. */ | ||
13867 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13868 | choke me | ||
13869 | #endif | ||
13870 | |||
13871 | int | ||
13872 | main () | ||
13873 | { | ||
13874 | return $ac_func (); | ||
13875 | ; | ||
13876 | return 0; | ||
13877 | } | ||
13878 | _ACEOF | ||
13879 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13880 | if { (ac_try="$ac_link" | ||
13881 | case "(($ac_try" in | ||
13882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13883 | *) ac_try_echo=$ac_try;; | ||
13884 | esac | ||
13885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13886 | (eval "$ac_link") 2>conftest.er1 | ||
13887 | ac_status=$? | ||
13888 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13889 | rm -f conftest.er1 | ||
13890 | cat conftest.err >&5 | ||
13891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13892 | (exit $ac_status); } && { | ||
13893 | test -z "$ac_c_werror_flag" || | ||
13894 | test ! -s conftest.err | ||
13895 | } && test -s conftest$ac_exeext && | ||
13896 | $as_test_x conftest$ac_exeext; then | ||
13897 | eval "$as_ac_var=yes" | ||
13898 | else | ||
13899 | echo "$as_me: failed program was:" >&5 | ||
13900 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13901 | |||
13902 | eval "$as_ac_var=no" | ||
13903 | fi | ||
13904 | |||
13905 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13906 | conftest$ac_exeext conftest.$ac_ext | ||
13907 | fi | ||
13908 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
13909 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13910 | echo "${ECHO_T}$ac_res" >&6; } | ||
13911 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
13912 | cat >>confdefs.h <<_ACEOF | ||
13913 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13914 | _ACEOF | ||
13915 | |||
13916 | fi | ||
13917 | done | ||
13918 | |||
13919 | fi | ||
13920 | |||
13921 | |||
13922 | { echo "$as_me:$LINENO: checking whether h_errno is declared" >&5 | ||
13923 | echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; } | ||
13924 | if test "${ac_cv_have_decl_h_errno+set}" = set; then | ||
13925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13926 | else | ||
13927 | cat >conftest.$ac_ext <<_ACEOF | ||
13928 | /* confdefs.h. */ | ||
13929 | _ACEOF | ||
13930 | cat confdefs.h >>conftest.$ac_ext | ||
13931 | cat >>conftest.$ac_ext <<_ACEOF | ||
13932 | /* end confdefs.h. */ | ||
13933 | #include <netdb.h> | ||
13934 | |||
13935 | int | ||
13936 | main () | ||
13937 | { | ||
13938 | #ifndef h_errno | ||
13939 | (void) h_errno; | ||
13940 | #endif | ||
13941 | |||
13942 | ; | ||
13943 | return 0; | ||
13944 | } | ||
13945 | _ACEOF | ||
13946 | rm -f conftest.$ac_objext | ||
13947 | if { (ac_try="$ac_compile" | ||
13948 | case "(($ac_try" in | ||
13949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13950 | *) ac_try_echo=$ac_try;; | ||
13951 | esac | ||
13952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13953 | (eval "$ac_compile") 2>conftest.er1 | ||
13954 | ac_status=$? | ||
13955 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13956 | rm -f conftest.er1 | ||
13957 | cat conftest.err >&5 | ||
13958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13959 | (exit $ac_status); } && { | ||
13960 | test -z "$ac_c_werror_flag" || | ||
13961 | test ! -s conftest.err | ||
13962 | } && test -s conftest.$ac_objext; then | ||
13963 | ac_cv_have_decl_h_errno=yes | ||
13964 | else | ||
13965 | echo "$as_me: failed program was:" >&5 | ||
13966 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13967 | |||
13968 | ac_cv_have_decl_h_errno=no | ||
13969 | fi | ||
13970 | |||
13971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13972 | fi | ||
13973 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5 | ||
13974 | echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; } | ||
13975 | if test $ac_cv_have_decl_h_errno = yes; then | ||
13976 | |||
13977 | cat >>confdefs.h <<_ACEOF | ||
13978 | #define HAVE_DECL_H_ERRNO 1 | ||
13979 | _ACEOF | ||
13980 | |||
13981 | |||
13982 | else | ||
13983 | cat >>confdefs.h <<_ACEOF | ||
13984 | #define HAVE_DECL_H_ERRNO 0 | ||
13985 | _ACEOF | ||
13986 | |||
13987 | |||
13988 | fi | ||
13989 | |||
13990 | |||
13991 | |||
13992 | { echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5 | ||
13993 | echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; } | ||
13994 | if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then | ||
13995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13996 | else | ||
13997 | cat >conftest.$ac_ext <<_ACEOF | ||
13998 | /* confdefs.h. */ | ||
13999 | _ACEOF | ||
14000 | cat confdefs.h >>conftest.$ac_ext | ||
14001 | cat >>conftest.$ac_ext <<_ACEOF | ||
14002 | /* end confdefs.h. */ | ||
14003 | |||
14004 | #include <sys/types.h> | ||
14005 | #include <sys/socket.h> | ||
14006 | |||
14007 | |||
14008 | int | ||
14009 | main () | ||
14010 | { | ||
14011 | #ifndef SHUT_RD | ||
14012 | (void) SHUT_RD; | ||
14013 | #endif | ||
14014 | |||
14015 | ; | ||
14016 | return 0; | ||
14017 | } | ||
14018 | _ACEOF | ||
14019 | rm -f conftest.$ac_objext | ||
14020 | if { (ac_try="$ac_compile" | ||
14021 | case "(($ac_try" in | ||
14022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14023 | *) ac_try_echo=$ac_try;; | ||
14024 | esac | ||
14025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14026 | (eval "$ac_compile") 2>conftest.er1 | ||
14027 | ac_status=$? | ||
14028 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14029 | rm -f conftest.er1 | ||
14030 | cat conftest.err >&5 | ||
14031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14032 | (exit $ac_status); } && { | ||
14033 | test -z "$ac_c_werror_flag" || | ||
14034 | test ! -s conftest.err | ||
14035 | } && test -s conftest.$ac_objext; then | ||
14036 | ac_cv_have_decl_SHUT_RD=yes | ||
14037 | else | ||
14038 | echo "$as_me: failed program was:" >&5 | ||
14039 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14040 | |||
14041 | ac_cv_have_decl_SHUT_RD=no | ||
14042 | fi | ||
14043 | |||
14044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14045 | fi | ||
14046 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5 | ||
14047 | echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; } | ||
14048 | if test $ac_cv_have_decl_SHUT_RD = yes; then | ||
14049 | |||
14050 | cat >>confdefs.h <<_ACEOF | ||
14051 | #define HAVE_DECL_SHUT_RD 1 | ||
14052 | _ACEOF | ||
14053 | |||
14054 | |||
14055 | else | ||
14056 | cat >>confdefs.h <<_ACEOF | ||
14057 | #define HAVE_DECL_SHUT_RD 0 | ||
14058 | _ACEOF | ||
14059 | |||
14060 | |||
14061 | fi | ||
14062 | |||
14063 | |||
14064 | |||
14065 | { echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5 | ||
14066 | echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; } | ||
14067 | if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then | ||
14068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14069 | else | ||
14070 | cat >conftest.$ac_ext <<_ACEOF | ||
14071 | /* confdefs.h. */ | ||
14072 | _ACEOF | ||
14073 | cat confdefs.h >>conftest.$ac_ext | ||
14074 | cat >>conftest.$ac_ext <<_ACEOF | ||
14075 | /* end confdefs.h. */ | ||
14076 | |||
14077 | #include <sys/types.h> | ||
14078 | #ifdef HAVE_SYS_STAT_H | ||
14079 | # include <sys/stat.h> | ||
14080 | #endif | ||
14081 | #ifdef HAVE_FCNTL_H | ||
14082 | # include <fcntl.h> | ||
14083 | #endif | ||
14084 | |||
14085 | |||
14086 | int | ||
14087 | main () | ||
14088 | { | ||
14089 | #ifndef O_NONBLOCK | ||
14090 | (void) O_NONBLOCK; | ||
14091 | #endif | ||
14092 | |||
14093 | ; | ||
14094 | return 0; | ||
14095 | } | ||
14096 | _ACEOF | ||
14097 | rm -f conftest.$ac_objext | ||
14098 | if { (ac_try="$ac_compile" | ||
14099 | case "(($ac_try" in | ||
14100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14101 | *) ac_try_echo=$ac_try;; | ||
14102 | esac | ||
14103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14104 | (eval "$ac_compile") 2>conftest.er1 | ||
14105 | ac_status=$? | ||
14106 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14107 | rm -f conftest.er1 | ||
14108 | cat conftest.err >&5 | ||
14109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14110 | (exit $ac_status); } && { | ||
14111 | test -z "$ac_c_werror_flag" || | ||
14112 | test ! -s conftest.err | ||
14113 | } && test -s conftest.$ac_objext; then | ||
14114 | ac_cv_have_decl_O_NONBLOCK=yes | ||
14115 | else | ||
14116 | echo "$as_me: failed program was:" >&5 | ||
14117 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14118 | |||
14119 | ac_cv_have_decl_O_NONBLOCK=no | ||
14120 | fi | ||
14121 | |||
14122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14123 | fi | ||
14124 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5 | ||
14125 | echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; } | ||
14126 | if test $ac_cv_have_decl_O_NONBLOCK = yes; then | ||
14127 | |||
14128 | cat >>confdefs.h <<_ACEOF | ||
14129 | #define HAVE_DECL_O_NONBLOCK 1 | ||
14130 | _ACEOF | ||
14131 | |||
14132 | |||
14133 | else | ||
14134 | cat >>confdefs.h <<_ACEOF | ||
14135 | #define HAVE_DECL_O_NONBLOCK 0 | ||
14136 | _ACEOF | ||
14137 | |||
14138 | |||
14139 | fi | ||
14140 | |||
14141 | |||
14142 | |||
14143 | { echo "$as_me:$LINENO: checking whether writev is declared" >&5 | ||
14144 | echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; } | ||
14145 | if test "${ac_cv_have_decl_writev+set}" = set; then | ||
14146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14147 | else | ||
14148 | cat >conftest.$ac_ext <<_ACEOF | ||
14149 | /* confdefs.h. */ | ||
14150 | _ACEOF | ||
14151 | cat confdefs.h >>conftest.$ac_ext | ||
14152 | cat >>conftest.$ac_ext <<_ACEOF | ||
14153 | /* end confdefs.h. */ | ||
14154 | |||
14155 | #include <sys/types.h> | ||
14156 | #include <sys/uio.h> | ||
14157 | #include <unistd.h> | ||
14158 | |||
14159 | |||
14160 | int | ||
14161 | main () | ||
14162 | { | ||
14163 | #ifndef writev | ||
14164 | (void) writev; | ||
14165 | #endif | ||
14166 | |||
14167 | ; | ||
14168 | return 0; | ||
14169 | } | ||
14170 | _ACEOF | ||
14171 | rm -f conftest.$ac_objext | ||
14172 | if { (ac_try="$ac_compile" | ||
14173 | case "(($ac_try" in | ||
14174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14175 | *) ac_try_echo=$ac_try;; | ||
14176 | esac | ||
14177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14178 | (eval "$ac_compile") 2>conftest.er1 | ||
14179 | ac_status=$? | ||
14180 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14181 | rm -f conftest.er1 | ||
14182 | cat conftest.err >&5 | ||
14183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14184 | (exit $ac_status); } && { | ||
14185 | test -z "$ac_c_werror_flag" || | ||
14186 | test ! -s conftest.err | ||
14187 | } && test -s conftest.$ac_objext; then | ||
14188 | ac_cv_have_decl_writev=yes | ||
14189 | else | ||
14190 | echo "$as_me: failed program was:" >&5 | ||
14191 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14192 | |||
14193 | ac_cv_have_decl_writev=no | ||
14194 | fi | ||
14195 | |||
14196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14197 | fi | ||
14198 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5 | ||
14199 | echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; } | ||
14200 | if test $ac_cv_have_decl_writev = yes; then | ||
14201 | |||
14202 | cat >>confdefs.h <<_ACEOF | ||
14203 | #define HAVE_DECL_WRITEV 1 | ||
14204 | _ACEOF | ||
14205 | |||
14206 | |||
14207 | else | ||
14208 | cat >>confdefs.h <<_ACEOF | ||
14209 | #define HAVE_DECL_WRITEV 0 | ||
14210 | _ACEOF | ||
14211 | |||
14212 | |||
14213 | fi | ||
14214 | |||
14215 | |||
14216 | |||
14217 | { echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5 | ||
14218 | echo $ECHO_N "checking whether MAXSYMLINKS is declared... $ECHO_C" >&6; } | ||
14219 | if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then | ||
14220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14221 | else | ||
14222 | cat >conftest.$ac_ext <<_ACEOF | ||
14223 | /* confdefs.h. */ | ||
14224 | _ACEOF | ||
14225 | cat confdefs.h >>conftest.$ac_ext | ||
14226 | cat >>conftest.$ac_ext <<_ACEOF | ||
14227 | /* end confdefs.h. */ | ||
14228 | |||
14229 | #include <sys/param.h> | ||
14230 | |||
14231 | |||
14232 | int | ||
14233 | main () | ||
14234 | { | ||
14235 | #ifndef MAXSYMLINKS | ||
14236 | (void) MAXSYMLINKS; | ||
14237 | #endif | ||
14238 | |||
14239 | ; | ||
14240 | return 0; | ||
14241 | } | ||
14242 | _ACEOF | ||
14243 | rm -f conftest.$ac_objext | ||
14244 | if { (ac_try="$ac_compile" | ||
14245 | case "(($ac_try" in | ||
14246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14247 | *) ac_try_echo=$ac_try;; | ||
14248 | esac | ||
14249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14250 | (eval "$ac_compile") 2>conftest.er1 | ||
14251 | ac_status=$? | ||
14252 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14253 | rm -f conftest.er1 | ||
14254 | cat conftest.err >&5 | ||
14255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14256 | (exit $ac_status); } && { | ||
14257 | test -z "$ac_c_werror_flag" || | ||
14258 | test ! -s conftest.err | ||
14259 | } && test -s conftest.$ac_objext; then | ||
14260 | ac_cv_have_decl_MAXSYMLINKS=yes | ||
14261 | else | ||
14262 | echo "$as_me: failed program was:" >&5 | ||
14263 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14264 | |||
14265 | ac_cv_have_decl_MAXSYMLINKS=no | ||
14266 | fi | ||
14267 | |||
14268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14269 | fi | ||
14270 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5 | ||
14271 | echo "${ECHO_T}$ac_cv_have_decl_MAXSYMLINKS" >&6; } | ||
14272 | if test $ac_cv_have_decl_MAXSYMLINKS = yes; then | ||
14273 | |||
14274 | cat >>confdefs.h <<_ACEOF | ||
14275 | #define HAVE_DECL_MAXSYMLINKS 1 | ||
14276 | _ACEOF | ||
14277 | |||
14278 | |||
14279 | else | ||
14280 | cat >>confdefs.h <<_ACEOF | ||
14281 | #define HAVE_DECL_MAXSYMLINKS 0 | ||
14282 | _ACEOF | ||
14283 | |||
14284 | |||
14285 | fi | ||
14286 | |||
14287 | |||
14288 | |||
14289 | { echo "$as_me:$LINENO: checking whether offsetof is declared" >&5 | ||
14290 | echo $ECHO_N "checking whether offsetof is declared... $ECHO_C" >&6; } | ||
14291 | if test "${ac_cv_have_decl_offsetof+set}" = set; then | ||
14292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14293 | else | ||
14294 | cat >conftest.$ac_ext <<_ACEOF | ||
14295 | /* confdefs.h. */ | ||
14296 | _ACEOF | ||
14297 | cat confdefs.h >>conftest.$ac_ext | ||
14298 | cat >>conftest.$ac_ext <<_ACEOF | ||
14299 | /* end confdefs.h. */ | ||
14300 | |||
14301 | #include <stddef.h> | ||
14302 | |||
14303 | |||
14304 | int | ||
14305 | main () | ||
14306 | { | ||
14307 | #ifndef offsetof | ||
14308 | (void) offsetof; | ||
14309 | #endif | ||
14310 | |||
14311 | ; | ||
14312 | return 0; | ||
14313 | } | ||
14314 | _ACEOF | ||
14315 | rm -f conftest.$ac_objext | ||
14316 | if { (ac_try="$ac_compile" | ||
14317 | case "(($ac_try" in | ||
14318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14319 | *) ac_try_echo=$ac_try;; | ||
14320 | esac | ||
14321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14322 | (eval "$ac_compile") 2>conftest.er1 | ||
14323 | ac_status=$? | ||
14324 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14325 | rm -f conftest.er1 | ||
14326 | cat conftest.err >&5 | ||
14327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14328 | (exit $ac_status); } && { | ||
14329 | test -z "$ac_c_werror_flag" || | ||
14330 | test ! -s conftest.err | ||
14331 | } && test -s conftest.$ac_objext; then | ||
14332 | ac_cv_have_decl_offsetof=yes | ||
14333 | else | ||
14334 | echo "$as_me: failed program was:" >&5 | ||
14335 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14336 | |||
14337 | ac_cv_have_decl_offsetof=no | ||
14338 | fi | ||
14339 | |||
14340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14341 | fi | ||
14342 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5 | ||
14343 | echo "${ECHO_T}$ac_cv_have_decl_offsetof" >&6; } | ||
14344 | if test $ac_cv_have_decl_offsetof = yes; then | ||
14345 | |||
14346 | cat >>confdefs.h <<_ACEOF | ||
14347 | #define HAVE_DECL_OFFSETOF 1 | ||
14348 | _ACEOF | ||
14349 | |||
14350 | |||
14351 | else | ||
14352 | cat >>confdefs.h <<_ACEOF | ||
14353 | #define HAVE_DECL_OFFSETOF 0 | ||
14354 | _ACEOF | ||
14355 | |||
14356 | |||
14357 | fi | ||
14358 | |||
14359 | |||
14360 | |||
14361 | |||
14362 | for ac_func in setresuid | ||
14363 | do | ||
14364 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14365 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14366 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14367 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14369 | else | ||
14370 | cat >conftest.$ac_ext <<_ACEOF | ||
14371 | /* confdefs.h. */ | ||
14372 | _ACEOF | ||
14373 | cat confdefs.h >>conftest.$ac_ext | ||
14374 | cat >>conftest.$ac_ext <<_ACEOF | ||
14375 | /* end confdefs.h. */ | ||
14376 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14377 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14378 | #define $ac_func innocuous_$ac_func | ||
14379 | |||
14380 | /* System header to define __stub macros and hopefully few prototypes, | ||
14381 | which can conflict with char $ac_func (); below. | ||
14382 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14383 | <limits.h> exists even on freestanding compilers. */ | ||
14384 | |||
14385 | #ifdef __STDC__ | ||
14386 | # include <limits.h> | ||
14387 | #else | ||
14388 | # include <assert.h> | ||
14389 | #endif | ||
14390 | |||
14391 | #undef $ac_func | ||
14392 | |||
14393 | /* Override any GCC internal prototype to avoid an error. | ||
14394 | Use char because int might match the return type of a GCC | ||
14395 | builtin and then its argument prototype would still apply. */ | ||
14396 | #ifdef __cplusplus | ||
14397 | extern "C" | ||
14398 | #endif | ||
14399 | char $ac_func (); | ||
14400 | /* The GNU C library defines this for functions which it implements | ||
14401 | to always fail with ENOSYS. Some functions are actually named | ||
14402 | something starting with __ and the normal name is an alias. */ | ||
14403 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14404 | choke me | ||
14405 | #endif | ||
14406 | |||
14407 | int | ||
14408 | main () | ||
14409 | { | ||
14410 | return $ac_func (); | ||
14411 | ; | ||
14412 | return 0; | ||
14413 | } | ||
14414 | _ACEOF | ||
14415 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14416 | if { (ac_try="$ac_link" | ||
14417 | case "(($ac_try" in | ||
14418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14419 | *) ac_try_echo=$ac_try;; | ||
14420 | esac | ||
14421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14422 | (eval "$ac_link") 2>conftest.er1 | ||
14423 | ac_status=$? | ||
14424 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14425 | rm -f conftest.er1 | ||
14426 | cat conftest.err >&5 | ||
14427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14428 | (exit $ac_status); } && { | ||
14429 | test -z "$ac_c_werror_flag" || | ||
14430 | test ! -s conftest.err | ||
14431 | } && test -s conftest$ac_exeext && | ||
14432 | $as_test_x conftest$ac_exeext; then | ||
14433 | eval "$as_ac_var=yes" | ||
14434 | else | ||
14435 | echo "$as_me: failed program was:" >&5 | ||
14436 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14437 | |||
14438 | eval "$as_ac_var=no" | ||
14439 | fi | ||
14440 | |||
14441 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14442 | conftest$ac_exeext conftest.$ac_ext | ||
14443 | fi | ||
14444 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14445 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14446 | echo "${ECHO_T}$ac_res" >&6; } | ||
14447 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14448 | cat >>confdefs.h <<_ACEOF | ||
14449 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14450 | _ACEOF | ||
14451 | |||
14452 | { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5 | ||
14453 | echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; } | ||
14454 | if test "$cross_compiling" = yes; then | ||
14455 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
14456 | echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
14457 | |||
14458 | else | ||
14459 | cat >conftest.$ac_ext <<_ACEOF | ||
14460 | /* confdefs.h. */ | ||
14461 | _ACEOF | ||
14462 | cat confdefs.h >>conftest.$ac_ext | ||
14463 | cat >>conftest.$ac_ext <<_ACEOF | ||
14464 | /* end confdefs.h. */ | ||
14465 | |||
14466 | #include <stdlib.h> | ||
14467 | #include <errno.h> | ||
14468 | int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
14469 | |||
14470 | _ACEOF | ||
14471 | rm -f conftest$ac_exeext | ||
14472 | if { (ac_try="$ac_link" | ||
14473 | case "(($ac_try" in | ||
14474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14475 | *) ac_try_echo=$ac_try;; | ||
14476 | esac | ||
14477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14478 | (eval "$ac_link") 2>&5 | ||
14479 | ac_status=$? | ||
14480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14481 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14482 | { (case "(($ac_try" in | ||
14483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14484 | *) ac_try_echo=$ac_try;; | ||
14485 | esac | ||
14486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14487 | (eval "$ac_try") 2>&5 | ||
14488 | ac_status=$? | ||
14489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14490 | (exit $ac_status); }; }; then | ||
14491 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
14492 | echo "${ECHO_T}yes" >&6; } | ||
14493 | else | ||
14494 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14495 | echo "$as_me: failed program was:" >&5 | ||
14496 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14497 | |||
14498 | ( exit $ac_status ) | ||
14499 | |||
14500 | cat >>confdefs.h <<\_ACEOF | ||
14501 | #define BROKEN_SETRESUID 1 | ||
14502 | _ACEOF | ||
14503 | |||
14504 | { echo "$as_me:$LINENO: result: not implemented" >&5 | ||
14505 | echo "${ECHO_T}not implemented" >&6; } | ||
14506 | fi | ||
14507 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14508 | fi | ||
14509 | |||
14510 | |||
14511 | |||
14512 | fi | ||
14513 | done | ||
14514 | |||
14515 | |||
14516 | |||
14517 | for ac_func in setresgid | ||
14518 | do | ||
14519 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14520 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14521 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14522 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14524 | else | ||
14525 | cat >conftest.$ac_ext <<_ACEOF | ||
14526 | /* confdefs.h. */ | ||
14527 | _ACEOF | ||
14528 | cat confdefs.h >>conftest.$ac_ext | ||
14529 | cat >>conftest.$ac_ext <<_ACEOF | ||
14530 | /* end confdefs.h. */ | ||
14531 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14532 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14533 | #define $ac_func innocuous_$ac_func | ||
14534 | |||
14535 | /* System header to define __stub macros and hopefully few prototypes, | ||
14536 | which can conflict with char $ac_func (); below. | ||
14537 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14538 | <limits.h> exists even on freestanding compilers. */ | ||
14539 | |||
14540 | #ifdef __STDC__ | ||
14541 | # include <limits.h> | ||
14542 | #else | ||
14543 | # include <assert.h> | ||
14544 | #endif | ||
14545 | |||
14546 | #undef $ac_func | ||
14547 | |||
14548 | /* Override any GCC internal prototype to avoid an error. | ||
14549 | Use char because int might match the return type of a GCC | ||
14550 | builtin and then its argument prototype would still apply. */ | ||
14551 | #ifdef __cplusplus | ||
14552 | extern "C" | ||
14553 | #endif | ||
14554 | char $ac_func (); | ||
14555 | /* The GNU C library defines this for functions which it implements | ||
14556 | to always fail with ENOSYS. Some functions are actually named | ||
14557 | something starting with __ and the normal name is an alias. */ | ||
14558 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14559 | choke me | ||
14560 | #endif | ||
14561 | |||
14562 | int | ||
14563 | main () | ||
14564 | { | ||
14565 | return $ac_func (); | ||
14566 | ; | ||
14567 | return 0; | ||
14568 | } | ||
14569 | _ACEOF | ||
14570 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14571 | if { (ac_try="$ac_link" | ||
14572 | case "(($ac_try" in | ||
14573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14574 | *) ac_try_echo=$ac_try;; | ||
14575 | esac | ||
14576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14577 | (eval "$ac_link") 2>conftest.er1 | ||
14578 | ac_status=$? | ||
14579 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14580 | rm -f conftest.er1 | ||
14581 | cat conftest.err >&5 | ||
14582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14583 | (exit $ac_status); } && { | ||
14584 | test -z "$ac_c_werror_flag" || | ||
14585 | test ! -s conftest.err | ||
14586 | } && test -s conftest$ac_exeext && | ||
14587 | $as_test_x conftest$ac_exeext; then | ||
14588 | eval "$as_ac_var=yes" | ||
14589 | else | ||
14590 | echo "$as_me: failed program was:" >&5 | ||
14591 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14592 | |||
14593 | eval "$as_ac_var=no" | ||
14594 | fi | ||
14595 | |||
14596 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14597 | conftest$ac_exeext conftest.$ac_ext | ||
14598 | fi | ||
14599 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14600 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14601 | echo "${ECHO_T}$ac_res" >&6; } | ||
14602 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14603 | cat >>confdefs.h <<_ACEOF | ||
14604 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14605 | _ACEOF | ||
14606 | |||
14607 | { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5 | ||
14608 | echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; } | ||
14609 | if test "$cross_compiling" = yes; then | ||
14610 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
14611 | echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
14612 | |||
14613 | else | ||
14614 | cat >conftest.$ac_ext <<_ACEOF | ||
14615 | /* confdefs.h. */ | ||
14616 | _ACEOF | ||
14617 | cat confdefs.h >>conftest.$ac_ext | ||
14618 | cat >>conftest.$ac_ext <<_ACEOF | ||
14619 | /* end confdefs.h. */ | ||
14620 | |||
14621 | #include <stdlib.h> | ||
14622 | #include <errno.h> | ||
14623 | int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
14624 | |||
14625 | _ACEOF | ||
14626 | rm -f conftest$ac_exeext | ||
14627 | if { (ac_try="$ac_link" | ||
14628 | case "(($ac_try" in | ||
14629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14630 | *) ac_try_echo=$ac_try;; | ||
14631 | esac | ||
14632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14633 | (eval "$ac_link") 2>&5 | ||
14634 | ac_status=$? | ||
14635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14636 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
14637 | { (case "(($ac_try" in | ||
14638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14639 | *) ac_try_echo=$ac_try;; | ||
14640 | esac | ||
14641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14642 | (eval "$ac_try") 2>&5 | ||
14643 | ac_status=$? | ||
14644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14645 | (exit $ac_status); }; }; then | ||
14646 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
14647 | echo "${ECHO_T}yes" >&6; } | ||
14648 | else | ||
14649 | echo "$as_me: program exited with status $ac_status" >&5 | ||
14650 | echo "$as_me: failed program was:" >&5 | ||
14651 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14652 | |||
14653 | ( exit $ac_status ) | ||
14654 | |||
14655 | cat >>confdefs.h <<\_ACEOF | ||
14656 | #define BROKEN_SETRESGID 1 | ||
14657 | _ACEOF | ||
14658 | |||
14659 | { echo "$as_me:$LINENO: result: not implemented" >&5 | ||
14660 | echo "${ECHO_T}not implemented" >&6; } | ||
14661 | fi | ||
14662 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
14663 | fi | ||
14664 | |||
14665 | |||
14666 | |||
14667 | fi | ||
14668 | done | ||
14669 | |||
14670 | |||
14671 | |||
14672 | |||
14673 | for ac_func in gettimeofday time | ||
14674 | do | ||
14675 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14676 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14677 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14678 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14680 | else | ||
14681 | cat >conftest.$ac_ext <<_ACEOF | ||
14682 | /* confdefs.h. */ | ||
14683 | _ACEOF | ||
14684 | cat confdefs.h >>conftest.$ac_ext | ||
14685 | cat >>conftest.$ac_ext <<_ACEOF | ||
14686 | /* end confdefs.h. */ | ||
14687 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14688 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14689 | #define $ac_func innocuous_$ac_func | ||
14690 | |||
14691 | /* System header to define __stub macros and hopefully few prototypes, | ||
14692 | which can conflict with char $ac_func (); below. | ||
14693 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14694 | <limits.h> exists even on freestanding compilers. */ | ||
14695 | |||
14696 | #ifdef __STDC__ | ||
14697 | # include <limits.h> | ||
14698 | #else | ||
14699 | # include <assert.h> | ||
14700 | #endif | ||
14701 | |||
14702 | #undef $ac_func | ||
14703 | |||
14704 | /* Override any GCC internal prototype to avoid an error. | ||
14705 | Use char because int might match the return type of a GCC | ||
14706 | builtin and then its argument prototype would still apply. */ | ||
14707 | #ifdef __cplusplus | ||
14708 | extern "C" | ||
14709 | #endif | ||
14710 | char $ac_func (); | ||
14711 | /* The GNU C library defines this for functions which it implements | ||
14712 | to always fail with ENOSYS. Some functions are actually named | ||
14713 | something starting with __ and the normal name is an alias. */ | ||
14714 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14715 | choke me | ||
14716 | #endif | ||
14717 | |||
14718 | int | ||
14719 | main () | ||
14720 | { | ||
14721 | return $ac_func (); | ||
14722 | ; | ||
14723 | return 0; | ||
14724 | } | ||
14725 | _ACEOF | ||
14726 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14727 | if { (ac_try="$ac_link" | ||
14728 | case "(($ac_try" in | ||
14729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14730 | *) ac_try_echo=$ac_try;; | ||
14731 | esac | ||
14732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14733 | (eval "$ac_link") 2>conftest.er1 | ||
14734 | ac_status=$? | ||
14735 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14736 | rm -f conftest.er1 | ||
14737 | cat conftest.err >&5 | ||
14738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14739 | (exit $ac_status); } && { | ||
14740 | test -z "$ac_c_werror_flag" || | ||
14741 | test ! -s conftest.err | ||
14742 | } && test -s conftest$ac_exeext && | ||
14743 | $as_test_x conftest$ac_exeext; then | ||
14744 | eval "$as_ac_var=yes" | ||
14745 | else | ||
14746 | echo "$as_me: failed program was:" >&5 | ||
14747 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14748 | |||
14749 | eval "$as_ac_var=no" | ||
14750 | fi | ||
14751 | |||
14752 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14753 | conftest$ac_exeext conftest.$ac_ext | ||
14754 | fi | ||
14755 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14756 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14757 | echo "${ECHO_T}$ac_res" >&6; } | ||
14758 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14759 | cat >>confdefs.h <<_ACEOF | ||
14760 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14761 | _ACEOF | ||
14762 | |||
14763 | fi | ||
14764 | done | ||
14765 | |||
14766 | |||
14767 | |||
14768 | |||
14769 | |||
14770 | |||
14771 | |||
14772 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
14773 | do | ||
14774 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14775 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14776 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14777 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14779 | else | ||
14780 | cat >conftest.$ac_ext <<_ACEOF | ||
14781 | /* confdefs.h. */ | ||
14782 | _ACEOF | ||
14783 | cat confdefs.h >>conftest.$ac_ext | ||
14784 | cat >>conftest.$ac_ext <<_ACEOF | ||
14785 | /* end confdefs.h. */ | ||
14786 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14787 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14788 | #define $ac_func innocuous_$ac_func | ||
14789 | |||
14790 | /* System header to define __stub macros and hopefully few prototypes, | ||
14791 | which can conflict with char $ac_func (); below. | ||
14792 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14793 | <limits.h> exists even on freestanding compilers. */ | ||
14794 | |||
14795 | #ifdef __STDC__ | ||
14796 | # include <limits.h> | ||
14797 | #else | ||
14798 | # include <assert.h> | ||
14799 | #endif | ||
14800 | |||
14801 | #undef $ac_func | ||
14802 | |||
14803 | /* Override any GCC internal prototype to avoid an error. | ||
14804 | Use char because int might match the return type of a GCC | ||
14805 | builtin and then its argument prototype would still apply. */ | ||
14806 | #ifdef __cplusplus | ||
14807 | extern "C" | ||
14808 | #endif | ||
14809 | char $ac_func (); | ||
14810 | /* The GNU C library defines this for functions which it implements | ||
14811 | to always fail with ENOSYS. Some functions are actually named | ||
14812 | something starting with __ and the normal name is an alias. */ | ||
14813 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14814 | choke me | ||
14815 | #endif | ||
14816 | |||
14817 | int | ||
14818 | main () | ||
14819 | { | ||
14820 | return $ac_func (); | ||
14821 | ; | ||
14822 | return 0; | ||
14823 | } | ||
14824 | _ACEOF | ||
14825 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14826 | if { (ac_try="$ac_link" | ||
14827 | case "(($ac_try" in | ||
14828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14829 | *) ac_try_echo=$ac_try;; | ||
14830 | esac | ||
14831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14832 | (eval "$ac_link") 2>conftest.er1 | ||
14833 | ac_status=$? | ||
14834 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14835 | rm -f conftest.er1 | ||
14836 | cat conftest.err >&5 | ||
14837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14838 | (exit $ac_status); } && { | ||
14839 | test -z "$ac_c_werror_flag" || | ||
14840 | test ! -s conftest.err | ||
14841 | } && test -s conftest$ac_exeext && | ||
14842 | $as_test_x conftest$ac_exeext; then | ||
14843 | eval "$as_ac_var=yes" | ||
14844 | else | ||
14845 | echo "$as_me: failed program was:" >&5 | ||
14846 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14847 | |||
14848 | eval "$as_ac_var=no" | ||
14849 | fi | ||
14850 | |||
14851 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14852 | conftest$ac_exeext conftest.$ac_ext | ||
14853 | fi | ||
14854 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14855 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14856 | echo "${ECHO_T}$ac_res" >&6; } | ||
14857 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14858 | cat >>confdefs.h <<_ACEOF | ||
14859 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14860 | _ACEOF | ||
14861 | |||
14862 | fi | ||
14863 | done | ||
14864 | |||
14865 | |||
14866 | for ac_func in utmpname | ||
14867 | do | ||
14868 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14869 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14870 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14871 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14873 | else | ||
14874 | cat >conftest.$ac_ext <<_ACEOF | ||
14875 | /* confdefs.h. */ | ||
14876 | _ACEOF | ||
14877 | cat confdefs.h >>conftest.$ac_ext | ||
14878 | cat >>conftest.$ac_ext <<_ACEOF | ||
14879 | /* end confdefs.h. */ | ||
14880 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14881 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14882 | #define $ac_func innocuous_$ac_func | ||
14883 | |||
14884 | /* System header to define __stub macros and hopefully few prototypes, | ||
14885 | which can conflict with char $ac_func (); below. | ||
14886 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14887 | <limits.h> exists even on freestanding compilers. */ | ||
14888 | |||
14889 | #ifdef __STDC__ | ||
14890 | # include <limits.h> | ||
14891 | #else | ||
14892 | # include <assert.h> | ||
14893 | #endif | ||
14894 | |||
14895 | #undef $ac_func | ||
14896 | |||
14897 | /* Override any GCC internal prototype to avoid an error. | ||
14898 | Use char because int might match the return type of a GCC | ||
14899 | builtin and then its argument prototype would still apply. */ | ||
14900 | #ifdef __cplusplus | ||
14901 | extern "C" | ||
14902 | #endif | ||
14903 | char $ac_func (); | ||
14904 | /* The GNU C library defines this for functions which it implements | ||
14905 | to always fail with ENOSYS. Some functions are actually named | ||
14906 | something starting with __ and the normal name is an alias. */ | ||
14907 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14908 | choke me | ||
14909 | #endif | ||
14910 | |||
14911 | int | ||
14912 | main () | ||
14913 | { | ||
14914 | return $ac_func (); | ||
14915 | ; | ||
14916 | return 0; | ||
14917 | } | ||
14918 | _ACEOF | ||
14919 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14920 | if { (ac_try="$ac_link" | ||
14921 | case "(($ac_try" in | ||
14922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14923 | *) ac_try_echo=$ac_try;; | ||
14924 | esac | ||
14925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
14926 | (eval "$ac_link") 2>conftest.er1 | ||
14927 | ac_status=$? | ||
14928 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14929 | rm -f conftest.er1 | ||
14930 | cat conftest.err >&5 | ||
14931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14932 | (exit $ac_status); } && { | ||
14933 | test -z "$ac_c_werror_flag" || | ||
14934 | test ! -s conftest.err | ||
14935 | } && test -s conftest$ac_exeext && | ||
14936 | $as_test_x conftest$ac_exeext; then | ||
14937 | eval "$as_ac_var=yes" | ||
14938 | else | ||
14939 | echo "$as_me: failed program was:" >&5 | ||
14940 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14941 | |||
14942 | eval "$as_ac_var=no" | ||
14943 | fi | ||
14944 | |||
14945 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14946 | conftest$ac_exeext conftest.$ac_ext | ||
14947 | fi | ||
14948 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
14949 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14950 | echo "${ECHO_T}$ac_res" >&6; } | ||
14951 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
14952 | cat >>confdefs.h <<_ACEOF | ||
14953 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14954 | _ACEOF | ||
14955 | |||
14956 | fi | ||
14957 | done | ||
14958 | |||
14959 | |||
14960 | |||
14961 | |||
14962 | |||
14963 | |||
14964 | for ac_func in endutxent getutxent getutxid getutxline pututxline | ||
14965 | do | ||
14966 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14967 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14968 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
14969 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14971 | else | ||
14972 | cat >conftest.$ac_ext <<_ACEOF | ||
14973 | /* confdefs.h. */ | ||
14974 | _ACEOF | ||
14975 | cat confdefs.h >>conftest.$ac_ext | ||
14976 | cat >>conftest.$ac_ext <<_ACEOF | ||
14977 | /* end confdefs.h. */ | ||
14978 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14979 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14980 | #define $ac_func innocuous_$ac_func | ||
14981 | |||
14982 | /* System header to define __stub macros and hopefully few prototypes, | ||
14983 | which can conflict with char $ac_func (); below. | ||
14984 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14985 | <limits.h> exists even on freestanding compilers. */ | ||
14986 | |||
14987 | #ifdef __STDC__ | ||
14988 | # include <limits.h> | ||
14989 | #else | ||
14990 | # include <assert.h> | ||
14991 | #endif | ||
14992 | |||
14993 | #undef $ac_func | ||
14994 | |||
14995 | /* Override any GCC internal prototype to avoid an error. | ||
14996 | Use char because int might match the return type of a GCC | ||
14997 | builtin and then its argument prototype would still apply. */ | ||
14998 | #ifdef __cplusplus | ||
14999 | extern "C" | ||
15000 | #endif | ||
15001 | char $ac_func (); | ||
15002 | /* The GNU C library defines this for functions which it implements | ||
15003 | to always fail with ENOSYS. Some functions are actually named | ||
15004 | something starting with __ and the normal name is an alias. */ | ||
15005 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15006 | choke me | ||
15007 | #endif | ||
15008 | |||
15009 | int | ||
15010 | main () | ||
15011 | { | ||
15012 | return $ac_func (); | ||
15013 | ; | ||
15014 | return 0; | ||
15015 | } | ||
15016 | _ACEOF | ||
15017 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15018 | if { (ac_try="$ac_link" | ||
15019 | case "(($ac_try" in | ||
15020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15021 | *) ac_try_echo=$ac_try;; | ||
15022 | esac | ||
15023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15024 | (eval "$ac_link") 2>conftest.er1 | ||
15025 | ac_status=$? | ||
15026 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15027 | rm -f conftest.er1 | ||
15028 | cat conftest.err >&5 | ||
15029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15030 | (exit $ac_status); } && { | ||
15031 | test -z "$ac_c_werror_flag" || | ||
15032 | test ! -s conftest.err | ||
15033 | } && test -s conftest$ac_exeext && | ||
15034 | $as_test_x conftest$ac_exeext; then | ||
15035 | eval "$as_ac_var=yes" | ||
15036 | else | ||
15037 | echo "$as_me: failed program was:" >&5 | ||
15038 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15039 | |||
15040 | eval "$as_ac_var=no" | ||
15041 | fi | ||
15042 | |||
15043 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15044 | conftest$ac_exeext conftest.$ac_ext | ||
15045 | fi | ||
15046 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
15047 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15048 | echo "${ECHO_T}$ac_res" >&6; } | ||
15049 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
15050 | cat >>confdefs.h <<_ACEOF | ||
15051 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15052 | _ACEOF | ||
15053 | |||
15054 | fi | ||
15055 | done | ||
15056 | |||
15057 | |||
15058 | |||
15059 | for ac_func in setutxent utmpxname | ||
15060 | do | ||
15061 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15062 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
15063 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
15064 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15066 | else | ||
15067 | cat >conftest.$ac_ext <<_ACEOF | ||
15068 | /* confdefs.h. */ | ||
15069 | _ACEOF | ||
15070 | cat confdefs.h >>conftest.$ac_ext | ||
15071 | cat >>conftest.$ac_ext <<_ACEOF | ||
15072 | /* end confdefs.h. */ | ||
15073 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
15074 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15075 | #define $ac_func innocuous_$ac_func | ||
15076 | |||
15077 | /* System header to define __stub macros and hopefully few prototypes, | ||
15078 | which can conflict with char $ac_func (); below. | ||
15079 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15080 | <limits.h> exists even on freestanding compilers. */ | ||
15081 | |||
15082 | #ifdef __STDC__ | ||
15083 | # include <limits.h> | ||
15084 | #else | ||
15085 | # include <assert.h> | ||
15086 | #endif | ||
15087 | |||
15088 | #undef $ac_func | ||
15089 | |||
15090 | /* Override any GCC internal prototype to avoid an error. | ||
15091 | Use char because int might match the return type of a GCC | ||
15092 | builtin and then its argument prototype would still apply. */ | ||
15093 | #ifdef __cplusplus | ||
15094 | extern "C" | ||
15095 | #endif | ||
15096 | char $ac_func (); | ||
15097 | /* The GNU C library defines this for functions which it implements | ||
15098 | to always fail with ENOSYS. Some functions are actually named | ||
15099 | something starting with __ and the normal name is an alias. */ | ||
15100 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15101 | choke me | ||
15102 | #endif | ||
15103 | |||
15104 | int | ||
15105 | main () | ||
15106 | { | ||
15107 | return $ac_func (); | ||
15108 | ; | ||
15109 | return 0; | ||
15110 | } | ||
15111 | _ACEOF | ||
15112 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15113 | if { (ac_try="$ac_link" | ||
15114 | case "(($ac_try" in | ||
15115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15116 | *) ac_try_echo=$ac_try;; | ||
15117 | esac | ||
15118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15119 | (eval "$ac_link") 2>conftest.er1 | ||
15120 | ac_status=$? | ||
15121 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15122 | rm -f conftest.er1 | ||
15123 | cat conftest.err >&5 | ||
15124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15125 | (exit $ac_status); } && { | ||
15126 | test -z "$ac_c_werror_flag" || | ||
15127 | test ! -s conftest.err | ||
15128 | } && test -s conftest$ac_exeext && | ||
15129 | $as_test_x conftest$ac_exeext; then | ||
15130 | eval "$as_ac_var=yes" | ||
15131 | else | ||
15132 | echo "$as_me: failed program was:" >&5 | ||
15133 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15134 | |||
15135 | eval "$as_ac_var=no" | ||
15136 | fi | ||
15137 | |||
15138 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15139 | conftest$ac_exeext conftest.$ac_ext | ||
15140 | fi | ||
15141 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
15142 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15143 | echo "${ECHO_T}$ac_res" >&6; } | ||
15144 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
15145 | cat >>confdefs.h <<_ACEOF | ||
15146 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15147 | _ACEOF | ||
15148 | |||
15149 | fi | ||
15150 | done | ||
15151 | |||
15152 | |||
15153 | for ac_func in getlastlogxbyname | ||
15154 | do | ||
15155 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15156 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
15157 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
15158 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15160 | else | ||
15161 | cat >conftest.$ac_ext <<_ACEOF | ||
15162 | /* confdefs.h. */ | ||
15163 | _ACEOF | ||
15164 | cat confdefs.h >>conftest.$ac_ext | ||
15165 | cat >>conftest.$ac_ext <<_ACEOF | ||
15166 | /* end confdefs.h. */ | ||
15167 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
15168 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15169 | #define $ac_func innocuous_$ac_func | ||
15170 | |||
15171 | /* System header to define __stub macros and hopefully few prototypes, | ||
15172 | which can conflict with char $ac_func (); below. | ||
15173 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15174 | <limits.h> exists even on freestanding compilers. */ | ||
15175 | |||
15176 | #ifdef __STDC__ | ||
15177 | # include <limits.h> | ||
15178 | #else | ||
15179 | # include <assert.h> | ||
15180 | #endif | ||
15181 | |||
15182 | #undef $ac_func | ||
15183 | |||
15184 | /* Override any GCC internal prototype to avoid an error. | ||
15185 | Use char because int might match the return type of a GCC | ||
15186 | builtin and then its argument prototype would still apply. */ | ||
15187 | #ifdef __cplusplus | ||
15188 | extern "C" | ||
15189 | #endif | ||
15190 | char $ac_func (); | ||
15191 | /* The GNU C library defines this for functions which it implements | ||
15192 | to always fail with ENOSYS. Some functions are actually named | ||
15193 | something starting with __ and the normal name is an alias. */ | ||
15194 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15195 | choke me | ||
15196 | #endif | ||
15197 | |||
15198 | int | ||
15199 | main () | ||
15200 | { | ||
15201 | return $ac_func (); | ||
15202 | ; | ||
15203 | return 0; | ||
15204 | } | ||
15205 | _ACEOF | ||
15206 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15207 | if { (ac_try="$ac_link" | ||
15208 | case "(($ac_try" in | ||
15209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15210 | *) ac_try_echo=$ac_try;; | ||
15211 | esac | ||
15212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15213 | (eval "$ac_link") 2>conftest.er1 | ||
15214 | ac_status=$? | ||
15215 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15216 | rm -f conftest.er1 | ||
15217 | cat conftest.err >&5 | ||
15218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15219 | (exit $ac_status); } && { | ||
15220 | test -z "$ac_c_werror_flag" || | ||
15221 | test ! -s conftest.err | ||
15222 | } && test -s conftest$ac_exeext && | ||
15223 | $as_test_x conftest$ac_exeext; then | ||
15224 | eval "$as_ac_var=yes" | ||
15225 | else | ||
15226 | echo "$as_me: failed program was:" >&5 | ||
15227 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15228 | |||
15229 | eval "$as_ac_var=no" | ||
15230 | fi | ||
15231 | |||
15232 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15233 | conftest$ac_exeext conftest.$ac_ext | ||
15234 | fi | ||
15235 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
15236 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15237 | echo "${ECHO_T}$ac_res" >&6; } | ||
15238 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
15239 | cat >>confdefs.h <<_ACEOF | ||
15240 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15241 | _ACEOF | ||
15242 | |||
15243 | fi | ||
15244 | done | ||
15245 | |||
15246 | |||
15247 | { echo "$as_me:$LINENO: checking for daemon" >&5 | ||
15248 | echo $ECHO_N "checking for daemon... $ECHO_C" >&6; } | ||
15249 | if test "${ac_cv_func_daemon+set}" = set; then | ||
15250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15251 | else | ||
15252 | cat >conftest.$ac_ext <<_ACEOF | ||
15253 | /* confdefs.h. */ | ||
15254 | _ACEOF | ||
15255 | cat confdefs.h >>conftest.$ac_ext | ||
15256 | cat >>conftest.$ac_ext <<_ACEOF | ||
15257 | /* end confdefs.h. */ | ||
15258 | /* Define daemon to an innocuous variant, in case <limits.h> declares daemon. | ||
15259 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15260 | #define daemon innocuous_daemon | ||
15261 | |||
15262 | /* System header to define __stub macros and hopefully few prototypes, | ||
15263 | which can conflict with char daemon (); below. | ||
15264 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15265 | <limits.h> exists even on freestanding compilers. */ | ||
15266 | |||
15267 | #ifdef __STDC__ | ||
15268 | # include <limits.h> | ||
15269 | #else | ||
15270 | # include <assert.h> | ||
15271 | #endif | ||
15272 | |||
15273 | #undef daemon | ||
15274 | |||
15275 | /* Override any GCC internal prototype to avoid an error. | ||
15276 | Use char because int might match the return type of a GCC | ||
15277 | builtin and then its argument prototype would still apply. */ | ||
15278 | #ifdef __cplusplus | ||
15279 | extern "C" | ||
15280 | #endif | ||
15281 | char daemon (); | ||
15282 | /* The GNU C library defines this for functions which it implements | ||
15283 | to always fail with ENOSYS. Some functions are actually named | ||
15284 | something starting with __ and the normal name is an alias. */ | ||
15285 | #if defined __stub_daemon || defined __stub___daemon | ||
15286 | choke me | ||
15287 | #endif | ||
15288 | |||
15289 | int | ||
15290 | main () | ||
15291 | { | ||
15292 | return daemon (); | ||
15293 | ; | ||
15294 | return 0; | ||
15295 | } | ||
15296 | _ACEOF | ||
15297 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15298 | if { (ac_try="$ac_link" | ||
15299 | case "(($ac_try" in | ||
15300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15301 | *) ac_try_echo=$ac_try;; | ||
15302 | esac | ||
15303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15304 | (eval "$ac_link") 2>conftest.er1 | ||
15305 | ac_status=$? | ||
15306 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15307 | rm -f conftest.er1 | ||
15308 | cat conftest.err >&5 | ||
15309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15310 | (exit $ac_status); } && { | ||
15311 | test -z "$ac_c_werror_flag" || | ||
15312 | test ! -s conftest.err | ||
15313 | } && test -s conftest$ac_exeext && | ||
15314 | $as_test_x conftest$ac_exeext; then | ||
15315 | ac_cv_func_daemon=yes | ||
15316 | else | ||
15317 | echo "$as_me: failed program was:" >&5 | ||
15318 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15319 | |||
15320 | ac_cv_func_daemon=no | ||
15321 | fi | ||
15322 | |||
15323 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15324 | conftest$ac_exeext conftest.$ac_ext | ||
15325 | fi | ||
15326 | { echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5 | ||
15327 | echo "${ECHO_T}$ac_cv_func_daemon" >&6; } | ||
15328 | if test $ac_cv_func_daemon = yes; then | ||
15329 | |||
15330 | cat >>confdefs.h <<\_ACEOF | ||
15331 | #define HAVE_DAEMON 1 | ||
15332 | _ACEOF | ||
15333 | |||
15334 | else | ||
15335 | { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5 | ||
15336 | echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; } | ||
15337 | if test "${ac_cv_lib_bsd_daemon+set}" = set; then | ||
15338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15339 | else | ||
15340 | ac_check_lib_save_LIBS=$LIBS | ||
15341 | LIBS="-lbsd $LIBS" | ||
15342 | cat >conftest.$ac_ext <<_ACEOF | ||
15343 | /* confdefs.h. */ | ||
15344 | _ACEOF | ||
15345 | cat confdefs.h >>conftest.$ac_ext | ||
15346 | cat >>conftest.$ac_ext <<_ACEOF | ||
15347 | /* end confdefs.h. */ | ||
15348 | |||
15349 | /* Override any GCC internal prototype to avoid an error. | ||
15350 | Use char because int might match the return type of a GCC | ||
15351 | builtin and then its argument prototype would still apply. */ | ||
15352 | #ifdef __cplusplus | ||
15353 | extern "C" | ||
15354 | #endif | ||
15355 | char daemon (); | ||
15356 | int | ||
15357 | main () | ||
15358 | { | ||
15359 | return daemon (); | ||
15360 | ; | ||
15361 | return 0; | ||
15362 | } | ||
15363 | _ACEOF | ||
15364 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15365 | if { (ac_try="$ac_link" | ||
15366 | case "(($ac_try" in | ||
15367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15368 | *) ac_try_echo=$ac_try;; | ||
15369 | esac | ||
15370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15371 | (eval "$ac_link") 2>conftest.er1 | ||
15372 | ac_status=$? | ||
15373 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15374 | rm -f conftest.er1 | ||
15375 | cat conftest.err >&5 | ||
15376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15377 | (exit $ac_status); } && { | ||
15378 | test -z "$ac_c_werror_flag" || | ||
15379 | test ! -s conftest.err | ||
15380 | } && test -s conftest$ac_exeext && | ||
15381 | $as_test_x conftest$ac_exeext; then | ||
15382 | ac_cv_lib_bsd_daemon=yes | ||
15383 | else | ||
15384 | echo "$as_me: failed program was:" >&5 | ||
15385 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15386 | |||
15387 | ac_cv_lib_bsd_daemon=no | ||
15388 | fi | ||
15389 | |||
15390 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15391 | conftest$ac_exeext conftest.$ac_ext | ||
15392 | LIBS=$ac_check_lib_save_LIBS | ||
15393 | fi | ||
15394 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5 | ||
15395 | echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; } | ||
15396 | if test $ac_cv_lib_bsd_daemon = yes; then | ||
15397 | LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF | ||
15398 | #define HAVE_DAEMON 1 | ||
15399 | _ACEOF | ||
15400 | |||
15401 | fi | ||
15402 | |||
15403 | |||
15404 | fi | ||
15405 | |||
15406 | |||
15407 | { echo "$as_me:$LINENO: checking for getpagesize" >&5 | ||
15408 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } | ||
15409 | if test "${ac_cv_func_getpagesize+set}" = set; then | ||
15410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15411 | else | ||
15412 | cat >conftest.$ac_ext <<_ACEOF | ||
15413 | /* confdefs.h. */ | ||
15414 | _ACEOF | ||
15415 | cat confdefs.h >>conftest.$ac_ext | ||
15416 | cat >>conftest.$ac_ext <<_ACEOF | ||
15417 | /* end confdefs.h. */ | ||
15418 | /* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize. | ||
15419 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15420 | #define getpagesize innocuous_getpagesize | ||
15421 | |||
15422 | /* System header to define __stub macros and hopefully few prototypes, | ||
15423 | which can conflict with char getpagesize (); below. | ||
15424 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15425 | <limits.h> exists even on freestanding compilers. */ | ||
15426 | |||
15427 | #ifdef __STDC__ | ||
15428 | # include <limits.h> | ||
15429 | #else | ||
15430 | # include <assert.h> | ||
15431 | #endif | ||
15432 | |||
15433 | #undef getpagesize | ||
15434 | |||
15435 | /* Override any GCC internal prototype to avoid an error. | ||
15436 | Use char because int might match the return type of a GCC | ||
15437 | builtin and then its argument prototype would still apply. */ | ||
15438 | #ifdef __cplusplus | ||
15439 | extern "C" | ||
15440 | #endif | ||
15441 | char getpagesize (); | ||
15442 | /* The GNU C library defines this for functions which it implements | ||
15443 | to always fail with ENOSYS. Some functions are actually named | ||
15444 | something starting with __ and the normal name is an alias. */ | ||
15445 | #if defined __stub_getpagesize || defined __stub___getpagesize | ||
15446 | choke me | ||
15447 | #endif | ||
15448 | |||
15449 | int | ||
15450 | main () | ||
15451 | { | ||
15452 | return getpagesize (); | ||
15453 | ; | ||
15454 | return 0; | ||
15455 | } | ||
15456 | _ACEOF | ||
15457 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15458 | if { (ac_try="$ac_link" | ||
15459 | case "(($ac_try" in | ||
15460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15461 | *) ac_try_echo=$ac_try;; | ||
15462 | esac | ||
15463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15464 | (eval "$ac_link") 2>conftest.er1 | ||
15465 | ac_status=$? | ||
15466 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15467 | rm -f conftest.er1 | ||
15468 | cat conftest.err >&5 | ||
15469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15470 | (exit $ac_status); } && { | ||
15471 | test -z "$ac_c_werror_flag" || | ||
15472 | test ! -s conftest.err | ||
15473 | } && test -s conftest$ac_exeext && | ||
15474 | $as_test_x conftest$ac_exeext; then | ||
15475 | ac_cv_func_getpagesize=yes | ||
15476 | else | ||
15477 | echo "$as_me: failed program was:" >&5 | ||
15478 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15479 | |||
15480 | ac_cv_func_getpagesize=no | ||
15481 | fi | ||
15482 | |||
15483 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15484 | conftest$ac_exeext conftest.$ac_ext | ||
15485 | fi | ||
15486 | { echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5 | ||
15487 | echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; } | ||
15488 | if test $ac_cv_func_getpagesize = yes; then | ||
15489 | |||
15490 | cat >>confdefs.h <<\_ACEOF | ||
15491 | #define HAVE_GETPAGESIZE 1 | ||
15492 | _ACEOF | ||
15493 | |||
15494 | else | ||
15495 | { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5 | ||
15496 | echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; } | ||
15497 | if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then | ||
15498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15499 | else | ||
15500 | ac_check_lib_save_LIBS=$LIBS | ||
15501 | LIBS="-lucb $LIBS" | ||
15502 | cat >conftest.$ac_ext <<_ACEOF | ||
15503 | /* confdefs.h. */ | ||
15504 | _ACEOF | ||
15505 | cat confdefs.h >>conftest.$ac_ext | ||
15506 | cat >>conftest.$ac_ext <<_ACEOF | ||
15507 | /* end confdefs.h. */ | ||
15508 | |||
15509 | /* Override any GCC internal prototype to avoid an error. | ||
15510 | Use char because int might match the return type of a GCC | ||
15511 | builtin and then its argument prototype would still apply. */ | ||
15512 | #ifdef __cplusplus | ||
15513 | extern "C" | ||
15514 | #endif | ||
15515 | char getpagesize (); | ||
15516 | int | ||
15517 | main () | ||
15518 | { | ||
15519 | return getpagesize (); | ||
15520 | ; | ||
15521 | return 0; | ||
15522 | } | ||
15523 | _ACEOF | ||
15524 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15525 | if { (ac_try="$ac_link" | ||
15526 | case "(($ac_try" in | ||
15527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15528 | *) ac_try_echo=$ac_try;; | ||
15529 | esac | ||
15530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15531 | (eval "$ac_link") 2>conftest.er1 | ||
15532 | ac_status=$? | ||
15533 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15534 | rm -f conftest.er1 | ||
15535 | cat conftest.err >&5 | ||
15536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15537 | (exit $ac_status); } && { | ||
15538 | test -z "$ac_c_werror_flag" || | ||
15539 | test ! -s conftest.err | ||
15540 | } && test -s conftest$ac_exeext && | ||
15541 | $as_test_x conftest$ac_exeext; then | ||
15542 | ac_cv_lib_ucb_getpagesize=yes | ||
15543 | else | ||
15544 | echo "$as_me: failed program was:" >&5 | ||
15545 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15546 | |||
15547 | ac_cv_lib_ucb_getpagesize=no | ||
15548 | fi | ||
15549 | |||
15550 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15551 | conftest$ac_exeext conftest.$ac_ext | ||
15552 | LIBS=$ac_check_lib_save_LIBS | ||
15553 | fi | ||
15554 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
15555 | echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; } | ||
15556 | if test $ac_cv_lib_ucb_getpagesize = yes; then | ||
15557 | LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF | ||
15558 | #define HAVE_GETPAGESIZE 1 | ||
15559 | _ACEOF | ||
15560 | |||
15561 | fi | ||
15562 | |||
15563 | |||
15564 | fi | ||
15565 | |||
15566 | |||
15567 | # Check for broken snprintf | ||
15568 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
15569 | { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5 | ||
15570 | echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; } | ||
15571 | if test "$cross_compiling" = yes; then | ||
15572 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
15573 | echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
15574 | |||
15575 | else | ||
15576 | cat >conftest.$ac_ext <<_ACEOF | ||
15577 | /* confdefs.h. */ | ||
15578 | _ACEOF | ||
15579 | cat confdefs.h >>conftest.$ac_ext | ||
15580 | cat >>conftest.$ac_ext <<_ACEOF | ||
15581 | /* end confdefs.h. */ | ||
15582 | |||
15583 | #include <stdio.h> | ||
15584 | int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');} | ||
15585 | |||
15586 | _ACEOF | ||
15587 | rm -f conftest$ac_exeext | ||
15588 | if { (ac_try="$ac_link" | ||
15589 | case "(($ac_try" in | ||
15590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15591 | *) ac_try_echo=$ac_try;; | ||
15592 | esac | ||
15593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15594 | (eval "$ac_link") 2>&5 | ||
15595 | ac_status=$? | ||
15596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15597 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15598 | { (case "(($ac_try" in | ||
15599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15600 | *) ac_try_echo=$ac_try;; | ||
15601 | esac | ||
15602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15603 | (eval "$ac_try") 2>&5 | ||
15604 | ac_status=$? | ||
15605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15606 | (exit $ac_status); }; }; then | ||
15607 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15608 | echo "${ECHO_T}yes" >&6; } | ||
15609 | else | ||
15610 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15611 | echo "$as_me: failed program was:" >&5 | ||
15612 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15613 | |||
15614 | ( exit $ac_status ) | ||
15615 | |||
15616 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15617 | echo "${ECHO_T}no" >&6; } | ||
15618 | |||
15619 | cat >>confdefs.h <<\_ACEOF | ||
15620 | #define BROKEN_SNPRINTF 1 | ||
15621 | _ACEOF | ||
15622 | |||
15623 | { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
15624 | echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
15625 | |||
15626 | fi | ||
15627 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15628 | fi | ||
15629 | |||
15630 | |||
15631 | fi | ||
15632 | |||
15633 | # If we don't have a working asprintf, then we strongly depend on vsnprintf | ||
15634 | # returning the right thing on overflow: the number of characters it tried to | ||
15635 | # create (as per SUSv3) | ||
15636 | if test "x$ac_cv_func_asprintf" != "xyes" && \ | ||
15637 | test "x$ac_cv_func_vsnprintf" = "xyes" ; then | ||
15638 | { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5 | ||
15639 | echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; } | ||
15640 | if test "$cross_compiling" = yes; then | ||
15641 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5 | ||
15642 | echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;} | ||
15643 | |||
15644 | else | ||
15645 | cat >conftest.$ac_ext <<_ACEOF | ||
15646 | /* confdefs.h. */ | ||
15647 | _ACEOF | ||
15648 | cat confdefs.h >>conftest.$ac_ext | ||
15649 | cat >>conftest.$ac_ext <<_ACEOF | ||
15650 | /* end confdefs.h. */ | ||
15651 | |||
15652 | #include <sys/types.h> | ||
15653 | #include <stdio.h> | ||
15654 | #include <stdarg.h> | ||
15655 | |||
15656 | int x_snprintf(char *str,size_t count,const char *fmt,...) | ||
15657 | { | ||
15658 | size_t ret; va_list ap; | ||
15659 | va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap); | ||
15660 | return ret; | ||
15661 | } | ||
15662 | int main(void) | ||
15663 | { | ||
15664 | char x[1]; | ||
15665 | exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1); | ||
15666 | } | ||
15667 | _ACEOF | ||
15668 | rm -f conftest$ac_exeext | ||
15669 | if { (ac_try="$ac_link" | ||
15670 | case "(($ac_try" in | ||
15671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15672 | *) ac_try_echo=$ac_try;; | ||
15673 | esac | ||
15674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15675 | (eval "$ac_link") 2>&5 | ||
15676 | ac_status=$? | ||
15677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15678 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15679 | { (case "(($ac_try" in | ||
15680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15681 | *) ac_try_echo=$ac_try;; | ||
15682 | esac | ||
15683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15684 | (eval "$ac_try") 2>&5 | ||
15685 | ac_status=$? | ||
15686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15687 | (exit $ac_status); }; }; then | ||
15688 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15689 | echo "${ECHO_T}yes" >&6; } | ||
15690 | else | ||
15691 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15692 | echo "$as_me: failed program was:" >&5 | ||
15693 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15694 | |||
15695 | ( exit $ac_status ) | ||
15696 | |||
15697 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15698 | echo "${ECHO_T}no" >&6; } | ||
15699 | |||
15700 | cat >>confdefs.h <<\_ACEOF | ||
15701 | #define BROKEN_SNPRINTF 1 | ||
15702 | _ACEOF | ||
15703 | |||
15704 | { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5 | ||
15705 | echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;} | ||
15706 | |||
15707 | fi | ||
15708 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15709 | fi | ||
15710 | |||
15711 | |||
15712 | fi | ||
15713 | |||
15714 | # On systems where [v]snprintf is broken, but is declared in stdio, | ||
15715 | # check that the fmt argument is const char * or just char *. | ||
15716 | # This is only useful for when BROKEN_SNPRINTF | ||
15717 | { echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5 | ||
15718 | echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; } | ||
15719 | cat >conftest.$ac_ext <<_ACEOF | ||
15720 | /* confdefs.h. */ | ||
15721 | _ACEOF | ||
15722 | cat confdefs.h >>conftest.$ac_ext | ||
15723 | cat >>conftest.$ac_ext <<_ACEOF | ||
15724 | /* end confdefs.h. */ | ||
15725 | #include <stdio.h> | ||
15726 | int snprintf(char *a, size_t b, const char *c, ...) { return 0; } | ||
15727 | int main(void) { snprintf(0, 0, 0); } | ||
15728 | |||
15729 | _ACEOF | ||
15730 | rm -f conftest.$ac_objext | ||
15731 | if { (ac_try="$ac_compile" | ||
15732 | case "(($ac_try" in | ||
15733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15734 | *) ac_try_echo=$ac_try;; | ||
15735 | esac | ||
15736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15737 | (eval "$ac_compile") 2>conftest.er1 | ||
15738 | ac_status=$? | ||
15739 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15740 | rm -f conftest.er1 | ||
15741 | cat conftest.err >&5 | ||
15742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15743 | (exit $ac_status); } && { | ||
15744 | test -z "$ac_c_werror_flag" || | ||
15745 | test ! -s conftest.err | ||
15746 | } && test -s conftest.$ac_objext; then | ||
15747 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15748 | echo "${ECHO_T}yes" >&6; } | ||
15749 | |||
15750 | cat >>confdefs.h <<\_ACEOF | ||
15751 | #define SNPRINTF_CONST const | ||
15752 | _ACEOF | ||
15753 | |||
15754 | else | ||
15755 | echo "$as_me: failed program was:" >&5 | ||
15756 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15757 | |||
15758 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15759 | echo "${ECHO_T}no" >&6; } | ||
15760 | cat >>confdefs.h <<\_ACEOF | ||
15761 | #define SNPRINTF_CONST /* not const */ | ||
15762 | _ACEOF | ||
15763 | |||
15764 | fi | ||
15765 | |||
15766 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15767 | |||
15768 | # Check for missing getpeereid (or equiv) support | ||
15769 | NO_PEERCHECK="" | ||
15770 | if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then | ||
15771 | { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5 | ||
15772 | echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; } | ||
15773 | cat >conftest.$ac_ext <<_ACEOF | ||
15774 | /* confdefs.h. */ | ||
15775 | _ACEOF | ||
15776 | cat confdefs.h >>conftest.$ac_ext | ||
15777 | cat >>conftest.$ac_ext <<_ACEOF | ||
15778 | /* end confdefs.h. */ | ||
15779 | #include <sys/types.h> | ||
15780 | #include <sys/socket.h> | ||
15781 | int | ||
15782 | main () | ||
15783 | { | ||
15784 | int i = SO_PEERCRED; | ||
15785 | ; | ||
15786 | return 0; | ||
15787 | } | ||
15788 | _ACEOF | ||
15789 | rm -f conftest.$ac_objext | ||
15790 | if { (ac_try="$ac_compile" | ||
15791 | case "(($ac_try" in | ||
15792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15793 | *) ac_try_echo=$ac_try;; | ||
15794 | esac | ||
15795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15796 | (eval "$ac_compile") 2>conftest.er1 | ||
15797 | ac_status=$? | ||
15798 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15799 | rm -f conftest.er1 | ||
15800 | cat conftest.err >&5 | ||
15801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15802 | (exit $ac_status); } && { | ||
15803 | test -z "$ac_c_werror_flag" || | ||
15804 | test ! -s conftest.err | ||
15805 | } && test -s conftest.$ac_objext; then | ||
15806 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15807 | echo "${ECHO_T}yes" >&6; } | ||
15808 | |||
15809 | cat >>confdefs.h <<\_ACEOF | ||
15810 | #define HAVE_SO_PEERCRED 1 | ||
15811 | _ACEOF | ||
15812 | |||
15813 | |||
15814 | else | ||
15815 | echo "$as_me: failed program was:" >&5 | ||
15816 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15817 | |||
15818 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15819 | echo "${ECHO_T}no" >&6; } | ||
15820 | NO_PEERCHECK=1 | ||
15821 | |||
15822 | fi | ||
15823 | |||
15824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15825 | fi | ||
15826 | |||
15827 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
15828 | { echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5 | ||
15829 | echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; } | ||
15830 | if test "$cross_compiling" = yes; then | ||
15831 | |||
15832 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15833 | echo "${ECHO_T}yes" >&6; } | ||
15834 | cat >>confdefs.h <<\_ACEOF | ||
15835 | #define HAVE_STRICT_MKSTEMP 1 | ||
15836 | _ACEOF | ||
15837 | |||
15838 | |||
15839 | |||
15840 | else | ||
15841 | cat >conftest.$ac_ext <<_ACEOF | ||
15842 | /* confdefs.h. */ | ||
15843 | _ACEOF | ||
15844 | cat confdefs.h >>conftest.$ac_ext | ||
15845 | cat >>conftest.$ac_ext <<_ACEOF | ||
15846 | /* end confdefs.h. */ | ||
15847 | |||
15848 | #include <stdlib.h> | ||
15849 | main() { char template[]="conftest.mkstemp-test"; | ||
15850 | if (mkstemp(template) == -1) | ||
15851 | exit(1); | ||
15852 | unlink(template); exit(0); | ||
15853 | } | ||
15854 | |||
15855 | _ACEOF | ||
15856 | rm -f conftest$ac_exeext | ||
15857 | if { (ac_try="$ac_link" | ||
15858 | case "(($ac_try" in | ||
15859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15860 | *) ac_try_echo=$ac_try;; | ||
15861 | esac | ||
15862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15863 | (eval "$ac_link") 2>&5 | ||
15864 | ac_status=$? | ||
15865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15866 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15867 | { (case "(($ac_try" in | ||
15868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15869 | *) ac_try_echo=$ac_try;; | ||
15870 | esac | ||
15871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15872 | (eval "$ac_try") 2>&5 | ||
15873 | ac_status=$? | ||
15874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15875 | (exit $ac_status); }; }; then | ||
15876 | |||
15877 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15878 | echo "${ECHO_T}no" >&6; } | ||
15879 | |||
15880 | else | ||
15881 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15882 | echo "$as_me: failed program was:" >&5 | ||
15883 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15884 | |||
15885 | ( exit $ac_status ) | ||
15886 | |||
15887 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15888 | echo "${ECHO_T}yes" >&6; } | ||
15889 | |||
15890 | cat >>confdefs.h <<\_ACEOF | ||
15891 | #define HAVE_STRICT_MKSTEMP 1 | ||
15892 | _ACEOF | ||
15893 | |||
15894 | |||
15895 | fi | ||
15896 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15897 | fi | ||
15898 | |||
15899 | |||
15900 | fi | ||
15901 | |||
15902 | if test ! -z "$check_for_openpty_ctty_bug"; then | ||
15903 | { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5 | ||
15904 | echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; } | ||
15905 | if test "$cross_compiling" = yes; then | ||
15906 | |||
15907 | { echo "$as_me:$LINENO: result: cross-compiling" >&5 | ||
15908 | echo "${ECHO_T}cross-compiling" >&6; } | ||
15909 | |||
15910 | |||
15911 | else | ||
15912 | cat >conftest.$ac_ext <<_ACEOF | ||
15913 | /* confdefs.h. */ | ||
15914 | _ACEOF | ||
15915 | cat confdefs.h >>conftest.$ac_ext | ||
15916 | cat >>conftest.$ac_ext <<_ACEOF | ||
15917 | /* end confdefs.h. */ | ||
15918 | |||
15919 | #include <stdio.h> | ||
15920 | #include <sys/fcntl.h> | ||
15921 | #include <sys/types.h> | ||
15922 | #include <sys/wait.h> | ||
15923 | |||
15924 | int | ||
15925 | main() | ||
15926 | { | ||
15927 | pid_t pid; | ||
15928 | int fd, ptyfd, ttyfd, status; | ||
15929 | |||
15930 | pid = fork(); | ||
15931 | if (pid < 0) { /* failed */ | ||
15932 | exit(1); | ||
15933 | } else if (pid > 0) { /* parent */ | ||
15934 | waitpid(pid, &status, 0); | ||
15935 | if (WIFEXITED(status)) | ||
15936 | exit(WEXITSTATUS(status)); | ||
15937 | else | ||
15938 | exit(2); | ||
15939 | } else { /* child */ | ||
15940 | close(0); close(1); close(2); | ||
15941 | setsid(); | ||
15942 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); | ||
15943 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); | ||
15944 | if (fd >= 0) | ||
15945 | exit(3); /* Acquired ctty: broken */ | ||
15946 | else | ||
15947 | exit(0); /* Did not acquire ctty: OK */ | ||
15948 | } | ||
15949 | } | ||
15950 | |||
15951 | _ACEOF | ||
15952 | rm -f conftest$ac_exeext | ||
15953 | if { (ac_try="$ac_link" | ||
15954 | case "(($ac_try" in | ||
15955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15956 | *) ac_try_echo=$ac_try;; | ||
15957 | esac | ||
15958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15959 | (eval "$ac_link") 2>&5 | ||
15960 | ac_status=$? | ||
15961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15962 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15963 | { (case "(($ac_try" in | ||
15964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15965 | *) ac_try_echo=$ac_try;; | ||
15966 | esac | ||
15967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15968 | (eval "$ac_try") 2>&5 | ||
15969 | ac_status=$? | ||
15970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15971 | (exit $ac_status); }; }; then | ||
15972 | |||
15973 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
15974 | echo "${ECHO_T}yes" >&6; } | ||
15975 | |||
15976 | else | ||
15977 | echo "$as_me: program exited with status $ac_status" >&5 | ||
15978 | echo "$as_me: failed program was:" >&5 | ||
15979 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15980 | |||
15981 | ( exit $ac_status ) | ||
15982 | |||
15983 | { echo "$as_me:$LINENO: result: no" >&5 | ||
15984 | echo "${ECHO_T}no" >&6; } | ||
15985 | cat >>confdefs.h <<\_ACEOF | ||
15986 | #define SSHD_ACQUIRES_CTTY 1 | ||
15987 | _ACEOF | ||
15988 | |||
15989 | |||
15990 | fi | ||
15991 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15992 | fi | ||
15993 | |||
15994 | |||
15995 | fi | ||
15996 | |||
15997 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
15998 | test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then | ||
15999 | { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
16000 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; } | ||
16001 | if test "$cross_compiling" = yes; then | ||
16002 | |||
16003 | { echo "$as_me:$LINENO: result: cross-compiling" >&5 | ||
16004 | echo "${ECHO_T}cross-compiling" >&6; } | ||
16005 | |||
16006 | |||
16007 | else | ||
16008 | cat >conftest.$ac_ext <<_ACEOF | ||
16009 | /* confdefs.h. */ | ||
16010 | _ACEOF | ||
16011 | cat confdefs.h >>conftest.$ac_ext | ||
16012 | cat >>conftest.$ac_ext <<_ACEOF | ||
16013 | /* end confdefs.h. */ | ||
16014 | |||
16015 | #include <stdio.h> | ||
16016 | #include <sys/socket.h> | ||
16017 | #include <netdb.h> | ||
16018 | #include <errno.h> | ||
16019 | #include <netinet/in.h> | ||
16020 | |||
16021 | #define TEST_PORT "2222" | ||
16022 | |||
16023 | int | ||
16024 | main(void) | ||
16025 | { | ||
16026 | int err, sock; | ||
16027 | struct addrinfo *gai_ai, *ai, hints; | ||
16028 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
16029 | |||
16030 | memset(&hints, 0, sizeof(hints)); | ||
16031 | hints.ai_family = PF_UNSPEC; | ||
16032 | hints.ai_socktype = SOCK_STREAM; | ||
16033 | hints.ai_flags = AI_PASSIVE; | ||
16034 | |||
16035 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
16036 | if (err != 0) { | ||
16037 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
16038 | exit(1); | ||
16039 | } | ||
16040 | |||
16041 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
16042 | if (ai->ai_family != AF_INET6) | ||
16043 | continue; | ||
16044 | |||
16045 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
16046 | sizeof(ntop), strport, sizeof(strport), | ||
16047 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
16048 | |||
16049 | if (err != 0) { | ||
16050 | if (err == EAI_SYSTEM) | ||
16051 | perror("getnameinfo EAI_SYSTEM"); | ||
16052 | else | ||
16053 | fprintf(stderr, "getnameinfo failed: %s\n", | ||
16054 | gai_strerror(err)); | ||
16055 | exit(2); | ||
16056 | } | ||
16057 | |||
16058 | sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); | ||
16059 | if (sock < 0) | ||
16060 | perror("socket"); | ||
16061 | if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { | ||
16062 | if (errno == EBADF) | ||
16063 | exit(3); | ||
16064 | } | ||
16065 | } | ||
16066 | exit(0); | ||
16067 | } | ||
16068 | |||
16069 | _ACEOF | ||
16070 | rm -f conftest$ac_exeext | ||
16071 | if { (ac_try="$ac_link" | ||
16072 | case "(($ac_try" in | ||
16073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16074 | *) ac_try_echo=$ac_try;; | ||
16075 | esac | ||
16076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16077 | (eval "$ac_link") 2>&5 | ||
16078 | ac_status=$? | ||
16079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16080 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16081 | { (case "(($ac_try" in | ||
16082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16083 | *) ac_try_echo=$ac_try;; | ||
16084 | esac | ||
16085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16086 | (eval "$ac_try") 2>&5 | ||
16087 | ac_status=$? | ||
16088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16089 | (exit $ac_status); }; }; then | ||
16090 | |||
16091 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16092 | echo "${ECHO_T}yes" >&6; } | ||
16093 | |||
16094 | else | ||
16095 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16096 | echo "$as_me: failed program was:" >&5 | ||
16097 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16098 | |||
16099 | ( exit $ac_status ) | ||
16100 | |||
16101 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16102 | echo "${ECHO_T}no" >&6; } | ||
16103 | cat >>confdefs.h <<\_ACEOF | ||
16104 | #define BROKEN_GETADDRINFO 1 | ||
16105 | _ACEOF | ||
16106 | |||
16107 | |||
16108 | fi | ||
16109 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16110 | fi | ||
16111 | |||
16112 | |||
16113 | fi | ||
16114 | |||
16115 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
16116 | test "x$check_for_aix_broken_getaddrinfo" = "x1"; then | ||
16117 | { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
16118 | echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; } | ||
16119 | if test "$cross_compiling" = yes; then | ||
16120 | |||
16121 | { echo "$as_me:$LINENO: result: cross-compiling" >&5 | ||
16122 | echo "${ECHO_T}cross-compiling" >&6; } | ||
16123 | |||
16124 | |||
16125 | else | ||
16126 | cat >conftest.$ac_ext <<_ACEOF | ||
16127 | /* confdefs.h. */ | ||
16128 | _ACEOF | ||
16129 | cat confdefs.h >>conftest.$ac_ext | ||
16130 | cat >>conftest.$ac_ext <<_ACEOF | ||
16131 | /* end confdefs.h. */ | ||
16132 | |||
16133 | #include <stdio.h> | ||
16134 | #include <sys/socket.h> | ||
16135 | #include <netdb.h> | ||
16136 | #include <errno.h> | ||
16137 | #include <netinet/in.h> | ||
16138 | |||
16139 | #define TEST_PORT "2222" | ||
16140 | |||
16141 | int | ||
16142 | main(void) | ||
16143 | { | ||
16144 | int err, sock; | ||
16145 | struct addrinfo *gai_ai, *ai, hints; | ||
16146 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
16147 | |||
16148 | memset(&hints, 0, sizeof(hints)); | ||
16149 | hints.ai_family = PF_UNSPEC; | ||
16150 | hints.ai_socktype = SOCK_STREAM; | ||
16151 | hints.ai_flags = AI_PASSIVE; | ||
16152 | |||
16153 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
16154 | if (err != 0) { | ||
16155 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
16156 | exit(1); | ||
16157 | } | ||
16158 | |||
16159 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
16160 | if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) | ||
16161 | continue; | ||
16162 | |||
16163 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
16164 | sizeof(ntop), strport, sizeof(strport), | ||
16165 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
16166 | |||
16167 | if (ai->ai_family == AF_INET && err != 0) { | ||
16168 | perror("getnameinfo"); | ||
16169 | exit(2); | ||
16170 | } | ||
16171 | } | ||
16172 | exit(0); | ||
16173 | } | ||
16174 | |||
16175 | _ACEOF | ||
16176 | rm -f conftest$ac_exeext | ||
16177 | if { (ac_try="$ac_link" | ||
16178 | case "(($ac_try" in | ||
16179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16180 | *) ac_try_echo=$ac_try;; | ||
16181 | esac | ||
16182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16183 | (eval "$ac_link") 2>&5 | ||
16184 | ac_status=$? | ||
16185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16186 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16187 | { (case "(($ac_try" in | ||
16188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16189 | *) ac_try_echo=$ac_try;; | ||
16190 | esac | ||
16191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16192 | (eval "$ac_try") 2>&5 | ||
16193 | ac_status=$? | ||
16194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16195 | (exit $ac_status); }; }; then | ||
16196 | |||
16197 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16198 | echo "${ECHO_T}yes" >&6; } | ||
16199 | |||
16200 | cat >>confdefs.h <<\_ACEOF | ||
16201 | #define AIX_GETNAMEINFO_HACK 1 | ||
16202 | _ACEOF | ||
16203 | |||
16204 | |||
16205 | else | ||
16206 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16207 | echo "$as_me: failed program was:" >&5 | ||
16208 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16209 | |||
16210 | ( exit $ac_status ) | ||
16211 | |||
16212 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16213 | echo "${ECHO_T}no" >&6; } | ||
16214 | cat >>confdefs.h <<\_ACEOF | ||
16215 | #define BROKEN_GETADDRINFO 1 | ||
16216 | _ACEOF | ||
16217 | |||
16218 | |||
16219 | fi | ||
16220 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16221 | fi | ||
16222 | |||
16223 | |||
16224 | fi | ||
16225 | |||
16226 | if test "x$check_for_conflicting_getspnam" = "x1"; then | ||
16227 | { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5 | ||
16228 | echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; } | ||
16229 | cat >conftest.$ac_ext <<_ACEOF | ||
16230 | |||
16231 | #include <shadow.h> | ||
16232 | int main(void) {exit(0);} | ||
16233 | |||
16234 | _ACEOF | ||
16235 | rm -f conftest.$ac_objext | ||
16236 | if { (ac_try="$ac_compile" | ||
16237 | case "(($ac_try" in | ||
16238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16239 | *) ac_try_echo=$ac_try;; | ||
16240 | esac | ||
16241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16242 | (eval "$ac_compile") 2>conftest.er1 | ||
16243 | ac_status=$? | ||
16244 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16245 | rm -f conftest.er1 | ||
16246 | cat conftest.err >&5 | ||
16247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16248 | (exit $ac_status); } && { | ||
16249 | test -z "$ac_c_werror_flag" || | ||
16250 | test ! -s conftest.err | ||
16251 | } && test -s conftest.$ac_objext; then | ||
16252 | |||
16253 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16254 | echo "${ECHO_T}no" >&6; } | ||
16255 | |||
16256 | else | ||
16257 | echo "$as_me: failed program was:" >&5 | ||
16258 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16259 | |||
16260 | |||
16261 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16262 | echo "${ECHO_T}yes" >&6; } | ||
16263 | |||
16264 | cat >>confdefs.h <<\_ACEOF | ||
16265 | #define GETSPNAM_CONFLICTING_DEFS 1 | ||
16266 | _ACEOF | ||
16267 | |||
16268 | |||
16269 | |||
16270 | fi | ||
16271 | |||
16272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16273 | fi | ||
16274 | |||
16275 | { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 | ||
16276 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; } | ||
16277 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | ||
16278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16279 | else | ||
16280 | # Use it with a single arg. | ||
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 | $ac_includes_default | ||
16288 | int | ||
16289 | main () | ||
16290 | { | ||
16291 | getpgrp (0); | ||
16292 | ; | ||
16293 | return 0; | ||
16294 | } | ||
16295 | _ACEOF | ||
16296 | rm -f conftest.$ac_objext | ||
16297 | if { (ac_try="$ac_compile" | ||
16298 | case "(($ac_try" in | ||
16299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16300 | *) ac_try_echo=$ac_try;; | ||
16301 | esac | ||
16302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16303 | (eval "$ac_compile") 2>conftest.er1 | ||
16304 | ac_status=$? | ||
16305 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16306 | rm -f conftest.er1 | ||
16307 | cat conftest.err >&5 | ||
16308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16309 | (exit $ac_status); } && { | ||
16310 | test -z "$ac_c_werror_flag" || | ||
16311 | test ! -s conftest.err | ||
16312 | } && test -s conftest.$ac_objext; then | ||
16313 | ac_cv_func_getpgrp_void=no | ||
16314 | else | ||
16315 | echo "$as_me: failed program was:" >&5 | ||
16316 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16317 | |||
16318 | ac_cv_func_getpgrp_void=yes | ||
16319 | fi | ||
16320 | |||
16321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16322 | |||
16323 | fi | ||
16324 | { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | ||
16325 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; } | ||
16326 | if test $ac_cv_func_getpgrp_void = yes; then | ||
16327 | |||
16328 | cat >>confdefs.h <<\_ACEOF | ||
16329 | #define GETPGRP_VOID 1 | ||
16330 | _ACEOF | ||
16331 | |||
16332 | fi | ||
16333 | |||
16334 | |||
16335 | # Search for OpenSSL | ||
16336 | saved_CPPFLAGS="$CPPFLAGS" | ||
16337 | saved_LDFLAGS="$LDFLAGS" | ||
16338 | |||
16339 | # Check whether --with-ssl-dir was given. | ||
16340 | if test "${with_ssl_dir+set}" = set; then | ||
16341 | withval=$with_ssl_dir; | ||
16342 | if test "x$withval" != "xno" ; then | ||
16343 | case "$withval" in | ||
16344 | # Relative paths | ||
16345 | ./*|../*) withval="`pwd`/$withval" | ||
16346 | esac | ||
16347 | if test -d "$withval/lib"; then | ||
16348 | if test -n "${need_dash_r}"; then | ||
16349 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
16350 | else | ||
16351 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
16352 | fi | ||
16353 | else | ||
16354 | if test -n "${need_dash_r}"; then | ||
16355 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
16356 | else | ||
16357 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
16358 | fi | ||
16359 | fi | ||
16360 | if test -d "$withval/include"; then | ||
16361 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
16362 | else | ||
16363 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
16364 | fi | ||
16365 | fi | ||
16366 | |||
16367 | |||
16368 | fi | ||
16369 | |||
16370 | LIBS="-lcrypto $LIBS" | ||
16371 | cat >conftest.$ac_ext <<_ACEOF | ||
16372 | /* confdefs.h. */ | ||
16373 | _ACEOF | ||
16374 | cat confdefs.h >>conftest.$ac_ext | ||
16375 | cat >>conftest.$ac_ext <<_ACEOF | ||
16376 | /* end confdefs.h. */ | ||
16377 | |||
16378 | /* Override any GCC internal prototype to avoid an error. | ||
16379 | Use char because int might match the return type of a GCC | ||
16380 | builtin and then its argument prototype would still apply. */ | ||
16381 | #ifdef __cplusplus | ||
16382 | extern "C" | ||
16383 | #endif | ||
16384 | char RAND_add (); | ||
16385 | int | ||
16386 | main () | ||
16387 | { | ||
16388 | return RAND_add (); | ||
16389 | ; | ||
16390 | return 0; | ||
16391 | } | ||
16392 | _ACEOF | ||
16393 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16394 | if { (ac_try="$ac_link" | ||
16395 | case "(($ac_try" in | ||
16396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16397 | *) ac_try_echo=$ac_try;; | ||
16398 | esac | ||
16399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16400 | (eval "$ac_link") 2>conftest.er1 | ||
16401 | ac_status=$? | ||
16402 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16403 | rm -f conftest.er1 | ||
16404 | cat conftest.err >&5 | ||
16405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16406 | (exit $ac_status); } && { | ||
16407 | test -z "$ac_c_werror_flag" || | ||
16408 | test ! -s conftest.err | ||
16409 | } && test -s conftest$ac_exeext && | ||
16410 | $as_test_x conftest$ac_exeext; then | ||
16411 | |||
16412 | cat >>confdefs.h <<\_ACEOF | ||
16413 | #define HAVE_OPENSSL 1 | ||
16414 | _ACEOF | ||
16415 | |||
16416 | else | ||
16417 | echo "$as_me: failed program was:" >&5 | ||
16418 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16419 | |||
16420 | |||
16421 | if test -n "${need_dash_r}"; then | ||
16422 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
16423 | else | ||
16424 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
16425 | fi | ||
16426 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
16427 | if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then | ||
16428 | { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5 | ||
16429 | echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; } | ||
16430 | if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then | ||
16431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16432 | fi | ||
16433 | { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5 | ||
16434 | echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; } | ||
16435 | else | ||
16436 | # Is the header compilable? | ||
16437 | { echo "$as_me:$LINENO: checking openssl/opensslv.h usability" >&5 | ||
16438 | echo $ECHO_N "checking openssl/opensslv.h usability... $ECHO_C" >&6; } | ||
16439 | cat >conftest.$ac_ext <<_ACEOF | ||
16440 | /* confdefs.h. */ | ||
16441 | _ACEOF | ||
16442 | cat confdefs.h >>conftest.$ac_ext | ||
16443 | cat >>conftest.$ac_ext <<_ACEOF | ||
16444 | /* end confdefs.h. */ | ||
16445 | $ac_includes_default | ||
16446 | #include <openssl/opensslv.h> | ||
16447 | _ACEOF | ||
16448 | rm -f conftest.$ac_objext | ||
16449 | if { (ac_try="$ac_compile" | ||
16450 | case "(($ac_try" in | ||
16451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16452 | *) ac_try_echo=$ac_try;; | ||
16453 | esac | ||
16454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16455 | (eval "$ac_compile") 2>conftest.er1 | ||
16456 | ac_status=$? | ||
16457 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16458 | rm -f conftest.er1 | ||
16459 | cat conftest.err >&5 | ||
16460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16461 | (exit $ac_status); } && { | ||
16462 | test -z "$ac_c_werror_flag" || | ||
16463 | test ! -s conftest.err | ||
16464 | } && test -s conftest.$ac_objext; then | ||
16465 | ac_header_compiler=yes | ||
16466 | else | ||
16467 | echo "$as_me: failed program was:" >&5 | ||
16468 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16469 | |||
16470 | ac_header_compiler=no | ||
16471 | fi | ||
16472 | |||
16473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16474 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
16475 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
16476 | |||
16477 | # Is the header present? | ||
16478 | { echo "$as_me:$LINENO: checking openssl/opensslv.h presence" >&5 | ||
16479 | echo $ECHO_N "checking openssl/opensslv.h presence... $ECHO_C" >&6; } | ||
16480 | cat >conftest.$ac_ext <<_ACEOF | ||
16481 | /* confdefs.h. */ | ||
16482 | _ACEOF | ||
16483 | cat confdefs.h >>conftest.$ac_ext | ||
16484 | cat >>conftest.$ac_ext <<_ACEOF | ||
16485 | /* end confdefs.h. */ | ||
16486 | #include <openssl/opensslv.h> | ||
16487 | _ACEOF | ||
16488 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
16489 | case "(($ac_try" in | ||
16490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16491 | *) ac_try_echo=$ac_try;; | ||
16492 | esac | ||
16493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16494 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
16495 | ac_status=$? | ||
16496 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16497 | rm -f conftest.er1 | ||
16498 | cat conftest.err >&5 | ||
16499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16500 | (exit $ac_status); } >/dev/null && { | ||
16501 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
16502 | test ! -s conftest.err | ||
16503 | }; then | ||
16504 | ac_header_preproc=yes | ||
16505 | else | ||
16506 | echo "$as_me: failed program was:" >&5 | ||
16507 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16508 | |||
16509 | ac_header_preproc=no | ||
16510 | fi | ||
16511 | |||
16512 | rm -f conftest.err conftest.$ac_ext | ||
16513 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
16514 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
16515 | |||
16516 | # So? What about this header? | ||
16517 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
16518 | yes:no: ) | ||
16519 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
16520 | echo "$as_me: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
16521 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&5 | ||
16522 | echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&2;} | ||
16523 | ac_header_preproc=yes | ||
16524 | ;; | ||
16525 | no:yes:* ) | ||
16526 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: present but cannot be compiled" >&5 | ||
16527 | echo "$as_me: WARNING: openssl/opensslv.h: present but cannot be compiled" >&2;} | ||
16528 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&5 | ||
16529 | echo "$as_me: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&2;} | ||
16530 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&5 | ||
16531 | echo "$as_me: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&2;} | ||
16532 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
16533 | echo "$as_me: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
16534 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&5 | ||
16535 | echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&2;} | ||
16536 | { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&5 | ||
16537 | echo "$as_me: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&2;} | ||
16538 | ( cat <<\_ASBOX | ||
16539 | ## ------------------------------------------- ## | ||
16540 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
16541 | ## ------------------------------------------- ## | ||
16542 | _ASBOX | ||
16543 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
16544 | ;; | ||
16545 | esac | ||
16546 | { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5 | ||
16547 | echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; } | ||
16548 | if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then | ||
16549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16550 | else | ||
16551 | ac_cv_header_openssl_opensslv_h=$ac_header_preproc | ||
16552 | fi | ||
16553 | { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5 | ||
16554 | echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; } | ||
16555 | |||
16556 | fi | ||
16557 | if test $ac_cv_header_openssl_opensslv_h = yes; then | ||
16558 | : | ||
16559 | else | ||
16560 | { { echo "$as_me:$LINENO: error: *** OpenSSL headers missing - please install first or check config.log ***" >&5 | ||
16561 | echo "$as_me: error: *** OpenSSL headers missing - please install first or check config.log ***" >&2;} | ||
16562 | { (exit 1); exit 1; }; } | ||
16563 | fi | ||
16564 | |||
16565 | |||
16566 | cat >conftest.$ac_ext <<_ACEOF | ||
16567 | /* confdefs.h. */ | ||
16568 | _ACEOF | ||
16569 | cat confdefs.h >>conftest.$ac_ext | ||
16570 | cat >>conftest.$ac_ext <<_ACEOF | ||
16571 | /* end confdefs.h. */ | ||
16572 | |||
16573 | /* Override any GCC internal prototype to avoid an error. | ||
16574 | Use char because int might match the return type of a GCC | ||
16575 | builtin and then its argument prototype would still apply. */ | ||
16576 | #ifdef __cplusplus | ||
16577 | extern "C" | ||
16578 | #endif | ||
16579 | char RAND_add (); | ||
16580 | int | ||
16581 | main () | ||
16582 | { | ||
16583 | return RAND_add (); | ||
16584 | ; | ||
16585 | return 0; | ||
16586 | } | ||
16587 | _ACEOF | ||
16588 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16589 | if { (ac_try="$ac_link" | ||
16590 | case "(($ac_try" in | ||
16591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16592 | *) ac_try_echo=$ac_try;; | ||
16593 | esac | ||
16594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16595 | (eval "$ac_link") 2>conftest.er1 | ||
16596 | ac_status=$? | ||
16597 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16598 | rm -f conftest.er1 | ||
16599 | cat conftest.err >&5 | ||
16600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16601 | (exit $ac_status); } && { | ||
16602 | test -z "$ac_c_werror_flag" || | ||
16603 | test ! -s conftest.err | ||
16604 | } && test -s conftest$ac_exeext && | ||
16605 | $as_test_x conftest$ac_exeext; then | ||
16606 | cat >>confdefs.h <<\_ACEOF | ||
16607 | #define HAVE_OPENSSL 1 | ||
16608 | _ACEOF | ||
16609 | |||
16610 | else | ||
16611 | echo "$as_me: failed program was:" >&5 | ||
16612 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16613 | |||
16614 | |||
16615 | { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5 | ||
16616 | echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;} | ||
16617 | { (exit 1); exit 1; }; } | ||
16618 | |||
16619 | |||
16620 | fi | ||
16621 | |||
16622 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16623 | conftest$ac_exeext conftest.$ac_ext | ||
16624 | |||
16625 | |||
16626 | fi | ||
16627 | |||
16628 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16629 | conftest$ac_exeext conftest.$ac_ext | ||
16630 | |||
16631 | # Determine OpenSSL header version | ||
16632 | { echo "$as_me:$LINENO: checking OpenSSL header version" >&5 | ||
16633 | echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; } | ||
16634 | if test "$cross_compiling" = yes; then | ||
16635 | |||
16636 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
16637 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
16638 | |||
16639 | |||
16640 | else | ||
16641 | cat >conftest.$ac_ext <<_ACEOF | ||
16642 | /* confdefs.h. */ | ||
16643 | _ACEOF | ||
16644 | cat confdefs.h >>conftest.$ac_ext | ||
16645 | cat >>conftest.$ac_ext <<_ACEOF | ||
16646 | /* end confdefs.h. */ | ||
16647 | |||
16648 | #include <stdio.h> | ||
16649 | #include <string.h> | ||
16650 | #include <openssl/opensslv.h> | ||
16651 | #define DATA "conftest.sslincver" | ||
16652 | int main(void) { | ||
16653 | FILE *fd; | ||
16654 | int rc; | ||
16655 | |||
16656 | fd = fopen(DATA,"w"); | ||
16657 | if(fd == NULL) | ||
16658 | exit(1); | ||
16659 | |||
16660 | if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) | ||
16661 | exit(1); | ||
16662 | |||
16663 | exit(0); | ||
16664 | } | ||
16665 | |||
16666 | _ACEOF | ||
16667 | rm -f conftest$ac_exeext | ||
16668 | if { (ac_try="$ac_link" | ||
16669 | case "(($ac_try" in | ||
16670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16671 | *) ac_try_echo=$ac_try;; | ||
16672 | esac | ||
16673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16674 | (eval "$ac_link") 2>&5 | ||
16675 | ac_status=$? | ||
16676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16677 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16678 | { (case "(($ac_try" in | ||
16679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16680 | *) ac_try_echo=$ac_try;; | ||
16681 | esac | ||
16682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16683 | (eval "$ac_try") 2>&5 | ||
16684 | ac_status=$? | ||
16685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16686 | (exit $ac_status); }; }; then | ||
16687 | |||
16688 | ssl_header_ver=`cat conftest.sslincver` | ||
16689 | { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5 | ||
16690 | echo "${ECHO_T}$ssl_header_ver" >&6; } | ||
16691 | |||
16692 | else | ||
16693 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16694 | echo "$as_me: failed program was:" >&5 | ||
16695 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16696 | |||
16697 | ( exit $ac_status ) | ||
16698 | |||
16699 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
16700 | echo "${ECHO_T}not found" >&6; } | ||
16701 | { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5 | ||
16702 | echo "$as_me: error: OpenSSL version header not found." >&2;} | ||
16703 | { (exit 1); exit 1; }; } | ||
16704 | |||
16705 | fi | ||
16706 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16707 | fi | ||
16708 | |||
16709 | |||
16710 | |||
16711 | # Determine OpenSSL library version | ||
16712 | { echo "$as_me:$LINENO: checking OpenSSL library version" >&5 | ||
16713 | echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; } | ||
16714 | if test "$cross_compiling" = yes; then | ||
16715 | |||
16716 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
16717 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
16718 | |||
16719 | |||
16720 | else | ||
16721 | cat >conftest.$ac_ext <<_ACEOF | ||
16722 | /* confdefs.h. */ | ||
16723 | _ACEOF | ||
16724 | cat confdefs.h >>conftest.$ac_ext | ||
16725 | cat >>conftest.$ac_ext <<_ACEOF | ||
16726 | /* end confdefs.h. */ | ||
16727 | |||
16728 | #include <stdio.h> | ||
16729 | #include <string.h> | ||
16730 | #include <openssl/opensslv.h> | ||
16731 | #include <openssl/crypto.h> | ||
16732 | #define DATA "conftest.ssllibver" | ||
16733 | int main(void) { | ||
16734 | FILE *fd; | ||
16735 | int rc; | ||
16736 | |||
16737 | fd = fopen(DATA,"w"); | ||
16738 | if(fd == NULL) | ||
16739 | exit(1); | ||
16740 | |||
16741 | if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0) | ||
16742 | exit(1); | ||
16743 | |||
16744 | exit(0); | ||
16745 | } | ||
16746 | |||
16747 | _ACEOF | ||
16748 | rm -f conftest$ac_exeext | ||
16749 | if { (ac_try="$ac_link" | ||
16750 | case "(($ac_try" in | ||
16751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16752 | *) ac_try_echo=$ac_try;; | ||
16753 | esac | ||
16754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16755 | (eval "$ac_link") 2>&5 | ||
16756 | ac_status=$? | ||
16757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16758 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16759 | { (case "(($ac_try" in | ||
16760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16761 | *) ac_try_echo=$ac_try;; | ||
16762 | esac | ||
16763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16764 | (eval "$ac_try") 2>&5 | ||
16765 | ac_status=$? | ||
16766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16767 | (exit $ac_status); }; }; then | ||
16768 | |||
16769 | ssl_library_ver=`cat conftest.ssllibver` | ||
16770 | { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5 | ||
16771 | echo "${ECHO_T}$ssl_library_ver" >&6; } | ||
16772 | |||
16773 | else | ||
16774 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16775 | echo "$as_me: failed program was:" >&5 | ||
16776 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16777 | |||
16778 | ( exit $ac_status ) | ||
16779 | |||
16780 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
16781 | echo "${ECHO_T}not found" >&6; } | ||
16782 | { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5 | ||
16783 | echo "$as_me: error: OpenSSL library not found." >&2;} | ||
16784 | { (exit 1); exit 1; }; } | ||
16785 | |||
16786 | fi | ||
16787 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16788 | fi | ||
16789 | |||
16790 | |||
16791 | |||
16792 | |||
16793 | # Check whether --with-openssl-header-check was given. | ||
16794 | if test "${with_openssl_header_check+set}" = set; then | ||
16795 | withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then | ||
16796 | openssl_check_nonfatal=1 | ||
16797 | fi | ||
16798 | |||
16799 | |||
16800 | fi | ||
16801 | |||
16802 | |||
16803 | # Sanity check OpenSSL headers | ||
16804 | { echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5 | ||
16805 | echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; } | ||
16806 | if test "$cross_compiling" = yes; then | ||
16807 | |||
16808 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
16809 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
16810 | |||
16811 | |||
16812 | else | ||
16813 | cat >conftest.$ac_ext <<_ACEOF | ||
16814 | /* confdefs.h. */ | ||
16815 | _ACEOF | ||
16816 | cat confdefs.h >>conftest.$ac_ext | ||
16817 | cat >>conftest.$ac_ext <<_ACEOF | ||
16818 | /* end confdefs.h. */ | ||
16819 | |||
16820 | #include <string.h> | ||
16821 | #include <openssl/opensslv.h> | ||
16822 | int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); } | ||
16823 | |||
16824 | _ACEOF | ||
16825 | rm -f conftest$ac_exeext | ||
16826 | if { (ac_try="$ac_link" | ||
16827 | case "(($ac_try" in | ||
16828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16829 | *) ac_try_echo=$ac_try;; | ||
16830 | esac | ||
16831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16832 | (eval "$ac_link") 2>&5 | ||
16833 | ac_status=$? | ||
16834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16835 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16836 | { (case "(($ac_try" in | ||
16837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16838 | *) ac_try_echo=$ac_try;; | ||
16839 | esac | ||
16840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16841 | (eval "$ac_try") 2>&5 | ||
16842 | ac_status=$? | ||
16843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16844 | (exit $ac_status); }; }; then | ||
16845 | |||
16846 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16847 | echo "${ECHO_T}yes" >&6; } | ||
16848 | |||
16849 | else | ||
16850 | echo "$as_me: program exited with status $ac_status" >&5 | ||
16851 | echo "$as_me: failed program was:" >&5 | ||
16852 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16853 | |||
16854 | ( exit $ac_status ) | ||
16855 | |||
16856 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16857 | echo "${ECHO_T}no" >&6; } | ||
16858 | if test "x$openssl_check_nonfatal" = "x"; then | ||
16859 | { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your | ||
16860 | library. Check config.log for details. | ||
16861 | If you are sure your installation is consistent, you can disable the check | ||
16862 | by running \"./configure --without-openssl-header-check\". | ||
16863 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
16864 | " >&5 | ||
16865 | echo "$as_me: error: Your OpenSSL headers do not match your | ||
16866 | library. Check config.log for details. | ||
16867 | If you are sure your installation is consistent, you can disable the check | ||
16868 | by running \"./configure --without-openssl-header-check\". | ||
16869 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
16870 | " >&2;} | ||
16871 | { (exit 1); exit 1; }; } | ||
16872 | else | ||
16873 | { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your | ||
16874 | library. Check config.log for details. | ||
16875 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 | ||
16876 | echo "$as_me: WARNING: Your OpenSSL headers do not match your | ||
16877 | library. Check config.log for details. | ||
16878 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} | ||
16879 | fi | ||
16880 | |||
16881 | fi | ||
16882 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16883 | fi | ||
16884 | |||
16885 | |||
16886 | |||
16887 | { echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5 | ||
16888 | echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; } | ||
16889 | cat >conftest.$ac_ext <<_ACEOF | ||
16890 | /* confdefs.h. */ | ||
16891 | _ACEOF | ||
16892 | cat confdefs.h >>conftest.$ac_ext | ||
16893 | cat >>conftest.$ac_ext <<_ACEOF | ||
16894 | /* end confdefs.h. */ | ||
16895 | |||
16896 | #include <openssl/evp.h> | ||
16897 | int main(void) { SSLeay_add_all_algorithms(); } | ||
16898 | |||
16899 | _ACEOF | ||
16900 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16901 | if { (ac_try="$ac_link" | ||
16902 | case "(($ac_try" in | ||
16903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16904 | *) ac_try_echo=$ac_try;; | ||
16905 | esac | ||
16906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16907 | (eval "$ac_link") 2>conftest.er1 | ||
16908 | ac_status=$? | ||
16909 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16910 | rm -f conftest.er1 | ||
16911 | cat conftest.err >&5 | ||
16912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16913 | (exit $ac_status); } && { | ||
16914 | test -z "$ac_c_werror_flag" || | ||
16915 | test ! -s conftest.err | ||
16916 | } && test -s conftest$ac_exeext && | ||
16917 | $as_test_x conftest$ac_exeext; then | ||
16918 | |||
16919 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16920 | echo "${ECHO_T}yes" >&6; } | ||
16921 | |||
16922 | else | ||
16923 | echo "$as_me: failed program was:" >&5 | ||
16924 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16925 | |||
16926 | |||
16927 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16928 | echo "${ECHO_T}no" >&6; } | ||
16929 | saved_LIBS="$LIBS" | ||
16930 | LIBS="$LIBS -ldl" | ||
16931 | { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5 | ||
16932 | echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; } | ||
16933 | cat >conftest.$ac_ext <<_ACEOF | ||
16934 | /* confdefs.h. */ | ||
16935 | _ACEOF | ||
16936 | cat confdefs.h >>conftest.$ac_ext | ||
16937 | cat >>conftest.$ac_ext <<_ACEOF | ||
16938 | /* end confdefs.h. */ | ||
16939 | |||
16940 | #include <openssl/evp.h> | ||
16941 | int main(void) { SSLeay_add_all_algorithms(); } | ||
16942 | |||
16943 | _ACEOF | ||
16944 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16945 | if { (ac_try="$ac_link" | ||
16946 | case "(($ac_try" in | ||
16947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16948 | *) ac_try_echo=$ac_try;; | ||
16949 | esac | ||
16950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
16951 | (eval "$ac_link") 2>conftest.er1 | ||
16952 | ac_status=$? | ||
16953 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16954 | rm -f conftest.er1 | ||
16955 | cat conftest.err >&5 | ||
16956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16957 | (exit $ac_status); } && { | ||
16958 | test -z "$ac_c_werror_flag" || | ||
16959 | test ! -s conftest.err | ||
16960 | } && test -s conftest$ac_exeext && | ||
16961 | $as_test_x conftest$ac_exeext; then | ||
16962 | |||
16963 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16964 | echo "${ECHO_T}yes" >&6; } | ||
16965 | |||
16966 | else | ||
16967 | echo "$as_me: failed program was:" >&5 | ||
16968 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16969 | |||
16970 | |||
16971 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16972 | echo "${ECHO_T}no" >&6; } | ||
16973 | LIBS="$saved_LIBS" | ||
16974 | |||
16975 | |||
16976 | fi | ||
16977 | |||
16978 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16979 | conftest$ac_exeext conftest.$ac_ext | ||
16980 | |||
16981 | |||
16982 | fi | ||
16983 | |||
16984 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16985 | conftest$ac_exeext conftest.$ac_ext | ||
16986 | |||
16987 | |||
16988 | # Check whether --with-ssl-engine was given. | ||
16989 | if test "${with_ssl_engine+set}" = set; then | ||
16990 | withval=$with_ssl_engine; if test "x$withval" != "xno" ; then | ||
16991 | { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5 | ||
16992 | echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; } | ||
16993 | cat >conftest.$ac_ext <<_ACEOF | ||
16994 | /* confdefs.h. */ | ||
16995 | _ACEOF | ||
16996 | cat confdefs.h >>conftest.$ac_ext | ||
16997 | cat >>conftest.$ac_ext <<_ACEOF | ||
16998 | /* end confdefs.h. */ | ||
16999 | #include <openssl/engine.h> | ||
17000 | int | ||
17001 | main () | ||
17002 | { | ||
17003 | |||
17004 | ENGINE_load_builtin_engines();ENGINE_register_all_complete(); | ||
17005 | |||
17006 | ; | ||
17007 | return 0; | ||
17008 | } | ||
17009 | _ACEOF | ||
17010 | rm -f conftest.$ac_objext | ||
17011 | if { (ac_try="$ac_compile" | ||
17012 | case "(($ac_try" in | ||
17013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17014 | *) ac_try_echo=$ac_try;; | ||
17015 | esac | ||
17016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17017 | (eval "$ac_compile") 2>conftest.er1 | ||
17018 | ac_status=$? | ||
17019 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17020 | rm -f conftest.er1 | ||
17021 | cat conftest.err >&5 | ||
17022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17023 | (exit $ac_status); } && { | ||
17024 | test -z "$ac_c_werror_flag" || | ||
17025 | test ! -s conftest.err | ||
17026 | } && test -s conftest.$ac_objext; then | ||
17027 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
17028 | echo "${ECHO_T}yes" >&6; } | ||
17029 | |||
17030 | cat >>confdefs.h <<\_ACEOF | ||
17031 | #define USE_OPENSSL_ENGINE 1 | ||
17032 | _ACEOF | ||
17033 | |||
17034 | |||
17035 | else | ||
17036 | echo "$as_me: failed program was:" >&5 | ||
17037 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17038 | |||
17039 | { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5 | ||
17040 | echo "$as_me: error: OpenSSL ENGINE support not found" >&2;} | ||
17041 | { (exit 1); exit 1; }; } | ||
17042 | |||
17043 | fi | ||
17044 | |||
17045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17046 | fi | ||
17047 | |||
17048 | fi | ||
17049 | |||
17050 | |||
17051 | # Check for OpenSSL without EVP_aes_{192,256}_cbc | ||
17052 | { echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5 | ||
17053 | echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; } | ||
17054 | cat >conftest.$ac_ext <<_ACEOF | ||
17055 | /* confdefs.h. */ | ||
17056 | _ACEOF | ||
17057 | cat confdefs.h >>conftest.$ac_ext | ||
17058 | cat >>conftest.$ac_ext <<_ACEOF | ||
17059 | /* end confdefs.h. */ | ||
17060 | |||
17061 | #include <string.h> | ||
17062 | #include <openssl/evp.h> | ||
17063 | int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);} | ||
17064 | |||
17065 | _ACEOF | ||
17066 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17067 | if { (ac_try="$ac_link" | ||
17068 | case "(($ac_try" in | ||
17069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17070 | *) ac_try_echo=$ac_try;; | ||
17071 | esac | ||
17072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17073 | (eval "$ac_link") 2>conftest.er1 | ||
17074 | ac_status=$? | ||
17075 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17076 | rm -f conftest.er1 | ||
17077 | cat conftest.err >&5 | ||
17078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17079 | (exit $ac_status); } && { | ||
17080 | test -z "$ac_c_werror_flag" || | ||
17081 | test ! -s conftest.err | ||
17082 | } && test -s conftest$ac_exeext && | ||
17083 | $as_test_x conftest$ac_exeext; then | ||
17084 | |||
17085 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17086 | echo "${ECHO_T}no" >&6; } | ||
17087 | |||
17088 | else | ||
17089 | echo "$as_me: failed program was:" >&5 | ||
17090 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17091 | |||
17092 | |||
17093 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
17094 | echo "${ECHO_T}yes" >&6; } | ||
17095 | |||
17096 | cat >>confdefs.h <<\_ACEOF | ||
17097 | #define OPENSSL_LOBOTOMISED_AES 1 | ||
17098 | _ACEOF | ||
17099 | |||
17100 | |||
17101 | |||
17102 | fi | ||
17103 | |||
17104 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17105 | conftest$ac_exeext conftest.$ac_ext | ||
17106 | |||
17107 | { echo "$as_me:$LINENO: checking if EVP_DigestUpdate returns an int" >&5 | ||
17108 | echo $ECHO_N "checking if EVP_DigestUpdate returns an int... $ECHO_C" >&6; } | ||
17109 | cat >conftest.$ac_ext <<_ACEOF | ||
17110 | /* confdefs.h. */ | ||
17111 | _ACEOF | ||
17112 | cat confdefs.h >>conftest.$ac_ext | ||
17113 | cat >>conftest.$ac_ext <<_ACEOF | ||
17114 | /* end confdefs.h. */ | ||
17115 | |||
17116 | #include <string.h> | ||
17117 | #include <openssl/evp.h> | ||
17118 | int main(void) { if(EVP_DigestUpdate(NULL, NULL,0)) exit(0); } | ||
17119 | |||
17120 | _ACEOF | ||
17121 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17122 | if { (ac_try="$ac_link" | ||
17123 | case "(($ac_try" in | ||
17124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17125 | *) ac_try_echo=$ac_try;; | ||
17126 | esac | ||
17127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17128 | (eval "$ac_link") 2>conftest.er1 | ||
17129 | ac_status=$? | ||
17130 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17131 | rm -f conftest.er1 | ||
17132 | cat conftest.err >&5 | ||
17133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17134 | (exit $ac_status); } && { | ||
17135 | test -z "$ac_c_werror_flag" || | ||
17136 | test ! -s conftest.err | ||
17137 | } && test -s conftest$ac_exeext && | ||
17138 | $as_test_x conftest$ac_exeext; then | ||
17139 | |||
17140 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
17141 | echo "${ECHO_T}yes" >&6; } | ||
17142 | |||
17143 | else | ||
17144 | echo "$as_me: failed program was:" >&5 | ||
17145 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17146 | |||
17147 | |||
17148 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17149 | echo "${ECHO_T}no" >&6; } | ||
17150 | |||
17151 | cat >>confdefs.h <<\_ACEOF | ||
17152 | #define OPENSSL_EVP_DIGESTUPDATE_VOID 1 | ||
17153 | _ACEOF | ||
17154 | |||
17155 | |||
17156 | |||
17157 | fi | ||
17158 | |||
17159 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17160 | conftest$ac_exeext conftest.$ac_ext | ||
17161 | |||
17162 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
17163 | # because the system crypt() is more featureful. | ||
17164 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
17165 | |||
17166 | { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
17167 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } | ||
17168 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
17169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17170 | else | ||
17171 | ac_check_lib_save_LIBS=$LIBS | ||
17172 | LIBS="-lcrypt $LIBS" | ||
17173 | cat >conftest.$ac_ext <<_ACEOF | ||
17174 | /* confdefs.h. */ | ||
17175 | _ACEOF | ||
17176 | cat confdefs.h >>conftest.$ac_ext | ||
17177 | cat >>conftest.$ac_ext <<_ACEOF | ||
17178 | /* end confdefs.h. */ | ||
17179 | |||
17180 | /* Override any GCC internal prototype to avoid an error. | ||
17181 | Use char because int might match the return type of a GCC | ||
17182 | builtin and then its argument prototype would still apply. */ | ||
17183 | #ifdef __cplusplus | ||
17184 | extern "C" | ||
17185 | #endif | ||
17186 | char crypt (); | ||
17187 | int | ||
17188 | main () | ||
17189 | { | ||
17190 | return crypt (); | ||
17191 | ; | ||
17192 | return 0; | ||
17193 | } | ||
17194 | _ACEOF | ||
17195 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17196 | if { (ac_try="$ac_link" | ||
17197 | case "(($ac_try" in | ||
17198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17199 | *) ac_try_echo=$ac_try;; | ||
17200 | esac | ||
17201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17202 | (eval "$ac_link") 2>conftest.er1 | ||
17203 | ac_status=$? | ||
17204 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17205 | rm -f conftest.er1 | ||
17206 | cat conftest.err >&5 | ||
17207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17208 | (exit $ac_status); } && { | ||
17209 | test -z "$ac_c_werror_flag" || | ||
17210 | test ! -s conftest.err | ||
17211 | } && test -s conftest$ac_exeext && | ||
17212 | $as_test_x conftest$ac_exeext; then | ||
17213 | ac_cv_lib_crypt_crypt=yes | ||
17214 | else | ||
17215 | echo "$as_me: failed program was:" >&5 | ||
17216 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17217 | |||
17218 | ac_cv_lib_crypt_crypt=no | ||
17219 | fi | ||
17220 | |||
17221 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17222 | conftest$ac_exeext conftest.$ac_ext | ||
17223 | LIBS=$ac_check_lib_save_LIBS | ||
17224 | fi | ||
17225 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
17226 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; } | ||
17227 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
17228 | cat >>confdefs.h <<_ACEOF | ||
17229 | #define HAVE_LIBCRYPT 1 | ||
17230 | _ACEOF | ||
17231 | |||
17232 | LIBS="-lcrypt $LIBS" | ||
17233 | |||
17234 | fi | ||
17235 | |||
17236 | fi | ||
17237 | |||
17238 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
17239 | # version in OpenSSL. | ||
17240 | if test "x$check_for_libcrypt_later" = "x1"; then | ||
17241 | { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
17242 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } | ||
17243 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
17244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17245 | else | ||
17246 | ac_check_lib_save_LIBS=$LIBS | ||
17247 | LIBS="-lcrypt $LIBS" | ||
17248 | cat >conftest.$ac_ext <<_ACEOF | ||
17249 | /* confdefs.h. */ | ||
17250 | _ACEOF | ||
17251 | cat confdefs.h >>conftest.$ac_ext | ||
17252 | cat >>conftest.$ac_ext <<_ACEOF | ||
17253 | /* end confdefs.h. */ | ||
17254 | |||
17255 | /* Override any GCC internal prototype to avoid an error. | ||
17256 | Use char because int might match the return type of a GCC | ||
17257 | builtin and then its argument prototype would still apply. */ | ||
17258 | #ifdef __cplusplus | ||
17259 | extern "C" | ||
17260 | #endif | ||
17261 | char crypt (); | ||
17262 | int | ||
17263 | main () | ||
17264 | { | ||
17265 | return crypt (); | ||
17266 | ; | ||
17267 | return 0; | ||
17268 | } | ||
17269 | _ACEOF | ||
17270 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17271 | if { (ac_try="$ac_link" | ||
17272 | case "(($ac_try" in | ||
17273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17274 | *) ac_try_echo=$ac_try;; | ||
17275 | esac | ||
17276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17277 | (eval "$ac_link") 2>conftest.er1 | ||
17278 | ac_status=$? | ||
17279 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17280 | rm -f conftest.er1 | ||
17281 | cat conftest.err >&5 | ||
17282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17283 | (exit $ac_status); } && { | ||
17284 | test -z "$ac_c_werror_flag" || | ||
17285 | test ! -s conftest.err | ||
17286 | } && test -s conftest$ac_exeext && | ||
17287 | $as_test_x conftest$ac_exeext; then | ||
17288 | ac_cv_lib_crypt_crypt=yes | ||
17289 | else | ||
17290 | echo "$as_me: failed program was:" >&5 | ||
17291 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17292 | |||
17293 | ac_cv_lib_crypt_crypt=no | ||
17294 | fi | ||
17295 | |||
17296 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17297 | conftest$ac_exeext conftest.$ac_ext | ||
17298 | LIBS=$ac_check_lib_save_LIBS | ||
17299 | fi | ||
17300 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
17301 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; } | ||
17302 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
17303 | LIBS="$LIBS -lcrypt" | ||
17304 | fi | ||
17305 | |||
17306 | fi | ||
17307 | |||
17308 | # Search for SHA256 support in libc and/or OpenSSL | ||
17309 | |||
17310 | |||
17311 | for ac_func in SHA256_Update EVP_sha256 | ||
17312 | do | ||
17313 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17314 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
17315 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
17316 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
17317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17318 | else | ||
17319 | cat >conftest.$ac_ext <<_ACEOF | ||
17320 | /* confdefs.h. */ | ||
17321 | _ACEOF | ||
17322 | cat confdefs.h >>conftest.$ac_ext | ||
17323 | cat >>conftest.$ac_ext <<_ACEOF | ||
17324 | /* end confdefs.h. */ | ||
17325 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
17326 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
17327 | #define $ac_func innocuous_$ac_func | ||
17328 | |||
17329 | /* System header to define __stub macros and hopefully few prototypes, | ||
17330 | which can conflict with char $ac_func (); below. | ||
17331 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
17332 | <limits.h> exists even on freestanding compilers. */ | ||
17333 | |||
17334 | #ifdef __STDC__ | ||
17335 | # include <limits.h> | ||
17336 | #else | ||
17337 | # include <assert.h> | ||
17338 | #endif | ||
17339 | |||
17340 | #undef $ac_func | ||
17341 | |||
17342 | /* Override any GCC internal prototype to avoid an error. | ||
17343 | Use char because int might match the return type of a GCC | ||
17344 | builtin and then its argument prototype would still apply. */ | ||
17345 | #ifdef __cplusplus | ||
17346 | extern "C" | ||
17347 | #endif | ||
17348 | char $ac_func (); | ||
17349 | /* The GNU C library defines this for functions which it implements | ||
17350 | to always fail with ENOSYS. Some functions are actually named | ||
17351 | something starting with __ and the normal name is an alias. */ | ||
17352 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
17353 | choke me | ||
17354 | #endif | ||
17355 | |||
17356 | int | ||
17357 | main () | ||
17358 | { | ||
17359 | return $ac_func (); | ||
17360 | ; | ||
17361 | return 0; | ||
17362 | } | ||
17363 | _ACEOF | ||
17364 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17365 | if { (ac_try="$ac_link" | ||
17366 | case "(($ac_try" in | ||
17367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17368 | *) ac_try_echo=$ac_try;; | ||
17369 | esac | ||
17370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17371 | (eval "$ac_link") 2>conftest.er1 | ||
17372 | ac_status=$? | ||
17373 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17374 | rm -f conftest.er1 | ||
17375 | cat conftest.err >&5 | ||
17376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17377 | (exit $ac_status); } && { | ||
17378 | test -z "$ac_c_werror_flag" || | ||
17379 | test ! -s conftest.err | ||
17380 | } && test -s conftest$ac_exeext && | ||
17381 | $as_test_x conftest$ac_exeext; then | ||
17382 | eval "$as_ac_var=yes" | ||
17383 | else | ||
17384 | echo "$as_me: failed program was:" >&5 | ||
17385 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17386 | |||
17387 | eval "$as_ac_var=no" | ||
17388 | fi | ||
17389 | |||
17390 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17391 | conftest$ac_exeext conftest.$ac_ext | ||
17392 | fi | ||
17393 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
17394 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
17395 | echo "${ECHO_T}$ac_res" >&6; } | ||
17396 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
17397 | cat >>confdefs.h <<_ACEOF | ||
17398 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17399 | _ACEOF | ||
17400 | |||
17401 | fi | ||
17402 | done | ||
17403 | |||
17404 | |||
17405 | saved_LIBS="$LIBS" | ||
17406 | { echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5 | ||
17407 | echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; } | ||
17408 | if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then | ||
17409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17410 | else | ||
17411 | ac_check_lib_save_LIBS=$LIBS | ||
17412 | LIBS="-liaf $LIBS" | ||
17413 | cat >conftest.$ac_ext <<_ACEOF | ||
17414 | /* confdefs.h. */ | ||
17415 | _ACEOF | ||
17416 | cat confdefs.h >>conftest.$ac_ext | ||
17417 | cat >>conftest.$ac_ext <<_ACEOF | ||
17418 | /* end confdefs.h. */ | ||
17419 | |||
17420 | /* Override any GCC internal prototype to avoid an error. | ||
17421 | Use char because int might match the return type of a GCC | ||
17422 | builtin and then its argument prototype would still apply. */ | ||
17423 | #ifdef __cplusplus | ||
17424 | extern "C" | ||
17425 | #endif | ||
17426 | char ia_openinfo (); | ||
17427 | int | ||
17428 | main () | ||
17429 | { | ||
17430 | return ia_openinfo (); | ||
17431 | ; | ||
17432 | return 0; | ||
17433 | } | ||
17434 | _ACEOF | ||
17435 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17436 | if { (ac_try="$ac_link" | ||
17437 | case "(($ac_try" in | ||
17438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17439 | *) ac_try_echo=$ac_try;; | ||
17440 | esac | ||
17441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17442 | (eval "$ac_link") 2>conftest.er1 | ||
17443 | ac_status=$? | ||
17444 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17445 | rm -f conftest.er1 | ||
17446 | cat conftest.err >&5 | ||
17447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17448 | (exit $ac_status); } && { | ||
17449 | test -z "$ac_c_werror_flag" || | ||
17450 | test ! -s conftest.err | ||
17451 | } && test -s conftest$ac_exeext && | ||
17452 | $as_test_x conftest$ac_exeext; then | ||
17453 | ac_cv_lib_iaf_ia_openinfo=yes | ||
17454 | else | ||
17455 | echo "$as_me: failed program was:" >&5 | ||
17456 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17457 | |||
17458 | ac_cv_lib_iaf_ia_openinfo=no | ||
17459 | fi | ||
17460 | |||
17461 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17462 | conftest$ac_exeext conftest.$ac_ext | ||
17463 | LIBS=$ac_check_lib_save_LIBS | ||
17464 | fi | ||
17465 | { echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5 | ||
17466 | echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; } | ||
17467 | if test $ac_cv_lib_iaf_ia_openinfo = yes; then | ||
17468 | |||
17469 | LIBS="$LIBS -liaf" | ||
17470 | |||
17471 | for ac_func in set_id | ||
17472 | do | ||
17473 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17474 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
17475 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
17476 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
17477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17478 | else | ||
17479 | cat >conftest.$ac_ext <<_ACEOF | ||
17480 | /* confdefs.h. */ | ||
17481 | _ACEOF | ||
17482 | cat confdefs.h >>conftest.$ac_ext | ||
17483 | cat >>conftest.$ac_ext <<_ACEOF | ||
17484 | /* end confdefs.h. */ | ||
17485 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
17486 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
17487 | #define $ac_func innocuous_$ac_func | ||
17488 | |||
17489 | /* System header to define __stub macros and hopefully few prototypes, | ||
17490 | which can conflict with char $ac_func (); below. | ||
17491 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
17492 | <limits.h> exists even on freestanding compilers. */ | ||
17493 | |||
17494 | #ifdef __STDC__ | ||
17495 | # include <limits.h> | ||
17496 | #else | ||
17497 | # include <assert.h> | ||
17498 | #endif | ||
17499 | |||
17500 | #undef $ac_func | ||
17501 | |||
17502 | /* Override any GCC internal prototype to avoid an error. | ||
17503 | Use char because int might match the return type of a GCC | ||
17504 | builtin and then its argument prototype would still apply. */ | ||
17505 | #ifdef __cplusplus | ||
17506 | extern "C" | ||
17507 | #endif | ||
17508 | char $ac_func (); | ||
17509 | /* The GNU C library defines this for functions which it implements | ||
17510 | to always fail with ENOSYS. Some functions are actually named | ||
17511 | something starting with __ and the normal name is an alias. */ | ||
17512 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
17513 | choke me | ||
17514 | #endif | ||
17515 | |||
17516 | int | ||
17517 | main () | ||
17518 | { | ||
17519 | return $ac_func (); | ||
17520 | ; | ||
17521 | return 0; | ||
17522 | } | ||
17523 | _ACEOF | ||
17524 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17525 | if { (ac_try="$ac_link" | ||
17526 | case "(($ac_try" in | ||
17527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17528 | *) ac_try_echo=$ac_try;; | ||
17529 | esac | ||
17530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17531 | (eval "$ac_link") 2>conftest.er1 | ||
17532 | ac_status=$? | ||
17533 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17534 | rm -f conftest.er1 | ||
17535 | cat conftest.err >&5 | ||
17536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17537 | (exit $ac_status); } && { | ||
17538 | test -z "$ac_c_werror_flag" || | ||
17539 | test ! -s conftest.err | ||
17540 | } && test -s conftest$ac_exeext && | ||
17541 | $as_test_x conftest$ac_exeext; then | ||
17542 | eval "$as_ac_var=yes" | ||
17543 | else | ||
17544 | echo "$as_me: failed program was:" >&5 | ||
17545 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17546 | |||
17547 | eval "$as_ac_var=no" | ||
17548 | fi | ||
17549 | |||
17550 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17551 | conftest$ac_exeext conftest.$ac_ext | ||
17552 | fi | ||
17553 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
17554 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
17555 | echo "${ECHO_T}$ac_res" >&6; } | ||
17556 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
17557 | cat >>confdefs.h <<_ACEOF | ||
17558 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17559 | _ACEOF | ||
17560 | SSHDLIBS="$SSHDLIBS -liaf" | ||
17561 | |||
17562 | cat >>confdefs.h <<\_ACEOF | ||
17563 | #define HAVE_LIBIAF 1 | ||
17564 | _ACEOF | ||
17565 | |||
17566 | |||
17567 | fi | ||
17568 | done | ||
17569 | |||
17570 | |||
17571 | fi | ||
17572 | |||
17573 | LIBS="$saved_LIBS" | ||
17574 | |||
17575 | ### Configure cryptographic random number support | ||
17576 | |||
17577 | # Check wheter OpenSSL seeds itself | ||
17578 | { echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
17579 | echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; } | ||
17580 | if test "$cross_compiling" = yes; then | ||
17581 | |||
17582 | { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5 | ||
17583 | echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
17584 | # This is safe, since all recent OpenSSL versions will | ||
17585 | # complain at runtime if not seeded correctly. | ||
17586 | OPENSSL_SEEDS_ITSELF=yes | ||
17587 | |||
17588 | |||
17589 | else | ||
17590 | cat >conftest.$ac_ext <<_ACEOF | ||
17591 | /* confdefs.h. */ | ||
17592 | _ACEOF | ||
17593 | cat confdefs.h >>conftest.$ac_ext | ||
17594 | cat >>conftest.$ac_ext <<_ACEOF | ||
17595 | /* end confdefs.h. */ | ||
17596 | |||
17597 | #include <string.h> | ||
17598 | #include <openssl/rand.h> | ||
17599 | int main(void) { exit(RAND_status() == 1 ? 0 : 1); } | ||
17600 | |||
17601 | _ACEOF | ||
17602 | rm -f conftest$ac_exeext | ||
17603 | if { (ac_try="$ac_link" | ||
17604 | case "(($ac_try" in | ||
17605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17606 | *) ac_try_echo=$ac_try;; | ||
17607 | esac | ||
17608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17609 | (eval "$ac_link") 2>&5 | ||
17610 | ac_status=$? | ||
17611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17612 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
17613 | { (case "(($ac_try" in | ||
17614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17615 | *) ac_try_echo=$ac_try;; | ||
17616 | esac | ||
17617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17618 | (eval "$ac_try") 2>&5 | ||
17619 | ac_status=$? | ||
17620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17621 | (exit $ac_status); }; }; then | ||
17622 | |||
17623 | OPENSSL_SEEDS_ITSELF=yes | ||
17624 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
17625 | echo "${ECHO_T}yes" >&6; } | ||
17626 | |||
17627 | else | ||
17628 | echo "$as_me: program exited with status $ac_status" >&5 | ||
17629 | echo "$as_me: failed program was:" >&5 | ||
17630 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17631 | |||
17632 | ( exit $ac_status ) | ||
17633 | |||
17634 | { echo "$as_me:$LINENO: result: no" >&5 | ||
17635 | echo "${ECHO_T}no" >&6; } | ||
17636 | # Default to use of the rand helper if OpenSSL doesn't | ||
17637 | # seed itself | ||
17638 | USE_RAND_HELPER=yes | ||
17639 | |||
17640 | fi | ||
17641 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
17642 | fi | ||
17643 | |||
17644 | |||
17645 | |||
17646 | # Check for PAM libs | ||
17647 | PAM_MSG="no" | ||
17648 | |||
17649 | # Check whether --with-pam was given. | ||
17650 | if test "${with_pam+set}" = set; then | ||
17651 | withval=$with_pam; | ||
17652 | if test "x$withval" != "xno" ; then | ||
17653 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ | ||
17654 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then | ||
17655 | { { echo "$as_me:$LINENO: error: PAM headers not found" >&5 | ||
17656 | echo "$as_me: error: PAM headers not found" >&2;} | ||
17657 | { (exit 1); exit 1; }; } | ||
17658 | fi | ||
17659 | |||
17660 | saved_LIBS="$LIBS" | ||
17661 | |||
17662 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
17663 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | ||
17664 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
17665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17666 | else | ||
17667 | ac_check_lib_save_LIBS=$LIBS | ||
17668 | LIBS="-ldl $LIBS" | ||
17669 | cat >conftest.$ac_ext <<_ACEOF | ||
17670 | /* confdefs.h. */ | ||
17671 | _ACEOF | ||
17672 | cat confdefs.h >>conftest.$ac_ext | ||
17673 | cat >>conftest.$ac_ext <<_ACEOF | ||
17674 | /* end confdefs.h. */ | ||
17675 | |||
17676 | /* Override any GCC internal prototype to avoid an error. | ||
17677 | Use char because int might match the return type of a GCC | ||
17678 | builtin and then its argument prototype would still apply. */ | ||
17679 | #ifdef __cplusplus | ||
17680 | extern "C" | ||
17681 | #endif | ||
17682 | char dlopen (); | ||
17683 | int | ||
17684 | main () | ||
17685 | { | ||
17686 | return dlopen (); | ||
17687 | ; | ||
17688 | return 0; | ||
17689 | } | ||
17690 | _ACEOF | ||
17691 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17692 | if { (ac_try="$ac_link" | ||
17693 | case "(($ac_try" in | ||
17694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17695 | *) ac_try_echo=$ac_try;; | ||
17696 | esac | ||
17697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17698 | (eval "$ac_link") 2>conftest.er1 | ||
17699 | ac_status=$? | ||
17700 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17701 | rm -f conftest.er1 | ||
17702 | cat conftest.err >&5 | ||
17703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17704 | (exit $ac_status); } && { | ||
17705 | test -z "$ac_c_werror_flag" || | ||
17706 | test ! -s conftest.err | ||
17707 | } && test -s conftest$ac_exeext && | ||
17708 | $as_test_x conftest$ac_exeext; then | ||
17709 | ac_cv_lib_dl_dlopen=yes | ||
17710 | else | ||
17711 | echo "$as_me: failed program was:" >&5 | ||
17712 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17713 | |||
17714 | ac_cv_lib_dl_dlopen=no | ||
17715 | fi | ||
17716 | |||
17717 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17718 | conftest$ac_exeext conftest.$ac_ext | ||
17719 | LIBS=$ac_check_lib_save_LIBS | ||
17720 | fi | ||
17721 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
17722 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | ||
17723 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
17724 | cat >>confdefs.h <<_ACEOF | ||
17725 | #define HAVE_LIBDL 1 | ||
17726 | _ACEOF | ||
17727 | |||
17728 | LIBS="-ldl $LIBS" | ||
17729 | |||
17730 | fi | ||
17731 | |||
17732 | |||
17733 | { echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5 | ||
17734 | echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; } | ||
17735 | if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then | ||
17736 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17737 | else | ||
17738 | ac_check_lib_save_LIBS=$LIBS | ||
17739 | LIBS="-lpam $LIBS" | ||
17740 | cat >conftest.$ac_ext <<_ACEOF | ||
17741 | /* confdefs.h. */ | ||
17742 | _ACEOF | ||
17743 | cat confdefs.h >>conftest.$ac_ext | ||
17744 | cat >>conftest.$ac_ext <<_ACEOF | ||
17745 | /* end confdefs.h. */ | ||
17746 | |||
17747 | /* Override any GCC internal prototype to avoid an error. | ||
17748 | Use char because int might match the return type of a GCC | ||
17749 | builtin and then its argument prototype would still apply. */ | ||
17750 | #ifdef __cplusplus | ||
17751 | extern "C" | ||
17752 | #endif | ||
17753 | char pam_set_item (); | ||
17754 | int | ||
17755 | main () | ||
17756 | { | ||
17757 | return pam_set_item (); | ||
17758 | ; | ||
17759 | return 0; | ||
17760 | } | ||
17761 | _ACEOF | ||
17762 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17763 | if { (ac_try="$ac_link" | ||
17764 | case "(($ac_try" in | ||
17765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17766 | *) ac_try_echo=$ac_try;; | ||
17767 | esac | ||
17768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17769 | (eval "$ac_link") 2>conftest.er1 | ||
17770 | ac_status=$? | ||
17771 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17772 | rm -f conftest.er1 | ||
17773 | cat conftest.err >&5 | ||
17774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17775 | (exit $ac_status); } && { | ||
17776 | test -z "$ac_c_werror_flag" || | ||
17777 | test ! -s conftest.err | ||
17778 | } && test -s conftest$ac_exeext && | ||
17779 | $as_test_x conftest$ac_exeext; then | ||
17780 | ac_cv_lib_pam_pam_set_item=yes | ||
17781 | else | ||
17782 | echo "$as_me: failed program was:" >&5 | ||
17783 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17784 | |||
17785 | ac_cv_lib_pam_pam_set_item=no | ||
17786 | fi | ||
17787 | |||
17788 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17789 | conftest$ac_exeext conftest.$ac_ext | ||
17790 | LIBS=$ac_check_lib_save_LIBS | ||
17791 | fi | ||
17792 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
17793 | echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; } | ||
17794 | if test $ac_cv_lib_pam_pam_set_item = yes; then | ||
17795 | cat >>confdefs.h <<_ACEOF | ||
17796 | #define HAVE_LIBPAM 1 | ||
17797 | _ACEOF | ||
17798 | |||
17799 | LIBS="-lpam $LIBS" | ||
17800 | |||
17801 | else | ||
17802 | { { echo "$as_me:$LINENO: error: *** libpam missing" >&5 | ||
17803 | echo "$as_me: error: *** libpam missing" >&2;} | ||
17804 | { (exit 1); exit 1; }; } | ||
17805 | fi | ||
17806 | |||
17807 | |||
17808 | for ac_func in pam_getenvlist | ||
17809 | do | ||
17810 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17811 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
17812 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
17813 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
17814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17815 | else | ||
17816 | cat >conftest.$ac_ext <<_ACEOF | ||
17817 | /* confdefs.h. */ | ||
17818 | _ACEOF | ||
17819 | cat confdefs.h >>conftest.$ac_ext | ||
17820 | cat >>conftest.$ac_ext <<_ACEOF | ||
17821 | /* end confdefs.h. */ | ||
17822 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
17823 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
17824 | #define $ac_func innocuous_$ac_func | ||
17825 | |||
17826 | /* System header to define __stub macros and hopefully few prototypes, | ||
17827 | which can conflict with char $ac_func (); below. | ||
17828 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
17829 | <limits.h> exists even on freestanding compilers. */ | ||
17830 | |||
17831 | #ifdef __STDC__ | ||
17832 | # include <limits.h> | ||
17833 | #else | ||
17834 | # include <assert.h> | ||
17835 | #endif | ||
17836 | |||
17837 | #undef $ac_func | ||
17838 | |||
17839 | /* Override any GCC internal prototype to avoid an error. | ||
17840 | Use char because int might match the return type of a GCC | ||
17841 | builtin and then its argument prototype would still apply. */ | ||
17842 | #ifdef __cplusplus | ||
17843 | extern "C" | ||
17844 | #endif | ||
17845 | char $ac_func (); | ||
17846 | /* The GNU C library defines this for functions which it implements | ||
17847 | to always fail with ENOSYS. Some functions are actually named | ||
17848 | something starting with __ and the normal name is an alias. */ | ||
17849 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
17850 | choke me | ||
17851 | #endif | ||
17852 | |||
17853 | int | ||
17854 | main () | ||
17855 | { | ||
17856 | return $ac_func (); | ||
17857 | ; | ||
17858 | return 0; | ||
17859 | } | ||
17860 | _ACEOF | ||
17861 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17862 | if { (ac_try="$ac_link" | ||
17863 | case "(($ac_try" in | ||
17864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17865 | *) ac_try_echo=$ac_try;; | ||
17866 | esac | ||
17867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17868 | (eval "$ac_link") 2>conftest.er1 | ||
17869 | ac_status=$? | ||
17870 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17871 | rm -f conftest.er1 | ||
17872 | cat conftest.err >&5 | ||
17873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17874 | (exit $ac_status); } && { | ||
17875 | test -z "$ac_c_werror_flag" || | ||
17876 | test ! -s conftest.err | ||
17877 | } && test -s conftest$ac_exeext && | ||
17878 | $as_test_x conftest$ac_exeext; then | ||
17879 | eval "$as_ac_var=yes" | ||
17880 | else | ||
17881 | echo "$as_me: failed program was:" >&5 | ||
17882 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17883 | |||
17884 | eval "$as_ac_var=no" | ||
17885 | fi | ||
17886 | |||
17887 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17888 | conftest$ac_exeext conftest.$ac_ext | ||
17889 | fi | ||
17890 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
17891 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
17892 | echo "${ECHO_T}$ac_res" >&6; } | ||
17893 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
17894 | cat >>confdefs.h <<_ACEOF | ||
17895 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17896 | _ACEOF | ||
17897 | |||
17898 | fi | ||
17899 | done | ||
17900 | |||
17901 | |||
17902 | for ac_func in pam_putenv | ||
17903 | do | ||
17904 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17905 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
17906 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
17907 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
17908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17909 | else | ||
17910 | cat >conftest.$ac_ext <<_ACEOF | ||
17911 | /* confdefs.h. */ | ||
17912 | _ACEOF | ||
17913 | cat confdefs.h >>conftest.$ac_ext | ||
17914 | cat >>conftest.$ac_ext <<_ACEOF | ||
17915 | /* end confdefs.h. */ | ||
17916 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
17917 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
17918 | #define $ac_func innocuous_$ac_func | ||
17919 | |||
17920 | /* System header to define __stub macros and hopefully few prototypes, | ||
17921 | which can conflict with char $ac_func (); below. | ||
17922 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
17923 | <limits.h> exists even on freestanding compilers. */ | ||
17924 | |||
17925 | #ifdef __STDC__ | ||
17926 | # include <limits.h> | ||
17927 | #else | ||
17928 | # include <assert.h> | ||
17929 | #endif | ||
17930 | |||
17931 | #undef $ac_func | ||
17932 | |||
17933 | /* Override any GCC internal prototype to avoid an error. | ||
17934 | Use char because int might match the return type of a GCC | ||
17935 | builtin and then its argument prototype would still apply. */ | ||
17936 | #ifdef __cplusplus | ||
17937 | extern "C" | ||
17938 | #endif | ||
17939 | char $ac_func (); | ||
17940 | /* The GNU C library defines this for functions which it implements | ||
17941 | to always fail with ENOSYS. Some functions are actually named | ||
17942 | something starting with __ and the normal name is an alias. */ | ||
17943 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
17944 | choke me | ||
17945 | #endif | ||
17946 | |||
17947 | int | ||
17948 | main () | ||
17949 | { | ||
17950 | return $ac_func (); | ||
17951 | ; | ||
17952 | return 0; | ||
17953 | } | ||
17954 | _ACEOF | ||
17955 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17956 | if { (ac_try="$ac_link" | ||
17957 | case "(($ac_try" in | ||
17958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17959 | *) ac_try_echo=$ac_try;; | ||
17960 | esac | ||
17961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17962 | (eval "$ac_link") 2>conftest.er1 | ||
17963 | ac_status=$? | ||
17964 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17965 | rm -f conftest.er1 | ||
17966 | cat conftest.err >&5 | ||
17967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17968 | (exit $ac_status); } && { | ||
17969 | test -z "$ac_c_werror_flag" || | ||
17970 | test ! -s conftest.err | ||
17971 | } && test -s conftest$ac_exeext && | ||
17972 | $as_test_x conftest$ac_exeext; then | ||
17973 | eval "$as_ac_var=yes" | ||
17974 | else | ||
17975 | echo "$as_me: failed program was:" >&5 | ||
17976 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17977 | |||
17978 | eval "$as_ac_var=no" | ||
17979 | fi | ||
17980 | |||
17981 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17982 | conftest$ac_exeext conftest.$ac_ext | ||
17983 | fi | ||
17984 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
17985 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
17986 | echo "${ECHO_T}$ac_res" >&6; } | ||
17987 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
17988 | cat >>confdefs.h <<_ACEOF | ||
17989 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17990 | _ACEOF | ||
17991 | |||
17992 | fi | ||
17993 | done | ||
17994 | |||
17995 | LIBS="$saved_LIBS" | ||
17996 | |||
17997 | PAM_MSG="yes" | ||
17998 | |||
17999 | SSHDLIBS="$SSHDLIBS -lpam" | ||
18000 | |||
18001 | cat >>confdefs.h <<\_ACEOF | ||
18002 | #define USE_PAM 1 | ||
18003 | _ACEOF | ||
18004 | |||
18005 | |||
18006 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
18007 | case "$LIBS" in | ||
18008 | *-ldl*) | ||
18009 | # libdl already in LIBS | ||
18010 | ;; | ||
18011 | *) | ||
18012 | SSHDLIBS="$SSHDLIBS -ldl" | ||
18013 | ;; | ||
18014 | esac | ||
18015 | fi | ||
18016 | fi | ||
18017 | |||
18018 | |||
18019 | fi | ||
18020 | |||
18021 | |||
18022 | # Check for older PAM | ||
18023 | if test "x$PAM_MSG" = "xyes" ; then | ||
18024 | # Check PAM strerror arguments (old PAM) | ||
18025 | { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5 | ||
18026 | echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; } | ||
18027 | cat >conftest.$ac_ext <<_ACEOF | ||
18028 | /* confdefs.h. */ | ||
18029 | _ACEOF | ||
18030 | cat confdefs.h >>conftest.$ac_ext | ||
18031 | cat >>conftest.$ac_ext <<_ACEOF | ||
18032 | /* end confdefs.h. */ | ||
18033 | |||
18034 | #include <stdlib.h> | ||
18035 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
18036 | #include <security/pam_appl.h> | ||
18037 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
18038 | #include <pam/pam_appl.h> | ||
18039 | #endif | ||
18040 | |||
18041 | int | ||
18042 | main () | ||
18043 | { | ||
18044 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
18045 | ; | ||
18046 | return 0; | ||
18047 | } | ||
18048 | _ACEOF | ||
18049 | rm -f conftest.$ac_objext | ||
18050 | if { (ac_try="$ac_compile" | ||
18051 | case "(($ac_try" in | ||
18052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18053 | *) ac_try_echo=$ac_try;; | ||
18054 | esac | ||
18055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18056 | (eval "$ac_compile") 2>conftest.er1 | ||
18057 | ac_status=$? | ||
18058 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18059 | rm -f conftest.er1 | ||
18060 | cat conftest.err >&5 | ||
18061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18062 | (exit $ac_status); } && { | ||
18063 | test -z "$ac_c_werror_flag" || | ||
18064 | test ! -s conftest.err | ||
18065 | } && test -s conftest.$ac_objext; then | ||
18066 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18067 | echo "${ECHO_T}no" >&6; } | ||
18068 | else | ||
18069 | echo "$as_me: failed program was:" >&5 | ||
18070 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18071 | |||
18072 | |||
18073 | |||
18074 | cat >>confdefs.h <<\_ACEOF | ||
18075 | #define HAVE_OLD_PAM 1 | ||
18076 | _ACEOF | ||
18077 | |||
18078 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
18079 | echo "${ECHO_T}yes" >&6; } | ||
18080 | PAM_MSG="yes (old library)" | ||
18081 | |||
18082 | |||
18083 | fi | ||
18084 | |||
18085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18086 | fi | ||
18087 | |||
18088 | # Do we want to force the use of the rand helper? | ||
18089 | |||
18090 | # Check whether --with-rand-helper was given. | ||
18091 | if test "${with_rand_helper+set}" = set; then | ||
18092 | withval=$with_rand_helper; | ||
18093 | if test "x$withval" = "xno" ; then | ||
18094 | # Force use of OpenSSL's internal RNG, even if | ||
18095 | # the previous test showed it to be unseeded. | ||
18096 | if test -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
18097 | { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5 | ||
18098 | echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;} | ||
18099 | OPENSSL_SEEDS_ITSELF=yes | ||
18100 | USE_RAND_HELPER="" | ||
18101 | fi | ||
18102 | else | ||
18103 | USE_RAND_HELPER=yes | ||
18104 | fi | ||
18105 | |||
18106 | fi | ||
18107 | |||
18108 | |||
18109 | # Which randomness source do we use? | ||
18110 | if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then | ||
18111 | # OpenSSL only | ||
18112 | |||
18113 | cat >>confdefs.h <<\_ACEOF | ||
18114 | #define OPENSSL_PRNG_ONLY 1 | ||
18115 | _ACEOF | ||
18116 | |||
18117 | RAND_MSG="OpenSSL internal ONLY" | ||
18118 | INSTALL_SSH_RAND_HELPER="" | ||
18119 | elif test ! -z "$USE_RAND_HELPER" ; then | ||
18120 | # install rand helper | ||
18121 | RAND_MSG="ssh-rand-helper" | ||
18122 | INSTALL_SSH_RAND_HELPER="yes" | ||
18123 | fi | ||
18124 | |||
18125 | |||
18126 | ### Configuration of ssh-rand-helper | ||
18127 | |||
18128 | # PRNGD TCP socket | ||
18129 | |||
18130 | # Check whether --with-prngd-port was given. | ||
18131 | if test "${with_prngd_port+set}" = set; then | ||
18132 | withval=$with_prngd_port; | ||
18133 | case "$withval" in | ||
18134 | no) | ||
18135 | withval="" | ||
18136 | ;; | ||
18137 | [0-9]*) | ||
18138 | ;; | ||
18139 | *) | ||
18140 | { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5 | ||
18141 | echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;} | ||
18142 | { (exit 1); exit 1; }; } | ||
18143 | ;; | ||
18144 | esac | ||
18145 | if test ! -z "$withval" ; then | ||
18146 | PRNGD_PORT="$withval" | ||
18147 | |||
18148 | cat >>confdefs.h <<_ACEOF | ||
18149 | #define PRNGD_PORT $PRNGD_PORT | ||
18150 | _ACEOF | ||
18151 | |||
18152 | fi | ||
18153 | |||
18154 | |||
18155 | fi | ||
18156 | |||
18157 | |||
18158 | # PRNGD Unix domain socket | ||
18159 | |||
18160 | # Check whether --with-prngd-socket was given. | ||
18161 | if test "${with_prngd_socket+set}" = set; then | ||
18162 | withval=$with_prngd_socket; | ||
18163 | case "$withval" in | ||
18164 | yes) | ||
18165 | withval="/var/run/egd-pool" | ||
18166 | ;; | ||
18167 | no) | ||
18168 | withval="" | ||
18169 | ;; | ||
18170 | /*) | ||
18171 | ;; | ||
18172 | *) | ||
18173 | { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5 | ||
18174 | echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;} | ||
18175 | { (exit 1); exit 1; }; } | ||
18176 | ;; | ||
18177 | esac | ||
18178 | |||
18179 | if test ! -z "$withval" ; then | ||
18180 | if test ! -z "$PRNGD_PORT" ; then | ||
18181 | { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5 | ||
18182 | echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;} | ||
18183 | { (exit 1); exit 1; }; } | ||
18184 | fi | ||
18185 | if test ! -r "$withval" ; then | ||
18186 | { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5 | ||
18187 | echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
18188 | fi | ||
18189 | PRNGD_SOCKET="$withval" | ||
18190 | |||
18191 | cat >>confdefs.h <<_ACEOF | ||
18192 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
18193 | _ACEOF | ||
18194 | |||
18195 | fi | ||
18196 | |||
18197 | else | ||
18198 | |||
18199 | # Check for existing socket only if we don't have a random device already | ||
18200 | if test "$USE_RAND_HELPER" = yes ; then | ||
18201 | { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5 | ||
18202 | echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; } | ||
18203 | # Insert other locations here | ||
18204 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
18205 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
18206 | PRNGD_SOCKET="$sock" | ||
18207 | cat >>confdefs.h <<_ACEOF | ||
18208 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
18209 | _ACEOF | ||
18210 | |||
18211 | break; | ||
18212 | fi | ||
18213 | done | ||
18214 | if test ! -z "$PRNGD_SOCKET" ; then | ||
18215 | { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5 | ||
18216 | echo "${ECHO_T}$PRNGD_SOCKET" >&6; } | ||
18217 | else | ||
18218 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
18219 | echo "${ECHO_T}not found" >&6; } | ||
18220 | fi | ||
18221 | fi | ||
18222 | |||
18223 | |||
18224 | fi | ||
18225 | |||
18226 | |||
18227 | # Change default command timeout for hashing entropy source | ||
18228 | entropy_timeout=200 | ||
18229 | |||
18230 | # Check whether --with-entropy-timeout was given. | ||
18231 | if test "${with_entropy_timeout+set}" = set; then | ||
18232 | withval=$with_entropy_timeout; | ||
18233 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
18234 | test "x${withval}" != "xyes"; then | ||
18235 | entropy_timeout=$withval | ||
18236 | fi | ||
18237 | |||
18238 | |||
18239 | fi | ||
18240 | |||
18241 | |||
18242 | cat >>confdefs.h <<_ACEOF | ||
18243 | #define ENTROPY_TIMEOUT_MSEC $entropy_timeout | ||
18244 | _ACEOF | ||
18245 | |||
18246 | |||
18247 | SSH_PRIVSEP_USER=sshd | ||
18248 | |||
18249 | # Check whether --with-privsep-user was given. | ||
18250 | if test "${with_privsep_user+set}" = set; then | ||
18251 | withval=$with_privsep_user; | ||
18252 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
18253 | test "x${withval}" != "xyes"; then | ||
18254 | SSH_PRIVSEP_USER=$withval | ||
18255 | fi | ||
18256 | |||
18257 | |||
18258 | fi | ||
18259 | |||
18260 | |||
18261 | cat >>confdefs.h <<_ACEOF | ||
18262 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
18263 | _ACEOF | ||
18264 | |||
18265 | |||
18266 | |||
18267 | # We do this little dance with the search path to insure | ||
18268 | # that programs that we select for use by installed programs | ||
18269 | # (which may be run by the super-user) come from trusted | ||
18270 | # locations before they come from the user's private area. | ||
18271 | # This should help avoid accidentally configuring some | ||
18272 | # random version of a program in someone's personal bin. | ||
18273 | |||
18274 | OPATH=$PATH | ||
18275 | PATH=/bin:/usr/bin | ||
18276 | test -h /bin 2> /dev/null && PATH=/usr/bin | ||
18277 | test -d /sbin && PATH=$PATH:/sbin | ||
18278 | test -d /usr/sbin && PATH=$PATH:/usr/sbin | ||
18279 | PATH=$PATH:/etc:$OPATH | ||
18280 | |||
18281 | # These programs are used by the command hashing source to gather entropy | ||
18282 | |||
18283 | # Extract the first word of "ls", so it can be a program name with args. | ||
18284 | set dummy ls; ac_word=$2 | ||
18285 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18286 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18287 | if test "${ac_cv_path_PROG_LS+set}" = set; then | ||
18288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18289 | else | ||
18290 | case $PROG_LS in | ||
18291 | [\\/]* | ?:[\\/]*) | ||
18292 | ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path. | ||
18293 | ;; | ||
18294 | *) | ||
18295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18296 | for as_dir in $PATH | ||
18297 | do | ||
18298 | IFS=$as_save_IFS | ||
18299 | test -z "$as_dir" && as_dir=. | ||
18300 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18301 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18302 | ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext" | ||
18303 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18304 | break 2 | ||
18305 | fi | ||
18306 | done | ||
18307 | done | ||
18308 | IFS=$as_save_IFS | ||
18309 | |||
18310 | ;; | ||
18311 | esac | ||
18312 | fi | ||
18313 | PROG_LS=$ac_cv_path_PROG_LS | ||
18314 | if test -n "$PROG_LS"; then | ||
18315 | { echo "$as_me:$LINENO: result: $PROG_LS" >&5 | ||
18316 | echo "${ECHO_T}$PROG_LS" >&6; } | ||
18317 | else | ||
18318 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18319 | echo "${ECHO_T}no" >&6; } | ||
18320 | fi | ||
18321 | |||
18322 | |||
18323 | if test -z "$PROG_LS" ; then | ||
18324 | PROG_LS="undef" | ||
18325 | fi | ||
18326 | |||
18327 | |||
18328 | |||
18329 | # Extract the first word of "netstat", so it can be a program name with args. | ||
18330 | set dummy netstat; ac_word=$2 | ||
18331 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18332 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18333 | if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then | ||
18334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18335 | else | ||
18336 | case $PROG_NETSTAT in | ||
18337 | [\\/]* | ?:[\\/]*) | ||
18338 | ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path. | ||
18339 | ;; | ||
18340 | *) | ||
18341 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18342 | for as_dir in $PATH | ||
18343 | do | ||
18344 | IFS=$as_save_IFS | ||
18345 | test -z "$as_dir" && as_dir=. | ||
18346 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18347 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18348 | ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
18349 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18350 | break 2 | ||
18351 | fi | ||
18352 | done | ||
18353 | done | ||
18354 | IFS=$as_save_IFS | ||
18355 | |||
18356 | ;; | ||
18357 | esac | ||
18358 | fi | ||
18359 | PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT | ||
18360 | if test -n "$PROG_NETSTAT"; then | ||
18361 | { echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5 | ||
18362 | echo "${ECHO_T}$PROG_NETSTAT" >&6; } | ||
18363 | else | ||
18364 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18365 | echo "${ECHO_T}no" >&6; } | ||
18366 | fi | ||
18367 | |||
18368 | |||
18369 | if test -z "$PROG_NETSTAT" ; then | ||
18370 | PROG_NETSTAT="undef" | ||
18371 | fi | ||
18372 | |||
18373 | |||
18374 | |||
18375 | # Extract the first word of "arp", so it can be a program name with args. | ||
18376 | set dummy arp; ac_word=$2 | ||
18377 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18378 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18379 | if test "${ac_cv_path_PROG_ARP+set}" = set; then | ||
18380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18381 | else | ||
18382 | case $PROG_ARP in | ||
18383 | [\\/]* | ?:[\\/]*) | ||
18384 | ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path. | ||
18385 | ;; | ||
18386 | *) | ||
18387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18388 | for as_dir in $PATH | ||
18389 | do | ||
18390 | IFS=$as_save_IFS | ||
18391 | test -z "$as_dir" && as_dir=. | ||
18392 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18393 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18394 | ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext" | ||
18395 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18396 | break 2 | ||
18397 | fi | ||
18398 | done | ||
18399 | done | ||
18400 | IFS=$as_save_IFS | ||
18401 | |||
18402 | ;; | ||
18403 | esac | ||
18404 | fi | ||
18405 | PROG_ARP=$ac_cv_path_PROG_ARP | ||
18406 | if test -n "$PROG_ARP"; then | ||
18407 | { echo "$as_me:$LINENO: result: $PROG_ARP" >&5 | ||
18408 | echo "${ECHO_T}$PROG_ARP" >&6; } | ||
18409 | else | ||
18410 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18411 | echo "${ECHO_T}no" >&6; } | ||
18412 | fi | ||
18413 | |||
18414 | |||
18415 | if test -z "$PROG_ARP" ; then | ||
18416 | PROG_ARP="undef" | ||
18417 | fi | ||
18418 | |||
18419 | |||
18420 | |||
18421 | # Extract the first word of "ifconfig", so it can be a program name with args. | ||
18422 | set dummy ifconfig; ac_word=$2 | ||
18423 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18424 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18425 | if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then | ||
18426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18427 | else | ||
18428 | case $PROG_IFCONFIG in | ||
18429 | [\\/]* | ?:[\\/]*) | ||
18430 | ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path. | ||
18431 | ;; | ||
18432 | *) | ||
18433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18434 | for as_dir in $PATH | ||
18435 | do | ||
18436 | IFS=$as_save_IFS | ||
18437 | test -z "$as_dir" && as_dir=. | ||
18438 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18439 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18440 | ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
18441 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18442 | break 2 | ||
18443 | fi | ||
18444 | done | ||
18445 | done | ||
18446 | IFS=$as_save_IFS | ||
18447 | |||
18448 | ;; | ||
18449 | esac | ||
18450 | fi | ||
18451 | PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG | ||
18452 | if test -n "$PROG_IFCONFIG"; then | ||
18453 | { echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5 | ||
18454 | echo "${ECHO_T}$PROG_IFCONFIG" >&6; } | ||
18455 | else | ||
18456 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18457 | echo "${ECHO_T}no" >&6; } | ||
18458 | fi | ||
18459 | |||
18460 | |||
18461 | if test -z "$PROG_IFCONFIG" ; then | ||
18462 | PROG_IFCONFIG="undef" | ||
18463 | fi | ||
18464 | |||
18465 | |||
18466 | |||
18467 | # Extract the first word of "jstat", so it can be a program name with args. | ||
18468 | set dummy jstat; ac_word=$2 | ||
18469 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18470 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18471 | if test "${ac_cv_path_PROG_JSTAT+set}" = set; then | ||
18472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18473 | else | ||
18474 | case $PROG_JSTAT in | ||
18475 | [\\/]* | ?:[\\/]*) | ||
18476 | ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path. | ||
18477 | ;; | ||
18478 | *) | ||
18479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18480 | for as_dir in $PATH | ||
18481 | do | ||
18482 | IFS=$as_save_IFS | ||
18483 | test -z "$as_dir" && as_dir=. | ||
18484 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18485 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18486 | ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
18487 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18488 | break 2 | ||
18489 | fi | ||
18490 | done | ||
18491 | done | ||
18492 | IFS=$as_save_IFS | ||
18493 | |||
18494 | ;; | ||
18495 | esac | ||
18496 | fi | ||
18497 | PROG_JSTAT=$ac_cv_path_PROG_JSTAT | ||
18498 | if test -n "$PROG_JSTAT"; then | ||
18499 | { echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5 | ||
18500 | echo "${ECHO_T}$PROG_JSTAT" >&6; } | ||
18501 | else | ||
18502 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18503 | echo "${ECHO_T}no" >&6; } | ||
18504 | fi | ||
18505 | |||
18506 | |||
18507 | if test -z "$PROG_JSTAT" ; then | ||
18508 | PROG_JSTAT="undef" | ||
18509 | fi | ||
18510 | |||
18511 | |||
18512 | |||
18513 | # Extract the first word of "ps", so it can be a program name with args. | ||
18514 | set dummy ps; ac_word=$2 | ||
18515 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18516 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18517 | if test "${ac_cv_path_PROG_PS+set}" = set; then | ||
18518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18519 | else | ||
18520 | case $PROG_PS in | ||
18521 | [\\/]* | ?:[\\/]*) | ||
18522 | ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path. | ||
18523 | ;; | ||
18524 | *) | ||
18525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18526 | for as_dir in $PATH | ||
18527 | do | ||
18528 | IFS=$as_save_IFS | ||
18529 | test -z "$as_dir" && as_dir=. | ||
18530 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18531 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18532 | ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext" | ||
18533 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18534 | break 2 | ||
18535 | fi | ||
18536 | done | ||
18537 | done | ||
18538 | IFS=$as_save_IFS | ||
18539 | |||
18540 | ;; | ||
18541 | esac | ||
18542 | fi | ||
18543 | PROG_PS=$ac_cv_path_PROG_PS | ||
18544 | if test -n "$PROG_PS"; then | ||
18545 | { echo "$as_me:$LINENO: result: $PROG_PS" >&5 | ||
18546 | echo "${ECHO_T}$PROG_PS" >&6; } | ||
18547 | else | ||
18548 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18549 | echo "${ECHO_T}no" >&6; } | ||
18550 | fi | ||
18551 | |||
18552 | |||
18553 | if test -z "$PROG_PS" ; then | ||
18554 | PROG_PS="undef" | ||
18555 | fi | ||
18556 | |||
18557 | |||
18558 | |||
18559 | # Extract the first word of "sar", so it can be a program name with args. | ||
18560 | set dummy sar; ac_word=$2 | ||
18561 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18562 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18563 | if test "${ac_cv_path_PROG_SAR+set}" = set; then | ||
18564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18565 | else | ||
18566 | case $PROG_SAR in | ||
18567 | [\\/]* | ?:[\\/]*) | ||
18568 | ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path. | ||
18569 | ;; | ||
18570 | *) | ||
18571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18572 | for as_dir in $PATH | ||
18573 | do | ||
18574 | IFS=$as_save_IFS | ||
18575 | test -z "$as_dir" && as_dir=. | ||
18576 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18577 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18578 | ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext" | ||
18579 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18580 | break 2 | ||
18581 | fi | ||
18582 | done | ||
18583 | done | ||
18584 | IFS=$as_save_IFS | ||
18585 | |||
18586 | ;; | ||
18587 | esac | ||
18588 | fi | ||
18589 | PROG_SAR=$ac_cv_path_PROG_SAR | ||
18590 | if test -n "$PROG_SAR"; then | ||
18591 | { echo "$as_me:$LINENO: result: $PROG_SAR" >&5 | ||
18592 | echo "${ECHO_T}$PROG_SAR" >&6; } | ||
18593 | else | ||
18594 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18595 | echo "${ECHO_T}no" >&6; } | ||
18596 | fi | ||
18597 | |||
18598 | |||
18599 | if test -z "$PROG_SAR" ; then | ||
18600 | PROG_SAR="undef" | ||
18601 | fi | ||
18602 | |||
18603 | |||
18604 | |||
18605 | # Extract the first word of "w", so it can be a program name with args. | ||
18606 | set dummy w; ac_word=$2 | ||
18607 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18608 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18609 | if test "${ac_cv_path_PROG_W+set}" = set; then | ||
18610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18611 | else | ||
18612 | case $PROG_W in | ||
18613 | [\\/]* | ?:[\\/]*) | ||
18614 | ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path. | ||
18615 | ;; | ||
18616 | *) | ||
18617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18618 | for as_dir in $PATH | ||
18619 | do | ||
18620 | IFS=$as_save_IFS | ||
18621 | test -z "$as_dir" && as_dir=. | ||
18622 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18623 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18624 | ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext" | ||
18625 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18626 | break 2 | ||
18627 | fi | ||
18628 | done | ||
18629 | done | ||
18630 | IFS=$as_save_IFS | ||
18631 | |||
18632 | ;; | ||
18633 | esac | ||
18634 | fi | ||
18635 | PROG_W=$ac_cv_path_PROG_W | ||
18636 | if test -n "$PROG_W"; then | ||
18637 | { echo "$as_me:$LINENO: result: $PROG_W" >&5 | ||
18638 | echo "${ECHO_T}$PROG_W" >&6; } | ||
18639 | else | ||
18640 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18641 | echo "${ECHO_T}no" >&6; } | ||
18642 | fi | ||
18643 | |||
18644 | |||
18645 | if test -z "$PROG_W" ; then | ||
18646 | PROG_W="undef" | ||
18647 | fi | ||
18648 | |||
18649 | |||
18650 | |||
18651 | # Extract the first word of "who", so it can be a program name with args. | ||
18652 | set dummy who; ac_word=$2 | ||
18653 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18654 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18655 | if test "${ac_cv_path_PROG_WHO+set}" = set; then | ||
18656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18657 | else | ||
18658 | case $PROG_WHO in | ||
18659 | [\\/]* | ?:[\\/]*) | ||
18660 | ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path. | ||
18661 | ;; | ||
18662 | *) | ||
18663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18664 | for as_dir in $PATH | ||
18665 | do | ||
18666 | IFS=$as_save_IFS | ||
18667 | test -z "$as_dir" && as_dir=. | ||
18668 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18669 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18670 | ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext" | ||
18671 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18672 | break 2 | ||
18673 | fi | ||
18674 | done | ||
18675 | done | ||
18676 | IFS=$as_save_IFS | ||
18677 | |||
18678 | ;; | ||
18679 | esac | ||
18680 | fi | ||
18681 | PROG_WHO=$ac_cv_path_PROG_WHO | ||
18682 | if test -n "$PROG_WHO"; then | ||
18683 | { echo "$as_me:$LINENO: result: $PROG_WHO" >&5 | ||
18684 | echo "${ECHO_T}$PROG_WHO" >&6; } | ||
18685 | else | ||
18686 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18687 | echo "${ECHO_T}no" >&6; } | ||
18688 | fi | ||
18689 | |||
18690 | |||
18691 | if test -z "$PROG_WHO" ; then | ||
18692 | PROG_WHO="undef" | ||
18693 | fi | ||
18694 | |||
18695 | |||
18696 | |||
18697 | # Extract the first word of "last", so it can be a program name with args. | ||
18698 | set dummy last; ac_word=$2 | ||
18699 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18700 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18701 | if test "${ac_cv_path_PROG_LAST+set}" = set; then | ||
18702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18703 | else | ||
18704 | case $PROG_LAST in | ||
18705 | [\\/]* | ?:[\\/]*) | ||
18706 | ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path. | ||
18707 | ;; | ||
18708 | *) | ||
18709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18710 | for as_dir in $PATH | ||
18711 | do | ||
18712 | IFS=$as_save_IFS | ||
18713 | test -z "$as_dir" && as_dir=. | ||
18714 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18715 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18716 | ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext" | ||
18717 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18718 | break 2 | ||
18719 | fi | ||
18720 | done | ||
18721 | done | ||
18722 | IFS=$as_save_IFS | ||
18723 | |||
18724 | ;; | ||
18725 | esac | ||
18726 | fi | ||
18727 | PROG_LAST=$ac_cv_path_PROG_LAST | ||
18728 | if test -n "$PROG_LAST"; then | ||
18729 | { echo "$as_me:$LINENO: result: $PROG_LAST" >&5 | ||
18730 | echo "${ECHO_T}$PROG_LAST" >&6; } | ||
18731 | else | ||
18732 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18733 | echo "${ECHO_T}no" >&6; } | ||
18734 | fi | ||
18735 | |||
18736 | |||
18737 | if test -z "$PROG_LAST" ; then | ||
18738 | PROG_LAST="undef" | ||
18739 | fi | ||
18740 | |||
18741 | |||
18742 | |||
18743 | # Extract the first word of "lastlog", so it can be a program name with args. | ||
18744 | set dummy lastlog; ac_word=$2 | ||
18745 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18746 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18747 | if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then | ||
18748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18749 | else | ||
18750 | case $PROG_LASTLOG in | ||
18751 | [\\/]* | ?:[\\/]*) | ||
18752 | ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path. | ||
18753 | ;; | ||
18754 | *) | ||
18755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18756 | for as_dir in $PATH | ||
18757 | do | ||
18758 | IFS=$as_save_IFS | ||
18759 | test -z "$as_dir" && as_dir=. | ||
18760 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18761 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18762 | ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext" | ||
18763 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18764 | break 2 | ||
18765 | fi | ||
18766 | done | ||
18767 | done | ||
18768 | IFS=$as_save_IFS | ||
18769 | |||
18770 | ;; | ||
18771 | esac | ||
18772 | fi | ||
18773 | PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG | ||
18774 | if test -n "$PROG_LASTLOG"; then | ||
18775 | { echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5 | ||
18776 | echo "${ECHO_T}$PROG_LASTLOG" >&6; } | ||
18777 | else | ||
18778 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18779 | echo "${ECHO_T}no" >&6; } | ||
18780 | fi | ||
18781 | |||
18782 | |||
18783 | if test -z "$PROG_LASTLOG" ; then | ||
18784 | PROG_LASTLOG="undef" | ||
18785 | fi | ||
18786 | |||
18787 | |||
18788 | |||
18789 | # Extract the first word of "df", so it can be a program name with args. | ||
18790 | set dummy df; ac_word=$2 | ||
18791 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18792 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18793 | if test "${ac_cv_path_PROG_DF+set}" = set; then | ||
18794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18795 | else | ||
18796 | case $PROG_DF in | ||
18797 | [\\/]* | ?:[\\/]*) | ||
18798 | ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path. | ||
18799 | ;; | ||
18800 | *) | ||
18801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18802 | for as_dir in $PATH | ||
18803 | do | ||
18804 | IFS=$as_save_IFS | ||
18805 | test -z "$as_dir" && as_dir=. | ||
18806 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18807 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18808 | ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext" | ||
18809 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18810 | break 2 | ||
18811 | fi | ||
18812 | done | ||
18813 | done | ||
18814 | IFS=$as_save_IFS | ||
18815 | |||
18816 | ;; | ||
18817 | esac | ||
18818 | fi | ||
18819 | PROG_DF=$ac_cv_path_PROG_DF | ||
18820 | if test -n "$PROG_DF"; then | ||
18821 | { echo "$as_me:$LINENO: result: $PROG_DF" >&5 | ||
18822 | echo "${ECHO_T}$PROG_DF" >&6; } | ||
18823 | else | ||
18824 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18825 | echo "${ECHO_T}no" >&6; } | ||
18826 | fi | ||
18827 | |||
18828 | |||
18829 | if test -z "$PROG_DF" ; then | ||
18830 | PROG_DF="undef" | ||
18831 | fi | ||
18832 | |||
18833 | |||
18834 | |||
18835 | # Extract the first word of "vmstat", so it can be a program name with args. | ||
18836 | set dummy vmstat; ac_word=$2 | ||
18837 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18838 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18839 | if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then | ||
18840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18841 | else | ||
18842 | case $PROG_VMSTAT in | ||
18843 | [\\/]* | ?:[\\/]*) | ||
18844 | ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path. | ||
18845 | ;; | ||
18846 | *) | ||
18847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18848 | for as_dir in $PATH | ||
18849 | do | ||
18850 | IFS=$as_save_IFS | ||
18851 | test -z "$as_dir" && as_dir=. | ||
18852 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18853 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18854 | ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
18855 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18856 | break 2 | ||
18857 | fi | ||
18858 | done | ||
18859 | done | ||
18860 | IFS=$as_save_IFS | ||
18861 | |||
18862 | ;; | ||
18863 | esac | ||
18864 | fi | ||
18865 | PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT | ||
18866 | if test -n "$PROG_VMSTAT"; then | ||
18867 | { echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5 | ||
18868 | echo "${ECHO_T}$PROG_VMSTAT" >&6; } | ||
18869 | else | ||
18870 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18871 | echo "${ECHO_T}no" >&6; } | ||
18872 | fi | ||
18873 | |||
18874 | |||
18875 | if test -z "$PROG_VMSTAT" ; then | ||
18876 | PROG_VMSTAT="undef" | ||
18877 | fi | ||
18878 | |||
18879 | |||
18880 | |||
18881 | # Extract the first word of "uptime", so it can be a program name with args. | ||
18882 | set dummy uptime; ac_word=$2 | ||
18883 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18884 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18885 | if test "${ac_cv_path_PROG_UPTIME+set}" = set; then | ||
18886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18887 | else | ||
18888 | case $PROG_UPTIME in | ||
18889 | [\\/]* | ?:[\\/]*) | ||
18890 | ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path. | ||
18891 | ;; | ||
18892 | *) | ||
18893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18894 | for as_dir in $PATH | ||
18895 | do | ||
18896 | IFS=$as_save_IFS | ||
18897 | test -z "$as_dir" && as_dir=. | ||
18898 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18899 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18900 | ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext" | ||
18901 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18902 | break 2 | ||
18903 | fi | ||
18904 | done | ||
18905 | done | ||
18906 | IFS=$as_save_IFS | ||
18907 | |||
18908 | ;; | ||
18909 | esac | ||
18910 | fi | ||
18911 | PROG_UPTIME=$ac_cv_path_PROG_UPTIME | ||
18912 | if test -n "$PROG_UPTIME"; then | ||
18913 | { echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5 | ||
18914 | echo "${ECHO_T}$PROG_UPTIME" >&6; } | ||
18915 | else | ||
18916 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18917 | echo "${ECHO_T}no" >&6; } | ||
18918 | fi | ||
18919 | |||
18920 | |||
18921 | if test -z "$PROG_UPTIME" ; then | ||
18922 | PROG_UPTIME="undef" | ||
18923 | fi | ||
18924 | |||
18925 | |||
18926 | |||
18927 | # Extract the first word of "ipcs", so it can be a program name with args. | ||
18928 | set dummy ipcs; ac_word=$2 | ||
18929 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18930 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18931 | if test "${ac_cv_path_PROG_IPCS+set}" = set; then | ||
18932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18933 | else | ||
18934 | case $PROG_IPCS in | ||
18935 | [\\/]* | ?:[\\/]*) | ||
18936 | ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path. | ||
18937 | ;; | ||
18938 | *) | ||
18939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18940 | for as_dir in $PATH | ||
18941 | do | ||
18942 | IFS=$as_save_IFS | ||
18943 | test -z "$as_dir" && as_dir=. | ||
18944 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18945 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18946 | ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext" | ||
18947 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18948 | break 2 | ||
18949 | fi | ||
18950 | done | ||
18951 | done | ||
18952 | IFS=$as_save_IFS | ||
18953 | |||
18954 | ;; | ||
18955 | esac | ||
18956 | fi | ||
18957 | PROG_IPCS=$ac_cv_path_PROG_IPCS | ||
18958 | if test -n "$PROG_IPCS"; then | ||
18959 | { echo "$as_me:$LINENO: result: $PROG_IPCS" >&5 | ||
18960 | echo "${ECHO_T}$PROG_IPCS" >&6; } | ||
18961 | else | ||
18962 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18963 | echo "${ECHO_T}no" >&6; } | ||
18964 | fi | ||
18965 | |||
18966 | |||
18967 | if test -z "$PROG_IPCS" ; then | ||
18968 | PROG_IPCS="undef" | ||
18969 | fi | ||
18970 | |||
18971 | |||
18972 | |||
18973 | # Extract the first word of "tail", so it can be a program name with args. | ||
18974 | set dummy tail; ac_word=$2 | ||
18975 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18976 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
18977 | if test "${ac_cv_path_PROG_TAIL+set}" = set; then | ||
18978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18979 | else | ||
18980 | case $PROG_TAIL in | ||
18981 | [\\/]* | ?:[\\/]*) | ||
18982 | ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path. | ||
18983 | ;; | ||
18984 | *) | ||
18985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18986 | for as_dir in $PATH | ||
18987 | do | ||
18988 | IFS=$as_save_IFS | ||
18989 | test -z "$as_dir" && as_dir=. | ||
18990 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18991 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18992 | ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext" | ||
18993 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18994 | break 2 | ||
18995 | fi | ||
18996 | done | ||
18997 | done | ||
18998 | IFS=$as_save_IFS | ||
18999 | |||
19000 | ;; | ||
19001 | esac | ||
19002 | fi | ||
19003 | PROG_TAIL=$ac_cv_path_PROG_TAIL | ||
19004 | if test -n "$PROG_TAIL"; then | ||
19005 | { echo "$as_me:$LINENO: result: $PROG_TAIL" >&5 | ||
19006 | echo "${ECHO_T}$PROG_TAIL" >&6; } | ||
19007 | else | ||
19008 | { echo "$as_me:$LINENO: result: no" >&5 | ||
19009 | echo "${ECHO_T}no" >&6; } | ||
19010 | fi | ||
19011 | |||
19012 | |||
19013 | if test -z "$PROG_TAIL" ; then | ||
19014 | PROG_TAIL="undef" | ||
19015 | fi | ||
19016 | |||
19017 | |||
19018 | # restore PATH | ||
19019 | PATH=$OPATH | ||
19020 | |||
19021 | # Where does ssh-rand-helper get its randomness from? | ||
19022 | INSTALL_SSH_PRNG_CMDS="" | ||
19023 | if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then | ||
19024 | if test ! -z "$PRNGD_PORT" ; then | ||
19025 | RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT" | ||
19026 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
19027 | RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\"" | ||
19028 | else | ||
19029 | RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)" | ||
19030 | RAND_HELPER_CMDHASH=yes | ||
19031 | INSTALL_SSH_PRNG_CMDS="yes" | ||
19032 | fi | ||
19033 | fi | ||
19034 | |||
19035 | |||
19036 | |||
19037 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
19038 | if test ! -z "$SONY" ; then | ||
19039 | LIBS="$LIBS -liberty"; | ||
19040 | fi | ||
19041 | |||
19042 | # Check for long long datatypes | ||
19043 | { echo "$as_me:$LINENO: checking for long long" >&5 | ||
19044 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } | ||
19045 | if test "${ac_cv_type_long_long+set}" = set; then | ||
19046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19047 | else | ||
19048 | cat >conftest.$ac_ext <<_ACEOF | ||
19049 | /* confdefs.h. */ | ||
19050 | _ACEOF | ||
19051 | cat confdefs.h >>conftest.$ac_ext | ||
19052 | cat >>conftest.$ac_ext <<_ACEOF | ||
19053 | /* end confdefs.h. */ | ||
19054 | $ac_includes_default | ||
19055 | typedef long long ac__type_new_; | ||
19056 | int | ||
19057 | main () | ||
19058 | { | ||
19059 | if ((ac__type_new_ *) 0) | ||
19060 | return 0; | ||
19061 | if (sizeof (ac__type_new_)) | ||
19062 | return 0; | ||
19063 | ; | ||
19064 | return 0; | ||
19065 | } | ||
19066 | _ACEOF | ||
19067 | rm -f conftest.$ac_objext | ||
19068 | if { (ac_try="$ac_compile" | ||
19069 | case "(($ac_try" in | ||
19070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19071 | *) ac_try_echo=$ac_try;; | ||
19072 | esac | ||
19073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19074 | (eval "$ac_compile") 2>conftest.er1 | ||
19075 | ac_status=$? | ||
19076 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19077 | rm -f conftest.er1 | ||
19078 | cat conftest.err >&5 | ||
19079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19080 | (exit $ac_status); } && { | ||
19081 | test -z "$ac_c_werror_flag" || | ||
19082 | test ! -s conftest.err | ||
19083 | } && test -s conftest.$ac_objext; then | ||
19084 | ac_cv_type_long_long=yes | ||
19085 | else | ||
19086 | echo "$as_me: failed program was:" >&5 | ||
19087 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19088 | |||
19089 | ac_cv_type_long_long=no | ||
19090 | fi | ||
19091 | |||
19092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19093 | fi | ||
19094 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | ||
19095 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } | ||
19096 | if test $ac_cv_type_long_long = yes; then | ||
19097 | |||
19098 | cat >>confdefs.h <<_ACEOF | ||
19099 | #define HAVE_LONG_LONG 1 | ||
19100 | _ACEOF | ||
19101 | |||
19102 | |||
19103 | fi | ||
19104 | { echo "$as_me:$LINENO: checking for unsigned long long" >&5 | ||
19105 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } | ||
19106 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then | ||
19107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19108 | else | ||
19109 | cat >conftest.$ac_ext <<_ACEOF | ||
19110 | /* confdefs.h. */ | ||
19111 | _ACEOF | ||
19112 | cat confdefs.h >>conftest.$ac_ext | ||
19113 | cat >>conftest.$ac_ext <<_ACEOF | ||
19114 | /* end confdefs.h. */ | ||
19115 | $ac_includes_default | ||
19116 | typedef unsigned long long ac__type_new_; | ||
19117 | int | ||
19118 | main () | ||
19119 | { | ||
19120 | if ((ac__type_new_ *) 0) | ||
19121 | return 0; | ||
19122 | if (sizeof (ac__type_new_)) | ||
19123 | return 0; | ||
19124 | ; | ||
19125 | return 0; | ||
19126 | } | ||
19127 | _ACEOF | ||
19128 | rm -f conftest.$ac_objext | ||
19129 | if { (ac_try="$ac_compile" | ||
19130 | case "(($ac_try" in | ||
19131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19132 | *) ac_try_echo=$ac_try;; | ||
19133 | esac | ||
19134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19135 | (eval "$ac_compile") 2>conftest.er1 | ||
19136 | ac_status=$? | ||
19137 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19138 | rm -f conftest.er1 | ||
19139 | cat conftest.err >&5 | ||
19140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19141 | (exit $ac_status); } && { | ||
19142 | test -z "$ac_c_werror_flag" || | ||
19143 | test ! -s conftest.err | ||
19144 | } && test -s conftest.$ac_objext; then | ||
19145 | ac_cv_type_unsigned_long_long=yes | ||
19146 | else | ||
19147 | echo "$as_me: failed program was:" >&5 | ||
19148 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19149 | |||
19150 | ac_cv_type_unsigned_long_long=no | ||
19151 | fi | ||
19152 | |||
19153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19154 | fi | ||
19155 | { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 | ||
19156 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } | ||
19157 | if test $ac_cv_type_unsigned_long_long = yes; then | ||
19158 | |||
19159 | cat >>confdefs.h <<_ACEOF | ||
19160 | #define HAVE_UNSIGNED_LONG_LONG 1 | ||
19161 | _ACEOF | ||
19162 | |||
19163 | |||
19164 | fi | ||
19165 | { echo "$as_me:$LINENO: checking for long double" >&5 | ||
19166 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } | ||
19167 | if test "${ac_cv_type_long_double+set}" = set; then | ||
19168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19169 | else | ||
19170 | cat >conftest.$ac_ext <<_ACEOF | ||
19171 | /* confdefs.h. */ | ||
19172 | _ACEOF | ||
19173 | cat confdefs.h >>conftest.$ac_ext | ||
19174 | cat >>conftest.$ac_ext <<_ACEOF | ||
19175 | /* end confdefs.h. */ | ||
19176 | $ac_includes_default | ||
19177 | typedef long double ac__type_new_; | ||
19178 | int | ||
19179 | main () | ||
19180 | { | ||
19181 | if ((ac__type_new_ *) 0) | ||
19182 | return 0; | ||
19183 | if (sizeof (ac__type_new_)) | ||
19184 | return 0; | ||
19185 | ; | ||
19186 | return 0; | ||
19187 | } | ||
19188 | _ACEOF | ||
19189 | rm -f conftest.$ac_objext | ||
19190 | if { (ac_try="$ac_compile" | ||
19191 | case "(($ac_try" in | ||
19192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19193 | *) ac_try_echo=$ac_try;; | ||
19194 | esac | ||
19195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19196 | (eval "$ac_compile") 2>conftest.er1 | ||
19197 | ac_status=$? | ||
19198 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19199 | rm -f conftest.er1 | ||
19200 | cat conftest.err >&5 | ||
19201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19202 | (exit $ac_status); } && { | ||
19203 | test -z "$ac_c_werror_flag" || | ||
19204 | test ! -s conftest.err | ||
19205 | } && test -s conftest.$ac_objext; then | ||
19206 | ac_cv_type_long_double=yes | ||
19207 | else | ||
19208 | echo "$as_me: failed program was:" >&5 | ||
19209 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19210 | |||
19211 | ac_cv_type_long_double=no | ||
19212 | fi | ||
19213 | |||
19214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19215 | fi | ||
19216 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 | ||
19217 | echo "${ECHO_T}$ac_cv_type_long_double" >&6; } | ||
19218 | if test $ac_cv_type_long_double = yes; then | ||
19219 | |||
19220 | cat >>confdefs.h <<_ACEOF | ||
19221 | #define HAVE_LONG_DOUBLE 1 | ||
19222 | _ACEOF | ||
19223 | |||
19224 | |||
19225 | fi | ||
19226 | |||
19227 | |||
19228 | # Check datatype sizes | ||
19229 | { echo "$as_me:$LINENO: checking for char" >&5 | ||
19230 | echo $ECHO_N "checking for char... $ECHO_C" >&6; } | ||
19231 | if test "${ac_cv_type_char+set}" = set; then | ||
19232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19233 | else | ||
19234 | cat >conftest.$ac_ext <<_ACEOF | ||
19235 | /* confdefs.h. */ | ||
19236 | _ACEOF | ||
19237 | cat confdefs.h >>conftest.$ac_ext | ||
19238 | cat >>conftest.$ac_ext <<_ACEOF | ||
19239 | /* end confdefs.h. */ | ||
19240 | $ac_includes_default | ||
19241 | typedef char ac__type_new_; | ||
19242 | int | ||
19243 | main () | ||
19244 | { | ||
19245 | if ((ac__type_new_ *) 0) | ||
19246 | return 0; | ||
19247 | if (sizeof (ac__type_new_)) | ||
19248 | return 0; | ||
19249 | ; | ||
19250 | return 0; | ||
19251 | } | ||
19252 | _ACEOF | ||
19253 | rm -f conftest.$ac_objext | ||
19254 | if { (ac_try="$ac_compile" | ||
19255 | case "(($ac_try" in | ||
19256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19257 | *) ac_try_echo=$ac_try;; | ||
19258 | esac | ||
19259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19260 | (eval "$ac_compile") 2>conftest.er1 | ||
19261 | ac_status=$? | ||
19262 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19263 | rm -f conftest.er1 | ||
19264 | cat conftest.err >&5 | ||
19265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19266 | (exit $ac_status); } && { | ||
19267 | test -z "$ac_c_werror_flag" || | ||
19268 | test ! -s conftest.err | ||
19269 | } && test -s conftest.$ac_objext; then | ||
19270 | ac_cv_type_char=yes | ||
19271 | else | ||
19272 | echo "$as_me: failed program was:" >&5 | ||
19273 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19274 | |||
19275 | ac_cv_type_char=no | ||
19276 | fi | ||
19277 | |||
19278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19279 | fi | ||
19280 | { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | ||
19281 | echo "${ECHO_T}$ac_cv_type_char" >&6; } | ||
19282 | |||
19283 | # The cast to long int works around a bug in the HP C Compiler | ||
19284 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
19285 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
19286 | # This bug is HP SR number 8606223364. | ||
19287 | { echo "$as_me:$LINENO: checking size of char" >&5 | ||
19288 | echo $ECHO_N "checking size of char... $ECHO_C" >&6; } | ||
19289 | if test "${ac_cv_sizeof_char+set}" = set; then | ||
19290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19291 | else | ||
19292 | if test "$cross_compiling" = yes; then | ||
19293 | # Depending upon the size, compute the lo and hi bounds. | ||
19294 | cat >conftest.$ac_ext <<_ACEOF | ||
19295 | /* confdefs.h. */ | ||
19296 | _ACEOF | ||
19297 | cat confdefs.h >>conftest.$ac_ext | ||
19298 | cat >>conftest.$ac_ext <<_ACEOF | ||
19299 | /* end confdefs.h. */ | ||
19300 | $ac_includes_default | ||
19301 | typedef char ac__type_sizeof_; | ||
19302 | int | ||
19303 | main () | ||
19304 | { | ||
19305 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
19306 | test_array [0] = 0 | ||
19307 | |||
19308 | ; | ||
19309 | return 0; | ||
19310 | } | ||
19311 | _ACEOF | ||
19312 | rm -f conftest.$ac_objext | ||
19313 | if { (ac_try="$ac_compile" | ||
19314 | case "(($ac_try" in | ||
19315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19316 | *) ac_try_echo=$ac_try;; | ||
19317 | esac | ||
19318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19319 | (eval "$ac_compile") 2>conftest.er1 | ||
19320 | ac_status=$? | ||
19321 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19322 | rm -f conftest.er1 | ||
19323 | cat conftest.err >&5 | ||
19324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19325 | (exit $ac_status); } && { | ||
19326 | test -z "$ac_c_werror_flag" || | ||
19327 | test ! -s conftest.err | ||
19328 | } && test -s conftest.$ac_objext; then | ||
19329 | ac_lo=0 ac_mid=0 | ||
19330 | while :; do | ||
19331 | cat >conftest.$ac_ext <<_ACEOF | ||
19332 | /* confdefs.h. */ | ||
19333 | _ACEOF | ||
19334 | cat confdefs.h >>conftest.$ac_ext | ||
19335 | cat >>conftest.$ac_ext <<_ACEOF | ||
19336 | /* end confdefs.h. */ | ||
19337 | $ac_includes_default | ||
19338 | typedef char ac__type_sizeof_; | ||
19339 | int | ||
19340 | main () | ||
19341 | { | ||
19342 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
19343 | test_array [0] = 0 | ||
19344 | |||
19345 | ; | ||
19346 | return 0; | ||
19347 | } | ||
19348 | _ACEOF | ||
19349 | rm -f conftest.$ac_objext | ||
19350 | if { (ac_try="$ac_compile" | ||
19351 | case "(($ac_try" in | ||
19352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19353 | *) ac_try_echo=$ac_try;; | ||
19354 | esac | ||
19355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19356 | (eval "$ac_compile") 2>conftest.er1 | ||
19357 | ac_status=$? | ||
19358 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19359 | rm -f conftest.er1 | ||
19360 | cat conftest.err >&5 | ||
19361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19362 | (exit $ac_status); } && { | ||
19363 | test -z "$ac_c_werror_flag" || | ||
19364 | test ! -s conftest.err | ||
19365 | } && test -s conftest.$ac_objext; then | ||
19366 | ac_hi=$ac_mid; break | ||
19367 | else | ||
19368 | echo "$as_me: failed program was:" >&5 | ||
19369 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19370 | |||
19371 | ac_lo=`expr $ac_mid + 1` | ||
19372 | if test $ac_lo -le $ac_mid; then | ||
19373 | ac_lo= ac_hi= | ||
19374 | break | ||
19375 | fi | ||
19376 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
19377 | fi | ||
19378 | |||
19379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19380 | done | ||
19381 | else | ||
19382 | echo "$as_me: failed program was:" >&5 | ||
19383 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19384 | |||
19385 | cat >conftest.$ac_ext <<_ACEOF | ||
19386 | /* confdefs.h. */ | ||
19387 | _ACEOF | ||
19388 | cat confdefs.h >>conftest.$ac_ext | ||
19389 | cat >>conftest.$ac_ext <<_ACEOF | ||
19390 | /* end confdefs.h. */ | ||
19391 | $ac_includes_default | ||
19392 | typedef char ac__type_sizeof_; | ||
19393 | int | ||
19394 | main () | ||
19395 | { | ||
19396 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
19397 | test_array [0] = 0 | ||
19398 | |||
19399 | ; | ||
19400 | return 0; | ||
19401 | } | ||
19402 | _ACEOF | ||
19403 | rm -f conftest.$ac_objext | ||
19404 | if { (ac_try="$ac_compile" | ||
19405 | case "(($ac_try" in | ||
19406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19407 | *) ac_try_echo=$ac_try;; | ||
19408 | esac | ||
19409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19410 | (eval "$ac_compile") 2>conftest.er1 | ||
19411 | ac_status=$? | ||
19412 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19413 | rm -f conftest.er1 | ||
19414 | cat conftest.err >&5 | ||
19415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19416 | (exit $ac_status); } && { | ||
19417 | test -z "$ac_c_werror_flag" || | ||
19418 | test ! -s conftest.err | ||
19419 | } && test -s conftest.$ac_objext; then | ||
19420 | ac_hi=-1 ac_mid=-1 | ||
19421 | while :; do | ||
19422 | cat >conftest.$ac_ext <<_ACEOF | ||
19423 | /* confdefs.h. */ | ||
19424 | _ACEOF | ||
19425 | cat confdefs.h >>conftest.$ac_ext | ||
19426 | cat >>conftest.$ac_ext <<_ACEOF | ||
19427 | /* end confdefs.h. */ | ||
19428 | $ac_includes_default | ||
19429 | typedef char ac__type_sizeof_; | ||
19430 | int | ||
19431 | main () | ||
19432 | { | ||
19433 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
19434 | test_array [0] = 0 | ||
19435 | |||
19436 | ; | ||
19437 | return 0; | ||
19438 | } | ||
19439 | _ACEOF | ||
19440 | rm -f conftest.$ac_objext | ||
19441 | if { (ac_try="$ac_compile" | ||
19442 | case "(($ac_try" in | ||
19443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19444 | *) ac_try_echo=$ac_try;; | ||
19445 | esac | ||
19446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19447 | (eval "$ac_compile") 2>conftest.er1 | ||
19448 | ac_status=$? | ||
19449 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19450 | rm -f conftest.er1 | ||
19451 | cat conftest.err >&5 | ||
19452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19453 | (exit $ac_status); } && { | ||
19454 | test -z "$ac_c_werror_flag" || | ||
19455 | test ! -s conftest.err | ||
19456 | } && test -s conftest.$ac_objext; then | ||
19457 | ac_lo=$ac_mid; break | ||
19458 | else | ||
19459 | echo "$as_me: failed program was:" >&5 | ||
19460 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19461 | |||
19462 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
19463 | if test $ac_mid -le $ac_hi; then | ||
19464 | ac_lo= ac_hi= | ||
19465 | break | ||
19466 | fi | ||
19467 | ac_mid=`expr 2 '*' $ac_mid` | ||
19468 | fi | ||
19469 | |||
19470 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19471 | done | ||
19472 | else | ||
19473 | echo "$as_me: failed program was:" >&5 | ||
19474 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19475 | |||
19476 | ac_lo= ac_hi= | ||
19477 | fi | ||
19478 | |||
19479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19480 | fi | ||
19481 | |||
19482 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19483 | # Binary search between lo and hi bounds. | ||
19484 | while test "x$ac_lo" != "x$ac_hi"; do | ||
19485 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
19486 | cat >conftest.$ac_ext <<_ACEOF | ||
19487 | /* confdefs.h. */ | ||
19488 | _ACEOF | ||
19489 | cat confdefs.h >>conftest.$ac_ext | ||
19490 | cat >>conftest.$ac_ext <<_ACEOF | ||
19491 | /* end confdefs.h. */ | ||
19492 | $ac_includes_default | ||
19493 | typedef char ac__type_sizeof_; | ||
19494 | int | ||
19495 | main () | ||
19496 | { | ||
19497 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
19498 | test_array [0] = 0 | ||
19499 | |||
19500 | ; | ||
19501 | return 0; | ||
19502 | } | ||
19503 | _ACEOF | ||
19504 | rm -f conftest.$ac_objext | ||
19505 | if { (ac_try="$ac_compile" | ||
19506 | case "(($ac_try" in | ||
19507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19508 | *) ac_try_echo=$ac_try;; | ||
19509 | esac | ||
19510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19511 | (eval "$ac_compile") 2>conftest.er1 | ||
19512 | ac_status=$? | ||
19513 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19514 | rm -f conftest.er1 | ||
19515 | cat conftest.err >&5 | ||
19516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19517 | (exit $ac_status); } && { | ||
19518 | test -z "$ac_c_werror_flag" || | ||
19519 | test ! -s conftest.err | ||
19520 | } && test -s conftest.$ac_objext; then | ||
19521 | ac_hi=$ac_mid | ||
19522 | else | ||
19523 | echo "$as_me: failed program was:" >&5 | ||
19524 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19525 | |||
19526 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
19527 | fi | ||
19528 | |||
19529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19530 | done | ||
19531 | case $ac_lo in | ||
19532 | ?*) ac_cv_sizeof_char=$ac_lo;; | ||
19533 | '') if test "$ac_cv_type_char" = yes; then | ||
19534 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) | ||
19535 | See \`config.log' for more details." >&5 | ||
19536 | echo "$as_me: error: cannot compute sizeof (char) | ||
19537 | See \`config.log' for more details." >&2;} | ||
19538 | { (exit 77); exit 77; }; } | ||
19539 | else | ||
19540 | ac_cv_sizeof_char=0 | ||
19541 | fi ;; | ||
19542 | esac | ||
19543 | else | ||
19544 | cat >conftest.$ac_ext <<_ACEOF | ||
19545 | /* confdefs.h. */ | ||
19546 | _ACEOF | ||
19547 | cat confdefs.h >>conftest.$ac_ext | ||
19548 | cat >>conftest.$ac_ext <<_ACEOF | ||
19549 | /* end confdefs.h. */ | ||
19550 | $ac_includes_default | ||
19551 | typedef char ac__type_sizeof_; | ||
19552 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
19553 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
19554 | #include <stdio.h> | ||
19555 | #include <stdlib.h> | ||
19556 | int | ||
19557 | main () | ||
19558 | { | ||
19559 | |||
19560 | FILE *f = fopen ("conftest.val", "w"); | ||
19561 | if (! f) | ||
19562 | return 1; | ||
19563 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
19564 | { | ||
19565 | long int i = longval (); | ||
19566 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
19567 | return 1; | ||
19568 | fprintf (f, "%ld\n", i); | ||
19569 | } | ||
19570 | else | ||
19571 | { | ||
19572 | unsigned long int i = ulongval (); | ||
19573 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
19574 | return 1; | ||
19575 | fprintf (f, "%lu\n", i); | ||
19576 | } | ||
19577 | return ferror (f) || fclose (f) != 0; | ||
19578 | |||
19579 | ; | ||
19580 | return 0; | ||
19581 | } | ||
19582 | _ACEOF | ||
19583 | rm -f conftest$ac_exeext | ||
19584 | if { (ac_try="$ac_link" | ||
19585 | case "(($ac_try" in | ||
19586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19587 | *) ac_try_echo=$ac_try;; | ||
19588 | esac | ||
19589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19590 | (eval "$ac_link") 2>&5 | ||
19591 | ac_status=$? | ||
19592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19593 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
19594 | { (case "(($ac_try" in | ||
19595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19596 | *) ac_try_echo=$ac_try;; | ||
19597 | esac | ||
19598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19599 | (eval "$ac_try") 2>&5 | ||
19600 | ac_status=$? | ||
19601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19602 | (exit $ac_status); }; }; then | ||
19603 | ac_cv_sizeof_char=`cat conftest.val` | ||
19604 | else | ||
19605 | echo "$as_me: program exited with status $ac_status" >&5 | ||
19606 | echo "$as_me: failed program was:" >&5 | ||
19607 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19608 | |||
19609 | ( exit $ac_status ) | ||
19610 | if test "$ac_cv_type_char" = yes; then | ||
19611 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) | ||
19612 | See \`config.log' for more details." >&5 | ||
19613 | echo "$as_me: error: cannot compute sizeof (char) | ||
19614 | See \`config.log' for more details." >&2;} | ||
19615 | { (exit 77); exit 77; }; } | ||
19616 | else | ||
19617 | ac_cv_sizeof_char=0 | ||
19618 | fi | ||
19619 | fi | ||
19620 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
19621 | fi | ||
19622 | rm -f conftest.val | ||
19623 | fi | ||
19624 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | ||
19625 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6; } | ||
19626 | |||
19627 | |||
19628 | |||
19629 | cat >>confdefs.h <<_ACEOF | ||
19630 | #define SIZEOF_CHAR $ac_cv_sizeof_char | ||
19631 | _ACEOF | ||
19632 | |||
19633 | |||
19634 | { echo "$as_me:$LINENO: checking for short int" >&5 | ||
19635 | echo $ECHO_N "checking for short int... $ECHO_C" >&6; } | ||
19636 | if test "${ac_cv_type_short_int+set}" = set; then | ||
19637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19638 | else | ||
19639 | cat >conftest.$ac_ext <<_ACEOF | ||
19640 | /* confdefs.h. */ | ||
19641 | _ACEOF | ||
19642 | cat confdefs.h >>conftest.$ac_ext | ||
19643 | cat >>conftest.$ac_ext <<_ACEOF | ||
19644 | /* end confdefs.h. */ | ||
19645 | $ac_includes_default | ||
19646 | typedef short int ac__type_new_; | ||
19647 | int | ||
19648 | main () | ||
19649 | { | ||
19650 | if ((ac__type_new_ *) 0) | ||
19651 | return 0; | ||
19652 | if (sizeof (ac__type_new_)) | ||
19653 | return 0; | ||
19654 | ; | ||
19655 | return 0; | ||
19656 | } | ||
19657 | _ACEOF | ||
19658 | rm -f conftest.$ac_objext | ||
19659 | if { (ac_try="$ac_compile" | ||
19660 | case "(($ac_try" in | ||
19661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19662 | *) ac_try_echo=$ac_try;; | ||
19663 | esac | ||
19664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19665 | (eval "$ac_compile") 2>conftest.er1 | ||
19666 | ac_status=$? | ||
19667 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19668 | rm -f conftest.er1 | ||
19669 | cat conftest.err >&5 | ||
19670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19671 | (exit $ac_status); } && { | ||
19672 | test -z "$ac_c_werror_flag" || | ||
19673 | test ! -s conftest.err | ||
19674 | } && test -s conftest.$ac_objext; then | ||
19675 | ac_cv_type_short_int=yes | ||
19676 | else | ||
19677 | echo "$as_me: failed program was:" >&5 | ||
19678 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19679 | |||
19680 | ac_cv_type_short_int=no | ||
19681 | fi | ||
19682 | |||
19683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19684 | fi | ||
19685 | { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5 | ||
19686 | echo "${ECHO_T}$ac_cv_type_short_int" >&6; } | ||
19687 | |||
19688 | # The cast to long int works around a bug in the HP C Compiler | ||
19689 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
19690 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
19691 | # This bug is HP SR number 8606223364. | ||
19692 | { echo "$as_me:$LINENO: checking size of short int" >&5 | ||
19693 | echo $ECHO_N "checking size of short int... $ECHO_C" >&6; } | ||
19694 | if test "${ac_cv_sizeof_short_int+set}" = set; then | ||
19695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19696 | else | ||
19697 | if test "$cross_compiling" = yes; then | ||
19698 | # Depending upon the size, compute the lo and hi bounds. | ||
19699 | cat >conftest.$ac_ext <<_ACEOF | ||
19700 | /* confdefs.h. */ | ||
19701 | _ACEOF | ||
19702 | cat confdefs.h >>conftest.$ac_ext | ||
19703 | cat >>conftest.$ac_ext <<_ACEOF | ||
19704 | /* end confdefs.h. */ | ||
19705 | $ac_includes_default | ||
19706 | typedef short int ac__type_sizeof_; | ||
19707 | int | ||
19708 | main () | ||
19709 | { | ||
19710 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
19711 | test_array [0] = 0 | ||
19712 | |||
19713 | ; | ||
19714 | return 0; | ||
19715 | } | ||
19716 | _ACEOF | ||
19717 | rm -f conftest.$ac_objext | ||
19718 | if { (ac_try="$ac_compile" | ||
19719 | case "(($ac_try" in | ||
19720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19721 | *) ac_try_echo=$ac_try;; | ||
19722 | esac | ||
19723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19724 | (eval "$ac_compile") 2>conftest.er1 | ||
19725 | ac_status=$? | ||
19726 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19727 | rm -f conftest.er1 | ||
19728 | cat conftest.err >&5 | ||
19729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19730 | (exit $ac_status); } && { | ||
19731 | test -z "$ac_c_werror_flag" || | ||
19732 | test ! -s conftest.err | ||
19733 | } && test -s conftest.$ac_objext; then | ||
19734 | ac_lo=0 ac_mid=0 | ||
19735 | while :; do | ||
19736 | cat >conftest.$ac_ext <<_ACEOF | ||
19737 | /* confdefs.h. */ | ||
19738 | _ACEOF | ||
19739 | cat confdefs.h >>conftest.$ac_ext | ||
19740 | cat >>conftest.$ac_ext <<_ACEOF | ||
19741 | /* end confdefs.h. */ | ||
19742 | $ac_includes_default | ||
19743 | typedef short int ac__type_sizeof_; | ||
19744 | int | ||
19745 | main () | ||
19746 | { | ||
19747 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
19748 | test_array [0] = 0 | ||
19749 | |||
19750 | ; | ||
19751 | return 0; | ||
19752 | } | ||
19753 | _ACEOF | ||
19754 | rm -f conftest.$ac_objext | ||
19755 | if { (ac_try="$ac_compile" | ||
19756 | case "(($ac_try" in | ||
19757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19758 | *) ac_try_echo=$ac_try;; | ||
19759 | esac | ||
19760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19761 | (eval "$ac_compile") 2>conftest.er1 | ||
19762 | ac_status=$? | ||
19763 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19764 | rm -f conftest.er1 | ||
19765 | cat conftest.err >&5 | ||
19766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19767 | (exit $ac_status); } && { | ||
19768 | test -z "$ac_c_werror_flag" || | ||
19769 | test ! -s conftest.err | ||
19770 | } && test -s conftest.$ac_objext; then | ||
19771 | ac_hi=$ac_mid; break | ||
19772 | else | ||
19773 | echo "$as_me: failed program was:" >&5 | ||
19774 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19775 | |||
19776 | ac_lo=`expr $ac_mid + 1` | ||
19777 | if test $ac_lo -le $ac_mid; then | ||
19778 | ac_lo= ac_hi= | ||
19779 | break | ||
19780 | fi | ||
19781 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
19782 | fi | ||
19783 | |||
19784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19785 | done | ||
19786 | else | ||
19787 | echo "$as_me: failed program was:" >&5 | ||
19788 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19789 | |||
19790 | cat >conftest.$ac_ext <<_ACEOF | ||
19791 | /* confdefs.h. */ | ||
19792 | _ACEOF | ||
19793 | cat confdefs.h >>conftest.$ac_ext | ||
19794 | cat >>conftest.$ac_ext <<_ACEOF | ||
19795 | /* end confdefs.h. */ | ||
19796 | $ac_includes_default | ||
19797 | typedef short int ac__type_sizeof_; | ||
19798 | int | ||
19799 | main () | ||
19800 | { | ||
19801 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
19802 | test_array [0] = 0 | ||
19803 | |||
19804 | ; | ||
19805 | return 0; | ||
19806 | } | ||
19807 | _ACEOF | ||
19808 | rm -f conftest.$ac_objext | ||
19809 | if { (ac_try="$ac_compile" | ||
19810 | case "(($ac_try" in | ||
19811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19812 | *) ac_try_echo=$ac_try;; | ||
19813 | esac | ||
19814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19815 | (eval "$ac_compile") 2>conftest.er1 | ||
19816 | ac_status=$? | ||
19817 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19818 | rm -f conftest.er1 | ||
19819 | cat conftest.err >&5 | ||
19820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19821 | (exit $ac_status); } && { | ||
19822 | test -z "$ac_c_werror_flag" || | ||
19823 | test ! -s conftest.err | ||
19824 | } && test -s conftest.$ac_objext; then | ||
19825 | ac_hi=-1 ac_mid=-1 | ||
19826 | while :; do | ||
19827 | cat >conftest.$ac_ext <<_ACEOF | ||
19828 | /* confdefs.h. */ | ||
19829 | _ACEOF | ||
19830 | cat confdefs.h >>conftest.$ac_ext | ||
19831 | cat >>conftest.$ac_ext <<_ACEOF | ||
19832 | /* end confdefs.h. */ | ||
19833 | $ac_includes_default | ||
19834 | typedef short int ac__type_sizeof_; | ||
19835 | int | ||
19836 | main () | ||
19837 | { | ||
19838 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
19839 | test_array [0] = 0 | ||
19840 | |||
19841 | ; | ||
19842 | return 0; | ||
19843 | } | ||
19844 | _ACEOF | ||
19845 | rm -f conftest.$ac_objext | ||
19846 | if { (ac_try="$ac_compile" | ||
19847 | case "(($ac_try" in | ||
19848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19849 | *) ac_try_echo=$ac_try;; | ||
19850 | esac | ||
19851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19852 | (eval "$ac_compile") 2>conftest.er1 | ||
19853 | ac_status=$? | ||
19854 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19855 | rm -f conftest.er1 | ||
19856 | cat conftest.err >&5 | ||
19857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19858 | (exit $ac_status); } && { | ||
19859 | test -z "$ac_c_werror_flag" || | ||
19860 | test ! -s conftest.err | ||
19861 | } && test -s conftest.$ac_objext; then | ||
19862 | ac_lo=$ac_mid; break | ||
19863 | else | ||
19864 | echo "$as_me: failed program was:" >&5 | ||
19865 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19866 | |||
19867 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
19868 | if test $ac_mid -le $ac_hi; then | ||
19869 | ac_lo= ac_hi= | ||
19870 | break | ||
19871 | fi | ||
19872 | ac_mid=`expr 2 '*' $ac_mid` | ||
19873 | fi | ||
19874 | |||
19875 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19876 | done | ||
19877 | else | ||
19878 | echo "$as_me: failed program was:" >&5 | ||
19879 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19880 | |||
19881 | ac_lo= ac_hi= | ||
19882 | fi | ||
19883 | |||
19884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19885 | fi | ||
19886 | |||
19887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19888 | # Binary search between lo and hi bounds. | ||
19889 | while test "x$ac_lo" != "x$ac_hi"; do | ||
19890 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
19891 | cat >conftest.$ac_ext <<_ACEOF | ||
19892 | /* confdefs.h. */ | ||
19893 | _ACEOF | ||
19894 | cat confdefs.h >>conftest.$ac_ext | ||
19895 | cat >>conftest.$ac_ext <<_ACEOF | ||
19896 | /* end confdefs.h. */ | ||
19897 | $ac_includes_default | ||
19898 | typedef short int ac__type_sizeof_; | ||
19899 | int | ||
19900 | main () | ||
19901 | { | ||
19902 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
19903 | test_array [0] = 0 | ||
19904 | |||
19905 | ; | ||
19906 | return 0; | ||
19907 | } | ||
19908 | _ACEOF | ||
19909 | rm -f conftest.$ac_objext | ||
19910 | if { (ac_try="$ac_compile" | ||
19911 | case "(($ac_try" in | ||
19912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19913 | *) ac_try_echo=$ac_try;; | ||
19914 | esac | ||
19915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19916 | (eval "$ac_compile") 2>conftest.er1 | ||
19917 | ac_status=$? | ||
19918 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19919 | rm -f conftest.er1 | ||
19920 | cat conftest.err >&5 | ||
19921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19922 | (exit $ac_status); } && { | ||
19923 | test -z "$ac_c_werror_flag" || | ||
19924 | test ! -s conftest.err | ||
19925 | } && test -s conftest.$ac_objext; then | ||
19926 | ac_hi=$ac_mid | ||
19927 | else | ||
19928 | echo "$as_me: failed program was:" >&5 | ||
19929 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19930 | |||
19931 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
19932 | fi | ||
19933 | |||
19934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19935 | done | ||
19936 | case $ac_lo in | ||
19937 | ?*) ac_cv_sizeof_short_int=$ac_lo;; | ||
19938 | '') if test "$ac_cv_type_short_int" = yes; then | ||
19939 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int) | ||
19940 | See \`config.log' for more details." >&5 | ||
19941 | echo "$as_me: error: cannot compute sizeof (short int) | ||
19942 | See \`config.log' for more details." >&2;} | ||
19943 | { (exit 77); exit 77; }; } | ||
19944 | else | ||
19945 | ac_cv_sizeof_short_int=0 | ||
19946 | fi ;; | ||
19947 | esac | ||
19948 | else | ||
19949 | cat >conftest.$ac_ext <<_ACEOF | ||
19950 | /* confdefs.h. */ | ||
19951 | _ACEOF | ||
19952 | cat confdefs.h >>conftest.$ac_ext | ||
19953 | cat >>conftest.$ac_ext <<_ACEOF | ||
19954 | /* end confdefs.h. */ | ||
19955 | $ac_includes_default | ||
19956 | typedef short int ac__type_sizeof_; | ||
19957 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
19958 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
19959 | #include <stdio.h> | ||
19960 | #include <stdlib.h> | ||
19961 | int | ||
19962 | main () | ||
19963 | { | ||
19964 | |||
19965 | FILE *f = fopen ("conftest.val", "w"); | ||
19966 | if (! f) | ||
19967 | return 1; | ||
19968 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
19969 | { | ||
19970 | long int i = longval (); | ||
19971 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
19972 | return 1; | ||
19973 | fprintf (f, "%ld\n", i); | ||
19974 | } | ||
19975 | else | ||
19976 | { | ||
19977 | unsigned long int i = ulongval (); | ||
19978 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
19979 | return 1; | ||
19980 | fprintf (f, "%lu\n", i); | ||
19981 | } | ||
19982 | return ferror (f) || fclose (f) != 0; | ||
19983 | |||
19984 | ; | ||
19985 | return 0; | ||
19986 | } | ||
19987 | _ACEOF | ||
19988 | rm -f conftest$ac_exeext | ||
19989 | if { (ac_try="$ac_link" | ||
19990 | case "(($ac_try" in | ||
19991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19992 | *) ac_try_echo=$ac_try;; | ||
19993 | esac | ||
19994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19995 | (eval "$ac_link") 2>&5 | ||
19996 | ac_status=$? | ||
19997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19998 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
19999 | { (case "(($ac_try" in | ||
20000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20001 | *) ac_try_echo=$ac_try;; | ||
20002 | esac | ||
20003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20004 | (eval "$ac_try") 2>&5 | ||
20005 | ac_status=$? | ||
20006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20007 | (exit $ac_status); }; }; then | ||
20008 | ac_cv_sizeof_short_int=`cat conftest.val` | ||
20009 | else | ||
20010 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20011 | echo "$as_me: failed program was:" >&5 | ||
20012 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20013 | |||
20014 | ( exit $ac_status ) | ||
20015 | if test "$ac_cv_type_short_int" = yes; then | ||
20016 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int) | ||
20017 | See \`config.log' for more details." >&5 | ||
20018 | echo "$as_me: error: cannot compute sizeof (short int) | ||
20019 | See \`config.log' for more details." >&2;} | ||
20020 | { (exit 77); exit 77; }; } | ||
20021 | else | ||
20022 | ac_cv_sizeof_short_int=0 | ||
20023 | fi | ||
20024 | fi | ||
20025 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20026 | fi | ||
20027 | rm -f conftest.val | ||
20028 | fi | ||
20029 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5 | ||
20030 | echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; } | ||
20031 | |||
20032 | |||
20033 | |||
20034 | cat >>confdefs.h <<_ACEOF | ||
20035 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
20036 | _ACEOF | ||
20037 | |||
20038 | |||
20039 | { echo "$as_me:$LINENO: checking for int" >&5 | ||
20040 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } | ||
20041 | if test "${ac_cv_type_int+set}" = set; then | ||
20042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20043 | else | ||
20044 | cat >conftest.$ac_ext <<_ACEOF | ||
20045 | /* confdefs.h. */ | ||
20046 | _ACEOF | ||
20047 | cat confdefs.h >>conftest.$ac_ext | ||
20048 | cat >>conftest.$ac_ext <<_ACEOF | ||
20049 | /* end confdefs.h. */ | ||
20050 | $ac_includes_default | ||
20051 | typedef int ac__type_new_; | ||
20052 | int | ||
20053 | main () | ||
20054 | { | ||
20055 | if ((ac__type_new_ *) 0) | ||
20056 | return 0; | ||
20057 | if (sizeof (ac__type_new_)) | ||
20058 | return 0; | ||
20059 | ; | ||
20060 | return 0; | ||
20061 | } | ||
20062 | _ACEOF | ||
20063 | rm -f conftest.$ac_objext | ||
20064 | if { (ac_try="$ac_compile" | ||
20065 | case "(($ac_try" in | ||
20066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20067 | *) ac_try_echo=$ac_try;; | ||
20068 | esac | ||
20069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20070 | (eval "$ac_compile") 2>conftest.er1 | ||
20071 | ac_status=$? | ||
20072 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20073 | rm -f conftest.er1 | ||
20074 | cat conftest.err >&5 | ||
20075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20076 | (exit $ac_status); } && { | ||
20077 | test -z "$ac_c_werror_flag" || | ||
20078 | test ! -s conftest.err | ||
20079 | } && test -s conftest.$ac_objext; then | ||
20080 | ac_cv_type_int=yes | ||
20081 | else | ||
20082 | echo "$as_me: failed program was:" >&5 | ||
20083 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20084 | |||
20085 | ac_cv_type_int=no | ||
20086 | fi | ||
20087 | |||
20088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20089 | fi | ||
20090 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | ||
20091 | echo "${ECHO_T}$ac_cv_type_int" >&6; } | ||
20092 | |||
20093 | # The cast to long int works around a bug in the HP C Compiler | ||
20094 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
20095 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
20096 | # This bug is HP SR number 8606223364. | ||
20097 | { echo "$as_me:$LINENO: checking size of int" >&5 | ||
20098 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } | ||
20099 | if test "${ac_cv_sizeof_int+set}" = set; then | ||
20100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20101 | else | ||
20102 | if test "$cross_compiling" = yes; then | ||
20103 | # Depending upon the size, compute the lo and hi bounds. | ||
20104 | cat >conftest.$ac_ext <<_ACEOF | ||
20105 | /* confdefs.h. */ | ||
20106 | _ACEOF | ||
20107 | cat confdefs.h >>conftest.$ac_ext | ||
20108 | cat >>conftest.$ac_ext <<_ACEOF | ||
20109 | /* end confdefs.h. */ | ||
20110 | $ac_includes_default | ||
20111 | typedef int ac__type_sizeof_; | ||
20112 | int | ||
20113 | main () | ||
20114 | { | ||
20115 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
20116 | test_array [0] = 0 | ||
20117 | |||
20118 | ; | ||
20119 | return 0; | ||
20120 | } | ||
20121 | _ACEOF | ||
20122 | rm -f conftest.$ac_objext | ||
20123 | if { (ac_try="$ac_compile" | ||
20124 | case "(($ac_try" in | ||
20125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20126 | *) ac_try_echo=$ac_try;; | ||
20127 | esac | ||
20128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20129 | (eval "$ac_compile") 2>conftest.er1 | ||
20130 | ac_status=$? | ||
20131 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20132 | rm -f conftest.er1 | ||
20133 | cat conftest.err >&5 | ||
20134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20135 | (exit $ac_status); } && { | ||
20136 | test -z "$ac_c_werror_flag" || | ||
20137 | test ! -s conftest.err | ||
20138 | } && test -s conftest.$ac_objext; then | ||
20139 | ac_lo=0 ac_mid=0 | ||
20140 | while :; do | ||
20141 | cat >conftest.$ac_ext <<_ACEOF | ||
20142 | /* confdefs.h. */ | ||
20143 | _ACEOF | ||
20144 | cat confdefs.h >>conftest.$ac_ext | ||
20145 | cat >>conftest.$ac_ext <<_ACEOF | ||
20146 | /* end confdefs.h. */ | ||
20147 | $ac_includes_default | ||
20148 | typedef int ac__type_sizeof_; | ||
20149 | int | ||
20150 | main () | ||
20151 | { | ||
20152 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
20153 | test_array [0] = 0 | ||
20154 | |||
20155 | ; | ||
20156 | return 0; | ||
20157 | } | ||
20158 | _ACEOF | ||
20159 | rm -f conftest.$ac_objext | ||
20160 | if { (ac_try="$ac_compile" | ||
20161 | case "(($ac_try" in | ||
20162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20163 | *) ac_try_echo=$ac_try;; | ||
20164 | esac | ||
20165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20166 | (eval "$ac_compile") 2>conftest.er1 | ||
20167 | ac_status=$? | ||
20168 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20169 | rm -f conftest.er1 | ||
20170 | cat conftest.err >&5 | ||
20171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20172 | (exit $ac_status); } && { | ||
20173 | test -z "$ac_c_werror_flag" || | ||
20174 | test ! -s conftest.err | ||
20175 | } && test -s conftest.$ac_objext; then | ||
20176 | ac_hi=$ac_mid; break | ||
20177 | else | ||
20178 | echo "$as_me: failed program was:" >&5 | ||
20179 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20180 | |||
20181 | ac_lo=`expr $ac_mid + 1` | ||
20182 | if test $ac_lo -le $ac_mid; then | ||
20183 | ac_lo= ac_hi= | ||
20184 | break | ||
20185 | fi | ||
20186 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
20187 | fi | ||
20188 | |||
20189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20190 | done | ||
20191 | else | ||
20192 | echo "$as_me: failed program was:" >&5 | ||
20193 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20194 | |||
20195 | cat >conftest.$ac_ext <<_ACEOF | ||
20196 | /* confdefs.h. */ | ||
20197 | _ACEOF | ||
20198 | cat confdefs.h >>conftest.$ac_ext | ||
20199 | cat >>conftest.$ac_ext <<_ACEOF | ||
20200 | /* end confdefs.h. */ | ||
20201 | $ac_includes_default | ||
20202 | typedef int ac__type_sizeof_; | ||
20203 | int | ||
20204 | main () | ||
20205 | { | ||
20206 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
20207 | test_array [0] = 0 | ||
20208 | |||
20209 | ; | ||
20210 | return 0; | ||
20211 | } | ||
20212 | _ACEOF | ||
20213 | rm -f conftest.$ac_objext | ||
20214 | if { (ac_try="$ac_compile" | ||
20215 | case "(($ac_try" in | ||
20216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20217 | *) ac_try_echo=$ac_try;; | ||
20218 | esac | ||
20219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20220 | (eval "$ac_compile") 2>conftest.er1 | ||
20221 | ac_status=$? | ||
20222 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20223 | rm -f conftest.er1 | ||
20224 | cat conftest.err >&5 | ||
20225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20226 | (exit $ac_status); } && { | ||
20227 | test -z "$ac_c_werror_flag" || | ||
20228 | test ! -s conftest.err | ||
20229 | } && test -s conftest.$ac_objext; then | ||
20230 | ac_hi=-1 ac_mid=-1 | ||
20231 | while :; do | ||
20232 | cat >conftest.$ac_ext <<_ACEOF | ||
20233 | /* confdefs.h. */ | ||
20234 | _ACEOF | ||
20235 | cat confdefs.h >>conftest.$ac_ext | ||
20236 | cat >>conftest.$ac_ext <<_ACEOF | ||
20237 | /* end confdefs.h. */ | ||
20238 | $ac_includes_default | ||
20239 | typedef int ac__type_sizeof_; | ||
20240 | int | ||
20241 | main () | ||
20242 | { | ||
20243 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
20244 | test_array [0] = 0 | ||
20245 | |||
20246 | ; | ||
20247 | return 0; | ||
20248 | } | ||
20249 | _ACEOF | ||
20250 | rm -f conftest.$ac_objext | ||
20251 | if { (ac_try="$ac_compile" | ||
20252 | case "(($ac_try" in | ||
20253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20254 | *) ac_try_echo=$ac_try;; | ||
20255 | esac | ||
20256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20257 | (eval "$ac_compile") 2>conftest.er1 | ||
20258 | ac_status=$? | ||
20259 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20260 | rm -f conftest.er1 | ||
20261 | cat conftest.err >&5 | ||
20262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20263 | (exit $ac_status); } && { | ||
20264 | test -z "$ac_c_werror_flag" || | ||
20265 | test ! -s conftest.err | ||
20266 | } && test -s conftest.$ac_objext; then | ||
20267 | ac_lo=$ac_mid; break | ||
20268 | else | ||
20269 | echo "$as_me: failed program was:" >&5 | ||
20270 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20271 | |||
20272 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
20273 | if test $ac_mid -le $ac_hi; then | ||
20274 | ac_lo= ac_hi= | ||
20275 | break | ||
20276 | fi | ||
20277 | ac_mid=`expr 2 '*' $ac_mid` | ||
20278 | fi | ||
20279 | |||
20280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20281 | done | ||
20282 | else | ||
20283 | echo "$as_me: failed program was:" >&5 | ||
20284 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20285 | |||
20286 | ac_lo= ac_hi= | ||
20287 | fi | ||
20288 | |||
20289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20290 | fi | ||
20291 | |||
20292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20293 | # Binary search between lo and hi bounds. | ||
20294 | while test "x$ac_lo" != "x$ac_hi"; do | ||
20295 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
20296 | cat >conftest.$ac_ext <<_ACEOF | ||
20297 | /* confdefs.h. */ | ||
20298 | _ACEOF | ||
20299 | cat confdefs.h >>conftest.$ac_ext | ||
20300 | cat >>conftest.$ac_ext <<_ACEOF | ||
20301 | /* end confdefs.h. */ | ||
20302 | $ac_includes_default | ||
20303 | typedef int ac__type_sizeof_; | ||
20304 | int | ||
20305 | main () | ||
20306 | { | ||
20307 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
20308 | test_array [0] = 0 | ||
20309 | |||
20310 | ; | ||
20311 | return 0; | ||
20312 | } | ||
20313 | _ACEOF | ||
20314 | rm -f conftest.$ac_objext | ||
20315 | if { (ac_try="$ac_compile" | ||
20316 | case "(($ac_try" in | ||
20317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20318 | *) ac_try_echo=$ac_try;; | ||
20319 | esac | ||
20320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20321 | (eval "$ac_compile") 2>conftest.er1 | ||
20322 | ac_status=$? | ||
20323 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20324 | rm -f conftest.er1 | ||
20325 | cat conftest.err >&5 | ||
20326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20327 | (exit $ac_status); } && { | ||
20328 | test -z "$ac_c_werror_flag" || | ||
20329 | test ! -s conftest.err | ||
20330 | } && test -s conftest.$ac_objext; then | ||
20331 | ac_hi=$ac_mid | ||
20332 | else | ||
20333 | echo "$as_me: failed program was:" >&5 | ||
20334 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20335 | |||
20336 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
20337 | fi | ||
20338 | |||
20339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20340 | done | ||
20341 | case $ac_lo in | ||
20342 | ?*) ac_cv_sizeof_int=$ac_lo;; | ||
20343 | '') if test "$ac_cv_type_int" = yes; then | ||
20344 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | ||
20345 | See \`config.log' for more details." >&5 | ||
20346 | echo "$as_me: error: cannot compute sizeof (int) | ||
20347 | See \`config.log' for more details." >&2;} | ||
20348 | { (exit 77); exit 77; }; } | ||
20349 | else | ||
20350 | ac_cv_sizeof_int=0 | ||
20351 | fi ;; | ||
20352 | esac | ||
20353 | else | ||
20354 | cat >conftest.$ac_ext <<_ACEOF | ||
20355 | /* confdefs.h. */ | ||
20356 | _ACEOF | ||
20357 | cat confdefs.h >>conftest.$ac_ext | ||
20358 | cat >>conftest.$ac_ext <<_ACEOF | ||
20359 | /* end confdefs.h. */ | ||
20360 | $ac_includes_default | ||
20361 | typedef int ac__type_sizeof_; | ||
20362 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
20363 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
20364 | #include <stdio.h> | ||
20365 | #include <stdlib.h> | ||
20366 | int | ||
20367 | main () | ||
20368 | { | ||
20369 | |||
20370 | FILE *f = fopen ("conftest.val", "w"); | ||
20371 | if (! f) | ||
20372 | return 1; | ||
20373 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
20374 | { | ||
20375 | long int i = longval (); | ||
20376 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
20377 | return 1; | ||
20378 | fprintf (f, "%ld\n", i); | ||
20379 | } | ||
20380 | else | ||
20381 | { | ||
20382 | unsigned long int i = ulongval (); | ||
20383 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
20384 | return 1; | ||
20385 | fprintf (f, "%lu\n", i); | ||
20386 | } | ||
20387 | return ferror (f) || fclose (f) != 0; | ||
20388 | |||
20389 | ; | ||
20390 | return 0; | ||
20391 | } | ||
20392 | _ACEOF | ||
20393 | rm -f conftest$ac_exeext | ||
20394 | if { (ac_try="$ac_link" | ||
20395 | case "(($ac_try" in | ||
20396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20397 | *) ac_try_echo=$ac_try;; | ||
20398 | esac | ||
20399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20400 | (eval "$ac_link") 2>&5 | ||
20401 | ac_status=$? | ||
20402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20403 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20404 | { (case "(($ac_try" in | ||
20405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20406 | *) ac_try_echo=$ac_try;; | ||
20407 | esac | ||
20408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20409 | (eval "$ac_try") 2>&5 | ||
20410 | ac_status=$? | ||
20411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20412 | (exit $ac_status); }; }; then | ||
20413 | ac_cv_sizeof_int=`cat conftest.val` | ||
20414 | else | ||
20415 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20416 | echo "$as_me: failed program was:" >&5 | ||
20417 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20418 | |||
20419 | ( exit $ac_status ) | ||
20420 | if test "$ac_cv_type_int" = yes; then | ||
20421 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | ||
20422 | See \`config.log' for more details." >&5 | ||
20423 | echo "$as_me: error: cannot compute sizeof (int) | ||
20424 | See \`config.log' for more details." >&2;} | ||
20425 | { (exit 77); exit 77; }; } | ||
20426 | else | ||
20427 | ac_cv_sizeof_int=0 | ||
20428 | fi | ||
20429 | fi | ||
20430 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20431 | fi | ||
20432 | rm -f conftest.val | ||
20433 | fi | ||
20434 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | ||
20435 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } | ||
20436 | |||
20437 | |||
20438 | |||
20439 | cat >>confdefs.h <<_ACEOF | ||
20440 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
20441 | _ACEOF | ||
20442 | |||
20443 | |||
20444 | { echo "$as_me:$LINENO: checking for long int" >&5 | ||
20445 | echo $ECHO_N "checking for long int... $ECHO_C" >&6; } | ||
20446 | if test "${ac_cv_type_long_int+set}" = set; then | ||
20447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20448 | else | ||
20449 | cat >conftest.$ac_ext <<_ACEOF | ||
20450 | /* confdefs.h. */ | ||
20451 | _ACEOF | ||
20452 | cat confdefs.h >>conftest.$ac_ext | ||
20453 | cat >>conftest.$ac_ext <<_ACEOF | ||
20454 | /* end confdefs.h. */ | ||
20455 | $ac_includes_default | ||
20456 | typedef long int ac__type_new_; | ||
20457 | int | ||
20458 | main () | ||
20459 | { | ||
20460 | if ((ac__type_new_ *) 0) | ||
20461 | return 0; | ||
20462 | if (sizeof (ac__type_new_)) | ||
20463 | return 0; | ||
20464 | ; | ||
20465 | return 0; | ||
20466 | } | ||
20467 | _ACEOF | ||
20468 | rm -f conftest.$ac_objext | ||
20469 | if { (ac_try="$ac_compile" | ||
20470 | case "(($ac_try" in | ||
20471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20472 | *) ac_try_echo=$ac_try;; | ||
20473 | esac | ||
20474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20475 | (eval "$ac_compile") 2>conftest.er1 | ||
20476 | ac_status=$? | ||
20477 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20478 | rm -f conftest.er1 | ||
20479 | cat conftest.err >&5 | ||
20480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20481 | (exit $ac_status); } && { | ||
20482 | test -z "$ac_c_werror_flag" || | ||
20483 | test ! -s conftest.err | ||
20484 | } && test -s conftest.$ac_objext; then | ||
20485 | ac_cv_type_long_int=yes | ||
20486 | else | ||
20487 | echo "$as_me: failed program was:" >&5 | ||
20488 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20489 | |||
20490 | ac_cv_type_long_int=no | ||
20491 | fi | ||
20492 | |||
20493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20494 | fi | ||
20495 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5 | ||
20496 | echo "${ECHO_T}$ac_cv_type_long_int" >&6; } | ||
20497 | |||
20498 | # The cast to long int works around a bug in the HP C Compiler | ||
20499 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
20500 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
20501 | # This bug is HP SR number 8606223364. | ||
20502 | { echo "$as_me:$LINENO: checking size of long int" >&5 | ||
20503 | echo $ECHO_N "checking size of long int... $ECHO_C" >&6; } | ||
20504 | if test "${ac_cv_sizeof_long_int+set}" = set; then | ||
20505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20506 | else | ||
20507 | if test "$cross_compiling" = yes; then | ||
20508 | # Depending upon the size, compute the lo and hi bounds. | ||
20509 | cat >conftest.$ac_ext <<_ACEOF | ||
20510 | /* confdefs.h. */ | ||
20511 | _ACEOF | ||
20512 | cat confdefs.h >>conftest.$ac_ext | ||
20513 | cat >>conftest.$ac_ext <<_ACEOF | ||
20514 | /* end confdefs.h. */ | ||
20515 | $ac_includes_default | ||
20516 | typedef long int ac__type_sizeof_; | ||
20517 | int | ||
20518 | main () | ||
20519 | { | ||
20520 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
20521 | test_array [0] = 0 | ||
20522 | |||
20523 | ; | ||
20524 | return 0; | ||
20525 | } | ||
20526 | _ACEOF | ||
20527 | rm -f conftest.$ac_objext | ||
20528 | if { (ac_try="$ac_compile" | ||
20529 | case "(($ac_try" in | ||
20530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20531 | *) ac_try_echo=$ac_try;; | ||
20532 | esac | ||
20533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20534 | (eval "$ac_compile") 2>conftest.er1 | ||
20535 | ac_status=$? | ||
20536 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20537 | rm -f conftest.er1 | ||
20538 | cat conftest.err >&5 | ||
20539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20540 | (exit $ac_status); } && { | ||
20541 | test -z "$ac_c_werror_flag" || | ||
20542 | test ! -s conftest.err | ||
20543 | } && test -s conftest.$ac_objext; then | ||
20544 | ac_lo=0 ac_mid=0 | ||
20545 | while :; do | ||
20546 | cat >conftest.$ac_ext <<_ACEOF | ||
20547 | /* confdefs.h. */ | ||
20548 | _ACEOF | ||
20549 | cat confdefs.h >>conftest.$ac_ext | ||
20550 | cat >>conftest.$ac_ext <<_ACEOF | ||
20551 | /* end confdefs.h. */ | ||
20552 | $ac_includes_default | ||
20553 | typedef long int ac__type_sizeof_; | ||
20554 | int | ||
20555 | main () | ||
20556 | { | ||
20557 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
20558 | test_array [0] = 0 | ||
20559 | |||
20560 | ; | ||
20561 | return 0; | ||
20562 | } | ||
20563 | _ACEOF | ||
20564 | rm -f conftest.$ac_objext | ||
20565 | if { (ac_try="$ac_compile" | ||
20566 | case "(($ac_try" in | ||
20567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20568 | *) ac_try_echo=$ac_try;; | ||
20569 | esac | ||
20570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20571 | (eval "$ac_compile") 2>conftest.er1 | ||
20572 | ac_status=$? | ||
20573 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20574 | rm -f conftest.er1 | ||
20575 | cat conftest.err >&5 | ||
20576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20577 | (exit $ac_status); } && { | ||
20578 | test -z "$ac_c_werror_flag" || | ||
20579 | test ! -s conftest.err | ||
20580 | } && test -s conftest.$ac_objext; then | ||
20581 | ac_hi=$ac_mid; break | ||
20582 | else | ||
20583 | echo "$as_me: failed program was:" >&5 | ||
20584 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20585 | |||
20586 | ac_lo=`expr $ac_mid + 1` | ||
20587 | if test $ac_lo -le $ac_mid; then | ||
20588 | ac_lo= ac_hi= | ||
20589 | break | ||
20590 | fi | ||
20591 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
20592 | fi | ||
20593 | |||
20594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20595 | done | ||
20596 | else | ||
20597 | echo "$as_me: failed program was:" >&5 | ||
20598 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20599 | |||
20600 | cat >conftest.$ac_ext <<_ACEOF | ||
20601 | /* confdefs.h. */ | ||
20602 | _ACEOF | ||
20603 | cat confdefs.h >>conftest.$ac_ext | ||
20604 | cat >>conftest.$ac_ext <<_ACEOF | ||
20605 | /* end confdefs.h. */ | ||
20606 | $ac_includes_default | ||
20607 | typedef long int ac__type_sizeof_; | ||
20608 | int | ||
20609 | main () | ||
20610 | { | ||
20611 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
20612 | test_array [0] = 0 | ||
20613 | |||
20614 | ; | ||
20615 | return 0; | ||
20616 | } | ||
20617 | _ACEOF | ||
20618 | rm -f conftest.$ac_objext | ||
20619 | if { (ac_try="$ac_compile" | ||
20620 | case "(($ac_try" in | ||
20621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20622 | *) ac_try_echo=$ac_try;; | ||
20623 | esac | ||
20624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20625 | (eval "$ac_compile") 2>conftest.er1 | ||
20626 | ac_status=$? | ||
20627 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20628 | rm -f conftest.er1 | ||
20629 | cat conftest.err >&5 | ||
20630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20631 | (exit $ac_status); } && { | ||
20632 | test -z "$ac_c_werror_flag" || | ||
20633 | test ! -s conftest.err | ||
20634 | } && test -s conftest.$ac_objext; then | ||
20635 | ac_hi=-1 ac_mid=-1 | ||
20636 | while :; do | ||
20637 | cat >conftest.$ac_ext <<_ACEOF | ||
20638 | /* confdefs.h. */ | ||
20639 | _ACEOF | ||
20640 | cat confdefs.h >>conftest.$ac_ext | ||
20641 | cat >>conftest.$ac_ext <<_ACEOF | ||
20642 | /* end confdefs.h. */ | ||
20643 | $ac_includes_default | ||
20644 | typedef long int ac__type_sizeof_; | ||
20645 | int | ||
20646 | main () | ||
20647 | { | ||
20648 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
20649 | test_array [0] = 0 | ||
20650 | |||
20651 | ; | ||
20652 | return 0; | ||
20653 | } | ||
20654 | _ACEOF | ||
20655 | rm -f conftest.$ac_objext | ||
20656 | if { (ac_try="$ac_compile" | ||
20657 | case "(($ac_try" in | ||
20658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20659 | *) ac_try_echo=$ac_try;; | ||
20660 | esac | ||
20661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20662 | (eval "$ac_compile") 2>conftest.er1 | ||
20663 | ac_status=$? | ||
20664 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20665 | rm -f conftest.er1 | ||
20666 | cat conftest.err >&5 | ||
20667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20668 | (exit $ac_status); } && { | ||
20669 | test -z "$ac_c_werror_flag" || | ||
20670 | test ! -s conftest.err | ||
20671 | } && test -s conftest.$ac_objext; then | ||
20672 | ac_lo=$ac_mid; break | ||
20673 | else | ||
20674 | echo "$as_me: failed program was:" >&5 | ||
20675 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20676 | |||
20677 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
20678 | if test $ac_mid -le $ac_hi; then | ||
20679 | ac_lo= ac_hi= | ||
20680 | break | ||
20681 | fi | ||
20682 | ac_mid=`expr 2 '*' $ac_mid` | ||
20683 | fi | ||
20684 | |||
20685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20686 | done | ||
20687 | else | ||
20688 | echo "$as_me: failed program was:" >&5 | ||
20689 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20690 | |||
20691 | ac_lo= ac_hi= | ||
20692 | fi | ||
20693 | |||
20694 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20695 | fi | ||
20696 | |||
20697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20698 | # Binary search between lo and hi bounds. | ||
20699 | while test "x$ac_lo" != "x$ac_hi"; do | ||
20700 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
20701 | cat >conftest.$ac_ext <<_ACEOF | ||
20702 | /* confdefs.h. */ | ||
20703 | _ACEOF | ||
20704 | cat confdefs.h >>conftest.$ac_ext | ||
20705 | cat >>conftest.$ac_ext <<_ACEOF | ||
20706 | /* end confdefs.h. */ | ||
20707 | $ac_includes_default | ||
20708 | typedef long int ac__type_sizeof_; | ||
20709 | int | ||
20710 | main () | ||
20711 | { | ||
20712 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
20713 | test_array [0] = 0 | ||
20714 | |||
20715 | ; | ||
20716 | return 0; | ||
20717 | } | ||
20718 | _ACEOF | ||
20719 | rm -f conftest.$ac_objext | ||
20720 | if { (ac_try="$ac_compile" | ||
20721 | case "(($ac_try" in | ||
20722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20723 | *) ac_try_echo=$ac_try;; | ||
20724 | esac | ||
20725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20726 | (eval "$ac_compile") 2>conftest.er1 | ||
20727 | ac_status=$? | ||
20728 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20729 | rm -f conftest.er1 | ||
20730 | cat conftest.err >&5 | ||
20731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20732 | (exit $ac_status); } && { | ||
20733 | test -z "$ac_c_werror_flag" || | ||
20734 | test ! -s conftest.err | ||
20735 | } && test -s conftest.$ac_objext; then | ||
20736 | ac_hi=$ac_mid | ||
20737 | else | ||
20738 | echo "$as_me: failed program was:" >&5 | ||
20739 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20740 | |||
20741 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
20742 | fi | ||
20743 | |||
20744 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20745 | done | ||
20746 | case $ac_lo in | ||
20747 | ?*) ac_cv_sizeof_long_int=$ac_lo;; | ||
20748 | '') if test "$ac_cv_type_long_int" = yes; then | ||
20749 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) | ||
20750 | See \`config.log' for more details." >&5 | ||
20751 | echo "$as_me: error: cannot compute sizeof (long int) | ||
20752 | See \`config.log' for more details." >&2;} | ||
20753 | { (exit 77); exit 77; }; } | ||
20754 | else | ||
20755 | ac_cv_sizeof_long_int=0 | ||
20756 | fi ;; | ||
20757 | esac | ||
20758 | else | ||
20759 | cat >conftest.$ac_ext <<_ACEOF | ||
20760 | /* confdefs.h. */ | ||
20761 | _ACEOF | ||
20762 | cat confdefs.h >>conftest.$ac_ext | ||
20763 | cat >>conftest.$ac_ext <<_ACEOF | ||
20764 | /* end confdefs.h. */ | ||
20765 | $ac_includes_default | ||
20766 | typedef long int ac__type_sizeof_; | ||
20767 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
20768 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
20769 | #include <stdio.h> | ||
20770 | #include <stdlib.h> | ||
20771 | int | ||
20772 | main () | ||
20773 | { | ||
20774 | |||
20775 | FILE *f = fopen ("conftest.val", "w"); | ||
20776 | if (! f) | ||
20777 | return 1; | ||
20778 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
20779 | { | ||
20780 | long int i = longval (); | ||
20781 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
20782 | return 1; | ||
20783 | fprintf (f, "%ld\n", i); | ||
20784 | } | ||
20785 | else | ||
20786 | { | ||
20787 | unsigned long int i = ulongval (); | ||
20788 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
20789 | return 1; | ||
20790 | fprintf (f, "%lu\n", i); | ||
20791 | } | ||
20792 | return ferror (f) || fclose (f) != 0; | ||
20793 | |||
20794 | ; | ||
20795 | return 0; | ||
20796 | } | ||
20797 | _ACEOF | ||
20798 | rm -f conftest$ac_exeext | ||
20799 | if { (ac_try="$ac_link" | ||
20800 | case "(($ac_try" in | ||
20801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20802 | *) ac_try_echo=$ac_try;; | ||
20803 | esac | ||
20804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20805 | (eval "$ac_link") 2>&5 | ||
20806 | ac_status=$? | ||
20807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20808 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20809 | { (case "(($ac_try" in | ||
20810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20811 | *) ac_try_echo=$ac_try;; | ||
20812 | esac | ||
20813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20814 | (eval "$ac_try") 2>&5 | ||
20815 | ac_status=$? | ||
20816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20817 | (exit $ac_status); }; }; then | ||
20818 | ac_cv_sizeof_long_int=`cat conftest.val` | ||
20819 | else | ||
20820 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20821 | echo "$as_me: failed program was:" >&5 | ||
20822 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20823 | |||
20824 | ( exit $ac_status ) | ||
20825 | if test "$ac_cv_type_long_int" = yes; then | ||
20826 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) | ||
20827 | See \`config.log' for more details." >&5 | ||
20828 | echo "$as_me: error: cannot compute sizeof (long int) | ||
20829 | See \`config.log' for more details." >&2;} | ||
20830 | { (exit 77); exit 77; }; } | ||
20831 | else | ||
20832 | ac_cv_sizeof_long_int=0 | ||
20833 | fi | ||
20834 | fi | ||
20835 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20836 | fi | ||
20837 | rm -f conftest.val | ||
20838 | fi | ||
20839 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5 | ||
20840 | echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; } | ||
20841 | |||
20842 | |||
20843 | |||
20844 | cat >>confdefs.h <<_ACEOF | ||
20845 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
20846 | _ACEOF | ||
20847 | |||
20848 | |||
20849 | { echo "$as_me:$LINENO: checking for long long int" >&5 | ||
20850 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6; } | ||
20851 | if test "${ac_cv_type_long_long_int+set}" = set; then | ||
20852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20853 | else | ||
20854 | cat >conftest.$ac_ext <<_ACEOF | ||
20855 | /* confdefs.h. */ | ||
20856 | _ACEOF | ||
20857 | cat confdefs.h >>conftest.$ac_ext | ||
20858 | cat >>conftest.$ac_ext <<_ACEOF | ||
20859 | /* end confdefs.h. */ | ||
20860 | $ac_includes_default | ||
20861 | typedef long long int ac__type_new_; | ||
20862 | int | ||
20863 | main () | ||
20864 | { | ||
20865 | if ((ac__type_new_ *) 0) | ||
20866 | return 0; | ||
20867 | if (sizeof (ac__type_new_)) | ||
20868 | return 0; | ||
20869 | ; | ||
20870 | return 0; | ||
20871 | } | ||
20872 | _ACEOF | ||
20873 | rm -f conftest.$ac_objext | ||
20874 | if { (ac_try="$ac_compile" | ||
20875 | case "(($ac_try" in | ||
20876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20877 | *) ac_try_echo=$ac_try;; | ||
20878 | esac | ||
20879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20880 | (eval "$ac_compile") 2>conftest.er1 | ||
20881 | ac_status=$? | ||
20882 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20883 | rm -f conftest.er1 | ||
20884 | cat conftest.err >&5 | ||
20885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20886 | (exit $ac_status); } && { | ||
20887 | test -z "$ac_c_werror_flag" || | ||
20888 | test ! -s conftest.err | ||
20889 | } && test -s conftest.$ac_objext; then | ||
20890 | ac_cv_type_long_long_int=yes | ||
20891 | else | ||
20892 | echo "$as_me: failed program was:" >&5 | ||
20893 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20894 | |||
20895 | ac_cv_type_long_long_int=no | ||
20896 | fi | ||
20897 | |||
20898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20899 | fi | ||
20900 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 | ||
20901 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; } | ||
20902 | |||
20903 | # The cast to long int works around a bug in the HP C Compiler | ||
20904 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
20905 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
20906 | # This bug is HP SR number 8606223364. | ||
20907 | { echo "$as_me:$LINENO: checking size of long long int" >&5 | ||
20908 | echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; } | ||
20909 | if test "${ac_cv_sizeof_long_long_int+set}" = set; then | ||
20910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20911 | else | ||
20912 | if test "$cross_compiling" = yes; then | ||
20913 | # Depending upon the size, compute the lo and hi bounds. | ||
20914 | cat >conftest.$ac_ext <<_ACEOF | ||
20915 | /* confdefs.h. */ | ||
20916 | _ACEOF | ||
20917 | cat confdefs.h >>conftest.$ac_ext | ||
20918 | cat >>conftest.$ac_ext <<_ACEOF | ||
20919 | /* end confdefs.h. */ | ||
20920 | $ac_includes_default | ||
20921 | typedef long long int ac__type_sizeof_; | ||
20922 | int | ||
20923 | main () | ||
20924 | { | ||
20925 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
20926 | test_array [0] = 0 | ||
20927 | |||
20928 | ; | ||
20929 | return 0; | ||
20930 | } | ||
20931 | _ACEOF | ||
20932 | rm -f conftest.$ac_objext | ||
20933 | if { (ac_try="$ac_compile" | ||
20934 | case "(($ac_try" in | ||
20935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20936 | *) ac_try_echo=$ac_try;; | ||
20937 | esac | ||
20938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20939 | (eval "$ac_compile") 2>conftest.er1 | ||
20940 | ac_status=$? | ||
20941 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20942 | rm -f conftest.er1 | ||
20943 | cat conftest.err >&5 | ||
20944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20945 | (exit $ac_status); } && { | ||
20946 | test -z "$ac_c_werror_flag" || | ||
20947 | test ! -s conftest.err | ||
20948 | } && test -s conftest.$ac_objext; then | ||
20949 | ac_lo=0 ac_mid=0 | ||
20950 | while :; do | ||
20951 | cat >conftest.$ac_ext <<_ACEOF | ||
20952 | /* confdefs.h. */ | ||
20953 | _ACEOF | ||
20954 | cat confdefs.h >>conftest.$ac_ext | ||
20955 | cat >>conftest.$ac_ext <<_ACEOF | ||
20956 | /* end confdefs.h. */ | ||
20957 | $ac_includes_default | ||
20958 | typedef long long int ac__type_sizeof_; | ||
20959 | int | ||
20960 | main () | ||
20961 | { | ||
20962 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
20963 | test_array [0] = 0 | ||
20964 | |||
20965 | ; | ||
20966 | return 0; | ||
20967 | } | ||
20968 | _ACEOF | ||
20969 | rm -f conftest.$ac_objext | ||
20970 | if { (ac_try="$ac_compile" | ||
20971 | case "(($ac_try" in | ||
20972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20973 | *) ac_try_echo=$ac_try;; | ||
20974 | esac | ||
20975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20976 | (eval "$ac_compile") 2>conftest.er1 | ||
20977 | ac_status=$? | ||
20978 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20979 | rm -f conftest.er1 | ||
20980 | cat conftest.err >&5 | ||
20981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20982 | (exit $ac_status); } && { | ||
20983 | test -z "$ac_c_werror_flag" || | ||
20984 | test ! -s conftest.err | ||
20985 | } && test -s conftest.$ac_objext; then | ||
20986 | ac_hi=$ac_mid; break | ||
20987 | else | ||
20988 | echo "$as_me: failed program was:" >&5 | ||
20989 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20990 | |||
20991 | ac_lo=`expr $ac_mid + 1` | ||
20992 | if test $ac_lo -le $ac_mid; then | ||
20993 | ac_lo= ac_hi= | ||
20994 | break | ||
20995 | fi | ||
20996 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
20997 | fi | ||
20998 | |||
20999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21000 | done | ||
21001 | else | ||
21002 | echo "$as_me: failed program was:" >&5 | ||
21003 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21004 | |||
21005 | cat >conftest.$ac_ext <<_ACEOF | ||
21006 | /* confdefs.h. */ | ||
21007 | _ACEOF | ||
21008 | cat confdefs.h >>conftest.$ac_ext | ||
21009 | cat >>conftest.$ac_ext <<_ACEOF | ||
21010 | /* end confdefs.h. */ | ||
21011 | $ac_includes_default | ||
21012 | typedef long long int ac__type_sizeof_; | ||
21013 | int | ||
21014 | main () | ||
21015 | { | ||
21016 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
21017 | test_array [0] = 0 | ||
21018 | |||
21019 | ; | ||
21020 | return 0; | ||
21021 | } | ||
21022 | _ACEOF | ||
21023 | rm -f conftest.$ac_objext | ||
21024 | if { (ac_try="$ac_compile" | ||
21025 | case "(($ac_try" in | ||
21026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21027 | *) ac_try_echo=$ac_try;; | ||
21028 | esac | ||
21029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21030 | (eval "$ac_compile") 2>conftest.er1 | ||
21031 | ac_status=$? | ||
21032 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21033 | rm -f conftest.er1 | ||
21034 | cat conftest.err >&5 | ||
21035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21036 | (exit $ac_status); } && { | ||
21037 | test -z "$ac_c_werror_flag" || | ||
21038 | test ! -s conftest.err | ||
21039 | } && test -s conftest.$ac_objext; then | ||
21040 | ac_hi=-1 ac_mid=-1 | ||
21041 | while :; do | ||
21042 | cat >conftest.$ac_ext <<_ACEOF | ||
21043 | /* confdefs.h. */ | ||
21044 | _ACEOF | ||
21045 | cat confdefs.h >>conftest.$ac_ext | ||
21046 | cat >>conftest.$ac_ext <<_ACEOF | ||
21047 | /* end confdefs.h. */ | ||
21048 | $ac_includes_default | ||
21049 | typedef long long int ac__type_sizeof_; | ||
21050 | int | ||
21051 | main () | ||
21052 | { | ||
21053 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
21054 | test_array [0] = 0 | ||
21055 | |||
21056 | ; | ||
21057 | return 0; | ||
21058 | } | ||
21059 | _ACEOF | ||
21060 | rm -f conftest.$ac_objext | ||
21061 | if { (ac_try="$ac_compile" | ||
21062 | case "(($ac_try" in | ||
21063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21064 | *) ac_try_echo=$ac_try;; | ||
21065 | esac | ||
21066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21067 | (eval "$ac_compile") 2>conftest.er1 | ||
21068 | ac_status=$? | ||
21069 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21070 | rm -f conftest.er1 | ||
21071 | cat conftest.err >&5 | ||
21072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21073 | (exit $ac_status); } && { | ||
21074 | test -z "$ac_c_werror_flag" || | ||
21075 | test ! -s conftest.err | ||
21076 | } && test -s conftest.$ac_objext; then | ||
21077 | ac_lo=$ac_mid; break | ||
21078 | else | ||
21079 | echo "$as_me: failed program was:" >&5 | ||
21080 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21081 | |||
21082 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
21083 | if test $ac_mid -le $ac_hi; then | ||
21084 | ac_lo= ac_hi= | ||
21085 | break | ||
21086 | fi | ||
21087 | ac_mid=`expr 2 '*' $ac_mid` | ||
21088 | fi | ||
21089 | |||
21090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21091 | done | ||
21092 | else | ||
21093 | echo "$as_me: failed program was:" >&5 | ||
21094 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21095 | |||
21096 | ac_lo= ac_hi= | ||
21097 | fi | ||
21098 | |||
21099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21100 | fi | ||
21101 | |||
21102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21103 | # Binary search between lo and hi bounds. | ||
21104 | while test "x$ac_lo" != "x$ac_hi"; do | ||
21105 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
21106 | cat >conftest.$ac_ext <<_ACEOF | ||
21107 | /* confdefs.h. */ | ||
21108 | _ACEOF | ||
21109 | cat confdefs.h >>conftest.$ac_ext | ||
21110 | cat >>conftest.$ac_ext <<_ACEOF | ||
21111 | /* end confdefs.h. */ | ||
21112 | $ac_includes_default | ||
21113 | typedef long long int ac__type_sizeof_; | ||
21114 | int | ||
21115 | main () | ||
21116 | { | ||
21117 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
21118 | test_array [0] = 0 | ||
21119 | |||
21120 | ; | ||
21121 | return 0; | ||
21122 | } | ||
21123 | _ACEOF | ||
21124 | rm -f conftest.$ac_objext | ||
21125 | if { (ac_try="$ac_compile" | ||
21126 | case "(($ac_try" in | ||
21127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21128 | *) ac_try_echo=$ac_try;; | ||
21129 | esac | ||
21130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21131 | (eval "$ac_compile") 2>conftest.er1 | ||
21132 | ac_status=$? | ||
21133 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21134 | rm -f conftest.er1 | ||
21135 | cat conftest.err >&5 | ||
21136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21137 | (exit $ac_status); } && { | ||
21138 | test -z "$ac_c_werror_flag" || | ||
21139 | test ! -s conftest.err | ||
21140 | } && test -s conftest.$ac_objext; then | ||
21141 | ac_hi=$ac_mid | ||
21142 | else | ||
21143 | echo "$as_me: failed program was:" >&5 | ||
21144 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21145 | |||
21146 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
21147 | fi | ||
21148 | |||
21149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21150 | done | ||
21151 | case $ac_lo in | ||
21152 | ?*) ac_cv_sizeof_long_long_int=$ac_lo;; | ||
21153 | '') if test "$ac_cv_type_long_long_int" = yes; then | ||
21154 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int) | ||
21155 | See \`config.log' for more details." >&5 | ||
21156 | echo "$as_me: error: cannot compute sizeof (long long int) | ||
21157 | See \`config.log' for more details." >&2;} | ||
21158 | { (exit 77); exit 77; }; } | ||
21159 | else | ||
21160 | ac_cv_sizeof_long_long_int=0 | ||
21161 | fi ;; | ||
21162 | esac | ||
21163 | else | ||
21164 | cat >conftest.$ac_ext <<_ACEOF | ||
21165 | /* confdefs.h. */ | ||
21166 | _ACEOF | ||
21167 | cat confdefs.h >>conftest.$ac_ext | ||
21168 | cat >>conftest.$ac_ext <<_ACEOF | ||
21169 | /* end confdefs.h. */ | ||
21170 | $ac_includes_default | ||
21171 | typedef long long int ac__type_sizeof_; | ||
21172 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
21173 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
21174 | #include <stdio.h> | ||
21175 | #include <stdlib.h> | ||
21176 | int | ||
21177 | main () | ||
21178 | { | ||
21179 | |||
21180 | FILE *f = fopen ("conftest.val", "w"); | ||
21181 | if (! f) | ||
21182 | return 1; | ||
21183 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
21184 | { | ||
21185 | long int i = longval (); | ||
21186 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
21187 | return 1; | ||
21188 | fprintf (f, "%ld\n", i); | ||
21189 | } | ||
21190 | else | ||
21191 | { | ||
21192 | unsigned long int i = ulongval (); | ||
21193 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
21194 | return 1; | ||
21195 | fprintf (f, "%lu\n", i); | ||
21196 | } | ||
21197 | return ferror (f) || fclose (f) != 0; | ||
21198 | |||
21199 | ; | ||
21200 | return 0; | ||
21201 | } | ||
21202 | _ACEOF | ||
21203 | rm -f conftest$ac_exeext | ||
21204 | if { (ac_try="$ac_link" | ||
21205 | case "(($ac_try" in | ||
21206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21207 | *) ac_try_echo=$ac_try;; | ||
21208 | esac | ||
21209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21210 | (eval "$ac_link") 2>&5 | ||
21211 | ac_status=$? | ||
21212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21213 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
21214 | { (case "(($ac_try" in | ||
21215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21216 | *) ac_try_echo=$ac_try;; | ||
21217 | esac | ||
21218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21219 | (eval "$ac_try") 2>&5 | ||
21220 | ac_status=$? | ||
21221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21222 | (exit $ac_status); }; }; then | ||
21223 | ac_cv_sizeof_long_long_int=`cat conftest.val` | ||
21224 | else | ||
21225 | echo "$as_me: program exited with status $ac_status" >&5 | ||
21226 | echo "$as_me: failed program was:" >&5 | ||
21227 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21228 | |||
21229 | ( exit $ac_status ) | ||
21230 | if test "$ac_cv_type_long_long_int" = yes; then | ||
21231 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int) | ||
21232 | See \`config.log' for more details." >&5 | ||
21233 | echo "$as_me: error: cannot compute sizeof (long long int) | ||
21234 | See \`config.log' for more details." >&2;} | ||
21235 | { (exit 77); exit 77; }; } | ||
21236 | else | ||
21237 | ac_cv_sizeof_long_long_int=0 | ||
21238 | fi | ||
21239 | fi | ||
21240 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
21241 | fi | ||
21242 | rm -f conftest.val | ||
21243 | fi | ||
21244 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5 | ||
21245 | echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; } | ||
21246 | |||
21247 | |||
21248 | |||
21249 | cat >>confdefs.h <<_ACEOF | ||
21250 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
21251 | _ACEOF | ||
21252 | |||
21253 | |||
21254 | |||
21255 | # Sanity check long long for some platforms (AIX) | ||
21256 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
21257 | ac_cv_sizeof_long_long_int=0 | ||
21258 | fi | ||
21259 | |||
21260 | # compute LLONG_MIN and LLONG_MAX if we don't know them. | ||
21261 | if test -z "$have_llong_max"; then | ||
21262 | { echo "$as_me:$LINENO: checking for max value of long long" >&5 | ||
21263 | echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; } | ||
21264 | if test "$cross_compiling" = yes; then | ||
21265 | |||
21266 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
21267 | echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
21268 | |||
21269 | |||
21270 | else | ||
21271 | cat >conftest.$ac_ext <<_ACEOF | ||
21272 | /* confdefs.h. */ | ||
21273 | _ACEOF | ||
21274 | cat confdefs.h >>conftest.$ac_ext | ||
21275 | cat >>conftest.$ac_ext <<_ACEOF | ||
21276 | /* end confdefs.h. */ | ||
21277 | |||
21278 | #include <stdio.h> | ||
21279 | /* Why is this so damn hard? */ | ||
21280 | #ifdef __GNUC__ | ||
21281 | # undef __GNUC__ | ||
21282 | #endif | ||
21283 | #define __USE_ISOC99 | ||
21284 | #include <limits.h> | ||
21285 | #define DATA "conftest.llminmax" | ||
21286 | #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a)) | ||
21287 | |||
21288 | /* | ||
21289 | * printf in libc on some platforms (eg old Tru64) does not understand %lld so | ||
21290 | * we do this the hard way. | ||
21291 | */ | ||
21292 | static int | ||
21293 | fprint_ll(FILE *f, long long n) | ||
21294 | { | ||
21295 | unsigned int i; | ||
21296 | int l[sizeof(long long) * 8]; | ||
21297 | |||
21298 | if (n < 0) | ||
21299 | if (fprintf(f, "-") < 0) | ||
21300 | return -1; | ||
21301 | for (i = 0; n != 0; i++) { | ||
21302 | l[i] = my_abs(n % 10); | ||
21303 | n /= 10; | ||
21304 | } | ||
21305 | do { | ||
21306 | if (fprintf(f, "%d", l[--i]) < 0) | ||
21307 | return -1; | ||
21308 | } while (i != 0); | ||
21309 | if (fprintf(f, " ") < 0) | ||
21310 | return -1; | ||
21311 | return 0; | ||
21312 | } | ||
21313 | |||
21314 | int main(void) { | ||
21315 | FILE *f; | ||
21316 | long long i, llmin, llmax = 0; | ||
21317 | |||
21318 | if((f = fopen(DATA,"w")) == NULL) | ||
21319 | exit(1); | ||
21320 | |||
21321 | #if defined(LLONG_MIN) && defined(LLONG_MAX) | ||
21322 | fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n"); | ||
21323 | llmin = LLONG_MIN; | ||
21324 | llmax = LLONG_MAX; | ||
21325 | #else | ||
21326 | fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n"); | ||
21327 | /* This will work on one's complement and two's complement */ | ||
21328 | for (i = 1; i > llmax; i <<= 1, i++) | ||
21329 | llmax = i; | ||
21330 | llmin = llmax + 1LL; /* wrap */ | ||
21331 | #endif | ||
21332 | |||
21333 | /* Sanity check */ | ||
21334 | if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax | ||
21335 | || llmax - 1 > llmax || llmin == llmax || llmin == 0 | ||
21336 | || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) { | ||
21337 | fprintf(f, "unknown unknown\n"); | ||
21338 | exit(2); | ||
21339 | } | ||
21340 | |||
21341 | if (fprint_ll(f, llmin) < 0) | ||
21342 | exit(3); | ||
21343 | if (fprint_ll(f, llmax) < 0) | ||
21344 | exit(4); | ||
21345 | if (fclose(f) < 0) | ||
21346 | exit(5); | ||
21347 | exit(0); | ||
21348 | } | ||
21349 | |||
21350 | _ACEOF | ||
21351 | rm -f conftest$ac_exeext | ||
21352 | if { (ac_try="$ac_link" | ||
21353 | case "(($ac_try" in | ||
21354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21355 | *) ac_try_echo=$ac_try;; | ||
21356 | esac | ||
21357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21358 | (eval "$ac_link") 2>&5 | ||
21359 | ac_status=$? | ||
21360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21361 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
21362 | { (case "(($ac_try" in | ||
21363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21364 | *) ac_try_echo=$ac_try;; | ||
21365 | esac | ||
21366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21367 | (eval "$ac_try") 2>&5 | ||
21368 | ac_status=$? | ||
21369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21370 | (exit $ac_status); }; }; then | ||
21371 | |||
21372 | llong_min=`$AWK '{print $1}' conftest.llminmax` | ||
21373 | llong_max=`$AWK '{print $2}' conftest.llminmax` | ||
21374 | |||
21375 | { echo "$as_me:$LINENO: result: $llong_max" >&5 | ||
21376 | echo "${ECHO_T}$llong_max" >&6; } | ||
21377 | |||
21378 | cat >>confdefs.h <<_ACEOF | ||
21379 | #define LLONG_MAX ${llong_max}LL | ||
21380 | _ACEOF | ||
21381 | |||
21382 | { echo "$as_me:$LINENO: checking for min value of long long" >&5 | ||
21383 | echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; } | ||
21384 | { echo "$as_me:$LINENO: result: $llong_min" >&5 | ||
21385 | echo "${ECHO_T}$llong_min" >&6; } | ||
21386 | |||
21387 | cat >>confdefs.h <<_ACEOF | ||
21388 | #define LLONG_MIN ${llong_min}LL | ||
21389 | _ACEOF | ||
21390 | |||
21391 | |||
21392 | else | ||
21393 | echo "$as_me: program exited with status $ac_status" >&5 | ||
21394 | echo "$as_me: failed program was:" >&5 | ||
21395 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21396 | |||
21397 | ( exit $ac_status ) | ||
21398 | |||
21399 | { echo "$as_me:$LINENO: result: not found" >&5 | ||
21400 | echo "${ECHO_T}not found" >&6; } | ||
21401 | |||
21402 | fi | ||
21403 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
21404 | fi | ||
21405 | |||
21406 | |||
21407 | fi | ||
21408 | |||
21409 | |||
21410 | # More checks for data types | ||
21411 | { echo "$as_me:$LINENO: checking for u_int type" >&5 | ||
21412 | echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; } | ||
21413 | if test "${ac_cv_have_u_int+set}" = set; then | ||
21414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21415 | else | ||
21416 | |||
21417 | cat >conftest.$ac_ext <<_ACEOF | ||
21418 | /* confdefs.h. */ | ||
21419 | _ACEOF | ||
21420 | cat confdefs.h >>conftest.$ac_ext | ||
21421 | cat >>conftest.$ac_ext <<_ACEOF | ||
21422 | /* end confdefs.h. */ | ||
21423 | #include <sys/types.h> | ||
21424 | int | ||
21425 | main () | ||
21426 | { | ||
21427 | u_int a; a = 1; | ||
21428 | ; | ||
21429 | return 0; | ||
21430 | } | ||
21431 | _ACEOF | ||
21432 | rm -f conftest.$ac_objext | ||
21433 | if { (ac_try="$ac_compile" | ||
21434 | case "(($ac_try" in | ||
21435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21436 | *) ac_try_echo=$ac_try;; | ||
21437 | esac | ||
21438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21439 | (eval "$ac_compile") 2>conftest.er1 | ||
21440 | ac_status=$? | ||
21441 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21442 | rm -f conftest.er1 | ||
21443 | cat conftest.err >&5 | ||
21444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21445 | (exit $ac_status); } && { | ||
21446 | test -z "$ac_c_werror_flag" || | ||
21447 | test ! -s conftest.err | ||
21448 | } && test -s conftest.$ac_objext; then | ||
21449 | ac_cv_have_u_int="yes" | ||
21450 | else | ||
21451 | echo "$as_me: failed program was:" >&5 | ||
21452 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21453 | |||
21454 | ac_cv_have_u_int="no" | ||
21455 | |||
21456 | fi | ||
21457 | |||
21458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21459 | |||
21460 | fi | ||
21461 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5 | ||
21462 | echo "${ECHO_T}$ac_cv_have_u_int" >&6; } | ||
21463 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
21464 | |||
21465 | cat >>confdefs.h <<\_ACEOF | ||
21466 | #define HAVE_U_INT 1 | ||
21467 | _ACEOF | ||
21468 | |||
21469 | have_u_int=1 | ||
21470 | fi | ||
21471 | |||
21472 | { echo "$as_me:$LINENO: checking for intXX_t types" >&5 | ||
21473 | echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; } | ||
21474 | if test "${ac_cv_have_intxx_t+set}" = set; then | ||
21475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21476 | else | ||
21477 | |||
21478 | cat >conftest.$ac_ext <<_ACEOF | ||
21479 | /* confdefs.h. */ | ||
21480 | _ACEOF | ||
21481 | cat confdefs.h >>conftest.$ac_ext | ||
21482 | cat >>conftest.$ac_ext <<_ACEOF | ||
21483 | /* end confdefs.h. */ | ||
21484 | #include <sys/types.h> | ||
21485 | int | ||
21486 | main () | ||
21487 | { | ||
21488 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
21489 | ; | ||
21490 | return 0; | ||
21491 | } | ||
21492 | _ACEOF | ||
21493 | rm -f conftest.$ac_objext | ||
21494 | if { (ac_try="$ac_compile" | ||
21495 | case "(($ac_try" in | ||
21496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21497 | *) ac_try_echo=$ac_try;; | ||
21498 | esac | ||
21499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21500 | (eval "$ac_compile") 2>conftest.er1 | ||
21501 | ac_status=$? | ||
21502 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21503 | rm -f conftest.er1 | ||
21504 | cat conftest.err >&5 | ||
21505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21506 | (exit $ac_status); } && { | ||
21507 | test -z "$ac_c_werror_flag" || | ||
21508 | test ! -s conftest.err | ||
21509 | } && test -s conftest.$ac_objext; then | ||
21510 | ac_cv_have_intxx_t="yes" | ||
21511 | else | ||
21512 | echo "$as_me: failed program was:" >&5 | ||
21513 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21514 | |||
21515 | ac_cv_have_intxx_t="no" | ||
21516 | |||
21517 | fi | ||
21518 | |||
21519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21520 | |||
21521 | fi | ||
21522 | { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5 | ||
21523 | echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; } | ||
21524 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
21525 | |||
21526 | cat >>confdefs.h <<\_ACEOF | ||
21527 | #define HAVE_INTXX_T 1 | ||
21528 | _ACEOF | ||
21529 | |||
21530 | have_intxx_t=1 | ||
21531 | fi | ||
21532 | |||
21533 | if (test -z "$have_intxx_t" && \ | ||
21534 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
21535 | then | ||
21536 | { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5 | ||
21537 | echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; } | ||
21538 | cat >conftest.$ac_ext <<_ACEOF | ||
21539 | /* confdefs.h. */ | ||
21540 | _ACEOF | ||
21541 | cat confdefs.h >>conftest.$ac_ext | ||
21542 | cat >>conftest.$ac_ext <<_ACEOF | ||
21543 | /* end confdefs.h. */ | ||
21544 | #include <stdint.h> | ||
21545 | int | ||
21546 | main () | ||
21547 | { | ||
21548 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
21549 | ; | ||
21550 | return 0; | ||
21551 | } | ||
21552 | _ACEOF | ||
21553 | rm -f conftest.$ac_objext | ||
21554 | if { (ac_try="$ac_compile" | ||
21555 | case "(($ac_try" in | ||
21556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21557 | *) ac_try_echo=$ac_try;; | ||
21558 | esac | ||
21559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21560 | (eval "$ac_compile") 2>conftest.er1 | ||
21561 | ac_status=$? | ||
21562 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21563 | rm -f conftest.er1 | ||
21564 | cat conftest.err >&5 | ||
21565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21566 | (exit $ac_status); } && { | ||
21567 | test -z "$ac_c_werror_flag" || | ||
21568 | test ! -s conftest.err | ||
21569 | } && test -s conftest.$ac_objext; then | ||
21570 | |||
21571 | cat >>confdefs.h <<\_ACEOF | ||
21572 | #define HAVE_INTXX_T 1 | ||
21573 | _ACEOF | ||
21574 | |||
21575 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21576 | echo "${ECHO_T}yes" >&6; } | ||
21577 | |||
21578 | else | ||
21579 | echo "$as_me: failed program was:" >&5 | ||
21580 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21581 | |||
21582 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21583 | echo "${ECHO_T}no" >&6; } | ||
21584 | |||
21585 | fi | ||
21586 | |||
21587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21588 | fi | ||
21589 | |||
21590 | { echo "$as_me:$LINENO: checking for int64_t type" >&5 | ||
21591 | echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; } | ||
21592 | if test "${ac_cv_have_int64_t+set}" = set; then | ||
21593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21594 | else | ||
21595 | |||
21596 | cat >conftest.$ac_ext <<_ACEOF | ||
21597 | /* confdefs.h. */ | ||
21598 | _ACEOF | ||
21599 | cat confdefs.h >>conftest.$ac_ext | ||
21600 | cat >>conftest.$ac_ext <<_ACEOF | ||
21601 | /* end confdefs.h. */ | ||
21602 | |||
21603 | #include <sys/types.h> | ||
21604 | #ifdef HAVE_STDINT_H | ||
21605 | # include <stdint.h> | ||
21606 | #endif | ||
21607 | #include <sys/socket.h> | ||
21608 | #ifdef HAVE_SYS_BITYPES_H | ||
21609 | # include <sys/bitypes.h> | ||
21610 | #endif | ||
21611 | |||
21612 | int | ||
21613 | main () | ||
21614 | { | ||
21615 | int64_t a; a = 1; | ||
21616 | ; | ||
21617 | return 0; | ||
21618 | } | ||
21619 | _ACEOF | ||
21620 | rm -f conftest.$ac_objext | ||
21621 | if { (ac_try="$ac_compile" | ||
21622 | case "(($ac_try" in | ||
21623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21624 | *) ac_try_echo=$ac_try;; | ||
21625 | esac | ||
21626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21627 | (eval "$ac_compile") 2>conftest.er1 | ||
21628 | ac_status=$? | ||
21629 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21630 | rm -f conftest.er1 | ||
21631 | cat conftest.err >&5 | ||
21632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21633 | (exit $ac_status); } && { | ||
21634 | test -z "$ac_c_werror_flag" || | ||
21635 | test ! -s conftest.err | ||
21636 | } && test -s conftest.$ac_objext; then | ||
21637 | ac_cv_have_int64_t="yes" | ||
21638 | else | ||
21639 | echo "$as_me: failed program was:" >&5 | ||
21640 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21641 | |||
21642 | ac_cv_have_int64_t="no" | ||
21643 | |||
21644 | fi | ||
21645 | |||
21646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21647 | |||
21648 | fi | ||
21649 | { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5 | ||
21650 | echo "${ECHO_T}$ac_cv_have_int64_t" >&6; } | ||
21651 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
21652 | |||
21653 | cat >>confdefs.h <<\_ACEOF | ||
21654 | #define HAVE_INT64_T 1 | ||
21655 | _ACEOF | ||
21656 | |||
21657 | fi | ||
21658 | |||
21659 | { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5 | ||
21660 | echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; } | ||
21661 | if test "${ac_cv_have_u_intxx_t+set}" = set; then | ||
21662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21663 | else | ||
21664 | |||
21665 | cat >conftest.$ac_ext <<_ACEOF | ||
21666 | /* confdefs.h. */ | ||
21667 | _ACEOF | ||
21668 | cat confdefs.h >>conftest.$ac_ext | ||
21669 | cat >>conftest.$ac_ext <<_ACEOF | ||
21670 | /* end confdefs.h. */ | ||
21671 | #include <sys/types.h> | ||
21672 | int | ||
21673 | main () | ||
21674 | { | ||
21675 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
21676 | ; | ||
21677 | return 0; | ||
21678 | } | ||
21679 | _ACEOF | ||
21680 | rm -f conftest.$ac_objext | ||
21681 | if { (ac_try="$ac_compile" | ||
21682 | case "(($ac_try" in | ||
21683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21684 | *) ac_try_echo=$ac_try;; | ||
21685 | esac | ||
21686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21687 | (eval "$ac_compile") 2>conftest.er1 | ||
21688 | ac_status=$? | ||
21689 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21690 | rm -f conftest.er1 | ||
21691 | cat conftest.err >&5 | ||
21692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21693 | (exit $ac_status); } && { | ||
21694 | test -z "$ac_c_werror_flag" || | ||
21695 | test ! -s conftest.err | ||
21696 | } && test -s conftest.$ac_objext; then | ||
21697 | ac_cv_have_u_intxx_t="yes" | ||
21698 | else | ||
21699 | echo "$as_me: failed program was:" >&5 | ||
21700 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21701 | |||
21702 | ac_cv_have_u_intxx_t="no" | ||
21703 | |||
21704 | fi | ||
21705 | |||
21706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21707 | |||
21708 | fi | ||
21709 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5 | ||
21710 | echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; } | ||
21711 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
21712 | |||
21713 | cat >>confdefs.h <<\_ACEOF | ||
21714 | #define HAVE_U_INTXX_T 1 | ||
21715 | _ACEOF | ||
21716 | |||
21717 | have_u_intxx_t=1 | ||
21718 | fi | ||
21719 | |||
21720 | if test -z "$have_u_intxx_t" ; then | ||
21721 | { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5 | ||
21722 | echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; } | ||
21723 | cat >conftest.$ac_ext <<_ACEOF | ||
21724 | /* confdefs.h. */ | ||
21725 | _ACEOF | ||
21726 | cat confdefs.h >>conftest.$ac_ext | ||
21727 | cat >>conftest.$ac_ext <<_ACEOF | ||
21728 | /* end confdefs.h. */ | ||
21729 | #include <sys/socket.h> | ||
21730 | int | ||
21731 | main () | ||
21732 | { | ||
21733 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
21734 | ; | ||
21735 | return 0; | ||
21736 | } | ||
21737 | _ACEOF | ||
21738 | rm -f conftest.$ac_objext | ||
21739 | if { (ac_try="$ac_compile" | ||
21740 | case "(($ac_try" in | ||
21741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21742 | *) ac_try_echo=$ac_try;; | ||
21743 | esac | ||
21744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21745 | (eval "$ac_compile") 2>conftest.er1 | ||
21746 | ac_status=$? | ||
21747 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21748 | rm -f conftest.er1 | ||
21749 | cat conftest.err >&5 | ||
21750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21751 | (exit $ac_status); } && { | ||
21752 | test -z "$ac_c_werror_flag" || | ||
21753 | test ! -s conftest.err | ||
21754 | } && test -s conftest.$ac_objext; then | ||
21755 | |||
21756 | cat >>confdefs.h <<\_ACEOF | ||
21757 | #define HAVE_U_INTXX_T 1 | ||
21758 | _ACEOF | ||
21759 | |||
21760 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21761 | echo "${ECHO_T}yes" >&6; } | ||
21762 | |||
21763 | else | ||
21764 | echo "$as_me: failed program was:" >&5 | ||
21765 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21766 | |||
21767 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21768 | echo "${ECHO_T}no" >&6; } | ||
21769 | |||
21770 | fi | ||
21771 | |||
21772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21773 | fi | ||
21774 | |||
21775 | { echo "$as_me:$LINENO: checking for u_int64_t types" >&5 | ||
21776 | echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; } | ||
21777 | if test "${ac_cv_have_u_int64_t+set}" = set; then | ||
21778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21779 | else | ||
21780 | |||
21781 | cat >conftest.$ac_ext <<_ACEOF | ||
21782 | /* confdefs.h. */ | ||
21783 | _ACEOF | ||
21784 | cat confdefs.h >>conftest.$ac_ext | ||
21785 | cat >>conftest.$ac_ext <<_ACEOF | ||
21786 | /* end confdefs.h. */ | ||
21787 | #include <sys/types.h> | ||
21788 | int | ||
21789 | main () | ||
21790 | { | ||
21791 | u_int64_t a; a = 1; | ||
21792 | ; | ||
21793 | return 0; | ||
21794 | } | ||
21795 | _ACEOF | ||
21796 | rm -f conftest.$ac_objext | ||
21797 | if { (ac_try="$ac_compile" | ||
21798 | case "(($ac_try" in | ||
21799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21800 | *) ac_try_echo=$ac_try;; | ||
21801 | esac | ||
21802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21803 | (eval "$ac_compile") 2>conftest.er1 | ||
21804 | ac_status=$? | ||
21805 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21806 | rm -f conftest.er1 | ||
21807 | cat conftest.err >&5 | ||
21808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21809 | (exit $ac_status); } && { | ||
21810 | test -z "$ac_c_werror_flag" || | ||
21811 | test ! -s conftest.err | ||
21812 | } && test -s conftest.$ac_objext; then | ||
21813 | ac_cv_have_u_int64_t="yes" | ||
21814 | else | ||
21815 | echo "$as_me: failed program was:" >&5 | ||
21816 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21817 | |||
21818 | ac_cv_have_u_int64_t="no" | ||
21819 | |||
21820 | fi | ||
21821 | |||
21822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21823 | |||
21824 | fi | ||
21825 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5 | ||
21826 | echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; } | ||
21827 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
21828 | |||
21829 | cat >>confdefs.h <<\_ACEOF | ||
21830 | #define HAVE_U_INT64_T 1 | ||
21831 | _ACEOF | ||
21832 | |||
21833 | have_u_int64_t=1 | ||
21834 | fi | ||
21835 | |||
21836 | if test -z "$have_u_int64_t" ; then | ||
21837 | { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
21838 | echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; } | ||
21839 | cat >conftest.$ac_ext <<_ACEOF | ||
21840 | /* confdefs.h. */ | ||
21841 | _ACEOF | ||
21842 | cat confdefs.h >>conftest.$ac_ext | ||
21843 | cat >>conftest.$ac_ext <<_ACEOF | ||
21844 | /* end confdefs.h. */ | ||
21845 | #include <sys/bitypes.h> | ||
21846 | int | ||
21847 | main () | ||
21848 | { | ||
21849 | u_int64_t a; a = 1 | ||
21850 | ; | ||
21851 | return 0; | ||
21852 | } | ||
21853 | _ACEOF | ||
21854 | rm -f conftest.$ac_objext | ||
21855 | if { (ac_try="$ac_compile" | ||
21856 | case "(($ac_try" in | ||
21857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21858 | *) ac_try_echo=$ac_try;; | ||
21859 | esac | ||
21860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21861 | (eval "$ac_compile") 2>conftest.er1 | ||
21862 | ac_status=$? | ||
21863 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21864 | rm -f conftest.er1 | ||
21865 | cat conftest.err >&5 | ||
21866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21867 | (exit $ac_status); } && { | ||
21868 | test -z "$ac_c_werror_flag" || | ||
21869 | test ! -s conftest.err | ||
21870 | } && test -s conftest.$ac_objext; then | ||
21871 | |||
21872 | cat >>confdefs.h <<\_ACEOF | ||
21873 | #define HAVE_U_INT64_T 1 | ||
21874 | _ACEOF | ||
21875 | |||
21876 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21877 | echo "${ECHO_T}yes" >&6; } | ||
21878 | |||
21879 | else | ||
21880 | echo "$as_me: failed program was:" >&5 | ||
21881 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21882 | |||
21883 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21884 | echo "${ECHO_T}no" >&6; } | ||
21885 | |||
21886 | fi | ||
21887 | |||
21888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21889 | fi | ||
21890 | |||
21891 | if test -z "$have_u_intxx_t" ; then | ||
21892 | { echo "$as_me:$LINENO: checking for uintXX_t types" >&5 | ||
21893 | echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; } | ||
21894 | if test "${ac_cv_have_uintxx_t+set}" = set; then | ||
21895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21896 | else | ||
21897 | |||
21898 | cat >conftest.$ac_ext <<_ACEOF | ||
21899 | /* confdefs.h. */ | ||
21900 | _ACEOF | ||
21901 | cat confdefs.h >>conftest.$ac_ext | ||
21902 | cat >>conftest.$ac_ext <<_ACEOF | ||
21903 | /* end confdefs.h. */ | ||
21904 | |||
21905 | #include <sys/types.h> | ||
21906 | |||
21907 | int | ||
21908 | main () | ||
21909 | { | ||
21910 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
21911 | ; | ||
21912 | return 0; | ||
21913 | } | ||
21914 | _ACEOF | ||
21915 | rm -f conftest.$ac_objext | ||
21916 | if { (ac_try="$ac_compile" | ||
21917 | case "(($ac_try" in | ||
21918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21919 | *) ac_try_echo=$ac_try;; | ||
21920 | esac | ||
21921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21922 | (eval "$ac_compile") 2>conftest.er1 | ||
21923 | ac_status=$? | ||
21924 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21925 | rm -f conftest.er1 | ||
21926 | cat conftest.err >&5 | ||
21927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21928 | (exit $ac_status); } && { | ||
21929 | test -z "$ac_c_werror_flag" || | ||
21930 | test ! -s conftest.err | ||
21931 | } && test -s conftest.$ac_objext; then | ||
21932 | ac_cv_have_uintxx_t="yes" | ||
21933 | else | ||
21934 | echo "$as_me: failed program was:" >&5 | ||
21935 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21936 | |||
21937 | ac_cv_have_uintxx_t="no" | ||
21938 | |||
21939 | fi | ||
21940 | |||
21941 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21942 | |||
21943 | fi | ||
21944 | { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5 | ||
21945 | echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; } | ||
21946 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
21947 | |||
21948 | cat >>confdefs.h <<\_ACEOF | ||
21949 | #define HAVE_UINTXX_T 1 | ||
21950 | _ACEOF | ||
21951 | |||
21952 | fi | ||
21953 | fi | ||
21954 | |||
21955 | if test -z "$have_uintxx_t" ; then | ||
21956 | { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5 | ||
21957 | echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; } | ||
21958 | cat >conftest.$ac_ext <<_ACEOF | ||
21959 | /* confdefs.h. */ | ||
21960 | _ACEOF | ||
21961 | cat confdefs.h >>conftest.$ac_ext | ||
21962 | cat >>conftest.$ac_ext <<_ACEOF | ||
21963 | /* end confdefs.h. */ | ||
21964 | #include <stdint.h> | ||
21965 | int | ||
21966 | main () | ||
21967 | { | ||
21968 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
21969 | ; | ||
21970 | return 0; | ||
21971 | } | ||
21972 | _ACEOF | ||
21973 | rm -f conftest.$ac_objext | ||
21974 | if { (ac_try="$ac_compile" | ||
21975 | case "(($ac_try" in | ||
21976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21977 | *) ac_try_echo=$ac_try;; | ||
21978 | esac | ||
21979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21980 | (eval "$ac_compile") 2>conftest.er1 | ||
21981 | ac_status=$? | ||
21982 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21983 | rm -f conftest.er1 | ||
21984 | cat conftest.err >&5 | ||
21985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21986 | (exit $ac_status); } && { | ||
21987 | test -z "$ac_c_werror_flag" || | ||
21988 | test ! -s conftest.err | ||
21989 | } && test -s conftest.$ac_objext; then | ||
21990 | |||
21991 | cat >>confdefs.h <<\_ACEOF | ||
21992 | #define HAVE_UINTXX_T 1 | ||
21993 | _ACEOF | ||
21994 | |||
21995 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21996 | echo "${ECHO_T}yes" >&6; } | ||
21997 | |||
21998 | else | ||
21999 | echo "$as_me: failed program was:" >&5 | ||
22000 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22001 | |||
22002 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22003 | echo "${ECHO_T}no" >&6; } | ||
22004 | |||
22005 | fi | ||
22006 | |||
22007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22008 | fi | ||
22009 | |||
22010 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
22011 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
22012 | then | ||
22013 | { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
22014 | echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; } | ||
22015 | cat >conftest.$ac_ext <<_ACEOF | ||
22016 | /* confdefs.h. */ | ||
22017 | _ACEOF | ||
22018 | cat confdefs.h >>conftest.$ac_ext | ||
22019 | cat >>conftest.$ac_ext <<_ACEOF | ||
22020 | /* end confdefs.h. */ | ||
22021 | |||
22022 | #include <sys/bitypes.h> | ||
22023 | |||
22024 | int | ||
22025 | main () | ||
22026 | { | ||
22027 | |||
22028 | int8_t a; int16_t b; int32_t c; | ||
22029 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
22030 | a = b = c = e = f = g = 1; | ||
22031 | |||
22032 | ; | ||
22033 | return 0; | ||
22034 | } | ||
22035 | _ACEOF | ||
22036 | rm -f conftest.$ac_objext | ||
22037 | if { (ac_try="$ac_compile" | ||
22038 | case "(($ac_try" in | ||
22039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22040 | *) ac_try_echo=$ac_try;; | ||
22041 | esac | ||
22042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22043 | (eval "$ac_compile") 2>conftest.er1 | ||
22044 | ac_status=$? | ||
22045 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22046 | rm -f conftest.er1 | ||
22047 | cat conftest.err >&5 | ||
22048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22049 | (exit $ac_status); } && { | ||
22050 | test -z "$ac_c_werror_flag" || | ||
22051 | test ! -s conftest.err | ||
22052 | } && test -s conftest.$ac_objext; then | ||
22053 | |||
22054 | cat >>confdefs.h <<\_ACEOF | ||
22055 | #define HAVE_U_INTXX_T 1 | ||
22056 | _ACEOF | ||
22057 | |||
22058 | cat >>confdefs.h <<\_ACEOF | ||
22059 | #define HAVE_INTXX_T 1 | ||
22060 | _ACEOF | ||
22061 | |||
22062 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
22063 | echo "${ECHO_T}yes" >&6; } | ||
22064 | |||
22065 | else | ||
22066 | echo "$as_me: failed program was:" >&5 | ||
22067 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22068 | |||
22069 | { echo "$as_me:$LINENO: result: no" >&5 | ||
22070 | echo "${ECHO_T}no" >&6; } | ||
22071 | |||
22072 | fi | ||
22073 | |||
22074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22075 | fi | ||
22076 | |||
22077 | |||
22078 | { echo "$as_me:$LINENO: checking for u_char" >&5 | ||
22079 | echo $ECHO_N "checking for u_char... $ECHO_C" >&6; } | ||
22080 | if test "${ac_cv_have_u_char+set}" = set; then | ||
22081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22082 | else | ||
22083 | |||
22084 | cat >conftest.$ac_ext <<_ACEOF | ||
22085 | /* confdefs.h. */ | ||
22086 | _ACEOF | ||
22087 | cat confdefs.h >>conftest.$ac_ext | ||
22088 | cat >>conftest.$ac_ext <<_ACEOF | ||
22089 | /* end confdefs.h. */ | ||
22090 | |||
22091 | #include <sys/types.h> | ||
22092 | |||
22093 | int | ||
22094 | main () | ||
22095 | { | ||
22096 | u_char foo; foo = 125; | ||
22097 | ; | ||
22098 | return 0; | ||
22099 | } | ||
22100 | _ACEOF | ||
22101 | rm -f conftest.$ac_objext | ||
22102 | if { (ac_try="$ac_compile" | ||
22103 | case "(($ac_try" in | ||
22104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22105 | *) ac_try_echo=$ac_try;; | ||
22106 | esac | ||
22107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22108 | (eval "$ac_compile") 2>conftest.er1 | ||
22109 | ac_status=$? | ||
22110 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22111 | rm -f conftest.er1 | ||
22112 | cat conftest.err >&5 | ||
22113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22114 | (exit $ac_status); } && { | ||
22115 | test -z "$ac_c_werror_flag" || | ||
22116 | test ! -s conftest.err | ||
22117 | } && test -s conftest.$ac_objext; then | ||
22118 | ac_cv_have_u_char="yes" | ||
22119 | else | ||
22120 | echo "$as_me: failed program was:" >&5 | ||
22121 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22122 | |||
22123 | ac_cv_have_u_char="no" | ||
22124 | |||
22125 | fi | ||
22126 | |||
22127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22128 | |||
22129 | fi | ||
22130 | { echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5 | ||
22131 | echo "${ECHO_T}$ac_cv_have_u_char" >&6; } | ||
22132 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
22133 | |||
22134 | cat >>confdefs.h <<\_ACEOF | ||
22135 | #define HAVE_U_CHAR 1 | ||
22136 | _ACEOF | ||
22137 | |||
22138 | fi | ||
22139 | |||
22140 | |||
22141 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 | ||
22142 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } | ||
22143 | if test "${ac_cv_type_socklen_t+set}" = set; then | ||
22144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22145 | else | ||
22146 | cat >conftest.$ac_ext <<_ACEOF | ||
22147 | /* confdefs.h. */ | ||
22148 | _ACEOF | ||
22149 | cat confdefs.h >>conftest.$ac_ext | ||
22150 | cat >>conftest.$ac_ext <<_ACEOF | ||
22151 | /* end confdefs.h. */ | ||
22152 | #include <sys/types.h> | ||
22153 | #include <sys/socket.h> | ||
22154 | |||
22155 | typedef socklen_t ac__type_new_; | ||
22156 | int | ||
22157 | main () | ||
22158 | { | ||
22159 | if ((ac__type_new_ *) 0) | ||
22160 | return 0; | ||
22161 | if (sizeof (ac__type_new_)) | ||
22162 | return 0; | ||
22163 | ; | ||
22164 | return 0; | ||
22165 | } | ||
22166 | _ACEOF | ||
22167 | rm -f conftest.$ac_objext | ||
22168 | if { (ac_try="$ac_compile" | ||
22169 | case "(($ac_try" in | ||
22170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22171 | *) ac_try_echo=$ac_try;; | ||
22172 | esac | ||
22173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22174 | (eval "$ac_compile") 2>conftest.er1 | ||
22175 | ac_status=$? | ||
22176 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22177 | rm -f conftest.er1 | ||
22178 | cat conftest.err >&5 | ||
22179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22180 | (exit $ac_status); } && { | ||
22181 | test -z "$ac_c_werror_flag" || | ||
22182 | test ! -s conftest.err | ||
22183 | } && test -s conftest.$ac_objext; then | ||
22184 | ac_cv_type_socklen_t=yes | ||
22185 | else | ||
22186 | echo "$as_me: failed program was:" >&5 | ||
22187 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22188 | |||
22189 | ac_cv_type_socklen_t=no | ||
22190 | fi | ||
22191 | |||
22192 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22193 | fi | ||
22194 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | ||
22195 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } | ||
22196 | if test $ac_cv_type_socklen_t = yes; then | ||
22197 | : | ||
22198 | else | ||
22199 | |||
22200 | { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 | ||
22201 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; } | ||
22202 | if test "${curl_cv_socklen_t_equiv+set}" = set; then | ||
22203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22204 | else | ||
22205 | |||
22206 | # Systems have either "struct sockaddr *" or | ||
22207 | # "void *" as the second argument to getpeername | ||
22208 | curl_cv_socklen_t_equiv= | ||
22209 | for arg2 in "struct sockaddr" void; do | ||
22210 | for t in int size_t unsigned long "unsigned long"; do | ||
22211 | cat >conftest.$ac_ext <<_ACEOF | ||
22212 | /* confdefs.h. */ | ||
22213 | _ACEOF | ||
22214 | cat confdefs.h >>conftest.$ac_ext | ||
22215 | cat >>conftest.$ac_ext <<_ACEOF | ||
22216 | /* end confdefs.h. */ | ||
22217 | |||
22218 | #include <sys/types.h> | ||
22219 | #include <sys/socket.h> | ||
22220 | |||
22221 | int getpeername (int, $arg2 *, $t *); | ||
22222 | |||
22223 | int | ||
22224 | main () | ||
22225 | { | ||
22226 | |||
22227 | $t len; | ||
22228 | getpeername(0,0,&len); | ||
22229 | |||
22230 | ; | ||
22231 | return 0; | ||
22232 | } | ||
22233 | _ACEOF | ||
22234 | rm -f conftest.$ac_objext | ||
22235 | if { (ac_try="$ac_compile" | ||
22236 | case "(($ac_try" in | ||
22237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22238 | *) ac_try_echo=$ac_try;; | ||
22239 | esac | ||
22240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22241 | (eval "$ac_compile") 2>conftest.er1 | ||
22242 | ac_status=$? | ||
22243 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22244 | rm -f conftest.er1 | ||
22245 | cat conftest.err >&5 | ||
22246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22247 | (exit $ac_status); } && { | ||
22248 | test -z "$ac_c_werror_flag" || | ||
22249 | test ! -s conftest.err | ||
22250 | } && test -s conftest.$ac_objext; then | ||
22251 | |||
22252 | curl_cv_socklen_t_equiv="$t" | ||
22253 | break | ||
22254 | |||
22255 | else | ||
22256 | echo "$as_me: failed program was:" >&5 | ||
22257 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22258 | |||
22259 | |||
22260 | fi | ||
22261 | |||
22262 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22263 | done | ||
22264 | done | ||
22265 | |||
22266 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
22267 | { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5 | ||
22268 | echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;} | ||
22269 | { (exit 1); exit 1; }; } | ||
22270 | fi | ||
22271 | |||
22272 | fi | ||
22273 | |||
22274 | { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5 | ||
22275 | echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; } | ||
22276 | |||
22277 | cat >>confdefs.h <<_ACEOF | ||
22278 | #define socklen_t $curl_cv_socklen_t_equiv | ||
22279 | _ACEOF | ||
22280 | |||
22281 | fi | ||
22282 | |||
22283 | |||
22284 | |||
22285 | { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 | ||
22286 | echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; } | ||
22287 | if test "${ac_cv_type_sig_atomic_t+set}" = set; then | ||
22288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22289 | else | ||
22290 | cat >conftest.$ac_ext <<_ACEOF | ||
22291 | /* confdefs.h. */ | ||
22292 | _ACEOF | ||
22293 | cat confdefs.h >>conftest.$ac_ext | ||
22294 | cat >>conftest.$ac_ext <<_ACEOF | ||
22295 | /* end confdefs.h. */ | ||
22296 | #include <signal.h> | ||
22297 | |||
22298 | typedef sig_atomic_t ac__type_new_; | ||
22299 | int | ||
22300 | main () | ||
22301 | { | ||
22302 | if ((ac__type_new_ *) 0) | ||
22303 | return 0; | ||
22304 | if (sizeof (ac__type_new_)) | ||
22305 | return 0; | ||
22306 | ; | ||
22307 | return 0; | ||
22308 | } | ||
22309 | _ACEOF | ||
22310 | rm -f conftest.$ac_objext | ||
22311 | if { (ac_try="$ac_compile" | ||
22312 | case "(($ac_try" in | ||
22313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22314 | *) ac_try_echo=$ac_try;; | ||
22315 | esac | ||
22316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22317 | (eval "$ac_compile") 2>conftest.er1 | ||
22318 | ac_status=$? | ||
22319 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22320 | rm -f conftest.er1 | ||
22321 | cat conftest.err >&5 | ||
22322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22323 | (exit $ac_status); } && { | ||
22324 | test -z "$ac_c_werror_flag" || | ||
22325 | test ! -s conftest.err | ||
22326 | } && test -s conftest.$ac_objext; then | ||
22327 | ac_cv_type_sig_atomic_t=yes | ||
22328 | else | ||
22329 | echo "$as_me: failed program was:" >&5 | ||
22330 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22331 | |||
22332 | ac_cv_type_sig_atomic_t=no | ||
22333 | fi | ||
22334 | |||
22335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22336 | fi | ||
22337 | { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 | ||
22338 | echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; } | ||
22339 | if test $ac_cv_type_sig_atomic_t = yes; then | ||
22340 | |||
22341 | cat >>confdefs.h <<_ACEOF | ||
22342 | #define HAVE_SIG_ATOMIC_T 1 | ||
22343 | _ACEOF | ||
22344 | |||
22345 | |||
22346 | fi | ||
22347 | |||
22348 | { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5 | ||
22349 | echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; } | ||
22350 | if test "${ac_cv_type_fsblkcnt_t+set}" = set; then | ||
22351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22352 | else | ||
22353 | cat >conftest.$ac_ext <<_ACEOF | ||
22354 | /* confdefs.h. */ | ||
22355 | _ACEOF | ||
22356 | cat confdefs.h >>conftest.$ac_ext | ||
22357 | cat >>conftest.$ac_ext <<_ACEOF | ||
22358 | /* end confdefs.h. */ | ||
22359 | |||
22360 | #include <sys/types.h> | ||
22361 | #ifdef HAVE_SYS_BITYPES_H | ||
22362 | #include <sys/bitypes.h> | ||
22363 | #endif | ||
22364 | #ifdef HAVE_SYS_STATFS_H | ||
22365 | #include <sys/statfs.h> | ||
22366 | #endif | ||
22367 | #ifdef HAVE_SYS_STATVFS_H | ||
22368 | #include <sys/statvfs.h> | ||
22369 | #endif | ||
22370 | |||
22371 | |||
22372 | typedef fsblkcnt_t ac__type_new_; | ||
22373 | int | ||
22374 | main () | ||
22375 | { | ||
22376 | if ((ac__type_new_ *) 0) | ||
22377 | return 0; | ||
22378 | if (sizeof (ac__type_new_)) | ||
22379 | return 0; | ||
22380 | ; | ||
22381 | return 0; | ||
22382 | } | ||
22383 | _ACEOF | ||
22384 | rm -f conftest.$ac_objext | ||
22385 | if { (ac_try="$ac_compile" | ||
22386 | case "(($ac_try" in | ||
22387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22388 | *) ac_try_echo=$ac_try;; | ||
22389 | esac | ||
22390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22391 | (eval "$ac_compile") 2>conftest.er1 | ||
22392 | ac_status=$? | ||
22393 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22394 | rm -f conftest.er1 | ||
22395 | cat conftest.err >&5 | ||
22396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22397 | (exit $ac_status); } && { | ||
22398 | test -z "$ac_c_werror_flag" || | ||
22399 | test ! -s conftest.err | ||
22400 | } && test -s conftest.$ac_objext; then | ||
22401 | ac_cv_type_fsblkcnt_t=yes | ||
22402 | else | ||
22403 | echo "$as_me: failed program was:" >&5 | ||
22404 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22405 | |||
22406 | ac_cv_type_fsblkcnt_t=no | ||
22407 | fi | ||
22408 | |||
22409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22410 | fi | ||
22411 | { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5 | ||
22412 | echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; } | ||
22413 | if test $ac_cv_type_fsblkcnt_t = yes; then | ||
22414 | |||
22415 | cat >>confdefs.h <<_ACEOF | ||
22416 | #define HAVE_FSBLKCNT_T 1 | ||
22417 | _ACEOF | ||
22418 | |||
22419 | |||
22420 | fi | ||
22421 | { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5 | ||
22422 | echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; } | ||
22423 | if test "${ac_cv_type_fsfilcnt_t+set}" = set; then | ||
22424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22425 | else | ||
22426 | cat >conftest.$ac_ext <<_ACEOF | ||
22427 | /* confdefs.h. */ | ||
22428 | _ACEOF | ||
22429 | cat confdefs.h >>conftest.$ac_ext | ||
22430 | cat >>conftest.$ac_ext <<_ACEOF | ||
22431 | /* end confdefs.h. */ | ||
22432 | |||
22433 | #include <sys/types.h> | ||
22434 | #ifdef HAVE_SYS_BITYPES_H | ||
22435 | #include <sys/bitypes.h> | ||
22436 | #endif | ||
22437 | #ifdef HAVE_SYS_STATFS_H | ||
22438 | #include <sys/statfs.h> | ||
22439 | #endif | ||
22440 | #ifdef HAVE_SYS_STATVFS_H | ||
22441 | #include <sys/statvfs.h> | ||
22442 | #endif | ||
22443 | |||
22444 | |||
22445 | typedef fsfilcnt_t ac__type_new_; | ||
22446 | int | ||
22447 | main () | ||
22448 | { | ||
22449 | if ((ac__type_new_ *) 0) | ||
22450 | return 0; | ||
22451 | if (sizeof (ac__type_new_)) | ||
22452 | return 0; | ||
22453 | ; | ||
22454 | return 0; | ||
22455 | } | ||
22456 | _ACEOF | ||
22457 | rm -f conftest.$ac_objext | ||
22458 | if { (ac_try="$ac_compile" | ||
22459 | case "(($ac_try" in | ||
22460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22461 | *) ac_try_echo=$ac_try;; | ||
22462 | esac | ||
22463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22464 | (eval "$ac_compile") 2>conftest.er1 | ||
22465 | ac_status=$? | ||
22466 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22467 | rm -f conftest.er1 | ||
22468 | cat conftest.err >&5 | ||
22469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22470 | (exit $ac_status); } && { | ||
22471 | test -z "$ac_c_werror_flag" || | ||
22472 | test ! -s conftest.err | ||
22473 | } && test -s conftest.$ac_objext; then | ||
22474 | ac_cv_type_fsfilcnt_t=yes | ||
22475 | else | ||
22476 | echo "$as_me: failed program was:" >&5 | ||
22477 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22478 | |||
22479 | ac_cv_type_fsfilcnt_t=no | ||
22480 | fi | ||
22481 | |||
22482 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22483 | fi | ||
22484 | { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5 | ||
22485 | echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; } | ||
22486 | if test $ac_cv_type_fsfilcnt_t = yes; then | ||
22487 | |||
22488 | cat >>confdefs.h <<_ACEOF | ||
22489 | #define HAVE_FSFILCNT_T 1 | ||
22490 | _ACEOF | ||
22491 | |||
22492 | |||
22493 | fi | ||
22494 | |||
22495 | |||
22496 | { echo "$as_me:$LINENO: checking for in_addr_t" >&5 | ||
22497 | echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; } | ||
22498 | if test "${ac_cv_type_in_addr_t+set}" = set; then | ||
22499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22500 | else | ||
22501 | cat >conftest.$ac_ext <<_ACEOF | ||
22502 | /* confdefs.h. */ | ||
22503 | _ACEOF | ||
22504 | cat confdefs.h >>conftest.$ac_ext | ||
22505 | cat >>conftest.$ac_ext <<_ACEOF | ||
22506 | /* end confdefs.h. */ | ||
22507 | #include <sys/types.h> | ||
22508 | #include <netinet/in.h> | ||
22509 | |||
22510 | typedef in_addr_t ac__type_new_; | ||
22511 | int | ||
22512 | main () | ||
22513 | { | ||
22514 | if ((ac__type_new_ *) 0) | ||
22515 | return 0; | ||
22516 | if (sizeof (ac__type_new_)) | ||
22517 | return 0; | ||
22518 | ; | ||
22519 | return 0; | ||
22520 | } | ||
22521 | _ACEOF | ||
22522 | rm -f conftest.$ac_objext | ||
22523 | if { (ac_try="$ac_compile" | ||
22524 | case "(($ac_try" in | ||
22525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22526 | *) ac_try_echo=$ac_try;; | ||
22527 | esac | ||
22528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22529 | (eval "$ac_compile") 2>conftest.er1 | ||
22530 | ac_status=$? | ||
22531 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22532 | rm -f conftest.er1 | ||
22533 | cat conftest.err >&5 | ||
22534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22535 | (exit $ac_status); } && { | ||
22536 | test -z "$ac_c_werror_flag" || | ||
22537 | test ! -s conftest.err | ||
22538 | } && test -s conftest.$ac_objext; then | ||
22539 | ac_cv_type_in_addr_t=yes | ||
22540 | else | ||
22541 | echo "$as_me: failed program was:" >&5 | ||
22542 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22543 | |||
22544 | ac_cv_type_in_addr_t=no | ||
22545 | fi | ||
22546 | |||
22547 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22548 | fi | ||
22549 | { echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5 | ||
22550 | echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; } | ||
22551 | if test $ac_cv_type_in_addr_t = yes; then | ||
22552 | |||
22553 | cat >>confdefs.h <<_ACEOF | ||
22554 | #define HAVE_IN_ADDR_T 1 | ||
22555 | _ACEOF | ||
22556 | |||
22557 | |||
22558 | fi | ||
22559 | { echo "$as_me:$LINENO: checking for in_port_t" >&5 | ||
22560 | echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; } | ||
22561 | if test "${ac_cv_type_in_port_t+set}" = set; then | ||
22562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22563 | else | ||
22564 | cat >conftest.$ac_ext <<_ACEOF | ||
22565 | /* confdefs.h. */ | ||
22566 | _ACEOF | ||
22567 | cat confdefs.h >>conftest.$ac_ext | ||
22568 | cat >>conftest.$ac_ext <<_ACEOF | ||
22569 | /* end confdefs.h. */ | ||
22570 | #include <sys/types.h> | ||
22571 | #include <netinet/in.h> | ||
22572 | |||
22573 | typedef in_port_t ac__type_new_; | ||
22574 | int | ||
22575 | main () | ||
22576 | { | ||
22577 | if ((ac__type_new_ *) 0) | ||
22578 | return 0; | ||
22579 | if (sizeof (ac__type_new_)) | ||
22580 | return 0; | ||
22581 | ; | ||
22582 | return 0; | ||
22583 | } | ||
22584 | _ACEOF | ||
22585 | rm -f conftest.$ac_objext | ||
22586 | if { (ac_try="$ac_compile" | ||
22587 | case "(($ac_try" in | ||
22588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22589 | *) ac_try_echo=$ac_try;; | ||
22590 | esac | ||
22591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22592 | (eval "$ac_compile") 2>conftest.er1 | ||
22593 | ac_status=$? | ||
22594 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22595 | rm -f conftest.er1 | ||
22596 | cat conftest.err >&5 | ||
22597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22598 | (exit $ac_status); } && { | ||
22599 | test -z "$ac_c_werror_flag" || | ||
22600 | test ! -s conftest.err | ||
22601 | } && test -s conftest.$ac_objext; then | ||
22602 | ac_cv_type_in_port_t=yes | ||
22603 | else | ||
22604 | echo "$as_me: failed program was:" >&5 | ||
22605 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22606 | |||
22607 | ac_cv_type_in_port_t=no | ||
22608 | fi | ||
22609 | |||
22610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22611 | fi | ||
22612 | { echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5 | ||
22613 | echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; } | ||
22614 | if test $ac_cv_type_in_port_t = yes; then | ||
22615 | |||
22616 | cat >>confdefs.h <<_ACEOF | ||
22617 | #define HAVE_IN_PORT_T 1 | ||
22618 | _ACEOF | ||
22619 | |||
22620 | |||
22621 | fi | ||
22622 | |||
22623 | |||
22624 | { echo "$as_me:$LINENO: checking for size_t" >&5 | ||
22625 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | ||
22626 | if test "${ac_cv_have_size_t+set}" = set; then | ||
22627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22628 | else | ||
22629 | |||
22630 | cat >conftest.$ac_ext <<_ACEOF | ||
22631 | /* confdefs.h. */ | ||
22632 | _ACEOF | ||
22633 | cat confdefs.h >>conftest.$ac_ext | ||
22634 | cat >>conftest.$ac_ext <<_ACEOF | ||
22635 | /* end confdefs.h. */ | ||
22636 | |||
22637 | #include <sys/types.h> | ||
22638 | |||
22639 | int | ||
22640 | main () | ||
22641 | { | ||
22642 | size_t foo; foo = 1235; | ||
22643 | ; | ||
22644 | return 0; | ||
22645 | } | ||
22646 | _ACEOF | ||
22647 | rm -f conftest.$ac_objext | ||
22648 | if { (ac_try="$ac_compile" | ||
22649 | case "(($ac_try" in | ||
22650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22651 | *) ac_try_echo=$ac_try;; | ||
22652 | esac | ||
22653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22654 | (eval "$ac_compile") 2>conftest.er1 | ||
22655 | ac_status=$? | ||
22656 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22657 | rm -f conftest.er1 | ||
22658 | cat conftest.err >&5 | ||
22659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22660 | (exit $ac_status); } && { | ||
22661 | test -z "$ac_c_werror_flag" || | ||
22662 | test ! -s conftest.err | ||
22663 | } && test -s conftest.$ac_objext; then | ||
22664 | ac_cv_have_size_t="yes" | ||
22665 | else | ||
22666 | echo "$as_me: failed program was:" >&5 | ||
22667 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22668 | |||
22669 | ac_cv_have_size_t="no" | ||
22670 | |||
22671 | fi | ||
22672 | |||
22673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22674 | |||
22675 | fi | ||
22676 | { echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5 | ||
22677 | echo "${ECHO_T}$ac_cv_have_size_t" >&6; } | ||
22678 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
22679 | |||
22680 | cat >>confdefs.h <<\_ACEOF | ||
22681 | #define HAVE_SIZE_T 1 | ||
22682 | _ACEOF | ||
22683 | |||
22684 | fi | ||
22685 | |||
22686 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 | ||
22687 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } | ||
22688 | if test "${ac_cv_have_ssize_t+set}" = set; then | ||
22689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22690 | else | ||
22691 | |||
22692 | cat >conftest.$ac_ext <<_ACEOF | ||
22693 | /* confdefs.h. */ | ||
22694 | _ACEOF | ||
22695 | cat confdefs.h >>conftest.$ac_ext | ||
22696 | cat >>conftest.$ac_ext <<_ACEOF | ||
22697 | /* end confdefs.h. */ | ||
22698 | |||
22699 | #include <sys/types.h> | ||
22700 | |||
22701 | int | ||
22702 | main () | ||
22703 | { | ||
22704 | ssize_t foo; foo = 1235; | ||
22705 | ; | ||
22706 | return 0; | ||
22707 | } | ||
22708 | _ACEOF | ||
22709 | rm -f conftest.$ac_objext | ||
22710 | if { (ac_try="$ac_compile" | ||
22711 | case "(($ac_try" in | ||
22712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22713 | *) ac_try_echo=$ac_try;; | ||
22714 | esac | ||
22715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22716 | (eval "$ac_compile") 2>conftest.er1 | ||
22717 | ac_status=$? | ||
22718 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22719 | rm -f conftest.er1 | ||
22720 | cat conftest.err >&5 | ||
22721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22722 | (exit $ac_status); } && { | ||
22723 | test -z "$ac_c_werror_flag" || | ||
22724 | test ! -s conftest.err | ||
22725 | } && test -s conftest.$ac_objext; then | ||
22726 | ac_cv_have_ssize_t="yes" | ||
22727 | else | ||
22728 | echo "$as_me: failed program was:" >&5 | ||
22729 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22730 | |||
22731 | ac_cv_have_ssize_t="no" | ||
22732 | |||
22733 | fi | ||
22734 | |||
22735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22736 | |||
22737 | fi | ||
22738 | { echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5 | ||
22739 | echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; } | ||
22740 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
22741 | |||
22742 | cat >>confdefs.h <<\_ACEOF | ||
22743 | #define HAVE_SSIZE_T 1 | ||
22744 | _ACEOF | ||
22745 | |||
22746 | fi | ||
22747 | |||
22748 | { echo "$as_me:$LINENO: checking for clock_t" >&5 | ||
22749 | echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; } | ||
22750 | if test "${ac_cv_have_clock_t+set}" = set; then | ||
22751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22752 | else | ||
22753 | |||
22754 | cat >conftest.$ac_ext <<_ACEOF | ||
22755 | /* confdefs.h. */ | ||
22756 | _ACEOF | ||
22757 | cat confdefs.h >>conftest.$ac_ext | ||
22758 | cat >>conftest.$ac_ext <<_ACEOF | ||
22759 | /* end confdefs.h. */ | ||
22760 | |||
22761 | #include <time.h> | ||
22762 | |||
22763 | int | ||
22764 | main () | ||
22765 | { | ||
22766 | clock_t foo; foo = 1235; | ||
22767 | ; | ||
22768 | return 0; | ||
22769 | } | ||
22770 | _ACEOF | ||
22771 | rm -f conftest.$ac_objext | ||
22772 | if { (ac_try="$ac_compile" | ||
22773 | case "(($ac_try" in | ||
22774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22775 | *) ac_try_echo=$ac_try;; | ||
22776 | esac | ||
22777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22778 | (eval "$ac_compile") 2>conftest.er1 | ||
22779 | ac_status=$? | ||
22780 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22781 | rm -f conftest.er1 | ||
22782 | cat conftest.err >&5 | ||
22783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22784 | (exit $ac_status); } && { | ||
22785 | test -z "$ac_c_werror_flag" || | ||
22786 | test ! -s conftest.err | ||
22787 | } && test -s conftest.$ac_objext; then | ||
22788 | ac_cv_have_clock_t="yes" | ||
22789 | else | ||
22790 | echo "$as_me: failed program was:" >&5 | ||
22791 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22792 | |||
22793 | ac_cv_have_clock_t="no" | ||
22794 | |||
22795 | fi | ||
22796 | |||
22797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22798 | |||
22799 | fi | ||
22800 | { echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5 | ||
22801 | echo "${ECHO_T}$ac_cv_have_clock_t" >&6; } | ||
22802 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
22803 | |||
22804 | cat >>confdefs.h <<\_ACEOF | ||
22805 | #define HAVE_CLOCK_T 1 | ||
22806 | _ACEOF | ||
22807 | |||
22808 | fi | ||
22809 | |||
22810 | { echo "$as_me:$LINENO: checking for sa_family_t" >&5 | ||
22811 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; } | ||
22812 | if test "${ac_cv_have_sa_family_t+set}" = set; then | ||
22813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22814 | else | ||
22815 | |||
22816 | cat >conftest.$ac_ext <<_ACEOF | ||
22817 | /* confdefs.h. */ | ||
22818 | _ACEOF | ||
22819 | cat confdefs.h >>conftest.$ac_ext | ||
22820 | cat >>conftest.$ac_ext <<_ACEOF | ||
22821 | /* end confdefs.h. */ | ||
22822 | |||
22823 | #include <sys/types.h> | ||
22824 | #include <sys/socket.h> | ||
22825 | |||
22826 | int | ||
22827 | main () | ||
22828 | { | ||
22829 | sa_family_t foo; foo = 1235; | ||
22830 | ; | ||
22831 | return 0; | ||
22832 | } | ||
22833 | _ACEOF | ||
22834 | rm -f conftest.$ac_objext | ||
22835 | if { (ac_try="$ac_compile" | ||
22836 | case "(($ac_try" in | ||
22837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22838 | *) ac_try_echo=$ac_try;; | ||
22839 | esac | ||
22840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22841 | (eval "$ac_compile") 2>conftest.er1 | ||
22842 | ac_status=$? | ||
22843 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22844 | rm -f conftest.er1 | ||
22845 | cat conftest.err >&5 | ||
22846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22847 | (exit $ac_status); } && { | ||
22848 | test -z "$ac_c_werror_flag" || | ||
22849 | test ! -s conftest.err | ||
22850 | } && test -s conftest.$ac_objext; then | ||
22851 | ac_cv_have_sa_family_t="yes" | ||
22852 | else | ||
22853 | echo "$as_me: failed program was:" >&5 | ||
22854 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22855 | |||
22856 | cat >conftest.$ac_ext <<_ACEOF | ||
22857 | /* confdefs.h. */ | ||
22858 | _ACEOF | ||
22859 | cat confdefs.h >>conftest.$ac_ext | ||
22860 | cat >>conftest.$ac_ext <<_ACEOF | ||
22861 | /* end confdefs.h. */ | ||
22862 | |||
22863 | #include <sys/types.h> | ||
22864 | #include <sys/socket.h> | ||
22865 | #include <netinet/in.h> | ||
22866 | |||
22867 | int | ||
22868 | main () | ||
22869 | { | ||
22870 | sa_family_t foo; foo = 1235; | ||
22871 | ; | ||
22872 | return 0; | ||
22873 | } | ||
22874 | _ACEOF | ||
22875 | rm -f conftest.$ac_objext | ||
22876 | if { (ac_try="$ac_compile" | ||
22877 | case "(($ac_try" in | ||
22878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22879 | *) ac_try_echo=$ac_try;; | ||
22880 | esac | ||
22881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22882 | (eval "$ac_compile") 2>conftest.er1 | ||
22883 | ac_status=$? | ||
22884 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22885 | rm -f conftest.er1 | ||
22886 | cat conftest.err >&5 | ||
22887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22888 | (exit $ac_status); } && { | ||
22889 | test -z "$ac_c_werror_flag" || | ||
22890 | test ! -s conftest.err | ||
22891 | } && test -s conftest.$ac_objext; then | ||
22892 | ac_cv_have_sa_family_t="yes" | ||
22893 | else | ||
22894 | echo "$as_me: failed program was:" >&5 | ||
22895 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22896 | |||
22897 | ac_cv_have_sa_family_t="no" | ||
22898 | |||
22899 | fi | ||
22900 | |||
22901 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22902 | |||
22903 | fi | ||
22904 | |||
22905 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22906 | |||
22907 | fi | ||
22908 | { echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5 | ||
22909 | echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; } | ||
22910 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
22911 | |||
22912 | cat >>confdefs.h <<\_ACEOF | ||
22913 | #define HAVE_SA_FAMILY_T 1 | ||
22914 | _ACEOF | ||
22915 | |||
22916 | fi | ||
22917 | |||
22918 | { echo "$as_me:$LINENO: checking for pid_t" >&5 | ||
22919 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | ||
22920 | if test "${ac_cv_have_pid_t+set}" = set; then | ||
22921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22922 | else | ||
22923 | |||
22924 | cat >conftest.$ac_ext <<_ACEOF | ||
22925 | /* confdefs.h. */ | ||
22926 | _ACEOF | ||
22927 | cat confdefs.h >>conftest.$ac_ext | ||
22928 | cat >>conftest.$ac_ext <<_ACEOF | ||
22929 | /* end confdefs.h. */ | ||
22930 | |||
22931 | #include <sys/types.h> | ||
22932 | |||
22933 | int | ||
22934 | main () | ||
22935 | { | ||
22936 | pid_t foo; foo = 1235; | ||
22937 | ; | ||
22938 | return 0; | ||
22939 | } | ||
22940 | _ACEOF | ||
22941 | rm -f conftest.$ac_objext | ||
22942 | if { (ac_try="$ac_compile" | ||
22943 | case "(($ac_try" in | ||
22944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22945 | *) ac_try_echo=$ac_try;; | ||
22946 | esac | ||
22947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22948 | (eval "$ac_compile") 2>conftest.er1 | ||
22949 | ac_status=$? | ||
22950 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22951 | rm -f conftest.er1 | ||
22952 | cat conftest.err >&5 | ||
22953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22954 | (exit $ac_status); } && { | ||
22955 | test -z "$ac_c_werror_flag" || | ||
22956 | test ! -s conftest.err | ||
22957 | } && test -s conftest.$ac_objext; then | ||
22958 | ac_cv_have_pid_t="yes" | ||
22959 | else | ||
22960 | echo "$as_me: failed program was:" >&5 | ||
22961 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22962 | |||
22963 | ac_cv_have_pid_t="no" | ||
22964 | |||
22965 | fi | ||
22966 | |||
22967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22968 | |||
22969 | fi | ||
22970 | { echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5 | ||
22971 | echo "${ECHO_T}$ac_cv_have_pid_t" >&6; } | ||
22972 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
22973 | |||
22974 | cat >>confdefs.h <<\_ACEOF | ||
22975 | #define HAVE_PID_T 1 | ||
22976 | _ACEOF | ||
22977 | |||
22978 | fi | ||
22979 | |||
22980 | { echo "$as_me:$LINENO: checking for mode_t" >&5 | ||
22981 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } | ||
22982 | if test "${ac_cv_have_mode_t+set}" = set; then | ||
22983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22984 | else | ||
22985 | |||
22986 | cat >conftest.$ac_ext <<_ACEOF | ||
22987 | /* confdefs.h. */ | ||
22988 | _ACEOF | ||
22989 | cat confdefs.h >>conftest.$ac_ext | ||
22990 | cat >>conftest.$ac_ext <<_ACEOF | ||
22991 | /* end confdefs.h. */ | ||
22992 | |||
22993 | #include <sys/types.h> | ||
22994 | |||
22995 | int | ||
22996 | main () | ||
22997 | { | ||
22998 | mode_t foo; foo = 1235; | ||
22999 | ; | ||
23000 | return 0; | ||
23001 | } | ||
23002 | _ACEOF | ||
23003 | rm -f conftest.$ac_objext | ||
23004 | if { (ac_try="$ac_compile" | ||
23005 | case "(($ac_try" in | ||
23006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23007 | *) ac_try_echo=$ac_try;; | ||
23008 | esac | ||
23009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23010 | (eval "$ac_compile") 2>conftest.er1 | ||
23011 | ac_status=$? | ||
23012 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23013 | rm -f conftest.er1 | ||
23014 | cat conftest.err >&5 | ||
23015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23016 | (exit $ac_status); } && { | ||
23017 | test -z "$ac_c_werror_flag" || | ||
23018 | test ! -s conftest.err | ||
23019 | } && test -s conftest.$ac_objext; then | ||
23020 | ac_cv_have_mode_t="yes" | ||
23021 | else | ||
23022 | echo "$as_me: failed program was:" >&5 | ||
23023 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23024 | |||
23025 | ac_cv_have_mode_t="no" | ||
23026 | |||
23027 | fi | ||
23028 | |||
23029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23030 | |||
23031 | fi | ||
23032 | { echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5 | ||
23033 | echo "${ECHO_T}$ac_cv_have_mode_t" >&6; } | ||
23034 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
23035 | |||
23036 | cat >>confdefs.h <<\_ACEOF | ||
23037 | #define HAVE_MODE_T 1 | ||
23038 | _ACEOF | ||
23039 | |||
23040 | fi | ||
23041 | |||
23042 | |||
23043 | { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 | ||
23044 | echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; } | ||
23045 | if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then | ||
23046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23047 | else | ||
23048 | |||
23049 | cat >conftest.$ac_ext <<_ACEOF | ||
23050 | /* confdefs.h. */ | ||
23051 | _ACEOF | ||
23052 | cat confdefs.h >>conftest.$ac_ext | ||
23053 | cat >>conftest.$ac_ext <<_ACEOF | ||
23054 | /* end confdefs.h. */ | ||
23055 | |||
23056 | #include <sys/types.h> | ||
23057 | #include <sys/socket.h> | ||
23058 | |||
23059 | int | ||
23060 | main () | ||
23061 | { | ||
23062 | struct sockaddr_storage s; | ||
23063 | ; | ||
23064 | return 0; | ||
23065 | } | ||
23066 | _ACEOF | ||
23067 | rm -f conftest.$ac_objext | ||
23068 | if { (ac_try="$ac_compile" | ||
23069 | case "(($ac_try" in | ||
23070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23071 | *) ac_try_echo=$ac_try;; | ||
23072 | esac | ||
23073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23074 | (eval "$ac_compile") 2>conftest.er1 | ||
23075 | ac_status=$? | ||
23076 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23077 | rm -f conftest.er1 | ||
23078 | cat conftest.err >&5 | ||
23079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23080 | (exit $ac_status); } && { | ||
23081 | test -z "$ac_c_werror_flag" || | ||
23082 | test ! -s conftest.err | ||
23083 | } && test -s conftest.$ac_objext; then | ||
23084 | ac_cv_have_struct_sockaddr_storage="yes" | ||
23085 | else | ||
23086 | echo "$as_me: failed program was:" >&5 | ||
23087 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23088 | |||
23089 | ac_cv_have_struct_sockaddr_storage="no" | ||
23090 | |||
23091 | fi | ||
23092 | |||
23093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23094 | |||
23095 | fi | ||
23096 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
23097 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; } | ||
23098 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
23099 | |||
23100 | cat >>confdefs.h <<\_ACEOF | ||
23101 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | ||
23102 | _ACEOF | ||
23103 | |||
23104 | fi | ||
23105 | |||
23106 | { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 | ||
23107 | echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; } | ||
23108 | if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then | ||
23109 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23110 | else | ||
23111 | |||
23112 | cat >conftest.$ac_ext <<_ACEOF | ||
23113 | /* confdefs.h. */ | ||
23114 | _ACEOF | ||
23115 | cat confdefs.h >>conftest.$ac_ext | ||
23116 | cat >>conftest.$ac_ext <<_ACEOF | ||
23117 | /* end confdefs.h. */ | ||
23118 | |||
23119 | #include <sys/types.h> | ||
23120 | #include <netinet/in.h> | ||
23121 | |||
23122 | int | ||
23123 | main () | ||
23124 | { | ||
23125 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
23126 | ; | ||
23127 | return 0; | ||
23128 | } | ||
23129 | _ACEOF | ||
23130 | rm -f conftest.$ac_objext | ||
23131 | if { (ac_try="$ac_compile" | ||
23132 | case "(($ac_try" in | ||
23133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23134 | *) ac_try_echo=$ac_try;; | ||
23135 | esac | ||
23136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23137 | (eval "$ac_compile") 2>conftest.er1 | ||
23138 | ac_status=$? | ||
23139 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23140 | rm -f conftest.er1 | ||
23141 | cat conftest.err >&5 | ||
23142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23143 | (exit $ac_status); } && { | ||
23144 | test -z "$ac_c_werror_flag" || | ||
23145 | test ! -s conftest.err | ||
23146 | } && test -s conftest.$ac_objext; then | ||
23147 | ac_cv_have_struct_sockaddr_in6="yes" | ||
23148 | else | ||
23149 | echo "$as_me: failed program was:" >&5 | ||
23150 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23151 | |||
23152 | ac_cv_have_struct_sockaddr_in6="no" | ||
23153 | |||
23154 | fi | ||
23155 | |||
23156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23157 | |||
23158 | fi | ||
23159 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
23160 | echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; } | ||
23161 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
23162 | |||
23163 | cat >>confdefs.h <<\_ACEOF | ||
23164 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | ||
23165 | _ACEOF | ||
23166 | |||
23167 | fi | ||
23168 | |||
23169 | { echo "$as_me:$LINENO: checking for struct in6_addr" >&5 | ||
23170 | echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; } | ||
23171 | if test "${ac_cv_have_struct_in6_addr+set}" = set; then | ||
23172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23173 | else | ||
23174 | |||
23175 | cat >conftest.$ac_ext <<_ACEOF | ||
23176 | /* confdefs.h. */ | ||
23177 | _ACEOF | ||
23178 | cat confdefs.h >>conftest.$ac_ext | ||
23179 | cat >>conftest.$ac_ext <<_ACEOF | ||
23180 | /* end confdefs.h. */ | ||
23181 | |||
23182 | #include <sys/types.h> | ||
23183 | #include <netinet/in.h> | ||
23184 | |||
23185 | int | ||
23186 | main () | ||
23187 | { | ||
23188 | struct in6_addr s; s.s6_addr[0] = 0; | ||
23189 | ; | ||
23190 | return 0; | ||
23191 | } | ||
23192 | _ACEOF | ||
23193 | rm -f conftest.$ac_objext | ||
23194 | if { (ac_try="$ac_compile" | ||
23195 | case "(($ac_try" in | ||
23196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23197 | *) ac_try_echo=$ac_try;; | ||
23198 | esac | ||
23199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23200 | (eval "$ac_compile") 2>conftest.er1 | ||
23201 | ac_status=$? | ||
23202 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23203 | rm -f conftest.er1 | ||
23204 | cat conftest.err >&5 | ||
23205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23206 | (exit $ac_status); } && { | ||
23207 | test -z "$ac_c_werror_flag" || | ||
23208 | test ! -s conftest.err | ||
23209 | } && test -s conftest.$ac_objext; then | ||
23210 | ac_cv_have_struct_in6_addr="yes" | ||
23211 | else | ||
23212 | echo "$as_me: failed program was:" >&5 | ||
23213 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23214 | |||
23215 | ac_cv_have_struct_in6_addr="no" | ||
23216 | |||
23217 | fi | ||
23218 | |||
23219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23220 | |||
23221 | fi | ||
23222 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5 | ||
23223 | echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; } | ||
23224 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
23225 | |||
23226 | cat >>confdefs.h <<\_ACEOF | ||
23227 | #define HAVE_STRUCT_IN6_ADDR 1 | ||
23228 | _ACEOF | ||
23229 | |||
23230 | |||
23231 | { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5 | ||
23232 | echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; } | ||
23233 | if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then | ||
23234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23235 | else | ||
23236 | cat >conftest.$ac_ext <<_ACEOF | ||
23237 | /* confdefs.h. */ | ||
23238 | _ACEOF | ||
23239 | cat confdefs.h >>conftest.$ac_ext | ||
23240 | cat >>conftest.$ac_ext <<_ACEOF | ||
23241 | /* end confdefs.h. */ | ||
23242 | |||
23243 | #ifdef HAVE_SYS_TYPES_H | ||
23244 | #include <sys/types.h> | ||
23245 | #endif | ||
23246 | #include <netinet/in.h> | ||
23247 | |||
23248 | |||
23249 | int | ||
23250 | main () | ||
23251 | { | ||
23252 | static struct sockaddr_in6 ac_aggr; | ||
23253 | if (ac_aggr.sin6_scope_id) | ||
23254 | return 0; | ||
23255 | ; | ||
23256 | return 0; | ||
23257 | } | ||
23258 | _ACEOF | ||
23259 | rm -f conftest.$ac_objext | ||
23260 | if { (ac_try="$ac_compile" | ||
23261 | case "(($ac_try" in | ||
23262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23263 | *) ac_try_echo=$ac_try;; | ||
23264 | esac | ||
23265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23266 | (eval "$ac_compile") 2>conftest.er1 | ||
23267 | ac_status=$? | ||
23268 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23269 | rm -f conftest.er1 | ||
23270 | cat conftest.err >&5 | ||
23271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23272 | (exit $ac_status); } && { | ||
23273 | test -z "$ac_c_werror_flag" || | ||
23274 | test ! -s conftest.err | ||
23275 | } && test -s conftest.$ac_objext; then | ||
23276 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes | ||
23277 | else | ||
23278 | echo "$as_me: failed program was:" >&5 | ||
23279 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23280 | |||
23281 | cat >conftest.$ac_ext <<_ACEOF | ||
23282 | /* confdefs.h. */ | ||
23283 | _ACEOF | ||
23284 | cat confdefs.h >>conftest.$ac_ext | ||
23285 | cat >>conftest.$ac_ext <<_ACEOF | ||
23286 | /* end confdefs.h. */ | ||
23287 | |||
23288 | #ifdef HAVE_SYS_TYPES_H | ||
23289 | #include <sys/types.h> | ||
23290 | #endif | ||
23291 | #include <netinet/in.h> | ||
23292 | |||
23293 | |||
23294 | int | ||
23295 | main () | ||
23296 | { | ||
23297 | static struct sockaddr_in6 ac_aggr; | ||
23298 | if (sizeof ac_aggr.sin6_scope_id) | ||
23299 | return 0; | ||
23300 | ; | ||
23301 | return 0; | ||
23302 | } | ||
23303 | _ACEOF | ||
23304 | rm -f conftest.$ac_objext | ||
23305 | if { (ac_try="$ac_compile" | ||
23306 | case "(($ac_try" in | ||
23307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23308 | *) ac_try_echo=$ac_try;; | ||
23309 | esac | ||
23310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23311 | (eval "$ac_compile") 2>conftest.er1 | ||
23312 | ac_status=$? | ||
23313 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23314 | rm -f conftest.er1 | ||
23315 | cat conftest.err >&5 | ||
23316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23317 | (exit $ac_status); } && { | ||
23318 | test -z "$ac_c_werror_flag" || | ||
23319 | test ! -s conftest.err | ||
23320 | } && test -s conftest.$ac_objext; then | ||
23321 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes | ||
23322 | else | ||
23323 | echo "$as_me: failed program was:" >&5 | ||
23324 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23325 | |||
23326 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no | ||
23327 | fi | ||
23328 | |||
23329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23330 | fi | ||
23331 | |||
23332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23333 | fi | ||
23334 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5 | ||
23335 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; } | ||
23336 | if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then | ||
23337 | |||
23338 | cat >>confdefs.h <<_ACEOF | ||
23339 | #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 | ||
23340 | _ACEOF | ||
23341 | |||
23342 | |||
23343 | fi | ||
23344 | |||
23345 | fi | ||
23346 | |||
23347 | { echo "$as_me:$LINENO: checking for struct addrinfo" >&5 | ||
23348 | echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; } | ||
23349 | if test "${ac_cv_have_struct_addrinfo+set}" = set; then | ||
23350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23351 | else | ||
23352 | |||
23353 | cat >conftest.$ac_ext <<_ACEOF | ||
23354 | /* confdefs.h. */ | ||
23355 | _ACEOF | ||
23356 | cat confdefs.h >>conftest.$ac_ext | ||
23357 | cat >>conftest.$ac_ext <<_ACEOF | ||
23358 | /* end confdefs.h. */ | ||
23359 | |||
23360 | #include <sys/types.h> | ||
23361 | #include <sys/socket.h> | ||
23362 | #include <netdb.h> | ||
23363 | |||
23364 | int | ||
23365 | main () | ||
23366 | { | ||
23367 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
23368 | ; | ||
23369 | return 0; | ||
23370 | } | ||
23371 | _ACEOF | ||
23372 | rm -f conftest.$ac_objext | ||
23373 | if { (ac_try="$ac_compile" | ||
23374 | case "(($ac_try" in | ||
23375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23376 | *) ac_try_echo=$ac_try;; | ||
23377 | esac | ||
23378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23379 | (eval "$ac_compile") 2>conftest.er1 | ||
23380 | ac_status=$? | ||
23381 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23382 | rm -f conftest.er1 | ||
23383 | cat conftest.err >&5 | ||
23384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23385 | (exit $ac_status); } && { | ||
23386 | test -z "$ac_c_werror_flag" || | ||
23387 | test ! -s conftest.err | ||
23388 | } && test -s conftest.$ac_objext; then | ||
23389 | ac_cv_have_struct_addrinfo="yes" | ||
23390 | else | ||
23391 | echo "$as_me: failed program was:" >&5 | ||
23392 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23393 | |||
23394 | ac_cv_have_struct_addrinfo="no" | ||
23395 | |||
23396 | fi | ||
23397 | |||
23398 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23399 | |||
23400 | fi | ||
23401 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5 | ||
23402 | echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; } | ||
23403 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
23404 | |||
23405 | cat >>confdefs.h <<\_ACEOF | ||
23406 | #define HAVE_STRUCT_ADDRINFO 1 | ||
23407 | _ACEOF | ||
23408 | |||
23409 | fi | ||
23410 | |||
23411 | { echo "$as_me:$LINENO: checking for struct timeval" >&5 | ||
23412 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; } | ||
23413 | if test "${ac_cv_have_struct_timeval+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 <sys/time.h> | ||
23424 | int | ||
23425 | main () | ||
23426 | { | ||
23427 | struct timeval tv; tv.tv_sec = 1; | ||
23428 | ; | ||
23429 | return 0; | ||
23430 | } | ||
23431 | _ACEOF | ||
23432 | rm -f conftest.$ac_objext | ||
23433 | if { (ac_try="$ac_compile" | ||
23434 | case "(($ac_try" in | ||
23435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23436 | *) ac_try_echo=$ac_try;; | ||
23437 | esac | ||
23438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23439 | (eval "$ac_compile") 2>conftest.er1 | ||
23440 | ac_status=$? | ||
23441 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23442 | rm -f conftest.er1 | ||
23443 | cat conftest.err >&5 | ||
23444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23445 | (exit $ac_status); } && { | ||
23446 | test -z "$ac_c_werror_flag" || | ||
23447 | test ! -s conftest.err | ||
23448 | } && test -s conftest.$ac_objext; then | ||
23449 | ac_cv_have_struct_timeval="yes" | ||
23450 | else | ||
23451 | echo "$as_me: failed program was:" >&5 | ||
23452 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23453 | |||
23454 | ac_cv_have_struct_timeval="no" | ||
23455 | |||
23456 | fi | ||
23457 | |||
23458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23459 | |||
23460 | fi | ||
23461 | { echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5 | ||
23462 | echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; } | ||
23463 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
23464 | |||
23465 | cat >>confdefs.h <<\_ACEOF | ||
23466 | #define HAVE_STRUCT_TIMEVAL 1 | ||
23467 | _ACEOF | ||
23468 | |||
23469 | have_struct_timeval=1 | ||
23470 | fi | ||
23471 | |||
23472 | { echo "$as_me:$LINENO: checking for struct timespec" >&5 | ||
23473 | echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; } | ||
23474 | if test "${ac_cv_type_struct_timespec+set}" = set; then | ||
23475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23476 | else | ||
23477 | cat >conftest.$ac_ext <<_ACEOF | ||
23478 | /* confdefs.h. */ | ||
23479 | _ACEOF | ||
23480 | cat confdefs.h >>conftest.$ac_ext | ||
23481 | cat >>conftest.$ac_ext <<_ACEOF | ||
23482 | /* end confdefs.h. */ | ||
23483 | $ac_includes_default | ||
23484 | typedef struct timespec ac__type_new_; | ||
23485 | int | ||
23486 | main () | ||
23487 | { | ||
23488 | if ((ac__type_new_ *) 0) | ||
23489 | return 0; | ||
23490 | if (sizeof (ac__type_new_)) | ||
23491 | return 0; | ||
23492 | ; | ||
23493 | return 0; | ||
23494 | } | ||
23495 | _ACEOF | ||
23496 | rm -f conftest.$ac_objext | ||
23497 | if { (ac_try="$ac_compile" | ||
23498 | case "(($ac_try" in | ||
23499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23500 | *) ac_try_echo=$ac_try;; | ||
23501 | esac | ||
23502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23503 | (eval "$ac_compile") 2>conftest.er1 | ||
23504 | ac_status=$? | ||
23505 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23506 | rm -f conftest.er1 | ||
23507 | cat conftest.err >&5 | ||
23508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23509 | (exit $ac_status); } && { | ||
23510 | test -z "$ac_c_werror_flag" || | ||
23511 | test ! -s conftest.err | ||
23512 | } && test -s conftest.$ac_objext; then | ||
23513 | ac_cv_type_struct_timespec=yes | ||
23514 | else | ||
23515 | echo "$as_me: failed program was:" >&5 | ||
23516 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23517 | |||
23518 | ac_cv_type_struct_timespec=no | ||
23519 | fi | ||
23520 | |||
23521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23522 | fi | ||
23523 | { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5 | ||
23524 | echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; } | ||
23525 | if test $ac_cv_type_struct_timespec = yes; then | ||
23526 | |||
23527 | cat >>confdefs.h <<_ACEOF | ||
23528 | #define HAVE_STRUCT_TIMESPEC 1 | ||
23529 | _ACEOF | ||
23530 | |||
23531 | |||
23532 | fi | ||
23533 | |||
23534 | |||
23535 | # We need int64_t or else certian parts of the compile will fail. | ||
23536 | if test "x$ac_cv_have_int64_t" = "xno" && \ | ||
23537 | test "x$ac_cv_sizeof_long_int" != "x8" && \ | ||
23538 | test "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
23539 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
23540 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
23541 | echo "" | ||
23542 | exit 1; | ||
23543 | else | ||
23544 | if test "$cross_compiling" = yes; then | ||
23545 | { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
23546 | echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
23547 | |||
23548 | else | ||
23549 | cat >conftest.$ac_ext <<_ACEOF | ||
23550 | /* confdefs.h. */ | ||
23551 | _ACEOF | ||
23552 | cat confdefs.h >>conftest.$ac_ext | ||
23553 | cat >>conftest.$ac_ext <<_ACEOF | ||
23554 | /* end confdefs.h. */ | ||
23555 | |||
23556 | #include <stdio.h> | ||
23557 | #include <string.h> | ||
23558 | #ifdef HAVE_SNPRINTF | ||
23559 | main() | ||
23560 | { | ||
23561 | char buf[50]; | ||
23562 | char expected_out[50]; | ||
23563 | int mazsize = 50 ; | ||
23564 | #if (SIZEOF_LONG_INT == 8) | ||
23565 | long int num = 0x7fffffffffffffff; | ||
23566 | #else | ||
23567 | long long num = 0x7fffffffffffffffll; | ||
23568 | #endif | ||
23569 | strcpy(expected_out, "9223372036854775807"); | ||
23570 | snprintf(buf, mazsize, "%lld", num); | ||
23571 | if(strcmp(buf, expected_out) != 0) | ||
23572 | exit(1); | ||
23573 | exit(0); | ||
23574 | } | ||
23575 | #else | ||
23576 | main() { exit(0); } | ||
23577 | #endif | ||
23578 | |||
23579 | _ACEOF | ||
23580 | rm -f conftest$ac_exeext | ||
23581 | if { (ac_try="$ac_link" | ||
23582 | case "(($ac_try" in | ||
23583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23584 | *) ac_try_echo=$ac_try;; | ||
23585 | esac | ||
23586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23587 | (eval "$ac_link") 2>&5 | ||
23588 | ac_status=$? | ||
23589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23590 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
23591 | { (case "(($ac_try" in | ||
23592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23593 | *) ac_try_echo=$ac_try;; | ||
23594 | esac | ||
23595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
23596 | (eval "$ac_try") 2>&5 | ||
23597 | ac_status=$? | ||
23598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23599 | (exit $ac_status); }; }; then | ||
23600 | true | ||
23601 | else | ||
23602 | echo "$as_me: program exited with status $ac_status" >&5 | ||
23603 | echo "$as_me: failed program was:" >&5 | ||
23604 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23605 | |||
23606 | ( exit $ac_status ) | ||
23607 | cat >>confdefs.h <<\_ACEOF | ||
23608 | #define BROKEN_SNPRINTF 1 | ||
23609 | _ACEOF | ||
23610 | |||
23611 | fi | ||
23612 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
23613 | fi | ||
23614 | |||
23615 | |||
23616 | fi | ||
23617 | |||
23618 | |||
23619 | # look for field 'ut_host' in header 'utmp.h' | ||
23620 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
23621 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
23622 | { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5 | ||
23623 | echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; } | ||
23624 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23626 | else | ||
23627 | |||
23628 | cat >conftest.$ac_ext <<_ACEOF | ||
23629 | /* confdefs.h. */ | ||
23630 | _ACEOF | ||
23631 | cat confdefs.h >>conftest.$ac_ext | ||
23632 | cat >>conftest.$ac_ext <<_ACEOF | ||
23633 | /* end confdefs.h. */ | ||
23634 | #include <utmp.h> | ||
23635 | |||
23636 | _ACEOF | ||
23637 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23638 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
23639 | eval "$ossh_varname=yes" | ||
23640 | else | ||
23641 | eval "$ossh_varname=no" | ||
23642 | fi | ||
23643 | rm -f conftest* | ||
23644 | |||
23645 | fi | ||
23646 | |||
23647 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23648 | if test -n "`echo $ossh_varname`"; then | ||
23649 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23650 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23651 | if test "x$ossh_result" = "xyes"; then | ||
23652 | |||
23653 | cat >>confdefs.h <<\_ACEOF | ||
23654 | #define HAVE_HOST_IN_UTMP 1 | ||
23655 | _ACEOF | ||
23656 | |||
23657 | fi | ||
23658 | else | ||
23659 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23660 | echo "${ECHO_T}no" >&6; } | ||
23661 | fi | ||
23662 | |||
23663 | |||
23664 | # look for field 'ut_host' in header 'utmpx.h' | ||
23665 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
23666 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
23667 | { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5 | ||
23668 | echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; } | ||
23669 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23671 | else | ||
23672 | |||
23673 | cat >conftest.$ac_ext <<_ACEOF | ||
23674 | /* confdefs.h. */ | ||
23675 | _ACEOF | ||
23676 | cat confdefs.h >>conftest.$ac_ext | ||
23677 | cat >>conftest.$ac_ext <<_ACEOF | ||
23678 | /* end confdefs.h. */ | ||
23679 | #include <utmpx.h> | ||
23680 | |||
23681 | _ACEOF | ||
23682 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23683 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
23684 | eval "$ossh_varname=yes" | ||
23685 | else | ||
23686 | eval "$ossh_varname=no" | ||
23687 | fi | ||
23688 | rm -f conftest* | ||
23689 | |||
23690 | fi | ||
23691 | |||
23692 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23693 | if test -n "`echo $ossh_varname`"; then | ||
23694 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23695 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23696 | if test "x$ossh_result" = "xyes"; then | ||
23697 | |||
23698 | cat >>confdefs.h <<\_ACEOF | ||
23699 | #define HAVE_HOST_IN_UTMPX 1 | ||
23700 | _ACEOF | ||
23701 | |||
23702 | fi | ||
23703 | else | ||
23704 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23705 | echo "${ECHO_T}no" >&6; } | ||
23706 | fi | ||
23707 | |||
23708 | |||
23709 | # look for field 'syslen' in header 'utmpx.h' | ||
23710 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
23711 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
23712 | { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5 | ||
23713 | echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; } | ||
23714 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23716 | else | ||
23717 | |||
23718 | cat >conftest.$ac_ext <<_ACEOF | ||
23719 | /* confdefs.h. */ | ||
23720 | _ACEOF | ||
23721 | cat confdefs.h >>conftest.$ac_ext | ||
23722 | cat >>conftest.$ac_ext <<_ACEOF | ||
23723 | /* end confdefs.h. */ | ||
23724 | #include <utmpx.h> | ||
23725 | |||
23726 | _ACEOF | ||
23727 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23728 | $EGREP "syslen" >/dev/null 2>&1; then | ||
23729 | eval "$ossh_varname=yes" | ||
23730 | else | ||
23731 | eval "$ossh_varname=no" | ||
23732 | fi | ||
23733 | rm -f conftest* | ||
23734 | |||
23735 | fi | ||
23736 | |||
23737 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23738 | if test -n "`echo $ossh_varname`"; then | ||
23739 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23740 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23741 | if test "x$ossh_result" = "xyes"; then | ||
23742 | |||
23743 | cat >>confdefs.h <<\_ACEOF | ||
23744 | #define HAVE_SYSLEN_IN_UTMPX 1 | ||
23745 | _ACEOF | ||
23746 | |||
23747 | fi | ||
23748 | else | ||
23749 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23750 | echo "${ECHO_T}no" >&6; } | ||
23751 | fi | ||
23752 | |||
23753 | |||
23754 | # look for field 'ut_pid' in header 'utmp.h' | ||
23755 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
23756 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
23757 | { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5 | ||
23758 | echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; } | ||
23759 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23761 | else | ||
23762 | |||
23763 | cat >conftest.$ac_ext <<_ACEOF | ||
23764 | /* confdefs.h. */ | ||
23765 | _ACEOF | ||
23766 | cat confdefs.h >>conftest.$ac_ext | ||
23767 | cat >>conftest.$ac_ext <<_ACEOF | ||
23768 | /* end confdefs.h. */ | ||
23769 | #include <utmp.h> | ||
23770 | |||
23771 | _ACEOF | ||
23772 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23773 | $EGREP "ut_pid" >/dev/null 2>&1; then | ||
23774 | eval "$ossh_varname=yes" | ||
23775 | else | ||
23776 | eval "$ossh_varname=no" | ||
23777 | fi | ||
23778 | rm -f conftest* | ||
23779 | |||
23780 | fi | ||
23781 | |||
23782 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23783 | if test -n "`echo $ossh_varname`"; then | ||
23784 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23785 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23786 | if test "x$ossh_result" = "xyes"; then | ||
23787 | |||
23788 | cat >>confdefs.h <<\_ACEOF | ||
23789 | #define HAVE_PID_IN_UTMP 1 | ||
23790 | _ACEOF | ||
23791 | |||
23792 | fi | ||
23793 | else | ||
23794 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23795 | echo "${ECHO_T}no" >&6; } | ||
23796 | fi | ||
23797 | |||
23798 | |||
23799 | # look for field 'ut_type' in header 'utmp.h' | ||
23800 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
23801 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
23802 | { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5 | ||
23803 | echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; } | ||
23804 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23806 | else | ||
23807 | |||
23808 | cat >conftest.$ac_ext <<_ACEOF | ||
23809 | /* confdefs.h. */ | ||
23810 | _ACEOF | ||
23811 | cat confdefs.h >>conftest.$ac_ext | ||
23812 | cat >>conftest.$ac_ext <<_ACEOF | ||
23813 | /* end confdefs.h. */ | ||
23814 | #include <utmp.h> | ||
23815 | |||
23816 | _ACEOF | ||
23817 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23818 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
23819 | eval "$ossh_varname=yes" | ||
23820 | else | ||
23821 | eval "$ossh_varname=no" | ||
23822 | fi | ||
23823 | rm -f conftest* | ||
23824 | |||
23825 | fi | ||
23826 | |||
23827 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23828 | if test -n "`echo $ossh_varname`"; then | ||
23829 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23830 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23831 | if test "x$ossh_result" = "xyes"; then | ||
23832 | |||
23833 | cat >>confdefs.h <<\_ACEOF | ||
23834 | #define HAVE_TYPE_IN_UTMP 1 | ||
23835 | _ACEOF | ||
23836 | |||
23837 | fi | ||
23838 | else | ||
23839 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23840 | echo "${ECHO_T}no" >&6; } | ||
23841 | fi | ||
23842 | |||
23843 | |||
23844 | # look for field 'ut_type' in header 'utmpx.h' | ||
23845 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
23846 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
23847 | { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5 | ||
23848 | echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; } | ||
23849 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23851 | else | ||
23852 | |||
23853 | cat >conftest.$ac_ext <<_ACEOF | ||
23854 | /* confdefs.h. */ | ||
23855 | _ACEOF | ||
23856 | cat confdefs.h >>conftest.$ac_ext | ||
23857 | cat >>conftest.$ac_ext <<_ACEOF | ||
23858 | /* end confdefs.h. */ | ||
23859 | #include <utmpx.h> | ||
23860 | |||
23861 | _ACEOF | ||
23862 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23863 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
23864 | eval "$ossh_varname=yes" | ||
23865 | else | ||
23866 | eval "$ossh_varname=no" | ||
23867 | fi | ||
23868 | rm -f conftest* | ||
23869 | |||
23870 | fi | ||
23871 | |||
23872 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23873 | if test -n "`echo $ossh_varname`"; then | ||
23874 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23875 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23876 | if test "x$ossh_result" = "xyes"; then | ||
23877 | |||
23878 | cat >>confdefs.h <<\_ACEOF | ||
23879 | #define HAVE_TYPE_IN_UTMPX 1 | ||
23880 | _ACEOF | ||
23881 | |||
23882 | fi | ||
23883 | else | ||
23884 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23885 | echo "${ECHO_T}no" >&6; } | ||
23886 | fi | ||
23887 | |||
23888 | |||
23889 | # look for field 'ut_tv' in header 'utmp.h' | ||
23890 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
23891 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
23892 | { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5 | ||
23893 | echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; } | ||
23894 | if { as_var=$ossh_varname; eval "test \"\${$as_var+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 | #include <utmp.h> | ||
23905 | |||
23906 | _ACEOF | ||
23907 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23908 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
23909 | eval "$ossh_varname=yes" | ||
23910 | else | ||
23911 | eval "$ossh_varname=no" | ||
23912 | fi | ||
23913 | rm -f conftest* | ||
23914 | |||
23915 | fi | ||
23916 | |||
23917 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23918 | if test -n "`echo $ossh_varname`"; then | ||
23919 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23920 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23921 | if test "x$ossh_result" = "xyes"; then | ||
23922 | |||
23923 | cat >>confdefs.h <<\_ACEOF | ||
23924 | #define HAVE_TV_IN_UTMP 1 | ||
23925 | _ACEOF | ||
23926 | |||
23927 | fi | ||
23928 | else | ||
23929 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23930 | echo "${ECHO_T}no" >&6; } | ||
23931 | fi | ||
23932 | |||
23933 | |||
23934 | # look for field 'ut_id' in header 'utmp.h' | ||
23935 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
23936 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
23937 | { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5 | ||
23938 | echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; } | ||
23939 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23941 | else | ||
23942 | |||
23943 | cat >conftest.$ac_ext <<_ACEOF | ||
23944 | /* confdefs.h. */ | ||
23945 | _ACEOF | ||
23946 | cat confdefs.h >>conftest.$ac_ext | ||
23947 | cat >>conftest.$ac_ext <<_ACEOF | ||
23948 | /* end confdefs.h. */ | ||
23949 | #include <utmp.h> | ||
23950 | |||
23951 | _ACEOF | ||
23952 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23953 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
23954 | eval "$ossh_varname=yes" | ||
23955 | else | ||
23956 | eval "$ossh_varname=no" | ||
23957 | fi | ||
23958 | rm -f conftest* | ||
23959 | |||
23960 | fi | ||
23961 | |||
23962 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
23963 | if test -n "`echo $ossh_varname`"; then | ||
23964 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
23965 | echo "${ECHO_T}$ossh_result" >&6; } | ||
23966 | if test "x$ossh_result" = "xyes"; then | ||
23967 | |||
23968 | cat >>confdefs.h <<\_ACEOF | ||
23969 | #define HAVE_ID_IN_UTMP 1 | ||
23970 | _ACEOF | ||
23971 | |||
23972 | fi | ||
23973 | else | ||
23974 | { echo "$as_me:$LINENO: result: no" >&5 | ||
23975 | echo "${ECHO_T}no" >&6; } | ||
23976 | fi | ||
23977 | |||
23978 | |||
23979 | # look for field 'ut_id' in header 'utmpx.h' | ||
23980 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
23981 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
23982 | { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5 | ||
23983 | echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; } | ||
23984 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
23985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
23986 | else | ||
23987 | |||
23988 | cat >conftest.$ac_ext <<_ACEOF | ||
23989 | /* confdefs.h. */ | ||
23990 | _ACEOF | ||
23991 | cat confdefs.h >>conftest.$ac_ext | ||
23992 | cat >>conftest.$ac_ext <<_ACEOF | ||
23993 | /* end confdefs.h. */ | ||
23994 | #include <utmpx.h> | ||
23995 | |||
23996 | _ACEOF | ||
23997 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
23998 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
23999 | eval "$ossh_varname=yes" | ||
24000 | else | ||
24001 | eval "$ossh_varname=no" | ||
24002 | fi | ||
24003 | rm -f conftest* | ||
24004 | |||
24005 | fi | ||
24006 | |||
24007 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24008 | if test -n "`echo $ossh_varname`"; then | ||
24009 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24010 | echo "${ECHO_T}$ossh_result" >&6; } | ||
24011 | if test "x$ossh_result" = "xyes"; then | ||
24012 | |||
24013 | cat >>confdefs.h <<\_ACEOF | ||
24014 | #define HAVE_ID_IN_UTMPX 1 | ||
24015 | _ACEOF | ||
24016 | |||
24017 | fi | ||
24018 | else | ||
24019 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24020 | echo "${ECHO_T}no" >&6; } | ||
24021 | fi | ||
24022 | |||
24023 | |||
24024 | # look for field 'ut_addr' in header 'utmp.h' | ||
24025 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
24026 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
24027 | { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5 | ||
24028 | echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; } | ||
24029 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24031 | else | ||
24032 | |||
24033 | cat >conftest.$ac_ext <<_ACEOF | ||
24034 | /* confdefs.h. */ | ||
24035 | _ACEOF | ||
24036 | cat confdefs.h >>conftest.$ac_ext | ||
24037 | cat >>conftest.$ac_ext <<_ACEOF | ||
24038 | /* end confdefs.h. */ | ||
24039 | #include <utmp.h> | ||
24040 | |||
24041 | _ACEOF | ||
24042 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24043 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
24044 | eval "$ossh_varname=yes" | ||
24045 | else | ||
24046 | eval "$ossh_varname=no" | ||
24047 | fi | ||
24048 | rm -f conftest* | ||
24049 | |||
24050 | fi | ||
24051 | |||
24052 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24053 | if test -n "`echo $ossh_varname`"; then | ||
24054 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24055 | echo "${ECHO_T}$ossh_result" >&6; } | ||
24056 | if test "x$ossh_result" = "xyes"; then | ||
24057 | |||
24058 | cat >>confdefs.h <<\_ACEOF | ||
24059 | #define HAVE_ADDR_IN_UTMP 1 | ||
24060 | _ACEOF | ||
24061 | |||
24062 | fi | ||
24063 | else | ||
24064 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24065 | echo "${ECHO_T}no" >&6; } | ||
24066 | fi | ||
24067 | |||
24068 | |||
24069 | # look for field 'ut_addr' in header 'utmpx.h' | ||
24070 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
24071 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
24072 | { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5 | ||
24073 | echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; } | ||
24074 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24076 | else | ||
24077 | |||
24078 | cat >conftest.$ac_ext <<_ACEOF | ||
24079 | /* confdefs.h. */ | ||
24080 | _ACEOF | ||
24081 | cat confdefs.h >>conftest.$ac_ext | ||
24082 | cat >>conftest.$ac_ext <<_ACEOF | ||
24083 | /* end confdefs.h. */ | ||
24084 | #include <utmpx.h> | ||
24085 | |||
24086 | _ACEOF | ||
24087 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24088 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
24089 | eval "$ossh_varname=yes" | ||
24090 | else | ||
24091 | eval "$ossh_varname=no" | ||
24092 | fi | ||
24093 | rm -f conftest* | ||
24094 | |||
24095 | fi | ||
24096 | |||
24097 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24098 | if test -n "`echo $ossh_varname`"; then | ||
24099 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24100 | echo "${ECHO_T}$ossh_result" >&6; } | ||
24101 | if test "x$ossh_result" = "xyes"; then | ||
24102 | |||
24103 | cat >>confdefs.h <<\_ACEOF | ||
24104 | #define HAVE_ADDR_IN_UTMPX 1 | ||
24105 | _ACEOF | ||
24106 | |||
24107 | fi | ||
24108 | else | ||
24109 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24110 | echo "${ECHO_T}no" >&6; } | ||
24111 | fi | ||
24112 | |||
24113 | |||
24114 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
24115 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
24116 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
24117 | { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5 | ||
24118 | echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; } | ||
24119 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24121 | else | ||
24122 | |||
24123 | cat >conftest.$ac_ext <<_ACEOF | ||
24124 | /* confdefs.h. */ | ||
24125 | _ACEOF | ||
24126 | cat confdefs.h >>conftest.$ac_ext | ||
24127 | cat >>conftest.$ac_ext <<_ACEOF | ||
24128 | /* end confdefs.h. */ | ||
24129 | #include <utmp.h> | ||
24130 | |||
24131 | _ACEOF | ||
24132 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24133 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
24134 | eval "$ossh_varname=yes" | ||
24135 | else | ||
24136 | eval "$ossh_varname=no" | ||
24137 | fi | ||
24138 | rm -f conftest* | ||
24139 | |||
24140 | fi | ||
24141 | |||
24142 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24143 | if test -n "`echo $ossh_varname`"; then | ||
24144 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24145 | echo "${ECHO_T}$ossh_result" >&6; } | ||
24146 | if test "x$ossh_result" = "xyes"; then | ||
24147 | |||
24148 | cat >>confdefs.h <<\_ACEOF | ||
24149 | #define HAVE_ADDR_V6_IN_UTMP 1 | ||
24150 | _ACEOF | ||
24151 | |||
24152 | fi | ||
24153 | else | ||
24154 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24155 | echo "${ECHO_T}no" >&6; } | ||
24156 | fi | ||
24157 | |||
24158 | |||
24159 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
24160 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
24161 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
24162 | { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
24163 | echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; } | ||
24164 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24166 | else | ||
24167 | |||
24168 | cat >conftest.$ac_ext <<_ACEOF | ||
24169 | /* confdefs.h. */ | ||
24170 | _ACEOF | ||
24171 | cat confdefs.h >>conftest.$ac_ext | ||
24172 | cat >>conftest.$ac_ext <<_ACEOF | ||
24173 | /* end confdefs.h. */ | ||
24174 | #include <utmpx.h> | ||
24175 | |||
24176 | _ACEOF | ||
24177 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24178 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
24179 | eval "$ossh_varname=yes" | ||
24180 | else | ||
24181 | eval "$ossh_varname=no" | ||
24182 | fi | ||
24183 | rm -f conftest* | ||
24184 | |||
24185 | fi | ||
24186 | |||
24187 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24188 | if test -n "`echo $ossh_varname`"; then | ||
24189 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24190 | echo "${ECHO_T}$ossh_result" >&6; } | ||
24191 | if test "x$ossh_result" = "xyes"; then | ||
24192 | |||
24193 | cat >>confdefs.h <<\_ACEOF | ||
24194 | #define HAVE_ADDR_V6_IN_UTMPX 1 | ||
24195 | _ACEOF | ||
24196 | |||
24197 | fi | ||
24198 | else | ||
24199 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24200 | echo "${ECHO_T}no" >&6; } | ||
24201 | fi | ||
24202 | |||
24203 | |||
24204 | # look for field 'ut_exit' in header 'utmp.h' | ||
24205 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
24206 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
24207 | { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5 | ||
24208 | echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; } | ||
24209 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24210 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24211 | else | ||
24212 | |||
24213 | cat >conftest.$ac_ext <<_ACEOF | ||
24214 | /* confdefs.h. */ | ||
24215 | _ACEOF | ||
24216 | cat confdefs.h >>conftest.$ac_ext | ||
24217 | cat >>conftest.$ac_ext <<_ACEOF | ||
24218 | /* end confdefs.h. */ | ||
24219 | #include <utmp.h> | ||
24220 | |||
24221 | _ACEOF | ||
24222 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24223 | $EGREP "ut_exit" >/dev/null 2>&1; then | ||
24224 | eval "$ossh_varname=yes" | ||
24225 | else | ||
24226 | eval "$ossh_varname=no" | ||
24227 | fi | ||
24228 | rm -f conftest* | ||
24229 | |||
24230 | fi | ||
24231 | |||
24232 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24233 | if test -n "`echo $ossh_varname`"; then | ||
24234 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24235 | echo "${ECHO_T}$ossh_result" >&6; } | ||
24236 | if test "x$ossh_result" = "xyes"; then | ||
24237 | |||
24238 | cat >>confdefs.h <<\_ACEOF | ||
24239 | #define HAVE_EXIT_IN_UTMP 1 | ||
24240 | _ACEOF | ||
24241 | |||
24242 | fi | ||
24243 | else | ||
24244 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24245 | echo "${ECHO_T}no" >&6; } | ||
24246 | fi | ||
24247 | |||
24248 | |||
24249 | # look for field 'ut_time' in header 'utmp.h' | ||
24250 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
24251 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
24252 | { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5 | ||
24253 | echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; } | ||
24254 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24256 | else | ||
24257 | |||
24258 | cat >conftest.$ac_ext <<_ACEOF | ||
24259 | /* confdefs.h. */ | ||
24260 | _ACEOF | ||
24261 | cat confdefs.h >>conftest.$ac_ext | ||
24262 | cat >>conftest.$ac_ext <<_ACEOF | ||
24263 | /* end confdefs.h. */ | ||
24264 | #include <utmp.h> | ||
24265 | |||
24266 | _ACEOF | ||
24267 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24268 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
24269 | eval "$ossh_varname=yes" | ||
24270 | else | ||
24271 | eval "$ossh_varname=no" | ||
24272 | fi | ||
24273 | rm -f conftest* | ||
24274 | |||
24275 | fi | ||
24276 | |||
24277 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24278 | if test -n "`echo $ossh_varname`"; then | ||
24279 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24280 | echo "${ECHO_T}$ossh_result" >&6; } | ||
24281 | if test "x$ossh_result" = "xyes"; then | ||
24282 | |||
24283 | cat >>confdefs.h <<\_ACEOF | ||
24284 | #define HAVE_TIME_IN_UTMP 1 | ||
24285 | _ACEOF | ||
24286 | |||
24287 | fi | ||
24288 | else | ||
24289 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24290 | echo "${ECHO_T}no" >&6; } | ||
24291 | fi | ||
24292 | |||
24293 | |||
24294 | # look for field 'ut_time' in header 'utmpx.h' | ||
24295 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
24296 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
24297 | { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5 | ||
24298 | echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; } | ||
24299 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24301 | else | ||
24302 | |||
24303 | cat >conftest.$ac_ext <<_ACEOF | ||
24304 | /* confdefs.h. */ | ||
24305 | _ACEOF | ||
24306 | cat confdefs.h >>conftest.$ac_ext | ||
24307 | cat >>conftest.$ac_ext <<_ACEOF | ||
24308 | /* end confdefs.h. */ | ||
24309 | #include <utmpx.h> | ||
24310 | |||
24311 | _ACEOF | ||
24312 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24313 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
24314 | eval "$ossh_varname=yes" | ||
24315 | else | ||
24316 | eval "$ossh_varname=no" | ||
24317 | fi | ||
24318 | rm -f conftest* | ||
24319 | |||
24320 | fi | ||
24321 | |||
24322 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24323 | if test -n "`echo $ossh_varname`"; then | ||
24324 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24325 | echo "${ECHO_T}$ossh_result" >&6; } | ||
24326 | if test "x$ossh_result" = "xyes"; then | ||
24327 | |||
24328 | cat >>confdefs.h <<\_ACEOF | ||
24329 | #define HAVE_TIME_IN_UTMPX 1 | ||
24330 | _ACEOF | ||
24331 | |||
24332 | fi | ||
24333 | else | ||
24334 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24335 | echo "${ECHO_T}no" >&6; } | ||
24336 | fi | ||
24337 | |||
24338 | |||
24339 | # look for field 'ut_tv' in header 'utmpx.h' | ||
24340 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
24341 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
24342 | { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5 | ||
24343 | echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; } | ||
24344 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24346 | else | ||
24347 | |||
24348 | cat >conftest.$ac_ext <<_ACEOF | ||
24349 | /* confdefs.h. */ | ||
24350 | _ACEOF | ||
24351 | cat confdefs.h >>conftest.$ac_ext | ||
24352 | cat >>conftest.$ac_ext <<_ACEOF | ||
24353 | /* end confdefs.h. */ | ||
24354 | #include <utmpx.h> | ||
24355 | |||
24356 | _ACEOF | ||
24357 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24358 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
24359 | eval "$ossh_varname=yes" | ||
24360 | else | ||
24361 | eval "$ossh_varname=no" | ||
24362 | fi | ||
24363 | rm -f conftest* | ||
24364 | |||
24365 | fi | ||
24366 | |||
24367 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24368 | if test -n "`echo $ossh_varname`"; then | ||
24369 | { echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24370 | echo "${ECHO_T}$ossh_result" >&6; } | ||
24371 | if test "x$ossh_result" = "xyes"; then | ||
24372 | |||
24373 | cat >>confdefs.h <<\_ACEOF | ||
24374 | #define HAVE_TV_IN_UTMPX 1 | ||
24375 | _ACEOF | ||
24376 | |||
24377 | fi | ||
24378 | else | ||
24379 | { echo "$as_me:$LINENO: result: no" >&5 | ||
24380 | echo "${ECHO_T}no" >&6; } | ||
24381 | fi | ||
24382 | |||
24383 | |||
24384 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 | ||
24385 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; } | ||
24386 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | ||
24387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24388 | else | ||
24389 | cat >conftest.$ac_ext <<_ACEOF | ||
24390 | /* confdefs.h. */ | ||
24391 | _ACEOF | ||
24392 | cat confdefs.h >>conftest.$ac_ext | ||
24393 | cat >>conftest.$ac_ext <<_ACEOF | ||
24394 | /* end confdefs.h. */ | ||
24395 | $ac_includes_default | ||
24396 | int | ||
24397 | main () | ||
24398 | { | ||
24399 | static struct stat ac_aggr; | ||
24400 | if (ac_aggr.st_blksize) | ||
24401 | return 0; | ||
24402 | ; | ||
24403 | return 0; | ||
24404 | } | ||
24405 | _ACEOF | ||
24406 | rm -f conftest.$ac_objext | ||
24407 | if { (ac_try="$ac_compile" | ||
24408 | case "(($ac_try" in | ||
24409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24410 | *) ac_try_echo=$ac_try;; | ||
24411 | esac | ||
24412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24413 | (eval "$ac_compile") 2>conftest.er1 | ||
24414 | ac_status=$? | ||
24415 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24416 | rm -f conftest.er1 | ||
24417 | cat conftest.err >&5 | ||
24418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24419 | (exit $ac_status); } && { | ||
24420 | test -z "$ac_c_werror_flag" || | ||
24421 | test ! -s conftest.err | ||
24422 | } && test -s conftest.$ac_objext; then | ||
24423 | ac_cv_member_struct_stat_st_blksize=yes | ||
24424 | else | ||
24425 | echo "$as_me: failed program was:" >&5 | ||
24426 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24427 | |||
24428 | cat >conftest.$ac_ext <<_ACEOF | ||
24429 | /* confdefs.h. */ | ||
24430 | _ACEOF | ||
24431 | cat confdefs.h >>conftest.$ac_ext | ||
24432 | cat >>conftest.$ac_ext <<_ACEOF | ||
24433 | /* end confdefs.h. */ | ||
24434 | $ac_includes_default | ||
24435 | int | ||
24436 | main () | ||
24437 | { | ||
24438 | static struct stat ac_aggr; | ||
24439 | if (sizeof ac_aggr.st_blksize) | ||
24440 | return 0; | ||
24441 | ; | ||
24442 | return 0; | ||
24443 | } | ||
24444 | _ACEOF | ||
24445 | rm -f conftest.$ac_objext | ||
24446 | if { (ac_try="$ac_compile" | ||
24447 | case "(($ac_try" in | ||
24448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24449 | *) ac_try_echo=$ac_try;; | ||
24450 | esac | ||
24451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24452 | (eval "$ac_compile") 2>conftest.er1 | ||
24453 | ac_status=$? | ||
24454 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24455 | rm -f conftest.er1 | ||
24456 | cat conftest.err >&5 | ||
24457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24458 | (exit $ac_status); } && { | ||
24459 | test -z "$ac_c_werror_flag" || | ||
24460 | test ! -s conftest.err | ||
24461 | } && test -s conftest.$ac_objext; then | ||
24462 | ac_cv_member_struct_stat_st_blksize=yes | ||
24463 | else | ||
24464 | echo "$as_me: failed program was:" >&5 | ||
24465 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24466 | |||
24467 | ac_cv_member_struct_stat_st_blksize=no | ||
24468 | fi | ||
24469 | |||
24470 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24471 | fi | ||
24472 | |||
24473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24474 | fi | ||
24475 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | ||
24476 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } | ||
24477 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | ||
24478 | |||
24479 | cat >>confdefs.h <<_ACEOF | ||
24480 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
24481 | _ACEOF | ||
24482 | |||
24483 | |||
24484 | fi | ||
24485 | |||
24486 | { echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5 | ||
24487 | echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; } | ||
24488 | if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then | ||
24489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24490 | else | ||
24491 | cat >conftest.$ac_ext <<_ACEOF | ||
24492 | /* confdefs.h. */ | ||
24493 | _ACEOF | ||
24494 | cat confdefs.h >>conftest.$ac_ext | ||
24495 | cat >>conftest.$ac_ext <<_ACEOF | ||
24496 | /* end confdefs.h. */ | ||
24497 | |||
24498 | #include <stdio.h> | ||
24499 | #if HAVE_SYS_TYPES_H | ||
24500 | # include <sys/types.h> | ||
24501 | #endif | ||
24502 | #include <netinet/in.h> | ||
24503 | #include <arpa/nameser.h> | ||
24504 | #include <resolv.h> | ||
24505 | |||
24506 | |||
24507 | int | ||
24508 | main () | ||
24509 | { | ||
24510 | static struct __res_state ac_aggr; | ||
24511 | if (ac_aggr.retrans) | ||
24512 | return 0; | ||
24513 | ; | ||
24514 | return 0; | ||
24515 | } | ||
24516 | _ACEOF | ||
24517 | rm -f conftest.$ac_objext | ||
24518 | if { (ac_try="$ac_compile" | ||
24519 | case "(($ac_try" in | ||
24520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24521 | *) ac_try_echo=$ac_try;; | ||
24522 | esac | ||
24523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24524 | (eval "$ac_compile") 2>conftest.er1 | ||
24525 | ac_status=$? | ||
24526 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24527 | rm -f conftest.er1 | ||
24528 | cat conftest.err >&5 | ||
24529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24530 | (exit $ac_status); } && { | ||
24531 | test -z "$ac_c_werror_flag" || | ||
24532 | test ! -s conftest.err | ||
24533 | } && test -s conftest.$ac_objext; then | ||
24534 | ac_cv_member_struct___res_state_retrans=yes | ||
24535 | else | ||
24536 | echo "$as_me: failed program was:" >&5 | ||
24537 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24538 | |||
24539 | cat >conftest.$ac_ext <<_ACEOF | ||
24540 | /* confdefs.h. */ | ||
24541 | _ACEOF | ||
24542 | cat confdefs.h >>conftest.$ac_ext | ||
24543 | cat >>conftest.$ac_ext <<_ACEOF | ||
24544 | /* end confdefs.h. */ | ||
24545 | |||
24546 | #include <stdio.h> | ||
24547 | #if HAVE_SYS_TYPES_H | ||
24548 | # include <sys/types.h> | ||
24549 | #endif | ||
24550 | #include <netinet/in.h> | ||
24551 | #include <arpa/nameser.h> | ||
24552 | #include <resolv.h> | ||
24553 | |||
24554 | |||
24555 | int | ||
24556 | main () | ||
24557 | { | ||
24558 | static struct __res_state ac_aggr; | ||
24559 | if (sizeof ac_aggr.retrans) | ||
24560 | return 0; | ||
24561 | ; | ||
24562 | return 0; | ||
24563 | } | ||
24564 | _ACEOF | ||
24565 | rm -f conftest.$ac_objext | ||
24566 | if { (ac_try="$ac_compile" | ||
24567 | case "(($ac_try" in | ||
24568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24569 | *) ac_try_echo=$ac_try;; | ||
24570 | esac | ||
24571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24572 | (eval "$ac_compile") 2>conftest.er1 | ||
24573 | ac_status=$? | ||
24574 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24575 | rm -f conftest.er1 | ||
24576 | cat conftest.err >&5 | ||
24577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24578 | (exit $ac_status); } && { | ||
24579 | test -z "$ac_c_werror_flag" || | ||
24580 | test ! -s conftest.err | ||
24581 | } && test -s conftest.$ac_objext; then | ||
24582 | ac_cv_member_struct___res_state_retrans=yes | ||
24583 | else | ||
24584 | echo "$as_me: failed program was:" >&5 | ||
24585 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24586 | |||
24587 | ac_cv_member_struct___res_state_retrans=no | ||
24588 | fi | ||
24589 | |||
24590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24591 | fi | ||
24592 | |||
24593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24594 | fi | ||
24595 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5 | ||
24596 | echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; } | ||
24597 | if test $ac_cv_member_struct___res_state_retrans = yes; then | ||
24598 | : | ||
24599 | else | ||
24600 | |||
24601 | cat >>confdefs.h <<\_ACEOF | ||
24602 | #define __res_state state | ||
24603 | _ACEOF | ||
24604 | |||
24605 | fi | ||
24606 | |||
24607 | |||
24608 | { echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5 | ||
24609 | echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; } | ||
24610 | if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then | ||
24611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24612 | else | ||
24613 | |||
24614 | cat >conftest.$ac_ext <<_ACEOF | ||
24615 | /* confdefs.h. */ | ||
24616 | _ACEOF | ||
24617 | cat confdefs.h >>conftest.$ac_ext | ||
24618 | cat >>conftest.$ac_ext <<_ACEOF | ||
24619 | /* end confdefs.h. */ | ||
24620 | |||
24621 | #include <sys/types.h> | ||
24622 | #include <sys/socket.h> | ||
24623 | |||
24624 | int | ||
24625 | main () | ||
24626 | { | ||
24627 | struct sockaddr_storage s; s.ss_family = 1; | ||
24628 | ; | ||
24629 | return 0; | ||
24630 | } | ||
24631 | _ACEOF | ||
24632 | rm -f conftest.$ac_objext | ||
24633 | if { (ac_try="$ac_compile" | ||
24634 | case "(($ac_try" in | ||
24635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24636 | *) ac_try_echo=$ac_try;; | ||
24637 | esac | ||
24638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24639 | (eval "$ac_compile") 2>conftest.er1 | ||
24640 | ac_status=$? | ||
24641 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24642 | rm -f conftest.er1 | ||
24643 | cat conftest.err >&5 | ||
24644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24645 | (exit $ac_status); } && { | ||
24646 | test -z "$ac_c_werror_flag" || | ||
24647 | test ! -s conftest.err | ||
24648 | } && test -s conftest.$ac_objext; then | ||
24649 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
24650 | else | ||
24651 | echo "$as_me: failed program was:" >&5 | ||
24652 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24653 | |||
24654 | ac_cv_have_ss_family_in_struct_ss="no" | ||
24655 | fi | ||
24656 | |||
24657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24658 | |||
24659 | fi | ||
24660 | { echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
24661 | echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; } | ||
24662 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
24663 | |||
24664 | cat >>confdefs.h <<\_ACEOF | ||
24665 | #define HAVE_SS_FAMILY_IN_SS 1 | ||
24666 | _ACEOF | ||
24667 | |||
24668 | fi | ||
24669 | |||
24670 | { echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
24671 | echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; } | ||
24672 | if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then | ||
24673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24674 | else | ||
24675 | |||
24676 | cat >conftest.$ac_ext <<_ACEOF | ||
24677 | /* confdefs.h. */ | ||
24678 | _ACEOF | ||
24679 | cat confdefs.h >>conftest.$ac_ext | ||
24680 | cat >>conftest.$ac_ext <<_ACEOF | ||
24681 | /* end confdefs.h. */ | ||
24682 | |||
24683 | #include <sys/types.h> | ||
24684 | #include <sys/socket.h> | ||
24685 | |||
24686 | int | ||
24687 | main () | ||
24688 | { | ||
24689 | struct sockaddr_storage s; s.__ss_family = 1; | ||
24690 | ; | ||
24691 | return 0; | ||
24692 | } | ||
24693 | _ACEOF | ||
24694 | rm -f conftest.$ac_objext | ||
24695 | if { (ac_try="$ac_compile" | ||
24696 | case "(($ac_try" in | ||
24697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24698 | *) ac_try_echo=$ac_try;; | ||
24699 | esac | ||
24700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24701 | (eval "$ac_compile") 2>conftest.er1 | ||
24702 | ac_status=$? | ||
24703 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24704 | rm -f conftest.er1 | ||
24705 | cat conftest.err >&5 | ||
24706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24707 | (exit $ac_status); } && { | ||
24708 | test -z "$ac_c_werror_flag" || | ||
24709 | test ! -s conftest.err | ||
24710 | } && test -s conftest.$ac_objext; then | ||
24711 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
24712 | else | ||
24713 | echo "$as_me: failed program was:" >&5 | ||
24714 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24715 | |||
24716 | ac_cv_have___ss_family_in_struct_ss="no" | ||
24717 | |||
24718 | fi | ||
24719 | |||
24720 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24721 | |||
24722 | fi | ||
24723 | { echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
24724 | echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; } | ||
24725 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
24726 | |||
24727 | cat >>confdefs.h <<\_ACEOF | ||
24728 | #define HAVE___SS_FAMILY_IN_SS 1 | ||
24729 | _ACEOF | ||
24730 | |||
24731 | fi | ||
24732 | |||
24733 | { echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5 | ||
24734 | echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6; } | ||
24735 | if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then | ||
24736 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24737 | else | ||
24738 | |||
24739 | cat >conftest.$ac_ext <<_ACEOF | ||
24740 | /* confdefs.h. */ | ||
24741 | _ACEOF | ||
24742 | cat confdefs.h >>conftest.$ac_ext | ||
24743 | cat >>conftest.$ac_ext <<_ACEOF | ||
24744 | /* end confdefs.h. */ | ||
24745 | |||
24746 | #include <pwd.h> | ||
24747 | |||
24748 | int | ||
24749 | main () | ||
24750 | { | ||
24751 | struct passwd p; p.pw_class = 0; | ||
24752 | ; | ||
24753 | return 0; | ||
24754 | } | ||
24755 | _ACEOF | ||
24756 | rm -f conftest.$ac_objext | ||
24757 | if { (ac_try="$ac_compile" | ||
24758 | case "(($ac_try" in | ||
24759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24760 | *) ac_try_echo=$ac_try;; | ||
24761 | esac | ||
24762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24763 | (eval "$ac_compile") 2>conftest.er1 | ||
24764 | ac_status=$? | ||
24765 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24766 | rm -f conftest.er1 | ||
24767 | cat conftest.err >&5 | ||
24768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24769 | (exit $ac_status); } && { | ||
24770 | test -z "$ac_c_werror_flag" || | ||
24771 | test ! -s conftest.err | ||
24772 | } && test -s conftest.$ac_objext; then | ||
24773 | ac_cv_have_pw_class_in_struct_passwd="yes" | ||
24774 | else | ||
24775 | echo "$as_me: failed program was:" >&5 | ||
24776 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24777 | |||
24778 | ac_cv_have_pw_class_in_struct_passwd="no" | ||
24779 | |||
24780 | fi | ||
24781 | |||
24782 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24783 | |||
24784 | fi | ||
24785 | { echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5 | ||
24786 | echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6; } | ||
24787 | if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then | ||
24788 | |||
24789 | cat >>confdefs.h <<\_ACEOF | ||
24790 | #define HAVE_PW_CLASS_IN_PASSWD 1 | ||
24791 | _ACEOF | ||
24792 | |||
24793 | fi | ||
24794 | |||
24795 | { echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5 | ||
24796 | echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6; } | ||
24797 | if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then | ||
24798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24799 | else | ||
24800 | |||
24801 | cat >conftest.$ac_ext <<_ACEOF | ||
24802 | /* confdefs.h. */ | ||
24803 | _ACEOF | ||
24804 | cat confdefs.h >>conftest.$ac_ext | ||
24805 | cat >>conftest.$ac_ext <<_ACEOF | ||
24806 | /* end confdefs.h. */ | ||
24807 | |||
24808 | #include <pwd.h> | ||
24809 | |||
24810 | int | ||
24811 | main () | ||
24812 | { | ||
24813 | struct passwd p; p.pw_expire = 0; | ||
24814 | ; | ||
24815 | return 0; | ||
24816 | } | ||
24817 | _ACEOF | ||
24818 | rm -f conftest.$ac_objext | ||
24819 | if { (ac_try="$ac_compile" | ||
24820 | case "(($ac_try" in | ||
24821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24822 | *) ac_try_echo=$ac_try;; | ||
24823 | esac | ||
24824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24825 | (eval "$ac_compile") 2>conftest.er1 | ||
24826 | ac_status=$? | ||
24827 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24828 | rm -f conftest.er1 | ||
24829 | cat conftest.err >&5 | ||
24830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24831 | (exit $ac_status); } && { | ||
24832 | test -z "$ac_c_werror_flag" || | ||
24833 | test ! -s conftest.err | ||
24834 | } && test -s conftest.$ac_objext; then | ||
24835 | ac_cv_have_pw_expire_in_struct_passwd="yes" | ||
24836 | else | ||
24837 | echo "$as_me: failed program was:" >&5 | ||
24838 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24839 | |||
24840 | ac_cv_have_pw_expire_in_struct_passwd="no" | ||
24841 | |||
24842 | fi | ||
24843 | |||
24844 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24845 | |||
24846 | fi | ||
24847 | { echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5 | ||
24848 | echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6; } | ||
24849 | if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then | ||
24850 | |||
24851 | cat >>confdefs.h <<\_ACEOF | ||
24852 | #define HAVE_PW_EXPIRE_IN_PASSWD 1 | ||
24853 | _ACEOF | ||
24854 | |||
24855 | fi | ||
24856 | |||
24857 | { echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5 | ||
24858 | echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6; } | ||
24859 | if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then | ||
24860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24861 | else | ||
24862 | |||
24863 | cat >conftest.$ac_ext <<_ACEOF | ||
24864 | /* confdefs.h. */ | ||
24865 | _ACEOF | ||
24866 | cat confdefs.h >>conftest.$ac_ext | ||
24867 | cat >>conftest.$ac_ext <<_ACEOF | ||
24868 | /* end confdefs.h. */ | ||
24869 | |||
24870 | #include <pwd.h> | ||
24871 | |||
24872 | int | ||
24873 | main () | ||
24874 | { | ||
24875 | struct passwd p; p.pw_change = 0; | ||
24876 | ; | ||
24877 | return 0; | ||
24878 | } | ||
24879 | _ACEOF | ||
24880 | rm -f conftest.$ac_objext | ||
24881 | if { (ac_try="$ac_compile" | ||
24882 | case "(($ac_try" in | ||
24883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24884 | *) ac_try_echo=$ac_try;; | ||
24885 | esac | ||
24886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24887 | (eval "$ac_compile") 2>conftest.er1 | ||
24888 | ac_status=$? | ||
24889 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24890 | rm -f conftest.er1 | ||
24891 | cat conftest.err >&5 | ||
24892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24893 | (exit $ac_status); } && { | ||
24894 | test -z "$ac_c_werror_flag" || | ||
24895 | test ! -s conftest.err | ||
24896 | } && test -s conftest.$ac_objext; then | ||
24897 | ac_cv_have_pw_change_in_struct_passwd="yes" | ||
24898 | else | ||
24899 | echo "$as_me: failed program was:" >&5 | ||
24900 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24901 | |||
24902 | ac_cv_have_pw_change_in_struct_passwd="no" | ||
24903 | |||
24904 | fi | ||
24905 | |||
24906 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24907 | |||
24908 | fi | ||
24909 | { echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5 | ||
24910 | echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6; } | ||
24911 | if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then | ||
24912 | |||
24913 | cat >>confdefs.h <<\_ACEOF | ||
24914 | #define HAVE_PW_CHANGE_IN_PASSWD 1 | ||
24915 | _ACEOF | ||
24916 | |||
24917 | fi | ||
24918 | |||
24919 | { echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5 | ||
24920 | echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; } | ||
24921 | if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then | ||
24922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
24923 | else | ||
24924 | |||
24925 | cat >conftest.$ac_ext <<_ACEOF | ||
24926 | |||
24927 | #include <sys/types.h> | ||
24928 | #include <sys/socket.h> | ||
24929 | #include <sys/uio.h> | ||
24930 | int main() { | ||
24931 | #ifdef msg_accrights | ||
24932 | #error "msg_accrights is a macro" | ||
24933 | exit(1); | ||
24934 | #endif | ||
24935 | struct msghdr m; | ||
24936 | m.msg_accrights = 0; | ||
24937 | exit(0); | ||
24938 | } | ||
24939 | |||
24940 | _ACEOF | ||
24941 | rm -f conftest.$ac_objext | ||
24942 | if { (ac_try="$ac_compile" | ||
24943 | case "(($ac_try" in | ||
24944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24945 | *) ac_try_echo=$ac_try;; | ||
24946 | esac | ||
24947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
24948 | (eval "$ac_compile") 2>conftest.er1 | ||
24949 | ac_status=$? | ||
24950 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24951 | rm -f conftest.er1 | ||
24952 | cat conftest.err >&5 | ||
24953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24954 | (exit $ac_status); } && { | ||
24955 | test -z "$ac_c_werror_flag" || | ||
24956 | test ! -s conftest.err | ||
24957 | } && test -s conftest.$ac_objext; then | ||
24958 | ac_cv_have_accrights_in_msghdr="yes" | ||
24959 | else | ||
24960 | echo "$as_me: failed program was:" >&5 | ||
24961 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24962 | |||
24963 | ac_cv_have_accrights_in_msghdr="no" | ||
24964 | |||
24965 | fi | ||
24966 | |||
24967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24968 | |||
24969 | fi | ||
24970 | { echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
24971 | echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; } | ||
24972 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
24973 | |||
24974 | cat >>confdefs.h <<\_ACEOF | ||
24975 | #define HAVE_ACCRIGHTS_IN_MSGHDR 1 | ||
24976 | _ACEOF | ||
24977 | |||
24978 | fi | ||
24979 | |||
24980 | { echo "$as_me:$LINENO: checking if struct statvfs.f_fsid is integral type" >&5 | ||
24981 | echo $ECHO_N "checking if struct statvfs.f_fsid is integral type... $ECHO_C" >&6; } | ||
24982 | cat >conftest.$ac_ext <<_ACEOF | ||
24983 | /* confdefs.h. */ | ||
24984 | _ACEOF | ||
24985 | cat confdefs.h >>conftest.$ac_ext | ||
24986 | cat >>conftest.$ac_ext <<_ACEOF | ||
24987 | /* end confdefs.h. */ | ||
24988 | |||
24989 | #include <sys/types.h> | ||
24990 | #include <sys/stat.h> | ||
24991 | #ifdef HAVE_SYS_TIME_H | ||
24992 | # include <sys/time.h> | ||
24993 | #endif | ||
24994 | #ifdef HAVE_SYS_MOUNT_H | ||
24995 | #include <sys/mount.h> | ||
24996 | #endif | ||
24997 | #ifdef HAVE_SYS_STATVFS_H | ||
24998 | #include <sys/statvfs.h> | ||
24999 | #endif | ||
25000 | |||
25001 | int | ||
25002 | main () | ||
25003 | { | ||
25004 | struct statvfs s; s.f_fsid = 0; | ||
25005 | ; | ||
25006 | return 0; | ||
25007 | } | ||
25008 | _ACEOF | ||
25009 | rm -f conftest.$ac_objext | ||
25010 | if { (ac_try="$ac_compile" | ||
25011 | case "(($ac_try" in | ||
25012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25013 | *) ac_try_echo=$ac_try;; | ||
25014 | esac | ||
25015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25016 | (eval "$ac_compile") 2>conftest.er1 | ||
25017 | ac_status=$? | ||
25018 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25019 | rm -f conftest.er1 | ||
25020 | cat conftest.err >&5 | ||
25021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25022 | (exit $ac_status); } && { | ||
25023 | test -z "$ac_c_werror_flag" || | ||
25024 | test ! -s conftest.err | ||
25025 | } && test -s conftest.$ac_objext; then | ||
25026 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
25027 | echo "${ECHO_T}yes" >&6; } | ||
25028 | else | ||
25029 | echo "$as_me: failed program was:" >&5 | ||
25030 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25031 | |||
25032 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25033 | echo "${ECHO_T}no" >&6; } | ||
25034 | |||
25035 | { echo "$as_me:$LINENO: checking if fsid_t has member val" >&5 | ||
25036 | echo $ECHO_N "checking if fsid_t has member val... $ECHO_C" >&6; } | ||
25037 | cat >conftest.$ac_ext <<_ACEOF | ||
25038 | /* confdefs.h. */ | ||
25039 | _ACEOF | ||
25040 | cat confdefs.h >>conftest.$ac_ext | ||
25041 | cat >>conftest.$ac_ext <<_ACEOF | ||
25042 | /* end confdefs.h. */ | ||
25043 | |||
25044 | #include <sys/types.h> | ||
25045 | #include <sys/statvfs.h> | ||
25046 | int | ||
25047 | main () | ||
25048 | { | ||
25049 | fsid_t t; t.val[0] = 0; | ||
25050 | ; | ||
25051 | return 0; | ||
25052 | } | ||
25053 | _ACEOF | ||
25054 | rm -f conftest.$ac_objext | ||
25055 | if { (ac_try="$ac_compile" | ||
25056 | case "(($ac_try" in | ||
25057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25058 | *) ac_try_echo=$ac_try;; | ||
25059 | esac | ||
25060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25061 | (eval "$ac_compile") 2>conftest.er1 | ||
25062 | ac_status=$? | ||
25063 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25064 | rm -f conftest.er1 | ||
25065 | cat conftest.err >&5 | ||
25066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25067 | (exit $ac_status); } && { | ||
25068 | test -z "$ac_c_werror_flag" || | ||
25069 | test ! -s conftest.err | ||
25070 | } && test -s conftest.$ac_objext; then | ||
25071 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
25072 | echo "${ECHO_T}yes" >&6; } | ||
25073 | |||
25074 | cat >>confdefs.h <<\_ACEOF | ||
25075 | #define FSID_HAS_VAL 1 | ||
25076 | _ACEOF | ||
25077 | |||
25078 | else | ||
25079 | echo "$as_me: failed program was:" >&5 | ||
25080 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25081 | |||
25082 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25083 | echo "${ECHO_T}no" >&6; } | ||
25084 | fi | ||
25085 | |||
25086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25087 | |||
25088 | { echo "$as_me:$LINENO: checking if f_fsid has member __val" >&5 | ||
25089 | echo $ECHO_N "checking if f_fsid has member __val... $ECHO_C" >&6; } | ||
25090 | cat >conftest.$ac_ext <<_ACEOF | ||
25091 | /* confdefs.h. */ | ||
25092 | _ACEOF | ||
25093 | cat confdefs.h >>conftest.$ac_ext | ||
25094 | cat >>conftest.$ac_ext <<_ACEOF | ||
25095 | /* end confdefs.h. */ | ||
25096 | |||
25097 | #include <sys/types.h> | ||
25098 | #include <sys/statvfs.h> | ||
25099 | int | ||
25100 | main () | ||
25101 | { | ||
25102 | fsid_t t; t.__val[0] = 0; | ||
25103 | ; | ||
25104 | return 0; | ||
25105 | } | ||
25106 | _ACEOF | ||
25107 | rm -f conftest.$ac_objext | ||
25108 | if { (ac_try="$ac_compile" | ||
25109 | case "(($ac_try" in | ||
25110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25111 | *) ac_try_echo=$ac_try;; | ||
25112 | esac | ||
25113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25114 | (eval "$ac_compile") 2>conftest.er1 | ||
25115 | ac_status=$? | ||
25116 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25117 | rm -f conftest.er1 | ||
25118 | cat conftest.err >&5 | ||
25119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25120 | (exit $ac_status); } && { | ||
25121 | test -z "$ac_c_werror_flag" || | ||
25122 | test ! -s conftest.err | ||
25123 | } && test -s conftest.$ac_objext; then | ||
25124 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
25125 | echo "${ECHO_T}yes" >&6; } | ||
25126 | |||
25127 | cat >>confdefs.h <<\_ACEOF | ||
25128 | #define FSID_HAS___VAL 1 | ||
25129 | _ACEOF | ||
25130 | |||
25131 | else | ||
25132 | echo "$as_me: failed program was:" >&5 | ||
25133 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25134 | |||
25135 | { echo "$as_me:$LINENO: result: no" >&5 | ||
25136 | echo "${ECHO_T}no" >&6; } | ||
25137 | fi | ||
25138 | |||
25139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25140 | |||
25141 | fi | ||
25142 | |||
25143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25144 | |||
25145 | { echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5 | ||
25146 | echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; } | ||
25147 | if test "${ac_cv_have_control_in_msghdr+set}" = set; then | ||
25148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25149 | else | ||
25150 | |||
25151 | cat >conftest.$ac_ext <<_ACEOF | ||
25152 | |||
25153 | #include <sys/types.h> | ||
25154 | #include <sys/socket.h> | ||
25155 | #include <sys/uio.h> | ||
25156 | int main() { | ||
25157 | #ifdef msg_control | ||
25158 | #error "msg_control is a macro" | ||
25159 | exit(1); | ||
25160 | #endif | ||
25161 | struct msghdr m; | ||
25162 | m.msg_control = 0; | ||
25163 | exit(0); | ||
25164 | } | ||
25165 | |||
25166 | _ACEOF | ||
25167 | rm -f conftest.$ac_objext | ||
25168 | if { (ac_try="$ac_compile" | ||
25169 | case "(($ac_try" in | ||
25170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25171 | *) ac_try_echo=$ac_try;; | ||
25172 | esac | ||
25173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25174 | (eval "$ac_compile") 2>conftest.er1 | ||
25175 | ac_status=$? | ||
25176 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25177 | rm -f conftest.er1 | ||
25178 | cat conftest.err >&5 | ||
25179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25180 | (exit $ac_status); } && { | ||
25181 | test -z "$ac_c_werror_flag" || | ||
25182 | test ! -s conftest.err | ||
25183 | } && test -s conftest.$ac_objext; then | ||
25184 | ac_cv_have_control_in_msghdr="yes" | ||
25185 | else | ||
25186 | echo "$as_me: failed program was:" >&5 | ||
25187 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25188 | |||
25189 | ac_cv_have_control_in_msghdr="no" | ||
25190 | |||
25191 | fi | ||
25192 | |||
25193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25194 | |||
25195 | fi | ||
25196 | { echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5 | ||
25197 | echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; } | ||
25198 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
25199 | |||
25200 | cat >>confdefs.h <<\_ACEOF | ||
25201 | #define HAVE_CONTROL_IN_MSGHDR 1 | ||
25202 | _ACEOF | ||
25203 | |||
25204 | fi | ||
25205 | |||
25206 | { echo "$as_me:$LINENO: checking if libc defines __progname" >&5 | ||
25207 | echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; } | ||
25208 | if test "${ac_cv_libc_defines___progname+set}" = set; then | ||
25209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25210 | else | ||
25211 | |||
25212 | cat >conftest.$ac_ext <<_ACEOF | ||
25213 | /* confdefs.h. */ | ||
25214 | _ACEOF | ||
25215 | cat confdefs.h >>conftest.$ac_ext | ||
25216 | cat >>conftest.$ac_ext <<_ACEOF | ||
25217 | /* end confdefs.h. */ | ||
25218 | |||
25219 | int | ||
25220 | main () | ||
25221 | { | ||
25222 | extern char *__progname; printf("%s", __progname); | ||
25223 | ; | ||
25224 | return 0; | ||
25225 | } | ||
25226 | _ACEOF | ||
25227 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25228 | if { (ac_try="$ac_link" | ||
25229 | case "(($ac_try" in | ||
25230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25231 | *) ac_try_echo=$ac_try;; | ||
25232 | esac | ||
25233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25234 | (eval "$ac_link") 2>conftest.er1 | ||
25235 | ac_status=$? | ||
25236 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25237 | rm -f conftest.er1 | ||
25238 | cat conftest.err >&5 | ||
25239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25240 | (exit $ac_status); } && { | ||
25241 | test -z "$ac_c_werror_flag" || | ||
25242 | test ! -s conftest.err | ||
25243 | } && test -s conftest$ac_exeext && | ||
25244 | $as_test_x conftest$ac_exeext; then | ||
25245 | ac_cv_libc_defines___progname="yes" | ||
25246 | else | ||
25247 | echo "$as_me: failed program was:" >&5 | ||
25248 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25249 | |||
25250 | ac_cv_libc_defines___progname="no" | ||
25251 | |||
25252 | fi | ||
25253 | |||
25254 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25255 | conftest$ac_exeext conftest.$ac_ext | ||
25256 | |||
25257 | fi | ||
25258 | { echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5 | ||
25259 | echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; } | ||
25260 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
25261 | |||
25262 | cat >>confdefs.h <<\_ACEOF | ||
25263 | #define HAVE___PROGNAME 1 | ||
25264 | _ACEOF | ||
25265 | |||
25266 | fi | ||
25267 | |||
25268 | { echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5 | ||
25269 | echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; } | ||
25270 | if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then | ||
25271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25272 | else | ||
25273 | |||
25274 | cat >conftest.$ac_ext <<_ACEOF | ||
25275 | /* confdefs.h. */ | ||
25276 | _ACEOF | ||
25277 | cat confdefs.h >>conftest.$ac_ext | ||
25278 | cat >>conftest.$ac_ext <<_ACEOF | ||
25279 | /* end confdefs.h. */ | ||
25280 | |||
25281 | #include <stdio.h> | ||
25282 | |||
25283 | int | ||
25284 | main () | ||
25285 | { | ||
25286 | printf("%s", __FUNCTION__); | ||
25287 | ; | ||
25288 | return 0; | ||
25289 | } | ||
25290 | _ACEOF | ||
25291 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25292 | if { (ac_try="$ac_link" | ||
25293 | case "(($ac_try" in | ||
25294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25295 | *) ac_try_echo=$ac_try;; | ||
25296 | esac | ||
25297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25298 | (eval "$ac_link") 2>conftest.er1 | ||
25299 | ac_status=$? | ||
25300 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25301 | rm -f conftest.er1 | ||
25302 | cat conftest.err >&5 | ||
25303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25304 | (exit $ac_status); } && { | ||
25305 | test -z "$ac_c_werror_flag" || | ||
25306 | test ! -s conftest.err | ||
25307 | } && test -s conftest$ac_exeext && | ||
25308 | $as_test_x conftest$ac_exeext; then | ||
25309 | ac_cv_cc_implements___FUNCTION__="yes" | ||
25310 | else | ||
25311 | echo "$as_me: failed program was:" >&5 | ||
25312 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25313 | |||
25314 | ac_cv_cc_implements___FUNCTION__="no" | ||
25315 | |||
25316 | fi | ||
25317 | |||
25318 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25319 | conftest$ac_exeext conftest.$ac_ext | ||
25320 | |||
25321 | fi | ||
25322 | { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
25323 | echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; } | ||
25324 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
25325 | |||
25326 | cat >>confdefs.h <<\_ACEOF | ||
25327 | #define HAVE___FUNCTION__ 1 | ||
25328 | _ACEOF | ||
25329 | |||
25330 | fi | ||
25331 | |||
25332 | { echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5 | ||
25333 | echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; } | ||
25334 | if test "${ac_cv_cc_implements___func__+set}" = set; then | ||
25335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25336 | else | ||
25337 | |||
25338 | cat >conftest.$ac_ext <<_ACEOF | ||
25339 | /* confdefs.h. */ | ||
25340 | _ACEOF | ||
25341 | cat confdefs.h >>conftest.$ac_ext | ||
25342 | cat >>conftest.$ac_ext <<_ACEOF | ||
25343 | /* end confdefs.h. */ | ||
25344 | |||
25345 | #include <stdio.h> | ||
25346 | |||
25347 | int | ||
25348 | main () | ||
25349 | { | ||
25350 | printf("%s", __func__); | ||
25351 | ; | ||
25352 | return 0; | ||
25353 | } | ||
25354 | _ACEOF | ||
25355 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25356 | if { (ac_try="$ac_link" | ||
25357 | case "(($ac_try" in | ||
25358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25359 | *) ac_try_echo=$ac_try;; | ||
25360 | esac | ||
25361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25362 | (eval "$ac_link") 2>conftest.er1 | ||
25363 | ac_status=$? | ||
25364 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25365 | rm -f conftest.er1 | ||
25366 | cat conftest.err >&5 | ||
25367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25368 | (exit $ac_status); } && { | ||
25369 | test -z "$ac_c_werror_flag" || | ||
25370 | test ! -s conftest.err | ||
25371 | } && test -s conftest$ac_exeext && | ||
25372 | $as_test_x conftest$ac_exeext; then | ||
25373 | ac_cv_cc_implements___func__="yes" | ||
25374 | else | ||
25375 | echo "$as_me: failed program was:" >&5 | ||
25376 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25377 | |||
25378 | ac_cv_cc_implements___func__="no" | ||
25379 | |||
25380 | fi | ||
25381 | |||
25382 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25383 | conftest$ac_exeext conftest.$ac_ext | ||
25384 | |||
25385 | fi | ||
25386 | { echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5 | ||
25387 | echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; } | ||
25388 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
25389 | |||
25390 | cat >>confdefs.h <<\_ACEOF | ||
25391 | #define HAVE___func__ 1 | ||
25392 | _ACEOF | ||
25393 | |||
25394 | fi | ||
25395 | |||
25396 | { echo "$as_me:$LINENO: checking whether va_copy exists" >&5 | ||
25397 | echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; } | ||
25398 | if test "${ac_cv_have_va_copy+set}" = set; then | ||
25399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25400 | else | ||
25401 | |||
25402 | cat >conftest.$ac_ext <<_ACEOF | ||
25403 | /* confdefs.h. */ | ||
25404 | _ACEOF | ||
25405 | cat confdefs.h >>conftest.$ac_ext | ||
25406 | cat >>conftest.$ac_ext <<_ACEOF | ||
25407 | /* end confdefs.h. */ | ||
25408 | #include <stdarg.h> | ||
25409 | va_list x,y; | ||
25410 | int | ||
25411 | main () | ||
25412 | { | ||
25413 | va_copy(x,y); | ||
25414 | ; | ||
25415 | return 0; | ||
25416 | } | ||
25417 | _ACEOF | ||
25418 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25419 | if { (ac_try="$ac_link" | ||
25420 | case "(($ac_try" in | ||
25421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25422 | *) ac_try_echo=$ac_try;; | ||
25423 | esac | ||
25424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25425 | (eval "$ac_link") 2>conftest.er1 | ||
25426 | ac_status=$? | ||
25427 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25428 | rm -f conftest.er1 | ||
25429 | cat conftest.err >&5 | ||
25430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25431 | (exit $ac_status); } && { | ||
25432 | test -z "$ac_c_werror_flag" || | ||
25433 | test ! -s conftest.err | ||
25434 | } && test -s conftest$ac_exeext && | ||
25435 | $as_test_x conftest$ac_exeext; then | ||
25436 | ac_cv_have_va_copy="yes" | ||
25437 | else | ||
25438 | echo "$as_me: failed program was:" >&5 | ||
25439 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25440 | |||
25441 | ac_cv_have_va_copy="no" | ||
25442 | |||
25443 | fi | ||
25444 | |||
25445 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25446 | conftest$ac_exeext conftest.$ac_ext | ||
25447 | |||
25448 | fi | ||
25449 | { echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5 | ||
25450 | echo "${ECHO_T}$ac_cv_have_va_copy" >&6; } | ||
25451 | if test "x$ac_cv_have_va_copy" = "xyes" ; then | ||
25452 | |||
25453 | cat >>confdefs.h <<\_ACEOF | ||
25454 | #define HAVE_VA_COPY 1 | ||
25455 | _ACEOF | ||
25456 | |||
25457 | fi | ||
25458 | |||
25459 | { echo "$as_me:$LINENO: checking whether __va_copy exists" >&5 | ||
25460 | echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; } | ||
25461 | if test "${ac_cv_have___va_copy+set}" = set; then | ||
25462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25463 | else | ||
25464 | |||
25465 | cat >conftest.$ac_ext <<_ACEOF | ||
25466 | /* confdefs.h. */ | ||
25467 | _ACEOF | ||
25468 | cat confdefs.h >>conftest.$ac_ext | ||
25469 | cat >>conftest.$ac_ext <<_ACEOF | ||
25470 | /* end confdefs.h. */ | ||
25471 | #include <stdarg.h> | ||
25472 | va_list x,y; | ||
25473 | int | ||
25474 | main () | ||
25475 | { | ||
25476 | __va_copy(x,y); | ||
25477 | ; | ||
25478 | return 0; | ||
25479 | } | ||
25480 | _ACEOF | ||
25481 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25482 | if { (ac_try="$ac_link" | ||
25483 | case "(($ac_try" in | ||
25484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25485 | *) ac_try_echo=$ac_try;; | ||
25486 | esac | ||
25487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25488 | (eval "$ac_link") 2>conftest.er1 | ||
25489 | ac_status=$? | ||
25490 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25491 | rm -f conftest.er1 | ||
25492 | cat conftest.err >&5 | ||
25493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25494 | (exit $ac_status); } && { | ||
25495 | test -z "$ac_c_werror_flag" || | ||
25496 | test ! -s conftest.err | ||
25497 | } && test -s conftest$ac_exeext && | ||
25498 | $as_test_x conftest$ac_exeext; then | ||
25499 | ac_cv_have___va_copy="yes" | ||
25500 | else | ||
25501 | echo "$as_me: failed program was:" >&5 | ||
25502 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25503 | |||
25504 | ac_cv_have___va_copy="no" | ||
25505 | |||
25506 | fi | ||
25507 | |||
25508 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25509 | conftest$ac_exeext conftest.$ac_ext | ||
25510 | |||
25511 | fi | ||
25512 | { echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5 | ||
25513 | echo "${ECHO_T}$ac_cv_have___va_copy" >&6; } | ||
25514 | if test "x$ac_cv_have___va_copy" = "xyes" ; then | ||
25515 | |||
25516 | cat >>confdefs.h <<\_ACEOF | ||
25517 | #define HAVE___VA_COPY 1 | ||
25518 | _ACEOF | ||
25519 | |||
25520 | fi | ||
25521 | |||
25522 | { echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5 | ||
25523 | echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; } | ||
25524 | if test "${ac_cv_have_getopt_optreset+set}" = set; then | ||
25525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25526 | else | ||
25527 | |||
25528 | cat >conftest.$ac_ext <<_ACEOF | ||
25529 | /* confdefs.h. */ | ||
25530 | _ACEOF | ||
25531 | cat confdefs.h >>conftest.$ac_ext | ||
25532 | cat >>conftest.$ac_ext <<_ACEOF | ||
25533 | /* end confdefs.h. */ | ||
25534 | |||
25535 | #include <getopt.h> | ||
25536 | |||
25537 | int | ||
25538 | main () | ||
25539 | { | ||
25540 | extern int optreset; optreset = 0; | ||
25541 | ; | ||
25542 | return 0; | ||
25543 | } | ||
25544 | _ACEOF | ||
25545 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25546 | if { (ac_try="$ac_link" | ||
25547 | case "(($ac_try" in | ||
25548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25549 | *) ac_try_echo=$ac_try;; | ||
25550 | esac | ||
25551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25552 | (eval "$ac_link") 2>conftest.er1 | ||
25553 | ac_status=$? | ||
25554 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25555 | rm -f conftest.er1 | ||
25556 | cat conftest.err >&5 | ||
25557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25558 | (exit $ac_status); } && { | ||
25559 | test -z "$ac_c_werror_flag" || | ||
25560 | test ! -s conftest.err | ||
25561 | } && test -s conftest$ac_exeext && | ||
25562 | $as_test_x conftest$ac_exeext; then | ||
25563 | ac_cv_have_getopt_optreset="yes" | ||
25564 | else | ||
25565 | echo "$as_me: failed program was:" >&5 | ||
25566 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25567 | |||
25568 | ac_cv_have_getopt_optreset="no" | ||
25569 | |||
25570 | fi | ||
25571 | |||
25572 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25573 | conftest$ac_exeext conftest.$ac_ext | ||
25574 | |||
25575 | fi | ||
25576 | { echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5 | ||
25577 | echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; } | ||
25578 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
25579 | |||
25580 | cat >>confdefs.h <<\_ACEOF | ||
25581 | #define HAVE_GETOPT_OPTRESET 1 | ||
25582 | _ACEOF | ||
25583 | |||
25584 | fi | ||
25585 | |||
25586 | { echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5 | ||
25587 | echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; } | ||
25588 | if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then | ||
25589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25590 | else | ||
25591 | |||
25592 | cat >conftest.$ac_ext <<_ACEOF | ||
25593 | /* confdefs.h. */ | ||
25594 | _ACEOF | ||
25595 | cat confdefs.h >>conftest.$ac_ext | ||
25596 | cat >>conftest.$ac_ext <<_ACEOF | ||
25597 | /* end confdefs.h. */ | ||
25598 | |||
25599 | int | ||
25600 | main () | ||
25601 | { | ||
25602 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
25603 | ; | ||
25604 | return 0; | ||
25605 | } | ||
25606 | _ACEOF | ||
25607 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25608 | if { (ac_try="$ac_link" | ||
25609 | case "(($ac_try" in | ||
25610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25611 | *) ac_try_echo=$ac_try;; | ||
25612 | esac | ||
25613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25614 | (eval "$ac_link") 2>conftest.er1 | ||
25615 | ac_status=$? | ||
25616 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25617 | rm -f conftest.er1 | ||
25618 | cat conftest.err >&5 | ||
25619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25620 | (exit $ac_status); } && { | ||
25621 | test -z "$ac_c_werror_flag" || | ||
25622 | test ! -s conftest.err | ||
25623 | } && test -s conftest$ac_exeext && | ||
25624 | $as_test_x conftest$ac_exeext; then | ||
25625 | ac_cv_libc_defines_sys_errlist="yes" | ||
25626 | else | ||
25627 | echo "$as_me: failed program was:" >&5 | ||
25628 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25629 | |||
25630 | ac_cv_libc_defines_sys_errlist="no" | ||
25631 | |||
25632 | fi | ||
25633 | |||
25634 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25635 | conftest$ac_exeext conftest.$ac_ext | ||
25636 | |||
25637 | fi | ||
25638 | { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
25639 | echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; } | ||
25640 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
25641 | |||
25642 | cat >>confdefs.h <<\_ACEOF | ||
25643 | #define HAVE_SYS_ERRLIST 1 | ||
25644 | _ACEOF | ||
25645 | |||
25646 | fi | ||
25647 | |||
25648 | |||
25649 | { echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5 | ||
25650 | echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; } | ||
25651 | if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then | ||
25652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25653 | else | ||
25654 | |||
25655 | cat >conftest.$ac_ext <<_ACEOF | ||
25656 | /* confdefs.h. */ | ||
25657 | _ACEOF | ||
25658 | cat confdefs.h >>conftest.$ac_ext | ||
25659 | cat >>conftest.$ac_ext <<_ACEOF | ||
25660 | /* end confdefs.h. */ | ||
25661 | |||
25662 | int | ||
25663 | main () | ||
25664 | { | ||
25665 | extern int sys_nerr; printf("%i", sys_nerr); | ||
25666 | ; | ||
25667 | return 0; | ||
25668 | } | ||
25669 | _ACEOF | ||
25670 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25671 | if { (ac_try="$ac_link" | ||
25672 | case "(($ac_try" in | ||
25673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25674 | *) ac_try_echo=$ac_try;; | ||
25675 | esac | ||
25676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25677 | (eval "$ac_link") 2>conftest.er1 | ||
25678 | ac_status=$? | ||
25679 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25680 | rm -f conftest.er1 | ||
25681 | cat conftest.err >&5 | ||
25682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25683 | (exit $ac_status); } && { | ||
25684 | test -z "$ac_c_werror_flag" || | ||
25685 | test ! -s conftest.err | ||
25686 | } && test -s conftest$ac_exeext && | ||
25687 | $as_test_x conftest$ac_exeext; then | ||
25688 | ac_cv_libc_defines_sys_nerr="yes" | ||
25689 | else | ||
25690 | echo "$as_me: failed program was:" >&5 | ||
25691 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25692 | |||
25693 | ac_cv_libc_defines_sys_nerr="no" | ||
25694 | |||
25695 | fi | ||
25696 | |||
25697 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25698 | conftest$ac_exeext conftest.$ac_ext | ||
25699 | |||
25700 | fi | ||
25701 | { echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
25702 | echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; } | ||
25703 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
25704 | |||
25705 | cat >>confdefs.h <<\_ACEOF | ||
25706 | #define HAVE_SYS_NERR 1 | ||
25707 | _ACEOF | ||
25708 | |||
25709 | fi | ||
25710 | |||
25711 | # Check libraries needed by DNS fingerprint support | ||
25712 | { echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5 | ||
25713 | echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; } | ||
25714 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
25715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25716 | else | ||
25717 | ac_func_search_save_LIBS=$LIBS | ||
25718 | cat >conftest.$ac_ext <<_ACEOF | ||
25719 | /* confdefs.h. */ | ||
25720 | _ACEOF | ||
25721 | cat confdefs.h >>conftest.$ac_ext | ||
25722 | cat >>conftest.$ac_ext <<_ACEOF | ||
25723 | /* end confdefs.h. */ | ||
25724 | |||
25725 | /* Override any GCC internal prototype to avoid an error. | ||
25726 | Use char because int might match the return type of a GCC | ||
25727 | builtin and then its argument prototype would still apply. */ | ||
25728 | #ifdef __cplusplus | ||
25729 | extern "C" | ||
25730 | #endif | ||
25731 | char getrrsetbyname (); | ||
25732 | int | ||
25733 | main () | ||
25734 | { | ||
25735 | return getrrsetbyname (); | ||
25736 | ; | ||
25737 | return 0; | ||
25738 | } | ||
25739 | _ACEOF | ||
25740 | for ac_lib in '' resolv; do | ||
25741 | if test -z "$ac_lib"; then | ||
25742 | ac_res="none required" | ||
25743 | else | ||
25744 | ac_res=-l$ac_lib | ||
25745 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
25746 | fi | ||
25747 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25748 | if { (ac_try="$ac_link" | ||
25749 | case "(($ac_try" in | ||
25750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25751 | *) ac_try_echo=$ac_try;; | ||
25752 | esac | ||
25753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25754 | (eval "$ac_link") 2>conftest.er1 | ||
25755 | ac_status=$? | ||
25756 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25757 | rm -f conftest.er1 | ||
25758 | cat conftest.err >&5 | ||
25759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25760 | (exit $ac_status); } && { | ||
25761 | test -z "$ac_c_werror_flag" || | ||
25762 | test ! -s conftest.err | ||
25763 | } && test -s conftest$ac_exeext && | ||
25764 | $as_test_x conftest$ac_exeext; then | ||
25765 | ac_cv_search_getrrsetbyname=$ac_res | ||
25766 | else | ||
25767 | echo "$as_me: failed program was:" >&5 | ||
25768 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25769 | |||
25770 | |||
25771 | fi | ||
25772 | |||
25773 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25774 | conftest$ac_exeext | ||
25775 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
25776 | break | ||
25777 | fi | ||
25778 | done | ||
25779 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
25780 | : | ||
25781 | else | ||
25782 | ac_cv_search_getrrsetbyname=no | ||
25783 | fi | ||
25784 | rm conftest.$ac_ext | ||
25785 | LIBS=$ac_func_search_save_LIBS | ||
25786 | fi | ||
25787 | { echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5 | ||
25788 | echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; } | ||
25789 | ac_res=$ac_cv_search_getrrsetbyname | ||
25790 | if test "$ac_res" != no; then | ||
25791 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
25792 | |||
25793 | cat >>confdefs.h <<\_ACEOF | ||
25794 | #define HAVE_GETRRSETBYNAME 1 | ||
25795 | _ACEOF | ||
25796 | |||
25797 | else | ||
25798 | |||
25799 | # Needed by our getrrsetbyname() | ||
25800 | { echo "$as_me:$LINENO: checking for library containing res_query" >&5 | ||
25801 | echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; } | ||
25802 | if test "${ac_cv_search_res_query+set}" = set; then | ||
25803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25804 | else | ||
25805 | ac_func_search_save_LIBS=$LIBS | ||
25806 | cat >conftest.$ac_ext <<_ACEOF | ||
25807 | /* confdefs.h. */ | ||
25808 | _ACEOF | ||
25809 | cat confdefs.h >>conftest.$ac_ext | ||
25810 | cat >>conftest.$ac_ext <<_ACEOF | ||
25811 | /* end confdefs.h. */ | ||
25812 | |||
25813 | /* Override any GCC internal prototype to avoid an error. | ||
25814 | Use char because int might match the return type of a GCC | ||
25815 | builtin and then its argument prototype would still apply. */ | ||
25816 | #ifdef __cplusplus | ||
25817 | extern "C" | ||
25818 | #endif | ||
25819 | char res_query (); | ||
25820 | int | ||
25821 | main () | ||
25822 | { | ||
25823 | return res_query (); | ||
25824 | ; | ||
25825 | return 0; | ||
25826 | } | ||
25827 | _ACEOF | ||
25828 | for ac_lib in '' resolv; do | ||
25829 | if test -z "$ac_lib"; then | ||
25830 | ac_res="none required" | ||
25831 | else | ||
25832 | ac_res=-l$ac_lib | ||
25833 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
25834 | fi | ||
25835 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25836 | if { (ac_try="$ac_link" | ||
25837 | case "(($ac_try" in | ||
25838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25839 | *) ac_try_echo=$ac_try;; | ||
25840 | esac | ||
25841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25842 | (eval "$ac_link") 2>conftest.er1 | ||
25843 | ac_status=$? | ||
25844 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25845 | rm -f conftest.er1 | ||
25846 | cat conftest.err >&5 | ||
25847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25848 | (exit $ac_status); } && { | ||
25849 | test -z "$ac_c_werror_flag" || | ||
25850 | test ! -s conftest.err | ||
25851 | } && test -s conftest$ac_exeext && | ||
25852 | $as_test_x conftest$ac_exeext; then | ||
25853 | ac_cv_search_res_query=$ac_res | ||
25854 | else | ||
25855 | echo "$as_me: failed program was:" >&5 | ||
25856 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25857 | |||
25858 | |||
25859 | fi | ||
25860 | |||
25861 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25862 | conftest$ac_exeext | ||
25863 | if test "${ac_cv_search_res_query+set}" = set; then | ||
25864 | break | ||
25865 | fi | ||
25866 | done | ||
25867 | if test "${ac_cv_search_res_query+set}" = set; then | ||
25868 | : | ||
25869 | else | ||
25870 | ac_cv_search_res_query=no | ||
25871 | fi | ||
25872 | rm conftest.$ac_ext | ||
25873 | LIBS=$ac_func_search_save_LIBS | ||
25874 | fi | ||
25875 | { echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5 | ||
25876 | echo "${ECHO_T}$ac_cv_search_res_query" >&6; } | ||
25877 | ac_res=$ac_cv_search_res_query | ||
25878 | if test "$ac_res" != no; then | ||
25879 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
25880 | |||
25881 | fi | ||
25882 | |||
25883 | { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
25884 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; } | ||
25885 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
25886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
25887 | else | ||
25888 | ac_func_search_save_LIBS=$LIBS | ||
25889 | cat >conftest.$ac_ext <<_ACEOF | ||
25890 | /* confdefs.h. */ | ||
25891 | _ACEOF | ||
25892 | cat confdefs.h >>conftest.$ac_ext | ||
25893 | cat >>conftest.$ac_ext <<_ACEOF | ||
25894 | /* end confdefs.h. */ | ||
25895 | |||
25896 | /* Override any GCC internal prototype to avoid an error. | ||
25897 | Use char because int might match the return type of a GCC | ||
25898 | builtin and then its argument prototype would still apply. */ | ||
25899 | #ifdef __cplusplus | ||
25900 | extern "C" | ||
25901 | #endif | ||
25902 | char dn_expand (); | ||
25903 | int | ||
25904 | main () | ||
25905 | { | ||
25906 | return dn_expand (); | ||
25907 | ; | ||
25908 | return 0; | ||
25909 | } | ||
25910 | _ACEOF | ||
25911 | for ac_lib in '' resolv; do | ||
25912 | if test -z "$ac_lib"; then | ||
25913 | ac_res="none required" | ||
25914 | else | ||
25915 | ac_res=-l$ac_lib | ||
25916 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
25917 | fi | ||
25918 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25919 | if { (ac_try="$ac_link" | ||
25920 | case "(($ac_try" in | ||
25921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25922 | *) ac_try_echo=$ac_try;; | ||
25923 | esac | ||
25924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25925 | (eval "$ac_link") 2>conftest.er1 | ||
25926 | ac_status=$? | ||
25927 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25928 | rm -f conftest.er1 | ||
25929 | cat conftest.err >&5 | ||
25930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25931 | (exit $ac_status); } && { | ||
25932 | test -z "$ac_c_werror_flag" || | ||
25933 | test ! -s conftest.err | ||
25934 | } && test -s conftest$ac_exeext && | ||
25935 | $as_test_x conftest$ac_exeext; then | ||
25936 | ac_cv_search_dn_expand=$ac_res | ||
25937 | else | ||
25938 | echo "$as_me: failed program was:" >&5 | ||
25939 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25940 | |||
25941 | |||
25942 | fi | ||
25943 | |||
25944 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
25945 | conftest$ac_exeext | ||
25946 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
25947 | break | ||
25948 | fi | ||
25949 | done | ||
25950 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
25951 | : | ||
25952 | else | ||
25953 | ac_cv_search_dn_expand=no | ||
25954 | fi | ||
25955 | rm conftest.$ac_ext | ||
25956 | LIBS=$ac_func_search_save_LIBS | ||
25957 | fi | ||
25958 | { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
25959 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; } | ||
25960 | ac_res=$ac_cv_search_dn_expand | ||
25961 | if test "$ac_res" != no; then | ||
25962 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
25963 | |||
25964 | fi | ||
25965 | |||
25966 | { echo "$as_me:$LINENO: checking if res_query will link" >&5 | ||
25967 | echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; } | ||
25968 | cat >conftest.$ac_ext <<_ACEOF | ||
25969 | |||
25970 | #include "confdefs.h" | ||
25971 | #include <sys/types.h> | ||
25972 | #include <netinet/in.h> | ||
25973 | #include <arpa/nameser.h> | ||
25974 | #include <netdb.h> | ||
25975 | #include <resolv.h> | ||
25976 | int main() | ||
25977 | { | ||
25978 | res_query (0, 0, 0, 0, 0); | ||
25979 | return 0; | ||
25980 | } | ||
25981 | |||
25982 | _ACEOF | ||
25983 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
25984 | if { (ac_try="$ac_link" | ||
25985 | case "(($ac_try" in | ||
25986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25987 | *) ac_try_echo=$ac_try;; | ||
25988 | esac | ||
25989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
25990 | (eval "$ac_link") 2>conftest.er1 | ||
25991 | ac_status=$? | ||
25992 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25993 | rm -f conftest.er1 | ||
25994 | cat conftest.err >&5 | ||
25995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25996 | (exit $ac_status); } && { | ||
25997 | test -z "$ac_c_werror_flag" || | ||
25998 | test ! -s conftest.err | ||
25999 | } && test -s conftest$ac_exeext && | ||
26000 | $as_test_x conftest$ac_exeext; then | ||
26001 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26002 | echo "${ECHO_T}yes" >&6; } | ||
26003 | else | ||
26004 | echo "$as_me: failed program was:" >&5 | ||
26005 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26006 | |||
26007 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26008 | echo "${ECHO_T}no" >&6; } | ||
26009 | saved_LIBS="$LIBS" | ||
26010 | LIBS="$LIBS -lresolv" | ||
26011 | { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 | ||
26012 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; } | ||
26013 | cat >conftest.$ac_ext <<_ACEOF | ||
26014 | |||
26015 | #include "confdefs.h" | ||
26016 | #include <sys/types.h> | ||
26017 | #include <netinet/in.h> | ||
26018 | #include <arpa/nameser.h> | ||
26019 | #include <netdb.h> | ||
26020 | #include <resolv.h> | ||
26021 | int main() | ||
26022 | { | ||
26023 | res_query (0, 0, 0, 0, 0); | ||
26024 | return 0; | ||
26025 | } | ||
26026 | |||
26027 | _ACEOF | ||
26028 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26029 | if { (ac_try="$ac_link" | ||
26030 | case "(($ac_try" in | ||
26031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26032 | *) ac_try_echo=$ac_try;; | ||
26033 | esac | ||
26034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26035 | (eval "$ac_link") 2>conftest.er1 | ||
26036 | ac_status=$? | ||
26037 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26038 | rm -f conftest.er1 | ||
26039 | cat conftest.err >&5 | ||
26040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26041 | (exit $ac_status); } && { | ||
26042 | test -z "$ac_c_werror_flag" || | ||
26043 | test ! -s conftest.err | ||
26044 | } && test -s conftest$ac_exeext && | ||
26045 | $as_test_x conftest$ac_exeext; then | ||
26046 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26047 | echo "${ECHO_T}yes" >&6; } | ||
26048 | else | ||
26049 | echo "$as_me: failed program was:" >&5 | ||
26050 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26051 | |||
26052 | LIBS="$saved_LIBS" | ||
26053 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26054 | echo "${ECHO_T}no" >&6; } | ||
26055 | fi | ||
26056 | |||
26057 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26058 | conftest$ac_exeext conftest.$ac_ext | ||
26059 | |||
26060 | fi | ||
26061 | |||
26062 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26063 | conftest$ac_exeext conftest.$ac_ext | ||
26064 | |||
26065 | |||
26066 | for ac_func in _getshort _getlong | ||
26067 | do | ||
26068 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
26069 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
26070 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
26071 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
26072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26073 | else | ||
26074 | cat >conftest.$ac_ext <<_ACEOF | ||
26075 | /* confdefs.h. */ | ||
26076 | _ACEOF | ||
26077 | cat confdefs.h >>conftest.$ac_ext | ||
26078 | cat >>conftest.$ac_ext <<_ACEOF | ||
26079 | /* end confdefs.h. */ | ||
26080 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
26081 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
26082 | #define $ac_func innocuous_$ac_func | ||
26083 | |||
26084 | /* System header to define __stub macros and hopefully few prototypes, | ||
26085 | which can conflict with char $ac_func (); below. | ||
26086 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
26087 | <limits.h> exists even on freestanding compilers. */ | ||
26088 | |||
26089 | #ifdef __STDC__ | ||
26090 | # include <limits.h> | ||
26091 | #else | ||
26092 | # include <assert.h> | ||
26093 | #endif | ||
26094 | |||
26095 | #undef $ac_func | ||
26096 | |||
26097 | /* Override any GCC internal prototype to avoid an error. | ||
26098 | Use char because int might match the return type of a GCC | ||
26099 | builtin and then its argument prototype would still apply. */ | ||
26100 | #ifdef __cplusplus | ||
26101 | extern "C" | ||
26102 | #endif | ||
26103 | char $ac_func (); | ||
26104 | /* The GNU C library defines this for functions which it implements | ||
26105 | to always fail with ENOSYS. Some functions are actually named | ||
26106 | something starting with __ and the normal name is an alias. */ | ||
26107 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
26108 | choke me | ||
26109 | #endif | ||
26110 | |||
26111 | int | ||
26112 | main () | ||
26113 | { | ||
26114 | return $ac_func (); | ||
26115 | ; | ||
26116 | return 0; | ||
26117 | } | ||
26118 | _ACEOF | ||
26119 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26120 | if { (ac_try="$ac_link" | ||
26121 | case "(($ac_try" in | ||
26122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26123 | *) ac_try_echo=$ac_try;; | ||
26124 | esac | ||
26125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26126 | (eval "$ac_link") 2>conftest.er1 | ||
26127 | ac_status=$? | ||
26128 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26129 | rm -f conftest.er1 | ||
26130 | cat conftest.err >&5 | ||
26131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26132 | (exit $ac_status); } && { | ||
26133 | test -z "$ac_c_werror_flag" || | ||
26134 | test ! -s conftest.err | ||
26135 | } && test -s conftest$ac_exeext && | ||
26136 | $as_test_x conftest$ac_exeext; then | ||
26137 | eval "$as_ac_var=yes" | ||
26138 | else | ||
26139 | echo "$as_me: failed program was:" >&5 | ||
26140 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26141 | |||
26142 | eval "$as_ac_var=no" | ||
26143 | fi | ||
26144 | |||
26145 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26146 | conftest$ac_exeext conftest.$ac_ext | ||
26147 | fi | ||
26148 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
26149 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
26150 | echo "${ECHO_T}$ac_res" >&6; } | ||
26151 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
26152 | cat >>confdefs.h <<_ACEOF | ||
26153 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
26154 | _ACEOF | ||
26155 | |||
26156 | fi | ||
26157 | done | ||
26158 | |||
26159 | { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5 | ||
26160 | echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; } | ||
26161 | if test "${ac_cv_have_decl__getshort+set}" = set; then | ||
26162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26163 | else | ||
26164 | cat >conftest.$ac_ext <<_ACEOF | ||
26165 | /* confdefs.h. */ | ||
26166 | _ACEOF | ||
26167 | cat confdefs.h >>conftest.$ac_ext | ||
26168 | cat >>conftest.$ac_ext <<_ACEOF | ||
26169 | /* end confdefs.h. */ | ||
26170 | #include <sys/types.h> | ||
26171 | #include <arpa/nameser.h> | ||
26172 | |||
26173 | int | ||
26174 | main () | ||
26175 | { | ||
26176 | #ifndef _getshort | ||
26177 | (void) _getshort; | ||
26178 | #endif | ||
26179 | |||
26180 | ; | ||
26181 | return 0; | ||
26182 | } | ||
26183 | _ACEOF | ||
26184 | rm -f conftest.$ac_objext | ||
26185 | if { (ac_try="$ac_compile" | ||
26186 | case "(($ac_try" in | ||
26187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26188 | *) ac_try_echo=$ac_try;; | ||
26189 | esac | ||
26190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26191 | (eval "$ac_compile") 2>conftest.er1 | ||
26192 | ac_status=$? | ||
26193 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26194 | rm -f conftest.er1 | ||
26195 | cat conftest.err >&5 | ||
26196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26197 | (exit $ac_status); } && { | ||
26198 | test -z "$ac_c_werror_flag" || | ||
26199 | test ! -s conftest.err | ||
26200 | } && test -s conftest.$ac_objext; then | ||
26201 | ac_cv_have_decl__getshort=yes | ||
26202 | else | ||
26203 | echo "$as_me: failed program was:" >&5 | ||
26204 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26205 | |||
26206 | ac_cv_have_decl__getshort=no | ||
26207 | fi | ||
26208 | |||
26209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26210 | fi | ||
26211 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5 | ||
26212 | echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; } | ||
26213 | if test $ac_cv_have_decl__getshort = yes; then | ||
26214 | |||
26215 | cat >>confdefs.h <<_ACEOF | ||
26216 | #define HAVE_DECL__GETSHORT 1 | ||
26217 | _ACEOF | ||
26218 | |||
26219 | |||
26220 | else | ||
26221 | cat >>confdefs.h <<_ACEOF | ||
26222 | #define HAVE_DECL__GETSHORT 0 | ||
26223 | _ACEOF | ||
26224 | |||
26225 | |||
26226 | fi | ||
26227 | { echo "$as_me:$LINENO: checking whether _getlong is declared" >&5 | ||
26228 | echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; } | ||
26229 | if test "${ac_cv_have_decl__getlong+set}" = set; then | ||
26230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26231 | else | ||
26232 | cat >conftest.$ac_ext <<_ACEOF | ||
26233 | /* confdefs.h. */ | ||
26234 | _ACEOF | ||
26235 | cat confdefs.h >>conftest.$ac_ext | ||
26236 | cat >>conftest.$ac_ext <<_ACEOF | ||
26237 | /* end confdefs.h. */ | ||
26238 | #include <sys/types.h> | ||
26239 | #include <arpa/nameser.h> | ||
26240 | |||
26241 | int | ||
26242 | main () | ||
26243 | { | ||
26244 | #ifndef _getlong | ||
26245 | (void) _getlong; | ||
26246 | #endif | ||
26247 | |||
26248 | ; | ||
26249 | return 0; | ||
26250 | } | ||
26251 | _ACEOF | ||
26252 | rm -f conftest.$ac_objext | ||
26253 | if { (ac_try="$ac_compile" | ||
26254 | case "(($ac_try" in | ||
26255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26256 | *) ac_try_echo=$ac_try;; | ||
26257 | esac | ||
26258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26259 | (eval "$ac_compile") 2>conftest.er1 | ||
26260 | ac_status=$? | ||
26261 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26262 | rm -f conftest.er1 | ||
26263 | cat conftest.err >&5 | ||
26264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26265 | (exit $ac_status); } && { | ||
26266 | test -z "$ac_c_werror_flag" || | ||
26267 | test ! -s conftest.err | ||
26268 | } && test -s conftest.$ac_objext; then | ||
26269 | ac_cv_have_decl__getlong=yes | ||
26270 | else | ||
26271 | echo "$as_me: failed program was:" >&5 | ||
26272 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26273 | |||
26274 | ac_cv_have_decl__getlong=no | ||
26275 | fi | ||
26276 | |||
26277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26278 | fi | ||
26279 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5 | ||
26280 | echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; } | ||
26281 | if test $ac_cv_have_decl__getlong = yes; then | ||
26282 | |||
26283 | cat >>confdefs.h <<_ACEOF | ||
26284 | #define HAVE_DECL__GETLONG 1 | ||
26285 | _ACEOF | ||
26286 | |||
26287 | |||
26288 | else | ||
26289 | cat >>confdefs.h <<_ACEOF | ||
26290 | #define HAVE_DECL__GETLONG 0 | ||
26291 | _ACEOF | ||
26292 | |||
26293 | |||
26294 | fi | ||
26295 | |||
26296 | |||
26297 | { echo "$as_me:$LINENO: checking for HEADER.ad" >&5 | ||
26298 | echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; } | ||
26299 | if test "${ac_cv_member_HEADER_ad+set}" = set; then | ||
26300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26301 | else | ||
26302 | cat >conftest.$ac_ext <<_ACEOF | ||
26303 | /* confdefs.h. */ | ||
26304 | _ACEOF | ||
26305 | cat confdefs.h >>conftest.$ac_ext | ||
26306 | cat >>conftest.$ac_ext <<_ACEOF | ||
26307 | /* end confdefs.h. */ | ||
26308 | #include <arpa/nameser.h> | ||
26309 | |||
26310 | int | ||
26311 | main () | ||
26312 | { | ||
26313 | static HEADER ac_aggr; | ||
26314 | if (ac_aggr.ad) | ||
26315 | return 0; | ||
26316 | ; | ||
26317 | return 0; | ||
26318 | } | ||
26319 | _ACEOF | ||
26320 | rm -f conftest.$ac_objext | ||
26321 | if { (ac_try="$ac_compile" | ||
26322 | case "(($ac_try" in | ||
26323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26324 | *) ac_try_echo=$ac_try;; | ||
26325 | esac | ||
26326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26327 | (eval "$ac_compile") 2>conftest.er1 | ||
26328 | ac_status=$? | ||
26329 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26330 | rm -f conftest.er1 | ||
26331 | cat conftest.err >&5 | ||
26332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26333 | (exit $ac_status); } && { | ||
26334 | test -z "$ac_c_werror_flag" || | ||
26335 | test ! -s conftest.err | ||
26336 | } && test -s conftest.$ac_objext; then | ||
26337 | ac_cv_member_HEADER_ad=yes | ||
26338 | else | ||
26339 | echo "$as_me: failed program was:" >&5 | ||
26340 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26341 | |||
26342 | cat >conftest.$ac_ext <<_ACEOF | ||
26343 | /* confdefs.h. */ | ||
26344 | _ACEOF | ||
26345 | cat confdefs.h >>conftest.$ac_ext | ||
26346 | cat >>conftest.$ac_ext <<_ACEOF | ||
26347 | /* end confdefs.h. */ | ||
26348 | #include <arpa/nameser.h> | ||
26349 | |||
26350 | int | ||
26351 | main () | ||
26352 | { | ||
26353 | static HEADER ac_aggr; | ||
26354 | if (sizeof ac_aggr.ad) | ||
26355 | return 0; | ||
26356 | ; | ||
26357 | return 0; | ||
26358 | } | ||
26359 | _ACEOF | ||
26360 | rm -f conftest.$ac_objext | ||
26361 | if { (ac_try="$ac_compile" | ||
26362 | case "(($ac_try" in | ||
26363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26364 | *) ac_try_echo=$ac_try;; | ||
26365 | esac | ||
26366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26367 | (eval "$ac_compile") 2>conftest.er1 | ||
26368 | ac_status=$? | ||
26369 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26370 | rm -f conftest.er1 | ||
26371 | cat conftest.err >&5 | ||
26372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26373 | (exit $ac_status); } && { | ||
26374 | test -z "$ac_c_werror_flag" || | ||
26375 | test ! -s conftest.err | ||
26376 | } && test -s conftest.$ac_objext; then | ||
26377 | ac_cv_member_HEADER_ad=yes | ||
26378 | else | ||
26379 | echo "$as_me: failed program was:" >&5 | ||
26380 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26381 | |||
26382 | ac_cv_member_HEADER_ad=no | ||
26383 | fi | ||
26384 | |||
26385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26386 | fi | ||
26387 | |||
26388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26389 | fi | ||
26390 | { echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5 | ||
26391 | echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; } | ||
26392 | if test $ac_cv_member_HEADER_ad = yes; then | ||
26393 | |||
26394 | cat >>confdefs.h <<\_ACEOF | ||
26395 | #define HAVE_HEADER_AD 1 | ||
26396 | _ACEOF | ||
26397 | |||
26398 | fi | ||
26399 | |||
26400 | |||
26401 | fi | ||
26402 | |||
26403 | |||
26404 | { echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5 | ||
26405 | echo $ECHO_N "checking if struct __res_state _res is an extern... $ECHO_C" >&6; } | ||
26406 | cat >conftest.$ac_ext <<_ACEOF | ||
26407 | |||
26408 | #include <stdio.h> | ||
26409 | #if HAVE_SYS_TYPES_H | ||
26410 | # include <sys/types.h> | ||
26411 | #endif | ||
26412 | #include <netinet/in.h> | ||
26413 | #include <arpa/nameser.h> | ||
26414 | #include <resolv.h> | ||
26415 | extern struct __res_state _res; | ||
26416 | int main() { return 0; } | ||
26417 | |||
26418 | _ACEOF | ||
26419 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26420 | if { (ac_try="$ac_link" | ||
26421 | case "(($ac_try" in | ||
26422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26423 | *) ac_try_echo=$ac_try;; | ||
26424 | esac | ||
26425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26426 | (eval "$ac_link") 2>conftest.er1 | ||
26427 | ac_status=$? | ||
26428 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26429 | rm -f conftest.er1 | ||
26430 | cat conftest.err >&5 | ||
26431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26432 | (exit $ac_status); } && { | ||
26433 | test -z "$ac_c_werror_flag" || | ||
26434 | test ! -s conftest.err | ||
26435 | } && test -s conftest$ac_exeext && | ||
26436 | $as_test_x conftest$ac_exeext; then | ||
26437 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26438 | echo "${ECHO_T}yes" >&6; } | ||
26439 | |||
26440 | cat >>confdefs.h <<\_ACEOF | ||
26441 | #define HAVE__RES_EXTERN 1 | ||
26442 | _ACEOF | ||
26443 | |||
26444 | |||
26445 | else | ||
26446 | echo "$as_me: failed program was:" >&5 | ||
26447 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26448 | |||
26449 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26450 | echo "${ECHO_T}no" >&6; } | ||
26451 | |||
26452 | fi | ||
26453 | |||
26454 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26455 | conftest$ac_exeext conftest.$ac_ext | ||
26456 | |||
26457 | # Check whether user wants SELinux support | ||
26458 | SELINUX_MSG="no" | ||
26459 | LIBSELINUX="" | ||
26460 | |||
26461 | # Check whether --with-selinux was given. | ||
26462 | if test "${with_selinux+set}" = set; then | ||
26463 | withval=$with_selinux; if test "x$withval" != "xno" ; then | ||
26464 | save_LIBS="$LIBS" | ||
26465 | |||
26466 | cat >>confdefs.h <<\_ACEOF | ||
26467 | #define WITH_SELINUX 1 | ||
26468 | _ACEOF | ||
26469 | |||
26470 | SELINUX_MSG="yes" | ||
26471 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
26472 | { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 | ||
26473 | echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; } | ||
26474 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
26475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26476 | fi | ||
26477 | { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 | ||
26478 | echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; } | ||
26479 | else | ||
26480 | # Is the header compilable? | ||
26481 | { echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5 | ||
26482 | echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; } | ||
26483 | cat >conftest.$ac_ext <<_ACEOF | ||
26484 | /* confdefs.h. */ | ||
26485 | _ACEOF | ||
26486 | cat confdefs.h >>conftest.$ac_ext | ||
26487 | cat >>conftest.$ac_ext <<_ACEOF | ||
26488 | /* end confdefs.h. */ | ||
26489 | $ac_includes_default | ||
26490 | #include <selinux/selinux.h> | ||
26491 | _ACEOF | ||
26492 | rm -f conftest.$ac_objext | ||
26493 | if { (ac_try="$ac_compile" | ||
26494 | case "(($ac_try" in | ||
26495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26496 | *) ac_try_echo=$ac_try;; | ||
26497 | esac | ||
26498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26499 | (eval "$ac_compile") 2>conftest.er1 | ||
26500 | ac_status=$? | ||
26501 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26502 | rm -f conftest.er1 | ||
26503 | cat conftest.err >&5 | ||
26504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26505 | (exit $ac_status); } && { | ||
26506 | test -z "$ac_c_werror_flag" || | ||
26507 | test ! -s conftest.err | ||
26508 | } && test -s conftest.$ac_objext; then | ||
26509 | ac_header_compiler=yes | ||
26510 | else | ||
26511 | echo "$as_me: failed program was:" >&5 | ||
26512 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26513 | |||
26514 | ac_header_compiler=no | ||
26515 | fi | ||
26516 | |||
26517 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26518 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
26519 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
26520 | |||
26521 | # Is the header present? | ||
26522 | { echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5 | ||
26523 | echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; } | ||
26524 | cat >conftest.$ac_ext <<_ACEOF | ||
26525 | /* confdefs.h. */ | ||
26526 | _ACEOF | ||
26527 | cat confdefs.h >>conftest.$ac_ext | ||
26528 | cat >>conftest.$ac_ext <<_ACEOF | ||
26529 | /* end confdefs.h. */ | ||
26530 | #include <selinux/selinux.h> | ||
26531 | _ACEOF | ||
26532 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
26533 | case "(($ac_try" in | ||
26534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26535 | *) ac_try_echo=$ac_try;; | ||
26536 | esac | ||
26537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26538 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
26539 | ac_status=$? | ||
26540 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26541 | rm -f conftest.er1 | ||
26542 | cat conftest.err >&5 | ||
26543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26544 | (exit $ac_status); } >/dev/null && { | ||
26545 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
26546 | test ! -s conftest.err | ||
26547 | }; then | ||
26548 | ac_header_preproc=yes | ||
26549 | else | ||
26550 | echo "$as_me: failed program was:" >&5 | ||
26551 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26552 | |||
26553 | ac_header_preproc=no | ||
26554 | fi | ||
26555 | |||
26556 | rm -f conftest.err conftest.$ac_ext | ||
26557 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
26558 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
26559 | |||
26560 | # So? What about this header? | ||
26561 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
26562 | yes:no: ) | ||
26563 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
26564 | echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
26565 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5 | ||
26566 | echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;} | ||
26567 | ac_header_preproc=yes | ||
26568 | ;; | ||
26569 | no:yes:* ) | ||
26570 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5 | ||
26571 | echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;} | ||
26572 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5 | ||
26573 | echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;} | ||
26574 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5 | ||
26575 | echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;} | ||
26576 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
26577 | echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
26578 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5 | ||
26579 | echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;} | ||
26580 | { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5 | ||
26581 | echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;} | ||
26582 | ( cat <<\_ASBOX | ||
26583 | ## ------------------------------------------- ## | ||
26584 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
26585 | ## ------------------------------------------- ## | ||
26586 | _ASBOX | ||
26587 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
26588 | ;; | ||
26589 | esac | ||
26590 | { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 | ||
26591 | echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; } | ||
26592 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
26593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26594 | else | ||
26595 | ac_cv_header_selinux_selinux_h=$ac_header_preproc | ||
26596 | fi | ||
26597 | { echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 | ||
26598 | echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; } | ||
26599 | |||
26600 | fi | ||
26601 | if test $ac_cv_header_selinux_selinux_h = yes; then | ||
26602 | : | ||
26603 | else | ||
26604 | { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5 | ||
26605 | echo "$as_me: error: SELinux support requires selinux.h header" >&2;} | ||
26606 | { (exit 1); exit 1; }; } | ||
26607 | fi | ||
26608 | |||
26609 | |||
26610 | { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5 | ||
26611 | echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; } | ||
26612 | if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then | ||
26613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26614 | else | ||
26615 | ac_check_lib_save_LIBS=$LIBS | ||
26616 | LIBS="-lselinux $LIBS" | ||
26617 | cat >conftest.$ac_ext <<_ACEOF | ||
26618 | /* confdefs.h. */ | ||
26619 | _ACEOF | ||
26620 | cat confdefs.h >>conftest.$ac_ext | ||
26621 | cat >>conftest.$ac_ext <<_ACEOF | ||
26622 | /* end confdefs.h. */ | ||
26623 | |||
26624 | /* Override any GCC internal prototype to avoid an error. | ||
26625 | Use char because int might match the return type of a GCC | ||
26626 | builtin and then its argument prototype would still apply. */ | ||
26627 | #ifdef __cplusplus | ||
26628 | extern "C" | ||
26629 | #endif | ||
26630 | char setexeccon (); | ||
26631 | int | ||
26632 | main () | ||
26633 | { | ||
26634 | return setexeccon (); | ||
26635 | ; | ||
26636 | return 0; | ||
26637 | } | ||
26638 | _ACEOF | ||
26639 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26640 | if { (ac_try="$ac_link" | ||
26641 | case "(($ac_try" in | ||
26642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26643 | *) ac_try_echo=$ac_try;; | ||
26644 | esac | ||
26645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26646 | (eval "$ac_link") 2>conftest.er1 | ||
26647 | ac_status=$? | ||
26648 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26649 | rm -f conftest.er1 | ||
26650 | cat conftest.err >&5 | ||
26651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26652 | (exit $ac_status); } && { | ||
26653 | test -z "$ac_c_werror_flag" || | ||
26654 | test ! -s conftest.err | ||
26655 | } && test -s conftest$ac_exeext && | ||
26656 | $as_test_x conftest$ac_exeext; then | ||
26657 | ac_cv_lib_selinux_setexeccon=yes | ||
26658 | else | ||
26659 | echo "$as_me: failed program was:" >&5 | ||
26660 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26661 | |||
26662 | ac_cv_lib_selinux_setexeccon=no | ||
26663 | fi | ||
26664 | |||
26665 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26666 | conftest$ac_exeext conftest.$ac_ext | ||
26667 | LIBS=$ac_check_lib_save_LIBS | ||
26668 | fi | ||
26669 | { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5 | ||
26670 | echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; } | ||
26671 | if test $ac_cv_lib_selinux_setexeccon = yes; then | ||
26672 | LIBSELINUX="-lselinux" | ||
26673 | LIBS="$LIBS -lselinux" | ||
26674 | |||
26675 | else | ||
26676 | { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5 | ||
26677 | echo "$as_me: error: SELinux support requires libselinux library" >&2;} | ||
26678 | { (exit 1); exit 1; }; } | ||
26679 | fi | ||
26680 | |||
26681 | SSHDLIBS="$SSHDLIBS $LIBSELINUX" | ||
26682 | |||
26683 | |||
26684 | for ac_func in getseuserbyname get_default_context_with_level | ||
26685 | do | ||
26686 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
26687 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
26688 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
26689 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
26690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26691 | else | ||
26692 | cat >conftest.$ac_ext <<_ACEOF | ||
26693 | /* confdefs.h. */ | ||
26694 | _ACEOF | ||
26695 | cat confdefs.h >>conftest.$ac_ext | ||
26696 | cat >>conftest.$ac_ext <<_ACEOF | ||
26697 | /* end confdefs.h. */ | ||
26698 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
26699 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
26700 | #define $ac_func innocuous_$ac_func | ||
26701 | |||
26702 | /* System header to define __stub macros and hopefully few prototypes, | ||
26703 | which can conflict with char $ac_func (); below. | ||
26704 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
26705 | <limits.h> exists even on freestanding compilers. */ | ||
26706 | |||
26707 | #ifdef __STDC__ | ||
26708 | # include <limits.h> | ||
26709 | #else | ||
26710 | # include <assert.h> | ||
26711 | #endif | ||
26712 | |||
26713 | #undef $ac_func | ||
26714 | |||
26715 | /* Override any GCC internal prototype to avoid an error. | ||
26716 | Use char because int might match the return type of a GCC | ||
26717 | builtin and then its argument prototype would still apply. */ | ||
26718 | #ifdef __cplusplus | ||
26719 | extern "C" | ||
26720 | #endif | ||
26721 | char $ac_func (); | ||
26722 | /* The GNU C library defines this for functions which it implements | ||
26723 | to always fail with ENOSYS. Some functions are actually named | ||
26724 | something starting with __ and the normal name is an alias. */ | ||
26725 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
26726 | choke me | ||
26727 | #endif | ||
26728 | |||
26729 | int | ||
26730 | main () | ||
26731 | { | ||
26732 | return $ac_func (); | ||
26733 | ; | ||
26734 | return 0; | ||
26735 | } | ||
26736 | _ACEOF | ||
26737 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26738 | if { (ac_try="$ac_link" | ||
26739 | case "(($ac_try" in | ||
26740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26741 | *) ac_try_echo=$ac_try;; | ||
26742 | esac | ||
26743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26744 | (eval "$ac_link") 2>conftest.er1 | ||
26745 | ac_status=$? | ||
26746 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26747 | rm -f conftest.er1 | ||
26748 | cat conftest.err >&5 | ||
26749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26750 | (exit $ac_status); } && { | ||
26751 | test -z "$ac_c_werror_flag" || | ||
26752 | test ! -s conftest.err | ||
26753 | } && test -s conftest$ac_exeext && | ||
26754 | $as_test_x conftest$ac_exeext; then | ||
26755 | eval "$as_ac_var=yes" | ||
26756 | else | ||
26757 | echo "$as_me: failed program was:" >&5 | ||
26758 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26759 | |||
26760 | eval "$as_ac_var=no" | ||
26761 | fi | ||
26762 | |||
26763 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26764 | conftest$ac_exeext conftest.$ac_ext | ||
26765 | fi | ||
26766 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
26767 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
26768 | echo "${ECHO_T}$ac_res" >&6; } | ||
26769 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
26770 | cat >>confdefs.h <<_ACEOF | ||
26771 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
26772 | _ACEOF | ||
26773 | |||
26774 | fi | ||
26775 | done | ||
26776 | |||
26777 | LIBS="$save_LIBS" | ||
26778 | fi | ||
26779 | |||
26780 | fi | ||
26781 | |||
26782 | |||
26783 | # Check whether user wants Kerberos 5 support | ||
26784 | KRB5_MSG="no" | ||
26785 | |||
26786 | # Check whether --with-kerberos5 was given. | ||
26787 | if test "${with_kerberos5+set}" = set; then | ||
26788 | withval=$with_kerberos5; if test "x$withval" != "xno" ; then | ||
26789 | if test "x$withval" = "xyes" ; then | ||
26790 | KRB5ROOT="/usr/local" | ||
26791 | else | ||
26792 | KRB5ROOT=${withval} | ||
26793 | fi | ||
26794 | |||
26795 | |||
26796 | cat >>confdefs.h <<\_ACEOF | ||
26797 | #define KRB5 1 | ||
26798 | _ACEOF | ||
26799 | |||
26800 | KRB5_MSG="yes" | ||
26801 | |||
26802 | # Extract the first word of "krb5-config", so it can be a program name with args. | ||
26803 | set dummy krb5-config; ac_word=$2 | ||
26804 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
26805 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
26806 | if test "${ac_cv_path_KRB5CONF+set}" = set; then | ||
26807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26808 | else | ||
26809 | case $KRB5CONF in | ||
26810 | [\\/]* | ?:[\\/]*) | ||
26811 | ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path. | ||
26812 | ;; | ||
26813 | *) | ||
26814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
26815 | as_dummy="$KRB5ROOT/bin:$PATH" | ||
26816 | for as_dir in $as_dummy | ||
26817 | do | ||
26818 | IFS=$as_save_IFS | ||
26819 | test -z "$as_dir" && as_dir=. | ||
26820 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
26821 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
26822 | ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext" | ||
26823 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
26824 | break 2 | ||
26825 | fi | ||
26826 | done | ||
26827 | done | ||
26828 | IFS=$as_save_IFS | ||
26829 | |||
26830 | test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config" | ||
26831 | ;; | ||
26832 | esac | ||
26833 | fi | ||
26834 | KRB5CONF=$ac_cv_path_KRB5CONF | ||
26835 | if test -n "$KRB5CONF"; then | ||
26836 | { echo "$as_me:$LINENO: result: $KRB5CONF" >&5 | ||
26837 | echo "${ECHO_T}$KRB5CONF" >&6; } | ||
26838 | else | ||
26839 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26840 | echo "${ECHO_T}no" >&6; } | ||
26841 | fi | ||
26842 | |||
26843 | |||
26844 | if test -x $KRB5CONF ; then | ||
26845 | |||
26846 | { echo "$as_me:$LINENO: checking for gssapi support" >&5 | ||
26847 | echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; } | ||
26848 | if $KRB5CONF | grep gssapi >/dev/null ; then | ||
26849 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26850 | echo "${ECHO_T}yes" >&6; } | ||
26851 | |||
26852 | cat >>confdefs.h <<\_ACEOF | ||
26853 | #define GSSAPI 1 | ||
26854 | _ACEOF | ||
26855 | |||
26856 | k5confopts=gssapi | ||
26857 | else | ||
26858 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26859 | echo "${ECHO_T}no" >&6; } | ||
26860 | k5confopts="" | ||
26861 | fi | ||
26862 | K5CFLAGS="`$KRB5CONF --cflags $k5confopts`" | ||
26863 | K5LIBS="`$KRB5CONF --libs $k5confopts`" | ||
26864 | CPPFLAGS="$CPPFLAGS $K5CFLAGS" | ||
26865 | { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
26866 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; } | ||
26867 | cat >conftest.$ac_ext <<_ACEOF | ||
26868 | /* confdefs.h. */ | ||
26869 | _ACEOF | ||
26870 | cat confdefs.h >>conftest.$ac_ext | ||
26871 | cat >>conftest.$ac_ext <<_ACEOF | ||
26872 | /* end confdefs.h. */ | ||
26873 | #include <krb5.h> | ||
26874 | int | ||
26875 | main () | ||
26876 | { | ||
26877 | char *tmp = heimdal_version; | ||
26878 | ; | ||
26879 | return 0; | ||
26880 | } | ||
26881 | _ACEOF | ||
26882 | rm -f conftest.$ac_objext | ||
26883 | if { (ac_try="$ac_compile" | ||
26884 | case "(($ac_try" in | ||
26885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26886 | *) ac_try_echo=$ac_try;; | ||
26887 | esac | ||
26888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26889 | (eval "$ac_compile") 2>conftest.er1 | ||
26890 | ac_status=$? | ||
26891 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26892 | rm -f conftest.er1 | ||
26893 | cat conftest.err >&5 | ||
26894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26895 | (exit $ac_status); } && { | ||
26896 | test -z "$ac_c_werror_flag" || | ||
26897 | test ! -s conftest.err | ||
26898 | } && test -s conftest.$ac_objext; then | ||
26899 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26900 | echo "${ECHO_T}yes" >&6; } | ||
26901 | |||
26902 | cat >>confdefs.h <<\_ACEOF | ||
26903 | #define HEIMDAL 1 | ||
26904 | _ACEOF | ||
26905 | |||
26906 | else | ||
26907 | echo "$as_me: failed program was:" >&5 | ||
26908 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26909 | |||
26910 | { echo "$as_me:$LINENO: result: no" >&5 | ||
26911 | echo "${ECHO_T}no" >&6; } | ||
26912 | |||
26913 | fi | ||
26914 | |||
26915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26916 | else | ||
26917 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
26918 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
26919 | { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
26920 | echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; } | ||
26921 | cat >conftest.$ac_ext <<_ACEOF | ||
26922 | /* confdefs.h. */ | ||
26923 | _ACEOF | ||
26924 | cat confdefs.h >>conftest.$ac_ext | ||
26925 | cat >>conftest.$ac_ext <<_ACEOF | ||
26926 | /* end confdefs.h. */ | ||
26927 | #include <krb5.h> | ||
26928 | int | ||
26929 | main () | ||
26930 | { | ||
26931 | char *tmp = heimdal_version; | ||
26932 | ; | ||
26933 | return 0; | ||
26934 | } | ||
26935 | _ACEOF | ||
26936 | rm -f conftest.$ac_objext | ||
26937 | if { (ac_try="$ac_compile" | ||
26938 | case "(($ac_try" in | ||
26939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26940 | *) ac_try_echo=$ac_try;; | ||
26941 | esac | ||
26942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26943 | (eval "$ac_compile") 2>conftest.er1 | ||
26944 | ac_status=$? | ||
26945 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26946 | rm -f conftest.er1 | ||
26947 | cat conftest.err >&5 | ||
26948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26949 | (exit $ac_status); } && { | ||
26950 | test -z "$ac_c_werror_flag" || | ||
26951 | test ! -s conftest.err | ||
26952 | } && test -s conftest.$ac_objext; then | ||
26953 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
26954 | echo "${ECHO_T}yes" >&6; } | ||
26955 | cat >>confdefs.h <<\_ACEOF | ||
26956 | #define HEIMDAL 1 | ||
26957 | _ACEOF | ||
26958 | |||
26959 | K5LIBS="-lkrb5 -ldes" | ||
26960 | K5LIBS="$K5LIBS -lcom_err -lasn1" | ||
26961 | { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5 | ||
26962 | echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; } | ||
26963 | if test "${ac_cv_lib_roken_net_write+set}" = set; then | ||
26964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
26965 | else | ||
26966 | ac_check_lib_save_LIBS=$LIBS | ||
26967 | LIBS="-lroken $LIBS" | ||
26968 | cat >conftest.$ac_ext <<_ACEOF | ||
26969 | /* confdefs.h. */ | ||
26970 | _ACEOF | ||
26971 | cat confdefs.h >>conftest.$ac_ext | ||
26972 | cat >>conftest.$ac_ext <<_ACEOF | ||
26973 | /* end confdefs.h. */ | ||
26974 | |||
26975 | /* Override any GCC internal prototype to avoid an error. | ||
26976 | Use char because int might match the return type of a GCC | ||
26977 | builtin and then its argument prototype would still apply. */ | ||
26978 | #ifdef __cplusplus | ||
26979 | extern "C" | ||
26980 | #endif | ||
26981 | char net_write (); | ||
26982 | int | ||
26983 | main () | ||
26984 | { | ||
26985 | return net_write (); | ||
26986 | ; | ||
26987 | return 0; | ||
26988 | } | ||
26989 | _ACEOF | ||
26990 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26991 | if { (ac_try="$ac_link" | ||
26992 | case "(($ac_try" in | ||
26993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26994 | *) ac_try_echo=$ac_try;; | ||
26995 | esac | ||
26996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
26997 | (eval "$ac_link") 2>conftest.er1 | ||
26998 | ac_status=$? | ||
26999 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27000 | rm -f conftest.er1 | ||
27001 | cat conftest.err >&5 | ||
27002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27003 | (exit $ac_status); } && { | ||
27004 | test -z "$ac_c_werror_flag" || | ||
27005 | test ! -s conftest.err | ||
27006 | } && test -s conftest$ac_exeext && | ||
27007 | $as_test_x conftest$ac_exeext; then | ||
27008 | ac_cv_lib_roken_net_write=yes | ||
27009 | else | ||
27010 | echo "$as_me: failed program was:" >&5 | ||
27011 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27012 | |||
27013 | ac_cv_lib_roken_net_write=no | ||
27014 | fi | ||
27015 | |||
27016 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
27017 | conftest$ac_exeext conftest.$ac_ext | ||
27018 | LIBS=$ac_check_lib_save_LIBS | ||
27019 | fi | ||
27020 | { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5 | ||
27021 | echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; } | ||
27022 | if test $ac_cv_lib_roken_net_write = yes; then | ||
27023 | K5LIBS="$K5LIBS -lroken" | ||
27024 | fi | ||
27025 | |||
27026 | |||
27027 | else | ||
27028 | echo "$as_me: failed program was:" >&5 | ||
27029 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27030 | |||
27031 | { echo "$as_me:$LINENO: result: no" >&5 | ||
27032 | echo "${ECHO_T}no" >&6; } | ||
27033 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
27034 | |||
27035 | |||
27036 | fi | ||
27037 | |||
27038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27039 | { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
27040 | echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; } | ||
27041 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
27042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27043 | else | ||
27044 | ac_func_search_save_LIBS=$LIBS | ||
27045 | cat >conftest.$ac_ext <<_ACEOF | ||
27046 | /* confdefs.h. */ | ||
27047 | _ACEOF | ||
27048 | cat confdefs.h >>conftest.$ac_ext | ||
27049 | cat >>conftest.$ac_ext <<_ACEOF | ||
27050 | /* end confdefs.h. */ | ||
27051 | |||
27052 | /* Override any GCC internal prototype to avoid an error. | ||
27053 | Use char because int might match the return type of a GCC | ||
27054 | builtin and then its argument prototype would still apply. */ | ||
27055 | #ifdef __cplusplus | ||
27056 | extern "C" | ||
27057 | #endif | ||
27058 | char dn_expand (); | ||
27059 | int | ||
27060 | main () | ||
27061 | { | ||
27062 | return dn_expand (); | ||
27063 | ; | ||
27064 | return 0; | ||
27065 | } | ||
27066 | _ACEOF | ||
27067 | for ac_lib in '' resolv; do | ||
27068 | if test -z "$ac_lib"; then | ||
27069 | ac_res="none required" | ||
27070 | else | ||
27071 | ac_res=-l$ac_lib | ||
27072 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
27073 | fi | ||
27074 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
27075 | if { (ac_try="$ac_link" | ||
27076 | case "(($ac_try" in | ||
27077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27078 | *) ac_try_echo=$ac_try;; | ||
27079 | esac | ||
27080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27081 | (eval "$ac_link") 2>conftest.er1 | ||
27082 | ac_status=$? | ||
27083 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27084 | rm -f conftest.er1 | ||
27085 | cat conftest.err >&5 | ||
27086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27087 | (exit $ac_status); } && { | ||
27088 | test -z "$ac_c_werror_flag" || | ||
27089 | test ! -s conftest.err | ||
27090 | } && test -s conftest$ac_exeext && | ||
27091 | $as_test_x conftest$ac_exeext; then | ||
27092 | ac_cv_search_dn_expand=$ac_res | ||
27093 | else | ||
27094 | echo "$as_me: failed program was:" >&5 | ||
27095 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27096 | |||
27097 | |||
27098 | fi | ||
27099 | |||
27100 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
27101 | conftest$ac_exeext | ||
27102 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
27103 | break | ||
27104 | fi | ||
27105 | done | ||
27106 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
27107 | : | ||
27108 | else | ||
27109 | ac_cv_search_dn_expand=no | ||
27110 | fi | ||
27111 | rm conftest.$ac_ext | ||
27112 | LIBS=$ac_func_search_save_LIBS | ||
27113 | fi | ||
27114 | { echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
27115 | echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; } | ||
27116 | ac_res=$ac_cv_search_dn_expand | ||
27117 | if test "$ac_res" != no; then | ||
27118 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
27119 | |||
27120 | fi | ||
27121 | |||
27122 | |||
27123 | { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5 | ||
27124 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; } | ||
27125 | if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then | ||
27126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27127 | else | ||
27128 | ac_check_lib_save_LIBS=$LIBS | ||
27129 | LIBS="-lgssapi_krb5 $K5LIBS $LIBS" | ||
27130 | cat >conftest.$ac_ext <<_ACEOF | ||
27131 | /* confdefs.h. */ | ||
27132 | _ACEOF | ||
27133 | cat confdefs.h >>conftest.$ac_ext | ||
27134 | cat >>conftest.$ac_ext <<_ACEOF | ||
27135 | /* end confdefs.h. */ | ||
27136 | |||
27137 | /* Override any GCC internal prototype to avoid an error. | ||
27138 | Use char because int might match the return type of a GCC | ||
27139 | builtin and then its argument prototype would still apply. */ | ||
27140 | #ifdef __cplusplus | ||
27141 | extern "C" | ||
27142 | #endif | ||
27143 | char gss_init_sec_context (); | ||
27144 | int | ||
27145 | main () | ||
27146 | { | ||
27147 | return gss_init_sec_context (); | ||
27148 | ; | ||
27149 | return 0; | ||
27150 | } | ||
27151 | _ACEOF | ||
27152 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
27153 | if { (ac_try="$ac_link" | ||
27154 | case "(($ac_try" in | ||
27155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27156 | *) ac_try_echo=$ac_try;; | ||
27157 | esac | ||
27158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27159 | (eval "$ac_link") 2>conftest.er1 | ||
27160 | ac_status=$? | ||
27161 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27162 | rm -f conftest.er1 | ||
27163 | cat conftest.err >&5 | ||
27164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27165 | (exit $ac_status); } && { | ||
27166 | test -z "$ac_c_werror_flag" || | ||
27167 | test ! -s conftest.err | ||
27168 | } && test -s conftest$ac_exeext && | ||
27169 | $as_test_x conftest$ac_exeext; then | ||
27170 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes | ||
27171 | else | ||
27172 | echo "$as_me: failed program was:" >&5 | ||
27173 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27174 | |||
27175 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no | ||
27176 | fi | ||
27177 | |||
27178 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
27179 | conftest$ac_exeext conftest.$ac_ext | ||
27180 | LIBS=$ac_check_lib_save_LIBS | ||
27181 | fi | ||
27182 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 | ||
27183 | echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } | ||
27184 | if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then | ||
27185 | cat >>confdefs.h <<\_ACEOF | ||
27186 | #define GSSAPI 1 | ||
27187 | _ACEOF | ||
27188 | |||
27189 | K5LIBS="-lgssapi_krb5 $K5LIBS" | ||
27190 | else | ||
27191 | { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5 | ||
27192 | echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; } | ||
27193 | if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then | ||
27194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27195 | else | ||
27196 | ac_check_lib_save_LIBS=$LIBS | ||
27197 | LIBS="-lgssapi $K5LIBS $LIBS" | ||
27198 | cat >conftest.$ac_ext <<_ACEOF | ||
27199 | /* confdefs.h. */ | ||
27200 | _ACEOF | ||
27201 | cat confdefs.h >>conftest.$ac_ext | ||
27202 | cat >>conftest.$ac_ext <<_ACEOF | ||
27203 | /* end confdefs.h. */ | ||
27204 | |||
27205 | /* Override any GCC internal prototype to avoid an error. | ||
27206 | Use char because int might match the return type of a GCC | ||
27207 | builtin and then its argument prototype would still apply. */ | ||
27208 | #ifdef __cplusplus | ||
27209 | extern "C" | ||
27210 | #endif | ||
27211 | char gss_init_sec_context (); | ||
27212 | int | ||
27213 | main () | ||
27214 | { | ||
27215 | return gss_init_sec_context (); | ||
27216 | ; | ||
27217 | return 0; | ||
27218 | } | ||
27219 | _ACEOF | ||
27220 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
27221 | if { (ac_try="$ac_link" | ||
27222 | case "(($ac_try" in | ||
27223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27224 | *) ac_try_echo=$ac_try;; | ||
27225 | esac | ||
27226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27227 | (eval "$ac_link") 2>conftest.er1 | ||
27228 | ac_status=$? | ||
27229 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27230 | rm -f conftest.er1 | ||
27231 | cat conftest.err >&5 | ||
27232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27233 | (exit $ac_status); } && { | ||
27234 | test -z "$ac_c_werror_flag" || | ||
27235 | test ! -s conftest.err | ||
27236 | } && test -s conftest$ac_exeext && | ||
27237 | $as_test_x conftest$ac_exeext; then | ||
27238 | ac_cv_lib_gssapi_gss_init_sec_context=yes | ||
27239 | else | ||
27240 | echo "$as_me: failed program was:" >&5 | ||
27241 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27242 | |||
27243 | ac_cv_lib_gssapi_gss_init_sec_context=no | ||
27244 | fi | ||
27245 | |||
27246 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
27247 | conftest$ac_exeext conftest.$ac_ext | ||
27248 | LIBS=$ac_check_lib_save_LIBS | ||
27249 | fi | ||
27250 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 | ||
27251 | echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } | ||
27252 | if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then | ||
27253 | cat >>confdefs.h <<\_ACEOF | ||
27254 | #define GSSAPI 1 | ||
27255 | _ACEOF | ||
27256 | |||
27257 | K5LIBS="-lgssapi $K5LIBS" | ||
27258 | else | ||
27259 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 | ||
27260 | echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} | ||
27261 | fi | ||
27262 | |||
27263 | |||
27264 | fi | ||
27265 | |||
27266 | |||
27267 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
27268 | { echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
27269 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; } | ||
27270 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
27271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27272 | fi | ||
27273 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
27274 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; } | ||
27275 | else | ||
27276 | # Is the header compilable? | ||
27277 | { echo "$as_me:$LINENO: checking gssapi.h usability" >&5 | ||
27278 | echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; } | ||
27279 | cat >conftest.$ac_ext <<_ACEOF | ||
27280 | /* confdefs.h. */ | ||
27281 | _ACEOF | ||
27282 | cat confdefs.h >>conftest.$ac_ext | ||
27283 | cat >>conftest.$ac_ext <<_ACEOF | ||
27284 | /* end confdefs.h. */ | ||
27285 | $ac_includes_default | ||
27286 | #include <gssapi.h> | ||
27287 | _ACEOF | ||
27288 | rm -f conftest.$ac_objext | ||
27289 | if { (ac_try="$ac_compile" | ||
27290 | case "(($ac_try" in | ||
27291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27292 | *) ac_try_echo=$ac_try;; | ||
27293 | esac | ||
27294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27295 | (eval "$ac_compile") 2>conftest.er1 | ||
27296 | ac_status=$? | ||
27297 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27298 | rm -f conftest.er1 | ||
27299 | cat conftest.err >&5 | ||
27300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27301 | (exit $ac_status); } && { | ||
27302 | test -z "$ac_c_werror_flag" || | ||
27303 | test ! -s conftest.err | ||
27304 | } && test -s conftest.$ac_objext; then | ||
27305 | ac_header_compiler=yes | ||
27306 | else | ||
27307 | echo "$as_me: failed program was:" >&5 | ||
27308 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27309 | |||
27310 | ac_header_compiler=no | ||
27311 | fi | ||
27312 | |||
27313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27314 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
27315 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
27316 | |||
27317 | # Is the header present? | ||
27318 | { echo "$as_me:$LINENO: checking gssapi.h presence" >&5 | ||
27319 | echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; } | ||
27320 | cat >conftest.$ac_ext <<_ACEOF | ||
27321 | /* confdefs.h. */ | ||
27322 | _ACEOF | ||
27323 | cat confdefs.h >>conftest.$ac_ext | ||
27324 | cat >>conftest.$ac_ext <<_ACEOF | ||
27325 | /* end confdefs.h. */ | ||
27326 | #include <gssapi.h> | ||
27327 | _ACEOF | ||
27328 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
27329 | case "(($ac_try" in | ||
27330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27331 | *) ac_try_echo=$ac_try;; | ||
27332 | esac | ||
27333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27334 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
27335 | ac_status=$? | ||
27336 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27337 | rm -f conftest.er1 | ||
27338 | cat conftest.err >&5 | ||
27339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27340 | (exit $ac_status); } >/dev/null && { | ||
27341 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
27342 | test ! -s conftest.err | ||
27343 | }; then | ||
27344 | ac_header_preproc=yes | ||
27345 | else | ||
27346 | echo "$as_me: failed program was:" >&5 | ||
27347 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27348 | |||
27349 | ac_header_preproc=no | ||
27350 | fi | ||
27351 | |||
27352 | rm -f conftest.err conftest.$ac_ext | ||
27353 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
27354 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
27355 | |||
27356 | # So? What about this header? | ||
27357 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
27358 | yes:no: ) | ||
27359 | { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
27360 | echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
27361 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5 | ||
27362 | echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;} | ||
27363 | ac_header_preproc=yes | ||
27364 | ;; | ||
27365 | no:yes:* ) | ||
27366 | { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5 | ||
27367 | echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;} | ||
27368 | { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5 | ||
27369 | echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;} | ||
27370 | { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5 | ||
27371 | echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;} | ||
27372 | { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
27373 | echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
27374 | { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5 | ||
27375 | echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;} | ||
27376 | { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5 | ||
27377 | echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;} | ||
27378 | ( cat <<\_ASBOX | ||
27379 | ## ------------------------------------------- ## | ||
27380 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
27381 | ## ------------------------------------------- ## | ||
27382 | _ASBOX | ||
27383 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
27384 | ;; | ||
27385 | esac | ||
27386 | { echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
27387 | echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; } | ||
27388 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
27389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27390 | else | ||
27391 | ac_cv_header_gssapi_h=$ac_header_preproc | ||
27392 | fi | ||
27393 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
27394 | echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; } | ||
27395 | |||
27396 | fi | ||
27397 | if test $ac_cv_header_gssapi_h = yes; then | ||
27398 | : | ||
27399 | else | ||
27400 | unset ac_cv_header_gssapi_h | ||
27401 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
27402 | |||
27403 | for ac_header in gssapi.h | ||
27404 | do | ||
27405 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
27406 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27407 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
27408 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
27409 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27411 | fi | ||
27412 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
27413 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
27414 | echo "${ECHO_T}$ac_res" >&6; } | ||
27415 | else | ||
27416 | # Is the header compilable? | ||
27417 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
27418 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
27419 | cat >conftest.$ac_ext <<_ACEOF | ||
27420 | /* confdefs.h. */ | ||
27421 | _ACEOF | ||
27422 | cat confdefs.h >>conftest.$ac_ext | ||
27423 | cat >>conftest.$ac_ext <<_ACEOF | ||
27424 | /* end confdefs.h. */ | ||
27425 | $ac_includes_default | ||
27426 | #include <$ac_header> | ||
27427 | _ACEOF | ||
27428 | rm -f conftest.$ac_objext | ||
27429 | if { (ac_try="$ac_compile" | ||
27430 | case "(($ac_try" in | ||
27431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27432 | *) ac_try_echo=$ac_try;; | ||
27433 | esac | ||
27434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27435 | (eval "$ac_compile") 2>conftest.er1 | ||
27436 | ac_status=$? | ||
27437 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27438 | rm -f conftest.er1 | ||
27439 | cat conftest.err >&5 | ||
27440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27441 | (exit $ac_status); } && { | ||
27442 | test -z "$ac_c_werror_flag" || | ||
27443 | test ! -s conftest.err | ||
27444 | } && test -s conftest.$ac_objext; then | ||
27445 | ac_header_compiler=yes | ||
27446 | else | ||
27447 | echo "$as_me: failed program was:" >&5 | ||
27448 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27449 | |||
27450 | ac_header_compiler=no | ||
27451 | fi | ||
27452 | |||
27453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27454 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
27455 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
27456 | |||
27457 | # Is the header present? | ||
27458 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
27459 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
27460 | cat >conftest.$ac_ext <<_ACEOF | ||
27461 | /* confdefs.h. */ | ||
27462 | _ACEOF | ||
27463 | cat confdefs.h >>conftest.$ac_ext | ||
27464 | cat >>conftest.$ac_ext <<_ACEOF | ||
27465 | /* end confdefs.h. */ | ||
27466 | #include <$ac_header> | ||
27467 | _ACEOF | ||
27468 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
27469 | case "(($ac_try" in | ||
27470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27471 | *) ac_try_echo=$ac_try;; | ||
27472 | esac | ||
27473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27474 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
27475 | ac_status=$? | ||
27476 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27477 | rm -f conftest.er1 | ||
27478 | cat conftest.err >&5 | ||
27479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27480 | (exit $ac_status); } >/dev/null && { | ||
27481 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
27482 | test ! -s conftest.err | ||
27483 | }; then | ||
27484 | ac_header_preproc=yes | ||
27485 | else | ||
27486 | echo "$as_me: failed program was:" >&5 | ||
27487 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27488 | |||
27489 | ac_header_preproc=no | ||
27490 | fi | ||
27491 | |||
27492 | rm -f conftest.err conftest.$ac_ext | ||
27493 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
27494 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
27495 | |||
27496 | # So? What about this header? | ||
27497 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
27498 | yes:no: ) | ||
27499 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
27500 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
27501 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
27502 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
27503 | ac_header_preproc=yes | ||
27504 | ;; | ||
27505 | no:yes:* ) | ||
27506 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
27507 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
27508 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
27509 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
27510 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
27511 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
27512 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
27513 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
27514 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
27515 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
27516 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
27517 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
27518 | ( cat <<\_ASBOX | ||
27519 | ## ------------------------------------------- ## | ||
27520 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
27521 | ## ------------------------------------------- ## | ||
27522 | _ASBOX | ||
27523 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
27524 | ;; | ||
27525 | esac | ||
27526 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
27527 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
27528 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27530 | else | ||
27531 | eval "$as_ac_Header=\$ac_header_preproc" | ||
27532 | fi | ||
27533 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
27534 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
27535 | echo "${ECHO_T}$ac_res" >&6; } | ||
27536 | |||
27537 | fi | ||
27538 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
27539 | cat >>confdefs.h <<_ACEOF | ||
27540 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
27541 | _ACEOF | ||
27542 | |||
27543 | else | ||
27544 | { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 | ||
27545 | echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} | ||
27546 | |||
27547 | fi | ||
27548 | |||
27549 | done | ||
27550 | |||
27551 | |||
27552 | |||
27553 | fi | ||
27554 | |||
27555 | |||
27556 | |||
27557 | oldCPP="$CPPFLAGS" | ||
27558 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
27559 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
27560 | { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
27561 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; } | ||
27562 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
27563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27564 | fi | ||
27565 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
27566 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; } | ||
27567 | else | ||
27568 | # Is the header compilable? | ||
27569 | { echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5 | ||
27570 | echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; } | ||
27571 | cat >conftest.$ac_ext <<_ACEOF | ||
27572 | /* confdefs.h. */ | ||
27573 | _ACEOF | ||
27574 | cat confdefs.h >>conftest.$ac_ext | ||
27575 | cat >>conftest.$ac_ext <<_ACEOF | ||
27576 | /* end confdefs.h. */ | ||
27577 | $ac_includes_default | ||
27578 | #include <gssapi_krb5.h> | ||
27579 | _ACEOF | ||
27580 | rm -f conftest.$ac_objext | ||
27581 | if { (ac_try="$ac_compile" | ||
27582 | case "(($ac_try" in | ||
27583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27584 | *) ac_try_echo=$ac_try;; | ||
27585 | esac | ||
27586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27587 | (eval "$ac_compile") 2>conftest.er1 | ||
27588 | ac_status=$? | ||
27589 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27590 | rm -f conftest.er1 | ||
27591 | cat conftest.err >&5 | ||
27592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27593 | (exit $ac_status); } && { | ||
27594 | test -z "$ac_c_werror_flag" || | ||
27595 | test ! -s conftest.err | ||
27596 | } && test -s conftest.$ac_objext; then | ||
27597 | ac_header_compiler=yes | ||
27598 | else | ||
27599 | echo "$as_me: failed program was:" >&5 | ||
27600 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27601 | |||
27602 | ac_header_compiler=no | ||
27603 | fi | ||
27604 | |||
27605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27606 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
27607 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
27608 | |||
27609 | # Is the header present? | ||
27610 | { echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5 | ||
27611 | echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; } | ||
27612 | cat >conftest.$ac_ext <<_ACEOF | ||
27613 | /* confdefs.h. */ | ||
27614 | _ACEOF | ||
27615 | cat confdefs.h >>conftest.$ac_ext | ||
27616 | cat >>conftest.$ac_ext <<_ACEOF | ||
27617 | /* end confdefs.h. */ | ||
27618 | #include <gssapi_krb5.h> | ||
27619 | _ACEOF | ||
27620 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
27621 | case "(($ac_try" in | ||
27622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27623 | *) ac_try_echo=$ac_try;; | ||
27624 | esac | ||
27625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27626 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
27627 | ac_status=$? | ||
27628 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27629 | rm -f conftest.er1 | ||
27630 | cat conftest.err >&5 | ||
27631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27632 | (exit $ac_status); } >/dev/null && { | ||
27633 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
27634 | test ! -s conftest.err | ||
27635 | }; then | ||
27636 | ac_header_preproc=yes | ||
27637 | else | ||
27638 | echo "$as_me: failed program was:" >&5 | ||
27639 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27640 | |||
27641 | ac_header_preproc=no | ||
27642 | fi | ||
27643 | |||
27644 | rm -f conftest.err conftest.$ac_ext | ||
27645 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
27646 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
27647 | |||
27648 | # So? What about this header? | ||
27649 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
27650 | yes:no: ) | ||
27651 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
27652 | echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
27653 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5 | ||
27654 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;} | ||
27655 | ac_header_preproc=yes | ||
27656 | ;; | ||
27657 | no:yes:* ) | ||
27658 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5 | ||
27659 | echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;} | ||
27660 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5 | ||
27661 | echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;} | ||
27662 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5 | ||
27663 | echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;} | ||
27664 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
27665 | echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
27666 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5 | ||
27667 | echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;} | ||
27668 | { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5 | ||
27669 | echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;} | ||
27670 | ( cat <<\_ASBOX | ||
27671 | ## ------------------------------------------- ## | ||
27672 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
27673 | ## ------------------------------------------- ## | ||
27674 | _ASBOX | ||
27675 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
27676 | ;; | ||
27677 | esac | ||
27678 | { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
27679 | echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; } | ||
27680 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
27681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27682 | else | ||
27683 | ac_cv_header_gssapi_krb5_h=$ac_header_preproc | ||
27684 | fi | ||
27685 | { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
27686 | echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; } | ||
27687 | |||
27688 | fi | ||
27689 | if test $ac_cv_header_gssapi_krb5_h = yes; then | ||
27690 | : | ||
27691 | else | ||
27692 | CPPFLAGS="$oldCPP" | ||
27693 | fi | ||
27694 | |||
27695 | |||
27696 | |||
27697 | fi | ||
27698 | if test ! -z "$need_dash_r" ; then | ||
27699 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
27700 | fi | ||
27701 | if test ! -z "$blibpath" ; then | ||
27702 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
27703 | fi | ||
27704 | |||
27705 | |||
27706 | |||
27707 | for ac_header in gssapi.h gssapi/gssapi.h | ||
27708 | do | ||
27709 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
27710 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27711 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
27712 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
27713 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27715 | fi | ||
27716 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
27717 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
27718 | echo "${ECHO_T}$ac_res" >&6; } | ||
27719 | else | ||
27720 | # Is the header compilable? | ||
27721 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
27722 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
27723 | cat >conftest.$ac_ext <<_ACEOF | ||
27724 | /* confdefs.h. */ | ||
27725 | _ACEOF | ||
27726 | cat confdefs.h >>conftest.$ac_ext | ||
27727 | cat >>conftest.$ac_ext <<_ACEOF | ||
27728 | /* end confdefs.h. */ | ||
27729 | $ac_includes_default | ||
27730 | #include <$ac_header> | ||
27731 | _ACEOF | ||
27732 | rm -f conftest.$ac_objext | ||
27733 | if { (ac_try="$ac_compile" | ||
27734 | case "(($ac_try" in | ||
27735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27736 | *) ac_try_echo=$ac_try;; | ||
27737 | esac | ||
27738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27739 | (eval "$ac_compile") 2>conftest.er1 | ||
27740 | ac_status=$? | ||
27741 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27742 | rm -f conftest.er1 | ||
27743 | cat conftest.err >&5 | ||
27744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27745 | (exit $ac_status); } && { | ||
27746 | test -z "$ac_c_werror_flag" || | ||
27747 | test ! -s conftest.err | ||
27748 | } && test -s conftest.$ac_objext; then | ||
27749 | ac_header_compiler=yes | ||
27750 | else | ||
27751 | echo "$as_me: failed program was:" >&5 | ||
27752 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27753 | |||
27754 | ac_header_compiler=no | ||
27755 | fi | ||
27756 | |||
27757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27758 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
27759 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
27760 | |||
27761 | # Is the header present? | ||
27762 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
27763 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
27764 | cat >conftest.$ac_ext <<_ACEOF | ||
27765 | /* confdefs.h. */ | ||
27766 | _ACEOF | ||
27767 | cat confdefs.h >>conftest.$ac_ext | ||
27768 | cat >>conftest.$ac_ext <<_ACEOF | ||
27769 | /* end confdefs.h. */ | ||
27770 | #include <$ac_header> | ||
27771 | _ACEOF | ||
27772 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
27773 | case "(($ac_try" in | ||
27774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27775 | *) ac_try_echo=$ac_try;; | ||
27776 | esac | ||
27777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27778 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
27779 | ac_status=$? | ||
27780 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27781 | rm -f conftest.er1 | ||
27782 | cat conftest.err >&5 | ||
27783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27784 | (exit $ac_status); } >/dev/null && { | ||
27785 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
27786 | test ! -s conftest.err | ||
27787 | }; then | ||
27788 | ac_header_preproc=yes | ||
27789 | else | ||
27790 | echo "$as_me: failed program was:" >&5 | ||
27791 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27792 | |||
27793 | ac_header_preproc=no | ||
27794 | fi | ||
27795 | |||
27796 | rm -f conftest.err conftest.$ac_ext | ||
27797 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
27798 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
27799 | |||
27800 | # So? What about this header? | ||
27801 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
27802 | yes:no: ) | ||
27803 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
27804 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
27805 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
27806 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
27807 | ac_header_preproc=yes | ||
27808 | ;; | ||
27809 | no:yes:* ) | ||
27810 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
27811 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
27812 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
27813 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
27814 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
27815 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
27816 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
27817 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
27818 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
27819 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
27820 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
27821 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
27822 | ( cat <<\_ASBOX | ||
27823 | ## ------------------------------------------- ## | ||
27824 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
27825 | ## ------------------------------------------- ## | ||
27826 | _ASBOX | ||
27827 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
27828 | ;; | ||
27829 | esac | ||
27830 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
27831 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
27832 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27834 | else | ||
27835 | eval "$as_ac_Header=\$ac_header_preproc" | ||
27836 | fi | ||
27837 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
27838 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
27839 | echo "${ECHO_T}$ac_res" >&6; } | ||
27840 | |||
27841 | fi | ||
27842 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
27843 | cat >>confdefs.h <<_ACEOF | ||
27844 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
27845 | _ACEOF | ||
27846 | |||
27847 | fi | ||
27848 | |||
27849 | done | ||
27850 | |||
27851 | |||
27852 | |||
27853 | for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h | ||
27854 | do | ||
27855 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
27856 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27857 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
27858 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
27859 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27861 | fi | ||
27862 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
27863 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
27864 | echo "${ECHO_T}$ac_res" >&6; } | ||
27865 | else | ||
27866 | # Is the header compilable? | ||
27867 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
27868 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
27869 | cat >conftest.$ac_ext <<_ACEOF | ||
27870 | /* confdefs.h. */ | ||
27871 | _ACEOF | ||
27872 | cat confdefs.h >>conftest.$ac_ext | ||
27873 | cat >>conftest.$ac_ext <<_ACEOF | ||
27874 | /* end confdefs.h. */ | ||
27875 | $ac_includes_default | ||
27876 | #include <$ac_header> | ||
27877 | _ACEOF | ||
27878 | rm -f conftest.$ac_objext | ||
27879 | if { (ac_try="$ac_compile" | ||
27880 | case "(($ac_try" in | ||
27881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27882 | *) ac_try_echo=$ac_try;; | ||
27883 | esac | ||
27884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27885 | (eval "$ac_compile") 2>conftest.er1 | ||
27886 | ac_status=$? | ||
27887 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27888 | rm -f conftest.er1 | ||
27889 | cat conftest.err >&5 | ||
27890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27891 | (exit $ac_status); } && { | ||
27892 | test -z "$ac_c_werror_flag" || | ||
27893 | test ! -s conftest.err | ||
27894 | } && test -s conftest.$ac_objext; then | ||
27895 | ac_header_compiler=yes | ||
27896 | else | ||
27897 | echo "$as_me: failed program was:" >&5 | ||
27898 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27899 | |||
27900 | ac_header_compiler=no | ||
27901 | fi | ||
27902 | |||
27903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27904 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
27905 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
27906 | |||
27907 | # Is the header present? | ||
27908 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
27909 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
27910 | cat >conftest.$ac_ext <<_ACEOF | ||
27911 | /* confdefs.h. */ | ||
27912 | _ACEOF | ||
27913 | cat confdefs.h >>conftest.$ac_ext | ||
27914 | cat >>conftest.$ac_ext <<_ACEOF | ||
27915 | /* end confdefs.h. */ | ||
27916 | #include <$ac_header> | ||
27917 | _ACEOF | ||
27918 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
27919 | case "(($ac_try" in | ||
27920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27921 | *) ac_try_echo=$ac_try;; | ||
27922 | esac | ||
27923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
27924 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
27925 | ac_status=$? | ||
27926 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27927 | rm -f conftest.er1 | ||
27928 | cat conftest.err >&5 | ||
27929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27930 | (exit $ac_status); } >/dev/null && { | ||
27931 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
27932 | test ! -s conftest.err | ||
27933 | }; then | ||
27934 | ac_header_preproc=yes | ||
27935 | else | ||
27936 | echo "$as_me: failed program was:" >&5 | ||
27937 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27938 | |||
27939 | ac_header_preproc=no | ||
27940 | fi | ||
27941 | |||
27942 | rm -f conftest.err conftest.$ac_ext | ||
27943 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
27944 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
27945 | |||
27946 | # So? What about this header? | ||
27947 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
27948 | yes:no: ) | ||
27949 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
27950 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
27951 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
27952 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
27953 | ac_header_preproc=yes | ||
27954 | ;; | ||
27955 | no:yes:* ) | ||
27956 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
27957 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
27958 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
27959 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
27960 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
27961 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
27962 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
27963 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
27964 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
27965 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
27966 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
27967 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
27968 | ( cat <<\_ASBOX | ||
27969 | ## ------------------------------------------- ## | ||
27970 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
27971 | ## ------------------------------------------- ## | ||
27972 | _ASBOX | ||
27973 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
27974 | ;; | ||
27975 | esac | ||
27976 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
27977 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
27978 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
27980 | else | ||
27981 | eval "$as_ac_Header=\$ac_header_preproc" | ||
27982 | fi | ||
27983 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
27984 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
27985 | echo "${ECHO_T}$ac_res" >&6; } | ||
27986 | |||
27987 | fi | ||
27988 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
27989 | cat >>confdefs.h <<_ACEOF | ||
27990 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
27991 | _ACEOF | ||
27992 | |||
27993 | fi | ||
27994 | |||
27995 | done | ||
27996 | |||
27997 | |||
27998 | |||
27999 | for ac_header in gssapi_generic.h gssapi/gssapi_generic.h | ||
28000 | do | ||
28001 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
28002 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28003 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
28004 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
28005 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28007 | fi | ||
28008 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
28009 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
28010 | echo "${ECHO_T}$ac_res" >&6; } | ||
28011 | else | ||
28012 | # Is the header compilable? | ||
28013 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
28014 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
28015 | cat >conftest.$ac_ext <<_ACEOF | ||
28016 | /* confdefs.h. */ | ||
28017 | _ACEOF | ||
28018 | cat confdefs.h >>conftest.$ac_ext | ||
28019 | cat >>conftest.$ac_ext <<_ACEOF | ||
28020 | /* end confdefs.h. */ | ||
28021 | $ac_includes_default | ||
28022 | #include <$ac_header> | ||
28023 | _ACEOF | ||
28024 | rm -f conftest.$ac_objext | ||
28025 | if { (ac_try="$ac_compile" | ||
28026 | case "(($ac_try" in | ||
28027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28028 | *) ac_try_echo=$ac_try;; | ||
28029 | esac | ||
28030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28031 | (eval "$ac_compile") 2>conftest.er1 | ||
28032 | ac_status=$? | ||
28033 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28034 | rm -f conftest.er1 | ||
28035 | cat conftest.err >&5 | ||
28036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28037 | (exit $ac_status); } && { | ||
28038 | test -z "$ac_c_werror_flag" || | ||
28039 | test ! -s conftest.err | ||
28040 | } && test -s conftest.$ac_objext; then | ||
28041 | ac_header_compiler=yes | ||
28042 | else | ||
28043 | echo "$as_me: failed program was:" >&5 | ||
28044 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28045 | |||
28046 | ac_header_compiler=no | ||
28047 | fi | ||
28048 | |||
28049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28050 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
28051 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
28052 | |||
28053 | # Is the header present? | ||
28054 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
28055 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
28056 | cat >conftest.$ac_ext <<_ACEOF | ||
28057 | /* confdefs.h. */ | ||
28058 | _ACEOF | ||
28059 | cat confdefs.h >>conftest.$ac_ext | ||
28060 | cat >>conftest.$ac_ext <<_ACEOF | ||
28061 | /* end confdefs.h. */ | ||
28062 | #include <$ac_header> | ||
28063 | _ACEOF | ||
28064 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
28065 | case "(($ac_try" in | ||
28066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28067 | *) ac_try_echo=$ac_try;; | ||
28068 | esac | ||
28069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28070 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
28071 | ac_status=$? | ||
28072 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28073 | rm -f conftest.er1 | ||
28074 | cat conftest.err >&5 | ||
28075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28076 | (exit $ac_status); } >/dev/null && { | ||
28077 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
28078 | test ! -s conftest.err | ||
28079 | }; then | ||
28080 | ac_header_preproc=yes | ||
28081 | else | ||
28082 | echo "$as_me: failed program was:" >&5 | ||
28083 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28084 | |||
28085 | ac_header_preproc=no | ||
28086 | fi | ||
28087 | |||
28088 | rm -f conftest.err conftest.$ac_ext | ||
28089 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
28090 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
28091 | |||
28092 | # So? What about this header? | ||
28093 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
28094 | yes:no: ) | ||
28095 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
28096 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
28097 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
28098 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
28099 | ac_header_preproc=yes | ||
28100 | ;; | ||
28101 | no:yes:* ) | ||
28102 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
28103 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
28104 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
28105 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
28106 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
28107 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
28108 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
28109 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
28110 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
28111 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
28112 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
28113 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
28114 | ( cat <<\_ASBOX | ||
28115 | ## ------------------------------------------- ## | ||
28116 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
28117 | ## ------------------------------------------- ## | ||
28118 | _ASBOX | ||
28119 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
28120 | ;; | ||
28121 | esac | ||
28122 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
28123 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
28124 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28126 | else | ||
28127 | eval "$as_ac_Header=\$ac_header_preproc" | ||
28128 | fi | ||
28129 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
28130 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
28131 | echo "${ECHO_T}$ac_res" >&6; } | ||
28132 | |||
28133 | fi | ||
28134 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
28135 | cat >>confdefs.h <<_ACEOF | ||
28136 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
28137 | _ACEOF | ||
28138 | |||
28139 | fi | ||
28140 | |||
28141 | done | ||
28142 | |||
28143 | |||
28144 | LIBS="$LIBS $K5LIBS" | ||
28145 | { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5 | ||
28146 | echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; } | ||
28147 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
28148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28149 | else | ||
28150 | ac_func_search_save_LIBS=$LIBS | ||
28151 | cat >conftest.$ac_ext <<_ACEOF | ||
28152 | /* confdefs.h. */ | ||
28153 | _ACEOF | ||
28154 | cat confdefs.h >>conftest.$ac_ext | ||
28155 | cat >>conftest.$ac_ext <<_ACEOF | ||
28156 | /* end confdefs.h. */ | ||
28157 | |||
28158 | /* Override any GCC internal prototype to avoid an error. | ||
28159 | Use char because int might match the return type of a GCC | ||
28160 | builtin and then its argument prototype would still apply. */ | ||
28161 | #ifdef __cplusplus | ||
28162 | extern "C" | ||
28163 | #endif | ||
28164 | char k_hasafs (); | ||
28165 | int | ||
28166 | main () | ||
28167 | { | ||
28168 | return k_hasafs (); | ||
28169 | ; | ||
28170 | return 0; | ||
28171 | } | ||
28172 | _ACEOF | ||
28173 | for ac_lib in '' kafs; do | ||
28174 | if test -z "$ac_lib"; then | ||
28175 | ac_res="none required" | ||
28176 | else | ||
28177 | ac_res=-l$ac_lib | ||
28178 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
28179 | fi | ||
28180 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
28181 | if { (ac_try="$ac_link" | ||
28182 | case "(($ac_try" in | ||
28183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28184 | *) ac_try_echo=$ac_try;; | ||
28185 | esac | ||
28186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28187 | (eval "$ac_link") 2>conftest.er1 | ||
28188 | ac_status=$? | ||
28189 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28190 | rm -f conftest.er1 | ||
28191 | cat conftest.err >&5 | ||
28192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28193 | (exit $ac_status); } && { | ||
28194 | test -z "$ac_c_werror_flag" || | ||
28195 | test ! -s conftest.err | ||
28196 | } && test -s conftest$ac_exeext && | ||
28197 | $as_test_x conftest$ac_exeext; then | ||
28198 | ac_cv_search_k_hasafs=$ac_res | ||
28199 | else | ||
28200 | echo "$as_me: failed program was:" >&5 | ||
28201 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28202 | |||
28203 | |||
28204 | fi | ||
28205 | |||
28206 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
28207 | conftest$ac_exeext | ||
28208 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
28209 | break | ||
28210 | fi | ||
28211 | done | ||
28212 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
28213 | : | ||
28214 | else | ||
28215 | ac_cv_search_k_hasafs=no | ||
28216 | fi | ||
28217 | rm conftest.$ac_ext | ||
28218 | LIBS=$ac_func_search_save_LIBS | ||
28219 | fi | ||
28220 | { echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5 | ||
28221 | echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; } | ||
28222 | ac_res=$ac_cv_search_k_hasafs | ||
28223 | if test "$ac_res" != no; then | ||
28224 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
28225 | |||
28226 | cat >>confdefs.h <<\_ACEOF | ||
28227 | #define USE_AFS 1 | ||
28228 | _ACEOF | ||
28229 | |||
28230 | fi | ||
28231 | |||
28232 | fi | ||
28233 | |||
28234 | |||
28235 | fi | ||
28236 | |||
28237 | |||
28238 | # Looking for programs, paths and files | ||
28239 | |||
28240 | PRIVSEP_PATH=/var/empty | ||
28241 | |||
28242 | # Check whether --with-privsep-path was given. | ||
28243 | if test "${with_privsep_path+set}" = set; then | ||
28244 | withval=$with_privsep_path; | ||
28245 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
28246 | test "x${withval}" != "xyes"; then | ||
28247 | PRIVSEP_PATH=$withval | ||
28248 | fi | ||
28249 | |||
28250 | |||
28251 | fi | ||
28252 | |||
28253 | |||
28254 | |||
28255 | |||
28256 | # Check whether --with-xauth was given. | ||
28257 | if test "${with_xauth+set}" = set; then | ||
28258 | withval=$with_xauth; | ||
28259 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
28260 | test "x${withval}" != "xyes"; then | ||
28261 | xauth_path=$withval | ||
28262 | fi | ||
28263 | |||
28264 | else | ||
28265 | |||
28266 | TestPath="$PATH" | ||
28267 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
28268 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
28269 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
28270 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
28271 | # Extract the first word of "xauth", so it can be a program name with args. | ||
28272 | set dummy xauth; ac_word=$2 | ||
28273 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
28274 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
28275 | if test "${ac_cv_path_xauth_path+set}" = set; then | ||
28276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28277 | else | ||
28278 | case $xauth_path in | ||
28279 | [\\/]* | ?:[\\/]*) | ||
28280 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
28281 | ;; | ||
28282 | *) | ||
28283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
28284 | for as_dir in $TestPath | ||
28285 | do | ||
28286 | IFS=$as_save_IFS | ||
28287 | test -z "$as_dir" && as_dir=. | ||
28288 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
28289 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
28290 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" | ||
28291 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
28292 | break 2 | ||
28293 | fi | ||
28294 | done | ||
28295 | done | ||
28296 | IFS=$as_save_IFS | ||
28297 | |||
28298 | ;; | ||
28299 | esac | ||
28300 | fi | ||
28301 | xauth_path=$ac_cv_path_xauth_path | ||
28302 | if test -n "$xauth_path"; then | ||
28303 | { echo "$as_me:$LINENO: result: $xauth_path" >&5 | ||
28304 | echo "${ECHO_T}$xauth_path" >&6; } | ||
28305 | else | ||
28306 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28307 | echo "${ECHO_T}no" >&6; } | ||
28308 | fi | ||
28309 | |||
28310 | |||
28311 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
28312 | xauth_path="/usr/openwin/bin/xauth" | ||
28313 | fi | ||
28314 | |||
28315 | |||
28316 | fi | ||
28317 | |||
28318 | |||
28319 | STRIP_OPT=-s | ||
28320 | # Check whether --enable-strip was given. | ||
28321 | if test "${enable_strip+set}" = set; then | ||
28322 | enableval=$enable_strip; | ||
28323 | if test "x$enableval" = "xno" ; then | ||
28324 | STRIP_OPT= | ||
28325 | fi | ||
28326 | |||
28327 | |||
28328 | fi | ||
28329 | |||
28330 | |||
28331 | |||
28332 | if test -z "$xauth_path" ; then | ||
28333 | XAUTH_PATH="undefined" | ||
28334 | |||
28335 | else | ||
28336 | |||
28337 | cat >>confdefs.h <<_ACEOF | ||
28338 | #define XAUTH_PATH "$xauth_path" | ||
28339 | _ACEOF | ||
28340 | |||
28341 | XAUTH_PATH=$xauth_path | ||
28342 | |||
28343 | fi | ||
28344 | |||
28345 | # Check for mail directory (last resort if we cannot get it from headers) | ||
28346 | if test ! -z "$MAIL" ; then | ||
28347 | maildir=`dirname $MAIL` | ||
28348 | |||
28349 | cat >>confdefs.h <<_ACEOF | ||
28350 | #define MAIL_DIRECTORY "$maildir" | ||
28351 | _ACEOF | ||
28352 | |||
28353 | fi | ||
28354 | |||
28355 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then | ||
28356 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5 | ||
28357 | echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;} | ||
28358 | disable_ptmx_check=yes | ||
28359 | fi | ||
28360 | if test -z "$no_dev_ptmx" ; then | ||
28361 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
28362 | { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5 | ||
28363 | echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; } | ||
28364 | if test "${ac_cv_file___dev_ptmx_+set}" = set; then | ||
28365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28366 | else | ||
28367 | test "$cross_compiling" = yes && | ||
28368 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
28369 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
28370 | { (exit 1); exit 1; }; } | ||
28371 | if test -r ""/dev/ptmx""; then | ||
28372 | ac_cv_file___dev_ptmx_=yes | ||
28373 | else | ||
28374 | ac_cv_file___dev_ptmx_=no | ||
28375 | fi | ||
28376 | fi | ||
28377 | { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5 | ||
28378 | echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; } | ||
28379 | if test $ac_cv_file___dev_ptmx_ = yes; then | ||
28380 | |||
28381 | |||
28382 | cat >>confdefs.h <<_ACEOF | ||
28383 | #define HAVE_DEV_PTMX 1 | ||
28384 | _ACEOF | ||
28385 | |||
28386 | have_dev_ptmx=1 | ||
28387 | |||
28388 | |||
28389 | fi | ||
28390 | |||
28391 | fi | ||
28392 | fi | ||
28393 | |||
28394 | if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then | ||
28395 | { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5 | ||
28396 | echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; } | ||
28397 | if test "${ac_cv_file___dev_ptc_+set}" = set; then | ||
28398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28399 | else | ||
28400 | test "$cross_compiling" = yes && | ||
28401 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
28402 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
28403 | { (exit 1); exit 1; }; } | ||
28404 | if test -r ""/dev/ptc""; then | ||
28405 | ac_cv_file___dev_ptc_=yes | ||
28406 | else | ||
28407 | ac_cv_file___dev_ptc_=no | ||
28408 | fi | ||
28409 | fi | ||
28410 | { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5 | ||
28411 | echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; } | ||
28412 | if test $ac_cv_file___dev_ptc_ = yes; then | ||
28413 | |||
28414 | |||
28415 | cat >>confdefs.h <<_ACEOF | ||
28416 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
28417 | _ACEOF | ||
28418 | |||
28419 | have_dev_ptc=1 | ||
28420 | |||
28421 | |||
28422 | fi | ||
28423 | |||
28424 | else | ||
28425 | { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5 | ||
28426 | echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;} | ||
28427 | fi | ||
28428 | |||
28429 | # Options from here on. Some of these are preset by platform above | ||
28430 | |||
28431 | # Check whether --with-mantype was given. | ||
28432 | if test "${with_mantype+set}" = set; then | ||
28433 | withval=$with_mantype; | ||
28434 | case "$withval" in | ||
28435 | man|cat|doc) | ||
28436 | MANTYPE=$withval | ||
28437 | ;; | ||
28438 | *) | ||
28439 | { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5 | ||
28440 | echo "$as_me: error: invalid man type: $withval" >&2;} | ||
28441 | { (exit 1); exit 1; }; } | ||
28442 | ;; | ||
28443 | esac | ||
28444 | |||
28445 | |||
28446 | fi | ||
28447 | |||
28448 | if test -z "$MANTYPE"; then | ||
28449 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
28450 | for ac_prog in nroff awf | ||
28451 | do | ||
28452 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
28453 | set dummy $ac_prog; ac_word=$2 | ||
28454 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
28455 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
28456 | if test "${ac_cv_path_NROFF+set}" = set; then | ||
28457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28458 | else | ||
28459 | case $NROFF in | ||
28460 | [\\/]* | ?:[\\/]*) | ||
28461 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
28462 | ;; | ||
28463 | *) | ||
28464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
28465 | for as_dir in $TestPath | ||
28466 | do | ||
28467 | IFS=$as_save_IFS | ||
28468 | test -z "$as_dir" && as_dir=. | ||
28469 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
28470 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
28471 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
28472 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
28473 | break 2 | ||
28474 | fi | ||
28475 | done | ||
28476 | done | ||
28477 | IFS=$as_save_IFS | ||
28478 | |||
28479 | ;; | ||
28480 | esac | ||
28481 | fi | ||
28482 | NROFF=$ac_cv_path_NROFF | ||
28483 | if test -n "$NROFF"; then | ||
28484 | { echo "$as_me:$LINENO: result: $NROFF" >&5 | ||
28485 | echo "${ECHO_T}$NROFF" >&6; } | ||
28486 | else | ||
28487 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28488 | echo "${ECHO_T}no" >&6; } | ||
28489 | fi | ||
28490 | |||
28491 | |||
28492 | test -n "$NROFF" && break | ||
28493 | done | ||
28494 | test -n "$NROFF" || NROFF="/bin/false" | ||
28495 | |||
28496 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
28497 | MANTYPE=doc | ||
28498 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
28499 | MANTYPE=man | ||
28500 | else | ||
28501 | MANTYPE=cat | ||
28502 | fi | ||
28503 | fi | ||
28504 | |||
28505 | if test "$MANTYPE" = "doc"; then | ||
28506 | mansubdir=man; | ||
28507 | else | ||
28508 | mansubdir=$MANTYPE; | ||
28509 | fi | ||
28510 | |||
28511 | |||
28512 | # Check whether to enable MD5 passwords | ||
28513 | MD5_MSG="no" | ||
28514 | |||
28515 | # Check whether --with-md5-passwords was given. | ||
28516 | if test "${with_md5_passwords+set}" = set; then | ||
28517 | withval=$with_md5_passwords; | ||
28518 | if test "x$withval" != "xno" ; then | ||
28519 | |||
28520 | cat >>confdefs.h <<\_ACEOF | ||
28521 | #define HAVE_MD5_PASSWORDS 1 | ||
28522 | _ACEOF | ||
28523 | |||
28524 | MD5_MSG="yes" | ||
28525 | fi | ||
28526 | |||
28527 | |||
28528 | fi | ||
28529 | |||
28530 | |||
28531 | # Whether to disable shadow password support | ||
28532 | |||
28533 | # Check whether --with-shadow was given. | ||
28534 | if test "${with_shadow+set}" = set; then | ||
28535 | withval=$with_shadow; | ||
28536 | if test "x$withval" = "xno" ; then | ||
28537 | cat >>confdefs.h <<\_ACEOF | ||
28538 | #define DISABLE_SHADOW 1 | ||
28539 | _ACEOF | ||
28540 | |||
28541 | disable_shadow=yes | ||
28542 | fi | ||
28543 | |||
28544 | |||
28545 | fi | ||
28546 | |||
28547 | |||
28548 | if test -z "$disable_shadow" ; then | ||
28549 | { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5 | ||
28550 | echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; } | ||
28551 | cat >conftest.$ac_ext <<_ACEOF | ||
28552 | /* confdefs.h. */ | ||
28553 | _ACEOF | ||
28554 | cat confdefs.h >>conftest.$ac_ext | ||
28555 | cat >>conftest.$ac_ext <<_ACEOF | ||
28556 | /* end confdefs.h. */ | ||
28557 | |||
28558 | #include <sys/types.h> | ||
28559 | #include <shadow.h> | ||
28560 | struct spwd sp; | ||
28561 | |||
28562 | int | ||
28563 | main () | ||
28564 | { | ||
28565 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
28566 | ; | ||
28567 | return 0; | ||
28568 | } | ||
28569 | _ACEOF | ||
28570 | rm -f conftest.$ac_objext | ||
28571 | if { (ac_try="$ac_compile" | ||
28572 | case "(($ac_try" in | ||
28573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28574 | *) ac_try_echo=$ac_try;; | ||
28575 | esac | ||
28576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28577 | (eval "$ac_compile") 2>conftest.er1 | ||
28578 | ac_status=$? | ||
28579 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28580 | rm -f conftest.er1 | ||
28581 | cat conftest.err >&5 | ||
28582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28583 | (exit $ac_status); } && { | ||
28584 | test -z "$ac_c_werror_flag" || | ||
28585 | test ! -s conftest.err | ||
28586 | } && test -s conftest.$ac_objext; then | ||
28587 | sp_expire_available=yes | ||
28588 | else | ||
28589 | echo "$as_me: failed program was:" >&5 | ||
28590 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28591 | |||
28592 | |||
28593 | |||
28594 | fi | ||
28595 | |||
28596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28597 | |||
28598 | if test "x$sp_expire_available" = "xyes" ; then | ||
28599 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
28600 | echo "${ECHO_T}yes" >&6; } | ||
28601 | |||
28602 | cat >>confdefs.h <<\_ACEOF | ||
28603 | #define HAS_SHADOW_EXPIRE 1 | ||
28604 | _ACEOF | ||
28605 | |||
28606 | else | ||
28607 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28608 | echo "${ECHO_T}no" >&6; } | ||
28609 | fi | ||
28610 | fi | ||
28611 | |||
28612 | # Use ip address instead of hostname in $DISPLAY | ||
28613 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
28614 | DISPLAY_HACK_MSG="yes" | ||
28615 | |||
28616 | cat >>confdefs.h <<\_ACEOF | ||
28617 | #define IPADDR_IN_DISPLAY 1 | ||
28618 | _ACEOF | ||
28619 | |||
28620 | else | ||
28621 | DISPLAY_HACK_MSG="no" | ||
28622 | |||
28623 | # Check whether --with-ipaddr-display was given. | ||
28624 | if test "${with_ipaddr_display+set}" = set; then | ||
28625 | withval=$with_ipaddr_display; | ||
28626 | if test "x$withval" != "xno" ; then | ||
28627 | cat >>confdefs.h <<\_ACEOF | ||
28628 | #define IPADDR_IN_DISPLAY 1 | ||
28629 | _ACEOF | ||
28630 | |||
28631 | DISPLAY_HACK_MSG="yes" | ||
28632 | fi | ||
28633 | |||
28634 | |||
28635 | fi | ||
28636 | |||
28637 | fi | ||
28638 | |||
28639 | # check for /etc/default/login and use it if present. | ||
28640 | # Check whether --enable-etc-default-login was given. | ||
28641 | if test "${enable_etc_default_login+set}" = set; then | ||
28642 | enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then | ||
28643 | { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5 | ||
28644 | echo "$as_me: /etc/default/login handling disabled" >&6;} | ||
28645 | etc_default_login=no | ||
28646 | else | ||
28647 | etc_default_login=yes | ||
28648 | fi | ||
28649 | else | ||
28650 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; | ||
28651 | then | ||
28652 | { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5 | ||
28653 | echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;} | ||
28654 | etc_default_login=no | ||
28655 | else | ||
28656 | etc_default_login=yes | ||
28657 | fi | ||
28658 | |||
28659 | fi | ||
28660 | |||
28661 | |||
28662 | if test "x$etc_default_login" != "xno"; then | ||
28663 | { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5 | ||
28664 | echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; } | ||
28665 | if test "${ac_cv_file___etc_default_login_+set}" = set; then | ||
28666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
28667 | else | ||
28668 | test "$cross_compiling" = yes && | ||
28669 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
28670 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
28671 | { (exit 1); exit 1; }; } | ||
28672 | if test -r ""/etc/default/login""; then | ||
28673 | ac_cv_file___etc_default_login_=yes | ||
28674 | else | ||
28675 | ac_cv_file___etc_default_login_=no | ||
28676 | fi | ||
28677 | fi | ||
28678 | { echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5 | ||
28679 | echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; } | ||
28680 | if test $ac_cv_file___etc_default_login_ = yes; then | ||
28681 | external_path_file=/etc/default/login | ||
28682 | fi | ||
28683 | |||
28684 | if test "x$external_path_file" = "x/etc/default/login"; then | ||
28685 | |||
28686 | cat >>confdefs.h <<\_ACEOF | ||
28687 | #define HAVE_ETC_DEFAULT_LOGIN 1 | ||
28688 | _ACEOF | ||
28689 | |||
28690 | fi | ||
28691 | fi | ||
28692 | |||
28693 | if test $ac_cv_func_login_getcapbool = "yes" && \ | ||
28694 | test $ac_cv_header_login_cap_h = "yes" ; then | ||
28695 | external_path_file=/etc/login.conf | ||
28696 | fi | ||
28697 | |||
28698 | # Whether to mess with the default path | ||
28699 | SERVER_PATH_MSG="(default)" | ||
28700 | |||
28701 | # Check whether --with-default-path was given. | ||
28702 | if test "${with_default_path+set}" = set; then | ||
28703 | withval=$with_default_path; | ||
28704 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
28705 | { echo "$as_me:$LINENO: WARNING: | ||
28706 | --with-default-path=PATH has no effect on this system. | ||
28707 | Edit /etc/login.conf instead." >&5 | ||
28708 | echo "$as_me: WARNING: | ||
28709 | --with-default-path=PATH has no effect on this system. | ||
28710 | Edit /etc/login.conf instead." >&2;} | ||
28711 | elif test "x$withval" != "xno" ; then | ||
28712 | if test ! -z "$external_path_file" ; then | ||
28713 | { echo "$as_me:$LINENO: WARNING: | ||
28714 | --with-default-path=PATH will only be used if PATH is not defined in | ||
28715 | $external_path_file ." >&5 | ||
28716 | echo "$as_me: WARNING: | ||
28717 | --with-default-path=PATH will only be used if PATH is not defined in | ||
28718 | $external_path_file ." >&2;} | ||
28719 | fi | ||
28720 | user_path="$withval" | ||
28721 | SERVER_PATH_MSG="$withval" | ||
28722 | fi | ||
28723 | |||
28724 | else | ||
28725 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
28726 | { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
28727 | echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
28728 | else | ||
28729 | if test ! -z "$external_path_file" ; then | ||
28730 | { echo "$as_me:$LINENO: WARNING: | ||
28731 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
28732 | otherwise scp will not work." >&5 | ||
28733 | echo "$as_me: WARNING: | ||
28734 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
28735 | otherwise scp will not work." >&2;} | ||
28736 | fi | ||
28737 | if test "$cross_compiling" = yes; then | ||
28738 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
28739 | |||
28740 | else | ||
28741 | cat >conftest.$ac_ext <<_ACEOF | ||
28742 | /* confdefs.h. */ | ||
28743 | _ACEOF | ||
28744 | cat confdefs.h >>conftest.$ac_ext | ||
28745 | cat >>conftest.$ac_ext <<_ACEOF | ||
28746 | /* end confdefs.h. */ | ||
28747 | |||
28748 | /* find out what STDPATH is */ | ||
28749 | #include <stdio.h> | ||
28750 | #ifdef HAVE_PATHS_H | ||
28751 | # include <paths.h> | ||
28752 | #endif | ||
28753 | #ifndef _PATH_STDPATH | ||
28754 | # ifdef _PATH_USERPATH /* Irix */ | ||
28755 | # define _PATH_STDPATH _PATH_USERPATH | ||
28756 | # else | ||
28757 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
28758 | # endif | ||
28759 | #endif | ||
28760 | #include <sys/types.h> | ||
28761 | #include <sys/stat.h> | ||
28762 | #include <fcntl.h> | ||
28763 | #define DATA "conftest.stdpath" | ||
28764 | |||
28765 | main() | ||
28766 | { | ||
28767 | FILE *fd; | ||
28768 | int rc; | ||
28769 | |||
28770 | fd = fopen(DATA,"w"); | ||
28771 | if(fd == NULL) | ||
28772 | exit(1); | ||
28773 | |||
28774 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
28775 | exit(1); | ||
28776 | |||
28777 | exit(0); | ||
28778 | } | ||
28779 | |||
28780 | _ACEOF | ||
28781 | rm -f conftest$ac_exeext | ||
28782 | if { (ac_try="$ac_link" | ||
28783 | case "(($ac_try" in | ||
28784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28785 | *) ac_try_echo=$ac_try;; | ||
28786 | esac | ||
28787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28788 | (eval "$ac_link") 2>&5 | ||
28789 | ac_status=$? | ||
28790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28791 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
28792 | { (case "(($ac_try" in | ||
28793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28794 | *) ac_try_echo=$ac_try;; | ||
28795 | esac | ||
28796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
28797 | (eval "$ac_try") 2>&5 | ||
28798 | ac_status=$? | ||
28799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28800 | (exit $ac_status); }; }; then | ||
28801 | user_path=`cat conftest.stdpath` | ||
28802 | else | ||
28803 | echo "$as_me: program exited with status $ac_status" >&5 | ||
28804 | echo "$as_me: failed program was:" >&5 | ||
28805 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28806 | |||
28807 | ( exit $ac_status ) | ||
28808 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
28809 | fi | ||
28810 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
28811 | fi | ||
28812 | |||
28813 | |||
28814 | # make sure $bindir is in USER_PATH so scp will work | ||
28815 | t_bindir=`eval echo ${bindir}` | ||
28816 | case $t_bindir in | ||
28817 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
28818 | esac | ||
28819 | case $t_bindir in | ||
28820 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
28821 | esac | ||
28822 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
28823 | if test $? -ne 0 ; then | ||
28824 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
28825 | if test $? -ne 0 ; then | ||
28826 | user_path=$user_path:$t_bindir | ||
28827 | { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
28828 | echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; } | ||
28829 | fi | ||
28830 | fi | ||
28831 | fi | ||
28832 | |||
28833 | fi | ||
28834 | |||
28835 | if test "x$external_path_file" != "x/etc/login.conf" ; then | ||
28836 | |||
28837 | cat >>confdefs.h <<_ACEOF | ||
28838 | #define USER_PATH "$user_path" | ||
28839 | _ACEOF | ||
28840 | |||
28841 | |||
28842 | fi | ||
28843 | |||
28844 | # Set superuser path separately to user path | ||
28845 | |||
28846 | # Check whether --with-superuser-path was given. | ||
28847 | if test "${with_superuser_path+set}" = set; then | ||
28848 | withval=$with_superuser_path; | ||
28849 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
28850 | test "x${withval}" != "xyes"; then | ||
28851 | |||
28852 | cat >>confdefs.h <<_ACEOF | ||
28853 | #define SUPERUSER_PATH "$withval" | ||
28854 | _ACEOF | ||
28855 | |||
28856 | superuser_path=$withval | ||
28857 | fi | ||
28858 | |||
28859 | |||
28860 | fi | ||
28861 | |||
28862 | |||
28863 | |||
28864 | { echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
28865 | echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; } | ||
28866 | IPV4_IN6_HACK_MSG="no" | ||
28867 | |||
28868 | # Check whether --with-4in6 was given. | ||
28869 | if test "${with_4in6+set}" = set; then | ||
28870 | withval=$with_4in6; | ||
28871 | if test "x$withval" != "xno" ; then | ||
28872 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
28873 | echo "${ECHO_T}yes" >&6; } | ||
28874 | |||
28875 | cat >>confdefs.h <<\_ACEOF | ||
28876 | #define IPV4_IN_IPV6 1 | ||
28877 | _ACEOF | ||
28878 | |||
28879 | IPV4_IN6_HACK_MSG="yes" | ||
28880 | else | ||
28881 | { echo "$as_me:$LINENO: result: no" >&5 | ||
28882 | echo "${ECHO_T}no" >&6; } | ||
28883 | fi | ||
28884 | |||
28885 | else | ||
28886 | |||
28887 | if test "x$inet6_default_4in6" = "xyes"; then | ||
28888 | { echo "$as_me:$LINENO: result: yes (default)" >&5 | ||
28889 | echo "${ECHO_T}yes (default)" >&6; } | ||
28890 | cat >>confdefs.h <<\_ACEOF | ||
28891 | #define IPV4_IN_IPV6 1 | ||
28892 | _ACEOF | ||
28893 | |||
28894 | IPV4_IN6_HACK_MSG="yes" | ||
28895 | else | ||
28896 | { echo "$as_me:$LINENO: result: no (default)" >&5 | ||
28897 | echo "${ECHO_T}no (default)" >&6; } | ||
28898 | fi | ||
28899 | |||
28900 | |||
28901 | fi | ||
28902 | |||
28903 | |||
28904 | # Whether to enable BSD auth support | ||
28905 | BSD_AUTH_MSG=no | ||
28906 | |||
28907 | # Check whether --with-bsd-auth was given. | ||
28908 | if test "${with_bsd_auth+set}" = set; then | ||
28909 | withval=$with_bsd_auth; | ||
28910 | if test "x$withval" != "xno" ; then | ||
28911 | |||
28912 | cat >>confdefs.h <<\_ACEOF | ||
28913 | #define BSD_AUTH 1 | ||
28914 | _ACEOF | ||
28915 | |||
28916 | BSD_AUTH_MSG=yes | ||
28917 | fi | ||
28918 | |||
28919 | |||
28920 | fi | ||
28921 | |||
28922 | |||
28923 | # Where to place sshd.pid | ||
28924 | piddir=/var/run | ||
28925 | # make sure the directory exists | ||
28926 | if test ! -d $piddir ; then | ||
28927 | piddir=`eval echo ${sysconfdir}` | ||
28928 | case $piddir in | ||
28929 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
28930 | esac | ||
28931 | fi | ||
28932 | |||
28933 | |||
28934 | # Check whether --with-pid-dir was given. | ||
28935 | if test "${with_pid_dir+set}" = set; then | ||
28936 | withval=$with_pid_dir; | ||
28937 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
28938 | test "x${withval}" != "xyes"; then | ||
28939 | piddir=$withval | ||
28940 | if test ! -d $piddir ; then | ||
28941 | { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5 | ||
28942 | echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
28943 | fi | ||
28944 | fi | ||
28945 | |||
28946 | |||
28947 | fi | ||
28948 | |||
28949 | |||
28950 | |||
28951 | cat >>confdefs.h <<_ACEOF | ||
28952 | #define _PATH_SSH_PIDDIR "$piddir" | ||
28953 | _ACEOF | ||
28954 | |||
28955 | |||
28956 | |||
28957 | # Check whether --enable-lastlog was given. | ||
28958 | if test "${enable_lastlog+set}" = set; then | ||
28959 | enableval=$enable_lastlog; | ||
28960 | if test "x$enableval" = "xno" ; then | ||
28961 | cat >>confdefs.h <<\_ACEOF | ||
28962 | #define DISABLE_LASTLOG 1 | ||
28963 | _ACEOF | ||
28964 | |||
28965 | fi | ||
28966 | |||
28967 | |||
28968 | fi | ||
28969 | |||
28970 | # Check whether --enable-utmp was given. | ||
28971 | if test "${enable_utmp+set}" = set; then | ||
28972 | enableval=$enable_utmp; | ||
28973 | if test "x$enableval" = "xno" ; then | ||
28974 | cat >>confdefs.h <<\_ACEOF | ||
28975 | #define DISABLE_UTMP 1 | ||
28976 | _ACEOF | ||
28977 | |||
28978 | fi | ||
28979 | |||
28980 | |||
28981 | fi | ||
28982 | |||
28983 | # Check whether --enable-utmpx was given. | ||
28984 | if test "${enable_utmpx+set}" = set; then | ||
28985 | enableval=$enable_utmpx; | ||
28986 | if test "x$enableval" = "xno" ; then | ||
28987 | |||
28988 | cat >>confdefs.h <<\_ACEOF | ||
28989 | #define DISABLE_UTMPX 1 | ||
28990 | _ACEOF | ||
28991 | |||
28992 | fi | ||
28993 | |||
28994 | |||
28995 | fi | ||
28996 | |||
28997 | # Check whether --enable-wtmp was given. | ||
28998 | if test "${enable_wtmp+set}" = set; then | ||
28999 | enableval=$enable_wtmp; | ||
29000 | if test "x$enableval" = "xno" ; then | ||
29001 | cat >>confdefs.h <<\_ACEOF | ||
29002 | #define DISABLE_WTMP 1 | ||
29003 | _ACEOF | ||
29004 | |||
29005 | fi | ||
29006 | |||
29007 | |||
29008 | fi | ||
29009 | |||
29010 | # Check whether --enable-wtmpx was given. | ||
29011 | if test "${enable_wtmpx+set}" = set; then | ||
29012 | enableval=$enable_wtmpx; | ||
29013 | if test "x$enableval" = "xno" ; then | ||
29014 | |||
29015 | cat >>confdefs.h <<\_ACEOF | ||
29016 | #define DISABLE_WTMPX 1 | ||
29017 | _ACEOF | ||
29018 | |||
29019 | fi | ||
29020 | |||
29021 | |||
29022 | fi | ||
29023 | |||
29024 | # Check whether --enable-libutil was given. | ||
29025 | if test "${enable_libutil+set}" = set; then | ||
29026 | enableval=$enable_libutil; | ||
29027 | if test "x$enableval" = "xno" ; then | ||
29028 | cat >>confdefs.h <<\_ACEOF | ||
29029 | #define DISABLE_LOGIN 1 | ||
29030 | _ACEOF | ||
29031 | |||
29032 | fi | ||
29033 | |||
29034 | |||
29035 | fi | ||
29036 | |||
29037 | # Check whether --enable-pututline was given. | ||
29038 | if test "${enable_pututline+set}" = set; then | ||
29039 | enableval=$enable_pututline; | ||
29040 | if test "x$enableval" = "xno" ; then | ||
29041 | |||
29042 | cat >>confdefs.h <<\_ACEOF | ||
29043 | #define DISABLE_PUTUTLINE 1 | ||
29044 | _ACEOF | ||
29045 | |||
29046 | fi | ||
29047 | |||
29048 | |||
29049 | fi | ||
29050 | |||
29051 | # Check whether --enable-pututxline was given. | ||
29052 | if test "${enable_pututxline+set}" = set; then | ||
29053 | enableval=$enable_pututxline; | ||
29054 | if test "x$enableval" = "xno" ; then | ||
29055 | |||
29056 | cat >>confdefs.h <<\_ACEOF | ||
29057 | #define DISABLE_PUTUTXLINE 1 | ||
29058 | _ACEOF | ||
29059 | |||
29060 | fi | ||
29061 | |||
29062 | |||
29063 | fi | ||
29064 | |||
29065 | |||
29066 | # Check whether --with-lastlog was given. | ||
29067 | if test "${with_lastlog+set}" = set; then | ||
29068 | withval=$with_lastlog; | ||
29069 | if test "x$withval" = "xno" ; then | ||
29070 | cat >>confdefs.h <<\_ACEOF | ||
29071 | #define DISABLE_LASTLOG 1 | ||
29072 | _ACEOF | ||
29073 | |||
29074 | elif test -n "$withval" && test "x${withval}" != "xyes"; then | ||
29075 | conf_lastlog_location=$withval | ||
29076 | fi | ||
29077 | |||
29078 | |||
29079 | fi | ||
29080 | |||
29081 | |||
29082 | |||
29083 | { echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5 | ||
29084 | echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; } | ||
29085 | cat >conftest.$ac_ext <<_ACEOF | ||
29086 | /* confdefs.h. */ | ||
29087 | _ACEOF | ||
29088 | cat confdefs.h >>conftest.$ac_ext | ||
29089 | cat >>conftest.$ac_ext <<_ACEOF | ||
29090 | /* end confdefs.h. */ | ||
29091 | |||
29092 | #include <sys/types.h> | ||
29093 | #include <utmp.h> | ||
29094 | #ifdef HAVE_LASTLOG_H | ||
29095 | # include <lastlog.h> | ||
29096 | #endif | ||
29097 | #ifdef HAVE_PATHS_H | ||
29098 | # include <paths.h> | ||
29099 | #endif | ||
29100 | #ifdef HAVE_LOGIN_H | ||
29101 | # include <login.h> | ||
29102 | #endif | ||
29103 | |||
29104 | int | ||
29105 | main () | ||
29106 | { | ||
29107 | char *lastlog = LASTLOG_FILE; | ||
29108 | ; | ||
29109 | return 0; | ||
29110 | } | ||
29111 | _ACEOF | ||
29112 | rm -f conftest.$ac_objext | ||
29113 | if { (ac_try="$ac_compile" | ||
29114 | case "(($ac_try" in | ||
29115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29116 | *) ac_try_echo=$ac_try;; | ||
29117 | esac | ||
29118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29119 | (eval "$ac_compile") 2>conftest.er1 | ||
29120 | ac_status=$? | ||
29121 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29122 | rm -f conftest.er1 | ||
29123 | cat conftest.err >&5 | ||
29124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29125 | (exit $ac_status); } && { | ||
29126 | test -z "$ac_c_werror_flag" || | ||
29127 | test ! -s conftest.err | ||
29128 | } && test -s conftest.$ac_objext; then | ||
29129 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
29130 | echo "${ECHO_T}yes" >&6; } | ||
29131 | else | ||
29132 | echo "$as_me: failed program was:" >&5 | ||
29133 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29134 | |||
29135 | |||
29136 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29137 | echo "${ECHO_T}no" >&6; } | ||
29138 | { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5 | ||
29139 | echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; } | ||
29140 | cat >conftest.$ac_ext <<_ACEOF | ||
29141 | /* confdefs.h. */ | ||
29142 | _ACEOF | ||
29143 | cat confdefs.h >>conftest.$ac_ext | ||
29144 | cat >>conftest.$ac_ext <<_ACEOF | ||
29145 | /* end confdefs.h. */ | ||
29146 | |||
29147 | #include <sys/types.h> | ||
29148 | #include <utmp.h> | ||
29149 | #ifdef HAVE_LASTLOG_H | ||
29150 | # include <lastlog.h> | ||
29151 | #endif | ||
29152 | #ifdef HAVE_PATHS_H | ||
29153 | # include <paths.h> | ||
29154 | #endif | ||
29155 | |||
29156 | int | ||
29157 | main () | ||
29158 | { | ||
29159 | char *lastlog = _PATH_LASTLOG; | ||
29160 | ; | ||
29161 | return 0; | ||
29162 | } | ||
29163 | _ACEOF | ||
29164 | rm -f conftest.$ac_objext | ||
29165 | if { (ac_try="$ac_compile" | ||
29166 | case "(($ac_try" in | ||
29167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29168 | *) ac_try_echo=$ac_try;; | ||
29169 | esac | ||
29170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29171 | (eval "$ac_compile") 2>conftest.er1 | ||
29172 | ac_status=$? | ||
29173 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29174 | rm -f conftest.er1 | ||
29175 | cat conftest.err >&5 | ||
29176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29177 | (exit $ac_status); } && { | ||
29178 | test -z "$ac_c_werror_flag" || | ||
29179 | test ! -s conftest.err | ||
29180 | } && test -s conftest.$ac_objext; then | ||
29181 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
29182 | echo "${ECHO_T}yes" >&6; } | ||
29183 | else | ||
29184 | echo "$as_me: failed program was:" >&5 | ||
29185 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29186 | |||
29187 | |||
29188 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29189 | echo "${ECHO_T}no" >&6; } | ||
29190 | system_lastlog_path=no | ||
29191 | |||
29192 | fi | ||
29193 | |||
29194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29195 | |||
29196 | |||
29197 | fi | ||
29198 | |||
29199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29200 | |||
29201 | if test -z "$conf_lastlog_location"; then | ||
29202 | if test x"$system_lastlog_path" = x"no" ; then | ||
29203 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
29204 | if (test -d "$f" || test -f "$f") ; then | ||
29205 | conf_lastlog_location=$f | ||
29206 | fi | ||
29207 | done | ||
29208 | if test -z "$conf_lastlog_location"; then | ||
29209 | { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5 | ||
29210 | echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
29211 | fi | ||
29212 | fi | ||
29213 | fi | ||
29214 | |||
29215 | if test -n "$conf_lastlog_location"; then | ||
29216 | |||
29217 | cat >>confdefs.h <<_ACEOF | ||
29218 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
29219 | _ACEOF | ||
29220 | |||
29221 | fi | ||
29222 | |||
29223 | { echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5 | ||
29224 | echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; } | ||
29225 | cat >conftest.$ac_ext <<_ACEOF | ||
29226 | /* confdefs.h. */ | ||
29227 | _ACEOF | ||
29228 | cat confdefs.h >>conftest.$ac_ext | ||
29229 | cat >>conftest.$ac_ext <<_ACEOF | ||
29230 | /* end confdefs.h. */ | ||
29231 | |||
29232 | #include <sys/types.h> | ||
29233 | #include <utmp.h> | ||
29234 | #ifdef HAVE_PATHS_H | ||
29235 | # include <paths.h> | ||
29236 | #endif | ||
29237 | |||
29238 | int | ||
29239 | main () | ||
29240 | { | ||
29241 | char *utmp = UTMP_FILE; | ||
29242 | ; | ||
29243 | return 0; | ||
29244 | } | ||
29245 | _ACEOF | ||
29246 | rm -f conftest.$ac_objext | ||
29247 | if { (ac_try="$ac_compile" | ||
29248 | case "(($ac_try" in | ||
29249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29250 | *) ac_try_echo=$ac_try;; | ||
29251 | esac | ||
29252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29253 | (eval "$ac_compile") 2>conftest.er1 | ||
29254 | ac_status=$? | ||
29255 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29256 | rm -f conftest.er1 | ||
29257 | cat conftest.err >&5 | ||
29258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29259 | (exit $ac_status); } && { | ||
29260 | test -z "$ac_c_werror_flag" || | ||
29261 | test ! -s conftest.err | ||
29262 | } && test -s conftest.$ac_objext; then | ||
29263 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
29264 | echo "${ECHO_T}yes" >&6; } | ||
29265 | else | ||
29266 | echo "$as_me: failed program was:" >&5 | ||
29267 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29268 | |||
29269 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29270 | echo "${ECHO_T}no" >&6; } | ||
29271 | system_utmp_path=no | ||
29272 | |||
29273 | fi | ||
29274 | |||
29275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29276 | if test -z "$conf_utmp_location"; then | ||
29277 | if test x"$system_utmp_path" = x"no" ; then | ||
29278 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
29279 | if test -f $f ; then | ||
29280 | conf_utmp_location=$f | ||
29281 | fi | ||
29282 | done | ||
29283 | if test -z "$conf_utmp_location"; then | ||
29284 | cat >>confdefs.h <<\_ACEOF | ||
29285 | #define DISABLE_UTMP 1 | ||
29286 | _ACEOF | ||
29287 | |||
29288 | fi | ||
29289 | fi | ||
29290 | fi | ||
29291 | if test -n "$conf_utmp_location"; then | ||
29292 | |||
29293 | cat >>confdefs.h <<_ACEOF | ||
29294 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
29295 | _ACEOF | ||
29296 | |||
29297 | fi | ||
29298 | |||
29299 | { echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5 | ||
29300 | echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; } | ||
29301 | cat >conftest.$ac_ext <<_ACEOF | ||
29302 | /* confdefs.h. */ | ||
29303 | _ACEOF | ||
29304 | cat confdefs.h >>conftest.$ac_ext | ||
29305 | cat >>conftest.$ac_ext <<_ACEOF | ||
29306 | /* end confdefs.h. */ | ||
29307 | |||
29308 | #include <sys/types.h> | ||
29309 | #include <utmp.h> | ||
29310 | #ifdef HAVE_PATHS_H | ||
29311 | # include <paths.h> | ||
29312 | #endif | ||
29313 | |||
29314 | int | ||
29315 | main () | ||
29316 | { | ||
29317 | char *wtmp = WTMP_FILE; | ||
29318 | ; | ||
29319 | return 0; | ||
29320 | } | ||
29321 | _ACEOF | ||
29322 | rm -f conftest.$ac_objext | ||
29323 | if { (ac_try="$ac_compile" | ||
29324 | case "(($ac_try" in | ||
29325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29326 | *) ac_try_echo=$ac_try;; | ||
29327 | esac | ||
29328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29329 | (eval "$ac_compile") 2>conftest.er1 | ||
29330 | ac_status=$? | ||
29331 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29332 | rm -f conftest.er1 | ||
29333 | cat conftest.err >&5 | ||
29334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29335 | (exit $ac_status); } && { | ||
29336 | test -z "$ac_c_werror_flag" || | ||
29337 | test ! -s conftest.err | ||
29338 | } && test -s conftest.$ac_objext; then | ||
29339 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
29340 | echo "${ECHO_T}yes" >&6; } | ||
29341 | else | ||
29342 | echo "$as_me: failed program was:" >&5 | ||
29343 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29344 | |||
29345 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29346 | echo "${ECHO_T}no" >&6; } | ||
29347 | system_wtmp_path=no | ||
29348 | |||
29349 | fi | ||
29350 | |||
29351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29352 | if test -z "$conf_wtmp_location"; then | ||
29353 | if test x"$system_wtmp_path" = x"no" ; then | ||
29354 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
29355 | if test -f $f ; then | ||
29356 | conf_wtmp_location=$f | ||
29357 | fi | ||
29358 | done | ||
29359 | if test -z "$conf_wtmp_location"; then | ||
29360 | cat >>confdefs.h <<\_ACEOF | ||
29361 | #define DISABLE_WTMP 1 | ||
29362 | _ACEOF | ||
29363 | |||
29364 | fi | ||
29365 | fi | ||
29366 | fi | ||
29367 | if test -n "$conf_wtmp_location"; then | ||
29368 | |||
29369 | cat >>confdefs.h <<_ACEOF | ||
29370 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
29371 | _ACEOF | ||
29372 | |||
29373 | fi | ||
29374 | |||
29375 | |||
29376 | { echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5 | ||
29377 | echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6; } | ||
29378 | cat >conftest.$ac_ext <<_ACEOF | ||
29379 | /* confdefs.h. */ | ||
29380 | _ACEOF | ||
29381 | cat confdefs.h >>conftest.$ac_ext | ||
29382 | cat >>conftest.$ac_ext <<_ACEOF | ||
29383 | /* end confdefs.h. */ | ||
29384 | |||
29385 | #include <sys/types.h> | ||
29386 | #include <utmp.h> | ||
29387 | #ifdef HAVE_UTMPX_H | ||
29388 | #include <utmpx.h> | ||
29389 | #endif | ||
29390 | #ifdef HAVE_PATHS_H | ||
29391 | # include <paths.h> | ||
29392 | #endif | ||
29393 | |||
29394 | int | ||
29395 | main () | ||
29396 | { | ||
29397 | char *utmpx = UTMPX_FILE; | ||
29398 | ; | ||
29399 | return 0; | ||
29400 | } | ||
29401 | _ACEOF | ||
29402 | rm -f conftest.$ac_objext | ||
29403 | if { (ac_try="$ac_compile" | ||
29404 | case "(($ac_try" in | ||
29405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29406 | *) ac_try_echo=$ac_try;; | ||
29407 | esac | ||
29408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29409 | (eval "$ac_compile") 2>conftest.er1 | ||
29410 | ac_status=$? | ||
29411 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29412 | rm -f conftest.er1 | ||
29413 | cat conftest.err >&5 | ||
29414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29415 | (exit $ac_status); } && { | ||
29416 | test -z "$ac_c_werror_flag" || | ||
29417 | test ! -s conftest.err | ||
29418 | } && test -s conftest.$ac_objext; then | ||
29419 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
29420 | echo "${ECHO_T}yes" >&6; } | ||
29421 | else | ||
29422 | echo "$as_me: failed program was:" >&5 | ||
29423 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29424 | |||
29425 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29426 | echo "${ECHO_T}no" >&6; } | ||
29427 | system_utmpx_path=no | ||
29428 | |||
29429 | fi | ||
29430 | |||
29431 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29432 | if test -z "$conf_utmpx_location"; then | ||
29433 | if test x"$system_utmpx_path" = x"no" ; then | ||
29434 | cat >>confdefs.h <<\_ACEOF | ||
29435 | #define DISABLE_UTMPX 1 | ||
29436 | _ACEOF | ||
29437 | |||
29438 | fi | ||
29439 | else | ||
29440 | |||
29441 | cat >>confdefs.h <<_ACEOF | ||
29442 | #define CONF_UTMPX_FILE "$conf_utmpx_location" | ||
29443 | _ACEOF | ||
29444 | |||
29445 | fi | ||
29446 | |||
29447 | { echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5 | ||
29448 | echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; } | ||
29449 | cat >conftest.$ac_ext <<_ACEOF | ||
29450 | /* confdefs.h. */ | ||
29451 | _ACEOF | ||
29452 | cat confdefs.h >>conftest.$ac_ext | ||
29453 | cat >>conftest.$ac_ext <<_ACEOF | ||
29454 | /* end confdefs.h. */ | ||
29455 | |||
29456 | #include <sys/types.h> | ||
29457 | #include <utmp.h> | ||
29458 | #ifdef HAVE_UTMPX_H | ||
29459 | #include <utmpx.h> | ||
29460 | #endif | ||
29461 | #ifdef HAVE_PATHS_H | ||
29462 | # include <paths.h> | ||
29463 | #endif | ||
29464 | |||
29465 | int | ||
29466 | main () | ||
29467 | { | ||
29468 | char *wtmpx = WTMPX_FILE; | ||
29469 | ; | ||
29470 | return 0; | ||
29471 | } | ||
29472 | _ACEOF | ||
29473 | rm -f conftest.$ac_objext | ||
29474 | if { (ac_try="$ac_compile" | ||
29475 | case "(($ac_try" in | ||
29476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29477 | *) ac_try_echo=$ac_try;; | ||
29478 | esac | ||
29479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
29480 | (eval "$ac_compile") 2>conftest.er1 | ||
29481 | ac_status=$? | ||
29482 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29483 | rm -f conftest.er1 | ||
29484 | cat conftest.err >&5 | ||
29485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29486 | (exit $ac_status); } && { | ||
29487 | test -z "$ac_c_werror_flag" || | ||
29488 | test ! -s conftest.err | ||
29489 | } && test -s conftest.$ac_objext; then | ||
29490 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
29491 | echo "${ECHO_T}yes" >&6; } | ||
29492 | else | ||
29493 | echo "$as_me: failed program was:" >&5 | ||
29494 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29495 | |||
29496 | { echo "$as_me:$LINENO: result: no" >&5 | ||
29497 | echo "${ECHO_T}no" >&6; } | ||
29498 | system_wtmpx_path=no | ||
29499 | |||
29500 | fi | ||
29501 | |||
29502 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29503 | if test -z "$conf_wtmpx_location"; then | ||
29504 | if test x"$system_wtmpx_path" = x"no" ; then | ||
29505 | cat >>confdefs.h <<\_ACEOF | ||
29506 | #define DISABLE_WTMPX 1 | ||
29507 | _ACEOF | ||
29508 | |||
29509 | fi | ||
29510 | else | ||
29511 | |||
29512 | cat >>confdefs.h <<_ACEOF | ||
29513 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
29514 | _ACEOF | ||
29515 | |||
29516 | fi | ||
29517 | |||
29518 | |||
29519 | if test ! -z "$blibpath" ; then | ||
29520 | LDFLAGS="$LDFLAGS $blibflags$blibpath" | ||
29521 | { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 | ||
29522 | echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} | ||
29523 | fi | ||
29524 | |||
29525 | CFLAGS="$CFLAGS $werror_flags" | ||
29526 | |||
29527 | if grep "#define BROKEN_GETADDRINFO 1" confdefs.h >/dev/null || \ | ||
29528 | test "x$ac_cv_func_getaddrinfo" != "xyes" ; then | ||
29529 | TEST_SSH_IPV6=no | ||
29530 | |||
29531 | else | ||
29532 | TEST_SSH_IPV6=yes | ||
29533 | |||
29534 | fi | ||
29535 | |||
29536 | |||
29537 | ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile ssh_prng_cmds survey.sh" | ||
29538 | |||
29539 | cat >confcache <<\_ACEOF | ||
29540 | # This file is a shell script that caches the results of configure | ||
29541 | # tests run on this system so they can be shared between configure | ||
29542 | # scripts and configure runs, see configure's option --config-cache. | ||
29543 | # It is not useful on other systems. If it contains results you don't | ||
29544 | # want to keep, you may remove or edit it. | ||
29545 | # | ||
29546 | # config.status only pays attention to the cache file if you give it | ||
29547 | # the --recheck option to rerun configure. | ||
29548 | # | ||
29549 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
29550 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
29551 | # following values. | ||
29552 | |||
29553 | _ACEOF | ||
29554 | |||
29555 | # The following way of writing the cache mishandles newlines in values, | ||
29556 | # but we know of no workaround that is simple, portable, and efficient. | ||
29557 | # So, we kill variables containing newlines. | ||
29558 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
29559 | # and sets the high bit in the cache file unless we assign to the vars. | ||
29560 | ( | ||
29561 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
29562 | eval ac_val=\$$ac_var | ||
29563 | case $ac_val in #( | ||
29564 | *${as_nl}*) | ||
29565 | case $ac_var in #( | ||
29566 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
29567 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
29568 | esac | ||
29569 | case $ac_var in #( | ||
29570 | _ | IFS | as_nl) ;; #( | ||
29571 | *) $as_unset $ac_var ;; | ||
29572 | esac ;; | ||
29573 | esac | ||
29574 | done | ||
29575 | |||
29576 | (set) 2>&1 | | ||
29577 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
29578 | *${as_nl}ac_space=\ *) | ||
29579 | # `set' does not quote correctly, so add quotes (double-quote | ||
29580 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
29581 | sed -n \ | ||
29582 | "s/'/'\\\\''/g; | ||
29583 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
29584 | ;; #( | ||
29585 | *) | ||
29586 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
29587 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
29588 | ;; | ||
29589 | esac | | ||
29590 | sort | ||
29591 | ) | | ||
29592 | sed ' | ||
29593 | /^ac_cv_env_/b end | ||
29594 | t clear | ||
29595 | :clear | ||
29596 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
29597 | t end | ||
29598 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
29599 | :end' >>confcache | ||
29600 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
29601 | if test -w "$cache_file"; then | ||
29602 | test "x$cache_file" != "x/dev/null" && | ||
29603 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | ||
29604 | echo "$as_me: updating cache $cache_file" >&6;} | ||
29605 | cat confcache >$cache_file | ||
29606 | else | ||
29607 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | ||
29608 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
29609 | fi | ||
29610 | fi | ||
29611 | rm -f confcache | ||
29612 | |||
29613 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
29614 | # Let make expand exec_prefix. | ||
29615 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
29616 | |||
29617 | DEFS=-DHAVE_CONFIG_H | ||
29618 | |||
29619 | ac_libobjs= | ||
29620 | ac_ltlibobjs= | ||
29621 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
29622 | # 1. Remove the extension, and $U if already installed. | ||
29623 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
29624 | ac_i=`echo "$ac_i" | sed "$ac_script"` | ||
29625 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
29626 | # will be set to the directory where LIBOBJS objects are built. | ||
29627 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
29628 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | ||
29629 | done | ||
29630 | LIBOBJS=$ac_libobjs | ||
29631 | |||
29632 | LTLIBOBJS=$ac_ltlibobjs | ||
29633 | |||
29634 | |||
29635 | |||
29636 | : ${CONFIG_STATUS=./config.status} | ||
29637 | ac_clean_files_save=$ac_clean_files | ||
29638 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
29639 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | ||
29640 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
29641 | cat >$CONFIG_STATUS <<_ACEOF | ||
29642 | #! $SHELL | ||
29643 | # Generated by $as_me. | ||
29644 | # Run this file to recreate the current configuration. | ||
29645 | # Compiler output produced by configure, useful for debugging | ||
29646 | # configure, is in config.log if it exists. | ||
29647 | |||
29648 | debug=false | ||
29649 | ac_cs_recheck=false | ||
29650 | ac_cs_silent=false | ||
29651 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
29652 | _ACEOF | ||
29653 | |||
29654 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
29655 | ## --------------------- ## | ||
29656 | ## M4sh Initialization. ## | ||
29657 | ## --------------------- ## | ||
29658 | |||
29659 | # Be more Bourne compatible | ||
29660 | DUALCASE=1; export DUALCASE # for MKS sh | ||
29661 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
29662 | emulate sh | ||
29663 | NULLCMD=: | ||
29664 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
29665 | # is contrary to our usage. Disable this feature. | ||
29666 | alias -g '${1+"$@"}'='"$@"' | ||
29667 | setopt NO_GLOB_SUBST | ||
29668 | else | ||
29669 | case `(set -o) 2>/dev/null` in | ||
29670 | *posix*) set -o posix ;; | ||
29671 | esac | ||
29672 | |||
29673 | fi | ||
29674 | |||
29675 | |||
29676 | |||
29677 | |||
29678 | # PATH needs CR | ||
29679 | # Avoid depending upon Character Ranges. | ||
29680 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
29681 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
29682 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
29683 | as_cr_digits='0123456789' | ||
29684 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
29685 | |||
29686 | # The user is always right. | ||
29687 | if test "${PATH_SEPARATOR+set}" != set; then | ||
29688 | echo "#! /bin/sh" >conf$$.sh | ||
29689 | echo "exit 0" >>conf$$.sh | ||
29690 | chmod +x conf$$.sh | ||
29691 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
29692 | PATH_SEPARATOR=';' | ||
29693 | else | ||
29694 | PATH_SEPARATOR=: | ||
29695 | fi | ||
29696 | rm -f conf$$.sh | ||
29697 | fi | ||
29698 | |||
29699 | # Support unset when possible. | ||
29700 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
29701 | as_unset=unset | ||
29702 | else | ||
29703 | as_unset=false | ||
29704 | fi | ||
29705 | |||
29706 | |||
29707 | # IFS | ||
29708 | # We need space, tab and new line, in precisely that order. Quoting is | ||
29709 | # there to prevent editors from complaining about space-tab. | ||
29710 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
29711 | # splitting by setting IFS to empty value.) | ||
29712 | as_nl=' | ||
29713 | ' | ||
29714 | IFS=" "" $as_nl" | ||
29715 | |||
29716 | # Find who we are. Look in the path if we contain no directory separator. | ||
29717 | case $0 in | ||
29718 | *[\\/]* ) as_myself=$0 ;; | ||
29719 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
29720 | for as_dir in $PATH | ||
29721 | do | ||
29722 | IFS=$as_save_IFS | ||
29723 | test -z "$as_dir" && as_dir=. | ||
29724 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
29725 | done | ||
29726 | IFS=$as_save_IFS | ||
29727 | |||
29728 | ;; | ||
29729 | esac | ||
29730 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
29731 | # in which case we are not to be found in the path. | ||
29732 | if test "x$as_myself" = x; then | ||
29733 | as_myself=$0 | ||
29734 | fi | ||
29735 | if test ! -f "$as_myself"; then | ||
29736 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
29737 | { (exit 1); exit 1; } | ||
29738 | fi | ||
29739 | |||
29740 | # Work around bugs in pre-3.0 UWIN ksh. | ||
29741 | for as_var in ENV MAIL MAILPATH | ||
29742 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
29743 | done | ||
29744 | PS1='$ ' | ||
29745 | PS2='> ' | ||
29746 | PS4='+ ' | ||
29747 | |||
29748 | # NLS nuisances. | ||
29749 | for as_var in \ | ||
29750 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
29751 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
29752 | LC_TELEPHONE LC_TIME | ||
29753 | do | ||
29754 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
29755 | eval $as_var=C; export $as_var | ||
29756 | else | ||
29757 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
29758 | fi | ||
29759 | done | ||
29760 | |||
29761 | # Required to use basename. | ||
29762 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
29763 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
29764 | as_expr=expr | ||
29765 | else | ||
29766 | as_expr=false | ||
29767 | fi | ||
29768 | |||
29769 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
29770 | as_basename=basename | ||
29771 | else | ||
29772 | as_basename=false | ||
29773 | fi | ||
29774 | |||
29775 | |||
29776 | # Name of the executable. | ||
29777 | as_me=`$as_basename -- "$0" || | ||
29778 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
29779 | X"$0" : 'X\(//\)$' \| \ | ||
29780 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
29781 | echo X/"$0" | | ||
29782 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
29783 | s//\1/ | ||
29784 | q | ||
29785 | } | ||
29786 | /^X\/\(\/\/\)$/{ | ||
29787 | s//\1/ | ||
29788 | q | ||
29789 | } | ||
29790 | /^X\/\(\/\).*/{ | ||
29791 | s//\1/ | ||
29792 | q | ||
29793 | } | ||
29794 | s/.*/./; q'` | ||
29795 | |||
29796 | # CDPATH. | ||
29797 | $as_unset CDPATH | ||
29798 | |||
29799 | |||
29800 | |||
29801 | as_lineno_1=$LINENO | ||
29802 | as_lineno_2=$LINENO | ||
29803 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
29804 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | ||
29805 | |||
29806 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
29807 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
29808 | # line-number line after each line using $LINENO; the second 'sed' | ||
29809 | # does the real work. The second script uses 'N' to pair each | ||
29810 | # line-number line with the line containing $LINENO, and appends | ||
29811 | # trailing '-' during substitution so that $LINENO is not a special | ||
29812 | # case at line end. | ||
29813 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
29814 | # scripts with optimization help from Paolo Bonzini. Blame Lee | ||
29815 | # E. McMahon (1931-1989) for sed's syntax. :-) | ||
29816 | sed -n ' | ||
29817 | p | ||
29818 | /[$]LINENO/= | ||
29819 | ' <$as_myself | | ||
29820 | sed ' | ||
29821 | s/[$]LINENO.*/&-/ | ||
29822 | t lineno | ||
29823 | b | ||
29824 | :lineno | ||
29825 | N | ||
29826 | :loop | ||
29827 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
29828 | t loop | ||
29829 | s/-\n.*// | ||
29830 | ' >$as_me.lineno && | ||
29831 | chmod +x "$as_me.lineno" || | ||
29832 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
29833 | { (exit 1); exit 1; }; } | ||
29834 | |||
29835 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
29836 | # (the dirname of $[0] is not the place where we might find the | ||
29837 | # original and so on. Autoconf is especially sensitive to this). | ||
29838 | . "./$as_me.lineno" | ||
29839 | # Exit status is that of the last command. | ||
29840 | exit | ||
29841 | } | ||
29842 | |||
29843 | |||
29844 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
29845 | as_dirname=dirname | ||
29846 | else | ||
29847 | as_dirname=false | ||
29848 | fi | ||
29849 | |||
29850 | ECHO_C= ECHO_N= ECHO_T= | ||
29851 | case `echo -n x` in | ||
29852 | -n*) | ||
29853 | case `echo 'x\c'` in | ||
29854 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
29855 | *) ECHO_C='\c';; | ||
29856 | esac;; | ||
29857 | *) | ||
29858 | ECHO_N='-n';; | ||
29859 | esac | ||
29860 | |||
29861 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
29862 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
29863 | as_expr=expr | ||
29864 | else | ||
29865 | as_expr=false | ||
29866 | fi | ||
29867 | |||
29868 | rm -f conf$$ conf$$.exe conf$$.file | ||
29869 | if test -d conf$$.dir; then | ||
29870 | rm -f conf$$.dir/conf$$.file | ||
29871 | else | ||
29872 | rm -f conf$$.dir | ||
29873 | mkdir conf$$.dir | ||
29874 | fi | ||
29875 | echo >conf$$.file | ||
29876 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
29877 | as_ln_s='ln -s' | ||
29878 | # ... but there are two gotchas: | ||
29879 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
29880 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
29881 | # In both cases, we have to default to `cp -p'. | ||
29882 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
29883 | as_ln_s='cp -p' | ||
29884 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
29885 | as_ln_s=ln | ||
29886 | else | ||
29887 | as_ln_s='cp -p' | ||
29888 | fi | ||
29889 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
29890 | rmdir conf$$.dir 2>/dev/null | ||
29891 | |||
29892 | if mkdir -p . 2>/dev/null; then | ||
29893 | as_mkdir_p=: | ||
29894 | else | ||
29895 | test -d ./-p && rmdir ./-p | ||
29896 | as_mkdir_p=false | ||
29897 | fi | ||
29898 | |||
29899 | if test -x / >/dev/null 2>&1; then | ||
29900 | as_test_x='test -x' | ||
29901 | else | ||
29902 | if ls -dL / >/dev/null 2>&1; then | ||
29903 | as_ls_L_option=L | ||
29904 | else | ||
29905 | as_ls_L_option= | ||
29906 | fi | ||
29907 | as_test_x=' | ||
29908 | eval sh -c '\'' | ||
29909 | if test -d "$1"; then | ||
29910 | test -d "$1/."; | ||
29911 | else | ||
29912 | case $1 in | ||
29913 | -*)set "./$1";; | ||
29914 | esac; | ||
29915 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | ||
29916 | ???[sx]*):;;*)false;;esac;fi | ||
29917 | '\'' sh | ||
29918 | ' | ||
29919 | fi | ||
29920 | as_executable_p=$as_test_x | ||
29921 | |||
29922 | # Sed expression to map a string onto a valid CPP name. | ||
29923 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
29924 | |||
29925 | # Sed expression to map a string onto a valid variable name. | ||
29926 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
29927 | |||
29928 | |||
29929 | exec 6>&1 | ||
29930 | |||
29931 | # Save the log message, to keep $[0] and so on meaningful, and to | ||
29932 | # report actual input values of CONFIG_FILES etc. instead of their | ||
29933 | # values after options handling. | ||
29934 | ac_log=" | ||
29935 | This file was extended by OpenSSH $as_me Portable, which was | ||
29936 | generated by GNU Autoconf 2.61. Invocation command line was | ||
29937 | |||
29938 | CONFIG_FILES = $CONFIG_FILES | ||
29939 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
29940 | CONFIG_LINKS = $CONFIG_LINKS | ||
29941 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
29942 | $ $0 $@ | ||
29943 | |||
29944 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
29945 | " | ||
29946 | |||
29947 | _ACEOF | ||
29948 | |||
29949 | cat >>$CONFIG_STATUS <<_ACEOF | ||
29950 | # Files that config.status was made for. | ||
29951 | config_files="$ac_config_files" | ||
29952 | config_headers="$ac_config_headers" | ||
29953 | |||
29954 | _ACEOF | ||
29955 | |||
29956 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
29957 | ac_cs_usage="\ | ||
29958 | \`$as_me' instantiates files from templates according to the | ||
29959 | current configuration. | ||
29960 | |||
29961 | Usage: $0 [OPTIONS] [FILE]... | ||
29962 | |||
29963 | -h, --help print this help, then exit | ||
29964 | -V, --version print version number and configuration settings, then exit | ||
29965 | -q, --quiet do not print progress messages | ||
29966 | -d, --debug don't remove temporary files | ||
29967 | --recheck update $as_me by reconfiguring in the same conditions | ||
29968 | --file=FILE[:TEMPLATE] | ||
29969 | instantiate the configuration file FILE | ||
29970 | --header=FILE[:TEMPLATE] | ||
29971 | instantiate the configuration header FILE | ||
29972 | |||
29973 | Configuration files: | ||
29974 | $config_files | ||
29975 | |||
29976 | Configuration headers: | ||
29977 | $config_headers | ||
29978 | |||
29979 | Report bugs to <bug-autoconf@gnu.org>." | ||
29980 | |||
29981 | _ACEOF | ||
29982 | cat >>$CONFIG_STATUS <<_ACEOF | ||
29983 | ac_cs_version="\\ | ||
29984 | OpenSSH config.status Portable | ||
29985 | configured by $0, generated by GNU Autoconf 2.61, | ||
29986 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | ||
29987 | |||
29988 | Copyright (C) 2006 Free Software Foundation, Inc. | ||
29989 | This config.status script is free software; the Free Software Foundation | ||
29990 | gives unlimited permission to copy, distribute and modify it." | ||
29991 | |||
29992 | ac_pwd='$ac_pwd' | ||
29993 | srcdir='$srcdir' | ||
29994 | INSTALL='$INSTALL' | ||
29995 | _ACEOF | ||
29996 | |||
29997 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
29998 | # If no file are specified by the user, then we need to provide default | ||
29999 | # value. By we need to know if files were specified by the user. | ||
30000 | ac_need_defaults=: | ||
30001 | while test $# != 0 | ||
30002 | do | ||
30003 | case $1 in | ||
30004 | --*=*) | ||
30005 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
30006 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
30007 | ac_shift=: | ||
30008 | ;; | ||
30009 | *) | ||
30010 | ac_option=$1 | ||
30011 | ac_optarg=$2 | ||
30012 | ac_shift=shift | ||
30013 | ;; | ||
30014 | esac | ||
30015 | |||
30016 | case $ac_option in | ||
30017 | # Handling of the options. | ||
30018 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
30019 | ac_cs_recheck=: ;; | ||
30020 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
30021 | echo "$ac_cs_version"; exit ;; | ||
30022 | --debug | --debu | --deb | --de | --d | -d ) | ||
30023 | debug=: ;; | ||
30024 | --file | --fil | --fi | --f ) | ||
30025 | $ac_shift | ||
30026 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | ||
30027 | ac_need_defaults=false;; | ||
30028 | --header | --heade | --head | --hea ) | ||
30029 | $ac_shift | ||
30030 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | ||
30031 | ac_need_defaults=false;; | ||
30032 | --he | --h) | ||
30033 | # Conflict between --help and --header | ||
30034 | { echo "$as_me: error: ambiguous option: $1 | ||
30035 | Try \`$0 --help' for more information." >&2 | ||
30036 | { (exit 1); exit 1; }; };; | ||
30037 | --help | --hel | -h ) | ||
30038 | echo "$ac_cs_usage"; exit ;; | ||
30039 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
30040 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
30041 | ac_cs_silent=: ;; | ||
30042 | |||
30043 | # This is an error. | ||
30044 | -*) { echo "$as_me: error: unrecognized option: $1 | ||
30045 | Try \`$0 --help' for more information." >&2 | ||
30046 | { (exit 1); exit 1; }; } ;; | ||
30047 | |||
30048 | *) ac_config_targets="$ac_config_targets $1" | ||
30049 | ac_need_defaults=false ;; | ||
30050 | |||
30051 | esac | ||
30052 | shift | ||
30053 | done | ||
30054 | |||
30055 | ac_configure_extra_args= | ||
30056 | |||
30057 | if $ac_cs_silent; then | ||
30058 | exec 6>/dev/null | ||
30059 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
30060 | fi | ||
30061 | |||
30062 | _ACEOF | ||
30063 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30064 | if \$ac_cs_recheck; then | ||
30065 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | ||
30066 | CONFIG_SHELL=$SHELL | ||
30067 | export CONFIG_SHELL | ||
30068 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
30069 | fi | ||
30070 | |||
30071 | _ACEOF | ||
30072 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
30073 | exec 5>>config.log | ||
30074 | { | ||
30075 | echo | ||
30076 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
30077 | ## Running $as_me. ## | ||
30078 | _ASBOX | ||
30079 | echo "$ac_log" | ||
30080 | } >&5 | ||
30081 | |||
30082 | _ACEOF | ||
30083 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30084 | _ACEOF | ||
30085 | |||
30086 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
30087 | |||
30088 | # Handling of arguments. | ||
30089 | for ac_config_target in $ac_config_targets | ||
30090 | do | ||
30091 | case $ac_config_target in | ||
30092 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
30093 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
30094 | "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; | ||
30095 | "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; | ||
30096 | "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;; | ||
30097 | "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
30098 | "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;; | ||
30099 | "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;; | ||
30100 | "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;; | ||
30101 | |||
30102 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | ||
30103 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
30104 | { (exit 1); exit 1; }; };; | ||
30105 | esac | ||
30106 | done | ||
30107 | |||
30108 | |||
30109 | # If the user did not use the arguments to specify the items to instantiate, | ||
30110 | # then the envvar interface is used. Set only those that are not. | ||
30111 | # We use the long form for the default assignment because of an extremely | ||
30112 | # bizarre bug on SunOS 4.1.3. | ||
30113 | if $ac_need_defaults; then | ||
30114 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
30115 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
30116 | fi | ||
30117 | |||
30118 | # Have a temporary directory for convenience. Make it in the build tree | ||
30119 | # simply because there is no reason against having it here, and in addition, | ||
30120 | # creating and moving files from /tmp can sometimes cause problems. | ||
30121 | # Hook for its removal unless debugging. | ||
30122 | # Note that there is a small window in which the directory will not be cleaned: | ||
30123 | # after its creation but before its name has been assigned to `$tmp'. | ||
30124 | $debug || | ||
30125 | { | ||
30126 | tmp= | ||
30127 | trap 'exit_status=$? | ||
30128 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | ||
30129 | ' 0 | ||
30130 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
30131 | } | ||
30132 | # Create a (secure) tmp directory for tmp files. | ||
30133 | |||
30134 | { | ||
30135 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
30136 | test -n "$tmp" && test -d "$tmp" | ||
30137 | } || | ||
30138 | { | ||
30139 | tmp=./conf$$-$RANDOM | ||
30140 | (umask 077 && mkdir "$tmp") | ||
30141 | } || | ||
30142 | { | ||
30143 | echo "$me: cannot create a temporary directory in ." >&2 | ||
30144 | { (exit 1); exit 1; } | ||
30145 | } | ||
30146 | |||
30147 | # | ||
30148 | # Set up the sed scripts for CONFIG_FILES section. | ||
30149 | # | ||
30150 | |||
30151 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
30152 | # This happens for instance when ./config.status config.h | ||
30153 | if test -n "$CONFIG_FILES"; then | ||
30154 | |||
30155 | _ACEOF | ||
30156 | |||
30157 | |||
30158 | |||
30159 | ac_delim='%!_!# ' | ||
30160 | for ac_last_try in false false false false false :; do | ||
30161 | cat >conf$$subs.sed <<_ACEOF | ||
30162 | SHELL!$SHELL$ac_delim | ||
30163 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | ||
30164 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | ||
30165 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | ||
30166 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | ||
30167 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | ||
30168 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | ||
30169 | exec_prefix!$exec_prefix$ac_delim | ||
30170 | prefix!$prefix$ac_delim | ||
30171 | program_transform_name!$program_transform_name$ac_delim | ||
30172 | bindir!$bindir$ac_delim | ||
30173 | sbindir!$sbindir$ac_delim | ||
30174 | libexecdir!$libexecdir$ac_delim | ||
30175 | datarootdir!$datarootdir$ac_delim | ||
30176 | datadir!$datadir$ac_delim | ||
30177 | sysconfdir!$sysconfdir$ac_delim | ||
30178 | sharedstatedir!$sharedstatedir$ac_delim | ||
30179 | localstatedir!$localstatedir$ac_delim | ||
30180 | includedir!$includedir$ac_delim | ||
30181 | oldincludedir!$oldincludedir$ac_delim | ||
30182 | docdir!$docdir$ac_delim | ||
30183 | infodir!$infodir$ac_delim | ||
30184 | htmldir!$htmldir$ac_delim | ||
30185 | dvidir!$dvidir$ac_delim | ||
30186 | pdfdir!$pdfdir$ac_delim | ||
30187 | psdir!$psdir$ac_delim | ||
30188 | libdir!$libdir$ac_delim | ||
30189 | localedir!$localedir$ac_delim | ||
30190 | mandir!$mandir$ac_delim | ||
30191 | DEFS!$DEFS$ac_delim | ||
30192 | ECHO_C!$ECHO_C$ac_delim | ||
30193 | ECHO_N!$ECHO_N$ac_delim | ||
30194 | ECHO_T!$ECHO_T$ac_delim | ||
30195 | LIBS!$LIBS$ac_delim | ||
30196 | build_alias!$build_alias$ac_delim | ||
30197 | host_alias!$host_alias$ac_delim | ||
30198 | target_alias!$target_alias$ac_delim | ||
30199 | CC!$CC$ac_delim | ||
30200 | CFLAGS!$CFLAGS$ac_delim | ||
30201 | LDFLAGS!$LDFLAGS$ac_delim | ||
30202 | CPPFLAGS!$CPPFLAGS$ac_delim | ||
30203 | ac_ct_CC!$ac_ct_CC$ac_delim | ||
30204 | EXEEXT!$EXEEXT$ac_delim | ||
30205 | OBJEXT!$OBJEXT$ac_delim | ||
30206 | build!$build$ac_delim | ||
30207 | build_cpu!$build_cpu$ac_delim | ||
30208 | build_vendor!$build_vendor$ac_delim | ||
30209 | build_os!$build_os$ac_delim | ||
30210 | host!$host$ac_delim | ||
30211 | host_cpu!$host_cpu$ac_delim | ||
30212 | host_vendor!$host_vendor$ac_delim | ||
30213 | host_os!$host_os$ac_delim | ||
30214 | CPP!$CPP$ac_delim | ||
30215 | GREP!$GREP$ac_delim | ||
30216 | EGREP!$EGREP$ac_delim | ||
30217 | AWK!$AWK$ac_delim | ||
30218 | RANLIB!$RANLIB$ac_delim | ||
30219 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | ||
30220 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | ||
30221 | INSTALL_DATA!$INSTALL_DATA$ac_delim | ||
30222 | AR!$AR$ac_delim | ||
30223 | CAT!$CAT$ac_delim | ||
30224 | KILL!$KILL$ac_delim | ||
30225 | PERL!$PERL$ac_delim | ||
30226 | SED!$SED$ac_delim | ||
30227 | ENT!$ENT$ac_delim | ||
30228 | TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim | ||
30229 | SH!$SH$ac_delim | ||
30230 | TEST_SHELL!$TEST_SHELL$ac_delim | ||
30231 | PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim | ||
30232 | PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim | ||
30233 | MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim | ||
30234 | STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim | ||
30235 | LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim | ||
30236 | PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim | ||
30237 | LD!$LD$ac_delim | ||
30238 | SSHDLIBS!$SSHDLIBS$ac_delim | ||
30239 | LIBEDIT!$LIBEDIT$ac_delim | ||
30240 | INSTALL_SSH_RAND_HELPER!$INSTALL_SSH_RAND_HELPER$ac_delim | ||
30241 | SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim | ||
30242 | PROG_LS!$PROG_LS$ac_delim | ||
30243 | PROG_NETSTAT!$PROG_NETSTAT$ac_delim | ||
30244 | PROG_ARP!$PROG_ARP$ac_delim | ||
30245 | PROG_IFCONFIG!$PROG_IFCONFIG$ac_delim | ||
30246 | PROG_JSTAT!$PROG_JSTAT$ac_delim | ||
30247 | PROG_PS!$PROG_PS$ac_delim | ||
30248 | PROG_SAR!$PROG_SAR$ac_delim | ||
30249 | PROG_W!$PROG_W$ac_delim | ||
30250 | PROG_WHO!$PROG_WHO$ac_delim | ||
30251 | PROG_LAST!$PROG_LAST$ac_delim | ||
30252 | PROG_LASTLOG!$PROG_LASTLOG$ac_delim | ||
30253 | PROG_DF!$PROG_DF$ac_delim | ||
30254 | PROG_VMSTAT!$PROG_VMSTAT$ac_delim | ||
30255 | PROG_UPTIME!$PROG_UPTIME$ac_delim | ||
30256 | PROG_IPCS!$PROG_IPCS$ac_delim | ||
30257 | PROG_TAIL!$PROG_TAIL$ac_delim | ||
30258 | INSTALL_SSH_PRNG_CMDS!$INSTALL_SSH_PRNG_CMDS$ac_delim | ||
30259 | _ACEOF | ||
30260 | |||
30261 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | ||
30262 | break | ||
30263 | elif $ac_last_try; then | ||
30264 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
30265 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
30266 | { (exit 1); exit 1; }; } | ||
30267 | else | ||
30268 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
30269 | fi | ||
30270 | done | ||
30271 | |||
30272 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
30273 | if test -n "$ac_eof"; then | ||
30274 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
30275 | ac_eof=`expr $ac_eof + 1` | ||
30276 | fi | ||
30277 | |||
30278 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30279 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | ||
30280 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
30281 | _ACEOF | ||
30282 | sed ' | ||
30283 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
30284 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
30285 | :n | ||
30286 | t n | ||
30287 | s/'"$ac_delim"'$/,g/; t | ||
30288 | s/$/\\/; p | ||
30289 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
30290 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
30291 | rm -f conf$$subs.sed | ||
30292 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30293 | CEOF$ac_eof | ||
30294 | _ACEOF | ||
30295 | |||
30296 | |||
30297 | ac_delim='%!_!# ' | ||
30298 | for ac_last_try in false false false false false :; do | ||
30299 | cat >conf$$subs.sed <<_ACEOF | ||
30300 | KRB5CONF!$KRB5CONF$ac_delim | ||
30301 | PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim | ||
30302 | xauth_path!$xauth_path$ac_delim | ||
30303 | STRIP_OPT!$STRIP_OPT$ac_delim | ||
30304 | XAUTH_PATH!$XAUTH_PATH$ac_delim | ||
30305 | NROFF!$NROFF$ac_delim | ||
30306 | MANTYPE!$MANTYPE$ac_delim | ||
30307 | mansubdir!$mansubdir$ac_delim | ||
30308 | user_path!$user_path$ac_delim | ||
30309 | piddir!$piddir$ac_delim | ||
30310 | TEST_SSH_IPV6!$TEST_SSH_IPV6$ac_delim | ||
30311 | LIBOBJS!$LIBOBJS$ac_delim | ||
30312 | LTLIBOBJS!$LTLIBOBJS$ac_delim | ||
30313 | _ACEOF | ||
30314 | |||
30315 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then | ||
30316 | break | ||
30317 | elif $ac_last_try; then | ||
30318 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
30319 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
30320 | { (exit 1); exit 1; }; } | ||
30321 | else | ||
30322 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
30323 | fi | ||
30324 | done | ||
30325 | |||
30326 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
30327 | if test -n "$ac_eof"; then | ||
30328 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
30329 | ac_eof=`expr $ac_eof + 1` | ||
30330 | fi | ||
30331 | |||
30332 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30333 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | ||
30334 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | ||
30335 | _ACEOF | ||
30336 | sed ' | ||
30337 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
30338 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
30339 | :n | ||
30340 | t n | ||
30341 | s/'"$ac_delim"'$/,g/; t | ||
30342 | s/$/\\/; p | ||
30343 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
30344 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
30345 | rm -f conf$$subs.sed | ||
30346 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30347 | :end | ||
30348 | s/|#_!!_#|//g | ||
30349 | CEOF$ac_eof | ||
30350 | _ACEOF | ||
30351 | |||
30352 | |||
30353 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
30354 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
30355 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
30356 | # (actually we leave an empty line to preserve line numbers). | ||
30357 | if test "x$srcdir" = x.; then | ||
30358 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
30359 | s/:*\$(srcdir):*/:/ | ||
30360 | s/:*\${srcdir}:*/:/ | ||
30361 | s/:*@srcdir@:*/:/ | ||
30362 | s/^\([^=]*=[ ]*\):*/\1/ | ||
30363 | s/:*$// | ||
30364 | s/^[^=]*=[ ]*$// | ||
30365 | }' | ||
30366 | fi | ||
30367 | |||
30368 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
30369 | fi # test -n "$CONFIG_FILES" | ||
30370 | |||
30371 | |||
30372 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS | ||
30373 | do | ||
30374 | case $ac_tag in | ||
30375 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
30376 | esac | ||
30377 | case $ac_mode$ac_tag in | ||
30378 | :[FHL]*:*);; | ||
30379 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | ||
30380 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | ||
30381 | { (exit 1); exit 1; }; };; | ||
30382 | :[FH]-) ac_tag=-:-;; | ||
30383 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
30384 | esac | ||
30385 | ac_save_IFS=$IFS | ||
30386 | IFS=: | ||
30387 | set x $ac_tag | ||
30388 | IFS=$ac_save_IFS | ||
30389 | shift | ||
30390 | ac_file=$1 | ||
30391 | shift | ||
30392 | |||
30393 | case $ac_mode in | ||
30394 | :L) ac_source=$1;; | ||
30395 | :[FH]) | ||
30396 | ac_file_inputs= | ||
30397 | for ac_f | ||
30398 | do | ||
30399 | case $ac_f in | ||
30400 | -) ac_f="$tmp/stdin";; | ||
30401 | *) # Look for the file first in the build tree, then in the source tree | ||
30402 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
30403 | # because $ac_f cannot contain `:'. | ||
30404 | test -f "$ac_f" || | ||
30405 | case $ac_f in | ||
30406 | [\\/$]*) false;; | ||
30407 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
30408 | esac || | ||
30409 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | ||
30410 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | ||
30411 | { (exit 1); exit 1; }; };; | ||
30412 | esac | ||
30413 | ac_file_inputs="$ac_file_inputs $ac_f" | ||
30414 | done | ||
30415 | |||
30416 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
30417 | # use $as_me), people would be surprised to read: | ||
30418 | # /* config.h. Generated by config.status. */ | ||
30419 | configure_input="Generated from "`IFS=: | ||
30420 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | ||
30421 | if test x"$ac_file" != x-; then | ||
30422 | configure_input="$ac_file. $configure_input" | ||
30423 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
30424 | echo "$as_me: creating $ac_file" >&6;} | ||
30425 | fi | ||
30426 | |||
30427 | case $ac_tag in | ||
30428 | *:-:* | *:-) cat >"$tmp/stdin";; | ||
30429 | esac | ||
30430 | ;; | ||
30431 | esac | ||
30432 | |||
30433 | ac_dir=`$as_dirname -- "$ac_file" || | ||
30434 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
30435 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
30436 | X"$ac_file" : 'X\(//\)$' \| \ | ||
30437 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
30438 | echo X"$ac_file" | | ||
30439 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
30440 | s//\1/ | ||
30441 | q | ||
30442 | } | ||
30443 | /^X\(\/\/\)[^/].*/{ | ||
30444 | s//\1/ | ||
30445 | q | ||
30446 | } | ||
30447 | /^X\(\/\/\)$/{ | ||
30448 | s//\1/ | ||
30449 | q | ||
30450 | } | ||
30451 | /^X\(\/\).*/{ | ||
30452 | s//\1/ | ||
30453 | q | ||
30454 | } | ||
30455 | s/.*/./; q'` | ||
30456 | { as_dir="$ac_dir" | ||
30457 | case $as_dir in #( | ||
30458 | -*) as_dir=./$as_dir;; | ||
30459 | esac | ||
30460 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | ||
30461 | as_dirs= | ||
30462 | while :; do | ||
30463 | case $as_dir in #( | ||
30464 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | ||
30465 | *) as_qdir=$as_dir;; | ||
30466 | esac | ||
30467 | as_dirs="'$as_qdir' $as_dirs" | ||
30468 | as_dir=`$as_dirname -- "$as_dir" || | ||
30469 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
30470 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
30471 | X"$as_dir" : 'X\(//\)$' \| \ | ||
30472 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
30473 | echo X"$as_dir" | | ||
30474 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
30475 | s//\1/ | ||
30476 | q | ||
30477 | } | ||
30478 | /^X\(\/\/\)[^/].*/{ | ||
30479 | s//\1/ | ||
30480 | q | ||
30481 | } | ||
30482 | /^X\(\/\/\)$/{ | ||
30483 | s//\1/ | ||
30484 | q | ||
30485 | } | ||
30486 | /^X\(\/\).*/{ | ||
30487 | s//\1/ | ||
30488 | q | ||
30489 | } | ||
30490 | s/.*/./; q'` | ||
30491 | test -d "$as_dir" && break | ||
30492 | done | ||
30493 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
30494 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | ||
30495 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | ||
30496 | { (exit 1); exit 1; }; }; } | ||
30497 | ac_builddir=. | ||
30498 | |||
30499 | case "$ac_dir" in | ||
30500 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
30501 | *) | ||
30502 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
30503 | # A ".." for each directory in $ac_dir_suffix. | ||
30504 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
30505 | case $ac_top_builddir_sub in | ||
30506 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
30507 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
30508 | esac ;; | ||
30509 | esac | ||
30510 | ac_abs_top_builddir=$ac_pwd | ||
30511 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
30512 | # for backward compatibility: | ||
30513 | ac_top_builddir=$ac_top_build_prefix | ||
30514 | |||
30515 | case $srcdir in | ||
30516 | .) # We are building in place. | ||
30517 | ac_srcdir=. | ||
30518 | ac_top_srcdir=$ac_top_builddir_sub | ||
30519 | ac_abs_top_srcdir=$ac_pwd ;; | ||
30520 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
30521 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
30522 | ac_top_srcdir=$srcdir | ||
30523 | ac_abs_top_srcdir=$srcdir ;; | ||
30524 | *) # Relative name. | ||
30525 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
30526 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
30527 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
30528 | esac | ||
30529 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
30530 | |||
30531 | |||
30532 | case $ac_mode in | ||
30533 | :F) | ||
30534 | # | ||
30535 | # CONFIG_FILE | ||
30536 | # | ||
30537 | |||
30538 | case $INSTALL in | ||
30539 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
30540 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
30541 | esac | ||
30542 | _ACEOF | ||
30543 | |||
30544 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
30545 | # If the template does not know about datarootdir, expand it. | ||
30546 | # FIXME: This hack should be removed a few years after 2.60. | ||
30547 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
30548 | |||
30549 | case `sed -n '/datarootdir/ { | ||
30550 | p | ||
30551 | q | ||
30552 | } | ||
30553 | /@datadir@/p | ||
30554 | /@docdir@/p | ||
30555 | /@infodir@/p | ||
30556 | /@localedir@/p | ||
30557 | /@mandir@/p | ||
30558 | ' $ac_file_inputs` in | ||
30559 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
30560 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
30561 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
30562 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
30563 | _ACEOF | ||
30564 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30565 | ac_datarootdir_hack=' | ||
30566 | s&@datadir@&$datadir&g | ||
30567 | s&@docdir@&$docdir&g | ||
30568 | s&@infodir@&$infodir&g | ||
30569 | s&@localedir@&$localedir&g | ||
30570 | s&@mandir@&$mandir&g | ||
30571 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
30572 | esac | ||
30573 | _ACEOF | ||
30574 | |||
30575 | # Neutralize VPATH when `$srcdir' = `.'. | ||
30576 | # Shell code in configure.ac might set extrasub. | ||
30577 | # FIXME: do we really want to maintain this feature? | ||
30578 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30579 | sed "$ac_vpsub | ||
30580 | $extrasub | ||
30581 | _ACEOF | ||
30582 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
30583 | :t | ||
30584 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
30585 | s&@configure_input@&$configure_input&;t t | ||
30586 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
30587 | s&@srcdir@&$ac_srcdir&;t t | ||
30588 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
30589 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
30590 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
30591 | s&@builddir@&$ac_builddir&;t t | ||
30592 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
30593 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
30594 | s&@INSTALL@&$ac_INSTALL&;t t | ||
30595 | $ac_datarootdir_hack | ||
30596 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | ||
30597 | |||
30598 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
30599 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | ||
30600 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | ||
30601 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
30602 | which seems to be undefined. Please make sure it is defined." >&5 | ||
30603 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
30604 | which seems to be undefined. Please make sure it is defined." >&2;} | ||
30605 | |||
30606 | rm -f "$tmp/stdin" | ||
30607 | case $ac_file in | ||
30608 | -) cat "$tmp/out"; rm -f "$tmp/out";; | ||
30609 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | ||
30610 | esac | ||
30611 | ;; | ||
30612 | :H) | ||
30613 | # | ||
30614 | # CONFIG_HEADER | ||
30615 | # | ||
30616 | _ACEOF | ||
30617 | |||
30618 | # Transform confdefs.h into a sed script `conftest.defines', that | ||
30619 | # substitutes the proper values into config.h.in to produce config.h. | ||
30620 | rm -f conftest.defines conftest.tail | ||
30621 | # First, append a space to every undef/define line, to ease matching. | ||
30622 | echo 's/$/ /' >conftest.defines | ||
30623 | # Then, protect against being on the right side of a sed subst, or in | ||
30624 | # an unquoted here document, in config.status. If some macros were | ||
30625 | # called several times there might be several #defines for the same | ||
30626 | # symbol, which is useless. But do not sort them, since the last | ||
30627 | # AC_DEFINE must be honored. | ||
30628 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
30629 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | ||
30630 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | ||
30631 | # PARAMS is the parameter list in the macro definition--in most cases, it's | ||
30632 | # just an empty string. | ||
30633 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | ||
30634 | ac_dB='\\)[ (].*,\\1define\\2' | ||
30635 | ac_dC=' ' | ||
30636 | ac_dD=' ,' | ||
30637 | |||
30638 | uniq confdefs.h | | ||
30639 | sed -n ' | ||
30640 | t rset | ||
30641 | :rset | ||
30642 | s/^[ ]*#[ ]*define[ ][ ]*// | ||
30643 | t ok | ||
30644 | d | ||
30645 | :ok | ||
30646 | s/[\\&,]/\\&/g | ||
30647 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | ||
30648 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | ||
30649 | ' >>conftest.defines | ||
30650 | |||
30651 | # Remove the space that was appended to ease matching. | ||
30652 | # Then replace #undef with comments. This is necessary, for | ||
30653 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
30654 | # on some systems where configure will not decide to define it. | ||
30655 | # (The regexp can be short, since the line contains either #define or #undef.) | ||
30656 | echo 's/ $// | ||
30657 | s,^[ #]*u.*,/* & */,' >>conftest.defines | ||
30658 | |||
30659 | # Break up conftest.defines: | ||
30660 | ac_max_sed_lines=50 | ||
30661 | |||
30662 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | ||
30663 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | ||
30664 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | ||
30665 | # et cetera. | ||
30666 | ac_in='$ac_file_inputs' | ||
30667 | ac_out='"$tmp/out1"' | ||
30668 | ac_nxt='"$tmp/out2"' | ||
30669 | |||
30670 | while : | ||
30671 | do | ||
30672 | # Write a here document: | ||
30673 | cat >>$CONFIG_STATUS <<_ACEOF | ||
30674 | # First, check the format of the line: | ||
30675 | cat >"\$tmp/defines.sed" <<\\CEOF | ||
30676 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | ||
30677 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | ||
30678 | b | ||
30679 | :def | ||
30680 | _ACEOF | ||
30681 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | ||
30682 | echo 'CEOF | ||
30683 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | ||
30684 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | ||
30685 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | ||
30686 | grep . conftest.tail >/dev/null || break | ||
30687 | rm -f conftest.defines | ||
30688 | mv conftest.tail conftest.defines | ||
30689 | done | ||
30690 | rm -f conftest.defines conftest.tail | ||
30691 | |||
30692 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | ||
30693 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
30694 | if test x"$ac_file" != x-; then | ||
30695 | echo "/* $configure_input */" >"$tmp/config.h" | ||
30696 | cat "$ac_result" >>"$tmp/config.h" | ||
30697 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | ||
30698 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | ||
30699 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
30700 | else | ||
30701 | rm -f $ac_file | ||
30702 | mv "$tmp/config.h" $ac_file | ||
30703 | fi | ||
30704 | else | ||
30705 | echo "/* $configure_input */" | ||
30706 | cat "$ac_result" | ||
30707 | fi | ||
30708 | rm -f "$tmp/out12" | ||
30709 | ;; | ||
30710 | |||
30711 | |||
30712 | esac | ||
30713 | |||
30714 | done # for ac_tag | ||
30715 | |||
30716 | |||
30717 | { (exit 0); exit 0; } | ||
30718 | _ACEOF | ||
30719 | chmod +x $CONFIG_STATUS | ||
30720 | ac_clean_files=$ac_clean_files_save | ||
30721 | |||
30722 | |||
30723 | # configure is writing to config.log, and then calls config.status. | ||
30724 | # config.status does its own redirection, appending to config.log. | ||
30725 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
30726 | # by configure, so config.status won't be able to write to it; its | ||
30727 | # output is simply discarded. So we exec the FD to /dev/null, | ||
30728 | # effectively closing config.log, so it can be properly (re)opened and | ||
30729 | # appended to by config.status. When coming back to configure, we | ||
30730 | # need to make the FD available again. | ||
30731 | if test "$no_create" != yes; then | ||
30732 | ac_cs_success=: | ||
30733 | ac_config_status_args= | ||
30734 | test "$silent" = yes && | ||
30735 | ac_config_status_args="$ac_config_status_args --quiet" | ||
30736 | exec 5>/dev/null | ||
30737 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
30738 | exec 5>>config.log | ||
30739 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
30740 | # would make configure fail if this is the last instruction. | ||
30741 | $ac_cs_success || { (exit 1); exit 1; } | ||
30742 | fi | ||
30743 | |||
30744 | |||
30745 | # Print summary of options | ||
30746 | |||
30747 | # Someone please show me a better way :) | ||
30748 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
30749 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
30750 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
30751 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
30752 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
30753 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
30754 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
30755 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
30756 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
30757 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
30758 | |||
30759 | echo "" | ||
30760 | echo "OpenSSH has been configured with the following options:" | ||
30761 | echo " User binaries: $B" | ||
30762 | echo " System binaries: $C" | ||
30763 | echo " Configuration files: $D" | ||
30764 | echo " Askpass program: $E" | ||
30765 | echo " Manual pages: $F" | ||
30766 | echo " PID file: $G" | ||
30767 | echo " Privilege separation chroot path: $H" | ||
30768 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
30769 | echo " At runtime, sshd will use the path defined in $external_path_file" | ||
30770 | echo " Make sure the path to scp is present, otherwise scp will not work" | ||
30771 | else | ||
30772 | echo " sshd default user PATH: $I" | ||
30773 | if test ! -z "$external_path_file"; then | ||
30774 | echo " (If PATH is set in $external_path_file it will be used instead. If" | ||
30775 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" | ||
30776 | fi | ||
30777 | fi | ||
30778 | if test ! -z "$superuser_path" ; then | ||
30779 | echo " sshd superuser user PATH: $J" | ||
30780 | fi | ||
30781 | echo " Manpage format: $MANTYPE" | ||
30782 | echo " PAM support: $PAM_MSG" | ||
30783 | echo " OSF SIA support: $SIA_MSG" | ||
30784 | echo " KerberosV support: $KRB5_MSG" | ||
30785 | echo " SELinux support: $SELINUX_MSG" | ||
30786 | echo " Smartcard support: $SCARD_MSG" | ||
30787 | echo " S/KEY support: $SKEY_MSG" | ||
30788 | echo " TCP Wrappers support: $TCPW_MSG" | ||
30789 | echo " MD5 password support: $MD5_MSG" | ||
30790 | echo " libedit support: $LIBEDIT_MSG" | ||
30791 | echo " Solaris process contract support: $SPC_MSG" | ||
30792 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
30793 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
30794 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
30795 | echo " Random number source: $RAND_MSG" | ||
30796 | if test ! -z "$USE_RAND_HELPER" ; then | ||
30797 | echo " ssh-rand-helper collects from: $RAND_HELPER_MSG" | ||
30798 | fi | ||
30799 | |||
30800 | echo "" | ||
30801 | |||
30802 | echo " Host: ${host}" | ||
30803 | echo " Compiler: ${CC}" | ||
30804 | echo " Compiler flags: ${CFLAGS}" | ||
30805 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
30806 | echo " Linker flags: ${LDFLAGS}" | ||
30807 | echo " Libraries: ${LIBS}" | ||
30808 | if test ! -z "${SSHDLIBS}"; then | ||
30809 | echo " +for sshd: ${SSHDLIBS}" | ||
30810 | fi | ||
30811 | |||
30812 | echo "" | ||
30813 | |||
30814 | if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then | ||
30815 | echo "SVR4 style packages are supported with \"make package\"" | ||
30816 | echo "" | ||
30817 | fi | ||
30818 | |||
30819 | if test "x$PAM_MSG" = "xyes" ; then | ||
30820 | echo "PAM is enabled. You may need to install a PAM control file " | ||
30821 | echo "for sshd, otherwise password authentication may fail. " | ||
30822 | echo "Example PAM control files can be found in the contrib/ " | ||
30823 | echo "subdirectory" | ||
30824 | echo "" | ||
30825 | fi | ||
30826 | |||
30827 | if test ! -z "$RAND_HELPER_CMDHASH" ; then | ||
30828 | echo "WARNING: you are using the builtin random number collection " | ||
30829 | echo "service. Please read WARNING.RNG and request that your OS " | ||
30830 | echo "vendor includes kernel-based random number collection in " | ||
30831 | echo "future versions of your OS." | ||
30832 | echo "" | ||
30833 | fi | ||
30834 | |||
30835 | if test ! -z "$NO_PEERCHECK" ; then | ||
30836 | echo "WARNING: the operating system that you are using does not" | ||
30837 | echo "appear to support getpeereid(), getpeerucred() or the" | ||
30838 | echo "SO_PEERCRED getsockopt() option. These facilities are used to" | ||
30839 | echo "enforce security checks to prevent unauthorised connections to" | ||
30840 | echo "ssh-agent. Their absence increases the risk that a malicious" | ||
30841 | echo "user can connect to your agent." | ||
30842 | echo "" | ||
30843 | fi | ||
30844 | |||
30845 | if test "$AUDIT_MODULE" = "bsm" ; then | ||
30846 | echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." | ||
30847 | echo "See the Solaris section in README.platform for details." | ||
30848 | fi | ||